configure revision 963d66ac
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-openchrome 0.4.0. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='xf86-video-openchrome' 593PACKAGE_TARNAME='xf86-video-openchrome' 594PACKAGE_VERSION='0.4.0' 595PACKAGE_STRING='xf86-video-openchrome 0.4.0' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640MAN_SUBSTS 641XORG_MAN_PAGE 642ADMIN_MAN_DIR 643DRIVER_MAN_DIR 644MISC_MAN_DIR 645FILE_MAN_DIR 646LIB_MAN_DIR 647APP_MAN_DIR 648ADMIN_MAN_SUFFIX 649MISC_MAN_SUFFIX 650FILE_MAN_SUFFIX 651LIB_MAN_SUFFIX 652APP_MAN_SUFFIX 653DRIVER_MAN_SUFFIX 654DRIVER_NAME 655moduledir 656TOOLS_FALSE 657TOOLS_TRUE 658XV_DEBUG_FALSE 659XV_DEBUG_TRUE 660DEBUG_FALSE 661DEBUG_TRUE 662XVMC_FALSE 663XVMC_TRUE 664XVMC_LIBS 665XVMC_CFLAGS 666LIBUDEV_LIBS 667LIBUDEV_CFLAGS 668DRI_FALSE 669DRI_TRUE 670DRI_LIBS 671DRI_CFLAGS 672PCIACCESS_LIBS 673PCIACCESS_CFLAGS 674HAVE_XEXTPROTO_71_FALSE 675HAVE_XEXTPROTO_71_TRUE 676XEXT_LIBS 677XEXT_CFLAGS 678XORG_LIBS 679XORG_CFLAGS 680PKG_CONFIG_LIBDIR 681PKG_CONFIG_PATH 682PKG_CONFIG 683CPP 684LT_SYS_LIBRARY_PATH 685OTOOL64 686OTOOL 687LIPO 688NMEDIT 689DSYMUTIL 690MANIFEST_TOOL 691RANLIB 692ac_ct_AR 693AR 694DLLTOOL 695OBJDUMP 696LN_S 697NM 698ac_ct_DUMPBIN 699DUMPBIN 700LD 701FGREP 702EGREP 703GREP 704SED 705am__fastdepCC_FALSE 706am__fastdepCC_TRUE 707CCDEPMODE 708am__nodep 709AMDEPBACKSLASH 710AMDEP_FALSE 711AMDEP_TRUE 712am__quote 713am__include 714DEPDIR 715OBJEXT 716EXEEXT 717ac_ct_CC 718CPPFLAGS 719LDFLAGS 720CFLAGS 721CC 722host_os 723host_vendor 724host_cpu 725host 726build_os 727build_vendor 728build_cpu 729build 730LIBTOOL 731MAINT 732MAINTAINER_MODE_FALSE 733MAINTAINER_MODE_TRUE 734AM_BACKSLASH 735AM_DEFAULT_VERBOSITY 736AM_DEFAULT_V 737AM_V 738am__untar 739am__tar 740AMTAR 741am__leading_dot 742SET_MAKE 743AWK 744mkdir_p 745MKDIR_P 746INSTALL_STRIP_PROGRAM 747STRIP 748install_sh 749MAKEINFO 750AUTOHEADER 751AUTOMAKE 752AUTOCONF 753ACLOCAL 754VERSION 755PACKAGE 756CYGPATH_W 757am__isrc 758INSTALL_DATA 759INSTALL_SCRIPT 760INSTALL_PROGRAM 761target_alias 762host_alias 763build_alias 764LIBS 765ECHO_T 766ECHO_N 767ECHO_C 768DEFS 769mandir 770localedir 771libdir 772psdir 773pdfdir 774dvidir 775htmldir 776infodir 777docdir 778oldincludedir 779includedir 780localstatedir 781sharedstatedir 782sysconfdir 783datadir 784datarootdir 785libexecdir 786sbindir 787bindir 788program_transform_name 789prefix 790exec_prefix 791PACKAGE_URL 792PACKAGE_BUGREPORT 793PACKAGE_STRING 794PACKAGE_VERSION 795PACKAGE_TARNAME 796PACKAGE_NAME 797PATH_SEPARATOR 798SHELL' 799ac_subst_files='' 800ac_user_opts=' 801enable_option_checking 802enable_silent_rules 803enable_maintainer_mode 804enable_static 805enable_shared 806with_pic 807enable_fast_install 808with_aix_soname 809enable_dependency_tracking 810with_gnu_ld 811with_sysroot 812enable_libtool_lock 813enable_largefile 814with_xorg_module_dir 815enable_debug 816enable_xv_debug 817enable_viaregtool 818with_release_version 819' 820 ac_precious_vars='build_alias 821host_alias 822target_alias 823CC 824CFLAGS 825LDFLAGS 826LIBS 827CPPFLAGS 828LT_SYS_LIBRARY_PATH 829CPP 830PKG_CONFIG 831PKG_CONFIG_PATH 832PKG_CONFIG_LIBDIR 833XORG_CFLAGS 834XORG_LIBS 835XEXT_CFLAGS 836XEXT_LIBS 837PCIACCESS_CFLAGS 838PCIACCESS_LIBS 839DRI_CFLAGS 840DRI_LIBS 841LIBUDEV_CFLAGS 842LIBUDEV_LIBS 843XVMC_CFLAGS 844XVMC_LIBS' 845 846 847# Initialize some variables set by options. 848ac_init_help= 849ac_init_version=false 850ac_unrecognized_opts= 851ac_unrecognized_sep= 852# The variables have the same names as the options, with 853# dashes changed to underlines. 854cache_file=/dev/null 855exec_prefix=NONE 856no_create= 857no_recursion= 858prefix=NONE 859program_prefix=NONE 860program_suffix=NONE 861program_transform_name=s,x,x, 862silent= 863site= 864srcdir= 865verbose= 866x_includes=NONE 867x_libraries=NONE 868 869# Installation directory options. 870# These are left unexpanded so users can "make install exec_prefix=/foo" 871# and all the variables that are supposed to be based on exec_prefix 872# by default will actually change. 873# Use braces instead of parens because sh, perl, etc. also accept them. 874# (The list follows the same order as the GNU Coding Standards.) 875bindir='${exec_prefix}/bin' 876sbindir='${exec_prefix}/sbin' 877libexecdir='${exec_prefix}/libexec' 878datarootdir='${prefix}/share' 879datadir='${datarootdir}' 880sysconfdir='${prefix}/etc' 881sharedstatedir='${prefix}/com' 882localstatedir='${prefix}/var' 883includedir='${prefix}/include' 884oldincludedir='/usr/include' 885docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 886infodir='${datarootdir}/info' 887htmldir='${docdir}' 888dvidir='${docdir}' 889pdfdir='${docdir}' 890psdir='${docdir}' 891libdir='${exec_prefix}/lib' 892localedir='${datarootdir}/locale' 893mandir='${datarootdir}/man' 894 895ac_prev= 896ac_dashdash= 897for ac_option 898do 899 # If the previous option needs an argument, assign it. 900 if test -n "$ac_prev"; then 901 eval $ac_prev=\$ac_option 902 ac_prev= 903 continue 904 fi 905 906 case $ac_option in 907 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 908 *=) ac_optarg= ;; 909 *) ac_optarg=yes ;; 910 esac 911 912 # Accept the important Cygnus configure options, so we can diagnose typos. 913 914 case $ac_dashdash$ac_option in 915 --) 916 ac_dashdash=yes ;; 917 918 -bindir | --bindir | --bindi | --bind | --bin | --bi) 919 ac_prev=bindir ;; 920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 921 bindir=$ac_optarg ;; 922 923 -build | --build | --buil | --bui | --bu) 924 ac_prev=build_alias ;; 925 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 926 build_alias=$ac_optarg ;; 927 928 -cache-file | --cache-file | --cache-fil | --cache-fi \ 929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 930 ac_prev=cache_file ;; 931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 933 cache_file=$ac_optarg ;; 934 935 --config-cache | -C) 936 cache_file=config.cache ;; 937 938 -datadir | --datadir | --datadi | --datad) 939 ac_prev=datadir ;; 940 -datadir=* | --datadir=* | --datadi=* | --datad=*) 941 datadir=$ac_optarg ;; 942 943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 944 | --dataroo | --dataro | --datar) 945 ac_prev=datarootdir ;; 946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 948 datarootdir=$ac_optarg ;; 949 950 -disable-* | --disable-*) 951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 952 # Reject names that are not valid shell variable names. 953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 954 as_fn_error $? "invalid feature name: $ac_useropt" 955 ac_useropt_orig=$ac_useropt 956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 957 case $ac_user_opts in 958 *" 959"enable_$ac_useropt" 960"*) ;; 961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 962 ac_unrecognized_sep=', ';; 963 esac 964 eval enable_$ac_useropt=no ;; 965 966 -docdir | --docdir | --docdi | --doc | --do) 967 ac_prev=docdir ;; 968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 969 docdir=$ac_optarg ;; 970 971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 972 ac_prev=dvidir ;; 973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 974 dvidir=$ac_optarg ;; 975 976 -enable-* | --enable-*) 977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 978 # Reject names that are not valid shell variable names. 979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 980 as_fn_error $? "invalid feature name: $ac_useropt" 981 ac_useropt_orig=$ac_useropt 982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 983 case $ac_user_opts in 984 *" 985"enable_$ac_useropt" 986"*) ;; 987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 988 ac_unrecognized_sep=', ';; 989 esac 990 eval enable_$ac_useropt=\$ac_optarg ;; 991 992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 994 | --exec | --exe | --ex) 995 ac_prev=exec_prefix ;; 996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 998 | --exec=* | --exe=* | --ex=*) 999 exec_prefix=$ac_optarg ;; 1000 1001 -gas | --gas | --ga | --g) 1002 # Obsolete; use --with-gas. 1003 with_gas=yes ;; 1004 1005 -help | --help | --hel | --he | -h) 1006 ac_init_help=long ;; 1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1008 ac_init_help=recursive ;; 1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1010 ac_init_help=short ;; 1011 1012 -host | --host | --hos | --ho) 1013 ac_prev=host_alias ;; 1014 -host=* | --host=* | --hos=* | --ho=*) 1015 host_alias=$ac_optarg ;; 1016 1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1018 ac_prev=htmldir ;; 1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1020 | --ht=*) 1021 htmldir=$ac_optarg ;; 1022 1023 -includedir | --includedir | --includedi | --included | --include \ 1024 | --includ | --inclu | --incl | --inc) 1025 ac_prev=includedir ;; 1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1027 | --includ=* | --inclu=* | --incl=* | --inc=*) 1028 includedir=$ac_optarg ;; 1029 1030 -infodir | --infodir | --infodi | --infod | --info | --inf) 1031 ac_prev=infodir ;; 1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1033 infodir=$ac_optarg ;; 1034 1035 -libdir | --libdir | --libdi | --libd) 1036 ac_prev=libdir ;; 1037 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1038 libdir=$ac_optarg ;; 1039 1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1041 | --libexe | --libex | --libe) 1042 ac_prev=libexecdir ;; 1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1044 | --libexe=* | --libex=* | --libe=*) 1045 libexecdir=$ac_optarg ;; 1046 1047 -localedir | --localedir | --localedi | --localed | --locale) 1048 ac_prev=localedir ;; 1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1050 localedir=$ac_optarg ;; 1051 1052 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1053 | --localstate | --localstat | --localsta | --localst | --locals) 1054 ac_prev=localstatedir ;; 1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1057 localstatedir=$ac_optarg ;; 1058 1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1060 ac_prev=mandir ;; 1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1062 mandir=$ac_optarg ;; 1063 1064 -nfp | --nfp | --nf) 1065 # Obsolete; use --without-fp. 1066 with_fp=no ;; 1067 1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1069 | --no-cr | --no-c | -n) 1070 no_create=yes ;; 1071 1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1074 no_recursion=yes ;; 1075 1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1078 | --oldin | --oldi | --old | --ol | --o) 1079 ac_prev=oldincludedir ;; 1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1083 oldincludedir=$ac_optarg ;; 1084 1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1086 ac_prev=prefix ;; 1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1088 prefix=$ac_optarg ;; 1089 1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1091 | --program-pre | --program-pr | --program-p) 1092 ac_prev=program_prefix ;; 1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1095 program_prefix=$ac_optarg ;; 1096 1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1098 | --program-suf | --program-su | --program-s) 1099 ac_prev=program_suffix ;; 1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1102 program_suffix=$ac_optarg ;; 1103 1104 -program-transform-name | --program-transform-name \ 1105 | --program-transform-nam | --program-transform-na \ 1106 | --program-transform-n | --program-transform- \ 1107 | --program-transform | --program-transfor \ 1108 | --program-transfo | --program-transf \ 1109 | --program-trans | --program-tran \ 1110 | --progr-tra | --program-tr | --program-t) 1111 ac_prev=program_transform_name ;; 1112 -program-transform-name=* | --program-transform-name=* \ 1113 | --program-transform-nam=* | --program-transform-na=* \ 1114 | --program-transform-n=* | --program-transform-=* \ 1115 | --program-transform=* | --program-transfor=* \ 1116 | --program-transfo=* | --program-transf=* \ 1117 | --program-trans=* | --program-tran=* \ 1118 | --progr-tra=* | --program-tr=* | --program-t=*) 1119 program_transform_name=$ac_optarg ;; 1120 1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1122 ac_prev=pdfdir ;; 1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1124 pdfdir=$ac_optarg ;; 1125 1126 -psdir | --psdir | --psdi | --psd | --ps) 1127 ac_prev=psdir ;; 1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1129 psdir=$ac_optarg ;; 1130 1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1132 | -silent | --silent | --silen | --sile | --sil) 1133 silent=yes ;; 1134 1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1136 ac_prev=sbindir ;; 1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1138 | --sbi=* | --sb=*) 1139 sbindir=$ac_optarg ;; 1140 1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1143 | --sharedst | --shareds | --shared | --share | --shar \ 1144 | --sha | --sh) 1145 ac_prev=sharedstatedir ;; 1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1149 | --sha=* | --sh=*) 1150 sharedstatedir=$ac_optarg ;; 1151 1152 -site | --site | --sit) 1153 ac_prev=site ;; 1154 -site=* | --site=* | --sit=*) 1155 site=$ac_optarg ;; 1156 1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1158 ac_prev=srcdir ;; 1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1160 srcdir=$ac_optarg ;; 1161 1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1163 | --syscon | --sysco | --sysc | --sys | --sy) 1164 ac_prev=sysconfdir ;; 1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1167 sysconfdir=$ac_optarg ;; 1168 1169 -target | --target | --targe | --targ | --tar | --ta | --t) 1170 ac_prev=target_alias ;; 1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1172 target_alias=$ac_optarg ;; 1173 1174 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1175 verbose=yes ;; 1176 1177 -version | --version | --versio | --versi | --vers | -V) 1178 ac_init_version=: ;; 1179 1180 -with-* | --with-*) 1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1182 # Reject names that are not valid shell variable names. 1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1184 as_fn_error $? "invalid package name: $ac_useropt" 1185 ac_useropt_orig=$ac_useropt 1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1187 case $ac_user_opts in 1188 *" 1189"with_$ac_useropt" 1190"*) ;; 1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1192 ac_unrecognized_sep=', ';; 1193 esac 1194 eval with_$ac_useropt=\$ac_optarg ;; 1195 1196 -without-* | --without-*) 1197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1198 # Reject names that are not valid shell variable names. 1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1200 as_fn_error $? "invalid package name: $ac_useropt" 1201 ac_useropt_orig=$ac_useropt 1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1203 case $ac_user_opts in 1204 *" 1205"with_$ac_useropt" 1206"*) ;; 1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1208 ac_unrecognized_sep=', ';; 1209 esac 1210 eval with_$ac_useropt=no ;; 1211 1212 --x) 1213 # Obsolete; use --with-x. 1214 with_x=yes ;; 1215 1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1217 | --x-incl | --x-inc | --x-in | --x-i) 1218 ac_prev=x_includes ;; 1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1221 x_includes=$ac_optarg ;; 1222 1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1225 ac_prev=x_libraries ;; 1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1228 x_libraries=$ac_optarg ;; 1229 1230 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1231Try \`$0 --help' for more information" 1232 ;; 1233 1234 *=*) 1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1236 # Reject names that are not valid shell variable names. 1237 case $ac_envvar in #( 1238 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1239 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1240 esac 1241 eval $ac_envvar=\$ac_optarg 1242 export $ac_envvar ;; 1243 1244 *) 1245 # FIXME: should be removed in autoconf 3.0. 1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1249 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1250 ;; 1251 1252 esac 1253done 1254 1255if test -n "$ac_prev"; then 1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1257 as_fn_error $? "missing argument to $ac_option" 1258fi 1259 1260if test -n "$ac_unrecognized_opts"; then 1261 case $enable_option_checking in 1262 no) ;; 1263 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1265 esac 1266fi 1267 1268# Check all directory arguments for consistency. 1269for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1270 datadir sysconfdir sharedstatedir localstatedir includedir \ 1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1272 libdir localedir mandir 1273do 1274 eval ac_val=\$$ac_var 1275 # Remove trailing slashes. 1276 case $ac_val in 1277 */ ) 1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1279 eval $ac_var=\$ac_val;; 1280 esac 1281 # Be sure to have absolute directory names. 1282 case $ac_val in 1283 [\\/$]* | ?:[\\/]* ) continue;; 1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1285 esac 1286 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1287done 1288 1289# There might be people who depend on the old broken behavior: `$host' 1290# used to hold the argument of --host etc. 1291# FIXME: To remove some day. 1292build=$build_alias 1293host=$host_alias 1294target=$target_alias 1295 1296# FIXME: To remove some day. 1297if test "x$host_alias" != x; then 1298 if test "x$build_alias" = x; then 1299 cross_compiling=maybe 1300 elif test "x$build_alias" != "x$host_alias"; then 1301 cross_compiling=yes 1302 fi 1303fi 1304 1305ac_tool_prefix= 1306test -n "$host_alias" && ac_tool_prefix=$host_alias- 1307 1308test "$silent" = yes && exec 6>/dev/null 1309 1310 1311ac_pwd=`pwd` && test -n "$ac_pwd" && 1312ac_ls_di=`ls -di .` && 1313ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1314 as_fn_error $? "working directory cannot be determined" 1315test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1316 as_fn_error $? "pwd does not report name of working directory" 1317 1318 1319# Find the source files, if location was not specified. 1320if test -z "$srcdir"; then 1321 ac_srcdir_defaulted=yes 1322 # Try the directory containing this script, then the parent directory. 1323 ac_confdir=`$as_dirname -- "$as_myself" || 1324$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1325 X"$as_myself" : 'X\(//\)[^/]' \| \ 1326 X"$as_myself" : 'X\(//\)$' \| \ 1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1328$as_echo X"$as_myself" | 1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1330 s//\1/ 1331 q 1332 } 1333 /^X\(\/\/\)[^/].*/{ 1334 s//\1/ 1335 q 1336 } 1337 /^X\(\/\/\)$/{ 1338 s//\1/ 1339 q 1340 } 1341 /^X\(\/\).*/{ 1342 s//\1/ 1343 q 1344 } 1345 s/.*/./; q'` 1346 srcdir=$ac_confdir 1347 if test ! -r "$srcdir/$ac_unique_file"; then 1348 srcdir=.. 1349 fi 1350else 1351 ac_srcdir_defaulted=no 1352fi 1353if test ! -r "$srcdir/$ac_unique_file"; then 1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1355 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1356fi 1357ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1358ac_abs_confdir=`( 1359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1360 pwd)` 1361# When building in place, set srcdir=. 1362if test "$ac_abs_confdir" = "$ac_pwd"; then 1363 srcdir=. 1364fi 1365# Remove unnecessary trailing slashes from srcdir. 1366# Double slashes in file names in object file debugging info 1367# mess up M-x gdb in Emacs. 1368case $srcdir in 1369*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1370esac 1371for ac_var in $ac_precious_vars; do 1372 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1373 eval ac_env_${ac_var}_value=\$${ac_var} 1374 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1375 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1376done 1377 1378# 1379# Report the --help message. 1380# 1381if test "$ac_init_help" = "long"; then 1382 # Omit some internal or obsolete options to make the list less imposing. 1383 # This message is too long to be a string in the A/UX 3.1 sh. 1384 cat <<_ACEOF 1385\`configure' configures xf86-video-openchrome 0.4.0 to adapt to many kinds of systems. 1386 1387Usage: $0 [OPTION]... [VAR=VALUE]... 1388 1389To assign environment variables (e.g., CC, CFLAGS...), specify them as 1390VAR=VALUE. See below for descriptions of some of the useful variables. 1391 1392Defaults for the options are specified in brackets. 1393 1394Configuration: 1395 -h, --help display this help and exit 1396 --help=short display options specific to this package 1397 --help=recursive display the short help of all the included packages 1398 -V, --version display version information and exit 1399 -q, --quiet, --silent do not print \`checking ...' messages 1400 --cache-file=FILE cache test results in FILE [disabled] 1401 -C, --config-cache alias for \`--cache-file=config.cache' 1402 -n, --no-create do not create output files 1403 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1404 1405Installation directories: 1406 --prefix=PREFIX install architecture-independent files in PREFIX 1407 [$ac_default_prefix] 1408 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1409 [PREFIX] 1410 1411By default, \`make install' will install all the files in 1412\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1413an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1414for instance \`--prefix=\$HOME'. 1415 1416For better control, use the options below. 1417 1418Fine tuning of the installation directories: 1419 --bindir=DIR user executables [EPREFIX/bin] 1420 --sbindir=DIR system admin executables [EPREFIX/sbin] 1421 --libexecdir=DIR program executables [EPREFIX/libexec] 1422 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1423 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1424 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1425 --libdir=DIR object code libraries [EPREFIX/lib] 1426 --includedir=DIR C header files [PREFIX/include] 1427 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1428 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1429 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1430 --infodir=DIR info documentation [DATAROOTDIR/info] 1431 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1432 --mandir=DIR man documentation [DATAROOTDIR/man] 1433 --docdir=DIR documentation root 1434 [DATAROOTDIR/doc/xf86-video-openchrome] 1435 --htmldir=DIR html documentation [DOCDIR] 1436 --dvidir=DIR dvi documentation [DOCDIR] 1437 --pdfdir=DIR pdf documentation [DOCDIR] 1438 --psdir=DIR ps documentation [DOCDIR] 1439_ACEOF 1440 1441 cat <<\_ACEOF 1442 1443Program names: 1444 --program-prefix=PREFIX prepend PREFIX to installed program names 1445 --program-suffix=SUFFIX append SUFFIX to installed program names 1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1447 1448System types: 1449 --build=BUILD configure for building on BUILD [guessed] 1450 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1451_ACEOF 1452fi 1453 1454if test -n "$ac_init_help"; then 1455 case $ac_init_help in 1456 short | recursive ) echo "Configuration of xf86-video-openchrome 0.4.0:";; 1457 esac 1458 cat <<\_ACEOF 1459 1460Optional Features: 1461 --disable-option-checking ignore unrecognized --enable/--with options 1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1464 --enable-silent-rules less verbose build output (undo: "make V=1") 1465 --disable-silent-rules verbose build output (undo: "make V=0") 1466 --enable-maintainer-mode 1467 enable make rules and dependencies not useful (and 1468 sometimes confusing) to the casual installer 1469 --enable-static[=PKGS] build static libraries [default=no] 1470 --enable-shared[=PKGS] build shared libraries [default=yes] 1471 --enable-fast-install[=PKGS] 1472 optimize for fast installation [default=yes] 1473 --enable-dependency-tracking 1474 do not reject slow dependency extractors 1475 --disable-dependency-tracking 1476 speeds up one-time build 1477 --disable-libtool-lock avoid locking (might break parallel builds) 1478 --disable-largefile omit support for large files 1479 --enable-debug Enable debugging support [[default=no]] 1480 --enable-xv-debug Enable XVideo debugging support [[default=no]] 1481 --enable-viaregtool Enable build of registers dumper tool [[default=no]] 1482 1483Optional Packages: 1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1486 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1487 both] 1488 --with-aix-soname=aix|svr4|both 1489 shared library versioning (aka "SONAME") variant to 1490 provide on AIX, [default=aix]. 1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1492 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1493 compiler's sysroot if not specified). 1494 --with-xorg-module-dir=DIR 1495 Default xorg module directory 1496 [[default=$libdir/xorg/modules]] 1497 --with-release-version=STRING 1498 Use release version string in package name 1499 1500Some influential environment variables: 1501 CC C compiler command 1502 CFLAGS C compiler flags 1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1504 nonstandard directory <lib dir> 1505 LIBS libraries to pass to the linker, e.g. -l<library> 1506 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1507 you have headers in a nonstandard directory <include dir> 1508 LT_SYS_LIBRARY_PATH 1509 User-defined run-time library search path. 1510 CPP C preprocessor 1511 PKG_CONFIG path to pkg-config utility 1512 PKG_CONFIG_PATH 1513 directories to add to pkg-config's search path 1514 PKG_CONFIG_LIBDIR 1515 path overriding pkg-config's built-in search path 1516 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1517 XORG_LIBS linker flags for XORG, overriding pkg-config 1518 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1519 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1520 PCIACCESS_CFLAGS 1521 C compiler flags for PCIACCESS, overriding pkg-config 1522 PCIACCESS_LIBS 1523 linker flags for PCIACCESS, overriding pkg-config 1524 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1525 DRI_LIBS linker flags for DRI, overriding pkg-config 1526 LIBUDEV_CFLAGS 1527 C compiler flags for LIBUDEV, overriding pkg-config 1528 LIBUDEV_LIBS 1529 linker flags for LIBUDEV, overriding pkg-config 1530 XVMC_CFLAGS C compiler flags for XVMC, overriding pkg-config 1531 XVMC_LIBS linker flags for XVMC, overriding pkg-config 1532 1533Use these variables to override the choices made by `configure' or to help 1534it to find libraries and programs with nonstandard names/locations. 1535 1536Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome>. 1537_ACEOF 1538ac_status=$? 1539fi 1540 1541if test "$ac_init_help" = "recursive"; then 1542 # If there are subdirs, report their specific --help. 1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1544 test -d "$ac_dir" || 1545 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1546 continue 1547 ac_builddir=. 1548 1549case "$ac_dir" in 1550.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1551*) 1552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1553 # A ".." for each directory in $ac_dir_suffix. 1554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1555 case $ac_top_builddir_sub in 1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1558 esac ;; 1559esac 1560ac_abs_top_builddir=$ac_pwd 1561ac_abs_builddir=$ac_pwd$ac_dir_suffix 1562# for backward compatibility: 1563ac_top_builddir=$ac_top_build_prefix 1564 1565case $srcdir in 1566 .) # We are building in place. 1567 ac_srcdir=. 1568 ac_top_srcdir=$ac_top_builddir_sub 1569 ac_abs_top_srcdir=$ac_pwd ;; 1570 [\\/]* | ?:[\\/]* ) # Absolute name. 1571 ac_srcdir=$srcdir$ac_dir_suffix; 1572 ac_top_srcdir=$srcdir 1573 ac_abs_top_srcdir=$srcdir ;; 1574 *) # Relative name. 1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1576 ac_top_srcdir=$ac_top_build_prefix$srcdir 1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1578esac 1579ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1580 1581 cd "$ac_dir" || { ac_status=$?; continue; } 1582 # Check for guested configure. 1583 if test -f "$ac_srcdir/configure.gnu"; then 1584 echo && 1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1586 elif test -f "$ac_srcdir/configure"; then 1587 echo && 1588 $SHELL "$ac_srcdir/configure" --help=recursive 1589 else 1590 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1591 fi || ac_status=$? 1592 cd "$ac_pwd" || { ac_status=$?; break; } 1593 done 1594fi 1595 1596test -n "$ac_init_help" && exit $ac_status 1597if $ac_init_version; then 1598 cat <<\_ACEOF 1599xf86-video-openchrome configure 0.4.0 1600generated by GNU Autoconf 2.69 1601 1602Copyright (C) 2012 Free Software Foundation, Inc. 1603This configure script is free software; the Free Software Foundation 1604gives unlimited permission to copy, distribute and modify it. 1605_ACEOF 1606 exit 1607fi 1608 1609## ------------------------ ## 1610## Autoconf initialization. ## 1611## ------------------------ ## 1612 1613# ac_fn_c_try_compile LINENO 1614# -------------------------- 1615# Try to compile conftest.$ac_ext, and return whether this succeeded. 1616ac_fn_c_try_compile () 1617{ 1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1619 rm -f conftest.$ac_objext 1620 if { { ac_try="$ac_compile" 1621case "(($ac_try" in 1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1623 *) ac_try_echo=$ac_try;; 1624esac 1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1626$as_echo "$ac_try_echo"; } >&5 1627 (eval "$ac_compile") 2>conftest.err 1628 ac_status=$? 1629 if test -s conftest.err; then 1630 grep -v '^ *+' conftest.err >conftest.er1 1631 cat conftest.er1 >&5 1632 mv -f conftest.er1 conftest.err 1633 fi 1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1635 test $ac_status = 0; } && { 1636 test -z "$ac_c_werror_flag" || 1637 test ! -s conftest.err 1638 } && test -s conftest.$ac_objext; then : 1639 ac_retval=0 1640else 1641 $as_echo "$as_me: failed program was:" >&5 1642sed 's/^/| /' conftest.$ac_ext >&5 1643 1644 ac_retval=1 1645fi 1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1647 as_fn_set_status $ac_retval 1648 1649} # ac_fn_c_try_compile 1650 1651# ac_fn_c_try_link LINENO 1652# ----------------------- 1653# Try to link conftest.$ac_ext, and return whether this succeeded. 1654ac_fn_c_try_link () 1655{ 1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1657 rm -f conftest.$ac_objext conftest$ac_exeext 1658 if { { ac_try="$ac_link" 1659case "(($ac_try" in 1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1661 *) ac_try_echo=$ac_try;; 1662esac 1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1664$as_echo "$ac_try_echo"; } >&5 1665 (eval "$ac_link") 2>conftest.err 1666 ac_status=$? 1667 if test -s conftest.err; then 1668 grep -v '^ *+' conftest.err >conftest.er1 1669 cat conftest.er1 >&5 1670 mv -f conftest.er1 conftest.err 1671 fi 1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1673 test $ac_status = 0; } && { 1674 test -z "$ac_c_werror_flag" || 1675 test ! -s conftest.err 1676 } && test -s conftest$ac_exeext && { 1677 test "$cross_compiling" = yes || 1678 test -x conftest$ac_exeext 1679 }; then : 1680 ac_retval=0 1681else 1682 $as_echo "$as_me: failed program was:" >&5 1683sed 's/^/| /' conftest.$ac_ext >&5 1684 1685 ac_retval=1 1686fi 1687 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1688 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1689 # interfere with the next link command; also delete a directory that is 1690 # left behind by Apple's compiler. We do this before executing the actions. 1691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1693 as_fn_set_status $ac_retval 1694 1695} # ac_fn_c_try_link 1696 1697# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1698# ------------------------------------------------------- 1699# Tests whether HEADER exists and can be compiled using the include files in 1700# INCLUDES, setting the cache variable VAR accordingly. 1701ac_fn_c_check_header_compile () 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 for $2" >&5 1705$as_echo_n "checking for $2... " >&6; } 1706if eval \${$3+:} false; then : 1707 $as_echo_n "(cached) " >&6 1708else 1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1710/* end confdefs.h. */ 1711$4 1712#include <$2> 1713_ACEOF 1714if ac_fn_c_try_compile "$LINENO"; then : 1715 eval "$3=yes" 1716else 1717 eval "$3=no" 1718fi 1719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1720fi 1721eval ac_res=\$$3 1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1723$as_echo "$ac_res" >&6; } 1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1725 1726} # ac_fn_c_check_header_compile 1727 1728# ac_fn_c_try_cpp LINENO 1729# ---------------------- 1730# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1731ac_fn_c_try_cpp () 1732{ 1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1734 if { { ac_try="$ac_cpp conftest.$ac_ext" 1735case "(($ac_try" in 1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1737 *) ac_try_echo=$ac_try;; 1738esac 1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1740$as_echo "$ac_try_echo"; } >&5 1741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1742 ac_status=$? 1743 if test -s conftest.err; then 1744 grep -v '^ *+' conftest.err >conftest.er1 1745 cat conftest.er1 >&5 1746 mv -f conftest.er1 conftest.err 1747 fi 1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1749 test $ac_status = 0; } > conftest.i && { 1750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1751 test ! -s conftest.err 1752 }; then : 1753 ac_retval=0 1754else 1755 $as_echo "$as_me: failed program was:" >&5 1756sed 's/^/| /' conftest.$ac_ext >&5 1757 1758 ac_retval=1 1759fi 1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1761 as_fn_set_status $ac_retval 1762 1763} # ac_fn_c_try_cpp 1764 1765# ac_fn_c_try_run LINENO 1766# ---------------------- 1767# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1768# that executables *can* be run. 1769ac_fn_c_try_run () 1770{ 1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1772 if { { ac_try="$ac_link" 1773case "(($ac_try" in 1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1775 *) ac_try_echo=$ac_try;; 1776esac 1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1778$as_echo "$ac_try_echo"; } >&5 1779 (eval "$ac_link") 2>&5 1780 ac_status=$? 1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1782 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1783 { { case "(($ac_try" in 1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1785 *) ac_try_echo=$ac_try;; 1786esac 1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1788$as_echo "$ac_try_echo"; } >&5 1789 (eval "$ac_try") 2>&5 1790 ac_status=$? 1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1792 test $ac_status = 0; }; }; then : 1793 ac_retval=0 1794else 1795 $as_echo "$as_me: program exited with status $ac_status" >&5 1796 $as_echo "$as_me: failed program was:" >&5 1797sed 's/^/| /' conftest.$ac_ext >&5 1798 1799 ac_retval=$ac_status 1800fi 1801 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1803 as_fn_set_status $ac_retval 1804 1805} # ac_fn_c_try_run 1806 1807# ac_fn_c_check_func LINENO FUNC VAR 1808# ---------------------------------- 1809# Tests whether FUNC exists, setting the cache variable VAR accordingly 1810ac_fn_c_check_func () 1811{ 1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1814$as_echo_n "checking for $2... " >&6; } 1815if eval \${$3+:} false; then : 1816 $as_echo_n "(cached) " >&6 1817else 1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1819/* end confdefs.h. */ 1820/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1821 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1822#define $2 innocuous_$2 1823 1824/* System header to define __stub macros and hopefully few prototypes, 1825 which can conflict with char $2 (); below. 1826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1827 <limits.h> exists even on freestanding compilers. */ 1828 1829#ifdef __STDC__ 1830# include <limits.h> 1831#else 1832# include <assert.h> 1833#endif 1834 1835#undef $2 1836 1837/* Override any GCC internal prototype to avoid an error. 1838 Use char because int might match the return type of a GCC 1839 builtin and then its argument prototype would still apply. */ 1840#ifdef __cplusplus 1841extern "C" 1842#endif 1843char $2 (); 1844/* The GNU C library defines this for functions which it implements 1845 to always fail with ENOSYS. Some functions are actually named 1846 something starting with __ and the normal name is an alias. */ 1847#if defined __stub_$2 || defined __stub___$2 1848choke me 1849#endif 1850 1851int 1852main () 1853{ 1854return $2 (); 1855 ; 1856 return 0; 1857} 1858_ACEOF 1859if ac_fn_c_try_link "$LINENO"; then : 1860 eval "$3=yes" 1861else 1862 eval "$3=no" 1863fi 1864rm -f core conftest.err conftest.$ac_objext \ 1865 conftest$ac_exeext conftest.$ac_ext 1866fi 1867eval ac_res=\$$3 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1869$as_echo "$ac_res" >&6; } 1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1871 1872} # ac_fn_c_check_func 1873 1874# ac_fn_c_check_header_preproc LINENO HEADER VAR 1875# ---------------------------------------------- 1876# Tests whether HEADER is present, setting the cache variable VAR accordingly. 1877ac_fn_c_check_header_preproc () 1878{ 1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1881$as_echo_n "checking for $2... " >&6; } 1882if eval \${$3+:} false; then : 1883 $as_echo_n "(cached) " >&6 1884else 1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1886/* end confdefs.h. */ 1887#include <$2> 1888_ACEOF 1889if ac_fn_c_try_cpp "$LINENO"; then : 1890 eval "$3=yes" 1891else 1892 eval "$3=no" 1893fi 1894rm -f conftest.err conftest.i conftest.$ac_ext 1895fi 1896eval ac_res=\$$3 1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1898$as_echo "$ac_res" >&6; } 1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1900 1901} # ac_fn_c_check_header_preproc 1902 1903# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1904# ------------------------------------------------------- 1905# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1906# the include files in INCLUDES and setting the cache variable VAR 1907# accordingly. 1908ac_fn_c_check_header_mongrel () 1909{ 1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1911 if eval \${$3+:} false; then : 1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1913$as_echo_n "checking for $2... " >&6; } 1914if eval \${$3+:} false; then : 1915 $as_echo_n "(cached) " >&6 1916fi 1917eval ac_res=\$$3 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1919$as_echo "$ac_res" >&6; } 1920else 1921 # Is the header compilable? 1922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1923$as_echo_n "checking $2 usability... " >&6; } 1924cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1925/* end confdefs.h. */ 1926$4 1927#include <$2> 1928_ACEOF 1929if ac_fn_c_try_compile "$LINENO"; then : 1930 ac_header_compiler=yes 1931else 1932 ac_header_compiler=no 1933fi 1934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1936$as_echo "$ac_header_compiler" >&6; } 1937 1938# Is the header present? 1939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1940$as_echo_n "checking $2 presence... " >&6; } 1941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1942/* end confdefs.h. */ 1943#include <$2> 1944_ACEOF 1945if ac_fn_c_try_cpp "$LINENO"; then : 1946 ac_header_preproc=yes 1947else 1948 ac_header_preproc=no 1949fi 1950rm -f conftest.err conftest.i conftest.$ac_ext 1951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1952$as_echo "$ac_header_preproc" >&6; } 1953 1954# So? What about this header? 1955case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1956 yes:no: ) 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1958$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1960$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1961 ;; 1962 no:yes:* ) 1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1964$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1966$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1968$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1970$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1972$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1973( $as_echo "## -------------------------------------------------------------------------------------------------- ## 1974## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome ## 1975## -------------------------------------------------------------------------------------------------- ##" 1976 ) | sed "s/^/$as_me: WARNING: /" >&2 1977 ;; 1978esac 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1980$as_echo_n "checking for $2... " >&6; } 1981if eval \${$3+:} false; then : 1982 $as_echo_n "(cached) " >&6 1983else 1984 eval "$3=\$ac_header_compiler" 1985fi 1986eval ac_res=\$$3 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1988$as_echo "$ac_res" >&6; } 1989fi 1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1991 1992} # ac_fn_c_check_header_mongrel 1993cat >config.log <<_ACEOF 1994This file contains any messages produced by compilers while 1995running configure, to aid debugging if configure makes a mistake. 1996 1997It was created by xf86-video-openchrome $as_me 0.4.0, which was 1998generated by GNU Autoconf 2.69. Invocation command line was 1999 2000 $ $0 $@ 2001 2002_ACEOF 2003exec 5>>config.log 2004{ 2005cat <<_ASUNAME 2006## --------- ## 2007## Platform. ## 2008## --------- ## 2009 2010hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2011uname -m = `(uname -m) 2>/dev/null || echo unknown` 2012uname -r = `(uname -r) 2>/dev/null || echo unknown` 2013uname -s = `(uname -s) 2>/dev/null || echo unknown` 2014uname -v = `(uname -v) 2>/dev/null || echo unknown` 2015 2016/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2017/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2018 2019/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2020/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2021/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2022/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2023/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2024/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2025/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2026 2027_ASUNAME 2028 2029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2030for as_dir in $PATH 2031do 2032 IFS=$as_save_IFS 2033 test -z "$as_dir" && as_dir=. 2034 $as_echo "PATH: $as_dir" 2035 done 2036IFS=$as_save_IFS 2037 2038} >&5 2039 2040cat >&5 <<_ACEOF 2041 2042 2043## ----------- ## 2044## Core tests. ## 2045## ----------- ## 2046 2047_ACEOF 2048 2049 2050# Keep a trace of the command line. 2051# Strip out --no-create and --no-recursion so they do not pile up. 2052# Strip out --silent because we don't want to record it for future runs. 2053# Also quote any args containing shell meta-characters. 2054# Make two passes to allow for proper duplicate-argument suppression. 2055ac_configure_args= 2056ac_configure_args0= 2057ac_configure_args1= 2058ac_must_keep_next=false 2059for ac_pass in 1 2 2060do 2061 for ac_arg 2062 do 2063 case $ac_arg in 2064 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2066 | -silent | --silent | --silen | --sile | --sil) 2067 continue ;; 2068 *\'*) 2069 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2070 esac 2071 case $ac_pass in 2072 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2073 2) 2074 as_fn_append ac_configure_args1 " '$ac_arg'" 2075 if test $ac_must_keep_next = true; then 2076 ac_must_keep_next=false # Got value, back to normal. 2077 else 2078 case $ac_arg in 2079 *=* | --config-cache | -C | -disable-* | --disable-* \ 2080 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2081 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2082 | -with-* | --with-* | -without-* | --without-* | --x) 2083 case "$ac_configure_args0 " in 2084 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2085 esac 2086 ;; 2087 -* ) ac_must_keep_next=true ;; 2088 esac 2089 fi 2090 as_fn_append ac_configure_args " '$ac_arg'" 2091 ;; 2092 esac 2093 done 2094done 2095{ ac_configure_args0=; unset ac_configure_args0;} 2096{ ac_configure_args1=; unset ac_configure_args1;} 2097 2098# When interrupted or exit'd, cleanup temporary files, and complete 2099# config.log. We remove comments because anyway the quotes in there 2100# would cause problems or look ugly. 2101# WARNING: Use '\'' to represent an apostrophe within the trap. 2102# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2103trap 'exit_status=$? 2104 # Save into config.log some information that might help in debugging. 2105 { 2106 echo 2107 2108 $as_echo "## ---------------- ## 2109## Cache variables. ## 2110## ---------------- ##" 2111 echo 2112 # The following way of writing the cache mishandles newlines in values, 2113( 2114 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2115 eval ac_val=\$$ac_var 2116 case $ac_val in #( 2117 *${as_nl}*) 2118 case $ac_var in #( 2119 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2120$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2121 esac 2122 case $ac_var in #( 2123 _ | IFS | as_nl) ;; #( 2124 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2125 *) { eval $ac_var=; unset $ac_var;} ;; 2126 esac ;; 2127 esac 2128 done 2129 (set) 2>&1 | 2130 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2131 *${as_nl}ac_space=\ *) 2132 sed -n \ 2133 "s/'\''/'\''\\\\'\'''\''/g; 2134 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2135 ;; #( 2136 *) 2137 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2138 ;; 2139 esac | 2140 sort 2141) 2142 echo 2143 2144 $as_echo "## ----------------- ## 2145## Output variables. ## 2146## ----------------- ##" 2147 echo 2148 for ac_var in $ac_subst_vars 2149 do 2150 eval ac_val=\$$ac_var 2151 case $ac_val in 2152 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2153 esac 2154 $as_echo "$ac_var='\''$ac_val'\''" 2155 done | sort 2156 echo 2157 2158 if test -n "$ac_subst_files"; then 2159 $as_echo "## ------------------- ## 2160## File substitutions. ## 2161## ------------------- ##" 2162 echo 2163 for ac_var in $ac_subst_files 2164 do 2165 eval ac_val=\$$ac_var 2166 case $ac_val in 2167 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2168 esac 2169 $as_echo "$ac_var='\''$ac_val'\''" 2170 done | sort 2171 echo 2172 fi 2173 2174 if test -s confdefs.h; then 2175 $as_echo "## ----------- ## 2176## confdefs.h. ## 2177## ----------- ##" 2178 echo 2179 cat confdefs.h 2180 echo 2181 fi 2182 test "$ac_signal" != 0 && 2183 $as_echo "$as_me: caught signal $ac_signal" 2184 $as_echo "$as_me: exit $exit_status" 2185 } >&5 2186 rm -f core *.core core.conftest.* && 2187 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2188 exit $exit_status 2189' 0 2190for ac_signal in 1 2 13 15; do 2191 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2192done 2193ac_signal=0 2194 2195# confdefs.h avoids OS command line length limits that DEFS can exceed. 2196rm -f -r conftest* confdefs.h 2197 2198$as_echo "/* confdefs.h */" > confdefs.h 2199 2200# Predefined preprocessor variables. 2201 2202cat >>confdefs.h <<_ACEOF 2203#define PACKAGE_NAME "$PACKAGE_NAME" 2204_ACEOF 2205 2206cat >>confdefs.h <<_ACEOF 2207#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2208_ACEOF 2209 2210cat >>confdefs.h <<_ACEOF 2211#define PACKAGE_VERSION "$PACKAGE_VERSION" 2212_ACEOF 2213 2214cat >>confdefs.h <<_ACEOF 2215#define PACKAGE_STRING "$PACKAGE_STRING" 2216_ACEOF 2217 2218cat >>confdefs.h <<_ACEOF 2219#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2220_ACEOF 2221 2222cat >>confdefs.h <<_ACEOF 2223#define PACKAGE_URL "$PACKAGE_URL" 2224_ACEOF 2225 2226 2227# Let the site file select an alternate cache file if it wants to. 2228# Prefer an explicitly selected file to automatically selected ones. 2229ac_site_file1=NONE 2230ac_site_file2=NONE 2231if test -n "$CONFIG_SITE"; then 2232 # We do not want a PATH search for config.site. 2233 case $CONFIG_SITE in #(( 2234 -*) ac_site_file1=./$CONFIG_SITE;; 2235 */*) ac_site_file1=$CONFIG_SITE;; 2236 *) ac_site_file1=./$CONFIG_SITE;; 2237 esac 2238elif test "x$prefix" != xNONE; then 2239 ac_site_file1=$prefix/share/config.site 2240 ac_site_file2=$prefix/etc/config.site 2241else 2242 ac_site_file1=$ac_default_prefix/share/config.site 2243 ac_site_file2=$ac_default_prefix/etc/config.site 2244fi 2245for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2246do 2247 test "x$ac_site_file" = xNONE && continue 2248 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2250$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2251 sed 's/^/| /' "$ac_site_file" >&5 2252 . "$ac_site_file" \ 2253 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2255as_fn_error $? "failed to load site script $ac_site_file 2256See \`config.log' for more details" "$LINENO" 5; } 2257 fi 2258done 2259 2260if test -r "$cache_file"; then 2261 # Some versions of bash will fail to source /dev/null (special files 2262 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2263 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2264 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2265$as_echo "$as_me: loading cache $cache_file" >&6;} 2266 case $cache_file in 2267 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2268 *) . "./$cache_file";; 2269 esac 2270 fi 2271else 2272 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2273$as_echo "$as_me: creating cache $cache_file" >&6;} 2274 >$cache_file 2275fi 2276 2277# Check that the precious variables saved in the cache have kept the same 2278# value. 2279ac_cache_corrupted=false 2280for ac_var in $ac_precious_vars; do 2281 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2282 eval ac_new_set=\$ac_env_${ac_var}_set 2283 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2284 eval ac_new_val=\$ac_env_${ac_var}_value 2285 case $ac_old_set,$ac_new_set in 2286 set,) 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2288$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2289 ac_cache_corrupted=: ;; 2290 ,set) 2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2292$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2293 ac_cache_corrupted=: ;; 2294 ,);; 2295 *) 2296 if test "x$ac_old_val" != "x$ac_new_val"; then 2297 # differences in whitespace do not lead to failure. 2298 ac_old_val_w=`echo x $ac_old_val` 2299 ac_new_val_w=`echo x $ac_new_val` 2300 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2302$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2303 ac_cache_corrupted=: 2304 else 2305 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2306$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2307 eval $ac_var=\$ac_old_val 2308 fi 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2310$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2312$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2313 fi;; 2314 esac 2315 # Pass precious variables to config.status. 2316 if test "$ac_new_set" = set; then 2317 case $ac_new_val in 2318 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2319 *) ac_arg=$ac_var=$ac_new_val ;; 2320 esac 2321 case " $ac_configure_args " in 2322 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2323 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2324 esac 2325 fi 2326done 2327if $ac_cache_corrupted; then 2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2331$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2332 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2333fi 2334## -------------------- ## 2335## Main body of script. ## 2336## -------------------- ## 2337 2338ac_ext=c 2339ac_cpp='$CPP $CPPFLAGS' 2340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2342ac_compiler_gnu=$ac_cv_c_compiler_gnu 2343 2344 2345 2346 2347cat >>confdefs.h <<_ACEOF 2348#define VIA_MAJOR_VERSION $(echo $PACKAGE_VERSION | sed -e 's/^\([0-9]*\)\.[0-9]*\.[0-9]*/\1/') 2349_ACEOF 2350 2351 2352cat >>confdefs.h <<_ACEOF 2353#define VIA_MINOR_VERSION $(echo $PACKAGE_VERSION | sed -e 's/^[0-9]*\.\([0-9]*\)\.[0-9]*/\1/') 2354_ACEOF 2355 2356 2357cat >>confdefs.h <<_ACEOF 2358#define VIA_PATCHLEVEL $(echo $PACKAGE_VERSION | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)/\1/') 2359_ACEOF 2360 2361 2362 2363ac_config_headers="$ac_config_headers config.h" 2364 2365ac_aux_dir= 2366for ac_dir in . "$srcdir"/.; do 2367 if test -f "$ac_dir/install-sh"; then 2368 ac_aux_dir=$ac_dir 2369 ac_install_sh="$ac_aux_dir/install-sh -c" 2370 break 2371 elif test -f "$ac_dir/install.sh"; then 2372 ac_aux_dir=$ac_dir 2373 ac_install_sh="$ac_aux_dir/install.sh -c" 2374 break 2375 elif test -f "$ac_dir/shtool"; then 2376 ac_aux_dir=$ac_dir 2377 ac_install_sh="$ac_aux_dir/shtool install -c" 2378 break 2379 fi 2380done 2381if test -z "$ac_aux_dir"; then 2382 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2383fi 2384 2385# These three variables are undocumented and unsupported, 2386# and are intended to be withdrawn in a future Autoconf release. 2387# They can cause serious problems if a builder's source tree is in a directory 2388# whose full name contains unusual characters. 2389ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2390ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2391ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2392 2393 2394 2395am__api_version='1.15' 2396 2397# Find a good install program. We prefer a C program (faster), 2398# so one script is as good as another. But avoid the broken or 2399# incompatible versions: 2400# SysV /etc/install, /usr/sbin/install 2401# SunOS /usr/etc/install 2402# IRIX /sbin/install 2403# AIX /bin/install 2404# AmigaOS /C/install, which installs bootblocks on floppy discs 2405# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2406# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2407# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2408# OS/2's system install, which has a completely different semantic 2409# ./install, which can be erroneously created by make from ./install.sh. 2410# Reject install programs that cannot install multiple files. 2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2412$as_echo_n "checking for a BSD-compatible install... " >&6; } 2413if test -z "$INSTALL"; then 2414if ${ac_cv_path_install+:} false; then : 2415 $as_echo_n "(cached) " >&6 2416else 2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2418for as_dir in $PATH 2419do 2420 IFS=$as_save_IFS 2421 test -z "$as_dir" && as_dir=. 2422 # Account for people who put trailing slashes in PATH elements. 2423case $as_dir/ in #(( 2424 ./ | .// | /[cC]/* | \ 2425 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2426 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2427 /usr/ucb/* ) ;; 2428 *) 2429 # OSF1 and SCO ODT 3.0 have their own names for install. 2430 # Don't use installbsd from OSF since it installs stuff as root 2431 # by default. 2432 for ac_prog in ginstall scoinst install; do 2433 for ac_exec_ext in '' $ac_executable_extensions; do 2434 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2435 if test $ac_prog = install && 2436 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2437 # AIX install. It has an incompatible calling convention. 2438 : 2439 elif test $ac_prog = install && 2440 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2441 # program-specific install script used by HP pwplus--don't use. 2442 : 2443 else 2444 rm -rf conftest.one conftest.two conftest.dir 2445 echo one > conftest.one 2446 echo two > conftest.two 2447 mkdir conftest.dir 2448 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2449 test -s conftest.one && test -s conftest.two && 2450 test -s conftest.dir/conftest.one && 2451 test -s conftest.dir/conftest.two 2452 then 2453 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2454 break 3 2455 fi 2456 fi 2457 fi 2458 done 2459 done 2460 ;; 2461esac 2462 2463 done 2464IFS=$as_save_IFS 2465 2466rm -rf conftest.one conftest.two conftest.dir 2467 2468fi 2469 if test "${ac_cv_path_install+set}" = set; then 2470 INSTALL=$ac_cv_path_install 2471 else 2472 # As a last resort, use the slow shell script. Don't cache a 2473 # value for INSTALL within a source directory, because that will 2474 # break other packages using the cache if that directory is 2475 # removed, or if the value is a relative name. 2476 INSTALL=$ac_install_sh 2477 fi 2478fi 2479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2480$as_echo "$INSTALL" >&6; } 2481 2482# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2483# It thinks the first close brace ends the variable substitution. 2484test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2485 2486test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2487 2488test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2489 2490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2491$as_echo_n "checking whether build environment is sane... " >&6; } 2492# Reject unsafe characters in $srcdir or the absolute working directory 2493# name. Accept space and tab only in the latter. 2494am_lf=' 2495' 2496case `pwd` in 2497 *[\\\"\#\$\&\'\`$am_lf]*) 2498 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2499esac 2500case $srcdir in 2501 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2502 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2503esac 2504 2505# Do 'set' in a subshell so we don't clobber the current shell's 2506# arguments. Must try -L first in case configure is actually a 2507# symlink; some systems play weird games with the mod time of symlinks 2508# (eg FreeBSD returns the mod time of the symlink's containing 2509# directory). 2510if ( 2511 am_has_slept=no 2512 for am_try in 1 2; do 2513 echo "timestamp, slept: $am_has_slept" > conftest.file 2514 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2515 if test "$*" = "X"; then 2516 # -L didn't work. 2517 set X `ls -t "$srcdir/configure" conftest.file` 2518 fi 2519 if test "$*" != "X $srcdir/configure conftest.file" \ 2520 && test "$*" != "X conftest.file $srcdir/configure"; then 2521 2522 # If neither matched, then we have a broken ls. This can happen 2523 # if, for instance, CONFIG_SHELL is bash and it inherits a 2524 # broken ls alias from the environment. This has actually 2525 # happened. Such a system could not be considered "sane". 2526 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2527 alias in your environment" "$LINENO" 5 2528 fi 2529 if test "$2" = conftest.file || test $am_try -eq 2; then 2530 break 2531 fi 2532 # Just in case. 2533 sleep 1 2534 am_has_slept=yes 2535 done 2536 test "$2" = conftest.file 2537 ) 2538then 2539 # Ok. 2540 : 2541else 2542 as_fn_error $? "newly created file is older than distributed files! 2543Check your system clock" "$LINENO" 5 2544fi 2545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2546$as_echo "yes" >&6; } 2547# If we didn't sleep, we still need to ensure time stamps of config.status and 2548# generated files are strictly newer. 2549am_sleep_pid= 2550if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2551 ( sleep 1 ) & 2552 am_sleep_pid=$! 2553fi 2554 2555rm -f conftest.file 2556 2557test "$program_prefix" != NONE && 2558 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2559# Use a double $ so make ignores it. 2560test "$program_suffix" != NONE && 2561 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2562# Double any \ or $. 2563# By default was `s,x,x', remove it if useless. 2564ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2565program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2566 2567# Expand $ac_aux_dir to an absolute path. 2568am_aux_dir=`cd "$ac_aux_dir" && pwd` 2569 2570if test x"${MISSING+set}" != xset; then 2571 case $am_aux_dir in 2572 *\ * | *\ *) 2573 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2574 *) 2575 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2576 esac 2577fi 2578# Use eval to expand $SHELL 2579if eval "$MISSING --is-lightweight"; then 2580 am_missing_run="$MISSING " 2581else 2582 am_missing_run= 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2584$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2585fi 2586 2587if test x"${install_sh+set}" != xset; then 2588 case $am_aux_dir in 2589 *\ * | *\ *) 2590 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2591 *) 2592 install_sh="\${SHELL} $am_aux_dir/install-sh" 2593 esac 2594fi 2595 2596# Installed binaries are usually stripped using 'strip' when the user 2597# run "make install-strip". However 'strip' might not be the right 2598# tool to use in cross-compilation environments, therefore Automake 2599# will honor the 'STRIP' environment variable to overrule this program. 2600if test "$cross_compiling" != no; then 2601 if test -n "$ac_tool_prefix"; then 2602 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2603set dummy ${ac_tool_prefix}strip; ac_word=$2 2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2605$as_echo_n "checking for $ac_word... " >&6; } 2606if ${ac_cv_prog_STRIP+:} false; then : 2607 $as_echo_n "(cached) " >&6 2608else 2609 if test -n "$STRIP"; then 2610 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2611else 2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2613for as_dir in $PATH 2614do 2615 IFS=$as_save_IFS 2616 test -z "$as_dir" && as_dir=. 2617 for ac_exec_ext in '' $ac_executable_extensions; do 2618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2619 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2621 break 2 2622 fi 2623done 2624 done 2625IFS=$as_save_IFS 2626 2627fi 2628fi 2629STRIP=$ac_cv_prog_STRIP 2630if test -n "$STRIP"; then 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2632$as_echo "$STRIP" >&6; } 2633else 2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2635$as_echo "no" >&6; } 2636fi 2637 2638 2639fi 2640if test -z "$ac_cv_prog_STRIP"; then 2641 ac_ct_STRIP=$STRIP 2642 # Extract the first word of "strip", so it can be a program name with args. 2643set dummy strip; ac_word=$2 2644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2645$as_echo_n "checking for $ac_word... " >&6; } 2646if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2647 $as_echo_n "(cached) " >&6 2648else 2649 if test -n "$ac_ct_STRIP"; then 2650 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2651else 2652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2653for as_dir in $PATH 2654do 2655 IFS=$as_save_IFS 2656 test -z "$as_dir" && as_dir=. 2657 for ac_exec_ext in '' $ac_executable_extensions; do 2658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2659 ac_cv_prog_ac_ct_STRIP="strip" 2660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2661 break 2 2662 fi 2663done 2664 done 2665IFS=$as_save_IFS 2666 2667fi 2668fi 2669ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2670if test -n "$ac_ct_STRIP"; then 2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2672$as_echo "$ac_ct_STRIP" >&6; } 2673else 2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2675$as_echo "no" >&6; } 2676fi 2677 2678 if test "x$ac_ct_STRIP" = x; then 2679 STRIP=":" 2680 else 2681 case $cross_compiling:$ac_tool_warned in 2682yes:) 2683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2685ac_tool_warned=yes ;; 2686esac 2687 STRIP=$ac_ct_STRIP 2688 fi 2689else 2690 STRIP="$ac_cv_prog_STRIP" 2691fi 2692 2693fi 2694INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2695 2696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2697$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2698if test -z "$MKDIR_P"; then 2699 if ${ac_cv_path_mkdir+:} false; then : 2700 $as_echo_n "(cached) " >&6 2701else 2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2703for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2704do 2705 IFS=$as_save_IFS 2706 test -z "$as_dir" && as_dir=. 2707 for ac_prog in mkdir gmkdir; do 2708 for ac_exec_ext in '' $ac_executable_extensions; do 2709 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2710 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2711 'mkdir (GNU coreutils) '* | \ 2712 'mkdir (coreutils) '* | \ 2713 'mkdir (fileutils) '4.1*) 2714 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2715 break 3;; 2716 esac 2717 done 2718 done 2719 done 2720IFS=$as_save_IFS 2721 2722fi 2723 2724 test -d ./--version && rmdir ./--version 2725 if test "${ac_cv_path_mkdir+set}" = set; then 2726 MKDIR_P="$ac_cv_path_mkdir -p" 2727 else 2728 # As a last resort, use the slow shell script. Don't cache a 2729 # value for MKDIR_P within a source directory, because that will 2730 # break other packages using the cache if that directory is 2731 # removed, or if the value is a relative name. 2732 MKDIR_P="$ac_install_sh -d" 2733 fi 2734fi 2735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2736$as_echo "$MKDIR_P" >&6; } 2737 2738for ac_prog in gawk mawk nawk awk 2739do 2740 # Extract the first word of "$ac_prog", so it can be a program name with args. 2741set dummy $ac_prog; ac_word=$2 2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2743$as_echo_n "checking for $ac_word... " >&6; } 2744if ${ac_cv_prog_AWK+:} false; then : 2745 $as_echo_n "(cached) " >&6 2746else 2747 if test -n "$AWK"; then 2748 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2749else 2750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2751for as_dir in $PATH 2752do 2753 IFS=$as_save_IFS 2754 test -z "$as_dir" && as_dir=. 2755 for ac_exec_ext in '' $ac_executable_extensions; do 2756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2757 ac_cv_prog_AWK="$ac_prog" 2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2759 break 2 2760 fi 2761done 2762 done 2763IFS=$as_save_IFS 2764 2765fi 2766fi 2767AWK=$ac_cv_prog_AWK 2768if test -n "$AWK"; then 2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2770$as_echo "$AWK" >&6; } 2771else 2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2773$as_echo "no" >&6; } 2774fi 2775 2776 2777 test -n "$AWK" && break 2778done 2779 2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2781$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2782set x ${MAKE-make} 2783ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2784if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2785 $as_echo_n "(cached) " >&6 2786else 2787 cat >conftest.make <<\_ACEOF 2788SHELL = /bin/sh 2789all: 2790 @echo '@@@%%%=$(MAKE)=@@@%%%' 2791_ACEOF 2792# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2793case `${MAKE-make} -f conftest.make 2>/dev/null` in 2794 *@@@%%%=?*=@@@%%%*) 2795 eval ac_cv_prog_make_${ac_make}_set=yes;; 2796 *) 2797 eval ac_cv_prog_make_${ac_make}_set=no;; 2798esac 2799rm -f conftest.make 2800fi 2801if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2803$as_echo "yes" >&6; } 2804 SET_MAKE= 2805else 2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2807$as_echo "no" >&6; } 2808 SET_MAKE="MAKE=${MAKE-make}" 2809fi 2810 2811rm -rf .tst 2>/dev/null 2812mkdir .tst 2>/dev/null 2813if test -d .tst; then 2814 am__leading_dot=. 2815else 2816 am__leading_dot=_ 2817fi 2818rmdir .tst 2>/dev/null 2819 2820# Check whether --enable-silent-rules was given. 2821if test "${enable_silent_rules+set}" = set; then : 2822 enableval=$enable_silent_rules; 2823fi 2824 2825case $enable_silent_rules in # ((( 2826 yes) AM_DEFAULT_VERBOSITY=0;; 2827 no) AM_DEFAULT_VERBOSITY=1;; 2828 *) AM_DEFAULT_VERBOSITY=1;; 2829esac 2830am_make=${MAKE-make} 2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2832$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2833if ${am_cv_make_support_nested_variables+:} false; then : 2834 $as_echo_n "(cached) " >&6 2835else 2836 if $as_echo 'TRUE=$(BAR$(V)) 2837BAR0=false 2838BAR1=true 2839V=1 2840am__doit: 2841 @$(TRUE) 2842.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2843 am_cv_make_support_nested_variables=yes 2844else 2845 am_cv_make_support_nested_variables=no 2846fi 2847fi 2848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2849$as_echo "$am_cv_make_support_nested_variables" >&6; } 2850if test $am_cv_make_support_nested_variables = yes; then 2851 AM_V='$(V)' 2852 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2853else 2854 AM_V=$AM_DEFAULT_VERBOSITY 2855 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2856fi 2857AM_BACKSLASH='\' 2858 2859if test "`cd $srcdir && pwd`" != "`pwd`"; then 2860 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2861 # is not polluted with repeated "-I." 2862 am__isrc=' -I$(srcdir)' 2863 # test to see if srcdir already configured 2864 if test -f $srcdir/config.status; then 2865 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2866 fi 2867fi 2868 2869# test whether we have cygpath 2870if test -z "$CYGPATH_W"; then 2871 if (cygpath --version) >/dev/null 2>/dev/null; then 2872 CYGPATH_W='cygpath -w' 2873 else 2874 CYGPATH_W=echo 2875 fi 2876fi 2877 2878 2879# Define the identity of the package. 2880 PACKAGE='xf86-video-openchrome' 2881 VERSION='0.4.0' 2882 2883 2884cat >>confdefs.h <<_ACEOF 2885#define PACKAGE "$PACKAGE" 2886_ACEOF 2887 2888 2889cat >>confdefs.h <<_ACEOF 2890#define VERSION "$VERSION" 2891_ACEOF 2892 2893# Some tools Automake needs. 2894 2895ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2896 2897 2898AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2899 2900 2901AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2902 2903 2904AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2905 2906 2907MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2908 2909# For better backward compatibility. To be removed once Automake 1.9.x 2910# dies out for good. For more background, see: 2911# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2912# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2913mkdir_p='$(MKDIR_P)' 2914 2915# We need awk for the "check" target (and possibly the TAP driver). The 2916# system "awk" is bad on some platforms. 2917# Always define AMTAR for backward compatibility. Yes, it's still used 2918# in the wild :-( We should find a proper way to deprecate it ... 2919AMTAR='$${TAR-tar}' 2920 2921 2922# We'll loop over all known methods to create a tar archive until one works. 2923_am_tools='gnutar pax cpio none' 2924 2925am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2926 2927 2928 2929 2930 2931 2932# POSIX will say in a future version that running "rm -f" with no argument 2933# is OK; and we want to be able to make that assumption in our Makefile 2934# recipes. So use an aggressive probe to check that the usage we want is 2935# actually supported "in the wild" to an acceptable degree. 2936# See automake bug#10828. 2937# To make any issue more visible, cause the running configure to be aborted 2938# by default if the 'rm' program in use doesn't match our expectations; the 2939# user can still override this though. 2940if rm -f && rm -fr && rm -rf; then : OK; else 2941 cat >&2 <<'END' 2942Oops! 2943 2944Your 'rm' program seems unable to run without file operands specified 2945on the command line, even when the '-f' option is present. This is contrary 2946to the behaviour of most rm programs out there, and not conforming with 2947the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2948 2949Please tell bug-automake@gnu.org about your system, including the value 2950of your $PATH and any error possibly output before this message. This 2951can help us improve future automake versions. 2952 2953END 2954 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2955 echo 'Configuration will proceed anyway, since you have set the' >&2 2956 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2957 echo >&2 2958 else 2959 cat >&2 <<'END' 2960Aborting the configuration process, to ensure you take notice of the issue. 2961 2962You can download and install GNU coreutils to get an 'rm' implementation 2963that behaves properly: <http://www.gnu.org/software/coreutils/>. 2964 2965If you want to complete the configuration process using your problematic 2966'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2967to "yes", and re-run configure. 2968 2969END 2970 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2971 fi 2972fi 2973 2974 2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2976$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2977 # Check whether --enable-maintainer-mode was given. 2978if test "${enable_maintainer_mode+set}" = set; then : 2979 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2980else 2981 USE_MAINTAINER_MODE=no 2982fi 2983 2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2985$as_echo "$USE_MAINTAINER_MODE" >&6; } 2986 if test $USE_MAINTAINER_MODE = yes; then 2987 MAINTAINER_MODE_TRUE= 2988 MAINTAINER_MODE_FALSE='#' 2989else 2990 MAINTAINER_MODE_TRUE='#' 2991 MAINTAINER_MODE_FALSE= 2992fi 2993 2994 MAINT=$MAINTAINER_MODE_TRUE 2995 2996 2997 2998# Initialize libtool 2999# Check whether --enable-static was given. 3000if test "${enable_static+set}" = set; then : 3001 enableval=$enable_static; p=${PACKAGE-default} 3002 case $enableval in 3003 yes) enable_static=yes ;; 3004 no) enable_static=no ;; 3005 *) 3006 enable_static=no 3007 # Look at the argument we got. We use all the common list separators. 3008 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 3009 for pkg in $enableval; do 3010 IFS=$lt_save_ifs 3011 if test "X$pkg" = "X$p"; then 3012 enable_static=yes 3013 fi 3014 done 3015 IFS=$lt_save_ifs 3016 ;; 3017 esac 3018else 3019 enable_static=no 3020fi 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030case `pwd` in 3031 *\ * | *\ *) 3032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3033$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3034esac 3035 3036 3037 3038macro_version='2.4.6' 3039macro_revision='2.4.6' 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053ltmain=$ac_aux_dir/ltmain.sh 3054 3055# Make sure we can run config.sub. 3056$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3057 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3058 3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3060$as_echo_n "checking build system type... " >&6; } 3061if ${ac_cv_build+:} false; then : 3062 $as_echo_n "(cached) " >&6 3063else 3064 ac_build_alias=$build_alias 3065test "x$ac_build_alias" = x && 3066 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3067test "x$ac_build_alias" = x && 3068 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3069ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3070 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3071 3072fi 3073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3074$as_echo "$ac_cv_build" >&6; } 3075case $ac_cv_build in 3076*-*-*) ;; 3077*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3078esac 3079build=$ac_cv_build 3080ac_save_IFS=$IFS; IFS='-' 3081set x $ac_cv_build 3082shift 3083build_cpu=$1 3084build_vendor=$2 3085shift; shift 3086# Remember, the first character of IFS is used to create $*, 3087# except with old shells: 3088build_os=$* 3089IFS=$ac_save_IFS 3090case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3091 3092 3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3094$as_echo_n "checking host system type... " >&6; } 3095if ${ac_cv_host+:} false; then : 3096 $as_echo_n "(cached) " >&6 3097else 3098 if test "x$host_alias" = x; then 3099 ac_cv_host=$ac_cv_build 3100else 3101 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3102 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3103fi 3104 3105fi 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3107$as_echo "$ac_cv_host" >&6; } 3108case $ac_cv_host in 3109*-*-*) ;; 3110*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3111esac 3112host=$ac_cv_host 3113ac_save_IFS=$IFS; IFS='-' 3114set x $ac_cv_host 3115shift 3116host_cpu=$1 3117host_vendor=$2 3118shift; shift 3119# Remember, the first character of IFS is used to create $*, 3120# except with old shells: 3121host_os=$* 3122IFS=$ac_save_IFS 3123case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3124 3125 3126# Backslashify metacharacters that are still active within 3127# double-quoted strings. 3128sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3129 3130# Same as above, but do not quote variable references. 3131double_quote_subst='s/\(["`\\]\)/\\\1/g' 3132 3133# Sed substitution to delay expansion of an escaped shell variable in a 3134# double_quote_subst'ed string. 3135delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3136 3137# Sed substitution to delay expansion of an escaped single quote. 3138delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3139 3140# Sed substitution to avoid accidental globbing in evaled expressions 3141no_glob_subst='s/\*/\\\*/g' 3142 3143ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3144ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3145ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3146 3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3148$as_echo_n "checking how to print strings... " >&6; } 3149# Test print first, because it will be a builtin if present. 3150if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3151 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3152 ECHO='print -r --' 3153elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3154 ECHO='printf %s\n' 3155else 3156 # Use this function as a fallback that always works. 3157 func_fallback_echo () 3158 { 3159 eval 'cat <<_LTECHO_EOF 3160$1 3161_LTECHO_EOF' 3162 } 3163 ECHO='func_fallback_echo' 3164fi 3165 3166# func_echo_all arg... 3167# Invoke $ECHO with all args, space-separated. 3168func_echo_all () 3169{ 3170 $ECHO "" 3171} 3172 3173case $ECHO in 3174 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3175$as_echo "printf" >&6; } ;; 3176 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3177$as_echo "print -r" >&6; } ;; 3178 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3179$as_echo "cat" >&6; } ;; 3180esac 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195DEPDIR="${am__leading_dot}deps" 3196 3197ac_config_commands="$ac_config_commands depfiles" 3198 3199 3200am_make=${MAKE-make} 3201cat > confinc << 'END' 3202am__doit: 3203 @echo this is the am__doit target 3204.PHONY: am__doit 3205END 3206# If we don't find an include directive, just comment out the code. 3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3208$as_echo_n "checking for style of include used by $am_make... " >&6; } 3209am__include="#" 3210am__quote= 3211_am_result=none 3212# First try GNU make style include. 3213echo "include confinc" > confmf 3214# Ignore all kinds of additional output from 'make'. 3215case `$am_make -s -f confmf 2> /dev/null` in #( 3216*the\ am__doit\ target*) 3217 am__include=include 3218 am__quote= 3219 _am_result=GNU 3220 ;; 3221esac 3222# Now try BSD make style include. 3223if test "$am__include" = "#"; then 3224 echo '.include "confinc"' > confmf 3225 case `$am_make -s -f confmf 2> /dev/null` in #( 3226 *the\ am__doit\ target*) 3227 am__include=.include 3228 am__quote="\"" 3229 _am_result=BSD 3230 ;; 3231 esac 3232fi 3233 3234 3235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3236$as_echo "$_am_result" >&6; } 3237rm -f confinc confmf 3238 3239# Check whether --enable-dependency-tracking was given. 3240if test "${enable_dependency_tracking+set}" = set; then : 3241 enableval=$enable_dependency_tracking; 3242fi 3243 3244if test "x$enable_dependency_tracking" != xno; then 3245 am_depcomp="$ac_aux_dir/depcomp" 3246 AMDEPBACKSLASH='\' 3247 am__nodep='_no' 3248fi 3249 if test "x$enable_dependency_tracking" != xno; then 3250 AMDEP_TRUE= 3251 AMDEP_FALSE='#' 3252else 3253 AMDEP_TRUE='#' 3254 AMDEP_FALSE= 3255fi 3256 3257 3258ac_ext=c 3259ac_cpp='$CPP $CPPFLAGS' 3260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3262ac_compiler_gnu=$ac_cv_c_compiler_gnu 3263if test -n "$ac_tool_prefix"; then 3264 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3265set dummy ${ac_tool_prefix}gcc; ac_word=$2 3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3267$as_echo_n "checking for $ac_word... " >&6; } 3268if ${ac_cv_prog_CC+:} false; then : 3269 $as_echo_n "(cached) " >&6 3270else 3271 if test -n "$CC"; then 3272 ac_cv_prog_CC="$CC" # Let the user override the test. 3273else 3274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3275for as_dir in $PATH 3276do 3277 IFS=$as_save_IFS 3278 test -z "$as_dir" && as_dir=. 3279 for ac_exec_ext in '' $ac_executable_extensions; do 3280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3281 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3283 break 2 3284 fi 3285done 3286 done 3287IFS=$as_save_IFS 3288 3289fi 3290fi 3291CC=$ac_cv_prog_CC 3292if test -n "$CC"; then 3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3294$as_echo "$CC" >&6; } 3295else 3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3297$as_echo "no" >&6; } 3298fi 3299 3300 3301fi 3302if test -z "$ac_cv_prog_CC"; then 3303 ac_ct_CC=$CC 3304 # Extract the first word of "gcc", so it can be a program name with args. 3305set dummy gcc; ac_word=$2 3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3307$as_echo_n "checking for $ac_word... " >&6; } 3308if ${ac_cv_prog_ac_ct_CC+:} false; then : 3309 $as_echo_n "(cached) " >&6 3310else 3311 if test -n "$ac_ct_CC"; then 3312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3313else 3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3315for as_dir in $PATH 3316do 3317 IFS=$as_save_IFS 3318 test -z "$as_dir" && as_dir=. 3319 for ac_exec_ext in '' $ac_executable_extensions; do 3320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3321 ac_cv_prog_ac_ct_CC="gcc" 3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3323 break 2 3324 fi 3325done 3326 done 3327IFS=$as_save_IFS 3328 3329fi 3330fi 3331ac_ct_CC=$ac_cv_prog_ac_ct_CC 3332if test -n "$ac_ct_CC"; then 3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3334$as_echo "$ac_ct_CC" >&6; } 3335else 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3337$as_echo "no" >&6; } 3338fi 3339 3340 if test "x$ac_ct_CC" = x; then 3341 CC="" 3342 else 3343 case $cross_compiling:$ac_tool_warned in 3344yes:) 3345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3347ac_tool_warned=yes ;; 3348esac 3349 CC=$ac_ct_CC 3350 fi 3351else 3352 CC="$ac_cv_prog_CC" 3353fi 3354 3355if test -z "$CC"; then 3356 if test -n "$ac_tool_prefix"; then 3357 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3358set dummy ${ac_tool_prefix}cc; ac_word=$2 3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3360$as_echo_n "checking for $ac_word... " >&6; } 3361if ${ac_cv_prog_CC+:} false; then : 3362 $as_echo_n "(cached) " >&6 3363else 3364 if test -n "$CC"; then 3365 ac_cv_prog_CC="$CC" # Let the user override the test. 3366else 3367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3368for as_dir in $PATH 3369do 3370 IFS=$as_save_IFS 3371 test -z "$as_dir" && as_dir=. 3372 for ac_exec_ext in '' $ac_executable_extensions; do 3373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3374 ac_cv_prog_CC="${ac_tool_prefix}cc" 3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3376 break 2 3377 fi 3378done 3379 done 3380IFS=$as_save_IFS 3381 3382fi 3383fi 3384CC=$ac_cv_prog_CC 3385if test -n "$CC"; then 3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3387$as_echo "$CC" >&6; } 3388else 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3390$as_echo "no" >&6; } 3391fi 3392 3393 3394 fi 3395fi 3396if test -z "$CC"; then 3397 # Extract the first word of "cc", so it can be a program name with args. 3398set dummy cc; ac_word=$2 3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3400$as_echo_n "checking for $ac_word... " >&6; } 3401if ${ac_cv_prog_CC+:} false; then : 3402 $as_echo_n "(cached) " >&6 3403else 3404 if test -n "$CC"; then 3405 ac_cv_prog_CC="$CC" # Let the user override the test. 3406else 3407 ac_prog_rejected=no 3408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3409for as_dir in $PATH 3410do 3411 IFS=$as_save_IFS 3412 test -z "$as_dir" && as_dir=. 3413 for ac_exec_ext in '' $ac_executable_extensions; do 3414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3415 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3416 ac_prog_rejected=yes 3417 continue 3418 fi 3419 ac_cv_prog_CC="cc" 3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3421 break 2 3422 fi 3423done 3424 done 3425IFS=$as_save_IFS 3426 3427if test $ac_prog_rejected = yes; then 3428 # We found a bogon in the path, so make sure we never use it. 3429 set dummy $ac_cv_prog_CC 3430 shift 3431 if test $# != 0; then 3432 # We chose a different compiler from the bogus one. 3433 # However, it has the same basename, so the bogon will be chosen 3434 # first if we set CC to just the basename; use the full file name. 3435 shift 3436 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3437 fi 3438fi 3439fi 3440fi 3441CC=$ac_cv_prog_CC 3442if test -n "$CC"; then 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3444$as_echo "$CC" >&6; } 3445else 3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3447$as_echo "no" >&6; } 3448fi 3449 3450 3451fi 3452if test -z "$CC"; then 3453 if test -n "$ac_tool_prefix"; then 3454 for ac_prog in cl.exe 3455 do 3456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3457set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3459$as_echo_n "checking for $ac_word... " >&6; } 3460if ${ac_cv_prog_CC+:} false; then : 3461 $as_echo_n "(cached) " >&6 3462else 3463 if test -n "$CC"; then 3464 ac_cv_prog_CC="$CC" # Let the user override the test. 3465else 3466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3467for as_dir in $PATH 3468do 3469 IFS=$as_save_IFS 3470 test -z "$as_dir" && as_dir=. 3471 for ac_exec_ext in '' $ac_executable_extensions; do 3472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3473 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3475 break 2 3476 fi 3477done 3478 done 3479IFS=$as_save_IFS 3480 3481fi 3482fi 3483CC=$ac_cv_prog_CC 3484if test -n "$CC"; then 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3486$as_echo "$CC" >&6; } 3487else 3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3489$as_echo "no" >&6; } 3490fi 3491 3492 3493 test -n "$CC" && break 3494 done 3495fi 3496if test -z "$CC"; then 3497 ac_ct_CC=$CC 3498 for ac_prog in cl.exe 3499do 3500 # Extract the first word of "$ac_prog", so it can be a program name with args. 3501set dummy $ac_prog; ac_word=$2 3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3503$as_echo_n "checking for $ac_word... " >&6; } 3504if ${ac_cv_prog_ac_ct_CC+:} false; then : 3505 $as_echo_n "(cached) " >&6 3506else 3507 if test -n "$ac_ct_CC"; then 3508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3509else 3510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3511for as_dir in $PATH 3512do 3513 IFS=$as_save_IFS 3514 test -z "$as_dir" && as_dir=. 3515 for ac_exec_ext in '' $ac_executable_extensions; do 3516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3517 ac_cv_prog_ac_ct_CC="$ac_prog" 3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3519 break 2 3520 fi 3521done 3522 done 3523IFS=$as_save_IFS 3524 3525fi 3526fi 3527ac_ct_CC=$ac_cv_prog_ac_ct_CC 3528if test -n "$ac_ct_CC"; then 3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3530$as_echo "$ac_ct_CC" >&6; } 3531else 3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3533$as_echo "no" >&6; } 3534fi 3535 3536 3537 test -n "$ac_ct_CC" && break 3538done 3539 3540 if test "x$ac_ct_CC" = x; then 3541 CC="" 3542 else 3543 case $cross_compiling:$ac_tool_warned in 3544yes:) 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3547ac_tool_warned=yes ;; 3548esac 3549 CC=$ac_ct_CC 3550 fi 3551fi 3552 3553fi 3554 3555 3556test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3558as_fn_error $? "no acceptable C compiler found in \$PATH 3559See \`config.log' for more details" "$LINENO" 5; } 3560 3561# Provide some information about the compiler. 3562$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3563set X $ac_compile 3564ac_compiler=$2 3565for ac_option in --version -v -V -qversion; do 3566 { { ac_try="$ac_compiler $ac_option >&5" 3567case "(($ac_try" in 3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3569 *) ac_try_echo=$ac_try;; 3570esac 3571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3572$as_echo "$ac_try_echo"; } >&5 3573 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3574 ac_status=$? 3575 if test -s conftest.err; then 3576 sed '10a\ 3577... rest of stderr output deleted ... 3578 10q' conftest.err >conftest.er1 3579 cat conftest.er1 >&5 3580 fi 3581 rm -f conftest.er1 conftest.err 3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3583 test $ac_status = 0; } 3584done 3585 3586cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3587/* end confdefs.h. */ 3588 3589int 3590main () 3591{ 3592 3593 ; 3594 return 0; 3595} 3596_ACEOF 3597ac_clean_files_save=$ac_clean_files 3598ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3599# Try to create an executable without -o first, disregard a.out. 3600# It will help us diagnose broken compilers, and finding out an intuition 3601# of exeext. 3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3603$as_echo_n "checking whether the C compiler works... " >&6; } 3604ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3605 3606# The possible output files: 3607ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3608 3609ac_rmfiles= 3610for ac_file in $ac_files 3611do 3612 case $ac_file in 3613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3614 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3615 esac 3616done 3617rm -f $ac_rmfiles 3618 3619if { { ac_try="$ac_link_default" 3620case "(($ac_try" in 3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3622 *) ac_try_echo=$ac_try;; 3623esac 3624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3625$as_echo "$ac_try_echo"; } >&5 3626 (eval "$ac_link_default") 2>&5 3627 ac_status=$? 3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3629 test $ac_status = 0; }; then : 3630 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3631# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3632# in a Makefile. We should not override ac_cv_exeext if it was cached, 3633# so that the user can short-circuit this test for compilers unknown to 3634# Autoconf. 3635for ac_file in $ac_files '' 3636do 3637 test -f "$ac_file" || continue 3638 case $ac_file in 3639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3640 ;; 3641 [ab].out ) 3642 # We found the default executable, but exeext='' is most 3643 # certainly right. 3644 break;; 3645 *.* ) 3646 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3647 then :; else 3648 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3649 fi 3650 # We set ac_cv_exeext here because the later test for it is not 3651 # safe: cross compilers may not add the suffix if given an `-o' 3652 # argument, so we may need to know it at that point already. 3653 # Even if this section looks crufty: it has the advantage of 3654 # actually working. 3655 break;; 3656 * ) 3657 break;; 3658 esac 3659done 3660test "$ac_cv_exeext" = no && ac_cv_exeext= 3661 3662else 3663 ac_file='' 3664fi 3665if test -z "$ac_file"; then : 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3667$as_echo "no" >&6; } 3668$as_echo "$as_me: failed program was:" >&5 3669sed 's/^/| /' conftest.$ac_ext >&5 3670 3671{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3673as_fn_error 77 "C compiler cannot create executables 3674See \`config.log' for more details" "$LINENO" 5; } 3675else 3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3677$as_echo "yes" >&6; } 3678fi 3679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3680$as_echo_n "checking for C compiler default output file name... " >&6; } 3681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3682$as_echo "$ac_file" >&6; } 3683ac_exeext=$ac_cv_exeext 3684 3685rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3686ac_clean_files=$ac_clean_files_save 3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3688$as_echo_n "checking for suffix of executables... " >&6; } 3689if { { ac_try="$ac_link" 3690case "(($ac_try" in 3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3692 *) ac_try_echo=$ac_try;; 3693esac 3694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3695$as_echo "$ac_try_echo"; } >&5 3696 (eval "$ac_link") 2>&5 3697 ac_status=$? 3698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3699 test $ac_status = 0; }; then : 3700 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3701# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3702# work properly (i.e., refer to `conftest.exe'), while it won't with 3703# `rm'. 3704for ac_file in conftest.exe conftest conftest.*; do 3705 test -f "$ac_file" || continue 3706 case $ac_file in 3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3708 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3709 break;; 3710 * ) break;; 3711 esac 3712done 3713else 3714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3716as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3717See \`config.log' for more details" "$LINENO" 5; } 3718fi 3719rm -f conftest conftest$ac_cv_exeext 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3721$as_echo "$ac_cv_exeext" >&6; } 3722 3723rm -f conftest.$ac_ext 3724EXEEXT=$ac_cv_exeext 3725ac_exeext=$EXEEXT 3726cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3727/* end confdefs.h. */ 3728#include <stdio.h> 3729int 3730main () 3731{ 3732FILE *f = fopen ("conftest.out", "w"); 3733 return ferror (f) || fclose (f) != 0; 3734 3735 ; 3736 return 0; 3737} 3738_ACEOF 3739ac_clean_files="$ac_clean_files conftest.out" 3740# Check that the compiler produces executables we can run. If not, either 3741# the compiler is broken, or we cross compile. 3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3743$as_echo_n "checking whether we are cross compiling... " >&6; } 3744if test "$cross_compiling" != yes; then 3745 { { ac_try="$ac_link" 3746case "(($ac_try" in 3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3748 *) ac_try_echo=$ac_try;; 3749esac 3750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3751$as_echo "$ac_try_echo"; } >&5 3752 (eval "$ac_link") 2>&5 3753 ac_status=$? 3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3755 test $ac_status = 0; } 3756 if { ac_try='./conftest$ac_cv_exeext' 3757 { { case "(($ac_try" in 3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3759 *) ac_try_echo=$ac_try;; 3760esac 3761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3762$as_echo "$ac_try_echo"; } >&5 3763 (eval "$ac_try") 2>&5 3764 ac_status=$? 3765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3766 test $ac_status = 0; }; }; then 3767 cross_compiling=no 3768 else 3769 if test "$cross_compiling" = maybe; then 3770 cross_compiling=yes 3771 else 3772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3774as_fn_error $? "cannot run C compiled programs. 3775If you meant to cross compile, use \`--host'. 3776See \`config.log' for more details" "$LINENO" 5; } 3777 fi 3778 fi 3779fi 3780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3781$as_echo "$cross_compiling" >&6; } 3782 3783rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3784ac_clean_files=$ac_clean_files_save 3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3786$as_echo_n "checking for suffix of object files... " >&6; } 3787if ${ac_cv_objext+:} false; then : 3788 $as_echo_n "(cached) " >&6 3789else 3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3791/* end confdefs.h. */ 3792 3793int 3794main () 3795{ 3796 3797 ; 3798 return 0; 3799} 3800_ACEOF 3801rm -f conftest.o conftest.obj 3802if { { ac_try="$ac_compile" 3803case "(($ac_try" in 3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3805 *) ac_try_echo=$ac_try;; 3806esac 3807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3808$as_echo "$ac_try_echo"; } >&5 3809 (eval "$ac_compile") 2>&5 3810 ac_status=$? 3811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3812 test $ac_status = 0; }; then : 3813 for ac_file in conftest.o conftest.obj conftest.*; do 3814 test -f "$ac_file" || continue; 3815 case $ac_file in 3816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3817 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3818 break;; 3819 esac 3820done 3821else 3822 $as_echo "$as_me: failed program was:" >&5 3823sed 's/^/| /' conftest.$ac_ext >&5 3824 3825{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3827as_fn_error $? "cannot compute suffix of object files: cannot compile 3828See \`config.log' for more details" "$LINENO" 5; } 3829fi 3830rm -f conftest.$ac_cv_objext conftest.$ac_ext 3831fi 3832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3833$as_echo "$ac_cv_objext" >&6; } 3834OBJEXT=$ac_cv_objext 3835ac_objext=$OBJEXT 3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3837$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3838if ${ac_cv_c_compiler_gnu+:} false; then : 3839 $as_echo_n "(cached) " >&6 3840else 3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3842/* end confdefs.h. */ 3843 3844int 3845main () 3846{ 3847#ifndef __GNUC__ 3848 choke me 3849#endif 3850 3851 ; 3852 return 0; 3853} 3854_ACEOF 3855if ac_fn_c_try_compile "$LINENO"; then : 3856 ac_compiler_gnu=yes 3857else 3858 ac_compiler_gnu=no 3859fi 3860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3861ac_cv_c_compiler_gnu=$ac_compiler_gnu 3862 3863fi 3864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3865$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3866if test $ac_compiler_gnu = yes; then 3867 GCC=yes 3868else 3869 GCC= 3870fi 3871ac_test_CFLAGS=${CFLAGS+set} 3872ac_save_CFLAGS=$CFLAGS 3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3874$as_echo_n "checking whether $CC accepts -g... " >&6; } 3875if ${ac_cv_prog_cc_g+:} false; then : 3876 $as_echo_n "(cached) " >&6 3877else 3878 ac_save_c_werror_flag=$ac_c_werror_flag 3879 ac_c_werror_flag=yes 3880 ac_cv_prog_cc_g=no 3881 CFLAGS="-g" 3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3883/* end confdefs.h. */ 3884 3885int 3886main () 3887{ 3888 3889 ; 3890 return 0; 3891} 3892_ACEOF 3893if ac_fn_c_try_compile "$LINENO"; then : 3894 ac_cv_prog_cc_g=yes 3895else 3896 CFLAGS="" 3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3898/* end confdefs.h. */ 3899 3900int 3901main () 3902{ 3903 3904 ; 3905 return 0; 3906} 3907_ACEOF 3908if ac_fn_c_try_compile "$LINENO"; then : 3909 3910else 3911 ac_c_werror_flag=$ac_save_c_werror_flag 3912 CFLAGS="-g" 3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3914/* end confdefs.h. */ 3915 3916int 3917main () 3918{ 3919 3920 ; 3921 return 0; 3922} 3923_ACEOF 3924if ac_fn_c_try_compile "$LINENO"; then : 3925 ac_cv_prog_cc_g=yes 3926fi 3927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3928fi 3929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3930fi 3931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3932 ac_c_werror_flag=$ac_save_c_werror_flag 3933fi 3934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3935$as_echo "$ac_cv_prog_cc_g" >&6; } 3936if test "$ac_test_CFLAGS" = set; then 3937 CFLAGS=$ac_save_CFLAGS 3938elif test $ac_cv_prog_cc_g = yes; then 3939 if test "$GCC" = yes; then 3940 CFLAGS="-g -O2" 3941 else 3942 CFLAGS="-g" 3943 fi 3944else 3945 if test "$GCC" = yes; then 3946 CFLAGS="-O2" 3947 else 3948 CFLAGS= 3949 fi 3950fi 3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3952$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3953if ${ac_cv_prog_cc_c89+:} false; then : 3954 $as_echo_n "(cached) " >&6 3955else 3956 ac_cv_prog_cc_c89=no 3957ac_save_CC=$CC 3958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3959/* end confdefs.h. */ 3960#include <stdarg.h> 3961#include <stdio.h> 3962struct stat; 3963/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3964struct buf { int x; }; 3965FILE * (*rcsopen) (struct buf *, struct stat *, int); 3966static char *e (p, i) 3967 char **p; 3968 int i; 3969{ 3970 return p[i]; 3971} 3972static char *f (char * (*g) (char **, int), char **p, ...) 3973{ 3974 char *s; 3975 va_list v; 3976 va_start (v,p); 3977 s = g (p, va_arg (v,int)); 3978 va_end (v); 3979 return s; 3980} 3981 3982/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3983 function prototypes and stuff, but not '\xHH' hex character constants. 3984 These don't provoke an error unfortunately, instead are silently treated 3985 as 'x'. The following induces an error, until -std is added to get 3986 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3987 array size at least. It's necessary to write '\x00'==0 to get something 3988 that's true only with -std. */ 3989int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3990 3991/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3992 inside strings and character constants. */ 3993#define FOO(x) 'x' 3994int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3995 3996int test (int i, double x); 3997struct s1 {int (*f) (int a);}; 3998struct s2 {int (*f) (double a);}; 3999int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4000int argc; 4001char **argv; 4002int 4003main () 4004{ 4005return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4006 ; 4007 return 0; 4008} 4009_ACEOF 4010for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4011 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4012do 4013 CC="$ac_save_CC $ac_arg" 4014 if ac_fn_c_try_compile "$LINENO"; then : 4015 ac_cv_prog_cc_c89=$ac_arg 4016fi 4017rm -f core conftest.err conftest.$ac_objext 4018 test "x$ac_cv_prog_cc_c89" != "xno" && break 4019done 4020rm -f conftest.$ac_ext 4021CC=$ac_save_CC 4022 4023fi 4024# AC_CACHE_VAL 4025case "x$ac_cv_prog_cc_c89" in 4026 x) 4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4028$as_echo "none needed" >&6; } ;; 4029 xno) 4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4031$as_echo "unsupported" >&6; } ;; 4032 *) 4033 CC="$CC $ac_cv_prog_cc_c89" 4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4035$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4036esac 4037if test "x$ac_cv_prog_cc_c89" != xno; then : 4038 4039fi 4040 4041ac_ext=c 4042ac_cpp='$CPP $CPPFLAGS' 4043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4045ac_compiler_gnu=$ac_cv_c_compiler_gnu 4046 4047ac_ext=c 4048ac_cpp='$CPP $CPPFLAGS' 4049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4051ac_compiler_gnu=$ac_cv_c_compiler_gnu 4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4053$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4054if ${am_cv_prog_cc_c_o+:} false; then : 4055 $as_echo_n "(cached) " >&6 4056else 4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4058/* end confdefs.h. */ 4059 4060int 4061main () 4062{ 4063 4064 ; 4065 return 0; 4066} 4067_ACEOF 4068 # Make sure it works both with $CC and with simple cc. 4069 # Following AC_PROG_CC_C_O, we do the test twice because some 4070 # compilers refuse to overwrite an existing .o file with -o, 4071 # though they will create one. 4072 am_cv_prog_cc_c_o=yes 4073 for am_i in 1 2; do 4074 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4075 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4076 ac_status=$? 4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4078 (exit $ac_status); } \ 4079 && test -f conftest2.$ac_objext; then 4080 : OK 4081 else 4082 am_cv_prog_cc_c_o=no 4083 break 4084 fi 4085 done 4086 rm -f core conftest* 4087 unset am_i 4088fi 4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4090$as_echo "$am_cv_prog_cc_c_o" >&6; } 4091if test "$am_cv_prog_cc_c_o" != yes; then 4092 # Losing compiler, so override with the script. 4093 # FIXME: It is wrong to rewrite CC. 4094 # But if we don't then we get into trouble of one sort or another. 4095 # A longer-term fix would be to have automake use am__CC in this case, 4096 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4097 CC="$am_aux_dir/compile $CC" 4098fi 4099ac_ext=c 4100ac_cpp='$CPP $CPPFLAGS' 4101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4103ac_compiler_gnu=$ac_cv_c_compiler_gnu 4104 4105 4106depcc="$CC" am_compiler_list= 4107 4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4109$as_echo_n "checking dependency style of $depcc... " >&6; } 4110if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4111 $as_echo_n "(cached) " >&6 4112else 4113 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4114 # We make a subdir and do the tests there. Otherwise we can end up 4115 # making bogus files that we don't know about and never remove. For 4116 # instance it was reported that on HP-UX the gcc test will end up 4117 # making a dummy file named 'D' -- because '-MD' means "put the output 4118 # in D". 4119 rm -rf conftest.dir 4120 mkdir conftest.dir 4121 # Copy depcomp to subdir because otherwise we won't find it if we're 4122 # using a relative directory. 4123 cp "$am_depcomp" conftest.dir 4124 cd conftest.dir 4125 # We will build objects and dependencies in a subdirectory because 4126 # it helps to detect inapplicable dependency modes. For instance 4127 # both Tru64's cc and ICC support -MD to output dependencies as a 4128 # side effect of compilation, but ICC will put the dependencies in 4129 # the current directory while Tru64 will put them in the object 4130 # directory. 4131 mkdir sub 4132 4133 am_cv_CC_dependencies_compiler_type=none 4134 if test "$am_compiler_list" = ""; then 4135 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4136 fi 4137 am__universal=false 4138 case " $depcc " in #( 4139 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4140 esac 4141 4142 for depmode in $am_compiler_list; do 4143 # Setup a source with many dependencies, because some compilers 4144 # like to wrap large dependency lists on column 80 (with \), and 4145 # we should not choose a depcomp mode which is confused by this. 4146 # 4147 # We need to recreate these files for each test, as the compiler may 4148 # overwrite some of them when testing with obscure command lines. 4149 # This happens at least with the AIX C compiler. 4150 : > sub/conftest.c 4151 for i in 1 2 3 4 5 6; do 4152 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4153 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4154 # Solaris 10 /bin/sh. 4155 echo '/* dummy */' > sub/conftst$i.h 4156 done 4157 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4158 4159 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4160 # mode. It turns out that the SunPro C++ compiler does not properly 4161 # handle '-M -o', and we need to detect this. Also, some Intel 4162 # versions had trouble with output in subdirs. 4163 am__obj=sub/conftest.${OBJEXT-o} 4164 am__minus_obj="-o $am__obj" 4165 case $depmode in 4166 gcc) 4167 # This depmode causes a compiler race in universal mode. 4168 test "$am__universal" = false || continue 4169 ;; 4170 nosideeffect) 4171 # After this tag, mechanisms are not by side-effect, so they'll 4172 # only be used when explicitly requested. 4173 if test "x$enable_dependency_tracking" = xyes; then 4174 continue 4175 else 4176 break 4177 fi 4178 ;; 4179 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4180 # This compiler won't grok '-c -o', but also, the minuso test has 4181 # not run yet. These depmodes are late enough in the game, and 4182 # so weak that their functioning should not be impacted. 4183 am__obj=conftest.${OBJEXT-o} 4184 am__minus_obj= 4185 ;; 4186 none) break ;; 4187 esac 4188 if depmode=$depmode \ 4189 source=sub/conftest.c object=$am__obj \ 4190 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4191 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4192 >/dev/null 2>conftest.err && 4193 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4194 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4195 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4196 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4197 # icc doesn't choke on unknown options, it will just issue warnings 4198 # or remarks (even with -Werror). So we grep stderr for any message 4199 # that says an option was ignored or not supported. 4200 # When given -MP, icc 7.0 and 7.1 complain thusly: 4201 # icc: Command line warning: ignoring option '-M'; no argument required 4202 # The diagnosis changed in icc 8.0: 4203 # icc: Command line remark: option '-MP' not supported 4204 if (grep 'ignoring option' conftest.err || 4205 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4206 am_cv_CC_dependencies_compiler_type=$depmode 4207 break 4208 fi 4209 fi 4210 done 4211 4212 cd .. 4213 rm -rf conftest.dir 4214else 4215 am_cv_CC_dependencies_compiler_type=none 4216fi 4217 4218fi 4219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4220$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4221CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4222 4223 if 4224 test "x$enable_dependency_tracking" != xno \ 4225 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4226 am__fastdepCC_TRUE= 4227 am__fastdepCC_FALSE='#' 4228else 4229 am__fastdepCC_TRUE='#' 4230 am__fastdepCC_FALSE= 4231fi 4232 4233 4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4235$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4236if ${ac_cv_path_SED+:} false; then : 4237 $as_echo_n "(cached) " >&6 4238else 4239 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4240 for ac_i in 1 2 3 4 5 6 7; do 4241 ac_script="$ac_script$as_nl$ac_script" 4242 done 4243 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4244 { ac_script=; unset ac_script;} 4245 if test -z "$SED"; then 4246 ac_path_SED_found=false 4247 # Loop through the user's path and test for each of PROGNAME-LIST 4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4249for as_dir in $PATH 4250do 4251 IFS=$as_save_IFS 4252 test -z "$as_dir" && as_dir=. 4253 for ac_prog in sed gsed; do 4254 for ac_exec_ext in '' $ac_executable_extensions; do 4255 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4256 as_fn_executable_p "$ac_path_SED" || continue 4257# Check for GNU ac_path_SED and select it if it is found. 4258 # Check for GNU $ac_path_SED 4259case `"$ac_path_SED" --version 2>&1` in 4260*GNU*) 4261 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4262*) 4263 ac_count=0 4264 $as_echo_n 0123456789 >"conftest.in" 4265 while : 4266 do 4267 cat "conftest.in" "conftest.in" >"conftest.tmp" 4268 mv "conftest.tmp" "conftest.in" 4269 cp "conftest.in" "conftest.nl" 4270 $as_echo '' >> "conftest.nl" 4271 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4273 as_fn_arith $ac_count + 1 && ac_count=$as_val 4274 if test $ac_count -gt ${ac_path_SED_max-0}; then 4275 # Best one so far, save it but keep looking for a better one 4276 ac_cv_path_SED="$ac_path_SED" 4277 ac_path_SED_max=$ac_count 4278 fi 4279 # 10*(2^10) chars as input seems more than enough 4280 test $ac_count -gt 10 && break 4281 done 4282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4283esac 4284 4285 $ac_path_SED_found && break 3 4286 done 4287 done 4288 done 4289IFS=$as_save_IFS 4290 if test -z "$ac_cv_path_SED"; then 4291 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4292 fi 4293else 4294 ac_cv_path_SED=$SED 4295fi 4296 4297fi 4298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4299$as_echo "$ac_cv_path_SED" >&6; } 4300 SED="$ac_cv_path_SED" 4301 rm -f conftest.sed 4302 4303test -z "$SED" && SED=sed 4304Xsed="$SED -e 1s/^X//" 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4317$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4318if ${ac_cv_path_GREP+:} false; then : 4319 $as_echo_n "(cached) " >&6 4320else 4321 if test -z "$GREP"; then 4322 ac_path_GREP_found=false 4323 # Loop through the user's path and test for each of PROGNAME-LIST 4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4325for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4326do 4327 IFS=$as_save_IFS 4328 test -z "$as_dir" && as_dir=. 4329 for ac_prog in grep ggrep; do 4330 for ac_exec_ext in '' $ac_executable_extensions; do 4331 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4332 as_fn_executable_p "$ac_path_GREP" || continue 4333# Check for GNU ac_path_GREP and select it if it is found. 4334 # Check for GNU $ac_path_GREP 4335case `"$ac_path_GREP" --version 2>&1` in 4336*GNU*) 4337 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4338*) 4339 ac_count=0 4340 $as_echo_n 0123456789 >"conftest.in" 4341 while : 4342 do 4343 cat "conftest.in" "conftest.in" >"conftest.tmp" 4344 mv "conftest.tmp" "conftest.in" 4345 cp "conftest.in" "conftest.nl" 4346 $as_echo 'GREP' >> "conftest.nl" 4347 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4349 as_fn_arith $ac_count + 1 && ac_count=$as_val 4350 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4351 # Best one so far, save it but keep looking for a better one 4352 ac_cv_path_GREP="$ac_path_GREP" 4353 ac_path_GREP_max=$ac_count 4354 fi 4355 # 10*(2^10) chars as input seems more than enough 4356 test $ac_count -gt 10 && break 4357 done 4358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4359esac 4360 4361 $ac_path_GREP_found && break 3 4362 done 4363 done 4364 done 4365IFS=$as_save_IFS 4366 if test -z "$ac_cv_path_GREP"; then 4367 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4368 fi 4369else 4370 ac_cv_path_GREP=$GREP 4371fi 4372 4373fi 4374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4375$as_echo "$ac_cv_path_GREP" >&6; } 4376 GREP="$ac_cv_path_GREP" 4377 4378 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4380$as_echo_n "checking for egrep... " >&6; } 4381if ${ac_cv_path_EGREP+:} false; then : 4382 $as_echo_n "(cached) " >&6 4383else 4384 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4385 then ac_cv_path_EGREP="$GREP -E" 4386 else 4387 if test -z "$EGREP"; then 4388 ac_path_EGREP_found=false 4389 # Loop through the user's path and test for each of PROGNAME-LIST 4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4391for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4392do 4393 IFS=$as_save_IFS 4394 test -z "$as_dir" && as_dir=. 4395 for ac_prog in egrep; do 4396 for ac_exec_ext in '' $ac_executable_extensions; do 4397 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4398 as_fn_executable_p "$ac_path_EGREP" || continue 4399# Check for GNU ac_path_EGREP and select it if it is found. 4400 # Check for GNU $ac_path_EGREP 4401case `"$ac_path_EGREP" --version 2>&1` in 4402*GNU*) 4403 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4404*) 4405 ac_count=0 4406 $as_echo_n 0123456789 >"conftest.in" 4407 while : 4408 do 4409 cat "conftest.in" "conftest.in" >"conftest.tmp" 4410 mv "conftest.tmp" "conftest.in" 4411 cp "conftest.in" "conftest.nl" 4412 $as_echo 'EGREP' >> "conftest.nl" 4413 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4415 as_fn_arith $ac_count + 1 && ac_count=$as_val 4416 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4417 # Best one so far, save it but keep looking for a better one 4418 ac_cv_path_EGREP="$ac_path_EGREP" 4419 ac_path_EGREP_max=$ac_count 4420 fi 4421 # 10*(2^10) chars as input seems more than enough 4422 test $ac_count -gt 10 && break 4423 done 4424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4425esac 4426 4427 $ac_path_EGREP_found && break 3 4428 done 4429 done 4430 done 4431IFS=$as_save_IFS 4432 if test -z "$ac_cv_path_EGREP"; then 4433 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4434 fi 4435else 4436 ac_cv_path_EGREP=$EGREP 4437fi 4438 4439 fi 4440fi 4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4442$as_echo "$ac_cv_path_EGREP" >&6; } 4443 EGREP="$ac_cv_path_EGREP" 4444 4445 4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4447$as_echo_n "checking for fgrep... " >&6; } 4448if ${ac_cv_path_FGREP+:} false; then : 4449 $as_echo_n "(cached) " >&6 4450else 4451 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4452 then ac_cv_path_FGREP="$GREP -F" 4453 else 4454 if test -z "$FGREP"; then 4455 ac_path_FGREP_found=false 4456 # Loop through the user's path and test for each of PROGNAME-LIST 4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4458for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4459do 4460 IFS=$as_save_IFS 4461 test -z "$as_dir" && as_dir=. 4462 for ac_prog in fgrep; do 4463 for ac_exec_ext in '' $ac_executable_extensions; do 4464 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4465 as_fn_executable_p "$ac_path_FGREP" || continue 4466# Check for GNU ac_path_FGREP and select it if it is found. 4467 # Check for GNU $ac_path_FGREP 4468case `"$ac_path_FGREP" --version 2>&1` in 4469*GNU*) 4470 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4471*) 4472 ac_count=0 4473 $as_echo_n 0123456789 >"conftest.in" 4474 while : 4475 do 4476 cat "conftest.in" "conftest.in" >"conftest.tmp" 4477 mv "conftest.tmp" "conftest.in" 4478 cp "conftest.in" "conftest.nl" 4479 $as_echo 'FGREP' >> "conftest.nl" 4480 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4482 as_fn_arith $ac_count + 1 && ac_count=$as_val 4483 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4484 # Best one so far, save it but keep looking for a better one 4485 ac_cv_path_FGREP="$ac_path_FGREP" 4486 ac_path_FGREP_max=$ac_count 4487 fi 4488 # 10*(2^10) chars as input seems more than enough 4489 test $ac_count -gt 10 && break 4490 done 4491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4492esac 4493 4494 $ac_path_FGREP_found && break 3 4495 done 4496 done 4497 done 4498IFS=$as_save_IFS 4499 if test -z "$ac_cv_path_FGREP"; then 4500 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4501 fi 4502else 4503 ac_cv_path_FGREP=$FGREP 4504fi 4505 4506 fi 4507fi 4508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4509$as_echo "$ac_cv_path_FGREP" >&6; } 4510 FGREP="$ac_cv_path_FGREP" 4511 4512 4513test -z "$GREP" && GREP=grep 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533# Check whether --with-gnu-ld was given. 4534if test "${with_gnu_ld+set}" = set; then : 4535 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4536else 4537 with_gnu_ld=no 4538fi 4539 4540ac_prog=ld 4541if test yes = "$GCC"; then 4542 # Check if gcc -print-prog-name=ld gives a path. 4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4544$as_echo_n "checking for ld used by $CC... " >&6; } 4545 case $host in 4546 *-*-mingw*) 4547 # gcc leaves a trailing carriage return, which upsets mingw 4548 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4549 *) 4550 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4551 esac 4552 case $ac_prog in 4553 # Accept absolute paths. 4554 [\\/]* | ?:[\\/]*) 4555 re_direlt='/[^/][^/]*/\.\./' 4556 # Canonicalize the pathname of ld 4557 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4558 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4559 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4560 done 4561 test -z "$LD" && LD=$ac_prog 4562 ;; 4563 "") 4564 # If it fails, then pretend we aren't using GCC. 4565 ac_prog=ld 4566 ;; 4567 *) 4568 # If it is relative, then search for the first ld in PATH. 4569 with_gnu_ld=unknown 4570 ;; 4571 esac 4572elif test yes = "$with_gnu_ld"; then 4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4574$as_echo_n "checking for GNU ld... " >&6; } 4575else 4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4577$as_echo_n "checking for non-GNU ld... " >&6; } 4578fi 4579if ${lt_cv_path_LD+:} false; then : 4580 $as_echo_n "(cached) " >&6 4581else 4582 if test -z "$LD"; then 4583 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4584 for ac_dir in $PATH; do 4585 IFS=$lt_save_ifs 4586 test -z "$ac_dir" && ac_dir=. 4587 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4588 lt_cv_path_LD=$ac_dir/$ac_prog 4589 # Check to see if the program is GNU ld. I'd rather use --version, 4590 # but apparently some variants of GNU ld only accept -v. 4591 # Break only if it was the GNU/non-GNU ld that we prefer. 4592 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4593 *GNU* | *'with BFD'*) 4594 test no != "$with_gnu_ld" && break 4595 ;; 4596 *) 4597 test yes != "$with_gnu_ld" && break 4598 ;; 4599 esac 4600 fi 4601 done 4602 IFS=$lt_save_ifs 4603else 4604 lt_cv_path_LD=$LD # Let the user override the test with a path. 4605fi 4606fi 4607 4608LD=$lt_cv_path_LD 4609if test -n "$LD"; then 4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4611$as_echo "$LD" >&6; } 4612else 4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4614$as_echo "no" >&6; } 4615fi 4616test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4618$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4619if ${lt_cv_prog_gnu_ld+:} false; then : 4620 $as_echo_n "(cached) " >&6 4621else 4622 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4623case `$LD -v 2>&1 </dev/null` in 4624*GNU* | *'with BFD'*) 4625 lt_cv_prog_gnu_ld=yes 4626 ;; 4627*) 4628 lt_cv_prog_gnu_ld=no 4629 ;; 4630esac 4631fi 4632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4633$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4634with_gnu_ld=$lt_cv_prog_gnu_ld 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4645$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4646if ${lt_cv_path_NM+:} false; then : 4647 $as_echo_n "(cached) " >&6 4648else 4649 if test -n "$NM"; then 4650 # Let the user override the test. 4651 lt_cv_path_NM=$NM 4652else 4653 lt_nm_to_check=${ac_tool_prefix}nm 4654 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4655 lt_nm_to_check="$lt_nm_to_check nm" 4656 fi 4657 for lt_tmp_nm in $lt_nm_to_check; do 4658 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4659 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4660 IFS=$lt_save_ifs 4661 test -z "$ac_dir" && ac_dir=. 4662 tmp_nm=$ac_dir/$lt_tmp_nm 4663 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4664 # Check to see if the nm accepts a BSD-compat flag. 4665 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4666 # nm: unknown option "B" ignored 4667 # Tru64's nm complains that /dev/null is an invalid object file 4668 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4669 case $build_os in 4670 mingw*) lt_bad_file=conftest.nm/nofile ;; 4671 *) lt_bad_file=/dev/null ;; 4672 esac 4673 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4674 *$lt_bad_file* | *'Invalid file or object type'*) 4675 lt_cv_path_NM="$tmp_nm -B" 4676 break 2 4677 ;; 4678 *) 4679 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4680 */dev/null*) 4681 lt_cv_path_NM="$tmp_nm -p" 4682 break 2 4683 ;; 4684 *) 4685 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4686 continue # so that we can try to find one that supports BSD flags 4687 ;; 4688 esac 4689 ;; 4690 esac 4691 fi 4692 done 4693 IFS=$lt_save_ifs 4694 done 4695 : ${lt_cv_path_NM=no} 4696fi 4697fi 4698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4699$as_echo "$lt_cv_path_NM" >&6; } 4700if test no != "$lt_cv_path_NM"; then 4701 NM=$lt_cv_path_NM 4702else 4703 # Didn't find any BSD compatible name lister, look for dumpbin. 4704 if test -n "$DUMPBIN"; then : 4705 # Let the user override the test. 4706 else 4707 if test -n "$ac_tool_prefix"; then 4708 for ac_prog in dumpbin "link -dump" 4709 do 4710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4711set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4713$as_echo_n "checking for $ac_word... " >&6; } 4714if ${ac_cv_prog_DUMPBIN+:} false; then : 4715 $as_echo_n "(cached) " >&6 4716else 4717 if test -n "$DUMPBIN"; then 4718 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4719else 4720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4721for as_dir in $PATH 4722do 4723 IFS=$as_save_IFS 4724 test -z "$as_dir" && as_dir=. 4725 for ac_exec_ext in '' $ac_executable_extensions; do 4726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4727 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4729 break 2 4730 fi 4731done 4732 done 4733IFS=$as_save_IFS 4734 4735fi 4736fi 4737DUMPBIN=$ac_cv_prog_DUMPBIN 4738if test -n "$DUMPBIN"; then 4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4740$as_echo "$DUMPBIN" >&6; } 4741else 4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4743$as_echo "no" >&6; } 4744fi 4745 4746 4747 test -n "$DUMPBIN" && break 4748 done 4749fi 4750if test -z "$DUMPBIN"; then 4751 ac_ct_DUMPBIN=$DUMPBIN 4752 for ac_prog in dumpbin "link -dump" 4753do 4754 # Extract the first word of "$ac_prog", so it can be a program name with args. 4755set dummy $ac_prog; ac_word=$2 4756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4757$as_echo_n "checking for $ac_word... " >&6; } 4758if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4759 $as_echo_n "(cached) " >&6 4760else 4761 if test -n "$ac_ct_DUMPBIN"; then 4762 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4763else 4764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4765for as_dir in $PATH 4766do 4767 IFS=$as_save_IFS 4768 test -z "$as_dir" && as_dir=. 4769 for ac_exec_ext in '' $ac_executable_extensions; do 4770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4771 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4773 break 2 4774 fi 4775done 4776 done 4777IFS=$as_save_IFS 4778 4779fi 4780fi 4781ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4782if test -n "$ac_ct_DUMPBIN"; then 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4784$as_echo "$ac_ct_DUMPBIN" >&6; } 4785else 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4787$as_echo "no" >&6; } 4788fi 4789 4790 4791 test -n "$ac_ct_DUMPBIN" && break 4792done 4793 4794 if test "x$ac_ct_DUMPBIN" = x; then 4795 DUMPBIN=":" 4796 else 4797 case $cross_compiling:$ac_tool_warned in 4798yes:) 4799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4801ac_tool_warned=yes ;; 4802esac 4803 DUMPBIN=$ac_ct_DUMPBIN 4804 fi 4805fi 4806 4807 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4808 *COFF*) 4809 DUMPBIN="$DUMPBIN -symbols -headers" 4810 ;; 4811 *) 4812 DUMPBIN=: 4813 ;; 4814 esac 4815 fi 4816 4817 if test : != "$DUMPBIN"; then 4818 NM=$DUMPBIN 4819 fi 4820fi 4821test -z "$NM" && NM=nm 4822 4823 4824 4825 4826 4827 4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4829$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4830if ${lt_cv_nm_interface+:} false; then : 4831 $as_echo_n "(cached) " >&6 4832else 4833 lt_cv_nm_interface="BSD nm" 4834 echo "int some_variable = 0;" > conftest.$ac_ext 4835 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4836 (eval "$ac_compile" 2>conftest.err) 4837 cat conftest.err >&5 4838 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4839 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4840 cat conftest.err >&5 4841 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4842 cat conftest.out >&5 4843 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4844 lt_cv_nm_interface="MS dumpbin" 4845 fi 4846 rm -f conftest* 4847fi 4848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4849$as_echo "$lt_cv_nm_interface" >&6; } 4850 4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4852$as_echo_n "checking whether ln -s works... " >&6; } 4853LN_S=$as_ln_s 4854if test "$LN_S" = "ln -s"; then 4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4856$as_echo "yes" >&6; } 4857else 4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4859$as_echo "no, using $LN_S" >&6; } 4860fi 4861 4862# find the maximum length of command line arguments 4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4864$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4865if ${lt_cv_sys_max_cmd_len+:} false; then : 4866 $as_echo_n "(cached) " >&6 4867else 4868 i=0 4869 teststring=ABCD 4870 4871 case $build_os in 4872 msdosdjgpp*) 4873 # On DJGPP, this test can blow up pretty badly due to problems in libc 4874 # (any single argument exceeding 2000 bytes causes a buffer overrun 4875 # during glob expansion). Even if it were fixed, the result of this 4876 # check would be larger than it should be. 4877 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4878 ;; 4879 4880 gnu*) 4881 # Under GNU Hurd, this test is not required because there is 4882 # no limit to the length of command line arguments. 4883 # Libtool will interpret -1 as no limit whatsoever 4884 lt_cv_sys_max_cmd_len=-1; 4885 ;; 4886 4887 cygwin* | mingw* | cegcc*) 4888 # On Win9x/ME, this test blows up -- it succeeds, but takes 4889 # about 5 minutes as the teststring grows exponentially. 4890 # Worse, since 9x/ME are not pre-emptively multitasking, 4891 # you end up with a "frozen" computer, even though with patience 4892 # the test eventually succeeds (with a max line length of 256k). 4893 # Instead, let's just punt: use the minimum linelength reported by 4894 # all of the supported platforms: 8192 (on NT/2K/XP). 4895 lt_cv_sys_max_cmd_len=8192; 4896 ;; 4897 4898 mint*) 4899 # On MiNT this can take a long time and run out of memory. 4900 lt_cv_sys_max_cmd_len=8192; 4901 ;; 4902 4903 amigaos*) 4904 # On AmigaOS with pdksh, this test takes hours, literally. 4905 # So we just punt and use a minimum line length of 8192. 4906 lt_cv_sys_max_cmd_len=8192; 4907 ;; 4908 4909 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4910 # This has been around since 386BSD, at least. Likely further. 4911 if test -x /sbin/sysctl; then 4912 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4913 elif test -x /usr/sbin/sysctl; then 4914 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4915 else 4916 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4917 fi 4918 # And add a safety zone 4919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4920 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4921 ;; 4922 4923 interix*) 4924 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4925 lt_cv_sys_max_cmd_len=196608 4926 ;; 4927 4928 os2*) 4929 # The test takes a long time on OS/2. 4930 lt_cv_sys_max_cmd_len=8192 4931 ;; 4932 4933 osf*) 4934 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4935 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4936 # nice to cause kernel panics so lets avoid the loop below. 4937 # First set a reasonable default. 4938 lt_cv_sys_max_cmd_len=16384 4939 # 4940 if test -x /sbin/sysconfig; then 4941 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4942 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4943 esac 4944 fi 4945 ;; 4946 sco3.2v5*) 4947 lt_cv_sys_max_cmd_len=102400 4948 ;; 4949 sysv5* | sco5v6* | sysv4.2uw2*) 4950 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4951 if test -n "$kargmax"; then 4952 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4953 else 4954 lt_cv_sys_max_cmd_len=32768 4955 fi 4956 ;; 4957 *) 4958 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4959 if test -n "$lt_cv_sys_max_cmd_len" && \ 4960 test undefined != "$lt_cv_sys_max_cmd_len"; then 4961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4963 else 4964 # Make teststring a little bigger before we do anything with it. 4965 # a 1K string should be a reasonable start. 4966 for i in 1 2 3 4 5 6 7 8; do 4967 teststring=$teststring$teststring 4968 done 4969 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4970 # If test is not a shell built-in, we'll probably end up computing a 4971 # maximum length that is only half of the actual maximum length, but 4972 # we can't tell. 4973 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4974 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4975 test 17 != "$i" # 1/2 MB should be enough 4976 do 4977 i=`expr $i + 1` 4978 teststring=$teststring$teststring 4979 done 4980 # Only check the string length outside the loop. 4981 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4982 teststring= 4983 # Add a significant safety factor because C++ compilers can tack on 4984 # massive amounts of additional arguments before passing them to the 4985 # linker. It appears as though 1/2 is a usable value. 4986 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4987 fi 4988 ;; 4989 esac 4990 4991fi 4992 4993if test -n "$lt_cv_sys_max_cmd_len"; then 4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4995$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4996else 4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4998$as_echo "none" >&6; } 4999fi 5000max_cmd_len=$lt_cv_sys_max_cmd_len 5001 5002 5003 5004 5005 5006 5007: ${CP="cp -f"} 5008: ${MV="mv -f"} 5009: ${RM="rm -f"} 5010 5011if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5012 lt_unset=unset 5013else 5014 lt_unset=false 5015fi 5016 5017 5018 5019 5020 5021# test EBCDIC or ASCII 5022case `echo X|tr X '\101'` in 5023 A) # ASCII based system 5024 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5025 lt_SP2NL='tr \040 \012' 5026 lt_NL2SP='tr \015\012 \040\040' 5027 ;; 5028 *) # EBCDIC based system 5029 lt_SP2NL='tr \100 \n' 5030 lt_NL2SP='tr \r\n \100\100' 5031 ;; 5032esac 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5043$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5044if ${lt_cv_to_host_file_cmd+:} false; then : 5045 $as_echo_n "(cached) " >&6 5046else 5047 case $host in 5048 *-*-mingw* ) 5049 case $build in 5050 *-*-mingw* ) # actually msys 5051 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5052 ;; 5053 *-*-cygwin* ) 5054 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5055 ;; 5056 * ) # otherwise, assume *nix 5057 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5058 ;; 5059 esac 5060 ;; 5061 *-*-cygwin* ) 5062 case $build in 5063 *-*-mingw* ) # actually msys 5064 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5065 ;; 5066 *-*-cygwin* ) 5067 lt_cv_to_host_file_cmd=func_convert_file_noop 5068 ;; 5069 * ) # otherwise, assume *nix 5070 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5071 ;; 5072 esac 5073 ;; 5074 * ) # unhandled hosts (and "normal" native builds) 5075 lt_cv_to_host_file_cmd=func_convert_file_noop 5076 ;; 5077esac 5078 5079fi 5080 5081to_host_file_cmd=$lt_cv_to_host_file_cmd 5082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5083$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5084 5085 5086 5087 5088 5089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5090$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5091if ${lt_cv_to_tool_file_cmd+:} false; then : 5092 $as_echo_n "(cached) " >&6 5093else 5094 #assume ordinary cross tools, or native build. 5095lt_cv_to_tool_file_cmd=func_convert_file_noop 5096case $host in 5097 *-*-mingw* ) 5098 case $build in 5099 *-*-mingw* ) # actually msys 5100 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5101 ;; 5102 esac 5103 ;; 5104esac 5105 5106fi 5107 5108to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5110$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5111 5112 5113 5114 5115 5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5117$as_echo_n "checking for $LD option to reload object files... " >&6; } 5118if ${lt_cv_ld_reload_flag+:} false; then : 5119 $as_echo_n "(cached) " >&6 5120else 5121 lt_cv_ld_reload_flag='-r' 5122fi 5123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5124$as_echo "$lt_cv_ld_reload_flag" >&6; } 5125reload_flag=$lt_cv_ld_reload_flag 5126case $reload_flag in 5127"" | " "*) ;; 5128*) reload_flag=" $reload_flag" ;; 5129esac 5130reload_cmds='$LD$reload_flag -o $output$reload_objs' 5131case $host_os in 5132 cygwin* | mingw* | pw32* | cegcc*) 5133 if test yes != "$GCC"; then 5134 reload_cmds=false 5135 fi 5136 ;; 5137 darwin*) 5138 if test yes = "$GCC"; then 5139 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5140 else 5141 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5142 fi 5143 ;; 5144esac 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154if test -n "$ac_tool_prefix"; then 5155 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5156set dummy ${ac_tool_prefix}objdump; ac_word=$2 5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5158$as_echo_n "checking for $ac_word... " >&6; } 5159if ${ac_cv_prog_OBJDUMP+:} false; then : 5160 $as_echo_n "(cached) " >&6 5161else 5162 if test -n "$OBJDUMP"; then 5163 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5164else 5165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5166for as_dir in $PATH 5167do 5168 IFS=$as_save_IFS 5169 test -z "$as_dir" && as_dir=. 5170 for ac_exec_ext in '' $ac_executable_extensions; do 5171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5172 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5174 break 2 5175 fi 5176done 5177 done 5178IFS=$as_save_IFS 5179 5180fi 5181fi 5182OBJDUMP=$ac_cv_prog_OBJDUMP 5183if test -n "$OBJDUMP"; then 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5185$as_echo "$OBJDUMP" >&6; } 5186else 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5188$as_echo "no" >&6; } 5189fi 5190 5191 5192fi 5193if test -z "$ac_cv_prog_OBJDUMP"; then 5194 ac_ct_OBJDUMP=$OBJDUMP 5195 # Extract the first word of "objdump", so it can be a program name with args. 5196set dummy objdump; ac_word=$2 5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5198$as_echo_n "checking for $ac_word... " >&6; } 5199if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5200 $as_echo_n "(cached) " >&6 5201else 5202 if test -n "$ac_ct_OBJDUMP"; then 5203 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5204else 5205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5206for as_dir in $PATH 5207do 5208 IFS=$as_save_IFS 5209 test -z "$as_dir" && as_dir=. 5210 for ac_exec_ext in '' $ac_executable_extensions; do 5211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5212 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5214 break 2 5215 fi 5216done 5217 done 5218IFS=$as_save_IFS 5219 5220fi 5221fi 5222ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5223if test -n "$ac_ct_OBJDUMP"; then 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5225$as_echo "$ac_ct_OBJDUMP" >&6; } 5226else 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5228$as_echo "no" >&6; } 5229fi 5230 5231 if test "x$ac_ct_OBJDUMP" = x; then 5232 OBJDUMP="false" 5233 else 5234 case $cross_compiling:$ac_tool_warned in 5235yes:) 5236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5238ac_tool_warned=yes ;; 5239esac 5240 OBJDUMP=$ac_ct_OBJDUMP 5241 fi 5242else 5243 OBJDUMP="$ac_cv_prog_OBJDUMP" 5244fi 5245 5246test -z "$OBJDUMP" && OBJDUMP=objdump 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5257$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5258if ${lt_cv_deplibs_check_method+:} false; then : 5259 $as_echo_n "(cached) " >&6 5260else 5261 lt_cv_file_magic_cmd='$MAGIC_CMD' 5262lt_cv_file_magic_test_file= 5263lt_cv_deplibs_check_method='unknown' 5264# Need to set the preceding variable on all platforms that support 5265# interlibrary dependencies. 5266# 'none' -- dependencies not supported. 5267# 'unknown' -- same as none, but documents that we really don't know. 5268# 'pass_all' -- all dependencies passed with no checks. 5269# 'test_compile' -- check by making test program. 5270# 'file_magic [[regex]]' -- check by looking for files in library path 5271# that responds to the $file_magic_cmd with a given extended regex. 5272# If you have 'file' or equivalent on your system and you're not sure 5273# whether 'pass_all' will *always* work, you probably want this one. 5274 5275case $host_os in 5276aix[4-9]*) 5277 lt_cv_deplibs_check_method=pass_all 5278 ;; 5279 5280beos*) 5281 lt_cv_deplibs_check_method=pass_all 5282 ;; 5283 5284bsdi[45]*) 5285 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5286 lt_cv_file_magic_cmd='/usr/bin/file -L' 5287 lt_cv_file_magic_test_file=/shlib/libc.so 5288 ;; 5289 5290cygwin*) 5291 # func_win32_libid is a shell function defined in ltmain.sh 5292 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5293 lt_cv_file_magic_cmd='func_win32_libid' 5294 ;; 5295 5296mingw* | pw32*) 5297 # Base MSYS/MinGW do not provide the 'file' command needed by 5298 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5299 # unless we find 'file', for example because we are cross-compiling. 5300 if ( file / ) >/dev/null 2>&1; then 5301 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5302 lt_cv_file_magic_cmd='func_win32_libid' 5303 else 5304 # Keep this pattern in sync with the one in func_win32_libid. 5305 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5306 lt_cv_file_magic_cmd='$OBJDUMP -f' 5307 fi 5308 ;; 5309 5310cegcc*) 5311 # use the weaker test based on 'objdump'. See mingw*. 5312 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5313 lt_cv_file_magic_cmd='$OBJDUMP -f' 5314 ;; 5315 5316darwin* | rhapsody*) 5317 lt_cv_deplibs_check_method=pass_all 5318 ;; 5319 5320freebsd* | dragonfly*) 5321 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5322 case $host_cpu in 5323 i*86 ) 5324 # Not sure whether the presence of OpenBSD here was a mistake. 5325 # Let's accept both of them until this is cleared up. 5326 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5327 lt_cv_file_magic_cmd=/usr/bin/file 5328 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5329 ;; 5330 esac 5331 else 5332 lt_cv_deplibs_check_method=pass_all 5333 fi 5334 ;; 5335 5336haiku*) 5337 lt_cv_deplibs_check_method=pass_all 5338 ;; 5339 5340hpux10.20* | hpux11*) 5341 lt_cv_file_magic_cmd=/usr/bin/file 5342 case $host_cpu in 5343 ia64*) 5344 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5345 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5346 ;; 5347 hppa*64*) 5348 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 5349 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5350 ;; 5351 *) 5352 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5353 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5354 ;; 5355 esac 5356 ;; 5357 5358interix[3-9]*) 5359 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5361 ;; 5362 5363irix5* | irix6* | nonstopux*) 5364 case $LD in 5365 *-32|*"-32 ") libmagic=32-bit;; 5366 *-n32|*"-n32 ") libmagic=N32;; 5367 *-64|*"-64 ") libmagic=64-bit;; 5368 *) libmagic=never-match;; 5369 esac 5370 lt_cv_deplibs_check_method=pass_all 5371 ;; 5372 5373# This must be glibc/ELF. 5374linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5375 lt_cv_deplibs_check_method=pass_all 5376 ;; 5377 5378netbsd*) 5379 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5381 else 5382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5383 fi 5384 ;; 5385 5386newos6*) 5387 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5388 lt_cv_file_magic_cmd=/usr/bin/file 5389 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5390 ;; 5391 5392*nto* | *qnx*) 5393 lt_cv_deplibs_check_method=pass_all 5394 ;; 5395 5396openbsd* | bitrig*) 5397 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5399 else 5400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5401 fi 5402 ;; 5403 5404osf3* | osf4* | osf5*) 5405 lt_cv_deplibs_check_method=pass_all 5406 ;; 5407 5408rdos*) 5409 lt_cv_deplibs_check_method=pass_all 5410 ;; 5411 5412solaris*) 5413 lt_cv_deplibs_check_method=pass_all 5414 ;; 5415 5416sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5417 lt_cv_deplibs_check_method=pass_all 5418 ;; 5419 5420sysv4 | sysv4.3*) 5421 case $host_vendor in 5422 motorola) 5423 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]' 5424 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5425 ;; 5426 ncr) 5427 lt_cv_deplibs_check_method=pass_all 5428 ;; 5429 sequent) 5430 lt_cv_file_magic_cmd='/bin/file' 5431 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5432 ;; 5433 sni) 5434 lt_cv_file_magic_cmd='/bin/file' 5435 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5436 lt_cv_file_magic_test_file=/lib/libc.so 5437 ;; 5438 siemens) 5439 lt_cv_deplibs_check_method=pass_all 5440 ;; 5441 pc) 5442 lt_cv_deplibs_check_method=pass_all 5443 ;; 5444 esac 5445 ;; 5446 5447tpf*) 5448 lt_cv_deplibs_check_method=pass_all 5449 ;; 5450os2*) 5451 lt_cv_deplibs_check_method=pass_all 5452 ;; 5453esac 5454 5455fi 5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5457$as_echo "$lt_cv_deplibs_check_method" >&6; } 5458 5459file_magic_glob= 5460want_nocaseglob=no 5461if test "$build" = "$host"; then 5462 case $host_os in 5463 mingw* | pw32*) 5464 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5465 want_nocaseglob=yes 5466 else 5467 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5468 fi 5469 ;; 5470 esac 5471fi 5472 5473file_magic_cmd=$lt_cv_file_magic_cmd 5474deplibs_check_method=$lt_cv_deplibs_check_method 5475test -z "$deplibs_check_method" && deplibs_check_method=unknown 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498if test -n "$ac_tool_prefix"; then 5499 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5500set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5502$as_echo_n "checking for $ac_word... " >&6; } 5503if ${ac_cv_prog_DLLTOOL+:} false; then : 5504 $as_echo_n "(cached) " >&6 5505else 5506 if test -n "$DLLTOOL"; then 5507 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5508else 5509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5510for as_dir in $PATH 5511do 5512 IFS=$as_save_IFS 5513 test -z "$as_dir" && as_dir=. 5514 for ac_exec_ext in '' $ac_executable_extensions; do 5515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5516 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5518 break 2 5519 fi 5520done 5521 done 5522IFS=$as_save_IFS 5523 5524fi 5525fi 5526DLLTOOL=$ac_cv_prog_DLLTOOL 5527if test -n "$DLLTOOL"; then 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5529$as_echo "$DLLTOOL" >&6; } 5530else 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5532$as_echo "no" >&6; } 5533fi 5534 5535 5536fi 5537if test -z "$ac_cv_prog_DLLTOOL"; then 5538 ac_ct_DLLTOOL=$DLLTOOL 5539 # Extract the first word of "dlltool", so it can be a program name with args. 5540set dummy dlltool; ac_word=$2 5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5542$as_echo_n "checking for $ac_word... " >&6; } 5543if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5544 $as_echo_n "(cached) " >&6 5545else 5546 if test -n "$ac_ct_DLLTOOL"; then 5547 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5548else 5549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5550for as_dir in $PATH 5551do 5552 IFS=$as_save_IFS 5553 test -z "$as_dir" && as_dir=. 5554 for ac_exec_ext in '' $ac_executable_extensions; do 5555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5556 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5558 break 2 5559 fi 5560done 5561 done 5562IFS=$as_save_IFS 5563 5564fi 5565fi 5566ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5567if test -n "$ac_ct_DLLTOOL"; then 5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5569$as_echo "$ac_ct_DLLTOOL" >&6; } 5570else 5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5572$as_echo "no" >&6; } 5573fi 5574 5575 if test "x$ac_ct_DLLTOOL" = x; then 5576 DLLTOOL="false" 5577 else 5578 case $cross_compiling:$ac_tool_warned in 5579yes:) 5580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5582ac_tool_warned=yes ;; 5583esac 5584 DLLTOOL=$ac_ct_DLLTOOL 5585 fi 5586else 5587 DLLTOOL="$ac_cv_prog_DLLTOOL" 5588fi 5589 5590test -z "$DLLTOOL" && DLLTOOL=dlltool 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5602$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5603if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5604 $as_echo_n "(cached) " >&6 5605else 5606 lt_cv_sharedlib_from_linklib_cmd='unknown' 5607 5608case $host_os in 5609cygwin* | mingw* | pw32* | cegcc*) 5610 # two different shell functions defined in ltmain.sh; 5611 # decide which one to use based on capabilities of $DLLTOOL 5612 case `$DLLTOOL --help 2>&1` in 5613 *--identify-strict*) 5614 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5615 ;; 5616 *) 5617 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5618 ;; 5619 esac 5620 ;; 5621*) 5622 # fallback: assume linklib IS sharedlib 5623 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5624 ;; 5625esac 5626 5627fi 5628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5629$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5630sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5631test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5632 5633 5634 5635 5636 5637 5638 5639 5640if test -n "$ac_tool_prefix"; then 5641 for ac_prog in ar 5642 do 5643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5644set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5646$as_echo_n "checking for $ac_word... " >&6; } 5647if ${ac_cv_prog_AR+:} false; then : 5648 $as_echo_n "(cached) " >&6 5649else 5650 if test -n "$AR"; then 5651 ac_cv_prog_AR="$AR" # Let the user override the test. 5652else 5653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5654for as_dir in $PATH 5655do 5656 IFS=$as_save_IFS 5657 test -z "$as_dir" && as_dir=. 5658 for ac_exec_ext in '' $ac_executable_extensions; do 5659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5660 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5662 break 2 5663 fi 5664done 5665 done 5666IFS=$as_save_IFS 5667 5668fi 5669fi 5670AR=$ac_cv_prog_AR 5671if test -n "$AR"; then 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5673$as_echo "$AR" >&6; } 5674else 5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5676$as_echo "no" >&6; } 5677fi 5678 5679 5680 test -n "$AR" && break 5681 done 5682fi 5683if test -z "$AR"; then 5684 ac_ct_AR=$AR 5685 for ac_prog in ar 5686do 5687 # Extract the first word of "$ac_prog", so it can be a program name with args. 5688set dummy $ac_prog; ac_word=$2 5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5690$as_echo_n "checking for $ac_word... " >&6; } 5691if ${ac_cv_prog_ac_ct_AR+:} false; then : 5692 $as_echo_n "(cached) " >&6 5693else 5694 if test -n "$ac_ct_AR"; then 5695 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5696else 5697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5698for as_dir in $PATH 5699do 5700 IFS=$as_save_IFS 5701 test -z "$as_dir" && as_dir=. 5702 for ac_exec_ext in '' $ac_executable_extensions; do 5703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5704 ac_cv_prog_ac_ct_AR="$ac_prog" 5705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5706 break 2 5707 fi 5708done 5709 done 5710IFS=$as_save_IFS 5711 5712fi 5713fi 5714ac_ct_AR=$ac_cv_prog_ac_ct_AR 5715if test -n "$ac_ct_AR"; then 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5717$as_echo "$ac_ct_AR" >&6; } 5718else 5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5720$as_echo "no" >&6; } 5721fi 5722 5723 5724 test -n "$ac_ct_AR" && break 5725done 5726 5727 if test "x$ac_ct_AR" = x; then 5728 AR="false" 5729 else 5730 case $cross_compiling:$ac_tool_warned in 5731yes:) 5732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5734ac_tool_warned=yes ;; 5735esac 5736 AR=$ac_ct_AR 5737 fi 5738fi 5739 5740: ${AR=ar} 5741: ${AR_FLAGS=cru} 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5754$as_echo_n "checking for archiver @FILE support... " >&6; } 5755if ${lt_cv_ar_at_file+:} false; then : 5756 $as_echo_n "(cached) " >&6 5757else 5758 lt_cv_ar_at_file=no 5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5760/* end confdefs.h. */ 5761 5762int 5763main () 5764{ 5765 5766 ; 5767 return 0; 5768} 5769_ACEOF 5770if ac_fn_c_try_compile "$LINENO"; then : 5771 echo conftest.$ac_objext > conftest.lst 5772 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5774 (eval $lt_ar_try) 2>&5 5775 ac_status=$? 5776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5777 test $ac_status = 0; } 5778 if test 0 -eq "$ac_status"; then 5779 # Ensure the archiver fails upon bogus file names. 5780 rm -f conftest.$ac_objext libconftest.a 5781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5782 (eval $lt_ar_try) 2>&5 5783 ac_status=$? 5784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5785 test $ac_status = 0; } 5786 if test 0 -ne "$ac_status"; then 5787 lt_cv_ar_at_file=@ 5788 fi 5789 fi 5790 rm -f conftest.* libconftest.a 5791 5792fi 5793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5794 5795fi 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5797$as_echo "$lt_cv_ar_at_file" >&6; } 5798 5799if test no = "$lt_cv_ar_at_file"; then 5800 archiver_list_spec= 5801else 5802 archiver_list_spec=$lt_cv_ar_at_file 5803fi 5804 5805 5806 5807 5808 5809 5810 5811if test -n "$ac_tool_prefix"; then 5812 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5813set dummy ${ac_tool_prefix}strip; ac_word=$2 5814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5815$as_echo_n "checking for $ac_word... " >&6; } 5816if ${ac_cv_prog_STRIP+:} false; then : 5817 $as_echo_n "(cached) " >&6 5818else 5819 if test -n "$STRIP"; then 5820 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5821else 5822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5823for as_dir in $PATH 5824do 5825 IFS=$as_save_IFS 5826 test -z "$as_dir" && as_dir=. 5827 for ac_exec_ext in '' $ac_executable_extensions; do 5828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5829 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5831 break 2 5832 fi 5833done 5834 done 5835IFS=$as_save_IFS 5836 5837fi 5838fi 5839STRIP=$ac_cv_prog_STRIP 5840if test -n "$STRIP"; then 5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5842$as_echo "$STRIP" >&6; } 5843else 5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5845$as_echo "no" >&6; } 5846fi 5847 5848 5849fi 5850if test -z "$ac_cv_prog_STRIP"; then 5851 ac_ct_STRIP=$STRIP 5852 # Extract the first word of "strip", so it can be a program name with args. 5853set dummy strip; ac_word=$2 5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5855$as_echo_n "checking for $ac_word... " >&6; } 5856if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5857 $as_echo_n "(cached) " >&6 5858else 5859 if test -n "$ac_ct_STRIP"; then 5860 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5861else 5862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5863for as_dir in $PATH 5864do 5865 IFS=$as_save_IFS 5866 test -z "$as_dir" && as_dir=. 5867 for ac_exec_ext in '' $ac_executable_extensions; do 5868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5869 ac_cv_prog_ac_ct_STRIP="strip" 5870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5871 break 2 5872 fi 5873done 5874 done 5875IFS=$as_save_IFS 5876 5877fi 5878fi 5879ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5880if test -n "$ac_ct_STRIP"; then 5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5882$as_echo "$ac_ct_STRIP" >&6; } 5883else 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5885$as_echo "no" >&6; } 5886fi 5887 5888 if test "x$ac_ct_STRIP" = x; then 5889 STRIP=":" 5890 else 5891 case $cross_compiling:$ac_tool_warned in 5892yes:) 5893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5895ac_tool_warned=yes ;; 5896esac 5897 STRIP=$ac_ct_STRIP 5898 fi 5899else 5900 STRIP="$ac_cv_prog_STRIP" 5901fi 5902 5903test -z "$STRIP" && STRIP=: 5904 5905 5906 5907 5908 5909 5910if test -n "$ac_tool_prefix"; then 5911 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5912set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5914$as_echo_n "checking for $ac_word... " >&6; } 5915if ${ac_cv_prog_RANLIB+:} false; then : 5916 $as_echo_n "(cached) " >&6 5917else 5918 if test -n "$RANLIB"; then 5919 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5920else 5921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5922for as_dir in $PATH 5923do 5924 IFS=$as_save_IFS 5925 test -z "$as_dir" && as_dir=. 5926 for ac_exec_ext in '' $ac_executable_extensions; do 5927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5928 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5930 break 2 5931 fi 5932done 5933 done 5934IFS=$as_save_IFS 5935 5936fi 5937fi 5938RANLIB=$ac_cv_prog_RANLIB 5939if test -n "$RANLIB"; then 5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5941$as_echo "$RANLIB" >&6; } 5942else 5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5944$as_echo "no" >&6; } 5945fi 5946 5947 5948fi 5949if test -z "$ac_cv_prog_RANLIB"; then 5950 ac_ct_RANLIB=$RANLIB 5951 # Extract the first word of "ranlib", so it can be a program name with args. 5952set dummy ranlib; ac_word=$2 5953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5954$as_echo_n "checking for $ac_word... " >&6; } 5955if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5956 $as_echo_n "(cached) " >&6 5957else 5958 if test -n "$ac_ct_RANLIB"; then 5959 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5960else 5961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5962for as_dir in $PATH 5963do 5964 IFS=$as_save_IFS 5965 test -z "$as_dir" && as_dir=. 5966 for ac_exec_ext in '' $ac_executable_extensions; do 5967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5968 ac_cv_prog_ac_ct_RANLIB="ranlib" 5969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5970 break 2 5971 fi 5972done 5973 done 5974IFS=$as_save_IFS 5975 5976fi 5977fi 5978ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5979if test -n "$ac_ct_RANLIB"; then 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5981$as_echo "$ac_ct_RANLIB" >&6; } 5982else 5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5984$as_echo "no" >&6; } 5985fi 5986 5987 if test "x$ac_ct_RANLIB" = x; then 5988 RANLIB=":" 5989 else 5990 case $cross_compiling:$ac_tool_warned in 5991yes:) 5992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5994ac_tool_warned=yes ;; 5995esac 5996 RANLIB=$ac_ct_RANLIB 5997 fi 5998else 5999 RANLIB="$ac_cv_prog_RANLIB" 6000fi 6001 6002test -z "$RANLIB" && RANLIB=: 6003 6004 6005 6006 6007 6008 6009# Determine commands to create old-style static archives. 6010old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6011old_postinstall_cmds='chmod 644 $oldlib' 6012old_postuninstall_cmds= 6013 6014if test -n "$RANLIB"; then 6015 case $host_os in 6016 bitrig* | openbsd*) 6017 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6018 ;; 6019 *) 6020 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6021 ;; 6022 esac 6023 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6024fi 6025 6026case $host_os in 6027 darwin*) 6028 lock_old_archive_extraction=yes ;; 6029 *) 6030 lock_old_archive_extraction=no ;; 6031esac 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071# If no C compiler was specified, use CC. 6072LTCC=${LTCC-"$CC"} 6073 6074# If no C compiler flags were specified, use CFLAGS. 6075LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6076 6077# Allow CC to be a program name with arguments. 6078compiler=$CC 6079 6080 6081# Check for command to grab the raw symbol name followed by C symbol from nm. 6082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6083$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6084if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6085 $as_echo_n "(cached) " >&6 6086else 6087 6088# These are sane defaults that work on at least a few old systems. 6089# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6090 6091# Character class describing NM global symbol codes. 6092symcode='[BCDEGRST]' 6093 6094# Regexp to match symbols that can be accessed directly from C. 6095sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6096 6097# Define system-specific variables. 6098case $host_os in 6099aix*) 6100 symcode='[BCDT]' 6101 ;; 6102cygwin* | mingw* | pw32* | cegcc*) 6103 symcode='[ABCDGISTW]' 6104 ;; 6105hpux*) 6106 if test ia64 = "$host_cpu"; then 6107 symcode='[ABCDEGRST]' 6108 fi 6109 ;; 6110irix* | nonstopux*) 6111 symcode='[BCDEGRST]' 6112 ;; 6113osf*) 6114 symcode='[BCDEGQRST]' 6115 ;; 6116solaris*) 6117 symcode='[BDRT]' 6118 ;; 6119sco3.2v5*) 6120 symcode='[DT]' 6121 ;; 6122sysv4.2uw2*) 6123 symcode='[DT]' 6124 ;; 6125sysv5* | sco5v6* | unixware* | OpenUNIX*) 6126 symcode='[ABDT]' 6127 ;; 6128sysv4) 6129 symcode='[DFNSTU]' 6130 ;; 6131esac 6132 6133# If we're using GNU nm, then use its standard symbol codes. 6134case `$NM -V 2>&1` in 6135*GNU* | *'with BFD'*) 6136 symcode='[ABCDGIRSTW]' ;; 6137esac 6138 6139if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6140 # Gets list of data symbols to import. 6141 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6142 # Adjust the below global symbol transforms to fixup imported variables. 6143 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6144 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6145 lt_c_name_lib_hook="\ 6146 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6147 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6148else 6149 # Disable hooks by default. 6150 lt_cv_sys_global_symbol_to_import= 6151 lt_cdecl_hook= 6152 lt_c_name_hook= 6153 lt_c_name_lib_hook= 6154fi 6155 6156# Transform an extracted symbol line into a proper C declaration. 6157# Some systems (esp. on ia64) link data and code symbols differently, 6158# so use this general approach. 6159lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6160$lt_cdecl_hook\ 6161" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6162" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6163 6164# Transform an extracted symbol line into symbol name and symbol address 6165lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6166$lt_c_name_hook\ 6167" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6168" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6169 6170# Transform an extracted symbol line into symbol name with lib prefix and 6171# symbol address. 6172lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6173$lt_c_name_lib_hook\ 6174" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6175" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6176" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6177 6178# Handle CRLF in mingw tool chain 6179opt_cr= 6180case $build_os in 6181mingw*) 6182 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6183 ;; 6184esac 6185 6186# Try without a prefix underscore, then with it. 6187for ac_symprfx in "" "_"; do 6188 6189 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6190 symxfrm="\\1 $ac_symprfx\\2 \\2" 6191 6192 # Write the raw and C identifiers. 6193 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6194 # Fake it for dumpbin and say T for any non-static function, 6195 # D for any global variable and I for any imported variable. 6196 # Also find C++ and __fastcall symbols from MSVC++, 6197 # which start with @ or ?. 6198 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6199" {last_section=section; section=\$ 3};"\ 6200" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6201" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6202" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6203" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6204" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6205" \$ 0!~/External *\|/{next};"\ 6206" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6207" {if(hide[section]) next};"\ 6208" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6209" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6210" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6211" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6212" ' prfx=^$ac_symprfx" 6213 else 6214 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6215 fi 6216 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6217 6218 # Check to see that the pipe works correctly. 6219 pipe_works=no 6220 6221 rm -f conftest* 6222 cat > conftest.$ac_ext <<_LT_EOF 6223#ifdef __cplusplus 6224extern "C" { 6225#endif 6226char nm_test_var; 6227void nm_test_func(void); 6228void nm_test_func(void){} 6229#ifdef __cplusplus 6230} 6231#endif 6232int main(){nm_test_var='a';nm_test_func();return(0);} 6233_LT_EOF 6234 6235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6236 (eval $ac_compile) 2>&5 6237 ac_status=$? 6238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6239 test $ac_status = 0; }; then 6240 # Now try to grab the symbols. 6241 nlist=conftest.nm 6242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6243 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6244 ac_status=$? 6245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6246 test $ac_status = 0; } && test -s "$nlist"; then 6247 # Try sorting and uniquifying the output. 6248 if sort "$nlist" | uniq > "$nlist"T; then 6249 mv -f "$nlist"T "$nlist" 6250 else 6251 rm -f "$nlist"T 6252 fi 6253 6254 # Make sure that we snagged all the symbols we need. 6255 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6256 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6257 cat <<_LT_EOF > conftest.$ac_ext 6258/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6259#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6260/* DATA imports from DLLs on WIN32 can't be const, because runtime 6261 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6262# define LT_DLSYM_CONST 6263#elif defined __osf__ 6264/* This system does not cope well with relocations in const data. */ 6265# define LT_DLSYM_CONST 6266#else 6267# define LT_DLSYM_CONST const 6268#endif 6269 6270#ifdef __cplusplus 6271extern "C" { 6272#endif 6273 6274_LT_EOF 6275 # Now generate the symbol file. 6276 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6277 6278 cat <<_LT_EOF >> conftest.$ac_ext 6279 6280/* The mapping between symbol names and symbols. */ 6281LT_DLSYM_CONST struct { 6282 const char *name; 6283 void *address; 6284} 6285lt__PROGRAM__LTX_preloaded_symbols[] = 6286{ 6287 { "@PROGRAM@", (void *) 0 }, 6288_LT_EOF 6289 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6290 cat <<\_LT_EOF >> conftest.$ac_ext 6291 {0, (void *) 0} 6292}; 6293 6294/* This works around a problem in FreeBSD linker */ 6295#ifdef FREEBSD_WORKAROUND 6296static const void *lt_preloaded_setup() { 6297 return lt__PROGRAM__LTX_preloaded_symbols; 6298} 6299#endif 6300 6301#ifdef __cplusplus 6302} 6303#endif 6304_LT_EOF 6305 # Now try linking the two files. 6306 mv conftest.$ac_objext conftstm.$ac_objext 6307 lt_globsym_save_LIBS=$LIBS 6308 lt_globsym_save_CFLAGS=$CFLAGS 6309 LIBS=conftstm.$ac_objext 6310 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6312 (eval $ac_link) 2>&5 6313 ac_status=$? 6314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6315 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6316 pipe_works=yes 6317 fi 6318 LIBS=$lt_globsym_save_LIBS 6319 CFLAGS=$lt_globsym_save_CFLAGS 6320 else 6321 echo "cannot find nm_test_func in $nlist" >&5 6322 fi 6323 else 6324 echo "cannot find nm_test_var in $nlist" >&5 6325 fi 6326 else 6327 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6328 fi 6329 else 6330 echo "$progname: failed program was:" >&5 6331 cat conftest.$ac_ext >&5 6332 fi 6333 rm -rf conftest* conftst* 6334 6335 # Do not use the global_symbol_pipe unless it works. 6336 if test yes = "$pipe_works"; then 6337 break 6338 else 6339 lt_cv_sys_global_symbol_pipe= 6340 fi 6341done 6342 6343fi 6344 6345if test -z "$lt_cv_sys_global_symbol_pipe"; then 6346 lt_cv_sys_global_symbol_to_cdecl= 6347fi 6348if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6350$as_echo "failed" >&6; } 6351else 6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6353$as_echo "ok" >&6; } 6354fi 6355 6356# Response file support. 6357if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6358 nm_file_list_spec='@' 6359elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6360 nm_file_list_spec='@' 6361fi 6362 6363 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 6399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6400$as_echo_n "checking for sysroot... " >&6; } 6401 6402# Check whether --with-sysroot was given. 6403if test "${with_sysroot+set}" = set; then : 6404 withval=$with_sysroot; 6405else 6406 with_sysroot=no 6407fi 6408 6409 6410lt_sysroot= 6411case $with_sysroot in #( 6412 yes) 6413 if test yes = "$GCC"; then 6414 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6415 fi 6416 ;; #( 6417 /*) 6418 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6419 ;; #( 6420 no|'') 6421 ;; #( 6422 *) 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6424$as_echo "$with_sysroot" >&6; } 6425 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6426 ;; 6427esac 6428 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6430$as_echo "${lt_sysroot:-no}" >&6; } 6431 6432 6433 6434 6435 6436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6437$as_echo_n "checking for a working dd... " >&6; } 6438if ${ac_cv_path_lt_DD+:} false; then : 6439 $as_echo_n "(cached) " >&6 6440else 6441 printf 0123456789abcdef0123456789abcdef >conftest.i 6442cat conftest.i conftest.i >conftest2.i 6443: ${lt_DD:=$DD} 6444if test -z "$lt_DD"; then 6445 ac_path_lt_DD_found=false 6446 # Loop through the user's path and test for each of PROGNAME-LIST 6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6448for as_dir in $PATH 6449do 6450 IFS=$as_save_IFS 6451 test -z "$as_dir" && as_dir=. 6452 for ac_prog in dd; do 6453 for ac_exec_ext in '' $ac_executable_extensions; do 6454 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6455 as_fn_executable_p "$ac_path_lt_DD" || continue 6456if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6457 cmp -s conftest.i conftest.out \ 6458 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6459fi 6460 $ac_path_lt_DD_found && break 3 6461 done 6462 done 6463 done 6464IFS=$as_save_IFS 6465 if test -z "$ac_cv_path_lt_DD"; then 6466 : 6467 fi 6468else 6469 ac_cv_path_lt_DD=$lt_DD 6470fi 6471 6472rm -f conftest.i conftest2.i conftest.out 6473fi 6474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6475$as_echo "$ac_cv_path_lt_DD" >&6; } 6476 6477 6478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6479$as_echo_n "checking how to truncate binary pipes... " >&6; } 6480if ${lt_cv_truncate_bin+:} false; then : 6481 $as_echo_n "(cached) " >&6 6482else 6483 printf 0123456789abcdef0123456789abcdef >conftest.i 6484cat conftest.i conftest.i >conftest2.i 6485lt_cv_truncate_bin= 6486if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6487 cmp -s conftest.i conftest.out \ 6488 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6489fi 6490rm -f conftest.i conftest2.i conftest.out 6491test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6492fi 6493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6494$as_echo "$lt_cv_truncate_bin" >&6; } 6495 6496 6497 6498 6499 6500 6501 6502# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6503func_cc_basename () 6504{ 6505 for cc_temp in $*""; do 6506 case $cc_temp in 6507 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6508 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6509 \-*) ;; 6510 *) break;; 6511 esac 6512 done 6513 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6514} 6515 6516# Check whether --enable-libtool-lock was given. 6517if test "${enable_libtool_lock+set}" = set; then : 6518 enableval=$enable_libtool_lock; 6519fi 6520 6521test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6522 6523# Some flags need to be propagated to the compiler or linker for good 6524# libtool support. 6525case $host in 6526ia64-*-hpux*) 6527 # Find out what ABI is being produced by ac_compile, and set mode 6528 # options accordingly. 6529 echo 'int i;' > conftest.$ac_ext 6530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6531 (eval $ac_compile) 2>&5 6532 ac_status=$? 6533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6534 test $ac_status = 0; }; then 6535 case `/usr/bin/file conftest.$ac_objext` in 6536 *ELF-32*) 6537 HPUX_IA64_MODE=32 6538 ;; 6539 *ELF-64*) 6540 HPUX_IA64_MODE=64 6541 ;; 6542 esac 6543 fi 6544 rm -rf conftest* 6545 ;; 6546*-*-irix6*) 6547 # Find out what ABI is being produced by ac_compile, and set linker 6548 # options accordingly. 6549 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6551 (eval $ac_compile) 2>&5 6552 ac_status=$? 6553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6554 test $ac_status = 0; }; then 6555 if test yes = "$lt_cv_prog_gnu_ld"; then 6556 case `/usr/bin/file conftest.$ac_objext` in 6557 *32-bit*) 6558 LD="${LD-ld} -melf32bsmip" 6559 ;; 6560 *N32*) 6561 LD="${LD-ld} -melf32bmipn32" 6562 ;; 6563 *64-bit*) 6564 LD="${LD-ld} -melf64bmip" 6565 ;; 6566 esac 6567 else 6568 case `/usr/bin/file conftest.$ac_objext` in 6569 *32-bit*) 6570 LD="${LD-ld} -32" 6571 ;; 6572 *N32*) 6573 LD="${LD-ld} -n32" 6574 ;; 6575 *64-bit*) 6576 LD="${LD-ld} -64" 6577 ;; 6578 esac 6579 fi 6580 fi 6581 rm -rf conftest* 6582 ;; 6583 6584mips64*-*linux*) 6585 # Find out what ABI is being produced by ac_compile, and set linker 6586 # options accordingly. 6587 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6589 (eval $ac_compile) 2>&5 6590 ac_status=$? 6591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6592 test $ac_status = 0; }; then 6593 emul=elf 6594 case `/usr/bin/file conftest.$ac_objext` in 6595 *32-bit*) 6596 emul="${emul}32" 6597 ;; 6598 *64-bit*) 6599 emul="${emul}64" 6600 ;; 6601 esac 6602 case `/usr/bin/file conftest.$ac_objext` in 6603 *MSB*) 6604 emul="${emul}btsmip" 6605 ;; 6606 *LSB*) 6607 emul="${emul}ltsmip" 6608 ;; 6609 esac 6610 case `/usr/bin/file conftest.$ac_objext` in 6611 *N32*) 6612 emul="${emul}n32" 6613 ;; 6614 esac 6615 LD="${LD-ld} -m $emul" 6616 fi 6617 rm -rf conftest* 6618 ;; 6619 6620x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6621s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6622 # Find out what ABI is being produced by ac_compile, and set linker 6623 # options accordingly. Note that the listed cases only cover the 6624 # situations where additional linker options are needed (such as when 6625 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6626 # vice versa); the common cases where no linker options are needed do 6627 # not appear in the list. 6628 echo 'int i;' > conftest.$ac_ext 6629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6630 (eval $ac_compile) 2>&5 6631 ac_status=$? 6632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6633 test $ac_status = 0; }; then 6634 case `/usr/bin/file conftest.o` in 6635 *32-bit*) 6636 case $host in 6637 x86_64-*kfreebsd*-gnu) 6638 LD="${LD-ld} -m elf_i386_fbsd" 6639 ;; 6640 x86_64-*linux*) 6641 case `/usr/bin/file conftest.o` in 6642 *x86-64*) 6643 LD="${LD-ld} -m elf32_x86_64" 6644 ;; 6645 *) 6646 LD="${LD-ld} -m elf_i386" 6647 ;; 6648 esac 6649 ;; 6650 powerpc64le-*linux*) 6651 LD="${LD-ld} -m elf32lppclinux" 6652 ;; 6653 powerpc64-*linux*) 6654 LD="${LD-ld} -m elf32ppclinux" 6655 ;; 6656 s390x-*linux*) 6657 LD="${LD-ld} -m elf_s390" 6658 ;; 6659 sparc64-*linux*) 6660 LD="${LD-ld} -m elf32_sparc" 6661 ;; 6662 esac 6663 ;; 6664 *64-bit*) 6665 case $host in 6666 x86_64-*kfreebsd*-gnu) 6667 LD="${LD-ld} -m elf_x86_64_fbsd" 6668 ;; 6669 x86_64-*linux*) 6670 LD="${LD-ld} -m elf_x86_64" 6671 ;; 6672 powerpcle-*linux*) 6673 LD="${LD-ld} -m elf64lppc" 6674 ;; 6675 powerpc-*linux*) 6676 LD="${LD-ld} -m elf64ppc" 6677 ;; 6678 s390*-*linux*|s390*-*tpf*) 6679 LD="${LD-ld} -m elf64_s390" 6680 ;; 6681 sparc*-*linux*) 6682 LD="${LD-ld} -m elf64_sparc" 6683 ;; 6684 esac 6685 ;; 6686 esac 6687 fi 6688 rm -rf conftest* 6689 ;; 6690 6691*-*-sco3.2v5*) 6692 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6693 SAVE_CFLAGS=$CFLAGS 6694 CFLAGS="$CFLAGS -belf" 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6696$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6697if ${lt_cv_cc_needs_belf+:} false; then : 6698 $as_echo_n "(cached) " >&6 6699else 6700 ac_ext=c 6701ac_cpp='$CPP $CPPFLAGS' 6702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6704ac_compiler_gnu=$ac_cv_c_compiler_gnu 6705 6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6707/* end confdefs.h. */ 6708 6709int 6710main () 6711{ 6712 6713 ; 6714 return 0; 6715} 6716_ACEOF 6717if ac_fn_c_try_link "$LINENO"; then : 6718 lt_cv_cc_needs_belf=yes 6719else 6720 lt_cv_cc_needs_belf=no 6721fi 6722rm -f core conftest.err conftest.$ac_objext \ 6723 conftest$ac_exeext conftest.$ac_ext 6724 ac_ext=c 6725ac_cpp='$CPP $CPPFLAGS' 6726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6728ac_compiler_gnu=$ac_cv_c_compiler_gnu 6729 6730fi 6731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6732$as_echo "$lt_cv_cc_needs_belf" >&6; } 6733 if test yes != "$lt_cv_cc_needs_belf"; then 6734 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6735 CFLAGS=$SAVE_CFLAGS 6736 fi 6737 ;; 6738*-*solaris*) 6739 # Find out what ABI is being produced by ac_compile, and set linker 6740 # options accordingly. 6741 echo 'int i;' > conftest.$ac_ext 6742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6743 (eval $ac_compile) 2>&5 6744 ac_status=$? 6745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6746 test $ac_status = 0; }; then 6747 case `/usr/bin/file conftest.o` in 6748 *64-bit*) 6749 case $lt_cv_prog_gnu_ld in 6750 yes*) 6751 case $host in 6752 i?86-*-solaris*|x86_64-*-solaris*) 6753 LD="${LD-ld} -m elf_x86_64" 6754 ;; 6755 sparc*-*-solaris*) 6756 LD="${LD-ld} -m elf64_sparc" 6757 ;; 6758 esac 6759 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6760 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6761 LD=${LD-ld}_sol2 6762 fi 6763 ;; 6764 *) 6765 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6766 LD="${LD-ld} -64" 6767 fi 6768 ;; 6769 esac 6770 ;; 6771 esac 6772 fi 6773 rm -rf conftest* 6774 ;; 6775esac 6776 6777need_locks=$enable_libtool_lock 6778 6779if test -n "$ac_tool_prefix"; then 6780 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6781set dummy ${ac_tool_prefix}mt; ac_word=$2 6782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6783$as_echo_n "checking for $ac_word... " >&6; } 6784if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6785 $as_echo_n "(cached) " >&6 6786else 6787 if test -n "$MANIFEST_TOOL"; then 6788 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6789else 6790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6791for as_dir in $PATH 6792do 6793 IFS=$as_save_IFS 6794 test -z "$as_dir" && as_dir=. 6795 for ac_exec_ext in '' $ac_executable_extensions; do 6796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6797 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6799 break 2 6800 fi 6801done 6802 done 6803IFS=$as_save_IFS 6804 6805fi 6806fi 6807MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6808if test -n "$MANIFEST_TOOL"; then 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6810$as_echo "$MANIFEST_TOOL" >&6; } 6811else 6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6813$as_echo "no" >&6; } 6814fi 6815 6816 6817fi 6818if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6819 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6820 # Extract the first word of "mt", so it can be a program name with args. 6821set dummy mt; ac_word=$2 6822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6823$as_echo_n "checking for $ac_word... " >&6; } 6824if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6825 $as_echo_n "(cached) " >&6 6826else 6827 if test -n "$ac_ct_MANIFEST_TOOL"; then 6828 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6829else 6830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6831for as_dir in $PATH 6832do 6833 IFS=$as_save_IFS 6834 test -z "$as_dir" && as_dir=. 6835 for ac_exec_ext in '' $ac_executable_extensions; do 6836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6837 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6839 break 2 6840 fi 6841done 6842 done 6843IFS=$as_save_IFS 6844 6845fi 6846fi 6847ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6848if test -n "$ac_ct_MANIFEST_TOOL"; then 6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6850$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6851else 6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6853$as_echo "no" >&6; } 6854fi 6855 6856 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6857 MANIFEST_TOOL=":" 6858 else 6859 case $cross_compiling:$ac_tool_warned in 6860yes:) 6861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6863ac_tool_warned=yes ;; 6864esac 6865 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6866 fi 6867else 6868 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6869fi 6870 6871test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6873$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6874if ${lt_cv_path_mainfest_tool+:} false; then : 6875 $as_echo_n "(cached) " >&6 6876else 6877 lt_cv_path_mainfest_tool=no 6878 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6879 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6880 cat conftest.err >&5 6881 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6882 lt_cv_path_mainfest_tool=yes 6883 fi 6884 rm -f conftest* 6885fi 6886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6887$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6888if test yes != "$lt_cv_path_mainfest_tool"; then 6889 MANIFEST_TOOL=: 6890fi 6891 6892 6893 6894 6895 6896 6897 case $host_os in 6898 rhapsody* | darwin*) 6899 if test -n "$ac_tool_prefix"; then 6900 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6901set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6903$as_echo_n "checking for $ac_word... " >&6; } 6904if ${ac_cv_prog_DSYMUTIL+:} false; then : 6905 $as_echo_n "(cached) " >&6 6906else 6907 if test -n "$DSYMUTIL"; then 6908 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6909else 6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6911for as_dir in $PATH 6912do 6913 IFS=$as_save_IFS 6914 test -z "$as_dir" && as_dir=. 6915 for ac_exec_ext in '' $ac_executable_extensions; do 6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6917 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6919 break 2 6920 fi 6921done 6922 done 6923IFS=$as_save_IFS 6924 6925fi 6926fi 6927DSYMUTIL=$ac_cv_prog_DSYMUTIL 6928if test -n "$DSYMUTIL"; then 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6930$as_echo "$DSYMUTIL" >&6; } 6931else 6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6933$as_echo "no" >&6; } 6934fi 6935 6936 6937fi 6938if test -z "$ac_cv_prog_DSYMUTIL"; then 6939 ac_ct_DSYMUTIL=$DSYMUTIL 6940 # Extract the first word of "dsymutil", so it can be a program name with args. 6941set dummy dsymutil; ac_word=$2 6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6943$as_echo_n "checking for $ac_word... " >&6; } 6944if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6945 $as_echo_n "(cached) " >&6 6946else 6947 if test -n "$ac_ct_DSYMUTIL"; then 6948 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6949else 6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6951for as_dir in $PATH 6952do 6953 IFS=$as_save_IFS 6954 test -z "$as_dir" && as_dir=. 6955 for ac_exec_ext in '' $ac_executable_extensions; do 6956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6957 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6959 break 2 6960 fi 6961done 6962 done 6963IFS=$as_save_IFS 6964 6965fi 6966fi 6967ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6968if test -n "$ac_ct_DSYMUTIL"; then 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6970$as_echo "$ac_ct_DSYMUTIL" >&6; } 6971else 6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6973$as_echo "no" >&6; } 6974fi 6975 6976 if test "x$ac_ct_DSYMUTIL" = x; then 6977 DSYMUTIL=":" 6978 else 6979 case $cross_compiling:$ac_tool_warned in 6980yes:) 6981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6983ac_tool_warned=yes ;; 6984esac 6985 DSYMUTIL=$ac_ct_DSYMUTIL 6986 fi 6987else 6988 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6989fi 6990 6991 if test -n "$ac_tool_prefix"; then 6992 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6993set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6995$as_echo_n "checking for $ac_word... " >&6; } 6996if ${ac_cv_prog_NMEDIT+:} false; then : 6997 $as_echo_n "(cached) " >&6 6998else 6999 if test -n "$NMEDIT"; then 7000 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7001else 7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7003for as_dir in $PATH 7004do 7005 IFS=$as_save_IFS 7006 test -z "$as_dir" && as_dir=. 7007 for ac_exec_ext in '' $ac_executable_extensions; do 7008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7009 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7011 break 2 7012 fi 7013done 7014 done 7015IFS=$as_save_IFS 7016 7017fi 7018fi 7019NMEDIT=$ac_cv_prog_NMEDIT 7020if test -n "$NMEDIT"; then 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7022$as_echo "$NMEDIT" >&6; } 7023else 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7025$as_echo "no" >&6; } 7026fi 7027 7028 7029fi 7030if test -z "$ac_cv_prog_NMEDIT"; then 7031 ac_ct_NMEDIT=$NMEDIT 7032 # Extract the first word of "nmedit", so it can be a program name with args. 7033set dummy nmedit; ac_word=$2 7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7035$as_echo_n "checking for $ac_word... " >&6; } 7036if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7037 $as_echo_n "(cached) " >&6 7038else 7039 if test -n "$ac_ct_NMEDIT"; then 7040 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7041else 7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7043for as_dir in $PATH 7044do 7045 IFS=$as_save_IFS 7046 test -z "$as_dir" && as_dir=. 7047 for ac_exec_ext in '' $ac_executable_extensions; do 7048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7049 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7051 break 2 7052 fi 7053done 7054 done 7055IFS=$as_save_IFS 7056 7057fi 7058fi 7059ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7060if test -n "$ac_ct_NMEDIT"; then 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7062$as_echo "$ac_ct_NMEDIT" >&6; } 7063else 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7065$as_echo "no" >&6; } 7066fi 7067 7068 if test "x$ac_ct_NMEDIT" = x; then 7069 NMEDIT=":" 7070 else 7071 case $cross_compiling:$ac_tool_warned in 7072yes:) 7073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7075ac_tool_warned=yes ;; 7076esac 7077 NMEDIT=$ac_ct_NMEDIT 7078 fi 7079else 7080 NMEDIT="$ac_cv_prog_NMEDIT" 7081fi 7082 7083 if test -n "$ac_tool_prefix"; then 7084 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7085set dummy ${ac_tool_prefix}lipo; ac_word=$2 7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7087$as_echo_n "checking for $ac_word... " >&6; } 7088if ${ac_cv_prog_LIPO+:} false; then : 7089 $as_echo_n "(cached) " >&6 7090else 7091 if test -n "$LIPO"; then 7092 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7093else 7094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7095for as_dir in $PATH 7096do 7097 IFS=$as_save_IFS 7098 test -z "$as_dir" && as_dir=. 7099 for ac_exec_ext in '' $ac_executable_extensions; do 7100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7101 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7103 break 2 7104 fi 7105done 7106 done 7107IFS=$as_save_IFS 7108 7109fi 7110fi 7111LIPO=$ac_cv_prog_LIPO 7112if test -n "$LIPO"; then 7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7114$as_echo "$LIPO" >&6; } 7115else 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7117$as_echo "no" >&6; } 7118fi 7119 7120 7121fi 7122if test -z "$ac_cv_prog_LIPO"; then 7123 ac_ct_LIPO=$LIPO 7124 # Extract the first word of "lipo", so it can be a program name with args. 7125set dummy lipo; ac_word=$2 7126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7127$as_echo_n "checking for $ac_word... " >&6; } 7128if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7129 $as_echo_n "(cached) " >&6 7130else 7131 if test -n "$ac_ct_LIPO"; then 7132 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7133else 7134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7135for as_dir in $PATH 7136do 7137 IFS=$as_save_IFS 7138 test -z "$as_dir" && as_dir=. 7139 for ac_exec_ext in '' $ac_executable_extensions; do 7140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7141 ac_cv_prog_ac_ct_LIPO="lipo" 7142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7143 break 2 7144 fi 7145done 7146 done 7147IFS=$as_save_IFS 7148 7149fi 7150fi 7151ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7152if test -n "$ac_ct_LIPO"; then 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7154$as_echo "$ac_ct_LIPO" >&6; } 7155else 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7157$as_echo "no" >&6; } 7158fi 7159 7160 if test "x$ac_ct_LIPO" = x; then 7161 LIPO=":" 7162 else 7163 case $cross_compiling:$ac_tool_warned in 7164yes:) 7165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7167ac_tool_warned=yes ;; 7168esac 7169 LIPO=$ac_ct_LIPO 7170 fi 7171else 7172 LIPO="$ac_cv_prog_LIPO" 7173fi 7174 7175 if test -n "$ac_tool_prefix"; then 7176 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7177set dummy ${ac_tool_prefix}otool; ac_word=$2 7178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7179$as_echo_n "checking for $ac_word... " >&6; } 7180if ${ac_cv_prog_OTOOL+:} false; then : 7181 $as_echo_n "(cached) " >&6 7182else 7183 if test -n "$OTOOL"; then 7184 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7185else 7186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7187for as_dir in $PATH 7188do 7189 IFS=$as_save_IFS 7190 test -z "$as_dir" && as_dir=. 7191 for ac_exec_ext in '' $ac_executable_extensions; do 7192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7193 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7195 break 2 7196 fi 7197done 7198 done 7199IFS=$as_save_IFS 7200 7201fi 7202fi 7203OTOOL=$ac_cv_prog_OTOOL 7204if test -n "$OTOOL"; then 7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7206$as_echo "$OTOOL" >&6; } 7207else 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7209$as_echo "no" >&6; } 7210fi 7211 7212 7213fi 7214if test -z "$ac_cv_prog_OTOOL"; then 7215 ac_ct_OTOOL=$OTOOL 7216 # Extract the first word of "otool", so it can be a program name with args. 7217set dummy otool; ac_word=$2 7218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7219$as_echo_n "checking for $ac_word... " >&6; } 7220if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7221 $as_echo_n "(cached) " >&6 7222else 7223 if test -n "$ac_ct_OTOOL"; then 7224 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7225else 7226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7227for as_dir in $PATH 7228do 7229 IFS=$as_save_IFS 7230 test -z "$as_dir" && as_dir=. 7231 for ac_exec_ext in '' $ac_executable_extensions; do 7232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7233 ac_cv_prog_ac_ct_OTOOL="otool" 7234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7235 break 2 7236 fi 7237done 7238 done 7239IFS=$as_save_IFS 7240 7241fi 7242fi 7243ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7244if test -n "$ac_ct_OTOOL"; then 7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7246$as_echo "$ac_ct_OTOOL" >&6; } 7247else 7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7249$as_echo "no" >&6; } 7250fi 7251 7252 if test "x$ac_ct_OTOOL" = x; then 7253 OTOOL=":" 7254 else 7255 case $cross_compiling:$ac_tool_warned in 7256yes:) 7257{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7259ac_tool_warned=yes ;; 7260esac 7261 OTOOL=$ac_ct_OTOOL 7262 fi 7263else 7264 OTOOL="$ac_cv_prog_OTOOL" 7265fi 7266 7267 if test -n "$ac_tool_prefix"; then 7268 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7269set dummy ${ac_tool_prefix}otool64; ac_word=$2 7270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7271$as_echo_n "checking for $ac_word... " >&6; } 7272if ${ac_cv_prog_OTOOL64+:} false; then : 7273 $as_echo_n "(cached) " >&6 7274else 7275 if test -n "$OTOOL64"; then 7276 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7277else 7278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7279for as_dir in $PATH 7280do 7281 IFS=$as_save_IFS 7282 test -z "$as_dir" && as_dir=. 7283 for ac_exec_ext in '' $ac_executable_extensions; do 7284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7285 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7287 break 2 7288 fi 7289done 7290 done 7291IFS=$as_save_IFS 7292 7293fi 7294fi 7295OTOOL64=$ac_cv_prog_OTOOL64 7296if test -n "$OTOOL64"; then 7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7298$as_echo "$OTOOL64" >&6; } 7299else 7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7301$as_echo "no" >&6; } 7302fi 7303 7304 7305fi 7306if test -z "$ac_cv_prog_OTOOL64"; then 7307 ac_ct_OTOOL64=$OTOOL64 7308 # Extract the first word of "otool64", so it can be a program name with args. 7309set dummy otool64; ac_word=$2 7310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7311$as_echo_n "checking for $ac_word... " >&6; } 7312if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7313 $as_echo_n "(cached) " >&6 7314else 7315 if test -n "$ac_ct_OTOOL64"; then 7316 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7317else 7318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7319for as_dir in $PATH 7320do 7321 IFS=$as_save_IFS 7322 test -z "$as_dir" && as_dir=. 7323 for ac_exec_ext in '' $ac_executable_extensions; do 7324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7325 ac_cv_prog_ac_ct_OTOOL64="otool64" 7326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7327 break 2 7328 fi 7329done 7330 done 7331IFS=$as_save_IFS 7332 7333fi 7334fi 7335ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7336if test -n "$ac_ct_OTOOL64"; then 7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7338$as_echo "$ac_ct_OTOOL64" >&6; } 7339else 7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7341$as_echo "no" >&6; } 7342fi 7343 7344 if test "x$ac_ct_OTOOL64" = x; then 7345 OTOOL64=":" 7346 else 7347 case $cross_compiling:$ac_tool_warned in 7348yes:) 7349{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7350$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7351ac_tool_warned=yes ;; 7352esac 7353 OTOOL64=$ac_ct_OTOOL64 7354 fi 7355else 7356 OTOOL64="$ac_cv_prog_OTOOL64" 7357fi 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7386$as_echo_n "checking for -single_module linker flag... " >&6; } 7387if ${lt_cv_apple_cc_single_mod+:} false; then : 7388 $as_echo_n "(cached) " >&6 7389else 7390 lt_cv_apple_cc_single_mod=no 7391 if test -z "$LT_MULTI_MODULE"; then 7392 # By default we will add the -single_module flag. You can override 7393 # by either setting the environment variable LT_MULTI_MODULE 7394 # non-empty at configure time, or by adding -multi_module to the 7395 # link flags. 7396 rm -rf libconftest.dylib* 7397 echo "int foo(void){return 1;}" > conftest.c 7398 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7399-dynamiclib -Wl,-single_module conftest.c" >&5 7400 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7401 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7402 _lt_result=$? 7403 # If there is a non-empty error log, and "single_module" 7404 # appears in it, assume the flag caused a linker warning 7405 if test -s conftest.err && $GREP single_module conftest.err; then 7406 cat conftest.err >&5 7407 # Otherwise, if the output was created with a 0 exit code from 7408 # the compiler, it worked. 7409 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7410 lt_cv_apple_cc_single_mod=yes 7411 else 7412 cat conftest.err >&5 7413 fi 7414 rm -rf libconftest.dylib* 7415 rm -f conftest.* 7416 fi 7417fi 7418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7419$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7420 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7422$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7423if ${lt_cv_ld_exported_symbols_list+:} false; then : 7424 $as_echo_n "(cached) " >&6 7425else 7426 lt_cv_ld_exported_symbols_list=no 7427 save_LDFLAGS=$LDFLAGS 7428 echo "_main" > conftest.sym 7429 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7431/* end confdefs.h. */ 7432 7433int 7434main () 7435{ 7436 7437 ; 7438 return 0; 7439} 7440_ACEOF 7441if ac_fn_c_try_link "$LINENO"; then : 7442 lt_cv_ld_exported_symbols_list=yes 7443else 7444 lt_cv_ld_exported_symbols_list=no 7445fi 7446rm -f core conftest.err conftest.$ac_objext \ 7447 conftest$ac_exeext conftest.$ac_ext 7448 LDFLAGS=$save_LDFLAGS 7449 7450fi 7451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7452$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7453 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7455$as_echo_n "checking for -force_load linker flag... " >&6; } 7456if ${lt_cv_ld_force_load+:} false; then : 7457 $as_echo_n "(cached) " >&6 7458else 7459 lt_cv_ld_force_load=no 7460 cat > conftest.c << _LT_EOF 7461int forced_loaded() { return 2;} 7462_LT_EOF 7463 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7464 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7465 echo "$AR cru libconftest.a conftest.o" >&5 7466 $AR cru libconftest.a conftest.o 2>&5 7467 echo "$RANLIB libconftest.a" >&5 7468 $RANLIB libconftest.a 2>&5 7469 cat > conftest.c << _LT_EOF 7470int main() { return 0;} 7471_LT_EOF 7472 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7473 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7474 _lt_result=$? 7475 if test -s conftest.err && $GREP force_load conftest.err; then 7476 cat conftest.err >&5 7477 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7478 lt_cv_ld_force_load=yes 7479 else 7480 cat conftest.err >&5 7481 fi 7482 rm -f conftest.err libconftest.a conftest conftest.c 7483 rm -rf conftest.dSYM 7484 7485fi 7486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7487$as_echo "$lt_cv_ld_force_load" >&6; } 7488 case $host_os in 7489 rhapsody* | darwin1.[012]) 7490 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7491 darwin1.*) 7492 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7493 darwin*) # darwin 5.x on 7494 # if running on 10.5 or later, the deployment target defaults 7495 # to the OS version, if on x86, and 10.4, the deployment 7496 # target defaults to 10.4. Don't you love it? 7497 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7498 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7499 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7500 10.[012][,.]*) 7501 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7502 10.*) 7503 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7504 esac 7505 ;; 7506 esac 7507 if test yes = "$lt_cv_apple_cc_single_mod"; then 7508 _lt_dar_single_mod='$single_module' 7509 fi 7510 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7511 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7512 else 7513 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7514 fi 7515 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7516 _lt_dsymutil='~$DSYMUTIL $lib || :' 7517 else 7518 _lt_dsymutil= 7519 fi 7520 ;; 7521 esac 7522 7523# func_munge_path_list VARIABLE PATH 7524# ----------------------------------- 7525# VARIABLE is name of variable containing _space_ separated list of 7526# directories to be munged by the contents of PATH, which is string 7527# having a format: 7528# "DIR[:DIR]:" 7529# string "DIR[ DIR]" will be prepended to VARIABLE 7530# ":DIR[:DIR]" 7531# string "DIR[ DIR]" will be appended to VARIABLE 7532# "DIRP[:DIRP]::[DIRA:]DIRA" 7533# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7534# "DIRA[ DIRA]" will be appended to VARIABLE 7535# "DIR[:DIR]" 7536# VARIABLE will be replaced by "DIR[ DIR]" 7537func_munge_path_list () 7538{ 7539 case x$2 in 7540 x) 7541 ;; 7542 *:) 7543 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7544 ;; 7545 x:*) 7546 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7547 ;; 7548 *::*) 7549 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7550 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7551 ;; 7552 *) 7553 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7554 ;; 7555 esac 7556} 7557 7558ac_ext=c 7559ac_cpp='$CPP $CPPFLAGS' 7560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7562ac_compiler_gnu=$ac_cv_c_compiler_gnu 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7564$as_echo_n "checking how to run the C preprocessor... " >&6; } 7565# On Suns, sometimes $CPP names a directory. 7566if test -n "$CPP" && test -d "$CPP"; then 7567 CPP= 7568fi 7569if test -z "$CPP"; then 7570 if ${ac_cv_prog_CPP+:} false; then : 7571 $as_echo_n "(cached) " >&6 7572else 7573 # Double quotes because CPP needs to be expanded 7574 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7575 do 7576 ac_preproc_ok=false 7577for ac_c_preproc_warn_flag in '' yes 7578do 7579 # Use a header file that comes with gcc, so configuring glibc 7580 # with a fresh cross-compiler works. 7581 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7582 # <limits.h> exists even on freestanding compilers. 7583 # On the NeXT, cc -E runs the code through the compiler's parser, 7584 # not just through cpp. "Syntax error" is here to catch this case. 7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7586/* end confdefs.h. */ 7587#ifdef __STDC__ 7588# include <limits.h> 7589#else 7590# include <assert.h> 7591#endif 7592 Syntax error 7593_ACEOF 7594if ac_fn_c_try_cpp "$LINENO"; then : 7595 7596else 7597 # Broken: fails on valid input. 7598continue 7599fi 7600rm -f conftest.err conftest.i conftest.$ac_ext 7601 7602 # OK, works on sane cases. Now check whether nonexistent headers 7603 # can be detected and how. 7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7605/* end confdefs.h. */ 7606#include <ac_nonexistent.h> 7607_ACEOF 7608if ac_fn_c_try_cpp "$LINENO"; then : 7609 # Broken: success on invalid input. 7610continue 7611else 7612 # Passes both tests. 7613ac_preproc_ok=: 7614break 7615fi 7616rm -f conftest.err conftest.i conftest.$ac_ext 7617 7618done 7619# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7620rm -f conftest.i conftest.err conftest.$ac_ext 7621if $ac_preproc_ok; then : 7622 break 7623fi 7624 7625 done 7626 ac_cv_prog_CPP=$CPP 7627 7628fi 7629 CPP=$ac_cv_prog_CPP 7630else 7631 ac_cv_prog_CPP=$CPP 7632fi 7633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7634$as_echo "$CPP" >&6; } 7635ac_preproc_ok=false 7636for ac_c_preproc_warn_flag in '' yes 7637do 7638 # Use a header file that comes with gcc, so configuring glibc 7639 # with a fresh cross-compiler works. 7640 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7641 # <limits.h> exists even on freestanding compilers. 7642 # On the NeXT, cc -E runs the code through the compiler's parser, 7643 # not just through cpp. "Syntax error" is here to catch this case. 7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7645/* end confdefs.h. */ 7646#ifdef __STDC__ 7647# include <limits.h> 7648#else 7649# include <assert.h> 7650#endif 7651 Syntax error 7652_ACEOF 7653if ac_fn_c_try_cpp "$LINENO"; then : 7654 7655else 7656 # Broken: fails on valid input. 7657continue 7658fi 7659rm -f conftest.err conftest.i conftest.$ac_ext 7660 7661 # OK, works on sane cases. Now check whether nonexistent headers 7662 # can be detected and how. 7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7664/* end confdefs.h. */ 7665#include <ac_nonexistent.h> 7666_ACEOF 7667if ac_fn_c_try_cpp "$LINENO"; then : 7668 # Broken: success on invalid input. 7669continue 7670else 7671 # Passes both tests. 7672ac_preproc_ok=: 7673break 7674fi 7675rm -f conftest.err conftest.i conftest.$ac_ext 7676 7677done 7678# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7679rm -f conftest.i conftest.err conftest.$ac_ext 7680if $ac_preproc_ok; then : 7681 7682else 7683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7685as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7686See \`config.log' for more details" "$LINENO" 5; } 7687fi 7688 7689ac_ext=c 7690ac_cpp='$CPP $CPPFLAGS' 7691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7693ac_compiler_gnu=$ac_cv_c_compiler_gnu 7694 7695 7696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7697$as_echo_n "checking for ANSI C header files... " >&6; } 7698if ${ac_cv_header_stdc+:} false; then : 7699 $as_echo_n "(cached) " >&6 7700else 7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7702/* end confdefs.h. */ 7703#include <stdlib.h> 7704#include <stdarg.h> 7705#include <string.h> 7706#include <float.h> 7707 7708int 7709main () 7710{ 7711 7712 ; 7713 return 0; 7714} 7715_ACEOF 7716if ac_fn_c_try_compile "$LINENO"; then : 7717 ac_cv_header_stdc=yes 7718else 7719 ac_cv_header_stdc=no 7720fi 7721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7722 7723if test $ac_cv_header_stdc = yes; then 7724 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7726/* end confdefs.h. */ 7727#include <string.h> 7728 7729_ACEOF 7730if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7731 $EGREP "memchr" >/dev/null 2>&1; then : 7732 7733else 7734 ac_cv_header_stdc=no 7735fi 7736rm -f conftest* 7737 7738fi 7739 7740if test $ac_cv_header_stdc = yes; then 7741 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7743/* end confdefs.h. */ 7744#include <stdlib.h> 7745 7746_ACEOF 7747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7748 $EGREP "free" >/dev/null 2>&1; then : 7749 7750else 7751 ac_cv_header_stdc=no 7752fi 7753rm -f conftest* 7754 7755fi 7756 7757if test $ac_cv_header_stdc = yes; then 7758 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7759 if test "$cross_compiling" = yes; then : 7760 : 7761else 7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7763/* end confdefs.h. */ 7764#include <ctype.h> 7765#include <stdlib.h> 7766#if ((' ' & 0x0FF) == 0x020) 7767# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7768# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7769#else 7770# define ISLOWER(c) \ 7771 (('a' <= (c) && (c) <= 'i') \ 7772 || ('j' <= (c) && (c) <= 'r') \ 7773 || ('s' <= (c) && (c) <= 'z')) 7774# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7775#endif 7776 7777#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7778int 7779main () 7780{ 7781 int i; 7782 for (i = 0; i < 256; i++) 7783 if (XOR (islower (i), ISLOWER (i)) 7784 || toupper (i) != TOUPPER (i)) 7785 return 2; 7786 return 0; 7787} 7788_ACEOF 7789if ac_fn_c_try_run "$LINENO"; then : 7790 7791else 7792 ac_cv_header_stdc=no 7793fi 7794rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7795 conftest.$ac_objext conftest.beam conftest.$ac_ext 7796fi 7797 7798fi 7799fi 7800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7801$as_echo "$ac_cv_header_stdc" >&6; } 7802if test $ac_cv_header_stdc = yes; then 7803 7804$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7805 7806fi 7807 7808# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7809for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7810 inttypes.h stdint.h unistd.h 7811do : 7812 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7813ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7814" 7815if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7816 cat >>confdefs.h <<_ACEOF 7817#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7818_ACEOF 7819 7820fi 7821 7822done 7823 7824 7825for ac_header in dlfcn.h 7826do : 7827 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7828" 7829if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7830 cat >>confdefs.h <<_ACEOF 7831#define HAVE_DLFCN_H 1 7832_ACEOF 7833 7834fi 7835 7836done 7837 7838 7839 7840 7841 7842# Set options 7843 7844 7845 7846 enable_dlopen=no 7847 7848 7849 enable_win32_dll=no 7850 7851 7852 # Check whether --enable-shared was given. 7853if test "${enable_shared+set}" = set; then : 7854 enableval=$enable_shared; p=${PACKAGE-default} 7855 case $enableval in 7856 yes) enable_shared=yes ;; 7857 no) enable_shared=no ;; 7858 *) 7859 enable_shared=no 7860 # Look at the argument we got. We use all the common list separators. 7861 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7862 for pkg in $enableval; do 7863 IFS=$lt_save_ifs 7864 if test "X$pkg" = "X$p"; then 7865 enable_shared=yes 7866 fi 7867 done 7868 IFS=$lt_save_ifs 7869 ;; 7870 esac 7871else 7872 enable_shared=yes 7873fi 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885# Check whether --with-pic was given. 7886if test "${with_pic+set}" = set; then : 7887 withval=$with_pic; lt_p=${PACKAGE-default} 7888 case $withval in 7889 yes|no) pic_mode=$withval ;; 7890 *) 7891 pic_mode=default 7892 # Look at the argument we got. We use all the common list separators. 7893 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7894 for lt_pkg in $withval; do 7895 IFS=$lt_save_ifs 7896 if test "X$lt_pkg" = "X$lt_p"; then 7897 pic_mode=yes 7898 fi 7899 done 7900 IFS=$lt_save_ifs 7901 ;; 7902 esac 7903else 7904 pic_mode=default 7905fi 7906 7907 7908 7909 7910 7911 7912 7913 7914 # Check whether --enable-fast-install was given. 7915if test "${enable_fast_install+set}" = set; then : 7916 enableval=$enable_fast_install; p=${PACKAGE-default} 7917 case $enableval in 7918 yes) enable_fast_install=yes ;; 7919 no) enable_fast_install=no ;; 7920 *) 7921 enable_fast_install=no 7922 # Look at the argument we got. We use all the common list separators. 7923 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7924 for pkg in $enableval; do 7925 IFS=$lt_save_ifs 7926 if test "X$pkg" = "X$p"; then 7927 enable_fast_install=yes 7928 fi 7929 done 7930 IFS=$lt_save_ifs 7931 ;; 7932 esac 7933else 7934 enable_fast_install=yes 7935fi 7936 7937 7938 7939 7940 7941 7942 7943 7944 shared_archive_member_spec= 7945case $host,$enable_shared in 7946power*-*-aix[5-9]*,yes) 7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7948$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7949 7950# Check whether --with-aix-soname was given. 7951if test "${with_aix_soname+set}" = set; then : 7952 withval=$with_aix_soname; case $withval in 7953 aix|svr4|both) 7954 ;; 7955 *) 7956 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7957 ;; 7958 esac 7959 lt_cv_with_aix_soname=$with_aix_soname 7960else 7961 if ${lt_cv_with_aix_soname+:} false; then : 7962 $as_echo_n "(cached) " >&6 7963else 7964 lt_cv_with_aix_soname=aix 7965fi 7966 7967 with_aix_soname=$lt_cv_with_aix_soname 7968fi 7969 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7971$as_echo "$with_aix_soname" >&6; } 7972 if test aix != "$with_aix_soname"; then 7973 # For the AIX way of multilib, we name the shared archive member 7974 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7975 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7976 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7977 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7978 if test 64 = "${OBJECT_MODE-32}"; then 7979 shared_archive_member_spec=shr_64 7980 else 7981 shared_archive_member_spec=shr 7982 fi 7983 fi 7984 ;; 7985*) 7986 with_aix_soname=aix 7987 ;; 7988esac 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999# This can be used to rebuild libtool when needed 8000LIBTOOL_DEPS=$ltmain 8001 8002# Always use our own libtool. 8003LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034test -z "$LN_S" && LN_S="ln -s" 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049if test -n "${ZSH_VERSION+set}"; then 8050 setopt NO_GLOB_SUBST 8051fi 8052 8053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8054$as_echo_n "checking for objdir... " >&6; } 8055if ${lt_cv_objdir+:} false; then : 8056 $as_echo_n "(cached) " >&6 8057else 8058 rm -f .libs 2>/dev/null 8059mkdir .libs 2>/dev/null 8060if test -d .libs; then 8061 lt_cv_objdir=.libs 8062else 8063 # MS-DOS does not allow filenames that begin with a dot. 8064 lt_cv_objdir=_libs 8065fi 8066rmdir .libs 2>/dev/null 8067fi 8068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8069$as_echo "$lt_cv_objdir" >&6; } 8070objdir=$lt_cv_objdir 8071 8072 8073 8074 8075 8076cat >>confdefs.h <<_ACEOF 8077#define LT_OBJDIR "$lt_cv_objdir/" 8078_ACEOF 8079 8080 8081 8082 8083case $host_os in 8084aix3*) 8085 # AIX sometimes has problems with the GCC collect2 program. For some 8086 # reason, if we set the COLLECT_NAMES environment variable, the problems 8087 # vanish in a puff of smoke. 8088 if test set != "${COLLECT_NAMES+set}"; then 8089 COLLECT_NAMES= 8090 export COLLECT_NAMES 8091 fi 8092 ;; 8093esac 8094 8095# Global variables: 8096ofile=libtool 8097can_build_shared=yes 8098 8099# All known linkers require a '.a' archive for static linking (except MSVC, 8100# which needs '.lib'). 8101libext=a 8102 8103with_gnu_ld=$lt_cv_prog_gnu_ld 8104 8105old_CC=$CC 8106old_CFLAGS=$CFLAGS 8107 8108# Set sane defaults for various variables 8109test -z "$CC" && CC=cc 8110test -z "$LTCC" && LTCC=$CC 8111test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8112test -z "$LD" && LD=ld 8113test -z "$ac_objext" && ac_objext=o 8114 8115func_cc_basename $compiler 8116cc_basename=$func_cc_basename_result 8117 8118 8119# Only perform the check for file, if the check method requires it 8120test -z "$MAGIC_CMD" && MAGIC_CMD=file 8121case $deplibs_check_method in 8122file_magic*) 8123 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8125$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8126if ${lt_cv_path_MAGIC_CMD+:} false; then : 8127 $as_echo_n "(cached) " >&6 8128else 8129 case $MAGIC_CMD in 8130[\\/*] | ?:[\\/]*) 8131 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8132 ;; 8133*) 8134 lt_save_MAGIC_CMD=$MAGIC_CMD 8135 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8136 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8137 for ac_dir in $ac_dummy; do 8138 IFS=$lt_save_ifs 8139 test -z "$ac_dir" && ac_dir=. 8140 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8141 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8142 if test -n "$file_magic_test_file"; then 8143 case $deplibs_check_method in 8144 "file_magic "*) 8145 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8146 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8147 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8148 $EGREP "$file_magic_regex" > /dev/null; then 8149 : 8150 else 8151 cat <<_LT_EOF 1>&2 8152 8153*** Warning: the command libtool uses to detect shared libraries, 8154*** $file_magic_cmd, produces output that libtool cannot recognize. 8155*** The result is that libtool may fail to recognize shared libraries 8156*** as such. This will affect the creation of libtool libraries that 8157*** depend on shared libraries, but programs linked with such libtool 8158*** libraries will work regardless of this problem. Nevertheless, you 8159*** may want to report the problem to your system manager and/or to 8160*** bug-libtool@gnu.org 8161 8162_LT_EOF 8163 fi ;; 8164 esac 8165 fi 8166 break 8167 fi 8168 done 8169 IFS=$lt_save_ifs 8170 MAGIC_CMD=$lt_save_MAGIC_CMD 8171 ;; 8172esac 8173fi 8174 8175MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8176if test -n "$MAGIC_CMD"; then 8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8178$as_echo "$MAGIC_CMD" >&6; } 8179else 8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8181$as_echo "no" >&6; } 8182fi 8183 8184 8185 8186 8187 8188if test -z "$lt_cv_path_MAGIC_CMD"; then 8189 if test -n "$ac_tool_prefix"; then 8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8191$as_echo_n "checking for file... " >&6; } 8192if ${lt_cv_path_MAGIC_CMD+:} false; then : 8193 $as_echo_n "(cached) " >&6 8194else 8195 case $MAGIC_CMD in 8196[\\/*] | ?:[\\/]*) 8197 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8198 ;; 8199*) 8200 lt_save_MAGIC_CMD=$MAGIC_CMD 8201 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8202 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8203 for ac_dir in $ac_dummy; do 8204 IFS=$lt_save_ifs 8205 test -z "$ac_dir" && ac_dir=. 8206 if test -f "$ac_dir/file"; then 8207 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8208 if test -n "$file_magic_test_file"; then 8209 case $deplibs_check_method in 8210 "file_magic "*) 8211 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8212 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8213 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8214 $EGREP "$file_magic_regex" > /dev/null; then 8215 : 8216 else 8217 cat <<_LT_EOF 1>&2 8218 8219*** Warning: the command libtool uses to detect shared libraries, 8220*** $file_magic_cmd, produces output that libtool cannot recognize. 8221*** The result is that libtool may fail to recognize shared libraries 8222*** as such. This will affect the creation of libtool libraries that 8223*** depend on shared libraries, but programs linked with such libtool 8224*** libraries will work regardless of this problem. Nevertheless, you 8225*** may want to report the problem to your system manager and/or to 8226*** bug-libtool@gnu.org 8227 8228_LT_EOF 8229 fi ;; 8230 esac 8231 fi 8232 break 8233 fi 8234 done 8235 IFS=$lt_save_ifs 8236 MAGIC_CMD=$lt_save_MAGIC_CMD 8237 ;; 8238esac 8239fi 8240 8241MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8242if test -n "$MAGIC_CMD"; then 8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8244$as_echo "$MAGIC_CMD" >&6; } 8245else 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8247$as_echo "no" >&6; } 8248fi 8249 8250 8251 else 8252 MAGIC_CMD=: 8253 fi 8254fi 8255 8256 fi 8257 ;; 8258esac 8259 8260# Use C for the default configuration in the libtool script 8261 8262lt_save_CC=$CC 8263ac_ext=c 8264ac_cpp='$CPP $CPPFLAGS' 8265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8267ac_compiler_gnu=$ac_cv_c_compiler_gnu 8268 8269 8270# Source file extension for C test sources. 8271ac_ext=c 8272 8273# Object file extension for compiled C test sources. 8274objext=o 8275objext=$objext 8276 8277# Code to be used in simple compile tests 8278lt_simple_compile_test_code="int some_variable = 0;" 8279 8280# Code to be used in simple link tests 8281lt_simple_link_test_code='int main(){return(0);}' 8282 8283 8284 8285 8286 8287 8288 8289# If no C compiler was specified, use CC. 8290LTCC=${LTCC-"$CC"} 8291 8292# If no C compiler flags were specified, use CFLAGS. 8293LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8294 8295# Allow CC to be a program name with arguments. 8296compiler=$CC 8297 8298# Save the default compiler, since it gets overwritten when the other 8299# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8300compiler_DEFAULT=$CC 8301 8302# save warnings/boilerplate of simple test code 8303ac_outfile=conftest.$ac_objext 8304echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8305eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8306_lt_compiler_boilerplate=`cat conftest.err` 8307$RM conftest* 8308 8309ac_outfile=conftest.$ac_objext 8310echo "$lt_simple_link_test_code" >conftest.$ac_ext 8311eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8312_lt_linker_boilerplate=`cat conftest.err` 8313$RM -r conftest* 8314 8315 8316if test -n "$compiler"; then 8317 8318lt_prog_compiler_no_builtin_flag= 8319 8320if test yes = "$GCC"; then 8321 case $cc_basename in 8322 nvcc*) 8323 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8324 *) 8325 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8326 esac 8327 8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8329$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8330if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8331 $as_echo_n "(cached) " >&6 8332else 8333 lt_cv_prog_compiler_rtti_exceptions=no 8334 ac_outfile=conftest.$ac_objext 8335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8336 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8337 # Insert the option either (1) after the last *FLAGS variable, or 8338 # (2) before a word containing "conftest.", or (3) at the end. 8339 # Note that $ac_compile itself does not contain backslashes and begins 8340 # with a dollar sign (not a hyphen), so the echo should work correctly. 8341 # The option is referenced via a variable to avoid confusing sed. 8342 lt_compile=`echo "$ac_compile" | $SED \ 8343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8345 -e 's:$: $lt_compiler_flag:'` 8346 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8347 (eval "$lt_compile" 2>conftest.err) 8348 ac_status=$? 8349 cat conftest.err >&5 8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8351 if (exit $ac_status) && test -s "$ac_outfile"; then 8352 # The compiler can only warn and ignore the option if not recognized 8353 # So say no if there are warnings other than the usual output. 8354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8356 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8357 lt_cv_prog_compiler_rtti_exceptions=yes 8358 fi 8359 fi 8360 $RM conftest* 8361 8362fi 8363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8364$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8365 8366if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8367 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8368else 8369 : 8370fi 8371 8372fi 8373 8374 8375 8376 8377 8378 8379 lt_prog_compiler_wl= 8380lt_prog_compiler_pic= 8381lt_prog_compiler_static= 8382 8383 8384 if test yes = "$GCC"; then 8385 lt_prog_compiler_wl='-Wl,' 8386 lt_prog_compiler_static='-static' 8387 8388 case $host_os in 8389 aix*) 8390 # All AIX code is PIC. 8391 if test ia64 = "$host_cpu"; then 8392 # AIX 5 now supports IA64 processor 8393 lt_prog_compiler_static='-Bstatic' 8394 fi 8395 lt_prog_compiler_pic='-fPIC' 8396 ;; 8397 8398 amigaos*) 8399 case $host_cpu in 8400 powerpc) 8401 # see comment about AmigaOS4 .so support 8402 lt_prog_compiler_pic='-fPIC' 8403 ;; 8404 m68k) 8405 # FIXME: we need at least 68020 code to build shared libraries, but 8406 # adding the '-m68020' flag to GCC prevents building anything better, 8407 # like '-m68040'. 8408 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8409 ;; 8410 esac 8411 ;; 8412 8413 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8414 # PIC is the default for these OSes. 8415 ;; 8416 8417 mingw* | cygwin* | pw32* | os2* | cegcc*) 8418 # This hack is so that the source file can tell whether it is being 8419 # built for inclusion in a dll (and should export symbols for example). 8420 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8421 # (--disable-auto-import) libraries 8422 lt_prog_compiler_pic='-DDLL_EXPORT' 8423 case $host_os in 8424 os2*) 8425 lt_prog_compiler_static='$wl-static' 8426 ;; 8427 esac 8428 ;; 8429 8430 darwin* | rhapsody*) 8431 # PIC is the default on this platform 8432 # Common symbols not allowed in MH_DYLIB files 8433 lt_prog_compiler_pic='-fno-common' 8434 ;; 8435 8436 haiku*) 8437 # PIC is the default for Haiku. 8438 # The "-static" flag exists, but is broken. 8439 lt_prog_compiler_static= 8440 ;; 8441 8442 hpux*) 8443 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8444 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8445 # sets the default TLS model and affects inlining. 8446 case $host_cpu in 8447 hppa*64*) 8448 # +Z the default 8449 ;; 8450 *) 8451 lt_prog_compiler_pic='-fPIC' 8452 ;; 8453 esac 8454 ;; 8455 8456 interix[3-9]*) 8457 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8458 # Instead, we relocate shared libraries at runtime. 8459 ;; 8460 8461 msdosdjgpp*) 8462 # Just because we use GCC doesn't mean we suddenly get shared libraries 8463 # on systems that don't support them. 8464 lt_prog_compiler_can_build_shared=no 8465 enable_shared=no 8466 ;; 8467 8468 *nto* | *qnx*) 8469 # QNX uses GNU C++, but need to define -shared option too, otherwise 8470 # it will coredump. 8471 lt_prog_compiler_pic='-fPIC -shared' 8472 ;; 8473 8474 sysv4*MP*) 8475 if test -d /usr/nec; then 8476 lt_prog_compiler_pic=-Kconform_pic 8477 fi 8478 ;; 8479 8480 *) 8481 lt_prog_compiler_pic='-fPIC' 8482 ;; 8483 esac 8484 8485 case $cc_basename in 8486 nvcc*) # Cuda Compiler Driver 2.2 8487 lt_prog_compiler_wl='-Xlinker ' 8488 if test -n "$lt_prog_compiler_pic"; then 8489 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8490 fi 8491 ;; 8492 esac 8493 else 8494 # PORTME Check for flag to pass linker flags through the system compiler. 8495 case $host_os in 8496 aix*) 8497 lt_prog_compiler_wl='-Wl,' 8498 if test ia64 = "$host_cpu"; then 8499 # AIX 5 now supports IA64 processor 8500 lt_prog_compiler_static='-Bstatic' 8501 else 8502 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8503 fi 8504 ;; 8505 8506 darwin* | rhapsody*) 8507 # PIC is the default on this platform 8508 # Common symbols not allowed in MH_DYLIB files 8509 lt_prog_compiler_pic='-fno-common' 8510 case $cc_basename in 8511 nagfor*) 8512 # NAG Fortran compiler 8513 lt_prog_compiler_wl='-Wl,-Wl,,' 8514 lt_prog_compiler_pic='-PIC' 8515 lt_prog_compiler_static='-Bstatic' 8516 ;; 8517 esac 8518 ;; 8519 8520 mingw* | cygwin* | pw32* | os2* | cegcc*) 8521 # This hack is so that the source file can tell whether it is being 8522 # built for inclusion in a dll (and should export symbols for example). 8523 lt_prog_compiler_pic='-DDLL_EXPORT' 8524 case $host_os in 8525 os2*) 8526 lt_prog_compiler_static='$wl-static' 8527 ;; 8528 esac 8529 ;; 8530 8531 hpux9* | hpux10* | hpux11*) 8532 lt_prog_compiler_wl='-Wl,' 8533 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8534 # not for PA HP-UX. 8535 case $host_cpu in 8536 hppa*64*|ia64*) 8537 # +Z the default 8538 ;; 8539 *) 8540 lt_prog_compiler_pic='+Z' 8541 ;; 8542 esac 8543 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8544 lt_prog_compiler_static='$wl-a ${wl}archive' 8545 ;; 8546 8547 irix5* | irix6* | nonstopux*) 8548 lt_prog_compiler_wl='-Wl,' 8549 # PIC (with -KPIC) is the default. 8550 lt_prog_compiler_static='-non_shared' 8551 ;; 8552 8553 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8554 case $cc_basename in 8555 # old Intel for x86_64, which still supported -KPIC. 8556 ecc*) 8557 lt_prog_compiler_wl='-Wl,' 8558 lt_prog_compiler_pic='-KPIC' 8559 lt_prog_compiler_static='-static' 8560 ;; 8561 # icc used to be incompatible with GCC. 8562 # ICC 10 doesn't accept -KPIC any more. 8563 icc* | ifort*) 8564 lt_prog_compiler_wl='-Wl,' 8565 lt_prog_compiler_pic='-fPIC' 8566 lt_prog_compiler_static='-static' 8567 ;; 8568 # Lahey Fortran 8.1. 8569 lf95*) 8570 lt_prog_compiler_wl='-Wl,' 8571 lt_prog_compiler_pic='--shared' 8572 lt_prog_compiler_static='--static' 8573 ;; 8574 nagfor*) 8575 # NAG Fortran compiler 8576 lt_prog_compiler_wl='-Wl,-Wl,,' 8577 lt_prog_compiler_pic='-PIC' 8578 lt_prog_compiler_static='-Bstatic' 8579 ;; 8580 tcc*) 8581 # Fabrice Bellard et al's Tiny C Compiler 8582 lt_prog_compiler_wl='-Wl,' 8583 lt_prog_compiler_pic='-fPIC' 8584 lt_prog_compiler_static='-static' 8585 ;; 8586 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8587 # Portland Group compilers (*not* the Pentium gcc compiler, 8588 # which looks to be a dead project) 8589 lt_prog_compiler_wl='-Wl,' 8590 lt_prog_compiler_pic='-fpic' 8591 lt_prog_compiler_static='-Bstatic' 8592 ;; 8593 ccc*) 8594 lt_prog_compiler_wl='-Wl,' 8595 # All Alpha code is PIC. 8596 lt_prog_compiler_static='-non_shared' 8597 ;; 8598 xl* | bgxl* | bgf* | mpixl*) 8599 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8600 lt_prog_compiler_wl='-Wl,' 8601 lt_prog_compiler_pic='-qpic' 8602 lt_prog_compiler_static='-qstaticlink' 8603 ;; 8604 *) 8605 case `$CC -V 2>&1 | sed 5q` in 8606 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8607 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8608 lt_prog_compiler_pic='-KPIC' 8609 lt_prog_compiler_static='-Bstatic' 8610 lt_prog_compiler_wl='' 8611 ;; 8612 *Sun\ F* | *Sun*Fortran*) 8613 lt_prog_compiler_pic='-KPIC' 8614 lt_prog_compiler_static='-Bstatic' 8615 lt_prog_compiler_wl='-Qoption ld ' 8616 ;; 8617 *Sun\ C*) 8618 # Sun C 5.9 8619 lt_prog_compiler_pic='-KPIC' 8620 lt_prog_compiler_static='-Bstatic' 8621 lt_prog_compiler_wl='-Wl,' 8622 ;; 8623 *Intel*\ [CF]*Compiler*) 8624 lt_prog_compiler_wl='-Wl,' 8625 lt_prog_compiler_pic='-fPIC' 8626 lt_prog_compiler_static='-static' 8627 ;; 8628 *Portland\ Group*) 8629 lt_prog_compiler_wl='-Wl,' 8630 lt_prog_compiler_pic='-fpic' 8631 lt_prog_compiler_static='-Bstatic' 8632 ;; 8633 esac 8634 ;; 8635 esac 8636 ;; 8637 8638 newsos6) 8639 lt_prog_compiler_pic='-KPIC' 8640 lt_prog_compiler_static='-Bstatic' 8641 ;; 8642 8643 *nto* | *qnx*) 8644 # QNX uses GNU C++, but need to define -shared option too, otherwise 8645 # it will coredump. 8646 lt_prog_compiler_pic='-fPIC -shared' 8647 ;; 8648 8649 osf3* | osf4* | osf5*) 8650 lt_prog_compiler_wl='-Wl,' 8651 # All OSF/1 code is PIC. 8652 lt_prog_compiler_static='-non_shared' 8653 ;; 8654 8655 rdos*) 8656 lt_prog_compiler_static='-non_shared' 8657 ;; 8658 8659 solaris*) 8660 lt_prog_compiler_pic='-KPIC' 8661 lt_prog_compiler_static='-Bstatic' 8662 case $cc_basename in 8663 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8664 lt_prog_compiler_wl='-Qoption ld ';; 8665 *) 8666 lt_prog_compiler_wl='-Wl,';; 8667 esac 8668 ;; 8669 8670 sunos4*) 8671 lt_prog_compiler_wl='-Qoption ld ' 8672 lt_prog_compiler_pic='-PIC' 8673 lt_prog_compiler_static='-Bstatic' 8674 ;; 8675 8676 sysv4 | sysv4.2uw2* | sysv4.3*) 8677 lt_prog_compiler_wl='-Wl,' 8678 lt_prog_compiler_pic='-KPIC' 8679 lt_prog_compiler_static='-Bstatic' 8680 ;; 8681 8682 sysv4*MP*) 8683 if test -d /usr/nec; then 8684 lt_prog_compiler_pic='-Kconform_pic' 8685 lt_prog_compiler_static='-Bstatic' 8686 fi 8687 ;; 8688 8689 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8690 lt_prog_compiler_wl='-Wl,' 8691 lt_prog_compiler_pic='-KPIC' 8692 lt_prog_compiler_static='-Bstatic' 8693 ;; 8694 8695 unicos*) 8696 lt_prog_compiler_wl='-Wl,' 8697 lt_prog_compiler_can_build_shared=no 8698 ;; 8699 8700 uts4*) 8701 lt_prog_compiler_pic='-pic' 8702 lt_prog_compiler_static='-Bstatic' 8703 ;; 8704 8705 *) 8706 lt_prog_compiler_can_build_shared=no 8707 ;; 8708 esac 8709 fi 8710 8711case $host_os in 8712 # For platforms that do not support PIC, -DPIC is meaningless: 8713 *djgpp*) 8714 lt_prog_compiler_pic= 8715 ;; 8716 *) 8717 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8718 ;; 8719esac 8720 8721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8722$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8723if ${lt_cv_prog_compiler_pic+:} false; then : 8724 $as_echo_n "(cached) " >&6 8725else 8726 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8727fi 8728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8729$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8730lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8731 8732# 8733# Check to make sure the PIC flag actually works. 8734# 8735if test -n "$lt_prog_compiler_pic"; then 8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8737$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8738if ${lt_cv_prog_compiler_pic_works+:} false; then : 8739 $as_echo_n "(cached) " >&6 8740else 8741 lt_cv_prog_compiler_pic_works=no 8742 ac_outfile=conftest.$ac_objext 8743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8744 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8745 # Insert the option either (1) after the last *FLAGS variable, or 8746 # (2) before a word containing "conftest.", or (3) at the end. 8747 # Note that $ac_compile itself does not contain backslashes and begins 8748 # with a dollar sign (not a hyphen), so the echo should work correctly. 8749 # The option is referenced via a variable to avoid confusing sed. 8750 lt_compile=`echo "$ac_compile" | $SED \ 8751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8753 -e 's:$: $lt_compiler_flag:'` 8754 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8755 (eval "$lt_compile" 2>conftest.err) 8756 ac_status=$? 8757 cat conftest.err >&5 8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8759 if (exit $ac_status) && test -s "$ac_outfile"; then 8760 # The compiler can only warn and ignore the option if not recognized 8761 # So say no if there are warnings other than the usual output. 8762 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8764 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8765 lt_cv_prog_compiler_pic_works=yes 8766 fi 8767 fi 8768 $RM conftest* 8769 8770fi 8771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8772$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8773 8774if test yes = "$lt_cv_prog_compiler_pic_works"; then 8775 case $lt_prog_compiler_pic in 8776 "" | " "*) ;; 8777 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8778 esac 8779else 8780 lt_prog_compiler_pic= 8781 lt_prog_compiler_can_build_shared=no 8782fi 8783 8784fi 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796# 8797# Check to make sure the static flag actually works. 8798# 8799wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8801$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8802if ${lt_cv_prog_compiler_static_works+:} false; then : 8803 $as_echo_n "(cached) " >&6 8804else 8805 lt_cv_prog_compiler_static_works=no 8806 save_LDFLAGS=$LDFLAGS 8807 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8808 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8809 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8810 # The linker can only warn and ignore the option if not recognized 8811 # So say no if there are warnings 8812 if test -s conftest.err; then 8813 # Append any errors to the config.log. 8814 cat conftest.err 1>&5 8815 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8817 if diff conftest.exp conftest.er2 >/dev/null; then 8818 lt_cv_prog_compiler_static_works=yes 8819 fi 8820 else 8821 lt_cv_prog_compiler_static_works=yes 8822 fi 8823 fi 8824 $RM -r conftest* 8825 LDFLAGS=$save_LDFLAGS 8826 8827fi 8828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8829$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8830 8831if test yes = "$lt_cv_prog_compiler_static_works"; then 8832 : 8833else 8834 lt_prog_compiler_static= 8835fi 8836 8837 8838 8839 8840 8841 8842 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8844$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8845if ${lt_cv_prog_compiler_c_o+:} false; then : 8846 $as_echo_n "(cached) " >&6 8847else 8848 lt_cv_prog_compiler_c_o=no 8849 $RM -r conftest 2>/dev/null 8850 mkdir conftest 8851 cd conftest 8852 mkdir out 8853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8854 8855 lt_compiler_flag="-o out/conftest2.$ac_objext" 8856 # Insert the option either (1) after the last *FLAGS variable, or 8857 # (2) before a word containing "conftest.", or (3) at the end. 8858 # Note that $ac_compile itself does not contain backslashes and begins 8859 # with a dollar sign (not a hyphen), so the echo should work correctly. 8860 lt_compile=`echo "$ac_compile" | $SED \ 8861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8863 -e 's:$: $lt_compiler_flag:'` 8864 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8865 (eval "$lt_compile" 2>out/conftest.err) 8866 ac_status=$? 8867 cat out/conftest.err >&5 8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8869 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8870 then 8871 # The compiler can only warn and ignore the option if not recognized 8872 # So say no if there are warnings 8873 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8874 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8875 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8876 lt_cv_prog_compiler_c_o=yes 8877 fi 8878 fi 8879 chmod u+w . 2>&5 8880 $RM conftest* 8881 # SGI C++ compiler will create directory out/ii_files/ for 8882 # template instantiation 8883 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8884 $RM out/* && rmdir out 8885 cd .. 8886 $RM -r conftest 8887 $RM conftest* 8888 8889fi 8890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8891$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8892 8893 8894 8895 8896 8897 8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8899$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8900if ${lt_cv_prog_compiler_c_o+:} false; then : 8901 $as_echo_n "(cached) " >&6 8902else 8903 lt_cv_prog_compiler_c_o=no 8904 $RM -r conftest 2>/dev/null 8905 mkdir conftest 8906 cd conftest 8907 mkdir out 8908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8909 8910 lt_compiler_flag="-o out/conftest2.$ac_objext" 8911 # Insert the option either (1) after the last *FLAGS variable, or 8912 # (2) before a word containing "conftest.", or (3) at the end. 8913 # Note that $ac_compile itself does not contain backslashes and begins 8914 # with a dollar sign (not a hyphen), so the echo should work correctly. 8915 lt_compile=`echo "$ac_compile" | $SED \ 8916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8918 -e 's:$: $lt_compiler_flag:'` 8919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8920 (eval "$lt_compile" 2>out/conftest.err) 8921 ac_status=$? 8922 cat out/conftest.err >&5 8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8924 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8925 then 8926 # The compiler can only warn and ignore the option if not recognized 8927 # So say no if there are warnings 8928 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8929 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8930 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8931 lt_cv_prog_compiler_c_o=yes 8932 fi 8933 fi 8934 chmod u+w . 2>&5 8935 $RM conftest* 8936 # SGI C++ compiler will create directory out/ii_files/ for 8937 # template instantiation 8938 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8939 $RM out/* && rmdir out 8940 cd .. 8941 $RM -r conftest 8942 $RM conftest* 8943 8944fi 8945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8946$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8947 8948 8949 8950 8951hard_links=nottested 8952if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8953 # do not overwrite the value of need_locks provided by the user 8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8955$as_echo_n "checking if we can lock with hard links... " >&6; } 8956 hard_links=yes 8957 $RM conftest* 8958 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8959 touch conftest.a 8960 ln conftest.a conftest.b 2>&5 || hard_links=no 8961 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8963$as_echo "$hard_links" >&6; } 8964 if test no = "$hard_links"; then 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8966$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8967 need_locks=warn 8968 fi 8969else 8970 need_locks=no 8971fi 8972 8973 8974 8975 8976 8977 8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8979$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8980 8981 runpath_var= 8982 allow_undefined_flag= 8983 always_export_symbols=no 8984 archive_cmds= 8985 archive_expsym_cmds= 8986 compiler_needs_object=no 8987 enable_shared_with_static_runtimes=no 8988 export_dynamic_flag_spec= 8989 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8990 hardcode_automatic=no 8991 hardcode_direct=no 8992 hardcode_direct_absolute=no 8993 hardcode_libdir_flag_spec= 8994 hardcode_libdir_separator= 8995 hardcode_minus_L=no 8996 hardcode_shlibpath_var=unsupported 8997 inherit_rpath=no 8998 link_all_deplibs=unknown 8999 module_cmds= 9000 module_expsym_cmds= 9001 old_archive_from_new_cmds= 9002 old_archive_from_expsyms_cmds= 9003 thread_safe_flag_spec= 9004 whole_archive_flag_spec= 9005 # include_expsyms should be a list of space-separated symbols to be *always* 9006 # included in the symbol list 9007 include_expsyms= 9008 # exclude_expsyms can be an extended regexp of symbols to exclude 9009 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9010 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9011 # as well as any symbol that contains 'd'. 9012 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9013 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9014 # platforms (ab)use it in PIC code, but their linkers get confused if 9015 # the symbol is explicitly referenced. Since portable code cannot 9016 # rely on this symbol name, it's probably fine to never include it in 9017 # preloaded symbol tables. 9018 # Exclude shared library initialization/finalization symbols. 9019 extract_expsyms_cmds= 9020 9021 case $host_os in 9022 cygwin* | mingw* | pw32* | cegcc*) 9023 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9024 # When not using gcc, we currently assume that we are using 9025 # Microsoft Visual C++. 9026 if test yes != "$GCC"; then 9027 with_gnu_ld=no 9028 fi 9029 ;; 9030 interix*) 9031 # we just hope/assume this is gcc and not c89 (= MSVC++) 9032 with_gnu_ld=yes 9033 ;; 9034 openbsd* | bitrig*) 9035 with_gnu_ld=no 9036 ;; 9037 esac 9038 9039 ld_shlibs=yes 9040 9041 # On some targets, GNU ld is compatible enough with the native linker 9042 # that we're better off using the native interface for both. 9043 lt_use_gnu_ld_interface=no 9044 if test yes = "$with_gnu_ld"; then 9045 case $host_os in 9046 aix*) 9047 # The AIX port of GNU ld has always aspired to compatibility 9048 # with the native linker. However, as the warning in the GNU ld 9049 # block says, versions before 2.19.5* couldn't really create working 9050 # shared libraries, regardless of the interface used. 9051 case `$LD -v 2>&1` in 9052 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9053 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9054 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9055 *) 9056 lt_use_gnu_ld_interface=yes 9057 ;; 9058 esac 9059 ;; 9060 *) 9061 lt_use_gnu_ld_interface=yes 9062 ;; 9063 esac 9064 fi 9065 9066 if test yes = "$lt_use_gnu_ld_interface"; then 9067 # If archive_cmds runs LD, not CC, wlarc should be empty 9068 wlarc='$wl' 9069 9070 # Set some defaults for GNU ld with shared library support. These 9071 # are reset later if shared libraries are not supported. Putting them 9072 # here allows them to be overridden if necessary. 9073 runpath_var=LD_RUN_PATH 9074 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9075 export_dynamic_flag_spec='$wl--export-dynamic' 9076 # ancient GNU ld didn't support --whole-archive et. al. 9077 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9078 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9079 else 9080 whole_archive_flag_spec= 9081 fi 9082 supports_anon_versioning=no 9083 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9084 *GNU\ gold*) supports_anon_versioning=yes ;; 9085 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9086 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9087 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9088 *\ 2.11.*) ;; # other 2.11 versions 9089 *) supports_anon_versioning=yes ;; 9090 esac 9091 9092 # See if GNU ld supports shared libraries. 9093 case $host_os in 9094 aix[3-9]*) 9095 # On AIX/PPC, the GNU linker is very broken 9096 if test ia64 != "$host_cpu"; then 9097 ld_shlibs=no 9098 cat <<_LT_EOF 1>&2 9099 9100*** Warning: the GNU linker, at least up to release 2.19, is reported 9101*** to be unable to reliably create shared libraries on AIX. 9102*** Therefore, libtool is disabling shared libraries support. If you 9103*** really care for shared libraries, you may want to install binutils 9104*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9105*** You will then need to restart the configuration process. 9106 9107_LT_EOF 9108 fi 9109 ;; 9110 9111 amigaos*) 9112 case $host_cpu in 9113 powerpc) 9114 # see comment about AmigaOS4 .so support 9115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9116 archive_expsym_cmds='' 9117 ;; 9118 m68k) 9119 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)' 9120 hardcode_libdir_flag_spec='-L$libdir' 9121 hardcode_minus_L=yes 9122 ;; 9123 esac 9124 ;; 9125 9126 beos*) 9127 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9128 allow_undefined_flag=unsupported 9129 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9130 # support --undefined. This deserves some investigation. FIXME 9131 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9132 else 9133 ld_shlibs=no 9134 fi 9135 ;; 9136 9137 cygwin* | mingw* | pw32* | cegcc*) 9138 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9139 # as there is no search path for DLLs. 9140 hardcode_libdir_flag_spec='-L$libdir' 9141 export_dynamic_flag_spec='$wl--export-all-symbols' 9142 allow_undefined_flag=unsupported 9143 always_export_symbols=no 9144 enable_shared_with_static_runtimes=yes 9145 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9146 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9147 9148 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9150 # If the export-symbols file already is a .def file, use it as 9151 # is; otherwise, prepend EXPORTS... 9152 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9153 cp $export_symbols $output_objdir/$soname.def; 9154 else 9155 echo EXPORTS > $output_objdir/$soname.def; 9156 cat $export_symbols >> $output_objdir/$soname.def; 9157 fi~ 9158 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9159 else 9160 ld_shlibs=no 9161 fi 9162 ;; 9163 9164 haiku*) 9165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9166 link_all_deplibs=yes 9167 ;; 9168 9169 os2*) 9170 hardcode_libdir_flag_spec='-L$libdir' 9171 hardcode_minus_L=yes 9172 allow_undefined_flag=unsupported 9173 shrext_cmds=.dll 9174 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9175 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9176 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9177 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9178 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9179 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9180 emximp -o $lib $output_objdir/$libname.def' 9181 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9182 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9183 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9184 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9185 prefix_cmds="$SED"~ 9186 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9187 prefix_cmds="$prefix_cmds -e 1d"; 9188 fi~ 9189 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9190 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9191 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9192 emximp -o $lib $output_objdir/$libname.def' 9193 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9194 enable_shared_with_static_runtimes=yes 9195 ;; 9196 9197 interix[3-9]*) 9198 hardcode_direct=no 9199 hardcode_shlibpath_var=no 9200 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9201 export_dynamic_flag_spec='$wl-E' 9202 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9203 # Instead, shared libraries are loaded at an image base (0x10000000 by 9204 # default) and relocated if they conflict, which is a slow very memory 9205 # consuming and fragmenting process. To avoid this, we pick a random, 9206 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9207 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9208 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9209 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' 9210 ;; 9211 9212 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9213 tmp_diet=no 9214 if test linux-dietlibc = "$host_os"; then 9215 case $cc_basename in 9216 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9217 esac 9218 fi 9219 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9220 && test no = "$tmp_diet" 9221 then 9222 tmp_addflag=' $pic_flag' 9223 tmp_sharedflag='-shared' 9224 case $cc_basename,$host_cpu in 9225 pgcc*) # Portland Group C compiler 9226 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9227 tmp_addflag=' $pic_flag' 9228 ;; 9229 pgf77* | pgf90* | pgf95* | pgfortran*) 9230 # Portland Group f77 and f90 compilers 9231 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9232 tmp_addflag=' $pic_flag -Mnomain' ;; 9233 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9234 tmp_addflag=' -i_dynamic' ;; 9235 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9236 tmp_addflag=' -i_dynamic -nofor_main' ;; 9237 ifc* | ifort*) # Intel Fortran compiler 9238 tmp_addflag=' -nofor_main' ;; 9239 lf95*) # Lahey Fortran 8.1 9240 whole_archive_flag_spec= 9241 tmp_sharedflag='--shared' ;; 9242 nagfor*) # NAGFOR 5.3 9243 tmp_sharedflag='-Wl,-shared' ;; 9244 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9245 tmp_sharedflag='-qmkshrobj' 9246 tmp_addflag= ;; 9247 nvcc*) # Cuda Compiler Driver 2.2 9248 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9249 compiler_needs_object=yes 9250 ;; 9251 esac 9252 case `$CC -V 2>&1 | sed 5q` in 9253 *Sun\ C*) # Sun C 5.9 9254 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9255 compiler_needs_object=yes 9256 tmp_sharedflag='-G' ;; 9257 *Sun\ F*) # Sun Fortran 8.3 9258 tmp_sharedflag='-G' ;; 9259 esac 9260 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9261 9262 if test yes = "$supports_anon_versioning"; then 9263 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9264 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9265 echo "local: *; };" >> $output_objdir/$libname.ver~ 9266 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9267 fi 9268 9269 case $cc_basename in 9270 tcc*) 9271 export_dynamic_flag_spec='-rdynamic' 9272 ;; 9273 xlf* | bgf* | bgxlf* | mpixlf*) 9274 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9275 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9276 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9277 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9278 if test yes = "$supports_anon_versioning"; then 9279 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9280 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9281 echo "local: *; };" >> $output_objdir/$libname.ver~ 9282 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9283 fi 9284 ;; 9285 esac 9286 else 9287 ld_shlibs=no 9288 fi 9289 ;; 9290 9291 netbsd*) 9292 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9293 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9294 wlarc= 9295 else 9296 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9297 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9298 fi 9299 ;; 9300 9301 solaris*) 9302 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9303 ld_shlibs=no 9304 cat <<_LT_EOF 1>&2 9305 9306*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9307*** create shared libraries on Solaris systems. Therefore, libtool 9308*** is disabling shared libraries support. We urge you to upgrade GNU 9309*** binutils to release 2.9.1 or newer. Another option is to modify 9310*** your PATH or compiler configuration so that the native linker is 9311*** used, and then restart. 9312 9313_LT_EOF 9314 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9315 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9316 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9317 else 9318 ld_shlibs=no 9319 fi 9320 ;; 9321 9322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9323 case `$LD -v 2>&1` in 9324 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9325 ld_shlibs=no 9326 cat <<_LT_EOF 1>&2 9327 9328*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9329*** reliably create shared libraries on SCO systems. Therefore, libtool 9330*** is disabling shared libraries support. We urge you to upgrade GNU 9331*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9332*** your PATH or compiler configuration so that the native linker is 9333*** used, and then restart. 9334 9335_LT_EOF 9336 ;; 9337 *) 9338 # For security reasons, it is highly recommended that you always 9339 # use absolute paths for naming shared libraries, and exclude the 9340 # DT_RUNPATH tag from executables and libraries. But doing so 9341 # requires that you compile everything twice, which is a pain. 9342 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9343 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9345 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9346 else 9347 ld_shlibs=no 9348 fi 9349 ;; 9350 esac 9351 ;; 9352 9353 sunos4*) 9354 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9355 wlarc= 9356 hardcode_direct=yes 9357 hardcode_shlibpath_var=no 9358 ;; 9359 9360 *) 9361 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9362 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9363 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9364 else 9365 ld_shlibs=no 9366 fi 9367 ;; 9368 esac 9369 9370 if test no = "$ld_shlibs"; then 9371 runpath_var= 9372 hardcode_libdir_flag_spec= 9373 export_dynamic_flag_spec= 9374 whole_archive_flag_spec= 9375 fi 9376 else 9377 # PORTME fill in a description of your system's linker (not GNU ld) 9378 case $host_os in 9379 aix3*) 9380 allow_undefined_flag=unsupported 9381 always_export_symbols=yes 9382 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' 9383 # Note: this linker hardcodes the directories in LIBPATH if there 9384 # are no directories specified by -L. 9385 hardcode_minus_L=yes 9386 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9387 # Neither direct hardcoding nor static linking is supported with a 9388 # broken collect2. 9389 hardcode_direct=unsupported 9390 fi 9391 ;; 9392 9393 aix[4-9]*) 9394 if test ia64 = "$host_cpu"; then 9395 # On IA64, the linker does run time linking by default, so we don't 9396 # have to do anything special. 9397 aix_use_runtimelinking=no 9398 exp_sym_flag='-Bexport' 9399 no_entry_flag= 9400 else 9401 # If we're using GNU nm, then we don't want the "-C" option. 9402 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9403 # Without the "-l" option, or with the "-B" option, AIX nm treats 9404 # weak defined symbols like other global defined symbols, whereas 9405 # GNU nm marks them as "W". 9406 # While the 'weak' keyword is ignored in the Export File, we need 9407 # it in the Import File for the 'aix-soname' feature, so we have 9408 # to replace the "-B" option with "-P" for AIX nm. 9409 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9410 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9411 else 9412 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9413 fi 9414 aix_use_runtimelinking=no 9415 9416 # Test if we are trying to use run time linking or normal 9417 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9418 # have runtime linking enabled, and use it for executables. 9419 # For shared libraries, we enable/disable runtime linking 9420 # depending on the kind of the shared library created - 9421 # when "with_aix_soname,aix_use_runtimelinking" is: 9422 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9423 # "aix,yes" lib.so shared, rtl:yes, for executables 9424 # lib.a static archive 9425 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9426 # lib.a(lib.so.V) shared, rtl:no, for executables 9427 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9428 # lib.a(lib.so.V) shared, rtl:no 9429 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9430 # lib.a static archive 9431 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9432 for ld_flag in $LDFLAGS; do 9433 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9434 aix_use_runtimelinking=yes 9435 break 9436 fi 9437 done 9438 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9439 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9440 # so we don't have lib.a shared libs to link our executables. 9441 # We have to force runtime linking in this case. 9442 aix_use_runtimelinking=yes 9443 LDFLAGS="$LDFLAGS -Wl,-brtl" 9444 fi 9445 ;; 9446 esac 9447 9448 exp_sym_flag='-bexport' 9449 no_entry_flag='-bnoentry' 9450 fi 9451 9452 # When large executables or shared objects are built, AIX ld can 9453 # have problems creating the table of contents. If linking a library 9454 # or program results in "error TOC overflow" add -mminimal-toc to 9455 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9456 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9457 9458 archive_cmds='' 9459 hardcode_direct=yes 9460 hardcode_direct_absolute=yes 9461 hardcode_libdir_separator=':' 9462 link_all_deplibs=yes 9463 file_list_spec='$wl-f,' 9464 case $with_aix_soname,$aix_use_runtimelinking in 9465 aix,*) ;; # traditional, no import file 9466 svr4,* | *,yes) # use import file 9467 # The Import File defines what to hardcode. 9468 hardcode_direct=no 9469 hardcode_direct_absolute=no 9470 ;; 9471 esac 9472 9473 if test yes = "$GCC"; then 9474 case $host_os in aix4.[012]|aix4.[012].*) 9475 # We only want to do this on AIX 4.2 and lower, the check 9476 # below for broken collect2 doesn't work under 4.3+ 9477 collect2name=`$CC -print-prog-name=collect2` 9478 if test -f "$collect2name" && 9479 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9480 then 9481 # We have reworked collect2 9482 : 9483 else 9484 # We have old collect2 9485 hardcode_direct=unsupported 9486 # It fails to find uninstalled libraries when the uninstalled 9487 # path is not listed in the libpath. Setting hardcode_minus_L 9488 # to unsupported forces relinking 9489 hardcode_minus_L=yes 9490 hardcode_libdir_flag_spec='-L$libdir' 9491 hardcode_libdir_separator= 9492 fi 9493 ;; 9494 esac 9495 shared_flag='-shared' 9496 if test yes = "$aix_use_runtimelinking"; then 9497 shared_flag="$shared_flag "'$wl-G' 9498 fi 9499 # Need to ensure runtime linking is disabled for the traditional 9500 # shared library, or the linker may eventually find shared libraries 9501 # /with/ Import File - we do not want to mix them. 9502 shared_flag_aix='-shared' 9503 shared_flag_svr4='-shared $wl-G' 9504 else 9505 # not using gcc 9506 if test ia64 = "$host_cpu"; then 9507 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9508 # chokes on -Wl,-G. The following line is correct: 9509 shared_flag='-G' 9510 else 9511 if test yes = "$aix_use_runtimelinking"; then 9512 shared_flag='$wl-G' 9513 else 9514 shared_flag='$wl-bM:SRE' 9515 fi 9516 shared_flag_aix='$wl-bM:SRE' 9517 shared_flag_svr4='$wl-G' 9518 fi 9519 fi 9520 9521 export_dynamic_flag_spec='$wl-bexpall' 9522 # It seems that -bexpall does not export symbols beginning with 9523 # underscore (_), so it is better to generate a list of symbols to export. 9524 always_export_symbols=yes 9525 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9526 # Warning - without using the other runtime loading flags (-brtl), 9527 # -berok will link without error, but may produce a broken library. 9528 allow_undefined_flag='-berok' 9529 # Determine the default libpath from the value encoded in an 9530 # empty executable. 9531 if test set = "${lt_cv_aix_libpath+set}"; then 9532 aix_libpath=$lt_cv_aix_libpath 9533else 9534 if ${lt_cv_aix_libpath_+:} false; then : 9535 $as_echo_n "(cached) " >&6 9536else 9537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9538/* end confdefs.h. */ 9539 9540int 9541main () 9542{ 9543 9544 ; 9545 return 0; 9546} 9547_ACEOF 9548if ac_fn_c_try_link "$LINENO"; then : 9549 9550 lt_aix_libpath_sed=' 9551 /Import File Strings/,/^$/ { 9552 /^0/ { 9553 s/^0 *\([^ ]*\) *$/\1/ 9554 p 9555 } 9556 }' 9557 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9558 # Check for a 64-bit object if we didn't find anything. 9559 if test -z "$lt_cv_aix_libpath_"; then 9560 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9561 fi 9562fi 9563rm -f core conftest.err conftest.$ac_objext \ 9564 conftest$ac_exeext conftest.$ac_ext 9565 if test -z "$lt_cv_aix_libpath_"; then 9566 lt_cv_aix_libpath_=/usr/lib:/lib 9567 fi 9568 9569fi 9570 9571 aix_libpath=$lt_cv_aix_libpath_ 9572fi 9573 9574 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9575 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9576 else 9577 if test ia64 = "$host_cpu"; then 9578 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9579 allow_undefined_flag="-z nodefs" 9580 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" 9581 else 9582 # Determine the default libpath from the value encoded in an 9583 # empty executable. 9584 if test set = "${lt_cv_aix_libpath+set}"; then 9585 aix_libpath=$lt_cv_aix_libpath 9586else 9587 if ${lt_cv_aix_libpath_+:} false; then : 9588 $as_echo_n "(cached) " >&6 9589else 9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9591/* end confdefs.h. */ 9592 9593int 9594main () 9595{ 9596 9597 ; 9598 return 0; 9599} 9600_ACEOF 9601if ac_fn_c_try_link "$LINENO"; then : 9602 9603 lt_aix_libpath_sed=' 9604 /Import File Strings/,/^$/ { 9605 /^0/ { 9606 s/^0 *\([^ ]*\) *$/\1/ 9607 p 9608 } 9609 }' 9610 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9611 # Check for a 64-bit object if we didn't find anything. 9612 if test -z "$lt_cv_aix_libpath_"; then 9613 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9614 fi 9615fi 9616rm -f core conftest.err conftest.$ac_objext \ 9617 conftest$ac_exeext conftest.$ac_ext 9618 if test -z "$lt_cv_aix_libpath_"; then 9619 lt_cv_aix_libpath_=/usr/lib:/lib 9620 fi 9621 9622fi 9623 9624 aix_libpath=$lt_cv_aix_libpath_ 9625fi 9626 9627 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9628 # Warning - without using the other run time loading flags, 9629 # -berok will link without error, but may produce a broken library. 9630 no_undefined_flag=' $wl-bernotok' 9631 allow_undefined_flag=' $wl-berok' 9632 if test yes = "$with_gnu_ld"; then 9633 # We only use this code for GNU lds that support --whole-archive. 9634 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9635 else 9636 # Exported symbols can be pulled into shared objects from archives 9637 whole_archive_flag_spec='$convenience' 9638 fi 9639 archive_cmds_need_lc=yes 9640 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9641 # -brtl affects multiple linker settings, -berok does not and is overridden later 9642 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9643 if test svr4 != "$with_aix_soname"; then 9644 # This is similar to how AIX traditionally builds its shared libraries. 9645 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9646 fi 9647 if test aix != "$with_aix_soname"; then 9648 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9649 else 9650 # used by -dlpreopen to get the symbols 9651 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9652 fi 9653 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9654 fi 9655 fi 9656 ;; 9657 9658 amigaos*) 9659 case $host_cpu in 9660 powerpc) 9661 # see comment about AmigaOS4 .so support 9662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9663 archive_expsym_cmds='' 9664 ;; 9665 m68k) 9666 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)' 9667 hardcode_libdir_flag_spec='-L$libdir' 9668 hardcode_minus_L=yes 9669 ;; 9670 esac 9671 ;; 9672 9673 bsdi[45]*) 9674 export_dynamic_flag_spec=-rdynamic 9675 ;; 9676 9677 cygwin* | mingw* | pw32* | cegcc*) 9678 # When not using gcc, we currently assume that we are using 9679 # Microsoft Visual C++. 9680 # hardcode_libdir_flag_spec is actually meaningless, as there is 9681 # no search path for DLLs. 9682 case $cc_basename in 9683 cl*) 9684 # Native MSVC 9685 hardcode_libdir_flag_spec=' ' 9686 allow_undefined_flag=unsupported 9687 always_export_symbols=yes 9688 file_list_spec='@' 9689 # Tell ltmain to make .lib files, not .a files. 9690 libext=lib 9691 # Tell ltmain to make .dll files, not .so files. 9692 shrext_cmds=.dll 9693 # FIXME: Setting linknames here is a bad hack. 9694 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9695 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9696 cp "$export_symbols" "$output_objdir/$soname.def"; 9697 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9698 else 9699 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9700 fi~ 9701 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9702 linknames=' 9703 # The linker will not automatically build a static lib if we build a DLL. 9704 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9705 enable_shared_with_static_runtimes=yes 9706 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9707 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9708 # Don't use ranlib 9709 old_postinstall_cmds='chmod 644 $oldlib' 9710 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9711 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9712 case $lt_outputfile in 9713 *.exe|*.EXE) ;; 9714 *) 9715 lt_outputfile=$lt_outputfile.exe 9716 lt_tool_outputfile=$lt_tool_outputfile.exe 9717 ;; 9718 esac~ 9719 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9720 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9721 $RM "$lt_outputfile.manifest"; 9722 fi' 9723 ;; 9724 *) 9725 # Assume MSVC wrapper 9726 hardcode_libdir_flag_spec=' ' 9727 allow_undefined_flag=unsupported 9728 # Tell ltmain to make .lib files, not .a files. 9729 libext=lib 9730 # Tell ltmain to make .dll files, not .so files. 9731 shrext_cmds=.dll 9732 # FIXME: Setting linknames here is a bad hack. 9733 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9734 # The linker will automatically build a .lib file if we build a DLL. 9735 old_archive_from_new_cmds='true' 9736 # FIXME: Should let the user specify the lib program. 9737 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9738 enable_shared_with_static_runtimes=yes 9739 ;; 9740 esac 9741 ;; 9742 9743 darwin* | rhapsody*) 9744 9745 9746 archive_cmds_need_lc=no 9747 hardcode_direct=no 9748 hardcode_automatic=yes 9749 hardcode_shlibpath_var=unsupported 9750 if test yes = "$lt_cv_ld_force_load"; then 9751 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 9752 9753 else 9754 whole_archive_flag_spec='' 9755 fi 9756 link_all_deplibs=yes 9757 allow_undefined_flag=$_lt_dar_allow_undefined 9758 case $cc_basename in 9759 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9760 *) _lt_dar_can_shared=$GCC ;; 9761 esac 9762 if test yes = "$_lt_dar_can_shared"; then 9763 output_verbose_link_cmd=func_echo_all 9764 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9765 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9766 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" 9767 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" 9768 9769 else 9770 ld_shlibs=no 9771 fi 9772 9773 ;; 9774 9775 dgux*) 9776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9777 hardcode_libdir_flag_spec='-L$libdir' 9778 hardcode_shlibpath_var=no 9779 ;; 9780 9781 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9782 # support. Future versions do this automatically, but an explicit c++rt0.o 9783 # does not break anything, and helps significantly (at the cost of a little 9784 # extra space). 9785 freebsd2.2*) 9786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9787 hardcode_libdir_flag_spec='-R$libdir' 9788 hardcode_direct=yes 9789 hardcode_shlibpath_var=no 9790 ;; 9791 9792 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9793 freebsd2.*) 9794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9795 hardcode_direct=yes 9796 hardcode_minus_L=yes 9797 hardcode_shlibpath_var=no 9798 ;; 9799 9800 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9801 freebsd* | dragonfly*) 9802 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9803 hardcode_libdir_flag_spec='-R$libdir' 9804 hardcode_direct=yes 9805 hardcode_shlibpath_var=no 9806 ;; 9807 9808 hpux9*) 9809 if test yes = "$GCC"; then 9810 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9811 else 9812 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9813 fi 9814 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9815 hardcode_libdir_separator=: 9816 hardcode_direct=yes 9817 9818 # hardcode_minus_L: Not really in the search PATH, 9819 # but as the default location of the library. 9820 hardcode_minus_L=yes 9821 export_dynamic_flag_spec='$wl-E' 9822 ;; 9823 9824 hpux10*) 9825 if test yes,no = "$GCC,$with_gnu_ld"; then 9826 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9827 else 9828 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9829 fi 9830 if test no = "$with_gnu_ld"; then 9831 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9832 hardcode_libdir_separator=: 9833 hardcode_direct=yes 9834 hardcode_direct_absolute=yes 9835 export_dynamic_flag_spec='$wl-E' 9836 # hardcode_minus_L: Not really in the search PATH, 9837 # but as the default location of the library. 9838 hardcode_minus_L=yes 9839 fi 9840 ;; 9841 9842 hpux11*) 9843 if test yes,no = "$GCC,$with_gnu_ld"; then 9844 case $host_cpu in 9845 hppa*64*) 9846 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9847 ;; 9848 ia64*) 9849 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9850 ;; 9851 *) 9852 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9853 ;; 9854 esac 9855 else 9856 case $host_cpu in 9857 hppa*64*) 9858 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9859 ;; 9860 ia64*) 9861 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9862 ;; 9863 *) 9864 9865 # Older versions of the 11.00 compiler do not understand -b yet 9866 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9868$as_echo_n "checking if $CC understands -b... " >&6; } 9869if ${lt_cv_prog_compiler__b+:} false; then : 9870 $as_echo_n "(cached) " >&6 9871else 9872 lt_cv_prog_compiler__b=no 9873 save_LDFLAGS=$LDFLAGS 9874 LDFLAGS="$LDFLAGS -b" 9875 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9876 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9877 # The linker can only warn and ignore the option if not recognized 9878 # So say no if there are warnings 9879 if test -s conftest.err; then 9880 # Append any errors to the config.log. 9881 cat conftest.err 1>&5 9882 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9884 if diff conftest.exp conftest.er2 >/dev/null; then 9885 lt_cv_prog_compiler__b=yes 9886 fi 9887 else 9888 lt_cv_prog_compiler__b=yes 9889 fi 9890 fi 9891 $RM -r conftest* 9892 LDFLAGS=$save_LDFLAGS 9893 9894fi 9895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9896$as_echo "$lt_cv_prog_compiler__b" >&6; } 9897 9898if test yes = "$lt_cv_prog_compiler__b"; then 9899 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9900else 9901 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9902fi 9903 9904 ;; 9905 esac 9906 fi 9907 if test no = "$with_gnu_ld"; then 9908 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9909 hardcode_libdir_separator=: 9910 9911 case $host_cpu in 9912 hppa*64*|ia64*) 9913 hardcode_direct=no 9914 hardcode_shlibpath_var=no 9915 ;; 9916 *) 9917 hardcode_direct=yes 9918 hardcode_direct_absolute=yes 9919 export_dynamic_flag_spec='$wl-E' 9920 9921 # hardcode_minus_L: Not really in the search PATH, 9922 # but as the default location of the library. 9923 hardcode_minus_L=yes 9924 ;; 9925 esac 9926 fi 9927 ;; 9928 9929 irix5* | irix6* | nonstopux*) 9930 if test yes = "$GCC"; then 9931 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 9932 # Try to use the -exported_symbol ld option, if it does not 9933 # work, assume that -exports_file does not work either and 9934 # implicitly export all symbols. 9935 # This should be the same for all languages, so no per-tag cache variable. 9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9937$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9938if ${lt_cv_irix_exported_symbol+:} false; then : 9939 $as_echo_n "(cached) " >&6 9940else 9941 save_LDFLAGS=$LDFLAGS 9942 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9944/* end confdefs.h. */ 9945int foo (void) { return 0; } 9946_ACEOF 9947if ac_fn_c_try_link "$LINENO"; then : 9948 lt_cv_irix_exported_symbol=yes 9949else 9950 lt_cv_irix_exported_symbol=no 9951fi 9952rm -f core conftest.err conftest.$ac_objext \ 9953 conftest$ac_exeext conftest.$ac_ext 9954 LDFLAGS=$save_LDFLAGS 9955fi 9956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9957$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9958 if test yes = "$lt_cv_irix_exported_symbol"; then 9959 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 9960 fi 9961 else 9962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 9963 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 9964 fi 9965 archive_cmds_need_lc='no' 9966 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9967 hardcode_libdir_separator=: 9968 inherit_rpath=yes 9969 link_all_deplibs=yes 9970 ;; 9971 9972 linux*) 9973 case $cc_basename in 9974 tcc*) 9975 # Fabrice Bellard et al's Tiny C Compiler 9976 ld_shlibs=yes 9977 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9978 ;; 9979 esac 9980 ;; 9981 9982 netbsd*) 9983 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9984 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9985 else 9986 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9987 fi 9988 hardcode_libdir_flag_spec='-R$libdir' 9989 hardcode_direct=yes 9990 hardcode_shlibpath_var=no 9991 ;; 9992 9993 newsos6) 9994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9995 hardcode_direct=yes 9996 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9997 hardcode_libdir_separator=: 9998 hardcode_shlibpath_var=no 9999 ;; 10000 10001 *nto* | *qnx*) 10002 ;; 10003 10004 openbsd* | bitrig*) 10005 if test -f /usr/libexec/ld.so; then 10006 hardcode_direct=yes 10007 hardcode_shlibpath_var=no 10008 hardcode_direct_absolute=yes 10009 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10010 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10011 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10012 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10013 export_dynamic_flag_spec='$wl-E' 10014 else 10015 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10016 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10017 fi 10018 else 10019 ld_shlibs=no 10020 fi 10021 ;; 10022 10023 os2*) 10024 hardcode_libdir_flag_spec='-L$libdir' 10025 hardcode_minus_L=yes 10026 allow_undefined_flag=unsupported 10027 shrext_cmds=.dll 10028 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10029 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10030 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10031 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10032 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10033 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10034 emximp -o $lib $output_objdir/$libname.def' 10035 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10036 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10037 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10038 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10039 prefix_cmds="$SED"~ 10040 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10041 prefix_cmds="$prefix_cmds -e 1d"; 10042 fi~ 10043 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10044 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10045 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10046 emximp -o $lib $output_objdir/$libname.def' 10047 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10048 enable_shared_with_static_runtimes=yes 10049 ;; 10050 10051 osf3*) 10052 if test yes = "$GCC"; then 10053 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10054 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10055 else 10056 allow_undefined_flag=' -expect_unresolved \*' 10057 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10058 fi 10059 archive_cmds_need_lc='no' 10060 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10061 hardcode_libdir_separator=: 10062 ;; 10063 10064 osf4* | osf5*) # as osf3* with the addition of -msym flag 10065 if test yes = "$GCC"; then 10066 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10067 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10068 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10069 else 10070 allow_undefined_flag=' -expect_unresolved \*' 10071 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10072 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~ 10073 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 10074 10075 # Both c and cxx compiler support -rpath directly 10076 hardcode_libdir_flag_spec='-rpath $libdir' 10077 fi 10078 archive_cmds_need_lc='no' 10079 hardcode_libdir_separator=: 10080 ;; 10081 10082 solaris*) 10083 no_undefined_flag=' -z defs' 10084 if test yes = "$GCC"; then 10085 wlarc='$wl' 10086 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10087 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10088 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10089 else 10090 case `$CC -V 2>&1` in 10091 *"Compilers 5.0"*) 10092 wlarc='' 10093 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10094 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10095 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10096 ;; 10097 *) 10098 wlarc='$wl' 10099 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10100 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10101 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10102 ;; 10103 esac 10104 fi 10105 hardcode_libdir_flag_spec='-R$libdir' 10106 hardcode_shlibpath_var=no 10107 case $host_os in 10108 solaris2.[0-5] | solaris2.[0-5].*) ;; 10109 *) 10110 # The compiler driver will combine and reorder linker options, 10111 # but understands '-z linker_flag'. GCC discards it without '$wl', 10112 # but is careful enough not to reorder. 10113 # Supported since Solaris 2.6 (maybe 2.5.1?) 10114 if test yes = "$GCC"; then 10115 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10116 else 10117 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10118 fi 10119 ;; 10120 esac 10121 link_all_deplibs=yes 10122 ;; 10123 10124 sunos4*) 10125 if test sequent = "$host_vendor"; then 10126 # Use $CC to link under sequent, because it throws in some extra .o 10127 # files that make .init and .fini sections work. 10128 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10129 else 10130 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10131 fi 10132 hardcode_libdir_flag_spec='-L$libdir' 10133 hardcode_direct=yes 10134 hardcode_minus_L=yes 10135 hardcode_shlibpath_var=no 10136 ;; 10137 10138 sysv4) 10139 case $host_vendor in 10140 sni) 10141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10142 hardcode_direct=yes # is this really true??? 10143 ;; 10144 siemens) 10145 ## LD is ld it makes a PLAMLIB 10146 ## CC just makes a GrossModule. 10147 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10148 reload_cmds='$CC -r -o $output$reload_objs' 10149 hardcode_direct=no 10150 ;; 10151 motorola) 10152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10153 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10154 ;; 10155 esac 10156 runpath_var='LD_RUN_PATH' 10157 hardcode_shlibpath_var=no 10158 ;; 10159 10160 sysv4.3*) 10161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10162 hardcode_shlibpath_var=no 10163 export_dynamic_flag_spec='-Bexport' 10164 ;; 10165 10166 sysv4*MP*) 10167 if test -d /usr/nec; then 10168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10169 hardcode_shlibpath_var=no 10170 runpath_var=LD_RUN_PATH 10171 hardcode_runpath_var=yes 10172 ld_shlibs=yes 10173 fi 10174 ;; 10175 10176 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10177 no_undefined_flag='$wl-z,text' 10178 archive_cmds_need_lc=no 10179 hardcode_shlibpath_var=no 10180 runpath_var='LD_RUN_PATH' 10181 10182 if test yes = "$GCC"; then 10183 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10184 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10185 else 10186 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10187 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10188 fi 10189 ;; 10190 10191 sysv5* | sco3.2v5* | sco5v6*) 10192 # Note: We CANNOT use -z defs as we might desire, because we do not 10193 # link with -lc, and that would cause any symbols used from libc to 10194 # always be unresolved, which means just about no library would 10195 # ever link correctly. If we're not using GNU ld we use -z text 10196 # though, which does catch some bad symbols but isn't as heavy-handed 10197 # as -z defs. 10198 no_undefined_flag='$wl-z,text' 10199 allow_undefined_flag='$wl-z,nodefs' 10200 archive_cmds_need_lc=no 10201 hardcode_shlibpath_var=no 10202 hardcode_libdir_flag_spec='$wl-R,$libdir' 10203 hardcode_libdir_separator=':' 10204 link_all_deplibs=yes 10205 export_dynamic_flag_spec='$wl-Bexport' 10206 runpath_var='LD_RUN_PATH' 10207 10208 if test yes = "$GCC"; then 10209 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10210 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10211 else 10212 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10213 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10214 fi 10215 ;; 10216 10217 uts4*) 10218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10219 hardcode_libdir_flag_spec='-L$libdir' 10220 hardcode_shlibpath_var=no 10221 ;; 10222 10223 *) 10224 ld_shlibs=no 10225 ;; 10226 esac 10227 10228 if test sni = "$host_vendor"; then 10229 case $host in 10230 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10231 export_dynamic_flag_spec='$wl-Blargedynsym' 10232 ;; 10233 esac 10234 fi 10235 fi 10236 10237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10238$as_echo "$ld_shlibs" >&6; } 10239test no = "$ld_shlibs" && can_build_shared=no 10240 10241with_gnu_ld=$with_gnu_ld 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257# 10258# Do we need to explicitly link libc? 10259# 10260case "x$archive_cmds_need_lc" in 10261x|xyes) 10262 # Assume -lc should be added 10263 archive_cmds_need_lc=yes 10264 10265 if test yes,yes = "$GCC,$enable_shared"; then 10266 case $archive_cmds in 10267 *'~'*) 10268 # FIXME: we may have to deal with multi-command sequences. 10269 ;; 10270 '$CC '*) 10271 # Test whether the compiler implicitly links with -lc since on some 10272 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10273 # to ld, don't add -lc before -lgcc. 10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10275$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10276if ${lt_cv_archive_cmds_need_lc+:} false; then : 10277 $as_echo_n "(cached) " >&6 10278else 10279 $RM conftest* 10280 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10281 10282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10283 (eval $ac_compile) 2>&5 10284 ac_status=$? 10285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10286 test $ac_status = 0; } 2>conftest.err; then 10287 soname=conftest 10288 lib=conftest 10289 libobjs=conftest.$ac_objext 10290 deplibs= 10291 wl=$lt_prog_compiler_wl 10292 pic_flag=$lt_prog_compiler_pic 10293 compiler_flags=-v 10294 linker_flags=-v 10295 verstring= 10296 output_objdir=. 10297 libname=conftest 10298 lt_save_allow_undefined_flag=$allow_undefined_flag 10299 allow_undefined_flag= 10300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10301 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10302 ac_status=$? 10303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10304 test $ac_status = 0; } 10305 then 10306 lt_cv_archive_cmds_need_lc=no 10307 else 10308 lt_cv_archive_cmds_need_lc=yes 10309 fi 10310 allow_undefined_flag=$lt_save_allow_undefined_flag 10311 else 10312 cat conftest.err 1>&5 10313 fi 10314 $RM conftest* 10315 10316fi 10317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10318$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10319 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10320 ;; 10321 esac 10322 fi 10323 ;; 10324esac 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 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 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10478$as_echo_n "checking dynamic linker characteristics... " >&6; } 10479 10480if test yes = "$GCC"; then 10481 case $host_os in 10482 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10483 *) lt_awk_arg='/^libraries:/' ;; 10484 esac 10485 case $host_os in 10486 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10487 *) lt_sed_strip_eq='s|=/|/|g' ;; 10488 esac 10489 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10490 case $lt_search_path_spec in 10491 *\;*) 10492 # if the path contains ";" then we assume it to be the separator 10493 # otherwise default to the standard path separator (i.e. ":") - it is 10494 # assumed that no part of a normal pathname contains ";" but that should 10495 # okay in the real world where ";" in dirpaths is itself problematic. 10496 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10497 ;; 10498 *) 10499 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10500 ;; 10501 esac 10502 # Ok, now we have the path, separated by spaces, we can step through it 10503 # and add multilib dir if necessary... 10504 lt_tmp_lt_search_path_spec= 10505 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10506 # ...but if some path component already ends with the multilib dir we assume 10507 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10508 case "$lt_multi_os_dir; $lt_search_path_spec " in 10509 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10510 lt_multi_os_dir= 10511 ;; 10512 esac 10513 for lt_sys_path in $lt_search_path_spec; do 10514 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10515 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10516 elif test -n "$lt_multi_os_dir"; then 10517 test -d "$lt_sys_path" && \ 10518 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10519 fi 10520 done 10521 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10522BEGIN {RS = " "; FS = "/|\n";} { 10523 lt_foo = ""; 10524 lt_count = 0; 10525 for (lt_i = NF; lt_i > 0; lt_i--) { 10526 if ($lt_i != "" && $lt_i != ".") { 10527 if ($lt_i == "..") { 10528 lt_count++; 10529 } else { 10530 if (lt_count == 0) { 10531 lt_foo = "/" $lt_i lt_foo; 10532 } else { 10533 lt_count--; 10534 } 10535 } 10536 } 10537 } 10538 if (lt_foo != "") { lt_freq[lt_foo]++; } 10539 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10540}'` 10541 # AWK program above erroneously prepends '/' to C:/dos/paths 10542 # for these hosts. 10543 case $host_os in 10544 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10545 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10546 esac 10547 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10548else 10549 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10550fi 10551library_names_spec= 10552libname_spec='lib$name' 10553soname_spec= 10554shrext_cmds=.so 10555postinstall_cmds= 10556postuninstall_cmds= 10557finish_cmds= 10558finish_eval= 10559shlibpath_var= 10560shlibpath_overrides_runpath=unknown 10561version_type=none 10562dynamic_linker="$host_os ld.so" 10563sys_lib_dlsearch_path_spec="/lib /usr/lib" 10564need_lib_prefix=unknown 10565hardcode_into_libs=no 10566 10567# when you set need_version to no, make sure it does not cause -set_version 10568# flags to be left without arguments 10569need_version=unknown 10570 10571 10572 10573case $host_os in 10574aix3*) 10575 version_type=linux # correct to gnu/linux during the next big refactor 10576 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10577 shlibpath_var=LIBPATH 10578 10579 # AIX 3 has no versioning support, so we append a major version to the name. 10580 soname_spec='$libname$release$shared_ext$major' 10581 ;; 10582 10583aix[4-9]*) 10584 version_type=linux # correct to gnu/linux during the next big refactor 10585 need_lib_prefix=no 10586 need_version=no 10587 hardcode_into_libs=yes 10588 if test ia64 = "$host_cpu"; then 10589 # AIX 5 supports IA64 10590 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10591 shlibpath_var=LD_LIBRARY_PATH 10592 else 10593 # With GCC up to 2.95.x, collect2 would create an import file 10594 # for dependence libraries. The import file would start with 10595 # the line '#! .'. This would cause the generated library to 10596 # depend on '.', always an invalid library. This was fixed in 10597 # development snapshots of GCC prior to 3.0. 10598 case $host_os in 10599 aix4 | aix4.[01] | aix4.[01].*) 10600 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10601 echo ' yes ' 10602 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10603 : 10604 else 10605 can_build_shared=no 10606 fi 10607 ;; 10608 esac 10609 # Using Import Files as archive members, it is possible to support 10610 # filename-based versioning of shared library archives on AIX. While 10611 # this would work for both with and without runtime linking, it will 10612 # prevent static linking of such archives. So we do filename-based 10613 # shared library versioning with .so extension only, which is used 10614 # when both runtime linking and shared linking is enabled. 10615 # Unfortunately, runtime linking may impact performance, so we do 10616 # not want this to be the default eventually. Also, we use the 10617 # versioned .so libs for executables only if there is the -brtl 10618 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10619 # To allow for filename-based versioning support, we need to create 10620 # libNAME.so.V as an archive file, containing: 10621 # *) an Import File, referring to the versioned filename of the 10622 # archive as well as the shared archive member, telling the 10623 # bitwidth (32 or 64) of that shared object, and providing the 10624 # list of exported symbols of that shared object, eventually 10625 # decorated with the 'weak' keyword 10626 # *) the shared object with the F_LOADONLY flag set, to really avoid 10627 # it being seen by the linker. 10628 # At run time we better use the real file rather than another symlink, 10629 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10630 10631 case $with_aix_soname,$aix_use_runtimelinking in 10632 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10633 # soname into executable. Probably we can add versioning support to 10634 # collect2, so additional links can be useful in future. 10635 aix,yes) # traditional libtool 10636 dynamic_linker='AIX unversionable lib.so' 10637 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10638 # instead of lib<name>.a to let people know that these are not 10639 # typical AIX shared libraries. 10640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10641 ;; 10642 aix,no) # traditional AIX only 10643 dynamic_linker='AIX lib.a(lib.so.V)' 10644 # We preserve .a as extension for shared libraries through AIX4.2 10645 # and later when we are not doing run time linking. 10646 library_names_spec='$libname$release.a $libname.a' 10647 soname_spec='$libname$release$shared_ext$major' 10648 ;; 10649 svr4,*) # full svr4 only 10650 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10651 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10652 # We do not specify a path in Import Files, so LIBPATH fires. 10653 shlibpath_overrides_runpath=yes 10654 ;; 10655 *,yes) # both, prefer svr4 10656 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10657 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10658 # unpreferred sharedlib libNAME.a needs extra handling 10659 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10660 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10661 # We do not specify a path in Import Files, so LIBPATH fires. 10662 shlibpath_overrides_runpath=yes 10663 ;; 10664 *,no) # both, prefer aix 10665 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10666 library_names_spec='$libname$release.a $libname.a' 10667 soname_spec='$libname$release$shared_ext$major' 10668 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10669 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10670 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10671 ;; 10672 esac 10673 shlibpath_var=LIBPATH 10674 fi 10675 ;; 10676 10677amigaos*) 10678 case $host_cpu in 10679 powerpc) 10680 # Since July 2007 AmigaOS4 officially supports .so libraries. 10681 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10683 ;; 10684 m68k) 10685 library_names_spec='$libname.ixlibrary $libname.a' 10686 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10687 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10688 ;; 10689 esac 10690 ;; 10691 10692beos*) 10693 library_names_spec='$libname$shared_ext' 10694 dynamic_linker="$host_os ld.so" 10695 shlibpath_var=LIBRARY_PATH 10696 ;; 10697 10698bsdi[45]*) 10699 version_type=linux # correct to gnu/linux during the next big refactor 10700 need_version=no 10701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10702 soname_spec='$libname$release$shared_ext$major' 10703 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10704 shlibpath_var=LD_LIBRARY_PATH 10705 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10706 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10707 # the default ld.so.conf also contains /usr/contrib/lib and 10708 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10709 # libtool to hard-code these into programs 10710 ;; 10711 10712cygwin* | mingw* | pw32* | cegcc*) 10713 version_type=windows 10714 shrext_cmds=.dll 10715 need_version=no 10716 need_lib_prefix=no 10717 10718 case $GCC,$cc_basename in 10719 yes,*) 10720 # gcc 10721 library_names_spec='$libname.dll.a' 10722 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10723 postinstall_cmds='base_file=`basename \$file`~ 10724 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10725 dldir=$destdir/`dirname \$dlpath`~ 10726 test -d \$dldir || mkdir -p \$dldir~ 10727 $install_prog $dir/$dlname \$dldir/$dlname~ 10728 chmod a+x \$dldir/$dlname~ 10729 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10730 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10731 fi' 10732 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10733 dlpath=$dir/\$dldll~ 10734 $RM \$dlpath' 10735 shlibpath_overrides_runpath=yes 10736 10737 case $host_os in 10738 cygwin*) 10739 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10740 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10741 10742 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10743 ;; 10744 mingw* | cegcc*) 10745 # MinGW DLLs use traditional 'lib' prefix 10746 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10747 ;; 10748 pw32*) 10749 # pw32 DLLs use 'pw' prefix rather than 'lib' 10750 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10751 ;; 10752 esac 10753 dynamic_linker='Win32 ld.exe' 10754 ;; 10755 10756 *,cl*) 10757 # Native MSVC 10758 libname_spec='$name' 10759 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10760 library_names_spec='$libname.dll.lib' 10761 10762 case $build_os in 10763 mingw*) 10764 sys_lib_search_path_spec= 10765 lt_save_ifs=$IFS 10766 IFS=';' 10767 for lt_path in $LIB 10768 do 10769 IFS=$lt_save_ifs 10770 # Let DOS variable expansion print the short 8.3 style file name. 10771 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10772 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10773 done 10774 IFS=$lt_save_ifs 10775 # Convert to MSYS style. 10776 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10777 ;; 10778 cygwin*) 10779 # Convert to unix form, then to dos form, then back to unix form 10780 # but this time dos style (no spaces!) so that the unix form looks 10781 # like /cygdrive/c/PROGRA~1:/cygdr... 10782 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10783 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10784 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10785 ;; 10786 *) 10787 sys_lib_search_path_spec=$LIB 10788 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10789 # It is most probably a Windows format PATH. 10790 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10791 else 10792 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10793 fi 10794 # FIXME: find the short name or the path components, as spaces are 10795 # common. (e.g. "Program Files" -> "PROGRA~1") 10796 ;; 10797 esac 10798 10799 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10800 postinstall_cmds='base_file=`basename \$file`~ 10801 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10802 dldir=$destdir/`dirname \$dlpath`~ 10803 test -d \$dldir || mkdir -p \$dldir~ 10804 $install_prog $dir/$dlname \$dldir/$dlname' 10805 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10806 dlpath=$dir/\$dldll~ 10807 $RM \$dlpath' 10808 shlibpath_overrides_runpath=yes 10809 dynamic_linker='Win32 link.exe' 10810 ;; 10811 10812 *) 10813 # Assume MSVC wrapper 10814 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10815 dynamic_linker='Win32 ld.exe' 10816 ;; 10817 esac 10818 # FIXME: first we should search . and the directory the executable is in 10819 shlibpath_var=PATH 10820 ;; 10821 10822darwin* | rhapsody*) 10823 dynamic_linker="$host_os dyld" 10824 version_type=darwin 10825 need_lib_prefix=no 10826 need_version=no 10827 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10828 soname_spec='$libname$release$major$shared_ext' 10829 shlibpath_overrides_runpath=yes 10830 shlibpath_var=DYLD_LIBRARY_PATH 10831 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10832 10833 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10834 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10835 ;; 10836 10837dgux*) 10838 version_type=linux # correct to gnu/linux during the next big refactor 10839 need_lib_prefix=no 10840 need_version=no 10841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10842 soname_spec='$libname$release$shared_ext$major' 10843 shlibpath_var=LD_LIBRARY_PATH 10844 ;; 10845 10846freebsd* | dragonfly*) 10847 # DragonFly does not have aout. When/if they implement a new 10848 # versioning mechanism, adjust this. 10849 if test -x /usr/bin/objformat; then 10850 objformat=`/usr/bin/objformat` 10851 else 10852 case $host_os in 10853 freebsd[23].*) objformat=aout ;; 10854 *) objformat=elf ;; 10855 esac 10856 fi 10857 version_type=freebsd-$objformat 10858 case $version_type in 10859 freebsd-elf*) 10860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10861 soname_spec='$libname$release$shared_ext$major' 10862 need_version=no 10863 need_lib_prefix=no 10864 ;; 10865 freebsd-*) 10866 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10867 need_version=yes 10868 ;; 10869 esac 10870 shlibpath_var=LD_LIBRARY_PATH 10871 case $host_os in 10872 freebsd2.*) 10873 shlibpath_overrides_runpath=yes 10874 ;; 10875 freebsd3.[01]* | freebsdelf3.[01]*) 10876 shlibpath_overrides_runpath=yes 10877 hardcode_into_libs=yes 10878 ;; 10879 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10880 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10881 shlibpath_overrides_runpath=no 10882 hardcode_into_libs=yes 10883 ;; 10884 *) # from 4.6 on, and DragonFly 10885 shlibpath_overrides_runpath=yes 10886 hardcode_into_libs=yes 10887 ;; 10888 esac 10889 ;; 10890 10891haiku*) 10892 version_type=linux # correct to gnu/linux during the next big refactor 10893 need_lib_prefix=no 10894 need_version=no 10895 dynamic_linker="$host_os runtime_loader" 10896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10897 soname_spec='$libname$release$shared_ext$major' 10898 shlibpath_var=LIBRARY_PATH 10899 shlibpath_overrides_runpath=no 10900 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10901 hardcode_into_libs=yes 10902 ;; 10903 10904hpux9* | hpux10* | hpux11*) 10905 # Give a soname corresponding to the major version so that dld.sl refuses to 10906 # link against other versions. 10907 version_type=sunos 10908 need_lib_prefix=no 10909 need_version=no 10910 case $host_cpu in 10911 ia64*) 10912 shrext_cmds='.so' 10913 hardcode_into_libs=yes 10914 dynamic_linker="$host_os dld.so" 10915 shlibpath_var=LD_LIBRARY_PATH 10916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10918 soname_spec='$libname$release$shared_ext$major' 10919 if test 32 = "$HPUX_IA64_MODE"; then 10920 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10921 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10922 else 10923 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10924 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10925 fi 10926 ;; 10927 hppa*64*) 10928 shrext_cmds='.sl' 10929 hardcode_into_libs=yes 10930 dynamic_linker="$host_os dld.sl" 10931 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10932 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10934 soname_spec='$libname$release$shared_ext$major' 10935 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10936 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10937 ;; 10938 *) 10939 shrext_cmds='.sl' 10940 dynamic_linker="$host_os dld.sl" 10941 shlibpath_var=SHLIB_PATH 10942 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10944 soname_spec='$libname$release$shared_ext$major' 10945 ;; 10946 esac 10947 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10948 postinstall_cmds='chmod 555 $lib' 10949 # or fails outright, so override atomically: 10950 install_override_mode=555 10951 ;; 10952 10953interix[3-9]*) 10954 version_type=linux # correct to gnu/linux during the next big refactor 10955 need_lib_prefix=no 10956 need_version=no 10957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10958 soname_spec='$libname$release$shared_ext$major' 10959 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10960 shlibpath_var=LD_LIBRARY_PATH 10961 shlibpath_overrides_runpath=no 10962 hardcode_into_libs=yes 10963 ;; 10964 10965irix5* | irix6* | nonstopux*) 10966 case $host_os in 10967 nonstopux*) version_type=nonstopux ;; 10968 *) 10969 if test yes = "$lt_cv_prog_gnu_ld"; then 10970 version_type=linux # correct to gnu/linux during the next big refactor 10971 else 10972 version_type=irix 10973 fi ;; 10974 esac 10975 need_lib_prefix=no 10976 need_version=no 10977 soname_spec='$libname$release$shared_ext$major' 10978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10979 case $host_os in 10980 irix5* | nonstopux*) 10981 libsuff= shlibsuff= 10982 ;; 10983 *) 10984 case $LD in # libtool.m4 will add one of these switches to LD 10985 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10986 libsuff= shlibsuff= libmagic=32-bit;; 10987 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10988 libsuff=32 shlibsuff=N32 libmagic=N32;; 10989 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10990 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10991 *) libsuff= shlibsuff= libmagic=never-match;; 10992 esac 10993 ;; 10994 esac 10995 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10996 shlibpath_overrides_runpath=no 10997 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10998 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10999 hardcode_into_libs=yes 11000 ;; 11001 11002# No shared lib support for Linux oldld, aout, or coff. 11003linux*oldld* | linux*aout* | linux*coff*) 11004 dynamic_linker=no 11005 ;; 11006 11007linux*android*) 11008 version_type=none # Android doesn't support versioned libraries. 11009 need_lib_prefix=no 11010 need_version=no 11011 library_names_spec='$libname$release$shared_ext' 11012 soname_spec='$libname$release$shared_ext' 11013 finish_cmds= 11014 shlibpath_var=LD_LIBRARY_PATH 11015 shlibpath_overrides_runpath=yes 11016 11017 # This implies no fast_install, which is unacceptable. 11018 # Some rework will be needed to allow for fast_install 11019 # before this can be enabled. 11020 hardcode_into_libs=yes 11021 11022 dynamic_linker='Android linker' 11023 # Don't embed -rpath directories since the linker doesn't support them. 11024 hardcode_libdir_flag_spec='-L$libdir' 11025 ;; 11026 11027# This must be glibc/ELF. 11028linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11029 version_type=linux # correct to gnu/linux during the next big refactor 11030 need_lib_prefix=no 11031 need_version=no 11032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11033 soname_spec='$libname$release$shared_ext$major' 11034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11035 shlibpath_var=LD_LIBRARY_PATH 11036 shlibpath_overrides_runpath=no 11037 11038 # Some binutils ld are patched to set DT_RUNPATH 11039 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11040 $as_echo_n "(cached) " >&6 11041else 11042 lt_cv_shlibpath_overrides_runpath=no 11043 save_LDFLAGS=$LDFLAGS 11044 save_libdir=$libdir 11045 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11046 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11048/* end confdefs.h. */ 11049 11050int 11051main () 11052{ 11053 11054 ; 11055 return 0; 11056} 11057_ACEOF 11058if ac_fn_c_try_link "$LINENO"; then : 11059 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11060 lt_cv_shlibpath_overrides_runpath=yes 11061fi 11062fi 11063rm -f core conftest.err conftest.$ac_objext \ 11064 conftest$ac_exeext conftest.$ac_ext 11065 LDFLAGS=$save_LDFLAGS 11066 libdir=$save_libdir 11067 11068fi 11069 11070 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11071 11072 # This implies no fast_install, which is unacceptable. 11073 # Some rework will be needed to allow for fast_install 11074 # before this can be enabled. 11075 hardcode_into_libs=yes 11076 11077 # Add ABI-specific directories to the system library path. 11078 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11079 11080 # Ideally, we could use ldconfig to report *all* directores which are 11081 # searched for libraries, however this is still not possible. Aside from not 11082 # being certain /sbin/ldconfig is available, command 11083 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11084 # even though it is searched at run-time. Try to do the best guess by 11085 # appending ld.so.conf contents (and includes) to the search path. 11086 if test -f /etc/ld.so.conf; then 11087 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 11088 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11089 fi 11090 11091 # We used to test for /lib/ld.so.1 and disable shared libraries on 11092 # powerpc, because MkLinux only supported shared libraries with the 11093 # GNU dynamic linker. Since this was broken with cross compilers, 11094 # most powerpc-linux boxes support dynamic linking these days and 11095 # people can always --disable-shared, the test was removed, and we 11096 # assume the GNU/Linux dynamic linker is in use. 11097 dynamic_linker='GNU/Linux ld.so' 11098 ;; 11099 11100netbsd*) 11101 version_type=sunos 11102 need_lib_prefix=no 11103 need_version=no 11104 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11105 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11107 dynamic_linker='NetBSD (a.out) ld.so' 11108 else 11109 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11110 soname_spec='$libname$release$shared_ext$major' 11111 dynamic_linker='NetBSD ld.elf_so' 11112 fi 11113 shlibpath_var=LD_LIBRARY_PATH 11114 shlibpath_overrides_runpath=yes 11115 hardcode_into_libs=yes 11116 ;; 11117 11118newsos6) 11119 version_type=linux # correct to gnu/linux during the next big refactor 11120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11121 shlibpath_var=LD_LIBRARY_PATH 11122 shlibpath_overrides_runpath=yes 11123 ;; 11124 11125*nto* | *qnx*) 11126 version_type=qnx 11127 need_lib_prefix=no 11128 need_version=no 11129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11130 soname_spec='$libname$release$shared_ext$major' 11131 shlibpath_var=LD_LIBRARY_PATH 11132 shlibpath_overrides_runpath=no 11133 hardcode_into_libs=yes 11134 dynamic_linker='ldqnx.so' 11135 ;; 11136 11137openbsd* | bitrig*) 11138 version_type=sunos 11139 sys_lib_dlsearch_path_spec=/usr/lib 11140 need_lib_prefix=no 11141 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11142 need_version=no 11143 else 11144 need_version=yes 11145 fi 11146 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11148 shlibpath_var=LD_LIBRARY_PATH 11149 shlibpath_overrides_runpath=yes 11150 ;; 11151 11152os2*) 11153 libname_spec='$name' 11154 version_type=windows 11155 shrext_cmds=.dll 11156 need_version=no 11157 need_lib_prefix=no 11158 # OS/2 can only load a DLL with a base name of 8 characters or less. 11159 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11160 v=$($ECHO $release$versuffix | tr -d .-); 11161 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11162 $ECHO $n$v`$shared_ext' 11163 library_names_spec='${libname}_dll.$libext' 11164 dynamic_linker='OS/2 ld.exe' 11165 shlibpath_var=BEGINLIBPATH 11166 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11167 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11168 postinstall_cmds='base_file=`basename \$file`~ 11169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11170 dldir=$destdir/`dirname \$dlpath`~ 11171 test -d \$dldir || mkdir -p \$dldir~ 11172 $install_prog $dir/$dlname \$dldir/$dlname~ 11173 chmod a+x \$dldir/$dlname~ 11174 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11175 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11176 fi' 11177 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11178 dlpath=$dir/\$dldll~ 11179 $RM \$dlpath' 11180 ;; 11181 11182osf3* | osf4* | osf5*) 11183 version_type=osf 11184 need_lib_prefix=no 11185 need_version=no 11186 soname_spec='$libname$release$shared_ext$major' 11187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11188 shlibpath_var=LD_LIBRARY_PATH 11189 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11191 ;; 11192 11193rdos*) 11194 dynamic_linker=no 11195 ;; 11196 11197solaris*) 11198 version_type=linux # correct to gnu/linux during the next big refactor 11199 need_lib_prefix=no 11200 need_version=no 11201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11202 soname_spec='$libname$release$shared_ext$major' 11203 shlibpath_var=LD_LIBRARY_PATH 11204 shlibpath_overrides_runpath=yes 11205 hardcode_into_libs=yes 11206 # ldd complains unless libraries are executable 11207 postinstall_cmds='chmod +x $lib' 11208 ;; 11209 11210sunos4*) 11211 version_type=sunos 11212 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11213 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11214 shlibpath_var=LD_LIBRARY_PATH 11215 shlibpath_overrides_runpath=yes 11216 if test yes = "$with_gnu_ld"; then 11217 need_lib_prefix=no 11218 fi 11219 need_version=yes 11220 ;; 11221 11222sysv4 | sysv4.3*) 11223 version_type=linux # correct to gnu/linux during the next big refactor 11224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11225 soname_spec='$libname$release$shared_ext$major' 11226 shlibpath_var=LD_LIBRARY_PATH 11227 case $host_vendor in 11228 sni) 11229 shlibpath_overrides_runpath=no 11230 need_lib_prefix=no 11231 runpath_var=LD_RUN_PATH 11232 ;; 11233 siemens) 11234 need_lib_prefix=no 11235 ;; 11236 motorola) 11237 need_lib_prefix=no 11238 need_version=no 11239 shlibpath_overrides_runpath=no 11240 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11241 ;; 11242 esac 11243 ;; 11244 11245sysv4*MP*) 11246 if test -d /usr/nec; then 11247 version_type=linux # correct to gnu/linux during the next big refactor 11248 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11249 soname_spec='$libname$shared_ext.$major' 11250 shlibpath_var=LD_LIBRARY_PATH 11251 fi 11252 ;; 11253 11254sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11255 version_type=sco 11256 need_lib_prefix=no 11257 need_version=no 11258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11259 soname_spec='$libname$release$shared_ext$major' 11260 shlibpath_var=LD_LIBRARY_PATH 11261 shlibpath_overrides_runpath=yes 11262 hardcode_into_libs=yes 11263 if test yes = "$with_gnu_ld"; then 11264 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11265 else 11266 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11267 case $host_os in 11268 sco3.2v5*) 11269 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11270 ;; 11271 esac 11272 fi 11273 sys_lib_dlsearch_path_spec='/usr/lib' 11274 ;; 11275 11276tpf*) 11277 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11278 version_type=linux # correct to gnu/linux during the next big refactor 11279 need_lib_prefix=no 11280 need_version=no 11281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11282 shlibpath_var=LD_LIBRARY_PATH 11283 shlibpath_overrides_runpath=no 11284 hardcode_into_libs=yes 11285 ;; 11286 11287uts4*) 11288 version_type=linux # correct to gnu/linux during the next big refactor 11289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11290 soname_spec='$libname$release$shared_ext$major' 11291 shlibpath_var=LD_LIBRARY_PATH 11292 ;; 11293 11294*) 11295 dynamic_linker=no 11296 ;; 11297esac 11298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11299$as_echo "$dynamic_linker" >&6; } 11300test no = "$dynamic_linker" && can_build_shared=no 11301 11302variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11303if test yes = "$GCC"; then 11304 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11305fi 11306 11307if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11308 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11309fi 11310 11311if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11312 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11313fi 11314 11315# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11316configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11317 11318# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11319func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11320 11321# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11322configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11421$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11422hardcode_action= 11423if test -n "$hardcode_libdir_flag_spec" || 11424 test -n "$runpath_var" || 11425 test yes = "$hardcode_automatic"; then 11426 11427 # We can hardcode non-existent directories. 11428 if test no != "$hardcode_direct" && 11429 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11430 # have to relink, otherwise we might link with an installed library 11431 # when we should be linking with a yet-to-be-installed one 11432 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11433 test no != "$hardcode_minus_L"; then 11434 # Linking always hardcodes the temporary library directory. 11435 hardcode_action=relink 11436 else 11437 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11438 hardcode_action=immediate 11439 fi 11440else 11441 # We cannot hardcode anything, or else we can only hardcode existing 11442 # directories. 11443 hardcode_action=unsupported 11444fi 11445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11446$as_echo "$hardcode_action" >&6; } 11447 11448if test relink = "$hardcode_action" || 11449 test yes = "$inherit_rpath"; then 11450 # Fast installation is not supported 11451 enable_fast_install=no 11452elif test yes = "$shlibpath_overrides_runpath" || 11453 test no = "$enable_shared"; then 11454 # Fast installation is not necessary 11455 enable_fast_install=needless 11456fi 11457 11458 11459 11460 11461 11462 11463 if test yes != "$enable_dlopen"; then 11464 enable_dlopen=unknown 11465 enable_dlopen_self=unknown 11466 enable_dlopen_self_static=unknown 11467else 11468 lt_cv_dlopen=no 11469 lt_cv_dlopen_libs= 11470 11471 case $host_os in 11472 beos*) 11473 lt_cv_dlopen=load_add_on 11474 lt_cv_dlopen_libs= 11475 lt_cv_dlopen_self=yes 11476 ;; 11477 11478 mingw* | pw32* | cegcc*) 11479 lt_cv_dlopen=LoadLibrary 11480 lt_cv_dlopen_libs= 11481 ;; 11482 11483 cygwin*) 11484 lt_cv_dlopen=dlopen 11485 lt_cv_dlopen_libs= 11486 ;; 11487 11488 darwin*) 11489 # if libdl is installed we need to link against it 11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11491$as_echo_n "checking for dlopen in -ldl... " >&6; } 11492if ${ac_cv_lib_dl_dlopen+:} false; then : 11493 $as_echo_n "(cached) " >&6 11494else 11495 ac_check_lib_save_LIBS=$LIBS 11496LIBS="-ldl $LIBS" 11497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11498/* end confdefs.h. */ 11499 11500/* Override any GCC internal prototype to avoid an error. 11501 Use char because int might match the return type of a GCC 11502 builtin and then its argument prototype would still apply. */ 11503#ifdef __cplusplus 11504extern "C" 11505#endif 11506char dlopen (); 11507int 11508main () 11509{ 11510return dlopen (); 11511 ; 11512 return 0; 11513} 11514_ACEOF 11515if ac_fn_c_try_link "$LINENO"; then : 11516 ac_cv_lib_dl_dlopen=yes 11517else 11518 ac_cv_lib_dl_dlopen=no 11519fi 11520rm -f core conftest.err conftest.$ac_objext \ 11521 conftest$ac_exeext conftest.$ac_ext 11522LIBS=$ac_check_lib_save_LIBS 11523fi 11524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11525$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11526if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11527 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11528else 11529 11530 lt_cv_dlopen=dyld 11531 lt_cv_dlopen_libs= 11532 lt_cv_dlopen_self=yes 11533 11534fi 11535 11536 ;; 11537 11538 tpf*) 11539 # Don't try to run any link tests for TPF. We know it's impossible 11540 # because TPF is a cross-compiler, and we know how we open DSOs. 11541 lt_cv_dlopen=dlopen 11542 lt_cv_dlopen_libs= 11543 lt_cv_dlopen_self=no 11544 ;; 11545 11546 *) 11547 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11548if test "x$ac_cv_func_shl_load" = xyes; then : 11549 lt_cv_dlopen=shl_load 11550else 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11552$as_echo_n "checking for shl_load in -ldld... " >&6; } 11553if ${ac_cv_lib_dld_shl_load+:} false; then : 11554 $as_echo_n "(cached) " >&6 11555else 11556 ac_check_lib_save_LIBS=$LIBS 11557LIBS="-ldld $LIBS" 11558cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11559/* end confdefs.h. */ 11560 11561/* Override any GCC internal prototype to avoid an error. 11562 Use char because int might match the return type of a GCC 11563 builtin and then its argument prototype would still apply. */ 11564#ifdef __cplusplus 11565extern "C" 11566#endif 11567char shl_load (); 11568int 11569main () 11570{ 11571return shl_load (); 11572 ; 11573 return 0; 11574} 11575_ACEOF 11576if ac_fn_c_try_link "$LINENO"; then : 11577 ac_cv_lib_dld_shl_load=yes 11578else 11579 ac_cv_lib_dld_shl_load=no 11580fi 11581rm -f core conftest.err conftest.$ac_objext \ 11582 conftest$ac_exeext conftest.$ac_ext 11583LIBS=$ac_check_lib_save_LIBS 11584fi 11585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11586$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11587if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11588 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11589else 11590 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11591if test "x$ac_cv_func_dlopen" = xyes; then : 11592 lt_cv_dlopen=dlopen 11593else 11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11595$as_echo_n "checking for dlopen in -ldl... " >&6; } 11596if ${ac_cv_lib_dl_dlopen+:} false; then : 11597 $as_echo_n "(cached) " >&6 11598else 11599 ac_check_lib_save_LIBS=$LIBS 11600LIBS="-ldl $LIBS" 11601cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11602/* end confdefs.h. */ 11603 11604/* Override any GCC internal prototype to avoid an error. 11605 Use char because int might match the return type of a GCC 11606 builtin and then its argument prototype would still apply. */ 11607#ifdef __cplusplus 11608extern "C" 11609#endif 11610char dlopen (); 11611int 11612main () 11613{ 11614return dlopen (); 11615 ; 11616 return 0; 11617} 11618_ACEOF 11619if ac_fn_c_try_link "$LINENO"; then : 11620 ac_cv_lib_dl_dlopen=yes 11621else 11622 ac_cv_lib_dl_dlopen=no 11623fi 11624rm -f core conftest.err conftest.$ac_objext \ 11625 conftest$ac_exeext conftest.$ac_ext 11626LIBS=$ac_check_lib_save_LIBS 11627fi 11628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11629$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11630if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11631 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11632else 11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11634$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11635if ${ac_cv_lib_svld_dlopen+:} false; then : 11636 $as_echo_n "(cached) " >&6 11637else 11638 ac_check_lib_save_LIBS=$LIBS 11639LIBS="-lsvld $LIBS" 11640cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11641/* end confdefs.h. */ 11642 11643/* Override any GCC internal prototype to avoid an error. 11644 Use char because int might match the return type of a GCC 11645 builtin and then its argument prototype would still apply. */ 11646#ifdef __cplusplus 11647extern "C" 11648#endif 11649char dlopen (); 11650int 11651main () 11652{ 11653return dlopen (); 11654 ; 11655 return 0; 11656} 11657_ACEOF 11658if ac_fn_c_try_link "$LINENO"; then : 11659 ac_cv_lib_svld_dlopen=yes 11660else 11661 ac_cv_lib_svld_dlopen=no 11662fi 11663rm -f core conftest.err conftest.$ac_objext \ 11664 conftest$ac_exeext conftest.$ac_ext 11665LIBS=$ac_check_lib_save_LIBS 11666fi 11667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11668$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11669if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11670 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11671else 11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11673$as_echo_n "checking for dld_link in -ldld... " >&6; } 11674if ${ac_cv_lib_dld_dld_link+:} false; then : 11675 $as_echo_n "(cached) " >&6 11676else 11677 ac_check_lib_save_LIBS=$LIBS 11678LIBS="-ldld $LIBS" 11679cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11680/* end confdefs.h. */ 11681 11682/* Override any GCC internal prototype to avoid an error. 11683 Use char because int might match the return type of a GCC 11684 builtin and then its argument prototype would still apply. */ 11685#ifdef __cplusplus 11686extern "C" 11687#endif 11688char dld_link (); 11689int 11690main () 11691{ 11692return dld_link (); 11693 ; 11694 return 0; 11695} 11696_ACEOF 11697if ac_fn_c_try_link "$LINENO"; then : 11698 ac_cv_lib_dld_dld_link=yes 11699else 11700 ac_cv_lib_dld_dld_link=no 11701fi 11702rm -f core conftest.err conftest.$ac_objext \ 11703 conftest$ac_exeext conftest.$ac_ext 11704LIBS=$ac_check_lib_save_LIBS 11705fi 11706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11707$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11708if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11709 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11710fi 11711 11712 11713fi 11714 11715 11716fi 11717 11718 11719fi 11720 11721 11722fi 11723 11724 11725fi 11726 11727 ;; 11728 esac 11729 11730 if test no = "$lt_cv_dlopen"; then 11731 enable_dlopen=no 11732 else 11733 enable_dlopen=yes 11734 fi 11735 11736 case $lt_cv_dlopen in 11737 dlopen) 11738 save_CPPFLAGS=$CPPFLAGS 11739 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11740 11741 save_LDFLAGS=$LDFLAGS 11742 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11743 11744 save_LIBS=$LIBS 11745 LIBS="$lt_cv_dlopen_libs $LIBS" 11746 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11748$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11749if ${lt_cv_dlopen_self+:} false; then : 11750 $as_echo_n "(cached) " >&6 11751else 11752 if test yes = "$cross_compiling"; then : 11753 lt_cv_dlopen_self=cross 11754else 11755 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11756 lt_status=$lt_dlunknown 11757 cat > conftest.$ac_ext <<_LT_EOF 11758#line $LINENO "configure" 11759#include "confdefs.h" 11760 11761#if HAVE_DLFCN_H 11762#include <dlfcn.h> 11763#endif 11764 11765#include <stdio.h> 11766 11767#ifdef RTLD_GLOBAL 11768# define LT_DLGLOBAL RTLD_GLOBAL 11769#else 11770# ifdef DL_GLOBAL 11771# define LT_DLGLOBAL DL_GLOBAL 11772# else 11773# define LT_DLGLOBAL 0 11774# endif 11775#endif 11776 11777/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11778 find out it does not work in some platform. */ 11779#ifndef LT_DLLAZY_OR_NOW 11780# ifdef RTLD_LAZY 11781# define LT_DLLAZY_OR_NOW RTLD_LAZY 11782# else 11783# ifdef DL_LAZY 11784# define LT_DLLAZY_OR_NOW DL_LAZY 11785# else 11786# ifdef RTLD_NOW 11787# define LT_DLLAZY_OR_NOW RTLD_NOW 11788# else 11789# ifdef DL_NOW 11790# define LT_DLLAZY_OR_NOW DL_NOW 11791# else 11792# define LT_DLLAZY_OR_NOW 0 11793# endif 11794# endif 11795# endif 11796# endif 11797#endif 11798 11799/* When -fvisibility=hidden is used, assume the code has been annotated 11800 correspondingly for the symbols needed. */ 11801#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11802int fnord () __attribute__((visibility("default"))); 11803#endif 11804 11805int fnord () { return 42; } 11806int main () 11807{ 11808 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11809 int status = $lt_dlunknown; 11810 11811 if (self) 11812 { 11813 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11814 else 11815 { 11816 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11817 else puts (dlerror ()); 11818 } 11819 /* dlclose (self); */ 11820 } 11821 else 11822 puts (dlerror ()); 11823 11824 return status; 11825} 11826_LT_EOF 11827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11828 (eval $ac_link) 2>&5 11829 ac_status=$? 11830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11831 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11832 (./conftest; exit; ) >&5 2>/dev/null 11833 lt_status=$? 11834 case x$lt_status in 11835 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11836 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11837 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11838 esac 11839 else : 11840 # compilation failed 11841 lt_cv_dlopen_self=no 11842 fi 11843fi 11844rm -fr conftest* 11845 11846 11847fi 11848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11849$as_echo "$lt_cv_dlopen_self" >&6; } 11850 11851 if test yes = "$lt_cv_dlopen_self"; then 11852 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11854$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11855if ${lt_cv_dlopen_self_static+:} false; then : 11856 $as_echo_n "(cached) " >&6 11857else 11858 if test yes = "$cross_compiling"; then : 11859 lt_cv_dlopen_self_static=cross 11860else 11861 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11862 lt_status=$lt_dlunknown 11863 cat > conftest.$ac_ext <<_LT_EOF 11864#line $LINENO "configure" 11865#include "confdefs.h" 11866 11867#if HAVE_DLFCN_H 11868#include <dlfcn.h> 11869#endif 11870 11871#include <stdio.h> 11872 11873#ifdef RTLD_GLOBAL 11874# define LT_DLGLOBAL RTLD_GLOBAL 11875#else 11876# ifdef DL_GLOBAL 11877# define LT_DLGLOBAL DL_GLOBAL 11878# else 11879# define LT_DLGLOBAL 0 11880# endif 11881#endif 11882 11883/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11884 find out it does not work in some platform. */ 11885#ifndef LT_DLLAZY_OR_NOW 11886# ifdef RTLD_LAZY 11887# define LT_DLLAZY_OR_NOW RTLD_LAZY 11888# else 11889# ifdef DL_LAZY 11890# define LT_DLLAZY_OR_NOW DL_LAZY 11891# else 11892# ifdef RTLD_NOW 11893# define LT_DLLAZY_OR_NOW RTLD_NOW 11894# else 11895# ifdef DL_NOW 11896# define LT_DLLAZY_OR_NOW DL_NOW 11897# else 11898# define LT_DLLAZY_OR_NOW 0 11899# endif 11900# endif 11901# endif 11902# endif 11903#endif 11904 11905/* When -fvisibility=hidden is used, assume the code has been annotated 11906 correspondingly for the symbols needed. */ 11907#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11908int fnord () __attribute__((visibility("default"))); 11909#endif 11910 11911int fnord () { return 42; } 11912int main () 11913{ 11914 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11915 int status = $lt_dlunknown; 11916 11917 if (self) 11918 { 11919 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11920 else 11921 { 11922 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11923 else puts (dlerror ()); 11924 } 11925 /* dlclose (self); */ 11926 } 11927 else 11928 puts (dlerror ()); 11929 11930 return status; 11931} 11932_LT_EOF 11933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11934 (eval $ac_link) 2>&5 11935 ac_status=$? 11936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11937 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11938 (./conftest; exit; ) >&5 2>/dev/null 11939 lt_status=$? 11940 case x$lt_status in 11941 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11942 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11943 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11944 esac 11945 else : 11946 # compilation failed 11947 lt_cv_dlopen_self_static=no 11948 fi 11949fi 11950rm -fr conftest* 11951 11952 11953fi 11954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11955$as_echo "$lt_cv_dlopen_self_static" >&6; } 11956 fi 11957 11958 CPPFLAGS=$save_CPPFLAGS 11959 LDFLAGS=$save_LDFLAGS 11960 LIBS=$save_LIBS 11961 ;; 11962 esac 11963 11964 case $lt_cv_dlopen_self in 11965 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11966 *) enable_dlopen_self=unknown ;; 11967 esac 11968 11969 case $lt_cv_dlopen_self_static in 11970 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11971 *) enable_dlopen_self_static=unknown ;; 11972 esac 11973fi 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991striplib= 11992old_striplib= 11993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11994$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11995if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11996 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11997 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11999$as_echo "yes" >&6; } 12000else 12001# FIXME - insert some real tests, host_os isn't really good enough 12002 case $host_os in 12003 darwin*) 12004 if test -n "$STRIP"; then 12005 striplib="$STRIP -x" 12006 old_striplib="$STRIP -S" 12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12008$as_echo "yes" >&6; } 12009 else 12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12011$as_echo "no" >&6; } 12012 fi 12013 ;; 12014 *) 12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12016$as_echo "no" >&6; } 12017 ;; 12018 esac 12019fi 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 # Report what library types will actually be built 12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12034$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12036$as_echo "$can_build_shared" >&6; } 12037 12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12039$as_echo_n "checking whether to build shared libraries... " >&6; } 12040 test no = "$can_build_shared" && enable_shared=no 12041 12042 # On AIX, shared libraries and static libraries use the same namespace, and 12043 # are all built from PIC. 12044 case $host_os in 12045 aix3*) 12046 test yes = "$enable_shared" && enable_static=no 12047 if test -n "$RANLIB"; then 12048 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12049 postinstall_cmds='$RANLIB $lib' 12050 fi 12051 ;; 12052 12053 aix[4-9]*) 12054 if test ia64 != "$host_cpu"; then 12055 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12056 yes,aix,yes) ;; # shared object as lib.so file only 12057 yes,svr4,*) ;; # shared object as lib.so archive member only 12058 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12059 esac 12060 fi 12061 ;; 12062 esac 12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12064$as_echo "$enable_shared" >&6; } 12065 12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12067$as_echo_n "checking whether to build static libraries... " >&6; } 12068 # Make sure either enable_shared or enable_static is yes. 12069 test yes = "$enable_shared" || enable_static=yes 12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12071$as_echo "$enable_static" >&6; } 12072 12073 12074 12075 12076fi 12077ac_ext=c 12078ac_cpp='$CPP $CPPFLAGS' 12079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12081ac_compiler_gnu=$ac_cv_c_compiler_gnu 12082 12083CC=$lt_save_CC 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 ac_config_commands="$ac_config_commands libtool" 12100 12101 12102 12103 12104# Only expand once: 12105 12106 12107# Check whether --enable-largefile was given. 12108if test "${enable_largefile+set}" = set; then : 12109 enableval=$enable_largefile; 12110fi 12111 12112if test "$enable_largefile" != no; then 12113 12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12115$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12116if ${ac_cv_sys_largefile_CC+:} false; then : 12117 $as_echo_n "(cached) " >&6 12118else 12119 ac_cv_sys_largefile_CC=no 12120 if test "$GCC" != yes; then 12121 ac_save_CC=$CC 12122 while :; do 12123 # IRIX 6.2 and later do not support large files by default, 12124 # so use the C compiler's -n32 option if that helps. 12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12126/* end confdefs.h. */ 12127#include <sys/types.h> 12128 /* Check that off_t can represent 2**63 - 1 correctly. 12129 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12130 since some C++ compilers masquerading as C compilers 12131 incorrectly reject 9223372036854775807. */ 12132#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12133 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12134 && LARGE_OFF_T % 2147483647 == 1) 12135 ? 1 : -1]; 12136int 12137main () 12138{ 12139 12140 ; 12141 return 0; 12142} 12143_ACEOF 12144 if ac_fn_c_try_compile "$LINENO"; then : 12145 break 12146fi 12147rm -f core conftest.err conftest.$ac_objext 12148 CC="$CC -n32" 12149 if ac_fn_c_try_compile "$LINENO"; then : 12150 ac_cv_sys_largefile_CC=' -n32'; break 12151fi 12152rm -f core conftest.err conftest.$ac_objext 12153 break 12154 done 12155 CC=$ac_save_CC 12156 rm -f conftest.$ac_ext 12157 fi 12158fi 12159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12160$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12161 if test "$ac_cv_sys_largefile_CC" != no; then 12162 CC=$CC$ac_cv_sys_largefile_CC 12163 fi 12164 12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12166$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12167if ${ac_cv_sys_file_offset_bits+:} false; then : 12168 $as_echo_n "(cached) " >&6 12169else 12170 while :; do 12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12172/* end confdefs.h. */ 12173#include <sys/types.h> 12174 /* Check that off_t can represent 2**63 - 1 correctly. 12175 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12176 since some C++ compilers masquerading as C compilers 12177 incorrectly reject 9223372036854775807. */ 12178#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12179 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12180 && LARGE_OFF_T % 2147483647 == 1) 12181 ? 1 : -1]; 12182int 12183main () 12184{ 12185 12186 ; 12187 return 0; 12188} 12189_ACEOF 12190if ac_fn_c_try_compile "$LINENO"; then : 12191 ac_cv_sys_file_offset_bits=no; break 12192fi 12193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12195/* end confdefs.h. */ 12196#define _FILE_OFFSET_BITS 64 12197#include <sys/types.h> 12198 /* Check that off_t can represent 2**63 - 1 correctly. 12199 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12200 since some C++ compilers masquerading as C compilers 12201 incorrectly reject 9223372036854775807. */ 12202#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12203 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12204 && LARGE_OFF_T % 2147483647 == 1) 12205 ? 1 : -1]; 12206int 12207main () 12208{ 12209 12210 ; 12211 return 0; 12212} 12213_ACEOF 12214if ac_fn_c_try_compile "$LINENO"; then : 12215 ac_cv_sys_file_offset_bits=64; break 12216fi 12217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12218 ac_cv_sys_file_offset_bits=unknown 12219 break 12220done 12221fi 12222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12223$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12224case $ac_cv_sys_file_offset_bits in #( 12225 no | unknown) ;; 12226 *) 12227cat >>confdefs.h <<_ACEOF 12228#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12229_ACEOF 12230;; 12231esac 12232rm -rf conftest* 12233 if test $ac_cv_sys_file_offset_bits = unknown; then 12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12235$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12236if ${ac_cv_sys_large_files+:} false; then : 12237 $as_echo_n "(cached) " >&6 12238else 12239 while :; do 12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12241/* end confdefs.h. */ 12242#include <sys/types.h> 12243 /* Check that off_t can represent 2**63 - 1 correctly. 12244 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12245 since some C++ compilers masquerading as C compilers 12246 incorrectly reject 9223372036854775807. */ 12247#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12248 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12249 && LARGE_OFF_T % 2147483647 == 1) 12250 ? 1 : -1]; 12251int 12252main () 12253{ 12254 12255 ; 12256 return 0; 12257} 12258_ACEOF 12259if ac_fn_c_try_compile "$LINENO"; then : 12260 ac_cv_sys_large_files=no; break 12261fi 12262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12264/* end confdefs.h. */ 12265#define _LARGE_FILES 1 12266#include <sys/types.h> 12267 /* Check that off_t can represent 2**63 - 1 correctly. 12268 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12269 since some C++ compilers masquerading as C compilers 12270 incorrectly reject 9223372036854775807. */ 12271#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12272 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12273 && LARGE_OFF_T % 2147483647 == 1) 12274 ? 1 : -1]; 12275int 12276main () 12277{ 12278 12279 ; 12280 return 0; 12281} 12282_ACEOF 12283if ac_fn_c_try_compile "$LINENO"; then : 12284 ac_cv_sys_large_files=1; break 12285fi 12286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12287 ac_cv_sys_large_files=unknown 12288 break 12289done 12290fi 12291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12292$as_echo "$ac_cv_sys_large_files" >&6; } 12293case $ac_cv_sys_large_files in #( 12294 no | unknown) ;; 12295 *) 12296cat >>confdefs.h <<_ACEOF 12297#define _LARGE_FILES $ac_cv_sys_large_files 12298_ACEOF 12299;; 12300esac 12301rm -rf conftest* 12302 fi 12303 12304 12305fi 12306 12307 12308 12309 12310 12311# Check whether --with-xorg-module-dir was given. 12312if test "${with_xorg_module_dir+set}" = set; then : 12313 withval=$with_xorg_module_dir; moduledir="$withval" 12314else 12315 moduledir="$libdir/xorg/modules" 12316fi 12317 12318 12319# Check whether --enable-debug was given. 12320if test "${enable_debug+set}" = set; then : 12321 enableval=$enable_debug; DEBUG="$enableval" 12322else 12323 DEBUG=no 12324fi 12325 12326 12327# Check whether --enable-xv-debug was given. 12328if test "${enable_xv_debug+set}" = set; then : 12329 enableval=$enable_xv_debug; XV_DEBUG="$enableval" 12330else 12331 XV_DEBUG=no 12332fi 12333 12334 12335# Check whether --enable-viaregtool was given. 12336if test "${enable_viaregtool+set}" = set; then : 12337 enableval=$enable_viaregtool; TOOLS="$enableval" 12338else 12339 TOOLS=no 12340fi 12341 12342 12343# Checks for extensions 12344 12345 SAVE_CFLAGS="$CFLAGS" 12346 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12348/* end confdefs.h. */ 12349 12350#include "xorg-server.h" 12351#if !defined RANDR 12352#error RANDR not defined 12353#endif 12354 12355int 12356main () 12357{ 12358 12359 ; 12360 return 0; 12361} 12362_ACEOF 12363if ac_fn_c_try_compile "$LINENO"; then : 12364 _EXT_CHECK=yes 12365else 12366 _EXT_CHECK=no 12367fi 12368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12369 CFLAGS="$SAVE_CFLAGS" 12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 12371$as_echo_n "checking if RANDR is defined... " >&6; } 12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 12373$as_echo "$_EXT_CHECK" >&6; } 12374 if test "$_EXT_CHECK" != no; then 12375 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 12376 fi 12377 12378 12379 SAVE_CFLAGS="$CFLAGS" 12380 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12382/* end confdefs.h. */ 12383 12384#include "xorg-server.h" 12385#if !defined RENDER 12386#error RENDER not defined 12387#endif 12388 12389int 12390main () 12391{ 12392 12393 ; 12394 return 0; 12395} 12396_ACEOF 12397if ac_fn_c_try_compile "$LINENO"; then : 12398 _EXT_CHECK=yes 12399else 12400 _EXT_CHECK=no 12401fi 12402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12403 CFLAGS="$SAVE_CFLAGS" 12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 12405$as_echo_n "checking if RENDER is defined... " >&6; } 12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 12407$as_echo "$_EXT_CHECK" >&6; } 12408 if test "$_EXT_CHECK" != no; then 12409 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 12410 fi 12411 12412 12413 SAVE_CFLAGS="$CFLAGS" 12414 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12416/* end confdefs.h. */ 12417 12418#include "xorg-server.h" 12419#if !defined XV 12420#error XV not defined 12421#endif 12422 12423int 12424main () 12425{ 12426 12427 ; 12428 return 0; 12429} 12430_ACEOF 12431if ac_fn_c_try_compile "$LINENO"; then : 12432 _EXT_CHECK=yes 12433else 12434 _EXT_CHECK=no 12435fi 12436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12437 CFLAGS="$SAVE_CFLAGS" 12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 12439$as_echo_n "checking if XV is defined... " >&6; } 12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 12441$as_echo "$_EXT_CHECK" >&6; } 12442 if test "$_EXT_CHECK" != no; then 12443 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 12444 fi 12445 12446 12447 SAVE_CFLAGS="$CFLAGS" 12448 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12450/* end confdefs.h. */ 12451 12452#include "xorg-server.h" 12453#if !defined XF86DRI 12454#error XF86DRI not defined 12455#endif 12456 12457int 12458main () 12459{ 12460 12461 ; 12462 return 0; 12463} 12464_ACEOF 12465if ac_fn_c_try_compile "$LINENO"; then : 12466 _EXT_CHECK=yes 12467else 12468 _EXT_CHECK=no 12469fi 12470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12471 CFLAGS="$SAVE_CFLAGS" 12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XF86DRI is defined" >&5 12473$as_echo_n "checking if XF86DRI is defined... " >&6; } 12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 12475$as_echo "$_EXT_CHECK" >&6; } 12476 if test "$_EXT_CHECK" != no; then 12477 REQUIRED_MODULES="$REQUIRED_MODULES xextproto x11" 12478 fi 12479 12480 12481 SAVE_CFLAGS="$CFLAGS" 12482 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12484/* end confdefs.h. */ 12485 12486#include "xorg-server.h" 12487#if !defined DPMSExtension 12488#error DPMSExtension not defined 12489#endif 12490 12491int 12492main () 12493{ 12494 12495 ; 12496 return 0; 12497} 12498_ACEOF 12499if ac_fn_c_try_compile "$LINENO"; then : 12500 _EXT_CHECK=yes 12501else 12502 _EXT_CHECK=no 12503fi 12504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12505 CFLAGS="$SAVE_CFLAGS" 12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 12507$as_echo_n "checking if DPMSExtension is defined... " >&6; } 12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 12509$as_echo "$_EXT_CHECK" >&6; } 12510 if test "$_EXT_CHECK" != no; then 12511 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 12512 fi 12513 12514 12515# Checks for pkg-config packages 12516 12517 12518 12519 12520 12521 12522 12523if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12524 if test -n "$ac_tool_prefix"; then 12525 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12526set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12528$as_echo_n "checking for $ac_word... " >&6; } 12529if ${ac_cv_path_PKG_CONFIG+:} false; then : 12530 $as_echo_n "(cached) " >&6 12531else 12532 case $PKG_CONFIG in 12533 [\\/]* | ?:[\\/]*) 12534 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12535 ;; 12536 *) 12537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12538for as_dir in $PATH 12539do 12540 IFS=$as_save_IFS 12541 test -z "$as_dir" && as_dir=. 12542 for ac_exec_ext in '' $ac_executable_extensions; do 12543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12544 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12546 break 2 12547 fi 12548done 12549 done 12550IFS=$as_save_IFS 12551 12552 ;; 12553esac 12554fi 12555PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12556if test -n "$PKG_CONFIG"; then 12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12558$as_echo "$PKG_CONFIG" >&6; } 12559else 12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12561$as_echo "no" >&6; } 12562fi 12563 12564 12565fi 12566if test -z "$ac_cv_path_PKG_CONFIG"; then 12567 ac_pt_PKG_CONFIG=$PKG_CONFIG 12568 # Extract the first word of "pkg-config", so it can be a program name with args. 12569set dummy pkg-config; ac_word=$2 12570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12571$as_echo_n "checking for $ac_word... " >&6; } 12572if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12573 $as_echo_n "(cached) " >&6 12574else 12575 case $ac_pt_PKG_CONFIG in 12576 [\\/]* | ?:[\\/]*) 12577 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12578 ;; 12579 *) 12580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12581for as_dir in $PATH 12582do 12583 IFS=$as_save_IFS 12584 test -z "$as_dir" && as_dir=. 12585 for ac_exec_ext in '' $ac_executable_extensions; do 12586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12587 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12589 break 2 12590 fi 12591done 12592 done 12593IFS=$as_save_IFS 12594 12595 ;; 12596esac 12597fi 12598ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12599if test -n "$ac_pt_PKG_CONFIG"; then 12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12601$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12602else 12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12604$as_echo "no" >&6; } 12605fi 12606 12607 if test "x$ac_pt_PKG_CONFIG" = x; then 12608 PKG_CONFIG="" 12609 else 12610 case $cross_compiling:$ac_tool_warned in 12611yes:) 12612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12614ac_tool_warned=yes ;; 12615esac 12616 PKG_CONFIG=$ac_pt_PKG_CONFIG 12617 fi 12618else 12619 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12620fi 12621 12622fi 12623if test -n "$PKG_CONFIG"; then 12624 _pkg_min_version=0.9.0 12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12626$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12627 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12629$as_echo "yes" >&6; } 12630 else 12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12632$as_echo "no" >&6; } 12633 PKG_CONFIG="" 12634 fi 12635fi 12636 12637pkg_failed=no 12638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 12639$as_echo_n "checking for XORG... " >&6; } 12640 12641if test -n "$XORG_CFLAGS"; then 12642 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 12643 elif test -n "$PKG_CONFIG"; then 12644 if test -n "$PKG_CONFIG" && \ 12645 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto glproto \$REQUIRED_MODULES\""; } >&5 12646 ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto glproto $REQUIRED_MODULES") 2>&5 12647 ac_status=$? 12648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12649 test $ac_status = 0; }; then 12650 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto glproto $REQUIRED_MODULES" 2>/dev/null` 12651 test "x$?" != "x0" && pkg_failed=yes 12652else 12653 pkg_failed=yes 12654fi 12655 else 12656 pkg_failed=untried 12657fi 12658if test -n "$XORG_LIBS"; then 12659 pkg_cv_XORG_LIBS="$XORG_LIBS" 12660 elif test -n "$PKG_CONFIG"; then 12661 if test -n "$PKG_CONFIG" && \ 12662 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto glproto \$REQUIRED_MODULES\""; } >&5 12663 ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto glproto $REQUIRED_MODULES") 2>&5 12664 ac_status=$? 12665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12666 test $ac_status = 0; }; then 12667 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto glproto $REQUIRED_MODULES" 2>/dev/null` 12668 test "x$?" != "x0" && pkg_failed=yes 12669else 12670 pkg_failed=yes 12671fi 12672 else 12673 pkg_failed=untried 12674fi 12675 12676 12677 12678if test $pkg_failed = yes; then 12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12680$as_echo "no" >&6; } 12681 12682if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12683 _pkg_short_errors_supported=yes 12684else 12685 _pkg_short_errors_supported=no 12686fi 12687 if test $_pkg_short_errors_supported = yes; then 12688 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server xproto fontsproto glproto $REQUIRED_MODULES" 2>&1` 12689 else 12690 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server xproto fontsproto glproto $REQUIRED_MODULES" 2>&1` 12691 fi 12692 # Put the nasty error message in config.log where it belongs 12693 echo "$XORG_PKG_ERRORS" >&5 12694 12695 as_fn_error $? "Package requirements (xorg-server xproto fontsproto glproto $REQUIRED_MODULES) were not met: 12696 12697$XORG_PKG_ERRORS 12698 12699Consider adjusting the PKG_CONFIG_PATH environment variable if you 12700installed software in a non-standard prefix. 12701 12702Alternatively, you may set the environment variables XORG_CFLAGS 12703and XORG_LIBS to avoid the need to call pkg-config. 12704See the pkg-config man page for more details." "$LINENO" 5 12705elif test $pkg_failed = untried; then 12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12707$as_echo "no" >&6; } 12708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12710as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12711is in your PATH or set the PKG_CONFIG environment variable to the full 12712path to pkg-config. 12713 12714Alternatively, you may set the environment variables XORG_CFLAGS 12715and XORG_LIBS to avoid the need to call pkg-config. 12716See the pkg-config man page for more details. 12717 12718To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12719See \`config.log' for more details" "$LINENO" 5; } 12720else 12721 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 12722 XORG_LIBS=$pkg_cv_XORG_LIBS 12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12724$as_echo "yes" >&6; } 12725 12726fi 12727 12728pkg_failed=no 12729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 12730$as_echo_n "checking for XEXT... " >&6; } 12731 12732if test -n "$XEXT_CFLAGS"; then 12733 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 12734 elif test -n "$PKG_CONFIG"; then 12735 if test -n "$PKG_CONFIG" && \ 12736 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 12737 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 12738 ac_status=$? 12739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12740 test $ac_status = 0; }; then 12741 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 12742 test "x$?" != "x0" && pkg_failed=yes 12743else 12744 pkg_failed=yes 12745fi 12746 else 12747 pkg_failed=untried 12748fi 12749if test -n "$XEXT_LIBS"; then 12750 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 12751 elif test -n "$PKG_CONFIG"; then 12752 if test -n "$PKG_CONFIG" && \ 12753 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 12754 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 12755 ac_status=$? 12756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12757 test $ac_status = 0; }; then 12758 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 12759 test "x$?" != "x0" && pkg_failed=yes 12760else 12761 pkg_failed=yes 12762fi 12763 else 12764 pkg_failed=untried 12765fi 12766 12767 12768 12769if test $pkg_failed = yes; then 12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12771$as_echo "no" >&6; } 12772 12773if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12774 _pkg_short_errors_supported=yes 12775else 12776 _pkg_short_errors_supported=no 12777fi 12778 if test $_pkg_short_errors_supported = yes; then 12779 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 12780 else 12781 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 12782 fi 12783 # Put the nasty error message in config.log where it belongs 12784 echo "$XEXT_PKG_ERRORS" >&5 12785 12786 HAVE_XEXTPROTO_71="no" 12787elif test $pkg_failed = untried; then 12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12789$as_echo "no" >&6; } 12790 HAVE_XEXTPROTO_71="no" 12791else 12792 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 12793 XEXT_LIBS=$pkg_cv_XEXT_LIBS 12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12795$as_echo "yes" >&6; } 12796 HAVE_XEXTPROTO_71="yes"; 12797$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 12798 12799fi 12800 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 12801 HAVE_XEXTPROTO_71_TRUE= 12802 HAVE_XEXTPROTO_71_FALSE='#' 12803else 12804 HAVE_XEXTPROTO_71_TRUE='#' 12805 HAVE_XEXTPROTO_71_FALSE= 12806fi 12807 12808 12809# Checks for libraries. 12810 12811# Checks for header files. 12812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12813$as_echo_n "checking for ANSI C header files... " >&6; } 12814if ${ac_cv_header_stdc+:} false; then : 12815 $as_echo_n "(cached) " >&6 12816else 12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12818/* end confdefs.h. */ 12819#include <stdlib.h> 12820#include <stdarg.h> 12821#include <string.h> 12822#include <float.h> 12823 12824int 12825main () 12826{ 12827 12828 ; 12829 return 0; 12830} 12831_ACEOF 12832if ac_fn_c_try_compile "$LINENO"; then : 12833 ac_cv_header_stdc=yes 12834else 12835 ac_cv_header_stdc=no 12836fi 12837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12838 12839if test $ac_cv_header_stdc = yes; then 12840 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12842/* end confdefs.h. */ 12843#include <string.h> 12844 12845_ACEOF 12846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12847 $EGREP "memchr" >/dev/null 2>&1; then : 12848 12849else 12850 ac_cv_header_stdc=no 12851fi 12852rm -f conftest* 12853 12854fi 12855 12856if test $ac_cv_header_stdc = yes; then 12857 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12859/* end confdefs.h. */ 12860#include <stdlib.h> 12861 12862_ACEOF 12863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12864 $EGREP "free" >/dev/null 2>&1; then : 12865 12866else 12867 ac_cv_header_stdc=no 12868fi 12869rm -f conftest* 12870 12871fi 12872 12873if test $ac_cv_header_stdc = yes; then 12874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12875 if test "$cross_compiling" = yes; then : 12876 : 12877else 12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12879/* end confdefs.h. */ 12880#include <ctype.h> 12881#include <stdlib.h> 12882#if ((' ' & 0x0FF) == 0x020) 12883# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12884# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12885#else 12886# define ISLOWER(c) \ 12887 (('a' <= (c) && (c) <= 'i') \ 12888 || ('j' <= (c) && (c) <= 'r') \ 12889 || ('s' <= (c) && (c) <= 'z')) 12890# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12891#endif 12892 12893#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12894int 12895main () 12896{ 12897 int i; 12898 for (i = 0; i < 256; i++) 12899 if (XOR (islower (i), ISLOWER (i)) 12900 || toupper (i) != TOUPPER (i)) 12901 return 2; 12902 return 0; 12903} 12904_ACEOF 12905if ac_fn_c_try_run "$LINENO"; then : 12906 12907else 12908 ac_cv_header_stdc=no 12909fi 12910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12911 conftest.$ac_objext conftest.beam conftest.$ac_ext 12912fi 12913 12914fi 12915fi 12916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12917$as_echo "$ac_cv_header_stdc" >&6; } 12918if test $ac_cv_header_stdc = yes; then 12919 12920$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12921 12922fi 12923 12924 12925save_CPPFLAGS="$CPPFLAGS" 12926CPPFLAGS="$XORG_CFLAGS $CPPFLAGS" 12927ac_fn_c_check_header_compile "$LINENO" "xf86Modes.h" "ac_cv_header_xf86Modes_h" "#include \"xorg-server.h\" 12928" 12929if test "x$ac_cv_header_xf86Modes_h" = xyes; then : 12930 XMODES=yes 12931else 12932 XMODES=no 12933fi 12934 12935 12936 12937pkg_failed=no 12938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 12939$as_echo_n "checking for PCIACCESS... " >&6; } 12940 12941if test -n "$PCIACCESS_CFLAGS"; then 12942 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 12943 elif test -n "$PKG_CONFIG"; then 12944 if test -n "$PKG_CONFIG" && \ 12945 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.11.0\""; } >&5 12946 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.11.0") 2>&5 12947 ac_status=$? 12948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12949 test $ac_status = 0; }; then 12950 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.11.0" 2>/dev/null` 12951 test "x$?" != "x0" && pkg_failed=yes 12952else 12953 pkg_failed=yes 12954fi 12955 else 12956 pkg_failed=untried 12957fi 12958if test -n "$PCIACCESS_LIBS"; then 12959 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 12960 elif test -n "$PKG_CONFIG"; then 12961 if test -n "$PKG_CONFIG" && \ 12962 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.11.0\""; } >&5 12963 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.11.0") 2>&5 12964 ac_status=$? 12965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12966 test $ac_status = 0; }; then 12967 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.11.0" 2>/dev/null` 12968 test "x$?" != "x0" && pkg_failed=yes 12969else 12970 pkg_failed=yes 12971fi 12972 else 12973 pkg_failed=untried 12974fi 12975 12976 12977 12978if test $pkg_failed = yes; then 12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12980$as_echo "no" >&6; } 12981 12982if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12983 _pkg_short_errors_supported=yes 12984else 12985 _pkg_short_errors_supported=no 12986fi 12987 if test $_pkg_short_errors_supported = yes; then 12988 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.11.0" 2>&1` 12989 else 12990 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.11.0" 2>&1` 12991 fi 12992 # Put the nasty error message in config.log where it belongs 12993 echo "$PCIACCESS_PKG_ERRORS" >&5 12994 12995 HAVE_PCIACCESS="no" 12996elif test $pkg_failed = untried; then 12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12998$as_echo "no" >&6; } 12999 HAVE_PCIACCESS="no" 13000else 13001 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 13002 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13004$as_echo "yes" >&6; } 13005 HAVE_PCIACCESS="yes"; 13006$as_echo "#define HAVE_PCIACCESS 1" >>confdefs.h 13007 13008fi 13009 13010 13011 13012 13013pkg_failed=no 13014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5 13015$as_echo_n "checking for DRI... " >&6; } 13016 13017if test -n "$DRI_CFLAGS"; then 13018 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 13019 elif test -n "$PKG_CONFIG"; then 13020 if test -n "$PKG_CONFIG" && \ 13021 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.4 xf86driproto\""; } >&5 13022 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.4 xf86driproto") 2>&5 13023 ac_status=$? 13024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13025 test $ac_status = 0; }; then 13026 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.4 xf86driproto" 2>/dev/null` 13027 test "x$?" != "x0" && pkg_failed=yes 13028else 13029 pkg_failed=yes 13030fi 13031 else 13032 pkg_failed=untried 13033fi 13034if test -n "$DRI_LIBS"; then 13035 pkg_cv_DRI_LIBS="$DRI_LIBS" 13036 elif test -n "$PKG_CONFIG"; then 13037 if test -n "$PKG_CONFIG" && \ 13038 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.4 xf86driproto\""; } >&5 13039 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.4 xf86driproto") 2>&5 13040 ac_status=$? 13041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13042 test $ac_status = 0; }; then 13043 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.4 xf86driproto" 2>/dev/null` 13044 test "x$?" != "x0" && pkg_failed=yes 13045else 13046 pkg_failed=yes 13047fi 13048 else 13049 pkg_failed=untried 13050fi 13051 13052 13053 13054if test $pkg_failed = yes; then 13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13056$as_echo "no" >&6; } 13057 13058if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13059 _pkg_short_errors_supported=yes 13060else 13061 _pkg_short_errors_supported=no 13062fi 13063 if test $_pkg_short_errors_supported = yes; then 13064 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.4 xf86driproto" 2>&1` 13065 else 13066 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.4 xf86driproto" 2>&1` 13067 fi 13068 # Put the nasty error message in config.log where it belongs 13069 echo "$DRI_PKG_ERRORS" >&5 13070 13071 DRI="no" 13072elif test $pkg_failed = untried; then 13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13074$as_echo "no" >&6; } 13075 DRI="no" 13076else 13077 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 13078 DRI_LIBS=$pkg_cv_DRI_LIBS 13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13080$as_echo "yes" >&6; } 13081 DRI="yes"; 13082$as_echo "#define HAVE_DRI 1" >>confdefs.h 13083 13084fi 13085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build KMS support" >&5 13086$as_echo_n "checking whether to build KMS support... " >&6; } 13087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5 13088$as_echo "$DRI" >&6; } 13089 13090 if test x$DRI = xyes; then 13091 DRI_TRUE= 13092 DRI_FALSE='#' 13093else 13094 DRI_TRUE='#' 13095 DRI_FALSE= 13096fi 13097 13098if test "$DRI" = yes; then 13099 13100$as_echo "#define XF86DRI 1" >>confdefs.h 13101 13102 13103 ac_fn_c_check_header_preproc "$LINENO" "damage.h" "ac_cv_header_damage_h" 13104if test "x$ac_cv_header_damage_h" = xyes; then : 13105 have_damage_h="yes" 13106else 13107 have_damage_h="no" 13108fi 13109 13110 13111 if test "$have_damage_h" = yes; then 13112 13113$as_echo "#define DAMAGE 1" >>confdefs.h 13114 13115 fi 13116 13117 13118pkg_failed=no 13119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5 13120$as_echo_n "checking for LIBUDEV... " >&6; } 13121 13122if test -n "$LIBUDEV_CFLAGS"; then 13123 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS" 13124 elif test -n "$PKG_CONFIG"; then 13125 if test -n "$PKG_CONFIG" && \ 13126 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 13127 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 13128 ac_status=$? 13129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13130 test $ac_status = 0; }; then 13131 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null` 13132 test "x$?" != "x0" && pkg_failed=yes 13133else 13134 pkg_failed=yes 13135fi 13136 else 13137 pkg_failed=untried 13138fi 13139if test -n "$LIBUDEV_LIBS"; then 13140 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS" 13141 elif test -n "$PKG_CONFIG"; then 13142 if test -n "$PKG_CONFIG" && \ 13143 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 13144 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 13145 ac_status=$? 13146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13147 test $ac_status = 0; }; then 13148 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null` 13149 test "x$?" != "x0" && pkg_failed=yes 13150else 13151 pkg_failed=yes 13152fi 13153 else 13154 pkg_failed=untried 13155fi 13156 13157 13158 13159if test $pkg_failed = yes; then 13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13161$as_echo "no" >&6; } 13162 13163if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13164 _pkg_short_errors_supported=yes 13165else 13166 _pkg_short_errors_supported=no 13167fi 13168 if test $_pkg_short_errors_supported = yes; then 13169 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1` 13170 else 13171 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1` 13172 fi 13173 # Put the nasty error message in config.log where it belongs 13174 echo "$LIBUDEV_PKG_ERRORS" >&5 13175 13176 LIBUDEV=no 13177elif test $pkg_failed = untried; then 13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13179$as_echo "no" >&6; } 13180 LIBUDEV=no 13181else 13182 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS 13183 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS 13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13185$as_echo "yes" >&6; } 13186 LIBUDEV=yes 13187fi 13188 if test "x$LIBUDEV" = xyes; then 13189 13190$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h 13191 13192 fi 13193 13194 case "$host_cpu" in 13195 i*86) 13196 XVMC=yes ;; 13197 amd64*|x86_64*) 13198 XVMC=yes ;; 13199 *) 13200 XVMC=no ;; 13201 esac 13202else 13203 XVMC="no" 13204fi 13205 13206if test "x$XVMC" = xyes; then 13207 for ac_header in pthread.h sys/ioctl.h sys/time.h time.h 13208do : 13209 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13210ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13211if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13212 cat >>confdefs.h <<_ACEOF 13213#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13214_ACEOF 13215 13216else 13217 XVMC="no"; break 13218fi 13219 13220done 13221 13222 13223pkg_failed=no 13224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMC" >&5 13225$as_echo_n "checking for XVMC... " >&6; } 13226 13227if test -n "$XVMC_CFLAGS"; then 13228 pkg_cv_XVMC_CFLAGS="$XVMC_CFLAGS" 13229 elif test -n "$PKG_CONFIG"; then 13230 if test -n "$PKG_CONFIG" && \ 13231 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xvmc\""; } >&5 13232 ($PKG_CONFIG --exists --print-errors "x11 xext xvmc") 2>&5 13233 ac_status=$? 13234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13235 test $ac_status = 0; }; then 13236 pkg_cv_XVMC_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xvmc" 2>/dev/null` 13237 test "x$?" != "x0" && pkg_failed=yes 13238else 13239 pkg_failed=yes 13240fi 13241 else 13242 pkg_failed=untried 13243fi 13244if test -n "$XVMC_LIBS"; then 13245 pkg_cv_XVMC_LIBS="$XVMC_LIBS" 13246 elif test -n "$PKG_CONFIG"; then 13247 if test -n "$PKG_CONFIG" && \ 13248 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xvmc\""; } >&5 13249 ($PKG_CONFIG --exists --print-errors "x11 xext xvmc") 2>&5 13250 ac_status=$? 13251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13252 test $ac_status = 0; }; then 13253 pkg_cv_XVMC_LIBS=`$PKG_CONFIG --libs "x11 xext xvmc" 2>/dev/null` 13254 test "x$?" != "x0" && pkg_failed=yes 13255else 13256 pkg_failed=yes 13257fi 13258 else 13259 pkg_failed=untried 13260fi 13261 13262 13263 13264if test $pkg_failed = yes; then 13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13266$as_echo "no" >&6; } 13267 13268if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13269 _pkg_short_errors_supported=yes 13270else 13271 _pkg_short_errors_supported=no 13272fi 13273 if test $_pkg_short_errors_supported = yes; then 13274 XVMC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext xvmc" 2>&1` 13275 else 13276 XVMC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext xvmc" 2>&1` 13277 fi 13278 # Put the nasty error message in config.log where it belongs 13279 echo "$XVMC_PKG_ERRORS" >&5 13280 13281 as_fn_error $? "Package requirements (x11 xext xvmc) were not met: 13282 13283$XVMC_PKG_ERRORS 13284 13285Consider adjusting the PKG_CONFIG_PATH environment variable if you 13286installed software in a non-standard prefix. 13287 13288Alternatively, you may set the environment variables XVMC_CFLAGS 13289and XVMC_LIBS to avoid the need to call pkg-config. 13290See the pkg-config man page for more details." "$LINENO" 5 13291elif test $pkg_failed = untried; then 13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13293$as_echo "no" >&6; } 13294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13296as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13297is in your PATH or set the PKG_CONFIG environment variable to the full 13298path to pkg-config. 13299 13300Alternatively, you may set the environment variables XVMC_CFLAGS 13301and XVMC_LIBS to avoid the need to call pkg-config. 13302See the pkg-config man page for more details. 13303 13304To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13305See \`config.log' for more details" "$LINENO" 5; } 13306else 13307 XVMC_CFLAGS=$pkg_cv_XVMC_CFLAGS 13308 XVMC_LIBS=$pkg_cv_XVMC_LIBS 13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13310$as_echo "yes" >&6; } 13311 13312fi 13313fi 13314 13315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build XvMC driver support" >&5 13316$as_echo_n "checking whether to build XvMC driver support... " >&6; } 13317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVMC" >&5 13318$as_echo "$XVMC" >&6; } 13319 13320 if test x$XVMC = xyes; then 13321 XVMC_TRUE= 13322 XVMC_FALSE='#' 13323else 13324 XVMC_TRUE='#' 13325 XVMC_FALSE= 13326fi 13327 13328 13329 if test x$DEBUG = xyes; then 13330 DEBUG_TRUE= 13331 DEBUG_FALSE='#' 13332else 13333 DEBUG_TRUE='#' 13334 DEBUG_FALSE= 13335fi 13336 13337if test "$DEBUG" = yes; then 13338 13339$as_echo "#define HAVE_DEBUG 1" >>confdefs.h 13340 13341fi 13342 13343 if test x$XV_DEBUG = xyes; then 13344 XV_DEBUG_TRUE= 13345 XV_DEBUG_FALSE='#' 13346else 13347 XV_DEBUG_TRUE='#' 13348 XV_DEBUG_FALSE= 13349fi 13350 13351if test "$XV_DEBUG" = yes; then 13352 13353$as_echo "#define XV_DEBUG 1" >>confdefs.h 13354 13355fi 13356 13357 if test x$TOOLS = xyes; then 13358 TOOLS_TRUE= 13359 TOOLS_FALSE='#' 13360else 13361 TOOLS_TRUE='#' 13362 TOOLS_FALSE= 13363fi 13364 13365if test "$TOOLS" = yes; then 13366 13367$as_echo "#define TOOLS 1" >>confdefs.h 13368 13369fi 13370 13371 13372 13373 13374 13375DRIVER_NAME=openchrome 13376 13377 13378 13379$as_echo "#define X_USE_LINEARFB 1" >>confdefs.h 13380 13381 13382$as_echo "#define X_USE_REGION_NULL 1" >>confdefs.h 13383 13384 13385$as_echo "#define X_HAVE_XAAGETROP 1" >>confdefs.h 13386 13387 13388$as_echo "#define X_NEED_I2CSTART 1" >>confdefs.h 13389 13390 13391DRIVER_MAN_SUFFIX="4" 13392 13393 13394 13395 13396 13397 13398if test x$APP_MAN_SUFFIX = x ; then 13399 APP_MAN_SUFFIX=1 13400fi 13401if test x$APP_MAN_DIR = x ; then 13402 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 13403fi 13404 13405if test x$LIB_MAN_SUFFIX = x ; then 13406 LIB_MAN_SUFFIX=3 13407fi 13408if test x$LIB_MAN_DIR = x ; then 13409 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 13410fi 13411 13412if test x$FILE_MAN_SUFFIX = x ; then 13413 case $host_os in 13414 solaris*) FILE_MAN_SUFFIX=4 ;; 13415 *) FILE_MAN_SUFFIX=5 ;; 13416 esac 13417fi 13418if test x$FILE_MAN_DIR = x ; then 13419 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 13420fi 13421 13422if test x$MISC_MAN_SUFFIX = x ; then 13423 case $host_os in 13424 solaris*) MISC_MAN_SUFFIX=5 ;; 13425 *) MISC_MAN_SUFFIX=7 ;; 13426 esac 13427fi 13428if test x$MISC_MAN_DIR = x ; then 13429 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 13430fi 13431 13432if test x$DRIVER_MAN_SUFFIX = x ; then 13433 case $host_os in 13434 solaris*) DRIVER_MAN_SUFFIX=7 ;; 13435 *) DRIVER_MAN_SUFFIX=4 ;; 13436 esac 13437fi 13438if test x$DRIVER_MAN_DIR = x ; then 13439 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 13440fi 13441 13442if test x$ADMIN_MAN_SUFFIX = x ; then 13443 case $host_os in 13444 solaris*) ADMIN_MAN_SUFFIX=1m ;; 13445 *) ADMIN_MAN_SUFFIX=8 ;; 13446 esac 13447fi 13448if test x$ADMIN_MAN_DIR = x ; then 13449 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 13450fi 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466XORG_MAN_PAGE="X Version 11" 13467 13468MAN_SUBSTS="\ 13469 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 13470 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 13471 -e 's|__xservername__|Xorg|g' \ 13472 -e 's|__xconfigfile__|xorg.conf|g' \ 13473 -e 's|__projectroot__|\$(prefix)|g' \ 13474 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 13475 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 13476 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 13477 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 13478 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 13479 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 13480 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 13481 13482 13483 13484 13485 13486# Check whether --with-release-version was given. 13487if test "${with_release_version+set}" = set; then : 13488 withval=$with_release_version; RELEASE_VERSION="$withval" 13489else 13490 RELEASE_VERSION="" 13491fi 13492 13493 if test "x$RELEASE_VERSION" != "x"; then 13494 PACKAGE="$PACKAGE-$RELEASE_VERSION" 13495 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 13496 { $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5 13497$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 13498 fi 13499 13500 13501ac_config_files="$ac_config_files Makefile src/xvmc/Makefile src/Makefile man/Makefile tools/Makefile" 13502 13503cat >confcache <<\_ACEOF 13504# This file is a shell script that caches the results of configure 13505# tests run on this system so they can be shared between configure 13506# scripts and configure runs, see configure's option --config-cache. 13507# It is not useful on other systems. If it contains results you don't 13508# want to keep, you may remove or edit it. 13509# 13510# config.status only pays attention to the cache file if you give it 13511# the --recheck option to rerun configure. 13512# 13513# `ac_cv_env_foo' variables (set or unset) will be overridden when 13514# loading this file, other *unset* `ac_cv_foo' will be assigned the 13515# following values. 13516 13517_ACEOF 13518 13519# The following way of writing the cache mishandles newlines in values, 13520# but we know of no workaround that is simple, portable, and efficient. 13521# So, we kill variables containing newlines. 13522# Ultrix sh set writes to stderr and can't be redirected directly, 13523# and sets the high bit in the cache file unless we assign to the vars. 13524( 13525 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13526 eval ac_val=\$$ac_var 13527 case $ac_val in #( 13528 *${as_nl}*) 13529 case $ac_var in #( 13530 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13531$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13532 esac 13533 case $ac_var in #( 13534 _ | IFS | as_nl) ;; #( 13535 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13536 *) { eval $ac_var=; unset $ac_var;} ;; 13537 esac ;; 13538 esac 13539 done 13540 13541 (set) 2>&1 | 13542 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13543 *${as_nl}ac_space=\ *) 13544 # `set' does not quote correctly, so add quotes: double-quote 13545 # substitution turns \\\\ into \\, and sed turns \\ into \. 13546 sed -n \ 13547 "s/'/'\\\\''/g; 13548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13549 ;; #( 13550 *) 13551 # `set' quotes correctly as required by POSIX, so do not add quotes. 13552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13553 ;; 13554 esac | 13555 sort 13556) | 13557 sed ' 13558 /^ac_cv_env_/b end 13559 t clear 13560 :clear 13561 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13562 t end 13563 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13564 :end' >>confcache 13565if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13566 if test -w "$cache_file"; then 13567 if test "x$cache_file" != "x/dev/null"; then 13568 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13569$as_echo "$as_me: updating cache $cache_file" >&6;} 13570 if test ! -f "$cache_file" || test -h "$cache_file"; then 13571 cat confcache >"$cache_file" 13572 else 13573 case $cache_file in #( 13574 */* | ?:*) 13575 mv -f confcache "$cache_file"$$ && 13576 mv -f "$cache_file"$$ "$cache_file" ;; #( 13577 *) 13578 mv -f confcache "$cache_file" ;; 13579 esac 13580 fi 13581 fi 13582 else 13583 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13584$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13585 fi 13586fi 13587rm -f confcache 13588 13589test "x$prefix" = xNONE && prefix=$ac_default_prefix 13590# Let make expand exec_prefix. 13591test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13592 13593DEFS=-DHAVE_CONFIG_H 13594 13595ac_libobjs= 13596ac_ltlibobjs= 13597U= 13598for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13599 # 1. Remove the extension, and $U if already installed. 13600 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13601 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13602 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13603 # will be set to the directory where LIBOBJS objects are built. 13604 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13605 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13606done 13607LIBOBJS=$ac_libobjs 13608 13609LTLIBOBJS=$ac_ltlibobjs 13610 13611 13612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13613$as_echo_n "checking that generated files are newer than configure... " >&6; } 13614 if test -n "$am_sleep_pid"; then 13615 # Hide warnings about reused PIDs. 13616 wait $am_sleep_pid 2>/dev/null 13617 fi 13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13619$as_echo "done" >&6; } 13620 if test -n "$EXEEXT"; then 13621 am__EXEEXT_TRUE= 13622 am__EXEEXT_FALSE='#' 13623else 13624 am__EXEEXT_TRUE='#' 13625 am__EXEEXT_FALSE= 13626fi 13627 13628if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13629 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 13630Usually this means the macro was only invoked conditionally." "$LINENO" 5 13631fi 13632if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13633 as_fn_error $? "conditional \"AMDEP\" was never defined. 13634Usually this means the macro was only invoked conditionally." "$LINENO" 5 13635fi 13636if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13637 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13638Usually this means the macro was only invoked conditionally." "$LINENO" 5 13639fi 13640if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 13641 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 13642Usually this means the macro was only invoked conditionally." "$LINENO" 5 13643fi 13644if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 13645 as_fn_error $? "conditional \"DRI\" was never defined. 13646Usually this means the macro was only invoked conditionally." "$LINENO" 5 13647fi 13648if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then 13649 as_fn_error $? "conditional \"XVMC\" was never defined. 13650Usually this means the macro was only invoked conditionally." "$LINENO" 5 13651fi 13652if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then 13653 as_fn_error $? "conditional \"DEBUG\" was never defined. 13654Usually this means the macro was only invoked conditionally." "$LINENO" 5 13655fi 13656if test -z "${XV_DEBUG_TRUE}" && test -z "${XV_DEBUG_FALSE}"; then 13657 as_fn_error $? "conditional \"XV_DEBUG\" was never defined. 13658Usually this means the macro was only invoked conditionally." "$LINENO" 5 13659fi 13660if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then 13661 as_fn_error $? "conditional \"TOOLS\" was never defined. 13662Usually this means the macro was only invoked conditionally." "$LINENO" 5 13663fi 13664 13665: "${CONFIG_STATUS=./config.status}" 13666ac_write_fail=0 13667ac_clean_files_save=$ac_clean_files 13668ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13669{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13670$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13671as_write_fail=0 13672cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13673#! $SHELL 13674# Generated by $as_me. 13675# Run this file to recreate the current configuration. 13676# Compiler output produced by configure, useful for debugging 13677# configure, is in config.log if it exists. 13678 13679debug=false 13680ac_cs_recheck=false 13681ac_cs_silent=false 13682 13683SHELL=\${CONFIG_SHELL-$SHELL} 13684export SHELL 13685_ASEOF 13686cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13687## -------------------- ## 13688## M4sh Initialization. ## 13689## -------------------- ## 13690 13691# Be more Bourne compatible 13692DUALCASE=1; export DUALCASE # for MKS sh 13693if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13694 emulate sh 13695 NULLCMD=: 13696 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13697 # is contrary to our usage. Disable this feature. 13698 alias -g '${1+"$@"}'='"$@"' 13699 setopt NO_GLOB_SUBST 13700else 13701 case `(set -o) 2>/dev/null` in #( 13702 *posix*) : 13703 set -o posix ;; #( 13704 *) : 13705 ;; 13706esac 13707fi 13708 13709 13710as_nl=' 13711' 13712export as_nl 13713# Printing a long string crashes Solaris 7 /usr/bin/printf. 13714as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13715as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13716as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13717# Prefer a ksh shell builtin over an external printf program on Solaris, 13718# but without wasting forks for bash or zsh. 13719if test -z "$BASH_VERSION$ZSH_VERSION" \ 13720 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13721 as_echo='print -r --' 13722 as_echo_n='print -rn --' 13723elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13724 as_echo='printf %s\n' 13725 as_echo_n='printf %s' 13726else 13727 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13728 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13729 as_echo_n='/usr/ucb/echo -n' 13730 else 13731 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13732 as_echo_n_body='eval 13733 arg=$1; 13734 case $arg in #( 13735 *"$as_nl"*) 13736 expr "X$arg" : "X\\(.*\\)$as_nl"; 13737 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13738 esac; 13739 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13740 ' 13741 export as_echo_n_body 13742 as_echo_n='sh -c $as_echo_n_body as_echo' 13743 fi 13744 export as_echo_body 13745 as_echo='sh -c $as_echo_body as_echo' 13746fi 13747 13748# The user is always right. 13749if test "${PATH_SEPARATOR+set}" != set; then 13750 PATH_SEPARATOR=: 13751 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13752 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13753 PATH_SEPARATOR=';' 13754 } 13755fi 13756 13757 13758# IFS 13759# We need space, tab and new line, in precisely that order. Quoting is 13760# there to prevent editors from complaining about space-tab. 13761# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13762# splitting by setting IFS to empty value.) 13763IFS=" "" $as_nl" 13764 13765# Find who we are. Look in the path if we contain no directory separator. 13766as_myself= 13767case $0 in #(( 13768 *[\\/]* ) as_myself=$0 ;; 13769 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13770for as_dir in $PATH 13771do 13772 IFS=$as_save_IFS 13773 test -z "$as_dir" && as_dir=. 13774 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13775 done 13776IFS=$as_save_IFS 13777 13778 ;; 13779esac 13780# We did not find ourselves, most probably we were run as `sh COMMAND' 13781# in which case we are not to be found in the path. 13782if test "x$as_myself" = x; then 13783 as_myself=$0 13784fi 13785if test ! -f "$as_myself"; then 13786 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13787 exit 1 13788fi 13789 13790# Unset variables that we do not need and which cause bugs (e.g. in 13791# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13792# suppresses any "Segmentation fault" message there. '((' could 13793# trigger a bug in pdksh 5.2.14. 13794for as_var in BASH_ENV ENV MAIL MAILPATH 13795do eval test x\${$as_var+set} = xset \ 13796 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13797done 13798PS1='$ ' 13799PS2='> ' 13800PS4='+ ' 13801 13802# NLS nuisances. 13803LC_ALL=C 13804export LC_ALL 13805LANGUAGE=C 13806export LANGUAGE 13807 13808# CDPATH. 13809(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13810 13811 13812# as_fn_error STATUS ERROR [LINENO LOG_FD] 13813# ---------------------------------------- 13814# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13815# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13816# script with STATUS, using 1 if that was 0. 13817as_fn_error () 13818{ 13819 as_status=$1; test $as_status -eq 0 && as_status=1 13820 if test "$4"; then 13821 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13822 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13823 fi 13824 $as_echo "$as_me: error: $2" >&2 13825 as_fn_exit $as_status 13826} # as_fn_error 13827 13828 13829# as_fn_set_status STATUS 13830# ----------------------- 13831# Set $? to STATUS, without forking. 13832as_fn_set_status () 13833{ 13834 return $1 13835} # as_fn_set_status 13836 13837# as_fn_exit STATUS 13838# ----------------- 13839# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13840as_fn_exit () 13841{ 13842 set +e 13843 as_fn_set_status $1 13844 exit $1 13845} # as_fn_exit 13846 13847# as_fn_unset VAR 13848# --------------- 13849# Portably unset VAR. 13850as_fn_unset () 13851{ 13852 { eval $1=; unset $1;} 13853} 13854as_unset=as_fn_unset 13855# as_fn_append VAR VALUE 13856# ---------------------- 13857# Append the text in VALUE to the end of the definition contained in VAR. Take 13858# advantage of any shell optimizations that allow amortized linear growth over 13859# repeated appends, instead of the typical quadratic growth present in naive 13860# implementations. 13861if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13862 eval 'as_fn_append () 13863 { 13864 eval $1+=\$2 13865 }' 13866else 13867 as_fn_append () 13868 { 13869 eval $1=\$$1\$2 13870 } 13871fi # as_fn_append 13872 13873# as_fn_arith ARG... 13874# ------------------ 13875# Perform arithmetic evaluation on the ARGs, and store the result in the 13876# global $as_val. Take advantage of shells that can avoid forks. The arguments 13877# must be portable across $(()) and expr. 13878if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13879 eval 'as_fn_arith () 13880 { 13881 as_val=$(( $* )) 13882 }' 13883else 13884 as_fn_arith () 13885 { 13886 as_val=`expr "$@" || test $? -eq 1` 13887 } 13888fi # as_fn_arith 13889 13890 13891if expr a : '\(a\)' >/dev/null 2>&1 && 13892 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13893 as_expr=expr 13894else 13895 as_expr=false 13896fi 13897 13898if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13899 as_basename=basename 13900else 13901 as_basename=false 13902fi 13903 13904if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13905 as_dirname=dirname 13906else 13907 as_dirname=false 13908fi 13909 13910as_me=`$as_basename -- "$0" || 13911$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13912 X"$0" : 'X\(//\)$' \| \ 13913 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13914$as_echo X/"$0" | 13915 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13916 s//\1/ 13917 q 13918 } 13919 /^X\/\(\/\/\)$/{ 13920 s//\1/ 13921 q 13922 } 13923 /^X\/\(\/\).*/{ 13924 s//\1/ 13925 q 13926 } 13927 s/.*/./; q'` 13928 13929# Avoid depending upon Character Ranges. 13930as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13931as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13932as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13933as_cr_digits='0123456789' 13934as_cr_alnum=$as_cr_Letters$as_cr_digits 13935 13936ECHO_C= ECHO_N= ECHO_T= 13937case `echo -n x` in #((((( 13938-n*) 13939 case `echo 'xy\c'` in 13940 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13941 xy) ECHO_C='\c';; 13942 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13943 ECHO_T=' ';; 13944 esac;; 13945*) 13946 ECHO_N='-n';; 13947esac 13948 13949rm -f conf$$ conf$$.exe conf$$.file 13950if test -d conf$$.dir; then 13951 rm -f conf$$.dir/conf$$.file 13952else 13953 rm -f conf$$.dir 13954 mkdir conf$$.dir 2>/dev/null 13955fi 13956if (echo >conf$$.file) 2>/dev/null; then 13957 if ln -s conf$$.file conf$$ 2>/dev/null; then 13958 as_ln_s='ln -s' 13959 # ... but there are two gotchas: 13960 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13961 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13962 # In both cases, we have to default to `cp -pR'. 13963 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13964 as_ln_s='cp -pR' 13965 elif ln conf$$.file conf$$ 2>/dev/null; then 13966 as_ln_s=ln 13967 else 13968 as_ln_s='cp -pR' 13969 fi 13970else 13971 as_ln_s='cp -pR' 13972fi 13973rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13974rmdir conf$$.dir 2>/dev/null 13975 13976 13977# as_fn_mkdir_p 13978# ------------- 13979# Create "$as_dir" as a directory, including parents if necessary. 13980as_fn_mkdir_p () 13981{ 13982 13983 case $as_dir in #( 13984 -*) as_dir=./$as_dir;; 13985 esac 13986 test -d "$as_dir" || eval $as_mkdir_p || { 13987 as_dirs= 13988 while :; do 13989 case $as_dir in #( 13990 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13991 *) as_qdir=$as_dir;; 13992 esac 13993 as_dirs="'$as_qdir' $as_dirs" 13994 as_dir=`$as_dirname -- "$as_dir" || 13995$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13996 X"$as_dir" : 'X\(//\)[^/]' \| \ 13997 X"$as_dir" : 'X\(//\)$' \| \ 13998 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13999$as_echo X"$as_dir" | 14000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14001 s//\1/ 14002 q 14003 } 14004 /^X\(\/\/\)[^/].*/{ 14005 s//\1/ 14006 q 14007 } 14008 /^X\(\/\/\)$/{ 14009 s//\1/ 14010 q 14011 } 14012 /^X\(\/\).*/{ 14013 s//\1/ 14014 q 14015 } 14016 s/.*/./; q'` 14017 test -d "$as_dir" && break 14018 done 14019 test -z "$as_dirs" || eval "mkdir $as_dirs" 14020 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14021 14022 14023} # as_fn_mkdir_p 14024if mkdir -p . 2>/dev/null; then 14025 as_mkdir_p='mkdir -p "$as_dir"' 14026else 14027 test -d ./-p && rmdir ./-p 14028 as_mkdir_p=false 14029fi 14030 14031 14032# as_fn_executable_p FILE 14033# ----------------------- 14034# Test if FILE is an executable regular file. 14035as_fn_executable_p () 14036{ 14037 test -f "$1" && test -x "$1" 14038} # as_fn_executable_p 14039as_test_x='test -x' 14040as_executable_p=as_fn_executable_p 14041 14042# Sed expression to map a string onto a valid CPP name. 14043as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14044 14045# Sed expression to map a string onto a valid variable name. 14046as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14047 14048 14049exec 6>&1 14050## ----------------------------------- ## 14051## Main body of $CONFIG_STATUS script. ## 14052## ----------------------------------- ## 14053_ASEOF 14054test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14055 14056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14057# Save the log message, to keep $0 and so on meaningful, and to 14058# report actual input values of CONFIG_FILES etc. instead of their 14059# values after options handling. 14060ac_log=" 14061This file was extended by xf86-video-openchrome $as_me 0.4.0, which was 14062generated by GNU Autoconf 2.69. Invocation command line was 14063 14064 CONFIG_FILES = $CONFIG_FILES 14065 CONFIG_HEADERS = $CONFIG_HEADERS 14066 CONFIG_LINKS = $CONFIG_LINKS 14067 CONFIG_COMMANDS = $CONFIG_COMMANDS 14068 $ $0 $@ 14069 14070on `(hostname || uname -n) 2>/dev/null | sed 1q` 14071" 14072 14073_ACEOF 14074 14075case $ac_config_files in *" 14076"*) set x $ac_config_files; shift; ac_config_files=$*;; 14077esac 14078 14079case $ac_config_headers in *" 14080"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14081esac 14082 14083 14084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14085# Files that config.status was made for. 14086config_files="$ac_config_files" 14087config_headers="$ac_config_headers" 14088config_commands="$ac_config_commands" 14089 14090_ACEOF 14091 14092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14093ac_cs_usage="\ 14094\`$as_me' instantiates files and other configuration actions 14095from templates according to the current configuration. Unless the files 14096and actions are specified as TAGs, all are instantiated by default. 14097 14098Usage: $0 [OPTION]... [TAG]... 14099 14100 -h, --help print this help, then exit 14101 -V, --version print version number and configuration settings, then exit 14102 --config print configuration, then exit 14103 -q, --quiet, --silent 14104 do not print progress messages 14105 -d, --debug don't remove temporary files 14106 --recheck update $as_me by reconfiguring in the same conditions 14107 --file=FILE[:TEMPLATE] 14108 instantiate the configuration file FILE 14109 --header=FILE[:TEMPLATE] 14110 instantiate the configuration header FILE 14111 14112Configuration files: 14113$config_files 14114 14115Configuration headers: 14116$config_headers 14117 14118Configuration commands: 14119$config_commands 14120 14121Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome>." 14122 14123_ACEOF 14124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14125ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14126ac_cs_version="\\ 14127xf86-video-openchrome config.status 0.4.0 14128configured by $0, generated by GNU Autoconf 2.69, 14129 with options \\"\$ac_cs_config\\" 14130 14131Copyright (C) 2012 Free Software Foundation, Inc. 14132This config.status script is free software; the Free Software Foundation 14133gives unlimited permission to copy, distribute and modify it." 14134 14135ac_pwd='$ac_pwd' 14136srcdir='$srcdir' 14137INSTALL='$INSTALL' 14138MKDIR_P='$MKDIR_P' 14139AWK='$AWK' 14140test -n "\$AWK" || AWK=awk 14141_ACEOF 14142 14143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14144# The default lists apply if the user does not specify any file. 14145ac_need_defaults=: 14146while test $# != 0 14147do 14148 case $1 in 14149 --*=?*) 14150 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14151 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14152 ac_shift=: 14153 ;; 14154 --*=) 14155 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14156 ac_optarg= 14157 ac_shift=: 14158 ;; 14159 *) 14160 ac_option=$1 14161 ac_optarg=$2 14162 ac_shift=shift 14163 ;; 14164 esac 14165 14166 case $ac_option in 14167 # Handling of the options. 14168 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14169 ac_cs_recheck=: ;; 14170 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14171 $as_echo "$ac_cs_version"; exit ;; 14172 --config | --confi | --conf | --con | --co | --c ) 14173 $as_echo "$ac_cs_config"; exit ;; 14174 --debug | --debu | --deb | --de | --d | -d ) 14175 debug=: ;; 14176 --file | --fil | --fi | --f ) 14177 $ac_shift 14178 case $ac_optarg in 14179 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14180 '') as_fn_error $? "missing file argument" ;; 14181 esac 14182 as_fn_append CONFIG_FILES " '$ac_optarg'" 14183 ac_need_defaults=false;; 14184 --header | --heade | --head | --hea ) 14185 $ac_shift 14186 case $ac_optarg in 14187 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14188 esac 14189 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14190 ac_need_defaults=false;; 14191 --he | --h) 14192 # Conflict between --help and --header 14193 as_fn_error $? "ambiguous option: \`$1' 14194Try \`$0 --help' for more information.";; 14195 --help | --hel | -h ) 14196 $as_echo "$ac_cs_usage"; exit ;; 14197 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14198 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14199 ac_cs_silent=: ;; 14200 14201 # This is an error. 14202 -*) as_fn_error $? "unrecognized option: \`$1' 14203Try \`$0 --help' for more information." ;; 14204 14205 *) as_fn_append ac_config_targets " $1" 14206 ac_need_defaults=false ;; 14207 14208 esac 14209 shift 14210done 14211 14212ac_configure_extra_args= 14213 14214if $ac_cs_silent; then 14215 exec 6>/dev/null 14216 ac_configure_extra_args="$ac_configure_extra_args --silent" 14217fi 14218 14219_ACEOF 14220cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14221if \$ac_cs_recheck; then 14222 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14223 shift 14224 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14225 CONFIG_SHELL='$SHELL' 14226 export CONFIG_SHELL 14227 exec "\$@" 14228fi 14229 14230_ACEOF 14231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14232exec 5>>config.log 14233{ 14234 echo 14235 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14236## Running $as_me. ## 14237_ASBOX 14238 $as_echo "$ac_log" 14239} >&5 14240 14241_ACEOF 14242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14243# 14244# INIT-COMMANDS 14245# 14246AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14247 14248 14249# The HP-UX ksh and POSIX shell print the target directory to stdout 14250# if CDPATH is set. 14251(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14252 14253sed_quote_subst='$sed_quote_subst' 14254double_quote_subst='$double_quote_subst' 14255delay_variable_subst='$delay_variable_subst' 14256enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14257macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14258macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14259enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14260pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14261enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14262shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 14263SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14264ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14265PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14266host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14267host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14268host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14269build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14270build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14271build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14272SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14273Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14274GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14275EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14276FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14277LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14278NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14279LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14280max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14281ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14282exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14283lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14284lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14285lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14286lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14287lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14288reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14289reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14290OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14291deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14292file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14293file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14294want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14295DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14296sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14297AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14298AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14299archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14300STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14301RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14302old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14303old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14304old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14305lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14306CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14307CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14308compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14309GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14310lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14311lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14312lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 14313lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14314lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 14315lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 14316nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14317lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14318lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14319objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14320MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14321lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14322lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14323lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14324lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14325lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14326need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14327MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14328DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14329NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14330LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14331OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14332OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14333libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14334shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14335extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14336archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14337enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14338export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14339whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14340compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14341old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14342old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14343archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14344archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14345module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14346module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14347with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14348allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14349no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14350hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14351hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14352hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14353hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14354hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14355hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14356hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14357inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14358link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14359always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14360export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14361exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14362include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14363prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14364postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14365file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14366variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14367need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14368need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14369version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14370runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14371shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14372shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14373libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14374library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14375soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14376install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14377postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14378postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14379finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14380finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14381hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14382sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14383configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14384configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14385hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14386enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14387enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14388enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14389old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14390striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14391 14392LTCC='$LTCC' 14393LTCFLAGS='$LTCFLAGS' 14394compiler='$compiler_DEFAULT' 14395 14396# A function that is used when there is no print builtin or printf. 14397func_fallback_echo () 14398{ 14399 eval 'cat <<_LTECHO_EOF 14400\$1 14401_LTECHO_EOF' 14402} 14403 14404# Quote evaled strings. 14405for var in SHELL \ 14406ECHO \ 14407PATH_SEPARATOR \ 14408SED \ 14409GREP \ 14410EGREP \ 14411FGREP \ 14412LD \ 14413NM \ 14414LN_S \ 14415lt_SP2NL \ 14416lt_NL2SP \ 14417reload_flag \ 14418OBJDUMP \ 14419deplibs_check_method \ 14420file_magic_cmd \ 14421file_magic_glob \ 14422want_nocaseglob \ 14423DLLTOOL \ 14424sharedlib_from_linklib_cmd \ 14425AR \ 14426AR_FLAGS \ 14427archiver_list_spec \ 14428STRIP \ 14429RANLIB \ 14430CC \ 14431CFLAGS \ 14432compiler \ 14433lt_cv_sys_global_symbol_pipe \ 14434lt_cv_sys_global_symbol_to_cdecl \ 14435lt_cv_sys_global_symbol_to_import \ 14436lt_cv_sys_global_symbol_to_c_name_address \ 14437lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14438lt_cv_nm_interface \ 14439nm_file_list_spec \ 14440lt_cv_truncate_bin \ 14441lt_prog_compiler_no_builtin_flag \ 14442lt_prog_compiler_pic \ 14443lt_prog_compiler_wl \ 14444lt_prog_compiler_static \ 14445lt_cv_prog_compiler_c_o \ 14446need_locks \ 14447MANIFEST_TOOL \ 14448DSYMUTIL \ 14449NMEDIT \ 14450LIPO \ 14451OTOOL \ 14452OTOOL64 \ 14453shrext_cmds \ 14454export_dynamic_flag_spec \ 14455whole_archive_flag_spec \ 14456compiler_needs_object \ 14457with_gnu_ld \ 14458allow_undefined_flag \ 14459no_undefined_flag \ 14460hardcode_libdir_flag_spec \ 14461hardcode_libdir_separator \ 14462exclude_expsyms \ 14463include_expsyms \ 14464file_list_spec \ 14465variables_saved_for_relink \ 14466libname_spec \ 14467library_names_spec \ 14468soname_spec \ 14469install_override_mode \ 14470finish_eval \ 14471old_striplib \ 14472striplib; do 14473 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14474 *[\\\\\\\`\\"\\\$]*) 14475 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14476 ;; 14477 *) 14478 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14479 ;; 14480 esac 14481done 14482 14483# Double-quote double-evaled strings. 14484for var in reload_cmds \ 14485old_postinstall_cmds \ 14486old_postuninstall_cmds \ 14487old_archive_cmds \ 14488extract_expsyms_cmds \ 14489old_archive_from_new_cmds \ 14490old_archive_from_expsyms_cmds \ 14491archive_cmds \ 14492archive_expsym_cmds \ 14493module_cmds \ 14494module_expsym_cmds \ 14495export_symbols_cmds \ 14496prelink_cmds \ 14497postlink_cmds \ 14498postinstall_cmds \ 14499postuninstall_cmds \ 14500finish_cmds \ 14501sys_lib_search_path_spec \ 14502configure_time_dlsearch_path \ 14503configure_time_lt_sys_library_path; do 14504 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14505 *[\\\\\\\`\\"\\\$]*) 14506 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14507 ;; 14508 *) 14509 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14510 ;; 14511 esac 14512done 14513 14514ac_aux_dir='$ac_aux_dir' 14515 14516# See if we are running on zsh, and set the options that allow our 14517# commands through without removal of \ escapes INIT. 14518if test -n "\${ZSH_VERSION+set}"; then 14519 setopt NO_GLOB_SUBST 14520fi 14521 14522 14523 PACKAGE='$PACKAGE' 14524 VERSION='$VERSION' 14525 RM='$RM' 14526 ofile='$ofile' 14527 14528 14529 14530 14531_ACEOF 14532 14533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14534 14535# Handling of arguments. 14536for ac_config_target in $ac_config_targets 14537do 14538 case $ac_config_target in 14539 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14540 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14541 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14542 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14543 "src/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/Makefile" ;; 14544 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14545 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 14546 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 14547 14548 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14549 esac 14550done 14551 14552 14553# If the user did not use the arguments to specify the items to instantiate, 14554# then the envvar interface is used. Set only those that are not. 14555# We use the long form for the default assignment because of an extremely 14556# bizarre bug on SunOS 4.1.3. 14557if $ac_need_defaults; then 14558 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14559 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14560 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14561fi 14562 14563# Have a temporary directory for convenience. Make it in the build tree 14564# simply because there is no reason against having it here, and in addition, 14565# creating and moving files from /tmp can sometimes cause problems. 14566# Hook for its removal unless debugging. 14567# Note that there is a small window in which the directory will not be cleaned: 14568# after its creation but before its name has been assigned to `$tmp'. 14569$debug || 14570{ 14571 tmp= ac_tmp= 14572 trap 'exit_status=$? 14573 : "${ac_tmp:=$tmp}" 14574 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14575' 0 14576 trap 'as_fn_exit 1' 1 2 13 15 14577} 14578# Create a (secure) tmp directory for tmp files. 14579 14580{ 14581 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14582 test -d "$tmp" 14583} || 14584{ 14585 tmp=./conf$$-$RANDOM 14586 (umask 077 && mkdir "$tmp") 14587} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14588ac_tmp=$tmp 14589 14590# Set up the scripts for CONFIG_FILES section. 14591# No need to generate them if there are no CONFIG_FILES. 14592# This happens for instance with `./config.status config.h'. 14593if test -n "$CONFIG_FILES"; then 14594 14595 14596ac_cr=`echo X | tr X '\015'` 14597# On cygwin, bash can eat \r inside `` if the user requested igncr. 14598# But we know of no other shell where ac_cr would be empty at this 14599# point, so we can use a bashism as a fallback. 14600if test "x$ac_cr" = x; then 14601 eval ac_cr=\$\'\\r\' 14602fi 14603ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14604if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14605 ac_cs_awk_cr='\\r' 14606else 14607 ac_cs_awk_cr=$ac_cr 14608fi 14609 14610echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14611_ACEOF 14612 14613 14614{ 14615 echo "cat >conf$$subs.awk <<_ACEOF" && 14616 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14617 echo "_ACEOF" 14618} >conf$$subs.sh || 14619 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14620ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14621ac_delim='%!_!# ' 14622for ac_last_try in false false false false false :; do 14623 . ./conf$$subs.sh || 14624 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14625 14626 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14627 if test $ac_delim_n = $ac_delim_num; then 14628 break 14629 elif $ac_last_try; then 14630 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14631 else 14632 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14633 fi 14634done 14635rm -f conf$$subs.sh 14636 14637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14638cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14639_ACEOF 14640sed -n ' 14641h 14642s/^/S["/; s/!.*/"]=/ 14643p 14644g 14645s/^[^!]*!// 14646:repl 14647t repl 14648s/'"$ac_delim"'$// 14649t delim 14650:nl 14651h 14652s/\(.\{148\}\)..*/\1/ 14653t more1 14654s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14655p 14656n 14657b repl 14658:more1 14659s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14660p 14661g 14662s/.\{148\}// 14663t nl 14664:delim 14665h 14666s/\(.\{148\}\)..*/\1/ 14667t more2 14668s/["\\]/\\&/g; s/^/"/; s/$/"/ 14669p 14670b 14671:more2 14672s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14673p 14674g 14675s/.\{148\}// 14676t delim 14677' <conf$$subs.awk | sed ' 14678/^[^""]/{ 14679 N 14680 s/\n// 14681} 14682' >>$CONFIG_STATUS || ac_write_fail=1 14683rm -f conf$$subs.awk 14684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14685_ACAWK 14686cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14687 for (key in S) S_is_set[key] = 1 14688 FS = "" 14689 14690} 14691{ 14692 line = $ 0 14693 nfields = split(line, field, "@") 14694 substed = 0 14695 len = length(field[1]) 14696 for (i = 2; i < nfields; i++) { 14697 key = field[i] 14698 keylen = length(key) 14699 if (S_is_set[key]) { 14700 value = S[key] 14701 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14702 len += length(value) + length(field[++i]) 14703 substed = 1 14704 } else 14705 len += 1 + keylen 14706 } 14707 14708 print line 14709} 14710 14711_ACAWK 14712_ACEOF 14713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14714if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14715 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14716else 14717 cat 14718fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14719 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14720_ACEOF 14721 14722# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14723# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14724# trailing colons and then remove the whole line if VPATH becomes empty 14725# (actually we leave an empty line to preserve line numbers). 14726if test "x$srcdir" = x.; then 14727 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14728h 14729s/// 14730s/^/:/ 14731s/[ ]*$/:/ 14732s/:\$(srcdir):/:/g 14733s/:\${srcdir}:/:/g 14734s/:@srcdir@:/:/g 14735s/^:*// 14736s/:*$// 14737x 14738s/\(=[ ]*\).*/\1/ 14739G 14740s/\n// 14741s/^[^=]*=[ ]*$// 14742}' 14743fi 14744 14745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14746fi # test -n "$CONFIG_FILES" 14747 14748# Set up the scripts for CONFIG_HEADERS section. 14749# No need to generate them if there are no CONFIG_HEADERS. 14750# This happens for instance with `./config.status Makefile'. 14751if test -n "$CONFIG_HEADERS"; then 14752cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14753BEGIN { 14754_ACEOF 14755 14756# Transform confdefs.h into an awk script `defines.awk', embedded as 14757# here-document in config.status, that substitutes the proper values into 14758# config.h.in to produce config.h. 14759 14760# Create a delimiter string that does not exist in confdefs.h, to ease 14761# handling of long lines. 14762ac_delim='%!_!# ' 14763for ac_last_try in false false :; do 14764 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14765 if test -z "$ac_tt"; then 14766 break 14767 elif $ac_last_try; then 14768 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14769 else 14770 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14771 fi 14772done 14773 14774# For the awk script, D is an array of macro values keyed by name, 14775# likewise P contains macro parameters if any. Preserve backslash 14776# newline sequences. 14777 14778ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14779sed -n ' 14780s/.\{148\}/&'"$ac_delim"'/g 14781t rset 14782:rset 14783s/^[ ]*#[ ]*define[ ][ ]*/ / 14784t def 14785d 14786:def 14787s/\\$// 14788t bsnl 14789s/["\\]/\\&/g 14790s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14791D["\1"]=" \3"/p 14792s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14793d 14794:bsnl 14795s/["\\]/\\&/g 14796s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14797D["\1"]=" \3\\\\\\n"\\/p 14798t cont 14799s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14800t cont 14801d 14802:cont 14803n 14804s/.\{148\}/&'"$ac_delim"'/g 14805t clear 14806:clear 14807s/\\$// 14808t bsnlc 14809s/["\\]/\\&/g; s/^/"/; s/$/"/p 14810d 14811:bsnlc 14812s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14813b cont 14814' <confdefs.h | sed ' 14815s/'"$ac_delim"'/"\\\ 14816"/g' >>$CONFIG_STATUS || ac_write_fail=1 14817 14818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14819 for (key in D) D_is_set[key] = 1 14820 FS = "" 14821} 14822/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14823 line = \$ 0 14824 split(line, arg, " ") 14825 if (arg[1] == "#") { 14826 defundef = arg[2] 14827 mac1 = arg[3] 14828 } else { 14829 defundef = substr(arg[1], 2) 14830 mac1 = arg[2] 14831 } 14832 split(mac1, mac2, "(") #) 14833 macro = mac2[1] 14834 prefix = substr(line, 1, index(line, defundef) - 1) 14835 if (D_is_set[macro]) { 14836 # Preserve the white space surrounding the "#". 14837 print prefix "define", macro P[macro] D[macro] 14838 next 14839 } else { 14840 # Replace #undef with comments. This is necessary, for example, 14841 # in the case of _POSIX_SOURCE, which is predefined and required 14842 # on some systems where configure will not decide to define it. 14843 if (defundef == "undef") { 14844 print "/*", prefix defundef, macro, "*/" 14845 next 14846 } 14847 } 14848} 14849{ print } 14850_ACAWK 14851_ACEOF 14852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14853 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14854fi # test -n "$CONFIG_HEADERS" 14855 14856 14857eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14858shift 14859for ac_tag 14860do 14861 case $ac_tag in 14862 :[FHLC]) ac_mode=$ac_tag; continue;; 14863 esac 14864 case $ac_mode$ac_tag in 14865 :[FHL]*:*);; 14866 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14867 :[FH]-) ac_tag=-:-;; 14868 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14869 esac 14870 ac_save_IFS=$IFS 14871 IFS=: 14872 set x $ac_tag 14873 IFS=$ac_save_IFS 14874 shift 14875 ac_file=$1 14876 shift 14877 14878 case $ac_mode in 14879 :L) ac_source=$1;; 14880 :[FH]) 14881 ac_file_inputs= 14882 for ac_f 14883 do 14884 case $ac_f in 14885 -) ac_f="$ac_tmp/stdin";; 14886 *) # Look for the file first in the build tree, then in the source tree 14887 # (if the path is not absolute). The absolute path cannot be DOS-style, 14888 # because $ac_f cannot contain `:'. 14889 test -f "$ac_f" || 14890 case $ac_f in 14891 [\\/$]*) false;; 14892 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14893 esac || 14894 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14895 esac 14896 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14897 as_fn_append ac_file_inputs " '$ac_f'" 14898 done 14899 14900 # Let's still pretend it is `configure' which instantiates (i.e., don't 14901 # use $as_me), people would be surprised to read: 14902 # /* config.h. Generated by config.status. */ 14903 configure_input='Generated from '` 14904 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14905 `' by configure.' 14906 if test x"$ac_file" != x-; then 14907 configure_input="$ac_file. $configure_input" 14908 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14909$as_echo "$as_me: creating $ac_file" >&6;} 14910 fi 14911 # Neutralize special characters interpreted by sed in replacement strings. 14912 case $configure_input in #( 14913 *\&* | *\|* | *\\* ) 14914 ac_sed_conf_input=`$as_echo "$configure_input" | 14915 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14916 *) ac_sed_conf_input=$configure_input;; 14917 esac 14918 14919 case $ac_tag in 14920 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14921 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14922 esac 14923 ;; 14924 esac 14925 14926 ac_dir=`$as_dirname -- "$ac_file" || 14927$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14928 X"$ac_file" : 'X\(//\)[^/]' \| \ 14929 X"$ac_file" : 'X\(//\)$' \| \ 14930 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14931$as_echo X"$ac_file" | 14932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14933 s//\1/ 14934 q 14935 } 14936 /^X\(\/\/\)[^/].*/{ 14937 s//\1/ 14938 q 14939 } 14940 /^X\(\/\/\)$/{ 14941 s//\1/ 14942 q 14943 } 14944 /^X\(\/\).*/{ 14945 s//\1/ 14946 q 14947 } 14948 s/.*/./; q'` 14949 as_dir="$ac_dir"; as_fn_mkdir_p 14950 ac_builddir=. 14951 14952case "$ac_dir" in 14953.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14954*) 14955 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14956 # A ".." for each directory in $ac_dir_suffix. 14957 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14958 case $ac_top_builddir_sub in 14959 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14960 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14961 esac ;; 14962esac 14963ac_abs_top_builddir=$ac_pwd 14964ac_abs_builddir=$ac_pwd$ac_dir_suffix 14965# for backward compatibility: 14966ac_top_builddir=$ac_top_build_prefix 14967 14968case $srcdir in 14969 .) # We are building in place. 14970 ac_srcdir=. 14971 ac_top_srcdir=$ac_top_builddir_sub 14972 ac_abs_top_srcdir=$ac_pwd ;; 14973 [\\/]* | ?:[\\/]* ) # Absolute name. 14974 ac_srcdir=$srcdir$ac_dir_suffix; 14975 ac_top_srcdir=$srcdir 14976 ac_abs_top_srcdir=$srcdir ;; 14977 *) # Relative name. 14978 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14979 ac_top_srcdir=$ac_top_build_prefix$srcdir 14980 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14981esac 14982ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14983 14984 14985 case $ac_mode in 14986 :F) 14987 # 14988 # CONFIG_FILE 14989 # 14990 14991 case $INSTALL in 14992 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14993 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14994 esac 14995 ac_MKDIR_P=$MKDIR_P 14996 case $MKDIR_P in 14997 [\\/$]* | ?:[\\/]* ) ;; 14998 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14999 esac 15000_ACEOF 15001 15002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15003# If the template does not know about datarootdir, expand it. 15004# FIXME: This hack should be removed a few years after 2.60. 15005ac_datarootdir_hack=; ac_datarootdir_seen= 15006ac_sed_dataroot=' 15007/datarootdir/ { 15008 p 15009 q 15010} 15011/@datadir@/p 15012/@docdir@/p 15013/@infodir@/p 15014/@localedir@/p 15015/@mandir@/p' 15016case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15017*datarootdir*) ac_datarootdir_seen=yes;; 15018*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15020$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15021_ACEOF 15022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15023 ac_datarootdir_hack=' 15024 s&@datadir@&$datadir&g 15025 s&@docdir@&$docdir&g 15026 s&@infodir@&$infodir&g 15027 s&@localedir@&$localedir&g 15028 s&@mandir@&$mandir&g 15029 s&\\\${datarootdir}&$datarootdir&g' ;; 15030esac 15031_ACEOF 15032 15033# Neutralize VPATH when `$srcdir' = `.'. 15034# Shell code in configure.ac might set extrasub. 15035# FIXME: do we really want to maintain this feature? 15036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15037ac_sed_extra="$ac_vpsub 15038$extrasub 15039_ACEOF 15040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15041:t 15042/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15043s|@configure_input@|$ac_sed_conf_input|;t t 15044s&@top_builddir@&$ac_top_builddir_sub&;t t 15045s&@top_build_prefix@&$ac_top_build_prefix&;t t 15046s&@srcdir@&$ac_srcdir&;t t 15047s&@abs_srcdir@&$ac_abs_srcdir&;t t 15048s&@top_srcdir@&$ac_top_srcdir&;t t 15049s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15050s&@builddir@&$ac_builddir&;t t 15051s&@abs_builddir@&$ac_abs_builddir&;t t 15052s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15053s&@INSTALL@&$ac_INSTALL&;t t 15054s&@MKDIR_P@&$ac_MKDIR_P&;t t 15055$ac_datarootdir_hack 15056" 15057eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15058 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15059 15060test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15061 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15062 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15063 "$ac_tmp/out"`; test -z "$ac_out"; } && 15064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15065which seems to be undefined. Please make sure it is defined" >&5 15066$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15067which seems to be undefined. Please make sure it is defined" >&2;} 15068 15069 rm -f "$ac_tmp/stdin" 15070 case $ac_file in 15071 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15072 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15073 esac \ 15074 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15075 ;; 15076 :H) 15077 # 15078 # CONFIG_HEADER 15079 # 15080 if test x"$ac_file" != x-; then 15081 { 15082 $as_echo "/* $configure_input */" \ 15083 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15084 } >"$ac_tmp/config.h" \ 15085 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15086 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15087 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15088$as_echo "$as_me: $ac_file is unchanged" >&6;} 15089 else 15090 rm -f "$ac_file" 15091 mv "$ac_tmp/config.h" "$ac_file" \ 15092 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15093 fi 15094 else 15095 $as_echo "/* $configure_input */" \ 15096 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15097 || as_fn_error $? "could not create -" "$LINENO" 5 15098 fi 15099# Compute "$ac_file"'s index in $config_headers. 15100_am_arg="$ac_file" 15101_am_stamp_count=1 15102for _am_header in $config_headers :; do 15103 case $_am_header in 15104 $_am_arg | $_am_arg:* ) 15105 break ;; 15106 * ) 15107 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15108 esac 15109done 15110echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15111$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15112 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15113 X"$_am_arg" : 'X\(//\)$' \| \ 15114 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15115$as_echo X"$_am_arg" | 15116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15117 s//\1/ 15118 q 15119 } 15120 /^X\(\/\/\)[^/].*/{ 15121 s//\1/ 15122 q 15123 } 15124 /^X\(\/\/\)$/{ 15125 s//\1/ 15126 q 15127 } 15128 /^X\(\/\).*/{ 15129 s//\1/ 15130 q 15131 } 15132 s/.*/./; q'`/stamp-h$_am_stamp_count 15133 ;; 15134 15135 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15136$as_echo "$as_me: executing $ac_file commands" >&6;} 15137 ;; 15138 esac 15139 15140 15141 case $ac_file$ac_mode in 15142 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15143 # Older Autoconf quotes --file arguments for eval, but not when files 15144 # are listed without --file. Let's play safe and only enable the eval 15145 # if we detect the quoting. 15146 case $CONFIG_FILES in 15147 *\'*) eval set x "$CONFIG_FILES" ;; 15148 *) set x $CONFIG_FILES ;; 15149 esac 15150 shift 15151 for mf 15152 do 15153 # Strip MF so we end up with the name of the file. 15154 mf=`echo "$mf" | sed -e 's/:.*$//'` 15155 # Check whether this is an Automake generated Makefile or not. 15156 # We used to match only the files named 'Makefile.in', but 15157 # some people rename them; so instead we look at the file content. 15158 # Grep'ing the first line is not enough: some people post-process 15159 # each Makefile.in and add a new line on top of each file to say so. 15160 # Grep'ing the whole file is not good either: AIX grep has a line 15161 # limit of 2048, but all sed's we know have understand at least 4000. 15162 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15163 dirpart=`$as_dirname -- "$mf" || 15164$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15165 X"$mf" : 'X\(//\)[^/]' \| \ 15166 X"$mf" : 'X\(//\)$' \| \ 15167 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15168$as_echo X"$mf" | 15169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15170 s//\1/ 15171 q 15172 } 15173 /^X\(\/\/\)[^/].*/{ 15174 s//\1/ 15175 q 15176 } 15177 /^X\(\/\/\)$/{ 15178 s//\1/ 15179 q 15180 } 15181 /^X\(\/\).*/{ 15182 s//\1/ 15183 q 15184 } 15185 s/.*/./; q'` 15186 else 15187 continue 15188 fi 15189 # Extract the definition of DEPDIR, am__include, and am__quote 15190 # from the Makefile without running 'make'. 15191 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15192 test -z "$DEPDIR" && continue 15193 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15194 test -z "$am__include" && continue 15195 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15196 # Find all dependency output files, they are included files with 15197 # $(DEPDIR) in their names. We invoke sed twice because it is the 15198 # simplest approach to changing $(DEPDIR) to its actual value in the 15199 # expansion. 15200 for file in `sed -n " 15201 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15202 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 15203 # Make sure the directory exists. 15204 test -f "$dirpart/$file" && continue 15205 fdir=`$as_dirname -- "$file" || 15206$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15207 X"$file" : 'X\(//\)[^/]' \| \ 15208 X"$file" : 'X\(//\)$' \| \ 15209 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15210$as_echo X"$file" | 15211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15212 s//\1/ 15213 q 15214 } 15215 /^X\(\/\/\)[^/].*/{ 15216 s//\1/ 15217 q 15218 } 15219 /^X\(\/\/\)$/{ 15220 s//\1/ 15221 q 15222 } 15223 /^X\(\/\).*/{ 15224 s//\1/ 15225 q 15226 } 15227 s/.*/./; q'` 15228 as_dir=$dirpart/$fdir; as_fn_mkdir_p 15229 # echo "creating $dirpart/$file" 15230 echo '# dummy' > "$dirpart/$file" 15231 done 15232 done 15233} 15234 ;; 15235 "libtool":C) 15236 15237 # See if we are running on zsh, and set the options that allow our 15238 # commands through without removal of \ escapes. 15239 if test -n "${ZSH_VERSION+set}"; then 15240 setopt NO_GLOB_SUBST 15241 fi 15242 15243 cfgfile=${ofile}T 15244 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15245 $RM "$cfgfile" 15246 15247 cat <<_LT_EOF >> "$cfgfile" 15248#! $SHELL 15249# Generated automatically by $as_me ($PACKAGE) $VERSION 15250# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15251# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15252 15253# Provide generalized library-building support services. 15254# Written by Gordon Matzigkeit, 1996 15255 15256# Copyright (C) 2014 Free Software Foundation, Inc. 15257# This is free software; see the source for copying conditions. There is NO 15258# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15259 15260# GNU Libtool is free software; you can redistribute it and/or modify 15261# it under the terms of the GNU General Public License as published by 15262# the Free Software Foundation; either version 2 of of the License, or 15263# (at your option) any later version. 15264# 15265# As a special exception to the GNU General Public License, if you 15266# distribute this file as part of a program or library that is built 15267# using GNU Libtool, you may include this file under the same 15268# distribution terms that you use for the rest of that program. 15269# 15270# GNU Libtool is distributed in the hope that it will be useful, but 15271# WITHOUT ANY WARRANTY; without even the implied warranty of 15272# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15273# GNU General Public License for more details. 15274# 15275# You should have received a copy of the GNU General Public License 15276# along with this program. If not, see <http://www.gnu.org/licenses/>. 15277 15278 15279# The names of the tagged configurations supported by this script. 15280available_tags='' 15281 15282# Configured defaults for sys_lib_dlsearch_path munging. 15283: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15284 15285# ### BEGIN LIBTOOL CONFIG 15286 15287# Whether or not to build static libraries. 15288build_old_libs=$enable_static 15289 15290# Which release of libtool.m4 was used? 15291macro_version=$macro_version 15292macro_revision=$macro_revision 15293 15294# Whether or not to build shared libraries. 15295build_libtool_libs=$enable_shared 15296 15297# What type of objects to build. 15298pic_mode=$pic_mode 15299 15300# Whether or not to optimize for fast installation. 15301fast_install=$enable_fast_install 15302 15303# Shared archive member basename,for filename based shared library versioning on AIX. 15304shared_archive_member_spec=$shared_archive_member_spec 15305 15306# Shell to use when invoking shell scripts. 15307SHELL=$lt_SHELL 15308 15309# An echo program that protects backslashes. 15310ECHO=$lt_ECHO 15311 15312# The PATH separator for the build system. 15313PATH_SEPARATOR=$lt_PATH_SEPARATOR 15314 15315# The host system. 15316host_alias=$host_alias 15317host=$host 15318host_os=$host_os 15319 15320# The build system. 15321build_alias=$build_alias 15322build=$build 15323build_os=$build_os 15324 15325# A sed program that does not truncate output. 15326SED=$lt_SED 15327 15328# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15329Xsed="\$SED -e 1s/^X//" 15330 15331# A grep program that handles long lines. 15332GREP=$lt_GREP 15333 15334# An ERE matcher. 15335EGREP=$lt_EGREP 15336 15337# A literal string matcher. 15338FGREP=$lt_FGREP 15339 15340# A BSD- or MS-compatible name lister. 15341NM=$lt_NM 15342 15343# Whether we need soft or hard links. 15344LN_S=$lt_LN_S 15345 15346# What is the maximum length of a command? 15347max_cmd_len=$max_cmd_len 15348 15349# Object file suffix (normally "o"). 15350objext=$ac_objext 15351 15352# Executable file suffix (normally ""). 15353exeext=$exeext 15354 15355# whether the shell understands "unset". 15356lt_unset=$lt_unset 15357 15358# turn spaces into newlines. 15359SP2NL=$lt_lt_SP2NL 15360 15361# turn newlines into spaces. 15362NL2SP=$lt_lt_NL2SP 15363 15364# convert \$build file names to \$host format. 15365to_host_file_cmd=$lt_cv_to_host_file_cmd 15366 15367# convert \$build files to toolchain format. 15368to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15369 15370# An object symbol dumper. 15371OBJDUMP=$lt_OBJDUMP 15372 15373# Method to check whether dependent libraries are shared objects. 15374deplibs_check_method=$lt_deplibs_check_method 15375 15376# Command to use when deplibs_check_method = "file_magic". 15377file_magic_cmd=$lt_file_magic_cmd 15378 15379# How to find potential files when deplibs_check_method = "file_magic". 15380file_magic_glob=$lt_file_magic_glob 15381 15382# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15383want_nocaseglob=$lt_want_nocaseglob 15384 15385# DLL creation program. 15386DLLTOOL=$lt_DLLTOOL 15387 15388# Command to associate shared and link libraries. 15389sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15390 15391# The archiver. 15392AR=$lt_AR 15393 15394# Flags to create an archive. 15395AR_FLAGS=$lt_AR_FLAGS 15396 15397# How to feed a file listing to the archiver. 15398archiver_list_spec=$lt_archiver_list_spec 15399 15400# A symbol stripping program. 15401STRIP=$lt_STRIP 15402 15403# Commands used to install an old-style archive. 15404RANLIB=$lt_RANLIB 15405old_postinstall_cmds=$lt_old_postinstall_cmds 15406old_postuninstall_cmds=$lt_old_postuninstall_cmds 15407 15408# Whether to use a lock for old archive extraction. 15409lock_old_archive_extraction=$lock_old_archive_extraction 15410 15411# A C compiler. 15412LTCC=$lt_CC 15413 15414# LTCC compiler flags. 15415LTCFLAGS=$lt_CFLAGS 15416 15417# Take the output of nm and produce a listing of raw symbols and C names. 15418global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15419 15420# Transform the output of nm in a proper C declaration. 15421global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15422 15423# Transform the output of nm into a list of symbols to manually relocate. 15424global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 15425 15426# Transform the output of nm in a C name address pair. 15427global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15428 15429# Transform the output of nm in a C name address pair when lib prefix is needed. 15430global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15431 15432# The name lister interface. 15433nm_interface=$lt_lt_cv_nm_interface 15434 15435# Specify filename containing input files for \$NM. 15436nm_file_list_spec=$lt_nm_file_list_spec 15437 15438# The root where to search for dependent libraries,and where our libraries should be installed. 15439lt_sysroot=$lt_sysroot 15440 15441# Command to truncate a binary pipe. 15442lt_truncate_bin=$lt_lt_cv_truncate_bin 15443 15444# The name of the directory that contains temporary libtool files. 15445objdir=$objdir 15446 15447# Used to examine libraries when file_magic_cmd begins with "file". 15448MAGIC_CMD=$MAGIC_CMD 15449 15450# Must we lock files when doing compilation? 15451need_locks=$lt_need_locks 15452 15453# Manifest tool. 15454MANIFEST_TOOL=$lt_MANIFEST_TOOL 15455 15456# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15457DSYMUTIL=$lt_DSYMUTIL 15458 15459# Tool to change global to local symbols on Mac OS X. 15460NMEDIT=$lt_NMEDIT 15461 15462# Tool to manipulate fat objects and archives on Mac OS X. 15463LIPO=$lt_LIPO 15464 15465# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15466OTOOL=$lt_OTOOL 15467 15468# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15469OTOOL64=$lt_OTOOL64 15470 15471# Old archive suffix (normally "a"). 15472libext=$libext 15473 15474# Shared library suffix (normally ".so"). 15475shrext_cmds=$lt_shrext_cmds 15476 15477# The commands to extract the exported symbol list from a shared archive. 15478extract_expsyms_cmds=$lt_extract_expsyms_cmds 15479 15480# Variables whose values should be saved in libtool wrapper scripts and 15481# restored at link time. 15482variables_saved_for_relink=$lt_variables_saved_for_relink 15483 15484# Do we need the "lib" prefix for modules? 15485need_lib_prefix=$need_lib_prefix 15486 15487# Do we need a version for libraries? 15488need_version=$need_version 15489 15490# Library versioning type. 15491version_type=$version_type 15492 15493# Shared library runtime path variable. 15494runpath_var=$runpath_var 15495 15496# Shared library path variable. 15497shlibpath_var=$shlibpath_var 15498 15499# Is shlibpath searched before the hard-coded library search path? 15500shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15501 15502# Format of library name prefix. 15503libname_spec=$lt_libname_spec 15504 15505# List of archive names. First name is the real one, the rest are links. 15506# The last name is the one that the linker finds with -lNAME 15507library_names_spec=$lt_library_names_spec 15508 15509# The coded name of the library, if different from the real name. 15510soname_spec=$lt_soname_spec 15511 15512# Permission mode override for installation of shared libraries. 15513install_override_mode=$lt_install_override_mode 15514 15515# Command to use after installation of a shared archive. 15516postinstall_cmds=$lt_postinstall_cmds 15517 15518# Command to use after uninstallation of a shared archive. 15519postuninstall_cmds=$lt_postuninstall_cmds 15520 15521# Commands used to finish a libtool library installation in a directory. 15522finish_cmds=$lt_finish_cmds 15523 15524# As "finish_cmds", except a single script fragment to be evaled but 15525# not shown. 15526finish_eval=$lt_finish_eval 15527 15528# Whether we should hardcode library paths into libraries. 15529hardcode_into_libs=$hardcode_into_libs 15530 15531# Compile-time system search path for libraries. 15532sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15533 15534# Detected run-time system search path for libraries. 15535sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15536 15537# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15538configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15539 15540# Whether dlopen is supported. 15541dlopen_support=$enable_dlopen 15542 15543# Whether dlopen of programs is supported. 15544dlopen_self=$enable_dlopen_self 15545 15546# Whether dlopen of statically linked programs is supported. 15547dlopen_self_static=$enable_dlopen_self_static 15548 15549# Commands to strip libraries. 15550old_striplib=$lt_old_striplib 15551striplib=$lt_striplib 15552 15553 15554# The linker used to build libraries. 15555LD=$lt_LD 15556 15557# How to create reloadable object files. 15558reload_flag=$lt_reload_flag 15559reload_cmds=$lt_reload_cmds 15560 15561# Commands used to build an old-style archive. 15562old_archive_cmds=$lt_old_archive_cmds 15563 15564# A language specific compiler. 15565CC=$lt_compiler 15566 15567# Is the compiler the GNU compiler? 15568with_gcc=$GCC 15569 15570# Compiler flag to turn off builtin functions. 15571no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15572 15573# Additional compiler flags for building library objects. 15574pic_flag=$lt_lt_prog_compiler_pic 15575 15576# How to pass a linker flag through the compiler. 15577wl=$lt_lt_prog_compiler_wl 15578 15579# Compiler flag to prevent dynamic linking. 15580link_static_flag=$lt_lt_prog_compiler_static 15581 15582# Does compiler simultaneously support -c and -o options? 15583compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15584 15585# Whether or not to add -lc for building shared libraries. 15586build_libtool_need_lc=$archive_cmds_need_lc 15587 15588# Whether or not to disallow shared libs when runtime libs are static. 15589allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15590 15591# Compiler flag to allow reflexive dlopens. 15592export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15593 15594# Compiler flag to generate shared objects directly from archives. 15595whole_archive_flag_spec=$lt_whole_archive_flag_spec 15596 15597# Whether the compiler copes with passing no objects directly. 15598compiler_needs_object=$lt_compiler_needs_object 15599 15600# Create an old-style archive from a shared archive. 15601old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15602 15603# Create a temporary old-style archive to link instead of a shared archive. 15604old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15605 15606# Commands used to build a shared archive. 15607archive_cmds=$lt_archive_cmds 15608archive_expsym_cmds=$lt_archive_expsym_cmds 15609 15610# Commands used to build a loadable module if different from building 15611# a shared archive. 15612module_cmds=$lt_module_cmds 15613module_expsym_cmds=$lt_module_expsym_cmds 15614 15615# Whether we are building with GNU ld or not. 15616with_gnu_ld=$lt_with_gnu_ld 15617 15618# Flag that allows shared libraries with undefined symbols to be built. 15619allow_undefined_flag=$lt_allow_undefined_flag 15620 15621# Flag that enforces no undefined symbols. 15622no_undefined_flag=$lt_no_undefined_flag 15623 15624# Flag to hardcode \$libdir into a binary during linking. 15625# This must work even if \$libdir does not exist 15626hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15627 15628# Whether we need a single "-rpath" flag with a separated argument. 15629hardcode_libdir_separator=$lt_hardcode_libdir_separator 15630 15631# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15632# DIR into the resulting binary. 15633hardcode_direct=$hardcode_direct 15634 15635# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15636# DIR into the resulting binary and the resulting library dependency is 15637# "absolute",i.e impossible to change by setting \$shlibpath_var if the 15638# library is relocated. 15639hardcode_direct_absolute=$hardcode_direct_absolute 15640 15641# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15642# into the resulting binary. 15643hardcode_minus_L=$hardcode_minus_L 15644 15645# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15646# into the resulting binary. 15647hardcode_shlibpath_var=$hardcode_shlibpath_var 15648 15649# Set to "yes" if building a shared library automatically hardcodes DIR 15650# into the library and all subsequent libraries and executables linked 15651# against it. 15652hardcode_automatic=$hardcode_automatic 15653 15654# Set to yes if linker adds runtime paths of dependent libraries 15655# to runtime path list. 15656inherit_rpath=$inherit_rpath 15657 15658# Whether libtool must link a program against all its dependency libraries. 15659link_all_deplibs=$link_all_deplibs 15660 15661# Set to "yes" if exported symbols are required. 15662always_export_symbols=$always_export_symbols 15663 15664# The commands to list exported symbols. 15665export_symbols_cmds=$lt_export_symbols_cmds 15666 15667# Symbols that should not be listed in the preloaded symbols. 15668exclude_expsyms=$lt_exclude_expsyms 15669 15670# Symbols that must always be exported. 15671include_expsyms=$lt_include_expsyms 15672 15673# Commands necessary for linking programs (against libraries) with templates. 15674prelink_cmds=$lt_prelink_cmds 15675 15676# Commands necessary for finishing linking programs. 15677postlink_cmds=$lt_postlink_cmds 15678 15679# Specify filename containing input files. 15680file_list_spec=$lt_file_list_spec 15681 15682# How to hardcode a shared library path into an executable. 15683hardcode_action=$hardcode_action 15684 15685# ### END LIBTOOL CONFIG 15686 15687_LT_EOF 15688 15689 cat <<'_LT_EOF' >> "$cfgfile" 15690 15691# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 15692 15693# func_munge_path_list VARIABLE PATH 15694# ----------------------------------- 15695# VARIABLE is name of variable containing _space_ separated list of 15696# directories to be munged by the contents of PATH, which is string 15697# having a format: 15698# "DIR[:DIR]:" 15699# string "DIR[ DIR]" will be prepended to VARIABLE 15700# ":DIR[:DIR]" 15701# string "DIR[ DIR]" will be appended to VARIABLE 15702# "DIRP[:DIRP]::[DIRA:]DIRA" 15703# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15704# "DIRA[ DIRA]" will be appended to VARIABLE 15705# "DIR[:DIR]" 15706# VARIABLE will be replaced by "DIR[ DIR]" 15707func_munge_path_list () 15708{ 15709 case x$2 in 15710 x) 15711 ;; 15712 *:) 15713 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15714 ;; 15715 x:*) 15716 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15717 ;; 15718 *::*) 15719 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15720 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15721 ;; 15722 *) 15723 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15724 ;; 15725 esac 15726} 15727 15728 15729# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15730func_cc_basename () 15731{ 15732 for cc_temp in $*""; do 15733 case $cc_temp in 15734 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15735 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15736 \-*) ;; 15737 *) break;; 15738 esac 15739 done 15740 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15741} 15742 15743 15744# ### END FUNCTIONS SHARED WITH CONFIGURE 15745 15746_LT_EOF 15747 15748 case $host_os in 15749 aix3*) 15750 cat <<\_LT_EOF >> "$cfgfile" 15751# AIX sometimes has problems with the GCC collect2 program. For some 15752# reason, if we set the COLLECT_NAMES environment variable, the problems 15753# vanish in a puff of smoke. 15754if test set != "${COLLECT_NAMES+set}"; then 15755 COLLECT_NAMES= 15756 export COLLECT_NAMES 15757fi 15758_LT_EOF 15759 ;; 15760 esac 15761 15762 15763ltmain=$ac_aux_dir/ltmain.sh 15764 15765 15766 # We use sed instead of cat because bash on DJGPP gets confused if 15767 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15768 # text mode, it properly converts lines to CR/LF. This bash problem 15769 # is reportedly fixed, but why not run on old versions too? 15770 sed '$q' "$ltmain" >> "$cfgfile" \ 15771 || (rm -f "$cfgfile"; exit 1) 15772 15773 mv -f "$cfgfile" "$ofile" || 15774 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15775 chmod +x "$ofile" 15776 15777 ;; 15778 15779 esac 15780done # for ac_tag 15781 15782 15783as_fn_exit 0 15784_ACEOF 15785ac_clean_files=$ac_clean_files_save 15786 15787test $ac_write_fail = 0 || 15788 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15789 15790 15791# configure is writing to config.log, and then calls config.status. 15792# config.status does its own redirection, appending to config.log. 15793# Unfortunately, on DOS this fails, as config.log is still kept open 15794# by configure, so config.status won't be able to write to it; its 15795# output is simply discarded. So we exec the FD to /dev/null, 15796# effectively closing config.log, so it can be properly (re)opened and 15797# appended to by config.status. When coming back to configure, we 15798# need to make the FD available again. 15799if test "$no_create" != yes; then 15800 ac_cs_success=: 15801 ac_config_status_args= 15802 test "$silent" = yes && 15803 ac_config_status_args="$ac_config_status_args --quiet" 15804 exec 5>/dev/null 15805 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15806 exec 5>>config.log 15807 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15808 # would make configure fail if this is the last instruction. 15809 $ac_cs_success || as_fn_exit 1 15810fi 15811if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15813$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15814fi 15815 15816