configure revision d44ca368
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xorg-server 1.20.12. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://gitlab.freedesktop.org/xorg/xserver/issues 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568as_awk_strverscmp=' 569 # Use only awk features that work with 7th edition Unix awk (1978). 570 # My, what an old awk you have, Mr. Solaris! 571 END { 572 while (length(v1) && length(v2)) { 573 # Set d1 to be the next thing to compare from v1, and likewise for d2. 574 # Normally this is a single character, but if v1 and v2 contain digits, 575 # compare them as integers and fractions as strverscmp does. 576 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 577 # Split v1 and v2 into their leading digit string components d1 and d2, 578 # and advance v1 and v2 past the leading digit strings. 579 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 580 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 581 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 582 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 583 if (d1 ~ /^0/) { 584 if (d2 ~ /^0/) { 585 # Compare two fractions. 586 while (d1 ~ /^0/ && d2 ~ /^0/) { 587 d1 = substr(d1, 2); len1-- 588 d2 = substr(d2, 2); len2-- 589 } 590 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 591 # The two components differ in length, and the common prefix 592 # contains only leading zeros. Consider the longer to be less. 593 d1 = -len1 594 d2 = -len2 595 } else { 596 # Otherwise, compare as strings. 597 d1 = "x" d1 598 d2 = "x" d2 599 } 600 } else { 601 # A fraction is less than an integer. 602 exit 1 603 } 604 } else { 605 if (d2 ~ /^0/) { 606 # An integer is greater than a fraction. 607 exit 2 608 } else { 609 # Compare two integers. 610 d1 += 0 611 d2 += 0 612 } 613 } 614 } else { 615 # The normal case, without worrying about digits. 616 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 617 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 618 } 619 if (d1 < d2) exit 1 620 if (d1 > d2) exit 2 621 } 622 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 623 # which mishandles some comparisons of empty strings to integers. 624 if (length(v2)) exit 1 625 if (length(v1)) exit 2 626 } 627' 628SHELL=${CONFIG_SHELL-/bin/sh} 629 630 631test -n "$DJDIR" || exec 7<&0 </dev/null 632exec 6>&1 633 634# Name of the host. 635# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 636# so uname gets run too. 637ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 638 639# 640# Initializations. 641# 642ac_default_prefix=/usr/local 643ac_clean_files= 644ac_config_libobj_dir=. 645LIBOBJS= 646cross_compiling=no 647subdirs= 648MFLAGS= 649MAKEFLAGS= 650 651# Identity of this package. 652PACKAGE_NAME='xorg-server' 653PACKAGE_TARNAME='xorg-server' 654PACKAGE_VERSION='1.20.12' 655PACKAGE_STRING='xorg-server 1.20.12' 656PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/xserver/issues' 657PACKAGE_URL='' 658 659ac_unique_file="Makefile.am" 660# Factoring default headers for most tests. 661ac_includes_default="\ 662#include <stdio.h> 663#ifdef HAVE_SYS_TYPES_H 664# include <sys/types.h> 665#endif 666#ifdef HAVE_SYS_STAT_H 667# include <sys/stat.h> 668#endif 669#ifdef STDC_HEADERS 670# include <stdlib.h> 671# include <stddef.h> 672#else 673# ifdef HAVE_STDLIB_H 674# include <stdlib.h> 675# endif 676#endif 677#ifdef HAVE_STRING_H 678# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 679# include <memory.h> 680# endif 681# include <string.h> 682#endif 683#ifdef HAVE_STRINGS_H 684# include <strings.h> 685#endif 686#ifdef HAVE_INTTYPES_H 687# include <inttypes.h> 688#endif 689#ifdef HAVE_STDINT_H 690# include <stdint.h> 691#endif 692#ifdef HAVE_UNISTD_H 693# include <unistd.h> 694#endif" 695 696ac_config_libobj_dir=os 697ac_subst_vars='am__EXEEXT_FALSE 698am__EXEEXT_TRUE 699LTLIBOBJS 700DIX_CFLAGS 701BUILD_TIME 702BUILD_DATE 703RELEASE_DATE 704SYSCONFDIR 705PROJECTROOT 706XWAYLAND_EGLSTREAM_FALSE 707XWAYLAND_EGLSTREAM_TRUE 708WAYLAND_PROTOCOLS_DATADIR 709SCANNER_ARG 710WAYLAND_SCANNER_LIBS 711WAYLAND_SCANNER_CFLAGS 712WAYLAND_SCANNER 713XWAYLAND_SYS_LIBS 714XWAYLAND_LIBS 715WAYLAND_EGLSTREAM_DATADIR 716WAYLAND_EGLSTREAM_LIBS 717WAYLAND_EGLSTREAM_CFLAGS 718XWAYLAND_FALSE 719XWAYLAND_TRUE 720XWAYLANDMODULES_LIBS 721XWAYLANDMODULES_CFLAGS 722XEPHYR_FALSE 723XEPHYR_TRUE 724KDRIVE_LIBS 725KDRIVE_LOCAL_LIBS 726KDRIVE_MAIN_LIB 727KDRIVE_PURE_LIBS 728KDRIVE_CFLAGS 729KDRIVE_PURE_INCS 730KDRIVE_INCS 731XEPHYR_INCS 732XEPHYR_LIBS 733XEPHYR_CFLAGS 734KDRIVE_FALSE 735KDRIVE_TRUE 736DMX_BUILD_USB_FALSE 737DMX_BUILD_USB_TRUE 738X11EXAMPLES_DEP_LIBS 739X11EXAMPLES_DEP_CFLAGS 740XRESEXAMPLES_DEP_LIBS 741XRESEXAMPLES_DEP_CFLAGS 742XTSTEXAMPLES_DEP_LIBS 743XTSTEXAMPLES_DEP_CFLAGS 744DMXXIEXAMPLES_DEP_LIBS 745DMXXIEXAMPLES_DEP_CFLAGS 746DMXXMUEXAMPLES_DEP_LIBS 747DMXXMUEXAMPLES_DEP_CFLAGS 748DMXEXAMPLES_DEP_LIBS 749DMXEXAMPLES_DEP_CFLAGS 750XDMX_SYS_LIBS 751XDMX_LIBS 752XDMX_CFLAGS 753DMX_FALSE 754DMX_TRUE 755XDMXCONFIG_DEP_LIBS 756XDMXCONFIG_DEP_CFLAGS 757DMXMODULES_LIBS 758DMXMODULES_CFLAGS 759STANDALONE_XPBPROXY_FALSE 760STANDALONE_XPBPROXY_TRUE 761XQUARTZ_SPARKLE_FALSE 762XQUARTZ_SPARKLE_TRUE 763XQUARTZ_FALSE 764XQUARTZ_TRUE 765am__fastdepOBJC_FALSE 766am__fastdepOBJC_TRUE 767OBJCDEPMODE 768OBJCFLAGS 769OBJCLINK 770OBJCCLD 771OBJC 772PSEUDORAMIX_FALSE 773PSEUDORAMIX_TRUE 774XPBPROXY_LIBS 775XPBPROXY_CFLAGS 776XQUARTZ_LIBS 777XWIN_WINDOWS_DRI_FALSE 778XWIN_WINDOWS_DRI_TRUE 779XWIN_GLX_WINDOWS_FALSE 780XWIN_GLX_WINDOWS_TRUE 781XWIN_MULTIWINDOWEXTWM_FALSE 782XWIN_MULTIWINDOWEXTWM_TRUE 783XWIN_FALSE 784XWIN_TRUE 785KHRONOS_SPEC_DIR 786KHRONOS_OPENGL_REGISTRY_LIBS 787KHRONOS_OPENGL_REGISTRY_CFLAGS 788PYTHON3 789XWIN_SYS_LIBS 790XWIN_SERVER_NAME 791XWIN_LIBS 792WINDOWSDRI_LIBS 793WINDOWSDRI_CFLAGS 794WINDOWSWM_LIBS 795WINDOWSWM_CFLAGS 796XWINMODULES_LIBS 797XWINMODULES_CFLAGS 798WINDRES 799GLAMOR_EGL_FALSE 800GLAMOR_EGL_TRUE 801GBM_LIBS 802GBM_CFLAGS 803GLAMOR_LIBS 804GLAMOR_CFLAGS 805GLAMOR_FALSE 806GLAMOR_TRUE 807XORG_DRIVER_MODESETTING_FALSE 808XORG_DRIVER_MODESETTING_TRUE 809XORG_BUS_PLATFORM_FALSE 810XORG_BUS_PLATFORM_TRUE 811DGA_FALSE 812DGA_TRUE 813SOLARIS_VT_FALSE 814SOLARIS_VT_TRUE 815LNXAPM_FALSE 816LNXAPM_TRUE 817LNXACPI_FALSE 818LNXACPI_TRUE 819XORG_BUS_SPARC_FALSE 820XORG_BUS_SPARC_TRUE 821XORG_BUS_BSDPCI_FALSE 822XORG_BUS_BSDPCI_TRUE 823XORG_BUS_PCI_FALSE 824XORG_BUS_PCI_TRUE 825XORG_FALSE 826XORG_TRUE 827abi_extension 828abi_xinput 829abi_videodrv 830abi_ansic 831logdir 832sysconfigdir 833extdir 834sdkdir 835driverdir 836moduledir 837DEFAULT_XDG_DATA_HOME_LOGDIR 838DEFAULT_XDG_DATA_HOME 839DEFAULT_LOGPREFIX 840DEFAULT_LOGDIR 841DEFAULT_LIBRARY_PATH 842DEFAULT_MODULE_PATH 843XCONFIGDIR 844XF86CONFIGFILE 845XCONFIGFILE 846XF86CONFIGDIR 847XORG_CFLAGS 848XORG_OS_SUBDIR 849XORG_INCS 850XORG_SYS_LIBS 851XORG_LIBS 852XORG_MODULES_LIBS 853XORG_MODULES_CFLAGS 854DGA_LIBS 855DGA_CFLAGS 856SOLARIS_INOUT_ARCH 857PCI_TXT_IDS_PATH 858PCIACCESS_LIBS 859PCIACCESS_CFLAGS 860symbol_visibility 861XNEST_SYS_LIBS 862XNEST_LIBS 863XNEST_FALSE 864XNEST_TRUE 865XNESTMODULES_LIBS 866XNESTMODULES_CFLAGS 867XVFB_SYS_LIBS 868XVFB_LIBS 869XVFB_FALSE 870XVFB_TRUE 871NO_UNDEFINED_FALSE 872NO_UNDEFINED_TRUE 873CYGWIN_FALSE 874CYGWIN_TRUE 875XORG_DRIVER_LIBS 876LD_NO_UNDEFINED_FLAG 877LD_EXPORT_SYMBOLS_FLAG 878UTILS_SYS_LIBS 879XSERVER_SYS_LIBS 880XSERVER_LIBS 881HAVE_LIBUNWIND_FALSE 882HAVE_LIBUNWIND_TRUE 883LIBUNWIND_LIBS 884LIBUNWIND_CFLAGS 885XSERVERLIBS_LIBS 886XSERVERLIBS_CFLAGS 887XSERVERCFLAGS_LIBS 888XSERVERCFLAGS_CFLAGS 889SHA1_CFLAGS 890SHA1_LIBS 891OPENSSL_LIBS 892OPENSSL_CFLAGS 893LIBSHA1_LIBS 894LIBSHA1_CFLAGS 895MAIN_LIB 896OS_LIB 897DIX_LIB 898DEBUG_FALSE 899DEBUG_TRUE 900VENDOR_NAME_SHORT 901DRI_DRIVER_PATH 902BASE_FONT_PATH 903SERVER_MISC_CONFIG_PATH 904COMPILEDDEFAULTFONTPATH 905XF86VIDMODE_FALSE 906XF86VIDMODE_TRUE 907XDMAUTH_FALSE 908XDMAUTH_TRUE 909XDMCP_FALSE 910XDMCP_TRUE 911XDMCP_LIBS 912XDMCP_CFLAGS 913XKB_DFLT_OPTIONS 914XKB_DFLT_VARIANT 915XKB_DFLT_LAYOUT 916XKB_DFLT_MODEL 917XKB_DFLT_RULES 918XKB_COMPILED_DIR 919XKM_OUTPUT_DIR 920XKB_BIN_DIRECTORY 921XKB_BASE_DIRECTORY 922INT10MODULE_FALSE 923INT10MODULE_TRUE 924VBE_FALSE 925VBE_TRUE 926VGAHW_FALSE 927VGAHW_TRUE 928XF86UTILS_FALSE 929XF86UTILS_TRUE 930DPMSExtension_FALSE 931DPMSExtension_TRUE 932XF86BIGFONT_FALSE 933XF86BIGFONT_TRUE 934DBE_FALSE 935DBE_TRUE 936XCSECURITY_FALSE 937XCSECURITY_TRUE 938SELINUX_LIBS 939SELINUX_CFLAGS 940XSELINUX_FALSE 941XSELINUX_TRUE 942XACE_FALSE 943XACE_TRUE 944XINERAMA_FALSE 945XINERAMA_TRUE 946PRESENT_FALSE 947PRESENT_TRUE 948GLX_SYS_LIBS 949GLX_DEFINES 950HASHTABLE_FALSE 951HASHTABLE_TRUE 952GLX_FALSE 953GLX_TRUE 954GL_LIBS 955GL_CFLAGS 956XLIB_LIBS 957XLIB_CFLAGS 958LIBDRM_LIBS 959LIBDRM_CFLAGS 960DRI3_FALSE 961DRI3_TRUE 962XSHMFENCE_FALSE 963XSHMFENCE_TRUE 964XSHMFENCE_LIBS 965XSHMFENCE_CFLAGS 966BUSFAULT_FALSE 967BUSFAULT_TRUE 968DRI3PROTO_LIBS 969DRI3PROTO_CFLAGS 970DRI2_FALSE 971DRI2_TRUE 972DRI2PROTO_LIBS 973DRI2PROTO_CFLAGS 974DRI_FALSE 975DRI_TRUE 976CLIENTIDS_FALSE 977CLIENTIDS_TRUE 978RES_FALSE 979RES_TRUE 980SCREENSAVER_FALSE 981SCREENSAVER_TRUE 982RECORD_FALSE 983RECORD_TRUE 984MITSHM_FALSE 985MITSHM_TRUE 986COMPOSITE_FALSE 987COMPOSITE_TRUE 988XVMC_FALSE 989XVMC_TRUE 990XV_FALSE 991XV_TRUE 992CONFIG_WSCONS_FALSE 993CONFIG_WSCONS_TRUE 994NEED_DBUS_FALSE 995NEED_DBUS_TRUE 996SUID_WRAPPER_FALSE 997SUID_WRAPPER_TRUE 998SUID_WRAPPER_DIR 999SYSTEMD_LOGIND_FALSE 1000SYSTEMD_LOGIND_TRUE 1001CONFIG_HAL_FALSE 1002CONFIG_HAL_TRUE 1003HAL_LIBS 1004HAL_CFLAGS 1005HAVE_DBUS_FALSE 1006HAVE_DBUS_TRUE 1007DBUS_LIBS 1008DBUS_CFLAGS 1009CONFIG_UDEV_KMS_FALSE 1010CONFIG_UDEV_KMS_TRUE 1011CONFIG_UDEV_FALSE 1012CONFIG_UDEV_TRUE 1013UDEV_LIBS 1014UDEV_CFLAGS 1015HAVE_SYSTEMD_DAEMON_FALSE 1016HAVE_SYSTEMD_DAEMON_TRUE 1017SYSTEMD_DAEMON_LIBS 1018SYSTEMD_DAEMON_CFLAGS 1019PTHREAD_CFLAGS 1020PTHREAD_LIBS 1021PTHREAD_CC 1022ax_pthread_config 1023SDK_REQUIRED_MODULES 1024PIXMAN_LIBS 1025PIXMAN_CFLAGS 1026INT10_STUB_FALSE 1027INT10_STUB_TRUE 1028INT10_X86EMU_FALSE 1029INT10_X86EMU_TRUE 1030INT10_VM86_FALSE 1031INT10_VM86_TRUE 1032SECURE_RPC_FALSE 1033SECURE_RPC_TRUE 1034INSTALL_SETUID_FALSE 1035INSTALL_SETUID_TRUE 1036XQUARTZ_SPARKLE_FEED_URL 1037XQUARTZ_SPARKLE 1038BUNDLE_VERSION_STRING 1039BUNDLE_VERSION 1040BUNDLE_ID_PREFIX 1041APPLE_APPLICATION_NAME 1042APPLE_APPLICATIONS_DIR 1043FONT100DPIDIR 1044FONT75DPIDIR 1045FONTTYPE1DIR 1046FONTTTFDIR 1047FONTOTFDIR 1048FONTMISCDIR 1049FONTROOTDIR 1050SPARC64_VIDEO_FALSE 1051SPARC64_VIDEO_TRUE 1052PPC_VIDEO_FALSE 1053PPC_VIDEO_TRUE 1054I386_VIDEO_FALSE 1055I386_VIDEO_TRUE 1056ARM_VIDEO_FALSE 1057ARM_VIDEO_TRUE 1058ALPHA_VIDEO_FALSE 1059ALPHA_VIDEO_TRUE 1060GLX_ARCH_DEFINES 1061BSD_KQUEUE_APM_FALSE 1062BSD_KQUEUE_APM_TRUE 1063BSD_APM_FALSE 1064BSD_APM_TRUE 1065FREEBSD_KLDLOAD_FALSE 1066FREEBSD_KLDLOAD_TRUE 1067FBDEVHW_FALSE 1068FBDEVHW_TRUE 1069AGP_FALSE 1070AGP_TRUE 1071POLL_FALSE 1072POLL_TRUE 1073LIBOBJS 1074DLOPEN_LIBS 1075SPECIAL_DTRACE_OBJECTS_FALSE 1076SPECIAL_DTRACE_OBJECTS_TRUE 1077XSERVER_DTRACE_FALSE 1078XSERVER_DTRACE_TRUE 1079DTRACE 1080TRADITIONALCPPFLAGS 1081RAWCPPFLAGS 1082RAWCPP 1083YFLAGS 1084YACC 1085LEXLIB 1086LEX_OUTPUT_ROOT 1087LEX 1088LT_SYS_LIBRARY_PATH 1089OTOOL64 1090OTOOL 1091LIPO 1092NMEDIT 1093DSYMUTIL 1094MANIFEST_TOOL 1095RANLIB 1096ac_ct_AR 1097AR 1098NM 1099ac_ct_DUMPBIN 1100DUMPBIN 1101LD 1102FGREP 1103LIBTOOL 1104OBJDUMP 1105DLLTOOL 1106AS 1107LN_S 1108am__fastdepCCAS_FALSE 1109am__fastdepCCAS_TRUE 1110CCASDEPMODE 1111CCASFLAGS 1112CCAS 1113HAVE_LD_WRAP_FALSE 1114HAVE_LD_WRAP_TRUE 1115ENABLE_UNIT_TESTS_FALSE 1116ENABLE_UNIT_TESTS_TRUE 1117XORG_MALLOC_DEBUG_ENV 1118HAVE_XSLTPROC_FALSE 1119HAVE_XSLTPROC_TRUE 1120XSLTPROC 1121HAVE_FOP_FALSE 1122HAVE_FOP_TRUE 1123FOP 1124HAVE_XMLTO_FALSE 1125HAVE_XMLTO_TRUE 1126HAVE_XMLTO_TEXT_FALSE 1127HAVE_XMLTO_TEXT_TRUE 1128XMLTO 1129ENABLE_DEVEL_DOCS_FALSE 1130ENABLE_DEVEL_DOCS_TRUE 1131ENABLE_DOCS_FALSE 1132ENABLE_DOCS_TRUE 1133HAVE_STYLESHEETS_FALSE 1134HAVE_STYLESHEETS_TRUE 1135XSL_STYLESHEET 1136STYLESHEET_SRCDIR 1137XORG_SGML_PATH 1138HAVE_DOXYGEN_FALSE 1139HAVE_DOXYGEN_TRUE 1140HAVE_DOT_FALSE 1141HAVE_DOT_TRUE 1142HAVE_DOT 1143DOT 1144DOXYGEN 1145MAN_SUBSTS 1146XORG_MAN_PAGE 1147ADMIN_MAN_DIR 1148DRIVER_MAN_DIR 1149MISC_MAN_DIR 1150FILE_MAN_DIR 1151LIB_MAN_DIR 1152APP_MAN_DIR 1153ADMIN_MAN_SUFFIX 1154DRIVER_MAN_SUFFIX 1155MISC_MAN_SUFFIX 1156FILE_MAN_SUFFIX 1157LIB_MAN_SUFFIX 1158APP_MAN_SUFFIX 1159SED 1160host_os 1161host_vendor 1162host_cpu 1163host 1164build_os 1165build_vendor 1166build_cpu 1167build 1168INSTALL_CMD 1169PKG_CONFIG_LIBDIR 1170PKG_CONFIG_PATH 1171PKG_CONFIG 1172CHANGELOG_CMD 1173STRICT_CFLAGS 1174CWARNFLAGS 1175BASE_CFLAGS 1176EGREP 1177GREP 1178CPP 1179am__fastdepCC_FALSE 1180am__fastdepCC_TRUE 1181CCDEPMODE 1182am__nodep 1183AMDEPBACKSLASH 1184AMDEP_FALSE 1185AMDEP_TRUE 1186am__include 1187DEPDIR 1188OBJEXT 1189EXEEXT 1190ac_ct_CC 1191CPPFLAGS 1192LDFLAGS 1193CFLAGS 1194CC 1195AM_BACKSLASH 1196AM_DEFAULT_VERBOSITY 1197AM_DEFAULT_V 1198AM_V 1199am__untar 1200am__tar 1201AMTAR 1202am__leading_dot 1203SET_MAKE 1204AWK 1205mkdir_p 1206MKDIR_P 1207INSTALL_STRIP_PROGRAM 1208STRIP 1209install_sh 1210MAKEINFO 1211AUTOHEADER 1212AUTOMAKE 1213AUTOCONF 1214ACLOCAL 1215VERSION 1216PACKAGE 1217CYGPATH_W 1218am__isrc 1219INSTALL_DATA 1220INSTALL_SCRIPT 1221INSTALL_PROGRAM 1222target_alias 1223host_alias 1224build_alias 1225LIBS 1226ECHO_T 1227ECHO_N 1228ECHO_C 1229DEFS 1230mandir 1231localedir 1232libdir 1233psdir 1234pdfdir 1235dvidir 1236htmldir 1237infodir 1238docdir 1239oldincludedir 1240includedir 1241runstatedir 1242localstatedir 1243sharedstatedir 1244sysconfdir 1245datadir 1246datarootdir 1247libexecdir 1248sbindir 1249bindir 1250program_transform_name 1251prefix 1252exec_prefix 1253PACKAGE_URL 1254PACKAGE_BUGREPORT 1255PACKAGE_STRING 1256PACKAGE_VERSION 1257PACKAGE_TARNAME 1258PACKAGE_NAME 1259PATH_SEPARATOR 1260SHELL 1261am__quote' 1262ac_subst_files='' 1263ac_user_opts=' 1264enable_option_checking 1265enable_silent_rules 1266enable_dependency_tracking 1267enable_selective_werror 1268enable_strict_compilation 1269with_doxygen 1270enable_docs 1271enable_devel_docs 1272with_xmlto 1273with_fop 1274with_xsltproc 1275enable_unit_tests 1276enable_static 1277enable_shared 1278with_pic 1279enable_fast_install 1280with_aix_soname 1281with_gnu_ld 1282with_sysroot 1283enable_libtool_lock 1284enable_largefile 1285with_dtrace 1286enable_werror 1287enable_debug 1288with_int10 1289with_vendor_name 1290with_vendor_name_short 1291with_vendor_web 1292with_module_dir 1293with_log_dir 1294with_builder_addr 1295with_os_name 1296with_os_vendor 1297with_builderstring 1298enable_listen_tcp 1299enable_listen_unix 1300enable_listen_local 1301with_fallback_input_driver 1302with_fontrootdir 1303with_fontmiscdir 1304with_fontotfdir 1305with_fontttfdir 1306with_fonttype1dir 1307with_font75dpidir 1308with_font100dpidir 1309with_default_font_path 1310with_xkb_path 1311with_xkb_output 1312with_default_xkb_rules 1313with_default_xkb_model 1314with_default_xkb_layout 1315with_default_xkb_variant 1316with_default_xkb_options 1317with_serverconfig_path 1318with_apple_applications_dir 1319with_apple_application_name 1320with_bundle_id_prefix 1321with_bundle_version 1322with_bundle_version_string 1323enable_sparkle 1324with_sparkle_feed_url 1325enable_visibility 1326with_khronos_spec_dir 1327enable_composite 1328enable_mitshm 1329enable_xres 1330enable_record 1331enable_xv 1332enable_xvmc 1333enable_dga 1334enable_screensaver 1335enable_xdmcp 1336enable_xdm_auth_1 1337enable_glx 1338enable_dri 1339enable_dri2 1340enable_dri3 1341enable_present 1342enable_xinerama 1343enable_xf86vidmode 1344enable_xace 1345enable_xselinux 1346enable_xcsecurity 1347enable_dbe 1348enable_xf86bigfont 1349enable_dpms 1350enable_config_udev 1351enable_config_udev_kms 1352enable_config_hal 1353enable_config_wscons 1354enable_xfree86_utils 1355enable_vgahw 1356enable_vbe 1357enable_int10_module 1358enable_windowswm 1359enable_windowsdri 1360enable_libdrm 1361enable_clientids 1362enable_pciaccess 1363enable_linux_acpi 1364enable_linux_apm 1365enable_systemd_logind 1366enable_suid_wrapper 1367enable_xorg 1368enable_dmx 1369enable_xvfb 1370enable_xnest 1371enable_xquartz 1372enable_xwayland 1373enable_xwayland_eglstream 1374enable_standalone_xpbproxy 1375enable_xwin 1376enable_glamor 1377enable_kdrive 1378enable_xephyr 1379enable_libunwind 1380enable_xshmfence 1381enable_install_setuid 1382enable_unix_transport 1383enable_tcp_transport 1384enable_ipv6 1385enable_local_transport 1386enable_secure_rpc 1387enable_input_thread 1388with_systemd_daemon 1389enable_xtrans_send_fds 1390with_xkb_bin_directory 1391with_sha1 1392' 1393 ac_precious_vars='build_alias 1394host_alias 1395target_alias 1396CC 1397CFLAGS 1398LDFLAGS 1399LIBS 1400CPPFLAGS 1401CPP 1402PKG_CONFIG 1403PKG_CONFIG_PATH 1404PKG_CONFIG_LIBDIR 1405DOXYGEN 1406DOT 1407XMLTO 1408FOP 1409XSLTPROC 1410XORG_MALLOC_DEBUG_ENV 1411CCAS 1412CCASFLAGS 1413LT_SYS_LIBRARY_PATH 1414YACC 1415YFLAGS 1416PIXMAN_CFLAGS 1417PIXMAN_LIBS 1418SYSTEMD_DAEMON_CFLAGS 1419SYSTEMD_DAEMON_LIBS 1420UDEV_CFLAGS 1421UDEV_LIBS 1422DBUS_CFLAGS 1423DBUS_LIBS 1424HAL_CFLAGS 1425HAL_LIBS 1426DRI2PROTO_CFLAGS 1427DRI2PROTO_LIBS 1428DRI3PROTO_CFLAGS 1429DRI3PROTO_LIBS 1430XSHMFENCE_CFLAGS 1431XSHMFENCE_LIBS 1432LIBDRM_CFLAGS 1433LIBDRM_LIBS 1434XLIB_CFLAGS 1435XLIB_LIBS 1436GL_CFLAGS 1437GL_LIBS 1438SELINUX_CFLAGS 1439SELINUX_LIBS 1440XDMCP_CFLAGS 1441XDMCP_LIBS 1442LIBSHA1_CFLAGS 1443LIBSHA1_LIBS 1444OPENSSL_CFLAGS 1445OPENSSL_LIBS 1446XSERVERCFLAGS_CFLAGS 1447XSERVERCFLAGS_LIBS 1448XSERVERLIBS_CFLAGS 1449XSERVERLIBS_LIBS 1450LIBUNWIND_CFLAGS 1451LIBUNWIND_LIBS 1452XNESTMODULES_CFLAGS 1453XNESTMODULES_LIBS 1454PCIACCESS_CFLAGS 1455PCIACCESS_LIBS 1456DGA_CFLAGS 1457DGA_LIBS 1458XORG_MODULES_CFLAGS 1459XORG_MODULES_LIBS 1460GLAMOR_CFLAGS 1461GLAMOR_LIBS 1462GBM_CFLAGS 1463GBM_LIBS 1464XWINMODULES_CFLAGS 1465XWINMODULES_LIBS 1466WINDOWSWM_CFLAGS 1467WINDOWSWM_LIBS 1468WINDOWSDRI_CFLAGS 1469WINDOWSDRI_LIBS 1470KHRONOS_OPENGL_REGISTRY_CFLAGS 1471KHRONOS_OPENGL_REGISTRY_LIBS 1472XPBPROXY_CFLAGS 1473XPBPROXY_LIBS 1474DMXMODULES_CFLAGS 1475DMXMODULES_LIBS 1476XDMXCONFIG_DEP_CFLAGS 1477XDMXCONFIG_DEP_LIBS 1478DMXEXAMPLES_DEP_CFLAGS 1479DMXEXAMPLES_DEP_LIBS 1480DMXXMUEXAMPLES_DEP_CFLAGS 1481DMXXMUEXAMPLES_DEP_LIBS 1482DMXXIEXAMPLES_DEP_CFLAGS 1483DMXXIEXAMPLES_DEP_LIBS 1484XTSTEXAMPLES_DEP_CFLAGS 1485XTSTEXAMPLES_DEP_LIBS 1486XRESEXAMPLES_DEP_CFLAGS 1487XRESEXAMPLES_DEP_LIBS 1488X11EXAMPLES_DEP_CFLAGS 1489X11EXAMPLES_DEP_LIBS 1490XEPHYR_CFLAGS 1491XEPHYR_LIBS 1492XWAYLANDMODULES_CFLAGS 1493XWAYLANDMODULES_LIBS 1494WAYLAND_EGLSTREAM_CFLAGS 1495WAYLAND_EGLSTREAM_LIBS 1496WAYLAND_SCANNER_CFLAGS 1497WAYLAND_SCANNER_LIBS' 1498 1499 1500# Initialize some variables set by options. 1501ac_init_help= 1502ac_init_version=false 1503ac_unrecognized_opts= 1504ac_unrecognized_sep= 1505# The variables have the same names as the options, with 1506# dashes changed to underlines. 1507cache_file=/dev/null 1508exec_prefix=NONE 1509no_create= 1510no_recursion= 1511prefix=NONE 1512program_prefix=NONE 1513program_suffix=NONE 1514program_transform_name=s,x,x, 1515silent= 1516site= 1517srcdir= 1518verbose= 1519x_includes=NONE 1520x_libraries=NONE 1521 1522# Installation directory options. 1523# These are left unexpanded so users can "make install exec_prefix=/foo" 1524# and all the variables that are supposed to be based on exec_prefix 1525# by default will actually change. 1526# Use braces instead of parens because sh, perl, etc. also accept them. 1527# (The list follows the same order as the GNU Coding Standards.) 1528bindir='${exec_prefix}/bin' 1529sbindir='${exec_prefix}/sbin' 1530libexecdir='${exec_prefix}/libexec' 1531datarootdir='${prefix}/share' 1532datadir='${datarootdir}' 1533sysconfdir='${prefix}/etc' 1534sharedstatedir='${prefix}/com' 1535localstatedir='${prefix}/var' 1536runstatedir='${localstatedir}/run' 1537includedir='${prefix}/include' 1538oldincludedir='/usr/include' 1539docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1540infodir='${datarootdir}/info' 1541htmldir='${docdir}' 1542dvidir='${docdir}' 1543pdfdir='${docdir}' 1544psdir='${docdir}' 1545libdir='${exec_prefix}/lib' 1546localedir='${datarootdir}/locale' 1547mandir='${datarootdir}/man' 1548 1549ac_prev= 1550ac_dashdash= 1551for ac_option 1552do 1553 # If the previous option needs an argument, assign it. 1554 if test -n "$ac_prev"; then 1555 eval $ac_prev=\$ac_option 1556 ac_prev= 1557 continue 1558 fi 1559 1560 case $ac_option in 1561 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1562 *=) ac_optarg= ;; 1563 *) ac_optarg=yes ;; 1564 esac 1565 1566 # Accept the important Cygnus configure options, so we can diagnose typos. 1567 1568 case $ac_dashdash$ac_option in 1569 --) 1570 ac_dashdash=yes ;; 1571 1572 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1573 ac_prev=bindir ;; 1574 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1575 bindir=$ac_optarg ;; 1576 1577 -build | --build | --buil | --bui | --bu) 1578 ac_prev=build_alias ;; 1579 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1580 build_alias=$ac_optarg ;; 1581 1582 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1583 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1584 ac_prev=cache_file ;; 1585 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1586 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1587 cache_file=$ac_optarg ;; 1588 1589 --config-cache | -C) 1590 cache_file=config.cache ;; 1591 1592 -datadir | --datadir | --datadi | --datad) 1593 ac_prev=datadir ;; 1594 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1595 datadir=$ac_optarg ;; 1596 1597 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1598 | --dataroo | --dataro | --datar) 1599 ac_prev=datarootdir ;; 1600 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1601 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1602 datarootdir=$ac_optarg ;; 1603 1604 -disable-* | --disable-*) 1605 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1606 # Reject names that are not valid shell variable names. 1607 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1608 as_fn_error $? "invalid feature name: $ac_useropt" 1609 ac_useropt_orig=$ac_useropt 1610 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1611 case $ac_user_opts in 1612 *" 1613"enable_$ac_useropt" 1614"*) ;; 1615 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1616 ac_unrecognized_sep=', ';; 1617 esac 1618 eval enable_$ac_useropt=no ;; 1619 1620 -docdir | --docdir | --docdi | --doc | --do) 1621 ac_prev=docdir ;; 1622 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1623 docdir=$ac_optarg ;; 1624 1625 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1626 ac_prev=dvidir ;; 1627 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1628 dvidir=$ac_optarg ;; 1629 1630 -enable-* | --enable-*) 1631 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1632 # Reject names that are not valid shell variable names. 1633 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1634 as_fn_error $? "invalid feature name: $ac_useropt" 1635 ac_useropt_orig=$ac_useropt 1636 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1637 case $ac_user_opts in 1638 *" 1639"enable_$ac_useropt" 1640"*) ;; 1641 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1642 ac_unrecognized_sep=', ';; 1643 esac 1644 eval enable_$ac_useropt=\$ac_optarg ;; 1645 1646 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1647 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1648 | --exec | --exe | --ex) 1649 ac_prev=exec_prefix ;; 1650 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1651 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1652 | --exec=* | --exe=* | --ex=*) 1653 exec_prefix=$ac_optarg ;; 1654 1655 -gas | --gas | --ga | --g) 1656 # Obsolete; use --with-gas. 1657 with_gas=yes ;; 1658 1659 -help | --help | --hel | --he | -h) 1660 ac_init_help=long ;; 1661 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1662 ac_init_help=recursive ;; 1663 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1664 ac_init_help=short ;; 1665 1666 -host | --host | --hos | --ho) 1667 ac_prev=host_alias ;; 1668 -host=* | --host=* | --hos=* | --ho=*) 1669 host_alias=$ac_optarg ;; 1670 1671 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1672 ac_prev=htmldir ;; 1673 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1674 | --ht=*) 1675 htmldir=$ac_optarg ;; 1676 1677 -includedir | --includedir | --includedi | --included | --include \ 1678 | --includ | --inclu | --incl | --inc) 1679 ac_prev=includedir ;; 1680 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1681 | --includ=* | --inclu=* | --incl=* | --inc=*) 1682 includedir=$ac_optarg ;; 1683 1684 -infodir | --infodir | --infodi | --infod | --info | --inf) 1685 ac_prev=infodir ;; 1686 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1687 infodir=$ac_optarg ;; 1688 1689 -libdir | --libdir | --libdi | --libd) 1690 ac_prev=libdir ;; 1691 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1692 libdir=$ac_optarg ;; 1693 1694 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1695 | --libexe | --libex | --libe) 1696 ac_prev=libexecdir ;; 1697 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1698 | --libexe=* | --libex=* | --libe=*) 1699 libexecdir=$ac_optarg ;; 1700 1701 -localedir | --localedir | --localedi | --localed | --locale) 1702 ac_prev=localedir ;; 1703 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1704 localedir=$ac_optarg ;; 1705 1706 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1707 | --localstate | --localstat | --localsta | --localst | --locals) 1708 ac_prev=localstatedir ;; 1709 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1710 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1711 localstatedir=$ac_optarg ;; 1712 1713 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1714 ac_prev=mandir ;; 1715 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1716 mandir=$ac_optarg ;; 1717 1718 -nfp | --nfp | --nf) 1719 # Obsolete; use --without-fp. 1720 with_fp=no ;; 1721 1722 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1723 | --no-cr | --no-c | -n) 1724 no_create=yes ;; 1725 1726 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1727 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1728 no_recursion=yes ;; 1729 1730 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1731 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1732 | --oldin | --oldi | --old | --ol | --o) 1733 ac_prev=oldincludedir ;; 1734 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1735 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1736 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1737 oldincludedir=$ac_optarg ;; 1738 1739 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1740 ac_prev=prefix ;; 1741 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1742 prefix=$ac_optarg ;; 1743 1744 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1745 | --program-pre | --program-pr | --program-p) 1746 ac_prev=program_prefix ;; 1747 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1748 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1749 program_prefix=$ac_optarg ;; 1750 1751 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1752 | --program-suf | --program-su | --program-s) 1753 ac_prev=program_suffix ;; 1754 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1755 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1756 program_suffix=$ac_optarg ;; 1757 1758 -program-transform-name | --program-transform-name \ 1759 | --program-transform-nam | --program-transform-na \ 1760 | --program-transform-n | --program-transform- \ 1761 | --program-transform | --program-transfor \ 1762 | --program-transfo | --program-transf \ 1763 | --program-trans | --program-tran \ 1764 | --progr-tra | --program-tr | --program-t) 1765 ac_prev=program_transform_name ;; 1766 -program-transform-name=* | --program-transform-name=* \ 1767 | --program-transform-nam=* | --program-transform-na=* \ 1768 | --program-transform-n=* | --program-transform-=* \ 1769 | --program-transform=* | --program-transfor=* \ 1770 | --program-transfo=* | --program-transf=* \ 1771 | --program-trans=* | --program-tran=* \ 1772 | --progr-tra=* | --program-tr=* | --program-t=*) 1773 program_transform_name=$ac_optarg ;; 1774 1775 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1776 ac_prev=pdfdir ;; 1777 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1778 pdfdir=$ac_optarg ;; 1779 1780 -psdir | --psdir | --psdi | --psd | --ps) 1781 ac_prev=psdir ;; 1782 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1783 psdir=$ac_optarg ;; 1784 1785 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1786 | -silent | --silent | --silen | --sile | --sil) 1787 silent=yes ;; 1788 1789 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1790 | --runstate | --runstat | --runsta | --runst | --runs \ 1791 | --run | --ru | --r) 1792 ac_prev=runstatedir ;; 1793 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1794 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1795 | --run=* | --ru=* | --r=*) 1796 runstatedir=$ac_optarg ;; 1797 1798 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1799 ac_prev=sbindir ;; 1800 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1801 | --sbi=* | --sb=*) 1802 sbindir=$ac_optarg ;; 1803 1804 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1805 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1806 | --sharedst | --shareds | --shared | --share | --shar \ 1807 | --sha | --sh) 1808 ac_prev=sharedstatedir ;; 1809 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1810 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1811 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1812 | --sha=* | --sh=*) 1813 sharedstatedir=$ac_optarg ;; 1814 1815 -site | --site | --sit) 1816 ac_prev=site ;; 1817 -site=* | --site=* | --sit=*) 1818 site=$ac_optarg ;; 1819 1820 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1821 ac_prev=srcdir ;; 1822 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1823 srcdir=$ac_optarg ;; 1824 1825 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1826 | --syscon | --sysco | --sysc | --sys | --sy) 1827 ac_prev=sysconfdir ;; 1828 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1829 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1830 sysconfdir=$ac_optarg ;; 1831 1832 -target | --target | --targe | --targ | --tar | --ta | --t) 1833 ac_prev=target_alias ;; 1834 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1835 target_alias=$ac_optarg ;; 1836 1837 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1838 verbose=yes ;; 1839 1840 -version | --version | --versio | --versi | --vers | -V) 1841 ac_init_version=: ;; 1842 1843 -with-* | --with-*) 1844 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1845 # Reject names that are not valid shell variable names. 1846 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1847 as_fn_error $? "invalid package name: $ac_useropt" 1848 ac_useropt_orig=$ac_useropt 1849 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1850 case $ac_user_opts in 1851 *" 1852"with_$ac_useropt" 1853"*) ;; 1854 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1855 ac_unrecognized_sep=', ';; 1856 esac 1857 eval with_$ac_useropt=\$ac_optarg ;; 1858 1859 -without-* | --without-*) 1860 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1861 # Reject names that are not valid shell variable names. 1862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1863 as_fn_error $? "invalid package name: $ac_useropt" 1864 ac_useropt_orig=$ac_useropt 1865 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1866 case $ac_user_opts in 1867 *" 1868"with_$ac_useropt" 1869"*) ;; 1870 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1871 ac_unrecognized_sep=', ';; 1872 esac 1873 eval with_$ac_useropt=no ;; 1874 1875 --x) 1876 # Obsolete; use --with-x. 1877 with_x=yes ;; 1878 1879 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1880 | --x-incl | --x-inc | --x-in | --x-i) 1881 ac_prev=x_includes ;; 1882 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1883 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1884 x_includes=$ac_optarg ;; 1885 1886 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1887 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1888 ac_prev=x_libraries ;; 1889 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1890 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1891 x_libraries=$ac_optarg ;; 1892 1893 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1894Try \`$0 --help' for more information" 1895 ;; 1896 1897 *=*) 1898 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1899 # Reject names that are not valid shell variable names. 1900 case $ac_envvar in #( 1901 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1902 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1903 esac 1904 eval $ac_envvar=\$ac_optarg 1905 export $ac_envvar ;; 1906 1907 *) 1908 # FIXME: should be removed in autoconf 3.0. 1909 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1910 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1911 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1912 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1913 ;; 1914 1915 esac 1916done 1917 1918if test -n "$ac_prev"; then 1919 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1920 as_fn_error $? "missing argument to $ac_option" 1921fi 1922 1923if test -n "$ac_unrecognized_opts"; then 1924 case $enable_option_checking in 1925 no) ;; 1926 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1927 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1928 esac 1929fi 1930 1931# Check all directory arguments for consistency. 1932for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1933 datadir sysconfdir sharedstatedir localstatedir includedir \ 1934 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1935 libdir localedir mandir runstatedir 1936do 1937 eval ac_val=\$$ac_var 1938 # Remove trailing slashes. 1939 case $ac_val in 1940 */ ) 1941 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1942 eval $ac_var=\$ac_val;; 1943 esac 1944 # Be sure to have absolute directory names. 1945 case $ac_val in 1946 [\\/$]* | ?:[\\/]* ) continue;; 1947 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1948 esac 1949 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1950done 1951 1952# There might be people who depend on the old broken behavior: `$host' 1953# used to hold the argument of --host etc. 1954# FIXME: To remove some day. 1955build=$build_alias 1956host=$host_alias 1957target=$target_alias 1958 1959# FIXME: To remove some day. 1960if test "x$host_alias" != x; then 1961 if test "x$build_alias" = x; then 1962 cross_compiling=maybe 1963 elif test "x$build_alias" != "x$host_alias"; then 1964 cross_compiling=yes 1965 fi 1966fi 1967 1968ac_tool_prefix= 1969test -n "$host_alias" && ac_tool_prefix=$host_alias- 1970 1971test "$silent" = yes && exec 6>/dev/null 1972 1973 1974ac_pwd=`pwd` && test -n "$ac_pwd" && 1975ac_ls_di=`ls -di .` && 1976ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1977 as_fn_error $? "working directory cannot be determined" 1978test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1979 as_fn_error $? "pwd does not report name of working directory" 1980 1981 1982# Find the source files, if location was not specified. 1983if test -z "$srcdir"; then 1984 ac_srcdir_defaulted=yes 1985 # Try the directory containing this script, then the parent directory. 1986 ac_confdir=`$as_dirname -- "$as_myself" || 1987$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1988 X"$as_myself" : 'X\(//\)[^/]' \| \ 1989 X"$as_myself" : 'X\(//\)$' \| \ 1990 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1991$as_echo X"$as_myself" | 1992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1993 s//\1/ 1994 q 1995 } 1996 /^X\(\/\/\)[^/].*/{ 1997 s//\1/ 1998 q 1999 } 2000 /^X\(\/\/\)$/{ 2001 s//\1/ 2002 q 2003 } 2004 /^X\(\/\).*/{ 2005 s//\1/ 2006 q 2007 } 2008 s/.*/./; q'` 2009 srcdir=$ac_confdir 2010 if test ! -r "$srcdir/$ac_unique_file"; then 2011 srcdir=.. 2012 fi 2013else 2014 ac_srcdir_defaulted=no 2015fi 2016if test ! -r "$srcdir/$ac_unique_file"; then 2017 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 2018 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 2019fi 2020ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 2021ac_abs_confdir=`( 2022 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 2023 pwd)` 2024# When building in place, set srcdir=. 2025if test "$ac_abs_confdir" = "$ac_pwd"; then 2026 srcdir=. 2027fi 2028# Remove unnecessary trailing slashes from srcdir. 2029# Double slashes in file names in object file debugging info 2030# mess up M-x gdb in Emacs. 2031case $srcdir in 2032*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 2033esac 2034for ac_var in $ac_precious_vars; do 2035 eval ac_env_${ac_var}_set=\${${ac_var}+set} 2036 eval ac_env_${ac_var}_value=\$${ac_var} 2037 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 2038 eval ac_cv_env_${ac_var}_value=\$${ac_var} 2039done 2040 2041# 2042# Report the --help message. 2043# 2044if test "$ac_init_help" = "long"; then 2045 # Omit some internal or obsolete options to make the list less imposing. 2046 # This message is too long to be a string in the A/UX 3.1 sh. 2047 cat <<_ACEOF 2048\`configure' configures xorg-server 1.20.12 to adapt to many kinds of systems. 2049 2050Usage: $0 [OPTION]... [VAR=VALUE]... 2051 2052To assign environment variables (e.g., CC, CFLAGS...), specify them as 2053VAR=VALUE. See below for descriptions of some of the useful variables. 2054 2055Defaults for the options are specified in brackets. 2056 2057Configuration: 2058 -h, --help display this help and exit 2059 --help=short display options specific to this package 2060 --help=recursive display the short help of all the included packages 2061 -V, --version display version information and exit 2062 -q, --quiet, --silent do not print \`checking ...' messages 2063 --cache-file=FILE cache test results in FILE [disabled] 2064 -C, --config-cache alias for \`--cache-file=config.cache' 2065 -n, --no-create do not create output files 2066 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 2067 2068Installation directories: 2069 --prefix=PREFIX install architecture-independent files in PREFIX 2070 [$ac_default_prefix] 2071 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 2072 [PREFIX] 2073 2074By default, \`make install' will install all the files in 2075\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 2076an installation prefix other than \`$ac_default_prefix' using \`--prefix', 2077for instance \`--prefix=\$HOME'. 2078 2079For better control, use the options below. 2080 2081Fine tuning of the installation directories: 2082 --bindir=DIR user executables [EPREFIX/bin] 2083 --sbindir=DIR system admin executables [EPREFIX/sbin] 2084 --libexecdir=DIR program executables [EPREFIX/libexec] 2085 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 2086 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 2087 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 2088 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 2089 --libdir=DIR object code libraries [EPREFIX/lib] 2090 --includedir=DIR C header files [PREFIX/include] 2091 --oldincludedir=DIR C header files for non-gcc [/usr/include] 2092 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 2093 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 2094 --infodir=DIR info documentation [DATAROOTDIR/info] 2095 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 2096 --mandir=DIR man documentation [DATAROOTDIR/man] 2097 --docdir=DIR documentation root [DATAROOTDIR/doc/xorg-server] 2098 --htmldir=DIR html documentation [DOCDIR] 2099 --dvidir=DIR dvi documentation [DOCDIR] 2100 --pdfdir=DIR pdf documentation [DOCDIR] 2101 --psdir=DIR ps documentation [DOCDIR] 2102_ACEOF 2103 2104 cat <<\_ACEOF 2105 2106Program names: 2107 --program-prefix=PREFIX prepend PREFIX to installed program names 2108 --program-suffix=SUFFIX append SUFFIX to installed program names 2109 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 2110 2111System types: 2112 --build=BUILD configure for building on BUILD [guessed] 2113 --host=HOST cross-compile to build programs to run on HOST [BUILD] 2114_ACEOF 2115fi 2116 2117if test -n "$ac_init_help"; then 2118 case $ac_init_help in 2119 short | recursive ) echo "Configuration of xorg-server 1.20.12:";; 2120 esac 2121 cat <<\_ACEOF 2122 2123Optional Features: 2124 --disable-option-checking ignore unrecognized --enable/--with options 2125 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 2126 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 2127 --enable-silent-rules less verbose build output (undo: "make V=1") 2128 --disable-silent-rules verbose build output (undo: "make V=0") 2129 --enable-dependency-tracking 2130 do not reject slow dependency extractors 2131 --disable-dependency-tracking 2132 speeds up one-time build 2133 --disable-selective-werror 2134 Turn off selective compiler errors. (default: 2135 enabled) 2136 --enable-strict-compilation 2137 Enable all warnings from compiler and make them 2138 errors (default: disabled) 2139 --enable-docs Enable building the documentation (default: yes) 2140 --enable-devel-docs Enable building the developer documentation 2141 (default: yes) 2142 --enable-unit-tests Enable building unit test cases (default: auto) 2143 --enable-static[=PKGS] build static libraries [default=no] 2144 --enable-shared[=PKGS] build shared libraries [default=yes] 2145 --enable-fast-install[=PKGS] 2146 optimize for fast installation [default=yes] 2147 --disable-libtool-lock avoid locking (might break parallel builds) 2148 --disable-largefile omit support for large files 2149 --enable-werror Obsolete - use --enable-strict-compilation instead 2150 --enable-debug Enable debugging (default: disabled) 2151 --enable-listen-tcp Listen on TCP by default (default:disabled) 2152 --disable-listen-unix Listen on Unix by default (default:enabled) 2153 --disable-listen-local Listen on local by default (default:enabled) 2154 --enable-sparkle Enable updating of X11.app using the Sparkle 2155 Framework (default: disabled) 2156 --enable-visibility Enable symbol visibility (default: auto) 2157 --disable-composite Build Composite extension (default: enabled) 2158 --disable-mitshm Build SHM extension (default: auto) 2159 --disable-xres Build XRes extension (default: enabled) 2160 --disable-record Build Record extension (default: enabled) 2161 --disable-xv Build Xv extension (default: enabled) 2162 --disable-xvmc Build XvMC extension (default: enabled) 2163 --disable-dga Build DGA extension (default: auto) 2164 --disable-screensaver Build ScreenSaver extension (default: enabled) 2165 --disable-xdmcp Build XDMCP extension (default: auto) 2166 --disable-xdm-auth-1 Build XDM-Auth-1 extension (default: auto) 2167 --disable-glx Build GLX extension (default: enabled) 2168 --enable-dri Build DRI extension (default: auto) 2169 --enable-dri2 Build DRI2 extension (default: auto) 2170 --enable-dri3 Build DRI3 extension (default: auto) 2171 --disable-present Build Present extension (default: enabled) 2172 --disable-xinerama Build Xinerama extension (default: enabled) 2173 --disable-xf86vidmode Build XF86VidMode extension (default: auto) 2174 --disable-xace Build X-ACE extension (default: enabled) 2175 --enable-xselinux Build SELinux extension (default: disabled) 2176 --enable-xcsecurity Build Security extension (default: disabled) 2177 --disable-dbe Build DBE extension (default: enabled) 2178 --enable-xf86bigfont Build XF86 Big Font extension (default: disabled) 2179 --disable-dpms Build DPMS extension (default: enabled) 2180 --enable-config-udev Build udev support (default: auto) 2181 --enable-config-udev-kms 2182 Build udev kms support (default: auto) 2183 --disable-config-hal Build HAL support (default: auto) 2184 --enable-config-wscons Build wscons config support (default: auto) 2185 --enable-xfree86-utils Build xfree86 DDX utilities (default: enabled) 2186 --enable-vgahw Build Xorg with vga access (default: enabled) 2187 --enable-vbe Build Xorg with VBE module (default: enabled) 2188 --enable-int10-module Build Xorg with int10 module (default: enabled) 2189 --enable-windowswm Build XWin with WindowsWM extension (default: no) 2190 --enable-windowsdri Build XWin with WindowsDRI extension (default: auto) 2191 --enable-libdrm Build Xorg with libdrm support (default: enabled) 2192 --disable-clientids Build Xorg with client ID tracking (default: 2193 enabled) 2194 --enable-pciaccess Build Xorg with pciaccess library (default: enabled) 2195 --disable-linux-acpi Disable building ACPI support on Linux (if 2196 available). 2197 --disable-linux-apm Disable building APM support on Linux (if 2198 available). 2199 --enable-systemd-logind Build systemd-logind support (default: auto) 2200 --enable-suid-wrapper Build suid-root wrapper for legacy driver support on 2201 rootless xserver systems (default: no) 2202 --enable-xorg Build Xorg server (default: auto) 2203 --enable-dmx Build DMX server (default: no) 2204 --enable-xvfb Build Xvfb server (default: yes) 2205 --enable-xnest Build Xnest server (default: auto) 2206 --enable-xquartz Build Xquartz server for OS-X (default: auto) 2207 --enable-xwayland Build Xwayland server (default: auto) 2208 --enable-xwayland-eglstream 2209 Build Xwayland eglstream support (default: no) 2210 --enable-standalone-xpbproxy 2211 Build a standalone xpbproxy (in addition to the one 2212 integrated into Xquartz as a separate thread) 2213 (default: no) 2214 --enable-xwin Build XWin server (default: auto) 2215 --enable-glamor Build glamor dix module (default: auto) 2216 --enable-kdrive Build kdrive servers (default: no) 2217 --enable-xephyr Build the kdrive Xephyr server (default: auto) 2218 --enable-libunwind Use libunwind for backtracing (default: auto) 2219 --disable-xshmfence Disable xshmfence (default: auto) 2220 --enable-install-setuid Install Xorg server as owned by root with setuid bit 2221 (default: auto) 2222 --enable-unix-transport Enable UNIX domain socket transport 2223 --enable-tcp-transport Enable TCP socket transport 2224 --enable-ipv6 Enable IPv6 support 2225 --enable-local-transport 2226 Enable os-specific local transport 2227 --enable-secure-rpc Enable Secure RPC 2228 --enable-input-thread Enable input threads 2229 --disable-xtrans-send-fds 2230 Use Xtrans support for fd passing (default: auto) 2231 2232Optional Packages: 2233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2235 --with-doxygen Use doxygen to regenerate documentation (default: 2236 auto) 2237 --with-xmlto Use xmlto to regenerate documentation (default: 2238 auto) 2239 --with-fop Use fop to regenerate documentation (default: auto) 2240 --with-xsltproc Use xsltproc for the transformation of XML documents 2241 (default: auto) 2242 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 2243 both] 2244 --with-aix-soname=aix|svr4|both 2245 shared library versioning (aka "SONAME") variant to 2246 provide on AIX, [default=aix]. 2247 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2248 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 2249 compiler's sysroot if not specified). 2250 --with-dtrace=PATH Enable dtrace probes (default: enabled if dtrace 2251 found) 2252 --with-int10=BACKEND int10 backend: vm86, x86emu or stub 2253 --with-vendor-name=VENDOR 2254 Vendor string reported by the server 2255 --with-vendor-name-short=VENDOR 2256 Short version of vendor string reported by the 2257 server 2258 --with-vendor-web=URL Vendor web address reported by the server 2259 --with-module-dir=DIR Directory where modules are installed (default: 2260 $libdir/xorg/modules) 2261 --with-log-dir=DIR Directory where log files are kept (default: 2262 $localstatedir/log) 2263 --with-builder-addr=ADDRESS 2264 Builder address (default: 2265 xorg@lists.freedesktop.org) 2266 --with-os-name=OSNAME Name of OS (default: output of "uname -srm") 2267 --with-os-vendor=OSVENDOR 2268 Name of OS vendor 2269 --with-builderstring=BUILDERSTRING 2270 Additional builder string 2271 --with-fallback-input-driver=$FALLBACK_INPUT_DRIVER 2272 Input driver fallback if the requested driver for a 2273 device is unavailable 2274 --with-fontrootdir=DIR Path to root directory for font files 2275 --with-fontmiscdir=DIR Path to misc files [FONTROOTDIR/misc] 2276 --with-fontotfdir=DIR Path to OTF files [FONTROOTDIR/OTF] 2277 --with-fontttfdir=DIR Path to TTF files [FONTROOTDIR/TTF] 2278 --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1] 2279 --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi] 2280 --with-font100dpidir=DIR 2281 Path to 100dpi files [FONTROOTDIR/100dpi] 2282 --with-default-font-path=PATH 2283 Comma separated list of font dirs 2284 --with-xkb-path=PATH Path to XKB base dir (default: auto) 2285 --with-xkb-output=PATH Path to XKB output dir (default: 2286 ${datadir}/X11/xkb/compiled) 2287 --with-default-xkb-rules=RULES 2288 Keyboard ruleset (default: base/evdev) 2289 --with-default-xkb-model=MODEL 2290 Keyboard model (default: pc105) 2291 --with-default-xkb-layout=LAYOUT 2292 Keyboard layout (default: us) 2293 --with-default-xkb-variant=VARIANT 2294 Keyboard variant (default: (none)) 2295 --with-default-xkb-options=OPTIONS 2296 Keyboard layout options (default: (none)) 2297 --with-serverconfig-path=PATH 2298 Directory where ancillary server config files are 2299 installed (default: ${libdir}/xorg) 2300 --with-apple-applications-dir=PATH 2301 Path to the Applications directory (default: 2302 /Applications/Utilities) 2303 --with-apple-application-name=NAME 2304 Name for the .app (default: X11) 2305 --with-bundle-id-prefix=RDNS_PREFIX 2306 Prefix to use for bundle identifiers (default: 2307 org.x) 2308 --with-bundle-version=VERSION 2309 Version to use for X11.app's CFBundleVersion 2310 (default: 1.20.12) 2311 --with-bundle-version-string=VERSION 2312 Version to use for X11.app's 2313 CFBundleShortVersionString (default: 1.20.12) 2314 --with-sparkle-feed-url=URL 2315 URL for the Sparkle feed (default: 2316 https://www.xquartz.org/releases/sparkle/release.xml) 2317 --with-khronos-spec-dir=PATH 2318 Path to Khronos OpenGL registry database files 2319 (default: auto) 2320 --with-systemd-daemon support systemd socket activation (default: auto) 2321 --with-xkb-bin-directory=DIR 2322 Directory containing xkbcomp program (default: auto) 2323 --with-sha1=libc|libmd|libnettle|libgcrypt|libcrypto|libsha1|CommonCrypto|CryptoAPI 2324 choose SHA1 implementation 2325 2326Some influential environment variables: 2327 CC C compiler command 2328 CFLAGS C compiler flags 2329 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2330 nonstandard directory <lib dir> 2331 LIBS libraries to pass to the linker, e.g. -l<library> 2332 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2333 you have headers in a nonstandard directory <include dir> 2334 CPP C preprocessor 2335 PKG_CONFIG path to pkg-config utility 2336 PKG_CONFIG_PATH 2337 directories to add to pkg-config's search path 2338 PKG_CONFIG_LIBDIR 2339 path overriding pkg-config's built-in search path 2340 DOXYGEN Path to doxygen command 2341 DOT Path to the dot graphics utility 2342 XMLTO Path to xmlto command 2343 FOP Path to fop command 2344 XSLTPROC Path to xsltproc command 2345 XORG_MALLOC_DEBUG_ENV 2346 Environment variables to enable memory checking in tests 2347 CCAS assembler compiler command (defaults to CC) 2348 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 2349 LT_SYS_LIBRARY_PATH 2350 User-defined run-time library search path. 2351 YACC The `Yet Another Compiler Compiler' implementation to use. 2352 Defaults to the first program found out of: `bison -y', `byacc', 2353 `yacc'. 2354 YFLAGS The list of arguments that will be passed by default to $YACC. 2355 This script will default YFLAGS to the empty string to avoid a 2356 default value of `-d' given by some make applications. 2357 PIXMAN_CFLAGS 2358 C compiler flags for PIXMAN, overriding pkg-config 2359 PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config 2360 SYSTEMD_DAEMON_CFLAGS 2361 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config 2362 SYSTEMD_DAEMON_LIBS 2363 linker flags for SYSTEMD_DAEMON, overriding pkg-config 2364 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config 2365 UDEV_LIBS linker flags for UDEV, overriding pkg-config 2366 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config 2367 DBUS_LIBS linker flags for DBUS, overriding pkg-config 2368 HAL_CFLAGS C compiler flags for HAL, overriding pkg-config 2369 HAL_LIBS linker flags for HAL, overriding pkg-config 2370 DRI2PROTO_CFLAGS 2371 C compiler flags for DRI2PROTO, overriding pkg-config 2372 DRI2PROTO_LIBS 2373 linker flags for DRI2PROTO, overriding pkg-config 2374 DRI3PROTO_CFLAGS 2375 C compiler flags for DRI3PROTO, overriding pkg-config 2376 DRI3PROTO_LIBS 2377 linker flags for DRI3PROTO, overriding pkg-config 2378 XSHMFENCE_CFLAGS 2379 C compiler flags for XSHMFENCE, overriding pkg-config 2380 XSHMFENCE_LIBS 2381 linker flags for XSHMFENCE, overriding pkg-config 2382 LIBDRM_CFLAGS 2383 C compiler flags for LIBDRM, overriding pkg-config 2384 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config 2385 XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config 2386 XLIB_LIBS linker flags for XLIB, overriding pkg-config 2387 GL_CFLAGS C compiler flags for GL, overriding pkg-config 2388 GL_LIBS linker flags for GL, overriding pkg-config 2389 SELINUX_CFLAGS 2390 C compiler flags for SELINUX, overriding pkg-config 2391 SELINUX_LIBS 2392 linker flags for SELINUX, overriding pkg-config 2393 XDMCP_CFLAGS 2394 C compiler flags for XDMCP, overriding pkg-config 2395 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config 2396 LIBSHA1_CFLAGS 2397 C compiler flags for LIBSHA1, overriding pkg-config 2398 LIBSHA1_LIBS 2399 linker flags for LIBSHA1, overriding pkg-config 2400 OPENSSL_CFLAGS 2401 C compiler flags for OPENSSL, overriding pkg-config 2402 OPENSSL_LIBS 2403 linker flags for OPENSSL, overriding pkg-config 2404 XSERVERCFLAGS_CFLAGS 2405 C compiler flags for XSERVERCFLAGS, overriding pkg-config 2406 XSERVERCFLAGS_LIBS 2407 linker flags for XSERVERCFLAGS, overriding pkg-config 2408 XSERVERLIBS_CFLAGS 2409 C compiler flags for XSERVERLIBS, overriding pkg-config 2410 XSERVERLIBS_LIBS 2411 linker flags for XSERVERLIBS, overriding pkg-config 2412 LIBUNWIND_CFLAGS 2413 C compiler flags for LIBUNWIND, overriding pkg-config 2414 LIBUNWIND_LIBS 2415 linker flags for LIBUNWIND, overriding pkg-config 2416 XNESTMODULES_CFLAGS 2417 C compiler flags for XNESTMODULES, overriding pkg-config 2418 XNESTMODULES_LIBS 2419 linker flags for XNESTMODULES, overriding pkg-config 2420 PCIACCESS_CFLAGS 2421 C compiler flags for PCIACCESS, overriding pkg-config 2422 PCIACCESS_LIBS 2423 linker flags for PCIACCESS, overriding pkg-config 2424 DGA_CFLAGS C compiler flags for DGA, overriding pkg-config 2425 DGA_LIBS linker flags for DGA, overriding pkg-config 2426 XORG_MODULES_CFLAGS 2427 C compiler flags for XORG_MODULES, overriding pkg-config 2428 XORG_MODULES_LIBS 2429 linker flags for XORG_MODULES, overriding pkg-config 2430 GLAMOR_CFLAGS 2431 C compiler flags for GLAMOR, overriding pkg-config 2432 GLAMOR_LIBS linker flags for GLAMOR, overriding pkg-config 2433 GBM_CFLAGS C compiler flags for GBM, overriding pkg-config 2434 GBM_LIBS linker flags for GBM, overriding pkg-config 2435 XWINMODULES_CFLAGS 2436 C compiler flags for XWINMODULES, overriding pkg-config 2437 XWINMODULES_LIBS 2438 linker flags for XWINMODULES, overriding pkg-config 2439 WINDOWSWM_CFLAGS 2440 C compiler flags for WINDOWSWM, overriding pkg-config 2441 WINDOWSWM_LIBS 2442 linker flags for WINDOWSWM, overriding pkg-config 2443 WINDOWSDRI_CFLAGS 2444 C compiler flags for WINDOWSDRI, overriding pkg-config 2445 WINDOWSDRI_LIBS 2446 linker flags for WINDOWSDRI, overriding pkg-config 2447 KHRONOS_OPENGL_REGISTRY_CFLAGS 2448 C compiler flags for KHRONOS_OPENGL_REGISTRY, overriding 2449 pkg-config 2450 KHRONOS_OPENGL_REGISTRY_LIBS 2451 linker flags for KHRONOS_OPENGL_REGISTRY, overriding pkg-config 2452 XPBPROXY_CFLAGS 2453 C compiler flags for XPBPROXY, overriding pkg-config 2454 XPBPROXY_LIBS 2455 linker flags for XPBPROXY, overriding pkg-config 2456 DMXMODULES_CFLAGS 2457 C compiler flags for DMXMODULES, overriding pkg-config 2458 DMXMODULES_LIBS 2459 linker flags for DMXMODULES, overriding pkg-config 2460 XDMXCONFIG_DEP_CFLAGS 2461 C compiler flags for XDMXCONFIG_DEP, overriding pkg-config 2462 XDMXCONFIG_DEP_LIBS 2463 linker flags for XDMXCONFIG_DEP, overriding pkg-config 2464 DMXEXAMPLES_DEP_CFLAGS 2465 C compiler flags for DMXEXAMPLES_DEP, overriding pkg-config 2466 DMXEXAMPLES_DEP_LIBS 2467 linker flags for DMXEXAMPLES_DEP, overriding pkg-config 2468 DMXXMUEXAMPLES_DEP_CFLAGS 2469 C compiler flags for DMXXMUEXAMPLES_DEP, overriding pkg-config 2470 DMXXMUEXAMPLES_DEP_LIBS 2471 linker flags for DMXXMUEXAMPLES_DEP, overriding pkg-config 2472 DMXXIEXAMPLES_DEP_CFLAGS 2473 C compiler flags for DMXXIEXAMPLES_DEP, overriding pkg-config 2474 DMXXIEXAMPLES_DEP_LIBS 2475 linker flags for DMXXIEXAMPLES_DEP, overriding pkg-config 2476 XTSTEXAMPLES_DEP_CFLAGS 2477 C compiler flags for XTSTEXAMPLES_DEP, overriding pkg-config 2478 XTSTEXAMPLES_DEP_LIBS 2479 linker flags for XTSTEXAMPLES_DEP, overriding pkg-config 2480 XRESEXAMPLES_DEP_CFLAGS 2481 C compiler flags for XRESEXAMPLES_DEP, overriding pkg-config 2482 XRESEXAMPLES_DEP_LIBS 2483 linker flags for XRESEXAMPLES_DEP, overriding pkg-config 2484 X11EXAMPLES_DEP_CFLAGS 2485 C compiler flags for X11EXAMPLES_DEP, overriding pkg-config 2486 X11EXAMPLES_DEP_LIBS 2487 linker flags for X11EXAMPLES_DEP, overriding pkg-config 2488 XEPHYR_CFLAGS 2489 C compiler flags for XEPHYR, overriding pkg-config 2490 XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config 2491 XWAYLANDMODULES_CFLAGS 2492 C compiler flags for XWAYLANDMODULES, overriding pkg-config 2493 XWAYLANDMODULES_LIBS 2494 linker flags for XWAYLANDMODULES, overriding pkg-config 2495 WAYLAND_EGLSTREAM_CFLAGS 2496 C compiler flags for WAYLAND_EGLSTREAM, overriding pkg-config 2497 WAYLAND_EGLSTREAM_LIBS 2498 linker flags for WAYLAND_EGLSTREAM, overriding pkg-config 2499 WAYLAND_SCANNER_CFLAGS 2500 C compiler flags for WAYLAND_SCANNER, overriding pkg-config 2501 WAYLAND_SCANNER_LIBS 2502 linker flags for WAYLAND_SCANNER, overriding pkg-config 2503 2504Use these variables to override the choices made by `configure' or to help 2505it to find libraries and programs with nonstandard names/locations. 2506 2507Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>. 2508_ACEOF 2509ac_status=$? 2510fi 2511 2512if test "$ac_init_help" = "recursive"; then 2513 # If there are subdirs, report their specific --help. 2514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2515 test -d "$ac_dir" || 2516 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2517 continue 2518 ac_builddir=. 2519 2520case "$ac_dir" in 2521.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2522*) 2523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2524 # A ".." for each directory in $ac_dir_suffix. 2525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2526 case $ac_top_builddir_sub in 2527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2529 esac ;; 2530esac 2531ac_abs_top_builddir=$ac_pwd 2532ac_abs_builddir=$ac_pwd$ac_dir_suffix 2533# for backward compatibility: 2534ac_top_builddir=$ac_top_build_prefix 2535 2536case $srcdir in 2537 .) # We are building in place. 2538 ac_srcdir=. 2539 ac_top_srcdir=$ac_top_builddir_sub 2540 ac_abs_top_srcdir=$ac_pwd ;; 2541 [\\/]* | ?:[\\/]* ) # Absolute name. 2542 ac_srcdir=$srcdir$ac_dir_suffix; 2543 ac_top_srcdir=$srcdir 2544 ac_abs_top_srcdir=$srcdir ;; 2545 *) # Relative name. 2546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2547 ac_top_srcdir=$ac_top_build_prefix$srcdir 2548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2549esac 2550ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2551 2552 cd "$ac_dir" || { ac_status=$?; continue; } 2553 # Check for guested configure. 2554 if test -f "$ac_srcdir/configure.gnu"; then 2555 echo && 2556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2557 elif test -f "$ac_srcdir/configure"; then 2558 echo && 2559 $SHELL "$ac_srcdir/configure" --help=recursive 2560 else 2561 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2562 fi || ac_status=$? 2563 cd "$ac_pwd" || { ac_status=$?; break; } 2564 done 2565fi 2566 2567test -n "$ac_init_help" && exit $ac_status 2568if $ac_init_version; then 2569 cat <<\_ACEOF 2570xorg-server configure 1.20.12 2571generated by GNU Autoconf 2.69 2572 2573Copyright (C) 2012 Free Software Foundation, Inc. 2574This configure script is free software; the Free Software Foundation 2575gives unlimited permission to copy, distribute and modify it. 2576_ACEOF 2577 exit 2578fi 2579 2580## ------------------------ ## 2581## Autoconf initialization. ## 2582## ------------------------ ## 2583 2584# ac_fn_c_try_compile LINENO 2585# -------------------------- 2586# Try to compile conftest.$ac_ext, and return whether this succeeded. 2587ac_fn_c_try_compile () 2588{ 2589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2590 rm -f conftest.$ac_objext 2591 if { { ac_try="$ac_compile" 2592case "(($ac_try" in 2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2594 *) ac_try_echo=$ac_try;; 2595esac 2596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2597$as_echo "$ac_try_echo"; } >&5 2598 (eval "$ac_compile") 2>conftest.err 2599 ac_status=$? 2600 if test -s conftest.err; then 2601 grep -v '^ *+' conftest.err >conftest.er1 2602 cat conftest.er1 >&5 2603 mv -f conftest.er1 conftest.err 2604 fi 2605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2606 test $ac_status = 0; } && { 2607 test -z "$ac_c_werror_flag" || 2608 test ! -s conftest.err 2609 } && test -s conftest.$ac_objext; then : 2610 ac_retval=0 2611else 2612 $as_echo "$as_me: failed program was:" >&5 2613sed 's/^/| /' conftest.$ac_ext >&5 2614 2615 ac_retval=1 2616fi 2617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2618 as_fn_set_status $ac_retval 2619 2620} # ac_fn_c_try_compile 2621 2622# ac_fn_c_try_cpp LINENO 2623# ---------------------- 2624# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2625ac_fn_c_try_cpp () 2626{ 2627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2628 if { { ac_try="$ac_cpp conftest.$ac_ext" 2629case "(($ac_try" in 2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2631 *) ac_try_echo=$ac_try;; 2632esac 2633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2634$as_echo "$ac_try_echo"; } >&5 2635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2636 ac_status=$? 2637 if test -s conftest.err; then 2638 grep -v '^ *+' conftest.err >conftest.er1 2639 cat conftest.er1 >&5 2640 mv -f conftest.er1 conftest.err 2641 fi 2642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2643 test $ac_status = 0; } > conftest.i && { 2644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2645 test ! -s conftest.err 2646 }; then : 2647 ac_retval=0 2648else 2649 $as_echo "$as_me: failed program was:" >&5 2650sed 's/^/| /' conftest.$ac_ext >&5 2651 2652 ac_retval=1 2653fi 2654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2655 as_fn_set_status $ac_retval 2656 2657} # ac_fn_c_try_cpp 2658 2659# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2660# ------------------------------------------------------- 2661# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2662# the include files in INCLUDES and setting the cache variable VAR 2663# accordingly. 2664ac_fn_c_check_header_mongrel () 2665{ 2666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2667 if eval \${$3+:} false; then : 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2669$as_echo_n "checking for $2... " >&6; } 2670if eval \${$3+:} false; then : 2671 $as_echo_n "(cached) " >&6 2672fi 2673eval ac_res=\$$3 2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2675$as_echo "$ac_res" >&6; } 2676else 2677 # Is the header compilable? 2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2679$as_echo_n "checking $2 usability... " >&6; } 2680cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2681/* end confdefs.h. */ 2682$4 2683#include <$2> 2684_ACEOF 2685if ac_fn_c_try_compile "$LINENO"; then : 2686 ac_header_compiler=yes 2687else 2688 ac_header_compiler=no 2689fi 2690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2692$as_echo "$ac_header_compiler" >&6; } 2693 2694# Is the header present? 2695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2696$as_echo_n "checking $2 presence... " >&6; } 2697cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2698/* end confdefs.h. */ 2699#include <$2> 2700_ACEOF 2701if ac_fn_c_try_cpp "$LINENO"; then : 2702 ac_header_preproc=yes 2703else 2704 ac_header_preproc=no 2705fi 2706rm -f conftest.err conftest.i conftest.$ac_ext 2707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2708$as_echo "$ac_header_preproc" >&6; } 2709 2710# So? What about this header? 2711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2712 yes:no: ) 2713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2714$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2716$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2717 ;; 2718 no:yes:* ) 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2720$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2722$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2724$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2726$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2728$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2729( $as_echo "## ----------------------------------------------------------------- ## 2730## Report this to https://gitlab.freedesktop.org/xorg/xserver/issues ## 2731## ----------------------------------------------------------------- ##" 2732 ) | sed "s/^/$as_me: WARNING: /" >&2 2733 ;; 2734esac 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2736$as_echo_n "checking for $2... " >&6; } 2737if eval \${$3+:} false; then : 2738 $as_echo_n "(cached) " >&6 2739else 2740 eval "$3=\$ac_header_compiler" 2741fi 2742eval ac_res=\$$3 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2744$as_echo "$ac_res" >&6; } 2745fi 2746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2747 2748} # ac_fn_c_check_header_mongrel 2749 2750# ac_fn_c_try_run LINENO 2751# ---------------------- 2752# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2753# that executables *can* be run. 2754ac_fn_c_try_run () 2755{ 2756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2757 if { { ac_try="$ac_link" 2758case "(($ac_try" in 2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2760 *) ac_try_echo=$ac_try;; 2761esac 2762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2763$as_echo "$ac_try_echo"; } >&5 2764 (eval "$ac_link") 2>&5 2765 ac_status=$? 2766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2767 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2768 { { case "(($ac_try" in 2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2770 *) ac_try_echo=$ac_try;; 2771esac 2772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2773$as_echo "$ac_try_echo"; } >&5 2774 (eval "$ac_try") 2>&5 2775 ac_status=$? 2776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2777 test $ac_status = 0; }; }; then : 2778 ac_retval=0 2779else 2780 $as_echo "$as_me: program exited with status $ac_status" >&5 2781 $as_echo "$as_me: failed program was:" >&5 2782sed 's/^/| /' conftest.$ac_ext >&5 2783 2784 ac_retval=$ac_status 2785fi 2786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2788 as_fn_set_status $ac_retval 2789 2790} # ac_fn_c_try_run 2791 2792# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2793# ------------------------------------------------------- 2794# Tests whether HEADER exists and can be compiled using the include files in 2795# INCLUDES, setting the cache variable VAR accordingly. 2796ac_fn_c_check_header_compile () 2797{ 2798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2800$as_echo_n "checking for $2... " >&6; } 2801if eval \${$3+:} false; then : 2802 $as_echo_n "(cached) " >&6 2803else 2804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2805/* end confdefs.h. */ 2806$4 2807#include <$2> 2808_ACEOF 2809if ac_fn_c_try_compile "$LINENO"; then : 2810 eval "$3=yes" 2811else 2812 eval "$3=no" 2813fi 2814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2815fi 2816eval ac_res=\$$3 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2818$as_echo "$ac_res" >&6; } 2819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2820 2821} # ac_fn_c_check_header_compile 2822 2823# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2824# --------------------------------------------- 2825# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2826# accordingly. 2827ac_fn_c_check_decl () 2828{ 2829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2830 as_decl_name=`echo $2|sed 's/ *(.*//'` 2831 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2833$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2834if eval \${$3+:} false; then : 2835 $as_echo_n "(cached) " >&6 2836else 2837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2838/* end confdefs.h. */ 2839$4 2840int 2841main () 2842{ 2843#ifndef $as_decl_name 2844#ifdef __cplusplus 2845 (void) $as_decl_use; 2846#else 2847 (void) $as_decl_name; 2848#endif 2849#endif 2850 2851 ; 2852 return 0; 2853} 2854_ACEOF 2855if ac_fn_c_try_compile "$LINENO"; then : 2856 eval "$3=yes" 2857else 2858 eval "$3=no" 2859fi 2860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2861fi 2862eval ac_res=\$$3 2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2864$as_echo "$ac_res" >&6; } 2865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2866 2867} # ac_fn_c_check_decl 2868 2869# ac_fn_c_try_link LINENO 2870# ----------------------- 2871# Try to link conftest.$ac_ext, and return whether this succeeded. 2872ac_fn_c_try_link () 2873{ 2874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2875 rm -f conftest.$ac_objext conftest$ac_exeext 2876 if { { ac_try="$ac_link" 2877case "(($ac_try" in 2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2879 *) ac_try_echo=$ac_try;; 2880esac 2881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2882$as_echo "$ac_try_echo"; } >&5 2883 (eval "$ac_link") 2>conftest.err 2884 ac_status=$? 2885 if test -s conftest.err; then 2886 grep -v '^ *+' conftest.err >conftest.er1 2887 cat conftest.er1 >&5 2888 mv -f conftest.er1 conftest.err 2889 fi 2890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2891 test $ac_status = 0; } && { 2892 test -z "$ac_c_werror_flag" || 2893 test ! -s conftest.err 2894 } && test -s conftest$ac_exeext && { 2895 test "$cross_compiling" = yes || 2896 test -x conftest$ac_exeext 2897 }; then : 2898 ac_retval=0 2899else 2900 $as_echo "$as_me: failed program was:" >&5 2901sed 's/^/| /' conftest.$ac_ext >&5 2902 2903 ac_retval=1 2904fi 2905 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2906 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2907 # interfere with the next link command; also delete a directory that is 2908 # left behind by Apple's compiler. We do this before executing the actions. 2909 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2911 as_fn_set_status $ac_retval 2912 2913} # ac_fn_c_try_link 2914 2915# ac_fn_c_check_func LINENO FUNC VAR 2916# ---------------------------------- 2917# Tests whether FUNC exists, setting the cache variable VAR accordingly 2918ac_fn_c_check_func () 2919{ 2920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2922$as_echo_n "checking for $2... " >&6; } 2923if eval \${$3+:} false; then : 2924 $as_echo_n "(cached) " >&6 2925else 2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2927/* end confdefs.h. */ 2928/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2929 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2930#define $2 innocuous_$2 2931 2932/* System header to define __stub macros and hopefully few prototypes, 2933 which can conflict with char $2 (); below. 2934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2935 <limits.h> exists even on freestanding compilers. */ 2936 2937#ifdef __STDC__ 2938# include <limits.h> 2939#else 2940# include <assert.h> 2941#endif 2942 2943#undef $2 2944 2945/* Override any GCC internal prototype to avoid an error. 2946 Use char because int might match the return type of a GCC 2947 builtin and then its argument prototype would still apply. */ 2948#ifdef __cplusplus 2949extern "C" 2950#endif 2951char $2 (); 2952/* The GNU C library defines this for functions which it implements 2953 to always fail with ENOSYS. Some functions are actually named 2954 something starting with __ and the normal name is an alias. */ 2955#if defined __stub_$2 || defined __stub___$2 2956choke me 2957#endif 2958 2959int 2960main () 2961{ 2962return $2 (); 2963 ; 2964 return 0; 2965} 2966_ACEOF 2967if ac_fn_c_try_link "$LINENO"; then : 2968 eval "$3=yes" 2969else 2970 eval "$3=no" 2971fi 2972rm -f core conftest.err conftest.$ac_objext \ 2973 conftest$ac_exeext conftest.$ac_ext 2974fi 2975eval ac_res=\$$3 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2977$as_echo "$ac_res" >&6; } 2978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2979 2980} # ac_fn_c_check_func 2981 2982# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2983# -------------------------------------------- 2984# Tries to find the compile-time value of EXPR in a program that includes 2985# INCLUDES, setting VAR accordingly. Returns whether the value could be 2986# computed 2987ac_fn_c_compute_int () 2988{ 2989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2990 if test "$cross_compiling" = yes; then 2991 # Depending upon the size, compute the lo and hi bounds. 2992cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2993/* end confdefs.h. */ 2994$4 2995int 2996main () 2997{ 2998static int test_array [1 - 2 * !(($2) >= 0)]; 2999test_array [0] = 0; 3000return test_array [0]; 3001 3002 ; 3003 return 0; 3004} 3005_ACEOF 3006if ac_fn_c_try_compile "$LINENO"; then : 3007 ac_lo=0 ac_mid=0 3008 while :; do 3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3010/* end confdefs.h. */ 3011$4 3012int 3013main () 3014{ 3015static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 3016test_array [0] = 0; 3017return test_array [0]; 3018 3019 ; 3020 return 0; 3021} 3022_ACEOF 3023if ac_fn_c_try_compile "$LINENO"; then : 3024 ac_hi=$ac_mid; break 3025else 3026 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 3027 if test $ac_lo -le $ac_mid; then 3028 ac_lo= ac_hi= 3029 break 3030 fi 3031 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 3032fi 3033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3034 done 3035else 3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3037/* end confdefs.h. */ 3038$4 3039int 3040main () 3041{ 3042static int test_array [1 - 2 * !(($2) < 0)]; 3043test_array [0] = 0; 3044return test_array [0]; 3045 3046 ; 3047 return 0; 3048} 3049_ACEOF 3050if ac_fn_c_try_compile "$LINENO"; then : 3051 ac_hi=-1 ac_mid=-1 3052 while :; do 3053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3054/* end confdefs.h. */ 3055$4 3056int 3057main () 3058{ 3059static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 3060test_array [0] = 0; 3061return test_array [0]; 3062 3063 ; 3064 return 0; 3065} 3066_ACEOF 3067if ac_fn_c_try_compile "$LINENO"; then : 3068 ac_lo=$ac_mid; break 3069else 3070 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 3071 if test $ac_mid -le $ac_hi; then 3072 ac_lo= ac_hi= 3073 break 3074 fi 3075 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 3076fi 3077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3078 done 3079else 3080 ac_lo= ac_hi= 3081fi 3082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3083fi 3084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3085# Binary search between lo and hi bounds. 3086while test "x$ac_lo" != "x$ac_hi"; do 3087 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3089/* end confdefs.h. */ 3090$4 3091int 3092main () 3093{ 3094static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 3095test_array [0] = 0; 3096return test_array [0]; 3097 3098 ; 3099 return 0; 3100} 3101_ACEOF 3102if ac_fn_c_try_compile "$LINENO"; then : 3103 ac_hi=$ac_mid 3104else 3105 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 3106fi 3107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3108done 3109case $ac_lo in #(( 3110?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 3111'') ac_retval=1 ;; 3112esac 3113 else 3114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3115/* end confdefs.h. */ 3116$4 3117static long int longval () { return $2; } 3118static unsigned long int ulongval () { return $2; } 3119#include <stdio.h> 3120#include <stdlib.h> 3121int 3122main () 3123{ 3124 3125 FILE *f = fopen ("conftest.val", "w"); 3126 if (! f) 3127 return 1; 3128 if (($2) < 0) 3129 { 3130 long int i = longval (); 3131 if (i != ($2)) 3132 return 1; 3133 fprintf (f, "%ld", i); 3134 } 3135 else 3136 { 3137 unsigned long int i = ulongval (); 3138 if (i != ($2)) 3139 return 1; 3140 fprintf (f, "%lu", i); 3141 } 3142 /* Do not output a trailing newline, as this causes \r\n confusion 3143 on some platforms. */ 3144 return ferror (f) || fclose (f) != 0; 3145 3146 ; 3147 return 0; 3148} 3149_ACEOF 3150if ac_fn_c_try_run "$LINENO"; then : 3151 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 3152else 3153 ac_retval=1 3154fi 3155rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3156 conftest.$ac_objext conftest.beam conftest.$ac_ext 3157rm -f conftest.val 3158 3159 fi 3160 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3161 as_fn_set_status $ac_retval 3162 3163} # ac_fn_c_compute_int 3164 3165# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 3166# ------------------------------------------- 3167# Tests whether TYPE exists after having included INCLUDES, setting cache 3168# variable VAR accordingly. 3169ac_fn_c_check_type () 3170{ 3171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3173$as_echo_n "checking for $2... " >&6; } 3174if eval \${$3+:} false; then : 3175 $as_echo_n "(cached) " >&6 3176else 3177 eval "$3=no" 3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3179/* end confdefs.h. */ 3180$4 3181int 3182main () 3183{ 3184if (sizeof ($2)) 3185 return 0; 3186 ; 3187 return 0; 3188} 3189_ACEOF 3190if ac_fn_c_try_compile "$LINENO"; then : 3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3192/* end confdefs.h. */ 3193$4 3194int 3195main () 3196{ 3197if (sizeof (($2))) 3198 return 0; 3199 ; 3200 return 0; 3201} 3202_ACEOF 3203if ac_fn_c_try_compile "$LINENO"; then : 3204 3205else 3206 eval "$3=yes" 3207fi 3208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3209fi 3210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3211fi 3212eval ac_res=\$$3 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3214$as_echo "$ac_res" >&6; } 3215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3216 3217} # ac_fn_c_check_type 3218 3219# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 3220# ---------------------------------------------------- 3221# Tries to find if the field MEMBER exists in type AGGR, after including 3222# INCLUDES, setting cache variable VAR accordingly. 3223ac_fn_c_check_member () 3224{ 3225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 3227$as_echo_n "checking for $2.$3... " >&6; } 3228if eval \${$4+:} false; then : 3229 $as_echo_n "(cached) " >&6 3230else 3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3232/* end confdefs.h. */ 3233$5 3234int 3235main () 3236{ 3237static $2 ac_aggr; 3238if (ac_aggr.$3) 3239return 0; 3240 ; 3241 return 0; 3242} 3243_ACEOF 3244if ac_fn_c_try_compile "$LINENO"; then : 3245 eval "$4=yes" 3246else 3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3248/* end confdefs.h. */ 3249$5 3250int 3251main () 3252{ 3253static $2 ac_aggr; 3254if (sizeof ac_aggr.$3) 3255return 0; 3256 ; 3257 return 0; 3258} 3259_ACEOF 3260if ac_fn_c_try_compile "$LINENO"; then : 3261 eval "$4=yes" 3262else 3263 eval "$4=no" 3264fi 3265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3266fi 3267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3268fi 3269eval ac_res=\$$4 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3271$as_echo "$ac_res" >&6; } 3272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3273 3274} # ac_fn_c_check_member 3275cat >config.log <<_ACEOF 3276This file contains any messages produced by compilers while 3277running configure, to aid debugging if configure makes a mistake. 3278 3279It was created by xorg-server $as_me 1.20.12, which was 3280generated by GNU Autoconf 2.69. Invocation command line was 3281 3282 $ $0 $@ 3283 3284_ACEOF 3285exec 5>>config.log 3286{ 3287cat <<_ASUNAME 3288## --------- ## 3289## Platform. ## 3290## --------- ## 3291 3292hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3293uname -m = `(uname -m) 2>/dev/null || echo unknown` 3294uname -r = `(uname -r) 2>/dev/null || echo unknown` 3295uname -s = `(uname -s) 2>/dev/null || echo unknown` 3296uname -v = `(uname -v) 2>/dev/null || echo unknown` 3297 3298/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3299/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3300 3301/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3302/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3303/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3304/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3305/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3306/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3307/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3308 3309_ASUNAME 3310 3311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3312for as_dir in $PATH 3313do 3314 IFS=$as_save_IFS 3315 test -z "$as_dir" && as_dir=. 3316 $as_echo "PATH: $as_dir" 3317 done 3318IFS=$as_save_IFS 3319 3320} >&5 3321 3322cat >&5 <<_ACEOF 3323 3324 3325## ----------- ## 3326## Core tests. ## 3327## ----------- ## 3328 3329_ACEOF 3330 3331 3332# Keep a trace of the command line. 3333# Strip out --no-create and --no-recursion so they do not pile up. 3334# Strip out --silent because we don't want to record it for future runs. 3335# Also quote any args containing shell meta-characters. 3336# Make two passes to allow for proper duplicate-argument suppression. 3337ac_configure_args= 3338ac_configure_args0= 3339ac_configure_args1= 3340ac_must_keep_next=false 3341for ac_pass in 1 2 3342do 3343 for ac_arg 3344 do 3345 case $ac_arg in 3346 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3348 | -silent | --silent | --silen | --sile | --sil) 3349 continue ;; 3350 *\'*) 3351 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3352 esac 3353 case $ac_pass in 3354 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3355 2) 3356 as_fn_append ac_configure_args1 " '$ac_arg'" 3357 if test $ac_must_keep_next = true; then 3358 ac_must_keep_next=false # Got value, back to normal. 3359 else 3360 case $ac_arg in 3361 *=* | --config-cache | -C | -disable-* | --disable-* \ 3362 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3363 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3364 | -with-* | --with-* | -without-* | --without-* | --x) 3365 case "$ac_configure_args0 " in 3366 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3367 esac 3368 ;; 3369 -* ) ac_must_keep_next=true ;; 3370 esac 3371 fi 3372 as_fn_append ac_configure_args " '$ac_arg'" 3373 ;; 3374 esac 3375 done 3376done 3377{ ac_configure_args0=; unset ac_configure_args0;} 3378{ ac_configure_args1=; unset ac_configure_args1;} 3379 3380# When interrupted or exit'd, cleanup temporary files, and complete 3381# config.log. We remove comments because anyway the quotes in there 3382# would cause problems or look ugly. 3383# WARNING: Use '\'' to represent an apostrophe within the trap. 3384# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3385trap 'exit_status=$? 3386 # Save into config.log some information that might help in debugging. 3387 { 3388 echo 3389 3390 $as_echo "## ---------------- ## 3391## Cache variables. ## 3392## ---------------- ##" 3393 echo 3394 # The following way of writing the cache mishandles newlines in values, 3395( 3396 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3397 eval ac_val=\$$ac_var 3398 case $ac_val in #( 3399 *${as_nl}*) 3400 case $ac_var in #( 3401 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3402$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3403 esac 3404 case $ac_var in #( 3405 _ | IFS | as_nl) ;; #( 3406 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3407 *) { eval $ac_var=; unset $ac_var;} ;; 3408 esac ;; 3409 esac 3410 done 3411 (set) 2>&1 | 3412 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3413 *${as_nl}ac_space=\ *) 3414 sed -n \ 3415 "s/'\''/'\''\\\\'\'''\''/g; 3416 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3417 ;; #( 3418 *) 3419 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3420 ;; 3421 esac | 3422 sort 3423) 3424 echo 3425 3426 $as_echo "## ----------------- ## 3427## Output variables. ## 3428## ----------------- ##" 3429 echo 3430 for ac_var in $ac_subst_vars 3431 do 3432 eval ac_val=\$$ac_var 3433 case $ac_val in 3434 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3435 esac 3436 $as_echo "$ac_var='\''$ac_val'\''" 3437 done | sort 3438 echo 3439 3440 if test -n "$ac_subst_files"; then 3441 $as_echo "## ------------------- ## 3442## File substitutions. ## 3443## ------------------- ##" 3444 echo 3445 for ac_var in $ac_subst_files 3446 do 3447 eval ac_val=\$$ac_var 3448 case $ac_val in 3449 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3450 esac 3451 $as_echo "$ac_var='\''$ac_val'\''" 3452 done | sort 3453 echo 3454 fi 3455 3456 if test -s confdefs.h; then 3457 $as_echo "## ----------- ## 3458## confdefs.h. ## 3459## ----------- ##" 3460 echo 3461 cat confdefs.h 3462 echo 3463 fi 3464 test "$ac_signal" != 0 && 3465 $as_echo "$as_me: caught signal $ac_signal" 3466 $as_echo "$as_me: exit $exit_status" 3467 } >&5 3468 rm -f core *.core core.conftest.* && 3469 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3470 exit $exit_status 3471' 0 3472for ac_signal in 1 2 13 15; do 3473 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3474done 3475ac_signal=0 3476 3477# confdefs.h avoids OS command line length limits that DEFS can exceed. 3478rm -f -r conftest* confdefs.h 3479 3480$as_echo "/* confdefs.h */" > confdefs.h 3481 3482# Predefined preprocessor variables. 3483 3484cat >>confdefs.h <<_ACEOF 3485#define PACKAGE_NAME "$PACKAGE_NAME" 3486_ACEOF 3487 3488cat >>confdefs.h <<_ACEOF 3489#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3490_ACEOF 3491 3492cat >>confdefs.h <<_ACEOF 3493#define PACKAGE_VERSION "$PACKAGE_VERSION" 3494_ACEOF 3495 3496cat >>confdefs.h <<_ACEOF 3497#define PACKAGE_STRING "$PACKAGE_STRING" 3498_ACEOF 3499 3500cat >>confdefs.h <<_ACEOF 3501#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3502_ACEOF 3503 3504cat >>confdefs.h <<_ACEOF 3505#define PACKAGE_URL "$PACKAGE_URL" 3506_ACEOF 3507 3508 3509# Let the site file select an alternate cache file if it wants to. 3510# Prefer an explicitly selected file to automatically selected ones. 3511ac_site_file1=NONE 3512ac_site_file2=NONE 3513if test -n "$CONFIG_SITE"; then 3514 # We do not want a PATH search for config.site. 3515 case $CONFIG_SITE in #(( 3516 -*) ac_site_file1=./$CONFIG_SITE;; 3517 */*) ac_site_file1=$CONFIG_SITE;; 3518 *) ac_site_file1=./$CONFIG_SITE;; 3519 esac 3520elif test "x$prefix" != xNONE; then 3521 ac_site_file1=$prefix/share/config.site 3522 ac_site_file2=$prefix/etc/config.site 3523else 3524 ac_site_file1=$ac_default_prefix/share/config.site 3525 ac_site_file2=$ac_default_prefix/etc/config.site 3526fi 3527for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3528do 3529 test "x$ac_site_file" = xNONE && continue 3530 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3531 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3532$as_echo "$as_me: loading site script $ac_site_file" >&6;} 3533 sed 's/^/| /' "$ac_site_file" >&5 3534 . "$ac_site_file" \ 3535 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3537as_fn_error $? "failed to load site script $ac_site_file 3538See \`config.log' for more details" "$LINENO" 5; } 3539 fi 3540done 3541 3542if test -r "$cache_file"; then 3543 # Some versions of bash will fail to source /dev/null (special files 3544 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3545 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3546 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3547$as_echo "$as_me: loading cache $cache_file" >&6;} 3548 case $cache_file in 3549 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3550 *) . "./$cache_file";; 3551 esac 3552 fi 3553else 3554 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3555$as_echo "$as_me: creating cache $cache_file" >&6;} 3556 >$cache_file 3557fi 3558 3559# Check that the precious variables saved in the cache have kept the same 3560# value. 3561ac_cache_corrupted=false 3562for ac_var in $ac_precious_vars; do 3563 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3564 eval ac_new_set=\$ac_env_${ac_var}_set 3565 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3566 eval ac_new_val=\$ac_env_${ac_var}_value 3567 case $ac_old_set,$ac_new_set in 3568 set,) 3569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3570$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3571 ac_cache_corrupted=: ;; 3572 ,set) 3573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3574$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3575 ac_cache_corrupted=: ;; 3576 ,);; 3577 *) 3578 if test "x$ac_old_val" != "x$ac_new_val"; then 3579 # differences in whitespace do not lead to failure. 3580 ac_old_val_w=`echo x $ac_old_val` 3581 ac_new_val_w=`echo x $ac_new_val` 3582 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3584$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3585 ac_cache_corrupted=: 3586 else 3587 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3588$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3589 eval $ac_var=\$ac_old_val 3590 fi 3591 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3592$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3593 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3594$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3595 fi;; 3596 esac 3597 # Pass precious variables to config.status. 3598 if test "$ac_new_set" = set; then 3599 case $ac_new_val in 3600 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3601 *) ac_arg=$ac_var=$ac_new_val ;; 3602 esac 3603 case " $ac_configure_args " in 3604 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3605 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3606 esac 3607 fi 3608done 3609if $ac_cache_corrupted; then 3610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3613$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3614 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3615fi 3616## -------------------- ## 3617## Main body of script. ## 3618## -------------------- ## 3619 3620ac_ext=c 3621ac_cpp='$CPP $CPPFLAGS' 3622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3624ac_compiler_gnu=$ac_cv_c_compiler_gnu 3625 3626 3627RELEASE_DATE="2021-07-08" 3628RELEASE_NAME="Lemon Pepper Chicken" 3629 3630 3631am__api_version='1.16' 3632 3633ac_aux_dir= 3634for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3635 if test -f "$ac_dir/install-sh"; then 3636 ac_aux_dir=$ac_dir 3637 ac_install_sh="$ac_aux_dir/install-sh -c" 3638 break 3639 elif test -f "$ac_dir/install.sh"; then 3640 ac_aux_dir=$ac_dir 3641 ac_install_sh="$ac_aux_dir/install.sh -c" 3642 break 3643 elif test -f "$ac_dir/shtool"; then 3644 ac_aux_dir=$ac_dir 3645 ac_install_sh="$ac_aux_dir/shtool install -c" 3646 break 3647 fi 3648done 3649if test -z "$ac_aux_dir"; then 3650 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3651fi 3652 3653# These three variables are undocumented and unsupported, 3654# and are intended to be withdrawn in a future Autoconf release. 3655# They can cause serious problems if a builder's source tree is in a directory 3656# whose full name contains unusual characters. 3657ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3658ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3659ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3660 3661 3662# Find a good install program. We prefer a C program (faster), 3663# so one script is as good as another. But avoid the broken or 3664# incompatible versions: 3665# SysV /etc/install, /usr/sbin/install 3666# SunOS /usr/etc/install 3667# IRIX /sbin/install 3668# AIX /bin/install 3669# AmigaOS /C/install, which installs bootblocks on floppy discs 3670# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3671# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3672# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3673# OS/2's system install, which has a completely different semantic 3674# ./install, which can be erroneously created by make from ./install.sh. 3675# Reject install programs that cannot install multiple files. 3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3677$as_echo_n "checking for a BSD-compatible install... " >&6; } 3678if test -z "$INSTALL"; then 3679if ${ac_cv_path_install+:} false; then : 3680 $as_echo_n "(cached) " >&6 3681else 3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3683for as_dir in $PATH 3684do 3685 IFS=$as_save_IFS 3686 test -z "$as_dir" && as_dir=. 3687 # Account for people who put trailing slashes in PATH elements. 3688case $as_dir/ in #(( 3689 ./ | .// | /[cC]/* | \ 3690 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3691 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3692 /usr/ucb/* ) ;; 3693 *) 3694 # OSF1 and SCO ODT 3.0 have their own names for install. 3695 # Don't use installbsd from OSF since it installs stuff as root 3696 # by default. 3697 for ac_prog in ginstall scoinst install; do 3698 for ac_exec_ext in '' $ac_executable_extensions; do 3699 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3700 if test $ac_prog = install && 3701 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3702 # AIX install. It has an incompatible calling convention. 3703 : 3704 elif test $ac_prog = install && 3705 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3706 # program-specific install script used by HP pwplus--don't use. 3707 : 3708 else 3709 rm -rf conftest.one conftest.two conftest.dir 3710 echo one > conftest.one 3711 echo two > conftest.two 3712 mkdir conftest.dir 3713 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3714 test -s conftest.one && test -s conftest.two && 3715 test -s conftest.dir/conftest.one && 3716 test -s conftest.dir/conftest.two 3717 then 3718 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3719 break 3 3720 fi 3721 fi 3722 fi 3723 done 3724 done 3725 ;; 3726esac 3727 3728 done 3729IFS=$as_save_IFS 3730 3731rm -rf conftest.one conftest.two conftest.dir 3732 3733fi 3734 if test "${ac_cv_path_install+set}" = set; then 3735 INSTALL=$ac_cv_path_install 3736 else 3737 # As a last resort, use the slow shell script. Don't cache a 3738 # value for INSTALL within a source directory, because that will 3739 # break other packages using the cache if that directory is 3740 # removed, or if the value is a relative name. 3741 INSTALL=$ac_install_sh 3742 fi 3743fi 3744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3745$as_echo "$INSTALL" >&6; } 3746 3747# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3748# It thinks the first close brace ends the variable substitution. 3749test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3750 3751test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3752 3753test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3754 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3756$as_echo_n "checking whether build environment is sane... " >&6; } 3757# Reject unsafe characters in $srcdir or the absolute working directory 3758# name. Accept space and tab only in the latter. 3759am_lf=' 3760' 3761case `pwd` in 3762 *[\\\"\#\$\&\'\`$am_lf]*) 3763 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3764esac 3765case $srcdir in 3766 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3767 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3768esac 3769 3770# Do 'set' in a subshell so we don't clobber the current shell's 3771# arguments. Must try -L first in case configure is actually a 3772# symlink; some systems play weird games with the mod time of symlinks 3773# (eg FreeBSD returns the mod time of the symlink's containing 3774# directory). 3775if ( 3776 am_has_slept=no 3777 for am_try in 1 2; do 3778 echo "timestamp, slept: $am_has_slept" > conftest.file 3779 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3780 if test "$*" = "X"; then 3781 # -L didn't work. 3782 set X `ls -t "$srcdir/configure" conftest.file` 3783 fi 3784 if test "$*" != "X $srcdir/configure conftest.file" \ 3785 && test "$*" != "X conftest.file $srcdir/configure"; then 3786 3787 # If neither matched, then we have a broken ls. This can happen 3788 # if, for instance, CONFIG_SHELL is bash and it inherits a 3789 # broken ls alias from the environment. This has actually 3790 # happened. Such a system could not be considered "sane". 3791 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3792 alias in your environment" "$LINENO" 5 3793 fi 3794 if test "$2" = conftest.file || test $am_try -eq 2; then 3795 break 3796 fi 3797 # Just in case. 3798 sleep 1 3799 am_has_slept=yes 3800 done 3801 test "$2" = conftest.file 3802 ) 3803then 3804 # Ok. 3805 : 3806else 3807 as_fn_error $? "newly created file is older than distributed files! 3808Check your system clock" "$LINENO" 5 3809fi 3810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3811$as_echo "yes" >&6; } 3812# If we didn't sleep, we still need to ensure time stamps of config.status and 3813# generated files are strictly newer. 3814am_sleep_pid= 3815if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3816 ( sleep 1 ) & 3817 am_sleep_pid=$! 3818fi 3819 3820rm -f conftest.file 3821 3822test "$program_prefix" != NONE && 3823 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3824# Use a double $ so make ignores it. 3825test "$program_suffix" != NONE && 3826 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3827# Double any \ or $. 3828# By default was `s,x,x', remove it if useless. 3829ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3830program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3831 3832# Expand $ac_aux_dir to an absolute path. 3833am_aux_dir=`cd "$ac_aux_dir" && pwd` 3834 3835if test x"${MISSING+set}" != xset; then 3836 MISSING="\${SHELL} '$am_aux_dir/missing'" 3837fi 3838# Use eval to expand $SHELL 3839if eval "$MISSING --is-lightweight"; then 3840 am_missing_run="$MISSING " 3841else 3842 am_missing_run= 3843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3844$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3845fi 3846 3847if test x"${install_sh+set}" != xset; then 3848 case $am_aux_dir in 3849 *\ * | *\ *) 3850 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3851 *) 3852 install_sh="\${SHELL} $am_aux_dir/install-sh" 3853 esac 3854fi 3855 3856# Installed binaries are usually stripped using 'strip' when the user 3857# run "make install-strip". However 'strip' might not be the right 3858# tool to use in cross-compilation environments, therefore Automake 3859# will honor the 'STRIP' environment variable to overrule this program. 3860if test "$cross_compiling" != no; then 3861 if test -n "$ac_tool_prefix"; then 3862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3863set dummy ${ac_tool_prefix}strip; ac_word=$2 3864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3865$as_echo_n "checking for $ac_word... " >&6; } 3866if ${ac_cv_prog_STRIP+:} false; then : 3867 $as_echo_n "(cached) " >&6 3868else 3869 if test -n "$STRIP"; then 3870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3871else 3872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3873for as_dir in $PATH 3874do 3875 IFS=$as_save_IFS 3876 test -z "$as_dir" && as_dir=. 3877 for ac_exec_ext in '' $ac_executable_extensions; do 3878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3879 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3881 break 2 3882 fi 3883done 3884 done 3885IFS=$as_save_IFS 3886 3887fi 3888fi 3889STRIP=$ac_cv_prog_STRIP 3890if test -n "$STRIP"; then 3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3892$as_echo "$STRIP" >&6; } 3893else 3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3895$as_echo "no" >&6; } 3896fi 3897 3898 3899fi 3900if test -z "$ac_cv_prog_STRIP"; then 3901 ac_ct_STRIP=$STRIP 3902 # Extract the first word of "strip", so it can be a program name with args. 3903set dummy strip; ac_word=$2 3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3905$as_echo_n "checking for $ac_word... " >&6; } 3906if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3907 $as_echo_n "(cached) " >&6 3908else 3909 if test -n "$ac_ct_STRIP"; then 3910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3911else 3912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3913for as_dir in $PATH 3914do 3915 IFS=$as_save_IFS 3916 test -z "$as_dir" && as_dir=. 3917 for ac_exec_ext in '' $ac_executable_extensions; do 3918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3919 ac_cv_prog_ac_ct_STRIP="strip" 3920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3921 break 2 3922 fi 3923done 3924 done 3925IFS=$as_save_IFS 3926 3927fi 3928fi 3929ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3930if test -n "$ac_ct_STRIP"; then 3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3932$as_echo "$ac_ct_STRIP" >&6; } 3933else 3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3935$as_echo "no" >&6; } 3936fi 3937 3938 if test "x$ac_ct_STRIP" = x; then 3939 STRIP=":" 3940 else 3941 case $cross_compiling:$ac_tool_warned in 3942yes:) 3943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3945ac_tool_warned=yes ;; 3946esac 3947 STRIP=$ac_ct_STRIP 3948 fi 3949else 3950 STRIP="$ac_cv_prog_STRIP" 3951fi 3952 3953fi 3954INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3955 3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3957$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3958if test -z "$MKDIR_P"; then 3959 if ${ac_cv_path_mkdir+:} false; then : 3960 $as_echo_n "(cached) " >&6 3961else 3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3963for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3964do 3965 IFS=$as_save_IFS 3966 test -z "$as_dir" && as_dir=. 3967 for ac_prog in mkdir gmkdir; do 3968 for ac_exec_ext in '' $ac_executable_extensions; do 3969 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3970 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3971 'mkdir (GNU coreutils) '* | \ 3972 'mkdir (coreutils) '* | \ 3973 'mkdir (fileutils) '4.1*) 3974 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3975 break 3;; 3976 esac 3977 done 3978 done 3979 done 3980IFS=$as_save_IFS 3981 3982fi 3983 3984 test -d ./--version && rmdir ./--version 3985 if test "${ac_cv_path_mkdir+set}" = set; then 3986 MKDIR_P="$ac_cv_path_mkdir -p" 3987 else 3988 # As a last resort, use the slow shell script. Don't cache a 3989 # value for MKDIR_P within a source directory, because that will 3990 # break other packages using the cache if that directory is 3991 # removed, or if the value is a relative name. 3992 MKDIR_P="$ac_install_sh -d" 3993 fi 3994fi 3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3996$as_echo "$MKDIR_P" >&6; } 3997 3998for ac_prog in gawk mawk nawk awk 3999do 4000 # Extract the first word of "$ac_prog", so it can be a program name with args. 4001set dummy $ac_prog; ac_word=$2 4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4003$as_echo_n "checking for $ac_word... " >&6; } 4004if ${ac_cv_prog_AWK+:} false; then : 4005 $as_echo_n "(cached) " >&6 4006else 4007 if test -n "$AWK"; then 4008 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4009else 4010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4011for as_dir in $PATH 4012do 4013 IFS=$as_save_IFS 4014 test -z "$as_dir" && as_dir=. 4015 for ac_exec_ext in '' $ac_executable_extensions; do 4016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4017 ac_cv_prog_AWK="$ac_prog" 4018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4019 break 2 4020 fi 4021done 4022 done 4023IFS=$as_save_IFS 4024 4025fi 4026fi 4027AWK=$ac_cv_prog_AWK 4028if test -n "$AWK"; then 4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4030$as_echo "$AWK" >&6; } 4031else 4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4033$as_echo "no" >&6; } 4034fi 4035 4036 4037 test -n "$AWK" && break 4038done 4039 4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4041$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4042set x ${MAKE-make} 4043ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4044if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4045 $as_echo_n "(cached) " >&6 4046else 4047 cat >conftest.make <<\_ACEOF 4048SHELL = /bin/sh 4049all: 4050 @echo '@@@%%%=$(MAKE)=@@@%%%' 4051_ACEOF 4052# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4053case `${MAKE-make} -f conftest.make 2>/dev/null` in 4054 *@@@%%%=?*=@@@%%%*) 4055 eval ac_cv_prog_make_${ac_make}_set=yes;; 4056 *) 4057 eval ac_cv_prog_make_${ac_make}_set=no;; 4058esac 4059rm -f conftest.make 4060fi 4061if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4063$as_echo "yes" >&6; } 4064 SET_MAKE= 4065else 4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4067$as_echo "no" >&6; } 4068 SET_MAKE="MAKE=${MAKE-make}" 4069fi 4070 4071rm -rf .tst 2>/dev/null 4072mkdir .tst 2>/dev/null 4073if test -d .tst; then 4074 am__leading_dot=. 4075else 4076 am__leading_dot=_ 4077fi 4078rmdir .tst 2>/dev/null 4079 4080# Check whether --enable-silent-rules was given. 4081if test "${enable_silent_rules+set}" = set; then : 4082 enableval=$enable_silent_rules; 4083fi 4084 4085case $enable_silent_rules in # ((( 4086 yes) AM_DEFAULT_VERBOSITY=0;; 4087 no) AM_DEFAULT_VERBOSITY=1;; 4088 *) AM_DEFAULT_VERBOSITY=1;; 4089esac 4090am_make=${MAKE-make} 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4092$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4093if ${am_cv_make_support_nested_variables+:} false; then : 4094 $as_echo_n "(cached) " >&6 4095else 4096 if $as_echo 'TRUE=$(BAR$(V)) 4097BAR0=false 4098BAR1=true 4099V=1 4100am__doit: 4101 @$(TRUE) 4102.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4103 am_cv_make_support_nested_variables=yes 4104else 4105 am_cv_make_support_nested_variables=no 4106fi 4107fi 4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4109$as_echo "$am_cv_make_support_nested_variables" >&6; } 4110if test $am_cv_make_support_nested_variables = yes; then 4111 AM_V='$(V)' 4112 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4113else 4114 AM_V=$AM_DEFAULT_VERBOSITY 4115 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4116fi 4117AM_BACKSLASH='\' 4118 4119if test "`cd $srcdir && pwd`" != "`pwd`"; then 4120 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4121 # is not polluted with repeated "-I." 4122 am__isrc=' -I$(srcdir)' 4123 # test to see if srcdir already configured 4124 if test -f $srcdir/config.status; then 4125 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4126 fi 4127fi 4128 4129# test whether we have cygpath 4130if test -z "$CYGPATH_W"; then 4131 if (cygpath --version) >/dev/null 2>/dev/null; then 4132 CYGPATH_W='cygpath -w' 4133 else 4134 CYGPATH_W=echo 4135 fi 4136fi 4137 4138 4139# Define the identity of the package. 4140 PACKAGE='xorg-server' 4141 VERSION='1.20.12' 4142 4143 4144cat >>confdefs.h <<_ACEOF 4145#define PACKAGE "$PACKAGE" 4146_ACEOF 4147 4148 4149cat >>confdefs.h <<_ACEOF 4150#define VERSION "$VERSION" 4151_ACEOF 4152 4153# Some tools Automake needs. 4154 4155ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4156 4157 4158AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4159 4160 4161AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4162 4163 4164AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4165 4166 4167MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4168 4169# For better backward compatibility. To be removed once Automake 1.9.x 4170# dies out for good. For more background, see: 4171# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4172# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4173mkdir_p='$(MKDIR_P)' 4174 4175# We need awk for the "check" target (and possibly the TAP driver). The 4176# system "awk" is bad on some platforms. 4177# Always define AMTAR for backward compatibility. Yes, it's still used 4178# in the wild :-( We should find a proper way to deprecate it ... 4179AMTAR='$${TAR-tar}' 4180 4181 4182# We'll loop over all known methods to create a tar archive until one works. 4183_am_tools='gnutar pax cpio none' 4184 4185am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4186 4187 4188 4189 4190 4191 4192# POSIX will say in a future version that running "rm -f" with no argument 4193# is OK; and we want to be able to make that assumption in our Makefile 4194# recipes. So use an aggressive probe to check that the usage we want is 4195# actually supported "in the wild" to an acceptable degree. 4196# See automake bug#10828. 4197# To make any issue more visible, cause the running configure to be aborted 4198# by default if the 'rm' program in use doesn't match our expectations; the 4199# user can still override this though. 4200if rm -f && rm -fr && rm -rf; then : OK; else 4201 cat >&2 <<'END' 4202Oops! 4203 4204Your 'rm' program seems unable to run without file operands specified 4205on the command line, even when the '-f' option is present. This is contrary 4206to the behaviour of most rm programs out there, and not conforming with 4207the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4208 4209Please tell bug-automake@gnu.org about your system, including the value 4210of your $PATH and any error possibly output before this message. This 4211can help us improve future automake versions. 4212 4213END 4214 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4215 echo 'Configuration will proceed anyway, since you have set the' >&2 4216 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4217 echo >&2 4218 else 4219 cat >&2 <<'END' 4220Aborting the configuration process, to ensure you take notice of the issue. 4221 4222You can download and install GNU coreutils to get an 'rm' implementation 4223that behaves properly: <https://www.gnu.org/software/coreutils/>. 4224 4225If you want to complete the configuration process using your problematic 4226'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4227to "yes", and re-run configure. 4228 4229END 4230 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4231 fi 4232fi 4233 4234DEPDIR="${am__leading_dot}deps" 4235 4236ac_config_commands="$ac_config_commands depfiles" 4237 4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4239$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4240cat > confinc.mk << 'END' 4241am__doit: 4242 @echo this is the am__doit target >confinc.out 4243.PHONY: am__doit 4244END 4245am__include="#" 4246am__quote= 4247# BSD make does it like this. 4248echo '.include "confinc.mk" # ignored' > confmf.BSD 4249# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4250echo 'include confinc.mk # ignored' > confmf.GNU 4251_am_result=no 4252for s in GNU BSD; do 4253 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4254 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4255 ac_status=$? 4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4257 (exit $ac_status); } 4258 case $?:`cat confinc.out 2>/dev/null` in #( 4259 '0:this is the am__doit target') : 4260 case $s in #( 4261 BSD) : 4262 am__include='.include' am__quote='"' ;; #( 4263 *) : 4264 am__include='include' am__quote='' ;; 4265esac ;; #( 4266 *) : 4267 ;; 4268esac 4269 if test "$am__include" != "#"; then 4270 _am_result="yes ($s style)" 4271 break 4272 fi 4273done 4274rm -f confinc.* confmf.* 4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4276$as_echo "${_am_result}" >&6; } 4277 4278# Check whether --enable-dependency-tracking was given. 4279if test "${enable_dependency_tracking+set}" = set; then : 4280 enableval=$enable_dependency_tracking; 4281fi 4282 4283if test "x$enable_dependency_tracking" != xno; then 4284 am_depcomp="$ac_aux_dir/depcomp" 4285 AMDEPBACKSLASH='\' 4286 am__nodep='_no' 4287fi 4288 if test "x$enable_dependency_tracking" != xno; then 4289 AMDEP_TRUE= 4290 AMDEP_FALSE='#' 4291else 4292 AMDEP_TRUE='#' 4293 AMDEP_FALSE= 4294fi 4295 4296 4297ac_ext=c 4298ac_cpp='$CPP $CPPFLAGS' 4299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4301ac_compiler_gnu=$ac_cv_c_compiler_gnu 4302if test -n "$ac_tool_prefix"; then 4303 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4304set dummy ${ac_tool_prefix}gcc; ac_word=$2 4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4306$as_echo_n "checking for $ac_word... " >&6; } 4307if ${ac_cv_prog_CC+:} false; then : 4308 $as_echo_n "(cached) " >&6 4309else 4310 if test -n "$CC"; then 4311 ac_cv_prog_CC="$CC" # Let the user override the test. 4312else 4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4314for as_dir in $PATH 4315do 4316 IFS=$as_save_IFS 4317 test -z "$as_dir" && as_dir=. 4318 for ac_exec_ext in '' $ac_executable_extensions; do 4319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4320 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4322 break 2 4323 fi 4324done 4325 done 4326IFS=$as_save_IFS 4327 4328fi 4329fi 4330CC=$ac_cv_prog_CC 4331if test -n "$CC"; then 4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4333$as_echo "$CC" >&6; } 4334else 4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4336$as_echo "no" >&6; } 4337fi 4338 4339 4340fi 4341if test -z "$ac_cv_prog_CC"; then 4342 ac_ct_CC=$CC 4343 # Extract the first word of "gcc", so it can be a program name with args. 4344set dummy gcc; ac_word=$2 4345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4346$as_echo_n "checking for $ac_word... " >&6; } 4347if ${ac_cv_prog_ac_ct_CC+:} false; then : 4348 $as_echo_n "(cached) " >&6 4349else 4350 if test -n "$ac_ct_CC"; then 4351 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4352else 4353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4354for as_dir in $PATH 4355do 4356 IFS=$as_save_IFS 4357 test -z "$as_dir" && as_dir=. 4358 for ac_exec_ext in '' $ac_executable_extensions; do 4359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4360 ac_cv_prog_ac_ct_CC="gcc" 4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4362 break 2 4363 fi 4364done 4365 done 4366IFS=$as_save_IFS 4367 4368fi 4369fi 4370ac_ct_CC=$ac_cv_prog_ac_ct_CC 4371if test -n "$ac_ct_CC"; then 4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4373$as_echo "$ac_ct_CC" >&6; } 4374else 4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4376$as_echo "no" >&6; } 4377fi 4378 4379 if test "x$ac_ct_CC" = x; then 4380 CC="" 4381 else 4382 case $cross_compiling:$ac_tool_warned in 4383yes:) 4384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4386ac_tool_warned=yes ;; 4387esac 4388 CC=$ac_ct_CC 4389 fi 4390else 4391 CC="$ac_cv_prog_CC" 4392fi 4393 4394if test -z "$CC"; then 4395 if test -n "$ac_tool_prefix"; then 4396 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4397set dummy ${ac_tool_prefix}cc; ac_word=$2 4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4399$as_echo_n "checking for $ac_word... " >&6; } 4400if ${ac_cv_prog_CC+:} false; then : 4401 $as_echo_n "(cached) " >&6 4402else 4403 if test -n "$CC"; then 4404 ac_cv_prog_CC="$CC" # Let the user override the test. 4405else 4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4407for as_dir in $PATH 4408do 4409 IFS=$as_save_IFS 4410 test -z "$as_dir" && as_dir=. 4411 for ac_exec_ext in '' $ac_executable_extensions; do 4412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4413 ac_cv_prog_CC="${ac_tool_prefix}cc" 4414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4415 break 2 4416 fi 4417done 4418 done 4419IFS=$as_save_IFS 4420 4421fi 4422fi 4423CC=$ac_cv_prog_CC 4424if test -n "$CC"; then 4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4426$as_echo "$CC" >&6; } 4427else 4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4429$as_echo "no" >&6; } 4430fi 4431 4432 4433 fi 4434fi 4435if test -z "$CC"; then 4436 # Extract the first word of "cc", so it can be a program name with args. 4437set dummy cc; ac_word=$2 4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4439$as_echo_n "checking for $ac_word... " >&6; } 4440if ${ac_cv_prog_CC+:} false; then : 4441 $as_echo_n "(cached) " >&6 4442else 4443 if test -n "$CC"; then 4444 ac_cv_prog_CC="$CC" # Let the user override the test. 4445else 4446 ac_prog_rejected=no 4447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4448for as_dir in $PATH 4449do 4450 IFS=$as_save_IFS 4451 test -z "$as_dir" && as_dir=. 4452 for ac_exec_ext in '' $ac_executable_extensions; do 4453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4454 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4455 ac_prog_rejected=yes 4456 continue 4457 fi 4458 ac_cv_prog_CC="cc" 4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4460 break 2 4461 fi 4462done 4463 done 4464IFS=$as_save_IFS 4465 4466if test $ac_prog_rejected = yes; then 4467 # We found a bogon in the path, so make sure we never use it. 4468 set dummy $ac_cv_prog_CC 4469 shift 4470 if test $# != 0; then 4471 # We chose a different compiler from the bogus one. 4472 # However, it has the same basename, so the bogon will be chosen 4473 # first if we set CC to just the basename; use the full file name. 4474 shift 4475 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4476 fi 4477fi 4478fi 4479fi 4480CC=$ac_cv_prog_CC 4481if test -n "$CC"; then 4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4483$as_echo "$CC" >&6; } 4484else 4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4486$as_echo "no" >&6; } 4487fi 4488 4489 4490fi 4491if test -z "$CC"; then 4492 if test -n "$ac_tool_prefix"; then 4493 for ac_prog in cl.exe 4494 do 4495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4496set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4498$as_echo_n "checking for $ac_word... " >&6; } 4499if ${ac_cv_prog_CC+:} false; then : 4500 $as_echo_n "(cached) " >&6 4501else 4502 if test -n "$CC"; then 4503 ac_cv_prog_CC="$CC" # Let the user override the test. 4504else 4505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4506for as_dir in $PATH 4507do 4508 IFS=$as_save_IFS 4509 test -z "$as_dir" && as_dir=. 4510 for ac_exec_ext in '' $ac_executable_extensions; do 4511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4512 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4514 break 2 4515 fi 4516done 4517 done 4518IFS=$as_save_IFS 4519 4520fi 4521fi 4522CC=$ac_cv_prog_CC 4523if test -n "$CC"; then 4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4525$as_echo "$CC" >&6; } 4526else 4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4528$as_echo "no" >&6; } 4529fi 4530 4531 4532 test -n "$CC" && break 4533 done 4534fi 4535if test -z "$CC"; then 4536 ac_ct_CC=$CC 4537 for ac_prog in cl.exe 4538do 4539 # Extract the first word of "$ac_prog", so it can be a program name with args. 4540set dummy $ac_prog; ac_word=$2 4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4542$as_echo_n "checking for $ac_word... " >&6; } 4543if ${ac_cv_prog_ac_ct_CC+:} false; then : 4544 $as_echo_n "(cached) " >&6 4545else 4546 if test -n "$ac_ct_CC"; then 4547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4548else 4549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4550for as_dir in $PATH 4551do 4552 IFS=$as_save_IFS 4553 test -z "$as_dir" && as_dir=. 4554 for ac_exec_ext in '' $ac_executable_extensions; do 4555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4556 ac_cv_prog_ac_ct_CC="$ac_prog" 4557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4558 break 2 4559 fi 4560done 4561 done 4562IFS=$as_save_IFS 4563 4564fi 4565fi 4566ac_ct_CC=$ac_cv_prog_ac_ct_CC 4567if test -n "$ac_ct_CC"; then 4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4569$as_echo "$ac_ct_CC" >&6; } 4570else 4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4572$as_echo "no" >&6; } 4573fi 4574 4575 4576 test -n "$ac_ct_CC" && break 4577done 4578 4579 if test "x$ac_ct_CC" = x; then 4580 CC="" 4581 else 4582 case $cross_compiling:$ac_tool_warned in 4583yes:) 4584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4586ac_tool_warned=yes ;; 4587esac 4588 CC=$ac_ct_CC 4589 fi 4590fi 4591 4592fi 4593 4594 4595test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4597as_fn_error $? "no acceptable C compiler found in \$PATH 4598See \`config.log' for more details" "$LINENO" 5; } 4599 4600# Provide some information about the compiler. 4601$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4602set X $ac_compile 4603ac_compiler=$2 4604for ac_option in --version -v -V -qversion; do 4605 { { ac_try="$ac_compiler $ac_option >&5" 4606case "(($ac_try" in 4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4608 *) ac_try_echo=$ac_try;; 4609esac 4610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4611$as_echo "$ac_try_echo"; } >&5 4612 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4613 ac_status=$? 4614 if test -s conftest.err; then 4615 sed '10a\ 4616... rest of stderr output deleted ... 4617 10q' conftest.err >conftest.er1 4618 cat conftest.er1 >&5 4619 fi 4620 rm -f conftest.er1 conftest.err 4621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4622 test $ac_status = 0; } 4623done 4624 4625cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4626/* end confdefs.h. */ 4627 4628int 4629main () 4630{ 4631 4632 ; 4633 return 0; 4634} 4635_ACEOF 4636ac_clean_files_save=$ac_clean_files 4637ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4638# Try to create an executable without -o first, disregard a.out. 4639# It will help us diagnose broken compilers, and finding out an intuition 4640# of exeext. 4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4642$as_echo_n "checking whether the C compiler works... " >&6; } 4643ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4644 4645# The possible output files: 4646ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4647 4648ac_rmfiles= 4649for ac_file in $ac_files 4650do 4651 case $ac_file in 4652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4653 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4654 esac 4655done 4656rm -f $ac_rmfiles 4657 4658if { { ac_try="$ac_link_default" 4659case "(($ac_try" in 4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4661 *) ac_try_echo=$ac_try;; 4662esac 4663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4664$as_echo "$ac_try_echo"; } >&5 4665 (eval "$ac_link_default") 2>&5 4666 ac_status=$? 4667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4668 test $ac_status = 0; }; then : 4669 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4670# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4671# in a Makefile. We should not override ac_cv_exeext if it was cached, 4672# so that the user can short-circuit this test for compilers unknown to 4673# Autoconf. 4674for ac_file in $ac_files '' 4675do 4676 test -f "$ac_file" || continue 4677 case $ac_file in 4678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4679 ;; 4680 [ab].out ) 4681 # We found the default executable, but exeext='' is most 4682 # certainly right. 4683 break;; 4684 *.* ) 4685 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4686 then :; else 4687 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4688 fi 4689 # We set ac_cv_exeext here because the later test for it is not 4690 # safe: cross compilers may not add the suffix if given an `-o' 4691 # argument, so we may need to know it at that point already. 4692 # Even if this section looks crufty: it has the advantage of 4693 # actually working. 4694 break;; 4695 * ) 4696 break;; 4697 esac 4698done 4699test "$ac_cv_exeext" = no && ac_cv_exeext= 4700 4701else 4702 ac_file='' 4703fi 4704if test -z "$ac_file"; then : 4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4706$as_echo "no" >&6; } 4707$as_echo "$as_me: failed program was:" >&5 4708sed 's/^/| /' conftest.$ac_ext >&5 4709 4710{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4712as_fn_error 77 "C compiler cannot create executables 4713See \`config.log' for more details" "$LINENO" 5; } 4714else 4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4716$as_echo "yes" >&6; } 4717fi 4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4719$as_echo_n "checking for C compiler default output file name... " >&6; } 4720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4721$as_echo "$ac_file" >&6; } 4722ac_exeext=$ac_cv_exeext 4723 4724rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4725ac_clean_files=$ac_clean_files_save 4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4727$as_echo_n "checking for suffix of executables... " >&6; } 4728if { { ac_try="$ac_link" 4729case "(($ac_try" in 4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4731 *) ac_try_echo=$ac_try;; 4732esac 4733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4734$as_echo "$ac_try_echo"; } >&5 4735 (eval "$ac_link") 2>&5 4736 ac_status=$? 4737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4738 test $ac_status = 0; }; then : 4739 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4740# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4741# work properly (i.e., refer to `conftest.exe'), while it won't with 4742# `rm'. 4743for ac_file in conftest.exe conftest conftest.*; do 4744 test -f "$ac_file" || continue 4745 case $ac_file in 4746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4747 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4748 break;; 4749 * ) break;; 4750 esac 4751done 4752else 4753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4755as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4756See \`config.log' for more details" "$LINENO" 5; } 4757fi 4758rm -f conftest conftest$ac_cv_exeext 4759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4760$as_echo "$ac_cv_exeext" >&6; } 4761 4762rm -f conftest.$ac_ext 4763EXEEXT=$ac_cv_exeext 4764ac_exeext=$EXEEXT 4765cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4766/* end confdefs.h. */ 4767#include <stdio.h> 4768int 4769main () 4770{ 4771FILE *f = fopen ("conftest.out", "w"); 4772 return ferror (f) || fclose (f) != 0; 4773 4774 ; 4775 return 0; 4776} 4777_ACEOF 4778ac_clean_files="$ac_clean_files conftest.out" 4779# Check that the compiler produces executables we can run. If not, either 4780# the compiler is broken, or we cross compile. 4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4782$as_echo_n "checking whether we are cross compiling... " >&6; } 4783if test "$cross_compiling" != yes; then 4784 { { ac_try="$ac_link" 4785case "(($ac_try" in 4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4787 *) ac_try_echo=$ac_try;; 4788esac 4789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4790$as_echo "$ac_try_echo"; } >&5 4791 (eval "$ac_link") 2>&5 4792 ac_status=$? 4793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4794 test $ac_status = 0; } 4795 if { ac_try='./conftest$ac_cv_exeext' 4796 { { case "(($ac_try" in 4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4798 *) ac_try_echo=$ac_try;; 4799esac 4800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4801$as_echo "$ac_try_echo"; } >&5 4802 (eval "$ac_try") 2>&5 4803 ac_status=$? 4804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4805 test $ac_status = 0; }; }; then 4806 cross_compiling=no 4807 else 4808 if test "$cross_compiling" = maybe; then 4809 cross_compiling=yes 4810 else 4811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4813as_fn_error $? "cannot run C compiled programs. 4814If you meant to cross compile, use \`--host'. 4815See \`config.log' for more details" "$LINENO" 5; } 4816 fi 4817 fi 4818fi 4819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4820$as_echo "$cross_compiling" >&6; } 4821 4822rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4823ac_clean_files=$ac_clean_files_save 4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4825$as_echo_n "checking for suffix of object files... " >&6; } 4826if ${ac_cv_objext+:} false; then : 4827 $as_echo_n "(cached) " >&6 4828else 4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4830/* end confdefs.h. */ 4831 4832int 4833main () 4834{ 4835 4836 ; 4837 return 0; 4838} 4839_ACEOF 4840rm -f conftest.o conftest.obj 4841if { { ac_try="$ac_compile" 4842case "(($ac_try" in 4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4844 *) ac_try_echo=$ac_try;; 4845esac 4846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4847$as_echo "$ac_try_echo"; } >&5 4848 (eval "$ac_compile") 2>&5 4849 ac_status=$? 4850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4851 test $ac_status = 0; }; then : 4852 for ac_file in conftest.o conftest.obj conftest.*; do 4853 test -f "$ac_file" || continue; 4854 case $ac_file in 4855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4856 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4857 break;; 4858 esac 4859done 4860else 4861 $as_echo "$as_me: failed program was:" >&5 4862sed 's/^/| /' conftest.$ac_ext >&5 4863 4864{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4866as_fn_error $? "cannot compute suffix of object files: cannot compile 4867See \`config.log' for more details" "$LINENO" 5; } 4868fi 4869rm -f conftest.$ac_cv_objext conftest.$ac_ext 4870fi 4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4872$as_echo "$ac_cv_objext" >&6; } 4873OBJEXT=$ac_cv_objext 4874ac_objext=$OBJEXT 4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4876$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4877if ${ac_cv_c_compiler_gnu+:} false; then : 4878 $as_echo_n "(cached) " >&6 4879else 4880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4881/* end confdefs.h. */ 4882 4883int 4884main () 4885{ 4886#ifndef __GNUC__ 4887 choke me 4888#endif 4889 4890 ; 4891 return 0; 4892} 4893_ACEOF 4894if ac_fn_c_try_compile "$LINENO"; then : 4895 ac_compiler_gnu=yes 4896else 4897 ac_compiler_gnu=no 4898fi 4899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4900ac_cv_c_compiler_gnu=$ac_compiler_gnu 4901 4902fi 4903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4904$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4905if test $ac_compiler_gnu = yes; then 4906 GCC=yes 4907else 4908 GCC= 4909fi 4910ac_test_CFLAGS=${CFLAGS+set} 4911ac_save_CFLAGS=$CFLAGS 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4913$as_echo_n "checking whether $CC accepts -g... " >&6; } 4914if ${ac_cv_prog_cc_g+:} false; then : 4915 $as_echo_n "(cached) " >&6 4916else 4917 ac_save_c_werror_flag=$ac_c_werror_flag 4918 ac_c_werror_flag=yes 4919 ac_cv_prog_cc_g=no 4920 CFLAGS="-g" 4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4922/* end confdefs.h. */ 4923 4924int 4925main () 4926{ 4927 4928 ; 4929 return 0; 4930} 4931_ACEOF 4932if ac_fn_c_try_compile "$LINENO"; then : 4933 ac_cv_prog_cc_g=yes 4934else 4935 CFLAGS="" 4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4937/* end confdefs.h. */ 4938 4939int 4940main () 4941{ 4942 4943 ; 4944 return 0; 4945} 4946_ACEOF 4947if ac_fn_c_try_compile "$LINENO"; then : 4948 4949else 4950 ac_c_werror_flag=$ac_save_c_werror_flag 4951 CFLAGS="-g" 4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4953/* end confdefs.h. */ 4954 4955int 4956main () 4957{ 4958 4959 ; 4960 return 0; 4961} 4962_ACEOF 4963if ac_fn_c_try_compile "$LINENO"; then : 4964 ac_cv_prog_cc_g=yes 4965fi 4966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4967fi 4968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4969fi 4970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4971 ac_c_werror_flag=$ac_save_c_werror_flag 4972fi 4973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4974$as_echo "$ac_cv_prog_cc_g" >&6; } 4975if test "$ac_test_CFLAGS" = set; then 4976 CFLAGS=$ac_save_CFLAGS 4977elif test $ac_cv_prog_cc_g = yes; then 4978 if test "$GCC" = yes; then 4979 CFLAGS="-g -O2" 4980 else 4981 CFLAGS="-g" 4982 fi 4983else 4984 if test "$GCC" = yes; then 4985 CFLAGS="-O2" 4986 else 4987 CFLAGS= 4988 fi 4989fi 4990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4991$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4992if ${ac_cv_prog_cc_c89+:} false; then : 4993 $as_echo_n "(cached) " >&6 4994else 4995 ac_cv_prog_cc_c89=no 4996ac_save_CC=$CC 4997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4998/* end confdefs.h. */ 4999#include <stdarg.h> 5000#include <stdio.h> 5001struct stat; 5002/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5003struct buf { int x; }; 5004FILE * (*rcsopen) (struct buf *, struct stat *, int); 5005static char *e (p, i) 5006 char **p; 5007 int i; 5008{ 5009 return p[i]; 5010} 5011static char *f (char * (*g) (char **, int), char **p, ...) 5012{ 5013 char *s; 5014 va_list v; 5015 va_start (v,p); 5016 s = g (p, va_arg (v,int)); 5017 va_end (v); 5018 return s; 5019} 5020 5021/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5022 function prototypes and stuff, but not '\xHH' hex character constants. 5023 These don't provoke an error unfortunately, instead are silently treated 5024 as 'x'. The following induces an error, until -std is added to get 5025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5026 array size at least. It's necessary to write '\x00'==0 to get something 5027 that's true only with -std. */ 5028int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5029 5030/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5031 inside strings and character constants. */ 5032#define FOO(x) 'x' 5033int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5034 5035int test (int i, double x); 5036struct s1 {int (*f) (int a);}; 5037struct s2 {int (*f) (double a);}; 5038int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5039int argc; 5040char **argv; 5041int 5042main () 5043{ 5044return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5045 ; 5046 return 0; 5047} 5048_ACEOF 5049for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5050 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5051do 5052 CC="$ac_save_CC $ac_arg" 5053 if ac_fn_c_try_compile "$LINENO"; then : 5054 ac_cv_prog_cc_c89=$ac_arg 5055fi 5056rm -f core conftest.err conftest.$ac_objext 5057 test "x$ac_cv_prog_cc_c89" != "xno" && break 5058done 5059rm -f conftest.$ac_ext 5060CC=$ac_save_CC 5061 5062fi 5063# AC_CACHE_VAL 5064case "x$ac_cv_prog_cc_c89" in 5065 x) 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5067$as_echo "none needed" >&6; } ;; 5068 xno) 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5070$as_echo "unsupported" >&6; } ;; 5071 *) 5072 CC="$CC $ac_cv_prog_cc_c89" 5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5074$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5075esac 5076if test "x$ac_cv_prog_cc_c89" != xno; then : 5077 5078fi 5079 5080ac_ext=c 5081ac_cpp='$CPP $CPPFLAGS' 5082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5084ac_compiler_gnu=$ac_cv_c_compiler_gnu 5085 5086ac_ext=c 5087ac_cpp='$CPP $CPPFLAGS' 5088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5090ac_compiler_gnu=$ac_cv_c_compiler_gnu 5091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5092$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5093if ${am_cv_prog_cc_c_o+:} false; then : 5094 $as_echo_n "(cached) " >&6 5095else 5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5097/* end confdefs.h. */ 5098 5099int 5100main () 5101{ 5102 5103 ; 5104 return 0; 5105} 5106_ACEOF 5107 # Make sure it works both with $CC and with simple cc. 5108 # Following AC_PROG_CC_C_O, we do the test twice because some 5109 # compilers refuse to overwrite an existing .o file with -o, 5110 # though they will create one. 5111 am_cv_prog_cc_c_o=yes 5112 for am_i in 1 2; do 5113 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5114 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5115 ac_status=$? 5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5117 (exit $ac_status); } \ 5118 && test -f conftest2.$ac_objext; then 5119 : OK 5120 else 5121 am_cv_prog_cc_c_o=no 5122 break 5123 fi 5124 done 5125 rm -f core conftest* 5126 unset am_i 5127fi 5128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5129$as_echo "$am_cv_prog_cc_c_o" >&6; } 5130if test "$am_cv_prog_cc_c_o" != yes; then 5131 # Losing compiler, so override with the script. 5132 # FIXME: It is wrong to rewrite CC. 5133 # But if we don't then we get into trouble of one sort or another. 5134 # A longer-term fix would be to have automake use am__CC in this case, 5135 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5136 CC="$am_aux_dir/compile $CC" 5137fi 5138ac_ext=c 5139ac_cpp='$CPP $CPPFLAGS' 5140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5142ac_compiler_gnu=$ac_cv_c_compiler_gnu 5143 5144 5145depcc="$CC" am_compiler_list= 5146 5147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5148$as_echo_n "checking dependency style of $depcc... " >&6; } 5149if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5150 $as_echo_n "(cached) " >&6 5151else 5152 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5153 # We make a subdir and do the tests there. Otherwise we can end up 5154 # making bogus files that we don't know about and never remove. For 5155 # instance it was reported that on HP-UX the gcc test will end up 5156 # making a dummy file named 'D' -- because '-MD' means "put the output 5157 # in D". 5158 rm -rf conftest.dir 5159 mkdir conftest.dir 5160 # Copy depcomp to subdir because otherwise we won't find it if we're 5161 # using a relative directory. 5162 cp "$am_depcomp" conftest.dir 5163 cd conftest.dir 5164 # We will build objects and dependencies in a subdirectory because 5165 # it helps to detect inapplicable dependency modes. For instance 5166 # both Tru64's cc and ICC support -MD to output dependencies as a 5167 # side effect of compilation, but ICC will put the dependencies in 5168 # the current directory while Tru64 will put them in the object 5169 # directory. 5170 mkdir sub 5171 5172 am_cv_CC_dependencies_compiler_type=none 5173 if test "$am_compiler_list" = ""; then 5174 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5175 fi 5176 am__universal=false 5177 case " $depcc " in #( 5178 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5179 esac 5180 5181 for depmode in $am_compiler_list; do 5182 # Setup a source with many dependencies, because some compilers 5183 # like to wrap large dependency lists on column 80 (with \), and 5184 # we should not choose a depcomp mode which is confused by this. 5185 # 5186 # We need to recreate these files for each test, as the compiler may 5187 # overwrite some of them when testing with obscure command lines. 5188 # This happens at least with the AIX C compiler. 5189 : > sub/conftest.c 5190 for i in 1 2 3 4 5 6; do 5191 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5192 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5193 # Solaris 10 /bin/sh. 5194 echo '/* dummy */' > sub/conftst$i.h 5195 done 5196 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5197 5198 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5199 # mode. It turns out that the SunPro C++ compiler does not properly 5200 # handle '-M -o', and we need to detect this. Also, some Intel 5201 # versions had trouble with output in subdirs. 5202 am__obj=sub/conftest.${OBJEXT-o} 5203 am__minus_obj="-o $am__obj" 5204 case $depmode in 5205 gcc) 5206 # This depmode causes a compiler race in universal mode. 5207 test "$am__universal" = false || continue 5208 ;; 5209 nosideeffect) 5210 # After this tag, mechanisms are not by side-effect, so they'll 5211 # only be used when explicitly requested. 5212 if test "x$enable_dependency_tracking" = xyes; then 5213 continue 5214 else 5215 break 5216 fi 5217 ;; 5218 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5219 # This compiler won't grok '-c -o', but also, the minuso test has 5220 # not run yet. These depmodes are late enough in the game, and 5221 # so weak that their functioning should not be impacted. 5222 am__obj=conftest.${OBJEXT-o} 5223 am__minus_obj= 5224 ;; 5225 none) break ;; 5226 esac 5227 if depmode=$depmode \ 5228 source=sub/conftest.c object=$am__obj \ 5229 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5230 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5231 >/dev/null 2>conftest.err && 5232 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5233 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5234 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5235 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5236 # icc doesn't choke on unknown options, it will just issue warnings 5237 # or remarks (even with -Werror). So we grep stderr for any message 5238 # that says an option was ignored or not supported. 5239 # When given -MP, icc 7.0 and 7.1 complain thusly: 5240 # icc: Command line warning: ignoring option '-M'; no argument required 5241 # The diagnosis changed in icc 8.0: 5242 # icc: Command line remark: option '-MP' not supported 5243 if (grep 'ignoring option' conftest.err || 5244 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5245 am_cv_CC_dependencies_compiler_type=$depmode 5246 break 5247 fi 5248 fi 5249 done 5250 5251 cd .. 5252 rm -rf conftest.dir 5253else 5254 am_cv_CC_dependencies_compiler_type=none 5255fi 5256 5257fi 5258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5259$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5260CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5261 5262 if 5263 test "x$enable_dependency_tracking" != xno \ 5264 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5265 am__fastdepCC_TRUE= 5266 am__fastdepCC_FALSE='#' 5267else 5268 am__fastdepCC_TRUE='#' 5269 am__fastdepCC_FALSE= 5270fi 5271 5272 5273 5274ac_ext=c 5275ac_cpp='$CPP $CPPFLAGS' 5276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5278ac_compiler_gnu=$ac_cv_c_compiler_gnu 5279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5280$as_echo_n "checking how to run the C preprocessor... " >&6; } 5281# On Suns, sometimes $CPP names a directory. 5282if test -n "$CPP" && test -d "$CPP"; then 5283 CPP= 5284fi 5285if test -z "$CPP"; then 5286 if ${ac_cv_prog_CPP+:} false; then : 5287 $as_echo_n "(cached) " >&6 5288else 5289 # Double quotes because CPP needs to be expanded 5290 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5291 do 5292 ac_preproc_ok=false 5293for ac_c_preproc_warn_flag in '' yes 5294do 5295 # Use a header file that comes with gcc, so configuring glibc 5296 # with a fresh cross-compiler works. 5297 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5298 # <limits.h> exists even on freestanding compilers. 5299 # On the NeXT, cc -E runs the code through the compiler's parser, 5300 # not just through cpp. "Syntax error" is here to catch this case. 5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5302/* end confdefs.h. */ 5303#ifdef __STDC__ 5304# include <limits.h> 5305#else 5306# include <assert.h> 5307#endif 5308 Syntax error 5309_ACEOF 5310if ac_fn_c_try_cpp "$LINENO"; then : 5311 5312else 5313 # Broken: fails on valid input. 5314continue 5315fi 5316rm -f conftest.err conftest.i conftest.$ac_ext 5317 5318 # OK, works on sane cases. Now check whether nonexistent headers 5319 # can be detected and how. 5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5321/* end confdefs.h. */ 5322#include <ac_nonexistent.h> 5323_ACEOF 5324if ac_fn_c_try_cpp "$LINENO"; then : 5325 # Broken: success on invalid input. 5326continue 5327else 5328 # Passes both tests. 5329ac_preproc_ok=: 5330break 5331fi 5332rm -f conftest.err conftest.i conftest.$ac_ext 5333 5334done 5335# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5336rm -f conftest.i conftest.err conftest.$ac_ext 5337if $ac_preproc_ok; then : 5338 break 5339fi 5340 5341 done 5342 ac_cv_prog_CPP=$CPP 5343 5344fi 5345 CPP=$ac_cv_prog_CPP 5346else 5347 ac_cv_prog_CPP=$CPP 5348fi 5349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5350$as_echo "$CPP" >&6; } 5351ac_preproc_ok=false 5352for ac_c_preproc_warn_flag in '' yes 5353do 5354 # Use a header file that comes with gcc, so configuring glibc 5355 # with a fresh cross-compiler works. 5356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5357 # <limits.h> exists even on freestanding compilers. 5358 # On the NeXT, cc -E runs the code through the compiler's parser, 5359 # not just through cpp. "Syntax error" is here to catch this case. 5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5361/* end confdefs.h. */ 5362#ifdef __STDC__ 5363# include <limits.h> 5364#else 5365# include <assert.h> 5366#endif 5367 Syntax error 5368_ACEOF 5369if ac_fn_c_try_cpp "$LINENO"; then : 5370 5371else 5372 # Broken: fails on valid input. 5373continue 5374fi 5375rm -f conftest.err conftest.i conftest.$ac_ext 5376 5377 # OK, works on sane cases. Now check whether nonexistent headers 5378 # can be detected and how. 5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5380/* end confdefs.h. */ 5381#include <ac_nonexistent.h> 5382_ACEOF 5383if ac_fn_c_try_cpp "$LINENO"; then : 5384 # Broken: success on invalid input. 5385continue 5386else 5387 # Passes both tests. 5388ac_preproc_ok=: 5389break 5390fi 5391rm -f conftest.err conftest.i conftest.$ac_ext 5392 5393done 5394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5395rm -f conftest.i conftest.err conftest.$ac_ext 5396if $ac_preproc_ok; then : 5397 5398else 5399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5401as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5402See \`config.log' for more details" "$LINENO" 5; } 5403fi 5404 5405ac_ext=c 5406ac_cpp='$CPP $CPPFLAGS' 5407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5409ac_compiler_gnu=$ac_cv_c_compiler_gnu 5410 5411 5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5413$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5414if ${ac_cv_path_GREP+:} false; then : 5415 $as_echo_n "(cached) " >&6 5416else 5417 if test -z "$GREP"; then 5418 ac_path_GREP_found=false 5419 # Loop through the user's path and test for each of PROGNAME-LIST 5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5421for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5422do 5423 IFS=$as_save_IFS 5424 test -z "$as_dir" && as_dir=. 5425 for ac_prog in grep ggrep; do 5426 for ac_exec_ext in '' $ac_executable_extensions; do 5427 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5428 as_fn_executable_p "$ac_path_GREP" || continue 5429# Check for GNU ac_path_GREP and select it if it is found. 5430 # Check for GNU $ac_path_GREP 5431case `"$ac_path_GREP" --version 2>&1` in 5432*GNU*) 5433 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5434*) 5435 ac_count=0 5436 $as_echo_n 0123456789 >"conftest.in" 5437 while : 5438 do 5439 cat "conftest.in" "conftest.in" >"conftest.tmp" 5440 mv "conftest.tmp" "conftest.in" 5441 cp "conftest.in" "conftest.nl" 5442 $as_echo 'GREP' >> "conftest.nl" 5443 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5445 as_fn_arith $ac_count + 1 && ac_count=$as_val 5446 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5447 # Best one so far, save it but keep looking for a better one 5448 ac_cv_path_GREP="$ac_path_GREP" 5449 ac_path_GREP_max=$ac_count 5450 fi 5451 # 10*(2^10) chars as input seems more than enough 5452 test $ac_count -gt 10 && break 5453 done 5454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5455esac 5456 5457 $ac_path_GREP_found && break 3 5458 done 5459 done 5460 done 5461IFS=$as_save_IFS 5462 if test -z "$ac_cv_path_GREP"; then 5463 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5464 fi 5465else 5466 ac_cv_path_GREP=$GREP 5467fi 5468 5469fi 5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5471$as_echo "$ac_cv_path_GREP" >&6; } 5472 GREP="$ac_cv_path_GREP" 5473 5474 5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5476$as_echo_n "checking for egrep... " >&6; } 5477if ${ac_cv_path_EGREP+:} false; then : 5478 $as_echo_n "(cached) " >&6 5479else 5480 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5481 then ac_cv_path_EGREP="$GREP -E" 5482 else 5483 if test -z "$EGREP"; then 5484 ac_path_EGREP_found=false 5485 # Loop through the user's path and test for each of PROGNAME-LIST 5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5487for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5488do 5489 IFS=$as_save_IFS 5490 test -z "$as_dir" && as_dir=. 5491 for ac_prog in egrep; do 5492 for ac_exec_ext in '' $ac_executable_extensions; do 5493 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5494 as_fn_executable_p "$ac_path_EGREP" || continue 5495# Check for GNU ac_path_EGREP and select it if it is found. 5496 # Check for GNU $ac_path_EGREP 5497case `"$ac_path_EGREP" --version 2>&1` in 5498*GNU*) 5499 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5500*) 5501 ac_count=0 5502 $as_echo_n 0123456789 >"conftest.in" 5503 while : 5504 do 5505 cat "conftest.in" "conftest.in" >"conftest.tmp" 5506 mv "conftest.tmp" "conftest.in" 5507 cp "conftest.in" "conftest.nl" 5508 $as_echo 'EGREP' >> "conftest.nl" 5509 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5510 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5511 as_fn_arith $ac_count + 1 && ac_count=$as_val 5512 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5513 # Best one so far, save it but keep looking for a better one 5514 ac_cv_path_EGREP="$ac_path_EGREP" 5515 ac_path_EGREP_max=$ac_count 5516 fi 5517 # 10*(2^10) chars as input seems more than enough 5518 test $ac_count -gt 10 && break 5519 done 5520 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5521esac 5522 5523 $ac_path_EGREP_found && break 3 5524 done 5525 done 5526 done 5527IFS=$as_save_IFS 5528 if test -z "$ac_cv_path_EGREP"; then 5529 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5530 fi 5531else 5532 ac_cv_path_EGREP=$EGREP 5533fi 5534 5535 fi 5536fi 5537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5538$as_echo "$ac_cv_path_EGREP" >&6; } 5539 EGREP="$ac_cv_path_EGREP" 5540 5541 5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5543$as_echo_n "checking for ANSI C header files... " >&6; } 5544if ${ac_cv_header_stdc+:} false; then : 5545 $as_echo_n "(cached) " >&6 5546else 5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5548/* end confdefs.h. */ 5549#include <stdlib.h> 5550#include <stdarg.h> 5551#include <string.h> 5552#include <float.h> 5553 5554int 5555main () 5556{ 5557 5558 ; 5559 return 0; 5560} 5561_ACEOF 5562if ac_fn_c_try_compile "$LINENO"; then : 5563 ac_cv_header_stdc=yes 5564else 5565 ac_cv_header_stdc=no 5566fi 5567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5568 5569if test $ac_cv_header_stdc = yes; then 5570 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5572/* end confdefs.h. */ 5573#include <string.h> 5574 5575_ACEOF 5576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5577 $EGREP "memchr" >/dev/null 2>&1; then : 5578 5579else 5580 ac_cv_header_stdc=no 5581fi 5582rm -f conftest* 5583 5584fi 5585 5586if test $ac_cv_header_stdc = yes; then 5587 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5589/* end confdefs.h. */ 5590#include <stdlib.h> 5591 5592_ACEOF 5593if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5594 $EGREP "free" >/dev/null 2>&1; then : 5595 5596else 5597 ac_cv_header_stdc=no 5598fi 5599rm -f conftest* 5600 5601fi 5602 5603if test $ac_cv_header_stdc = yes; then 5604 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5605 if test "$cross_compiling" = yes; then : 5606 : 5607else 5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5609/* end confdefs.h. */ 5610#include <ctype.h> 5611#include <stdlib.h> 5612#if ((' ' & 0x0FF) == 0x020) 5613# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5614# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5615#else 5616# define ISLOWER(c) \ 5617 (('a' <= (c) && (c) <= 'i') \ 5618 || ('j' <= (c) && (c) <= 'r') \ 5619 || ('s' <= (c) && (c) <= 'z')) 5620# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5621#endif 5622 5623#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5624int 5625main () 5626{ 5627 int i; 5628 for (i = 0; i < 256; i++) 5629 if (XOR (islower (i), ISLOWER (i)) 5630 || toupper (i) != TOUPPER (i)) 5631 return 2; 5632 return 0; 5633} 5634_ACEOF 5635if ac_fn_c_try_run "$LINENO"; then : 5636 5637else 5638 ac_cv_header_stdc=no 5639fi 5640rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5641 conftest.$ac_objext conftest.beam conftest.$ac_ext 5642fi 5643 5644fi 5645fi 5646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5647$as_echo "$ac_cv_header_stdc" >&6; } 5648if test $ac_cv_header_stdc = yes; then 5649 5650$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5651 5652fi 5653 5654# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5655for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5656 inttypes.h stdint.h unistd.h 5657do : 5658 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5659ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5660" 5661if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5662 cat >>confdefs.h <<_ACEOF 5663#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5664_ACEOF 5665 5666fi 5667 5668done 5669 5670 5671 5672 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5673if test "x$ac_cv_header_minix_config_h" = xyes; then : 5674 MINIX=yes 5675else 5676 MINIX= 5677fi 5678 5679 5680 if test "$MINIX" = yes; then 5681 5682$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5683 5684 5685$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5686 5687 5688$as_echo "#define _MINIX 1" >>confdefs.h 5689 5690 fi 5691 5692 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5694$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5695if ${ac_cv_safe_to_define___extensions__+:} false; then : 5696 $as_echo_n "(cached) " >&6 5697else 5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5699/* end confdefs.h. */ 5700 5701# define __EXTENSIONS__ 1 5702 $ac_includes_default 5703int 5704main () 5705{ 5706 5707 ; 5708 return 0; 5709} 5710_ACEOF 5711if ac_fn_c_try_compile "$LINENO"; then : 5712 ac_cv_safe_to_define___extensions__=yes 5713else 5714 ac_cv_safe_to_define___extensions__=no 5715fi 5716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5717fi 5718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5719$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5720 test $ac_cv_safe_to_define___extensions__ = yes && 5721 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5722 5723 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5724 5725 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5726 5727 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5728 5729 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5730 5731 5732 5733# Require xorg-macros minimum of 1.14 for XORG_COMPILER_BRAND in XORG_DEFAULT_OPTIONS 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5746$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5747if ${ac_cv_prog_cc_c99+:} false; then : 5748 $as_echo_n "(cached) " >&6 5749else 5750 ac_cv_prog_cc_c99=no 5751ac_save_CC=$CC 5752cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5753/* end confdefs.h. */ 5754#include <stdarg.h> 5755#include <stdbool.h> 5756#include <stdlib.h> 5757#include <wchar.h> 5758#include <stdio.h> 5759 5760// Check varargs macros. These examples are taken from C99 6.10.3.5. 5761#define debug(...) fprintf (stderr, __VA_ARGS__) 5762#define showlist(...) puts (#__VA_ARGS__) 5763#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5764static void 5765test_varargs_macros (void) 5766{ 5767 int x = 1234; 5768 int y = 5678; 5769 debug ("Flag"); 5770 debug ("X = %d\n", x); 5771 showlist (The first, second, and third items.); 5772 report (x>y, "x is %d but y is %d", x, y); 5773} 5774 5775// Check long long types. 5776#define BIG64 18446744073709551615ull 5777#define BIG32 4294967295ul 5778#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5779#if !BIG_OK 5780 your preprocessor is broken; 5781#endif 5782#if BIG_OK 5783#else 5784 your preprocessor is broken; 5785#endif 5786static long long int bignum = -9223372036854775807LL; 5787static unsigned long long int ubignum = BIG64; 5788 5789struct incomplete_array 5790{ 5791 int datasize; 5792 double data[]; 5793}; 5794 5795struct named_init { 5796 int number; 5797 const wchar_t *name; 5798 double average; 5799}; 5800 5801typedef const char *ccp; 5802 5803static inline int 5804test_restrict (ccp restrict text) 5805{ 5806 // See if C++-style comments work. 5807 // Iterate through items via the restricted pointer. 5808 // Also check for declarations in for loops. 5809 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5810 continue; 5811 return 0; 5812} 5813 5814// Check varargs and va_copy. 5815static void 5816test_varargs (const char *format, ...) 5817{ 5818 va_list args; 5819 va_start (args, format); 5820 va_list args_copy; 5821 va_copy (args_copy, args); 5822 5823 const char *str; 5824 int number; 5825 float fnumber; 5826 5827 while (*format) 5828 { 5829 switch (*format++) 5830 { 5831 case 's': // string 5832 str = va_arg (args_copy, const char *); 5833 break; 5834 case 'd': // int 5835 number = va_arg (args_copy, int); 5836 break; 5837 case 'f': // float 5838 fnumber = va_arg (args_copy, double); 5839 break; 5840 default: 5841 break; 5842 } 5843 } 5844 va_end (args_copy); 5845 va_end (args); 5846} 5847 5848int 5849main () 5850{ 5851 5852 // Check bool. 5853 _Bool success = false; 5854 5855 // Check restrict. 5856 if (test_restrict ("String literal") == 0) 5857 success = true; 5858 char *restrict newvar = "Another string"; 5859 5860 // Check varargs. 5861 test_varargs ("s, d' f .", "string", 65, 34.234); 5862 test_varargs_macros (); 5863 5864 // Check flexible array members. 5865 struct incomplete_array *ia = 5866 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5867 ia->datasize = 10; 5868 for (int i = 0; i < ia->datasize; ++i) 5869 ia->data[i] = i * 1.234; 5870 5871 // Check named initializers. 5872 struct named_init ni = { 5873 .number = 34, 5874 .name = L"Test wide string", 5875 .average = 543.34343, 5876 }; 5877 5878 ni.number = 58; 5879 5880 int dynamic_array[ni.number]; 5881 dynamic_array[ni.number - 1] = 543; 5882 5883 // work around unused variable warnings 5884 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5885 || dynamic_array[ni.number - 1] != 543); 5886 5887 ; 5888 return 0; 5889} 5890_ACEOF 5891for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5892do 5893 CC="$ac_save_CC $ac_arg" 5894 if ac_fn_c_try_compile "$LINENO"; then : 5895 ac_cv_prog_cc_c99=$ac_arg 5896fi 5897rm -f core conftest.err conftest.$ac_objext 5898 test "x$ac_cv_prog_cc_c99" != "xno" && break 5899done 5900rm -f conftest.$ac_ext 5901CC=$ac_save_CC 5902 5903fi 5904# AC_CACHE_VAL 5905case "x$ac_cv_prog_cc_c99" in 5906 x) 5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5908$as_echo "none needed" >&6; } ;; 5909 xno) 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5911$as_echo "unsupported" >&6; } ;; 5912 *) 5913 CC="$CC $ac_cv_prog_cc_c99" 5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5915$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5916esac 5917if test "x$ac_cv_prog_cc_c99" != xno; then : 5918 5919fi 5920 5921 5922 5923 5924 5925 5926ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 5927if test "x$ac_cv_have_decl___clang__" = xyes; then : 5928 CLANGCC="yes" 5929else 5930 CLANGCC="no" 5931fi 5932 5933ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 5934if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 5935 INTELCC="yes" 5936else 5937 INTELCC="no" 5938fi 5939 5940ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 5941if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 5942 SUNCC="yes" 5943else 5944 SUNCC="no" 5945fi 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5956 if test -n "$ac_tool_prefix"; then 5957 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5958set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5960$as_echo_n "checking for $ac_word... " >&6; } 5961if ${ac_cv_path_PKG_CONFIG+:} false; then : 5962 $as_echo_n "(cached) " >&6 5963else 5964 case $PKG_CONFIG in 5965 [\\/]* | ?:[\\/]*) 5966 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5967 ;; 5968 *) 5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5970for as_dir in $PATH 5971do 5972 IFS=$as_save_IFS 5973 test -z "$as_dir" && as_dir=. 5974 for ac_exec_ext in '' $ac_executable_extensions; do 5975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5976 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5978 break 2 5979 fi 5980done 5981 done 5982IFS=$as_save_IFS 5983 5984 ;; 5985esac 5986fi 5987PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5988if test -n "$PKG_CONFIG"; then 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5990$as_echo "$PKG_CONFIG" >&6; } 5991else 5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5993$as_echo "no" >&6; } 5994fi 5995 5996 5997fi 5998if test -z "$ac_cv_path_PKG_CONFIG"; then 5999 ac_pt_PKG_CONFIG=$PKG_CONFIG 6000 # Extract the first word of "pkg-config", so it can be a program name with args. 6001set dummy pkg-config; ac_word=$2 6002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6003$as_echo_n "checking for $ac_word... " >&6; } 6004if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 6005 $as_echo_n "(cached) " >&6 6006else 6007 case $ac_pt_PKG_CONFIG in 6008 [\\/]* | ?:[\\/]*) 6009 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 6010 ;; 6011 *) 6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6013for as_dir in $PATH 6014do 6015 IFS=$as_save_IFS 6016 test -z "$as_dir" && as_dir=. 6017 for ac_exec_ext in '' $ac_executable_extensions; do 6018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6019 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6021 break 2 6022 fi 6023done 6024 done 6025IFS=$as_save_IFS 6026 6027 ;; 6028esac 6029fi 6030ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 6031if test -n "$ac_pt_PKG_CONFIG"; then 6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 6033$as_echo "$ac_pt_PKG_CONFIG" >&6; } 6034else 6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6036$as_echo "no" >&6; } 6037fi 6038 6039 if test "x$ac_pt_PKG_CONFIG" = x; then 6040 PKG_CONFIG="" 6041 else 6042 case $cross_compiling:$ac_tool_warned in 6043yes:) 6044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6046ac_tool_warned=yes ;; 6047esac 6048 PKG_CONFIG=$ac_pt_PKG_CONFIG 6049 fi 6050else 6051 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 6052fi 6053 6054fi 6055if test -n "$PKG_CONFIG"; then 6056 _pkg_min_version=0.9.0 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 6058$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 6059 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6061$as_echo "yes" >&6; } 6062 else 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6064$as_echo "no" >&6; } 6065 PKG_CONFIG="" 6066 fi 6067fi 6068# Make sure we can run config.sub. 6069$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6070 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6071 6072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6073$as_echo_n "checking build system type... " >&6; } 6074if ${ac_cv_build+:} false; then : 6075 $as_echo_n "(cached) " >&6 6076else 6077 ac_build_alias=$build_alias 6078test "x$ac_build_alias" = x && 6079 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6080test "x$ac_build_alias" = x && 6081 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6082ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6083 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6084 6085fi 6086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6087$as_echo "$ac_cv_build" >&6; } 6088case $ac_cv_build in 6089*-*-*) ;; 6090*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6091esac 6092build=$ac_cv_build 6093ac_save_IFS=$IFS; IFS='-' 6094set x $ac_cv_build 6095shift 6096build_cpu=$1 6097build_vendor=$2 6098shift; shift 6099# Remember, the first character of IFS is used to create $*, 6100# except with old shells: 6101build_os=$* 6102IFS=$ac_save_IFS 6103case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6104 6105 6106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6107$as_echo_n "checking host system type... " >&6; } 6108if ${ac_cv_host+:} false; then : 6109 $as_echo_n "(cached) " >&6 6110else 6111 if test "x$host_alias" = x; then 6112 ac_cv_host=$ac_cv_build 6113else 6114 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6115 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6116fi 6117 6118fi 6119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6120$as_echo "$ac_cv_host" >&6; } 6121case $ac_cv_host in 6122*-*-*) ;; 6123*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6124esac 6125host=$ac_cv_host 6126ac_save_IFS=$IFS; IFS='-' 6127set x $ac_cv_host 6128shift 6129host_cpu=$1 6130host_vendor=$2 6131shift; shift 6132# Remember, the first character of IFS is used to create $*, 6133# except with old shells: 6134host_os=$* 6135IFS=$ac_save_IFS 6136case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6137 6138 6139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6140$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6141if ${ac_cv_path_SED+:} false; then : 6142 $as_echo_n "(cached) " >&6 6143else 6144 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6145 for ac_i in 1 2 3 4 5 6 7; do 6146 ac_script="$ac_script$as_nl$ac_script" 6147 done 6148 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6149 { ac_script=; unset ac_script;} 6150 if test -z "$SED"; then 6151 ac_path_SED_found=false 6152 # Loop through the user's path and test for each of PROGNAME-LIST 6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6154for as_dir in $PATH 6155do 6156 IFS=$as_save_IFS 6157 test -z "$as_dir" && as_dir=. 6158 for ac_prog in sed gsed; do 6159 for ac_exec_ext in '' $ac_executable_extensions; do 6160 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6161 as_fn_executable_p "$ac_path_SED" || continue 6162# Check for GNU ac_path_SED and select it if it is found. 6163 # Check for GNU $ac_path_SED 6164case `"$ac_path_SED" --version 2>&1` in 6165*GNU*) 6166 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6167*) 6168 ac_count=0 6169 $as_echo_n 0123456789 >"conftest.in" 6170 while : 6171 do 6172 cat "conftest.in" "conftest.in" >"conftest.tmp" 6173 mv "conftest.tmp" "conftest.in" 6174 cp "conftest.in" "conftest.nl" 6175 $as_echo '' >> "conftest.nl" 6176 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6178 as_fn_arith $ac_count + 1 && ac_count=$as_val 6179 if test $ac_count -gt ${ac_path_SED_max-0}; then 6180 # Best one so far, save it but keep looking for a better one 6181 ac_cv_path_SED="$ac_path_SED" 6182 ac_path_SED_max=$ac_count 6183 fi 6184 # 10*(2^10) chars as input seems more than enough 6185 test $ac_count -gt 10 && break 6186 done 6187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6188esac 6189 6190 $ac_path_SED_found && break 3 6191 done 6192 done 6193 done 6194IFS=$as_save_IFS 6195 if test -z "$ac_cv_path_SED"; then 6196 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6197 fi 6198else 6199 ac_cv_path_SED=$SED 6200fi 6201 6202fi 6203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6204$as_echo "$ac_cv_path_SED" >&6; } 6205 SED="$ac_cv_path_SED" 6206 rm -f conftest.sed 6207 6208 6209 6210 6211 6212 6213# Check whether --enable-selective-werror was given. 6214if test "${enable_selective_werror+set}" = set; then : 6215 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 6216else 6217 SELECTIVE_WERROR=yes 6218fi 6219 6220 6221 6222 6223 6224# -v is too short to test reliably with XORG_TESTSET_CFLAG 6225if test "x$SUNCC" = "xyes"; then 6226 BASE_CFLAGS="-v" 6227else 6228 BASE_CFLAGS="" 6229fi 6230 6231# This chunk of warnings were those that existed in the legacy CWARNFLAGS 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245xorg_testset_save_CFLAGS="$CFLAGS" 6246 6247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6250$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6251if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6252 $as_echo_n "(cached) " >&6 6253else 6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6255/* end confdefs.h. */ 6256int i; 6257_ACEOF 6258if ac_fn_c_try_compile "$LINENO"; then : 6259 xorg_cv_cc_flag_unknown_warning_option=yes 6260else 6261 xorg_cv_cc_flag_unknown_warning_option=no 6262fi 6263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6264fi 6265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6266$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6267 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6268 CFLAGS="$xorg_testset_save_CFLAGS" 6269fi 6270 6271if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6274 fi 6275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6277$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6278if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6279 $as_echo_n "(cached) " >&6 6280else 6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6282/* end confdefs.h. */ 6283int i; 6284_ACEOF 6285if ac_fn_c_try_compile "$LINENO"; then : 6286 xorg_cv_cc_flag_unused_command_line_argument=yes 6287else 6288 xorg_cv_cc_flag_unused_command_line_argument=no 6289fi 6290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6291fi 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6293$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6295 CFLAGS="$xorg_testset_save_CFLAGS" 6296fi 6297 6298found="no" 6299 6300 if test $found = "no" ; then 6301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6303 fi 6304 6305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6307 fi 6308 6309 CFLAGS="$CFLAGS -Wall" 6310 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 6312$as_echo_n "checking if $CC supports -Wall... " >&6; } 6313 cacheid=xorg_cv_cc_flag__Wall 6314 if eval \${$cacheid+:} false; then : 6315 $as_echo_n "(cached) " >&6 6316else 6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6318/* end confdefs.h. */ 6319int i; 6320int 6321main () 6322{ 6323 6324 ; 6325 return 0; 6326} 6327_ACEOF 6328if ac_fn_c_try_link "$LINENO"; then : 6329 eval $cacheid=yes 6330else 6331 eval $cacheid=no 6332fi 6333rm -f core conftest.err conftest.$ac_objext \ 6334 conftest$ac_exeext conftest.$ac_ext 6335fi 6336 6337 6338 CFLAGS="$xorg_testset_save_CFLAGS" 6339 6340 eval supported=\$$cacheid 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6342$as_echo "$supported" >&6; } 6343 if test "$supported" = "yes" ; then 6344 BASE_CFLAGS="$BASE_CFLAGS -Wall" 6345 found="yes" 6346 fi 6347 fi 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363xorg_testset_save_CFLAGS="$CFLAGS" 6364 6365if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6368$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6369if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6370 $as_echo_n "(cached) " >&6 6371else 6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6373/* end confdefs.h. */ 6374int i; 6375_ACEOF 6376if ac_fn_c_try_compile "$LINENO"; then : 6377 xorg_cv_cc_flag_unknown_warning_option=yes 6378else 6379 xorg_cv_cc_flag_unknown_warning_option=no 6380fi 6381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6382fi 6383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6384$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6385 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6386 CFLAGS="$xorg_testset_save_CFLAGS" 6387fi 6388 6389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6392 fi 6393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6395$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6396if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6397 $as_echo_n "(cached) " >&6 6398else 6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6400/* end confdefs.h. */ 6401int i; 6402_ACEOF 6403if ac_fn_c_try_compile "$LINENO"; then : 6404 xorg_cv_cc_flag_unused_command_line_argument=yes 6405else 6406 xorg_cv_cc_flag_unused_command_line_argument=no 6407fi 6408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6409fi 6410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6411$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6413 CFLAGS="$xorg_testset_save_CFLAGS" 6414fi 6415 6416found="no" 6417 6418 if test $found = "no" ; then 6419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6421 fi 6422 6423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6425 fi 6426 6427 CFLAGS="$CFLAGS -Wpointer-arith" 6428 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 6430$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 6431 cacheid=xorg_cv_cc_flag__Wpointer_arith 6432 if eval \${$cacheid+:} false; then : 6433 $as_echo_n "(cached) " >&6 6434else 6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6436/* end confdefs.h. */ 6437int i; 6438int 6439main () 6440{ 6441 6442 ; 6443 return 0; 6444} 6445_ACEOF 6446if ac_fn_c_try_link "$LINENO"; then : 6447 eval $cacheid=yes 6448else 6449 eval $cacheid=no 6450fi 6451rm -f core conftest.err conftest.$ac_objext \ 6452 conftest$ac_exeext conftest.$ac_ext 6453fi 6454 6455 6456 CFLAGS="$xorg_testset_save_CFLAGS" 6457 6458 eval supported=\$$cacheid 6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6460$as_echo "$supported" >&6; } 6461 if test "$supported" = "yes" ; then 6462 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 6463 found="yes" 6464 fi 6465 fi 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481xorg_testset_save_CFLAGS="$CFLAGS" 6482 6483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6486$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6487if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6488 $as_echo_n "(cached) " >&6 6489else 6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6491/* end confdefs.h. */ 6492int i; 6493_ACEOF 6494if ac_fn_c_try_compile "$LINENO"; then : 6495 xorg_cv_cc_flag_unknown_warning_option=yes 6496else 6497 xorg_cv_cc_flag_unknown_warning_option=no 6498fi 6499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6500fi 6501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6502$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6504 CFLAGS="$xorg_testset_save_CFLAGS" 6505fi 6506 6507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6510 fi 6511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6513$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6514if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6515 $as_echo_n "(cached) " >&6 6516else 6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6518/* end confdefs.h. */ 6519int i; 6520_ACEOF 6521if ac_fn_c_try_compile "$LINENO"; then : 6522 xorg_cv_cc_flag_unused_command_line_argument=yes 6523else 6524 xorg_cv_cc_flag_unused_command_line_argument=no 6525fi 6526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6527fi 6528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6529$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6530 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6531 CFLAGS="$xorg_testset_save_CFLAGS" 6532fi 6533 6534found="no" 6535 6536 if test $found = "no" ; then 6537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6539 fi 6540 6541 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6543 fi 6544 6545 CFLAGS="$CFLAGS -Wmissing-declarations" 6546 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 6548$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 6549 cacheid=xorg_cv_cc_flag__Wmissing_declarations 6550 if eval \${$cacheid+:} false; then : 6551 $as_echo_n "(cached) " >&6 6552else 6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6554/* end confdefs.h. */ 6555int i; 6556int 6557main () 6558{ 6559 6560 ; 6561 return 0; 6562} 6563_ACEOF 6564if ac_fn_c_try_link "$LINENO"; then : 6565 eval $cacheid=yes 6566else 6567 eval $cacheid=no 6568fi 6569rm -f core conftest.err conftest.$ac_objext \ 6570 conftest$ac_exeext conftest.$ac_ext 6571fi 6572 6573 6574 CFLAGS="$xorg_testset_save_CFLAGS" 6575 6576 eval supported=\$$cacheid 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6578$as_echo "$supported" >&6; } 6579 if test "$supported" = "yes" ; then 6580 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 6581 found="yes" 6582 fi 6583 fi 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599xorg_testset_save_CFLAGS="$CFLAGS" 6600 6601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6604$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6605if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6606 $as_echo_n "(cached) " >&6 6607else 6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6609/* end confdefs.h. */ 6610int i; 6611_ACEOF 6612if ac_fn_c_try_compile "$LINENO"; then : 6613 xorg_cv_cc_flag_unknown_warning_option=yes 6614else 6615 xorg_cv_cc_flag_unknown_warning_option=no 6616fi 6617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6618fi 6619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6620$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6622 CFLAGS="$xorg_testset_save_CFLAGS" 6623fi 6624 6625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6628 fi 6629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6631$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6632if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6633 $as_echo_n "(cached) " >&6 6634else 6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6636/* end confdefs.h. */ 6637int i; 6638_ACEOF 6639if ac_fn_c_try_compile "$LINENO"; then : 6640 xorg_cv_cc_flag_unused_command_line_argument=yes 6641else 6642 xorg_cv_cc_flag_unused_command_line_argument=no 6643fi 6644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6645fi 6646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6647$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6649 CFLAGS="$xorg_testset_save_CFLAGS" 6650fi 6651 6652found="no" 6653 6654 if test $found = "no" ; then 6655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6657 fi 6658 6659 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6661 fi 6662 6663 CFLAGS="$CFLAGS -Wformat=2" 6664 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 6666$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 6667 cacheid=xorg_cv_cc_flag__Wformat_2 6668 if eval \${$cacheid+:} false; then : 6669 $as_echo_n "(cached) " >&6 6670else 6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6672/* end confdefs.h. */ 6673int i; 6674int 6675main () 6676{ 6677 6678 ; 6679 return 0; 6680} 6681_ACEOF 6682if ac_fn_c_try_link "$LINENO"; then : 6683 eval $cacheid=yes 6684else 6685 eval $cacheid=no 6686fi 6687rm -f core conftest.err conftest.$ac_objext \ 6688 conftest$ac_exeext conftest.$ac_ext 6689fi 6690 6691 6692 CFLAGS="$xorg_testset_save_CFLAGS" 6693 6694 eval supported=\$$cacheid 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6696$as_echo "$supported" >&6; } 6697 if test "$supported" = "yes" ; then 6698 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 6699 found="yes" 6700 fi 6701 fi 6702 6703 if test $found = "no" ; then 6704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6706 fi 6707 6708 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6710 fi 6711 6712 CFLAGS="$CFLAGS -Wformat" 6713 6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 6715$as_echo_n "checking if $CC supports -Wformat... " >&6; } 6716 cacheid=xorg_cv_cc_flag__Wformat 6717 if eval \${$cacheid+:} false; then : 6718 $as_echo_n "(cached) " >&6 6719else 6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6721/* end confdefs.h. */ 6722int i; 6723int 6724main () 6725{ 6726 6727 ; 6728 return 0; 6729} 6730_ACEOF 6731if ac_fn_c_try_link "$LINENO"; then : 6732 eval $cacheid=yes 6733else 6734 eval $cacheid=no 6735fi 6736rm -f core conftest.err conftest.$ac_objext \ 6737 conftest$ac_exeext conftest.$ac_ext 6738fi 6739 6740 6741 CFLAGS="$xorg_testset_save_CFLAGS" 6742 6743 eval supported=\$$cacheid 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6745$as_echo "$supported" >&6; } 6746 if test "$supported" = "yes" ; then 6747 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 6748 found="yes" 6749 fi 6750 fi 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768xorg_testset_save_CFLAGS="$CFLAGS" 6769 6770if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6773$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6774if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6775 $as_echo_n "(cached) " >&6 6776else 6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6778/* end confdefs.h. */ 6779int i; 6780_ACEOF 6781if ac_fn_c_try_compile "$LINENO"; then : 6782 xorg_cv_cc_flag_unknown_warning_option=yes 6783else 6784 xorg_cv_cc_flag_unknown_warning_option=no 6785fi 6786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6787fi 6788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6789$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6791 CFLAGS="$xorg_testset_save_CFLAGS" 6792fi 6793 6794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6797 fi 6798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6800$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6801if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6802 $as_echo_n "(cached) " >&6 6803else 6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6805/* end confdefs.h. */ 6806int i; 6807_ACEOF 6808if ac_fn_c_try_compile "$LINENO"; then : 6809 xorg_cv_cc_flag_unused_command_line_argument=yes 6810else 6811 xorg_cv_cc_flag_unused_command_line_argument=no 6812fi 6813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6814fi 6815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6816$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6817 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6818 CFLAGS="$xorg_testset_save_CFLAGS" 6819fi 6820 6821found="no" 6822 6823 if test $found = "no" ; then 6824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6826 fi 6827 6828 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6830 fi 6831 6832 CFLAGS="$CFLAGS -Wstrict-prototypes" 6833 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 6835$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 6836 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 6837 if eval \${$cacheid+:} false; then : 6838 $as_echo_n "(cached) " >&6 6839else 6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6841/* end confdefs.h. */ 6842int i; 6843int 6844main () 6845{ 6846 6847 ; 6848 return 0; 6849} 6850_ACEOF 6851if ac_fn_c_try_link "$LINENO"; then : 6852 eval $cacheid=yes 6853else 6854 eval $cacheid=no 6855fi 6856rm -f core conftest.err conftest.$ac_objext \ 6857 conftest$ac_exeext conftest.$ac_ext 6858fi 6859 6860 6861 CFLAGS="$xorg_testset_save_CFLAGS" 6862 6863 eval supported=\$$cacheid 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6865$as_echo "$supported" >&6; } 6866 if test "$supported" = "yes" ; then 6867 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 6868 found="yes" 6869 fi 6870 fi 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886xorg_testset_save_CFLAGS="$CFLAGS" 6887 6888if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6891$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6892if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6893 $as_echo_n "(cached) " >&6 6894else 6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6896/* end confdefs.h. */ 6897int i; 6898_ACEOF 6899if ac_fn_c_try_compile "$LINENO"; then : 6900 xorg_cv_cc_flag_unknown_warning_option=yes 6901else 6902 xorg_cv_cc_flag_unknown_warning_option=no 6903fi 6904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6905fi 6906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6907$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6909 CFLAGS="$xorg_testset_save_CFLAGS" 6910fi 6911 6912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6915 fi 6916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6918$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6919if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6920 $as_echo_n "(cached) " >&6 6921else 6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6923/* end confdefs.h. */ 6924int i; 6925_ACEOF 6926if ac_fn_c_try_compile "$LINENO"; then : 6927 xorg_cv_cc_flag_unused_command_line_argument=yes 6928else 6929 xorg_cv_cc_flag_unused_command_line_argument=no 6930fi 6931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6932fi 6933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6934$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6936 CFLAGS="$xorg_testset_save_CFLAGS" 6937fi 6938 6939found="no" 6940 6941 if test $found = "no" ; then 6942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6944 fi 6945 6946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6948 fi 6949 6950 CFLAGS="$CFLAGS -Wmissing-prototypes" 6951 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6953$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 6954 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6955 if eval \${$cacheid+:} false; then : 6956 $as_echo_n "(cached) " >&6 6957else 6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6959/* end confdefs.h. */ 6960int i; 6961int 6962main () 6963{ 6964 6965 ; 6966 return 0; 6967} 6968_ACEOF 6969if ac_fn_c_try_link "$LINENO"; then : 6970 eval $cacheid=yes 6971else 6972 eval $cacheid=no 6973fi 6974rm -f core conftest.err conftest.$ac_objext \ 6975 conftest$ac_exeext conftest.$ac_ext 6976fi 6977 6978 6979 CFLAGS="$xorg_testset_save_CFLAGS" 6980 6981 eval supported=\$$cacheid 6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6983$as_echo "$supported" >&6; } 6984 if test "$supported" = "yes" ; then 6985 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6986 found="yes" 6987 fi 6988 fi 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004xorg_testset_save_CFLAGS="$CFLAGS" 7005 7006if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7009$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7010if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7011 $as_echo_n "(cached) " >&6 7012else 7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7014/* end confdefs.h. */ 7015int i; 7016_ACEOF 7017if ac_fn_c_try_compile "$LINENO"; then : 7018 xorg_cv_cc_flag_unknown_warning_option=yes 7019else 7020 xorg_cv_cc_flag_unknown_warning_option=no 7021fi 7022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7023fi 7024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7025$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7026 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7027 CFLAGS="$xorg_testset_save_CFLAGS" 7028fi 7029 7030if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7033 fi 7034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7036$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7037if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7038 $as_echo_n "(cached) " >&6 7039else 7040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7041/* end confdefs.h. */ 7042int i; 7043_ACEOF 7044if ac_fn_c_try_compile "$LINENO"; then : 7045 xorg_cv_cc_flag_unused_command_line_argument=yes 7046else 7047 xorg_cv_cc_flag_unused_command_line_argument=no 7048fi 7049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7050fi 7051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7052$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7053 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7054 CFLAGS="$xorg_testset_save_CFLAGS" 7055fi 7056 7057found="no" 7058 7059 if test $found = "no" ; then 7060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7062 fi 7063 7064 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7066 fi 7067 7068 CFLAGS="$CFLAGS -Wnested-externs" 7069 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 7071$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 7072 cacheid=xorg_cv_cc_flag__Wnested_externs 7073 if eval \${$cacheid+:} false; then : 7074 $as_echo_n "(cached) " >&6 7075else 7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7077/* end confdefs.h. */ 7078int i; 7079int 7080main () 7081{ 7082 7083 ; 7084 return 0; 7085} 7086_ACEOF 7087if ac_fn_c_try_link "$LINENO"; then : 7088 eval $cacheid=yes 7089else 7090 eval $cacheid=no 7091fi 7092rm -f core conftest.err conftest.$ac_objext \ 7093 conftest$ac_exeext conftest.$ac_ext 7094fi 7095 7096 7097 CFLAGS="$xorg_testset_save_CFLAGS" 7098 7099 eval supported=\$$cacheid 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7101$as_echo "$supported" >&6; } 7102 if test "$supported" = "yes" ; then 7103 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 7104 found="yes" 7105 fi 7106 fi 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122xorg_testset_save_CFLAGS="$CFLAGS" 7123 7124if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7127$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7128if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7129 $as_echo_n "(cached) " >&6 7130else 7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7132/* end confdefs.h. */ 7133int i; 7134_ACEOF 7135if ac_fn_c_try_compile "$LINENO"; then : 7136 xorg_cv_cc_flag_unknown_warning_option=yes 7137else 7138 xorg_cv_cc_flag_unknown_warning_option=no 7139fi 7140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7141fi 7142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7143$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7144 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7145 CFLAGS="$xorg_testset_save_CFLAGS" 7146fi 7147 7148if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7151 fi 7152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7154$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7155if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7156 $as_echo_n "(cached) " >&6 7157else 7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7159/* end confdefs.h. */ 7160int i; 7161_ACEOF 7162if ac_fn_c_try_compile "$LINENO"; then : 7163 xorg_cv_cc_flag_unused_command_line_argument=yes 7164else 7165 xorg_cv_cc_flag_unused_command_line_argument=no 7166fi 7167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7168fi 7169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7170$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7171 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7172 CFLAGS="$xorg_testset_save_CFLAGS" 7173fi 7174 7175found="no" 7176 7177 if test $found = "no" ; then 7178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7180 fi 7181 7182 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7184 fi 7185 7186 CFLAGS="$CFLAGS -Wbad-function-cast" 7187 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 7189$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 7190 cacheid=xorg_cv_cc_flag__Wbad_function_cast 7191 if eval \${$cacheid+:} false; then : 7192 $as_echo_n "(cached) " >&6 7193else 7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7195/* end confdefs.h. */ 7196int i; 7197int 7198main () 7199{ 7200 7201 ; 7202 return 0; 7203} 7204_ACEOF 7205if ac_fn_c_try_link "$LINENO"; then : 7206 eval $cacheid=yes 7207else 7208 eval $cacheid=no 7209fi 7210rm -f core conftest.err conftest.$ac_objext \ 7211 conftest$ac_exeext conftest.$ac_ext 7212fi 7213 7214 7215 CFLAGS="$xorg_testset_save_CFLAGS" 7216 7217 eval supported=\$$cacheid 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7219$as_echo "$supported" >&6; } 7220 if test "$supported" = "yes" ; then 7221 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 7222 found="yes" 7223 fi 7224 fi 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240xorg_testset_save_CFLAGS="$CFLAGS" 7241 7242if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7245$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7246if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7247 $as_echo_n "(cached) " >&6 7248else 7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7250/* end confdefs.h. */ 7251int i; 7252_ACEOF 7253if ac_fn_c_try_compile "$LINENO"; then : 7254 xorg_cv_cc_flag_unknown_warning_option=yes 7255else 7256 xorg_cv_cc_flag_unknown_warning_option=no 7257fi 7258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7259fi 7260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7261$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7263 CFLAGS="$xorg_testset_save_CFLAGS" 7264fi 7265 7266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7269 fi 7270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7272$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7273if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7274 $as_echo_n "(cached) " >&6 7275else 7276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7277/* end confdefs.h. */ 7278int i; 7279_ACEOF 7280if ac_fn_c_try_compile "$LINENO"; then : 7281 xorg_cv_cc_flag_unused_command_line_argument=yes 7282else 7283 xorg_cv_cc_flag_unused_command_line_argument=no 7284fi 7285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7286fi 7287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7288$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7289 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7290 CFLAGS="$xorg_testset_save_CFLAGS" 7291fi 7292 7293found="no" 7294 7295 if test $found = "no" ; then 7296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7298 fi 7299 7300 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7302 fi 7303 7304 CFLAGS="$CFLAGS -Wold-style-definition" 7305 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 7307$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 7308 cacheid=xorg_cv_cc_flag__Wold_style_definition 7309 if eval \${$cacheid+:} false; then : 7310 $as_echo_n "(cached) " >&6 7311else 7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7313/* end confdefs.h. */ 7314int i; 7315int 7316main () 7317{ 7318 7319 ; 7320 return 0; 7321} 7322_ACEOF 7323if ac_fn_c_try_link "$LINENO"; then : 7324 eval $cacheid=yes 7325else 7326 eval $cacheid=no 7327fi 7328rm -f core conftest.err conftest.$ac_objext \ 7329 conftest$ac_exeext conftest.$ac_ext 7330fi 7331 7332 7333 CFLAGS="$xorg_testset_save_CFLAGS" 7334 7335 eval supported=\$$cacheid 7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7337$as_echo "$supported" >&6; } 7338 if test "$supported" = "yes" ; then 7339 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 7340 found="yes" 7341 fi 7342 fi 7343 7344 if test $found = "no" ; then 7345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7347 fi 7348 7349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7351 fi 7352 7353 CFLAGS="$CFLAGS -fd" 7354 7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 7356$as_echo_n "checking if $CC supports -fd... " >&6; } 7357 cacheid=xorg_cv_cc_flag__fd 7358 if eval \${$cacheid+:} false; then : 7359 $as_echo_n "(cached) " >&6 7360else 7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7362/* end confdefs.h. */ 7363int i; 7364int 7365main () 7366{ 7367 7368 ; 7369 return 0; 7370} 7371_ACEOF 7372if ac_fn_c_try_link "$LINENO"; then : 7373 eval $cacheid=yes 7374else 7375 eval $cacheid=no 7376fi 7377rm -f core conftest.err conftest.$ac_objext \ 7378 conftest$ac_exeext conftest.$ac_ext 7379fi 7380 7381 7382 CFLAGS="$xorg_testset_save_CFLAGS" 7383 7384 eval supported=\$$cacheid 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7386$as_echo "$supported" >&6; } 7387 if test "$supported" = "yes" ; then 7388 BASE_CFLAGS="$BASE_CFLAGS -fd" 7389 found="yes" 7390 fi 7391 fi 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407xorg_testset_save_CFLAGS="$CFLAGS" 7408 7409if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7412$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7413if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7414 $as_echo_n "(cached) " >&6 7415else 7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7417/* end confdefs.h. */ 7418int i; 7419_ACEOF 7420if ac_fn_c_try_compile "$LINENO"; then : 7421 xorg_cv_cc_flag_unknown_warning_option=yes 7422else 7423 xorg_cv_cc_flag_unknown_warning_option=no 7424fi 7425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7426fi 7427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7428$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7430 CFLAGS="$xorg_testset_save_CFLAGS" 7431fi 7432 7433if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7436 fi 7437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7439$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7440if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7441 $as_echo_n "(cached) " >&6 7442else 7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7444/* end confdefs.h. */ 7445int i; 7446_ACEOF 7447if ac_fn_c_try_compile "$LINENO"; then : 7448 xorg_cv_cc_flag_unused_command_line_argument=yes 7449else 7450 xorg_cv_cc_flag_unused_command_line_argument=no 7451fi 7452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7453fi 7454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7455$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7456 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7457 CFLAGS="$xorg_testset_save_CFLAGS" 7458fi 7459 7460found="no" 7461 7462 if test $found = "no" ; then 7463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7465 fi 7466 7467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7469 fi 7470 7471 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 7472 7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 7474$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 7475 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 7476 if eval \${$cacheid+:} false; then : 7477 $as_echo_n "(cached) " >&6 7478else 7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7480/* end confdefs.h. */ 7481int i; 7482int 7483main () 7484{ 7485 7486 ; 7487 return 0; 7488} 7489_ACEOF 7490if ac_fn_c_try_link "$LINENO"; then : 7491 eval $cacheid=yes 7492else 7493 eval $cacheid=no 7494fi 7495rm -f core conftest.err conftest.$ac_objext \ 7496 conftest$ac_exeext conftest.$ac_ext 7497fi 7498 7499 7500 CFLAGS="$xorg_testset_save_CFLAGS" 7501 7502 eval supported=\$$cacheid 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7504$as_echo "$supported" >&6; } 7505 if test "$supported" = "yes" ; then 7506 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 7507 found="yes" 7508 fi 7509 fi 7510 7511 7512 7513 7514 7515# This chunk adds additional warnings that could catch undesired effects. 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529xorg_testset_save_CFLAGS="$CFLAGS" 7530 7531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7534$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7535if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7536 $as_echo_n "(cached) " >&6 7537else 7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7539/* end confdefs.h. */ 7540int i; 7541_ACEOF 7542if ac_fn_c_try_compile "$LINENO"; then : 7543 xorg_cv_cc_flag_unknown_warning_option=yes 7544else 7545 xorg_cv_cc_flag_unknown_warning_option=no 7546fi 7547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7548fi 7549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7550$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7552 CFLAGS="$xorg_testset_save_CFLAGS" 7553fi 7554 7555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7558 fi 7559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7561$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7562if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7563 $as_echo_n "(cached) " >&6 7564else 7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7566/* end confdefs.h. */ 7567int i; 7568_ACEOF 7569if ac_fn_c_try_compile "$LINENO"; then : 7570 xorg_cv_cc_flag_unused_command_line_argument=yes 7571else 7572 xorg_cv_cc_flag_unused_command_line_argument=no 7573fi 7574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7575fi 7576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7577$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7579 CFLAGS="$xorg_testset_save_CFLAGS" 7580fi 7581 7582found="no" 7583 7584 if test $found = "no" ; then 7585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7587 fi 7588 7589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7591 fi 7592 7593 CFLAGS="$CFLAGS -Wunused" 7594 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 7596$as_echo_n "checking if $CC supports -Wunused... " >&6; } 7597 cacheid=xorg_cv_cc_flag__Wunused 7598 if eval \${$cacheid+:} false; then : 7599 $as_echo_n "(cached) " >&6 7600else 7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7602/* end confdefs.h. */ 7603int i; 7604int 7605main () 7606{ 7607 7608 ; 7609 return 0; 7610} 7611_ACEOF 7612if ac_fn_c_try_link "$LINENO"; then : 7613 eval $cacheid=yes 7614else 7615 eval $cacheid=no 7616fi 7617rm -f core conftest.err conftest.$ac_objext \ 7618 conftest$ac_exeext conftest.$ac_ext 7619fi 7620 7621 7622 CFLAGS="$xorg_testset_save_CFLAGS" 7623 7624 eval supported=\$$cacheid 7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7626$as_echo "$supported" >&6; } 7627 if test "$supported" = "yes" ; then 7628 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 7629 found="yes" 7630 fi 7631 fi 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647xorg_testset_save_CFLAGS="$CFLAGS" 7648 7649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7652$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7653if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7654 $as_echo_n "(cached) " >&6 7655else 7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7657/* end confdefs.h. */ 7658int i; 7659_ACEOF 7660if ac_fn_c_try_compile "$LINENO"; then : 7661 xorg_cv_cc_flag_unknown_warning_option=yes 7662else 7663 xorg_cv_cc_flag_unknown_warning_option=no 7664fi 7665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7666fi 7667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7668$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7670 CFLAGS="$xorg_testset_save_CFLAGS" 7671fi 7672 7673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7676 fi 7677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7679$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7680if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7681 $as_echo_n "(cached) " >&6 7682else 7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7684/* end confdefs.h. */ 7685int i; 7686_ACEOF 7687if ac_fn_c_try_compile "$LINENO"; then : 7688 xorg_cv_cc_flag_unused_command_line_argument=yes 7689else 7690 xorg_cv_cc_flag_unused_command_line_argument=no 7691fi 7692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7693fi 7694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7695$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7697 CFLAGS="$xorg_testset_save_CFLAGS" 7698fi 7699 7700found="no" 7701 7702 if test $found = "no" ; then 7703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7705 fi 7706 7707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7709 fi 7710 7711 CFLAGS="$CFLAGS -Wuninitialized" 7712 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 7714$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 7715 cacheid=xorg_cv_cc_flag__Wuninitialized 7716 if eval \${$cacheid+:} false; then : 7717 $as_echo_n "(cached) " >&6 7718else 7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7720/* end confdefs.h. */ 7721int i; 7722int 7723main () 7724{ 7725 7726 ; 7727 return 0; 7728} 7729_ACEOF 7730if ac_fn_c_try_link "$LINENO"; then : 7731 eval $cacheid=yes 7732else 7733 eval $cacheid=no 7734fi 7735rm -f core conftest.err conftest.$ac_objext \ 7736 conftest$ac_exeext conftest.$ac_ext 7737fi 7738 7739 7740 CFLAGS="$xorg_testset_save_CFLAGS" 7741 7742 eval supported=\$$cacheid 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7744$as_echo "$supported" >&6; } 7745 if test "$supported" = "yes" ; then 7746 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 7747 found="yes" 7748 fi 7749 fi 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765xorg_testset_save_CFLAGS="$CFLAGS" 7766 7767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7770$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7771if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7772 $as_echo_n "(cached) " >&6 7773else 7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7775/* end confdefs.h. */ 7776int i; 7777_ACEOF 7778if ac_fn_c_try_compile "$LINENO"; then : 7779 xorg_cv_cc_flag_unknown_warning_option=yes 7780else 7781 xorg_cv_cc_flag_unknown_warning_option=no 7782fi 7783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7784fi 7785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7786$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7788 CFLAGS="$xorg_testset_save_CFLAGS" 7789fi 7790 7791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7794 fi 7795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7797$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7798if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7799 $as_echo_n "(cached) " >&6 7800else 7801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7802/* end confdefs.h. */ 7803int i; 7804_ACEOF 7805if ac_fn_c_try_compile "$LINENO"; then : 7806 xorg_cv_cc_flag_unused_command_line_argument=yes 7807else 7808 xorg_cv_cc_flag_unused_command_line_argument=no 7809fi 7810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7811fi 7812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7813$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7814 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7815 CFLAGS="$xorg_testset_save_CFLAGS" 7816fi 7817 7818found="no" 7819 7820 if test $found = "no" ; then 7821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7823 fi 7824 7825 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7827 fi 7828 7829 CFLAGS="$CFLAGS -Wshadow" 7830 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 7832$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 7833 cacheid=xorg_cv_cc_flag__Wshadow 7834 if eval \${$cacheid+:} false; then : 7835 $as_echo_n "(cached) " >&6 7836else 7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7838/* end confdefs.h. */ 7839int i; 7840int 7841main () 7842{ 7843 7844 ; 7845 return 0; 7846} 7847_ACEOF 7848if ac_fn_c_try_link "$LINENO"; then : 7849 eval $cacheid=yes 7850else 7851 eval $cacheid=no 7852fi 7853rm -f core conftest.err conftest.$ac_objext \ 7854 conftest$ac_exeext conftest.$ac_ext 7855fi 7856 7857 7858 CFLAGS="$xorg_testset_save_CFLAGS" 7859 7860 eval supported=\$$cacheid 7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7862$as_echo "$supported" >&6; } 7863 if test "$supported" = "yes" ; then 7864 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 7865 found="yes" 7866 fi 7867 fi 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883xorg_testset_save_CFLAGS="$CFLAGS" 7884 7885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7888$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7889if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7890 $as_echo_n "(cached) " >&6 7891else 7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7893/* end confdefs.h. */ 7894int i; 7895_ACEOF 7896if ac_fn_c_try_compile "$LINENO"; then : 7897 xorg_cv_cc_flag_unknown_warning_option=yes 7898else 7899 xorg_cv_cc_flag_unknown_warning_option=no 7900fi 7901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7902fi 7903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7904$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7906 CFLAGS="$xorg_testset_save_CFLAGS" 7907fi 7908 7909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7912 fi 7913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7915$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7916if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7917 $as_echo_n "(cached) " >&6 7918else 7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7920/* end confdefs.h. */ 7921int i; 7922_ACEOF 7923if ac_fn_c_try_compile "$LINENO"; then : 7924 xorg_cv_cc_flag_unused_command_line_argument=yes 7925else 7926 xorg_cv_cc_flag_unused_command_line_argument=no 7927fi 7928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7929fi 7930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7931$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7933 CFLAGS="$xorg_testset_save_CFLAGS" 7934fi 7935 7936found="no" 7937 7938 if test $found = "no" ; then 7939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7941 fi 7942 7943 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7945 fi 7946 7947 CFLAGS="$CFLAGS -Wmissing-noreturn" 7948 7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7950$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 7951 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7952 if eval \${$cacheid+:} false; then : 7953 $as_echo_n "(cached) " >&6 7954else 7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7956/* end confdefs.h. */ 7957int i; 7958int 7959main () 7960{ 7961 7962 ; 7963 return 0; 7964} 7965_ACEOF 7966if ac_fn_c_try_link "$LINENO"; then : 7967 eval $cacheid=yes 7968else 7969 eval $cacheid=no 7970fi 7971rm -f core conftest.err conftest.$ac_objext \ 7972 conftest$ac_exeext conftest.$ac_ext 7973fi 7974 7975 7976 CFLAGS="$xorg_testset_save_CFLAGS" 7977 7978 eval supported=\$$cacheid 7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7980$as_echo "$supported" >&6; } 7981 if test "$supported" = "yes" ; then 7982 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7983 found="yes" 7984 fi 7985 fi 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001xorg_testset_save_CFLAGS="$CFLAGS" 8002 8003if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8006$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8007if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8008 $as_echo_n "(cached) " >&6 8009else 8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8011/* end confdefs.h. */ 8012int i; 8013_ACEOF 8014if ac_fn_c_try_compile "$LINENO"; then : 8015 xorg_cv_cc_flag_unknown_warning_option=yes 8016else 8017 xorg_cv_cc_flag_unknown_warning_option=no 8018fi 8019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8020fi 8021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8022$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8023 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8024 CFLAGS="$xorg_testset_save_CFLAGS" 8025fi 8026 8027if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8030 fi 8031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8033$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8034if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8035 $as_echo_n "(cached) " >&6 8036else 8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8038/* end confdefs.h. */ 8039int i; 8040_ACEOF 8041if ac_fn_c_try_compile "$LINENO"; then : 8042 xorg_cv_cc_flag_unused_command_line_argument=yes 8043else 8044 xorg_cv_cc_flag_unused_command_line_argument=no 8045fi 8046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8047fi 8048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8049$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8050 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8051 CFLAGS="$xorg_testset_save_CFLAGS" 8052fi 8053 8054found="no" 8055 8056 if test $found = "no" ; then 8057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8059 fi 8060 8061 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8063 fi 8064 8065 CFLAGS="$CFLAGS -Wmissing-format-attribute" 8066 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 8068$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 8069 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 8070 if eval \${$cacheid+:} false; then : 8071 $as_echo_n "(cached) " >&6 8072else 8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8074/* end confdefs.h. */ 8075int i; 8076int 8077main () 8078{ 8079 8080 ; 8081 return 0; 8082} 8083_ACEOF 8084if ac_fn_c_try_link "$LINENO"; then : 8085 eval $cacheid=yes 8086else 8087 eval $cacheid=no 8088fi 8089rm -f core conftest.err conftest.$ac_objext \ 8090 conftest$ac_exeext conftest.$ac_ext 8091fi 8092 8093 8094 CFLAGS="$xorg_testset_save_CFLAGS" 8095 8096 eval supported=\$$cacheid 8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8098$as_echo "$supported" >&6; } 8099 if test "$supported" = "yes" ; then 8100 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 8101 found="yes" 8102 fi 8103 fi 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119xorg_testset_save_CFLAGS="$CFLAGS" 8120 8121if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8124$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8125if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8126 $as_echo_n "(cached) " >&6 8127else 8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8129/* end confdefs.h. */ 8130int i; 8131_ACEOF 8132if ac_fn_c_try_compile "$LINENO"; then : 8133 xorg_cv_cc_flag_unknown_warning_option=yes 8134else 8135 xorg_cv_cc_flag_unknown_warning_option=no 8136fi 8137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8138fi 8139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8140$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8141 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8142 CFLAGS="$xorg_testset_save_CFLAGS" 8143fi 8144 8145if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8148 fi 8149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8151$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8152if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8153 $as_echo_n "(cached) " >&6 8154else 8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8156/* end confdefs.h. */ 8157int i; 8158_ACEOF 8159if ac_fn_c_try_compile "$LINENO"; then : 8160 xorg_cv_cc_flag_unused_command_line_argument=yes 8161else 8162 xorg_cv_cc_flag_unused_command_line_argument=no 8163fi 8164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8165fi 8166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8167$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8168 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8169 CFLAGS="$xorg_testset_save_CFLAGS" 8170fi 8171 8172found="no" 8173 8174 if test $found = "no" ; then 8175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8177 fi 8178 8179 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8181 fi 8182 8183 CFLAGS="$CFLAGS -Wredundant-decls" 8184 8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 8186$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 8187 cacheid=xorg_cv_cc_flag__Wredundant_decls 8188 if eval \${$cacheid+:} false; then : 8189 $as_echo_n "(cached) " >&6 8190else 8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8192/* end confdefs.h. */ 8193int i; 8194int 8195main () 8196{ 8197 8198 ; 8199 return 0; 8200} 8201_ACEOF 8202if ac_fn_c_try_link "$LINENO"; then : 8203 eval $cacheid=yes 8204else 8205 eval $cacheid=no 8206fi 8207rm -f core conftest.err conftest.$ac_objext \ 8208 conftest$ac_exeext conftest.$ac_ext 8209fi 8210 8211 8212 CFLAGS="$xorg_testset_save_CFLAGS" 8213 8214 eval supported=\$$cacheid 8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8216$as_echo "$supported" >&6; } 8217 if test "$supported" = "yes" ; then 8218 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 8219 found="yes" 8220 fi 8221 fi 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237xorg_testset_save_CFLAGS="$CFLAGS" 8238 8239if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8242$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8243if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8244 $as_echo_n "(cached) " >&6 8245else 8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8247/* end confdefs.h. */ 8248int i; 8249_ACEOF 8250if ac_fn_c_try_compile "$LINENO"; then : 8251 xorg_cv_cc_flag_unknown_warning_option=yes 8252else 8253 xorg_cv_cc_flag_unknown_warning_option=no 8254fi 8255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8256fi 8257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8258$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8260 CFLAGS="$xorg_testset_save_CFLAGS" 8261fi 8262 8263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8266 fi 8267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8269$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8270if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8271 $as_echo_n "(cached) " >&6 8272else 8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8274/* end confdefs.h. */ 8275int i; 8276_ACEOF 8277if ac_fn_c_try_compile "$LINENO"; then : 8278 xorg_cv_cc_flag_unused_command_line_argument=yes 8279else 8280 xorg_cv_cc_flag_unused_command_line_argument=no 8281fi 8282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8283fi 8284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8285$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8287 CFLAGS="$xorg_testset_save_CFLAGS" 8288fi 8289 8290found="no" 8291 8292 if test $found = "no" ; then 8293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8295 fi 8296 8297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8299 fi 8300 8301 CFLAGS="$CFLAGS -Wlogical-op" 8302 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 8304$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 8305 cacheid=xorg_cv_cc_flag__Wlogical_op 8306 if eval \${$cacheid+:} false; then : 8307 $as_echo_n "(cached) " >&6 8308else 8309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8310/* end confdefs.h. */ 8311int i; 8312int 8313main () 8314{ 8315 8316 ; 8317 return 0; 8318} 8319_ACEOF 8320if ac_fn_c_try_link "$LINENO"; then : 8321 eval $cacheid=yes 8322else 8323 eval $cacheid=no 8324fi 8325rm -f core conftest.err conftest.$ac_objext \ 8326 conftest$ac_exeext conftest.$ac_ext 8327fi 8328 8329 8330 CFLAGS="$xorg_testset_save_CFLAGS" 8331 8332 eval supported=\$$cacheid 8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8334$as_echo "$supported" >&6; } 8335 if test "$supported" = "yes" ; then 8336 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 8337 found="yes" 8338 fi 8339 fi 8340 8341 8342 8343# These are currently disabled because they are noisy. They will be enabled 8344# in the future once the codebase is sufficiently modernized to silence 8345# them. For now, I don't want them to drown out the other warnings. 8346# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 8347# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 8348# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 8349 8350# Turn some warnings into errors, so we don't accidently get successful builds 8351# when there are problems that should be fixed. 8352 8353if test "x$SELECTIVE_WERROR" = "xyes" ; then 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367xorg_testset_save_CFLAGS="$CFLAGS" 8368 8369if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8372$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8373if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8374 $as_echo_n "(cached) " >&6 8375else 8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8377/* end confdefs.h. */ 8378int i; 8379_ACEOF 8380if ac_fn_c_try_compile "$LINENO"; then : 8381 xorg_cv_cc_flag_unknown_warning_option=yes 8382else 8383 xorg_cv_cc_flag_unknown_warning_option=no 8384fi 8385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8386fi 8387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8388$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8390 CFLAGS="$xorg_testset_save_CFLAGS" 8391fi 8392 8393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8396 fi 8397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8399$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8400if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8401 $as_echo_n "(cached) " >&6 8402else 8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8404/* end confdefs.h. */ 8405int i; 8406_ACEOF 8407if ac_fn_c_try_compile "$LINENO"; then : 8408 xorg_cv_cc_flag_unused_command_line_argument=yes 8409else 8410 xorg_cv_cc_flag_unused_command_line_argument=no 8411fi 8412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8413fi 8414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8415$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8416 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8417 CFLAGS="$xorg_testset_save_CFLAGS" 8418fi 8419 8420found="no" 8421 8422 if test $found = "no" ; then 8423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8425 fi 8426 8427 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8429 fi 8430 8431 CFLAGS="$CFLAGS -Werror=implicit" 8432 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 8434$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 8435 cacheid=xorg_cv_cc_flag__Werror_implicit 8436 if eval \${$cacheid+:} false; then : 8437 $as_echo_n "(cached) " >&6 8438else 8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8440/* end confdefs.h. */ 8441int i; 8442int 8443main () 8444{ 8445 8446 ; 8447 return 0; 8448} 8449_ACEOF 8450if ac_fn_c_try_link "$LINENO"; then : 8451 eval $cacheid=yes 8452else 8453 eval $cacheid=no 8454fi 8455rm -f core conftest.err conftest.$ac_objext \ 8456 conftest$ac_exeext conftest.$ac_ext 8457fi 8458 8459 8460 CFLAGS="$xorg_testset_save_CFLAGS" 8461 8462 eval supported=\$$cacheid 8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8464$as_echo "$supported" >&6; } 8465 if test "$supported" = "yes" ; then 8466 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 8467 found="yes" 8468 fi 8469 fi 8470 8471 if test $found = "no" ; then 8472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8474 fi 8475 8476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8478 fi 8479 8480 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 8481 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 8483$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 8484 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 8485 if eval \${$cacheid+:} false; then : 8486 $as_echo_n "(cached) " >&6 8487else 8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8489/* end confdefs.h. */ 8490int i; 8491int 8492main () 8493{ 8494 8495 ; 8496 return 0; 8497} 8498_ACEOF 8499if ac_fn_c_try_link "$LINENO"; then : 8500 eval $cacheid=yes 8501else 8502 eval $cacheid=no 8503fi 8504rm -f core conftest.err conftest.$ac_objext \ 8505 conftest$ac_exeext conftest.$ac_ext 8506fi 8507 8508 8509 CFLAGS="$xorg_testset_save_CFLAGS" 8510 8511 eval supported=\$$cacheid 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8513$as_echo "$supported" >&6; } 8514 if test "$supported" = "yes" ; then 8515 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 8516 found="yes" 8517 fi 8518 fi 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534xorg_testset_save_CFLAGS="$CFLAGS" 8535 8536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8541 $as_echo_n "(cached) " >&6 8542else 8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8544/* end confdefs.h. */ 8545int i; 8546_ACEOF 8547if ac_fn_c_try_compile "$LINENO"; then : 8548 xorg_cv_cc_flag_unknown_warning_option=yes 8549else 8550 xorg_cv_cc_flag_unknown_warning_option=no 8551fi 8552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8553fi 8554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8557 CFLAGS="$xorg_testset_save_CFLAGS" 8558fi 8559 8560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8563 fi 8564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8568 $as_echo_n "(cached) " >&6 8569else 8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8571/* end confdefs.h. */ 8572int i; 8573_ACEOF 8574if ac_fn_c_try_compile "$LINENO"; then : 8575 xorg_cv_cc_flag_unused_command_line_argument=yes 8576else 8577 xorg_cv_cc_flag_unused_command_line_argument=no 8578fi 8579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8580fi 8581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8584 CFLAGS="$xorg_testset_save_CFLAGS" 8585fi 8586 8587found="no" 8588 8589 if test $found = "no" ; then 8590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8592 fi 8593 8594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8596 fi 8597 8598 CFLAGS="$CFLAGS -Werror=nonnull" 8599 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 8601$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 8602 cacheid=xorg_cv_cc_flag__Werror_nonnull 8603 if eval \${$cacheid+:} false; then : 8604 $as_echo_n "(cached) " >&6 8605else 8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8607/* end confdefs.h. */ 8608int i; 8609int 8610main () 8611{ 8612 8613 ; 8614 return 0; 8615} 8616_ACEOF 8617if ac_fn_c_try_link "$LINENO"; then : 8618 eval $cacheid=yes 8619else 8620 eval $cacheid=no 8621fi 8622rm -f core conftest.err conftest.$ac_objext \ 8623 conftest$ac_exeext conftest.$ac_ext 8624fi 8625 8626 8627 CFLAGS="$xorg_testset_save_CFLAGS" 8628 8629 eval supported=\$$cacheid 8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8631$as_echo "$supported" >&6; } 8632 if test "$supported" = "yes" ; then 8633 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 8634 found="yes" 8635 fi 8636 fi 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652xorg_testset_save_CFLAGS="$CFLAGS" 8653 8654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8657$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8658if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8659 $as_echo_n "(cached) " >&6 8660else 8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8662/* end confdefs.h. */ 8663int i; 8664_ACEOF 8665if ac_fn_c_try_compile "$LINENO"; then : 8666 xorg_cv_cc_flag_unknown_warning_option=yes 8667else 8668 xorg_cv_cc_flag_unknown_warning_option=no 8669fi 8670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8671fi 8672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8673$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8675 CFLAGS="$xorg_testset_save_CFLAGS" 8676fi 8677 8678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8681 fi 8682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8684$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8685if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8686 $as_echo_n "(cached) " >&6 8687else 8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8689/* end confdefs.h. */ 8690int i; 8691_ACEOF 8692if ac_fn_c_try_compile "$LINENO"; then : 8693 xorg_cv_cc_flag_unused_command_line_argument=yes 8694else 8695 xorg_cv_cc_flag_unused_command_line_argument=no 8696fi 8697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8698fi 8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8700$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8702 CFLAGS="$xorg_testset_save_CFLAGS" 8703fi 8704 8705found="no" 8706 8707 if test $found = "no" ; then 8708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8710 fi 8711 8712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8714 fi 8715 8716 CFLAGS="$CFLAGS -Werror=init-self" 8717 8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 8719$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 8720 cacheid=xorg_cv_cc_flag__Werror_init_self 8721 if eval \${$cacheid+:} false; then : 8722 $as_echo_n "(cached) " >&6 8723else 8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8725/* end confdefs.h. */ 8726int i; 8727int 8728main () 8729{ 8730 8731 ; 8732 return 0; 8733} 8734_ACEOF 8735if ac_fn_c_try_link "$LINENO"; then : 8736 eval $cacheid=yes 8737else 8738 eval $cacheid=no 8739fi 8740rm -f core conftest.err conftest.$ac_objext \ 8741 conftest$ac_exeext conftest.$ac_ext 8742fi 8743 8744 8745 CFLAGS="$xorg_testset_save_CFLAGS" 8746 8747 eval supported=\$$cacheid 8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8749$as_echo "$supported" >&6; } 8750 if test "$supported" = "yes" ; then 8751 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 8752 found="yes" 8753 fi 8754 fi 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770xorg_testset_save_CFLAGS="$CFLAGS" 8771 8772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8775$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8776if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8777 $as_echo_n "(cached) " >&6 8778else 8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8780/* end confdefs.h. */ 8781int i; 8782_ACEOF 8783if ac_fn_c_try_compile "$LINENO"; then : 8784 xorg_cv_cc_flag_unknown_warning_option=yes 8785else 8786 xorg_cv_cc_flag_unknown_warning_option=no 8787fi 8788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8789fi 8790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8791$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8793 CFLAGS="$xorg_testset_save_CFLAGS" 8794fi 8795 8796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8799 fi 8800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8802$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8803if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8804 $as_echo_n "(cached) " >&6 8805else 8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8807/* end confdefs.h. */ 8808int i; 8809_ACEOF 8810if ac_fn_c_try_compile "$LINENO"; then : 8811 xorg_cv_cc_flag_unused_command_line_argument=yes 8812else 8813 xorg_cv_cc_flag_unused_command_line_argument=no 8814fi 8815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8816fi 8817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8818$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8820 CFLAGS="$xorg_testset_save_CFLAGS" 8821fi 8822 8823found="no" 8824 8825 if test $found = "no" ; then 8826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8828 fi 8829 8830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8832 fi 8833 8834 CFLAGS="$CFLAGS -Werror=main" 8835 8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 8837$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 8838 cacheid=xorg_cv_cc_flag__Werror_main 8839 if eval \${$cacheid+:} false; then : 8840 $as_echo_n "(cached) " >&6 8841else 8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8843/* end confdefs.h. */ 8844int i; 8845int 8846main () 8847{ 8848 8849 ; 8850 return 0; 8851} 8852_ACEOF 8853if ac_fn_c_try_link "$LINENO"; then : 8854 eval $cacheid=yes 8855else 8856 eval $cacheid=no 8857fi 8858rm -f core conftest.err conftest.$ac_objext \ 8859 conftest$ac_exeext conftest.$ac_ext 8860fi 8861 8862 8863 CFLAGS="$xorg_testset_save_CFLAGS" 8864 8865 eval supported=\$$cacheid 8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8867$as_echo "$supported" >&6; } 8868 if test "$supported" = "yes" ; then 8869 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8870 found="yes" 8871 fi 8872 fi 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888xorg_testset_save_CFLAGS="$CFLAGS" 8889 8890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8893$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8894if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8895 $as_echo_n "(cached) " >&6 8896else 8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8898/* end confdefs.h. */ 8899int i; 8900_ACEOF 8901if ac_fn_c_try_compile "$LINENO"; then : 8902 xorg_cv_cc_flag_unknown_warning_option=yes 8903else 8904 xorg_cv_cc_flag_unknown_warning_option=no 8905fi 8906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8907fi 8908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8909$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8911 CFLAGS="$xorg_testset_save_CFLAGS" 8912fi 8913 8914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8917 fi 8918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8920$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8921if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8922 $as_echo_n "(cached) " >&6 8923else 8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8925/* end confdefs.h. */ 8926int i; 8927_ACEOF 8928if ac_fn_c_try_compile "$LINENO"; then : 8929 xorg_cv_cc_flag_unused_command_line_argument=yes 8930else 8931 xorg_cv_cc_flag_unused_command_line_argument=no 8932fi 8933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8934fi 8935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8936$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8938 CFLAGS="$xorg_testset_save_CFLAGS" 8939fi 8940 8941found="no" 8942 8943 if test $found = "no" ; then 8944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8946 fi 8947 8948 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8950 fi 8951 8952 CFLAGS="$CFLAGS -Werror=missing-braces" 8953 8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8955$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 8956 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8957 if eval \${$cacheid+:} false; then : 8958 $as_echo_n "(cached) " >&6 8959else 8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8961/* end confdefs.h. */ 8962int i; 8963int 8964main () 8965{ 8966 8967 ; 8968 return 0; 8969} 8970_ACEOF 8971if ac_fn_c_try_link "$LINENO"; then : 8972 eval $cacheid=yes 8973else 8974 eval $cacheid=no 8975fi 8976rm -f core conftest.err conftest.$ac_objext \ 8977 conftest$ac_exeext conftest.$ac_ext 8978fi 8979 8980 8981 CFLAGS="$xorg_testset_save_CFLAGS" 8982 8983 eval supported=\$$cacheid 8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8985$as_echo "$supported" >&6; } 8986 if test "$supported" = "yes" ; then 8987 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8988 found="yes" 8989 fi 8990 fi 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006xorg_testset_save_CFLAGS="$CFLAGS" 9007 9008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9011$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9012if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9013 $as_echo_n "(cached) " >&6 9014else 9015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9016/* end confdefs.h. */ 9017int i; 9018_ACEOF 9019if ac_fn_c_try_compile "$LINENO"; then : 9020 xorg_cv_cc_flag_unknown_warning_option=yes 9021else 9022 xorg_cv_cc_flag_unknown_warning_option=no 9023fi 9024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9025fi 9026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9027$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9029 CFLAGS="$xorg_testset_save_CFLAGS" 9030fi 9031 9032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9035 fi 9036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9038$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9039if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9040 $as_echo_n "(cached) " >&6 9041else 9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9043/* end confdefs.h. */ 9044int i; 9045_ACEOF 9046if ac_fn_c_try_compile "$LINENO"; then : 9047 xorg_cv_cc_flag_unused_command_line_argument=yes 9048else 9049 xorg_cv_cc_flag_unused_command_line_argument=no 9050fi 9051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9052fi 9053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9054$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9056 CFLAGS="$xorg_testset_save_CFLAGS" 9057fi 9058 9059found="no" 9060 9061 if test $found = "no" ; then 9062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9064 fi 9065 9066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9068 fi 9069 9070 CFLAGS="$CFLAGS -Werror=sequence-point" 9071 9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 9073$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 9074 cacheid=xorg_cv_cc_flag__Werror_sequence_point 9075 if eval \${$cacheid+:} false; then : 9076 $as_echo_n "(cached) " >&6 9077else 9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9079/* end confdefs.h. */ 9080int i; 9081int 9082main () 9083{ 9084 9085 ; 9086 return 0; 9087} 9088_ACEOF 9089if ac_fn_c_try_link "$LINENO"; then : 9090 eval $cacheid=yes 9091else 9092 eval $cacheid=no 9093fi 9094rm -f core conftest.err conftest.$ac_objext \ 9095 conftest$ac_exeext conftest.$ac_ext 9096fi 9097 9098 9099 CFLAGS="$xorg_testset_save_CFLAGS" 9100 9101 eval supported=\$$cacheid 9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9103$as_echo "$supported" >&6; } 9104 if test "$supported" = "yes" ; then 9105 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 9106 found="yes" 9107 fi 9108 fi 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124xorg_testset_save_CFLAGS="$CFLAGS" 9125 9126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9129$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9130if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9131 $as_echo_n "(cached) " >&6 9132else 9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9134/* end confdefs.h. */ 9135int i; 9136_ACEOF 9137if ac_fn_c_try_compile "$LINENO"; then : 9138 xorg_cv_cc_flag_unknown_warning_option=yes 9139else 9140 xorg_cv_cc_flag_unknown_warning_option=no 9141fi 9142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9143fi 9144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9145$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9147 CFLAGS="$xorg_testset_save_CFLAGS" 9148fi 9149 9150if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9153 fi 9154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9156$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9157if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9158 $as_echo_n "(cached) " >&6 9159else 9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9161/* end confdefs.h. */ 9162int i; 9163_ACEOF 9164if ac_fn_c_try_compile "$LINENO"; then : 9165 xorg_cv_cc_flag_unused_command_line_argument=yes 9166else 9167 xorg_cv_cc_flag_unused_command_line_argument=no 9168fi 9169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9170fi 9171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9172$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9174 CFLAGS="$xorg_testset_save_CFLAGS" 9175fi 9176 9177found="no" 9178 9179 if test $found = "no" ; then 9180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9182 fi 9183 9184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9186 fi 9187 9188 CFLAGS="$CFLAGS -Werror=return-type" 9189 9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 9191$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 9192 cacheid=xorg_cv_cc_flag__Werror_return_type 9193 if eval \${$cacheid+:} false; then : 9194 $as_echo_n "(cached) " >&6 9195else 9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9197/* end confdefs.h. */ 9198int i; 9199int 9200main () 9201{ 9202 9203 ; 9204 return 0; 9205} 9206_ACEOF 9207if ac_fn_c_try_link "$LINENO"; then : 9208 eval $cacheid=yes 9209else 9210 eval $cacheid=no 9211fi 9212rm -f core conftest.err conftest.$ac_objext \ 9213 conftest$ac_exeext conftest.$ac_ext 9214fi 9215 9216 9217 CFLAGS="$xorg_testset_save_CFLAGS" 9218 9219 eval supported=\$$cacheid 9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9221$as_echo "$supported" >&6; } 9222 if test "$supported" = "yes" ; then 9223 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 9224 found="yes" 9225 fi 9226 fi 9227 9228 if test $found = "no" ; then 9229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9231 fi 9232 9233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9235 fi 9236 9237 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 9238 9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 9240$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 9241 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 9242 if eval \${$cacheid+:} false; then : 9243 $as_echo_n "(cached) " >&6 9244else 9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9246/* end confdefs.h. */ 9247int i; 9248int 9249main () 9250{ 9251 9252 ; 9253 return 0; 9254} 9255_ACEOF 9256if ac_fn_c_try_link "$LINENO"; then : 9257 eval $cacheid=yes 9258else 9259 eval $cacheid=no 9260fi 9261rm -f core conftest.err conftest.$ac_objext \ 9262 conftest$ac_exeext conftest.$ac_ext 9263fi 9264 9265 9266 CFLAGS="$xorg_testset_save_CFLAGS" 9267 9268 eval supported=\$$cacheid 9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9270$as_echo "$supported" >&6; } 9271 if test "$supported" = "yes" ; then 9272 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 9273 found="yes" 9274 fi 9275 fi 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291xorg_testset_save_CFLAGS="$CFLAGS" 9292 9293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9296$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9297if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9298 $as_echo_n "(cached) " >&6 9299else 9300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9301/* end confdefs.h. */ 9302int i; 9303_ACEOF 9304if ac_fn_c_try_compile "$LINENO"; then : 9305 xorg_cv_cc_flag_unknown_warning_option=yes 9306else 9307 xorg_cv_cc_flag_unknown_warning_option=no 9308fi 9309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9310fi 9311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9312$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9314 CFLAGS="$xorg_testset_save_CFLAGS" 9315fi 9316 9317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9320 fi 9321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9323$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9324if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9325 $as_echo_n "(cached) " >&6 9326else 9327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9328/* end confdefs.h. */ 9329int i; 9330_ACEOF 9331if ac_fn_c_try_compile "$LINENO"; then : 9332 xorg_cv_cc_flag_unused_command_line_argument=yes 9333else 9334 xorg_cv_cc_flag_unused_command_line_argument=no 9335fi 9336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9337fi 9338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9339$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9341 CFLAGS="$xorg_testset_save_CFLAGS" 9342fi 9343 9344found="no" 9345 9346 if test $found = "no" ; then 9347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9349 fi 9350 9351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9353 fi 9354 9355 CFLAGS="$CFLAGS -Werror=trigraphs" 9356 9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 9358$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 9359 cacheid=xorg_cv_cc_flag__Werror_trigraphs 9360 if eval \${$cacheid+:} false; then : 9361 $as_echo_n "(cached) " >&6 9362else 9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9364/* end confdefs.h. */ 9365int i; 9366int 9367main () 9368{ 9369 9370 ; 9371 return 0; 9372} 9373_ACEOF 9374if ac_fn_c_try_link "$LINENO"; then : 9375 eval $cacheid=yes 9376else 9377 eval $cacheid=no 9378fi 9379rm -f core conftest.err conftest.$ac_objext \ 9380 conftest$ac_exeext conftest.$ac_ext 9381fi 9382 9383 9384 CFLAGS="$xorg_testset_save_CFLAGS" 9385 9386 eval supported=\$$cacheid 9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9388$as_echo "$supported" >&6; } 9389 if test "$supported" = "yes" ; then 9390 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 9391 found="yes" 9392 fi 9393 fi 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409xorg_testset_save_CFLAGS="$CFLAGS" 9410 9411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9414$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9415if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9416 $as_echo_n "(cached) " >&6 9417else 9418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9419/* end confdefs.h. */ 9420int i; 9421_ACEOF 9422if ac_fn_c_try_compile "$LINENO"; then : 9423 xorg_cv_cc_flag_unknown_warning_option=yes 9424else 9425 xorg_cv_cc_flag_unknown_warning_option=no 9426fi 9427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9428fi 9429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9430$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9432 CFLAGS="$xorg_testset_save_CFLAGS" 9433fi 9434 9435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9438 fi 9439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9441$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9442if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9443 $as_echo_n "(cached) " >&6 9444else 9445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9446/* end confdefs.h. */ 9447int i; 9448_ACEOF 9449if ac_fn_c_try_compile "$LINENO"; then : 9450 xorg_cv_cc_flag_unused_command_line_argument=yes 9451else 9452 xorg_cv_cc_flag_unused_command_line_argument=no 9453fi 9454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9455fi 9456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9457$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9459 CFLAGS="$xorg_testset_save_CFLAGS" 9460fi 9461 9462found="no" 9463 9464 if test $found = "no" ; then 9465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9467 fi 9468 9469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9471 fi 9472 9473 CFLAGS="$CFLAGS -Werror=array-bounds" 9474 9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 9476$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 9477 cacheid=xorg_cv_cc_flag__Werror_array_bounds 9478 if eval \${$cacheid+:} false; then : 9479 $as_echo_n "(cached) " >&6 9480else 9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9482/* end confdefs.h. */ 9483int i; 9484int 9485main () 9486{ 9487 9488 ; 9489 return 0; 9490} 9491_ACEOF 9492if ac_fn_c_try_link "$LINENO"; then : 9493 eval $cacheid=yes 9494else 9495 eval $cacheid=no 9496fi 9497rm -f core conftest.err conftest.$ac_objext \ 9498 conftest$ac_exeext conftest.$ac_ext 9499fi 9500 9501 9502 CFLAGS="$xorg_testset_save_CFLAGS" 9503 9504 eval supported=\$$cacheid 9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9506$as_echo "$supported" >&6; } 9507 if test "$supported" = "yes" ; then 9508 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 9509 found="yes" 9510 fi 9511 fi 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527xorg_testset_save_CFLAGS="$CFLAGS" 9528 9529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9532$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9533if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9534 $as_echo_n "(cached) " >&6 9535else 9536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9537/* end confdefs.h. */ 9538int i; 9539_ACEOF 9540if ac_fn_c_try_compile "$LINENO"; then : 9541 xorg_cv_cc_flag_unknown_warning_option=yes 9542else 9543 xorg_cv_cc_flag_unknown_warning_option=no 9544fi 9545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9546fi 9547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9548$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9550 CFLAGS="$xorg_testset_save_CFLAGS" 9551fi 9552 9553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9556 fi 9557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9559$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9560if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9561 $as_echo_n "(cached) " >&6 9562else 9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9564/* end confdefs.h. */ 9565int i; 9566_ACEOF 9567if ac_fn_c_try_compile "$LINENO"; then : 9568 xorg_cv_cc_flag_unused_command_line_argument=yes 9569else 9570 xorg_cv_cc_flag_unused_command_line_argument=no 9571fi 9572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9573fi 9574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9575$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9576 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9577 CFLAGS="$xorg_testset_save_CFLAGS" 9578fi 9579 9580found="no" 9581 9582 if test $found = "no" ; then 9583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9585 fi 9586 9587 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9589 fi 9590 9591 CFLAGS="$CFLAGS -Werror=write-strings" 9592 9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 9594$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 9595 cacheid=xorg_cv_cc_flag__Werror_write_strings 9596 if eval \${$cacheid+:} false; then : 9597 $as_echo_n "(cached) " >&6 9598else 9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9600/* end confdefs.h. */ 9601int i; 9602int 9603main () 9604{ 9605 9606 ; 9607 return 0; 9608} 9609_ACEOF 9610if ac_fn_c_try_link "$LINENO"; then : 9611 eval $cacheid=yes 9612else 9613 eval $cacheid=no 9614fi 9615rm -f core conftest.err conftest.$ac_objext \ 9616 conftest$ac_exeext conftest.$ac_ext 9617fi 9618 9619 9620 CFLAGS="$xorg_testset_save_CFLAGS" 9621 9622 eval supported=\$$cacheid 9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9624$as_echo "$supported" >&6; } 9625 if test "$supported" = "yes" ; then 9626 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 9627 found="yes" 9628 fi 9629 fi 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645xorg_testset_save_CFLAGS="$CFLAGS" 9646 9647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9650$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9651if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9652 $as_echo_n "(cached) " >&6 9653else 9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9655/* end confdefs.h. */ 9656int i; 9657_ACEOF 9658if ac_fn_c_try_compile "$LINENO"; then : 9659 xorg_cv_cc_flag_unknown_warning_option=yes 9660else 9661 xorg_cv_cc_flag_unknown_warning_option=no 9662fi 9663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9664fi 9665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9666$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9667 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9668 CFLAGS="$xorg_testset_save_CFLAGS" 9669fi 9670 9671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9674 fi 9675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9677$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9678if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9679 $as_echo_n "(cached) " >&6 9680else 9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9682/* end confdefs.h. */ 9683int i; 9684_ACEOF 9685if ac_fn_c_try_compile "$LINENO"; then : 9686 xorg_cv_cc_flag_unused_command_line_argument=yes 9687else 9688 xorg_cv_cc_flag_unused_command_line_argument=no 9689fi 9690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9691fi 9692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9693$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9694 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9695 CFLAGS="$xorg_testset_save_CFLAGS" 9696fi 9697 9698found="no" 9699 9700 if test $found = "no" ; then 9701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9703 fi 9704 9705 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9707 fi 9708 9709 CFLAGS="$CFLAGS -Werror=address" 9710 9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 9712$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 9713 cacheid=xorg_cv_cc_flag__Werror_address 9714 if eval \${$cacheid+:} false; then : 9715 $as_echo_n "(cached) " >&6 9716else 9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9718/* end confdefs.h. */ 9719int i; 9720int 9721main () 9722{ 9723 9724 ; 9725 return 0; 9726} 9727_ACEOF 9728if ac_fn_c_try_link "$LINENO"; then : 9729 eval $cacheid=yes 9730else 9731 eval $cacheid=no 9732fi 9733rm -f core conftest.err conftest.$ac_objext \ 9734 conftest$ac_exeext conftest.$ac_ext 9735fi 9736 9737 9738 CFLAGS="$xorg_testset_save_CFLAGS" 9739 9740 eval supported=\$$cacheid 9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9742$as_echo "$supported" >&6; } 9743 if test "$supported" = "yes" ; then 9744 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 9745 found="yes" 9746 fi 9747 fi 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763xorg_testset_save_CFLAGS="$CFLAGS" 9764 9765if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9768$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9769if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9770 $as_echo_n "(cached) " >&6 9771else 9772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9773/* end confdefs.h. */ 9774int i; 9775_ACEOF 9776if ac_fn_c_try_compile "$LINENO"; then : 9777 xorg_cv_cc_flag_unknown_warning_option=yes 9778else 9779 xorg_cv_cc_flag_unknown_warning_option=no 9780fi 9781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9782fi 9783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9784$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9786 CFLAGS="$xorg_testset_save_CFLAGS" 9787fi 9788 9789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9792 fi 9793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9795$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9796if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9797 $as_echo_n "(cached) " >&6 9798else 9799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9800/* end confdefs.h. */ 9801int i; 9802_ACEOF 9803if ac_fn_c_try_compile "$LINENO"; then : 9804 xorg_cv_cc_flag_unused_command_line_argument=yes 9805else 9806 xorg_cv_cc_flag_unused_command_line_argument=no 9807fi 9808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9809fi 9810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9811$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9813 CFLAGS="$xorg_testset_save_CFLAGS" 9814fi 9815 9816found="no" 9817 9818 if test $found = "no" ; then 9819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9821 fi 9822 9823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9825 fi 9826 9827 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9828 9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9830$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9831 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9832 if eval \${$cacheid+:} false; then : 9833 $as_echo_n "(cached) " >&6 9834else 9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9836/* end confdefs.h. */ 9837int i; 9838int 9839main () 9840{ 9841 9842 ; 9843 return 0; 9844} 9845_ACEOF 9846if ac_fn_c_try_link "$LINENO"; then : 9847 eval $cacheid=yes 9848else 9849 eval $cacheid=no 9850fi 9851rm -f core conftest.err conftest.$ac_objext \ 9852 conftest$ac_exeext conftest.$ac_ext 9853fi 9854 9855 9856 CFLAGS="$xorg_testset_save_CFLAGS" 9857 9858 eval supported=\$$cacheid 9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9860$as_echo "$supported" >&6; } 9861 if test "$supported" = "yes" ; then 9862 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9863 found="yes" 9864 fi 9865 fi 9866 9867 if test $found = "no" ; then 9868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9870 fi 9871 9872 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9874 fi 9875 9876 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9877 9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9879$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9880 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9881 if eval \${$cacheid+:} false; then : 9882 $as_echo_n "(cached) " >&6 9883else 9884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9885/* end confdefs.h. */ 9886int i; 9887int 9888main () 9889{ 9890 9891 ; 9892 return 0; 9893} 9894_ACEOF 9895if ac_fn_c_try_link "$LINENO"; then : 9896 eval $cacheid=yes 9897else 9898 eval $cacheid=no 9899fi 9900rm -f core conftest.err conftest.$ac_objext \ 9901 conftest$ac_exeext conftest.$ac_ext 9902fi 9903 9904 9905 CFLAGS="$xorg_testset_save_CFLAGS" 9906 9907 eval supported=\$$cacheid 9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9909$as_echo "$supported" >&6; } 9910 if test "$supported" = "yes" ; then 9911 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9912 found="yes" 9913 fi 9914 fi 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930xorg_testset_save_CFLAGS="$CFLAGS" 9931 9932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9935$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9936if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9937 $as_echo_n "(cached) " >&6 9938else 9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9940/* end confdefs.h. */ 9941int i; 9942_ACEOF 9943if ac_fn_c_try_compile "$LINENO"; then : 9944 xorg_cv_cc_flag_unknown_warning_option=yes 9945else 9946 xorg_cv_cc_flag_unknown_warning_option=no 9947fi 9948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9949fi 9950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9951$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9953 CFLAGS="$xorg_testset_save_CFLAGS" 9954fi 9955 9956if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9959 fi 9960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9962$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9963if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9964 $as_echo_n "(cached) " >&6 9965else 9966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9967/* end confdefs.h. */ 9968int i; 9969_ACEOF 9970if ac_fn_c_try_compile "$LINENO"; then : 9971 xorg_cv_cc_flag_unused_command_line_argument=yes 9972else 9973 xorg_cv_cc_flag_unused_command_line_argument=no 9974fi 9975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9976fi 9977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9978$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9980 CFLAGS="$xorg_testset_save_CFLAGS" 9981fi 9982 9983found="no" 9984 9985 if test $found = "no" ; then 9986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9988 fi 9989 9990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9992 fi 9993 9994 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9995 9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9997$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9998 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9999 if eval \${$cacheid+:} false; then : 10000 $as_echo_n "(cached) " >&6 10001else 10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10003/* end confdefs.h. */ 10004int i; 10005int 10006main () 10007{ 10008 10009 ; 10010 return 0; 10011} 10012_ACEOF 10013if ac_fn_c_try_link "$LINENO"; then : 10014 eval $cacheid=yes 10015else 10016 eval $cacheid=no 10017fi 10018rm -f core conftest.err conftest.$ac_objext \ 10019 conftest$ac_exeext conftest.$ac_ext 10020fi 10021 10022 10023 CFLAGS="$xorg_testset_save_CFLAGS" 10024 10025 eval supported=\$$cacheid 10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10027$as_echo "$supported" >&6; } 10028 if test "$supported" = "yes" ; then 10029 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 10030 found="yes" 10031 fi 10032 fi 10033 10034 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 10035else 10036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 10037$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051xorg_testset_save_CFLAGS="$CFLAGS" 10052 10053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10056$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10057if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10058 $as_echo_n "(cached) " >&6 10059else 10060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10061/* end confdefs.h. */ 10062int i; 10063_ACEOF 10064if ac_fn_c_try_compile "$LINENO"; then : 10065 xorg_cv_cc_flag_unknown_warning_option=yes 10066else 10067 xorg_cv_cc_flag_unknown_warning_option=no 10068fi 10069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10070fi 10071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10072$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10074 CFLAGS="$xorg_testset_save_CFLAGS" 10075fi 10076 10077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10080 fi 10081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10083$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10084if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10085 $as_echo_n "(cached) " >&6 10086else 10087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10088/* end confdefs.h. */ 10089int i; 10090_ACEOF 10091if ac_fn_c_try_compile "$LINENO"; then : 10092 xorg_cv_cc_flag_unused_command_line_argument=yes 10093else 10094 xorg_cv_cc_flag_unused_command_line_argument=no 10095fi 10096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10097fi 10098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10099$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10101 CFLAGS="$xorg_testset_save_CFLAGS" 10102fi 10103 10104found="no" 10105 10106 if test $found = "no" ; then 10107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10109 fi 10110 10111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10113 fi 10114 10115 CFLAGS="$CFLAGS -Wimplicit" 10116 10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 10118$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 10119 cacheid=xorg_cv_cc_flag__Wimplicit 10120 if eval \${$cacheid+:} false; then : 10121 $as_echo_n "(cached) " >&6 10122else 10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10124/* end confdefs.h. */ 10125int i; 10126int 10127main () 10128{ 10129 10130 ; 10131 return 0; 10132} 10133_ACEOF 10134if ac_fn_c_try_link "$LINENO"; then : 10135 eval $cacheid=yes 10136else 10137 eval $cacheid=no 10138fi 10139rm -f core conftest.err conftest.$ac_objext \ 10140 conftest$ac_exeext conftest.$ac_ext 10141fi 10142 10143 10144 CFLAGS="$xorg_testset_save_CFLAGS" 10145 10146 eval supported=\$$cacheid 10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10148$as_echo "$supported" >&6; } 10149 if test "$supported" = "yes" ; then 10150 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 10151 found="yes" 10152 fi 10153 fi 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169xorg_testset_save_CFLAGS="$CFLAGS" 10170 10171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10174$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10175if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10176 $as_echo_n "(cached) " >&6 10177else 10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10179/* end confdefs.h. */ 10180int i; 10181_ACEOF 10182if ac_fn_c_try_compile "$LINENO"; then : 10183 xorg_cv_cc_flag_unknown_warning_option=yes 10184else 10185 xorg_cv_cc_flag_unknown_warning_option=no 10186fi 10187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10188fi 10189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10190$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10192 CFLAGS="$xorg_testset_save_CFLAGS" 10193fi 10194 10195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10198 fi 10199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10201$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10202if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10203 $as_echo_n "(cached) " >&6 10204else 10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10206/* end confdefs.h. */ 10207int i; 10208_ACEOF 10209if ac_fn_c_try_compile "$LINENO"; then : 10210 xorg_cv_cc_flag_unused_command_line_argument=yes 10211else 10212 xorg_cv_cc_flag_unused_command_line_argument=no 10213fi 10214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10215fi 10216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10217$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10219 CFLAGS="$xorg_testset_save_CFLAGS" 10220fi 10221 10222found="no" 10223 10224 if test $found = "no" ; then 10225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10227 fi 10228 10229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10231 fi 10232 10233 CFLAGS="$CFLAGS -Wnonnull" 10234 10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 10236$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 10237 cacheid=xorg_cv_cc_flag__Wnonnull 10238 if eval \${$cacheid+:} false; then : 10239 $as_echo_n "(cached) " >&6 10240else 10241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10242/* end confdefs.h. */ 10243int i; 10244int 10245main () 10246{ 10247 10248 ; 10249 return 0; 10250} 10251_ACEOF 10252if ac_fn_c_try_link "$LINENO"; then : 10253 eval $cacheid=yes 10254else 10255 eval $cacheid=no 10256fi 10257rm -f core conftest.err conftest.$ac_objext \ 10258 conftest$ac_exeext conftest.$ac_ext 10259fi 10260 10261 10262 CFLAGS="$xorg_testset_save_CFLAGS" 10263 10264 eval supported=\$$cacheid 10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10266$as_echo "$supported" >&6; } 10267 if test "$supported" = "yes" ; then 10268 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 10269 found="yes" 10270 fi 10271 fi 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287xorg_testset_save_CFLAGS="$CFLAGS" 10288 10289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10292$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10293if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10294 $as_echo_n "(cached) " >&6 10295else 10296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10297/* end confdefs.h. */ 10298int i; 10299_ACEOF 10300if ac_fn_c_try_compile "$LINENO"; then : 10301 xorg_cv_cc_flag_unknown_warning_option=yes 10302else 10303 xorg_cv_cc_flag_unknown_warning_option=no 10304fi 10305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10306fi 10307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10308$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10310 CFLAGS="$xorg_testset_save_CFLAGS" 10311fi 10312 10313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10316 fi 10317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10319$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10320if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10321 $as_echo_n "(cached) " >&6 10322else 10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10324/* end confdefs.h. */ 10325int i; 10326_ACEOF 10327if ac_fn_c_try_compile "$LINENO"; then : 10328 xorg_cv_cc_flag_unused_command_line_argument=yes 10329else 10330 xorg_cv_cc_flag_unused_command_line_argument=no 10331fi 10332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10333fi 10334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10335$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10337 CFLAGS="$xorg_testset_save_CFLAGS" 10338fi 10339 10340found="no" 10341 10342 if test $found = "no" ; then 10343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10345 fi 10346 10347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10349 fi 10350 10351 CFLAGS="$CFLAGS -Winit-self" 10352 10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 10354$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 10355 cacheid=xorg_cv_cc_flag__Winit_self 10356 if eval \${$cacheid+:} false; then : 10357 $as_echo_n "(cached) " >&6 10358else 10359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10360/* end confdefs.h. */ 10361int i; 10362int 10363main () 10364{ 10365 10366 ; 10367 return 0; 10368} 10369_ACEOF 10370if ac_fn_c_try_link "$LINENO"; then : 10371 eval $cacheid=yes 10372else 10373 eval $cacheid=no 10374fi 10375rm -f core conftest.err conftest.$ac_objext \ 10376 conftest$ac_exeext conftest.$ac_ext 10377fi 10378 10379 10380 CFLAGS="$xorg_testset_save_CFLAGS" 10381 10382 eval supported=\$$cacheid 10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10384$as_echo "$supported" >&6; } 10385 if test "$supported" = "yes" ; then 10386 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 10387 found="yes" 10388 fi 10389 fi 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405xorg_testset_save_CFLAGS="$CFLAGS" 10406 10407if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10410$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10411if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10412 $as_echo_n "(cached) " >&6 10413else 10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10415/* end confdefs.h. */ 10416int i; 10417_ACEOF 10418if ac_fn_c_try_compile "$LINENO"; then : 10419 xorg_cv_cc_flag_unknown_warning_option=yes 10420else 10421 xorg_cv_cc_flag_unknown_warning_option=no 10422fi 10423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10424fi 10425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10426$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10428 CFLAGS="$xorg_testset_save_CFLAGS" 10429fi 10430 10431if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10434 fi 10435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10437$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10438if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10439 $as_echo_n "(cached) " >&6 10440else 10441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10442/* end confdefs.h. */ 10443int i; 10444_ACEOF 10445if ac_fn_c_try_compile "$LINENO"; then : 10446 xorg_cv_cc_flag_unused_command_line_argument=yes 10447else 10448 xorg_cv_cc_flag_unused_command_line_argument=no 10449fi 10450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10451fi 10452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10453$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10455 CFLAGS="$xorg_testset_save_CFLAGS" 10456fi 10457 10458found="no" 10459 10460 if test $found = "no" ; then 10461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10463 fi 10464 10465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10467 fi 10468 10469 CFLAGS="$CFLAGS -Wmain" 10470 10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 10472$as_echo_n "checking if $CC supports -Wmain... " >&6; } 10473 cacheid=xorg_cv_cc_flag__Wmain 10474 if eval \${$cacheid+:} false; then : 10475 $as_echo_n "(cached) " >&6 10476else 10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10478/* end confdefs.h. */ 10479int i; 10480int 10481main () 10482{ 10483 10484 ; 10485 return 0; 10486} 10487_ACEOF 10488if ac_fn_c_try_link "$LINENO"; then : 10489 eval $cacheid=yes 10490else 10491 eval $cacheid=no 10492fi 10493rm -f core conftest.err conftest.$ac_objext \ 10494 conftest$ac_exeext conftest.$ac_ext 10495fi 10496 10497 10498 CFLAGS="$xorg_testset_save_CFLAGS" 10499 10500 eval supported=\$$cacheid 10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10502$as_echo "$supported" >&6; } 10503 if test "$supported" = "yes" ; then 10504 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 10505 found="yes" 10506 fi 10507 fi 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523xorg_testset_save_CFLAGS="$CFLAGS" 10524 10525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10528$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10529if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10530 $as_echo_n "(cached) " >&6 10531else 10532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10533/* end confdefs.h. */ 10534int i; 10535_ACEOF 10536if ac_fn_c_try_compile "$LINENO"; then : 10537 xorg_cv_cc_flag_unknown_warning_option=yes 10538else 10539 xorg_cv_cc_flag_unknown_warning_option=no 10540fi 10541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10542fi 10543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10544$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10546 CFLAGS="$xorg_testset_save_CFLAGS" 10547fi 10548 10549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10552 fi 10553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10555$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10556if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10557 $as_echo_n "(cached) " >&6 10558else 10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10560/* end confdefs.h. */ 10561int i; 10562_ACEOF 10563if ac_fn_c_try_compile "$LINENO"; then : 10564 xorg_cv_cc_flag_unused_command_line_argument=yes 10565else 10566 xorg_cv_cc_flag_unused_command_line_argument=no 10567fi 10568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10569fi 10570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10571$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10573 CFLAGS="$xorg_testset_save_CFLAGS" 10574fi 10575 10576found="no" 10577 10578 if test $found = "no" ; then 10579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10581 fi 10582 10583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10585 fi 10586 10587 CFLAGS="$CFLAGS -Wmissing-braces" 10588 10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 10590$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 10591 cacheid=xorg_cv_cc_flag__Wmissing_braces 10592 if eval \${$cacheid+:} false; then : 10593 $as_echo_n "(cached) " >&6 10594else 10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10596/* end confdefs.h. */ 10597int i; 10598int 10599main () 10600{ 10601 10602 ; 10603 return 0; 10604} 10605_ACEOF 10606if ac_fn_c_try_link "$LINENO"; then : 10607 eval $cacheid=yes 10608else 10609 eval $cacheid=no 10610fi 10611rm -f core conftest.err conftest.$ac_objext \ 10612 conftest$ac_exeext conftest.$ac_ext 10613fi 10614 10615 10616 CFLAGS="$xorg_testset_save_CFLAGS" 10617 10618 eval supported=\$$cacheid 10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10620$as_echo "$supported" >&6; } 10621 if test "$supported" = "yes" ; then 10622 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 10623 found="yes" 10624 fi 10625 fi 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641xorg_testset_save_CFLAGS="$CFLAGS" 10642 10643if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10646$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10647if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10648 $as_echo_n "(cached) " >&6 10649else 10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10651/* end confdefs.h. */ 10652int i; 10653_ACEOF 10654if ac_fn_c_try_compile "$LINENO"; then : 10655 xorg_cv_cc_flag_unknown_warning_option=yes 10656else 10657 xorg_cv_cc_flag_unknown_warning_option=no 10658fi 10659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10660fi 10661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10662$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10664 CFLAGS="$xorg_testset_save_CFLAGS" 10665fi 10666 10667if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10670 fi 10671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10673$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10674if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10675 $as_echo_n "(cached) " >&6 10676else 10677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10678/* end confdefs.h. */ 10679int i; 10680_ACEOF 10681if ac_fn_c_try_compile "$LINENO"; then : 10682 xorg_cv_cc_flag_unused_command_line_argument=yes 10683else 10684 xorg_cv_cc_flag_unused_command_line_argument=no 10685fi 10686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10687fi 10688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10689$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10691 CFLAGS="$xorg_testset_save_CFLAGS" 10692fi 10693 10694found="no" 10695 10696 if test $found = "no" ; then 10697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10699 fi 10700 10701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10703 fi 10704 10705 CFLAGS="$CFLAGS -Wsequence-point" 10706 10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10708$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 10709 cacheid=xorg_cv_cc_flag__Wsequence_point 10710 if eval \${$cacheid+:} false; then : 10711 $as_echo_n "(cached) " >&6 10712else 10713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10714/* end confdefs.h. */ 10715int i; 10716int 10717main () 10718{ 10719 10720 ; 10721 return 0; 10722} 10723_ACEOF 10724if ac_fn_c_try_link "$LINENO"; then : 10725 eval $cacheid=yes 10726else 10727 eval $cacheid=no 10728fi 10729rm -f core conftest.err conftest.$ac_objext \ 10730 conftest$ac_exeext conftest.$ac_ext 10731fi 10732 10733 10734 CFLAGS="$xorg_testset_save_CFLAGS" 10735 10736 eval supported=\$$cacheid 10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10738$as_echo "$supported" >&6; } 10739 if test "$supported" = "yes" ; then 10740 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10741 found="yes" 10742 fi 10743 fi 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759xorg_testset_save_CFLAGS="$CFLAGS" 10760 10761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10764$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10765if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10766 $as_echo_n "(cached) " >&6 10767else 10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10769/* end confdefs.h. */ 10770int i; 10771_ACEOF 10772if ac_fn_c_try_compile "$LINENO"; then : 10773 xorg_cv_cc_flag_unknown_warning_option=yes 10774else 10775 xorg_cv_cc_flag_unknown_warning_option=no 10776fi 10777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10778fi 10779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10780$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10782 CFLAGS="$xorg_testset_save_CFLAGS" 10783fi 10784 10785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10788 fi 10789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10791$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10792if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10793 $as_echo_n "(cached) " >&6 10794else 10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10796/* end confdefs.h. */ 10797int i; 10798_ACEOF 10799if ac_fn_c_try_compile "$LINENO"; then : 10800 xorg_cv_cc_flag_unused_command_line_argument=yes 10801else 10802 xorg_cv_cc_flag_unused_command_line_argument=no 10803fi 10804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10805fi 10806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10807$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10809 CFLAGS="$xorg_testset_save_CFLAGS" 10810fi 10811 10812found="no" 10813 10814 if test $found = "no" ; then 10815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10817 fi 10818 10819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10821 fi 10822 10823 CFLAGS="$CFLAGS -Wreturn-type" 10824 10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10826$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 10827 cacheid=xorg_cv_cc_flag__Wreturn_type 10828 if eval \${$cacheid+:} false; then : 10829 $as_echo_n "(cached) " >&6 10830else 10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10832/* end confdefs.h. */ 10833int i; 10834int 10835main () 10836{ 10837 10838 ; 10839 return 0; 10840} 10841_ACEOF 10842if ac_fn_c_try_link "$LINENO"; then : 10843 eval $cacheid=yes 10844else 10845 eval $cacheid=no 10846fi 10847rm -f core conftest.err conftest.$ac_objext \ 10848 conftest$ac_exeext conftest.$ac_ext 10849fi 10850 10851 10852 CFLAGS="$xorg_testset_save_CFLAGS" 10853 10854 eval supported=\$$cacheid 10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10856$as_echo "$supported" >&6; } 10857 if test "$supported" = "yes" ; then 10858 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10859 found="yes" 10860 fi 10861 fi 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877xorg_testset_save_CFLAGS="$CFLAGS" 10878 10879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10882$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10883if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10884 $as_echo_n "(cached) " >&6 10885else 10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10887/* end confdefs.h. */ 10888int i; 10889_ACEOF 10890if ac_fn_c_try_compile "$LINENO"; then : 10891 xorg_cv_cc_flag_unknown_warning_option=yes 10892else 10893 xorg_cv_cc_flag_unknown_warning_option=no 10894fi 10895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10896fi 10897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10898$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10900 CFLAGS="$xorg_testset_save_CFLAGS" 10901fi 10902 10903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10906 fi 10907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10909$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10910if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10911 $as_echo_n "(cached) " >&6 10912else 10913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10914/* end confdefs.h. */ 10915int i; 10916_ACEOF 10917if ac_fn_c_try_compile "$LINENO"; then : 10918 xorg_cv_cc_flag_unused_command_line_argument=yes 10919else 10920 xorg_cv_cc_flag_unused_command_line_argument=no 10921fi 10922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10923fi 10924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10925$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10927 CFLAGS="$xorg_testset_save_CFLAGS" 10928fi 10929 10930found="no" 10931 10932 if test $found = "no" ; then 10933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10935 fi 10936 10937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10939 fi 10940 10941 CFLAGS="$CFLAGS -Wtrigraphs" 10942 10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10944$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 10945 cacheid=xorg_cv_cc_flag__Wtrigraphs 10946 if eval \${$cacheid+:} false; then : 10947 $as_echo_n "(cached) " >&6 10948else 10949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10950/* end confdefs.h. */ 10951int i; 10952int 10953main () 10954{ 10955 10956 ; 10957 return 0; 10958} 10959_ACEOF 10960if ac_fn_c_try_link "$LINENO"; then : 10961 eval $cacheid=yes 10962else 10963 eval $cacheid=no 10964fi 10965rm -f core conftest.err conftest.$ac_objext \ 10966 conftest$ac_exeext conftest.$ac_ext 10967fi 10968 10969 10970 CFLAGS="$xorg_testset_save_CFLAGS" 10971 10972 eval supported=\$$cacheid 10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10974$as_echo "$supported" >&6; } 10975 if test "$supported" = "yes" ; then 10976 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10977 found="yes" 10978 fi 10979 fi 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995xorg_testset_save_CFLAGS="$CFLAGS" 10996 10997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11000$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11001if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11002 $as_echo_n "(cached) " >&6 11003else 11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11005/* end confdefs.h. */ 11006int i; 11007_ACEOF 11008if ac_fn_c_try_compile "$LINENO"; then : 11009 xorg_cv_cc_flag_unknown_warning_option=yes 11010else 11011 xorg_cv_cc_flag_unknown_warning_option=no 11012fi 11013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11014fi 11015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11016$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11018 CFLAGS="$xorg_testset_save_CFLAGS" 11019fi 11020 11021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11024 fi 11025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11027$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11028if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11029 $as_echo_n "(cached) " >&6 11030else 11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11032/* end confdefs.h. */ 11033int i; 11034_ACEOF 11035if ac_fn_c_try_compile "$LINENO"; then : 11036 xorg_cv_cc_flag_unused_command_line_argument=yes 11037else 11038 xorg_cv_cc_flag_unused_command_line_argument=no 11039fi 11040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11041fi 11042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11043$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11045 CFLAGS="$xorg_testset_save_CFLAGS" 11046fi 11047 11048found="no" 11049 11050 if test $found = "no" ; then 11051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11053 fi 11054 11055 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11057 fi 11058 11059 CFLAGS="$CFLAGS -Warray-bounds" 11060 11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 11062$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 11063 cacheid=xorg_cv_cc_flag__Warray_bounds 11064 if eval \${$cacheid+:} false; then : 11065 $as_echo_n "(cached) " >&6 11066else 11067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11068/* end confdefs.h. */ 11069int i; 11070int 11071main () 11072{ 11073 11074 ; 11075 return 0; 11076} 11077_ACEOF 11078if ac_fn_c_try_link "$LINENO"; then : 11079 eval $cacheid=yes 11080else 11081 eval $cacheid=no 11082fi 11083rm -f core conftest.err conftest.$ac_objext \ 11084 conftest$ac_exeext conftest.$ac_ext 11085fi 11086 11087 11088 CFLAGS="$xorg_testset_save_CFLAGS" 11089 11090 eval supported=\$$cacheid 11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11092$as_echo "$supported" >&6; } 11093 if test "$supported" = "yes" ; then 11094 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 11095 found="yes" 11096 fi 11097 fi 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113xorg_testset_save_CFLAGS="$CFLAGS" 11114 11115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11118$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11119if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11120 $as_echo_n "(cached) " >&6 11121else 11122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11123/* end confdefs.h. */ 11124int i; 11125_ACEOF 11126if ac_fn_c_try_compile "$LINENO"; then : 11127 xorg_cv_cc_flag_unknown_warning_option=yes 11128else 11129 xorg_cv_cc_flag_unknown_warning_option=no 11130fi 11131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11132fi 11133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11134$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11136 CFLAGS="$xorg_testset_save_CFLAGS" 11137fi 11138 11139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11142 fi 11143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11145$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11146if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11147 $as_echo_n "(cached) " >&6 11148else 11149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11150/* end confdefs.h. */ 11151int i; 11152_ACEOF 11153if ac_fn_c_try_compile "$LINENO"; then : 11154 xorg_cv_cc_flag_unused_command_line_argument=yes 11155else 11156 xorg_cv_cc_flag_unused_command_line_argument=no 11157fi 11158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11159fi 11160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11161$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11163 CFLAGS="$xorg_testset_save_CFLAGS" 11164fi 11165 11166found="no" 11167 11168 if test $found = "no" ; then 11169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11171 fi 11172 11173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11175 fi 11176 11177 CFLAGS="$CFLAGS -Wwrite-strings" 11178 11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 11180$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 11181 cacheid=xorg_cv_cc_flag__Wwrite_strings 11182 if eval \${$cacheid+:} false; then : 11183 $as_echo_n "(cached) " >&6 11184else 11185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11186/* end confdefs.h. */ 11187int i; 11188int 11189main () 11190{ 11191 11192 ; 11193 return 0; 11194} 11195_ACEOF 11196if ac_fn_c_try_link "$LINENO"; then : 11197 eval $cacheid=yes 11198else 11199 eval $cacheid=no 11200fi 11201rm -f core conftest.err conftest.$ac_objext \ 11202 conftest$ac_exeext conftest.$ac_ext 11203fi 11204 11205 11206 CFLAGS="$xorg_testset_save_CFLAGS" 11207 11208 eval supported=\$$cacheid 11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11210$as_echo "$supported" >&6; } 11211 if test "$supported" = "yes" ; then 11212 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 11213 found="yes" 11214 fi 11215 fi 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231xorg_testset_save_CFLAGS="$CFLAGS" 11232 11233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11236$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11237if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11238 $as_echo_n "(cached) " >&6 11239else 11240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11241/* end confdefs.h. */ 11242int i; 11243_ACEOF 11244if ac_fn_c_try_compile "$LINENO"; then : 11245 xorg_cv_cc_flag_unknown_warning_option=yes 11246else 11247 xorg_cv_cc_flag_unknown_warning_option=no 11248fi 11249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11250fi 11251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11252$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11253 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11254 CFLAGS="$xorg_testset_save_CFLAGS" 11255fi 11256 11257if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11260 fi 11261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11263$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11264if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11265 $as_echo_n "(cached) " >&6 11266else 11267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11268/* end confdefs.h. */ 11269int i; 11270_ACEOF 11271if ac_fn_c_try_compile "$LINENO"; then : 11272 xorg_cv_cc_flag_unused_command_line_argument=yes 11273else 11274 xorg_cv_cc_flag_unused_command_line_argument=no 11275fi 11276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11277fi 11278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11279$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11281 CFLAGS="$xorg_testset_save_CFLAGS" 11282fi 11283 11284found="no" 11285 11286 if test $found = "no" ; then 11287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11289 fi 11290 11291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11293 fi 11294 11295 CFLAGS="$CFLAGS -Waddress" 11296 11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 11298$as_echo_n "checking if $CC supports -Waddress... " >&6; } 11299 cacheid=xorg_cv_cc_flag__Waddress 11300 if eval \${$cacheid+:} false; then : 11301 $as_echo_n "(cached) " >&6 11302else 11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11304/* end confdefs.h. */ 11305int i; 11306int 11307main () 11308{ 11309 11310 ; 11311 return 0; 11312} 11313_ACEOF 11314if ac_fn_c_try_link "$LINENO"; then : 11315 eval $cacheid=yes 11316else 11317 eval $cacheid=no 11318fi 11319rm -f core conftest.err conftest.$ac_objext \ 11320 conftest$ac_exeext conftest.$ac_ext 11321fi 11322 11323 11324 CFLAGS="$xorg_testset_save_CFLAGS" 11325 11326 eval supported=\$$cacheid 11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11328$as_echo "$supported" >&6; } 11329 if test "$supported" = "yes" ; then 11330 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 11331 found="yes" 11332 fi 11333 fi 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349xorg_testset_save_CFLAGS="$CFLAGS" 11350 11351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11354$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11355if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11356 $as_echo_n "(cached) " >&6 11357else 11358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11359/* end confdefs.h. */ 11360int i; 11361_ACEOF 11362if ac_fn_c_try_compile "$LINENO"; then : 11363 xorg_cv_cc_flag_unknown_warning_option=yes 11364else 11365 xorg_cv_cc_flag_unknown_warning_option=no 11366fi 11367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11368fi 11369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11370$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11371 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11372 CFLAGS="$xorg_testset_save_CFLAGS" 11373fi 11374 11375if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11378 fi 11379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11381$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11382if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11383 $as_echo_n "(cached) " >&6 11384else 11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11386/* end confdefs.h. */ 11387int i; 11388_ACEOF 11389if ac_fn_c_try_compile "$LINENO"; then : 11390 xorg_cv_cc_flag_unused_command_line_argument=yes 11391else 11392 xorg_cv_cc_flag_unused_command_line_argument=no 11393fi 11394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11395fi 11396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11397$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11398 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11399 CFLAGS="$xorg_testset_save_CFLAGS" 11400fi 11401 11402found="no" 11403 11404 if test $found = "no" ; then 11405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11407 fi 11408 11409 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11411 fi 11412 11413 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 11414 11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 11416$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 11417 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 11418 if eval \${$cacheid+:} false; then : 11419 $as_echo_n "(cached) " >&6 11420else 11421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11422/* end confdefs.h. */ 11423int i; 11424int 11425main () 11426{ 11427 11428 ; 11429 return 0; 11430} 11431_ACEOF 11432if ac_fn_c_try_link "$LINENO"; then : 11433 eval $cacheid=yes 11434else 11435 eval $cacheid=no 11436fi 11437rm -f core conftest.err conftest.$ac_objext \ 11438 conftest$ac_exeext conftest.$ac_ext 11439fi 11440 11441 11442 CFLAGS="$xorg_testset_save_CFLAGS" 11443 11444 eval supported=\$$cacheid 11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11446$as_echo "$supported" >&6; } 11447 if test "$supported" = "yes" ; then 11448 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 11449 found="yes" 11450 fi 11451 fi 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467xorg_testset_save_CFLAGS="$CFLAGS" 11468 11469if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11472$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11473if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11474 $as_echo_n "(cached) " >&6 11475else 11476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11477/* end confdefs.h. */ 11478int i; 11479_ACEOF 11480if ac_fn_c_try_compile "$LINENO"; then : 11481 xorg_cv_cc_flag_unknown_warning_option=yes 11482else 11483 xorg_cv_cc_flag_unknown_warning_option=no 11484fi 11485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11486fi 11487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11488$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11489 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11490 CFLAGS="$xorg_testset_save_CFLAGS" 11491fi 11492 11493if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11496 fi 11497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11499$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11500if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11501 $as_echo_n "(cached) " >&6 11502else 11503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11504/* end confdefs.h. */ 11505int i; 11506_ACEOF 11507if ac_fn_c_try_compile "$LINENO"; then : 11508 xorg_cv_cc_flag_unused_command_line_argument=yes 11509else 11510 xorg_cv_cc_flag_unused_command_line_argument=no 11511fi 11512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11513fi 11514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11515$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11517 CFLAGS="$xorg_testset_save_CFLAGS" 11518fi 11519 11520found="no" 11521 11522 if test $found = "no" ; then 11523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11525 fi 11526 11527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11529 fi 11530 11531 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 11532 11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 11534$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 11535 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 11536 if eval \${$cacheid+:} false; then : 11537 $as_echo_n "(cached) " >&6 11538else 11539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11540/* end confdefs.h. */ 11541int i; 11542int 11543main () 11544{ 11545 11546 ; 11547 return 0; 11548} 11549_ACEOF 11550if ac_fn_c_try_link "$LINENO"; then : 11551 eval $cacheid=yes 11552else 11553 eval $cacheid=no 11554fi 11555rm -f core conftest.err conftest.$ac_objext \ 11556 conftest$ac_exeext conftest.$ac_ext 11557fi 11558 11559 11560 CFLAGS="$xorg_testset_save_CFLAGS" 11561 11562 eval supported=\$$cacheid 11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11564$as_echo "$supported" >&6; } 11565 if test "$supported" = "yes" ; then 11566 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 11567 found="yes" 11568 fi 11569 fi 11570 11571 11572fi 11573 11574 11575 11576 11577 11578 11579 11580 CWARNFLAGS="$BASE_CFLAGS" 11581 if test "x$GCC" = xyes ; then 11582 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 11583 fi 11584 11585 11586 11587 11588 11589 11590 11591 11592# Check whether --enable-strict-compilation was given. 11593if test "${enable_strict_compilation+set}" = set; then : 11594 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11595else 11596 STRICT_COMPILE=no 11597fi 11598 11599 11600 11601 11602 11603 11604STRICT_CFLAGS="" 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618xorg_testset_save_CFLAGS="$CFLAGS" 11619 11620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11623$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11624if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11625 $as_echo_n "(cached) " >&6 11626else 11627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11628/* end confdefs.h. */ 11629int i; 11630_ACEOF 11631if ac_fn_c_try_compile "$LINENO"; then : 11632 xorg_cv_cc_flag_unknown_warning_option=yes 11633else 11634 xorg_cv_cc_flag_unknown_warning_option=no 11635fi 11636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11637fi 11638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11639$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11641 CFLAGS="$xorg_testset_save_CFLAGS" 11642fi 11643 11644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11647 fi 11648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11650$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11651if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11652 $as_echo_n "(cached) " >&6 11653else 11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11655/* end confdefs.h. */ 11656int i; 11657_ACEOF 11658if ac_fn_c_try_compile "$LINENO"; then : 11659 xorg_cv_cc_flag_unused_command_line_argument=yes 11660else 11661 xorg_cv_cc_flag_unused_command_line_argument=no 11662fi 11663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11664fi 11665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11666$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11668 CFLAGS="$xorg_testset_save_CFLAGS" 11669fi 11670 11671found="no" 11672 11673 if test $found = "no" ; then 11674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11676 fi 11677 11678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11680 fi 11681 11682 CFLAGS="$CFLAGS -pedantic" 11683 11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11685$as_echo_n "checking if $CC supports -pedantic... " >&6; } 11686 cacheid=xorg_cv_cc_flag__pedantic 11687 if eval \${$cacheid+:} false; then : 11688 $as_echo_n "(cached) " >&6 11689else 11690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11691/* end confdefs.h. */ 11692int i; 11693int 11694main () 11695{ 11696 11697 ; 11698 return 0; 11699} 11700_ACEOF 11701if ac_fn_c_try_link "$LINENO"; then : 11702 eval $cacheid=yes 11703else 11704 eval $cacheid=no 11705fi 11706rm -f core conftest.err conftest.$ac_objext \ 11707 conftest$ac_exeext conftest.$ac_ext 11708fi 11709 11710 11711 CFLAGS="$xorg_testset_save_CFLAGS" 11712 11713 eval supported=\$$cacheid 11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11715$as_echo "$supported" >&6; } 11716 if test "$supported" = "yes" ; then 11717 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11718 found="yes" 11719 fi 11720 fi 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736xorg_testset_save_CFLAGS="$CFLAGS" 11737 11738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11741$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11742if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11743 $as_echo_n "(cached) " >&6 11744else 11745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11746/* end confdefs.h. */ 11747int i; 11748_ACEOF 11749if ac_fn_c_try_compile "$LINENO"; then : 11750 xorg_cv_cc_flag_unknown_warning_option=yes 11751else 11752 xorg_cv_cc_flag_unknown_warning_option=no 11753fi 11754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11755fi 11756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11757$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11758 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11759 CFLAGS="$xorg_testset_save_CFLAGS" 11760fi 11761 11762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11765 fi 11766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11768$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11769if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11770 $as_echo_n "(cached) " >&6 11771else 11772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11773/* end confdefs.h. */ 11774int i; 11775_ACEOF 11776if ac_fn_c_try_compile "$LINENO"; then : 11777 xorg_cv_cc_flag_unused_command_line_argument=yes 11778else 11779 xorg_cv_cc_flag_unused_command_line_argument=no 11780fi 11781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11782fi 11783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11784$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11785 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11786 CFLAGS="$xorg_testset_save_CFLAGS" 11787fi 11788 11789found="no" 11790 11791 if test $found = "no" ; then 11792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11794 fi 11795 11796 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11798 fi 11799 11800 CFLAGS="$CFLAGS -Werror" 11801 11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11803$as_echo_n "checking if $CC supports -Werror... " >&6; } 11804 cacheid=xorg_cv_cc_flag__Werror 11805 if eval \${$cacheid+:} false; then : 11806 $as_echo_n "(cached) " >&6 11807else 11808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11809/* end confdefs.h. */ 11810int i; 11811int 11812main () 11813{ 11814 11815 ; 11816 return 0; 11817} 11818_ACEOF 11819if ac_fn_c_try_link "$LINENO"; then : 11820 eval $cacheid=yes 11821else 11822 eval $cacheid=no 11823fi 11824rm -f core conftest.err conftest.$ac_objext \ 11825 conftest$ac_exeext conftest.$ac_ext 11826fi 11827 11828 11829 CFLAGS="$xorg_testset_save_CFLAGS" 11830 11831 eval supported=\$$cacheid 11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11833$as_echo "$supported" >&6; } 11834 if test "$supported" = "yes" ; then 11835 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11836 found="yes" 11837 fi 11838 fi 11839 11840 if test $found = "no" ; then 11841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11843 fi 11844 11845 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11847 fi 11848 11849 CFLAGS="$CFLAGS -errwarn" 11850 11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11852$as_echo_n "checking if $CC supports -errwarn... " >&6; } 11853 cacheid=xorg_cv_cc_flag__errwarn 11854 if eval \${$cacheid+:} false; then : 11855 $as_echo_n "(cached) " >&6 11856else 11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11858/* end confdefs.h. */ 11859int i; 11860int 11861main () 11862{ 11863 11864 ; 11865 return 0; 11866} 11867_ACEOF 11868if ac_fn_c_try_link "$LINENO"; then : 11869 eval $cacheid=yes 11870else 11871 eval $cacheid=no 11872fi 11873rm -f core conftest.err conftest.$ac_objext \ 11874 conftest$ac_exeext conftest.$ac_ext 11875fi 11876 11877 11878 CFLAGS="$xorg_testset_save_CFLAGS" 11879 11880 eval supported=\$$cacheid 11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11882$as_echo "$supported" >&6; } 11883 if test "$supported" = "yes" ; then 11884 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11885 found="yes" 11886 fi 11887 fi 11888 11889 11890 11891# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11892# activate it with -Werror, so we add it here explicitly. 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906xorg_testset_save_CFLAGS="$CFLAGS" 11907 11908if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11911$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11912if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11913 $as_echo_n "(cached) " >&6 11914else 11915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11916/* end confdefs.h. */ 11917int i; 11918_ACEOF 11919if ac_fn_c_try_compile "$LINENO"; then : 11920 xorg_cv_cc_flag_unknown_warning_option=yes 11921else 11922 xorg_cv_cc_flag_unknown_warning_option=no 11923fi 11924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11925fi 11926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11927$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11929 CFLAGS="$xorg_testset_save_CFLAGS" 11930fi 11931 11932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11935 fi 11936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11938$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11939if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11940 $as_echo_n "(cached) " >&6 11941else 11942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11943/* end confdefs.h. */ 11944int i; 11945_ACEOF 11946if ac_fn_c_try_compile "$LINENO"; then : 11947 xorg_cv_cc_flag_unused_command_line_argument=yes 11948else 11949 xorg_cv_cc_flag_unused_command_line_argument=no 11950fi 11951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11952fi 11953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11954$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11955 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11956 CFLAGS="$xorg_testset_save_CFLAGS" 11957fi 11958 11959found="no" 11960 11961 if test $found = "no" ; then 11962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11964 fi 11965 11966 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11968 fi 11969 11970 CFLAGS="$CFLAGS -Werror=attributes" 11971 11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11973$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 11974 cacheid=xorg_cv_cc_flag__Werror_attributes 11975 if eval \${$cacheid+:} false; then : 11976 $as_echo_n "(cached) " >&6 11977else 11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11979/* end confdefs.h. */ 11980int i; 11981int 11982main () 11983{ 11984 11985 ; 11986 return 0; 11987} 11988_ACEOF 11989if ac_fn_c_try_link "$LINENO"; then : 11990 eval $cacheid=yes 11991else 11992 eval $cacheid=no 11993fi 11994rm -f core conftest.err conftest.$ac_objext \ 11995 conftest$ac_exeext conftest.$ac_ext 11996fi 11997 11998 11999 CFLAGS="$xorg_testset_save_CFLAGS" 12000 12001 eval supported=\$$cacheid 12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12003$as_echo "$supported" >&6; } 12004 if test "$supported" = "yes" ; then 12005 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 12006 found="yes" 12007 fi 12008 fi 12009 12010 12011 12012if test "x$STRICT_COMPILE" = "xyes"; then 12013 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 12014 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 12015fi 12016 12017 12018 12019 12020 12021 12022cat >>confdefs.h <<_ACEOF 12023#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 12024_ACEOF 12025 12026 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 12027 if test "x$PVM" = "x"; then 12028 PVM="0" 12029 fi 12030 12031cat >>confdefs.h <<_ACEOF 12032#define PACKAGE_VERSION_MINOR $PVM 12033_ACEOF 12034 12035 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 12036 if test "x$PVP" = "x"; then 12037 PVP="0" 12038 fi 12039 12040cat >>confdefs.h <<_ACEOF 12041#define PACKAGE_VERSION_PATCHLEVEL $PVP 12042_ACEOF 12043 12044 12045 12046CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 12047mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 12048|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 12049touch \$(top_srcdir)/ChangeLog; \ 12050echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 12051 12052 12053 12054 12055macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 12056INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 12057mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 12058|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 12059touch \$(top_srcdir)/INSTALL; \ 12060echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 12061 12062 12063 12064 12065 12066 12067case $host_os in 12068 solaris*) 12069 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 12070 # check for a man page file found in later versions that use 12071 # traditional section numbers instead 12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 12073$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 12074if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 12075 $as_echo_n "(cached) " >&6 12076else 12077 test "$cross_compiling" = yes && 12078 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 12079if test -r "/usr/share/man/man7/attributes.7"; then 12080 ac_cv_file__usr_share_man_man7_attributes_7=yes 12081else 12082 ac_cv_file__usr_share_man_man7_attributes_7=no 12083fi 12084fi 12085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 12086$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 12087if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 12088 SYSV_MAN_SECTIONS=false 12089else 12090 SYSV_MAN_SECTIONS=true 12091fi 12092 12093 ;; 12094 *) SYSV_MAN_SECTIONS=false ;; 12095esac 12096 12097if test x$APP_MAN_SUFFIX = x ; then 12098 APP_MAN_SUFFIX=1 12099fi 12100if test x$APP_MAN_DIR = x ; then 12101 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 12102fi 12103 12104if test x$LIB_MAN_SUFFIX = x ; then 12105 LIB_MAN_SUFFIX=3 12106fi 12107if test x$LIB_MAN_DIR = x ; then 12108 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 12109fi 12110 12111if test x$FILE_MAN_SUFFIX = x ; then 12112 case $SYSV_MAN_SECTIONS in 12113 true) FILE_MAN_SUFFIX=4 ;; 12114 *) FILE_MAN_SUFFIX=5 ;; 12115 esac 12116fi 12117if test x$FILE_MAN_DIR = x ; then 12118 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 12119fi 12120 12121if test x$MISC_MAN_SUFFIX = x ; then 12122 case $SYSV_MAN_SECTIONS in 12123 true) MISC_MAN_SUFFIX=5 ;; 12124 *) MISC_MAN_SUFFIX=7 ;; 12125 esac 12126fi 12127if test x$MISC_MAN_DIR = x ; then 12128 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 12129fi 12130 12131if test x$DRIVER_MAN_SUFFIX = x ; then 12132 case $SYSV_MAN_SECTIONS in 12133 true) DRIVER_MAN_SUFFIX=7 ;; 12134 *) DRIVER_MAN_SUFFIX=4 ;; 12135 esac 12136fi 12137if test x$DRIVER_MAN_DIR = x ; then 12138 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 12139fi 12140 12141if test x$ADMIN_MAN_SUFFIX = x ; then 12142 case $SYSV_MAN_SECTIONS in 12143 true) ADMIN_MAN_SUFFIX=1m ;; 12144 *) ADMIN_MAN_SUFFIX=8 ;; 12145 esac 12146fi 12147if test x$ADMIN_MAN_DIR = x ; then 12148 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 12149fi 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165XORG_MAN_PAGE="X Version 11" 12166 12167MAN_SUBSTS="\ 12168 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 12169 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 12170 -e 's|__xservername__|Xorg|g' \ 12171 -e 's|__xconfigfile__|xorg.conf|g' \ 12172 -e 's|__projectroot__|\$(prefix)|g' \ 12173 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 12174 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 12175 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 12176 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 12177 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 12178 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 12179 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 12180 12181 12182 12183# Check whether --enable-silent-rules was given. 12184if test "${enable_silent_rules+set}" = set; then : 12185 enableval=$enable_silent_rules; 12186fi 12187 12188case $enable_silent_rules in # ((( 12189 yes) AM_DEFAULT_VERBOSITY=0;; 12190 no) AM_DEFAULT_VERBOSITY=1;; 12191 *) AM_DEFAULT_VERBOSITY=0;; 12192esac 12193am_make=${MAKE-make} 12194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 12195$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 12196if ${am_cv_make_support_nested_variables+:} false; then : 12197 $as_echo_n "(cached) " >&6 12198else 12199 if $as_echo 'TRUE=$(BAR$(V)) 12200BAR0=false 12201BAR1=true 12202V=1 12203am__doit: 12204 @$(TRUE) 12205.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 12206 am_cv_make_support_nested_variables=yes 12207else 12208 am_cv_make_support_nested_variables=no 12209fi 12210fi 12211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 12212$as_echo "$am_cv_make_support_nested_variables" >&6; } 12213if test $am_cv_make_support_nested_variables = yes; then 12214 AM_V='$(V)' 12215 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12216else 12217 AM_V=$AM_DEFAULT_VERBOSITY 12218 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12219fi 12220AM_BACKSLASH='\' 12221 12222 12223 12224 12225 12226 12227 12228# Check whether --with-doxygen was given. 12229if test "${with_doxygen+set}" = set; then : 12230 withval=$with_doxygen; use_doxygen=$withval 12231else 12232 use_doxygen=auto 12233fi 12234 12235 12236 12237if test "x$use_doxygen" = x"auto"; then 12238 # Extract the first word of "doxygen", so it can be a program name with args. 12239set dummy doxygen; ac_word=$2 12240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12241$as_echo_n "checking for $ac_word... " >&6; } 12242if ${ac_cv_path_DOXYGEN+:} false; then : 12243 $as_echo_n "(cached) " >&6 12244else 12245 case $DOXYGEN in 12246 [\\/]* | ?:[\\/]*) 12247 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 12248 ;; 12249 *) 12250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12251for as_dir in $PATH 12252do 12253 IFS=$as_save_IFS 12254 test -z "$as_dir" && as_dir=. 12255 for ac_exec_ext in '' $ac_executable_extensions; do 12256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12257 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 12258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12259 break 2 12260 fi 12261done 12262 done 12263IFS=$as_save_IFS 12264 12265 ;; 12266esac 12267fi 12268DOXYGEN=$ac_cv_path_DOXYGEN 12269if test -n "$DOXYGEN"; then 12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 12271$as_echo "$DOXYGEN" >&6; } 12272else 12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12274$as_echo "no" >&6; } 12275fi 12276 12277 12278 if test "x$DOXYGEN" = "x"; then 12279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5 12280$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;} 12281 have_doxygen=no 12282 else 12283 have_doxygen=yes 12284 fi 12285elif test "x$use_doxygen" = x"yes" ; then 12286 # Extract the first word of "doxygen", so it can be a program name with args. 12287set dummy doxygen; ac_word=$2 12288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12289$as_echo_n "checking for $ac_word... " >&6; } 12290if ${ac_cv_path_DOXYGEN+:} false; then : 12291 $as_echo_n "(cached) " >&6 12292else 12293 case $DOXYGEN in 12294 [\\/]* | ?:[\\/]*) 12295 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 12296 ;; 12297 *) 12298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12299for as_dir in $PATH 12300do 12301 IFS=$as_save_IFS 12302 test -z "$as_dir" && as_dir=. 12303 for ac_exec_ext in '' $ac_executable_extensions; do 12304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12305 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 12306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12307 break 2 12308 fi 12309done 12310 done 12311IFS=$as_save_IFS 12312 12313 ;; 12314esac 12315fi 12316DOXYGEN=$ac_cv_path_DOXYGEN 12317if test -n "$DOXYGEN"; then 12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 12319$as_echo "$DOXYGEN" >&6; } 12320else 12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12322$as_echo "no" >&6; } 12323fi 12324 12325 12326 if test "x$DOXYGEN" = "x"; then 12327 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5 12328 fi 12329 have_doxygen=yes 12330elif test "x$use_doxygen" = x"no" ; then 12331 if test "x$DOXYGEN" != "x"; then 12332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5 12333$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;} 12334 fi 12335 have_doxygen=no 12336else 12337 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5 12338fi 12339if test "$have_doxygen" = yes; then 12340 # scrape the doxygen version 12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5 12342$as_echo_n "checking the doxygen version... " >&6; } 12343 doxygen_version=`$DOXYGEN --version 2>/dev/null` 12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5 12345$as_echo "$doxygen_version" >&6; } 12346 as_arg_v1=$doxygen_version 12347as_arg_v2=1.6.1 12348awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 12349case $? in #( 12350 1) : 12351 if test "x$use_doxygen" = xauto; then 12352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5 12353$as_echo "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;} 12354 have_doxygen=no 12355 else 12356 as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5 12357 fi ;; #( 12358 0) : 12359 ;; #( 12360 2) : 12361 ;; #( 12362 *) : 12363 ;; 12364esac 12365fi 12366 12367HAVE_DOT=no 12368if test "x$have_doxygen" = "xyes"; then 12369 # Extract the first word of "dot", so it can be a program name with args. 12370set dummy dot; ac_word=$2 12371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12372$as_echo_n "checking for $ac_word... " >&6; } 12373if ${ac_cv_path_DOT+:} false; then : 12374 $as_echo_n "(cached) " >&6 12375else 12376 case $DOT in 12377 [\\/]* | ?:[\\/]*) 12378 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 12379 ;; 12380 *) 12381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12382for as_dir in $PATH 12383do 12384 IFS=$as_save_IFS 12385 test -z "$as_dir" && as_dir=. 12386 for ac_exec_ext in '' $ac_executable_extensions; do 12387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12388 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 12389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12390 break 2 12391 fi 12392done 12393 done 12394IFS=$as_save_IFS 12395 12396 ;; 12397esac 12398fi 12399DOT=$ac_cv_path_DOT 12400if test -n "$DOT"; then 12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 12402$as_echo "$DOT" >&6; } 12403else 12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12405$as_echo "no" >&6; } 12406fi 12407 12408 12409 if test "x$DOT" != "x"; then 12410 HAVE_DOT=yes 12411 fi 12412fi 12413 12414 12415 if test "$HAVE_DOT" = "yes"; then 12416 HAVE_DOT_TRUE= 12417 HAVE_DOT_FALSE='#' 12418else 12419 HAVE_DOT_TRUE='#' 12420 HAVE_DOT_FALSE= 12421fi 12422 12423 if test "$have_doxygen" = yes; then 12424 HAVE_DOXYGEN_TRUE= 12425 HAVE_DOXYGEN_FALSE='#' 12426else 12427 HAVE_DOXYGEN_TRUE='#' 12428 HAVE_DOXYGEN_FALSE= 12429fi 12430 12431 12432 12433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 12434$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } 12435XORG_SGML_PATH= 12436if test -n "$PKG_CONFIG" && \ 12437 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 12438 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 12439 ac_status=$? 12440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12441 test $ac_status = 0; }; then 12442 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 12443else 12444 : 12445 12446fi 12447 12448# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 12449# the path and the name of the doc stylesheet 12450if test "x$XORG_SGML_PATH" != "x" ; then 12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 12452$as_echo "$XORG_SGML_PATH" >&6; } 12453 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 12454 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 12455else 12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12457$as_echo "no" >&6; } 12458fi 12459 12460 12461 12462 12463 if test "x$XSL_STYLESHEET" != "x"; then 12464 HAVE_STYLESHEETS_TRUE= 12465 HAVE_STYLESHEETS_FALSE='#' 12466else 12467 HAVE_STYLESHEETS_TRUE='#' 12468 HAVE_STYLESHEETS_FALSE= 12469fi 12470 12471 12472 12473 12474# Check whether --enable-docs was given. 12475if test "${enable_docs+set}" = set; then : 12476 enableval=$enable_docs; build_docs=$enableval 12477else 12478 build_docs=yes 12479fi 12480 12481 12482 if test x$build_docs = xyes; then 12483 ENABLE_DOCS_TRUE= 12484 ENABLE_DOCS_FALSE='#' 12485else 12486 ENABLE_DOCS_TRUE='#' 12487 ENABLE_DOCS_FALSE= 12488fi 12489 12490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 12491$as_echo_n "checking whether to build documentation... " >&6; } 12492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 12493$as_echo "$build_docs" >&6; } 12494 12495 12496 12497# Check whether --enable-devel-docs was given. 12498if test "${enable_devel_docs+set}" = set; then : 12499 enableval=$enable_devel_docs; build_devel_docs=$enableval 12500else 12501 build_devel_docs=yes 12502fi 12503 12504 12505 if test x$build_devel_docs = xyes; then 12506 ENABLE_DEVEL_DOCS_TRUE= 12507 ENABLE_DEVEL_DOCS_FALSE='#' 12508else 12509 ENABLE_DEVEL_DOCS_TRUE='#' 12510 ENABLE_DEVEL_DOCS_FALSE= 12511fi 12512 12513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 12514$as_echo_n "checking whether to build developer documentation... " >&6; } 12515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 12516$as_echo "$build_devel_docs" >&6; } 12517 12518 12519 12520 12521 12522# Check whether --with-xmlto was given. 12523if test "${with_xmlto+set}" = set; then : 12524 withval=$with_xmlto; use_xmlto=$withval 12525else 12526 use_xmlto=auto 12527fi 12528 12529 12530 12531if test "x$use_xmlto" = x"auto"; then 12532 # Extract the first word of "xmlto", so it can be a program name with args. 12533set dummy xmlto; ac_word=$2 12534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12535$as_echo_n "checking for $ac_word... " >&6; } 12536if ${ac_cv_path_XMLTO+:} false; then : 12537 $as_echo_n "(cached) " >&6 12538else 12539 case $XMLTO in 12540 [\\/]* | ?:[\\/]*) 12541 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 12542 ;; 12543 *) 12544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12545for as_dir in $PATH 12546do 12547 IFS=$as_save_IFS 12548 test -z "$as_dir" && as_dir=. 12549 for ac_exec_ext in '' $ac_executable_extensions; do 12550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12551 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 12552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12553 break 2 12554 fi 12555done 12556 done 12557IFS=$as_save_IFS 12558 12559 ;; 12560esac 12561fi 12562XMLTO=$ac_cv_path_XMLTO 12563if test -n "$XMLTO"; then 12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 12565$as_echo "$XMLTO" >&6; } 12566else 12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12568$as_echo "no" >&6; } 12569fi 12570 12571 12572 if test "x$XMLTO" = "x"; then 12573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 12574$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 12575 have_xmlto=no 12576 else 12577 have_xmlto=yes 12578 fi 12579elif test "x$use_xmlto" = x"yes" ; then 12580 # Extract the first word of "xmlto", so it can be a program name with args. 12581set dummy xmlto; ac_word=$2 12582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12583$as_echo_n "checking for $ac_word... " >&6; } 12584if ${ac_cv_path_XMLTO+:} false; then : 12585 $as_echo_n "(cached) " >&6 12586else 12587 case $XMLTO in 12588 [\\/]* | ?:[\\/]*) 12589 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 12590 ;; 12591 *) 12592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12593for as_dir in $PATH 12594do 12595 IFS=$as_save_IFS 12596 test -z "$as_dir" && as_dir=. 12597 for ac_exec_ext in '' $ac_executable_extensions; do 12598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12599 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 12600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12601 break 2 12602 fi 12603done 12604 done 12605IFS=$as_save_IFS 12606 12607 ;; 12608esac 12609fi 12610XMLTO=$ac_cv_path_XMLTO 12611if test -n "$XMLTO"; then 12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 12613$as_echo "$XMLTO" >&6; } 12614else 12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12616$as_echo "no" >&6; } 12617fi 12618 12619 12620 if test "x$XMLTO" = "x"; then 12621 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 12622 fi 12623 have_xmlto=yes 12624elif test "x$use_xmlto" = x"no" ; then 12625 if test "x$XMLTO" != "x"; then 12626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 12627$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 12628 fi 12629 have_xmlto=no 12630else 12631 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 12632fi 12633 12634# Test for a minimum version of xmlto, if provided. 12635if test "$have_xmlto" = yes; then 12636 # scrape the xmlto version 12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 12638$as_echo_n "checking the xmlto version... " >&6; } 12639 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 12641$as_echo "$xmlto_version" >&6; } 12642 as_arg_v1=$xmlto_version 12643as_arg_v2=0.0.20 12644awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 12645case $? in #( 12646 1) : 12647 if test "x$use_xmlto" = xauto; then 12648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 12649$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 12650 have_xmlto=no 12651 else 12652 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 12653 fi ;; #( 12654 0) : 12655 ;; #( 12656 2) : 12657 ;; #( 12658 *) : 12659 ;; 12660esac 12661fi 12662 12663# Test for the ability of xmlto to generate a text target 12664# 12665# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 12666# following test for empty XML docbook files. 12667# For compatibility reasons use the following empty XML docbook file and if 12668# it fails try it again with a non-empty XML file. 12669have_xmlto_text=no 12670cat > conftest.xml << "EOF" 12671EOF 12672if test "$have_xmlto" = yes; then : 12673 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 12674 have_xmlto_text=yes 12675else 12676 # Try it again with a non-empty XML file. 12677 cat > conftest.xml << "EOF" 12678<x></x> 12679EOF 12680 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 12681 have_xmlto_text=yes 12682else 12683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 12684$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 12685fi 12686fi 12687fi 12688rm -f conftest.xml 12689 if test $have_xmlto_text = yes; then 12690 HAVE_XMLTO_TEXT_TRUE= 12691 HAVE_XMLTO_TEXT_FALSE='#' 12692else 12693 HAVE_XMLTO_TEXT_TRUE='#' 12694 HAVE_XMLTO_TEXT_FALSE= 12695fi 12696 12697 if test "$have_xmlto" = yes; then 12698 HAVE_XMLTO_TRUE= 12699 HAVE_XMLTO_FALSE='#' 12700else 12701 HAVE_XMLTO_TRUE='#' 12702 HAVE_XMLTO_FALSE= 12703fi 12704 12705 12706 12707 12708 12709 12710# Check whether --with-fop was given. 12711if test "${with_fop+set}" = set; then : 12712 withval=$with_fop; use_fop=$withval 12713else 12714 use_fop=auto 12715fi 12716 12717 12718 12719if test "x$use_fop" = x"auto"; then 12720 # Extract the first word of "fop", so it can be a program name with args. 12721set dummy fop; ac_word=$2 12722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12723$as_echo_n "checking for $ac_word... " >&6; } 12724if ${ac_cv_path_FOP+:} false; then : 12725 $as_echo_n "(cached) " >&6 12726else 12727 case $FOP in 12728 [\\/]* | ?:[\\/]*) 12729 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 12730 ;; 12731 *) 12732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12733for as_dir in $PATH 12734do 12735 IFS=$as_save_IFS 12736 test -z "$as_dir" && as_dir=. 12737 for ac_exec_ext in '' $ac_executable_extensions; do 12738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12739 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 12740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12741 break 2 12742 fi 12743done 12744 done 12745IFS=$as_save_IFS 12746 12747 ;; 12748esac 12749fi 12750FOP=$ac_cv_path_FOP 12751if test -n "$FOP"; then 12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 12753$as_echo "$FOP" >&6; } 12754else 12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12756$as_echo "no" >&6; } 12757fi 12758 12759 12760 if test "x$FOP" = "x"; then 12761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 12762$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 12763 have_fop=no 12764 else 12765 have_fop=yes 12766 fi 12767elif test "x$use_fop" = x"yes" ; then 12768 # Extract the first word of "fop", so it can be a program name with args. 12769set dummy fop; ac_word=$2 12770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12771$as_echo_n "checking for $ac_word... " >&6; } 12772if ${ac_cv_path_FOP+:} false; then : 12773 $as_echo_n "(cached) " >&6 12774else 12775 case $FOP in 12776 [\\/]* | ?:[\\/]*) 12777 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 12778 ;; 12779 *) 12780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12781for as_dir in $PATH 12782do 12783 IFS=$as_save_IFS 12784 test -z "$as_dir" && as_dir=. 12785 for ac_exec_ext in '' $ac_executable_extensions; do 12786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12787 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 12788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12789 break 2 12790 fi 12791done 12792 done 12793IFS=$as_save_IFS 12794 12795 ;; 12796esac 12797fi 12798FOP=$ac_cv_path_FOP 12799if test -n "$FOP"; then 12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 12801$as_echo "$FOP" >&6; } 12802else 12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12804$as_echo "no" >&6; } 12805fi 12806 12807 12808 if test "x$FOP" = "x"; then 12809 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 12810 fi 12811 have_fop=yes 12812elif test "x$use_fop" = x"no" ; then 12813 if test "x$FOP" != "x"; then 12814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 12815$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 12816 fi 12817 have_fop=no 12818else 12819 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 12820fi 12821 12822# Test for a minimum version of fop, if provided. 12823 12824 if test "$have_fop" = yes; then 12825 HAVE_FOP_TRUE= 12826 HAVE_FOP_FALSE='#' 12827else 12828 HAVE_FOP_TRUE='#' 12829 HAVE_FOP_FALSE= 12830fi 12831 12832 12833 12834 12835# Preserves the interface, should it be implemented later 12836 12837 12838 12839# Check whether --with-xsltproc was given. 12840if test "${with_xsltproc+set}" = set; then : 12841 withval=$with_xsltproc; use_xsltproc=$withval 12842else 12843 use_xsltproc=auto 12844fi 12845 12846 12847 12848if test "x$use_xsltproc" = x"auto"; then 12849 # Extract the first word of "xsltproc", so it can be a program name with args. 12850set dummy xsltproc; ac_word=$2 12851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12852$as_echo_n "checking for $ac_word... " >&6; } 12853if ${ac_cv_path_XSLTPROC+:} false; then : 12854 $as_echo_n "(cached) " >&6 12855else 12856 case $XSLTPROC in 12857 [\\/]* | ?:[\\/]*) 12858 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 12859 ;; 12860 *) 12861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12862for as_dir in $PATH 12863do 12864 IFS=$as_save_IFS 12865 test -z "$as_dir" && as_dir=. 12866 for ac_exec_ext in '' $ac_executable_extensions; do 12867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12868 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 12869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12870 break 2 12871 fi 12872done 12873 done 12874IFS=$as_save_IFS 12875 12876 ;; 12877esac 12878fi 12879XSLTPROC=$ac_cv_path_XSLTPROC 12880if test -n "$XSLTPROC"; then 12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 12882$as_echo "$XSLTPROC" >&6; } 12883else 12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12885$as_echo "no" >&6; } 12886fi 12887 12888 12889 if test "x$XSLTPROC" = "x"; then 12890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 12891$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 12892 have_xsltproc=no 12893 else 12894 have_xsltproc=yes 12895 fi 12896elif test "x$use_xsltproc" = x"yes" ; then 12897 # Extract the first word of "xsltproc", so it can be a program name with args. 12898set dummy xsltproc; ac_word=$2 12899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12900$as_echo_n "checking for $ac_word... " >&6; } 12901if ${ac_cv_path_XSLTPROC+:} false; then : 12902 $as_echo_n "(cached) " >&6 12903else 12904 case $XSLTPROC in 12905 [\\/]* | ?:[\\/]*) 12906 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 12907 ;; 12908 *) 12909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12910for as_dir in $PATH 12911do 12912 IFS=$as_save_IFS 12913 test -z "$as_dir" && as_dir=. 12914 for ac_exec_ext in '' $ac_executable_extensions; do 12915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12916 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 12917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12918 break 2 12919 fi 12920done 12921 done 12922IFS=$as_save_IFS 12923 12924 ;; 12925esac 12926fi 12927XSLTPROC=$ac_cv_path_XSLTPROC 12928if test -n "$XSLTPROC"; then 12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 12930$as_echo "$XSLTPROC" >&6; } 12931else 12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12933$as_echo "no" >&6; } 12934fi 12935 12936 12937 if test "x$XSLTPROC" = "x"; then 12938 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 12939 fi 12940 have_xsltproc=yes 12941elif test "x$use_xsltproc" = x"no" ; then 12942 if test "x$XSLTPROC" != "x"; then 12943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 12944$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 12945 fi 12946 have_xsltproc=no 12947else 12948 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 12949fi 12950 12951 if test "$have_xsltproc" = yes; then 12952 HAVE_XSLTPROC_TRUE= 12953 HAVE_XSLTPROC_FALSE='#' 12954else 12955 HAVE_XSLTPROC_TRUE='#' 12956 HAVE_XSLTPROC_FALSE= 12957fi 12958 12959 12960 12961 12962 12963 12964 12965# Check for different types of support on different platforms 12966case $host_os in 12967 solaris*) 12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 12969$as_echo_n "checking for umem_alloc in -lumem... " >&6; } 12970if ${ac_cv_lib_umem_umem_alloc+:} false; then : 12971 $as_echo_n "(cached) " >&6 12972else 12973 ac_check_lib_save_LIBS=$LIBS 12974LIBS="-lumem $LIBS" 12975cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12976/* end confdefs.h. */ 12977 12978/* Override any GCC internal prototype to avoid an error. 12979 Use char because int might match the return type of a GCC 12980 builtin and then its argument prototype would still apply. */ 12981#ifdef __cplusplus 12982extern "C" 12983#endif 12984char umem_alloc (); 12985int 12986main () 12987{ 12988return umem_alloc (); 12989 ; 12990 return 0; 12991} 12992_ACEOF 12993if ac_fn_c_try_link "$LINENO"; then : 12994 ac_cv_lib_umem_umem_alloc=yes 12995else 12996 ac_cv_lib_umem_umem_alloc=no 12997fi 12998rm -f core conftest.err conftest.$ac_objext \ 12999 conftest$ac_exeext conftest.$ac_ext 13000LIBS=$ac_check_lib_save_LIBS 13001fi 13002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 13003$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } 13004if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : 13005 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 13006fi 13007 13008 ;; 13009 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 13010 # both directly and inverted, so should not be 0 or 255. 13011 malloc_debug_env='MALLOC_PERTURB_=15' 13012 ;; 13013 darwin*) 13014 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 13015 ;; 13016 *bsd*) 13017 malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 13018 ;; 13019esac 13020 13021# User supplied flags override default flags 13022if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 13023 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 13024fi 13025 13026XORG_MALLOC_DEBUG_ENV=$malloc_debug_env 13027 13028 13029 13030 13031 13032 13033 13034# Check whether --enable-unit-tests was given. 13035if test "${enable_unit_tests+set}" = set; then : 13036 enableval=$enable_unit_tests; enable_unit_tests=$enableval 13037else 13038 enable_unit_tests=auto 13039fi 13040 13041 13042 if test "x$enable_unit_tests" != xno; then 13043 ENABLE_UNIT_TESTS_TRUE= 13044 ENABLE_UNIT_TESTS_FALSE='#' 13045else 13046 ENABLE_UNIT_TESTS_TRUE='#' 13047 ENABLE_UNIT_TESTS_FALSE= 13048fi 13049 13050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5 13051$as_echo_n "checking whether to build unit test cases... " >&6; } 13052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5 13053$as_echo "$enable_unit_tests" >&6; } 13054 13055 13056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-wrap,exit" >&5 13057$as_echo_n "checking whether the linker accepts -Wl,-wrap,exit... " >&6; } 13058if ${xorg_cv_linker_flags__Wl__wrap_exit+:} false; then : 13059 $as_echo_n "(cached) " >&6 13060else 13061 13062 ax_save_FLAGS=$LDFLAGS 13063 LDFLAGS="-Wl,-wrap,exit" 13064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13065/* end confdefs.h. */ 13066#include <stdlib.h> 13067 void __wrap_exit(int status) { return; } 13068int 13069main () 13070{ 13071exit(0); 13072 ; 13073 return 0; 13074} 13075_ACEOF 13076if ac_fn_c_try_link "$LINENO"; then : 13077 xorg_cv_linker_flags__Wl__wrap_exit=yes 13078else 13079 xorg_cv_linker_flags__Wl__wrap_exit=no 13080fi 13081rm -f core conftest.err conftest.$ac_objext \ 13082 conftest$ac_exeext conftest.$ac_ext 13083 LDFLAGS=$ax_save_FLAGS 13084fi 13085 13086eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__wrap_exit 13087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5 13088$as_echo "$xorg_check_linker_flags" >&6; } 13089if test "x$xorg_check_linker_flags" = xyes; then 13090 have_ld_wrap=yes 13091else 13092 have_ld_wrap=no 13093fi 13094 13095# Not having ld wrap when unit testing has been explicitly requested is an error 13096if test "x$enable_unit_tests" = x"yes" -a "xoptional" != "xoptional"; then 13097 if test "x$have_ld_wrap" = x"no"; then 13098 as_fn_error $? "--enable-unit-tests=yes specified but ld -wrap support is not available" "$LINENO" 5 13099 fi 13100fi 13101 if test "$have_ld_wrap" = yes; then 13102 HAVE_LD_WRAP_TRUE= 13103 HAVE_LD_WRAP_FALSE='#' 13104else 13105 HAVE_LD_WRAP_TRUE='#' 13106 HAVE_LD_WRAP_FALSE= 13107fi 13108 13109# 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124ac_config_headers="$ac_config_headers include/do-not-use-config.h" 13125 13126ac_config_headers="$ac_config_headers include/xorg-server.h" 13127 13128ac_config_headers="$ac_config_headers include/dix-config.h" 13129 13130ac_config_headers="$ac_config_headers include/xorg-config.h" 13131 13132ac_config_headers="$ac_config_headers include/xkb-config.h" 13133 13134ac_config_headers="$ac_config_headers include/xwin-config.h" 13135 13136ac_config_headers="$ac_config_headers include/xwayland-config.h" 13137 13138ac_config_headers="$ac_config_headers include/version-config.h" 13139 13140 13141# By default we simply use the C compiler to build assembly code. 13142 13143test "${CCAS+set}" = set || CCAS=$CC 13144test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 13145 13146 13147 13148depcc="$CCAS" am_compiler_list= 13149 13150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13151$as_echo_n "checking dependency style of $depcc... " >&6; } 13152if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : 13153 $as_echo_n "(cached) " >&6 13154else 13155 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13156 # We make a subdir and do the tests there. Otherwise we can end up 13157 # making bogus files that we don't know about and never remove. For 13158 # instance it was reported that on HP-UX the gcc test will end up 13159 # making a dummy file named 'D' -- because '-MD' means "put the output 13160 # in D". 13161 rm -rf conftest.dir 13162 mkdir conftest.dir 13163 # Copy depcomp to subdir because otherwise we won't find it if we're 13164 # using a relative directory. 13165 cp "$am_depcomp" conftest.dir 13166 cd conftest.dir 13167 # We will build objects and dependencies in a subdirectory because 13168 # it helps to detect inapplicable dependency modes. For instance 13169 # both Tru64's cc and ICC support -MD to output dependencies as a 13170 # side effect of compilation, but ICC will put the dependencies in 13171 # the current directory while Tru64 will put them in the object 13172 # directory. 13173 mkdir sub 13174 13175 am_cv_CCAS_dependencies_compiler_type=none 13176 if test "$am_compiler_list" = ""; then 13177 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13178 fi 13179 am__universal=false 13180 13181 13182 for depmode in $am_compiler_list; do 13183 # Setup a source with many dependencies, because some compilers 13184 # like to wrap large dependency lists on column 80 (with \), and 13185 # we should not choose a depcomp mode which is confused by this. 13186 # 13187 # We need to recreate these files for each test, as the compiler may 13188 # overwrite some of them when testing with obscure command lines. 13189 # This happens at least with the AIX C compiler. 13190 : > sub/conftest.c 13191 for i in 1 2 3 4 5 6; do 13192 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13193 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13194 # Solaris 10 /bin/sh. 13195 echo '/* dummy */' > sub/conftst$i.h 13196 done 13197 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13198 13199 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13200 # mode. It turns out that the SunPro C++ compiler does not properly 13201 # handle '-M -o', and we need to detect this. Also, some Intel 13202 # versions had trouble with output in subdirs. 13203 am__obj=sub/conftest.${OBJEXT-o} 13204 am__minus_obj="-o $am__obj" 13205 case $depmode in 13206 gcc) 13207 # This depmode causes a compiler race in universal mode. 13208 test "$am__universal" = false || continue 13209 ;; 13210 nosideeffect) 13211 # After this tag, mechanisms are not by side-effect, so they'll 13212 # only be used when explicitly requested. 13213 if test "x$enable_dependency_tracking" = xyes; then 13214 continue 13215 else 13216 break 13217 fi 13218 ;; 13219 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13220 # This compiler won't grok '-c -o', but also, the minuso test has 13221 # not run yet. These depmodes are late enough in the game, and 13222 # so weak that their functioning should not be impacted. 13223 am__obj=conftest.${OBJEXT-o} 13224 am__minus_obj= 13225 ;; 13226 none) break ;; 13227 esac 13228 if depmode=$depmode \ 13229 source=sub/conftest.c object=$am__obj \ 13230 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13231 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13232 >/dev/null 2>conftest.err && 13233 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13234 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13235 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13236 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13237 # icc doesn't choke on unknown options, it will just issue warnings 13238 # or remarks (even with -Werror). So we grep stderr for any message 13239 # that says an option was ignored or not supported. 13240 # When given -MP, icc 7.0 and 7.1 complain thusly: 13241 # icc: Command line warning: ignoring option '-M'; no argument required 13242 # The diagnosis changed in icc 8.0: 13243 # icc: Command line remark: option '-MP' not supported 13244 if (grep 'ignoring option' conftest.err || 13245 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13246 am_cv_CCAS_dependencies_compiler_type=$depmode 13247 break 13248 fi 13249 fi 13250 done 13251 13252 cd .. 13253 rm -rf conftest.dir 13254else 13255 am_cv_CCAS_dependencies_compiler_type=none 13256fi 13257 13258fi 13259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 13260$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } 13261CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 13262 13263 if 13264 test "x$enable_dependency_tracking" != xno \ 13265 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 13266 am__fastdepCCAS_TRUE= 13267 am__fastdepCCAS_FALSE='#' 13268else 13269 am__fastdepCCAS_TRUE='#' 13270 am__fastdepCCAS_FALSE= 13271fi 13272 13273 13274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 13275$as_echo_n "checking whether ln -s works... " >&6; } 13276LN_S=$as_ln_s 13277if test "$LN_S" = "ln -s"; then 13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13279$as_echo "yes" >&6; } 13280else 13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 13282$as_echo "no, using $LN_S" >&6; } 13283fi 13284 13285 13286case `pwd` in 13287 *\ * | *\ *) 13288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 13289$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 13290esac 13291 13292 13293 13294macro_version='2.4.6' 13295macro_revision='2.4.6' 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309ltmain=$ac_aux_dir/ltmain.sh 13310 13311# Backslashify metacharacters that are still active within 13312# double-quoted strings. 13313sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 13314 13315# Same as above, but do not quote variable references. 13316double_quote_subst='s/\(["`\\]\)/\\\1/g' 13317 13318# Sed substitution to delay expansion of an escaped shell variable in a 13319# double_quote_subst'ed string. 13320delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 13321 13322# Sed substitution to delay expansion of an escaped single quote. 13323delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 13324 13325# Sed substitution to avoid accidental globbing in evaled expressions 13326no_glob_subst='s/\*/\\\*/g' 13327 13328ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13329ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 13330ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 13331 13332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 13333$as_echo_n "checking how to print strings... " >&6; } 13334# Test print first, because it will be a builtin if present. 13335if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 13336 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 13337 ECHO='print -r --' 13338elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 13339 ECHO='printf %s\n' 13340else 13341 # Use this function as a fallback that always works. 13342 func_fallback_echo () 13343 { 13344 eval 'cat <<_LTECHO_EOF 13345$1 13346_LTECHO_EOF' 13347 } 13348 ECHO='func_fallback_echo' 13349fi 13350 13351# func_echo_all arg... 13352# Invoke $ECHO with all args, space-separated. 13353func_echo_all () 13354{ 13355 $ECHO "" 13356} 13357 13358case $ECHO in 13359 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 13360$as_echo "printf" >&6; } ;; 13361 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 13362$as_echo "print -r" >&6; } ;; 13363 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 13364$as_echo "cat" >&6; } ;; 13365esac 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 13381$as_echo_n "checking for a sed that does not truncate output... " >&6; } 13382if ${ac_cv_path_SED+:} false; then : 13383 $as_echo_n "(cached) " >&6 13384else 13385 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 13386 for ac_i in 1 2 3 4 5 6 7; do 13387 ac_script="$ac_script$as_nl$ac_script" 13388 done 13389 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 13390 { ac_script=; unset ac_script;} 13391 if test -z "$SED"; then 13392 ac_path_SED_found=false 13393 # Loop through the user's path and test for each of PROGNAME-LIST 13394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13395for as_dir in $PATH 13396do 13397 IFS=$as_save_IFS 13398 test -z "$as_dir" && as_dir=. 13399 for ac_prog in sed gsed; do 13400 for ac_exec_ext in '' $ac_executable_extensions; do 13401 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 13402 as_fn_executable_p "$ac_path_SED" || continue 13403# Check for GNU ac_path_SED and select it if it is found. 13404 # Check for GNU $ac_path_SED 13405case `"$ac_path_SED" --version 2>&1` in 13406*GNU*) 13407 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 13408*) 13409 ac_count=0 13410 $as_echo_n 0123456789 >"conftest.in" 13411 while : 13412 do 13413 cat "conftest.in" "conftest.in" >"conftest.tmp" 13414 mv "conftest.tmp" "conftest.in" 13415 cp "conftest.in" "conftest.nl" 13416 $as_echo '' >> "conftest.nl" 13417 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 13418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13419 as_fn_arith $ac_count + 1 && ac_count=$as_val 13420 if test $ac_count -gt ${ac_path_SED_max-0}; then 13421 # Best one so far, save it but keep looking for a better one 13422 ac_cv_path_SED="$ac_path_SED" 13423 ac_path_SED_max=$ac_count 13424 fi 13425 # 10*(2^10) chars as input seems more than enough 13426 test $ac_count -gt 10 && break 13427 done 13428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13429esac 13430 13431 $ac_path_SED_found && break 3 13432 done 13433 done 13434 done 13435IFS=$as_save_IFS 13436 if test -z "$ac_cv_path_SED"; then 13437 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 13438 fi 13439else 13440 ac_cv_path_SED=$SED 13441fi 13442 13443fi 13444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 13445$as_echo "$ac_cv_path_SED" >&6; } 13446 SED="$ac_cv_path_SED" 13447 rm -f conftest.sed 13448 13449test -z "$SED" && SED=sed 13450Xsed="$SED -e 1s/^X//" 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13463$as_echo_n "checking for fgrep... " >&6; } 13464if ${ac_cv_path_FGREP+:} false; then : 13465 $as_echo_n "(cached) " >&6 13466else 13467 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13468 then ac_cv_path_FGREP="$GREP -F" 13469 else 13470 if test -z "$FGREP"; then 13471 ac_path_FGREP_found=false 13472 # Loop through the user's path and test for each of PROGNAME-LIST 13473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13474for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13475do 13476 IFS=$as_save_IFS 13477 test -z "$as_dir" && as_dir=. 13478 for ac_prog in fgrep; do 13479 for ac_exec_ext in '' $ac_executable_extensions; do 13480 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13481 as_fn_executable_p "$ac_path_FGREP" || continue 13482# Check for GNU ac_path_FGREP and select it if it is found. 13483 # Check for GNU $ac_path_FGREP 13484case `"$ac_path_FGREP" --version 2>&1` in 13485*GNU*) 13486 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13487*) 13488 ac_count=0 13489 $as_echo_n 0123456789 >"conftest.in" 13490 while : 13491 do 13492 cat "conftest.in" "conftest.in" >"conftest.tmp" 13493 mv "conftest.tmp" "conftest.in" 13494 cp "conftest.in" "conftest.nl" 13495 $as_echo 'FGREP' >> "conftest.nl" 13496 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13498 as_fn_arith $ac_count + 1 && ac_count=$as_val 13499 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13500 # Best one so far, save it but keep looking for a better one 13501 ac_cv_path_FGREP="$ac_path_FGREP" 13502 ac_path_FGREP_max=$ac_count 13503 fi 13504 # 10*(2^10) chars as input seems more than enough 13505 test $ac_count -gt 10 && break 13506 done 13507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13508esac 13509 13510 $ac_path_FGREP_found && break 3 13511 done 13512 done 13513 done 13514IFS=$as_save_IFS 13515 if test -z "$ac_cv_path_FGREP"; then 13516 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13517 fi 13518else 13519 ac_cv_path_FGREP=$FGREP 13520fi 13521 13522 fi 13523fi 13524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13525$as_echo "$ac_cv_path_FGREP" >&6; } 13526 FGREP="$ac_cv_path_FGREP" 13527 13528 13529test -z "$GREP" && GREP=grep 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549# Check whether --with-gnu-ld was given. 13550if test "${with_gnu_ld+set}" = set; then : 13551 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13552else 13553 with_gnu_ld=no 13554fi 13555 13556ac_prog=ld 13557if test yes = "$GCC"; then 13558 # Check if gcc -print-prog-name=ld gives a path. 13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13560$as_echo_n "checking for ld used by $CC... " >&6; } 13561 case $host in 13562 *-*-mingw*) 13563 # gcc leaves a trailing carriage return, which upsets mingw 13564 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13565 *) 13566 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13567 esac 13568 case $ac_prog in 13569 # Accept absolute paths. 13570 [\\/]* | ?:[\\/]*) 13571 re_direlt='/[^/][^/]*/\.\./' 13572 # Canonicalize the pathname of ld 13573 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13574 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13575 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13576 done 13577 test -z "$LD" && LD=$ac_prog 13578 ;; 13579 "") 13580 # If it fails, then pretend we aren't using GCC. 13581 ac_prog=ld 13582 ;; 13583 *) 13584 # If it is relative, then search for the first ld in PATH. 13585 with_gnu_ld=unknown 13586 ;; 13587 esac 13588elif test yes = "$with_gnu_ld"; then 13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13590$as_echo_n "checking for GNU ld... " >&6; } 13591else 13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13593$as_echo_n "checking for non-GNU ld... " >&6; } 13594fi 13595if ${lt_cv_path_LD+:} false; then : 13596 $as_echo_n "(cached) " >&6 13597else 13598 if test -z "$LD"; then 13599 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13600 for ac_dir in $PATH; do 13601 IFS=$lt_save_ifs 13602 test -z "$ac_dir" && ac_dir=. 13603 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13604 lt_cv_path_LD=$ac_dir/$ac_prog 13605 # Check to see if the program is GNU ld. I'd rather use --version, 13606 # but apparently some variants of GNU ld only accept -v. 13607 # Break only if it was the GNU/non-GNU ld that we prefer. 13608 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13609 *GNU* | *'with BFD'*) 13610 test no != "$with_gnu_ld" && break 13611 ;; 13612 *) 13613 test yes != "$with_gnu_ld" && break 13614 ;; 13615 esac 13616 fi 13617 done 13618 IFS=$lt_save_ifs 13619else 13620 lt_cv_path_LD=$LD # Let the user override the test with a path. 13621fi 13622fi 13623 13624LD=$lt_cv_path_LD 13625if test -n "$LD"; then 13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13627$as_echo "$LD" >&6; } 13628else 13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13630$as_echo "no" >&6; } 13631fi 13632test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13634$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13635if ${lt_cv_prog_gnu_ld+:} false; then : 13636 $as_echo_n "(cached) " >&6 13637else 13638 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13639case `$LD -v 2>&1 </dev/null` in 13640*GNU* | *'with BFD'*) 13641 lt_cv_prog_gnu_ld=yes 13642 ;; 13643*) 13644 lt_cv_prog_gnu_ld=no 13645 ;; 13646esac 13647fi 13648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13649$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13650with_gnu_ld=$lt_cv_prog_gnu_ld 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 13661$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 13662if ${lt_cv_path_NM+:} false; then : 13663 $as_echo_n "(cached) " >&6 13664else 13665 if test -n "$NM"; then 13666 # Let the user override the test. 13667 lt_cv_path_NM=$NM 13668else 13669 lt_nm_to_check=${ac_tool_prefix}nm 13670 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 13671 lt_nm_to_check="$lt_nm_to_check nm" 13672 fi 13673 for lt_tmp_nm in $lt_nm_to_check; do 13674 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13675 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 13676 IFS=$lt_save_ifs 13677 test -z "$ac_dir" && ac_dir=. 13678 tmp_nm=$ac_dir/$lt_tmp_nm 13679 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 13680 # Check to see if the nm accepts a BSD-compat flag. 13681 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 13682 # nm: unknown option "B" ignored 13683 # Tru64's nm complains that /dev/null is an invalid object file 13684 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 13685 case $build_os in 13686 mingw*) lt_bad_file=conftest.nm/nofile ;; 13687 *) lt_bad_file=/dev/null ;; 13688 esac 13689 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 13690 *$lt_bad_file* | *'Invalid file or object type'*) 13691 lt_cv_path_NM="$tmp_nm -B" 13692 break 2 13693 ;; 13694 *) 13695 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 13696 */dev/null*) 13697 lt_cv_path_NM="$tmp_nm -p" 13698 break 2 13699 ;; 13700 *) 13701 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 13702 continue # so that we can try to find one that supports BSD flags 13703 ;; 13704 esac 13705 ;; 13706 esac 13707 fi 13708 done 13709 IFS=$lt_save_ifs 13710 done 13711 : ${lt_cv_path_NM=no} 13712fi 13713fi 13714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 13715$as_echo "$lt_cv_path_NM" >&6; } 13716if test no != "$lt_cv_path_NM"; then 13717 NM=$lt_cv_path_NM 13718else 13719 # Didn't find any BSD compatible name lister, look for dumpbin. 13720 if test -n "$DUMPBIN"; then : 13721 # Let the user override the test. 13722 else 13723 if test -n "$ac_tool_prefix"; then 13724 for ac_prog in dumpbin "link -dump" 13725 do 13726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13727set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13729$as_echo_n "checking for $ac_word... " >&6; } 13730if ${ac_cv_prog_DUMPBIN+:} false; then : 13731 $as_echo_n "(cached) " >&6 13732else 13733 if test -n "$DUMPBIN"; then 13734 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 13735else 13736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13737for as_dir in $PATH 13738do 13739 IFS=$as_save_IFS 13740 test -z "$as_dir" && as_dir=. 13741 for ac_exec_ext in '' $ac_executable_extensions; do 13742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13743 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 13744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13745 break 2 13746 fi 13747done 13748 done 13749IFS=$as_save_IFS 13750 13751fi 13752fi 13753DUMPBIN=$ac_cv_prog_DUMPBIN 13754if test -n "$DUMPBIN"; then 13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 13756$as_echo "$DUMPBIN" >&6; } 13757else 13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13759$as_echo "no" >&6; } 13760fi 13761 13762 13763 test -n "$DUMPBIN" && break 13764 done 13765fi 13766if test -z "$DUMPBIN"; then 13767 ac_ct_DUMPBIN=$DUMPBIN 13768 for ac_prog in dumpbin "link -dump" 13769do 13770 # Extract the first word of "$ac_prog", so it can be a program name with args. 13771set dummy $ac_prog; ac_word=$2 13772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13773$as_echo_n "checking for $ac_word... " >&6; } 13774if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 13775 $as_echo_n "(cached) " >&6 13776else 13777 if test -n "$ac_ct_DUMPBIN"; then 13778 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 13779else 13780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13781for as_dir in $PATH 13782do 13783 IFS=$as_save_IFS 13784 test -z "$as_dir" && as_dir=. 13785 for ac_exec_ext in '' $ac_executable_extensions; do 13786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13787 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 13788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13789 break 2 13790 fi 13791done 13792 done 13793IFS=$as_save_IFS 13794 13795fi 13796fi 13797ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 13798if test -n "$ac_ct_DUMPBIN"; then 13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 13800$as_echo "$ac_ct_DUMPBIN" >&6; } 13801else 13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13803$as_echo "no" >&6; } 13804fi 13805 13806 13807 test -n "$ac_ct_DUMPBIN" && break 13808done 13809 13810 if test "x$ac_ct_DUMPBIN" = x; then 13811 DUMPBIN=":" 13812 else 13813 case $cross_compiling:$ac_tool_warned in 13814yes:) 13815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13817ac_tool_warned=yes ;; 13818esac 13819 DUMPBIN=$ac_ct_DUMPBIN 13820 fi 13821fi 13822 13823 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 13824 *COFF*) 13825 DUMPBIN="$DUMPBIN -symbols -headers" 13826 ;; 13827 *) 13828 DUMPBIN=: 13829 ;; 13830 esac 13831 fi 13832 13833 if test : != "$DUMPBIN"; then 13834 NM=$DUMPBIN 13835 fi 13836fi 13837test -z "$NM" && NM=nm 13838 13839 13840 13841 13842 13843 13844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 13845$as_echo_n "checking the name lister ($NM) interface... " >&6; } 13846if ${lt_cv_nm_interface+:} false; then : 13847 $as_echo_n "(cached) " >&6 13848else 13849 lt_cv_nm_interface="BSD nm" 13850 echo "int some_variable = 0;" > conftest.$ac_ext 13851 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 13852 (eval "$ac_compile" 2>conftest.err) 13853 cat conftest.err >&5 13854 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 13855 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 13856 cat conftest.err >&5 13857 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 13858 cat conftest.out >&5 13859 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 13860 lt_cv_nm_interface="MS dumpbin" 13861 fi 13862 rm -f conftest* 13863fi 13864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 13865$as_echo "$lt_cv_nm_interface" >&6; } 13866 13867# find the maximum length of command line arguments 13868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 13869$as_echo_n "checking the maximum length of command line arguments... " >&6; } 13870if ${lt_cv_sys_max_cmd_len+:} false; then : 13871 $as_echo_n "(cached) " >&6 13872else 13873 i=0 13874 teststring=ABCD 13875 13876 case $build_os in 13877 msdosdjgpp*) 13878 # On DJGPP, this test can blow up pretty badly due to problems in libc 13879 # (any single argument exceeding 2000 bytes causes a buffer overrun 13880 # during glob expansion). Even if it were fixed, the result of this 13881 # check would be larger than it should be. 13882 lt_cv_sys_max_cmd_len=12288; # 12K is about right 13883 ;; 13884 13885 gnu*) 13886 # Under GNU Hurd, this test is not required because there is 13887 # no limit to the length of command line arguments. 13888 # Libtool will interpret -1 as no limit whatsoever 13889 lt_cv_sys_max_cmd_len=-1; 13890 ;; 13891 13892 cygwin* | mingw* | cegcc*) 13893 # On Win9x/ME, this test blows up -- it succeeds, but takes 13894 # about 5 minutes as the teststring grows exponentially. 13895 # Worse, since 9x/ME are not pre-emptively multitasking, 13896 # you end up with a "frozen" computer, even though with patience 13897 # the test eventually succeeds (with a max line length of 256k). 13898 # Instead, let's just punt: use the minimum linelength reported by 13899 # all of the supported platforms: 8192 (on NT/2K/XP). 13900 lt_cv_sys_max_cmd_len=8192; 13901 ;; 13902 13903 mint*) 13904 # On MiNT this can take a long time and run out of memory. 13905 lt_cv_sys_max_cmd_len=8192; 13906 ;; 13907 13908 mint*) 13909 # On MiNT this can take a long time and run out of memory. 13910 lt_cv_sys_max_cmd_len=8192; 13911 ;; 13912 13913 amigaos*) 13914 # On AmigaOS with pdksh, this test takes hours, literally. 13915 # So we just punt and use a minimum line length of 8192. 13916 lt_cv_sys_max_cmd_len=8192; 13917 ;; 13918 13919 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 13920 # This has been around since 386BSD, at least. Likely further. 13921 if test -x /sbin/sysctl; then 13922 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 13923 elif test -x /usr/sbin/sysctl; then 13924 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 13925 else 13926 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 13927 fi 13928 # And add a safety zone 13929 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 13930 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 13931 ;; 13932 13933 interix*) 13934 # We know the value 262144 and hardcode it with a safety zone (like BSD) 13935 lt_cv_sys_max_cmd_len=196608 13936 ;; 13937 13938 os2*) 13939 # The test takes a long time on OS/2. 13940 lt_cv_sys_max_cmd_len=8192 13941 ;; 13942 13943 osf*) 13944 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 13945 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 13946 # nice to cause kernel panics so lets avoid the loop below. 13947 # First set a reasonable default. 13948 lt_cv_sys_max_cmd_len=16384 13949 # 13950 if test -x /sbin/sysconfig; then 13951 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 13952 *1*) lt_cv_sys_max_cmd_len=-1 ;; 13953 esac 13954 fi 13955 ;; 13956 sco3.2v5*) 13957 lt_cv_sys_max_cmd_len=102400 13958 ;; 13959 sysv5* | sco5v6* | sysv4.2uw2*) 13960 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 13961 if test -n "$kargmax"; then 13962 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 13963 else 13964 lt_cv_sys_max_cmd_len=32768 13965 fi 13966 ;; 13967 *) 13968 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 13969 if test -n "$lt_cv_sys_max_cmd_len" && \ 13970 test undefined != "$lt_cv_sys_max_cmd_len"; then 13971 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 13972 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 13973 else 13974 # Make teststring a little bigger before we do anything with it. 13975 # a 1K string should be a reasonable start. 13976 for i in 1 2 3 4 5 6 7 8; do 13977 teststring=$teststring$teststring 13978 done 13979 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 13980 # If test is not a shell built-in, we'll probably end up computing a 13981 # maximum length that is only half of the actual maximum length, but 13982 # we can't tell. 13983 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 13984 = "X$teststring$teststring"; } >/dev/null 2>&1 && 13985 test 17 != "$i" # 1/2 MB should be enough 13986 do 13987 i=`expr $i + 1` 13988 teststring=$teststring$teststring 13989 done 13990 # Only check the string length outside the loop. 13991 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 13992 teststring= 13993 # Add a significant safety factor because C++ compilers can tack on 13994 # massive amounts of additional arguments before passing them to the 13995 # linker. It appears as though 1/2 is a usable value. 13996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 13997 fi 13998 ;; 13999 esac 14000 14001fi 14002 14003if test -n "$lt_cv_sys_max_cmd_len"; then 14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 14005$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 14006else 14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 14008$as_echo "none" >&6; } 14009fi 14010max_cmd_len=$lt_cv_sys_max_cmd_len 14011 14012 14013 14014 14015 14016 14017: ${CP="cp -f"} 14018: ${MV="mv -f"} 14019: ${RM="rm -f"} 14020 14021if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 14022 lt_unset=unset 14023else 14024 lt_unset=false 14025fi 14026 14027 14028 14029 14030 14031# test EBCDIC or ASCII 14032case `echo X|tr X '\101'` in 14033 A) # ASCII based system 14034 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 14035 lt_SP2NL='tr \040 \012' 14036 lt_NL2SP='tr \015\012 \040\040' 14037 ;; 14038 *) # EBCDIC based system 14039 lt_SP2NL='tr \100 \n' 14040 lt_NL2SP='tr \r\n \100\100' 14041 ;; 14042esac 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 14053$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 14054if ${lt_cv_to_host_file_cmd+:} false; then : 14055 $as_echo_n "(cached) " >&6 14056else 14057 case $host in 14058 *-*-mingw* ) 14059 case $build in 14060 *-*-mingw* ) # actually msys 14061 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 14062 ;; 14063 *-*-cygwin* ) 14064 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 14065 ;; 14066 * ) # otherwise, assume *nix 14067 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 14068 ;; 14069 esac 14070 ;; 14071 *-*-cygwin* ) 14072 case $build in 14073 *-*-mingw* ) # actually msys 14074 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 14075 ;; 14076 *-*-cygwin* ) 14077 lt_cv_to_host_file_cmd=func_convert_file_noop 14078 ;; 14079 * ) # otherwise, assume *nix 14080 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 14081 ;; 14082 esac 14083 ;; 14084 * ) # unhandled hosts (and "normal" native builds) 14085 lt_cv_to_host_file_cmd=func_convert_file_noop 14086 ;; 14087esac 14088 14089fi 14090 14091to_host_file_cmd=$lt_cv_to_host_file_cmd 14092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 14093$as_echo "$lt_cv_to_host_file_cmd" >&6; } 14094 14095 14096 14097 14098 14099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 14100$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 14101if ${lt_cv_to_tool_file_cmd+:} false; then : 14102 $as_echo_n "(cached) " >&6 14103else 14104 #assume ordinary cross tools, or native build. 14105lt_cv_to_tool_file_cmd=func_convert_file_noop 14106case $host in 14107 *-*-mingw* ) 14108 case $build in 14109 *-*-mingw* ) # actually msys 14110 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 14111 ;; 14112 esac 14113 ;; 14114esac 14115 14116fi 14117 14118to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 14120$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 14121 14122 14123 14124 14125 14126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 14127$as_echo_n "checking for $LD option to reload object files... " >&6; } 14128if ${lt_cv_ld_reload_flag+:} false; then : 14129 $as_echo_n "(cached) " >&6 14130else 14131 lt_cv_ld_reload_flag='-r' 14132fi 14133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 14134$as_echo "$lt_cv_ld_reload_flag" >&6; } 14135reload_flag=$lt_cv_ld_reload_flag 14136case $reload_flag in 14137"" | " "*) ;; 14138*) reload_flag=" $reload_flag" ;; 14139esac 14140reload_cmds='$LD$reload_flag -o $output$reload_objs' 14141case $host_os in 14142 cygwin* | mingw* | pw32* | cegcc*) 14143 if test yes != "$GCC"; then 14144 reload_cmds=false 14145 fi 14146 ;; 14147 darwin*) 14148 if test yes = "$GCC"; then 14149 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 14150 else 14151 reload_cmds='$LD$reload_flag -o $output$reload_objs' 14152 fi 14153 ;; 14154esac 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164if test -n "$ac_tool_prefix"; then 14165 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 14166set dummy ${ac_tool_prefix}objdump; ac_word=$2 14167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14168$as_echo_n "checking for $ac_word... " >&6; } 14169if ${ac_cv_prog_OBJDUMP+:} false; then : 14170 $as_echo_n "(cached) " >&6 14171else 14172 if test -n "$OBJDUMP"; then 14173 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 14174else 14175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14176for as_dir in $PATH 14177do 14178 IFS=$as_save_IFS 14179 test -z "$as_dir" && as_dir=. 14180 for ac_exec_ext in '' $ac_executable_extensions; do 14181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14182 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 14183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14184 break 2 14185 fi 14186done 14187 done 14188IFS=$as_save_IFS 14189 14190fi 14191fi 14192OBJDUMP=$ac_cv_prog_OBJDUMP 14193if test -n "$OBJDUMP"; then 14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 14195$as_echo "$OBJDUMP" >&6; } 14196else 14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14198$as_echo "no" >&6; } 14199fi 14200 14201 14202fi 14203if test -z "$ac_cv_prog_OBJDUMP"; then 14204 ac_ct_OBJDUMP=$OBJDUMP 14205 # Extract the first word of "objdump", so it can be a program name with args. 14206set dummy objdump; ac_word=$2 14207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14208$as_echo_n "checking for $ac_word... " >&6; } 14209if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 14210 $as_echo_n "(cached) " >&6 14211else 14212 if test -n "$ac_ct_OBJDUMP"; then 14213 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 14214else 14215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14216for as_dir in $PATH 14217do 14218 IFS=$as_save_IFS 14219 test -z "$as_dir" && as_dir=. 14220 for ac_exec_ext in '' $ac_executable_extensions; do 14221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14222 ac_cv_prog_ac_ct_OBJDUMP="objdump" 14223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14224 break 2 14225 fi 14226done 14227 done 14228IFS=$as_save_IFS 14229 14230fi 14231fi 14232ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 14233if test -n "$ac_ct_OBJDUMP"; then 14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 14235$as_echo "$ac_ct_OBJDUMP" >&6; } 14236else 14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14238$as_echo "no" >&6; } 14239fi 14240 14241 if test "x$ac_ct_OBJDUMP" = x; then 14242 OBJDUMP="false" 14243 else 14244 case $cross_compiling:$ac_tool_warned in 14245yes:) 14246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14248ac_tool_warned=yes ;; 14249esac 14250 OBJDUMP=$ac_ct_OBJDUMP 14251 fi 14252else 14253 OBJDUMP="$ac_cv_prog_OBJDUMP" 14254fi 14255 14256test -z "$OBJDUMP" && OBJDUMP=objdump 14257 14258 14259 14260 14261 14262 14263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 14264$as_echo_n "checking how to recognize dependent libraries... " >&6; } 14265if ${lt_cv_deplibs_check_method+:} false; then : 14266 $as_echo_n "(cached) " >&6 14267else 14268 lt_cv_file_magic_cmd='$MAGIC_CMD' 14269lt_cv_file_magic_test_file= 14270lt_cv_deplibs_check_method='unknown' 14271# Need to set the preceding variable on all platforms that support 14272# interlibrary dependencies. 14273# 'none' -- dependencies not supported. 14274# 'unknown' -- same as none, but documents that we really don't know. 14275# 'pass_all' -- all dependencies passed with no checks. 14276# 'test_compile' -- check by making test program. 14277# 'file_magic [[regex]]' -- check by looking for files in library path 14278# that responds to the $file_magic_cmd with a given extended regex. 14279# If you have 'file' or equivalent on your system and you're not sure 14280# whether 'pass_all' will *always* work, you probably want this one. 14281 14282case $host_os in 14283aix[4-9]*) 14284 lt_cv_deplibs_check_method=pass_all 14285 ;; 14286 14287beos*) 14288 lt_cv_deplibs_check_method=pass_all 14289 ;; 14290 14291bsdi[45]*) 14292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 14293 lt_cv_file_magic_cmd='/usr/bin/file -L' 14294 lt_cv_file_magic_test_file=/shlib/libc.so 14295 ;; 14296 14297cygwin*) 14298 # func_win32_libid is a shell function defined in ltmain.sh 14299 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 14300 lt_cv_file_magic_cmd='func_win32_libid' 14301 ;; 14302 14303mingw* | pw32*) 14304 # Base MSYS/MinGW do not provide the 'file' command needed by 14305 # func_win32_libid shell function, so use a weaker test based on 'objdump', 14306 # unless we find 'file', for example because we are cross-compiling. 14307 if ( file / ) >/dev/null 2>&1; then 14308 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 14309 lt_cv_file_magic_cmd='func_win32_libid' 14310 else 14311 # Keep this pattern in sync with the one in func_win32_libid. 14312 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 14313 lt_cv_file_magic_cmd='$OBJDUMP -f' 14314 fi 14315 ;; 14316 14317cegcc*) 14318 # use the weaker test based on 'objdump'. See mingw*. 14319 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 14320 lt_cv_file_magic_cmd='$OBJDUMP -f' 14321 ;; 14322 14323darwin* | rhapsody*) 14324 lt_cv_deplibs_check_method=pass_all 14325 ;; 14326 14327freebsd* | dragonfly*) 14328 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 14329 case $host_cpu in 14330 i*86 ) 14331 # Not sure whether the presence of OpenBSD here was a mistake. 14332 # Let's accept both of them until this is cleared up. 14333 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 14334 lt_cv_file_magic_cmd=/usr/bin/file 14335 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 14336 ;; 14337 esac 14338 else 14339 lt_cv_deplibs_check_method=pass_all 14340 fi 14341 ;; 14342 14343haiku*) 14344 lt_cv_deplibs_check_method=pass_all 14345 ;; 14346 14347hpux10.20* | hpux11*) 14348 lt_cv_file_magic_cmd=/usr/bin/file 14349 case $host_cpu in 14350 ia64*) 14351 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 14352 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 14353 ;; 14354 hppa*64*) 14355 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]' 14356 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 14357 ;; 14358 *) 14359 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 14360 lt_cv_file_magic_test_file=/usr/lib/libc.sl 14361 ;; 14362 esac 14363 ;; 14364 14365interix[3-9]*) 14366 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 14367 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 14368 ;; 14369 14370irix5* | irix6* | nonstopux*) 14371 case $LD in 14372 *-32|*"-32 ") libmagic=32-bit;; 14373 *-n32|*"-n32 ") libmagic=N32;; 14374 *-64|*"-64 ") libmagic=64-bit;; 14375 *) libmagic=never-match;; 14376 esac 14377 lt_cv_deplibs_check_method=pass_all 14378 ;; 14379 14380# This must be glibc/ELF. 14381linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14382 lt_cv_deplibs_check_method=pass_all 14383 ;; 14384 14385netbsd*) 14386 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 14387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 14388 else 14389 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 14390 fi 14391 ;; 14392 14393newos6*) 14394 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 14395 lt_cv_file_magic_cmd=/usr/bin/file 14396 lt_cv_file_magic_test_file=/usr/lib/libnls.so 14397 ;; 14398 14399*nto* | *qnx*) 14400 lt_cv_deplibs_check_method=pass_all 14401 ;; 14402 14403openbsd* | bitrig*) 14404 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 14406 else 14407 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 14408 fi 14409 ;; 14410 14411osf3* | osf4* | osf5*) 14412 lt_cv_deplibs_check_method=pass_all 14413 ;; 14414 14415rdos*) 14416 lt_cv_deplibs_check_method=pass_all 14417 ;; 14418 14419solaris*) 14420 lt_cv_deplibs_check_method=pass_all 14421 ;; 14422 14423sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14424 lt_cv_deplibs_check_method=pass_all 14425 ;; 14426 14427sysv4 | sysv4.3*) 14428 case $host_vendor in 14429 motorola) 14430 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]' 14431 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 14432 ;; 14433 ncr) 14434 lt_cv_deplibs_check_method=pass_all 14435 ;; 14436 sequent) 14437 lt_cv_file_magic_cmd='/bin/file' 14438 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 14439 ;; 14440 sni) 14441 lt_cv_file_magic_cmd='/bin/file' 14442 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 14443 lt_cv_file_magic_test_file=/lib/libc.so 14444 ;; 14445 siemens) 14446 lt_cv_deplibs_check_method=pass_all 14447 ;; 14448 pc) 14449 lt_cv_deplibs_check_method=pass_all 14450 ;; 14451 esac 14452 ;; 14453 14454tpf*) 14455 lt_cv_deplibs_check_method=pass_all 14456 ;; 14457os2*) 14458 lt_cv_deplibs_check_method=pass_all 14459 ;; 14460esac 14461 14462fi 14463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 14464$as_echo "$lt_cv_deplibs_check_method" >&6; } 14465 14466file_magic_glob= 14467want_nocaseglob=no 14468if test "$build" = "$host"; then 14469 case $host_os in 14470 mingw* | pw32*) 14471 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 14472 want_nocaseglob=yes 14473 else 14474 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 14475 fi 14476 ;; 14477 esac 14478fi 14479 14480file_magic_cmd=$lt_cv_file_magic_cmd 14481deplibs_check_method=$lt_cv_deplibs_check_method 14482test -z "$deplibs_check_method" && deplibs_check_method=unknown 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505if test -n "$ac_tool_prefix"; then 14506 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 14507set dummy ${ac_tool_prefix}dlltool; ac_word=$2 14508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14509$as_echo_n "checking for $ac_word... " >&6; } 14510if ${ac_cv_prog_DLLTOOL+:} false; then : 14511 $as_echo_n "(cached) " >&6 14512else 14513 if test -n "$DLLTOOL"; then 14514 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 14515else 14516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14517for as_dir in $PATH 14518do 14519 IFS=$as_save_IFS 14520 test -z "$as_dir" && as_dir=. 14521 for ac_exec_ext in '' $ac_executable_extensions; do 14522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14523 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 14524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14525 break 2 14526 fi 14527done 14528 done 14529IFS=$as_save_IFS 14530 14531fi 14532fi 14533DLLTOOL=$ac_cv_prog_DLLTOOL 14534if test -n "$DLLTOOL"; then 14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 14536$as_echo "$DLLTOOL" >&6; } 14537else 14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14539$as_echo "no" >&6; } 14540fi 14541 14542 14543fi 14544if test -z "$ac_cv_prog_DLLTOOL"; then 14545 ac_ct_DLLTOOL=$DLLTOOL 14546 # Extract the first word of "dlltool", so it can be a program name with args. 14547set dummy dlltool; ac_word=$2 14548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14549$as_echo_n "checking for $ac_word... " >&6; } 14550if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 14551 $as_echo_n "(cached) " >&6 14552else 14553 if test -n "$ac_ct_DLLTOOL"; then 14554 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 14555else 14556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14557for as_dir in $PATH 14558do 14559 IFS=$as_save_IFS 14560 test -z "$as_dir" && as_dir=. 14561 for ac_exec_ext in '' $ac_executable_extensions; do 14562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14563 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 14564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14565 break 2 14566 fi 14567done 14568 done 14569IFS=$as_save_IFS 14570 14571fi 14572fi 14573ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 14574if test -n "$ac_ct_DLLTOOL"; then 14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 14576$as_echo "$ac_ct_DLLTOOL" >&6; } 14577else 14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14579$as_echo "no" >&6; } 14580fi 14581 14582 if test "x$ac_ct_DLLTOOL" = x; then 14583 DLLTOOL="false" 14584 else 14585 case $cross_compiling:$ac_tool_warned in 14586yes:) 14587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14589ac_tool_warned=yes ;; 14590esac 14591 DLLTOOL=$ac_ct_DLLTOOL 14592 fi 14593else 14594 DLLTOOL="$ac_cv_prog_DLLTOOL" 14595fi 14596 14597test -z "$DLLTOOL" && DLLTOOL=dlltool 14598 14599 14600 14601 14602 14603 14604 14605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 14606$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 14607if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 14608 $as_echo_n "(cached) " >&6 14609else 14610 lt_cv_sharedlib_from_linklib_cmd='unknown' 14611 14612case $host_os in 14613cygwin* | mingw* | pw32* | cegcc*) 14614 # two different shell functions defined in ltmain.sh; 14615 # decide which one to use based on capabilities of $DLLTOOL 14616 case `$DLLTOOL --help 2>&1` in 14617 *--identify-strict*) 14618 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 14619 ;; 14620 *) 14621 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 14622 ;; 14623 esac 14624 ;; 14625*) 14626 # fallback: assume linklib IS sharedlib 14627 lt_cv_sharedlib_from_linklib_cmd=$ECHO 14628 ;; 14629esac 14630 14631fi 14632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 14633$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 14634sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 14635test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 14636 14637 14638 14639 14640 14641 14642 14643if test -n "$ac_tool_prefix"; then 14644 for ac_prog in ar 14645 do 14646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 14647set dummy $ac_tool_prefix$ac_prog; ac_word=$2 14648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14649$as_echo_n "checking for $ac_word... " >&6; } 14650if ${ac_cv_prog_AR+:} false; then : 14651 $as_echo_n "(cached) " >&6 14652else 14653 if test -n "$AR"; then 14654 ac_cv_prog_AR="$AR" # Let the user override the test. 14655else 14656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14657for as_dir in $PATH 14658do 14659 IFS=$as_save_IFS 14660 test -z "$as_dir" && as_dir=. 14661 for ac_exec_ext in '' $ac_executable_extensions; do 14662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14663 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 14664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14665 break 2 14666 fi 14667done 14668 done 14669IFS=$as_save_IFS 14670 14671fi 14672fi 14673AR=$ac_cv_prog_AR 14674if test -n "$AR"; then 14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 14676$as_echo "$AR" >&6; } 14677else 14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14679$as_echo "no" >&6; } 14680fi 14681 14682 14683 test -n "$AR" && break 14684 done 14685fi 14686if test -z "$AR"; then 14687 ac_ct_AR=$AR 14688 for ac_prog in ar 14689do 14690 # Extract the first word of "$ac_prog", so it can be a program name with args. 14691set dummy $ac_prog; ac_word=$2 14692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14693$as_echo_n "checking for $ac_word... " >&6; } 14694if ${ac_cv_prog_ac_ct_AR+:} false; then : 14695 $as_echo_n "(cached) " >&6 14696else 14697 if test -n "$ac_ct_AR"; then 14698 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 14699else 14700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14701for as_dir in $PATH 14702do 14703 IFS=$as_save_IFS 14704 test -z "$as_dir" && as_dir=. 14705 for ac_exec_ext in '' $ac_executable_extensions; do 14706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14707 ac_cv_prog_ac_ct_AR="$ac_prog" 14708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14709 break 2 14710 fi 14711done 14712 done 14713IFS=$as_save_IFS 14714 14715fi 14716fi 14717ac_ct_AR=$ac_cv_prog_ac_ct_AR 14718if test -n "$ac_ct_AR"; then 14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 14720$as_echo "$ac_ct_AR" >&6; } 14721else 14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14723$as_echo "no" >&6; } 14724fi 14725 14726 14727 test -n "$ac_ct_AR" && break 14728done 14729 14730 if test "x$ac_ct_AR" = x; then 14731 AR="false" 14732 else 14733 case $cross_compiling:$ac_tool_warned in 14734yes:) 14735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14737ac_tool_warned=yes ;; 14738esac 14739 AR=$ac_ct_AR 14740 fi 14741fi 14742 14743: ${AR=ar} 14744: ${AR_FLAGS=cru} 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 14757$as_echo_n "checking for archiver @FILE support... " >&6; } 14758if ${lt_cv_ar_at_file+:} false; then : 14759 $as_echo_n "(cached) " >&6 14760else 14761 lt_cv_ar_at_file=no 14762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14763/* end confdefs.h. */ 14764 14765int 14766main () 14767{ 14768 14769 ; 14770 return 0; 14771} 14772_ACEOF 14773if ac_fn_c_try_compile "$LINENO"; then : 14774 echo conftest.$ac_objext > conftest.lst 14775 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 14776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 14777 (eval $lt_ar_try) 2>&5 14778 ac_status=$? 14779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14780 test $ac_status = 0; } 14781 if test 0 -eq "$ac_status"; then 14782 # Ensure the archiver fails upon bogus file names. 14783 rm -f conftest.$ac_objext libconftest.a 14784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 14785 (eval $lt_ar_try) 2>&5 14786 ac_status=$? 14787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14788 test $ac_status = 0; } 14789 if test 0 -ne "$ac_status"; then 14790 lt_cv_ar_at_file=@ 14791 fi 14792 fi 14793 rm -f conftest.* libconftest.a 14794 14795fi 14796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14797 14798fi 14799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 14800$as_echo "$lt_cv_ar_at_file" >&6; } 14801 14802if test no = "$lt_cv_ar_at_file"; then 14803 archiver_list_spec= 14804else 14805 archiver_list_spec=$lt_cv_ar_at_file 14806fi 14807 14808 14809 14810 14811 14812 14813 14814if test -n "$ac_tool_prefix"; then 14815 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 14816set dummy ${ac_tool_prefix}strip; ac_word=$2 14817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14818$as_echo_n "checking for $ac_word... " >&6; } 14819if ${ac_cv_prog_STRIP+:} false; then : 14820 $as_echo_n "(cached) " >&6 14821else 14822 if test -n "$STRIP"; then 14823 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 14824else 14825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14826for as_dir in $PATH 14827do 14828 IFS=$as_save_IFS 14829 test -z "$as_dir" && as_dir=. 14830 for ac_exec_ext in '' $ac_executable_extensions; do 14831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14832 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 14833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14834 break 2 14835 fi 14836done 14837 done 14838IFS=$as_save_IFS 14839 14840fi 14841fi 14842STRIP=$ac_cv_prog_STRIP 14843if test -n "$STRIP"; then 14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 14845$as_echo "$STRIP" >&6; } 14846else 14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14848$as_echo "no" >&6; } 14849fi 14850 14851 14852fi 14853if test -z "$ac_cv_prog_STRIP"; then 14854 ac_ct_STRIP=$STRIP 14855 # Extract the first word of "strip", so it can be a program name with args. 14856set dummy strip; ac_word=$2 14857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14858$as_echo_n "checking for $ac_word... " >&6; } 14859if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 14860 $as_echo_n "(cached) " >&6 14861else 14862 if test -n "$ac_ct_STRIP"; then 14863 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 14864else 14865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14866for as_dir in $PATH 14867do 14868 IFS=$as_save_IFS 14869 test -z "$as_dir" && as_dir=. 14870 for ac_exec_ext in '' $ac_executable_extensions; do 14871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14872 ac_cv_prog_ac_ct_STRIP="strip" 14873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14874 break 2 14875 fi 14876done 14877 done 14878IFS=$as_save_IFS 14879 14880fi 14881fi 14882ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 14883if test -n "$ac_ct_STRIP"; then 14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 14885$as_echo "$ac_ct_STRIP" >&6; } 14886else 14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14888$as_echo "no" >&6; } 14889fi 14890 14891 if test "x$ac_ct_STRIP" = x; then 14892 STRIP=":" 14893 else 14894 case $cross_compiling:$ac_tool_warned in 14895yes:) 14896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14898ac_tool_warned=yes ;; 14899esac 14900 STRIP=$ac_ct_STRIP 14901 fi 14902else 14903 STRIP="$ac_cv_prog_STRIP" 14904fi 14905 14906test -z "$STRIP" && STRIP=: 14907 14908 14909 14910 14911 14912 14913if test -n "$ac_tool_prefix"; then 14914 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 14915set dummy ${ac_tool_prefix}ranlib; ac_word=$2 14916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14917$as_echo_n "checking for $ac_word... " >&6; } 14918if ${ac_cv_prog_RANLIB+:} false; then : 14919 $as_echo_n "(cached) " >&6 14920else 14921 if test -n "$RANLIB"; then 14922 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 14923else 14924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14925for as_dir in $PATH 14926do 14927 IFS=$as_save_IFS 14928 test -z "$as_dir" && as_dir=. 14929 for ac_exec_ext in '' $ac_executable_extensions; do 14930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14931 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 14932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14933 break 2 14934 fi 14935done 14936 done 14937IFS=$as_save_IFS 14938 14939fi 14940fi 14941RANLIB=$ac_cv_prog_RANLIB 14942if test -n "$RANLIB"; then 14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 14944$as_echo "$RANLIB" >&6; } 14945else 14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14947$as_echo "no" >&6; } 14948fi 14949 14950 14951fi 14952if test -z "$ac_cv_prog_RANLIB"; then 14953 ac_ct_RANLIB=$RANLIB 14954 # Extract the first word of "ranlib", so it can be a program name with args. 14955set dummy ranlib; ac_word=$2 14956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14957$as_echo_n "checking for $ac_word... " >&6; } 14958if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 14959 $as_echo_n "(cached) " >&6 14960else 14961 if test -n "$ac_ct_RANLIB"; then 14962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 14963else 14964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14965for as_dir in $PATH 14966do 14967 IFS=$as_save_IFS 14968 test -z "$as_dir" && as_dir=. 14969 for ac_exec_ext in '' $ac_executable_extensions; do 14970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14971 ac_cv_prog_ac_ct_RANLIB="ranlib" 14972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14973 break 2 14974 fi 14975done 14976 done 14977IFS=$as_save_IFS 14978 14979fi 14980fi 14981ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 14982if test -n "$ac_ct_RANLIB"; then 14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 14984$as_echo "$ac_ct_RANLIB" >&6; } 14985else 14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14987$as_echo "no" >&6; } 14988fi 14989 14990 if test "x$ac_ct_RANLIB" = x; then 14991 RANLIB=":" 14992 else 14993 case $cross_compiling:$ac_tool_warned in 14994yes:) 14995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14997ac_tool_warned=yes ;; 14998esac 14999 RANLIB=$ac_ct_RANLIB 15000 fi 15001else 15002 RANLIB="$ac_cv_prog_RANLIB" 15003fi 15004 15005test -z "$RANLIB" && RANLIB=: 15006 15007 15008 15009 15010 15011 15012# Determine commands to create old-style static archives. 15013old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 15014old_postinstall_cmds='chmod 644 $oldlib' 15015old_postuninstall_cmds= 15016 15017if test -n "$RANLIB"; then 15018 case $host_os in 15019 bitrig* | openbsd*) 15020 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 15021 ;; 15022 *) 15023 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 15024 ;; 15025 esac 15026 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 15027fi 15028 15029case $host_os in 15030 darwin*) 15031 lock_old_archive_extraction=yes ;; 15032 *) 15033 lock_old_archive_extraction=no ;; 15034esac 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074# If no C compiler was specified, use CC. 15075LTCC=${LTCC-"$CC"} 15076 15077# If no C compiler flags were specified, use CFLAGS. 15078LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15079 15080# Allow CC to be a program name with arguments. 15081compiler=$CC 15082 15083 15084# Check for command to grab the raw symbol name followed by C symbol from nm. 15085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 15086$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 15087if ${lt_cv_sys_global_symbol_pipe+:} false; then : 15088 $as_echo_n "(cached) " >&6 15089else 15090 15091# These are sane defaults that work on at least a few old systems. 15092# [They come from Ultrix. What could be older than Ultrix?!! ;)] 15093 15094# Character class describing NM global symbol codes. 15095symcode='[BCDEGRST]' 15096 15097# Regexp to match symbols that can be accessed directly from C. 15098sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 15099 15100# Define system-specific variables. 15101case $host_os in 15102aix*) 15103 symcode='[BCDT]' 15104 ;; 15105cygwin* | mingw* | pw32* | cegcc*) 15106 symcode='[ABCDGISTW]' 15107 ;; 15108hpux*) 15109 if test ia64 = "$host_cpu"; then 15110 symcode='[ABCDEGRST]' 15111 fi 15112 ;; 15113irix* | nonstopux*) 15114 symcode='[BCDEGRST]' 15115 ;; 15116osf*) 15117 symcode='[BCDEGQRST]' 15118 ;; 15119solaris*) 15120 symcode='[BDRT]' 15121 ;; 15122sco3.2v5*) 15123 symcode='[DT]' 15124 ;; 15125sysv4.2uw2*) 15126 symcode='[DT]' 15127 ;; 15128sysv5* | sco5v6* | unixware* | OpenUNIX*) 15129 symcode='[ABDT]' 15130 ;; 15131sysv4) 15132 symcode='[DFNSTU]' 15133 ;; 15134esac 15135 15136# If we're using GNU nm, then use its standard symbol codes. 15137case `$NM -V 2>&1` in 15138*GNU* | *'with BFD'*) 15139 symcode='[ABCDGIRSTW]' ;; 15140esac 15141 15142if test "$lt_cv_nm_interface" = "MS dumpbin"; then 15143 # Gets list of data symbols to import. 15144 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 15145 # Adjust the below global symbol transforms to fixup imported variables. 15146 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 15147 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 15148 lt_c_name_lib_hook="\ 15149 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 15150 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 15151else 15152 # Disable hooks by default. 15153 lt_cv_sys_global_symbol_to_import= 15154 lt_cdecl_hook= 15155 lt_c_name_hook= 15156 lt_c_name_lib_hook= 15157fi 15158 15159# Transform an extracted symbol line into a proper C declaration. 15160# Some systems (esp. on ia64) link data and code symbols differently, 15161# so use this general approach. 15162lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 15163$lt_cdecl_hook\ 15164" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 15165" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 15166 15167# Transform an extracted symbol line into symbol name and symbol address 15168lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 15169$lt_c_name_hook\ 15170" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 15171" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 15172 15173# Transform an extracted symbol line into symbol name with lib prefix and 15174# symbol address. 15175lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 15176$lt_c_name_lib_hook\ 15177" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 15178" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 15179" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 15180 15181# Handle CRLF in mingw tool chain 15182opt_cr= 15183case $build_os in 15184mingw*) 15185 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 15186 ;; 15187esac 15188 15189# Try without a prefix underscore, then with it. 15190for ac_symprfx in "" "_"; do 15191 15192 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 15193 symxfrm="\\1 $ac_symprfx\\2 \\2" 15194 15195 # Write the raw and C identifiers. 15196 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 15197 # Fake it for dumpbin and say T for any non-static function, 15198 # D for any global variable and I for any imported variable. 15199 # Also find C++ and __fastcall symbols from MSVC++, 15200 # which start with @ or ?. 15201 lt_cv_sys_global_symbol_pipe="$AWK '"\ 15202" {last_section=section; section=\$ 3};"\ 15203" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 15204" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 15205" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 15206" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 15207" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 15208" \$ 0!~/External *\|/{next};"\ 15209" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 15210" {if(hide[section]) next};"\ 15211" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 15212" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 15213" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 15214" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 15215" ' prfx=^$ac_symprfx" 15216 else 15217 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 15218 fi 15219 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 15220 15221 # Check to see that the pipe works correctly. 15222 pipe_works=no 15223 15224 rm -f conftest* 15225 cat > conftest.$ac_ext <<_LT_EOF 15226#ifdef __cplusplus 15227extern "C" { 15228#endif 15229char nm_test_var; 15230void nm_test_func(void); 15231void nm_test_func(void){} 15232#ifdef __cplusplus 15233} 15234#endif 15235int main(){nm_test_var='a';nm_test_func();return(0);} 15236_LT_EOF 15237 15238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15239 (eval $ac_compile) 2>&5 15240 ac_status=$? 15241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15242 test $ac_status = 0; }; then 15243 # Now try to grab the symbols. 15244 nlist=conftest.nm 15245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 15246 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 15247 ac_status=$? 15248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15249 test $ac_status = 0; } && test -s "$nlist"; then 15250 # Try sorting and uniquifying the output. 15251 if sort "$nlist" | uniq > "$nlist"T; then 15252 mv -f "$nlist"T "$nlist" 15253 else 15254 rm -f "$nlist"T 15255 fi 15256 15257 # Make sure that we snagged all the symbols we need. 15258 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 15259 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 15260 cat <<_LT_EOF > conftest.$ac_ext 15261/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 15262#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 15263/* DATA imports from DLLs on WIN32 can't be const, because runtime 15264 relocations are performed -- see ld's documentation on pseudo-relocs. */ 15265# define LT_DLSYM_CONST 15266#elif defined __osf__ 15267/* This system does not cope well with relocations in const data. */ 15268# define LT_DLSYM_CONST 15269#else 15270# define LT_DLSYM_CONST const 15271#endif 15272 15273#ifdef __cplusplus 15274extern "C" { 15275#endif 15276 15277_LT_EOF 15278 # Now generate the symbol file. 15279 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 15280 15281 cat <<_LT_EOF >> conftest.$ac_ext 15282 15283/* The mapping between symbol names and symbols. */ 15284LT_DLSYM_CONST struct { 15285 const char *name; 15286 void *address; 15287} 15288lt__PROGRAM__LTX_preloaded_symbols[] = 15289{ 15290 { "@PROGRAM@", (void *) 0 }, 15291_LT_EOF 15292 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 15293 cat <<\_LT_EOF >> conftest.$ac_ext 15294 {0, (void *) 0} 15295}; 15296 15297/* This works around a problem in FreeBSD linker */ 15298#ifdef FREEBSD_WORKAROUND 15299static const void *lt_preloaded_setup() { 15300 return lt__PROGRAM__LTX_preloaded_symbols; 15301} 15302#endif 15303 15304#ifdef __cplusplus 15305} 15306#endif 15307_LT_EOF 15308 # Now try linking the two files. 15309 mv conftest.$ac_objext conftstm.$ac_objext 15310 lt_globsym_save_LIBS=$LIBS 15311 lt_globsym_save_CFLAGS=$CFLAGS 15312 LIBS=conftstm.$ac_objext 15313 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 15314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15315 (eval $ac_link) 2>&5 15316 ac_status=$? 15317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15318 test $ac_status = 0; } && test -s conftest$ac_exeext; then 15319 pipe_works=yes 15320 fi 15321 LIBS=$lt_globsym_save_LIBS 15322 CFLAGS=$lt_globsym_save_CFLAGS 15323 else 15324 echo "cannot find nm_test_func in $nlist" >&5 15325 fi 15326 else 15327 echo "cannot find nm_test_var in $nlist" >&5 15328 fi 15329 else 15330 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 15331 fi 15332 else 15333 echo "$progname: failed program was:" >&5 15334 cat conftest.$ac_ext >&5 15335 fi 15336 rm -rf conftest* conftst* 15337 15338 # Do not use the global_symbol_pipe unless it works. 15339 if test yes = "$pipe_works"; then 15340 break 15341 else 15342 lt_cv_sys_global_symbol_pipe= 15343 fi 15344done 15345 15346fi 15347 15348if test -z "$lt_cv_sys_global_symbol_pipe"; then 15349 lt_cv_sys_global_symbol_to_cdecl= 15350fi 15351if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 15353$as_echo "failed" >&6; } 15354else 15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15356$as_echo "ok" >&6; } 15357fi 15358 15359# Response file support. 15360if test "$lt_cv_nm_interface" = "MS dumpbin"; then 15361 nm_file_list_spec='@' 15362elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 15363 nm_file_list_spec='@' 15364fi 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 15403$as_echo_n "checking for sysroot... " >&6; } 15404 15405# Check whether --with-sysroot was given. 15406if test "${with_sysroot+set}" = set; then : 15407 withval=$with_sysroot; 15408else 15409 with_sysroot=no 15410fi 15411 15412 15413lt_sysroot= 15414case $with_sysroot in #( 15415 yes) 15416 if test yes = "$GCC"; then 15417 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 15418 fi 15419 ;; #( 15420 /*) 15421 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 15422 ;; #( 15423 no|'') 15424 ;; #( 15425 *) 15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 15427$as_echo "$with_sysroot" >&6; } 15428 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 15429 ;; 15430esac 15431 15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 15433$as_echo "${lt_sysroot:-no}" >&6; } 15434 15435 15436 15437 15438 15439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 15440$as_echo_n "checking for a working dd... " >&6; } 15441if ${ac_cv_path_lt_DD+:} false; then : 15442 $as_echo_n "(cached) " >&6 15443else 15444 printf 0123456789abcdef0123456789abcdef >conftest.i 15445cat conftest.i conftest.i >conftest2.i 15446: ${lt_DD:=$DD} 15447if test -z "$lt_DD"; then 15448 ac_path_lt_DD_found=false 15449 # Loop through the user's path and test for each of PROGNAME-LIST 15450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15451for as_dir in $PATH 15452do 15453 IFS=$as_save_IFS 15454 test -z "$as_dir" && as_dir=. 15455 for ac_prog in dd; do 15456 for ac_exec_ext in '' $ac_executable_extensions; do 15457 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 15458 as_fn_executable_p "$ac_path_lt_DD" || continue 15459if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 15460 cmp -s conftest.i conftest.out \ 15461 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 15462fi 15463 $ac_path_lt_DD_found && break 3 15464 done 15465 done 15466 done 15467IFS=$as_save_IFS 15468 if test -z "$ac_cv_path_lt_DD"; then 15469 : 15470 fi 15471else 15472 ac_cv_path_lt_DD=$lt_DD 15473fi 15474 15475rm -f conftest.i conftest2.i conftest.out 15476fi 15477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 15478$as_echo "$ac_cv_path_lt_DD" >&6; } 15479 15480 15481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 15482$as_echo_n "checking how to truncate binary pipes... " >&6; } 15483if ${lt_cv_truncate_bin+:} false; then : 15484 $as_echo_n "(cached) " >&6 15485else 15486 printf 0123456789abcdef0123456789abcdef >conftest.i 15487cat conftest.i conftest.i >conftest2.i 15488lt_cv_truncate_bin= 15489if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 15490 cmp -s conftest.i conftest.out \ 15491 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 15492fi 15493rm -f conftest.i conftest2.i conftest.out 15494test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 15495fi 15496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 15497$as_echo "$lt_cv_truncate_bin" >&6; } 15498 15499 15500 15501 15502 15503 15504 15505# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15506func_cc_basename () 15507{ 15508 for cc_temp in $*""; do 15509 case $cc_temp in 15510 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15511 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15512 \-*) ;; 15513 *) break;; 15514 esac 15515 done 15516 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15517} 15518 15519# Check whether --enable-libtool-lock was given. 15520if test "${enable_libtool_lock+set}" = set; then : 15521 enableval=$enable_libtool_lock; 15522fi 15523 15524test no = "$enable_libtool_lock" || enable_libtool_lock=yes 15525 15526# Some flags need to be propagated to the compiler or linker for good 15527# libtool support. 15528case $host in 15529ia64-*-hpux*) 15530 # Find out what ABI is being produced by ac_compile, and set mode 15531 # options accordingly. 15532 echo 'int i;' > conftest.$ac_ext 15533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15534 (eval $ac_compile) 2>&5 15535 ac_status=$? 15536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15537 test $ac_status = 0; }; then 15538 case `/usr/bin/file conftest.$ac_objext` in 15539 *ELF-32*) 15540 HPUX_IA64_MODE=32 15541 ;; 15542 *ELF-64*) 15543 HPUX_IA64_MODE=64 15544 ;; 15545 esac 15546 fi 15547 rm -rf conftest* 15548 ;; 15549*-*-irix6*) 15550 # Find out what ABI is being produced by ac_compile, and set linker 15551 # options accordingly. 15552 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 15553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15554 (eval $ac_compile) 2>&5 15555 ac_status=$? 15556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15557 test $ac_status = 0; }; then 15558 if test yes = "$lt_cv_prog_gnu_ld"; then 15559 case `/usr/bin/file conftest.$ac_objext` in 15560 *32-bit*) 15561 LD="${LD-ld} -melf32bsmip" 15562 ;; 15563 *N32*) 15564 LD="${LD-ld} -melf32bmipn32" 15565 ;; 15566 *64-bit*) 15567 LD="${LD-ld} -melf64bmip" 15568 ;; 15569 esac 15570 else 15571 case `/usr/bin/file conftest.$ac_objext` in 15572 *32-bit*) 15573 LD="${LD-ld} -32" 15574 ;; 15575 *N32*) 15576 LD="${LD-ld} -n32" 15577 ;; 15578 *64-bit*) 15579 LD="${LD-ld} -64" 15580 ;; 15581 esac 15582 fi 15583 fi 15584 rm -rf conftest* 15585 ;; 15586 15587mips64*-*linux*) 15588 # Find out what ABI is being produced by ac_compile, and set linker 15589 # options accordingly. 15590 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 15591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15592 (eval $ac_compile) 2>&5 15593 ac_status=$? 15594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15595 test $ac_status = 0; }; then 15596 emul=elf 15597 case `/usr/bin/file conftest.$ac_objext` in 15598 *32-bit*) 15599 emul="${emul}32" 15600 ;; 15601 *64-bit*) 15602 emul="${emul}64" 15603 ;; 15604 esac 15605 case `/usr/bin/file conftest.$ac_objext` in 15606 *MSB*) 15607 emul="${emul}btsmip" 15608 ;; 15609 *LSB*) 15610 emul="${emul}ltsmip" 15611 ;; 15612 esac 15613 case `/usr/bin/file conftest.$ac_objext` in 15614 *N32*) 15615 emul="${emul}n32" 15616 ;; 15617 esac 15618 LD="${LD-ld} -m $emul" 15619 fi 15620 rm -rf conftest* 15621 ;; 15622 15623x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 15624s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 15625 # Find out what ABI is being produced by ac_compile, and set linker 15626 # options accordingly. Note that the listed cases only cover the 15627 # situations where additional linker options are needed (such as when 15628 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 15629 # vice versa); the common cases where no linker options are needed do 15630 # not appear in the list. 15631 echo 'int i;' > conftest.$ac_ext 15632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15633 (eval $ac_compile) 2>&5 15634 ac_status=$? 15635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15636 test $ac_status = 0; }; then 15637 case `/usr/bin/file conftest.o` in 15638 *32-bit*) 15639 case $host in 15640 x86_64-*kfreebsd*-gnu) 15641 LD="${LD-ld} -m elf_i386_fbsd" 15642 ;; 15643 x86_64-*linux*) 15644 case `/usr/bin/file conftest.o` in 15645 *x86-64*) 15646 LD="${LD-ld} -m elf32_x86_64" 15647 ;; 15648 *) 15649 LD="${LD-ld} -m elf_i386" 15650 ;; 15651 esac 15652 ;; 15653 powerpc64le-*linux*) 15654 LD="${LD-ld} -m elf32lppclinux" 15655 ;; 15656 powerpc64-*linux*) 15657 LD="${LD-ld} -m elf32ppclinux" 15658 ;; 15659 s390x-*linux*) 15660 LD="${LD-ld} -m elf_s390" 15661 ;; 15662 sparc64-*linux*) 15663 LD="${LD-ld} -m elf32_sparc" 15664 ;; 15665 esac 15666 ;; 15667 *64-bit*) 15668 case $host in 15669 x86_64-*kfreebsd*-gnu) 15670 LD="${LD-ld} -m elf_x86_64_fbsd" 15671 ;; 15672 x86_64-*linux*) 15673 LD="${LD-ld} -m elf_x86_64" 15674 ;; 15675 powerpcle-*linux*|powerpc64le-*linux*) 15676 LD="${LD-ld} -m elf64lppc" 15677 ;; 15678 powerpc-*linux*|powerpc64-*linux*) 15679 LD="${LD-ld} -m elf64ppc" 15680 ;; 15681 s390*-*linux*|s390*-*tpf*) 15682 LD="${LD-ld} -m elf64_s390" 15683 ;; 15684 sparc*-*linux*) 15685 LD="${LD-ld} -m elf64_sparc" 15686 ;; 15687 esac 15688 ;; 15689 esac 15690 fi 15691 rm -rf conftest* 15692 ;; 15693 15694*-*-sco3.2v5*) 15695 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 15696 SAVE_CFLAGS=$CFLAGS 15697 CFLAGS="$CFLAGS -belf" 15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 15699$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 15700if ${lt_cv_cc_needs_belf+:} false; then : 15701 $as_echo_n "(cached) " >&6 15702else 15703 ac_ext=c 15704ac_cpp='$CPP $CPPFLAGS' 15705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15707ac_compiler_gnu=$ac_cv_c_compiler_gnu 15708 15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15710/* end confdefs.h. */ 15711 15712int 15713main () 15714{ 15715 15716 ; 15717 return 0; 15718} 15719_ACEOF 15720if ac_fn_c_try_link "$LINENO"; then : 15721 lt_cv_cc_needs_belf=yes 15722else 15723 lt_cv_cc_needs_belf=no 15724fi 15725rm -f core conftest.err conftest.$ac_objext \ 15726 conftest$ac_exeext conftest.$ac_ext 15727 ac_ext=c 15728ac_cpp='$CPP $CPPFLAGS' 15729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15731ac_compiler_gnu=$ac_cv_c_compiler_gnu 15732 15733fi 15734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 15735$as_echo "$lt_cv_cc_needs_belf" >&6; } 15736 if test yes != "$lt_cv_cc_needs_belf"; then 15737 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 15738 CFLAGS=$SAVE_CFLAGS 15739 fi 15740 ;; 15741*-*solaris*) 15742 # Find out what ABI is being produced by ac_compile, and set linker 15743 # options accordingly. 15744 echo 'int i;' > conftest.$ac_ext 15745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15746 (eval $ac_compile) 2>&5 15747 ac_status=$? 15748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15749 test $ac_status = 0; }; then 15750 case `/usr/bin/file conftest.o` in 15751 *64-bit*) 15752 case $lt_cv_prog_gnu_ld in 15753 yes*) 15754 case $host in 15755 i?86-*-solaris*|x86_64-*-solaris*) 15756 LD="${LD-ld} -m elf_x86_64" 15757 ;; 15758 sparc*-*-solaris*) 15759 LD="${LD-ld} -m elf64_sparc" 15760 ;; 15761 esac 15762 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 15763 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 15764 LD=${LD-ld}_sol2 15765 fi 15766 ;; 15767 *) 15768 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 15769 LD="${LD-ld} -64" 15770 fi 15771 ;; 15772 esac 15773 ;; 15774 esac 15775 fi 15776 rm -rf conftest* 15777 ;; 15778esac 15779 15780need_locks=$enable_libtool_lock 15781 15782if test -n "$ac_tool_prefix"; then 15783 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 15784set dummy ${ac_tool_prefix}mt; ac_word=$2 15785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15786$as_echo_n "checking for $ac_word... " >&6; } 15787if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 15788 $as_echo_n "(cached) " >&6 15789else 15790 if test -n "$MANIFEST_TOOL"; then 15791 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 15792else 15793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15794for as_dir in $PATH 15795do 15796 IFS=$as_save_IFS 15797 test -z "$as_dir" && as_dir=. 15798 for ac_exec_ext in '' $ac_executable_extensions; do 15799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15800 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 15801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15802 break 2 15803 fi 15804done 15805 done 15806IFS=$as_save_IFS 15807 15808fi 15809fi 15810MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 15811if test -n "$MANIFEST_TOOL"; then 15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 15813$as_echo "$MANIFEST_TOOL" >&6; } 15814else 15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15816$as_echo "no" >&6; } 15817fi 15818 15819 15820fi 15821if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 15822 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 15823 # Extract the first word of "mt", so it can be a program name with args. 15824set dummy mt; ac_word=$2 15825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15826$as_echo_n "checking for $ac_word... " >&6; } 15827if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 15828 $as_echo_n "(cached) " >&6 15829else 15830 if test -n "$ac_ct_MANIFEST_TOOL"; then 15831 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 15832else 15833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15834for as_dir in $PATH 15835do 15836 IFS=$as_save_IFS 15837 test -z "$as_dir" && as_dir=. 15838 for ac_exec_ext in '' $ac_executable_extensions; do 15839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15840 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 15841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15842 break 2 15843 fi 15844done 15845 done 15846IFS=$as_save_IFS 15847 15848fi 15849fi 15850ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 15851if test -n "$ac_ct_MANIFEST_TOOL"; then 15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 15853$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 15854else 15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15856$as_echo "no" >&6; } 15857fi 15858 15859 if test "x$ac_ct_MANIFEST_TOOL" = x; then 15860 MANIFEST_TOOL=":" 15861 else 15862 case $cross_compiling:$ac_tool_warned in 15863yes:) 15864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15866ac_tool_warned=yes ;; 15867esac 15868 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 15869 fi 15870else 15871 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 15872fi 15873 15874test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 15875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 15876$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 15877if ${lt_cv_path_mainfest_tool+:} false; then : 15878 $as_echo_n "(cached) " >&6 15879else 15880 lt_cv_path_mainfest_tool=no 15881 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 15882 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 15883 cat conftest.err >&5 15884 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 15885 lt_cv_path_mainfest_tool=yes 15886 fi 15887 rm -f conftest* 15888fi 15889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 15890$as_echo "$lt_cv_path_mainfest_tool" >&6; } 15891if test yes != "$lt_cv_path_mainfest_tool"; then 15892 MANIFEST_TOOL=: 15893fi 15894 15895 15896 15897 15898 15899 15900 case $host_os in 15901 rhapsody* | darwin*) 15902 if test -n "$ac_tool_prefix"; then 15903 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 15904set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 15905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15906$as_echo_n "checking for $ac_word... " >&6; } 15907if ${ac_cv_prog_DSYMUTIL+:} false; then : 15908 $as_echo_n "(cached) " >&6 15909else 15910 if test -n "$DSYMUTIL"; then 15911 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 15912else 15913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15914for as_dir in $PATH 15915do 15916 IFS=$as_save_IFS 15917 test -z "$as_dir" && as_dir=. 15918 for ac_exec_ext in '' $ac_executable_extensions; do 15919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15920 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 15921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15922 break 2 15923 fi 15924done 15925 done 15926IFS=$as_save_IFS 15927 15928fi 15929fi 15930DSYMUTIL=$ac_cv_prog_DSYMUTIL 15931if test -n "$DSYMUTIL"; then 15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 15933$as_echo "$DSYMUTIL" >&6; } 15934else 15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15936$as_echo "no" >&6; } 15937fi 15938 15939 15940fi 15941if test -z "$ac_cv_prog_DSYMUTIL"; then 15942 ac_ct_DSYMUTIL=$DSYMUTIL 15943 # Extract the first word of "dsymutil", so it can be a program name with args. 15944set dummy dsymutil; ac_word=$2 15945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15946$as_echo_n "checking for $ac_word... " >&6; } 15947if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 15948 $as_echo_n "(cached) " >&6 15949else 15950 if test -n "$ac_ct_DSYMUTIL"; then 15951 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 15952else 15953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15954for as_dir in $PATH 15955do 15956 IFS=$as_save_IFS 15957 test -z "$as_dir" && as_dir=. 15958 for ac_exec_ext in '' $ac_executable_extensions; do 15959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15960 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 15961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15962 break 2 15963 fi 15964done 15965 done 15966IFS=$as_save_IFS 15967 15968fi 15969fi 15970ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 15971if test -n "$ac_ct_DSYMUTIL"; then 15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 15973$as_echo "$ac_ct_DSYMUTIL" >&6; } 15974else 15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15976$as_echo "no" >&6; } 15977fi 15978 15979 if test "x$ac_ct_DSYMUTIL" = x; then 15980 DSYMUTIL=":" 15981 else 15982 case $cross_compiling:$ac_tool_warned in 15983yes:) 15984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15986ac_tool_warned=yes ;; 15987esac 15988 DSYMUTIL=$ac_ct_DSYMUTIL 15989 fi 15990else 15991 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 15992fi 15993 15994 if test -n "$ac_tool_prefix"; then 15995 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 15996set dummy ${ac_tool_prefix}nmedit; ac_word=$2 15997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15998$as_echo_n "checking for $ac_word... " >&6; } 15999if ${ac_cv_prog_NMEDIT+:} false; then : 16000 $as_echo_n "(cached) " >&6 16001else 16002 if test -n "$NMEDIT"; then 16003 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 16004else 16005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16006for as_dir in $PATH 16007do 16008 IFS=$as_save_IFS 16009 test -z "$as_dir" && as_dir=. 16010 for ac_exec_ext in '' $ac_executable_extensions; do 16011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16012 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 16013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16014 break 2 16015 fi 16016done 16017 done 16018IFS=$as_save_IFS 16019 16020fi 16021fi 16022NMEDIT=$ac_cv_prog_NMEDIT 16023if test -n "$NMEDIT"; then 16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 16025$as_echo "$NMEDIT" >&6; } 16026else 16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16028$as_echo "no" >&6; } 16029fi 16030 16031 16032fi 16033if test -z "$ac_cv_prog_NMEDIT"; then 16034 ac_ct_NMEDIT=$NMEDIT 16035 # Extract the first word of "nmedit", so it can be a program name with args. 16036set dummy nmedit; ac_word=$2 16037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16038$as_echo_n "checking for $ac_word... " >&6; } 16039if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 16040 $as_echo_n "(cached) " >&6 16041else 16042 if test -n "$ac_ct_NMEDIT"; then 16043 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 16044else 16045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16046for as_dir in $PATH 16047do 16048 IFS=$as_save_IFS 16049 test -z "$as_dir" && as_dir=. 16050 for ac_exec_ext in '' $ac_executable_extensions; do 16051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16052 ac_cv_prog_ac_ct_NMEDIT="nmedit" 16053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16054 break 2 16055 fi 16056done 16057 done 16058IFS=$as_save_IFS 16059 16060fi 16061fi 16062ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 16063if test -n "$ac_ct_NMEDIT"; then 16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 16065$as_echo "$ac_ct_NMEDIT" >&6; } 16066else 16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16068$as_echo "no" >&6; } 16069fi 16070 16071 if test "x$ac_ct_NMEDIT" = x; then 16072 NMEDIT=":" 16073 else 16074 case $cross_compiling:$ac_tool_warned in 16075yes:) 16076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16078ac_tool_warned=yes ;; 16079esac 16080 NMEDIT=$ac_ct_NMEDIT 16081 fi 16082else 16083 NMEDIT="$ac_cv_prog_NMEDIT" 16084fi 16085 16086 if test -n "$ac_tool_prefix"; then 16087 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 16088set dummy ${ac_tool_prefix}lipo; ac_word=$2 16089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16090$as_echo_n "checking for $ac_word... " >&6; } 16091if ${ac_cv_prog_LIPO+:} false; then : 16092 $as_echo_n "(cached) " >&6 16093else 16094 if test -n "$LIPO"; then 16095 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 16096else 16097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16098for as_dir in $PATH 16099do 16100 IFS=$as_save_IFS 16101 test -z "$as_dir" && as_dir=. 16102 for ac_exec_ext in '' $ac_executable_extensions; do 16103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16104 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 16105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16106 break 2 16107 fi 16108done 16109 done 16110IFS=$as_save_IFS 16111 16112fi 16113fi 16114LIPO=$ac_cv_prog_LIPO 16115if test -n "$LIPO"; then 16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 16117$as_echo "$LIPO" >&6; } 16118else 16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16120$as_echo "no" >&6; } 16121fi 16122 16123 16124fi 16125if test -z "$ac_cv_prog_LIPO"; then 16126 ac_ct_LIPO=$LIPO 16127 # Extract the first word of "lipo", so it can be a program name with args. 16128set dummy lipo; ac_word=$2 16129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16130$as_echo_n "checking for $ac_word... " >&6; } 16131if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 16132 $as_echo_n "(cached) " >&6 16133else 16134 if test -n "$ac_ct_LIPO"; then 16135 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 16136else 16137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16138for as_dir in $PATH 16139do 16140 IFS=$as_save_IFS 16141 test -z "$as_dir" && as_dir=. 16142 for ac_exec_ext in '' $ac_executable_extensions; do 16143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16144 ac_cv_prog_ac_ct_LIPO="lipo" 16145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16146 break 2 16147 fi 16148done 16149 done 16150IFS=$as_save_IFS 16151 16152fi 16153fi 16154ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 16155if test -n "$ac_ct_LIPO"; then 16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 16157$as_echo "$ac_ct_LIPO" >&6; } 16158else 16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16160$as_echo "no" >&6; } 16161fi 16162 16163 if test "x$ac_ct_LIPO" = x; then 16164 LIPO=":" 16165 else 16166 case $cross_compiling:$ac_tool_warned in 16167yes:) 16168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16170ac_tool_warned=yes ;; 16171esac 16172 LIPO=$ac_ct_LIPO 16173 fi 16174else 16175 LIPO="$ac_cv_prog_LIPO" 16176fi 16177 16178 if test -n "$ac_tool_prefix"; then 16179 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 16180set dummy ${ac_tool_prefix}otool; ac_word=$2 16181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16182$as_echo_n "checking for $ac_word... " >&6; } 16183if ${ac_cv_prog_OTOOL+:} false; then : 16184 $as_echo_n "(cached) " >&6 16185else 16186 if test -n "$OTOOL"; then 16187 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 16188else 16189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16190for as_dir in $PATH 16191do 16192 IFS=$as_save_IFS 16193 test -z "$as_dir" && as_dir=. 16194 for ac_exec_ext in '' $ac_executable_extensions; do 16195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16196 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 16197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16198 break 2 16199 fi 16200done 16201 done 16202IFS=$as_save_IFS 16203 16204fi 16205fi 16206OTOOL=$ac_cv_prog_OTOOL 16207if test -n "$OTOOL"; then 16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 16209$as_echo "$OTOOL" >&6; } 16210else 16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16212$as_echo "no" >&6; } 16213fi 16214 16215 16216fi 16217if test -z "$ac_cv_prog_OTOOL"; then 16218 ac_ct_OTOOL=$OTOOL 16219 # Extract the first word of "otool", so it can be a program name with args. 16220set dummy otool; ac_word=$2 16221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16222$as_echo_n "checking for $ac_word... " >&6; } 16223if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 16224 $as_echo_n "(cached) " >&6 16225else 16226 if test -n "$ac_ct_OTOOL"; then 16227 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 16228else 16229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16230for as_dir in $PATH 16231do 16232 IFS=$as_save_IFS 16233 test -z "$as_dir" && as_dir=. 16234 for ac_exec_ext in '' $ac_executable_extensions; do 16235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16236 ac_cv_prog_ac_ct_OTOOL="otool" 16237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16238 break 2 16239 fi 16240done 16241 done 16242IFS=$as_save_IFS 16243 16244fi 16245fi 16246ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 16247if test -n "$ac_ct_OTOOL"; then 16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 16249$as_echo "$ac_ct_OTOOL" >&6; } 16250else 16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16252$as_echo "no" >&6; } 16253fi 16254 16255 if test "x$ac_ct_OTOOL" = x; then 16256 OTOOL=":" 16257 else 16258 case $cross_compiling:$ac_tool_warned in 16259yes:) 16260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16262ac_tool_warned=yes ;; 16263esac 16264 OTOOL=$ac_ct_OTOOL 16265 fi 16266else 16267 OTOOL="$ac_cv_prog_OTOOL" 16268fi 16269 16270 if test -n "$ac_tool_prefix"; then 16271 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 16272set dummy ${ac_tool_prefix}otool64; ac_word=$2 16273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16274$as_echo_n "checking for $ac_word... " >&6; } 16275if ${ac_cv_prog_OTOOL64+:} false; then : 16276 $as_echo_n "(cached) " >&6 16277else 16278 if test -n "$OTOOL64"; then 16279 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 16280else 16281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16282for as_dir in $PATH 16283do 16284 IFS=$as_save_IFS 16285 test -z "$as_dir" && as_dir=. 16286 for ac_exec_ext in '' $ac_executable_extensions; do 16287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16288 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 16289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16290 break 2 16291 fi 16292done 16293 done 16294IFS=$as_save_IFS 16295 16296fi 16297fi 16298OTOOL64=$ac_cv_prog_OTOOL64 16299if test -n "$OTOOL64"; then 16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 16301$as_echo "$OTOOL64" >&6; } 16302else 16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16304$as_echo "no" >&6; } 16305fi 16306 16307 16308fi 16309if test -z "$ac_cv_prog_OTOOL64"; then 16310 ac_ct_OTOOL64=$OTOOL64 16311 # Extract the first word of "otool64", so it can be a program name with args. 16312set dummy otool64; ac_word=$2 16313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16314$as_echo_n "checking for $ac_word... " >&6; } 16315if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 16316 $as_echo_n "(cached) " >&6 16317else 16318 if test -n "$ac_ct_OTOOL64"; then 16319 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 16320else 16321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16322for as_dir in $PATH 16323do 16324 IFS=$as_save_IFS 16325 test -z "$as_dir" && as_dir=. 16326 for ac_exec_ext in '' $ac_executable_extensions; do 16327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16328 ac_cv_prog_ac_ct_OTOOL64="otool64" 16329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16330 break 2 16331 fi 16332done 16333 done 16334IFS=$as_save_IFS 16335 16336fi 16337fi 16338ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 16339if test -n "$ac_ct_OTOOL64"; then 16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 16341$as_echo "$ac_ct_OTOOL64" >&6; } 16342else 16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16344$as_echo "no" >&6; } 16345fi 16346 16347 if test "x$ac_ct_OTOOL64" = x; then 16348 OTOOL64=":" 16349 else 16350 case $cross_compiling:$ac_tool_warned in 16351yes:) 16352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16354ac_tool_warned=yes ;; 16355esac 16356 OTOOL64=$ac_ct_OTOOL64 16357 fi 16358else 16359 OTOOL64="$ac_cv_prog_OTOOL64" 16360fi 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 16389$as_echo_n "checking for -single_module linker flag... " >&6; } 16390if ${lt_cv_apple_cc_single_mod+:} false; then : 16391 $as_echo_n "(cached) " >&6 16392else 16393 lt_cv_apple_cc_single_mod=no 16394 if test -z "$LT_MULTI_MODULE"; then 16395 # By default we will add the -single_module flag. You can override 16396 # by either setting the environment variable LT_MULTI_MODULE 16397 # non-empty at configure time, or by adding -multi_module to the 16398 # link flags. 16399 rm -rf libconftest.dylib* 16400 echo "int foo(void){return 1;}" > conftest.c 16401 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 16402-dynamiclib -Wl,-single_module conftest.c" >&5 16403 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 16404 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 16405 _lt_result=$? 16406 # If there is a non-empty error log, and "single_module" 16407 # appears in it, assume the flag caused a linker warning 16408 if test -s conftest.err && $GREP single_module conftest.err; then 16409 cat conftest.err >&5 16410 # Otherwise, if the output was created with a 0 exit code from 16411 # the compiler, it worked. 16412 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 16413 lt_cv_apple_cc_single_mod=yes 16414 else 16415 cat conftest.err >&5 16416 fi 16417 rm -rf libconftest.dylib* 16418 rm -f conftest.* 16419 fi 16420fi 16421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 16422$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 16423 16424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 16425$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 16426if ${lt_cv_ld_exported_symbols_list+:} false; then : 16427 $as_echo_n "(cached) " >&6 16428else 16429 lt_cv_ld_exported_symbols_list=no 16430 save_LDFLAGS=$LDFLAGS 16431 echo "_main" > conftest.sym 16432 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 16433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16434/* end confdefs.h. */ 16435 16436int 16437main () 16438{ 16439 16440 ; 16441 return 0; 16442} 16443_ACEOF 16444if ac_fn_c_try_link "$LINENO"; then : 16445 lt_cv_ld_exported_symbols_list=yes 16446else 16447 lt_cv_ld_exported_symbols_list=no 16448fi 16449rm -f core conftest.err conftest.$ac_objext \ 16450 conftest$ac_exeext conftest.$ac_ext 16451 LDFLAGS=$save_LDFLAGS 16452 16453fi 16454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 16455$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 16456 16457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 16458$as_echo_n "checking for -force_load linker flag... " >&6; } 16459if ${lt_cv_ld_force_load+:} false; then : 16460 $as_echo_n "(cached) " >&6 16461else 16462 lt_cv_ld_force_load=no 16463 cat > conftest.c << _LT_EOF 16464int forced_loaded() { return 2;} 16465_LT_EOF 16466 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 16467 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 16468 echo "$AR cru libconftest.a conftest.o" >&5 16469 $AR cru libconftest.a conftest.o 2>&5 16470 echo "$RANLIB libconftest.a" >&5 16471 $RANLIB libconftest.a 2>&5 16472 cat > conftest.c << _LT_EOF 16473int main() { return 0;} 16474_LT_EOF 16475 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 16476 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 16477 _lt_result=$? 16478 if test -s conftest.err && $GREP force_load conftest.err; then 16479 cat conftest.err >&5 16480 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 16481 lt_cv_ld_force_load=yes 16482 else 16483 cat conftest.err >&5 16484 fi 16485 rm -f conftest.err libconftest.a conftest conftest.c 16486 rm -rf conftest.dSYM 16487 16488fi 16489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 16490$as_echo "$lt_cv_ld_force_load" >&6; } 16491 case $host_os in 16492 rhapsody* | darwin1.[012]) 16493 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 16494 darwin1.*) 16495 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 16496 darwin*) # darwin 5.x on 16497 # if running on 10.5 or later, the deployment target defaults 16498 # to the OS version, if on x86, and 10.4, the deployment 16499 # target defaults to 10.4. Don't you love it? 16500 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 16501 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 16502 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 16503 10.[012][,.]*) 16504 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 16505 10.*) 16506 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 16507 esac 16508 ;; 16509 esac 16510 if test yes = "$lt_cv_apple_cc_single_mod"; then 16511 _lt_dar_single_mod='$single_module' 16512 fi 16513 if test yes = "$lt_cv_ld_exported_symbols_list"; then 16514 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 16515 else 16516 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 16517 fi 16518 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 16519 _lt_dsymutil='~$DSYMUTIL $lib || :' 16520 else 16521 _lt_dsymutil= 16522 fi 16523 ;; 16524 esac 16525 16526# func_munge_path_list VARIABLE PATH 16527# ----------------------------------- 16528# VARIABLE is name of variable containing _space_ separated list of 16529# directories to be munged by the contents of PATH, which is string 16530# having a format: 16531# "DIR[:DIR]:" 16532# string "DIR[ DIR]" will be prepended to VARIABLE 16533# ":DIR[:DIR]" 16534# string "DIR[ DIR]" will be appended to VARIABLE 16535# "DIRP[:DIRP]::[DIRA:]DIRA" 16536# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 16537# "DIRA[ DIRA]" will be appended to VARIABLE 16538# "DIR[:DIR]" 16539# VARIABLE will be replaced by "DIR[ DIR]" 16540func_munge_path_list () 16541{ 16542 case x$2 in 16543 x) 16544 ;; 16545 *:) 16546 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 16547 ;; 16548 x:*) 16549 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 16550 ;; 16551 *::*) 16552 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 16553 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 16554 ;; 16555 *) 16556 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 16557 ;; 16558 esac 16559} 16560 16561for ac_header in dlfcn.h 16562do : 16563 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 16564" 16565if test "x$ac_cv_header_dlfcn_h" = xyes; then : 16566 cat >>confdefs.h <<_ACEOF 16567#define HAVE_DLFCN_H 1 16568_ACEOF 16569 16570fi 16571 16572done 16573 16574 16575 16576 16577 16578# Set options 16579# Check whether --enable-static was given. 16580if test "${enable_static+set}" = set; then : 16581 enableval=$enable_static; p=${PACKAGE-default} 16582 case $enableval in 16583 yes) enable_static=yes ;; 16584 no) enable_static=no ;; 16585 *) 16586 enable_static=no 16587 # Look at the argument we got. We use all the common list separators. 16588 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16589 for pkg in $enableval; do 16590 IFS=$lt_save_ifs 16591 if test "X$pkg" = "X$p"; then 16592 enable_static=yes 16593 fi 16594 done 16595 IFS=$lt_save_ifs 16596 ;; 16597 esac 16598else 16599 enable_static=no 16600fi 16601 16602 16603 16604 16605 16606 16607 16608enable_win32_dll=yes 16609 16610case $host in 16611*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 16612 if test -n "$ac_tool_prefix"; then 16613 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 16614set dummy ${ac_tool_prefix}as; ac_word=$2 16615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16616$as_echo_n "checking for $ac_word... " >&6; } 16617if ${ac_cv_prog_AS+:} false; then : 16618 $as_echo_n "(cached) " >&6 16619else 16620 if test -n "$AS"; then 16621 ac_cv_prog_AS="$AS" # Let the user override the test. 16622else 16623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16624for as_dir in $PATH 16625do 16626 IFS=$as_save_IFS 16627 test -z "$as_dir" && as_dir=. 16628 for ac_exec_ext in '' $ac_executable_extensions; do 16629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16630 ac_cv_prog_AS="${ac_tool_prefix}as" 16631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16632 break 2 16633 fi 16634done 16635 done 16636IFS=$as_save_IFS 16637 16638fi 16639fi 16640AS=$ac_cv_prog_AS 16641if test -n "$AS"; then 16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 16643$as_echo "$AS" >&6; } 16644else 16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16646$as_echo "no" >&6; } 16647fi 16648 16649 16650fi 16651if test -z "$ac_cv_prog_AS"; then 16652 ac_ct_AS=$AS 16653 # Extract the first word of "as", so it can be a program name with args. 16654set dummy as; ac_word=$2 16655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16656$as_echo_n "checking for $ac_word... " >&6; } 16657if ${ac_cv_prog_ac_ct_AS+:} false; then : 16658 $as_echo_n "(cached) " >&6 16659else 16660 if test -n "$ac_ct_AS"; then 16661 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 16662else 16663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16664for as_dir in $PATH 16665do 16666 IFS=$as_save_IFS 16667 test -z "$as_dir" && as_dir=. 16668 for ac_exec_ext in '' $ac_executable_extensions; do 16669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16670 ac_cv_prog_ac_ct_AS="as" 16671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16672 break 2 16673 fi 16674done 16675 done 16676IFS=$as_save_IFS 16677 16678fi 16679fi 16680ac_ct_AS=$ac_cv_prog_ac_ct_AS 16681if test -n "$ac_ct_AS"; then 16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 16683$as_echo "$ac_ct_AS" >&6; } 16684else 16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16686$as_echo "no" >&6; } 16687fi 16688 16689 if test "x$ac_ct_AS" = x; then 16690 AS="false" 16691 else 16692 case $cross_compiling:$ac_tool_warned in 16693yes:) 16694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16696ac_tool_warned=yes ;; 16697esac 16698 AS=$ac_ct_AS 16699 fi 16700else 16701 AS="$ac_cv_prog_AS" 16702fi 16703 16704 if test -n "$ac_tool_prefix"; then 16705 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 16706set dummy ${ac_tool_prefix}dlltool; ac_word=$2 16707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16708$as_echo_n "checking for $ac_word... " >&6; } 16709if ${ac_cv_prog_DLLTOOL+:} false; then : 16710 $as_echo_n "(cached) " >&6 16711else 16712 if test -n "$DLLTOOL"; then 16713 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 16714else 16715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16716for as_dir in $PATH 16717do 16718 IFS=$as_save_IFS 16719 test -z "$as_dir" && as_dir=. 16720 for ac_exec_ext in '' $ac_executable_extensions; do 16721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16722 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 16723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16724 break 2 16725 fi 16726done 16727 done 16728IFS=$as_save_IFS 16729 16730fi 16731fi 16732DLLTOOL=$ac_cv_prog_DLLTOOL 16733if test -n "$DLLTOOL"; then 16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 16735$as_echo "$DLLTOOL" >&6; } 16736else 16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16738$as_echo "no" >&6; } 16739fi 16740 16741 16742fi 16743if test -z "$ac_cv_prog_DLLTOOL"; then 16744 ac_ct_DLLTOOL=$DLLTOOL 16745 # Extract the first word of "dlltool", so it can be a program name with args. 16746set dummy dlltool; ac_word=$2 16747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16748$as_echo_n "checking for $ac_word... " >&6; } 16749if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 16750 $as_echo_n "(cached) " >&6 16751else 16752 if test -n "$ac_ct_DLLTOOL"; then 16753 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 16754else 16755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16756for as_dir in $PATH 16757do 16758 IFS=$as_save_IFS 16759 test -z "$as_dir" && as_dir=. 16760 for ac_exec_ext in '' $ac_executable_extensions; do 16761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16762 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 16763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16764 break 2 16765 fi 16766done 16767 done 16768IFS=$as_save_IFS 16769 16770fi 16771fi 16772ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 16773if test -n "$ac_ct_DLLTOOL"; then 16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 16775$as_echo "$ac_ct_DLLTOOL" >&6; } 16776else 16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16778$as_echo "no" >&6; } 16779fi 16780 16781 if test "x$ac_ct_DLLTOOL" = x; then 16782 DLLTOOL="false" 16783 else 16784 case $cross_compiling:$ac_tool_warned in 16785yes:) 16786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16788ac_tool_warned=yes ;; 16789esac 16790 DLLTOOL=$ac_ct_DLLTOOL 16791 fi 16792else 16793 DLLTOOL="$ac_cv_prog_DLLTOOL" 16794fi 16795 16796 if test -n "$ac_tool_prefix"; then 16797 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 16798set dummy ${ac_tool_prefix}objdump; ac_word=$2 16799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16800$as_echo_n "checking for $ac_word... " >&6; } 16801if ${ac_cv_prog_OBJDUMP+:} false; then : 16802 $as_echo_n "(cached) " >&6 16803else 16804 if test -n "$OBJDUMP"; then 16805 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 16806else 16807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16808for as_dir in $PATH 16809do 16810 IFS=$as_save_IFS 16811 test -z "$as_dir" && as_dir=. 16812 for ac_exec_ext in '' $ac_executable_extensions; do 16813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16814 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 16815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16816 break 2 16817 fi 16818done 16819 done 16820IFS=$as_save_IFS 16821 16822fi 16823fi 16824OBJDUMP=$ac_cv_prog_OBJDUMP 16825if test -n "$OBJDUMP"; then 16826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 16827$as_echo "$OBJDUMP" >&6; } 16828else 16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16830$as_echo "no" >&6; } 16831fi 16832 16833 16834fi 16835if test -z "$ac_cv_prog_OBJDUMP"; then 16836 ac_ct_OBJDUMP=$OBJDUMP 16837 # Extract the first word of "objdump", so it can be a program name with args. 16838set dummy objdump; ac_word=$2 16839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16840$as_echo_n "checking for $ac_word... " >&6; } 16841if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 16842 $as_echo_n "(cached) " >&6 16843else 16844 if test -n "$ac_ct_OBJDUMP"; then 16845 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 16846else 16847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16848for as_dir in $PATH 16849do 16850 IFS=$as_save_IFS 16851 test -z "$as_dir" && as_dir=. 16852 for ac_exec_ext in '' $ac_executable_extensions; do 16853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16854 ac_cv_prog_ac_ct_OBJDUMP="objdump" 16855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16856 break 2 16857 fi 16858done 16859 done 16860IFS=$as_save_IFS 16861 16862fi 16863fi 16864ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 16865if test -n "$ac_ct_OBJDUMP"; then 16866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 16867$as_echo "$ac_ct_OBJDUMP" >&6; } 16868else 16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16870$as_echo "no" >&6; } 16871fi 16872 16873 if test "x$ac_ct_OBJDUMP" = x; then 16874 OBJDUMP="false" 16875 else 16876 case $cross_compiling:$ac_tool_warned in 16877yes:) 16878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16880ac_tool_warned=yes ;; 16881esac 16882 OBJDUMP=$ac_ct_OBJDUMP 16883 fi 16884else 16885 OBJDUMP="$ac_cv_prog_OBJDUMP" 16886fi 16887 16888 ;; 16889esac 16890 16891test -z "$AS" && AS=as 16892 16893 16894 16895 16896 16897test -z "$DLLTOOL" && DLLTOOL=dlltool 16898 16899 16900 16901 16902 16903test -z "$OBJDUMP" && OBJDUMP=objdump 16904 16905 16906 16907 16908 16909 16910 16911 enable_dlopen=no 16912 16913 16914 16915 # Check whether --enable-shared was given. 16916if test "${enable_shared+set}" = set; then : 16917 enableval=$enable_shared; p=${PACKAGE-default} 16918 case $enableval in 16919 yes) enable_shared=yes ;; 16920 no) enable_shared=no ;; 16921 *) 16922 enable_shared=no 16923 # Look at the argument we got. We use all the common list separators. 16924 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16925 for pkg in $enableval; do 16926 IFS=$lt_save_ifs 16927 if test "X$pkg" = "X$p"; then 16928 enable_shared=yes 16929 fi 16930 done 16931 IFS=$lt_save_ifs 16932 ;; 16933 esac 16934else 16935 enable_shared=yes 16936fi 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948# Check whether --with-pic was given. 16949if test "${with_pic+set}" = set; then : 16950 withval=$with_pic; lt_p=${PACKAGE-default} 16951 case $withval in 16952 yes|no) pic_mode=$withval ;; 16953 *) 16954 pic_mode=default 16955 # Look at the argument we got. We use all the common list separators. 16956 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16957 for lt_pkg in $withval; do 16958 IFS=$lt_save_ifs 16959 if test "X$lt_pkg" = "X$lt_p"; then 16960 pic_mode=yes 16961 fi 16962 done 16963 IFS=$lt_save_ifs 16964 ;; 16965 esac 16966else 16967 pic_mode=default 16968fi 16969 16970 16971 16972 16973 16974 16975 16976 16977 # Check whether --enable-fast-install was given. 16978if test "${enable_fast_install+set}" = set; then : 16979 enableval=$enable_fast_install; p=${PACKAGE-default} 16980 case $enableval in 16981 yes) enable_fast_install=yes ;; 16982 no) enable_fast_install=no ;; 16983 *) 16984 enable_fast_install=no 16985 # Look at the argument we got. We use all the common list separators. 16986 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16987 for pkg in $enableval; do 16988 IFS=$lt_save_ifs 16989 if test "X$pkg" = "X$p"; then 16990 enable_fast_install=yes 16991 fi 16992 done 16993 IFS=$lt_save_ifs 16994 ;; 16995 esac 16996else 16997 enable_fast_install=yes 16998fi 16999 17000 17001 17002 17003 17004 17005 17006 17007 shared_archive_member_spec= 17008case $host,$enable_shared in 17009power*-*-aix[5-9]*,yes) 17010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 17011$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 17012 17013# Check whether --with-aix-soname was given. 17014if test "${with_aix_soname+set}" = set; then : 17015 withval=$with_aix_soname; case $withval in 17016 aix|svr4|both) 17017 ;; 17018 *) 17019 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 17020 ;; 17021 esac 17022 lt_cv_with_aix_soname=$with_aix_soname 17023else 17024 if ${lt_cv_with_aix_soname+:} false; then : 17025 $as_echo_n "(cached) " >&6 17026else 17027 lt_cv_with_aix_soname=aix 17028fi 17029 17030 with_aix_soname=$lt_cv_with_aix_soname 17031fi 17032 17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 17034$as_echo "$with_aix_soname" >&6; } 17035 if test aix != "$with_aix_soname"; then 17036 # For the AIX way of multilib, we name the shared archive member 17037 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 17038 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 17039 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 17040 # the AIX toolchain works better with OBJECT_MODE set (default 32). 17041 if test 64 = "${OBJECT_MODE-32}"; then 17042 shared_archive_member_spec=shr_64 17043 else 17044 shared_archive_member_spec=shr 17045 fi 17046 fi 17047 ;; 17048*) 17049 with_aix_soname=aix 17050 ;; 17051esac 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062# This can be used to rebuild libtool when needed 17063LIBTOOL_DEPS=$ltmain 17064 17065# Always use our own libtool. 17066LIBTOOL='$(SHELL) $(top_builddir)/libtool' 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097test -z "$LN_S" && LN_S="ln -s" 17098 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112if test -n "${ZSH_VERSION+set}"; then 17113 setopt NO_GLOB_SUBST 17114fi 17115 17116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 17117$as_echo_n "checking for objdir... " >&6; } 17118if ${lt_cv_objdir+:} false; then : 17119 $as_echo_n "(cached) " >&6 17120else 17121 rm -f .libs 2>/dev/null 17122mkdir .libs 2>/dev/null 17123if test -d .libs; then 17124 lt_cv_objdir=.libs 17125else 17126 # MS-DOS does not allow filenames that begin with a dot. 17127 lt_cv_objdir=_libs 17128fi 17129rmdir .libs 2>/dev/null 17130fi 17131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 17132$as_echo "$lt_cv_objdir" >&6; } 17133objdir=$lt_cv_objdir 17134 17135 17136 17137 17138 17139cat >>confdefs.h <<_ACEOF 17140#define LT_OBJDIR "$lt_cv_objdir/" 17141_ACEOF 17142 17143 17144 17145 17146case $host_os in 17147aix3*) 17148 # AIX sometimes has problems with the GCC collect2 program. For some 17149 # reason, if we set the COLLECT_NAMES environment variable, the problems 17150 # vanish in a puff of smoke. 17151 if test set != "${COLLECT_NAMES+set}"; then 17152 COLLECT_NAMES= 17153 export COLLECT_NAMES 17154 fi 17155 ;; 17156esac 17157 17158# Global variables: 17159ofile=libtool 17160can_build_shared=yes 17161 17162# All known linkers require a '.a' archive for static linking (except MSVC, 17163# which needs '.lib'). 17164libext=a 17165 17166with_gnu_ld=$lt_cv_prog_gnu_ld 17167 17168old_CC=$CC 17169old_CFLAGS=$CFLAGS 17170 17171# Set sane defaults for various variables 17172test -z "$CC" && CC=cc 17173test -z "$LTCC" && LTCC=$CC 17174test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 17175test -z "$LD" && LD=ld 17176test -z "$ac_objext" && ac_objext=o 17177 17178func_cc_basename $compiler 17179cc_basename=$func_cc_basename_result 17180 17181 17182# Only perform the check for file, if the check method requires it 17183test -z "$MAGIC_CMD" && MAGIC_CMD=file 17184case $deplibs_check_method in 17185file_magic*) 17186 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 17188$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 17189if ${lt_cv_path_MAGIC_CMD+:} false; then : 17190 $as_echo_n "(cached) " >&6 17191else 17192 case $MAGIC_CMD in 17193[\\/*] | ?:[\\/]*) 17194 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 17195 ;; 17196*) 17197 lt_save_MAGIC_CMD=$MAGIC_CMD 17198 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 17199 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 17200 for ac_dir in $ac_dummy; do 17201 IFS=$lt_save_ifs 17202 test -z "$ac_dir" && ac_dir=. 17203 if test -f "$ac_dir/${ac_tool_prefix}file"; then 17204 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 17205 if test -n "$file_magic_test_file"; then 17206 case $deplibs_check_method in 17207 "file_magic "*) 17208 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 17209 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 17210 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 17211 $EGREP "$file_magic_regex" > /dev/null; then 17212 : 17213 else 17214 cat <<_LT_EOF 1>&2 17215 17216*** Warning: the command libtool uses to detect shared libraries, 17217*** $file_magic_cmd, produces output that libtool cannot recognize. 17218*** The result is that libtool may fail to recognize shared libraries 17219*** as such. This will affect the creation of libtool libraries that 17220*** depend on shared libraries, but programs linked with such libtool 17221*** libraries will work regardless of this problem. Nevertheless, you 17222*** may want to report the problem to your system manager and/or to 17223*** bug-libtool@gnu.org 17224 17225_LT_EOF 17226 fi ;; 17227 esac 17228 fi 17229 break 17230 fi 17231 done 17232 IFS=$lt_save_ifs 17233 MAGIC_CMD=$lt_save_MAGIC_CMD 17234 ;; 17235esac 17236fi 17237 17238MAGIC_CMD=$lt_cv_path_MAGIC_CMD 17239if test -n "$MAGIC_CMD"; then 17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 17241$as_echo "$MAGIC_CMD" >&6; } 17242else 17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17244$as_echo "no" >&6; } 17245fi 17246 17247 17248 17249 17250 17251if test -z "$lt_cv_path_MAGIC_CMD"; then 17252 if test -n "$ac_tool_prefix"; then 17253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 17254$as_echo_n "checking for file... " >&6; } 17255if ${lt_cv_path_MAGIC_CMD+:} false; then : 17256 $as_echo_n "(cached) " >&6 17257else 17258 case $MAGIC_CMD in 17259[\\/*] | ?:[\\/]*) 17260 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 17261 ;; 17262*) 17263 lt_save_MAGIC_CMD=$MAGIC_CMD 17264 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 17265 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 17266 for ac_dir in $ac_dummy; do 17267 IFS=$lt_save_ifs 17268 test -z "$ac_dir" && ac_dir=. 17269 if test -f "$ac_dir/file"; then 17270 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 17271 if test -n "$file_magic_test_file"; then 17272 case $deplibs_check_method in 17273 "file_magic "*) 17274 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 17275 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 17276 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 17277 $EGREP "$file_magic_regex" > /dev/null; then 17278 : 17279 else 17280 cat <<_LT_EOF 1>&2 17281 17282*** Warning: the command libtool uses to detect shared libraries, 17283*** $file_magic_cmd, produces output that libtool cannot recognize. 17284*** The result is that libtool may fail to recognize shared libraries 17285*** as such. This will affect the creation of libtool libraries that 17286*** depend on shared libraries, but programs linked with such libtool 17287*** libraries will work regardless of this problem. Nevertheless, you 17288*** may want to report the problem to your system manager and/or to 17289*** bug-libtool@gnu.org 17290 17291_LT_EOF 17292 fi ;; 17293 esac 17294 fi 17295 break 17296 fi 17297 done 17298 IFS=$lt_save_ifs 17299 MAGIC_CMD=$lt_save_MAGIC_CMD 17300 ;; 17301esac 17302fi 17303 17304MAGIC_CMD=$lt_cv_path_MAGIC_CMD 17305if test -n "$MAGIC_CMD"; then 17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 17307$as_echo "$MAGIC_CMD" >&6; } 17308else 17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17310$as_echo "no" >&6; } 17311fi 17312 17313 17314 else 17315 MAGIC_CMD=: 17316 fi 17317fi 17318 17319 fi 17320 ;; 17321esac 17322 17323# Use C for the default configuration in the libtool script 17324 17325lt_save_CC=$CC 17326ac_ext=c 17327ac_cpp='$CPP $CPPFLAGS' 17328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17330ac_compiler_gnu=$ac_cv_c_compiler_gnu 17331 17332 17333# Source file extension for C test sources. 17334ac_ext=c 17335 17336# Object file extension for compiled C test sources. 17337objext=o 17338objext=$objext 17339 17340# Code to be used in simple compile tests 17341lt_simple_compile_test_code="int some_variable = 0;" 17342 17343# Code to be used in simple link tests 17344lt_simple_link_test_code='int main(){return(0);}' 17345 17346 17347 17348 17349 17350 17351 17352# If no C compiler was specified, use CC. 17353LTCC=${LTCC-"$CC"} 17354 17355# If no C compiler flags were specified, use CFLAGS. 17356LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17357 17358# Allow CC to be a program name with arguments. 17359compiler=$CC 17360 17361# Save the default compiler, since it gets overwritten when the other 17362# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 17363compiler_DEFAULT=$CC 17364 17365# save warnings/boilerplate of simple test code 17366ac_outfile=conftest.$ac_objext 17367echo "$lt_simple_compile_test_code" >conftest.$ac_ext 17368eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17369_lt_compiler_boilerplate=`cat conftest.err` 17370$RM conftest* 17371 17372ac_outfile=conftest.$ac_objext 17373echo "$lt_simple_link_test_code" >conftest.$ac_ext 17374eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17375_lt_linker_boilerplate=`cat conftest.err` 17376$RM -r conftest* 17377 17378 17379## CAVEAT EMPTOR: 17380## There is no encapsulation within the following macros, do not change 17381## the running order or otherwise move them around unless you know exactly 17382## what you are doing... 17383if test -n "$compiler"; then 17384 17385lt_prog_compiler_no_builtin_flag= 17386 17387if test yes = "$GCC"; then 17388 case $cc_basename in 17389 nvcc*) 17390 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 17391 *) 17392 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 17393 esac 17394 17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17396$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 17397if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 17398 $as_echo_n "(cached) " >&6 17399else 17400 lt_cv_prog_compiler_rtti_exceptions=no 17401 ac_outfile=conftest.$ac_objext 17402 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17403 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 17404 # Insert the option either (1) after the last *FLAGS variable, or 17405 # (2) before a word containing "conftest.", or (3) at the end. 17406 # Note that $ac_compile itself does not contain backslashes and begins 17407 # with a dollar sign (not a hyphen), so the echo should work correctly. 17408 # The option is referenced via a variable to avoid confusing sed. 17409 lt_compile=`echo "$ac_compile" | $SED \ 17410 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17411 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17412 -e 's:$: $lt_compiler_flag:'` 17413 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17414 (eval "$lt_compile" 2>conftest.err) 17415 ac_status=$? 17416 cat conftest.err >&5 17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17418 if (exit $ac_status) && test -s "$ac_outfile"; then 17419 # The compiler can only warn and ignore the option if not recognized 17420 # So say no if there are warnings other than the usual output. 17421 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17423 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17424 lt_cv_prog_compiler_rtti_exceptions=yes 17425 fi 17426 fi 17427 $RM conftest* 17428 17429fi 17430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17431$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 17432 17433if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 17434 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 17435else 17436 : 17437fi 17438 17439fi 17440 17441 17442 17443 17444 17445 17446 lt_prog_compiler_wl= 17447lt_prog_compiler_pic= 17448lt_prog_compiler_static= 17449 17450 17451 if test yes = "$GCC"; then 17452 lt_prog_compiler_wl='-Wl,' 17453 lt_prog_compiler_static='-static' 17454 17455 case $host_os in 17456 aix*) 17457 # All AIX code is PIC. 17458 if test ia64 = "$host_cpu"; then 17459 # AIX 5 now supports IA64 processor 17460 lt_prog_compiler_static='-Bstatic' 17461 fi 17462 lt_prog_compiler_pic='-fPIC' 17463 ;; 17464 17465 amigaos*) 17466 case $host_cpu in 17467 powerpc) 17468 # see comment about AmigaOS4 .so support 17469 lt_prog_compiler_pic='-fPIC' 17470 ;; 17471 m68k) 17472 # FIXME: we need at least 68020 code to build shared libraries, but 17473 # adding the '-m68020' flag to GCC prevents building anything better, 17474 # like '-m68040'. 17475 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 17476 ;; 17477 esac 17478 ;; 17479 17480 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17481 # PIC is the default for these OSes. 17482 ;; 17483 17484 mingw* | cygwin* | pw32* | os2* | cegcc*) 17485 # This hack is so that the source file can tell whether it is being 17486 # built for inclusion in a dll (and should export symbols for example). 17487 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17488 # (--disable-auto-import) libraries 17489 lt_prog_compiler_pic='-DDLL_EXPORT' 17490 case $host_os in 17491 os2*) 17492 lt_prog_compiler_static='$wl-static' 17493 ;; 17494 esac 17495 ;; 17496 17497 darwin* | rhapsody*) 17498 # PIC is the default on this platform 17499 # Common symbols not allowed in MH_DYLIB files 17500 lt_prog_compiler_pic='-fno-common' 17501 ;; 17502 17503 haiku*) 17504 # PIC is the default for Haiku. 17505 # The "-static" flag exists, but is broken. 17506 lt_prog_compiler_static= 17507 ;; 17508 17509 hpux*) 17510 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 17511 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 17512 # sets the default TLS model and affects inlining. 17513 case $host_cpu in 17514 hppa*64*) 17515 # +Z the default 17516 ;; 17517 *) 17518 lt_prog_compiler_pic='-fPIC' 17519 ;; 17520 esac 17521 ;; 17522 17523 interix[3-9]*) 17524 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17525 # Instead, we relocate shared libraries at runtime. 17526 ;; 17527 17528 msdosdjgpp*) 17529 # Just because we use GCC doesn't mean we suddenly get shared libraries 17530 # on systems that don't support them. 17531 lt_prog_compiler_can_build_shared=no 17532 enable_shared=no 17533 ;; 17534 17535 *nto* | *qnx*) 17536 # QNX uses GNU C++, but need to define -shared option too, otherwise 17537 # it will coredump. 17538 lt_prog_compiler_pic='-fPIC -shared' 17539 ;; 17540 17541 sysv4*MP*) 17542 if test -d /usr/nec; then 17543 lt_prog_compiler_pic=-Kconform_pic 17544 fi 17545 ;; 17546 17547 *) 17548 lt_prog_compiler_pic='-fPIC' 17549 ;; 17550 esac 17551 17552 case $cc_basename in 17553 nvcc*) # Cuda Compiler Driver 2.2 17554 lt_prog_compiler_wl='-Xlinker ' 17555 if test -n "$lt_prog_compiler_pic"; then 17556 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 17557 fi 17558 ;; 17559 esac 17560 else 17561 # PORTME Check for flag to pass linker flags through the system compiler. 17562 case $host_os in 17563 aix*) 17564 lt_prog_compiler_wl='-Wl,' 17565 if test ia64 = "$host_cpu"; then 17566 # AIX 5 now supports IA64 processor 17567 lt_prog_compiler_static='-Bstatic' 17568 else 17569 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 17570 fi 17571 ;; 17572 17573 darwin* | rhapsody*) 17574 # PIC is the default on this platform 17575 # Common symbols not allowed in MH_DYLIB files 17576 lt_prog_compiler_pic='-fno-common' 17577 case $cc_basename in 17578 nagfor*) 17579 # NAG Fortran compiler 17580 lt_prog_compiler_wl='-Wl,-Wl,,' 17581 lt_prog_compiler_pic='-PIC' 17582 lt_prog_compiler_static='-Bstatic' 17583 ;; 17584 esac 17585 ;; 17586 17587 mingw* | cygwin* | pw32* | os2* | cegcc*) 17588 # This hack is so that the source file can tell whether it is being 17589 # built for inclusion in a dll (and should export symbols for example). 17590 lt_prog_compiler_pic='-DDLL_EXPORT' 17591 case $host_os in 17592 os2*) 17593 lt_prog_compiler_static='$wl-static' 17594 ;; 17595 esac 17596 ;; 17597 17598 hpux9* | hpux10* | hpux11*) 17599 lt_prog_compiler_wl='-Wl,' 17600 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17601 # not for PA HP-UX. 17602 case $host_cpu in 17603 hppa*64*|ia64*) 17604 # +Z the default 17605 ;; 17606 *) 17607 lt_prog_compiler_pic='+Z' 17608 ;; 17609 esac 17610 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17611 lt_prog_compiler_static='$wl-a ${wl}archive' 17612 ;; 17613 17614 irix5* | irix6* | nonstopux*) 17615 lt_prog_compiler_wl='-Wl,' 17616 # PIC (with -KPIC) is the default. 17617 lt_prog_compiler_static='-non_shared' 17618 ;; 17619 17620 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17621 case $cc_basename in 17622 # old Intel for x86_64, which still supported -KPIC. 17623 ecc*) 17624 lt_prog_compiler_wl='-Wl,' 17625 lt_prog_compiler_pic='-KPIC' 17626 lt_prog_compiler_static='-static' 17627 ;; 17628 # icc used to be incompatible with GCC. 17629 # ICC 10 doesn't accept -KPIC any more. 17630 icc* | ifort*) 17631 lt_prog_compiler_wl='-Wl,' 17632 lt_prog_compiler_pic='-fPIC' 17633 lt_prog_compiler_static='-static' 17634 ;; 17635 # Lahey Fortran 8.1. 17636 lf95*) 17637 lt_prog_compiler_wl='-Wl,' 17638 lt_prog_compiler_pic='--shared' 17639 lt_prog_compiler_static='--static' 17640 ;; 17641 nagfor*) 17642 # NAG Fortran compiler 17643 lt_prog_compiler_wl='-Wl,-Wl,,' 17644 lt_prog_compiler_pic='-PIC' 17645 lt_prog_compiler_static='-Bstatic' 17646 ;; 17647 tcc*) 17648 # Fabrice Bellard et al's Tiny C Compiler 17649 lt_prog_compiler_wl='-Wl,' 17650 lt_prog_compiler_pic='-fPIC' 17651 lt_prog_compiler_static='-static' 17652 ;; 17653 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 17654 # Portland Group compilers (*not* the Pentium gcc compiler, 17655 # which looks to be a dead project) 17656 lt_prog_compiler_wl='-Wl,' 17657 lt_prog_compiler_pic='-fpic' 17658 lt_prog_compiler_static='-Bstatic' 17659 ;; 17660 ccc*) 17661 lt_prog_compiler_wl='-Wl,' 17662 # All Alpha code is PIC. 17663 lt_prog_compiler_static='-non_shared' 17664 ;; 17665 xl* | bgxl* | bgf* | mpixl*) 17666 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 17667 lt_prog_compiler_wl='-Wl,' 17668 lt_prog_compiler_pic='-qpic' 17669 lt_prog_compiler_static='-qstaticlink' 17670 ;; 17671 *) 17672 case `$CC -V 2>&1 | sed 5q` in 17673 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 17674 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17675 lt_prog_compiler_pic='-KPIC' 17676 lt_prog_compiler_static='-Bstatic' 17677 lt_prog_compiler_wl='' 17678 ;; 17679 *Sun\ F* | *Sun*Fortran*) 17680 lt_prog_compiler_pic='-KPIC' 17681 lt_prog_compiler_static='-Bstatic' 17682 lt_prog_compiler_wl='-Qoption ld ' 17683 ;; 17684 *Sun\ C*) 17685 # Sun C 5.9 17686 lt_prog_compiler_pic='-KPIC' 17687 lt_prog_compiler_static='-Bstatic' 17688 lt_prog_compiler_wl='-Wl,' 17689 ;; 17690 *Intel*\ [CF]*Compiler*) 17691 lt_prog_compiler_wl='-Wl,' 17692 lt_prog_compiler_pic='-fPIC' 17693 lt_prog_compiler_static='-static' 17694 ;; 17695 *Portland\ Group*) 17696 lt_prog_compiler_wl='-Wl,' 17697 lt_prog_compiler_pic='-fpic' 17698 lt_prog_compiler_static='-Bstatic' 17699 ;; 17700 esac 17701 ;; 17702 esac 17703 ;; 17704 17705 newsos6) 17706 lt_prog_compiler_pic='-KPIC' 17707 lt_prog_compiler_static='-Bstatic' 17708 ;; 17709 17710 *nto* | *qnx*) 17711 # QNX uses GNU C++, but need to define -shared option too, otherwise 17712 # it will coredump. 17713 lt_prog_compiler_pic='-fPIC -shared' 17714 ;; 17715 17716 osf3* | osf4* | osf5*) 17717 lt_prog_compiler_wl='-Wl,' 17718 # All OSF/1 code is PIC. 17719 lt_prog_compiler_static='-non_shared' 17720 ;; 17721 17722 rdos*) 17723 lt_prog_compiler_static='-non_shared' 17724 ;; 17725 17726 solaris*) 17727 lt_prog_compiler_pic='-KPIC' 17728 lt_prog_compiler_static='-Bstatic' 17729 case $cc_basename in 17730 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 17731 lt_prog_compiler_wl='-Qoption ld ';; 17732 *) 17733 lt_prog_compiler_wl='-Wl,';; 17734 esac 17735 ;; 17736 17737 sunos4*) 17738 lt_prog_compiler_wl='-Qoption ld ' 17739 lt_prog_compiler_pic='-PIC' 17740 lt_prog_compiler_static='-Bstatic' 17741 ;; 17742 17743 sysv4 | sysv4.2uw2* | sysv4.3*) 17744 lt_prog_compiler_wl='-Wl,' 17745 lt_prog_compiler_pic='-KPIC' 17746 lt_prog_compiler_static='-Bstatic' 17747 ;; 17748 17749 sysv4*MP*) 17750 if test -d /usr/nec; then 17751 lt_prog_compiler_pic='-Kconform_pic' 17752 lt_prog_compiler_static='-Bstatic' 17753 fi 17754 ;; 17755 17756 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17757 lt_prog_compiler_wl='-Wl,' 17758 lt_prog_compiler_pic='-KPIC' 17759 lt_prog_compiler_static='-Bstatic' 17760 ;; 17761 17762 unicos*) 17763 lt_prog_compiler_wl='-Wl,' 17764 lt_prog_compiler_can_build_shared=no 17765 ;; 17766 17767 uts4*) 17768 lt_prog_compiler_pic='-pic' 17769 lt_prog_compiler_static='-Bstatic' 17770 ;; 17771 17772 *) 17773 lt_prog_compiler_can_build_shared=no 17774 ;; 17775 esac 17776 fi 17777 17778case $host_os in 17779 # For platforms that do not support PIC, -DPIC is meaningless: 17780 *djgpp*) 17781 lt_prog_compiler_pic= 17782 ;; 17783 *) 17784 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 17785 ;; 17786esac 17787 17788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 17789$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 17790if ${lt_cv_prog_compiler_pic+:} false; then : 17791 $as_echo_n "(cached) " >&6 17792else 17793 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 17794fi 17795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 17796$as_echo "$lt_cv_prog_compiler_pic" >&6; } 17797lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 17798 17799# 17800# Check to make sure the PIC flag actually works. 17801# 17802if test -n "$lt_prog_compiler_pic"; then 17803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 17804$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 17805if ${lt_cv_prog_compiler_pic_works+:} false; then : 17806 $as_echo_n "(cached) " >&6 17807else 17808 lt_cv_prog_compiler_pic_works=no 17809 ac_outfile=conftest.$ac_objext 17810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17811 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 17812 # Insert the option either (1) after the last *FLAGS variable, or 17813 # (2) before a word containing "conftest.", or (3) at the end. 17814 # Note that $ac_compile itself does not contain backslashes and begins 17815 # with a dollar sign (not a hyphen), so the echo should work correctly. 17816 # The option is referenced via a variable to avoid confusing sed. 17817 lt_compile=`echo "$ac_compile" | $SED \ 17818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17820 -e 's:$: $lt_compiler_flag:'` 17821 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17822 (eval "$lt_compile" 2>conftest.err) 17823 ac_status=$? 17824 cat conftest.err >&5 17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17826 if (exit $ac_status) && test -s "$ac_outfile"; then 17827 # The compiler can only warn and ignore the option if not recognized 17828 # So say no if there are warnings other than the usual output. 17829 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17830 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17831 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17832 lt_cv_prog_compiler_pic_works=yes 17833 fi 17834 fi 17835 $RM conftest* 17836 17837fi 17838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 17839$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 17840 17841if test yes = "$lt_cv_prog_compiler_pic_works"; then 17842 case $lt_prog_compiler_pic in 17843 "" | " "*) ;; 17844 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 17845 esac 17846else 17847 lt_prog_compiler_pic= 17848 lt_prog_compiler_can_build_shared=no 17849fi 17850 17851fi 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863# 17864# Check to make sure the static flag actually works. 17865# 17866wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 17867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17868$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17869if ${lt_cv_prog_compiler_static_works+:} false; then : 17870 $as_echo_n "(cached) " >&6 17871else 17872 lt_cv_prog_compiler_static_works=no 17873 save_LDFLAGS=$LDFLAGS 17874 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17875 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17876 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17877 # The linker can only warn and ignore the option if not recognized 17878 # So say no if there are warnings 17879 if test -s conftest.err; then 17880 # Append any errors to the config.log. 17881 cat conftest.err 1>&5 17882 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17884 if diff conftest.exp conftest.er2 >/dev/null; then 17885 lt_cv_prog_compiler_static_works=yes 17886 fi 17887 else 17888 lt_cv_prog_compiler_static_works=yes 17889 fi 17890 fi 17891 $RM -r conftest* 17892 LDFLAGS=$save_LDFLAGS 17893 17894fi 17895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 17896$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 17897 17898if test yes = "$lt_cv_prog_compiler_static_works"; then 17899 : 17900else 17901 lt_prog_compiler_static= 17902fi 17903 17904 17905 17906 17907 17908 17909 17910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17911$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17912if ${lt_cv_prog_compiler_c_o+:} false; then : 17913 $as_echo_n "(cached) " >&6 17914else 17915 lt_cv_prog_compiler_c_o=no 17916 $RM -r conftest 2>/dev/null 17917 mkdir conftest 17918 cd conftest 17919 mkdir out 17920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17921 17922 lt_compiler_flag="-o out/conftest2.$ac_objext" 17923 # Insert the option either (1) after the last *FLAGS variable, or 17924 # (2) before a word containing "conftest.", or (3) at the end. 17925 # Note that $ac_compile itself does not contain backslashes and begins 17926 # with a dollar sign (not a hyphen), so the echo should work correctly. 17927 lt_compile=`echo "$ac_compile" | $SED \ 17928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17930 -e 's:$: $lt_compiler_flag:'` 17931 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17932 (eval "$lt_compile" 2>out/conftest.err) 17933 ac_status=$? 17934 cat out/conftest.err >&5 17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17936 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17937 then 17938 # The compiler can only warn and ignore the option if not recognized 17939 # So say no if there are warnings 17940 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17941 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17942 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17943 lt_cv_prog_compiler_c_o=yes 17944 fi 17945 fi 17946 chmod u+w . 2>&5 17947 $RM conftest* 17948 # SGI C++ compiler will create directory out/ii_files/ for 17949 # template instantiation 17950 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17951 $RM out/* && rmdir out 17952 cd .. 17953 $RM -r conftest 17954 $RM conftest* 17955 17956fi 17957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 17958$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 17959 17960 17961 17962 17963 17964 17965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17966$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17967if ${lt_cv_prog_compiler_c_o+:} false; then : 17968 $as_echo_n "(cached) " >&6 17969else 17970 lt_cv_prog_compiler_c_o=no 17971 $RM -r conftest 2>/dev/null 17972 mkdir conftest 17973 cd conftest 17974 mkdir out 17975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17976 17977 lt_compiler_flag="-o out/conftest2.$ac_objext" 17978 # Insert the option either (1) after the last *FLAGS variable, or 17979 # (2) before a word containing "conftest.", or (3) at the end. 17980 # Note that $ac_compile itself does not contain backslashes and begins 17981 # with a dollar sign (not a hyphen), so the echo should work correctly. 17982 lt_compile=`echo "$ac_compile" | $SED \ 17983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17985 -e 's:$: $lt_compiler_flag:'` 17986 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17987 (eval "$lt_compile" 2>out/conftest.err) 17988 ac_status=$? 17989 cat out/conftest.err >&5 17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17991 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17992 then 17993 # The compiler can only warn and ignore the option if not recognized 17994 # So say no if there are warnings 17995 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17996 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17997 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17998 lt_cv_prog_compiler_c_o=yes 17999 fi 18000 fi 18001 chmod u+w . 2>&5 18002 $RM conftest* 18003 # SGI C++ compiler will create directory out/ii_files/ for 18004 # template instantiation 18005 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 18006 $RM out/* && rmdir out 18007 cd .. 18008 $RM -r conftest 18009 $RM conftest* 18010 18011fi 18012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 18013$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 18014 18015 18016 18017 18018hard_links=nottested 18019if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 18020 # do not overwrite the value of need_locks provided by the user 18021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 18022$as_echo_n "checking if we can lock with hard links... " >&6; } 18023 hard_links=yes 18024 $RM conftest* 18025 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18026 touch conftest.a 18027 ln conftest.a conftest.b 2>&5 || hard_links=no 18028 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 18030$as_echo "$hard_links" >&6; } 18031 if test no = "$hard_links"; then 18032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 18033$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 18034 need_locks=warn 18035 fi 18036else 18037 need_locks=no 18038fi 18039 18040 18041 18042 18043 18044 18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18046$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 18047 18048 runpath_var= 18049 allow_undefined_flag= 18050 always_export_symbols=no 18051 archive_cmds= 18052 archive_expsym_cmds= 18053 compiler_needs_object=no 18054 enable_shared_with_static_runtimes=no 18055 export_dynamic_flag_spec= 18056 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18057 hardcode_automatic=no 18058 hardcode_direct=no 18059 hardcode_direct_absolute=no 18060 hardcode_libdir_flag_spec= 18061 hardcode_libdir_separator= 18062 hardcode_minus_L=no 18063 hardcode_shlibpath_var=unsupported 18064 inherit_rpath=no 18065 link_all_deplibs=unknown 18066 module_cmds= 18067 module_expsym_cmds= 18068 old_archive_from_new_cmds= 18069 old_archive_from_expsyms_cmds= 18070 thread_safe_flag_spec= 18071 whole_archive_flag_spec= 18072 # include_expsyms should be a list of space-separated symbols to be *always* 18073 # included in the symbol list 18074 include_expsyms= 18075 # exclude_expsyms can be an extended regexp of symbols to exclude 18076 # it will be wrapped by ' (' and ')$', so one must not match beginning or 18077 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 18078 # as well as any symbol that contains 'd'. 18079 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 18080 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 18081 # platforms (ab)use it in PIC code, but their linkers get confused if 18082 # the symbol is explicitly referenced. Since portable code cannot 18083 # rely on this symbol name, it's probably fine to never include it in 18084 # preloaded symbol tables. 18085 # Exclude shared library initialization/finalization symbols. 18086 extract_expsyms_cmds= 18087 18088 case $host_os in 18089 cygwin* | mingw* | pw32* | cegcc*) 18090 # FIXME: the MSVC++ port hasn't been tested in a loooong time 18091 # When not using gcc, we currently assume that we are using 18092 # Microsoft Visual C++. 18093 if test yes != "$GCC"; then 18094 with_gnu_ld=no 18095 fi 18096 ;; 18097 interix*) 18098 # we just hope/assume this is gcc and not c89 (= MSVC++) 18099 with_gnu_ld=yes 18100 ;; 18101 openbsd* | bitrig*) 18102 with_gnu_ld=no 18103 ;; 18104 esac 18105 18106 ld_shlibs=yes 18107 18108 # On some targets, GNU ld is compatible enough with the native linker 18109 # that we're better off using the native interface for both. 18110 lt_use_gnu_ld_interface=no 18111 if test yes = "$with_gnu_ld"; then 18112 case $host_os in 18113 aix*) 18114 # The AIX port of GNU ld has always aspired to compatibility 18115 # with the native linker. However, as the warning in the GNU ld 18116 # block says, versions before 2.19.5* couldn't really create working 18117 # shared libraries, regardless of the interface used. 18118 case `$LD -v 2>&1` in 18119 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 18120 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 18121 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 18122 *) 18123 lt_use_gnu_ld_interface=yes 18124 ;; 18125 esac 18126 ;; 18127 *) 18128 lt_use_gnu_ld_interface=yes 18129 ;; 18130 esac 18131 fi 18132 18133 if test yes = "$lt_use_gnu_ld_interface"; then 18134 # If archive_cmds runs LD, not CC, wlarc should be empty 18135 wlarc='$wl' 18136 18137 # Set some defaults for GNU ld with shared library support. These 18138 # are reset later if shared libraries are not supported. Putting them 18139 # here allows them to be overridden if necessary. 18140 runpath_var=LD_RUN_PATH 18141 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18142 export_dynamic_flag_spec='$wl--export-dynamic' 18143 # ancient GNU ld didn't support --whole-archive et. al. 18144 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 18145 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 18146 else 18147 whole_archive_flag_spec= 18148 fi 18149 supports_anon_versioning=no 18150 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 18151 *GNU\ gold*) supports_anon_versioning=yes ;; 18152 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 18153 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 18154 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 18155 *\ 2.11.*) ;; # other 2.11 versions 18156 *) supports_anon_versioning=yes ;; 18157 esac 18158 18159 # See if GNU ld supports shared libraries. 18160 case $host_os in 18161 aix[3-9]*) 18162 # On AIX/PPC, the GNU linker is very broken 18163 if test ia64 != "$host_cpu"; then 18164 ld_shlibs=no 18165 cat <<_LT_EOF 1>&2 18166 18167*** Warning: the GNU linker, at least up to release 2.19, is reported 18168*** to be unable to reliably create shared libraries on AIX. 18169*** Therefore, libtool is disabling shared libraries support. If you 18170*** really care for shared libraries, you may want to install binutils 18171*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 18172*** You will then need to restart the configuration process. 18173 18174_LT_EOF 18175 fi 18176 ;; 18177 18178 amigaos*) 18179 case $host_cpu in 18180 powerpc) 18181 # see comment about AmigaOS4 .so support 18182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18183 archive_expsym_cmds='' 18184 ;; 18185 m68k) 18186 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)' 18187 hardcode_libdir_flag_spec='-L$libdir' 18188 hardcode_minus_L=yes 18189 ;; 18190 esac 18191 ;; 18192 18193 beos*) 18194 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 18195 allow_undefined_flag=unsupported 18196 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18197 # support --undefined. This deserves some investigation. FIXME 18198 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18199 else 18200 ld_shlibs=no 18201 fi 18202 ;; 18203 18204 cygwin* | mingw* | pw32* | cegcc*) 18205 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 18206 # as there is no search path for DLLs. 18207 hardcode_libdir_flag_spec='-L$libdir' 18208 export_dynamic_flag_spec='$wl--export-all-symbols' 18209 allow_undefined_flag=unsupported 18210 always_export_symbols=no 18211 enable_shared_with_static_runtimes=yes 18212 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' 18213 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 18214 18215 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 18216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18217 # If the export-symbols file already is a .def file, use it as 18218 # is; otherwise, prepend EXPORTS... 18219 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 18220 cp $export_symbols $output_objdir/$soname.def; 18221 else 18222 echo EXPORTS > $output_objdir/$soname.def; 18223 cat $export_symbols >> $output_objdir/$soname.def; 18224 fi~ 18225 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18226 else 18227 ld_shlibs=no 18228 fi 18229 ;; 18230 18231 haiku*) 18232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18233 link_all_deplibs=yes 18234 ;; 18235 18236 os2*) 18237 hardcode_libdir_flag_spec='-L$libdir' 18238 hardcode_minus_L=yes 18239 allow_undefined_flag=unsupported 18240 shrext_cmds=.dll 18241 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 18242 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 18243 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 18244 $ECHO EXPORTS >> $output_objdir/$libname.def~ 18245 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 18246 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 18247 emximp -o $lib $output_objdir/$libname.def' 18248 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 18249 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 18250 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 18251 $ECHO EXPORTS >> $output_objdir/$libname.def~ 18252 prefix_cmds="$SED"~ 18253 if test EXPORTS = "`$SED 1q $export_symbols`"; then 18254 prefix_cmds="$prefix_cmds -e 1d"; 18255 fi~ 18256 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 18257 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 18258 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 18259 emximp -o $lib $output_objdir/$libname.def' 18260 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 18261 enable_shared_with_static_runtimes=yes 18262 ;; 18263 18264 interix[3-9]*) 18265 hardcode_direct=no 18266 hardcode_shlibpath_var=no 18267 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 18268 export_dynamic_flag_spec='$wl-E' 18269 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 18270 # Instead, shared libraries are loaded at an image base (0x10000000 by 18271 # default) and relocated if they conflict, which is a slow very memory 18272 # consuming and fragmenting process. To avoid this, we pick a random, 18273 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 18274 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 18275 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 18276 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' 18277 ;; 18278 18279 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 18280 tmp_diet=no 18281 if test linux-dietlibc = "$host_os"; then 18282 case $cc_basename in 18283 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 18284 esac 18285 fi 18286 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 18287 && test no = "$tmp_diet" 18288 then 18289 tmp_addflag=' $pic_flag' 18290 tmp_sharedflag='-shared' 18291 case $cc_basename,$host_cpu in 18292 pgcc*) # Portland Group C compiler 18293 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' 18294 tmp_addflag=' $pic_flag' 18295 ;; 18296 pgf77* | pgf90* | pgf95* | pgfortran*) 18297 # Portland Group f77 and f90 compilers 18298 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' 18299 tmp_addflag=' $pic_flag -Mnomain' ;; 18300 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 18301 tmp_addflag=' -i_dynamic' ;; 18302 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 18303 tmp_addflag=' -i_dynamic -nofor_main' ;; 18304 ifc* | ifort*) # Intel Fortran compiler 18305 tmp_addflag=' -nofor_main' ;; 18306 lf95*) # Lahey Fortran 8.1 18307 whole_archive_flag_spec= 18308 tmp_sharedflag='--shared' ;; 18309 nagfor*) # NAGFOR 5.3 18310 tmp_sharedflag='-Wl,-shared' ;; 18311 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 18312 tmp_sharedflag='-qmkshrobj' 18313 tmp_addflag= ;; 18314 nvcc*) # Cuda Compiler Driver 2.2 18315 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' 18316 compiler_needs_object=yes 18317 ;; 18318 esac 18319 case `$CC -V 2>&1 | sed 5q` in 18320 *Sun\ C*) # Sun C 5.9 18321 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' 18322 compiler_needs_object=yes 18323 tmp_sharedflag='-G' ;; 18324 *Sun\ F*) # Sun Fortran 8.3 18325 tmp_sharedflag='-G' ;; 18326 esac 18327 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18328 18329 if test yes = "$supports_anon_versioning"; then 18330 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 18331 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18332 echo "local: *; };" >> $output_objdir/$libname.ver~ 18333 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 18334 fi 18335 18336 case $cc_basename in 18337 tcc*) 18338 export_dynamic_flag_spec='-rdynamic' 18339 ;; 18340 xlf* | bgf* | bgxlf* | mpixlf*) 18341 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 18342 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 18343 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18344 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 18345 if test yes = "$supports_anon_versioning"; then 18346 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 18347 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18348 echo "local: *; };" >> $output_objdir/$libname.ver~ 18349 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 18350 fi 18351 ;; 18352 esac 18353 else 18354 ld_shlibs=no 18355 fi 18356 ;; 18357 18358 netbsd*) 18359 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18360 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 18361 wlarc= 18362 else 18363 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18364 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18365 fi 18366 ;; 18367 18368 solaris*) 18369 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 18370 ld_shlibs=no 18371 cat <<_LT_EOF 1>&2 18372 18373*** Warning: The releases 2.8.* of the GNU linker cannot reliably 18374*** create shared libraries on Solaris systems. Therefore, libtool 18375*** is disabling shared libraries support. We urge you to upgrade GNU 18376*** binutils to release 2.9.1 or newer. Another option is to modify 18377*** your PATH or compiler configuration so that the native linker is 18378*** used, and then restart. 18379 18380_LT_EOF 18381 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 18382 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18383 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18384 else 18385 ld_shlibs=no 18386 fi 18387 ;; 18388 18389 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 18390 case `$LD -v 2>&1` in 18391 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 18392 ld_shlibs=no 18393 cat <<_LT_EOF 1>&2 18394 18395*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 18396*** reliably create shared libraries on SCO systems. Therefore, libtool 18397*** is disabling shared libraries support. We urge you to upgrade GNU 18398*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 18399*** your PATH or compiler configuration so that the native linker is 18400*** used, and then restart. 18401 18402_LT_EOF 18403 ;; 18404 *) 18405 # For security reasons, it is highly recommended that you always 18406 # use absolute paths for naming shared libraries, and exclude the 18407 # DT_RUNPATH tag from executables and libraries. But doing so 18408 # requires that you compile everything twice, which is a pain. 18409 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 18410 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18412 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18413 else 18414 ld_shlibs=no 18415 fi 18416 ;; 18417 esac 18418 ;; 18419 18420 sunos4*) 18421 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18422 wlarc= 18423 hardcode_direct=yes 18424 hardcode_shlibpath_var=no 18425 ;; 18426 18427 *) 18428 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 18429 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18430 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18431 else 18432 ld_shlibs=no 18433 fi 18434 ;; 18435 esac 18436 18437 if test no = "$ld_shlibs"; then 18438 runpath_var= 18439 hardcode_libdir_flag_spec= 18440 export_dynamic_flag_spec= 18441 whole_archive_flag_spec= 18442 fi 18443 else 18444 # PORTME fill in a description of your system's linker (not GNU ld) 18445 case $host_os in 18446 aix3*) 18447 allow_undefined_flag=unsupported 18448 always_export_symbols=yes 18449 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' 18450 # Note: this linker hardcodes the directories in LIBPATH if there 18451 # are no directories specified by -L. 18452 hardcode_minus_L=yes 18453 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 18454 # Neither direct hardcoding nor static linking is supported with a 18455 # broken collect2. 18456 hardcode_direct=unsupported 18457 fi 18458 ;; 18459 18460 aix[4-9]*) 18461 if test ia64 = "$host_cpu"; then 18462 # On IA64, the linker does run time linking by default, so we don't 18463 # have to do anything special. 18464 aix_use_runtimelinking=no 18465 exp_sym_flag='-Bexport' 18466 no_entry_flag= 18467 else 18468 # If we're using GNU nm, then we don't want the "-C" option. 18469 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 18470 # Without the "-l" option, or with the "-B" option, AIX nm treats 18471 # weak defined symbols like other global defined symbols, whereas 18472 # GNU nm marks them as "W". 18473 # While the 'weak' keyword is ignored in the Export File, we need 18474 # it in the Import File for the 'aix-soname' feature, so we have 18475 # to replace the "-B" option with "-P" for AIX nm. 18476 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 18477 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 18478 else 18479 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 18480 fi 18481 aix_use_runtimelinking=no 18482 18483 # Test if we are trying to use run time linking or normal 18484 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18485 # have runtime linking enabled, and use it for executables. 18486 # For shared libraries, we enable/disable runtime linking 18487 # depending on the kind of the shared library created - 18488 # when "with_aix_soname,aix_use_runtimelinking" is: 18489 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 18490 # "aix,yes" lib.so shared, rtl:yes, for executables 18491 # lib.a static archive 18492 # "both,no" lib.so.V(shr.o) shared, rtl:yes 18493 # lib.a(lib.so.V) shared, rtl:no, for executables 18494 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 18495 # lib.a(lib.so.V) shared, rtl:no 18496 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 18497 # lib.a static archive 18498 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 18499 for ld_flag in $LDFLAGS; do 18500 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 18501 aix_use_runtimelinking=yes 18502 break 18503 fi 18504 done 18505 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 18506 # With aix-soname=svr4, we create the lib.so.V shared archives only, 18507 # so we don't have lib.a shared libs to link our executables. 18508 # We have to force runtime linking in this case. 18509 aix_use_runtimelinking=yes 18510 LDFLAGS="$LDFLAGS -Wl,-brtl" 18511 fi 18512 ;; 18513 esac 18514 18515 exp_sym_flag='-bexport' 18516 no_entry_flag='-bnoentry' 18517 fi 18518 18519 # When large executables or shared objects are built, AIX ld can 18520 # have problems creating the table of contents. If linking a library 18521 # or program results in "error TOC overflow" add -mminimal-toc to 18522 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18523 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18524 18525 archive_cmds='' 18526 hardcode_direct=yes 18527 hardcode_direct_absolute=yes 18528 hardcode_libdir_separator=':' 18529 link_all_deplibs=yes 18530 file_list_spec='$wl-f,' 18531 case $with_aix_soname,$aix_use_runtimelinking in 18532 aix,*) ;; # traditional, no import file 18533 svr4,* | *,yes) # use import file 18534 # The Import File defines what to hardcode. 18535 hardcode_direct=no 18536 hardcode_direct_absolute=no 18537 ;; 18538 esac 18539 18540 if test yes = "$GCC"; then 18541 case $host_os in aix4.[012]|aix4.[012].*) 18542 # We only want to do this on AIX 4.2 and lower, the check 18543 # below for broken collect2 doesn't work under 4.3+ 18544 collect2name=`$CC -print-prog-name=collect2` 18545 if test -f "$collect2name" && 18546 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 18547 then 18548 # We have reworked collect2 18549 : 18550 else 18551 # We have old collect2 18552 hardcode_direct=unsupported 18553 # It fails to find uninstalled libraries when the uninstalled 18554 # path is not listed in the libpath. Setting hardcode_minus_L 18555 # to unsupported forces relinking 18556 hardcode_minus_L=yes 18557 hardcode_libdir_flag_spec='-L$libdir' 18558 hardcode_libdir_separator= 18559 fi 18560 ;; 18561 esac 18562 shared_flag='-shared' 18563 if test yes = "$aix_use_runtimelinking"; then 18564 shared_flag="$shared_flag "'$wl-G' 18565 fi 18566 # Need to ensure runtime linking is disabled for the traditional 18567 # shared library, or the linker may eventually find shared libraries 18568 # /with/ Import File - we do not want to mix them. 18569 shared_flag_aix='-shared' 18570 shared_flag_svr4='-shared $wl-G' 18571 else 18572 # not using gcc 18573 if test ia64 = "$host_cpu"; then 18574 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18575 # chokes on -Wl,-G. The following line is correct: 18576 shared_flag='-G' 18577 else 18578 if test yes = "$aix_use_runtimelinking"; then 18579 shared_flag='$wl-G' 18580 else 18581 shared_flag='$wl-bM:SRE' 18582 fi 18583 shared_flag_aix='$wl-bM:SRE' 18584 shared_flag_svr4='$wl-G' 18585 fi 18586 fi 18587 18588 export_dynamic_flag_spec='$wl-bexpall' 18589 # It seems that -bexpall does not export symbols beginning with 18590 # underscore (_), so it is better to generate a list of symbols to export. 18591 always_export_symbols=yes 18592 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 18593 # Warning - without using the other runtime loading flags (-brtl), 18594 # -berok will link without error, but may produce a broken library. 18595 allow_undefined_flag='-berok' 18596 # Determine the default libpath from the value encoded in an 18597 # empty executable. 18598 if test set = "${lt_cv_aix_libpath+set}"; then 18599 aix_libpath=$lt_cv_aix_libpath 18600else 18601 if ${lt_cv_aix_libpath_+:} false; then : 18602 $as_echo_n "(cached) " >&6 18603else 18604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18605/* end confdefs.h. */ 18606 18607int 18608main () 18609{ 18610 18611 ; 18612 return 0; 18613} 18614_ACEOF 18615if ac_fn_c_try_link "$LINENO"; then : 18616 18617 lt_aix_libpath_sed=' 18618 /Import File Strings/,/^$/ { 18619 /^0/ { 18620 s/^0 *\([^ ]*\) *$/\1/ 18621 p 18622 } 18623 }' 18624 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18625 # Check for a 64-bit object if we didn't find anything. 18626 if test -z "$lt_cv_aix_libpath_"; then 18627 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18628 fi 18629fi 18630rm -f core conftest.err conftest.$ac_objext \ 18631 conftest$ac_exeext conftest.$ac_ext 18632 if test -z "$lt_cv_aix_libpath_"; then 18633 lt_cv_aix_libpath_=/usr/lib:/lib 18634 fi 18635 18636fi 18637 18638 aix_libpath=$lt_cv_aix_libpath_ 18639fi 18640 18641 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 18642 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 18643 else 18644 if test ia64 = "$host_cpu"; then 18645 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 18646 allow_undefined_flag="-z nodefs" 18647 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" 18648 else 18649 # Determine the default libpath from the value encoded in an 18650 # empty executable. 18651 if test set = "${lt_cv_aix_libpath+set}"; then 18652 aix_libpath=$lt_cv_aix_libpath 18653else 18654 if ${lt_cv_aix_libpath_+:} false; then : 18655 $as_echo_n "(cached) " >&6 18656else 18657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18658/* end confdefs.h. */ 18659 18660int 18661main () 18662{ 18663 18664 ; 18665 return 0; 18666} 18667_ACEOF 18668if ac_fn_c_try_link "$LINENO"; then : 18669 18670 lt_aix_libpath_sed=' 18671 /Import File Strings/,/^$/ { 18672 /^0/ { 18673 s/^0 *\([^ ]*\) *$/\1/ 18674 p 18675 } 18676 }' 18677 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18678 # Check for a 64-bit object if we didn't find anything. 18679 if test -z "$lt_cv_aix_libpath_"; then 18680 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18681 fi 18682fi 18683rm -f core conftest.err conftest.$ac_objext \ 18684 conftest$ac_exeext conftest.$ac_ext 18685 if test -z "$lt_cv_aix_libpath_"; then 18686 lt_cv_aix_libpath_=/usr/lib:/lib 18687 fi 18688 18689fi 18690 18691 aix_libpath=$lt_cv_aix_libpath_ 18692fi 18693 18694 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 18695 # Warning - without using the other run time loading flags, 18696 # -berok will link without error, but may produce a broken library. 18697 no_undefined_flag=' $wl-bernotok' 18698 allow_undefined_flag=' $wl-berok' 18699 if test yes = "$with_gnu_ld"; then 18700 # We only use this code for GNU lds that support --whole-archive. 18701 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 18702 else 18703 # Exported symbols can be pulled into shared objects from archives 18704 whole_archive_flag_spec='$convenience' 18705 fi 18706 archive_cmds_need_lc=yes 18707 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 18708 # -brtl affects multiple linker settings, -berok does not and is overridden later 18709 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 18710 if test svr4 != "$with_aix_soname"; then 18711 # This is similar to how AIX traditionally builds its shared libraries. 18712 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 18713 fi 18714 if test aix != "$with_aix_soname"; then 18715 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 18716 else 18717 # used by -dlpreopen to get the symbols 18718 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 18719 fi 18720 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 18721 fi 18722 fi 18723 ;; 18724 18725 amigaos*) 18726 case $host_cpu in 18727 powerpc) 18728 # see comment about AmigaOS4 .so support 18729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18730 archive_expsym_cmds='' 18731 ;; 18732 m68k) 18733 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)' 18734 hardcode_libdir_flag_spec='-L$libdir' 18735 hardcode_minus_L=yes 18736 ;; 18737 esac 18738 ;; 18739 18740 bsdi[45]*) 18741 export_dynamic_flag_spec=-rdynamic 18742 ;; 18743 18744 cygwin* | mingw* | pw32* | cegcc*) 18745 # When not using gcc, we currently assume that we are using 18746 # Microsoft Visual C++. 18747 # hardcode_libdir_flag_spec is actually meaningless, as there is 18748 # no search path for DLLs. 18749 case $cc_basename in 18750 cl*) 18751 # Native MSVC 18752 hardcode_libdir_flag_spec=' ' 18753 allow_undefined_flag=unsupported 18754 always_export_symbols=yes 18755 file_list_spec='@' 18756 # Tell ltmain to make .lib files, not .a files. 18757 libext=lib 18758 # Tell ltmain to make .dll files, not .so files. 18759 shrext_cmds=.dll 18760 # FIXME: Setting linknames here is a bad hack. 18761 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 18762 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 18763 cp "$export_symbols" "$output_objdir/$soname.def"; 18764 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 18765 else 18766 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 18767 fi~ 18768 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 18769 linknames=' 18770 # The linker will not automatically build a static lib if we build a DLL. 18771 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 18772 enable_shared_with_static_runtimes=yes 18773 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 18774 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 18775 # Don't use ranlib 18776 old_postinstall_cmds='chmod 644 $oldlib' 18777 postlink_cmds='lt_outputfile="@OUTPUT@"~ 18778 lt_tool_outputfile="@TOOL_OUTPUT@"~ 18779 case $lt_outputfile in 18780 *.exe|*.EXE) ;; 18781 *) 18782 lt_outputfile=$lt_outputfile.exe 18783 lt_tool_outputfile=$lt_tool_outputfile.exe 18784 ;; 18785 esac~ 18786 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 18787 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 18788 $RM "$lt_outputfile.manifest"; 18789 fi' 18790 ;; 18791 *) 18792 # Assume MSVC wrapper 18793 hardcode_libdir_flag_spec=' ' 18794 allow_undefined_flag=unsupported 18795 # Tell ltmain to make .lib files, not .a files. 18796 libext=lib 18797 # Tell ltmain to make .dll files, not .so files. 18798 shrext_cmds=.dll 18799 # FIXME: Setting linknames here is a bad hack. 18800 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 18801 # The linker will automatically build a .lib file if we build a DLL. 18802 old_archive_from_new_cmds='true' 18803 # FIXME: Should let the user specify the lib program. 18804 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 18805 enable_shared_with_static_runtimes=yes 18806 ;; 18807 esac 18808 ;; 18809 18810 darwin* | rhapsody*) 18811 18812 18813 archive_cmds_need_lc=no 18814 hardcode_direct=no 18815 hardcode_automatic=yes 18816 hardcode_shlibpath_var=unsupported 18817 if test yes = "$lt_cv_ld_force_load"; then 18818 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\"`' 18819 18820 else 18821 whole_archive_flag_spec='' 18822 fi 18823 link_all_deplibs=yes 18824 allow_undefined_flag=$_lt_dar_allow_undefined 18825 case $cc_basename in 18826 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 18827 *) _lt_dar_can_shared=$GCC ;; 18828 esac 18829 if test yes = "$_lt_dar_can_shared"; then 18830 output_verbose_link_cmd=func_echo_all 18831 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 18832 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 18833 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" 18834 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" 18835 18836 else 18837 ld_shlibs=no 18838 fi 18839 18840 ;; 18841 18842 dgux*) 18843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18844 hardcode_libdir_flag_spec='-L$libdir' 18845 hardcode_shlibpath_var=no 18846 ;; 18847 18848 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18849 # support. Future versions do this automatically, but an explicit c++rt0.o 18850 # does not break anything, and helps significantly (at the cost of a little 18851 # extra space). 18852 freebsd2.2*) 18853 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18854 hardcode_libdir_flag_spec='-R$libdir' 18855 hardcode_direct=yes 18856 hardcode_shlibpath_var=no 18857 ;; 18858 18859 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18860 freebsd2.*) 18861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18862 hardcode_direct=yes 18863 hardcode_minus_L=yes 18864 hardcode_shlibpath_var=no 18865 ;; 18866 18867 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18868 freebsd* | dragonfly*) 18869 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18870 hardcode_libdir_flag_spec='-R$libdir' 18871 hardcode_direct=yes 18872 hardcode_shlibpath_var=no 18873 ;; 18874 18875 hpux9*) 18876 if test yes = "$GCC"; then 18877 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 18878 else 18879 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 18880 fi 18881 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 18882 hardcode_libdir_separator=: 18883 hardcode_direct=yes 18884 18885 # hardcode_minus_L: Not really in the search PATH, 18886 # but as the default location of the library. 18887 hardcode_minus_L=yes 18888 export_dynamic_flag_spec='$wl-E' 18889 ;; 18890 18891 hpux10*) 18892 if test yes,no = "$GCC,$with_gnu_ld"; then 18893 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18894 else 18895 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18896 fi 18897 if test no = "$with_gnu_ld"; then 18898 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 18899 hardcode_libdir_separator=: 18900 hardcode_direct=yes 18901 hardcode_direct_absolute=yes 18902 export_dynamic_flag_spec='$wl-E' 18903 # hardcode_minus_L: Not really in the search PATH, 18904 # but as the default location of the library. 18905 hardcode_minus_L=yes 18906 fi 18907 ;; 18908 18909 hpux11*) 18910 if test yes,no = "$GCC,$with_gnu_ld"; then 18911 case $host_cpu in 18912 hppa*64*) 18913 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 18914 ;; 18915 ia64*) 18916 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18917 ;; 18918 *) 18919 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18920 ;; 18921 esac 18922 else 18923 case $host_cpu in 18924 hppa*64*) 18925 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 18926 ;; 18927 ia64*) 18928 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18929 ;; 18930 *) 18931 18932 # Older versions of the 11.00 compiler do not understand -b yet 18933 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 18934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 18935$as_echo_n "checking if $CC understands -b... " >&6; } 18936if ${lt_cv_prog_compiler__b+:} false; then : 18937 $as_echo_n "(cached) " >&6 18938else 18939 lt_cv_prog_compiler__b=no 18940 save_LDFLAGS=$LDFLAGS 18941 LDFLAGS="$LDFLAGS -b" 18942 echo "$lt_simple_link_test_code" > conftest.$ac_ext 18943 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 18944 # The linker can only warn and ignore the option if not recognized 18945 # So say no if there are warnings 18946 if test -s conftest.err; then 18947 # Append any errors to the config.log. 18948 cat conftest.err 1>&5 18949 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 18950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18951 if diff conftest.exp conftest.er2 >/dev/null; then 18952 lt_cv_prog_compiler__b=yes 18953 fi 18954 else 18955 lt_cv_prog_compiler__b=yes 18956 fi 18957 fi 18958 $RM -r conftest* 18959 LDFLAGS=$save_LDFLAGS 18960 18961fi 18962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 18963$as_echo "$lt_cv_prog_compiler__b" >&6; } 18964 18965if test yes = "$lt_cv_prog_compiler__b"; then 18966 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18967else 18968 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18969fi 18970 18971 ;; 18972 esac 18973 fi 18974 if test no = "$with_gnu_ld"; then 18975 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 18976 hardcode_libdir_separator=: 18977 18978 case $host_cpu in 18979 hppa*64*|ia64*) 18980 hardcode_direct=no 18981 hardcode_shlibpath_var=no 18982 ;; 18983 *) 18984 hardcode_direct=yes 18985 hardcode_direct_absolute=yes 18986 export_dynamic_flag_spec='$wl-E' 18987 18988 # hardcode_minus_L: Not really in the search PATH, 18989 # but as the default location of the library. 18990 hardcode_minus_L=yes 18991 ;; 18992 esac 18993 fi 18994 ;; 18995 18996 irix5* | irix6* | nonstopux*) 18997 if test yes = "$GCC"; then 18998 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' 18999 # Try to use the -exported_symbol ld option, if it does not 19000 # work, assume that -exports_file does not work either and 19001 # implicitly export all symbols. 19002 # This should be the same for all languages, so no per-tag cache variable. 19003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 19004$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 19005if ${lt_cv_irix_exported_symbol+:} false; then : 19006 $as_echo_n "(cached) " >&6 19007else 19008 save_LDFLAGS=$LDFLAGS 19009 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 19010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19011/* end confdefs.h. */ 19012int foo (void) { return 0; } 19013_ACEOF 19014if ac_fn_c_try_link "$LINENO"; then : 19015 lt_cv_irix_exported_symbol=yes 19016else 19017 lt_cv_irix_exported_symbol=no 19018fi 19019rm -f core conftest.err conftest.$ac_objext \ 19020 conftest$ac_exeext conftest.$ac_ext 19021 LDFLAGS=$save_LDFLAGS 19022fi 19023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 19024$as_echo "$lt_cv_irix_exported_symbol" >&6; } 19025 if test yes = "$lt_cv_irix_exported_symbol"; then 19026 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' 19027 fi 19028 else 19029 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' 19030 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' 19031 fi 19032 archive_cmds_need_lc='no' 19033 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19034 hardcode_libdir_separator=: 19035 inherit_rpath=yes 19036 link_all_deplibs=yes 19037 ;; 19038 19039 linux*) 19040 case $cc_basename in 19041 tcc*) 19042 # Fabrice Bellard et al's Tiny C Compiler 19043 ld_shlibs=yes 19044 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19045 ;; 19046 esac 19047 ;; 19048 19049 netbsd*) 19050 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19051 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 19052 else 19053 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 19054 fi 19055 hardcode_libdir_flag_spec='-R$libdir' 19056 hardcode_direct=yes 19057 hardcode_shlibpath_var=no 19058 ;; 19059 19060 newsos6) 19061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19062 hardcode_direct=yes 19063 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19064 hardcode_libdir_separator=: 19065 hardcode_shlibpath_var=no 19066 ;; 19067 19068 *nto* | *qnx*) 19069 ;; 19070 19071 openbsd* | bitrig*) 19072 if test -f /usr/libexec/ld.so; then 19073 hardcode_direct=yes 19074 hardcode_shlibpath_var=no 19075 hardcode_direct_absolute=yes 19076 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 19077 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19078 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 19079 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 19080 export_dynamic_flag_spec='$wl-E' 19081 else 19082 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19083 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 19084 fi 19085 else 19086 ld_shlibs=no 19087 fi 19088 ;; 19089 19090 os2*) 19091 hardcode_libdir_flag_spec='-L$libdir' 19092 hardcode_minus_L=yes 19093 allow_undefined_flag=unsupported 19094 shrext_cmds=.dll 19095 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19096 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19097 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19098 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19099 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 19100 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19101 emximp -o $lib $output_objdir/$libname.def' 19102 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19103 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19104 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19105 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19106 prefix_cmds="$SED"~ 19107 if test EXPORTS = "`$SED 1q $export_symbols`"; then 19108 prefix_cmds="$prefix_cmds -e 1d"; 19109 fi~ 19110 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 19111 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 19112 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19113 emximp -o $lib $output_objdir/$libname.def' 19114 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 19115 enable_shared_with_static_runtimes=yes 19116 ;; 19117 19118 osf3*) 19119 if test yes = "$GCC"; then 19120 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 19121 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' 19122 else 19123 allow_undefined_flag=' -expect_unresolved \*' 19124 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' 19125 fi 19126 archive_cmds_need_lc='no' 19127 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19128 hardcode_libdir_separator=: 19129 ;; 19130 19131 osf4* | osf5*) # as osf3* with the addition of -msym flag 19132 if test yes = "$GCC"; then 19133 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 19134 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' 19135 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19136 else 19137 allow_undefined_flag=' -expect_unresolved \*' 19138 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' 19139 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~ 19140 $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' 19141 19142 # Both c and cxx compiler support -rpath directly 19143 hardcode_libdir_flag_spec='-rpath $libdir' 19144 fi 19145 archive_cmds_need_lc='no' 19146 hardcode_libdir_separator=: 19147 ;; 19148 19149 solaris*) 19150 no_undefined_flag=' -z defs' 19151 if test yes = "$GCC"; then 19152 wlarc='$wl' 19153 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 19154 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19155 $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' 19156 else 19157 case `$CC -V 2>&1` in 19158 *"Compilers 5.0"*) 19159 wlarc='' 19160 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 19161 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19162 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 19163 ;; 19164 *) 19165 wlarc='$wl' 19166 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 19167 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19168 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 19169 ;; 19170 esac 19171 fi 19172 hardcode_libdir_flag_spec='-R$libdir' 19173 hardcode_shlibpath_var=no 19174 case $host_os in 19175 solaris2.[0-5] | solaris2.[0-5].*) ;; 19176 *) 19177 # The compiler driver will combine and reorder linker options, 19178 # but understands '-z linker_flag'. GCC discards it without '$wl', 19179 # but is careful enough not to reorder. 19180 # Supported since Solaris 2.6 (maybe 2.5.1?) 19181 if test yes = "$GCC"; then 19182 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 19183 else 19184 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 19185 fi 19186 ;; 19187 esac 19188 link_all_deplibs=yes 19189 ;; 19190 19191 sunos4*) 19192 if test sequent = "$host_vendor"; then 19193 # Use $CC to link under sequent, because it throws in some extra .o 19194 # files that make .init and .fini sections work. 19195 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 19196 else 19197 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 19198 fi 19199 hardcode_libdir_flag_spec='-L$libdir' 19200 hardcode_direct=yes 19201 hardcode_minus_L=yes 19202 hardcode_shlibpath_var=no 19203 ;; 19204 19205 sysv4) 19206 case $host_vendor in 19207 sni) 19208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19209 hardcode_direct=yes # is this really true??? 19210 ;; 19211 siemens) 19212 ## LD is ld it makes a PLAMLIB 19213 ## CC just makes a GrossModule. 19214 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 19215 reload_cmds='$CC -r -o $output$reload_objs' 19216 hardcode_direct=no 19217 ;; 19218 motorola) 19219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19220 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 19221 ;; 19222 esac 19223 runpath_var='LD_RUN_PATH' 19224 hardcode_shlibpath_var=no 19225 ;; 19226 19227 sysv4.3*) 19228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19229 hardcode_shlibpath_var=no 19230 export_dynamic_flag_spec='-Bexport' 19231 ;; 19232 19233 sysv4*MP*) 19234 if test -d /usr/nec; then 19235 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19236 hardcode_shlibpath_var=no 19237 runpath_var=LD_RUN_PATH 19238 hardcode_runpath_var=yes 19239 ld_shlibs=yes 19240 fi 19241 ;; 19242 19243 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 19244 no_undefined_flag='$wl-z,text' 19245 archive_cmds_need_lc=no 19246 hardcode_shlibpath_var=no 19247 runpath_var='LD_RUN_PATH' 19248 19249 if test yes = "$GCC"; then 19250 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19251 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19252 else 19253 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19254 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19255 fi 19256 ;; 19257 19258 sysv5* | sco3.2v5* | sco5v6*) 19259 # Note: We CANNOT use -z defs as we might desire, because we do not 19260 # link with -lc, and that would cause any symbols used from libc to 19261 # always be unresolved, which means just about no library would 19262 # ever link correctly. If we're not using GNU ld we use -z text 19263 # though, which does catch some bad symbols but isn't as heavy-handed 19264 # as -z defs. 19265 no_undefined_flag='$wl-z,text' 19266 allow_undefined_flag='$wl-z,nodefs' 19267 archive_cmds_need_lc=no 19268 hardcode_shlibpath_var=no 19269 hardcode_libdir_flag_spec='$wl-R,$libdir' 19270 hardcode_libdir_separator=':' 19271 link_all_deplibs=yes 19272 export_dynamic_flag_spec='$wl-Bexport' 19273 runpath_var='LD_RUN_PATH' 19274 19275 if test yes = "$GCC"; then 19276 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19277 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19278 else 19279 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19280 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19281 fi 19282 ;; 19283 19284 uts4*) 19285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19286 hardcode_libdir_flag_spec='-L$libdir' 19287 hardcode_shlibpath_var=no 19288 ;; 19289 19290 *) 19291 ld_shlibs=no 19292 ;; 19293 esac 19294 19295 if test sni = "$host_vendor"; then 19296 case $host in 19297 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 19298 export_dynamic_flag_spec='$wl-Blargedynsym' 19299 ;; 19300 esac 19301 fi 19302 fi 19303 19304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 19305$as_echo "$ld_shlibs" >&6; } 19306test no = "$ld_shlibs" && can_build_shared=no 19307 19308with_gnu_ld=$with_gnu_ld 19309 19310 19311 19312 19313 19314 19315 19316 19317 19318 19319 19320 19321 19322 19323 19324# 19325# Do we need to explicitly link libc? 19326# 19327case "x$archive_cmds_need_lc" in 19328x|xyes) 19329 # Assume -lc should be added 19330 archive_cmds_need_lc=yes 19331 19332 if test yes,yes = "$GCC,$enable_shared"; then 19333 case $archive_cmds in 19334 *'~'*) 19335 # FIXME: we may have to deal with multi-command sequences. 19336 ;; 19337 '$CC '*) 19338 # Test whether the compiler implicitly links with -lc since on some 19339 # systems, -lgcc has to come before -lc. If gcc already passes -lc 19340 # to ld, don't add -lc before -lgcc. 19341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 19342$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 19343if ${lt_cv_archive_cmds_need_lc+:} false; then : 19344 $as_echo_n "(cached) " >&6 19345else 19346 $RM conftest* 19347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19348 19349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 19350 (eval $ac_compile) 2>&5 19351 ac_status=$? 19352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19353 test $ac_status = 0; } 2>conftest.err; then 19354 soname=conftest 19355 lib=conftest 19356 libobjs=conftest.$ac_objext 19357 deplibs= 19358 wl=$lt_prog_compiler_wl 19359 pic_flag=$lt_prog_compiler_pic 19360 compiler_flags=-v 19361 linker_flags=-v 19362 verstring= 19363 output_objdir=. 19364 libname=conftest 19365 lt_save_allow_undefined_flag=$allow_undefined_flag 19366 allow_undefined_flag= 19367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 19368 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 19369 ac_status=$? 19370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19371 test $ac_status = 0; } 19372 then 19373 lt_cv_archive_cmds_need_lc=no 19374 else 19375 lt_cv_archive_cmds_need_lc=yes 19376 fi 19377 allow_undefined_flag=$lt_save_allow_undefined_flag 19378 else 19379 cat conftest.err 1>&5 19380 fi 19381 $RM conftest* 19382 19383fi 19384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 19385$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 19386 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 19387 ;; 19388 esac 19389 fi 19390 ;; 19391esac 19392 19393 19394 19395 19396 19397 19398 19399 19400 19401 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413 19414 19415 19416 19417 19418 19419 19420 19421 19422 19423 19424 19425 19426 19427 19428 19429 19430 19431 19432 19433 19434 19435 19436 19437 19438 19439 19440 19441 19442 19443 19444 19445 19446 19447 19448 19449 19450 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468 19469 19470 19471 19472 19473 19474 19475 19476 19477 19478 19479 19480 19481 19482 19483 19484 19485 19486 19487 19488 19489 19490 19491 19492 19493 19494 19495 19496 19497 19498 19499 19500 19501 19502 19503 19504 19505 19506 19507 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 19522 19523 19524 19525 19526 19527 19528 19529 19530 19531 19532 19533 19534 19535 19536 19537 19538 19539 19540 19541 19542 19543 19544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 19545$as_echo_n "checking dynamic linker characteristics... " >&6; } 19546 19547if test yes = "$GCC"; then 19548 case $host_os in 19549 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 19550 *) lt_awk_arg='/^libraries:/' ;; 19551 esac 19552 case $host_os in 19553 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 19554 *) lt_sed_strip_eq='s|=/|/|g' ;; 19555 esac 19556 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 19557 case $lt_search_path_spec in 19558 *\;*) 19559 # if the path contains ";" then we assume it to be the separator 19560 # otherwise default to the standard path separator (i.e. ":") - it is 19561 # assumed that no part of a normal pathname contains ";" but that should 19562 # okay in the real world where ";" in dirpaths is itself problematic. 19563 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 19564 ;; 19565 *) 19566 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 19567 ;; 19568 esac 19569 # Ok, now we have the path, separated by spaces, we can step through it 19570 # and add multilib dir if necessary... 19571 lt_tmp_lt_search_path_spec= 19572 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 19573 # ...but if some path component already ends with the multilib dir we assume 19574 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 19575 case "$lt_multi_os_dir; $lt_search_path_spec " in 19576 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 19577 lt_multi_os_dir= 19578 ;; 19579 esac 19580 for lt_sys_path in $lt_search_path_spec; do 19581 if test -d "$lt_sys_path$lt_multi_os_dir"; then 19582 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 19583 elif test -n "$lt_multi_os_dir"; then 19584 test -d "$lt_sys_path" && \ 19585 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 19586 fi 19587 done 19588 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 19589BEGIN {RS = " "; FS = "/|\n";} { 19590 lt_foo = ""; 19591 lt_count = 0; 19592 for (lt_i = NF; lt_i > 0; lt_i--) { 19593 if ($lt_i != "" && $lt_i != ".") { 19594 if ($lt_i == "..") { 19595 lt_count++; 19596 } else { 19597 if (lt_count == 0) { 19598 lt_foo = "/" $lt_i lt_foo; 19599 } else { 19600 lt_count--; 19601 } 19602 } 19603 } 19604 } 19605 if (lt_foo != "") { lt_freq[lt_foo]++; } 19606 if (lt_freq[lt_foo] == 1) { print lt_foo; } 19607}'` 19608 # AWK program above erroneously prepends '/' to C:/dos/paths 19609 # for these hosts. 19610 case $host_os in 19611 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 19612 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 19613 esac 19614 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 19615else 19616 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 19617fi 19618library_names_spec= 19619libname_spec='lib$name' 19620soname_spec= 19621shrext_cmds=.so 19622postinstall_cmds= 19623postuninstall_cmds= 19624finish_cmds= 19625finish_eval= 19626shlibpath_var= 19627shlibpath_overrides_runpath=unknown 19628version_type=none 19629dynamic_linker="$host_os ld.so" 19630sys_lib_dlsearch_path_spec="/lib /usr/lib" 19631need_lib_prefix=unknown 19632hardcode_into_libs=no 19633 19634# when you set need_version to no, make sure it does not cause -set_version 19635# flags to be left without arguments 19636need_version=unknown 19637 19638 19639 19640case $host_os in 19641aix3*) 19642 version_type=linux # correct to gnu/linux during the next big refactor 19643 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 19644 shlibpath_var=LIBPATH 19645 19646 # AIX 3 has no versioning support, so we append a major version to the name. 19647 soname_spec='$libname$release$shared_ext$major' 19648 ;; 19649 19650aix[4-9]*) 19651 version_type=linux # correct to gnu/linux during the next big refactor 19652 need_lib_prefix=no 19653 need_version=no 19654 hardcode_into_libs=yes 19655 if test ia64 = "$host_cpu"; then 19656 # AIX 5 supports IA64 19657 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 19658 shlibpath_var=LD_LIBRARY_PATH 19659 else 19660 # With GCC up to 2.95.x, collect2 would create an import file 19661 # for dependence libraries. The import file would start with 19662 # the line '#! .'. This would cause the generated library to 19663 # depend on '.', always an invalid library. This was fixed in 19664 # development snapshots of GCC prior to 3.0. 19665 case $host_os in 19666 aix4 | aix4.[01] | aix4.[01].*) 19667 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 19668 echo ' yes ' 19669 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 19670 : 19671 else 19672 can_build_shared=no 19673 fi 19674 ;; 19675 esac 19676 # Using Import Files as archive members, it is possible to support 19677 # filename-based versioning of shared library archives on AIX. While 19678 # this would work for both with and without runtime linking, it will 19679 # prevent static linking of such archives. So we do filename-based 19680 # shared library versioning with .so extension only, which is used 19681 # when both runtime linking and shared linking is enabled. 19682 # Unfortunately, runtime linking may impact performance, so we do 19683 # not want this to be the default eventually. Also, we use the 19684 # versioned .so libs for executables only if there is the -brtl 19685 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 19686 # To allow for filename-based versioning support, we need to create 19687 # libNAME.so.V as an archive file, containing: 19688 # *) an Import File, referring to the versioned filename of the 19689 # archive as well as the shared archive member, telling the 19690 # bitwidth (32 or 64) of that shared object, and providing the 19691 # list of exported symbols of that shared object, eventually 19692 # decorated with the 'weak' keyword 19693 # *) the shared object with the F_LOADONLY flag set, to really avoid 19694 # it being seen by the linker. 19695 # At run time we better use the real file rather than another symlink, 19696 # but for link time we create the symlink libNAME.so -> libNAME.so.V 19697 19698 case $with_aix_soname,$aix_use_runtimelinking in 19699 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 19700 # soname into executable. Probably we can add versioning support to 19701 # collect2, so additional links can be useful in future. 19702 aix,yes) # traditional libtool 19703 dynamic_linker='AIX unversionable lib.so' 19704 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 19705 # instead of lib<name>.a to let people know that these are not 19706 # typical AIX shared libraries. 19707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19708 ;; 19709 aix,no) # traditional AIX only 19710 dynamic_linker='AIX lib.a(lib.so.V)' 19711 # We preserve .a as extension for shared libraries through AIX4.2 19712 # and later when we are not doing run time linking. 19713 library_names_spec='$libname$release.a $libname.a' 19714 soname_spec='$libname$release$shared_ext$major' 19715 ;; 19716 svr4,*) # full svr4 only 19717 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 19718 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 19719 # We do not specify a path in Import Files, so LIBPATH fires. 19720 shlibpath_overrides_runpath=yes 19721 ;; 19722 *,yes) # both, prefer svr4 19723 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 19724 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 19725 # unpreferred sharedlib libNAME.a needs extra handling 19726 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 19727 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 19728 # We do not specify a path in Import Files, so LIBPATH fires. 19729 shlibpath_overrides_runpath=yes 19730 ;; 19731 *,no) # both, prefer aix 19732 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 19733 library_names_spec='$libname$release.a $libname.a' 19734 soname_spec='$libname$release$shared_ext$major' 19735 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 19736 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 19737 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 19738 ;; 19739 esac 19740 shlibpath_var=LIBPATH 19741 fi 19742 ;; 19743 19744amigaos*) 19745 case $host_cpu in 19746 powerpc) 19747 # Since July 2007 AmigaOS4 officially supports .so libraries. 19748 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 19749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19750 ;; 19751 m68k) 19752 library_names_spec='$libname.ixlibrary $libname.a' 19753 # Create ${libname}_ixlibrary.a entries in /sys/libs. 19754 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 19755 ;; 19756 esac 19757 ;; 19758 19759beos*) 19760 library_names_spec='$libname$shared_ext' 19761 dynamic_linker="$host_os ld.so" 19762 shlibpath_var=LIBRARY_PATH 19763 ;; 19764 19765bsdi[45]*) 19766 version_type=linux # correct to gnu/linux during the next big refactor 19767 need_version=no 19768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19769 soname_spec='$libname$release$shared_ext$major' 19770 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19771 shlibpath_var=LD_LIBRARY_PATH 19772 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19773 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19774 # the default ld.so.conf also contains /usr/contrib/lib and 19775 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19776 # libtool to hard-code these into programs 19777 ;; 19778 19779cygwin* | mingw* | pw32* | cegcc*) 19780 version_type=windows 19781 shrext_cmds=.dll 19782 need_version=no 19783 need_lib_prefix=no 19784 19785 case $GCC,$cc_basename in 19786 yes,*) 19787 # gcc 19788 library_names_spec='$libname.dll.a' 19789 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19790 postinstall_cmds='base_file=`basename \$file`~ 19791 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 19792 dldir=$destdir/`dirname \$dlpath`~ 19793 test -d \$dldir || mkdir -p \$dldir~ 19794 $install_prog $dir/$dlname \$dldir/$dlname~ 19795 chmod a+x \$dldir/$dlname~ 19796 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 19797 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 19798 fi' 19799 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19800 dlpath=$dir/\$dldll~ 19801 $RM \$dlpath' 19802 shlibpath_overrides_runpath=yes 19803 19804 case $host_os in 19805 cygwin*) 19806 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19807 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19808 19809 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 19810 ;; 19811 mingw* | cegcc*) 19812 # MinGW DLLs use traditional 'lib' prefix 19813 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19814 ;; 19815 pw32*) 19816 # pw32 DLLs use 'pw' prefix rather than 'lib' 19817 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19818 ;; 19819 esac 19820 dynamic_linker='Win32 ld.exe' 19821 ;; 19822 19823 *,cl*) 19824 # Native MSVC 19825 libname_spec='$name' 19826 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19827 library_names_spec='$libname.dll.lib' 19828 19829 case $build_os in 19830 mingw*) 19831 sys_lib_search_path_spec= 19832 lt_save_ifs=$IFS 19833 IFS=';' 19834 for lt_path in $LIB 19835 do 19836 IFS=$lt_save_ifs 19837 # Let DOS variable expansion print the short 8.3 style file name. 19838 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 19839 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 19840 done 19841 IFS=$lt_save_ifs 19842 # Convert to MSYS style. 19843 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 19844 ;; 19845 cygwin*) 19846 # Convert to unix form, then to dos form, then back to unix form 19847 # but this time dos style (no spaces!) so that the unix form looks 19848 # like /cygdrive/c/PROGRA~1:/cygdr... 19849 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 19850 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 19851 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19852 ;; 19853 *) 19854 sys_lib_search_path_spec=$LIB 19855 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 19856 # It is most probably a Windows format PATH. 19857 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19858 else 19859 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19860 fi 19861 # FIXME: find the short name or the path components, as spaces are 19862 # common. (e.g. "Program Files" -> "PROGRA~1") 19863 ;; 19864 esac 19865 19866 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19867 postinstall_cmds='base_file=`basename \$file`~ 19868 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 19869 dldir=$destdir/`dirname \$dlpath`~ 19870 test -d \$dldir || mkdir -p \$dldir~ 19871 $install_prog $dir/$dlname \$dldir/$dlname' 19872 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19873 dlpath=$dir/\$dldll~ 19874 $RM \$dlpath' 19875 shlibpath_overrides_runpath=yes 19876 dynamic_linker='Win32 link.exe' 19877 ;; 19878 19879 *) 19880 # Assume MSVC wrapper 19881 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 19882 dynamic_linker='Win32 ld.exe' 19883 ;; 19884 esac 19885 # FIXME: first we should search . and the directory the executable is in 19886 shlibpath_var=PATH 19887 ;; 19888 19889darwin* | rhapsody*) 19890 dynamic_linker="$host_os dyld" 19891 version_type=darwin 19892 need_lib_prefix=no 19893 need_version=no 19894 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext' 19895 soname_spec='$libname$release$major$shared_ext' 19896 shlibpath_overrides_runpath=yes 19897 shlibpath_var=DYLD_LIBRARY_PATH 19898 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' 19899 19900 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 19901 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19902 ;; 19903 19904dgux*) 19905 version_type=linux # correct to gnu/linux during the next big refactor 19906 need_lib_prefix=no 19907 need_version=no 19908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19909 soname_spec='$libname$release$shared_ext$major' 19910 shlibpath_var=LD_LIBRARY_PATH 19911 ;; 19912 19913freebsd* | dragonfly*) 19914 # DragonFly does not have aout. When/if they implement a new 19915 # versioning mechanism, adjust this. 19916 if test -x /usr/bin/objformat; then 19917 objformat=`/usr/bin/objformat` 19918 else 19919 case $host_os in 19920 freebsd[23].*) objformat=aout ;; 19921 *) objformat=elf ;; 19922 esac 19923 fi 19924 # Handle Gentoo/FreeBSD as it was Linux 19925 case $host_vendor in 19926 gentoo) 19927 version_type=linux ;; 19928 *) 19929 version_type=freebsd-$objformat ;; 19930 esac 19931 19932 case $version_type in 19933 freebsd-elf*) 19934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19935 soname_spec='$libname$release$shared_ext$major' 19936 need_version=no 19937 need_lib_prefix=no 19938 ;; 19939 freebsd-*) 19940 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 19941 need_version=yes 19942 ;; 19943 linux) 19944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19945 soname_spec='${libname}${release}${shared_ext}$major' 19946 need_lib_prefix=no 19947 need_version=no 19948 ;; 19949 esac 19950 shlibpath_var=LD_LIBRARY_PATH 19951 case $host_os in 19952 freebsd2.*) 19953 shlibpath_overrides_runpath=yes 19954 ;; 19955 freebsd3.[01]* | freebsdelf3.[01]*) 19956 shlibpath_overrides_runpath=yes 19957 hardcode_into_libs=yes 19958 ;; 19959 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 19960 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 19961 shlibpath_overrides_runpath=no 19962 hardcode_into_libs=yes 19963 ;; 19964 *) # from 4.6 on, and DragonFly 19965 shlibpath_overrides_runpath=yes 19966 hardcode_into_libs=yes 19967 ;; 19968 esac 19969 ;; 19970 19971haiku*) 19972 version_type=linux # correct to gnu/linux during the next big refactor 19973 need_lib_prefix=no 19974 need_version=no 19975 dynamic_linker="$host_os runtime_loader" 19976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19977 soname_spec='$libname$release$shared_ext$major' 19978 shlibpath_var=LIBRARY_PATH 19979 shlibpath_overrides_runpath=no 19980 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 19981 hardcode_into_libs=yes 19982 ;; 19983 19984hpux9* | hpux10* | hpux11*) 19985 # Give a soname corresponding to the major version so that dld.sl refuses to 19986 # link against other versions. 19987 version_type=sunos 19988 need_lib_prefix=no 19989 need_version=no 19990 case $host_cpu in 19991 ia64*) 19992 shrext_cmds='.so' 19993 hardcode_into_libs=yes 19994 dynamic_linker="$host_os dld.so" 19995 shlibpath_var=LD_LIBRARY_PATH 19996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19998 soname_spec='$libname$release$shared_ext$major' 19999 if test 32 = "$HPUX_IA64_MODE"; then 20000 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 20001 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 20002 else 20003 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 20004 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 20005 fi 20006 ;; 20007 hppa*64*) 20008 shrext_cmds='.sl' 20009 hardcode_into_libs=yes 20010 dynamic_linker="$host_os dld.sl" 20011 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 20012 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20014 soname_spec='$libname$release$shared_ext$major' 20015 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 20016 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20017 ;; 20018 *) 20019 shrext_cmds='.sl' 20020 dynamic_linker="$host_os dld.sl" 20021 shlibpath_var=SHLIB_PATH 20022 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 20023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20024 soname_spec='$libname$release$shared_ext$major' 20025 ;; 20026 esac 20027 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 20028 postinstall_cmds='chmod 555 $lib' 20029 # or fails outright, so override atomically: 20030 install_override_mode=555 20031 ;; 20032 20033interix[3-9]*) 20034 version_type=linux # correct to gnu/linux during the next big refactor 20035 need_lib_prefix=no 20036 need_version=no 20037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20038 soname_spec='$libname$release$shared_ext$major' 20039 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 20040 shlibpath_var=LD_LIBRARY_PATH 20041 shlibpath_overrides_runpath=no 20042 hardcode_into_libs=yes 20043 ;; 20044 20045irix5* | irix6* | nonstopux*) 20046 case $host_os in 20047 nonstopux*) version_type=nonstopux ;; 20048 *) 20049 if test yes = "$lt_cv_prog_gnu_ld"; then 20050 version_type=linux # correct to gnu/linux during the next big refactor 20051 else 20052 version_type=irix 20053 fi ;; 20054 esac 20055 need_lib_prefix=no 20056 need_version=no 20057 soname_spec='$libname$release$shared_ext$major' 20058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 20059 case $host_os in 20060 irix5* | nonstopux*) 20061 libsuff= shlibsuff= 20062 ;; 20063 *) 20064 case $LD in # libtool.m4 will add one of these switches to LD 20065 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 20066 libsuff= shlibsuff= libmagic=32-bit;; 20067 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 20068 libsuff=32 shlibsuff=N32 libmagic=N32;; 20069 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 20070 libsuff=64 shlibsuff=64 libmagic=64-bit;; 20071 *) libsuff= shlibsuff= libmagic=never-match;; 20072 esac 20073 ;; 20074 esac 20075 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 20076 shlibpath_overrides_runpath=no 20077 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 20078 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 20079 hardcode_into_libs=yes 20080 ;; 20081 20082# No shared lib support for Linux oldld, aout, or coff. 20083linux*oldld* | linux*aout* | linux*coff*) 20084 dynamic_linker=no 20085 ;; 20086 20087linux*android*) 20088 version_type=none # Android doesn't support versioned libraries. 20089 need_lib_prefix=no 20090 need_version=no 20091 library_names_spec='$libname$release$shared_ext' 20092 soname_spec='$libname$release$shared_ext' 20093 finish_cmds= 20094 shlibpath_var=LD_LIBRARY_PATH 20095 shlibpath_overrides_runpath=yes 20096 20097 # This implies no fast_install, which is unacceptable. 20098 # Some rework will be needed to allow for fast_install 20099 # before this can be enabled. 20100 hardcode_into_libs=yes 20101 20102 dynamic_linker='Android linker' 20103 # Don't embed -rpath directories since the linker doesn't support them. 20104 hardcode_libdir_flag_spec='-L$libdir' 20105 ;; 20106 20107# This must be glibc/ELF. 20108linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 20109 version_type=linux # correct to gnu/linux during the next big refactor 20110 need_lib_prefix=no 20111 need_version=no 20112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20113 soname_spec='$libname$release$shared_ext$major' 20114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 20115 shlibpath_var=LD_LIBRARY_PATH 20116 shlibpath_overrides_runpath=no 20117 20118 # Some binutils ld are patched to set DT_RUNPATH 20119 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 20120 $as_echo_n "(cached) " >&6 20121else 20122 lt_cv_shlibpath_overrides_runpath=no 20123 save_LDFLAGS=$LDFLAGS 20124 save_libdir=$libdir 20125 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 20126 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 20127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20128/* end confdefs.h. */ 20129 20130int 20131main () 20132{ 20133 20134 ; 20135 return 0; 20136} 20137_ACEOF 20138if ac_fn_c_try_link "$LINENO"; then : 20139 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 20140 lt_cv_shlibpath_overrides_runpath=yes 20141fi 20142fi 20143rm -f core conftest.err conftest.$ac_objext \ 20144 conftest$ac_exeext conftest.$ac_ext 20145 LDFLAGS=$save_LDFLAGS 20146 libdir=$save_libdir 20147 20148fi 20149 20150 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 20151 20152 # This implies no fast_install, which is unacceptable. 20153 # Some rework will be needed to allow for fast_install 20154 # before this can be enabled. 20155 hardcode_into_libs=yes 20156 20157 # Ideally, we could use ldconfig to report *all* directores which are 20158 # searched for libraries, however this is still not possible. Aside from not 20159 # being certain /sbin/ldconfig is available, command 20160 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 20161 # even though it is searched at run-time. Try to do the best guess by 20162 # appending ld.so.conf contents (and includes) to the search path. 20163 if test -f /etc/ld.so.conf; then 20164 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' ' '` 20165 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 20166 fi 20167 20168 # We used to test for /lib/ld.so.1 and disable shared libraries on 20169 # powerpc, because MkLinux only supported shared libraries with the 20170 # GNU dynamic linker. Since this was broken with cross compilers, 20171 # most powerpc-linux boxes support dynamic linking these days and 20172 # people can always --disable-shared, the test was removed, and we 20173 # assume the GNU/Linux dynamic linker is in use. 20174 dynamic_linker='GNU/Linux ld.so' 20175 ;; 20176 20177netbsd*) 20178 version_type=sunos 20179 need_lib_prefix=no 20180 need_version=no 20181 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20182 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20184 dynamic_linker='NetBSD (a.out) ld.so' 20185 else 20186 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20187 soname_spec='$libname$release$shared_ext$major' 20188 dynamic_linker='NetBSD ld.elf_so' 20189 fi 20190 shlibpath_var=LD_LIBRARY_PATH 20191 shlibpath_overrides_runpath=yes 20192 hardcode_into_libs=yes 20193 ;; 20194 20195newsos6) 20196 version_type=linux # correct to gnu/linux during the next big refactor 20197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20198 shlibpath_var=LD_LIBRARY_PATH 20199 shlibpath_overrides_runpath=yes 20200 ;; 20201 20202*nto* | *qnx*) 20203 version_type=qnx 20204 need_lib_prefix=no 20205 need_version=no 20206 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20207 soname_spec='$libname$release$shared_ext$major' 20208 shlibpath_var=LD_LIBRARY_PATH 20209 shlibpath_overrides_runpath=no 20210 hardcode_into_libs=yes 20211 dynamic_linker='ldqnx.so' 20212 ;; 20213 20214openbsd* | bitrig*) 20215 version_type=sunos 20216 sys_lib_dlsearch_path_spec=/usr/lib 20217 need_lib_prefix=no 20218 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 20219 need_version=no 20220 else 20221 need_version=yes 20222 fi 20223 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20225 shlibpath_var=LD_LIBRARY_PATH 20226 shlibpath_overrides_runpath=yes 20227 ;; 20228 20229os2*) 20230 libname_spec='$name' 20231 version_type=windows 20232 shrext_cmds=.dll 20233 need_version=no 20234 need_lib_prefix=no 20235 # OS/2 can only load a DLL with a base name of 8 characters or less. 20236 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 20237 v=$($ECHO $release$versuffix | tr -d .-); 20238 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 20239 $ECHO $n$v`$shared_ext' 20240 library_names_spec='${libname}_dll.$libext' 20241 dynamic_linker='OS/2 ld.exe' 20242 shlibpath_var=BEGINLIBPATH 20243 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 20244 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20245 postinstall_cmds='base_file=`basename \$file`~ 20246 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 20247 dldir=$destdir/`dirname \$dlpath`~ 20248 test -d \$dldir || mkdir -p \$dldir~ 20249 $install_prog $dir/$dlname \$dldir/$dlname~ 20250 chmod a+x \$dldir/$dlname~ 20251 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 20252 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 20253 fi' 20254 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 20255 dlpath=$dir/\$dldll~ 20256 $RM \$dlpath' 20257 ;; 20258 20259osf3* | osf4* | osf5*) 20260 version_type=osf 20261 need_lib_prefix=no 20262 need_version=no 20263 soname_spec='$libname$release$shared_ext$major' 20264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20265 shlibpath_var=LD_LIBRARY_PATH 20266 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 20267 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20268 ;; 20269 20270rdos*) 20271 dynamic_linker=no 20272 ;; 20273 20274solaris*) 20275 version_type=linux # correct to gnu/linux during the next big refactor 20276 need_lib_prefix=no 20277 need_version=no 20278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20279 soname_spec='$libname$release$shared_ext$major' 20280 shlibpath_var=LD_LIBRARY_PATH 20281 shlibpath_overrides_runpath=yes 20282 hardcode_into_libs=yes 20283 # ldd complains unless libraries are executable 20284 postinstall_cmds='chmod +x $lib' 20285 ;; 20286 20287sunos4*) 20288 version_type=sunos 20289 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20290 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 20291 shlibpath_var=LD_LIBRARY_PATH 20292 shlibpath_overrides_runpath=yes 20293 if test yes = "$with_gnu_ld"; then 20294 need_lib_prefix=no 20295 fi 20296 need_version=yes 20297 ;; 20298 20299sysv4 | sysv4.3*) 20300 version_type=linux # correct to gnu/linux during the next big refactor 20301 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20302 soname_spec='$libname$release$shared_ext$major' 20303 shlibpath_var=LD_LIBRARY_PATH 20304 case $host_vendor in 20305 sni) 20306 shlibpath_overrides_runpath=no 20307 need_lib_prefix=no 20308 runpath_var=LD_RUN_PATH 20309 ;; 20310 siemens) 20311 need_lib_prefix=no 20312 ;; 20313 motorola) 20314 need_lib_prefix=no 20315 need_version=no 20316 shlibpath_overrides_runpath=no 20317 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 20318 ;; 20319 esac 20320 ;; 20321 20322sysv4*MP*) 20323 if test -d /usr/nec; then 20324 version_type=linux # correct to gnu/linux during the next big refactor 20325 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 20326 soname_spec='$libname$shared_ext.$major' 20327 shlibpath_var=LD_LIBRARY_PATH 20328 fi 20329 ;; 20330 20331sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 20332 version_type=sco 20333 need_lib_prefix=no 20334 need_version=no 20335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 20336 soname_spec='$libname$release$shared_ext$major' 20337 shlibpath_var=LD_LIBRARY_PATH 20338 shlibpath_overrides_runpath=yes 20339 hardcode_into_libs=yes 20340 if test yes = "$with_gnu_ld"; then 20341 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 20342 else 20343 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 20344 case $host_os in 20345 sco3.2v5*) 20346 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 20347 ;; 20348 esac 20349 fi 20350 sys_lib_dlsearch_path_spec='/usr/lib' 20351 ;; 20352 20353tpf*) 20354 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 20355 version_type=linux # correct to gnu/linux during the next big refactor 20356 need_lib_prefix=no 20357 need_version=no 20358 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20359 shlibpath_var=LD_LIBRARY_PATH 20360 shlibpath_overrides_runpath=no 20361 hardcode_into_libs=yes 20362 ;; 20363 20364uts4*) 20365 version_type=linux # correct to gnu/linux during the next big refactor 20366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20367 soname_spec='$libname$release$shared_ext$major' 20368 shlibpath_var=LD_LIBRARY_PATH 20369 ;; 20370 20371*) 20372 dynamic_linker=no 20373 ;; 20374esac 20375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 20376$as_echo "$dynamic_linker" >&6; } 20377test no = "$dynamic_linker" && can_build_shared=no 20378 20379variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 20380if test yes = "$GCC"; then 20381 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 20382fi 20383 20384if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 20385 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 20386fi 20387 20388if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 20389 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 20390fi 20391 20392# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 20393configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 20394 20395# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 20396func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 20397 20398# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 20399configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 20400 20401 20402 20403 20404 20405 20406 20407 20408 20409 20410 20411 20412 20413 20414 20415 20416 20417 20418 20419 20420 20421 20422 20423 20424 20425 20426 20427 20428 20429 20430 20431 20432 20433 20434 20435 20436 20437 20438 20439 20440 20441 20442 20443 20444 20445 20446 20447 20448 20449 20450 20451 20452 20453 20454 20455 20456 20457 20458 20459 20460 20461 20462 20463 20464 20465 20466 20467 20468 20469 20470 20471 20472 20473 20474 20475 20476 20477 20478 20479 20480 20481 20482 20483 20484 20485 20486 20487 20488 20489 20490 20491 20492 20493 20494 20495 20496 20497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 20498$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 20499hardcode_action= 20500if test -n "$hardcode_libdir_flag_spec" || 20501 test -n "$runpath_var" || 20502 test yes = "$hardcode_automatic"; then 20503 20504 # We can hardcode non-existent directories. 20505 if test no != "$hardcode_direct" && 20506 # If the only mechanism to avoid hardcoding is shlibpath_var, we 20507 # have to relink, otherwise we might link with an installed library 20508 # when we should be linking with a yet-to-be-installed one 20509 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 20510 test no != "$hardcode_minus_L"; then 20511 # Linking always hardcodes the temporary library directory. 20512 hardcode_action=relink 20513 else 20514 # We can link without hardcoding, and we can hardcode nonexisting dirs. 20515 hardcode_action=immediate 20516 fi 20517else 20518 # We cannot hardcode anything, or else we can only hardcode existing 20519 # directories. 20520 hardcode_action=unsupported 20521fi 20522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 20523$as_echo "$hardcode_action" >&6; } 20524 20525if test relink = "$hardcode_action" || 20526 test yes = "$inherit_rpath"; then 20527 # Fast installation is not supported 20528 enable_fast_install=no 20529elif test yes = "$shlibpath_overrides_runpath" || 20530 test no = "$enable_shared"; then 20531 # Fast installation is not necessary 20532 enable_fast_install=needless 20533fi 20534 20535 20536 20537 20538 20539 20540 if test yes != "$enable_dlopen"; then 20541 enable_dlopen=unknown 20542 enable_dlopen_self=unknown 20543 enable_dlopen_self_static=unknown 20544else 20545 lt_cv_dlopen=no 20546 lt_cv_dlopen_libs= 20547 20548 case $host_os in 20549 beos*) 20550 lt_cv_dlopen=load_add_on 20551 lt_cv_dlopen_libs= 20552 lt_cv_dlopen_self=yes 20553 ;; 20554 20555 mingw* | pw32* | cegcc*) 20556 lt_cv_dlopen=LoadLibrary 20557 lt_cv_dlopen_libs= 20558 ;; 20559 20560 cygwin*) 20561 lt_cv_dlopen=dlopen 20562 lt_cv_dlopen_libs= 20563 ;; 20564 20565 darwin*) 20566 # if libdl is installed we need to link against it 20567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 20568$as_echo_n "checking for dlopen in -ldl... " >&6; } 20569if ${ac_cv_lib_dl_dlopen+:} false; then : 20570 $as_echo_n "(cached) " >&6 20571else 20572 ac_check_lib_save_LIBS=$LIBS 20573LIBS="-ldl $LIBS" 20574cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20575/* end confdefs.h. */ 20576 20577/* Override any GCC internal prototype to avoid an error. 20578 Use char because int might match the return type of a GCC 20579 builtin and then its argument prototype would still apply. */ 20580#ifdef __cplusplus 20581extern "C" 20582#endif 20583char dlopen (); 20584int 20585main () 20586{ 20587return dlopen (); 20588 ; 20589 return 0; 20590} 20591_ACEOF 20592if ac_fn_c_try_link "$LINENO"; then : 20593 ac_cv_lib_dl_dlopen=yes 20594else 20595 ac_cv_lib_dl_dlopen=no 20596fi 20597rm -f core conftest.err conftest.$ac_objext \ 20598 conftest$ac_exeext conftest.$ac_ext 20599LIBS=$ac_check_lib_save_LIBS 20600fi 20601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 20602$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 20603if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 20604 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 20605else 20606 20607 lt_cv_dlopen=dyld 20608 lt_cv_dlopen_libs= 20609 lt_cv_dlopen_self=yes 20610 20611fi 20612 20613 ;; 20614 20615 tpf*) 20616 # Don't try to run any link tests for TPF. We know it's impossible 20617 # because TPF is a cross-compiler, and we know how we open DSOs. 20618 lt_cv_dlopen=dlopen 20619 lt_cv_dlopen_libs= 20620 lt_cv_dlopen_self=no 20621 ;; 20622 20623 *) 20624 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 20625if test "x$ac_cv_func_shl_load" = xyes; then : 20626 lt_cv_dlopen=shl_load 20627else 20628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 20629$as_echo_n "checking for shl_load in -ldld... " >&6; } 20630if ${ac_cv_lib_dld_shl_load+:} false; then : 20631 $as_echo_n "(cached) " >&6 20632else 20633 ac_check_lib_save_LIBS=$LIBS 20634LIBS="-ldld $LIBS" 20635cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20636/* end confdefs.h. */ 20637 20638/* Override any GCC internal prototype to avoid an error. 20639 Use char because int might match the return type of a GCC 20640 builtin and then its argument prototype would still apply. */ 20641#ifdef __cplusplus 20642extern "C" 20643#endif 20644char shl_load (); 20645int 20646main () 20647{ 20648return shl_load (); 20649 ; 20650 return 0; 20651} 20652_ACEOF 20653if ac_fn_c_try_link "$LINENO"; then : 20654 ac_cv_lib_dld_shl_load=yes 20655else 20656 ac_cv_lib_dld_shl_load=no 20657fi 20658rm -f core conftest.err conftest.$ac_objext \ 20659 conftest$ac_exeext conftest.$ac_ext 20660LIBS=$ac_check_lib_save_LIBS 20661fi 20662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 20663$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 20664if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 20665 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 20666else 20667 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 20668if test "x$ac_cv_func_dlopen" = xyes; then : 20669 lt_cv_dlopen=dlopen 20670else 20671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 20672$as_echo_n "checking for dlopen in -ldl... " >&6; } 20673if ${ac_cv_lib_dl_dlopen+:} false; then : 20674 $as_echo_n "(cached) " >&6 20675else 20676 ac_check_lib_save_LIBS=$LIBS 20677LIBS="-ldl $LIBS" 20678cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20679/* end confdefs.h. */ 20680 20681/* Override any GCC internal prototype to avoid an error. 20682 Use char because int might match the return type of a GCC 20683 builtin and then its argument prototype would still apply. */ 20684#ifdef __cplusplus 20685extern "C" 20686#endif 20687char dlopen (); 20688int 20689main () 20690{ 20691return dlopen (); 20692 ; 20693 return 0; 20694} 20695_ACEOF 20696if ac_fn_c_try_link "$LINENO"; then : 20697 ac_cv_lib_dl_dlopen=yes 20698else 20699 ac_cv_lib_dl_dlopen=no 20700fi 20701rm -f core conftest.err conftest.$ac_objext \ 20702 conftest$ac_exeext conftest.$ac_ext 20703LIBS=$ac_check_lib_save_LIBS 20704fi 20705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 20706$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 20707if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 20708 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 20709else 20710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 20711$as_echo_n "checking for dlopen in -lsvld... " >&6; } 20712if ${ac_cv_lib_svld_dlopen+:} false; then : 20713 $as_echo_n "(cached) " >&6 20714else 20715 ac_check_lib_save_LIBS=$LIBS 20716LIBS="-lsvld $LIBS" 20717cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20718/* end confdefs.h. */ 20719 20720/* Override any GCC internal prototype to avoid an error. 20721 Use char because int might match the return type of a GCC 20722 builtin and then its argument prototype would still apply. */ 20723#ifdef __cplusplus 20724extern "C" 20725#endif 20726char dlopen (); 20727int 20728main () 20729{ 20730return dlopen (); 20731 ; 20732 return 0; 20733} 20734_ACEOF 20735if ac_fn_c_try_link "$LINENO"; then : 20736 ac_cv_lib_svld_dlopen=yes 20737else 20738 ac_cv_lib_svld_dlopen=no 20739fi 20740rm -f core conftest.err conftest.$ac_objext \ 20741 conftest$ac_exeext conftest.$ac_ext 20742LIBS=$ac_check_lib_save_LIBS 20743fi 20744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 20745$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 20746if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 20747 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 20748else 20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 20750$as_echo_n "checking for dld_link in -ldld... " >&6; } 20751if ${ac_cv_lib_dld_dld_link+:} false; then : 20752 $as_echo_n "(cached) " >&6 20753else 20754 ac_check_lib_save_LIBS=$LIBS 20755LIBS="-ldld $LIBS" 20756cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20757/* end confdefs.h. */ 20758 20759/* Override any GCC internal prototype to avoid an error. 20760 Use char because int might match the return type of a GCC 20761 builtin and then its argument prototype would still apply. */ 20762#ifdef __cplusplus 20763extern "C" 20764#endif 20765char dld_link (); 20766int 20767main () 20768{ 20769return dld_link (); 20770 ; 20771 return 0; 20772} 20773_ACEOF 20774if ac_fn_c_try_link "$LINENO"; then : 20775 ac_cv_lib_dld_dld_link=yes 20776else 20777 ac_cv_lib_dld_dld_link=no 20778fi 20779rm -f core conftest.err conftest.$ac_objext \ 20780 conftest$ac_exeext conftest.$ac_ext 20781LIBS=$ac_check_lib_save_LIBS 20782fi 20783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 20784$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 20785if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 20786 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 20787fi 20788 20789 20790fi 20791 20792 20793fi 20794 20795 20796fi 20797 20798 20799fi 20800 20801 20802fi 20803 20804 ;; 20805 esac 20806 20807 if test no = "$lt_cv_dlopen"; then 20808 enable_dlopen=no 20809 else 20810 enable_dlopen=yes 20811 fi 20812 20813 case $lt_cv_dlopen in 20814 dlopen) 20815 save_CPPFLAGS=$CPPFLAGS 20816 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 20817 20818 save_LDFLAGS=$LDFLAGS 20819 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 20820 20821 save_LIBS=$LIBS 20822 LIBS="$lt_cv_dlopen_libs $LIBS" 20823 20824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 20825$as_echo_n "checking whether a program can dlopen itself... " >&6; } 20826if ${lt_cv_dlopen_self+:} false; then : 20827 $as_echo_n "(cached) " >&6 20828else 20829 if test yes = "$cross_compiling"; then : 20830 lt_cv_dlopen_self=cross 20831else 20832 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20833 lt_status=$lt_dlunknown 20834 cat > conftest.$ac_ext <<_LT_EOF 20835#line $LINENO "configure" 20836#include "confdefs.h" 20837 20838#if HAVE_DLFCN_H 20839#include <dlfcn.h> 20840#endif 20841 20842#include <stdio.h> 20843 20844#ifdef RTLD_GLOBAL 20845# define LT_DLGLOBAL RTLD_GLOBAL 20846#else 20847# ifdef DL_GLOBAL 20848# define LT_DLGLOBAL DL_GLOBAL 20849# else 20850# define LT_DLGLOBAL 0 20851# endif 20852#endif 20853 20854/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20855 find out it does not work in some platform. */ 20856#ifndef LT_DLLAZY_OR_NOW 20857# ifdef RTLD_LAZY 20858# define LT_DLLAZY_OR_NOW RTLD_LAZY 20859# else 20860# ifdef DL_LAZY 20861# define LT_DLLAZY_OR_NOW DL_LAZY 20862# else 20863# ifdef RTLD_NOW 20864# define LT_DLLAZY_OR_NOW RTLD_NOW 20865# else 20866# ifdef DL_NOW 20867# define LT_DLLAZY_OR_NOW DL_NOW 20868# else 20869# define LT_DLLAZY_OR_NOW 0 20870# endif 20871# endif 20872# endif 20873# endif 20874#endif 20875 20876/* When -fvisibility=hidden is used, assume the code has been annotated 20877 correspondingly for the symbols needed. */ 20878#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 20879int fnord () __attribute__((visibility("default"))); 20880#endif 20881 20882int fnord () { return 42; } 20883int main () 20884{ 20885 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20886 int status = $lt_dlunknown; 20887 20888 if (self) 20889 { 20890 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20891 else 20892 { 20893 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20894 else puts (dlerror ()); 20895 } 20896 /* dlclose (self); */ 20897 } 20898 else 20899 puts (dlerror ()); 20900 20901 return status; 20902} 20903_LT_EOF 20904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 20905 (eval $ac_link) 2>&5 20906 ac_status=$? 20907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20908 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 20909 (./conftest; exit; ) >&5 2>/dev/null 20910 lt_status=$? 20911 case x$lt_status in 20912 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 20913 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 20914 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 20915 esac 20916 else : 20917 # compilation failed 20918 lt_cv_dlopen_self=no 20919 fi 20920fi 20921rm -fr conftest* 20922 20923 20924fi 20925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 20926$as_echo "$lt_cv_dlopen_self" >&6; } 20927 20928 if test yes = "$lt_cv_dlopen_self"; then 20929 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 20930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 20931$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 20932if ${lt_cv_dlopen_self_static+:} false; then : 20933 $as_echo_n "(cached) " >&6 20934else 20935 if test yes = "$cross_compiling"; then : 20936 lt_cv_dlopen_self_static=cross 20937else 20938 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20939 lt_status=$lt_dlunknown 20940 cat > conftest.$ac_ext <<_LT_EOF 20941#line $LINENO "configure" 20942#include "confdefs.h" 20943 20944#if HAVE_DLFCN_H 20945#include <dlfcn.h> 20946#endif 20947 20948#include <stdio.h> 20949 20950#ifdef RTLD_GLOBAL 20951# define LT_DLGLOBAL RTLD_GLOBAL 20952#else 20953# ifdef DL_GLOBAL 20954# define LT_DLGLOBAL DL_GLOBAL 20955# else 20956# define LT_DLGLOBAL 0 20957# endif 20958#endif 20959 20960/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20961 find out it does not work in some platform. */ 20962#ifndef LT_DLLAZY_OR_NOW 20963# ifdef RTLD_LAZY 20964# define LT_DLLAZY_OR_NOW RTLD_LAZY 20965# else 20966# ifdef DL_LAZY 20967# define LT_DLLAZY_OR_NOW DL_LAZY 20968# else 20969# ifdef RTLD_NOW 20970# define LT_DLLAZY_OR_NOW RTLD_NOW 20971# else 20972# ifdef DL_NOW 20973# define LT_DLLAZY_OR_NOW DL_NOW 20974# else 20975# define LT_DLLAZY_OR_NOW 0 20976# endif 20977# endif 20978# endif 20979# endif 20980#endif 20981 20982/* When -fvisibility=hidden is used, assume the code has been annotated 20983 correspondingly for the symbols needed. */ 20984#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 20985int fnord () __attribute__((visibility("default"))); 20986#endif 20987 20988int fnord () { return 42; } 20989int main () 20990{ 20991 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20992 int status = $lt_dlunknown; 20993 20994 if (self) 20995 { 20996 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20997 else 20998 { 20999 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 21000 else puts (dlerror ()); 21001 } 21002 /* dlclose (self); */ 21003 } 21004 else 21005 puts (dlerror ()); 21006 21007 return status; 21008} 21009_LT_EOF 21010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 21011 (eval $ac_link) 2>&5 21012 ac_status=$? 21013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21014 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 21015 (./conftest; exit; ) >&5 2>/dev/null 21016 lt_status=$? 21017 case x$lt_status in 21018 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 21019 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 21020 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 21021 esac 21022 else : 21023 # compilation failed 21024 lt_cv_dlopen_self_static=no 21025 fi 21026fi 21027rm -fr conftest* 21028 21029 21030fi 21031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 21032$as_echo "$lt_cv_dlopen_self_static" >&6; } 21033 fi 21034 21035 CPPFLAGS=$save_CPPFLAGS 21036 LDFLAGS=$save_LDFLAGS 21037 LIBS=$save_LIBS 21038 ;; 21039 esac 21040 21041 case $lt_cv_dlopen_self in 21042 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 21043 *) enable_dlopen_self=unknown ;; 21044 esac 21045 21046 case $lt_cv_dlopen_self_static in 21047 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 21048 *) enable_dlopen_self_static=unknown ;; 21049 esac 21050fi 21051 21052 21053 21054 21055 21056 21057 21058 21059 21060 21061 21062 21063 21064 21065 21066 21067 21068striplib= 21069old_striplib= 21070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 21071$as_echo_n "checking whether stripping libraries is possible... " >&6; } 21072if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 21073 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 21074 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 21075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21076$as_echo "yes" >&6; } 21077else 21078# FIXME - insert some real tests, host_os isn't really good enough 21079 case $host_os in 21080 darwin*) 21081 if test -n "$STRIP"; then 21082 striplib="$STRIP -x" 21083 old_striplib="$STRIP -S" 21084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21085$as_echo "yes" >&6; } 21086 else 21087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21088$as_echo "no" >&6; } 21089 fi 21090 ;; 21091 *) 21092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21093$as_echo "no" >&6; } 21094 ;; 21095 esac 21096fi 21097 21098 21099 21100 21101 21102 21103 21104 21105 21106 21107 21108 21109 # Report what library types will actually be built 21110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 21111$as_echo_n "checking if libtool supports shared libraries... " >&6; } 21112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 21113$as_echo "$can_build_shared" >&6; } 21114 21115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 21116$as_echo_n "checking whether to build shared libraries... " >&6; } 21117 test no = "$can_build_shared" && enable_shared=no 21118 21119 # On AIX, shared libraries and static libraries use the same namespace, and 21120 # are all built from PIC. 21121 case $host_os in 21122 aix3*) 21123 test yes = "$enable_shared" && enable_static=no 21124 if test -n "$RANLIB"; then 21125 archive_cmds="$archive_cmds~\$RANLIB \$lib" 21126 postinstall_cmds='$RANLIB $lib' 21127 fi 21128 ;; 21129 21130 aix[4-9]*) 21131 if test ia64 != "$host_cpu"; then 21132 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 21133 yes,aix,yes) ;; # shared object as lib.so file only 21134 yes,svr4,*) ;; # shared object as lib.so archive member only 21135 yes,*) enable_static=no ;; # shared object in lib.a archive as well 21136 esac 21137 fi 21138 ;; 21139 esac 21140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 21141$as_echo "$enable_shared" >&6; } 21142 21143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 21144$as_echo_n "checking whether to build static libraries... " >&6; } 21145 # Make sure either enable_shared or enable_static is yes. 21146 test yes = "$enable_shared" || enable_static=yes 21147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 21148$as_echo "$enable_static" >&6; } 21149 21150 21151 21152 21153fi 21154ac_ext=c 21155ac_cpp='$CPP $CPPFLAGS' 21156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21158ac_compiler_gnu=$ac_cv_c_compiler_gnu 21159 21160CC=$lt_save_CC 21161 21162 21163 21164 21165 21166 21167 21168 21169 21170 21171 21172 21173 21174 21175 21176 ac_config_commands="$ac_config_commands libtool" 21177 21178 21179 21180 21181# Only expand once: 21182 21183 21184 21185 21186 21187 21188 21189 21190 21191if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21192 if test -n "$ac_tool_prefix"; then 21193 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21194set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21196$as_echo_n "checking for $ac_word... " >&6; } 21197if ${ac_cv_path_PKG_CONFIG+:} false; then : 21198 $as_echo_n "(cached) " >&6 21199else 21200 case $PKG_CONFIG in 21201 [\\/]* | ?:[\\/]*) 21202 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21203 ;; 21204 *) 21205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21206for as_dir in $PATH 21207do 21208 IFS=$as_save_IFS 21209 test -z "$as_dir" && as_dir=. 21210 for ac_exec_ext in '' $ac_executable_extensions; do 21211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21212 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21214 break 2 21215 fi 21216done 21217 done 21218IFS=$as_save_IFS 21219 21220 ;; 21221esac 21222fi 21223PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21224if test -n "$PKG_CONFIG"; then 21225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 21226$as_echo "$PKG_CONFIG" >&6; } 21227else 21228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21229$as_echo "no" >&6; } 21230fi 21231 21232 21233fi 21234if test -z "$ac_cv_path_PKG_CONFIG"; then 21235 ac_pt_PKG_CONFIG=$PKG_CONFIG 21236 # Extract the first word of "pkg-config", so it can be a program name with args. 21237set dummy pkg-config; ac_word=$2 21238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21239$as_echo_n "checking for $ac_word... " >&6; } 21240if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 21241 $as_echo_n "(cached) " >&6 21242else 21243 case $ac_pt_PKG_CONFIG in 21244 [\\/]* | ?:[\\/]*) 21245 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21246 ;; 21247 *) 21248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21249for as_dir in $PATH 21250do 21251 IFS=$as_save_IFS 21252 test -z "$as_dir" && as_dir=. 21253 for ac_exec_ext in '' $ac_executable_extensions; do 21254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21255 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21257 break 2 21258 fi 21259done 21260 done 21261IFS=$as_save_IFS 21262 21263 ;; 21264esac 21265fi 21266ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21267if test -n "$ac_pt_PKG_CONFIG"; then 21268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 21269$as_echo "$ac_pt_PKG_CONFIG" >&6; } 21270else 21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21272$as_echo "no" >&6; } 21273fi 21274 21275 if test "x$ac_pt_PKG_CONFIG" = x; then 21276 PKG_CONFIG="" 21277 else 21278 case $cross_compiling:$ac_tool_warned in 21279yes:) 21280{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21282ac_tool_warned=yes ;; 21283esac 21284 PKG_CONFIG=$ac_pt_PKG_CONFIG 21285 fi 21286else 21287 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21288fi 21289 21290fi 21291if test -n "$PKG_CONFIG"; then 21292 _pkg_min_version=0.9.0 21293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 21294$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21295 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21297$as_echo "yes" >&6; } 21298 else 21299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21300$as_echo "no" >&6; } 21301 PKG_CONFIG="" 21302 fi 21303fi 21304for ac_prog in flex lex 21305do 21306 # Extract the first word of "$ac_prog", so it can be a program name with args. 21307set dummy $ac_prog; ac_word=$2 21308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21309$as_echo_n "checking for $ac_word... " >&6; } 21310if ${ac_cv_prog_LEX+:} false; then : 21311 $as_echo_n "(cached) " >&6 21312else 21313 if test -n "$LEX"; then 21314 ac_cv_prog_LEX="$LEX" # Let the user override the test. 21315else 21316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21317for as_dir in $PATH 21318do 21319 IFS=$as_save_IFS 21320 test -z "$as_dir" && as_dir=. 21321 for ac_exec_ext in '' $ac_executable_extensions; do 21322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21323 ac_cv_prog_LEX="$ac_prog" 21324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21325 break 2 21326 fi 21327done 21328 done 21329IFS=$as_save_IFS 21330 21331fi 21332fi 21333LEX=$ac_cv_prog_LEX 21334if test -n "$LEX"; then 21335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 21336$as_echo "$LEX" >&6; } 21337else 21338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21339$as_echo "no" >&6; } 21340fi 21341 21342 21343 test -n "$LEX" && break 21344done 21345test -n "$LEX" || LEX=":" 21346 21347if test "x$LEX" != "x:"; then 21348 cat >conftest.l <<_ACEOF 21349%% 21350a { ECHO; } 21351b { REJECT; } 21352c { yymore (); } 21353d { yyless (1); } 21354e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 21355 yyless ((input () != 0)); } 21356f { unput (yytext[0]); } 21357. { BEGIN INITIAL; } 21358%% 21359#ifdef YYTEXT_POINTER 21360extern char *yytext; 21361#endif 21362int 21363main (void) 21364{ 21365 return ! yylex () + ! yywrap (); 21366} 21367_ACEOF 21368{ { ac_try="$LEX conftest.l" 21369case "(($ac_try" in 21370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21371 *) ac_try_echo=$ac_try;; 21372esac 21373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 21374$as_echo "$ac_try_echo"; } >&5 21375 (eval "$LEX conftest.l") 2>&5 21376 ac_status=$? 21377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21378 test $ac_status = 0; } 21379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 21380$as_echo_n "checking lex output file root... " >&6; } 21381if ${ac_cv_prog_lex_root+:} false; then : 21382 $as_echo_n "(cached) " >&6 21383else 21384 21385if test -f lex.yy.c; then 21386 ac_cv_prog_lex_root=lex.yy 21387elif test -f lexyy.c; then 21388 ac_cv_prog_lex_root=lexyy 21389else 21390 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 21391fi 21392fi 21393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 21394$as_echo "$ac_cv_prog_lex_root" >&6; } 21395LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 21396 21397if test -z "${LEXLIB+set}"; then 21398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 21399$as_echo_n "checking lex library... " >&6; } 21400if ${ac_cv_lib_lex+:} false; then : 21401 $as_echo_n "(cached) " >&6 21402else 21403 21404 ac_save_LIBS=$LIBS 21405 ac_cv_lib_lex='none needed' 21406 for ac_lib in '' -lfl -ll; do 21407 LIBS="$ac_lib $ac_save_LIBS" 21408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21409/* end confdefs.h. */ 21410`cat $LEX_OUTPUT_ROOT.c` 21411_ACEOF 21412if ac_fn_c_try_link "$LINENO"; then : 21413 ac_cv_lib_lex=$ac_lib 21414fi 21415rm -f core conftest.err conftest.$ac_objext \ 21416 conftest$ac_exeext conftest.$ac_ext 21417 test "$ac_cv_lib_lex" != 'none needed' && break 21418 done 21419 LIBS=$ac_save_LIBS 21420 21421fi 21422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 21423$as_echo "$ac_cv_lib_lex" >&6; } 21424 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 21425fi 21426 21427 21428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 21429$as_echo_n "checking whether yytext is a pointer... " >&6; } 21430if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 21431 $as_echo_n "(cached) " >&6 21432else 21433 # POSIX says lex can declare yytext either as a pointer or an array; the 21434# default is implementation-dependent. Figure out which it is, since 21435# not all implementations provide the %pointer and %array declarations. 21436ac_cv_prog_lex_yytext_pointer=no 21437ac_save_LIBS=$LIBS 21438LIBS="$LEXLIB $ac_save_LIBS" 21439cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21440/* end confdefs.h. */ 21441 21442 #define YYTEXT_POINTER 1 21443`cat $LEX_OUTPUT_ROOT.c` 21444_ACEOF 21445if ac_fn_c_try_link "$LINENO"; then : 21446 ac_cv_prog_lex_yytext_pointer=yes 21447fi 21448rm -f core conftest.err conftest.$ac_objext \ 21449 conftest$ac_exeext conftest.$ac_ext 21450LIBS=$ac_save_LIBS 21451 21452fi 21453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 21454$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 21455if test $ac_cv_prog_lex_yytext_pointer = yes; then 21456 21457$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 21458 21459fi 21460rm -f conftest.l $LEX_OUTPUT_ROOT.c 21461 21462fi 21463for ac_prog in 'bison -y' byacc 21464do 21465 # Extract the first word of "$ac_prog", so it can be a program name with args. 21466set dummy $ac_prog; ac_word=$2 21467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21468$as_echo_n "checking for $ac_word... " >&6; } 21469if ${ac_cv_prog_YACC+:} false; then : 21470 $as_echo_n "(cached) " >&6 21471else 21472 if test -n "$YACC"; then 21473 ac_cv_prog_YACC="$YACC" # Let the user override the test. 21474else 21475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21476for as_dir in $PATH 21477do 21478 IFS=$as_save_IFS 21479 test -z "$as_dir" && as_dir=. 21480 for ac_exec_ext in '' $ac_executable_extensions; do 21481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21482 ac_cv_prog_YACC="$ac_prog" 21483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21484 break 2 21485 fi 21486done 21487 done 21488IFS=$as_save_IFS 21489 21490fi 21491fi 21492YACC=$ac_cv_prog_YACC 21493if test -n "$YACC"; then 21494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 21495$as_echo "$YACC" >&6; } 21496else 21497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21498$as_echo "no" >&6; } 21499fi 21500 21501 21502 test -n "$YACC" && break 21503done 21504test -n "$YACC" || YACC="yacc" 21505 21506# Check whether --enable-largefile was given. 21507if test "${enable_largefile+set}" = set; then : 21508 enableval=$enable_largefile; 21509fi 21510 21511if test "$enable_largefile" != no; then 21512 21513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 21514$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 21515if ${ac_cv_sys_largefile_CC+:} false; then : 21516 $as_echo_n "(cached) " >&6 21517else 21518 ac_cv_sys_largefile_CC=no 21519 if test "$GCC" != yes; then 21520 ac_save_CC=$CC 21521 while :; do 21522 # IRIX 6.2 and later do not support large files by default, 21523 # so use the C compiler's -n32 option if that helps. 21524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21525/* end confdefs.h. */ 21526#include <sys/types.h> 21527 /* Check that off_t can represent 2**63 - 1 correctly. 21528 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21529 since some C++ compilers masquerading as C compilers 21530 incorrectly reject 9223372036854775807. */ 21531#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21532 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21533 && LARGE_OFF_T % 2147483647 == 1) 21534 ? 1 : -1]; 21535int 21536main () 21537{ 21538 21539 ; 21540 return 0; 21541} 21542_ACEOF 21543 if ac_fn_c_try_compile "$LINENO"; then : 21544 break 21545fi 21546rm -f core conftest.err conftest.$ac_objext 21547 CC="$CC -n32" 21548 if ac_fn_c_try_compile "$LINENO"; then : 21549 ac_cv_sys_largefile_CC=' -n32'; break 21550fi 21551rm -f core conftest.err conftest.$ac_objext 21552 break 21553 done 21554 CC=$ac_save_CC 21555 rm -f conftest.$ac_ext 21556 fi 21557fi 21558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 21559$as_echo "$ac_cv_sys_largefile_CC" >&6; } 21560 if test "$ac_cv_sys_largefile_CC" != no; then 21561 CC=$CC$ac_cv_sys_largefile_CC 21562 fi 21563 21564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 21565$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 21566if ${ac_cv_sys_file_offset_bits+:} false; then : 21567 $as_echo_n "(cached) " >&6 21568else 21569 while :; do 21570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21571/* end confdefs.h. */ 21572#include <sys/types.h> 21573 /* Check that off_t can represent 2**63 - 1 correctly. 21574 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21575 since some C++ compilers masquerading as C compilers 21576 incorrectly reject 9223372036854775807. */ 21577#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21578 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21579 && LARGE_OFF_T % 2147483647 == 1) 21580 ? 1 : -1]; 21581int 21582main () 21583{ 21584 21585 ; 21586 return 0; 21587} 21588_ACEOF 21589if ac_fn_c_try_compile "$LINENO"; then : 21590 ac_cv_sys_file_offset_bits=no; break 21591fi 21592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21594/* end confdefs.h. */ 21595#define _FILE_OFFSET_BITS 64 21596#include <sys/types.h> 21597 /* Check that off_t can represent 2**63 - 1 correctly. 21598 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21599 since some C++ compilers masquerading as C compilers 21600 incorrectly reject 9223372036854775807. */ 21601#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21602 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21603 && LARGE_OFF_T % 2147483647 == 1) 21604 ? 1 : -1]; 21605int 21606main () 21607{ 21608 21609 ; 21610 return 0; 21611} 21612_ACEOF 21613if ac_fn_c_try_compile "$LINENO"; then : 21614 ac_cv_sys_file_offset_bits=64; break 21615fi 21616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21617 ac_cv_sys_file_offset_bits=unknown 21618 break 21619done 21620fi 21621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 21622$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 21623case $ac_cv_sys_file_offset_bits in #( 21624 no | unknown) ;; 21625 *) 21626cat >>confdefs.h <<_ACEOF 21627#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 21628_ACEOF 21629;; 21630esac 21631rm -rf conftest* 21632 if test $ac_cv_sys_file_offset_bits = unknown; then 21633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 21634$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 21635if ${ac_cv_sys_large_files+:} false; then : 21636 $as_echo_n "(cached) " >&6 21637else 21638 while :; do 21639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21640/* end confdefs.h. */ 21641#include <sys/types.h> 21642 /* Check that off_t can represent 2**63 - 1 correctly. 21643 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21644 since some C++ compilers masquerading as C compilers 21645 incorrectly reject 9223372036854775807. */ 21646#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21647 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21648 && LARGE_OFF_T % 2147483647 == 1) 21649 ? 1 : -1]; 21650int 21651main () 21652{ 21653 21654 ; 21655 return 0; 21656} 21657_ACEOF 21658if ac_fn_c_try_compile "$LINENO"; then : 21659 ac_cv_sys_large_files=no; break 21660fi 21661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21663/* end confdefs.h. */ 21664#define _LARGE_FILES 1 21665#include <sys/types.h> 21666 /* Check that off_t can represent 2**63 - 1 correctly. 21667 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21668 since some C++ compilers masquerading as C compilers 21669 incorrectly reject 9223372036854775807. */ 21670#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21671 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21672 && LARGE_OFF_T % 2147483647 == 1) 21673 ? 1 : -1]; 21674int 21675main () 21676{ 21677 21678 ; 21679 return 0; 21680} 21681_ACEOF 21682if ac_fn_c_try_compile "$LINENO"; then : 21683 ac_cv_sys_large_files=1; break 21684fi 21685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21686 ac_cv_sys_large_files=unknown 21687 break 21688done 21689fi 21690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 21691$as_echo "$ac_cv_sys_large_files" >&6; } 21692case $ac_cv_sys_large_files in #( 21693 no | unknown) ;; 21694 *) 21695cat >>confdefs.h <<_ACEOF 21696#define _LARGE_FILES $ac_cv_sys_large_files 21697_ACEOF 21698;; 21699esac 21700rm -rf conftest* 21701 fi 21702 21703 21704fi 21705 21706 21707 21708if test -n "$ac_tool_prefix"; then 21709 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. 21710set dummy ${ac_tool_prefix}cpp; ac_word=$2 21711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21712$as_echo_n "checking for $ac_word... " >&6; } 21713if ${ac_cv_path_RAWCPP+:} false; then : 21714 $as_echo_n "(cached) " >&6 21715else 21716 case $RAWCPP in 21717 [\\/]* | ?:[\\/]*) 21718 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 21719 ;; 21720 *) 21721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21722as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 21723for as_dir in $as_dummy 21724do 21725 IFS=$as_save_IFS 21726 test -z "$as_dir" && as_dir=. 21727 for ac_exec_ext in '' $ac_executable_extensions; do 21728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21729 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 21730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21731 break 2 21732 fi 21733done 21734 done 21735IFS=$as_save_IFS 21736 21737 ;; 21738esac 21739fi 21740RAWCPP=$ac_cv_path_RAWCPP 21741if test -n "$RAWCPP"; then 21742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 21743$as_echo "$RAWCPP" >&6; } 21744else 21745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21746$as_echo "no" >&6; } 21747fi 21748 21749 21750fi 21751if test -z "$ac_cv_path_RAWCPP"; then 21752 ac_pt_RAWCPP=$RAWCPP 21753 # Extract the first word of "cpp", so it can be a program name with args. 21754set dummy cpp; ac_word=$2 21755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21756$as_echo_n "checking for $ac_word... " >&6; } 21757if ${ac_cv_path_ac_pt_RAWCPP+:} false; then : 21758 $as_echo_n "(cached) " >&6 21759else 21760 case $ac_pt_RAWCPP in 21761 [\\/]* | ?:[\\/]*) 21762 ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path. 21763 ;; 21764 *) 21765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21766as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 21767for as_dir in $as_dummy 21768do 21769 IFS=$as_save_IFS 21770 test -z "$as_dir" && as_dir=. 21771 for ac_exec_ext in '' $ac_executable_extensions; do 21772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21773 ac_cv_path_ac_pt_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 21774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21775 break 2 21776 fi 21777done 21778 done 21779IFS=$as_save_IFS 21780 21781 ;; 21782esac 21783fi 21784ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP 21785if test -n "$ac_pt_RAWCPP"; then 21786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5 21787$as_echo "$ac_pt_RAWCPP" >&6; } 21788else 21789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21790$as_echo "no" >&6; } 21791fi 21792 21793 if test "x$ac_pt_RAWCPP" = x; then 21794 RAWCPP="${CPP}" 21795 else 21796 case $cross_compiling:$ac_tool_warned in 21797yes:) 21798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21800ac_tool_warned=yes ;; 21801esac 21802 RAWCPP=$ac_pt_RAWCPP 21803 fi 21804else 21805 RAWCPP="$ac_cv_path_RAWCPP" 21806fi 21807 21808 21809# Check for flag to avoid builtin definitions - assumes unix is predefined, 21810# which is not the best choice for supporting other OS'es, but covers most 21811# of the ones we need for now. 21812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 21813$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 21814cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21815/* end confdefs.h. */ 21816Does cpp redefine unix ? 21817_ACEOF 21818if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 21819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21820$as_echo "no" >&6; } 21821else 21822 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 21823 RAWCPPFLAGS=-undef 21824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21825$as_echo "yes" >&6; } 21826 # under Cygwin unix is still defined even with -undef 21827 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 21828 RAWCPPFLAGS="-undef -ansi" 21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 21830$as_echo "yes, with -ansi" >&6; } 21831 else 21832 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 21833 fi 21834fi 21835rm -f conftest.$ac_ext 21836 21837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 21838$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 21839cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21840/* end confdefs.h. */ 21841Does cpp preserve "whitespace"? 21842_ACEOF 21843if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21845$as_echo "no" >&6; } 21846else 21847 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 21848 TRADITIONALCPPFLAGS="-traditional" 21849 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 21850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21851$as_echo "yes" >&6; } 21852 else 21853 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 21854 fi 21855fi 21856rm -f conftest.$ac_ext 21857 21858 21859 21860 21861# Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow 21862# easier overrides at build time. 21863XSERVER_CFLAGS='$(CWARNFLAGS)' 21864 21865if test "x$GCC" = xyes ; then 21866 XSERVER_CFLAGS="$XSERVER_CFLAGS -fno-strict-aliasing" 21867fi 21868 21869 21870# Check whether --with-dtrace was given. 21871if test "${with_dtrace+set}" = set; then : 21872 withval=$with_dtrace; WDTRACE=$withval 21873else 21874 WDTRACE=auto 21875fi 21876 21877if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then 21878 # Extract the first word of "dtrace", so it can be a program name with args. 21879set dummy dtrace; ac_word=$2 21880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21881$as_echo_n "checking for $ac_word... " >&6; } 21882if ${ac_cv_path_DTRACE+:} false; then : 21883 $as_echo_n "(cached) " >&6 21884else 21885 case $DTRACE in 21886 [\\/]* | ?:[\\/]*) 21887 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 21888 ;; 21889 *) 21890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21891as_dummy="$PATH:/usr/sbin" 21892for as_dir in $as_dummy 21893do 21894 IFS=$as_save_IFS 21895 test -z "$as_dir" && as_dir=. 21896 for ac_exec_ext in '' $ac_executable_extensions; do 21897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21898 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 21899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21900 break 2 21901 fi 21902done 21903 done 21904IFS=$as_save_IFS 21905 21906 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found" 21907 ;; 21908esac 21909fi 21910DTRACE=$ac_cv_path_DTRACE 21911if test -n "$DTRACE"; then 21912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 21913$as_echo "$DTRACE" >&6; } 21914else 21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21916$as_echo "no" >&6; } 21917fi 21918 21919 21920 if test "x$DTRACE" = "xnot_found" ; then 21921 if test "x$WDTRACE" = "xyes" ; then 21922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21924as_fn_error $? "dtrace requested but not found 21925See \`config.log' for more details" "$LINENO" 5; } 21926 fi 21927 WDTRACE="no" 21928 else 21929 ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 21930if test "x$ac_cv_header_sys_sdt_h" = xyes; then : 21931 HAS_SDT_H="yes" 21932else 21933 HAS_SDT_H="no" 21934fi 21935 21936 21937 if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then 21938 WDTRACE="no" 21939 fi 21940 fi 21941fi 21942if test "x$WDTRACE" != "xno" ; then 21943 21944$as_echo "#define XSERVER_DTRACE 1" >>confdefs.h 21945 21946 21947# Solaris/OpenSolaris require dtrace -G to build dtrace probe information into 21948# object files, and require linking with those as relocatable objects, not .a 21949# archives. MacOS X handles all this in the normal compiler toolchain, and on 21950# some releases (like Tiger), will error out on dtrace -G. For now, other 21951# platforms with Dtrace ports are assumed to support -G (the FreeBSD and Linux 21952# ports appear to, based on my web searches, but have not yet been tested). 21953 case $host_os in 21954 darwin*) SPECIAL_DTRACE_OBJECTS=no ;; 21955 *) SPECIAL_DTRACE_OBJECTS=yes ;; 21956 esac 21957fi 21958 if test "x$WDTRACE" != "xno"; then 21959 XSERVER_DTRACE_TRUE= 21960 XSERVER_DTRACE_FALSE='#' 21961else 21962 XSERVER_DTRACE_TRUE='#' 21963 XSERVER_DTRACE_FALSE= 21964fi 21965 21966 if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes"; then 21967 SPECIAL_DTRACE_OBJECTS_TRUE= 21968 SPECIAL_DTRACE_OBJECTS_FALSE='#' 21969else 21970 SPECIAL_DTRACE_OBJECTS_TRUE='#' 21971 SPECIAL_DTRACE_OBJECTS_FALSE= 21972fi 21973 21974 21975ac_header_dirent=no 21976for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 21977 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 21978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 21979$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 21980if eval \${$as_ac_Header+:} false; then : 21981 $as_echo_n "(cached) " >&6 21982else 21983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21984/* end confdefs.h. */ 21985#include <sys/types.h> 21986#include <$ac_hdr> 21987 21988int 21989main () 21990{ 21991if ((DIR *) 0) 21992return 0; 21993 ; 21994 return 0; 21995} 21996_ACEOF 21997if ac_fn_c_try_compile "$LINENO"; then : 21998 eval "$as_ac_Header=yes" 21999else 22000 eval "$as_ac_Header=no" 22001fi 22002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22003fi 22004eval ac_res=\$$as_ac_Header 22005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 22006$as_echo "$ac_res" >&6; } 22007if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22008 cat >>confdefs.h <<_ACEOF 22009#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 22010_ACEOF 22011 22012ac_header_dirent=$ac_hdr; break 22013fi 22014 22015done 22016# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 22017if test $ac_header_dirent = dirent.h; then 22018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 22019$as_echo_n "checking for library containing opendir... " >&6; } 22020if ${ac_cv_search_opendir+:} false; then : 22021 $as_echo_n "(cached) " >&6 22022else 22023 ac_func_search_save_LIBS=$LIBS 22024cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22025/* end confdefs.h. */ 22026 22027/* Override any GCC internal prototype to avoid an error. 22028 Use char because int might match the return type of a GCC 22029 builtin and then its argument prototype would still apply. */ 22030#ifdef __cplusplus 22031extern "C" 22032#endif 22033char opendir (); 22034int 22035main () 22036{ 22037return opendir (); 22038 ; 22039 return 0; 22040} 22041_ACEOF 22042for ac_lib in '' dir; do 22043 if test -z "$ac_lib"; then 22044 ac_res="none required" 22045 else 22046 ac_res=-l$ac_lib 22047 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22048 fi 22049 if ac_fn_c_try_link "$LINENO"; then : 22050 ac_cv_search_opendir=$ac_res 22051fi 22052rm -f core conftest.err conftest.$ac_objext \ 22053 conftest$ac_exeext 22054 if ${ac_cv_search_opendir+:} false; then : 22055 break 22056fi 22057done 22058if ${ac_cv_search_opendir+:} false; then : 22059 22060else 22061 ac_cv_search_opendir=no 22062fi 22063rm conftest.$ac_ext 22064LIBS=$ac_func_search_save_LIBS 22065fi 22066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 22067$as_echo "$ac_cv_search_opendir" >&6; } 22068ac_res=$ac_cv_search_opendir 22069if test "$ac_res" != no; then : 22070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22071 22072fi 22073 22074else 22075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 22076$as_echo_n "checking for library containing opendir... " >&6; } 22077if ${ac_cv_search_opendir+:} false; then : 22078 $as_echo_n "(cached) " >&6 22079else 22080 ac_func_search_save_LIBS=$LIBS 22081cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22082/* end confdefs.h. */ 22083 22084/* Override any GCC internal prototype to avoid an error. 22085 Use char because int might match the return type of a GCC 22086 builtin and then its argument prototype would still apply. */ 22087#ifdef __cplusplus 22088extern "C" 22089#endif 22090char opendir (); 22091int 22092main () 22093{ 22094return opendir (); 22095 ; 22096 return 0; 22097} 22098_ACEOF 22099for ac_lib in '' x; do 22100 if test -z "$ac_lib"; then 22101 ac_res="none required" 22102 else 22103 ac_res=-l$ac_lib 22104 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22105 fi 22106 if ac_fn_c_try_link "$LINENO"; then : 22107 ac_cv_search_opendir=$ac_res 22108fi 22109rm -f core conftest.err conftest.$ac_objext \ 22110 conftest$ac_exeext 22111 if ${ac_cv_search_opendir+:} false; then : 22112 break 22113fi 22114done 22115if ${ac_cv_search_opendir+:} false; then : 22116 22117else 22118 ac_cv_search_opendir=no 22119fi 22120rm conftest.$ac_ext 22121LIBS=$ac_func_search_save_LIBS 22122fi 22123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 22124$as_echo "$ac_cv_search_opendir" >&6; } 22125ac_res=$ac_cv_search_opendir 22126if test "$ac_res" != no; then : 22127 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22128 22129fi 22130 22131fi 22132 22133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 22134$as_echo_n "checking for ANSI C header files... " >&6; } 22135if ${ac_cv_header_stdc+:} false; then : 22136 $as_echo_n "(cached) " >&6 22137else 22138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22139/* end confdefs.h. */ 22140#include <stdlib.h> 22141#include <stdarg.h> 22142#include <string.h> 22143#include <float.h> 22144 22145int 22146main () 22147{ 22148 22149 ; 22150 return 0; 22151} 22152_ACEOF 22153if ac_fn_c_try_compile "$LINENO"; then : 22154 ac_cv_header_stdc=yes 22155else 22156 ac_cv_header_stdc=no 22157fi 22158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22159 22160if test $ac_cv_header_stdc = yes; then 22161 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 22162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22163/* end confdefs.h. */ 22164#include <string.h> 22165 22166_ACEOF 22167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22168 $EGREP "memchr" >/dev/null 2>&1; then : 22169 22170else 22171 ac_cv_header_stdc=no 22172fi 22173rm -f conftest* 22174 22175fi 22176 22177if test $ac_cv_header_stdc = yes; then 22178 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 22179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22180/* end confdefs.h. */ 22181#include <stdlib.h> 22182 22183_ACEOF 22184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22185 $EGREP "free" >/dev/null 2>&1; then : 22186 22187else 22188 ac_cv_header_stdc=no 22189fi 22190rm -f conftest* 22191 22192fi 22193 22194if test $ac_cv_header_stdc = yes; then 22195 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 22196 if test "$cross_compiling" = yes; then : 22197 : 22198else 22199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22200/* end confdefs.h. */ 22201#include <ctype.h> 22202#include <stdlib.h> 22203#if ((' ' & 0x0FF) == 0x020) 22204# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 22205# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 22206#else 22207# define ISLOWER(c) \ 22208 (('a' <= (c) && (c) <= 'i') \ 22209 || ('j' <= (c) && (c) <= 'r') \ 22210 || ('s' <= (c) && (c) <= 'z')) 22211# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 22212#endif 22213 22214#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 22215int 22216main () 22217{ 22218 int i; 22219 for (i = 0; i < 256; i++) 22220 if (XOR (islower (i), ISLOWER (i)) 22221 || toupper (i) != TOUPPER (i)) 22222 return 2; 22223 return 0; 22224} 22225_ACEOF 22226if ac_fn_c_try_run "$LINENO"; then : 22227 22228else 22229 ac_cv_header_stdc=no 22230fi 22231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22232 conftest.$ac_objext conftest.beam conftest.$ac_ext 22233fi 22234 22235fi 22236fi 22237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 22238$as_echo "$ac_cv_header_stdc" >&6; } 22239if test $ac_cv_header_stdc = yes; then 22240 22241$as_echo "#define STDC_HEADERS 1" >>confdefs.h 22242 22243fi 22244 22245for ac_header in fcntl.h stdlib.h string.h unistd.h dlfcn.h stropts.h \ 22246 fnmatch.h sys/mkdev.h sys/sysmacros.h sys/utsname.h 22247do : 22248 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22249ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22250if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22251 cat >>confdefs.h <<_ACEOF 22252#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22253_ACEOF 22254 22255fi 22256 22257done 22258 22259 22260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 22261$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 22262if ${ac_cv_c_const+:} false; then : 22263 $as_echo_n "(cached) " >&6 22264else 22265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22266/* end confdefs.h. */ 22267 22268int 22269main () 22270{ 22271 22272#ifndef __cplusplus 22273 /* Ultrix mips cc rejects this sort of thing. */ 22274 typedef int charset[2]; 22275 const charset cs = { 0, 0 }; 22276 /* SunOS 4.1.1 cc rejects this. */ 22277 char const *const *pcpcc; 22278 char **ppc; 22279 /* NEC SVR4.0.2 mips cc rejects this. */ 22280 struct point {int x, y;}; 22281 static struct point const zero = {0,0}; 22282 /* AIX XL C 1.02.0.0 rejects this. 22283 It does not let you subtract one const X* pointer from another in 22284 an arm of an if-expression whose if-part is not a constant 22285 expression */ 22286 const char *g = "string"; 22287 pcpcc = &g + (g ? g-g : 0); 22288 /* HPUX 7.0 cc rejects these. */ 22289 ++pcpcc; 22290 ppc = (char**) pcpcc; 22291 pcpcc = (char const *const *) ppc; 22292 { /* SCO 3.2v4 cc rejects this sort of thing. */ 22293 char tx; 22294 char *t = &tx; 22295 char const *s = 0 ? (char *) 0 : (char const *) 0; 22296 22297 *t++ = 0; 22298 if (s) return 0; 22299 } 22300 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 22301 int x[] = {25, 17}; 22302 const int *foo = &x[0]; 22303 ++foo; 22304 } 22305 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 22306 typedef const int *iptr; 22307 iptr p = 0; 22308 ++p; 22309 } 22310 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 22311 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 22312 struct s { int j; const int *ap[3]; } bx; 22313 struct s *b = &bx; b->j = 5; 22314 } 22315 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 22316 const int foo = 10; 22317 if (!foo) return 0; 22318 } 22319 return !cs[0] && !zero.x; 22320#endif 22321 22322 ; 22323 return 0; 22324} 22325_ACEOF 22326if ac_fn_c_try_compile "$LINENO"; then : 22327 ac_cv_c_const=yes 22328else 22329 ac_cv_c_const=no 22330fi 22331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22332fi 22333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 22334$as_echo "$ac_cv_c_const" >&6; } 22335if test $ac_cv_c_const = no; then 22336 22337$as_echo "#define const /**/" >>confdefs.h 22338 22339fi 22340 22341 22342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5 22343$as_echo_n "checking for typeof syntax and keyword spelling... " >&6; } 22344if ${ac_cv_c_typeof+:} false; then : 22345 $as_echo_n "(cached) " >&6 22346else 22347 ac_cv_c_typeof=no 22348 for ac_kw in typeof __typeof__ no; do 22349 test $ac_kw = no && break 22350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22351/* end confdefs.h. */ 22352 22353int 22354main () 22355{ 22356 22357 int value; 22358 typedef struct { 22359 char a [1 22360 + ! (($ac_kw (value)) 22361 (($ac_kw (value)) 0 < ($ac_kw (value)) -1 22362 ? ($ac_kw (value)) - 1 22363 : ~ (~ ($ac_kw (value)) 0 22364 << sizeof ($ac_kw (value)))))]; } 22365 ac__typeof_type_; 22366 return 22367 (! ((void) ((ac__typeof_type_ *) 0), 0)); 22368 22369 ; 22370 return 0; 22371} 22372_ACEOF 22373if ac_fn_c_try_compile "$LINENO"; then : 22374 ac_cv_c_typeof=$ac_kw 22375fi 22376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22377 test $ac_cv_c_typeof != no && break 22378 done 22379fi 22380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5 22381$as_echo "$ac_cv_c_typeof" >&6; } 22382 if test $ac_cv_c_typeof != no; then 22383 22384$as_echo "#define HAVE_TYPEOF 1" >>confdefs.h 22385 22386 if test $ac_cv_c_typeof != typeof; then 22387 22388cat >>confdefs.h <<_ACEOF 22389#define typeof $ac_cv_c_typeof 22390_ACEOF 22391 22392 fi 22393 fi 22394 22395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 22396$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 22397if ${ac_cv_c_bigendian+:} false; then : 22398 $as_echo_n "(cached) " >&6 22399else 22400 ac_cv_c_bigendian=unknown 22401 # See if we're dealing with a universal compiler. 22402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22403/* end confdefs.h. */ 22404#ifndef __APPLE_CC__ 22405 not a universal capable compiler 22406 #endif 22407 typedef int dummy; 22408 22409_ACEOF 22410if ac_fn_c_try_compile "$LINENO"; then : 22411 22412 # Check for potential -arch flags. It is not universal unless 22413 # there are at least two -arch flags with different values. 22414 ac_arch= 22415 ac_prev= 22416 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 22417 if test -n "$ac_prev"; then 22418 case $ac_word in 22419 i?86 | x86_64 | ppc | ppc64) 22420 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 22421 ac_arch=$ac_word 22422 else 22423 ac_cv_c_bigendian=universal 22424 break 22425 fi 22426 ;; 22427 esac 22428 ac_prev= 22429 elif test "x$ac_word" = "x-arch"; then 22430 ac_prev=arch 22431 fi 22432 done 22433fi 22434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22435 if test $ac_cv_c_bigendian = unknown; then 22436 # See if sys/param.h defines the BYTE_ORDER macro. 22437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22438/* end confdefs.h. */ 22439#include <sys/types.h> 22440 #include <sys/param.h> 22441 22442int 22443main () 22444{ 22445#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 22446 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 22447 && LITTLE_ENDIAN) 22448 bogus endian macros 22449 #endif 22450 22451 ; 22452 return 0; 22453} 22454_ACEOF 22455if ac_fn_c_try_compile "$LINENO"; then : 22456 # It does; now see whether it defined to BIG_ENDIAN or not. 22457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22458/* end confdefs.h. */ 22459#include <sys/types.h> 22460 #include <sys/param.h> 22461 22462int 22463main () 22464{ 22465#if BYTE_ORDER != BIG_ENDIAN 22466 not big endian 22467 #endif 22468 22469 ; 22470 return 0; 22471} 22472_ACEOF 22473if ac_fn_c_try_compile "$LINENO"; then : 22474 ac_cv_c_bigendian=yes 22475else 22476 ac_cv_c_bigendian=no 22477fi 22478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22479fi 22480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22481 fi 22482 if test $ac_cv_c_bigendian = unknown; then 22483 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 22484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22485/* end confdefs.h. */ 22486#include <limits.h> 22487 22488int 22489main () 22490{ 22491#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 22492 bogus endian macros 22493 #endif 22494 22495 ; 22496 return 0; 22497} 22498_ACEOF 22499if ac_fn_c_try_compile "$LINENO"; then : 22500 # It does; now see whether it defined to _BIG_ENDIAN or not. 22501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22502/* end confdefs.h. */ 22503#include <limits.h> 22504 22505int 22506main () 22507{ 22508#ifndef _BIG_ENDIAN 22509 not big endian 22510 #endif 22511 22512 ; 22513 return 0; 22514} 22515_ACEOF 22516if ac_fn_c_try_compile "$LINENO"; then : 22517 ac_cv_c_bigendian=yes 22518else 22519 ac_cv_c_bigendian=no 22520fi 22521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22522fi 22523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22524 fi 22525 if test $ac_cv_c_bigendian = unknown; then 22526 # Compile a test program. 22527 if test "$cross_compiling" = yes; then : 22528 # Try to guess by grepping values from an object file. 22529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22530/* end confdefs.h. */ 22531short int ascii_mm[] = 22532 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 22533 short int ascii_ii[] = 22534 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 22535 int use_ascii (int i) { 22536 return ascii_mm[i] + ascii_ii[i]; 22537 } 22538 short int ebcdic_ii[] = 22539 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 22540 short int ebcdic_mm[] = 22541 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 22542 int use_ebcdic (int i) { 22543 return ebcdic_mm[i] + ebcdic_ii[i]; 22544 } 22545 extern int foo; 22546 22547int 22548main () 22549{ 22550return use_ascii (foo) == use_ebcdic (foo); 22551 ; 22552 return 0; 22553} 22554_ACEOF 22555if ac_fn_c_try_compile "$LINENO"; then : 22556 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 22557 ac_cv_c_bigendian=yes 22558 fi 22559 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 22560 if test "$ac_cv_c_bigendian" = unknown; then 22561 ac_cv_c_bigendian=no 22562 else 22563 # finding both strings is unlikely to happen, but who knows? 22564 ac_cv_c_bigendian=unknown 22565 fi 22566 fi 22567fi 22568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22569else 22570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22571/* end confdefs.h. */ 22572$ac_includes_default 22573int 22574main () 22575{ 22576 22577 /* Are we little or big endian? From Harbison&Steele. */ 22578 union 22579 { 22580 long int l; 22581 char c[sizeof (long int)]; 22582 } u; 22583 u.l = 1; 22584 return u.c[sizeof (long int) - 1] == 1; 22585 22586 ; 22587 return 0; 22588} 22589_ACEOF 22590if ac_fn_c_try_run "$LINENO"; then : 22591 ac_cv_c_bigendian=no 22592else 22593 ac_cv_c_bigendian=yes 22594fi 22595rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22596 conftest.$ac_objext conftest.beam conftest.$ac_ext 22597fi 22598 22599 fi 22600fi 22601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 22602$as_echo "$ac_cv_c_bigendian" >&6; } 22603 case $ac_cv_c_bigendian in #( 22604 yes) 22605 22606$as_echo "#define X_BYTE_ORDER X_BIG_ENDIAN" >>confdefs.h 22607;; #( 22608 no) 22609 22610$as_echo "#define X_BYTE_ORDER X_LITTLE_ENDIAN" >>confdefs.h 22611 ;; #( 22612 universal) 22613 22614$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 22615 22616 ;; #( 22617 *) 22618 as_fn_error $? "unknown endianness 22619 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 22620 esac 22621 22622 22623# The cast to long int works around a bug in the HP C Compiler 22624# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22625# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22626# This bug is HP SR number 8606223364. 22627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 22628$as_echo_n "checking size of unsigned long... " >&6; } 22629if ${ac_cv_sizeof_unsigned_long+:} false; then : 22630 $as_echo_n "(cached) " >&6 22631else 22632 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 22633 22634else 22635 if test "$ac_cv_type_unsigned_long" = yes; then 22636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22638as_fn_error 77 "cannot compute sizeof (unsigned long) 22639See \`config.log' for more details" "$LINENO" 5; } 22640 else 22641 ac_cv_sizeof_unsigned_long=0 22642 fi 22643fi 22644 22645fi 22646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 22647$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 22648 22649 22650 22651cat >>confdefs.h <<_ACEOF 22652#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 22653_ACEOF 22654 22655 22656if test "$ac_cv_sizeof_unsigned_long" = 8; then 22657 22658$as_echo "#define _XSERVER64 1" >>confdefs.h 22659 22660fi 22661 22662ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 22663if test "x$ac_cv_type_pid_t" = xyes; then : 22664 22665else 22666 22667cat >>confdefs.h <<_ACEOF 22668#define pid_t int 22669_ACEOF 22670 22671fi 22672 22673 22674ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 22675if test "x$ac_cv_func_dlopen" = xyes; then : 22676 22677else 22678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 22679$as_echo_n "checking for dlopen in -ldl... " >&6; } 22680if ${ac_cv_lib_dl_dlopen+:} false; then : 22681 $as_echo_n "(cached) " >&6 22682else 22683 ac_check_lib_save_LIBS=$LIBS 22684LIBS="-ldl $LIBS" 22685cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22686/* end confdefs.h. */ 22687 22688/* Override any GCC internal prototype to avoid an error. 22689 Use char because int might match the return type of a GCC 22690 builtin and then its argument prototype would still apply. */ 22691#ifdef __cplusplus 22692extern "C" 22693#endif 22694char dlopen (); 22695int 22696main () 22697{ 22698return dlopen (); 22699 ; 22700 return 0; 22701} 22702_ACEOF 22703if ac_fn_c_try_link "$LINENO"; then : 22704 ac_cv_lib_dl_dlopen=yes 22705else 22706 ac_cv_lib_dl_dlopen=no 22707fi 22708rm -f core conftest.err conftest.$ac_objext \ 22709 conftest$ac_exeext conftest.$ac_ext 22710LIBS=$ac_check_lib_save_LIBS 22711fi 22712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 22713$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 22714if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 22715 DLOPEN_LIBS="-ldl" 22716fi 22717 22718fi 22719 22720 22721 22722for ac_func in backtrace geteuid getuid issetugid getresuid \ 22723 getdtablesize getifaddrs getpeereid getpeerucred getprogname getzoneid \ 22724 mmap posix_fallocate seteuid shmctl64 strncasecmp vasprintf vsnprintf \ 22725 walkcontext setitimer poll epoll_create1 mkostemp memfd_create isastream 22726do : 22727 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22728ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22729if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22730 cat >>confdefs.h <<_ACEOF 22731#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22732_ACEOF 22733 22734fi 22735done 22736 22737 22738ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 22739if test "x$ac_cv_func_reallocarray" = xyes; then : 22740 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h 22741 22742else 22743 case " $LIBOBJS " in 22744 *" reallocarray.$ac_objext "* ) ;; 22745 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 22746 ;; 22747esac 22748 22749fi 22750 22751ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 22752if test "x$ac_cv_func_strcasecmp" = xyes; then : 22753 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h 22754 22755else 22756 case " $LIBOBJS " in 22757 *" strcasecmp.$ac_objext "* ) ;; 22758 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 22759 ;; 22760esac 22761 22762fi 22763 22764ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 22765if test "x$ac_cv_func_strcasestr" = xyes; then : 22766 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h 22767 22768else 22769 case " $LIBOBJS " in 22770 *" strcasestr.$ac_objext "* ) ;; 22771 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" 22772 ;; 22773esac 22774 22775fi 22776 22777ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 22778if test "x$ac_cv_func_strlcat" = xyes; then : 22779 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 22780 22781else 22782 case " $LIBOBJS " in 22783 *" strlcat.$ac_objext "* ) ;; 22784 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 22785 ;; 22786esac 22787 22788fi 22789 22790ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 22791if test "x$ac_cv_func_strlcpy" = xyes; then : 22792 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 22793 22794else 22795 case " $LIBOBJS " in 22796 *" strlcpy.$ac_objext "* ) ;; 22797 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 22798 ;; 22799esac 22800 22801fi 22802 22803ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 22804if test "x$ac_cv_func_strndup" = xyes; then : 22805 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h 22806 22807else 22808 case " $LIBOBJS " in 22809 *" strndup.$ac_objext "* ) ;; 22810 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" 22811 ;; 22812esac 22813 22814fi 22815 22816ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp" 22817if test "x$ac_cv_func_timingsafe_memcmp" = xyes; then : 22818 $as_echo "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h 22819 22820else 22821 case " $LIBOBJS " in 22822 *" timingsafe_memcmp.$ac_objext "* ) ;; 22823 *) LIBOBJS="$LIBOBJS timingsafe_memcmp.$ac_objext" 22824 ;; 22825esac 22826 22827fi 22828 22829 22830 if test "x$ac_cv_func_poll" = "xyes"; then 22831 POLL_TRUE= 22832 POLL_FALSE='#' 22833else 22834 POLL_TRUE='#' 22835 POLL_FALSE= 22836fi 22837 22838 22839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5 22840$as_echo_n "checking for arc4random_buf in -lbsd... " >&6; } 22841if ${ac_cv_lib_bsd_arc4random_buf+:} false; then : 22842 $as_echo_n "(cached) " >&6 22843else 22844 ac_check_lib_save_LIBS=$LIBS 22845LIBS="-lbsd $LIBS" 22846cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22847/* end confdefs.h. */ 22848 22849/* Override any GCC internal prototype to avoid an error. 22850 Use char because int might match the return type of a GCC 22851 builtin and then its argument prototype would still apply. */ 22852#ifdef __cplusplus 22853extern "C" 22854#endif 22855char arc4random_buf (); 22856int 22857main () 22858{ 22859return arc4random_buf (); 22860 ; 22861 return 0; 22862} 22863_ACEOF 22864if ac_fn_c_try_link "$LINENO"; then : 22865 ac_cv_lib_bsd_arc4random_buf=yes 22866else 22867 ac_cv_lib_bsd_arc4random_buf=no 22868fi 22869rm -f core conftest.err conftest.$ac_objext \ 22870 conftest$ac_exeext conftest.$ac_ext 22871LIBS=$ac_check_lib_save_LIBS 22872fi 22873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5 22874$as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; } 22875if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then : 22876 cat >>confdefs.h <<_ACEOF 22877#define HAVE_LIBBSD 1 22878_ACEOF 22879 22880 LIBS="-lbsd $LIBS" 22881 22882fi 22883 22884for ac_func in arc4random_buf 22885do : 22886 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf" 22887if test "x$ac_cv_func_arc4random_buf" = xyes; then : 22888 cat >>confdefs.h <<_ACEOF 22889#define HAVE_ARC4RANDOM_BUF 1 22890_ACEOF 22891 22892fi 22893done 22894 22895 22896ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 22897" 22898if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then : 22899 ac_have_decl=1 22900else 22901 ac_have_decl=0 22902fi 22903 22904cat >>confdefs.h <<_ACEOF 22905#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl 22906_ACEOF 22907 22908 22909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_PEERCRED in sys/socket.h" >&5 22910$as_echo_n "checking for SO_PEERCRED in sys/socket.h... " >&6; } 22911if ${xorg_cv_sys_have_so_peercred+:} false; then : 22912 $as_echo_n "(cached) " >&6 22913else 22914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22915/* end confdefs.h. */ 22916 22917#include <sys/types.h> 22918#include <sys/socket.h> 22919#ifdef SO_PEERCRED 22920yes_have_so_peercred 22921#endif 22922 22923_ACEOF 22924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22925 $EGREP "yes_have_so_peercred" >/dev/null 2>&1; then : 22926 xorg_cv_sys_have_so_peercred=yes 22927else 22928 xorg_cv_sys_have_so_peercred=no 22929fi 22930rm -f conftest* 22931 22932fi 22933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_sys_have_so_peercred" >&5 22934$as_echo "$xorg_cv_sys_have_so_peercred" >&6; } 22935 22936if test "x$ac_cv_func_getpeereid" = xno && test "x$ac_cv_func_getpeerucred" = xno && test "x$xorg_cv_sys_have_so_peercred" = xno ; then 22937 22938$as_echo "#define NO_LOCAL_CLIENT_CRED 1" >>confdefs.h 22939 22940fi 22941 22942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 22943$as_echo_n "checking for sqrt in -lm... " >&6; } 22944if ${ac_cv_lib_m_sqrt+:} false; then : 22945 $as_echo_n "(cached) " >&6 22946else 22947 ac_check_lib_save_LIBS=$LIBS 22948LIBS="-lm $LIBS" 22949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22950/* end confdefs.h. */ 22951 22952/* Override any GCC internal prototype to avoid an error. 22953 Use char because int might match the return type of a GCC 22954 builtin and then its argument prototype would still apply. */ 22955#ifdef __cplusplus 22956extern "C" 22957#endif 22958char sqrt (); 22959int 22960main () 22961{ 22962return sqrt (); 22963 ; 22964 return 0; 22965} 22966_ACEOF 22967if ac_fn_c_try_link "$LINENO"; then : 22968 ac_cv_lib_m_sqrt=yes 22969else 22970 ac_cv_lib_m_sqrt=no 22971fi 22972rm -f core conftest.err conftest.$ac_objext \ 22973 conftest$ac_exeext conftest.$ac_ext 22974LIBS=$ac_check_lib_save_LIBS 22975fi 22976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 22977$as_echo "$ac_cv_lib_m_sqrt" >&6; } 22978if test "x$ac_cv_lib_m_sqrt" = xyes; then : 22979 cat >>confdefs.h <<_ACEOF 22980#define HAVE_LIBM 1 22981_ACEOF 22982 22983 LIBS="-lm $LIBS" 22984 22985fi 22986 22987for ac_func in cbrt 22988do : 22989 ac_fn_c_check_func "$LINENO" "cbrt" "ac_cv_func_cbrt" 22990if test "x$ac_cv_func_cbrt" = xyes; then : 22991 cat >>confdefs.h <<_ACEOF 22992#define HAVE_CBRT 1 22993_ACEOF 22994 22995fi 22996done 22997 22998 22999for ac_header in linux/agpgart.h sys/agpio.h sys/agpgart.h 23000do : 23001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23002ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23003if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23004 cat >>confdefs.h <<_ACEOF 23005#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23006_ACEOF 23007 AGP=yes 23008fi 23009 23010done 23011 23012 if test "x$AGP" = xyes; then 23013 AGP_TRUE= 23014 AGP_FALSE='#' 23015else 23016 AGP_TRUE='#' 23017 AGP_FALSE= 23018fi 23019 23020 23021for ac_header in linux/fb.h 23022do : 23023 ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default" 23024if test "x$ac_cv_header_linux_fb_h" = xyes; then : 23025 cat >>confdefs.h <<_ACEOF 23026#define HAVE_LINUX_FB_H 1 23027_ACEOF 23028 FBDEV=yes 23029fi 23030 23031done 23032 23033 if test "x$FBDEV" = xyes; then 23034 FBDEVHW_TRUE= 23035 FBDEVHW_FALSE='#' 23036else 23037 FBDEVHW_TRUE='#' 23038 FBDEVHW_FALSE= 23039fi 23040 23041 23042for ac_header in sys/linker.h 23043do : 23044 ac_fn_c_check_header_compile "$LINENO" "sys/linker.h" "ac_cv_header_sys_linker_h" "#include <sys/param.h> 23045" 23046if test "x$ac_cv_header_sys_linker_h" = xyes; then : 23047 cat >>confdefs.h <<_ACEOF 23048#define HAVE_SYS_LINKER_H 1 23049_ACEOF 23050 ac_cv_sys_linker_h=yes 23051else 23052 ac_cv_sys_linker_h=no 23053fi 23054 23055done 23056 23057 if test "x$ac_cv_sys_linker_h" = xyes; then 23058 FREEBSD_KLDLOAD_TRUE= 23059 FREEBSD_KLDLOAD_FALSE='#' 23060else 23061 FREEBSD_KLDLOAD_TRUE='#' 23062 FREEBSD_KLDLOAD_FALSE= 23063fi 23064 23065 23066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSV IPC" >&5 23067$as_echo_n "checking for SYSV IPC... " >&6; } 23068if ${ac_cv_sysv_ipc+:} false; then : 23069 $as_echo_n "(cached) " >&6 23070else 23071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23072/* end confdefs.h. */ 23073 23074#include <sys/types.h> 23075#include <sys/ipc.h> 23076#include <sys/shm.h> 23077#include <sys/stat.h> 23078 23079int 23080main () 23081{ 23082 23083{ 23084 int id; 23085 id = shmget(IPC_PRIVATE, 512, S_IRUSR | S_IWUSR); 23086 if (id < 0) return -1; 23087 return shmctl(id, IPC_RMID, 0); 23088} 23089 ; 23090 return 0; 23091} 23092_ACEOF 23093if ac_fn_c_try_link "$LINENO"; then : 23094 ac_cv_sysv_ipc=yes 23095else 23096 ac_cv_sysv_ipc=no 23097fi 23098rm -f core conftest.err conftest.$ac_objext \ 23099 conftest$ac_exeext conftest.$ac_ext 23100fi 23101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_ipc" >&5 23102$as_echo "$ac_cv_sysv_ipc" >&6; } 23103if test "x$ac_cv_sysv_ipc" = xyes; then 23104 23105$as_echo "#define HAVE_SYSV_IPC 1" >>confdefs.h 23106 23107fi 23108 23109if test -c /dev/xf86 ; then 23110 23111$as_echo "#define HAS_APERTURE_DRV 1" >>confdefs.h 23112 23113fi 23114 23115ac_fn_c_check_header_mongrel "$LINENO" "machine/apmvar.h" "ac_cv_header_machine_apmvar_h" "$ac_includes_default" 23116if test "x$ac_cv_header_machine_apmvar_h" = xyes; then : 23117 23118 ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default" 23119if test "x$ac_cv_header_sys_event_h" = xyes; then : 23120 ac_cv_BSD_KQUEUE_APM=yes 23121else 23122 ac_cv_BSD_APM=yes 23123fi 23124 23125 23126fi 23127 23128 23129 23130 if test "x$ac_cv_BSD_APM" = xyes; then 23131 BSD_APM_TRUE= 23132 BSD_APM_FALSE='#' 23133else 23134 BSD_APM_TRUE='#' 23135 BSD_APM_FALSE= 23136fi 23137 23138 if test "x$ac_cv_BSD_KQUEUE_APM" = xyes; then 23139 BSD_KQUEUE_APM_TRUE= 23140 BSD_KQUEUE_APM_FALSE='#' 23141else 23142 BSD_KQUEUE_APM_TRUE='#' 23143 BSD_KQUEUE_APM_FALSE= 23144fi 23145 23146 23147ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" 23148if test "x$ac_cv_header_execinfo_h" = xyes; then : 23149 23150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lc" >&5 23151$as_echo_n "checking for backtrace in -lc... " >&6; } 23152if ${ac_cv_lib_c_backtrace+:} false; then : 23153 $as_echo_n "(cached) " >&6 23154else 23155 ac_check_lib_save_LIBS=$LIBS 23156LIBS="-lc $LIBS" 23157cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23158/* end confdefs.h. */ 23159 23160/* Override any GCC internal prototype to avoid an error. 23161 Use char because int might match the return type of a GCC 23162 builtin and then its argument prototype would still apply. */ 23163#ifdef __cplusplus 23164extern "C" 23165#endif 23166char backtrace (); 23167int 23168main () 23169{ 23170return backtrace (); 23171 ; 23172 return 0; 23173} 23174_ACEOF 23175if ac_fn_c_try_link "$LINENO"; then : 23176 ac_cv_lib_c_backtrace=yes 23177else 23178 ac_cv_lib_c_backtrace=no 23179fi 23180rm -f core conftest.err conftest.$ac_objext \ 23181 conftest$ac_exeext conftest.$ac_ext 23182LIBS=$ac_check_lib_save_LIBS 23183fi 23184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_backtrace" >&5 23185$as_echo "$ac_cv_lib_c_backtrace" >&6; } 23186if test "x$ac_cv_lib_c_backtrace" = xyes; then : 23187 23188 23189$as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h 23190 23191 23192$as_echo "#define HAVE_EXECINFO_H 1" >>confdefs.h 23193 23194 23195fi 23196 23197 23198fi 23199 23200 23201 23202DEFAULT_INT10="x86emu" 23203 23204 23205case $host_cpu in 23206 alpha*) 23207 ALPHA_VIDEO=yes 23208 case $host_os in 23209 *freebsd*) SYS_LIBS=-lio ;; 23210 *netbsd*) 23211$as_echo "#define USE_ALPHA_PIO 1" >>confdefs.h 23212 ;; 23213 esac 23214 GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee" 23215 ;; 23216 arm*) 23217 ARM_VIDEO=yes 23218 DEFAULT_INT10="stub" 23219 ;; 23220 i*86) 23221 I386_VIDEO=yes 23222 case $host_os in 23223 *freebsd*) $as_echo "#define USE_DEV_IO 1" >>confdefs.h 23224 ;; 23225 *dragonfly*) $as_echo "#define USE_DEV_IO 1" >>confdefs.h 23226 ;; 23227 *netbsd*) $as_echo "#define USE_I386_IOPL 1" >>confdefs.h 23228 23229 SYS_LIBS=-li386 23230 ;; 23231 *openbsd*) $as_echo "#define USE_I386_IOPL 1" >>confdefs.h 23232 23233 SYS_LIBS=-li386 23234 ;; 23235 esac 23236 ;; 23237 powerpc*) 23238 PPC_VIDEO=yes 23239 case $host_os in 23240 *freebsd*) DEFAULT_INT10=stub ;; 23241 esac 23242 ;; 23243 sparc*) 23244 SPARC64_VIDEO=yes 23245 BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c" 23246 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 23247 ;; 23248 x86_64*|amd64*) 23249 I386_VIDEO=yes 23250 case $host_os in 23251 *freebsd*) 23252$as_echo "#define USE_DEV_IO 1" >>confdefs.h 23253 ;; 23254 *dragonfly*) 23255$as_echo "#define USE_DEV_IO 1" >>confdefs.h 23256 ;; 23257 *netbsd*) 23258$as_echo "#define USE_I386_IOPL 1" >>confdefs.h 23259 23260 SYS_LIBS=-lx86_64 23261 ;; 23262 *openbsd*) 23263$as_echo "#define USE_AMD64_IOPL 1" >>confdefs.h 23264 23265 SYS_LIBS=-lamd64 23266 ;; 23267 esac 23268 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 23269 ;; 23270 ia64*) 23271 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 23272 ;; 23273 s390*) 23274 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 23275 ;; 23276esac 23277 23278 23279 if test "x$ALPHA_VIDEO" = xyes; then 23280 ALPHA_VIDEO_TRUE= 23281 ALPHA_VIDEO_FALSE='#' 23282else 23283 ALPHA_VIDEO_TRUE='#' 23284 ALPHA_VIDEO_FALSE= 23285fi 23286 23287 if test "x$ARM_VIDEO" = xyes; then 23288 ARM_VIDEO_TRUE= 23289 ARM_VIDEO_FALSE='#' 23290else 23291 ARM_VIDEO_TRUE='#' 23292 ARM_VIDEO_FALSE= 23293fi 23294 23295 if test "x$I386_VIDEO" = xyes; then 23296 I386_VIDEO_TRUE= 23297 I386_VIDEO_FALSE='#' 23298else 23299 I386_VIDEO_TRUE='#' 23300 I386_VIDEO_FALSE= 23301fi 23302 23303 if test "x$PPC_VIDEO" = xyes; then 23304 PPC_VIDEO_TRUE= 23305 PPC_VIDEO_FALSE='#' 23306else 23307 PPC_VIDEO_TRUE='#' 23308 PPC_VIDEO_FALSE= 23309fi 23310 23311 if test "x$SPARC64_VIDEO" = xyes; then 23312 SPARC64_VIDEO_TRUE= 23313 SPARC64_VIDEO_FALSE='#' 23314else 23315 SPARC64_VIDEO_TRUE='#' 23316 SPARC64_VIDEO_FALSE= 23317fi 23318 23319 23320DRI=no 23321case $host_os in 23322 *freebsd* | *dragonfly*) 23323 case $host_os in 23324 kfreebsd*-gnu) ;; 23325 *) 23326$as_echo "#define CSRG_BASED 1" >>confdefs.h 23327 ;; 23328 esac 23329 23330$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h 23331 23332 23333$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h 23334 23335 23336$as_echo "#define SYSCONS_SUPPORT 1" >>confdefs.h 23337 23338 DRI=yes 23339 ;; 23340 *netbsd*) 23341 23342$as_echo "#define CSRG_BASED 1" >>confdefs.h 23343 23344 23345$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h 23346 23347 23348$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h 23349 23350 23351$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h 23352 23353 DRI=yes 23354 ;; 23355 *openbsd*) 23356 23357$as_echo "#define CSRG_BASED 1" >>confdefs.h 23358 23359 23360$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h 23361 23362 23363$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h 23364 23365 ;; 23366 *linux*) 23367 DRI=yes 23368 ;; 23369 *solaris*) 23370 DRI=yes 23371 ;; 23372 darwin*) 23373 23374$as_echo "#define CSRG_BASED 1" >>confdefs.h 23375 23376 ;; 23377 cygwin*|mingw*) 23378 CFLAGS="$CFLAGS -DFD_SETSIZE=512" 23379 ;; 23380esac 23381 23382PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1` 23383PVS=`echo $PACKAGE_VERSION | cut -d . -f 4 | cut -d - -f 1` 23384if test "x$PVS" = "x"; then 23385 PVS="0" 23386fi 23387 23388VENDOR_RELEASE="((($PVMAJOR) * 10000000) + (($PVM) * 100000) + (($PVP) * 1000) + $PVS)" 23389VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}" 23390 23391VENDOR_NAME="The X.Org Foundation" 23392VENDOR_NAME_SHORT="X.Org" 23393VENDOR_WEB="http://wiki.x.org" 23394 23395# Check whether --enable-werror was given. 23396if test "${enable_werror+set}" = set; then : 23397 enableval=$enable_werror; as_fn_error $? "--enable-werror has been replaced by --enable-strict-compilation" "$LINENO" 5 23398fi 23399 23400 23401# Check whether --enable-debug was given. 23402if test "${enable_debug+set}" = set; then : 23403 enableval=$enable_debug; DEBUGGING=$enableval 23404else 23405 DEBUGGING=no 23406fi 23407 23408 23409# Check whether --with-int10 was given. 23410if test "${with_int10+set}" = set; then : 23411 withval=$with_int10; INT10="$withval" 23412else 23413 INT10="$DEFAULT_INT10" 23414fi 23415 23416 23417# Check whether --with-vendor-name was given. 23418if test "${with_vendor_name+set}" = set; then : 23419 withval=$with_vendor_name; VENDOR_NAME="$withval" 23420fi 23421 23422 23423# Check whether --with-vendor-name-short was given. 23424if test "${with_vendor_name_short+set}" = set; then : 23425 withval=$with_vendor_name_short; VENDOR_NAME_SHORT="$withval" 23426fi 23427 23428 23429# Check whether --with-vendor-web was given. 23430if test "${with_vendor_web+set}" = set; then : 23431 withval=$with_vendor_web; VENDOR_WEB="$withval" 23432fi 23433 23434 23435# Check whether --with-module-dir was given. 23436if test "${with_module_dir+set}" = set; then : 23437 withval=$with_module_dir; moduledir="$withval" 23438else 23439 moduledir="${libdir}/xorg/modules" 23440fi 23441 23442 23443# Check whether --with-log-dir was given. 23444if test "${with_log_dir+set}" = set; then : 23445 withval=$with_log_dir; logdir="$withval" 23446else 23447 logdir="$localstatedir/log" 23448fi 23449 23450 23451# Check whether --with-builder-addr was given. 23452if test "${with_builder_addr+set}" = set; then : 23453 withval=$with_builder_addr; BUILDERADDR="$withval" 23454else 23455 BUILDERADDR="xorg@lists.freedesktop.org" 23456fi 23457 23458 23459# Check whether --with-os-name was given. 23460if test "${with_os_name+set}" = set; then : 23461 withval=$with_os_name; OSNAME="$withval" 23462else 23463 OSNAME=`uname -srm` 23464fi 23465 23466 23467# Check whether --with-os-vendor was given. 23468if test "${with_os_vendor+set}" = set; then : 23469 withval=$with_os_vendor; OSVENDOR="$withval" 23470else 23471 OSVENDOR="" 23472fi 23473 23474 23475# Check whether --with-builderstring was given. 23476if test "${with_builderstring+set}" = set; then : 23477 withval=$with_builderstring; BUILDERSTRING="$withval" 23478 23479fi 23480 23481# Check whether --enable-listen-tcp was given. 23482if test "${enable_listen_tcp+set}" = set; then : 23483 enableval=$enable_listen_tcp; LISTEN_TCP=$enableval 23484else 23485 LISTEN_TCP=no 23486fi 23487 23488# Check whether --enable-listen-unix was given. 23489if test "${enable_listen_unix+set}" = set; then : 23490 enableval=$enable_listen_unix; LISTEN_UNIX=$enableval 23491else 23492 LISTEN_UNIX=yes 23493fi 23494 23495 23496# Check whether --enable-listen-local was given. 23497if test "${enable_listen_local+set}" = set; then : 23498 enableval=$enable_listen_local; LISTEN_LOCAL=$enableval 23499else 23500 LISTEN_LOCAL=yes 23501fi 23502 23503 23504case $host_os in 23505 linux*) 23506 FALLBACK_INPUT_DRIVER="libinput" 23507 ;; 23508 *) 23509 FALLBACK_INPUT_DRIVER="" 23510 ;; 23511esac 23512 23513# Check whether --with-fallback-input-driver was given. 23514if test "${with_fallback_input_driver+set}" = set; then : 23515 withval=$with_fallback_input_driver; FALLBACK_INPUT_DRIVER=$withval 23516fi 23517 23518if test "x$FALLBACK_INPUT_DRIVER" = "xno"; then 23519 FALLBACK_INPUT_DRIVER="" 23520fi 23521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallback input driver" >&5 23522$as_echo_n "checking for fallback input driver... " >&6; } 23523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALLBACK_INPUT_DRIVER" >&5 23524$as_echo "$FALLBACK_INPUT_DRIVER" >&6; } 23525 23526cat >>confdefs.h <<_ACEOF 23527#define FALLBACK_INPUT_DRIVER "$FALLBACK_INPUT_DRIVER" 23528_ACEOF 23529 23530 23531 23532 23533 23534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5 23535$as_echo_n "checking for root directory for font files... " >&6; } 23536 23537# Check whether --with-fontrootdir was given. 23538if test "${with_fontrootdir+set}" = set; then : 23539 withval=$with_fontrootdir; FONTROOTDIR="$withval" 23540fi 23541 23542 # if --with-fontrootdir not specified... 23543 if test "x${FONTROOTDIR}" = "x"; then 23544 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil` 23545 fi 23546 # ...and if pkg-config didn't find fontdir in fontutil.pc... 23547 if test "x${FONTROOTDIR}" = "x"; then 23548 FONTROOTDIR="${datadir}/fonts/X11" 23549 fi 23550 23551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5 23552$as_echo "${FONTROOTDIR}" >&6; } 23553 23554 23555 23556 23557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5 23558$as_echo_n "checking for directory for misc files... " >&6; } 23559 23560# Check whether --with-fontmiscdir was given. 23561if test "${with_fontmiscdir+set}" = set; then : 23562 withval=$with_fontmiscdir; FONTMISCDIR="${withval}" 23563else 23564 FONTMISCDIR='${FONTROOTDIR}/misc' 23565fi 23566 23567 23568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5 23569$as_echo "${FONTMISCDIR}" >&6; } 23570 23571 23572 23573 23574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5 23575$as_echo_n "checking for directory for OTF files... " >&6; } 23576 23577# Check whether --with-fontotfdir was given. 23578if test "${with_fontotfdir+set}" = set; then : 23579 withval=$with_fontotfdir; FONTOTFDIR="${withval}" 23580else 23581 FONTOTFDIR='${FONTROOTDIR}/OTF' 23582fi 23583 23584 23585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5 23586$as_echo "${FONTOTFDIR}" >&6; } 23587 23588 23589 23590 23591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5 23592$as_echo_n "checking for directory for TTF files... " >&6; } 23593 23594# Check whether --with-fontttfdir was given. 23595if test "${with_fontttfdir+set}" = set; then : 23596 withval=$with_fontttfdir; FONTTTFDIR="${withval}" 23597else 23598 FONTTTFDIR='${FONTROOTDIR}/TTF' 23599fi 23600 23601 23602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5 23603$as_echo "${FONTTTFDIR}" >&6; } 23604 23605 23606 23607 23608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5 23609$as_echo_n "checking for directory for Type1 files... " >&6; } 23610 23611# Check whether --with-fonttype1dir was given. 23612if test "${with_fonttype1dir+set}" = set; then : 23613 withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}" 23614else 23615 FONTTYPE1DIR='${FONTROOTDIR}/Type1' 23616fi 23617 23618 23619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5 23620$as_echo "${FONTTYPE1DIR}" >&6; } 23621 23622 23623 23624 23625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5 23626$as_echo_n "checking for directory for 75dpi files... " >&6; } 23627 23628# Check whether --with-font75dpidir was given. 23629if test "${with_font75dpidir+set}" = set; then : 23630 withval=$with_font75dpidir; FONT75DPIDIR="${withval}" 23631else 23632 FONT75DPIDIR='${FONTROOTDIR}/75dpi' 23633fi 23634 23635 23636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5 23637$as_echo "${FONT75DPIDIR}" >&6; } 23638 23639 23640 23641 23642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5 23643$as_echo_n "checking for directory for 100dpi files... " >&6; } 23644 23645# Check whether --with-font100dpidir was given. 23646if test "${with_font100dpidir+set}" = set; then : 23647 withval=$with_font100dpidir; FONT100DPIDIR="${withval}" 23648else 23649 FONT100DPIDIR='${FONTROOTDIR}/100dpi' 23650fi 23651 23652 23653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5 23654$as_echo "${FONT100DPIDIR}" >&6; } 23655 23656 23657DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/" 23658case $host_os in 23659 darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;; 23660esac 23661 23662 23663# Check whether --with-default-font-path was given. 23664if test "${with_default_font_path+set}" = set; then : 23665 withval=$with_default_font_path; FONTPATH="$withval" 23666else 23667 FONTPATH="${DEFAULT_FONT_PATH}" 23668fi 23669 23670 23671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5 23672$as_echo_n "checking for default font path... " >&6; } 23673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5 23674$as_echo "$FONTPATH" >&6; } 23675 23676 23677# Check whether --with-xkb-path was given. 23678if test "${with_xkb_path+set}" = set; then : 23679 withval=$with_xkb_path; XKBPATH="$withval" 23680else 23681 XKBPATH="auto" 23682fi 23683 23684 23685# Check whether --with-xkb-output was given. 23686if test "${with_xkb_output+set}" = set; then : 23687 withval=$with_xkb_output; XKBOUTPUT="$withval" 23688else 23689 XKBOUTPUT="compiled" 23690fi 23691 23692 23693# Check whether --with-default-xkb-rules was given. 23694if test "${with_default_xkb_rules+set}" = set; then : 23695 withval=$with_default_xkb_rules; XKB_DFLT_RULES="$withval" 23696else 23697 XKB_DFLT_RULES="" 23698fi 23699 23700 23701# Check whether --with-default-xkb-model was given. 23702if test "${with_default_xkb_model+set}" = set; then : 23703 withval=$with_default_xkb_model; XKB_DFLT_MODEL="$withval" 23704else 23705 XKB_DFLT_MODEL="pc105" 23706fi 23707 23708 23709# Check whether --with-default-xkb-layout was given. 23710if test "${with_default_xkb_layout+set}" = set; then : 23711 withval=$with_default_xkb_layout; XKB_DFLT_LAYOUT="$withval" 23712else 23713 XKB_DFLT_LAYOUT="us" 23714fi 23715 23716 23717# Check whether --with-default-xkb-variant was given. 23718if test "${with_default_xkb_variant+set}" = set; then : 23719 withval=$with_default_xkb_variant; XKB_DFLT_VARIANT="$withval" 23720else 23721 XKB_DFLT_VARIANT="" 23722fi 23723 23724 23725# Check whether --with-default-xkb-options was given. 23726if test "${with_default_xkb_options+set}" = set; then : 23727 withval=$with_default_xkb_options; XKB_DFLT_OPTIONS="$withval" 23728else 23729 XKB_DFLT_OPTIONS="" 23730fi 23731 23732 23733# Check whether --with-serverconfig-path was given. 23734if test "${with_serverconfig_path+set}" = set; then : 23735 withval=$with_serverconfig_path; SERVERCONFIG="$withval" 23736else 23737 SERVERCONFIG="${libdir}/xorg" 23738fi 23739 23740 23741# Check whether --with-apple-applications-dir was given. 23742if test "${with_apple_applications_dir+set}" = set; then : 23743 withval=$with_apple_applications_dir; APPLE_APPLICATIONS_DIR="${withval}" 23744else 23745 APPLE_APPLICATIONS_DIR="/Applications/Utilities" 23746fi 23747 23748 23749 23750# Check whether --with-apple-application-name was given. 23751if test "${with_apple_application_name+set}" = set; then : 23752 withval=$with_apple_application_name; APPLE_APPLICATION_NAME="${withval}" 23753else 23754 APPLE_APPLICATION_NAME="X11" 23755fi 23756 23757 23758 23759# Check whether --with-bundle-id-prefix was given. 23760if test "${with_bundle_id_prefix+set}" = set; then : 23761 withval=$with_bundle_id_prefix; BUNDLE_ID_PREFIX="${withval}" 23762fi 23763 23764 23765 23766cat >>confdefs.h <<_ACEOF 23767#define BUNDLE_ID_PREFIX "$BUNDLE_ID_PREFIX" 23768_ACEOF 23769 23770 23771 23772# Check whether --with-bundle-version was given. 23773if test "${with_bundle_version+set}" = set; then : 23774 withval=$with_bundle_version; BUNDLE_VERSION="${withval}" 23775else 23776 BUNDLE_VERSION="1.20.12" 23777fi 23778 23779 23780 23781# Check whether --with-bundle-version-string was given. 23782if test "${with_bundle_version_string+set}" = set; then : 23783 withval=$with_bundle_version_string; BUNDLE_VERSION_STRING="${withval}" 23784else 23785 BUNDLE_VERSION_STRING="${PACKAGE_VERSION}" 23786fi 23787 23788 23789# Check whether --enable-sparkle was given. 23790if test "${enable_sparkle+set}" = set; then : 23791 enableval=$enable_sparkle; XQUARTZ_SPARKLE="${enableval}" 23792else 23793 XQUARTZ_SPARKLE="no" 23794fi 23795 23796 23797 23798# Check whether --with-sparkle-feed-url was given. 23799if test "${with_sparkle_feed_url+set}" = set; then : 23800 withval=$with_sparkle_feed_url; XQUARTZ_SPARKLE_FEED_URL="${withval}" 23801else 23802 XQUARTZ_SPARKLE_FEED_URL="https://www.xquartz.org/releases/sparkle/release.xml" 23803fi 23804 23805 23806# Check whether --enable-visibility was given. 23807if test "${enable_visibility+set}" = set; then : 23808 enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval 23809else 23810 SYMBOL_VISIBILITY=auto 23811fi 23812 23813 23814 23815# Check whether --with-khronos-spec-dir was given. 23816if test "${with_khronos_spec_dir+set}" = set; then : 23817 withval=$with_khronos_spec_dir; KHRONOS_SPEC_DIR="${withval}" 23818else 23819 KHRONOS_SPEC_DIR=auto 23820fi 23821 23822 23823# Check whether --enable-composite was given. 23824if test "${enable_composite+set}" = set; then : 23825 enableval=$enable_composite; COMPOSITE=$enableval 23826else 23827 COMPOSITE=yes 23828fi 23829 23830# Check whether --enable-mitshm was given. 23831if test "${enable_mitshm+set}" = set; then : 23832 enableval=$enable_mitshm; MITSHM=$enableval 23833else 23834 MITSHM=auto 23835fi 23836 23837# Check whether --enable-xres was given. 23838if test "${enable_xres+set}" = set; then : 23839 enableval=$enable_xres; RES=$enableval 23840else 23841 RES=yes 23842fi 23843 23844# Check whether --enable-record was given. 23845if test "${enable_record+set}" = set; then : 23846 enableval=$enable_record; RECORD=$enableval 23847else 23848 RECORD=yes 23849fi 23850 23851# Check whether --enable-xv was given. 23852if test "${enable_xv+set}" = set; then : 23853 enableval=$enable_xv; XV=$enableval 23854else 23855 XV=yes 23856fi 23857 23858# Check whether --enable-xvmc was given. 23859if test "${enable_xvmc+set}" = set; then : 23860 enableval=$enable_xvmc; XVMC=$enableval 23861else 23862 XVMC=yes 23863fi 23864 23865# Check whether --enable-dga was given. 23866if test "${enable_dga+set}" = set; then : 23867 enableval=$enable_dga; DGA=$enableval 23868else 23869 DGA=auto 23870fi 23871 23872# Check whether --enable-screensaver was given. 23873if test "${enable_screensaver+set}" = set; then : 23874 enableval=$enable_screensaver; SCREENSAVER=$enableval 23875else 23876 SCREENSAVER=yes 23877fi 23878 23879# Check whether --enable-xdmcp was given. 23880if test "${enable_xdmcp+set}" = set; then : 23881 enableval=$enable_xdmcp; XDMCP=$enableval 23882else 23883 XDMCP=auto 23884fi 23885 23886# Check whether --enable-xdm-auth-1 was given. 23887if test "${enable_xdm_auth_1+set}" = set; then : 23888 enableval=$enable_xdm_auth_1; XDMAUTH=$enableval 23889else 23890 XDMAUTH=auto 23891fi 23892 23893# Check whether --enable-glx was given. 23894if test "${enable_glx+set}" = set; then : 23895 enableval=$enable_glx; GLX=$enableval 23896else 23897 GLX=yes 23898fi 23899 23900# Check whether --enable-dri was given. 23901if test "${enable_dri+set}" = set; then : 23902 enableval=$enable_dri; DRI=$enableval 23903fi 23904 23905# Check whether --enable-dri2 was given. 23906if test "${enable_dri2+set}" = set; then : 23907 enableval=$enable_dri2; DRI2=$enableval 23908else 23909 DRI2=auto 23910fi 23911 23912# Check whether --enable-dri3 was given. 23913if test "${enable_dri3+set}" = set; then : 23914 enableval=$enable_dri3; DRI3=$enableval 23915else 23916 DRI3=auto 23917fi 23918 23919# Check whether --enable-present was given. 23920if test "${enable_present+set}" = set; then : 23921 enableval=$enable_present; PRESENT=$enableval 23922else 23923 PRESENT=yes 23924fi 23925 23926# Check whether --enable-xinerama was given. 23927if test "${enable_xinerama+set}" = set; then : 23928 enableval=$enable_xinerama; XINERAMA=$enableval 23929else 23930 XINERAMA=yes 23931fi 23932 23933# Check whether --enable-xf86vidmode was given. 23934if test "${enable_xf86vidmode+set}" = set; then : 23935 enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval 23936else 23937 XF86VIDMODE=auto 23938fi 23939 23940# Check whether --enable-xace was given. 23941if test "${enable_xace+set}" = set; then : 23942 enableval=$enable_xace; XACE=$enableval 23943else 23944 XACE=yes 23945fi 23946 23947# Check whether --enable-xselinux was given. 23948if test "${enable_xselinux+set}" = set; then : 23949 enableval=$enable_xselinux; XSELINUX=$enableval 23950else 23951 XSELINUX=no 23952fi 23953 23954# Check whether --enable-xcsecurity was given. 23955if test "${enable_xcsecurity+set}" = set; then : 23956 enableval=$enable_xcsecurity; XCSECURITY=$enableval 23957else 23958 XCSECURITY=no 23959fi 23960 23961# Check whether --enable-dbe was given. 23962if test "${enable_dbe+set}" = set; then : 23963 enableval=$enable_dbe; DBE=$enableval 23964else 23965 DBE=yes 23966fi 23967 23968# Check whether --enable-xf86bigfont was given. 23969if test "${enable_xf86bigfont+set}" = set; then : 23970 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval 23971else 23972 XF86BIGFONT=no 23973fi 23974 23975# Check whether --enable-dpms was given. 23976if test "${enable_dpms+set}" = set; then : 23977 enableval=$enable_dpms; DPMSExtension=$enableval 23978else 23979 DPMSExtension=yes 23980fi 23981 23982# Check whether --enable-config-udev was given. 23983if test "${enable_config_udev+set}" = set; then : 23984 enableval=$enable_config_udev; CONFIG_UDEV=$enableval 23985else 23986 CONFIG_UDEV=auto 23987fi 23988 23989# Check whether --enable-config-udev-kms was given. 23990if test "${enable_config_udev_kms+set}" = set; then : 23991 enableval=$enable_config_udev_kms; CONFIG_UDEV_KMS=$enableval 23992else 23993 CONFIG_UDEV_KMS=auto 23994fi 23995 23996# Check whether --enable-config-hal was given. 23997if test "${enable_config_hal+set}" = set; then : 23998 enableval=$enable_config_hal; CONFIG_HAL=$enableval 23999else 24000 CONFIG_HAL=auto 24001fi 24002 24003# Check whether --enable-config-wscons was given. 24004if test "${enable_config_wscons+set}" = set; then : 24005 enableval=$enable_config_wscons; CONFIG_WSCONS=$enableval 24006else 24007 CONFIG_WSCONS=auto 24008fi 24009 24010# Check whether --enable-xfree86-utils was given. 24011if test "${enable_xfree86_utils+set}" = set; then : 24012 enableval=$enable_xfree86_utils; XF86UTILS=$enableval 24013else 24014 XF86UTILS=yes 24015fi 24016 24017# Check whether --enable-vgahw was given. 24018if test "${enable_vgahw+set}" = set; then : 24019 enableval=$enable_vgahw; VGAHW=$enableval 24020else 24021 VGAHW=yes 24022fi 24023 24024# Check whether --enable-vbe was given. 24025if test "${enable_vbe+set}" = set; then : 24026 enableval=$enable_vbe; VBE=$enableval 24027else 24028 VBE=yes 24029fi 24030 24031# Check whether --enable-int10-module was given. 24032if test "${enable_int10_module+set}" = set; then : 24033 enableval=$enable_int10_module; INT10MODULE=$enableval 24034else 24035 INT10MODULE=yes 24036fi 24037 24038# Check whether --enable-windowswm was given. 24039if test "${enable_windowswm+set}" = set; then : 24040 enableval=$enable_windowswm; WINDOWSWM=$enableval 24041else 24042 WINDOWSWM=no 24043fi 24044 24045# Check whether --enable-windowsdri was given. 24046if test "${enable_windowsdri+set}" = set; then : 24047 enableval=$enable_windowsdri; WINDOWSDRI=$enableval 24048else 24049 WINDOWSDRI=auto 24050fi 24051 24052# Check whether --enable-libdrm was given. 24053if test "${enable_libdrm+set}" = set; then : 24054 enableval=$enable_libdrm; DRM=$enableval 24055else 24056 DRM=yes 24057fi 24058 24059# Check whether --enable-clientids was given. 24060if test "${enable_clientids+set}" = set; then : 24061 enableval=$enable_clientids; CLIENTIDS=$enableval 24062else 24063 CLIENTIDS=yes 24064fi 24065 24066# Check whether --enable-pciaccess was given. 24067if test "${enable_pciaccess+set}" = set; then : 24068 enableval=$enable_pciaccess; PCI=$enableval 24069else 24070 PCI=yes 24071fi 24072 24073# Check whether --enable-linux_acpi was given. 24074if test "${enable_linux_acpi+set}" = set; then : 24075 enableval=$enable_linux_acpi; enable_linux_acpi=$enableval 24076else 24077 enable_linux_acpi=yes 24078fi 24079 24080# Check whether --enable-linux_apm was given. 24081if test "${enable_linux_apm+set}" = set; then : 24082 enableval=$enable_linux_apm; enable_linux_apm=$enableval 24083else 24084 enable_linux_apm=yes 24085fi 24086 24087# Check whether --enable-systemd-logind was given. 24088if test "${enable_systemd_logind+set}" = set; then : 24089 enableval=$enable_systemd_logind; SYSTEMD_LOGIND=$enableval 24090else 24091 SYSTEMD_LOGIND=auto 24092fi 24093 24094# Check whether --enable-suid-wrapper was given. 24095if test "${enable_suid_wrapper+set}" = set; then : 24096 enableval=$enable_suid_wrapper; SUID_WRAPPER=$enableval 24097else 24098 SUID_WRAPPER=no 24099fi 24100 24101 24102# Check whether --enable-xorg was given. 24103if test "${enable_xorg+set}" = set; then : 24104 enableval=$enable_xorg; XORG=$enableval 24105else 24106 XORG=auto 24107fi 24108 24109# Check whether --enable-dmx was given. 24110if test "${enable_dmx+set}" = set; then : 24111 enableval=$enable_dmx; DMX=$enableval 24112else 24113 DMX=no 24114fi 24115 24116# Check whether --enable-xvfb was given. 24117if test "${enable_xvfb+set}" = set; then : 24118 enableval=$enable_xvfb; XVFB=$enableval 24119else 24120 XVFB=yes 24121fi 24122 24123# Check whether --enable-xnest was given. 24124if test "${enable_xnest+set}" = set; then : 24125 enableval=$enable_xnest; XNEST=$enableval 24126else 24127 XNEST=auto 24128fi 24129 24130# Check whether --enable-xquartz was given. 24131if test "${enable_xquartz+set}" = set; then : 24132 enableval=$enable_xquartz; XQUARTZ=$enableval 24133else 24134 XQUARTZ=auto 24135fi 24136 24137# Check whether --enable-xwayland was given. 24138if test "${enable_xwayland+set}" = set; then : 24139 enableval=$enable_xwayland; XWAYLAND=$enableval 24140else 24141 XWAYLAND=auto 24142fi 24143 24144# Check whether --enable-xwayland-eglstream was given. 24145if test "${enable_xwayland_eglstream+set}" = set; then : 24146 enableval=$enable_xwayland_eglstream; XWAYLAND_EGLSTREAM=$enableval 24147else 24148 XWAYLAND_EGLSTREAM=no 24149fi 24150 24151# Check whether --enable-standalone-xpbproxy was given. 24152if test "${enable_standalone_xpbproxy+set}" = set; then : 24153 enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval 24154else 24155 STANDALONE_XPBPROXY=no 24156fi 24157 24158# Check whether --enable-xwin was given. 24159if test "${enable_xwin+set}" = set; then : 24160 enableval=$enable_xwin; XWIN=$enableval 24161else 24162 XWIN=auto 24163fi 24164 24165# Check whether --enable-glamor was given. 24166if test "${enable_glamor+set}" = set; then : 24167 enableval=$enable_glamor; GLAMOR=$enableval 24168else 24169 GLAMOR=auto 24170fi 24171 24172# Check whether --enable-kdrive was given. 24173if test "${enable_kdrive+set}" = set; then : 24174 enableval=$enable_kdrive; KDRIVE=$enableval 24175else 24176 KDRIVE=no 24177fi 24178 24179# Check whether --enable-xephyr was given. 24180if test "${enable_xephyr+set}" = set; then : 24181 enableval=$enable_xephyr; XEPHYR=$enableval 24182else 24183 XEPHYR=auto 24184fi 24185 24186# Check whether --enable-libunwind was given. 24187if test "${enable_libunwind+set}" = set; then : 24188 enableval=$enable_libunwind; LIBUNWIND="$enableval" 24189else 24190 LIBUNWIND="auto" 24191fi 24192 24193# Check whether --enable-xshmfence was given. 24194if test "${enable_xshmfence+set}" = set; then : 24195 enableval=$enable_xshmfence; XSHMFENCE="$enableval" 24196else 24197 XSHMFENCE="auto" 24198fi 24199 24200 24201 24202# Check whether --enable-install-setuid was given. 24203if test "${enable_install_setuid+set}" = set; then : 24204 enableval=$enable_install_setuid; SETUID=$enableval 24205else 24206 SETUID=auto 24207fi 24208 24209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we can install the Xorg server as root" >&5 24210$as_echo_n "checking to see if we can install the Xorg server as root... " >&6; } 24211if test "x$SETUID" = "xauto" ; then 24212 case $host_os in 24213 cygwin*) SETUID="no" ;; 24214 mingw*) SETUID="no" ;; 24215 darwin*) SETUID="no" ;; 24216 *) 24217 case $host_cpu in 24218 sparc) SETUID="no" ;; 24219 *) SETUID="yes" ;; 24220 esac 24221 esac 24222 if test "x$SETUID" = xyes; then 24223 touch testfile 24224 chown root testfile > /dev/null 2>&1 || SETUID="no" 24225 rm -f testfile 24226 fi 24227fi 24228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETUID" >&5 24229$as_echo "$SETUID" >&6; } 24230 if test "x$SETUID" = "xyes"; then 24231 INSTALL_SETUID_TRUE= 24232 INSTALL_SETUID_FALSE='#' 24233else 24234 INSTALL_SETUID_TRUE='#' 24235 INSTALL_SETUID_FALSE= 24236fi 24237 24238 24239 24240 24241# Transport selection macro from xtrans.m4 24242 24243 24244 case $host_os in 24245 mingw*) unixdef="no" ;; 24246 *) unixdef="yes" ;; 24247 esac 24248 # Check whether --enable-unix-transport was given. 24249if test "${enable_unix_transport+set}" = set; then : 24250 enableval=$enable_unix_transport; UNIXCONN=$enableval 24251else 24252 UNIXCONN=$unixdef 24253fi 24254 24255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 24256$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 24257 if test "$UNIXCONN" = "yes"; then 24258 24259$as_echo "#define UNIXCONN 1" >>confdefs.h 24260 24261 fi 24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 24263$as_echo "$UNIXCONN" >&6; } 24264 # Check whether --enable-tcp-transport was given. 24265if test "${enable_tcp_transport+set}" = set; then : 24266 enableval=$enable_tcp_transport; TCPCONN=$enableval 24267else 24268 TCPCONN=yes 24269fi 24270 24271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 24272$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 24274$as_echo "$TCPCONN" >&6; } 24275 if test "$TCPCONN" = "yes"; then 24276 24277$as_echo "#define TCPCONN 1" >>confdefs.h 24278 24279 24280 # SVR4 hides these in libraries other than libc 24281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 24282$as_echo_n "checking for library containing socket... " >&6; } 24283if ${ac_cv_search_socket+:} false; then : 24284 $as_echo_n "(cached) " >&6 24285else 24286 ac_func_search_save_LIBS=$LIBS 24287cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24288/* end confdefs.h. */ 24289 24290/* Override any GCC internal prototype to avoid an error. 24291 Use char because int might match the return type of a GCC 24292 builtin and then its argument prototype would still apply. */ 24293#ifdef __cplusplus 24294extern "C" 24295#endif 24296char socket (); 24297int 24298main () 24299{ 24300return socket (); 24301 ; 24302 return 0; 24303} 24304_ACEOF 24305for ac_lib in '' socket; do 24306 if test -z "$ac_lib"; then 24307 ac_res="none required" 24308 else 24309 ac_res=-l$ac_lib 24310 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24311 fi 24312 if ac_fn_c_try_link "$LINENO"; then : 24313 ac_cv_search_socket=$ac_res 24314fi 24315rm -f core conftest.err conftest.$ac_objext \ 24316 conftest$ac_exeext 24317 if ${ac_cv_search_socket+:} false; then : 24318 break 24319fi 24320done 24321if ${ac_cv_search_socket+:} false; then : 24322 24323else 24324 ac_cv_search_socket=no 24325fi 24326rm conftest.$ac_ext 24327LIBS=$ac_func_search_save_LIBS 24328fi 24329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 24330$as_echo "$ac_cv_search_socket" >&6; } 24331ac_res=$ac_cv_search_socket 24332if test "$ac_res" != no; then : 24333 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24334 24335fi 24336 24337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 24338$as_echo_n "checking for library containing gethostbyname... " >&6; } 24339if ${ac_cv_search_gethostbyname+:} false; then : 24340 $as_echo_n "(cached) " >&6 24341else 24342 ac_func_search_save_LIBS=$LIBS 24343cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24344/* end confdefs.h. */ 24345 24346/* Override any GCC internal prototype to avoid an error. 24347 Use char because int might match the return type of a GCC 24348 builtin and then its argument prototype would still apply. */ 24349#ifdef __cplusplus 24350extern "C" 24351#endif 24352char gethostbyname (); 24353int 24354main () 24355{ 24356return gethostbyname (); 24357 ; 24358 return 0; 24359} 24360_ACEOF 24361for ac_lib in '' nsl; do 24362 if test -z "$ac_lib"; then 24363 ac_res="none required" 24364 else 24365 ac_res=-l$ac_lib 24366 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24367 fi 24368 if ac_fn_c_try_link "$LINENO"; then : 24369 ac_cv_search_gethostbyname=$ac_res 24370fi 24371rm -f core conftest.err conftest.$ac_objext \ 24372 conftest$ac_exeext 24373 if ${ac_cv_search_gethostbyname+:} false; then : 24374 break 24375fi 24376done 24377if ${ac_cv_search_gethostbyname+:} false; then : 24378 24379else 24380 ac_cv_search_gethostbyname=no 24381fi 24382rm conftest.$ac_ext 24383LIBS=$ac_func_search_save_LIBS 24384fi 24385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 24386$as_echo "$ac_cv_search_gethostbyname" >&6; } 24387ac_res=$ac_cv_search_gethostbyname 24388if test "$ac_res" != no; then : 24389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24390 24391fi 24392 24393 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 24394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 24395$as_echo_n "checking for main in -lws2_32... " >&6; } 24396if ${ac_cv_lib_ws2_32_main+:} false; then : 24397 $as_echo_n "(cached) " >&6 24398else 24399 ac_check_lib_save_LIBS=$LIBS 24400LIBS="-lws2_32 $LIBS" 24401cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24402/* end confdefs.h. */ 24403 24404 24405int 24406main () 24407{ 24408return main (); 24409 ; 24410 return 0; 24411} 24412_ACEOF 24413if ac_fn_c_try_link "$LINENO"; then : 24414 ac_cv_lib_ws2_32_main=yes 24415else 24416 ac_cv_lib_ws2_32_main=no 24417fi 24418rm -f core conftest.err conftest.$ac_objext \ 24419 conftest$ac_exeext conftest.$ac_ext 24420LIBS=$ac_check_lib_save_LIBS 24421fi 24422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 24423$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 24424if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 24425 cat >>confdefs.h <<_ACEOF 24426#define HAVE_LIBWS2_32 1 24427_ACEOF 24428 24429 LIBS="-lws2_32 $LIBS" 24430 24431fi 24432 24433 fi 24434 24435 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 24436 # Check whether --enable-ipv6 was given. 24437if test "${enable_ipv6+set}" = set; then : 24438 enableval=$enable_ipv6; IPV6CONN=$enableval 24439else 24440 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 24441if test "x$ac_cv_func_getaddrinfo" = xyes; then : 24442 IPV6CONN=yes 24443else 24444 IPV6CONN=no 24445fi 24446 24447fi 24448 24449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 24450$as_echo_n "checking if IPv6 support should be built... " >&6; } 24451 if test "$IPV6CONN" = "yes"; then 24452 24453$as_echo "#define IPv6 1" >>confdefs.h 24454 24455 fi 24456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 24457$as_echo "$IPV6CONN" >&6; } 24458 24459 # 4.3BSD-Reno added a new member to struct sockaddr_in 24460 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 24461#include <sys/types.h> 24462#include <sys/socket.h> 24463#include <netinet/in.h> 24464 24465" 24466if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 24467 24468$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 24469 24470fi 24471 24472 24473 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 24474 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 24475$ac_includes_default 24476#include <sys/socket.h> 24477" 24478if test "x$ac_cv_type_socklen_t" = xyes; then : 24479 24480cat >>confdefs.h <<_ACEOF 24481#define HAVE_SOCKLEN_T 1 24482_ACEOF 24483 24484 24485fi 24486 24487 24488 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 24489 # _XOPEN_SOURCE to get it (such as on Solaris) 24490 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 24491$ac_includes_default 24492#include <sys/socket.h> 24493 24494" 24495if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 24496 24497fi 24498 24499 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 24500 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 24501 unset ac_cv_member_struct_msghdr_msg_control 24502 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 24503$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 24504 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 24505#define _XOPEN_SOURCE 600 24506$ac_includes_default 24507#include <sys/socket.h> 24508 24509" 24510if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 24511 24512$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 24513 24514 24515fi 24516 24517 fi 24518 # If that didn't work, fall back to XPG5/UNIX98 with C89 24519 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 24520 unset ac_cv_member_struct_msghdr_msg_control 24521 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 24522$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 24523 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 24524#define _XOPEN_SOURCE 500 24525$ac_includes_default 24526#include <sys/socket.h> 24527 24528" 24529if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 24530 24531$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 24532 24533 24534fi 24535 24536 fi 24537 24538 24539 24540 fi 24541 case $host_os in 24542 solaris*|sco*|sysv4*) localdef="yes" ;; 24543 *) localdef="no" ;; 24544 esac 24545 # Check whether --enable-local-transport was given. 24546if test "${enable_local_transport+set}" = set; then : 24547 enableval=$enable_local_transport; LOCALCONN=$enableval 24548else 24549 LOCALCONN=$localdef 24550fi 24551 24552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 24553$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 24554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 24555$as_echo "$LOCALCONN" >&6; } 24556 if test "$LOCALCONN" = "yes"; then 24557 24558$as_echo "#define LOCALCONN 1" >>confdefs.h 24559 24560 fi 24561 24562 # Other functions Xtrans may need 24563 for ac_func in strcasecmp strlcpy 24564do : 24565 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24566ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24567if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24568 cat >>confdefs.h <<_ACEOF 24569#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24570_ACEOF 24571 24572fi 24573done 24574 24575 24576 24577 24578# Secure RPC detection macro from xtrans.m4 24579 24580 # Check whether --enable-secure-rpc was given. 24581if test "${enable_secure_rpc+set}" = set; then : 24582 enableval=$enable_secure_rpc; SECURE_RPC=$enableval 24583else 24584 SECURE_RPC="try" 24585fi 24586 24587 24588 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 24589 FOUND_SECURE_RPC="no" 24590 for ac_func in authdes_seccreate authdes_create 24591do : 24592 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24593ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24594if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24595 cat >>confdefs.h <<_ACEOF 24596#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24597_ACEOF 24598 FOUND_SECURE_RPC="yes" 24599fi 24600done 24601 24602 if test "x$FOUND_SECURE_RPC" = "xno" ; then 24603 if test "x$SECURE_RPC" = "xyes" ; then 24604 as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5 24605 fi 24606 SECURE_RPC="no" 24607 else 24608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5 24609$as_echo_n "checking for library containing getsecretkey... " >&6; } 24610if ${ac_cv_search_getsecretkey+:} false; then : 24611 $as_echo_n "(cached) " >&6 24612else 24613 ac_func_search_save_LIBS=$LIBS 24614cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24615/* end confdefs.h. */ 24616 24617/* Override any GCC internal prototype to avoid an error. 24618 Use char because int might match the return type of a GCC 24619 builtin and then its argument prototype would still apply. */ 24620#ifdef __cplusplus 24621extern "C" 24622#endif 24623char getsecretkey (); 24624int 24625main () 24626{ 24627return getsecretkey (); 24628 ; 24629 return 0; 24630} 24631_ACEOF 24632for ac_lib in '' rpcsvc; do 24633 if test -z "$ac_lib"; then 24634 ac_res="none required" 24635 else 24636 ac_res=-l$ac_lib 24637 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24638 fi 24639 if ac_fn_c_try_link "$LINENO"; then : 24640 ac_cv_search_getsecretkey=$ac_res 24641fi 24642rm -f core conftest.err conftest.$ac_objext \ 24643 conftest$ac_exeext 24644 if ${ac_cv_search_getsecretkey+:} false; then : 24645 break 24646fi 24647done 24648if ${ac_cv_search_getsecretkey+:} false; then : 24649 24650else 24651 ac_cv_search_getsecretkey=no 24652fi 24653rm conftest.$ac_ext 24654LIBS=$ac_func_search_save_LIBS 24655fi 24656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5 24657$as_echo "$ac_cv_search_getsecretkey" >&6; } 24658ac_res=$ac_cv_search_getsecretkey 24659if test "$ac_res" != no; then : 24660 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24661 24662fi 24663 24664 SECURE_RPC="yes" 24665 fi 24666 fi 24667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5 24668$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; } 24669 if test "x$SECURE_RPC" = "xyes" ; then 24670 24671$as_echo "#define SECURE_RPC 1" >>confdefs.h 24672 24673 fi 24674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5 24675$as_echo "$SECURE_RPC" >&6; } 24676 24677 if test "x$SECURE_RPC" = xyes; then 24678 SECURE_RPC_TRUE= 24679 SECURE_RPC_FALSE='#' 24680else 24681 SECURE_RPC_TRUE='#' 24682 SECURE_RPC_FALSE= 24683fi 24684 24685 24686 if test "x$INT10" = xvm86; then 24687 INT10_VM86_TRUE= 24688 INT10_VM86_FALSE='#' 24689else 24690 INT10_VM86_TRUE='#' 24691 INT10_VM86_FALSE= 24692fi 24693 24694 if test "x$INT10" = xx86emu; then 24695 INT10_X86EMU_TRUE= 24696 INT10_X86EMU_FALSE='#' 24697else 24698 INT10_X86EMU_TRUE='#' 24699 INT10_X86EMU_FALSE= 24700fi 24701 24702 if test "x$INT10" = xstub; then 24703 INT10_STUB_TRUE= 24704 INT10_STUB_FALSE='#' 24705else 24706 INT10_STUB_TRUE='#' 24707 INT10_STUB_FALSE= 24708fi 24709 24710 24711case $host_os in 24712 cygwin* | mingw*) 24713 CONFIG_HAL=no 24714 CONFIG_UDEV=no 24715 CONFIG_UDEV_KMS=no 24716 DGA=no 24717 DRM=no 24718 DRI2=no 24719 DRI3=no 24720 INT10MODULE=no 24721 PCI=no 24722 VGAHW=no 24723 VBE=no 24724 XF86UTILS=no 24725 XF86VIDMODE=no 24726 XSELINUX=no 24727 SYMBOL_VISIBILITY=no 24728 ;; 24729 darwin*) 24730 PCI=no 24731 INT10MODULE=no 24732 VGAHW=no 24733 VBE=no 24734 DRM=no 24735 DRI2=no 24736 DRI3=no 24737 24738 if test x$XQUARTZ = xauto; then 24739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xquartz" >&5 24740$as_echo_n "checking whether to build Xquartz... " >&6; } 24741if ${xorg_cv_Carbon_framework+:} false; then : 24742 $as_echo_n "(cached) " >&6 24743else 24744 24745 save_LDFLAGS=$LDFLAGS 24746 LDFLAGS="$LDFLAGS -framework Carbon" 24747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24748/* end confdefs.h. */ 24749char FSFindFolder(); int main() { FSFindFolder(); return 0;} 24750_ACEOF 24751if ac_fn_c_try_link "$LINENO"; then : 24752 xorg_cv_Carbon_framework=yes 24753else 24754 xorg_cv_Carbon_framework=no 24755fi 24756rm -f core conftest.err conftest.$ac_objext \ 24757 conftest$ac_exeext conftest.$ac_ext 24758 LDFLAGS=$save_LDFLAGS 24759fi 24760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_Carbon_framework" >&5 24761$as_echo "$xorg_cv_Carbon_framework" >&6; } 24762 24763 if test "X$xorg_cv_Carbon_framework" = Xyes; then 24764 XQUARTZ=yes 24765 else 24766 XQUARTZ=no 24767 fi 24768 fi 24769 24770 if test "x$XQUARTZ" = xyes ; then 24771 XQUARTZ=yes 24772 XVFB=no 24773 XNEST=no 24774 XWAYLAND=no 24775 24776 COMPOSITE=no 24777 DGA=no 24778 DPMSExtension=no 24779 XF86VIDMODE=no 24780 fi 24781 ;; 24782 gnu*) 24783 DRM=no 24784 DRI2=no 24785 DRI3=no 24786 ;; 24787 *) XQUARTZ=no ;; 24788esac 24789 24790XEXT_INC='-I$(top_srcdir)/Xext' 24791XEXT_LIB='$(top_builddir)/Xext/libXext.la' 24792 24793VIDEOPROTO="videoproto" 24794COMPOSITEPROTO="compositeproto >= 0.4" 24795RECORDPROTO="recordproto >= 1.13.99.1" 24796SCRNSAVERPROTO="scrnsaverproto >= 1.1" 24797RESOURCEPROTO="resourceproto >= 1.2.0" 24798DRIPROTO="xf86driproto >= 2.1.0" 24799DRI2PROTO="dri2proto >= 2.8" 24800DRI3PROTO="dri3proto >= 1.2" 24801XINERAMAPROTO="xineramaproto" 24802BIGFONTPROTO="xf86bigfontproto >= 1.2.0" 24803DGAPROTO="xf86dgaproto >= 2.0.99.1" 24804GLPROTO="glproto >= 1.4.17" 24805DMXPROTO="dmxproto >= 2.2.99.1" 24806VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1" 24807WINDOWSWMPROTO="windowswmproto" 24808APPLEWMPROTO="applewmproto >= 1.4" 24809LIBXSHMFENCE="xshmfence >= 1.1" 24810 24811XPROTO="xproto >= 7.0.31" 24812RANDRPROTO="randrproto >= 1.6.0" 24813RENDERPROTO="renderproto >= 0.11" 24814XEXTPROTO="xextproto >= 7.2.99.901" 24815INPUTPROTO="inputproto >= 2.3" 24816KBPROTO="kbproto >= 1.0.3" 24817FONTSPROTO="fontsproto >= 2.1.3" 24818FIXESPROTO="fixesproto >= 5.0" 24819DAMAGEPROTO="damageproto >= 1.1" 24820XCMISCPROTO="xcmiscproto >= 1.2.0" 24821BIGREQSPROTO="bigreqsproto >= 1.1.0" 24822XTRANS="xtrans >= 1.3.5" 24823PRESENTPROTO="presentproto >= 1.1" 24824 24825LIBAPPLEWM="applewm >= 1.4" 24826LIBDMX="dmx >= 1.0.99.1" 24827LIBDRI="dri >= 7.8.0" 24828LIBDRM="libdrm >= 2.4.89" 24829LIBEGL="egl" 24830LIBGBM="gbm >= 10.2.0" 24831LIBGL="gl >= 1.2" 24832LIBXEXT="xext >= 1.0.99.4" 24833LIBXFONT="xfont2 >= 2.0.0" 24834LIBXI="xi >= 1.2.99.1" 24835LIBXTST="xtst >= 1.0.99.2" 24836LIBPCIACCESS="pciaccess >= 0.12.901" 24837LIBUDEV="libudev >= 143" 24838LIBSELINUX="libselinux >= 2.0.86" 24839LIBDBUS="dbus-1 >= 1.0" 24840LIBPIXMAN="pixman-1 >= 0.27.2" 24841 24842 24843pkg_failed=no 24844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5 24845$as_echo_n "checking for PIXMAN... " >&6; } 24846 24847if test -n "$PIXMAN_CFLAGS"; then 24848 pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS" 24849 elif test -n "$PKG_CONFIG"; then 24850 if test -n "$PKG_CONFIG" && \ 24851 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5 24852 ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5 24853 ac_status=$? 24854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24855 test $ac_status = 0; }; then 24856 pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$LIBPIXMAN" 2>/dev/null` 24857 test "x$?" != "x0" && pkg_failed=yes 24858else 24859 pkg_failed=yes 24860fi 24861 else 24862 pkg_failed=untried 24863fi 24864if test -n "$PIXMAN_LIBS"; then 24865 pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS" 24866 elif test -n "$PKG_CONFIG"; then 24867 if test -n "$PKG_CONFIG" && \ 24868 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5 24869 ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5 24870 ac_status=$? 24871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24872 test $ac_status = 0; }; then 24873 pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$LIBPIXMAN" 2>/dev/null` 24874 test "x$?" != "x0" && pkg_failed=yes 24875else 24876 pkg_failed=yes 24877fi 24878 else 24879 pkg_failed=untried 24880fi 24881 24882 24883 24884if test $pkg_failed = yes; then 24885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24886$as_echo "no" >&6; } 24887 24888if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24889 _pkg_short_errors_supported=yes 24890else 24891 _pkg_short_errors_supported=no 24892fi 24893 if test $_pkg_short_errors_supported = yes; then 24894 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPIXMAN" 2>&1` 24895 else 24896 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPIXMAN" 2>&1` 24897 fi 24898 # Put the nasty error message in config.log where it belongs 24899 echo "$PIXMAN_PKG_ERRORS" >&5 24900 24901 as_fn_error $? "Package requirements ($LIBPIXMAN) were not met: 24902 24903$PIXMAN_PKG_ERRORS 24904 24905Consider adjusting the PKG_CONFIG_PATH environment variable if you 24906installed software in a non-standard prefix. 24907 24908Alternatively, you may set the environment variables PIXMAN_CFLAGS 24909and PIXMAN_LIBS to avoid the need to call pkg-config. 24910See the pkg-config man page for more details." "$LINENO" 5 24911elif test $pkg_failed = untried; then 24912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24913$as_echo "no" >&6; } 24914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24915$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24916as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 24917is in your PATH or set the PKG_CONFIG environment variable to the full 24918path to pkg-config. 24919 24920Alternatively, you may set the environment variables PIXMAN_CFLAGS 24921and PIXMAN_LIBS to avoid the need to call pkg-config. 24922See the pkg-config man page for more details. 24923 24924To get pkg-config, see <http://pkg-config.freedesktop.org/>. 24925See \`config.log' for more details" "$LINENO" 5; } 24926else 24927 PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS 24928 PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS 24929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24930$as_echo "yes" >&6; } 24931 24932fi 24933REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau" 24934 24935SDK_REQUIRED_MODULES="$XPROTO $RANDRPROTO $RENDERPROTO $XEXTPROTO $INPUTPROTO $KBPROTO $FONTSPROTO $LIBPIXMAN" 24936# Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc 24937 24938 24939ac_fn_c_check_decl "$LINENO" "PTHREAD_MUTEX_RECURSIVE" "ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" "#include <pthread.h> 24940" 24941if test "x$ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" = xyes; then : 24942 HAVE_RECURSIVE_MUTEX=yes 24943else 24944 HAVE_RECURSIVE_MUTEX=no 24945fi 24946 24947 24948THREAD_DEFAULT=no 24949 24950if test "x$HAVE_RECURSIVE_MUTEX" = "xyes" ; then 24951 THREAD_DEFAULT=yes 24952fi 24953 24954# Check whether --enable-input-thread was given. 24955if test "${enable_input_thread+set}" = set; then : 24956 enableval=$enable_input_thread; INPUTTHREAD=$enableval 24957else 24958 INPUTTHREAD=$THREAD_DEFAULT 24959fi 24960 24961 24962if test "x$INPUTTHREAD" = "xyes" ; then 24963 24964 24965ac_ext=c 24966ac_cpp='$CPP $CPPFLAGS' 24967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24969ac_compiler_gnu=$ac_cv_c_compiler_gnu 24970 24971ax_pthread_ok=no 24972 24973# We used to check for pthread.h first, but this fails if pthread.h 24974# requires special compiler flags (e.g. on True64 or Sequent). 24975# It gets checked for in the link test anyway. 24976 24977# First of all, check if the user has set any of the PTHREAD_LIBS, 24978# etcetera environment variables, and if threads linking works using 24979# them: 24980if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 24981 save_CFLAGS="$CFLAGS" 24982 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 24983 save_LIBS="$LIBS" 24984 LIBS="$PTHREAD_LIBS $LIBS" 24985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 24986$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 24987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24988/* end confdefs.h. */ 24989 24990/* Override any GCC internal prototype to avoid an error. 24991 Use char because int might match the return type of a GCC 24992 builtin and then its argument prototype would still apply. */ 24993#ifdef __cplusplus 24994extern "C" 24995#endif 24996char pthread_join (); 24997int 24998main () 24999{ 25000return pthread_join (); 25001 ; 25002 return 0; 25003} 25004_ACEOF 25005if ac_fn_c_try_link "$LINENO"; then : 25006 ax_pthread_ok=yes 25007fi 25008rm -f core conftest.err conftest.$ac_objext \ 25009 conftest$ac_exeext conftest.$ac_ext 25010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 25011$as_echo "$ax_pthread_ok" >&6; } 25012 if test x"$ax_pthread_ok" = xno; then 25013 PTHREAD_LIBS="" 25014 PTHREAD_CFLAGS="" 25015 fi 25016 LIBS="$save_LIBS" 25017 CFLAGS="$save_CFLAGS" 25018fi 25019 25020# We must check for the threads library under a number of different 25021# names; the ordering is very important because some systems 25022# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 25023# libraries is broken (non-POSIX). 25024 25025# Create a list of thread flags to try. Items starting with a "-" are 25026# C compiler flags, and other items are library names, except for "none" 25027# which indicates that we try without any flags at all, and "pthread-config" 25028# which is a program returning the flags for the Pth emulation library. 25029 25030ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 25031 25032# The ordering *is* (sometimes) important. Some notes on the 25033# individual items follow: 25034 25035# pthreads: AIX (must check this before -lpthread) 25036# none: in case threads are in libc; should be tried before -Kthread and 25037# other compiler flags to prevent continual compiler warnings 25038# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 25039# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 25040# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 25041# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 25042# -pthreads: Solaris/gcc 25043# -mthreads: Mingw32/gcc, Lynx/gcc 25044# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 25045# doesn't hurt to check since this sometimes defines pthreads too; 25046# also defines -D_REENTRANT) 25047# ... -mt is also the pthreads flag for HP/aCC 25048# pthread: Linux, etcetera 25049# --thread-safe: KAI C++ 25050# pthread-config: use pthread-config program (for GNU Pth library) 25051 25052case ${host_os} in 25053 solaris*) 25054 25055 # On Solaris (at least, for some versions), libc contains stubbed 25056 # (non-functional) versions of the pthreads routines, so link-based 25057 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 25058 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 25059 # a function called by this macro, so we could check for that, but 25060 # who knows whether they'll stub that too in a future libc.) So, 25061 # we'll just look for -pthreads and -lpthread first: 25062 25063 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 25064 ;; 25065 25066 darwin*) 25067 ax_pthread_flags="-pthread $ax_pthread_flags" 25068 ;; 25069 netbsd*) 25070 # use libc stubs, don't link against libpthread, to allow 25071 # dynamic loading 25072 ax_pthread_flags="" 25073 ;; 25074esac 25075 25076# Clang doesn't consider unrecognized options an error unless we specify 25077# -Werror. We throw in some extra Clang-specific options to ensure that 25078# this doesn't happen for GCC, which also accepts -Werror. 25079 25080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 25081$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 25082save_CFLAGS="$CFLAGS" 25083ax_pthread_extra_flags="-Werror" 25084CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 25085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25086/* end confdefs.h. */ 25087int foo(void); 25088int 25089main () 25090{ 25091foo() 25092 ; 25093 return 0; 25094} 25095_ACEOF 25096if ac_fn_c_try_compile "$LINENO"; then : 25097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25098$as_echo "yes" >&6; } 25099else 25100 ax_pthread_extra_flags= 25101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25102$as_echo "no" >&6; } 25103fi 25104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25105CFLAGS="$save_CFLAGS" 25106 25107if test x"$ax_pthread_ok" = xno; then 25108for flag in $ax_pthread_flags; do 25109 25110 case $flag in 25111 none) 25112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 25113$as_echo_n "checking whether pthreads work without any flags... " >&6; } 25114 ;; 25115 25116 -*) 25117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 25118$as_echo_n "checking whether pthreads work with $flag... " >&6; } 25119 PTHREAD_CFLAGS="$flag" 25120 ;; 25121 25122 pthread-config) 25123 # Extract the first word of "pthread-config", so it can be a program name with args. 25124set dummy pthread-config; ac_word=$2 25125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25126$as_echo_n "checking for $ac_word... " >&6; } 25127if ${ac_cv_prog_ax_pthread_config+:} false; then : 25128 $as_echo_n "(cached) " >&6 25129else 25130 if test -n "$ax_pthread_config"; then 25131 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 25132else 25133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25134for as_dir in $PATH 25135do 25136 IFS=$as_save_IFS 25137 test -z "$as_dir" && as_dir=. 25138 for ac_exec_ext in '' $ac_executable_extensions; do 25139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25140 ac_cv_prog_ax_pthread_config="yes" 25141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25142 break 2 25143 fi 25144done 25145 done 25146IFS=$as_save_IFS 25147 25148 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 25149fi 25150fi 25151ax_pthread_config=$ac_cv_prog_ax_pthread_config 25152if test -n "$ax_pthread_config"; then 25153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 25154$as_echo "$ax_pthread_config" >&6; } 25155else 25156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25157$as_echo "no" >&6; } 25158fi 25159 25160 25161 if test x"$ax_pthread_config" = xno; then continue; fi 25162 PTHREAD_CFLAGS="`pthread-config --cflags`" 25163 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 25164 ;; 25165 25166 *) 25167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 25168$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 25169 PTHREAD_LIBS="-l$flag" 25170 ;; 25171 esac 25172 25173 save_LIBS="$LIBS" 25174 save_CFLAGS="$CFLAGS" 25175 LIBS="$PTHREAD_LIBS $LIBS" 25176 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 25177 25178 # Check for various functions. We must include pthread.h, 25179 # since some functions may be macros. (On the Sequent, we 25180 # need a special flag -Kthread to make this header compile.) 25181 # We check for pthread_join because it is in -lpthread on IRIX 25182 # while pthread_create is in libc. We check for pthread_attr_init 25183 # due to DEC craziness with -lpthreads. We check for 25184 # pthread_cleanup_push because it is one of the few pthread 25185 # functions on Solaris that doesn't have a non-functional libc stub. 25186 # We try pthread_create on general principles. 25187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25188/* end confdefs.h. */ 25189#include <pthread.h> 25190 static void routine(void *a) { a = 0; } 25191 static void *start_routine(void *a) { return a; } 25192int 25193main () 25194{ 25195pthread_t th; pthread_attr_t attr; 25196 pthread_create(&th, 0, start_routine, 0); 25197 pthread_join(th, 0); 25198 pthread_attr_init(&attr); 25199 pthread_cleanup_push(routine, 0); 25200 pthread_cleanup_pop(0) /* ; */ 25201 ; 25202 return 0; 25203} 25204_ACEOF 25205if ac_fn_c_try_link "$LINENO"; then : 25206 ax_pthread_ok=yes 25207fi 25208rm -f core conftest.err conftest.$ac_objext \ 25209 conftest$ac_exeext conftest.$ac_ext 25210 25211 LIBS="$save_LIBS" 25212 CFLAGS="$save_CFLAGS" 25213 25214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 25215$as_echo "$ax_pthread_ok" >&6; } 25216 if test "x$ax_pthread_ok" = xyes; then 25217 break; 25218 fi 25219 25220 PTHREAD_LIBS="" 25221 PTHREAD_CFLAGS="" 25222done 25223fi 25224 25225# Various other checks: 25226if test "x$ax_pthread_ok" = xyes; then 25227 save_LIBS="$LIBS" 25228 LIBS="$PTHREAD_LIBS $LIBS" 25229 save_CFLAGS="$CFLAGS" 25230 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 25231 25232 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 25233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 25234$as_echo_n "checking for joinable pthread attribute... " >&6; } 25235 attr_name=unknown 25236 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 25237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25238/* end confdefs.h. */ 25239#include <pthread.h> 25240int 25241main () 25242{ 25243int attr = $attr; return attr /* ; */ 25244 ; 25245 return 0; 25246} 25247_ACEOF 25248if ac_fn_c_try_link "$LINENO"; then : 25249 attr_name=$attr; break 25250fi 25251rm -f core conftest.err conftest.$ac_objext \ 25252 conftest$ac_exeext conftest.$ac_ext 25253 done 25254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 25255$as_echo "$attr_name" >&6; } 25256 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 25257 25258cat >>confdefs.h <<_ACEOF 25259#define PTHREAD_CREATE_JOINABLE $attr_name 25260_ACEOF 25261 25262 fi 25263 25264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 25265$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 25266 flag=no 25267 case ${host_os} in 25268 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 25269 osf* | hpux*) flag="-D_REENTRANT";; 25270 solaris*) 25271 if test "$GCC" = "yes"; then 25272 flag="-D_REENTRANT" 25273 else 25274 # TODO: What about Clang on Solaris? 25275 flag="-mt -D_REENTRANT" 25276 fi 25277 ;; 25278 esac 25279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 25280$as_echo "$flag" >&6; } 25281 if test "x$flag" != xno; then 25282 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 25283 fi 25284 25285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 25286$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 25287if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 25288 $as_echo_n "(cached) " >&6 25289else 25290 25291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25292/* end confdefs.h. */ 25293#include <pthread.h> 25294int 25295main () 25296{ 25297int i = PTHREAD_PRIO_INHERIT; 25298 ; 25299 return 0; 25300} 25301_ACEOF 25302if ac_fn_c_try_link "$LINENO"; then : 25303 ax_cv_PTHREAD_PRIO_INHERIT=yes 25304else 25305 ax_cv_PTHREAD_PRIO_INHERIT=no 25306fi 25307rm -f core conftest.err conftest.$ac_objext \ 25308 conftest$ac_exeext conftest.$ac_ext 25309 25310fi 25311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 25312$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 25313 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 25314 25315$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 25316 25317fi 25318 25319 LIBS="$save_LIBS" 25320 CFLAGS="$save_CFLAGS" 25321 25322 # More AIX lossage: compile with *_r variant 25323 if test "x$GCC" != xyes; then 25324 case $host_os in 25325 aix*) 25326 case "x/$CC" in #( 25327 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 25328 #handle absolute path differently from PATH based program lookup 25329 case "x$CC" in #( 25330 x/*) : 25331 if as_fn_executable_p ${CC}_r; then : 25332 PTHREAD_CC="${CC}_r" 25333fi ;; #( 25334 *) : 25335 for ac_prog in ${CC}_r 25336do 25337 # Extract the first word of "$ac_prog", so it can be a program name with args. 25338set dummy $ac_prog; ac_word=$2 25339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25340$as_echo_n "checking for $ac_word... " >&6; } 25341if ${ac_cv_prog_PTHREAD_CC+:} false; then : 25342 $as_echo_n "(cached) " >&6 25343else 25344 if test -n "$PTHREAD_CC"; then 25345 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 25346else 25347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25348for as_dir in $PATH 25349do 25350 IFS=$as_save_IFS 25351 test -z "$as_dir" && as_dir=. 25352 for ac_exec_ext in '' $ac_executable_extensions; do 25353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25354 ac_cv_prog_PTHREAD_CC="$ac_prog" 25355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25356 break 2 25357 fi 25358done 25359 done 25360IFS=$as_save_IFS 25361 25362fi 25363fi 25364PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 25365if test -n "$PTHREAD_CC"; then 25366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 25367$as_echo "$PTHREAD_CC" >&6; } 25368else 25369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25370$as_echo "no" >&6; } 25371fi 25372 25373 25374 test -n "$PTHREAD_CC" && break 25375done 25376test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 25377 ;; 25378esac ;; #( 25379 *) : 25380 ;; 25381esac 25382 ;; 25383 esac 25384 fi 25385fi 25386 25387test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 25388 25389 25390 25391 25392 25393# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 25394if test x"$ax_pthread_ok" = xyes; then 25395 25396$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 25397 25398 : 25399else 25400 ax_pthread_ok=no 25401 as_fn_error $? "threaded input requested but no pthread support has been found" "$LINENO" 5 25402fi 25403ac_ext=c 25404ac_cpp='$CPP $CPPFLAGS' 25405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25407ac_compiler_gnu=$ac_cv_c_compiler_gnu 25408 25409 25410 SYS_LIBS="$SYS_LIBS $PTHREAD_LIBS" 25411 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 25412 25413$as_echo "#define INPUTTHREAD 1" >>confdefs.h 25414 25415 25416 save_LIBS="$LIBS" 25417 LIBS="$LIBS $SYS_LIBS" 25418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(const char*)" >&5 25419$as_echo_n "checking for pthread_setname_np(const char*)... " >&6; } 25420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25421/* end confdefs.h. */ 25422#include <pthread.h> 25423int 25424main () 25425{ 25426pthread_setname_np("example") 25427 ; 25428 return 0; 25429} 25430_ACEOF 25431if ac_fn_c_try_link "$LINENO"; then : 25432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25433$as_echo "yes" >&6; } 25434 25435$as_echo "#define HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID 1" >>confdefs.h 25436 25437else 25438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25439$as_echo "no" >&6; } 25440fi 25441rm -f core conftest.err conftest.$ac_objext \ 25442 conftest$ac_exeext conftest.$ac_ext 25443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(pthread_t, const char*)" >&5 25444$as_echo_n "checking for pthread_setname_np(pthread_t, const char*)... " >&6; } 25445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25446/* end confdefs.h. */ 25447#include <pthread.h> 25448int 25449main () 25450{ 25451pthread_setname_np(pthread_self(), "example") 25452 ; 25453 return 0; 25454} 25455_ACEOF 25456if ac_fn_c_try_link "$LINENO"; then : 25457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25458$as_echo "yes" >&6; } 25459 25460$as_echo "#define HAVE_PTHREAD_SETNAME_NP_WITH_TID 1" >>confdefs.h 25461 25462else 25463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25464$as_echo "no" >&6; } 25465fi 25466rm -f core conftest.err conftest.$ac_objext \ 25467 conftest$ac_exeext conftest.$ac_ext 25468 LIBS="$save_LIBS" 25469fi 25470 25471REQUIRED_MODULES="$FIXESPROTO $DAMAGEPROTO $XCMISCPROTO $XTRANS $BIGREQSPROTO $SDK_REQUIRED_MODULES" 25472 25473LIBSYSTEMD="libsystemd >= 209" 25474 25475# Check whether --with-systemd-daemon was given. 25476if test "${with_systemd_daemon+set}" = set; then : 25477 withval=$with_systemd_daemon; WITH_SYSTEMD_DAEMON=$withval 25478else 25479 WITH_SYSTEMD_DAEMON=auto 25480fi 25481 25482if test "x$WITH_SYSTEMD_DAEMON" = "xyes" -o "x$WITH_SYSTEMD_DAEMON" = "xauto" ; then 25483 25484pkg_failed=no 25485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 25486$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; } 25487 25488if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 25489 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 25490 elif test -n "$PKG_CONFIG"; then 25491 if test -n "$PKG_CONFIG" && \ 25492 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5 25493 ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5 25494 ac_status=$? 25495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25496 test $ac_status = 0; }; then 25497 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "$LIBSYSTEMD" 2>/dev/null` 25498 test "x$?" != "x0" && pkg_failed=yes 25499else 25500 pkg_failed=yes 25501fi 25502 else 25503 pkg_failed=untried 25504fi 25505if test -n "$SYSTEMD_DAEMON_LIBS"; then 25506 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 25507 elif test -n "$PKG_CONFIG"; then 25508 if test -n "$PKG_CONFIG" && \ 25509 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5 25510 ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5 25511 ac_status=$? 25512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25513 test $ac_status = 0; }; then 25514 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "$LIBSYSTEMD" 2>/dev/null` 25515 test "x$?" != "x0" && pkg_failed=yes 25516else 25517 pkg_failed=yes 25518fi 25519 else 25520 pkg_failed=untried 25521fi 25522 25523 25524 25525if test $pkg_failed = yes; then 25526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25527$as_echo "no" >&6; } 25528 25529if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25530 _pkg_short_errors_supported=yes 25531else 25532 _pkg_short_errors_supported=no 25533fi 25534 if test $_pkg_short_errors_supported = yes; then 25535 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1` 25536 else 25537 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1` 25538 fi 25539 # Put the nasty error message in config.log where it belongs 25540 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 25541 25542 25543pkg_failed=no 25544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 25545$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; } 25546 25547if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 25548 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 25549 elif test -n "$PKG_CONFIG"; then 25550 if test -n "$PKG_CONFIG" && \ 25551 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 25552 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 25553 ac_status=$? 25554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25555 test $ac_status = 0; }; then 25556 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 25557 test "x$?" != "x0" && pkg_failed=yes 25558else 25559 pkg_failed=yes 25560fi 25561 else 25562 pkg_failed=untried 25563fi 25564if test -n "$SYSTEMD_DAEMON_LIBS"; then 25565 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 25566 elif test -n "$PKG_CONFIG"; then 25567 if test -n "$PKG_CONFIG" && \ 25568 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 25569 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 25570 ac_status=$? 25571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25572 test $ac_status = 0; }; then 25573 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 25574 test "x$?" != "x0" && pkg_failed=yes 25575else 25576 pkg_failed=yes 25577fi 25578 else 25579 pkg_failed=untried 25580fi 25581 25582 25583 25584if test $pkg_failed = yes; then 25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25586$as_echo "no" >&6; } 25587 25588if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25589 _pkg_short_errors_supported=yes 25590else 25591 _pkg_short_errors_supported=no 25592fi 25593 if test $_pkg_short_errors_supported = yes; then 25594 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 25595 else 25596 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 25597 fi 25598 # Put the nasty error message in config.log where it belongs 25599 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 25600 25601 HAVE_SYSTEMD_DAEMON=no 25602elif test $pkg_failed = untried; then 25603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25604$as_echo "no" >&6; } 25605 HAVE_SYSTEMD_DAEMON=no 25606else 25607 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 25608 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 25609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25610$as_echo "yes" >&6; } 25611 HAVE_SYSTEMD_DAEMON=yes; 25612 LIBSYSTEMD_DAEMON=libsystemd-daemon 25613fi 25614elif test $pkg_failed = untried; then 25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25616$as_echo "no" >&6; } 25617 25618pkg_failed=no 25619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 25620$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; } 25621 25622if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 25623 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 25624 elif test -n "$PKG_CONFIG"; then 25625 if test -n "$PKG_CONFIG" && \ 25626 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 25627 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 25628 ac_status=$? 25629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25630 test $ac_status = 0; }; then 25631 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 25632 test "x$?" != "x0" && pkg_failed=yes 25633else 25634 pkg_failed=yes 25635fi 25636 else 25637 pkg_failed=untried 25638fi 25639if test -n "$SYSTEMD_DAEMON_LIBS"; then 25640 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 25641 elif test -n "$PKG_CONFIG"; then 25642 if test -n "$PKG_CONFIG" && \ 25643 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 25644 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 25645 ac_status=$? 25646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25647 test $ac_status = 0; }; then 25648 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 25649 test "x$?" != "x0" && pkg_failed=yes 25650else 25651 pkg_failed=yes 25652fi 25653 else 25654 pkg_failed=untried 25655fi 25656 25657 25658 25659if test $pkg_failed = yes; then 25660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25661$as_echo "no" >&6; } 25662 25663if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25664 _pkg_short_errors_supported=yes 25665else 25666 _pkg_short_errors_supported=no 25667fi 25668 if test $_pkg_short_errors_supported = yes; then 25669 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 25670 else 25671 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 25672 fi 25673 # Put the nasty error message in config.log where it belongs 25674 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 25675 25676 HAVE_SYSTEMD_DAEMON=no 25677elif test $pkg_failed = untried; then 25678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25679$as_echo "no" >&6; } 25680 HAVE_SYSTEMD_DAEMON=no 25681else 25682 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 25683 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25685$as_echo "yes" >&6; } 25686 HAVE_SYSTEMD_DAEMON=yes; 25687 LIBSYSTEMD_DAEMON=libsystemd-daemon 25688fi 25689else 25690 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 25691 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 25692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25693$as_echo "yes" >&6; } 25694 HAVE_SYSTEMD_DAEMON=yes; 25695 LIBSYSTEMD_DAEMON="$LIBSYSTEMD" 25696fi 25697 if test "x$HAVE_SYSTEMD_DAEMON" = xyes; then 25698 25699$as_echo "#define HAVE_SYSTEMD_DAEMON 1" >>confdefs.h 25700 25701 REQUIRED_LIBS="$REQUIRED_LIBS $LIBSYSTEMD_DAEMON" 25702 elif test "x$WITH_SYSTEMD_DAEMON" = xyes; then 25703 as_fn_error $? "systemd support requested but no library has been found" "$LINENO" 5 25704 fi 25705fi 25706 if test "x$HAVE_SYSTEMD_DAEMON" = "xyes"; then 25707 HAVE_SYSTEMD_DAEMON_TRUE= 25708 HAVE_SYSTEMD_DAEMON_FALSE='#' 25709else 25710 HAVE_SYSTEMD_DAEMON_TRUE='#' 25711 HAVE_SYSTEMD_DAEMON_FALSE= 25712fi 25713 25714 25715if test "x$CONFIG_UDEV" = xyes && test "x$CONFIG_HAL" = xyes; then 25716 as_fn_error $? "Hotplugging through both libudev and hal not allowed" "$LINENO" 5 25717fi 25718 25719 25720pkg_failed=no 25721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 25722$as_echo_n "checking for UDEV... " >&6; } 25723 25724if test -n "$UDEV_CFLAGS"; then 25725 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" 25726 elif test -n "$PKG_CONFIG"; then 25727 if test -n "$PKG_CONFIG" && \ 25728 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5 25729 ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5 25730 ac_status=$? 25731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25732 test $ac_status = 0; }; then 25733 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "$LIBUDEV" 2>/dev/null` 25734 test "x$?" != "x0" && pkg_failed=yes 25735else 25736 pkg_failed=yes 25737fi 25738 else 25739 pkg_failed=untried 25740fi 25741if test -n "$UDEV_LIBS"; then 25742 pkg_cv_UDEV_LIBS="$UDEV_LIBS" 25743 elif test -n "$PKG_CONFIG"; then 25744 if test -n "$PKG_CONFIG" && \ 25745 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5 25746 ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5 25747 ac_status=$? 25748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25749 test $ac_status = 0; }; then 25750 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "$LIBUDEV" 2>/dev/null` 25751 test "x$?" != "x0" && pkg_failed=yes 25752else 25753 pkg_failed=yes 25754fi 25755 else 25756 pkg_failed=untried 25757fi 25758 25759 25760 25761if test $pkg_failed = yes; then 25762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25763$as_echo "no" >&6; } 25764 25765if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25766 _pkg_short_errors_supported=yes 25767else 25768 _pkg_short_errors_supported=no 25769fi 25770 if test $_pkg_short_errors_supported = yes; then 25771 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBUDEV" 2>&1` 25772 else 25773 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBUDEV" 2>&1` 25774 fi 25775 # Put the nasty error message in config.log where it belongs 25776 echo "$UDEV_PKG_ERRORS" >&5 25777 25778 HAVE_LIBUDEV=no 25779elif test $pkg_failed = untried; then 25780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25781$as_echo "no" >&6; } 25782 HAVE_LIBUDEV=no 25783else 25784 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS 25785 UDEV_LIBS=$pkg_cv_UDEV_LIBS 25786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25787$as_echo "yes" >&6; } 25788 HAVE_LIBUDEV=yes 25789fi 25790if test "x$CONFIG_UDEV" = xauto; then 25791 CONFIG_UDEV="$HAVE_LIBUDEV" 25792 25793$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h 25794 25795fi 25796 if test "x$CONFIG_UDEV" = xyes; then 25797 CONFIG_UDEV_TRUE= 25798 CONFIG_UDEV_FALSE='#' 25799else 25800 CONFIG_UDEV_TRUE='#' 25801 CONFIG_UDEV_FALSE= 25802fi 25803 25804if test "x$CONFIG_UDEV" = xyes; then 25805 CONFIG_HAL=no 25806 if test "x$CONFIG_UDEV_KMS" = xauto; then 25807 CONFIG_UDEV_KMS="$HAVE_LIBUDEV" 25808 fi 25809 if ! test "x$HAVE_LIBUDEV" = xyes; then 25810 as_fn_error $? "udev configuration API requested, but libudev is not installed" "$LINENO" 5 25811 fi 25812 25813$as_echo "#define CONFIG_UDEV 1" >>confdefs.h 25814 25815 if test "x$CONFIG_UDEV_KMS" = xyes; then 25816 25817$as_echo "#define CONFIG_UDEV_KMS 1" >>confdefs.h 25818 25819 fi 25820 SAVE_LIBS=$LIBS 25821 SAVE_CFLAGS=$CFLAGS 25822 CFLAGS="$CFLAGS $UDEV_CFLAGS" 25823 LIBS=$UDEV_LIBS 25824 for ac_func in udev_monitor_filter_add_match_tag 25825do : 25826 ac_fn_c_check_func "$LINENO" "udev_monitor_filter_add_match_tag" "ac_cv_func_udev_monitor_filter_add_match_tag" 25827if test "x$ac_cv_func_udev_monitor_filter_add_match_tag" = xyes; then : 25828 cat >>confdefs.h <<_ACEOF 25829#define HAVE_UDEV_MONITOR_FILTER_ADD_MATCH_TAG 1 25830_ACEOF 25831 25832fi 25833done 25834 25835 for ac_func in udev_enumerate_add_match_tag 25836do : 25837 ac_fn_c_check_func "$LINENO" "udev_enumerate_add_match_tag" "ac_cv_func_udev_enumerate_add_match_tag" 25838if test "x$ac_cv_func_udev_enumerate_add_match_tag" = xyes; then : 25839 cat >>confdefs.h <<_ACEOF 25840#define HAVE_UDEV_ENUMERATE_ADD_MATCH_TAG 1 25841_ACEOF 25842 25843fi 25844done 25845 25846 LIBS=$SAVE_LIBS 25847 CFLAGS=$SAVE_CFLAGS 25848fi 25849 if test "x$CONFIG_UDEV_KMS" = xyes; then 25850 CONFIG_UDEV_KMS_TRUE= 25851 CONFIG_UDEV_KMS_FALSE='#' 25852else 25853 CONFIG_UDEV_KMS_TRUE='#' 25854 CONFIG_UDEV_KMS_FALSE= 25855fi 25856 25857 25858 25859pkg_failed=no 25860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5 25861$as_echo_n "checking for DBUS... " >&6; } 25862 25863if test -n "$DBUS_CFLAGS"; then 25864 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS" 25865 elif test -n "$PKG_CONFIG"; then 25866 if test -n "$PKG_CONFIG" && \ 25867 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5 25868 ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5 25869 ac_status=$? 25870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25871 test $ac_status = 0; }; then 25872 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$LIBDBUS" 2>/dev/null` 25873 test "x$?" != "x0" && pkg_failed=yes 25874else 25875 pkg_failed=yes 25876fi 25877 else 25878 pkg_failed=untried 25879fi 25880if test -n "$DBUS_LIBS"; then 25881 pkg_cv_DBUS_LIBS="$DBUS_LIBS" 25882 elif test -n "$PKG_CONFIG"; then 25883 if test -n "$PKG_CONFIG" && \ 25884 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5 25885 ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5 25886 ac_status=$? 25887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25888 test $ac_status = 0; }; then 25889 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$LIBDBUS" 2>/dev/null` 25890 test "x$?" != "x0" && pkg_failed=yes 25891else 25892 pkg_failed=yes 25893fi 25894 else 25895 pkg_failed=untried 25896fi 25897 25898 25899 25900if test $pkg_failed = yes; then 25901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25902$as_echo "no" >&6; } 25903 25904if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25905 _pkg_short_errors_supported=yes 25906else 25907 _pkg_short_errors_supported=no 25908fi 25909 if test $_pkg_short_errors_supported = yes; then 25910 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDBUS" 2>&1` 25911 else 25912 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDBUS" 2>&1` 25913 fi 25914 # Put the nasty error message in config.log where it belongs 25915 echo "$DBUS_PKG_ERRORS" >&5 25916 25917 HAVE_DBUS=no 25918elif test $pkg_failed = untried; then 25919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25920$as_echo "no" >&6; } 25921 HAVE_DBUS=no 25922else 25923 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS 25924 DBUS_LIBS=$pkg_cv_DBUS_LIBS 25925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25926$as_echo "yes" >&6; } 25927 HAVE_DBUS=yes 25928fi 25929if test "x$HAVE_DBUS" = xyes; then 25930 25931$as_echo "#define HAVE_DBUS 1" >>confdefs.h 25932 25933fi 25934 if test "x$HAVE_DBUS" = xyes; then 25935 HAVE_DBUS_TRUE= 25936 HAVE_DBUS_FALSE='#' 25937else 25938 HAVE_DBUS_TRUE='#' 25939 HAVE_DBUS_FALSE= 25940fi 25941 25942 25943 25944pkg_failed=no 25945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HAL" >&5 25946$as_echo_n "checking for HAL... " >&6; } 25947 25948if test -n "$HAL_CFLAGS"; then 25949 pkg_cv_HAL_CFLAGS="$HAL_CFLAGS" 25950 elif test -n "$PKG_CONFIG"; then 25951 if test -n "$PKG_CONFIG" && \ 25952 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5 25953 ($PKG_CONFIG --exists --print-errors "hal") 2>&5 25954 ac_status=$? 25955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25956 test $ac_status = 0; }; then 25957 pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null` 25958 test "x$?" != "x0" && pkg_failed=yes 25959else 25960 pkg_failed=yes 25961fi 25962 else 25963 pkg_failed=untried 25964fi 25965if test -n "$HAL_LIBS"; then 25966 pkg_cv_HAL_LIBS="$HAL_LIBS" 25967 elif test -n "$PKG_CONFIG"; then 25968 if test -n "$PKG_CONFIG" && \ 25969 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5 25970 ($PKG_CONFIG --exists --print-errors "hal") 2>&5 25971 ac_status=$? 25972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25973 test $ac_status = 0; }; then 25974 pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null` 25975 test "x$?" != "x0" && pkg_failed=yes 25976else 25977 pkg_failed=yes 25978fi 25979 else 25980 pkg_failed=untried 25981fi 25982 25983 25984 25985if test $pkg_failed = yes; then 25986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25987$as_echo "no" >&6; } 25988 25989if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25990 _pkg_short_errors_supported=yes 25991else 25992 _pkg_short_errors_supported=no 25993fi 25994 if test $_pkg_short_errors_supported = yes; then 25995 HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hal" 2>&1` 25996 else 25997 HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hal" 2>&1` 25998 fi 25999 # Put the nasty error message in config.log where it belongs 26000 echo "$HAL_PKG_ERRORS" >&5 26001 26002 HAVE_HAL=no 26003elif test $pkg_failed = untried; then 26004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26005$as_echo "no" >&6; } 26006 HAVE_HAL=no 26007else 26008 HAL_CFLAGS=$pkg_cv_HAL_CFLAGS 26009 HAL_LIBS=$pkg_cv_HAL_LIBS 26010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26011$as_echo "yes" >&6; } 26012 HAVE_HAL=yes 26013fi 26014if test "x$CONFIG_HAL" = xauto; then 26015 CONFIG_HAL="$HAVE_HAL" 26016fi 26017if test "x$CONFIG_HAL" = xyes; then 26018 if ! test "x$HAVE_HAL" = xyes; then 26019 as_fn_error $? "HAL hotplug API requested, but HAL is not installed." "$LINENO" 5 26020 fi 26021 26022 26023$as_echo "#define CONFIG_HAL 1" >>confdefs.h 26024 26025 NEED_DBUS="yes" 26026fi 26027 if test "x$CONFIG_HAL" = xyes; then 26028 CONFIG_HAL_TRUE= 26029 CONFIG_HAL_FALSE='#' 26030else 26031 CONFIG_HAL_TRUE='#' 26032 CONFIG_HAL_FALSE= 26033fi 26034 26035 26036if test "x$SYSTEMD_LOGIND" = xauto; then 26037 if test "x$HAVE_DBUS" = xyes -a "x$CONFIG_UDEV" = xyes ; then 26038 SYSTEMD_LOGIND=yes 26039 else 26040 SYSTEMD_LOGIND=no 26041 fi 26042fi 26043if test "x$SYSTEMD_LOGIND" = xyes; then 26044 if ! test "x$HAVE_DBUS" = xyes; then 26045 as_fn_error $? "systemd-logind requested, but D-Bus is not installed." "$LINENO" 5 26046 fi 26047 if ! test "x$CONFIG_UDEV" = xyes ; then 26048 as_fn_error $? "systemd-logind is only supported in combination with udev configuration." "$LINENO" 5 26049 fi 26050 26051 26052$as_echo "#define SYSTEMD_LOGIND 1" >>confdefs.h 26053 26054 NEED_DBUS="yes" 26055fi 26056 if test "x$SYSTEMD_LOGIND" = xyes; then 26057 SYSTEMD_LOGIND_TRUE= 26058 SYSTEMD_LOGIND_FALSE='#' 26059else 26060 SYSTEMD_LOGIND_TRUE='#' 26061 SYSTEMD_LOGIND_FALSE= 26062fi 26063 26064 26065if test "x$SUID_WRAPPER" = xyes; then 26066 26067 prefix_NONE= 26068 exec_prefix_NONE= 26069 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 26070 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 26071 eval ac_define_dir="\"$libexecdir\"" 26072 eval ac_define_dir="\"$ac_define_dir\"" 26073 SUID_WRAPPER_DIR="$ac_define_dir" 26074 26075 26076cat >>confdefs.h <<_ACEOF 26077#define SUID_WRAPPER_DIR "$ac_define_dir" 26078_ACEOF 26079 26080 test "$prefix_NONE" && prefix=NONE 26081 test "$exec_prefix_NONE" && exec_prefix=NONE 26082 26083 SETUID="no" 26084fi 26085 if test "x$SUID_WRAPPER" = xyes; then 26086 SUID_WRAPPER_TRUE= 26087 SUID_WRAPPER_FALSE='#' 26088else 26089 SUID_WRAPPER_TRUE='#' 26090 SUID_WRAPPER_FALSE= 26091fi 26092 26093 26094if test "x$NEED_DBUS" = xyes; then 26095 26096$as_echo "#define NEED_DBUS 1" >>confdefs.h 26097 26098fi 26099 if test "x$NEED_DBUS" = xyes; then 26100 NEED_DBUS_TRUE= 26101 NEED_DBUS_FALSE='#' 26102else 26103 NEED_DBUS_TRUE='#' 26104 NEED_DBUS_FALSE= 26105fi 26106 26107 26108if test "x$CONFIG_WSCONS" = xauto; then 26109 case $host_os in 26110 *openbsd*) 26111 CONFIG_WSCONS=yes; 26112 ;; 26113 *) 26114 CONFIG_WSCONS=no; 26115 ;; 26116 esac 26117fi 26118 if test "x$CONFIG_WSCONS" = xyes; then 26119 CONFIG_WSCONS_TRUE= 26120 CONFIG_WSCONS_FALSE='#' 26121else 26122 CONFIG_WSCONS_TRUE='#' 26123 CONFIG_WSCONS_FALSE= 26124fi 26125 26126if test "x$CONFIG_WSCONS" = xyes; then 26127 26128$as_echo "#define CONFIG_WSCONS 1" >>confdefs.h 26129 26130fi 26131 26132 26133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc..." >&5 26134$as_echo_n "checking for glibc...... " >&6; } 26135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26136/* end confdefs.h. */ 26137 26138#include <features.h> 26139#ifndef __GLIBC__ 26140#error 26141#endif 26142 26143_ACEOF 26144if ac_fn_c_try_cpp "$LINENO"; then : 26145 glibc=yes 26146else 26147 glibc=no 26148fi 26149rm -f conftest.err conftest.i conftest.$ac_ext 26150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc" >&5 26151$as_echo "$glibc" >&6; } 26152 26153for ac_func in clock_gettime 26154do : 26155 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 26156if test "x$ac_cv_func_clock_gettime" = xyes; then : 26157 cat >>confdefs.h <<_ACEOF 26158#define HAVE_CLOCK_GETTIME 1 26159_ACEOF 26160 have_clock_gettime=yes 26161else 26162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 26163$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 26164if ${ac_cv_lib_rt_clock_gettime+:} false; then : 26165 $as_echo_n "(cached) " >&6 26166else 26167 ac_check_lib_save_LIBS=$LIBS 26168LIBS="-lrt $LIBS" 26169cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26170/* end confdefs.h. */ 26171 26172/* Override any GCC internal prototype to avoid an error. 26173 Use char because int might match the return type of a GCC 26174 builtin and then its argument prototype would still apply. */ 26175#ifdef __cplusplus 26176extern "C" 26177#endif 26178char clock_gettime (); 26179int 26180main () 26181{ 26182return clock_gettime (); 26183 ; 26184 return 0; 26185} 26186_ACEOF 26187if ac_fn_c_try_link "$LINENO"; then : 26188 ac_cv_lib_rt_clock_gettime=yes 26189else 26190 ac_cv_lib_rt_clock_gettime=no 26191fi 26192rm -f core conftest.err conftest.$ac_objext \ 26193 conftest$ac_exeext conftest.$ac_ext 26194LIBS=$ac_check_lib_save_LIBS 26195fi 26196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 26197$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 26198if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 26199 have_clock_gettime=-lrt 26200else 26201 have_clock_gettime=no 26202fi 26203 26204fi 26205done 26206 26207 26208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a useful monotonic clock ..." >&5 26209$as_echo_n "checking for a useful monotonic clock ...... " >&6; } 26210 26211if ! test "x$have_clock_gettime" = xno; then 26212 if ! test "x$have_clock_gettime" = xyes; then 26213 CLOCK_LIBS="$have_clock_gettime" 26214 else 26215 CLOCK_LIBS="" 26216 fi 26217 26218 LIBS_SAVE="$LIBS" 26219 LIBS="$CLOCK_LIBS" 26220 CPPFLAGS_SAVE="$CPPFLAGS" 26221 26222 if test x"$glibc" = xyes; then 26223 CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L" 26224 fi 26225 26226 if test "$cross_compiling" = yes; then : 26227 MONOTONIC_CLOCK="cross compiling" 26228else 26229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26230/* end confdefs.h. */ 26231 26232#include <time.h> 26233 26234int main(int argc, char *argv[]) { 26235 struct timespec tp; 26236 26237 if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0) 26238 return 0; 26239 else 26240 return 1; 26241} 26242 26243_ACEOF 26244if ac_fn_c_try_run "$LINENO"; then : 26245 MONOTONIC_CLOCK=yes 26246else 26247 MONOTONIC_CLOCK=no 26248fi 26249rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26250 conftest.$ac_objext conftest.beam conftest.$ac_ext 26251fi 26252 26253 26254 if test "$MONOTONIC_CLOCK" = "cross compiling"; then 26255 ac_fn_c_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#include <time.h> 26256" 26257if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes; then : 26258 MONOTONIC_CLOCK="guessing yes" 26259else 26260 MONOTONIC_CLOCK=no 26261fi 26262 26263 fi 26264 26265 LIBS="$LIBS_SAVE" 26266 CPPFLAGS="$CPPFLAGS_SAVE" 26267else 26268 MONOTONIC_CLOCK=no 26269fi 26270 26271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MONOTONIC_CLOCK" >&5 26272$as_echo "$MONOTONIC_CLOCK" >&6; } 26273if test "$MONOTONIC_CLOCK" = "guessing yes"; then 26274 MONOTONIC_CLOCK=yes 26275fi 26276 26277if test "x$MONOTONIC_CLOCK" = xyes; then 26278 26279$as_echo "#define MONOTONIC_CLOCK 1" >>confdefs.h 26280 26281 LIBS="$LIBS $CLOCK_LIBS" 26282fi 26283 26284 if test "x$XV" = xyes; then 26285 XV_TRUE= 26286 XV_FALSE='#' 26287else 26288 XV_TRUE='#' 26289 XV_FALSE= 26290fi 26291 26292if test "x$XV" = xyes; then 26293 26294$as_echo "#define XV 1" >>confdefs.h 26295 26296 26297$as_echo "#define XvExtension 1" >>confdefs.h 26298 26299 REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO" 26300 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $VIDEOPROTO" 26301else 26302 XVMC=no 26303fi 26304 26305 if test "x$XVMC" = xyes; then 26306 XVMC_TRUE= 26307 XVMC_FALSE='#' 26308else 26309 XVMC_TRUE='#' 26310 XVMC_FALSE= 26311fi 26312 26313if test "x$XVMC" = xyes; then 26314 26315$as_echo "#define XvMCExtension 1" >>confdefs.h 26316 26317fi 26318 26319 if test "x$COMPOSITE" = xyes; then 26320 COMPOSITE_TRUE= 26321 COMPOSITE_FALSE='#' 26322else 26323 COMPOSITE_TRUE='#' 26324 COMPOSITE_FALSE= 26325fi 26326 26327if test "x$COMPOSITE" = xyes; then 26328 26329$as_echo "#define COMPOSITE 1" >>confdefs.h 26330 26331 REQUIRED_MODULES="$REQUIRED_MODULES $COMPOSITEPROTO" 26332 COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la' 26333 COMPOSITE_INC='-I$(top_srcdir)/composite' 26334fi 26335 26336if test "x$MITSHM" = xauto; then 26337 MITSHM="$ac_cv_sysv_ipc" 26338fi 26339 if test "x$MITSHM" = xyes; then 26340 MITSHM_TRUE= 26341 MITSHM_FALSE='#' 26342else 26343 MITSHM_TRUE='#' 26344 MITSHM_FALSE= 26345fi 26346 26347if test "x$MITSHM" = xyes; then 26348 26349$as_echo "#define MITSHM 1" >>confdefs.h 26350 26351 26352$as_echo "#define HAS_SHM 1" >>confdefs.h 26353 26354fi 26355 26356 if test "x$RECORD" = xyes; then 26357 RECORD_TRUE= 26358 RECORD_FALSE='#' 26359else 26360 RECORD_TRUE='#' 26361 RECORD_FALSE= 26362fi 26363 26364if test "x$RECORD" = xyes; then 26365 26366$as_echo "#define XRECORD 1" >>confdefs.h 26367 26368 REQUIRED_MODULES="$REQUIRED_MODULES $RECORDPROTO" 26369 RECORD_LIB='$(top_builddir)/record/librecord.la' 26370fi 26371 26372 if test "x$SCREENSAVER" = xyes; then 26373 SCREENSAVER_TRUE= 26374 SCREENSAVER_FALSE='#' 26375else 26376 SCREENSAVER_TRUE='#' 26377 SCREENSAVER_FALSE= 26378fi 26379 26380if test "x$SCREENSAVER" = xyes; then 26381 26382$as_echo "#define SCREENSAVER 1" >>confdefs.h 26383 26384 REQUIRED_MODULES="$REQUIRED_MODULES $SCRNSAVERPROTO" 26385 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $SCRNSAVERPROTO" 26386fi 26387 26388HASHTABLE=no 26389 if test "x$RES" = xyes; then 26390 RES_TRUE= 26391 RES_FALSE='#' 26392else 26393 RES_TRUE='#' 26394 RES_FALSE= 26395fi 26396 26397if test "x$RES" = xyes; then 26398 26399$as_echo "#define RES 1" >>confdefs.h 26400 26401 HASHTABLE=yes 26402 REQUIRED_MODULES="$REQUIRED_MODULES $RESOURCEPROTO" 26403 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $RESOURCEPROTO" 26404fi 26405 26406if test "x$LISTEN_TCP" = xyes; then 26407 26408$as_echo "#define LISTEN_TCP 1" >>confdefs.h 26409 26410fi 26411if test "x$LISTEN_UNIX" = xyes; then 26412 26413$as_echo "#define LISTEN_UNIX 1" >>confdefs.h 26414 26415fi 26416if test "x$LISTEN_LOCAL" = xyes; then 26417 26418$as_echo "#define LISTEN_LOCAL 1" >>confdefs.h 26419 26420fi 26421 26422# The XRes extension may support client ID tracking only if it has 26423# been specifically enabled. Client ID tracking is implicitly not 26424# supported if XRes extension is disabled. 26425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to track client ids" >&5 26426$as_echo_n "checking whether to track client ids... " >&6; } 26427if test "x$RES" = xyes && test "x$CLIENTIDS" = xyes; then 26428 26429$as_echo "#define CLIENTIDS 1" >>confdefs.h 26430 26431else 26432 CLIENTIDS=no 26433fi 26434if test "x$CLIENTIDS" = xyes; then 26435 case $host_os in 26436 openbsd*) 26437 SYS_LIBS="$SYS_LIBS -lkvm" 26438 ;; 26439 esac 26440fi 26441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLIENTIDS" >&5 26442$as_echo "$CLIENTIDS" >&6; } 26443 if test "x$CLIENTIDS" = xyes; then 26444 CLIENTIDS_TRUE= 26445 CLIENTIDS_FALSE='#' 26446else 26447 CLIENTIDS_TRUE='#' 26448 CLIENTIDS_FALSE= 26449fi 26450 26451 26452 if test "x$DRI" = xyes; then 26453 DRI_TRUE= 26454 DRI_FALSE='#' 26455else 26456 DRI_TRUE='#' 26457 DRI_FALSE= 26458fi 26459 26460if test "x$DRI" = xyes; then 26461 26462$as_echo "#define XF86DRI 1" >>confdefs.h 26463 26464 REQUIRED_MODULES="$REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI" 26465 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI" 26466fi 26467 26468 26469pkg_failed=no 26470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2PROTO" >&5 26471$as_echo_n "checking for DRI2PROTO... " >&6; } 26472 26473if test -n "$DRI2PROTO_CFLAGS"; then 26474 pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS" 26475 elif test -n "$PKG_CONFIG"; then 26476 if test -n "$PKG_CONFIG" && \ 26477 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5 26478 ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5 26479 ac_status=$? 26480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26481 test $ac_status = 0; }; then 26482 pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI2PROTO" 2>/dev/null` 26483 test "x$?" != "x0" && pkg_failed=yes 26484else 26485 pkg_failed=yes 26486fi 26487 else 26488 pkg_failed=untried 26489fi 26490if test -n "$DRI2PROTO_LIBS"; then 26491 pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS" 26492 elif test -n "$PKG_CONFIG"; then 26493 if test -n "$PKG_CONFIG" && \ 26494 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5 26495 ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5 26496 ac_status=$? 26497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26498 test $ac_status = 0; }; then 26499 pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "$DRI2PROTO" 2>/dev/null` 26500 test "x$?" != "x0" && pkg_failed=yes 26501else 26502 pkg_failed=yes 26503fi 26504 else 26505 pkg_failed=untried 26506fi 26507 26508 26509 26510if test $pkg_failed = yes; then 26511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26512$as_echo "no" >&6; } 26513 26514if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26515 _pkg_short_errors_supported=yes 26516else 26517 _pkg_short_errors_supported=no 26518fi 26519 if test $_pkg_short_errors_supported = yes; then 26520 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI2PROTO" 2>&1` 26521 else 26522 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI2PROTO" 2>&1` 26523 fi 26524 # Put the nasty error message in config.log where it belongs 26525 echo "$DRI2PROTO_PKG_ERRORS" >&5 26526 26527 HAVE_DRI2PROTO=no 26528elif test $pkg_failed = untried; then 26529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26530$as_echo "no" >&6; } 26531 HAVE_DRI2PROTO=no 26532else 26533 DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS 26534 DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS 26535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26536$as_echo "yes" >&6; } 26537 HAVE_DRI2PROTO=yes 26538fi 26539case "$DRI2,$HAVE_DRI2PROTO" in 26540 yes,no) 26541 as_fn_error $? "DRI2 requested, but dri2proto not found." "$LINENO" 5 26542 ;; 26543 yes,yes | auto,yes) 26544 26545$as_echo "#define DRI2 1" >>confdefs.h 26546 26547 DRI2=yes 26548 LIBGL="gl >= 1.2" 26549 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI2PROTO" 26550 ;; 26551esac 26552 if test "x$DRI2" = xyes; then 26553 DRI2_TRUE= 26554 DRI2_FALSE='#' 26555else 26556 DRI2_TRUE='#' 26557 DRI2_FALSE= 26558fi 26559 26560 26561# Check whether --enable-xtrans-send-fds was given. 26562if test "${enable_xtrans_send_fds+set}" = set; then : 26563 enableval=$enable_xtrans_send_fds; XTRANS_SEND_FDS=$enableval 26564else 26565 XTRANS_SEND_FDS=auto 26566fi 26567 26568 26569case "x$XTRANS_SEND_FDS" in 26570xauto) 26571 case "$host_os" in 26572 linux*|solaris*|freebsd*|dragonfly*|openbsd*) 26573 XTRANS_SEND_FDS=yes 26574 ;; 26575 *) 26576 XTRANS_SEND_FDS=no 26577 ;; 26578 esac 26579esac 26580 26581case "x$XTRANS_SEND_FDS" in 26582xyes) 26583 26584$as_echo "#define XTRANS_SEND_FDS 1" >>confdefs.h 26585 26586 ;; 26587esac 26588 26589case "$DRI3,$XTRANS_SEND_FDS" in 26590 yes,yes | auto,yes) 26591 ;; 26592 yes,no) 26593 as_fn_error $? "DRI3 requested, but xtrans fd passing support not found." "$LINENO" 5 26594 DRI3=no 26595 ;; 26596 no,*) 26597 ;; 26598 *) 26599 { $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xtrans fd passing support not found." >&5 26600$as_echo "$as_me: DRI3 disabled because xtrans fd passing support not found." >&6;} 26601 DRI3=no 26602 ;; 26603esac 26604 26605 26606pkg_failed=no 26607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI3PROTO" >&5 26608$as_echo_n "checking for DRI3PROTO... " >&6; } 26609 26610if test -n "$DRI3PROTO_CFLAGS"; then 26611 pkg_cv_DRI3PROTO_CFLAGS="$DRI3PROTO_CFLAGS" 26612 elif test -n "$PKG_CONFIG"; then 26613 if test -n "$PKG_CONFIG" && \ 26614 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5 26615 ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5 26616 ac_status=$? 26617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26618 test $ac_status = 0; }; then 26619 pkg_cv_DRI3PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI3PROTO" 2>/dev/null` 26620 test "x$?" != "x0" && pkg_failed=yes 26621else 26622 pkg_failed=yes 26623fi 26624 else 26625 pkg_failed=untried 26626fi 26627if test -n "$DRI3PROTO_LIBS"; then 26628 pkg_cv_DRI3PROTO_LIBS="$DRI3PROTO_LIBS" 26629 elif test -n "$PKG_CONFIG"; then 26630 if test -n "$PKG_CONFIG" && \ 26631 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5 26632 ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5 26633 ac_status=$? 26634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26635 test $ac_status = 0; }; then 26636 pkg_cv_DRI3PROTO_LIBS=`$PKG_CONFIG --libs "$DRI3PROTO" 2>/dev/null` 26637 test "x$?" != "x0" && pkg_failed=yes 26638else 26639 pkg_failed=yes 26640fi 26641 else 26642 pkg_failed=untried 26643fi 26644 26645 26646 26647if test $pkg_failed = yes; then 26648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26649$as_echo "no" >&6; } 26650 26651if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26652 _pkg_short_errors_supported=yes 26653else 26654 _pkg_short_errors_supported=no 26655fi 26656 if test $_pkg_short_errors_supported = yes; then 26657 DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI3PROTO" 2>&1` 26658 else 26659 DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI3PROTO" 2>&1` 26660 fi 26661 # Put the nasty error message in config.log where it belongs 26662 echo "$DRI3PROTO_PKG_ERRORS" >&5 26663 26664 HAVE_DRI3PROTO=no 26665elif test $pkg_failed = untried; then 26666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26667$as_echo "no" >&6; } 26668 HAVE_DRI3PROTO=no 26669else 26670 DRI3PROTO_CFLAGS=$pkg_cv_DRI3PROTO_CFLAGS 26671 DRI3PROTO_LIBS=$pkg_cv_DRI3PROTO_LIBS 26672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26673$as_echo "yes" >&6; } 26674 HAVE_DRI3PROTO=yes 26675fi 26676 26677case "$DRI3,$HAVE_DRI3PROTO" in 26678 yes,yes | auto,yes) 26679 REQUIRED_MODULES="$REQUIRED_MODULES dri3proto" 26680 ;; 26681 yes,no) 26682 as_fn_error $? "DRI3 requested, but dri3proto not found." "$LINENO" 5 26683 DRI3=no 26684 ;; 26685 no,*) 26686 ;; 26687 *) 26688 { $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because dri3proto not found." >&5 26689$as_echo "$as_me: DRI3 disabled because dri3proto not found." >&6;} 26690 DRI3=no 26691 ;; 26692esac 26693 26694for ac_func in sigaction 26695do : 26696 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 26697if test "x$ac_cv_func_sigaction" = xyes; then : 26698 cat >>confdefs.h <<_ACEOF 26699#define HAVE_SIGACTION 1 26700_ACEOF 26701 26702fi 26703done 26704 26705 26706BUSFAULT=no 26707 26708case x"$ac_cv_func_sigaction" in 26709 xyes) 26710 26711$as_echo "#define HAVE_SIGACTION 1" >>confdefs.h 26712 26713 BUSFAULT=yes 26714 ;; 26715esac 26716 26717case x"$BUSFAULT" in 26718 xyes) 26719 26720$as_echo "#define BUSFAULT 1" >>confdefs.h 26721 26722 ;; 26723esac 26724 26725 if test x"$BUSFAULT" = xyes; then 26726 BUSFAULT_TRUE= 26727 BUSFAULT_FALSE='#' 26728else 26729 BUSFAULT_TRUE='#' 26730 BUSFAULT_FALSE= 26731fi 26732 26733 26734 26735 26736pkg_failed=no 26737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSHMFENCE" >&5 26738$as_echo_n "checking for XSHMFENCE... " >&6; } 26739 26740if test -n "$XSHMFENCE_CFLAGS"; then 26741 pkg_cv_XSHMFENCE_CFLAGS="$XSHMFENCE_CFLAGS" 26742 elif test -n "$PKG_CONFIG"; then 26743 if test -n "$PKG_CONFIG" && \ 26744 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5 26745 ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5 26746 ac_status=$? 26747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26748 test $ac_status = 0; }; then 26749 pkg_cv_XSHMFENCE_CFLAGS=`$PKG_CONFIG --cflags "$LIBXSHMFENCE" 2>/dev/null` 26750 test "x$?" != "x0" && pkg_failed=yes 26751else 26752 pkg_failed=yes 26753fi 26754 else 26755 pkg_failed=untried 26756fi 26757if test -n "$XSHMFENCE_LIBS"; then 26758 pkg_cv_XSHMFENCE_LIBS="$XSHMFENCE_LIBS" 26759 elif test -n "$PKG_CONFIG"; then 26760 if test -n "$PKG_CONFIG" && \ 26761 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5 26762 ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5 26763 ac_status=$? 26764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26765 test $ac_status = 0; }; then 26766 pkg_cv_XSHMFENCE_LIBS=`$PKG_CONFIG --libs "$LIBXSHMFENCE" 2>/dev/null` 26767 test "x$?" != "x0" && pkg_failed=yes 26768else 26769 pkg_failed=yes 26770fi 26771 else 26772 pkg_failed=untried 26773fi 26774 26775 26776 26777if test $pkg_failed = yes; then 26778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26779$as_echo "no" >&6; } 26780 26781if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26782 _pkg_short_errors_supported=yes 26783else 26784 _pkg_short_errors_supported=no 26785fi 26786 if test $_pkg_short_errors_supported = yes; then 26787 XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1` 26788 else 26789 XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1` 26790 fi 26791 # Put the nasty error message in config.log where it belongs 26792 echo "$XSHMFENCE_PKG_ERRORS" >&5 26793 26794 HAVE_XSHMFENCE=no 26795elif test $pkg_failed = untried; then 26796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26797$as_echo "no" >&6; } 26798 HAVE_XSHMFENCE=no 26799else 26800 XSHMFENCE_CFLAGS=$pkg_cv_XSHMFENCE_CFLAGS 26801 XSHMFENCE_LIBS=$pkg_cv_XSHMFENCE_LIBS 26802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26803$as_echo "yes" >&6; } 26804 HAVE_XSHMFENCE=yes 26805fi 26806if test "x$XSHMFENCE" = "xauto"; then 26807 XSHMFENCE="$HAVE_XSHMFENCE" 26808fi 26809 26810if test "x$XSHMFENCE" = "xyes"; then 26811 if test "x$HAVE_XSHMFENCE" != "xyes"; then 26812 as_fn_error $? "xshmfence requested but not installed." "$LINENO" 5 26813 fi 26814 26815$as_echo "#define HAVE_XSHMFENCE 1" >>confdefs.h 26816 26817 REQUIRED_LIBS="$REQUIRED_LIBS $LIBXSHMFENCE" 26818fi 26819 26820 if test "x$XSHMFENCE" = xyes; then 26821 XSHMFENCE_TRUE= 26822 XSHMFENCE_FALSE='#' 26823else 26824 XSHMFENCE_TRUE='#' 26825 XSHMFENCE_FALSE= 26826fi 26827 26828 26829case "$DRI3,$XSHMFENCE" in 26830 yes,yes | auto,yes) 26831 ;; 26832 yes,no) 26833 as_fn_error $? "DRI3 requested, but xshmfence not found." "$LINENO" 5 26834 DRI3=no 26835 ;; 26836 no,*) 26837 ;; 26838 *) 26839 { $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xshmfence not found." >&5 26840$as_echo "$as_me: DRI3 disabled because xshmfence not found." >&6;} 26841 DRI3=no 26842 ;; 26843esac 26844 26845case x"$DRI3" in 26846 xyes|xauto) 26847 DRI3=yes 26848 26849$as_echo "#define DRI3 1" >>confdefs.h 26850 26851 DRI3_LIB='$(top_builddir)/dri3/libdri3.la' 26852 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI3PROTO" 26853 { $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 enabled" >&5 26854$as_echo "$as_me: DRI3 enabled" >&6;}; 26855 ;; 26856esac 26857 26858 if test "x$DRI3" = xyes; then 26859 DRI3_TRUE= 26860 DRI3_FALSE='#' 26861else 26862 DRI3_TRUE='#' 26863 DRI3_FALSE= 26864fi 26865 26866 26867if test "x$DRI" = xyes || test "x$DRI2" = xyes || test "x$DRI3" = xyes || test "x$CONFIG_UDEV_KMS" = xyes || test "x$XORG" = xyes; then 26868 if test "x$DRM" = xyes; then 26869 26870$as_echo "#define WITH_LIBDRM 1" >>confdefs.h 26871 26872 26873pkg_failed=no 26874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5 26875$as_echo_n "checking for LIBDRM... " >&6; } 26876 26877if test -n "$LIBDRM_CFLAGS"; then 26878 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" 26879 elif test -n "$PKG_CONFIG"; then 26880 if test -n "$PKG_CONFIG" && \ 26881 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5 26882 ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5 26883 ac_status=$? 26884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26885 test $ac_status = 0; }; then 26886 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "$LIBDRM" 2>/dev/null` 26887 test "x$?" != "x0" && pkg_failed=yes 26888else 26889 pkg_failed=yes 26890fi 26891 else 26892 pkg_failed=untried 26893fi 26894if test -n "$LIBDRM_LIBS"; then 26895 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" 26896 elif test -n "$PKG_CONFIG"; then 26897 if test -n "$PKG_CONFIG" && \ 26898 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5 26899 ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5 26900 ac_status=$? 26901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26902 test $ac_status = 0; }; then 26903 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "$LIBDRM" 2>/dev/null` 26904 test "x$?" != "x0" && pkg_failed=yes 26905else 26906 pkg_failed=yes 26907fi 26908 else 26909 pkg_failed=untried 26910fi 26911 26912 26913 26914if test $pkg_failed = yes; then 26915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26916$as_echo "no" >&6; } 26917 26918if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26919 _pkg_short_errors_supported=yes 26920else 26921 _pkg_short_errors_supported=no 26922fi 26923 if test $_pkg_short_errors_supported = yes; then 26924 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDRM" 2>&1` 26925 else 26926 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDRM" 2>&1` 26927 fi 26928 # Put the nasty error message in config.log where it belongs 26929 echo "$LIBDRM_PKG_ERRORS" >&5 26930 26931 as_fn_error $? "Package requirements ($LIBDRM) were not met: 26932 26933$LIBDRM_PKG_ERRORS 26934 26935Consider adjusting the PKG_CONFIG_PATH environment variable if you 26936installed software in a non-standard prefix. 26937 26938Alternatively, you may set the environment variables LIBDRM_CFLAGS 26939and LIBDRM_LIBS to avoid the need to call pkg-config. 26940See the pkg-config man page for more details." "$LINENO" 5 26941elif test $pkg_failed = untried; then 26942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26943$as_echo "no" >&6; } 26944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26946as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 26947is in your PATH or set the PKG_CONFIG environment variable to the full 26948path to pkg-config. 26949 26950Alternatively, you may set the environment variables LIBDRM_CFLAGS 26951and LIBDRM_LIBS to avoid the need to call pkg-config. 26952See the pkg-config man page for more details. 26953 26954To get pkg-config, see <http://pkg-config.freedesktop.org/>. 26955See \`config.log' for more details" "$LINENO" 5; } 26956else 26957 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS 26958 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS 26959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26960$as_echo "yes" >&6; } 26961 26962fi 26963 fi 26964fi 26965 26966if test "x$GLX" = xyes; then 26967 26968pkg_failed=no 26969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5 26970$as_echo_n "checking for XLIB... " >&6; } 26971 26972if test -n "$XLIB_CFLAGS"; then 26973 pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS" 26974 elif test -n "$PKG_CONFIG"; then 26975 if test -n "$PKG_CONFIG" && \ 26976 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 26977 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 26978 ac_status=$? 26979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26980 test $ac_status = 0; }; then 26981 pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 26982 test "x$?" != "x0" && pkg_failed=yes 26983else 26984 pkg_failed=yes 26985fi 26986 else 26987 pkg_failed=untried 26988fi 26989if test -n "$XLIB_LIBS"; then 26990 pkg_cv_XLIB_LIBS="$XLIB_LIBS" 26991 elif test -n "$PKG_CONFIG"; then 26992 if test -n "$PKG_CONFIG" && \ 26993 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 26994 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 26995 ac_status=$? 26996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26997 test $ac_status = 0; }; then 26998 pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 26999 test "x$?" != "x0" && pkg_failed=yes 27000else 27001 pkg_failed=yes 27002fi 27003 else 27004 pkg_failed=untried 27005fi 27006 27007 27008 27009if test $pkg_failed = yes; then 27010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27011$as_echo "no" >&6; } 27012 27013if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27014 _pkg_short_errors_supported=yes 27015else 27016 _pkg_short_errors_supported=no 27017fi 27018 if test $_pkg_short_errors_supported = yes; then 27019 XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 27020 else 27021 XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 27022 fi 27023 # Put the nasty error message in config.log where it belongs 27024 echo "$XLIB_PKG_ERRORS" >&5 27025 27026 as_fn_error $? "Package requirements (x11) were not met: 27027 27028$XLIB_PKG_ERRORS 27029 27030Consider adjusting the PKG_CONFIG_PATH environment variable if you 27031installed software in a non-standard prefix. 27032 27033Alternatively, you may set the environment variables XLIB_CFLAGS 27034and XLIB_LIBS to avoid the need to call pkg-config. 27035See the pkg-config man page for more details." "$LINENO" 5 27036elif test $pkg_failed = untried; then 27037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27038$as_echo "no" >&6; } 27039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27041as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 27042is in your PATH or set the PKG_CONFIG environment variable to the full 27043path to pkg-config. 27044 27045Alternatively, you may set the environment variables XLIB_CFLAGS 27046and XLIB_LIBS to avoid the need to call pkg-config. 27047See the pkg-config man page for more details. 27048 27049To get pkg-config, see <http://pkg-config.freedesktop.org/>. 27050See \`config.log' for more details" "$LINENO" 5; } 27051else 27052 XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS 27053 XLIB_LIBS=$pkg_cv_XLIB_LIBS 27054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27055$as_echo "yes" >&6; } 27056 27057fi 27058 27059pkg_failed=no 27060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5 27061$as_echo_n "checking for GL... " >&6; } 27062 27063if test -n "$GL_CFLAGS"; then 27064 pkg_cv_GL_CFLAGS="$GL_CFLAGS" 27065 elif test -n "$PKG_CONFIG"; then 27066 if test -n "$PKG_CONFIG" && \ 27067 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5 27068 ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5 27069 ac_status=$? 27070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27071 test $ac_status = 0; }; then 27072 pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBGL" 2>/dev/null` 27073 test "x$?" != "x0" && pkg_failed=yes 27074else 27075 pkg_failed=yes 27076fi 27077 else 27078 pkg_failed=untried 27079fi 27080if test -n "$GL_LIBS"; then 27081 pkg_cv_GL_LIBS="$GL_LIBS" 27082 elif test -n "$PKG_CONFIG"; then 27083 if test -n "$PKG_CONFIG" && \ 27084 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5 27085 ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5 27086 ac_status=$? 27087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27088 test $ac_status = 0; }; then 27089 pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBGL" 2>/dev/null` 27090 test "x$?" != "x0" && pkg_failed=yes 27091else 27092 pkg_failed=yes 27093fi 27094 else 27095 pkg_failed=untried 27096fi 27097 27098 27099 27100if test $pkg_failed = yes; then 27101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27102$as_echo "no" >&6; } 27103 27104if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27105 _pkg_short_errors_supported=yes 27106else 27107 _pkg_short_errors_supported=no 27108fi 27109 if test $_pkg_short_errors_supported = yes; then 27110 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1` 27111 else 27112 GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1` 27113 fi 27114 # Put the nasty error message in config.log where it belongs 27115 echo "$GL_PKG_ERRORS" >&5 27116 27117 as_fn_error $? "Package requirements ($GLPROTO $LIBGL) were not met: 27118 27119$GL_PKG_ERRORS 27120 27121Consider adjusting the PKG_CONFIG_PATH environment variable if you 27122installed software in a non-standard prefix. 27123 27124Alternatively, you may set the environment variables GL_CFLAGS 27125and GL_LIBS to avoid the need to call pkg-config. 27126See the pkg-config man page for more details." "$LINENO" 5 27127elif test $pkg_failed = untried; then 27128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27129$as_echo "no" >&6; } 27130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27132as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 27133is in your PATH or set the PKG_CONFIG environment variable to the full 27134path to pkg-config. 27135 27136Alternatively, you may set the environment variables GL_CFLAGS 27137and GL_LIBS to avoid the need to call pkg-config. 27138See the pkg-config man page for more details. 27139 27140To get pkg-config, see <http://pkg-config.freedesktop.org/>. 27141See \`config.log' for more details" "$LINENO" 5; } 27142else 27143 GL_CFLAGS=$pkg_cv_GL_CFLAGS 27144 GL_LIBS=$pkg_cv_GL_LIBS 27145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27146$as_echo "yes" >&6; } 27147 27148fi 27149 27150 27151$as_echo "#define GLXEXT 1" >>confdefs.h 27152 27153 HASHTABLE=yes 27154 GLX_LIBS='$(top_builddir)/glx/libglx.la $(top_builddir)/glx/libglxvnd.la' 27155 GLX_SYS_LIBS="$GLX_SYS_LIBS $GL_LIBS" 27156else 27157 GLX=no 27158fi 27159 if test "x$GLX" = xyes; then 27160 GLX_TRUE= 27161 GLX_FALSE='#' 27162else 27163 GLX_TRUE='#' 27164 GLX_FALSE= 27165fi 27166 27167 27168 if test "x$HASHTABLE" = xyes; then 27169 HASHTABLE_TRUE= 27170 HASHTABLE_FALSE='#' 27171else 27172 HASHTABLE_TRUE='#' 27173 HASHTABLE_FALSE= 27174fi 27175 27176 27177 27178 27179 27180 if test "x$PRESENT" = xyes; then 27181 PRESENT_TRUE= 27182 PRESENT_FALSE='#' 27183else 27184 PRESENT_TRUE='#' 27185 PRESENT_FALSE= 27186fi 27187 27188if test "x$PRESENT" = xyes; then 27189 27190$as_echo "#define PRESENT 1" >>confdefs.h 27191 27192 REQUIRED_MODULES="$REQUIRED_MODULES $PRESENTPROTO" 27193 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $PRESENTPROTO" 27194 PRESENT_INC='-I$(top_srcdir)/present' 27195 PRESENT_LIB='$(top_builddir)/present/libpresent.la' 27196fi 27197 27198 if test "x$XINERAMA" = xyes; then 27199 XINERAMA_TRUE= 27200 XINERAMA_FALSE='#' 27201else 27202 XINERAMA_TRUE='#' 27203 XINERAMA_FALSE= 27204fi 27205 27206if test "x$XINERAMA" = xyes; then 27207 27208$as_echo "#define XINERAMA 1" >>confdefs.h 27209 27210 27211$as_echo "#define PANORAMIX 1" >>confdefs.h 27212 27213 REQUIRED_MODULES="$REQUIRED_MODULES $XINERAMAPROTO" 27214 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO" 27215fi 27216 27217 if test "x$XACE" = xyes; then 27218 XACE_TRUE= 27219 XACE_FALSE='#' 27220else 27221 XACE_TRUE='#' 27222 XACE_FALSE= 27223fi 27224 27225if test "x$XACE" = xyes; then 27226 27227$as_echo "#define XACE 1" >>confdefs.h 27228 27229fi 27230 27231 if test "x$XSELINUX" = xyes; then 27232 XSELINUX_TRUE= 27233 XSELINUX_FALSE='#' 27234else 27235 XSELINUX_TRUE='#' 27236 XSELINUX_FALSE= 27237fi 27238 27239if test "x$XSELINUX" = xyes; then 27240 if test "x$XACE" != xyes; then 27241 as_fn_error $? "cannot build SELinux extension without X-ACE" "$LINENO" 5 27242 fi 27243 for ac_header in libaudit.h 27244do : 27245 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" 27246if test "x$ac_cv_header_libaudit_h" = xyes; then : 27247 cat >>confdefs.h <<_ACEOF 27248#define HAVE_LIBAUDIT_H 1 27249_ACEOF 27250 27251else 27252 as_fn_error $? "SELinux extension requires audit system headers" "$LINENO" 5 27253fi 27254 27255done 27256 27257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_open in -laudit" >&5 27258$as_echo_n "checking for audit_open in -laudit... " >&6; } 27259if ${ac_cv_lib_audit_audit_open+:} false; then : 27260 $as_echo_n "(cached) " >&6 27261else 27262 ac_check_lib_save_LIBS=$LIBS 27263LIBS="-laudit $LIBS" 27264cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27265/* end confdefs.h. */ 27266 27267/* Override any GCC internal prototype to avoid an error. 27268 Use char because int might match the return type of a GCC 27269 builtin and then its argument prototype would still apply. */ 27270#ifdef __cplusplus 27271extern "C" 27272#endif 27273char audit_open (); 27274int 27275main () 27276{ 27277return audit_open (); 27278 ; 27279 return 0; 27280} 27281_ACEOF 27282if ac_fn_c_try_link "$LINENO"; then : 27283 ac_cv_lib_audit_audit_open=yes 27284else 27285 ac_cv_lib_audit_audit_open=no 27286fi 27287rm -f core conftest.err conftest.$ac_objext \ 27288 conftest$ac_exeext conftest.$ac_ext 27289LIBS=$ac_check_lib_save_LIBS 27290fi 27291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_open" >&5 27292$as_echo "$ac_cv_lib_audit_audit_open" >&6; } 27293if test "x$ac_cv_lib_audit_audit_open" = xyes; then : 27294 cat >>confdefs.h <<_ACEOF 27295#define HAVE_LIBAUDIT 1 27296_ACEOF 27297 27298 LIBS="-laudit $LIBS" 27299 27300else 27301 as_fn_error $? "SELinux extension requires audit system library" "$LINENO" 5 27302fi 27303 27304 27305pkg_failed=no 27306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELINUX" >&5 27307$as_echo_n "checking for SELINUX... " >&6; } 27308 27309if test -n "$SELINUX_CFLAGS"; then 27310 pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS" 27311 elif test -n "$PKG_CONFIG"; then 27312 if test -n "$PKG_CONFIG" && \ 27313 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5 27314 ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5 27315 ac_status=$? 27316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27317 test $ac_status = 0; }; then 27318 pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "$LIBSELINUX" 2>/dev/null` 27319 test "x$?" != "x0" && pkg_failed=yes 27320else 27321 pkg_failed=yes 27322fi 27323 else 27324 pkg_failed=untried 27325fi 27326if test -n "$SELINUX_LIBS"; then 27327 pkg_cv_SELINUX_LIBS="$SELINUX_LIBS" 27328 elif test -n "$PKG_CONFIG"; then 27329 if test -n "$PKG_CONFIG" && \ 27330 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5 27331 ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5 27332 ac_status=$? 27333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27334 test $ac_status = 0; }; then 27335 pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "$LIBSELINUX" 2>/dev/null` 27336 test "x$?" != "x0" && pkg_failed=yes 27337else 27338 pkg_failed=yes 27339fi 27340 else 27341 pkg_failed=untried 27342fi 27343 27344 27345 27346if test $pkg_failed = yes; then 27347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27348$as_echo "no" >&6; } 27349 27350if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27351 _pkg_short_errors_supported=yes 27352else 27353 _pkg_short_errors_supported=no 27354fi 27355 if test $_pkg_short_errors_supported = yes; then 27356 SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSELINUX" 2>&1` 27357 else 27358 SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSELINUX" 2>&1` 27359 fi 27360 # Put the nasty error message in config.log where it belongs 27361 echo "$SELINUX_PKG_ERRORS" >&5 27362 27363 as_fn_error $? "Package requirements ($LIBSELINUX) were not met: 27364 27365$SELINUX_PKG_ERRORS 27366 27367Consider adjusting the PKG_CONFIG_PATH environment variable if you 27368installed software in a non-standard prefix. 27369 27370Alternatively, you may set the environment variables SELINUX_CFLAGS 27371and SELINUX_LIBS to avoid the need to call pkg-config. 27372See the pkg-config man page for more details." "$LINENO" 5 27373elif test $pkg_failed = untried; then 27374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27375$as_echo "no" >&6; } 27376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27378as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 27379is in your PATH or set the PKG_CONFIG environment variable to the full 27380path to pkg-config. 27381 27382Alternatively, you may set the environment variables SELINUX_CFLAGS 27383and SELINUX_LIBS to avoid the need to call pkg-config. 27384See the pkg-config man page for more details. 27385 27386To get pkg-config, see <http://pkg-config.freedesktop.org/>. 27387See \`config.log' for more details" "$LINENO" 5; } 27388else 27389 SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS 27390 SELINUX_LIBS=$pkg_cv_SELINUX_LIBS 27391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27392$as_echo "yes" >&6; } 27393 27394fi 27395 SELINUX_LIBS="$SELINUX_LIBS -laudit" 27396 27397$as_echo "#define XSELINUX 1" >>confdefs.h 27398 27399fi 27400 27401 if test "x$XCSECURITY" = xyes; then 27402 XCSECURITY_TRUE= 27403 XCSECURITY_FALSE='#' 27404else 27405 XCSECURITY_TRUE='#' 27406 XCSECURITY_FALSE= 27407fi 27408 27409if test "x$XCSECURITY" = xyes; then 27410 if test "x$XACE" != xyes; then 27411 as_fn_error $? "cannot build Security extension without X-ACE" "$LINENO" 5 27412 fi 27413 27414$as_echo "#define XCSECURITY 1" >>confdefs.h 27415 27416fi 27417 27418 if test "x$DBE" = xyes; then 27419 DBE_TRUE= 27420 DBE_FALSE='#' 27421else 27422 DBE_TRUE='#' 27423 DBE_FALSE= 27424fi 27425 27426if test "x$DBE" = xyes; then 27427 27428$as_echo "#define DBE 1" >>confdefs.h 27429 27430 DBE_LIB='$(top_builddir)/dbe/libdbe.la' 27431 DBE_INC='-I$(top_srcdir)/dbe' 27432fi 27433 27434 if test "x$XF86BIGFONT" = xyes; then 27435 XF86BIGFONT_TRUE= 27436 XF86BIGFONT_FALSE='#' 27437else 27438 XF86BIGFONT_TRUE='#' 27439 XF86BIGFONT_FALSE= 27440fi 27441 27442if test "x$XF86BIGFONT" = xyes; then 27443 27444$as_echo "#define XF86BIGFONT 1" >>confdefs.h 27445 27446 REQUIRED_MODULES="$REQUIRED_MODULES $BIGFONTPROTO" 27447 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $BIGFONTPROTO" 27448fi 27449 27450 if test "x$DPMSExtension" = xyes; then 27451 DPMSExtension_TRUE= 27452 DPMSExtension_FALSE='#' 27453else 27454 DPMSExtension_TRUE='#' 27455 DPMSExtension_FALSE= 27456fi 27457 27458if test "x$DPMSExtension" = xyes; then 27459 27460$as_echo "#define DPMSExtension 1" >>confdefs.h 27461 27462fi 27463 27464 27465$as_echo "#define RENDER 1" >>confdefs.h 27466 27467RENDER_LIB='$(top_builddir)/render/librender.la' 27468RENDER_INC='-I$(top_srcdir)/render' 27469 27470 27471$as_echo "#define RANDR 1" >>confdefs.h 27472 27473RANDR_LIB='$(top_builddir)/randr/librandr.la' 27474RANDR_INC='-I$(top_srcdir)/randr' 27475 27476 27477$as_echo "#define XFIXES 1" >>confdefs.h 27478 27479FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la' 27480FIXES_INC='-I$(top_srcdir)/xfixes' 27481 27482 27483$as_echo "#define DAMAGE 1" >>confdefs.h 27484 27485DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la' 27486DAMAGE_INC='-I$(top_srcdir)/damageext' 27487MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la' 27488MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage' 27489 27490# XINPUT extension is integral part of the server 27491 27492$as_echo "#define XINPUT 1" >>confdefs.h 27493 27494XI_LIB='$(top_builddir)/Xi/libXi.la' 27495XI_INC='-I$(top_srcdir)/Xi' 27496 27497 if test "x$XF86UTILS" = xyes; then 27498 XF86UTILS_TRUE= 27499 XF86UTILS_FALSE='#' 27500else 27501 XF86UTILS_TRUE='#' 27502 XF86UTILS_FALSE= 27503fi 27504 27505 if test "x$VGAHW" = xyes; then 27506 VGAHW_TRUE= 27507 VGAHW_FALSE='#' 27508else 27509 VGAHW_TRUE='#' 27510 VGAHW_FALSE= 27511fi 27512 27513 if test "x$VBE" = xyes; then 27514 VBE_TRUE= 27515 VBE_FALSE='#' 27516else 27517 VBE_TRUE='#' 27518 VBE_FALSE= 27519fi 27520 27521 if test "x$INT10MODULE" = xyes; then 27522 INT10MODULE_TRUE= 27523 INT10MODULE_FALSE='#' 27524else 27525 INT10MODULE_TRUE='#' 27526 INT10MODULE_FALSE= 27527fi 27528 27529 27530 27531$as_echo "#define SHAPE 1" >>confdefs.h 27532 27533 27534if test "x$XKBPATH" = "xauto"; then 27535 XKBPATH=$(pkg-config --variable datadir xkbcomp || echo ${datadir})/X11/xkb 27536fi 27537 27538 27539 prefix_NONE= 27540 exec_prefix_NONE= 27541 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27542 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27543 eval ac_define_dir="\"$XKBPATH\"" 27544 eval ac_define_dir="\"$ac_define_dir\"" 27545 XKB_BASE_DIRECTORY="$ac_define_dir" 27546 27547 27548cat >>confdefs.h <<_ACEOF 27549#define XKB_BASE_DIRECTORY "$ac_define_dir" 27550_ACEOF 27551 27552 test "$prefix_NONE" && prefix=NONE 27553 test "$exec_prefix_NONE" && exec_prefix=NONE 27554 27555 27556# Check whether --with-xkb-bin-directory was given. 27557if test "${with_xkb_bin_directory+set}" = set; then : 27558 withval=$with_xkb_bin_directory; XKB_BIN_DIRECTORY="$withval" 27559else 27560 XKB_BIN_DIRECTORY="auto" 27561fi 27562 27563 27564if test "x$XKB_BIN_DIRECTORY" = "xauto"; then 27565 XKB_BIN_DIRECTORY=$(pkg-config --variable bindir xkbcomp || echo ${bindir}) 27566fi 27567 27568 27569 prefix_NONE= 27570 exec_prefix_NONE= 27571 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27572 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27573 eval ac_define_dir="\"$XKB_BIN_DIRECTORY\"" 27574 eval ac_define_dir="\"$ac_define_dir\"" 27575 XKB_BIN_DIRECTORY="$ac_define_dir" 27576 27577 27578cat >>confdefs.h <<_ACEOF 27579#define XKB_BIN_DIRECTORY "$ac_define_dir" 27580_ACEOF 27581 27582 test "$prefix_NONE" && prefix=NONE 27583 test "$exec_prefix_NONE" && exec_prefix=NONE 27584 27585 27586XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1` 27587if [ x$XKBOUTPUT_FIRSTCHAR != x/ -a x$XKBOUTPUT_FIRSTCHAR != 'x$' ] ; then 27588 XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT" 27589fi 27590 27591 27592XKBOUTPUT=`echo $XKBOUTPUT/ | $SED 's|/*$|/|'` 27593XKB_COMPILED_DIR=`echo $XKBOUTPUT | $SED 's|/*$||'` 27594 27595 prefix_NONE= 27596 exec_prefix_NONE= 27597 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27598 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27599 eval ac_define_dir="\"$XKBOUTPUT\"" 27600 eval ac_define_dir="\"$ac_define_dir\"" 27601 XKM_OUTPUT_DIR="$ac_define_dir" 27602 27603 27604cat >>confdefs.h <<_ACEOF 27605#define XKM_OUTPUT_DIR "$ac_define_dir" 27606_ACEOF 27607 27608 test "$prefix_NONE" && prefix=NONE 27609 test "$exec_prefix_NONE" && exec_prefix=NONE 27610 27611 27612 27613if test "x$XKB_DFLT_RULES" = x; then 27614 case $host_os in 27615 linux*) 27616 XKB_DFLT_RULES="evdev" 27617 ;; 27618 *) 27619 XKB_DFLT_RULES="base" 27620 ;; 27621 esac 27622fi 27623 27624cat >>confdefs.h <<_ACEOF 27625#define XKB_DFLT_RULES "$XKB_DFLT_RULES" 27626_ACEOF 27627 27628 27629cat >>confdefs.h <<_ACEOF 27630#define XKB_DFLT_MODEL "$XKB_DFLT_MODEL" 27631_ACEOF 27632 27633 27634cat >>confdefs.h <<_ACEOF 27635#define XKB_DFLT_LAYOUT "$XKB_DFLT_LAYOUT" 27636_ACEOF 27637 27638 27639cat >>confdefs.h <<_ACEOF 27640#define XKB_DFLT_VARIANT "$XKB_DFLT_VARIANT" 27641_ACEOF 27642 27643 27644cat >>confdefs.h <<_ACEOF 27645#define XKB_DFLT_OPTIONS "$XKB_DFLT_OPTIONS" 27646_ACEOF 27647 27648 27649 27650 27651 27652 27653 27654XKB_LIB='$(top_builddir)/xkb/libxkb.la' 27655XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la' 27656REQUIRED_MODULES="$REQUIRED_MODULES xkbfile" 27657 27658 27659pkg_failed=no 27660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5 27661$as_echo_n "checking for XDMCP... " >&6; } 27662 27663if test -n "$XDMCP_CFLAGS"; then 27664 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS" 27665 elif test -n "$PKG_CONFIG"; then 27666 if test -n "$PKG_CONFIG" && \ 27667 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 27668 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 27669 ac_status=$? 27670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27671 test $ac_status = 0; }; then 27672 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` 27673 test "x$?" != "x0" && pkg_failed=yes 27674else 27675 pkg_failed=yes 27676fi 27677 else 27678 pkg_failed=untried 27679fi 27680if test -n "$XDMCP_LIBS"; then 27681 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS" 27682 elif test -n "$PKG_CONFIG"; then 27683 if test -n "$PKG_CONFIG" && \ 27684 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 27685 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 27686 ac_status=$? 27687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27688 test $ac_status = 0; }; then 27689 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` 27690 test "x$?" != "x0" && pkg_failed=yes 27691else 27692 pkg_failed=yes 27693fi 27694 else 27695 pkg_failed=untried 27696fi 27697 27698 27699 27700if test $pkg_failed = yes; then 27701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27702$as_echo "no" >&6; } 27703 27704if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27705 _pkg_short_errors_supported=yes 27706else 27707 _pkg_short_errors_supported=no 27708fi 27709 if test $_pkg_short_errors_supported = yes; then 27710 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1` 27711 else 27712 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1` 27713 fi 27714 # Put the nasty error message in config.log where it belongs 27715 echo "$XDMCP_PKG_ERRORS" >&5 27716 27717 have_libxdmcp="no" 27718elif test $pkg_failed = untried; then 27719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27720$as_echo "no" >&6; } 27721 have_libxdmcp="no" 27722else 27723 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS 27724 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS 27725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27726$as_echo "yes" >&6; } 27727 have_libxdmcp="yes" 27728fi 27729if test "x$XDMCP" = xauto; then 27730 if test "x$have_libxdmcp" = xyes; then 27731 XDMCP=yes 27732 else 27733 XDMCP=no 27734 fi 27735fi 27736if test "x$XDMAUTH" = xauto; then 27737 if test "x$have_libxdmcp" = xyes; then 27738 XDMAUTH=yes 27739 else 27740 XDMAUTH=no 27741 fi 27742fi 27743 27744 if test "x$XDMCP" = xyes; then 27745 XDMCP_TRUE= 27746 XDMCP_FALSE='#' 27747else 27748 XDMCP_TRUE='#' 27749 XDMCP_FALSE= 27750fi 27751 27752if test "x$XDMCP" = xyes; then 27753 27754$as_echo "#define XDMCP 1" >>confdefs.h 27755 27756 REQUIRED_LIBS="$REQUIRED_LIBS xdmcp" 27757 XDMCP_MODULES="xdmcp" 27758fi 27759 27760 if test "x$XDMAUTH" = xyes; then 27761 XDMAUTH_TRUE= 27762 XDMAUTH_FALSE='#' 27763else 27764 XDMAUTH_TRUE='#' 27765 XDMAUTH_FALSE= 27766fi 27767 27768if test "x$XDMAUTH" = xyes; then 27769 27770$as_echo "#define HASXDMAUTH 1" >>confdefs.h 27771 27772 if ! test "x$XDMCP" = xyes; then 27773 REQUIRED_LIBS="$REQUIRED_LIBS xdmcp" 27774 XDMCP_MODULES="xdmcp" 27775 fi 27776fi 27777 27778if test "x$XF86VIDMODE" = xauto; then 27779 if test -n "$PKG_CONFIG" && \ 27780 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5 27781 ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5 27782 ac_status=$? 27783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27784 test $ac_status = 0; }; then 27785 XF86VIDMODE=yes 27786else 27787 XF86VIDMODE=no 27788fi 27789fi 27790if test "x$XF86VIDMODE" = xyes; then 27791 27792$as_echo "#define XF86VIDMODE 1" >>confdefs.h 27793 27794fi 27795 if test "x$XF86VIDMODE" = xyes; then 27796 XF86VIDMODE_TRUE= 27797 XF86VIDMODE_FALSE='#' 27798else 27799 XF86VIDMODE_TRUE='#' 27800 XF86VIDMODE_FALSE= 27801fi 27802 27803 27804 27805 prefix_NONE= 27806 exec_prefix_NONE= 27807 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27808 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27809 eval ac_define_dir="\"$FONTPATH\"" 27810 eval ac_define_dir="\"$ac_define_dir\"" 27811 COMPILEDDEFAULTFONTPATH="$ac_define_dir" 27812 27813 27814cat >>confdefs.h <<_ACEOF 27815#define COMPILEDDEFAULTFONTPATH "$ac_define_dir" 27816_ACEOF 27817 27818 test "$prefix_NONE" && prefix=NONE 27819 test "$exec_prefix_NONE" && exec_prefix=NONE 27820 27821 27822 prefix_NONE= 27823 exec_prefix_NONE= 27824 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27825 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27826 eval ac_define_dir="\"$SERVERCONFIG\"" 27827 eval ac_define_dir="\"$ac_define_dir\"" 27828 SERVER_MISC_CONFIG_PATH="$ac_define_dir" 27829 27830 27831cat >>confdefs.h <<_ACEOF 27832#define SERVER_MISC_CONFIG_PATH "$ac_define_dir" 27833_ACEOF 27834 27835 test "$prefix_NONE" && prefix=NONE 27836 test "$exec_prefix_NONE" && exec_prefix=NONE 27837 27838 27839 prefix_NONE= 27840 exec_prefix_NONE= 27841 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27842 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27843 eval ac_define_dir="\"$FONTROOTDIR\"" 27844 eval ac_define_dir="\"$ac_define_dir\"" 27845 BASE_FONT_PATH="$ac_define_dir" 27846 27847 27848cat >>confdefs.h <<_ACEOF 27849#define BASE_FONT_PATH "$ac_define_dir" 27850_ACEOF 27851 27852 test "$prefix_NONE" && prefix=NONE 27853 test "$exec_prefix_NONE" && exec_prefix=NONE 27854 27855dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri` 27856 27857 prefix_NONE= 27858 exec_prefix_NONE= 27859 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27860 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27861 eval ac_define_dir="\"$dridriverdir\"" 27862 eval ac_define_dir="\"$ac_define_dir\"" 27863 DRI_DRIVER_PATH="$ac_define_dir" 27864 27865 27866cat >>confdefs.h <<_ACEOF 27867#define DRI_DRIVER_PATH "$ac_define_dir" 27868_ACEOF 27869 27870 test "$prefix_NONE" && prefix=NONE 27871 test "$exec_prefix_NONE" && exec_prefix=NONE 27872 27873 27874cat >>confdefs.h <<_ACEOF 27875#define XVENDORNAME "$VENDOR_NAME" 27876_ACEOF 27877 27878 27879cat >>confdefs.h <<_ACEOF 27880#define XVENDORNAMESHORT "$VENDOR_NAME_SHORT" 27881_ACEOF 27882 27883 27884cat >>confdefs.h <<_ACEOF 27885#define XORG_MAN_VERSION "$VENDOR_MAN_VERSION" 27886_ACEOF 27887 27888 27889cat >>confdefs.h <<_ACEOF 27890#define BUILDERADDR "$BUILDERADDR" 27891_ACEOF 27892 27893 27894if test -z "$OSNAME"; then 27895 OSNAME="UNKNOWN" 27896fi 27897 27898 27899cat >>confdefs.h <<_ACEOF 27900#define OSNAME "$OSNAME" 27901_ACEOF 27902 27903 27904cat >>confdefs.h <<_ACEOF 27905#define OSVENDOR "$OSVENDOR" 27906_ACEOF 27907 27908 27909cat >>confdefs.h <<_ACEOF 27910#define BUILDERSTRING "$BUILDERSTRING" 27911_ACEOF 27912 27913 27914 27915 27916cat >>confdefs.h <<_ACEOF 27917#define VENDOR_NAME "$VENDOR_NAME" 27918_ACEOF 27919 27920 27921cat >>confdefs.h <<_ACEOF 27922#define VENDOR_NAME_SHORT "$VENDOR_NAME_SHORT" 27923_ACEOF 27924 27925 27926cat >>confdefs.h <<_ACEOF 27927#define VENDOR_RELEASE $VENDOR_RELEASE 27928_ACEOF 27929 27930 27931cat >>confdefs.h <<_ACEOF 27932#define VENDOR_MAN_VERSION "$VENDOR_MAN_VERSION" 27933_ACEOF 27934 27935 27936if test "x$DEBUGGING" = xyes; then 27937 27938$as_echo "#define DEBUG 1" >>confdefs.h 27939 27940fi 27941 if test "x$DEBUGGING" = xyes; then 27942 DEBUG_TRUE= 27943 DEBUG_FALSE='#' 27944else 27945 DEBUG_TRUE='#' 27946 DEBUG_FALSE= 27947fi 27948 27949 27950 27951$as_echo "#define XTEST 1" >>confdefs.h 27952 27953 27954$as_echo "#define XSYNC 1" >>confdefs.h 27955 27956 27957$as_echo "#define XCMISC 1" >>confdefs.h 27958 27959 27960$as_echo "#define BIGREQS 1" >>confdefs.h 27961 27962 27963if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then 27964 DIX_LIB='$(top_builddir)/dix/dix.O' 27965 OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS) $(LIBUNWIND_LIBS)' 27966else 27967 DIX_LIB='$(top_builddir)/dix/libdix.la' 27968 OS_LIB='$(top_builddir)/os/libos.la' 27969fi 27970 27971 27972 27973MAIN_LIB='$(top_builddir)/dix/libmain.la' 27974 27975 27976MI_LIB='$(top_builddir)/mi/libmi.la' 27977MI_EXT_LIB='$(top_builddir)/mi/libmiext.la' 27978MI_INC='-I$(top_srcdir)/mi' 27979FB_LIB='$(top_builddir)/fb/libfb.la' 27980FB_INC='-I$(top_srcdir)/fb' 27981MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow' 27982MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la' 27983MIEXT_SYNC_INC='-I$(top_srcdir)/miext/sync' 27984MIEXT_SYNC_LIB='$(top_builddir)/miext/sync/libsync.la' 27985CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include' 27986 27987# SHA1 hashing 27988 27989# Check whether --with-sha1 was given. 27990if test "${with_sha1+set}" = set; then : 27991 withval=$with_sha1; 27992fi 27993 27994ac_fn_c_check_func "$LINENO" "SHA1Init" "ac_cv_func_SHA1Init" 27995if test "x$ac_cv_func_SHA1Init" = xyes; then : 27996 HAVE_SHA1_IN_LIBC=yes 27997fi 27998 27999if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then 28000 with_sha1=libc 28001fi 28002if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then 28003 as_fn_error $? "libc requested but not found" "$LINENO" 5 28004fi 28005if test "x$with_sha1" = xlibc; then 28006 28007$as_echo "#define HAVE_SHA1_IN_LIBC 1" >>confdefs.h 28008 28009 SHA1_LIBS="" 28010fi 28011ac_fn_c_check_func "$LINENO" "CC_SHA1_Init" "ac_cv_func_CC_SHA1_Init" 28012if test "x$ac_cv_func_CC_SHA1_Init" = xyes; then : 28013 HAVE_SHA1_IN_COMMONCRYPTO=yes 28014fi 28015 28016if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then 28017 with_sha1=CommonCrypto 28018fi 28019if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then 28020 as_fn_error $? "CommonCrypto requested but not found" "$LINENO" 5 28021fi 28022if test "x$with_sha1" = xCommonCrypto; then 28023 28024$as_echo "#define HAVE_SHA1_IN_COMMONCRYPTO 1" >>confdefs.h 28025 28026 SHA1_LIBS="" 28027fi 28028ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#include <windows.h> 28029" 28030if test "x$ac_cv_header_wincrypt_h" = xyes; then : 28031 HAVE_SHA1_IN_CRYPTOAPI=yes 28032fi 28033 28034 28035if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_CRYPTOAPI" = xyes; then 28036 with_sha1=CryptoAPI 28037fi 28038if test "x$with_sha1" = xCryptoAPI && test "x$HAVE_SHA1_IN_CRYPTOAPI" != xyes; then 28039 as_fn_error $? "CryptoAPI requested but not found" "$LINENO" 5 28040fi 28041if test "x$with_sha1" = xCryptoAPI; then 28042 28043$as_echo "#define HAVE_SHA1_IN_CRYPTOAPI 1" >>confdefs.h 28044 28045 SHA1_LIBS="" 28046fi 28047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1Init in -lmd" >&5 28048$as_echo_n "checking for SHA1Init in -lmd... " >&6; } 28049if ${ac_cv_lib_md_SHA1Init+:} false; then : 28050 $as_echo_n "(cached) " >&6 28051else 28052 ac_check_lib_save_LIBS=$LIBS 28053LIBS="-lmd $LIBS" 28054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28055/* end confdefs.h. */ 28056 28057/* Override any GCC internal prototype to avoid an error. 28058 Use char because int might match the return type of a GCC 28059 builtin and then its argument prototype would still apply. */ 28060#ifdef __cplusplus 28061extern "C" 28062#endif 28063char SHA1Init (); 28064int 28065main () 28066{ 28067return SHA1Init (); 28068 ; 28069 return 0; 28070} 28071_ACEOF 28072if ac_fn_c_try_link "$LINENO"; then : 28073 ac_cv_lib_md_SHA1Init=yes 28074else 28075 ac_cv_lib_md_SHA1Init=no 28076fi 28077rm -f core conftest.err conftest.$ac_objext \ 28078 conftest$ac_exeext conftest.$ac_ext 28079LIBS=$ac_check_lib_save_LIBS 28080fi 28081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA1Init" >&5 28082$as_echo "$ac_cv_lib_md_SHA1Init" >&6; } 28083if test "x$ac_cv_lib_md_SHA1Init" = xyes; then : 28084 HAVE_LIBMD=yes 28085fi 28086 28087if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then 28088 with_sha1=libmd 28089fi 28090if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then 28091 as_fn_error $? "libmd requested but not found" "$LINENO" 5 28092fi 28093if test "x$with_sha1" = xlibmd; then 28094 28095$as_echo "#define HAVE_SHA1_IN_LIBMD 1" >>confdefs.h 28096 28097 SHA1_LIBS=-lmd 28098fi 28099 28100pkg_failed=no 28101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSHA1" >&5 28102$as_echo_n "checking for LIBSHA1... " >&6; } 28103 28104if test -n "$LIBSHA1_CFLAGS"; then 28105 pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS" 28106 elif test -n "$PKG_CONFIG"; then 28107 if test -n "$PKG_CONFIG" && \ 28108 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5 28109 ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5 28110 ac_status=$? 28111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28112 test $ac_status = 0; }; then 28113 pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null` 28114 test "x$?" != "x0" && pkg_failed=yes 28115else 28116 pkg_failed=yes 28117fi 28118 else 28119 pkg_failed=untried 28120fi 28121if test -n "$LIBSHA1_LIBS"; then 28122 pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS" 28123 elif test -n "$PKG_CONFIG"; then 28124 if test -n "$PKG_CONFIG" && \ 28125 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5 28126 ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5 28127 ac_status=$? 28128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28129 test $ac_status = 0; }; then 28130 pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null` 28131 test "x$?" != "x0" && pkg_failed=yes 28132else 28133 pkg_failed=yes 28134fi 28135 else 28136 pkg_failed=untried 28137fi 28138 28139 28140 28141if test $pkg_failed = yes; then 28142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28143$as_echo "no" >&6; } 28144 28145if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28146 _pkg_short_errors_supported=yes 28147else 28148 _pkg_short_errors_supported=no 28149fi 28150 if test $_pkg_short_errors_supported = yes; then 28151 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsha1" 2>&1` 28152 else 28153 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsha1" 2>&1` 28154 fi 28155 # Put the nasty error message in config.log where it belongs 28156 echo "$LIBSHA1_PKG_ERRORS" >&5 28157 28158 HAVE_LIBSHA1=no 28159elif test $pkg_failed = untried; then 28160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28161$as_echo "no" >&6; } 28162 HAVE_LIBSHA1=no 28163else 28164 LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS 28165 LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS 28166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28167$as_echo "yes" >&6; } 28168 HAVE_LIBSHA1=yes 28169fi 28170if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then 28171 with_sha1=libsha1 28172fi 28173if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then 28174 as_fn_error $? "libsha1 requested but not found" "$LINENO" 5 28175fi 28176if test "x$with_sha1" = xlibsha1; then 28177 28178$as_echo "#define HAVE_SHA1_IN_LIBSHA1 1" >>confdefs.h 28179 28180 SHA1_LIBS=-lsha1 28181fi 28182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_sha1_init in -lnettle" >&5 28183$as_echo_n "checking for nettle_sha1_init in -lnettle... " >&6; } 28184if ${ac_cv_lib_nettle_nettle_sha1_init+:} false; then : 28185 $as_echo_n "(cached) " >&6 28186else 28187 ac_check_lib_save_LIBS=$LIBS 28188LIBS="-lnettle $LIBS" 28189cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28190/* end confdefs.h. */ 28191 28192/* Override any GCC internal prototype to avoid an error. 28193 Use char because int might match the return type of a GCC 28194 builtin and then its argument prototype would still apply. */ 28195#ifdef __cplusplus 28196extern "C" 28197#endif 28198char nettle_sha1_init (); 28199int 28200main () 28201{ 28202return nettle_sha1_init (); 28203 ; 28204 return 0; 28205} 28206_ACEOF 28207if ac_fn_c_try_link "$LINENO"; then : 28208 ac_cv_lib_nettle_nettle_sha1_init=yes 28209else 28210 ac_cv_lib_nettle_nettle_sha1_init=no 28211fi 28212rm -f core conftest.err conftest.$ac_objext \ 28213 conftest$ac_exeext conftest.$ac_ext 28214LIBS=$ac_check_lib_save_LIBS 28215fi 28216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha1_init" >&5 28217$as_echo "$ac_cv_lib_nettle_nettle_sha1_init" >&6; } 28218if test "x$ac_cv_lib_nettle_nettle_sha1_init" = xyes; then : 28219 HAVE_LIBNETTLE=yes 28220fi 28221 28222if test "x$with_sha1" = x && test "x$HAVE_LIBNETTLE" = xyes; then 28223 with_sha1=libnettle 28224fi 28225if test "x$with_sha1" = xlibnettle && test "x$HAVE_LIBNETTLE" != xyes; then 28226 as_fn_error $? "libnettle requested but not found" "$LINENO" 5 28227fi 28228if test "x$with_sha1" = xlibnettle; then 28229 28230$as_echo "#define HAVE_SHA1_IN_LIBNETTLE 1" >>confdefs.h 28231 28232 SHA1_LIBS=-lnettle 28233fi 28234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5 28235$as_echo_n "checking for gcry_md_open in -lgcrypt... " >&6; } 28236if ${ac_cv_lib_gcrypt_gcry_md_open+:} false; then : 28237 $as_echo_n "(cached) " >&6 28238else 28239 ac_check_lib_save_LIBS=$LIBS 28240LIBS="-lgcrypt $LIBS" 28241cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28242/* end confdefs.h. */ 28243 28244/* Override any GCC internal prototype to avoid an error. 28245 Use char because int might match the return type of a GCC 28246 builtin and then its argument prototype would still apply. */ 28247#ifdef __cplusplus 28248extern "C" 28249#endif 28250char gcry_md_open (); 28251int 28252main () 28253{ 28254return gcry_md_open (); 28255 ; 28256 return 0; 28257} 28258_ACEOF 28259if ac_fn_c_try_link "$LINENO"; then : 28260 ac_cv_lib_gcrypt_gcry_md_open=yes 28261else 28262 ac_cv_lib_gcrypt_gcry_md_open=no 28263fi 28264rm -f core conftest.err conftest.$ac_objext \ 28265 conftest$ac_exeext conftest.$ac_ext 28266LIBS=$ac_check_lib_save_LIBS 28267fi 28268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5 28269$as_echo "$ac_cv_lib_gcrypt_gcry_md_open" >&6; } 28270if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes; then : 28271 HAVE_LIBGCRYPT=yes 28272fi 28273 28274if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then 28275 with_sha1=libgcrypt 28276fi 28277if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then 28278 as_fn_error $? "libgcrypt requested but not found" "$LINENO" 5 28279fi 28280if test "x$with_sha1" = xlibgcrypt; then 28281 28282$as_echo "#define HAVE_SHA1_IN_LIBGCRYPT 1" >>confdefs.h 28283 28284 SHA1_LIBS=-lgcrypt 28285fi 28286# We don't need all of the OpenSSL libraries, just libcrypto 28287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5 28288$as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; } 28289if ${ac_cv_lib_crypto_SHA1_Init+:} false; then : 28290 $as_echo_n "(cached) " >&6 28291else 28292 ac_check_lib_save_LIBS=$LIBS 28293LIBS="-lcrypto $LIBS" 28294cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28295/* end confdefs.h. */ 28296 28297/* Override any GCC internal prototype to avoid an error. 28298 Use char because int might match the return type of a GCC 28299 builtin and then its argument prototype would still apply. */ 28300#ifdef __cplusplus 28301extern "C" 28302#endif 28303char SHA1_Init (); 28304int 28305main () 28306{ 28307return SHA1_Init (); 28308 ; 28309 return 0; 28310} 28311_ACEOF 28312if ac_fn_c_try_link "$LINENO"; then : 28313 ac_cv_lib_crypto_SHA1_Init=yes 28314else 28315 ac_cv_lib_crypto_SHA1_Init=no 28316fi 28317rm -f core conftest.err conftest.$ac_objext \ 28318 conftest$ac_exeext conftest.$ac_ext 28319LIBS=$ac_check_lib_save_LIBS 28320fi 28321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5 28322$as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; } 28323if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then : 28324 HAVE_LIBCRYPTO=yes 28325fi 28326 28327 28328pkg_failed=no 28329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5 28330$as_echo_n "checking for OPENSSL... " >&6; } 28331 28332if test -n "$OPENSSL_CFLAGS"; then 28333 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" 28334 elif test -n "$PKG_CONFIG"; then 28335 if test -n "$PKG_CONFIG" && \ 28336 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 28337 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 28338 ac_status=$? 28339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28340 test $ac_status = 0; }; then 28341 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` 28342 test "x$?" != "x0" && pkg_failed=yes 28343else 28344 pkg_failed=yes 28345fi 28346 else 28347 pkg_failed=untried 28348fi 28349if test -n "$OPENSSL_LIBS"; then 28350 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" 28351 elif test -n "$PKG_CONFIG"; then 28352 if test -n "$PKG_CONFIG" && \ 28353 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 28354 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 28355 ac_status=$? 28356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28357 test $ac_status = 0; }; then 28358 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` 28359 test "x$?" != "x0" && pkg_failed=yes 28360else 28361 pkg_failed=yes 28362fi 28363 else 28364 pkg_failed=untried 28365fi 28366 28367 28368 28369if test $pkg_failed = yes; then 28370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28371$as_echo "no" >&6; } 28372 28373if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28374 _pkg_short_errors_supported=yes 28375else 28376 _pkg_short_errors_supported=no 28377fi 28378 if test $_pkg_short_errors_supported = yes; then 28379 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1` 28380 else 28381 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1` 28382 fi 28383 # Put the nasty error message in config.log where it belongs 28384 echo "$OPENSSL_PKG_ERRORS" >&5 28385 28386 HAVE_OPENSSL_PKC=no 28387elif test $pkg_failed = untried; then 28388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28389$as_echo "no" >&6; } 28390 HAVE_OPENSSL_PKC=no 28391else 28392 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS 28393 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS 28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28395$as_echo "yes" >&6; } 28396 HAVE_OPENSSL_PKC=yes 28397fi 28398if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then 28399 if test "x$with_sha1" = x; then 28400 with_sha1=libcrypto 28401 fi 28402else 28403 if test "x$with_sha1" = xlibcrypto; then 28404 as_fn_error $? "OpenSSL libcrypto requested but not found" "$LINENO" 5 28405 fi 28406fi 28407if test "x$with_sha1" = xlibcrypto; then 28408 if test "x$HAVE_LIBCRYPTO" = xyes; then 28409 SHA1_LIBS=-lcrypto 28410 else 28411 SHA1_LIBS="$OPENSSL_LIBS" 28412 SHA1_CFLAGS="$OPENSSL_CFLAGS" 28413 fi 28414fi 28415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 implementation" >&5 28416$as_echo_n "checking for SHA1 implementation... " >&6; } 28417if test "x$with_sha1" = x; then 28418 as_fn_error $? "No suitable SHA1 implementation found" "$LINENO" 5 28419fi 28420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sha1" >&5 28421$as_echo "$with_sha1" >&6; } 28422 28423 28424 28425 28426pkg_failed=no 28427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERCFLAGS" >&5 28428$as_echo_n "checking for XSERVERCFLAGS... " >&6; } 28429 28430if test -n "$XSERVERCFLAGS_CFLAGS"; then 28431 pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS" 28432 elif test -n "$PKG_CONFIG"; then 28433 if test -n "$PKG_CONFIG" && \ 28434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5 28435 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5 28436 ac_status=$? 28437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28438 test $ac_status = 0; }; then 28439 pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null` 28440 test "x$?" != "x0" && pkg_failed=yes 28441else 28442 pkg_failed=yes 28443fi 28444 else 28445 pkg_failed=untried 28446fi 28447if test -n "$XSERVERCFLAGS_LIBS"; then 28448 pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS" 28449 elif test -n "$PKG_CONFIG"; then 28450 if test -n "$PKG_CONFIG" && \ 28451 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5 28452 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5 28453 ac_status=$? 28454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28455 test $ac_status = 0; }; then 28456 pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null` 28457 test "x$?" != "x0" && pkg_failed=yes 28458else 28459 pkg_failed=yes 28460fi 28461 else 28462 pkg_failed=untried 28463fi 28464 28465 28466 28467if test $pkg_failed = yes; then 28468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28469$as_echo "no" >&6; } 28470 28471if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28472 _pkg_short_errors_supported=yes 28473else 28474 _pkg_short_errors_supported=no 28475fi 28476 if test $_pkg_short_errors_supported = yes; then 28477 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1` 28478 else 28479 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1` 28480 fi 28481 # Put the nasty error message in config.log where it belongs 28482 echo "$XSERVERCFLAGS_PKG_ERRORS" >&5 28483 28484 as_fn_error $? "Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met: 28485 28486$XSERVERCFLAGS_PKG_ERRORS 28487 28488Consider adjusting the PKG_CONFIG_PATH environment variable if you 28489installed software in a non-standard prefix. 28490 28491Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS 28492and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config. 28493See the pkg-config man page for more details." "$LINENO" 5 28494elif test $pkg_failed = untried; then 28495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28496$as_echo "no" >&6; } 28497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28499as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 28500is in your PATH or set the PKG_CONFIG environment variable to the full 28501path to pkg-config. 28502 28503Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS 28504and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config. 28505See the pkg-config man page for more details. 28506 28507To get pkg-config, see <http://pkg-config.freedesktop.org/>. 28508See \`config.log' for more details" "$LINENO" 5; } 28509else 28510 XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS 28511 XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS 28512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28513$as_echo "yes" >&6; } 28514 28515fi 28516 28517pkg_failed=no 28518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERLIBS" >&5 28519$as_echo_n "checking for XSERVERLIBS... " >&6; } 28520 28521if test -n "$XSERVERLIBS_CFLAGS"; then 28522 pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS" 28523 elif test -n "$PKG_CONFIG"; then 28524 if test -n "$PKG_CONFIG" && \ 28525 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5 28526 ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5 28527 ac_status=$? 28528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28529 test $ac_status = 0; }; then 28530 pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null` 28531 test "x$?" != "x0" && pkg_failed=yes 28532else 28533 pkg_failed=yes 28534fi 28535 else 28536 pkg_failed=untried 28537fi 28538if test -n "$XSERVERLIBS_LIBS"; then 28539 pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS" 28540 elif test -n "$PKG_CONFIG"; then 28541 if test -n "$PKG_CONFIG" && \ 28542 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5 28543 ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5 28544 ac_status=$? 28545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28546 test $ac_status = 0; }; then 28547 pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null` 28548 test "x$?" != "x0" && pkg_failed=yes 28549else 28550 pkg_failed=yes 28551fi 28552 else 28553 pkg_failed=untried 28554fi 28555 28556 28557 28558if test $pkg_failed = yes; then 28559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28560$as_echo "no" >&6; } 28561 28562if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28563 _pkg_short_errors_supported=yes 28564else 28565 _pkg_short_errors_supported=no 28566fi 28567 if test $_pkg_short_errors_supported = yes; then 28568 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1` 28569 else 28570 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1` 28571 fi 28572 # Put the nasty error message in config.log where it belongs 28573 echo "$XSERVERLIBS_PKG_ERRORS" >&5 28574 28575 as_fn_error $? "Package requirements ($REQUIRED_LIBS) were not met: 28576 28577$XSERVERLIBS_PKG_ERRORS 28578 28579Consider adjusting the PKG_CONFIG_PATH environment variable if you 28580installed software in a non-standard prefix. 28581 28582Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS 28583and XSERVERLIBS_LIBS to avoid the need to call pkg-config. 28584See the pkg-config man page for more details." "$LINENO" 5 28585elif test $pkg_failed = untried; then 28586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28587$as_echo "no" >&6; } 28588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28590as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 28591is in your PATH or set the PKG_CONFIG environment variable to the full 28592path to pkg-config. 28593 28594Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS 28595and XSERVERLIBS_LIBS to avoid the need to call pkg-config. 28596See the pkg-config man page for more details. 28597 28598To get pkg-config, see <http://pkg-config.freedesktop.org/>. 28599See \`config.log' for more details" "$LINENO" 5; } 28600else 28601 XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS 28602 XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS 28603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28604$as_echo "yes" >&6; } 28605 28606fi 28607 28608 28609pkg_failed=no 28610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUNWIND" >&5 28611$as_echo_n "checking for LIBUNWIND... " >&6; } 28612 28613if test -n "$LIBUNWIND_CFLAGS"; then 28614 pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS" 28615 elif test -n "$PKG_CONFIG"; then 28616 if test -n "$PKG_CONFIG" && \ 28617 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5 28618 ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5 28619 ac_status=$? 28620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28621 test $ac_status = 0; }; then 28622 pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null` 28623 test "x$?" != "x0" && pkg_failed=yes 28624else 28625 pkg_failed=yes 28626fi 28627 else 28628 pkg_failed=untried 28629fi 28630if test -n "$LIBUNWIND_LIBS"; then 28631 pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS" 28632 elif test -n "$PKG_CONFIG"; then 28633 if test -n "$PKG_CONFIG" && \ 28634 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5 28635 ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5 28636 ac_status=$? 28637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28638 test $ac_status = 0; }; then 28639 pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null` 28640 test "x$?" != "x0" && pkg_failed=yes 28641else 28642 pkg_failed=yes 28643fi 28644 else 28645 pkg_failed=untried 28646fi 28647 28648 28649 28650if test $pkg_failed = yes; then 28651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28652$as_echo "no" >&6; } 28653 28654if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28655 _pkg_short_errors_supported=yes 28656else 28657 _pkg_short_errors_supported=no 28658fi 28659 if test $_pkg_short_errors_supported = yes; then 28660 LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libunwind" 2>&1` 28661 else 28662 LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libunwind" 2>&1` 28663 fi 28664 # Put the nasty error message in config.log where it belongs 28665 echo "$LIBUNWIND_PKG_ERRORS" >&5 28666 28667 HAVE_LIBUNWIND=no 28668elif test $pkg_failed = untried; then 28669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28670$as_echo "no" >&6; } 28671 HAVE_LIBUNWIND=no 28672else 28673 LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS 28674 LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS 28675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28676$as_echo "yes" >&6; } 28677 HAVE_LIBUNWIND=yes 28678fi 28679if test "x$LIBUNWIND" = "xauto"; then 28680 LIBUNWIND="$HAVE_LIBUNWIND" 28681fi 28682 28683if test "x$LIBUNWIND" = "xyes"; then 28684 if test "x$HAVE_LIBUNWIND" != "xyes"; then 28685 as_fn_error $? "libunwind requested but not installed." "$LINENO" 5 28686 fi 28687 28688$as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h 28689 28690fi 28691 28692 if test "x$LIBUNWIND" = xyes; then 28693 HAVE_LIBUNWIND_TRUE= 28694 HAVE_LIBUNWIND_FALSE='#' 28695else 28696 HAVE_LIBUNWIND_TRUE='#' 28697 HAVE_LIBUNWIND_FALSE= 28698fi 28699 28700 28701# Autotools has some unfortunate issues with library handling. In order to 28702# get a server to rebuild when a dependency in the tree is changed, it must 28703# be listed in SERVERNAME_DEPENDENCIES. However, no system libraries may be 28704# listed there, or some versions of autotools will break (especially if a -L 28705# is required to find the library). So, we keep two sets of libraries 28706# detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which 28707# will go into the _DEPENDENCIES and _LDADD of the server, and 28708# NAMESPACE_SYS_LIBS which will go into only the _LDADD. The 28709# NAMESPACEMODULES_LIBS detected from pkgconfig should always go in 28710# NAMESPACE_SYS_LIBS. 28711# 28712# XSERVER_LIBS is the set of in-tree libraries which all servers require. 28713# XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers 28714# require. 28715# 28716XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}" 28717XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB" 28718XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}" 28719 28720 28721 28722UTILS_SYS_LIBS="${SYS_LIBS}" 28723 28724 28725# The Xorg binary needs to export symbols so that they can be used from modules 28726# Some platforms require extra flags to do this. libtool should set the 28727# necessary flags for each platform when -export-dynamic is passed to it. 28728LD_EXPORT_SYMBOLS_FLAG="-export-dynamic" 28729LD_NO_UNDEFINED_FLAG= 28730XORG_DRIVER_LIBS= 28731case "$host_os" in 28732 cygwin*) 28733 LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-all,--out-implib,lib\$@.a" 28734 LD_NO_UNDEFINED_FLAG="-no-undefined -Wl,\$(top_builddir)/hw/xfree86/libXorg.exe.a" 28735 XORG_DRIVER_LIBS="-lXorg.exe -L\${moduledir} -lshadow -lfb -no-undefined" 28736 CYGWIN=yes 28737 ;; 28738 solaris*) 28739 # We use AC_LINK_IFELSE to generate a temporary program conftest$EXEEXT 28740 # that we can link against for testing if the system linker is new 28741 # enough to support -z parent=<program> for verifying loadable modules 28742 # are only calling functions defined in either the loading program or 28743 # the libraries they're linked with. 28744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28745/* end confdefs.h. */ 28746int main(int argc, char **argv) { return 0; } 28747_ACEOF 28748if ac_fn_c_try_link "$LINENO"; then : 28749 mv conftest$EXEEXT conftest.parent 28750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,parent=conftest.parent -G" >&5 28751$as_echo_n "checking whether the linker accepts -Wl,-z,parent=conftest.parent -G... " >&6; } 28752if ${xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G+:} false; then : 28753 $as_echo_n "(cached) " >&6 28754else 28755 28756 ax_save_FLAGS=$LDFLAGS 28757 LDFLAGS="-Wl,-z,parent=conftest.parent -G" 28758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28759/* end confdefs.h. */ 28760extern int main(int argc, char **argv); 28761 int call_main(void) { return main(0, (void *)0); } 28762_ACEOF 28763if ac_fn_c_try_link "$LINENO"; then : 28764 xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=yes 28765else 28766 xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=no 28767fi 28768rm -f core conftest.err conftest.$ac_objext \ 28769 conftest$ac_exeext conftest.$ac_ext 28770 LDFLAGS=$ax_save_FLAGS 28771fi 28772 28773eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G 28774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5 28775$as_echo "$xorg_check_linker_flags" >&6; } 28776if test "x$xorg_check_linker_flags" = xyes; then 28777 LD_NO_UNDEFINED_FLAG="-Wl,-z,defs -Wl,-z,parent=\$(top_builddir)/hw/xfree86/Xorg" 28778# Not set yet, since this gets exported in xorg-server.pc to all the drivers, 28779# and they're not all fixed to build correctly with it yet. 28780# XORG_DRIVER_LIBS="-Wl,-z,defs -Wl,-z,parent=${bindir}/Xorg" 28781 28782else 28783 : 28784fi 28785 28786 rm -f conftest.parent 28787 28788fi 28789rm -f core conftest.err conftest.$ac_objext \ 28790 conftest$ac_exeext conftest.$ac_ext 28791 ;; 28792esac 28793 28794 28795 28796 if test x"$CYGWIN" = xyes; then 28797 CYGWIN_TRUE= 28798 CYGWIN_FALSE='#' 28799else 28800 CYGWIN_TRUE='#' 28801 CYGWIN_FALSE= 28802fi 28803 28804 if test x"$LD_NO_UNDEFINED_FLAG" != x; then 28805 NO_UNDEFINED_TRUE= 28806 NO_UNDEFINED_FALSE='#' 28807else 28808 NO_UNDEFINED_TRUE='#' 28809 NO_UNDEFINED_FALSE= 28810fi 28811 28812 28813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SVR4 needs to be defined" >&5 28814$as_echo_n "checking if SVR4 needs to be defined... " >&6; } 28815cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28816/* end confdefs.h. */ 28817 28818#if defined(SVR4) || defined(__svr4__) || defined(__SVR4) 28819 I_AM_SVR4 28820#endif 28821 28822_ACEOF 28823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28824 $EGREP "I_AM_SVR4" >/dev/null 2>&1; then : 28825 28826 28827$as_echo "#define SVR4 1" >>confdefs.h 28828 28829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28830$as_echo "yes" >&6; } 28831else 28832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28833$as_echo "no" >&6; } 28834fi 28835rm -f conftest* 28836 28837 28838XSERVER_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 $DBE_INC $PRESENT_INC" 28839 28840 28841 28842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xvfb DDX" >&5 28843$as_echo_n "checking whether to build Xvfb DDX... " >&6; } 28844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVFB" >&5 28845$as_echo "$XVFB" >&6; } 28846 if test "x$XVFB" = xyes; then 28847 XVFB_TRUE= 28848 XVFB_FALSE='#' 28849else 28850 XVFB_TRUE='#' 28851 XVFB_FALSE= 28852fi 28853 28854 28855if test "x$XVFB" = xyes; then 28856 XVFB_LIBS="$FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB" 28857 XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS" 28858 28859 28860fi 28861 28862 28863 28864 28865pkg_failed=no 28866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNESTMODULES" >&5 28867$as_echo_n "checking for XNESTMODULES... " >&6; } 28868 28869if test -n "$XNESTMODULES_CFLAGS"; then 28870 pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS" 28871 elif test -n "$PKG_CONFIG"; then 28872 if test -n "$PKG_CONFIG" && \ 28873 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5 28874 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5 28875 ac_status=$? 28876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28877 test $ac_status = 0; }; then 28878 pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null` 28879 test "x$?" != "x0" && pkg_failed=yes 28880else 28881 pkg_failed=yes 28882fi 28883 else 28884 pkg_failed=untried 28885fi 28886if test -n "$XNESTMODULES_LIBS"; then 28887 pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS" 28888 elif test -n "$PKG_CONFIG"; then 28889 if test -n "$PKG_CONFIG" && \ 28890 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5 28891 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5 28892 ac_status=$? 28893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28894 test $ac_status = 0; }; then 28895 pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null` 28896 test "x$?" != "x0" && pkg_failed=yes 28897else 28898 pkg_failed=yes 28899fi 28900 else 28901 pkg_failed=untried 28902fi 28903 28904 28905 28906if test $pkg_failed = yes; then 28907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28908$as_echo "no" >&6; } 28909 28910if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28911 _pkg_short_errors_supported=yes 28912else 28913 _pkg_short_errors_supported=no 28914fi 28915 if test $_pkg_short_errors_supported = yes; then 28916 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1` 28917 else 28918 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1` 28919 fi 28920 # Put the nasty error message in config.log where it belongs 28921 echo "$XNESTMODULES_PKG_ERRORS" >&5 28922 28923 have_xnest=no 28924elif test $pkg_failed = untried; then 28925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28926$as_echo "no" >&6; } 28927 have_xnest=no 28928else 28929 XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS 28930 XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS 28931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28932$as_echo "yes" >&6; } 28933 have_xnest=yes 28934fi 28935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xnest DDX" >&5 28936$as_echo_n "checking whether to build Xnest DDX... " >&6; } 28937if test "x$XNEST" = xauto; then 28938 XNEST="$have_xnest" 28939fi 28940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XNEST" >&5 28941$as_echo "$XNEST" >&6; } 28942 if test "x$XNEST" = xyes; then 28943 XNEST_TRUE= 28944 XNEST_FALSE='#' 28945else 28946 XNEST_TRUE='#' 28947 XNEST_FALSE= 28948fi 28949 28950 28951if test "x$XNEST" = xyes; then 28952 if test "x$have_xnest" = xno; then 28953 as_fn_error $? "Xnest build explicitly requested, but required modules not found." "$LINENO" 5 28954 fi 28955 XNEST_LIBS="$FB_LIB $FIXES_LIB $MI_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $RENDER_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $MAIN_LIB $DIX_LIB $OS_LIB" 28956 XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS" 28957 28958 28959fi 28960 28961 28962 28963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg DDX" >&5 28964$as_echo_n "checking whether to build Xorg DDX... " >&6; } 28965if test "x$XORG" = xauto; then 28966 XORG="yes" 28967 case $host_os in 28968 cygwin*) XORG="no" ;; 28969 mingw*) XORG="no" ;; 28970 darwin*) XORG="no" ;; 28971 esac 28972fi 28973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG" >&5 28974$as_echo "$XORG" >&6; } 28975 28976if test "x$XORG" = xyes; then 28977 XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common' 28978 XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os' 28979 XORG_INCS="$XORG_DDXINCS $XORG_OSINCS" 28980 XORG_CFLAGS="$XORGSERVER_CFLAGS -DHAVE_XORG_CONFIG_H" 28981 XORG_LIBS="$COMPOSITE_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $XI_LIB $XKB_LIB" 28982 28983 symbol_visibility= 28984 have_visibility=disabled 28985 if test x$SYMBOL_VISIBILITY != xno; then 28986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5 28987$as_echo_n "checking for symbol visibility support... " >&6; } 28988 if test x$GCC = xyes; then 28989 VISIBILITY_CFLAGS="-fvisibility=hidden" 28990 else 28991 if test x$SUNCC = xyes; then 28992 VISIBILITY_CFLAGS="-xldscope=hidden" 28993 else 28994 have_visibility=no 28995 fi 28996 fi 28997 if test x$have_visibility != xno; then 28998 save_CFLAGS="$CFLAGS" 28999 proto_inc=`$PKG_CONFIG --cflags xproto` 29000 CFLAGS="$CFLAGS $VISIBILITY_CFLAGS $proto_inc" 29001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29002/* end confdefs.h. */ 29003 29004 #include <X11/Xfuncproto.h> 29005 extern _X_HIDDEN int hidden_int; 29006 extern _X_EXPORT int public_int; 29007 extern _X_HIDDEN int hidden_int_func(void); 29008 extern _X_EXPORT int public_int_func(void); 29009int 29010main () 29011{ 29012 29013 ; 29014 return 0; 29015} 29016_ACEOF 29017if ac_fn_c_try_compile "$LINENO"; then : 29018 have_visibility=yes 29019else 29020 have_visibility=no 29021fi 29022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29023 CFLAGS=$save_CFLAGS 29024 fi 29025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5 29026$as_echo "$have_visibility" >&6; } 29027 if test x$have_visibility != xno; then 29028 symbol_visibility=$VISIBILITY_CFLAGS 29029 XORG_CFLAGS="$XORG_CFLAGS $VISIBILITY_CFLAGS" 29030 XSERVER_CFLAGS="$XSERVER_CFLAGS $VISIBILITY_CFLAGS" 29031 fi 29032 fi 29033 29034 29035 xorg_bus_bsdpci=no 29036 xorg_bus_sparc=no 29037 29038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg PCI functions" >&5 29039$as_echo_n "checking whether to build Xorg PCI functions... " >&6; } 29040 if test "x$PCI" = xyes; then 29041 29042pkg_failed=no 29043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 29044$as_echo_n "checking for PCIACCESS... " >&6; } 29045 29046if test -n "$PCIACCESS_CFLAGS"; then 29047 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 29048 elif test -n "$PKG_CONFIG"; then 29049 if test -n "$PKG_CONFIG" && \ 29050 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5 29051 ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5 29052 ac_status=$? 29053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29054 test $ac_status = 0; }; then 29055 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "$LIBPCIACCESS" 2>/dev/null` 29056 test "x$?" != "x0" && pkg_failed=yes 29057else 29058 pkg_failed=yes 29059fi 29060 else 29061 pkg_failed=untried 29062fi 29063if test -n "$PCIACCESS_LIBS"; then 29064 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 29065 elif test -n "$PKG_CONFIG"; then 29066 if test -n "$PKG_CONFIG" && \ 29067 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5 29068 ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5 29069 ac_status=$? 29070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29071 test $ac_status = 0; }; then 29072 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "$LIBPCIACCESS" 2>/dev/null` 29073 test "x$?" != "x0" && pkg_failed=yes 29074else 29075 pkg_failed=yes 29076fi 29077 else 29078 pkg_failed=untried 29079fi 29080 29081 29082 29083if test $pkg_failed = yes; then 29084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29085$as_echo "no" >&6; } 29086 29087if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29088 _pkg_short_errors_supported=yes 29089else 29090 _pkg_short_errors_supported=no 29091fi 29092 if test $_pkg_short_errors_supported = yes; then 29093 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1` 29094 else 29095 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1` 29096 fi 29097 # Put the nasty error message in config.log where it belongs 29098 echo "$PCIACCESS_PKG_ERRORS" >&5 29099 29100 as_fn_error $? "Package requirements ($LIBPCIACCESS) were not met: 29101 29102$PCIACCESS_PKG_ERRORS 29103 29104Consider adjusting the PKG_CONFIG_PATH environment variable if you 29105installed software in a non-standard prefix. 29106 29107Alternatively, you may set the environment variables PCIACCESS_CFLAGS 29108and PCIACCESS_LIBS to avoid the need to call pkg-config. 29109See the pkg-config man page for more details." "$LINENO" 5 29110elif test $pkg_failed = untried; then 29111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29112$as_echo "no" >&6; } 29113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29115as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29116is in your PATH or set the PKG_CONFIG environment variable to the full 29117path to pkg-config. 29118 29119Alternatively, you may set the environment variables PCIACCESS_CFLAGS 29120and PCIACCESS_LIBS to avoid the need to call pkg-config. 29121See the pkg-config man page for more details. 29122 29123To get pkg-config, see <http://pkg-config.freedesktop.org/>. 29124See \`config.log' for more details" "$LINENO" 5; } 29125else 29126 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 29127 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 29128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29129$as_echo "yes" >&6; } 29130 29131fi 29132 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $LIBPCIACCESS" 29133 XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $LIBDRM_LIBS" 29134 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS $LIBDRM_CFLAGS" 29135 29136 29137$as_echo "#define XSERVER_LIBPCIACCESS 1" >>confdefs.h 29138 29139 29140 prefix_NONE= 29141 exec_prefix_NONE= 29142 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29143 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29144 eval ac_define_dir="\"$PCI_TXT_IDS_DIR\"" 29145 eval ac_define_dir="\"$ac_define_dir\"" 29146 PCI_TXT_IDS_PATH="$ac_define_dir" 29147 29148 29149cat >>confdefs.h <<_ACEOF 29150#define PCI_TXT_IDS_PATH "$ac_define_dir" 29151_ACEOF 29152 29153 test "$prefix_NONE" && prefix=NONE 29154 test "$exec_prefix_NONE" && exec_prefix=NONE 29155 29156 case $host_os in 29157 gnu* | freebsd* | kfreebsd*-gnu | netbsd* | openbsd* | solaris* | dragonfly*) 29158 xorg_bus_bsdpci="yes" 29159 ;; 29160 esac 29161 case $host_cpu in 29162 sparc*) 29163 xorg_bus_sparc="yes" 29164 ;; 29165 esac 29166 else 29167 if test "x$CONFIG_UDEV_KMS" = xyes; then 29168 as_fn_error $? "Platform device enumeration requires libpciaccess" "$LINENO" 5 29169 fi 29170 if test "x$INT10MODULE" = xyes && test "x$INT10" != xstub; then 29171 as_fn_error $? "Cannot build int10 without libpciaccess" "$LINENO" 5 29172 fi 29173 fi 29174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCI" >&5 29175$as_echo "$PCI" >&6; } 29176 29177 if test "x$CONFIG_UDEV_KMS" = xyes; then 29178 29179$as_echo "#define XSERVER_PLATFORM_BUS 1" >>confdefs.h 29180 29181 fi 29182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSERVER_PLATFORM_BUS" >&5 29183$as_echo "$XSERVER_PLATFORM_BUS" >&6; } 29184 29185 case $host_os in 29186 linux*) 29187 XORG_OS_SUBDIR="linux" 29188 linux_acpi="no" 29189 case $host_cpu in 29190 i*86|amd64*|x86_64*|ia64*) 29191 linux_acpi=$enable_linux_acpi 29192 ;; 29193 *) 29194 ;; 29195 esac 29196 for ac_header in linux/apm_bios.h 29197do : 29198 ac_fn_c_check_header_mongrel "$LINENO" "linux/apm_bios.h" "ac_cv_header_linux_apm_bios_h" "$ac_includes_default" 29199if test "x$ac_cv_header_linux_apm_bios_h" = xyes; then : 29200 cat >>confdefs.h <<_ACEOF 29201#define HAVE_LINUX_APM_BIOS_H 1 29202_ACEOF 29203 linux_apm=$enable_linux_apm 29204fi 29205 29206done 29207 29208 if test "x$linux_apm" = xyes -o "x$linux_acpi" = xyes; then 29209 29210$as_echo "#define XF86PM 1" >>confdefs.h 29211 29212 fi 29213 ;; 29214 freebsd* | kfreebsd*-gnu | dragonfly*) 29215 XORG_OS_SUBDIR="bsd" 29216 ;; 29217 netbsd*) 29218 XORG_OS_SUBDIR="bsd" 29219 ;; 29220 openbsd*) 29221 if test "x$ac_cv_BSD_APM" = xyes \ 29222 -o "x$ac_cv_BSD_KQUEUE_APM" = xyes; then 29223 XORG_CFLAGS="$XORG_CFLAGS -DXF86PM" 29224 fi 29225 XORG_OS_SUBDIR="bsd" 29226 ;; 29227 solaris*) 29228 XORG_OS_SUBDIR="solaris" 29229 XORG_CFLAGS="$XORG_CFLAGS -DXF86PM" 29230 for ac_header in sys/kd.h 29231do : 29232 ac_fn_c_check_header_mongrel "$LINENO" "sys/kd.h" "ac_cv_header_sys_kd_h" "$ac_includes_default" 29233if test "x$ac_cv_header_sys_kd_h" = xyes; then : 29234 cat >>confdefs.h <<_ACEOF 29235#define HAVE_SYS_KD_H 1 29236_ACEOF 29237 29238fi 29239 29240done 29241 29242 for ac_header in sys/vt.h 29243do : 29244 ac_fn_c_check_header_mongrel "$LINENO" "sys/vt.h" "ac_cv_header_sys_vt_h" "$ac_includes_default" 29245if test "x$ac_cv_header_sys_vt_h" = xyes; then : 29246 cat >>confdefs.h <<_ACEOF 29247#define HAVE_SYS_VT_H 1 29248_ACEOF 29249 solaris_vt=yes 29250else 29251 solaris_vt=no 29252fi 29253 29254done 29255 29256 # Check for minimum supported release 29257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris version" >&5 29258$as_echo_n "checking Solaris version... " >&6; } 29259 OS_MINOR=`echo ${host_os}|$SED -e 's/^.*solaris2\.//' -e s'/\..*$//'` 29260 if test "${OS_MINOR}" -ge 7 ; then 29261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris ${OS_MINOR}" >&5 29262$as_echo "Solaris ${OS_MINOR}" >&6; } 29263 else 29264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&5 29265$as_echo "Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&6; } 29266 fi 29267 if test "${OS_MINOR}" -lt 8 ; then 29268 as_fn_error $? "This release no longer supports Solaris versions older than Solaris 8." "$LINENO" 5 29269 fi 29270 ac_fn_c_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default" 29271if test "x$ac_cv_have_decl__LP64" = xyes; then : 29272 SOLARIS_64="yes" 29273else 29274 SOLARIS_64="no" 29275fi 29276 29277 29278 case $host_cpu in 29279 sparc*) 29280 SOLARIS_INOUT_ARCH="sparcv8plus" 29281 ;; 29282 i*86|x86_64*) 29283 if test x$SOLARIS_64 = xyes ; then 29284 SOLARIS_INOUT_ARCH="amd64" 29285 else 29286 SOLARIS_INOUT_ARCH="ia32" 29287 fi 29288 ;; 29289 *) 29290 as_fn_error $? "Unsupported Solaris platform. Only SPARC & x86 \ 29291 are supported on Solaris in this release. If you are \ 29292 interested in porting Xorg to your platform, please email \ 29293 xorg@lists.freedesktop.org." "$LINENO" 5 ;; 29294 esac 29295 29296 ;; 29297 gnu*) 29298 XORG_OS_SUBDIR="hurd" 29299 ;; 29300 cygwin*) 29301 XORG_OS_SUBDIR="stub" 29302 ;; 29303 *) 29304 XORG_OS_SUBDIR="stub" 29305 { $as_echo "$as_me:${as_lineno-$LINENO}: Your OS is unknown. If you are interested in porting Xorg to your platform, 29306please email xorg@lists.freedesktop.org." >&5 29307$as_echo "$as_me: Your OS is unknown. If you are interested in porting Xorg to your platform, 29308please email xorg@lists.freedesktop.org." >&6;} 29309 ;; 29310 esac 29311 29312 if test "x$DGA" = xauto; then 29313 29314pkg_failed=no 29315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5 29316$as_echo_n "checking for DGA... " >&6; } 29317 29318if test -n "$DGA_CFLAGS"; then 29319 pkg_cv_DGA_CFLAGS="$DGA_CFLAGS" 29320 elif test -n "$PKG_CONFIG"; then 29321 if test -n "$PKG_CONFIG" && \ 29322 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 29323 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 29324 ac_status=$? 29325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29326 test $ac_status = 0; }; then 29327 pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null` 29328 test "x$?" != "x0" && pkg_failed=yes 29329else 29330 pkg_failed=yes 29331fi 29332 else 29333 pkg_failed=untried 29334fi 29335if test -n "$DGA_LIBS"; then 29336 pkg_cv_DGA_LIBS="$DGA_LIBS" 29337 elif test -n "$PKG_CONFIG"; then 29338 if test -n "$PKG_CONFIG" && \ 29339 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 29340 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 29341 ac_status=$? 29342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29343 test $ac_status = 0; }; then 29344 pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null` 29345 test "x$?" != "x0" && pkg_failed=yes 29346else 29347 pkg_failed=yes 29348fi 29349 else 29350 pkg_failed=untried 29351fi 29352 29353 29354 29355if test $pkg_failed = yes; then 29356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29357$as_echo "no" >&6; } 29358 29359if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29360 _pkg_short_errors_supported=yes 29361else 29362 _pkg_short_errors_supported=no 29363fi 29364 if test $_pkg_short_errors_supported = yes; then 29365 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1` 29366 else 29367 DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1` 29368 fi 29369 # Put the nasty error message in config.log where it belongs 29370 echo "$DGA_PKG_ERRORS" >&5 29371 29372 DGA=no 29373elif test $pkg_failed = untried; then 29374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29375$as_echo "no" >&6; } 29376 DGA=no 29377else 29378 DGA_CFLAGS=$pkg_cv_DGA_CFLAGS 29379 DGA_LIBS=$pkg_cv_DGA_LIBS 29380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29381$as_echo "yes" >&6; } 29382 DGA=yes 29383fi 29384 fi 29385 if test "x$DGA" = xyes; then 29386 XORG_MODULES="$XORG_MODULES $DGAPROTO" 29387 29388pkg_failed=no 29389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5 29390$as_echo_n "checking for DGA... " >&6; } 29391 29392if test -n "$DGA_CFLAGS"; then 29393 pkg_cv_DGA_CFLAGS="$DGA_CFLAGS" 29394 elif test -n "$PKG_CONFIG"; then 29395 if test -n "$PKG_CONFIG" && \ 29396 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 29397 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 29398 ac_status=$? 29399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29400 test $ac_status = 0; }; then 29401 pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null` 29402 test "x$?" != "x0" && pkg_failed=yes 29403else 29404 pkg_failed=yes 29405fi 29406 else 29407 pkg_failed=untried 29408fi 29409if test -n "$DGA_LIBS"; then 29410 pkg_cv_DGA_LIBS="$DGA_LIBS" 29411 elif test -n "$PKG_CONFIG"; then 29412 if test -n "$PKG_CONFIG" && \ 29413 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 29414 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 29415 ac_status=$? 29416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29417 test $ac_status = 0; }; then 29418 pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null` 29419 test "x$?" != "x0" && pkg_failed=yes 29420else 29421 pkg_failed=yes 29422fi 29423 else 29424 pkg_failed=untried 29425fi 29426 29427 29428 29429if test $pkg_failed = yes; then 29430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29431$as_echo "no" >&6; } 29432 29433if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29434 _pkg_short_errors_supported=yes 29435else 29436 _pkg_short_errors_supported=no 29437fi 29438 if test $_pkg_short_errors_supported = yes; then 29439 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1` 29440 else 29441 DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1` 29442 fi 29443 # Put the nasty error message in config.log where it belongs 29444 echo "$DGA_PKG_ERRORS" >&5 29445 29446 as_fn_error $? "Package requirements ($DGAPROTO) were not met: 29447 29448$DGA_PKG_ERRORS 29449 29450Consider adjusting the PKG_CONFIG_PATH environment variable if you 29451installed software in a non-standard prefix. 29452 29453Alternatively, you may set the environment variables DGA_CFLAGS 29454and DGA_LIBS to avoid the need to call pkg-config. 29455See the pkg-config man page for more details." "$LINENO" 5 29456elif test $pkg_failed = untried; then 29457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29458$as_echo "no" >&6; } 29459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29461as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29462is in your PATH or set the PKG_CONFIG environment variable to the full 29463path to pkg-config. 29464 29465Alternatively, you may set the environment variables DGA_CFLAGS 29466and DGA_LIBS to avoid the need to call pkg-config. 29467See the pkg-config man page for more details. 29468 29469To get pkg-config, see <http://pkg-config.freedesktop.org/>. 29470See \`config.log' for more details" "$LINENO" 5; } 29471else 29472 DGA_CFLAGS=$pkg_cv_DGA_CFLAGS 29473 DGA_LIBS=$pkg_cv_DGA_LIBS 29474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29475$as_echo "yes" >&6; } 29476 29477fi 29478 29479$as_echo "#define DGA 1" >>confdefs.h 29480 29481 29482$as_echo "#define XFreeXDGA 1" >>confdefs.h 29483 29484 fi 29485 29486 if test "x$XF86VIDMODE" = xyes; then 29487 XORG_MODULES="$XORG_MODULES $VIDMODEPROTO" 29488 fi 29489 29490 if test -n "$XORG_MODULES"; then 29491 29492pkg_failed=no 29493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG_MODULES" >&5 29494$as_echo_n "checking for XORG_MODULES... " >&6; } 29495 29496if test -n "$XORG_MODULES_CFLAGS"; then 29497 pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS" 29498 elif test -n "$PKG_CONFIG"; then 29499 if test -n "$PKG_CONFIG" && \ 29500 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5 29501 ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5 29502 ac_status=$? 29503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29504 test $ac_status = 0; }; then 29505 pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null` 29506 test "x$?" != "x0" && pkg_failed=yes 29507else 29508 pkg_failed=yes 29509fi 29510 else 29511 pkg_failed=untried 29512fi 29513if test -n "$XORG_MODULES_LIBS"; then 29514 pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS" 29515 elif test -n "$PKG_CONFIG"; then 29516 if test -n "$PKG_CONFIG" && \ 29517 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5 29518 ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5 29519 ac_status=$? 29520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29521 test $ac_status = 0; }; then 29522 pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null` 29523 test "x$?" != "x0" && pkg_failed=yes 29524else 29525 pkg_failed=yes 29526fi 29527 else 29528 pkg_failed=untried 29529fi 29530 29531 29532 29533if test $pkg_failed = yes; then 29534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29535$as_echo "no" >&6; } 29536 29537if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29538 _pkg_short_errors_supported=yes 29539else 29540 _pkg_short_errors_supported=no 29541fi 29542 if test $_pkg_short_errors_supported = yes; then 29543 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XORG_MODULES" 2>&1` 29544 else 29545 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XORG_MODULES" 2>&1` 29546 fi 29547 # Put the nasty error message in config.log where it belongs 29548 echo "$XORG_MODULES_PKG_ERRORS" >&5 29549 29550 as_fn_error $? "Package requirements ($XORG_MODULES) were not met: 29551 29552$XORG_MODULES_PKG_ERRORS 29553 29554Consider adjusting the PKG_CONFIG_PATH environment variable if you 29555installed software in a non-standard prefix. 29556 29557Alternatively, you may set the environment variables XORG_MODULES_CFLAGS 29558and XORG_MODULES_LIBS to avoid the need to call pkg-config. 29559See the pkg-config man page for more details." "$LINENO" 5 29560elif test $pkg_failed = untried; then 29561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29562$as_echo "no" >&6; } 29563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29565as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29566is in your PATH or set the PKG_CONFIG environment variable to the full 29567path to pkg-config. 29568 29569Alternatively, you may set the environment variables XORG_MODULES_CFLAGS 29570and XORG_MODULES_LIBS to avoid the need to call pkg-config. 29571See the pkg-config man page for more details. 29572 29573To get pkg-config, see <http://pkg-config.freedesktop.org/>. 29574See \`config.log' for more details" "$LINENO" 5; } 29575else 29576 XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS 29577 XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS 29578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29579$as_echo "yes" >&6; } 29580 29581fi 29582 XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS" 29583 XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS" 29584 fi 29585 29586 if test "x$DRM" = xyes; then 29587 XORG_DRIVER_MODESETTING=yes 29588 fi 29589 29590 29591 29592 29593 29594 29595 29596 XF86CONFIGFILE="xorg.conf" 29597 XF86CONFIGDIR="xorg.conf.d" 29598 29599 CONFIGFILE="$sysconfdir/$XF86CONFIGFILE" 29600 LOGPREFIX="Xorg." 29601 XDG_DATA_HOME=".local/share" 29602 XDG_DATA_HOME_LOGDIR="xorg" 29603 29604$as_echo "#define XORG_SERVER 1" >>confdefs.h 29605 29606 29607$as_echo "#define XORGSERVER 1" >>confdefs.h 29608 29609 29610$as_echo "#define XFree86Server 1" >>confdefs.h 29611 29612 29613cat >>confdefs.h <<_ACEOF 29614#define XORG_VERSION_CURRENT $VENDOR_RELEASE 29615_ACEOF 29616 29617 29618$as_echo "#define NEED_XF86_TYPES 1" >>confdefs.h 29619 29620 29621$as_echo "#define NEED_XF86_PROTOTYPES 1" >>confdefs.h 29622 29623 29624$as_echo "#define __XSERVERNAME__ \"Xorg\"" >>confdefs.h 29625 29626 29627 prefix_NONE= 29628 exec_prefix_NONE= 29629 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29630 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29631 eval ac_define_dir="\"$XF86CONFIGFILE\"" 29632 eval ac_define_dir="\"$ac_define_dir\"" 29633 XCONFIGFILE="$ac_define_dir" 29634 29635 29636cat >>confdefs.h <<_ACEOF 29637#define XCONFIGFILE "$ac_define_dir" 29638_ACEOF 29639 29640 test "$prefix_NONE" && prefix=NONE 29641 test "$exec_prefix_NONE" && exec_prefix=NONE 29642 29643 29644 prefix_NONE= 29645 exec_prefix_NONE= 29646 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29647 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29648 eval ac_define_dir="\"$XF86CONFIGFILE\"" 29649 eval ac_define_dir="\"$ac_define_dir\"" 29650 XF86CONFIGFILE="$ac_define_dir" 29651 29652 29653cat >>confdefs.h <<_ACEOF 29654#define XF86CONFIGFILE "$ac_define_dir" 29655_ACEOF 29656 29657 test "$prefix_NONE" && prefix=NONE 29658 test "$exec_prefix_NONE" && exec_prefix=NONE 29659 29660 29661 prefix_NONE= 29662 exec_prefix_NONE= 29663 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29664 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29665 eval ac_define_dir="\"$XF86CONFIGDIR\"" 29666 eval ac_define_dir="\"$ac_define_dir\"" 29667 XCONFIGDIR="$ac_define_dir" 29668 29669 29670cat >>confdefs.h <<_ACEOF 29671#define XCONFIGDIR "$ac_define_dir" 29672_ACEOF 29673 29674 test "$prefix_NONE" && prefix=NONE 29675 test "$exec_prefix_NONE" && exec_prefix=NONE 29676 29677 29678 prefix_NONE= 29679 exec_prefix_NONE= 29680 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29681 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29682 eval ac_define_dir="\"$moduledir\"" 29683 eval ac_define_dir="\"$ac_define_dir\"" 29684 DEFAULT_MODULE_PATH="$ac_define_dir" 29685 29686 29687cat >>confdefs.h <<_ACEOF 29688#define DEFAULT_MODULE_PATH "$ac_define_dir" 29689_ACEOF 29690 29691 test "$prefix_NONE" && prefix=NONE 29692 test "$exec_prefix_NONE" && exec_prefix=NONE 29693 29694 29695 prefix_NONE= 29696 exec_prefix_NONE= 29697 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29698 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29699 eval ac_define_dir="\"$libdir\"" 29700 eval ac_define_dir="\"$ac_define_dir\"" 29701 DEFAULT_LIBRARY_PATH="$ac_define_dir" 29702 29703 29704cat >>confdefs.h <<_ACEOF 29705#define DEFAULT_LIBRARY_PATH "$ac_define_dir" 29706_ACEOF 29707 29708 test "$prefix_NONE" && prefix=NONE 29709 test "$exec_prefix_NONE" && exec_prefix=NONE 29710 29711 29712 prefix_NONE= 29713 exec_prefix_NONE= 29714 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29715 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29716 eval ac_define_dir="\"$logdir\"" 29717 eval ac_define_dir="\"$ac_define_dir\"" 29718 DEFAULT_LOGDIR="$ac_define_dir" 29719 29720 29721cat >>confdefs.h <<_ACEOF 29722#define DEFAULT_LOGDIR "$ac_define_dir" 29723_ACEOF 29724 29725 test "$prefix_NONE" && prefix=NONE 29726 test "$exec_prefix_NONE" && exec_prefix=NONE 29727 29728 29729 prefix_NONE= 29730 exec_prefix_NONE= 29731 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29732 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29733 eval ac_define_dir="\"$LOGPREFIX\"" 29734 eval ac_define_dir="\"$ac_define_dir\"" 29735 DEFAULT_LOGPREFIX="$ac_define_dir" 29736 29737 29738cat >>confdefs.h <<_ACEOF 29739#define DEFAULT_LOGPREFIX "$ac_define_dir" 29740_ACEOF 29741 29742 test "$prefix_NONE" && prefix=NONE 29743 test "$exec_prefix_NONE" && exec_prefix=NONE 29744 29745 29746 prefix_NONE= 29747 exec_prefix_NONE= 29748 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29749 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29750 eval ac_define_dir="\"$XDG_DATA_HOME\"" 29751 eval ac_define_dir="\"$ac_define_dir\"" 29752 DEFAULT_XDG_DATA_HOME="$ac_define_dir" 29753 29754 29755cat >>confdefs.h <<_ACEOF 29756#define DEFAULT_XDG_DATA_HOME "$ac_define_dir" 29757_ACEOF 29758 29759 test "$prefix_NONE" && prefix=NONE 29760 test "$exec_prefix_NONE" && exec_prefix=NONE 29761 29762 29763 prefix_NONE= 29764 exec_prefix_NONE= 29765 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29766 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29767 eval ac_define_dir="\"$XDG_DATA_HOME_LOGDIR\"" 29768 eval ac_define_dir="\"$ac_define_dir\"" 29769 DEFAULT_XDG_DATA_HOME_LOGDIR="$ac_define_dir" 29770 29771 29772cat >>confdefs.h <<_ACEOF 29773#define DEFAULT_XDG_DATA_HOME_LOGDIR "$ac_define_dir" 29774_ACEOF 29775 29776 test "$prefix_NONE" && prefix=NONE 29777 test "$exec_prefix_NONE" && exec_prefix=NONE 29778 29779 29780cat >>confdefs.h <<_ACEOF 29781#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB" 29782_ACEOF 29783 29784 if test "x$VGAHW" = xyes; then 29785 29786$as_echo "#define WITH_VGAHW 1" >>confdefs.h 29787 29788 fi 29789 29790 driverdir="$moduledir/drivers" 29791 29792 29793 sdkdir="$includedir/xorg" 29794 extdir="$includedir/X11/extensions" 29795 sysconfigdir="$datadir/X11/$XF86CONFIGDIR" 29796 29797 29798 29799 29800 29801 # stuff the ABI versions into the pc file too 29802 extract_abi() { 29803 grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' ' .' | awk '{ print $4$5 }' 29804 } 29805 abi_ansic=`extract_abi ANSIC` 29806 abi_videodrv=`extract_abi VIDEODRV` 29807 abi_xinput=`extract_abi XINPUT` 29808 abi_extension=`extract_abi EXTENSION` 29809 29810 29811 29812 29813fi 29814 if test "x$XORG" = xyes; then 29815 XORG_TRUE= 29816 XORG_FALSE='#' 29817else 29818 XORG_TRUE='#' 29819 XORG_FALSE= 29820fi 29821 29822 if test "x$PCI" = xyes; then 29823 XORG_BUS_PCI_TRUE= 29824 XORG_BUS_PCI_FALSE='#' 29825else 29826 XORG_BUS_PCI_TRUE='#' 29827 XORG_BUS_PCI_FALSE= 29828fi 29829 29830 if test "x$xorg_bus_bsdpci" = xyes; then 29831 XORG_BUS_BSDPCI_TRUE= 29832 XORG_BUS_BSDPCI_FALSE='#' 29833else 29834 XORG_BUS_BSDPCI_TRUE='#' 29835 XORG_BUS_BSDPCI_FALSE= 29836fi 29837 29838 if test "x$xorg_bus_sparc" = xyes; then 29839 XORG_BUS_SPARC_TRUE= 29840 XORG_BUS_SPARC_FALSE='#' 29841else 29842 XORG_BUS_SPARC_TRUE='#' 29843 XORG_BUS_SPARC_FALSE= 29844fi 29845 29846 if test "x$linux_acpi" = xyes; then 29847 LNXACPI_TRUE= 29848 LNXACPI_FALSE='#' 29849else 29850 LNXACPI_TRUE='#' 29851 LNXACPI_FALSE= 29852fi 29853 29854 if test "x$linux_apm" = xyes; then 29855 LNXAPM_TRUE= 29856 LNXAPM_FALSE='#' 29857else 29858 LNXAPM_TRUE='#' 29859 LNXAPM_FALSE= 29860fi 29861 29862 if test "x$solaris_vt" = xyes; then 29863 SOLARIS_VT_TRUE= 29864 SOLARIS_VT_FALSE='#' 29865else 29866 SOLARIS_VT_TRUE='#' 29867 SOLARIS_VT_FALSE= 29868fi 29869 29870 if test "x$DGA" = xyes; then 29871 DGA_TRUE= 29872 DGA_FALSE='#' 29873else 29874 DGA_TRUE='#' 29875 DGA_FALSE= 29876fi 29877 29878 if test "x$CONFIG_UDEV_KMS" = xyes; then 29879 XORG_BUS_PLATFORM_TRUE= 29880 XORG_BUS_PLATFORM_FALSE='#' 29881else 29882 XORG_BUS_PLATFORM_TRUE='#' 29883 XORG_BUS_PLATFORM_FALSE= 29884fi 29885 29886 if test "x$XORG_DRIVER_MODESETTING" = xyes; then 29887 XORG_DRIVER_MODESETTING_TRUE= 29888 XORG_DRIVER_MODESETTING_FALSE='#' 29889else 29890 XORG_DRIVER_MODESETTING_TRUE='#' 29891 XORG_DRIVER_MODESETTING_FALSE= 29892fi 29893 29894 29895if test "x$GLAMOR" = xauto; then 29896 if echo "$XORG" "$XEPHYR" "$XWAYLAND" | grep -q yes ; then 29897 GLAMOR=yes 29898 fi 29899fi 29900 29901 if test "x$GLAMOR" = xyes; then 29902 GLAMOR_TRUE= 29903 GLAMOR_FALSE='#' 29904else 29905 GLAMOR_TRUE='#' 29906 GLAMOR_FALSE= 29907fi 29908 29909 29910if test "x$GLAMOR" = xyes; then 29911 29912$as_echo "#define GLAMOR 1" >>confdefs.h 29913 29914 29915pkg_failed=no 29916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLAMOR" >&5 29917$as_echo_n "checking for GLAMOR... " >&6; } 29918 29919if test -n "$GLAMOR_CFLAGS"; then 29920 pkg_cv_GLAMOR_CFLAGS="$GLAMOR_CFLAGS" 29921 elif test -n "$PKG_CONFIG"; then 29922 if test -n "$PKG_CONFIG" && \ 29923 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5 29924 ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5 29925 ac_status=$? 29926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29927 test $ac_status = 0; }; then 29928 pkg_cv_GLAMOR_CFLAGS=`$PKG_CONFIG --cflags "epoxy" 2>/dev/null` 29929 test "x$?" != "x0" && pkg_failed=yes 29930else 29931 pkg_failed=yes 29932fi 29933 else 29934 pkg_failed=untried 29935fi 29936if test -n "$GLAMOR_LIBS"; then 29937 pkg_cv_GLAMOR_LIBS="$GLAMOR_LIBS" 29938 elif test -n "$PKG_CONFIG"; then 29939 if test -n "$PKG_CONFIG" && \ 29940 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5 29941 ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5 29942 ac_status=$? 29943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29944 test $ac_status = 0; }; then 29945 pkg_cv_GLAMOR_LIBS=`$PKG_CONFIG --libs "epoxy" 2>/dev/null` 29946 test "x$?" != "x0" && pkg_failed=yes 29947else 29948 pkg_failed=yes 29949fi 29950 else 29951 pkg_failed=untried 29952fi 29953 29954 29955 29956if test $pkg_failed = yes; then 29957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29958$as_echo "no" >&6; } 29959 29960if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29961 _pkg_short_errors_supported=yes 29962else 29963 _pkg_short_errors_supported=no 29964fi 29965 if test $_pkg_short_errors_supported = yes; then 29966 GLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "epoxy" 2>&1` 29967 else 29968 GLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "epoxy" 2>&1` 29969 fi 29970 # Put the nasty error message in config.log where it belongs 29971 echo "$GLAMOR_PKG_ERRORS" >&5 29972 29973 as_fn_error $? "Package requirements (epoxy) were not met: 29974 29975$GLAMOR_PKG_ERRORS 29976 29977Consider adjusting the PKG_CONFIG_PATH environment variable if you 29978installed software in a non-standard prefix. 29979 29980Alternatively, you may set the environment variables GLAMOR_CFLAGS 29981and GLAMOR_LIBS to avoid the need to call pkg-config. 29982See the pkg-config man page for more details." "$LINENO" 5 29983elif test $pkg_failed = untried; then 29984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29985$as_echo "no" >&6; } 29986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29988as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29989is in your PATH or set the PKG_CONFIG environment variable to the full 29990path to pkg-config. 29991 29992Alternatively, you may set the environment variables GLAMOR_CFLAGS 29993and GLAMOR_LIBS to avoid the need to call pkg-config. 29994See the pkg-config man page for more details. 29995 29996To get pkg-config, see <http://pkg-config.freedesktop.org/>. 29997See \`config.log' for more details" "$LINENO" 5; } 29998else 29999 GLAMOR_CFLAGS=$pkg_cv_GLAMOR_CFLAGS 30000 GLAMOR_LIBS=$pkg_cv_GLAMOR_LIBS 30001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30002$as_echo "yes" >&6; } 30003 30004fi 30005 30006 if test -n "$PKG_CONFIG" && \ 30007 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.4.4\""; } >&5 30008 ($PKG_CONFIG --exists --print-errors "epoxy >= 1.4.4") 2>&5 30009 ac_status=$? 30010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30011 test $ac_status = 0; }; then 30012 30013$as_echo "#define GLAMOR_HAS_EGL_QUERY_DMABUF 1" >>confdefs.h 30014 30015fi 30016 30017 if test -n "$PKG_CONFIG" && \ 30018 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.5.4\""; } >&5 30019 ($PKG_CONFIG --exists --print-errors "epoxy >= 1.5.4") 2>&5 30020 ac_status=$? 30021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30022 test $ac_status = 0; }; then 30023 30024$as_echo "#define GLAMOR_HAS_EGL_QUERY_DRIVER 1" >>confdefs.h 30025 30026fi 30027 30028 30029pkg_failed=no 30030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GBM" >&5 30031$as_echo_n "checking for GBM... " >&6; } 30032 30033if test -n "$GBM_CFLAGS"; then 30034 pkg_cv_GBM_CFLAGS="$GBM_CFLAGS" 30035 elif test -n "$PKG_CONFIG"; then 30036 if test -n "$PKG_CONFIG" && \ 30037 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5 30038 ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5 30039 ac_status=$? 30040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30041 test $ac_status = 0; }; then 30042 pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags ""$LIBGBM"" 2>/dev/null` 30043 test "x$?" != "x0" && pkg_failed=yes 30044else 30045 pkg_failed=yes 30046fi 30047 else 30048 pkg_failed=untried 30049fi 30050if test -n "$GBM_LIBS"; then 30051 pkg_cv_GBM_LIBS="$GBM_LIBS" 30052 elif test -n "$PKG_CONFIG"; then 30053 if test -n "$PKG_CONFIG" && \ 30054 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5 30055 ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5 30056 ac_status=$? 30057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30058 test $ac_status = 0; }; then 30059 pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs ""$LIBGBM"" 2>/dev/null` 30060 test "x$?" != "x0" && pkg_failed=yes 30061else 30062 pkg_failed=yes 30063fi 30064 else 30065 pkg_failed=untried 30066fi 30067 30068 30069 30070if test $pkg_failed = yes; then 30071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30072$as_echo "no" >&6; } 30073 30074if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30075 _pkg_short_errors_supported=yes 30076else 30077 _pkg_short_errors_supported=no 30078fi 30079 if test $_pkg_short_errors_supported = yes; then 30080 GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""$LIBGBM"" 2>&1` 30081 else 30082 GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""$LIBGBM"" 2>&1` 30083 fi 30084 # Put the nasty error message in config.log where it belongs 30085 echo "$GBM_PKG_ERRORS" >&5 30086 30087 GBM=no 30088elif test $pkg_failed = untried; then 30089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30090$as_echo "no" >&6; } 30091 GBM=no 30092else 30093 GBM_CFLAGS=$pkg_cv_GBM_CFLAGS 30094 GBM_LIBS=$pkg_cv_GBM_LIBS 30095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30096$as_echo "yes" >&6; } 30097 GBM=yes 30098fi 30099 if test "x$GBM" = xyes; then 30100 30101$as_echo "#define GLAMOR_HAS_GBM 1" >>confdefs.h 30102 30103 ac_fn_c_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h> 30104 #include <gbm.h> 30105" 30106if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes; then : 30107 30108$as_echo "#define GLAMOR_HAS_GBM_LINEAR 1" >>confdefs.h 30109 30110fi 30111 30112 if test -n "$PKG_CONFIG" && \ 30113 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 17.1.0\""; } >&5 30114 ($PKG_CONFIG --exists --print-errors "gbm >= 17.1.0") 2>&5 30115 ac_status=$? 30116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30117 test $ac_status = 0; }; then 30118 30119$as_echo "#define GBM_BO_WITH_MODIFIERS 1" >>confdefs.h 30120 30121fi 30122 else 30123 if test "x$XORG" = xyes; then 30124 as_fn_error $? "Glamor for Xorg requires $LIBGBM" "$LINENO" 5 30125 fi 30126 fi 30127fi 30128 if test "x$GBM" = xyes; then 30129 GLAMOR_EGL_TRUE= 30130 GLAMOR_EGL_FALSE='#' 30131else 30132 GLAMOR_EGL_TRUE='#' 30133 GLAMOR_EGL_FALSE= 30134fi 30135 30136 30137 30138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build XWin DDX" >&5 30139$as_echo_n "checking whether to build XWin DDX... " >&6; } 30140if test "x$XWIN" = xauto; then 30141 case $host_os in 30142 cygwin*) XWIN="yes" ;; 30143 mingw*) XWIN="yes" ;; 30144 *) XWIN="no" ;; 30145 esac 30146fi 30147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XWIN" >&5 30148$as_echo "$XWIN" >&6; } 30149 30150if test "x$XWIN" = xyes; then 30151 30152 prefix_NONE= 30153 exec_prefix_NONE= 30154 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 30155 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 30156 eval ac_define_dir="\"$logdir\"" 30157 eval ac_define_dir="\"$ac_define_dir\"" 30158 DEFAULT_LOGDIR="$ac_define_dir" 30159 30160 30161cat >>confdefs.h <<_ACEOF 30162#define DEFAULT_LOGDIR "$ac_define_dir" 30163_ACEOF 30164 30165 test "$prefix_NONE" && prefix=NONE 30166 test "$exec_prefix_NONE" && exec_prefix=NONE 30167 30168 30169cat >>confdefs.h <<_ACEOF 30170#define XORG_VERSION_CURRENT $VENDOR_RELEASE 30171_ACEOF 30172 30173 30174cat >>confdefs.h <<_ACEOF 30175#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB" 30176_ACEOF 30177 30178 if test -n "$ac_tool_prefix"; then 30179 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 30180set dummy ${ac_tool_prefix}windres; ac_word=$2 30181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30182$as_echo_n "checking for $ac_word... " >&6; } 30183if ${ac_cv_prog_WINDRES+:} false; then : 30184 $as_echo_n "(cached) " >&6 30185else 30186 if test -n "$WINDRES"; then 30187 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 30188else 30189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30190for as_dir in $PATH 30191do 30192 IFS=$as_save_IFS 30193 test -z "$as_dir" && as_dir=. 30194 for ac_exec_ext in '' $ac_executable_extensions; do 30195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30196 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 30197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30198 break 2 30199 fi 30200done 30201 done 30202IFS=$as_save_IFS 30203 30204fi 30205fi 30206WINDRES=$ac_cv_prog_WINDRES 30207if test -n "$WINDRES"; then 30208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 30209$as_echo "$WINDRES" >&6; } 30210else 30211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30212$as_echo "no" >&6; } 30213fi 30214 30215 30216fi 30217if test -z "$ac_cv_prog_WINDRES"; then 30218 ac_ct_WINDRES=$WINDRES 30219 # Extract the first word of "windres", so it can be a program name with args. 30220set dummy windres; ac_word=$2 30221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30222$as_echo_n "checking for $ac_word... " >&6; } 30223if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 30224 $as_echo_n "(cached) " >&6 30225else 30226 if test -n "$ac_ct_WINDRES"; then 30227 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 30228else 30229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30230for as_dir in $PATH 30231do 30232 IFS=$as_save_IFS 30233 test -z "$as_dir" && as_dir=. 30234 for ac_exec_ext in '' $ac_executable_extensions; do 30235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30236 ac_cv_prog_ac_ct_WINDRES="windres" 30237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30238 break 2 30239 fi 30240done 30241 done 30242IFS=$as_save_IFS 30243 30244fi 30245fi 30246ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 30247if test -n "$ac_ct_WINDRES"; then 30248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 30249$as_echo "$ac_ct_WINDRES" >&6; } 30250else 30251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30252$as_echo "no" >&6; } 30253fi 30254 30255 if test "x$ac_ct_WINDRES" = x; then 30256 WINDRES="" 30257 else 30258 case $cross_compiling:$ac_tool_warned in 30259yes:) 30260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30262ac_tool_warned=yes ;; 30263esac 30264 WINDRES=$ac_ct_WINDRES 30265 fi 30266else 30267 WINDRES="$ac_cv_prog_WINDRES" 30268fi 30269 30270 30271 30272pkg_failed=no 30273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWINMODULES" >&5 30274$as_echo_n "checking for XWINMODULES... " >&6; } 30275 30276if test -n "$XWINMODULES_CFLAGS"; then 30277 pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS" 30278 elif test -n "$PKG_CONFIG"; then 30279 if test -n "$PKG_CONFIG" && \ 30280 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm\""; } >&5 30281 ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm") 2>&5 30282 ac_status=$? 30283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30284 test $ac_status = 0; }; then 30285 pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm" 2>/dev/null` 30286 test "x$?" != "x0" && pkg_failed=yes 30287else 30288 pkg_failed=yes 30289fi 30290 else 30291 pkg_failed=untried 30292fi 30293if test -n "$XWINMODULES_LIBS"; then 30294 pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS" 30295 elif test -n "$PKG_CONFIG"; then 30296 if test -n "$PKG_CONFIG" && \ 30297 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm\""; } >&5 30298 ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm") 2>&5 30299 ac_status=$? 30300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30301 test $ac_status = 0; }; then 30302 pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm" 2>/dev/null` 30303 test "x$?" != "x0" && pkg_failed=yes 30304else 30305 pkg_failed=yes 30306fi 30307 else 30308 pkg_failed=untried 30309fi 30310 30311 30312 30313if test $pkg_failed = yes; then 30314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30315$as_echo "no" >&6; } 30316 30317if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30318 _pkg_short_errors_supported=yes 30319else 30320 _pkg_short_errors_supported=no 30321fi 30322 if test $_pkg_short_errors_supported = yes; then 30323 XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm" 2>&1` 30324 else 30325 XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm" 2>&1` 30326 fi 30327 # Put the nasty error message in config.log where it belongs 30328 echo "$XWINMODULES_PKG_ERRORS" >&5 30329 30330 as_fn_error $? "Package requirements (x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm) were not met: 30331 30332$XWINMODULES_PKG_ERRORS 30333 30334Consider adjusting the PKG_CONFIG_PATH environment variable if you 30335installed software in a non-standard prefix. 30336 30337Alternatively, you may set the environment variables XWINMODULES_CFLAGS 30338and XWINMODULES_LIBS to avoid the need to call pkg-config. 30339See the pkg-config man page for more details." "$LINENO" 5 30340elif test $pkg_failed = untried; then 30341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30342$as_echo "no" >&6; } 30343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30345as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30346is in your PATH or set the PKG_CONFIG environment variable to the full 30347path to pkg-config. 30348 30349Alternatively, you may set the environment variables XWINMODULES_CFLAGS 30350and XWINMODULES_LIBS to avoid the need to call pkg-config. 30351See the pkg-config man page for more details. 30352 30353To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30354See \`config.log' for more details" "$LINENO" 5; } 30355else 30356 XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS 30357 XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS 30358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30359$as_echo "yes" >&6; } 30360 30361fi 30362 30363 if test "x$WINDOWSWM" = xauto; then 30364 if test -n "$PKG_CONFIG" && \ 30365 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5 30366 ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5 30367 ac_status=$? 30368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30369 test $ac_status = 0; }; then 30370 WINDOWSWM=yes 30371else 30372 WINDOWSWM=no 30373fi 30374 fi 30375 if test "x$WINDOWSWM" = xyes ; then 30376 30377pkg_failed=no 30378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WINDOWSWM" >&5 30379$as_echo_n "checking for WINDOWSWM... " >&6; } 30380 30381if test -n "$WINDOWSWM_CFLAGS"; then 30382 pkg_cv_WINDOWSWM_CFLAGS="$WINDOWSWM_CFLAGS" 30383 elif test -n "$PKG_CONFIG"; then 30384 if test -n "$PKG_CONFIG" && \ 30385 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5 30386 ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5 30387 ac_status=$? 30388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30389 test $ac_status = 0; }; then 30390 pkg_cv_WINDOWSWM_CFLAGS=`$PKG_CONFIG --cflags "$WINDOWSWMPROTO" 2>/dev/null` 30391 test "x$?" != "x0" && pkg_failed=yes 30392else 30393 pkg_failed=yes 30394fi 30395 else 30396 pkg_failed=untried 30397fi 30398if test -n "$WINDOWSWM_LIBS"; then 30399 pkg_cv_WINDOWSWM_LIBS="$WINDOWSWM_LIBS" 30400 elif test -n "$PKG_CONFIG"; then 30401 if test -n "$PKG_CONFIG" && \ 30402 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5 30403 ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5 30404 ac_status=$? 30405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30406 test $ac_status = 0; }; then 30407 pkg_cv_WINDOWSWM_LIBS=`$PKG_CONFIG --libs "$WINDOWSWMPROTO" 2>/dev/null` 30408 test "x$?" != "x0" && pkg_failed=yes 30409else 30410 pkg_failed=yes 30411fi 30412 else 30413 pkg_failed=untried 30414fi 30415 30416 30417 30418if test $pkg_failed = yes; then 30419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30420$as_echo "no" >&6; } 30421 30422if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30423 _pkg_short_errors_supported=yes 30424else 30425 _pkg_short_errors_supported=no 30426fi 30427 if test $_pkg_short_errors_supported = yes; then 30428 WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WINDOWSWMPROTO" 2>&1` 30429 else 30430 WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WINDOWSWMPROTO" 2>&1` 30431 fi 30432 # Put the nasty error message in config.log where it belongs 30433 echo "$WINDOWSWM_PKG_ERRORS" >&5 30434 30435 as_fn_error $? "Package requirements ($WINDOWSWMPROTO) were not met: 30436 30437$WINDOWSWM_PKG_ERRORS 30438 30439Consider adjusting the PKG_CONFIG_PATH environment variable if you 30440installed software in a non-standard prefix. 30441 30442Alternatively, you may set the environment variables WINDOWSWM_CFLAGS 30443and WINDOWSWM_LIBS to avoid the need to call pkg-config. 30444See the pkg-config man page for more details." "$LINENO" 5 30445elif test $pkg_failed = untried; then 30446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30447$as_echo "no" >&6; } 30448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30450as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30451is in your PATH or set the PKG_CONFIG environment variable to the full 30452path to pkg-config. 30453 30454Alternatively, you may set the environment variables WINDOWSWM_CFLAGS 30455and WINDOWSWM_LIBS to avoid the need to call pkg-config. 30456See the pkg-config man page for more details. 30457 30458To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30459See \`config.log' for more details" "$LINENO" 5; } 30460else 30461 WINDOWSWM_CFLAGS=$pkg_cv_WINDOWSWM_CFLAGS 30462 WINDOWSWM_LIBS=$pkg_cv_WINDOWSWM_LIBS 30463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30464$as_echo "yes" >&6; } 30465 30466fi 30467 XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS $WINDOWSWM_CFLAGS" 30468 30469$as_echo "#define ROOTLESS 1" >>confdefs.h 30470 30471 fi 30472 30473 if test "x$WINDOWSDRI" = xauto; then 30474 if test -n "$PKG_CONFIG" && \ 30475 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 30476 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 30477 ac_status=$? 30478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30479 test $ac_status = 0; }; then 30480 WINDOWSDRI=yes 30481else 30482 WINDOWSDRI=no 30483fi 30484 fi 30485 if test "x$WINDOWSDRI" = xyes ; then 30486 30487pkg_failed=no 30488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WINDOWSDRI" >&5 30489$as_echo_n "checking for WINDOWSDRI... " >&6; } 30490 30491if test -n "$WINDOWSDRI_CFLAGS"; then 30492 pkg_cv_WINDOWSDRI_CFLAGS="$WINDOWSDRI_CFLAGS" 30493 elif test -n "$PKG_CONFIG"; then 30494 if test -n "$PKG_CONFIG" && \ 30495 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 30496 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 30497 ac_status=$? 30498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30499 test $ac_status = 0; }; then 30500 pkg_cv_WINDOWSDRI_CFLAGS=`$PKG_CONFIG --cflags "windowsdriproto" 2>/dev/null` 30501 test "x$?" != "x0" && pkg_failed=yes 30502else 30503 pkg_failed=yes 30504fi 30505 else 30506 pkg_failed=untried 30507fi 30508if test -n "$WINDOWSDRI_LIBS"; then 30509 pkg_cv_WINDOWSDRI_LIBS="$WINDOWSDRI_LIBS" 30510 elif test -n "$PKG_CONFIG"; then 30511 if test -n "$PKG_CONFIG" && \ 30512 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 30513 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 30514 ac_status=$? 30515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30516 test $ac_status = 0; }; then 30517 pkg_cv_WINDOWSDRI_LIBS=`$PKG_CONFIG --libs "windowsdriproto" 2>/dev/null` 30518 test "x$?" != "x0" && pkg_failed=yes 30519else 30520 pkg_failed=yes 30521fi 30522 else 30523 pkg_failed=untried 30524fi 30525 30526 30527 30528if test $pkg_failed = yes; then 30529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30530$as_echo "no" >&6; } 30531 30532if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30533 _pkg_short_errors_supported=yes 30534else 30535 _pkg_short_errors_supported=no 30536fi 30537 if test $_pkg_short_errors_supported = yes; then 30538 WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "windowsdriproto" 2>&1` 30539 else 30540 WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "windowsdriproto" 2>&1` 30541 fi 30542 # Put the nasty error message in config.log where it belongs 30543 echo "$WINDOWSDRI_PKG_ERRORS" >&5 30544 30545 as_fn_error $? "Package requirements (windowsdriproto) were not met: 30546 30547$WINDOWSDRI_PKG_ERRORS 30548 30549Consider adjusting the PKG_CONFIG_PATH environment variable if you 30550installed software in a non-standard prefix. 30551 30552Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS 30553and WINDOWSDRI_LIBS to avoid the need to call pkg-config. 30554See the pkg-config man page for more details." "$LINENO" 5 30555elif test $pkg_failed = untried; then 30556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30557$as_echo "no" >&6; } 30558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30560as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30561is in your PATH or set the PKG_CONFIG environment variable to the full 30562path to pkg-config. 30563 30564Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS 30565and WINDOWSDRI_LIBS to avoid the need to call pkg-config. 30566See the pkg-config man page for more details. 30567 30568To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30569See \`config.log' for more details" "$LINENO" 5; } 30570else 30571 WINDOWSDRI_CFLAGS=$pkg_cv_WINDOWSDRI_CFLAGS 30572 WINDOWSDRI_LIBS=$pkg_cv_WINDOWSDRI_LIBS 30573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30574$as_echo "yes" >&6; } 30575 30576fi 30577 fi 30578 30579 case $host_os in 30580 cygwin*) 30581 XWIN_SERVER_NAME=XWin 30582 30583$as_echo "#define HAS_DEVWINDOWS 1" >>confdefs.h 30584 30585 ;; 30586 mingw*) 30587 XWIN_SERVER_NAME=Xming 30588 30589$as_echo "#define RELOCATE_PROJECTROOT 1" >>confdefs.h 30590 30591 30592$as_echo "#define HAS_WINSOCK 1" >>confdefs.h 30593 30594 XWIN_SYS_LIBS="-lpthread -lws2_32" 30595 ;; 30596 esac 30597 30598 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 $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $OS_LIB" 30599 XWIN_SYS_LIBS="$XWIN_SYS_LIBS $XWINMODULES_LIBS" 30600 30601 30602 30603 30604 if test "x$DEBUGGING" = xyes; then 30605 30606$as_echo "#define CYGDEBUG 1" >>confdefs.h 30607 30608 30609$as_echo "#define CYGWINDOWING_DEBUG 1" >>confdefs.h 30610 30611 30612$as_echo "#define CYGMULTIWINDOW_DEBUG 1" >>confdefs.h 30613 30614 fi 30615 30616 30617$as_echo "#define DDXOSVERRORF 1" >>confdefs.h 30618 30619 30620$as_echo "#define DDXBEFORERESET 1" >>confdefs.h 30621 30622 30623 if test "x$XWIN" = xyes && test "x$GLX" = xyes ; then 30624 # Extract the first word of "python3", so it can be a program name with args. 30625set dummy python3; ac_word=$2 30626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30627$as_echo_n "checking for $ac_word... " >&6; } 30628if ${ac_cv_prog_PYTHON3+:} false; then : 30629 $as_echo_n "(cached) " >&6 30630else 30631 if test -n "$PYTHON3"; then 30632 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test. 30633else 30634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30635for as_dir in $PATH 30636do 30637 IFS=$as_save_IFS 30638 test -z "$as_dir" && as_dir=. 30639 for ac_exec_ext in '' $ac_executable_extensions; do 30640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30641 ac_cv_prog_PYTHON3="python3" 30642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30643 break 2 30644 fi 30645done 30646 done 30647IFS=$as_save_IFS 30648 30649fi 30650fi 30651PYTHON3=$ac_cv_prog_PYTHON3 30652if test -n "$PYTHON3"; then 30653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5 30654$as_echo "$PYTHON3" >&6; } 30655else 30656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30657$as_echo "no" >&6; } 30658fi 30659 30660 30661 if test -z "$PYTHON3"; then 30662 as_fn_error $? "python3 not found" "$LINENO" 5 30663 fi 30664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module lxml" >&5 30665$as_echo_n "checking for python module lxml... " >&6; } 30666 $PYTHON3 -c "import lxml;" 30667 if test $? -ne 0 ; then 30668 as_fn_error $? "not found" "$LINENO" 5 30669 fi 30670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30671$as_echo "yes" >&6; } 30672 if test "x$KHRONOS_SPEC_DIR" = "xauto" ; then 30673 30674pkg_failed=no 30675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for KHRONOS_OPENGL_REGISTRY" >&5 30676$as_echo_n "checking for KHRONOS_OPENGL_REGISTRY... " >&6; } 30677 30678if test -n "$KHRONOS_OPENGL_REGISTRY_CFLAGS"; then 30679 pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS="$KHRONOS_OPENGL_REGISTRY_CFLAGS" 30680 elif test -n "$PKG_CONFIG"; then 30681 if test -n "$PKG_CONFIG" && \ 30682 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5 30683 ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5 30684 ac_status=$? 30685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30686 test $ac_status = 0; }; then 30687 pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS=`$PKG_CONFIG --cflags "khronos-opengl-registry" 2>/dev/null` 30688 test "x$?" != "x0" && pkg_failed=yes 30689else 30690 pkg_failed=yes 30691fi 30692 else 30693 pkg_failed=untried 30694fi 30695if test -n "$KHRONOS_OPENGL_REGISTRY_LIBS"; then 30696 pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS="$KHRONOS_OPENGL_REGISTRY_LIBS" 30697 elif test -n "$PKG_CONFIG"; then 30698 if test -n "$PKG_CONFIG" && \ 30699 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5 30700 ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5 30701 ac_status=$? 30702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30703 test $ac_status = 0; }; then 30704 pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS=`$PKG_CONFIG --libs "khronos-opengl-registry" 2>/dev/null` 30705 test "x$?" != "x0" && pkg_failed=yes 30706else 30707 pkg_failed=yes 30708fi 30709 else 30710 pkg_failed=untried 30711fi 30712 30713 30714 30715if test $pkg_failed = yes; then 30716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30717$as_echo "no" >&6; } 30718 30719if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30720 _pkg_short_errors_supported=yes 30721else 30722 _pkg_short_errors_supported=no 30723fi 30724 if test $_pkg_short_errors_supported = yes; then 30725 KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "khronos-opengl-registry" 2>&1` 30726 else 30727 KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "khronos-opengl-registry" 2>&1` 30728 fi 30729 # Put the nasty error message in config.log where it belongs 30730 echo "$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS" >&5 30731 30732 as_fn_error $? "Package requirements (khronos-opengl-registry) were not met: 30733 30734$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS 30735 30736Consider adjusting the PKG_CONFIG_PATH environment variable if you 30737installed software in a non-standard prefix. 30738 30739Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS 30740and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config. 30741See the pkg-config man page for more details." "$LINENO" 5 30742elif test $pkg_failed = untried; then 30743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30744$as_echo "no" >&6; } 30745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30747as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30748is in your PATH or set the PKG_CONFIG environment variable to the full 30749path to pkg-config. 30750 30751Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS 30752and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config. 30753See the pkg-config man page for more details. 30754 30755To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30756See \`config.log' for more details" "$LINENO" 5; } 30757else 30758 KHRONOS_OPENGL_REGISTRY_CFLAGS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS 30759 KHRONOS_OPENGL_REGISTRY_LIBS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS 30760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30761$as_echo "yes" >&6; } 30762 30763fi 30764 KHRONOS_SPEC_DIR=`pkg-config khronos-opengl-registry --variable=specdir` 30765 fi 30766 30767 fi 30768 30769fi 30770 if test "x$XWIN" = xyes; then 30771 XWIN_TRUE= 30772 XWIN_FALSE='#' 30773else 30774 XWIN_TRUE='#' 30775 XWIN_FALSE= 30776fi 30777 30778 if test "x$XWIN" = xyes && test "x$WINDOWSWM" = xyes; then 30779 XWIN_MULTIWINDOWEXTWM_TRUE= 30780 XWIN_MULTIWINDOWEXTWM_FALSE='#' 30781else 30782 XWIN_MULTIWINDOWEXTWM_TRUE='#' 30783 XWIN_MULTIWINDOWEXTWM_FALSE= 30784fi 30785 30786 if test "x$XWIN" = xyes && test "x$GLX" = xyes; then 30787 XWIN_GLX_WINDOWS_TRUE= 30788 XWIN_GLX_WINDOWS_FALSE='#' 30789else 30790 XWIN_GLX_WINDOWS_TRUE='#' 30791 XWIN_GLX_WINDOWS_FALSE= 30792fi 30793 30794 if test "x$XWIN" = xyes && test "x$WINDOWSDRI" = xyes; then 30795 XWIN_WINDOWS_DRI_TRUE= 30796 XWIN_WINDOWS_DRI_FALSE='#' 30797else 30798 XWIN_WINDOWS_DRI_TRUE='#' 30799 XWIN_WINDOWS_DRI_FALSE= 30800fi 30801 30802 30803if test "x$XQUARTZ" = xyes; then 30804 30805$as_echo "#define XQUARTZ 1" >>confdefs.h 30806 30807 30808$as_echo "#define ROOTLESS 1" >>confdefs.h 30809 30810 30811 XQUARTZ_LIBS="$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 $PRESENT_LIB" 30812 30813 30814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xp_init in -lXplugin" >&5 30815$as_echo_n "checking for xp_init in -lXplugin... " >&6; } 30816if ${ac_cv_lib_Xplugin_xp_init+:} false; then : 30817 $as_echo_n "(cached) " >&6 30818else 30819 ac_check_lib_save_LIBS=$LIBS 30820LIBS="-lXplugin $LIBS" 30821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30822/* end confdefs.h. */ 30823 30824/* Override any GCC internal prototype to avoid an error. 30825 Use char because int might match the return type of a GCC 30826 builtin and then its argument prototype would still apply. */ 30827#ifdef __cplusplus 30828extern "C" 30829#endif 30830char xp_init (); 30831int 30832main () 30833{ 30834return xp_init (); 30835 ; 30836 return 0; 30837} 30838_ACEOF 30839if ac_fn_c_try_link "$LINENO"; then : 30840 ac_cv_lib_Xplugin_xp_init=yes 30841else 30842 ac_cv_lib_Xplugin_xp_init=no 30843fi 30844rm -f core conftest.err conftest.$ac_objext \ 30845 conftest$ac_exeext conftest.$ac_ext 30846LIBS=$ac_check_lib_save_LIBS 30847fi 30848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xplugin_xp_init" >&5 30849$as_echo "$ac_cv_lib_Xplugin_xp_init" >&6; } 30850if test "x$ac_cv_lib_Xplugin_xp_init" = xyes; then : 30851 : 30852fi 30853 30854 30855 CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA" 30856 30857 30858pkg_failed=no 30859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPBPROXY" >&5 30860$as_echo_n "checking for XPBPROXY... " >&6; } 30861 30862if test -n "$XPBPROXY_CFLAGS"; then 30863 pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS" 30864 elif test -n "$PKG_CONFIG"; then 30865 if test -n "$PKG_CONFIG" && \ 30866 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5 30867 ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5 30868 ac_status=$? 30869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30870 test $ac_status = 0; }; then 30871 pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null` 30872 test "x$?" != "x0" && pkg_failed=yes 30873else 30874 pkg_failed=yes 30875fi 30876 else 30877 pkg_failed=untried 30878fi 30879if test -n "$XPBPROXY_LIBS"; then 30880 pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS" 30881 elif test -n "$PKG_CONFIG"; then 30882 if test -n "$PKG_CONFIG" && \ 30883 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5 30884 ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5 30885 ac_status=$? 30886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30887 test $ac_status = 0; }; then 30888 pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null` 30889 test "x$?" != "x0" && pkg_failed=yes 30890else 30891 pkg_failed=yes 30892fi 30893 else 30894 pkg_failed=untried 30895fi 30896 30897 30898 30899if test $pkg_failed = yes; then 30900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30901$as_echo "no" >&6; } 30902 30903if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30904 _pkg_short_errors_supported=yes 30905else 30906 _pkg_short_errors_supported=no 30907fi 30908 if test $_pkg_short_errors_supported = yes; then 30909 XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1` 30910 else 30911 XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1` 30912 fi 30913 # Put the nasty error message in config.log where it belongs 30914 echo "$XPBPROXY_PKG_ERRORS" >&5 30915 30916 as_fn_error $? "Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met: 30917 30918$XPBPROXY_PKG_ERRORS 30919 30920Consider adjusting the PKG_CONFIG_PATH environment variable if you 30921installed software in a non-standard prefix. 30922 30923Alternatively, you may set the environment variables XPBPROXY_CFLAGS 30924and XPBPROXY_LIBS to avoid the need to call pkg-config. 30925See the pkg-config man page for more details." "$LINENO" 5 30926elif test $pkg_failed = untried; then 30927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30928$as_echo "no" >&6; } 30929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30931as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30932is in your PATH or set the PKG_CONFIG environment variable to the full 30933path to pkg-config. 30934 30935Alternatively, you may set the environment variables XPBPROXY_CFLAGS 30936and XPBPROXY_LIBS to avoid the need to call pkg-config. 30937See the pkg-config man page for more details. 30938 30939To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30940See \`config.log' for more details" "$LINENO" 5; } 30941else 30942 XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS 30943 XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS 30944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30945$as_echo "yes" >&6; } 30946 30947fi 30948 30949 if test "x$XQUARTZ_SPARKLE" = xyes ; then 30950 30951$as_echo "#define XQUARTZ_SPARKLE 1" >>confdefs.h 30952 30953 fi 30954 30955 if test "x$STANDALONE_XPBPROXY" = xyes ; then 30956 30957$as_echo "#define STANDALONE_XPBPROXY 1" >>confdefs.h 30958 30959 fi 30960fi 30961 30962 if test "x$XQUARTZ" = xyes -o "x$XWIN" = xyes ; then 30963 PSEUDORAMIX_TRUE= 30964 PSEUDORAMIX_FALSE='#' 30965else 30966 PSEUDORAMIX_TRUE='#' 30967 PSEUDORAMIX_FALSE= 30968fi 30969 30970 30971# Support for objc in autotools is minimal and not documented. 30972OBJC='$(CC)' 30973OBJCLD='$(CCLD)' 30974OBJCLINK='$(LINK)' 30975OBJCFLAGS='$(CFLAGS)' 30976 30977 30978 30979 30980# internal, undocumented automake func follows :( 30981 30982depcc="$OBJC" am_compiler_list='gcc3 gcc' 30983 30984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 30985$as_echo_n "checking dependency style of $depcc... " >&6; } 30986if ${am_cv_OBJC_dependencies_compiler_type+:} false; then : 30987 $as_echo_n "(cached) " >&6 30988else 30989 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 30990 # We make a subdir and do the tests there. Otherwise we can end up 30991 # making bogus files that we don't know about and never remove. For 30992 # instance it was reported that on HP-UX the gcc test will end up 30993 # making a dummy file named 'D' -- because '-MD' means "put the output 30994 # in D". 30995 rm -rf conftest.dir 30996 mkdir conftest.dir 30997 # Copy depcomp to subdir because otherwise we won't find it if we're 30998 # using a relative directory. 30999 cp "$am_depcomp" conftest.dir 31000 cd conftest.dir 31001 # We will build objects and dependencies in a subdirectory because 31002 # it helps to detect inapplicable dependency modes. For instance 31003 # both Tru64's cc and ICC support -MD to output dependencies as a 31004 # side effect of compilation, but ICC will put the dependencies in 31005 # the current directory while Tru64 will put them in the object 31006 # directory. 31007 mkdir sub 31008 31009 am_cv_OBJC_dependencies_compiler_type=none 31010 if test "$am_compiler_list" = ""; then 31011 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 31012 fi 31013 am__universal=false 31014 31015 31016 for depmode in $am_compiler_list; do 31017 # Setup a source with many dependencies, because some compilers 31018 # like to wrap large dependency lists on column 80 (with \), and 31019 # we should not choose a depcomp mode which is confused by this. 31020 # 31021 # We need to recreate these files for each test, as the compiler may 31022 # overwrite some of them when testing with obscure command lines. 31023 # This happens at least with the AIX C compiler. 31024 : > sub/conftest.c 31025 for i in 1 2 3 4 5 6; do 31026 echo '#include "conftst'$i'.h"' >> sub/conftest.c 31027 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 31028 # Solaris 10 /bin/sh. 31029 echo '/* dummy */' > sub/conftst$i.h 31030 done 31031 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 31032 31033 # We check with '-c' and '-o' for the sake of the "dashmstdout" 31034 # mode. It turns out that the SunPro C++ compiler does not properly 31035 # handle '-M -o', and we need to detect this. Also, some Intel 31036 # versions had trouble with output in subdirs. 31037 am__obj=sub/conftest.${OBJEXT-o} 31038 am__minus_obj="-o $am__obj" 31039 case $depmode in 31040 gcc) 31041 # This depmode causes a compiler race in universal mode. 31042 test "$am__universal" = false || continue 31043 ;; 31044 nosideeffect) 31045 # After this tag, mechanisms are not by side-effect, so they'll 31046 # only be used when explicitly requested. 31047 if test "x$enable_dependency_tracking" = xyes; then 31048 continue 31049 else 31050 break 31051 fi 31052 ;; 31053 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 31054 # This compiler won't grok '-c -o', but also, the minuso test has 31055 # not run yet. These depmodes are late enough in the game, and 31056 # so weak that their functioning should not be impacted. 31057 am__obj=conftest.${OBJEXT-o} 31058 am__minus_obj= 31059 ;; 31060 none) break ;; 31061 esac 31062 if depmode=$depmode \ 31063 source=sub/conftest.c object=$am__obj \ 31064 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 31065 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 31066 >/dev/null 2>conftest.err && 31067 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 31068 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 31069 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 31070 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 31071 # icc doesn't choke on unknown options, it will just issue warnings 31072 # or remarks (even with -Werror). So we grep stderr for any message 31073 # that says an option was ignored or not supported. 31074 # When given -MP, icc 7.0 and 7.1 complain thusly: 31075 # icc: Command line warning: ignoring option '-M'; no argument required 31076 # The diagnosis changed in icc 8.0: 31077 # icc: Command line remark: option '-MP' not supported 31078 if (grep 'ignoring option' conftest.err || 31079 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 31080 am_cv_OBJC_dependencies_compiler_type=$depmode 31081 break 31082 fi 31083 fi 31084 done 31085 31086 cd .. 31087 rm -rf conftest.dir 31088else 31089 am_cv_OBJC_dependencies_compiler_type=none 31090fi 31091 31092fi 31093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 31094$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } 31095OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type 31096 31097 if 31098 test "x$enable_dependency_tracking" != xno \ 31099 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then 31100 am__fastdepOBJC_TRUE= 31101 am__fastdepOBJC_FALSE='#' 31102else 31103 am__fastdepOBJC_TRUE='#' 31104 am__fastdepOBJC_FALSE= 31105fi 31106 31107 31108 if test "x$XQUARTZ" = xyes; then 31109 XQUARTZ_TRUE= 31110 XQUARTZ_FALSE='#' 31111else 31112 XQUARTZ_TRUE='#' 31113 XQUARTZ_FALSE= 31114fi 31115 31116 if test "x$XQUARTZ_SPARKLE" != "xno"; then 31117 XQUARTZ_SPARKLE_TRUE= 31118 XQUARTZ_SPARKLE_FALSE='#' 31119else 31120 XQUARTZ_SPARKLE_TRUE='#' 31121 XQUARTZ_SPARKLE_FALSE= 31122fi 31123 31124 if test "x$STANDALONE_XPBPROXY" = xyes; then 31125 STANDALONE_XPBPROXY_TRUE= 31126 STANDALONE_XPBPROXY_FALSE='#' 31127else 31128 STANDALONE_XPBPROXY_TRUE='#' 31129 STANDALONE_XPBPROXY_FALSE= 31130fi 31131 31132 31133 31134pkg_failed=no 31135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXMODULES" >&5 31136$as_echo_n "checking for DMXMODULES... " >&6; } 31137 31138if test -n "$DMXMODULES_CFLAGS"; then 31139 pkg_cv_DMXMODULES_CFLAGS="$DMXMODULES_CFLAGS" 31140 elif test -n "$PKG_CONFIG"; then 31141 if test -n "$PKG_CONFIG" && \ 31142 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu \$LIBXEXT x11 >= 1.6 xrender xfixes \$LIBXI \$DMXPROTO xau \$XDMCP_MODULES\""; } >&5 31143 ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5 31144 ac_status=$? 31145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31146 test $ac_status = 0; }; then 31147 pkg_cv_DMXMODULES_CFLAGS=`$PKG_CONFIG --cflags "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null` 31148 test "x$?" != "x0" && pkg_failed=yes 31149else 31150 pkg_failed=yes 31151fi 31152 else 31153 pkg_failed=untried 31154fi 31155if test -n "$DMXMODULES_LIBS"; then 31156 pkg_cv_DMXMODULES_LIBS="$DMXMODULES_LIBS" 31157 elif test -n "$PKG_CONFIG"; then 31158 if test -n "$PKG_CONFIG" && \ 31159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu \$LIBXEXT x11 >= 1.6 xrender xfixes \$LIBXI \$DMXPROTO xau \$XDMCP_MODULES\""; } >&5 31160 ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5 31161 ac_status=$? 31162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31163 test $ac_status = 0; }; then 31164 pkg_cv_DMXMODULES_LIBS=`$PKG_CONFIG --libs "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null` 31165 test "x$?" != "x0" && pkg_failed=yes 31166else 31167 pkg_failed=yes 31168fi 31169 else 31170 pkg_failed=untried 31171fi 31172 31173 31174 31175if test $pkg_failed = yes; then 31176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31177$as_echo "no" >&6; } 31178 31179if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31180 _pkg_short_errors_supported=yes 31181else 31182 _pkg_short_errors_supported=no 31183fi 31184 if test $_pkg_short_errors_supported = yes; then 31185 DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1` 31186 else 31187 DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1` 31188 fi 31189 # Put the nasty error message in config.log where it belongs 31190 echo "$DMXMODULES_PKG_ERRORS" >&5 31191 31192 have_dmx=no 31193elif test $pkg_failed = untried; then 31194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31195$as_echo "no" >&6; } 31196 have_dmx=no 31197else 31198 DMXMODULES_CFLAGS=$pkg_cv_DMXMODULES_CFLAGS 31199 DMXMODULES_LIBS=$pkg_cv_DMXMODULES_LIBS 31200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31201$as_echo "yes" >&6; } 31202 31203pkg_failed=no 31204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMXCONFIG_DEP" >&5 31205$as_echo_n "checking for XDMXCONFIG_DEP... " >&6; } 31206 31207if test -n "$XDMXCONFIG_DEP_CFLAGS"; then 31208 pkg_cv_XDMXCONFIG_DEP_CFLAGS="$XDMXCONFIG_DEP_CFLAGS" 31209 elif test -n "$PKG_CONFIG"; then 31210 if test -n "$PKG_CONFIG" && \ 31211 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5 31212 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5 31213 ac_status=$? 31214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31215 test $ac_status = 0; }; then 31216 pkg_cv_XDMXCONFIG_DEP_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt xpm x11" 2>/dev/null` 31217 test "x$?" != "x0" && pkg_failed=yes 31218else 31219 pkg_failed=yes 31220fi 31221 else 31222 pkg_failed=untried 31223fi 31224if test -n "$XDMXCONFIG_DEP_LIBS"; then 31225 pkg_cv_XDMXCONFIG_DEP_LIBS="$XDMXCONFIG_DEP_LIBS" 31226 elif test -n "$PKG_CONFIG"; then 31227 if test -n "$PKG_CONFIG" && \ 31228 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5 31229 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5 31230 ac_status=$? 31231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31232 test $ac_status = 0; }; then 31233 pkg_cv_XDMXCONFIG_DEP_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt xpm x11" 2>/dev/null` 31234 test "x$?" != "x0" && pkg_failed=yes 31235else 31236 pkg_failed=yes 31237fi 31238 else 31239 pkg_failed=untried 31240fi 31241 31242 31243 31244if test $pkg_failed = yes; then 31245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31246$as_echo "no" >&6; } 31247 31248if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31249 _pkg_short_errors_supported=yes 31250else 31251 _pkg_short_errors_supported=no 31252fi 31253 if test $_pkg_short_errors_supported = yes; then 31254 XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt xpm x11" 2>&1` 31255 else 31256 XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt xpm x11" 2>&1` 31257 fi 31258 # Put the nasty error message in config.log where it belongs 31259 echo "$XDMXCONFIG_DEP_PKG_ERRORS" >&5 31260 31261 have_dmx=no 31262elif test $pkg_failed = untried; then 31263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31264$as_echo "no" >&6; } 31265 have_dmx=no 31266else 31267 XDMXCONFIG_DEP_CFLAGS=$pkg_cv_XDMXCONFIG_DEP_CFLAGS 31268 XDMXCONFIG_DEP_LIBS=$pkg_cv_XDMXCONFIG_DEP_LIBS 31269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31270$as_echo "yes" >&6; } 31271 have_dmx=yes 31272fi 31273fi 31274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xdmx DDX" >&5 31275$as_echo_n "checking whether to build Xdmx DDX... " >&6; } 31276if test "x$DMX" = xauto; then 31277 DMX="$have_dmx" 31278 case $host_os in 31279 cygwin*) DMX="no" ;; 31280 mingw*) DMX="no" ;; 31281 darwin*) DMX="no" ;; 31282 esac 31283fi 31284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMX" >&5 31285$as_echo "$DMX" >&6; } 31286 if test "x$DMX" = xyes; then 31287 DMX_TRUE= 31288 DMX_FALSE='#' 31289else 31290 DMX_TRUE='#' 31291 DMX_FALSE= 31292fi 31293 31294 31295if test "x$DMX" = xyes; then 31296 if test "x$have_dmx" = xno; then 31297 as_fn_error $? "Xdmx build explicitly requested, but required 31298 modules not found." "$LINENO" 5 31299 fi 31300 DMX_INCLUDES="$XEXT_INC $RENDER_INC $RECORD_INC" 31301 XDMX_CFLAGS="$DMXMODULES_CFLAGS" 31302 XDMX_LIBS="$FB_LIB $MI_LIB $XEXT_LIB $RENDER_LIB $RECORD_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_SHADOW_LIB $MIEXT_DAMAGE_LIB $COMPOSITE_LIB $DAMAGE_LIB $MAIN_LIB $DIX_LIB $RANDR_LIB $RENDER_LIB $CONFIG_LIB $OS_LIB $FIXES_LIB" 31303 XDMX_SYS_LIBS="$DMXMODULES_LIBS" 31304 31305 31306 31307 31308 ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default" 31309if test "x$ac_cv_header_linux_input_h" = xyes; then : 31310 DMX_BUILD_USB="yes" 31311else 31312 DMX_BUILD_USB="no" 31313fi 31314 31315 31316 31317 31318 31319pkg_failed=no 31320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXEXAMPLES_DEP" >&5 31321$as_echo_n "checking for DMXEXAMPLES_DEP... " >&6; } 31322 31323if test -n "$DMXEXAMPLES_DEP_CFLAGS"; then 31324 pkg_cv_DMXEXAMPLES_DEP_CFLAGS="$DMXEXAMPLES_DEP_CFLAGS" 31325 elif test -n "$PKG_CONFIG"; then 31326 if test -n "$PKG_CONFIG" && \ 31327 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5 31328 ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5 31329 ac_status=$? 31330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31331 test $ac_status = 0; }; then 31332 pkg_cv_DMXEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXEXT x11" 2>/dev/null` 31333 test "x$?" != "x0" && pkg_failed=yes 31334else 31335 pkg_failed=yes 31336fi 31337 else 31338 pkg_failed=untried 31339fi 31340if test -n "$DMXEXAMPLES_DEP_LIBS"; then 31341 pkg_cv_DMXEXAMPLES_DEP_LIBS="$DMXEXAMPLES_DEP_LIBS" 31342 elif test -n "$PKG_CONFIG"; then 31343 if test -n "$PKG_CONFIG" && \ 31344 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5 31345 ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5 31346 ac_status=$? 31347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31348 test $ac_status = 0; }; then 31349 pkg_cv_DMXEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXEXT x11" 2>/dev/null` 31350 test "x$?" != "x0" && pkg_failed=yes 31351else 31352 pkg_failed=yes 31353fi 31354 else 31355 pkg_failed=untried 31356fi 31357 31358 31359 31360if test $pkg_failed = yes; then 31361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31362$as_echo "no" >&6; } 31363 31364if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31365 _pkg_short_errors_supported=yes 31366else 31367 _pkg_short_errors_supported=no 31368fi 31369 if test $_pkg_short_errors_supported = yes; then 31370 DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX $LIBXEXT x11" 2>&1` 31371 else 31372 DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX $LIBXEXT x11" 2>&1` 31373 fi 31374 # Put the nasty error message in config.log where it belongs 31375 echo "$DMXEXAMPLES_DEP_PKG_ERRORS" >&5 31376 31377 as_fn_error $? "Package requirements ($LIBDMX $LIBXEXT x11) were not met: 31378 31379$DMXEXAMPLES_DEP_PKG_ERRORS 31380 31381Consider adjusting the PKG_CONFIG_PATH environment variable if you 31382installed software in a non-standard prefix. 31383 31384Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS 31385and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31386See the pkg-config man page for more details." "$LINENO" 5 31387elif test $pkg_failed = untried; then 31388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31389$as_echo "no" >&6; } 31390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31392as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31393is in your PATH or set the PKG_CONFIG environment variable to the full 31394path to pkg-config. 31395 31396Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS 31397and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31398See the pkg-config man page for more details. 31399 31400To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31401See \`config.log' for more details" "$LINENO" 5; } 31402else 31403 DMXEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXEXAMPLES_DEP_CFLAGS 31404 DMXEXAMPLES_DEP_LIBS=$pkg_cv_DMXEXAMPLES_DEP_LIBS 31405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31406$as_echo "yes" >&6; } 31407 31408fi 31409 31410 31411pkg_failed=no 31412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXMUEXAMPLES_DEP" >&5 31413$as_echo_n "checking for DMXXMUEXAMPLES_DEP... " >&6; } 31414 31415if test -n "$DMXXMUEXAMPLES_DEP_CFLAGS"; then 31416 pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS="$DMXXMUEXAMPLES_DEP_CFLAGS" 31417 elif test -n "$PKG_CONFIG"; then 31418 if test -n "$PKG_CONFIG" && \ 31419 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5 31420 ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5 31421 ac_status=$? 31422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31423 test $ac_status = 0; }; then 31424 pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null` 31425 test "x$?" != "x0" && pkg_failed=yes 31426else 31427 pkg_failed=yes 31428fi 31429 else 31430 pkg_failed=untried 31431fi 31432if test -n "$DMXXMUEXAMPLES_DEP_LIBS"; then 31433 pkg_cv_DMXXMUEXAMPLES_DEP_LIBS="$DMXXMUEXAMPLES_DEP_LIBS" 31434 elif test -n "$PKG_CONFIG"; then 31435 if test -n "$PKG_CONFIG" && \ 31436 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5 31437 ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5 31438 ac_status=$? 31439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31440 test $ac_status = 0; }; then 31441 pkg_cv_DMXXMUEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null` 31442 test "x$?" != "x0" && pkg_failed=yes 31443else 31444 pkg_failed=yes 31445fi 31446 else 31447 pkg_failed=untried 31448fi 31449 31450 31451 31452if test $pkg_failed = yes; then 31453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31454$as_echo "no" >&6; } 31455 31456if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31457 _pkg_short_errors_supported=yes 31458else 31459 _pkg_short_errors_supported=no 31460fi 31461 if test $_pkg_short_errors_supported = yes; then 31462 DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX xmu $LIBXEXT x11" 2>&1` 31463 else 31464 DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX xmu $LIBXEXT x11" 2>&1` 31465 fi 31466 # Put the nasty error message in config.log where it belongs 31467 echo "$DMXXMUEXAMPLES_DEP_PKG_ERRORS" >&5 31468 31469 as_fn_error $? "Package requirements ($LIBDMX xmu $LIBXEXT x11) were not met: 31470 31471$DMXXMUEXAMPLES_DEP_PKG_ERRORS 31472 31473Consider adjusting the PKG_CONFIG_PATH environment variable if you 31474installed software in a non-standard prefix. 31475 31476Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS 31477and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31478See the pkg-config man page for more details." "$LINENO" 5 31479elif test $pkg_failed = untried; then 31480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31481$as_echo "no" >&6; } 31482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31484as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31485is in your PATH or set the PKG_CONFIG environment variable to the full 31486path to pkg-config. 31487 31488Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS 31489and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31490See the pkg-config man page for more details. 31491 31492To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31493See \`config.log' for more details" "$LINENO" 5; } 31494else 31495 DMXXMUEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS 31496 DMXXMUEXAMPLES_DEP_LIBS=$pkg_cv_DMXXMUEXAMPLES_DEP_LIBS 31497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31498$as_echo "yes" >&6; } 31499 31500fi 31501 31502 31503pkg_failed=no 31504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXIEXAMPLES_DEP" >&5 31505$as_echo_n "checking for DMXXIEXAMPLES_DEP... " >&6; } 31506 31507if test -n "$DMXXIEXAMPLES_DEP_CFLAGS"; then 31508 pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS="$DMXXIEXAMPLES_DEP_CFLAGS" 31509 elif test -n "$PKG_CONFIG"; then 31510 if test -n "$PKG_CONFIG" && \ 31511 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5 31512 ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5 31513 ac_status=$? 31514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31515 test $ac_status = 0; }; then 31516 pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null` 31517 test "x$?" != "x0" && pkg_failed=yes 31518else 31519 pkg_failed=yes 31520fi 31521 else 31522 pkg_failed=untried 31523fi 31524if test -n "$DMXXIEXAMPLES_DEP_LIBS"; then 31525 pkg_cv_DMXXIEXAMPLES_DEP_LIBS="$DMXXIEXAMPLES_DEP_LIBS" 31526 elif test -n "$PKG_CONFIG"; then 31527 if test -n "$PKG_CONFIG" && \ 31528 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5 31529 ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5 31530 ac_status=$? 31531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31532 test $ac_status = 0; }; then 31533 pkg_cv_DMXXIEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null` 31534 test "x$?" != "x0" && pkg_failed=yes 31535else 31536 pkg_failed=yes 31537fi 31538 else 31539 pkg_failed=untried 31540fi 31541 31542 31543 31544if test $pkg_failed = yes; then 31545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31546$as_echo "no" >&6; } 31547 31548if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31549 _pkg_short_errors_supported=yes 31550else 31551 _pkg_short_errors_supported=no 31552fi 31553 if test $_pkg_short_errors_supported = yes; then 31554 DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1` 31555 else 31556 DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1` 31557 fi 31558 # Put the nasty error message in config.log where it belongs 31559 echo "$DMXXIEXAMPLES_DEP_PKG_ERRORS" >&5 31560 31561 as_fn_error $? "Package requirements ($LIBDMX $LIBXI $LIBXEXT x11) were not met: 31562 31563$DMXXIEXAMPLES_DEP_PKG_ERRORS 31564 31565Consider adjusting the PKG_CONFIG_PATH environment variable if you 31566installed software in a non-standard prefix. 31567 31568Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS 31569and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31570See the pkg-config man page for more details." "$LINENO" 5 31571elif test $pkg_failed = untried; then 31572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31573$as_echo "no" >&6; } 31574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31576as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31577is in your PATH or set the PKG_CONFIG environment variable to the full 31578path to pkg-config. 31579 31580Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS 31581and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31582See the pkg-config man page for more details. 31583 31584To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31585See \`config.log' for more details" "$LINENO" 5; } 31586else 31587 DMXXIEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS 31588 DMXXIEXAMPLES_DEP_LIBS=$pkg_cv_DMXXIEXAMPLES_DEP_LIBS 31589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31590$as_echo "yes" >&6; } 31591 31592fi 31593 31594 31595pkg_failed=no 31596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTSTEXAMPLES_DEP" >&5 31597$as_echo_n "checking for XTSTEXAMPLES_DEP... " >&6; } 31598 31599if test -n "$XTSTEXAMPLES_DEP_CFLAGS"; then 31600 pkg_cv_XTSTEXAMPLES_DEP_CFLAGS="$XTSTEXAMPLES_DEP_CFLAGS" 31601 elif test -n "$PKG_CONFIG"; then 31602 if test -n "$PKG_CONFIG" && \ 31603 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5 31604 ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5 31605 ac_status=$? 31606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31607 test $ac_status = 0; }; then 31608 pkg_cv_XTSTEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXTST $LIBXEXT x11" 2>/dev/null` 31609 test "x$?" != "x0" && pkg_failed=yes 31610else 31611 pkg_failed=yes 31612fi 31613 else 31614 pkg_failed=untried 31615fi 31616if test -n "$XTSTEXAMPLES_DEP_LIBS"; then 31617 pkg_cv_XTSTEXAMPLES_DEP_LIBS="$XTSTEXAMPLES_DEP_LIBS" 31618 elif test -n "$PKG_CONFIG"; then 31619 if test -n "$PKG_CONFIG" && \ 31620 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5 31621 ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5 31622 ac_status=$? 31623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31624 test $ac_status = 0; }; then 31625 pkg_cv_XTSTEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXTST $LIBXEXT x11" 2>/dev/null` 31626 test "x$?" != "x0" && pkg_failed=yes 31627else 31628 pkg_failed=yes 31629fi 31630 else 31631 pkg_failed=untried 31632fi 31633 31634 31635 31636if test $pkg_failed = yes; then 31637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31638$as_echo "no" >&6; } 31639 31640if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31641 _pkg_short_errors_supported=yes 31642else 31643 _pkg_short_errors_supported=no 31644fi 31645 if test $_pkg_short_errors_supported = yes; then 31646 XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXTST $LIBXEXT x11" 2>&1` 31647 else 31648 XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXTST $LIBXEXT x11" 2>&1` 31649 fi 31650 # Put the nasty error message in config.log where it belongs 31651 echo "$XTSTEXAMPLES_DEP_PKG_ERRORS" >&5 31652 31653 as_fn_error $? "Package requirements ($LIBXTST $LIBXEXT x11) were not met: 31654 31655$XTSTEXAMPLES_DEP_PKG_ERRORS 31656 31657Consider adjusting the PKG_CONFIG_PATH environment variable if you 31658installed software in a non-standard prefix. 31659 31660Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS 31661and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31662See the pkg-config man page for more details." "$LINENO" 5 31663elif test $pkg_failed = untried; then 31664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31665$as_echo "no" >&6; } 31666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31668as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31669is in your PATH or set the PKG_CONFIG environment variable to the full 31670path to pkg-config. 31671 31672Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS 31673and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31674See the pkg-config man page for more details. 31675 31676To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31677See \`config.log' for more details" "$LINENO" 5; } 31678else 31679 XTSTEXAMPLES_DEP_CFLAGS=$pkg_cv_XTSTEXAMPLES_DEP_CFLAGS 31680 XTSTEXAMPLES_DEP_LIBS=$pkg_cv_XTSTEXAMPLES_DEP_LIBS 31681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31682$as_echo "yes" >&6; } 31683 31684fi 31685 31686 31687pkg_failed=no 31688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRESEXAMPLES_DEP" >&5 31689$as_echo_n "checking for XRESEXAMPLES_DEP... " >&6; } 31690 31691if test -n "$XRESEXAMPLES_DEP_CFLAGS"; then 31692 pkg_cv_XRESEXAMPLES_DEP_CFLAGS="$XRESEXAMPLES_DEP_CFLAGS" 31693 elif test -n "$PKG_CONFIG"; then 31694 if test -n "$PKG_CONFIG" && \ 31695 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\""; } >&5 31696 ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5 31697 ac_status=$? 31698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31699 test $ac_status = 0; }; then 31700 pkg_cv_XRESEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "xres $LIBXEXT x11" 2>/dev/null` 31701 test "x$?" != "x0" && pkg_failed=yes 31702else 31703 pkg_failed=yes 31704fi 31705 else 31706 pkg_failed=untried 31707fi 31708if test -n "$XRESEXAMPLES_DEP_LIBS"; then 31709 pkg_cv_XRESEXAMPLES_DEP_LIBS="$XRESEXAMPLES_DEP_LIBS" 31710 elif test -n "$PKG_CONFIG"; then 31711 if test -n "$PKG_CONFIG" && \ 31712 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\""; } >&5 31713 ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5 31714 ac_status=$? 31715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31716 test $ac_status = 0; }; then 31717 pkg_cv_XRESEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "xres $LIBXEXT x11" 2>/dev/null` 31718 test "x$?" != "x0" && pkg_failed=yes 31719else 31720 pkg_failed=yes 31721fi 31722 else 31723 pkg_failed=untried 31724fi 31725 31726 31727 31728if test $pkg_failed = yes; then 31729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31730$as_echo "no" >&6; } 31731 31732if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31733 _pkg_short_errors_supported=yes 31734else 31735 _pkg_short_errors_supported=no 31736fi 31737 if test $_pkg_short_errors_supported = yes; then 31738 XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xres $LIBXEXT x11" 2>&1` 31739 else 31740 XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xres $LIBXEXT x11" 2>&1` 31741 fi 31742 # Put the nasty error message in config.log where it belongs 31743 echo "$XRESEXAMPLES_DEP_PKG_ERRORS" >&5 31744 31745 as_fn_error $? "Package requirements (xres $LIBXEXT x11) were not met: 31746 31747$XRESEXAMPLES_DEP_PKG_ERRORS 31748 31749Consider adjusting the PKG_CONFIG_PATH environment variable if you 31750installed software in a non-standard prefix. 31751 31752Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS 31753and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31754See the pkg-config man page for more details." "$LINENO" 5 31755elif test $pkg_failed = untried; then 31756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31757$as_echo "no" >&6; } 31758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31760as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31761is in your PATH or set the PKG_CONFIG environment variable to the full 31762path to pkg-config. 31763 31764Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS 31765and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31766See the pkg-config man page for more details. 31767 31768To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31769See \`config.log' for more details" "$LINENO" 5; } 31770else 31771 XRESEXAMPLES_DEP_CFLAGS=$pkg_cv_XRESEXAMPLES_DEP_CFLAGS 31772 XRESEXAMPLES_DEP_LIBS=$pkg_cv_XRESEXAMPLES_DEP_LIBS 31773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31774$as_echo "yes" >&6; } 31775 31776fi 31777 31778 31779pkg_failed=no 31780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11EXAMPLES_DEP" >&5 31781$as_echo_n "checking for X11EXAMPLES_DEP... " >&6; } 31782 31783if test -n "$X11EXAMPLES_DEP_CFLAGS"; then 31784 pkg_cv_X11EXAMPLES_DEP_CFLAGS="$X11EXAMPLES_DEP_CFLAGS" 31785 elif test -n "$PKG_CONFIG"; then 31786 if test -n "$PKG_CONFIG" && \ 31787 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5 31788 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5 31789 ac_status=$? 31790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31791 test $ac_status = 0; }; then 31792 pkg_cv_X11EXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11" 2>/dev/null` 31793 test "x$?" != "x0" && pkg_failed=yes 31794else 31795 pkg_failed=yes 31796fi 31797 else 31798 pkg_failed=untried 31799fi 31800if test -n "$X11EXAMPLES_DEP_LIBS"; then 31801 pkg_cv_X11EXAMPLES_DEP_LIBS="$X11EXAMPLES_DEP_LIBS" 31802 elif test -n "$PKG_CONFIG"; then 31803 if test -n "$PKG_CONFIG" && \ 31804 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5 31805 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5 31806 ac_status=$? 31807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31808 test $ac_status = 0; }; then 31809 pkg_cv_X11EXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11" 2>/dev/null` 31810 test "x$?" != "x0" && pkg_failed=yes 31811else 31812 pkg_failed=yes 31813fi 31814 else 31815 pkg_failed=untried 31816fi 31817 31818 31819 31820if test $pkg_failed = yes; then 31821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31822$as_echo "no" >&6; } 31823 31824if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31825 _pkg_short_errors_supported=yes 31826else 31827 _pkg_short_errors_supported=no 31828fi 31829 if test $_pkg_short_errors_supported = yes; then 31830 X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11" 2>&1` 31831 else 31832 X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11" 2>&1` 31833 fi 31834 # Put the nasty error message in config.log where it belongs 31835 echo "$X11EXAMPLES_DEP_PKG_ERRORS" >&5 31836 31837 as_fn_error $? "Package requirements ($LIBXEXT x11) were not met: 31838 31839$X11EXAMPLES_DEP_PKG_ERRORS 31840 31841Consider adjusting the PKG_CONFIG_PATH environment variable if you 31842installed software in a non-standard prefix. 31843 31844Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS 31845and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31846See the pkg-config man page for more details." "$LINENO" 5 31847elif test $pkg_failed = untried; then 31848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31849$as_echo "no" >&6; } 31850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31852as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31853is in your PATH or set the PKG_CONFIG environment variable to the full 31854path to pkg-config. 31855 31856Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS 31857and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31858See the pkg-config man page for more details. 31859 31860To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31861See \`config.log' for more details" "$LINENO" 5; } 31862else 31863 X11EXAMPLES_DEP_CFLAGS=$pkg_cv_X11EXAMPLES_DEP_CFLAGS 31864 X11EXAMPLES_DEP_LIBS=$pkg_cv_X11EXAMPLES_DEP_LIBS 31865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31866$as_echo "yes" >&6; } 31867 31868fi 31869 31870 31871fi 31872 if test "x$DMX_BUILD_USB" = xyes; then 31873 DMX_BUILD_USB_TRUE= 31874 DMX_BUILD_USB_FALSE='#' 31875else 31876 DMX_BUILD_USB_TRUE='#' 31877 DMX_BUILD_USB_FALSE= 31878fi 31879 31880 31881 31882XEPHYR_LIBS= 31883XEPHYR_INCS= 31884 31885 if test x$KDRIVE = xyes; then 31886 KDRIVE_TRUE= 31887 KDRIVE_FALSE='#' 31888else 31889 KDRIVE_TRUE='#' 31890 KDRIVE_FALSE= 31891fi 31892 31893 31894if test "$KDRIVE" = yes; then 31895 XEPHYR_REQUIRED_LIBS="xau xdmcp xcb xcb-shape xcb-render xcb-renderutil xcb-aux xcb-image xcb-icccm xcb-shm >= 1.9.3 xcb-keysyms xcb-randr xcb-xkb" 31896 if test "x$XV" = xyes; then 31897 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xcb-xv" 31898 fi 31899 if test "x$DRI" = xyes && test "x$GLX" = xyes; then 31900 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBDRM xcb-glx xcb-xf86dri > 1.6" 31901 fi 31902 if test "x$GLAMOR" = xyes; then 31903 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS x11-xcb" 31904 fi 31905 31906 if test "x$XEPHYR" = xauto; then 31907 31908pkg_failed=no 31909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5 31910$as_echo_n "checking for XEPHYR... " >&6; } 31911 31912if test -n "$XEPHYR_CFLAGS"; then 31913 pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS" 31914 elif test -n "$PKG_CONFIG"; then 31915 if test -n "$PKG_CONFIG" && \ 31916 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 31917 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 31918 ac_status=$? 31919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31920 test $ac_status = 0; }; then 31921 pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 31922 test "x$?" != "x0" && pkg_failed=yes 31923else 31924 pkg_failed=yes 31925fi 31926 else 31927 pkg_failed=untried 31928fi 31929if test -n "$XEPHYR_LIBS"; then 31930 pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS" 31931 elif test -n "$PKG_CONFIG"; then 31932 if test -n "$PKG_CONFIG" && \ 31933 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 31934 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 31935 ac_status=$? 31936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31937 test $ac_status = 0; }; then 31938 pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 31939 test "x$?" != "x0" && pkg_failed=yes 31940else 31941 pkg_failed=yes 31942fi 31943 else 31944 pkg_failed=untried 31945fi 31946 31947 31948 31949if test $pkg_failed = yes; then 31950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31951$as_echo "no" >&6; } 31952 31953if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31954 _pkg_short_errors_supported=yes 31955else 31956 _pkg_short_errors_supported=no 31957fi 31958 if test $_pkg_short_errors_supported = yes; then 31959 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 31960 else 31961 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 31962 fi 31963 # Put the nasty error message in config.log where it belongs 31964 echo "$XEPHYR_PKG_ERRORS" >&5 31965 31966 XEPHYR="no" 31967elif test $pkg_failed = untried; then 31968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31969$as_echo "no" >&6; } 31970 XEPHYR="no" 31971else 31972 XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS 31973 XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS 31974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31975$as_echo "yes" >&6; } 31976 XEPHYR="yes" 31977fi 31978 elif test "x$XEPHYR" = xyes ; then 31979 31980pkg_failed=no 31981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5 31982$as_echo_n "checking for XEPHYR... " >&6; } 31983 31984if test -n "$XEPHYR_CFLAGS"; then 31985 pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS" 31986 elif test -n "$PKG_CONFIG"; then 31987 if test -n "$PKG_CONFIG" && \ 31988 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 31989 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 31990 ac_status=$? 31991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31992 test $ac_status = 0; }; then 31993 pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 31994 test "x$?" != "x0" && pkg_failed=yes 31995else 31996 pkg_failed=yes 31997fi 31998 else 31999 pkg_failed=untried 32000fi 32001if test -n "$XEPHYR_LIBS"; then 32002 pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS" 32003 elif test -n "$PKG_CONFIG"; then 32004 if test -n "$PKG_CONFIG" && \ 32005 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 32006 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 32007 ac_status=$? 32008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32009 test $ac_status = 0; }; then 32010 pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 32011 test "x$?" != "x0" && pkg_failed=yes 32012else 32013 pkg_failed=yes 32014fi 32015 else 32016 pkg_failed=untried 32017fi 32018 32019 32020 32021if test $pkg_failed = yes; then 32022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32023$as_echo "no" >&6; } 32024 32025if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32026 _pkg_short_errors_supported=yes 32027else 32028 _pkg_short_errors_supported=no 32029fi 32030 if test $_pkg_short_errors_supported = yes; then 32031 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 32032 else 32033 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 32034 fi 32035 # Put the nasty error message in config.log where it belongs 32036 echo "$XEPHYR_PKG_ERRORS" >&5 32037 32038 as_fn_error $? "Package requirements ($XEPHYR_REQUIRED_LIBS) were not met: 32039 32040$XEPHYR_PKG_ERRORS 32041 32042Consider adjusting the PKG_CONFIG_PATH environment variable if you 32043installed software in a non-standard prefix. 32044 32045Alternatively, you may set the environment variables XEPHYR_CFLAGS 32046and XEPHYR_LIBS to avoid the need to call pkg-config. 32047See the pkg-config man page for more details." "$LINENO" 5 32048elif test $pkg_failed = untried; then 32049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32050$as_echo "no" >&6; } 32051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32053as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32054is in your PATH or set the PKG_CONFIG environment variable to the full 32055path to pkg-config. 32056 32057Alternatively, you may set the environment variables XEPHYR_CFLAGS 32058and XEPHYR_LIBS to avoid the need to call pkg-config. 32059See the pkg-config man page for more details. 32060 32061To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32062See \`config.log' for more details" "$LINENO" 5; } 32063else 32064 XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS 32065 XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS 32066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32067$as_echo "yes" >&6; } 32068 32069fi 32070 fi 32071 32072 # Xephyr needs nanosleep() which is in librt on Solaris 32073 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 32074if test "x$ac_cv_func_nanosleep" = xyes; then : 32075 32076else 32077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 32078$as_echo_n "checking for nanosleep in -lrt... " >&6; } 32079if ${ac_cv_lib_rt_nanosleep+:} false; then : 32080 $as_echo_n "(cached) " >&6 32081else 32082 ac_check_lib_save_LIBS=$LIBS 32083LIBS="-lrt $LIBS" 32084cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32085/* end confdefs.h. */ 32086 32087/* Override any GCC internal prototype to avoid an error. 32088 Use char because int might match the return type of a GCC 32089 builtin and then its argument prototype would still apply. */ 32090#ifdef __cplusplus 32091extern "C" 32092#endif 32093char nanosleep (); 32094int 32095main () 32096{ 32097return nanosleep (); 32098 ; 32099 return 0; 32100} 32101_ACEOF 32102if ac_fn_c_try_link "$LINENO"; then : 32103 ac_cv_lib_rt_nanosleep=yes 32104else 32105 ac_cv_lib_rt_nanosleep=no 32106fi 32107rm -f core conftest.err conftest.$ac_objext \ 32108 conftest$ac_exeext conftest.$ac_ext 32109LIBS=$ac_check_lib_save_LIBS 32110fi 32111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 32112$as_echo "$ac_cv_lib_rt_nanosleep" >&6; } 32113if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : 32114 XEPHYR_LIBS="$XEPHYR_LIBS -lrt" 32115fi 32116 32117fi 32118 32119 32120 # damage shadow extension glx (NOTYET) fb mi 32121 KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src' 32122 KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_SYNC_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC" 32123 KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux' 32124 KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC" 32125 32126 KDRIVE_CFLAGS="$XSERVER_CFLAGS" 32127 32128 KDRIVE_PURE_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $OS_LIB" 32129 KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la' 32130 KDRIVE_MAIN_LIB="$MAIN_LIB" 32131 KDRIVE_LOCAL_LIBS="$DIX_LIB $KDRIVE_LIB" 32132 KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS" 32133 KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB" 32134 KDRIVE_LIBS="$KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS" 32135 32136 32137 32138fi 32139 32140 32141 32142 32143 32144 32145 32146 if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then 32147 XEPHYR_TRUE= 32148 XEPHYR_FALSE='#' 32149else 32150 XEPHYR_TRUE='#' 32151 XEPHYR_FALSE= 32152fi 32153 32154 32155 32156XWAYLANDMODULES="wayland-client >= 1.3.0 wayland-protocols >= 1.10 $LIBDRM epoxy" 32157if test "x$XF86VIDMODE" = xyes; then 32158 XWAYLANDMODULES="$XWAYLANDMODULES $VIDMODEPROTO" 32159fi 32160 32161pkg_failed=no 32162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWAYLANDMODULES" >&5 32163$as_echo_n "checking for XWAYLANDMODULES... " >&6; } 32164 32165if test -n "$XWAYLANDMODULES_CFLAGS"; then 32166 pkg_cv_XWAYLANDMODULES_CFLAGS="$XWAYLANDMODULES_CFLAGS" 32167 elif test -n "$PKG_CONFIG"; then 32168 if test -n "$PKG_CONFIG" && \ 32169 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XWAYLANDMODULES\""; } >&5 32170 ($PKG_CONFIG --exists --print-errors "$XWAYLANDMODULES") 2>&5 32171 ac_status=$? 32172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32173 test $ac_status = 0; }; then 32174 pkg_cv_XWAYLANDMODULES_CFLAGS=`$PKG_CONFIG --cflags "$XWAYLANDMODULES" 2>/dev/null` 32175 test "x$?" != "x0" && pkg_failed=yes 32176else 32177 pkg_failed=yes 32178fi 32179 else 32180 pkg_failed=untried 32181fi 32182if test -n "$XWAYLANDMODULES_LIBS"; then 32183 pkg_cv_XWAYLANDMODULES_LIBS="$XWAYLANDMODULES_LIBS" 32184 elif test -n "$PKG_CONFIG"; then 32185 if test -n "$PKG_CONFIG" && \ 32186 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XWAYLANDMODULES\""; } >&5 32187 ($PKG_CONFIG --exists --print-errors "$XWAYLANDMODULES") 2>&5 32188 ac_status=$? 32189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32190 test $ac_status = 0; }; then 32191 pkg_cv_XWAYLANDMODULES_LIBS=`$PKG_CONFIG --libs "$XWAYLANDMODULES" 2>/dev/null` 32192 test "x$?" != "x0" && pkg_failed=yes 32193else 32194 pkg_failed=yes 32195fi 32196 else 32197 pkg_failed=untried 32198fi 32199 32200 32201 32202if test $pkg_failed = yes; then 32203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32204$as_echo "no" >&6; } 32205 32206if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32207 _pkg_short_errors_supported=yes 32208else 32209 _pkg_short_errors_supported=no 32210fi 32211 if test $_pkg_short_errors_supported = yes; then 32212 XWAYLANDMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XWAYLANDMODULES" 2>&1` 32213 else 32214 XWAYLANDMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XWAYLANDMODULES" 2>&1` 32215 fi 32216 # Put the nasty error message in config.log where it belongs 32217 echo "$XWAYLANDMODULES_PKG_ERRORS" >&5 32218 32219 have_xwayland=no 32220elif test $pkg_failed = untried; then 32221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32222$as_echo "no" >&6; } 32223 have_xwayland=no 32224else 32225 XWAYLANDMODULES_CFLAGS=$pkg_cv_XWAYLANDMODULES_CFLAGS 32226 XWAYLANDMODULES_LIBS=$pkg_cv_XWAYLANDMODULES_LIBS 32227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32228$as_echo "yes" >&6; } 32229 have_xwayland=yes 32230fi 32231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xwayland DDX" >&5 32232$as_echo_n "checking whether to build Xwayland DDX... " >&6; } 32233if test "x$XWAYLAND" = xauto; then 32234 XWAYLAND="$have_xwayland" 32235fi 32236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XWAYLAND" >&5 32237$as_echo "$XWAYLAND" >&6; } 32238 if test "x$XWAYLAND" = xyes; then 32239 XWAYLAND_TRUE= 32240 XWAYLAND_FALSE='#' 32241else 32242 XWAYLAND_TRUE='#' 32243 XWAYLAND_FALSE= 32244fi 32245 32246 32247if test "x$XWAYLAND" = xyes; then 32248 if test "x$have_xwayland" = xno; then 32249 as_fn_error $? "Xwayland build explicitly requested, but required modules not found." "$LINENO" 5 32250 fi 32251 32252 if test "x$GLAMOR" = xyes && test "x$GBM" = xyes; then 32253 32254$as_echo "#define XWL_HAS_GLAMOR 1" >>confdefs.h 32255 32256 fi 32257 32258 32259pkg_failed=no 32260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_EGLSTREAM" >&5 32261$as_echo_n "checking for WAYLAND_EGLSTREAM... " >&6; } 32262 32263if test -n "$WAYLAND_EGLSTREAM_CFLAGS"; then 32264 pkg_cv_WAYLAND_EGLSTREAM_CFLAGS="$WAYLAND_EGLSTREAM_CFLAGS" 32265 elif test -n "$PKG_CONFIG"; then 32266 if test -n "$PKG_CONFIG" && \ 32267 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-eglstream-protocols >= 1.0.2\""; } >&5 32268 ($PKG_CONFIG --exists --print-errors "wayland-eglstream-protocols >= 1.0.2") 2>&5 32269 ac_status=$? 32270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32271 test $ac_status = 0; }; then 32272 pkg_cv_WAYLAND_EGLSTREAM_CFLAGS=`$PKG_CONFIG --cflags "wayland-eglstream-protocols >= 1.0.2" 2>/dev/null` 32273 test "x$?" != "x0" && pkg_failed=yes 32274else 32275 pkg_failed=yes 32276fi 32277 else 32278 pkg_failed=untried 32279fi 32280if test -n "$WAYLAND_EGLSTREAM_LIBS"; then 32281 pkg_cv_WAYLAND_EGLSTREAM_LIBS="$WAYLAND_EGLSTREAM_LIBS" 32282 elif test -n "$PKG_CONFIG"; then 32283 if test -n "$PKG_CONFIG" && \ 32284 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-eglstream-protocols >= 1.0.2\""; } >&5 32285 ($PKG_CONFIG --exists --print-errors "wayland-eglstream-protocols >= 1.0.2") 2>&5 32286 ac_status=$? 32287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32288 test $ac_status = 0; }; then 32289 pkg_cv_WAYLAND_EGLSTREAM_LIBS=`$PKG_CONFIG --libs "wayland-eglstream-protocols >= 1.0.2" 2>/dev/null` 32290 test "x$?" != "x0" && pkg_failed=yes 32291else 32292 pkg_failed=yes 32293fi 32294 else 32295 pkg_failed=untried 32296fi 32297 32298 32299 32300if test $pkg_failed = yes; then 32301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32302$as_echo "no" >&6; } 32303 32304if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32305 _pkg_short_errors_supported=yes 32306else 32307 _pkg_short_errors_supported=no 32308fi 32309 if test $_pkg_short_errors_supported = yes; then 32310 WAYLAND_EGLSTREAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-eglstream-protocols >= 1.0.2" 2>&1` 32311 else 32312 WAYLAND_EGLSTREAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-eglstream-protocols >= 1.0.2" 2>&1` 32313 fi 32314 # Put the nasty error message in config.log where it belongs 32315 echo "$WAYLAND_EGLSTREAM_PKG_ERRORS" >&5 32316 32317 have_wl_eglstream=no 32318elif test $pkg_failed = untried; then 32319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32320$as_echo "no" >&6; } 32321 have_wl_eglstream=no 32322else 32323 WAYLAND_EGLSTREAM_CFLAGS=$pkg_cv_WAYLAND_EGLSTREAM_CFLAGS 32324 WAYLAND_EGLSTREAM_LIBS=$pkg_cv_WAYLAND_EGLSTREAM_LIBS 32325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32326$as_echo "yes" >&6; } 32327 have_wl_eglstream=yes 32328fi 32329 32330 if test "x$XWAYLAND_EGLSTREAM" = xauto; then 32331 if test "x$have_wl_eglstream" = xyes && test "x$GLAMOR" = xyes; then 32332 XWAYLAND_EGLSTREAM=yes 32333 fi 32334 fi 32335 32336 if test "x$XWAYLAND_EGLSTREAM" = xyes; then 32337 if test "x$GLAMOR" != xyes; then 32338 as_fn_error $? "Xwayland eglstream support explicitly requested, but required modules not found." "$LINENO" 5 32339 fi 32340 32341 if test "x$have_wl_eglstream" = xno; then 32342 as_fn_error $? "Xwayland eglstream support requires wayland-eglstream-protocols >= 1.0.2" "$LINENO" 5 32343 fi 32344 32345 WAYLAND_EGLSTREAM_DATADIR=`$PKG_CONFIG --variable=pkgdatadir wayland-eglstream-protocols` 32346 32347 32348$as_echo "#define XWL_HAS_EGLSTREAM 1" >>confdefs.h 32349 32350 fi 32351 32352 XWAYLAND_LIBS="$FB_LIB $FIXES_LIB $MI_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $MAIN_LIB $DIX_LIB $OS_LIB" 32353 XWAYLAND_SYS_LIBS="$XWAYLANDMODULES_LIBS $GLX_SYS_LIBS" 32354 32355 32356 32357 if test "x$MONOTONIC_CLOCK" != xyes; then 32358 as_fn_error $? "Xwayland requires CLOCK_MONOTONIC support." "$LINENO" 5 32359 fi 32360 32361 # Extract the first word of "wayland-scanner", so it can be a program name with args. 32362set dummy wayland-scanner; ac_word=$2 32363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32364$as_echo_n "checking for $ac_word... " >&6; } 32365if ${ac_cv_path_WAYLAND_SCANNER+:} false; then : 32366 $as_echo_n "(cached) " >&6 32367else 32368 case $WAYLAND_SCANNER in 32369 [\\/]* | ?:[\\/]*) 32370 ac_cv_path_WAYLAND_SCANNER="$WAYLAND_SCANNER" # Let the user override the test with a path. 32371 ;; 32372 *) 32373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32374for as_dir in $PATH 32375do 32376 IFS=$as_save_IFS 32377 test -z "$as_dir" && as_dir=. 32378 for ac_exec_ext in '' $ac_executable_extensions; do 32379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32380 ac_cv_path_WAYLAND_SCANNER="$as_dir/$ac_word$ac_exec_ext" 32381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32382 break 2 32383 fi 32384done 32385 done 32386IFS=$as_save_IFS 32387 32388 ;; 32389esac 32390fi 32391WAYLAND_SCANNER=$ac_cv_path_WAYLAND_SCANNER 32392if test -n "$WAYLAND_SCANNER"; then 32393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WAYLAND_SCANNER" >&5 32394$as_echo "$WAYLAND_SCANNER" >&6; } 32395else 32396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32397$as_echo "no" >&6; } 32398fi 32399 32400 32401 if test "x$WAYLAND_SCANNER" = x; then 32402 32403pkg_failed=no 32404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_SCANNER" >&5 32405$as_echo_n "checking for WAYLAND_SCANNER... " >&6; } 32406 32407if test -n "$WAYLAND_SCANNER_CFLAGS"; then 32408 pkg_cv_WAYLAND_SCANNER_CFLAGS="$WAYLAND_SCANNER_CFLAGS" 32409 elif test -n "$PKG_CONFIG"; then 32410 if test -n "$PKG_CONFIG" && \ 32411 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner\""; } >&5 32412 ($PKG_CONFIG --exists --print-errors "wayland-scanner") 2>&5 32413 ac_status=$? 32414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32415 test $ac_status = 0; }; then 32416 pkg_cv_WAYLAND_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "wayland-scanner" 2>/dev/null` 32417 test "x$?" != "x0" && pkg_failed=yes 32418else 32419 pkg_failed=yes 32420fi 32421 else 32422 pkg_failed=untried 32423fi 32424if test -n "$WAYLAND_SCANNER_LIBS"; then 32425 pkg_cv_WAYLAND_SCANNER_LIBS="$WAYLAND_SCANNER_LIBS" 32426 elif test -n "$PKG_CONFIG"; then 32427 if test -n "$PKG_CONFIG" && \ 32428 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner\""; } >&5 32429 ($PKG_CONFIG --exists --print-errors "wayland-scanner") 2>&5 32430 ac_status=$? 32431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32432 test $ac_status = 0; }; then 32433 pkg_cv_WAYLAND_SCANNER_LIBS=`$PKG_CONFIG --libs "wayland-scanner" 2>/dev/null` 32434 test "x$?" != "x0" && pkg_failed=yes 32435else 32436 pkg_failed=yes 32437fi 32438 else 32439 pkg_failed=untried 32440fi 32441 32442 32443 32444if test $pkg_failed = yes; then 32445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32446$as_echo "no" >&6; } 32447 32448if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32449 _pkg_short_errors_supported=yes 32450else 32451 _pkg_short_errors_supported=no 32452fi 32453 if test $_pkg_short_errors_supported = yes; then 32454 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-scanner" 2>&1` 32455 else 32456 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-scanner" 2>&1` 32457 fi 32458 # Put the nasty error message in config.log where it belongs 32459 echo "$WAYLAND_SCANNER_PKG_ERRORS" >&5 32460 32461 as_fn_error $? "Package requirements (wayland-scanner) were not met: 32462 32463$WAYLAND_SCANNER_PKG_ERRORS 32464 32465Consider adjusting the PKG_CONFIG_PATH environment variable if you 32466installed software in a non-standard prefix. 32467 32468Alternatively, you may set the environment variables WAYLAND_SCANNER_CFLAGS 32469and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config. 32470See the pkg-config man page for more details." "$LINENO" 5 32471elif test $pkg_failed = untried; then 32472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32473$as_echo "no" >&6; } 32474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32476as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32477is in your PATH or set the PKG_CONFIG environment variable to the full 32478path to pkg-config. 32479 32480Alternatively, you may set the environment variables WAYLAND_SCANNER_CFLAGS 32481and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config. 32482See the pkg-config man page for more details. 32483 32484To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32485See \`config.log' for more details" "$LINENO" 5; } 32486else 32487 WAYLAND_SCANNER_CFLAGS=$pkg_cv_WAYLAND_SCANNER_CFLAGS 32488 WAYLAND_SCANNER_LIBS=$pkg_cv_WAYLAND_SCANNER_LIBS 32489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32490$as_echo "yes" >&6; } 32491 32492fi 32493 WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner` 32494 32495 fi 32496 32497 32498pkg_failed=no 32499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_SCANNER" >&5 32500$as_echo_n "checking for WAYLAND_SCANNER... " >&6; } 32501 32502if test -n "$WAYLAND_SCANNER_CFLAGS"; then 32503 pkg_cv_WAYLAND_SCANNER_CFLAGS="$WAYLAND_SCANNER_CFLAGS" 32504 elif test -n "$PKG_CONFIG"; then 32505 if test -n "$PKG_CONFIG" && \ 32506 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner >= 1.14.91\""; } >&5 32507 ($PKG_CONFIG --exists --print-errors "wayland-scanner >= 1.14.91") 2>&5 32508 ac_status=$? 32509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32510 test $ac_status = 0; }; then 32511 pkg_cv_WAYLAND_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "wayland-scanner >= 1.14.91" 2>/dev/null` 32512 test "x$?" != "x0" && pkg_failed=yes 32513else 32514 pkg_failed=yes 32515fi 32516 else 32517 pkg_failed=untried 32518fi 32519if test -n "$WAYLAND_SCANNER_LIBS"; then 32520 pkg_cv_WAYLAND_SCANNER_LIBS="$WAYLAND_SCANNER_LIBS" 32521 elif test -n "$PKG_CONFIG"; then 32522 if test -n "$PKG_CONFIG" && \ 32523 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner >= 1.14.91\""; } >&5 32524 ($PKG_CONFIG --exists --print-errors "wayland-scanner >= 1.14.91") 2>&5 32525 ac_status=$? 32526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32527 test $ac_status = 0; }; then 32528 pkg_cv_WAYLAND_SCANNER_LIBS=`$PKG_CONFIG --libs "wayland-scanner >= 1.14.91" 2>/dev/null` 32529 test "x$?" != "x0" && pkg_failed=yes 32530else 32531 pkg_failed=yes 32532fi 32533 else 32534 pkg_failed=untried 32535fi 32536 32537 32538 32539if test $pkg_failed = yes; then 32540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32541$as_echo "no" >&6; } 32542 32543if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32544 _pkg_short_errors_supported=yes 32545else 32546 _pkg_short_errors_supported=no 32547fi 32548 if test $_pkg_short_errors_supported = yes; then 32549 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-scanner >= 1.14.91" 2>&1` 32550 else 32551 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-scanner >= 1.14.91" 2>&1` 32552 fi 32553 # Put the nasty error message in config.log where it belongs 32554 echo "$WAYLAND_SCANNER_PKG_ERRORS" >&5 32555 32556 SCANNER_ARG='code' 32557 32558elif test $pkg_failed = untried; then 32559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32560$as_echo "no" >&6; } 32561 SCANNER_ARG='code' 32562 32563else 32564 WAYLAND_SCANNER_CFLAGS=$pkg_cv_WAYLAND_SCANNER_CFLAGS 32565 WAYLAND_SCANNER_LIBS=$pkg_cv_WAYLAND_SCANNER_LIBS 32566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32567$as_echo "yes" >&6; } 32568 SCANNER_ARG='private-code' 32569 32570fi 32571 32572 WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols` 32573 32574fi 32575 if test "x$XWAYLAND_EGLSTREAM" = "xyes"; then 32576 XWAYLAND_EGLSTREAM_TRUE= 32577 XWAYLAND_EGLSTREAM_FALSE='#' 32578else 32579 XWAYLAND_EGLSTREAM_TRUE='#' 32580 XWAYLAND_EGLSTREAM_FALSE= 32581fi 32582 32583 32584 32585 32586cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32587/* end confdefs.h. */ 32588 32589#include <features.h> 32590#ifndef __GLIBC__ 32591#error not glibc 32592#endif 32593 32594int 32595main () 32596{ 32597 32598 ; 32599 return 0; 32600} 32601_ACEOF 32602if ac_fn_c_try_compile "$LINENO"; then : 32603 32604$as_echo "#define _GNU_SOURCE 1" >>confdefs.h 32605 32606fi 32607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32608 32609 32610 prefix_NONE= 32611 exec_prefix_NONE= 32612 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32613 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32614 eval ac_define_dir="\"$prefix\"" 32615 eval ac_define_dir="\"$ac_define_dir\"" 32616 PROJECTROOT="$ac_define_dir" 32617 32618 32619cat >>confdefs.h <<_ACEOF 32620#define PROJECTROOT "$ac_define_dir" 32621_ACEOF 32622 32623 test "$prefix_NONE" && prefix=NONE 32624 test "$exec_prefix_NONE" && exec_prefix=NONE 32625 32626 32627 prefix_NONE= 32628 exec_prefix_NONE= 32629 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32630 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32631 eval ac_define_dir="\"$sysconfdir\"" 32632 eval ac_define_dir="\"$ac_define_dir\"" 32633 SYSCONFDIR="$ac_define_dir" 32634 32635 32636cat >>confdefs.h <<_ACEOF 32637#define SYSCONFDIR "$ac_define_dir" 32638_ACEOF 32639 32640 test "$prefix_NONE" && prefix=NONE 32641 test "$exec_prefix_NONE" && exec_prefix=NONE 32642 32643 32644 32645DATE_FMT="%Y%m%d" 32646TIME_FMT="1%H%M%S" 32647BUILD_DATE="`date "+$DATE_FMT"`" 32648BUILD_TIME="`date "+$TIME_FMT"`" 32649if test "x$SOURCE_DATE_EPOCH" != "x"; then 32650 BUILD_DATE="`date -u -d "@$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || date -u "+$DATE_FMT"`" 32651 BUILD_TIME="`date -u -d "@$SOURCE_DATE_EPOCH" "+$TIME_FMT" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" "+$TIME_FMT" 2>/dev/null || date -u "+$TIME_FMT"`" 32652fi 32653 32654 32655 32656DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS" 32657 32658 32659 32660 32661 32662 32663 32664ac_config_commands="$ac_config_commands sdksyms" 32665 32666 32667if test "x$CONFIG_HAL" = xno && test "x$CONFIG_UDEV" = xno; then 32668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 32669 *********************************************** 32670 Neither HAL nor udev backend will be enabled. 32671 Input device hotplugging will not be available! 32672 ***********************************************" >&5 32673$as_echo "$as_me: WARNING: 32674 *********************************************** 32675 Neither HAL nor udev backend will be enabled. 32676 Input device hotplugging will not be available! 32677 ***********************************************" >&2;} 32678fi 32679 32680ac_config_files="$ac_config_files Makefile glx/Makefile include/Makefile composite/Makefile damageext/Makefile dbe/Makefile dix/Makefile doc/Makefile doc/dtrace/Makefile man/Makefile fb/Makefile glamor/Makefile record/Makefile config/Makefile mi/Makefile miext/Makefile miext/sync/Makefile miext/damage/Makefile miext/shadow/Makefile miext/rootless/Makefile os/Makefile pseudoramiX/Makefile randr/Makefile render/Makefile xkb/Makefile Xext/Makefile Xi/Makefile xfixes/Makefile exa/Makefile dri3/Makefile present/Makefile hw/Makefile hw/xfree86/Makefile hw/xfree86/Xorg.sh hw/xfree86/common/Makefile hw/xfree86/common/xf86Build.h hw/xfree86/ddc/Makefile hw/xfree86/dixmods/Makefile hw/xfree86/doc/Makefile hw/xfree86/dri/Makefile hw/xfree86/dri2/Makefile hw/xfree86/dri2/pci_ids/Makefile hw/xfree86/drivers/Makefile hw/xfree86/drivers/modesetting/Makefile hw/xfree86/exa/Makefile hw/xfree86/exa/man/Makefile hw/xfree86/fbdevhw/Makefile hw/xfree86/fbdevhw/man/Makefile hw/xfree86/glamor_egl/Makefile hw/xfree86/i2c/Makefile hw/xfree86/int10/Makefile hw/xfree86/loader/Makefile hw/xfree86/man/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/os-support/stub/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/xkb/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/doxygen/doxygen.conf hw/dmx/doxygen/Makefile 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/dri/Makefile hw/xwin/glx/Makefile hw/xwin/man/Makefile hw/xwin/winclipboard/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/src/Makefile hw/xwayland/Makefile test/Makefile xserver.ent xorg-server.pc" 32681 32682cat >confcache <<\_ACEOF 32683# This file is a shell script that caches the results of configure 32684# tests run on this system so they can be shared between configure 32685# scripts and configure runs, see configure's option --config-cache. 32686# It is not useful on other systems. If it contains results you don't 32687# want to keep, you may remove or edit it. 32688# 32689# config.status only pays attention to the cache file if you give it 32690# the --recheck option to rerun configure. 32691# 32692# `ac_cv_env_foo' variables (set or unset) will be overridden when 32693# loading this file, other *unset* `ac_cv_foo' will be assigned the 32694# following values. 32695 32696_ACEOF 32697 32698# The following way of writing the cache mishandles newlines in values, 32699# but we know of no workaround that is simple, portable, and efficient. 32700# So, we kill variables containing newlines. 32701# Ultrix sh set writes to stderr and can't be redirected directly, 32702# and sets the high bit in the cache file unless we assign to the vars. 32703( 32704 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 32705 eval ac_val=\$$ac_var 32706 case $ac_val in #( 32707 *${as_nl}*) 32708 case $ac_var in #( 32709 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 32710$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 32711 esac 32712 case $ac_var in #( 32713 _ | IFS | as_nl) ;; #( 32714 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 32715 *) { eval $ac_var=; unset $ac_var;} ;; 32716 esac ;; 32717 esac 32718 done 32719 32720 (set) 2>&1 | 32721 case $as_nl`(ac_space=' '; set) 2>&1` in #( 32722 *${as_nl}ac_space=\ *) 32723 # `set' does not quote correctly, so add quotes: double-quote 32724 # substitution turns \\\\ into \\, and sed turns \\ into \. 32725 sed -n \ 32726 "s/'/'\\\\''/g; 32727 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 32728 ;; #( 32729 *) 32730 # `set' quotes correctly as required by POSIX, so do not add quotes. 32731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 32732 ;; 32733 esac | 32734 sort 32735) | 32736 sed ' 32737 /^ac_cv_env_/b end 32738 t clear 32739 :clear 32740 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 32741 t end 32742 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 32743 :end' >>confcache 32744if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 32745 if test -w "$cache_file"; then 32746 if test "x$cache_file" != "x/dev/null"; then 32747 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 32748$as_echo "$as_me: updating cache $cache_file" >&6;} 32749 if test ! -f "$cache_file" || test -h "$cache_file"; then 32750 cat confcache >"$cache_file" 32751 else 32752 case $cache_file in #( 32753 */* | ?:*) 32754 mv -f confcache "$cache_file"$$ && 32755 mv -f "$cache_file"$$ "$cache_file" ;; #( 32756 *) 32757 mv -f confcache "$cache_file" ;; 32758 esac 32759 fi 32760 fi 32761 else 32762 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 32763$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 32764 fi 32765fi 32766rm -f confcache 32767 32768test "x$prefix" = xNONE && prefix=$ac_default_prefix 32769# Let make expand exec_prefix. 32770test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 32771 32772DEFS=-DHAVE_CONFIG_H 32773 32774ac_libobjs= 32775ac_ltlibobjs= 32776U= 32777for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 32778 # 1. Remove the extension, and $U if already installed. 32779 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 32780 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 32781 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 32782 # will be set to the directory where LIBOBJS objects are built. 32783 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 32784 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 32785done 32786LIBOBJS=$ac_libobjs 32787 32788LTLIBOBJS=$ac_ltlibobjs 32789 32790 32791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 32792$as_echo_n "checking that generated files are newer than configure... " >&6; } 32793 if test -n "$am_sleep_pid"; then 32794 # Hide warnings about reused PIDs. 32795 wait $am_sleep_pid 2>/dev/null 32796 fi 32797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 32798$as_echo "done" >&6; } 32799 if test -n "$EXEEXT"; then 32800 am__EXEEXT_TRUE= 32801 am__EXEEXT_FALSE='#' 32802else 32803 am__EXEEXT_TRUE='#' 32804 am__EXEEXT_FALSE= 32805fi 32806 32807if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 32808 as_fn_error $? "conditional \"AMDEP\" was never defined. 32809Usually this means the macro was only invoked conditionally." "$LINENO" 5 32810fi 32811if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 32812 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 32813Usually this means the macro was only invoked conditionally." "$LINENO" 5 32814fi 32815if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then 32816 as_fn_error $? "conditional \"HAVE_DOT\" was never defined. 32817Usually this means the macro was only invoked conditionally." "$LINENO" 5 32818fi 32819if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 32820 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 32821Usually this means the macro was only invoked conditionally." "$LINENO" 5 32822fi 32823if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 32824 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 32825Usually this means the macro was only invoked conditionally." "$LINENO" 5 32826fi 32827if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 32828 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 32829Usually this means the macro was only invoked conditionally." "$LINENO" 5 32830fi 32831if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 32832 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 32833Usually this means the macro was only invoked conditionally." "$LINENO" 5 32834fi 32835if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 32836 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 32837Usually this means the macro was only invoked conditionally." "$LINENO" 5 32838fi 32839if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 32840 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 32841Usually this means the macro was only invoked conditionally." "$LINENO" 5 32842fi 32843if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 32844 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 32845Usually this means the macro was only invoked conditionally." "$LINENO" 5 32846fi 32847if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 32848 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 32849Usually this means the macro was only invoked conditionally." "$LINENO" 5 32850fi 32851if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then 32852 as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined. 32853Usually this means the macro was only invoked conditionally." "$LINENO" 5 32854fi 32855if test -z "${HAVE_LD_WRAP_TRUE}" && test -z "${HAVE_LD_WRAP_FALSE}"; then 32856 as_fn_error $? "conditional \"HAVE_LD_WRAP\" was never defined. 32857Usually this means the macro was only invoked conditionally." "$LINENO" 5 32858fi 32859if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 32860 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 32861Usually this means the macro was only invoked conditionally." "$LINENO" 5 32862fi 32863if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then 32864 as_fn_error $? "conditional \"XSERVER_DTRACE\" was never defined. 32865Usually this means the macro was only invoked conditionally." "$LINENO" 5 32866fi 32867if test -z "${SPECIAL_DTRACE_OBJECTS_TRUE}" && test -z "${SPECIAL_DTRACE_OBJECTS_FALSE}"; then 32868 as_fn_error $? "conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined. 32869Usually this means the macro was only invoked conditionally." "$LINENO" 5 32870fi 32871 32872if test -z "${POLL_TRUE}" && test -z "${POLL_FALSE}"; then 32873 as_fn_error $? "conditional \"POLL\" was never defined. 32874Usually this means the macro was only invoked conditionally." "$LINENO" 5 32875fi 32876if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then 32877 as_fn_error $? "conditional \"AGP\" was never defined. 32878Usually this means the macro was only invoked conditionally." "$LINENO" 5 32879fi 32880if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then 32881 as_fn_error $? "conditional \"FBDEVHW\" was never defined. 32882Usually this means the macro was only invoked conditionally." "$LINENO" 5 32883fi 32884if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then 32885 as_fn_error $? "conditional \"FREEBSD_KLDLOAD\" was never defined. 32886Usually this means the macro was only invoked conditionally." "$LINENO" 5 32887fi 32888if test -z "${BSD_APM_TRUE}" && test -z "${BSD_APM_FALSE}"; then 32889 as_fn_error $? "conditional \"BSD_APM\" was never defined. 32890Usually this means the macro was only invoked conditionally." "$LINENO" 5 32891fi 32892if test -z "${BSD_KQUEUE_APM_TRUE}" && test -z "${BSD_KQUEUE_APM_FALSE}"; then 32893 as_fn_error $? "conditional \"BSD_KQUEUE_APM\" was never defined. 32894Usually this means the macro was only invoked conditionally." "$LINENO" 5 32895fi 32896if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then 32897 as_fn_error $? "conditional \"ALPHA_VIDEO\" was never defined. 32898Usually this means the macro was only invoked conditionally." "$LINENO" 5 32899fi 32900if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then 32901 as_fn_error $? "conditional \"ARM_VIDEO\" was never defined. 32902Usually this means the macro was only invoked conditionally." "$LINENO" 5 32903fi 32904if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then 32905 as_fn_error $? "conditional \"I386_VIDEO\" was never defined. 32906Usually this means the macro was only invoked conditionally." "$LINENO" 5 32907fi 32908if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then 32909 as_fn_error $? "conditional \"PPC_VIDEO\" was never defined. 32910Usually this means the macro was only invoked conditionally." "$LINENO" 5 32911fi 32912if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then 32913 as_fn_error $? "conditional \"SPARC64_VIDEO\" was never defined. 32914Usually this means the macro was only invoked conditionally." "$LINENO" 5 32915fi 32916if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then 32917 as_fn_error $? "conditional \"INSTALL_SETUID\" was never defined. 32918Usually this means the macro was only invoked conditionally." "$LINENO" 5 32919fi 32920if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then 32921 as_fn_error $? "conditional \"SECURE_RPC\" was never defined. 32922Usually this means the macro was only invoked conditionally." "$LINENO" 5 32923fi 32924if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then 32925 as_fn_error $? "conditional \"INT10_VM86\" was never defined. 32926Usually this means the macro was only invoked conditionally." "$LINENO" 5 32927fi 32928if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then 32929 as_fn_error $? "conditional \"INT10_X86EMU\" was never defined. 32930Usually this means the macro was only invoked conditionally." "$LINENO" 5 32931fi 32932if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then 32933 as_fn_error $? "conditional \"INT10_STUB\" was never defined. 32934Usually this means the macro was only invoked conditionally." "$LINENO" 5 32935fi 32936if test -z "${HAVE_SYSTEMD_DAEMON_TRUE}" && test -z "${HAVE_SYSTEMD_DAEMON_FALSE}"; then 32937 as_fn_error $? "conditional \"HAVE_SYSTEMD_DAEMON\" was never defined. 32938Usually this means the macro was only invoked conditionally." "$LINENO" 5 32939fi 32940if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; then 32941 as_fn_error $? "conditional \"CONFIG_UDEV\" was never defined. 32942Usually this means the macro was only invoked conditionally." "$LINENO" 5 32943fi 32944if test -z "${CONFIG_UDEV_KMS_TRUE}" && test -z "${CONFIG_UDEV_KMS_FALSE}"; then 32945 as_fn_error $? "conditional \"CONFIG_UDEV_KMS\" was never defined. 32946Usually this means the macro was only invoked conditionally." "$LINENO" 5 32947fi 32948if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then 32949 as_fn_error $? "conditional \"HAVE_DBUS\" was never defined. 32950Usually this means the macro was only invoked conditionally." "$LINENO" 5 32951fi 32952if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then 32953 as_fn_error $? "conditional \"CONFIG_HAL\" was never defined. 32954Usually this means the macro was only invoked conditionally." "$LINENO" 5 32955fi 32956if test -z "${SYSTEMD_LOGIND_TRUE}" && test -z "${SYSTEMD_LOGIND_FALSE}"; then 32957 as_fn_error $? "conditional \"SYSTEMD_LOGIND\" was never defined. 32958Usually this means the macro was only invoked conditionally." "$LINENO" 5 32959fi 32960if test -z "${SUID_WRAPPER_TRUE}" && test -z "${SUID_WRAPPER_FALSE}"; then 32961 as_fn_error $? "conditional \"SUID_WRAPPER\" was never defined. 32962Usually this means the macro was only invoked conditionally." "$LINENO" 5 32963fi 32964if test -z "${NEED_DBUS_TRUE}" && test -z "${NEED_DBUS_FALSE}"; then 32965 as_fn_error $? "conditional \"NEED_DBUS\" was never defined. 32966Usually this means the macro was only invoked conditionally." "$LINENO" 5 32967fi 32968if test -z "${CONFIG_WSCONS_TRUE}" && test -z "${CONFIG_WSCONS_FALSE}"; then 32969 as_fn_error $? "conditional \"CONFIG_WSCONS\" was never defined. 32970Usually this means the macro was only invoked conditionally." "$LINENO" 5 32971fi 32972if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then 32973 as_fn_error $? "conditional \"XV\" was never defined. 32974Usually this means the macro was only invoked conditionally." "$LINENO" 5 32975fi 32976if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then 32977 as_fn_error $? "conditional \"XVMC\" was never defined. 32978Usually this means the macro was only invoked conditionally." "$LINENO" 5 32979fi 32980if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then 32981 as_fn_error $? "conditional \"COMPOSITE\" was never defined. 32982Usually this means the macro was only invoked conditionally." "$LINENO" 5 32983fi 32984if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then 32985 as_fn_error $? "conditional \"MITSHM\" was never defined. 32986Usually this means the macro was only invoked conditionally." "$LINENO" 5 32987fi 32988if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then 32989 as_fn_error $? "conditional \"RECORD\" was never defined. 32990Usually this means the macro was only invoked conditionally." "$LINENO" 5 32991fi 32992if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then 32993 as_fn_error $? "conditional \"SCREENSAVER\" was never defined. 32994Usually this means the macro was only invoked conditionally." "$LINENO" 5 32995fi 32996if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then 32997 as_fn_error $? "conditional \"RES\" was never defined. 32998Usually this means the macro was only invoked conditionally." "$LINENO" 5 32999fi 33000if test -z "${CLIENTIDS_TRUE}" && test -z "${CLIENTIDS_FALSE}"; then 33001 as_fn_error $? "conditional \"CLIENTIDS\" was never defined. 33002Usually this means the macro was only invoked conditionally." "$LINENO" 5 33003fi 33004if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 33005 as_fn_error $? "conditional \"DRI\" was never defined. 33006Usually this means the macro was only invoked conditionally." "$LINENO" 5 33007fi 33008if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then 33009 as_fn_error $? "conditional \"DRI2\" was never defined. 33010Usually this means the macro was only invoked conditionally." "$LINENO" 5 33011fi 33012if test -z "${BUSFAULT_TRUE}" && test -z "${BUSFAULT_FALSE}"; then 33013 as_fn_error $? "conditional \"BUSFAULT\" was never defined. 33014Usually this means the macro was only invoked conditionally." "$LINENO" 5 33015fi 33016if test -z "${XSHMFENCE_TRUE}" && test -z "${XSHMFENCE_FALSE}"; then 33017 as_fn_error $? "conditional \"XSHMFENCE\" was never defined. 33018Usually this means the macro was only invoked conditionally." "$LINENO" 5 33019fi 33020if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then 33021 as_fn_error $? "conditional \"DRI3\" was never defined. 33022Usually this means the macro was only invoked conditionally." "$LINENO" 5 33023fi 33024if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then 33025 as_fn_error $? "conditional \"GLX\" was never defined. 33026Usually this means the macro was only invoked conditionally." "$LINENO" 5 33027fi 33028if test -z "${HASHTABLE_TRUE}" && test -z "${HASHTABLE_FALSE}"; then 33029 as_fn_error $? "conditional \"HASHTABLE\" was never defined. 33030Usually this means the macro was only invoked conditionally." "$LINENO" 5 33031fi 33032if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then 33033 as_fn_error $? "conditional \"PRESENT\" was never defined. 33034Usually this means the macro was only invoked conditionally." "$LINENO" 5 33035fi 33036if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then 33037 as_fn_error $? "conditional \"XINERAMA\" was never defined. 33038Usually this means the macro was only invoked conditionally." "$LINENO" 5 33039fi 33040if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then 33041 as_fn_error $? "conditional \"XACE\" was never defined. 33042Usually this means the macro was only invoked conditionally." "$LINENO" 5 33043fi 33044if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then 33045 as_fn_error $? "conditional \"XSELINUX\" was never defined. 33046Usually this means the macro was only invoked conditionally." "$LINENO" 5 33047fi 33048if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then 33049 as_fn_error $? "conditional \"XCSECURITY\" was never defined. 33050Usually this means the macro was only invoked conditionally." "$LINENO" 5 33051fi 33052if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then 33053 as_fn_error $? "conditional \"DBE\" was never defined. 33054Usually this means the macro was only invoked conditionally." "$LINENO" 5 33055fi 33056if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then 33057 as_fn_error $? "conditional \"XF86BIGFONT\" was never defined. 33058Usually this means the macro was only invoked conditionally." "$LINENO" 5 33059fi 33060if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then 33061 as_fn_error $? "conditional \"DPMSExtension\" was never defined. 33062Usually this means the macro was only invoked conditionally." "$LINENO" 5 33063fi 33064if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then 33065 as_fn_error $? "conditional \"XF86UTILS\" was never defined. 33066Usually this means the macro was only invoked conditionally." "$LINENO" 5 33067fi 33068if test -z "${VGAHW_TRUE}" && test -z "${VGAHW_FALSE}"; then 33069 as_fn_error $? "conditional \"VGAHW\" was never defined. 33070Usually this means the macro was only invoked conditionally." "$LINENO" 5 33071fi 33072if test -z "${VBE_TRUE}" && test -z "${VBE_FALSE}"; then 33073 as_fn_error $? "conditional \"VBE\" was never defined. 33074Usually this means the macro was only invoked conditionally." "$LINENO" 5 33075fi 33076if test -z "${INT10MODULE_TRUE}" && test -z "${INT10MODULE_FALSE}"; then 33077 as_fn_error $? "conditional \"INT10MODULE\" was never defined. 33078Usually this means the macro was only invoked conditionally." "$LINENO" 5 33079fi 33080if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then 33081 as_fn_error $? "conditional \"XDMCP\" was never defined. 33082Usually this means the macro was only invoked conditionally." "$LINENO" 5 33083fi 33084if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then 33085 as_fn_error $? "conditional \"XDMAUTH\" was never defined. 33086Usually this means the macro was only invoked conditionally." "$LINENO" 5 33087fi 33088if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then 33089 as_fn_error $? "conditional \"XF86VIDMODE\" was never defined. 33090Usually this means the macro was only invoked conditionally." "$LINENO" 5 33091fi 33092if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then 33093 as_fn_error $? "conditional \"DEBUG\" was never defined. 33094Usually this means the macro was only invoked conditionally." "$LINENO" 5 33095fi 33096if test -z "${HAVE_LIBUNWIND_TRUE}" && test -z "${HAVE_LIBUNWIND_FALSE}"; then 33097 as_fn_error $? "conditional \"HAVE_LIBUNWIND\" was never defined. 33098Usually this means the macro was only invoked conditionally." "$LINENO" 5 33099fi 33100if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then 33101 as_fn_error $? "conditional \"CYGWIN\" was never defined. 33102Usually this means the macro was only invoked conditionally." "$LINENO" 5 33103fi 33104if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then 33105 as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined. 33106Usually this means the macro was only invoked conditionally." "$LINENO" 5 33107fi 33108if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then 33109 as_fn_error $? "conditional \"XVFB\" was never defined. 33110Usually this means the macro was only invoked conditionally." "$LINENO" 5 33111fi 33112if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then 33113 as_fn_error $? "conditional \"XNEST\" was never defined. 33114Usually this means the macro was only invoked conditionally." "$LINENO" 5 33115fi 33116if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then 33117 as_fn_error $? "conditional \"XORG\" was never defined. 33118Usually this means the macro was only invoked conditionally." "$LINENO" 5 33119fi 33120if test -z "${XORG_BUS_PCI_TRUE}" && test -z "${XORG_BUS_PCI_FALSE}"; then 33121 as_fn_error $? "conditional \"XORG_BUS_PCI\" was never defined. 33122Usually this means the macro was only invoked conditionally." "$LINENO" 5 33123fi 33124if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then 33125 as_fn_error $? "conditional \"XORG_BUS_BSDPCI\" was never defined. 33126Usually this means the macro was only invoked conditionally." "$LINENO" 5 33127fi 33128if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then 33129 as_fn_error $? "conditional \"XORG_BUS_SPARC\" was never defined. 33130Usually this means the macro was only invoked conditionally." "$LINENO" 5 33131fi 33132if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then 33133 as_fn_error $? "conditional \"LNXACPI\" was never defined. 33134Usually this means the macro was only invoked conditionally." "$LINENO" 5 33135fi 33136if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then 33137 as_fn_error $? "conditional \"LNXAPM\" was never defined. 33138Usually this means the macro was only invoked conditionally." "$LINENO" 5 33139fi 33140if test -z "${SOLARIS_VT_TRUE}" && test -z "${SOLARIS_VT_FALSE}"; then 33141 as_fn_error $? "conditional \"SOLARIS_VT\" was never defined. 33142Usually this means the macro was only invoked conditionally." "$LINENO" 5 33143fi 33144if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then 33145 as_fn_error $? "conditional \"DGA\" was never defined. 33146Usually this means the macro was only invoked conditionally." "$LINENO" 5 33147fi 33148if test -z "${XORG_BUS_PLATFORM_TRUE}" && test -z "${XORG_BUS_PLATFORM_FALSE}"; then 33149 as_fn_error $? "conditional \"XORG_BUS_PLATFORM\" was never defined. 33150Usually this means the macro was only invoked conditionally." "$LINENO" 5 33151fi 33152if test -z "${XORG_DRIVER_MODESETTING_TRUE}" && test -z "${XORG_DRIVER_MODESETTING_FALSE}"; then 33153 as_fn_error $? "conditional \"XORG_DRIVER_MODESETTING\" was never defined. 33154Usually this means the macro was only invoked conditionally." "$LINENO" 5 33155fi 33156if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then 33157 as_fn_error $? "conditional \"GLAMOR\" was never defined. 33158Usually this means the macro was only invoked conditionally." "$LINENO" 5 33159fi 33160if test -z "${GLAMOR_EGL_TRUE}" && test -z "${GLAMOR_EGL_FALSE}"; then 33161 as_fn_error $? "conditional \"GLAMOR_EGL\" was never defined. 33162Usually this means the macro was only invoked conditionally." "$LINENO" 5 33163fi 33164if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then 33165 as_fn_error $? "conditional \"XWIN\" was never defined. 33166Usually this means the macro was only invoked conditionally." "$LINENO" 5 33167fi 33168if test -z "${XWIN_MULTIWINDOWEXTWM_TRUE}" && test -z "${XWIN_MULTIWINDOWEXTWM_FALSE}"; then 33169 as_fn_error $? "conditional \"XWIN_MULTIWINDOWEXTWM\" was never defined. 33170Usually this means the macro was only invoked conditionally." "$LINENO" 5 33171fi 33172if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then 33173 as_fn_error $? "conditional \"XWIN_GLX_WINDOWS\" was never defined. 33174Usually this means the macro was only invoked conditionally." "$LINENO" 5 33175fi 33176if test -z "${XWIN_WINDOWS_DRI_TRUE}" && test -z "${XWIN_WINDOWS_DRI_FALSE}"; then 33177 as_fn_error $? "conditional \"XWIN_WINDOWS_DRI\" was never defined. 33178Usually this means the macro was only invoked conditionally." "$LINENO" 5 33179fi 33180if test -z "${PSEUDORAMIX_TRUE}" && test -z "${PSEUDORAMIX_FALSE}"; then 33181 as_fn_error $? "conditional \"PSEUDORAMIX\" was never defined. 33182Usually this means the macro was only invoked conditionally." "$LINENO" 5 33183fi 33184if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then 33185 as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. 33186Usually this means the macro was only invoked conditionally." "$LINENO" 5 33187fi 33188if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then 33189 as_fn_error $? "conditional \"XQUARTZ\" was never defined. 33190Usually this means the macro was only invoked conditionally." "$LINENO" 5 33191fi 33192if test -z "${XQUARTZ_SPARKLE_TRUE}" && test -z "${XQUARTZ_SPARKLE_FALSE}"; then 33193 as_fn_error $? "conditional \"XQUARTZ_SPARKLE\" was never defined. 33194Usually this means the macro was only invoked conditionally." "$LINENO" 5 33195fi 33196if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then 33197 as_fn_error $? "conditional \"STANDALONE_XPBPROXY\" was never defined. 33198Usually this means the macro was only invoked conditionally." "$LINENO" 5 33199fi 33200if test -z "${DMX_TRUE}" && test -z "${DMX_FALSE}"; then 33201 as_fn_error $? "conditional \"DMX\" was never defined. 33202Usually this means the macro was only invoked conditionally." "$LINENO" 5 33203fi 33204if test -z "${DMX_BUILD_USB_TRUE}" && test -z "${DMX_BUILD_USB_FALSE}"; then 33205 as_fn_error $? "conditional \"DMX_BUILD_USB\" was never defined. 33206Usually this means the macro was only invoked conditionally." "$LINENO" 5 33207fi 33208if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then 33209 as_fn_error $? "conditional \"KDRIVE\" was never defined. 33210Usually this means the macro was only invoked conditionally." "$LINENO" 5 33211fi 33212if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then 33213 as_fn_error $? "conditional \"XEPHYR\" was never defined. 33214Usually this means the macro was only invoked conditionally." "$LINENO" 5 33215fi 33216if test -z "${XWAYLAND_TRUE}" && test -z "${XWAYLAND_FALSE}"; then 33217 as_fn_error $? "conditional \"XWAYLAND\" was never defined. 33218Usually this means the macro was only invoked conditionally." "$LINENO" 5 33219fi 33220if test -z "${XWAYLAND_EGLSTREAM_TRUE}" && test -z "${XWAYLAND_EGLSTREAM_FALSE}"; then 33221 as_fn_error $? "conditional \"XWAYLAND_EGLSTREAM\" was never defined. 33222Usually this means the macro was only invoked conditionally." "$LINENO" 5 33223fi 33224 33225: "${CONFIG_STATUS=./config.status}" 33226ac_write_fail=0 33227ac_clean_files_save=$ac_clean_files 33228ac_clean_files="$ac_clean_files $CONFIG_STATUS" 33229{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 33230$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 33231as_write_fail=0 33232cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 33233#! $SHELL 33234# Generated by $as_me. 33235# Run this file to recreate the current configuration. 33236# Compiler output produced by configure, useful for debugging 33237# configure, is in config.log if it exists. 33238 33239debug=false 33240ac_cs_recheck=false 33241ac_cs_silent=false 33242 33243SHELL=\${CONFIG_SHELL-$SHELL} 33244export SHELL 33245_ASEOF 33246cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 33247## -------------------- ## 33248## M4sh Initialization. ## 33249## -------------------- ## 33250 33251# Be more Bourne compatible 33252DUALCASE=1; export DUALCASE # for MKS sh 33253if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 33254 emulate sh 33255 NULLCMD=: 33256 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 33257 # is contrary to our usage. Disable this feature. 33258 alias -g '${1+"$@"}'='"$@"' 33259 setopt NO_GLOB_SUBST 33260else 33261 case `(set -o) 2>/dev/null` in #( 33262 *posix*) : 33263 set -o posix ;; #( 33264 *) : 33265 ;; 33266esac 33267fi 33268 33269 33270as_nl=' 33271' 33272export as_nl 33273# Printing a long string crashes Solaris 7 /usr/bin/printf. 33274as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 33275as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 33276as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 33277# Prefer a ksh shell builtin over an external printf program on Solaris, 33278# but without wasting forks for bash or zsh. 33279if test -z "$BASH_VERSION$ZSH_VERSION" \ 33280 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 33281 as_echo='print -r --' 33282 as_echo_n='print -rn --' 33283elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 33284 as_echo='printf %s\n' 33285 as_echo_n='printf %s' 33286else 33287 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 33288 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 33289 as_echo_n='/usr/ucb/echo -n' 33290 else 33291 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 33292 as_echo_n_body='eval 33293 arg=$1; 33294 case $arg in #( 33295 *"$as_nl"*) 33296 expr "X$arg" : "X\\(.*\\)$as_nl"; 33297 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 33298 esac; 33299 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 33300 ' 33301 export as_echo_n_body 33302 as_echo_n='sh -c $as_echo_n_body as_echo' 33303 fi 33304 export as_echo_body 33305 as_echo='sh -c $as_echo_body as_echo' 33306fi 33307 33308# The user is always right. 33309if test "${PATH_SEPARATOR+set}" != set; then 33310 PATH_SEPARATOR=: 33311 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 33312 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 33313 PATH_SEPARATOR=';' 33314 } 33315fi 33316 33317 33318# IFS 33319# We need space, tab and new line, in precisely that order. Quoting is 33320# there to prevent editors from complaining about space-tab. 33321# (If _AS_PATH_WALK were called with IFS unset, it would disable word 33322# splitting by setting IFS to empty value.) 33323IFS=" "" $as_nl" 33324 33325# Find who we are. Look in the path if we contain no directory separator. 33326as_myself= 33327case $0 in #(( 33328 *[\\/]* ) as_myself=$0 ;; 33329 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33330for as_dir in $PATH 33331do 33332 IFS=$as_save_IFS 33333 test -z "$as_dir" && as_dir=. 33334 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 33335 done 33336IFS=$as_save_IFS 33337 33338 ;; 33339esac 33340# We did not find ourselves, most probably we were run as `sh COMMAND' 33341# in which case we are not to be found in the path. 33342if test "x$as_myself" = x; then 33343 as_myself=$0 33344fi 33345if test ! -f "$as_myself"; then 33346 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 33347 exit 1 33348fi 33349 33350# Unset variables that we do not need and which cause bugs (e.g. in 33351# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 33352# suppresses any "Segmentation fault" message there. '((' could 33353# trigger a bug in pdksh 5.2.14. 33354for as_var in BASH_ENV ENV MAIL MAILPATH 33355do eval test x\${$as_var+set} = xset \ 33356 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 33357done 33358PS1='$ ' 33359PS2='> ' 33360PS4='+ ' 33361 33362# NLS nuisances. 33363LC_ALL=C 33364export LC_ALL 33365LANGUAGE=C 33366export LANGUAGE 33367 33368# CDPATH. 33369(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 33370 33371 33372# as_fn_error STATUS ERROR [LINENO LOG_FD] 33373# ---------------------------------------- 33374# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 33375# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 33376# script with STATUS, using 1 if that was 0. 33377as_fn_error () 33378{ 33379 as_status=$1; test $as_status -eq 0 && as_status=1 33380 if test "$4"; then 33381 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 33382 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 33383 fi 33384 $as_echo "$as_me: error: $2" >&2 33385 as_fn_exit $as_status 33386} # as_fn_error 33387 33388 33389# as_fn_set_status STATUS 33390# ----------------------- 33391# Set $? to STATUS, without forking. 33392as_fn_set_status () 33393{ 33394 return $1 33395} # as_fn_set_status 33396 33397# as_fn_exit STATUS 33398# ----------------- 33399# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 33400as_fn_exit () 33401{ 33402 set +e 33403 as_fn_set_status $1 33404 exit $1 33405} # as_fn_exit 33406 33407# as_fn_unset VAR 33408# --------------- 33409# Portably unset VAR. 33410as_fn_unset () 33411{ 33412 { eval $1=; unset $1;} 33413} 33414as_unset=as_fn_unset 33415# as_fn_append VAR VALUE 33416# ---------------------- 33417# Append the text in VALUE to the end of the definition contained in VAR. Take 33418# advantage of any shell optimizations that allow amortized linear growth over 33419# repeated appends, instead of the typical quadratic growth present in naive 33420# implementations. 33421if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 33422 eval 'as_fn_append () 33423 { 33424 eval $1+=\$2 33425 }' 33426else 33427 as_fn_append () 33428 { 33429 eval $1=\$$1\$2 33430 } 33431fi # as_fn_append 33432 33433# as_fn_arith ARG... 33434# ------------------ 33435# Perform arithmetic evaluation on the ARGs, and store the result in the 33436# global $as_val. Take advantage of shells that can avoid forks. The arguments 33437# must be portable across $(()) and expr. 33438if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 33439 eval 'as_fn_arith () 33440 { 33441 as_val=$(( $* )) 33442 }' 33443else 33444 as_fn_arith () 33445 { 33446 as_val=`expr "$@" || test $? -eq 1` 33447 } 33448fi # as_fn_arith 33449 33450 33451if expr a : '\(a\)' >/dev/null 2>&1 && 33452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 33453 as_expr=expr 33454else 33455 as_expr=false 33456fi 33457 33458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 33459 as_basename=basename 33460else 33461 as_basename=false 33462fi 33463 33464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 33465 as_dirname=dirname 33466else 33467 as_dirname=false 33468fi 33469 33470as_me=`$as_basename -- "$0" || 33471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 33472 X"$0" : 'X\(//\)$' \| \ 33473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 33474$as_echo X/"$0" | 33475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 33476 s//\1/ 33477 q 33478 } 33479 /^X\/\(\/\/\)$/{ 33480 s//\1/ 33481 q 33482 } 33483 /^X\/\(\/\).*/{ 33484 s//\1/ 33485 q 33486 } 33487 s/.*/./; q'` 33488 33489# Avoid depending upon Character Ranges. 33490as_cr_letters='abcdefghijklmnopqrstuvwxyz' 33491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 33492as_cr_Letters=$as_cr_letters$as_cr_LETTERS 33493as_cr_digits='0123456789' 33494as_cr_alnum=$as_cr_Letters$as_cr_digits 33495 33496ECHO_C= ECHO_N= ECHO_T= 33497case `echo -n x` in #((((( 33498-n*) 33499 case `echo 'xy\c'` in 33500 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 33501 xy) ECHO_C='\c';; 33502 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 33503 ECHO_T=' ';; 33504 esac;; 33505*) 33506 ECHO_N='-n';; 33507esac 33508 33509rm -f conf$$ conf$$.exe conf$$.file 33510if test -d conf$$.dir; then 33511 rm -f conf$$.dir/conf$$.file 33512else 33513 rm -f conf$$.dir 33514 mkdir conf$$.dir 2>/dev/null 33515fi 33516if (echo >conf$$.file) 2>/dev/null; then 33517 if ln -s conf$$.file conf$$ 2>/dev/null; then 33518 as_ln_s='ln -s' 33519 # ... but there are two gotchas: 33520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 33521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 33522 # In both cases, we have to default to `cp -pR'. 33523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 33524 as_ln_s='cp -pR' 33525 elif ln conf$$.file conf$$ 2>/dev/null; then 33526 as_ln_s=ln 33527 else 33528 as_ln_s='cp -pR' 33529 fi 33530else 33531 as_ln_s='cp -pR' 33532fi 33533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 33534rmdir conf$$.dir 2>/dev/null 33535 33536 33537# as_fn_mkdir_p 33538# ------------- 33539# Create "$as_dir" as a directory, including parents if necessary. 33540as_fn_mkdir_p () 33541{ 33542 33543 case $as_dir in #( 33544 -*) as_dir=./$as_dir;; 33545 esac 33546 test -d "$as_dir" || eval $as_mkdir_p || { 33547 as_dirs= 33548 while :; do 33549 case $as_dir in #( 33550 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 33551 *) as_qdir=$as_dir;; 33552 esac 33553 as_dirs="'$as_qdir' $as_dirs" 33554 as_dir=`$as_dirname -- "$as_dir" || 33555$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 33556 X"$as_dir" : 'X\(//\)[^/]' \| \ 33557 X"$as_dir" : 'X\(//\)$' \| \ 33558 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 33559$as_echo X"$as_dir" | 33560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 33561 s//\1/ 33562 q 33563 } 33564 /^X\(\/\/\)[^/].*/{ 33565 s//\1/ 33566 q 33567 } 33568 /^X\(\/\/\)$/{ 33569 s//\1/ 33570 q 33571 } 33572 /^X\(\/\).*/{ 33573 s//\1/ 33574 q 33575 } 33576 s/.*/./; q'` 33577 test -d "$as_dir" && break 33578 done 33579 test -z "$as_dirs" || eval "mkdir $as_dirs" 33580 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 33581 33582 33583} # as_fn_mkdir_p 33584if mkdir -p . 2>/dev/null; then 33585 as_mkdir_p='mkdir -p "$as_dir"' 33586else 33587 test -d ./-p && rmdir ./-p 33588 as_mkdir_p=false 33589fi 33590 33591 33592# as_fn_executable_p FILE 33593# ----------------------- 33594# Test if FILE is an executable regular file. 33595as_fn_executable_p () 33596{ 33597 test -f "$1" && test -x "$1" 33598} # as_fn_executable_p 33599as_test_x='test -x' 33600as_executable_p=as_fn_executable_p 33601 33602# Sed expression to map a string onto a valid CPP name. 33603as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 33604 33605# Sed expression to map a string onto a valid variable name. 33606as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 33607 33608 33609exec 6>&1 33610## ----------------------------------- ## 33611## Main body of $CONFIG_STATUS script. ## 33612## ----------------------------------- ## 33613_ASEOF 33614test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 33615 33616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33617# Save the log message, to keep $0 and so on meaningful, and to 33618# report actual input values of CONFIG_FILES etc. instead of their 33619# values after options handling. 33620ac_log=" 33621This file was extended by xorg-server $as_me 1.20.12, which was 33622generated by GNU Autoconf 2.69. Invocation command line was 33623 33624 CONFIG_FILES = $CONFIG_FILES 33625 CONFIG_HEADERS = $CONFIG_HEADERS 33626 CONFIG_LINKS = $CONFIG_LINKS 33627 CONFIG_COMMANDS = $CONFIG_COMMANDS 33628 $ $0 $@ 33629 33630on `(hostname || uname -n) 2>/dev/null | sed 1q` 33631" 33632 33633_ACEOF 33634 33635case $ac_config_files in *" 33636"*) set x $ac_config_files; shift; ac_config_files=$*;; 33637esac 33638 33639case $ac_config_headers in *" 33640"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 33641esac 33642 33643 33644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33645# Files that config.status was made for. 33646config_files="$ac_config_files" 33647config_headers="$ac_config_headers" 33648config_commands="$ac_config_commands" 33649 33650_ACEOF 33651 33652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33653ac_cs_usage="\ 33654\`$as_me' instantiates files and other configuration actions 33655from templates according to the current configuration. Unless the files 33656and actions are specified as TAGs, all are instantiated by default. 33657 33658Usage: $0 [OPTION]... [TAG]... 33659 33660 -h, --help print this help, then exit 33661 -V, --version print version number and configuration settings, then exit 33662 --config print configuration, then exit 33663 -q, --quiet, --silent 33664 do not print progress messages 33665 -d, --debug don't remove temporary files 33666 --recheck update $as_me by reconfiguring in the same conditions 33667 --file=FILE[:TEMPLATE] 33668 instantiate the configuration file FILE 33669 --header=FILE[:TEMPLATE] 33670 instantiate the configuration header FILE 33671 33672Configuration files: 33673$config_files 33674 33675Configuration headers: 33676$config_headers 33677 33678Configuration commands: 33679$config_commands 33680 33681Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>." 33682 33683_ACEOF 33684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33685ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 33686ac_cs_version="\\ 33687xorg-server config.status 1.20.12 33688configured by $0, generated by GNU Autoconf 2.69, 33689 with options \\"\$ac_cs_config\\" 33690 33691Copyright (C) 2012 Free Software Foundation, Inc. 33692This config.status script is free software; the Free Software Foundation 33693gives unlimited permission to copy, distribute and modify it." 33694 33695ac_pwd='$ac_pwd' 33696srcdir='$srcdir' 33697INSTALL='$INSTALL' 33698MKDIR_P='$MKDIR_P' 33699AWK='$AWK' 33700test -n "\$AWK" || AWK=awk 33701_ACEOF 33702 33703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33704# The default lists apply if the user does not specify any file. 33705ac_need_defaults=: 33706while test $# != 0 33707do 33708 case $1 in 33709 --*=?*) 33710 ac_option=`expr "X$1" : 'X\([^=]*\)='` 33711 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 33712 ac_shift=: 33713 ;; 33714 --*=) 33715 ac_option=`expr "X$1" : 'X\([^=]*\)='` 33716 ac_optarg= 33717 ac_shift=: 33718 ;; 33719 *) 33720 ac_option=$1 33721 ac_optarg=$2 33722 ac_shift=shift 33723 ;; 33724 esac 33725 33726 case $ac_option in 33727 # Handling of the options. 33728 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 33729 ac_cs_recheck=: ;; 33730 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 33731 $as_echo "$ac_cs_version"; exit ;; 33732 --config | --confi | --conf | --con | --co | --c ) 33733 $as_echo "$ac_cs_config"; exit ;; 33734 --debug | --debu | --deb | --de | --d | -d ) 33735 debug=: ;; 33736 --file | --fil | --fi | --f ) 33737 $ac_shift 33738 case $ac_optarg in 33739 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 33740 '') as_fn_error $? "missing file argument" ;; 33741 esac 33742 as_fn_append CONFIG_FILES " '$ac_optarg'" 33743 ac_need_defaults=false;; 33744 --header | --heade | --head | --hea ) 33745 $ac_shift 33746 case $ac_optarg in 33747 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 33748 esac 33749 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 33750 ac_need_defaults=false;; 33751 --he | --h) 33752 # Conflict between --help and --header 33753 as_fn_error $? "ambiguous option: \`$1' 33754Try \`$0 --help' for more information.";; 33755 --help | --hel | -h ) 33756 $as_echo "$ac_cs_usage"; exit ;; 33757 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 33758 | -silent | --silent | --silen | --sile | --sil | --si | --s) 33759 ac_cs_silent=: ;; 33760 33761 # This is an error. 33762 -*) as_fn_error $? "unrecognized option: \`$1' 33763Try \`$0 --help' for more information." ;; 33764 33765 *) as_fn_append ac_config_targets " $1" 33766 ac_need_defaults=false ;; 33767 33768 esac 33769 shift 33770done 33771 33772ac_configure_extra_args= 33773 33774if $ac_cs_silent; then 33775 exec 6>/dev/null 33776 ac_configure_extra_args="$ac_configure_extra_args --silent" 33777fi 33778 33779_ACEOF 33780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33781if \$ac_cs_recheck; then 33782 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 33783 shift 33784 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 33785 CONFIG_SHELL='$SHELL' 33786 export CONFIG_SHELL 33787 exec "\$@" 33788fi 33789 33790_ACEOF 33791cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33792exec 5>>config.log 33793{ 33794 echo 33795 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 33796## Running $as_me. ## 33797_ASBOX 33798 $as_echo "$ac_log" 33799} >&5 33800 33801_ACEOF 33802cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33803# 33804# INIT-COMMANDS 33805# 33806AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 33807 33808 33809# The HP-UX ksh and POSIX shell print the target directory to stdout 33810# if CDPATH is set. 33811(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 33812 33813sed_quote_subst='$sed_quote_subst' 33814double_quote_subst='$double_quote_subst' 33815delay_variable_subst='$delay_variable_subst' 33816macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 33817macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 33818enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 33819AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 33820DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 33821OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 33822enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 33823pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 33824enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 33825shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 33826SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 33827ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 33828PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 33829host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 33830host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 33831host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 33832build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 33833build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 33834build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 33835SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 33836Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 33837GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 33838EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 33839FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 33840LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 33841NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 33842LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 33843max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 33844ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 33845exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 33846lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 33847lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 33848lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 33849lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 33850lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 33851reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 33852reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 33853deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 33854file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 33855file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 33856want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 33857sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 33858AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 33859AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 33860archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 33861STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 33862RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 33863old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 33864old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 33865old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 33866lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 33867CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 33868CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 33869compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 33870GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 33871lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 33872lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 33873lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 33874lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 33875lt_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"`' 33876lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 33877nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 33878lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 33879lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 33880objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 33881MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 33882lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 33883lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 33884lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 33885lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 33886lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 33887need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 33888MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 33889DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 33890NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 33891LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 33892OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 33893OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 33894libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 33895shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 33896extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 33897archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 33898enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 33899export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 33900whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 33901compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 33902old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 33903old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 33904archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 33905archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 33906module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 33907module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 33908with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 33909allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 33910no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 33911hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 33912hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 33913hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 33914hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 33915hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 33916hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 33917hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 33918inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 33919link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 33920always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 33921export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 33922exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 33923include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 33924prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 33925postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 33926file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 33927variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 33928need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 33929need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 33930version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 33931runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 33932shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 33933shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 33934libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 33935library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 33936soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 33937install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 33938postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 33939postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 33940finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 33941finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 33942hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 33943sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 33944configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 33945configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 33946hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 33947enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 33948enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 33949enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 33950old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 33951striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 33952 33953LTCC='$LTCC' 33954LTCFLAGS='$LTCFLAGS' 33955compiler='$compiler_DEFAULT' 33956 33957# A function that is used when there is no print builtin or printf. 33958func_fallback_echo () 33959{ 33960 eval 'cat <<_LTECHO_EOF 33961\$1 33962_LTECHO_EOF' 33963} 33964 33965# Quote evaled strings. 33966for var in AS \ 33967DLLTOOL \ 33968OBJDUMP \ 33969SHELL \ 33970ECHO \ 33971PATH_SEPARATOR \ 33972SED \ 33973GREP \ 33974EGREP \ 33975FGREP \ 33976LD \ 33977NM \ 33978LN_S \ 33979lt_SP2NL \ 33980lt_NL2SP \ 33981reload_flag \ 33982deplibs_check_method \ 33983file_magic_cmd \ 33984file_magic_glob \ 33985want_nocaseglob \ 33986sharedlib_from_linklib_cmd \ 33987AR \ 33988AR_FLAGS \ 33989archiver_list_spec \ 33990STRIP \ 33991RANLIB \ 33992CC \ 33993CFLAGS \ 33994compiler \ 33995lt_cv_sys_global_symbol_pipe \ 33996lt_cv_sys_global_symbol_to_cdecl \ 33997lt_cv_sys_global_symbol_to_import \ 33998lt_cv_sys_global_symbol_to_c_name_address \ 33999lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 34000lt_cv_nm_interface \ 34001nm_file_list_spec \ 34002lt_cv_truncate_bin \ 34003lt_prog_compiler_no_builtin_flag \ 34004lt_prog_compiler_pic \ 34005lt_prog_compiler_wl \ 34006lt_prog_compiler_static \ 34007lt_cv_prog_compiler_c_o \ 34008need_locks \ 34009MANIFEST_TOOL \ 34010DSYMUTIL \ 34011NMEDIT \ 34012LIPO \ 34013OTOOL \ 34014OTOOL64 \ 34015shrext_cmds \ 34016export_dynamic_flag_spec \ 34017whole_archive_flag_spec \ 34018compiler_needs_object \ 34019with_gnu_ld \ 34020allow_undefined_flag \ 34021no_undefined_flag \ 34022hardcode_libdir_flag_spec \ 34023hardcode_libdir_separator \ 34024exclude_expsyms \ 34025include_expsyms \ 34026file_list_spec \ 34027variables_saved_for_relink \ 34028libname_spec \ 34029library_names_spec \ 34030soname_spec \ 34031install_override_mode \ 34032finish_eval \ 34033old_striplib \ 34034striplib; do 34035 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 34036 *[\\\\\\\`\\"\\\$]*) 34037 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 34038 ;; 34039 *) 34040 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 34041 ;; 34042 esac 34043done 34044 34045# Double-quote double-evaled strings. 34046for var in reload_cmds \ 34047old_postinstall_cmds \ 34048old_postuninstall_cmds \ 34049old_archive_cmds \ 34050extract_expsyms_cmds \ 34051old_archive_from_new_cmds \ 34052old_archive_from_expsyms_cmds \ 34053archive_cmds \ 34054archive_expsym_cmds \ 34055module_cmds \ 34056module_expsym_cmds \ 34057export_symbols_cmds \ 34058prelink_cmds \ 34059postlink_cmds \ 34060postinstall_cmds \ 34061postuninstall_cmds \ 34062finish_cmds \ 34063sys_lib_search_path_spec \ 34064configure_time_dlsearch_path \ 34065configure_time_lt_sys_library_path; do 34066 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 34067 *[\\\\\\\`\\"\\\$]*) 34068 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 34069 ;; 34070 *) 34071 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 34072 ;; 34073 esac 34074done 34075 34076ac_aux_dir='$ac_aux_dir' 34077 34078# See if we are running on zsh, and set the options that allow our 34079# commands through without removal of \ escapes INIT. 34080if test -n "\${ZSH_VERSION+set}"; then 34081 setopt NO_GLOB_SUBST 34082fi 34083 34084 34085 PACKAGE='$PACKAGE' 34086 VERSION='$VERSION' 34087 RM='$RM' 34088 ofile='$ofile' 34089 34090 34091 34092 34093_ACEOF 34094 34095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34096 34097# Handling of arguments. 34098for ac_config_target in $ac_config_targets 34099do 34100 case $ac_config_target in 34101 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 34102 "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;; 34103 "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;; 34104 "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;; 34105 "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;; 34106 "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;; 34107 "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;; 34108 "include/xwayland-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwayland-config.h" ;; 34109 "include/version-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/version-config.h" ;; 34110 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 34111 "sdksyms") CONFIG_COMMANDS="$CONFIG_COMMANDS sdksyms" ;; 34112 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 34113 "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;; 34114 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 34115 "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;; 34116 "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;; 34117 "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;; 34118 "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;; 34119 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 34120 "doc/dtrace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dtrace/Makefile" ;; 34121 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 34122 "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;; 34123 "glamor/Makefile") CONFIG_FILES="$CONFIG_FILES glamor/Makefile" ;; 34124 "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;; 34125 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 34126 "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;; 34127 "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;; 34128 "miext/sync/Makefile") CONFIG_FILES="$CONFIG_FILES miext/sync/Makefile" ;; 34129 "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;; 34130 "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;; 34131 "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;; 34132 "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;; 34133 "pseudoramiX/Makefile") CONFIG_FILES="$CONFIG_FILES pseudoramiX/Makefile" ;; 34134 "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;; 34135 "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;; 34136 "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;; 34137 "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;; 34138 "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;; 34139 "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;; 34140 "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;; 34141 "dri3/Makefile") CONFIG_FILES="$CONFIG_FILES dri3/Makefile" ;; 34142 "present/Makefile") CONFIG_FILES="$CONFIG_FILES present/Makefile" ;; 34143 "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;; 34144 "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;; 34145 "hw/xfree86/Xorg.sh") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Xorg.sh" ;; 34146 "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;; 34147 "hw/xfree86/common/xf86Build.h") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/xf86Build.h" ;; 34148 "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;; 34149 "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;; 34150 "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;; 34151 "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;; 34152 "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;; 34153 "hw/xfree86/dri2/pci_ids/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/pci_ids/Makefile" ;; 34154 "hw/xfree86/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/Makefile" ;; 34155 "hw/xfree86/drivers/modesetting/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/modesetting/Makefile" ;; 34156 "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;; 34157 "hw/xfree86/exa/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/man/Makefile" ;; 34158 "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;; 34159 "hw/xfree86/fbdevhw/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/man/Makefile" ;; 34160 "hw/xfree86/glamor_egl/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/glamor_egl/Makefile" ;; 34161 "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;; 34162 "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;; 34163 "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;; 34164 "hw/xfree86/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/man/Makefile" ;; 34165 "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;; 34166 "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;; 34167 "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;; 34168 "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;; 34169 "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;; 34170 "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;; 34171 "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;; 34172 "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;; 34173 "hw/xfree86/os-support/stub/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/stub/Makefile" ;; 34174 "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;; 34175 "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;; 34176 "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;; 34177 "hw/xfree86/vbe/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vbe/Makefile" ;; 34178 "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;; 34179 "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;; 34180 "hw/xfree86/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xkb/Makefile" ;; 34181 "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;; 34182 "hw/xfree86/utils/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/man/Makefile" ;; 34183 "hw/xfree86/utils/cvt/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/cvt/Makefile" ;; 34184 "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;; 34185 "hw/dmx/config/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/Makefile" ;; 34186 "hw/dmx/config/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/man/Makefile" ;; 34187 "hw/dmx/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doc/Makefile" ;; 34188 "hw/dmx/doxygen/doxygen.conf") CONFIG_FILES="$CONFIG_FILES hw/dmx/doxygen/doxygen.conf" ;; 34189 "hw/dmx/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doxygen/Makefile" ;; 34190 "hw/dmx/examples/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/examples/Makefile" ;; 34191 "hw/dmx/input/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/input/Makefile" ;; 34192 "hw/dmx/glxProxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/glxProxy/Makefile" ;; 34193 "hw/dmx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/Makefile" ;; 34194 "hw/dmx/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/man/Makefile" ;; 34195 "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;; 34196 "hw/vfb/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/man/Makefile" ;; 34197 "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;; 34198 "hw/xnest/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/man/Makefile" ;; 34199 "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;; 34200 "hw/xwin/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/dri/Makefile" ;; 34201 "hw/xwin/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/glx/Makefile" ;; 34202 "hw/xwin/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/man/Makefile" ;; 34203 "hw/xwin/winclipboard/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/winclipboard/Makefile" ;; 34204 "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;; 34205 "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;; 34206 "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;; 34207 "hw/xquartz/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/man/Makefile" ;; 34208 "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;; 34209 "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;; 34210 "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;; 34211 "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;; 34212 "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;; 34213 "hw/kdrive/ephyr/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/man/Makefile" ;; 34214 "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;; 34215 "hw/xwayland/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwayland/Makefile" ;; 34216 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 34217 "xserver.ent") CONFIG_FILES="$CONFIG_FILES xserver.ent" ;; 34218 "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;; 34219 34220 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 34221 esac 34222done 34223 34224 34225# If the user did not use the arguments to specify the items to instantiate, 34226# then the envvar interface is used. Set only those that are not. 34227# We use the long form for the default assignment because of an extremely 34228# bizarre bug on SunOS 4.1.3. 34229if $ac_need_defaults; then 34230 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 34231 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 34232 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 34233fi 34234 34235# Have a temporary directory for convenience. Make it in the build tree 34236# simply because there is no reason against having it here, and in addition, 34237# creating and moving files from /tmp can sometimes cause problems. 34238# Hook for its removal unless debugging. 34239# Note that there is a small window in which the directory will not be cleaned: 34240# after its creation but before its name has been assigned to `$tmp'. 34241$debug || 34242{ 34243 tmp= ac_tmp= 34244 trap 'exit_status=$? 34245 : "${ac_tmp:=$tmp}" 34246 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 34247' 0 34248 trap 'as_fn_exit 1' 1 2 13 15 34249} 34250# Create a (secure) tmp directory for tmp files. 34251 34252{ 34253 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 34254 test -d "$tmp" 34255} || 34256{ 34257 tmp=./conf$$-$RANDOM 34258 (umask 077 && mkdir "$tmp") 34259} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 34260ac_tmp=$tmp 34261 34262# Set up the scripts for CONFIG_FILES section. 34263# No need to generate them if there are no CONFIG_FILES. 34264# This happens for instance with `./config.status config.h'. 34265if test -n "$CONFIG_FILES"; then 34266 34267 34268ac_cr=`echo X | tr X '\015'` 34269# On cygwin, bash can eat \r inside `` if the user requested igncr. 34270# But we know of no other shell where ac_cr would be empty at this 34271# point, so we can use a bashism as a fallback. 34272if test "x$ac_cr" = x; then 34273 eval ac_cr=\$\'\\r\' 34274fi 34275ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 34276if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 34277 ac_cs_awk_cr='\\r' 34278else 34279 ac_cs_awk_cr=$ac_cr 34280fi 34281 34282echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 34283_ACEOF 34284 34285 34286{ 34287 echo "cat >conf$$subs.awk <<_ACEOF" && 34288 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 34289 echo "_ACEOF" 34290} >conf$$subs.sh || 34291 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34292ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 34293ac_delim='%!_!# ' 34294for ac_last_try in false false false false false :; do 34295 . ./conf$$subs.sh || 34296 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34297 34298 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 34299 if test $ac_delim_n = $ac_delim_num; then 34300 break 34301 elif $ac_last_try; then 34302 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34303 else 34304 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34305 fi 34306done 34307rm -f conf$$subs.sh 34308 34309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34310cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 34311_ACEOF 34312sed -n ' 34313h 34314s/^/S["/; s/!.*/"]=/ 34315p 34316g 34317s/^[^!]*!// 34318:repl 34319t repl 34320s/'"$ac_delim"'$// 34321t delim 34322:nl 34323h 34324s/\(.\{148\}\)..*/\1/ 34325t more1 34326s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 34327p 34328n 34329b repl 34330:more1 34331s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 34332p 34333g 34334s/.\{148\}// 34335t nl 34336:delim 34337h 34338s/\(.\{148\}\)..*/\1/ 34339t more2 34340s/["\\]/\\&/g; s/^/"/; s/$/"/ 34341p 34342b 34343:more2 34344s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 34345p 34346g 34347s/.\{148\}// 34348t delim 34349' <conf$$subs.awk | sed ' 34350/^[^""]/{ 34351 N 34352 s/\n// 34353} 34354' >>$CONFIG_STATUS || ac_write_fail=1 34355rm -f conf$$subs.awk 34356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34357_ACAWK 34358cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 34359 for (key in S) S_is_set[key] = 1 34360 FS = "" 34361 34362} 34363{ 34364 line = $ 0 34365 nfields = split(line, field, "@") 34366 substed = 0 34367 len = length(field[1]) 34368 for (i = 2; i < nfields; i++) { 34369 key = field[i] 34370 keylen = length(key) 34371 if (S_is_set[key]) { 34372 value = S[key] 34373 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 34374 len += length(value) + length(field[++i]) 34375 substed = 1 34376 } else 34377 len += 1 + keylen 34378 } 34379 34380 print line 34381} 34382 34383_ACAWK 34384_ACEOF 34385cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34386if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 34387 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 34388else 34389 cat 34390fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 34391 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 34392_ACEOF 34393 34394# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 34395# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 34396# trailing colons and then remove the whole line if VPATH becomes empty 34397# (actually we leave an empty line to preserve line numbers). 34398if test "x$srcdir" = x.; then 34399 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 34400h 34401s/// 34402s/^/:/ 34403s/[ ]*$/:/ 34404s/:\$(srcdir):/:/g 34405s/:\${srcdir}:/:/g 34406s/:@srcdir@:/:/g 34407s/^:*// 34408s/:*$// 34409x 34410s/\(=[ ]*\).*/\1/ 34411G 34412s/\n// 34413s/^[^=]*=[ ]*$// 34414}' 34415fi 34416 34417cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34418fi # test -n "$CONFIG_FILES" 34419 34420# Set up the scripts for CONFIG_HEADERS section. 34421# No need to generate them if there are no CONFIG_HEADERS. 34422# This happens for instance with `./config.status Makefile'. 34423if test -n "$CONFIG_HEADERS"; then 34424cat >"$ac_tmp/defines.awk" <<\_ACAWK || 34425BEGIN { 34426_ACEOF 34427 34428# Transform confdefs.h into an awk script `defines.awk', embedded as 34429# here-document in config.status, that substitutes the proper values into 34430# config.h.in to produce config.h. 34431 34432# Create a delimiter string that does not exist in confdefs.h, to ease 34433# handling of long lines. 34434ac_delim='%!_!# ' 34435for ac_last_try in false false :; do 34436 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 34437 if test -z "$ac_tt"; then 34438 break 34439 elif $ac_last_try; then 34440 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 34441 else 34442 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34443 fi 34444done 34445 34446# For the awk script, D is an array of macro values keyed by name, 34447# likewise P contains macro parameters if any. Preserve backslash 34448# newline sequences. 34449 34450ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 34451sed -n ' 34452s/.\{148\}/&'"$ac_delim"'/g 34453t rset 34454:rset 34455s/^[ ]*#[ ]*define[ ][ ]*/ / 34456t def 34457d 34458:def 34459s/\\$// 34460t bsnl 34461s/["\\]/\\&/g 34462s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 34463D["\1"]=" \3"/p 34464s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 34465d 34466:bsnl 34467s/["\\]/\\&/g 34468s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 34469D["\1"]=" \3\\\\\\n"\\/p 34470t cont 34471s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 34472t cont 34473d 34474:cont 34475n 34476s/.\{148\}/&'"$ac_delim"'/g 34477t clear 34478:clear 34479s/\\$// 34480t bsnlc 34481s/["\\]/\\&/g; s/^/"/; s/$/"/p 34482d 34483:bsnlc 34484s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 34485b cont 34486' <confdefs.h | sed ' 34487s/'"$ac_delim"'/"\\\ 34488"/g' >>$CONFIG_STATUS || ac_write_fail=1 34489 34490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34491 for (key in D) D_is_set[key] = 1 34492 FS = "" 34493} 34494/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 34495 line = \$ 0 34496 split(line, arg, " ") 34497 if (arg[1] == "#") { 34498 defundef = arg[2] 34499 mac1 = arg[3] 34500 } else { 34501 defundef = substr(arg[1], 2) 34502 mac1 = arg[2] 34503 } 34504 split(mac1, mac2, "(") #) 34505 macro = mac2[1] 34506 prefix = substr(line, 1, index(line, defundef) - 1) 34507 if (D_is_set[macro]) { 34508 # Preserve the white space surrounding the "#". 34509 print prefix "define", macro P[macro] D[macro] 34510 next 34511 } else { 34512 # Replace #undef with comments. This is necessary, for example, 34513 # in the case of _POSIX_SOURCE, which is predefined and required 34514 # on some systems where configure will not decide to define it. 34515 if (defundef == "undef") { 34516 print "/*", prefix defundef, macro, "*/" 34517 next 34518 } 34519 } 34520} 34521{ print } 34522_ACAWK 34523_ACEOF 34524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34525 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 34526fi # test -n "$CONFIG_HEADERS" 34527 34528 34529eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 34530shift 34531for ac_tag 34532do 34533 case $ac_tag in 34534 :[FHLC]) ac_mode=$ac_tag; continue;; 34535 esac 34536 case $ac_mode$ac_tag in 34537 :[FHL]*:*);; 34538 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 34539 :[FH]-) ac_tag=-:-;; 34540 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 34541 esac 34542 ac_save_IFS=$IFS 34543 IFS=: 34544 set x $ac_tag 34545 IFS=$ac_save_IFS 34546 shift 34547 ac_file=$1 34548 shift 34549 34550 case $ac_mode in 34551 :L) ac_source=$1;; 34552 :[FH]) 34553 ac_file_inputs= 34554 for ac_f 34555 do 34556 case $ac_f in 34557 -) ac_f="$ac_tmp/stdin";; 34558 *) # Look for the file first in the build tree, then in the source tree 34559 # (if the path is not absolute). The absolute path cannot be DOS-style, 34560 # because $ac_f cannot contain `:'. 34561 test -f "$ac_f" || 34562 case $ac_f in 34563 [\\/$]*) false;; 34564 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 34565 esac || 34566 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 34567 esac 34568 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 34569 as_fn_append ac_file_inputs " '$ac_f'" 34570 done 34571 34572 # Let's still pretend it is `configure' which instantiates (i.e., don't 34573 # use $as_me), people would be surprised to read: 34574 # /* config.h. Generated by config.status. */ 34575 configure_input='Generated from '` 34576 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 34577 `' by configure.' 34578 if test x"$ac_file" != x-; then 34579 configure_input="$ac_file. $configure_input" 34580 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 34581$as_echo "$as_me: creating $ac_file" >&6;} 34582 fi 34583 # Neutralize special characters interpreted by sed in replacement strings. 34584 case $configure_input in #( 34585 *\&* | *\|* | *\\* ) 34586 ac_sed_conf_input=`$as_echo "$configure_input" | 34587 sed 's/[\\\\&|]/\\\\&/g'`;; #( 34588 *) ac_sed_conf_input=$configure_input;; 34589 esac 34590 34591 case $ac_tag in 34592 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 34593 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 34594 esac 34595 ;; 34596 esac 34597 34598 ac_dir=`$as_dirname -- "$ac_file" || 34599$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34600 X"$ac_file" : 'X\(//\)[^/]' \| \ 34601 X"$ac_file" : 'X\(//\)$' \| \ 34602 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 34603$as_echo X"$ac_file" | 34604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34605 s//\1/ 34606 q 34607 } 34608 /^X\(\/\/\)[^/].*/{ 34609 s//\1/ 34610 q 34611 } 34612 /^X\(\/\/\)$/{ 34613 s//\1/ 34614 q 34615 } 34616 /^X\(\/\).*/{ 34617 s//\1/ 34618 q 34619 } 34620 s/.*/./; q'` 34621 as_dir="$ac_dir"; as_fn_mkdir_p 34622 ac_builddir=. 34623 34624case "$ac_dir" in 34625.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 34626*) 34627 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 34628 # A ".." for each directory in $ac_dir_suffix. 34629 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 34630 case $ac_top_builddir_sub in 34631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 34632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 34633 esac ;; 34634esac 34635ac_abs_top_builddir=$ac_pwd 34636ac_abs_builddir=$ac_pwd$ac_dir_suffix 34637# for backward compatibility: 34638ac_top_builddir=$ac_top_build_prefix 34639 34640case $srcdir in 34641 .) # We are building in place. 34642 ac_srcdir=. 34643 ac_top_srcdir=$ac_top_builddir_sub 34644 ac_abs_top_srcdir=$ac_pwd ;; 34645 [\\/]* | ?:[\\/]* ) # Absolute name. 34646 ac_srcdir=$srcdir$ac_dir_suffix; 34647 ac_top_srcdir=$srcdir 34648 ac_abs_top_srcdir=$srcdir ;; 34649 *) # Relative name. 34650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 34651 ac_top_srcdir=$ac_top_build_prefix$srcdir 34652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 34653esac 34654ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 34655 34656 34657 case $ac_mode in 34658 :F) 34659 # 34660 # CONFIG_FILE 34661 # 34662 34663 case $INSTALL in 34664 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 34665 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 34666 esac 34667 ac_MKDIR_P=$MKDIR_P 34668 case $MKDIR_P in 34669 [\\/$]* | ?:[\\/]* ) ;; 34670 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 34671 esac 34672_ACEOF 34673 34674cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34675# If the template does not know about datarootdir, expand it. 34676# FIXME: This hack should be removed a few years after 2.60. 34677ac_datarootdir_hack=; ac_datarootdir_seen= 34678ac_sed_dataroot=' 34679/datarootdir/ { 34680 p 34681 q 34682} 34683/@datadir@/p 34684/@docdir@/p 34685/@infodir@/p 34686/@localedir@/p 34687/@mandir@/p' 34688case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 34689*datarootdir*) ac_datarootdir_seen=yes;; 34690*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 34691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 34692$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 34693_ACEOF 34694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34695 ac_datarootdir_hack=' 34696 s&@datadir@&$datadir&g 34697 s&@docdir@&$docdir&g 34698 s&@infodir@&$infodir&g 34699 s&@localedir@&$localedir&g 34700 s&@mandir@&$mandir&g 34701 s&\\\${datarootdir}&$datarootdir&g' ;; 34702esac 34703_ACEOF 34704 34705# Neutralize VPATH when `$srcdir' = `.'. 34706# Shell code in configure.ac might set extrasub. 34707# FIXME: do we really want to maintain this feature? 34708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34709ac_sed_extra="$ac_vpsub 34710$extrasub 34711_ACEOF 34712cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34713:t 34714/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 34715s|@configure_input@|$ac_sed_conf_input|;t t 34716s&@top_builddir@&$ac_top_builddir_sub&;t t 34717s&@top_build_prefix@&$ac_top_build_prefix&;t t 34718s&@srcdir@&$ac_srcdir&;t t 34719s&@abs_srcdir@&$ac_abs_srcdir&;t t 34720s&@top_srcdir@&$ac_top_srcdir&;t t 34721s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 34722s&@builddir@&$ac_builddir&;t t 34723s&@abs_builddir@&$ac_abs_builddir&;t t 34724s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 34725s&@INSTALL@&$ac_INSTALL&;t t 34726s&@MKDIR_P@&$ac_MKDIR_P&;t t 34727$ac_datarootdir_hack 34728" 34729eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 34730 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34731 34732test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 34733 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 34734 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 34735 "$ac_tmp/out"`; test -z "$ac_out"; } && 34736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 34737which seems to be undefined. Please make sure it is defined" >&5 34738$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 34739which seems to be undefined. Please make sure it is defined" >&2;} 34740 34741 rm -f "$ac_tmp/stdin" 34742 case $ac_file in 34743 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 34744 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 34745 esac \ 34746 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34747 ;; 34748 :H) 34749 # 34750 # CONFIG_HEADER 34751 # 34752 if test x"$ac_file" != x-; then 34753 { 34754 $as_echo "/* $configure_input */" \ 34755 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 34756 } >"$ac_tmp/config.h" \ 34757 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34758 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 34759 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 34760$as_echo "$as_me: $ac_file is unchanged" >&6;} 34761 else 34762 rm -f "$ac_file" 34763 mv "$ac_tmp/config.h" "$ac_file" \ 34764 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34765 fi 34766 else 34767 $as_echo "/* $configure_input */" \ 34768 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 34769 || as_fn_error $? "could not create -" "$LINENO" 5 34770 fi 34771# Compute "$ac_file"'s index in $config_headers. 34772_am_arg="$ac_file" 34773_am_stamp_count=1 34774for _am_header in $config_headers :; do 34775 case $_am_header in 34776 $_am_arg | $_am_arg:* ) 34777 break ;; 34778 * ) 34779 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 34780 esac 34781done 34782echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 34783$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34784 X"$_am_arg" : 'X\(//\)[^/]' \| \ 34785 X"$_am_arg" : 'X\(//\)$' \| \ 34786 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 34787$as_echo X"$_am_arg" | 34788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34789 s//\1/ 34790 q 34791 } 34792 /^X\(\/\/\)[^/].*/{ 34793 s//\1/ 34794 q 34795 } 34796 /^X\(\/\/\)$/{ 34797 s//\1/ 34798 q 34799 } 34800 /^X\(\/\).*/{ 34801 s//\1/ 34802 q 34803 } 34804 s/.*/./; q'`/stamp-h$_am_stamp_count 34805 ;; 34806 34807 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 34808$as_echo "$as_me: executing $ac_file commands" >&6;} 34809 ;; 34810 esac 34811 34812 34813 case $ac_file$ac_mode in 34814 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 34815 # Older Autoconf quotes --file arguments for eval, but not when files 34816 # are listed without --file. Let's play safe and only enable the eval 34817 # if we detect the quoting. 34818 # TODO: see whether this extra hack can be removed once we start 34819 # requiring Autoconf 2.70 or later. 34820 case $CONFIG_FILES in #( 34821 *\'*) : 34822 eval set x "$CONFIG_FILES" ;; #( 34823 *) : 34824 set x $CONFIG_FILES ;; #( 34825 *) : 34826 ;; 34827esac 34828 shift 34829 # Used to flag and report bootstrapping failures. 34830 am_rc=0 34831 for am_mf 34832 do 34833 # Strip MF so we end up with the name of the file. 34834 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 34835 # Check whether this is an Automake generated Makefile which includes 34836 # dependency-tracking related rules and includes. 34837 # Grep'ing the whole file directly is not great: AIX grep has a line 34838 # limit of 2048, but all sed's we know have understand at least 4000. 34839 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 34840 || continue 34841 am_dirpart=`$as_dirname -- "$am_mf" || 34842$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34843 X"$am_mf" : 'X\(//\)[^/]' \| \ 34844 X"$am_mf" : 'X\(//\)$' \| \ 34845 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 34846$as_echo X"$am_mf" | 34847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34848 s//\1/ 34849 q 34850 } 34851 /^X\(\/\/\)[^/].*/{ 34852 s//\1/ 34853 q 34854 } 34855 /^X\(\/\/\)$/{ 34856 s//\1/ 34857 q 34858 } 34859 /^X\(\/\).*/{ 34860 s//\1/ 34861 q 34862 } 34863 s/.*/./; q'` 34864 am_filepart=`$as_basename -- "$am_mf" || 34865$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 34866 X"$am_mf" : 'X\(//\)$' \| \ 34867 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 34868$as_echo X/"$am_mf" | 34869 sed '/^.*\/\([^/][^/]*\)\/*$/{ 34870 s//\1/ 34871 q 34872 } 34873 /^X\/\(\/\/\)$/{ 34874 s//\1/ 34875 q 34876 } 34877 /^X\/\(\/\).*/{ 34878 s//\1/ 34879 q 34880 } 34881 s/.*/./; q'` 34882 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 34883 && sed -e '/# am--include-marker/d' "$am_filepart" \ 34884 | $MAKE -f - am--depfiles" >&5 34885 (cd "$am_dirpart" \ 34886 && sed -e '/# am--include-marker/d' "$am_filepart" \ 34887 | $MAKE -f - am--depfiles) >&5 2>&5 34888 ac_status=$? 34889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34890 (exit $ac_status); } || am_rc=$? 34891 done 34892 if test $am_rc -ne 0; then 34893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34895as_fn_error $? "Something went wrong bootstrapping makefile fragments 34896 for automatic dependency tracking. If GNU make was not used, consider 34897 re-running the configure script with MAKE=\"gmake\" (or whatever is 34898 necessary). You can also try re-running configure with the 34899 '--disable-dependency-tracking' option to at least be able to build 34900 the package (albeit without support for automatic dependency tracking). 34901See \`config.log' for more details" "$LINENO" 5; } 34902 fi 34903 { am_dirpart=; unset am_dirpart;} 34904 { am_filepart=; unset am_filepart;} 34905 { am_mf=; unset am_mf;} 34906 { am_rc=; unset am_rc;} 34907 rm -f conftest-deps.mk 34908} 34909 ;; 34910 "libtool":C) 34911 34912 # See if we are running on zsh, and set the options that allow our 34913 # commands through without removal of \ escapes. 34914 if test -n "${ZSH_VERSION+set}"; then 34915 setopt NO_GLOB_SUBST 34916 fi 34917 34918 cfgfile=${ofile}T 34919 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 34920 $RM "$cfgfile" 34921 34922 cat <<_LT_EOF >> "$cfgfile" 34923#! $SHELL 34924# Generated automatically by $as_me ($PACKAGE) $VERSION 34925# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 34926# NOTE: Changes made to this file will be lost: look at ltmain.sh. 34927 34928# Provide generalized library-building support services. 34929# Written by Gordon Matzigkeit, 1996 34930 34931# Copyright (C) 2014 Free Software Foundation, Inc. 34932# This is free software; see the source for copying conditions. There is NO 34933# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 34934 34935# GNU Libtool is free software; you can redistribute it and/or modify 34936# it under the terms of the GNU General Public License as published by 34937# the Free Software Foundation; either version 2 of of the License, or 34938# (at your option) any later version. 34939# 34940# As a special exception to the GNU General Public License, if you 34941# distribute this file as part of a program or library that is built 34942# using GNU Libtool, you may include this file under the same 34943# distribution terms that you use for the rest of that program. 34944# 34945# GNU Libtool is distributed in the hope that it will be useful, but 34946# WITHOUT ANY WARRANTY; without even the implied warranty of 34947# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 34948# GNU General Public License for more details. 34949# 34950# You should have received a copy of the GNU General Public License 34951# along with this program. If not, see <http://www.gnu.org/licenses/>. 34952 34953 34954# The names of the tagged configurations supported by this script. 34955available_tags='' 34956 34957# Configured defaults for sys_lib_dlsearch_path munging. 34958: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 34959 34960# ### BEGIN LIBTOOL CONFIG 34961 34962# Which release of libtool.m4 was used? 34963macro_version=$macro_version 34964macro_revision=$macro_revision 34965 34966# Whether or not to build static libraries. 34967build_old_libs=$enable_static 34968 34969# Assembler program. 34970AS=$lt_AS 34971 34972# DLL creation program. 34973DLLTOOL=$lt_DLLTOOL 34974 34975# Object dumper program. 34976OBJDUMP=$lt_OBJDUMP 34977 34978# Whether or not to build shared libraries. 34979build_libtool_libs=$enable_shared 34980 34981# What type of objects to build. 34982pic_mode=$pic_mode 34983 34984# Whether or not to optimize for fast installation. 34985fast_install=$enable_fast_install 34986 34987# Shared archive member basename,for filename based shared library versioning on AIX. 34988shared_archive_member_spec=$shared_archive_member_spec 34989 34990# Shell to use when invoking shell scripts. 34991SHELL=$lt_SHELL 34992 34993# An echo program that protects backslashes. 34994ECHO=$lt_ECHO 34995 34996# The PATH separator for the build system. 34997PATH_SEPARATOR=$lt_PATH_SEPARATOR 34998 34999# The host system. 35000host_alias=$host_alias 35001host=$host 35002host_os=$host_os 35003 35004# The build system. 35005build_alias=$build_alias 35006build=$build 35007build_os=$build_os 35008 35009# A sed program that does not truncate output. 35010SED=$lt_SED 35011 35012# Sed that helps us avoid accidentally triggering echo(1) options like -n. 35013Xsed="\$SED -e 1s/^X//" 35014 35015# A grep program that handles long lines. 35016GREP=$lt_GREP 35017 35018# An ERE matcher. 35019EGREP=$lt_EGREP 35020 35021# A literal string matcher. 35022FGREP=$lt_FGREP 35023 35024# A BSD- or MS-compatible name lister. 35025NM=$lt_NM 35026 35027# Whether we need soft or hard links. 35028LN_S=$lt_LN_S 35029 35030# What is the maximum length of a command? 35031max_cmd_len=$max_cmd_len 35032 35033# Object file suffix (normally "o"). 35034objext=$ac_objext 35035 35036# Executable file suffix (normally ""). 35037exeext=$exeext 35038 35039# whether the shell understands "unset". 35040lt_unset=$lt_unset 35041 35042# turn spaces into newlines. 35043SP2NL=$lt_lt_SP2NL 35044 35045# turn newlines into spaces. 35046NL2SP=$lt_lt_NL2SP 35047 35048# convert \$build file names to \$host format. 35049to_host_file_cmd=$lt_cv_to_host_file_cmd 35050 35051# convert \$build files to toolchain format. 35052to_tool_file_cmd=$lt_cv_to_tool_file_cmd 35053 35054# Method to check whether dependent libraries are shared objects. 35055deplibs_check_method=$lt_deplibs_check_method 35056 35057# Command to use when deplibs_check_method = "file_magic". 35058file_magic_cmd=$lt_file_magic_cmd 35059 35060# How to find potential files when deplibs_check_method = "file_magic". 35061file_magic_glob=$lt_file_magic_glob 35062 35063# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 35064want_nocaseglob=$lt_want_nocaseglob 35065 35066# Command to associate shared and link libraries. 35067sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 35068 35069# The archiver. 35070AR=$lt_AR 35071 35072# Flags to create an archive. 35073AR_FLAGS=$lt_AR_FLAGS 35074 35075# How to feed a file listing to the archiver. 35076archiver_list_spec=$lt_archiver_list_spec 35077 35078# A symbol stripping program. 35079STRIP=$lt_STRIP 35080 35081# Commands used to install an old-style archive. 35082RANLIB=$lt_RANLIB 35083old_postinstall_cmds=$lt_old_postinstall_cmds 35084old_postuninstall_cmds=$lt_old_postuninstall_cmds 35085 35086# Whether to use a lock for old archive extraction. 35087lock_old_archive_extraction=$lock_old_archive_extraction 35088 35089# A C compiler. 35090LTCC=$lt_CC 35091 35092# LTCC compiler flags. 35093LTCFLAGS=$lt_CFLAGS 35094 35095# Take the output of nm and produce a listing of raw symbols and C names. 35096global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 35097 35098# Transform the output of nm in a proper C declaration. 35099global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 35100 35101# Transform the output of nm into a list of symbols to manually relocate. 35102global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 35103 35104# Transform the output of nm in a C name address pair. 35105global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 35106 35107# Transform the output of nm in a C name address pair when lib prefix is needed. 35108global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 35109 35110# The name lister interface. 35111nm_interface=$lt_lt_cv_nm_interface 35112 35113# Specify filename containing input files for \$NM. 35114nm_file_list_spec=$lt_nm_file_list_spec 35115 35116# The root where to search for dependent libraries,and where our libraries should be installed. 35117lt_sysroot=$lt_sysroot 35118 35119# Command to truncate a binary pipe. 35120lt_truncate_bin=$lt_lt_cv_truncate_bin 35121 35122# The name of the directory that contains temporary libtool files. 35123objdir=$objdir 35124 35125# Used to examine libraries when file_magic_cmd begins with "file". 35126MAGIC_CMD=$MAGIC_CMD 35127 35128# Must we lock files when doing compilation? 35129need_locks=$lt_need_locks 35130 35131# Manifest tool. 35132MANIFEST_TOOL=$lt_MANIFEST_TOOL 35133 35134# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 35135DSYMUTIL=$lt_DSYMUTIL 35136 35137# Tool to change global to local symbols on Mac OS X. 35138NMEDIT=$lt_NMEDIT 35139 35140# Tool to manipulate fat objects and archives on Mac OS X. 35141LIPO=$lt_LIPO 35142 35143# ldd/readelf like tool for Mach-O binaries on Mac OS X. 35144OTOOL=$lt_OTOOL 35145 35146# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 35147OTOOL64=$lt_OTOOL64 35148 35149# Old archive suffix (normally "a"). 35150libext=$libext 35151 35152# Shared library suffix (normally ".so"). 35153shrext_cmds=$lt_shrext_cmds 35154 35155# The commands to extract the exported symbol list from a shared archive. 35156extract_expsyms_cmds=$lt_extract_expsyms_cmds 35157 35158# Variables whose values should be saved in libtool wrapper scripts and 35159# restored at link time. 35160variables_saved_for_relink=$lt_variables_saved_for_relink 35161 35162# Do we need the "lib" prefix for modules? 35163need_lib_prefix=$need_lib_prefix 35164 35165# Do we need a version for libraries? 35166need_version=$need_version 35167 35168# Library versioning type. 35169version_type=$version_type 35170 35171# Shared library runtime path variable. 35172runpath_var=$runpath_var 35173 35174# Shared library path variable. 35175shlibpath_var=$shlibpath_var 35176 35177# Is shlibpath searched before the hard-coded library search path? 35178shlibpath_overrides_runpath=$shlibpath_overrides_runpath 35179 35180# Format of library name prefix. 35181libname_spec=$lt_libname_spec 35182 35183# List of archive names. First name is the real one, the rest are links. 35184# The last name is the one that the linker finds with -lNAME 35185library_names_spec=$lt_library_names_spec 35186 35187# The coded name of the library, if different from the real name. 35188soname_spec=$lt_soname_spec 35189 35190# Permission mode override for installation of shared libraries. 35191install_override_mode=$lt_install_override_mode 35192 35193# Command to use after installation of a shared archive. 35194postinstall_cmds=$lt_postinstall_cmds 35195 35196# Command to use after uninstallation of a shared archive. 35197postuninstall_cmds=$lt_postuninstall_cmds 35198 35199# Commands used to finish a libtool library installation in a directory. 35200finish_cmds=$lt_finish_cmds 35201 35202# As "finish_cmds", except a single script fragment to be evaled but 35203# not shown. 35204finish_eval=$lt_finish_eval 35205 35206# Whether we should hardcode library paths into libraries. 35207hardcode_into_libs=$hardcode_into_libs 35208 35209# Compile-time system search path for libraries. 35210sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 35211 35212# Detected run-time system search path for libraries. 35213sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 35214 35215# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 35216configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 35217 35218# Whether dlopen is supported. 35219dlopen_support=$enable_dlopen 35220 35221# Whether dlopen of programs is supported. 35222dlopen_self=$enable_dlopen_self 35223 35224# Whether dlopen of statically linked programs is supported. 35225dlopen_self_static=$enable_dlopen_self_static 35226 35227# Commands to strip libraries. 35228old_striplib=$lt_old_striplib 35229striplib=$lt_striplib 35230 35231 35232# The linker used to build libraries. 35233LD=$lt_LD 35234 35235# How to create reloadable object files. 35236reload_flag=$lt_reload_flag 35237reload_cmds=$lt_reload_cmds 35238 35239# Commands used to build an old-style archive. 35240old_archive_cmds=$lt_old_archive_cmds 35241 35242# A language specific compiler. 35243CC=$lt_compiler 35244 35245# Is the compiler the GNU compiler? 35246with_gcc=$GCC 35247 35248# Compiler flag to turn off builtin functions. 35249no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 35250 35251# Additional compiler flags for building library objects. 35252pic_flag=$lt_lt_prog_compiler_pic 35253 35254# How to pass a linker flag through the compiler. 35255wl=$lt_lt_prog_compiler_wl 35256 35257# Compiler flag to prevent dynamic linking. 35258link_static_flag=$lt_lt_prog_compiler_static 35259 35260# Does compiler simultaneously support -c and -o options? 35261compiler_c_o=$lt_lt_cv_prog_compiler_c_o 35262 35263# Whether or not to add -lc for building shared libraries. 35264build_libtool_need_lc=$archive_cmds_need_lc 35265 35266# Whether or not to disallow shared libs when runtime libs are static. 35267allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 35268 35269# Compiler flag to allow reflexive dlopens. 35270export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 35271 35272# Compiler flag to generate shared objects directly from archives. 35273whole_archive_flag_spec=$lt_whole_archive_flag_spec 35274 35275# Whether the compiler copes with passing no objects directly. 35276compiler_needs_object=$lt_compiler_needs_object 35277 35278# Create an old-style archive from a shared archive. 35279old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 35280 35281# Create a temporary old-style archive to link instead of a shared archive. 35282old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 35283 35284# Commands used to build a shared archive. 35285archive_cmds=$lt_archive_cmds 35286archive_expsym_cmds=$lt_archive_expsym_cmds 35287 35288# Commands used to build a loadable module if different from building 35289# a shared archive. 35290module_cmds=$lt_module_cmds 35291module_expsym_cmds=$lt_module_expsym_cmds 35292 35293# Whether we are building with GNU ld or not. 35294with_gnu_ld=$lt_with_gnu_ld 35295 35296# Flag that allows shared libraries with undefined symbols to be built. 35297allow_undefined_flag=$lt_allow_undefined_flag 35298 35299# Flag that enforces no undefined symbols. 35300no_undefined_flag=$lt_no_undefined_flag 35301 35302# Flag to hardcode \$libdir into a binary during linking. 35303# This must work even if \$libdir does not exist 35304hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 35305 35306# Whether we need a single "-rpath" flag with a separated argument. 35307hardcode_libdir_separator=$lt_hardcode_libdir_separator 35308 35309# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 35310# DIR into the resulting binary. 35311hardcode_direct=$hardcode_direct 35312 35313# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 35314# DIR into the resulting binary and the resulting library dependency is 35315# "absolute",i.e impossible to change by setting \$shlibpath_var if the 35316# library is relocated. 35317hardcode_direct_absolute=$hardcode_direct_absolute 35318 35319# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 35320# into the resulting binary. 35321hardcode_minus_L=$hardcode_minus_L 35322 35323# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 35324# into the resulting binary. 35325hardcode_shlibpath_var=$hardcode_shlibpath_var 35326 35327# Set to "yes" if building a shared library automatically hardcodes DIR 35328# into the library and all subsequent libraries and executables linked 35329# against it. 35330hardcode_automatic=$hardcode_automatic 35331 35332# Set to yes if linker adds runtime paths of dependent libraries 35333# to runtime path list. 35334inherit_rpath=$inherit_rpath 35335 35336# Whether libtool must link a program against all its dependency libraries. 35337link_all_deplibs=$link_all_deplibs 35338 35339# Set to "yes" if exported symbols are required. 35340always_export_symbols=$always_export_symbols 35341 35342# The commands to list exported symbols. 35343export_symbols_cmds=$lt_export_symbols_cmds 35344 35345# Symbols that should not be listed in the preloaded symbols. 35346exclude_expsyms=$lt_exclude_expsyms 35347 35348# Symbols that must always be exported. 35349include_expsyms=$lt_include_expsyms 35350 35351# Commands necessary for linking programs (against libraries) with templates. 35352prelink_cmds=$lt_prelink_cmds 35353 35354# Commands necessary for finishing linking programs. 35355postlink_cmds=$lt_postlink_cmds 35356 35357# Specify filename containing input files. 35358file_list_spec=$lt_file_list_spec 35359 35360# How to hardcode a shared library path into an executable. 35361hardcode_action=$hardcode_action 35362 35363# ### END LIBTOOL CONFIG 35364 35365_LT_EOF 35366 35367 cat <<'_LT_EOF' >> "$cfgfile" 35368 35369# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 35370 35371# func_munge_path_list VARIABLE PATH 35372# ----------------------------------- 35373# VARIABLE is name of variable containing _space_ separated list of 35374# directories to be munged by the contents of PATH, which is string 35375# having a format: 35376# "DIR[:DIR]:" 35377# string "DIR[ DIR]" will be prepended to VARIABLE 35378# ":DIR[:DIR]" 35379# string "DIR[ DIR]" will be appended to VARIABLE 35380# "DIRP[:DIRP]::[DIRA:]DIRA" 35381# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 35382# "DIRA[ DIRA]" will be appended to VARIABLE 35383# "DIR[:DIR]" 35384# VARIABLE will be replaced by "DIR[ DIR]" 35385func_munge_path_list () 35386{ 35387 case x$2 in 35388 x) 35389 ;; 35390 *:) 35391 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 35392 ;; 35393 x:*) 35394 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 35395 ;; 35396 *::*) 35397 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 35398 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 35399 ;; 35400 *) 35401 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 35402 ;; 35403 esac 35404} 35405 35406 35407# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 35408func_cc_basename () 35409{ 35410 for cc_temp in $*""; do 35411 case $cc_temp in 35412 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 35413 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 35414 \-*) ;; 35415 *) break;; 35416 esac 35417 done 35418 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 35419} 35420 35421 35422# ### END FUNCTIONS SHARED WITH CONFIGURE 35423 35424_LT_EOF 35425 35426 case $host_os in 35427 aix3*) 35428 cat <<\_LT_EOF >> "$cfgfile" 35429# AIX sometimes has problems with the GCC collect2 program. For some 35430# reason, if we set the COLLECT_NAMES environment variable, the problems 35431# vanish in a puff of smoke. 35432if test set != "${COLLECT_NAMES+set}"; then 35433 COLLECT_NAMES= 35434 export COLLECT_NAMES 35435fi 35436_LT_EOF 35437 ;; 35438 esac 35439 35440 35441ltmain=$ac_aux_dir/ltmain.sh 35442 35443 35444 # We use sed instead of cat because bash on DJGPP gets confused if 35445 # if finds mixed CR/LF and LF-only lines. Since sed operates in 35446 # text mode, it properly converts lines to CR/LF. This bash problem 35447 # is reportedly fixed, but why not run on old versions too? 35448 sed '$q' "$ltmain" >> "$cfgfile" \ 35449 || (rm -f "$cfgfile"; exit 1) 35450 35451 mv -f "$cfgfile" "$ofile" || 35452 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 35453 chmod +x "$ofile" 35454 35455 ;; 35456 "sdksyms":C) touch hw/xfree86/sdksyms.dep ;; 35457 35458 esac 35459done # for ac_tag 35460 35461 35462as_fn_exit 0 35463_ACEOF 35464ac_clean_files=$ac_clean_files_save 35465 35466test $ac_write_fail = 0 || 35467 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 35468 35469 35470# configure is writing to config.log, and then calls config.status. 35471# config.status does its own redirection, appending to config.log. 35472# Unfortunately, on DOS this fails, as config.log is still kept open 35473# by configure, so config.status won't be able to write to it; its 35474# output is simply discarded. So we exec the FD to /dev/null, 35475# effectively closing config.log, so it can be properly (re)opened and 35476# appended to by config.status. When coming back to configure, we 35477# need to make the FD available again. 35478if test "$no_create" != yes; then 35479 ac_cs_success=: 35480 ac_config_status_args= 35481 test "$silent" = yes && 35482 ac_config_status_args="$ac_config_status_args --quiet" 35483 exec 5>/dev/null 35484 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 35485 exec 5>>config.log 35486 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 35487 # would make configure fail if this is the last instruction. 35488 $ac_cs_success || as_fn_exit 1 35489fi 35490if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 35491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 35492$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 35493fi 35494 35495