configure revision 9ace9065
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for xorg-server 1.10.3. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1 178 179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 183 PATH=/empty FPATH=/empty; export PATH FPATH 184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 251$0: about your system, including any error possibly output 252$0: before this message. Then install a modern shell, or 253$0: manually run the script under such a shell if you do 254$0: have one." 255 fi 256 exit 1 257fi 258fi 259fi 260SHELL=${CONFIG_SHELL-/bin/sh} 261export SHELL 262# Unset more variables known to interfere with behavior of common tools. 263CLICOLOR_FORCE= GREP_OPTIONS= 264unset CLICOLOR_FORCE GREP_OPTIONS 265 266## --------------------- ## 267## M4sh Shell Functions. ## 268## --------------------- ## 269# as_fn_unset VAR 270# --------------- 271# Portably unset VAR. 272as_fn_unset () 273{ 274 { eval $1=; unset $1;} 275} 276as_unset=as_fn_unset 277 278# as_fn_set_status STATUS 279# ----------------------- 280# Set $? to STATUS, without forking. 281as_fn_set_status () 282{ 283 return $1 284} # as_fn_set_status 285 286# as_fn_exit STATUS 287# ----------------- 288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 289as_fn_exit () 290{ 291 set +e 292 as_fn_set_status $1 293 exit $1 294} # as_fn_exit 295 296# as_fn_mkdir_p 297# ------------- 298# Create "$as_dir" as a directory, including parents if necessary. 299as_fn_mkdir_p () 300{ 301 302 case $as_dir in #( 303 -*) as_dir=./$as_dir;; 304 esac 305 test -d "$as_dir" || eval $as_mkdir_p || { 306 as_dirs= 307 while :; do 308 case $as_dir in #( 309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310 *) as_qdir=$as_dir;; 311 esac 312 as_dirs="'$as_qdir' $as_dirs" 313 as_dir=`$as_dirname -- "$as_dir" || 314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315 X"$as_dir" : 'X\(//\)[^/]' \| \ 316 X"$as_dir" : 'X\(//\)$' \| \ 317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318$as_echo X"$as_dir" | 319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)[^/].*/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\/\)$/{ 328 s//\1/ 329 q 330 } 331 /^X\(\/\).*/{ 332 s//\1/ 333 q 334 } 335 s/.*/./; q'` 336 test -d "$as_dir" && break 337 done 338 test -z "$as_dirs" || eval "mkdir $as_dirs" 339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340 341 342} # as_fn_mkdir_p 343# as_fn_append VAR VALUE 344# ---------------------- 345# Append the text in VALUE to the end of the definition contained in VAR. Take 346# advantage of any shell optimizations that allow amortized linear growth over 347# repeated appends, instead of the typical quadratic growth present in naive 348# implementations. 349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 350 eval 'as_fn_append () 351 { 352 eval $1+=\$2 353 }' 354else 355 as_fn_append () 356 { 357 eval $1=\$$1\$2 358 } 359fi # as_fn_append 360 361# as_fn_arith ARG... 362# ------------------ 363# Perform arithmetic evaluation on the ARGs, and store the result in the 364# global $as_val. Take advantage of shells that can avoid forks. The arguments 365# must be portable across $(()) and expr. 366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367 eval 'as_fn_arith () 368 { 369 as_val=$(( $* )) 370 }' 371else 372 as_fn_arith () 373 { 374 as_val=`expr "$@" || test $? -eq 1` 375 } 376fi # as_fn_arith 377 378 379# as_fn_error STATUS ERROR [LINENO LOG_FD] 380# ---------------------------------------- 381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 383# script with STATUS, using 1 if that was 0. 384as_fn_error () 385{ 386 as_status=$1; test $as_status -eq 0 && as_status=1 387 if test "$4"; then 388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 390 fi 391 $as_echo "$as_me: error: $2" >&2 392 as_fn_exit $as_status 393} # as_fn_error 394 395if expr a : '\(a\)' >/dev/null 2>&1 && 396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 397 as_expr=expr 398else 399 as_expr=false 400fi 401 402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403 as_basename=basename 404else 405 as_basename=false 406fi 407 408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409 as_dirname=dirname 410else 411 as_dirname=false 412fi 413 414as_me=`$as_basename -- "$0" || 415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416 X"$0" : 'X\(//\)$' \| \ 417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 418$as_echo X/"$0" | 419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\/\)$/{ 424 s//\1/ 425 q 426 } 427 /^X\/\(\/\).*/{ 428 s//\1/ 429 q 430 } 431 s/.*/./; q'` 432 433# Avoid depending upon Character Ranges. 434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 437as_cr_digits='0123456789' 438as_cr_alnum=$as_cr_Letters$as_cr_digits 439 440 441 as_lineno_1=$LINENO as_lineno_1a=$LINENO 442 as_lineno_2=$LINENO as_lineno_2a=$LINENO 443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 446 sed -n ' 447 p 448 /[$]LINENO/= 449 ' <$as_myself | 450 sed ' 451 s/[$]LINENO.*/&-/ 452 t lineno 453 b 454 :lineno 455 N 456 :loop 457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 458 t loop 459 s/-\n.*// 460 ' >$as_me.lineno && 461 chmod +x "$as_me.lineno" || 462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463 464 # Don't try to exec as it changes $[0], causing all sort of problems 465 # (the dirname of $[0] is not the place where we might find the 466 # original and so on. Autoconf is especially sensitive to this). 467 . "./$as_me.lineno" 468 # Exit status is that of the last command. 469 exit 470} 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in #((((( 474-n*) 475 case `echo 'xy\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 xy) ECHO_C='\c';; 478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 479 ECHO_T=' ';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485rm -f conf$$ conf$$.exe conf$$.file 486if test -d conf$$.dir; then 487 rm -f conf$$.dir/conf$$.file 488else 489 rm -f conf$$.dir 490 mkdir conf$$.dir 2>/dev/null 491fi 492if (echo >conf$$.file) 2>/dev/null; then 493 if ln -s conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s='ln -s' 495 # ... but there are two gotchas: 496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 498 # In both cases, we have to default to `cp -p'. 499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 500 as_ln_s='cp -p' 501 elif ln conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s=ln 503 else 504 as_ln_s='cp -p' 505 fi 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p='mkdir -p "$as_dir"' 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519if test -x / >/dev/null 2>&1; then 520 as_test_x='test -x' 521else 522 if ls -dL / >/dev/null 2>&1; then 523 as_ls_L_option=L 524 else 525 as_ls_L_option= 526 fi 527 as_test_x=' 528 eval sh -c '\'' 529 if test -d "$1"; then 530 test -d "$1/."; 531 else 532 case $1 in #( 533 -*)set "./$1";; 534 esac; 535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 536 ???[sx]*):;;*)false;;esac;fi 537 '\'' sh 538 ' 539fi 540as_executable_p=$as_test_x 541 542# Sed expression to map a string onto a valid CPP name. 543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544 545# Sed expression to map a string onto a valid variable name. 546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547 548as_awk_strverscmp=' 549 # Use only awk features that work with 7th edition Unix awk (1978). 550 # My, what an old awk you have, Mr. Solaris! 551 END { 552 while (length(v1) && length(v2)) { 553 # Set d1 to be the next thing to compare from v1, and likewise for d2. 554 # Normally this is a single character, but if v1 and v2 contain digits, 555 # compare them as integers and fractions as strverscmp does. 556 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 557 # Split v1 and v2 into their leading digit string components d1 and d2, 558 # and advance v1 and v2 past the leading digit strings. 559 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 560 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 561 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 562 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 563 if (d1 ~ /^0/) { 564 if (d2 ~ /^0/) { 565 # Compare two fractions. 566 while (d1 ~ /^0/ && d2 ~ /^0/) { 567 d1 = substr(d1, 2); len1-- 568 d2 = substr(d2, 2); len2-- 569 } 570 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 571 # The two components differ in length, and the common prefix 572 # contains only leading zeros. Consider the longer to be less. 573 d1 = -len1 574 d2 = -len2 575 } else { 576 # Otherwise, compare as strings. 577 d1 = "x" d1 578 d2 = "x" d2 579 } 580 } else { 581 # A fraction is less than an integer. 582 exit 1 583 } 584 } else { 585 if (d2 ~ /^0/) { 586 # An integer is greater than a fraction. 587 exit 2 588 } else { 589 # Compare two integers. 590 d1 += 0 591 d2 += 0 592 } 593 } 594 } else { 595 # The normal case, without worrying about digits. 596 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 597 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 598 } 599 if (d1 < d2) exit 1 600 if (d1 > d2) exit 2 601 } 602 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 603 # which mishandles some comparisons of empty strings to integers. 604 if (length(v2)) exit 1 605 if (length(v1)) exit 2 606 } 607' 608SHELL=${CONFIG_SHELL-/bin/sh} 609 610 611test -n "$DJDIR" || exec 7<&0 </dev/null 612exec 6>&1 613 614# Name of the host. 615# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 616# so uname gets run too. 617ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 618 619# 620# Initializations. 621# 622ac_default_prefix=/usr/local 623ac_clean_files= 624ac_config_libobj_dir=. 625LIBOBJS= 626cross_compiling=no 627subdirs= 628MFLAGS= 629MAKEFLAGS= 630 631# Identity of this package. 632PACKAGE_NAME='xorg-server' 633PACKAGE_TARNAME='xorg-server' 634PACKAGE_VERSION='1.10.3' 635PACKAGE_STRING='xorg-server 1.10.3' 636PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 637PACKAGE_URL='' 638 639ac_unique_file="Makefile.am" 640# Factoring default headers for most tests. 641ac_includes_default="\ 642#include <stdio.h> 643#ifdef HAVE_SYS_TYPES_H 644# include <sys/types.h> 645#endif 646#ifdef HAVE_SYS_STAT_H 647# include <sys/stat.h> 648#endif 649#ifdef STDC_HEADERS 650# include <stdlib.h> 651# include <stddef.h> 652#else 653# ifdef HAVE_STDLIB_H 654# include <stdlib.h> 655# endif 656#endif 657#ifdef HAVE_STRING_H 658# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 659# include <memory.h> 660# endif 661# include <string.h> 662#endif 663#ifdef HAVE_STRINGS_H 664# include <strings.h> 665#endif 666#ifdef HAVE_INTTYPES_H 667# include <inttypes.h> 668#endif 669#ifdef HAVE_STDINT_H 670# include <stdint.h> 671#endif 672#ifdef HAVE_UNISTD_H 673# include <unistd.h> 674#endif" 675 676ac_subst_vars='am__EXEEXT_FALSE 677am__EXEEXT_TRUE 678LTLIBOBJS 679LIBOBJS 680DIX_CFLAGS 681BUILD_TIME 682BUILD_DATE 683RELEASE_DATE 684PROJECTROOT 685XFAKESERVER_FALSE 686XFAKESERVER_TRUE 687BUILD_KDRIVEFBDEVLIB_FALSE 688BUILD_KDRIVEFBDEVLIB_TRUE 689XEPHYR_FALSE 690XEPHYR_TRUE 691KDRIVEFBDEV_FALSE 692KDRIVEFBDEV_TRUE 693TSLIB_FALSE 694TSLIB_TRUE 695KDRIVE_MOUSE_FALSE 696KDRIVE_MOUSE_TRUE 697KDRIVE_KBD_FALSE 698KDRIVE_KBD_TRUE 699KDRIVE_EVDEV_FALSE 700KDRIVE_EVDEV_TRUE 701KDRIVELINUX_FALSE 702KDRIVELINUX_TRUE 703KDRIVE_LIBS 704KDRIVE_LOCAL_LIBS 705KDRIVE_PURE_LIBS 706KDRIVE_CFLAGS 707KDRIVE_PURE_INCS 708KDRIVE_INCS 709XEPHYR_INCS 710XEPHYR_LIBS 711XEPHYR_CFLAGS 712TSLIB_LIBS 713TSLIB_CFLAGS 714KDRIVE_FALSE 715KDRIVE_TRUE 716DMX_BUILD_USB_FALSE 717DMX_BUILD_USB_TRUE 718DMX_BUILD_LNX_FALSE 719DMX_BUILD_LNX_TRUE 720X11EXAMPLES_DEP_LIBS 721X11EXAMPLES_DEP_CFLAGS 722XRESEXAMPLES_DEP_LIBS 723XRESEXAMPLES_DEP_CFLAGS 724XTSTEXAMPLES_DEP_LIBS 725XTSTEXAMPLES_DEP_CFLAGS 726DMXXIEXAMPLES_DEP_LIBS 727DMXXIEXAMPLES_DEP_CFLAGS 728DMXXMUEXAMPLES_DEP_LIBS 729DMXXMUEXAMPLES_DEP_CFLAGS 730DMXEXAMPLES_DEP_LIBS 731DMXEXAMPLES_DEP_CFLAGS 732XDMX_SYS_LIBS 733XDMX_LIBS 734XDMX_CFLAGS 735DMX_FALSE 736DMX_TRUE 737XDMXCONFIG_DEP_LIBS 738XDMXCONFIG_DEP_CFLAGS 739DMXMODULES_LIBS 740DMXMODULES_CFLAGS 741STANDALONE_XPBPROXY_FALSE 742STANDALONE_XPBPROXY_TRUE 743XQUARTZ_SPARKLE_FALSE 744XQUARTZ_SPARKLE_TRUE 745XQUARTZ_FALSE 746XQUARTZ_TRUE 747am__fastdepOBJC_FALSE 748am__fastdepOBJC_TRUE 749OBJCDEPMODE 750OBJCFLAGS 751OBJCLINK 752OBJCCLD 753OBJC 754XPBPROXY_LIBS 755XPBPROXY_CFLAGS 756DARWIN_LIBS 757XWIN_XV_FALSE 758XWIN_XV_TRUE 759XWIN_RANDR_FALSE 760XWIN_RANDR_TRUE 761XWIN_PRIMARYFB_FALSE 762XWIN_PRIMARYFB_TRUE 763XWIN_NATIVEGDI_FALSE 764XWIN_NATIVEGDI_TRUE 765XWIN_GLX_WINDOWS_FALSE 766XWIN_GLX_WINDOWS_TRUE 767XWIN_CLIPBOARD_FALSE 768XWIN_CLIPBOARD_TRUE 769XWIN_MULTIWINDOWEXTWM_FALSE 770XWIN_MULTIWINDOWEXTWM_TRUE 771XWIN_MULTIWINDOW_FALSE 772XWIN_MULTIWINDOW_TRUE 773XWIN_FALSE 774XWIN_TRUE 775XWIN_SYS_LIBS 776XWIN_SERVER_NAME 777XWIN_LIBS 778WINDOWSWM_LIBS 779WINDOWSWM_CFLAGS 780XWINMODULES_LIBS 781XWINMODULES_CFLAGS 782WINDRES 783DEFAULT_LOGDIR 784SYSCONFDIR 785XF86VIDMODE_FALSE 786XF86VIDMODE_TRUE 787DGA_FALSE 788DGA_TRUE 789SOLARIS_VT_FALSE 790SOLARIS_VT_TRUE 791SOLARIS_ASM_INLINE_FALSE 792SOLARIS_ASM_INLINE_TRUE 793LNXACPI_FALSE 794LNXACPI_TRUE 795LINUX_ALPHA_FALSE 796LINUX_ALPHA_TRUE 797LINUX_IA64_FALSE 798LINUX_IA64_TRUE 799XORG_BUS_SPARC_FALSE 800XORG_BUS_SPARC_TRUE 801XORG_BUS_BSDPCI_FALSE 802XORG_BUS_BSDPCI_TRUE 803XORG_BUS_LINUXPCI_FALSE 804XORG_BUS_LINUXPCI_TRUE 805XORG_FALSE 806XORG_TRUE 807abi_extension 808abi_xinput 809abi_videodrv 810abi_ansic 811logdir 812sysconfigdir 813extdir 814sdkdir 815driverdir 816moduledir 817DEFAULT_LOGPREFIX 818DEFAULT_LIBRARY_PATH 819DEFAULT_MODULE_PATH 820__XCONFIGDIR__ 821XF86CONFIGFILE 822__XCONFIGFILE__ 823XF86CONFIGDIR 824XORG_CFLAGS 825PERL 826XORG_OS_SUBDIR 827XORG_OS 828XORG_INCS 829XORG_SYS_LIBS 830XORG_LIBS 831XORG_MODULES_LIBS 832XORG_MODULES_CFLAGS 833XF86VIDMODE_LIBS 834XF86VIDMODE_CFLAGS 835DGA_LIBS 836DGA_CFLAGS 837SOLARIS_ASM_CFLAGS 838SOLARIS_INOUT_ARCH 839PCIACCESS_LIBS 840PCIACCESS_CFLAGS 841symbol_visibility 842XNEST_SYS_LIBS 843XNEST_LIBS 844XNEST_FALSE 845XNEST_TRUE 846XNESTMODULES_LIBS 847XNESTMODULES_CFLAGS 848XVFB_SYS_LIBS 849XVFB_LIBS 850XVFB_FALSE 851XVFB_TRUE 852LD_EXPORT_SYMBOLS_FLAG 853UTILS_SYS_LIBS 854XSERVER_SYS_LIBS 855XSERVER_LIBS 856XSERVERLIBS_LIBS 857XSERVERLIBS_CFLAGS 858XSERVERCFLAGS_LIBS 859XSERVERCFLAGS_CFLAGS 860SHA1_CFLAGS 861SHA1_LIBS 862OPENSSL_LIBS 863OPENSSL_CFLAGS 864LIBSHA1_LIBS 865LIBSHA1_CFLAGS 866MAIN_LIB 867OS_LIB 868DIX_LIB 869UNITTESTS_FALSE 870UNITTESTS_TRUE 871GLIB_LIBS 872GLIB_CFLAGS 873DEBUG_FALSE 874DEBUG_TRUE 875VENDOR_NAME_SHORT 876DRI_DRIVER_PATH 877BASE_FONT_PATH 878SERVER_MISC_CONFIG_PATH 879PCI_TXT_IDS_PATH 880COMPILEDDEFAULTFONTPATH 881XDMAUTH_FALSE 882XDMAUTH_TRUE 883XDMCP_FALSE 884XDMCP_TRUE 885XDMCP_LIBS 886XDMCP_CFLAGS 887XKB_COMPILED_DIR 888XKM_OUTPUT_DIR 889XKB_BIN_DIRECTORY 890XKB_BASE_DIRECTORY 891INT10MODULE_FALSE 892INT10MODULE_TRUE 893VBE_FALSE 894VBE_TRUE 895VGAHW_FALSE 896VGAHW_TRUE 897XAA_FALSE 898XAA_TRUE 899XF86UTILS_FALSE 900XF86UTILS_TRUE 901XCALIBRATE_FALSE 902XCALIBRATE_TRUE 903DPMSExtension_FALSE 904DPMSExtension_TRUE 905XF86BIGFONT_FALSE 906XF86BIGFONT_TRUE 907DBE_FALSE 908DBE_TRUE 909XCSECURITY_FALSE 910XCSECURITY_TRUE 911SELINUX_LIBS 912SELINUX_CFLAGS 913XSELINUX_FALSE 914XSELINUX_TRUE 915XACE_FALSE 916XACE_TRUE 917XINERAMA_FALSE 918XINERAMA_TRUE 919DRI2_AIGLX_FALSE 920DRI2_AIGLX_TRUE 921LIBDRM_LIBS 922LIBDRM_CFLAGS 923DRI2_FALSE 924DRI2_TRUE 925DRI2PROTO_LIBS 926DRI2PROTO_CFLAGS 927DRI_LIBS 928DRI_CFLAGS 929DRIPROTO_LIBS 930DRIPROTO_CFLAGS 931DRI_FALSE 932DRI_TRUE 933GLX_DEFINES 934AIGLX_FALSE 935AIGLX_TRUE 936GLX_FALSE 937GLX_TRUE 938GL_LIBS 939GL_CFLAGS 940XLIB_LIBS 941XLIB_CFLAGS 942RES_FALSE 943RES_TRUE 944SCREENSAVER_FALSE 945SCREENSAVER_TRUE 946RECORD_FALSE 947RECORD_TRUE 948MITSHM_FALSE 949MITSHM_TRUE 950COMPOSITE_FALSE 951COMPOSITE_TRUE 952XREGISTRY_FALSE 953XREGISTRY_TRUE 954XVMC_FALSE 955XVMC_TRUE 956XV_FALSE 957XV_TRUE 958CONFIG_NEED_DBUS_FALSE 959CONFIG_NEED_DBUS_TRUE 960CONFIG_HAL_FALSE 961CONFIG_HAL_TRUE 962HAL_LIBS 963HAL_CFLAGS 964CONFIG_DBUS_API_FALSE 965CONFIG_DBUS_API_TRUE 966HAVE_DBUS_FALSE 967HAVE_DBUS_TRUE 968DBUS_LIBS 969DBUS_CFLAGS 970CONFIG_UDEV_FALSE 971CONFIG_UDEV_TRUE 972UDEV_LIBS 973UDEV_CFLAGS 974PIXMAN_LIBS 975PIXMAN_CFLAGS 976SDK_REQUIRED_MODULES 977INSTALL_LIBXF86CONFIG_FALSE 978INSTALL_LIBXF86CONFIG_TRUE 979HAVE_FOP_FALSE 980HAVE_FOP_TRUE 981FOP 982HAVE_XMLTO_FALSE 983HAVE_XMLTO_TRUE 984HAVE_XMLTO_TEXT_FALSE 985HAVE_XMLTO_TEXT_TRUE 986XMLTO 987ENABLE_DEVEL_DOCS_FALSE 988ENABLE_DEVEL_DOCS_TRUE 989ENABLE_DOCS_FALSE 990ENABLE_DOCS_TRUE 991INT10_STUB_FALSE 992INT10_STUB_TRUE 993INT10_X86EMU_FALSE 994INT10_X86EMU_TRUE 995INT10_VM86_FALSE 996INT10_VM86_TRUE 997SECURE_RPC_FALSE 998SECURE_RPC_TRUE 999INSTALL_SETUID_FALSE 1000INSTALL_SETUID_TRUE 1001GLX_TLS 1002XQUARTZ_SPARKLE 1003LAUNCHD_ID_PREFIX 1004APPLE_APPLICATION_NAME 1005APPLE_APPLICATIONS_DIR 1006FONT100DPIDIR 1007FONT75DPIDIR 1008FONTTYPE1DIR 1009FONTTTFDIR 1010FONTOTFDIR 1011FONTMISCDIR 1012FONTROOTDIR 1013SPARC64_VIDEO_FALSE 1014SPARC64_VIDEO_TRUE 1015PPC_VIDEO_FALSE 1016PPC_VIDEO_TRUE 1017I386_VIDEO_FALSE 1018I386_VIDEO_TRUE 1019ARM_VIDEO_FALSE 1020ARM_VIDEO_TRUE 1021ALPHA_VIDEO_FALSE 1022ALPHA_VIDEO_TRUE 1023GLX_ARCH_DEFINES 1024ARM_BACKTRACE_CFLAGS 1025BSD_KQUEUE_APM_FALSE 1026BSD_KQUEUE_APM_TRUE 1027BSD_APM_FALSE 1028BSD_APM_TRUE 1029FREEBSD_KLDLOAD_FALSE 1030FREEBSD_KLDLOAD_TRUE 1031FBDEVHW_FALSE 1032FBDEVHW_TRUE 1033LNXAPM_FALSE 1034LNXAPM_TRUE 1035AGP_FALSE 1036AGP_TRUE 1037NEED_VSNPRINTF_FALSE 1038NEED_VSNPRINTF_TRUE 1039NEED_STRLCAT_FALSE 1040NEED_STRLCAT_TRUE 1041ALLOCA 1042DLOPEN_LIBS 1043SPECIAL_DTRACE_OBJECTS_FALSE 1044SPECIAL_DTRACE_OBJECTS_TRUE 1045XSERVER_DTRACE_FALSE 1046XSERVER_DTRACE_TRUE 1047DTRACE 1048RAWCPPFLAGS 1049RAWCPP 1050YFLAGS 1051YACC 1052LEXLIB 1053LEX_OUTPUT_ROOT 1054LEX 1055OTOOL64 1056OTOOL 1057LIPO 1058NMEDIT 1059DSYMUTIL 1060MANIFEST_TOOL 1061RANLIB 1062ac_ct_AR 1063AR 1064NM 1065ac_ct_DUMPBIN 1066DUMPBIN 1067LD 1068FGREP 1069LIBTOOL 1070OBJDUMP 1071DLLTOOL 1072AS 1073LN_S 1074am__fastdepCCAS_FALSE 1075am__fastdepCCAS_TRUE 1076CCASDEPMODE 1077CCASFLAGS 1078CCAS 1079HAVE_STYLESHEETS_FALSE 1080HAVE_STYLESHEETS_TRUE 1081XSL_STYLESHEET 1082STYLESHEET_SRCDIR 1083XORG_SGML_PATH 1084HAVE_DOXYGEN_FALSE 1085HAVE_DOXYGEN_TRUE 1086DOXYGEN 1087AM_BACKSLASH 1088AM_DEFAULT_VERBOSITY 1089MAN_SUBSTS 1090XORG_MAN_PAGE 1091ADMIN_MAN_DIR 1092DRIVER_MAN_DIR 1093MISC_MAN_DIR 1094FILE_MAN_DIR 1095LIB_MAN_DIR 1096APP_MAN_DIR 1097ADMIN_MAN_SUFFIX 1098DRIVER_MAN_SUFFIX 1099MISC_MAN_SUFFIX 1100FILE_MAN_SUFFIX 1101LIB_MAN_SUFFIX 1102APP_MAN_SUFFIX 1103SED 1104host_os 1105host_vendor 1106host_cpu 1107host 1108build_os 1109build_vendor 1110build_cpu 1111build 1112INSTALL_CMD 1113PKG_CONFIG_LIBDIR 1114PKG_CONFIG_PATH 1115PKG_CONFIG 1116CHANGELOG_CMD 1117STRICT_CFLAGS 1118CWARNFLAGS 1119EGREP 1120GREP 1121CPP 1122am__fastdepCC_FALSE 1123am__fastdepCC_TRUE 1124CCDEPMODE 1125AMDEPBACKSLASH 1126AMDEP_FALSE 1127AMDEP_TRUE 1128am__quote 1129am__include 1130DEPDIR 1131OBJEXT 1132EXEEXT 1133ac_ct_CC 1134CPPFLAGS 1135LDFLAGS 1136CFLAGS 1137CC 1138MAINT 1139MAINTAINER_MODE_FALSE 1140MAINTAINER_MODE_TRUE 1141am__untar 1142am__tar 1143AMTAR 1144am__leading_dot 1145SET_MAKE 1146AWK 1147mkdir_p 1148MKDIR_P 1149INSTALL_STRIP_PROGRAM 1150STRIP 1151install_sh 1152MAKEINFO 1153AUTOHEADER 1154AUTOMAKE 1155AUTOCONF 1156ACLOCAL 1157VERSION 1158PACKAGE 1159CYGPATH_W 1160am__isrc 1161INSTALL_DATA 1162INSTALL_SCRIPT 1163INSTALL_PROGRAM 1164target_alias 1165host_alias 1166build_alias 1167LIBS 1168ECHO_T 1169ECHO_N 1170ECHO_C 1171DEFS 1172mandir 1173localedir 1174libdir 1175psdir 1176pdfdir 1177dvidir 1178htmldir 1179infodir 1180docdir 1181oldincludedir 1182includedir 1183localstatedir 1184sharedstatedir 1185sysconfdir 1186datadir 1187datarootdir 1188libexecdir 1189sbindir 1190bindir 1191program_transform_name 1192prefix 1193exec_prefix 1194PACKAGE_URL 1195PACKAGE_BUGREPORT 1196PACKAGE_STRING 1197PACKAGE_VERSION 1198PACKAGE_TARNAME 1199PACKAGE_NAME 1200PATH_SEPARATOR 1201SHELL' 1202ac_subst_files='' 1203ac_user_opts=' 1204enable_option_checking 1205enable_maintainer_mode 1206enable_dependency_tracking 1207enable_strict_compilation 1208enable_silent_rules 1209with_doxygen 1210enable_static 1211enable_shared 1212with_pic 1213enable_fast_install 1214with_gnu_ld 1215with_sysroot 1216enable_libtool_lock 1217enable_largefile 1218with_dtrace 1219enable_werror 1220enable_debug 1221enable_unit_tests 1222enable_use_sigio_by_default 1223with_int10 1224with_vendor_name 1225with_vendor_name_short 1226with_vendor_web 1227with_module_dir 1228with_log_dir 1229with_builder_addr 1230with_os_name 1231with_os_vendor 1232with_builderstring 1233with_fontrootdir 1234with_fontmiscdir 1235with_fontotfdir 1236with_fontttfdir 1237with_fonttype1dir 1238with_font75dpidir 1239with_font100dpidir 1240with_default_font_path 1241with_xkb_path 1242with_xkb_output 1243with_default_xkb_rules 1244with_default_xkb_model 1245with_default_xkb_layout 1246with_default_xkb_variant 1247with_default_xkb_options 1248with_serverconfig_path 1249with_apple_applications_dir 1250with_apple_application_name 1251with_launchd_id_prefix 1252enable_sparkle 1253enable_install_libxf86config 1254enable_visibility 1255enable_pc98 1256enable_aiglx 1257enable_glx_tls 1258enable_registry 1259enable_composite 1260enable_mitshm 1261enable_xres 1262enable_record 1263enable_xv 1264enable_xvmc 1265enable_dga 1266enable_screensaver 1267enable_xdmcp 1268enable_xdm_auth_1 1269enable_glx 1270enable_dri 1271enable_dri2 1272enable_xinerama 1273enable_xf86vidmode 1274enable_xace 1275enable_xselinux 1276enable_xcsecurity 1277enable_xcalibrate 1278enable_tslib 1279enable_dbe 1280enable_xf86bigfont 1281enable_dpms 1282enable_config_udev 1283enable_config_dbus 1284enable_config_hal 1285enable_xfree86_utils 1286enable_xaa 1287enable_vgahw 1288enable_vbe 1289enable_int10_module 1290enable_windowswm 1291enable_libdrm 1292enable_xorg 1293enable_dmx 1294enable_xvfb 1295enable_xnest 1296enable_xquartz 1297enable_standalone_xpbproxy 1298enable_xwin 1299enable_kdrive 1300enable_xephyr 1301enable_xfake 1302enable_xfbdev 1303enable_kdrive_kbd 1304enable_kdrive_mouse 1305enable_kdrive_evdev 1306enable_install_setuid 1307enable_unix_transport 1308enable_tcp_transport 1309enable_ipv6 1310enable_local_transport 1311enable_secure_rpc 1312enable_docs 1313enable_devel_docs 1314with_xmlto 1315with_fop 1316with_xkb_bin_directory 1317with_sha1 1318' 1319 ac_precious_vars='build_alias 1320host_alias 1321target_alias 1322CC 1323CFLAGS 1324LDFLAGS 1325LIBS 1326CPPFLAGS 1327CPP 1328PKG_CONFIG 1329PKG_CONFIG_PATH 1330PKG_CONFIG_LIBDIR 1331DOXYGEN 1332CCAS 1333CCASFLAGS 1334YACC 1335YFLAGS 1336XMLTO 1337FOP 1338PIXMAN_CFLAGS 1339PIXMAN_LIBS 1340UDEV_CFLAGS 1341UDEV_LIBS 1342DBUS_CFLAGS 1343DBUS_LIBS 1344HAL_CFLAGS 1345HAL_LIBS 1346XLIB_CFLAGS 1347XLIB_LIBS 1348GL_CFLAGS 1349GL_LIBS 1350DRIPROTO_CFLAGS 1351DRIPROTO_LIBS 1352DRI_CFLAGS 1353DRI_LIBS 1354DRI2PROTO_CFLAGS 1355DRI2PROTO_LIBS 1356LIBDRM_CFLAGS 1357LIBDRM_LIBS 1358SELINUX_CFLAGS 1359SELINUX_LIBS 1360XDMCP_CFLAGS 1361XDMCP_LIBS 1362GLIB_CFLAGS 1363GLIB_LIBS 1364LIBSHA1_CFLAGS 1365LIBSHA1_LIBS 1366OPENSSL_CFLAGS 1367OPENSSL_LIBS 1368XSERVERCFLAGS_CFLAGS 1369XSERVERCFLAGS_LIBS 1370XSERVERLIBS_CFLAGS 1371XSERVERLIBS_LIBS 1372XNESTMODULES_CFLAGS 1373XNESTMODULES_LIBS 1374PCIACCESS_CFLAGS 1375PCIACCESS_LIBS 1376DGA_CFLAGS 1377DGA_LIBS 1378XF86VIDMODE_CFLAGS 1379XF86VIDMODE_LIBS 1380XORG_MODULES_CFLAGS 1381XORG_MODULES_LIBS 1382XWINMODULES_CFLAGS 1383XWINMODULES_LIBS 1384WINDOWSWM_CFLAGS 1385WINDOWSWM_LIBS 1386XPBPROXY_CFLAGS 1387XPBPROXY_LIBS 1388DMXMODULES_CFLAGS 1389DMXMODULES_LIBS 1390XDMXCONFIG_DEP_CFLAGS 1391XDMXCONFIG_DEP_LIBS 1392DMXEXAMPLES_DEP_CFLAGS 1393DMXEXAMPLES_DEP_LIBS 1394DMXXMUEXAMPLES_DEP_CFLAGS 1395DMXXMUEXAMPLES_DEP_LIBS 1396DMXXIEXAMPLES_DEP_CFLAGS 1397DMXXIEXAMPLES_DEP_LIBS 1398XTSTEXAMPLES_DEP_CFLAGS 1399XTSTEXAMPLES_DEP_LIBS 1400XRESEXAMPLES_DEP_CFLAGS 1401XRESEXAMPLES_DEP_LIBS 1402X11EXAMPLES_DEP_CFLAGS 1403X11EXAMPLES_DEP_LIBS 1404TSLIB_CFLAGS 1405TSLIB_LIBS 1406XEPHYR_CFLAGS 1407XEPHYR_LIBS' 1408 1409 1410# Initialize some variables set by options. 1411ac_init_help= 1412ac_init_version=false 1413ac_unrecognized_opts= 1414ac_unrecognized_sep= 1415# The variables have the same names as the options, with 1416# dashes changed to underlines. 1417cache_file=/dev/null 1418exec_prefix=NONE 1419no_create= 1420no_recursion= 1421prefix=NONE 1422program_prefix=NONE 1423program_suffix=NONE 1424program_transform_name=s,x,x, 1425silent= 1426site= 1427srcdir= 1428verbose= 1429x_includes=NONE 1430x_libraries=NONE 1431 1432# Installation directory options. 1433# These are left unexpanded so users can "make install exec_prefix=/foo" 1434# and all the variables that are supposed to be based on exec_prefix 1435# by default will actually change. 1436# Use braces instead of parens because sh, perl, etc. also accept them. 1437# (The list follows the same order as the GNU Coding Standards.) 1438bindir='${exec_prefix}/bin' 1439sbindir='${exec_prefix}/sbin' 1440libexecdir='${exec_prefix}/libexec' 1441datarootdir='${prefix}/share' 1442datadir='${datarootdir}' 1443sysconfdir='${prefix}/etc' 1444sharedstatedir='${prefix}/com' 1445localstatedir='${prefix}/var' 1446includedir='${prefix}/include' 1447oldincludedir='/usr/include' 1448docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1449infodir='${datarootdir}/info' 1450htmldir='${docdir}' 1451dvidir='${docdir}' 1452pdfdir='${docdir}' 1453psdir='${docdir}' 1454libdir='${exec_prefix}/lib' 1455localedir='${datarootdir}/locale' 1456mandir='${datarootdir}/man' 1457 1458ac_prev= 1459ac_dashdash= 1460for ac_option 1461do 1462 # If the previous option needs an argument, assign it. 1463 if test -n "$ac_prev"; then 1464 eval $ac_prev=\$ac_option 1465 ac_prev= 1466 continue 1467 fi 1468 1469 case $ac_option in 1470 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1471 *=) ac_optarg= ;; 1472 *) ac_optarg=yes ;; 1473 esac 1474 1475 # Accept the important Cygnus configure options, so we can diagnose typos. 1476 1477 case $ac_dashdash$ac_option in 1478 --) 1479 ac_dashdash=yes ;; 1480 1481 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1482 ac_prev=bindir ;; 1483 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1484 bindir=$ac_optarg ;; 1485 1486 -build | --build | --buil | --bui | --bu) 1487 ac_prev=build_alias ;; 1488 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1489 build_alias=$ac_optarg ;; 1490 1491 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1492 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1493 ac_prev=cache_file ;; 1494 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1495 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1496 cache_file=$ac_optarg ;; 1497 1498 --config-cache | -C) 1499 cache_file=config.cache ;; 1500 1501 -datadir | --datadir | --datadi | --datad) 1502 ac_prev=datadir ;; 1503 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1504 datadir=$ac_optarg ;; 1505 1506 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1507 | --dataroo | --dataro | --datar) 1508 ac_prev=datarootdir ;; 1509 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1510 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1511 datarootdir=$ac_optarg ;; 1512 1513 -disable-* | --disable-*) 1514 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1515 # Reject names that are not valid shell variable names. 1516 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1517 as_fn_error $? "invalid feature name: $ac_useropt" 1518 ac_useropt_orig=$ac_useropt 1519 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1520 case $ac_user_opts in 1521 *" 1522"enable_$ac_useropt" 1523"*) ;; 1524 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1525 ac_unrecognized_sep=', ';; 1526 esac 1527 eval enable_$ac_useropt=no ;; 1528 1529 -docdir | --docdir | --docdi | --doc | --do) 1530 ac_prev=docdir ;; 1531 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1532 docdir=$ac_optarg ;; 1533 1534 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1535 ac_prev=dvidir ;; 1536 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1537 dvidir=$ac_optarg ;; 1538 1539 -enable-* | --enable-*) 1540 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1541 # Reject names that are not valid shell variable names. 1542 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1543 as_fn_error $? "invalid feature name: $ac_useropt" 1544 ac_useropt_orig=$ac_useropt 1545 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1546 case $ac_user_opts in 1547 *" 1548"enable_$ac_useropt" 1549"*) ;; 1550 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1551 ac_unrecognized_sep=', ';; 1552 esac 1553 eval enable_$ac_useropt=\$ac_optarg ;; 1554 1555 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1556 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1557 | --exec | --exe | --ex) 1558 ac_prev=exec_prefix ;; 1559 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1560 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1561 | --exec=* | --exe=* | --ex=*) 1562 exec_prefix=$ac_optarg ;; 1563 1564 -gas | --gas | --ga | --g) 1565 # Obsolete; use --with-gas. 1566 with_gas=yes ;; 1567 1568 -help | --help | --hel | --he | -h) 1569 ac_init_help=long ;; 1570 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1571 ac_init_help=recursive ;; 1572 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1573 ac_init_help=short ;; 1574 1575 -host | --host | --hos | --ho) 1576 ac_prev=host_alias ;; 1577 -host=* | --host=* | --hos=* | --ho=*) 1578 host_alias=$ac_optarg ;; 1579 1580 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1581 ac_prev=htmldir ;; 1582 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1583 | --ht=*) 1584 htmldir=$ac_optarg ;; 1585 1586 -includedir | --includedir | --includedi | --included | --include \ 1587 | --includ | --inclu | --incl | --inc) 1588 ac_prev=includedir ;; 1589 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1590 | --includ=* | --inclu=* | --incl=* | --inc=*) 1591 includedir=$ac_optarg ;; 1592 1593 -infodir | --infodir | --infodi | --infod | --info | --inf) 1594 ac_prev=infodir ;; 1595 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1596 infodir=$ac_optarg ;; 1597 1598 -libdir | --libdir | --libdi | --libd) 1599 ac_prev=libdir ;; 1600 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1601 libdir=$ac_optarg ;; 1602 1603 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1604 | --libexe | --libex | --libe) 1605 ac_prev=libexecdir ;; 1606 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1607 | --libexe=* | --libex=* | --libe=*) 1608 libexecdir=$ac_optarg ;; 1609 1610 -localedir | --localedir | --localedi | --localed | --locale) 1611 ac_prev=localedir ;; 1612 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1613 localedir=$ac_optarg ;; 1614 1615 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1616 | --localstate | --localstat | --localsta | --localst | --locals) 1617 ac_prev=localstatedir ;; 1618 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1619 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1620 localstatedir=$ac_optarg ;; 1621 1622 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1623 ac_prev=mandir ;; 1624 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1625 mandir=$ac_optarg ;; 1626 1627 -nfp | --nfp | --nf) 1628 # Obsolete; use --without-fp. 1629 with_fp=no ;; 1630 1631 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1632 | --no-cr | --no-c | -n) 1633 no_create=yes ;; 1634 1635 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1636 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1637 no_recursion=yes ;; 1638 1639 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1640 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1641 | --oldin | --oldi | --old | --ol | --o) 1642 ac_prev=oldincludedir ;; 1643 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1644 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1645 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1646 oldincludedir=$ac_optarg ;; 1647 1648 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1649 ac_prev=prefix ;; 1650 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1651 prefix=$ac_optarg ;; 1652 1653 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1654 | --program-pre | --program-pr | --program-p) 1655 ac_prev=program_prefix ;; 1656 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1657 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1658 program_prefix=$ac_optarg ;; 1659 1660 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1661 | --program-suf | --program-su | --program-s) 1662 ac_prev=program_suffix ;; 1663 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1664 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1665 program_suffix=$ac_optarg ;; 1666 1667 -program-transform-name | --program-transform-name \ 1668 | --program-transform-nam | --program-transform-na \ 1669 | --program-transform-n | --program-transform- \ 1670 | --program-transform | --program-transfor \ 1671 | --program-transfo | --program-transf \ 1672 | --program-trans | --program-tran \ 1673 | --progr-tra | --program-tr | --program-t) 1674 ac_prev=program_transform_name ;; 1675 -program-transform-name=* | --program-transform-name=* \ 1676 | --program-transform-nam=* | --program-transform-na=* \ 1677 | --program-transform-n=* | --program-transform-=* \ 1678 | --program-transform=* | --program-transfor=* \ 1679 | --program-transfo=* | --program-transf=* \ 1680 | --program-trans=* | --program-tran=* \ 1681 | --progr-tra=* | --program-tr=* | --program-t=*) 1682 program_transform_name=$ac_optarg ;; 1683 1684 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1685 ac_prev=pdfdir ;; 1686 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1687 pdfdir=$ac_optarg ;; 1688 1689 -psdir | --psdir | --psdi | --psd | --ps) 1690 ac_prev=psdir ;; 1691 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1692 psdir=$ac_optarg ;; 1693 1694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1695 | -silent | --silent | --silen | --sile | --sil) 1696 silent=yes ;; 1697 1698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1699 ac_prev=sbindir ;; 1700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1701 | --sbi=* | --sb=*) 1702 sbindir=$ac_optarg ;; 1703 1704 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1706 | --sharedst | --shareds | --shared | --share | --shar \ 1707 | --sha | --sh) 1708 ac_prev=sharedstatedir ;; 1709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1712 | --sha=* | --sh=*) 1713 sharedstatedir=$ac_optarg ;; 1714 1715 -site | --site | --sit) 1716 ac_prev=site ;; 1717 -site=* | --site=* | --sit=*) 1718 site=$ac_optarg ;; 1719 1720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1721 ac_prev=srcdir ;; 1722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1723 srcdir=$ac_optarg ;; 1724 1725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1726 | --syscon | --sysco | --sysc | --sys | --sy) 1727 ac_prev=sysconfdir ;; 1728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1730 sysconfdir=$ac_optarg ;; 1731 1732 -target | --target | --targe | --targ | --tar | --ta | --t) 1733 ac_prev=target_alias ;; 1734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1735 target_alias=$ac_optarg ;; 1736 1737 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1738 verbose=yes ;; 1739 1740 -version | --version | --versio | --versi | --vers | -V) 1741 ac_init_version=: ;; 1742 1743 -with-* | --with-*) 1744 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1745 # Reject names that are not valid shell variable names. 1746 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1747 as_fn_error $? "invalid package name: $ac_useropt" 1748 ac_useropt_orig=$ac_useropt 1749 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1750 case $ac_user_opts in 1751 *" 1752"with_$ac_useropt" 1753"*) ;; 1754 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1755 ac_unrecognized_sep=', ';; 1756 esac 1757 eval with_$ac_useropt=\$ac_optarg ;; 1758 1759 -without-* | --without-*) 1760 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1761 # Reject names that are not valid shell variable names. 1762 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1763 as_fn_error $? "invalid package name: $ac_useropt" 1764 ac_useropt_orig=$ac_useropt 1765 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1766 case $ac_user_opts in 1767 *" 1768"with_$ac_useropt" 1769"*) ;; 1770 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1771 ac_unrecognized_sep=', ';; 1772 esac 1773 eval with_$ac_useropt=no ;; 1774 1775 --x) 1776 # Obsolete; use --with-x. 1777 with_x=yes ;; 1778 1779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1780 | --x-incl | --x-inc | --x-in | --x-i) 1781 ac_prev=x_includes ;; 1782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1784 x_includes=$ac_optarg ;; 1785 1786 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1788 ac_prev=x_libraries ;; 1789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1791 x_libraries=$ac_optarg ;; 1792 1793 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1794Try \`$0 --help' for more information" 1795 ;; 1796 1797 *=*) 1798 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1799 # Reject names that are not valid shell variable names. 1800 case $ac_envvar in #( 1801 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1802 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1803 esac 1804 eval $ac_envvar=\$ac_optarg 1805 export $ac_envvar ;; 1806 1807 *) 1808 # FIXME: should be removed in autoconf 3.0. 1809 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1810 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1811 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1812 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1813 ;; 1814 1815 esac 1816done 1817 1818if test -n "$ac_prev"; then 1819 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1820 as_fn_error $? "missing argument to $ac_option" 1821fi 1822 1823if test -n "$ac_unrecognized_opts"; then 1824 case $enable_option_checking in 1825 no) ;; 1826 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1827 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1828 esac 1829fi 1830 1831# Check all directory arguments for consistency. 1832for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1833 datadir sysconfdir sharedstatedir localstatedir includedir \ 1834 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1835 libdir localedir mandir 1836do 1837 eval ac_val=\$$ac_var 1838 # Remove trailing slashes. 1839 case $ac_val in 1840 */ ) 1841 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1842 eval $ac_var=\$ac_val;; 1843 esac 1844 # Be sure to have absolute directory names. 1845 case $ac_val in 1846 [\\/$]* | ?:[\\/]* ) continue;; 1847 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1848 esac 1849 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1850done 1851 1852# There might be people who depend on the old broken behavior: `$host' 1853# used to hold the argument of --host etc. 1854# FIXME: To remove some day. 1855build=$build_alias 1856host=$host_alias 1857target=$target_alias 1858 1859# FIXME: To remove some day. 1860if test "x$host_alias" != x; then 1861 if test "x$build_alias" = x; then 1862 cross_compiling=maybe 1863 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1864 If a cross compiler is detected then cross compile mode will be used" >&2 1865 elif test "x$build_alias" != "x$host_alias"; then 1866 cross_compiling=yes 1867 fi 1868fi 1869 1870ac_tool_prefix= 1871test -n "$host_alias" && ac_tool_prefix=$host_alias- 1872 1873test "$silent" = yes && exec 6>/dev/null 1874 1875 1876ac_pwd=`pwd` && test -n "$ac_pwd" && 1877ac_ls_di=`ls -di .` && 1878ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1879 as_fn_error $? "working directory cannot be determined" 1880test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1881 as_fn_error $? "pwd does not report name of working directory" 1882 1883 1884# Find the source files, if location was not specified. 1885if test -z "$srcdir"; then 1886 ac_srcdir_defaulted=yes 1887 # Try the directory containing this script, then the parent directory. 1888 ac_confdir=`$as_dirname -- "$as_myself" || 1889$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1890 X"$as_myself" : 'X\(//\)[^/]' \| \ 1891 X"$as_myself" : 'X\(//\)$' \| \ 1892 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1893$as_echo X"$as_myself" | 1894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1895 s//\1/ 1896 q 1897 } 1898 /^X\(\/\/\)[^/].*/{ 1899 s//\1/ 1900 q 1901 } 1902 /^X\(\/\/\)$/{ 1903 s//\1/ 1904 q 1905 } 1906 /^X\(\/\).*/{ 1907 s//\1/ 1908 q 1909 } 1910 s/.*/./; q'` 1911 srcdir=$ac_confdir 1912 if test ! -r "$srcdir/$ac_unique_file"; then 1913 srcdir=.. 1914 fi 1915else 1916 ac_srcdir_defaulted=no 1917fi 1918if test ! -r "$srcdir/$ac_unique_file"; then 1919 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1920 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1921fi 1922ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1923ac_abs_confdir=`( 1924 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1925 pwd)` 1926# When building in place, set srcdir=. 1927if test "$ac_abs_confdir" = "$ac_pwd"; then 1928 srcdir=. 1929fi 1930# Remove unnecessary trailing slashes from srcdir. 1931# Double slashes in file names in object file debugging info 1932# mess up M-x gdb in Emacs. 1933case $srcdir in 1934*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1935esac 1936for ac_var in $ac_precious_vars; do 1937 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1938 eval ac_env_${ac_var}_value=\$${ac_var} 1939 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1940 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1941done 1942 1943# 1944# Report the --help message. 1945# 1946if test "$ac_init_help" = "long"; then 1947 # Omit some internal or obsolete options to make the list less imposing. 1948 # This message is too long to be a string in the A/UX 3.1 sh. 1949 cat <<_ACEOF 1950\`configure' configures xorg-server 1.10.3 to adapt to many kinds of systems. 1951 1952Usage: $0 [OPTION]... [VAR=VALUE]... 1953 1954To assign environment variables (e.g., CC, CFLAGS...), specify them as 1955VAR=VALUE. See below for descriptions of some of the useful variables. 1956 1957Defaults for the options are specified in brackets. 1958 1959Configuration: 1960 -h, --help display this help and exit 1961 --help=short display options specific to this package 1962 --help=recursive display the short help of all the included packages 1963 -V, --version display version information and exit 1964 -q, --quiet, --silent do not print \`checking ...' messages 1965 --cache-file=FILE cache test results in FILE [disabled] 1966 -C, --config-cache alias for \`--cache-file=config.cache' 1967 -n, --no-create do not create output files 1968 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1969 1970Installation directories: 1971 --prefix=PREFIX install architecture-independent files in PREFIX 1972 [$ac_default_prefix] 1973 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1974 [PREFIX] 1975 1976By default, \`make install' will install all the files in 1977\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1978an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1979for instance \`--prefix=\$HOME'. 1980 1981For better control, use the options below. 1982 1983Fine tuning of the installation directories: 1984 --bindir=DIR user executables [EPREFIX/bin] 1985 --sbindir=DIR system admin executables [EPREFIX/sbin] 1986 --libexecdir=DIR program executables [EPREFIX/libexec] 1987 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1988 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1989 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1990 --libdir=DIR object code libraries [EPREFIX/lib] 1991 --includedir=DIR C header files [PREFIX/include] 1992 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1993 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1994 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1995 --infodir=DIR info documentation [DATAROOTDIR/info] 1996 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1997 --mandir=DIR man documentation [DATAROOTDIR/man] 1998 --docdir=DIR documentation root [DATAROOTDIR/doc/xorg-server] 1999 --htmldir=DIR html documentation [DOCDIR] 2000 --dvidir=DIR dvi documentation [DOCDIR] 2001 --pdfdir=DIR pdf documentation [DOCDIR] 2002 --psdir=DIR ps documentation [DOCDIR] 2003_ACEOF 2004 2005 cat <<\_ACEOF 2006 2007Program names: 2008 --program-prefix=PREFIX prepend PREFIX to installed program names 2009 --program-suffix=SUFFIX append SUFFIX to installed program names 2010 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 2011 2012System types: 2013 --build=BUILD configure for building on BUILD [guessed] 2014 --host=HOST cross-compile to build programs to run on HOST [BUILD] 2015_ACEOF 2016fi 2017 2018if test -n "$ac_init_help"; then 2019 case $ac_init_help in 2020 short | recursive ) echo "Configuration of xorg-server 1.10.3:";; 2021 esac 2022 cat <<\_ACEOF 2023 2024Optional Features: 2025 --disable-option-checking ignore unrecognized --enable/--with options 2026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 2027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 2028 --enable-maintainer-mode enable make rules and dependencies not useful 2029 (and sometimes confusing) to the casual installer 2030 --disable-dependency-tracking speeds up one-time build 2031 --enable-dependency-tracking do not reject slow dependency extractors 2032 --enable-strict-compilation 2033 Enable all warnings from compiler and make them 2034 errors (default: disabled) 2035 --enable-silent-rules less verbose build output (undo: `make V=1') 2036 --disable-silent-rules verbose build output (undo: `make V=0') 2037 --enable-static[=PKGS] build static libraries [default=no] 2038 --enable-shared[=PKGS] build shared libraries [default=yes] 2039 --enable-fast-install[=PKGS] 2040 optimize for fast installation [default=yes] 2041 --disable-libtool-lock avoid locking (might break parallel builds) 2042 --disable-largefile omit support for large files 2043 --enable-werror Obsolete - use --enable-strict-compilation instead 2044 --enable-debug Enable debugging (default: disabled) 2045 --enable-unit-tests Enable unit-tests (default: auto) 2046 --enable-use-sigio-by-default 2047 Enable SIGIO input handlers by default (default: $USE_SIGIO_BY_DEFAULT) 2048 2049 --enable-sparkle Enable updating of X11.app using the Sparkle 2050 Framework (default: disabled) 2051 --enable-install-libxf86config 2052 Install libxf86config (default: disabled) 2053 --enable-visibility Enable symbol visibility (default: auto) 2054 --enable-pc98 Enable PC98 support in Xorg (default: auto) 2055 --enable-aiglx Build accelerated indirect GLX (default: enabled) 2056 --enable-glx-tls Build GLX with TLS support (default: auto) 2057 --disable-registry Build string registry module (default: enabled) 2058 --disable-composite Build Composite extension (default: enabled) 2059 --disable-shm Build SHM extension (default: enabled) 2060 --disable-xres Build XRes extension (default: enabled) 2061 --disable-record Build Record extension (default: enabled) 2062 --disable-xv Build Xv extension (default: enabled) 2063 --disable-xvmc Build XvMC extension (default: enabled) 2064 --disable-dga Build DGA extension (default: auto) 2065 --disable-screensaver Build ScreenSaver extension (default: enabled) 2066 --disable-xdmcp Build XDMCP extension (default: auto) 2067 --disable-xdm-auth-1 Build XDM-Auth-1 extension (default: auto) 2068 --disable-glx Build GLX extension (default: enabled) 2069 --enable-dri Build DRI extension (default: auto) 2070 --enable-dri2 Build DRI2 extension (default: auto) 2071 --disable-xinerama Build Xinerama extension (default: enabled) 2072 --disable-xf86vidmode Build XF86VidMode extension (default: auto) 2073 --disable-xace Build X-ACE extension (default: enabled) 2074 --enable-xselinux Build SELinux extension (default: disabled) 2075 --enable-xcsecurity Build Security extension (default: disabled) 2076 --enable-xcalibrate Build XCalibrate extension (default: disabled) 2077 --enable-tslib Build kdrive tslib touchscreen support (default: 2078 disabled) 2079 --disable-dbe Build DBE extension (default: enabled) 2080 --enable-xf86bigfont Build XF86 Big Font extension (default: disabled) 2081 --disable-dpms Build DPMS extension (default: enabled) 2082 --enable-config-udev Build udev support (default: auto) 2083 --enable-config-dbus Build D-BUS API support (default: no) 2084 --disable-config-hal Build HAL support (default: auto) 2085 --enable-xfree86-utils Build xfree86 DDX utilities (default: enabled) 2086 --enable-xaa Build XAA (default: enabled) 2087 --enable-vgahw Build Xorg with vga access (default: enabled) 2088 --enable-vbe Build Xorg with VBE module (default: enabled) 2089 --enable-int10-module Build Xorg with int10 module (default: enabled) 2090 --enable-windowswm Build XWin with WindowsWM extension (default: no) 2091 --enable-libdrm Build Xorg with libdrm support (default: enabled) 2092 --enable-xorg Build Xorg server (default: auto) 2093 --enable-dmx Build DMX server (default: auto) 2094 --enable-xvfb Build Xvfb server (default: yes) 2095 --enable-xnest Build Xnest server (default: auto) 2096 --enable-xquartz Build Xquartz server for OS-X (default: auto) 2097 --enable-standalone-xpbproxy 2098 Build a standalone xpbproxy (in addition to the one 2099 integrated into Xquartz as a separate thread) 2100 (default: no) 2101 --enable-xwin Build XWin server (default: auto) 2102 --enable-kdrive Build kdrive servers (default: no) 2103 --enable-xephyr Build the kdrive Xephyr server (default: auto) 2104 --enable-xfake Build the kdrive 'fake' server (default: auto) 2105 --enable-xfbdev Build the kdrive framebuffer device server (default: 2106 auto) 2107 --enable-kdrive-kbd Build kbd driver for kdrive (default: auto) 2108 --enable-kdrive-mouse Build mouse driver for kdrive (default: auto) 2109 --enable-kdrive-evdev Build evdev driver for kdrive (default: auto) 2110 --enable-install-setuid Install Xorg server as owned by root with setuid bit 2111 (default: auto) 2112 --enable-unix-transport Enable UNIX domain socket transport 2113 --enable-tcp-transport Enable TCP socket transport 2114 --enable-ipv6 Enable IPv6 support 2115 --enable-local-transport 2116 Enable os-specific local transport 2117 --enable-secure-rpc Enable Secure RPC 2118 --enable-docs Enable building the documentation (default: yes) 2119 --enable-devel-docs Enable building the developer documentation 2120 (default: yes) 2121 2122Optional Packages: 2123 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2124 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2125 --with-doxygen Use doxygen to regenerate documentation (default: 2126 auto) 2127 --with-pic try to use only PIC/non-PIC objects [default=use 2128 both] 2129 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2130 --with-sysroot=DIR Search for dependent libraries within DIR 2131 (or the compiler's sysroot if not specified). 2132 --with-dtrace=PATH Enable dtrace probes (default: enabled if dtrace 2133 found) 2134 --with-int10=BACKEND int10 backend: vm86, x86emu or stub 2135 --with-vendor-name=VENDOR 2136 Vendor string reported by the server 2137 --with-vendor-name-short=VENDOR 2138 Short version of vendor string reported by the 2139 server 2140 --with-vendor-web=URL Vendor web address reported by the server 2141 --with-module-dir=DIR Directory where modules are installed (default: 2142 $libdir/xorg/modules) 2143 --with-log-dir=DIR Directory where log files are kept (default: 2144 $localstatedir/log) 2145 --with-builder-addr=ADDRESS 2146 Builder address (default: 2147 xorg@lists.freedesktop.org) 2148 --with-os-name=OSNAME Name of OS (default: output of "uname -srm") 2149 --with-os-vendor=OSVENDOR 2150 Name of OS vendor 2151 --with-builderstring=BUILDERSTRING 2152 Additional builder string 2153 --with-fontrootdir=DIR Path to root directory for font files 2154 --with-fontmiscdir=DIR Path to misc files [FONTROOTDIR/misc] 2155 --with-fontotfdir=DIR Path to OTF files [FONTROOTDIR/OTF] 2156 --with-fontttfdir=DIR Path to TTF files [FONTROOTDIR/TTF] 2157 --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1] 2158 --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi] 2159 --with-font100dpidir=DIR 2160 Path to 100dpi files [FONTROOTDIR/100dpi] 2161 --with-default-font-path=PATH 2162 Comma separated list of font dirs 2163 --with-xkb-path=PATH Path to XKB base dir (default: ${datadir}/X11/xkb) 2164 --with-xkb-output=PATH Path to XKB output dir (default: 2165 ${datadir}/X11/xkb/compiled) 2166 --with-default-xkb-rules=RULES 2167 Keyboard ruleset (default: base/evdev) 2168 --with-default-xkb-model=MODEL 2169 Keyboard model (default: pc105) 2170 --with-default-xkb-layout=LAYOUT 2171 Keyboard layout (default: us) 2172 --with-default-xkb-variant=VARIANT 2173 Keyboard variant (default: (none)) 2174 --with-default-xkb-options=OPTIONS 2175 Keyboard layout options (default: (none)) 2176 --with-serverconfig-path=PATH 2177 Directory where ancillary server config files are 2178 installed (default: ${libdir}/xorg) 2179 --with-apple-applications-dir=PATH 2180 Path to the Applications directory (default: 2181 /Applications/Utilities) 2182 --with-apple-application-name=NAME 2183 Name for the .app (default: X11) 2184 --with-launchd-id-prefix=PATH 2185 Prefix to use for launchd identifiers (default: 2186 org.x) 2187 --with-xmlto Use xmlto to regenerate documentation (default: 2188 auto) 2189 --with-fop Use fop to regenerate documentation (default: auto) 2190 --with-xkb-bin-directory=DIR 2191 Directory containing xkbcomp program 2192 --with-sha1=libc|libmd|libgcrypt|libcrypto|libsha1|CommonCrypto 2193 choose SHA1 implementation 2194 2195Some influential environment variables: 2196 CC C compiler command 2197 CFLAGS C compiler flags 2198 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2199 nonstandard directory <lib dir> 2200 LIBS libraries to pass to the linker, e.g. -l<library> 2201 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2202 you have headers in a nonstandard directory <include dir> 2203 CPP C preprocessor 2204 PKG_CONFIG path to pkg-config utility 2205 PKG_CONFIG_PATH 2206 directories to add to pkg-config's search path 2207 PKG_CONFIG_LIBDIR 2208 path overriding pkg-config's built-in search path 2209 DOXYGEN Path to doxygen command 2210 CCAS assembler compiler command (defaults to CC) 2211 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 2212 YACC The `Yet Another Compiler Compiler' implementation to use. 2213 Defaults to the first program found out of: `bison -y', `byacc', 2214 `yacc'. 2215 YFLAGS The list of arguments that will be passed by default to $YACC. 2216 This script will default YFLAGS to the empty string to avoid a 2217 default value of `-d' given by some make applications. 2218 XMLTO Path to xmlto command 2219 FOP Path to fop command 2220 PIXMAN_CFLAGS 2221 C compiler flags for PIXMAN, overriding pkg-config 2222 PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config 2223 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config 2224 UDEV_LIBS linker flags for UDEV, overriding pkg-config 2225 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config 2226 DBUS_LIBS linker flags for DBUS, overriding pkg-config 2227 HAL_CFLAGS C compiler flags for HAL, overriding pkg-config 2228 HAL_LIBS linker flags for HAL, overriding pkg-config 2229 XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config 2230 XLIB_LIBS linker flags for XLIB, overriding pkg-config 2231 GL_CFLAGS C compiler flags for GL, overriding pkg-config 2232 GL_LIBS linker flags for GL, overriding pkg-config 2233 DRIPROTO_CFLAGS 2234 C compiler flags for DRIPROTO, overriding pkg-config 2235 DRIPROTO_LIBS 2236 linker flags for DRIPROTO, overriding pkg-config 2237 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 2238 DRI_LIBS linker flags for DRI, overriding pkg-config 2239 DRI2PROTO_CFLAGS 2240 C compiler flags for DRI2PROTO, overriding pkg-config 2241 DRI2PROTO_LIBS 2242 linker flags for DRI2PROTO, overriding pkg-config 2243 LIBDRM_CFLAGS 2244 C compiler flags for LIBDRM, overriding pkg-config 2245 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config 2246 SELINUX_CFLAGS 2247 C compiler flags for SELINUX, overriding pkg-config 2248 SELINUX_LIBS 2249 linker flags for SELINUX, overriding pkg-config 2250 XDMCP_CFLAGS 2251 C compiler flags for XDMCP, overriding pkg-config 2252 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config 2253 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config 2254 GLIB_LIBS linker flags for GLIB, overriding pkg-config 2255 LIBSHA1_CFLAGS 2256 C compiler flags for LIBSHA1, overriding pkg-config 2257 LIBSHA1_LIBS 2258 linker flags for LIBSHA1, overriding pkg-config 2259 OPENSSL_CFLAGS 2260 C compiler flags for OPENSSL, overriding pkg-config 2261 OPENSSL_LIBS 2262 linker flags for OPENSSL, overriding pkg-config 2263 XSERVERCFLAGS_CFLAGS 2264 C compiler flags for XSERVERCFLAGS, overriding pkg-config 2265 XSERVERCFLAGS_LIBS 2266 linker flags for XSERVERCFLAGS, overriding pkg-config 2267 XSERVERLIBS_CFLAGS 2268 C compiler flags for XSERVERLIBS, overriding pkg-config 2269 XSERVERLIBS_LIBS 2270 linker flags for XSERVERLIBS, overriding pkg-config 2271 XNESTMODULES_CFLAGS 2272 C compiler flags for XNESTMODULES, overriding pkg-config 2273 XNESTMODULES_LIBS 2274 linker flags for XNESTMODULES, overriding pkg-config 2275 PCIACCESS_CFLAGS 2276 C compiler flags for PCIACCESS, overriding pkg-config 2277 PCIACCESS_LIBS 2278 linker flags for PCIACCESS, overriding pkg-config 2279 DGA_CFLAGS C compiler flags for DGA, overriding pkg-config 2280 DGA_LIBS linker flags for DGA, overriding pkg-config 2281 XF86VIDMODE_CFLAGS 2282 C compiler flags for XF86VIDMODE, overriding pkg-config 2283 XF86VIDMODE_LIBS 2284 linker flags for XF86VIDMODE, overriding pkg-config 2285 XORG_MODULES_CFLAGS 2286 C compiler flags for XORG_MODULES, overriding pkg-config 2287 XORG_MODULES_LIBS 2288 linker flags for XORG_MODULES, overriding pkg-config 2289 XWINMODULES_CFLAGS 2290 C compiler flags for XWINMODULES, overriding pkg-config 2291 XWINMODULES_LIBS 2292 linker flags for XWINMODULES, overriding pkg-config 2293 WINDOWSWM_CFLAGS 2294 C compiler flags for WINDOWSWM, overriding pkg-config 2295 WINDOWSWM_LIBS 2296 linker flags for WINDOWSWM, overriding pkg-config 2297 XPBPROXY_CFLAGS 2298 C compiler flags for XPBPROXY, overriding pkg-config 2299 XPBPROXY_LIBS 2300 linker flags for XPBPROXY, overriding pkg-config 2301 DMXMODULES_CFLAGS 2302 C compiler flags for DMXMODULES, overriding pkg-config 2303 DMXMODULES_LIBS 2304 linker flags for DMXMODULES, overriding pkg-config 2305 XDMXCONFIG_DEP_CFLAGS 2306 C compiler flags for XDMXCONFIG_DEP, overriding pkg-config 2307 XDMXCONFIG_DEP_LIBS 2308 linker flags for XDMXCONFIG_DEP, overriding pkg-config 2309 DMXEXAMPLES_DEP_CFLAGS 2310 C compiler flags for DMXEXAMPLES_DEP, overriding pkg-config 2311 DMXEXAMPLES_DEP_LIBS 2312 linker flags for DMXEXAMPLES_DEP, overriding pkg-config 2313 DMXXMUEXAMPLES_DEP_CFLAGS 2314 C compiler flags for DMXXMUEXAMPLES_DEP, overriding pkg-config 2315 DMXXMUEXAMPLES_DEP_LIBS 2316 linker flags for DMXXMUEXAMPLES_DEP, overriding pkg-config 2317 DMXXIEXAMPLES_DEP_CFLAGS 2318 C compiler flags for DMXXIEXAMPLES_DEP, overriding pkg-config 2319 DMXXIEXAMPLES_DEP_LIBS 2320 linker flags for DMXXIEXAMPLES_DEP, overriding pkg-config 2321 XTSTEXAMPLES_DEP_CFLAGS 2322 C compiler flags for XTSTEXAMPLES_DEP, overriding pkg-config 2323 XTSTEXAMPLES_DEP_LIBS 2324 linker flags for XTSTEXAMPLES_DEP, overriding pkg-config 2325 XRESEXAMPLES_DEP_CFLAGS 2326 C compiler flags for XRESEXAMPLES_DEP, overriding pkg-config 2327 XRESEXAMPLES_DEP_LIBS 2328 linker flags for XRESEXAMPLES_DEP, overriding pkg-config 2329 X11EXAMPLES_DEP_CFLAGS 2330 C compiler flags for X11EXAMPLES_DEP, overriding pkg-config 2331 X11EXAMPLES_DEP_LIBS 2332 linker flags for X11EXAMPLES_DEP, overriding pkg-config 2333 TSLIB_CFLAGS 2334 C compiler flags for TSLIB, overriding pkg-config 2335 TSLIB_LIBS linker flags for TSLIB, overriding pkg-config 2336 XEPHYR_CFLAGS 2337 C compiler flags for XEPHYR, overriding pkg-config 2338 XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config 2339 2340Use these variables to override the choices made by `configure' or to help 2341it to find libraries and programs with nonstandard names/locations. 2342 2343Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 2344_ACEOF 2345ac_status=$? 2346fi 2347 2348if test "$ac_init_help" = "recursive"; then 2349 # If there are subdirs, report their specific --help. 2350 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2351 test -d "$ac_dir" || 2352 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2353 continue 2354 ac_builddir=. 2355 2356case "$ac_dir" in 2357.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2358*) 2359 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2360 # A ".." for each directory in $ac_dir_suffix. 2361 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2362 case $ac_top_builddir_sub in 2363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2365 esac ;; 2366esac 2367ac_abs_top_builddir=$ac_pwd 2368ac_abs_builddir=$ac_pwd$ac_dir_suffix 2369# for backward compatibility: 2370ac_top_builddir=$ac_top_build_prefix 2371 2372case $srcdir in 2373 .) # We are building in place. 2374 ac_srcdir=. 2375 ac_top_srcdir=$ac_top_builddir_sub 2376 ac_abs_top_srcdir=$ac_pwd ;; 2377 [\\/]* | ?:[\\/]* ) # Absolute name. 2378 ac_srcdir=$srcdir$ac_dir_suffix; 2379 ac_top_srcdir=$srcdir 2380 ac_abs_top_srcdir=$srcdir ;; 2381 *) # Relative name. 2382 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2383 ac_top_srcdir=$ac_top_build_prefix$srcdir 2384 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2385esac 2386ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2387 2388 cd "$ac_dir" || { ac_status=$?; continue; } 2389 # Check for guested configure. 2390 if test -f "$ac_srcdir/configure.gnu"; then 2391 echo && 2392 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2393 elif test -f "$ac_srcdir/configure"; then 2394 echo && 2395 $SHELL "$ac_srcdir/configure" --help=recursive 2396 else 2397 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2398 fi || ac_status=$? 2399 cd "$ac_pwd" || { ac_status=$?; break; } 2400 done 2401fi 2402 2403test -n "$ac_init_help" && exit $ac_status 2404if $ac_init_version; then 2405 cat <<\_ACEOF 2406xorg-server configure 1.10.3 2407generated by GNU Autoconf 2.68 2408 2409Copyright (C) 2010 Free Software Foundation, Inc. 2410This configure script is free software; the Free Software Foundation 2411gives unlimited permission to copy, distribute and modify it. 2412_ACEOF 2413 exit 2414fi 2415 2416## ------------------------ ## 2417## Autoconf initialization. ## 2418## ------------------------ ## 2419 2420# ac_fn_c_try_compile LINENO 2421# -------------------------- 2422# Try to compile conftest.$ac_ext, and return whether this succeeded. 2423ac_fn_c_try_compile () 2424{ 2425 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2426 rm -f conftest.$ac_objext 2427 if { { ac_try="$ac_compile" 2428case "(($ac_try" in 2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2430 *) ac_try_echo=$ac_try;; 2431esac 2432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2433$as_echo "$ac_try_echo"; } >&5 2434 (eval "$ac_compile") 2>conftest.err 2435 ac_status=$? 2436 if test -s conftest.err; then 2437 grep -v '^ *+' conftest.err >conftest.er1 2438 cat conftest.er1 >&5 2439 mv -f conftest.er1 conftest.err 2440 fi 2441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2442 test $ac_status = 0; } && { 2443 test -z "$ac_c_werror_flag" || 2444 test ! -s conftest.err 2445 } && test -s conftest.$ac_objext; then : 2446 ac_retval=0 2447else 2448 $as_echo "$as_me: failed program was:" >&5 2449sed 's/^/| /' conftest.$ac_ext >&5 2450 2451 ac_retval=1 2452fi 2453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2454 as_fn_set_status $ac_retval 2455 2456} # ac_fn_c_try_compile 2457 2458# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2459# --------------------------------------------- 2460# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2461# accordingly. 2462ac_fn_c_check_decl () 2463{ 2464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2465 as_decl_name=`echo $2|sed 's/ *(.*//'` 2466 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2468$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2469if eval \${$3+:} false; then : 2470 $as_echo_n "(cached) " >&6 2471else 2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2473/* end confdefs.h. */ 2474$4 2475int 2476main () 2477{ 2478#ifndef $as_decl_name 2479#ifdef __cplusplus 2480 (void) $as_decl_use; 2481#else 2482 (void) $as_decl_name; 2483#endif 2484#endif 2485 2486 ; 2487 return 0; 2488} 2489_ACEOF 2490if ac_fn_c_try_compile "$LINENO"; then : 2491 eval "$3=yes" 2492else 2493 eval "$3=no" 2494fi 2495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2496fi 2497eval ac_res=\$$3 2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2499$as_echo "$ac_res" >&6; } 2500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2501 2502} # ac_fn_c_check_decl 2503 2504# ac_fn_c_try_cpp LINENO 2505# ---------------------- 2506# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2507ac_fn_c_try_cpp () 2508{ 2509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2510 if { { ac_try="$ac_cpp conftest.$ac_ext" 2511case "(($ac_try" in 2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2513 *) ac_try_echo=$ac_try;; 2514esac 2515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2516$as_echo "$ac_try_echo"; } >&5 2517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2518 ac_status=$? 2519 if test -s conftest.err; then 2520 grep -v '^ *+' conftest.err >conftest.er1 2521 cat conftest.er1 >&5 2522 mv -f conftest.er1 conftest.err 2523 fi 2524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2525 test $ac_status = 0; } > conftest.i && { 2526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2527 test ! -s conftest.err 2528 }; then : 2529 ac_retval=0 2530else 2531 $as_echo "$as_me: failed program was:" >&5 2532sed 's/^/| /' conftest.$ac_ext >&5 2533 2534 ac_retval=1 2535fi 2536 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2537 as_fn_set_status $ac_retval 2538 2539} # ac_fn_c_try_cpp 2540 2541# ac_fn_c_try_run LINENO 2542# ---------------------- 2543# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2544# that executables *can* be run. 2545ac_fn_c_try_run () 2546{ 2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2548 if { { ac_try="$ac_link" 2549case "(($ac_try" in 2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2551 *) ac_try_echo=$ac_try;; 2552esac 2553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2554$as_echo "$ac_try_echo"; } >&5 2555 (eval "$ac_link") 2>&5 2556 ac_status=$? 2557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2558 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2559 { { case "(($ac_try" in 2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2561 *) ac_try_echo=$ac_try;; 2562esac 2563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2564$as_echo "$ac_try_echo"; } >&5 2565 (eval "$ac_try") 2>&5 2566 ac_status=$? 2567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2568 test $ac_status = 0; }; }; then : 2569 ac_retval=0 2570else 2571 $as_echo "$as_me: program exited with status $ac_status" >&5 2572 $as_echo "$as_me: failed program was:" >&5 2573sed 's/^/| /' conftest.$ac_ext >&5 2574 2575 ac_retval=$ac_status 2576fi 2577 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2579 as_fn_set_status $ac_retval 2580 2581} # ac_fn_c_try_run 2582 2583# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2584# ------------------------------------------------------- 2585# Tests whether HEADER exists and can be compiled using the include files in 2586# INCLUDES, setting the cache variable VAR accordingly. 2587ac_fn_c_check_header_compile () 2588{ 2589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2591$as_echo_n "checking for $2... " >&6; } 2592if eval \${$3+:} false; then : 2593 $as_echo_n "(cached) " >&6 2594else 2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2596/* end confdefs.h. */ 2597$4 2598#include <$2> 2599_ACEOF 2600if ac_fn_c_try_compile "$LINENO"; then : 2601 eval "$3=yes" 2602else 2603 eval "$3=no" 2604fi 2605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2606fi 2607eval ac_res=\$$3 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2609$as_echo "$ac_res" >&6; } 2610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2611 2612} # ac_fn_c_check_header_compile 2613 2614# ac_fn_c_try_link LINENO 2615# ----------------------- 2616# Try to link conftest.$ac_ext, and return whether this succeeded. 2617ac_fn_c_try_link () 2618{ 2619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2620 rm -f conftest.$ac_objext conftest$ac_exeext 2621 if { { ac_try="$ac_link" 2622case "(($ac_try" in 2623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2624 *) ac_try_echo=$ac_try;; 2625esac 2626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2627$as_echo "$ac_try_echo"; } >&5 2628 (eval "$ac_link") 2>conftest.err 2629 ac_status=$? 2630 if test -s conftest.err; then 2631 grep -v '^ *+' conftest.err >conftest.er1 2632 cat conftest.er1 >&5 2633 mv -f conftest.er1 conftest.err 2634 fi 2635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2636 test $ac_status = 0; } && { 2637 test -z "$ac_c_werror_flag" || 2638 test ! -s conftest.err 2639 } && test -s conftest$ac_exeext && { 2640 test "$cross_compiling" = yes || 2641 $as_test_x conftest$ac_exeext 2642 }; then : 2643 ac_retval=0 2644else 2645 $as_echo "$as_me: failed program was:" >&5 2646sed 's/^/| /' conftest.$ac_ext >&5 2647 2648 ac_retval=1 2649fi 2650 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2651 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2652 # interfere with the next link command; also delete a directory that is 2653 # left behind by Apple's compiler. We do this before executing the actions. 2654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2656 as_fn_set_status $ac_retval 2657 2658} # ac_fn_c_try_link 2659 2660# ac_fn_c_check_func LINENO FUNC VAR 2661# ---------------------------------- 2662# Tests whether FUNC exists, setting the cache variable VAR accordingly 2663ac_fn_c_check_func () 2664{ 2665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2667$as_echo_n "checking for $2... " >&6; } 2668if eval \${$3+:} false; then : 2669 $as_echo_n "(cached) " >&6 2670else 2671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2672/* end confdefs.h. */ 2673/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2674 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2675#define $2 innocuous_$2 2676 2677/* System header to define __stub macros and hopefully few prototypes, 2678 which can conflict with char $2 (); below. 2679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2680 <limits.h> exists even on freestanding compilers. */ 2681 2682#ifdef __STDC__ 2683# include <limits.h> 2684#else 2685# include <assert.h> 2686#endif 2687 2688#undef $2 2689 2690/* Override any GCC internal prototype to avoid an error. 2691 Use char because int might match the return type of a GCC 2692 builtin and then its argument prototype would still apply. */ 2693#ifdef __cplusplus 2694extern "C" 2695#endif 2696char $2 (); 2697/* The GNU C library defines this for functions which it implements 2698 to always fail with ENOSYS. Some functions are actually named 2699 something starting with __ and the normal name is an alias. */ 2700#if defined __stub_$2 || defined __stub___$2 2701choke me 2702#endif 2703 2704int 2705main () 2706{ 2707return $2 (); 2708 ; 2709 return 0; 2710} 2711_ACEOF 2712if ac_fn_c_try_link "$LINENO"; then : 2713 eval "$3=yes" 2714else 2715 eval "$3=no" 2716fi 2717rm -f core conftest.err conftest.$ac_objext \ 2718 conftest$ac_exeext conftest.$ac_ext 2719fi 2720eval ac_res=\$$3 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2722$as_echo "$ac_res" >&6; } 2723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2724 2725} # ac_fn_c_check_func 2726 2727# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2728# ------------------------------------------------------- 2729# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2730# the include files in INCLUDES and setting the cache variable VAR 2731# accordingly. 2732ac_fn_c_check_header_mongrel () 2733{ 2734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2735 if eval \${$3+:} false; then : 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2737$as_echo_n "checking for $2... " >&6; } 2738if eval \${$3+:} false; then : 2739 $as_echo_n "(cached) " >&6 2740fi 2741eval ac_res=\$$3 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2743$as_echo "$ac_res" >&6; } 2744else 2745 # Is the header compilable? 2746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2747$as_echo_n "checking $2 usability... " >&6; } 2748cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2749/* end confdefs.h. */ 2750$4 2751#include <$2> 2752_ACEOF 2753if ac_fn_c_try_compile "$LINENO"; then : 2754 ac_header_compiler=yes 2755else 2756 ac_header_compiler=no 2757fi 2758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2760$as_echo "$ac_header_compiler" >&6; } 2761 2762# Is the header present? 2763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2764$as_echo_n "checking $2 presence... " >&6; } 2765cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2766/* end confdefs.h. */ 2767#include <$2> 2768_ACEOF 2769if ac_fn_c_try_cpp "$LINENO"; then : 2770 ac_header_preproc=yes 2771else 2772 ac_header_preproc=no 2773fi 2774rm -f conftest.err conftest.i conftest.$ac_ext 2775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2776$as_echo "$ac_header_preproc" >&6; } 2777 2778# So? What about this header? 2779case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2780 yes:no: ) 2781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2782$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2784$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2785 ;; 2786 no:yes:* ) 2787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2788$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2790$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2792$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2794$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2796$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2797( $as_echo "## ---------------------------------------------------------------------- ## 2798## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 2799## ---------------------------------------------------------------------- ##" 2800 ) | sed "s/^/$as_me: WARNING: /" >&2 2801 ;; 2802esac 2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2804$as_echo_n "checking for $2... " >&6; } 2805if eval \${$3+:} false; then : 2806 $as_echo_n "(cached) " >&6 2807else 2808 eval "$3=\$ac_header_compiler" 2809fi 2810eval ac_res=\$$3 2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2812$as_echo "$ac_res" >&6; } 2813fi 2814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2815 2816} # ac_fn_c_check_header_mongrel 2817 2818# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2819# -------------------------------------------- 2820# Tries to find the compile-time value of EXPR in a program that includes 2821# INCLUDES, setting VAR accordingly. Returns whether the value could be 2822# computed 2823ac_fn_c_compute_int () 2824{ 2825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2826 if test "$cross_compiling" = yes; then 2827 # Depending upon the size, compute the lo and hi bounds. 2828cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2829/* end confdefs.h. */ 2830$4 2831int 2832main () 2833{ 2834static int test_array [1 - 2 * !(($2) >= 0)]; 2835test_array [0] = 0 2836 2837 ; 2838 return 0; 2839} 2840_ACEOF 2841if ac_fn_c_try_compile "$LINENO"; then : 2842 ac_lo=0 ac_mid=0 2843 while :; do 2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2845/* end confdefs.h. */ 2846$4 2847int 2848main () 2849{ 2850static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2851test_array [0] = 0 2852 2853 ; 2854 return 0; 2855} 2856_ACEOF 2857if ac_fn_c_try_compile "$LINENO"; then : 2858 ac_hi=$ac_mid; break 2859else 2860 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2861 if test $ac_lo -le $ac_mid; then 2862 ac_lo= ac_hi= 2863 break 2864 fi 2865 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2866fi 2867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2868 done 2869else 2870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2871/* end confdefs.h. */ 2872$4 2873int 2874main () 2875{ 2876static int test_array [1 - 2 * !(($2) < 0)]; 2877test_array [0] = 0 2878 2879 ; 2880 return 0; 2881} 2882_ACEOF 2883if ac_fn_c_try_compile "$LINENO"; then : 2884 ac_hi=-1 ac_mid=-1 2885 while :; do 2886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2887/* end confdefs.h. */ 2888$4 2889int 2890main () 2891{ 2892static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2893test_array [0] = 0 2894 2895 ; 2896 return 0; 2897} 2898_ACEOF 2899if ac_fn_c_try_compile "$LINENO"; then : 2900 ac_lo=$ac_mid; break 2901else 2902 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2903 if test $ac_mid -le $ac_hi; then 2904 ac_lo= ac_hi= 2905 break 2906 fi 2907 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2908fi 2909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2910 done 2911else 2912 ac_lo= ac_hi= 2913fi 2914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2915fi 2916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2917# Binary search between lo and hi bounds. 2918while test "x$ac_lo" != "x$ac_hi"; do 2919 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2921/* end confdefs.h. */ 2922$4 2923int 2924main () 2925{ 2926static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2927test_array [0] = 0 2928 2929 ; 2930 return 0; 2931} 2932_ACEOF 2933if ac_fn_c_try_compile "$LINENO"; then : 2934 ac_hi=$ac_mid 2935else 2936 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2937fi 2938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2939done 2940case $ac_lo in #(( 2941?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2942'') ac_retval=1 ;; 2943esac 2944 else 2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2946/* end confdefs.h. */ 2947$4 2948static long int longval () { return $2; } 2949static unsigned long int ulongval () { return $2; } 2950#include <stdio.h> 2951#include <stdlib.h> 2952int 2953main () 2954{ 2955 2956 FILE *f = fopen ("conftest.val", "w"); 2957 if (! f) 2958 return 1; 2959 if (($2) < 0) 2960 { 2961 long int i = longval (); 2962 if (i != ($2)) 2963 return 1; 2964 fprintf (f, "%ld", i); 2965 } 2966 else 2967 { 2968 unsigned long int i = ulongval (); 2969 if (i != ($2)) 2970 return 1; 2971 fprintf (f, "%lu", i); 2972 } 2973 /* Do not output a trailing newline, as this causes \r\n confusion 2974 on some platforms. */ 2975 return ferror (f) || fclose (f) != 0; 2976 2977 ; 2978 return 0; 2979} 2980_ACEOF 2981if ac_fn_c_try_run "$LINENO"; then : 2982 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2983else 2984 ac_retval=1 2985fi 2986rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2987 conftest.$ac_objext conftest.beam conftest.$ac_ext 2988rm -f conftest.val 2989 2990 fi 2991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2992 as_fn_set_status $ac_retval 2993 2994} # ac_fn_c_compute_int 2995 2996# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2997# ------------------------------------------- 2998# Tests whether TYPE exists after having included INCLUDES, setting cache 2999# variable VAR accordingly. 3000ac_fn_c_check_type () 3001{ 3002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3004$as_echo_n "checking for $2... " >&6; } 3005if eval \${$3+:} false; then : 3006 $as_echo_n "(cached) " >&6 3007else 3008 eval "$3=no" 3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3010/* end confdefs.h. */ 3011$4 3012int 3013main () 3014{ 3015if (sizeof ($2)) 3016 return 0; 3017 ; 3018 return 0; 3019} 3020_ACEOF 3021if ac_fn_c_try_compile "$LINENO"; then : 3022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3023/* end confdefs.h. */ 3024$4 3025int 3026main () 3027{ 3028if (sizeof (($2))) 3029 return 0; 3030 ; 3031 return 0; 3032} 3033_ACEOF 3034if ac_fn_c_try_compile "$LINENO"; then : 3035 3036else 3037 eval "$3=yes" 3038fi 3039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3040fi 3041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3042fi 3043eval ac_res=\$$3 3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3045$as_echo "$ac_res" >&6; } 3046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3047 3048} # ac_fn_c_check_type 3049 3050# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 3051# ---------------------------------------------------- 3052# Tries to find if the field MEMBER exists in type AGGR, after including 3053# INCLUDES, setting cache variable VAR accordingly. 3054ac_fn_c_check_member () 3055{ 3056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 3058$as_echo_n "checking for $2.$3... " >&6; } 3059if eval \${$4+:} false; then : 3060 $as_echo_n "(cached) " >&6 3061else 3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3063/* end confdefs.h. */ 3064$5 3065int 3066main () 3067{ 3068static $2 ac_aggr; 3069if (ac_aggr.$3) 3070return 0; 3071 ; 3072 return 0; 3073} 3074_ACEOF 3075if ac_fn_c_try_compile "$LINENO"; then : 3076 eval "$4=yes" 3077else 3078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3079/* end confdefs.h. */ 3080$5 3081int 3082main () 3083{ 3084static $2 ac_aggr; 3085if (sizeof ac_aggr.$3) 3086return 0; 3087 ; 3088 return 0; 3089} 3090_ACEOF 3091if ac_fn_c_try_compile "$LINENO"; then : 3092 eval "$4=yes" 3093else 3094 eval "$4=no" 3095fi 3096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3097fi 3098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3099fi 3100eval ac_res=\$$4 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3102$as_echo "$ac_res" >&6; } 3103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3104 3105} # ac_fn_c_check_member 3106cat >config.log <<_ACEOF 3107This file contains any messages produced by compilers while 3108running configure, to aid debugging if configure makes a mistake. 3109 3110It was created by xorg-server $as_me 1.10.3, which was 3111generated by GNU Autoconf 2.68. Invocation command line was 3112 3113 $ $0 $@ 3114 3115_ACEOF 3116exec 5>>config.log 3117{ 3118cat <<_ASUNAME 3119## --------- ## 3120## Platform. ## 3121## --------- ## 3122 3123hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3124uname -m = `(uname -m) 2>/dev/null || echo unknown` 3125uname -r = `(uname -r) 2>/dev/null || echo unknown` 3126uname -s = `(uname -s) 2>/dev/null || echo unknown` 3127uname -v = `(uname -v) 2>/dev/null || echo unknown` 3128 3129/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3130/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3131 3132/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3133/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3134/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3135/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3136/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3137/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3138/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3139 3140_ASUNAME 3141 3142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3143for as_dir in $PATH 3144do 3145 IFS=$as_save_IFS 3146 test -z "$as_dir" && as_dir=. 3147 $as_echo "PATH: $as_dir" 3148 done 3149IFS=$as_save_IFS 3150 3151} >&5 3152 3153cat >&5 <<_ACEOF 3154 3155 3156## ----------- ## 3157## Core tests. ## 3158## ----------- ## 3159 3160_ACEOF 3161 3162 3163# Keep a trace of the command line. 3164# Strip out --no-create and --no-recursion so they do not pile up. 3165# Strip out --silent because we don't want to record it for future runs. 3166# Also quote any args containing shell meta-characters. 3167# Make two passes to allow for proper duplicate-argument suppression. 3168ac_configure_args= 3169ac_configure_args0= 3170ac_configure_args1= 3171ac_must_keep_next=false 3172for ac_pass in 1 2 3173do 3174 for ac_arg 3175 do 3176 case $ac_arg in 3177 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3179 | -silent | --silent | --silen | --sile | --sil) 3180 continue ;; 3181 *\'*) 3182 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3183 esac 3184 case $ac_pass in 3185 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3186 2) 3187 as_fn_append ac_configure_args1 " '$ac_arg'" 3188 if test $ac_must_keep_next = true; then 3189 ac_must_keep_next=false # Got value, back to normal. 3190 else 3191 case $ac_arg in 3192 *=* | --config-cache | -C | -disable-* | --disable-* \ 3193 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3194 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3195 | -with-* | --with-* | -without-* | --without-* | --x) 3196 case "$ac_configure_args0 " in 3197 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3198 esac 3199 ;; 3200 -* ) ac_must_keep_next=true ;; 3201 esac 3202 fi 3203 as_fn_append ac_configure_args " '$ac_arg'" 3204 ;; 3205 esac 3206 done 3207done 3208{ ac_configure_args0=; unset ac_configure_args0;} 3209{ ac_configure_args1=; unset ac_configure_args1;} 3210 3211# When interrupted or exit'd, cleanup temporary files, and complete 3212# config.log. We remove comments because anyway the quotes in there 3213# would cause problems or look ugly. 3214# WARNING: Use '\'' to represent an apostrophe within the trap. 3215# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3216trap 'exit_status=$? 3217 # Save into config.log some information that might help in debugging. 3218 { 3219 echo 3220 3221 $as_echo "## ---------------- ## 3222## Cache variables. ## 3223## ---------------- ##" 3224 echo 3225 # The following way of writing the cache mishandles newlines in values, 3226( 3227 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3228 eval ac_val=\$$ac_var 3229 case $ac_val in #( 3230 *${as_nl}*) 3231 case $ac_var in #( 3232 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3233$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3234 esac 3235 case $ac_var in #( 3236 _ | IFS | as_nl) ;; #( 3237 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3238 *) { eval $ac_var=; unset $ac_var;} ;; 3239 esac ;; 3240 esac 3241 done 3242 (set) 2>&1 | 3243 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3244 *${as_nl}ac_space=\ *) 3245 sed -n \ 3246 "s/'\''/'\''\\\\'\'''\''/g; 3247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3248 ;; #( 3249 *) 3250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3251 ;; 3252 esac | 3253 sort 3254) 3255 echo 3256 3257 $as_echo "## ----------------- ## 3258## Output variables. ## 3259## ----------------- ##" 3260 echo 3261 for ac_var in $ac_subst_vars 3262 do 3263 eval ac_val=\$$ac_var 3264 case $ac_val in 3265 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3266 esac 3267 $as_echo "$ac_var='\''$ac_val'\''" 3268 done | sort 3269 echo 3270 3271 if test -n "$ac_subst_files"; then 3272 $as_echo "## ------------------- ## 3273## File substitutions. ## 3274## ------------------- ##" 3275 echo 3276 for ac_var in $ac_subst_files 3277 do 3278 eval ac_val=\$$ac_var 3279 case $ac_val in 3280 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3281 esac 3282 $as_echo "$ac_var='\''$ac_val'\''" 3283 done | sort 3284 echo 3285 fi 3286 3287 if test -s confdefs.h; then 3288 $as_echo "## ----------- ## 3289## confdefs.h. ## 3290## ----------- ##" 3291 echo 3292 cat confdefs.h 3293 echo 3294 fi 3295 test "$ac_signal" != 0 && 3296 $as_echo "$as_me: caught signal $ac_signal" 3297 $as_echo "$as_me: exit $exit_status" 3298 } >&5 3299 rm -f core *.core core.conftest.* && 3300 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3301 exit $exit_status 3302' 0 3303for ac_signal in 1 2 13 15; do 3304 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3305done 3306ac_signal=0 3307 3308# confdefs.h avoids OS command line length limits that DEFS can exceed. 3309rm -f -r conftest* confdefs.h 3310 3311$as_echo "/* confdefs.h */" > confdefs.h 3312 3313# Predefined preprocessor variables. 3314 3315cat >>confdefs.h <<_ACEOF 3316#define PACKAGE_NAME "$PACKAGE_NAME" 3317_ACEOF 3318 3319cat >>confdefs.h <<_ACEOF 3320#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3321_ACEOF 3322 3323cat >>confdefs.h <<_ACEOF 3324#define PACKAGE_VERSION "$PACKAGE_VERSION" 3325_ACEOF 3326 3327cat >>confdefs.h <<_ACEOF 3328#define PACKAGE_STRING "$PACKAGE_STRING" 3329_ACEOF 3330 3331cat >>confdefs.h <<_ACEOF 3332#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3333_ACEOF 3334 3335cat >>confdefs.h <<_ACEOF 3336#define PACKAGE_URL "$PACKAGE_URL" 3337_ACEOF 3338 3339 3340# Let the site file select an alternate cache file if it wants to. 3341# Prefer an explicitly selected file to automatically selected ones. 3342ac_site_file1=NONE 3343ac_site_file2=NONE 3344if test -n "$CONFIG_SITE"; then 3345 # We do not want a PATH search for config.site. 3346 case $CONFIG_SITE in #(( 3347 -*) ac_site_file1=./$CONFIG_SITE;; 3348 */*) ac_site_file1=$CONFIG_SITE;; 3349 *) ac_site_file1=./$CONFIG_SITE;; 3350 esac 3351elif test "x$prefix" != xNONE; then 3352 ac_site_file1=$prefix/share/config.site 3353 ac_site_file2=$prefix/etc/config.site 3354else 3355 ac_site_file1=$ac_default_prefix/share/config.site 3356 ac_site_file2=$ac_default_prefix/etc/config.site 3357fi 3358for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3359do 3360 test "x$ac_site_file" = xNONE && continue 3361 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3362 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3363$as_echo "$as_me: loading site script $ac_site_file" >&6;} 3364 sed 's/^/| /' "$ac_site_file" >&5 3365 . "$ac_site_file" \ 3366 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3368as_fn_error $? "failed to load site script $ac_site_file 3369See \`config.log' for more details" "$LINENO" 5; } 3370 fi 3371done 3372 3373if test -r "$cache_file"; then 3374 # Some versions of bash will fail to source /dev/null (special files 3375 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3376 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3377 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3378$as_echo "$as_me: loading cache $cache_file" >&6;} 3379 case $cache_file in 3380 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3381 *) . "./$cache_file";; 3382 esac 3383 fi 3384else 3385 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3386$as_echo "$as_me: creating cache $cache_file" >&6;} 3387 >$cache_file 3388fi 3389 3390# Check that the precious variables saved in the cache have kept the same 3391# value. 3392ac_cache_corrupted=false 3393for ac_var in $ac_precious_vars; do 3394 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3395 eval ac_new_set=\$ac_env_${ac_var}_set 3396 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3397 eval ac_new_val=\$ac_env_${ac_var}_value 3398 case $ac_old_set,$ac_new_set in 3399 set,) 3400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3401$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3402 ac_cache_corrupted=: ;; 3403 ,set) 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3405$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3406 ac_cache_corrupted=: ;; 3407 ,);; 3408 *) 3409 if test "x$ac_old_val" != "x$ac_new_val"; then 3410 # differences in whitespace do not lead to failure. 3411 ac_old_val_w=`echo x $ac_old_val` 3412 ac_new_val_w=`echo x $ac_new_val` 3413 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3415$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3416 ac_cache_corrupted=: 3417 else 3418 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3419$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3420 eval $ac_var=\$ac_old_val 3421 fi 3422 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3423$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3424 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3425$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3426 fi;; 3427 esac 3428 # Pass precious variables to config.status. 3429 if test "$ac_new_set" = set; then 3430 case $ac_new_val in 3431 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3432 *) ac_arg=$ac_var=$ac_new_val ;; 3433 esac 3434 case " $ac_configure_args " in 3435 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3436 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3437 esac 3438 fi 3439done 3440if $ac_cache_corrupted; then 3441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3444$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3445 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3446fi 3447## -------------------- ## 3448## Main body of script. ## 3449## -------------------- ## 3450 3451ac_ext=c 3452ac_cpp='$CPP $CPPFLAGS' 3453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3455ac_compiler_gnu=$ac_cv_c_compiler_gnu 3456 3457 3458RELEASE_DATE="2011-07-08" 3459 3460am__api_version='1.11' 3461 3462ac_aux_dir= 3463for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3464 if test -f "$ac_dir/install-sh"; then 3465 ac_aux_dir=$ac_dir 3466 ac_install_sh="$ac_aux_dir/install-sh -c" 3467 break 3468 elif test -f "$ac_dir/install.sh"; then 3469 ac_aux_dir=$ac_dir 3470 ac_install_sh="$ac_aux_dir/install.sh -c" 3471 break 3472 elif test -f "$ac_dir/shtool"; then 3473 ac_aux_dir=$ac_dir 3474 ac_install_sh="$ac_aux_dir/shtool install -c" 3475 break 3476 fi 3477done 3478if test -z "$ac_aux_dir"; then 3479 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3480fi 3481 3482# These three variables are undocumented and unsupported, 3483# and are intended to be withdrawn in a future Autoconf release. 3484# They can cause serious problems if a builder's source tree is in a directory 3485# whose full name contains unusual characters. 3486ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3487ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3488ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3489 3490 3491# Find a good install program. We prefer a C program (faster), 3492# so one script is as good as another. But avoid the broken or 3493# incompatible versions: 3494# SysV /etc/install, /usr/sbin/install 3495# SunOS /usr/etc/install 3496# IRIX /sbin/install 3497# AIX /bin/install 3498# AmigaOS /C/install, which installs bootblocks on floppy discs 3499# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3500# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3501# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3502# OS/2's system install, which has a completely different semantic 3503# ./install, which can be erroneously created by make from ./install.sh. 3504# Reject install programs that cannot install multiple files. 3505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3506$as_echo_n "checking for a BSD-compatible install... " >&6; } 3507if test -z "$INSTALL"; then 3508if ${ac_cv_path_install+:} false; then : 3509 $as_echo_n "(cached) " >&6 3510else 3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3512for as_dir in $PATH 3513do 3514 IFS=$as_save_IFS 3515 test -z "$as_dir" && as_dir=. 3516 # Account for people who put trailing slashes in PATH elements. 3517case $as_dir/ in #(( 3518 ./ | .// | /[cC]/* | \ 3519 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3520 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3521 /usr/ucb/* ) ;; 3522 *) 3523 # OSF1 and SCO ODT 3.0 have their own names for install. 3524 # Don't use installbsd from OSF since it installs stuff as root 3525 # by default. 3526 for ac_prog in ginstall scoinst install; do 3527 for ac_exec_ext in '' $ac_executable_extensions; do 3528 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3529 if test $ac_prog = install && 3530 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3531 # AIX install. It has an incompatible calling convention. 3532 : 3533 elif test $ac_prog = install && 3534 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3535 # program-specific install script used by HP pwplus--don't use. 3536 : 3537 else 3538 rm -rf conftest.one conftest.two conftest.dir 3539 echo one > conftest.one 3540 echo two > conftest.two 3541 mkdir conftest.dir 3542 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3543 test -s conftest.one && test -s conftest.two && 3544 test -s conftest.dir/conftest.one && 3545 test -s conftest.dir/conftest.two 3546 then 3547 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3548 break 3 3549 fi 3550 fi 3551 fi 3552 done 3553 done 3554 ;; 3555esac 3556 3557 done 3558IFS=$as_save_IFS 3559 3560rm -rf conftest.one conftest.two conftest.dir 3561 3562fi 3563 if test "${ac_cv_path_install+set}" = set; then 3564 INSTALL=$ac_cv_path_install 3565 else 3566 # As a last resort, use the slow shell script. Don't cache a 3567 # value for INSTALL within a source directory, because that will 3568 # break other packages using the cache if that directory is 3569 # removed, or if the value is a relative name. 3570 INSTALL=$ac_install_sh 3571 fi 3572fi 3573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3574$as_echo "$INSTALL" >&6; } 3575 3576# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3577# It thinks the first close brace ends the variable substitution. 3578test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3579 3580test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3581 3582test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3583 3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3585$as_echo_n "checking whether build environment is sane... " >&6; } 3586# Just in case 3587sleep 1 3588echo timestamp > conftest.file 3589# Reject unsafe characters in $srcdir or the absolute working directory 3590# name. Accept space and tab only in the latter. 3591am_lf=' 3592' 3593case `pwd` in 3594 *[\\\"\#\$\&\'\`$am_lf]*) 3595 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3596esac 3597case $srcdir in 3598 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3599 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3600esac 3601 3602# Do `set' in a subshell so we don't clobber the current shell's 3603# arguments. Must try -L first in case configure is actually a 3604# symlink; some systems play weird games with the mod time of symlinks 3605# (eg FreeBSD returns the mod time of the symlink's containing 3606# directory). 3607if ( 3608 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3609 if test "$*" = "X"; then 3610 # -L didn't work. 3611 set X `ls -t "$srcdir/configure" conftest.file` 3612 fi 3613 rm -f conftest.file 3614 if test "$*" != "X $srcdir/configure conftest.file" \ 3615 && test "$*" != "X conftest.file $srcdir/configure"; then 3616 3617 # If neither matched, then we have a broken ls. This can happen 3618 # if, for instance, CONFIG_SHELL is bash and it inherits a 3619 # broken ls alias from the environment. This has actually 3620 # happened. Such a system could not be considered "sane". 3621 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3622alias in your environment" "$LINENO" 5 3623 fi 3624 3625 test "$2" = conftest.file 3626 ) 3627then 3628 # Ok. 3629 : 3630else 3631 as_fn_error $? "newly created file is older than distributed files! 3632Check your system clock" "$LINENO" 5 3633fi 3634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3635$as_echo "yes" >&6; } 3636test "$program_prefix" != NONE && 3637 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3638# Use a double $ so make ignores it. 3639test "$program_suffix" != NONE && 3640 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3641# Double any \ or $. 3642# By default was `s,x,x', remove it if useless. 3643ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3644program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3645 3646# expand $ac_aux_dir to an absolute path 3647am_aux_dir=`cd $ac_aux_dir && pwd` 3648 3649if test x"${MISSING+set}" != xset; then 3650 case $am_aux_dir in 3651 *\ * | *\ *) 3652 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3653 *) 3654 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3655 esac 3656fi 3657# Use eval to expand $SHELL 3658if eval "$MISSING --run true"; then 3659 am_missing_run="$MISSING --run " 3660else 3661 am_missing_run= 3662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3663$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3664fi 3665 3666if test x"${install_sh}" != xset; then 3667 case $am_aux_dir in 3668 *\ * | *\ *) 3669 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3670 *) 3671 install_sh="\${SHELL} $am_aux_dir/install-sh" 3672 esac 3673fi 3674 3675# Installed binaries are usually stripped using `strip' when the user 3676# run `make install-strip'. However `strip' might not be the right 3677# tool to use in cross-compilation environments, therefore Automake 3678# will honor the `STRIP' environment variable to overrule this program. 3679if test "$cross_compiling" != no; then 3680 if test -n "$ac_tool_prefix"; then 3681 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3682set dummy ${ac_tool_prefix}strip; ac_word=$2 3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3684$as_echo_n "checking for $ac_word... " >&6; } 3685if ${ac_cv_prog_STRIP+:} false; then : 3686 $as_echo_n "(cached) " >&6 3687else 3688 if test -n "$STRIP"; then 3689 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3690else 3691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3692for as_dir in $PATH 3693do 3694 IFS=$as_save_IFS 3695 test -z "$as_dir" && as_dir=. 3696 for ac_exec_ext in '' $ac_executable_extensions; do 3697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3698 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3700 break 2 3701 fi 3702done 3703 done 3704IFS=$as_save_IFS 3705 3706fi 3707fi 3708STRIP=$ac_cv_prog_STRIP 3709if test -n "$STRIP"; then 3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3711$as_echo "$STRIP" >&6; } 3712else 3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3714$as_echo "no" >&6; } 3715fi 3716 3717 3718fi 3719if test -z "$ac_cv_prog_STRIP"; then 3720 ac_ct_STRIP=$STRIP 3721 # Extract the first word of "strip", so it can be a program name with args. 3722set dummy strip; ac_word=$2 3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3724$as_echo_n "checking for $ac_word... " >&6; } 3725if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3726 $as_echo_n "(cached) " >&6 3727else 3728 if test -n "$ac_ct_STRIP"; then 3729 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3730else 3731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3732for as_dir in $PATH 3733do 3734 IFS=$as_save_IFS 3735 test -z "$as_dir" && as_dir=. 3736 for ac_exec_ext in '' $ac_executable_extensions; do 3737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3738 ac_cv_prog_ac_ct_STRIP="strip" 3739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3740 break 2 3741 fi 3742done 3743 done 3744IFS=$as_save_IFS 3745 3746fi 3747fi 3748ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3749if test -n "$ac_ct_STRIP"; then 3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3751$as_echo "$ac_ct_STRIP" >&6; } 3752else 3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3754$as_echo "no" >&6; } 3755fi 3756 3757 if test "x$ac_ct_STRIP" = x; then 3758 STRIP=":" 3759 else 3760 case $cross_compiling:$ac_tool_warned in 3761yes:) 3762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3764ac_tool_warned=yes ;; 3765esac 3766 STRIP=$ac_ct_STRIP 3767 fi 3768else 3769 STRIP="$ac_cv_prog_STRIP" 3770fi 3771 3772fi 3773INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3774 3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3776$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3777if test -z "$MKDIR_P"; then 3778 if ${ac_cv_path_mkdir+:} false; then : 3779 $as_echo_n "(cached) " >&6 3780else 3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3782for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3783do 3784 IFS=$as_save_IFS 3785 test -z "$as_dir" && as_dir=. 3786 for ac_prog in mkdir gmkdir; do 3787 for ac_exec_ext in '' $ac_executable_extensions; do 3788 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3789 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3790 'mkdir (GNU coreutils) '* | \ 3791 'mkdir (coreutils) '* | \ 3792 'mkdir (fileutils) '4.1*) 3793 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3794 break 3;; 3795 esac 3796 done 3797 done 3798 done 3799IFS=$as_save_IFS 3800 3801fi 3802 3803 test -d ./--version && rmdir ./--version 3804 if test "${ac_cv_path_mkdir+set}" = set; then 3805 MKDIR_P="$ac_cv_path_mkdir -p" 3806 else 3807 # As a last resort, use the slow shell script. Don't cache a 3808 # value for MKDIR_P within a source directory, because that will 3809 # break other packages using the cache if that directory is 3810 # removed, or if the value is a relative name. 3811 MKDIR_P="$ac_install_sh -d" 3812 fi 3813fi 3814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3815$as_echo "$MKDIR_P" >&6; } 3816 3817mkdir_p="$MKDIR_P" 3818case $mkdir_p in 3819 [\\/$]* | ?:[\\/]*) ;; 3820 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3821esac 3822 3823for ac_prog in gawk mawk nawk awk 3824do 3825 # Extract the first word of "$ac_prog", so it can be a program name with args. 3826set dummy $ac_prog; ac_word=$2 3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3828$as_echo_n "checking for $ac_word... " >&6; } 3829if ${ac_cv_prog_AWK+:} false; then : 3830 $as_echo_n "(cached) " >&6 3831else 3832 if test -n "$AWK"; then 3833 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3834else 3835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3836for as_dir in $PATH 3837do 3838 IFS=$as_save_IFS 3839 test -z "$as_dir" && as_dir=. 3840 for ac_exec_ext in '' $ac_executable_extensions; do 3841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3842 ac_cv_prog_AWK="$ac_prog" 3843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3844 break 2 3845 fi 3846done 3847 done 3848IFS=$as_save_IFS 3849 3850fi 3851fi 3852AWK=$ac_cv_prog_AWK 3853if test -n "$AWK"; then 3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3855$as_echo "$AWK" >&6; } 3856else 3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3858$as_echo "no" >&6; } 3859fi 3860 3861 3862 test -n "$AWK" && break 3863done 3864 3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3866$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3867set x ${MAKE-make} 3868ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3869if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3870 $as_echo_n "(cached) " >&6 3871else 3872 cat >conftest.make <<\_ACEOF 3873SHELL = /bin/sh 3874all: 3875 @echo '@@@%%%=$(MAKE)=@@@%%%' 3876_ACEOF 3877# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3878case `${MAKE-make} -f conftest.make 2>/dev/null` in 3879 *@@@%%%=?*=@@@%%%*) 3880 eval ac_cv_prog_make_${ac_make}_set=yes;; 3881 *) 3882 eval ac_cv_prog_make_${ac_make}_set=no;; 3883esac 3884rm -f conftest.make 3885fi 3886if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3888$as_echo "yes" >&6; } 3889 SET_MAKE= 3890else 3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3892$as_echo "no" >&6; } 3893 SET_MAKE="MAKE=${MAKE-make}" 3894fi 3895 3896rm -rf .tst 2>/dev/null 3897mkdir .tst 2>/dev/null 3898if test -d .tst; then 3899 am__leading_dot=. 3900else 3901 am__leading_dot=_ 3902fi 3903rmdir .tst 2>/dev/null 3904 3905if test "`cd $srcdir && pwd`" != "`pwd`"; then 3906 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3907 # is not polluted with repeated "-I." 3908 am__isrc=' -I$(srcdir)' 3909 # test to see if srcdir already configured 3910 if test -f $srcdir/config.status; then 3911 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3912 fi 3913fi 3914 3915# test whether we have cygpath 3916if test -z "$CYGPATH_W"; then 3917 if (cygpath --version) >/dev/null 2>/dev/null; then 3918 CYGPATH_W='cygpath -w' 3919 else 3920 CYGPATH_W=echo 3921 fi 3922fi 3923 3924 3925# Define the identity of the package. 3926 PACKAGE='xorg-server' 3927 VERSION='1.10.3' 3928 3929 3930cat >>confdefs.h <<_ACEOF 3931#define PACKAGE "$PACKAGE" 3932_ACEOF 3933 3934 3935cat >>confdefs.h <<_ACEOF 3936#define VERSION "$VERSION" 3937_ACEOF 3938 3939# Some tools Automake needs. 3940 3941ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3942 3943 3944AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3945 3946 3947AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3948 3949 3950AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3951 3952 3953MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3954 3955# We need awk for the "check" target. The system "awk" is bad on 3956# some platforms. 3957# Always define AMTAR for backward compatibility. 3958 3959AMTAR=${AMTAR-"${am_missing_run}tar"} 3960 3961am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3962 3963 3964 3965 3966 3967 3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3969$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3970 # Check whether --enable-maintainer-mode was given. 3971if test "${enable_maintainer_mode+set}" = set; then : 3972 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3973else 3974 USE_MAINTAINER_MODE=no 3975fi 3976 3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3978$as_echo "$USE_MAINTAINER_MODE" >&6; } 3979 if test $USE_MAINTAINER_MODE = yes; then 3980 MAINTAINER_MODE_TRUE= 3981 MAINTAINER_MODE_FALSE='#' 3982else 3983 MAINTAINER_MODE_TRUE='#' 3984 MAINTAINER_MODE_FALSE= 3985fi 3986 3987 MAINT=$MAINTAINER_MODE_TRUE 3988 3989 3990 3991# Require xorg-macros minimum of 1.10 for XORG_CHECK_SGML_DOCTOOLS 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003DEPDIR="${am__leading_dot}deps" 4004 4005ac_config_commands="$ac_config_commands depfiles" 4006 4007 4008am_make=${MAKE-make} 4009cat > confinc << 'END' 4010am__doit: 4011 @echo this is the am__doit target 4012.PHONY: am__doit 4013END 4014# If we don't find an include directive, just comment out the code. 4015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4016$as_echo_n "checking for style of include used by $am_make... " >&6; } 4017am__include="#" 4018am__quote= 4019_am_result=none 4020# First try GNU make style include. 4021echo "include confinc" > confmf 4022# Ignore all kinds of additional output from `make'. 4023case `$am_make -s -f confmf 2> /dev/null` in #( 4024*the\ am__doit\ target*) 4025 am__include=include 4026 am__quote= 4027 _am_result=GNU 4028 ;; 4029esac 4030# Now try BSD make style include. 4031if test "$am__include" = "#"; then 4032 echo '.include "confinc"' > confmf 4033 case `$am_make -s -f confmf 2> /dev/null` in #( 4034 *the\ am__doit\ target*) 4035 am__include=.include 4036 am__quote="\"" 4037 _am_result=BSD 4038 ;; 4039 esac 4040fi 4041 4042 4043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4044$as_echo "$_am_result" >&6; } 4045rm -f confinc confmf 4046 4047# Check whether --enable-dependency-tracking was given. 4048if test "${enable_dependency_tracking+set}" = set; then : 4049 enableval=$enable_dependency_tracking; 4050fi 4051 4052if test "x$enable_dependency_tracking" != xno; then 4053 am_depcomp="$ac_aux_dir/depcomp" 4054 AMDEPBACKSLASH='\' 4055fi 4056 if test "x$enable_dependency_tracking" != xno; then 4057 AMDEP_TRUE= 4058 AMDEP_FALSE='#' 4059else 4060 AMDEP_TRUE='#' 4061 AMDEP_FALSE= 4062fi 4063 4064 4065ac_ext=c 4066ac_cpp='$CPP $CPPFLAGS' 4067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4069ac_compiler_gnu=$ac_cv_c_compiler_gnu 4070if test -n "$ac_tool_prefix"; then 4071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4072set dummy ${ac_tool_prefix}gcc; ac_word=$2 4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4074$as_echo_n "checking for $ac_word... " >&6; } 4075if ${ac_cv_prog_CC+:} false; then : 4076 $as_echo_n "(cached) " >&6 4077else 4078 if test -n "$CC"; then 4079 ac_cv_prog_CC="$CC" # Let the user override the test. 4080else 4081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4082for as_dir in $PATH 4083do 4084 IFS=$as_save_IFS 4085 test -z "$as_dir" && as_dir=. 4086 for ac_exec_ext in '' $ac_executable_extensions; do 4087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4088 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4090 break 2 4091 fi 4092done 4093 done 4094IFS=$as_save_IFS 4095 4096fi 4097fi 4098CC=$ac_cv_prog_CC 4099if test -n "$CC"; then 4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4101$as_echo "$CC" >&6; } 4102else 4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4104$as_echo "no" >&6; } 4105fi 4106 4107 4108fi 4109if test -z "$ac_cv_prog_CC"; then 4110 ac_ct_CC=$CC 4111 # Extract the first word of "gcc", so it can be a program name with args. 4112set dummy gcc; ac_word=$2 4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4114$as_echo_n "checking for $ac_word... " >&6; } 4115if ${ac_cv_prog_ac_ct_CC+:} false; then : 4116 $as_echo_n "(cached) " >&6 4117else 4118 if test -n "$ac_ct_CC"; then 4119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4120else 4121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4122for as_dir in $PATH 4123do 4124 IFS=$as_save_IFS 4125 test -z "$as_dir" && as_dir=. 4126 for ac_exec_ext in '' $ac_executable_extensions; do 4127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4128 ac_cv_prog_ac_ct_CC="gcc" 4129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4130 break 2 4131 fi 4132done 4133 done 4134IFS=$as_save_IFS 4135 4136fi 4137fi 4138ac_ct_CC=$ac_cv_prog_ac_ct_CC 4139if test -n "$ac_ct_CC"; then 4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4141$as_echo "$ac_ct_CC" >&6; } 4142else 4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4144$as_echo "no" >&6; } 4145fi 4146 4147 if test "x$ac_ct_CC" = x; then 4148 CC="" 4149 else 4150 case $cross_compiling:$ac_tool_warned in 4151yes:) 4152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4154ac_tool_warned=yes ;; 4155esac 4156 CC=$ac_ct_CC 4157 fi 4158else 4159 CC="$ac_cv_prog_CC" 4160fi 4161 4162if test -z "$CC"; then 4163 if test -n "$ac_tool_prefix"; then 4164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4165set dummy ${ac_tool_prefix}cc; ac_word=$2 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4167$as_echo_n "checking for $ac_word... " >&6; } 4168if ${ac_cv_prog_CC+:} false; then : 4169 $as_echo_n "(cached) " >&6 4170else 4171 if test -n "$CC"; then 4172 ac_cv_prog_CC="$CC" # Let the user override the test. 4173else 4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4175for as_dir in $PATH 4176do 4177 IFS=$as_save_IFS 4178 test -z "$as_dir" && as_dir=. 4179 for ac_exec_ext in '' $ac_executable_extensions; do 4180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4181 ac_cv_prog_CC="${ac_tool_prefix}cc" 4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4183 break 2 4184 fi 4185done 4186 done 4187IFS=$as_save_IFS 4188 4189fi 4190fi 4191CC=$ac_cv_prog_CC 4192if test -n "$CC"; then 4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4194$as_echo "$CC" >&6; } 4195else 4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4197$as_echo "no" >&6; } 4198fi 4199 4200 4201 fi 4202fi 4203if test -z "$CC"; then 4204 # Extract the first word of "cc", so it can be a program name with args. 4205set dummy cc; ac_word=$2 4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4207$as_echo_n "checking for $ac_word... " >&6; } 4208if ${ac_cv_prog_CC+:} false; then : 4209 $as_echo_n "(cached) " >&6 4210else 4211 if test -n "$CC"; then 4212 ac_cv_prog_CC="$CC" # Let the user override the test. 4213else 4214 ac_prog_rejected=no 4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4216for as_dir in $PATH 4217do 4218 IFS=$as_save_IFS 4219 test -z "$as_dir" && as_dir=. 4220 for ac_exec_ext in '' $ac_executable_extensions; do 4221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4223 ac_prog_rejected=yes 4224 continue 4225 fi 4226 ac_cv_prog_CC="cc" 4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4228 break 2 4229 fi 4230done 4231 done 4232IFS=$as_save_IFS 4233 4234if test $ac_prog_rejected = yes; then 4235 # We found a bogon in the path, so make sure we never use it. 4236 set dummy $ac_cv_prog_CC 4237 shift 4238 if test $# != 0; then 4239 # We chose a different compiler from the bogus one. 4240 # However, it has the same basename, so the bogon will be chosen 4241 # first if we set CC to just the basename; use the full file name. 4242 shift 4243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4244 fi 4245fi 4246fi 4247fi 4248CC=$ac_cv_prog_CC 4249if test -n "$CC"; then 4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4251$as_echo "$CC" >&6; } 4252else 4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4254$as_echo "no" >&6; } 4255fi 4256 4257 4258fi 4259if test -z "$CC"; then 4260 if test -n "$ac_tool_prefix"; then 4261 for ac_prog in cl.exe 4262 do 4263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4264set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4266$as_echo_n "checking for $ac_word... " >&6; } 4267if ${ac_cv_prog_CC+:} false; then : 4268 $as_echo_n "(cached) " >&6 4269else 4270 if test -n "$CC"; then 4271 ac_cv_prog_CC="$CC" # Let the user override the test. 4272else 4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4274for as_dir in $PATH 4275do 4276 IFS=$as_save_IFS 4277 test -z "$as_dir" && as_dir=. 4278 for ac_exec_ext in '' $ac_executable_extensions; do 4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4280 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4282 break 2 4283 fi 4284done 4285 done 4286IFS=$as_save_IFS 4287 4288fi 4289fi 4290CC=$ac_cv_prog_CC 4291if test -n "$CC"; then 4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4293$as_echo "$CC" >&6; } 4294else 4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4296$as_echo "no" >&6; } 4297fi 4298 4299 4300 test -n "$CC" && break 4301 done 4302fi 4303if test -z "$CC"; then 4304 ac_ct_CC=$CC 4305 for ac_prog in cl.exe 4306do 4307 # Extract the first word of "$ac_prog", so it can be a program name with args. 4308set dummy $ac_prog; ac_word=$2 4309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4310$as_echo_n "checking for $ac_word... " >&6; } 4311if ${ac_cv_prog_ac_ct_CC+:} false; then : 4312 $as_echo_n "(cached) " >&6 4313else 4314 if test -n "$ac_ct_CC"; then 4315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4316else 4317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4318for as_dir in $PATH 4319do 4320 IFS=$as_save_IFS 4321 test -z "$as_dir" && as_dir=. 4322 for ac_exec_ext in '' $ac_executable_extensions; do 4323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4324 ac_cv_prog_ac_ct_CC="$ac_prog" 4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4326 break 2 4327 fi 4328done 4329 done 4330IFS=$as_save_IFS 4331 4332fi 4333fi 4334ac_ct_CC=$ac_cv_prog_ac_ct_CC 4335if test -n "$ac_ct_CC"; then 4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4337$as_echo "$ac_ct_CC" >&6; } 4338else 4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4340$as_echo "no" >&6; } 4341fi 4342 4343 4344 test -n "$ac_ct_CC" && break 4345done 4346 4347 if test "x$ac_ct_CC" = x; then 4348 CC="" 4349 else 4350 case $cross_compiling:$ac_tool_warned in 4351yes:) 4352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4354ac_tool_warned=yes ;; 4355esac 4356 CC=$ac_ct_CC 4357 fi 4358fi 4359 4360fi 4361 4362 4363test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4365as_fn_error $? "no acceptable C compiler found in \$PATH 4366See \`config.log' for more details" "$LINENO" 5; } 4367 4368# Provide some information about the compiler. 4369$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4370set X $ac_compile 4371ac_compiler=$2 4372for ac_option in --version -v -V -qversion; do 4373 { { ac_try="$ac_compiler $ac_option >&5" 4374case "(($ac_try" in 4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4376 *) ac_try_echo=$ac_try;; 4377esac 4378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4379$as_echo "$ac_try_echo"; } >&5 4380 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4381 ac_status=$? 4382 if test -s conftest.err; then 4383 sed '10a\ 4384... rest of stderr output deleted ... 4385 10q' conftest.err >conftest.er1 4386 cat conftest.er1 >&5 4387 fi 4388 rm -f conftest.er1 conftest.err 4389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4390 test $ac_status = 0; } 4391done 4392 4393cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4394/* end confdefs.h. */ 4395 4396int 4397main () 4398{ 4399 4400 ; 4401 return 0; 4402} 4403_ACEOF 4404ac_clean_files_save=$ac_clean_files 4405ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4406# Try to create an executable without -o first, disregard a.out. 4407# It will help us diagnose broken compilers, and finding out an intuition 4408# of exeext. 4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4410$as_echo_n "checking whether the C compiler works... " >&6; } 4411ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4412 4413# The possible output files: 4414ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4415 4416ac_rmfiles= 4417for ac_file in $ac_files 4418do 4419 case $ac_file in 4420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4421 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4422 esac 4423done 4424rm -f $ac_rmfiles 4425 4426if { { ac_try="$ac_link_default" 4427case "(($ac_try" in 4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4429 *) ac_try_echo=$ac_try;; 4430esac 4431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4432$as_echo "$ac_try_echo"; } >&5 4433 (eval "$ac_link_default") 2>&5 4434 ac_status=$? 4435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4436 test $ac_status = 0; }; then : 4437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4438# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4439# in a Makefile. We should not override ac_cv_exeext if it was cached, 4440# so that the user can short-circuit this test for compilers unknown to 4441# Autoconf. 4442for ac_file in $ac_files '' 4443do 4444 test -f "$ac_file" || continue 4445 case $ac_file in 4446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4447 ;; 4448 [ab].out ) 4449 # We found the default executable, but exeext='' is most 4450 # certainly right. 4451 break;; 4452 *.* ) 4453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4454 then :; else 4455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4456 fi 4457 # We set ac_cv_exeext here because the later test for it is not 4458 # safe: cross compilers may not add the suffix if given an `-o' 4459 # argument, so we may need to know it at that point already. 4460 # Even if this section looks crufty: it has the advantage of 4461 # actually working. 4462 break;; 4463 * ) 4464 break;; 4465 esac 4466done 4467test "$ac_cv_exeext" = no && ac_cv_exeext= 4468 4469else 4470 ac_file='' 4471fi 4472if test -z "$ac_file"; then : 4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4474$as_echo "no" >&6; } 4475$as_echo "$as_me: failed program was:" >&5 4476sed 's/^/| /' conftest.$ac_ext >&5 4477 4478{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4480as_fn_error 77 "C compiler cannot create executables 4481See \`config.log' for more details" "$LINENO" 5; } 4482else 4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4484$as_echo "yes" >&6; } 4485fi 4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4487$as_echo_n "checking for C compiler default output file name... " >&6; } 4488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4489$as_echo "$ac_file" >&6; } 4490ac_exeext=$ac_cv_exeext 4491 4492rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4493ac_clean_files=$ac_clean_files_save 4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4495$as_echo_n "checking for suffix of executables... " >&6; } 4496if { { ac_try="$ac_link" 4497case "(($ac_try" in 4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4499 *) ac_try_echo=$ac_try;; 4500esac 4501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4502$as_echo "$ac_try_echo"; } >&5 4503 (eval "$ac_link") 2>&5 4504 ac_status=$? 4505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4506 test $ac_status = 0; }; then : 4507 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4508# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4509# work properly (i.e., refer to `conftest.exe'), while it won't with 4510# `rm'. 4511for ac_file in conftest.exe conftest conftest.*; do 4512 test -f "$ac_file" || continue 4513 case $ac_file in 4514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4515 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4516 break;; 4517 * ) break;; 4518 esac 4519done 4520else 4521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4523as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4524See \`config.log' for more details" "$LINENO" 5; } 4525fi 4526rm -f conftest conftest$ac_cv_exeext 4527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4528$as_echo "$ac_cv_exeext" >&6; } 4529 4530rm -f conftest.$ac_ext 4531EXEEXT=$ac_cv_exeext 4532ac_exeext=$EXEEXT 4533cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4534/* end confdefs.h. */ 4535#include <stdio.h> 4536int 4537main () 4538{ 4539FILE *f = fopen ("conftest.out", "w"); 4540 return ferror (f) || fclose (f) != 0; 4541 4542 ; 4543 return 0; 4544} 4545_ACEOF 4546ac_clean_files="$ac_clean_files conftest.out" 4547# Check that the compiler produces executables we can run. If not, either 4548# the compiler is broken, or we cross compile. 4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4550$as_echo_n "checking whether we are cross compiling... " >&6; } 4551if test "$cross_compiling" != yes; then 4552 { { ac_try="$ac_link" 4553case "(($ac_try" in 4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4555 *) ac_try_echo=$ac_try;; 4556esac 4557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4558$as_echo "$ac_try_echo"; } >&5 4559 (eval "$ac_link") 2>&5 4560 ac_status=$? 4561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4562 test $ac_status = 0; } 4563 if { ac_try='./conftest$ac_cv_exeext' 4564 { { case "(($ac_try" in 4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4566 *) ac_try_echo=$ac_try;; 4567esac 4568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4569$as_echo "$ac_try_echo"; } >&5 4570 (eval "$ac_try") 2>&5 4571 ac_status=$? 4572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4573 test $ac_status = 0; }; }; then 4574 cross_compiling=no 4575 else 4576 if test "$cross_compiling" = maybe; then 4577 cross_compiling=yes 4578 else 4579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4581as_fn_error $? "cannot run C compiled programs. 4582If you meant to cross compile, use \`--host'. 4583See \`config.log' for more details" "$LINENO" 5; } 4584 fi 4585 fi 4586fi 4587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4588$as_echo "$cross_compiling" >&6; } 4589 4590rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4591ac_clean_files=$ac_clean_files_save 4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4593$as_echo_n "checking for suffix of object files... " >&6; } 4594if ${ac_cv_objext+:} false; then : 4595 $as_echo_n "(cached) " >&6 4596else 4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4598/* end confdefs.h. */ 4599 4600int 4601main () 4602{ 4603 4604 ; 4605 return 0; 4606} 4607_ACEOF 4608rm -f conftest.o conftest.obj 4609if { { ac_try="$ac_compile" 4610case "(($ac_try" in 4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4612 *) ac_try_echo=$ac_try;; 4613esac 4614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4615$as_echo "$ac_try_echo"; } >&5 4616 (eval "$ac_compile") 2>&5 4617 ac_status=$? 4618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4619 test $ac_status = 0; }; then : 4620 for ac_file in conftest.o conftest.obj conftest.*; do 4621 test -f "$ac_file" || continue; 4622 case $ac_file in 4623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4624 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4625 break;; 4626 esac 4627done 4628else 4629 $as_echo "$as_me: failed program was:" >&5 4630sed 's/^/| /' conftest.$ac_ext >&5 4631 4632{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4634as_fn_error $? "cannot compute suffix of object files: cannot compile 4635See \`config.log' for more details" "$LINENO" 5; } 4636fi 4637rm -f conftest.$ac_cv_objext conftest.$ac_ext 4638fi 4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4640$as_echo "$ac_cv_objext" >&6; } 4641OBJEXT=$ac_cv_objext 4642ac_objext=$OBJEXT 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4644$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4645if ${ac_cv_c_compiler_gnu+:} false; then : 4646 $as_echo_n "(cached) " >&6 4647else 4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4649/* end confdefs.h. */ 4650 4651int 4652main () 4653{ 4654#ifndef __GNUC__ 4655 choke me 4656#endif 4657 4658 ; 4659 return 0; 4660} 4661_ACEOF 4662if ac_fn_c_try_compile "$LINENO"; then : 4663 ac_compiler_gnu=yes 4664else 4665 ac_compiler_gnu=no 4666fi 4667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4668ac_cv_c_compiler_gnu=$ac_compiler_gnu 4669 4670fi 4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4672$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4673if test $ac_compiler_gnu = yes; then 4674 GCC=yes 4675else 4676 GCC= 4677fi 4678ac_test_CFLAGS=${CFLAGS+set} 4679ac_save_CFLAGS=$CFLAGS 4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4681$as_echo_n "checking whether $CC accepts -g... " >&6; } 4682if ${ac_cv_prog_cc_g+:} false; then : 4683 $as_echo_n "(cached) " >&6 4684else 4685 ac_save_c_werror_flag=$ac_c_werror_flag 4686 ac_c_werror_flag=yes 4687 ac_cv_prog_cc_g=no 4688 CFLAGS="-g" 4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4690/* end confdefs.h. */ 4691 4692int 4693main () 4694{ 4695 4696 ; 4697 return 0; 4698} 4699_ACEOF 4700if ac_fn_c_try_compile "$LINENO"; then : 4701 ac_cv_prog_cc_g=yes 4702else 4703 CFLAGS="" 4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4705/* end confdefs.h. */ 4706 4707int 4708main () 4709{ 4710 4711 ; 4712 return 0; 4713} 4714_ACEOF 4715if ac_fn_c_try_compile "$LINENO"; then : 4716 4717else 4718 ac_c_werror_flag=$ac_save_c_werror_flag 4719 CFLAGS="-g" 4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4721/* end confdefs.h. */ 4722 4723int 4724main () 4725{ 4726 4727 ; 4728 return 0; 4729} 4730_ACEOF 4731if ac_fn_c_try_compile "$LINENO"; then : 4732 ac_cv_prog_cc_g=yes 4733fi 4734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4735fi 4736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4737fi 4738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4739 ac_c_werror_flag=$ac_save_c_werror_flag 4740fi 4741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4742$as_echo "$ac_cv_prog_cc_g" >&6; } 4743if test "$ac_test_CFLAGS" = set; then 4744 CFLAGS=$ac_save_CFLAGS 4745elif test $ac_cv_prog_cc_g = yes; then 4746 if test "$GCC" = yes; then 4747 CFLAGS="-g -O2" 4748 else 4749 CFLAGS="-g" 4750 fi 4751else 4752 if test "$GCC" = yes; then 4753 CFLAGS="-O2" 4754 else 4755 CFLAGS= 4756 fi 4757fi 4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4759$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4760if ${ac_cv_prog_cc_c89+:} false; then : 4761 $as_echo_n "(cached) " >&6 4762else 4763 ac_cv_prog_cc_c89=no 4764ac_save_CC=$CC 4765cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4766/* end confdefs.h. */ 4767#include <stdarg.h> 4768#include <stdio.h> 4769#include <sys/types.h> 4770#include <sys/stat.h> 4771/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4772struct buf { int x; }; 4773FILE * (*rcsopen) (struct buf *, struct stat *, int); 4774static char *e (p, i) 4775 char **p; 4776 int i; 4777{ 4778 return p[i]; 4779} 4780static char *f (char * (*g) (char **, int), char **p, ...) 4781{ 4782 char *s; 4783 va_list v; 4784 va_start (v,p); 4785 s = g (p, va_arg (v,int)); 4786 va_end (v); 4787 return s; 4788} 4789 4790/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4791 function prototypes and stuff, but not '\xHH' hex character constants. 4792 These don't provoke an error unfortunately, instead are silently treated 4793 as 'x'. The following induces an error, until -std is added to get 4794 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4795 array size at least. It's necessary to write '\x00'==0 to get something 4796 that's true only with -std. */ 4797int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4798 4799/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4800 inside strings and character constants. */ 4801#define FOO(x) 'x' 4802int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4803 4804int test (int i, double x); 4805struct s1 {int (*f) (int a);}; 4806struct s2 {int (*f) (double a);}; 4807int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4808int argc; 4809char **argv; 4810int 4811main () 4812{ 4813return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4814 ; 4815 return 0; 4816} 4817_ACEOF 4818for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4819 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4820do 4821 CC="$ac_save_CC $ac_arg" 4822 if ac_fn_c_try_compile "$LINENO"; then : 4823 ac_cv_prog_cc_c89=$ac_arg 4824fi 4825rm -f core conftest.err conftest.$ac_objext 4826 test "x$ac_cv_prog_cc_c89" != "xno" && break 4827done 4828rm -f conftest.$ac_ext 4829CC=$ac_save_CC 4830 4831fi 4832# AC_CACHE_VAL 4833case "x$ac_cv_prog_cc_c89" in 4834 x) 4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4836$as_echo "none needed" >&6; } ;; 4837 xno) 4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4839$as_echo "unsupported" >&6; } ;; 4840 *) 4841 CC="$CC $ac_cv_prog_cc_c89" 4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4843$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4844esac 4845if test "x$ac_cv_prog_cc_c89" != xno; then : 4846 4847fi 4848 4849ac_ext=c 4850ac_cpp='$CPP $CPPFLAGS' 4851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4853ac_compiler_gnu=$ac_cv_c_compiler_gnu 4854 4855depcc="$CC" am_compiler_list= 4856 4857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4858$as_echo_n "checking dependency style of $depcc... " >&6; } 4859if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4860 $as_echo_n "(cached) " >&6 4861else 4862 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4863 # We make a subdir and do the tests there. Otherwise we can end up 4864 # making bogus files that we don't know about and never remove. For 4865 # instance it was reported that on HP-UX the gcc test will end up 4866 # making a dummy file named `D' -- because `-MD' means `put the output 4867 # in D'. 4868 mkdir conftest.dir 4869 # Copy depcomp to subdir because otherwise we won't find it if we're 4870 # using a relative directory. 4871 cp "$am_depcomp" conftest.dir 4872 cd conftest.dir 4873 # We will build objects and dependencies in a subdirectory because 4874 # it helps to detect inapplicable dependency modes. For instance 4875 # both Tru64's cc and ICC support -MD to output dependencies as a 4876 # side effect of compilation, but ICC will put the dependencies in 4877 # the current directory while Tru64 will put them in the object 4878 # directory. 4879 mkdir sub 4880 4881 am_cv_CC_dependencies_compiler_type=none 4882 if test "$am_compiler_list" = ""; then 4883 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4884 fi 4885 am__universal=false 4886 case " $depcc " in #( 4887 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4888 esac 4889 4890 for depmode in $am_compiler_list; do 4891 # Setup a source with many dependencies, because some compilers 4892 # like to wrap large dependency lists on column 80 (with \), and 4893 # we should not choose a depcomp mode which is confused by this. 4894 # 4895 # We need to recreate these files for each test, as the compiler may 4896 # overwrite some of them when testing with obscure command lines. 4897 # This happens at least with the AIX C compiler. 4898 : > sub/conftest.c 4899 for i in 1 2 3 4 5 6; do 4900 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4901 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4902 # Solaris 8's {/usr,}/bin/sh. 4903 touch sub/conftst$i.h 4904 done 4905 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4906 4907 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4908 # mode. It turns out that the SunPro C++ compiler does not properly 4909 # handle `-M -o', and we need to detect this. Also, some Intel 4910 # versions had trouble with output in subdirs 4911 am__obj=sub/conftest.${OBJEXT-o} 4912 am__minus_obj="-o $am__obj" 4913 case $depmode in 4914 gcc) 4915 # This depmode causes a compiler race in universal mode. 4916 test "$am__universal" = false || continue 4917 ;; 4918 nosideeffect) 4919 # after this tag, mechanisms are not by side-effect, so they'll 4920 # only be used when explicitly requested 4921 if test "x$enable_dependency_tracking" = xyes; then 4922 continue 4923 else 4924 break 4925 fi 4926 ;; 4927 msvisualcpp | msvcmsys) 4928 # This compiler won't grok `-c -o', but also, the minuso test has 4929 # not run yet. These depmodes are late enough in the game, and 4930 # so weak that their functioning should not be impacted. 4931 am__obj=conftest.${OBJEXT-o} 4932 am__minus_obj= 4933 ;; 4934 none) break ;; 4935 esac 4936 if depmode=$depmode \ 4937 source=sub/conftest.c object=$am__obj \ 4938 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4939 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4940 >/dev/null 2>conftest.err && 4941 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4942 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4943 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4944 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4945 # icc doesn't choke on unknown options, it will just issue warnings 4946 # or remarks (even with -Werror). So we grep stderr for any message 4947 # that says an option was ignored or not supported. 4948 # When given -MP, icc 7.0 and 7.1 complain thusly: 4949 # icc: Command line warning: ignoring option '-M'; no argument required 4950 # The diagnosis changed in icc 8.0: 4951 # icc: Command line remark: option '-MP' not supported 4952 if (grep 'ignoring option' conftest.err || 4953 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4954 am_cv_CC_dependencies_compiler_type=$depmode 4955 break 4956 fi 4957 fi 4958 done 4959 4960 cd .. 4961 rm -rf conftest.dir 4962else 4963 am_cv_CC_dependencies_compiler_type=none 4964fi 4965 4966fi 4967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4968$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4969CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4970 4971 if 4972 test "x$enable_dependency_tracking" != xno \ 4973 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4974 am__fastdepCC_TRUE= 4975 am__fastdepCC_FALSE='#' 4976else 4977 am__fastdepCC_TRUE='#' 4978 am__fastdepCC_FALSE= 4979fi 4980 4981 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4983$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4984if ${ac_cv_prog_cc_c99+:} false; then : 4985 $as_echo_n "(cached) " >&6 4986else 4987 ac_cv_prog_cc_c99=no 4988ac_save_CC=$CC 4989cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4990/* end confdefs.h. */ 4991#include <stdarg.h> 4992#include <stdbool.h> 4993#include <stdlib.h> 4994#include <wchar.h> 4995#include <stdio.h> 4996 4997// Check varargs macros. These examples are taken from C99 6.10.3.5. 4998#define debug(...) fprintf (stderr, __VA_ARGS__) 4999#define showlist(...) puts (#__VA_ARGS__) 5000#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5001static void 5002test_varargs_macros (void) 5003{ 5004 int x = 1234; 5005 int y = 5678; 5006 debug ("Flag"); 5007 debug ("X = %d\n", x); 5008 showlist (The first, second, and third items.); 5009 report (x>y, "x is %d but y is %d", x, y); 5010} 5011 5012// Check long long types. 5013#define BIG64 18446744073709551615ull 5014#define BIG32 4294967295ul 5015#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5016#if !BIG_OK 5017 your preprocessor is broken; 5018#endif 5019#if BIG_OK 5020#else 5021 your preprocessor is broken; 5022#endif 5023static long long int bignum = -9223372036854775807LL; 5024static unsigned long long int ubignum = BIG64; 5025 5026struct incomplete_array 5027{ 5028 int datasize; 5029 double data[]; 5030}; 5031 5032struct named_init { 5033 int number; 5034 const wchar_t *name; 5035 double average; 5036}; 5037 5038typedef const char *ccp; 5039 5040static inline int 5041test_restrict (ccp restrict text) 5042{ 5043 // See if C++-style comments work. 5044 // Iterate through items via the restricted pointer. 5045 // Also check for declarations in for loops. 5046 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5047 continue; 5048 return 0; 5049} 5050 5051// Check varargs and va_copy. 5052static void 5053test_varargs (const char *format, ...) 5054{ 5055 va_list args; 5056 va_start (args, format); 5057 va_list args_copy; 5058 va_copy (args_copy, args); 5059 5060 const char *str; 5061 int number; 5062 float fnumber; 5063 5064 while (*format) 5065 { 5066 switch (*format++) 5067 { 5068 case 's': // string 5069 str = va_arg (args_copy, const char *); 5070 break; 5071 case 'd': // int 5072 number = va_arg (args_copy, int); 5073 break; 5074 case 'f': // float 5075 fnumber = va_arg (args_copy, double); 5076 break; 5077 default: 5078 break; 5079 } 5080 } 5081 va_end (args_copy); 5082 va_end (args); 5083} 5084 5085int 5086main () 5087{ 5088 5089 // Check bool. 5090 _Bool success = false; 5091 5092 // Check restrict. 5093 if (test_restrict ("String literal") == 0) 5094 success = true; 5095 char *restrict newvar = "Another string"; 5096 5097 // Check varargs. 5098 test_varargs ("s, d' f .", "string", 65, 34.234); 5099 test_varargs_macros (); 5100 5101 // Check flexible array members. 5102 struct incomplete_array *ia = 5103 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5104 ia->datasize = 10; 5105 for (int i = 0; i < ia->datasize; ++i) 5106 ia->data[i] = i * 1.234; 5107 5108 // Check named initializers. 5109 struct named_init ni = { 5110 .number = 34, 5111 .name = L"Test wide string", 5112 .average = 543.34343, 5113 }; 5114 5115 ni.number = 58; 5116 5117 int dynamic_array[ni.number]; 5118 dynamic_array[ni.number - 1] = 543; 5119 5120 // work around unused variable warnings 5121 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5122 || dynamic_array[ni.number - 1] != 543); 5123 5124 ; 5125 return 0; 5126} 5127_ACEOF 5128for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 5129do 5130 CC="$ac_save_CC $ac_arg" 5131 if ac_fn_c_try_compile "$LINENO"; then : 5132 ac_cv_prog_cc_c99=$ac_arg 5133fi 5134rm -f core conftest.err conftest.$ac_objext 5135 test "x$ac_cv_prog_cc_c99" != "xno" && break 5136done 5137rm -f conftest.$ac_ext 5138CC=$ac_save_CC 5139 5140fi 5141# AC_CACHE_VAL 5142case "x$ac_cv_prog_cc_c99" in 5143 x) 5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5145$as_echo "none needed" >&6; } ;; 5146 xno) 5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5148$as_echo "unsupported" >&6; } ;; 5149 *) 5150 CC="$CC $ac_cv_prog_cc_c99" 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5152$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5153esac 5154if test "x$ac_cv_prog_cc_c99" != xno; then : 5155 5156fi 5157 5158 5159 5160ac_ext=c 5161ac_cpp='$CPP $CPPFLAGS' 5162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5164ac_compiler_gnu=$ac_cv_c_compiler_gnu 5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5166$as_echo_n "checking how to run the C preprocessor... " >&6; } 5167# On Suns, sometimes $CPP names a directory. 5168if test -n "$CPP" && test -d "$CPP"; then 5169 CPP= 5170fi 5171if test -z "$CPP"; then 5172 if ${ac_cv_prog_CPP+:} false; then : 5173 $as_echo_n "(cached) " >&6 5174else 5175 # Double quotes because CPP needs to be expanded 5176 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5177 do 5178 ac_preproc_ok=false 5179for ac_c_preproc_warn_flag in '' yes 5180do 5181 # Use a header file that comes with gcc, so configuring glibc 5182 # with a fresh cross-compiler works. 5183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5184 # <limits.h> exists even on freestanding compilers. 5185 # On the NeXT, cc -E runs the code through the compiler's parser, 5186 # not just through cpp. "Syntax error" is here to catch this case. 5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5188/* end confdefs.h. */ 5189#ifdef __STDC__ 5190# include <limits.h> 5191#else 5192# include <assert.h> 5193#endif 5194 Syntax error 5195_ACEOF 5196if ac_fn_c_try_cpp "$LINENO"; then : 5197 5198else 5199 # Broken: fails on valid input. 5200continue 5201fi 5202rm -f conftest.err conftest.i conftest.$ac_ext 5203 5204 # OK, works on sane cases. Now check whether nonexistent headers 5205 # can be detected and how. 5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5207/* end confdefs.h. */ 5208#include <ac_nonexistent.h> 5209_ACEOF 5210if ac_fn_c_try_cpp "$LINENO"; then : 5211 # Broken: success on invalid input. 5212continue 5213else 5214 # Passes both tests. 5215ac_preproc_ok=: 5216break 5217fi 5218rm -f conftest.err conftest.i conftest.$ac_ext 5219 5220done 5221# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5222rm -f conftest.i conftest.err conftest.$ac_ext 5223if $ac_preproc_ok; then : 5224 break 5225fi 5226 5227 done 5228 ac_cv_prog_CPP=$CPP 5229 5230fi 5231 CPP=$ac_cv_prog_CPP 5232else 5233 ac_cv_prog_CPP=$CPP 5234fi 5235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5236$as_echo "$CPP" >&6; } 5237ac_preproc_ok=false 5238for ac_c_preproc_warn_flag in '' yes 5239do 5240 # Use a header file that comes with gcc, so configuring glibc 5241 # with a fresh cross-compiler works. 5242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5243 # <limits.h> exists even on freestanding compilers. 5244 # On the NeXT, cc -E runs the code through the compiler's parser, 5245 # not just through cpp. "Syntax error" is here to catch this case. 5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5247/* end confdefs.h. */ 5248#ifdef __STDC__ 5249# include <limits.h> 5250#else 5251# include <assert.h> 5252#endif 5253 Syntax error 5254_ACEOF 5255if ac_fn_c_try_cpp "$LINENO"; then : 5256 5257else 5258 # Broken: fails on valid input. 5259continue 5260fi 5261rm -f conftest.err conftest.i conftest.$ac_ext 5262 5263 # OK, works on sane cases. Now check whether nonexistent headers 5264 # can be detected and how. 5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5266/* end confdefs.h. */ 5267#include <ac_nonexistent.h> 5268_ACEOF 5269if ac_fn_c_try_cpp "$LINENO"; then : 5270 # Broken: success on invalid input. 5271continue 5272else 5273 # Passes both tests. 5274ac_preproc_ok=: 5275break 5276fi 5277rm -f conftest.err conftest.i conftest.$ac_ext 5278 5279done 5280# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5281rm -f conftest.i conftest.err conftest.$ac_ext 5282if $ac_preproc_ok; then : 5283 5284else 5285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5287as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5288See \`config.log' for more details" "$LINENO" 5; } 5289fi 5290 5291ac_ext=c 5292ac_cpp='$CPP $CPPFLAGS' 5293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5295ac_compiler_gnu=$ac_cv_c_compiler_gnu 5296 5297 5298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5299$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5300if ${ac_cv_path_GREP+:} false; then : 5301 $as_echo_n "(cached) " >&6 5302else 5303 if test -z "$GREP"; then 5304 ac_path_GREP_found=false 5305 # Loop through the user's path and test for each of PROGNAME-LIST 5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5307for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5308do 5309 IFS=$as_save_IFS 5310 test -z "$as_dir" && as_dir=. 5311 for ac_prog in grep ggrep; do 5312 for ac_exec_ext in '' $ac_executable_extensions; do 5313 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5314 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 5315# Check for GNU ac_path_GREP and select it if it is found. 5316 # Check for GNU $ac_path_GREP 5317case `"$ac_path_GREP" --version 2>&1` in 5318*GNU*) 5319 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5320*) 5321 ac_count=0 5322 $as_echo_n 0123456789 >"conftest.in" 5323 while : 5324 do 5325 cat "conftest.in" "conftest.in" >"conftest.tmp" 5326 mv "conftest.tmp" "conftest.in" 5327 cp "conftest.in" "conftest.nl" 5328 $as_echo 'GREP' >> "conftest.nl" 5329 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5330 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5331 as_fn_arith $ac_count + 1 && ac_count=$as_val 5332 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5333 # Best one so far, save it but keep looking for a better one 5334 ac_cv_path_GREP="$ac_path_GREP" 5335 ac_path_GREP_max=$ac_count 5336 fi 5337 # 10*(2^10) chars as input seems more than enough 5338 test $ac_count -gt 10 && break 5339 done 5340 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5341esac 5342 5343 $ac_path_GREP_found && break 3 5344 done 5345 done 5346 done 5347IFS=$as_save_IFS 5348 if test -z "$ac_cv_path_GREP"; then 5349 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5350 fi 5351else 5352 ac_cv_path_GREP=$GREP 5353fi 5354 5355fi 5356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5357$as_echo "$ac_cv_path_GREP" >&6; } 5358 GREP="$ac_cv_path_GREP" 5359 5360 5361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5362$as_echo_n "checking for egrep... " >&6; } 5363if ${ac_cv_path_EGREP+:} false; then : 5364 $as_echo_n "(cached) " >&6 5365else 5366 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5367 then ac_cv_path_EGREP="$GREP -E" 5368 else 5369 if test -z "$EGREP"; then 5370 ac_path_EGREP_found=false 5371 # Loop through the user's path and test for each of PROGNAME-LIST 5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5373for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5374do 5375 IFS=$as_save_IFS 5376 test -z "$as_dir" && as_dir=. 5377 for ac_prog in egrep; do 5378 for ac_exec_ext in '' $ac_executable_extensions; do 5379 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5380 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 5381# Check for GNU ac_path_EGREP and select it if it is found. 5382 # Check for GNU $ac_path_EGREP 5383case `"$ac_path_EGREP" --version 2>&1` in 5384*GNU*) 5385 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5386*) 5387 ac_count=0 5388 $as_echo_n 0123456789 >"conftest.in" 5389 while : 5390 do 5391 cat "conftest.in" "conftest.in" >"conftest.tmp" 5392 mv "conftest.tmp" "conftest.in" 5393 cp "conftest.in" "conftest.nl" 5394 $as_echo 'EGREP' >> "conftest.nl" 5395 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5396 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5397 as_fn_arith $ac_count + 1 && ac_count=$as_val 5398 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5399 # Best one so far, save it but keep looking for a better one 5400 ac_cv_path_EGREP="$ac_path_EGREP" 5401 ac_path_EGREP_max=$ac_count 5402 fi 5403 # 10*(2^10) chars as input seems more than enough 5404 test $ac_count -gt 10 && break 5405 done 5406 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5407esac 5408 5409 $ac_path_EGREP_found && break 3 5410 done 5411 done 5412 done 5413IFS=$as_save_IFS 5414 if test -z "$ac_cv_path_EGREP"; then 5415 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5416 fi 5417else 5418 ac_cv_path_EGREP=$EGREP 5419fi 5420 5421 fi 5422fi 5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5424$as_echo "$ac_cv_path_EGREP" >&6; } 5425 EGREP="$ac_cv_path_EGREP" 5426 5427 5428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5429$as_echo_n "checking for ANSI C header files... " >&6; } 5430if ${ac_cv_header_stdc+:} false; then : 5431 $as_echo_n "(cached) " >&6 5432else 5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5434/* end confdefs.h. */ 5435#include <stdlib.h> 5436#include <stdarg.h> 5437#include <string.h> 5438#include <float.h> 5439 5440int 5441main () 5442{ 5443 5444 ; 5445 return 0; 5446} 5447_ACEOF 5448if ac_fn_c_try_compile "$LINENO"; then : 5449 ac_cv_header_stdc=yes 5450else 5451 ac_cv_header_stdc=no 5452fi 5453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5454 5455if test $ac_cv_header_stdc = yes; then 5456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5458/* end confdefs.h. */ 5459#include <string.h> 5460 5461_ACEOF 5462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5463 $EGREP "memchr" >/dev/null 2>&1; then : 5464 5465else 5466 ac_cv_header_stdc=no 5467fi 5468rm -f conftest* 5469 5470fi 5471 5472if test $ac_cv_header_stdc = yes; then 5473 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5475/* end confdefs.h. */ 5476#include <stdlib.h> 5477 5478_ACEOF 5479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5480 $EGREP "free" >/dev/null 2>&1; then : 5481 5482else 5483 ac_cv_header_stdc=no 5484fi 5485rm -f conftest* 5486 5487fi 5488 5489if test $ac_cv_header_stdc = yes; then 5490 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5491 if test "$cross_compiling" = yes; then : 5492 : 5493else 5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5495/* end confdefs.h. */ 5496#include <ctype.h> 5497#include <stdlib.h> 5498#if ((' ' & 0x0FF) == 0x020) 5499# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5500# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5501#else 5502# define ISLOWER(c) \ 5503 (('a' <= (c) && (c) <= 'i') \ 5504 || ('j' <= (c) && (c) <= 'r') \ 5505 || ('s' <= (c) && (c) <= 'z')) 5506# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5507#endif 5508 5509#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5510int 5511main () 5512{ 5513 int i; 5514 for (i = 0; i < 256; i++) 5515 if (XOR (islower (i), ISLOWER (i)) 5516 || toupper (i) != TOUPPER (i)) 5517 return 2; 5518 return 0; 5519} 5520_ACEOF 5521if ac_fn_c_try_run "$LINENO"; then : 5522 5523else 5524 ac_cv_header_stdc=no 5525fi 5526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5527 conftest.$ac_objext conftest.beam conftest.$ac_ext 5528fi 5529 5530fi 5531fi 5532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5533$as_echo "$ac_cv_header_stdc" >&6; } 5534if test $ac_cv_header_stdc = yes; then 5535 5536$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5537 5538fi 5539 5540# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5541for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5542 inttypes.h stdint.h unistd.h 5543do : 5544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5545ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5546" 5547if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5548 cat >>confdefs.h <<_ACEOF 5549#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5550_ACEOF 5551 5552fi 5553 5554done 5555 5556 5557 5558 5559ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 5560if test "x$ac_cv_have_decl___clang__" = xyes; then : 5561 CLANGCC="yes" 5562else 5563 CLANGCC="no" 5564fi 5565 5566ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 5567if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 5568 INTELCC="yes" 5569else 5570 INTELCC="no" 5571fi 5572 5573ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 5574if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 5575 SUNCC="yes" 5576else 5577 SUNCC="no" 5578fi 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5589 if test -n "$ac_tool_prefix"; then 5590 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5591set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5593$as_echo_n "checking for $ac_word... " >&6; } 5594if ${ac_cv_path_PKG_CONFIG+:} false; then : 5595 $as_echo_n "(cached) " >&6 5596else 5597 case $PKG_CONFIG in 5598 [\\/]* | ?:[\\/]*) 5599 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5600 ;; 5601 *) 5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5603for as_dir in $PATH 5604do 5605 IFS=$as_save_IFS 5606 test -z "$as_dir" && as_dir=. 5607 for ac_exec_ext in '' $ac_executable_extensions; do 5608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5609 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5611 break 2 5612 fi 5613done 5614 done 5615IFS=$as_save_IFS 5616 5617 ;; 5618esac 5619fi 5620PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5621if test -n "$PKG_CONFIG"; then 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5623$as_echo "$PKG_CONFIG" >&6; } 5624else 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5626$as_echo "no" >&6; } 5627fi 5628 5629 5630fi 5631if test -z "$ac_cv_path_PKG_CONFIG"; then 5632 ac_pt_PKG_CONFIG=$PKG_CONFIG 5633 # Extract the first word of "pkg-config", so it can be a program name with args. 5634set dummy pkg-config; ac_word=$2 5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5636$as_echo_n "checking for $ac_word... " >&6; } 5637if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 5638 $as_echo_n "(cached) " >&6 5639else 5640 case $ac_pt_PKG_CONFIG in 5641 [\\/]* | ?:[\\/]*) 5642 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5643 ;; 5644 *) 5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5646for as_dir in $PATH 5647do 5648 IFS=$as_save_IFS 5649 test -z "$as_dir" && as_dir=. 5650 for ac_exec_ext in '' $ac_executable_extensions; do 5651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5652 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5654 break 2 5655 fi 5656done 5657 done 5658IFS=$as_save_IFS 5659 5660 ;; 5661esac 5662fi 5663ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5664if test -n "$ac_pt_PKG_CONFIG"; then 5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5666$as_echo "$ac_pt_PKG_CONFIG" >&6; } 5667else 5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5669$as_echo "no" >&6; } 5670fi 5671 5672 if test "x$ac_pt_PKG_CONFIG" = x; then 5673 PKG_CONFIG="" 5674 else 5675 case $cross_compiling:$ac_tool_warned in 5676yes:) 5677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5679ac_tool_warned=yes ;; 5680esac 5681 PKG_CONFIG=$ac_pt_PKG_CONFIG 5682 fi 5683else 5684 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5685fi 5686 5687fi 5688if test -n "$PKG_CONFIG"; then 5689 _pkg_min_version=0.9.0 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5691$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5692 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5694$as_echo "yes" >&6; } 5695 else 5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5697$as_echo "no" >&6; } 5698 PKG_CONFIG="" 5699 fi 5700fi 5701# Make sure we can run config.sub. 5702$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5703 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5704 5705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5706$as_echo_n "checking build system type... " >&6; } 5707if ${ac_cv_build+:} false; then : 5708 $as_echo_n "(cached) " >&6 5709else 5710 ac_build_alias=$build_alias 5711test "x$ac_build_alias" = x && 5712 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5713test "x$ac_build_alias" = x && 5714 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5715ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5716 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5717 5718fi 5719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5720$as_echo "$ac_cv_build" >&6; } 5721case $ac_cv_build in 5722*-*-*) ;; 5723*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5724esac 5725build=$ac_cv_build 5726ac_save_IFS=$IFS; IFS='-' 5727set x $ac_cv_build 5728shift 5729build_cpu=$1 5730build_vendor=$2 5731shift; shift 5732# Remember, the first character of IFS is used to create $*, 5733# except with old shells: 5734build_os=$* 5735IFS=$ac_save_IFS 5736case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5737 5738 5739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5740$as_echo_n "checking host system type... " >&6; } 5741if ${ac_cv_host+:} false; then : 5742 $as_echo_n "(cached) " >&6 5743else 5744 if test "x$host_alias" = x; then 5745 ac_cv_host=$ac_cv_build 5746else 5747 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5748 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5749fi 5750 5751fi 5752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5753$as_echo "$ac_cv_host" >&6; } 5754case $ac_cv_host in 5755*-*-*) ;; 5756*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5757esac 5758host=$ac_cv_host 5759ac_save_IFS=$IFS; IFS='-' 5760set x $ac_cv_host 5761shift 5762host_cpu=$1 5763host_vendor=$2 5764shift; shift 5765# Remember, the first character of IFS is used to create $*, 5766# except with old shells: 5767host_os=$* 5768IFS=$ac_save_IFS 5769case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5770 5771 5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5773$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5774if ${ac_cv_path_SED+:} false; then : 5775 $as_echo_n "(cached) " >&6 5776else 5777 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5778 for ac_i in 1 2 3 4 5 6 7; do 5779 ac_script="$ac_script$as_nl$ac_script" 5780 done 5781 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5782 { ac_script=; unset ac_script;} 5783 if test -z "$SED"; then 5784 ac_path_SED_found=false 5785 # Loop through the user's path and test for each of PROGNAME-LIST 5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5787for as_dir in $PATH 5788do 5789 IFS=$as_save_IFS 5790 test -z "$as_dir" && as_dir=. 5791 for ac_prog in sed gsed; do 5792 for ac_exec_ext in '' $ac_executable_extensions; do 5793 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5794 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5795# Check for GNU ac_path_SED and select it if it is found. 5796 # Check for GNU $ac_path_SED 5797case `"$ac_path_SED" --version 2>&1` in 5798*GNU*) 5799 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5800*) 5801 ac_count=0 5802 $as_echo_n 0123456789 >"conftest.in" 5803 while : 5804 do 5805 cat "conftest.in" "conftest.in" >"conftest.tmp" 5806 mv "conftest.tmp" "conftest.in" 5807 cp "conftest.in" "conftest.nl" 5808 $as_echo '' >> "conftest.nl" 5809 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5811 as_fn_arith $ac_count + 1 && ac_count=$as_val 5812 if test $ac_count -gt ${ac_path_SED_max-0}; then 5813 # Best one so far, save it but keep looking for a better one 5814 ac_cv_path_SED="$ac_path_SED" 5815 ac_path_SED_max=$ac_count 5816 fi 5817 # 10*(2^10) chars as input seems more than enough 5818 test $ac_count -gt 10 && break 5819 done 5820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5821esac 5822 5823 $ac_path_SED_found && break 3 5824 done 5825 done 5826 done 5827IFS=$as_save_IFS 5828 if test -z "$ac_cv_path_SED"; then 5829 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5830 fi 5831else 5832 ac_cv_path_SED=$SED 5833fi 5834 5835fi 5836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5837$as_echo "$ac_cv_path_SED" >&6; } 5838 SED="$ac_cv_path_SED" 5839 rm -f conftest.sed 5840 5841 5842 5843 5844 5845 5846if test "x$GCC" = xyes ; then 5847 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 5848-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 5849-Wbad-function-cast -Wformat=2" 5850 case `$CC -dumpversion` in 5851 3.4.* | 4.*) 5852 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 5853 ;; 5854 esac 5855else 5856 if test "x$SUNCC" = "xyes"; then 5857 CWARNFLAGS="-v" 5858 fi 5859fi 5860 5861 5862 5863# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 5864 5865 5866 5867 5868# Check whether --enable-strict-compilation was given. 5869if test "${enable_strict_compilation+set}" = set; then : 5870 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 5871else 5872 STRICT_COMPILE=no 5873fi 5874 5875if test "x$GCC" = xyes ; then 5876 STRICT_CFLAGS="-pedantic -Werror" 5877 # Add -Werror=attributes if supported (gcc 4.2 & later) 5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 5879$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 5880 save_CFLAGS="$CFLAGS" 5881 CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes" 5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5883/* end confdefs.h. */ 5884return 0; 5885_ACEOF 5886if ac_fn_c_try_compile "$LINENO"; then : 5887 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5889$as_echo "yes" >&6; } 5890else 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5892$as_echo "no" >&6; } 5893fi 5894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5895 CFLAGS="$save_CFLAGS" 5896elif test "x$SUNCC" = "xyes"; then 5897 STRICT_CFLAGS="-errwarn" 5898elif test "x$INTELCC" = "xyes"; then 5899 STRICT_CFLAGS="-Werror" 5900fi 5901if test "x$STRICT_COMPILE" = "xyes"; then 5902 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 5903fi 5904 5905 5906 5907 5908 5909cat >>confdefs.h <<_ACEOF 5910#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 5911_ACEOF 5912 5913 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 5914 if test "x$PVM" = "x"; then 5915 PVM="0" 5916 fi 5917 5918cat >>confdefs.h <<_ACEOF 5919#define PACKAGE_VERSION_MINOR $PVM 5920_ACEOF 5921 5922 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 5923 if test "x$PVP" = "x"; then 5924 PVP="0" 5925 fi 5926 5927cat >>confdefs.h <<_ACEOF 5928#define PACKAGE_VERSION_PATCHLEVEL $PVP 5929_ACEOF 5930 5931 5932 5933CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 5934mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 5935|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 5936echo 'git directory not found: installing possibly empty changelog.' >&2)" 5937 5938 5939 5940 5941macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 5942INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 5943mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 5944|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 5945echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 5946 5947 5948 5949 5950 5951 5952if test x$APP_MAN_SUFFIX = x ; then 5953 APP_MAN_SUFFIX=1 5954fi 5955if test x$APP_MAN_DIR = x ; then 5956 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 5957fi 5958 5959if test x$LIB_MAN_SUFFIX = x ; then 5960 LIB_MAN_SUFFIX=3 5961fi 5962if test x$LIB_MAN_DIR = x ; then 5963 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 5964fi 5965 5966if test x$FILE_MAN_SUFFIX = x ; then 5967 case $host_os in 5968 solaris*) FILE_MAN_SUFFIX=4 ;; 5969 *) FILE_MAN_SUFFIX=5 ;; 5970 esac 5971fi 5972if test x$FILE_MAN_DIR = x ; then 5973 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 5974fi 5975 5976if test x$MISC_MAN_SUFFIX = x ; then 5977 case $host_os in 5978 solaris*) MISC_MAN_SUFFIX=5 ;; 5979 *) MISC_MAN_SUFFIX=7 ;; 5980 esac 5981fi 5982if test x$MISC_MAN_DIR = x ; then 5983 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 5984fi 5985 5986if test x$DRIVER_MAN_SUFFIX = x ; then 5987 case $host_os in 5988 solaris*) DRIVER_MAN_SUFFIX=7 ;; 5989 *) DRIVER_MAN_SUFFIX=4 ;; 5990 esac 5991fi 5992if test x$DRIVER_MAN_DIR = x ; then 5993 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 5994fi 5995 5996if test x$ADMIN_MAN_SUFFIX = x ; then 5997 case $host_os in 5998 solaris*) ADMIN_MAN_SUFFIX=1m ;; 5999 *) ADMIN_MAN_SUFFIX=8 ;; 6000 esac 6001fi 6002if test x$ADMIN_MAN_DIR = x ; then 6003 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 6004fi 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020XORG_MAN_PAGE="X Version 11" 6021 6022MAN_SUBSTS="\ 6023 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 6024 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 6025 -e 's|__xservername__|Xorg|g' \ 6026 -e 's|__xconfigfile__|xorg.conf|g' \ 6027 -e 's|__projectroot__|\$(prefix)|g' \ 6028 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 6029 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 6030 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 6031 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 6032 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 6033 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 6034 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 6035 6036 6037 6038# Check whether --enable-silent-rules was given. 6039if test "${enable_silent_rules+set}" = set; then : 6040 enableval=$enable_silent_rules; 6041fi 6042 6043case $enable_silent_rules in 6044yes) AM_DEFAULT_VERBOSITY=0;; 6045no) AM_DEFAULT_VERBOSITY=1;; 6046*) AM_DEFAULT_VERBOSITY=0;; 6047esac 6048AM_BACKSLASH='\' 6049 6050 6051 6052 6053 6054 6055# Check whether --with-doxygen was given. 6056if test "${with_doxygen+set}" = set; then : 6057 withval=$with_doxygen; use_doxygen=$withval 6058else 6059 use_doxygen=auto 6060fi 6061 6062 6063 6064if test "x$use_doxygen" = x"auto"; then 6065 # Extract the first word of "doxygen", so it can be a program name with args. 6066set dummy doxygen; ac_word=$2 6067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6068$as_echo_n "checking for $ac_word... " >&6; } 6069if ${ac_cv_path_DOXYGEN+:} false; then : 6070 $as_echo_n "(cached) " >&6 6071else 6072 case $DOXYGEN in 6073 [\\/]* | ?:[\\/]*) 6074 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 6075 ;; 6076 *) 6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6078for as_dir in $PATH 6079do 6080 IFS=$as_save_IFS 6081 test -z "$as_dir" && as_dir=. 6082 for ac_exec_ext in '' $ac_executable_extensions; do 6083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6084 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 6085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6086 break 2 6087 fi 6088done 6089 done 6090IFS=$as_save_IFS 6091 6092 ;; 6093esac 6094fi 6095DOXYGEN=$ac_cv_path_DOXYGEN 6096if test -n "$DOXYGEN"; then 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 6098$as_echo "$DOXYGEN" >&6; } 6099else 6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6101$as_echo "no" >&6; } 6102fi 6103 6104 6105 if test "x$DOXYGEN" = "x"; then 6106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5 6107$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;} 6108 have_doxygen=no 6109 else 6110 have_doxygen=yes 6111 fi 6112elif test "x$use_doxygen" = x"yes" ; then 6113 # Extract the first word of "doxygen", so it can be a program name with args. 6114set dummy doxygen; ac_word=$2 6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6116$as_echo_n "checking for $ac_word... " >&6; } 6117if ${ac_cv_path_DOXYGEN+:} false; then : 6118 $as_echo_n "(cached) " >&6 6119else 6120 case $DOXYGEN in 6121 [\\/]* | ?:[\\/]*) 6122 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 6123 ;; 6124 *) 6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6126for as_dir in $PATH 6127do 6128 IFS=$as_save_IFS 6129 test -z "$as_dir" && as_dir=. 6130 for ac_exec_ext in '' $ac_executable_extensions; do 6131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6132 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 6133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6134 break 2 6135 fi 6136done 6137 done 6138IFS=$as_save_IFS 6139 6140 ;; 6141esac 6142fi 6143DOXYGEN=$ac_cv_path_DOXYGEN 6144if test -n "$DOXYGEN"; then 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 6146$as_echo "$DOXYGEN" >&6; } 6147else 6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6149$as_echo "no" >&6; } 6150fi 6151 6152 6153 if test "x$DOXYGEN" = "x"; then 6154 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5 6155 fi 6156 have_doxygen=yes 6157elif test "x$use_doxygen" = x"no" ; then 6158 if test "x$DOXYGEN" != "x"; then 6159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5 6160$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;} 6161 fi 6162 have_doxygen=no 6163else 6164 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5 6165fi 6166if test "$have_doxygen" = yes; then 6167 # scrape the doxygen version 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5 6169$as_echo_n "checking the doxygen version... " >&6; } 6170 doxygen_version=`$DOXYGEN --version 2>/dev/null` 6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5 6172$as_echo "$doxygen_version" >&6; } 6173 as_arg_v1=$doxygen_version 6174as_arg_v2=1.6.1 6175awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 6176case $? in #( 6177 1) : 6178 if test "x$use_doxygen" = xauto; then 6179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5 6180$as_echo "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;} 6181 have_doxygen=no 6182 else 6183 as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5 6184 fi ;; #( 6185 0) : 6186 ;; #( 6187 2) : 6188 ;; #( 6189 *) : 6190 ;; 6191esac 6192fi 6193 if test "$have_doxygen" = yes; then 6194 HAVE_DOXYGEN_TRUE= 6195 HAVE_DOXYGEN_FALSE='#' 6196else 6197 HAVE_DOXYGEN_TRUE='#' 6198 HAVE_DOXYGEN_FALSE= 6199fi 6200 6201 6202 6203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5 6204$as_echo_n "checking for X.Org SGML entities >= 1.5... " >&6; } 6205XORG_SGML_PATH= 6206if test -n "$PKG_CONFIG" && \ 6207 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5 6208 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5 6209 ac_status=$? 6210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6211 test $ac_status = 0; }; then 6212 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 6213else 6214 : 6215 6216fi 6217 6218# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 6219# the path and the name of the doc stylesheet 6220if test "x$XORG_SGML_PATH" != "x" ; then 6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 6222$as_echo "$XORG_SGML_PATH" >&6; } 6223 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 6224 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 6225else 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6227$as_echo "no" >&6; } 6228fi 6229 6230 6231 6232 6233 if test "x$XSL_STYLESHEET" != "x"; then 6234 HAVE_STYLESHEETS_TRUE= 6235 HAVE_STYLESHEETS_FALSE='#' 6236else 6237 HAVE_STYLESHEETS_TRUE='#' 6238 HAVE_STYLESHEETS_FALSE= 6239fi 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255ac_config_headers="$ac_config_headers include/do-not-use-config.h" 6256 6257ac_config_headers="$ac_config_headers include/xorg-server.h" 6258 6259ac_config_headers="$ac_config_headers include/dix-config.h" 6260 6261ac_config_headers="$ac_config_headers include/xorg-config.h" 6262 6263ac_config_headers="$ac_config_headers include/xkb-config.h" 6264 6265ac_config_headers="$ac_config_headers include/xwin-config.h" 6266 6267ac_config_headers="$ac_config_headers include/kdrive-config.h" 6268 6269ac_config_headers="$ac_config_headers include/version-config.h" 6270 6271 6272# By default we simply use the C compiler to build assembly code. 6273 6274test "${CCAS+set}" = set || CCAS=$CC 6275test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 6276 6277 6278 6279depcc="$CCAS" am_compiler_list= 6280 6281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6282$as_echo_n "checking dependency style of $depcc... " >&6; } 6283if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : 6284 $as_echo_n "(cached) " >&6 6285else 6286 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6287 # We make a subdir and do the tests there. Otherwise we can end up 6288 # making bogus files that we don't know about and never remove. For 6289 # instance it was reported that on HP-UX the gcc test will end up 6290 # making a dummy file named `D' -- because `-MD' means `put the output 6291 # in D'. 6292 mkdir conftest.dir 6293 # Copy depcomp to subdir because otherwise we won't find it if we're 6294 # using a relative directory. 6295 cp "$am_depcomp" conftest.dir 6296 cd conftest.dir 6297 # We will build objects and dependencies in a subdirectory because 6298 # it helps to detect inapplicable dependency modes. For instance 6299 # both Tru64's cc and ICC support -MD to output dependencies as a 6300 # side effect of compilation, but ICC will put the dependencies in 6301 # the current directory while Tru64 will put them in the object 6302 # directory. 6303 mkdir sub 6304 6305 am_cv_CCAS_dependencies_compiler_type=none 6306 if test "$am_compiler_list" = ""; then 6307 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6308 fi 6309 am__universal=false 6310 6311 6312 for depmode in $am_compiler_list; do 6313 # Setup a source with many dependencies, because some compilers 6314 # like to wrap large dependency lists on column 80 (with \), and 6315 # we should not choose a depcomp mode which is confused by this. 6316 # 6317 # We need to recreate these files for each test, as the compiler may 6318 # overwrite some of them when testing with obscure command lines. 6319 # This happens at least with the AIX C compiler. 6320 : > sub/conftest.c 6321 for i in 1 2 3 4 5 6; do 6322 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6323 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6324 # Solaris 8's {/usr,}/bin/sh. 6325 touch sub/conftst$i.h 6326 done 6327 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6328 6329 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6330 # mode. It turns out that the SunPro C++ compiler does not properly 6331 # handle `-M -o', and we need to detect this. Also, some Intel 6332 # versions had trouble with output in subdirs 6333 am__obj=sub/conftest.${OBJEXT-o} 6334 am__minus_obj="-o $am__obj" 6335 case $depmode in 6336 gcc) 6337 # This depmode causes a compiler race in universal mode. 6338 test "$am__universal" = false || continue 6339 ;; 6340 nosideeffect) 6341 # after this tag, mechanisms are not by side-effect, so they'll 6342 # only be used when explicitly requested 6343 if test "x$enable_dependency_tracking" = xyes; then 6344 continue 6345 else 6346 break 6347 fi 6348 ;; 6349 msvisualcpp | msvcmsys) 6350 # This compiler won't grok `-c -o', but also, the minuso test has 6351 # not run yet. These depmodes are late enough in the game, and 6352 # so weak that their functioning should not be impacted. 6353 am__obj=conftest.${OBJEXT-o} 6354 am__minus_obj= 6355 ;; 6356 none) break ;; 6357 esac 6358 if depmode=$depmode \ 6359 source=sub/conftest.c object=$am__obj \ 6360 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6361 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6362 >/dev/null 2>conftest.err && 6363 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6364 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6365 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6366 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6367 # icc doesn't choke on unknown options, it will just issue warnings 6368 # or remarks (even with -Werror). So we grep stderr for any message 6369 # that says an option was ignored or not supported. 6370 # When given -MP, icc 7.0 and 7.1 complain thusly: 6371 # icc: Command line warning: ignoring option '-M'; no argument required 6372 # The diagnosis changed in icc 8.0: 6373 # icc: Command line remark: option '-MP' not supported 6374 if (grep 'ignoring option' conftest.err || 6375 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6376 am_cv_CCAS_dependencies_compiler_type=$depmode 6377 break 6378 fi 6379 fi 6380 done 6381 6382 cd .. 6383 rm -rf conftest.dir 6384else 6385 am_cv_CCAS_dependencies_compiler_type=none 6386fi 6387 6388fi 6389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 6390$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } 6391CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 6392 6393 if 6394 test "x$enable_dependency_tracking" != xno \ 6395 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 6396 am__fastdepCCAS_TRUE= 6397 am__fastdepCCAS_FALSE='#' 6398else 6399 am__fastdepCCAS_TRUE='#' 6400 am__fastdepCCAS_FALSE= 6401fi 6402 6403 6404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6405$as_echo_n "checking whether ln -s works... " >&6; } 6406LN_S=$as_ln_s 6407if test "$LN_S" = "ln -s"; then 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6409$as_echo "yes" >&6; } 6410else 6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6412$as_echo "no, using $LN_S" >&6; } 6413fi 6414 6415enable_win32_dll=yes 6416 6417case $host in 6418*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 6419 if test -n "$ac_tool_prefix"; then 6420 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 6421set dummy ${ac_tool_prefix}as; ac_word=$2 6422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6423$as_echo_n "checking for $ac_word... " >&6; } 6424if ${ac_cv_prog_AS+:} false; then : 6425 $as_echo_n "(cached) " >&6 6426else 6427 if test -n "$AS"; then 6428 ac_cv_prog_AS="$AS" # Let the user override the test. 6429else 6430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6431for as_dir in $PATH 6432do 6433 IFS=$as_save_IFS 6434 test -z "$as_dir" && as_dir=. 6435 for ac_exec_ext in '' $ac_executable_extensions; do 6436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6437 ac_cv_prog_AS="${ac_tool_prefix}as" 6438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6439 break 2 6440 fi 6441done 6442 done 6443IFS=$as_save_IFS 6444 6445fi 6446fi 6447AS=$ac_cv_prog_AS 6448if test -n "$AS"; then 6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 6450$as_echo "$AS" >&6; } 6451else 6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6453$as_echo "no" >&6; } 6454fi 6455 6456 6457fi 6458if test -z "$ac_cv_prog_AS"; then 6459 ac_ct_AS=$AS 6460 # Extract the first word of "as", so it can be a program name with args. 6461set dummy as; ac_word=$2 6462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6463$as_echo_n "checking for $ac_word... " >&6; } 6464if ${ac_cv_prog_ac_ct_AS+:} false; then : 6465 $as_echo_n "(cached) " >&6 6466else 6467 if test -n "$ac_ct_AS"; then 6468 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 6469else 6470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6471for as_dir in $PATH 6472do 6473 IFS=$as_save_IFS 6474 test -z "$as_dir" && as_dir=. 6475 for ac_exec_ext in '' $ac_executable_extensions; do 6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6477 ac_cv_prog_ac_ct_AS="as" 6478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6479 break 2 6480 fi 6481done 6482 done 6483IFS=$as_save_IFS 6484 6485fi 6486fi 6487ac_ct_AS=$ac_cv_prog_ac_ct_AS 6488if test -n "$ac_ct_AS"; then 6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 6490$as_echo "$ac_ct_AS" >&6; } 6491else 6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6493$as_echo "no" >&6; } 6494fi 6495 6496 if test "x$ac_ct_AS" = x; then 6497 AS="false" 6498 else 6499 case $cross_compiling:$ac_tool_warned in 6500yes:) 6501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6503ac_tool_warned=yes ;; 6504esac 6505 AS=$ac_ct_AS 6506 fi 6507else 6508 AS="$ac_cv_prog_AS" 6509fi 6510 6511 if test -n "$ac_tool_prefix"; then 6512 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6513set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6515$as_echo_n "checking for $ac_word... " >&6; } 6516if ${ac_cv_prog_DLLTOOL+:} false; then : 6517 $as_echo_n "(cached) " >&6 6518else 6519 if test -n "$DLLTOOL"; then 6520 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6521else 6522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6523for as_dir in $PATH 6524do 6525 IFS=$as_save_IFS 6526 test -z "$as_dir" && as_dir=. 6527 for ac_exec_ext in '' $ac_executable_extensions; do 6528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6529 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6531 break 2 6532 fi 6533done 6534 done 6535IFS=$as_save_IFS 6536 6537fi 6538fi 6539DLLTOOL=$ac_cv_prog_DLLTOOL 6540if test -n "$DLLTOOL"; then 6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6542$as_echo "$DLLTOOL" >&6; } 6543else 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6545$as_echo "no" >&6; } 6546fi 6547 6548 6549fi 6550if test -z "$ac_cv_prog_DLLTOOL"; then 6551 ac_ct_DLLTOOL=$DLLTOOL 6552 # Extract the first word of "dlltool", so it can be a program name with args. 6553set dummy dlltool; ac_word=$2 6554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6555$as_echo_n "checking for $ac_word... " >&6; } 6556if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6557 $as_echo_n "(cached) " >&6 6558else 6559 if test -n "$ac_ct_DLLTOOL"; then 6560 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6561else 6562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6563for as_dir in $PATH 6564do 6565 IFS=$as_save_IFS 6566 test -z "$as_dir" && as_dir=. 6567 for ac_exec_ext in '' $ac_executable_extensions; do 6568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6569 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6571 break 2 6572 fi 6573done 6574 done 6575IFS=$as_save_IFS 6576 6577fi 6578fi 6579ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6580if test -n "$ac_ct_DLLTOOL"; then 6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6582$as_echo "$ac_ct_DLLTOOL" >&6; } 6583else 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6585$as_echo "no" >&6; } 6586fi 6587 6588 if test "x$ac_ct_DLLTOOL" = x; then 6589 DLLTOOL="false" 6590 else 6591 case $cross_compiling:$ac_tool_warned in 6592yes:) 6593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6595ac_tool_warned=yes ;; 6596esac 6597 DLLTOOL=$ac_ct_DLLTOOL 6598 fi 6599else 6600 DLLTOOL="$ac_cv_prog_DLLTOOL" 6601fi 6602 6603 if test -n "$ac_tool_prefix"; then 6604 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6605set dummy ${ac_tool_prefix}objdump; ac_word=$2 6606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6607$as_echo_n "checking for $ac_word... " >&6; } 6608if ${ac_cv_prog_OBJDUMP+:} false; then : 6609 $as_echo_n "(cached) " >&6 6610else 6611 if test -n "$OBJDUMP"; then 6612 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6613else 6614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6615for as_dir in $PATH 6616do 6617 IFS=$as_save_IFS 6618 test -z "$as_dir" && as_dir=. 6619 for ac_exec_ext in '' $ac_executable_extensions; do 6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6621 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6623 break 2 6624 fi 6625done 6626 done 6627IFS=$as_save_IFS 6628 6629fi 6630fi 6631OBJDUMP=$ac_cv_prog_OBJDUMP 6632if test -n "$OBJDUMP"; then 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6634$as_echo "$OBJDUMP" >&6; } 6635else 6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6637$as_echo "no" >&6; } 6638fi 6639 6640 6641fi 6642if test -z "$ac_cv_prog_OBJDUMP"; then 6643 ac_ct_OBJDUMP=$OBJDUMP 6644 # Extract the first word of "objdump", so it can be a program name with args. 6645set dummy objdump; ac_word=$2 6646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6647$as_echo_n "checking for $ac_word... " >&6; } 6648if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6649 $as_echo_n "(cached) " >&6 6650else 6651 if test -n "$ac_ct_OBJDUMP"; then 6652 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6653else 6654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6655for as_dir in $PATH 6656do 6657 IFS=$as_save_IFS 6658 test -z "$as_dir" && as_dir=. 6659 for ac_exec_ext in '' $ac_executable_extensions; do 6660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6661 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6663 break 2 6664 fi 6665done 6666 done 6667IFS=$as_save_IFS 6668 6669fi 6670fi 6671ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6672if test -n "$ac_ct_OBJDUMP"; then 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6674$as_echo "$ac_ct_OBJDUMP" >&6; } 6675else 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6677$as_echo "no" >&6; } 6678fi 6679 6680 if test "x$ac_ct_OBJDUMP" = x; then 6681 OBJDUMP="false" 6682 else 6683 case $cross_compiling:$ac_tool_warned in 6684yes:) 6685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6687ac_tool_warned=yes ;; 6688esac 6689 OBJDUMP=$ac_ct_OBJDUMP 6690 fi 6691else 6692 OBJDUMP="$ac_cv_prog_OBJDUMP" 6693fi 6694 6695 ;; 6696esac 6697 6698test -z "$AS" && AS=as 6699 6700 6701 6702 6703 6704test -z "$DLLTOOL" && DLLTOOL=dlltool 6705 6706 6707 6708 6709 6710test -z "$OBJDUMP" && OBJDUMP=objdump 6711 6712 6713 6714 6715 6716 6717 6718# Check whether --enable-static was given. 6719if test "${enable_static+set}" = set; then : 6720 enableval=$enable_static; p=${PACKAGE-default} 6721 case $enableval in 6722 yes) enable_static=yes ;; 6723 no) enable_static=no ;; 6724 *) 6725 enable_static=no 6726 # Look at the argument we got. We use all the common list separators. 6727 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6728 for pkg in $enableval; do 6729 IFS="$lt_save_ifs" 6730 if test "X$pkg" = "X$p"; then 6731 enable_static=yes 6732 fi 6733 done 6734 IFS="$lt_save_ifs" 6735 ;; 6736 esac 6737else 6738 enable_static=no 6739fi 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749case `pwd` in 6750 *\ * | *\ *) 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6752$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6753esac 6754 6755 6756 6757macro_version='2.4' 6758macro_revision='1.3293' 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772ltmain="$ac_aux_dir/ltmain.sh" 6773 6774# Backslashify metacharacters that are still active within 6775# double-quoted strings. 6776sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6777 6778# Same as above, but do not quote variable references. 6779double_quote_subst='s/\(["`\\]\)/\\\1/g' 6780 6781# Sed substitution to delay expansion of an escaped shell variable in a 6782# double_quote_subst'ed string. 6783delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6784 6785# Sed substitution to delay expansion of an escaped single quote. 6786delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6787 6788# Sed substitution to avoid accidental globbing in evaled expressions 6789no_glob_subst='s/\*/\\\*/g' 6790 6791ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6792ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6793ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6794 6795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6796$as_echo_n "checking how to print strings... " >&6; } 6797# Test print first, because it will be a builtin if present. 6798if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6799 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6800 ECHO='print -r --' 6801elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6802 ECHO='printf %s\n' 6803else 6804 # Use this function as a fallback that always works. 6805 func_fallback_echo () 6806 { 6807 eval 'cat <<_LTECHO_EOF 6808$1 6809_LTECHO_EOF' 6810 } 6811 ECHO='func_fallback_echo' 6812fi 6813 6814# func_echo_all arg... 6815# Invoke $ECHO with all args, space-separated. 6816func_echo_all () 6817{ 6818 $ECHO "" 6819} 6820 6821case "$ECHO" in 6822 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6823$as_echo "printf" >&6; } ;; 6824 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6825$as_echo "print -r" >&6; } ;; 6826 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6827$as_echo "cat" >&6; } ;; 6828esac 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6844$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6845if ${ac_cv_path_SED+:} false; then : 6846 $as_echo_n "(cached) " >&6 6847else 6848 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6849 for ac_i in 1 2 3 4 5 6 7; do 6850 ac_script="$ac_script$as_nl$ac_script" 6851 done 6852 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6853 { ac_script=; unset ac_script;} 6854 if test -z "$SED"; then 6855 ac_path_SED_found=false 6856 # Loop through the user's path and test for each of PROGNAME-LIST 6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6858for as_dir in $PATH 6859do 6860 IFS=$as_save_IFS 6861 test -z "$as_dir" && as_dir=. 6862 for ac_prog in sed gsed; do 6863 for ac_exec_ext in '' $ac_executable_extensions; do 6864 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6865 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 6866# Check for GNU ac_path_SED and select it if it is found. 6867 # Check for GNU $ac_path_SED 6868case `"$ac_path_SED" --version 2>&1` in 6869*GNU*) 6870 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6871*) 6872 ac_count=0 6873 $as_echo_n 0123456789 >"conftest.in" 6874 while : 6875 do 6876 cat "conftest.in" "conftest.in" >"conftest.tmp" 6877 mv "conftest.tmp" "conftest.in" 6878 cp "conftest.in" "conftest.nl" 6879 $as_echo '' >> "conftest.nl" 6880 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6881 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6882 as_fn_arith $ac_count + 1 && ac_count=$as_val 6883 if test $ac_count -gt ${ac_path_SED_max-0}; then 6884 # Best one so far, save it but keep looking for a better one 6885 ac_cv_path_SED="$ac_path_SED" 6886 ac_path_SED_max=$ac_count 6887 fi 6888 # 10*(2^10) chars as input seems more than enough 6889 test $ac_count -gt 10 && break 6890 done 6891 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6892esac 6893 6894 $ac_path_SED_found && break 3 6895 done 6896 done 6897 done 6898IFS=$as_save_IFS 6899 if test -z "$ac_cv_path_SED"; then 6900 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6901 fi 6902else 6903 ac_cv_path_SED=$SED 6904fi 6905 6906fi 6907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6908$as_echo "$ac_cv_path_SED" >&6; } 6909 SED="$ac_cv_path_SED" 6910 rm -f conftest.sed 6911 6912test -z "$SED" && SED=sed 6913Xsed="$SED -e 1s/^X//" 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6926$as_echo_n "checking for fgrep... " >&6; } 6927if ${ac_cv_path_FGREP+:} false; then : 6928 $as_echo_n "(cached) " >&6 6929else 6930 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6931 then ac_cv_path_FGREP="$GREP -F" 6932 else 6933 if test -z "$FGREP"; then 6934 ac_path_FGREP_found=false 6935 # Loop through the user's path and test for each of PROGNAME-LIST 6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6937for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6938do 6939 IFS=$as_save_IFS 6940 test -z "$as_dir" && as_dir=. 6941 for ac_prog in fgrep; do 6942 for ac_exec_ext in '' $ac_executable_extensions; do 6943 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6944 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 6945# Check for GNU ac_path_FGREP and select it if it is found. 6946 # Check for GNU $ac_path_FGREP 6947case `"$ac_path_FGREP" --version 2>&1` in 6948*GNU*) 6949 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6950*) 6951 ac_count=0 6952 $as_echo_n 0123456789 >"conftest.in" 6953 while : 6954 do 6955 cat "conftest.in" "conftest.in" >"conftest.tmp" 6956 mv "conftest.tmp" "conftest.in" 6957 cp "conftest.in" "conftest.nl" 6958 $as_echo 'FGREP' >> "conftest.nl" 6959 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6961 as_fn_arith $ac_count + 1 && ac_count=$as_val 6962 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6963 # Best one so far, save it but keep looking for a better one 6964 ac_cv_path_FGREP="$ac_path_FGREP" 6965 ac_path_FGREP_max=$ac_count 6966 fi 6967 # 10*(2^10) chars as input seems more than enough 6968 test $ac_count -gt 10 && break 6969 done 6970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6971esac 6972 6973 $ac_path_FGREP_found && break 3 6974 done 6975 done 6976 done 6977IFS=$as_save_IFS 6978 if test -z "$ac_cv_path_FGREP"; then 6979 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6980 fi 6981else 6982 ac_cv_path_FGREP=$FGREP 6983fi 6984 6985 fi 6986fi 6987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6988$as_echo "$ac_cv_path_FGREP" >&6; } 6989 FGREP="$ac_cv_path_FGREP" 6990 6991 6992test -z "$GREP" && GREP=grep 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012# Check whether --with-gnu-ld was given. 7013if test "${with_gnu_ld+set}" = set; then : 7014 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 7015else 7016 with_gnu_ld=no 7017fi 7018 7019ac_prog=ld 7020if test "$GCC" = yes; then 7021 # Check if gcc -print-prog-name=ld gives a path. 7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7023$as_echo_n "checking for ld used by $CC... " >&6; } 7024 case $host in 7025 *-*-mingw*) 7026 # gcc leaves a trailing carriage return which upsets mingw 7027 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7028 *) 7029 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7030 esac 7031 case $ac_prog in 7032 # Accept absolute paths. 7033 [\\/]* | ?:[\\/]*) 7034 re_direlt='/[^/][^/]*/\.\./' 7035 # Canonicalize the pathname of ld 7036 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7037 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7038 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7039 done 7040 test -z "$LD" && LD="$ac_prog" 7041 ;; 7042 "") 7043 # If it fails, then pretend we aren't using GCC. 7044 ac_prog=ld 7045 ;; 7046 *) 7047 # If it is relative, then search for the first ld in PATH. 7048 with_gnu_ld=unknown 7049 ;; 7050 esac 7051elif test "$with_gnu_ld" = yes; then 7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7053$as_echo_n "checking for GNU ld... " >&6; } 7054else 7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7056$as_echo_n "checking for non-GNU ld... " >&6; } 7057fi 7058if ${lt_cv_path_LD+:} false; then : 7059 $as_echo_n "(cached) " >&6 7060else 7061 if test -z "$LD"; then 7062 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7063 for ac_dir in $PATH; do 7064 IFS="$lt_save_ifs" 7065 test -z "$ac_dir" && ac_dir=. 7066 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7067 lt_cv_path_LD="$ac_dir/$ac_prog" 7068 # Check to see if the program is GNU ld. I'd rather use --version, 7069 # but apparently some variants of GNU ld only accept -v. 7070 # Break only if it was the GNU/non-GNU ld that we prefer. 7071 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7072 *GNU* | *'with BFD'*) 7073 test "$with_gnu_ld" != no && break 7074 ;; 7075 *) 7076 test "$with_gnu_ld" != yes && break 7077 ;; 7078 esac 7079 fi 7080 done 7081 IFS="$lt_save_ifs" 7082else 7083 lt_cv_path_LD="$LD" # Let the user override the test with a path. 7084fi 7085fi 7086 7087LD="$lt_cv_path_LD" 7088if test -n "$LD"; then 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7090$as_echo "$LD" >&6; } 7091else 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7093$as_echo "no" >&6; } 7094fi 7095test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7097$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7098if ${lt_cv_prog_gnu_ld+:} false; then : 7099 $as_echo_n "(cached) " >&6 7100else 7101 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7102case `$LD -v 2>&1 </dev/null` in 7103*GNU* | *'with BFD'*) 7104 lt_cv_prog_gnu_ld=yes 7105 ;; 7106*) 7107 lt_cv_prog_gnu_ld=no 7108 ;; 7109esac 7110fi 7111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7112$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7113with_gnu_ld=$lt_cv_prog_gnu_ld 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7124$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7125if ${lt_cv_path_NM+:} false; then : 7126 $as_echo_n "(cached) " >&6 7127else 7128 if test -n "$NM"; then 7129 # Let the user override the test. 7130 lt_cv_path_NM="$NM" 7131else 7132 lt_nm_to_check="${ac_tool_prefix}nm" 7133 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7134 lt_nm_to_check="$lt_nm_to_check nm" 7135 fi 7136 for lt_tmp_nm in $lt_nm_to_check; do 7137 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7138 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7139 IFS="$lt_save_ifs" 7140 test -z "$ac_dir" && ac_dir=. 7141 tmp_nm="$ac_dir/$lt_tmp_nm" 7142 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 7143 # Check to see if the nm accepts a BSD-compat flag. 7144 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 7145 # nm: unknown option "B" ignored 7146 # Tru64's nm complains that /dev/null is an invalid object file 7147 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 7148 */dev/null* | *'Invalid file or object type'*) 7149 lt_cv_path_NM="$tmp_nm -B" 7150 break 7151 ;; 7152 *) 7153 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7154 */dev/null*) 7155 lt_cv_path_NM="$tmp_nm -p" 7156 break 7157 ;; 7158 *) 7159 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7160 continue # so that we can try to find one that supports BSD flags 7161 ;; 7162 esac 7163 ;; 7164 esac 7165 fi 7166 done 7167 IFS="$lt_save_ifs" 7168 done 7169 : ${lt_cv_path_NM=no} 7170fi 7171fi 7172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7173$as_echo "$lt_cv_path_NM" >&6; } 7174if test "$lt_cv_path_NM" != "no"; then 7175 NM="$lt_cv_path_NM" 7176else 7177 # Didn't find any BSD compatible name lister, look for dumpbin. 7178 if test -n "$DUMPBIN"; then : 7179 # Let the user override the test. 7180 else 7181 if test -n "$ac_tool_prefix"; then 7182 for ac_prog in dumpbin "link -dump" 7183 do 7184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7185set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7187$as_echo_n "checking for $ac_word... " >&6; } 7188if ${ac_cv_prog_DUMPBIN+:} false; then : 7189 $as_echo_n "(cached) " >&6 7190else 7191 if test -n "$DUMPBIN"; then 7192 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7193else 7194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7195for as_dir in $PATH 7196do 7197 IFS=$as_save_IFS 7198 test -z "$as_dir" && as_dir=. 7199 for ac_exec_ext in '' $ac_executable_extensions; do 7200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7201 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7203 break 2 7204 fi 7205done 7206 done 7207IFS=$as_save_IFS 7208 7209fi 7210fi 7211DUMPBIN=$ac_cv_prog_DUMPBIN 7212if test -n "$DUMPBIN"; then 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7214$as_echo "$DUMPBIN" >&6; } 7215else 7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7217$as_echo "no" >&6; } 7218fi 7219 7220 7221 test -n "$DUMPBIN" && break 7222 done 7223fi 7224if test -z "$DUMPBIN"; then 7225 ac_ct_DUMPBIN=$DUMPBIN 7226 for ac_prog in dumpbin "link -dump" 7227do 7228 # Extract the first word of "$ac_prog", so it can be a program name with args. 7229set dummy $ac_prog; ac_word=$2 7230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7231$as_echo_n "checking for $ac_word... " >&6; } 7232if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7233 $as_echo_n "(cached) " >&6 7234else 7235 if test -n "$ac_ct_DUMPBIN"; then 7236 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7237else 7238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7239for as_dir in $PATH 7240do 7241 IFS=$as_save_IFS 7242 test -z "$as_dir" && as_dir=. 7243 for ac_exec_ext in '' $ac_executable_extensions; do 7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7245 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7247 break 2 7248 fi 7249done 7250 done 7251IFS=$as_save_IFS 7252 7253fi 7254fi 7255ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7256if test -n "$ac_ct_DUMPBIN"; then 7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7258$as_echo "$ac_ct_DUMPBIN" >&6; } 7259else 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7261$as_echo "no" >&6; } 7262fi 7263 7264 7265 test -n "$ac_ct_DUMPBIN" && break 7266done 7267 7268 if test "x$ac_ct_DUMPBIN" = x; then 7269 DUMPBIN=":" 7270 else 7271 case $cross_compiling:$ac_tool_warned in 7272yes:) 7273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7275ac_tool_warned=yes ;; 7276esac 7277 DUMPBIN=$ac_ct_DUMPBIN 7278 fi 7279fi 7280 7281 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 7282 *COFF*) 7283 DUMPBIN="$DUMPBIN -symbols" 7284 ;; 7285 *) 7286 DUMPBIN=: 7287 ;; 7288 esac 7289 fi 7290 7291 if test "$DUMPBIN" != ":"; then 7292 NM="$DUMPBIN" 7293 fi 7294fi 7295test -z "$NM" && NM=nm 7296 7297 7298 7299 7300 7301 7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7303$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7304if ${lt_cv_nm_interface+:} false; then : 7305 $as_echo_n "(cached) " >&6 7306else 7307 lt_cv_nm_interface="BSD nm" 7308 echo "int some_variable = 0;" > conftest.$ac_ext 7309 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7310 (eval "$ac_compile" 2>conftest.err) 7311 cat conftest.err >&5 7312 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7313 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7314 cat conftest.err >&5 7315 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7316 cat conftest.out >&5 7317 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7318 lt_cv_nm_interface="MS dumpbin" 7319 fi 7320 rm -f conftest* 7321fi 7322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7323$as_echo "$lt_cv_nm_interface" >&6; } 7324 7325# find the maximum length of command line arguments 7326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7327$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7328if ${lt_cv_sys_max_cmd_len+:} false; then : 7329 $as_echo_n "(cached) " >&6 7330else 7331 i=0 7332 teststring="ABCD" 7333 7334 case $build_os in 7335 msdosdjgpp*) 7336 # On DJGPP, this test can blow up pretty badly due to problems in libc 7337 # (any single argument exceeding 2000 bytes causes a buffer overrun 7338 # during glob expansion). Even if it were fixed, the result of this 7339 # check would be larger than it should be. 7340 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7341 ;; 7342 7343 gnu*) 7344 # Under GNU Hurd, this test is not required because there is 7345 # no limit to the length of command line arguments. 7346 # Libtool will interpret -1 as no limit whatsoever 7347 lt_cv_sys_max_cmd_len=-1; 7348 ;; 7349 7350 cygwin* | mingw* | cegcc*) 7351 # On Win9x/ME, this test blows up -- it succeeds, but takes 7352 # about 5 minutes as the teststring grows exponentially. 7353 # Worse, since 9x/ME are not pre-emptively multitasking, 7354 # you end up with a "frozen" computer, even though with patience 7355 # the test eventually succeeds (with a max line length of 256k). 7356 # Instead, let's just punt: use the minimum linelength reported by 7357 # all of the supported platforms: 8192 (on NT/2K/XP). 7358 lt_cv_sys_max_cmd_len=8192; 7359 ;; 7360 7361 mint*) 7362 # On MiNT this can take a long time and run out of memory. 7363 lt_cv_sys_max_cmd_len=8192; 7364 ;; 7365 7366 amigaos*) 7367 # On AmigaOS with pdksh, this test takes hours, literally. 7368 # So we just punt and use a minimum line length of 8192. 7369 lt_cv_sys_max_cmd_len=8192; 7370 ;; 7371 7372 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7373 # This has been around since 386BSD, at least. Likely further. 7374 if test -x /sbin/sysctl; then 7375 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7376 elif test -x /usr/sbin/sysctl; then 7377 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7378 else 7379 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7380 fi 7381 # And add a safety zone 7382 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7383 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7384 ;; 7385 7386 interix*) 7387 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7388 lt_cv_sys_max_cmd_len=196608 7389 ;; 7390 7391 osf*) 7392 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7393 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7394 # nice to cause kernel panics so lets avoid the loop below. 7395 # First set a reasonable default. 7396 lt_cv_sys_max_cmd_len=16384 7397 # 7398 if test -x /sbin/sysconfig; then 7399 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7400 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7401 esac 7402 fi 7403 ;; 7404 sco3.2v5*) 7405 lt_cv_sys_max_cmd_len=102400 7406 ;; 7407 sysv5* | sco5v6* | sysv4.2uw2*) 7408 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7409 if test -n "$kargmax"; then 7410 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7411 else 7412 lt_cv_sys_max_cmd_len=32768 7413 fi 7414 ;; 7415 *) 7416 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7417 if test -n "$lt_cv_sys_max_cmd_len"; then 7418 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7419 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7420 else 7421 # Make teststring a little bigger before we do anything with it. 7422 # a 1K string should be a reasonable start. 7423 for i in 1 2 3 4 5 6 7 8 ; do 7424 teststring=$teststring$teststring 7425 done 7426 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7427 # If test is not a shell built-in, we'll probably end up computing a 7428 # maximum length that is only half of the actual maximum length, but 7429 # we can't tell. 7430 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 7431 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7432 test $i != 17 # 1/2 MB should be enough 7433 do 7434 i=`expr $i + 1` 7435 teststring=$teststring$teststring 7436 done 7437 # Only check the string length outside the loop. 7438 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7439 teststring= 7440 # Add a significant safety factor because C++ compilers can tack on 7441 # massive amounts of additional arguments before passing them to the 7442 # linker. It appears as though 1/2 is a usable value. 7443 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7444 fi 7445 ;; 7446 esac 7447 7448fi 7449 7450if test -n $lt_cv_sys_max_cmd_len ; then 7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7452$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7453else 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7455$as_echo "none" >&6; } 7456fi 7457max_cmd_len=$lt_cv_sys_max_cmd_len 7458 7459 7460 7461 7462 7463 7464: ${CP="cp -f"} 7465: ${MV="mv -f"} 7466: ${RM="rm -f"} 7467 7468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 7469$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 7470# Try some XSI features 7471xsi_shell=no 7472( _lt_dummy="a/b/c" 7473 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 7474 = c,a/b,b/c, \ 7475 && eval 'test $(( 1 + 1 )) -eq 2 \ 7476 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7477 && xsi_shell=yes 7478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 7479$as_echo "$xsi_shell" >&6; } 7480 7481 7482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 7483$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 7484lt_shell_append=no 7485( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 7486 >/dev/null 2>&1 \ 7487 && lt_shell_append=yes 7488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 7489$as_echo "$lt_shell_append" >&6; } 7490 7491 7492if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7493 lt_unset=unset 7494else 7495 lt_unset=false 7496fi 7497 7498 7499 7500 7501 7502# test EBCDIC or ASCII 7503case `echo X|tr X '\101'` in 7504 A) # ASCII based system 7505 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7506 lt_SP2NL='tr \040 \012' 7507 lt_NL2SP='tr \015\012 \040\040' 7508 ;; 7509 *) # EBCDIC based system 7510 lt_SP2NL='tr \100 \n' 7511 lt_NL2SP='tr \r\n \100\100' 7512 ;; 7513esac 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7524$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7525if ${lt_cv_to_host_file_cmd+:} false; then : 7526 $as_echo_n "(cached) " >&6 7527else 7528 case $host in 7529 *-*-mingw* ) 7530 case $build in 7531 *-*-mingw* ) # actually msys 7532 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7533 ;; 7534 *-*-cygwin* ) 7535 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7536 ;; 7537 * ) # otherwise, assume *nix 7538 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7539 ;; 7540 esac 7541 ;; 7542 *-*-cygwin* ) 7543 case $build in 7544 *-*-mingw* ) # actually msys 7545 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7546 ;; 7547 *-*-cygwin* ) 7548 lt_cv_to_host_file_cmd=func_convert_file_noop 7549 ;; 7550 * ) # otherwise, assume *nix 7551 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7552 ;; 7553 esac 7554 ;; 7555 * ) # unhandled hosts (and "normal" native builds) 7556 lt_cv_to_host_file_cmd=func_convert_file_noop 7557 ;; 7558esac 7559 7560fi 7561 7562to_host_file_cmd=$lt_cv_to_host_file_cmd 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7564$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7565 7566 7567 7568 7569 7570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7571$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7572if ${lt_cv_to_tool_file_cmd+:} false; then : 7573 $as_echo_n "(cached) " >&6 7574else 7575 #assume ordinary cross tools, or native build. 7576lt_cv_to_tool_file_cmd=func_convert_file_noop 7577case $host in 7578 *-*-mingw* ) 7579 case $build in 7580 *-*-mingw* ) # actually msys 7581 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7582 ;; 7583 esac 7584 ;; 7585esac 7586 7587fi 7588 7589to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7591$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7592 7593 7594 7595 7596 7597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7598$as_echo_n "checking for $LD option to reload object files... " >&6; } 7599if ${lt_cv_ld_reload_flag+:} false; then : 7600 $as_echo_n "(cached) " >&6 7601else 7602 lt_cv_ld_reload_flag='-r' 7603fi 7604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7605$as_echo "$lt_cv_ld_reload_flag" >&6; } 7606reload_flag=$lt_cv_ld_reload_flag 7607case $reload_flag in 7608"" | " "*) ;; 7609*) reload_flag=" $reload_flag" ;; 7610esac 7611reload_cmds='$LD$reload_flag -o $output$reload_objs' 7612case $host_os in 7613 cygwin* | mingw* | pw32* | cegcc*) 7614 if test "$GCC" != yes; then 7615 reload_cmds=false 7616 fi 7617 ;; 7618 darwin*) 7619 if test "$GCC" = yes; then 7620 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7621 else 7622 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7623 fi 7624 ;; 7625esac 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635if test -n "$ac_tool_prefix"; then 7636 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7637set dummy ${ac_tool_prefix}objdump; ac_word=$2 7638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7639$as_echo_n "checking for $ac_word... " >&6; } 7640if ${ac_cv_prog_OBJDUMP+:} false; then : 7641 $as_echo_n "(cached) " >&6 7642else 7643 if test -n "$OBJDUMP"; then 7644 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7645else 7646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7647for as_dir in $PATH 7648do 7649 IFS=$as_save_IFS 7650 test -z "$as_dir" && as_dir=. 7651 for ac_exec_ext in '' $ac_executable_extensions; do 7652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7653 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7655 break 2 7656 fi 7657done 7658 done 7659IFS=$as_save_IFS 7660 7661fi 7662fi 7663OBJDUMP=$ac_cv_prog_OBJDUMP 7664if test -n "$OBJDUMP"; then 7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7666$as_echo "$OBJDUMP" >&6; } 7667else 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7669$as_echo "no" >&6; } 7670fi 7671 7672 7673fi 7674if test -z "$ac_cv_prog_OBJDUMP"; then 7675 ac_ct_OBJDUMP=$OBJDUMP 7676 # Extract the first word of "objdump", so it can be a program name with args. 7677set dummy objdump; ac_word=$2 7678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7679$as_echo_n "checking for $ac_word... " >&6; } 7680if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7681 $as_echo_n "(cached) " >&6 7682else 7683 if test -n "$ac_ct_OBJDUMP"; then 7684 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7685else 7686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7687for as_dir in $PATH 7688do 7689 IFS=$as_save_IFS 7690 test -z "$as_dir" && as_dir=. 7691 for ac_exec_ext in '' $ac_executable_extensions; do 7692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7693 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7695 break 2 7696 fi 7697done 7698 done 7699IFS=$as_save_IFS 7700 7701fi 7702fi 7703ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7704if test -n "$ac_ct_OBJDUMP"; then 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7706$as_echo "$ac_ct_OBJDUMP" >&6; } 7707else 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7709$as_echo "no" >&6; } 7710fi 7711 7712 if test "x$ac_ct_OBJDUMP" = x; then 7713 OBJDUMP="false" 7714 else 7715 case $cross_compiling:$ac_tool_warned in 7716yes:) 7717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7719ac_tool_warned=yes ;; 7720esac 7721 OBJDUMP=$ac_ct_OBJDUMP 7722 fi 7723else 7724 OBJDUMP="$ac_cv_prog_OBJDUMP" 7725fi 7726 7727test -z "$OBJDUMP" && OBJDUMP=objdump 7728 7729 7730 7731 7732 7733 7734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7735$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7736if ${lt_cv_deplibs_check_method+:} false; then : 7737 $as_echo_n "(cached) " >&6 7738else 7739 lt_cv_file_magic_cmd='$MAGIC_CMD' 7740lt_cv_file_magic_test_file= 7741lt_cv_deplibs_check_method='unknown' 7742# Need to set the preceding variable on all platforms that support 7743# interlibrary dependencies. 7744# 'none' -- dependencies not supported. 7745# `unknown' -- same as none, but documents that we really don't know. 7746# 'pass_all' -- all dependencies passed with no checks. 7747# 'test_compile' -- check by making test program. 7748# 'file_magic [[regex]]' -- check by looking for files in library path 7749# which responds to the $file_magic_cmd with a given extended regex. 7750# If you have `file' or equivalent on your system and you're not sure 7751# whether `pass_all' will *always* work, you probably want this one. 7752 7753case $host_os in 7754aix[4-9]*) 7755 lt_cv_deplibs_check_method=pass_all 7756 ;; 7757 7758beos*) 7759 lt_cv_deplibs_check_method=pass_all 7760 ;; 7761 7762bsdi[45]*) 7763 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7764 lt_cv_file_magic_cmd='/usr/bin/file -L' 7765 lt_cv_file_magic_test_file=/shlib/libc.so 7766 ;; 7767 7768cygwin*) 7769 # func_win32_libid is a shell function defined in ltmain.sh 7770 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7771 lt_cv_file_magic_cmd='func_win32_libid' 7772 ;; 7773 7774mingw* | pw32*) 7775 # Base MSYS/MinGW do not provide the 'file' command needed by 7776 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7777 # unless we find 'file', for example because we are cross-compiling. 7778 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 7779 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 7780 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7781 lt_cv_file_magic_cmd='func_win32_libid' 7782 else 7783 # Keep this pattern in sync with the one in func_win32_libid. 7784 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7785 lt_cv_file_magic_cmd='$OBJDUMP -f' 7786 fi 7787 ;; 7788 7789cegcc*) 7790 # use the weaker test based on 'objdump'. See mingw*. 7791 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7792 lt_cv_file_magic_cmd='$OBJDUMP -f' 7793 ;; 7794 7795darwin* | rhapsody*) 7796 lt_cv_deplibs_check_method=pass_all 7797 ;; 7798 7799freebsd* | dragonfly*) 7800 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7801 case $host_cpu in 7802 i*86 ) 7803 # Not sure whether the presence of OpenBSD here was a mistake. 7804 # Let's accept both of them until this is cleared up. 7805 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7806 lt_cv_file_magic_cmd=/usr/bin/file 7807 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7808 ;; 7809 esac 7810 else 7811 lt_cv_deplibs_check_method=pass_all 7812 fi 7813 ;; 7814 7815gnu*) 7816 lt_cv_deplibs_check_method=pass_all 7817 ;; 7818 7819haiku*) 7820 lt_cv_deplibs_check_method=pass_all 7821 ;; 7822 7823hpux10.20* | hpux11*) 7824 lt_cv_file_magic_cmd=/usr/bin/file 7825 case $host_cpu in 7826 ia64*) 7827 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7828 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7829 ;; 7830 hppa*64*) 7831 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]' 7832 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7833 ;; 7834 *) 7835 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7836 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7837 ;; 7838 esac 7839 ;; 7840 7841interix[3-9]*) 7842 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7843 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7844 ;; 7845 7846irix5* | irix6* | nonstopux*) 7847 case $LD in 7848 *-32|*"-32 ") libmagic=32-bit;; 7849 *-n32|*"-n32 ") libmagic=N32;; 7850 *-64|*"-64 ") libmagic=64-bit;; 7851 *) libmagic=never-match;; 7852 esac 7853 lt_cv_deplibs_check_method=pass_all 7854 ;; 7855 7856# This must be Linux ELF. 7857linux* | k*bsd*-gnu | kopensolaris*-gnu) 7858 lt_cv_deplibs_check_method=pass_all 7859 ;; 7860 7861netbsd*) 7862 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7863 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7864 else 7865 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7866 fi 7867 ;; 7868 7869newos6*) 7870 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7871 lt_cv_file_magic_cmd=/usr/bin/file 7872 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7873 ;; 7874 7875*nto* | *qnx*) 7876 lt_cv_deplibs_check_method=pass_all 7877 ;; 7878 7879openbsd*) 7880 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7882 else 7883 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7884 fi 7885 ;; 7886 7887osf3* | osf4* | osf5*) 7888 lt_cv_deplibs_check_method=pass_all 7889 ;; 7890 7891rdos*) 7892 lt_cv_deplibs_check_method=pass_all 7893 ;; 7894 7895solaris*) 7896 lt_cv_deplibs_check_method=pass_all 7897 ;; 7898 7899sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7900 lt_cv_deplibs_check_method=pass_all 7901 ;; 7902 7903sysv4 | sysv4.3*) 7904 case $host_vendor in 7905 motorola) 7906 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]' 7907 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7908 ;; 7909 ncr) 7910 lt_cv_deplibs_check_method=pass_all 7911 ;; 7912 sequent) 7913 lt_cv_file_magic_cmd='/bin/file' 7914 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7915 ;; 7916 sni) 7917 lt_cv_file_magic_cmd='/bin/file' 7918 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7919 lt_cv_file_magic_test_file=/lib/libc.so 7920 ;; 7921 siemens) 7922 lt_cv_deplibs_check_method=pass_all 7923 ;; 7924 pc) 7925 lt_cv_deplibs_check_method=pass_all 7926 ;; 7927 esac 7928 ;; 7929 7930tpf*) 7931 lt_cv_deplibs_check_method=pass_all 7932 ;; 7933esac 7934 7935fi 7936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7937$as_echo "$lt_cv_deplibs_check_method" >&6; } 7938 7939file_magic_glob= 7940want_nocaseglob=no 7941if test "$build" = "$host"; then 7942 case $host_os in 7943 mingw* | pw32*) 7944 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7945 want_nocaseglob=yes 7946 else 7947 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7948 fi 7949 ;; 7950 esac 7951fi 7952 7953file_magic_cmd=$lt_cv_file_magic_cmd 7954deplibs_check_method=$lt_cv_deplibs_check_method 7955test -z "$deplibs_check_method" && deplibs_check_method=unknown 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978if test -n "$ac_tool_prefix"; then 7979 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7980set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7982$as_echo_n "checking for $ac_word... " >&6; } 7983if ${ac_cv_prog_DLLTOOL+:} false; then : 7984 $as_echo_n "(cached) " >&6 7985else 7986 if test -n "$DLLTOOL"; then 7987 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7988else 7989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7990for as_dir in $PATH 7991do 7992 IFS=$as_save_IFS 7993 test -z "$as_dir" && as_dir=. 7994 for ac_exec_ext in '' $ac_executable_extensions; do 7995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7996 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7998 break 2 7999 fi 8000done 8001 done 8002IFS=$as_save_IFS 8003 8004fi 8005fi 8006DLLTOOL=$ac_cv_prog_DLLTOOL 8007if test -n "$DLLTOOL"; then 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8009$as_echo "$DLLTOOL" >&6; } 8010else 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8012$as_echo "no" >&6; } 8013fi 8014 8015 8016fi 8017if test -z "$ac_cv_prog_DLLTOOL"; then 8018 ac_ct_DLLTOOL=$DLLTOOL 8019 # Extract the first word of "dlltool", so it can be a program name with args. 8020set dummy dlltool; ac_word=$2 8021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8022$as_echo_n "checking for $ac_word... " >&6; } 8023if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8024 $as_echo_n "(cached) " >&6 8025else 8026 if test -n "$ac_ct_DLLTOOL"; then 8027 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8028else 8029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8030for as_dir in $PATH 8031do 8032 IFS=$as_save_IFS 8033 test -z "$as_dir" && as_dir=. 8034 for ac_exec_ext in '' $ac_executable_extensions; do 8035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8036 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8038 break 2 8039 fi 8040done 8041 done 8042IFS=$as_save_IFS 8043 8044fi 8045fi 8046ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8047if test -n "$ac_ct_DLLTOOL"; then 8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8049$as_echo "$ac_ct_DLLTOOL" >&6; } 8050else 8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8052$as_echo "no" >&6; } 8053fi 8054 8055 if test "x$ac_ct_DLLTOOL" = x; then 8056 DLLTOOL="false" 8057 else 8058 case $cross_compiling:$ac_tool_warned in 8059yes:) 8060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8062ac_tool_warned=yes ;; 8063esac 8064 DLLTOOL=$ac_ct_DLLTOOL 8065 fi 8066else 8067 DLLTOOL="$ac_cv_prog_DLLTOOL" 8068fi 8069 8070test -z "$DLLTOOL" && DLLTOOL=dlltool 8071 8072 8073 8074 8075 8076 8077 8078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8079$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8080if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8081 $as_echo_n "(cached) " >&6 8082else 8083 lt_cv_sharedlib_from_linklib_cmd='unknown' 8084 8085case $host_os in 8086cygwin* | mingw* | pw32* | cegcc*) 8087 # two different shell functions defined in ltmain.sh 8088 # decide which to use based on capabilities of $DLLTOOL 8089 case `$DLLTOOL --help 2>&1` in 8090 *--identify-strict*) 8091 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8092 ;; 8093 *) 8094 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8095 ;; 8096 esac 8097 ;; 8098*) 8099 # fallback: assume linklib IS sharedlib 8100 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 8101 ;; 8102esac 8103 8104fi 8105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8106$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8107sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8108test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8109 8110 8111 8112 8113 8114 8115 8116if test -n "$ac_tool_prefix"; then 8117 for ac_prog in ar 8118 do 8119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8120set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8122$as_echo_n "checking for $ac_word... " >&6; } 8123if ${ac_cv_prog_AR+:} false; then : 8124 $as_echo_n "(cached) " >&6 8125else 8126 if test -n "$AR"; then 8127 ac_cv_prog_AR="$AR" # Let the user override the test. 8128else 8129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8130for as_dir in $PATH 8131do 8132 IFS=$as_save_IFS 8133 test -z "$as_dir" && as_dir=. 8134 for ac_exec_ext in '' $ac_executable_extensions; do 8135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8136 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8138 break 2 8139 fi 8140done 8141 done 8142IFS=$as_save_IFS 8143 8144fi 8145fi 8146AR=$ac_cv_prog_AR 8147if test -n "$AR"; then 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8149$as_echo "$AR" >&6; } 8150else 8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8152$as_echo "no" >&6; } 8153fi 8154 8155 8156 test -n "$AR" && break 8157 done 8158fi 8159if test -z "$AR"; then 8160 ac_ct_AR=$AR 8161 for ac_prog in ar 8162do 8163 # Extract the first word of "$ac_prog", so it can be a program name with args. 8164set dummy $ac_prog; ac_word=$2 8165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8166$as_echo_n "checking for $ac_word... " >&6; } 8167if ${ac_cv_prog_ac_ct_AR+:} false; then : 8168 $as_echo_n "(cached) " >&6 8169else 8170 if test -n "$ac_ct_AR"; then 8171 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8172else 8173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8174for as_dir in $PATH 8175do 8176 IFS=$as_save_IFS 8177 test -z "$as_dir" && as_dir=. 8178 for ac_exec_ext in '' $ac_executable_extensions; do 8179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8180 ac_cv_prog_ac_ct_AR="$ac_prog" 8181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8182 break 2 8183 fi 8184done 8185 done 8186IFS=$as_save_IFS 8187 8188fi 8189fi 8190ac_ct_AR=$ac_cv_prog_ac_ct_AR 8191if test -n "$ac_ct_AR"; then 8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8193$as_echo "$ac_ct_AR" >&6; } 8194else 8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8196$as_echo "no" >&6; } 8197fi 8198 8199 8200 test -n "$ac_ct_AR" && break 8201done 8202 8203 if test "x$ac_ct_AR" = x; then 8204 AR="false" 8205 else 8206 case $cross_compiling:$ac_tool_warned in 8207yes:) 8208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8210ac_tool_warned=yes ;; 8211esac 8212 AR=$ac_ct_AR 8213 fi 8214fi 8215 8216: ${AR=ar} 8217: ${AR_FLAGS=cru} 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8230$as_echo_n "checking for archiver @FILE support... " >&6; } 8231if ${lt_cv_ar_at_file+:} false; then : 8232 $as_echo_n "(cached) " >&6 8233else 8234 lt_cv_ar_at_file=no 8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8236/* end confdefs.h. */ 8237 8238int 8239main () 8240{ 8241 8242 ; 8243 return 0; 8244} 8245_ACEOF 8246if ac_fn_c_try_compile "$LINENO"; then : 8247 echo conftest.$ac_objext > conftest.lst 8248 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8250 (eval $lt_ar_try) 2>&5 8251 ac_status=$? 8252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8253 test $ac_status = 0; } 8254 if test "$ac_status" -eq 0; then 8255 # Ensure the archiver fails upon bogus file names. 8256 rm -f conftest.$ac_objext libconftest.a 8257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8258 (eval $lt_ar_try) 2>&5 8259 ac_status=$? 8260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8261 test $ac_status = 0; } 8262 if test "$ac_status" -ne 0; then 8263 lt_cv_ar_at_file=@ 8264 fi 8265 fi 8266 rm -f conftest.* libconftest.a 8267 8268fi 8269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8270 8271fi 8272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8273$as_echo "$lt_cv_ar_at_file" >&6; } 8274 8275if test "x$lt_cv_ar_at_file" = xno; then 8276 archiver_list_spec= 8277else 8278 archiver_list_spec=$lt_cv_ar_at_file 8279fi 8280 8281 8282 8283 8284 8285 8286 8287if test -n "$ac_tool_prefix"; then 8288 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8289set dummy ${ac_tool_prefix}strip; ac_word=$2 8290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8291$as_echo_n "checking for $ac_word... " >&6; } 8292if ${ac_cv_prog_STRIP+:} false; then : 8293 $as_echo_n "(cached) " >&6 8294else 8295 if test -n "$STRIP"; then 8296 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8297else 8298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8299for as_dir in $PATH 8300do 8301 IFS=$as_save_IFS 8302 test -z "$as_dir" && as_dir=. 8303 for ac_exec_ext in '' $ac_executable_extensions; do 8304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8305 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8307 break 2 8308 fi 8309done 8310 done 8311IFS=$as_save_IFS 8312 8313fi 8314fi 8315STRIP=$ac_cv_prog_STRIP 8316if test -n "$STRIP"; then 8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8318$as_echo "$STRIP" >&6; } 8319else 8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8321$as_echo "no" >&6; } 8322fi 8323 8324 8325fi 8326if test -z "$ac_cv_prog_STRIP"; then 8327 ac_ct_STRIP=$STRIP 8328 # Extract the first word of "strip", so it can be a program name with args. 8329set dummy strip; ac_word=$2 8330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8331$as_echo_n "checking for $ac_word... " >&6; } 8332if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8333 $as_echo_n "(cached) " >&6 8334else 8335 if test -n "$ac_ct_STRIP"; then 8336 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8337else 8338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8339for as_dir in $PATH 8340do 8341 IFS=$as_save_IFS 8342 test -z "$as_dir" && as_dir=. 8343 for ac_exec_ext in '' $ac_executable_extensions; do 8344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8345 ac_cv_prog_ac_ct_STRIP="strip" 8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8347 break 2 8348 fi 8349done 8350 done 8351IFS=$as_save_IFS 8352 8353fi 8354fi 8355ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8356if test -n "$ac_ct_STRIP"; then 8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8358$as_echo "$ac_ct_STRIP" >&6; } 8359else 8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8361$as_echo "no" >&6; } 8362fi 8363 8364 if test "x$ac_ct_STRIP" = x; then 8365 STRIP=":" 8366 else 8367 case $cross_compiling:$ac_tool_warned in 8368yes:) 8369{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8371ac_tool_warned=yes ;; 8372esac 8373 STRIP=$ac_ct_STRIP 8374 fi 8375else 8376 STRIP="$ac_cv_prog_STRIP" 8377fi 8378 8379test -z "$STRIP" && STRIP=: 8380 8381 8382 8383 8384 8385 8386if test -n "$ac_tool_prefix"; then 8387 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8388set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8390$as_echo_n "checking for $ac_word... " >&6; } 8391if ${ac_cv_prog_RANLIB+:} false; then : 8392 $as_echo_n "(cached) " >&6 8393else 8394 if test -n "$RANLIB"; then 8395 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8396else 8397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8398for as_dir in $PATH 8399do 8400 IFS=$as_save_IFS 8401 test -z "$as_dir" && as_dir=. 8402 for ac_exec_ext in '' $ac_executable_extensions; do 8403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8404 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8406 break 2 8407 fi 8408done 8409 done 8410IFS=$as_save_IFS 8411 8412fi 8413fi 8414RANLIB=$ac_cv_prog_RANLIB 8415if test -n "$RANLIB"; then 8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8417$as_echo "$RANLIB" >&6; } 8418else 8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8420$as_echo "no" >&6; } 8421fi 8422 8423 8424fi 8425if test -z "$ac_cv_prog_RANLIB"; then 8426 ac_ct_RANLIB=$RANLIB 8427 # Extract the first word of "ranlib", so it can be a program name with args. 8428set dummy ranlib; ac_word=$2 8429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8430$as_echo_n "checking for $ac_word... " >&6; } 8431if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8432 $as_echo_n "(cached) " >&6 8433else 8434 if test -n "$ac_ct_RANLIB"; then 8435 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8436else 8437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8438for as_dir in $PATH 8439do 8440 IFS=$as_save_IFS 8441 test -z "$as_dir" && as_dir=. 8442 for ac_exec_ext in '' $ac_executable_extensions; do 8443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8444 ac_cv_prog_ac_ct_RANLIB="ranlib" 8445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8446 break 2 8447 fi 8448done 8449 done 8450IFS=$as_save_IFS 8451 8452fi 8453fi 8454ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8455if test -n "$ac_ct_RANLIB"; then 8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8457$as_echo "$ac_ct_RANLIB" >&6; } 8458else 8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8460$as_echo "no" >&6; } 8461fi 8462 8463 if test "x$ac_ct_RANLIB" = x; then 8464 RANLIB=":" 8465 else 8466 case $cross_compiling:$ac_tool_warned in 8467yes:) 8468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8470ac_tool_warned=yes ;; 8471esac 8472 RANLIB=$ac_ct_RANLIB 8473 fi 8474else 8475 RANLIB="$ac_cv_prog_RANLIB" 8476fi 8477 8478test -z "$RANLIB" && RANLIB=: 8479 8480 8481 8482 8483 8484 8485# Determine commands to create old-style static archives. 8486old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8487old_postinstall_cmds='chmod 644 $oldlib' 8488old_postuninstall_cmds= 8489 8490if test -n "$RANLIB"; then 8491 case $host_os in 8492 openbsd*) 8493 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 8494 ;; 8495 *) 8496 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 8497 ;; 8498 esac 8499 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 8500fi 8501 8502case $host_os in 8503 darwin*) 8504 lock_old_archive_extraction=yes ;; 8505 *) 8506 lock_old_archive_extraction=no ;; 8507esac 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547# If no C compiler was specified, use CC. 8548LTCC=${LTCC-"$CC"} 8549 8550# If no C compiler flags were specified, use CFLAGS. 8551LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8552 8553# Allow CC to be a program name with arguments. 8554compiler=$CC 8555 8556 8557# Check for command to grab the raw symbol name followed by C symbol from nm. 8558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8559$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8560if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8561 $as_echo_n "(cached) " >&6 8562else 8563 8564# These are sane defaults that work on at least a few old systems. 8565# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8566 8567# Character class describing NM global symbol codes. 8568symcode='[BCDEGRST]' 8569 8570# Regexp to match symbols that can be accessed directly from C. 8571sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8572 8573# Define system-specific variables. 8574case $host_os in 8575aix*) 8576 symcode='[BCDT]' 8577 ;; 8578cygwin* | mingw* | pw32* | cegcc*) 8579 symcode='[ABCDGISTW]' 8580 ;; 8581hpux*) 8582 if test "$host_cpu" = ia64; then 8583 symcode='[ABCDEGRST]' 8584 fi 8585 ;; 8586irix* | nonstopux*) 8587 symcode='[BCDEGRST]' 8588 ;; 8589osf*) 8590 symcode='[BCDEGQRST]' 8591 ;; 8592solaris*) 8593 symcode='[BDRT]' 8594 ;; 8595sco3.2v5*) 8596 symcode='[DT]' 8597 ;; 8598sysv4.2uw2*) 8599 symcode='[DT]' 8600 ;; 8601sysv5* | sco5v6* | unixware* | OpenUNIX*) 8602 symcode='[ABDT]' 8603 ;; 8604sysv4) 8605 symcode='[DFNSTU]' 8606 ;; 8607esac 8608 8609# If we're using GNU nm, then use its standard symbol codes. 8610case `$NM -V 2>&1` in 8611*GNU* | *'with BFD'*) 8612 symcode='[ABCDGIRSTW]' ;; 8613esac 8614 8615# Transform an extracted symbol line into a proper C declaration. 8616# Some systems (esp. on ia64) link data and code symbols differently, 8617# so use this general approach. 8618lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8619 8620# Transform an extracted symbol line into symbol name and symbol address 8621lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 8622lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 8623 8624# Handle CRLF in mingw tool chain 8625opt_cr= 8626case $build_os in 8627mingw*) 8628 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8629 ;; 8630esac 8631 8632# Try without a prefix underscore, then with it. 8633for ac_symprfx in "" "_"; do 8634 8635 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8636 symxfrm="\\1 $ac_symprfx\\2 \\2" 8637 8638 # Write the raw and C identifiers. 8639 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8640 # Fake it for dumpbin and say T for any non-static function 8641 # and D for any global variable. 8642 # Also find C++ and __fastcall symbols from MSVC++, 8643 # which start with @ or ?. 8644 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8645" {last_section=section; section=\$ 3};"\ 8646" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8647" \$ 0!~/External *\|/{next};"\ 8648" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8649" {if(hide[section]) next};"\ 8650" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 8651" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 8652" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 8653" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 8654" ' prfx=^$ac_symprfx" 8655 else 8656 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8657 fi 8658 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8659 8660 # Check to see that the pipe works correctly. 8661 pipe_works=no 8662 8663 rm -f conftest* 8664 cat > conftest.$ac_ext <<_LT_EOF 8665#ifdef __cplusplus 8666extern "C" { 8667#endif 8668char nm_test_var; 8669void nm_test_func(void); 8670void nm_test_func(void){} 8671#ifdef __cplusplus 8672} 8673#endif 8674int main(){nm_test_var='a';nm_test_func();return(0);} 8675_LT_EOF 8676 8677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8678 (eval $ac_compile) 2>&5 8679 ac_status=$? 8680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8681 test $ac_status = 0; }; then 8682 # Now try to grab the symbols. 8683 nlist=conftest.nm 8684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8685 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8686 ac_status=$? 8687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8688 test $ac_status = 0; } && test -s "$nlist"; then 8689 # Try sorting and uniquifying the output. 8690 if sort "$nlist" | uniq > "$nlist"T; then 8691 mv -f "$nlist"T "$nlist" 8692 else 8693 rm -f "$nlist"T 8694 fi 8695 8696 # Make sure that we snagged all the symbols we need. 8697 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8698 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8699 cat <<_LT_EOF > conftest.$ac_ext 8700/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8701#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 8702/* DATA imports from DLLs on WIN32 con't be const, because runtime 8703 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8704# define LT_DLSYM_CONST 8705#elif defined(__osf__) 8706/* This system does not cope well with relocations in const data. */ 8707# define LT_DLSYM_CONST 8708#else 8709# define LT_DLSYM_CONST const 8710#endif 8711 8712#ifdef __cplusplus 8713extern "C" { 8714#endif 8715 8716_LT_EOF 8717 # Now generate the symbol file. 8718 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8719 8720 cat <<_LT_EOF >> conftest.$ac_ext 8721 8722/* The mapping between symbol names and symbols. */ 8723LT_DLSYM_CONST struct { 8724 const char *name; 8725 void *address; 8726} 8727lt__PROGRAM__LTX_preloaded_symbols[] = 8728{ 8729 { "@PROGRAM@", (void *) 0 }, 8730_LT_EOF 8731 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8732 cat <<\_LT_EOF >> conftest.$ac_ext 8733 {0, (void *) 0} 8734}; 8735 8736/* This works around a problem in FreeBSD linker */ 8737#ifdef FREEBSD_WORKAROUND 8738static const void *lt_preloaded_setup() { 8739 return lt__PROGRAM__LTX_preloaded_symbols; 8740} 8741#endif 8742 8743#ifdef __cplusplus 8744} 8745#endif 8746_LT_EOF 8747 # Now try linking the two files. 8748 mv conftest.$ac_objext conftstm.$ac_objext 8749 lt_globsym_save_LIBS=$LIBS 8750 lt_globsym_save_CFLAGS=$CFLAGS 8751 LIBS="conftstm.$ac_objext" 8752 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8754 (eval $ac_link) 2>&5 8755 ac_status=$? 8756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8757 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 8758 pipe_works=yes 8759 fi 8760 LIBS=$lt_globsym_save_LIBS 8761 CFLAGS=$lt_globsym_save_CFLAGS 8762 else 8763 echo "cannot find nm_test_func in $nlist" >&5 8764 fi 8765 else 8766 echo "cannot find nm_test_var in $nlist" >&5 8767 fi 8768 else 8769 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8770 fi 8771 else 8772 echo "$progname: failed program was:" >&5 8773 cat conftest.$ac_ext >&5 8774 fi 8775 rm -rf conftest* conftst* 8776 8777 # Do not use the global_symbol_pipe unless it works. 8778 if test "$pipe_works" = yes; then 8779 break 8780 else 8781 lt_cv_sys_global_symbol_pipe= 8782 fi 8783done 8784 8785fi 8786 8787if test -z "$lt_cv_sys_global_symbol_pipe"; then 8788 lt_cv_sys_global_symbol_to_cdecl= 8789fi 8790if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8792$as_echo "failed" >&6; } 8793else 8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8795$as_echo "ok" >&6; } 8796fi 8797 8798# Response file support. 8799if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8800 nm_file_list_spec='@' 8801elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8802 nm_file_list_spec='@' 8803fi 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8832$as_echo_n "checking for sysroot... " >&6; } 8833 8834# Check whether --with-sysroot was given. 8835if test "${with_sysroot+set}" = set; then : 8836 withval=$with_sysroot; 8837else 8838 with_sysroot=no 8839fi 8840 8841 8842lt_sysroot= 8843case ${with_sysroot} in #( 8844 yes) 8845 if test "$GCC" = yes; then 8846 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8847 fi 8848 ;; #( 8849 /*) 8850 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8851 ;; #( 8852 no|'') 8853 ;; #( 8854 *) 8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 8856$as_echo "${with_sysroot}" >&6; } 8857 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8858 ;; 8859esac 8860 8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8862$as_echo "${lt_sysroot:-no}" >&6; } 8863 8864 8865 8866 8867 8868# Check whether --enable-libtool-lock was given. 8869if test "${enable_libtool_lock+set}" = set; then : 8870 enableval=$enable_libtool_lock; 8871fi 8872 8873test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8874 8875# Some flags need to be propagated to the compiler or linker for good 8876# libtool support. 8877case $host in 8878ia64-*-hpux*) 8879 # Find out which ABI we are using. 8880 echo 'int i;' > conftest.$ac_ext 8881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8882 (eval $ac_compile) 2>&5 8883 ac_status=$? 8884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8885 test $ac_status = 0; }; then 8886 case `/usr/bin/file conftest.$ac_objext` in 8887 *ELF-32*) 8888 HPUX_IA64_MODE="32" 8889 ;; 8890 *ELF-64*) 8891 HPUX_IA64_MODE="64" 8892 ;; 8893 esac 8894 fi 8895 rm -rf conftest* 8896 ;; 8897*-*-irix6*) 8898 # Find out which ABI we are using. 8899 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8901 (eval $ac_compile) 2>&5 8902 ac_status=$? 8903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8904 test $ac_status = 0; }; then 8905 if test "$lt_cv_prog_gnu_ld" = yes; then 8906 case `/usr/bin/file conftest.$ac_objext` in 8907 *32-bit*) 8908 LD="${LD-ld} -melf32bsmip" 8909 ;; 8910 *N32*) 8911 LD="${LD-ld} -melf32bmipn32" 8912 ;; 8913 *64-bit*) 8914 LD="${LD-ld} -melf64bmip" 8915 ;; 8916 esac 8917 else 8918 case `/usr/bin/file conftest.$ac_objext` in 8919 *32-bit*) 8920 LD="${LD-ld} -32" 8921 ;; 8922 *N32*) 8923 LD="${LD-ld} -n32" 8924 ;; 8925 *64-bit*) 8926 LD="${LD-ld} -64" 8927 ;; 8928 esac 8929 fi 8930 fi 8931 rm -rf conftest* 8932 ;; 8933 8934x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 8935s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8936 # Find out which ABI we are using. 8937 echo 'int i;' > conftest.$ac_ext 8938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8939 (eval $ac_compile) 2>&5 8940 ac_status=$? 8941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8942 test $ac_status = 0; }; then 8943 case `/usr/bin/file conftest.o` in 8944 *32-bit*) 8945 case $host in 8946 x86_64-*kfreebsd*-gnu) 8947 LD="${LD-ld} -m elf_i386_fbsd" 8948 ;; 8949 x86_64-*linux*) 8950 LD="${LD-ld} -m elf_i386" 8951 ;; 8952 ppc64-*linux*|powerpc64-*linux*) 8953 LD="${LD-ld} -m elf32ppclinux" 8954 ;; 8955 s390x-*linux*) 8956 LD="${LD-ld} -m elf_s390" 8957 ;; 8958 sparc64-*linux*) 8959 LD="${LD-ld} -m elf32_sparc" 8960 ;; 8961 esac 8962 ;; 8963 *64-bit*) 8964 case $host in 8965 x86_64-*kfreebsd*-gnu) 8966 LD="${LD-ld} -m elf_x86_64_fbsd" 8967 ;; 8968 x86_64-*linux*) 8969 LD="${LD-ld} -m elf_x86_64" 8970 ;; 8971 ppc*-*linux*|powerpc*-*linux*) 8972 LD="${LD-ld} -m elf64ppc" 8973 ;; 8974 s390*-*linux*|s390*-*tpf*) 8975 LD="${LD-ld} -m elf64_s390" 8976 ;; 8977 sparc*-*linux*) 8978 LD="${LD-ld} -m elf64_sparc" 8979 ;; 8980 esac 8981 ;; 8982 esac 8983 fi 8984 rm -rf conftest* 8985 ;; 8986 8987*-*-sco3.2v5*) 8988 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8989 SAVE_CFLAGS="$CFLAGS" 8990 CFLAGS="$CFLAGS -belf" 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8992$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8993if ${lt_cv_cc_needs_belf+:} false; then : 8994 $as_echo_n "(cached) " >&6 8995else 8996 ac_ext=c 8997ac_cpp='$CPP $CPPFLAGS' 8998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9000ac_compiler_gnu=$ac_cv_c_compiler_gnu 9001 9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9003/* end confdefs.h. */ 9004 9005int 9006main () 9007{ 9008 9009 ; 9010 return 0; 9011} 9012_ACEOF 9013if ac_fn_c_try_link "$LINENO"; then : 9014 lt_cv_cc_needs_belf=yes 9015else 9016 lt_cv_cc_needs_belf=no 9017fi 9018rm -f core conftest.err conftest.$ac_objext \ 9019 conftest$ac_exeext conftest.$ac_ext 9020 ac_ext=c 9021ac_cpp='$CPP $CPPFLAGS' 9022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9024ac_compiler_gnu=$ac_cv_c_compiler_gnu 9025 9026fi 9027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9028$as_echo "$lt_cv_cc_needs_belf" >&6; } 9029 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 9030 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9031 CFLAGS="$SAVE_CFLAGS" 9032 fi 9033 ;; 9034sparc*-*solaris*) 9035 # Find out which ABI we are using. 9036 echo 'int i;' > conftest.$ac_ext 9037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9038 (eval $ac_compile) 2>&5 9039 ac_status=$? 9040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9041 test $ac_status = 0; }; then 9042 case `/usr/bin/file conftest.o` in 9043 *64-bit*) 9044 case $lt_cv_prog_gnu_ld in 9045 yes*) LD="${LD-ld} -m elf64_sparc" ;; 9046 *) 9047 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9048 LD="${LD-ld} -64" 9049 fi 9050 ;; 9051 esac 9052 ;; 9053 esac 9054 fi 9055 rm -rf conftest* 9056 ;; 9057esac 9058 9059need_locks="$enable_libtool_lock" 9060 9061if test -n "$ac_tool_prefix"; then 9062 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9063set dummy ${ac_tool_prefix}mt; ac_word=$2 9064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9065$as_echo_n "checking for $ac_word... " >&6; } 9066if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9067 $as_echo_n "(cached) " >&6 9068else 9069 if test -n "$MANIFEST_TOOL"; then 9070 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9071else 9072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9073for as_dir in $PATH 9074do 9075 IFS=$as_save_IFS 9076 test -z "$as_dir" && as_dir=. 9077 for ac_exec_ext in '' $ac_executable_extensions; do 9078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9079 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9081 break 2 9082 fi 9083done 9084 done 9085IFS=$as_save_IFS 9086 9087fi 9088fi 9089MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9090if test -n "$MANIFEST_TOOL"; then 9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9092$as_echo "$MANIFEST_TOOL" >&6; } 9093else 9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9095$as_echo "no" >&6; } 9096fi 9097 9098 9099fi 9100if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9101 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9102 # Extract the first word of "mt", so it can be a program name with args. 9103set dummy mt; ac_word=$2 9104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9105$as_echo_n "checking for $ac_word... " >&6; } 9106if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9107 $as_echo_n "(cached) " >&6 9108else 9109 if test -n "$ac_ct_MANIFEST_TOOL"; then 9110 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9111else 9112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9113for as_dir in $PATH 9114do 9115 IFS=$as_save_IFS 9116 test -z "$as_dir" && as_dir=. 9117 for ac_exec_ext in '' $ac_executable_extensions; do 9118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9119 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9121 break 2 9122 fi 9123done 9124 done 9125IFS=$as_save_IFS 9126 9127fi 9128fi 9129ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9130if test -n "$ac_ct_MANIFEST_TOOL"; then 9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9132$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9133else 9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9135$as_echo "no" >&6; } 9136fi 9137 9138 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9139 MANIFEST_TOOL=":" 9140 else 9141 case $cross_compiling:$ac_tool_warned in 9142yes:) 9143{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9145ac_tool_warned=yes ;; 9146esac 9147 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9148 fi 9149else 9150 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9151fi 9152 9153test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9155$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9156if ${lt_cv_path_mainfest_tool+:} false; then : 9157 $as_echo_n "(cached) " >&6 9158else 9159 lt_cv_path_mainfest_tool=no 9160 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9161 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9162 cat conftest.err >&5 9163 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9164 lt_cv_path_mainfest_tool=yes 9165 fi 9166 rm -f conftest* 9167fi 9168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9169$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9170if test "x$lt_cv_path_mainfest_tool" != xyes; then 9171 MANIFEST_TOOL=: 9172fi 9173 9174 9175 9176 9177 9178 9179 case $host_os in 9180 rhapsody* | darwin*) 9181 if test -n "$ac_tool_prefix"; then 9182 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9183set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9185$as_echo_n "checking for $ac_word... " >&6; } 9186if ${ac_cv_prog_DSYMUTIL+:} false; then : 9187 $as_echo_n "(cached) " >&6 9188else 9189 if test -n "$DSYMUTIL"; then 9190 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9191else 9192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9193for as_dir in $PATH 9194do 9195 IFS=$as_save_IFS 9196 test -z "$as_dir" && as_dir=. 9197 for ac_exec_ext in '' $ac_executable_extensions; do 9198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9199 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9201 break 2 9202 fi 9203done 9204 done 9205IFS=$as_save_IFS 9206 9207fi 9208fi 9209DSYMUTIL=$ac_cv_prog_DSYMUTIL 9210if test -n "$DSYMUTIL"; then 9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9212$as_echo "$DSYMUTIL" >&6; } 9213else 9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9215$as_echo "no" >&6; } 9216fi 9217 9218 9219fi 9220if test -z "$ac_cv_prog_DSYMUTIL"; then 9221 ac_ct_DSYMUTIL=$DSYMUTIL 9222 # Extract the first word of "dsymutil", so it can be a program name with args. 9223set dummy dsymutil; ac_word=$2 9224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9225$as_echo_n "checking for $ac_word... " >&6; } 9226if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9227 $as_echo_n "(cached) " >&6 9228else 9229 if test -n "$ac_ct_DSYMUTIL"; then 9230 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9231else 9232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9233for as_dir in $PATH 9234do 9235 IFS=$as_save_IFS 9236 test -z "$as_dir" && as_dir=. 9237 for ac_exec_ext in '' $ac_executable_extensions; do 9238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9239 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9241 break 2 9242 fi 9243done 9244 done 9245IFS=$as_save_IFS 9246 9247fi 9248fi 9249ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9250if test -n "$ac_ct_DSYMUTIL"; then 9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9252$as_echo "$ac_ct_DSYMUTIL" >&6; } 9253else 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9255$as_echo "no" >&6; } 9256fi 9257 9258 if test "x$ac_ct_DSYMUTIL" = x; then 9259 DSYMUTIL=":" 9260 else 9261 case $cross_compiling:$ac_tool_warned in 9262yes:) 9263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9265ac_tool_warned=yes ;; 9266esac 9267 DSYMUTIL=$ac_ct_DSYMUTIL 9268 fi 9269else 9270 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9271fi 9272 9273 if test -n "$ac_tool_prefix"; then 9274 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9275set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9277$as_echo_n "checking for $ac_word... " >&6; } 9278if ${ac_cv_prog_NMEDIT+:} false; then : 9279 $as_echo_n "(cached) " >&6 9280else 9281 if test -n "$NMEDIT"; then 9282 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9283else 9284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9285for as_dir in $PATH 9286do 9287 IFS=$as_save_IFS 9288 test -z "$as_dir" && as_dir=. 9289 for ac_exec_ext in '' $ac_executable_extensions; do 9290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9291 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9293 break 2 9294 fi 9295done 9296 done 9297IFS=$as_save_IFS 9298 9299fi 9300fi 9301NMEDIT=$ac_cv_prog_NMEDIT 9302if test -n "$NMEDIT"; then 9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9304$as_echo "$NMEDIT" >&6; } 9305else 9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9307$as_echo "no" >&6; } 9308fi 9309 9310 9311fi 9312if test -z "$ac_cv_prog_NMEDIT"; then 9313 ac_ct_NMEDIT=$NMEDIT 9314 # Extract the first word of "nmedit", so it can be a program name with args. 9315set dummy nmedit; ac_word=$2 9316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9317$as_echo_n "checking for $ac_word... " >&6; } 9318if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9319 $as_echo_n "(cached) " >&6 9320else 9321 if test -n "$ac_ct_NMEDIT"; then 9322 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9323else 9324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9325for as_dir in $PATH 9326do 9327 IFS=$as_save_IFS 9328 test -z "$as_dir" && as_dir=. 9329 for ac_exec_ext in '' $ac_executable_extensions; do 9330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9331 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9333 break 2 9334 fi 9335done 9336 done 9337IFS=$as_save_IFS 9338 9339fi 9340fi 9341ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9342if test -n "$ac_ct_NMEDIT"; then 9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9344$as_echo "$ac_ct_NMEDIT" >&6; } 9345else 9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9347$as_echo "no" >&6; } 9348fi 9349 9350 if test "x$ac_ct_NMEDIT" = x; then 9351 NMEDIT=":" 9352 else 9353 case $cross_compiling:$ac_tool_warned in 9354yes:) 9355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9357ac_tool_warned=yes ;; 9358esac 9359 NMEDIT=$ac_ct_NMEDIT 9360 fi 9361else 9362 NMEDIT="$ac_cv_prog_NMEDIT" 9363fi 9364 9365 if test -n "$ac_tool_prefix"; then 9366 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9367set dummy ${ac_tool_prefix}lipo; ac_word=$2 9368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9369$as_echo_n "checking for $ac_word... " >&6; } 9370if ${ac_cv_prog_LIPO+:} false; then : 9371 $as_echo_n "(cached) " >&6 9372else 9373 if test -n "$LIPO"; then 9374 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9375else 9376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9377for as_dir in $PATH 9378do 9379 IFS=$as_save_IFS 9380 test -z "$as_dir" && as_dir=. 9381 for ac_exec_ext in '' $ac_executable_extensions; do 9382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9383 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9385 break 2 9386 fi 9387done 9388 done 9389IFS=$as_save_IFS 9390 9391fi 9392fi 9393LIPO=$ac_cv_prog_LIPO 9394if test -n "$LIPO"; then 9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9396$as_echo "$LIPO" >&6; } 9397else 9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9399$as_echo "no" >&6; } 9400fi 9401 9402 9403fi 9404if test -z "$ac_cv_prog_LIPO"; then 9405 ac_ct_LIPO=$LIPO 9406 # Extract the first word of "lipo", so it can be a program name with args. 9407set dummy lipo; ac_word=$2 9408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9409$as_echo_n "checking for $ac_word... " >&6; } 9410if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9411 $as_echo_n "(cached) " >&6 9412else 9413 if test -n "$ac_ct_LIPO"; then 9414 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9415else 9416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9417for as_dir in $PATH 9418do 9419 IFS=$as_save_IFS 9420 test -z "$as_dir" && as_dir=. 9421 for ac_exec_ext in '' $ac_executable_extensions; do 9422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9423 ac_cv_prog_ac_ct_LIPO="lipo" 9424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9425 break 2 9426 fi 9427done 9428 done 9429IFS=$as_save_IFS 9430 9431fi 9432fi 9433ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9434if test -n "$ac_ct_LIPO"; then 9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9436$as_echo "$ac_ct_LIPO" >&6; } 9437else 9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9439$as_echo "no" >&6; } 9440fi 9441 9442 if test "x$ac_ct_LIPO" = x; then 9443 LIPO=":" 9444 else 9445 case $cross_compiling:$ac_tool_warned in 9446yes:) 9447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9449ac_tool_warned=yes ;; 9450esac 9451 LIPO=$ac_ct_LIPO 9452 fi 9453else 9454 LIPO="$ac_cv_prog_LIPO" 9455fi 9456 9457 if test -n "$ac_tool_prefix"; then 9458 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9459set dummy ${ac_tool_prefix}otool; ac_word=$2 9460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9461$as_echo_n "checking for $ac_word... " >&6; } 9462if ${ac_cv_prog_OTOOL+:} false; then : 9463 $as_echo_n "(cached) " >&6 9464else 9465 if test -n "$OTOOL"; then 9466 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9467else 9468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9469for as_dir in $PATH 9470do 9471 IFS=$as_save_IFS 9472 test -z "$as_dir" && as_dir=. 9473 for ac_exec_ext in '' $ac_executable_extensions; do 9474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9475 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9477 break 2 9478 fi 9479done 9480 done 9481IFS=$as_save_IFS 9482 9483fi 9484fi 9485OTOOL=$ac_cv_prog_OTOOL 9486if test -n "$OTOOL"; then 9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9488$as_echo "$OTOOL" >&6; } 9489else 9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9491$as_echo "no" >&6; } 9492fi 9493 9494 9495fi 9496if test -z "$ac_cv_prog_OTOOL"; then 9497 ac_ct_OTOOL=$OTOOL 9498 # Extract the first word of "otool", so it can be a program name with args. 9499set dummy otool; ac_word=$2 9500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9501$as_echo_n "checking for $ac_word... " >&6; } 9502if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9503 $as_echo_n "(cached) " >&6 9504else 9505 if test -n "$ac_ct_OTOOL"; then 9506 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9507else 9508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9509for as_dir in $PATH 9510do 9511 IFS=$as_save_IFS 9512 test -z "$as_dir" && as_dir=. 9513 for ac_exec_ext in '' $ac_executable_extensions; do 9514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9515 ac_cv_prog_ac_ct_OTOOL="otool" 9516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9517 break 2 9518 fi 9519done 9520 done 9521IFS=$as_save_IFS 9522 9523fi 9524fi 9525ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9526if test -n "$ac_ct_OTOOL"; then 9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9528$as_echo "$ac_ct_OTOOL" >&6; } 9529else 9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9531$as_echo "no" >&6; } 9532fi 9533 9534 if test "x$ac_ct_OTOOL" = x; then 9535 OTOOL=":" 9536 else 9537 case $cross_compiling:$ac_tool_warned in 9538yes:) 9539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9541ac_tool_warned=yes ;; 9542esac 9543 OTOOL=$ac_ct_OTOOL 9544 fi 9545else 9546 OTOOL="$ac_cv_prog_OTOOL" 9547fi 9548 9549 if test -n "$ac_tool_prefix"; then 9550 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9551set dummy ${ac_tool_prefix}otool64; ac_word=$2 9552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9553$as_echo_n "checking for $ac_word... " >&6; } 9554if ${ac_cv_prog_OTOOL64+:} false; then : 9555 $as_echo_n "(cached) " >&6 9556else 9557 if test -n "$OTOOL64"; then 9558 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9559else 9560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9561for as_dir in $PATH 9562do 9563 IFS=$as_save_IFS 9564 test -z "$as_dir" && as_dir=. 9565 for ac_exec_ext in '' $ac_executable_extensions; do 9566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9567 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9569 break 2 9570 fi 9571done 9572 done 9573IFS=$as_save_IFS 9574 9575fi 9576fi 9577OTOOL64=$ac_cv_prog_OTOOL64 9578if test -n "$OTOOL64"; then 9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9580$as_echo "$OTOOL64" >&6; } 9581else 9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9583$as_echo "no" >&6; } 9584fi 9585 9586 9587fi 9588if test -z "$ac_cv_prog_OTOOL64"; then 9589 ac_ct_OTOOL64=$OTOOL64 9590 # Extract the first word of "otool64", so it can be a program name with args. 9591set dummy otool64; ac_word=$2 9592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9593$as_echo_n "checking for $ac_word... " >&6; } 9594if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9595 $as_echo_n "(cached) " >&6 9596else 9597 if test -n "$ac_ct_OTOOL64"; then 9598 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9599else 9600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9601for as_dir in $PATH 9602do 9603 IFS=$as_save_IFS 9604 test -z "$as_dir" && as_dir=. 9605 for ac_exec_ext in '' $ac_executable_extensions; do 9606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9607 ac_cv_prog_ac_ct_OTOOL64="otool64" 9608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9609 break 2 9610 fi 9611done 9612 done 9613IFS=$as_save_IFS 9614 9615fi 9616fi 9617ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9618if test -n "$ac_ct_OTOOL64"; then 9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9620$as_echo "$ac_ct_OTOOL64" >&6; } 9621else 9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9623$as_echo "no" >&6; } 9624fi 9625 9626 if test "x$ac_ct_OTOOL64" = x; then 9627 OTOOL64=":" 9628 else 9629 case $cross_compiling:$ac_tool_warned in 9630yes:) 9631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9633ac_tool_warned=yes ;; 9634esac 9635 OTOOL64=$ac_ct_OTOOL64 9636 fi 9637else 9638 OTOOL64="$ac_cv_prog_OTOOL64" 9639fi 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9668$as_echo_n "checking for -single_module linker flag... " >&6; } 9669if ${lt_cv_apple_cc_single_mod+:} false; then : 9670 $as_echo_n "(cached) " >&6 9671else 9672 lt_cv_apple_cc_single_mod=no 9673 if test -z "${LT_MULTI_MODULE}"; then 9674 # By default we will add the -single_module flag. You can override 9675 # by either setting the environment variable LT_MULTI_MODULE 9676 # non-empty at configure time, or by adding -multi_module to the 9677 # link flags. 9678 rm -rf libconftest.dylib* 9679 echo "int foo(void){return 1;}" > conftest.c 9680 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9681-dynamiclib -Wl,-single_module conftest.c" >&5 9682 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9683 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9684 _lt_result=$? 9685 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 9686 lt_cv_apple_cc_single_mod=yes 9687 else 9688 cat conftest.err >&5 9689 fi 9690 rm -rf libconftest.dylib* 9691 rm -f conftest.* 9692 fi 9693fi 9694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9695$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9697$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9698if ${lt_cv_ld_exported_symbols_list+:} false; then : 9699 $as_echo_n "(cached) " >&6 9700else 9701 lt_cv_ld_exported_symbols_list=no 9702 save_LDFLAGS=$LDFLAGS 9703 echo "_main" > conftest.sym 9704 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9706/* end confdefs.h. */ 9707 9708int 9709main () 9710{ 9711 9712 ; 9713 return 0; 9714} 9715_ACEOF 9716if ac_fn_c_try_link "$LINENO"; then : 9717 lt_cv_ld_exported_symbols_list=yes 9718else 9719 lt_cv_ld_exported_symbols_list=no 9720fi 9721rm -f core conftest.err conftest.$ac_objext \ 9722 conftest$ac_exeext conftest.$ac_ext 9723 LDFLAGS="$save_LDFLAGS" 9724 9725fi 9726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9727$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9729$as_echo_n "checking for -force_load linker flag... " >&6; } 9730if ${lt_cv_ld_force_load+:} false; then : 9731 $as_echo_n "(cached) " >&6 9732else 9733 lt_cv_ld_force_load=no 9734 cat > conftest.c << _LT_EOF 9735int forced_loaded() { return 2;} 9736_LT_EOF 9737 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9738 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9739 echo "$AR cru libconftest.a conftest.o" >&5 9740 $AR cru libconftest.a conftest.o 2>&5 9741 echo "$RANLIB libconftest.a" >&5 9742 $RANLIB libconftest.a 2>&5 9743 cat > conftest.c << _LT_EOF 9744int main() { return 0;} 9745_LT_EOF 9746 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9747 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9748 _lt_result=$? 9749 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 9750 lt_cv_ld_force_load=yes 9751 else 9752 cat conftest.err >&5 9753 fi 9754 rm -f conftest.err libconftest.a conftest conftest.c 9755 rm -rf conftest.dSYM 9756 9757fi 9758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9759$as_echo "$lt_cv_ld_force_load" >&6; } 9760 case $host_os in 9761 rhapsody* | darwin1.[012]) 9762 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 9763 darwin1.*) 9764 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9765 darwin*) # darwin 5.x on 9766 # if running on 10.5 or later, the deployment target defaults 9767 # to the OS version, if on x86, and 10.4, the deployment 9768 # target defaults to 10.4. Don't you love it? 9769 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9770 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9771 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9772 10.[012]*) 9773 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9774 10.*) 9775 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9776 esac 9777 ;; 9778 esac 9779 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 9780 _lt_dar_single_mod='$single_module' 9781 fi 9782 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 9783 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 9784 else 9785 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 9786 fi 9787 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 9788 _lt_dsymutil='~$DSYMUTIL $lib || :' 9789 else 9790 _lt_dsymutil= 9791 fi 9792 ;; 9793 esac 9794 9795for ac_header in dlfcn.h 9796do : 9797 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9798" 9799if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9800 cat >>confdefs.h <<_ACEOF 9801#define HAVE_DLFCN_H 1 9802_ACEOF 9803 9804fi 9805 9806done 9807 9808 9809 9810 9811 9812# Set options 9813 9814 9815 9816 enable_dlopen=no 9817 9818 9819 9820 # Check whether --enable-shared was given. 9821if test "${enable_shared+set}" = set; then : 9822 enableval=$enable_shared; p=${PACKAGE-default} 9823 case $enableval in 9824 yes) enable_shared=yes ;; 9825 no) enable_shared=no ;; 9826 *) 9827 enable_shared=no 9828 # Look at the argument we got. We use all the common list separators. 9829 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9830 for pkg in $enableval; do 9831 IFS="$lt_save_ifs" 9832 if test "X$pkg" = "X$p"; then 9833 enable_shared=yes 9834 fi 9835 done 9836 IFS="$lt_save_ifs" 9837 ;; 9838 esac 9839else 9840 enable_shared=yes 9841fi 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853# Check whether --with-pic was given. 9854if test "${with_pic+set}" = set; then : 9855 withval=$with_pic; pic_mode="$withval" 9856else 9857 pic_mode=default 9858fi 9859 9860 9861test -z "$pic_mode" && pic_mode=default 9862 9863 9864 9865 9866 9867 9868 9869 # Check whether --enable-fast-install was given. 9870if test "${enable_fast_install+set}" = set; then : 9871 enableval=$enable_fast_install; p=${PACKAGE-default} 9872 case $enableval in 9873 yes) enable_fast_install=yes ;; 9874 no) enable_fast_install=no ;; 9875 *) 9876 enable_fast_install=no 9877 # Look at the argument we got. We use all the common list separators. 9878 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9879 for pkg in $enableval; do 9880 IFS="$lt_save_ifs" 9881 if test "X$pkg" = "X$p"; then 9882 enable_fast_install=yes 9883 fi 9884 done 9885 IFS="$lt_save_ifs" 9886 ;; 9887 esac 9888else 9889 enable_fast_install=yes 9890fi 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902# This can be used to rebuild libtool when needed 9903LIBTOOL_DEPS="$ltmain" 9904 9905# Always use our own libtool. 9906LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933test -z "$LN_S" && LN_S="ln -s" 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948if test -n "${ZSH_VERSION+set}" ; then 9949 setopt NO_GLOB_SUBST 9950fi 9951 9952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9953$as_echo_n "checking for objdir... " >&6; } 9954if ${lt_cv_objdir+:} false; then : 9955 $as_echo_n "(cached) " >&6 9956else 9957 rm -f .libs 2>/dev/null 9958mkdir .libs 2>/dev/null 9959if test -d .libs; then 9960 lt_cv_objdir=.libs 9961else 9962 # MS-DOS does not allow filenames that begin with a dot. 9963 lt_cv_objdir=_libs 9964fi 9965rmdir .libs 2>/dev/null 9966fi 9967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9968$as_echo "$lt_cv_objdir" >&6; } 9969objdir=$lt_cv_objdir 9970 9971 9972 9973 9974 9975cat >>confdefs.h <<_ACEOF 9976#define LT_OBJDIR "$lt_cv_objdir/" 9977_ACEOF 9978 9979 9980 9981 9982case $host_os in 9983aix3*) 9984 # AIX sometimes has problems with the GCC collect2 program. For some 9985 # reason, if we set the COLLECT_NAMES environment variable, the problems 9986 # vanish in a puff of smoke. 9987 if test "X${COLLECT_NAMES+set}" != Xset; then 9988 COLLECT_NAMES= 9989 export COLLECT_NAMES 9990 fi 9991 ;; 9992esac 9993 9994# Global variables: 9995ofile=libtool 9996can_build_shared=yes 9997 9998# All known linkers require a `.a' archive for static linking (except MSVC, 9999# which needs '.lib'). 10000libext=a 10001 10002with_gnu_ld="$lt_cv_prog_gnu_ld" 10003 10004old_CC="$CC" 10005old_CFLAGS="$CFLAGS" 10006 10007# Set sane defaults for various variables 10008test -z "$CC" && CC=cc 10009test -z "$LTCC" && LTCC=$CC 10010test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10011test -z "$LD" && LD=ld 10012test -z "$ac_objext" && ac_objext=o 10013 10014for cc_temp in $compiler""; do 10015 case $cc_temp in 10016 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10017 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10018 \-*) ;; 10019 *) break;; 10020 esac 10021done 10022cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10023 10024 10025# Only perform the check for file, if the check method requires it 10026test -z "$MAGIC_CMD" && MAGIC_CMD=file 10027case $deplibs_check_method in 10028file_magic*) 10029 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10031$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10032if ${lt_cv_path_MAGIC_CMD+:} false; then : 10033 $as_echo_n "(cached) " >&6 10034else 10035 case $MAGIC_CMD in 10036[\\/*] | ?:[\\/]*) 10037 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10038 ;; 10039*) 10040 lt_save_MAGIC_CMD="$MAGIC_CMD" 10041 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10042 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10043 for ac_dir in $ac_dummy; do 10044 IFS="$lt_save_ifs" 10045 test -z "$ac_dir" && ac_dir=. 10046 if test -f $ac_dir/${ac_tool_prefix}file; then 10047 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 10048 if test -n "$file_magic_test_file"; then 10049 case $deplibs_check_method in 10050 "file_magic "*) 10051 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10052 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10053 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10054 $EGREP "$file_magic_regex" > /dev/null; then 10055 : 10056 else 10057 cat <<_LT_EOF 1>&2 10058 10059*** Warning: the command libtool uses to detect shared libraries, 10060*** $file_magic_cmd, produces output that libtool cannot recognize. 10061*** The result is that libtool may fail to recognize shared libraries 10062*** as such. This will affect the creation of libtool libraries that 10063*** depend on shared libraries, but programs linked with such libtool 10064*** libraries will work regardless of this problem. Nevertheless, you 10065*** may want to report the problem to your system manager and/or to 10066*** bug-libtool@gnu.org 10067 10068_LT_EOF 10069 fi ;; 10070 esac 10071 fi 10072 break 10073 fi 10074 done 10075 IFS="$lt_save_ifs" 10076 MAGIC_CMD="$lt_save_MAGIC_CMD" 10077 ;; 10078esac 10079fi 10080 10081MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10082if test -n "$MAGIC_CMD"; then 10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10084$as_echo "$MAGIC_CMD" >&6; } 10085else 10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10087$as_echo "no" >&6; } 10088fi 10089 10090 10091 10092 10093 10094if test -z "$lt_cv_path_MAGIC_CMD"; then 10095 if test -n "$ac_tool_prefix"; then 10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10097$as_echo_n "checking for file... " >&6; } 10098if ${lt_cv_path_MAGIC_CMD+:} false; then : 10099 $as_echo_n "(cached) " >&6 10100else 10101 case $MAGIC_CMD in 10102[\\/*] | ?:[\\/]*) 10103 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10104 ;; 10105*) 10106 lt_save_MAGIC_CMD="$MAGIC_CMD" 10107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10108 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10109 for ac_dir in $ac_dummy; do 10110 IFS="$lt_save_ifs" 10111 test -z "$ac_dir" && ac_dir=. 10112 if test -f $ac_dir/file; then 10113 lt_cv_path_MAGIC_CMD="$ac_dir/file" 10114 if test -n "$file_magic_test_file"; then 10115 case $deplibs_check_method in 10116 "file_magic "*) 10117 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10118 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10119 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10120 $EGREP "$file_magic_regex" > /dev/null; then 10121 : 10122 else 10123 cat <<_LT_EOF 1>&2 10124 10125*** Warning: the command libtool uses to detect shared libraries, 10126*** $file_magic_cmd, produces output that libtool cannot recognize. 10127*** The result is that libtool may fail to recognize shared libraries 10128*** as such. This will affect the creation of libtool libraries that 10129*** depend on shared libraries, but programs linked with such libtool 10130*** libraries will work regardless of this problem. Nevertheless, you 10131*** may want to report the problem to your system manager and/or to 10132*** bug-libtool@gnu.org 10133 10134_LT_EOF 10135 fi ;; 10136 esac 10137 fi 10138 break 10139 fi 10140 done 10141 IFS="$lt_save_ifs" 10142 MAGIC_CMD="$lt_save_MAGIC_CMD" 10143 ;; 10144esac 10145fi 10146 10147MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10148if test -n "$MAGIC_CMD"; then 10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10150$as_echo "$MAGIC_CMD" >&6; } 10151else 10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10153$as_echo "no" >&6; } 10154fi 10155 10156 10157 else 10158 MAGIC_CMD=: 10159 fi 10160fi 10161 10162 fi 10163 ;; 10164esac 10165 10166# Use C for the default configuration in the libtool script 10167 10168lt_save_CC="$CC" 10169ac_ext=c 10170ac_cpp='$CPP $CPPFLAGS' 10171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10173ac_compiler_gnu=$ac_cv_c_compiler_gnu 10174 10175 10176# Source file extension for C test sources. 10177ac_ext=c 10178 10179# Object file extension for compiled C test sources. 10180objext=o 10181objext=$objext 10182 10183# Code to be used in simple compile tests 10184lt_simple_compile_test_code="int some_variable = 0;" 10185 10186# Code to be used in simple link tests 10187lt_simple_link_test_code='int main(){return(0);}' 10188 10189 10190 10191 10192 10193 10194 10195# If no C compiler was specified, use CC. 10196LTCC=${LTCC-"$CC"} 10197 10198# If no C compiler flags were specified, use CFLAGS. 10199LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10200 10201# Allow CC to be a program name with arguments. 10202compiler=$CC 10203 10204# Save the default compiler, since it gets overwritten when the other 10205# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10206compiler_DEFAULT=$CC 10207 10208# save warnings/boilerplate of simple test code 10209ac_outfile=conftest.$ac_objext 10210echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10211eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10212_lt_compiler_boilerplate=`cat conftest.err` 10213$RM conftest* 10214 10215ac_outfile=conftest.$ac_objext 10216echo "$lt_simple_link_test_code" >conftest.$ac_ext 10217eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10218_lt_linker_boilerplate=`cat conftest.err` 10219$RM -r conftest* 10220 10221 10222if test -n "$compiler"; then 10223 10224lt_prog_compiler_no_builtin_flag= 10225 10226if test "$GCC" = yes; then 10227 case $cc_basename in 10228 nvcc*) 10229 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10230 *) 10231 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10232 esac 10233 10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10235$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10236if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10237 $as_echo_n "(cached) " >&6 10238else 10239 lt_cv_prog_compiler_rtti_exceptions=no 10240 ac_outfile=conftest.$ac_objext 10241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10242 lt_compiler_flag="-fno-rtti -fno-exceptions" 10243 # Insert the option either (1) after the last *FLAGS variable, or 10244 # (2) before a word containing "conftest.", or (3) at the end. 10245 # Note that $ac_compile itself does not contain backslashes and begins 10246 # with a dollar sign (not a hyphen), so the echo should work correctly. 10247 # The option is referenced via a variable to avoid confusing sed. 10248 lt_compile=`echo "$ac_compile" | $SED \ 10249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10251 -e 's:$: $lt_compiler_flag:'` 10252 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10253 (eval "$lt_compile" 2>conftest.err) 10254 ac_status=$? 10255 cat conftest.err >&5 10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10257 if (exit $ac_status) && test -s "$ac_outfile"; then 10258 # The compiler can only warn and ignore the option if not recognized 10259 # So say no if there are warnings other than the usual output. 10260 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10262 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10263 lt_cv_prog_compiler_rtti_exceptions=yes 10264 fi 10265 fi 10266 $RM conftest* 10267 10268fi 10269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10270$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10271 10272if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10273 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10274else 10275 : 10276fi 10277 10278fi 10279 10280 10281 10282 10283 10284 10285 lt_prog_compiler_wl= 10286lt_prog_compiler_pic= 10287lt_prog_compiler_static= 10288 10289 10290 if test "$GCC" = yes; then 10291 lt_prog_compiler_wl='-Wl,' 10292 lt_prog_compiler_static='-static' 10293 10294 case $host_os in 10295 aix*) 10296 # All AIX code is PIC. 10297 if test "$host_cpu" = ia64; then 10298 # AIX 5 now supports IA64 processor 10299 lt_prog_compiler_static='-Bstatic' 10300 fi 10301 ;; 10302 10303 amigaos*) 10304 case $host_cpu in 10305 powerpc) 10306 # see comment about AmigaOS4 .so support 10307 lt_prog_compiler_pic='-fPIC' 10308 ;; 10309 m68k) 10310 # FIXME: we need at least 68020 code to build shared libraries, but 10311 # adding the `-m68020' flag to GCC prevents building anything better, 10312 # like `-m68040'. 10313 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10314 ;; 10315 esac 10316 ;; 10317 10318 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10319 # PIC is the default for these OSes. 10320 ;; 10321 10322 mingw* | cygwin* | pw32* | os2* | cegcc*) 10323 # This hack is so that the source file can tell whether it is being 10324 # built for inclusion in a dll (and should export symbols for example). 10325 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10326 # (--disable-auto-import) libraries 10327 lt_prog_compiler_pic='-DDLL_EXPORT' 10328 ;; 10329 10330 darwin* | rhapsody*) 10331 # PIC is the default on this platform 10332 # Common symbols not allowed in MH_DYLIB files 10333 lt_prog_compiler_pic='-fno-common' 10334 ;; 10335 10336 haiku*) 10337 # PIC is the default for Haiku. 10338 # The "-static" flag exists, but is broken. 10339 lt_prog_compiler_static= 10340 ;; 10341 10342 hpux*) 10343 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10344 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10345 # sets the default TLS model and affects inlining. 10346 case $host_cpu in 10347 hppa*64*) 10348 # +Z the default 10349 ;; 10350 *) 10351 lt_prog_compiler_pic='-fPIC' 10352 ;; 10353 esac 10354 ;; 10355 10356 interix[3-9]*) 10357 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10358 # Instead, we relocate shared libraries at runtime. 10359 ;; 10360 10361 msdosdjgpp*) 10362 # Just because we use GCC doesn't mean we suddenly get shared libraries 10363 # on systems that don't support them. 10364 lt_prog_compiler_can_build_shared=no 10365 enable_shared=no 10366 ;; 10367 10368 *nto* | *qnx*) 10369 # QNX uses GNU C++, but need to define -shared option too, otherwise 10370 # it will coredump. 10371 lt_prog_compiler_pic='-fPIC -shared' 10372 ;; 10373 10374 sysv4*MP*) 10375 if test -d /usr/nec; then 10376 lt_prog_compiler_pic=-Kconform_pic 10377 fi 10378 ;; 10379 10380 *) 10381 lt_prog_compiler_pic='-fPIC' 10382 ;; 10383 esac 10384 10385 case $cc_basename in 10386 nvcc*) # Cuda Compiler Driver 2.2 10387 lt_prog_compiler_wl='-Xlinker ' 10388 lt_prog_compiler_pic='-Xcompiler -fPIC' 10389 ;; 10390 esac 10391 else 10392 # PORTME Check for flag to pass linker flags through the system compiler. 10393 case $host_os in 10394 aix*) 10395 lt_prog_compiler_wl='-Wl,' 10396 if test "$host_cpu" = ia64; then 10397 # AIX 5 now supports IA64 processor 10398 lt_prog_compiler_static='-Bstatic' 10399 else 10400 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10401 fi 10402 ;; 10403 10404 mingw* | cygwin* | pw32* | os2* | cegcc*) 10405 # This hack is so that the source file can tell whether it is being 10406 # built for inclusion in a dll (and should export symbols for example). 10407 lt_prog_compiler_pic='-DDLL_EXPORT' 10408 ;; 10409 10410 hpux9* | hpux10* | hpux11*) 10411 lt_prog_compiler_wl='-Wl,' 10412 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10413 # not for PA HP-UX. 10414 case $host_cpu in 10415 hppa*64*|ia64*) 10416 # +Z the default 10417 ;; 10418 *) 10419 lt_prog_compiler_pic='+Z' 10420 ;; 10421 esac 10422 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10423 lt_prog_compiler_static='${wl}-a ${wl}archive' 10424 ;; 10425 10426 irix5* | irix6* | nonstopux*) 10427 lt_prog_compiler_wl='-Wl,' 10428 # PIC (with -KPIC) is the default. 10429 lt_prog_compiler_static='-non_shared' 10430 ;; 10431 10432 linux* | k*bsd*-gnu | kopensolaris*-gnu) 10433 case $cc_basename in 10434 # old Intel for x86_64 which still supported -KPIC. 10435 ecc*) 10436 lt_prog_compiler_wl='-Wl,' 10437 lt_prog_compiler_pic='-KPIC' 10438 lt_prog_compiler_static='-static' 10439 ;; 10440 # icc used to be incompatible with GCC. 10441 # ICC 10 doesn't accept -KPIC any more. 10442 icc* | ifort*) 10443 lt_prog_compiler_wl='-Wl,' 10444 lt_prog_compiler_pic='-fPIC' 10445 lt_prog_compiler_static='-static' 10446 ;; 10447 # Lahey Fortran 8.1. 10448 lf95*) 10449 lt_prog_compiler_wl='-Wl,' 10450 lt_prog_compiler_pic='--shared' 10451 lt_prog_compiler_static='--static' 10452 ;; 10453 nagfor*) 10454 # NAG Fortran compiler 10455 lt_prog_compiler_wl='-Wl,-Wl,,' 10456 lt_prog_compiler_pic='-PIC' 10457 lt_prog_compiler_static='-Bstatic' 10458 ;; 10459 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10460 # Portland Group compilers (*not* the Pentium gcc compiler, 10461 # which looks to be a dead project) 10462 lt_prog_compiler_wl='-Wl,' 10463 lt_prog_compiler_pic='-fpic' 10464 lt_prog_compiler_static='-Bstatic' 10465 ;; 10466 ccc*) 10467 lt_prog_compiler_wl='-Wl,' 10468 # All Alpha code is PIC. 10469 lt_prog_compiler_static='-non_shared' 10470 ;; 10471 xl* | bgxl* | bgf* | mpixl*) 10472 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10473 lt_prog_compiler_wl='-Wl,' 10474 lt_prog_compiler_pic='-qpic' 10475 lt_prog_compiler_static='-qstaticlink' 10476 ;; 10477 *) 10478 case `$CC -V 2>&1 | sed 5q` in 10479 *Sun\ F* | *Sun*Fortran*) 10480 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10481 lt_prog_compiler_pic='-KPIC' 10482 lt_prog_compiler_static='-Bstatic' 10483 lt_prog_compiler_wl='' 10484 ;; 10485 *Sun\ C*) 10486 # Sun C 5.9 10487 lt_prog_compiler_pic='-KPIC' 10488 lt_prog_compiler_static='-Bstatic' 10489 lt_prog_compiler_wl='-Wl,' 10490 ;; 10491 esac 10492 ;; 10493 esac 10494 ;; 10495 10496 newsos6) 10497 lt_prog_compiler_pic='-KPIC' 10498 lt_prog_compiler_static='-Bstatic' 10499 ;; 10500 10501 *nto* | *qnx*) 10502 # QNX uses GNU C++, but need to define -shared option too, otherwise 10503 # it will coredump. 10504 lt_prog_compiler_pic='-fPIC -shared' 10505 ;; 10506 10507 osf3* | osf4* | osf5*) 10508 lt_prog_compiler_wl='-Wl,' 10509 # All OSF/1 code is PIC. 10510 lt_prog_compiler_static='-non_shared' 10511 ;; 10512 10513 rdos*) 10514 lt_prog_compiler_static='-non_shared' 10515 ;; 10516 10517 solaris*) 10518 lt_prog_compiler_pic='-KPIC' 10519 lt_prog_compiler_static='-Bstatic' 10520 case $cc_basename in 10521 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10522 lt_prog_compiler_wl='-Qoption ld ';; 10523 *) 10524 lt_prog_compiler_wl='-Wl,';; 10525 esac 10526 ;; 10527 10528 sunos4*) 10529 lt_prog_compiler_wl='-Qoption ld ' 10530 lt_prog_compiler_pic='-PIC' 10531 lt_prog_compiler_static='-Bstatic' 10532 ;; 10533 10534 sysv4 | sysv4.2uw2* | sysv4.3*) 10535 lt_prog_compiler_wl='-Wl,' 10536 lt_prog_compiler_pic='-KPIC' 10537 lt_prog_compiler_static='-Bstatic' 10538 ;; 10539 10540 sysv4*MP*) 10541 if test -d /usr/nec ;then 10542 lt_prog_compiler_pic='-Kconform_pic' 10543 lt_prog_compiler_static='-Bstatic' 10544 fi 10545 ;; 10546 10547 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10548 lt_prog_compiler_wl='-Wl,' 10549 lt_prog_compiler_pic='-KPIC' 10550 lt_prog_compiler_static='-Bstatic' 10551 ;; 10552 10553 unicos*) 10554 lt_prog_compiler_wl='-Wl,' 10555 lt_prog_compiler_can_build_shared=no 10556 ;; 10557 10558 uts4*) 10559 lt_prog_compiler_pic='-pic' 10560 lt_prog_compiler_static='-Bstatic' 10561 ;; 10562 10563 *) 10564 lt_prog_compiler_can_build_shared=no 10565 ;; 10566 esac 10567 fi 10568 10569case $host_os in 10570 # For platforms which do not support PIC, -DPIC is meaningless: 10571 *djgpp*) 10572 lt_prog_compiler_pic= 10573 ;; 10574 *) 10575 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10576 ;; 10577esac 10578 10579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10580$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10581if ${lt_cv_prog_compiler_pic+:} false; then : 10582 $as_echo_n "(cached) " >&6 10583else 10584 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10585fi 10586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10587$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10588lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10589 10590# 10591# Check to make sure the PIC flag actually works. 10592# 10593if test -n "$lt_prog_compiler_pic"; then 10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10595$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10596if ${lt_cv_prog_compiler_pic_works+:} false; then : 10597 $as_echo_n "(cached) " >&6 10598else 10599 lt_cv_prog_compiler_pic_works=no 10600 ac_outfile=conftest.$ac_objext 10601 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10602 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10603 # Insert the option either (1) after the last *FLAGS variable, or 10604 # (2) before a word containing "conftest.", or (3) at the end. 10605 # Note that $ac_compile itself does not contain backslashes and begins 10606 # with a dollar sign (not a hyphen), so the echo should work correctly. 10607 # The option is referenced via a variable to avoid confusing sed. 10608 lt_compile=`echo "$ac_compile" | $SED \ 10609 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10611 -e 's:$: $lt_compiler_flag:'` 10612 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10613 (eval "$lt_compile" 2>conftest.err) 10614 ac_status=$? 10615 cat conftest.err >&5 10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10617 if (exit $ac_status) && test -s "$ac_outfile"; then 10618 # The compiler can only warn and ignore the option if not recognized 10619 # So say no if there are warnings other than the usual output. 10620 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10621 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10622 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10623 lt_cv_prog_compiler_pic_works=yes 10624 fi 10625 fi 10626 $RM conftest* 10627 10628fi 10629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10630$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10631 10632if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 10633 case $lt_prog_compiler_pic in 10634 "" | " "*) ;; 10635 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10636 esac 10637else 10638 lt_prog_compiler_pic= 10639 lt_prog_compiler_can_build_shared=no 10640fi 10641 10642fi 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654# 10655# Check to make sure the static flag actually works. 10656# 10657wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10659$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10660if ${lt_cv_prog_compiler_static_works+:} false; then : 10661 $as_echo_n "(cached) " >&6 10662else 10663 lt_cv_prog_compiler_static_works=no 10664 save_LDFLAGS="$LDFLAGS" 10665 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10666 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10667 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10668 # The linker can only warn and ignore the option if not recognized 10669 # So say no if there are warnings 10670 if test -s conftest.err; then 10671 # Append any errors to the config.log. 10672 cat conftest.err 1>&5 10673 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10674 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10675 if diff conftest.exp conftest.er2 >/dev/null; then 10676 lt_cv_prog_compiler_static_works=yes 10677 fi 10678 else 10679 lt_cv_prog_compiler_static_works=yes 10680 fi 10681 fi 10682 $RM -r conftest* 10683 LDFLAGS="$save_LDFLAGS" 10684 10685fi 10686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10687$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10688 10689if test x"$lt_cv_prog_compiler_static_works" = xyes; then 10690 : 10691else 10692 lt_prog_compiler_static= 10693fi 10694 10695 10696 10697 10698 10699 10700 10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10702$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10703if ${lt_cv_prog_compiler_c_o+:} false; then : 10704 $as_echo_n "(cached) " >&6 10705else 10706 lt_cv_prog_compiler_c_o=no 10707 $RM -r conftest 2>/dev/null 10708 mkdir conftest 10709 cd conftest 10710 mkdir out 10711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10712 10713 lt_compiler_flag="-o out/conftest2.$ac_objext" 10714 # Insert the option either (1) after the last *FLAGS variable, or 10715 # (2) before a word containing "conftest.", or (3) at the end. 10716 # Note that $ac_compile itself does not contain backslashes and begins 10717 # with a dollar sign (not a hyphen), so the echo should work correctly. 10718 lt_compile=`echo "$ac_compile" | $SED \ 10719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10721 -e 's:$: $lt_compiler_flag:'` 10722 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10723 (eval "$lt_compile" 2>out/conftest.err) 10724 ac_status=$? 10725 cat out/conftest.err >&5 10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10727 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10728 then 10729 # The compiler can only warn and ignore the option if not recognized 10730 # So say no if there are warnings 10731 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10732 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10733 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10734 lt_cv_prog_compiler_c_o=yes 10735 fi 10736 fi 10737 chmod u+w . 2>&5 10738 $RM conftest* 10739 # SGI C++ compiler will create directory out/ii_files/ for 10740 # template instantiation 10741 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10742 $RM out/* && rmdir out 10743 cd .. 10744 $RM -r conftest 10745 $RM conftest* 10746 10747fi 10748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10749$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10750 10751 10752 10753 10754 10755 10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10757$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10758if ${lt_cv_prog_compiler_c_o+:} false; then : 10759 $as_echo_n "(cached) " >&6 10760else 10761 lt_cv_prog_compiler_c_o=no 10762 $RM -r conftest 2>/dev/null 10763 mkdir conftest 10764 cd conftest 10765 mkdir out 10766 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10767 10768 lt_compiler_flag="-o out/conftest2.$ac_objext" 10769 # Insert the option either (1) after the last *FLAGS variable, or 10770 # (2) before a word containing "conftest.", or (3) at the end. 10771 # Note that $ac_compile itself does not contain backslashes and begins 10772 # with a dollar sign (not a hyphen), so the echo should work correctly. 10773 lt_compile=`echo "$ac_compile" | $SED \ 10774 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10776 -e 's:$: $lt_compiler_flag:'` 10777 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10778 (eval "$lt_compile" 2>out/conftest.err) 10779 ac_status=$? 10780 cat out/conftest.err >&5 10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10782 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10783 then 10784 # The compiler can only warn and ignore the option if not recognized 10785 # So say no if there are warnings 10786 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10787 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10788 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10789 lt_cv_prog_compiler_c_o=yes 10790 fi 10791 fi 10792 chmod u+w . 2>&5 10793 $RM conftest* 10794 # SGI C++ compiler will create directory out/ii_files/ for 10795 # template instantiation 10796 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10797 $RM out/* && rmdir out 10798 cd .. 10799 $RM -r conftest 10800 $RM conftest* 10801 10802fi 10803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10804$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10805 10806 10807 10808 10809hard_links="nottested" 10810if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10811 # do not overwrite the value of need_locks provided by the user 10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10813$as_echo_n "checking if we can lock with hard links... " >&6; } 10814 hard_links=yes 10815 $RM conftest* 10816 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10817 touch conftest.a 10818 ln conftest.a conftest.b 2>&5 || hard_links=no 10819 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10821$as_echo "$hard_links" >&6; } 10822 if test "$hard_links" = no; then 10823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10824$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10825 need_locks=warn 10826 fi 10827else 10828 need_locks=no 10829fi 10830 10831 10832 10833 10834 10835 10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10837$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10838 10839 runpath_var= 10840 allow_undefined_flag= 10841 always_export_symbols=no 10842 archive_cmds= 10843 archive_expsym_cmds= 10844 compiler_needs_object=no 10845 enable_shared_with_static_runtimes=no 10846 export_dynamic_flag_spec= 10847 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10848 hardcode_automatic=no 10849 hardcode_direct=no 10850 hardcode_direct_absolute=no 10851 hardcode_libdir_flag_spec= 10852 hardcode_libdir_flag_spec_ld= 10853 hardcode_libdir_separator= 10854 hardcode_minus_L=no 10855 hardcode_shlibpath_var=unsupported 10856 inherit_rpath=no 10857 link_all_deplibs=unknown 10858 module_cmds= 10859 module_expsym_cmds= 10860 old_archive_from_new_cmds= 10861 old_archive_from_expsyms_cmds= 10862 thread_safe_flag_spec= 10863 whole_archive_flag_spec= 10864 # include_expsyms should be a list of space-separated symbols to be *always* 10865 # included in the symbol list 10866 include_expsyms= 10867 # exclude_expsyms can be an extended regexp of symbols to exclude 10868 # it will be wrapped by ` (' and `)$', so one must not match beginning or 10869 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10870 # as well as any symbol that contains `d'. 10871 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10872 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10873 # platforms (ab)use it in PIC code, but their linkers get confused if 10874 # the symbol is explicitly referenced. Since portable code cannot 10875 # rely on this symbol name, it's probably fine to never include it in 10876 # preloaded symbol tables. 10877 # Exclude shared library initialization/finalization symbols. 10878 extract_expsyms_cmds= 10879 10880 case $host_os in 10881 cygwin* | mingw* | pw32* | cegcc*) 10882 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10883 # When not using gcc, we currently assume that we are using 10884 # Microsoft Visual C++. 10885 if test "$GCC" != yes; then 10886 with_gnu_ld=no 10887 fi 10888 ;; 10889 interix*) 10890 # we just hope/assume this is gcc and not c89 (= MSVC++) 10891 with_gnu_ld=yes 10892 ;; 10893 openbsd*) 10894 with_gnu_ld=no 10895 ;; 10896 esac 10897 10898 ld_shlibs=yes 10899 10900 # On some targets, GNU ld is compatible enough with the native linker 10901 # that we're better off using the native interface for both. 10902 lt_use_gnu_ld_interface=no 10903 if test "$with_gnu_ld" = yes; then 10904 case $host_os in 10905 aix*) 10906 # The AIX port of GNU ld has always aspired to compatibility 10907 # with the native linker. However, as the warning in the GNU ld 10908 # block says, versions before 2.19.5* couldn't really create working 10909 # shared libraries, regardless of the interface used. 10910 case `$LD -v 2>&1` in 10911 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10912 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10913 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10914 *) 10915 lt_use_gnu_ld_interface=yes 10916 ;; 10917 esac 10918 ;; 10919 *) 10920 lt_use_gnu_ld_interface=yes 10921 ;; 10922 esac 10923 fi 10924 10925 if test "$lt_use_gnu_ld_interface" = yes; then 10926 # If archive_cmds runs LD, not CC, wlarc should be empty 10927 wlarc='${wl}' 10928 10929 # Set some defaults for GNU ld with shared library support. These 10930 # are reset later if shared libraries are not supported. Putting them 10931 # here allows them to be overridden if necessary. 10932 runpath_var=LD_RUN_PATH 10933 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10934 export_dynamic_flag_spec='${wl}--export-dynamic' 10935 # ancient GNU ld didn't support --whole-archive et. al. 10936 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10937 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10938 else 10939 whole_archive_flag_spec= 10940 fi 10941 supports_anon_versioning=no 10942 case `$LD -v 2>&1` in 10943 *GNU\ gold*) supports_anon_versioning=yes ;; 10944 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10945 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10946 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10947 *\ 2.11.*) ;; # other 2.11 versions 10948 *) supports_anon_versioning=yes ;; 10949 esac 10950 10951 # See if GNU ld supports shared libraries. 10952 case $host_os in 10953 aix[3-9]*) 10954 # On AIX/PPC, the GNU linker is very broken 10955 if test "$host_cpu" != ia64; then 10956 ld_shlibs=no 10957 cat <<_LT_EOF 1>&2 10958 10959*** Warning: the GNU linker, at least up to release 2.19, is reported 10960*** to be unable to reliably create shared libraries on AIX. 10961*** Therefore, libtool is disabling shared libraries support. If you 10962*** really care for shared libraries, you may want to install binutils 10963*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10964*** You will then need to restart the configuration process. 10965 10966_LT_EOF 10967 fi 10968 ;; 10969 10970 amigaos*) 10971 case $host_cpu in 10972 powerpc) 10973 # see comment about AmigaOS4 .so support 10974 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10975 archive_expsym_cmds='' 10976 ;; 10977 m68k) 10978 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)' 10979 hardcode_libdir_flag_spec='-L$libdir' 10980 hardcode_minus_L=yes 10981 ;; 10982 esac 10983 ;; 10984 10985 beos*) 10986 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10987 allow_undefined_flag=unsupported 10988 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10989 # support --undefined. This deserves some investigation. FIXME 10990 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10991 else 10992 ld_shlibs=no 10993 fi 10994 ;; 10995 10996 cygwin* | mingw* | pw32* | cegcc*) 10997 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10998 # as there is no search path for DLLs. 10999 hardcode_libdir_flag_spec='-L$libdir' 11000 export_dynamic_flag_spec='${wl}--export-all-symbols' 11001 allow_undefined_flag=unsupported 11002 always_export_symbols=no 11003 enable_shared_with_static_runtimes=yes 11004 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' 11005 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11006 11007 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11009 # If the export-symbols file already is a .def file (1st line 11010 # is EXPORTS), use it as is; otherwise, prepend... 11011 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11012 cp $export_symbols $output_objdir/$soname.def; 11013 else 11014 echo EXPORTS > $output_objdir/$soname.def; 11015 cat $export_symbols >> $output_objdir/$soname.def; 11016 fi~ 11017 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11018 else 11019 ld_shlibs=no 11020 fi 11021 ;; 11022 11023 haiku*) 11024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11025 link_all_deplibs=yes 11026 ;; 11027 11028 interix[3-9]*) 11029 hardcode_direct=no 11030 hardcode_shlibpath_var=no 11031 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11032 export_dynamic_flag_spec='${wl}-E' 11033 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11034 # Instead, shared libraries are loaded at an image base (0x10000000 by 11035 # default) and relocated if they conflict, which is a slow very memory 11036 # consuming and fragmenting process. To avoid this, we pick a random, 11037 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11038 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11039 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11040 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' 11041 ;; 11042 11043 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11044 tmp_diet=no 11045 if test "$host_os" = linux-dietlibc; then 11046 case $cc_basename in 11047 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11048 esac 11049 fi 11050 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11051 && test "$tmp_diet" = no 11052 then 11053 tmp_addflag=' $pic_flag' 11054 tmp_sharedflag='-shared' 11055 case $cc_basename,$host_cpu in 11056 pgcc*) # Portland Group C compiler 11057 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' 11058 tmp_addflag=' $pic_flag' 11059 ;; 11060 pgf77* | pgf90* | pgf95* | pgfortran*) 11061 # Portland Group f77 and f90 compilers 11062 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' 11063 tmp_addflag=' $pic_flag -Mnomain' ;; 11064 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11065 tmp_addflag=' -i_dynamic' ;; 11066 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11067 tmp_addflag=' -i_dynamic -nofor_main' ;; 11068 ifc* | ifort*) # Intel Fortran compiler 11069 tmp_addflag=' -nofor_main' ;; 11070 lf95*) # Lahey Fortran 8.1 11071 whole_archive_flag_spec= 11072 tmp_sharedflag='--shared' ;; 11073 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11074 tmp_sharedflag='-qmkshrobj' 11075 tmp_addflag= ;; 11076 nvcc*) # Cuda Compiler Driver 2.2 11077 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' 11078 compiler_needs_object=yes 11079 ;; 11080 esac 11081 case `$CC -V 2>&1 | sed 5q` in 11082 *Sun\ C*) # Sun C 5.9 11083 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' 11084 compiler_needs_object=yes 11085 tmp_sharedflag='-G' ;; 11086 *Sun\ F*) # Sun Fortran 8.3 11087 tmp_sharedflag='-G' ;; 11088 esac 11089 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11090 11091 if test "x$supports_anon_versioning" = xyes; then 11092 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11093 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11094 echo "local: *; };" >> $output_objdir/$libname.ver~ 11095 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11096 fi 11097 11098 case $cc_basename in 11099 xlf* | bgf* | bgxlf* | mpixlf*) 11100 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11101 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11102 hardcode_libdir_flag_spec= 11103 hardcode_libdir_flag_spec_ld='-rpath $libdir' 11104 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11105 if test "x$supports_anon_versioning" = xyes; then 11106 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11107 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11108 echo "local: *; };" >> $output_objdir/$libname.ver~ 11109 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11110 fi 11111 ;; 11112 esac 11113 else 11114 ld_shlibs=no 11115 fi 11116 ;; 11117 11118 netbsd*) 11119 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11120 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11121 wlarc= 11122 else 11123 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11124 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11125 fi 11126 ;; 11127 11128 solaris*) 11129 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11130 ld_shlibs=no 11131 cat <<_LT_EOF 1>&2 11132 11133*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11134*** create shared libraries on Solaris systems. Therefore, libtool 11135*** is disabling shared libraries support. We urge you to upgrade GNU 11136*** binutils to release 2.9.1 or newer. Another option is to modify 11137*** your PATH or compiler configuration so that the native linker is 11138*** used, and then restart. 11139 11140_LT_EOF 11141 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11142 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11143 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11144 else 11145 ld_shlibs=no 11146 fi 11147 ;; 11148 11149 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11150 case `$LD -v 2>&1` in 11151 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11152 ld_shlibs=no 11153 cat <<_LT_EOF 1>&2 11154 11155*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 11156*** reliably create shared libraries on SCO systems. Therefore, libtool 11157*** is disabling shared libraries support. We urge you to upgrade GNU 11158*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11159*** your PATH or compiler configuration so that the native linker is 11160*** used, and then restart. 11161 11162_LT_EOF 11163 ;; 11164 *) 11165 # For security reasons, it is highly recommended that you always 11166 # use absolute paths for naming shared libraries, and exclude the 11167 # DT_RUNPATH tag from executables and libraries. But doing so 11168 # requires that you compile everything twice, which is a pain. 11169 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11172 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11173 else 11174 ld_shlibs=no 11175 fi 11176 ;; 11177 esac 11178 ;; 11179 11180 sunos4*) 11181 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11182 wlarc= 11183 hardcode_direct=yes 11184 hardcode_shlibpath_var=no 11185 ;; 11186 11187 *) 11188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11189 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11190 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11191 else 11192 ld_shlibs=no 11193 fi 11194 ;; 11195 esac 11196 11197 if test "$ld_shlibs" = no; then 11198 runpath_var= 11199 hardcode_libdir_flag_spec= 11200 export_dynamic_flag_spec= 11201 whole_archive_flag_spec= 11202 fi 11203 else 11204 # PORTME fill in a description of your system's linker (not GNU ld) 11205 case $host_os in 11206 aix3*) 11207 allow_undefined_flag=unsupported 11208 always_export_symbols=yes 11209 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' 11210 # Note: this linker hardcodes the directories in LIBPATH if there 11211 # are no directories specified by -L. 11212 hardcode_minus_L=yes 11213 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 11214 # Neither direct hardcoding nor static linking is supported with a 11215 # broken collect2. 11216 hardcode_direct=unsupported 11217 fi 11218 ;; 11219 11220 aix[4-9]*) 11221 if test "$host_cpu" = ia64; then 11222 # On IA64, the linker does run time linking by default, so we don't 11223 # have to do anything special. 11224 aix_use_runtimelinking=no 11225 exp_sym_flag='-Bexport' 11226 no_entry_flag="" 11227 else 11228 # If we're using GNU nm, then we don't want the "-C" option. 11229 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11230 # Also, AIX nm treats weak defined symbols like other global 11231 # defined symbols, whereas GNU nm marks them as "W". 11232 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11233 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11234 else 11235 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11236 fi 11237 aix_use_runtimelinking=no 11238 11239 # Test if we are trying to use run time linking or normal 11240 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11241 # need to do runtime linking. 11242 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11243 for ld_flag in $LDFLAGS; do 11244 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 11245 aix_use_runtimelinking=yes 11246 break 11247 fi 11248 done 11249 ;; 11250 esac 11251 11252 exp_sym_flag='-bexport' 11253 no_entry_flag='-bnoentry' 11254 fi 11255 11256 # When large executables or shared objects are built, AIX ld can 11257 # have problems creating the table of contents. If linking a library 11258 # or program results in "error TOC overflow" add -mminimal-toc to 11259 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11260 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11261 11262 archive_cmds='' 11263 hardcode_direct=yes 11264 hardcode_direct_absolute=yes 11265 hardcode_libdir_separator=':' 11266 link_all_deplibs=yes 11267 file_list_spec='${wl}-f,' 11268 11269 if test "$GCC" = yes; then 11270 case $host_os in aix4.[012]|aix4.[012].*) 11271 # We only want to do this on AIX 4.2 and lower, the check 11272 # below for broken collect2 doesn't work under 4.3+ 11273 collect2name=`${CC} -print-prog-name=collect2` 11274 if test -f "$collect2name" && 11275 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11276 then 11277 # We have reworked collect2 11278 : 11279 else 11280 # We have old collect2 11281 hardcode_direct=unsupported 11282 # It fails to find uninstalled libraries when the uninstalled 11283 # path is not listed in the libpath. Setting hardcode_minus_L 11284 # to unsupported forces relinking 11285 hardcode_minus_L=yes 11286 hardcode_libdir_flag_spec='-L$libdir' 11287 hardcode_libdir_separator= 11288 fi 11289 ;; 11290 esac 11291 shared_flag='-shared' 11292 if test "$aix_use_runtimelinking" = yes; then 11293 shared_flag="$shared_flag "'${wl}-G' 11294 fi 11295 else 11296 # not using gcc 11297 if test "$host_cpu" = ia64; then 11298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11299 # chokes on -Wl,-G. The following line is correct: 11300 shared_flag='-G' 11301 else 11302 if test "$aix_use_runtimelinking" = yes; then 11303 shared_flag='${wl}-G' 11304 else 11305 shared_flag='${wl}-bM:SRE' 11306 fi 11307 fi 11308 fi 11309 11310 export_dynamic_flag_spec='${wl}-bexpall' 11311 # It seems that -bexpall does not export symbols beginning with 11312 # underscore (_), so it is better to generate a list of symbols to export. 11313 always_export_symbols=yes 11314 if test "$aix_use_runtimelinking" = yes; then 11315 # Warning - without using the other runtime loading flags (-brtl), 11316 # -berok will link without error, but may produce a broken library. 11317 allow_undefined_flag='-berok' 11318 # Determine the default libpath from the value encoded in an 11319 # empty executable. 11320 if test "${lt_cv_aix_libpath+set}" = set; then 11321 aix_libpath=$lt_cv_aix_libpath 11322else 11323 if ${lt_cv_aix_libpath_+:} false; then : 11324 $as_echo_n "(cached) " >&6 11325else 11326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11327/* end confdefs.h. */ 11328 11329int 11330main () 11331{ 11332 11333 ; 11334 return 0; 11335} 11336_ACEOF 11337if ac_fn_c_try_link "$LINENO"; then : 11338 11339 lt_aix_libpath_sed=' 11340 /Import File Strings/,/^$/ { 11341 /^0/ { 11342 s/^0 *\([^ ]*\) *$/\1/ 11343 p 11344 } 11345 }' 11346 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11347 # Check for a 64-bit object if we didn't find anything. 11348 if test -z "$lt_cv_aix_libpath_"; then 11349 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11350 fi 11351fi 11352rm -f core conftest.err conftest.$ac_objext \ 11353 conftest$ac_exeext conftest.$ac_ext 11354 if test -z "$lt_cv_aix_libpath_"; then 11355 lt_cv_aix_libpath_="/usr/lib:/lib" 11356 fi 11357 11358fi 11359 11360 aix_libpath=$lt_cv_aix_libpath_ 11361fi 11362 11363 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11364 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11365 else 11366 if test "$host_cpu" = ia64; then 11367 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 11368 allow_undefined_flag="-z nodefs" 11369 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" 11370 else 11371 # Determine the default libpath from the value encoded in an 11372 # empty executable. 11373 if test "${lt_cv_aix_libpath+set}" = set; then 11374 aix_libpath=$lt_cv_aix_libpath 11375else 11376 if ${lt_cv_aix_libpath_+:} false; then : 11377 $as_echo_n "(cached) " >&6 11378else 11379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11380/* end confdefs.h. */ 11381 11382int 11383main () 11384{ 11385 11386 ; 11387 return 0; 11388} 11389_ACEOF 11390if ac_fn_c_try_link "$LINENO"; then : 11391 11392 lt_aix_libpath_sed=' 11393 /Import File Strings/,/^$/ { 11394 /^0/ { 11395 s/^0 *\([^ ]*\) *$/\1/ 11396 p 11397 } 11398 }' 11399 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11400 # Check for a 64-bit object if we didn't find anything. 11401 if test -z "$lt_cv_aix_libpath_"; then 11402 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11403 fi 11404fi 11405rm -f core conftest.err conftest.$ac_objext \ 11406 conftest$ac_exeext conftest.$ac_ext 11407 if test -z "$lt_cv_aix_libpath_"; then 11408 lt_cv_aix_libpath_="/usr/lib:/lib" 11409 fi 11410 11411fi 11412 11413 aix_libpath=$lt_cv_aix_libpath_ 11414fi 11415 11416 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11417 # Warning - without using the other run time loading flags, 11418 # -berok will link without error, but may produce a broken library. 11419 no_undefined_flag=' ${wl}-bernotok' 11420 allow_undefined_flag=' ${wl}-berok' 11421 if test "$with_gnu_ld" = yes; then 11422 # We only use this code for GNU lds that support --whole-archive. 11423 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11424 else 11425 # Exported symbols can be pulled into shared objects from archives 11426 whole_archive_flag_spec='$convenience' 11427 fi 11428 archive_cmds_need_lc=yes 11429 # This is similar to how AIX traditionally builds its shared libraries. 11430 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11431 fi 11432 fi 11433 ;; 11434 11435 amigaos*) 11436 case $host_cpu in 11437 powerpc) 11438 # see comment about AmigaOS4 .so support 11439 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11440 archive_expsym_cmds='' 11441 ;; 11442 m68k) 11443 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)' 11444 hardcode_libdir_flag_spec='-L$libdir' 11445 hardcode_minus_L=yes 11446 ;; 11447 esac 11448 ;; 11449 11450 bsdi[45]*) 11451 export_dynamic_flag_spec=-rdynamic 11452 ;; 11453 11454 cygwin* | mingw* | pw32* | cegcc*) 11455 # When not using gcc, we currently assume that we are using 11456 # Microsoft Visual C++. 11457 # hardcode_libdir_flag_spec is actually meaningless, as there is 11458 # no search path for DLLs. 11459 case $cc_basename in 11460 cl*) 11461 # Native MSVC 11462 hardcode_libdir_flag_spec=' ' 11463 allow_undefined_flag=unsupported 11464 always_export_symbols=yes 11465 file_list_spec='@' 11466 # Tell ltmain to make .lib files, not .a files. 11467 libext=lib 11468 # Tell ltmain to make .dll files, not .so files. 11469 shrext_cmds=".dll" 11470 # FIXME: Setting linknames here is a bad hack. 11471 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 11472 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11473 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 11474 else 11475 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 11476 fi~ 11477 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11478 linknames=' 11479 # The linker will not automatically build a static lib if we build a DLL. 11480 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11481 enable_shared_with_static_runtimes=yes 11482 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11483 # Don't use ranlib 11484 old_postinstall_cmds='chmod 644 $oldlib' 11485 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11486 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11487 case $lt_outputfile in 11488 *.exe|*.EXE) ;; 11489 *) 11490 lt_outputfile="$lt_outputfile.exe" 11491 lt_tool_outputfile="$lt_tool_outputfile.exe" 11492 ;; 11493 esac~ 11494 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 11495 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11496 $RM "$lt_outputfile.manifest"; 11497 fi' 11498 ;; 11499 *) 11500 # Assume MSVC wrapper 11501 hardcode_libdir_flag_spec=' ' 11502 allow_undefined_flag=unsupported 11503 # Tell ltmain to make .lib files, not .a files. 11504 libext=lib 11505 # Tell ltmain to make .dll files, not .so files. 11506 shrext_cmds=".dll" 11507 # FIXME: Setting linknames here is a bad hack. 11508 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11509 # The linker will automatically build a .lib file if we build a DLL. 11510 old_archive_from_new_cmds='true' 11511 # FIXME: Should let the user specify the lib program. 11512 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11513 enable_shared_with_static_runtimes=yes 11514 ;; 11515 esac 11516 ;; 11517 11518 darwin* | rhapsody*) 11519 11520 11521 archive_cmds_need_lc=no 11522 hardcode_direct=no 11523 hardcode_automatic=yes 11524 hardcode_shlibpath_var=unsupported 11525 if test "$lt_cv_ld_force_load" = "yes"; then 11526 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\"`' 11527 else 11528 whole_archive_flag_spec='' 11529 fi 11530 link_all_deplibs=yes 11531 allow_undefined_flag="$_lt_dar_allow_undefined" 11532 case $cc_basename in 11533 ifort*) _lt_dar_can_shared=yes ;; 11534 *) _lt_dar_can_shared=$GCC ;; 11535 esac 11536 if test "$_lt_dar_can_shared" = "yes"; then 11537 output_verbose_link_cmd=func_echo_all 11538 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11539 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11540 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}" 11541 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}" 11542 11543 else 11544 ld_shlibs=no 11545 fi 11546 11547 ;; 11548 11549 dgux*) 11550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11551 hardcode_libdir_flag_spec='-L$libdir' 11552 hardcode_shlibpath_var=no 11553 ;; 11554 11555 freebsd1*) 11556 ld_shlibs=no 11557 ;; 11558 11559 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11560 # support. Future versions do this automatically, but an explicit c++rt0.o 11561 # does not break anything, and helps significantly (at the cost of a little 11562 # extra space). 11563 freebsd2.2*) 11564 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11565 hardcode_libdir_flag_spec='-R$libdir' 11566 hardcode_direct=yes 11567 hardcode_shlibpath_var=no 11568 ;; 11569 11570 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11571 freebsd2*) 11572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11573 hardcode_direct=yes 11574 hardcode_minus_L=yes 11575 hardcode_shlibpath_var=no 11576 ;; 11577 11578 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11579 freebsd* | dragonfly*) 11580 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11581 hardcode_libdir_flag_spec='-R$libdir' 11582 hardcode_direct=yes 11583 hardcode_shlibpath_var=no 11584 ;; 11585 11586 hpux9*) 11587 if test "$GCC" = yes; then 11588 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11589 else 11590 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11591 fi 11592 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11593 hardcode_libdir_separator=: 11594 hardcode_direct=yes 11595 11596 # hardcode_minus_L: Not really in the search PATH, 11597 # but as the default location of the library. 11598 hardcode_minus_L=yes 11599 export_dynamic_flag_spec='${wl}-E' 11600 ;; 11601 11602 hpux10*) 11603 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11604 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11605 else 11606 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11607 fi 11608 if test "$with_gnu_ld" = no; then 11609 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11610 hardcode_libdir_flag_spec_ld='+b $libdir' 11611 hardcode_libdir_separator=: 11612 hardcode_direct=yes 11613 hardcode_direct_absolute=yes 11614 export_dynamic_flag_spec='${wl}-E' 11615 # hardcode_minus_L: Not really in the search PATH, 11616 # but as the default location of the library. 11617 hardcode_minus_L=yes 11618 fi 11619 ;; 11620 11621 hpux11*) 11622 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11623 case $host_cpu in 11624 hppa*64*) 11625 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11626 ;; 11627 ia64*) 11628 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11629 ;; 11630 *) 11631 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11632 ;; 11633 esac 11634 else 11635 case $host_cpu in 11636 hppa*64*) 11637 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11638 ;; 11639 ia64*) 11640 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11641 ;; 11642 *) 11643 11644 # Older versions of the 11.00 compiler do not understand -b yet 11645 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11647$as_echo_n "checking if $CC understands -b... " >&6; } 11648if ${lt_cv_prog_compiler__b+:} false; then : 11649 $as_echo_n "(cached) " >&6 11650else 11651 lt_cv_prog_compiler__b=no 11652 save_LDFLAGS="$LDFLAGS" 11653 LDFLAGS="$LDFLAGS -b" 11654 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11655 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11656 # The linker can only warn and ignore the option if not recognized 11657 # So say no if there are warnings 11658 if test -s conftest.err; then 11659 # Append any errors to the config.log. 11660 cat conftest.err 1>&5 11661 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11663 if diff conftest.exp conftest.er2 >/dev/null; then 11664 lt_cv_prog_compiler__b=yes 11665 fi 11666 else 11667 lt_cv_prog_compiler__b=yes 11668 fi 11669 fi 11670 $RM -r conftest* 11671 LDFLAGS="$save_LDFLAGS" 11672 11673fi 11674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11675$as_echo "$lt_cv_prog_compiler__b" >&6; } 11676 11677if test x"$lt_cv_prog_compiler__b" = xyes; then 11678 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11679else 11680 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11681fi 11682 11683 ;; 11684 esac 11685 fi 11686 if test "$with_gnu_ld" = no; then 11687 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11688 hardcode_libdir_separator=: 11689 11690 case $host_cpu in 11691 hppa*64*|ia64*) 11692 hardcode_direct=no 11693 hardcode_shlibpath_var=no 11694 ;; 11695 *) 11696 hardcode_direct=yes 11697 hardcode_direct_absolute=yes 11698 export_dynamic_flag_spec='${wl}-E' 11699 11700 # hardcode_minus_L: Not really in the search PATH, 11701 # but as the default location of the library. 11702 hardcode_minus_L=yes 11703 ;; 11704 esac 11705 fi 11706 ;; 11707 11708 irix5* | irix6* | nonstopux*) 11709 if test "$GCC" = yes; then 11710 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' 11711 # Try to use the -exported_symbol ld option, if it does not 11712 # work, assume that -exports_file does not work either and 11713 # implicitly export all symbols. 11714 # This should be the same for all languages, so no per-tag cache variable. 11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11716$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11717if ${lt_cv_irix_exported_symbol+:} false; then : 11718 $as_echo_n "(cached) " >&6 11719else 11720 save_LDFLAGS="$LDFLAGS" 11721 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11723/* end confdefs.h. */ 11724int foo (void) { return 0; } 11725_ACEOF 11726if ac_fn_c_try_link "$LINENO"; then : 11727 lt_cv_irix_exported_symbol=yes 11728else 11729 lt_cv_irix_exported_symbol=no 11730fi 11731rm -f core conftest.err conftest.$ac_objext \ 11732 conftest$ac_exeext conftest.$ac_ext 11733 LDFLAGS="$save_LDFLAGS" 11734fi 11735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11736$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11737 if test "$lt_cv_irix_exported_symbol" = yes; then 11738 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' 11739 fi 11740 else 11741 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' 11742 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' 11743 fi 11744 archive_cmds_need_lc='no' 11745 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11746 hardcode_libdir_separator=: 11747 inherit_rpath=yes 11748 link_all_deplibs=yes 11749 ;; 11750 11751 netbsd*) 11752 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11753 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11754 else 11755 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11756 fi 11757 hardcode_libdir_flag_spec='-R$libdir' 11758 hardcode_direct=yes 11759 hardcode_shlibpath_var=no 11760 ;; 11761 11762 newsos6) 11763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11764 hardcode_direct=yes 11765 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11766 hardcode_libdir_separator=: 11767 hardcode_shlibpath_var=no 11768 ;; 11769 11770 *nto* | *qnx*) 11771 ;; 11772 11773 openbsd*) 11774 if test -f /usr/libexec/ld.so; then 11775 hardcode_direct=yes 11776 hardcode_shlibpath_var=no 11777 hardcode_direct_absolute=yes 11778 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11779 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11780 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11781 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11782 export_dynamic_flag_spec='${wl}-E' 11783 else 11784 case $host_os in 11785 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11787 hardcode_libdir_flag_spec='-R$libdir' 11788 ;; 11789 *) 11790 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11791 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11792 ;; 11793 esac 11794 fi 11795 else 11796 ld_shlibs=no 11797 fi 11798 ;; 11799 11800 os2*) 11801 hardcode_libdir_flag_spec='-L$libdir' 11802 hardcode_minus_L=yes 11803 allow_undefined_flag=unsupported 11804 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 11805 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11806 ;; 11807 11808 osf3*) 11809 if test "$GCC" = yes; then 11810 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11811 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' 11812 else 11813 allow_undefined_flag=' -expect_unresolved \*' 11814 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' 11815 fi 11816 archive_cmds_need_lc='no' 11817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11818 hardcode_libdir_separator=: 11819 ;; 11820 11821 osf4* | osf5*) # as osf3* with the addition of -msym flag 11822 if test "$GCC" = yes; then 11823 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11824 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' 11825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11826 else 11827 allow_undefined_flag=' -expect_unresolved \*' 11828 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' 11829 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~ 11830 $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' 11831 11832 # Both c and cxx compiler support -rpath directly 11833 hardcode_libdir_flag_spec='-rpath $libdir' 11834 fi 11835 archive_cmds_need_lc='no' 11836 hardcode_libdir_separator=: 11837 ;; 11838 11839 solaris*) 11840 no_undefined_flag=' -z defs' 11841 if test "$GCC" = yes; then 11842 wlarc='${wl}' 11843 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11844 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11845 $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' 11846 else 11847 case `$CC -V 2>&1` in 11848 *"Compilers 5.0"*) 11849 wlarc='' 11850 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11851 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11852 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11853 ;; 11854 *) 11855 wlarc='${wl}' 11856 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11857 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11858 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11859 ;; 11860 esac 11861 fi 11862 hardcode_libdir_flag_spec='-R$libdir' 11863 hardcode_shlibpath_var=no 11864 case $host_os in 11865 solaris2.[0-5] | solaris2.[0-5].*) ;; 11866 *) 11867 # The compiler driver will combine and reorder linker options, 11868 # but understands `-z linker_flag'. GCC discards it without `$wl', 11869 # but is careful enough not to reorder. 11870 # Supported since Solaris 2.6 (maybe 2.5.1?) 11871 if test "$GCC" = yes; then 11872 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11873 else 11874 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11875 fi 11876 ;; 11877 esac 11878 link_all_deplibs=yes 11879 ;; 11880 11881 sunos4*) 11882 if test "x$host_vendor" = xsequent; then 11883 # Use $CC to link under sequent, because it throws in some extra .o 11884 # files that make .init and .fini sections work. 11885 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11886 else 11887 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11888 fi 11889 hardcode_libdir_flag_spec='-L$libdir' 11890 hardcode_direct=yes 11891 hardcode_minus_L=yes 11892 hardcode_shlibpath_var=no 11893 ;; 11894 11895 sysv4) 11896 case $host_vendor in 11897 sni) 11898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11899 hardcode_direct=yes # is this really true??? 11900 ;; 11901 siemens) 11902 ## LD is ld it makes a PLAMLIB 11903 ## CC just makes a GrossModule. 11904 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11905 reload_cmds='$CC -r -o $output$reload_objs' 11906 hardcode_direct=no 11907 ;; 11908 motorola) 11909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11910 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11911 ;; 11912 esac 11913 runpath_var='LD_RUN_PATH' 11914 hardcode_shlibpath_var=no 11915 ;; 11916 11917 sysv4.3*) 11918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11919 hardcode_shlibpath_var=no 11920 export_dynamic_flag_spec='-Bexport' 11921 ;; 11922 11923 sysv4*MP*) 11924 if test -d /usr/nec; then 11925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11926 hardcode_shlibpath_var=no 11927 runpath_var=LD_RUN_PATH 11928 hardcode_runpath_var=yes 11929 ld_shlibs=yes 11930 fi 11931 ;; 11932 11933 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11934 no_undefined_flag='${wl}-z,text' 11935 archive_cmds_need_lc=no 11936 hardcode_shlibpath_var=no 11937 runpath_var='LD_RUN_PATH' 11938 11939 if test "$GCC" = yes; then 11940 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11941 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11942 else 11943 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11944 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11945 fi 11946 ;; 11947 11948 sysv5* | sco3.2v5* | sco5v6*) 11949 # Note: We can NOT use -z defs as we might desire, because we do not 11950 # link with -lc, and that would cause any symbols used from libc to 11951 # always be unresolved, which means just about no library would 11952 # ever link correctly. If we're not using GNU ld we use -z text 11953 # though, which does catch some bad symbols but isn't as heavy-handed 11954 # as -z defs. 11955 no_undefined_flag='${wl}-z,text' 11956 allow_undefined_flag='${wl}-z,nodefs' 11957 archive_cmds_need_lc=no 11958 hardcode_shlibpath_var=no 11959 hardcode_libdir_flag_spec='${wl}-R,$libdir' 11960 hardcode_libdir_separator=':' 11961 link_all_deplibs=yes 11962 export_dynamic_flag_spec='${wl}-Bexport' 11963 runpath_var='LD_RUN_PATH' 11964 11965 if test "$GCC" = yes; then 11966 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11967 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11968 else 11969 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11970 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11971 fi 11972 ;; 11973 11974 uts4*) 11975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11976 hardcode_libdir_flag_spec='-L$libdir' 11977 hardcode_shlibpath_var=no 11978 ;; 11979 11980 *) 11981 ld_shlibs=no 11982 ;; 11983 esac 11984 11985 if test x$host_vendor = xsni; then 11986 case $host in 11987 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11988 export_dynamic_flag_spec='${wl}-Blargedynsym' 11989 ;; 11990 esac 11991 fi 11992 fi 11993 11994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11995$as_echo "$ld_shlibs" >&6; } 11996test "$ld_shlibs" = no && can_build_shared=no 11997 11998with_gnu_ld=$with_gnu_ld 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014# 12015# Do we need to explicitly link libc? 12016# 12017case "x$archive_cmds_need_lc" in 12018x|xyes) 12019 # Assume -lc should be added 12020 archive_cmds_need_lc=yes 12021 12022 if test "$enable_shared" = yes && test "$GCC" = yes; then 12023 case $archive_cmds in 12024 *'~'*) 12025 # FIXME: we may have to deal with multi-command sequences. 12026 ;; 12027 '$CC '*) 12028 # Test whether the compiler implicitly links with -lc since on some 12029 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12030 # to ld, don't add -lc before -lgcc. 12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12032$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12033if ${lt_cv_archive_cmds_need_lc+:} false; then : 12034 $as_echo_n "(cached) " >&6 12035else 12036 $RM conftest* 12037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12038 12039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12040 (eval $ac_compile) 2>&5 12041 ac_status=$? 12042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12043 test $ac_status = 0; } 2>conftest.err; then 12044 soname=conftest 12045 lib=conftest 12046 libobjs=conftest.$ac_objext 12047 deplibs= 12048 wl=$lt_prog_compiler_wl 12049 pic_flag=$lt_prog_compiler_pic 12050 compiler_flags=-v 12051 linker_flags=-v 12052 verstring= 12053 output_objdir=. 12054 libname=conftest 12055 lt_save_allow_undefined_flag=$allow_undefined_flag 12056 allow_undefined_flag= 12057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12058 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12059 ac_status=$? 12060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12061 test $ac_status = 0; } 12062 then 12063 lt_cv_archive_cmds_need_lc=no 12064 else 12065 lt_cv_archive_cmds_need_lc=yes 12066 fi 12067 allow_undefined_flag=$lt_save_allow_undefined_flag 12068 else 12069 cat conftest.err 1>&5 12070 fi 12071 $RM conftest* 12072 12073fi 12074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12075$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12076 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12077 ;; 12078 esac 12079 fi 12080 ;; 12081esac 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12240$as_echo_n "checking dynamic linker characteristics... " >&6; } 12241 12242if test "$GCC" = yes; then 12243 case $host_os in 12244 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 12245 *) lt_awk_arg="/^libraries:/" ;; 12246 esac 12247 case $host_os in 12248 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 12249 *) lt_sed_strip_eq="s,=/,/,g" ;; 12250 esac 12251 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12252 case $lt_search_path_spec in 12253 *\;*) 12254 # if the path contains ";" then we assume it to be the separator 12255 # otherwise default to the standard path separator (i.e. ":") - it is 12256 # assumed that no part of a normal pathname contains ";" but that should 12257 # okay in the real world where ";" in dirpaths is itself problematic. 12258 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12259 ;; 12260 *) 12261 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12262 ;; 12263 esac 12264 # Ok, now we have the path, separated by spaces, we can step through it 12265 # and add multilib dir if necessary. 12266 lt_tmp_lt_search_path_spec= 12267 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12268 for lt_sys_path in $lt_search_path_spec; do 12269 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 12270 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 12271 else 12272 test -d "$lt_sys_path" && \ 12273 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12274 fi 12275 done 12276 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12277BEGIN {RS=" "; FS="/|\n";} { 12278 lt_foo=""; 12279 lt_count=0; 12280 for (lt_i = NF; lt_i > 0; lt_i--) { 12281 if ($lt_i != "" && $lt_i != ".") { 12282 if ($lt_i == "..") { 12283 lt_count++; 12284 } else { 12285 if (lt_count == 0) { 12286 lt_foo="/" $lt_i lt_foo; 12287 } else { 12288 lt_count--; 12289 } 12290 } 12291 } 12292 } 12293 if (lt_foo != "") { lt_freq[lt_foo]++; } 12294 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12295}'` 12296 # AWK program above erroneously prepends '/' to C:/dos/paths 12297 # for these hosts. 12298 case $host_os in 12299 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12300 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 12301 esac 12302 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12303else 12304 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12305fi 12306library_names_spec= 12307libname_spec='lib$name' 12308soname_spec= 12309shrext_cmds=".so" 12310postinstall_cmds= 12311postuninstall_cmds= 12312finish_cmds= 12313finish_eval= 12314shlibpath_var= 12315shlibpath_overrides_runpath=unknown 12316version_type=none 12317dynamic_linker="$host_os ld.so" 12318sys_lib_dlsearch_path_spec="/lib /usr/lib" 12319need_lib_prefix=unknown 12320hardcode_into_libs=no 12321 12322# when you set need_version to no, make sure it does not cause -set_version 12323# flags to be left without arguments 12324need_version=unknown 12325 12326case $host_os in 12327aix3*) 12328 version_type=linux 12329 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12330 shlibpath_var=LIBPATH 12331 12332 # AIX 3 has no versioning support, so we append a major version to the name. 12333 soname_spec='${libname}${release}${shared_ext}$major' 12334 ;; 12335 12336aix[4-9]*) 12337 version_type=linux 12338 need_lib_prefix=no 12339 need_version=no 12340 hardcode_into_libs=yes 12341 if test "$host_cpu" = ia64; then 12342 # AIX 5 supports IA64 12343 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12344 shlibpath_var=LD_LIBRARY_PATH 12345 else 12346 # With GCC up to 2.95.x, collect2 would create an import file 12347 # for dependence libraries. The import file would start with 12348 # the line `#! .'. This would cause the generated library to 12349 # depend on `.', always an invalid library. This was fixed in 12350 # development snapshots of GCC prior to 3.0. 12351 case $host_os in 12352 aix4 | aix4.[01] | aix4.[01].*) 12353 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12354 echo ' yes ' 12355 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 12356 : 12357 else 12358 can_build_shared=no 12359 fi 12360 ;; 12361 esac 12362 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12363 # soname into executable. Probably we can add versioning support to 12364 # collect2, so additional links can be useful in future. 12365 if test "$aix_use_runtimelinking" = yes; then 12366 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12367 # instead of lib<name>.a to let people know that these are not 12368 # typical AIX shared libraries. 12369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12370 else 12371 # We preserve .a as extension for shared libraries through AIX4.2 12372 # and later when we are not doing run time linking. 12373 library_names_spec='${libname}${release}.a $libname.a' 12374 soname_spec='${libname}${release}${shared_ext}$major' 12375 fi 12376 shlibpath_var=LIBPATH 12377 fi 12378 ;; 12379 12380amigaos*) 12381 case $host_cpu in 12382 powerpc) 12383 # Since July 2007 AmigaOS4 officially supports .so libraries. 12384 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12386 ;; 12387 m68k) 12388 library_names_spec='$libname.ixlibrary $libname.a' 12389 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12390 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12391 ;; 12392 esac 12393 ;; 12394 12395beos*) 12396 library_names_spec='${libname}${shared_ext}' 12397 dynamic_linker="$host_os ld.so" 12398 shlibpath_var=LIBRARY_PATH 12399 ;; 12400 12401bsdi[45]*) 12402 version_type=linux 12403 need_version=no 12404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12405 soname_spec='${libname}${release}${shared_ext}$major' 12406 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12407 shlibpath_var=LD_LIBRARY_PATH 12408 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12409 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12410 # the default ld.so.conf also contains /usr/contrib/lib and 12411 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12412 # libtool to hard-code these into programs 12413 ;; 12414 12415cygwin* | mingw* | pw32* | cegcc*) 12416 version_type=windows 12417 shrext_cmds=".dll" 12418 need_version=no 12419 need_lib_prefix=no 12420 12421 case $GCC,$cc_basename in 12422 yes,*) 12423 # gcc 12424 library_names_spec='$libname.dll.a' 12425 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12426 postinstall_cmds='base_file=`basename \${file}`~ 12427 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12428 dldir=$destdir/`dirname \$dlpath`~ 12429 test -d \$dldir || mkdir -p \$dldir~ 12430 $install_prog $dir/$dlname \$dldir/$dlname~ 12431 chmod a+x \$dldir/$dlname~ 12432 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12433 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12434 fi' 12435 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12436 dlpath=$dir/\$dldll~ 12437 $RM \$dlpath' 12438 shlibpath_overrides_runpath=yes 12439 12440 case $host_os in 12441 cygwin*) 12442 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12443 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12444 12445 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12446 ;; 12447 mingw* | cegcc*) 12448 # MinGW DLLs use traditional 'lib' prefix 12449 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12450 ;; 12451 pw32*) 12452 # pw32 DLLs use 'pw' prefix rather than 'lib' 12453 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12454 ;; 12455 esac 12456 dynamic_linker='Win32 ld.exe' 12457 ;; 12458 12459 *,cl*) 12460 # Native MSVC 12461 libname_spec='$name' 12462 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12463 library_names_spec='${libname}.dll.lib' 12464 12465 case $build_os in 12466 mingw*) 12467 sys_lib_search_path_spec= 12468 lt_save_ifs=$IFS 12469 IFS=';' 12470 for lt_path in $LIB 12471 do 12472 IFS=$lt_save_ifs 12473 # Let DOS variable expansion print the short 8.3 style file name. 12474 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12475 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12476 done 12477 IFS=$lt_save_ifs 12478 # Convert to MSYS style. 12479 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12480 ;; 12481 cygwin*) 12482 # Convert to unix form, then to dos form, then back to unix form 12483 # but this time dos style (no spaces!) so that the unix form looks 12484 # like /cygdrive/c/PROGRA~1:/cygdr... 12485 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12486 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12487 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12488 ;; 12489 *) 12490 sys_lib_search_path_spec="$LIB" 12491 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12492 # It is most probably a Windows format PATH. 12493 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12494 else 12495 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12496 fi 12497 # FIXME: find the short name or the path components, as spaces are 12498 # common. (e.g. "Program Files" -> "PROGRA~1") 12499 ;; 12500 esac 12501 12502 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12503 postinstall_cmds='base_file=`basename \${file}`~ 12504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12505 dldir=$destdir/`dirname \$dlpath`~ 12506 test -d \$dldir || mkdir -p \$dldir~ 12507 $install_prog $dir/$dlname \$dldir/$dlname' 12508 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12509 dlpath=$dir/\$dldll~ 12510 $RM \$dlpath' 12511 shlibpath_overrides_runpath=yes 12512 dynamic_linker='Win32 link.exe' 12513 ;; 12514 12515 *) 12516 # Assume MSVC wrapper 12517 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12518 dynamic_linker='Win32 ld.exe' 12519 ;; 12520 esac 12521 # FIXME: first we should search . and the directory the executable is in 12522 shlibpath_var=PATH 12523 ;; 12524 12525darwin* | rhapsody*) 12526 dynamic_linker="$host_os dyld" 12527 version_type=darwin 12528 need_lib_prefix=no 12529 need_version=no 12530 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12531 soname_spec='${libname}${release}${major}$shared_ext' 12532 shlibpath_overrides_runpath=yes 12533 shlibpath_var=DYLD_LIBRARY_PATH 12534 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12535 12536 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12537 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12538 ;; 12539 12540dgux*) 12541 version_type=linux 12542 need_lib_prefix=no 12543 need_version=no 12544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12545 soname_spec='${libname}${release}${shared_ext}$major' 12546 shlibpath_var=LD_LIBRARY_PATH 12547 ;; 12548 12549freebsd1*) 12550 dynamic_linker=no 12551 ;; 12552 12553freebsd* | dragonfly*) 12554 # DragonFly does not have aout. When/if they implement a new 12555 # versioning mechanism, adjust this. 12556 if test -x /usr/bin/objformat; then 12557 objformat=`/usr/bin/objformat` 12558 else 12559 case $host_os in 12560 freebsd[123]*) objformat=aout ;; 12561 *) objformat=elf ;; 12562 esac 12563 fi 12564 version_type=freebsd-$objformat 12565 case $version_type in 12566 freebsd-elf*) 12567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12568 need_version=no 12569 need_lib_prefix=no 12570 ;; 12571 freebsd-*) 12572 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12573 need_version=yes 12574 ;; 12575 esac 12576 shlibpath_var=LD_LIBRARY_PATH 12577 case $host_os in 12578 freebsd2*) 12579 shlibpath_overrides_runpath=yes 12580 ;; 12581 freebsd3.[01]* | freebsdelf3.[01]*) 12582 shlibpath_overrides_runpath=yes 12583 hardcode_into_libs=yes 12584 ;; 12585 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12586 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12587 shlibpath_overrides_runpath=no 12588 hardcode_into_libs=yes 12589 ;; 12590 *) # from 4.6 on, and DragonFly 12591 shlibpath_overrides_runpath=yes 12592 hardcode_into_libs=yes 12593 ;; 12594 esac 12595 ;; 12596 12597gnu*) 12598 version_type=linux 12599 need_lib_prefix=no 12600 need_version=no 12601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12602 soname_spec='${libname}${release}${shared_ext}$major' 12603 shlibpath_var=LD_LIBRARY_PATH 12604 hardcode_into_libs=yes 12605 ;; 12606 12607haiku*) 12608 version_type=linux 12609 need_lib_prefix=no 12610 need_version=no 12611 dynamic_linker="$host_os runtime_loader" 12612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12613 soname_spec='${libname}${release}${shared_ext}$major' 12614 shlibpath_var=LIBRARY_PATH 12615 shlibpath_overrides_runpath=yes 12616 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12617 hardcode_into_libs=yes 12618 ;; 12619 12620hpux9* | hpux10* | hpux11*) 12621 # Give a soname corresponding to the major version so that dld.sl refuses to 12622 # link against other versions. 12623 version_type=sunos 12624 need_lib_prefix=no 12625 need_version=no 12626 case $host_cpu in 12627 ia64*) 12628 shrext_cmds='.so' 12629 hardcode_into_libs=yes 12630 dynamic_linker="$host_os dld.so" 12631 shlibpath_var=LD_LIBRARY_PATH 12632 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12634 soname_spec='${libname}${release}${shared_ext}$major' 12635 if test "X$HPUX_IA64_MODE" = X32; then 12636 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12637 else 12638 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12639 fi 12640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12641 ;; 12642 hppa*64*) 12643 shrext_cmds='.sl' 12644 hardcode_into_libs=yes 12645 dynamic_linker="$host_os dld.sl" 12646 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12647 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12649 soname_spec='${libname}${release}${shared_ext}$major' 12650 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12651 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12652 ;; 12653 *) 12654 shrext_cmds='.sl' 12655 dynamic_linker="$host_os dld.sl" 12656 shlibpath_var=SHLIB_PATH 12657 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12659 soname_spec='${libname}${release}${shared_ext}$major' 12660 ;; 12661 esac 12662 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12663 postinstall_cmds='chmod 555 $lib' 12664 # or fails outright, so override atomically: 12665 install_override_mode=555 12666 ;; 12667 12668interix[3-9]*) 12669 version_type=linux 12670 need_lib_prefix=no 12671 need_version=no 12672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12673 soname_spec='${libname}${release}${shared_ext}$major' 12674 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12675 shlibpath_var=LD_LIBRARY_PATH 12676 shlibpath_overrides_runpath=no 12677 hardcode_into_libs=yes 12678 ;; 12679 12680irix5* | irix6* | nonstopux*) 12681 case $host_os in 12682 nonstopux*) version_type=nonstopux ;; 12683 *) 12684 if test "$lt_cv_prog_gnu_ld" = yes; then 12685 version_type=linux 12686 else 12687 version_type=irix 12688 fi ;; 12689 esac 12690 need_lib_prefix=no 12691 need_version=no 12692 soname_spec='${libname}${release}${shared_ext}$major' 12693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12694 case $host_os in 12695 irix5* | nonstopux*) 12696 libsuff= shlibsuff= 12697 ;; 12698 *) 12699 case $LD in # libtool.m4 will add one of these switches to LD 12700 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12701 libsuff= shlibsuff= libmagic=32-bit;; 12702 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12703 libsuff=32 shlibsuff=N32 libmagic=N32;; 12704 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12705 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12706 *) libsuff= shlibsuff= libmagic=never-match;; 12707 esac 12708 ;; 12709 esac 12710 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12711 shlibpath_overrides_runpath=no 12712 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12713 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12714 hardcode_into_libs=yes 12715 ;; 12716 12717# No shared lib support for Linux oldld, aout, or coff. 12718linux*oldld* | linux*aout* | linux*coff*) 12719 dynamic_linker=no 12720 ;; 12721 12722# This must be Linux ELF. 12723linux* | k*bsd*-gnu | kopensolaris*-gnu) 12724 version_type=linux 12725 need_lib_prefix=no 12726 need_version=no 12727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12728 soname_spec='${libname}${release}${shared_ext}$major' 12729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12730 shlibpath_var=LD_LIBRARY_PATH 12731 shlibpath_overrides_runpath=no 12732 12733 # Some binutils ld are patched to set DT_RUNPATH 12734 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12735 $as_echo_n "(cached) " >&6 12736else 12737 lt_cv_shlibpath_overrides_runpath=no 12738 save_LDFLAGS=$LDFLAGS 12739 save_libdir=$libdir 12740 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12741 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12743/* end confdefs.h. */ 12744 12745int 12746main () 12747{ 12748 12749 ; 12750 return 0; 12751} 12752_ACEOF 12753if ac_fn_c_try_link "$LINENO"; then : 12754 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12755 lt_cv_shlibpath_overrides_runpath=yes 12756fi 12757fi 12758rm -f core conftest.err conftest.$ac_objext \ 12759 conftest$ac_exeext conftest.$ac_ext 12760 LDFLAGS=$save_LDFLAGS 12761 libdir=$save_libdir 12762 12763fi 12764 12765 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12766 12767 # This implies no fast_install, which is unacceptable. 12768 # Some rework will be needed to allow for fast_install 12769 # before this can be enabled. 12770 hardcode_into_libs=yes 12771 12772 # Append ld.so.conf contents to the search path 12773 if test -f /etc/ld.so.conf; then 12774 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' ' '` 12775 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12776 fi 12777 12778 # We used to test for /lib/ld.so.1 and disable shared libraries on 12779 # powerpc, because MkLinux only supported shared libraries with the 12780 # GNU dynamic linker. Since this was broken with cross compilers, 12781 # most powerpc-linux boxes support dynamic linking these days and 12782 # people can always --disable-shared, the test was removed, and we 12783 # assume the GNU/Linux dynamic linker is in use. 12784 dynamic_linker='GNU/Linux ld.so' 12785 ;; 12786 12787netbsd*) 12788 version_type=sunos 12789 need_lib_prefix=no 12790 need_version=no 12791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12794 dynamic_linker='NetBSD (a.out) ld.so' 12795 else 12796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12797 soname_spec='${libname}${release}${shared_ext}$major' 12798 dynamic_linker='NetBSD ld.elf_so' 12799 fi 12800 shlibpath_var=LD_LIBRARY_PATH 12801 shlibpath_overrides_runpath=yes 12802 hardcode_into_libs=yes 12803 ;; 12804 12805newsos6) 12806 version_type=linux 12807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12808 shlibpath_var=LD_LIBRARY_PATH 12809 shlibpath_overrides_runpath=yes 12810 ;; 12811 12812*nto* | *qnx*) 12813 version_type=qnx 12814 need_lib_prefix=no 12815 need_version=no 12816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12817 soname_spec='${libname}${release}${shared_ext}$major' 12818 shlibpath_var=LD_LIBRARY_PATH 12819 shlibpath_overrides_runpath=no 12820 hardcode_into_libs=yes 12821 dynamic_linker='ldqnx.so' 12822 ;; 12823 12824openbsd*) 12825 version_type=sunos 12826 sys_lib_dlsearch_path_spec="/usr/lib" 12827 need_lib_prefix=no 12828 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12829 case $host_os in 12830 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12831 *) need_version=no ;; 12832 esac 12833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12835 shlibpath_var=LD_LIBRARY_PATH 12836 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12837 case $host_os in 12838 openbsd2.[89] | openbsd2.[89].*) 12839 shlibpath_overrides_runpath=no 12840 ;; 12841 *) 12842 shlibpath_overrides_runpath=yes 12843 ;; 12844 esac 12845 else 12846 shlibpath_overrides_runpath=yes 12847 fi 12848 ;; 12849 12850os2*) 12851 libname_spec='$name' 12852 shrext_cmds=".dll" 12853 need_lib_prefix=no 12854 library_names_spec='$libname${shared_ext} $libname.a' 12855 dynamic_linker='OS/2 ld.exe' 12856 shlibpath_var=LIBPATH 12857 ;; 12858 12859osf3* | osf4* | osf5*) 12860 version_type=osf 12861 need_lib_prefix=no 12862 need_version=no 12863 soname_spec='${libname}${release}${shared_ext}$major' 12864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12865 shlibpath_var=LD_LIBRARY_PATH 12866 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12867 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12868 ;; 12869 12870rdos*) 12871 dynamic_linker=no 12872 ;; 12873 12874solaris*) 12875 version_type=linux 12876 need_lib_prefix=no 12877 need_version=no 12878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12879 soname_spec='${libname}${release}${shared_ext}$major' 12880 shlibpath_var=LD_LIBRARY_PATH 12881 shlibpath_overrides_runpath=yes 12882 hardcode_into_libs=yes 12883 # ldd complains unless libraries are executable 12884 postinstall_cmds='chmod +x $lib' 12885 ;; 12886 12887sunos4*) 12888 version_type=sunos 12889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12890 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12891 shlibpath_var=LD_LIBRARY_PATH 12892 shlibpath_overrides_runpath=yes 12893 if test "$with_gnu_ld" = yes; then 12894 need_lib_prefix=no 12895 fi 12896 need_version=yes 12897 ;; 12898 12899sysv4 | sysv4.3*) 12900 version_type=linux 12901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12902 soname_spec='${libname}${release}${shared_ext}$major' 12903 shlibpath_var=LD_LIBRARY_PATH 12904 case $host_vendor in 12905 sni) 12906 shlibpath_overrides_runpath=no 12907 need_lib_prefix=no 12908 runpath_var=LD_RUN_PATH 12909 ;; 12910 siemens) 12911 need_lib_prefix=no 12912 ;; 12913 motorola) 12914 need_lib_prefix=no 12915 need_version=no 12916 shlibpath_overrides_runpath=no 12917 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12918 ;; 12919 esac 12920 ;; 12921 12922sysv4*MP*) 12923 if test -d /usr/nec ;then 12924 version_type=linux 12925 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12926 soname_spec='$libname${shared_ext}.$major' 12927 shlibpath_var=LD_LIBRARY_PATH 12928 fi 12929 ;; 12930 12931sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12932 version_type=freebsd-elf 12933 need_lib_prefix=no 12934 need_version=no 12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12936 soname_spec='${libname}${release}${shared_ext}$major' 12937 shlibpath_var=LD_LIBRARY_PATH 12938 shlibpath_overrides_runpath=yes 12939 hardcode_into_libs=yes 12940 if test "$with_gnu_ld" = yes; then 12941 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12942 else 12943 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12944 case $host_os in 12945 sco3.2v5*) 12946 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12947 ;; 12948 esac 12949 fi 12950 sys_lib_dlsearch_path_spec='/usr/lib' 12951 ;; 12952 12953tpf*) 12954 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12955 version_type=linux 12956 need_lib_prefix=no 12957 need_version=no 12958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12959 shlibpath_var=LD_LIBRARY_PATH 12960 shlibpath_overrides_runpath=no 12961 hardcode_into_libs=yes 12962 ;; 12963 12964uts4*) 12965 version_type=linux 12966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12967 soname_spec='${libname}${release}${shared_ext}$major' 12968 shlibpath_var=LD_LIBRARY_PATH 12969 ;; 12970 12971*) 12972 dynamic_linker=no 12973 ;; 12974esac 12975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12976$as_echo "$dynamic_linker" >&6; } 12977test "$dynamic_linker" = no && can_build_shared=no 12978 12979variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12980if test "$GCC" = yes; then 12981 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12982fi 12983 12984if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 12985 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12986fi 12987if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 12988 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12989fi 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13083$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13084hardcode_action= 13085if test -n "$hardcode_libdir_flag_spec" || 13086 test -n "$runpath_var" || 13087 test "X$hardcode_automatic" = "Xyes" ; then 13088 13089 # We can hardcode non-existent directories. 13090 if test "$hardcode_direct" != no && 13091 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13092 # have to relink, otherwise we might link with an installed library 13093 # when we should be linking with a yet-to-be-installed one 13094 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 13095 test "$hardcode_minus_L" != no; then 13096 # Linking always hardcodes the temporary library directory. 13097 hardcode_action=relink 13098 else 13099 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13100 hardcode_action=immediate 13101 fi 13102else 13103 # We cannot hardcode anything, or else we can only hardcode existing 13104 # directories. 13105 hardcode_action=unsupported 13106fi 13107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13108$as_echo "$hardcode_action" >&6; } 13109 13110if test "$hardcode_action" = relink || 13111 test "$inherit_rpath" = yes; then 13112 # Fast installation is not supported 13113 enable_fast_install=no 13114elif test "$shlibpath_overrides_runpath" = yes || 13115 test "$enable_shared" = no; then 13116 # Fast installation is not necessary 13117 enable_fast_install=needless 13118fi 13119 13120 13121 13122 13123 13124 13125 if test "x$enable_dlopen" != xyes; then 13126 enable_dlopen=unknown 13127 enable_dlopen_self=unknown 13128 enable_dlopen_self_static=unknown 13129else 13130 lt_cv_dlopen=no 13131 lt_cv_dlopen_libs= 13132 13133 case $host_os in 13134 beos*) 13135 lt_cv_dlopen="load_add_on" 13136 lt_cv_dlopen_libs= 13137 lt_cv_dlopen_self=yes 13138 ;; 13139 13140 mingw* | pw32* | cegcc*) 13141 lt_cv_dlopen="LoadLibrary" 13142 lt_cv_dlopen_libs= 13143 ;; 13144 13145 cygwin*) 13146 lt_cv_dlopen="dlopen" 13147 lt_cv_dlopen_libs= 13148 ;; 13149 13150 darwin*) 13151 # if libdl is installed we need to link against it 13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13153$as_echo_n "checking for dlopen in -ldl... " >&6; } 13154if ${ac_cv_lib_dl_dlopen+:} false; then : 13155 $as_echo_n "(cached) " >&6 13156else 13157 ac_check_lib_save_LIBS=$LIBS 13158LIBS="-ldl $LIBS" 13159cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13160/* end confdefs.h. */ 13161 13162/* Override any GCC internal prototype to avoid an error. 13163 Use char because int might match the return type of a GCC 13164 builtin and then its argument prototype would still apply. */ 13165#ifdef __cplusplus 13166extern "C" 13167#endif 13168char dlopen (); 13169int 13170main () 13171{ 13172return dlopen (); 13173 ; 13174 return 0; 13175} 13176_ACEOF 13177if ac_fn_c_try_link "$LINENO"; then : 13178 ac_cv_lib_dl_dlopen=yes 13179else 13180 ac_cv_lib_dl_dlopen=no 13181fi 13182rm -f core conftest.err conftest.$ac_objext \ 13183 conftest$ac_exeext conftest.$ac_ext 13184LIBS=$ac_check_lib_save_LIBS 13185fi 13186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13187$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13188if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13189 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13190else 13191 13192 lt_cv_dlopen="dyld" 13193 lt_cv_dlopen_libs= 13194 lt_cv_dlopen_self=yes 13195 13196fi 13197 13198 ;; 13199 13200 *) 13201 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13202if test "x$ac_cv_func_shl_load" = xyes; then : 13203 lt_cv_dlopen="shl_load" 13204else 13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13206$as_echo_n "checking for shl_load in -ldld... " >&6; } 13207if ${ac_cv_lib_dld_shl_load+:} false; then : 13208 $as_echo_n "(cached) " >&6 13209else 13210 ac_check_lib_save_LIBS=$LIBS 13211LIBS="-ldld $LIBS" 13212cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13213/* end confdefs.h. */ 13214 13215/* Override any GCC internal prototype to avoid an error. 13216 Use char because int might match the return type of a GCC 13217 builtin and then its argument prototype would still apply. */ 13218#ifdef __cplusplus 13219extern "C" 13220#endif 13221char shl_load (); 13222int 13223main () 13224{ 13225return shl_load (); 13226 ; 13227 return 0; 13228} 13229_ACEOF 13230if ac_fn_c_try_link "$LINENO"; then : 13231 ac_cv_lib_dld_shl_load=yes 13232else 13233 ac_cv_lib_dld_shl_load=no 13234fi 13235rm -f core conftest.err conftest.$ac_objext \ 13236 conftest$ac_exeext conftest.$ac_ext 13237LIBS=$ac_check_lib_save_LIBS 13238fi 13239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13240$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13241if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13242 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 13243else 13244 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13245if test "x$ac_cv_func_dlopen" = xyes; then : 13246 lt_cv_dlopen="dlopen" 13247else 13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13249$as_echo_n "checking for dlopen in -ldl... " >&6; } 13250if ${ac_cv_lib_dl_dlopen+:} false; then : 13251 $as_echo_n "(cached) " >&6 13252else 13253 ac_check_lib_save_LIBS=$LIBS 13254LIBS="-ldl $LIBS" 13255cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13256/* end confdefs.h. */ 13257 13258/* Override any GCC internal prototype to avoid an error. 13259 Use char because int might match the return type of a GCC 13260 builtin and then its argument prototype would still apply. */ 13261#ifdef __cplusplus 13262extern "C" 13263#endif 13264char dlopen (); 13265int 13266main () 13267{ 13268return dlopen (); 13269 ; 13270 return 0; 13271} 13272_ACEOF 13273if ac_fn_c_try_link "$LINENO"; then : 13274 ac_cv_lib_dl_dlopen=yes 13275else 13276 ac_cv_lib_dl_dlopen=no 13277fi 13278rm -f core conftest.err conftest.$ac_objext \ 13279 conftest$ac_exeext conftest.$ac_ext 13280LIBS=$ac_check_lib_save_LIBS 13281fi 13282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13283$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13284if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13285 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13286else 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13288$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13289if ${ac_cv_lib_svld_dlopen+:} false; then : 13290 $as_echo_n "(cached) " >&6 13291else 13292 ac_check_lib_save_LIBS=$LIBS 13293LIBS="-lsvld $LIBS" 13294cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13295/* end confdefs.h. */ 13296 13297/* Override any GCC internal prototype to avoid an error. 13298 Use char because int might match the return type of a GCC 13299 builtin and then its argument prototype would still apply. */ 13300#ifdef __cplusplus 13301extern "C" 13302#endif 13303char dlopen (); 13304int 13305main () 13306{ 13307return dlopen (); 13308 ; 13309 return 0; 13310} 13311_ACEOF 13312if ac_fn_c_try_link "$LINENO"; then : 13313 ac_cv_lib_svld_dlopen=yes 13314else 13315 ac_cv_lib_svld_dlopen=no 13316fi 13317rm -f core conftest.err conftest.$ac_objext \ 13318 conftest$ac_exeext conftest.$ac_ext 13319LIBS=$ac_check_lib_save_LIBS 13320fi 13321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13322$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13323if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13324 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13325else 13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13327$as_echo_n "checking for dld_link in -ldld... " >&6; } 13328if ${ac_cv_lib_dld_dld_link+:} false; then : 13329 $as_echo_n "(cached) " >&6 13330else 13331 ac_check_lib_save_LIBS=$LIBS 13332LIBS="-ldld $LIBS" 13333cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13334/* end confdefs.h. */ 13335 13336/* Override any GCC internal prototype to avoid an error. 13337 Use char because int might match the return type of a GCC 13338 builtin and then its argument prototype would still apply. */ 13339#ifdef __cplusplus 13340extern "C" 13341#endif 13342char dld_link (); 13343int 13344main () 13345{ 13346return dld_link (); 13347 ; 13348 return 0; 13349} 13350_ACEOF 13351if ac_fn_c_try_link "$LINENO"; then : 13352 ac_cv_lib_dld_dld_link=yes 13353else 13354 ac_cv_lib_dld_dld_link=no 13355fi 13356rm -f core conftest.err conftest.$ac_objext \ 13357 conftest$ac_exeext conftest.$ac_ext 13358LIBS=$ac_check_lib_save_LIBS 13359fi 13360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13361$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13362if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13363 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 13364fi 13365 13366 13367fi 13368 13369 13370fi 13371 13372 13373fi 13374 13375 13376fi 13377 13378 13379fi 13380 13381 ;; 13382 esac 13383 13384 if test "x$lt_cv_dlopen" != xno; then 13385 enable_dlopen=yes 13386 else 13387 enable_dlopen=no 13388 fi 13389 13390 case $lt_cv_dlopen in 13391 dlopen) 13392 save_CPPFLAGS="$CPPFLAGS" 13393 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13394 13395 save_LDFLAGS="$LDFLAGS" 13396 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13397 13398 save_LIBS="$LIBS" 13399 LIBS="$lt_cv_dlopen_libs $LIBS" 13400 13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13402$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13403if ${lt_cv_dlopen_self+:} false; then : 13404 $as_echo_n "(cached) " >&6 13405else 13406 if test "$cross_compiling" = yes; then : 13407 lt_cv_dlopen_self=cross 13408else 13409 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13410 lt_status=$lt_dlunknown 13411 cat > conftest.$ac_ext <<_LT_EOF 13412#line $LINENO "configure" 13413#include "confdefs.h" 13414 13415#if HAVE_DLFCN_H 13416#include <dlfcn.h> 13417#endif 13418 13419#include <stdio.h> 13420 13421#ifdef RTLD_GLOBAL 13422# define LT_DLGLOBAL RTLD_GLOBAL 13423#else 13424# ifdef DL_GLOBAL 13425# define LT_DLGLOBAL DL_GLOBAL 13426# else 13427# define LT_DLGLOBAL 0 13428# endif 13429#endif 13430 13431/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13432 find out it does not work in some platform. */ 13433#ifndef LT_DLLAZY_OR_NOW 13434# ifdef RTLD_LAZY 13435# define LT_DLLAZY_OR_NOW RTLD_LAZY 13436# else 13437# ifdef DL_LAZY 13438# define LT_DLLAZY_OR_NOW DL_LAZY 13439# else 13440# ifdef RTLD_NOW 13441# define LT_DLLAZY_OR_NOW RTLD_NOW 13442# else 13443# ifdef DL_NOW 13444# define LT_DLLAZY_OR_NOW DL_NOW 13445# else 13446# define LT_DLLAZY_OR_NOW 0 13447# endif 13448# endif 13449# endif 13450# endif 13451#endif 13452 13453/* When -fvisbility=hidden is used, assume the code has been annotated 13454 correspondingly for the symbols needed. */ 13455#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13456int fnord () __attribute__((visibility("default"))); 13457#endif 13458 13459int fnord () { return 42; } 13460int main () 13461{ 13462 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13463 int status = $lt_dlunknown; 13464 13465 if (self) 13466 { 13467 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13468 else 13469 { 13470 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13471 else puts (dlerror ()); 13472 } 13473 /* dlclose (self); */ 13474 } 13475 else 13476 puts (dlerror ()); 13477 13478 return status; 13479} 13480_LT_EOF 13481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13482 (eval $ac_link) 2>&5 13483 ac_status=$? 13484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13485 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13486 (./conftest; exit; ) >&5 2>/dev/null 13487 lt_status=$? 13488 case x$lt_status in 13489 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13490 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13491 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13492 esac 13493 else : 13494 # compilation failed 13495 lt_cv_dlopen_self=no 13496 fi 13497fi 13498rm -fr conftest* 13499 13500 13501fi 13502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13503$as_echo "$lt_cv_dlopen_self" >&6; } 13504 13505 if test "x$lt_cv_dlopen_self" = xyes; then 13506 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13508$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13509if ${lt_cv_dlopen_self_static+:} false; then : 13510 $as_echo_n "(cached) " >&6 13511else 13512 if test "$cross_compiling" = yes; then : 13513 lt_cv_dlopen_self_static=cross 13514else 13515 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13516 lt_status=$lt_dlunknown 13517 cat > conftest.$ac_ext <<_LT_EOF 13518#line $LINENO "configure" 13519#include "confdefs.h" 13520 13521#if HAVE_DLFCN_H 13522#include <dlfcn.h> 13523#endif 13524 13525#include <stdio.h> 13526 13527#ifdef RTLD_GLOBAL 13528# define LT_DLGLOBAL RTLD_GLOBAL 13529#else 13530# ifdef DL_GLOBAL 13531# define LT_DLGLOBAL DL_GLOBAL 13532# else 13533# define LT_DLGLOBAL 0 13534# endif 13535#endif 13536 13537/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13538 find out it does not work in some platform. */ 13539#ifndef LT_DLLAZY_OR_NOW 13540# ifdef RTLD_LAZY 13541# define LT_DLLAZY_OR_NOW RTLD_LAZY 13542# else 13543# ifdef DL_LAZY 13544# define LT_DLLAZY_OR_NOW DL_LAZY 13545# else 13546# ifdef RTLD_NOW 13547# define LT_DLLAZY_OR_NOW RTLD_NOW 13548# else 13549# ifdef DL_NOW 13550# define LT_DLLAZY_OR_NOW DL_NOW 13551# else 13552# define LT_DLLAZY_OR_NOW 0 13553# endif 13554# endif 13555# endif 13556# endif 13557#endif 13558 13559/* When -fvisbility=hidden is used, assume the code has been annotated 13560 correspondingly for the symbols needed. */ 13561#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13562int fnord () __attribute__((visibility("default"))); 13563#endif 13564 13565int fnord () { return 42; } 13566int main () 13567{ 13568 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13569 int status = $lt_dlunknown; 13570 13571 if (self) 13572 { 13573 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13574 else 13575 { 13576 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13577 else puts (dlerror ()); 13578 } 13579 /* dlclose (self); */ 13580 } 13581 else 13582 puts (dlerror ()); 13583 13584 return status; 13585} 13586_LT_EOF 13587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13588 (eval $ac_link) 2>&5 13589 ac_status=$? 13590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13591 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13592 (./conftest; exit; ) >&5 2>/dev/null 13593 lt_status=$? 13594 case x$lt_status in 13595 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13596 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13597 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13598 esac 13599 else : 13600 # compilation failed 13601 lt_cv_dlopen_self_static=no 13602 fi 13603fi 13604rm -fr conftest* 13605 13606 13607fi 13608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13609$as_echo "$lt_cv_dlopen_self_static" >&6; } 13610 fi 13611 13612 CPPFLAGS="$save_CPPFLAGS" 13613 LDFLAGS="$save_LDFLAGS" 13614 LIBS="$save_LIBS" 13615 ;; 13616 esac 13617 13618 case $lt_cv_dlopen_self in 13619 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13620 *) enable_dlopen_self=unknown ;; 13621 esac 13622 13623 case $lt_cv_dlopen_self_static in 13624 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13625 *) enable_dlopen_self_static=unknown ;; 13626 esac 13627fi 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645striplib= 13646old_striplib= 13647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13648$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13649if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13650 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13651 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13653$as_echo "yes" >&6; } 13654else 13655# FIXME - insert some real tests, host_os isn't really good enough 13656 case $host_os in 13657 darwin*) 13658 if test -n "$STRIP" ; then 13659 striplib="$STRIP -x" 13660 old_striplib="$STRIP -S" 13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13662$as_echo "yes" >&6; } 13663 else 13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13665$as_echo "no" >&6; } 13666 fi 13667 ;; 13668 *) 13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13670$as_echo "no" >&6; } 13671 ;; 13672 esac 13673fi 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 # Report which library types will actually be built 13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13688$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13690$as_echo "$can_build_shared" >&6; } 13691 13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13693$as_echo_n "checking whether to build shared libraries... " >&6; } 13694 test "$can_build_shared" = "no" && enable_shared=no 13695 13696 # On AIX, shared libraries and static libraries use the same namespace, and 13697 # are all built from PIC. 13698 case $host_os in 13699 aix3*) 13700 test "$enable_shared" = yes && enable_static=no 13701 if test -n "$RANLIB"; then 13702 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13703 postinstall_cmds='$RANLIB $lib' 13704 fi 13705 ;; 13706 13707 aix[4-9]*) 13708 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13709 test "$enable_shared" = yes && enable_static=no 13710 fi 13711 ;; 13712 esac 13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13714$as_echo "$enable_shared" >&6; } 13715 13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13717$as_echo_n "checking whether to build static libraries... " >&6; } 13718 # Make sure either enable_shared or enable_static is yes. 13719 test "$enable_shared" = yes || enable_static=yes 13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13721$as_echo "$enable_static" >&6; } 13722 13723 13724 13725 13726fi 13727ac_ext=c 13728ac_cpp='$CPP $CPPFLAGS' 13729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13731ac_compiler_gnu=$ac_cv_c_compiler_gnu 13732 13733CC="$lt_save_CC" 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 ac_config_commands="$ac_config_commands libtool" 13748 13749 13750 13751 13752# Only expand once: 13753 13754 13755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 13756$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 13757set x ${MAKE-make} 13758ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 13759if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 13760 $as_echo_n "(cached) " >&6 13761else 13762 cat >conftest.make <<\_ACEOF 13763SHELL = /bin/sh 13764all: 13765 @echo '@@@%%%=$(MAKE)=@@@%%%' 13766_ACEOF 13767# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 13768case `${MAKE-make} -f conftest.make 2>/dev/null` in 13769 *@@@%%%=?*=@@@%%%*) 13770 eval ac_cv_prog_make_${ac_make}_set=yes;; 13771 *) 13772 eval ac_cv_prog_make_${ac_make}_set=no;; 13773esac 13774rm -f conftest.make 13775fi 13776if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13778$as_echo "yes" >&6; } 13779 SET_MAKE= 13780else 13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13782$as_echo "no" >&6; } 13783 SET_MAKE="MAKE=${MAKE-make}" 13784fi 13785 13786 13787 13788 13789 13790 13791 13792 13793if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13794 if test -n "$ac_tool_prefix"; then 13795 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13796set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13798$as_echo_n "checking for $ac_word... " >&6; } 13799if ${ac_cv_path_PKG_CONFIG+:} false; then : 13800 $as_echo_n "(cached) " >&6 13801else 13802 case $PKG_CONFIG in 13803 [\\/]* | ?:[\\/]*) 13804 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13805 ;; 13806 *) 13807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13808for as_dir in $PATH 13809do 13810 IFS=$as_save_IFS 13811 test -z "$as_dir" && as_dir=. 13812 for ac_exec_ext in '' $ac_executable_extensions; do 13813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13814 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13816 break 2 13817 fi 13818done 13819 done 13820IFS=$as_save_IFS 13821 13822 ;; 13823esac 13824fi 13825PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13826if test -n "$PKG_CONFIG"; then 13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13828$as_echo "$PKG_CONFIG" >&6; } 13829else 13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13831$as_echo "no" >&6; } 13832fi 13833 13834 13835fi 13836if test -z "$ac_cv_path_PKG_CONFIG"; then 13837 ac_pt_PKG_CONFIG=$PKG_CONFIG 13838 # Extract the first word of "pkg-config", so it can be a program name with args. 13839set dummy pkg-config; ac_word=$2 13840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13841$as_echo_n "checking for $ac_word... " >&6; } 13842if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 13843 $as_echo_n "(cached) " >&6 13844else 13845 case $ac_pt_PKG_CONFIG in 13846 [\\/]* | ?:[\\/]*) 13847 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13848 ;; 13849 *) 13850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13851for as_dir in $PATH 13852do 13853 IFS=$as_save_IFS 13854 test -z "$as_dir" && as_dir=. 13855 for ac_exec_ext in '' $ac_executable_extensions; do 13856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13857 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13859 break 2 13860 fi 13861done 13862 done 13863IFS=$as_save_IFS 13864 13865 ;; 13866esac 13867fi 13868ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13869if test -n "$ac_pt_PKG_CONFIG"; then 13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13871$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13872else 13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13874$as_echo "no" >&6; } 13875fi 13876 13877 if test "x$ac_pt_PKG_CONFIG" = x; then 13878 PKG_CONFIG="" 13879 else 13880 case $cross_compiling:$ac_tool_warned in 13881yes:) 13882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13884ac_tool_warned=yes ;; 13885esac 13886 PKG_CONFIG=$ac_pt_PKG_CONFIG 13887 fi 13888else 13889 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13890fi 13891 13892fi 13893if test -n "$PKG_CONFIG"; then 13894 _pkg_min_version=0.9.0 13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13896$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13897 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13899$as_echo "yes" >&6; } 13900 else 13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13902$as_echo "no" >&6; } 13903 PKG_CONFIG="" 13904 fi 13905fi 13906for ac_prog in flex lex 13907do 13908 # Extract the first word of "$ac_prog", so it can be a program name with args. 13909set dummy $ac_prog; ac_word=$2 13910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13911$as_echo_n "checking for $ac_word... " >&6; } 13912if ${ac_cv_prog_LEX+:} false; then : 13913 $as_echo_n "(cached) " >&6 13914else 13915 if test -n "$LEX"; then 13916 ac_cv_prog_LEX="$LEX" # Let the user override the test. 13917else 13918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13919for as_dir in $PATH 13920do 13921 IFS=$as_save_IFS 13922 test -z "$as_dir" && as_dir=. 13923 for ac_exec_ext in '' $ac_executable_extensions; do 13924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13925 ac_cv_prog_LEX="$ac_prog" 13926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13927 break 2 13928 fi 13929done 13930 done 13931IFS=$as_save_IFS 13932 13933fi 13934fi 13935LEX=$ac_cv_prog_LEX 13936if test -n "$LEX"; then 13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 13938$as_echo "$LEX" >&6; } 13939else 13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13941$as_echo "no" >&6; } 13942fi 13943 13944 13945 test -n "$LEX" && break 13946done 13947test -n "$LEX" || LEX=":" 13948 13949if test "x$LEX" != "x:"; then 13950 cat >conftest.l <<_ACEOF 13951%% 13952a { ECHO; } 13953b { REJECT; } 13954c { yymore (); } 13955d { yyless (1); } 13956e { yyless (input () != 0); } 13957f { unput (yytext[0]); } 13958. { BEGIN INITIAL; } 13959%% 13960#ifdef YYTEXT_POINTER 13961extern char *yytext; 13962#endif 13963int 13964main (void) 13965{ 13966 return ! yylex () + ! yywrap (); 13967} 13968_ACEOF 13969{ { ac_try="$LEX conftest.l" 13970case "(($ac_try" in 13971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13972 *) ac_try_echo=$ac_try;; 13973esac 13974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13975$as_echo "$ac_try_echo"; } >&5 13976 (eval "$LEX conftest.l") 2>&5 13977 ac_status=$? 13978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13979 test $ac_status = 0; } 13980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 13981$as_echo_n "checking lex output file root... " >&6; } 13982if ${ac_cv_prog_lex_root+:} false; then : 13983 $as_echo_n "(cached) " >&6 13984else 13985 13986if test -f lex.yy.c; then 13987 ac_cv_prog_lex_root=lex.yy 13988elif test -f lexyy.c; then 13989 ac_cv_prog_lex_root=lexyy 13990else 13991 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 13992fi 13993fi 13994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 13995$as_echo "$ac_cv_prog_lex_root" >&6; } 13996LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 13997 13998if test -z "${LEXLIB+set}"; then 13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 14000$as_echo_n "checking lex library... " >&6; } 14001if ${ac_cv_lib_lex+:} false; then : 14002 $as_echo_n "(cached) " >&6 14003else 14004 14005 ac_save_LIBS=$LIBS 14006 ac_cv_lib_lex='none needed' 14007 for ac_lib in '' -lfl -ll; do 14008 LIBS="$ac_lib $ac_save_LIBS" 14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14010/* end confdefs.h. */ 14011`cat $LEX_OUTPUT_ROOT.c` 14012_ACEOF 14013if ac_fn_c_try_link "$LINENO"; then : 14014 ac_cv_lib_lex=$ac_lib 14015fi 14016rm -f core conftest.err conftest.$ac_objext \ 14017 conftest$ac_exeext conftest.$ac_ext 14018 test "$ac_cv_lib_lex" != 'none needed' && break 14019 done 14020 LIBS=$ac_save_LIBS 14021 14022fi 14023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 14024$as_echo "$ac_cv_lib_lex" >&6; } 14025 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 14026fi 14027 14028 14029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 14030$as_echo_n "checking whether yytext is a pointer... " >&6; } 14031if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 14032 $as_echo_n "(cached) " >&6 14033else 14034 # POSIX says lex can declare yytext either as a pointer or an array; the 14035# default is implementation-dependent. Figure out which it is, since 14036# not all implementations provide the %pointer and %array declarations. 14037ac_cv_prog_lex_yytext_pointer=no 14038ac_save_LIBS=$LIBS 14039LIBS="$LEXLIB $ac_save_LIBS" 14040cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14041/* end confdefs.h. */ 14042 14043 #define YYTEXT_POINTER 1 14044`cat $LEX_OUTPUT_ROOT.c` 14045_ACEOF 14046if ac_fn_c_try_link "$LINENO"; then : 14047 ac_cv_prog_lex_yytext_pointer=yes 14048fi 14049rm -f core conftest.err conftest.$ac_objext \ 14050 conftest$ac_exeext conftest.$ac_ext 14051LIBS=$ac_save_LIBS 14052 14053fi 14054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 14055$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 14056if test $ac_cv_prog_lex_yytext_pointer = yes; then 14057 14058$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 14059 14060fi 14061rm -f conftest.l $LEX_OUTPUT_ROOT.c 14062 14063fi 14064for ac_prog in 'bison -y' byacc 14065do 14066 # Extract the first word of "$ac_prog", so it can be a program name with args. 14067set dummy $ac_prog; ac_word=$2 14068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14069$as_echo_n "checking for $ac_word... " >&6; } 14070if ${ac_cv_prog_YACC+:} false; then : 14071 $as_echo_n "(cached) " >&6 14072else 14073 if test -n "$YACC"; then 14074 ac_cv_prog_YACC="$YACC" # Let the user override the test. 14075else 14076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14077for as_dir in $PATH 14078do 14079 IFS=$as_save_IFS 14080 test -z "$as_dir" && as_dir=. 14081 for ac_exec_ext in '' $ac_executable_extensions; do 14082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14083 ac_cv_prog_YACC="$ac_prog" 14084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14085 break 2 14086 fi 14087done 14088 done 14089IFS=$as_save_IFS 14090 14091fi 14092fi 14093YACC=$ac_cv_prog_YACC 14094if test -n "$YACC"; then 14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 14096$as_echo "$YACC" >&6; } 14097else 14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14099$as_echo "no" >&6; } 14100fi 14101 14102 14103 test -n "$YACC" && break 14104done 14105test -n "$YACC" || YACC="yacc" 14106 14107# Check whether --enable-largefile was given. 14108if test "${enable_largefile+set}" = set; then : 14109 enableval=$enable_largefile; 14110fi 14111 14112if test "$enable_largefile" != no; then 14113 14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 14115$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 14116if ${ac_cv_sys_largefile_CC+:} false; then : 14117 $as_echo_n "(cached) " >&6 14118else 14119 ac_cv_sys_largefile_CC=no 14120 if test "$GCC" != yes; then 14121 ac_save_CC=$CC 14122 while :; do 14123 # IRIX 6.2 and later do not support large files by default, 14124 # so use the C compiler's -n32 option if that helps. 14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14126/* end confdefs.h. */ 14127#include <sys/types.h> 14128 /* Check that off_t can represent 2**63 - 1 correctly. 14129 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14130 since some C++ compilers masquerading as C compilers 14131 incorrectly reject 9223372036854775807. */ 14132#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14133 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14134 && LARGE_OFF_T % 2147483647 == 1) 14135 ? 1 : -1]; 14136int 14137main () 14138{ 14139 14140 ; 14141 return 0; 14142} 14143_ACEOF 14144 if ac_fn_c_try_compile "$LINENO"; then : 14145 break 14146fi 14147rm -f core conftest.err conftest.$ac_objext 14148 CC="$CC -n32" 14149 if ac_fn_c_try_compile "$LINENO"; then : 14150 ac_cv_sys_largefile_CC=' -n32'; break 14151fi 14152rm -f core conftest.err conftest.$ac_objext 14153 break 14154 done 14155 CC=$ac_save_CC 14156 rm -f conftest.$ac_ext 14157 fi 14158fi 14159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 14160$as_echo "$ac_cv_sys_largefile_CC" >&6; } 14161 if test "$ac_cv_sys_largefile_CC" != no; then 14162 CC=$CC$ac_cv_sys_largefile_CC 14163 fi 14164 14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 14166$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 14167if ${ac_cv_sys_file_offset_bits+:} false; then : 14168 $as_echo_n "(cached) " >&6 14169else 14170 while :; do 14171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14172/* end confdefs.h. */ 14173#include <sys/types.h> 14174 /* Check that off_t can represent 2**63 - 1 correctly. 14175 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14176 since some C++ compilers masquerading as C compilers 14177 incorrectly reject 9223372036854775807. */ 14178#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14179 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14180 && LARGE_OFF_T % 2147483647 == 1) 14181 ? 1 : -1]; 14182int 14183main () 14184{ 14185 14186 ; 14187 return 0; 14188} 14189_ACEOF 14190if ac_fn_c_try_compile "$LINENO"; then : 14191 ac_cv_sys_file_offset_bits=no; break 14192fi 14193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14195/* end confdefs.h. */ 14196#define _FILE_OFFSET_BITS 64 14197#include <sys/types.h> 14198 /* Check that off_t can represent 2**63 - 1 correctly. 14199 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14200 since some C++ compilers masquerading as C compilers 14201 incorrectly reject 9223372036854775807. */ 14202#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14203 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14204 && LARGE_OFF_T % 2147483647 == 1) 14205 ? 1 : -1]; 14206int 14207main () 14208{ 14209 14210 ; 14211 return 0; 14212} 14213_ACEOF 14214if ac_fn_c_try_compile "$LINENO"; then : 14215 ac_cv_sys_file_offset_bits=64; break 14216fi 14217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14218 ac_cv_sys_file_offset_bits=unknown 14219 break 14220done 14221fi 14222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 14223$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 14224case $ac_cv_sys_file_offset_bits in #( 14225 no | unknown) ;; 14226 *) 14227cat >>confdefs.h <<_ACEOF 14228#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 14229_ACEOF 14230;; 14231esac 14232rm -rf conftest* 14233 if test $ac_cv_sys_file_offset_bits = unknown; then 14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 14235$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 14236if ${ac_cv_sys_large_files+:} false; then : 14237 $as_echo_n "(cached) " >&6 14238else 14239 while :; do 14240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14241/* end confdefs.h. */ 14242#include <sys/types.h> 14243 /* Check that off_t can represent 2**63 - 1 correctly. 14244 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14245 since some C++ compilers masquerading as C compilers 14246 incorrectly reject 9223372036854775807. */ 14247#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14248 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14249 && LARGE_OFF_T % 2147483647 == 1) 14250 ? 1 : -1]; 14251int 14252main () 14253{ 14254 14255 ; 14256 return 0; 14257} 14258_ACEOF 14259if ac_fn_c_try_compile "$LINENO"; then : 14260 ac_cv_sys_large_files=no; break 14261fi 14262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14264/* end confdefs.h. */ 14265#define _LARGE_FILES 1 14266#include <sys/types.h> 14267 /* Check that off_t can represent 2**63 - 1 correctly. 14268 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14269 since some C++ compilers masquerading as C compilers 14270 incorrectly reject 9223372036854775807. */ 14271#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14272 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14273 && LARGE_OFF_T % 2147483647 == 1) 14274 ? 1 : -1]; 14275int 14276main () 14277{ 14278 14279 ; 14280 return 0; 14281} 14282_ACEOF 14283if ac_fn_c_try_compile "$LINENO"; then : 14284 ac_cv_sys_large_files=1; break 14285fi 14286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14287 ac_cv_sys_large_files=unknown 14288 break 14289done 14290fi 14291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 14292$as_echo "$ac_cv_sys_large_files" >&6; } 14293case $ac_cv_sys_large_files in #( 14294 no | unknown) ;; 14295 *) 14296cat >>confdefs.h <<_ACEOF 14297#define _LARGE_FILES $ac_cv_sys_large_files 14298_ACEOF 14299;; 14300esac 14301rm -rf conftest* 14302 fi 14303fi 14304 14305 14306 14307for ac_prog in cpp 14308do 14309 # Extract the first word of "$ac_prog", so it can be a program name with args. 14310set dummy $ac_prog; ac_word=$2 14311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14312$as_echo_n "checking for $ac_word... " >&6; } 14313if ${ac_cv_path_RAWCPP+:} false; then : 14314 $as_echo_n "(cached) " >&6 14315else 14316 case $RAWCPP in 14317 [\\/]* | ?:[\\/]*) 14318 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 14319 ;; 14320 *) 14321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14322as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 14323for as_dir in $as_dummy 14324do 14325 IFS=$as_save_IFS 14326 test -z "$as_dir" && as_dir=. 14327 for ac_exec_ext in '' $ac_executable_extensions; do 14328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14329 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 14330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14331 break 2 14332 fi 14333done 14334 done 14335IFS=$as_save_IFS 14336 14337 ;; 14338esac 14339fi 14340RAWCPP=$ac_cv_path_RAWCPP 14341if test -n "$RAWCPP"; then 14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 14343$as_echo "$RAWCPP" >&6; } 14344else 14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14346$as_echo "no" >&6; } 14347fi 14348 14349 14350 test -n "$RAWCPP" && break 14351done 14352test -n "$RAWCPP" || RAWCPP="${CPP}" 14353 14354 14355# Check for flag to avoid builtin definitions - assumes unix is predefined, 14356# which is not the best choice for supporting other OS'es, but covers most 14357# of the ones we need for now. 14358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 14359$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 14360cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14361/* end confdefs.h. */ 14362Does cpp redefine unix ? 14363 14364_ACEOF 14365if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14367$as_echo "no" >&6; } 14368else 14369 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 14370 RAWCPPFLAGS=-undef 14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14372$as_echo "yes" >&6; } 14373 # under Cygwin unix is still defined even with -undef 14374 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 14375 RAWCPPFLAGS="-undef -ansi" 14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 14377$as_echo "yes, with -ansi" >&6; } 14378 else 14379 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 14380 fi 14381fi 14382rm -f conftest.$ac_ext 14383 14384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 14385$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 14386cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14387/* end confdefs.h. */ 14388Does cpp preserve "whitespace"? 14389 14390_ACEOF 14391if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14393$as_echo "no" >&6; } 14394else 14395 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 14396 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14398$as_echo "yes" >&6; } 14399 else 14400 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 14401 fi 14402fi 14403rm -f conftest.$ac_ext 14404 14405 14406 14407# Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow 14408# easier overrides at build time. 14409XSERVER_CFLAGS='$(CWARNFLAGS)' 14410 14411 14412# Check whether --with-dtrace was given. 14413if test "${with_dtrace+set}" = set; then : 14414 withval=$with_dtrace; WDTRACE=$withval 14415else 14416 WDTRACE=auto 14417fi 14418 14419if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then 14420 # Extract the first word of "dtrace", so it can be a program name with args. 14421set dummy dtrace; ac_word=$2 14422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14423$as_echo_n "checking for $ac_word... " >&6; } 14424if ${ac_cv_path_DTRACE+:} false; then : 14425 $as_echo_n "(cached) " >&6 14426else 14427 case $DTRACE in 14428 [\\/]* | ?:[\\/]*) 14429 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 14430 ;; 14431 *) 14432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14433as_dummy="$PATH:/usr/sbin" 14434for as_dir in $as_dummy 14435do 14436 IFS=$as_save_IFS 14437 test -z "$as_dir" && as_dir=. 14438 for ac_exec_ext in '' $ac_executable_extensions; do 14439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14440 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 14441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14442 break 2 14443 fi 14444done 14445 done 14446IFS=$as_save_IFS 14447 14448 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found" 14449 ;; 14450esac 14451fi 14452DTRACE=$ac_cv_path_DTRACE 14453if test -n "$DTRACE"; then 14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 14455$as_echo "$DTRACE" >&6; } 14456else 14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14458$as_echo "no" >&6; } 14459fi 14460 14461 14462 if test "x$DTRACE" = "xnot_found" ; then 14463 if test "x$WDTRACE" = "xyes" ; then 14464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14466as_fn_error $? "dtrace requested but not found 14467See \`config.log' for more details" "$LINENO" 5; } 14468 fi 14469 WDTRACE="no" 14470 else 14471 ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 14472if test "x$ac_cv_header_sys_sdt_h" = xyes; then : 14473 HAS_SDT_H="yes" 14474else 14475 HAS_SDT_H="no" 14476fi 14477 14478 14479 if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then 14480 WDTRACE="no" 14481 fi 14482 fi 14483fi 14484if test "x$WDTRACE" != "xno" ; then 14485 14486$as_echo "#define XSERVER_DTRACE 1" >>confdefs.h 14487 14488 14489# Solaris/OpenSolaris require dtrace -G to build dtrace probe information into 14490# object files, and require linking with those as relocatable objects, not .a 14491# archives. MacOS X handles all this in the normal compiler toolchain, and on 14492# some releases (like Tiger), will error out on dtrace -G. For now, other 14493# platforms with Dtrace ports are assumed to support -G (the FreeBSD and Linux 14494# ports appear to, based on my web searches, but have not yet been tested). 14495 case $host_os in 14496 darwin*) SPECIAL_DTRACE_OBJECTS=no ;; 14497 *) SPECIAL_DTRACE_OBJECTS=yes ;; 14498 esac 14499fi 14500 if test "x$WDTRACE" != "xno"; then 14501 XSERVER_DTRACE_TRUE= 14502 XSERVER_DTRACE_FALSE='#' 14503else 14504 XSERVER_DTRACE_TRUE='#' 14505 XSERVER_DTRACE_FALSE= 14506fi 14507 14508 if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes"; then 14509 SPECIAL_DTRACE_OBJECTS_TRUE= 14510 SPECIAL_DTRACE_OBJECTS_FALSE='#' 14511else 14512 SPECIAL_DTRACE_OBJECTS_TRUE='#' 14513 SPECIAL_DTRACE_OBJECTS_FALSE= 14514fi 14515 14516 14517ac_header_dirent=no 14518for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 14519 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 14520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 14521$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 14522if eval \${$as_ac_Header+:} false; then : 14523 $as_echo_n "(cached) " >&6 14524else 14525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14526/* end confdefs.h. */ 14527#include <sys/types.h> 14528#include <$ac_hdr> 14529 14530int 14531main () 14532{ 14533if ((DIR *) 0) 14534return 0; 14535 ; 14536 return 0; 14537} 14538_ACEOF 14539if ac_fn_c_try_compile "$LINENO"; then : 14540 eval "$as_ac_Header=yes" 14541else 14542 eval "$as_ac_Header=no" 14543fi 14544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14545fi 14546eval ac_res=\$$as_ac_Header 14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14548$as_echo "$ac_res" >&6; } 14549if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14550 cat >>confdefs.h <<_ACEOF 14551#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 14552_ACEOF 14553 14554ac_header_dirent=$ac_hdr; break 14555fi 14556 14557done 14558# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 14559if test $ac_header_dirent = dirent.h; then 14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 14561$as_echo_n "checking for library containing opendir... " >&6; } 14562if ${ac_cv_search_opendir+:} false; then : 14563 $as_echo_n "(cached) " >&6 14564else 14565 ac_func_search_save_LIBS=$LIBS 14566cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14567/* end confdefs.h. */ 14568 14569/* Override any GCC internal prototype to avoid an error. 14570 Use char because int might match the return type of a GCC 14571 builtin and then its argument prototype would still apply. */ 14572#ifdef __cplusplus 14573extern "C" 14574#endif 14575char opendir (); 14576int 14577main () 14578{ 14579return opendir (); 14580 ; 14581 return 0; 14582} 14583_ACEOF 14584for ac_lib in '' dir; do 14585 if test -z "$ac_lib"; then 14586 ac_res="none required" 14587 else 14588 ac_res=-l$ac_lib 14589 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14590 fi 14591 if ac_fn_c_try_link "$LINENO"; then : 14592 ac_cv_search_opendir=$ac_res 14593fi 14594rm -f core conftest.err conftest.$ac_objext \ 14595 conftest$ac_exeext 14596 if ${ac_cv_search_opendir+:} false; then : 14597 break 14598fi 14599done 14600if ${ac_cv_search_opendir+:} false; then : 14601 14602else 14603 ac_cv_search_opendir=no 14604fi 14605rm conftest.$ac_ext 14606LIBS=$ac_func_search_save_LIBS 14607fi 14608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 14609$as_echo "$ac_cv_search_opendir" >&6; } 14610ac_res=$ac_cv_search_opendir 14611if test "$ac_res" != no; then : 14612 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14613 14614fi 14615 14616else 14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 14618$as_echo_n "checking for library containing opendir... " >&6; } 14619if ${ac_cv_search_opendir+:} false; then : 14620 $as_echo_n "(cached) " >&6 14621else 14622 ac_func_search_save_LIBS=$LIBS 14623cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14624/* end confdefs.h. */ 14625 14626/* Override any GCC internal prototype to avoid an error. 14627 Use char because int might match the return type of a GCC 14628 builtin and then its argument prototype would still apply. */ 14629#ifdef __cplusplus 14630extern "C" 14631#endif 14632char opendir (); 14633int 14634main () 14635{ 14636return opendir (); 14637 ; 14638 return 0; 14639} 14640_ACEOF 14641for ac_lib in '' x; do 14642 if test -z "$ac_lib"; then 14643 ac_res="none required" 14644 else 14645 ac_res=-l$ac_lib 14646 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14647 fi 14648 if ac_fn_c_try_link "$LINENO"; then : 14649 ac_cv_search_opendir=$ac_res 14650fi 14651rm -f core conftest.err conftest.$ac_objext \ 14652 conftest$ac_exeext 14653 if ${ac_cv_search_opendir+:} false; then : 14654 break 14655fi 14656done 14657if ${ac_cv_search_opendir+:} false; then : 14658 14659else 14660 ac_cv_search_opendir=no 14661fi 14662rm conftest.$ac_ext 14663LIBS=$ac_func_search_save_LIBS 14664fi 14665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 14666$as_echo "$ac_cv_search_opendir" >&6; } 14667ac_res=$ac_cv_search_opendir 14668if test "$ac_res" != no; then : 14669 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14670 14671fi 14672 14673fi 14674 14675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 14676$as_echo_n "checking for ANSI C header files... " >&6; } 14677if ${ac_cv_header_stdc+:} false; then : 14678 $as_echo_n "(cached) " >&6 14679else 14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14681/* end confdefs.h. */ 14682#include <stdlib.h> 14683#include <stdarg.h> 14684#include <string.h> 14685#include <float.h> 14686 14687int 14688main () 14689{ 14690 14691 ; 14692 return 0; 14693} 14694_ACEOF 14695if ac_fn_c_try_compile "$LINENO"; then : 14696 ac_cv_header_stdc=yes 14697else 14698 ac_cv_header_stdc=no 14699fi 14700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14701 14702if test $ac_cv_header_stdc = yes; then 14703 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 14704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14705/* end confdefs.h. */ 14706#include <string.h> 14707 14708_ACEOF 14709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14710 $EGREP "memchr" >/dev/null 2>&1; then : 14711 14712else 14713 ac_cv_header_stdc=no 14714fi 14715rm -f conftest* 14716 14717fi 14718 14719if test $ac_cv_header_stdc = yes; then 14720 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 14721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14722/* end confdefs.h. */ 14723#include <stdlib.h> 14724 14725_ACEOF 14726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14727 $EGREP "free" >/dev/null 2>&1; then : 14728 14729else 14730 ac_cv_header_stdc=no 14731fi 14732rm -f conftest* 14733 14734fi 14735 14736if test $ac_cv_header_stdc = yes; then 14737 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 14738 if test "$cross_compiling" = yes; then : 14739 : 14740else 14741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14742/* end confdefs.h. */ 14743#include <ctype.h> 14744#include <stdlib.h> 14745#if ((' ' & 0x0FF) == 0x020) 14746# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 14747# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 14748#else 14749# define ISLOWER(c) \ 14750 (('a' <= (c) && (c) <= 'i') \ 14751 || ('j' <= (c) && (c) <= 'r') \ 14752 || ('s' <= (c) && (c) <= 'z')) 14753# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 14754#endif 14755 14756#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 14757int 14758main () 14759{ 14760 int i; 14761 for (i = 0; i < 256; i++) 14762 if (XOR (islower (i), ISLOWER (i)) 14763 || toupper (i) != TOUPPER (i)) 14764 return 2; 14765 return 0; 14766} 14767_ACEOF 14768if ac_fn_c_try_run "$LINENO"; then : 14769 14770else 14771 ac_cv_header_stdc=no 14772fi 14773rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14774 conftest.$ac_objext conftest.beam conftest.$ac_ext 14775fi 14776 14777fi 14778fi 14779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 14780$as_echo "$ac_cv_header_stdc" >&6; } 14781if test $ac_cv_header_stdc = yes; then 14782 14783$as_echo "#define STDC_HEADERS 1" >>confdefs.h 14784 14785fi 14786 14787for ac_header in fcntl.h stdlib.h string.h unistd.h dlfcn.h stropts.h fnmatch.h sys/utsname.h 14788do : 14789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14790ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14791if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14792 cat >>confdefs.h <<_ACEOF 14793#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14794_ACEOF 14795 14796fi 14797 14798done 14799 14800 14801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 14802$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 14803if ${ac_cv_c_const+:} false; then : 14804 $as_echo_n "(cached) " >&6 14805else 14806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14807/* end confdefs.h. */ 14808 14809int 14810main () 14811{ 14812/* FIXME: Include the comments suggested by Paul. */ 14813#ifndef __cplusplus 14814 /* Ultrix mips cc rejects this. */ 14815 typedef int charset[2]; 14816 const charset cs; 14817 /* SunOS 4.1.1 cc rejects this. */ 14818 char const *const *pcpcc; 14819 char **ppc; 14820 /* NEC SVR4.0.2 mips cc rejects this. */ 14821 struct point {int x, y;}; 14822 static struct point const zero = {0,0}; 14823 /* AIX XL C 1.02.0.0 rejects this. 14824 It does not let you subtract one const X* pointer from another in 14825 an arm of an if-expression whose if-part is not a constant 14826 expression */ 14827 const char *g = "string"; 14828 pcpcc = &g + (g ? g-g : 0); 14829 /* HPUX 7.0 cc rejects these. */ 14830 ++pcpcc; 14831 ppc = (char**) pcpcc; 14832 pcpcc = (char const *const *) ppc; 14833 { /* SCO 3.2v4 cc rejects this. */ 14834 char *t; 14835 char const *s = 0 ? (char *) 0 : (char const *) 0; 14836 14837 *t++ = 0; 14838 if (s) return 0; 14839 } 14840 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 14841 int x[] = {25, 17}; 14842 const int *foo = &x[0]; 14843 ++foo; 14844 } 14845 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 14846 typedef const int *iptr; 14847 iptr p = 0; 14848 ++p; 14849 } 14850 { /* AIX XL C 1.02.0.0 rejects this saying 14851 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 14852 struct s { int j; const int *ap[3]; }; 14853 struct s *b; b->j = 5; 14854 } 14855 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 14856 const int foo = 10; 14857 if (!foo) return 0; 14858 } 14859 return !cs[0] && !zero.x; 14860#endif 14861 14862 ; 14863 return 0; 14864} 14865_ACEOF 14866if ac_fn_c_try_compile "$LINENO"; then : 14867 ac_cv_c_const=yes 14868else 14869 ac_cv_c_const=no 14870fi 14871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14872fi 14873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 14874$as_echo "$ac_cv_c_const" >&6; } 14875if test $ac_cv_c_const = no; then 14876 14877$as_echo "#define const /**/" >>confdefs.h 14878 14879fi 14880 14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 14882$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 14883if ${ac_cv_c_bigendian+:} false; then : 14884 $as_echo_n "(cached) " >&6 14885else 14886 ac_cv_c_bigendian=unknown 14887 # See if we're dealing with a universal compiler. 14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14889/* end confdefs.h. */ 14890#ifndef __APPLE_CC__ 14891 not a universal capable compiler 14892 #endif 14893 typedef int dummy; 14894 14895_ACEOF 14896if ac_fn_c_try_compile "$LINENO"; then : 14897 14898 # Check for potential -arch flags. It is not universal unless 14899 # there are at least two -arch flags with different values. 14900 ac_arch= 14901 ac_prev= 14902 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 14903 if test -n "$ac_prev"; then 14904 case $ac_word in 14905 i?86 | x86_64 | ppc | ppc64) 14906 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 14907 ac_arch=$ac_word 14908 else 14909 ac_cv_c_bigendian=universal 14910 break 14911 fi 14912 ;; 14913 esac 14914 ac_prev= 14915 elif test "x$ac_word" = "x-arch"; then 14916 ac_prev=arch 14917 fi 14918 done 14919fi 14920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14921 if test $ac_cv_c_bigendian = unknown; then 14922 # See if sys/param.h defines the BYTE_ORDER macro. 14923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14924/* end confdefs.h. */ 14925#include <sys/types.h> 14926 #include <sys/param.h> 14927 14928int 14929main () 14930{ 14931#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 14932 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 14933 && LITTLE_ENDIAN) 14934 bogus endian macros 14935 #endif 14936 14937 ; 14938 return 0; 14939} 14940_ACEOF 14941if ac_fn_c_try_compile "$LINENO"; then : 14942 # It does; now see whether it defined to BIG_ENDIAN or not. 14943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14944/* end confdefs.h. */ 14945#include <sys/types.h> 14946 #include <sys/param.h> 14947 14948int 14949main () 14950{ 14951#if BYTE_ORDER != BIG_ENDIAN 14952 not big endian 14953 #endif 14954 14955 ; 14956 return 0; 14957} 14958_ACEOF 14959if ac_fn_c_try_compile "$LINENO"; then : 14960 ac_cv_c_bigendian=yes 14961else 14962 ac_cv_c_bigendian=no 14963fi 14964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14965fi 14966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14967 fi 14968 if test $ac_cv_c_bigendian = unknown; then 14969 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 14970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14971/* end confdefs.h. */ 14972#include <limits.h> 14973 14974int 14975main () 14976{ 14977#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 14978 bogus endian macros 14979 #endif 14980 14981 ; 14982 return 0; 14983} 14984_ACEOF 14985if ac_fn_c_try_compile "$LINENO"; then : 14986 # It does; now see whether it defined to _BIG_ENDIAN or not. 14987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14988/* end confdefs.h. */ 14989#include <limits.h> 14990 14991int 14992main () 14993{ 14994#ifndef _BIG_ENDIAN 14995 not big endian 14996 #endif 14997 14998 ; 14999 return 0; 15000} 15001_ACEOF 15002if ac_fn_c_try_compile "$LINENO"; then : 15003 ac_cv_c_bigendian=yes 15004else 15005 ac_cv_c_bigendian=no 15006fi 15007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15008fi 15009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15010 fi 15011 if test $ac_cv_c_bigendian = unknown; then 15012 # Compile a test program. 15013 if test "$cross_compiling" = yes; then : 15014 # Try to guess by grepping values from an object file. 15015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15016/* end confdefs.h. */ 15017short int ascii_mm[] = 15018 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 15019 short int ascii_ii[] = 15020 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 15021 int use_ascii (int i) { 15022 return ascii_mm[i] + ascii_ii[i]; 15023 } 15024 short int ebcdic_ii[] = 15025 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 15026 short int ebcdic_mm[] = 15027 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 15028 int use_ebcdic (int i) { 15029 return ebcdic_mm[i] + ebcdic_ii[i]; 15030 } 15031 extern int foo; 15032 15033int 15034main () 15035{ 15036return use_ascii (foo) == use_ebcdic (foo); 15037 ; 15038 return 0; 15039} 15040_ACEOF 15041if ac_fn_c_try_compile "$LINENO"; then : 15042 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 15043 ac_cv_c_bigendian=yes 15044 fi 15045 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 15046 if test "$ac_cv_c_bigendian" = unknown; then 15047 ac_cv_c_bigendian=no 15048 else 15049 # finding both strings is unlikely to happen, but who knows? 15050 ac_cv_c_bigendian=unknown 15051 fi 15052 fi 15053fi 15054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15055else 15056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15057/* end confdefs.h. */ 15058$ac_includes_default 15059int 15060main () 15061{ 15062 15063 /* Are we little or big endian? From Harbison&Steele. */ 15064 union 15065 { 15066 long int l; 15067 char c[sizeof (long int)]; 15068 } u; 15069 u.l = 1; 15070 return u.c[sizeof (long int) - 1] == 1; 15071 15072 ; 15073 return 0; 15074} 15075_ACEOF 15076if ac_fn_c_try_run "$LINENO"; then : 15077 ac_cv_c_bigendian=no 15078else 15079 ac_cv_c_bigendian=yes 15080fi 15081rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15082 conftest.$ac_objext conftest.beam conftest.$ac_ext 15083fi 15084 15085 fi 15086fi 15087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 15088$as_echo "$ac_cv_c_bigendian" >&6; } 15089 case $ac_cv_c_bigendian in #( 15090 yes) 15091 ENDIAN="X_BIG_ENDIAN";; #( 15092 no) 15093 ENDIAN="X_LITTLE_ENDIAN" ;; #( 15094 universal) 15095 15096$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 15097 15098 ;; #( 15099 *) 15100 as_fn_error $? "unknown endianness 15101 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 15102 esac 15103 15104 15105# The cast to long int works around a bug in the HP C Compiler 15106# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15107# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15108# This bug is HP SR number 8606223364. 15109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 15110$as_echo_n "checking size of unsigned long... " >&6; } 15111if ${ac_cv_sizeof_unsigned_long+:} false; then : 15112 $as_echo_n "(cached) " >&6 15113else 15114 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 15115 15116else 15117 if test "$ac_cv_type_unsigned_long" = yes; then 15118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15120as_fn_error 77 "cannot compute sizeof (unsigned long) 15121See \`config.log' for more details" "$LINENO" 5; } 15122 else 15123 ac_cv_sizeof_unsigned_long=0 15124 fi 15125fi 15126 15127fi 15128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 15129$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 15130 15131 15132 15133cat >>confdefs.h <<_ACEOF 15134#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 15135_ACEOF 15136 15137 15138if test "$ac_cv_sizeof_unsigned_long" = 8; then 15139 15140$as_echo "#define _XSERVER64 1" >>confdefs.h 15141 15142fi 15143 15144ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 15145if test "x$ac_cv_type_pid_t" = xyes; then : 15146 15147else 15148 15149cat >>confdefs.h <<_ACEOF 15150#define pid_t int 15151_ACEOF 15152 15153fi 15154 15155 15156# Checks for headers/macros for byte swapping 15157# Known variants: 15158# <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc) 15159# <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD) 15160# <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's) 15161# and a fallback to local macros if none of the above are found 15162 15163# if <byteswap.h> is found, assume it's the correct version 15164for ac_header in byteswap.h 15165do : 15166 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" 15167if test "x$ac_cv_header_byteswap_h" = xyes; then : 15168 cat >>confdefs.h <<_ACEOF 15169#define HAVE_BYTESWAP_H 1 15170_ACEOF 15171 15172fi 15173 15174done 15175 15176 15177# if <sys/endian.h> is found, have to check which version 15178ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" 15179if test "x$ac_cv_header_sys_endian_h" = xyes; then : 15180 HAVE_SYS_ENDIAN_H="yes" 15181else 15182 HAVE_SYS_ENDIAN_H="no" 15183fi 15184 15185 15186 15187if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then 15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5 15189$as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; } 15190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15191/* end confdefs.h. */ 15192 15193#include <sys/types.h> 15194#include <sys/endian.h> 15195 15196int 15197main () 15198{ 15199 15200int a = 1, b; 15201b = __swap16(a); 15202 15203 ; 15204 return 0; 15205} 15206 15207_ACEOF 15208if ac_fn_c_try_link "$LINENO"; then : 15209 SYS_ENDIAN__SWAP='yes' 15210else 15211 SYS_ENDIAN__SWAP='no' 15212fi 15213rm -f core conftest.err conftest.$ac_objext \ 15214 conftest$ac_exeext conftest.$ac_ext 15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5 15216$as_echo "$SYS_ENDIAN__SWAP" >&6; } 15217 15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5 15219$as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; } 15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15221/* end confdefs.h. */ 15222 15223#include <sys/types.h> 15224#include <sys/endian.h> 15225 15226int 15227main () 15228{ 15229 15230int a = 1, b; 15231b = bswap16(a); 15232 15233 ; 15234 return 0; 15235} 15236 15237_ACEOF 15238if ac_fn_c_try_link "$LINENO"; then : 15239 SYS_ENDIAN_BSWAP='yes' 15240else 15241 SYS_ENDIAN_BSWAP='no' 15242fi 15243rm -f core conftest.err conftest.$ac_objext \ 15244 conftest$ac_exeext conftest.$ac_ext 15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5 15246$as_echo "$SYS_ENDIAN_BSWAP" >&6; } 15247 15248 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then 15249 USE_SYS_ENDIAN_H=yes 15250 BSWAP=bswap 15251 else 15252 if test "$SYS_ENDIAN__SWAP" = "yes" ; then 15253 USE_SYS_ENDIAN_H=yes 15254 BSWAP=__swap 15255 else 15256 USE_SYS_ENDIAN_H=no 15257 fi 15258 fi 15259 15260 if test "$USE_SYS_ENDIAN_H" = "yes" ; then 15261 15262$as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h 15263 15264 15265cat >>confdefs.h <<_ACEOF 15266#define bswap_16 ${BSWAP}16 15267_ACEOF 15268 15269 15270cat >>confdefs.h <<_ACEOF 15271#define bswap_32 ${BSWAP}32 15272_ACEOF 15273 15274 15275cat >>confdefs.h <<_ACEOF 15276#define bswap_64 ${BSWAP}64 15277_ACEOF 15278 15279 fi 15280fi 15281 15282ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 15283if test "x$ac_cv_func_dlopen" = xyes; then : 15284 15285else 15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15287$as_echo_n "checking for dlopen in -ldl... " >&6; } 15288if ${ac_cv_lib_dl_dlopen+:} false; then : 15289 $as_echo_n "(cached) " >&6 15290else 15291 ac_check_lib_save_LIBS=$LIBS 15292LIBS="-ldl $LIBS" 15293cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15294/* end confdefs.h. */ 15295 15296/* Override any GCC internal prototype to avoid an error. 15297 Use char because int might match the return type of a GCC 15298 builtin and then its argument prototype would still apply. */ 15299#ifdef __cplusplus 15300extern "C" 15301#endif 15302char dlopen (); 15303int 15304main () 15305{ 15306return dlopen (); 15307 ; 15308 return 0; 15309} 15310_ACEOF 15311if ac_fn_c_try_link "$LINENO"; then : 15312 ac_cv_lib_dl_dlopen=yes 15313else 15314 ac_cv_lib_dl_dlopen=no 15315fi 15316rm -f core conftest.err conftest.$ac_objext \ 15317 conftest$ac_exeext conftest.$ac_ext 15318LIBS=$ac_check_lib_save_LIBS 15319fi 15320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15321$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 15322if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 15323 DLOPEN_LIBS="-ldl" 15324fi 15325 15326fi 15327 15328 15329 15330for ac_func in vprintf 15331do : 15332 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 15333if test "x$ac_cv_func_vprintf" = xyes; then : 15334 cat >>confdefs.h <<_ACEOF 15335#define HAVE_VPRINTF 1 15336_ACEOF 15337 15338ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 15339if test "x$ac_cv_func__doprnt" = xyes; then : 15340 15341$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 15342 15343fi 15344 15345fi 15346done 15347 15348 15349for ac_func in geteuid getuid link memmove memset mkstemp strchr strrchr \ 15350 strtol getopt getopt_long vsnprintf walkcontext backtrace \ 15351 getisax getzoneid shmctl64 strcasestr ffs vasprintf 15352do : 15353 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15354ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15355if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15356 cat >>confdefs.h <<_ACEOF 15357#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15358_ACEOF 15359 15360fi 15361done 15362 15363ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 15364if test "x$ac_cv_type_size_t" = xyes; then : 15365 15366else 15367 15368cat >>confdefs.h <<_ACEOF 15369#define size_t unsigned int 15370_ACEOF 15371 15372fi 15373 15374# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 15375# for constant arguments. Useless! 15376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 15377$as_echo_n "checking for working alloca.h... " >&6; } 15378if ${ac_cv_working_alloca_h+:} false; then : 15379 $as_echo_n "(cached) " >&6 15380else 15381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15382/* end confdefs.h. */ 15383#include <alloca.h> 15384int 15385main () 15386{ 15387char *p = (char *) alloca (2 * sizeof (int)); 15388 if (p) return 0; 15389 ; 15390 return 0; 15391} 15392_ACEOF 15393if ac_fn_c_try_link "$LINENO"; then : 15394 ac_cv_working_alloca_h=yes 15395else 15396 ac_cv_working_alloca_h=no 15397fi 15398rm -f core conftest.err conftest.$ac_objext \ 15399 conftest$ac_exeext conftest.$ac_ext 15400fi 15401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 15402$as_echo "$ac_cv_working_alloca_h" >&6; } 15403if test $ac_cv_working_alloca_h = yes; then 15404 15405$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 15406 15407fi 15408 15409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 15410$as_echo_n "checking for alloca... " >&6; } 15411if ${ac_cv_func_alloca_works+:} false; then : 15412 $as_echo_n "(cached) " >&6 15413else 15414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15415/* end confdefs.h. */ 15416#ifdef __GNUC__ 15417# define alloca __builtin_alloca 15418#else 15419# ifdef _MSC_VER 15420# include <malloc.h> 15421# define alloca _alloca 15422# else 15423# ifdef HAVE_ALLOCA_H 15424# include <alloca.h> 15425# else 15426# ifdef _AIX 15427 #pragma alloca 15428# else 15429# ifndef alloca /* predefined by HP cc +Olibcalls */ 15430void *alloca (size_t); 15431# endif 15432# endif 15433# endif 15434# endif 15435#endif 15436 15437int 15438main () 15439{ 15440char *p = (char *) alloca (1); 15441 if (p) return 0; 15442 ; 15443 return 0; 15444} 15445_ACEOF 15446if ac_fn_c_try_link "$LINENO"; then : 15447 ac_cv_func_alloca_works=yes 15448else 15449 ac_cv_func_alloca_works=no 15450fi 15451rm -f core conftest.err conftest.$ac_objext \ 15452 conftest$ac_exeext conftest.$ac_ext 15453fi 15454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 15455$as_echo "$ac_cv_func_alloca_works" >&6; } 15456 15457if test $ac_cv_func_alloca_works = yes; then 15458 15459$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 15460 15461else 15462 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 15463# that cause trouble. Some versions do not even contain alloca or 15464# contain a buggy version. If you still want to use their alloca, 15465# use ar to extract alloca.o from them instead of compiling alloca.c. 15466 15467ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 15468 15469$as_echo "#define C_ALLOCA 1" >>confdefs.h 15470 15471 15472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 15473$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 15474if ${ac_cv_os_cray+:} false; then : 15475 $as_echo_n "(cached) " >&6 15476else 15477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15478/* end confdefs.h. */ 15479#if defined CRAY && ! defined CRAY2 15480webecray 15481#else 15482wenotbecray 15483#endif 15484 15485_ACEOF 15486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15487 $EGREP "webecray" >/dev/null 2>&1; then : 15488 ac_cv_os_cray=yes 15489else 15490 ac_cv_os_cray=no 15491fi 15492rm -f conftest* 15493 15494fi 15495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 15496$as_echo "$ac_cv_os_cray" >&6; } 15497if test $ac_cv_os_cray = yes; then 15498 for ac_func in _getb67 GETB67 getb67; do 15499 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15500ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15501if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15502 15503cat >>confdefs.h <<_ACEOF 15504#define CRAY_STACKSEG_END $ac_func 15505_ACEOF 15506 15507 break 15508fi 15509 15510 done 15511fi 15512 15513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 15514$as_echo_n "checking stack direction for C alloca... " >&6; } 15515if ${ac_cv_c_stack_direction+:} false; then : 15516 $as_echo_n "(cached) " >&6 15517else 15518 if test "$cross_compiling" = yes; then : 15519 ac_cv_c_stack_direction=0 15520else 15521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15522/* end confdefs.h. */ 15523$ac_includes_default 15524int 15525find_stack_direction () 15526{ 15527 static char *addr = 0; 15528 auto char dummy; 15529 if (addr == 0) 15530 { 15531 addr = &dummy; 15532 return find_stack_direction (); 15533 } 15534 else 15535 return (&dummy > addr) ? 1 : -1; 15536} 15537 15538int 15539main () 15540{ 15541 return find_stack_direction () < 0; 15542} 15543_ACEOF 15544if ac_fn_c_try_run "$LINENO"; then : 15545 ac_cv_c_stack_direction=1 15546else 15547 ac_cv_c_stack_direction=-1 15548fi 15549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15550 conftest.$ac_objext conftest.beam conftest.$ac_ext 15551fi 15552 15553fi 15554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 15555$as_echo "$ac_cv_c_stack_direction" >&6; } 15556cat >>confdefs.h <<_ACEOF 15557#define STACK_DIRECTION $ac_cv_c_stack_direction 15558_ACEOF 15559 15560 15561fi 15562 15563ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize" 15564if test "x$ac_cv_func_getdtablesize" = xyes; then : 15565 15566$as_echo "#define HAS_GETDTABLESIZE 1" >>confdefs.h 15567 15568fi 15569 15570ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 15571if test "x$ac_cv_func_getifaddrs" = xyes; then : 15572 15573$as_echo "#define HAS_GETIFADDRS 1" >>confdefs.h 15574 15575fi 15576 15577ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid" 15578if test "x$ac_cv_func_getpeereid" = xyes; then : 15579 15580$as_echo "#define HAS_GETPEEREID 1" >>confdefs.h 15581 15582fi 15583 15584ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred" 15585if test "x$ac_cv_func_getpeerucred" = xyes; then : 15586 15587$as_echo "#define HAS_GETPEERUCRED 1" >>confdefs.h 15588 15589fi 15590 15591ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 15592if test "x$ac_cv_func_strlcat" = xyes; then : 15593 HAVE_STRLCAT=yes 15594else 15595 HAVE_STRLCAT=no 15596fi 15597 15598 if test x$HAVE_STRLCAT = xno; then 15599 NEED_STRLCAT_TRUE= 15600 NEED_STRLCAT_FALSE='#' 15601else 15602 NEED_STRLCAT_TRUE='#' 15603 NEED_STRLCAT_FALSE= 15604fi 15605 15606ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 15607if test "x$ac_cv_func_strlcpy" = xyes; then : 15608 15609$as_echo "#define HAS_STRLCPY 1" >>confdefs.h 15610 15611fi 15612 15613 15614 if test x$HAVE_VSNPRINTF = xno; then 15615 NEED_VSNPRINTF_TRUE= 15616 NEED_VSNPRINTF_FALSE='#' 15617else 15618 NEED_VSNPRINTF_TRUE='#' 15619 NEED_VSNPRINTF_FALSE= 15620fi 15621 15622 15623ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 15624if test "x$ac_cv_func_mmap" = xyes; then : 15625 15626$as_echo "#define HAS_MMAP 1" >>confdefs.h 15627 15628fi 15629 15630 15631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 15632$as_echo_n "checking for sqrt in -lm... " >&6; } 15633if ${ac_cv_lib_m_sqrt+:} false; then : 15634 $as_echo_n "(cached) " >&6 15635else 15636 ac_check_lib_save_LIBS=$LIBS 15637LIBS="-lm $LIBS" 15638cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15639/* end confdefs.h. */ 15640 15641/* Override any GCC internal prototype to avoid an error. 15642 Use char because int might match the return type of a GCC 15643 builtin and then its argument prototype would still apply. */ 15644#ifdef __cplusplus 15645extern "C" 15646#endif 15647char sqrt (); 15648int 15649main () 15650{ 15651return sqrt (); 15652 ; 15653 return 0; 15654} 15655_ACEOF 15656if ac_fn_c_try_link "$LINENO"; then : 15657 ac_cv_lib_m_sqrt=yes 15658else 15659 ac_cv_lib_m_sqrt=no 15660fi 15661rm -f core conftest.err conftest.$ac_objext \ 15662 conftest$ac_exeext conftest.$ac_ext 15663LIBS=$ac_check_lib_save_LIBS 15664fi 15665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 15666$as_echo "$ac_cv_lib_m_sqrt" >&6; } 15667if test "x$ac_cv_lib_m_sqrt" = xyes; then : 15668 cat >>confdefs.h <<_ACEOF 15669#define HAVE_LIBM 1 15670_ACEOF 15671 15672 LIBS="-lm $LIBS" 15673 15674fi 15675 15676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrt in -lm" >&5 15677$as_echo_n "checking for cbrt in -lm... " >&6; } 15678if ${ac_cv_lib_m_cbrt+:} false; then : 15679 $as_echo_n "(cached) " >&6 15680else 15681 ac_check_lib_save_LIBS=$LIBS 15682LIBS="-lm $LIBS" 15683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15684/* end confdefs.h. */ 15685 15686/* Override any GCC internal prototype to avoid an error. 15687 Use char because int might match the return type of a GCC 15688 builtin and then its argument prototype would still apply. */ 15689#ifdef __cplusplus 15690extern "C" 15691#endif 15692char cbrt (); 15693int 15694main () 15695{ 15696return cbrt (); 15697 ; 15698 return 0; 15699} 15700_ACEOF 15701if ac_fn_c_try_link "$LINENO"; then : 15702 ac_cv_lib_m_cbrt=yes 15703else 15704 ac_cv_lib_m_cbrt=no 15705fi 15706rm -f core conftest.err conftest.$ac_objext \ 15707 conftest$ac_exeext conftest.$ac_ext 15708LIBS=$ac_check_lib_save_LIBS 15709fi 15710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrt" >&5 15711$as_echo "$ac_cv_lib_m_cbrt" >&6; } 15712if test "x$ac_cv_lib_m_cbrt" = xyes; then : 15713 15714$as_echo "#define HAVE_CBRT 1" >>confdefs.h 15715 15716fi 15717 15718 15719for ac_header in ndbm.h dbm.h rpcsvc/dbm.h 15720do : 15721 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15722ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15723if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15724 cat >>confdefs.h <<_ACEOF 15725#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15726_ACEOF 15727 15728fi 15729 15730done 15731 15732 15733for ac_header in linux/agpgart.h sys/agpio.h sys/agpgart.h 15734do : 15735 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15736ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15737if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15738 cat >>confdefs.h <<_ACEOF 15739#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15740_ACEOF 15741 AGP=yes 15742fi 15743 15744done 15745 15746 if test "x$AGP" = xyes; then 15747 AGP_TRUE= 15748 AGP_FALSE='#' 15749else 15750 AGP_TRUE='#' 15751 AGP_FALSE= 15752fi 15753 15754 15755for ac_header in linux/apm_bios.h 15756do : 15757 ac_fn_c_check_header_mongrel "$LINENO" "linux/apm_bios.h" "ac_cv_header_linux_apm_bios_h" "$ac_includes_default" 15758if test "x$ac_cv_header_linux_apm_bios_h" = xyes; then : 15759 cat >>confdefs.h <<_ACEOF 15760#define HAVE_LINUX_APM_BIOS_H 1 15761_ACEOF 15762 LNXAPM=yes 15763fi 15764 15765done 15766 15767 if test "x$LNXAPM" = xyes; then 15768 LNXAPM_TRUE= 15769 LNXAPM_FALSE='#' 15770else 15771 LNXAPM_TRUE='#' 15772 LNXAPM_FALSE= 15773fi 15774 15775 15776for ac_header in linux/fb.h 15777do : 15778 ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default" 15779if test "x$ac_cv_header_linux_fb_h" = xyes; then : 15780 cat >>confdefs.h <<_ACEOF 15781#define HAVE_LINUX_FB_H 1 15782_ACEOF 15783 FBDEV=yes 15784fi 15785 15786done 15787 15788 if test "x$FBDEV" = xyes; then 15789 FBDEVHW_TRUE= 15790 FBDEVHW_FALSE='#' 15791else 15792 FBDEVHW_TRUE='#' 15793 FBDEVHW_FALSE= 15794fi 15795 15796 15797for ac_header in asm/mtrr.h 15798do : 15799 ac_fn_c_check_header_mongrel "$LINENO" "asm/mtrr.h" "ac_cv_header_asm_mtrr_h" "$ac_includes_default" 15800if test "x$ac_cv_header_asm_mtrr_h" = xyes; then : 15801 cat >>confdefs.h <<_ACEOF 15802#define HAVE_ASM_MTRR_H 1 15803_ACEOF 15804 ac_cv_asm_mtrr_h=yes 15805fi 15806 15807done 15808 15809if test "x$ac_cv_asm_mtrr_h" = xyes; then 15810 HAVE_MTRR=yes 15811fi 15812 15813for ac_header in sys/memrange.h 15814do : 15815 ac_fn_c_check_header_mongrel "$LINENO" "sys/memrange.h" "ac_cv_header_sys_memrange_h" "$ac_includes_default" 15816if test "x$ac_cv_header_sys_memrange_h" = xyes; then : 15817 cat >>confdefs.h <<_ACEOF 15818#define HAVE_SYS_MEMRANGE_H 1 15819_ACEOF 15820 ac_cv_memrange_h=yes 15821fi 15822 15823done 15824 15825if test "x$ac_cv_memrange_h" = xyes; then 15826 HAVE_MTRR=yes 15827fi 15828 15829if test "x$HAVE_MTRR" = xyes; then 15830 15831$as_echo "#define HAS_MTRR_SUPPORT 1" >>confdefs.h 15832 15833fi 15834 15835for ac_header in machine/mtrr.h 15836do : 15837 ac_fn_c_check_header_mongrel "$LINENO" "machine/mtrr.h" "ac_cv_header_machine_mtrr_h" "$ac_includes_default" 15838if test "x$ac_cv_header_machine_mtrr_h" = xyes; then : 15839 cat >>confdefs.h <<_ACEOF 15840#define HAVE_MACHINE_MTRR_H 1 15841_ACEOF 15842 ac_cv_machine_mtrr_h=yes 15843fi 15844 15845done 15846 15847if test "x$ac_cv_machine_mtrr_h" = xyes; then 15848 15849$as_echo "#define HAS_MTRR_BUILTIN 1" >>confdefs.h 15850 15851fi 15852 15853for ac_header in sys/linker.h 15854do : 15855 ac_fn_c_check_header_compile "$LINENO" "sys/linker.h" "ac_cv_header_sys_linker_h" "#include <sys/param.h> 15856" 15857if test "x$ac_cv_header_sys_linker_h" = xyes; then : 15858 cat >>confdefs.h <<_ACEOF 15859#define HAVE_SYS_LINKER_H 1 15860_ACEOF 15861 ac_cv_sys_linker_h=yes 15862else 15863 ac_cv_sys_linker_h=no 15864fi 15865 15866done 15867 15868 if test "x$ac_cv_sys_linker_h" = xyes; then 15869 FREEBSD_KLDLOAD_TRUE= 15870 FREEBSD_KLDLOAD_FALSE='#' 15871else 15872 FREEBSD_KLDLOAD_TRUE='#' 15873 FREEBSD_KLDLOAD_FALSE= 15874fi 15875 15876 15877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSV IPC" >&5 15878$as_echo_n "checking for SYSV IPC... " >&6; } 15879if ${ac_cv_sysv_ipc+:} false; then : 15880 $as_echo_n "(cached) " >&6 15881else 15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15883/* end confdefs.h. */ 15884 15885#include <sys/types.h> 15886#include <sys/ipc.h> 15887#include <sys/shm.h> 15888 15889int 15890main () 15891{ 15892 15893{ 15894 int id; 15895 id = shmget(IPC_PRIVATE, 512, SHM_W | SHM_R); 15896 if (id < 0) return -1; 15897 return shmctl(id, IPC_RMID, 0); 15898} 15899 ; 15900 return 0; 15901} 15902_ACEOF 15903if ac_fn_c_try_link "$LINENO"; then : 15904 ac_cv_sysv_ipc=yes 15905else 15906 ac_cv_sysv_ipc=no 15907fi 15908rm -f core conftest.err conftest.$ac_objext \ 15909 conftest$ac_exeext conftest.$ac_ext 15910fi 15911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_ipc" >&5 15912$as_echo "$ac_cv_sysv_ipc" >&6; } 15913if test "x$ac_cv_sysv_ipc" = xyes; then 15914 15915$as_echo "#define HAVE_SYSV_IPC 1" >>confdefs.h 15916 15917fi 15918 15919if test -c /dev/xf86 ; then 15920 15921$as_echo "#define HAS_APERTURE_DRV 1" >>confdefs.h 15922 15923fi 15924 15925ac_fn_c_check_header_mongrel "$LINENO" "machine/apmvar.h" "ac_cv_header_machine_apmvar_h" "$ac_includes_default" 15926if test "x$ac_cv_header_machine_apmvar_h" = xyes; then : 15927 15928 ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default" 15929if test "x$ac_cv_header_sys_event_h" = xyes; then : 15930 ac_cv_BSD_KQUEUE_APM=yes 15931else 15932 ac_cv_BSD_APM=yes 15933fi 15934 15935 15936fi 15937 15938 15939 15940 if test "x$ac_cv_BSD_APM" = xyes; then 15941 BSD_APM_TRUE= 15942 BSD_APM_FALSE='#' 15943else 15944 BSD_APM_TRUE='#' 15945 BSD_APM_FALSE= 15946fi 15947 15948 if test "x$ac_cv_BSD_KQUEUE_APM" = xyes; then 15949 BSD_KQUEUE_APM_TRUE= 15950 BSD_KQUEUE_APM_FALSE='#' 15951else 15952 BSD_KQUEUE_APM_TRUE='#' 15953 BSD_KQUEUE_APM_FALSE= 15954fi 15955 15956 15957ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" 15958if test "x$ac_cv_header_execinfo_h" = xyes; then : 15959 15960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lc" >&5 15961$as_echo_n "checking for backtrace in -lc... " >&6; } 15962if ${ac_cv_lib_c_backtrace+:} false; then : 15963 $as_echo_n "(cached) " >&6 15964else 15965 ac_check_lib_save_LIBS=$LIBS 15966LIBS="-lc $LIBS" 15967cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15968/* end confdefs.h. */ 15969 15970/* Override any GCC internal prototype to avoid an error. 15971 Use char because int might match the return type of a GCC 15972 builtin and then its argument prototype would still apply. */ 15973#ifdef __cplusplus 15974extern "C" 15975#endif 15976char backtrace (); 15977int 15978main () 15979{ 15980return backtrace (); 15981 ; 15982 return 0; 15983} 15984_ACEOF 15985if ac_fn_c_try_link "$LINENO"; then : 15986 ac_cv_lib_c_backtrace=yes 15987else 15988 ac_cv_lib_c_backtrace=no 15989fi 15990rm -f core conftest.err conftest.$ac_objext \ 15991 conftest$ac_exeext conftest.$ac_ext 15992LIBS=$ac_check_lib_save_LIBS 15993fi 15994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_backtrace" >&5 15995$as_echo "$ac_cv_lib_c_backtrace" >&6; } 15996if test "x$ac_cv_lib_c_backtrace" = xyes; then : 15997 15998 15999$as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h 16000 16001 16002$as_echo "#define HAVE_EXECINFO_H 1" >>confdefs.h 16003 16004 16005fi 16006 16007 16008fi 16009 16010 16011 16012old_CFLAGS="$CFLAGS" 16013CFLAGS="-mapcs-frame" 16014cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16015/* end confdefs.h. */ 16016 16017int 16018main () 16019{ 16020 16021 ; 16022 return 0; 16023} 16024_ACEOF 16025if ac_fn_c_try_compile "$LINENO"; then : 16026 ARM_BACKTRACE_CFLAGS="$CFLAGS" 16027else 16028 ARM_BACKTRACE_CFLAGS="" 16029 16030fi 16031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16032CFLAGS="$old_CFLAGS" 16033 16034 16035DEFAULT_INT10="x86emu" 16036 16037 16038case $host_cpu in 16039 alpha*) 16040 ALPHA_VIDEO=yes 16041 case $host_os in 16042 *freebsd*) SYS_LIBS=-lio ;; 16043 *netbsd*) 16044$as_echo "#define USE_ALPHA_PIO 1" >>confdefs.h 16045 ;; 16046 esac 16047 GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee" 16048 ;; 16049 arm*) 16050 ARM_VIDEO=yes 16051 ;; 16052 i*86) 16053 I386_VIDEO=yes 16054 case $host_os in 16055 *freebsd*) $as_echo "#define USE_DEV_IO 1" >>confdefs.h 16056 ;; 16057 *dragonfly*) $as_echo "#define USE_DEV_IO 1" >>confdefs.h 16058 ;; 16059 *netbsd*) $as_echo "#define USE_I386_IOPL 1" >>confdefs.h 16060 16061 SYS_LIBS=-li386 16062 ;; 16063 *openbsd*) $as_echo "#define USE_I386_IOPL 1" >>confdefs.h 16064 16065 SYS_LIBS=-li386 16066 ;; 16067 esac 16068 ;; 16069 powerpc*) 16070 PPC_VIDEO=yes 16071 case $host_os in 16072 *freebsd*) DEFAULT_INT10=stub ;; 16073 esac 16074 ;; 16075 sparc*) 16076 SPARC64_VIDEO=yes 16077 BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c" 16078 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 16079 ;; 16080 x86_64*|amd64*) 16081 I386_VIDEO=yes 16082 case $host_os in 16083 *freebsd*) 16084$as_echo "#define USE_DEV_IO 1" >>confdefs.h 16085 ;; 16086 *dragonfly*) 16087$as_echo "#define USE_DEV_IO 1" >>confdefs.h 16088 ;; 16089 *netbsd*) 16090$as_echo "#define USE_I386_IOPL 1" >>confdefs.h 16091 16092 SYS_LIBS=-lx86_64 16093 ;; 16094 *openbsd*) 16095$as_echo "#define USE_AMD64_IOPL 1" >>confdefs.h 16096 16097 SYS_LIBS=-lamd64 16098 ;; 16099 esac 16100 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 16101 ;; 16102 ia64*) 16103 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 16104 ;; 16105 s390*) 16106 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 16107 ;; 16108esac 16109 16110 16111 if test "x$ALPHA_VIDEO" = xyes; then 16112 ALPHA_VIDEO_TRUE= 16113 ALPHA_VIDEO_FALSE='#' 16114else 16115 ALPHA_VIDEO_TRUE='#' 16116 ALPHA_VIDEO_FALSE= 16117fi 16118 16119 if test "x$ARM_VIDEO" = xyes; then 16120 ARM_VIDEO_TRUE= 16121 ARM_VIDEO_FALSE='#' 16122else 16123 ARM_VIDEO_TRUE='#' 16124 ARM_VIDEO_FALSE= 16125fi 16126 16127 if test "x$I386_VIDEO" = xyes; then 16128 I386_VIDEO_TRUE= 16129 I386_VIDEO_FALSE='#' 16130else 16131 I386_VIDEO_TRUE='#' 16132 I386_VIDEO_FALSE= 16133fi 16134 16135 if test "x$PPC_VIDEO" = xyes; then 16136 PPC_VIDEO_TRUE= 16137 PPC_VIDEO_FALSE='#' 16138else 16139 PPC_VIDEO_TRUE='#' 16140 PPC_VIDEO_FALSE= 16141fi 16142 16143 if test "x$SPARC64_VIDEO" = xyes; then 16144 SPARC64_VIDEO_TRUE= 16145 SPARC64_VIDEO_FALSE='#' 16146else 16147 SPARC64_VIDEO_TRUE='#' 16148 SPARC64_VIDEO_FALSE= 16149fi 16150 16151 16152DRI=no 16153USE_SIGIO_BY_DEFAULT="yes" 16154case $host_os in 16155 *freebsd* | *dragonfly*) 16156 case $host_os in 16157 kfreebsd*-gnu) ;; 16158 *) 16159$as_echo "#define CSRG_BASED 1" >>confdefs.h 16160 ;; 16161 esac 16162 16163$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h 16164 16165 16166$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h 16167 16168 16169$as_echo "#define SYSCONS_SUPPORT 1" >>confdefs.h 16170 16171 DRI=yes 16172 ;; 16173 *netbsd*) 16174 16175$as_echo "#define CSRG_BASED 1" >>confdefs.h 16176 16177 16178$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h 16179 16180 16181$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h 16182 16183 16184$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h 16185 16186 DRI=yes 16187 ;; 16188 *openbsd*) 16189 16190$as_echo "#define CSRG_BASED 1" >>confdefs.h 16191 16192 16193$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h 16194 16195 16196$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h 16197 16198 ;; 16199 *linux*) 16200 DRI=yes 16201 ;; 16202 *solaris*) 16203 if test -n "$PKG_CONFIG" && \ 16204 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5 16205 ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5 16206 ac_status=$? 16207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16208 test $ac_status = 0; }; then 16209 DRI=yes 16210else 16211 DRI=no 16212fi 16213 # Disable use of SIGIO by default until some system bugs are 16214 # fixed - see Sun/OpenSolaris bug id 6879897 16215 USE_SIGIO_BY_DEFAULT="no" 16216 ;; 16217 darwin*) 16218 16219$as_echo "#define CSRG_BASED 1" >>confdefs.h 16220 16221 ;; 16222 cygwin*) 16223 CFLAGS="$CFLAGS -DFD_SETSIZE=256" 16224 ;; 16225esac 16226 16227PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1` 16228PVS=`echo $PACKAGE_VERSION | cut -d . -f 4 | cut -d - -f 1` 16229if test "x$PVS" = "x"; then 16230 PVS="0" 16231fi 16232 16233VENDOR_RELEASE="((($PVMAJOR) * 10000000) + (($PVM) * 100000) + (($PVP) * 1000) + $PVS)" 16234VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}" 16235 16236VENDOR_NAME="The X.Org Foundation" 16237VENDOR_NAME_SHORT="X.Org" 16238VENDOR_WEB="http://wiki.x.org" 16239 16240 16241 16242# Check whether --enable-werror was given. 16243if test "${enable_werror+set}" = set; then : 16244 enableval=$enable_werror; as_fn_error $? "--enable-werror has been replaced by --enable-strict-compilation" "$LINENO" 5 16245fi 16246 16247 16248# Check whether --enable-debug was given. 16249if test "${enable_debug+set}" = set; then : 16250 enableval=$enable_debug; DEBUGGING=$enableval 16251else 16252 DEBUGGING=no 16253fi 16254 16255# Check whether --enable-unit-tests was given. 16256if test "${enable_unit_tests+set}" = set; then : 16257 enableval=$enable_unit_tests; UNITTESTS=$enableval 16258else 16259 UNITTESTS=auto 16260fi 16261 16262# Check whether --enable-use-sigio-by-default was given. 16263if test "${enable_use_sigio_by_default+set}" = set; then : 16264 enableval=$enable_use_sigio_by_default; USE_SIGIO_BY_DEFAULT=$enableval 16265fi 16266 16267 16268# Check whether --with-int10 was given. 16269if test "${with_int10+set}" = set; then : 16270 withval=$with_int10; INT10="$withval" 16271else 16272 INT10="$DEFAULT_INT10" 16273fi 16274 16275 16276# Check whether --with-vendor-name was given. 16277if test "${with_vendor_name+set}" = set; then : 16278 withval=$with_vendor_name; VENDOR_NAME="$withval" 16279fi 16280 16281 16282# Check whether --with-vendor-name-short was given. 16283if test "${with_vendor_name_short+set}" = set; then : 16284 withval=$with_vendor_name_short; VENDOR_NAME_SHORT="$withval" 16285fi 16286 16287 16288# Check whether --with-vendor-web was given. 16289if test "${with_vendor_web+set}" = set; then : 16290 withval=$with_vendor_web; VENDOR_WEB="$withval" 16291fi 16292 16293 16294# Check whether --with-module-dir was given. 16295if test "${with_module_dir+set}" = set; then : 16296 withval=$with_module_dir; moduledir="$withval" 16297else 16298 moduledir="${libdir}/xorg/modules" 16299fi 16300 16301 16302# Check whether --with-log-dir was given. 16303if test "${with_log_dir+set}" = set; then : 16304 withval=$with_log_dir; logdir="$withval" 16305else 16306 logdir="$localstatedir/log" 16307fi 16308 16309 16310# Check whether --with-builder-addr was given. 16311if test "${with_builder_addr+set}" = set; then : 16312 withval=$with_builder_addr; BUILDERADDR="$withval" 16313else 16314 BUILDERADDR="xorg@lists.freedesktop.org" 16315fi 16316 16317 16318# Check whether --with-os-name was given. 16319if test "${with_os_name+set}" = set; then : 16320 withval=$with_os_name; OSNAME="$withval" 16321else 16322 OSNAME=`uname -srm` 16323fi 16324 16325 16326# Check whether --with-os-vendor was given. 16327if test "${with_os_vendor+set}" = set; then : 16328 withval=$with_os_vendor; OSVENDOR="$withval" 16329else 16330 OSVENDOR="" 16331fi 16332 16333 16334# Check whether --with-builderstring was given. 16335if test "${with_builderstring+set}" = set; then : 16336 withval=$with_builderstring; BUILDERSTRING="$withval" 16337 16338fi 16339 16340 16341 16342 16343 16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5 16345$as_echo_n "checking for root directory for font files... " >&6; } 16346 16347# Check whether --with-fontrootdir was given. 16348if test "${with_fontrootdir+set}" = set; then : 16349 withval=$with_fontrootdir; FONTROOTDIR="$withval" 16350fi 16351 16352 # if --with-fontrootdir not specified... 16353 if test "x${FONTROOTDIR}" = "x"; then 16354 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil` 16355 fi 16356 # ...and if pkg-config didn't find fontdir in fontutil.pc... 16357 if test "x${FONTROOTDIR}" = "x"; then 16358 FONTROOTDIR="${datadir}/fonts/X11" 16359 fi 16360 16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5 16362$as_echo "${FONTROOTDIR}" >&6; } 16363 16364 16365 16366 16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5 16368$as_echo_n "checking for directory for misc files... " >&6; } 16369 16370# Check whether --with-fontmiscdir was given. 16371if test "${with_fontmiscdir+set}" = set; then : 16372 withval=$with_fontmiscdir; FONTMISCDIR="${withval}" 16373else 16374 FONTMISCDIR='${FONTROOTDIR}/misc' 16375fi 16376 16377 16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5 16379$as_echo "${FONTMISCDIR}" >&6; } 16380 16381 16382 16383 16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5 16385$as_echo_n "checking for directory for OTF files... " >&6; } 16386 16387# Check whether --with-fontotfdir was given. 16388if test "${with_fontotfdir+set}" = set; then : 16389 withval=$with_fontotfdir; FONTOTFDIR="${withval}" 16390else 16391 FONTOTFDIR='${FONTROOTDIR}/OTF' 16392fi 16393 16394 16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5 16396$as_echo "${FONTOTFDIR}" >&6; } 16397 16398 16399 16400 16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5 16402$as_echo_n "checking for directory for TTF files... " >&6; } 16403 16404# Check whether --with-fontttfdir was given. 16405if test "${with_fontttfdir+set}" = set; then : 16406 withval=$with_fontttfdir; FONTTTFDIR="${withval}" 16407else 16408 FONTTTFDIR='${FONTROOTDIR}/TTF' 16409fi 16410 16411 16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5 16413$as_echo "${FONTTTFDIR}" >&6; } 16414 16415 16416 16417 16418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5 16419$as_echo_n "checking for directory for Type1 files... " >&6; } 16420 16421# Check whether --with-fonttype1dir was given. 16422if test "${with_fonttype1dir+set}" = set; then : 16423 withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}" 16424else 16425 FONTTYPE1DIR='${FONTROOTDIR}/Type1' 16426fi 16427 16428 16429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5 16430$as_echo "${FONTTYPE1DIR}" >&6; } 16431 16432 16433 16434 16435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5 16436$as_echo_n "checking for directory for 75dpi files... " >&6; } 16437 16438# Check whether --with-font75dpidir was given. 16439if test "${with_font75dpidir+set}" = set; then : 16440 withval=$with_font75dpidir; FONT75DPIDIR="${withval}" 16441else 16442 FONT75DPIDIR='${FONTROOTDIR}/75dpi' 16443fi 16444 16445 16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5 16447$as_echo "${FONT75DPIDIR}" >&6; } 16448 16449 16450 16451 16452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5 16453$as_echo_n "checking for directory for 100dpi files... " >&6; } 16454 16455# Check whether --with-font100dpidir was given. 16456if test "${with_font100dpidir+set}" = set; then : 16457 withval=$with_font100dpidir; FONT100DPIDIR="${withval}" 16458else 16459 FONT100DPIDIR='${FONTROOTDIR}/100dpi' 16460fi 16461 16462 16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5 16464$as_echo "${FONT100DPIDIR}" >&6; } 16465 16466 16467DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/" 16468if test "$cross_compiling" != yes; then 16469 as_ac_File=`$as_echo "ac_cv_file_${sysconfdir}/X11/fontpath.d" | $as_tr_sh` 16470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sysconfdir}/X11/fontpath.d" >&5 16471$as_echo_n "checking for ${sysconfdir}/X11/fontpath.d... " >&6; } 16472if eval \${$as_ac_File+:} false; then : 16473 $as_echo_n "(cached) " >&6 16474else 16475 test "$cross_compiling" = yes && 16476 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 16477if test -r "${sysconfdir}/X11/fontpath.d"; then 16478 eval "$as_ac_File=yes" 16479else 16480 eval "$as_ac_File=no" 16481fi 16482fi 16483eval ac_res=\$$as_ac_File 16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16485$as_echo "$ac_res" >&6; } 16486if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 16487 DEFAULT_FONT_PATH='catalogue:${sysconfdir}/X11/fontpath.d' 16488else 16489 case $host_os in 16490 darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;; 16491 esac 16492fi 16493 16494fi 16495 16496# Check whether --with-default-font-path was given. 16497if test "${with_default_font_path+set}" = set; then : 16498 withval=$with_default_font_path; FONTPATH="$withval" 16499else 16500 FONTPATH="${DEFAULT_FONT_PATH}" 16501fi 16502 16503 16504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5 16505$as_echo_n "checking for default font path... " >&6; } 16506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5 16507$as_echo "$FONTPATH" >&6; } 16508 16509 16510# Check whether --with-xkb-path was given. 16511if test "${with_xkb_path+set}" = set; then : 16512 withval=$with_xkb_path; XKBPATH="$withval" 16513else 16514 XKBPATH="${datadir}/X11/xkb" 16515fi 16516 16517 16518# Check whether --with-xkb-output was given. 16519if test "${with_xkb_output+set}" = set; then : 16520 withval=$with_xkb_output; XKBOUTPUT="$withval" 16521else 16522 XKBOUTPUT="compiled" 16523fi 16524 16525 16526# Check whether --with-default-xkb-rules was given. 16527if test "${with_default_xkb_rules+set}" = set; then : 16528 withval=$with_default_xkb_rules; XKB_DFLT_RULES="$withval" 16529else 16530 XKB_DFLT_RULES="" 16531fi 16532 16533 16534# Check whether --with-default-xkb-model was given. 16535if test "${with_default_xkb_model+set}" = set; then : 16536 withval=$with_default_xkb_model; XKB_DFLT_MODEL="$withval" 16537else 16538 XKB_DFLT_MODEL="pc105" 16539fi 16540 16541 16542# Check whether --with-default-xkb-layout was given. 16543if test "${with_default_xkb_layout+set}" = set; then : 16544 withval=$with_default_xkb_layout; XKB_DFLT_LAYOUT="$withval" 16545else 16546 XKB_DFLT_LAYOUT="us" 16547fi 16548 16549 16550# Check whether --with-default-xkb-variant was given. 16551if test "${with_default_xkb_variant+set}" = set; then : 16552 withval=$with_default_xkb_variant; XKB_DFLT_VARIANT="$withval" 16553else 16554 XKB_DFLT_VARIANT="" 16555fi 16556 16557 16558# Check whether --with-default-xkb-options was given. 16559if test "${with_default_xkb_options+set}" = set; then : 16560 withval=$with_default_xkb_options; XKB_DFLT_OPTIONS="$withval" 16561else 16562 XKB_DFLT_OPTIONS="" 16563fi 16564 16565 16566# Check whether --with-serverconfig-path was given. 16567if test "${with_serverconfig_path+set}" = set; then : 16568 withval=$with_serverconfig_path; SERVERCONFIG="$withval" 16569else 16570 SERVERCONFIG="${libdir}/xorg" 16571fi 16572 16573 16574# Check whether --with-apple-applications-dir was given. 16575if test "${with_apple_applications_dir+set}" = set; then : 16576 withval=$with_apple_applications_dir; APPLE_APPLICATIONS_DIR="${withval}" 16577else 16578 APPLE_APPLICATIONS_DIR="/Applications/Utilities" 16579fi 16580 16581 16582 16583# Check whether --with-apple-application-name was given. 16584if test "${with_apple_application_name+set}" = set; then : 16585 withval=$with_apple_application_name; APPLE_APPLICATION_NAME="${withval}" 16586else 16587 APPLE_APPLICATION_NAME="X11" 16588fi 16589 16590 16591 16592# Check whether --with-launchd-id-prefix was given. 16593if test "${with_launchd_id_prefix+set}" = set; then : 16594 withval=$with_launchd_id_prefix; LAUNCHD_ID_PREFIX="${withval}" 16595else 16596 LAUNCHD_ID_PREFIX="org.x" 16597fi 16598 16599 16600 16601cat >>confdefs.h <<_ACEOF 16602#define LAUNCHD_ID_PREFIX "$LAUNCHD_ID_PREFIX" 16603_ACEOF 16604 16605# Check whether --enable-sparkle was given. 16606if test "${enable_sparkle+set}" = set; then : 16607 enableval=$enable_sparkle; XQUARTZ_SPARKLE="${enableval}" 16608else 16609 XQUARTZ_SPARKLE="no" 16610fi 16611 16612 16613# Check whether --enable-install-libxf86config was given. 16614if test "${enable_install_libxf86config+set}" = set; then : 16615 enableval=$enable_install_libxf86config; INSTALL_LIBXF86CONFIG=$enableval 16616else 16617 INSTALL_LIBXF86CONFIG=no 16618fi 16619 16620# Check whether --enable-visibility was given. 16621if test "${enable_visibility+set}" = set; then : 16622 enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval 16623else 16624 SYMBOL_VISIBILITY=auto 16625fi 16626 16627# Check whether --enable-pc98 was given. 16628if test "${enable_pc98+set}" = set; then : 16629 enableval=$enable_pc98; SUPPORT_PC98=$enableval 16630else 16631 SUPPORT_PC98=auto 16632fi 16633 16634 16635# Check whether --enable-aiglx was given. 16636if test "${enable_aiglx+set}" = set; then : 16637 enableval=$enable_aiglx; AIGLX=$enableval 16638else 16639 AIGLX=yes 16640fi 16641 16642 16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 16644$as_echo_n "checking for thread local storage (TLS) class... " >&6; } 16645 if ${ac_cv_tls+:} false; then : 16646 $as_echo_n "(cached) " >&6 16647else 16648 16649 ax_tls_keywords="__thread __declspec(thread) none" 16650 for ax_tls_keyword in $ax_tls_keywords; do 16651 case $ax_tls_keyword in 16652 none) ac_cv_tls=none ; break ;; 16653 *) 16654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16655/* end confdefs.h. */ 16656#include <stdlib.h> 16657 static void 16658 foo(void) { 16659 static $ax_tls_keyword int bar; 16660 exit(1); 16661 } 16662int 16663main () 16664{ 16665 16666 ; 16667 return 0; 16668} 16669_ACEOF 16670if ac_fn_c_try_compile "$LINENO"; then : 16671 ac_cv_tls=$ax_tls_keyword ; break 16672else 16673 ac_cv_tls=none 16674 16675fi 16676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16677 esac 16678 done 16679 16680fi 16681 16682 16683 if test "$ac_cv_tls" != "none"; then 16684 16685cat >>confdefs.h <<_ACEOF 16686#define TLS $ac_cv_tls 16687_ACEOF 16688 16689 fi 16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 16691$as_echo "$ac_cv_tls" >&6; } 16692 16693# Check whether --enable-glx-tls was given. 16694if test "${enable_glx_tls+set}" = set; then : 16695 enableval=$enable_glx_tls; GLX_USE_TLS=$enableval 16696 if test "x$GLX_USE_TLS" = "xyes" && test "${ac_cv_tls}" = "none" ; then 16697 as_fn_error $? "GLX with TLS support requested, but the compiler does not support it." "$LINENO" 5 16698 fi 16699else 16700 GLX_USE_TLS=no 16701 if test "${ac_cv_tls}" != "none" ; then 16702 GLX_USE_TLS=yes 16703 fi 16704fi 16705 16706GLX_TLS=${GLX_USE_TLS} 16707 16708 16709# Check whether --enable-registry was given. 16710if test "${enable_registry+set}" = set; then : 16711 enableval=$enable_registry; XREGISTRY=$enableval 16712else 16713 XREGISTRY=yes 16714fi 16715 16716# Check whether --enable-composite was given. 16717if test "${enable_composite+set}" = set; then : 16718 enableval=$enable_composite; COMPOSITE=$enableval 16719else 16720 COMPOSITE=yes 16721fi 16722 16723# Check whether --enable-mitshm was given. 16724if test "${enable_mitshm+set}" = set; then : 16725 enableval=$enable_mitshm; MITSHM=$enableval 16726else 16727 MITSHM=yes 16728fi 16729 16730# Check whether --enable-xres was given. 16731if test "${enable_xres+set}" = set; then : 16732 enableval=$enable_xres; RES=$enableval 16733else 16734 RES=yes 16735fi 16736 16737# Check whether --enable-record was given. 16738if test "${enable_record+set}" = set; then : 16739 enableval=$enable_record; RECORD=$enableval 16740else 16741 RECORD=yes 16742fi 16743 16744# Check whether --enable-xv was given. 16745if test "${enable_xv+set}" = set; then : 16746 enableval=$enable_xv; XV=$enableval 16747else 16748 XV=yes 16749fi 16750 16751# Check whether --enable-xvmc was given. 16752if test "${enable_xvmc+set}" = set; then : 16753 enableval=$enable_xvmc; XVMC=$enableval 16754else 16755 XVMC=yes 16756fi 16757 16758# Check whether --enable-dga was given. 16759if test "${enable_dga+set}" = set; then : 16760 enableval=$enable_dga; DGA=$enableval 16761else 16762 DGA=auto 16763fi 16764 16765# Check whether --enable-screensaver was given. 16766if test "${enable_screensaver+set}" = set; then : 16767 enableval=$enable_screensaver; SCREENSAVER=$enableval 16768else 16769 SCREENSAVER=yes 16770fi 16771 16772# Check whether --enable-xdmcp was given. 16773if test "${enable_xdmcp+set}" = set; then : 16774 enableval=$enable_xdmcp; XDMCP=$enableval 16775else 16776 XDMCP=auto 16777fi 16778 16779# Check whether --enable-xdm-auth-1 was given. 16780if test "${enable_xdm_auth_1+set}" = set; then : 16781 enableval=$enable_xdm_auth_1; XDMAUTH=$enableval 16782else 16783 XDMAUTH=auto 16784fi 16785 16786# Check whether --enable-glx was given. 16787if test "${enable_glx+set}" = set; then : 16788 enableval=$enable_glx; GLX=$enableval 16789else 16790 GLX=yes 16791fi 16792 16793# Check whether --enable-dri was given. 16794if test "${enable_dri+set}" = set; then : 16795 enableval=$enable_dri; DRI=$enableval 16796fi 16797 16798# Check whether --enable-dri2 was given. 16799if test "${enable_dri2+set}" = set; then : 16800 enableval=$enable_dri2; DRI2=$enableval 16801else 16802 DRI2=auto 16803fi 16804 16805# Check whether --enable-xinerama was given. 16806if test "${enable_xinerama+set}" = set; then : 16807 enableval=$enable_xinerama; XINERAMA=$enableval 16808else 16809 XINERAMA=yes 16810fi 16811 16812# Check whether --enable-xf86vidmode was given. 16813if test "${enable_xf86vidmode+set}" = set; then : 16814 enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval 16815else 16816 XF86VIDMODE=auto 16817fi 16818 16819# Check whether --enable-xace was given. 16820if test "${enable_xace+set}" = set; then : 16821 enableval=$enable_xace; XACE=$enableval 16822else 16823 XACE=yes 16824fi 16825 16826# Check whether --enable-xselinux was given. 16827if test "${enable_xselinux+set}" = set; then : 16828 enableval=$enable_xselinux; XSELINUX=$enableval 16829else 16830 XSELINUX=no 16831fi 16832 16833# Check whether --enable-xcsecurity was given. 16834if test "${enable_xcsecurity+set}" = set; then : 16835 enableval=$enable_xcsecurity; XCSECURITY=$enableval 16836else 16837 XCSECURITY=no 16838fi 16839 16840# Check whether --enable-xcalibrate was given. 16841if test "${enable_xcalibrate+set}" = set; then : 16842 enableval=$enable_xcalibrate; XCALIBRATE=$enableval 16843else 16844 XCALIBRATE=no 16845fi 16846 16847# Check whether --enable-tslib was given. 16848if test "${enable_tslib+set}" = set; then : 16849 enableval=$enable_tslib; TSLIB=$enableval 16850else 16851 TSLIB=no 16852fi 16853 16854# Check whether --enable-dbe was given. 16855if test "${enable_dbe+set}" = set; then : 16856 enableval=$enable_dbe; DBE=$enableval 16857else 16858 DBE=yes 16859fi 16860 16861# Check whether --enable-xf86bigfont was given. 16862if test "${enable_xf86bigfont+set}" = set; then : 16863 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval 16864else 16865 XF86BIGFONT=no 16866fi 16867 16868# Check whether --enable-dpms was given. 16869if test "${enable_dpms+set}" = set; then : 16870 enableval=$enable_dpms; DPMSExtension=$enableval 16871else 16872 DPMSExtension=yes 16873fi 16874 16875# Check whether --enable-config-udev was given. 16876if test "${enable_config_udev+set}" = set; then : 16877 enableval=$enable_config_udev; CONFIG_UDEV=$enableval 16878else 16879 CONFIG_UDEV=auto 16880fi 16881 16882# Check whether --enable-config-dbus was given. 16883if test "${enable_config_dbus+set}" = set; then : 16884 enableval=$enable_config_dbus; CONFIG_DBUS_API=$enableval 16885else 16886 CONFIG_DBUS_API=no 16887fi 16888 16889# Check whether --enable-config-hal was given. 16890if test "${enable_config_hal+set}" = set; then : 16891 enableval=$enable_config_hal; CONFIG_HAL=$enableval 16892else 16893 CONFIG_HAL=auto 16894fi 16895 16896# Check whether --enable-xfree86-utils was given. 16897if test "${enable_xfree86_utils+set}" = set; then : 16898 enableval=$enable_xfree86_utils; XF86UTILS=$enableval 16899else 16900 XF86UTILS=yes 16901fi 16902 16903# Check whether --enable-xaa was given. 16904if test "${enable_xaa+set}" = set; then : 16905 enableval=$enable_xaa; XAA=$enableval 16906else 16907 XAA=yes 16908fi 16909 16910# Check whether --enable-vgahw was given. 16911if test "${enable_vgahw+set}" = set; then : 16912 enableval=$enable_vgahw; VGAHW=$enableval 16913else 16914 VGAHW=yes 16915fi 16916 16917# Check whether --enable-vbe was given. 16918if test "${enable_vbe+set}" = set; then : 16919 enableval=$enable_vbe; VBE=$enableval 16920else 16921 VBE=yes 16922fi 16923 16924# Check whether --enable-int10-module was given. 16925if test "${enable_int10_module+set}" = set; then : 16926 enableval=$enable_int10_module; INT10MODULE=$enableval 16927else 16928 INT10MODULE=yes 16929fi 16930 16931# Check whether --enable-windowswm was given. 16932if test "${enable_windowswm+set}" = set; then : 16933 enableval=$enable_windowswm; WINDOWSWM=$enableval 16934else 16935 WINDOWSWM=no 16936fi 16937 16938# Check whether --enable-libdrm was given. 16939if test "${enable_libdrm+set}" = set; then : 16940 enableval=$enable_libdrm; DRM=$enableval 16941else 16942 DRM=yes 16943fi 16944 16945 16946# Check whether --enable-xorg was given. 16947if test "${enable_xorg+set}" = set; then : 16948 enableval=$enable_xorg; XORG=$enableval 16949else 16950 XORG=auto 16951fi 16952 16953# Check whether --enable-dmx was given. 16954if test "${enable_dmx+set}" = set; then : 16955 enableval=$enable_dmx; DMX=$enableval 16956else 16957 DMX=auto 16958fi 16959 16960# Check whether --enable-xvfb was given. 16961if test "${enable_xvfb+set}" = set; then : 16962 enableval=$enable_xvfb; XVFB=$enableval 16963else 16964 XVFB=yes 16965fi 16966 16967# Check whether --enable-xnest was given. 16968if test "${enable_xnest+set}" = set; then : 16969 enableval=$enable_xnest; XNEST=$enableval 16970else 16971 XNEST=auto 16972fi 16973 16974# Check whether --enable-xquartz was given. 16975if test "${enable_xquartz+set}" = set; then : 16976 enableval=$enable_xquartz; XQUARTZ=$enableval 16977else 16978 XQUARTZ=auto 16979fi 16980 16981# Check whether --enable-standalone-xpbproxy was given. 16982if test "${enable_standalone_xpbproxy+set}" = set; then : 16983 enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval 16984else 16985 STANDALONE_XPBPROXY=no 16986fi 16987 16988# Check whether --enable-xwin was given. 16989if test "${enable_xwin+set}" = set; then : 16990 enableval=$enable_xwin; XWIN=$enableval 16991else 16992 XWIN=auto 16993fi 16994 16995# Check whether --enable-kdrive was given. 16996if test "${enable_kdrive+set}" = set; then : 16997 enableval=$enable_kdrive; KDRIVE=$enableval 16998else 16999 KDRIVE=no 17000fi 17001 17002# Check whether --enable-xephyr was given. 17003if test "${enable_xephyr+set}" = set; then : 17004 enableval=$enable_xephyr; XEPHYR=$enableval 17005else 17006 XEPHYR=auto 17007fi 17008 17009# Check whether --enable-xfake was given. 17010if test "${enable_xfake+set}" = set; then : 17011 enableval=$enable_xfake; XFAKE=$enableval 17012else 17013 XFAKE=auto 17014fi 17015 17016# Check whether --enable-xfbdev was given. 17017if test "${enable_xfbdev+set}" = set; then : 17018 enableval=$enable_xfbdev; XFBDEV=$enableval 17019else 17020 XFBDEV=auto 17021fi 17022 17023# Check whether --enable-kdrive-kbd was given. 17024if test "${enable_kdrive_kbd+set}" = set; then : 17025 enableval=$enable_kdrive_kbd; KDRIVE_KBD=$enableval 17026else 17027 KDRIVE_KBD=auto 17028fi 17029 17030# Check whether --enable-kdrive-mouse was given. 17031if test "${enable_kdrive_mouse+set}" = set; then : 17032 enableval=$enable_kdrive_mouse; KDRIVE_MOUSE=$enableval 17033else 17034 KDRIVE_MOUSE=auto 17035fi 17036 17037# Check whether --enable-kdrive-evdev was given. 17038if test "${enable_kdrive_evdev+set}" = set; then : 17039 enableval=$enable_kdrive_evdev; KDRIVE_EVDEV=$enableval 17040else 17041 KDRIVE_EVDEV=auto 17042fi 17043 17044 17045 17046# Check whether --enable-install-setuid was given. 17047if test "${enable_install_setuid+set}" = set; then : 17048 enableval=$enable_install_setuid; SETUID=$enableval 17049else 17050 SETUID=auto 17051fi 17052 17053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we can install the Xorg server as root" >&5 17054$as_echo_n "checking to see if we can install the Xorg server as root... " >&6; } 17055if test "x$SETUID" = "xauto" ; then 17056 case $host_os in 17057 cygwin*) SETUID="no" ;; 17058 darwin*) SETUID="no" ;; 17059 *) 17060 case $host_cpu in 17061 sparc) SETUID="no" ;; 17062 *) SETUID="yes" ;; 17063 esac 17064 esac 17065 if test "x$SETUID" = xyes; then 17066 touch testfile 17067 chown root testfile > /dev/null 2>&1 || SETUID="no" 17068 rm -f testfile 17069 fi 17070fi 17071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETUID" >&5 17072$as_echo "$SETUID" >&6; } 17073 if test "x$SETUID" = "xyes"; then 17074 INSTALL_SETUID_TRUE= 17075 INSTALL_SETUID_FALSE='#' 17076else 17077 INSTALL_SETUID_TRUE='#' 17078 INSTALL_SETUID_FALSE= 17079fi 17080 17081 17082 17083 17084# Transport selection macro from xtrans.m4 17085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 17086$as_echo_n "checking return type of signal handlers... " >&6; } 17087if ${ac_cv_type_signal+:} false; then : 17088 $as_echo_n "(cached) " >&6 17089else 17090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17091/* end confdefs.h. */ 17092#include <sys/types.h> 17093#include <signal.h> 17094 17095int 17096main () 17097{ 17098return *(signal (0, 0)) (0) == 1; 17099 ; 17100 return 0; 17101} 17102_ACEOF 17103if ac_fn_c_try_compile "$LINENO"; then : 17104 ac_cv_type_signal=int 17105else 17106 ac_cv_type_signal=void 17107fi 17108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17109fi 17110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 17111$as_echo "$ac_cv_type_signal" >&6; } 17112 17113cat >>confdefs.h <<_ACEOF 17114#define RETSIGTYPE $ac_cv_type_signal 17115_ACEOF 17116 17117 17118 17119 17120 17121 case $host_os in 17122 mingw*) unixdef="no" ;; 17123 *) unixdef="yes" ;; 17124 esac 17125 # Check whether --enable-unix-transport was given. 17126if test "${enable_unix_transport+set}" = set; then : 17127 enableval=$enable_unix_transport; UNIXCONN=$enableval 17128else 17129 UNIXCONN=$unixdef 17130fi 17131 17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 17133$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 17134 if test "$UNIXCONN" = "yes"; then 17135 17136$as_echo "#define UNIXCONN 1" >>confdefs.h 17137 17138 fi 17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 17140$as_echo "$UNIXCONN" >&6; } 17141 # Check whether --enable-tcp-transport was given. 17142if test "${enable_tcp_transport+set}" = set; then : 17143 enableval=$enable_tcp_transport; TCPCONN=$enableval 17144else 17145 TCPCONN=yes 17146fi 17147 17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 17149$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 17151$as_echo "$TCPCONN" >&6; } 17152 if test "$TCPCONN" = "yes"; then 17153 17154$as_echo "#define TCPCONN 1" >>confdefs.h 17155 17156 17157 # SVR4 hides these in libraries other than libc 17158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 17159$as_echo_n "checking for library containing socket... " >&6; } 17160if ${ac_cv_search_socket+:} false; then : 17161 $as_echo_n "(cached) " >&6 17162else 17163 ac_func_search_save_LIBS=$LIBS 17164cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17165/* end confdefs.h. */ 17166 17167/* Override any GCC internal prototype to avoid an error. 17168 Use char because int might match the return type of a GCC 17169 builtin and then its argument prototype would still apply. */ 17170#ifdef __cplusplus 17171extern "C" 17172#endif 17173char socket (); 17174int 17175main () 17176{ 17177return socket (); 17178 ; 17179 return 0; 17180} 17181_ACEOF 17182for ac_lib in '' socket; do 17183 if test -z "$ac_lib"; then 17184 ac_res="none required" 17185 else 17186 ac_res=-l$ac_lib 17187 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17188 fi 17189 if ac_fn_c_try_link "$LINENO"; then : 17190 ac_cv_search_socket=$ac_res 17191fi 17192rm -f core conftest.err conftest.$ac_objext \ 17193 conftest$ac_exeext 17194 if ${ac_cv_search_socket+:} false; then : 17195 break 17196fi 17197done 17198if ${ac_cv_search_socket+:} false; then : 17199 17200else 17201 ac_cv_search_socket=no 17202fi 17203rm conftest.$ac_ext 17204LIBS=$ac_func_search_save_LIBS 17205fi 17206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 17207$as_echo "$ac_cv_search_socket" >&6; } 17208ac_res=$ac_cv_search_socket 17209if test "$ac_res" != no; then : 17210 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17211 17212fi 17213 17214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 17215$as_echo_n "checking for library containing gethostbyname... " >&6; } 17216if ${ac_cv_search_gethostbyname+:} false; then : 17217 $as_echo_n "(cached) " >&6 17218else 17219 ac_func_search_save_LIBS=$LIBS 17220cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17221/* end confdefs.h. */ 17222 17223/* Override any GCC internal prototype to avoid an error. 17224 Use char because int might match the return type of a GCC 17225 builtin and then its argument prototype would still apply. */ 17226#ifdef __cplusplus 17227extern "C" 17228#endif 17229char gethostbyname (); 17230int 17231main () 17232{ 17233return gethostbyname (); 17234 ; 17235 return 0; 17236} 17237_ACEOF 17238for ac_lib in '' nsl; do 17239 if test -z "$ac_lib"; then 17240 ac_res="none required" 17241 else 17242 ac_res=-l$ac_lib 17243 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17244 fi 17245 if ac_fn_c_try_link "$LINENO"; then : 17246 ac_cv_search_gethostbyname=$ac_res 17247fi 17248rm -f core conftest.err conftest.$ac_objext \ 17249 conftest$ac_exeext 17250 if ${ac_cv_search_gethostbyname+:} false; then : 17251 break 17252fi 17253done 17254if ${ac_cv_search_gethostbyname+:} false; then : 17255 17256else 17257 ac_cv_search_gethostbyname=no 17258fi 17259rm conftest.$ac_ext 17260LIBS=$ac_func_search_save_LIBS 17261fi 17262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 17263$as_echo "$ac_cv_search_gethostbyname" >&6; } 17264ac_res=$ac_cv_search_gethostbyname 17265if test "$ac_res" != no; then : 17266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17267 17268fi 17269 17270 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 17272$as_echo_n "checking for main in -lws2_32... " >&6; } 17273if ${ac_cv_lib_ws2_32_main+:} false; then : 17274 $as_echo_n "(cached) " >&6 17275else 17276 ac_check_lib_save_LIBS=$LIBS 17277LIBS="-lws2_32 $LIBS" 17278cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17279/* end confdefs.h. */ 17280 17281 17282int 17283main () 17284{ 17285return main (); 17286 ; 17287 return 0; 17288} 17289_ACEOF 17290if ac_fn_c_try_link "$LINENO"; then : 17291 ac_cv_lib_ws2_32_main=yes 17292else 17293 ac_cv_lib_ws2_32_main=no 17294fi 17295rm -f core conftest.err conftest.$ac_objext \ 17296 conftest$ac_exeext conftest.$ac_ext 17297LIBS=$ac_check_lib_save_LIBS 17298fi 17299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 17300$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 17301if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 17302 cat >>confdefs.h <<_ACEOF 17303#define HAVE_LIBWS2_32 1 17304_ACEOF 17305 17306 LIBS="-lws2_32 $LIBS" 17307 17308fi 17309ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 17310 17311 fi 17312 17313 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 17314 # Check whether --enable-ipv6 was given. 17315if test "${enable_ipv6+set}" = set; then : 17316 enableval=$enable_ipv6; IPV6CONN=$enableval 17317else 17318 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 17319if test "x$ac_cv_func_getaddrinfo" = xyes; then : 17320 IPV6CONN=yes 17321else 17322 IPV6CONN=no 17323fi 17324 17325fi 17326 17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 17328$as_echo_n "checking if IPv6 support should be built... " >&6; } 17329 if test "$IPV6CONN" = "yes"; then 17330 17331$as_echo "#define IPv6 1" >>confdefs.h 17332 17333 fi 17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 17335$as_echo "$IPV6CONN" >&6; } 17336 17337 # 4.3BSD-Reno added a new member to struct sockaddr_in 17338 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 17339#include <sys/types.h> 17340#include <sys/socket.h> 17341#include <netinet/in.h> 17342 17343" 17344if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 17345 17346$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 17347 17348fi 17349 17350 17351 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 17352 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 17353$ac_includes_default 17354#include <sys/socket.h> 17355" 17356if test "x$ac_cv_type_socklen_t" = xyes; then : 17357 17358cat >>confdefs.h <<_ACEOF 17359#define HAVE_SOCKLEN_T 1 17360_ACEOF 17361 17362 17363fi 17364 17365 17366 17367 fi 17368 case $host_os in 17369 solaris*|sco*|sysv4*) localdef="yes" ;; 17370 *) localdef="no" ;; 17371 esac 17372 # Check whether --enable-local-transport was given. 17373if test "${enable_local_transport+set}" = set; then : 17374 enableval=$enable_local_transport; LOCALCONN=$enableval 17375else 17376 LOCALCONN=$localdef 17377fi 17378 17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 17380$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 17382$as_echo "$LOCALCONN" >&6; } 17383 if test "$LOCALCONN" = "yes"; then 17384 17385$as_echo "#define LOCALCONN 1" >>confdefs.h 17386 17387 fi 17388 17389 17390 17391# Secure RPC detection macro from xtrans.m4 17392 17393 # Check whether --enable-secure-rpc was given. 17394if test "${enable_secure_rpc+set}" = set; then : 17395 enableval=$enable_secure_rpc; SECURE_RPC=$enableval 17396else 17397 SECURE_RPC="try" 17398fi 17399 17400 17401 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 17402 FOUND_SECURE_RPC="no" 17403 for ac_func in authdes_seccreate authdes_create 17404do : 17405 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17406ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17407if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17408 cat >>confdefs.h <<_ACEOF 17409#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17410_ACEOF 17411 FOUND_SECURE_RPC="yes" 17412fi 17413done 17414 17415 if test "x$FOUND_SECURE_RPC" = "xno" ; then 17416 if test "x$SECURE_RPC" = "xyes" ; then 17417 as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5 17418 fi 17419 SECURE_RPC="no" 17420 else 17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5 17422$as_echo_n "checking for library containing getsecretkey... " >&6; } 17423if ${ac_cv_search_getsecretkey+:} false; then : 17424 $as_echo_n "(cached) " >&6 17425else 17426 ac_func_search_save_LIBS=$LIBS 17427cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17428/* end confdefs.h. */ 17429 17430/* Override any GCC internal prototype to avoid an error. 17431 Use char because int might match the return type of a GCC 17432 builtin and then its argument prototype would still apply. */ 17433#ifdef __cplusplus 17434extern "C" 17435#endif 17436char getsecretkey (); 17437int 17438main () 17439{ 17440return getsecretkey (); 17441 ; 17442 return 0; 17443} 17444_ACEOF 17445for ac_lib in '' rpcsvc; do 17446 if test -z "$ac_lib"; then 17447 ac_res="none required" 17448 else 17449 ac_res=-l$ac_lib 17450 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17451 fi 17452 if ac_fn_c_try_link "$LINENO"; then : 17453 ac_cv_search_getsecretkey=$ac_res 17454fi 17455rm -f core conftest.err conftest.$ac_objext \ 17456 conftest$ac_exeext 17457 if ${ac_cv_search_getsecretkey+:} false; then : 17458 break 17459fi 17460done 17461if ${ac_cv_search_getsecretkey+:} false; then : 17462 17463else 17464 ac_cv_search_getsecretkey=no 17465fi 17466rm conftest.$ac_ext 17467LIBS=$ac_func_search_save_LIBS 17468fi 17469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5 17470$as_echo "$ac_cv_search_getsecretkey" >&6; } 17471ac_res=$ac_cv_search_getsecretkey 17472if test "$ac_res" != no; then : 17473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17474 17475fi 17476 17477 SECURE_RPC="yes" 17478 fi 17479 fi 17480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5 17481$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; } 17482 if test "x$SECURE_RPC" = "xyes" ; then 17483 17484$as_echo "#define SECURE_RPC 1" >>confdefs.h 17485 17486 fi 17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5 17488$as_echo "$SECURE_RPC" >&6; } 17489 17490 if test "x$SECURE_RPC" = xyes; then 17491 SECURE_RPC_TRUE= 17492 SECURE_RPC_FALSE='#' 17493else 17494 SECURE_RPC_TRUE='#' 17495 SECURE_RPC_FALSE= 17496fi 17497 17498 17499 if test "x$INT10" = xvm86; then 17500 INT10_VM86_TRUE= 17501 INT10_VM86_FALSE='#' 17502else 17503 INT10_VM86_TRUE='#' 17504 INT10_VM86_FALSE= 17505fi 17506 17507 if test "x$INT10" = xx86emu; then 17508 INT10_X86EMU_TRUE= 17509 INT10_X86EMU_FALSE='#' 17510else 17511 INT10_X86EMU_TRUE='#' 17512 INT10_X86EMU_FALSE= 17513fi 17514 17515 if test "x$INT10" = xstub; then 17516 INT10_STUB_TRUE= 17517 INT10_STUB_FALSE='#' 17518else 17519 INT10_STUB_TRUE='#' 17520 INT10_STUB_FALSE= 17521fi 17522 17523if test "x$INT10" = xyes; then 17524 for ac_header in sys/vm86.h sys/io.h 17525do : 17526 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17527ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17528if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17529 cat >>confdefs.h <<_ACEOF 17530#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17531_ACEOF 17532 17533fi 17534 17535done 17536 17537fi 17538 17539 17540 17541# Check whether --enable-docs was given. 17542if test "${enable_docs+set}" = set; then : 17543 enableval=$enable_docs; build_docs=$enableval 17544else 17545 build_docs=yes 17546fi 17547 17548 17549 if test x$build_docs = xyes; then 17550 ENABLE_DOCS_TRUE= 17551 ENABLE_DOCS_FALSE='#' 17552else 17553 ENABLE_DOCS_TRUE='#' 17554 ENABLE_DOCS_FALSE= 17555fi 17556 17557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 17558$as_echo_n "checking whether to build documentation... " >&6; } 17559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 17560$as_echo "$build_docs" >&6; } 17561 17562 17563 17564# Check whether --enable-devel-docs was given. 17565if test "${enable_devel_docs+set}" = set; then : 17566 enableval=$enable_devel_docs; build_devel_docs=$enableval 17567else 17568 build_devel_docs=yes 17569fi 17570 17571 17572 if test x$build_devel_docs = xyes; then 17573 ENABLE_DEVEL_DOCS_TRUE= 17574 ENABLE_DEVEL_DOCS_FALSE='#' 17575else 17576 ENABLE_DEVEL_DOCS_TRUE='#' 17577 ENABLE_DEVEL_DOCS_FALSE= 17578fi 17579 17580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 17581$as_echo_n "checking whether to build developer documentation... " >&6; } 17582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 17583$as_echo "$build_devel_docs" >&6; } 17584 17585 17586 17587 17588 17589# Check whether --with-xmlto was given. 17590if test "${with_xmlto+set}" = set; then : 17591 withval=$with_xmlto; use_xmlto=$withval 17592else 17593 use_xmlto=auto 17594fi 17595 17596 17597 17598if test "x$use_xmlto" = x"auto"; then 17599 # Extract the first word of "xmlto", so it can be a program name with args. 17600set dummy xmlto; ac_word=$2 17601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17602$as_echo_n "checking for $ac_word... " >&6; } 17603if ${ac_cv_path_XMLTO+:} false; then : 17604 $as_echo_n "(cached) " >&6 17605else 17606 case $XMLTO in 17607 [\\/]* | ?:[\\/]*) 17608 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17609 ;; 17610 *) 17611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17612for as_dir in $PATH 17613do 17614 IFS=$as_save_IFS 17615 test -z "$as_dir" && as_dir=. 17616 for ac_exec_ext in '' $ac_executable_extensions; do 17617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17618 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17620 break 2 17621 fi 17622done 17623 done 17624IFS=$as_save_IFS 17625 17626 ;; 17627esac 17628fi 17629XMLTO=$ac_cv_path_XMLTO 17630if test -n "$XMLTO"; then 17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17632$as_echo "$XMLTO" >&6; } 17633else 17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17635$as_echo "no" >&6; } 17636fi 17637 17638 17639 if test "x$XMLTO" = "x"; then 17640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 17641$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 17642 have_xmlto=no 17643 else 17644 have_xmlto=yes 17645 fi 17646elif test "x$use_xmlto" = x"yes" ; then 17647 # Extract the first word of "xmlto", so it can be a program name with args. 17648set dummy xmlto; ac_word=$2 17649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17650$as_echo_n "checking for $ac_word... " >&6; } 17651if ${ac_cv_path_XMLTO+:} false; then : 17652 $as_echo_n "(cached) " >&6 17653else 17654 case $XMLTO in 17655 [\\/]* | ?:[\\/]*) 17656 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17657 ;; 17658 *) 17659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17660for as_dir in $PATH 17661do 17662 IFS=$as_save_IFS 17663 test -z "$as_dir" && as_dir=. 17664 for ac_exec_ext in '' $ac_executable_extensions; do 17665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17666 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17668 break 2 17669 fi 17670done 17671 done 17672IFS=$as_save_IFS 17673 17674 ;; 17675esac 17676fi 17677XMLTO=$ac_cv_path_XMLTO 17678if test -n "$XMLTO"; then 17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17680$as_echo "$XMLTO" >&6; } 17681else 17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17683$as_echo "no" >&6; } 17684fi 17685 17686 17687 if test "x$XMLTO" = "x"; then 17688 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 17689 fi 17690 have_xmlto=yes 17691elif test "x$use_xmlto" = x"no" ; then 17692 if test "x$XMLTO" != "x"; then 17693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 17694$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 17695 fi 17696 have_xmlto=no 17697else 17698 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 17699fi 17700 17701# Test for a minimum version of xmlto, if provided. 17702if test "$have_xmlto" = yes; then 17703 # scrape the xmlto version 17704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 17705$as_echo_n "checking the xmlto version... " >&6; } 17706 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 17707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 17708$as_echo "$xmlto_version" >&6; } 17709 as_arg_v1=$xmlto_version 17710as_arg_v2=0.0.20 17711awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 17712case $? in #( 17713 1) : 17714 if test "x$use_xmlto" = xauto; then 17715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 17716$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 17717 have_xmlto=no 17718 else 17719 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 17720 fi ;; #( 17721 0) : 17722 ;; #( 17723 2) : 17724 ;; #( 17725 *) : 17726 ;; 17727esac 17728fi 17729 17730# Test for the ability of xmlto to generate a text target 17731have_xmlto_text=no 17732cat > conftest.xml << "EOF" 17733EOF 17734if test "$have_xmlto" = yes; then : 17735 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 17736 have_xmlto_text=yes 17737else 17738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 17739$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 17740fi 17741fi 17742rm -f conftest.xml 17743 if test $have_xmlto_text = yes; then 17744 HAVE_XMLTO_TEXT_TRUE= 17745 HAVE_XMLTO_TEXT_FALSE='#' 17746else 17747 HAVE_XMLTO_TEXT_TRUE='#' 17748 HAVE_XMLTO_TEXT_FALSE= 17749fi 17750 17751 if test "$have_xmlto" = yes; then 17752 HAVE_XMLTO_TRUE= 17753 HAVE_XMLTO_FALSE='#' 17754else 17755 HAVE_XMLTO_TRUE='#' 17756 HAVE_XMLTO_FALSE= 17757fi 17758 17759 17760 17761 17762 17763 17764# Check whether --with-fop was given. 17765if test "${with_fop+set}" = set; then : 17766 withval=$with_fop; use_fop=$withval 17767else 17768 use_fop=auto 17769fi 17770 17771 17772 17773if test "x$use_fop" = x"auto"; then 17774 # Extract the first word of "fop", so it can be a program name with args. 17775set dummy fop; ac_word=$2 17776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17777$as_echo_n "checking for $ac_word... " >&6; } 17778if ${ac_cv_path_FOP+:} false; then : 17779 $as_echo_n "(cached) " >&6 17780else 17781 case $FOP in 17782 [\\/]* | ?:[\\/]*) 17783 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 17784 ;; 17785 *) 17786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17787for as_dir in $PATH 17788do 17789 IFS=$as_save_IFS 17790 test -z "$as_dir" && as_dir=. 17791 for ac_exec_ext in '' $ac_executable_extensions; do 17792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17793 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 17794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17795 break 2 17796 fi 17797done 17798 done 17799IFS=$as_save_IFS 17800 17801 ;; 17802esac 17803fi 17804FOP=$ac_cv_path_FOP 17805if test -n "$FOP"; then 17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 17807$as_echo "$FOP" >&6; } 17808else 17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17810$as_echo "no" >&6; } 17811fi 17812 17813 17814 if test "x$FOP" = "x"; then 17815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 17816$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 17817 have_fop=no 17818 else 17819 have_fop=yes 17820 fi 17821elif test "x$use_fop" = x"yes" ; then 17822 # Extract the first word of "fop", so it can be a program name with args. 17823set dummy fop; ac_word=$2 17824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17825$as_echo_n "checking for $ac_word... " >&6; } 17826if ${ac_cv_path_FOP+:} false; then : 17827 $as_echo_n "(cached) " >&6 17828else 17829 case $FOP in 17830 [\\/]* | ?:[\\/]*) 17831 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 17832 ;; 17833 *) 17834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17835for as_dir in $PATH 17836do 17837 IFS=$as_save_IFS 17838 test -z "$as_dir" && as_dir=. 17839 for ac_exec_ext in '' $ac_executable_extensions; do 17840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17841 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 17842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17843 break 2 17844 fi 17845done 17846 done 17847IFS=$as_save_IFS 17848 17849 ;; 17850esac 17851fi 17852FOP=$ac_cv_path_FOP 17853if test -n "$FOP"; then 17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 17855$as_echo "$FOP" >&6; } 17856else 17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17858$as_echo "no" >&6; } 17859fi 17860 17861 17862 if test "x$FOP" = "x"; then 17863 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 17864 fi 17865 have_fop=yes 17866elif test "x$use_fop" = x"no" ; then 17867 if test "x$FOP" != "x"; then 17868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 17869$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 17870 fi 17871 have_fop=no 17872else 17873 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 17874fi 17875 if test "$have_fop" = yes; then 17876 HAVE_FOP_TRUE= 17877 HAVE_FOP_FALSE='#' 17878else 17879 HAVE_FOP_TRUE='#' 17880 HAVE_FOP_FALSE= 17881fi 17882 17883 17884 17885 if test "x$INSTALL_LIBXF86CONFIG" = xyes; then 17886 INSTALL_LIBXF86CONFIG_TRUE= 17887 INSTALL_LIBXF86CONFIG_FALSE='#' 17888else 17889 INSTALL_LIBXF86CONFIG_TRUE='#' 17890 INSTALL_LIBXF86CONFIG_FALSE= 17891fi 17892 17893 17894case $host_os in 17895 cygwin*) 17896 DGA=no 17897 DRI2=no 17898 XF86VIDMODE=no 17899 XSELINUX=no 17900 XV=no 17901 ;; 17902 darwin*) 17903 DRI2=no 17904 17905 if test x$XQUARTZ = xauto; then 17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xquartz" >&5 17907$as_echo_n "checking whether to build Xquartz... " >&6; } 17908if ${xorg_cv_Carbon_framework+:} false; then : 17909 $as_echo_n "(cached) " >&6 17910else 17911 17912 save_LDFLAGS=$LDFLAGS 17913 LDFLAGS="$LDFLAGS -framework Carbon" 17914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17915/* end confdefs.h. */ 17916char FSFindFolder(); int main() { FSFindFolder(); return 0;} 17917_ACEOF 17918if ac_fn_c_try_link "$LINENO"; then : 17919 xorg_cv_Carbon_framework=yes 17920else 17921 xorg_cv_Carbon_framework=no 17922fi 17923rm -f core conftest.err conftest.$ac_objext \ 17924 conftest$ac_exeext conftest.$ac_ext 17925 LDFLAGS=$save_LDFLAGS 17926fi 17927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_Carbon_framework" >&5 17928$as_echo "$xorg_cv_Carbon_framework" >&6; } 17929 17930 if test "X$xorg_cv_Carbon_framework" = Xyes; then 17931 XQUARTZ=yes 17932 else 17933 XQUARTZ=no 17934 fi 17935 fi 17936 17937 if test "x$XQUARTZ" = xyes ; then 17938 XQUARTZ=yes 17939 XVFB=no 17940 XNEST=no 17941 17942 COMPOSITE=no 17943 DGA=no 17944 DPMSExtension=no 17945 XF86VIDMODE=no 17946 fi 17947 ;; 17948 *) XQUARTZ=no ;; 17949esac 17950 17951XEXT_INC='-I$(top_srcdir)/Xext' 17952XEXT_LIB='$(top_builddir)/Xext/libXext.la' 17953XEXTXORG_LIB='$(top_builddir)/Xext/libXextbuiltin.la' 17954 17955VIDEOPROTO="videoproto" 17956COMPOSITEPROTO="compositeproto >= 0.4" 17957RECORDPROTO="recordproto >= 1.13.99.1" 17958SCRNSAVERPROTO="scrnsaverproto >= 1.1" 17959RESOURCEPROTO="resourceproto" 17960DRIPROTO="xf86driproto >= 2.1.0" 17961DRI2PROTO="dri2proto >= 2.3" 17962XINERAMAPROTO="xineramaproto" 17963BIGFONTPROTO="xf86bigfontproto >= 1.2.0" 17964XCALIBRATEPROTO="xcalibrateproto" 17965DGAPROTO="xf86dgaproto >= 2.0.99.1" 17966GLPROTO="glproto >= 1.4.10" 17967DMXPROTO="dmxproto >= 2.2.99.1" 17968VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1" 17969WINDOWSWMPROTO="windowswmproto" 17970APPLEWMPROTO="applewmproto >= 1.4" 17971 17972SDK_REQUIRED_MODULES="xproto >= 7.0.17 randrproto >= 1.2.99.3 renderproto >= 0.11 xextproto >= 7.1.99 inputproto >= 1.9.99.902 kbproto >= 1.0.3 fontsproto" 17973# Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc 17974 17975 17976LIBAPPLEWM="applewm >= 1.4" 17977LIBDMX="dmx >= 1.0.99.1" 17978LIBDRI="dri >= 7.8.0" 17979LIBDRM="libdrm >= 2.3.0" 17980LIBGL="gl >= 7.1.0" 17981LIBXEXT="xext >= 1.0.99.4" 17982LIBXFONT="xfont >= 1.4.2" 17983LIBXI="xi >= 1.2.99.1" 17984LIBXTST="xtst >= 1.0.99.2" 17985LIBPCIACCESS="pciaccess >= 0.8.0" 17986LIBGLIB="glib-2.0 >= 2.16" 17987LIBUDEV="libudev >= 143" 17988LIBSELINUX="libselinux >= 2.0.86" 17989LIBDBUS="dbus-1 >= 1.0" 17990LIBPIXMAN="pixman-1 >= 0.15.20" 17991 17992 17993pkg_failed=no 17994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5 17995$as_echo_n "checking for PIXMAN... " >&6; } 17996 17997if test -n "$PIXMAN_CFLAGS"; then 17998 pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS" 17999 elif test -n "$PKG_CONFIG"; then 18000 if test -n "$PKG_CONFIG" && \ 18001 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5 18002 ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5 18003 ac_status=$? 18004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18005 test $ac_status = 0; }; then 18006 pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$LIBPIXMAN" 2>/dev/null` 18007 test "x$?" != "x0" && pkg_failed=yes 18008else 18009 pkg_failed=yes 18010fi 18011 else 18012 pkg_failed=untried 18013fi 18014if test -n "$PIXMAN_LIBS"; then 18015 pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS" 18016 elif test -n "$PKG_CONFIG"; then 18017 if test -n "$PKG_CONFIG" && \ 18018 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5 18019 ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5 18020 ac_status=$? 18021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18022 test $ac_status = 0; }; then 18023 pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$LIBPIXMAN" 2>/dev/null` 18024 test "x$?" != "x0" && pkg_failed=yes 18025else 18026 pkg_failed=yes 18027fi 18028 else 18029 pkg_failed=untried 18030fi 18031 18032 18033 18034if test $pkg_failed = yes; then 18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18036$as_echo "no" >&6; } 18037 18038if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18039 _pkg_short_errors_supported=yes 18040else 18041 _pkg_short_errors_supported=no 18042fi 18043 if test $_pkg_short_errors_supported = yes; then 18044 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPIXMAN" 2>&1` 18045 else 18046 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPIXMAN" 2>&1` 18047 fi 18048 # Put the nasty error message in config.log where it belongs 18049 echo "$PIXMAN_PKG_ERRORS" >&5 18050 18051 as_fn_error $? "Package requirements ($LIBPIXMAN) were not met: 18052 18053$PIXMAN_PKG_ERRORS 18054 18055Consider adjusting the PKG_CONFIG_PATH environment variable if you 18056installed software in a non-standard prefix. 18057 18058Alternatively, you may set the environment variables PIXMAN_CFLAGS 18059and PIXMAN_LIBS to avoid the need to call pkg-config. 18060See the pkg-config man page for more details." "$LINENO" 5 18061elif test $pkg_failed = untried; then 18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18063$as_echo "no" >&6; } 18064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18066as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18067is in your PATH or set the PKG_CONFIG environment variable to the full 18068path to pkg-config. 18069 18070Alternatively, you may set the environment variables PIXMAN_CFLAGS 18071and PIXMAN_LIBS to avoid the need to call pkg-config. 18072See the pkg-config man page for more details. 18073 18074To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18075See \`config.log' for more details" "$LINENO" 5; } 18076else 18077 PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS 18078 PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS 18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18080$as_echo "yes" >&6; } 18081 18082fi 18083REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau" 18084 18085REQUIRED_MODULES="fixesproto >= 4.1 damageproto >= 1.1 xcmiscproto >= 1.2.0 xtrans >= 1.2.2 bigreqsproto >= 1.1.0 $SDK_REQUIRED_MODULES" 18086 18087if test "x$CONFIG_UDEV" = xyes && 18088 { test "x$CONFIG_DBUS_API" = xyes || test "x$CONFIG_HAL" = xyes; }; then 18089 as_fn_error $? "Hotplugging through both libudev and dbus/hal not allowed" "$LINENO" 5 18090fi 18091 18092 18093pkg_failed=no 18094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 18095$as_echo_n "checking for UDEV... " >&6; } 18096 18097if test -n "$UDEV_CFLAGS"; then 18098 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" 18099 elif test -n "$PKG_CONFIG"; then 18100 if test -n "$PKG_CONFIG" && \ 18101 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5 18102 ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5 18103 ac_status=$? 18104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18105 test $ac_status = 0; }; then 18106 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "$LIBUDEV" 2>/dev/null` 18107 test "x$?" != "x0" && pkg_failed=yes 18108else 18109 pkg_failed=yes 18110fi 18111 else 18112 pkg_failed=untried 18113fi 18114if test -n "$UDEV_LIBS"; then 18115 pkg_cv_UDEV_LIBS="$UDEV_LIBS" 18116 elif test -n "$PKG_CONFIG"; then 18117 if test -n "$PKG_CONFIG" && \ 18118 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5 18119 ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5 18120 ac_status=$? 18121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18122 test $ac_status = 0; }; then 18123 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "$LIBUDEV" 2>/dev/null` 18124 test "x$?" != "x0" && pkg_failed=yes 18125else 18126 pkg_failed=yes 18127fi 18128 else 18129 pkg_failed=untried 18130fi 18131 18132 18133 18134if test $pkg_failed = yes; then 18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18136$as_echo "no" >&6; } 18137 18138if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18139 _pkg_short_errors_supported=yes 18140else 18141 _pkg_short_errors_supported=no 18142fi 18143 if test $_pkg_short_errors_supported = yes; then 18144 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBUDEV" 2>&1` 18145 else 18146 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBUDEV" 2>&1` 18147 fi 18148 # Put the nasty error message in config.log where it belongs 18149 echo "$UDEV_PKG_ERRORS" >&5 18150 18151 HAVE_LIBUDEV=no 18152elif test $pkg_failed = untried; then 18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18154$as_echo "no" >&6; } 18155 HAVE_LIBUDEV=no 18156else 18157 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS 18158 UDEV_LIBS=$pkg_cv_UDEV_LIBS 18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18160$as_echo "yes" >&6; } 18161 HAVE_LIBUDEV=yes 18162fi 18163if test "x$CONFIG_UDEV" = xauto; then 18164 CONFIG_UDEV="$HAVE_LIBUDEV" 18165fi 18166 if test "x$CONFIG_UDEV" = xyes; then 18167 CONFIG_UDEV_TRUE= 18168 CONFIG_UDEV_FALSE='#' 18169else 18170 CONFIG_UDEV_TRUE='#' 18171 CONFIG_UDEV_FALSE= 18172fi 18173 18174if test "x$CONFIG_UDEV" = xyes; then 18175 CONFIG_DBUS_API=no 18176 CONFIG_HAL=no 18177 if ! test "x$HAVE_LIBUDEV" = xyes; then 18178 as_fn_error $? "udev configuration API requested, but libudev is not installed" "$LINENO" 5 18179 fi 18180 18181$as_echo "#define CONFIG_UDEV 1" >>confdefs.h 18182 18183fi 18184 18185 18186pkg_failed=no 18187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5 18188$as_echo_n "checking for DBUS... " >&6; } 18189 18190if test -n "$DBUS_CFLAGS"; then 18191 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS" 18192 elif test -n "$PKG_CONFIG"; then 18193 if test -n "$PKG_CONFIG" && \ 18194 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5 18195 ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5 18196 ac_status=$? 18197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18198 test $ac_status = 0; }; then 18199 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$LIBDBUS" 2>/dev/null` 18200 test "x$?" != "x0" && pkg_failed=yes 18201else 18202 pkg_failed=yes 18203fi 18204 else 18205 pkg_failed=untried 18206fi 18207if test -n "$DBUS_LIBS"; then 18208 pkg_cv_DBUS_LIBS="$DBUS_LIBS" 18209 elif test -n "$PKG_CONFIG"; then 18210 if test -n "$PKG_CONFIG" && \ 18211 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5 18212 ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5 18213 ac_status=$? 18214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18215 test $ac_status = 0; }; then 18216 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$LIBDBUS" 2>/dev/null` 18217 test "x$?" != "x0" && pkg_failed=yes 18218else 18219 pkg_failed=yes 18220fi 18221 else 18222 pkg_failed=untried 18223fi 18224 18225 18226 18227if test $pkg_failed = yes; then 18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18229$as_echo "no" >&6; } 18230 18231if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18232 _pkg_short_errors_supported=yes 18233else 18234 _pkg_short_errors_supported=no 18235fi 18236 if test $_pkg_short_errors_supported = yes; then 18237 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDBUS" 2>&1` 18238 else 18239 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDBUS" 2>&1` 18240 fi 18241 # Put the nasty error message in config.log where it belongs 18242 echo "$DBUS_PKG_ERRORS" >&5 18243 18244 HAVE_DBUS=no 18245elif test $pkg_failed = untried; then 18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18247$as_echo "no" >&6; } 18248 HAVE_DBUS=no 18249else 18250 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS 18251 DBUS_LIBS=$pkg_cv_DBUS_LIBS 18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18253$as_echo "yes" >&6; } 18254 HAVE_DBUS=yes 18255fi 18256if test "x$HAVE_DBUS" = xyes; then 18257 18258$as_echo "#define HAVE_DBUS 1" >>confdefs.h 18259 18260fi 18261 if test "x$HAVE_DBUS" = xyes; then 18262 HAVE_DBUS_TRUE= 18263 HAVE_DBUS_FALSE='#' 18264else 18265 HAVE_DBUS_TRUE='#' 18266 HAVE_DBUS_FALSE= 18267fi 18268 18269 18270if test "x$CONFIG_DBUS_API" = xauto; then 18271 CONFIG_DBUS_API="$HAVE_DBUS" 18272fi 18273if test "x$CONFIG_DBUS_API" = xyes; then 18274 if ! test "x$HAVE_DBUS" = xyes; then 18275 as_fn_error $? "D-Bus configuration API requested, but D-Bus is not installed." "$LINENO" 5 18276 fi 18277 18278 18279$as_echo "#define CONFIG_DBUS_API 1" >>confdefs.h 18280 18281 CONFIG_NEED_DBUS="yes" 18282fi 18283 if test "x$CONFIG_DBUS_API" = xyes; then 18284 CONFIG_DBUS_API_TRUE= 18285 CONFIG_DBUS_API_FALSE='#' 18286else 18287 CONFIG_DBUS_API_TRUE='#' 18288 CONFIG_DBUS_API_FALSE= 18289fi 18290 18291 18292 18293pkg_failed=no 18294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HAL" >&5 18295$as_echo_n "checking for HAL... " >&6; } 18296 18297if test -n "$HAL_CFLAGS"; then 18298 pkg_cv_HAL_CFLAGS="$HAL_CFLAGS" 18299 elif test -n "$PKG_CONFIG"; then 18300 if test -n "$PKG_CONFIG" && \ 18301 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5 18302 ($PKG_CONFIG --exists --print-errors "hal") 2>&5 18303 ac_status=$? 18304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18305 test $ac_status = 0; }; then 18306 pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null` 18307 test "x$?" != "x0" && pkg_failed=yes 18308else 18309 pkg_failed=yes 18310fi 18311 else 18312 pkg_failed=untried 18313fi 18314if test -n "$HAL_LIBS"; then 18315 pkg_cv_HAL_LIBS="$HAL_LIBS" 18316 elif test -n "$PKG_CONFIG"; then 18317 if test -n "$PKG_CONFIG" && \ 18318 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5 18319 ($PKG_CONFIG --exists --print-errors "hal") 2>&5 18320 ac_status=$? 18321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18322 test $ac_status = 0; }; then 18323 pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null` 18324 test "x$?" != "x0" && pkg_failed=yes 18325else 18326 pkg_failed=yes 18327fi 18328 else 18329 pkg_failed=untried 18330fi 18331 18332 18333 18334if test $pkg_failed = yes; then 18335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18336$as_echo "no" >&6; } 18337 18338if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18339 _pkg_short_errors_supported=yes 18340else 18341 _pkg_short_errors_supported=no 18342fi 18343 if test $_pkg_short_errors_supported = yes; then 18344 HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hal" 2>&1` 18345 else 18346 HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hal" 2>&1` 18347 fi 18348 # Put the nasty error message in config.log where it belongs 18349 echo "$HAL_PKG_ERRORS" >&5 18350 18351 HAVE_HAL=no 18352elif test $pkg_failed = untried; then 18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18354$as_echo "no" >&6; } 18355 HAVE_HAL=no 18356else 18357 HAL_CFLAGS=$pkg_cv_HAL_CFLAGS 18358 HAL_LIBS=$pkg_cv_HAL_LIBS 18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18360$as_echo "yes" >&6; } 18361 HAVE_HAL=yes 18362fi 18363if test "x$CONFIG_HAL" = xauto; then 18364 CONFIG_HAL="$HAVE_HAL" 18365fi 18366if test "x$CONFIG_HAL" = xyes; then 18367 if ! test "x$HAVE_HAL" = xyes; then 18368 as_fn_error $? "HAL hotplug API requested, but HAL is not installed." "$LINENO" 5 18369 fi 18370 18371 18372$as_echo "#define CONFIG_HAL 1" >>confdefs.h 18373 18374 CONFIG_NEED_DBUS="yes" 18375fi 18376 if test "x$CONFIG_HAL" = xyes; then 18377 CONFIG_HAL_TRUE= 18378 CONFIG_HAL_FALSE='#' 18379else 18380 CONFIG_HAL_TRUE='#' 18381 CONFIG_HAL_FALSE= 18382fi 18383 18384 18385if test "x$CONFIG_NEED_DBUS" = xyes; then 18386 18387$as_echo "#define CONFIG_NEED_DBUS 1" >>confdefs.h 18388 18389fi 18390 if test "x$CONFIG_NEED_DBUS" = xyes; then 18391 CONFIG_NEED_DBUS_TRUE= 18392 CONFIG_NEED_DBUS_FALSE='#' 18393else 18394 CONFIG_NEED_DBUS_TRUE='#' 18395 CONFIG_NEED_DBUS_FALSE= 18396fi 18397 18398 18399if test "x$USE_SIGIO_BY_DEFAULT" = xyes; then 18400 USE_SIGIO_BY_DEFAULT_VALUE=TRUE 18401else 18402 USE_SIGIO_BY_DEFAULT_VALUE=FALSE 18403fi 18404 18405cat >>confdefs.h <<_ACEOF 18406#define USE_SIGIO_BY_DEFAULT $USE_SIGIO_BY_DEFAULT_VALUE 18407_ACEOF 18408 18409 18410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc..." >&5 18411$as_echo_n "checking for glibc...... " >&6; } 18412cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18413/* end confdefs.h. */ 18414 18415#include <features.h> 18416#ifndef __GLIBC__ 18417#error 18418#endif 18419 18420_ACEOF 18421if ac_fn_c_try_cpp "$LINENO"; then : 18422 glibc=yes 18423else 18424 glibc=no 18425fi 18426rm -f conftest.err conftest.i conftest.$ac_ext 18427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc" >&5 18428$as_echo "$glibc" >&6; } 18429 18430for ac_func in clock_gettime 18431do : 18432 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 18433if test "x$ac_cv_func_clock_gettime" = xyes; then : 18434 cat >>confdefs.h <<_ACEOF 18435#define HAVE_CLOCK_GETTIME 1 18436_ACEOF 18437 have_clock_gettime=yes 18438else 18439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 18440$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 18441if ${ac_cv_lib_rt_clock_gettime+:} false; then : 18442 $as_echo_n "(cached) " >&6 18443else 18444 ac_check_lib_save_LIBS=$LIBS 18445LIBS="-lrt $LIBS" 18446cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18447/* end confdefs.h. */ 18448 18449/* Override any GCC internal prototype to avoid an error. 18450 Use char because int might match the return type of a GCC 18451 builtin and then its argument prototype would still apply. */ 18452#ifdef __cplusplus 18453extern "C" 18454#endif 18455char clock_gettime (); 18456int 18457main () 18458{ 18459return clock_gettime (); 18460 ; 18461 return 0; 18462} 18463_ACEOF 18464if ac_fn_c_try_link "$LINENO"; then : 18465 ac_cv_lib_rt_clock_gettime=yes 18466else 18467 ac_cv_lib_rt_clock_gettime=no 18468fi 18469rm -f core conftest.err conftest.$ac_objext \ 18470 conftest$ac_exeext conftest.$ac_ext 18471LIBS=$ac_check_lib_save_LIBS 18472fi 18473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 18474$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 18475if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 18476 have_clock_gettime=-lrt 18477else 18478 have_clock_gettime=no 18479fi 18480 18481fi 18482done 18483 18484 18485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a useful monotonic clock ..." >&5 18486$as_echo_n "checking for a useful monotonic clock ...... " >&6; } 18487 18488if ! test "x$have_clock_gettime" = xno; then 18489 if ! test "x$have_clock_gettime" = xyes; then 18490 CLOCK_LIBS="$have_clock_gettime" 18491 else 18492 CLOCK_LIBS="" 18493 fi 18494 18495 LIBS_SAVE="$LIBS" 18496 LIBS="$CLOCK_LIBS" 18497 CPPFLAGS_SAVE="$CPPFLAGS" 18498 18499 if test x"$glibc" = xyes; then 18500 CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L" 18501 fi 18502 18503 if test "$cross_compiling" = yes; then : 18504 MONOTONIC_CLOCK="cross compiling" 18505else 18506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18507/* end confdefs.h. */ 18508 18509#include <time.h> 18510 18511int main(int argc, char *argv[]) { 18512 struct timespec tp; 18513 18514 if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0) 18515 return 0; 18516 else 18517 return 1; 18518} 18519 18520_ACEOF 18521if ac_fn_c_try_run "$LINENO"; then : 18522 MONOTONIC_CLOCK=yes 18523else 18524 MONOTONIC_CLOCK=no 18525fi 18526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18527 conftest.$ac_objext conftest.beam conftest.$ac_ext 18528fi 18529 18530 18531 LIBS="$LIBS_SAVE" 18532 CPPFLAGS="$CPPFLAGS_SAVE" 18533else 18534 MONOTONIC_CLOCK=no 18535fi 18536 18537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MONOTONIC_CLOCK" >&5 18538$as_echo "$MONOTONIC_CLOCK" >&6; } 18539 18540if test "x$MONOTONIC_CLOCK" = xyes; then 18541 18542$as_echo "#define MONOTONIC_CLOCK 1" >>confdefs.h 18543 18544 LIBS="$LIBS $CLOCK_LIBS" 18545fi 18546 18547 if test "x$XV" = xyes; then 18548 XV_TRUE= 18549 XV_FALSE='#' 18550else 18551 XV_TRUE='#' 18552 XV_FALSE= 18553fi 18554 18555if test "x$XV" = xyes; then 18556 18557$as_echo "#define XV 1" >>confdefs.h 18558 18559 18560$as_echo "#define XvExtension 1" >>confdefs.h 18561 18562 REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO" 18563 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $VIDEOPROTO" 18564else 18565 XVMC=no 18566fi 18567 18568 if test "x$XVMC" = xyes; then 18569 XVMC_TRUE= 18570 XVMC_FALSE='#' 18571else 18572 XVMC_TRUE='#' 18573 XVMC_FALSE= 18574fi 18575 18576if test "x$XVMC" = xyes; then 18577 18578$as_echo "#define XvMCExtension 1" >>confdefs.h 18579 18580fi 18581 18582 if test "x$XREGISTRY" = xyes; then 18583 XREGISTRY_TRUE= 18584 XREGISTRY_FALSE='#' 18585else 18586 XREGISTRY_TRUE='#' 18587 XREGISTRY_FALSE= 18588fi 18589 18590if test "x$XREGISTRY" = xyes; then 18591 18592$as_echo "#define XREGISTRY 1" >>confdefs.h 18593 18594fi 18595 18596 if test "x$COMPOSITE" = xyes; then 18597 COMPOSITE_TRUE= 18598 COMPOSITE_FALSE='#' 18599else 18600 COMPOSITE_TRUE='#' 18601 COMPOSITE_FALSE= 18602fi 18603 18604if test "x$COMPOSITE" = xyes; then 18605 18606$as_echo "#define COMPOSITE 1" >>confdefs.h 18607 18608 REQUIRED_MODULES="$REQUIRED_MODULES $COMPOSITEPROTO" 18609 COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la' 18610 COMPOSITE_INC='-I$(top_srcdir)/composite' 18611fi 18612 18613 if test "x$MITSHM" = xyes; then 18614 MITSHM_TRUE= 18615 MITSHM_FALSE='#' 18616else 18617 MITSHM_TRUE='#' 18618 MITSHM_FALSE= 18619fi 18620 18621if test "x$MITSHM" = xyes; then 18622 18623$as_echo "#define MITSHM 1" >>confdefs.h 18624 18625 18626$as_echo "#define HAS_SHM 1" >>confdefs.h 18627 18628fi 18629 18630 if test "x$RECORD" = xyes; then 18631 RECORD_TRUE= 18632 RECORD_FALSE='#' 18633else 18634 RECORD_TRUE='#' 18635 RECORD_FALSE= 18636fi 18637 18638if test "x$RECORD" = xyes; then 18639 18640$as_echo "#define XRECORD 1" >>confdefs.h 18641 18642 REQUIRED_MODULES="$REQUIRED_MODULES $RECORDPROTO" 18643 RECORD_LIB='$(top_builddir)/record/librecord.la' 18644fi 18645 18646 if test "x$SCREENSAVER" = xyes; then 18647 SCREENSAVER_TRUE= 18648 SCREENSAVER_FALSE='#' 18649else 18650 SCREENSAVER_TRUE='#' 18651 SCREENSAVER_FALSE= 18652fi 18653 18654if test "x$SCREENSAVER" = xyes; then 18655 18656$as_echo "#define SCREENSAVER 1" >>confdefs.h 18657 18658 REQUIRED_MODULES="$REQUIRED_MODULES $SCRNSAVERPROTO" 18659fi 18660 18661 if test "x$RES" = xyes; then 18662 RES_TRUE= 18663 RES_FALSE='#' 18664else 18665 RES_TRUE='#' 18666 RES_FALSE= 18667fi 18668 18669if test "x$RES" = xyes; then 18670 18671$as_echo "#define RES 1" >>confdefs.h 18672 18673 REQUIRED_MODULES="$REQUIRED_MODULES $RESOURCEPROTO" 18674fi 18675 18676if test "x$GLX" = xyes; then 18677 18678pkg_failed=no 18679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5 18680$as_echo_n "checking for XLIB... " >&6; } 18681 18682if test -n "$XLIB_CFLAGS"; then 18683 pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS" 18684 elif test -n "$PKG_CONFIG"; then 18685 if test -n "$PKG_CONFIG" && \ 18686 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 18687 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 18688 ac_status=$? 18689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18690 test $ac_status = 0; }; then 18691 pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 18692 test "x$?" != "x0" && pkg_failed=yes 18693else 18694 pkg_failed=yes 18695fi 18696 else 18697 pkg_failed=untried 18698fi 18699if test -n "$XLIB_LIBS"; then 18700 pkg_cv_XLIB_LIBS="$XLIB_LIBS" 18701 elif test -n "$PKG_CONFIG"; then 18702 if test -n "$PKG_CONFIG" && \ 18703 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 18704 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 18705 ac_status=$? 18706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18707 test $ac_status = 0; }; then 18708 pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 18709 test "x$?" != "x0" && pkg_failed=yes 18710else 18711 pkg_failed=yes 18712fi 18713 else 18714 pkg_failed=untried 18715fi 18716 18717 18718 18719if test $pkg_failed = yes; then 18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18721$as_echo "no" >&6; } 18722 18723if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18724 _pkg_short_errors_supported=yes 18725else 18726 _pkg_short_errors_supported=no 18727fi 18728 if test $_pkg_short_errors_supported = yes; then 18729 XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 18730 else 18731 XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 18732 fi 18733 # Put the nasty error message in config.log where it belongs 18734 echo "$XLIB_PKG_ERRORS" >&5 18735 18736 as_fn_error $? "Package requirements (x11) were not met: 18737 18738$XLIB_PKG_ERRORS 18739 18740Consider adjusting the PKG_CONFIG_PATH environment variable if you 18741installed software in a non-standard prefix. 18742 18743Alternatively, you may set the environment variables XLIB_CFLAGS 18744and XLIB_LIBS to avoid the need to call pkg-config. 18745See the pkg-config man page for more details." "$LINENO" 5 18746elif test $pkg_failed = untried; then 18747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18748$as_echo "no" >&6; } 18749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18751as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18752is in your PATH or set the PKG_CONFIG environment variable to the full 18753path to pkg-config. 18754 18755Alternatively, you may set the environment variables XLIB_CFLAGS 18756and XLIB_LIBS to avoid the need to call pkg-config. 18757See the pkg-config man page for more details. 18758 18759To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18760See \`config.log' for more details" "$LINENO" 5; } 18761else 18762 XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS 18763 XLIB_LIBS=$pkg_cv_XLIB_LIBS 18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18765$as_echo "yes" >&6; } 18766 18767fi 18768 18769pkg_failed=no 18770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5 18771$as_echo_n "checking for GL... " >&6; } 18772 18773if test -n "$GL_CFLAGS"; then 18774 pkg_cv_GL_CFLAGS="$GL_CFLAGS" 18775 elif test -n "$PKG_CONFIG"; then 18776 if test -n "$PKG_CONFIG" && \ 18777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5 18778 ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5 18779 ac_status=$? 18780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18781 test $ac_status = 0; }; then 18782 pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBGL" 2>/dev/null` 18783 test "x$?" != "x0" && pkg_failed=yes 18784else 18785 pkg_failed=yes 18786fi 18787 else 18788 pkg_failed=untried 18789fi 18790if test -n "$GL_LIBS"; then 18791 pkg_cv_GL_LIBS="$GL_LIBS" 18792 elif test -n "$PKG_CONFIG"; then 18793 if test -n "$PKG_CONFIG" && \ 18794 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5 18795 ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5 18796 ac_status=$? 18797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18798 test $ac_status = 0; }; then 18799 pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBGL" 2>/dev/null` 18800 test "x$?" != "x0" && pkg_failed=yes 18801else 18802 pkg_failed=yes 18803fi 18804 else 18805 pkg_failed=untried 18806fi 18807 18808 18809 18810if test $pkg_failed = yes; then 18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18812$as_echo "no" >&6; } 18813 18814if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18815 _pkg_short_errors_supported=yes 18816else 18817 _pkg_short_errors_supported=no 18818fi 18819 if test $_pkg_short_errors_supported = yes; then 18820 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1` 18821 else 18822 GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1` 18823 fi 18824 # Put the nasty error message in config.log where it belongs 18825 echo "$GL_PKG_ERRORS" >&5 18826 18827 as_fn_error $? "Package requirements ($GLPROTO $LIBGL) were not met: 18828 18829$GL_PKG_ERRORS 18830 18831Consider adjusting the PKG_CONFIG_PATH environment variable if you 18832installed software in a non-standard prefix. 18833 18834Alternatively, you may set the environment variables GL_CFLAGS 18835and GL_LIBS to avoid the need to call pkg-config. 18836See the pkg-config man page for more details." "$LINENO" 5 18837elif test $pkg_failed = untried; then 18838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18839$as_echo "no" >&6; } 18840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18842as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18843is in your PATH or set the PKG_CONFIG environment variable to the full 18844path to pkg-config. 18845 18846Alternatively, you may set the environment variables GL_CFLAGS 18847and GL_LIBS to avoid the need to call pkg-config. 18848See the pkg-config man page for more details. 18849 18850To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18851See \`config.log' for more details" "$LINENO" 5; } 18852else 18853 GL_CFLAGS=$pkg_cv_GL_CFLAGS 18854 GL_LIBS=$pkg_cv_GL_LIBS 18855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18856$as_echo "yes" >&6; } 18857 18858fi 18859 18860 18861$as_echo "#define GLXEXT 1" >>confdefs.h 18862 18863 GLX_LIBS='$(top_builddir)/glx/libglx.la' 18864 GLX_SYS_LIBS="$GLX_SYS_LIBS" 18865else 18866 GLX=no 18867fi 18868 if test "x$GLX" = xyes; then 18869 GLX_TRUE= 18870 GLX_FALSE='#' 18871else 18872 GLX_TRUE='#' 18873 GLX_FALSE= 18874fi 18875 18876 18877if test "x$AIGLX" = xyes -a "x$GLX" = xyes -a \( "x$DRI" = xyes -o "x$DRI2" = xyes \); then 18878 18879$as_echo "#define AIGLX 1" >>confdefs.h 18880 18881else 18882 AIGLX=no 18883fi 18884 if test "x$AIGLX" = xyes; then 18885 AIGLX_TRUE= 18886 AIGLX_FALSE='#' 18887else 18888 AIGLX_TRUE='#' 18889 AIGLX_FALSE= 18890fi 18891 18892 18893if test "x$GLX_USE_TLS" = xyes ; then 18894 GLX_DEFINES="-DGLX_USE_TLS -DPTHREADS" 18895 GLX_SYS_LIBS="$GLX_SYS_LIBS -lpthread" 18896fi 18897 18898 18899 if test "x$DRI" = xyes; then 18900 DRI_TRUE= 18901 DRI_FALSE='#' 18902else 18903 DRI_TRUE='#' 18904 DRI_FALSE= 18905fi 18906 18907if test "x$DRI" = xyes; then 18908 18909$as_echo "#define XF86DRI 1" >>confdefs.h 18910 18911 18912pkg_failed=no 18913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRIPROTO" >&5 18914$as_echo_n "checking for DRIPROTO... " >&6; } 18915 18916if test -n "$DRIPROTO_CFLAGS"; then 18917 pkg_cv_DRIPROTO_CFLAGS="$DRIPROTO_CFLAGS" 18918 elif test -n "$PKG_CONFIG"; then 18919 if test -n "$PKG_CONFIG" && \ 18920 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRIPROTO\""; } >&5 18921 ($PKG_CONFIG --exists --print-errors "$DRIPROTO") 2>&5 18922 ac_status=$? 18923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18924 test $ac_status = 0; }; then 18925 pkg_cv_DRIPROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRIPROTO" 2>/dev/null` 18926 test "x$?" != "x0" && pkg_failed=yes 18927else 18928 pkg_failed=yes 18929fi 18930 else 18931 pkg_failed=untried 18932fi 18933if test -n "$DRIPROTO_LIBS"; then 18934 pkg_cv_DRIPROTO_LIBS="$DRIPROTO_LIBS" 18935 elif test -n "$PKG_CONFIG"; then 18936 if test -n "$PKG_CONFIG" && \ 18937 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRIPROTO\""; } >&5 18938 ($PKG_CONFIG --exists --print-errors "$DRIPROTO") 2>&5 18939 ac_status=$? 18940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18941 test $ac_status = 0; }; then 18942 pkg_cv_DRIPROTO_LIBS=`$PKG_CONFIG --libs "$DRIPROTO" 2>/dev/null` 18943 test "x$?" != "x0" && pkg_failed=yes 18944else 18945 pkg_failed=yes 18946fi 18947 else 18948 pkg_failed=untried 18949fi 18950 18951 18952 18953if test $pkg_failed = yes; then 18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18955$as_echo "no" >&6; } 18956 18957if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18958 _pkg_short_errors_supported=yes 18959else 18960 _pkg_short_errors_supported=no 18961fi 18962 if test $_pkg_short_errors_supported = yes; then 18963 DRIPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRIPROTO" 2>&1` 18964 else 18965 DRIPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRIPROTO" 2>&1` 18966 fi 18967 # Put the nasty error message in config.log where it belongs 18968 echo "$DRIPROTO_PKG_ERRORS" >&5 18969 18970 as_fn_error $? "Package requirements ($DRIPROTO) were not met: 18971 18972$DRIPROTO_PKG_ERRORS 18973 18974Consider adjusting the PKG_CONFIG_PATH environment variable if you 18975installed software in a non-standard prefix. 18976 18977Alternatively, you may set the environment variables DRIPROTO_CFLAGS 18978and DRIPROTO_LIBS to avoid the need to call pkg-config. 18979See the pkg-config man page for more details." "$LINENO" 5 18980elif test $pkg_failed = untried; then 18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18982$as_echo "no" >&6; } 18983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18984$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18985as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18986is in your PATH or set the PKG_CONFIG environment variable to the full 18987path to pkg-config. 18988 18989Alternatively, you may set the environment variables DRIPROTO_CFLAGS 18990and DRIPROTO_LIBS to avoid the need to call pkg-config. 18991See the pkg-config man page for more details. 18992 18993To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18994See \`config.log' for more details" "$LINENO" 5; } 18995else 18996 DRIPROTO_CFLAGS=$pkg_cv_DRIPROTO_CFLAGS 18997 DRIPROTO_LIBS=$pkg_cv_DRIPROTO_LIBS 18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18999$as_echo "yes" >&6; } 19000 19001fi 19002 19003pkg_failed=no 19004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5 19005$as_echo_n "checking for DRI... " >&6; } 19006 19007if test -n "$DRI_CFLAGS"; then 19008 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 19009 elif test -n "$PKG_CONFIG"; then 19010 if test -n "$PKG_CONFIG" && \ 19011 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBDRI\""; } >&5 19012 ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBDRI") 2>&5 19013 ac_status=$? 19014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19015 test $ac_status = 0; }; then 19016 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBDRI" 2>/dev/null` 19017 test "x$?" != "x0" && pkg_failed=yes 19018else 19019 pkg_failed=yes 19020fi 19021 else 19022 pkg_failed=untried 19023fi 19024if test -n "$DRI_LIBS"; then 19025 pkg_cv_DRI_LIBS="$DRI_LIBS" 19026 elif test -n "$PKG_CONFIG"; then 19027 if test -n "$PKG_CONFIG" && \ 19028 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBDRI\""; } >&5 19029 ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBDRI") 2>&5 19030 ac_status=$? 19031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19032 test $ac_status = 0; }; then 19033 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBDRI" 2>/dev/null` 19034 test "x$?" != "x0" && pkg_failed=yes 19035else 19036 pkg_failed=yes 19037fi 19038 else 19039 pkg_failed=untried 19040fi 19041 19042 19043 19044if test $pkg_failed = yes; then 19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19046$as_echo "no" >&6; } 19047 19048if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19049 _pkg_short_errors_supported=yes 19050else 19051 _pkg_short_errors_supported=no 19052fi 19053 if test $_pkg_short_errors_supported = yes; then 19054 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLPROTO $LIBDRI" 2>&1` 19055 else 19056 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLPROTO $LIBDRI" 2>&1` 19057 fi 19058 # Put the nasty error message in config.log where it belongs 19059 echo "$DRI_PKG_ERRORS" >&5 19060 19061 as_fn_error $? "Package requirements ($GLPROTO $LIBDRI) were not met: 19062 19063$DRI_PKG_ERRORS 19064 19065Consider adjusting the PKG_CONFIG_PATH environment variable if you 19066installed software in a non-standard prefix. 19067 19068Alternatively, you may set the environment variables DRI_CFLAGS 19069and DRI_LIBS to avoid the need to call pkg-config. 19070See the pkg-config man page for more details." "$LINENO" 5 19071elif test $pkg_failed = untried; then 19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19073$as_echo "no" >&6; } 19074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19076as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19077is in your PATH or set the PKG_CONFIG environment variable to the full 19078path to pkg-config. 19079 19080Alternatively, you may set the environment variables DRI_CFLAGS 19081and DRI_LIBS to avoid the need to call pkg-config. 19082See the pkg-config man page for more details. 19083 19084To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19085See \`config.log' for more details" "$LINENO" 5; } 19086else 19087 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 19088 DRI_LIBS=$pkg_cv_DRI_LIBS 19089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19090$as_echo "yes" >&6; } 19091 19092fi 19093 19094fi 19095 19096 19097pkg_failed=no 19098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2PROTO" >&5 19099$as_echo_n "checking for DRI2PROTO... " >&6; } 19100 19101if test -n "$DRI2PROTO_CFLAGS"; then 19102 pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS" 19103 elif test -n "$PKG_CONFIG"; then 19104 if test -n "$PKG_CONFIG" && \ 19105 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5 19106 ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5 19107 ac_status=$? 19108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19109 test $ac_status = 0; }; then 19110 pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI2PROTO" 2>/dev/null` 19111 test "x$?" != "x0" && pkg_failed=yes 19112else 19113 pkg_failed=yes 19114fi 19115 else 19116 pkg_failed=untried 19117fi 19118if test -n "$DRI2PROTO_LIBS"; then 19119 pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS" 19120 elif test -n "$PKG_CONFIG"; then 19121 if test -n "$PKG_CONFIG" && \ 19122 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5 19123 ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5 19124 ac_status=$? 19125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19126 test $ac_status = 0; }; then 19127 pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "$DRI2PROTO" 2>/dev/null` 19128 test "x$?" != "x0" && pkg_failed=yes 19129else 19130 pkg_failed=yes 19131fi 19132 else 19133 pkg_failed=untried 19134fi 19135 19136 19137 19138if test $pkg_failed = yes; then 19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19140$as_echo "no" >&6; } 19141 19142if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19143 _pkg_short_errors_supported=yes 19144else 19145 _pkg_short_errors_supported=no 19146fi 19147 if test $_pkg_short_errors_supported = yes; then 19148 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI2PROTO" 2>&1` 19149 else 19150 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI2PROTO" 2>&1` 19151 fi 19152 # Put the nasty error message in config.log where it belongs 19153 echo "$DRI2PROTO_PKG_ERRORS" >&5 19154 19155 HAVE_DRI2PROTO=no 19156elif test $pkg_failed = untried; then 19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19158$as_echo "no" >&6; } 19159 HAVE_DRI2PROTO=no 19160else 19161 DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS 19162 DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS 19163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19164$as_echo "yes" >&6; } 19165 HAVE_DRI2PROTO=yes 19166fi 19167case "$DRI2,$HAVE_DRI2PROTO" in 19168 yes,no) 19169 as_fn_error $? "DRI2 requested, but dri2proto not found." "$LINENO" 5 19170 ;; 19171 yes,yes | auto,yes) 19172 19173$as_echo "#define DRI2 1" >>confdefs.h 19174 19175 DRI2=yes 19176 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI2PROTO" 19177 ;; 19178esac 19179 if test "x$DRI2" = xyes; then 19180 DRI2_TRUE= 19181 DRI2_FALSE='#' 19182else 19183 DRI2_TRUE='#' 19184 DRI2_FALSE= 19185fi 19186 19187 19188if test "x$DRI" = xyes || test "x$DRI2" = xyes; then 19189 if test "x$DRM" = xyes; then 19190 19191$as_echo "#define WITH_LIBDRM 1" >>confdefs.h 19192 19193 19194pkg_failed=no 19195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5 19196$as_echo_n "checking for LIBDRM... " >&6; } 19197 19198if test -n "$LIBDRM_CFLAGS"; then 19199 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" 19200 elif test -n "$PKG_CONFIG"; then 19201 if test -n "$PKG_CONFIG" && \ 19202 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5 19203 ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5 19204 ac_status=$? 19205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19206 test $ac_status = 0; }; then 19207 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "$LIBDRM" 2>/dev/null` 19208 test "x$?" != "x0" && pkg_failed=yes 19209else 19210 pkg_failed=yes 19211fi 19212 else 19213 pkg_failed=untried 19214fi 19215if test -n "$LIBDRM_LIBS"; then 19216 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" 19217 elif test -n "$PKG_CONFIG"; then 19218 if test -n "$PKG_CONFIG" && \ 19219 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5 19220 ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5 19221 ac_status=$? 19222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19223 test $ac_status = 0; }; then 19224 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "$LIBDRM" 2>/dev/null` 19225 test "x$?" != "x0" && pkg_failed=yes 19226else 19227 pkg_failed=yes 19228fi 19229 else 19230 pkg_failed=untried 19231fi 19232 19233 19234 19235if test $pkg_failed = yes; then 19236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19237$as_echo "no" >&6; } 19238 19239if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19240 _pkg_short_errors_supported=yes 19241else 19242 _pkg_short_errors_supported=no 19243fi 19244 if test $_pkg_short_errors_supported = yes; then 19245 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDRM" 2>&1` 19246 else 19247 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDRM" 2>&1` 19248 fi 19249 # Put the nasty error message in config.log where it belongs 19250 echo "$LIBDRM_PKG_ERRORS" >&5 19251 19252 as_fn_error $? "Package requirements ($LIBDRM) were not met: 19253 19254$LIBDRM_PKG_ERRORS 19255 19256Consider adjusting the PKG_CONFIG_PATH environment variable if you 19257installed software in a non-standard prefix. 19258 19259Alternatively, you may set the environment variables LIBDRM_CFLAGS 19260and LIBDRM_LIBS to avoid the need to call pkg-config. 19261See the pkg-config man page for more details." "$LINENO" 5 19262elif test $pkg_failed = untried; then 19263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19264$as_echo "no" >&6; } 19265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19266$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19267as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19268is in your PATH or set the PKG_CONFIG environment variable to the full 19269path to pkg-config. 19270 19271Alternatively, you may set the environment variables LIBDRM_CFLAGS 19272and LIBDRM_LIBS to avoid the need to call pkg-config. 19273See the pkg-config man page for more details. 19274 19275To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19276See \`config.log' for more details" "$LINENO" 5; } 19277else 19278 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS 19279 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS 19280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19281$as_echo "yes" >&6; } 19282 19283fi 19284 fi 19285fi 19286 19287if test "x$DRI2" = xyes; then 19288 save_CFLAGS=$CFLAGS 19289 CFLAGS="$GL_CFLAGS $LIBDRM_CFLAGS" 19290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19291/* end confdefs.h. */ 19292#include <GL/gl.h> 19293#include <GL/internal/dri_interface.h> 19294#ifndef __DRI_DRI2 19295#error DRI2 extension not available. 19296#endif 19297_ACEOF 19298if ac_fn_c_try_compile "$LINENO"; then : 19299 HAVE_DRI2EXTENSION=yes 19300else 19301 HAVE_DRI2EXTENSION=no 19302fi 19303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19304 CFLAGS=$save_CFLAGS 19305 if test "x$HAVE_DRI2EXTENSION" = xyes; then 19306 19307$as_echo "#define DRI2_AIGLX 1" >>confdefs.h 19308 19309 DRI2_AIGLX=yes 19310 else 19311 { $as_echo "$as_me:${as_lineno-$LINENO}: DRI2 AIGLX disabled, __DRI_DRI2 not defined in dri_interface.h." >&5 19312$as_echo "$as_me: DRI2 AIGLX disabled, __DRI_DRI2 not defined in dri_interface.h." >&6;} 19313 DRI2_AIGLX=no 19314 fi 19315fi 19316 if test "x$DRI2_AIGLX" = xyes; then 19317 DRI2_AIGLX_TRUE= 19318 DRI2_AIGLX_FALSE='#' 19319else 19320 DRI2_AIGLX_TRUE='#' 19321 DRI2_AIGLX_FALSE= 19322fi 19323 19324 19325 19326 if test "x$XINERAMA" = xyes; then 19327 XINERAMA_TRUE= 19328 XINERAMA_FALSE='#' 19329else 19330 XINERAMA_TRUE='#' 19331 XINERAMA_FALSE= 19332fi 19333 19334if test "x$XINERAMA" = xyes; then 19335 19336$as_echo "#define XINERAMA 1" >>confdefs.h 19337 19338 19339$as_echo "#define PANORAMIX 1" >>confdefs.h 19340 19341 REQUIRED_MODULES="$REQUIRED_MODULES $XINERAMAPROTO" 19342 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO" 19343fi 19344 19345 if test "x$XACE" = xyes; then 19346 XACE_TRUE= 19347 XACE_FALSE='#' 19348else 19349 XACE_TRUE='#' 19350 XACE_FALSE= 19351fi 19352 19353if test "x$XACE" = xyes; then 19354 19355$as_echo "#define XACE 1" >>confdefs.h 19356 19357fi 19358 19359 if test "x$XSELINUX" = xyes; then 19360 XSELINUX_TRUE= 19361 XSELINUX_FALSE='#' 19362else 19363 XSELINUX_TRUE='#' 19364 XSELINUX_FALSE= 19365fi 19366 19367if test "x$XSELINUX" = xyes; then 19368 if test "x$XACE" != xyes; then 19369 as_fn_error $? "cannot build SELinux extension without X-ACE" "$LINENO" 5 19370 fi 19371 for ac_header in libaudit.h 19372do : 19373 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" 19374if test "x$ac_cv_header_libaudit_h" = xyes; then : 19375 cat >>confdefs.h <<_ACEOF 19376#define HAVE_LIBAUDIT_H 1 19377_ACEOF 19378 19379else 19380 as_fn_error $? "SELinux extension requires audit system headers" "$LINENO" 5 19381fi 19382 19383done 19384 19385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_open in -laudit" >&5 19386$as_echo_n "checking for audit_open in -laudit... " >&6; } 19387if ${ac_cv_lib_audit_audit_open+:} false; then : 19388 $as_echo_n "(cached) " >&6 19389else 19390 ac_check_lib_save_LIBS=$LIBS 19391LIBS="-laudit $LIBS" 19392cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19393/* end confdefs.h. */ 19394 19395/* Override any GCC internal prototype to avoid an error. 19396 Use char because int might match the return type of a GCC 19397 builtin and then its argument prototype would still apply. */ 19398#ifdef __cplusplus 19399extern "C" 19400#endif 19401char audit_open (); 19402int 19403main () 19404{ 19405return audit_open (); 19406 ; 19407 return 0; 19408} 19409_ACEOF 19410if ac_fn_c_try_link "$LINENO"; then : 19411 ac_cv_lib_audit_audit_open=yes 19412else 19413 ac_cv_lib_audit_audit_open=no 19414fi 19415rm -f core conftest.err conftest.$ac_objext \ 19416 conftest$ac_exeext conftest.$ac_ext 19417LIBS=$ac_check_lib_save_LIBS 19418fi 19419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_open" >&5 19420$as_echo "$ac_cv_lib_audit_audit_open" >&6; } 19421if test "x$ac_cv_lib_audit_audit_open" = xyes; then : 19422 cat >>confdefs.h <<_ACEOF 19423#define HAVE_LIBAUDIT 1 19424_ACEOF 19425 19426 LIBS="-laudit $LIBS" 19427 19428else 19429 as_fn_error $? "SELinux extension requires audit system library" "$LINENO" 5 19430fi 19431 19432 19433pkg_failed=no 19434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELINUX" >&5 19435$as_echo_n "checking for SELINUX... " >&6; } 19436 19437if test -n "$SELINUX_CFLAGS"; then 19438 pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS" 19439 elif test -n "$PKG_CONFIG"; then 19440 if test -n "$PKG_CONFIG" && \ 19441 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5 19442 ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5 19443 ac_status=$? 19444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19445 test $ac_status = 0; }; then 19446 pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "$LIBSELINUX" 2>/dev/null` 19447 test "x$?" != "x0" && pkg_failed=yes 19448else 19449 pkg_failed=yes 19450fi 19451 else 19452 pkg_failed=untried 19453fi 19454if test -n "$SELINUX_LIBS"; then 19455 pkg_cv_SELINUX_LIBS="$SELINUX_LIBS" 19456 elif test -n "$PKG_CONFIG"; then 19457 if test -n "$PKG_CONFIG" && \ 19458 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5 19459 ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5 19460 ac_status=$? 19461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19462 test $ac_status = 0; }; then 19463 pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "$LIBSELINUX" 2>/dev/null` 19464 test "x$?" != "x0" && pkg_failed=yes 19465else 19466 pkg_failed=yes 19467fi 19468 else 19469 pkg_failed=untried 19470fi 19471 19472 19473 19474if test $pkg_failed = yes; then 19475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19476$as_echo "no" >&6; } 19477 19478if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19479 _pkg_short_errors_supported=yes 19480else 19481 _pkg_short_errors_supported=no 19482fi 19483 if test $_pkg_short_errors_supported = yes; then 19484 SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSELINUX" 2>&1` 19485 else 19486 SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSELINUX" 2>&1` 19487 fi 19488 # Put the nasty error message in config.log where it belongs 19489 echo "$SELINUX_PKG_ERRORS" >&5 19490 19491 as_fn_error $? "Package requirements ($LIBSELINUX) were not met: 19492 19493$SELINUX_PKG_ERRORS 19494 19495Consider adjusting the PKG_CONFIG_PATH environment variable if you 19496installed software in a non-standard prefix. 19497 19498Alternatively, you may set the environment variables SELINUX_CFLAGS 19499and SELINUX_LIBS to avoid the need to call pkg-config. 19500See the pkg-config man page for more details." "$LINENO" 5 19501elif test $pkg_failed = untried; then 19502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19503$as_echo "no" >&6; } 19504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19506as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19507is in your PATH or set the PKG_CONFIG environment variable to the full 19508path to pkg-config. 19509 19510Alternatively, you may set the environment variables SELINUX_CFLAGS 19511and SELINUX_LIBS to avoid the need to call pkg-config. 19512See the pkg-config man page for more details. 19513 19514To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19515See \`config.log' for more details" "$LINENO" 5; } 19516else 19517 SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS 19518 SELINUX_LIBS=$pkg_cv_SELINUX_LIBS 19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19520$as_echo "yes" >&6; } 19521 19522fi 19523 SELINUX_LIBS="$SELINUX_LIBS -laudit" 19524 19525$as_echo "#define XSELINUX 1" >>confdefs.h 19526 19527fi 19528 19529 if test "x$XCSECURITY" = xyes; then 19530 XCSECURITY_TRUE= 19531 XCSECURITY_FALSE='#' 19532else 19533 XCSECURITY_TRUE='#' 19534 XCSECURITY_FALSE= 19535fi 19536 19537if test "x$XCSECURITY" = xyes; then 19538 if test "x$XACE" != xyes; then 19539 as_fn_error $? "cannot build Security extension without X-ACE" "$LINENO" 5 19540 fi 19541 19542$as_echo "#define XCSECURITY 1" >>confdefs.h 19543 19544fi 19545 19546 if test "x$DBE" = xyes; then 19547 DBE_TRUE= 19548 DBE_FALSE='#' 19549else 19550 DBE_TRUE='#' 19551 DBE_FALSE= 19552fi 19553 19554if test "x$DBE" = xyes; then 19555 19556$as_echo "#define DBE 1" >>confdefs.h 19557 19558 DBE_LIB='$(top_builddir)/dbe/libdbe.la' 19559fi 19560 19561 if test "x$XF86BIGFONT" = xyes; then 19562 XF86BIGFONT_TRUE= 19563 XF86BIGFONT_FALSE='#' 19564else 19565 XF86BIGFONT_TRUE='#' 19566 XF86BIGFONT_FALSE= 19567fi 19568 19569if test "x$XF86BIGFONT" = xyes; then 19570 19571$as_echo "#define XF86BIGFONT 1" >>confdefs.h 19572 19573 REQUIRED_MODULES="$REQUIRED_MODULES $BIGFONTPROTO" 19574fi 19575 19576 if test "x$DPMSExtension" = xyes; then 19577 DPMSExtension_TRUE= 19578 DPMSExtension_FALSE='#' 19579else 19580 DPMSExtension_TRUE='#' 19581 DPMSExtension_FALSE= 19582fi 19583 19584if test "x$DPMSExtension" = xyes; then 19585 19586$as_echo "#define DPMSExtension 1" >>confdefs.h 19587 19588fi 19589 19590if test "x$XCALIBRATE" = xyes && test "$KDRIVE" = yes; then 19591 19592$as_echo "#define XCALIBRATE 1" >>confdefs.h 19593 19594 REQUIRED_MODULES="$REQUIRED_MODULES $XCALIBRATEPROTO" 19595else 19596 XCALIBRATE=no 19597fi 19598 if test "x$XCALIBRATE" = xyes; then 19599 XCALIBRATE_TRUE= 19600 XCALIBRATE_FALSE='#' 19601else 19602 XCALIBRATE_TRUE='#' 19603 XCALIBRATE_FALSE= 19604fi 19605 19606 19607 19608$as_echo "#define RENDER 1" >>confdefs.h 19609 19610RENDER_LIB='$(top_builddir)/render/librender.la' 19611RENDER_INC='-I$(top_srcdir)/render' 19612 19613 19614$as_echo "#define RANDR 1" >>confdefs.h 19615 19616RANDR_LIB='$(top_builddir)/randr/librandr.la' 19617RANDR_INC='-I$(top_srcdir)/randr' 19618 19619 19620$as_echo "#define XFIXES 1" >>confdefs.h 19621 19622FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la' 19623FIXES_INC='-I$(top_srcdir)/xfixes' 19624 19625 19626$as_echo "#define DAMAGE 1" >>confdefs.h 19627 19628DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la' 19629DAMAGE_INC='-I$(top_srcdir)/damageext' 19630MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la' 19631MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage' 19632 19633# XINPUT extension is integral part of the server 19634 19635$as_echo "#define XINPUT 1" >>confdefs.h 19636 19637XI_LIB='$(top_builddir)/Xi/libXi.la' 19638XI_INC='-I$(top_srcdir)/Xi' 19639 19640 if test "x$XF86UTILS" = xyes; then 19641 XF86UTILS_TRUE= 19642 XF86UTILS_FALSE='#' 19643else 19644 XF86UTILS_TRUE='#' 19645 XF86UTILS_FALSE= 19646fi 19647 19648 if test "x$XAA" = xyes; then 19649 XAA_TRUE= 19650 XAA_FALSE='#' 19651else 19652 XAA_TRUE='#' 19653 XAA_FALSE= 19654fi 19655 19656 if test "x$VGAHW" = xyes; then 19657 VGAHW_TRUE= 19658 VGAHW_FALSE='#' 19659else 19660 VGAHW_TRUE='#' 19661 VGAHW_FALSE= 19662fi 19663 19664 if test "x$VBE" = xyes; then 19665 VBE_TRUE= 19666 VBE_FALSE='#' 19667else 19668 VBE_TRUE='#' 19669 VBE_FALSE= 19670fi 19671 19672 if test "x$INT10MODULE" = xyes; then 19673 INT10MODULE_TRUE= 19674 INT10MODULE_FALSE='#' 19675else 19676 INT10MODULE_TRUE='#' 19677 INT10MODULE_FALSE= 19678fi 19679 19680 19681 19682$as_echo "#define SHAPE 1" >>confdefs.h 19683 19684 19685 19686 prefix_NONE= 19687 exec_prefix_NONE= 19688 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 19689 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 19690 eval ac_define_dir="\"$XKBPATH\"" 19691 eval ac_define_dir="\"$ac_define_dir\"" 19692 XKB_BASE_DIRECTORY="$ac_define_dir" 19693 19694 19695cat >>confdefs.h <<_ACEOF 19696#define XKB_BASE_DIRECTORY "$ac_define_dir" 19697_ACEOF 19698 19699 test "$prefix_NONE" && prefix=NONE 19700 test "$exec_prefix_NONE" && exec_prefix=NONE 19701 19702 19703# Check whether --with-xkb-bin-directory was given. 19704if test "${with_xkb_bin_directory+set}" = set; then : 19705 withval=$with_xkb_bin_directory; XKB_BIN_DIRECTORY="$withval" 19706else 19707 XKB_BIN_DIRECTORY="$bindir" 19708fi 19709 19710 19711 19712 prefix_NONE= 19713 exec_prefix_NONE= 19714 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 19715 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 19716 eval ac_define_dir="\"$XKB_BIN_DIRECTORY\"" 19717 eval ac_define_dir="\"$ac_define_dir\"" 19718 XKB_BIN_DIRECTORY="$ac_define_dir" 19719 19720 19721cat >>confdefs.h <<_ACEOF 19722#define XKB_BIN_DIRECTORY "$ac_define_dir" 19723_ACEOF 19724 19725 test "$prefix_NONE" && prefix=NONE 19726 test "$exec_prefix_NONE" && exec_prefix=NONE 19727 19728 19729XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1` 19730if [ x$XKBOUTPUT_FIRSTCHAR != x/ -a x$XKBOUTPUT_FIRSTCHAR != 'x$' ] ; then 19731 XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT" 19732fi 19733 19734 19735XKBOUTPUT=`echo $XKBOUTPUT/ | $SED 's|/*$|/|'` 19736XKB_COMPILED_DIR=`echo $XKBOUTPUT | $SED 's|/*$||'` 19737 19738 prefix_NONE= 19739 exec_prefix_NONE= 19740 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 19741 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 19742 eval ac_define_dir="\"$XKBOUTPUT\"" 19743 eval ac_define_dir="\"$ac_define_dir\"" 19744 XKM_OUTPUT_DIR="$ac_define_dir" 19745 19746 19747cat >>confdefs.h <<_ACEOF 19748#define XKM_OUTPUT_DIR "$ac_define_dir" 19749_ACEOF 19750 19751 test "$prefix_NONE" && prefix=NONE 19752 test "$exec_prefix_NONE" && exec_prefix=NONE 19753 19754 19755 19756if test "x$XKB_DFLT_RULES" = x; then 19757 case $host_os in 19758 linux*) 19759 if test "x$CONFIG_HAL" = xyes; then 19760 XKB_DFLT_RULES="evdev" 19761 else 19762 XKB_DFLT_RULES="base" 19763 fi 19764 ;; 19765 *) 19766 XKB_DFLT_RULES="base" 19767 ;; 19768 esac 19769fi 19770 19771cat >>confdefs.h <<_ACEOF 19772#define XKB_DFLT_RULES "$XKB_DFLT_RULES" 19773_ACEOF 19774 19775 19776cat >>confdefs.h <<_ACEOF 19777#define XKB_DFLT_MODEL "$XKB_DFLT_MODEL" 19778_ACEOF 19779 19780 19781cat >>confdefs.h <<_ACEOF 19782#define XKB_DFLT_LAYOUT "$XKB_DFLT_LAYOUT" 19783_ACEOF 19784 19785 19786cat >>confdefs.h <<_ACEOF 19787#define XKB_DFLT_VARIANT "$XKB_DFLT_VARIANT" 19788_ACEOF 19789 19790 19791cat >>confdefs.h <<_ACEOF 19792#define XKB_DFLT_OPTIONS "$XKB_DFLT_OPTIONS" 19793_ACEOF 19794 19795 19796XKB_LIB='$(top_builddir)/xkb/libxkb.la' 19797XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la' 19798REQUIRED_MODULES="$REQUIRED_MODULES xkbfile" 19799 19800ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 19801if test "x$ac_cv_func_strcasecmp" = xyes; then : 19802 19803else 19804 19805$as_echo "#define NEED_STRCASECMP 1" >>confdefs.h 19806 19807fi 19808 19809ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 19810if test "x$ac_cv_func_strncasecmp" = xyes; then : 19811 19812else 19813 19814$as_echo "#define NEED_STRNCASECMP 1" >>confdefs.h 19815 19816fi 19817 19818ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 19819if test "x$ac_cv_func_strcasestr" = xyes; then : 19820 19821else 19822 19823$as_echo "#define NEED_STRCASESTR 1" >>confdefs.h 19824 19825fi 19826 19827 19828 19829pkg_failed=no 19830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5 19831$as_echo_n "checking for XDMCP... " >&6; } 19832 19833if test -n "$XDMCP_CFLAGS"; then 19834 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS" 19835 elif test -n "$PKG_CONFIG"; then 19836 if test -n "$PKG_CONFIG" && \ 19837 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 19838 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 19839 ac_status=$? 19840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19841 test $ac_status = 0; }; then 19842 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` 19843 test "x$?" != "x0" && pkg_failed=yes 19844else 19845 pkg_failed=yes 19846fi 19847 else 19848 pkg_failed=untried 19849fi 19850if test -n "$XDMCP_LIBS"; then 19851 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS" 19852 elif test -n "$PKG_CONFIG"; then 19853 if test -n "$PKG_CONFIG" && \ 19854 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 19855 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 19856 ac_status=$? 19857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19858 test $ac_status = 0; }; then 19859 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` 19860 test "x$?" != "x0" && pkg_failed=yes 19861else 19862 pkg_failed=yes 19863fi 19864 else 19865 pkg_failed=untried 19866fi 19867 19868 19869 19870if test $pkg_failed = yes; then 19871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19872$as_echo "no" >&6; } 19873 19874if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19875 _pkg_short_errors_supported=yes 19876else 19877 _pkg_short_errors_supported=no 19878fi 19879 if test $_pkg_short_errors_supported = yes; then 19880 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1` 19881 else 19882 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1` 19883 fi 19884 # Put the nasty error message in config.log where it belongs 19885 echo "$XDMCP_PKG_ERRORS" >&5 19886 19887 have_libxdmcp="no" 19888elif test $pkg_failed = untried; then 19889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19890$as_echo "no" >&6; } 19891 have_libxdmcp="no" 19892else 19893 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS 19894 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS 19895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19896$as_echo "yes" >&6; } 19897 have_libxdmcp="yes" 19898fi 19899if test "x$have_libxdmcp" = xyes; then 19900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5 19901$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; } 19902if ${ac_cv_lib_Xdmcp_XdmcpWrap+:} false; then : 19903 $as_echo_n "(cached) " >&6 19904else 19905 ac_check_lib_save_LIBS=$LIBS 19906LIBS="-lXdmcp $XDMCP_LIBS $LIBS" 19907cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19908/* end confdefs.h. */ 19909 19910/* Override any GCC internal prototype to avoid an error. 19911 Use char because int might match the return type of a GCC 19912 builtin and then its argument prototype would still apply. */ 19913#ifdef __cplusplus 19914extern "C" 19915#endif 19916char XdmcpWrap (); 19917int 19918main () 19919{ 19920return XdmcpWrap (); 19921 ; 19922 return 0; 19923} 19924_ACEOF 19925if ac_fn_c_try_link "$LINENO"; then : 19926 ac_cv_lib_Xdmcp_XdmcpWrap=yes 19927else 19928 ac_cv_lib_Xdmcp_XdmcpWrap=no 19929fi 19930rm -f core conftest.err conftest.$ac_objext \ 19931 conftest$ac_exeext conftest.$ac_ext 19932LIBS=$ac_check_lib_save_LIBS 19933fi 19934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5 19935$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; } 19936if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes; then : 19937 have_xdmcpwrap="yes" 19938else 19939 have_xdmcpwrap="no" 19940fi 19941 19942fi 19943if test "x$XDMCP" = xauto; then 19944 if test "x$have_libxdmcp" = xyes; then 19945 XDMCP=yes 19946 else 19947 XDMCP=no 19948 fi 19949fi 19950if test "x$XDMAUTH" = xauto; then 19951 if test "x$have_libxdmcp" = xyes && test "x$have_xdmcpwrap" = xyes; then 19952 XDMAUTH=yes 19953 else 19954 XDMAUTH=no 19955 fi 19956fi 19957 19958 if test "x$XDMCP" = xyes; then 19959 XDMCP_TRUE= 19960 XDMCP_FALSE='#' 19961else 19962 XDMCP_TRUE='#' 19963 XDMCP_FALSE= 19964fi 19965 19966if test "x$XDMCP" = xyes; then 19967 19968$as_echo "#define XDMCP 1" >>confdefs.h 19969 19970 REQUIRED_LIBS="$REQUIRED_LIBS xdmcp" 19971 XDMCP_MODULES="xdmcp" 19972fi 19973 19974 if test "x$XDMAUTH" = xyes; then 19975 XDMAUTH_TRUE= 19976 XDMAUTH_FALSE='#' 19977else 19978 XDMAUTH_TRUE='#' 19979 XDMAUTH_FALSE= 19980fi 19981 19982if test "x$XDMAUTH" = xyes; then 19983 19984$as_echo "#define HASXDMAUTH 1" >>confdefs.h 19985 19986 if ! test "x$XDMCP" = xyes; then 19987 REQUIRED_LIBS="$REQUIRED_LIBS xdmcp" 19988 XDMCP_MODULES="xdmcp" 19989 fi 19990fi 19991 19992 19993 prefix_NONE= 19994 exec_prefix_NONE= 19995 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 19996 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 19997 eval ac_define_dir="\"$FONTPATH\"" 19998 eval ac_define_dir="\"$ac_define_dir\"" 19999 COMPILEDDEFAULTFONTPATH="$ac_define_dir" 20000 20001 20002cat >>confdefs.h <<_ACEOF 20003#define COMPILEDDEFAULTFONTPATH "$ac_define_dir" 20004_ACEOF 20005 20006 test "$prefix_NONE" && prefix=NONE 20007 test "$exec_prefix_NONE" && exec_prefix=NONE 20008 20009 20010 prefix_NONE= 20011 exec_prefix_NONE= 20012 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20013 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20014 eval ac_define_dir="\"$PCI_TXT_IDS_DIR\"" 20015 eval ac_define_dir="\"$ac_define_dir\"" 20016 PCI_TXT_IDS_PATH="$ac_define_dir" 20017 20018 20019cat >>confdefs.h <<_ACEOF 20020#define PCI_TXT_IDS_PATH "$ac_define_dir" 20021_ACEOF 20022 20023 test "$prefix_NONE" && prefix=NONE 20024 test "$exec_prefix_NONE" && exec_prefix=NONE 20025 20026 20027 prefix_NONE= 20028 exec_prefix_NONE= 20029 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20030 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20031 eval ac_define_dir="\"$SERVERCONFIG\"" 20032 eval ac_define_dir="\"$ac_define_dir\"" 20033 SERVER_MISC_CONFIG_PATH="$ac_define_dir" 20034 20035 20036cat >>confdefs.h <<_ACEOF 20037#define SERVER_MISC_CONFIG_PATH "$ac_define_dir" 20038_ACEOF 20039 20040 test "$prefix_NONE" && prefix=NONE 20041 test "$exec_prefix_NONE" && exec_prefix=NONE 20042 20043 20044 prefix_NONE= 20045 exec_prefix_NONE= 20046 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20047 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20048 eval ac_define_dir="\"$FONTROOTDIR\"" 20049 eval ac_define_dir="\"$ac_define_dir\"" 20050 BASE_FONT_PATH="$ac_define_dir" 20051 20052 20053cat >>confdefs.h <<_ACEOF 20054#define BASE_FONT_PATH "$ac_define_dir" 20055_ACEOF 20056 20057 test "$prefix_NONE" && prefix=NONE 20058 test "$exec_prefix_NONE" && exec_prefix=NONE 20059 20060dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri` 20061 20062 prefix_NONE= 20063 exec_prefix_NONE= 20064 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20065 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20066 eval ac_define_dir="\"$dridriverdir\"" 20067 eval ac_define_dir="\"$ac_define_dir\"" 20068 DRI_DRIVER_PATH="$ac_define_dir" 20069 20070 20071cat >>confdefs.h <<_ACEOF 20072#define DRI_DRIVER_PATH "$ac_define_dir" 20073_ACEOF 20074 20075 test "$prefix_NONE" && prefix=NONE 20076 test "$exec_prefix_NONE" && exec_prefix=NONE 20077 20078 20079cat >>confdefs.h <<_ACEOF 20080#define XVENDORNAME "$VENDOR_NAME" 20081_ACEOF 20082 20083 20084cat >>confdefs.h <<_ACEOF 20085#define XVENDORNAMESHORT "$VENDOR_NAME_SHORT" 20086_ACEOF 20087 20088 20089cat >>confdefs.h <<_ACEOF 20090#define XORG_DATE "$RELEASE_DATE" 20091_ACEOF 20092 20093 20094cat >>confdefs.h <<_ACEOF 20095#define XORG_MAN_VERSION "$VENDOR_MAN_VERSION" 20096_ACEOF 20097 20098 20099cat >>confdefs.h <<_ACEOF 20100#define BUILDERADDR "$BUILDERADDR" 20101_ACEOF 20102 20103 20104if test -z "$OSNAME"; then 20105 OSNAME="UNKNOWN" 20106fi 20107 20108 20109cat >>confdefs.h <<_ACEOF 20110#define OSNAME "$OSNAME" 20111_ACEOF 20112 20113 20114cat >>confdefs.h <<_ACEOF 20115#define OSVENDOR "$OSVENDOR" 20116_ACEOF 20117 20118 20119cat >>confdefs.h <<_ACEOF 20120#define BUILDERSTRING "$BUILDERSTRING" 20121_ACEOF 20122 20123 20124 20125 20126cat >>confdefs.h <<_ACEOF 20127#define VENDOR_NAME "$VENDOR_NAME" 20128_ACEOF 20129 20130 20131cat >>confdefs.h <<_ACEOF 20132#define VENDOR_NAME_SHORT "$VENDOR_NAME_SHORT" 20133_ACEOF 20134 20135 20136cat >>confdefs.h <<_ACEOF 20137#define VENDOR_RELEASE $VENDOR_RELEASE 20138_ACEOF 20139 20140 20141cat >>confdefs.h <<_ACEOF 20142#define VENDOR_MAN_VERSION "$VENDOR_MAN_VERSION" 20143_ACEOF 20144 20145 20146 20147$as_echo "#define NO_LIBCWRAPPER 1" >>confdefs.h 20148 20149 20150if test "x$DEBUGGING" = xyes; then 20151 20152$as_echo "#define DEBUG 1" >>confdefs.h 20153 20154fi 20155 if test "x$DEBUGGING" = xyes; then 20156 DEBUG_TRUE= 20157 DEBUG_FALSE='#' 20158else 20159 DEBUG_TRUE='#' 20160 DEBUG_FALSE= 20161fi 20162 20163 20164# If unittests aren't explicitly disabled, check for required support 20165if test "x$UNITTESTS" != xno ; then 20166 20167pkg_failed=no 20168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 20169$as_echo_n "checking for GLIB... " >&6; } 20170 20171if test -n "$GLIB_CFLAGS"; then 20172 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" 20173 elif test -n "$PKG_CONFIG"; then 20174 if test -n "$PKG_CONFIG" && \ 20175 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBGLIB\""; } >&5 20176 ($PKG_CONFIG --exists --print-errors "$LIBGLIB") 2>&5 20177 ac_status=$? 20178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20179 test $ac_status = 0; }; then 20180 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$LIBGLIB" 2>/dev/null` 20181 test "x$?" != "x0" && pkg_failed=yes 20182else 20183 pkg_failed=yes 20184fi 20185 else 20186 pkg_failed=untried 20187fi 20188if test -n "$GLIB_LIBS"; then 20189 pkg_cv_GLIB_LIBS="$GLIB_LIBS" 20190 elif test -n "$PKG_CONFIG"; then 20191 if test -n "$PKG_CONFIG" && \ 20192 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBGLIB\""; } >&5 20193 ($PKG_CONFIG --exists --print-errors "$LIBGLIB") 2>&5 20194 ac_status=$? 20195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20196 test $ac_status = 0; }; then 20197 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$LIBGLIB" 2>/dev/null` 20198 test "x$?" != "x0" && pkg_failed=yes 20199else 20200 pkg_failed=yes 20201fi 20202 else 20203 pkg_failed=untried 20204fi 20205 20206 20207 20208if test $pkg_failed = yes; then 20209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20210$as_echo "no" >&6; } 20211 20212if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20213 _pkg_short_errors_supported=yes 20214else 20215 _pkg_short_errors_supported=no 20216fi 20217 if test $_pkg_short_errors_supported = yes; then 20218 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBGLIB" 2>&1` 20219 else 20220 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBGLIB" 2>&1` 20221 fi 20222 # Put the nasty error message in config.log where it belongs 20223 echo "$GLIB_PKG_ERRORS" >&5 20224 20225 HAVE_GLIB=no 20226elif test $pkg_failed = untried; then 20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20228$as_echo "no" >&6; } 20229 HAVE_GLIB=no 20230else 20231 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS 20232 GLIB_LIBS=$pkg_cv_GLIB_LIBS 20233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20234$as_echo "yes" >&6; } 20235 HAVE_GLIB=yes 20236fi 20237 20238 # Check if linker supports -wrap, passed via compiler flags 20239 # When cross-compiling, reports no, since unit tests run from 20240 # "make check", so would be running on build machine, not target 20241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports -wrap" >&5 20242$as_echo_n "checking whether the linker supports -wrap... " >&6; } 20243 save_LDFLAGS="$LDFLAGS" 20244 LDFLAGS="$LDFLAGS -Wl,-wrap,exit" 20245 if test "$cross_compiling" = yes; then : 20246 linker_can_wrap="no" 20247else 20248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20249/* end confdefs.h. */ 20250 20251 void __wrap_exit (int s) 20252 { 20253 __real_exit (0); 20254 } 20255int 20256main () 20257{ 20258exit (1); 20259 ; 20260 return 0; 20261} 20262_ACEOF 20263if ac_fn_c_try_run "$LINENO"; then : 20264 linker_can_wrap="yes" 20265else 20266 linker_can_wrap="no" 20267fi 20268rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20269 conftest.$ac_objext conftest.beam conftest.$ac_ext 20270fi 20271 20272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $linker_can_wrap" >&5 20273$as_echo "$linker_can_wrap" >&6; } 20274 LDFLAGS="$save_LDFLAGS" 20275fi 20276 20277if test "x$UNITTESTS" = xauto; then 20278 if test "x$HAVE_GLIB" = xyes && test "x$linker_can_wrap" = xyes; then 20279 UNITTESTS=yes 20280 else 20281 UNITTESTS=no 20282 fi 20283fi 20284if test "x$UNITTESTS" = xyes; then 20285 if test "x$HAVE_GLIB" = xno; then 20286 as_fn_error $? "glib required to build unit tests" "$LINENO" 5 20287 fi 20288 if test "x$linker_can_wrap" = xno; then 20289 as_fn_error $? "ld -wrap support required to build unit tests" "$LINENO" 5 20290 fi 20291 20292$as_echo "#define UNITTESTS 1" >>confdefs.h 20293 20294 20295 20296fi 20297 if test "x$UNITTESTS" = xyes; then 20298 UNITTESTS_TRUE= 20299 UNITTESTS_FALSE='#' 20300else 20301 UNITTESTS_TRUE='#' 20302 UNITTESTS_FALSE= 20303fi 20304 20305 20306 20307$as_echo "#define XTEST 1" >>confdefs.h 20308 20309 20310$as_echo "#define XSYNC 1" >>confdefs.h 20311 20312 20313$as_echo "#define XCMISC 1" >>confdefs.h 20314 20315 20316$as_echo "#define BIGREQS 1" >>confdefs.h 20317 20318 20319if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then 20320 DIX_LIB='$(top_builddir)/dix/dix.O' 20321 OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS)' 20322else 20323 DIX_LIB='$(top_builddir)/dix/libdix.la' 20324 OS_LIB='$(top_builddir)/os/libos.la' 20325fi 20326 20327 20328 20329MAIN_LIB='$(top_builddir)/dix/libmain.la' 20330 20331 20332MI_LIB='$(top_builddir)/mi/libmi.la' 20333MI_EXT_LIB='$(top_builddir)/mi/libmiext.la' 20334MI_INC='-I$(top_srcdir)/mi' 20335FB_LIB='$(top_builddir)/fb/libfb.la' 20336FB_INC='-I$(top_srcdir)/fb' 20337MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow' 20338MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la' 20339MIEXT_SYNC_INC='-I$(top_srcdir)/miext/sync' 20340MIEXT_SYNC_LIB='$(top_builddir)/miext/sync/libsync.la' 20341CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include' 20342 20343# SHA1 hashing 20344 20345# Check whether --with-sha1 was given. 20346if test "${with_sha1+set}" = set; then : 20347 withval=$with_sha1; 20348fi 20349 20350ac_fn_c_check_func "$LINENO" "SHA1Init" "ac_cv_func_SHA1Init" 20351if test "x$ac_cv_func_SHA1Init" = xyes; then : 20352 HAVE_SHA1_IN_LIBC=yes 20353fi 20354 20355if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then 20356 with_sha1=libc 20357fi 20358if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then 20359 as_fn_error $? "libc requested but not found" "$LINENO" 5 20360fi 20361if test "x$with_sha1" = xlibc; then 20362 20363$as_echo "#define HAVE_SHA1_IN_LIBC 1" >>confdefs.h 20364 20365 SHA1_LIBS="" 20366fi 20367ac_fn_c_check_func "$LINENO" "CC_SHA1_Init" "ac_cv_func_CC_SHA1_Init" 20368if test "x$ac_cv_func_CC_SHA1_Init" = xyes; then : 20369 HAVE_SHA1_IN_COMMONCRYPTO=yes 20370fi 20371 20372if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then 20373 with_sha1=CommonCrypto 20374fi 20375if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then 20376 as_fn_error $? "CommonCrypto requested but not found" "$LINENO" 5 20377fi 20378if test "x$with_sha1" = xCommonCrypto; then 20379 20380$as_echo "#define HAVE_SHA1_IN_COMMONCRYPTO 1" >>confdefs.h 20381 20382 SHA1_LIBS="" 20383fi 20384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1Init in -lmd" >&5 20385$as_echo_n "checking for SHA1Init in -lmd... " >&6; } 20386if ${ac_cv_lib_md_SHA1Init+:} false; then : 20387 $as_echo_n "(cached) " >&6 20388else 20389 ac_check_lib_save_LIBS=$LIBS 20390LIBS="-lmd $LIBS" 20391cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20392/* end confdefs.h. */ 20393 20394/* Override any GCC internal prototype to avoid an error. 20395 Use char because int might match the return type of a GCC 20396 builtin and then its argument prototype would still apply. */ 20397#ifdef __cplusplus 20398extern "C" 20399#endif 20400char SHA1Init (); 20401int 20402main () 20403{ 20404return SHA1Init (); 20405 ; 20406 return 0; 20407} 20408_ACEOF 20409if ac_fn_c_try_link "$LINENO"; then : 20410 ac_cv_lib_md_SHA1Init=yes 20411else 20412 ac_cv_lib_md_SHA1Init=no 20413fi 20414rm -f core conftest.err conftest.$ac_objext \ 20415 conftest$ac_exeext conftest.$ac_ext 20416LIBS=$ac_check_lib_save_LIBS 20417fi 20418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA1Init" >&5 20419$as_echo "$ac_cv_lib_md_SHA1Init" >&6; } 20420if test "x$ac_cv_lib_md_SHA1Init" = xyes; then : 20421 HAVE_LIBMD=yes 20422fi 20423 20424if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then 20425 with_sha1=libmd 20426fi 20427if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then 20428 as_fn_error $? "libmd requested but not found" "$LINENO" 5 20429fi 20430if test "x$with_sha1" = xlibmd; then 20431 20432$as_echo "#define HAVE_SHA1_IN_LIBMD 1" >>confdefs.h 20433 20434 SHA1_LIBS=-lmd 20435fi 20436 20437pkg_failed=no 20438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSHA1" >&5 20439$as_echo_n "checking for LIBSHA1... " >&6; } 20440 20441if test -n "$LIBSHA1_CFLAGS"; then 20442 pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS" 20443 elif test -n "$PKG_CONFIG"; then 20444 if test -n "$PKG_CONFIG" && \ 20445 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5 20446 ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5 20447 ac_status=$? 20448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20449 test $ac_status = 0; }; then 20450 pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null` 20451 test "x$?" != "x0" && pkg_failed=yes 20452else 20453 pkg_failed=yes 20454fi 20455 else 20456 pkg_failed=untried 20457fi 20458if test -n "$LIBSHA1_LIBS"; then 20459 pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS" 20460 elif test -n "$PKG_CONFIG"; then 20461 if test -n "$PKG_CONFIG" && \ 20462 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5 20463 ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5 20464 ac_status=$? 20465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20466 test $ac_status = 0; }; then 20467 pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null` 20468 test "x$?" != "x0" && pkg_failed=yes 20469else 20470 pkg_failed=yes 20471fi 20472 else 20473 pkg_failed=untried 20474fi 20475 20476 20477 20478if test $pkg_failed = yes; then 20479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20480$as_echo "no" >&6; } 20481 20482if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20483 _pkg_short_errors_supported=yes 20484else 20485 _pkg_short_errors_supported=no 20486fi 20487 if test $_pkg_short_errors_supported = yes; then 20488 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsha1" 2>&1` 20489 else 20490 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsha1" 2>&1` 20491 fi 20492 # Put the nasty error message in config.log where it belongs 20493 echo "$LIBSHA1_PKG_ERRORS" >&5 20494 20495 HAVE_LIBSHA1=no 20496elif test $pkg_failed = untried; then 20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20498$as_echo "no" >&6; } 20499 HAVE_LIBSHA1=no 20500else 20501 LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS 20502 LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS 20503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20504$as_echo "yes" >&6; } 20505 HAVE_LIBSHA1=yes 20506fi 20507if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then 20508 with_sha1=libsha1 20509fi 20510if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then 20511 as_fn_error $? "libsha1 requested but not found" "$LINENO" 5 20512fi 20513if test "x$with_sha1" = xlibsha1; then 20514 20515$as_echo "#define HAVE_SHA1_IN_LIBSHA1 1" >>confdefs.h 20516 20517 SHA1_LIBS=-lsha1 20518fi 20519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5 20520$as_echo_n "checking for gcry_md_open in -lgcrypt... " >&6; } 20521if ${ac_cv_lib_gcrypt_gcry_md_open+:} false; then : 20522 $as_echo_n "(cached) " >&6 20523else 20524 ac_check_lib_save_LIBS=$LIBS 20525LIBS="-lgcrypt $LIBS" 20526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20527/* end confdefs.h. */ 20528 20529/* Override any GCC internal prototype to avoid an error. 20530 Use char because int might match the return type of a GCC 20531 builtin and then its argument prototype would still apply. */ 20532#ifdef __cplusplus 20533extern "C" 20534#endif 20535char gcry_md_open (); 20536int 20537main () 20538{ 20539return gcry_md_open (); 20540 ; 20541 return 0; 20542} 20543_ACEOF 20544if ac_fn_c_try_link "$LINENO"; then : 20545 ac_cv_lib_gcrypt_gcry_md_open=yes 20546else 20547 ac_cv_lib_gcrypt_gcry_md_open=no 20548fi 20549rm -f core conftest.err conftest.$ac_objext \ 20550 conftest$ac_exeext conftest.$ac_ext 20551LIBS=$ac_check_lib_save_LIBS 20552fi 20553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5 20554$as_echo "$ac_cv_lib_gcrypt_gcry_md_open" >&6; } 20555if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes; then : 20556 HAVE_LIBGCRYPT=yes 20557fi 20558 20559if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then 20560 with_sha1=libgcrypt 20561fi 20562if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then 20563 as_fn_error $? "libgcrypt requested but not found" "$LINENO" 5 20564fi 20565if test "x$with_sha1" = xlibgcrypt; then 20566 20567$as_echo "#define HAVE_SHA1_IN_LIBGCRYPT 1" >>confdefs.h 20568 20569 SHA1_LIBS=-lgcrypt 20570fi 20571# We don't need all of the OpenSSL libraries, just libcrypto 20572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5 20573$as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; } 20574if ${ac_cv_lib_crypto_SHA1_Init+:} false; then : 20575 $as_echo_n "(cached) " >&6 20576else 20577 ac_check_lib_save_LIBS=$LIBS 20578LIBS="-lcrypto $LIBS" 20579cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20580/* end confdefs.h. */ 20581 20582/* Override any GCC internal prototype to avoid an error. 20583 Use char because int might match the return type of a GCC 20584 builtin and then its argument prototype would still apply. */ 20585#ifdef __cplusplus 20586extern "C" 20587#endif 20588char SHA1_Init (); 20589int 20590main () 20591{ 20592return SHA1_Init (); 20593 ; 20594 return 0; 20595} 20596_ACEOF 20597if ac_fn_c_try_link "$LINENO"; then : 20598 ac_cv_lib_crypto_SHA1_Init=yes 20599else 20600 ac_cv_lib_crypto_SHA1_Init=no 20601fi 20602rm -f core conftest.err conftest.$ac_objext \ 20603 conftest$ac_exeext conftest.$ac_ext 20604LIBS=$ac_check_lib_save_LIBS 20605fi 20606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5 20607$as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; } 20608if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then : 20609 HAVE_LIBCRYPTO=yes 20610fi 20611 20612 20613pkg_failed=no 20614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5 20615$as_echo_n "checking for OPENSSL... " >&6; } 20616 20617if test -n "$OPENSSL_CFLAGS"; then 20618 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" 20619 elif test -n "$PKG_CONFIG"; then 20620 if test -n "$PKG_CONFIG" && \ 20621 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 20622 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 20623 ac_status=$? 20624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20625 test $ac_status = 0; }; then 20626 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` 20627 test "x$?" != "x0" && pkg_failed=yes 20628else 20629 pkg_failed=yes 20630fi 20631 else 20632 pkg_failed=untried 20633fi 20634if test -n "$OPENSSL_LIBS"; then 20635 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" 20636 elif test -n "$PKG_CONFIG"; then 20637 if test -n "$PKG_CONFIG" && \ 20638 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 20639 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 20640 ac_status=$? 20641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20642 test $ac_status = 0; }; then 20643 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` 20644 test "x$?" != "x0" && pkg_failed=yes 20645else 20646 pkg_failed=yes 20647fi 20648 else 20649 pkg_failed=untried 20650fi 20651 20652 20653 20654if test $pkg_failed = yes; then 20655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20656$as_echo "no" >&6; } 20657 20658if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20659 _pkg_short_errors_supported=yes 20660else 20661 _pkg_short_errors_supported=no 20662fi 20663 if test $_pkg_short_errors_supported = yes; then 20664 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1` 20665 else 20666 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1` 20667 fi 20668 # Put the nasty error message in config.log where it belongs 20669 echo "$OPENSSL_PKG_ERRORS" >&5 20670 20671 HAVE_OPENSSL_PKC=no 20672elif test $pkg_failed = untried; then 20673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20674$as_echo "no" >&6; } 20675 HAVE_OPENSSL_PKC=no 20676else 20677 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS 20678 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS 20679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20680$as_echo "yes" >&6; } 20681 HAVE_OPENSSL_PKC=yes 20682fi 20683if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then 20684 if test "x$with_sha1" = x; then 20685 with_sha1=libcrypto 20686 fi 20687else 20688 if test "x$with_sha1" = xlibcrypto; then 20689 as_fn_error $? "OpenSSL libcrypto requested but not found" "$LINENO" 5 20690 fi 20691fi 20692if test "x$with_sha1" = xlibcrypto; then 20693 if test "x$HAVE_LIBCRYPTO" = xyes; then 20694 SHA1_LIBS=-lcrypto 20695 else 20696 SHA1_LIBS="$OPENSSL_LIBS" 20697 SHA1_CFLAGS="$OPENSSL_CFLAGS" 20698 fi 20699fi 20700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 implementation" >&5 20701$as_echo_n "checking for SHA1 implementation... " >&6; } 20702if test "x$with_sha1" = x; then 20703 as_fn_error $? "No suitable SHA1 implementation found" "$LINENO" 5 20704fi 20705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sha1" >&5 20706$as_echo "$with_sha1" >&6; } 20707 20708 20709 20710 20711pkg_failed=no 20712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERCFLAGS" >&5 20713$as_echo_n "checking for XSERVERCFLAGS... " >&6; } 20714 20715if test -n "$XSERVERCFLAGS_CFLAGS"; then 20716 pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS" 20717 elif test -n "$PKG_CONFIG"; then 20718 if test -n "$PKG_CONFIG" && \ 20719 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5 20720 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5 20721 ac_status=$? 20722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20723 test $ac_status = 0; }; then 20724 pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null` 20725 test "x$?" != "x0" && pkg_failed=yes 20726else 20727 pkg_failed=yes 20728fi 20729 else 20730 pkg_failed=untried 20731fi 20732if test -n "$XSERVERCFLAGS_LIBS"; then 20733 pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS" 20734 elif test -n "$PKG_CONFIG"; then 20735 if test -n "$PKG_CONFIG" && \ 20736 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5 20737 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5 20738 ac_status=$? 20739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20740 test $ac_status = 0; }; then 20741 pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null` 20742 test "x$?" != "x0" && pkg_failed=yes 20743else 20744 pkg_failed=yes 20745fi 20746 else 20747 pkg_failed=untried 20748fi 20749 20750 20751 20752if test $pkg_failed = yes; then 20753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20754$as_echo "no" >&6; } 20755 20756if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20757 _pkg_short_errors_supported=yes 20758else 20759 _pkg_short_errors_supported=no 20760fi 20761 if test $_pkg_short_errors_supported = yes; then 20762 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1` 20763 else 20764 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1` 20765 fi 20766 # Put the nasty error message in config.log where it belongs 20767 echo "$XSERVERCFLAGS_PKG_ERRORS" >&5 20768 20769 as_fn_error $? "Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met: 20770 20771$XSERVERCFLAGS_PKG_ERRORS 20772 20773Consider adjusting the PKG_CONFIG_PATH environment variable if you 20774installed software in a non-standard prefix. 20775 20776Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS 20777and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config. 20778See the pkg-config man page for more details." "$LINENO" 5 20779elif test $pkg_failed = untried; then 20780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20781$as_echo "no" >&6; } 20782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20784as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20785is in your PATH or set the PKG_CONFIG environment variable to the full 20786path to pkg-config. 20787 20788Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS 20789and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config. 20790See the pkg-config man page for more details. 20791 20792To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20793See \`config.log' for more details" "$LINENO" 5; } 20794else 20795 XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS 20796 XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS 20797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20798$as_echo "yes" >&6; } 20799 20800fi 20801 20802pkg_failed=no 20803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERLIBS" >&5 20804$as_echo_n "checking for XSERVERLIBS... " >&6; } 20805 20806if test -n "$XSERVERLIBS_CFLAGS"; then 20807 pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS" 20808 elif test -n "$PKG_CONFIG"; then 20809 if test -n "$PKG_CONFIG" && \ 20810 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5 20811 ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5 20812 ac_status=$? 20813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20814 test $ac_status = 0; }; then 20815 pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null` 20816 test "x$?" != "x0" && pkg_failed=yes 20817else 20818 pkg_failed=yes 20819fi 20820 else 20821 pkg_failed=untried 20822fi 20823if test -n "$XSERVERLIBS_LIBS"; then 20824 pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS" 20825 elif test -n "$PKG_CONFIG"; then 20826 if test -n "$PKG_CONFIG" && \ 20827 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5 20828 ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5 20829 ac_status=$? 20830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20831 test $ac_status = 0; }; then 20832 pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null` 20833 test "x$?" != "x0" && pkg_failed=yes 20834else 20835 pkg_failed=yes 20836fi 20837 else 20838 pkg_failed=untried 20839fi 20840 20841 20842 20843if test $pkg_failed = yes; then 20844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20845$as_echo "no" >&6; } 20846 20847if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20848 _pkg_short_errors_supported=yes 20849else 20850 _pkg_short_errors_supported=no 20851fi 20852 if test $_pkg_short_errors_supported = yes; then 20853 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1` 20854 else 20855 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1` 20856 fi 20857 # Put the nasty error message in config.log where it belongs 20858 echo "$XSERVERLIBS_PKG_ERRORS" >&5 20859 20860 as_fn_error $? "Package requirements ($REQUIRED_LIBS) were not met: 20861 20862$XSERVERLIBS_PKG_ERRORS 20863 20864Consider adjusting the PKG_CONFIG_PATH environment variable if you 20865installed software in a non-standard prefix. 20866 20867Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS 20868and XSERVERLIBS_LIBS to avoid the need to call pkg-config. 20869See the pkg-config man page for more details." "$LINENO" 5 20870elif test $pkg_failed = untried; then 20871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20872$as_echo "no" >&6; } 20873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20875as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20876is in your PATH or set the PKG_CONFIG environment variable to the full 20877path to pkg-config. 20878 20879Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS 20880and XSERVERLIBS_LIBS to avoid the need to call pkg-config. 20881See the pkg-config man page for more details. 20882 20883To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20884See \`config.log' for more details" "$LINENO" 5; } 20885else 20886 XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS 20887 XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS 20888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20889$as_echo "yes" >&6; } 20890 20891fi 20892 20893# Autotools has some unfortunate issues with library handling. In order to 20894# get a server to rebuild when a dependency in the tree is changed, it must 20895# be listed in SERVERNAME_DEPENDENCIES. However, no system libraries may be 20896# listed there, or some versions of autotools will break (especially if a -L 20897# is required to find the library). So, we keep two sets of libraries 20898# detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which 20899# will go into the _DEPENDENCIES and _LDADD of the server, and 20900# NAMESPACE_SYS_LIBS which will go into only the _LDADD. The 20901# NAMESPACEMODULES_LIBS detected from pkgconfig should always go in 20902# NAMESPACE_SYS_LIBS. 20903# 20904# XSERVER_LIBS is the set of in-tree libraries which all servers require. 20905# XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers 20906# require. 20907# 20908XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}" 20909XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB" 20910XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}" 20911 20912 20913 20914UTILS_SYS_LIBS="${SYS_LIBS}" 20915 20916 20917# The Xorg binary needs to export symbols so that they can be used from modules 20918# Some platforms require extra flags to do this. libtool should set the 20919# necessary flags for each platform when -export-dynamic is passed to it. 20920LD_EXPORT_SYMBOLS_FLAG="-export-dynamic" 20921 20922 20923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SVR4 needs to be defined" >&5 20924$as_echo_n "checking if SVR4 needs to be defined... " >&6; } 20925cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20926/* end confdefs.h. */ 20927 20928#if defined(SVR4) || defined(__svr4__) || defined(__SVR4) 20929 I_AM_SVR4 20930#endif 20931 20932_ACEOF 20933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20934 $EGREP "I_AM_SVR4" >/dev/null 2>&1; then : 20935 20936 20937$as_echo "#define SVR4 1" >>confdefs.h 20938 20939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20940$as_echo "yes" >&6; } 20941else 20942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20943$as_echo "no" >&6; } 20944fi 20945rm -f conftest* 20946 20947 20948XSERVER_CFLAGS="$XSERVER_CFLAGS $CORE_INCS $XEXT_INC $COMPOSITE_INC $DAMAGE_INC $FIXES_INC $XI_INC $MI_INC $MIEXT_SYNC_INC $MIEXT_SHADOW_INC $MIEXT_LAYER_INC $MIEXT_DAMAGE_INC $RENDER_INC $RANDR_INC $FB_INC" 20949 20950 20951 20952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xvfb DDX" >&5 20953$as_echo_n "checking whether to build Xvfb DDX... " >&6; } 20954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVFB" >&5 20955$as_echo "$XVFB" >&6; } 20956 if test "x$XVFB" = xyes; then 20957 XVFB_TRUE= 20958 XVFB_FALSE='#' 20959else 20960 XVFB_TRUE='#' 20961 XVFB_FALSE= 20962fi 20963 20964 20965if test "x$XVFB" = xyes; then 20966 XVFB_LIBS="$FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB" 20967 XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS" 20968 20969 20970fi 20971 20972 20973 20974 20975pkg_failed=no 20976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNESTMODULES" >&5 20977$as_echo_n "checking for XNESTMODULES... " >&6; } 20978 20979if test -n "$XNESTMODULES_CFLAGS"; then 20980 pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS" 20981 elif test -n "$PKG_CONFIG"; then 20982 if test -n "$PKG_CONFIG" && \ 20983 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5 20984 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5 20985 ac_status=$? 20986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20987 test $ac_status = 0; }; then 20988 pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null` 20989 test "x$?" != "x0" && pkg_failed=yes 20990else 20991 pkg_failed=yes 20992fi 20993 else 20994 pkg_failed=untried 20995fi 20996if test -n "$XNESTMODULES_LIBS"; then 20997 pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS" 20998 elif test -n "$PKG_CONFIG"; then 20999 if test -n "$PKG_CONFIG" && \ 21000 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5 21001 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5 21002 ac_status=$? 21003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21004 test $ac_status = 0; }; then 21005 pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null` 21006 test "x$?" != "x0" && pkg_failed=yes 21007else 21008 pkg_failed=yes 21009fi 21010 else 21011 pkg_failed=untried 21012fi 21013 21014 21015 21016if test $pkg_failed = yes; then 21017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21018$as_echo "no" >&6; } 21019 21020if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21021 _pkg_short_errors_supported=yes 21022else 21023 _pkg_short_errors_supported=no 21024fi 21025 if test $_pkg_short_errors_supported = yes; then 21026 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1` 21027 else 21028 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1` 21029 fi 21030 # Put the nasty error message in config.log where it belongs 21031 echo "$XNESTMODULES_PKG_ERRORS" >&5 21032 21033 have_xnest=no 21034elif test $pkg_failed = untried; then 21035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21036$as_echo "no" >&6; } 21037 have_xnest=no 21038else 21039 XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS 21040 XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS 21041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21042$as_echo "yes" >&6; } 21043 have_xnest=yes 21044fi 21045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xnest DDX" >&5 21046$as_echo_n "checking whether to build Xnest DDX... " >&6; } 21047if test "x$XNEST" = xauto; then 21048 XNEST="$have_xnest" 21049fi 21050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XNEST" >&5 21051$as_echo "$XNEST" >&6; } 21052 if test "x$XNEST" = xyes; then 21053 XNEST_TRUE= 21054 XNEST_FALSE='#' 21055else 21056 XNEST_TRUE='#' 21057 XNEST_FALSE= 21058fi 21059 21060 21061if test "x$XNEST" = xyes; then 21062 if test "x$have_xnest" = xno; then 21063 as_fn_error $? "Xnest build explicitly requested, but required modules not found." "$LINENO" 5 21064 fi 21065 XNEST_LIBS="$FB_LIB $FIXES_LIB $MI_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $DIX_LIB $MAIN_LIB $OS_LIB" 21066 XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS" 21067 21068 21069fi 21070 21071 21072 21073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg DDX" >&5 21074$as_echo_n "checking whether to build Xorg DDX... " >&6; } 21075if test "x$XORG" = xauto; then 21076 XORG="yes" 21077 case $host_os in 21078 cygwin*) XORG="no" ;; 21079 darwin*) XORG="no" ;; 21080 esac 21081fi 21082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG" >&5 21083$as_echo "$XORG" >&6; } 21084 21085xorg_bus_linuxpci=no 21086xorg_bus_bsdpci=no 21087xorg_bus_sparc=no 21088 21089if test "x$XORG" = xyes; then 21090 XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common' 21091 XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os' 21092 XORG_INCS="$XORG_DDXINCS $XORG_OSINCS" 21093 XORG_CFLAGS="$XORGSERVER_CFLAGS -DHAVE_XORG_CONFIG_H" 21094 XORG_LIBS="$COMPOSITE_LIB $FIXES_LIB $XEXTXORG_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB" 21095 21096 symbol_visibility= 21097 have_visibility=disabled 21098 if test x$SYMBOL_VISIBILITY != xno; then 21099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5 21100$as_echo_n "checking for symbol visibility support... " >&6; } 21101 if test x$GCC = xyes; then 21102 VISIBILITY_CFLAGS="-fvisibility=hidden" 21103 else 21104 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 21105if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 21106 SUNCC="yes" 21107else 21108 SUNCC="no" 21109fi 21110 21111 if test x$SUNCC = xyes; then 21112 VISIBILITY_CFLAGS="-xldscope=hidden" 21113 else 21114 have_visibility=no 21115 fi 21116 fi 21117 if test x$have_visibility != xno; then 21118 save_CFLAGS="$CFLAGS" 21119 CFLAGS="$CFLAGS $VISIBILITY_CFLAGS" 21120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21121/* end confdefs.h. */ 21122#include <X11/Xfuncproto.h> 21123 extern _X_HIDDEN int hidden_int; 21124 extern _X_EXPORT int public_int; 21125 extern _X_HIDDEN int hidden_int_func(void); 21126 extern _X_EXPORT int public_int_func(void); 21127int 21128main () 21129{ 21130 21131 ; 21132 return 0; 21133} 21134_ACEOF 21135if ac_fn_c_try_compile "$LINENO"; then : 21136 have_visibility=yes 21137else 21138 have_visibility=no 21139fi 21140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21141 CFLAGS=$save_CFLAGS 21142 fi 21143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5 21144$as_echo "$have_visibility" >&6; } 21145 if test x$have_visibility != xno; then 21146 symbol_visibility=$VISIBILITY_CFLAGS 21147 XORG_CFLAGS="$XORG_CFLAGS $VISIBILITY_CFLAGS" 21148 XSERVER_CFLAGS="$XSERVER_CFLAGS $VISIBILITY_CFLAGS" 21149 fi 21150 fi 21151 21152 21153 21154pkg_failed=no 21155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 21156$as_echo_n "checking for PCIACCESS... " >&6; } 21157 21158if test -n "$PCIACCESS_CFLAGS"; then 21159 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 21160 elif test -n "$PKG_CONFIG"; then 21161 if test -n "$PKG_CONFIG" && \ 21162 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5 21163 ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5 21164 ac_status=$? 21165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21166 test $ac_status = 0; }; then 21167 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "$LIBPCIACCESS" 2>/dev/null` 21168 test "x$?" != "x0" && pkg_failed=yes 21169else 21170 pkg_failed=yes 21171fi 21172 else 21173 pkg_failed=untried 21174fi 21175if test -n "$PCIACCESS_LIBS"; then 21176 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 21177 elif test -n "$PKG_CONFIG"; then 21178 if test -n "$PKG_CONFIG" && \ 21179 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5 21180 ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5 21181 ac_status=$? 21182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21183 test $ac_status = 0; }; then 21184 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "$LIBPCIACCESS" 2>/dev/null` 21185 test "x$?" != "x0" && pkg_failed=yes 21186else 21187 pkg_failed=yes 21188fi 21189 else 21190 pkg_failed=untried 21191fi 21192 21193 21194 21195if test $pkg_failed = yes; then 21196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21197$as_echo "no" >&6; } 21198 21199if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21200 _pkg_short_errors_supported=yes 21201else 21202 _pkg_short_errors_supported=no 21203fi 21204 if test $_pkg_short_errors_supported = yes; then 21205 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1` 21206 else 21207 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1` 21208 fi 21209 # Put the nasty error message in config.log where it belongs 21210 echo "$PCIACCESS_PKG_ERRORS" >&5 21211 21212 as_fn_error $? "Package requirements ($LIBPCIACCESS) were not met: 21213 21214$PCIACCESS_PKG_ERRORS 21215 21216Consider adjusting the PKG_CONFIG_PATH environment variable if you 21217installed software in a non-standard prefix. 21218 21219Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21220and PCIACCESS_LIBS to avoid the need to call pkg-config. 21221See the pkg-config man page for more details." "$LINENO" 5 21222elif test $pkg_failed = untried; then 21223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21224$as_echo "no" >&6; } 21225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21227as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21228is in your PATH or set the PKG_CONFIG environment variable to the full 21229path to pkg-config. 21230 21231Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21232and PCIACCESS_LIBS to avoid the need to call pkg-config. 21233See the pkg-config man page for more details. 21234 21235To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21236See \`config.log' for more details" "$LINENO" 5; } 21237else 21238 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 21239 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 21240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21241$as_echo "yes" >&6; } 21242 21243fi 21244 SAVE_LIBS=$LIBS 21245 SAVE_CFLAGS=$CFLAGS 21246 CFLAGS=$PCIACCESS_CFLAGS 21247 LIBS=$PCIACCESS_LIBS 21248 for ac_func in pci_system_init_dev_mem 21249do : 21250 ac_fn_c_check_func "$LINENO" "pci_system_init_dev_mem" "ac_cv_func_pci_system_init_dev_mem" 21251if test "x$ac_cv_func_pci_system_init_dev_mem" = xyes; then : 21252 cat >>confdefs.h <<_ACEOF 21253#define HAVE_PCI_SYSTEM_INIT_DEV_MEM 1 21254_ACEOF 21255 21256fi 21257done 21258 21259 for ac_func in pci_device_enable 21260do : 21261 ac_fn_c_check_func "$LINENO" "pci_device_enable" "ac_cv_func_pci_device_enable" 21262if test "x$ac_cv_func_pci_device_enable" = xyes; then : 21263 cat >>confdefs.h <<_ACEOF 21264#define HAVE_PCI_DEVICE_ENABLE 1 21265_ACEOF 21266 21267fi 21268done 21269 21270 for ac_func in pci_device_is_boot_vga 21271do : 21272 ac_fn_c_check_func "$LINENO" "pci_device_is_boot_vga" "ac_cv_func_pci_device_is_boot_vga" 21273if test "x$ac_cv_func_pci_device_is_boot_vga" = xyes; then : 21274 cat >>confdefs.h <<_ACEOF 21275#define HAVE_PCI_DEVICE_IS_BOOT_VGA 1 21276_ACEOF 21277 21278fi 21279done 21280 21281 for ac_func in pci_device_vgaarb_init 21282do : 21283 ac_fn_c_check_func "$LINENO" "pci_device_vgaarb_init" "ac_cv_func_pci_device_vgaarb_init" 21284if test "x$ac_cv_func_pci_device_vgaarb_init" = xyes; then : 21285 cat >>confdefs.h <<_ACEOF 21286#define HAVE_PCI_DEVICE_VGAARB_INIT 1 21287_ACEOF 21288 21289fi 21290done 21291 21292 LIBS=$SAVE_LIBS 21293 CFLAGS=$SAVE_CFLAGS 21294 XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $GLX_SYS_LIBS" 21295 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 21296 21297 case $host_os in 21298 linux*) 21299 if test "x$LNXAPM" = xyes; then 21300 XORG_CFLAGS="$XORG_CFLAGS -DXF86PM" 21301 fi 21302 XORG_OS="linux" 21303 XORG_OS_SUBDIR="linux" 21304 xorg_bus_linuxpci="yes" 21305 linux_acpi="no" 21306 case $host_cpu in 21307 ia64*) 21308 linux_ia64=yes 21309 linux_acpi="yes" 21310 ;; 21311 alpha*) 21312 linux_alpha=yes 21313 ;; 21314 i*86|amd64*|x86_64*) 21315 linux_acpi="yes" 21316 ;; 21317 *) 21318 ;; 21319 esac 21320 ;; 21321 freebsd* | kfreebsd*-gnu | dragonfly*) 21322 XORG_OS="freebsd" 21323 XORG_OS_SUBDIR="bsd" 21324 xorg_bus_bsdpci="yes" 21325 ;; 21326 netbsd*) 21327 XORG_OS="netbsd" 21328 XORG_OS_SUBDIR="bsd" 21329 xorg_bus_bsdpci="yes" 21330 ;; 21331 openbsd*) 21332 if test "x$ac_cv_BSD_APM" = xyes \ 21333 -o "x$ac_cv_BSD_KQUEUE_APM" = xyes; then 21334 XORG_CFLAGS="$XORG_CFLAGS -DXF86PM" 21335 fi 21336 XORG_OS="openbsd" 21337 XORG_OS_SUBDIR="bsd" 21338 xorg_bus_bsdpci="yes" 21339 ;; 21340 solaris*) 21341 XORG_OS="solaris" 21342 XORG_OS_SUBDIR="solaris" 21343 XORG_CFLAGS="$XORG_CFLAGS -DXF86PM" 21344 # Use the same stubs as BSD for old functions, since we now 21345 # use libpciaccess for PCI 21346 xorg_bus_bsdpci="yes" 21347 for ac_header in sys/kd.h 21348do : 21349 ac_fn_c_check_header_mongrel "$LINENO" "sys/kd.h" "ac_cv_header_sys_kd_h" "$ac_includes_default" 21350if test "x$ac_cv_header_sys_kd_h" = xyes; then : 21351 cat >>confdefs.h <<_ACEOF 21352#define HAVE_SYS_KD_H 1 21353_ACEOF 21354 21355fi 21356 21357done 21358 21359 for ac_header in sys/vt.h 21360do : 21361 ac_fn_c_check_header_mongrel "$LINENO" "sys/vt.h" "ac_cv_header_sys_vt_h" "$ac_includes_default" 21362if test "x$ac_cv_header_sys_vt_h" = xyes; then : 21363 cat >>confdefs.h <<_ACEOF 21364#define HAVE_SYS_VT_H 1 21365_ACEOF 21366 solaris_vt=yes 21367else 21368 solaris_vt=no 21369fi 21370 21371done 21372 21373 # Check for minimum supported release 21374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris version" >&5 21375$as_echo_n "checking Solaris version... " >&6; } 21376 OS_MINOR=`echo ${host_os}|$SED -e 's/^.*solaris2\.//' -e s'/\..*$//'` 21377 if test "${OS_MINOR}" -ge 7 ; then 21378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris ${OS_MINOR}" >&5 21379$as_echo "Solaris ${OS_MINOR}" >&6; } 21380 else 21381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&5 21382$as_echo "Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&6; } 21383 fi 21384 if test "${OS_MINOR}" -lt 8 ; then 21385 as_fn_error $? "This release no longer supports Solaris versions older than Solaris 8." "$LINENO" 5 21386 fi 21387 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 21388if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 21389 SUNCC="yes" 21390else 21391 SUNCC="no" 21392fi 21393 21394 if test "x$SUNCC" = "xyes"; then 21395 solaris_asm_inline="yes" 21396 fi 21397 ac_fn_c_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default" 21398if test "x$ac_cv_have_decl__LP64" = xyes; then : 21399 SOLARIS_64="yes" 21400else 21401 SOLARIS_64="no" 21402fi 21403 21404 21405 case $host_cpu in 21406 sparc*) 21407 SOLARIS_INOUT_ARCH="sparcv8plus" 21408 ;; 21409 i*86) 21410 if test x$SOLARIS_64 = xyes ; then 21411 SOLARIS_INOUT_ARCH="amd64" 21412 else 21413 SOLARIS_INOUT_ARCH="ia32" 21414 fi 21415 ;; 21416 *) 21417 as_fn_error $? "Unsupported Solaris platform. Only SPARC & x86 \ 21418 are supported on Solaris in this release. If you are \ 21419 interested in porting Xorg to your platform, please email \ 21420 xorg@lists.freedesktop.org." "$LINENO" 5 ;; 21421 esac 21422 21423 if test x$solaris_asm_inline = xyes ; then 21424 SOLARIS_ASM_CFLAGS='$(top_srcdir)/hw/xfree86/os-support/solaris/solaris-$(SOLARIS_INOUT_ARCH).il' 21425 XORG_CFLAGS="${XORG_CFLAGS} "'$(SOLARIS_ASM_CFLAGS)' 21426 fi 21427 21428 if test "x$SUPPORT_PC98" = xauto; then 21429 SUPPORT_PC98="no" 21430 fi 21431 ;; 21432 gnu*) 21433 XORG_OS="gnu" 21434 XORG_OS_SUBDIR="hurd" 21435 # Use the same stubs as BSD for old functions, since we now 21436 # use libpciaccess for PCI 21437 xorg_bus_bsdpci="yes" 21438 ;; 21439 *) 21440 XORG_OS="unknown" 21441 XORG_OS_SUBDIR="unknown" 21442 as_fn_error $? "Your OS is unknown. Xorg currently only supports Linux, 21443Free/Open/Net/DragonFlyBSD, Solaris/OpenSolaris, & GNU Hurd. If you are 21444interested in porting Xorg to your platform, please email 21445xorg@lists.freedesktop.org." "$LINENO" 5 21446 ;; 21447 esac 21448 21449 case $host_cpu in 21450 sparc*) 21451 xorg_bus_sparc="yes" 21452 ;; 21453 i*86) 21454 if test "x$SUPPORT_PC98" = xauto; then 21455 SUPPORT_PC98="yes" 21456 fi 21457 ;; 21458 esac 21459 21460 if test "x$SUPPORT_PC98" = xauto; then 21461 SUPPORT_PC98="no" 21462 fi 21463 if test "x$SUPPORT_PC98" = xyes; then 21464 21465$as_echo "#define SUPPORT_PC98 1" >>confdefs.h 21466 21467 fi 21468 if test "x$XORG_OS_PCI" = x ; then 21469 XORG_OS_PCI=$XORG_OS 21470 fi 21471 if test "x$DGA" = xauto; then 21472 21473pkg_failed=no 21474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5 21475$as_echo_n "checking for DGA... " >&6; } 21476 21477if test -n "$DGA_CFLAGS"; then 21478 pkg_cv_DGA_CFLAGS="$DGA_CFLAGS" 21479 elif test -n "$PKG_CONFIG"; then 21480 if test -n "$PKG_CONFIG" && \ 21481 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 21482 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 21483 ac_status=$? 21484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21485 test $ac_status = 0; }; then 21486 pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null` 21487 test "x$?" != "x0" && pkg_failed=yes 21488else 21489 pkg_failed=yes 21490fi 21491 else 21492 pkg_failed=untried 21493fi 21494if test -n "$DGA_LIBS"; then 21495 pkg_cv_DGA_LIBS="$DGA_LIBS" 21496 elif test -n "$PKG_CONFIG"; then 21497 if test -n "$PKG_CONFIG" && \ 21498 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 21499 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 21500 ac_status=$? 21501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21502 test $ac_status = 0; }; then 21503 pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null` 21504 test "x$?" != "x0" && pkg_failed=yes 21505else 21506 pkg_failed=yes 21507fi 21508 else 21509 pkg_failed=untried 21510fi 21511 21512 21513 21514if test $pkg_failed = yes; then 21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21516$as_echo "no" >&6; } 21517 21518if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21519 _pkg_short_errors_supported=yes 21520else 21521 _pkg_short_errors_supported=no 21522fi 21523 if test $_pkg_short_errors_supported = yes; then 21524 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1` 21525 else 21526 DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1` 21527 fi 21528 # Put the nasty error message in config.log where it belongs 21529 echo "$DGA_PKG_ERRORS" >&5 21530 21531 DGA=no 21532elif test $pkg_failed = untried; then 21533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21534$as_echo "no" >&6; } 21535 DGA=no 21536else 21537 DGA_CFLAGS=$pkg_cv_DGA_CFLAGS 21538 DGA_LIBS=$pkg_cv_DGA_LIBS 21539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21540$as_echo "yes" >&6; } 21541 DGA=yes 21542fi 21543 fi 21544 if test "x$DGA" = xyes; then 21545 XORG_MODULES="$XORG_MODULES $DGAPROTO" 21546 21547pkg_failed=no 21548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5 21549$as_echo_n "checking for DGA... " >&6; } 21550 21551if test -n "$DGA_CFLAGS"; then 21552 pkg_cv_DGA_CFLAGS="$DGA_CFLAGS" 21553 elif test -n "$PKG_CONFIG"; then 21554 if test -n "$PKG_CONFIG" && \ 21555 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 21556 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 21557 ac_status=$? 21558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21559 test $ac_status = 0; }; then 21560 pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null` 21561 test "x$?" != "x0" && pkg_failed=yes 21562else 21563 pkg_failed=yes 21564fi 21565 else 21566 pkg_failed=untried 21567fi 21568if test -n "$DGA_LIBS"; then 21569 pkg_cv_DGA_LIBS="$DGA_LIBS" 21570 elif test -n "$PKG_CONFIG"; then 21571 if test -n "$PKG_CONFIG" && \ 21572 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 21573 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 21574 ac_status=$? 21575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21576 test $ac_status = 0; }; then 21577 pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null` 21578 test "x$?" != "x0" && pkg_failed=yes 21579else 21580 pkg_failed=yes 21581fi 21582 else 21583 pkg_failed=untried 21584fi 21585 21586 21587 21588if test $pkg_failed = yes; then 21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21590$as_echo "no" >&6; } 21591 21592if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21593 _pkg_short_errors_supported=yes 21594else 21595 _pkg_short_errors_supported=no 21596fi 21597 if test $_pkg_short_errors_supported = yes; then 21598 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1` 21599 else 21600 DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1` 21601 fi 21602 # Put the nasty error message in config.log where it belongs 21603 echo "$DGA_PKG_ERRORS" >&5 21604 21605 as_fn_error $? "Package requirements ($DGAPROTO) were not met: 21606 21607$DGA_PKG_ERRORS 21608 21609Consider adjusting the PKG_CONFIG_PATH environment variable if you 21610installed software in a non-standard prefix. 21611 21612Alternatively, you may set the environment variables DGA_CFLAGS 21613and DGA_LIBS to avoid the need to call pkg-config. 21614See the pkg-config man page for more details." "$LINENO" 5 21615elif test $pkg_failed = untried; then 21616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21617$as_echo "no" >&6; } 21618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21620as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21621is in your PATH or set the PKG_CONFIG environment variable to the full 21622path to pkg-config. 21623 21624Alternatively, you may set the environment variables DGA_CFLAGS 21625and DGA_LIBS to avoid the need to call pkg-config. 21626See the pkg-config man page for more details. 21627 21628To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21629See \`config.log' for more details" "$LINENO" 5; } 21630else 21631 DGA_CFLAGS=$pkg_cv_DGA_CFLAGS 21632 DGA_LIBS=$pkg_cv_DGA_LIBS 21633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21634$as_echo "yes" >&6; } 21635 21636fi 21637 21638$as_echo "#define DGA 1" >>confdefs.h 21639 21640 21641$as_echo "#define XFreeXDGA 1" >>confdefs.h 21642 21643 fi 21644 21645 if test "x$XF86VIDMODE" = xauto; then 21646 21647pkg_failed=no 21648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VIDMODE" >&5 21649$as_echo_n "checking for XF86VIDMODE... " >&6; } 21650 21651if test -n "$XF86VIDMODE_CFLAGS"; then 21652 pkg_cv_XF86VIDMODE_CFLAGS="$XF86VIDMODE_CFLAGS" 21653 elif test -n "$PKG_CONFIG"; then 21654 if test -n "$PKG_CONFIG" && \ 21655 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5 21656 ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5 21657 ac_status=$? 21658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21659 test $ac_status = 0; }; then 21660 pkg_cv_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "$VIDMODEPROTO" 2>/dev/null` 21661 test "x$?" != "x0" && pkg_failed=yes 21662else 21663 pkg_failed=yes 21664fi 21665 else 21666 pkg_failed=untried 21667fi 21668if test -n "$XF86VIDMODE_LIBS"; then 21669 pkg_cv_XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS" 21670 elif test -n "$PKG_CONFIG"; then 21671 if test -n "$PKG_CONFIG" && \ 21672 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5 21673 ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5 21674 ac_status=$? 21675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21676 test $ac_status = 0; }; then 21677 pkg_cv_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "$VIDMODEPROTO" 2>/dev/null` 21678 test "x$?" != "x0" && pkg_failed=yes 21679else 21680 pkg_failed=yes 21681fi 21682 else 21683 pkg_failed=untried 21684fi 21685 21686 21687 21688if test $pkg_failed = yes; then 21689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21690$as_echo "no" >&6; } 21691 21692if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21693 _pkg_short_errors_supported=yes 21694else 21695 _pkg_short_errors_supported=no 21696fi 21697 if test $_pkg_short_errors_supported = yes; then 21698 XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$VIDMODEPROTO" 2>&1` 21699 else 21700 XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$VIDMODEPROTO" 2>&1` 21701 fi 21702 # Put the nasty error message in config.log where it belongs 21703 echo "$XF86VIDMODE_PKG_ERRORS" >&5 21704 21705 XF86VIDMODE=no 21706elif test $pkg_failed = untried; then 21707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21708$as_echo "no" >&6; } 21709 XF86VIDMODE=no 21710else 21711 XF86VIDMODE_CFLAGS=$pkg_cv_XF86VIDMODE_CFLAGS 21712 XF86VIDMODE_LIBS=$pkg_cv_XF86VIDMODE_LIBS 21713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21714$as_echo "yes" >&6; } 21715 XF86VIDMODE=yes 21716fi 21717 fi 21718 if test "x$XF86VIDMODE" = xyes; then 21719 XORG_MODULES="$XORG_MODULES $VIDMODEPROTO" 21720 21721pkg_failed=no 21722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VIDMODE" >&5 21723$as_echo_n "checking for XF86VIDMODE... " >&6; } 21724 21725if test -n "$XF86VIDMODE_CFLAGS"; then 21726 pkg_cv_XF86VIDMODE_CFLAGS="$XF86VIDMODE_CFLAGS" 21727 elif test -n "$PKG_CONFIG"; then 21728 if test -n "$PKG_CONFIG" && \ 21729 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5 21730 ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5 21731 ac_status=$? 21732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21733 test $ac_status = 0; }; then 21734 pkg_cv_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "$VIDMODEPROTO" 2>/dev/null` 21735 test "x$?" != "x0" && pkg_failed=yes 21736else 21737 pkg_failed=yes 21738fi 21739 else 21740 pkg_failed=untried 21741fi 21742if test -n "$XF86VIDMODE_LIBS"; then 21743 pkg_cv_XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS" 21744 elif test -n "$PKG_CONFIG"; then 21745 if test -n "$PKG_CONFIG" && \ 21746 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5 21747 ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5 21748 ac_status=$? 21749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21750 test $ac_status = 0; }; then 21751 pkg_cv_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "$VIDMODEPROTO" 2>/dev/null` 21752 test "x$?" != "x0" && pkg_failed=yes 21753else 21754 pkg_failed=yes 21755fi 21756 else 21757 pkg_failed=untried 21758fi 21759 21760 21761 21762if test $pkg_failed = yes; then 21763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21764$as_echo "no" >&6; } 21765 21766if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21767 _pkg_short_errors_supported=yes 21768else 21769 _pkg_short_errors_supported=no 21770fi 21771 if test $_pkg_short_errors_supported = yes; then 21772 XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$VIDMODEPROTO" 2>&1` 21773 else 21774 XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$VIDMODEPROTO" 2>&1` 21775 fi 21776 # Put the nasty error message in config.log where it belongs 21777 echo "$XF86VIDMODE_PKG_ERRORS" >&5 21778 21779 as_fn_error $? "Package requirements ($VIDMODEPROTO) were not met: 21780 21781$XF86VIDMODE_PKG_ERRORS 21782 21783Consider adjusting the PKG_CONFIG_PATH environment variable if you 21784installed software in a non-standard prefix. 21785 21786Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS 21787and XF86VIDMODE_LIBS to avoid the need to call pkg-config. 21788See the pkg-config man page for more details." "$LINENO" 5 21789elif test $pkg_failed = untried; then 21790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21791$as_echo "no" >&6; } 21792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21794as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21795is in your PATH or set the PKG_CONFIG environment variable to the full 21796path to pkg-config. 21797 21798Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS 21799and XF86VIDMODE_LIBS to avoid the need to call pkg-config. 21800See the pkg-config man page for more details. 21801 21802To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21803See \`config.log' for more details" "$LINENO" 5; } 21804else 21805 XF86VIDMODE_CFLAGS=$pkg_cv_XF86VIDMODE_CFLAGS 21806 XF86VIDMODE_LIBS=$pkg_cv_XF86VIDMODE_LIBS 21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21808$as_echo "yes" >&6; } 21809 21810fi 21811 21812$as_echo "#define XF86VIDMODE 1" >>confdefs.h 21813 21814 fi 21815 21816 if test -n "$XORG_MODULES"; then 21817 21818pkg_failed=no 21819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG_MODULES" >&5 21820$as_echo_n "checking for XORG_MODULES... " >&6; } 21821 21822if test -n "$XORG_MODULES_CFLAGS"; then 21823 pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS" 21824 elif test -n "$PKG_CONFIG"; then 21825 if test -n "$PKG_CONFIG" && \ 21826 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5 21827 ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5 21828 ac_status=$? 21829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21830 test $ac_status = 0; }; then 21831 pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null` 21832 test "x$?" != "x0" && pkg_failed=yes 21833else 21834 pkg_failed=yes 21835fi 21836 else 21837 pkg_failed=untried 21838fi 21839if test -n "$XORG_MODULES_LIBS"; then 21840 pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS" 21841 elif test -n "$PKG_CONFIG"; then 21842 if test -n "$PKG_CONFIG" && \ 21843 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5 21844 ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5 21845 ac_status=$? 21846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21847 test $ac_status = 0; }; then 21848 pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null` 21849 test "x$?" != "x0" && pkg_failed=yes 21850else 21851 pkg_failed=yes 21852fi 21853 else 21854 pkg_failed=untried 21855fi 21856 21857 21858 21859if test $pkg_failed = yes; then 21860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21861$as_echo "no" >&6; } 21862 21863if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21864 _pkg_short_errors_supported=yes 21865else 21866 _pkg_short_errors_supported=no 21867fi 21868 if test $_pkg_short_errors_supported = yes; then 21869 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XORG_MODULES" 2>&1` 21870 else 21871 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XORG_MODULES" 2>&1` 21872 fi 21873 # Put the nasty error message in config.log where it belongs 21874 echo "$XORG_MODULES_PKG_ERRORS" >&5 21875 21876 as_fn_error $? "Package requirements ($XORG_MODULES) were not met: 21877 21878$XORG_MODULES_PKG_ERRORS 21879 21880Consider adjusting the PKG_CONFIG_PATH environment variable if you 21881installed software in a non-standard prefix. 21882 21883Alternatively, you may set the environment variables XORG_MODULES_CFLAGS 21884and XORG_MODULES_LIBS to avoid the need to call pkg-config. 21885See the pkg-config man page for more details." "$LINENO" 5 21886elif test $pkg_failed = untried; then 21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21888$as_echo "no" >&6; } 21889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21891as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21892is in your PATH or set the PKG_CONFIG environment variable to the full 21893path to pkg-config. 21894 21895Alternatively, you may set the environment variables XORG_MODULES_CFLAGS 21896and XORG_MODULES_LIBS to avoid the need to call pkg-config. 21897See the pkg-config man page for more details. 21898 21899To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21900See \`config.log' for more details" "$LINENO" 5; } 21901else 21902 XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS 21903 XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS 21904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21905$as_echo "yes" >&6; } 21906 21907fi 21908 XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS" 21909 XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS" 21910 fi 21911 21912 21913 21914 21915 21916 21917 21918 # Extract the first word of "perl", so it can be a program name with args. 21919set dummy perl; ac_word=$2 21920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21921$as_echo_n "checking for $ac_word... " >&6; } 21922if ${ac_cv_path_PERL+:} false; then : 21923 $as_echo_n "(cached) " >&6 21924else 21925 case $PERL in 21926 [\\/]* | ?:[\\/]*) 21927 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 21928 ;; 21929 *) 21930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21931for as_dir in $PATH 21932do 21933 IFS=$as_save_IFS 21934 test -z "$as_dir" && as_dir=. 21935 for ac_exec_ext in '' $ac_executable_extensions; do 21936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21937 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 21938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21939 break 2 21940 fi 21941done 21942 done 21943IFS=$as_save_IFS 21944 21945 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" 21946 ;; 21947esac 21948fi 21949PERL=$ac_cv_path_PERL 21950if test -n "$PERL"; then 21951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 21952$as_echo "$PERL" >&6; } 21953else 21954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21955$as_echo "no" >&6; } 21956fi 21957 21958 21959 if test "x$PERL" = xno; then 21960 as_fn_error $? "Perl is required to build the XFree86/Xorg DDX." "$LINENO" 5 21961 fi 21962 21963 21964 21965 21966 XF86CONFIGFILE="xorg.conf" 21967 XF86CONFIGDIR="xorg.conf.d" 21968 21969 CONFIGFILE="$sysconfdir/$XF86CONFIGFILE" 21970 LOGPREFIX="$logdir/Xorg." 21971 21972$as_echo "#define XORG_SERVER 1" >>confdefs.h 21973 21974 21975$as_echo "#define XORGSERVER 1" >>confdefs.h 21976 21977 21978$as_echo "#define XFree86Server 1" >>confdefs.h 21979 21980 21981$as_echo "#define XFree86LOADER 1" >>confdefs.h 21982 21983 21984cat >>confdefs.h <<_ACEOF 21985#define XORG_VERSION_CURRENT $VENDOR_RELEASE 21986_ACEOF 21987 21988 21989$as_echo "#define NEED_XF86_TYPES 1" >>confdefs.h 21990 21991 21992$as_echo "#define NEED_XF86_PROTOTYPES 1" >>confdefs.h 21993 21994 21995$as_echo "#define __XSERVERNAME__ \"Xorg\"" >>confdefs.h 21996 21997 21998 prefix_NONE= 21999 exec_prefix_NONE= 22000 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 22001 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 22002 eval ac_define_dir="\"$XF86CONFIGFILE\"" 22003 eval ac_define_dir="\"$ac_define_dir\"" 22004 __XCONFIGFILE__="$ac_define_dir" 22005 22006 22007cat >>confdefs.h <<_ACEOF 22008#define __XCONFIGFILE__ "$ac_define_dir" 22009_ACEOF 22010 22011 test "$prefix_NONE" && prefix=NONE 22012 test "$exec_prefix_NONE" && exec_prefix=NONE 22013 22014 22015 prefix_NONE= 22016 exec_prefix_NONE= 22017 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 22018 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 22019 eval ac_define_dir="\"$XF86CONFIGFILE\"" 22020 eval ac_define_dir="\"$ac_define_dir\"" 22021 XF86CONFIGFILE="$ac_define_dir" 22022 22023 22024cat >>confdefs.h <<_ACEOF 22025#define XF86CONFIGFILE "$ac_define_dir" 22026_ACEOF 22027 22028 test "$prefix_NONE" && prefix=NONE 22029 test "$exec_prefix_NONE" && exec_prefix=NONE 22030 22031 22032 prefix_NONE= 22033 exec_prefix_NONE= 22034 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 22035 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 22036 eval ac_define_dir="\"$XF86CONFIGDIR\"" 22037 eval ac_define_dir="\"$ac_define_dir\"" 22038 __XCONFIGDIR__="$ac_define_dir" 22039 22040 22041cat >>confdefs.h <<_ACEOF 22042#define __XCONFIGDIR__ "$ac_define_dir" 22043_ACEOF 22044 22045 test "$prefix_NONE" && prefix=NONE 22046 test "$exec_prefix_NONE" && exec_prefix=NONE 22047 22048 22049 prefix_NONE= 22050 exec_prefix_NONE= 22051 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 22052 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 22053 eval ac_define_dir="\"$moduledir\"" 22054 eval ac_define_dir="\"$ac_define_dir\"" 22055 DEFAULT_MODULE_PATH="$ac_define_dir" 22056 22057 22058cat >>confdefs.h <<_ACEOF 22059#define DEFAULT_MODULE_PATH "$ac_define_dir" 22060_ACEOF 22061 22062 test "$prefix_NONE" && prefix=NONE 22063 test "$exec_prefix_NONE" && exec_prefix=NONE 22064 22065 22066 prefix_NONE= 22067 exec_prefix_NONE= 22068 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 22069 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 22070 eval ac_define_dir="\"$libdir\"" 22071 eval ac_define_dir="\"$ac_define_dir\"" 22072 DEFAULT_LIBRARY_PATH="$ac_define_dir" 22073 22074 22075cat >>confdefs.h <<_ACEOF 22076#define DEFAULT_LIBRARY_PATH "$ac_define_dir" 22077_ACEOF 22078 22079 test "$prefix_NONE" && prefix=NONE 22080 test "$exec_prefix_NONE" && exec_prefix=NONE 22081 22082 22083 prefix_NONE= 22084 exec_prefix_NONE= 22085 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 22086 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 22087 eval ac_define_dir="\"$LOGPREFIX\"" 22088 eval ac_define_dir="\"$ac_define_dir\"" 22089 DEFAULT_LOGPREFIX="$ac_define_dir" 22090 22091 22092cat >>confdefs.h <<_ACEOF 22093#define DEFAULT_LOGPREFIX "$ac_define_dir" 22094_ACEOF 22095 22096 test "$prefix_NONE" && prefix=NONE 22097 test "$exec_prefix_NONE" && exec_prefix=NONE 22098 22099 22100cat >>confdefs.h <<_ACEOF 22101#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB" 22102_ACEOF 22103 22104 22105$as_echo "#define XSERVER_LIBPCIACCESS 1" >>confdefs.h 22106 22107 if test "x$VGAHW" = xyes; then 22108 22109$as_echo "#define WITH_VGAHW 1" >>confdefs.h 22110 22111 fi 22112 22113 driverdir="$moduledir/drivers" 22114 22115 22116 sdkdir="$includedir/xorg" 22117 extdir="$includedir/X11/extensions" 22118 sysconfigdir="$datadir/X11/$XF86CONFIGDIR" 22119 22120 22121 22122 22123 22124 # stuff the ABI versions into the pc file too 22125 extract_abi() { 22126 grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' ' .' | awk '{ print $4$5 }' 22127 } 22128 abi_ansic=`extract_abi ANSIC` 22129 abi_videodrv=`extract_abi VIDEODRV` 22130 abi_xinput=`extract_abi XINPUT` 22131 abi_extension=`extract_abi EXTENSION` 22132 22133 22134 22135 22136fi 22137 if test "x$XORG" = xyes; then 22138 XORG_TRUE= 22139 XORG_FALSE='#' 22140else 22141 XORG_TRUE='#' 22142 XORG_FALSE= 22143fi 22144 22145 if test "x$xorg_bus_linuxpci" = xyes; then 22146 XORG_BUS_LINUXPCI_TRUE= 22147 XORG_BUS_LINUXPCI_FALSE='#' 22148else 22149 XORG_BUS_LINUXPCI_TRUE='#' 22150 XORG_BUS_LINUXPCI_FALSE= 22151fi 22152 22153 if test "x$xorg_bus_bsdpci" = xyes; then 22154 XORG_BUS_BSDPCI_TRUE= 22155 XORG_BUS_BSDPCI_FALSE='#' 22156else 22157 XORG_BUS_BSDPCI_TRUE='#' 22158 XORG_BUS_BSDPCI_FALSE= 22159fi 22160 22161 if test "x$xorg_bus_sparc" = xyes; then 22162 XORG_BUS_SPARC_TRUE= 22163 XORG_BUS_SPARC_FALSE='#' 22164else 22165 XORG_BUS_SPARC_TRUE='#' 22166 XORG_BUS_SPARC_FALSE= 22167fi 22168 22169 if test "x$linux_ia64" = xyes; then 22170 LINUX_IA64_TRUE= 22171 LINUX_IA64_FALSE='#' 22172else 22173 LINUX_IA64_TRUE='#' 22174 LINUX_IA64_FALSE= 22175fi 22176 22177 if test "x$linux_alpha" = xyes; then 22178 LINUX_ALPHA_TRUE= 22179 LINUX_ALPHA_FALSE='#' 22180else 22181 LINUX_ALPHA_TRUE='#' 22182 LINUX_ALPHA_FALSE= 22183fi 22184 22185 if test "x$linux_acpi" = xyes; then 22186 LNXACPI_TRUE= 22187 LNXACPI_FALSE='#' 22188else 22189 LNXACPI_TRUE='#' 22190 LNXACPI_FALSE= 22191fi 22192 22193 if test "x$solaris_asm_inline" = xyes; then 22194 SOLARIS_ASM_INLINE_TRUE= 22195 SOLARIS_ASM_INLINE_FALSE='#' 22196else 22197 SOLARIS_ASM_INLINE_TRUE='#' 22198 SOLARIS_ASM_INLINE_FALSE= 22199fi 22200 22201 if test "x$solaris_vt" = xyes; then 22202 SOLARIS_VT_TRUE= 22203 SOLARIS_VT_FALSE='#' 22204else 22205 SOLARIS_VT_TRUE='#' 22206 SOLARIS_VT_FALSE= 22207fi 22208 22209 if test "x$DGA" = xyes; then 22210 DGA_TRUE= 22211 DGA_FALSE='#' 22212else 22213 DGA_TRUE='#' 22214 DGA_FALSE= 22215fi 22216 22217 if test "x$XF86VIDMODE" = xyes; then 22218 XF86VIDMODE_TRUE= 22219 XF86VIDMODE_FALSE='#' 22220else 22221 XF86VIDMODE_TRUE='#' 22222 XF86VIDMODE_FALSE= 22223fi 22224 22225 22226 22227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build XWin DDX" >&5 22228$as_echo_n "checking whether to build XWin DDX... " >&6; } 22229if test "x$XWIN" = xauto; then 22230 case $host_os in 22231 cygwin*) XWIN="yes" ;; 22232 mingw*) XWIN="yes" ;; 22233 *) XWIN="no" ;; 22234 esac 22235fi 22236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XWIN" >&5 22237$as_echo "$XWIN" >&6; } 22238 22239if test "x$XWIN" = xyes; then 22240 22241 prefix_NONE= 22242 exec_prefix_NONE= 22243 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 22244 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 22245 eval ac_define_dir="\"$sysconfdir\"" 22246 eval ac_define_dir="\"$ac_define_dir\"" 22247 SYSCONFDIR="$ac_define_dir" 22248 22249 22250cat >>confdefs.h <<_ACEOF 22251#define SYSCONFDIR "$ac_define_dir" 22252_ACEOF 22253 22254 test "$prefix_NONE" && prefix=NONE 22255 test "$exec_prefix_NONE" && exec_prefix=NONE 22256 22257 22258 prefix_NONE= 22259 exec_prefix_NONE= 22260 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 22261 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 22262 eval ac_define_dir="\"$logdir\"" 22263 eval ac_define_dir="\"$ac_define_dir\"" 22264 DEFAULT_LOGDIR="$ac_define_dir" 22265 22266 22267cat >>confdefs.h <<_ACEOF 22268#define DEFAULT_LOGDIR "$ac_define_dir" 22269_ACEOF 22270 22271 test "$prefix_NONE" && prefix=NONE 22272 test "$exec_prefix_NONE" && exec_prefix=NONE 22273 22274 22275cat >>confdefs.h <<_ACEOF 22276#define XORG_VERSION_CURRENT $VENDOR_RELEASE 22277_ACEOF 22278 22279 22280cat >>confdefs.h <<_ACEOF 22281#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB" 22282_ACEOF 22283 22284 if test -n "$ac_tool_prefix"; then 22285 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 22286set dummy ${ac_tool_prefix}windres; ac_word=$2 22287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22288$as_echo_n "checking for $ac_word... " >&6; } 22289if ${ac_cv_prog_WINDRES+:} false; then : 22290 $as_echo_n "(cached) " >&6 22291else 22292 if test -n "$WINDRES"; then 22293 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 22294else 22295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22296for as_dir in $PATH 22297do 22298 IFS=$as_save_IFS 22299 test -z "$as_dir" && as_dir=. 22300 for ac_exec_ext in '' $ac_executable_extensions; do 22301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22302 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 22303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22304 break 2 22305 fi 22306done 22307 done 22308IFS=$as_save_IFS 22309 22310fi 22311fi 22312WINDRES=$ac_cv_prog_WINDRES 22313if test -n "$WINDRES"; then 22314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 22315$as_echo "$WINDRES" >&6; } 22316else 22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22318$as_echo "no" >&6; } 22319fi 22320 22321 22322fi 22323if test -z "$ac_cv_prog_WINDRES"; then 22324 ac_ct_WINDRES=$WINDRES 22325 # Extract the first word of "windres", so it can be a program name with args. 22326set dummy windres; ac_word=$2 22327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22328$as_echo_n "checking for $ac_word... " >&6; } 22329if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 22330 $as_echo_n "(cached) " >&6 22331else 22332 if test -n "$ac_ct_WINDRES"; then 22333 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 22334else 22335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22336for as_dir in $PATH 22337do 22338 IFS=$as_save_IFS 22339 test -z "$as_dir" && as_dir=. 22340 for ac_exec_ext in '' $ac_executable_extensions; do 22341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22342 ac_cv_prog_ac_ct_WINDRES="windres" 22343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22344 break 2 22345 fi 22346done 22347 done 22348IFS=$as_save_IFS 22349 22350fi 22351fi 22352ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 22353if test -n "$ac_ct_WINDRES"; then 22354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 22355$as_echo "$ac_ct_WINDRES" >&6; } 22356else 22357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22358$as_echo "no" >&6; } 22359fi 22360 22361 if test "x$ac_ct_WINDRES" = x; then 22362 WINDRES="" 22363 else 22364 case $cross_compiling:$ac_tool_warned in 22365yes:) 22366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 22367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 22368ac_tool_warned=yes ;; 22369esac 22370 WINDRES=$ac_ct_WINDRES 22371 fi 22372else 22373 WINDRES="$ac_cv_prog_WINDRES" 22374fi 22375 22376 22377 22378pkg_failed=no 22379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWINMODULES" >&5 22380$as_echo_n "checking for XWINMODULES... " >&6; } 22381 22382if test -n "$XWINMODULES_CFLAGS"; then 22383 pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS" 22384 elif test -n "$PKG_CONFIG"; then 22385 if test -n "$PKG_CONFIG" && \ 22386 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau\""; } >&5 22387 ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau") 2>&5 22388 ac_status=$? 22389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22390 test $ac_status = 0; }; then 22391 pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "x11 xdmcp xau" 2>/dev/null` 22392 test "x$?" != "x0" && pkg_failed=yes 22393else 22394 pkg_failed=yes 22395fi 22396 else 22397 pkg_failed=untried 22398fi 22399if test -n "$XWINMODULES_LIBS"; then 22400 pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS" 22401 elif test -n "$PKG_CONFIG"; then 22402 if test -n "$PKG_CONFIG" && \ 22403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau\""; } >&5 22404 ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau") 2>&5 22405 ac_status=$? 22406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22407 test $ac_status = 0; }; then 22408 pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "x11 xdmcp xau" 2>/dev/null` 22409 test "x$?" != "x0" && pkg_failed=yes 22410else 22411 pkg_failed=yes 22412fi 22413 else 22414 pkg_failed=untried 22415fi 22416 22417 22418 22419if test $pkg_failed = yes; then 22420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22421$as_echo "no" >&6; } 22422 22423if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22424 _pkg_short_errors_supported=yes 22425else 22426 _pkg_short_errors_supported=no 22427fi 22428 if test $_pkg_short_errors_supported = yes; then 22429 XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xdmcp xau" 2>&1` 22430 else 22431 XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xdmcp xau" 2>&1` 22432 fi 22433 # Put the nasty error message in config.log where it belongs 22434 echo "$XWINMODULES_PKG_ERRORS" >&5 22435 22436 as_fn_error $? "Package requirements (x11 xdmcp xau) were not met: 22437 22438$XWINMODULES_PKG_ERRORS 22439 22440Consider adjusting the PKG_CONFIG_PATH environment variable if you 22441installed software in a non-standard prefix. 22442 22443Alternatively, you may set the environment variables XWINMODULES_CFLAGS 22444and XWINMODULES_LIBS to avoid the need to call pkg-config. 22445See the pkg-config man page for more details." "$LINENO" 5 22446elif test $pkg_failed = untried; then 22447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22448$as_echo "no" >&6; } 22449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22451as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 22452is in your PATH or set the PKG_CONFIG environment variable to the full 22453path to pkg-config. 22454 22455Alternatively, you may set the environment variables XWINMODULES_CFLAGS 22456and XWINMODULES_LIBS to avoid the need to call pkg-config. 22457See the pkg-config man page for more details. 22458 22459To get pkg-config, see <http://pkg-config.freedesktop.org/>. 22460See \`config.log' for more details" "$LINENO" 5; } 22461else 22462 XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS 22463 XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS 22464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22465$as_echo "yes" >&6; } 22466 22467fi 22468 22469 if test "x$WINDOWSWM" = xauto; then 22470 if test -n "$PKG_CONFIG" && \ 22471 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5 22472 ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5 22473 ac_status=$? 22474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22475 test $ac_status = 0; }; then 22476 WINDOWSWM=yes 22477else 22478 WINDOWSWM=no 22479fi 22480 fi 22481 if test "x$WINDOWSWM" = xyes ; then 22482 22483pkg_failed=no 22484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WINDOWSWM" >&5 22485$as_echo_n "checking for WINDOWSWM... " >&6; } 22486 22487if test -n "$WINDOWSWM_CFLAGS"; then 22488 pkg_cv_WINDOWSWM_CFLAGS="$WINDOWSWM_CFLAGS" 22489 elif test -n "$PKG_CONFIG"; then 22490 if test -n "$PKG_CONFIG" && \ 22491 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5 22492 ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5 22493 ac_status=$? 22494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22495 test $ac_status = 0; }; then 22496 pkg_cv_WINDOWSWM_CFLAGS=`$PKG_CONFIG --cflags "$WINDOWSWMPROTO" 2>/dev/null` 22497 test "x$?" != "x0" && pkg_failed=yes 22498else 22499 pkg_failed=yes 22500fi 22501 else 22502 pkg_failed=untried 22503fi 22504if test -n "$WINDOWSWM_LIBS"; then 22505 pkg_cv_WINDOWSWM_LIBS="$WINDOWSWM_LIBS" 22506 elif test -n "$PKG_CONFIG"; then 22507 if test -n "$PKG_CONFIG" && \ 22508 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5 22509 ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5 22510 ac_status=$? 22511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22512 test $ac_status = 0; }; then 22513 pkg_cv_WINDOWSWM_LIBS=`$PKG_CONFIG --libs "$WINDOWSWMPROTO" 2>/dev/null` 22514 test "x$?" != "x0" && pkg_failed=yes 22515else 22516 pkg_failed=yes 22517fi 22518 else 22519 pkg_failed=untried 22520fi 22521 22522 22523 22524if test $pkg_failed = yes; then 22525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22526$as_echo "no" >&6; } 22527 22528if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22529 _pkg_short_errors_supported=yes 22530else 22531 _pkg_short_errors_supported=no 22532fi 22533 if test $_pkg_short_errors_supported = yes; then 22534 WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WINDOWSWMPROTO" 2>&1` 22535 else 22536 WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WINDOWSWMPROTO" 2>&1` 22537 fi 22538 # Put the nasty error message in config.log where it belongs 22539 echo "$WINDOWSWM_PKG_ERRORS" >&5 22540 22541 as_fn_error $? "Package requirements ($WINDOWSWMPROTO) were not met: 22542 22543$WINDOWSWM_PKG_ERRORS 22544 22545Consider adjusting the PKG_CONFIG_PATH environment variable if you 22546installed software in a non-standard prefix. 22547 22548Alternatively, you may set the environment variables WINDOWSWM_CFLAGS 22549and WINDOWSWM_LIBS to avoid the need to call pkg-config. 22550See the pkg-config man page for more details." "$LINENO" 5 22551elif test $pkg_failed = untried; then 22552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22553$as_echo "no" >&6; } 22554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22556as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 22557is in your PATH or set the PKG_CONFIG environment variable to the full 22558path to pkg-config. 22559 22560Alternatively, you may set the environment variables WINDOWSWM_CFLAGS 22561and WINDOWSWM_LIBS to avoid the need to call pkg-config. 22562See the pkg-config man page for more details. 22563 22564To get pkg-config, see <http://pkg-config.freedesktop.org/>. 22565See \`config.log' for more details" "$LINENO" 5; } 22566else 22567 WINDOWSWM_CFLAGS=$pkg_cv_WINDOWSWM_CFLAGS 22568 WINDOWSWM_LIBS=$pkg_cv_WINDOWSWM_LIBS 22569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22570$as_echo "yes" >&6; } 22571 22572fi 22573 XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS $WINDOWSWM_CFLAGS" 22574 22575$as_echo "#define ROOTLESS 1" >>confdefs.h 22576 22577 fi 22578 22579 case $host_os in 22580 cygwin*) 22581 XWIN_SERVER_NAME=XWin 22582 22583$as_echo "#define HAS_DEVWINDOWS 1" >>confdefs.h 22584 22585 ;; 22586 mingw*) 22587 XWIN_SERVER_NAME=Xming 22588 22589$as_echo "#define RELOCATE_PROJECTROOT 1" >>confdefs.h 22590 22591 22592$as_echo "#define HAS_WINSOCK 1" >>confdefs.h 22593 22594 XWIN_SYS_LIBS=-lwinsock2 22595 ;; 22596 esac 22597 XWIN_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $RANDR_LIB $RENDER_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $DAMAGE_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $OS_LIB" 22598 XWIN_SYS_LIBS="$XWIN_SYS_LIBS $XWINMODULES_LIBS" 22599 22600 22601 22602 22603 if test "x$DEBUGGING" = xyes; then 22604 22605$as_echo "#define CYGDEBUG 1" >>confdefs.h 22606 22607 22608$as_echo "#define CYGWINDOWING_DEBUG 1" >>confdefs.h 22609 22610 22611$as_echo "#define CYGMULTIWINDOW_DEBUG 1" >>confdefs.h 22612 22613 fi 22614 22615 22616$as_echo "#define DDXOSVERRORF 1" >>confdefs.h 22617 22618 22619$as_echo "#define DDXBEFORERESET 1" >>confdefs.h 22620 22621fi 22622 if test "x$XWIN" = xyes; then 22623 XWIN_TRUE= 22624 XWIN_FALSE='#' 22625else 22626 XWIN_TRUE='#' 22627 XWIN_FALSE= 22628fi 22629 22630 if test "x$XWIN" = xyes; then 22631 XWIN_MULTIWINDOW_TRUE= 22632 XWIN_MULTIWINDOW_FALSE='#' 22633else 22634 XWIN_MULTIWINDOW_TRUE='#' 22635 XWIN_MULTIWINDOW_FALSE= 22636fi 22637 22638 if test "x$XWIN" = xyes && test "x$WINDOWSWM" = xyes; then 22639 XWIN_MULTIWINDOWEXTWM_TRUE= 22640 XWIN_MULTIWINDOWEXTWM_FALSE='#' 22641else 22642 XWIN_MULTIWINDOWEXTWM_TRUE='#' 22643 XWIN_MULTIWINDOWEXTWM_FALSE= 22644fi 22645 22646 if test "x$XWIN" = xyes; then 22647 XWIN_CLIPBOARD_TRUE= 22648 XWIN_CLIPBOARD_FALSE='#' 22649else 22650 XWIN_CLIPBOARD_TRUE='#' 22651 XWIN_CLIPBOARD_FALSE= 22652fi 22653 22654 if test "x$XWIN" = xyes && false; then 22655 XWIN_GLX_WINDOWS_TRUE= 22656 XWIN_GLX_WINDOWS_FALSE='#' 22657else 22658 XWIN_GLX_WINDOWS_TRUE='#' 22659 XWIN_GLX_WINDOWS_FALSE= 22660fi 22661 22662 if test "x$XWIN" = xyes; then 22663 XWIN_NATIVEGDI_TRUE= 22664 XWIN_NATIVEGDI_FALSE='#' 22665else 22666 XWIN_NATIVEGDI_TRUE='#' 22667 XWIN_NATIVEGDI_FALSE= 22668fi 22669 22670 if test "x$XWIN" = xyes; then 22671 XWIN_PRIMARYFB_TRUE= 22672 XWIN_PRIMARYFB_FALSE='#' 22673else 22674 XWIN_PRIMARYFB_TRUE='#' 22675 XWIN_PRIMARYFB_FALSE= 22676fi 22677 22678 if test "x$XWIN" = xyes; then 22679 XWIN_RANDR_TRUE= 22680 XWIN_RANDR_FALSE='#' 22681else 22682 XWIN_RANDR_TRUE='#' 22683 XWIN_RANDR_FALSE= 22684fi 22685 22686 if test "x$XWIN" = xyes && test "x$XV" = xyes; then 22687 XWIN_XV_TRUE= 22688 XWIN_XV_FALSE='#' 22689else 22690 XWIN_XV_TRUE='#' 22691 XWIN_XV_FALSE= 22692fi 22693 22694 22695if test "x$XQUARTZ" = xyes; then 22696 22697$as_echo "#define XQUARTZ 1" >>confdefs.h 22698 22699 22700$as_echo "#define ROOTLESS 1" >>confdefs.h 22701 22702 22703 DARWIN_LIBS="$MI_LIB $OS_LIB $DIX_LIB $MAIN_LIB $FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $XPSTUBS_LIB" 22704 22705 22706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xp_init in -lXplugin" >&5 22707$as_echo_n "checking for xp_init in -lXplugin... " >&6; } 22708if ${ac_cv_lib_Xplugin_xp_init+:} false; then : 22709 $as_echo_n "(cached) " >&6 22710else 22711 ac_check_lib_save_LIBS=$LIBS 22712LIBS="-lXplugin $LIBS" 22713cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22714/* end confdefs.h. */ 22715 22716/* Override any GCC internal prototype to avoid an error. 22717 Use char because int might match the return type of a GCC 22718 builtin and then its argument prototype would still apply. */ 22719#ifdef __cplusplus 22720extern "C" 22721#endif 22722char xp_init (); 22723int 22724main () 22725{ 22726return xp_init (); 22727 ; 22728 return 0; 22729} 22730_ACEOF 22731if ac_fn_c_try_link "$LINENO"; then : 22732 ac_cv_lib_Xplugin_xp_init=yes 22733else 22734 ac_cv_lib_Xplugin_xp_init=no 22735fi 22736rm -f core conftest.err conftest.$ac_objext \ 22737 conftest$ac_exeext conftest.$ac_ext 22738LIBS=$ac_check_lib_save_LIBS 22739fi 22740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xplugin_xp_init" >&5 22741$as_echo "$ac_cv_lib_Xplugin_xp_init" >&6; } 22742if test "x$ac_cv_lib_Xplugin_xp_init" = xyes; then : 22743 : 22744fi 22745 22746 22747 CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA" 22748 22749 22750pkg_failed=no 22751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPBPROXY" >&5 22752$as_echo_n "checking for XPBPROXY... " >&6; } 22753 22754if test -n "$XPBPROXY_CFLAGS"; then 22755 pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS" 22756 elif test -n "$PKG_CONFIG"; then 22757 if test -n "$PKG_CONFIG" && \ 22758 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5 22759 ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5 22760 ac_status=$? 22761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22762 test $ac_status = 0; }; then 22763 pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null` 22764 test "x$?" != "x0" && pkg_failed=yes 22765else 22766 pkg_failed=yes 22767fi 22768 else 22769 pkg_failed=untried 22770fi 22771if test -n "$XPBPROXY_LIBS"; then 22772 pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS" 22773 elif test -n "$PKG_CONFIG"; then 22774 if test -n "$PKG_CONFIG" && \ 22775 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5 22776 ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5 22777 ac_status=$? 22778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22779 test $ac_status = 0; }; then 22780 pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null` 22781 test "x$?" != "x0" && pkg_failed=yes 22782else 22783 pkg_failed=yes 22784fi 22785 else 22786 pkg_failed=untried 22787fi 22788 22789 22790 22791if test $pkg_failed = yes; then 22792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22793$as_echo "no" >&6; } 22794 22795if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22796 _pkg_short_errors_supported=yes 22797else 22798 _pkg_short_errors_supported=no 22799fi 22800 if test $_pkg_short_errors_supported = yes; then 22801 XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1` 22802 else 22803 XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1` 22804 fi 22805 # Put the nasty error message in config.log where it belongs 22806 echo "$XPBPROXY_PKG_ERRORS" >&5 22807 22808 as_fn_error $? "Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met: 22809 22810$XPBPROXY_PKG_ERRORS 22811 22812Consider adjusting the PKG_CONFIG_PATH environment variable if you 22813installed software in a non-standard prefix. 22814 22815Alternatively, you may set the environment variables XPBPROXY_CFLAGS 22816and XPBPROXY_LIBS to avoid the need to call pkg-config. 22817See the pkg-config man page for more details." "$LINENO" 5 22818elif test $pkg_failed = untried; then 22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22820$as_echo "no" >&6; } 22821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22823as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 22824is in your PATH or set the PKG_CONFIG environment variable to the full 22825path to pkg-config. 22826 22827Alternatively, you may set the environment variables XPBPROXY_CFLAGS 22828and XPBPROXY_LIBS to avoid the need to call pkg-config. 22829See the pkg-config man page for more details. 22830 22831To get pkg-config, see <http://pkg-config.freedesktop.org/>. 22832See \`config.log' for more details" "$LINENO" 5; } 22833else 22834 XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS 22835 XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS 22836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22837$as_echo "yes" >&6; } 22838 22839fi 22840 22841 if test "x$XQUARTZ_SPARKLE" = xyes ; then 22842 22843$as_echo "#define XQUARTZ_SPARKLE 1" >>confdefs.h 22844 22845 fi 22846 22847 if test "x$STANDALONE_XPBPROXY" = xyes ; then 22848 22849$as_echo "#define STANDALONE_XPBPROXY 1" >>confdefs.h 22850 22851 fi 22852fi 22853 22854# Support for objc in autotools is minimal and not documented. 22855OBJC='$(CC)' 22856OBJCLD='$(CCLD)' 22857OBJCLINK='$(LINK)' 22858OBJCFLAGS='$(CFLAGS)' 22859 22860 22861 22862 22863# internal, undocumented automake func follows :( 22864 22865depcc="$OBJC" am_compiler_list='gcc3 gcc' 22866 22867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 22868$as_echo_n "checking dependency style of $depcc... " >&6; } 22869if ${am_cv_OBJC_dependencies_compiler_type+:} false; then : 22870 $as_echo_n "(cached) " >&6 22871else 22872 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 22873 # We make a subdir and do the tests there. Otherwise we can end up 22874 # making bogus files that we don't know about and never remove. For 22875 # instance it was reported that on HP-UX the gcc test will end up 22876 # making a dummy file named `D' -- because `-MD' means `put the output 22877 # in D'. 22878 mkdir conftest.dir 22879 # Copy depcomp to subdir because otherwise we won't find it if we're 22880 # using a relative directory. 22881 cp "$am_depcomp" conftest.dir 22882 cd conftest.dir 22883 # We will build objects and dependencies in a subdirectory because 22884 # it helps to detect inapplicable dependency modes. For instance 22885 # both Tru64's cc and ICC support -MD to output dependencies as a 22886 # side effect of compilation, but ICC will put the dependencies in 22887 # the current directory while Tru64 will put them in the object 22888 # directory. 22889 mkdir sub 22890 22891 am_cv_OBJC_dependencies_compiler_type=none 22892 if test "$am_compiler_list" = ""; then 22893 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 22894 fi 22895 am__universal=false 22896 22897 22898 for depmode in $am_compiler_list; do 22899 # Setup a source with many dependencies, because some compilers 22900 # like to wrap large dependency lists on column 80 (with \), and 22901 # we should not choose a depcomp mode which is confused by this. 22902 # 22903 # We need to recreate these files for each test, as the compiler may 22904 # overwrite some of them when testing with obscure command lines. 22905 # This happens at least with the AIX C compiler. 22906 : > sub/conftest.c 22907 for i in 1 2 3 4 5 6; do 22908 echo '#include "conftst'$i'.h"' >> sub/conftest.c 22909 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 22910 # Solaris 8's {/usr,}/bin/sh. 22911 touch sub/conftst$i.h 22912 done 22913 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 22914 22915 # We check with `-c' and `-o' for the sake of the "dashmstdout" 22916 # mode. It turns out that the SunPro C++ compiler does not properly 22917 # handle `-M -o', and we need to detect this. Also, some Intel 22918 # versions had trouble with output in subdirs 22919 am__obj=sub/conftest.${OBJEXT-o} 22920 am__minus_obj="-o $am__obj" 22921 case $depmode in 22922 gcc) 22923 # This depmode causes a compiler race in universal mode. 22924 test "$am__universal" = false || continue 22925 ;; 22926 nosideeffect) 22927 # after this tag, mechanisms are not by side-effect, so they'll 22928 # only be used when explicitly requested 22929 if test "x$enable_dependency_tracking" = xyes; then 22930 continue 22931 else 22932 break 22933 fi 22934 ;; 22935 msvisualcpp | msvcmsys) 22936 # This compiler won't grok `-c -o', but also, the minuso test has 22937 # not run yet. These depmodes are late enough in the game, and 22938 # so weak that their functioning should not be impacted. 22939 am__obj=conftest.${OBJEXT-o} 22940 am__minus_obj= 22941 ;; 22942 none) break ;; 22943 esac 22944 if depmode=$depmode \ 22945 source=sub/conftest.c object=$am__obj \ 22946 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 22947 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 22948 >/dev/null 2>conftest.err && 22949 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 22950 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 22951 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 22952 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 22953 # icc doesn't choke on unknown options, it will just issue warnings 22954 # or remarks (even with -Werror). So we grep stderr for any message 22955 # that says an option was ignored or not supported. 22956 # When given -MP, icc 7.0 and 7.1 complain thusly: 22957 # icc: Command line warning: ignoring option '-M'; no argument required 22958 # The diagnosis changed in icc 8.0: 22959 # icc: Command line remark: option '-MP' not supported 22960 if (grep 'ignoring option' conftest.err || 22961 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 22962 am_cv_OBJC_dependencies_compiler_type=$depmode 22963 break 22964 fi 22965 fi 22966 done 22967 22968 cd .. 22969 rm -rf conftest.dir 22970else 22971 am_cv_OBJC_dependencies_compiler_type=none 22972fi 22973 22974fi 22975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 22976$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } 22977OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type 22978 22979 if 22980 test "x$enable_dependency_tracking" != xno \ 22981 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then 22982 am__fastdepOBJC_TRUE= 22983 am__fastdepOBJC_FALSE='#' 22984else 22985 am__fastdepOBJC_TRUE='#' 22986 am__fastdepOBJC_FALSE= 22987fi 22988 22989 22990 if test "x$XQUARTZ" = xyes; then 22991 XQUARTZ_TRUE= 22992 XQUARTZ_FALSE='#' 22993else 22994 XQUARTZ_TRUE='#' 22995 XQUARTZ_FALSE= 22996fi 22997 22998 if test "x$XQUARTZ_SPARKLE" != "xno"; then 22999 XQUARTZ_SPARKLE_TRUE= 23000 XQUARTZ_SPARKLE_FALSE='#' 23001else 23002 XQUARTZ_SPARKLE_TRUE='#' 23003 XQUARTZ_SPARKLE_FALSE= 23004fi 23005 23006 if test "x$STANDALONE_XPBPROXY" = xyes; then 23007 STANDALONE_XPBPROXY_TRUE= 23008 STANDALONE_XPBPROXY_FALSE='#' 23009else 23010 STANDALONE_XPBPROXY_TRUE='#' 23011 STANDALONE_XPBPROXY_FALSE= 23012fi 23013 23014 23015 23016pkg_failed=no 23017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXMODULES" >&5 23018$as_echo_n "checking for DMXMODULES... " >&6; } 23019 23020if test -n "$DMXMODULES_CFLAGS"; then 23021 pkg_cv_DMXMODULES_CFLAGS="$DMXMODULES_CFLAGS" 23022 elif test -n "$PKG_CONFIG"; then 23023 if test -n "$PKG_CONFIG" && \ 23024 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu \$LIBXEXT x11 xrender xfixes \$LIBXI \$DMXPROTO xau \$XDMCP_MODULES\""; } >&5 23025 ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5 23026 ac_status=$? 23027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23028 test $ac_status = 0; }; then 23029 pkg_cv_DMXMODULES_CFLAGS=`$PKG_CONFIG --cflags "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null` 23030 test "x$?" != "x0" && pkg_failed=yes 23031else 23032 pkg_failed=yes 23033fi 23034 else 23035 pkg_failed=untried 23036fi 23037if test -n "$DMXMODULES_LIBS"; then 23038 pkg_cv_DMXMODULES_LIBS="$DMXMODULES_LIBS" 23039 elif test -n "$PKG_CONFIG"; then 23040 if test -n "$PKG_CONFIG" && \ 23041 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu \$LIBXEXT x11 xrender xfixes \$LIBXI \$DMXPROTO xau \$XDMCP_MODULES\""; } >&5 23042 ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5 23043 ac_status=$? 23044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23045 test $ac_status = 0; }; then 23046 pkg_cv_DMXMODULES_LIBS=`$PKG_CONFIG --libs "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null` 23047 test "x$?" != "x0" && pkg_failed=yes 23048else 23049 pkg_failed=yes 23050fi 23051 else 23052 pkg_failed=untried 23053fi 23054 23055 23056 23057if test $pkg_failed = yes; then 23058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23059$as_echo "no" >&6; } 23060 23061if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23062 _pkg_short_errors_supported=yes 23063else 23064 _pkg_short_errors_supported=no 23065fi 23066 if test $_pkg_short_errors_supported = yes; then 23067 DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1` 23068 else 23069 DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1` 23070 fi 23071 # Put the nasty error message in config.log where it belongs 23072 echo "$DMXMODULES_PKG_ERRORS" >&5 23073 23074 have_dmx=no 23075elif test $pkg_failed = untried; then 23076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23077$as_echo "no" >&6; } 23078 have_dmx=no 23079else 23080 DMXMODULES_CFLAGS=$pkg_cv_DMXMODULES_CFLAGS 23081 DMXMODULES_LIBS=$pkg_cv_DMXMODULES_LIBS 23082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23083$as_echo "yes" >&6; } 23084 23085pkg_failed=no 23086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMXCONFIG_DEP" >&5 23087$as_echo_n "checking for XDMXCONFIG_DEP... " >&6; } 23088 23089if test -n "$XDMXCONFIG_DEP_CFLAGS"; then 23090 pkg_cv_XDMXCONFIG_DEP_CFLAGS="$XDMXCONFIG_DEP_CFLAGS" 23091 elif test -n "$PKG_CONFIG"; then 23092 if test -n "$PKG_CONFIG" && \ 23093 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5 23094 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5 23095 ac_status=$? 23096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23097 test $ac_status = 0; }; then 23098 pkg_cv_XDMXCONFIG_DEP_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt xpm x11" 2>/dev/null` 23099 test "x$?" != "x0" && pkg_failed=yes 23100else 23101 pkg_failed=yes 23102fi 23103 else 23104 pkg_failed=untried 23105fi 23106if test -n "$XDMXCONFIG_DEP_LIBS"; then 23107 pkg_cv_XDMXCONFIG_DEP_LIBS="$XDMXCONFIG_DEP_LIBS" 23108 elif test -n "$PKG_CONFIG"; then 23109 if test -n "$PKG_CONFIG" && \ 23110 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5 23111 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5 23112 ac_status=$? 23113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23114 test $ac_status = 0; }; then 23115 pkg_cv_XDMXCONFIG_DEP_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt xpm x11" 2>/dev/null` 23116 test "x$?" != "x0" && pkg_failed=yes 23117else 23118 pkg_failed=yes 23119fi 23120 else 23121 pkg_failed=untried 23122fi 23123 23124 23125 23126if test $pkg_failed = yes; then 23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23128$as_echo "no" >&6; } 23129 23130if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23131 _pkg_short_errors_supported=yes 23132else 23133 _pkg_short_errors_supported=no 23134fi 23135 if test $_pkg_short_errors_supported = yes; then 23136 XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt xpm x11" 2>&1` 23137 else 23138 XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt xpm x11" 2>&1` 23139 fi 23140 # Put the nasty error message in config.log where it belongs 23141 echo "$XDMXCONFIG_DEP_PKG_ERRORS" >&5 23142 23143 have_dmx=no 23144elif test $pkg_failed = untried; then 23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23146$as_echo "no" >&6; } 23147 have_dmx=no 23148else 23149 XDMXCONFIG_DEP_CFLAGS=$pkg_cv_XDMXCONFIG_DEP_CFLAGS 23150 XDMXCONFIG_DEP_LIBS=$pkg_cv_XDMXCONFIG_DEP_LIBS 23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23152$as_echo "yes" >&6; } 23153 have_dmx=yes 23154fi 23155fi 23156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xdmx DDX" >&5 23157$as_echo_n "checking whether to build Xdmx DDX... " >&6; } 23158if test "x$DMX" = xauto; then 23159 DMX="$have_dmx" 23160 case $host_os in 23161 cygwin*) DMX="no" ;; 23162 darwin*) DMX="no" ;; 23163 esac 23164fi 23165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMX" >&5 23166$as_echo "$DMX" >&6; } 23167 if test "x$DMX" = xyes; then 23168 DMX_TRUE= 23169 DMX_FALSE='#' 23170else 23171 DMX_TRUE='#' 23172 DMX_FALSE= 23173fi 23174 23175 23176if test "x$DMX" = xyes; then 23177 if test "x$have_dmx" = xno; then 23178 as_fn_error $? "Xdmx build explicitly requested, but required 23179 modules not found." "$LINENO" 5 23180 fi 23181 DMX_INCLUDES="$XEXT_INC $RENDER_INC $RECORD_INC" 23182 XDMX_CFLAGS="$DMXMODULES_CFLAGS" 23183 XDMX_LIBS="$FB_LIB $MI_LIB $XEXT_LIB $RENDER_LIB $RECORD_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $MIEXT_SYNC_LIB $MIEXT_SHADOW_LIB $MIEXT_DAMAGE_LIB $COMPOSITE_LIB $DAMAGE_LIB $MAIN_LIB $DIX_LIB $CONFIG_LIB $OS_LIB $FIXES_LIB" 23184 XDMX_SYS_LIBS="$DMXMODULES_LIBS" 23185 23186 23187 23188 23189 ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default" 23190if test "x$ac_cv_header_linux_input_h" = xyes; then : 23191 DMX_BUILD_USB="yes" 23192else 23193 DMX_BUILD_USB="no" 23194fi 23195 23196 23197 ac_fn_c_check_header_mongrel "$LINENO" "linux/keyboard.h" "ac_cv_header_linux_keyboard_h" "$ac_includes_default" 23198if test "x$ac_cv_header_linux_keyboard_h" = xyes; then : 23199 DMX_BUILD_LNX="yes" 23200else 23201 DMX_BUILD_LNX="no" 23202fi 23203 23204 23205 23206 23207 23208pkg_failed=no 23209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXEXAMPLES_DEP" >&5 23210$as_echo_n "checking for DMXEXAMPLES_DEP... " >&6; } 23211 23212if test -n "$DMXEXAMPLES_DEP_CFLAGS"; then 23213 pkg_cv_DMXEXAMPLES_DEP_CFLAGS="$DMXEXAMPLES_DEP_CFLAGS" 23214 elif test -n "$PKG_CONFIG"; then 23215 if test -n "$PKG_CONFIG" && \ 23216 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5 23217 ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5 23218 ac_status=$? 23219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23220 test $ac_status = 0; }; then 23221 pkg_cv_DMXEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXEXT x11" 2>/dev/null` 23222 test "x$?" != "x0" && pkg_failed=yes 23223else 23224 pkg_failed=yes 23225fi 23226 else 23227 pkg_failed=untried 23228fi 23229if test -n "$DMXEXAMPLES_DEP_LIBS"; then 23230 pkg_cv_DMXEXAMPLES_DEP_LIBS="$DMXEXAMPLES_DEP_LIBS" 23231 elif test -n "$PKG_CONFIG"; then 23232 if test -n "$PKG_CONFIG" && \ 23233 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5 23234 ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5 23235 ac_status=$? 23236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23237 test $ac_status = 0; }; then 23238 pkg_cv_DMXEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXEXT x11" 2>/dev/null` 23239 test "x$?" != "x0" && pkg_failed=yes 23240else 23241 pkg_failed=yes 23242fi 23243 else 23244 pkg_failed=untried 23245fi 23246 23247 23248 23249if test $pkg_failed = yes; then 23250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23251$as_echo "no" >&6; } 23252 23253if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23254 _pkg_short_errors_supported=yes 23255else 23256 _pkg_short_errors_supported=no 23257fi 23258 if test $_pkg_short_errors_supported = yes; then 23259 DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX $LIBXEXT x11" 2>&1` 23260 else 23261 DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX $LIBXEXT x11" 2>&1` 23262 fi 23263 # Put the nasty error message in config.log where it belongs 23264 echo "$DMXEXAMPLES_DEP_PKG_ERRORS" >&5 23265 23266 as_fn_error $? "Package requirements ($LIBDMX $LIBXEXT x11) were not met: 23267 23268$DMXEXAMPLES_DEP_PKG_ERRORS 23269 23270Consider adjusting the PKG_CONFIG_PATH environment variable if you 23271installed software in a non-standard prefix. 23272 23273Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS 23274and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 23275See the pkg-config man page for more details." "$LINENO" 5 23276elif test $pkg_failed = untried; then 23277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23278$as_echo "no" >&6; } 23279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23281as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 23282is in your PATH or set the PKG_CONFIG environment variable to the full 23283path to pkg-config. 23284 23285Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS 23286and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 23287See the pkg-config man page for more details. 23288 23289To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23290See \`config.log' for more details" "$LINENO" 5; } 23291else 23292 DMXEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXEXAMPLES_DEP_CFLAGS 23293 DMXEXAMPLES_DEP_LIBS=$pkg_cv_DMXEXAMPLES_DEP_LIBS 23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23295$as_echo "yes" >&6; } 23296 23297fi 23298 23299 23300pkg_failed=no 23301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXMUEXAMPLES_DEP" >&5 23302$as_echo_n "checking for DMXXMUEXAMPLES_DEP... " >&6; } 23303 23304if test -n "$DMXXMUEXAMPLES_DEP_CFLAGS"; then 23305 pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS="$DMXXMUEXAMPLES_DEP_CFLAGS" 23306 elif test -n "$PKG_CONFIG"; then 23307 if test -n "$PKG_CONFIG" && \ 23308 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5 23309 ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5 23310 ac_status=$? 23311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23312 test $ac_status = 0; }; then 23313 pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null` 23314 test "x$?" != "x0" && pkg_failed=yes 23315else 23316 pkg_failed=yes 23317fi 23318 else 23319 pkg_failed=untried 23320fi 23321if test -n "$DMXXMUEXAMPLES_DEP_LIBS"; then 23322 pkg_cv_DMXXMUEXAMPLES_DEP_LIBS="$DMXXMUEXAMPLES_DEP_LIBS" 23323 elif test -n "$PKG_CONFIG"; then 23324 if test -n "$PKG_CONFIG" && \ 23325 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5 23326 ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5 23327 ac_status=$? 23328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23329 test $ac_status = 0; }; then 23330 pkg_cv_DMXXMUEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null` 23331 test "x$?" != "x0" && pkg_failed=yes 23332else 23333 pkg_failed=yes 23334fi 23335 else 23336 pkg_failed=untried 23337fi 23338 23339 23340 23341if test $pkg_failed = yes; then 23342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23343$as_echo "no" >&6; } 23344 23345if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23346 _pkg_short_errors_supported=yes 23347else 23348 _pkg_short_errors_supported=no 23349fi 23350 if test $_pkg_short_errors_supported = yes; then 23351 DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX xmu $LIBXEXT x11" 2>&1` 23352 else 23353 DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX xmu $LIBXEXT x11" 2>&1` 23354 fi 23355 # Put the nasty error message in config.log where it belongs 23356 echo "$DMXXMUEXAMPLES_DEP_PKG_ERRORS" >&5 23357 23358 as_fn_error $? "Package requirements ($LIBDMX xmu $LIBXEXT x11) were not met: 23359 23360$DMXXMUEXAMPLES_DEP_PKG_ERRORS 23361 23362Consider adjusting the PKG_CONFIG_PATH environment variable if you 23363installed software in a non-standard prefix. 23364 23365Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS 23366and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 23367See the pkg-config man page for more details." "$LINENO" 5 23368elif test $pkg_failed = untried; then 23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23370$as_echo "no" >&6; } 23371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23373as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 23374is in your PATH or set the PKG_CONFIG environment variable to the full 23375path to pkg-config. 23376 23377Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS 23378and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 23379See the pkg-config man page for more details. 23380 23381To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23382See \`config.log' for more details" "$LINENO" 5; } 23383else 23384 DMXXMUEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS 23385 DMXXMUEXAMPLES_DEP_LIBS=$pkg_cv_DMXXMUEXAMPLES_DEP_LIBS 23386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23387$as_echo "yes" >&6; } 23388 23389fi 23390 23391 23392pkg_failed=no 23393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXIEXAMPLES_DEP" >&5 23394$as_echo_n "checking for DMXXIEXAMPLES_DEP... " >&6; } 23395 23396if test -n "$DMXXIEXAMPLES_DEP_CFLAGS"; then 23397 pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS="$DMXXIEXAMPLES_DEP_CFLAGS" 23398 elif test -n "$PKG_CONFIG"; then 23399 if test -n "$PKG_CONFIG" && \ 23400 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5 23401 ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5 23402 ac_status=$? 23403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23404 test $ac_status = 0; }; then 23405 pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null` 23406 test "x$?" != "x0" && pkg_failed=yes 23407else 23408 pkg_failed=yes 23409fi 23410 else 23411 pkg_failed=untried 23412fi 23413if test -n "$DMXXIEXAMPLES_DEP_LIBS"; then 23414 pkg_cv_DMXXIEXAMPLES_DEP_LIBS="$DMXXIEXAMPLES_DEP_LIBS" 23415 elif test -n "$PKG_CONFIG"; then 23416 if test -n "$PKG_CONFIG" && \ 23417 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5 23418 ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5 23419 ac_status=$? 23420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23421 test $ac_status = 0; }; then 23422 pkg_cv_DMXXIEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null` 23423 test "x$?" != "x0" && pkg_failed=yes 23424else 23425 pkg_failed=yes 23426fi 23427 else 23428 pkg_failed=untried 23429fi 23430 23431 23432 23433if test $pkg_failed = yes; then 23434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23435$as_echo "no" >&6; } 23436 23437if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23438 _pkg_short_errors_supported=yes 23439else 23440 _pkg_short_errors_supported=no 23441fi 23442 if test $_pkg_short_errors_supported = yes; then 23443 DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1` 23444 else 23445 DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1` 23446 fi 23447 # Put the nasty error message in config.log where it belongs 23448 echo "$DMXXIEXAMPLES_DEP_PKG_ERRORS" >&5 23449 23450 as_fn_error $? "Package requirements ($LIBDMX $LIBXI $LIBXEXT x11) were not met: 23451 23452$DMXXIEXAMPLES_DEP_PKG_ERRORS 23453 23454Consider adjusting the PKG_CONFIG_PATH environment variable if you 23455installed software in a non-standard prefix. 23456 23457Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS 23458and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 23459See the pkg-config man page for more details." "$LINENO" 5 23460elif test $pkg_failed = untried; then 23461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23462$as_echo "no" >&6; } 23463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23465as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 23466is in your PATH or set the PKG_CONFIG environment variable to the full 23467path to pkg-config. 23468 23469Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS 23470and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 23471See the pkg-config man page for more details. 23472 23473To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23474See \`config.log' for more details" "$LINENO" 5; } 23475else 23476 DMXXIEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS 23477 DMXXIEXAMPLES_DEP_LIBS=$pkg_cv_DMXXIEXAMPLES_DEP_LIBS 23478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23479$as_echo "yes" >&6; } 23480 23481fi 23482 23483 23484pkg_failed=no 23485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTSTEXAMPLES_DEP" >&5 23486$as_echo_n "checking for XTSTEXAMPLES_DEP... " >&6; } 23487 23488if test -n "$XTSTEXAMPLES_DEP_CFLAGS"; then 23489 pkg_cv_XTSTEXAMPLES_DEP_CFLAGS="$XTSTEXAMPLES_DEP_CFLAGS" 23490 elif test -n "$PKG_CONFIG"; then 23491 if test -n "$PKG_CONFIG" && \ 23492 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5 23493 ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5 23494 ac_status=$? 23495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23496 test $ac_status = 0; }; then 23497 pkg_cv_XTSTEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXTST $LIBXEXT x11" 2>/dev/null` 23498 test "x$?" != "x0" && pkg_failed=yes 23499else 23500 pkg_failed=yes 23501fi 23502 else 23503 pkg_failed=untried 23504fi 23505if test -n "$XTSTEXAMPLES_DEP_LIBS"; then 23506 pkg_cv_XTSTEXAMPLES_DEP_LIBS="$XTSTEXAMPLES_DEP_LIBS" 23507 elif test -n "$PKG_CONFIG"; then 23508 if test -n "$PKG_CONFIG" && \ 23509 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5 23510 ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5 23511 ac_status=$? 23512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23513 test $ac_status = 0; }; then 23514 pkg_cv_XTSTEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXTST $LIBXEXT x11" 2>/dev/null` 23515 test "x$?" != "x0" && pkg_failed=yes 23516else 23517 pkg_failed=yes 23518fi 23519 else 23520 pkg_failed=untried 23521fi 23522 23523 23524 23525if test $pkg_failed = yes; then 23526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23527$as_echo "no" >&6; } 23528 23529if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23530 _pkg_short_errors_supported=yes 23531else 23532 _pkg_short_errors_supported=no 23533fi 23534 if test $_pkg_short_errors_supported = yes; then 23535 XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXTST $LIBXEXT x11" 2>&1` 23536 else 23537 XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXTST $LIBXEXT x11" 2>&1` 23538 fi 23539 # Put the nasty error message in config.log where it belongs 23540 echo "$XTSTEXAMPLES_DEP_PKG_ERRORS" >&5 23541 23542 as_fn_error $? "Package requirements ($LIBXTST $LIBXEXT x11) were not met: 23543 23544$XTSTEXAMPLES_DEP_PKG_ERRORS 23545 23546Consider adjusting the PKG_CONFIG_PATH environment variable if you 23547installed software in a non-standard prefix. 23548 23549Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS 23550and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 23551See the pkg-config man page for more details." "$LINENO" 5 23552elif test $pkg_failed = untried; then 23553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23554$as_echo "no" >&6; } 23555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23557as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 23558is in your PATH or set the PKG_CONFIG environment variable to the full 23559path to pkg-config. 23560 23561Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS 23562and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 23563See the pkg-config man page for more details. 23564 23565To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23566See \`config.log' for more details" "$LINENO" 5; } 23567else 23568 XTSTEXAMPLES_DEP_CFLAGS=$pkg_cv_XTSTEXAMPLES_DEP_CFLAGS 23569 XTSTEXAMPLES_DEP_LIBS=$pkg_cv_XTSTEXAMPLES_DEP_LIBS 23570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23571$as_echo "yes" >&6; } 23572 23573fi 23574 23575 23576pkg_failed=no 23577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRESEXAMPLES_DEP" >&5 23578$as_echo_n "checking for XRESEXAMPLES_DEP... " >&6; } 23579 23580if test -n "$XRESEXAMPLES_DEP_CFLAGS"; then 23581 pkg_cv_XRESEXAMPLES_DEP_CFLAGS="$XRESEXAMPLES_DEP_CFLAGS" 23582 elif test -n "$PKG_CONFIG"; then 23583 if test -n "$PKG_CONFIG" && \ 23584 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\""; } >&5 23585 ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5 23586 ac_status=$? 23587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23588 test $ac_status = 0; }; then 23589 pkg_cv_XRESEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "xres $LIBXEXT x11" 2>/dev/null` 23590 test "x$?" != "x0" && pkg_failed=yes 23591else 23592 pkg_failed=yes 23593fi 23594 else 23595 pkg_failed=untried 23596fi 23597if test -n "$XRESEXAMPLES_DEP_LIBS"; then 23598 pkg_cv_XRESEXAMPLES_DEP_LIBS="$XRESEXAMPLES_DEP_LIBS" 23599 elif test -n "$PKG_CONFIG"; then 23600 if test -n "$PKG_CONFIG" && \ 23601 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\""; } >&5 23602 ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5 23603 ac_status=$? 23604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23605 test $ac_status = 0; }; then 23606 pkg_cv_XRESEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "xres $LIBXEXT x11" 2>/dev/null` 23607 test "x$?" != "x0" && pkg_failed=yes 23608else 23609 pkg_failed=yes 23610fi 23611 else 23612 pkg_failed=untried 23613fi 23614 23615 23616 23617if test $pkg_failed = yes; then 23618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23619$as_echo "no" >&6; } 23620 23621if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23622 _pkg_short_errors_supported=yes 23623else 23624 _pkg_short_errors_supported=no 23625fi 23626 if test $_pkg_short_errors_supported = yes; then 23627 XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xres $LIBXEXT x11" 2>&1` 23628 else 23629 XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xres $LIBXEXT x11" 2>&1` 23630 fi 23631 # Put the nasty error message in config.log where it belongs 23632 echo "$XRESEXAMPLES_DEP_PKG_ERRORS" >&5 23633 23634 as_fn_error $? "Package requirements (xres $LIBXEXT x11) were not met: 23635 23636$XRESEXAMPLES_DEP_PKG_ERRORS 23637 23638Consider adjusting the PKG_CONFIG_PATH environment variable if you 23639installed software in a non-standard prefix. 23640 23641Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS 23642and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 23643See the pkg-config man page for more details." "$LINENO" 5 23644elif test $pkg_failed = untried; then 23645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23646$as_echo "no" >&6; } 23647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23649as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 23650is in your PATH or set the PKG_CONFIG environment variable to the full 23651path to pkg-config. 23652 23653Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS 23654and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 23655See the pkg-config man page for more details. 23656 23657To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23658See \`config.log' for more details" "$LINENO" 5; } 23659else 23660 XRESEXAMPLES_DEP_CFLAGS=$pkg_cv_XRESEXAMPLES_DEP_CFLAGS 23661 XRESEXAMPLES_DEP_LIBS=$pkg_cv_XRESEXAMPLES_DEP_LIBS 23662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23663$as_echo "yes" >&6; } 23664 23665fi 23666 23667 23668pkg_failed=no 23669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11EXAMPLES_DEP" >&5 23670$as_echo_n "checking for X11EXAMPLES_DEP... " >&6; } 23671 23672if test -n "$X11EXAMPLES_DEP_CFLAGS"; then 23673 pkg_cv_X11EXAMPLES_DEP_CFLAGS="$X11EXAMPLES_DEP_CFLAGS" 23674 elif test -n "$PKG_CONFIG"; then 23675 if test -n "$PKG_CONFIG" && \ 23676 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5 23677 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5 23678 ac_status=$? 23679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23680 test $ac_status = 0; }; then 23681 pkg_cv_X11EXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11" 2>/dev/null` 23682 test "x$?" != "x0" && pkg_failed=yes 23683else 23684 pkg_failed=yes 23685fi 23686 else 23687 pkg_failed=untried 23688fi 23689if test -n "$X11EXAMPLES_DEP_LIBS"; then 23690 pkg_cv_X11EXAMPLES_DEP_LIBS="$X11EXAMPLES_DEP_LIBS" 23691 elif test -n "$PKG_CONFIG"; then 23692 if test -n "$PKG_CONFIG" && \ 23693 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5 23694 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5 23695 ac_status=$? 23696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23697 test $ac_status = 0; }; then 23698 pkg_cv_X11EXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11" 2>/dev/null` 23699 test "x$?" != "x0" && pkg_failed=yes 23700else 23701 pkg_failed=yes 23702fi 23703 else 23704 pkg_failed=untried 23705fi 23706 23707 23708 23709if test $pkg_failed = yes; then 23710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23711$as_echo "no" >&6; } 23712 23713if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23714 _pkg_short_errors_supported=yes 23715else 23716 _pkg_short_errors_supported=no 23717fi 23718 if test $_pkg_short_errors_supported = yes; then 23719 X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11" 2>&1` 23720 else 23721 X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11" 2>&1` 23722 fi 23723 # Put the nasty error message in config.log where it belongs 23724 echo "$X11EXAMPLES_DEP_PKG_ERRORS" >&5 23725 23726 as_fn_error $? "Package requirements ($LIBXEXT x11) were not met: 23727 23728$X11EXAMPLES_DEP_PKG_ERRORS 23729 23730Consider adjusting the PKG_CONFIG_PATH environment variable if you 23731installed software in a non-standard prefix. 23732 23733Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS 23734and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 23735See the pkg-config man page for more details." "$LINENO" 5 23736elif test $pkg_failed = untried; then 23737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23738$as_echo "no" >&6; } 23739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23741as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 23742is in your PATH or set the PKG_CONFIG environment variable to the full 23743path to pkg-config. 23744 23745Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS 23746and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 23747See the pkg-config man page for more details. 23748 23749To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23750See \`config.log' for more details" "$LINENO" 5; } 23751else 23752 X11EXAMPLES_DEP_CFLAGS=$pkg_cv_X11EXAMPLES_DEP_CFLAGS 23753 X11EXAMPLES_DEP_LIBS=$pkg_cv_X11EXAMPLES_DEP_LIBS 23754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23755$as_echo "yes" >&6; } 23756 23757fi 23758 23759 23760fi 23761 if test "x$DMX_BUILD_LNX" = xyes; then 23762 DMX_BUILD_LNX_TRUE= 23763 DMX_BUILD_LNX_FALSE='#' 23764else 23765 DMX_BUILD_LNX_TRUE='#' 23766 DMX_BUILD_LNX_FALSE= 23767fi 23768 23769 if test "x$DMX_BUILD_USB" = xyes; then 23770 DMX_BUILD_USB_TRUE= 23771 DMX_BUILD_USB_FALSE='#' 23772else 23773 DMX_BUILD_USB_TRUE='#' 23774 DMX_BUILD_USB_FALSE= 23775fi 23776 23777 23778 23779XEPHYR_LIBS= 23780XEPHYR_INCS= 23781 23782 if test x$KDRIVE = xyes; then 23783 KDRIVE_TRUE= 23784 KDRIVE_FALSE='#' 23785else 23786 KDRIVE_TRUE='#' 23787 KDRIVE_FALSE= 23788fi 23789 23790 23791if test "$KDRIVE" = yes; then 23792 23793$as_echo "#define KDRIVESERVER 1" >>confdefs.h 23794 23795 23796$as_echo "#define KDRIVEDDXACTIONS /**/" >>confdefs.h 23797 23798 23799 for ac_header in linux/fb.h 23800do : 23801 ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default" 23802if test "x$ac_cv_header_linux_fb_h" = xyes; then : 23803 cat >>confdefs.h <<_ACEOF 23804#define HAVE_LINUX_FB_H 1 23805_ACEOF 23806 23807fi 23808 23809done 23810 23811 if test "$ac_cv_header_linux_fb_h" = yes && test "x$XFBDEV" = xauto; then 23812 XFBDEV=yes 23813 fi 23814 23815 if test "x$XFBDEV" = xyes; then 23816 KDRIVEFBDEVLIB=yes 23817 23818$as_echo "#define KDRIVEFBDEV 1" >>confdefs.h 23819 23820 fi 23821 23822 23823 23824pkg_failed=no 23825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSLIB" >&5 23826$as_echo_n "checking for TSLIB... " >&6; } 23827 23828if test -n "$TSLIB_CFLAGS"; then 23829 pkg_cv_TSLIB_CFLAGS="$TSLIB_CFLAGS" 23830 elif test -n "$PKG_CONFIG"; then 23831 if test -n "$PKG_CONFIG" && \ 23832 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib-0.0\""; } >&5 23833 ($PKG_CONFIG --exists --print-errors "tslib-0.0") 2>&5 23834 ac_status=$? 23835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23836 test $ac_status = 0; }; then 23837 pkg_cv_TSLIB_CFLAGS=`$PKG_CONFIG --cflags "tslib-0.0" 2>/dev/null` 23838 test "x$?" != "x0" && pkg_failed=yes 23839else 23840 pkg_failed=yes 23841fi 23842 else 23843 pkg_failed=untried 23844fi 23845if test -n "$TSLIB_LIBS"; then 23846 pkg_cv_TSLIB_LIBS="$TSLIB_LIBS" 23847 elif test -n "$PKG_CONFIG"; then 23848 if test -n "$PKG_CONFIG" && \ 23849 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib-0.0\""; } >&5 23850 ($PKG_CONFIG --exists --print-errors "tslib-0.0") 2>&5 23851 ac_status=$? 23852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23853 test $ac_status = 0; }; then 23854 pkg_cv_TSLIB_LIBS=`$PKG_CONFIG --libs "tslib-0.0" 2>/dev/null` 23855 test "x$?" != "x0" && pkg_failed=yes 23856else 23857 pkg_failed=yes 23858fi 23859 else 23860 pkg_failed=untried 23861fi 23862 23863 23864 23865if test $pkg_failed = yes; then 23866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23867$as_echo "no" >&6; } 23868 23869if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23870 _pkg_short_errors_supported=yes 23871else 23872 _pkg_short_errors_supported=no 23873fi 23874 if test $_pkg_short_errors_supported = yes; then 23875 TSLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tslib-0.0" 2>&1` 23876 else 23877 TSLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tslib-0.0" 2>&1` 23878 fi 23879 # Put the nasty error message in config.log where it belongs 23880 echo "$TSLIB_PKG_ERRORS" >&5 23881 23882 HAVE_TSLIB="no" 23883elif test $pkg_failed = untried; then 23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23885$as_echo "no" >&6; } 23886 HAVE_TSLIB="no" 23887else 23888 TSLIB_CFLAGS=$pkg_cv_TSLIB_CFLAGS 23889 TSLIB_LIBS=$pkg_cv_TSLIB_LIBS 23890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23891$as_echo "yes" >&6; } 23892 HAVE_TSLIB="yes" 23893fi 23894 if test "x$HAVE_TSLIB" = xno; then 23895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -lts" >&5 23896$as_echo_n "checking for ts_open in -lts... " >&6; } 23897if ${ac_cv_lib_ts_ts_open+:} false; then : 23898 $as_echo_n "(cached) " >&6 23899else 23900 ac_check_lib_save_LIBS=$LIBS 23901LIBS="-lts $LIBS" 23902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23903/* end confdefs.h. */ 23904 23905/* Override any GCC internal prototype to avoid an error. 23906 Use char because int might match the return type of a GCC 23907 builtin and then its argument prototype would still apply. */ 23908#ifdef __cplusplus 23909extern "C" 23910#endif 23911char ts_open (); 23912int 23913main () 23914{ 23915return ts_open (); 23916 ; 23917 return 0; 23918} 23919_ACEOF 23920if ac_fn_c_try_link "$LINENO"; then : 23921 ac_cv_lib_ts_ts_open=yes 23922else 23923 ac_cv_lib_ts_ts_open=no 23924fi 23925rm -f core conftest.err conftest.$ac_objext \ 23926 conftest$ac_exeext conftest.$ac_ext 23927LIBS=$ac_check_lib_save_LIBS 23928fi 23929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ts_ts_open" >&5 23930$as_echo "$ac_cv_lib_ts_ts_open" >&6; } 23931if test "x$ac_cv_lib_ts_ts_open" = xyes; then : 23932 23933 HAVE_TSLIB="yes" 23934 TSLIB_LIBS="-lts" 23935 23936fi 23937 23938 fi 23939 23940 if test "xTSLIB" = xauto; then 23941 TSLIB="$HAVE_TSLIB" 23942 fi 23943 23944 if test "x$TSLIB" = xyes; then 23945 if ! test "x$HAVE_TSLIB" = xyes; then 23946 as_fn_error $? "tslib must be installed to build the tslib driver. See http://tslib.berlios.de/" "$LINENO" 5 23947 else 23948 23949$as_echo "#define TSLIB 1" >>confdefs.h 23950 23951 fi 23952 fi 23953 23954 if test "x$KDRIVE_KBD" = xyes; then 23955 23956$as_echo "#define KDRIVE_KBD 1" >>confdefs.h 23957 23958 fi 23959 if test "x$KDRIVE_EVDEV" = xyes; then 23960 23961$as_echo "#define KDRIVE_EVDEV 1" >>confdefs.h 23962 23963 fi 23964 if test "x$KDRIVE_MOUSE" = xyes; then 23965 23966$as_echo "#define KDRIVE_MOUSE 1" >>confdefs.h 23967 23968 fi 23969 23970 XEPHYR_REQUIRED_LIBS="x11 $LIBXEXT xau xdmcp" 23971 if test "x$XV" = xyes; then 23972 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xv" 23973 fi 23974 if test "x$DRI" = xyes && test "x$GLX" = xyes; then 23975 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBGL libdrm" 23976 fi 23977 23978 23979pkg_failed=no 23980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5 23981$as_echo_n "checking for XEPHYR... " >&6; } 23982 23983if test -n "$XEPHYR_CFLAGS"; then 23984 pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS" 23985 elif test -n "$PKG_CONFIG"; then 23986 if test -n "$PKG_CONFIG" && \ 23987 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 23988 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 23989 ac_status=$? 23990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23991 test $ac_status = 0; }; then 23992 pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 23993 test "x$?" != "x0" && pkg_failed=yes 23994else 23995 pkg_failed=yes 23996fi 23997 else 23998 pkg_failed=untried 23999fi 24000if test -n "$XEPHYR_LIBS"; then 24001 pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS" 24002 elif test -n "$PKG_CONFIG"; then 24003 if test -n "$PKG_CONFIG" && \ 24004 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 24005 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 24006 ac_status=$? 24007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24008 test $ac_status = 0; }; then 24009 pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 24010 test "x$?" != "x0" && pkg_failed=yes 24011else 24012 pkg_failed=yes 24013fi 24014 else 24015 pkg_failed=untried 24016fi 24017 24018 24019 24020if test $pkg_failed = yes; then 24021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24022$as_echo "no" >&6; } 24023 24024if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24025 _pkg_short_errors_supported=yes 24026else 24027 _pkg_short_errors_supported=no 24028fi 24029 if test $_pkg_short_errors_supported = yes; then 24030 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 24031 else 24032 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 24033 fi 24034 # Put the nasty error message in config.log where it belongs 24035 echo "$XEPHYR_PKG_ERRORS" >&5 24036 24037 xephyr="no" 24038elif test $pkg_failed = untried; then 24039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24040$as_echo "no" >&6; } 24041 xephyr="no" 24042else 24043 XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS 24044 XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS 24045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24046$as_echo "yes" >&6; } 24047 xephyr="yes" 24048fi 24049 if test "x$XEPHYR" = xauto; then 24050 XEPHYR=$xephyr 24051 fi 24052 if test "x$XEPHYR" = xyes && test "x$xephyr" = xno; then 24053 as_fn_error $? "Xephyr dependencies missing" "$LINENO" 5 24054 fi 24055 24056 # Xephyr needs nanosleep() which is in librt on Solaris 24057 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 24058if test "x$ac_cv_func_nanosleep" = xyes; then : 24059 24060else 24061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 24062$as_echo_n "checking for nanosleep in -lrt... " >&6; } 24063if ${ac_cv_lib_rt_nanosleep+:} false; then : 24064 $as_echo_n "(cached) " >&6 24065else 24066 ac_check_lib_save_LIBS=$LIBS 24067LIBS="-lrt $LIBS" 24068cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24069/* end confdefs.h. */ 24070 24071/* Override any GCC internal prototype to avoid an error. 24072 Use char because int might match the return type of a GCC 24073 builtin and then its argument prototype would still apply. */ 24074#ifdef __cplusplus 24075extern "C" 24076#endif 24077char nanosleep (); 24078int 24079main () 24080{ 24081return nanosleep (); 24082 ; 24083 return 0; 24084} 24085_ACEOF 24086if ac_fn_c_try_link "$LINENO"; then : 24087 ac_cv_lib_rt_nanosleep=yes 24088else 24089 ac_cv_lib_rt_nanosleep=no 24090fi 24091rm -f core conftest.err conftest.$ac_objext \ 24092 conftest$ac_exeext conftest.$ac_ext 24093LIBS=$ac_check_lib_save_LIBS 24094fi 24095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 24096$as_echo "$ac_cv_lib_rt_nanosleep" >&6; } 24097if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : 24098 XEPHYR_LIBS="$XEPHYR_LIBS -lrt" 24099fi 24100 24101fi 24102 24103 24104 # damage shadow extension glx (NOTYET) fb mi 24105 KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src' 24106 KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_SYNC_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC" 24107 KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux' 24108 KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC" 24109 24110 KDRIVE_CFLAGS="$XSERVER_CFLAGS -DHAVE_KDRIVE_CONFIG_H $TSLIB_CFLAGS" 24111 24112 KDRIVE_PURE_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $OS_LIB" 24113 KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la' 24114 case $host_os in 24115 *linux*) 24116 KDRIVE_OS_LIB='$(top_builddir)/hw/kdrive/linux/liblinux.la' 24117 KDRIVELINUX=yes 24118 if test "x$KDRIVE_EVDEV" = xauto; then 24119 KDRIVE_EVDEV=yes 24120 fi 24121 if test "x$KDRIVE_KBD" = xauto; then 24122 KDRIVE_KBD=yes 24123 fi 24124 if test "x$KDRIVE_MOUSE" = xauto; then 24125 KDRIVE_MOUSE=yes 24126 fi 24127 ;; 24128 *) 24129 if test "x$KDRIVE_EVDEV" = xauto; then 24130 KDRIVE_EVDEV=no 24131 fi 24132 if test "x$KDRIVE_KBD" = xauto; then 24133 KDRIVE_KBD=no 24134 fi 24135 if test "x$KDRIVE_MOUSE" = xauto; then 24136 KDRIVE_MOUSE=no 24137 fi 24138 ;; 24139 esac 24140 KDRIVE_STUB_LIB='$(top_builddir)/hw/kdrive/src/libkdrivestubs.la' 24141 KDRIVE_LOCAL_LIBS="$MAIN_LIB $DIX_LIB $KDRIVE_LIB $KDRIVE_STUB_LIB" 24142 KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS" 24143 KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB" 24144 KDRIVE_LIBS="$KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS $TSLIB_LIBS" 24145 24146 24147 24148fi 24149 24150 24151 24152 24153 24154 24155 if test "x$KDRIVELINUX" = xyes; then 24156 KDRIVELINUX_TRUE= 24157 KDRIVELINUX_FALSE='#' 24158else 24159 KDRIVELINUX_TRUE='#' 24160 KDRIVELINUX_FALSE= 24161fi 24162 24163 if test "x$KDRIVE_EVDEV" = xyes; then 24164 KDRIVE_EVDEV_TRUE= 24165 KDRIVE_EVDEV_FALSE='#' 24166else 24167 KDRIVE_EVDEV_TRUE='#' 24168 KDRIVE_EVDEV_FALSE= 24169fi 24170 24171 if test "x$KDRIVE_KBD" = xyes; then 24172 KDRIVE_KBD_TRUE= 24173 KDRIVE_KBD_FALSE='#' 24174else 24175 KDRIVE_KBD_TRUE='#' 24176 KDRIVE_KBD_FALSE= 24177fi 24178 24179 if test "x$KDRIVE_MOUSE" = xyes; then 24180 KDRIVE_MOUSE_TRUE= 24181 KDRIVE_MOUSE_FALSE='#' 24182else 24183 KDRIVE_MOUSE_TRUE='#' 24184 KDRIVE_MOUSE_FALSE= 24185fi 24186 24187 if test "x$HAVE_TSLIB" = xyes; then 24188 TSLIB_TRUE= 24189 TSLIB_FALSE='#' 24190else 24191 TSLIB_TRUE='#' 24192 TSLIB_FALSE= 24193fi 24194 24195 if test "x$XFBDEV" = xyes; then 24196 KDRIVEFBDEV_TRUE= 24197 KDRIVEFBDEV_FALSE='#' 24198else 24199 KDRIVEFBDEV_TRUE='#' 24200 KDRIVEFBDEV_FALSE= 24201fi 24202 24203 if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then 24204 XEPHYR_TRUE= 24205 XEPHYR_FALSE='#' 24206else 24207 XEPHYR_TRUE='#' 24208 XEPHYR_FALSE= 24209fi 24210 24211 if test "x$KDRIVE" = xyes && test "x$KDRIVEFBDEVLIB" = xyes; then 24212 BUILD_KDRIVEFBDEVLIB_TRUE= 24213 BUILD_KDRIVEFBDEVLIB_FALSE='#' 24214else 24215 BUILD_KDRIVEFBDEVLIB_TRUE='#' 24216 BUILD_KDRIVEFBDEVLIB_FALSE= 24217fi 24218 24219 if test "x$KDRIVE" = xyes && test "x$XFAKE" = xyes; then 24220 XFAKESERVER_TRUE= 24221 XFAKESERVER_FALSE='#' 24222else 24223 XFAKESERVER_TRUE='#' 24224 XFAKESERVER_FALSE= 24225fi 24226 24227 24228 24229cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24230/* end confdefs.h. */ 24231 24232#include <features.h> 24233#ifndef __GLIBC__ 24234#error not glibc 24235#endif 24236 24237int 24238main () 24239{ 24240 24241 ; 24242 return 0; 24243} 24244_ACEOF 24245if ac_fn_c_try_compile "$LINENO"; then : 24246 24247$as_echo "#define _GNU_SOURCE 1" >>confdefs.h 24248 24249fi 24250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24251 24252 24253 prefix_NONE= 24254 exec_prefix_NONE= 24255 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 24256 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 24257 eval ac_define_dir="\"$prefix\"" 24258 eval ac_define_dir="\"$ac_define_dir\"" 24259 PROJECTROOT="$ac_define_dir" 24260 24261 24262cat >>confdefs.h <<_ACEOF 24263#define PROJECTROOT "$ac_define_dir" 24264_ACEOF 24265 24266 test "$prefix_NONE" && prefix=NONE 24267 test "$exec_prefix_NONE" && exec_prefix=NONE 24268 24269 24270 24271BUILD_DATE="`date +'%Y%m%d'`" 24272 24273BUILD_TIME="`date +'1%H%M%S'`" 24274 24275 24276DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS" 24277 24278 24279 24280 24281 24282 24283 24284ac_config_commands="$ac_config_commands sdksyms" 24285 24286 24287ac_config_files="$ac_config_files Makefile glx/Makefile include/Makefile composite/Makefile damageext/Makefile dbe/Makefile dix/Makefile doc/Makefile doc/man/Makefile doc/xml/Makefile doc/xml/dtrace/Makefile doc/xml/xserver.ent fb/Makefile record/Makefile config/Makefile mi/Makefile miext/Makefile miext/sync/Makefile miext/damage/Makefile miext/shadow/Makefile miext/cw/Makefile miext/rootless/Makefile os/Makefile randr/Makefile render/Makefile xkb/Makefile Xext/Makefile Xi/Makefile xfixes/Makefile exa/Makefile hw/Makefile hw/xfree86/Makefile hw/xfree86/common/Makefile hw/xfree86/common/xf86Build.h hw/xfree86/ddc/Makefile hw/xfree86/dixmods/Makefile hw/xfree86/dixmods/extmod/Makefile hw/xfree86/doc/Makefile hw/xfree86/doc/devel/Makefile hw/xfree86/doc/man/Makefile hw/xfree86/doc/sgml/Makefile hw/xfree86/dri/Makefile hw/xfree86/dri2/Makefile hw/xfree86/exa/Makefile hw/xfree86/exa/man/Makefile hw/xfree86/fbdevhw/Makefile hw/xfree86/fbdevhw/man/Makefile hw/xfree86/i2c/Makefile hw/xfree86/int10/Makefile hw/xfree86/loader/Makefile hw/xfree86/modes/Makefile hw/xfree86/os-support/Makefile hw/xfree86/os-support/bsd/Makefile hw/xfree86/os-support/bus/Makefile hw/xfree86/os-support/hurd/Makefile hw/xfree86/os-support/misc/Makefile hw/xfree86/os-support/linux/Makefile hw/xfree86/os-support/solaris/Makefile hw/xfree86/parser/Makefile hw/xfree86/ramdac/Makefile hw/xfree86/shadowfb/Makefile hw/xfree86/vbe/Makefile hw/xfree86/vgahw/Makefile hw/xfree86/x86emu/Makefile hw/xfree86/xaa/Makefile hw/xfree86/utils/Makefile hw/xfree86/utils/man/Makefile hw/xfree86/utils/cvt/Makefile hw/xfree86/utils/gtf/Makefile hw/dmx/config/Makefile hw/dmx/config/man/Makefile hw/dmx/doc/Makefile hw/dmx/doc/doxygen.conf hw/dmx/examples/Makefile hw/dmx/input/Makefile hw/dmx/glxProxy/Makefile hw/dmx/Makefile hw/dmx/man/Makefile hw/vfb/Makefile hw/vfb/man/Makefile hw/xnest/Makefile hw/xnest/man/Makefile hw/xwin/Makefile hw/xwin/glx/Makefile hw/xwin/man/Makefile hw/xquartz/Makefile hw/xquartz/GL/Makefile hw/xquartz/bundle/Makefile hw/xquartz/man/Makefile hw/xquartz/mach-startup/Makefile hw/xquartz/pbproxy/Makefile hw/xquartz/xpr/Makefile hw/kdrive/Makefile hw/kdrive/ephyr/Makefile hw/kdrive/ephyr/man/Makefile hw/kdrive/fake/Makefile hw/kdrive/fbdev/Makefile hw/kdrive/linux/Makefile hw/kdrive/src/Makefile test/Makefile test/xi2/Makefile xorg-server.pc" 24288 24289cat >confcache <<\_ACEOF 24290# This file is a shell script that caches the results of configure 24291# tests run on this system so they can be shared between configure 24292# scripts and configure runs, see configure's option --config-cache. 24293# It is not useful on other systems. If it contains results you don't 24294# want to keep, you may remove or edit it. 24295# 24296# config.status only pays attention to the cache file if you give it 24297# the --recheck option to rerun configure. 24298# 24299# `ac_cv_env_foo' variables (set or unset) will be overridden when 24300# loading this file, other *unset* `ac_cv_foo' will be assigned the 24301# following values. 24302 24303_ACEOF 24304 24305# The following way of writing the cache mishandles newlines in values, 24306# but we know of no workaround that is simple, portable, and efficient. 24307# So, we kill variables containing newlines. 24308# Ultrix sh set writes to stderr and can't be redirected directly, 24309# and sets the high bit in the cache file unless we assign to the vars. 24310( 24311 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 24312 eval ac_val=\$$ac_var 24313 case $ac_val in #( 24314 *${as_nl}*) 24315 case $ac_var in #( 24316 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 24317$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 24318 esac 24319 case $ac_var in #( 24320 _ | IFS | as_nl) ;; #( 24321 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 24322 *) { eval $ac_var=; unset $ac_var;} ;; 24323 esac ;; 24324 esac 24325 done 24326 24327 (set) 2>&1 | 24328 case $as_nl`(ac_space=' '; set) 2>&1` in #( 24329 *${as_nl}ac_space=\ *) 24330 # `set' does not quote correctly, so add quotes: double-quote 24331 # substitution turns \\\\ into \\, and sed turns \\ into \. 24332 sed -n \ 24333 "s/'/'\\\\''/g; 24334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 24335 ;; #( 24336 *) 24337 # `set' quotes correctly as required by POSIX, so do not add quotes. 24338 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 24339 ;; 24340 esac | 24341 sort 24342) | 24343 sed ' 24344 /^ac_cv_env_/b end 24345 t clear 24346 :clear 24347 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 24348 t end 24349 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 24350 :end' >>confcache 24351if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 24352 if test -w "$cache_file"; then 24353 if test "x$cache_file" != "x/dev/null"; then 24354 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 24355$as_echo "$as_me: updating cache $cache_file" >&6;} 24356 if test ! -f "$cache_file" || test -h "$cache_file"; then 24357 cat confcache >"$cache_file" 24358 else 24359 case $cache_file in #( 24360 */* | ?:*) 24361 mv -f confcache "$cache_file"$$ && 24362 mv -f "$cache_file"$$ "$cache_file" ;; #( 24363 *) 24364 mv -f confcache "$cache_file" ;; 24365 esac 24366 fi 24367 fi 24368 else 24369 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 24370$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 24371 fi 24372fi 24373rm -f confcache 24374 24375test "x$prefix" = xNONE && prefix=$ac_default_prefix 24376# Let make expand exec_prefix. 24377test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 24378 24379DEFS=-DHAVE_CONFIG_H 24380 24381ac_libobjs= 24382ac_ltlibobjs= 24383U= 24384for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 24385 # 1. Remove the extension, and $U if already installed. 24386 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 24387 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 24388 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 24389 # will be set to the directory where LIBOBJS objects are built. 24390 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 24391 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 24392done 24393LIBOBJS=$ac_libobjs 24394 24395LTLIBOBJS=$ac_ltlibobjs 24396 24397 24398 if test -n "$EXEEXT"; then 24399 am__EXEEXT_TRUE= 24400 am__EXEEXT_FALSE='#' 24401else 24402 am__EXEEXT_TRUE='#' 24403 am__EXEEXT_FALSE= 24404fi 24405 24406if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 24407 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 24408Usually this means the macro was only invoked conditionally." "$LINENO" 5 24409fi 24410if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 24411 as_fn_error $? "conditional \"AMDEP\" was never defined. 24412Usually this means the macro was only invoked conditionally." "$LINENO" 5 24413fi 24414if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 24415 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 24416Usually this means the macro was only invoked conditionally." "$LINENO" 5 24417fi 24418if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 24419 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 24420Usually this means the macro was only invoked conditionally." "$LINENO" 5 24421fi 24422if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 24423 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 24424Usually this means the macro was only invoked conditionally." "$LINENO" 5 24425fi 24426if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 24427 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 24428Usually this means the macro was only invoked conditionally." "$LINENO" 5 24429fi 24430if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then 24431 as_fn_error $? "conditional \"XSERVER_DTRACE\" was never defined. 24432Usually this means the macro was only invoked conditionally." "$LINENO" 5 24433fi 24434if test -z "${SPECIAL_DTRACE_OBJECTS_TRUE}" && test -z "${SPECIAL_DTRACE_OBJECTS_FALSE}"; then 24435 as_fn_error $? "conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined. 24436Usually this means the macro was only invoked conditionally." "$LINENO" 5 24437fi 24438 24439if test -z "${NEED_STRLCAT_TRUE}" && test -z "${NEED_STRLCAT_FALSE}"; then 24440 as_fn_error $? "conditional \"NEED_STRLCAT\" was never defined. 24441Usually this means the macro was only invoked conditionally." "$LINENO" 5 24442fi 24443if test -z "${NEED_VSNPRINTF_TRUE}" && test -z "${NEED_VSNPRINTF_FALSE}"; then 24444 as_fn_error $? "conditional \"NEED_VSNPRINTF\" was never defined. 24445Usually this means the macro was only invoked conditionally." "$LINENO" 5 24446fi 24447if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then 24448 as_fn_error $? "conditional \"AGP\" was never defined. 24449Usually this means the macro was only invoked conditionally." "$LINENO" 5 24450fi 24451if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then 24452 as_fn_error $? "conditional \"LNXAPM\" was never defined. 24453Usually this means the macro was only invoked conditionally." "$LINENO" 5 24454fi 24455if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then 24456 as_fn_error $? "conditional \"FBDEVHW\" was never defined. 24457Usually this means the macro was only invoked conditionally." "$LINENO" 5 24458fi 24459if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then 24460 as_fn_error $? "conditional \"FREEBSD_KLDLOAD\" was never defined. 24461Usually this means the macro was only invoked conditionally." "$LINENO" 5 24462fi 24463if test -z "${BSD_APM_TRUE}" && test -z "${BSD_APM_FALSE}"; then 24464 as_fn_error $? "conditional \"BSD_APM\" was never defined. 24465Usually this means the macro was only invoked conditionally." "$LINENO" 5 24466fi 24467if test -z "${BSD_KQUEUE_APM_TRUE}" && test -z "${BSD_KQUEUE_APM_FALSE}"; then 24468 as_fn_error $? "conditional \"BSD_KQUEUE_APM\" was never defined. 24469Usually this means the macro was only invoked conditionally." "$LINENO" 5 24470fi 24471if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then 24472 as_fn_error $? "conditional \"ALPHA_VIDEO\" was never defined. 24473Usually this means the macro was only invoked conditionally." "$LINENO" 5 24474fi 24475if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then 24476 as_fn_error $? "conditional \"ARM_VIDEO\" was never defined. 24477Usually this means the macro was only invoked conditionally." "$LINENO" 5 24478fi 24479if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then 24480 as_fn_error $? "conditional \"I386_VIDEO\" was never defined. 24481Usually this means the macro was only invoked conditionally." "$LINENO" 5 24482fi 24483if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then 24484 as_fn_error $? "conditional \"PPC_VIDEO\" was never defined. 24485Usually this means the macro was only invoked conditionally." "$LINENO" 5 24486fi 24487if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then 24488 as_fn_error $? "conditional \"SPARC64_VIDEO\" was never defined. 24489Usually this means the macro was only invoked conditionally." "$LINENO" 5 24490fi 24491if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then 24492 as_fn_error $? "conditional \"INSTALL_SETUID\" was never defined. 24493Usually this means the macro was only invoked conditionally." "$LINENO" 5 24494fi 24495if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then 24496 as_fn_error $? "conditional \"SECURE_RPC\" was never defined. 24497Usually this means the macro was only invoked conditionally." "$LINENO" 5 24498fi 24499if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then 24500 as_fn_error $? "conditional \"INT10_VM86\" was never defined. 24501Usually this means the macro was only invoked conditionally." "$LINENO" 5 24502fi 24503if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then 24504 as_fn_error $? "conditional \"INT10_X86EMU\" was never defined. 24505Usually this means the macro was only invoked conditionally." "$LINENO" 5 24506fi 24507if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then 24508 as_fn_error $? "conditional \"INT10_STUB\" was never defined. 24509Usually this means the macro was only invoked conditionally." "$LINENO" 5 24510fi 24511if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 24512 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 24513Usually this means the macro was only invoked conditionally." "$LINENO" 5 24514fi 24515if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 24516 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 24517Usually this means the macro was only invoked conditionally." "$LINENO" 5 24518fi 24519if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 24520 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 24521Usually this means the macro was only invoked conditionally." "$LINENO" 5 24522fi 24523if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 24524 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 24525Usually this means the macro was only invoked conditionally." "$LINENO" 5 24526fi 24527if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 24528 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 24529Usually this means the macro was only invoked conditionally." "$LINENO" 5 24530fi 24531if test -z "${INSTALL_LIBXF86CONFIG_TRUE}" && test -z "${INSTALL_LIBXF86CONFIG_FALSE}"; then 24532 as_fn_error $? "conditional \"INSTALL_LIBXF86CONFIG\" was never defined. 24533Usually this means the macro was only invoked conditionally." "$LINENO" 5 24534fi 24535if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; then 24536 as_fn_error $? "conditional \"CONFIG_UDEV\" was never defined. 24537Usually this means the macro was only invoked conditionally." "$LINENO" 5 24538fi 24539if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then 24540 as_fn_error $? "conditional \"HAVE_DBUS\" was never defined. 24541Usually this means the macro was only invoked conditionally." "$LINENO" 5 24542fi 24543if test -z "${CONFIG_DBUS_API_TRUE}" && test -z "${CONFIG_DBUS_API_FALSE}"; then 24544 as_fn_error $? "conditional \"CONFIG_DBUS_API\" was never defined. 24545Usually this means the macro was only invoked conditionally." "$LINENO" 5 24546fi 24547if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then 24548 as_fn_error $? "conditional \"CONFIG_HAL\" was never defined. 24549Usually this means the macro was only invoked conditionally." "$LINENO" 5 24550fi 24551if test -z "${CONFIG_NEED_DBUS_TRUE}" && test -z "${CONFIG_NEED_DBUS_FALSE}"; then 24552 as_fn_error $? "conditional \"CONFIG_NEED_DBUS\" was never defined. 24553Usually this means the macro was only invoked conditionally." "$LINENO" 5 24554fi 24555if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then 24556 as_fn_error $? "conditional \"XV\" was never defined. 24557Usually this means the macro was only invoked conditionally." "$LINENO" 5 24558fi 24559if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then 24560 as_fn_error $? "conditional \"XVMC\" was never defined. 24561Usually this means the macro was only invoked conditionally." "$LINENO" 5 24562fi 24563if test -z "${XREGISTRY_TRUE}" && test -z "${XREGISTRY_FALSE}"; then 24564 as_fn_error $? "conditional \"XREGISTRY\" was never defined. 24565Usually this means the macro was only invoked conditionally." "$LINENO" 5 24566fi 24567if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then 24568 as_fn_error $? "conditional \"COMPOSITE\" was never defined. 24569Usually this means the macro was only invoked conditionally." "$LINENO" 5 24570fi 24571if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then 24572 as_fn_error $? "conditional \"MITSHM\" was never defined. 24573Usually this means the macro was only invoked conditionally." "$LINENO" 5 24574fi 24575if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then 24576 as_fn_error $? "conditional \"RECORD\" was never defined. 24577Usually this means the macro was only invoked conditionally." "$LINENO" 5 24578fi 24579if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then 24580 as_fn_error $? "conditional \"SCREENSAVER\" was never defined. 24581Usually this means the macro was only invoked conditionally." "$LINENO" 5 24582fi 24583if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then 24584 as_fn_error $? "conditional \"RES\" was never defined. 24585Usually this means the macro was only invoked conditionally." "$LINENO" 5 24586fi 24587if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then 24588 as_fn_error $? "conditional \"GLX\" was never defined. 24589Usually this means the macro was only invoked conditionally." "$LINENO" 5 24590fi 24591if test -z "${AIGLX_TRUE}" && test -z "${AIGLX_FALSE}"; then 24592 as_fn_error $? "conditional \"AIGLX\" was never defined. 24593Usually this means the macro was only invoked conditionally." "$LINENO" 5 24594fi 24595if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 24596 as_fn_error $? "conditional \"DRI\" was never defined. 24597Usually this means the macro was only invoked conditionally." "$LINENO" 5 24598fi 24599if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then 24600 as_fn_error $? "conditional \"DRI2\" was never defined. 24601Usually this means the macro was only invoked conditionally." "$LINENO" 5 24602fi 24603if test -z "${DRI2_AIGLX_TRUE}" && test -z "${DRI2_AIGLX_FALSE}"; then 24604 as_fn_error $? "conditional \"DRI2_AIGLX\" was never defined. 24605Usually this means the macro was only invoked conditionally." "$LINENO" 5 24606fi 24607if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then 24608 as_fn_error $? "conditional \"XINERAMA\" was never defined. 24609Usually this means the macro was only invoked conditionally." "$LINENO" 5 24610fi 24611if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then 24612 as_fn_error $? "conditional \"XACE\" was never defined. 24613Usually this means the macro was only invoked conditionally." "$LINENO" 5 24614fi 24615if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then 24616 as_fn_error $? "conditional \"XSELINUX\" was never defined. 24617Usually this means the macro was only invoked conditionally." "$LINENO" 5 24618fi 24619if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then 24620 as_fn_error $? "conditional \"XCSECURITY\" was never defined. 24621Usually this means the macro was only invoked conditionally." "$LINENO" 5 24622fi 24623if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then 24624 as_fn_error $? "conditional \"DBE\" was never defined. 24625Usually this means the macro was only invoked conditionally." "$LINENO" 5 24626fi 24627if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then 24628 as_fn_error $? "conditional \"XF86BIGFONT\" was never defined. 24629Usually this means the macro was only invoked conditionally." "$LINENO" 5 24630fi 24631if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then 24632 as_fn_error $? "conditional \"DPMSExtension\" was never defined. 24633Usually this means the macro was only invoked conditionally." "$LINENO" 5 24634fi 24635if test -z "${XCALIBRATE_TRUE}" && test -z "${XCALIBRATE_FALSE}"; then 24636 as_fn_error $? "conditional \"XCALIBRATE\" was never defined. 24637Usually this means the macro was only invoked conditionally." "$LINENO" 5 24638fi 24639if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then 24640 as_fn_error $? "conditional \"XF86UTILS\" was never defined. 24641Usually this means the macro was only invoked conditionally." "$LINENO" 5 24642fi 24643if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 24644 as_fn_error $? "conditional \"XAA\" was never defined. 24645Usually this means the macro was only invoked conditionally." "$LINENO" 5 24646fi 24647if test -z "${VGAHW_TRUE}" && test -z "${VGAHW_FALSE}"; then 24648 as_fn_error $? "conditional \"VGAHW\" was never defined. 24649Usually this means the macro was only invoked conditionally." "$LINENO" 5 24650fi 24651if test -z "${VBE_TRUE}" && test -z "${VBE_FALSE}"; then 24652 as_fn_error $? "conditional \"VBE\" was never defined. 24653Usually this means the macro was only invoked conditionally." "$LINENO" 5 24654fi 24655if test -z "${INT10MODULE_TRUE}" && test -z "${INT10MODULE_FALSE}"; then 24656 as_fn_error $? "conditional \"INT10MODULE\" was never defined. 24657Usually this means the macro was only invoked conditionally." "$LINENO" 5 24658fi 24659if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then 24660 as_fn_error $? "conditional \"XDMCP\" was never defined. 24661Usually this means the macro was only invoked conditionally." "$LINENO" 5 24662fi 24663if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then 24664 as_fn_error $? "conditional \"XDMAUTH\" was never defined. 24665Usually this means the macro was only invoked conditionally." "$LINENO" 5 24666fi 24667if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then 24668 as_fn_error $? "conditional \"DEBUG\" was never defined. 24669Usually this means the macro was only invoked conditionally." "$LINENO" 5 24670fi 24671if test -z "${UNITTESTS_TRUE}" && test -z "${UNITTESTS_FALSE}"; then 24672 as_fn_error $? "conditional \"UNITTESTS\" was never defined. 24673Usually this means the macro was only invoked conditionally." "$LINENO" 5 24674fi 24675if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then 24676 as_fn_error $? "conditional \"XVFB\" was never defined. 24677Usually this means the macro was only invoked conditionally." "$LINENO" 5 24678fi 24679if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then 24680 as_fn_error $? "conditional \"XNEST\" was never defined. 24681Usually this means the macro was only invoked conditionally." "$LINENO" 5 24682fi 24683if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then 24684 as_fn_error $? "conditional \"XORG\" was never defined. 24685Usually this means the macro was only invoked conditionally." "$LINENO" 5 24686fi 24687if test -z "${XORG_BUS_LINUXPCI_TRUE}" && test -z "${XORG_BUS_LINUXPCI_FALSE}"; then 24688 as_fn_error $? "conditional \"XORG_BUS_LINUXPCI\" was never defined. 24689Usually this means the macro was only invoked conditionally." "$LINENO" 5 24690fi 24691if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then 24692 as_fn_error $? "conditional \"XORG_BUS_BSDPCI\" was never defined. 24693Usually this means the macro was only invoked conditionally." "$LINENO" 5 24694fi 24695if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then 24696 as_fn_error $? "conditional \"XORG_BUS_SPARC\" was never defined. 24697Usually this means the macro was only invoked conditionally." "$LINENO" 5 24698fi 24699if test -z "${LINUX_IA64_TRUE}" && test -z "${LINUX_IA64_FALSE}"; then 24700 as_fn_error $? "conditional \"LINUX_IA64\" was never defined. 24701Usually this means the macro was only invoked conditionally." "$LINENO" 5 24702fi 24703if test -z "${LINUX_ALPHA_TRUE}" && test -z "${LINUX_ALPHA_FALSE}"; then 24704 as_fn_error $? "conditional \"LINUX_ALPHA\" was never defined. 24705Usually this means the macro was only invoked conditionally." "$LINENO" 5 24706fi 24707if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then 24708 as_fn_error $? "conditional \"LNXACPI\" was never defined. 24709Usually this means the macro was only invoked conditionally." "$LINENO" 5 24710fi 24711if test -z "${SOLARIS_ASM_INLINE_TRUE}" && test -z "${SOLARIS_ASM_INLINE_FALSE}"; then 24712 as_fn_error $? "conditional \"SOLARIS_ASM_INLINE\" was never defined. 24713Usually this means the macro was only invoked conditionally." "$LINENO" 5 24714fi 24715if test -z "${SOLARIS_VT_TRUE}" && test -z "${SOLARIS_VT_FALSE}"; then 24716 as_fn_error $? "conditional \"SOLARIS_VT\" was never defined. 24717Usually this means the macro was only invoked conditionally." "$LINENO" 5 24718fi 24719if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then 24720 as_fn_error $? "conditional \"DGA\" was never defined. 24721Usually this means the macro was only invoked conditionally." "$LINENO" 5 24722fi 24723if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then 24724 as_fn_error $? "conditional \"XF86VIDMODE\" was never defined. 24725Usually this means the macro was only invoked conditionally." "$LINENO" 5 24726fi 24727if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then 24728 as_fn_error $? "conditional \"XWIN\" was never defined. 24729Usually this means the macro was only invoked conditionally." "$LINENO" 5 24730fi 24731if test -z "${XWIN_MULTIWINDOW_TRUE}" && test -z "${XWIN_MULTIWINDOW_FALSE}"; then 24732 as_fn_error $? "conditional \"XWIN_MULTIWINDOW\" was never defined. 24733Usually this means the macro was only invoked conditionally." "$LINENO" 5 24734fi 24735if test -z "${XWIN_MULTIWINDOWEXTWM_TRUE}" && test -z "${XWIN_MULTIWINDOWEXTWM_FALSE}"; then 24736 as_fn_error $? "conditional \"XWIN_MULTIWINDOWEXTWM\" was never defined. 24737Usually this means the macro was only invoked conditionally." "$LINENO" 5 24738fi 24739if test -z "${XWIN_CLIPBOARD_TRUE}" && test -z "${XWIN_CLIPBOARD_FALSE}"; then 24740 as_fn_error $? "conditional \"XWIN_CLIPBOARD\" was never defined. 24741Usually this means the macro was only invoked conditionally." "$LINENO" 5 24742fi 24743if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then 24744 as_fn_error $? "conditional \"XWIN_GLX_WINDOWS\" was never defined. 24745Usually this means the macro was only invoked conditionally." "$LINENO" 5 24746fi 24747if test -z "${XWIN_NATIVEGDI_TRUE}" && test -z "${XWIN_NATIVEGDI_FALSE}"; then 24748 as_fn_error $? "conditional \"XWIN_NATIVEGDI\" was never defined. 24749Usually this means the macro was only invoked conditionally." "$LINENO" 5 24750fi 24751if test -z "${XWIN_PRIMARYFB_TRUE}" && test -z "${XWIN_PRIMARYFB_FALSE}"; then 24752 as_fn_error $? "conditional \"XWIN_PRIMARYFB\" was never defined. 24753Usually this means the macro was only invoked conditionally." "$LINENO" 5 24754fi 24755if test -z "${XWIN_RANDR_TRUE}" && test -z "${XWIN_RANDR_FALSE}"; then 24756 as_fn_error $? "conditional \"XWIN_RANDR\" was never defined. 24757Usually this means the macro was only invoked conditionally." "$LINENO" 5 24758fi 24759if test -z "${XWIN_XV_TRUE}" && test -z "${XWIN_XV_FALSE}"; then 24760 as_fn_error $? "conditional \"XWIN_XV\" was never defined. 24761Usually this means the macro was only invoked conditionally." "$LINENO" 5 24762fi 24763if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then 24764 as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. 24765Usually this means the macro was only invoked conditionally." "$LINENO" 5 24766fi 24767if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then 24768 as_fn_error $? "conditional \"XQUARTZ\" was never defined. 24769Usually this means the macro was only invoked conditionally." "$LINENO" 5 24770fi 24771if test -z "${XQUARTZ_SPARKLE_TRUE}" && test -z "${XQUARTZ_SPARKLE_FALSE}"; then 24772 as_fn_error $? "conditional \"XQUARTZ_SPARKLE\" was never defined. 24773Usually this means the macro was only invoked conditionally." "$LINENO" 5 24774fi 24775if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then 24776 as_fn_error $? "conditional \"STANDALONE_XPBPROXY\" was never defined. 24777Usually this means the macro was only invoked conditionally." "$LINENO" 5 24778fi 24779if test -z "${DMX_TRUE}" && test -z "${DMX_FALSE}"; then 24780 as_fn_error $? "conditional \"DMX\" was never defined. 24781Usually this means the macro was only invoked conditionally." "$LINENO" 5 24782fi 24783if test -z "${DMX_BUILD_LNX_TRUE}" && test -z "${DMX_BUILD_LNX_FALSE}"; then 24784 as_fn_error $? "conditional \"DMX_BUILD_LNX\" was never defined. 24785Usually this means the macro was only invoked conditionally." "$LINENO" 5 24786fi 24787if test -z "${DMX_BUILD_USB_TRUE}" && test -z "${DMX_BUILD_USB_FALSE}"; then 24788 as_fn_error $? "conditional \"DMX_BUILD_USB\" was never defined. 24789Usually this means the macro was only invoked conditionally." "$LINENO" 5 24790fi 24791if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then 24792 as_fn_error $? "conditional \"KDRIVE\" was never defined. 24793Usually this means the macro was only invoked conditionally." "$LINENO" 5 24794fi 24795if test -z "${KDRIVELINUX_TRUE}" && test -z "${KDRIVELINUX_FALSE}"; then 24796 as_fn_error $? "conditional \"KDRIVELINUX\" was never defined. 24797Usually this means the macro was only invoked conditionally." "$LINENO" 5 24798fi 24799if test -z "${KDRIVE_EVDEV_TRUE}" && test -z "${KDRIVE_EVDEV_FALSE}"; then 24800 as_fn_error $? "conditional \"KDRIVE_EVDEV\" was never defined. 24801Usually this means the macro was only invoked conditionally." "$LINENO" 5 24802fi 24803if test -z "${KDRIVE_KBD_TRUE}" && test -z "${KDRIVE_KBD_FALSE}"; then 24804 as_fn_error $? "conditional \"KDRIVE_KBD\" was never defined. 24805Usually this means the macro was only invoked conditionally." "$LINENO" 5 24806fi 24807if test -z "${KDRIVE_MOUSE_TRUE}" && test -z "${KDRIVE_MOUSE_FALSE}"; then 24808 as_fn_error $? "conditional \"KDRIVE_MOUSE\" was never defined. 24809Usually this means the macro was only invoked conditionally." "$LINENO" 5 24810fi 24811if test -z "${TSLIB_TRUE}" && test -z "${TSLIB_FALSE}"; then 24812 as_fn_error $? "conditional \"TSLIB\" was never defined. 24813Usually this means the macro was only invoked conditionally." "$LINENO" 5 24814fi 24815if test -z "${KDRIVEFBDEV_TRUE}" && test -z "${KDRIVEFBDEV_FALSE}"; then 24816 as_fn_error $? "conditional \"KDRIVEFBDEV\" was never defined. 24817Usually this means the macro was only invoked conditionally." "$LINENO" 5 24818fi 24819if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then 24820 as_fn_error $? "conditional \"XEPHYR\" was never defined. 24821Usually this means the macro was only invoked conditionally." "$LINENO" 5 24822fi 24823if test -z "${BUILD_KDRIVEFBDEVLIB_TRUE}" && test -z "${BUILD_KDRIVEFBDEVLIB_FALSE}"; then 24824 as_fn_error $? "conditional \"BUILD_KDRIVEFBDEVLIB\" was never defined. 24825Usually this means the macro was only invoked conditionally." "$LINENO" 5 24826fi 24827if test -z "${XFAKESERVER_TRUE}" && test -z "${XFAKESERVER_FALSE}"; then 24828 as_fn_error $? "conditional \"XFAKESERVER\" was never defined. 24829Usually this means the macro was only invoked conditionally." "$LINENO" 5 24830fi 24831 24832: "${CONFIG_STATUS=./config.status}" 24833ac_write_fail=0 24834ac_clean_files_save=$ac_clean_files 24835ac_clean_files="$ac_clean_files $CONFIG_STATUS" 24836{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 24837$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 24838as_write_fail=0 24839cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 24840#! $SHELL 24841# Generated by $as_me. 24842# Run this file to recreate the current configuration. 24843# Compiler output produced by configure, useful for debugging 24844# configure, is in config.log if it exists. 24845 24846debug=false 24847ac_cs_recheck=false 24848ac_cs_silent=false 24849 24850SHELL=\${CONFIG_SHELL-$SHELL} 24851export SHELL 24852_ASEOF 24853cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 24854## -------------------- ## 24855## M4sh Initialization. ## 24856## -------------------- ## 24857 24858# Be more Bourne compatible 24859DUALCASE=1; export DUALCASE # for MKS sh 24860if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 24861 emulate sh 24862 NULLCMD=: 24863 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24864 # is contrary to our usage. Disable this feature. 24865 alias -g '${1+"$@"}'='"$@"' 24866 setopt NO_GLOB_SUBST 24867else 24868 case `(set -o) 2>/dev/null` in #( 24869 *posix*) : 24870 set -o posix ;; #( 24871 *) : 24872 ;; 24873esac 24874fi 24875 24876 24877as_nl=' 24878' 24879export as_nl 24880# Printing a long string crashes Solaris 7 /usr/bin/printf. 24881as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 24882as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 24883as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 24884# Prefer a ksh shell builtin over an external printf program on Solaris, 24885# but without wasting forks for bash or zsh. 24886if test -z "$BASH_VERSION$ZSH_VERSION" \ 24887 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 24888 as_echo='print -r --' 24889 as_echo_n='print -rn --' 24890elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 24891 as_echo='printf %s\n' 24892 as_echo_n='printf %s' 24893else 24894 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 24895 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 24896 as_echo_n='/usr/ucb/echo -n' 24897 else 24898 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 24899 as_echo_n_body='eval 24900 arg=$1; 24901 case $arg in #( 24902 *"$as_nl"*) 24903 expr "X$arg" : "X\\(.*\\)$as_nl"; 24904 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 24905 esac; 24906 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 24907 ' 24908 export as_echo_n_body 24909 as_echo_n='sh -c $as_echo_n_body as_echo' 24910 fi 24911 export as_echo_body 24912 as_echo='sh -c $as_echo_body as_echo' 24913fi 24914 24915# The user is always right. 24916if test "${PATH_SEPARATOR+set}" != set; then 24917 PATH_SEPARATOR=: 24918 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 24919 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 24920 PATH_SEPARATOR=';' 24921 } 24922fi 24923 24924 24925# IFS 24926# We need space, tab and new line, in precisely that order. Quoting is 24927# there to prevent editors from complaining about space-tab. 24928# (If _AS_PATH_WALK were called with IFS unset, it would disable word 24929# splitting by setting IFS to empty value.) 24930IFS=" "" $as_nl" 24931 24932# Find who we are. Look in the path if we contain no directory separator. 24933as_myself= 24934case $0 in #(( 24935 *[\\/]* ) as_myself=$0 ;; 24936 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24937for as_dir in $PATH 24938do 24939 IFS=$as_save_IFS 24940 test -z "$as_dir" && as_dir=. 24941 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 24942 done 24943IFS=$as_save_IFS 24944 24945 ;; 24946esac 24947# We did not find ourselves, most probably we were run as `sh COMMAND' 24948# in which case we are not to be found in the path. 24949if test "x$as_myself" = x; then 24950 as_myself=$0 24951fi 24952if test ! -f "$as_myself"; then 24953 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 24954 exit 1 24955fi 24956 24957# Unset variables that we do not need and which cause bugs (e.g. in 24958# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 24959# suppresses any "Segmentation fault" message there. '((' could 24960# trigger a bug in pdksh 5.2.14. 24961for as_var in BASH_ENV ENV MAIL MAILPATH 24962do eval test x\${$as_var+set} = xset \ 24963 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 24964done 24965PS1='$ ' 24966PS2='> ' 24967PS4='+ ' 24968 24969# NLS nuisances. 24970LC_ALL=C 24971export LC_ALL 24972LANGUAGE=C 24973export LANGUAGE 24974 24975# CDPATH. 24976(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 24977 24978 24979# as_fn_error STATUS ERROR [LINENO LOG_FD] 24980# ---------------------------------------- 24981# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 24982# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 24983# script with STATUS, using 1 if that was 0. 24984as_fn_error () 24985{ 24986 as_status=$1; test $as_status -eq 0 && as_status=1 24987 if test "$4"; then 24988 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 24989 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 24990 fi 24991 $as_echo "$as_me: error: $2" >&2 24992 as_fn_exit $as_status 24993} # as_fn_error 24994 24995 24996# as_fn_set_status STATUS 24997# ----------------------- 24998# Set $? to STATUS, without forking. 24999as_fn_set_status () 25000{ 25001 return $1 25002} # as_fn_set_status 25003 25004# as_fn_exit STATUS 25005# ----------------- 25006# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 25007as_fn_exit () 25008{ 25009 set +e 25010 as_fn_set_status $1 25011 exit $1 25012} # as_fn_exit 25013 25014# as_fn_unset VAR 25015# --------------- 25016# Portably unset VAR. 25017as_fn_unset () 25018{ 25019 { eval $1=; unset $1;} 25020} 25021as_unset=as_fn_unset 25022# as_fn_append VAR VALUE 25023# ---------------------- 25024# Append the text in VALUE to the end of the definition contained in VAR. Take 25025# advantage of any shell optimizations that allow amortized linear growth over 25026# repeated appends, instead of the typical quadratic growth present in naive 25027# implementations. 25028if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 25029 eval 'as_fn_append () 25030 { 25031 eval $1+=\$2 25032 }' 25033else 25034 as_fn_append () 25035 { 25036 eval $1=\$$1\$2 25037 } 25038fi # as_fn_append 25039 25040# as_fn_arith ARG... 25041# ------------------ 25042# Perform arithmetic evaluation on the ARGs, and store the result in the 25043# global $as_val. Take advantage of shells that can avoid forks. The arguments 25044# must be portable across $(()) and expr. 25045if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 25046 eval 'as_fn_arith () 25047 { 25048 as_val=$(( $* )) 25049 }' 25050else 25051 as_fn_arith () 25052 { 25053 as_val=`expr "$@" || test $? -eq 1` 25054 } 25055fi # as_fn_arith 25056 25057 25058if expr a : '\(a\)' >/dev/null 2>&1 && 25059 test "X`expr 00001 : '.*\(...\)'`" = X001; then 25060 as_expr=expr 25061else 25062 as_expr=false 25063fi 25064 25065if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 25066 as_basename=basename 25067else 25068 as_basename=false 25069fi 25070 25071if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 25072 as_dirname=dirname 25073else 25074 as_dirname=false 25075fi 25076 25077as_me=`$as_basename -- "$0" || 25078$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 25079 X"$0" : 'X\(//\)$' \| \ 25080 X"$0" : 'X\(/\)' \| . 2>/dev/null || 25081$as_echo X/"$0" | 25082 sed '/^.*\/\([^/][^/]*\)\/*$/{ 25083 s//\1/ 25084 q 25085 } 25086 /^X\/\(\/\/\)$/{ 25087 s//\1/ 25088 q 25089 } 25090 /^X\/\(\/\).*/{ 25091 s//\1/ 25092 q 25093 } 25094 s/.*/./; q'` 25095 25096# Avoid depending upon Character Ranges. 25097as_cr_letters='abcdefghijklmnopqrstuvwxyz' 25098as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 25099as_cr_Letters=$as_cr_letters$as_cr_LETTERS 25100as_cr_digits='0123456789' 25101as_cr_alnum=$as_cr_Letters$as_cr_digits 25102 25103ECHO_C= ECHO_N= ECHO_T= 25104case `echo -n x` in #((((( 25105-n*) 25106 case `echo 'xy\c'` in 25107 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 25108 xy) ECHO_C='\c';; 25109 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 25110 ECHO_T=' ';; 25111 esac;; 25112*) 25113 ECHO_N='-n';; 25114esac 25115 25116rm -f conf$$ conf$$.exe conf$$.file 25117if test -d conf$$.dir; then 25118 rm -f conf$$.dir/conf$$.file 25119else 25120 rm -f conf$$.dir 25121 mkdir conf$$.dir 2>/dev/null 25122fi 25123if (echo >conf$$.file) 2>/dev/null; then 25124 if ln -s conf$$.file conf$$ 2>/dev/null; then 25125 as_ln_s='ln -s' 25126 # ... but there are two gotchas: 25127 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 25128 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 25129 # In both cases, we have to default to `cp -p'. 25130 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 25131 as_ln_s='cp -p' 25132 elif ln conf$$.file conf$$ 2>/dev/null; then 25133 as_ln_s=ln 25134 else 25135 as_ln_s='cp -p' 25136 fi 25137else 25138 as_ln_s='cp -p' 25139fi 25140rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 25141rmdir conf$$.dir 2>/dev/null 25142 25143 25144# as_fn_mkdir_p 25145# ------------- 25146# Create "$as_dir" as a directory, including parents if necessary. 25147as_fn_mkdir_p () 25148{ 25149 25150 case $as_dir in #( 25151 -*) as_dir=./$as_dir;; 25152 esac 25153 test -d "$as_dir" || eval $as_mkdir_p || { 25154 as_dirs= 25155 while :; do 25156 case $as_dir in #( 25157 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 25158 *) as_qdir=$as_dir;; 25159 esac 25160 as_dirs="'$as_qdir' $as_dirs" 25161 as_dir=`$as_dirname -- "$as_dir" || 25162$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25163 X"$as_dir" : 'X\(//\)[^/]' \| \ 25164 X"$as_dir" : 'X\(//\)$' \| \ 25165 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 25166$as_echo X"$as_dir" | 25167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25168 s//\1/ 25169 q 25170 } 25171 /^X\(\/\/\)[^/].*/{ 25172 s//\1/ 25173 q 25174 } 25175 /^X\(\/\/\)$/{ 25176 s//\1/ 25177 q 25178 } 25179 /^X\(\/\).*/{ 25180 s//\1/ 25181 q 25182 } 25183 s/.*/./; q'` 25184 test -d "$as_dir" && break 25185 done 25186 test -z "$as_dirs" || eval "mkdir $as_dirs" 25187 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 25188 25189 25190} # as_fn_mkdir_p 25191if mkdir -p . 2>/dev/null; then 25192 as_mkdir_p='mkdir -p "$as_dir"' 25193else 25194 test -d ./-p && rmdir ./-p 25195 as_mkdir_p=false 25196fi 25197 25198if test -x / >/dev/null 2>&1; then 25199 as_test_x='test -x' 25200else 25201 if ls -dL / >/dev/null 2>&1; then 25202 as_ls_L_option=L 25203 else 25204 as_ls_L_option= 25205 fi 25206 as_test_x=' 25207 eval sh -c '\'' 25208 if test -d "$1"; then 25209 test -d "$1/."; 25210 else 25211 case $1 in #( 25212 -*)set "./$1";; 25213 esac; 25214 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 25215 ???[sx]*):;;*)false;;esac;fi 25216 '\'' sh 25217 ' 25218fi 25219as_executable_p=$as_test_x 25220 25221# Sed expression to map a string onto a valid CPP name. 25222as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 25223 25224# Sed expression to map a string onto a valid variable name. 25225as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 25226 25227 25228exec 6>&1 25229## ----------------------------------- ## 25230## Main body of $CONFIG_STATUS script. ## 25231## ----------------------------------- ## 25232_ASEOF 25233test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 25234 25235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25236# Save the log message, to keep $0 and so on meaningful, and to 25237# report actual input values of CONFIG_FILES etc. instead of their 25238# values after options handling. 25239ac_log=" 25240This file was extended by xorg-server $as_me 1.10.3, which was 25241generated by GNU Autoconf 2.68. Invocation command line was 25242 25243 CONFIG_FILES = $CONFIG_FILES 25244 CONFIG_HEADERS = $CONFIG_HEADERS 25245 CONFIG_LINKS = $CONFIG_LINKS 25246 CONFIG_COMMANDS = $CONFIG_COMMANDS 25247 $ $0 $@ 25248 25249on `(hostname || uname -n) 2>/dev/null | sed 1q` 25250" 25251 25252_ACEOF 25253 25254case $ac_config_files in *" 25255"*) set x $ac_config_files; shift; ac_config_files=$*;; 25256esac 25257 25258case $ac_config_headers in *" 25259"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 25260esac 25261 25262 25263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25264# Files that config.status was made for. 25265config_files="$ac_config_files" 25266config_headers="$ac_config_headers" 25267config_commands="$ac_config_commands" 25268 25269_ACEOF 25270 25271cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25272ac_cs_usage="\ 25273\`$as_me' instantiates files and other configuration actions 25274from templates according to the current configuration. Unless the files 25275and actions are specified as TAGs, all are instantiated by default. 25276 25277Usage: $0 [OPTION]... [TAG]... 25278 25279 -h, --help print this help, then exit 25280 -V, --version print version number and configuration settings, then exit 25281 --config print configuration, then exit 25282 -q, --quiet, --silent 25283 do not print progress messages 25284 -d, --debug don't remove temporary files 25285 --recheck update $as_me by reconfiguring in the same conditions 25286 --file=FILE[:TEMPLATE] 25287 instantiate the configuration file FILE 25288 --header=FILE[:TEMPLATE] 25289 instantiate the configuration header FILE 25290 25291Configuration files: 25292$config_files 25293 25294Configuration headers: 25295$config_headers 25296 25297Configuration commands: 25298$config_commands 25299 25300Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 25301 25302_ACEOF 25303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25304ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 25305ac_cs_version="\\ 25306xorg-server config.status 1.10.3 25307configured by $0, generated by GNU Autoconf 2.68, 25308 with options \\"\$ac_cs_config\\" 25309 25310Copyright (C) 2010 Free Software Foundation, Inc. 25311This config.status script is free software; the Free Software Foundation 25312gives unlimited permission to copy, distribute and modify it." 25313 25314ac_pwd='$ac_pwd' 25315srcdir='$srcdir' 25316INSTALL='$INSTALL' 25317MKDIR_P='$MKDIR_P' 25318AWK='$AWK' 25319test -n "\$AWK" || AWK=awk 25320_ACEOF 25321 25322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25323# The default lists apply if the user does not specify any file. 25324ac_need_defaults=: 25325while test $# != 0 25326do 25327 case $1 in 25328 --*=?*) 25329 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25330 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 25331 ac_shift=: 25332 ;; 25333 --*=) 25334 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25335 ac_optarg= 25336 ac_shift=: 25337 ;; 25338 *) 25339 ac_option=$1 25340 ac_optarg=$2 25341 ac_shift=shift 25342 ;; 25343 esac 25344 25345 case $ac_option in 25346 # Handling of the options. 25347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 25348 ac_cs_recheck=: ;; 25349 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 25350 $as_echo "$ac_cs_version"; exit ;; 25351 --config | --confi | --conf | --con | --co | --c ) 25352 $as_echo "$ac_cs_config"; exit ;; 25353 --debug | --debu | --deb | --de | --d | -d ) 25354 debug=: ;; 25355 --file | --fil | --fi | --f ) 25356 $ac_shift 25357 case $ac_optarg in 25358 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25359 '') as_fn_error $? "missing file argument" ;; 25360 esac 25361 as_fn_append CONFIG_FILES " '$ac_optarg'" 25362 ac_need_defaults=false;; 25363 --header | --heade | --head | --hea ) 25364 $ac_shift 25365 case $ac_optarg in 25366 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25367 esac 25368 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 25369 ac_need_defaults=false;; 25370 --he | --h) 25371 # Conflict between --help and --header 25372 as_fn_error $? "ambiguous option: \`$1' 25373Try \`$0 --help' for more information.";; 25374 --help | --hel | -h ) 25375 $as_echo "$ac_cs_usage"; exit ;; 25376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 25377 | -silent | --silent | --silen | --sile | --sil | --si | --s) 25378 ac_cs_silent=: ;; 25379 25380 # This is an error. 25381 -*) as_fn_error $? "unrecognized option: \`$1' 25382Try \`$0 --help' for more information." ;; 25383 25384 *) as_fn_append ac_config_targets " $1" 25385 ac_need_defaults=false ;; 25386 25387 esac 25388 shift 25389done 25390 25391ac_configure_extra_args= 25392 25393if $ac_cs_silent; then 25394 exec 6>/dev/null 25395 ac_configure_extra_args="$ac_configure_extra_args --silent" 25396fi 25397 25398_ACEOF 25399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25400if \$ac_cs_recheck; then 25401 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 25402 shift 25403 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 25404 CONFIG_SHELL='$SHELL' 25405 export CONFIG_SHELL 25406 exec "\$@" 25407fi 25408 25409_ACEOF 25410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25411exec 5>>config.log 25412{ 25413 echo 25414 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 25415## Running $as_me. ## 25416_ASBOX 25417 $as_echo "$ac_log" 25418} >&5 25419 25420_ACEOF 25421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25422# 25423# INIT-COMMANDS 25424# 25425AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 25426 25427 25428# The HP-UX ksh and POSIX shell print the target directory to stdout 25429# if CDPATH is set. 25430(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 25431 25432sed_quote_subst='$sed_quote_subst' 25433double_quote_subst='$double_quote_subst' 25434delay_variable_subst='$delay_variable_subst' 25435AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 25436DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 25437OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 25438enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 25439macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 25440macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 25441enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 25442pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 25443enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 25444SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 25445ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 25446host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 25447host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 25448host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 25449build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 25450build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 25451build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 25452SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 25453Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 25454GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 25455EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 25456FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 25457LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 25458NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 25459LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 25460max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 25461ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 25462exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 25463lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 25464lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 25465lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 25466lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 25467lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 25468reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 25469reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 25470deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 25471file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 25472file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 25473want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 25474sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 25475AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 25476AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 25477archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 25478STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 25479RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 25480old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25481old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25482old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 25483lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 25484CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 25485CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 25486compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 25487GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 25488lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 25489lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 25490lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 25491lt_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"`' 25492nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 25493lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 25494objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 25495MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 25496lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 25497lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 25498lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 25499lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 25500lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 25501need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 25502MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 25503DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 25504NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 25505LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 25506OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 25507OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 25508libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 25509shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 25510extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 25511archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 25512enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 25513export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 25514whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 25515compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 25516old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 25517old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 25518archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 25519archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25520module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 25521module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25522with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 25523allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 25524no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 25525hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 25526hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 25527hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 25528hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 25529hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 25530hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 25531hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 25532hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 25533inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 25534link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 25535always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 25536export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 25537exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 25538include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 25539prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 25540postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 25541file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 25542variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 25543need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 25544need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 25545version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 25546runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 25547shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 25548shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 25549libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 25550library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 25551soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 25552install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 25553postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25554postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25555finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 25556finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 25557hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 25558sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 25559sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 25560hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 25561enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 25562enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 25563enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 25564old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 25565striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 25566 25567LTCC='$LTCC' 25568LTCFLAGS='$LTCFLAGS' 25569compiler='$compiler_DEFAULT' 25570 25571# A function that is used when there is no print builtin or printf. 25572func_fallback_echo () 25573{ 25574 eval 'cat <<_LTECHO_EOF 25575\$1 25576_LTECHO_EOF' 25577} 25578 25579# Quote evaled strings. 25580for var in AS \ 25581DLLTOOL \ 25582OBJDUMP \ 25583SHELL \ 25584ECHO \ 25585SED \ 25586GREP \ 25587EGREP \ 25588FGREP \ 25589LD \ 25590NM \ 25591LN_S \ 25592lt_SP2NL \ 25593lt_NL2SP \ 25594reload_flag \ 25595deplibs_check_method \ 25596file_magic_cmd \ 25597file_magic_glob \ 25598want_nocaseglob \ 25599sharedlib_from_linklib_cmd \ 25600AR \ 25601AR_FLAGS \ 25602archiver_list_spec \ 25603STRIP \ 25604RANLIB \ 25605CC \ 25606CFLAGS \ 25607compiler \ 25608lt_cv_sys_global_symbol_pipe \ 25609lt_cv_sys_global_symbol_to_cdecl \ 25610lt_cv_sys_global_symbol_to_c_name_address \ 25611lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 25612nm_file_list_spec \ 25613lt_prog_compiler_no_builtin_flag \ 25614lt_prog_compiler_pic \ 25615lt_prog_compiler_wl \ 25616lt_prog_compiler_static \ 25617lt_cv_prog_compiler_c_o \ 25618need_locks \ 25619MANIFEST_TOOL \ 25620DSYMUTIL \ 25621NMEDIT \ 25622LIPO \ 25623OTOOL \ 25624OTOOL64 \ 25625shrext_cmds \ 25626export_dynamic_flag_spec \ 25627whole_archive_flag_spec \ 25628compiler_needs_object \ 25629with_gnu_ld \ 25630allow_undefined_flag \ 25631no_undefined_flag \ 25632hardcode_libdir_flag_spec \ 25633hardcode_libdir_flag_spec_ld \ 25634hardcode_libdir_separator \ 25635exclude_expsyms \ 25636include_expsyms \ 25637file_list_spec \ 25638variables_saved_for_relink \ 25639libname_spec \ 25640library_names_spec \ 25641soname_spec \ 25642install_override_mode \ 25643finish_eval \ 25644old_striplib \ 25645striplib; do 25646 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 25647 *[\\\\\\\`\\"\\\$]*) 25648 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 25649 ;; 25650 *) 25651 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 25652 ;; 25653 esac 25654done 25655 25656# Double-quote double-evaled strings. 25657for var in reload_cmds \ 25658old_postinstall_cmds \ 25659old_postuninstall_cmds \ 25660old_archive_cmds \ 25661extract_expsyms_cmds \ 25662old_archive_from_new_cmds \ 25663old_archive_from_expsyms_cmds \ 25664archive_cmds \ 25665archive_expsym_cmds \ 25666module_cmds \ 25667module_expsym_cmds \ 25668export_symbols_cmds \ 25669prelink_cmds \ 25670postlink_cmds \ 25671postinstall_cmds \ 25672postuninstall_cmds \ 25673finish_cmds \ 25674sys_lib_search_path_spec \ 25675sys_lib_dlsearch_path_spec; do 25676 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 25677 *[\\\\\\\`\\"\\\$]*) 25678 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 25679 ;; 25680 *) 25681 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 25682 ;; 25683 esac 25684done 25685 25686ac_aux_dir='$ac_aux_dir' 25687xsi_shell='$xsi_shell' 25688lt_shell_append='$lt_shell_append' 25689 25690# See if we are running on zsh, and set the options which allow our 25691# commands through without removal of \ escapes INIT. 25692if test -n "\${ZSH_VERSION+set}" ; then 25693 setopt NO_GLOB_SUBST 25694fi 25695 25696 25697 PACKAGE='$PACKAGE' 25698 VERSION='$VERSION' 25699 TIMESTAMP='$TIMESTAMP' 25700 RM='$RM' 25701 ofile='$ofile' 25702 25703 25704 25705 25706_ACEOF 25707 25708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25709 25710# Handling of arguments. 25711for ac_config_target in $ac_config_targets 25712do 25713 case $ac_config_target in 25714 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 25715 "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;; 25716 "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;; 25717 "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;; 25718 "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;; 25719 "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;; 25720 "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;; 25721 "include/kdrive-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/kdrive-config.h" ;; 25722 "include/version-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/version-config.h" ;; 25723 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 25724 "sdksyms") CONFIG_COMMANDS="$CONFIG_COMMANDS sdksyms" ;; 25725 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 25726 "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;; 25727 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 25728 "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;; 25729 "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;; 25730 "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;; 25731 "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;; 25732 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 25733 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;; 25734 "doc/xml/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xml/Makefile" ;; 25735 "doc/xml/dtrace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xml/dtrace/Makefile" ;; 25736 "doc/xml/xserver.ent") CONFIG_FILES="$CONFIG_FILES doc/xml/xserver.ent" ;; 25737 "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;; 25738 "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;; 25739 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 25740 "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;; 25741 "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;; 25742 "miext/sync/Makefile") CONFIG_FILES="$CONFIG_FILES miext/sync/Makefile" ;; 25743 "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;; 25744 "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;; 25745 "miext/cw/Makefile") CONFIG_FILES="$CONFIG_FILES miext/cw/Makefile" ;; 25746 "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;; 25747 "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;; 25748 "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;; 25749 "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;; 25750 "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;; 25751 "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;; 25752 "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;; 25753 "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;; 25754 "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;; 25755 "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;; 25756 "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;; 25757 "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;; 25758 "hw/xfree86/common/xf86Build.h") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/xf86Build.h" ;; 25759 "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;; 25760 "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;; 25761 "hw/xfree86/dixmods/extmod/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/extmod/Makefile" ;; 25762 "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;; 25763 "hw/xfree86/doc/devel/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/devel/Makefile" ;; 25764 "hw/xfree86/doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/man/Makefile" ;; 25765 "hw/xfree86/doc/sgml/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/sgml/Makefile" ;; 25766 "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;; 25767 "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;; 25768 "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;; 25769 "hw/xfree86/exa/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/man/Makefile" ;; 25770 "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;; 25771 "hw/xfree86/fbdevhw/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/man/Makefile" ;; 25772 "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;; 25773 "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;; 25774 "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;; 25775 "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;; 25776 "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;; 25777 "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;; 25778 "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;; 25779 "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;; 25780 "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;; 25781 "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;; 25782 "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;; 25783 "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;; 25784 "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;; 25785 "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;; 25786 "hw/xfree86/vbe/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vbe/Makefile" ;; 25787 "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;; 25788 "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;; 25789 "hw/xfree86/xaa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xaa/Makefile" ;; 25790 "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;; 25791 "hw/xfree86/utils/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/man/Makefile" ;; 25792 "hw/xfree86/utils/cvt/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/cvt/Makefile" ;; 25793 "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;; 25794 "hw/dmx/config/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/Makefile" ;; 25795 "hw/dmx/config/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/man/Makefile" ;; 25796 "hw/dmx/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doc/Makefile" ;; 25797 "hw/dmx/doc/doxygen.conf") CONFIG_FILES="$CONFIG_FILES hw/dmx/doc/doxygen.conf" ;; 25798 "hw/dmx/examples/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/examples/Makefile" ;; 25799 "hw/dmx/input/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/input/Makefile" ;; 25800 "hw/dmx/glxProxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/glxProxy/Makefile" ;; 25801 "hw/dmx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/Makefile" ;; 25802 "hw/dmx/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/man/Makefile" ;; 25803 "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;; 25804 "hw/vfb/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/man/Makefile" ;; 25805 "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;; 25806 "hw/xnest/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/man/Makefile" ;; 25807 "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;; 25808 "hw/xwin/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/glx/Makefile" ;; 25809 "hw/xwin/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/man/Makefile" ;; 25810 "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;; 25811 "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;; 25812 "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;; 25813 "hw/xquartz/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/man/Makefile" ;; 25814 "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;; 25815 "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;; 25816 "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;; 25817 "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;; 25818 "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;; 25819 "hw/kdrive/ephyr/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/man/Makefile" ;; 25820 "hw/kdrive/fake/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/fake/Makefile" ;; 25821 "hw/kdrive/fbdev/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/fbdev/Makefile" ;; 25822 "hw/kdrive/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/linux/Makefile" ;; 25823 "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;; 25824 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 25825 "test/xi2/Makefile") CONFIG_FILES="$CONFIG_FILES test/xi2/Makefile" ;; 25826 "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;; 25827 25828 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 25829 esac 25830done 25831 25832 25833# If the user did not use the arguments to specify the items to instantiate, 25834# then the envvar interface is used. Set only those that are not. 25835# We use the long form for the default assignment because of an extremely 25836# bizarre bug on SunOS 4.1.3. 25837if $ac_need_defaults; then 25838 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 25839 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 25840 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 25841fi 25842 25843# Have a temporary directory for convenience. Make it in the build tree 25844# simply because there is no reason against having it here, and in addition, 25845# creating and moving files from /tmp can sometimes cause problems. 25846# Hook for its removal unless debugging. 25847# Note that there is a small window in which the directory will not be cleaned: 25848# after its creation but before its name has been assigned to `$tmp'. 25849$debug || 25850{ 25851 tmp= ac_tmp= 25852 trap 'exit_status=$? 25853 : "${ac_tmp:=$tmp}" 25854 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 25855' 0 25856 trap 'as_fn_exit 1' 1 2 13 15 25857} 25858# Create a (secure) tmp directory for tmp files. 25859 25860{ 25861 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 25862 test -d "$tmp" 25863} || 25864{ 25865 tmp=./conf$$-$RANDOM 25866 (umask 077 && mkdir "$tmp") 25867} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 25868ac_tmp=$tmp 25869 25870# Set up the scripts for CONFIG_FILES section. 25871# No need to generate them if there are no CONFIG_FILES. 25872# This happens for instance with `./config.status config.h'. 25873if test -n "$CONFIG_FILES"; then 25874 25875 25876ac_cr=`echo X | tr X '\015'` 25877# On cygwin, bash can eat \r inside `` if the user requested igncr. 25878# But we know of no other shell where ac_cr would be empty at this 25879# point, so we can use a bashism as a fallback. 25880if test "x$ac_cr" = x; then 25881 eval ac_cr=\$\'\\r\' 25882fi 25883ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 25884if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 25885 ac_cs_awk_cr='\\r' 25886else 25887 ac_cs_awk_cr=$ac_cr 25888fi 25889 25890echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 25891_ACEOF 25892 25893 25894{ 25895 echo "cat >conf$$subs.awk <<_ACEOF" && 25896 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 25897 echo "_ACEOF" 25898} >conf$$subs.sh || 25899 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25900ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 25901ac_delim='%!_!# ' 25902for ac_last_try in false false false false false :; do 25903 . ./conf$$subs.sh || 25904 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25905 25906 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 25907 if test $ac_delim_n = $ac_delim_num; then 25908 break 25909 elif $ac_last_try; then 25910 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25911 else 25912 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 25913 fi 25914done 25915rm -f conf$$subs.sh 25916 25917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25918cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 25919_ACEOF 25920sed -n ' 25921h 25922s/^/S["/; s/!.*/"]=/ 25923p 25924g 25925s/^[^!]*!// 25926:repl 25927t repl 25928s/'"$ac_delim"'$// 25929t delim 25930:nl 25931h 25932s/\(.\{148\}\)..*/\1/ 25933t more1 25934s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 25935p 25936n 25937b repl 25938:more1 25939s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25940p 25941g 25942s/.\{148\}// 25943t nl 25944:delim 25945h 25946s/\(.\{148\}\)..*/\1/ 25947t more2 25948s/["\\]/\\&/g; s/^/"/; s/$/"/ 25949p 25950b 25951:more2 25952s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25953p 25954g 25955s/.\{148\}// 25956t delim 25957' <conf$$subs.awk | sed ' 25958/^[^""]/{ 25959 N 25960 s/\n// 25961} 25962' >>$CONFIG_STATUS || ac_write_fail=1 25963rm -f conf$$subs.awk 25964cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25965_ACAWK 25966cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 25967 for (key in S) S_is_set[key] = 1 25968 FS = "" 25969 25970} 25971{ 25972 line = $ 0 25973 nfields = split(line, field, "@") 25974 substed = 0 25975 len = length(field[1]) 25976 for (i = 2; i < nfields; i++) { 25977 key = field[i] 25978 keylen = length(key) 25979 if (S_is_set[key]) { 25980 value = S[key] 25981 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 25982 len += length(value) + length(field[++i]) 25983 substed = 1 25984 } else 25985 len += 1 + keylen 25986 } 25987 25988 print line 25989} 25990 25991_ACAWK 25992_ACEOF 25993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25994if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 25995 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 25996else 25997 cat 25998fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 25999 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 26000_ACEOF 26001 26002# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 26003# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 26004# trailing colons and then remove the whole line if VPATH becomes empty 26005# (actually we leave an empty line to preserve line numbers). 26006if test "x$srcdir" = x.; then 26007 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 26008h 26009s/// 26010s/^/:/ 26011s/[ ]*$/:/ 26012s/:\$(srcdir):/:/g 26013s/:\${srcdir}:/:/g 26014s/:@srcdir@:/:/g 26015s/^:*// 26016s/:*$// 26017x 26018s/\(=[ ]*\).*/\1/ 26019G 26020s/\n// 26021s/^[^=]*=[ ]*$// 26022}' 26023fi 26024 26025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26026fi # test -n "$CONFIG_FILES" 26027 26028# Set up the scripts for CONFIG_HEADERS section. 26029# No need to generate them if there are no CONFIG_HEADERS. 26030# This happens for instance with `./config.status Makefile'. 26031if test -n "$CONFIG_HEADERS"; then 26032cat >"$ac_tmp/defines.awk" <<\_ACAWK || 26033BEGIN { 26034_ACEOF 26035 26036# Transform confdefs.h into an awk script `defines.awk', embedded as 26037# here-document in config.status, that substitutes the proper values into 26038# config.h.in to produce config.h. 26039 26040# Create a delimiter string that does not exist in confdefs.h, to ease 26041# handling of long lines. 26042ac_delim='%!_!# ' 26043for ac_last_try in false false :; do 26044 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 26045 if test -z "$ac_tt"; then 26046 break 26047 elif $ac_last_try; then 26048 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 26049 else 26050 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26051 fi 26052done 26053 26054# For the awk script, D is an array of macro values keyed by name, 26055# likewise P contains macro parameters if any. Preserve backslash 26056# newline sequences. 26057 26058ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 26059sed -n ' 26060s/.\{148\}/&'"$ac_delim"'/g 26061t rset 26062:rset 26063s/^[ ]*#[ ]*define[ ][ ]*/ / 26064t def 26065d 26066:def 26067s/\\$// 26068t bsnl 26069s/["\\]/\\&/g 26070s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26071D["\1"]=" \3"/p 26072s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 26073d 26074:bsnl 26075s/["\\]/\\&/g 26076s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26077D["\1"]=" \3\\\\\\n"\\/p 26078t cont 26079s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 26080t cont 26081d 26082:cont 26083n 26084s/.\{148\}/&'"$ac_delim"'/g 26085t clear 26086:clear 26087s/\\$// 26088t bsnlc 26089s/["\\]/\\&/g; s/^/"/; s/$/"/p 26090d 26091:bsnlc 26092s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 26093b cont 26094' <confdefs.h | sed ' 26095s/'"$ac_delim"'/"\\\ 26096"/g' >>$CONFIG_STATUS || ac_write_fail=1 26097 26098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26099 for (key in D) D_is_set[key] = 1 26100 FS = "" 26101} 26102/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 26103 line = \$ 0 26104 split(line, arg, " ") 26105 if (arg[1] == "#") { 26106 defundef = arg[2] 26107 mac1 = arg[3] 26108 } else { 26109 defundef = substr(arg[1], 2) 26110 mac1 = arg[2] 26111 } 26112 split(mac1, mac2, "(") #) 26113 macro = mac2[1] 26114 prefix = substr(line, 1, index(line, defundef) - 1) 26115 if (D_is_set[macro]) { 26116 # Preserve the white space surrounding the "#". 26117 print prefix "define", macro P[macro] D[macro] 26118 next 26119 } else { 26120 # Replace #undef with comments. This is necessary, for example, 26121 # in the case of _POSIX_SOURCE, which is predefined and required 26122 # on some systems where configure will not decide to define it. 26123 if (defundef == "undef") { 26124 print "/*", prefix defundef, macro, "*/" 26125 next 26126 } 26127 } 26128} 26129{ print } 26130_ACAWK 26131_ACEOF 26132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26133 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 26134fi # test -n "$CONFIG_HEADERS" 26135 26136 26137eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 26138shift 26139for ac_tag 26140do 26141 case $ac_tag in 26142 :[FHLC]) ac_mode=$ac_tag; continue;; 26143 esac 26144 case $ac_mode$ac_tag in 26145 :[FHL]*:*);; 26146 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 26147 :[FH]-) ac_tag=-:-;; 26148 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 26149 esac 26150 ac_save_IFS=$IFS 26151 IFS=: 26152 set x $ac_tag 26153 IFS=$ac_save_IFS 26154 shift 26155 ac_file=$1 26156 shift 26157 26158 case $ac_mode in 26159 :L) ac_source=$1;; 26160 :[FH]) 26161 ac_file_inputs= 26162 for ac_f 26163 do 26164 case $ac_f in 26165 -) ac_f="$ac_tmp/stdin";; 26166 *) # Look for the file first in the build tree, then in the source tree 26167 # (if the path is not absolute). The absolute path cannot be DOS-style, 26168 # because $ac_f cannot contain `:'. 26169 test -f "$ac_f" || 26170 case $ac_f in 26171 [\\/$]*) false;; 26172 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 26173 esac || 26174 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 26175 esac 26176 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 26177 as_fn_append ac_file_inputs " '$ac_f'" 26178 done 26179 26180 # Let's still pretend it is `configure' which instantiates (i.e., don't 26181 # use $as_me), people would be surprised to read: 26182 # /* config.h. Generated by config.status. */ 26183 configure_input='Generated from '` 26184 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 26185 `' by configure.' 26186 if test x"$ac_file" != x-; then 26187 configure_input="$ac_file. $configure_input" 26188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 26189$as_echo "$as_me: creating $ac_file" >&6;} 26190 fi 26191 # Neutralize special characters interpreted by sed in replacement strings. 26192 case $configure_input in #( 26193 *\&* | *\|* | *\\* ) 26194 ac_sed_conf_input=`$as_echo "$configure_input" | 26195 sed 's/[\\\\&|]/\\\\&/g'`;; #( 26196 *) ac_sed_conf_input=$configure_input;; 26197 esac 26198 26199 case $ac_tag in 26200 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 26201 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 26202 esac 26203 ;; 26204 esac 26205 26206 ac_dir=`$as_dirname -- "$ac_file" || 26207$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26208 X"$ac_file" : 'X\(//\)[^/]' \| \ 26209 X"$ac_file" : 'X\(//\)$' \| \ 26210 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 26211$as_echo X"$ac_file" | 26212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26213 s//\1/ 26214 q 26215 } 26216 /^X\(\/\/\)[^/].*/{ 26217 s//\1/ 26218 q 26219 } 26220 /^X\(\/\/\)$/{ 26221 s//\1/ 26222 q 26223 } 26224 /^X\(\/\).*/{ 26225 s//\1/ 26226 q 26227 } 26228 s/.*/./; q'` 26229 as_dir="$ac_dir"; as_fn_mkdir_p 26230 ac_builddir=. 26231 26232case "$ac_dir" in 26233.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 26234*) 26235 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 26236 # A ".." for each directory in $ac_dir_suffix. 26237 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 26238 case $ac_top_builddir_sub in 26239 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 26240 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 26241 esac ;; 26242esac 26243ac_abs_top_builddir=$ac_pwd 26244ac_abs_builddir=$ac_pwd$ac_dir_suffix 26245# for backward compatibility: 26246ac_top_builddir=$ac_top_build_prefix 26247 26248case $srcdir in 26249 .) # We are building in place. 26250 ac_srcdir=. 26251 ac_top_srcdir=$ac_top_builddir_sub 26252 ac_abs_top_srcdir=$ac_pwd ;; 26253 [\\/]* | ?:[\\/]* ) # Absolute name. 26254 ac_srcdir=$srcdir$ac_dir_suffix; 26255 ac_top_srcdir=$srcdir 26256 ac_abs_top_srcdir=$srcdir ;; 26257 *) # Relative name. 26258 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 26259 ac_top_srcdir=$ac_top_build_prefix$srcdir 26260 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 26261esac 26262ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 26263 26264 26265 case $ac_mode in 26266 :F) 26267 # 26268 # CONFIG_FILE 26269 # 26270 26271 case $INSTALL in 26272 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 26273 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 26274 esac 26275 ac_MKDIR_P=$MKDIR_P 26276 case $MKDIR_P in 26277 [\\/$]* | ?:[\\/]* ) ;; 26278 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 26279 esac 26280_ACEOF 26281 26282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26283# If the template does not know about datarootdir, expand it. 26284# FIXME: This hack should be removed a few years after 2.60. 26285ac_datarootdir_hack=; ac_datarootdir_seen= 26286ac_sed_dataroot=' 26287/datarootdir/ { 26288 p 26289 q 26290} 26291/@datadir@/p 26292/@docdir@/p 26293/@infodir@/p 26294/@localedir@/p 26295/@mandir@/p' 26296case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 26297*datarootdir*) ac_datarootdir_seen=yes;; 26298*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 26299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 26300$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 26301_ACEOF 26302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26303 ac_datarootdir_hack=' 26304 s&@datadir@&$datadir&g 26305 s&@docdir@&$docdir&g 26306 s&@infodir@&$infodir&g 26307 s&@localedir@&$localedir&g 26308 s&@mandir@&$mandir&g 26309 s&\\\${datarootdir}&$datarootdir&g' ;; 26310esac 26311_ACEOF 26312 26313# Neutralize VPATH when `$srcdir' = `.'. 26314# Shell code in configure.ac might set extrasub. 26315# FIXME: do we really want to maintain this feature? 26316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26317ac_sed_extra="$ac_vpsub 26318$extrasub 26319_ACEOF 26320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26321:t 26322/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 26323s|@configure_input@|$ac_sed_conf_input|;t t 26324s&@top_builddir@&$ac_top_builddir_sub&;t t 26325s&@top_build_prefix@&$ac_top_build_prefix&;t t 26326s&@srcdir@&$ac_srcdir&;t t 26327s&@abs_srcdir@&$ac_abs_srcdir&;t t 26328s&@top_srcdir@&$ac_top_srcdir&;t t 26329s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 26330s&@builddir@&$ac_builddir&;t t 26331s&@abs_builddir@&$ac_abs_builddir&;t t 26332s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 26333s&@INSTALL@&$ac_INSTALL&;t t 26334s&@MKDIR_P@&$ac_MKDIR_P&;t t 26335$ac_datarootdir_hack 26336" 26337eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 26338 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26339 26340test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 26341 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 26342 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 26343 "$ac_tmp/out"`; test -z "$ac_out"; } && 26344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 26345which seems to be undefined. Please make sure it is defined" >&5 26346$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 26347which seems to be undefined. Please make sure it is defined" >&2;} 26348 26349 rm -f "$ac_tmp/stdin" 26350 case $ac_file in 26351 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 26352 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 26353 esac \ 26354 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26355 ;; 26356 :H) 26357 # 26358 # CONFIG_HEADER 26359 # 26360 if test x"$ac_file" != x-; then 26361 { 26362 $as_echo "/* $configure_input */" \ 26363 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 26364 } >"$ac_tmp/config.h" \ 26365 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26366 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 26367 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 26368$as_echo "$as_me: $ac_file is unchanged" >&6;} 26369 else 26370 rm -f "$ac_file" 26371 mv "$ac_tmp/config.h" "$ac_file" \ 26372 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26373 fi 26374 else 26375 $as_echo "/* $configure_input */" \ 26376 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 26377 || as_fn_error $? "could not create -" "$LINENO" 5 26378 fi 26379# Compute "$ac_file"'s index in $config_headers. 26380_am_arg="$ac_file" 26381_am_stamp_count=1 26382for _am_header in $config_headers :; do 26383 case $_am_header in 26384 $_am_arg | $_am_arg:* ) 26385 break ;; 26386 * ) 26387 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 26388 esac 26389done 26390echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 26391$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26392 X"$_am_arg" : 'X\(//\)[^/]' \| \ 26393 X"$_am_arg" : 'X\(//\)$' \| \ 26394 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 26395$as_echo X"$_am_arg" | 26396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26397 s//\1/ 26398 q 26399 } 26400 /^X\(\/\/\)[^/].*/{ 26401 s//\1/ 26402 q 26403 } 26404 /^X\(\/\/\)$/{ 26405 s//\1/ 26406 q 26407 } 26408 /^X\(\/\).*/{ 26409 s//\1/ 26410 q 26411 } 26412 s/.*/./; q'`/stamp-h$_am_stamp_count 26413 ;; 26414 26415 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 26416$as_echo "$as_me: executing $ac_file commands" >&6;} 26417 ;; 26418 esac 26419 26420 26421 case $ac_file$ac_mode in 26422 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 26423 # Autoconf 2.62 quotes --file arguments for eval, but not when files 26424 # are listed without --file. Let's play safe and only enable the eval 26425 # if we detect the quoting. 26426 case $CONFIG_FILES in 26427 *\'*) eval set x "$CONFIG_FILES" ;; 26428 *) set x $CONFIG_FILES ;; 26429 esac 26430 shift 26431 for mf 26432 do 26433 # Strip MF so we end up with the name of the file. 26434 mf=`echo "$mf" | sed -e 's/:.*$//'` 26435 # Check whether this is an Automake generated Makefile or not. 26436 # We used to match only the files named `Makefile.in', but 26437 # some people rename them; so instead we look at the file content. 26438 # Grep'ing the first line is not enough: some people post-process 26439 # each Makefile.in and add a new line on top of each file to say so. 26440 # Grep'ing the whole file is not good either: AIX grep has a line 26441 # limit of 2048, but all sed's we know have understand at least 4000. 26442 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 26443 dirpart=`$as_dirname -- "$mf" || 26444$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26445 X"$mf" : 'X\(//\)[^/]' \| \ 26446 X"$mf" : 'X\(//\)$' \| \ 26447 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 26448$as_echo X"$mf" | 26449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26450 s//\1/ 26451 q 26452 } 26453 /^X\(\/\/\)[^/].*/{ 26454 s//\1/ 26455 q 26456 } 26457 /^X\(\/\/\)$/{ 26458 s//\1/ 26459 q 26460 } 26461 /^X\(\/\).*/{ 26462 s//\1/ 26463 q 26464 } 26465 s/.*/./; q'` 26466 else 26467 continue 26468 fi 26469 # Extract the definition of DEPDIR, am__include, and am__quote 26470 # from the Makefile without running `make'. 26471 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 26472 test -z "$DEPDIR" && continue 26473 am__include=`sed -n 's/^am__include = //p' < "$mf"` 26474 test -z "am__include" && continue 26475 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 26476 # When using ansi2knr, U may be empty or an underscore; expand it 26477 U=`sed -n 's/^U = //p' < "$mf"` 26478 # Find all dependency output files, they are included files with 26479 # $(DEPDIR) in their names. We invoke sed twice because it is the 26480 # simplest approach to changing $(DEPDIR) to its actual value in the 26481 # expansion. 26482 for file in `sed -n " 26483 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 26484 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 26485 # Make sure the directory exists. 26486 test -f "$dirpart/$file" && continue 26487 fdir=`$as_dirname -- "$file" || 26488$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26489 X"$file" : 'X\(//\)[^/]' \| \ 26490 X"$file" : 'X\(//\)$' \| \ 26491 X"$file" : 'X\(/\)' \| . 2>/dev/null || 26492$as_echo X"$file" | 26493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26494 s//\1/ 26495 q 26496 } 26497 /^X\(\/\/\)[^/].*/{ 26498 s//\1/ 26499 q 26500 } 26501 /^X\(\/\/\)$/{ 26502 s//\1/ 26503 q 26504 } 26505 /^X\(\/\).*/{ 26506 s//\1/ 26507 q 26508 } 26509 s/.*/./; q'` 26510 as_dir=$dirpart/$fdir; as_fn_mkdir_p 26511 # echo "creating $dirpart/$file" 26512 echo '# dummy' > "$dirpart/$file" 26513 done 26514 done 26515} 26516 ;; 26517 "libtool":C) 26518 26519 # See if we are running on zsh, and set the options which allow our 26520 # commands through without removal of \ escapes. 26521 if test -n "${ZSH_VERSION+set}" ; then 26522 setopt NO_GLOB_SUBST 26523 fi 26524 26525 cfgfile="${ofile}T" 26526 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 26527 $RM "$cfgfile" 26528 26529 cat <<_LT_EOF >> "$cfgfile" 26530#! $SHELL 26531 26532# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 26533# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 26534# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 26535# NOTE: Changes made to this file will be lost: look at ltmain.sh. 26536# 26537# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 26538# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 26539# Inc. 26540# Written by Gordon Matzigkeit, 1996 26541# 26542# This file is part of GNU Libtool. 26543# 26544# GNU Libtool is free software; you can redistribute it and/or 26545# modify it under the terms of the GNU General Public License as 26546# published by the Free Software Foundation; either version 2 of 26547# the License, or (at your option) any later version. 26548# 26549# As a special exception to the GNU General Public License, 26550# if you distribute this file as part of a program or library that 26551# is built using GNU Libtool, you may include this file under the 26552# same distribution terms that you use for the rest of that program. 26553# 26554# GNU Libtool is distributed in the hope that it will be useful, 26555# but WITHOUT ANY WARRANTY; without even the implied warranty of 26556# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 26557# GNU General Public License for more details. 26558# 26559# You should have received a copy of the GNU General Public License 26560# along with GNU Libtool; see the file COPYING. If not, a copy 26561# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 26562# obtained by writing to the Free Software Foundation, Inc., 26563# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 26564 26565 26566# The names of the tagged configurations supported by this script. 26567available_tags="" 26568 26569# ### BEGIN LIBTOOL CONFIG 26570 26571# Assembler program. 26572AS=$lt_AS 26573 26574# DLL creation program. 26575DLLTOOL=$lt_DLLTOOL 26576 26577# Object dumper program. 26578OBJDUMP=$lt_OBJDUMP 26579 26580# Whether or not to build static libraries. 26581build_old_libs=$enable_static 26582 26583# Which release of libtool.m4 was used? 26584macro_version=$macro_version 26585macro_revision=$macro_revision 26586 26587# Whether or not to build shared libraries. 26588build_libtool_libs=$enable_shared 26589 26590# What type of objects to build. 26591pic_mode=$pic_mode 26592 26593# Whether or not to optimize for fast installation. 26594fast_install=$enable_fast_install 26595 26596# Shell to use when invoking shell scripts. 26597SHELL=$lt_SHELL 26598 26599# An echo program that protects backslashes. 26600ECHO=$lt_ECHO 26601 26602# The host system. 26603host_alias=$host_alias 26604host=$host 26605host_os=$host_os 26606 26607# The build system. 26608build_alias=$build_alias 26609build=$build 26610build_os=$build_os 26611 26612# A sed program that does not truncate output. 26613SED=$lt_SED 26614 26615# Sed that helps us avoid accidentally triggering echo(1) options like -n. 26616Xsed="\$SED -e 1s/^X//" 26617 26618# A grep program that handles long lines. 26619GREP=$lt_GREP 26620 26621# An ERE matcher. 26622EGREP=$lt_EGREP 26623 26624# A literal string matcher. 26625FGREP=$lt_FGREP 26626 26627# A BSD- or MS-compatible name lister. 26628NM=$lt_NM 26629 26630# Whether we need soft or hard links. 26631LN_S=$lt_LN_S 26632 26633# What is the maximum length of a command? 26634max_cmd_len=$max_cmd_len 26635 26636# Object file suffix (normally "o"). 26637objext=$ac_objext 26638 26639# Executable file suffix (normally ""). 26640exeext=$exeext 26641 26642# whether the shell understands "unset". 26643lt_unset=$lt_unset 26644 26645# turn spaces into newlines. 26646SP2NL=$lt_lt_SP2NL 26647 26648# turn newlines into spaces. 26649NL2SP=$lt_lt_NL2SP 26650 26651# convert \$build file names to \$host format. 26652to_host_file_cmd=$lt_cv_to_host_file_cmd 26653 26654# convert \$build files to toolchain format. 26655to_tool_file_cmd=$lt_cv_to_tool_file_cmd 26656 26657# Method to check whether dependent libraries are shared objects. 26658deplibs_check_method=$lt_deplibs_check_method 26659 26660# Command to use when deplibs_check_method = "file_magic". 26661file_magic_cmd=$lt_file_magic_cmd 26662 26663# How to find potential files when deplibs_check_method = "file_magic". 26664file_magic_glob=$lt_file_magic_glob 26665 26666# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 26667want_nocaseglob=$lt_want_nocaseglob 26668 26669# Command to associate shared and link libraries. 26670sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 26671 26672# The archiver. 26673AR=$lt_AR 26674 26675# Flags to create an archive. 26676AR_FLAGS=$lt_AR_FLAGS 26677 26678# How to feed a file listing to the archiver. 26679archiver_list_spec=$lt_archiver_list_spec 26680 26681# A symbol stripping program. 26682STRIP=$lt_STRIP 26683 26684# Commands used to install an old-style archive. 26685RANLIB=$lt_RANLIB 26686old_postinstall_cmds=$lt_old_postinstall_cmds 26687old_postuninstall_cmds=$lt_old_postuninstall_cmds 26688 26689# Whether to use a lock for old archive extraction. 26690lock_old_archive_extraction=$lock_old_archive_extraction 26691 26692# A C compiler. 26693LTCC=$lt_CC 26694 26695# LTCC compiler flags. 26696LTCFLAGS=$lt_CFLAGS 26697 26698# Take the output of nm and produce a listing of raw symbols and C names. 26699global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 26700 26701# Transform the output of nm in a proper C declaration. 26702global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 26703 26704# Transform the output of nm in a C name address pair. 26705global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 26706 26707# Transform the output of nm in a C name address pair when lib prefix is needed. 26708global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 26709 26710# Specify filename containing input files for \$NM. 26711nm_file_list_spec=$lt_nm_file_list_spec 26712 26713# The root where to search for dependent libraries,and in which our libraries should be installed. 26714lt_sysroot=$lt_sysroot 26715 26716# The name of the directory that contains temporary libtool files. 26717objdir=$objdir 26718 26719# Used to examine libraries when file_magic_cmd begins with "file". 26720MAGIC_CMD=$MAGIC_CMD 26721 26722# Must we lock files when doing compilation? 26723need_locks=$lt_need_locks 26724 26725# Manifest tool. 26726MANIFEST_TOOL=$lt_MANIFEST_TOOL 26727 26728# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 26729DSYMUTIL=$lt_DSYMUTIL 26730 26731# Tool to change global to local symbols on Mac OS X. 26732NMEDIT=$lt_NMEDIT 26733 26734# Tool to manipulate fat objects and archives on Mac OS X. 26735LIPO=$lt_LIPO 26736 26737# ldd/readelf like tool for Mach-O binaries on Mac OS X. 26738OTOOL=$lt_OTOOL 26739 26740# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 26741OTOOL64=$lt_OTOOL64 26742 26743# Old archive suffix (normally "a"). 26744libext=$libext 26745 26746# Shared library suffix (normally ".so"). 26747shrext_cmds=$lt_shrext_cmds 26748 26749# The commands to extract the exported symbol list from a shared archive. 26750extract_expsyms_cmds=$lt_extract_expsyms_cmds 26751 26752# Variables whose values should be saved in libtool wrapper scripts and 26753# restored at link time. 26754variables_saved_for_relink=$lt_variables_saved_for_relink 26755 26756# Do we need the "lib" prefix for modules? 26757need_lib_prefix=$need_lib_prefix 26758 26759# Do we need a version for libraries? 26760need_version=$need_version 26761 26762# Library versioning type. 26763version_type=$version_type 26764 26765# Shared library runtime path variable. 26766runpath_var=$runpath_var 26767 26768# Shared library path variable. 26769shlibpath_var=$shlibpath_var 26770 26771# Is shlibpath searched before the hard-coded library search path? 26772shlibpath_overrides_runpath=$shlibpath_overrides_runpath 26773 26774# Format of library name prefix. 26775libname_spec=$lt_libname_spec 26776 26777# List of archive names. First name is the real one, the rest are links. 26778# The last name is the one that the linker finds with -lNAME 26779library_names_spec=$lt_library_names_spec 26780 26781# The coded name of the library, if different from the real name. 26782soname_spec=$lt_soname_spec 26783 26784# Permission mode override for installation of shared libraries. 26785install_override_mode=$lt_install_override_mode 26786 26787# Command to use after installation of a shared archive. 26788postinstall_cmds=$lt_postinstall_cmds 26789 26790# Command to use after uninstallation of a shared archive. 26791postuninstall_cmds=$lt_postuninstall_cmds 26792 26793# Commands used to finish a libtool library installation in a directory. 26794finish_cmds=$lt_finish_cmds 26795 26796# As "finish_cmds", except a single script fragment to be evaled but 26797# not shown. 26798finish_eval=$lt_finish_eval 26799 26800# Whether we should hardcode library paths into libraries. 26801hardcode_into_libs=$hardcode_into_libs 26802 26803# Compile-time system search path for libraries. 26804sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 26805 26806# Run-time system search path for libraries. 26807sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 26808 26809# Whether dlopen is supported. 26810dlopen_support=$enable_dlopen 26811 26812# Whether dlopen of programs is supported. 26813dlopen_self=$enable_dlopen_self 26814 26815# Whether dlopen of statically linked programs is supported. 26816dlopen_self_static=$enable_dlopen_self_static 26817 26818# Commands to strip libraries. 26819old_striplib=$lt_old_striplib 26820striplib=$lt_striplib 26821 26822 26823# The linker used to build libraries. 26824LD=$lt_LD 26825 26826# How to create reloadable object files. 26827reload_flag=$lt_reload_flag 26828reload_cmds=$lt_reload_cmds 26829 26830# Commands used to build an old-style archive. 26831old_archive_cmds=$lt_old_archive_cmds 26832 26833# A language specific compiler. 26834CC=$lt_compiler 26835 26836# Is the compiler the GNU compiler? 26837with_gcc=$GCC 26838 26839# Compiler flag to turn off builtin functions. 26840no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 26841 26842# Additional compiler flags for building library objects. 26843pic_flag=$lt_lt_prog_compiler_pic 26844 26845# How to pass a linker flag through the compiler. 26846wl=$lt_lt_prog_compiler_wl 26847 26848# Compiler flag to prevent dynamic linking. 26849link_static_flag=$lt_lt_prog_compiler_static 26850 26851# Does compiler simultaneously support -c and -o options? 26852compiler_c_o=$lt_lt_cv_prog_compiler_c_o 26853 26854# Whether or not to add -lc for building shared libraries. 26855build_libtool_need_lc=$archive_cmds_need_lc 26856 26857# Whether or not to disallow shared libs when runtime libs are static. 26858allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 26859 26860# Compiler flag to allow reflexive dlopens. 26861export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 26862 26863# Compiler flag to generate shared objects directly from archives. 26864whole_archive_flag_spec=$lt_whole_archive_flag_spec 26865 26866# Whether the compiler copes with passing no objects directly. 26867compiler_needs_object=$lt_compiler_needs_object 26868 26869# Create an old-style archive from a shared archive. 26870old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 26871 26872# Create a temporary old-style archive to link instead of a shared archive. 26873old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 26874 26875# Commands used to build a shared archive. 26876archive_cmds=$lt_archive_cmds 26877archive_expsym_cmds=$lt_archive_expsym_cmds 26878 26879# Commands used to build a loadable module if different from building 26880# a shared archive. 26881module_cmds=$lt_module_cmds 26882module_expsym_cmds=$lt_module_expsym_cmds 26883 26884# Whether we are building with GNU ld or not. 26885with_gnu_ld=$lt_with_gnu_ld 26886 26887# Flag that allows shared libraries with undefined symbols to be built. 26888allow_undefined_flag=$lt_allow_undefined_flag 26889 26890# Flag that enforces no undefined symbols. 26891no_undefined_flag=$lt_no_undefined_flag 26892 26893# Flag to hardcode \$libdir into a binary during linking. 26894# This must work even if \$libdir does not exist 26895hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 26896 26897# If ld is used when linking, flag to hardcode \$libdir into a binary 26898# during linking. This must work even if \$libdir does not exist. 26899hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 26900 26901# Whether we need a single "-rpath" flag with a separated argument. 26902hardcode_libdir_separator=$lt_hardcode_libdir_separator 26903 26904# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 26905# DIR into the resulting binary. 26906hardcode_direct=$hardcode_direct 26907 26908# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 26909# DIR into the resulting binary and the resulting library dependency is 26910# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 26911# library is relocated. 26912hardcode_direct_absolute=$hardcode_direct_absolute 26913 26914# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 26915# into the resulting binary. 26916hardcode_minus_L=$hardcode_minus_L 26917 26918# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 26919# into the resulting binary. 26920hardcode_shlibpath_var=$hardcode_shlibpath_var 26921 26922# Set to "yes" if building a shared library automatically hardcodes DIR 26923# into the library and all subsequent libraries and executables linked 26924# against it. 26925hardcode_automatic=$hardcode_automatic 26926 26927# Set to yes if linker adds runtime paths of dependent libraries 26928# to runtime path list. 26929inherit_rpath=$inherit_rpath 26930 26931# Whether libtool must link a program against all its dependency libraries. 26932link_all_deplibs=$link_all_deplibs 26933 26934# Set to "yes" if exported symbols are required. 26935always_export_symbols=$always_export_symbols 26936 26937# The commands to list exported symbols. 26938export_symbols_cmds=$lt_export_symbols_cmds 26939 26940# Symbols that should not be listed in the preloaded symbols. 26941exclude_expsyms=$lt_exclude_expsyms 26942 26943# Symbols that must always be exported. 26944include_expsyms=$lt_include_expsyms 26945 26946# Commands necessary for linking programs (against libraries) with templates. 26947prelink_cmds=$lt_prelink_cmds 26948 26949# Commands necessary for finishing linking programs. 26950postlink_cmds=$lt_postlink_cmds 26951 26952# Specify filename containing input files. 26953file_list_spec=$lt_file_list_spec 26954 26955# How to hardcode a shared library path into an executable. 26956hardcode_action=$hardcode_action 26957 26958# ### END LIBTOOL CONFIG 26959 26960_LT_EOF 26961 26962 case $host_os in 26963 aix3*) 26964 cat <<\_LT_EOF >> "$cfgfile" 26965# AIX sometimes has problems with the GCC collect2 program. For some 26966# reason, if we set the COLLECT_NAMES environment variable, the problems 26967# vanish in a puff of smoke. 26968if test "X${COLLECT_NAMES+set}" != Xset; then 26969 COLLECT_NAMES= 26970 export COLLECT_NAMES 26971fi 26972_LT_EOF 26973 ;; 26974 esac 26975 26976 26977ltmain="$ac_aux_dir/ltmain.sh" 26978 26979 26980 # We use sed instead of cat because bash on DJGPP gets confused if 26981 # if finds mixed CR/LF and LF-only lines. Since sed operates in 26982 # text mode, it properly converts lines to CR/LF. This bash problem 26983 # is reportedly fixed, but why not run on old versions too? 26984 sed '$q' "$ltmain" >> "$cfgfile" \ 26985 || (rm -f "$cfgfile"; exit 1) 26986 26987 if test x"$xsi_shell" = xyes; then 26988 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 26989func_dirname ()\ 26990{\ 26991\ case ${1} in\ 26992\ */*) func_dirname_result="${1%/*}${2}" ;;\ 26993\ * ) func_dirname_result="${3}" ;;\ 26994\ esac\ 26995} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 26996 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26997 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26998test 0 -eq $? || _lt_function_replace_fail=: 26999 27000 27001 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 27002func_basename ()\ 27003{\ 27004\ func_basename_result="${1##*/}"\ 27005} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 27006 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27007 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27008test 0 -eq $? || _lt_function_replace_fail=: 27009 27010 27011 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 27012func_dirname_and_basename ()\ 27013{\ 27014\ case ${1} in\ 27015\ */*) func_dirname_result="${1%/*}${2}" ;;\ 27016\ * ) func_dirname_result="${3}" ;;\ 27017\ esac\ 27018\ func_basename_result="${1##*/}"\ 27019} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 27020 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27021 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27022test 0 -eq $? || _lt_function_replace_fail=: 27023 27024 27025 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 27026func_stripname ()\ 27027{\ 27028\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 27029\ # positional parameters, so assign one to ordinary parameter first.\ 27030\ func_stripname_result=${3}\ 27031\ func_stripname_result=${func_stripname_result#"${1}"}\ 27032\ func_stripname_result=${func_stripname_result%"${2}"}\ 27033} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 27034 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27035 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27036test 0 -eq $? || _lt_function_replace_fail=: 27037 27038 27039 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 27040func_split_long_opt ()\ 27041{\ 27042\ func_split_long_opt_name=${1%%=*}\ 27043\ func_split_long_opt_arg=${1#*=}\ 27044} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 27045 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27046 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27047test 0 -eq $? || _lt_function_replace_fail=: 27048 27049 27050 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 27051func_split_short_opt ()\ 27052{\ 27053\ func_split_short_opt_arg=${1#??}\ 27054\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 27055} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 27056 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27057 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27058test 0 -eq $? || _lt_function_replace_fail=: 27059 27060 27061 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 27062func_lo2o ()\ 27063{\ 27064\ case ${1} in\ 27065\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 27066\ *) func_lo2o_result=${1} ;;\ 27067\ esac\ 27068} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 27069 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27070 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27071test 0 -eq $? || _lt_function_replace_fail=: 27072 27073 27074 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 27075func_xform ()\ 27076{\ 27077 func_xform_result=${1%.*}.lo\ 27078} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 27079 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27080 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27081test 0 -eq $? || _lt_function_replace_fail=: 27082 27083 27084 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 27085func_arith ()\ 27086{\ 27087 func_arith_result=$(( $* ))\ 27088} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 27089 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27090 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27091test 0 -eq $? || _lt_function_replace_fail=: 27092 27093 27094 sed -e '/^func_len ()$/,/^} # func_len /c\ 27095func_len ()\ 27096{\ 27097 func_len_result=${#1}\ 27098} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 27099 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27100 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27101test 0 -eq $? || _lt_function_replace_fail=: 27102 27103fi 27104 27105if test x"$lt_shell_append" = xyes; then 27106 sed -e '/^func_append ()$/,/^} # func_append /c\ 27107func_append ()\ 27108{\ 27109 eval "${1}+=\\${2}"\ 27110} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 27111 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27112 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27113test 0 -eq $? || _lt_function_replace_fail=: 27114 27115 27116 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 27117func_append_quoted ()\ 27118{\ 27119\ func_quote_for_eval "${2}"\ 27120\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 27121} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 27122 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27123 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27124test 0 -eq $? || _lt_function_replace_fail=: 27125 27126 27127 # Save a `func_append' function call where possible by direct use of '+=' 27128 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 27129 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27130 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27131 test 0 -eq $? || _lt_function_replace_fail=: 27132else 27133 # Save a `func_append' function call even when '+=' is not available 27134 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 27135 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27136 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27137 test 0 -eq $? || _lt_function_replace_fail=: 27138fi 27139 27140if test x"$_lt_function_replace_fail" = x":"; then 27141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 27142$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 27143fi 27144 27145 27146 mv -f "$cfgfile" "$ofile" || 27147 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 27148 chmod +x "$ofile" 27149 27150 ;; 27151 "sdksyms":C) touch hw/xfree86/loader/sdksyms.dep ;; 27152 27153 esac 27154done # for ac_tag 27155 27156 27157as_fn_exit 0 27158_ACEOF 27159ac_clean_files=$ac_clean_files_save 27160 27161test $ac_write_fail = 0 || 27162 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 27163 27164 27165# configure is writing to config.log, and then calls config.status. 27166# config.status does its own redirection, appending to config.log. 27167# Unfortunately, on DOS this fails, as config.log is still kept open 27168# by configure, so config.status won't be able to write to it; its 27169# output is simply discarded. So we exec the FD to /dev/null, 27170# effectively closing config.log, so it can be properly (re)opened and 27171# appended to by config.status. When coming back to configure, we 27172# need to make the FD available again. 27173if test "$no_create" != yes; then 27174 ac_cs_success=: 27175 ac_config_status_args= 27176 test "$silent" = yes && 27177 ac_config_status_args="$ac_config_status_args --quiet" 27178 exec 5>/dev/null 27179 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 27180 exec 5>>config.log 27181 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 27182 # would make configure fail if this is the last instruction. 27183 $ac_cs_success || as_fn_exit 1 27184fi 27185if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 27186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 27187$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 27188fi 27189 27190