configure revision 4e185dc0
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.6. 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.6' 655PACKAGE_STRING='xorg-server 1.20.6' 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 950GLX_FALSE 951GLX_TRUE 952GL_LIBS 953GL_CFLAGS 954XLIB_LIBS 955XLIB_CFLAGS 956LIBDRM_LIBS 957LIBDRM_CFLAGS 958DRI3_FALSE 959DRI3_TRUE 960XSHMFENCE_FALSE 961XSHMFENCE_TRUE 962XSHMFENCE_LIBS 963XSHMFENCE_CFLAGS 964BUSFAULT_FALSE 965BUSFAULT_TRUE 966DRI3PROTO_LIBS 967DRI3PROTO_CFLAGS 968DRI2_FALSE 969DRI2_TRUE 970DRI2PROTO_LIBS 971DRI2PROTO_CFLAGS 972DRI_FALSE 973DRI_TRUE 974CLIENTIDS_FALSE 975CLIENTIDS_TRUE 976RES_FALSE 977RES_TRUE 978SCREENSAVER_FALSE 979SCREENSAVER_TRUE 980RECORD_FALSE 981RECORD_TRUE 982MITSHM_FALSE 983MITSHM_TRUE 984COMPOSITE_FALSE 985COMPOSITE_TRUE 986XVMC_FALSE 987XVMC_TRUE 988XV_FALSE 989XV_TRUE 990CONFIG_WSCONS_FALSE 991CONFIG_WSCONS_TRUE 992NEED_DBUS_FALSE 993NEED_DBUS_TRUE 994SUID_WRAPPER_FALSE 995SUID_WRAPPER_TRUE 996SUID_WRAPPER_DIR 997SYSTEMD_LOGIND_FALSE 998SYSTEMD_LOGIND_TRUE 999CONFIG_HAL_FALSE 1000CONFIG_HAL_TRUE 1001HAL_LIBS 1002HAL_CFLAGS 1003HAVE_DBUS_FALSE 1004HAVE_DBUS_TRUE 1005DBUS_LIBS 1006DBUS_CFLAGS 1007CONFIG_UDEV_KMS_FALSE 1008CONFIG_UDEV_KMS_TRUE 1009CONFIG_UDEV_FALSE 1010CONFIG_UDEV_TRUE 1011UDEV_LIBS 1012UDEV_CFLAGS 1013HAVE_SYSTEMD_DAEMON_FALSE 1014HAVE_SYSTEMD_DAEMON_TRUE 1015SYSTEMD_DAEMON_LIBS 1016SYSTEMD_DAEMON_CFLAGS 1017PTHREAD_CFLAGS 1018PTHREAD_LIBS 1019PTHREAD_CC 1020ax_pthread_config 1021SDK_REQUIRED_MODULES 1022PIXMAN_LIBS 1023PIXMAN_CFLAGS 1024INT10_STUB_FALSE 1025INT10_STUB_TRUE 1026INT10_X86EMU_FALSE 1027INT10_X86EMU_TRUE 1028INT10_VM86_FALSE 1029INT10_VM86_TRUE 1030SECURE_RPC_FALSE 1031SECURE_RPC_TRUE 1032INSTALL_SETUID_FALSE 1033INSTALL_SETUID_TRUE 1034XQUARTZ_SPARKLE_FEED_URL 1035XQUARTZ_SPARKLE 1036BUNDLE_VERSION_STRING 1037BUNDLE_VERSION 1038BUNDLE_ID_PREFIX 1039APPLE_APPLICATION_NAME 1040APPLE_APPLICATIONS_DIR 1041FONT100DPIDIR 1042FONT75DPIDIR 1043FONTTYPE1DIR 1044FONTTTFDIR 1045FONTOTFDIR 1046FONTMISCDIR 1047FONTROOTDIR 1048SPARC64_VIDEO_FALSE 1049SPARC64_VIDEO_TRUE 1050PPC_VIDEO_FALSE 1051PPC_VIDEO_TRUE 1052I386_VIDEO_FALSE 1053I386_VIDEO_TRUE 1054ARM_VIDEO_FALSE 1055ARM_VIDEO_TRUE 1056ALPHA_VIDEO_FALSE 1057ALPHA_VIDEO_TRUE 1058GLX_ARCH_DEFINES 1059BSD_KQUEUE_APM_FALSE 1060BSD_KQUEUE_APM_TRUE 1061BSD_APM_FALSE 1062BSD_APM_TRUE 1063FREEBSD_KLDLOAD_FALSE 1064FREEBSD_KLDLOAD_TRUE 1065FBDEVHW_FALSE 1066FBDEVHW_TRUE 1067AGP_FALSE 1068AGP_TRUE 1069POLL_FALSE 1070POLL_TRUE 1071LIBOBJS 1072DLOPEN_LIBS 1073SPECIAL_DTRACE_OBJECTS_FALSE 1074SPECIAL_DTRACE_OBJECTS_TRUE 1075XSERVER_DTRACE_FALSE 1076XSERVER_DTRACE_TRUE 1077DTRACE 1078TRADITIONALCPPFLAGS 1079RAWCPPFLAGS 1080RAWCPP 1081YFLAGS 1082YACC 1083LEXLIB 1084LEX_OUTPUT_ROOT 1085LEX 1086LT_SYS_LIBRARY_PATH 1087OTOOL64 1088OTOOL 1089LIPO 1090NMEDIT 1091DSYMUTIL 1092MANIFEST_TOOL 1093RANLIB 1094ac_ct_AR 1095AR 1096NM 1097ac_ct_DUMPBIN 1098DUMPBIN 1099LD 1100FGREP 1101LIBTOOL 1102OBJDUMP 1103DLLTOOL 1104AS 1105LN_S 1106am__fastdepCCAS_FALSE 1107am__fastdepCCAS_TRUE 1108CCASDEPMODE 1109CCASFLAGS 1110CCAS 1111HAVE_LD_WRAP_FALSE 1112HAVE_LD_WRAP_TRUE 1113ENABLE_UNIT_TESTS_FALSE 1114ENABLE_UNIT_TESTS_TRUE 1115XORG_MALLOC_DEBUG_ENV 1116HAVE_XSLTPROC_FALSE 1117HAVE_XSLTPROC_TRUE 1118XSLTPROC 1119HAVE_FOP_FALSE 1120HAVE_FOP_TRUE 1121FOP 1122HAVE_XMLTO_FALSE 1123HAVE_XMLTO_TRUE 1124HAVE_XMLTO_TEXT_FALSE 1125HAVE_XMLTO_TEXT_TRUE 1126XMLTO 1127ENABLE_DEVEL_DOCS_FALSE 1128ENABLE_DEVEL_DOCS_TRUE 1129ENABLE_DOCS_FALSE 1130ENABLE_DOCS_TRUE 1131HAVE_STYLESHEETS_FALSE 1132HAVE_STYLESHEETS_TRUE 1133XSL_STYLESHEET 1134STYLESHEET_SRCDIR 1135XORG_SGML_PATH 1136HAVE_DOXYGEN_FALSE 1137HAVE_DOXYGEN_TRUE 1138HAVE_DOT_FALSE 1139HAVE_DOT_TRUE 1140HAVE_DOT 1141DOT 1142DOXYGEN 1143MAN_SUBSTS 1144XORG_MAN_PAGE 1145ADMIN_MAN_DIR 1146DRIVER_MAN_DIR 1147MISC_MAN_DIR 1148FILE_MAN_DIR 1149LIB_MAN_DIR 1150APP_MAN_DIR 1151ADMIN_MAN_SUFFIX 1152DRIVER_MAN_SUFFIX 1153MISC_MAN_SUFFIX 1154FILE_MAN_SUFFIX 1155LIB_MAN_SUFFIX 1156APP_MAN_SUFFIX 1157SED 1158host_os 1159host_vendor 1160host_cpu 1161host 1162build_os 1163build_vendor 1164build_cpu 1165build 1166INSTALL_CMD 1167PKG_CONFIG_LIBDIR 1168PKG_CONFIG_PATH 1169PKG_CONFIG 1170CHANGELOG_CMD 1171STRICT_CFLAGS 1172CWARNFLAGS 1173BASE_CFLAGS 1174EGREP 1175GREP 1176CPP 1177am__fastdepCC_FALSE 1178am__fastdepCC_TRUE 1179CCDEPMODE 1180am__nodep 1181AMDEPBACKSLASH 1182AMDEP_FALSE 1183AMDEP_TRUE 1184am__include 1185DEPDIR 1186OBJEXT 1187EXEEXT 1188ac_ct_CC 1189CPPFLAGS 1190LDFLAGS 1191CFLAGS 1192CC 1193AM_BACKSLASH 1194AM_DEFAULT_VERBOSITY 1195AM_DEFAULT_V 1196AM_V 1197am__untar 1198am__tar 1199AMTAR 1200am__leading_dot 1201SET_MAKE 1202AWK 1203mkdir_p 1204MKDIR_P 1205INSTALL_STRIP_PROGRAM 1206STRIP 1207install_sh 1208MAKEINFO 1209AUTOHEADER 1210AUTOMAKE 1211AUTOCONF 1212ACLOCAL 1213VERSION 1214PACKAGE 1215CYGPATH_W 1216am__isrc 1217INSTALL_DATA 1218INSTALL_SCRIPT 1219INSTALL_PROGRAM 1220target_alias 1221host_alias 1222build_alias 1223LIBS 1224ECHO_T 1225ECHO_N 1226ECHO_C 1227DEFS 1228mandir 1229localedir 1230libdir 1231psdir 1232pdfdir 1233dvidir 1234htmldir 1235infodir 1236docdir 1237oldincludedir 1238includedir 1239localstatedir 1240sharedstatedir 1241sysconfdir 1242datadir 1243datarootdir 1244libexecdir 1245sbindir 1246bindir 1247program_transform_name 1248prefix 1249exec_prefix 1250PACKAGE_URL 1251PACKAGE_BUGREPORT 1252PACKAGE_STRING 1253PACKAGE_VERSION 1254PACKAGE_TARNAME 1255PACKAGE_NAME 1256PATH_SEPARATOR 1257SHELL 1258am__quote' 1259ac_subst_files='' 1260ac_user_opts=' 1261enable_option_checking 1262enable_silent_rules 1263enable_dependency_tracking 1264enable_selective_werror 1265enable_strict_compilation 1266with_doxygen 1267enable_docs 1268enable_devel_docs 1269with_xmlto 1270with_fop 1271with_xsltproc 1272enable_unit_tests 1273enable_static 1274enable_shared 1275with_pic 1276enable_fast_install 1277with_aix_soname 1278with_gnu_ld 1279with_sysroot 1280enable_libtool_lock 1281enable_largefile 1282with_dtrace 1283enable_werror 1284enable_debug 1285with_int10 1286with_vendor_name 1287with_vendor_name_short 1288with_vendor_web 1289with_module_dir 1290with_log_dir 1291with_builder_addr 1292with_os_name 1293with_os_vendor 1294with_builderstring 1295enable_listen_tcp 1296enable_listen_unix 1297enable_listen_local 1298with_fallback_input_driver 1299with_fontrootdir 1300with_fontmiscdir 1301with_fontotfdir 1302with_fontttfdir 1303with_fonttype1dir 1304with_font75dpidir 1305with_font100dpidir 1306with_default_font_path 1307with_xkb_path 1308with_xkb_output 1309with_default_xkb_rules 1310with_default_xkb_model 1311with_default_xkb_layout 1312with_default_xkb_variant 1313with_default_xkb_options 1314with_serverconfig_path 1315with_apple_applications_dir 1316with_apple_application_name 1317with_bundle_id_prefix 1318with_bundle_version 1319with_bundle_version_string 1320enable_sparkle 1321with_sparkle_feed_url 1322enable_visibility 1323with_khronos_spec_dir 1324enable_composite 1325enable_mitshm 1326enable_xres 1327enable_record 1328enable_xv 1329enable_xvmc 1330enable_dga 1331enable_screensaver 1332enable_xdmcp 1333enable_xdm_auth_1 1334enable_glx 1335enable_dri 1336enable_dri2 1337enable_dri3 1338enable_present 1339enable_xinerama 1340enable_xf86vidmode 1341enable_xace 1342enable_xselinux 1343enable_xcsecurity 1344enable_dbe 1345enable_xf86bigfont 1346enable_dpms 1347enable_config_udev 1348enable_config_udev_kms 1349enable_config_hal 1350enable_config_wscons 1351enable_xfree86_utils 1352enable_vgahw 1353enable_vbe 1354enable_int10_module 1355enable_windowswm 1356enable_windowsdri 1357enable_libdrm 1358enable_clientids 1359enable_pciaccess 1360enable_linux_acpi 1361enable_linux_apm 1362enable_systemd_logind 1363enable_suid_wrapper 1364enable_xorg 1365enable_dmx 1366enable_xvfb 1367enable_xnest 1368enable_xquartz 1369enable_xwayland 1370enable_xwayland_eglstream 1371enable_standalone_xpbproxy 1372enable_xwin 1373enable_glamor 1374enable_kdrive 1375enable_xephyr 1376enable_libunwind 1377enable_xshmfence 1378enable_install_setuid 1379enable_unix_transport 1380enable_tcp_transport 1381enable_ipv6 1382enable_local_transport 1383enable_secure_rpc 1384enable_input_thread 1385with_systemd_daemon 1386enable_xtrans_send_fds 1387with_xkb_bin_directory 1388with_sha1 1389' 1390 ac_precious_vars='build_alias 1391host_alias 1392target_alias 1393CC 1394CFLAGS 1395LDFLAGS 1396LIBS 1397CPPFLAGS 1398CPP 1399PKG_CONFIG 1400PKG_CONFIG_PATH 1401PKG_CONFIG_LIBDIR 1402DOXYGEN 1403DOT 1404XMLTO 1405FOP 1406XSLTPROC 1407XORG_MALLOC_DEBUG_ENV 1408CCAS 1409CCASFLAGS 1410LT_SYS_LIBRARY_PATH 1411YACC 1412YFLAGS 1413PIXMAN_CFLAGS 1414PIXMAN_LIBS 1415SYSTEMD_DAEMON_CFLAGS 1416SYSTEMD_DAEMON_LIBS 1417UDEV_CFLAGS 1418UDEV_LIBS 1419DBUS_CFLAGS 1420DBUS_LIBS 1421HAL_CFLAGS 1422HAL_LIBS 1423DRI2PROTO_CFLAGS 1424DRI2PROTO_LIBS 1425DRI3PROTO_CFLAGS 1426DRI3PROTO_LIBS 1427XSHMFENCE_CFLAGS 1428XSHMFENCE_LIBS 1429LIBDRM_CFLAGS 1430LIBDRM_LIBS 1431XLIB_CFLAGS 1432XLIB_LIBS 1433GL_CFLAGS 1434GL_LIBS 1435SELINUX_CFLAGS 1436SELINUX_LIBS 1437XDMCP_CFLAGS 1438XDMCP_LIBS 1439LIBSHA1_CFLAGS 1440LIBSHA1_LIBS 1441OPENSSL_CFLAGS 1442OPENSSL_LIBS 1443XSERVERCFLAGS_CFLAGS 1444XSERVERCFLAGS_LIBS 1445XSERVERLIBS_CFLAGS 1446XSERVERLIBS_LIBS 1447LIBUNWIND_CFLAGS 1448LIBUNWIND_LIBS 1449XNESTMODULES_CFLAGS 1450XNESTMODULES_LIBS 1451PCIACCESS_CFLAGS 1452PCIACCESS_LIBS 1453DGA_CFLAGS 1454DGA_LIBS 1455XORG_MODULES_CFLAGS 1456XORG_MODULES_LIBS 1457GLAMOR_CFLAGS 1458GLAMOR_LIBS 1459GBM_CFLAGS 1460GBM_LIBS 1461XWINMODULES_CFLAGS 1462XWINMODULES_LIBS 1463WINDOWSWM_CFLAGS 1464WINDOWSWM_LIBS 1465WINDOWSDRI_CFLAGS 1466WINDOWSDRI_LIBS 1467KHRONOS_OPENGL_REGISTRY_CFLAGS 1468KHRONOS_OPENGL_REGISTRY_LIBS 1469XPBPROXY_CFLAGS 1470XPBPROXY_LIBS 1471DMXMODULES_CFLAGS 1472DMXMODULES_LIBS 1473XDMXCONFIG_DEP_CFLAGS 1474XDMXCONFIG_DEP_LIBS 1475DMXEXAMPLES_DEP_CFLAGS 1476DMXEXAMPLES_DEP_LIBS 1477DMXXMUEXAMPLES_DEP_CFLAGS 1478DMXXMUEXAMPLES_DEP_LIBS 1479DMXXIEXAMPLES_DEP_CFLAGS 1480DMXXIEXAMPLES_DEP_LIBS 1481XTSTEXAMPLES_DEP_CFLAGS 1482XTSTEXAMPLES_DEP_LIBS 1483XRESEXAMPLES_DEP_CFLAGS 1484XRESEXAMPLES_DEP_LIBS 1485X11EXAMPLES_DEP_CFLAGS 1486X11EXAMPLES_DEP_LIBS 1487XEPHYR_CFLAGS 1488XEPHYR_LIBS 1489XWAYLANDMODULES_CFLAGS 1490XWAYLANDMODULES_LIBS 1491WAYLAND_EGLSTREAM_CFLAGS 1492WAYLAND_EGLSTREAM_LIBS 1493WAYLAND_SCANNER_CFLAGS 1494WAYLAND_SCANNER_LIBS' 1495 1496 1497# Initialize some variables set by options. 1498ac_init_help= 1499ac_init_version=false 1500ac_unrecognized_opts= 1501ac_unrecognized_sep= 1502# The variables have the same names as the options, with 1503# dashes changed to underlines. 1504cache_file=/dev/null 1505exec_prefix=NONE 1506no_create= 1507no_recursion= 1508prefix=NONE 1509program_prefix=NONE 1510program_suffix=NONE 1511program_transform_name=s,x,x, 1512silent= 1513site= 1514srcdir= 1515verbose= 1516x_includes=NONE 1517x_libraries=NONE 1518 1519# Installation directory options. 1520# These are left unexpanded so users can "make install exec_prefix=/foo" 1521# and all the variables that are supposed to be based on exec_prefix 1522# by default will actually change. 1523# Use braces instead of parens because sh, perl, etc. also accept them. 1524# (The list follows the same order as the GNU Coding Standards.) 1525bindir='${exec_prefix}/bin' 1526sbindir='${exec_prefix}/sbin' 1527libexecdir='${exec_prefix}/libexec' 1528datarootdir='${prefix}/share' 1529datadir='${datarootdir}' 1530sysconfdir='${prefix}/etc' 1531sharedstatedir='${prefix}/com' 1532localstatedir='${prefix}/var' 1533includedir='${prefix}/include' 1534oldincludedir='/usr/include' 1535docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1536infodir='${datarootdir}/info' 1537htmldir='${docdir}' 1538dvidir='${docdir}' 1539pdfdir='${docdir}' 1540psdir='${docdir}' 1541libdir='${exec_prefix}/lib' 1542localedir='${datarootdir}/locale' 1543mandir='${datarootdir}/man' 1544 1545ac_prev= 1546ac_dashdash= 1547for ac_option 1548do 1549 # If the previous option needs an argument, assign it. 1550 if test -n "$ac_prev"; then 1551 eval $ac_prev=\$ac_option 1552 ac_prev= 1553 continue 1554 fi 1555 1556 case $ac_option in 1557 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1558 *=) ac_optarg= ;; 1559 *) ac_optarg=yes ;; 1560 esac 1561 1562 # Accept the important Cygnus configure options, so we can diagnose typos. 1563 1564 case $ac_dashdash$ac_option in 1565 --) 1566 ac_dashdash=yes ;; 1567 1568 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1569 ac_prev=bindir ;; 1570 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1571 bindir=$ac_optarg ;; 1572 1573 -build | --build | --buil | --bui | --bu) 1574 ac_prev=build_alias ;; 1575 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1576 build_alias=$ac_optarg ;; 1577 1578 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1579 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1580 ac_prev=cache_file ;; 1581 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1582 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1583 cache_file=$ac_optarg ;; 1584 1585 --config-cache | -C) 1586 cache_file=config.cache ;; 1587 1588 -datadir | --datadir | --datadi | --datad) 1589 ac_prev=datadir ;; 1590 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1591 datadir=$ac_optarg ;; 1592 1593 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1594 | --dataroo | --dataro | --datar) 1595 ac_prev=datarootdir ;; 1596 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1597 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1598 datarootdir=$ac_optarg ;; 1599 1600 -disable-* | --disable-*) 1601 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1602 # Reject names that are not valid shell variable names. 1603 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1604 as_fn_error $? "invalid feature name: $ac_useropt" 1605 ac_useropt_orig=$ac_useropt 1606 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1607 case $ac_user_opts in 1608 *" 1609"enable_$ac_useropt" 1610"*) ;; 1611 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1612 ac_unrecognized_sep=', ';; 1613 esac 1614 eval enable_$ac_useropt=no ;; 1615 1616 -docdir | --docdir | --docdi | --doc | --do) 1617 ac_prev=docdir ;; 1618 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1619 docdir=$ac_optarg ;; 1620 1621 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1622 ac_prev=dvidir ;; 1623 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1624 dvidir=$ac_optarg ;; 1625 1626 -enable-* | --enable-*) 1627 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1628 # Reject names that are not valid shell variable names. 1629 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1630 as_fn_error $? "invalid feature name: $ac_useropt" 1631 ac_useropt_orig=$ac_useropt 1632 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1633 case $ac_user_opts in 1634 *" 1635"enable_$ac_useropt" 1636"*) ;; 1637 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1638 ac_unrecognized_sep=', ';; 1639 esac 1640 eval enable_$ac_useropt=\$ac_optarg ;; 1641 1642 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1643 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1644 | --exec | --exe | --ex) 1645 ac_prev=exec_prefix ;; 1646 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1647 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1648 | --exec=* | --exe=* | --ex=*) 1649 exec_prefix=$ac_optarg ;; 1650 1651 -gas | --gas | --ga | --g) 1652 # Obsolete; use --with-gas. 1653 with_gas=yes ;; 1654 1655 -help | --help | --hel | --he | -h) 1656 ac_init_help=long ;; 1657 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1658 ac_init_help=recursive ;; 1659 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1660 ac_init_help=short ;; 1661 1662 -host | --host | --hos | --ho) 1663 ac_prev=host_alias ;; 1664 -host=* | --host=* | --hos=* | --ho=*) 1665 host_alias=$ac_optarg ;; 1666 1667 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1668 ac_prev=htmldir ;; 1669 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1670 | --ht=*) 1671 htmldir=$ac_optarg ;; 1672 1673 -includedir | --includedir | --includedi | --included | --include \ 1674 | --includ | --inclu | --incl | --inc) 1675 ac_prev=includedir ;; 1676 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1677 | --includ=* | --inclu=* | --incl=* | --inc=*) 1678 includedir=$ac_optarg ;; 1679 1680 -infodir | --infodir | --infodi | --infod | --info | --inf) 1681 ac_prev=infodir ;; 1682 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1683 infodir=$ac_optarg ;; 1684 1685 -libdir | --libdir | --libdi | --libd) 1686 ac_prev=libdir ;; 1687 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1688 libdir=$ac_optarg ;; 1689 1690 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1691 | --libexe | --libex | --libe) 1692 ac_prev=libexecdir ;; 1693 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1694 | --libexe=* | --libex=* | --libe=*) 1695 libexecdir=$ac_optarg ;; 1696 1697 -localedir | --localedir | --localedi | --localed | --locale) 1698 ac_prev=localedir ;; 1699 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1700 localedir=$ac_optarg ;; 1701 1702 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1703 | --localstate | --localstat | --localsta | --localst | --locals) 1704 ac_prev=localstatedir ;; 1705 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1706 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1707 localstatedir=$ac_optarg ;; 1708 1709 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1710 ac_prev=mandir ;; 1711 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1712 mandir=$ac_optarg ;; 1713 1714 -nfp | --nfp | --nf) 1715 # Obsolete; use --without-fp. 1716 with_fp=no ;; 1717 1718 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1719 | --no-cr | --no-c | -n) 1720 no_create=yes ;; 1721 1722 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1723 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1724 no_recursion=yes ;; 1725 1726 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1727 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1728 | --oldin | --oldi | --old | --ol | --o) 1729 ac_prev=oldincludedir ;; 1730 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1731 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1732 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1733 oldincludedir=$ac_optarg ;; 1734 1735 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1736 ac_prev=prefix ;; 1737 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1738 prefix=$ac_optarg ;; 1739 1740 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1741 | --program-pre | --program-pr | --program-p) 1742 ac_prev=program_prefix ;; 1743 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1744 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1745 program_prefix=$ac_optarg ;; 1746 1747 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1748 | --program-suf | --program-su | --program-s) 1749 ac_prev=program_suffix ;; 1750 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1751 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1752 program_suffix=$ac_optarg ;; 1753 1754 -program-transform-name | --program-transform-name \ 1755 | --program-transform-nam | --program-transform-na \ 1756 | --program-transform-n | --program-transform- \ 1757 | --program-transform | --program-transfor \ 1758 | --program-transfo | --program-transf \ 1759 | --program-trans | --program-tran \ 1760 | --progr-tra | --program-tr | --program-t) 1761 ac_prev=program_transform_name ;; 1762 -program-transform-name=* | --program-transform-name=* \ 1763 | --program-transform-nam=* | --program-transform-na=* \ 1764 | --program-transform-n=* | --program-transform-=* \ 1765 | --program-transform=* | --program-transfor=* \ 1766 | --program-transfo=* | --program-transf=* \ 1767 | --program-trans=* | --program-tran=* \ 1768 | --progr-tra=* | --program-tr=* | --program-t=*) 1769 program_transform_name=$ac_optarg ;; 1770 1771 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1772 ac_prev=pdfdir ;; 1773 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1774 pdfdir=$ac_optarg ;; 1775 1776 -psdir | --psdir | --psdi | --psd | --ps) 1777 ac_prev=psdir ;; 1778 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1779 psdir=$ac_optarg ;; 1780 1781 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1782 | -silent | --silent | --silen | --sile | --sil) 1783 silent=yes ;; 1784 1785 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1786 ac_prev=sbindir ;; 1787 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1788 | --sbi=* | --sb=*) 1789 sbindir=$ac_optarg ;; 1790 1791 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1792 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1793 | --sharedst | --shareds | --shared | --share | --shar \ 1794 | --sha | --sh) 1795 ac_prev=sharedstatedir ;; 1796 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1797 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1798 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1799 | --sha=* | --sh=*) 1800 sharedstatedir=$ac_optarg ;; 1801 1802 -site | --site | --sit) 1803 ac_prev=site ;; 1804 -site=* | --site=* | --sit=*) 1805 site=$ac_optarg ;; 1806 1807 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1808 ac_prev=srcdir ;; 1809 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1810 srcdir=$ac_optarg ;; 1811 1812 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1813 | --syscon | --sysco | --sysc | --sys | --sy) 1814 ac_prev=sysconfdir ;; 1815 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1816 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1817 sysconfdir=$ac_optarg ;; 1818 1819 -target | --target | --targe | --targ | --tar | --ta | --t) 1820 ac_prev=target_alias ;; 1821 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1822 target_alias=$ac_optarg ;; 1823 1824 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1825 verbose=yes ;; 1826 1827 -version | --version | --versio | --versi | --vers | -V) 1828 ac_init_version=: ;; 1829 1830 -with-* | --with-*) 1831 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1832 # Reject names that are not valid shell variable names. 1833 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1834 as_fn_error $? "invalid package name: $ac_useropt" 1835 ac_useropt_orig=$ac_useropt 1836 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1837 case $ac_user_opts in 1838 *" 1839"with_$ac_useropt" 1840"*) ;; 1841 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1842 ac_unrecognized_sep=', ';; 1843 esac 1844 eval with_$ac_useropt=\$ac_optarg ;; 1845 1846 -without-* | --without-*) 1847 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1848 # Reject names that are not valid shell variable names. 1849 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1850 as_fn_error $? "invalid package name: $ac_useropt" 1851 ac_useropt_orig=$ac_useropt 1852 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1853 case $ac_user_opts in 1854 *" 1855"with_$ac_useropt" 1856"*) ;; 1857 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1858 ac_unrecognized_sep=', ';; 1859 esac 1860 eval with_$ac_useropt=no ;; 1861 1862 --x) 1863 # Obsolete; use --with-x. 1864 with_x=yes ;; 1865 1866 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1867 | --x-incl | --x-inc | --x-in | --x-i) 1868 ac_prev=x_includes ;; 1869 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1870 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1871 x_includes=$ac_optarg ;; 1872 1873 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1874 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1875 ac_prev=x_libraries ;; 1876 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1877 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1878 x_libraries=$ac_optarg ;; 1879 1880 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1881Try \`$0 --help' for more information" 1882 ;; 1883 1884 *=*) 1885 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1886 # Reject names that are not valid shell variable names. 1887 case $ac_envvar in #( 1888 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1889 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1890 esac 1891 eval $ac_envvar=\$ac_optarg 1892 export $ac_envvar ;; 1893 1894 *) 1895 # FIXME: should be removed in autoconf 3.0. 1896 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1897 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1898 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1899 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1900 ;; 1901 1902 esac 1903done 1904 1905if test -n "$ac_prev"; then 1906 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1907 as_fn_error $? "missing argument to $ac_option" 1908fi 1909 1910if test -n "$ac_unrecognized_opts"; then 1911 case $enable_option_checking in 1912 no) ;; 1913 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1914 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1915 esac 1916fi 1917 1918# Check all directory arguments for consistency. 1919for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1920 datadir sysconfdir sharedstatedir localstatedir includedir \ 1921 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1922 libdir localedir mandir 1923do 1924 eval ac_val=\$$ac_var 1925 # Remove trailing slashes. 1926 case $ac_val in 1927 */ ) 1928 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1929 eval $ac_var=\$ac_val;; 1930 esac 1931 # Be sure to have absolute directory names. 1932 case $ac_val in 1933 [\\/$]* | ?:[\\/]* ) continue;; 1934 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1935 esac 1936 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1937done 1938 1939# There might be people who depend on the old broken behavior: `$host' 1940# used to hold the argument of --host etc. 1941# FIXME: To remove some day. 1942build=$build_alias 1943host=$host_alias 1944target=$target_alias 1945 1946# FIXME: To remove some day. 1947if test "x$host_alias" != x; then 1948 if test "x$build_alias" = x; then 1949 cross_compiling=maybe 1950 elif test "x$build_alias" != "x$host_alias"; then 1951 cross_compiling=yes 1952 fi 1953fi 1954 1955ac_tool_prefix= 1956test -n "$host_alias" && ac_tool_prefix=$host_alias- 1957 1958test "$silent" = yes && exec 6>/dev/null 1959 1960 1961ac_pwd=`pwd` && test -n "$ac_pwd" && 1962ac_ls_di=`ls -di .` && 1963ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1964 as_fn_error $? "working directory cannot be determined" 1965test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1966 as_fn_error $? "pwd does not report name of working directory" 1967 1968 1969# Find the source files, if location was not specified. 1970if test -z "$srcdir"; then 1971 ac_srcdir_defaulted=yes 1972 # Try the directory containing this script, then the parent directory. 1973 ac_confdir=`$as_dirname -- "$as_myself" || 1974$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1975 X"$as_myself" : 'X\(//\)[^/]' \| \ 1976 X"$as_myself" : 'X\(//\)$' \| \ 1977 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1978$as_echo X"$as_myself" | 1979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1980 s//\1/ 1981 q 1982 } 1983 /^X\(\/\/\)[^/].*/{ 1984 s//\1/ 1985 q 1986 } 1987 /^X\(\/\/\)$/{ 1988 s//\1/ 1989 q 1990 } 1991 /^X\(\/\).*/{ 1992 s//\1/ 1993 q 1994 } 1995 s/.*/./; q'` 1996 srcdir=$ac_confdir 1997 if test ! -r "$srcdir/$ac_unique_file"; then 1998 srcdir=.. 1999 fi 2000else 2001 ac_srcdir_defaulted=no 2002fi 2003if test ! -r "$srcdir/$ac_unique_file"; then 2004 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 2005 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 2006fi 2007ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 2008ac_abs_confdir=`( 2009 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 2010 pwd)` 2011# When building in place, set srcdir=. 2012if test "$ac_abs_confdir" = "$ac_pwd"; then 2013 srcdir=. 2014fi 2015# Remove unnecessary trailing slashes from srcdir. 2016# Double slashes in file names in object file debugging info 2017# mess up M-x gdb in Emacs. 2018case $srcdir in 2019*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 2020esac 2021for ac_var in $ac_precious_vars; do 2022 eval ac_env_${ac_var}_set=\${${ac_var}+set} 2023 eval ac_env_${ac_var}_value=\$${ac_var} 2024 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 2025 eval ac_cv_env_${ac_var}_value=\$${ac_var} 2026done 2027 2028# 2029# Report the --help message. 2030# 2031if test "$ac_init_help" = "long"; then 2032 # Omit some internal or obsolete options to make the list less imposing. 2033 # This message is too long to be a string in the A/UX 3.1 sh. 2034 cat <<_ACEOF 2035\`configure' configures xorg-server 1.20.6 to adapt to many kinds of systems. 2036 2037Usage: $0 [OPTION]... [VAR=VALUE]... 2038 2039To assign environment variables (e.g., CC, CFLAGS...), specify them as 2040VAR=VALUE. See below for descriptions of some of the useful variables. 2041 2042Defaults for the options are specified in brackets. 2043 2044Configuration: 2045 -h, --help display this help and exit 2046 --help=short display options specific to this package 2047 --help=recursive display the short help of all the included packages 2048 -V, --version display version information and exit 2049 -q, --quiet, --silent do not print \`checking ...' messages 2050 --cache-file=FILE cache test results in FILE [disabled] 2051 -C, --config-cache alias for \`--cache-file=config.cache' 2052 -n, --no-create do not create output files 2053 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 2054 2055Installation directories: 2056 --prefix=PREFIX install architecture-independent files in PREFIX 2057 [$ac_default_prefix] 2058 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 2059 [PREFIX] 2060 2061By default, \`make install' will install all the files in 2062\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 2063an installation prefix other than \`$ac_default_prefix' using \`--prefix', 2064for instance \`--prefix=\$HOME'. 2065 2066For better control, use the options below. 2067 2068Fine tuning of the installation directories: 2069 --bindir=DIR user executables [EPREFIX/bin] 2070 --sbindir=DIR system admin executables [EPREFIX/sbin] 2071 --libexecdir=DIR program executables [EPREFIX/libexec] 2072 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 2073 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 2074 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 2075 --libdir=DIR object code libraries [EPREFIX/lib] 2076 --includedir=DIR C header files [PREFIX/include] 2077 --oldincludedir=DIR C header files for non-gcc [/usr/include] 2078 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 2079 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 2080 --infodir=DIR info documentation [DATAROOTDIR/info] 2081 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 2082 --mandir=DIR man documentation [DATAROOTDIR/man] 2083 --docdir=DIR documentation root [DATAROOTDIR/doc/xorg-server] 2084 --htmldir=DIR html documentation [DOCDIR] 2085 --dvidir=DIR dvi documentation [DOCDIR] 2086 --pdfdir=DIR pdf documentation [DOCDIR] 2087 --psdir=DIR ps documentation [DOCDIR] 2088_ACEOF 2089 2090 cat <<\_ACEOF 2091 2092Program names: 2093 --program-prefix=PREFIX prepend PREFIX to installed program names 2094 --program-suffix=SUFFIX append SUFFIX to installed program names 2095 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 2096 2097System types: 2098 --build=BUILD configure for building on BUILD [guessed] 2099 --host=HOST cross-compile to build programs to run on HOST [BUILD] 2100_ACEOF 2101fi 2102 2103if test -n "$ac_init_help"; then 2104 case $ac_init_help in 2105 short | recursive ) echo "Configuration of xorg-server 1.20.6:";; 2106 esac 2107 cat <<\_ACEOF 2108 2109Optional Features: 2110 --disable-option-checking ignore unrecognized --enable/--with options 2111 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 2112 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 2113 --enable-silent-rules less verbose build output (undo: "make V=1") 2114 --disable-silent-rules verbose build output (undo: "make V=0") 2115 --enable-dependency-tracking 2116 do not reject slow dependency extractors 2117 --disable-dependency-tracking 2118 speeds up one-time build 2119 --disable-selective-werror 2120 Turn off selective compiler errors. (default: 2121 enabled) 2122 --enable-strict-compilation 2123 Enable all warnings from compiler and make them 2124 errors (default: disabled) 2125 --enable-docs Enable building the documentation (default: yes) 2126 --enable-devel-docs Enable building the developer documentation 2127 (default: yes) 2128 --enable-unit-tests Enable building unit test cases (default: auto) 2129 --enable-static[=PKGS] build static libraries [default=no] 2130 --enable-shared[=PKGS] build shared libraries [default=yes] 2131 --enable-fast-install[=PKGS] 2132 optimize for fast installation [default=yes] 2133 --disable-libtool-lock avoid locking (might break parallel builds) 2134 --disable-largefile omit support for large files 2135 --enable-werror Obsolete - use --enable-strict-compilation instead 2136 --enable-debug Enable debugging (default: disabled) 2137 --enable-listen-tcp Listen on TCP by default (default:disabled) 2138 --disable-listen-unix Listen on Unix by default (default:enabled) 2139 --disable-listen-local Listen on local by default (default:enabled) 2140 --enable-sparkle Enable updating of X11.app using the Sparkle 2141 Framework (default: disabled) 2142 --enable-visibility Enable symbol visibility (default: auto) 2143 --disable-composite Build Composite extension (default: enabled) 2144 --disable-mitshm Build SHM extension (default: auto) 2145 --disable-xres Build XRes extension (default: enabled) 2146 --disable-record Build Record extension (default: enabled) 2147 --disable-xv Build Xv extension (default: enabled) 2148 --disable-xvmc Build XvMC extension (default: enabled) 2149 --disable-dga Build DGA extension (default: auto) 2150 --disable-screensaver Build ScreenSaver extension (default: enabled) 2151 --disable-xdmcp Build XDMCP extension (default: auto) 2152 --disable-xdm-auth-1 Build XDM-Auth-1 extension (default: auto) 2153 --disable-glx Build GLX extension (default: enabled) 2154 --enable-dri Build DRI extension (default: auto) 2155 --enable-dri2 Build DRI2 extension (default: auto) 2156 --enable-dri3 Build DRI3 extension (default: auto) 2157 --disable-present Build Present extension (default: enabled) 2158 --disable-xinerama Build Xinerama extension (default: enabled) 2159 --disable-xf86vidmode Build XF86VidMode extension (default: auto) 2160 --disable-xace Build X-ACE extension (default: enabled) 2161 --enable-xselinux Build SELinux extension (default: disabled) 2162 --enable-xcsecurity Build Security extension (default: disabled) 2163 --disable-dbe Build DBE extension (default: enabled) 2164 --enable-xf86bigfont Build XF86 Big Font extension (default: disabled) 2165 --disable-dpms Build DPMS extension (default: enabled) 2166 --enable-config-udev Build udev support (default: auto) 2167 --enable-config-udev-kms 2168 Build udev kms support (default: auto) 2169 --disable-config-hal Build HAL support (default: auto) 2170 --enable-config-wscons Build wscons config support (default: auto) 2171 --enable-xfree86-utils Build xfree86 DDX utilities (default: enabled) 2172 --enable-vgahw Build Xorg with vga access (default: enabled) 2173 --enable-vbe Build Xorg with VBE module (default: enabled) 2174 --enable-int10-module Build Xorg with int10 module (default: enabled) 2175 --enable-windowswm Build XWin with WindowsWM extension (default: no) 2176 --enable-windowsdri Build XWin with WindowsDRI extension (default: auto) 2177 --enable-libdrm Build Xorg with libdrm support (default: enabled) 2178 --disable-clientids Build Xorg with client ID tracking (default: 2179 enabled) 2180 --enable-pciaccess Build Xorg with pciaccess library (default: enabled) 2181 --disable-linux-acpi Disable building ACPI support on Linux (if 2182 available). 2183 --disable-linux-apm Disable building APM support on Linux (if 2184 available). 2185 --enable-systemd-logind Build systemd-logind support (default: auto) 2186 --enable-suid-wrapper Build suid-root wrapper for legacy driver support on 2187 rootless xserver systems (default: no) 2188 --enable-xorg Build Xorg server (default: auto) 2189 --enable-dmx Build DMX server (default: no) 2190 --enable-xvfb Build Xvfb server (default: yes) 2191 --enable-xnest Build Xnest server (default: auto) 2192 --enable-xquartz Build Xquartz server for OS-X (default: auto) 2193 --enable-xwayland Build Xwayland server (default: auto) 2194 --enable-xwayland-eglstream 2195 Build Xwayland eglstream support (default: no) 2196 --enable-standalone-xpbproxy 2197 Build a standalone xpbproxy (in addition to the one 2198 integrated into Xquartz as a separate thread) 2199 (default: no) 2200 --enable-xwin Build XWin server (default: auto) 2201 --enable-glamor Build glamor dix module (default: auto) 2202 --enable-kdrive Build kdrive servers (default: no) 2203 --enable-xephyr Build the kdrive Xephyr server (default: auto) 2204 --enable-libunwind Use libunwind for backtracing (default: auto) 2205 --disable-xshmfence Disable xshmfence (default: auto) 2206 --enable-install-setuid Install Xorg server as owned by root with setuid bit 2207 (default: auto) 2208 --enable-unix-transport Enable UNIX domain socket transport 2209 --enable-tcp-transport Enable TCP socket transport 2210 --enable-ipv6 Enable IPv6 support 2211 --enable-local-transport 2212 Enable os-specific local transport 2213 --enable-secure-rpc Enable Secure RPC 2214 --enable-input-thread Enable input threads 2215 --disable-xtrans-send-fds 2216 Use Xtrans support for fd passing (default: auto) 2217 2218Optional Packages: 2219 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2220 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2221 --with-doxygen Use doxygen to regenerate documentation (default: 2222 auto) 2223 --with-xmlto Use xmlto to regenerate documentation (default: 2224 auto) 2225 --with-fop Use fop to regenerate documentation (default: auto) 2226 --with-xsltproc Use xsltproc for the transformation of XML documents 2227 (default: auto) 2228 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 2229 both] 2230 --with-aix-soname=aix|svr4|both 2231 shared library versioning (aka "SONAME") variant to 2232 provide on AIX, [default=aix]. 2233 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2234 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 2235 compiler's sysroot if not specified). 2236 --with-dtrace=PATH Enable dtrace probes (default: enabled if dtrace 2237 found) 2238 --with-int10=BACKEND int10 backend: vm86, x86emu or stub 2239 --with-vendor-name=VENDOR 2240 Vendor string reported by the server 2241 --with-vendor-name-short=VENDOR 2242 Short version of vendor string reported by the 2243 server 2244 --with-vendor-web=URL Vendor web address reported by the server 2245 --with-module-dir=DIR Directory where modules are installed (default: 2246 $libdir/xorg/modules) 2247 --with-log-dir=DIR Directory where log files are kept (default: 2248 $localstatedir/log) 2249 --with-builder-addr=ADDRESS 2250 Builder address (default: 2251 xorg@lists.freedesktop.org) 2252 --with-os-name=OSNAME Name of OS (default: output of "uname -srm") 2253 --with-os-vendor=OSVENDOR 2254 Name of OS vendor 2255 --with-builderstring=BUILDERSTRING 2256 Additional builder string 2257 --with-fallback-input-driver=$FALLBACK_INPUT_DRIVER 2258 Input driver fallback if the requested driver for a 2259 device is unavailable 2260 --with-fontrootdir=DIR Path to root directory for font files 2261 --with-fontmiscdir=DIR Path to misc files [FONTROOTDIR/misc] 2262 --with-fontotfdir=DIR Path to OTF files [FONTROOTDIR/OTF] 2263 --with-fontttfdir=DIR Path to TTF files [FONTROOTDIR/TTF] 2264 --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1] 2265 --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi] 2266 --with-font100dpidir=DIR 2267 Path to 100dpi files [FONTROOTDIR/100dpi] 2268 --with-default-font-path=PATH 2269 Comma separated list of font dirs 2270 --with-xkb-path=PATH Path to XKB base dir (default: auto) 2271 --with-xkb-output=PATH Path to XKB output dir (default: 2272 ${datadir}/X11/xkb/compiled) 2273 --with-default-xkb-rules=RULES 2274 Keyboard ruleset (default: base/evdev) 2275 --with-default-xkb-model=MODEL 2276 Keyboard model (default: pc105) 2277 --with-default-xkb-layout=LAYOUT 2278 Keyboard layout (default: us) 2279 --with-default-xkb-variant=VARIANT 2280 Keyboard variant (default: (none)) 2281 --with-default-xkb-options=OPTIONS 2282 Keyboard layout options (default: (none)) 2283 --with-serverconfig-path=PATH 2284 Directory where ancillary server config files are 2285 installed (default: ${libdir}/xorg) 2286 --with-apple-applications-dir=PATH 2287 Path to the Applications directory (default: 2288 /Applications/Utilities) 2289 --with-apple-application-name=NAME 2290 Name for the .app (default: X11) 2291 --with-bundle-id-prefix=RDNS_PREFIX 2292 Prefix to use for bundle identifiers (default: 2293 org.x) 2294 --with-bundle-version=VERSION 2295 Version to use for X11.app's CFBundleVersion 2296 (default: 1.20.6) 2297 --with-bundle-version-string=VERSION 2298 Version to use for X11.app's 2299 CFBundleShortVersionString (default: 1.20.6) 2300 --with-sparkle-feed-url=URL 2301 URL for the Sparkle feed (default: 2302 https://www.xquartz.org/releases/sparkle/release.xml) 2303 --with-khronos-spec-dir=PATH 2304 Path to Khronos OpenGL registry database files 2305 (default: auto) 2306 --with-systemd-daemon support systemd socket activation (default: auto) 2307 --with-xkb-bin-directory=DIR 2308 Directory containing xkbcomp program (default: auto) 2309 --with-sha1=libc|libmd|libnettle|libgcrypt|libcrypto|libsha1|CommonCrypto|CryptoAPI 2310 choose SHA1 implementation 2311 2312Some influential environment variables: 2313 CC C compiler command 2314 CFLAGS C compiler flags 2315 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2316 nonstandard directory <lib dir> 2317 LIBS libraries to pass to the linker, e.g. -l<library> 2318 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2319 you have headers in a nonstandard directory <include dir> 2320 CPP C preprocessor 2321 PKG_CONFIG path to pkg-config utility 2322 PKG_CONFIG_PATH 2323 directories to add to pkg-config's search path 2324 PKG_CONFIG_LIBDIR 2325 path overriding pkg-config's built-in search path 2326 DOXYGEN Path to doxygen command 2327 DOT Path to the dot graphics utility 2328 XMLTO Path to xmlto command 2329 FOP Path to fop command 2330 XSLTPROC Path to xsltproc command 2331 XORG_MALLOC_DEBUG_ENV 2332 Environment variables to enable memory checking in tests 2333 CCAS assembler compiler command (defaults to CC) 2334 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 2335 LT_SYS_LIBRARY_PATH 2336 User-defined run-time library search path. 2337 YACC The `Yet Another Compiler Compiler' implementation to use. 2338 Defaults to the first program found out of: `bison -y', `byacc', 2339 `yacc'. 2340 YFLAGS The list of arguments that will be passed by default to $YACC. 2341 This script will default YFLAGS to the empty string to avoid a 2342 default value of `-d' given by some make applications. 2343 PIXMAN_CFLAGS 2344 C compiler flags for PIXMAN, overriding pkg-config 2345 PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config 2346 SYSTEMD_DAEMON_CFLAGS 2347 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config 2348 SYSTEMD_DAEMON_LIBS 2349 linker flags for SYSTEMD_DAEMON, overriding pkg-config 2350 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config 2351 UDEV_LIBS linker flags for UDEV, overriding pkg-config 2352 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config 2353 DBUS_LIBS linker flags for DBUS, overriding pkg-config 2354 HAL_CFLAGS C compiler flags for HAL, overriding pkg-config 2355 HAL_LIBS linker flags for HAL, overriding pkg-config 2356 DRI2PROTO_CFLAGS 2357 C compiler flags for DRI2PROTO, overriding pkg-config 2358 DRI2PROTO_LIBS 2359 linker flags for DRI2PROTO, overriding pkg-config 2360 DRI3PROTO_CFLAGS 2361 C compiler flags for DRI3PROTO, overriding pkg-config 2362 DRI3PROTO_LIBS 2363 linker flags for DRI3PROTO, overriding pkg-config 2364 XSHMFENCE_CFLAGS 2365 C compiler flags for XSHMFENCE, overriding pkg-config 2366 XSHMFENCE_LIBS 2367 linker flags for XSHMFENCE, overriding pkg-config 2368 LIBDRM_CFLAGS 2369 C compiler flags for LIBDRM, overriding pkg-config 2370 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config 2371 XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config 2372 XLIB_LIBS linker flags for XLIB, overriding pkg-config 2373 GL_CFLAGS C compiler flags for GL, overriding pkg-config 2374 GL_LIBS linker flags for GL, overriding pkg-config 2375 SELINUX_CFLAGS 2376 C compiler flags for SELINUX, overriding pkg-config 2377 SELINUX_LIBS 2378 linker flags for SELINUX, overriding pkg-config 2379 XDMCP_CFLAGS 2380 C compiler flags for XDMCP, overriding pkg-config 2381 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config 2382 LIBSHA1_CFLAGS 2383 C compiler flags for LIBSHA1, overriding pkg-config 2384 LIBSHA1_LIBS 2385 linker flags for LIBSHA1, overriding pkg-config 2386 OPENSSL_CFLAGS 2387 C compiler flags for OPENSSL, overriding pkg-config 2388 OPENSSL_LIBS 2389 linker flags for OPENSSL, overriding pkg-config 2390 XSERVERCFLAGS_CFLAGS 2391 C compiler flags for XSERVERCFLAGS, overriding pkg-config 2392 XSERVERCFLAGS_LIBS 2393 linker flags for XSERVERCFLAGS, overriding pkg-config 2394 XSERVERLIBS_CFLAGS 2395 C compiler flags for XSERVERLIBS, overriding pkg-config 2396 XSERVERLIBS_LIBS 2397 linker flags for XSERVERLIBS, overriding pkg-config 2398 LIBUNWIND_CFLAGS 2399 C compiler flags for LIBUNWIND, overriding pkg-config 2400 LIBUNWIND_LIBS 2401 linker flags for LIBUNWIND, overriding pkg-config 2402 XNESTMODULES_CFLAGS 2403 C compiler flags for XNESTMODULES, overriding pkg-config 2404 XNESTMODULES_LIBS 2405 linker flags for XNESTMODULES, overriding pkg-config 2406 PCIACCESS_CFLAGS 2407 C compiler flags for PCIACCESS, overriding pkg-config 2408 PCIACCESS_LIBS 2409 linker flags for PCIACCESS, overriding pkg-config 2410 DGA_CFLAGS C compiler flags for DGA, overriding pkg-config 2411 DGA_LIBS linker flags for DGA, overriding pkg-config 2412 XORG_MODULES_CFLAGS 2413 C compiler flags for XORG_MODULES, overriding pkg-config 2414 XORG_MODULES_LIBS 2415 linker flags for XORG_MODULES, overriding pkg-config 2416 GLAMOR_CFLAGS 2417 C compiler flags for GLAMOR, overriding pkg-config 2418 GLAMOR_LIBS linker flags for GLAMOR, overriding pkg-config 2419 GBM_CFLAGS C compiler flags for GBM, overriding pkg-config 2420 GBM_LIBS linker flags for GBM, overriding pkg-config 2421 XWINMODULES_CFLAGS 2422 C compiler flags for XWINMODULES, overriding pkg-config 2423 XWINMODULES_LIBS 2424 linker flags for XWINMODULES, overriding pkg-config 2425 WINDOWSWM_CFLAGS 2426 C compiler flags for WINDOWSWM, overriding pkg-config 2427 WINDOWSWM_LIBS 2428 linker flags for WINDOWSWM, overriding pkg-config 2429 WINDOWSDRI_CFLAGS 2430 C compiler flags for WINDOWSDRI, overriding pkg-config 2431 WINDOWSDRI_LIBS 2432 linker flags for WINDOWSDRI, overriding pkg-config 2433 KHRONOS_OPENGL_REGISTRY_CFLAGS 2434 C compiler flags for KHRONOS_OPENGL_REGISTRY, overriding 2435 pkg-config 2436 KHRONOS_OPENGL_REGISTRY_LIBS 2437 linker flags for KHRONOS_OPENGL_REGISTRY, overriding pkg-config 2438 XPBPROXY_CFLAGS 2439 C compiler flags for XPBPROXY, overriding pkg-config 2440 XPBPROXY_LIBS 2441 linker flags for XPBPROXY, overriding pkg-config 2442 DMXMODULES_CFLAGS 2443 C compiler flags for DMXMODULES, overriding pkg-config 2444 DMXMODULES_LIBS 2445 linker flags for DMXMODULES, overriding pkg-config 2446 XDMXCONFIG_DEP_CFLAGS 2447 C compiler flags for XDMXCONFIG_DEP, overriding pkg-config 2448 XDMXCONFIG_DEP_LIBS 2449 linker flags for XDMXCONFIG_DEP, overriding pkg-config 2450 DMXEXAMPLES_DEP_CFLAGS 2451 C compiler flags for DMXEXAMPLES_DEP, overriding pkg-config 2452 DMXEXAMPLES_DEP_LIBS 2453 linker flags for DMXEXAMPLES_DEP, overriding pkg-config 2454 DMXXMUEXAMPLES_DEP_CFLAGS 2455 C compiler flags for DMXXMUEXAMPLES_DEP, overriding pkg-config 2456 DMXXMUEXAMPLES_DEP_LIBS 2457 linker flags for DMXXMUEXAMPLES_DEP, overriding pkg-config 2458 DMXXIEXAMPLES_DEP_CFLAGS 2459 C compiler flags for DMXXIEXAMPLES_DEP, overriding pkg-config 2460 DMXXIEXAMPLES_DEP_LIBS 2461 linker flags for DMXXIEXAMPLES_DEP, overriding pkg-config 2462 XTSTEXAMPLES_DEP_CFLAGS 2463 C compiler flags for XTSTEXAMPLES_DEP, overriding pkg-config 2464 XTSTEXAMPLES_DEP_LIBS 2465 linker flags for XTSTEXAMPLES_DEP, overriding pkg-config 2466 XRESEXAMPLES_DEP_CFLAGS 2467 C compiler flags for XRESEXAMPLES_DEP, overriding pkg-config 2468 XRESEXAMPLES_DEP_LIBS 2469 linker flags for XRESEXAMPLES_DEP, overriding pkg-config 2470 X11EXAMPLES_DEP_CFLAGS 2471 C compiler flags for X11EXAMPLES_DEP, overriding pkg-config 2472 X11EXAMPLES_DEP_LIBS 2473 linker flags for X11EXAMPLES_DEP, overriding pkg-config 2474 XEPHYR_CFLAGS 2475 C compiler flags for XEPHYR, overriding pkg-config 2476 XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config 2477 XWAYLANDMODULES_CFLAGS 2478 C compiler flags for XWAYLANDMODULES, overriding pkg-config 2479 XWAYLANDMODULES_LIBS 2480 linker flags for XWAYLANDMODULES, overriding pkg-config 2481 WAYLAND_EGLSTREAM_CFLAGS 2482 C compiler flags for WAYLAND_EGLSTREAM, overriding pkg-config 2483 WAYLAND_EGLSTREAM_LIBS 2484 linker flags for WAYLAND_EGLSTREAM, overriding pkg-config 2485 WAYLAND_SCANNER_CFLAGS 2486 C compiler flags for WAYLAND_SCANNER, overriding pkg-config 2487 WAYLAND_SCANNER_LIBS 2488 linker flags for WAYLAND_SCANNER, overriding pkg-config 2489 2490Use these variables to override the choices made by `configure' or to help 2491it to find libraries and programs with nonstandard names/locations. 2492 2493Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>. 2494_ACEOF 2495ac_status=$? 2496fi 2497 2498if test "$ac_init_help" = "recursive"; then 2499 # If there are subdirs, report their specific --help. 2500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2501 test -d "$ac_dir" || 2502 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2503 continue 2504 ac_builddir=. 2505 2506case "$ac_dir" in 2507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2508*) 2509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2510 # A ".." for each directory in $ac_dir_suffix. 2511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2512 case $ac_top_builddir_sub in 2513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2515 esac ;; 2516esac 2517ac_abs_top_builddir=$ac_pwd 2518ac_abs_builddir=$ac_pwd$ac_dir_suffix 2519# for backward compatibility: 2520ac_top_builddir=$ac_top_build_prefix 2521 2522case $srcdir in 2523 .) # We are building in place. 2524 ac_srcdir=. 2525 ac_top_srcdir=$ac_top_builddir_sub 2526 ac_abs_top_srcdir=$ac_pwd ;; 2527 [\\/]* | ?:[\\/]* ) # Absolute name. 2528 ac_srcdir=$srcdir$ac_dir_suffix; 2529 ac_top_srcdir=$srcdir 2530 ac_abs_top_srcdir=$srcdir ;; 2531 *) # Relative name. 2532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2533 ac_top_srcdir=$ac_top_build_prefix$srcdir 2534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2535esac 2536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2537 2538 cd "$ac_dir" || { ac_status=$?; continue; } 2539 # Check for guested configure. 2540 if test -f "$ac_srcdir/configure.gnu"; then 2541 echo && 2542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2543 elif test -f "$ac_srcdir/configure"; then 2544 echo && 2545 $SHELL "$ac_srcdir/configure" --help=recursive 2546 else 2547 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2548 fi || ac_status=$? 2549 cd "$ac_pwd" || { ac_status=$?; break; } 2550 done 2551fi 2552 2553test -n "$ac_init_help" && exit $ac_status 2554if $ac_init_version; then 2555 cat <<\_ACEOF 2556xorg-server configure 1.20.6 2557generated by GNU Autoconf 2.69 2558 2559Copyright (C) 2012 Free Software Foundation, Inc. 2560This configure script is free software; the Free Software Foundation 2561gives unlimited permission to copy, distribute and modify it. 2562_ACEOF 2563 exit 2564fi 2565 2566## ------------------------ ## 2567## Autoconf initialization. ## 2568## ------------------------ ## 2569 2570# ac_fn_c_try_compile LINENO 2571# -------------------------- 2572# Try to compile conftest.$ac_ext, and return whether this succeeded. 2573ac_fn_c_try_compile () 2574{ 2575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2576 rm -f conftest.$ac_objext 2577 if { { ac_try="$ac_compile" 2578case "(($ac_try" in 2579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2580 *) ac_try_echo=$ac_try;; 2581esac 2582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2583$as_echo "$ac_try_echo"; } >&5 2584 (eval "$ac_compile") 2>conftest.err 2585 ac_status=$? 2586 if test -s conftest.err; then 2587 grep -v '^ *+' conftest.err >conftest.er1 2588 cat conftest.er1 >&5 2589 mv -f conftest.er1 conftest.err 2590 fi 2591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2592 test $ac_status = 0; } && { 2593 test -z "$ac_c_werror_flag" || 2594 test ! -s conftest.err 2595 } && test -s conftest.$ac_objext; then : 2596 ac_retval=0 2597else 2598 $as_echo "$as_me: failed program was:" >&5 2599sed 's/^/| /' conftest.$ac_ext >&5 2600 2601 ac_retval=1 2602fi 2603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2604 as_fn_set_status $ac_retval 2605 2606} # ac_fn_c_try_compile 2607 2608# ac_fn_c_try_cpp LINENO 2609# ---------------------- 2610# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2611ac_fn_c_try_cpp () 2612{ 2613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2614 if { { ac_try="$ac_cpp conftest.$ac_ext" 2615case "(($ac_try" in 2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2617 *) ac_try_echo=$ac_try;; 2618esac 2619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2620$as_echo "$ac_try_echo"; } >&5 2621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2622 ac_status=$? 2623 if test -s conftest.err; then 2624 grep -v '^ *+' conftest.err >conftest.er1 2625 cat conftest.er1 >&5 2626 mv -f conftest.er1 conftest.err 2627 fi 2628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2629 test $ac_status = 0; } > conftest.i && { 2630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2631 test ! -s conftest.err 2632 }; then : 2633 ac_retval=0 2634else 2635 $as_echo "$as_me: failed program was:" >&5 2636sed 's/^/| /' conftest.$ac_ext >&5 2637 2638 ac_retval=1 2639fi 2640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2641 as_fn_set_status $ac_retval 2642 2643} # ac_fn_c_try_cpp 2644 2645# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2646# ------------------------------------------------------- 2647# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2648# the include files in INCLUDES and setting the cache variable VAR 2649# accordingly. 2650ac_fn_c_check_header_mongrel () 2651{ 2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2653 if eval \${$3+:} false; then : 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2655$as_echo_n "checking for $2... " >&6; } 2656if eval \${$3+:} false; then : 2657 $as_echo_n "(cached) " >&6 2658fi 2659eval ac_res=\$$3 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2661$as_echo "$ac_res" >&6; } 2662else 2663 # Is the header compilable? 2664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2665$as_echo_n "checking $2 usability... " >&6; } 2666cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2667/* end confdefs.h. */ 2668$4 2669#include <$2> 2670_ACEOF 2671if ac_fn_c_try_compile "$LINENO"; then : 2672 ac_header_compiler=yes 2673else 2674 ac_header_compiler=no 2675fi 2676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2678$as_echo "$ac_header_compiler" >&6; } 2679 2680# Is the header present? 2681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2682$as_echo_n "checking $2 presence... " >&6; } 2683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2684/* end confdefs.h. */ 2685#include <$2> 2686_ACEOF 2687if ac_fn_c_try_cpp "$LINENO"; then : 2688 ac_header_preproc=yes 2689else 2690 ac_header_preproc=no 2691fi 2692rm -f conftest.err conftest.i conftest.$ac_ext 2693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2694$as_echo "$ac_header_preproc" >&6; } 2695 2696# So? What about this header? 2697case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2698 yes:no: ) 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2700$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2702$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2703 ;; 2704 no:yes:* ) 2705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2706$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2708$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2710$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2712$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2714$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2715( $as_echo "## ----------------------------------------------------------------- ## 2716## Report this to https://gitlab.freedesktop.org/xorg/xserver/issues ## 2717## ----------------------------------------------------------------- ##" 2718 ) | sed "s/^/$as_me: WARNING: /" >&2 2719 ;; 2720esac 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2722$as_echo_n "checking for $2... " >&6; } 2723if eval \${$3+:} false; then : 2724 $as_echo_n "(cached) " >&6 2725else 2726 eval "$3=\$ac_header_compiler" 2727fi 2728eval ac_res=\$$3 2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2730$as_echo "$ac_res" >&6; } 2731fi 2732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2733 2734} # ac_fn_c_check_header_mongrel 2735 2736# ac_fn_c_try_run LINENO 2737# ---------------------- 2738# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2739# that executables *can* be run. 2740ac_fn_c_try_run () 2741{ 2742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2743 if { { ac_try="$ac_link" 2744case "(($ac_try" in 2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2746 *) ac_try_echo=$ac_try;; 2747esac 2748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2749$as_echo "$ac_try_echo"; } >&5 2750 (eval "$ac_link") 2>&5 2751 ac_status=$? 2752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2753 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2754 { { case "(($ac_try" in 2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2756 *) ac_try_echo=$ac_try;; 2757esac 2758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2759$as_echo "$ac_try_echo"; } >&5 2760 (eval "$ac_try") 2>&5 2761 ac_status=$? 2762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2763 test $ac_status = 0; }; }; then : 2764 ac_retval=0 2765else 2766 $as_echo "$as_me: program exited with status $ac_status" >&5 2767 $as_echo "$as_me: failed program was:" >&5 2768sed 's/^/| /' conftest.$ac_ext >&5 2769 2770 ac_retval=$ac_status 2771fi 2772 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2774 as_fn_set_status $ac_retval 2775 2776} # ac_fn_c_try_run 2777 2778# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2779# ------------------------------------------------------- 2780# Tests whether HEADER exists and can be compiled using the include files in 2781# INCLUDES, setting the cache variable VAR accordingly. 2782ac_fn_c_check_header_compile () 2783{ 2784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2786$as_echo_n "checking for $2... " >&6; } 2787if eval \${$3+:} false; then : 2788 $as_echo_n "(cached) " >&6 2789else 2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2791/* end confdefs.h. */ 2792$4 2793#include <$2> 2794_ACEOF 2795if ac_fn_c_try_compile "$LINENO"; then : 2796 eval "$3=yes" 2797else 2798 eval "$3=no" 2799fi 2800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2801fi 2802eval ac_res=\$$3 2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2804$as_echo "$ac_res" >&6; } 2805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2806 2807} # ac_fn_c_check_header_compile 2808 2809# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2810# --------------------------------------------- 2811# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2812# accordingly. 2813ac_fn_c_check_decl () 2814{ 2815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2816 as_decl_name=`echo $2|sed 's/ *(.*//'` 2817 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2819$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2820if eval \${$3+:} false; then : 2821 $as_echo_n "(cached) " >&6 2822else 2823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2824/* end confdefs.h. */ 2825$4 2826int 2827main () 2828{ 2829#ifndef $as_decl_name 2830#ifdef __cplusplus 2831 (void) $as_decl_use; 2832#else 2833 (void) $as_decl_name; 2834#endif 2835#endif 2836 2837 ; 2838 return 0; 2839} 2840_ACEOF 2841if ac_fn_c_try_compile "$LINENO"; then : 2842 eval "$3=yes" 2843else 2844 eval "$3=no" 2845fi 2846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2847fi 2848eval ac_res=\$$3 2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2850$as_echo "$ac_res" >&6; } 2851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2852 2853} # ac_fn_c_check_decl 2854 2855# ac_fn_c_try_link LINENO 2856# ----------------------- 2857# Try to link conftest.$ac_ext, and return whether this succeeded. 2858ac_fn_c_try_link () 2859{ 2860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2861 rm -f conftest.$ac_objext conftest$ac_exeext 2862 if { { ac_try="$ac_link" 2863case "(($ac_try" in 2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2865 *) ac_try_echo=$ac_try;; 2866esac 2867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2868$as_echo "$ac_try_echo"; } >&5 2869 (eval "$ac_link") 2>conftest.err 2870 ac_status=$? 2871 if test -s conftest.err; then 2872 grep -v '^ *+' conftest.err >conftest.er1 2873 cat conftest.er1 >&5 2874 mv -f conftest.er1 conftest.err 2875 fi 2876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2877 test $ac_status = 0; } && { 2878 test -z "$ac_c_werror_flag" || 2879 test ! -s conftest.err 2880 } && test -s conftest$ac_exeext && { 2881 test "$cross_compiling" = yes || 2882 test -x conftest$ac_exeext 2883 }; then : 2884 ac_retval=0 2885else 2886 $as_echo "$as_me: failed program was:" >&5 2887sed 's/^/| /' conftest.$ac_ext >&5 2888 2889 ac_retval=1 2890fi 2891 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2892 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2893 # interfere with the next link command; also delete a directory that is 2894 # left behind by Apple's compiler. We do this before executing the actions. 2895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2897 as_fn_set_status $ac_retval 2898 2899} # ac_fn_c_try_link 2900 2901# ac_fn_c_check_func LINENO FUNC VAR 2902# ---------------------------------- 2903# Tests whether FUNC exists, setting the cache variable VAR accordingly 2904ac_fn_c_check_func () 2905{ 2906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2908$as_echo_n "checking for $2... " >&6; } 2909if eval \${$3+:} false; then : 2910 $as_echo_n "(cached) " >&6 2911else 2912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2913/* end confdefs.h. */ 2914/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2915 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2916#define $2 innocuous_$2 2917 2918/* System header to define __stub macros and hopefully few prototypes, 2919 which can conflict with char $2 (); below. 2920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2921 <limits.h> exists even on freestanding compilers. */ 2922 2923#ifdef __STDC__ 2924# include <limits.h> 2925#else 2926# include <assert.h> 2927#endif 2928 2929#undef $2 2930 2931/* Override any GCC internal prototype to avoid an error. 2932 Use char because int might match the return type of a GCC 2933 builtin and then its argument prototype would still apply. */ 2934#ifdef __cplusplus 2935extern "C" 2936#endif 2937char $2 (); 2938/* The GNU C library defines this for functions which it implements 2939 to always fail with ENOSYS. Some functions are actually named 2940 something starting with __ and the normal name is an alias. */ 2941#if defined __stub_$2 || defined __stub___$2 2942choke me 2943#endif 2944 2945int 2946main () 2947{ 2948return $2 (); 2949 ; 2950 return 0; 2951} 2952_ACEOF 2953if ac_fn_c_try_link "$LINENO"; then : 2954 eval "$3=yes" 2955else 2956 eval "$3=no" 2957fi 2958rm -f core conftest.err conftest.$ac_objext \ 2959 conftest$ac_exeext conftest.$ac_ext 2960fi 2961eval ac_res=\$$3 2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2963$as_echo "$ac_res" >&6; } 2964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2965 2966} # ac_fn_c_check_func 2967 2968# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2969# -------------------------------------------- 2970# Tries to find the compile-time value of EXPR in a program that includes 2971# INCLUDES, setting VAR accordingly. Returns whether the value could be 2972# computed 2973ac_fn_c_compute_int () 2974{ 2975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2976 if test "$cross_compiling" = yes; then 2977 # Depending upon the size, compute the lo and hi bounds. 2978cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2979/* end confdefs.h. */ 2980$4 2981int 2982main () 2983{ 2984static int test_array [1 - 2 * !(($2) >= 0)]; 2985test_array [0] = 0; 2986return test_array [0]; 2987 2988 ; 2989 return 0; 2990} 2991_ACEOF 2992if ac_fn_c_try_compile "$LINENO"; then : 2993 ac_lo=0 ac_mid=0 2994 while :; do 2995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2996/* end confdefs.h. */ 2997$4 2998int 2999main () 3000{ 3001static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 3002test_array [0] = 0; 3003return test_array [0]; 3004 3005 ; 3006 return 0; 3007} 3008_ACEOF 3009if ac_fn_c_try_compile "$LINENO"; then : 3010 ac_hi=$ac_mid; break 3011else 3012 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 3013 if test $ac_lo -le $ac_mid; then 3014 ac_lo= ac_hi= 3015 break 3016 fi 3017 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 3018fi 3019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3020 done 3021else 3022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3023/* end confdefs.h. */ 3024$4 3025int 3026main () 3027{ 3028static int test_array [1 - 2 * !(($2) < 0)]; 3029test_array [0] = 0; 3030return test_array [0]; 3031 3032 ; 3033 return 0; 3034} 3035_ACEOF 3036if ac_fn_c_try_compile "$LINENO"; then : 3037 ac_hi=-1 ac_mid=-1 3038 while :; do 3039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3040/* end confdefs.h. */ 3041$4 3042int 3043main () 3044{ 3045static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 3046test_array [0] = 0; 3047return test_array [0]; 3048 3049 ; 3050 return 0; 3051} 3052_ACEOF 3053if ac_fn_c_try_compile "$LINENO"; then : 3054 ac_lo=$ac_mid; break 3055else 3056 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 3057 if test $ac_mid -le $ac_hi; then 3058 ac_lo= ac_hi= 3059 break 3060 fi 3061 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 3062fi 3063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3064 done 3065else 3066 ac_lo= ac_hi= 3067fi 3068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3069fi 3070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3071# Binary search between lo and hi bounds. 3072while test "x$ac_lo" != "x$ac_hi"; do 3073 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 3074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3075/* end confdefs.h. */ 3076$4 3077int 3078main () 3079{ 3080static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 3081test_array [0] = 0; 3082return test_array [0]; 3083 3084 ; 3085 return 0; 3086} 3087_ACEOF 3088if ac_fn_c_try_compile "$LINENO"; then : 3089 ac_hi=$ac_mid 3090else 3091 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 3092fi 3093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3094done 3095case $ac_lo in #(( 3096?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 3097'') ac_retval=1 ;; 3098esac 3099 else 3100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3101/* end confdefs.h. */ 3102$4 3103static long int longval () { return $2; } 3104static unsigned long int ulongval () { return $2; } 3105#include <stdio.h> 3106#include <stdlib.h> 3107int 3108main () 3109{ 3110 3111 FILE *f = fopen ("conftest.val", "w"); 3112 if (! f) 3113 return 1; 3114 if (($2) < 0) 3115 { 3116 long int i = longval (); 3117 if (i != ($2)) 3118 return 1; 3119 fprintf (f, "%ld", i); 3120 } 3121 else 3122 { 3123 unsigned long int i = ulongval (); 3124 if (i != ($2)) 3125 return 1; 3126 fprintf (f, "%lu", i); 3127 } 3128 /* Do not output a trailing newline, as this causes \r\n confusion 3129 on some platforms. */ 3130 return ferror (f) || fclose (f) != 0; 3131 3132 ; 3133 return 0; 3134} 3135_ACEOF 3136if ac_fn_c_try_run "$LINENO"; then : 3137 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 3138else 3139 ac_retval=1 3140fi 3141rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3142 conftest.$ac_objext conftest.beam conftest.$ac_ext 3143rm -f conftest.val 3144 3145 fi 3146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3147 as_fn_set_status $ac_retval 3148 3149} # ac_fn_c_compute_int 3150 3151# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 3152# ------------------------------------------- 3153# Tests whether TYPE exists after having included INCLUDES, setting cache 3154# variable VAR accordingly. 3155ac_fn_c_check_type () 3156{ 3157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3159$as_echo_n "checking for $2... " >&6; } 3160if eval \${$3+:} false; then : 3161 $as_echo_n "(cached) " >&6 3162else 3163 eval "$3=no" 3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3165/* end confdefs.h. */ 3166$4 3167int 3168main () 3169{ 3170if (sizeof ($2)) 3171 return 0; 3172 ; 3173 return 0; 3174} 3175_ACEOF 3176if ac_fn_c_try_compile "$LINENO"; then : 3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3178/* end confdefs.h. */ 3179$4 3180int 3181main () 3182{ 3183if (sizeof (($2))) 3184 return 0; 3185 ; 3186 return 0; 3187} 3188_ACEOF 3189if ac_fn_c_try_compile "$LINENO"; then : 3190 3191else 3192 eval "$3=yes" 3193fi 3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3195fi 3196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3197fi 3198eval ac_res=\$$3 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3200$as_echo "$ac_res" >&6; } 3201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3202 3203} # ac_fn_c_check_type 3204 3205# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 3206# ---------------------------------------------------- 3207# Tries to find if the field MEMBER exists in type AGGR, after including 3208# INCLUDES, setting cache variable VAR accordingly. 3209ac_fn_c_check_member () 3210{ 3211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 3213$as_echo_n "checking for $2.$3... " >&6; } 3214if eval \${$4+:} false; then : 3215 $as_echo_n "(cached) " >&6 3216else 3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3218/* end confdefs.h. */ 3219$5 3220int 3221main () 3222{ 3223static $2 ac_aggr; 3224if (ac_aggr.$3) 3225return 0; 3226 ; 3227 return 0; 3228} 3229_ACEOF 3230if ac_fn_c_try_compile "$LINENO"; then : 3231 eval "$4=yes" 3232else 3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3234/* end confdefs.h. */ 3235$5 3236int 3237main () 3238{ 3239static $2 ac_aggr; 3240if (sizeof ac_aggr.$3) 3241return 0; 3242 ; 3243 return 0; 3244} 3245_ACEOF 3246if ac_fn_c_try_compile "$LINENO"; then : 3247 eval "$4=yes" 3248else 3249 eval "$4=no" 3250fi 3251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3252fi 3253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3254fi 3255eval ac_res=\$$4 3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3257$as_echo "$ac_res" >&6; } 3258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3259 3260} # ac_fn_c_check_member 3261cat >config.log <<_ACEOF 3262This file contains any messages produced by compilers while 3263running configure, to aid debugging if configure makes a mistake. 3264 3265It was created by xorg-server $as_me 1.20.6, which was 3266generated by GNU Autoconf 2.69. Invocation command line was 3267 3268 $ $0 $@ 3269 3270_ACEOF 3271exec 5>>config.log 3272{ 3273cat <<_ASUNAME 3274## --------- ## 3275## Platform. ## 3276## --------- ## 3277 3278hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3279uname -m = `(uname -m) 2>/dev/null || echo unknown` 3280uname -r = `(uname -r) 2>/dev/null || echo unknown` 3281uname -s = `(uname -s) 2>/dev/null || echo unknown` 3282uname -v = `(uname -v) 2>/dev/null || echo unknown` 3283 3284/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3285/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3286 3287/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3288/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3289/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3290/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3291/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3292/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3293/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3294 3295_ASUNAME 3296 3297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3298for as_dir in $PATH 3299do 3300 IFS=$as_save_IFS 3301 test -z "$as_dir" && as_dir=. 3302 $as_echo "PATH: $as_dir" 3303 done 3304IFS=$as_save_IFS 3305 3306} >&5 3307 3308cat >&5 <<_ACEOF 3309 3310 3311## ----------- ## 3312## Core tests. ## 3313## ----------- ## 3314 3315_ACEOF 3316 3317 3318# Keep a trace of the command line. 3319# Strip out --no-create and --no-recursion so they do not pile up. 3320# Strip out --silent because we don't want to record it for future runs. 3321# Also quote any args containing shell meta-characters. 3322# Make two passes to allow for proper duplicate-argument suppression. 3323ac_configure_args= 3324ac_configure_args0= 3325ac_configure_args1= 3326ac_must_keep_next=false 3327for ac_pass in 1 2 3328do 3329 for ac_arg 3330 do 3331 case $ac_arg in 3332 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3333 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3334 | -silent | --silent | --silen | --sile | --sil) 3335 continue ;; 3336 *\'*) 3337 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3338 esac 3339 case $ac_pass in 3340 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3341 2) 3342 as_fn_append ac_configure_args1 " '$ac_arg'" 3343 if test $ac_must_keep_next = true; then 3344 ac_must_keep_next=false # Got value, back to normal. 3345 else 3346 case $ac_arg in 3347 *=* | --config-cache | -C | -disable-* | --disable-* \ 3348 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3349 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3350 | -with-* | --with-* | -without-* | --without-* | --x) 3351 case "$ac_configure_args0 " in 3352 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3353 esac 3354 ;; 3355 -* ) ac_must_keep_next=true ;; 3356 esac 3357 fi 3358 as_fn_append ac_configure_args " '$ac_arg'" 3359 ;; 3360 esac 3361 done 3362done 3363{ ac_configure_args0=; unset ac_configure_args0;} 3364{ ac_configure_args1=; unset ac_configure_args1;} 3365 3366# When interrupted or exit'd, cleanup temporary files, and complete 3367# config.log. We remove comments because anyway the quotes in there 3368# would cause problems or look ugly. 3369# WARNING: Use '\'' to represent an apostrophe within the trap. 3370# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3371trap 'exit_status=$? 3372 # Save into config.log some information that might help in debugging. 3373 { 3374 echo 3375 3376 $as_echo "## ---------------- ## 3377## Cache variables. ## 3378## ---------------- ##" 3379 echo 3380 # The following way of writing the cache mishandles newlines in values, 3381( 3382 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3383 eval ac_val=\$$ac_var 3384 case $ac_val in #( 3385 *${as_nl}*) 3386 case $ac_var in #( 3387 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3388$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3389 esac 3390 case $ac_var in #( 3391 _ | IFS | as_nl) ;; #( 3392 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3393 *) { eval $ac_var=; unset $ac_var;} ;; 3394 esac ;; 3395 esac 3396 done 3397 (set) 2>&1 | 3398 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3399 *${as_nl}ac_space=\ *) 3400 sed -n \ 3401 "s/'\''/'\''\\\\'\'''\''/g; 3402 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3403 ;; #( 3404 *) 3405 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3406 ;; 3407 esac | 3408 sort 3409) 3410 echo 3411 3412 $as_echo "## ----------------- ## 3413## Output variables. ## 3414## ----------------- ##" 3415 echo 3416 for ac_var in $ac_subst_vars 3417 do 3418 eval ac_val=\$$ac_var 3419 case $ac_val in 3420 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3421 esac 3422 $as_echo "$ac_var='\''$ac_val'\''" 3423 done | sort 3424 echo 3425 3426 if test -n "$ac_subst_files"; then 3427 $as_echo "## ------------------- ## 3428## File substitutions. ## 3429## ------------------- ##" 3430 echo 3431 for ac_var in $ac_subst_files 3432 do 3433 eval ac_val=\$$ac_var 3434 case $ac_val in 3435 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3436 esac 3437 $as_echo "$ac_var='\''$ac_val'\''" 3438 done | sort 3439 echo 3440 fi 3441 3442 if test -s confdefs.h; then 3443 $as_echo "## ----------- ## 3444## confdefs.h. ## 3445## ----------- ##" 3446 echo 3447 cat confdefs.h 3448 echo 3449 fi 3450 test "$ac_signal" != 0 && 3451 $as_echo "$as_me: caught signal $ac_signal" 3452 $as_echo "$as_me: exit $exit_status" 3453 } >&5 3454 rm -f core *.core core.conftest.* && 3455 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3456 exit $exit_status 3457' 0 3458for ac_signal in 1 2 13 15; do 3459 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3460done 3461ac_signal=0 3462 3463# confdefs.h avoids OS command line length limits that DEFS can exceed. 3464rm -f -r conftest* confdefs.h 3465 3466$as_echo "/* confdefs.h */" > confdefs.h 3467 3468# Predefined preprocessor variables. 3469 3470cat >>confdefs.h <<_ACEOF 3471#define PACKAGE_NAME "$PACKAGE_NAME" 3472_ACEOF 3473 3474cat >>confdefs.h <<_ACEOF 3475#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3476_ACEOF 3477 3478cat >>confdefs.h <<_ACEOF 3479#define PACKAGE_VERSION "$PACKAGE_VERSION" 3480_ACEOF 3481 3482cat >>confdefs.h <<_ACEOF 3483#define PACKAGE_STRING "$PACKAGE_STRING" 3484_ACEOF 3485 3486cat >>confdefs.h <<_ACEOF 3487#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3488_ACEOF 3489 3490cat >>confdefs.h <<_ACEOF 3491#define PACKAGE_URL "$PACKAGE_URL" 3492_ACEOF 3493 3494 3495# Let the site file select an alternate cache file if it wants to. 3496# Prefer an explicitly selected file to automatically selected ones. 3497ac_site_file1=NONE 3498ac_site_file2=NONE 3499if test -n "$CONFIG_SITE"; then 3500 # We do not want a PATH search for config.site. 3501 case $CONFIG_SITE in #(( 3502 -*) ac_site_file1=./$CONFIG_SITE;; 3503 */*) ac_site_file1=$CONFIG_SITE;; 3504 *) ac_site_file1=./$CONFIG_SITE;; 3505 esac 3506elif test "x$prefix" != xNONE; then 3507 ac_site_file1=$prefix/share/config.site 3508 ac_site_file2=$prefix/etc/config.site 3509else 3510 ac_site_file1=$ac_default_prefix/share/config.site 3511 ac_site_file2=$ac_default_prefix/etc/config.site 3512fi 3513for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3514do 3515 test "x$ac_site_file" = xNONE && continue 3516 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3517 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3518$as_echo "$as_me: loading site script $ac_site_file" >&6;} 3519 sed 's/^/| /' "$ac_site_file" >&5 3520 . "$ac_site_file" \ 3521 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3523as_fn_error $? "failed to load site script $ac_site_file 3524See \`config.log' for more details" "$LINENO" 5; } 3525 fi 3526done 3527 3528if test -r "$cache_file"; then 3529 # Some versions of bash will fail to source /dev/null (special files 3530 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3531 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3532 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3533$as_echo "$as_me: loading cache $cache_file" >&6;} 3534 case $cache_file in 3535 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3536 *) . "./$cache_file";; 3537 esac 3538 fi 3539else 3540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3541$as_echo "$as_me: creating cache $cache_file" >&6;} 3542 >$cache_file 3543fi 3544 3545# Check that the precious variables saved in the cache have kept the same 3546# value. 3547ac_cache_corrupted=false 3548for ac_var in $ac_precious_vars; do 3549 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3550 eval ac_new_set=\$ac_env_${ac_var}_set 3551 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3552 eval ac_new_val=\$ac_env_${ac_var}_value 3553 case $ac_old_set,$ac_new_set in 3554 set,) 3555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3556$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3557 ac_cache_corrupted=: ;; 3558 ,set) 3559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3560$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3561 ac_cache_corrupted=: ;; 3562 ,);; 3563 *) 3564 if test "x$ac_old_val" != "x$ac_new_val"; then 3565 # differences in whitespace do not lead to failure. 3566 ac_old_val_w=`echo x $ac_old_val` 3567 ac_new_val_w=`echo x $ac_new_val` 3568 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3570$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3571 ac_cache_corrupted=: 3572 else 3573 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3574$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3575 eval $ac_var=\$ac_old_val 3576 fi 3577 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3578$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3579 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3580$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3581 fi;; 3582 esac 3583 # Pass precious variables to config.status. 3584 if test "$ac_new_set" = set; then 3585 case $ac_new_val in 3586 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3587 *) ac_arg=$ac_var=$ac_new_val ;; 3588 esac 3589 case " $ac_configure_args " in 3590 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3591 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3592 esac 3593 fi 3594done 3595if $ac_cache_corrupted; then 3596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3597$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3599$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3600 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3601fi 3602## -------------------- ## 3603## Main body of script. ## 3604## -------------------- ## 3605 3606ac_ext=c 3607ac_cpp='$CPP $CPPFLAGS' 3608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3610ac_compiler_gnu=$ac_cv_c_compiler_gnu 3611 3612 3613RELEASE_DATE="2019-11-22" 3614RELEASE_NAME="Enchiladas de Queso" 3615 3616 3617am__api_version='1.16' 3618 3619ac_aux_dir= 3620for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3621 if test -f "$ac_dir/install-sh"; then 3622 ac_aux_dir=$ac_dir 3623 ac_install_sh="$ac_aux_dir/install-sh -c" 3624 break 3625 elif test -f "$ac_dir/install.sh"; then 3626 ac_aux_dir=$ac_dir 3627 ac_install_sh="$ac_aux_dir/install.sh -c" 3628 break 3629 elif test -f "$ac_dir/shtool"; then 3630 ac_aux_dir=$ac_dir 3631 ac_install_sh="$ac_aux_dir/shtool install -c" 3632 break 3633 fi 3634done 3635if test -z "$ac_aux_dir"; then 3636 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3637fi 3638 3639# These three variables are undocumented and unsupported, 3640# and are intended to be withdrawn in a future Autoconf release. 3641# They can cause serious problems if a builder's source tree is in a directory 3642# whose full name contains unusual characters. 3643ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3644ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3645ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3646 3647 3648# Find a good install program. We prefer a C program (faster), 3649# so one script is as good as another. But avoid the broken or 3650# incompatible versions: 3651# SysV /etc/install, /usr/sbin/install 3652# SunOS /usr/etc/install 3653# IRIX /sbin/install 3654# AIX /bin/install 3655# AmigaOS /C/install, which installs bootblocks on floppy discs 3656# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3657# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3658# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3659# OS/2's system install, which has a completely different semantic 3660# ./install, which can be erroneously created by make from ./install.sh. 3661# Reject install programs that cannot install multiple files. 3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3663$as_echo_n "checking for a BSD-compatible install... " >&6; } 3664if test -z "$INSTALL"; then 3665if ${ac_cv_path_install+:} false; then : 3666 $as_echo_n "(cached) " >&6 3667else 3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3669for as_dir in $PATH 3670do 3671 IFS=$as_save_IFS 3672 test -z "$as_dir" && as_dir=. 3673 # Account for people who put trailing slashes in PATH elements. 3674case $as_dir/ in #(( 3675 ./ | .// | /[cC]/* | \ 3676 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3677 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3678 /usr/ucb/* ) ;; 3679 *) 3680 # OSF1 and SCO ODT 3.0 have their own names for install. 3681 # Don't use installbsd from OSF since it installs stuff as root 3682 # by default. 3683 for ac_prog in ginstall scoinst install; do 3684 for ac_exec_ext in '' $ac_executable_extensions; do 3685 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3686 if test $ac_prog = install && 3687 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3688 # AIX install. It has an incompatible calling convention. 3689 : 3690 elif test $ac_prog = install && 3691 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3692 # program-specific install script used by HP pwplus--don't use. 3693 : 3694 else 3695 rm -rf conftest.one conftest.two conftest.dir 3696 echo one > conftest.one 3697 echo two > conftest.two 3698 mkdir conftest.dir 3699 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3700 test -s conftest.one && test -s conftest.two && 3701 test -s conftest.dir/conftest.one && 3702 test -s conftest.dir/conftest.two 3703 then 3704 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3705 break 3 3706 fi 3707 fi 3708 fi 3709 done 3710 done 3711 ;; 3712esac 3713 3714 done 3715IFS=$as_save_IFS 3716 3717rm -rf conftest.one conftest.two conftest.dir 3718 3719fi 3720 if test "${ac_cv_path_install+set}" = set; then 3721 INSTALL=$ac_cv_path_install 3722 else 3723 # As a last resort, use the slow shell script. Don't cache a 3724 # value for INSTALL within a source directory, because that will 3725 # break other packages using the cache if that directory is 3726 # removed, or if the value is a relative name. 3727 INSTALL=$ac_install_sh 3728 fi 3729fi 3730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3731$as_echo "$INSTALL" >&6; } 3732 3733# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3734# It thinks the first close brace ends the variable substitution. 3735test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3736 3737test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3738 3739test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3740 3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3742$as_echo_n "checking whether build environment is sane... " >&6; } 3743# Reject unsafe characters in $srcdir or the absolute working directory 3744# name. Accept space and tab only in the latter. 3745am_lf=' 3746' 3747case `pwd` in 3748 *[\\\"\#\$\&\'\`$am_lf]*) 3749 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3750esac 3751case $srcdir in 3752 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3753 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3754esac 3755 3756# Do 'set' in a subshell so we don't clobber the current shell's 3757# arguments. Must try -L first in case configure is actually a 3758# symlink; some systems play weird games with the mod time of symlinks 3759# (eg FreeBSD returns the mod time of the symlink's containing 3760# directory). 3761if ( 3762 am_has_slept=no 3763 for am_try in 1 2; do 3764 echo "timestamp, slept: $am_has_slept" > conftest.file 3765 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3766 if test "$*" = "X"; then 3767 # -L didn't work. 3768 set X `ls -t "$srcdir/configure" conftest.file` 3769 fi 3770 if test "$*" != "X $srcdir/configure conftest.file" \ 3771 && test "$*" != "X conftest.file $srcdir/configure"; then 3772 3773 # If neither matched, then we have a broken ls. This can happen 3774 # if, for instance, CONFIG_SHELL is bash and it inherits a 3775 # broken ls alias from the environment. This has actually 3776 # happened. Such a system could not be considered "sane". 3777 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3778 alias in your environment" "$LINENO" 5 3779 fi 3780 if test "$2" = conftest.file || test $am_try -eq 2; then 3781 break 3782 fi 3783 # Just in case. 3784 sleep 1 3785 am_has_slept=yes 3786 done 3787 test "$2" = conftest.file 3788 ) 3789then 3790 # Ok. 3791 : 3792else 3793 as_fn_error $? "newly created file is older than distributed files! 3794Check your system clock" "$LINENO" 5 3795fi 3796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3797$as_echo "yes" >&6; } 3798# If we didn't sleep, we still need to ensure time stamps of config.status and 3799# generated files are strictly newer. 3800am_sleep_pid= 3801if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3802 ( sleep 1 ) & 3803 am_sleep_pid=$! 3804fi 3805 3806rm -f conftest.file 3807 3808test "$program_prefix" != NONE && 3809 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3810# Use a double $ so make ignores it. 3811test "$program_suffix" != NONE && 3812 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3813# Double any \ or $. 3814# By default was `s,x,x', remove it if useless. 3815ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3816program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3817 3818# Expand $ac_aux_dir to an absolute path. 3819am_aux_dir=`cd "$ac_aux_dir" && pwd` 3820 3821if test x"${MISSING+set}" != xset; then 3822 case $am_aux_dir in 3823 *\ * | *\ *) 3824 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3825 *) 3826 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3827 esac 3828fi 3829# Use eval to expand $SHELL 3830if eval "$MISSING --is-lightweight"; then 3831 am_missing_run="$MISSING " 3832else 3833 am_missing_run= 3834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3835$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3836fi 3837 3838if test x"${install_sh+set}" != xset; then 3839 case $am_aux_dir in 3840 *\ * | *\ *) 3841 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3842 *) 3843 install_sh="\${SHELL} $am_aux_dir/install-sh" 3844 esac 3845fi 3846 3847# Installed binaries are usually stripped using 'strip' when the user 3848# run "make install-strip". However 'strip' might not be the right 3849# tool to use in cross-compilation environments, therefore Automake 3850# will honor the 'STRIP' environment variable to overrule this program. 3851if test "$cross_compiling" != no; then 3852 if test -n "$ac_tool_prefix"; then 3853 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3854set dummy ${ac_tool_prefix}strip; ac_word=$2 3855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3856$as_echo_n "checking for $ac_word... " >&6; } 3857if ${ac_cv_prog_STRIP+:} false; then : 3858 $as_echo_n "(cached) " >&6 3859else 3860 if test -n "$STRIP"; then 3861 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3862else 3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3864for as_dir in $PATH 3865do 3866 IFS=$as_save_IFS 3867 test -z "$as_dir" && as_dir=. 3868 for ac_exec_ext in '' $ac_executable_extensions; do 3869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3870 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3872 break 2 3873 fi 3874done 3875 done 3876IFS=$as_save_IFS 3877 3878fi 3879fi 3880STRIP=$ac_cv_prog_STRIP 3881if test -n "$STRIP"; then 3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3883$as_echo "$STRIP" >&6; } 3884else 3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3886$as_echo "no" >&6; } 3887fi 3888 3889 3890fi 3891if test -z "$ac_cv_prog_STRIP"; then 3892 ac_ct_STRIP=$STRIP 3893 # Extract the first word of "strip", so it can be a program name with args. 3894set dummy strip; ac_word=$2 3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3896$as_echo_n "checking for $ac_word... " >&6; } 3897if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3898 $as_echo_n "(cached) " >&6 3899else 3900 if test -n "$ac_ct_STRIP"; then 3901 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3902else 3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3904for as_dir in $PATH 3905do 3906 IFS=$as_save_IFS 3907 test -z "$as_dir" && as_dir=. 3908 for ac_exec_ext in '' $ac_executable_extensions; do 3909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3910 ac_cv_prog_ac_ct_STRIP="strip" 3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3912 break 2 3913 fi 3914done 3915 done 3916IFS=$as_save_IFS 3917 3918fi 3919fi 3920ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3921if test -n "$ac_ct_STRIP"; then 3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3923$as_echo "$ac_ct_STRIP" >&6; } 3924else 3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3926$as_echo "no" >&6; } 3927fi 3928 3929 if test "x$ac_ct_STRIP" = x; then 3930 STRIP=":" 3931 else 3932 case $cross_compiling:$ac_tool_warned in 3933yes:) 3934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3936ac_tool_warned=yes ;; 3937esac 3938 STRIP=$ac_ct_STRIP 3939 fi 3940else 3941 STRIP="$ac_cv_prog_STRIP" 3942fi 3943 3944fi 3945INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3946 3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3948$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3949if test -z "$MKDIR_P"; then 3950 if ${ac_cv_path_mkdir+:} false; then : 3951 $as_echo_n "(cached) " >&6 3952else 3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3954for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3955do 3956 IFS=$as_save_IFS 3957 test -z "$as_dir" && as_dir=. 3958 for ac_prog in mkdir gmkdir; do 3959 for ac_exec_ext in '' $ac_executable_extensions; do 3960 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3961 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3962 'mkdir (GNU coreutils) '* | \ 3963 'mkdir (coreutils) '* | \ 3964 'mkdir (fileutils) '4.1*) 3965 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3966 break 3;; 3967 esac 3968 done 3969 done 3970 done 3971IFS=$as_save_IFS 3972 3973fi 3974 3975 test -d ./--version && rmdir ./--version 3976 if test "${ac_cv_path_mkdir+set}" = set; then 3977 MKDIR_P="$ac_cv_path_mkdir -p" 3978 else 3979 # As a last resort, use the slow shell script. Don't cache a 3980 # value for MKDIR_P within a source directory, because that will 3981 # break other packages using the cache if that directory is 3982 # removed, or if the value is a relative name. 3983 MKDIR_P="$ac_install_sh -d" 3984 fi 3985fi 3986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3987$as_echo "$MKDIR_P" >&6; } 3988 3989for ac_prog in gawk mawk nawk awk 3990do 3991 # Extract the first word of "$ac_prog", so it can be a program name with args. 3992set dummy $ac_prog; ac_word=$2 3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3994$as_echo_n "checking for $ac_word... " >&6; } 3995if ${ac_cv_prog_AWK+:} false; then : 3996 $as_echo_n "(cached) " >&6 3997else 3998 if test -n "$AWK"; then 3999 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4000else 4001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4002for as_dir in $PATH 4003do 4004 IFS=$as_save_IFS 4005 test -z "$as_dir" && as_dir=. 4006 for ac_exec_ext in '' $ac_executable_extensions; do 4007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4008 ac_cv_prog_AWK="$ac_prog" 4009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4010 break 2 4011 fi 4012done 4013 done 4014IFS=$as_save_IFS 4015 4016fi 4017fi 4018AWK=$ac_cv_prog_AWK 4019if test -n "$AWK"; then 4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4021$as_echo "$AWK" >&6; } 4022else 4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4024$as_echo "no" >&6; } 4025fi 4026 4027 4028 test -n "$AWK" && break 4029done 4030 4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4032$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4033set x ${MAKE-make} 4034ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4035if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4036 $as_echo_n "(cached) " >&6 4037else 4038 cat >conftest.make <<\_ACEOF 4039SHELL = /bin/sh 4040all: 4041 @echo '@@@%%%=$(MAKE)=@@@%%%' 4042_ACEOF 4043# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4044case `${MAKE-make} -f conftest.make 2>/dev/null` in 4045 *@@@%%%=?*=@@@%%%*) 4046 eval ac_cv_prog_make_${ac_make}_set=yes;; 4047 *) 4048 eval ac_cv_prog_make_${ac_make}_set=no;; 4049esac 4050rm -f conftest.make 4051fi 4052if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4054$as_echo "yes" >&6; } 4055 SET_MAKE= 4056else 4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4058$as_echo "no" >&6; } 4059 SET_MAKE="MAKE=${MAKE-make}" 4060fi 4061 4062rm -rf .tst 2>/dev/null 4063mkdir .tst 2>/dev/null 4064if test -d .tst; then 4065 am__leading_dot=. 4066else 4067 am__leading_dot=_ 4068fi 4069rmdir .tst 2>/dev/null 4070 4071# Check whether --enable-silent-rules was given. 4072if test "${enable_silent_rules+set}" = set; then : 4073 enableval=$enable_silent_rules; 4074fi 4075 4076case $enable_silent_rules in # ((( 4077 yes) AM_DEFAULT_VERBOSITY=0;; 4078 no) AM_DEFAULT_VERBOSITY=1;; 4079 *) AM_DEFAULT_VERBOSITY=1;; 4080esac 4081am_make=${MAKE-make} 4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4083$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4084if ${am_cv_make_support_nested_variables+:} false; then : 4085 $as_echo_n "(cached) " >&6 4086else 4087 if $as_echo 'TRUE=$(BAR$(V)) 4088BAR0=false 4089BAR1=true 4090V=1 4091am__doit: 4092 @$(TRUE) 4093.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4094 am_cv_make_support_nested_variables=yes 4095else 4096 am_cv_make_support_nested_variables=no 4097fi 4098fi 4099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4100$as_echo "$am_cv_make_support_nested_variables" >&6; } 4101if test $am_cv_make_support_nested_variables = yes; then 4102 AM_V='$(V)' 4103 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4104else 4105 AM_V=$AM_DEFAULT_VERBOSITY 4106 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4107fi 4108AM_BACKSLASH='\' 4109 4110if test "`cd $srcdir && pwd`" != "`pwd`"; then 4111 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4112 # is not polluted with repeated "-I." 4113 am__isrc=' -I$(srcdir)' 4114 # test to see if srcdir already configured 4115 if test -f $srcdir/config.status; then 4116 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4117 fi 4118fi 4119 4120# test whether we have cygpath 4121if test -z "$CYGPATH_W"; then 4122 if (cygpath --version) >/dev/null 2>/dev/null; then 4123 CYGPATH_W='cygpath -w' 4124 else 4125 CYGPATH_W=echo 4126 fi 4127fi 4128 4129 4130# Define the identity of the package. 4131 PACKAGE='xorg-server' 4132 VERSION='1.20.6' 4133 4134 4135cat >>confdefs.h <<_ACEOF 4136#define PACKAGE "$PACKAGE" 4137_ACEOF 4138 4139 4140cat >>confdefs.h <<_ACEOF 4141#define VERSION "$VERSION" 4142_ACEOF 4143 4144# Some tools Automake needs. 4145 4146ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4147 4148 4149AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4150 4151 4152AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4153 4154 4155AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4156 4157 4158MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4159 4160# For better backward compatibility. To be removed once Automake 1.9.x 4161# dies out for good. For more background, see: 4162# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4163# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4164mkdir_p='$(MKDIR_P)' 4165 4166# We need awk for the "check" target (and possibly the TAP driver). The 4167# system "awk" is bad on some platforms. 4168# Always define AMTAR for backward compatibility. Yes, it's still used 4169# in the wild :-( We should find a proper way to deprecate it ... 4170AMTAR='$${TAR-tar}' 4171 4172 4173# We'll loop over all known methods to create a tar archive until one works. 4174_am_tools='gnutar pax cpio none' 4175 4176am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4177 4178 4179 4180 4181 4182 4183# POSIX will say in a future version that running "rm -f" with no argument 4184# is OK; and we want to be able to make that assumption in our Makefile 4185# recipes. So use an aggressive probe to check that the usage we want is 4186# actually supported "in the wild" to an acceptable degree. 4187# See automake bug#10828. 4188# To make any issue more visible, cause the running configure to be aborted 4189# by default if the 'rm' program in use doesn't match our expectations; the 4190# user can still override this though. 4191if rm -f && rm -fr && rm -rf; then : OK; else 4192 cat >&2 <<'END' 4193Oops! 4194 4195Your 'rm' program seems unable to run without file operands specified 4196on the command line, even when the '-f' option is present. This is contrary 4197to the behaviour of most rm programs out there, and not conforming with 4198the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4199 4200Please tell bug-automake@gnu.org about your system, including the value 4201of your $PATH and any error possibly output before this message. This 4202can help us improve future automake versions. 4203 4204END 4205 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4206 echo 'Configuration will proceed anyway, since you have set the' >&2 4207 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4208 echo >&2 4209 else 4210 cat >&2 <<'END' 4211Aborting the configuration process, to ensure you take notice of the issue. 4212 4213You can download and install GNU coreutils to get an 'rm' implementation 4214that behaves properly: <https://www.gnu.org/software/coreutils/>. 4215 4216If you want to complete the configuration process using your problematic 4217'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4218to "yes", and re-run configure. 4219 4220END 4221 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4222 fi 4223fi 4224 4225DEPDIR="${am__leading_dot}deps" 4226 4227ac_config_commands="$ac_config_commands depfiles" 4228 4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4230$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4231cat > confinc.mk << 'END' 4232am__doit: 4233 @echo this is the am__doit target >confinc.out 4234.PHONY: am__doit 4235END 4236am__include="#" 4237am__quote= 4238# BSD make does it like this. 4239echo '.include "confinc.mk" # ignored' > confmf.BSD 4240# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4241echo 'include confinc.mk # ignored' > confmf.GNU 4242_am_result=no 4243for s in GNU BSD; do 4244 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4245 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4246 ac_status=$? 4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4248 (exit $ac_status); } 4249 case $?:`cat confinc.out 2>/dev/null` in #( 4250 '0:this is the am__doit target') : 4251 case $s in #( 4252 BSD) : 4253 am__include='.include' am__quote='"' ;; #( 4254 *) : 4255 am__include='include' am__quote='' ;; 4256esac ;; #( 4257 *) : 4258 ;; 4259esac 4260 if test "$am__include" != "#"; then 4261 _am_result="yes ($s style)" 4262 break 4263 fi 4264done 4265rm -f confinc.* confmf.* 4266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4267$as_echo "${_am_result}" >&6; } 4268 4269# Check whether --enable-dependency-tracking was given. 4270if test "${enable_dependency_tracking+set}" = set; then : 4271 enableval=$enable_dependency_tracking; 4272fi 4273 4274if test "x$enable_dependency_tracking" != xno; then 4275 am_depcomp="$ac_aux_dir/depcomp" 4276 AMDEPBACKSLASH='\' 4277 am__nodep='_no' 4278fi 4279 if test "x$enable_dependency_tracking" != xno; then 4280 AMDEP_TRUE= 4281 AMDEP_FALSE='#' 4282else 4283 AMDEP_TRUE='#' 4284 AMDEP_FALSE= 4285fi 4286 4287 4288ac_ext=c 4289ac_cpp='$CPP $CPPFLAGS' 4290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4292ac_compiler_gnu=$ac_cv_c_compiler_gnu 4293if test -n "$ac_tool_prefix"; then 4294 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4295set dummy ${ac_tool_prefix}gcc; ac_word=$2 4296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4297$as_echo_n "checking for $ac_word... " >&6; } 4298if ${ac_cv_prog_CC+:} false; then : 4299 $as_echo_n "(cached) " >&6 4300else 4301 if test -n "$CC"; then 4302 ac_cv_prog_CC="$CC" # Let the user override the test. 4303else 4304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4305for as_dir in $PATH 4306do 4307 IFS=$as_save_IFS 4308 test -z "$as_dir" && as_dir=. 4309 for ac_exec_ext in '' $ac_executable_extensions; do 4310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4311 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4313 break 2 4314 fi 4315done 4316 done 4317IFS=$as_save_IFS 4318 4319fi 4320fi 4321CC=$ac_cv_prog_CC 4322if test -n "$CC"; then 4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4324$as_echo "$CC" >&6; } 4325else 4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4327$as_echo "no" >&6; } 4328fi 4329 4330 4331fi 4332if test -z "$ac_cv_prog_CC"; then 4333 ac_ct_CC=$CC 4334 # Extract the first word of "gcc", so it can be a program name with args. 4335set dummy gcc; ac_word=$2 4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4337$as_echo_n "checking for $ac_word... " >&6; } 4338if ${ac_cv_prog_ac_ct_CC+:} false; then : 4339 $as_echo_n "(cached) " >&6 4340else 4341 if test -n "$ac_ct_CC"; then 4342 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4343else 4344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4345for as_dir in $PATH 4346do 4347 IFS=$as_save_IFS 4348 test -z "$as_dir" && as_dir=. 4349 for ac_exec_ext in '' $ac_executable_extensions; do 4350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4351 ac_cv_prog_ac_ct_CC="gcc" 4352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4353 break 2 4354 fi 4355done 4356 done 4357IFS=$as_save_IFS 4358 4359fi 4360fi 4361ac_ct_CC=$ac_cv_prog_ac_ct_CC 4362if test -n "$ac_ct_CC"; then 4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4364$as_echo "$ac_ct_CC" >&6; } 4365else 4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4367$as_echo "no" >&6; } 4368fi 4369 4370 if test "x$ac_ct_CC" = x; then 4371 CC="" 4372 else 4373 case $cross_compiling:$ac_tool_warned in 4374yes:) 4375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4377ac_tool_warned=yes ;; 4378esac 4379 CC=$ac_ct_CC 4380 fi 4381else 4382 CC="$ac_cv_prog_CC" 4383fi 4384 4385if test -z "$CC"; then 4386 if test -n "$ac_tool_prefix"; then 4387 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4388set dummy ${ac_tool_prefix}cc; ac_word=$2 4389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4390$as_echo_n "checking for $ac_word... " >&6; } 4391if ${ac_cv_prog_CC+:} false; then : 4392 $as_echo_n "(cached) " >&6 4393else 4394 if test -n "$CC"; then 4395 ac_cv_prog_CC="$CC" # Let the user override the test. 4396else 4397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4398for as_dir in $PATH 4399do 4400 IFS=$as_save_IFS 4401 test -z "$as_dir" && as_dir=. 4402 for ac_exec_ext in '' $ac_executable_extensions; do 4403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4404 ac_cv_prog_CC="${ac_tool_prefix}cc" 4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4406 break 2 4407 fi 4408done 4409 done 4410IFS=$as_save_IFS 4411 4412fi 4413fi 4414CC=$ac_cv_prog_CC 4415if test -n "$CC"; then 4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4417$as_echo "$CC" >&6; } 4418else 4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4420$as_echo "no" >&6; } 4421fi 4422 4423 4424 fi 4425fi 4426if test -z "$CC"; then 4427 # Extract the first word of "cc", so it can be a program name with args. 4428set dummy cc; ac_word=$2 4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4430$as_echo_n "checking for $ac_word... " >&6; } 4431if ${ac_cv_prog_CC+:} false; then : 4432 $as_echo_n "(cached) " >&6 4433else 4434 if test -n "$CC"; then 4435 ac_cv_prog_CC="$CC" # Let the user override the test. 4436else 4437 ac_prog_rejected=no 4438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4439for as_dir in $PATH 4440do 4441 IFS=$as_save_IFS 4442 test -z "$as_dir" && as_dir=. 4443 for ac_exec_ext in '' $ac_executable_extensions; do 4444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4445 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4446 ac_prog_rejected=yes 4447 continue 4448 fi 4449 ac_cv_prog_CC="cc" 4450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4451 break 2 4452 fi 4453done 4454 done 4455IFS=$as_save_IFS 4456 4457if test $ac_prog_rejected = yes; then 4458 # We found a bogon in the path, so make sure we never use it. 4459 set dummy $ac_cv_prog_CC 4460 shift 4461 if test $# != 0; then 4462 # We chose a different compiler from the bogus one. 4463 # However, it has the same basename, so the bogon will be chosen 4464 # first if we set CC to just the basename; use the full file name. 4465 shift 4466 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4467 fi 4468fi 4469fi 4470fi 4471CC=$ac_cv_prog_CC 4472if test -n "$CC"; then 4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4474$as_echo "$CC" >&6; } 4475else 4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4477$as_echo "no" >&6; } 4478fi 4479 4480 4481fi 4482if test -z "$CC"; then 4483 if test -n "$ac_tool_prefix"; then 4484 for ac_prog in cl.exe 4485 do 4486 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4487set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4489$as_echo_n "checking for $ac_word... " >&6; } 4490if ${ac_cv_prog_CC+:} false; then : 4491 $as_echo_n "(cached) " >&6 4492else 4493 if test -n "$CC"; then 4494 ac_cv_prog_CC="$CC" # Let the user override the test. 4495else 4496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4497for as_dir in $PATH 4498do 4499 IFS=$as_save_IFS 4500 test -z "$as_dir" && as_dir=. 4501 for ac_exec_ext in '' $ac_executable_extensions; do 4502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4503 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4505 break 2 4506 fi 4507done 4508 done 4509IFS=$as_save_IFS 4510 4511fi 4512fi 4513CC=$ac_cv_prog_CC 4514if test -n "$CC"; then 4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4516$as_echo "$CC" >&6; } 4517else 4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4519$as_echo "no" >&6; } 4520fi 4521 4522 4523 test -n "$CC" && break 4524 done 4525fi 4526if test -z "$CC"; then 4527 ac_ct_CC=$CC 4528 for ac_prog in cl.exe 4529do 4530 # Extract the first word of "$ac_prog", so it can be a program name with args. 4531set dummy $ac_prog; ac_word=$2 4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4533$as_echo_n "checking for $ac_word... " >&6; } 4534if ${ac_cv_prog_ac_ct_CC+:} false; then : 4535 $as_echo_n "(cached) " >&6 4536else 4537 if test -n "$ac_ct_CC"; then 4538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4539else 4540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4541for as_dir in $PATH 4542do 4543 IFS=$as_save_IFS 4544 test -z "$as_dir" && as_dir=. 4545 for ac_exec_ext in '' $ac_executable_extensions; do 4546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4547 ac_cv_prog_ac_ct_CC="$ac_prog" 4548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4549 break 2 4550 fi 4551done 4552 done 4553IFS=$as_save_IFS 4554 4555fi 4556fi 4557ac_ct_CC=$ac_cv_prog_ac_ct_CC 4558if test -n "$ac_ct_CC"; then 4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4560$as_echo "$ac_ct_CC" >&6; } 4561else 4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4563$as_echo "no" >&6; } 4564fi 4565 4566 4567 test -n "$ac_ct_CC" && break 4568done 4569 4570 if test "x$ac_ct_CC" = x; then 4571 CC="" 4572 else 4573 case $cross_compiling:$ac_tool_warned in 4574yes:) 4575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4577ac_tool_warned=yes ;; 4578esac 4579 CC=$ac_ct_CC 4580 fi 4581fi 4582 4583fi 4584 4585 4586test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4588as_fn_error $? "no acceptable C compiler found in \$PATH 4589See \`config.log' for more details" "$LINENO" 5; } 4590 4591# Provide some information about the compiler. 4592$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4593set X $ac_compile 4594ac_compiler=$2 4595for ac_option in --version -v -V -qversion; do 4596 { { ac_try="$ac_compiler $ac_option >&5" 4597case "(($ac_try" in 4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4599 *) ac_try_echo=$ac_try;; 4600esac 4601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4602$as_echo "$ac_try_echo"; } >&5 4603 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4604 ac_status=$? 4605 if test -s conftest.err; then 4606 sed '10a\ 4607... rest of stderr output deleted ... 4608 10q' conftest.err >conftest.er1 4609 cat conftest.er1 >&5 4610 fi 4611 rm -f conftest.er1 conftest.err 4612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4613 test $ac_status = 0; } 4614done 4615 4616cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4617/* end confdefs.h. */ 4618 4619int 4620main () 4621{ 4622 4623 ; 4624 return 0; 4625} 4626_ACEOF 4627ac_clean_files_save=$ac_clean_files 4628ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4629# Try to create an executable without -o first, disregard a.out. 4630# It will help us diagnose broken compilers, and finding out an intuition 4631# of exeext. 4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4633$as_echo_n "checking whether the C compiler works... " >&6; } 4634ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4635 4636# The possible output files: 4637ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4638 4639ac_rmfiles= 4640for ac_file in $ac_files 4641do 4642 case $ac_file in 4643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4644 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4645 esac 4646done 4647rm -f $ac_rmfiles 4648 4649if { { ac_try="$ac_link_default" 4650case "(($ac_try" in 4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4652 *) ac_try_echo=$ac_try;; 4653esac 4654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4655$as_echo "$ac_try_echo"; } >&5 4656 (eval "$ac_link_default") 2>&5 4657 ac_status=$? 4658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4659 test $ac_status = 0; }; then : 4660 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4661# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4662# in a Makefile. We should not override ac_cv_exeext if it was cached, 4663# so that the user can short-circuit this test for compilers unknown to 4664# Autoconf. 4665for ac_file in $ac_files '' 4666do 4667 test -f "$ac_file" || continue 4668 case $ac_file in 4669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4670 ;; 4671 [ab].out ) 4672 # We found the default executable, but exeext='' is most 4673 # certainly right. 4674 break;; 4675 *.* ) 4676 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4677 then :; else 4678 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4679 fi 4680 # We set ac_cv_exeext here because the later test for it is not 4681 # safe: cross compilers may not add the suffix if given an `-o' 4682 # argument, so we may need to know it at that point already. 4683 # Even if this section looks crufty: it has the advantage of 4684 # actually working. 4685 break;; 4686 * ) 4687 break;; 4688 esac 4689done 4690test "$ac_cv_exeext" = no && ac_cv_exeext= 4691 4692else 4693 ac_file='' 4694fi 4695if test -z "$ac_file"; then : 4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4697$as_echo "no" >&6; } 4698$as_echo "$as_me: failed program was:" >&5 4699sed 's/^/| /' conftest.$ac_ext >&5 4700 4701{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4703as_fn_error 77 "C compiler cannot create executables 4704See \`config.log' for more details" "$LINENO" 5; } 4705else 4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4707$as_echo "yes" >&6; } 4708fi 4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4710$as_echo_n "checking for C compiler default output file name... " >&6; } 4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4712$as_echo "$ac_file" >&6; } 4713ac_exeext=$ac_cv_exeext 4714 4715rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4716ac_clean_files=$ac_clean_files_save 4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4718$as_echo_n "checking for suffix of executables... " >&6; } 4719if { { ac_try="$ac_link" 4720case "(($ac_try" in 4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4722 *) ac_try_echo=$ac_try;; 4723esac 4724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4725$as_echo "$ac_try_echo"; } >&5 4726 (eval "$ac_link") 2>&5 4727 ac_status=$? 4728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4729 test $ac_status = 0; }; then : 4730 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4731# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4732# work properly (i.e., refer to `conftest.exe'), while it won't with 4733# `rm'. 4734for ac_file in conftest.exe conftest conftest.*; do 4735 test -f "$ac_file" || continue 4736 case $ac_file in 4737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4738 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4739 break;; 4740 * ) break;; 4741 esac 4742done 4743else 4744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4746as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4747See \`config.log' for more details" "$LINENO" 5; } 4748fi 4749rm -f conftest conftest$ac_cv_exeext 4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4751$as_echo "$ac_cv_exeext" >&6; } 4752 4753rm -f conftest.$ac_ext 4754EXEEXT=$ac_cv_exeext 4755ac_exeext=$EXEEXT 4756cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4757/* end confdefs.h. */ 4758#include <stdio.h> 4759int 4760main () 4761{ 4762FILE *f = fopen ("conftest.out", "w"); 4763 return ferror (f) || fclose (f) != 0; 4764 4765 ; 4766 return 0; 4767} 4768_ACEOF 4769ac_clean_files="$ac_clean_files conftest.out" 4770# Check that the compiler produces executables we can run. If not, either 4771# the compiler is broken, or we cross compile. 4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4773$as_echo_n "checking whether we are cross compiling... " >&6; } 4774if test "$cross_compiling" != yes; then 4775 { { ac_try="$ac_link" 4776case "(($ac_try" in 4777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4778 *) ac_try_echo=$ac_try;; 4779esac 4780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4781$as_echo "$ac_try_echo"; } >&5 4782 (eval "$ac_link") 2>&5 4783 ac_status=$? 4784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4785 test $ac_status = 0; } 4786 if { ac_try='./conftest$ac_cv_exeext' 4787 { { case "(($ac_try" in 4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4789 *) ac_try_echo=$ac_try;; 4790esac 4791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4792$as_echo "$ac_try_echo"; } >&5 4793 (eval "$ac_try") 2>&5 4794 ac_status=$? 4795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4796 test $ac_status = 0; }; }; then 4797 cross_compiling=no 4798 else 4799 if test "$cross_compiling" = maybe; then 4800 cross_compiling=yes 4801 else 4802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4804as_fn_error $? "cannot run C compiled programs. 4805If you meant to cross compile, use \`--host'. 4806See \`config.log' for more details" "$LINENO" 5; } 4807 fi 4808 fi 4809fi 4810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4811$as_echo "$cross_compiling" >&6; } 4812 4813rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4814ac_clean_files=$ac_clean_files_save 4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4816$as_echo_n "checking for suffix of object files... " >&6; } 4817if ${ac_cv_objext+:} false; then : 4818 $as_echo_n "(cached) " >&6 4819else 4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4821/* end confdefs.h. */ 4822 4823int 4824main () 4825{ 4826 4827 ; 4828 return 0; 4829} 4830_ACEOF 4831rm -f conftest.o conftest.obj 4832if { { ac_try="$ac_compile" 4833case "(($ac_try" in 4834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4835 *) ac_try_echo=$ac_try;; 4836esac 4837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4838$as_echo "$ac_try_echo"; } >&5 4839 (eval "$ac_compile") 2>&5 4840 ac_status=$? 4841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4842 test $ac_status = 0; }; then : 4843 for ac_file in conftest.o conftest.obj conftest.*; do 4844 test -f "$ac_file" || continue; 4845 case $ac_file in 4846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4847 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4848 break;; 4849 esac 4850done 4851else 4852 $as_echo "$as_me: failed program was:" >&5 4853sed 's/^/| /' conftest.$ac_ext >&5 4854 4855{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4857as_fn_error $? "cannot compute suffix of object files: cannot compile 4858See \`config.log' for more details" "$LINENO" 5; } 4859fi 4860rm -f conftest.$ac_cv_objext conftest.$ac_ext 4861fi 4862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4863$as_echo "$ac_cv_objext" >&6; } 4864OBJEXT=$ac_cv_objext 4865ac_objext=$OBJEXT 4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4867$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4868if ${ac_cv_c_compiler_gnu+:} false; then : 4869 $as_echo_n "(cached) " >&6 4870else 4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4872/* end confdefs.h. */ 4873 4874int 4875main () 4876{ 4877#ifndef __GNUC__ 4878 choke me 4879#endif 4880 4881 ; 4882 return 0; 4883} 4884_ACEOF 4885if ac_fn_c_try_compile "$LINENO"; then : 4886 ac_compiler_gnu=yes 4887else 4888 ac_compiler_gnu=no 4889fi 4890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4891ac_cv_c_compiler_gnu=$ac_compiler_gnu 4892 4893fi 4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4895$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4896if test $ac_compiler_gnu = yes; then 4897 GCC=yes 4898else 4899 GCC= 4900fi 4901ac_test_CFLAGS=${CFLAGS+set} 4902ac_save_CFLAGS=$CFLAGS 4903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4904$as_echo_n "checking whether $CC accepts -g... " >&6; } 4905if ${ac_cv_prog_cc_g+:} false; then : 4906 $as_echo_n "(cached) " >&6 4907else 4908 ac_save_c_werror_flag=$ac_c_werror_flag 4909 ac_c_werror_flag=yes 4910 ac_cv_prog_cc_g=no 4911 CFLAGS="-g" 4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4913/* end confdefs.h. */ 4914 4915int 4916main () 4917{ 4918 4919 ; 4920 return 0; 4921} 4922_ACEOF 4923if ac_fn_c_try_compile "$LINENO"; then : 4924 ac_cv_prog_cc_g=yes 4925else 4926 CFLAGS="" 4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4928/* end confdefs.h. */ 4929 4930int 4931main () 4932{ 4933 4934 ; 4935 return 0; 4936} 4937_ACEOF 4938if ac_fn_c_try_compile "$LINENO"; then : 4939 4940else 4941 ac_c_werror_flag=$ac_save_c_werror_flag 4942 CFLAGS="-g" 4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4944/* end confdefs.h. */ 4945 4946int 4947main () 4948{ 4949 4950 ; 4951 return 0; 4952} 4953_ACEOF 4954if ac_fn_c_try_compile "$LINENO"; then : 4955 ac_cv_prog_cc_g=yes 4956fi 4957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4958fi 4959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4960fi 4961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4962 ac_c_werror_flag=$ac_save_c_werror_flag 4963fi 4964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4965$as_echo "$ac_cv_prog_cc_g" >&6; } 4966if test "$ac_test_CFLAGS" = set; then 4967 CFLAGS=$ac_save_CFLAGS 4968elif test $ac_cv_prog_cc_g = yes; then 4969 if test "$GCC" = yes; then 4970 CFLAGS="-g -O2" 4971 else 4972 CFLAGS="-g" 4973 fi 4974else 4975 if test "$GCC" = yes; then 4976 CFLAGS="-O2" 4977 else 4978 CFLAGS= 4979 fi 4980fi 4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4982$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4983if ${ac_cv_prog_cc_c89+:} false; then : 4984 $as_echo_n "(cached) " >&6 4985else 4986 ac_cv_prog_cc_c89=no 4987ac_save_CC=$CC 4988cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4989/* end confdefs.h. */ 4990#include <stdarg.h> 4991#include <stdio.h> 4992struct stat; 4993/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4994struct buf { int x; }; 4995FILE * (*rcsopen) (struct buf *, struct stat *, int); 4996static char *e (p, i) 4997 char **p; 4998 int i; 4999{ 5000 return p[i]; 5001} 5002static char *f (char * (*g) (char **, int), char **p, ...) 5003{ 5004 char *s; 5005 va_list v; 5006 va_start (v,p); 5007 s = g (p, va_arg (v,int)); 5008 va_end (v); 5009 return s; 5010} 5011 5012/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5013 function prototypes and stuff, but not '\xHH' hex character constants. 5014 These don't provoke an error unfortunately, instead are silently treated 5015 as 'x'. The following induces an error, until -std is added to get 5016 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5017 array size at least. It's necessary to write '\x00'==0 to get something 5018 that's true only with -std. */ 5019int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5020 5021/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5022 inside strings and character constants. */ 5023#define FOO(x) 'x' 5024int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5025 5026int test (int i, double x); 5027struct s1 {int (*f) (int a);}; 5028struct s2 {int (*f) (double a);}; 5029int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5030int argc; 5031char **argv; 5032int 5033main () 5034{ 5035return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5036 ; 5037 return 0; 5038} 5039_ACEOF 5040for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5041 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5042do 5043 CC="$ac_save_CC $ac_arg" 5044 if ac_fn_c_try_compile "$LINENO"; then : 5045 ac_cv_prog_cc_c89=$ac_arg 5046fi 5047rm -f core conftest.err conftest.$ac_objext 5048 test "x$ac_cv_prog_cc_c89" != "xno" && break 5049done 5050rm -f conftest.$ac_ext 5051CC=$ac_save_CC 5052 5053fi 5054# AC_CACHE_VAL 5055case "x$ac_cv_prog_cc_c89" in 5056 x) 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5058$as_echo "none needed" >&6; } ;; 5059 xno) 5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5061$as_echo "unsupported" >&6; } ;; 5062 *) 5063 CC="$CC $ac_cv_prog_cc_c89" 5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5065$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5066esac 5067if test "x$ac_cv_prog_cc_c89" != xno; then : 5068 5069fi 5070 5071ac_ext=c 5072ac_cpp='$CPP $CPPFLAGS' 5073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5075ac_compiler_gnu=$ac_cv_c_compiler_gnu 5076 5077ac_ext=c 5078ac_cpp='$CPP $CPPFLAGS' 5079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5081ac_compiler_gnu=$ac_cv_c_compiler_gnu 5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5083$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5084if ${am_cv_prog_cc_c_o+:} false; then : 5085 $as_echo_n "(cached) " >&6 5086else 5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5088/* end confdefs.h. */ 5089 5090int 5091main () 5092{ 5093 5094 ; 5095 return 0; 5096} 5097_ACEOF 5098 # Make sure it works both with $CC and with simple cc. 5099 # Following AC_PROG_CC_C_O, we do the test twice because some 5100 # compilers refuse to overwrite an existing .o file with -o, 5101 # though they will create one. 5102 am_cv_prog_cc_c_o=yes 5103 for am_i in 1 2; do 5104 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5105 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5106 ac_status=$? 5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5108 (exit $ac_status); } \ 5109 && test -f conftest2.$ac_objext; then 5110 : OK 5111 else 5112 am_cv_prog_cc_c_o=no 5113 break 5114 fi 5115 done 5116 rm -f core conftest* 5117 unset am_i 5118fi 5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5120$as_echo "$am_cv_prog_cc_c_o" >&6; } 5121if test "$am_cv_prog_cc_c_o" != yes; then 5122 # Losing compiler, so override with the script. 5123 # FIXME: It is wrong to rewrite CC. 5124 # But if we don't then we get into trouble of one sort or another. 5125 # A longer-term fix would be to have automake use am__CC in this case, 5126 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5127 CC="$am_aux_dir/compile $CC" 5128fi 5129ac_ext=c 5130ac_cpp='$CPP $CPPFLAGS' 5131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5133ac_compiler_gnu=$ac_cv_c_compiler_gnu 5134 5135 5136depcc="$CC" am_compiler_list= 5137 5138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5139$as_echo_n "checking dependency style of $depcc... " >&6; } 5140if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5141 $as_echo_n "(cached) " >&6 5142else 5143 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5144 # We make a subdir and do the tests there. Otherwise we can end up 5145 # making bogus files that we don't know about and never remove. For 5146 # instance it was reported that on HP-UX the gcc test will end up 5147 # making a dummy file named 'D' -- because '-MD' means "put the output 5148 # in D". 5149 rm -rf conftest.dir 5150 mkdir conftest.dir 5151 # Copy depcomp to subdir because otherwise we won't find it if we're 5152 # using a relative directory. 5153 cp "$am_depcomp" conftest.dir 5154 cd conftest.dir 5155 # We will build objects and dependencies in a subdirectory because 5156 # it helps to detect inapplicable dependency modes. For instance 5157 # both Tru64's cc and ICC support -MD to output dependencies as a 5158 # side effect of compilation, but ICC will put the dependencies in 5159 # the current directory while Tru64 will put them in the object 5160 # directory. 5161 mkdir sub 5162 5163 am_cv_CC_dependencies_compiler_type=none 5164 if test "$am_compiler_list" = ""; then 5165 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5166 fi 5167 am__universal=false 5168 case " $depcc " in #( 5169 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5170 esac 5171 5172 for depmode in $am_compiler_list; do 5173 # Setup a source with many dependencies, because some compilers 5174 # like to wrap large dependency lists on column 80 (with \), and 5175 # we should not choose a depcomp mode which is confused by this. 5176 # 5177 # We need to recreate these files for each test, as the compiler may 5178 # overwrite some of them when testing with obscure command lines. 5179 # This happens at least with the AIX C compiler. 5180 : > sub/conftest.c 5181 for i in 1 2 3 4 5 6; do 5182 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5183 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5184 # Solaris 10 /bin/sh. 5185 echo '/* dummy */' > sub/conftst$i.h 5186 done 5187 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5188 5189 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5190 # mode. It turns out that the SunPro C++ compiler does not properly 5191 # handle '-M -o', and we need to detect this. Also, some Intel 5192 # versions had trouble with output in subdirs. 5193 am__obj=sub/conftest.${OBJEXT-o} 5194 am__minus_obj="-o $am__obj" 5195 case $depmode in 5196 gcc) 5197 # This depmode causes a compiler race in universal mode. 5198 test "$am__universal" = false || continue 5199 ;; 5200 nosideeffect) 5201 # After this tag, mechanisms are not by side-effect, so they'll 5202 # only be used when explicitly requested. 5203 if test "x$enable_dependency_tracking" = xyes; then 5204 continue 5205 else 5206 break 5207 fi 5208 ;; 5209 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5210 # This compiler won't grok '-c -o', but also, the minuso test has 5211 # not run yet. These depmodes are late enough in the game, and 5212 # so weak that their functioning should not be impacted. 5213 am__obj=conftest.${OBJEXT-o} 5214 am__minus_obj= 5215 ;; 5216 none) break ;; 5217 esac 5218 if depmode=$depmode \ 5219 source=sub/conftest.c object=$am__obj \ 5220 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5221 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5222 >/dev/null 2>conftest.err && 5223 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5224 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5225 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5226 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5227 # icc doesn't choke on unknown options, it will just issue warnings 5228 # or remarks (even with -Werror). So we grep stderr for any message 5229 # that says an option was ignored or not supported. 5230 # When given -MP, icc 7.0 and 7.1 complain thusly: 5231 # icc: Command line warning: ignoring option '-M'; no argument required 5232 # The diagnosis changed in icc 8.0: 5233 # icc: Command line remark: option '-MP' not supported 5234 if (grep 'ignoring option' conftest.err || 5235 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5236 am_cv_CC_dependencies_compiler_type=$depmode 5237 break 5238 fi 5239 fi 5240 done 5241 5242 cd .. 5243 rm -rf conftest.dir 5244else 5245 am_cv_CC_dependencies_compiler_type=none 5246fi 5247 5248fi 5249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5250$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5251CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5252 5253 if 5254 test "x$enable_dependency_tracking" != xno \ 5255 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5256 am__fastdepCC_TRUE= 5257 am__fastdepCC_FALSE='#' 5258else 5259 am__fastdepCC_TRUE='#' 5260 am__fastdepCC_FALSE= 5261fi 5262 5263 5264 5265ac_ext=c 5266ac_cpp='$CPP $CPPFLAGS' 5267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5269ac_compiler_gnu=$ac_cv_c_compiler_gnu 5270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5271$as_echo_n "checking how to run the C preprocessor... " >&6; } 5272# On Suns, sometimes $CPP names a directory. 5273if test -n "$CPP" && test -d "$CPP"; then 5274 CPP= 5275fi 5276if test -z "$CPP"; then 5277 if ${ac_cv_prog_CPP+:} false; then : 5278 $as_echo_n "(cached) " >&6 5279else 5280 # Double quotes because CPP needs to be expanded 5281 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5282 do 5283 ac_preproc_ok=false 5284for ac_c_preproc_warn_flag in '' yes 5285do 5286 # Use a header file that comes with gcc, so configuring glibc 5287 # with a fresh cross-compiler works. 5288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5289 # <limits.h> exists even on freestanding compilers. 5290 # On the NeXT, cc -E runs the code through the compiler's parser, 5291 # not just through cpp. "Syntax error" is here to catch this case. 5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5293/* end confdefs.h. */ 5294#ifdef __STDC__ 5295# include <limits.h> 5296#else 5297# include <assert.h> 5298#endif 5299 Syntax error 5300_ACEOF 5301if ac_fn_c_try_cpp "$LINENO"; then : 5302 5303else 5304 # Broken: fails on valid input. 5305continue 5306fi 5307rm -f conftest.err conftest.i conftest.$ac_ext 5308 5309 # OK, works on sane cases. Now check whether nonexistent headers 5310 # can be detected and how. 5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5312/* end confdefs.h. */ 5313#include <ac_nonexistent.h> 5314_ACEOF 5315if ac_fn_c_try_cpp "$LINENO"; then : 5316 # Broken: success on invalid input. 5317continue 5318else 5319 # Passes both tests. 5320ac_preproc_ok=: 5321break 5322fi 5323rm -f conftest.err conftest.i conftest.$ac_ext 5324 5325done 5326# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5327rm -f conftest.i conftest.err conftest.$ac_ext 5328if $ac_preproc_ok; then : 5329 break 5330fi 5331 5332 done 5333 ac_cv_prog_CPP=$CPP 5334 5335fi 5336 CPP=$ac_cv_prog_CPP 5337else 5338 ac_cv_prog_CPP=$CPP 5339fi 5340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5341$as_echo "$CPP" >&6; } 5342ac_preproc_ok=false 5343for ac_c_preproc_warn_flag in '' yes 5344do 5345 # Use a header file that comes with gcc, so configuring glibc 5346 # with a fresh cross-compiler works. 5347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5348 # <limits.h> exists even on freestanding compilers. 5349 # On the NeXT, cc -E runs the code through the compiler's parser, 5350 # not just through cpp. "Syntax error" is here to catch this case. 5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5352/* end confdefs.h. */ 5353#ifdef __STDC__ 5354# include <limits.h> 5355#else 5356# include <assert.h> 5357#endif 5358 Syntax error 5359_ACEOF 5360if ac_fn_c_try_cpp "$LINENO"; then : 5361 5362else 5363 # Broken: fails on valid input. 5364continue 5365fi 5366rm -f conftest.err conftest.i conftest.$ac_ext 5367 5368 # OK, works on sane cases. Now check whether nonexistent headers 5369 # can be detected and how. 5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5371/* end confdefs.h. */ 5372#include <ac_nonexistent.h> 5373_ACEOF 5374if ac_fn_c_try_cpp "$LINENO"; then : 5375 # Broken: success on invalid input. 5376continue 5377else 5378 # Passes both tests. 5379ac_preproc_ok=: 5380break 5381fi 5382rm -f conftest.err conftest.i conftest.$ac_ext 5383 5384done 5385# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5386rm -f conftest.i conftest.err conftest.$ac_ext 5387if $ac_preproc_ok; then : 5388 5389else 5390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5392as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5393See \`config.log' for more details" "$LINENO" 5; } 5394fi 5395 5396ac_ext=c 5397ac_cpp='$CPP $CPPFLAGS' 5398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5400ac_compiler_gnu=$ac_cv_c_compiler_gnu 5401 5402 5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5404$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5405if ${ac_cv_path_GREP+:} false; then : 5406 $as_echo_n "(cached) " >&6 5407else 5408 if test -z "$GREP"; then 5409 ac_path_GREP_found=false 5410 # Loop through the user's path and test for each of PROGNAME-LIST 5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5412for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5413do 5414 IFS=$as_save_IFS 5415 test -z "$as_dir" && as_dir=. 5416 for ac_prog in grep ggrep; do 5417 for ac_exec_ext in '' $ac_executable_extensions; do 5418 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5419 as_fn_executable_p "$ac_path_GREP" || continue 5420# Check for GNU ac_path_GREP and select it if it is found. 5421 # Check for GNU $ac_path_GREP 5422case `"$ac_path_GREP" --version 2>&1` in 5423*GNU*) 5424 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5425*) 5426 ac_count=0 5427 $as_echo_n 0123456789 >"conftest.in" 5428 while : 5429 do 5430 cat "conftest.in" "conftest.in" >"conftest.tmp" 5431 mv "conftest.tmp" "conftest.in" 5432 cp "conftest.in" "conftest.nl" 5433 $as_echo 'GREP' >> "conftest.nl" 5434 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5435 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5436 as_fn_arith $ac_count + 1 && ac_count=$as_val 5437 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5438 # Best one so far, save it but keep looking for a better one 5439 ac_cv_path_GREP="$ac_path_GREP" 5440 ac_path_GREP_max=$ac_count 5441 fi 5442 # 10*(2^10) chars as input seems more than enough 5443 test $ac_count -gt 10 && break 5444 done 5445 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5446esac 5447 5448 $ac_path_GREP_found && break 3 5449 done 5450 done 5451 done 5452IFS=$as_save_IFS 5453 if test -z "$ac_cv_path_GREP"; then 5454 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5455 fi 5456else 5457 ac_cv_path_GREP=$GREP 5458fi 5459 5460fi 5461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5462$as_echo "$ac_cv_path_GREP" >&6; } 5463 GREP="$ac_cv_path_GREP" 5464 5465 5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5467$as_echo_n "checking for egrep... " >&6; } 5468if ${ac_cv_path_EGREP+:} false; then : 5469 $as_echo_n "(cached) " >&6 5470else 5471 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5472 then ac_cv_path_EGREP="$GREP -E" 5473 else 5474 if test -z "$EGREP"; then 5475 ac_path_EGREP_found=false 5476 # Loop through the user's path and test for each of PROGNAME-LIST 5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5478for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5479do 5480 IFS=$as_save_IFS 5481 test -z "$as_dir" && as_dir=. 5482 for ac_prog in egrep; do 5483 for ac_exec_ext in '' $ac_executable_extensions; do 5484 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5485 as_fn_executable_p "$ac_path_EGREP" || continue 5486# Check for GNU ac_path_EGREP and select it if it is found. 5487 # Check for GNU $ac_path_EGREP 5488case `"$ac_path_EGREP" --version 2>&1` in 5489*GNU*) 5490 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5491*) 5492 ac_count=0 5493 $as_echo_n 0123456789 >"conftest.in" 5494 while : 5495 do 5496 cat "conftest.in" "conftest.in" >"conftest.tmp" 5497 mv "conftest.tmp" "conftest.in" 5498 cp "conftest.in" "conftest.nl" 5499 $as_echo 'EGREP' >> "conftest.nl" 5500 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5502 as_fn_arith $ac_count + 1 && ac_count=$as_val 5503 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5504 # Best one so far, save it but keep looking for a better one 5505 ac_cv_path_EGREP="$ac_path_EGREP" 5506 ac_path_EGREP_max=$ac_count 5507 fi 5508 # 10*(2^10) chars as input seems more than enough 5509 test $ac_count -gt 10 && break 5510 done 5511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5512esac 5513 5514 $ac_path_EGREP_found && break 3 5515 done 5516 done 5517 done 5518IFS=$as_save_IFS 5519 if test -z "$ac_cv_path_EGREP"; then 5520 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5521 fi 5522else 5523 ac_cv_path_EGREP=$EGREP 5524fi 5525 5526 fi 5527fi 5528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5529$as_echo "$ac_cv_path_EGREP" >&6; } 5530 EGREP="$ac_cv_path_EGREP" 5531 5532 5533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5534$as_echo_n "checking for ANSI C header files... " >&6; } 5535if ${ac_cv_header_stdc+:} false; then : 5536 $as_echo_n "(cached) " >&6 5537else 5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5539/* end confdefs.h. */ 5540#include <stdlib.h> 5541#include <stdarg.h> 5542#include <string.h> 5543#include <float.h> 5544 5545int 5546main () 5547{ 5548 5549 ; 5550 return 0; 5551} 5552_ACEOF 5553if ac_fn_c_try_compile "$LINENO"; then : 5554 ac_cv_header_stdc=yes 5555else 5556 ac_cv_header_stdc=no 5557fi 5558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5559 5560if test $ac_cv_header_stdc = yes; then 5561 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5563/* end confdefs.h. */ 5564#include <string.h> 5565 5566_ACEOF 5567if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5568 $EGREP "memchr" >/dev/null 2>&1; then : 5569 5570else 5571 ac_cv_header_stdc=no 5572fi 5573rm -f conftest* 5574 5575fi 5576 5577if test $ac_cv_header_stdc = yes; then 5578 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5580/* end confdefs.h. */ 5581#include <stdlib.h> 5582 5583_ACEOF 5584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5585 $EGREP "free" >/dev/null 2>&1; then : 5586 5587else 5588 ac_cv_header_stdc=no 5589fi 5590rm -f conftest* 5591 5592fi 5593 5594if test $ac_cv_header_stdc = yes; then 5595 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5596 if test "$cross_compiling" = yes; then : 5597 : 5598else 5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5600/* end confdefs.h. */ 5601#include <ctype.h> 5602#include <stdlib.h> 5603#if ((' ' & 0x0FF) == 0x020) 5604# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5605# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5606#else 5607# define ISLOWER(c) \ 5608 (('a' <= (c) && (c) <= 'i') \ 5609 || ('j' <= (c) && (c) <= 'r') \ 5610 || ('s' <= (c) && (c) <= 'z')) 5611# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5612#endif 5613 5614#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5615int 5616main () 5617{ 5618 int i; 5619 for (i = 0; i < 256; i++) 5620 if (XOR (islower (i), ISLOWER (i)) 5621 || toupper (i) != TOUPPER (i)) 5622 return 2; 5623 return 0; 5624} 5625_ACEOF 5626if ac_fn_c_try_run "$LINENO"; then : 5627 5628else 5629 ac_cv_header_stdc=no 5630fi 5631rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5632 conftest.$ac_objext conftest.beam conftest.$ac_ext 5633fi 5634 5635fi 5636fi 5637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5638$as_echo "$ac_cv_header_stdc" >&6; } 5639if test $ac_cv_header_stdc = yes; then 5640 5641$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5642 5643fi 5644 5645# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5646for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5647 inttypes.h stdint.h unistd.h 5648do : 5649 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5650ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5651" 5652if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5653 cat >>confdefs.h <<_ACEOF 5654#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5655_ACEOF 5656 5657fi 5658 5659done 5660 5661 5662 5663 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5664if test "x$ac_cv_header_minix_config_h" = xyes; then : 5665 MINIX=yes 5666else 5667 MINIX= 5668fi 5669 5670 5671 if test "$MINIX" = yes; then 5672 5673$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5674 5675 5676$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5677 5678 5679$as_echo "#define _MINIX 1" >>confdefs.h 5680 5681 fi 5682 5683 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5685$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5686if ${ac_cv_safe_to_define___extensions__+:} false; then : 5687 $as_echo_n "(cached) " >&6 5688else 5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5690/* end confdefs.h. */ 5691 5692# define __EXTENSIONS__ 1 5693 $ac_includes_default 5694int 5695main () 5696{ 5697 5698 ; 5699 return 0; 5700} 5701_ACEOF 5702if ac_fn_c_try_compile "$LINENO"; then : 5703 ac_cv_safe_to_define___extensions__=yes 5704else 5705 ac_cv_safe_to_define___extensions__=no 5706fi 5707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5708fi 5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5710$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5711 test $ac_cv_safe_to_define___extensions__ = yes && 5712 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5713 5714 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5715 5716 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5717 5718 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5719 5720 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5721 5722 5723 5724# Require xorg-macros minimum of 1.14 for XORG_COMPILER_BRAND in XORG_DEFAULT_OPTIONS 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5737$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5738if ${ac_cv_prog_cc_c99+:} false; then : 5739 $as_echo_n "(cached) " >&6 5740else 5741 ac_cv_prog_cc_c99=no 5742ac_save_CC=$CC 5743cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5744/* end confdefs.h. */ 5745#include <stdarg.h> 5746#include <stdbool.h> 5747#include <stdlib.h> 5748#include <wchar.h> 5749#include <stdio.h> 5750 5751// Check varargs macros. These examples are taken from C99 6.10.3.5. 5752#define debug(...) fprintf (stderr, __VA_ARGS__) 5753#define showlist(...) puts (#__VA_ARGS__) 5754#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5755static void 5756test_varargs_macros (void) 5757{ 5758 int x = 1234; 5759 int y = 5678; 5760 debug ("Flag"); 5761 debug ("X = %d\n", x); 5762 showlist (The first, second, and third items.); 5763 report (x>y, "x is %d but y is %d", x, y); 5764} 5765 5766// Check long long types. 5767#define BIG64 18446744073709551615ull 5768#define BIG32 4294967295ul 5769#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5770#if !BIG_OK 5771 your preprocessor is broken; 5772#endif 5773#if BIG_OK 5774#else 5775 your preprocessor is broken; 5776#endif 5777static long long int bignum = -9223372036854775807LL; 5778static unsigned long long int ubignum = BIG64; 5779 5780struct incomplete_array 5781{ 5782 int datasize; 5783 double data[]; 5784}; 5785 5786struct named_init { 5787 int number; 5788 const wchar_t *name; 5789 double average; 5790}; 5791 5792typedef const char *ccp; 5793 5794static inline int 5795test_restrict (ccp restrict text) 5796{ 5797 // See if C++-style comments work. 5798 // Iterate through items via the restricted pointer. 5799 // Also check for declarations in for loops. 5800 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5801 continue; 5802 return 0; 5803} 5804 5805// Check varargs and va_copy. 5806static void 5807test_varargs (const char *format, ...) 5808{ 5809 va_list args; 5810 va_start (args, format); 5811 va_list args_copy; 5812 va_copy (args_copy, args); 5813 5814 const char *str; 5815 int number; 5816 float fnumber; 5817 5818 while (*format) 5819 { 5820 switch (*format++) 5821 { 5822 case 's': // string 5823 str = va_arg (args_copy, const char *); 5824 break; 5825 case 'd': // int 5826 number = va_arg (args_copy, int); 5827 break; 5828 case 'f': // float 5829 fnumber = va_arg (args_copy, double); 5830 break; 5831 default: 5832 break; 5833 } 5834 } 5835 va_end (args_copy); 5836 va_end (args); 5837} 5838 5839int 5840main () 5841{ 5842 5843 // Check bool. 5844 _Bool success = false; 5845 5846 // Check restrict. 5847 if (test_restrict ("String literal") == 0) 5848 success = true; 5849 char *restrict newvar = "Another string"; 5850 5851 // Check varargs. 5852 test_varargs ("s, d' f .", "string", 65, 34.234); 5853 test_varargs_macros (); 5854 5855 // Check flexible array members. 5856 struct incomplete_array *ia = 5857 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5858 ia->datasize = 10; 5859 for (int i = 0; i < ia->datasize; ++i) 5860 ia->data[i] = i * 1.234; 5861 5862 // Check named initializers. 5863 struct named_init ni = { 5864 .number = 34, 5865 .name = L"Test wide string", 5866 .average = 543.34343, 5867 }; 5868 5869 ni.number = 58; 5870 5871 int dynamic_array[ni.number]; 5872 dynamic_array[ni.number - 1] = 543; 5873 5874 // work around unused variable warnings 5875 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5876 || dynamic_array[ni.number - 1] != 543); 5877 5878 ; 5879 return 0; 5880} 5881_ACEOF 5882for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5883do 5884 CC="$ac_save_CC $ac_arg" 5885 if ac_fn_c_try_compile "$LINENO"; then : 5886 ac_cv_prog_cc_c99=$ac_arg 5887fi 5888rm -f core conftest.err conftest.$ac_objext 5889 test "x$ac_cv_prog_cc_c99" != "xno" && break 5890done 5891rm -f conftest.$ac_ext 5892CC=$ac_save_CC 5893 5894fi 5895# AC_CACHE_VAL 5896case "x$ac_cv_prog_cc_c99" in 5897 x) 5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5899$as_echo "none needed" >&6; } ;; 5900 xno) 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5902$as_echo "unsupported" >&6; } ;; 5903 *) 5904 CC="$CC $ac_cv_prog_cc_c99" 5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5906$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5907esac 5908if test "x$ac_cv_prog_cc_c99" != xno; then : 5909 5910fi 5911 5912 5913 5914 5915 5916 5917ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 5918if test "x$ac_cv_have_decl___clang__" = xyes; then : 5919 CLANGCC="yes" 5920else 5921 CLANGCC="no" 5922fi 5923 5924ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 5925if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 5926 INTELCC="yes" 5927else 5928 INTELCC="no" 5929fi 5930 5931ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 5932if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 5933 SUNCC="yes" 5934else 5935 SUNCC="no" 5936fi 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5947 if test -n "$ac_tool_prefix"; then 5948 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5949set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5951$as_echo_n "checking for $ac_word... " >&6; } 5952if ${ac_cv_path_PKG_CONFIG+:} false; then : 5953 $as_echo_n "(cached) " >&6 5954else 5955 case $PKG_CONFIG in 5956 [\\/]* | ?:[\\/]*) 5957 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5958 ;; 5959 *) 5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5961for as_dir in $PATH 5962do 5963 IFS=$as_save_IFS 5964 test -z "$as_dir" && as_dir=. 5965 for ac_exec_ext in '' $ac_executable_extensions; do 5966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5967 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5969 break 2 5970 fi 5971done 5972 done 5973IFS=$as_save_IFS 5974 5975 ;; 5976esac 5977fi 5978PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5979if test -n "$PKG_CONFIG"; then 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5981$as_echo "$PKG_CONFIG" >&6; } 5982else 5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5984$as_echo "no" >&6; } 5985fi 5986 5987 5988fi 5989if test -z "$ac_cv_path_PKG_CONFIG"; then 5990 ac_pt_PKG_CONFIG=$PKG_CONFIG 5991 # Extract the first word of "pkg-config", so it can be a program name with args. 5992set dummy pkg-config; ac_word=$2 5993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5994$as_echo_n "checking for $ac_word... " >&6; } 5995if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 5996 $as_echo_n "(cached) " >&6 5997else 5998 case $ac_pt_PKG_CONFIG in 5999 [\\/]* | ?:[\\/]*) 6000 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 6001 ;; 6002 *) 6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6004for as_dir in $PATH 6005do 6006 IFS=$as_save_IFS 6007 test -z "$as_dir" && as_dir=. 6008 for ac_exec_ext in '' $ac_executable_extensions; do 6009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6010 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6012 break 2 6013 fi 6014done 6015 done 6016IFS=$as_save_IFS 6017 6018 ;; 6019esac 6020fi 6021ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 6022if test -n "$ac_pt_PKG_CONFIG"; then 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 6024$as_echo "$ac_pt_PKG_CONFIG" >&6; } 6025else 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6027$as_echo "no" >&6; } 6028fi 6029 6030 if test "x$ac_pt_PKG_CONFIG" = x; then 6031 PKG_CONFIG="" 6032 else 6033 case $cross_compiling:$ac_tool_warned in 6034yes:) 6035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6037ac_tool_warned=yes ;; 6038esac 6039 PKG_CONFIG=$ac_pt_PKG_CONFIG 6040 fi 6041else 6042 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 6043fi 6044 6045fi 6046if test -n "$PKG_CONFIG"; then 6047 _pkg_min_version=0.9.0 6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 6049$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 6050 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6052$as_echo "yes" >&6; } 6053 else 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6055$as_echo "no" >&6; } 6056 PKG_CONFIG="" 6057 fi 6058fi 6059# Make sure we can run config.sub. 6060$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6061 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6062 6063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6064$as_echo_n "checking build system type... " >&6; } 6065if ${ac_cv_build+:} false; then : 6066 $as_echo_n "(cached) " >&6 6067else 6068 ac_build_alias=$build_alias 6069test "x$ac_build_alias" = x && 6070 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6071test "x$ac_build_alias" = x && 6072 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6073ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6074 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6075 6076fi 6077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6078$as_echo "$ac_cv_build" >&6; } 6079case $ac_cv_build in 6080*-*-*) ;; 6081*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6082esac 6083build=$ac_cv_build 6084ac_save_IFS=$IFS; IFS='-' 6085set x $ac_cv_build 6086shift 6087build_cpu=$1 6088build_vendor=$2 6089shift; shift 6090# Remember, the first character of IFS is used to create $*, 6091# except with old shells: 6092build_os=$* 6093IFS=$ac_save_IFS 6094case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6095 6096 6097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6098$as_echo_n "checking host system type... " >&6; } 6099if ${ac_cv_host+:} false; then : 6100 $as_echo_n "(cached) " >&6 6101else 6102 if test "x$host_alias" = x; then 6103 ac_cv_host=$ac_cv_build 6104else 6105 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6106 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6107fi 6108 6109fi 6110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6111$as_echo "$ac_cv_host" >&6; } 6112case $ac_cv_host in 6113*-*-*) ;; 6114*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6115esac 6116host=$ac_cv_host 6117ac_save_IFS=$IFS; IFS='-' 6118set x $ac_cv_host 6119shift 6120host_cpu=$1 6121host_vendor=$2 6122shift; shift 6123# Remember, the first character of IFS is used to create $*, 6124# except with old shells: 6125host_os=$* 6126IFS=$ac_save_IFS 6127case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6128 6129 6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6131$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6132if ${ac_cv_path_SED+:} false; then : 6133 $as_echo_n "(cached) " >&6 6134else 6135 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6136 for ac_i in 1 2 3 4 5 6 7; do 6137 ac_script="$ac_script$as_nl$ac_script" 6138 done 6139 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6140 { ac_script=; unset ac_script;} 6141 if test -z "$SED"; then 6142 ac_path_SED_found=false 6143 # Loop through the user's path and test for each of PROGNAME-LIST 6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6145for as_dir in $PATH 6146do 6147 IFS=$as_save_IFS 6148 test -z "$as_dir" && as_dir=. 6149 for ac_prog in sed gsed; do 6150 for ac_exec_ext in '' $ac_executable_extensions; do 6151 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6152 as_fn_executable_p "$ac_path_SED" || continue 6153# Check for GNU ac_path_SED and select it if it is found. 6154 # Check for GNU $ac_path_SED 6155case `"$ac_path_SED" --version 2>&1` in 6156*GNU*) 6157 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6158*) 6159 ac_count=0 6160 $as_echo_n 0123456789 >"conftest.in" 6161 while : 6162 do 6163 cat "conftest.in" "conftest.in" >"conftest.tmp" 6164 mv "conftest.tmp" "conftest.in" 6165 cp "conftest.in" "conftest.nl" 6166 $as_echo '' >> "conftest.nl" 6167 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6168 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6169 as_fn_arith $ac_count + 1 && ac_count=$as_val 6170 if test $ac_count -gt ${ac_path_SED_max-0}; then 6171 # Best one so far, save it but keep looking for a better one 6172 ac_cv_path_SED="$ac_path_SED" 6173 ac_path_SED_max=$ac_count 6174 fi 6175 # 10*(2^10) chars as input seems more than enough 6176 test $ac_count -gt 10 && break 6177 done 6178 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6179esac 6180 6181 $ac_path_SED_found && break 3 6182 done 6183 done 6184 done 6185IFS=$as_save_IFS 6186 if test -z "$ac_cv_path_SED"; then 6187 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6188 fi 6189else 6190 ac_cv_path_SED=$SED 6191fi 6192 6193fi 6194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6195$as_echo "$ac_cv_path_SED" >&6; } 6196 SED="$ac_cv_path_SED" 6197 rm -f conftest.sed 6198 6199 6200 6201 6202 6203 6204# Check whether --enable-selective-werror was given. 6205if test "${enable_selective_werror+set}" = set; then : 6206 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 6207else 6208 SELECTIVE_WERROR=yes 6209fi 6210 6211 6212 6213 6214 6215# -v is too short to test reliably with XORG_TESTSET_CFLAG 6216if test "x$SUNCC" = "xyes"; then 6217 BASE_CFLAGS="-v" 6218else 6219 BASE_CFLAGS="" 6220fi 6221 6222# This chunk of warnings were those that existed in the legacy CWARNFLAGS 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236xorg_testset_save_CFLAGS="$CFLAGS" 6237 6238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6241$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6242if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6243 $as_echo_n "(cached) " >&6 6244else 6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6246/* end confdefs.h. */ 6247int i; 6248_ACEOF 6249if ac_fn_c_try_compile "$LINENO"; then : 6250 xorg_cv_cc_flag_unknown_warning_option=yes 6251else 6252 xorg_cv_cc_flag_unknown_warning_option=no 6253fi 6254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6255fi 6256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6257$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6259 CFLAGS="$xorg_testset_save_CFLAGS" 6260fi 6261 6262if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6265 fi 6266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6268$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6269if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6270 $as_echo_n "(cached) " >&6 6271else 6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6273/* end confdefs.h. */ 6274int i; 6275_ACEOF 6276if ac_fn_c_try_compile "$LINENO"; then : 6277 xorg_cv_cc_flag_unused_command_line_argument=yes 6278else 6279 xorg_cv_cc_flag_unused_command_line_argument=no 6280fi 6281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6282fi 6283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6284$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6286 CFLAGS="$xorg_testset_save_CFLAGS" 6287fi 6288 6289found="no" 6290 6291 if test $found = "no" ; then 6292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6294 fi 6295 6296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6298 fi 6299 6300 CFLAGS="$CFLAGS -Wall" 6301 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 6303$as_echo_n "checking if $CC supports -Wall... " >&6; } 6304 cacheid=xorg_cv_cc_flag__Wall 6305 if eval \${$cacheid+:} false; then : 6306 $as_echo_n "(cached) " >&6 6307else 6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6309/* end confdefs.h. */ 6310int i; 6311int 6312main () 6313{ 6314 6315 ; 6316 return 0; 6317} 6318_ACEOF 6319if ac_fn_c_try_link "$LINENO"; then : 6320 eval $cacheid=yes 6321else 6322 eval $cacheid=no 6323fi 6324rm -f core conftest.err conftest.$ac_objext \ 6325 conftest$ac_exeext conftest.$ac_ext 6326fi 6327 6328 6329 CFLAGS="$xorg_testset_save_CFLAGS" 6330 6331 eval supported=\$$cacheid 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6333$as_echo "$supported" >&6; } 6334 if test "$supported" = "yes" ; then 6335 BASE_CFLAGS="$BASE_CFLAGS -Wall" 6336 found="yes" 6337 fi 6338 fi 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354xorg_testset_save_CFLAGS="$CFLAGS" 6355 6356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6359$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6360if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6361 $as_echo_n "(cached) " >&6 6362else 6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6364/* end confdefs.h. */ 6365int i; 6366_ACEOF 6367if ac_fn_c_try_compile "$LINENO"; then : 6368 xorg_cv_cc_flag_unknown_warning_option=yes 6369else 6370 xorg_cv_cc_flag_unknown_warning_option=no 6371fi 6372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6373fi 6374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6375$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6377 CFLAGS="$xorg_testset_save_CFLAGS" 6378fi 6379 6380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6383 fi 6384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6386$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6387if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6388 $as_echo_n "(cached) " >&6 6389else 6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6391/* end confdefs.h. */ 6392int i; 6393_ACEOF 6394if ac_fn_c_try_compile "$LINENO"; then : 6395 xorg_cv_cc_flag_unused_command_line_argument=yes 6396else 6397 xorg_cv_cc_flag_unused_command_line_argument=no 6398fi 6399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6400fi 6401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6402$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6404 CFLAGS="$xorg_testset_save_CFLAGS" 6405fi 6406 6407found="no" 6408 6409 if test $found = "no" ; then 6410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6412 fi 6413 6414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6416 fi 6417 6418 CFLAGS="$CFLAGS -Wpointer-arith" 6419 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 6421$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 6422 cacheid=xorg_cv_cc_flag__Wpointer_arith 6423 if eval \${$cacheid+:} false; then : 6424 $as_echo_n "(cached) " >&6 6425else 6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6427/* end confdefs.h. */ 6428int i; 6429int 6430main () 6431{ 6432 6433 ; 6434 return 0; 6435} 6436_ACEOF 6437if ac_fn_c_try_link "$LINENO"; then : 6438 eval $cacheid=yes 6439else 6440 eval $cacheid=no 6441fi 6442rm -f core conftest.err conftest.$ac_objext \ 6443 conftest$ac_exeext conftest.$ac_ext 6444fi 6445 6446 6447 CFLAGS="$xorg_testset_save_CFLAGS" 6448 6449 eval supported=\$$cacheid 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6451$as_echo "$supported" >&6; } 6452 if test "$supported" = "yes" ; then 6453 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 6454 found="yes" 6455 fi 6456 fi 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472xorg_testset_save_CFLAGS="$CFLAGS" 6473 6474if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6477$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6478if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6479 $as_echo_n "(cached) " >&6 6480else 6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6482/* end confdefs.h. */ 6483int i; 6484_ACEOF 6485if ac_fn_c_try_compile "$LINENO"; then : 6486 xorg_cv_cc_flag_unknown_warning_option=yes 6487else 6488 xorg_cv_cc_flag_unknown_warning_option=no 6489fi 6490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6491fi 6492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6493$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6495 CFLAGS="$xorg_testset_save_CFLAGS" 6496fi 6497 6498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6501 fi 6502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6504$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6505if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6506 $as_echo_n "(cached) " >&6 6507else 6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6509/* end confdefs.h. */ 6510int i; 6511_ACEOF 6512if ac_fn_c_try_compile "$LINENO"; then : 6513 xorg_cv_cc_flag_unused_command_line_argument=yes 6514else 6515 xorg_cv_cc_flag_unused_command_line_argument=no 6516fi 6517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6518fi 6519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6520$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6522 CFLAGS="$xorg_testset_save_CFLAGS" 6523fi 6524 6525found="no" 6526 6527 if test $found = "no" ; then 6528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6530 fi 6531 6532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6534 fi 6535 6536 CFLAGS="$CFLAGS -Wmissing-declarations" 6537 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 6539$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 6540 cacheid=xorg_cv_cc_flag__Wmissing_declarations 6541 if eval \${$cacheid+:} false; then : 6542 $as_echo_n "(cached) " >&6 6543else 6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6545/* end confdefs.h. */ 6546int i; 6547int 6548main () 6549{ 6550 6551 ; 6552 return 0; 6553} 6554_ACEOF 6555if ac_fn_c_try_link "$LINENO"; then : 6556 eval $cacheid=yes 6557else 6558 eval $cacheid=no 6559fi 6560rm -f core conftest.err conftest.$ac_objext \ 6561 conftest$ac_exeext conftest.$ac_ext 6562fi 6563 6564 6565 CFLAGS="$xorg_testset_save_CFLAGS" 6566 6567 eval supported=\$$cacheid 6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6569$as_echo "$supported" >&6; } 6570 if test "$supported" = "yes" ; then 6571 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 6572 found="yes" 6573 fi 6574 fi 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590xorg_testset_save_CFLAGS="$CFLAGS" 6591 6592if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6595$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6596if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6597 $as_echo_n "(cached) " >&6 6598else 6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6600/* end confdefs.h. */ 6601int i; 6602_ACEOF 6603if ac_fn_c_try_compile "$LINENO"; then : 6604 xorg_cv_cc_flag_unknown_warning_option=yes 6605else 6606 xorg_cv_cc_flag_unknown_warning_option=no 6607fi 6608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6609fi 6610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6611$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6613 CFLAGS="$xorg_testset_save_CFLAGS" 6614fi 6615 6616if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6619 fi 6620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6622$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6623if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6624 $as_echo_n "(cached) " >&6 6625else 6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6627/* end confdefs.h. */ 6628int i; 6629_ACEOF 6630if ac_fn_c_try_compile "$LINENO"; then : 6631 xorg_cv_cc_flag_unused_command_line_argument=yes 6632else 6633 xorg_cv_cc_flag_unused_command_line_argument=no 6634fi 6635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6636fi 6637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6638$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6639 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6640 CFLAGS="$xorg_testset_save_CFLAGS" 6641fi 6642 6643found="no" 6644 6645 if test $found = "no" ; then 6646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6648 fi 6649 6650 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6652 fi 6653 6654 CFLAGS="$CFLAGS -Wformat=2" 6655 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 6657$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 6658 cacheid=xorg_cv_cc_flag__Wformat_2 6659 if eval \${$cacheid+:} false; then : 6660 $as_echo_n "(cached) " >&6 6661else 6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6663/* end confdefs.h. */ 6664int i; 6665int 6666main () 6667{ 6668 6669 ; 6670 return 0; 6671} 6672_ACEOF 6673if ac_fn_c_try_link "$LINENO"; then : 6674 eval $cacheid=yes 6675else 6676 eval $cacheid=no 6677fi 6678rm -f core conftest.err conftest.$ac_objext \ 6679 conftest$ac_exeext conftest.$ac_ext 6680fi 6681 6682 6683 CFLAGS="$xorg_testset_save_CFLAGS" 6684 6685 eval supported=\$$cacheid 6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6687$as_echo "$supported" >&6; } 6688 if test "$supported" = "yes" ; then 6689 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 6690 found="yes" 6691 fi 6692 fi 6693 6694 if test $found = "no" ; then 6695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6697 fi 6698 6699 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6701 fi 6702 6703 CFLAGS="$CFLAGS -Wformat" 6704 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 6706$as_echo_n "checking if $CC supports -Wformat... " >&6; } 6707 cacheid=xorg_cv_cc_flag__Wformat 6708 if eval \${$cacheid+:} false; then : 6709 $as_echo_n "(cached) " >&6 6710else 6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6712/* end confdefs.h. */ 6713int i; 6714int 6715main () 6716{ 6717 6718 ; 6719 return 0; 6720} 6721_ACEOF 6722if ac_fn_c_try_link "$LINENO"; then : 6723 eval $cacheid=yes 6724else 6725 eval $cacheid=no 6726fi 6727rm -f core conftest.err conftest.$ac_objext \ 6728 conftest$ac_exeext conftest.$ac_ext 6729fi 6730 6731 6732 CFLAGS="$xorg_testset_save_CFLAGS" 6733 6734 eval supported=\$$cacheid 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6736$as_echo "$supported" >&6; } 6737 if test "$supported" = "yes" ; then 6738 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 6739 found="yes" 6740 fi 6741 fi 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759xorg_testset_save_CFLAGS="$CFLAGS" 6760 6761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6764$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6765if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6766 $as_echo_n "(cached) " >&6 6767else 6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6769/* end confdefs.h. */ 6770int i; 6771_ACEOF 6772if ac_fn_c_try_compile "$LINENO"; then : 6773 xorg_cv_cc_flag_unknown_warning_option=yes 6774else 6775 xorg_cv_cc_flag_unknown_warning_option=no 6776fi 6777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6778fi 6779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6780$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6782 CFLAGS="$xorg_testset_save_CFLAGS" 6783fi 6784 6785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6788 fi 6789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6791$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6792if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6793 $as_echo_n "(cached) " >&6 6794else 6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6796/* end confdefs.h. */ 6797int i; 6798_ACEOF 6799if ac_fn_c_try_compile "$LINENO"; then : 6800 xorg_cv_cc_flag_unused_command_line_argument=yes 6801else 6802 xorg_cv_cc_flag_unused_command_line_argument=no 6803fi 6804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6805fi 6806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6807$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6809 CFLAGS="$xorg_testset_save_CFLAGS" 6810fi 6811 6812found="no" 6813 6814 if test $found = "no" ; then 6815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6817 fi 6818 6819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6821 fi 6822 6823 CFLAGS="$CFLAGS -Wstrict-prototypes" 6824 6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 6826$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 6827 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 6828 if eval \${$cacheid+:} false; then : 6829 $as_echo_n "(cached) " >&6 6830else 6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6832/* end confdefs.h. */ 6833int i; 6834int 6835main () 6836{ 6837 6838 ; 6839 return 0; 6840} 6841_ACEOF 6842if ac_fn_c_try_link "$LINENO"; then : 6843 eval $cacheid=yes 6844else 6845 eval $cacheid=no 6846fi 6847rm -f core conftest.err conftest.$ac_objext \ 6848 conftest$ac_exeext conftest.$ac_ext 6849fi 6850 6851 6852 CFLAGS="$xorg_testset_save_CFLAGS" 6853 6854 eval supported=\$$cacheid 6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6856$as_echo "$supported" >&6; } 6857 if test "$supported" = "yes" ; then 6858 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 6859 found="yes" 6860 fi 6861 fi 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877xorg_testset_save_CFLAGS="$CFLAGS" 6878 6879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6882$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6883if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6884 $as_echo_n "(cached) " >&6 6885else 6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6887/* end confdefs.h. */ 6888int i; 6889_ACEOF 6890if ac_fn_c_try_compile "$LINENO"; then : 6891 xorg_cv_cc_flag_unknown_warning_option=yes 6892else 6893 xorg_cv_cc_flag_unknown_warning_option=no 6894fi 6895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6896fi 6897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6898$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6900 CFLAGS="$xorg_testset_save_CFLAGS" 6901fi 6902 6903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6906 fi 6907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6909$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6910if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6911 $as_echo_n "(cached) " >&6 6912else 6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6914/* end confdefs.h. */ 6915int i; 6916_ACEOF 6917if ac_fn_c_try_compile "$LINENO"; then : 6918 xorg_cv_cc_flag_unused_command_line_argument=yes 6919else 6920 xorg_cv_cc_flag_unused_command_line_argument=no 6921fi 6922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6923fi 6924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6925$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6927 CFLAGS="$xorg_testset_save_CFLAGS" 6928fi 6929 6930found="no" 6931 6932 if test $found = "no" ; then 6933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6935 fi 6936 6937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6939 fi 6940 6941 CFLAGS="$CFLAGS -Wmissing-prototypes" 6942 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6944$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 6945 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6946 if eval \${$cacheid+:} false; then : 6947 $as_echo_n "(cached) " >&6 6948else 6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6950/* end confdefs.h. */ 6951int i; 6952int 6953main () 6954{ 6955 6956 ; 6957 return 0; 6958} 6959_ACEOF 6960if ac_fn_c_try_link "$LINENO"; then : 6961 eval $cacheid=yes 6962else 6963 eval $cacheid=no 6964fi 6965rm -f core conftest.err conftest.$ac_objext \ 6966 conftest$ac_exeext conftest.$ac_ext 6967fi 6968 6969 6970 CFLAGS="$xorg_testset_save_CFLAGS" 6971 6972 eval supported=\$$cacheid 6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6974$as_echo "$supported" >&6; } 6975 if test "$supported" = "yes" ; then 6976 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6977 found="yes" 6978 fi 6979 fi 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995xorg_testset_save_CFLAGS="$CFLAGS" 6996 6997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7000$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7001if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7002 $as_echo_n "(cached) " >&6 7003else 7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7005/* end confdefs.h. */ 7006int i; 7007_ACEOF 7008if ac_fn_c_try_compile "$LINENO"; then : 7009 xorg_cv_cc_flag_unknown_warning_option=yes 7010else 7011 xorg_cv_cc_flag_unknown_warning_option=no 7012fi 7013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7014fi 7015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7016$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7018 CFLAGS="$xorg_testset_save_CFLAGS" 7019fi 7020 7021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7024 fi 7025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7027$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7028if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7029 $as_echo_n "(cached) " >&6 7030else 7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7032/* end confdefs.h. */ 7033int i; 7034_ACEOF 7035if ac_fn_c_try_compile "$LINENO"; then : 7036 xorg_cv_cc_flag_unused_command_line_argument=yes 7037else 7038 xorg_cv_cc_flag_unused_command_line_argument=no 7039fi 7040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7041fi 7042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7043$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7045 CFLAGS="$xorg_testset_save_CFLAGS" 7046fi 7047 7048found="no" 7049 7050 if test $found = "no" ; then 7051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7053 fi 7054 7055 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7057 fi 7058 7059 CFLAGS="$CFLAGS -Wnested-externs" 7060 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 7062$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 7063 cacheid=xorg_cv_cc_flag__Wnested_externs 7064 if eval \${$cacheid+:} false; then : 7065 $as_echo_n "(cached) " >&6 7066else 7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7068/* end confdefs.h. */ 7069int i; 7070int 7071main () 7072{ 7073 7074 ; 7075 return 0; 7076} 7077_ACEOF 7078if ac_fn_c_try_link "$LINENO"; then : 7079 eval $cacheid=yes 7080else 7081 eval $cacheid=no 7082fi 7083rm -f core conftest.err conftest.$ac_objext \ 7084 conftest$ac_exeext conftest.$ac_ext 7085fi 7086 7087 7088 CFLAGS="$xorg_testset_save_CFLAGS" 7089 7090 eval supported=\$$cacheid 7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7092$as_echo "$supported" >&6; } 7093 if test "$supported" = "yes" ; then 7094 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 7095 found="yes" 7096 fi 7097 fi 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113xorg_testset_save_CFLAGS="$CFLAGS" 7114 7115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7118$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7119if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7120 $as_echo_n "(cached) " >&6 7121else 7122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7123/* end confdefs.h. */ 7124int i; 7125_ACEOF 7126if ac_fn_c_try_compile "$LINENO"; then : 7127 xorg_cv_cc_flag_unknown_warning_option=yes 7128else 7129 xorg_cv_cc_flag_unknown_warning_option=no 7130fi 7131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7132fi 7133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7134$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7136 CFLAGS="$xorg_testset_save_CFLAGS" 7137fi 7138 7139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7142 fi 7143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7145$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7146if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7147 $as_echo_n "(cached) " >&6 7148else 7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7150/* end confdefs.h. */ 7151int i; 7152_ACEOF 7153if ac_fn_c_try_compile "$LINENO"; then : 7154 xorg_cv_cc_flag_unused_command_line_argument=yes 7155else 7156 xorg_cv_cc_flag_unused_command_line_argument=no 7157fi 7158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7159fi 7160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7161$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7163 CFLAGS="$xorg_testset_save_CFLAGS" 7164fi 7165 7166found="no" 7167 7168 if test $found = "no" ; then 7169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7171 fi 7172 7173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7175 fi 7176 7177 CFLAGS="$CFLAGS -Wbad-function-cast" 7178 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 7180$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 7181 cacheid=xorg_cv_cc_flag__Wbad_function_cast 7182 if eval \${$cacheid+:} false; then : 7183 $as_echo_n "(cached) " >&6 7184else 7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7186/* end confdefs.h. */ 7187int i; 7188int 7189main () 7190{ 7191 7192 ; 7193 return 0; 7194} 7195_ACEOF 7196if ac_fn_c_try_link "$LINENO"; then : 7197 eval $cacheid=yes 7198else 7199 eval $cacheid=no 7200fi 7201rm -f core conftest.err conftest.$ac_objext \ 7202 conftest$ac_exeext conftest.$ac_ext 7203fi 7204 7205 7206 CFLAGS="$xorg_testset_save_CFLAGS" 7207 7208 eval supported=\$$cacheid 7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7210$as_echo "$supported" >&6; } 7211 if test "$supported" = "yes" ; then 7212 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 7213 found="yes" 7214 fi 7215 fi 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231xorg_testset_save_CFLAGS="$CFLAGS" 7232 7233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7236$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7237if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7238 $as_echo_n "(cached) " >&6 7239else 7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7241/* end confdefs.h. */ 7242int i; 7243_ACEOF 7244if ac_fn_c_try_compile "$LINENO"; then : 7245 xorg_cv_cc_flag_unknown_warning_option=yes 7246else 7247 xorg_cv_cc_flag_unknown_warning_option=no 7248fi 7249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7250fi 7251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7252$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7253 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7254 CFLAGS="$xorg_testset_save_CFLAGS" 7255fi 7256 7257if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7260 fi 7261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7263$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7264if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7265 $as_echo_n "(cached) " >&6 7266else 7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7268/* end confdefs.h. */ 7269int i; 7270_ACEOF 7271if ac_fn_c_try_compile "$LINENO"; then : 7272 xorg_cv_cc_flag_unused_command_line_argument=yes 7273else 7274 xorg_cv_cc_flag_unused_command_line_argument=no 7275fi 7276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7277fi 7278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7279$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7281 CFLAGS="$xorg_testset_save_CFLAGS" 7282fi 7283 7284found="no" 7285 7286 if test $found = "no" ; then 7287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7289 fi 7290 7291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7293 fi 7294 7295 CFLAGS="$CFLAGS -Wold-style-definition" 7296 7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 7298$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 7299 cacheid=xorg_cv_cc_flag__Wold_style_definition 7300 if eval \${$cacheid+:} false; then : 7301 $as_echo_n "(cached) " >&6 7302else 7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7304/* end confdefs.h. */ 7305int i; 7306int 7307main () 7308{ 7309 7310 ; 7311 return 0; 7312} 7313_ACEOF 7314if ac_fn_c_try_link "$LINENO"; then : 7315 eval $cacheid=yes 7316else 7317 eval $cacheid=no 7318fi 7319rm -f core conftest.err conftest.$ac_objext \ 7320 conftest$ac_exeext conftest.$ac_ext 7321fi 7322 7323 7324 CFLAGS="$xorg_testset_save_CFLAGS" 7325 7326 eval supported=\$$cacheid 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7328$as_echo "$supported" >&6; } 7329 if test "$supported" = "yes" ; then 7330 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 7331 found="yes" 7332 fi 7333 fi 7334 7335 if test $found = "no" ; then 7336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7338 fi 7339 7340 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7342 fi 7343 7344 CFLAGS="$CFLAGS -fd" 7345 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 7347$as_echo_n "checking if $CC supports -fd... " >&6; } 7348 cacheid=xorg_cv_cc_flag__fd 7349 if eval \${$cacheid+:} false; then : 7350 $as_echo_n "(cached) " >&6 7351else 7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7353/* end confdefs.h. */ 7354int i; 7355int 7356main () 7357{ 7358 7359 ; 7360 return 0; 7361} 7362_ACEOF 7363if ac_fn_c_try_link "$LINENO"; then : 7364 eval $cacheid=yes 7365else 7366 eval $cacheid=no 7367fi 7368rm -f core conftest.err conftest.$ac_objext \ 7369 conftest$ac_exeext conftest.$ac_ext 7370fi 7371 7372 7373 CFLAGS="$xorg_testset_save_CFLAGS" 7374 7375 eval supported=\$$cacheid 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7377$as_echo "$supported" >&6; } 7378 if test "$supported" = "yes" ; then 7379 BASE_CFLAGS="$BASE_CFLAGS -fd" 7380 found="yes" 7381 fi 7382 fi 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398xorg_testset_save_CFLAGS="$CFLAGS" 7399 7400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7403$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7404if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7405 $as_echo_n "(cached) " >&6 7406else 7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7408/* end confdefs.h. */ 7409int i; 7410_ACEOF 7411if ac_fn_c_try_compile "$LINENO"; then : 7412 xorg_cv_cc_flag_unknown_warning_option=yes 7413else 7414 xorg_cv_cc_flag_unknown_warning_option=no 7415fi 7416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7417fi 7418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7419$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7420 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7421 CFLAGS="$xorg_testset_save_CFLAGS" 7422fi 7423 7424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7427 fi 7428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7430$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7431if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7432 $as_echo_n "(cached) " >&6 7433else 7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7435/* end confdefs.h. */ 7436int i; 7437_ACEOF 7438if ac_fn_c_try_compile "$LINENO"; then : 7439 xorg_cv_cc_flag_unused_command_line_argument=yes 7440else 7441 xorg_cv_cc_flag_unused_command_line_argument=no 7442fi 7443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7444fi 7445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7446$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7448 CFLAGS="$xorg_testset_save_CFLAGS" 7449fi 7450 7451found="no" 7452 7453 if test $found = "no" ; then 7454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7456 fi 7457 7458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7460 fi 7461 7462 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 7463 7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 7465$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 7466 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 7467 if eval \${$cacheid+:} false; then : 7468 $as_echo_n "(cached) " >&6 7469else 7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7471/* end confdefs.h. */ 7472int i; 7473int 7474main () 7475{ 7476 7477 ; 7478 return 0; 7479} 7480_ACEOF 7481if ac_fn_c_try_link "$LINENO"; then : 7482 eval $cacheid=yes 7483else 7484 eval $cacheid=no 7485fi 7486rm -f core conftest.err conftest.$ac_objext \ 7487 conftest$ac_exeext conftest.$ac_ext 7488fi 7489 7490 7491 CFLAGS="$xorg_testset_save_CFLAGS" 7492 7493 eval supported=\$$cacheid 7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7495$as_echo "$supported" >&6; } 7496 if test "$supported" = "yes" ; then 7497 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 7498 found="yes" 7499 fi 7500 fi 7501 7502 7503 7504 7505 7506# This chunk adds additional warnings that could catch undesired effects. 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520xorg_testset_save_CFLAGS="$CFLAGS" 7521 7522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7525$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7526if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7527 $as_echo_n "(cached) " >&6 7528else 7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7530/* end confdefs.h. */ 7531int i; 7532_ACEOF 7533if ac_fn_c_try_compile "$LINENO"; then : 7534 xorg_cv_cc_flag_unknown_warning_option=yes 7535else 7536 xorg_cv_cc_flag_unknown_warning_option=no 7537fi 7538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7539fi 7540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7541$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7543 CFLAGS="$xorg_testset_save_CFLAGS" 7544fi 7545 7546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7549 fi 7550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7552$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7553if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7554 $as_echo_n "(cached) " >&6 7555else 7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7557/* end confdefs.h. */ 7558int i; 7559_ACEOF 7560if ac_fn_c_try_compile "$LINENO"; then : 7561 xorg_cv_cc_flag_unused_command_line_argument=yes 7562else 7563 xorg_cv_cc_flag_unused_command_line_argument=no 7564fi 7565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7566fi 7567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7568$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7570 CFLAGS="$xorg_testset_save_CFLAGS" 7571fi 7572 7573found="no" 7574 7575 if test $found = "no" ; then 7576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7578 fi 7579 7580 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7582 fi 7583 7584 CFLAGS="$CFLAGS -Wunused" 7585 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 7587$as_echo_n "checking if $CC supports -Wunused... " >&6; } 7588 cacheid=xorg_cv_cc_flag__Wunused 7589 if eval \${$cacheid+:} false; then : 7590 $as_echo_n "(cached) " >&6 7591else 7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7593/* end confdefs.h. */ 7594int i; 7595int 7596main () 7597{ 7598 7599 ; 7600 return 0; 7601} 7602_ACEOF 7603if ac_fn_c_try_link "$LINENO"; then : 7604 eval $cacheid=yes 7605else 7606 eval $cacheid=no 7607fi 7608rm -f core conftest.err conftest.$ac_objext \ 7609 conftest$ac_exeext conftest.$ac_ext 7610fi 7611 7612 7613 CFLAGS="$xorg_testset_save_CFLAGS" 7614 7615 eval supported=\$$cacheid 7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7617$as_echo "$supported" >&6; } 7618 if test "$supported" = "yes" ; then 7619 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 7620 found="yes" 7621 fi 7622 fi 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638xorg_testset_save_CFLAGS="$CFLAGS" 7639 7640if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7643$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7644if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7645 $as_echo_n "(cached) " >&6 7646else 7647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7648/* end confdefs.h. */ 7649int i; 7650_ACEOF 7651if ac_fn_c_try_compile "$LINENO"; then : 7652 xorg_cv_cc_flag_unknown_warning_option=yes 7653else 7654 xorg_cv_cc_flag_unknown_warning_option=no 7655fi 7656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7657fi 7658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7659$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7661 CFLAGS="$xorg_testset_save_CFLAGS" 7662fi 7663 7664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7667 fi 7668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7670$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7671if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7672 $as_echo_n "(cached) " >&6 7673else 7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7675/* end confdefs.h. */ 7676int i; 7677_ACEOF 7678if ac_fn_c_try_compile "$LINENO"; then : 7679 xorg_cv_cc_flag_unused_command_line_argument=yes 7680else 7681 xorg_cv_cc_flag_unused_command_line_argument=no 7682fi 7683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7684fi 7685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7686$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7688 CFLAGS="$xorg_testset_save_CFLAGS" 7689fi 7690 7691found="no" 7692 7693 if test $found = "no" ; then 7694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7696 fi 7697 7698 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7700 fi 7701 7702 CFLAGS="$CFLAGS -Wuninitialized" 7703 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 7705$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 7706 cacheid=xorg_cv_cc_flag__Wuninitialized 7707 if eval \${$cacheid+:} false; then : 7708 $as_echo_n "(cached) " >&6 7709else 7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7711/* end confdefs.h. */ 7712int i; 7713int 7714main () 7715{ 7716 7717 ; 7718 return 0; 7719} 7720_ACEOF 7721if ac_fn_c_try_link "$LINENO"; then : 7722 eval $cacheid=yes 7723else 7724 eval $cacheid=no 7725fi 7726rm -f core conftest.err conftest.$ac_objext \ 7727 conftest$ac_exeext conftest.$ac_ext 7728fi 7729 7730 7731 CFLAGS="$xorg_testset_save_CFLAGS" 7732 7733 eval supported=\$$cacheid 7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7735$as_echo "$supported" >&6; } 7736 if test "$supported" = "yes" ; then 7737 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 7738 found="yes" 7739 fi 7740 fi 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756xorg_testset_save_CFLAGS="$CFLAGS" 7757 7758if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7761$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7762if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7763 $as_echo_n "(cached) " >&6 7764else 7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7766/* end confdefs.h. */ 7767int i; 7768_ACEOF 7769if ac_fn_c_try_compile "$LINENO"; then : 7770 xorg_cv_cc_flag_unknown_warning_option=yes 7771else 7772 xorg_cv_cc_flag_unknown_warning_option=no 7773fi 7774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7775fi 7776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7777$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7779 CFLAGS="$xorg_testset_save_CFLAGS" 7780fi 7781 7782if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7785 fi 7786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7788$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7789if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7790 $as_echo_n "(cached) " >&6 7791else 7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7793/* end confdefs.h. */ 7794int i; 7795_ACEOF 7796if ac_fn_c_try_compile "$LINENO"; then : 7797 xorg_cv_cc_flag_unused_command_line_argument=yes 7798else 7799 xorg_cv_cc_flag_unused_command_line_argument=no 7800fi 7801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7802fi 7803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7804$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7806 CFLAGS="$xorg_testset_save_CFLAGS" 7807fi 7808 7809found="no" 7810 7811 if test $found = "no" ; then 7812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7814 fi 7815 7816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7818 fi 7819 7820 CFLAGS="$CFLAGS -Wshadow" 7821 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 7823$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 7824 cacheid=xorg_cv_cc_flag__Wshadow 7825 if eval \${$cacheid+:} false; then : 7826 $as_echo_n "(cached) " >&6 7827else 7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7829/* end confdefs.h. */ 7830int i; 7831int 7832main () 7833{ 7834 7835 ; 7836 return 0; 7837} 7838_ACEOF 7839if ac_fn_c_try_link "$LINENO"; then : 7840 eval $cacheid=yes 7841else 7842 eval $cacheid=no 7843fi 7844rm -f core conftest.err conftest.$ac_objext \ 7845 conftest$ac_exeext conftest.$ac_ext 7846fi 7847 7848 7849 CFLAGS="$xorg_testset_save_CFLAGS" 7850 7851 eval supported=\$$cacheid 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7853$as_echo "$supported" >&6; } 7854 if test "$supported" = "yes" ; then 7855 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 7856 found="yes" 7857 fi 7858 fi 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874xorg_testset_save_CFLAGS="$CFLAGS" 7875 7876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7879$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7880if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7881 $as_echo_n "(cached) " >&6 7882else 7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7884/* end confdefs.h. */ 7885int i; 7886_ACEOF 7887if ac_fn_c_try_compile "$LINENO"; then : 7888 xorg_cv_cc_flag_unknown_warning_option=yes 7889else 7890 xorg_cv_cc_flag_unknown_warning_option=no 7891fi 7892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7893fi 7894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7895$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7897 CFLAGS="$xorg_testset_save_CFLAGS" 7898fi 7899 7900if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7903 fi 7904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7906$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7907if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7908 $as_echo_n "(cached) " >&6 7909else 7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7911/* end confdefs.h. */ 7912int i; 7913_ACEOF 7914if ac_fn_c_try_compile "$LINENO"; then : 7915 xorg_cv_cc_flag_unused_command_line_argument=yes 7916else 7917 xorg_cv_cc_flag_unused_command_line_argument=no 7918fi 7919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7920fi 7921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7922$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7924 CFLAGS="$xorg_testset_save_CFLAGS" 7925fi 7926 7927found="no" 7928 7929 if test $found = "no" ; then 7930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7932 fi 7933 7934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7936 fi 7937 7938 CFLAGS="$CFLAGS -Wmissing-noreturn" 7939 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7941$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 7942 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7943 if eval \${$cacheid+:} false; then : 7944 $as_echo_n "(cached) " >&6 7945else 7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7947/* end confdefs.h. */ 7948int i; 7949int 7950main () 7951{ 7952 7953 ; 7954 return 0; 7955} 7956_ACEOF 7957if ac_fn_c_try_link "$LINENO"; then : 7958 eval $cacheid=yes 7959else 7960 eval $cacheid=no 7961fi 7962rm -f core conftest.err conftest.$ac_objext \ 7963 conftest$ac_exeext conftest.$ac_ext 7964fi 7965 7966 7967 CFLAGS="$xorg_testset_save_CFLAGS" 7968 7969 eval supported=\$$cacheid 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7971$as_echo "$supported" >&6; } 7972 if test "$supported" = "yes" ; then 7973 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7974 found="yes" 7975 fi 7976 fi 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992xorg_testset_save_CFLAGS="$CFLAGS" 7993 7994if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7997$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7998if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7999 $as_echo_n "(cached) " >&6 8000else 8001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8002/* end confdefs.h. */ 8003int i; 8004_ACEOF 8005if ac_fn_c_try_compile "$LINENO"; then : 8006 xorg_cv_cc_flag_unknown_warning_option=yes 8007else 8008 xorg_cv_cc_flag_unknown_warning_option=no 8009fi 8010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8011fi 8012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8013$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8015 CFLAGS="$xorg_testset_save_CFLAGS" 8016fi 8017 8018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8021 fi 8022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8024$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8025if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8026 $as_echo_n "(cached) " >&6 8027else 8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8029/* end confdefs.h. */ 8030int i; 8031_ACEOF 8032if ac_fn_c_try_compile "$LINENO"; then : 8033 xorg_cv_cc_flag_unused_command_line_argument=yes 8034else 8035 xorg_cv_cc_flag_unused_command_line_argument=no 8036fi 8037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8038fi 8039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8040$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8042 CFLAGS="$xorg_testset_save_CFLAGS" 8043fi 8044 8045found="no" 8046 8047 if test $found = "no" ; then 8048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8050 fi 8051 8052 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8054 fi 8055 8056 CFLAGS="$CFLAGS -Wmissing-format-attribute" 8057 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 8059$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 8060 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 8061 if eval \${$cacheid+:} false; then : 8062 $as_echo_n "(cached) " >&6 8063else 8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8065/* end confdefs.h. */ 8066int i; 8067int 8068main () 8069{ 8070 8071 ; 8072 return 0; 8073} 8074_ACEOF 8075if ac_fn_c_try_link "$LINENO"; then : 8076 eval $cacheid=yes 8077else 8078 eval $cacheid=no 8079fi 8080rm -f core conftest.err conftest.$ac_objext \ 8081 conftest$ac_exeext conftest.$ac_ext 8082fi 8083 8084 8085 CFLAGS="$xorg_testset_save_CFLAGS" 8086 8087 eval supported=\$$cacheid 8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8089$as_echo "$supported" >&6; } 8090 if test "$supported" = "yes" ; then 8091 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 8092 found="yes" 8093 fi 8094 fi 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110xorg_testset_save_CFLAGS="$CFLAGS" 8111 8112if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8115$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8116if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8117 $as_echo_n "(cached) " >&6 8118else 8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8120/* end confdefs.h. */ 8121int i; 8122_ACEOF 8123if ac_fn_c_try_compile "$LINENO"; then : 8124 xorg_cv_cc_flag_unknown_warning_option=yes 8125else 8126 xorg_cv_cc_flag_unknown_warning_option=no 8127fi 8128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8129fi 8130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8131$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8133 CFLAGS="$xorg_testset_save_CFLAGS" 8134fi 8135 8136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8139 fi 8140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8142$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8143if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8144 $as_echo_n "(cached) " >&6 8145else 8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8147/* end confdefs.h. */ 8148int i; 8149_ACEOF 8150if ac_fn_c_try_compile "$LINENO"; then : 8151 xorg_cv_cc_flag_unused_command_line_argument=yes 8152else 8153 xorg_cv_cc_flag_unused_command_line_argument=no 8154fi 8155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8156fi 8157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8158$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8160 CFLAGS="$xorg_testset_save_CFLAGS" 8161fi 8162 8163found="no" 8164 8165 if test $found = "no" ; then 8166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8168 fi 8169 8170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8172 fi 8173 8174 CFLAGS="$CFLAGS -Wredundant-decls" 8175 8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 8177$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 8178 cacheid=xorg_cv_cc_flag__Wredundant_decls 8179 if eval \${$cacheid+:} false; then : 8180 $as_echo_n "(cached) " >&6 8181else 8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8183/* end confdefs.h. */ 8184int i; 8185int 8186main () 8187{ 8188 8189 ; 8190 return 0; 8191} 8192_ACEOF 8193if ac_fn_c_try_link "$LINENO"; then : 8194 eval $cacheid=yes 8195else 8196 eval $cacheid=no 8197fi 8198rm -f core conftest.err conftest.$ac_objext \ 8199 conftest$ac_exeext conftest.$ac_ext 8200fi 8201 8202 8203 CFLAGS="$xorg_testset_save_CFLAGS" 8204 8205 eval supported=\$$cacheid 8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8207$as_echo "$supported" >&6; } 8208 if test "$supported" = "yes" ; then 8209 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 8210 found="yes" 8211 fi 8212 fi 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228xorg_testset_save_CFLAGS="$CFLAGS" 8229 8230if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8233$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8234if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8235 $as_echo_n "(cached) " >&6 8236else 8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8238/* end confdefs.h. */ 8239int i; 8240_ACEOF 8241if ac_fn_c_try_compile "$LINENO"; then : 8242 xorg_cv_cc_flag_unknown_warning_option=yes 8243else 8244 xorg_cv_cc_flag_unknown_warning_option=no 8245fi 8246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8247fi 8248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8249$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8251 CFLAGS="$xorg_testset_save_CFLAGS" 8252fi 8253 8254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8257 fi 8258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8260$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8261if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8262 $as_echo_n "(cached) " >&6 8263else 8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8265/* end confdefs.h. */ 8266int i; 8267_ACEOF 8268if ac_fn_c_try_compile "$LINENO"; then : 8269 xorg_cv_cc_flag_unused_command_line_argument=yes 8270else 8271 xorg_cv_cc_flag_unused_command_line_argument=no 8272fi 8273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8274fi 8275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8276$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8278 CFLAGS="$xorg_testset_save_CFLAGS" 8279fi 8280 8281found="no" 8282 8283 if test $found = "no" ; then 8284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8286 fi 8287 8288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8290 fi 8291 8292 CFLAGS="$CFLAGS -Wlogical-op" 8293 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 8295$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 8296 cacheid=xorg_cv_cc_flag__Wlogical_op 8297 if eval \${$cacheid+:} false; then : 8298 $as_echo_n "(cached) " >&6 8299else 8300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8301/* end confdefs.h. */ 8302int i; 8303int 8304main () 8305{ 8306 8307 ; 8308 return 0; 8309} 8310_ACEOF 8311if ac_fn_c_try_link "$LINENO"; then : 8312 eval $cacheid=yes 8313else 8314 eval $cacheid=no 8315fi 8316rm -f core conftest.err conftest.$ac_objext \ 8317 conftest$ac_exeext conftest.$ac_ext 8318fi 8319 8320 8321 CFLAGS="$xorg_testset_save_CFLAGS" 8322 8323 eval supported=\$$cacheid 8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8325$as_echo "$supported" >&6; } 8326 if test "$supported" = "yes" ; then 8327 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 8328 found="yes" 8329 fi 8330 fi 8331 8332 8333 8334# These are currently disabled because they are noisy. They will be enabled 8335# in the future once the codebase is sufficiently modernized to silence 8336# them. For now, I don't want them to drown out the other warnings. 8337# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 8338# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 8339# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 8340 8341# Turn some warnings into errors, so we don't accidently get successful builds 8342# when there are problems that should be fixed. 8343 8344if test "x$SELECTIVE_WERROR" = "xyes" ; then 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358xorg_testset_save_CFLAGS="$CFLAGS" 8359 8360if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8363$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8364if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8365 $as_echo_n "(cached) " >&6 8366else 8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8368/* end confdefs.h. */ 8369int i; 8370_ACEOF 8371if ac_fn_c_try_compile "$LINENO"; then : 8372 xorg_cv_cc_flag_unknown_warning_option=yes 8373else 8374 xorg_cv_cc_flag_unknown_warning_option=no 8375fi 8376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8377fi 8378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8379$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8380 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8381 CFLAGS="$xorg_testset_save_CFLAGS" 8382fi 8383 8384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8387 fi 8388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8390$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8391if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8392 $as_echo_n "(cached) " >&6 8393else 8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8395/* end confdefs.h. */ 8396int i; 8397_ACEOF 8398if ac_fn_c_try_compile "$LINENO"; then : 8399 xorg_cv_cc_flag_unused_command_line_argument=yes 8400else 8401 xorg_cv_cc_flag_unused_command_line_argument=no 8402fi 8403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8404fi 8405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8406$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8407 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8408 CFLAGS="$xorg_testset_save_CFLAGS" 8409fi 8410 8411found="no" 8412 8413 if test $found = "no" ; then 8414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8416 fi 8417 8418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8420 fi 8421 8422 CFLAGS="$CFLAGS -Werror=implicit" 8423 8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 8425$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 8426 cacheid=xorg_cv_cc_flag__Werror_implicit 8427 if eval \${$cacheid+:} false; then : 8428 $as_echo_n "(cached) " >&6 8429else 8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8431/* end confdefs.h. */ 8432int i; 8433int 8434main () 8435{ 8436 8437 ; 8438 return 0; 8439} 8440_ACEOF 8441if ac_fn_c_try_link "$LINENO"; then : 8442 eval $cacheid=yes 8443else 8444 eval $cacheid=no 8445fi 8446rm -f core conftest.err conftest.$ac_objext \ 8447 conftest$ac_exeext conftest.$ac_ext 8448fi 8449 8450 8451 CFLAGS="$xorg_testset_save_CFLAGS" 8452 8453 eval supported=\$$cacheid 8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8455$as_echo "$supported" >&6; } 8456 if test "$supported" = "yes" ; then 8457 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 8458 found="yes" 8459 fi 8460 fi 8461 8462 if test $found = "no" ; then 8463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8465 fi 8466 8467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8469 fi 8470 8471 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 8472 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 8474$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 8475 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 8476 if eval \${$cacheid+:} false; then : 8477 $as_echo_n "(cached) " >&6 8478else 8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8480/* end confdefs.h. */ 8481int i; 8482int 8483main () 8484{ 8485 8486 ; 8487 return 0; 8488} 8489_ACEOF 8490if ac_fn_c_try_link "$LINENO"; then : 8491 eval $cacheid=yes 8492else 8493 eval $cacheid=no 8494fi 8495rm -f core conftest.err conftest.$ac_objext \ 8496 conftest$ac_exeext conftest.$ac_ext 8497fi 8498 8499 8500 CFLAGS="$xorg_testset_save_CFLAGS" 8501 8502 eval supported=\$$cacheid 8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8504$as_echo "$supported" >&6; } 8505 if test "$supported" = "yes" ; then 8506 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 8507 found="yes" 8508 fi 8509 fi 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525xorg_testset_save_CFLAGS="$CFLAGS" 8526 8527if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8530$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8531if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8532 $as_echo_n "(cached) " >&6 8533else 8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8535/* end confdefs.h. */ 8536int i; 8537_ACEOF 8538if ac_fn_c_try_compile "$LINENO"; then : 8539 xorg_cv_cc_flag_unknown_warning_option=yes 8540else 8541 xorg_cv_cc_flag_unknown_warning_option=no 8542fi 8543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8544fi 8545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8546$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8547 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8548 CFLAGS="$xorg_testset_save_CFLAGS" 8549fi 8550 8551if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8554 fi 8555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8557$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8558if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8559 $as_echo_n "(cached) " >&6 8560else 8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8562/* end confdefs.h. */ 8563int i; 8564_ACEOF 8565if ac_fn_c_try_compile "$LINENO"; then : 8566 xorg_cv_cc_flag_unused_command_line_argument=yes 8567else 8568 xorg_cv_cc_flag_unused_command_line_argument=no 8569fi 8570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8571fi 8572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8573$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8575 CFLAGS="$xorg_testset_save_CFLAGS" 8576fi 8577 8578found="no" 8579 8580 if test $found = "no" ; then 8581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8583 fi 8584 8585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8587 fi 8588 8589 CFLAGS="$CFLAGS -Werror=nonnull" 8590 8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 8592$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 8593 cacheid=xorg_cv_cc_flag__Werror_nonnull 8594 if eval \${$cacheid+:} false; then : 8595 $as_echo_n "(cached) " >&6 8596else 8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8598/* end confdefs.h. */ 8599int i; 8600int 8601main () 8602{ 8603 8604 ; 8605 return 0; 8606} 8607_ACEOF 8608if ac_fn_c_try_link "$LINENO"; then : 8609 eval $cacheid=yes 8610else 8611 eval $cacheid=no 8612fi 8613rm -f core conftest.err conftest.$ac_objext \ 8614 conftest$ac_exeext conftest.$ac_ext 8615fi 8616 8617 8618 CFLAGS="$xorg_testset_save_CFLAGS" 8619 8620 eval supported=\$$cacheid 8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8622$as_echo "$supported" >&6; } 8623 if test "$supported" = "yes" ; then 8624 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 8625 found="yes" 8626 fi 8627 fi 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643xorg_testset_save_CFLAGS="$CFLAGS" 8644 8645if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8648$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8649if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8650 $as_echo_n "(cached) " >&6 8651else 8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8653/* end confdefs.h. */ 8654int i; 8655_ACEOF 8656if ac_fn_c_try_compile "$LINENO"; then : 8657 xorg_cv_cc_flag_unknown_warning_option=yes 8658else 8659 xorg_cv_cc_flag_unknown_warning_option=no 8660fi 8661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8662fi 8663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8664$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8665 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8666 CFLAGS="$xorg_testset_save_CFLAGS" 8667fi 8668 8669if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8672 fi 8673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8675$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8676if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8677 $as_echo_n "(cached) " >&6 8678else 8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8680/* end confdefs.h. */ 8681int i; 8682_ACEOF 8683if ac_fn_c_try_compile "$LINENO"; then : 8684 xorg_cv_cc_flag_unused_command_line_argument=yes 8685else 8686 xorg_cv_cc_flag_unused_command_line_argument=no 8687fi 8688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8689fi 8690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8691$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8692 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8693 CFLAGS="$xorg_testset_save_CFLAGS" 8694fi 8695 8696found="no" 8697 8698 if test $found = "no" ; then 8699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8701 fi 8702 8703 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8705 fi 8706 8707 CFLAGS="$CFLAGS -Werror=init-self" 8708 8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 8710$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 8711 cacheid=xorg_cv_cc_flag__Werror_init_self 8712 if eval \${$cacheid+:} false; then : 8713 $as_echo_n "(cached) " >&6 8714else 8715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8716/* end confdefs.h. */ 8717int i; 8718int 8719main () 8720{ 8721 8722 ; 8723 return 0; 8724} 8725_ACEOF 8726if ac_fn_c_try_link "$LINENO"; then : 8727 eval $cacheid=yes 8728else 8729 eval $cacheid=no 8730fi 8731rm -f core conftest.err conftest.$ac_objext \ 8732 conftest$ac_exeext conftest.$ac_ext 8733fi 8734 8735 8736 CFLAGS="$xorg_testset_save_CFLAGS" 8737 8738 eval supported=\$$cacheid 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8740$as_echo "$supported" >&6; } 8741 if test "$supported" = "yes" ; then 8742 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 8743 found="yes" 8744 fi 8745 fi 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761xorg_testset_save_CFLAGS="$CFLAGS" 8762 8763if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8766$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8767if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8768 $as_echo_n "(cached) " >&6 8769else 8770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8771/* end confdefs.h. */ 8772int i; 8773_ACEOF 8774if ac_fn_c_try_compile "$LINENO"; then : 8775 xorg_cv_cc_flag_unknown_warning_option=yes 8776else 8777 xorg_cv_cc_flag_unknown_warning_option=no 8778fi 8779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8780fi 8781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8782$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8783 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8784 CFLAGS="$xorg_testset_save_CFLAGS" 8785fi 8786 8787if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8790 fi 8791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8793$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8794if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8795 $as_echo_n "(cached) " >&6 8796else 8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8798/* end confdefs.h. */ 8799int i; 8800_ACEOF 8801if ac_fn_c_try_compile "$LINENO"; then : 8802 xorg_cv_cc_flag_unused_command_line_argument=yes 8803else 8804 xorg_cv_cc_flag_unused_command_line_argument=no 8805fi 8806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8807fi 8808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8809$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8811 CFLAGS="$xorg_testset_save_CFLAGS" 8812fi 8813 8814found="no" 8815 8816 if test $found = "no" ; then 8817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8819 fi 8820 8821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8823 fi 8824 8825 CFLAGS="$CFLAGS -Werror=main" 8826 8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 8828$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 8829 cacheid=xorg_cv_cc_flag__Werror_main 8830 if eval \${$cacheid+:} false; then : 8831 $as_echo_n "(cached) " >&6 8832else 8833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8834/* end confdefs.h. */ 8835int i; 8836int 8837main () 8838{ 8839 8840 ; 8841 return 0; 8842} 8843_ACEOF 8844if ac_fn_c_try_link "$LINENO"; then : 8845 eval $cacheid=yes 8846else 8847 eval $cacheid=no 8848fi 8849rm -f core conftest.err conftest.$ac_objext \ 8850 conftest$ac_exeext conftest.$ac_ext 8851fi 8852 8853 8854 CFLAGS="$xorg_testset_save_CFLAGS" 8855 8856 eval supported=\$$cacheid 8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8858$as_echo "$supported" >&6; } 8859 if test "$supported" = "yes" ; then 8860 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8861 found="yes" 8862 fi 8863 fi 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879xorg_testset_save_CFLAGS="$CFLAGS" 8880 8881if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8884$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8885if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8886 $as_echo_n "(cached) " >&6 8887else 8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8889/* end confdefs.h. */ 8890int i; 8891_ACEOF 8892if ac_fn_c_try_compile "$LINENO"; then : 8893 xorg_cv_cc_flag_unknown_warning_option=yes 8894else 8895 xorg_cv_cc_flag_unknown_warning_option=no 8896fi 8897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8898fi 8899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8900$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8902 CFLAGS="$xorg_testset_save_CFLAGS" 8903fi 8904 8905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8908 fi 8909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8911$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8912if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8913 $as_echo_n "(cached) " >&6 8914else 8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8916/* end confdefs.h. */ 8917int i; 8918_ACEOF 8919if ac_fn_c_try_compile "$LINENO"; then : 8920 xorg_cv_cc_flag_unused_command_line_argument=yes 8921else 8922 xorg_cv_cc_flag_unused_command_line_argument=no 8923fi 8924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8925fi 8926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8927$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8929 CFLAGS="$xorg_testset_save_CFLAGS" 8930fi 8931 8932found="no" 8933 8934 if test $found = "no" ; then 8935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8937 fi 8938 8939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8941 fi 8942 8943 CFLAGS="$CFLAGS -Werror=missing-braces" 8944 8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8946$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 8947 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8948 if eval \${$cacheid+:} false; then : 8949 $as_echo_n "(cached) " >&6 8950else 8951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8952/* end confdefs.h. */ 8953int i; 8954int 8955main () 8956{ 8957 8958 ; 8959 return 0; 8960} 8961_ACEOF 8962if ac_fn_c_try_link "$LINENO"; then : 8963 eval $cacheid=yes 8964else 8965 eval $cacheid=no 8966fi 8967rm -f core conftest.err conftest.$ac_objext \ 8968 conftest$ac_exeext conftest.$ac_ext 8969fi 8970 8971 8972 CFLAGS="$xorg_testset_save_CFLAGS" 8973 8974 eval supported=\$$cacheid 8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8976$as_echo "$supported" >&6; } 8977 if test "$supported" = "yes" ; then 8978 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8979 found="yes" 8980 fi 8981 fi 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997xorg_testset_save_CFLAGS="$CFLAGS" 8998 8999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9002$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9003if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9004 $as_echo_n "(cached) " >&6 9005else 9006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9007/* end confdefs.h. */ 9008int i; 9009_ACEOF 9010if ac_fn_c_try_compile "$LINENO"; then : 9011 xorg_cv_cc_flag_unknown_warning_option=yes 9012else 9013 xorg_cv_cc_flag_unknown_warning_option=no 9014fi 9015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9016fi 9017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9018$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9020 CFLAGS="$xorg_testset_save_CFLAGS" 9021fi 9022 9023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9026 fi 9027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9029$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9030if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9031 $as_echo_n "(cached) " >&6 9032else 9033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9034/* end confdefs.h. */ 9035int i; 9036_ACEOF 9037if ac_fn_c_try_compile "$LINENO"; then : 9038 xorg_cv_cc_flag_unused_command_line_argument=yes 9039else 9040 xorg_cv_cc_flag_unused_command_line_argument=no 9041fi 9042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9043fi 9044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9045$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9047 CFLAGS="$xorg_testset_save_CFLAGS" 9048fi 9049 9050found="no" 9051 9052 if test $found = "no" ; then 9053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9055 fi 9056 9057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9059 fi 9060 9061 CFLAGS="$CFLAGS -Werror=sequence-point" 9062 9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 9064$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 9065 cacheid=xorg_cv_cc_flag__Werror_sequence_point 9066 if eval \${$cacheid+:} false; then : 9067 $as_echo_n "(cached) " >&6 9068else 9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9070/* end confdefs.h. */ 9071int i; 9072int 9073main () 9074{ 9075 9076 ; 9077 return 0; 9078} 9079_ACEOF 9080if ac_fn_c_try_link "$LINENO"; then : 9081 eval $cacheid=yes 9082else 9083 eval $cacheid=no 9084fi 9085rm -f core conftest.err conftest.$ac_objext \ 9086 conftest$ac_exeext conftest.$ac_ext 9087fi 9088 9089 9090 CFLAGS="$xorg_testset_save_CFLAGS" 9091 9092 eval supported=\$$cacheid 9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9094$as_echo "$supported" >&6; } 9095 if test "$supported" = "yes" ; then 9096 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 9097 found="yes" 9098 fi 9099 fi 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115xorg_testset_save_CFLAGS="$CFLAGS" 9116 9117if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9120$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9121if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9122 $as_echo_n "(cached) " >&6 9123else 9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9125/* end confdefs.h. */ 9126int i; 9127_ACEOF 9128if ac_fn_c_try_compile "$LINENO"; then : 9129 xorg_cv_cc_flag_unknown_warning_option=yes 9130else 9131 xorg_cv_cc_flag_unknown_warning_option=no 9132fi 9133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9134fi 9135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9136$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9137 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9138 CFLAGS="$xorg_testset_save_CFLAGS" 9139fi 9140 9141if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9144 fi 9145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9147$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9148if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9149 $as_echo_n "(cached) " >&6 9150else 9151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9152/* end confdefs.h. */ 9153int i; 9154_ACEOF 9155if ac_fn_c_try_compile "$LINENO"; then : 9156 xorg_cv_cc_flag_unused_command_line_argument=yes 9157else 9158 xorg_cv_cc_flag_unused_command_line_argument=no 9159fi 9160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9161fi 9162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9163$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9164 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9165 CFLAGS="$xorg_testset_save_CFLAGS" 9166fi 9167 9168found="no" 9169 9170 if test $found = "no" ; then 9171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9173 fi 9174 9175 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9177 fi 9178 9179 CFLAGS="$CFLAGS -Werror=return-type" 9180 9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 9182$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 9183 cacheid=xorg_cv_cc_flag__Werror_return_type 9184 if eval \${$cacheid+:} false; then : 9185 $as_echo_n "(cached) " >&6 9186else 9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9188/* end confdefs.h. */ 9189int i; 9190int 9191main () 9192{ 9193 9194 ; 9195 return 0; 9196} 9197_ACEOF 9198if ac_fn_c_try_link "$LINENO"; then : 9199 eval $cacheid=yes 9200else 9201 eval $cacheid=no 9202fi 9203rm -f core conftest.err conftest.$ac_objext \ 9204 conftest$ac_exeext conftest.$ac_ext 9205fi 9206 9207 9208 CFLAGS="$xorg_testset_save_CFLAGS" 9209 9210 eval supported=\$$cacheid 9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9212$as_echo "$supported" >&6; } 9213 if test "$supported" = "yes" ; then 9214 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 9215 found="yes" 9216 fi 9217 fi 9218 9219 if test $found = "no" ; then 9220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9222 fi 9223 9224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9226 fi 9227 9228 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 9229 9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 9231$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 9232 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 9233 if eval \${$cacheid+:} false; then : 9234 $as_echo_n "(cached) " >&6 9235else 9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9237/* end confdefs.h. */ 9238int i; 9239int 9240main () 9241{ 9242 9243 ; 9244 return 0; 9245} 9246_ACEOF 9247if ac_fn_c_try_link "$LINENO"; then : 9248 eval $cacheid=yes 9249else 9250 eval $cacheid=no 9251fi 9252rm -f core conftest.err conftest.$ac_objext \ 9253 conftest$ac_exeext conftest.$ac_ext 9254fi 9255 9256 9257 CFLAGS="$xorg_testset_save_CFLAGS" 9258 9259 eval supported=\$$cacheid 9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9261$as_echo "$supported" >&6; } 9262 if test "$supported" = "yes" ; then 9263 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 9264 found="yes" 9265 fi 9266 fi 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282xorg_testset_save_CFLAGS="$CFLAGS" 9283 9284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9287$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9288if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9289 $as_echo_n "(cached) " >&6 9290else 9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9292/* end confdefs.h. */ 9293int i; 9294_ACEOF 9295if ac_fn_c_try_compile "$LINENO"; then : 9296 xorg_cv_cc_flag_unknown_warning_option=yes 9297else 9298 xorg_cv_cc_flag_unknown_warning_option=no 9299fi 9300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9301fi 9302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9303$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9304 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9305 CFLAGS="$xorg_testset_save_CFLAGS" 9306fi 9307 9308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9311 fi 9312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9314$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9315if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9316 $as_echo_n "(cached) " >&6 9317else 9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9319/* end confdefs.h. */ 9320int i; 9321_ACEOF 9322if ac_fn_c_try_compile "$LINENO"; then : 9323 xorg_cv_cc_flag_unused_command_line_argument=yes 9324else 9325 xorg_cv_cc_flag_unused_command_line_argument=no 9326fi 9327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9328fi 9329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9330$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9332 CFLAGS="$xorg_testset_save_CFLAGS" 9333fi 9334 9335found="no" 9336 9337 if test $found = "no" ; then 9338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9340 fi 9341 9342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9344 fi 9345 9346 CFLAGS="$CFLAGS -Werror=trigraphs" 9347 9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 9349$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 9350 cacheid=xorg_cv_cc_flag__Werror_trigraphs 9351 if eval \${$cacheid+:} false; then : 9352 $as_echo_n "(cached) " >&6 9353else 9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9355/* end confdefs.h. */ 9356int i; 9357int 9358main () 9359{ 9360 9361 ; 9362 return 0; 9363} 9364_ACEOF 9365if ac_fn_c_try_link "$LINENO"; then : 9366 eval $cacheid=yes 9367else 9368 eval $cacheid=no 9369fi 9370rm -f core conftest.err conftest.$ac_objext \ 9371 conftest$ac_exeext conftest.$ac_ext 9372fi 9373 9374 9375 CFLAGS="$xorg_testset_save_CFLAGS" 9376 9377 eval supported=\$$cacheid 9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9379$as_echo "$supported" >&6; } 9380 if test "$supported" = "yes" ; then 9381 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 9382 found="yes" 9383 fi 9384 fi 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400xorg_testset_save_CFLAGS="$CFLAGS" 9401 9402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9405$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9406if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9407 $as_echo_n "(cached) " >&6 9408else 9409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9410/* end confdefs.h. */ 9411int i; 9412_ACEOF 9413if ac_fn_c_try_compile "$LINENO"; then : 9414 xorg_cv_cc_flag_unknown_warning_option=yes 9415else 9416 xorg_cv_cc_flag_unknown_warning_option=no 9417fi 9418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9419fi 9420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9421$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9423 CFLAGS="$xorg_testset_save_CFLAGS" 9424fi 9425 9426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9429 fi 9430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9432$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9433if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9434 $as_echo_n "(cached) " >&6 9435else 9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9437/* end confdefs.h. */ 9438int i; 9439_ACEOF 9440if ac_fn_c_try_compile "$LINENO"; then : 9441 xorg_cv_cc_flag_unused_command_line_argument=yes 9442else 9443 xorg_cv_cc_flag_unused_command_line_argument=no 9444fi 9445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9446fi 9447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9448$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9450 CFLAGS="$xorg_testset_save_CFLAGS" 9451fi 9452 9453found="no" 9454 9455 if test $found = "no" ; then 9456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9458 fi 9459 9460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9462 fi 9463 9464 CFLAGS="$CFLAGS -Werror=array-bounds" 9465 9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 9467$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 9468 cacheid=xorg_cv_cc_flag__Werror_array_bounds 9469 if eval \${$cacheid+:} false; then : 9470 $as_echo_n "(cached) " >&6 9471else 9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9473/* end confdefs.h. */ 9474int i; 9475int 9476main () 9477{ 9478 9479 ; 9480 return 0; 9481} 9482_ACEOF 9483if ac_fn_c_try_link "$LINENO"; then : 9484 eval $cacheid=yes 9485else 9486 eval $cacheid=no 9487fi 9488rm -f core conftest.err conftest.$ac_objext \ 9489 conftest$ac_exeext conftest.$ac_ext 9490fi 9491 9492 9493 CFLAGS="$xorg_testset_save_CFLAGS" 9494 9495 eval supported=\$$cacheid 9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9497$as_echo "$supported" >&6; } 9498 if test "$supported" = "yes" ; then 9499 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 9500 found="yes" 9501 fi 9502 fi 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518xorg_testset_save_CFLAGS="$CFLAGS" 9519 9520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9523$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9524if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9525 $as_echo_n "(cached) " >&6 9526else 9527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9528/* end confdefs.h. */ 9529int i; 9530_ACEOF 9531if ac_fn_c_try_compile "$LINENO"; then : 9532 xorg_cv_cc_flag_unknown_warning_option=yes 9533else 9534 xorg_cv_cc_flag_unknown_warning_option=no 9535fi 9536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9537fi 9538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9539$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9541 CFLAGS="$xorg_testset_save_CFLAGS" 9542fi 9543 9544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9547 fi 9548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9550$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9551if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9552 $as_echo_n "(cached) " >&6 9553else 9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9555/* end confdefs.h. */ 9556int i; 9557_ACEOF 9558if ac_fn_c_try_compile "$LINENO"; then : 9559 xorg_cv_cc_flag_unused_command_line_argument=yes 9560else 9561 xorg_cv_cc_flag_unused_command_line_argument=no 9562fi 9563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9564fi 9565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9566$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9568 CFLAGS="$xorg_testset_save_CFLAGS" 9569fi 9570 9571found="no" 9572 9573 if test $found = "no" ; then 9574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9576 fi 9577 9578 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9580 fi 9581 9582 CFLAGS="$CFLAGS -Werror=write-strings" 9583 9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 9585$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 9586 cacheid=xorg_cv_cc_flag__Werror_write_strings 9587 if eval \${$cacheid+:} false; then : 9588 $as_echo_n "(cached) " >&6 9589else 9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9591/* end confdefs.h. */ 9592int i; 9593int 9594main () 9595{ 9596 9597 ; 9598 return 0; 9599} 9600_ACEOF 9601if ac_fn_c_try_link "$LINENO"; then : 9602 eval $cacheid=yes 9603else 9604 eval $cacheid=no 9605fi 9606rm -f core conftest.err conftest.$ac_objext \ 9607 conftest$ac_exeext conftest.$ac_ext 9608fi 9609 9610 9611 CFLAGS="$xorg_testset_save_CFLAGS" 9612 9613 eval supported=\$$cacheid 9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9615$as_echo "$supported" >&6; } 9616 if test "$supported" = "yes" ; then 9617 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 9618 found="yes" 9619 fi 9620 fi 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636xorg_testset_save_CFLAGS="$CFLAGS" 9637 9638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9641$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9642if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9643 $as_echo_n "(cached) " >&6 9644else 9645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9646/* end confdefs.h. */ 9647int i; 9648_ACEOF 9649if ac_fn_c_try_compile "$LINENO"; then : 9650 xorg_cv_cc_flag_unknown_warning_option=yes 9651else 9652 xorg_cv_cc_flag_unknown_warning_option=no 9653fi 9654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9655fi 9656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9657$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9659 CFLAGS="$xorg_testset_save_CFLAGS" 9660fi 9661 9662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9665 fi 9666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9668$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9669if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9670 $as_echo_n "(cached) " >&6 9671else 9672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9673/* end confdefs.h. */ 9674int i; 9675_ACEOF 9676if ac_fn_c_try_compile "$LINENO"; then : 9677 xorg_cv_cc_flag_unused_command_line_argument=yes 9678else 9679 xorg_cv_cc_flag_unused_command_line_argument=no 9680fi 9681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9682fi 9683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9684$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9686 CFLAGS="$xorg_testset_save_CFLAGS" 9687fi 9688 9689found="no" 9690 9691 if test $found = "no" ; then 9692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9694 fi 9695 9696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9698 fi 9699 9700 CFLAGS="$CFLAGS -Werror=address" 9701 9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 9703$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 9704 cacheid=xorg_cv_cc_flag__Werror_address 9705 if eval \${$cacheid+:} false; then : 9706 $as_echo_n "(cached) " >&6 9707else 9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9709/* end confdefs.h. */ 9710int i; 9711int 9712main () 9713{ 9714 9715 ; 9716 return 0; 9717} 9718_ACEOF 9719if ac_fn_c_try_link "$LINENO"; then : 9720 eval $cacheid=yes 9721else 9722 eval $cacheid=no 9723fi 9724rm -f core conftest.err conftest.$ac_objext \ 9725 conftest$ac_exeext conftest.$ac_ext 9726fi 9727 9728 9729 CFLAGS="$xorg_testset_save_CFLAGS" 9730 9731 eval supported=\$$cacheid 9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9733$as_echo "$supported" >&6; } 9734 if test "$supported" = "yes" ; then 9735 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 9736 found="yes" 9737 fi 9738 fi 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754xorg_testset_save_CFLAGS="$CFLAGS" 9755 9756if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9759$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9760if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9761 $as_echo_n "(cached) " >&6 9762else 9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9764/* end confdefs.h. */ 9765int i; 9766_ACEOF 9767if ac_fn_c_try_compile "$LINENO"; then : 9768 xorg_cv_cc_flag_unknown_warning_option=yes 9769else 9770 xorg_cv_cc_flag_unknown_warning_option=no 9771fi 9772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9773fi 9774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9775$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9776 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9777 CFLAGS="$xorg_testset_save_CFLAGS" 9778fi 9779 9780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9783 fi 9784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9786$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9787if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9788 $as_echo_n "(cached) " >&6 9789else 9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9791/* end confdefs.h. */ 9792int i; 9793_ACEOF 9794if ac_fn_c_try_compile "$LINENO"; then : 9795 xorg_cv_cc_flag_unused_command_line_argument=yes 9796else 9797 xorg_cv_cc_flag_unused_command_line_argument=no 9798fi 9799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9800fi 9801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9802$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9803 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9804 CFLAGS="$xorg_testset_save_CFLAGS" 9805fi 9806 9807found="no" 9808 9809 if test $found = "no" ; then 9810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9812 fi 9813 9814 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9816 fi 9817 9818 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9819 9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9821$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9822 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9823 if eval \${$cacheid+:} false; then : 9824 $as_echo_n "(cached) " >&6 9825else 9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9827/* end confdefs.h. */ 9828int i; 9829int 9830main () 9831{ 9832 9833 ; 9834 return 0; 9835} 9836_ACEOF 9837if ac_fn_c_try_link "$LINENO"; then : 9838 eval $cacheid=yes 9839else 9840 eval $cacheid=no 9841fi 9842rm -f core conftest.err conftest.$ac_objext \ 9843 conftest$ac_exeext conftest.$ac_ext 9844fi 9845 9846 9847 CFLAGS="$xorg_testset_save_CFLAGS" 9848 9849 eval supported=\$$cacheid 9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9851$as_echo "$supported" >&6; } 9852 if test "$supported" = "yes" ; then 9853 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9854 found="yes" 9855 fi 9856 fi 9857 9858 if test $found = "no" ; then 9859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9861 fi 9862 9863 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9865 fi 9866 9867 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9868 9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9870$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9871 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9872 if eval \${$cacheid+:} false; then : 9873 $as_echo_n "(cached) " >&6 9874else 9875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9876/* end confdefs.h. */ 9877int i; 9878int 9879main () 9880{ 9881 9882 ; 9883 return 0; 9884} 9885_ACEOF 9886if ac_fn_c_try_link "$LINENO"; then : 9887 eval $cacheid=yes 9888else 9889 eval $cacheid=no 9890fi 9891rm -f core conftest.err conftest.$ac_objext \ 9892 conftest$ac_exeext conftest.$ac_ext 9893fi 9894 9895 9896 CFLAGS="$xorg_testset_save_CFLAGS" 9897 9898 eval supported=\$$cacheid 9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9900$as_echo "$supported" >&6; } 9901 if test "$supported" = "yes" ; then 9902 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9903 found="yes" 9904 fi 9905 fi 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921xorg_testset_save_CFLAGS="$CFLAGS" 9922 9923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9926$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9927if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9928 $as_echo_n "(cached) " >&6 9929else 9930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9931/* end confdefs.h. */ 9932int i; 9933_ACEOF 9934if ac_fn_c_try_compile "$LINENO"; then : 9935 xorg_cv_cc_flag_unknown_warning_option=yes 9936else 9937 xorg_cv_cc_flag_unknown_warning_option=no 9938fi 9939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9940fi 9941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9942$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9944 CFLAGS="$xorg_testset_save_CFLAGS" 9945fi 9946 9947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9950 fi 9951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9953$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9954if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9955 $as_echo_n "(cached) " >&6 9956else 9957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9958/* end confdefs.h. */ 9959int i; 9960_ACEOF 9961if ac_fn_c_try_compile "$LINENO"; then : 9962 xorg_cv_cc_flag_unused_command_line_argument=yes 9963else 9964 xorg_cv_cc_flag_unused_command_line_argument=no 9965fi 9966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9967fi 9968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9969$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9971 CFLAGS="$xorg_testset_save_CFLAGS" 9972fi 9973 9974found="no" 9975 9976 if test $found = "no" ; then 9977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9979 fi 9980 9981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9983 fi 9984 9985 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9986 9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9988$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9989 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9990 if eval \${$cacheid+:} false; then : 9991 $as_echo_n "(cached) " >&6 9992else 9993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9994/* end confdefs.h. */ 9995int i; 9996int 9997main () 9998{ 9999 10000 ; 10001 return 0; 10002} 10003_ACEOF 10004if ac_fn_c_try_link "$LINENO"; then : 10005 eval $cacheid=yes 10006else 10007 eval $cacheid=no 10008fi 10009rm -f core conftest.err conftest.$ac_objext \ 10010 conftest$ac_exeext conftest.$ac_ext 10011fi 10012 10013 10014 CFLAGS="$xorg_testset_save_CFLAGS" 10015 10016 eval supported=\$$cacheid 10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10018$as_echo "$supported" >&6; } 10019 if test "$supported" = "yes" ; then 10020 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 10021 found="yes" 10022 fi 10023 fi 10024 10025 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 10026else 10027{ $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 10028$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;} 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042xorg_testset_save_CFLAGS="$CFLAGS" 10043 10044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10047$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10048if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10049 $as_echo_n "(cached) " >&6 10050else 10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10052/* end confdefs.h. */ 10053int i; 10054_ACEOF 10055if ac_fn_c_try_compile "$LINENO"; then : 10056 xorg_cv_cc_flag_unknown_warning_option=yes 10057else 10058 xorg_cv_cc_flag_unknown_warning_option=no 10059fi 10060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10061fi 10062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10063$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10065 CFLAGS="$xorg_testset_save_CFLAGS" 10066fi 10067 10068if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10071 fi 10072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10074$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10075if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10076 $as_echo_n "(cached) " >&6 10077else 10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10079/* end confdefs.h. */ 10080int i; 10081_ACEOF 10082if ac_fn_c_try_compile "$LINENO"; then : 10083 xorg_cv_cc_flag_unused_command_line_argument=yes 10084else 10085 xorg_cv_cc_flag_unused_command_line_argument=no 10086fi 10087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10088fi 10089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10090$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10092 CFLAGS="$xorg_testset_save_CFLAGS" 10093fi 10094 10095found="no" 10096 10097 if test $found = "no" ; then 10098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10100 fi 10101 10102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10104 fi 10105 10106 CFLAGS="$CFLAGS -Wimplicit" 10107 10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 10109$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 10110 cacheid=xorg_cv_cc_flag__Wimplicit 10111 if eval \${$cacheid+:} false; then : 10112 $as_echo_n "(cached) " >&6 10113else 10114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10115/* end confdefs.h. */ 10116int i; 10117int 10118main () 10119{ 10120 10121 ; 10122 return 0; 10123} 10124_ACEOF 10125if ac_fn_c_try_link "$LINENO"; then : 10126 eval $cacheid=yes 10127else 10128 eval $cacheid=no 10129fi 10130rm -f core conftest.err conftest.$ac_objext \ 10131 conftest$ac_exeext conftest.$ac_ext 10132fi 10133 10134 10135 CFLAGS="$xorg_testset_save_CFLAGS" 10136 10137 eval supported=\$$cacheid 10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10139$as_echo "$supported" >&6; } 10140 if test "$supported" = "yes" ; then 10141 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 10142 found="yes" 10143 fi 10144 fi 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160xorg_testset_save_CFLAGS="$CFLAGS" 10161 10162if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10165$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10166if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10167 $as_echo_n "(cached) " >&6 10168else 10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10170/* end confdefs.h. */ 10171int i; 10172_ACEOF 10173if ac_fn_c_try_compile "$LINENO"; then : 10174 xorg_cv_cc_flag_unknown_warning_option=yes 10175else 10176 xorg_cv_cc_flag_unknown_warning_option=no 10177fi 10178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10179fi 10180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10181$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10183 CFLAGS="$xorg_testset_save_CFLAGS" 10184fi 10185 10186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10189 fi 10190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10192$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10193if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10194 $as_echo_n "(cached) " >&6 10195else 10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10197/* end confdefs.h. */ 10198int i; 10199_ACEOF 10200if ac_fn_c_try_compile "$LINENO"; then : 10201 xorg_cv_cc_flag_unused_command_line_argument=yes 10202else 10203 xorg_cv_cc_flag_unused_command_line_argument=no 10204fi 10205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10206fi 10207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10208$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10210 CFLAGS="$xorg_testset_save_CFLAGS" 10211fi 10212 10213found="no" 10214 10215 if test $found = "no" ; then 10216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10218 fi 10219 10220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10222 fi 10223 10224 CFLAGS="$CFLAGS -Wnonnull" 10225 10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 10227$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 10228 cacheid=xorg_cv_cc_flag__Wnonnull 10229 if eval \${$cacheid+:} false; then : 10230 $as_echo_n "(cached) " >&6 10231else 10232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10233/* end confdefs.h. */ 10234int i; 10235int 10236main () 10237{ 10238 10239 ; 10240 return 0; 10241} 10242_ACEOF 10243if ac_fn_c_try_link "$LINENO"; then : 10244 eval $cacheid=yes 10245else 10246 eval $cacheid=no 10247fi 10248rm -f core conftest.err conftest.$ac_objext \ 10249 conftest$ac_exeext conftest.$ac_ext 10250fi 10251 10252 10253 CFLAGS="$xorg_testset_save_CFLAGS" 10254 10255 eval supported=\$$cacheid 10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10257$as_echo "$supported" >&6; } 10258 if test "$supported" = "yes" ; then 10259 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 10260 found="yes" 10261 fi 10262 fi 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278xorg_testset_save_CFLAGS="$CFLAGS" 10279 10280if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10283$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10284if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10285 $as_echo_n "(cached) " >&6 10286else 10287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10288/* end confdefs.h. */ 10289int i; 10290_ACEOF 10291if ac_fn_c_try_compile "$LINENO"; then : 10292 xorg_cv_cc_flag_unknown_warning_option=yes 10293else 10294 xorg_cv_cc_flag_unknown_warning_option=no 10295fi 10296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10297fi 10298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10299$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10300 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10301 CFLAGS="$xorg_testset_save_CFLAGS" 10302fi 10303 10304if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10307 fi 10308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10310$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10311if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10312 $as_echo_n "(cached) " >&6 10313else 10314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10315/* end confdefs.h. */ 10316int i; 10317_ACEOF 10318if ac_fn_c_try_compile "$LINENO"; then : 10319 xorg_cv_cc_flag_unused_command_line_argument=yes 10320else 10321 xorg_cv_cc_flag_unused_command_line_argument=no 10322fi 10323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10324fi 10325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10326$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10328 CFLAGS="$xorg_testset_save_CFLAGS" 10329fi 10330 10331found="no" 10332 10333 if test $found = "no" ; then 10334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10336 fi 10337 10338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10340 fi 10341 10342 CFLAGS="$CFLAGS -Winit-self" 10343 10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 10345$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 10346 cacheid=xorg_cv_cc_flag__Winit_self 10347 if eval \${$cacheid+:} false; then : 10348 $as_echo_n "(cached) " >&6 10349else 10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10351/* end confdefs.h. */ 10352int i; 10353int 10354main () 10355{ 10356 10357 ; 10358 return 0; 10359} 10360_ACEOF 10361if ac_fn_c_try_link "$LINENO"; then : 10362 eval $cacheid=yes 10363else 10364 eval $cacheid=no 10365fi 10366rm -f core conftest.err conftest.$ac_objext \ 10367 conftest$ac_exeext conftest.$ac_ext 10368fi 10369 10370 10371 CFLAGS="$xorg_testset_save_CFLAGS" 10372 10373 eval supported=\$$cacheid 10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10375$as_echo "$supported" >&6; } 10376 if test "$supported" = "yes" ; then 10377 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 10378 found="yes" 10379 fi 10380 fi 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396xorg_testset_save_CFLAGS="$CFLAGS" 10397 10398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10401$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10402if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10403 $as_echo_n "(cached) " >&6 10404else 10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10406/* end confdefs.h. */ 10407int i; 10408_ACEOF 10409if ac_fn_c_try_compile "$LINENO"; then : 10410 xorg_cv_cc_flag_unknown_warning_option=yes 10411else 10412 xorg_cv_cc_flag_unknown_warning_option=no 10413fi 10414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10415fi 10416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10417$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10419 CFLAGS="$xorg_testset_save_CFLAGS" 10420fi 10421 10422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10425 fi 10426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10428$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10429if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10430 $as_echo_n "(cached) " >&6 10431else 10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10433/* end confdefs.h. */ 10434int i; 10435_ACEOF 10436if ac_fn_c_try_compile "$LINENO"; then : 10437 xorg_cv_cc_flag_unused_command_line_argument=yes 10438else 10439 xorg_cv_cc_flag_unused_command_line_argument=no 10440fi 10441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10442fi 10443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10444$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10446 CFLAGS="$xorg_testset_save_CFLAGS" 10447fi 10448 10449found="no" 10450 10451 if test $found = "no" ; then 10452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10454 fi 10455 10456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10458 fi 10459 10460 CFLAGS="$CFLAGS -Wmain" 10461 10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 10463$as_echo_n "checking if $CC supports -Wmain... " >&6; } 10464 cacheid=xorg_cv_cc_flag__Wmain 10465 if eval \${$cacheid+:} false; then : 10466 $as_echo_n "(cached) " >&6 10467else 10468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10469/* end confdefs.h. */ 10470int i; 10471int 10472main () 10473{ 10474 10475 ; 10476 return 0; 10477} 10478_ACEOF 10479if ac_fn_c_try_link "$LINENO"; then : 10480 eval $cacheid=yes 10481else 10482 eval $cacheid=no 10483fi 10484rm -f core conftest.err conftest.$ac_objext \ 10485 conftest$ac_exeext conftest.$ac_ext 10486fi 10487 10488 10489 CFLAGS="$xorg_testset_save_CFLAGS" 10490 10491 eval supported=\$$cacheid 10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10493$as_echo "$supported" >&6; } 10494 if test "$supported" = "yes" ; then 10495 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 10496 found="yes" 10497 fi 10498 fi 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514xorg_testset_save_CFLAGS="$CFLAGS" 10515 10516if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10519$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10520if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10521 $as_echo_n "(cached) " >&6 10522else 10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10524/* end confdefs.h. */ 10525int i; 10526_ACEOF 10527if ac_fn_c_try_compile "$LINENO"; then : 10528 xorg_cv_cc_flag_unknown_warning_option=yes 10529else 10530 xorg_cv_cc_flag_unknown_warning_option=no 10531fi 10532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10533fi 10534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10535$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10536 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10537 CFLAGS="$xorg_testset_save_CFLAGS" 10538fi 10539 10540if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10543 fi 10544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10546$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10547if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10548 $as_echo_n "(cached) " >&6 10549else 10550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10551/* end confdefs.h. */ 10552int i; 10553_ACEOF 10554if ac_fn_c_try_compile "$LINENO"; then : 10555 xorg_cv_cc_flag_unused_command_line_argument=yes 10556else 10557 xorg_cv_cc_flag_unused_command_line_argument=no 10558fi 10559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10560fi 10561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10562$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10563 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10564 CFLAGS="$xorg_testset_save_CFLAGS" 10565fi 10566 10567found="no" 10568 10569 if test $found = "no" ; then 10570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10572 fi 10573 10574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10576 fi 10577 10578 CFLAGS="$CFLAGS -Wmissing-braces" 10579 10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 10581$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 10582 cacheid=xorg_cv_cc_flag__Wmissing_braces 10583 if eval \${$cacheid+:} false; then : 10584 $as_echo_n "(cached) " >&6 10585else 10586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10587/* end confdefs.h. */ 10588int i; 10589int 10590main () 10591{ 10592 10593 ; 10594 return 0; 10595} 10596_ACEOF 10597if ac_fn_c_try_link "$LINENO"; then : 10598 eval $cacheid=yes 10599else 10600 eval $cacheid=no 10601fi 10602rm -f core conftest.err conftest.$ac_objext \ 10603 conftest$ac_exeext conftest.$ac_ext 10604fi 10605 10606 10607 CFLAGS="$xorg_testset_save_CFLAGS" 10608 10609 eval supported=\$$cacheid 10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10611$as_echo "$supported" >&6; } 10612 if test "$supported" = "yes" ; then 10613 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 10614 found="yes" 10615 fi 10616 fi 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632xorg_testset_save_CFLAGS="$CFLAGS" 10633 10634if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10637$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10638if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10639 $as_echo_n "(cached) " >&6 10640else 10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10642/* end confdefs.h. */ 10643int i; 10644_ACEOF 10645if ac_fn_c_try_compile "$LINENO"; then : 10646 xorg_cv_cc_flag_unknown_warning_option=yes 10647else 10648 xorg_cv_cc_flag_unknown_warning_option=no 10649fi 10650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10651fi 10652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10653$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10655 CFLAGS="$xorg_testset_save_CFLAGS" 10656fi 10657 10658if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10661 fi 10662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10664$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10665if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10666 $as_echo_n "(cached) " >&6 10667else 10668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10669/* end confdefs.h. */ 10670int i; 10671_ACEOF 10672if ac_fn_c_try_compile "$LINENO"; then : 10673 xorg_cv_cc_flag_unused_command_line_argument=yes 10674else 10675 xorg_cv_cc_flag_unused_command_line_argument=no 10676fi 10677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10678fi 10679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10680$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10681 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10682 CFLAGS="$xorg_testset_save_CFLAGS" 10683fi 10684 10685found="no" 10686 10687 if test $found = "no" ; then 10688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10690 fi 10691 10692 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10694 fi 10695 10696 CFLAGS="$CFLAGS -Wsequence-point" 10697 10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10699$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 10700 cacheid=xorg_cv_cc_flag__Wsequence_point 10701 if eval \${$cacheid+:} false; then : 10702 $as_echo_n "(cached) " >&6 10703else 10704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10705/* end confdefs.h. */ 10706int i; 10707int 10708main () 10709{ 10710 10711 ; 10712 return 0; 10713} 10714_ACEOF 10715if ac_fn_c_try_link "$LINENO"; then : 10716 eval $cacheid=yes 10717else 10718 eval $cacheid=no 10719fi 10720rm -f core conftest.err conftest.$ac_objext \ 10721 conftest$ac_exeext conftest.$ac_ext 10722fi 10723 10724 10725 CFLAGS="$xorg_testset_save_CFLAGS" 10726 10727 eval supported=\$$cacheid 10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10729$as_echo "$supported" >&6; } 10730 if test "$supported" = "yes" ; then 10731 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10732 found="yes" 10733 fi 10734 fi 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750xorg_testset_save_CFLAGS="$CFLAGS" 10751 10752if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10755$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10756if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10757 $as_echo_n "(cached) " >&6 10758else 10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10760/* end confdefs.h. */ 10761int i; 10762_ACEOF 10763if ac_fn_c_try_compile "$LINENO"; then : 10764 xorg_cv_cc_flag_unknown_warning_option=yes 10765else 10766 xorg_cv_cc_flag_unknown_warning_option=no 10767fi 10768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10769fi 10770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10771$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10772 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10773 CFLAGS="$xorg_testset_save_CFLAGS" 10774fi 10775 10776if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10779 fi 10780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10782$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10783if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10784 $as_echo_n "(cached) " >&6 10785else 10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10787/* end confdefs.h. */ 10788int i; 10789_ACEOF 10790if ac_fn_c_try_compile "$LINENO"; then : 10791 xorg_cv_cc_flag_unused_command_line_argument=yes 10792else 10793 xorg_cv_cc_flag_unused_command_line_argument=no 10794fi 10795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10796fi 10797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10798$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10800 CFLAGS="$xorg_testset_save_CFLAGS" 10801fi 10802 10803found="no" 10804 10805 if test $found = "no" ; then 10806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10808 fi 10809 10810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10812 fi 10813 10814 CFLAGS="$CFLAGS -Wreturn-type" 10815 10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10817$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 10818 cacheid=xorg_cv_cc_flag__Wreturn_type 10819 if eval \${$cacheid+:} false; then : 10820 $as_echo_n "(cached) " >&6 10821else 10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10823/* end confdefs.h. */ 10824int i; 10825int 10826main () 10827{ 10828 10829 ; 10830 return 0; 10831} 10832_ACEOF 10833if ac_fn_c_try_link "$LINENO"; then : 10834 eval $cacheid=yes 10835else 10836 eval $cacheid=no 10837fi 10838rm -f core conftest.err conftest.$ac_objext \ 10839 conftest$ac_exeext conftest.$ac_ext 10840fi 10841 10842 10843 CFLAGS="$xorg_testset_save_CFLAGS" 10844 10845 eval supported=\$$cacheid 10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10847$as_echo "$supported" >&6; } 10848 if test "$supported" = "yes" ; then 10849 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10850 found="yes" 10851 fi 10852 fi 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868xorg_testset_save_CFLAGS="$CFLAGS" 10869 10870if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10873$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10874if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10875 $as_echo_n "(cached) " >&6 10876else 10877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10878/* end confdefs.h. */ 10879int i; 10880_ACEOF 10881if ac_fn_c_try_compile "$LINENO"; then : 10882 xorg_cv_cc_flag_unknown_warning_option=yes 10883else 10884 xorg_cv_cc_flag_unknown_warning_option=no 10885fi 10886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10887fi 10888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10889$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10891 CFLAGS="$xorg_testset_save_CFLAGS" 10892fi 10893 10894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10897 fi 10898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10900$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10901if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10902 $as_echo_n "(cached) " >&6 10903else 10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10905/* end confdefs.h. */ 10906int i; 10907_ACEOF 10908if ac_fn_c_try_compile "$LINENO"; then : 10909 xorg_cv_cc_flag_unused_command_line_argument=yes 10910else 10911 xorg_cv_cc_flag_unused_command_line_argument=no 10912fi 10913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10914fi 10915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10916$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10918 CFLAGS="$xorg_testset_save_CFLAGS" 10919fi 10920 10921found="no" 10922 10923 if test $found = "no" ; then 10924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10926 fi 10927 10928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10930 fi 10931 10932 CFLAGS="$CFLAGS -Wtrigraphs" 10933 10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10935$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 10936 cacheid=xorg_cv_cc_flag__Wtrigraphs 10937 if eval \${$cacheid+:} false; then : 10938 $as_echo_n "(cached) " >&6 10939else 10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10941/* end confdefs.h. */ 10942int i; 10943int 10944main () 10945{ 10946 10947 ; 10948 return 0; 10949} 10950_ACEOF 10951if ac_fn_c_try_link "$LINENO"; then : 10952 eval $cacheid=yes 10953else 10954 eval $cacheid=no 10955fi 10956rm -f core conftest.err conftest.$ac_objext \ 10957 conftest$ac_exeext conftest.$ac_ext 10958fi 10959 10960 10961 CFLAGS="$xorg_testset_save_CFLAGS" 10962 10963 eval supported=\$$cacheid 10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10965$as_echo "$supported" >&6; } 10966 if test "$supported" = "yes" ; then 10967 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10968 found="yes" 10969 fi 10970 fi 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986xorg_testset_save_CFLAGS="$CFLAGS" 10987 10988if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10991$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10992if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10993 $as_echo_n "(cached) " >&6 10994else 10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10996/* end confdefs.h. */ 10997int i; 10998_ACEOF 10999if ac_fn_c_try_compile "$LINENO"; then : 11000 xorg_cv_cc_flag_unknown_warning_option=yes 11001else 11002 xorg_cv_cc_flag_unknown_warning_option=no 11003fi 11004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11005fi 11006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11007$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11008 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11009 CFLAGS="$xorg_testset_save_CFLAGS" 11010fi 11011 11012if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11015 fi 11016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11018$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11019if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11020 $as_echo_n "(cached) " >&6 11021else 11022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11023/* end confdefs.h. */ 11024int i; 11025_ACEOF 11026if ac_fn_c_try_compile "$LINENO"; then : 11027 xorg_cv_cc_flag_unused_command_line_argument=yes 11028else 11029 xorg_cv_cc_flag_unused_command_line_argument=no 11030fi 11031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11032fi 11033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11034$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11036 CFLAGS="$xorg_testset_save_CFLAGS" 11037fi 11038 11039found="no" 11040 11041 if test $found = "no" ; then 11042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11044 fi 11045 11046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11048 fi 11049 11050 CFLAGS="$CFLAGS -Warray-bounds" 11051 11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 11053$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 11054 cacheid=xorg_cv_cc_flag__Warray_bounds 11055 if eval \${$cacheid+:} false; then : 11056 $as_echo_n "(cached) " >&6 11057else 11058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11059/* end confdefs.h. */ 11060int i; 11061int 11062main () 11063{ 11064 11065 ; 11066 return 0; 11067} 11068_ACEOF 11069if ac_fn_c_try_link "$LINENO"; then : 11070 eval $cacheid=yes 11071else 11072 eval $cacheid=no 11073fi 11074rm -f core conftest.err conftest.$ac_objext \ 11075 conftest$ac_exeext conftest.$ac_ext 11076fi 11077 11078 11079 CFLAGS="$xorg_testset_save_CFLAGS" 11080 11081 eval supported=\$$cacheid 11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11083$as_echo "$supported" >&6; } 11084 if test "$supported" = "yes" ; then 11085 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 11086 found="yes" 11087 fi 11088 fi 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104xorg_testset_save_CFLAGS="$CFLAGS" 11105 11106if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11109$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11110if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11111 $as_echo_n "(cached) " >&6 11112else 11113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11114/* end confdefs.h. */ 11115int i; 11116_ACEOF 11117if ac_fn_c_try_compile "$LINENO"; then : 11118 xorg_cv_cc_flag_unknown_warning_option=yes 11119else 11120 xorg_cv_cc_flag_unknown_warning_option=no 11121fi 11122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11123fi 11124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11125$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11127 CFLAGS="$xorg_testset_save_CFLAGS" 11128fi 11129 11130if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11133 fi 11134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11136$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11137if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11138 $as_echo_n "(cached) " >&6 11139else 11140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11141/* end confdefs.h. */ 11142int i; 11143_ACEOF 11144if ac_fn_c_try_compile "$LINENO"; then : 11145 xorg_cv_cc_flag_unused_command_line_argument=yes 11146else 11147 xorg_cv_cc_flag_unused_command_line_argument=no 11148fi 11149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11150fi 11151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11152$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11154 CFLAGS="$xorg_testset_save_CFLAGS" 11155fi 11156 11157found="no" 11158 11159 if test $found = "no" ; then 11160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11162 fi 11163 11164 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11166 fi 11167 11168 CFLAGS="$CFLAGS -Wwrite-strings" 11169 11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 11171$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 11172 cacheid=xorg_cv_cc_flag__Wwrite_strings 11173 if eval \${$cacheid+:} false; then : 11174 $as_echo_n "(cached) " >&6 11175else 11176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11177/* end confdefs.h. */ 11178int i; 11179int 11180main () 11181{ 11182 11183 ; 11184 return 0; 11185} 11186_ACEOF 11187if ac_fn_c_try_link "$LINENO"; then : 11188 eval $cacheid=yes 11189else 11190 eval $cacheid=no 11191fi 11192rm -f core conftest.err conftest.$ac_objext \ 11193 conftest$ac_exeext conftest.$ac_ext 11194fi 11195 11196 11197 CFLAGS="$xorg_testset_save_CFLAGS" 11198 11199 eval supported=\$$cacheid 11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11201$as_echo "$supported" >&6; } 11202 if test "$supported" = "yes" ; then 11203 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 11204 found="yes" 11205 fi 11206 fi 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222xorg_testset_save_CFLAGS="$CFLAGS" 11223 11224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11227$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11228if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11229 $as_echo_n "(cached) " >&6 11230else 11231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11232/* end confdefs.h. */ 11233int i; 11234_ACEOF 11235if ac_fn_c_try_compile "$LINENO"; then : 11236 xorg_cv_cc_flag_unknown_warning_option=yes 11237else 11238 xorg_cv_cc_flag_unknown_warning_option=no 11239fi 11240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11241fi 11242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11243$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11245 CFLAGS="$xorg_testset_save_CFLAGS" 11246fi 11247 11248if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11251 fi 11252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11254$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11255if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11256 $as_echo_n "(cached) " >&6 11257else 11258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11259/* end confdefs.h. */ 11260int i; 11261_ACEOF 11262if ac_fn_c_try_compile "$LINENO"; then : 11263 xorg_cv_cc_flag_unused_command_line_argument=yes 11264else 11265 xorg_cv_cc_flag_unused_command_line_argument=no 11266fi 11267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11268fi 11269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11270$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11272 CFLAGS="$xorg_testset_save_CFLAGS" 11273fi 11274 11275found="no" 11276 11277 if test $found = "no" ; then 11278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11280 fi 11281 11282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11284 fi 11285 11286 CFLAGS="$CFLAGS -Waddress" 11287 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 11289$as_echo_n "checking if $CC supports -Waddress... " >&6; } 11290 cacheid=xorg_cv_cc_flag__Waddress 11291 if eval \${$cacheid+:} false; then : 11292 $as_echo_n "(cached) " >&6 11293else 11294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11295/* end confdefs.h. */ 11296int i; 11297int 11298main () 11299{ 11300 11301 ; 11302 return 0; 11303} 11304_ACEOF 11305if ac_fn_c_try_link "$LINENO"; then : 11306 eval $cacheid=yes 11307else 11308 eval $cacheid=no 11309fi 11310rm -f core conftest.err conftest.$ac_objext \ 11311 conftest$ac_exeext conftest.$ac_ext 11312fi 11313 11314 11315 CFLAGS="$xorg_testset_save_CFLAGS" 11316 11317 eval supported=\$$cacheid 11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11319$as_echo "$supported" >&6; } 11320 if test "$supported" = "yes" ; then 11321 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 11322 found="yes" 11323 fi 11324 fi 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340xorg_testset_save_CFLAGS="$CFLAGS" 11341 11342if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11345$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11346if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11347 $as_echo_n "(cached) " >&6 11348else 11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11350/* end confdefs.h. */ 11351int i; 11352_ACEOF 11353if ac_fn_c_try_compile "$LINENO"; then : 11354 xorg_cv_cc_flag_unknown_warning_option=yes 11355else 11356 xorg_cv_cc_flag_unknown_warning_option=no 11357fi 11358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11359fi 11360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11361$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11363 CFLAGS="$xorg_testset_save_CFLAGS" 11364fi 11365 11366if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11369 fi 11370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11372$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11373if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11374 $as_echo_n "(cached) " >&6 11375else 11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11377/* end confdefs.h. */ 11378int i; 11379_ACEOF 11380if ac_fn_c_try_compile "$LINENO"; then : 11381 xorg_cv_cc_flag_unused_command_line_argument=yes 11382else 11383 xorg_cv_cc_flag_unused_command_line_argument=no 11384fi 11385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11386fi 11387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11388$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11390 CFLAGS="$xorg_testset_save_CFLAGS" 11391fi 11392 11393found="no" 11394 11395 if test $found = "no" ; then 11396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11398 fi 11399 11400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11402 fi 11403 11404 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 11405 11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 11407$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 11408 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 11409 if eval \${$cacheid+:} false; then : 11410 $as_echo_n "(cached) " >&6 11411else 11412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11413/* end confdefs.h. */ 11414int i; 11415int 11416main () 11417{ 11418 11419 ; 11420 return 0; 11421} 11422_ACEOF 11423if ac_fn_c_try_link "$LINENO"; then : 11424 eval $cacheid=yes 11425else 11426 eval $cacheid=no 11427fi 11428rm -f core conftest.err conftest.$ac_objext \ 11429 conftest$ac_exeext conftest.$ac_ext 11430fi 11431 11432 11433 CFLAGS="$xorg_testset_save_CFLAGS" 11434 11435 eval supported=\$$cacheid 11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11437$as_echo "$supported" >&6; } 11438 if test "$supported" = "yes" ; then 11439 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 11440 found="yes" 11441 fi 11442 fi 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458xorg_testset_save_CFLAGS="$CFLAGS" 11459 11460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11463$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11464if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11465 $as_echo_n "(cached) " >&6 11466else 11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11468/* end confdefs.h. */ 11469int i; 11470_ACEOF 11471if ac_fn_c_try_compile "$LINENO"; then : 11472 xorg_cv_cc_flag_unknown_warning_option=yes 11473else 11474 xorg_cv_cc_flag_unknown_warning_option=no 11475fi 11476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11477fi 11478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11479$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11481 CFLAGS="$xorg_testset_save_CFLAGS" 11482fi 11483 11484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11487 fi 11488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11490$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11491if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11492 $as_echo_n "(cached) " >&6 11493else 11494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11495/* end confdefs.h. */ 11496int i; 11497_ACEOF 11498if ac_fn_c_try_compile "$LINENO"; then : 11499 xorg_cv_cc_flag_unused_command_line_argument=yes 11500else 11501 xorg_cv_cc_flag_unused_command_line_argument=no 11502fi 11503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11504fi 11505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11506$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11507 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11508 CFLAGS="$xorg_testset_save_CFLAGS" 11509fi 11510 11511found="no" 11512 11513 if test $found = "no" ; then 11514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11516 fi 11517 11518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11520 fi 11521 11522 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 11523 11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 11525$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 11526 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 11527 if eval \${$cacheid+:} false; then : 11528 $as_echo_n "(cached) " >&6 11529else 11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11531/* end confdefs.h. */ 11532int i; 11533int 11534main () 11535{ 11536 11537 ; 11538 return 0; 11539} 11540_ACEOF 11541if ac_fn_c_try_link "$LINENO"; then : 11542 eval $cacheid=yes 11543else 11544 eval $cacheid=no 11545fi 11546rm -f core conftest.err conftest.$ac_objext \ 11547 conftest$ac_exeext conftest.$ac_ext 11548fi 11549 11550 11551 CFLAGS="$xorg_testset_save_CFLAGS" 11552 11553 eval supported=\$$cacheid 11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11555$as_echo "$supported" >&6; } 11556 if test "$supported" = "yes" ; then 11557 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 11558 found="yes" 11559 fi 11560 fi 11561 11562 11563fi 11564 11565 11566 11567 11568 11569 11570 11571 CWARNFLAGS="$BASE_CFLAGS" 11572 if test "x$GCC" = xyes ; then 11573 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 11574 fi 11575 11576 11577 11578 11579 11580 11581 11582 11583# Check whether --enable-strict-compilation was given. 11584if test "${enable_strict_compilation+set}" = set; then : 11585 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11586else 11587 STRICT_COMPILE=no 11588fi 11589 11590 11591 11592 11593 11594 11595STRICT_CFLAGS="" 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609xorg_testset_save_CFLAGS="$CFLAGS" 11610 11611if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11614$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11615if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11616 $as_echo_n "(cached) " >&6 11617else 11618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11619/* end confdefs.h. */ 11620int i; 11621_ACEOF 11622if ac_fn_c_try_compile "$LINENO"; then : 11623 xorg_cv_cc_flag_unknown_warning_option=yes 11624else 11625 xorg_cv_cc_flag_unknown_warning_option=no 11626fi 11627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11628fi 11629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11630$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11631 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11632 CFLAGS="$xorg_testset_save_CFLAGS" 11633fi 11634 11635if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11638 fi 11639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11641$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11642if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11643 $as_echo_n "(cached) " >&6 11644else 11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11646/* end confdefs.h. */ 11647int i; 11648_ACEOF 11649if ac_fn_c_try_compile "$LINENO"; then : 11650 xorg_cv_cc_flag_unused_command_line_argument=yes 11651else 11652 xorg_cv_cc_flag_unused_command_line_argument=no 11653fi 11654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11655fi 11656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11657$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11659 CFLAGS="$xorg_testset_save_CFLAGS" 11660fi 11661 11662found="no" 11663 11664 if test $found = "no" ; then 11665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11667 fi 11668 11669 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11671 fi 11672 11673 CFLAGS="$CFLAGS -pedantic" 11674 11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11676$as_echo_n "checking if $CC supports -pedantic... " >&6; } 11677 cacheid=xorg_cv_cc_flag__pedantic 11678 if eval \${$cacheid+:} false; then : 11679 $as_echo_n "(cached) " >&6 11680else 11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11682/* end confdefs.h. */ 11683int i; 11684int 11685main () 11686{ 11687 11688 ; 11689 return 0; 11690} 11691_ACEOF 11692if ac_fn_c_try_link "$LINENO"; then : 11693 eval $cacheid=yes 11694else 11695 eval $cacheid=no 11696fi 11697rm -f core conftest.err conftest.$ac_objext \ 11698 conftest$ac_exeext conftest.$ac_ext 11699fi 11700 11701 11702 CFLAGS="$xorg_testset_save_CFLAGS" 11703 11704 eval supported=\$$cacheid 11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11706$as_echo "$supported" >&6; } 11707 if test "$supported" = "yes" ; then 11708 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11709 found="yes" 11710 fi 11711 fi 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727xorg_testset_save_CFLAGS="$CFLAGS" 11728 11729if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11732$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11733if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11734 $as_echo_n "(cached) " >&6 11735else 11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11737/* end confdefs.h. */ 11738int i; 11739_ACEOF 11740if ac_fn_c_try_compile "$LINENO"; then : 11741 xorg_cv_cc_flag_unknown_warning_option=yes 11742else 11743 xorg_cv_cc_flag_unknown_warning_option=no 11744fi 11745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11746fi 11747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11748$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11749 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11750 CFLAGS="$xorg_testset_save_CFLAGS" 11751fi 11752 11753if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11756 fi 11757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11759$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11760if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11761 $as_echo_n "(cached) " >&6 11762else 11763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11764/* end confdefs.h. */ 11765int i; 11766_ACEOF 11767if ac_fn_c_try_compile "$LINENO"; then : 11768 xorg_cv_cc_flag_unused_command_line_argument=yes 11769else 11770 xorg_cv_cc_flag_unused_command_line_argument=no 11771fi 11772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11773fi 11774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11775$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11777 CFLAGS="$xorg_testset_save_CFLAGS" 11778fi 11779 11780found="no" 11781 11782 if test $found = "no" ; then 11783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11785 fi 11786 11787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11789 fi 11790 11791 CFLAGS="$CFLAGS -Werror" 11792 11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11794$as_echo_n "checking if $CC supports -Werror... " >&6; } 11795 cacheid=xorg_cv_cc_flag__Werror 11796 if eval \${$cacheid+:} false; then : 11797 $as_echo_n "(cached) " >&6 11798else 11799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11800/* end confdefs.h. */ 11801int i; 11802int 11803main () 11804{ 11805 11806 ; 11807 return 0; 11808} 11809_ACEOF 11810if ac_fn_c_try_link "$LINENO"; then : 11811 eval $cacheid=yes 11812else 11813 eval $cacheid=no 11814fi 11815rm -f core conftest.err conftest.$ac_objext \ 11816 conftest$ac_exeext conftest.$ac_ext 11817fi 11818 11819 11820 CFLAGS="$xorg_testset_save_CFLAGS" 11821 11822 eval supported=\$$cacheid 11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11824$as_echo "$supported" >&6; } 11825 if test "$supported" = "yes" ; then 11826 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11827 found="yes" 11828 fi 11829 fi 11830 11831 if test $found = "no" ; then 11832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11834 fi 11835 11836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11838 fi 11839 11840 CFLAGS="$CFLAGS -errwarn" 11841 11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11843$as_echo_n "checking if $CC supports -errwarn... " >&6; } 11844 cacheid=xorg_cv_cc_flag__errwarn 11845 if eval \${$cacheid+:} false; then : 11846 $as_echo_n "(cached) " >&6 11847else 11848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11849/* end confdefs.h. */ 11850int i; 11851int 11852main () 11853{ 11854 11855 ; 11856 return 0; 11857} 11858_ACEOF 11859if ac_fn_c_try_link "$LINENO"; then : 11860 eval $cacheid=yes 11861else 11862 eval $cacheid=no 11863fi 11864rm -f core conftest.err conftest.$ac_objext \ 11865 conftest$ac_exeext conftest.$ac_ext 11866fi 11867 11868 11869 CFLAGS="$xorg_testset_save_CFLAGS" 11870 11871 eval supported=\$$cacheid 11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11873$as_echo "$supported" >&6; } 11874 if test "$supported" = "yes" ; then 11875 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11876 found="yes" 11877 fi 11878 fi 11879 11880 11881 11882# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11883# activate it with -Werror, so we add it here explicitly. 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897xorg_testset_save_CFLAGS="$CFLAGS" 11898 11899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11902$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11903if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11904 $as_echo_n "(cached) " >&6 11905else 11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11907/* end confdefs.h. */ 11908int i; 11909_ACEOF 11910if ac_fn_c_try_compile "$LINENO"; then : 11911 xorg_cv_cc_flag_unknown_warning_option=yes 11912else 11913 xorg_cv_cc_flag_unknown_warning_option=no 11914fi 11915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11916fi 11917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11918$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11919 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11920 CFLAGS="$xorg_testset_save_CFLAGS" 11921fi 11922 11923if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11926 fi 11927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11929$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11930if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11931 $as_echo_n "(cached) " >&6 11932else 11933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11934/* end confdefs.h. */ 11935int i; 11936_ACEOF 11937if ac_fn_c_try_compile "$LINENO"; then : 11938 xorg_cv_cc_flag_unused_command_line_argument=yes 11939else 11940 xorg_cv_cc_flag_unused_command_line_argument=no 11941fi 11942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11943fi 11944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11945$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11947 CFLAGS="$xorg_testset_save_CFLAGS" 11948fi 11949 11950found="no" 11951 11952 if test $found = "no" ; then 11953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11955 fi 11956 11957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11959 fi 11960 11961 CFLAGS="$CFLAGS -Werror=attributes" 11962 11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11964$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 11965 cacheid=xorg_cv_cc_flag__Werror_attributes 11966 if eval \${$cacheid+:} false; then : 11967 $as_echo_n "(cached) " >&6 11968else 11969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11970/* end confdefs.h. */ 11971int i; 11972int 11973main () 11974{ 11975 11976 ; 11977 return 0; 11978} 11979_ACEOF 11980if ac_fn_c_try_link "$LINENO"; then : 11981 eval $cacheid=yes 11982else 11983 eval $cacheid=no 11984fi 11985rm -f core conftest.err conftest.$ac_objext \ 11986 conftest$ac_exeext conftest.$ac_ext 11987fi 11988 11989 11990 CFLAGS="$xorg_testset_save_CFLAGS" 11991 11992 eval supported=\$$cacheid 11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11994$as_echo "$supported" >&6; } 11995 if test "$supported" = "yes" ; then 11996 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11997 found="yes" 11998 fi 11999 fi 12000 12001 12002 12003if test "x$STRICT_COMPILE" = "xyes"; then 12004 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 12005 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 12006fi 12007 12008 12009 12010 12011 12012 12013cat >>confdefs.h <<_ACEOF 12014#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 12015_ACEOF 12016 12017 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 12018 if test "x$PVM" = "x"; then 12019 PVM="0" 12020 fi 12021 12022cat >>confdefs.h <<_ACEOF 12023#define PACKAGE_VERSION_MINOR $PVM 12024_ACEOF 12025 12026 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 12027 if test "x$PVP" = "x"; then 12028 PVP="0" 12029 fi 12030 12031cat >>confdefs.h <<_ACEOF 12032#define PACKAGE_VERSION_PATCHLEVEL $PVP 12033_ACEOF 12034 12035 12036 12037CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 12038mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 12039|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 12040touch \$(top_srcdir)/ChangeLog; \ 12041echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 12042 12043 12044 12045 12046macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 12047INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 12048mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 12049|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 12050touch \$(top_srcdir)/INSTALL; \ 12051echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 12052 12053 12054 12055 12056 12057 12058case $host_os in 12059 solaris*) 12060 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 12061 # check for a man page file found in later versions that use 12062 # traditional section numbers instead 12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 12064$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 12065if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 12066 $as_echo_n "(cached) " >&6 12067else 12068 test "$cross_compiling" = yes && 12069 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 12070if test -r "/usr/share/man/man7/attributes.7"; then 12071 ac_cv_file__usr_share_man_man7_attributes_7=yes 12072else 12073 ac_cv_file__usr_share_man_man7_attributes_7=no 12074fi 12075fi 12076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 12077$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 12078if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 12079 SYSV_MAN_SECTIONS=false 12080else 12081 SYSV_MAN_SECTIONS=true 12082fi 12083 12084 ;; 12085 *) SYSV_MAN_SECTIONS=false ;; 12086esac 12087 12088if test x$APP_MAN_SUFFIX = x ; then 12089 APP_MAN_SUFFIX=1 12090fi 12091if test x$APP_MAN_DIR = x ; then 12092 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 12093fi 12094 12095if test x$LIB_MAN_SUFFIX = x ; then 12096 LIB_MAN_SUFFIX=3 12097fi 12098if test x$LIB_MAN_DIR = x ; then 12099 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 12100fi 12101 12102if test x$FILE_MAN_SUFFIX = x ; then 12103 case $SYSV_MAN_SECTIONS in 12104 true) FILE_MAN_SUFFIX=4 ;; 12105 *) FILE_MAN_SUFFIX=5 ;; 12106 esac 12107fi 12108if test x$FILE_MAN_DIR = x ; then 12109 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 12110fi 12111 12112if test x$MISC_MAN_SUFFIX = x ; then 12113 case $SYSV_MAN_SECTIONS in 12114 true) MISC_MAN_SUFFIX=5 ;; 12115 *) MISC_MAN_SUFFIX=7 ;; 12116 esac 12117fi 12118if test x$MISC_MAN_DIR = x ; then 12119 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 12120fi 12121 12122if test x$DRIVER_MAN_SUFFIX = x ; then 12123 case $SYSV_MAN_SECTIONS in 12124 true) DRIVER_MAN_SUFFIX=7 ;; 12125 *) DRIVER_MAN_SUFFIX=4 ;; 12126 esac 12127fi 12128if test x$DRIVER_MAN_DIR = x ; then 12129 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 12130fi 12131 12132if test x$ADMIN_MAN_SUFFIX = x ; then 12133 case $SYSV_MAN_SECTIONS in 12134 true) ADMIN_MAN_SUFFIX=1m ;; 12135 *) ADMIN_MAN_SUFFIX=8 ;; 12136 esac 12137fi 12138if test x$ADMIN_MAN_DIR = x ; then 12139 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 12140fi 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156XORG_MAN_PAGE="X Version 11" 12157 12158MAN_SUBSTS="\ 12159 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 12160 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 12161 -e 's|__xservername__|Xorg|g' \ 12162 -e 's|__xconfigfile__|xorg.conf|g' \ 12163 -e 's|__projectroot__|\$(prefix)|g' \ 12164 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 12165 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 12166 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 12167 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 12168 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 12169 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 12170 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 12171 12172 12173 12174# Check whether --enable-silent-rules was given. 12175if test "${enable_silent_rules+set}" = set; then : 12176 enableval=$enable_silent_rules; 12177fi 12178 12179case $enable_silent_rules in # ((( 12180 yes) AM_DEFAULT_VERBOSITY=0;; 12181 no) AM_DEFAULT_VERBOSITY=1;; 12182 *) AM_DEFAULT_VERBOSITY=0;; 12183esac 12184am_make=${MAKE-make} 12185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 12186$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 12187if ${am_cv_make_support_nested_variables+:} false; then : 12188 $as_echo_n "(cached) " >&6 12189else 12190 if $as_echo 'TRUE=$(BAR$(V)) 12191BAR0=false 12192BAR1=true 12193V=1 12194am__doit: 12195 @$(TRUE) 12196.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 12197 am_cv_make_support_nested_variables=yes 12198else 12199 am_cv_make_support_nested_variables=no 12200fi 12201fi 12202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 12203$as_echo "$am_cv_make_support_nested_variables" >&6; } 12204if test $am_cv_make_support_nested_variables = yes; then 12205 AM_V='$(V)' 12206 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12207else 12208 AM_V=$AM_DEFAULT_VERBOSITY 12209 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12210fi 12211AM_BACKSLASH='\' 12212 12213 12214 12215 12216 12217 12218 12219# Check whether --with-doxygen was given. 12220if test "${with_doxygen+set}" = set; then : 12221 withval=$with_doxygen; use_doxygen=$withval 12222else 12223 use_doxygen=auto 12224fi 12225 12226 12227 12228if test "x$use_doxygen" = x"auto"; then 12229 # Extract the first word of "doxygen", so it can be a program name with args. 12230set dummy doxygen; ac_word=$2 12231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12232$as_echo_n "checking for $ac_word... " >&6; } 12233if ${ac_cv_path_DOXYGEN+:} false; then : 12234 $as_echo_n "(cached) " >&6 12235else 12236 case $DOXYGEN in 12237 [\\/]* | ?:[\\/]*) 12238 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 12239 ;; 12240 *) 12241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12242for as_dir in $PATH 12243do 12244 IFS=$as_save_IFS 12245 test -z "$as_dir" && as_dir=. 12246 for ac_exec_ext in '' $ac_executable_extensions; do 12247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12248 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 12249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12250 break 2 12251 fi 12252done 12253 done 12254IFS=$as_save_IFS 12255 12256 ;; 12257esac 12258fi 12259DOXYGEN=$ac_cv_path_DOXYGEN 12260if test -n "$DOXYGEN"; then 12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 12262$as_echo "$DOXYGEN" >&6; } 12263else 12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12265$as_echo "no" >&6; } 12266fi 12267 12268 12269 if test "x$DOXYGEN" = "x"; then 12270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5 12271$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;} 12272 have_doxygen=no 12273 else 12274 have_doxygen=yes 12275 fi 12276elif test "x$use_doxygen" = x"yes" ; then 12277 # Extract the first word of "doxygen", so it can be a program name with args. 12278set dummy doxygen; ac_word=$2 12279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12280$as_echo_n "checking for $ac_word... " >&6; } 12281if ${ac_cv_path_DOXYGEN+:} false; then : 12282 $as_echo_n "(cached) " >&6 12283else 12284 case $DOXYGEN in 12285 [\\/]* | ?:[\\/]*) 12286 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 12287 ;; 12288 *) 12289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12290for as_dir in $PATH 12291do 12292 IFS=$as_save_IFS 12293 test -z "$as_dir" && as_dir=. 12294 for ac_exec_ext in '' $ac_executable_extensions; do 12295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12296 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 12297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12298 break 2 12299 fi 12300done 12301 done 12302IFS=$as_save_IFS 12303 12304 ;; 12305esac 12306fi 12307DOXYGEN=$ac_cv_path_DOXYGEN 12308if test -n "$DOXYGEN"; then 12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 12310$as_echo "$DOXYGEN" >&6; } 12311else 12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12313$as_echo "no" >&6; } 12314fi 12315 12316 12317 if test "x$DOXYGEN" = "x"; then 12318 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5 12319 fi 12320 have_doxygen=yes 12321elif test "x$use_doxygen" = x"no" ; then 12322 if test "x$DOXYGEN" != "x"; then 12323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5 12324$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;} 12325 fi 12326 have_doxygen=no 12327else 12328 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5 12329fi 12330if test "$have_doxygen" = yes; then 12331 # scrape the doxygen version 12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5 12333$as_echo_n "checking the doxygen version... " >&6; } 12334 doxygen_version=`$DOXYGEN --version 2>/dev/null` 12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5 12336$as_echo "$doxygen_version" >&6; } 12337 as_arg_v1=$doxygen_version 12338as_arg_v2=1.6.1 12339awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 12340case $? in #( 12341 1) : 12342 if test "x$use_doxygen" = xauto; then 12343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5 12344$as_echo "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;} 12345 have_doxygen=no 12346 else 12347 as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5 12348 fi ;; #( 12349 0) : 12350 ;; #( 12351 2) : 12352 ;; #( 12353 *) : 12354 ;; 12355esac 12356fi 12357 12358HAVE_DOT=no 12359if test "x$have_doxygen" = "xyes"; then 12360 # Extract the first word of "dot", so it can be a program name with args. 12361set dummy dot; ac_word=$2 12362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12363$as_echo_n "checking for $ac_word... " >&6; } 12364if ${ac_cv_path_DOT+:} false; then : 12365 $as_echo_n "(cached) " >&6 12366else 12367 case $DOT in 12368 [\\/]* | ?:[\\/]*) 12369 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 12370 ;; 12371 *) 12372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12373for as_dir in $PATH 12374do 12375 IFS=$as_save_IFS 12376 test -z "$as_dir" && as_dir=. 12377 for ac_exec_ext in '' $ac_executable_extensions; do 12378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12379 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 12380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12381 break 2 12382 fi 12383done 12384 done 12385IFS=$as_save_IFS 12386 12387 ;; 12388esac 12389fi 12390DOT=$ac_cv_path_DOT 12391if test -n "$DOT"; then 12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 12393$as_echo "$DOT" >&6; } 12394else 12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12396$as_echo "no" >&6; } 12397fi 12398 12399 12400 if test "x$DOT" != "x"; then 12401 HAVE_DOT=yes 12402 fi 12403fi 12404 12405 12406 if test "$HAVE_DOT" = "yes"; then 12407 HAVE_DOT_TRUE= 12408 HAVE_DOT_FALSE='#' 12409else 12410 HAVE_DOT_TRUE='#' 12411 HAVE_DOT_FALSE= 12412fi 12413 12414 if test "$have_doxygen" = yes; then 12415 HAVE_DOXYGEN_TRUE= 12416 HAVE_DOXYGEN_FALSE='#' 12417else 12418 HAVE_DOXYGEN_TRUE='#' 12419 HAVE_DOXYGEN_FALSE= 12420fi 12421 12422 12423 12424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 12425$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } 12426XORG_SGML_PATH= 12427if test -n "$PKG_CONFIG" && \ 12428 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 12429 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 12430 ac_status=$? 12431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12432 test $ac_status = 0; }; then 12433 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 12434else 12435 : 12436 12437fi 12438 12439# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 12440# the path and the name of the doc stylesheet 12441if test "x$XORG_SGML_PATH" != "x" ; then 12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 12443$as_echo "$XORG_SGML_PATH" >&6; } 12444 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 12445 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 12446else 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12448$as_echo "no" >&6; } 12449fi 12450 12451 12452 12453 12454 if test "x$XSL_STYLESHEET" != "x"; then 12455 HAVE_STYLESHEETS_TRUE= 12456 HAVE_STYLESHEETS_FALSE='#' 12457else 12458 HAVE_STYLESHEETS_TRUE='#' 12459 HAVE_STYLESHEETS_FALSE= 12460fi 12461 12462 12463 12464 12465# Check whether --enable-docs was given. 12466if test "${enable_docs+set}" = set; then : 12467 enableval=$enable_docs; build_docs=$enableval 12468else 12469 build_docs=yes 12470fi 12471 12472 12473 if test x$build_docs = xyes; then 12474 ENABLE_DOCS_TRUE= 12475 ENABLE_DOCS_FALSE='#' 12476else 12477 ENABLE_DOCS_TRUE='#' 12478 ENABLE_DOCS_FALSE= 12479fi 12480 12481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 12482$as_echo_n "checking whether to build documentation... " >&6; } 12483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 12484$as_echo "$build_docs" >&6; } 12485 12486 12487 12488# Check whether --enable-devel-docs was given. 12489if test "${enable_devel_docs+set}" = set; then : 12490 enableval=$enable_devel_docs; build_devel_docs=$enableval 12491else 12492 build_devel_docs=yes 12493fi 12494 12495 12496 if test x$build_devel_docs = xyes; then 12497 ENABLE_DEVEL_DOCS_TRUE= 12498 ENABLE_DEVEL_DOCS_FALSE='#' 12499else 12500 ENABLE_DEVEL_DOCS_TRUE='#' 12501 ENABLE_DEVEL_DOCS_FALSE= 12502fi 12503 12504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 12505$as_echo_n "checking whether to build developer documentation... " >&6; } 12506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 12507$as_echo "$build_devel_docs" >&6; } 12508 12509 12510 12511 12512 12513# Check whether --with-xmlto was given. 12514if test "${with_xmlto+set}" = set; then : 12515 withval=$with_xmlto; use_xmlto=$withval 12516else 12517 use_xmlto=auto 12518fi 12519 12520 12521 12522if test "x$use_xmlto" = x"auto"; then 12523 # Extract the first word of "xmlto", so it can be a program name with args. 12524set dummy xmlto; ac_word=$2 12525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12526$as_echo_n "checking for $ac_word... " >&6; } 12527if ${ac_cv_path_XMLTO+:} false; then : 12528 $as_echo_n "(cached) " >&6 12529else 12530 case $XMLTO in 12531 [\\/]* | ?:[\\/]*) 12532 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 12533 ;; 12534 *) 12535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12536for as_dir in $PATH 12537do 12538 IFS=$as_save_IFS 12539 test -z "$as_dir" && as_dir=. 12540 for ac_exec_ext in '' $ac_executable_extensions; do 12541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12542 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 12543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12544 break 2 12545 fi 12546done 12547 done 12548IFS=$as_save_IFS 12549 12550 ;; 12551esac 12552fi 12553XMLTO=$ac_cv_path_XMLTO 12554if test -n "$XMLTO"; then 12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 12556$as_echo "$XMLTO" >&6; } 12557else 12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12559$as_echo "no" >&6; } 12560fi 12561 12562 12563 if test "x$XMLTO" = "x"; then 12564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 12565$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 12566 have_xmlto=no 12567 else 12568 have_xmlto=yes 12569 fi 12570elif test "x$use_xmlto" = x"yes" ; then 12571 # Extract the first word of "xmlto", so it can be a program name with args. 12572set dummy xmlto; ac_word=$2 12573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12574$as_echo_n "checking for $ac_word... " >&6; } 12575if ${ac_cv_path_XMLTO+:} false; then : 12576 $as_echo_n "(cached) " >&6 12577else 12578 case $XMLTO in 12579 [\\/]* | ?:[\\/]*) 12580 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 12581 ;; 12582 *) 12583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12584for as_dir in $PATH 12585do 12586 IFS=$as_save_IFS 12587 test -z "$as_dir" && as_dir=. 12588 for ac_exec_ext in '' $ac_executable_extensions; do 12589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12590 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 12591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12592 break 2 12593 fi 12594done 12595 done 12596IFS=$as_save_IFS 12597 12598 ;; 12599esac 12600fi 12601XMLTO=$ac_cv_path_XMLTO 12602if test -n "$XMLTO"; then 12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 12604$as_echo "$XMLTO" >&6; } 12605else 12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12607$as_echo "no" >&6; } 12608fi 12609 12610 12611 if test "x$XMLTO" = "x"; then 12612 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 12613 fi 12614 have_xmlto=yes 12615elif test "x$use_xmlto" = x"no" ; then 12616 if test "x$XMLTO" != "x"; then 12617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 12618$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 12619 fi 12620 have_xmlto=no 12621else 12622 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 12623fi 12624 12625# Test for a minimum version of xmlto, if provided. 12626if test "$have_xmlto" = yes; then 12627 # scrape the xmlto version 12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 12629$as_echo_n "checking the xmlto version... " >&6; } 12630 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 12632$as_echo "$xmlto_version" >&6; } 12633 as_arg_v1=$xmlto_version 12634as_arg_v2=0.0.20 12635awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 12636case $? in #( 12637 1) : 12638 if test "x$use_xmlto" = xauto; then 12639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 12640$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 12641 have_xmlto=no 12642 else 12643 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 12644 fi ;; #( 12645 0) : 12646 ;; #( 12647 2) : 12648 ;; #( 12649 *) : 12650 ;; 12651esac 12652fi 12653 12654# Test for the ability of xmlto to generate a text target 12655# 12656# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 12657# following test for empty XML docbook files. 12658# For compatibility reasons use the following empty XML docbook file and if 12659# it fails try it again with a non-empty XML file. 12660have_xmlto_text=no 12661cat > conftest.xml << "EOF" 12662EOF 12663if test "$have_xmlto" = yes; then : 12664 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 12665 have_xmlto_text=yes 12666else 12667 # Try it again with a non-empty XML file. 12668 cat > conftest.xml << "EOF" 12669<x></x> 12670EOF 12671 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 12672 have_xmlto_text=yes 12673else 12674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 12675$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 12676fi 12677fi 12678fi 12679rm -f conftest.xml 12680 if test $have_xmlto_text = yes; then 12681 HAVE_XMLTO_TEXT_TRUE= 12682 HAVE_XMLTO_TEXT_FALSE='#' 12683else 12684 HAVE_XMLTO_TEXT_TRUE='#' 12685 HAVE_XMLTO_TEXT_FALSE= 12686fi 12687 12688 if test "$have_xmlto" = yes; then 12689 HAVE_XMLTO_TRUE= 12690 HAVE_XMLTO_FALSE='#' 12691else 12692 HAVE_XMLTO_TRUE='#' 12693 HAVE_XMLTO_FALSE= 12694fi 12695 12696 12697 12698 12699 12700 12701# Check whether --with-fop was given. 12702if test "${with_fop+set}" = set; then : 12703 withval=$with_fop; use_fop=$withval 12704else 12705 use_fop=auto 12706fi 12707 12708 12709 12710if test "x$use_fop" = x"auto"; then 12711 # Extract the first word of "fop", so it can be a program name with args. 12712set dummy fop; ac_word=$2 12713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12714$as_echo_n "checking for $ac_word... " >&6; } 12715if ${ac_cv_path_FOP+:} false; then : 12716 $as_echo_n "(cached) " >&6 12717else 12718 case $FOP in 12719 [\\/]* | ?:[\\/]*) 12720 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 12721 ;; 12722 *) 12723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12724for as_dir in $PATH 12725do 12726 IFS=$as_save_IFS 12727 test -z "$as_dir" && as_dir=. 12728 for ac_exec_ext in '' $ac_executable_extensions; do 12729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12730 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 12731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12732 break 2 12733 fi 12734done 12735 done 12736IFS=$as_save_IFS 12737 12738 ;; 12739esac 12740fi 12741FOP=$ac_cv_path_FOP 12742if test -n "$FOP"; then 12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 12744$as_echo "$FOP" >&6; } 12745else 12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12747$as_echo "no" >&6; } 12748fi 12749 12750 12751 if test "x$FOP" = "x"; then 12752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 12753$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 12754 have_fop=no 12755 else 12756 have_fop=yes 12757 fi 12758elif test "x$use_fop" = x"yes" ; then 12759 # Extract the first word of "fop", so it can be a program name with args. 12760set dummy fop; ac_word=$2 12761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12762$as_echo_n "checking for $ac_word... " >&6; } 12763if ${ac_cv_path_FOP+:} false; then : 12764 $as_echo_n "(cached) " >&6 12765else 12766 case $FOP in 12767 [\\/]* | ?:[\\/]*) 12768 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 12769 ;; 12770 *) 12771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12772for as_dir in $PATH 12773do 12774 IFS=$as_save_IFS 12775 test -z "$as_dir" && as_dir=. 12776 for ac_exec_ext in '' $ac_executable_extensions; do 12777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12778 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 12779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12780 break 2 12781 fi 12782done 12783 done 12784IFS=$as_save_IFS 12785 12786 ;; 12787esac 12788fi 12789FOP=$ac_cv_path_FOP 12790if test -n "$FOP"; then 12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 12792$as_echo "$FOP" >&6; } 12793else 12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12795$as_echo "no" >&6; } 12796fi 12797 12798 12799 if test "x$FOP" = "x"; then 12800 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 12801 fi 12802 have_fop=yes 12803elif test "x$use_fop" = x"no" ; then 12804 if test "x$FOP" != "x"; then 12805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 12806$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 12807 fi 12808 have_fop=no 12809else 12810 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 12811fi 12812 12813# Test for a minimum version of fop, if provided. 12814 12815 if test "$have_fop" = yes; then 12816 HAVE_FOP_TRUE= 12817 HAVE_FOP_FALSE='#' 12818else 12819 HAVE_FOP_TRUE='#' 12820 HAVE_FOP_FALSE= 12821fi 12822 12823 12824 12825 12826# Preserves the interface, should it be implemented later 12827 12828 12829 12830# Check whether --with-xsltproc was given. 12831if test "${with_xsltproc+set}" = set; then : 12832 withval=$with_xsltproc; use_xsltproc=$withval 12833else 12834 use_xsltproc=auto 12835fi 12836 12837 12838 12839if test "x$use_xsltproc" = x"auto"; then 12840 # Extract the first word of "xsltproc", so it can be a program name with args. 12841set dummy xsltproc; ac_word=$2 12842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12843$as_echo_n "checking for $ac_word... " >&6; } 12844if ${ac_cv_path_XSLTPROC+:} false; then : 12845 $as_echo_n "(cached) " >&6 12846else 12847 case $XSLTPROC in 12848 [\\/]* | ?:[\\/]*) 12849 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 12850 ;; 12851 *) 12852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12853for as_dir in $PATH 12854do 12855 IFS=$as_save_IFS 12856 test -z "$as_dir" && as_dir=. 12857 for ac_exec_ext in '' $ac_executable_extensions; do 12858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12859 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 12860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12861 break 2 12862 fi 12863done 12864 done 12865IFS=$as_save_IFS 12866 12867 ;; 12868esac 12869fi 12870XSLTPROC=$ac_cv_path_XSLTPROC 12871if test -n "$XSLTPROC"; then 12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 12873$as_echo "$XSLTPROC" >&6; } 12874else 12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12876$as_echo "no" >&6; } 12877fi 12878 12879 12880 if test "x$XSLTPROC" = "x"; then 12881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 12882$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 12883 have_xsltproc=no 12884 else 12885 have_xsltproc=yes 12886 fi 12887elif test "x$use_xsltproc" = x"yes" ; then 12888 # Extract the first word of "xsltproc", so it can be a program name with args. 12889set dummy xsltproc; ac_word=$2 12890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12891$as_echo_n "checking for $ac_word... " >&6; } 12892if ${ac_cv_path_XSLTPROC+:} false; then : 12893 $as_echo_n "(cached) " >&6 12894else 12895 case $XSLTPROC in 12896 [\\/]* | ?:[\\/]*) 12897 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 12898 ;; 12899 *) 12900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12901for as_dir in $PATH 12902do 12903 IFS=$as_save_IFS 12904 test -z "$as_dir" && as_dir=. 12905 for ac_exec_ext in '' $ac_executable_extensions; do 12906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12907 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 12908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12909 break 2 12910 fi 12911done 12912 done 12913IFS=$as_save_IFS 12914 12915 ;; 12916esac 12917fi 12918XSLTPROC=$ac_cv_path_XSLTPROC 12919if test -n "$XSLTPROC"; then 12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 12921$as_echo "$XSLTPROC" >&6; } 12922else 12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12924$as_echo "no" >&6; } 12925fi 12926 12927 12928 if test "x$XSLTPROC" = "x"; then 12929 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 12930 fi 12931 have_xsltproc=yes 12932elif test "x$use_xsltproc" = x"no" ; then 12933 if test "x$XSLTPROC" != "x"; then 12934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 12935$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 12936 fi 12937 have_xsltproc=no 12938else 12939 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 12940fi 12941 12942 if test "$have_xsltproc" = yes; then 12943 HAVE_XSLTPROC_TRUE= 12944 HAVE_XSLTPROC_FALSE='#' 12945else 12946 HAVE_XSLTPROC_TRUE='#' 12947 HAVE_XSLTPROC_FALSE= 12948fi 12949 12950 12951 12952 12953 12954 12955 12956# Check for different types of support on different platforms 12957case $host_os in 12958 solaris*) 12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 12960$as_echo_n "checking for umem_alloc in -lumem... " >&6; } 12961if ${ac_cv_lib_umem_umem_alloc+:} false; then : 12962 $as_echo_n "(cached) " >&6 12963else 12964 ac_check_lib_save_LIBS=$LIBS 12965LIBS="-lumem $LIBS" 12966cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12967/* end confdefs.h. */ 12968 12969/* Override any GCC internal prototype to avoid an error. 12970 Use char because int might match the return type of a GCC 12971 builtin and then its argument prototype would still apply. */ 12972#ifdef __cplusplus 12973extern "C" 12974#endif 12975char umem_alloc (); 12976int 12977main () 12978{ 12979return umem_alloc (); 12980 ; 12981 return 0; 12982} 12983_ACEOF 12984if ac_fn_c_try_link "$LINENO"; then : 12985 ac_cv_lib_umem_umem_alloc=yes 12986else 12987 ac_cv_lib_umem_umem_alloc=no 12988fi 12989rm -f core conftest.err conftest.$ac_objext \ 12990 conftest$ac_exeext conftest.$ac_ext 12991LIBS=$ac_check_lib_save_LIBS 12992fi 12993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 12994$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } 12995if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : 12996 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 12997fi 12998 12999 ;; 13000 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 13001 # both directly and inverted, so should not be 0 or 255. 13002 malloc_debug_env='MALLOC_PERTURB_=15' 13003 ;; 13004 darwin*) 13005 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 13006 ;; 13007 *bsd*) 13008 malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 13009 ;; 13010esac 13011 13012# User supplied flags override default flags 13013if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 13014 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 13015fi 13016 13017XORG_MALLOC_DEBUG_ENV=$malloc_debug_env 13018 13019 13020 13021 13022 13023 13024 13025# Check whether --enable-unit-tests was given. 13026if test "${enable_unit_tests+set}" = set; then : 13027 enableval=$enable_unit_tests; enable_unit_tests=$enableval 13028else 13029 enable_unit_tests=auto 13030fi 13031 13032 13033 if test "x$enable_unit_tests" != xno; then 13034 ENABLE_UNIT_TESTS_TRUE= 13035 ENABLE_UNIT_TESTS_FALSE='#' 13036else 13037 ENABLE_UNIT_TESTS_TRUE='#' 13038 ENABLE_UNIT_TESTS_FALSE= 13039fi 13040 13041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5 13042$as_echo_n "checking whether to build unit test cases... " >&6; } 13043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5 13044$as_echo "$enable_unit_tests" >&6; } 13045 13046 13047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-wrap,exit" >&5 13048$as_echo_n "checking whether the linker accepts -Wl,-wrap,exit... " >&6; } 13049if ${xorg_cv_linker_flags__Wl__wrap_exit+:} false; then : 13050 $as_echo_n "(cached) " >&6 13051else 13052 13053 ax_save_FLAGS=$LDFLAGS 13054 LDFLAGS="-Wl,-wrap,exit" 13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13056/* end confdefs.h. */ 13057#include <stdlib.h> 13058 void __wrap_exit(int status) { return; } 13059int 13060main () 13061{ 13062exit(0); 13063 ; 13064 return 0; 13065} 13066_ACEOF 13067if ac_fn_c_try_link "$LINENO"; then : 13068 xorg_cv_linker_flags__Wl__wrap_exit=yes 13069else 13070 xorg_cv_linker_flags__Wl__wrap_exit=no 13071fi 13072rm -f core conftest.err conftest.$ac_objext \ 13073 conftest$ac_exeext conftest.$ac_ext 13074 LDFLAGS=$ax_save_FLAGS 13075fi 13076 13077eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__wrap_exit 13078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5 13079$as_echo "$xorg_check_linker_flags" >&6; } 13080if test "x$xorg_check_linker_flags" = xyes; then 13081 have_ld_wrap=yes 13082else 13083 have_ld_wrap=no 13084fi 13085 13086# Not having ld wrap when unit testing has been explicitly requested is an error 13087if test "x$enable_unit_tests" = x"yes" -a "xoptional" != "xoptional"; then 13088 if test "x$have_ld_wrap" = x"no"; then 13089 as_fn_error $? "--enable-unit-tests=yes specified but ld -wrap support is not available" "$LINENO" 5 13090 fi 13091fi 13092 if test "$have_ld_wrap" = yes; then 13093 HAVE_LD_WRAP_TRUE= 13094 HAVE_LD_WRAP_FALSE='#' 13095else 13096 HAVE_LD_WRAP_TRUE='#' 13097 HAVE_LD_WRAP_FALSE= 13098fi 13099 13100# 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115ac_config_headers="$ac_config_headers include/do-not-use-config.h" 13116 13117ac_config_headers="$ac_config_headers include/xorg-server.h" 13118 13119ac_config_headers="$ac_config_headers include/dix-config.h" 13120 13121ac_config_headers="$ac_config_headers include/xorg-config.h" 13122 13123ac_config_headers="$ac_config_headers include/xkb-config.h" 13124 13125ac_config_headers="$ac_config_headers include/xwin-config.h" 13126 13127ac_config_headers="$ac_config_headers include/xwayland-config.h" 13128 13129ac_config_headers="$ac_config_headers include/version-config.h" 13130 13131 13132# By default we simply use the C compiler to build assembly code. 13133 13134test "${CCAS+set}" = set || CCAS=$CC 13135test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 13136 13137 13138 13139depcc="$CCAS" am_compiler_list= 13140 13141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13142$as_echo_n "checking dependency style of $depcc... " >&6; } 13143if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : 13144 $as_echo_n "(cached) " >&6 13145else 13146 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13147 # We make a subdir and do the tests there. Otherwise we can end up 13148 # making bogus files that we don't know about and never remove. For 13149 # instance it was reported that on HP-UX the gcc test will end up 13150 # making a dummy file named 'D' -- because '-MD' means "put the output 13151 # in D". 13152 rm -rf conftest.dir 13153 mkdir conftest.dir 13154 # Copy depcomp to subdir because otherwise we won't find it if we're 13155 # using a relative directory. 13156 cp "$am_depcomp" conftest.dir 13157 cd conftest.dir 13158 # We will build objects and dependencies in a subdirectory because 13159 # it helps to detect inapplicable dependency modes. For instance 13160 # both Tru64's cc and ICC support -MD to output dependencies as a 13161 # side effect of compilation, but ICC will put the dependencies in 13162 # the current directory while Tru64 will put them in the object 13163 # directory. 13164 mkdir sub 13165 13166 am_cv_CCAS_dependencies_compiler_type=none 13167 if test "$am_compiler_list" = ""; then 13168 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13169 fi 13170 am__universal=false 13171 13172 13173 for depmode in $am_compiler_list; do 13174 # Setup a source with many dependencies, because some compilers 13175 # like to wrap large dependency lists on column 80 (with \), and 13176 # we should not choose a depcomp mode which is confused by this. 13177 # 13178 # We need to recreate these files for each test, as the compiler may 13179 # overwrite some of them when testing with obscure command lines. 13180 # This happens at least with the AIX C compiler. 13181 : > sub/conftest.c 13182 for i in 1 2 3 4 5 6; do 13183 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13184 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13185 # Solaris 10 /bin/sh. 13186 echo '/* dummy */' > sub/conftst$i.h 13187 done 13188 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13189 13190 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13191 # mode. It turns out that the SunPro C++ compiler does not properly 13192 # handle '-M -o', and we need to detect this. Also, some Intel 13193 # versions had trouble with output in subdirs. 13194 am__obj=sub/conftest.${OBJEXT-o} 13195 am__minus_obj="-o $am__obj" 13196 case $depmode in 13197 gcc) 13198 # This depmode causes a compiler race in universal mode. 13199 test "$am__universal" = false || continue 13200 ;; 13201 nosideeffect) 13202 # After this tag, mechanisms are not by side-effect, so they'll 13203 # only be used when explicitly requested. 13204 if test "x$enable_dependency_tracking" = xyes; then 13205 continue 13206 else 13207 break 13208 fi 13209 ;; 13210 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13211 # This compiler won't grok '-c -o', but also, the minuso test has 13212 # not run yet. These depmodes are late enough in the game, and 13213 # so weak that their functioning should not be impacted. 13214 am__obj=conftest.${OBJEXT-o} 13215 am__minus_obj= 13216 ;; 13217 none) break ;; 13218 esac 13219 if depmode=$depmode \ 13220 source=sub/conftest.c object=$am__obj \ 13221 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13222 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13223 >/dev/null 2>conftest.err && 13224 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13225 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13226 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13227 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13228 # icc doesn't choke on unknown options, it will just issue warnings 13229 # or remarks (even with -Werror). So we grep stderr for any message 13230 # that says an option was ignored or not supported. 13231 # When given -MP, icc 7.0 and 7.1 complain thusly: 13232 # icc: Command line warning: ignoring option '-M'; no argument required 13233 # The diagnosis changed in icc 8.0: 13234 # icc: Command line remark: option '-MP' not supported 13235 if (grep 'ignoring option' conftest.err || 13236 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13237 am_cv_CCAS_dependencies_compiler_type=$depmode 13238 break 13239 fi 13240 fi 13241 done 13242 13243 cd .. 13244 rm -rf conftest.dir 13245else 13246 am_cv_CCAS_dependencies_compiler_type=none 13247fi 13248 13249fi 13250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 13251$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } 13252CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 13253 13254 if 13255 test "x$enable_dependency_tracking" != xno \ 13256 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 13257 am__fastdepCCAS_TRUE= 13258 am__fastdepCCAS_FALSE='#' 13259else 13260 am__fastdepCCAS_TRUE='#' 13261 am__fastdepCCAS_FALSE= 13262fi 13263 13264 13265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 13266$as_echo_n "checking whether ln -s works... " >&6; } 13267LN_S=$as_ln_s 13268if test "$LN_S" = "ln -s"; then 13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13270$as_echo "yes" >&6; } 13271else 13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 13273$as_echo "no, using $LN_S" >&6; } 13274fi 13275 13276 13277case `pwd` in 13278 *\ * | *\ *) 13279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 13280$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 13281esac 13282 13283 13284 13285macro_version='2.4.6' 13286macro_revision='2.4.6' 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300ltmain=$ac_aux_dir/ltmain.sh 13301 13302# Backslashify metacharacters that are still active within 13303# double-quoted strings. 13304sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 13305 13306# Same as above, but do not quote variable references. 13307double_quote_subst='s/\(["`\\]\)/\\\1/g' 13308 13309# Sed substitution to delay expansion of an escaped shell variable in a 13310# double_quote_subst'ed string. 13311delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 13312 13313# Sed substitution to delay expansion of an escaped single quote. 13314delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 13315 13316# Sed substitution to avoid accidental globbing in evaled expressions 13317no_glob_subst='s/\*/\\\*/g' 13318 13319ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13320ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 13321ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 13322 13323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 13324$as_echo_n "checking how to print strings... " >&6; } 13325# Test print first, because it will be a builtin if present. 13326if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 13327 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 13328 ECHO='print -r --' 13329elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 13330 ECHO='printf %s\n' 13331else 13332 # Use this function as a fallback that always works. 13333 func_fallback_echo () 13334 { 13335 eval 'cat <<_LTECHO_EOF 13336$1 13337_LTECHO_EOF' 13338 } 13339 ECHO='func_fallback_echo' 13340fi 13341 13342# func_echo_all arg... 13343# Invoke $ECHO with all args, space-separated. 13344func_echo_all () 13345{ 13346 $ECHO "" 13347} 13348 13349case $ECHO in 13350 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 13351$as_echo "printf" >&6; } ;; 13352 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 13353$as_echo "print -r" >&6; } ;; 13354 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 13355$as_echo "cat" >&6; } ;; 13356esac 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 13372$as_echo_n "checking for a sed that does not truncate output... " >&6; } 13373if ${ac_cv_path_SED+:} false; then : 13374 $as_echo_n "(cached) " >&6 13375else 13376 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 13377 for ac_i in 1 2 3 4 5 6 7; do 13378 ac_script="$ac_script$as_nl$ac_script" 13379 done 13380 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 13381 { ac_script=; unset ac_script;} 13382 if test -z "$SED"; then 13383 ac_path_SED_found=false 13384 # Loop through the user's path and test for each of PROGNAME-LIST 13385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13386for as_dir in $PATH 13387do 13388 IFS=$as_save_IFS 13389 test -z "$as_dir" && as_dir=. 13390 for ac_prog in sed gsed; do 13391 for ac_exec_ext in '' $ac_executable_extensions; do 13392 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 13393 as_fn_executable_p "$ac_path_SED" || continue 13394# Check for GNU ac_path_SED and select it if it is found. 13395 # Check for GNU $ac_path_SED 13396case `"$ac_path_SED" --version 2>&1` in 13397*GNU*) 13398 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 13399*) 13400 ac_count=0 13401 $as_echo_n 0123456789 >"conftest.in" 13402 while : 13403 do 13404 cat "conftest.in" "conftest.in" >"conftest.tmp" 13405 mv "conftest.tmp" "conftest.in" 13406 cp "conftest.in" "conftest.nl" 13407 $as_echo '' >> "conftest.nl" 13408 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 13409 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13410 as_fn_arith $ac_count + 1 && ac_count=$as_val 13411 if test $ac_count -gt ${ac_path_SED_max-0}; then 13412 # Best one so far, save it but keep looking for a better one 13413 ac_cv_path_SED="$ac_path_SED" 13414 ac_path_SED_max=$ac_count 13415 fi 13416 # 10*(2^10) chars as input seems more than enough 13417 test $ac_count -gt 10 && break 13418 done 13419 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13420esac 13421 13422 $ac_path_SED_found && break 3 13423 done 13424 done 13425 done 13426IFS=$as_save_IFS 13427 if test -z "$ac_cv_path_SED"; then 13428 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 13429 fi 13430else 13431 ac_cv_path_SED=$SED 13432fi 13433 13434fi 13435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 13436$as_echo "$ac_cv_path_SED" >&6; } 13437 SED="$ac_cv_path_SED" 13438 rm -f conftest.sed 13439 13440test -z "$SED" && SED=sed 13441Xsed="$SED -e 1s/^X//" 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13454$as_echo_n "checking for fgrep... " >&6; } 13455if ${ac_cv_path_FGREP+:} false; then : 13456 $as_echo_n "(cached) " >&6 13457else 13458 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13459 then ac_cv_path_FGREP="$GREP -F" 13460 else 13461 if test -z "$FGREP"; then 13462 ac_path_FGREP_found=false 13463 # Loop through the user's path and test for each of PROGNAME-LIST 13464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13465for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13466do 13467 IFS=$as_save_IFS 13468 test -z "$as_dir" && as_dir=. 13469 for ac_prog in fgrep; do 13470 for ac_exec_ext in '' $ac_executable_extensions; do 13471 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13472 as_fn_executable_p "$ac_path_FGREP" || continue 13473# Check for GNU ac_path_FGREP and select it if it is found. 13474 # Check for GNU $ac_path_FGREP 13475case `"$ac_path_FGREP" --version 2>&1` in 13476*GNU*) 13477 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13478*) 13479 ac_count=0 13480 $as_echo_n 0123456789 >"conftest.in" 13481 while : 13482 do 13483 cat "conftest.in" "conftest.in" >"conftest.tmp" 13484 mv "conftest.tmp" "conftest.in" 13485 cp "conftest.in" "conftest.nl" 13486 $as_echo 'FGREP' >> "conftest.nl" 13487 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13488 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13489 as_fn_arith $ac_count + 1 && ac_count=$as_val 13490 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13491 # Best one so far, save it but keep looking for a better one 13492 ac_cv_path_FGREP="$ac_path_FGREP" 13493 ac_path_FGREP_max=$ac_count 13494 fi 13495 # 10*(2^10) chars as input seems more than enough 13496 test $ac_count -gt 10 && break 13497 done 13498 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13499esac 13500 13501 $ac_path_FGREP_found && break 3 13502 done 13503 done 13504 done 13505IFS=$as_save_IFS 13506 if test -z "$ac_cv_path_FGREP"; then 13507 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13508 fi 13509else 13510 ac_cv_path_FGREP=$FGREP 13511fi 13512 13513 fi 13514fi 13515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13516$as_echo "$ac_cv_path_FGREP" >&6; } 13517 FGREP="$ac_cv_path_FGREP" 13518 13519 13520test -z "$GREP" && GREP=grep 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540# Check whether --with-gnu-ld was given. 13541if test "${with_gnu_ld+set}" = set; then : 13542 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13543else 13544 with_gnu_ld=no 13545fi 13546 13547ac_prog=ld 13548if test yes = "$GCC"; then 13549 # Check if gcc -print-prog-name=ld gives a path. 13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13551$as_echo_n "checking for ld used by $CC... " >&6; } 13552 case $host in 13553 *-*-mingw*) 13554 # gcc leaves a trailing carriage return, which upsets mingw 13555 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13556 *) 13557 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13558 esac 13559 case $ac_prog in 13560 # Accept absolute paths. 13561 [\\/]* | ?:[\\/]*) 13562 re_direlt='/[^/][^/]*/\.\./' 13563 # Canonicalize the pathname of ld 13564 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13565 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13566 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13567 done 13568 test -z "$LD" && LD=$ac_prog 13569 ;; 13570 "") 13571 # If it fails, then pretend we aren't using GCC. 13572 ac_prog=ld 13573 ;; 13574 *) 13575 # If it is relative, then search for the first ld in PATH. 13576 with_gnu_ld=unknown 13577 ;; 13578 esac 13579elif test yes = "$with_gnu_ld"; then 13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13581$as_echo_n "checking for GNU ld... " >&6; } 13582else 13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13584$as_echo_n "checking for non-GNU ld... " >&6; } 13585fi 13586if ${lt_cv_path_LD+:} false; then : 13587 $as_echo_n "(cached) " >&6 13588else 13589 if test -z "$LD"; then 13590 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13591 for ac_dir in $PATH; do 13592 IFS=$lt_save_ifs 13593 test -z "$ac_dir" && ac_dir=. 13594 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13595 lt_cv_path_LD=$ac_dir/$ac_prog 13596 # Check to see if the program is GNU ld. I'd rather use --version, 13597 # but apparently some variants of GNU ld only accept -v. 13598 # Break only if it was the GNU/non-GNU ld that we prefer. 13599 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13600 *GNU* | *'with BFD'*) 13601 test no != "$with_gnu_ld" && break 13602 ;; 13603 *) 13604 test yes != "$with_gnu_ld" && break 13605 ;; 13606 esac 13607 fi 13608 done 13609 IFS=$lt_save_ifs 13610else 13611 lt_cv_path_LD=$LD # Let the user override the test with a path. 13612fi 13613fi 13614 13615LD=$lt_cv_path_LD 13616if test -n "$LD"; then 13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13618$as_echo "$LD" >&6; } 13619else 13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13621$as_echo "no" >&6; } 13622fi 13623test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13625$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13626if ${lt_cv_prog_gnu_ld+:} false; then : 13627 $as_echo_n "(cached) " >&6 13628else 13629 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13630case `$LD -v 2>&1 </dev/null` in 13631*GNU* | *'with BFD'*) 13632 lt_cv_prog_gnu_ld=yes 13633 ;; 13634*) 13635 lt_cv_prog_gnu_ld=no 13636 ;; 13637esac 13638fi 13639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13640$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13641with_gnu_ld=$lt_cv_prog_gnu_ld 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 13652$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 13653if ${lt_cv_path_NM+:} false; then : 13654 $as_echo_n "(cached) " >&6 13655else 13656 if test -n "$NM"; then 13657 # Let the user override the test. 13658 lt_cv_path_NM=$NM 13659else 13660 lt_nm_to_check=${ac_tool_prefix}nm 13661 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 13662 lt_nm_to_check="$lt_nm_to_check nm" 13663 fi 13664 for lt_tmp_nm in $lt_nm_to_check; do 13665 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13666 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 13667 IFS=$lt_save_ifs 13668 test -z "$ac_dir" && ac_dir=. 13669 tmp_nm=$ac_dir/$lt_tmp_nm 13670 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 13671 # Check to see if the nm accepts a BSD-compat flag. 13672 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 13673 # nm: unknown option "B" ignored 13674 # Tru64's nm complains that /dev/null is an invalid object file 13675 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 13676 case $build_os in 13677 mingw*) lt_bad_file=conftest.nm/nofile ;; 13678 *) lt_bad_file=/dev/null ;; 13679 esac 13680 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 13681 *$lt_bad_file* | *'Invalid file or object type'*) 13682 lt_cv_path_NM="$tmp_nm -B" 13683 break 2 13684 ;; 13685 *) 13686 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 13687 */dev/null*) 13688 lt_cv_path_NM="$tmp_nm -p" 13689 break 2 13690 ;; 13691 *) 13692 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 13693 continue # so that we can try to find one that supports BSD flags 13694 ;; 13695 esac 13696 ;; 13697 esac 13698 fi 13699 done 13700 IFS=$lt_save_ifs 13701 done 13702 : ${lt_cv_path_NM=no} 13703fi 13704fi 13705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 13706$as_echo "$lt_cv_path_NM" >&6; } 13707if test no != "$lt_cv_path_NM"; then 13708 NM=$lt_cv_path_NM 13709else 13710 # Didn't find any BSD compatible name lister, look for dumpbin. 13711 if test -n "$DUMPBIN"; then : 13712 # Let the user override the test. 13713 else 13714 if test -n "$ac_tool_prefix"; then 13715 for ac_prog in dumpbin "link -dump" 13716 do 13717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13718set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13720$as_echo_n "checking for $ac_word... " >&6; } 13721if ${ac_cv_prog_DUMPBIN+:} false; then : 13722 $as_echo_n "(cached) " >&6 13723else 13724 if test -n "$DUMPBIN"; then 13725 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 13726else 13727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13728for as_dir in $PATH 13729do 13730 IFS=$as_save_IFS 13731 test -z "$as_dir" && as_dir=. 13732 for ac_exec_ext in '' $ac_executable_extensions; do 13733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13734 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 13735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13736 break 2 13737 fi 13738done 13739 done 13740IFS=$as_save_IFS 13741 13742fi 13743fi 13744DUMPBIN=$ac_cv_prog_DUMPBIN 13745if test -n "$DUMPBIN"; then 13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 13747$as_echo "$DUMPBIN" >&6; } 13748else 13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13750$as_echo "no" >&6; } 13751fi 13752 13753 13754 test -n "$DUMPBIN" && break 13755 done 13756fi 13757if test -z "$DUMPBIN"; then 13758 ac_ct_DUMPBIN=$DUMPBIN 13759 for ac_prog in dumpbin "link -dump" 13760do 13761 # Extract the first word of "$ac_prog", so it can be a program name with args. 13762set dummy $ac_prog; ac_word=$2 13763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13764$as_echo_n "checking for $ac_word... " >&6; } 13765if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 13766 $as_echo_n "(cached) " >&6 13767else 13768 if test -n "$ac_ct_DUMPBIN"; then 13769 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 13770else 13771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13772for as_dir in $PATH 13773do 13774 IFS=$as_save_IFS 13775 test -z "$as_dir" && as_dir=. 13776 for ac_exec_ext in '' $ac_executable_extensions; do 13777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13778 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 13779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13780 break 2 13781 fi 13782done 13783 done 13784IFS=$as_save_IFS 13785 13786fi 13787fi 13788ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 13789if test -n "$ac_ct_DUMPBIN"; then 13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 13791$as_echo "$ac_ct_DUMPBIN" >&6; } 13792else 13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13794$as_echo "no" >&6; } 13795fi 13796 13797 13798 test -n "$ac_ct_DUMPBIN" && break 13799done 13800 13801 if test "x$ac_ct_DUMPBIN" = x; then 13802 DUMPBIN=":" 13803 else 13804 case $cross_compiling:$ac_tool_warned in 13805yes:) 13806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13808ac_tool_warned=yes ;; 13809esac 13810 DUMPBIN=$ac_ct_DUMPBIN 13811 fi 13812fi 13813 13814 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 13815 *COFF*) 13816 DUMPBIN="$DUMPBIN -symbols -headers" 13817 ;; 13818 *) 13819 DUMPBIN=: 13820 ;; 13821 esac 13822 fi 13823 13824 if test : != "$DUMPBIN"; then 13825 NM=$DUMPBIN 13826 fi 13827fi 13828test -z "$NM" && NM=nm 13829 13830 13831 13832 13833 13834 13835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 13836$as_echo_n "checking the name lister ($NM) interface... " >&6; } 13837if ${lt_cv_nm_interface+:} false; then : 13838 $as_echo_n "(cached) " >&6 13839else 13840 lt_cv_nm_interface="BSD nm" 13841 echo "int some_variable = 0;" > conftest.$ac_ext 13842 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 13843 (eval "$ac_compile" 2>conftest.err) 13844 cat conftest.err >&5 13845 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 13846 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 13847 cat conftest.err >&5 13848 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 13849 cat conftest.out >&5 13850 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 13851 lt_cv_nm_interface="MS dumpbin" 13852 fi 13853 rm -f conftest* 13854fi 13855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 13856$as_echo "$lt_cv_nm_interface" >&6; } 13857 13858# find the maximum length of command line arguments 13859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 13860$as_echo_n "checking the maximum length of command line arguments... " >&6; } 13861if ${lt_cv_sys_max_cmd_len+:} false; then : 13862 $as_echo_n "(cached) " >&6 13863else 13864 i=0 13865 teststring=ABCD 13866 13867 case $build_os in 13868 msdosdjgpp*) 13869 # On DJGPP, this test can blow up pretty badly due to problems in libc 13870 # (any single argument exceeding 2000 bytes causes a buffer overrun 13871 # during glob expansion). Even if it were fixed, the result of this 13872 # check would be larger than it should be. 13873 lt_cv_sys_max_cmd_len=12288; # 12K is about right 13874 ;; 13875 13876 gnu*) 13877 # Under GNU Hurd, this test is not required because there is 13878 # no limit to the length of command line arguments. 13879 # Libtool will interpret -1 as no limit whatsoever 13880 lt_cv_sys_max_cmd_len=-1; 13881 ;; 13882 13883 cygwin* | mingw* | cegcc*) 13884 # On Win9x/ME, this test blows up -- it succeeds, but takes 13885 # about 5 minutes as the teststring grows exponentially. 13886 # Worse, since 9x/ME are not pre-emptively multitasking, 13887 # you end up with a "frozen" computer, even though with patience 13888 # the test eventually succeeds (with a max line length of 256k). 13889 # Instead, let's just punt: use the minimum linelength reported by 13890 # all of the supported platforms: 8192 (on NT/2K/XP). 13891 lt_cv_sys_max_cmd_len=8192; 13892 ;; 13893 13894 mint*) 13895 # On MiNT this can take a long time and run out of memory. 13896 lt_cv_sys_max_cmd_len=8192; 13897 ;; 13898 13899 amigaos*) 13900 # On AmigaOS with pdksh, this test takes hours, literally. 13901 # So we just punt and use a minimum line length of 8192. 13902 lt_cv_sys_max_cmd_len=8192; 13903 ;; 13904 13905 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 13906 # This has been around since 386BSD, at least. Likely further. 13907 if test -x /sbin/sysctl; then 13908 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 13909 elif test -x /usr/sbin/sysctl; then 13910 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 13911 else 13912 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 13913 fi 13914 # And add a safety zone 13915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 13916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 13917 ;; 13918 13919 interix*) 13920 # We know the value 262144 and hardcode it with a safety zone (like BSD) 13921 lt_cv_sys_max_cmd_len=196608 13922 ;; 13923 13924 os2*) 13925 # The test takes a long time on OS/2. 13926 lt_cv_sys_max_cmd_len=8192 13927 ;; 13928 13929 osf*) 13930 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 13931 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 13932 # nice to cause kernel panics so lets avoid the loop below. 13933 # First set a reasonable default. 13934 lt_cv_sys_max_cmd_len=16384 13935 # 13936 if test -x /sbin/sysconfig; then 13937 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 13938 *1*) lt_cv_sys_max_cmd_len=-1 ;; 13939 esac 13940 fi 13941 ;; 13942 sco3.2v5*) 13943 lt_cv_sys_max_cmd_len=102400 13944 ;; 13945 sysv5* | sco5v6* | sysv4.2uw2*) 13946 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 13947 if test -n "$kargmax"; then 13948 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 13949 else 13950 lt_cv_sys_max_cmd_len=32768 13951 fi 13952 ;; 13953 *) 13954 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 13955 if test -n "$lt_cv_sys_max_cmd_len" && \ 13956 test undefined != "$lt_cv_sys_max_cmd_len"; then 13957 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 13958 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 13959 else 13960 # Make teststring a little bigger before we do anything with it. 13961 # a 1K string should be a reasonable start. 13962 for i in 1 2 3 4 5 6 7 8; do 13963 teststring=$teststring$teststring 13964 done 13965 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 13966 # If test is not a shell built-in, we'll probably end up computing a 13967 # maximum length that is only half of the actual maximum length, but 13968 # we can't tell. 13969 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 13970 = "X$teststring$teststring"; } >/dev/null 2>&1 && 13971 test 17 != "$i" # 1/2 MB should be enough 13972 do 13973 i=`expr $i + 1` 13974 teststring=$teststring$teststring 13975 done 13976 # Only check the string length outside the loop. 13977 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 13978 teststring= 13979 # Add a significant safety factor because C++ compilers can tack on 13980 # massive amounts of additional arguments before passing them to the 13981 # linker. It appears as though 1/2 is a usable value. 13982 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 13983 fi 13984 ;; 13985 esac 13986 13987fi 13988 13989if test -n "$lt_cv_sys_max_cmd_len"; then 13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 13991$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 13992else 13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 13994$as_echo "none" >&6; } 13995fi 13996max_cmd_len=$lt_cv_sys_max_cmd_len 13997 13998 13999 14000 14001 14002 14003: ${CP="cp -f"} 14004: ${MV="mv -f"} 14005: ${RM="rm -f"} 14006 14007if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 14008 lt_unset=unset 14009else 14010 lt_unset=false 14011fi 14012 14013 14014 14015 14016 14017# test EBCDIC or ASCII 14018case `echo X|tr X '\101'` in 14019 A) # ASCII based system 14020 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 14021 lt_SP2NL='tr \040 \012' 14022 lt_NL2SP='tr \015\012 \040\040' 14023 ;; 14024 *) # EBCDIC based system 14025 lt_SP2NL='tr \100 \n' 14026 lt_NL2SP='tr \r\n \100\100' 14027 ;; 14028esac 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 14039$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 14040if ${lt_cv_to_host_file_cmd+:} false; then : 14041 $as_echo_n "(cached) " >&6 14042else 14043 case $host in 14044 *-*-mingw* ) 14045 case $build in 14046 *-*-mingw* ) # actually msys 14047 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 14048 ;; 14049 *-*-cygwin* ) 14050 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 14051 ;; 14052 * ) # otherwise, assume *nix 14053 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 14054 ;; 14055 esac 14056 ;; 14057 *-*-cygwin* ) 14058 case $build in 14059 *-*-mingw* ) # actually msys 14060 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 14061 ;; 14062 *-*-cygwin* ) 14063 lt_cv_to_host_file_cmd=func_convert_file_noop 14064 ;; 14065 * ) # otherwise, assume *nix 14066 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 14067 ;; 14068 esac 14069 ;; 14070 * ) # unhandled hosts (and "normal" native builds) 14071 lt_cv_to_host_file_cmd=func_convert_file_noop 14072 ;; 14073esac 14074 14075fi 14076 14077to_host_file_cmd=$lt_cv_to_host_file_cmd 14078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 14079$as_echo "$lt_cv_to_host_file_cmd" >&6; } 14080 14081 14082 14083 14084 14085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 14086$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 14087if ${lt_cv_to_tool_file_cmd+:} false; then : 14088 $as_echo_n "(cached) " >&6 14089else 14090 #assume ordinary cross tools, or native build. 14091lt_cv_to_tool_file_cmd=func_convert_file_noop 14092case $host in 14093 *-*-mingw* ) 14094 case $build in 14095 *-*-mingw* ) # actually msys 14096 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 14097 ;; 14098 esac 14099 ;; 14100esac 14101 14102fi 14103 14104to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 14106$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 14107 14108 14109 14110 14111 14112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 14113$as_echo_n "checking for $LD option to reload object files... " >&6; } 14114if ${lt_cv_ld_reload_flag+:} false; then : 14115 $as_echo_n "(cached) " >&6 14116else 14117 lt_cv_ld_reload_flag='-r' 14118fi 14119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 14120$as_echo "$lt_cv_ld_reload_flag" >&6; } 14121reload_flag=$lt_cv_ld_reload_flag 14122case $reload_flag in 14123"" | " "*) ;; 14124*) reload_flag=" $reload_flag" ;; 14125esac 14126reload_cmds='$LD$reload_flag -o $output$reload_objs' 14127case $host_os in 14128 cygwin* | mingw* | pw32* | cegcc*) 14129 if test yes != "$GCC"; then 14130 reload_cmds=false 14131 fi 14132 ;; 14133 darwin*) 14134 if test yes = "$GCC"; then 14135 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 14136 else 14137 reload_cmds='$LD$reload_flag -o $output$reload_objs' 14138 fi 14139 ;; 14140esac 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150if test -n "$ac_tool_prefix"; then 14151 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 14152set dummy ${ac_tool_prefix}objdump; ac_word=$2 14153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14154$as_echo_n "checking for $ac_word... " >&6; } 14155if ${ac_cv_prog_OBJDUMP+:} false; then : 14156 $as_echo_n "(cached) " >&6 14157else 14158 if test -n "$OBJDUMP"; then 14159 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 14160else 14161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14162for as_dir in $PATH 14163do 14164 IFS=$as_save_IFS 14165 test -z "$as_dir" && as_dir=. 14166 for ac_exec_ext in '' $ac_executable_extensions; do 14167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14168 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 14169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14170 break 2 14171 fi 14172done 14173 done 14174IFS=$as_save_IFS 14175 14176fi 14177fi 14178OBJDUMP=$ac_cv_prog_OBJDUMP 14179if test -n "$OBJDUMP"; then 14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 14181$as_echo "$OBJDUMP" >&6; } 14182else 14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14184$as_echo "no" >&6; } 14185fi 14186 14187 14188fi 14189if test -z "$ac_cv_prog_OBJDUMP"; then 14190 ac_ct_OBJDUMP=$OBJDUMP 14191 # Extract the first word of "objdump", so it can be a program name with args. 14192set dummy objdump; ac_word=$2 14193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14194$as_echo_n "checking for $ac_word... " >&6; } 14195if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 14196 $as_echo_n "(cached) " >&6 14197else 14198 if test -n "$ac_ct_OBJDUMP"; then 14199 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 14200else 14201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14202for as_dir in $PATH 14203do 14204 IFS=$as_save_IFS 14205 test -z "$as_dir" && as_dir=. 14206 for ac_exec_ext in '' $ac_executable_extensions; do 14207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14208 ac_cv_prog_ac_ct_OBJDUMP="objdump" 14209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14210 break 2 14211 fi 14212done 14213 done 14214IFS=$as_save_IFS 14215 14216fi 14217fi 14218ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 14219if test -n "$ac_ct_OBJDUMP"; then 14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 14221$as_echo "$ac_ct_OBJDUMP" >&6; } 14222else 14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14224$as_echo "no" >&6; } 14225fi 14226 14227 if test "x$ac_ct_OBJDUMP" = x; then 14228 OBJDUMP="false" 14229 else 14230 case $cross_compiling:$ac_tool_warned in 14231yes:) 14232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14234ac_tool_warned=yes ;; 14235esac 14236 OBJDUMP=$ac_ct_OBJDUMP 14237 fi 14238else 14239 OBJDUMP="$ac_cv_prog_OBJDUMP" 14240fi 14241 14242test -z "$OBJDUMP" && OBJDUMP=objdump 14243 14244 14245 14246 14247 14248 14249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 14250$as_echo_n "checking how to recognize dependent libraries... " >&6; } 14251if ${lt_cv_deplibs_check_method+:} false; then : 14252 $as_echo_n "(cached) " >&6 14253else 14254 lt_cv_file_magic_cmd='$MAGIC_CMD' 14255lt_cv_file_magic_test_file= 14256lt_cv_deplibs_check_method='unknown' 14257# Need to set the preceding variable on all platforms that support 14258# interlibrary dependencies. 14259# 'none' -- dependencies not supported. 14260# 'unknown' -- same as none, but documents that we really don't know. 14261# 'pass_all' -- all dependencies passed with no checks. 14262# 'test_compile' -- check by making test program. 14263# 'file_magic [[regex]]' -- check by looking for files in library path 14264# that responds to the $file_magic_cmd with a given extended regex. 14265# If you have 'file' or equivalent on your system and you're not sure 14266# whether 'pass_all' will *always* work, you probably want this one. 14267 14268case $host_os in 14269aix[4-9]*) 14270 lt_cv_deplibs_check_method=pass_all 14271 ;; 14272 14273beos*) 14274 lt_cv_deplibs_check_method=pass_all 14275 ;; 14276 14277bsdi[45]*) 14278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 14279 lt_cv_file_magic_cmd='/usr/bin/file -L' 14280 lt_cv_file_magic_test_file=/shlib/libc.so 14281 ;; 14282 14283cygwin*) 14284 # func_win32_libid is a shell function defined in ltmain.sh 14285 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 14286 lt_cv_file_magic_cmd='func_win32_libid' 14287 ;; 14288 14289mingw* | pw32*) 14290 # Base MSYS/MinGW do not provide the 'file' command needed by 14291 # func_win32_libid shell function, so use a weaker test based on 'objdump', 14292 # unless we find 'file', for example because we are cross-compiling. 14293 if ( file / ) >/dev/null 2>&1; then 14294 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 14295 lt_cv_file_magic_cmd='func_win32_libid' 14296 else 14297 # Keep this pattern in sync with the one in func_win32_libid. 14298 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 14299 lt_cv_file_magic_cmd='$OBJDUMP -f' 14300 fi 14301 ;; 14302 14303cegcc*) 14304 # use the weaker test based on 'objdump'. See mingw*. 14305 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 14306 lt_cv_file_magic_cmd='$OBJDUMP -f' 14307 ;; 14308 14309darwin* | rhapsody*) 14310 lt_cv_deplibs_check_method=pass_all 14311 ;; 14312 14313freebsd* | dragonfly*) 14314 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 14315 case $host_cpu in 14316 i*86 ) 14317 # Not sure whether the presence of OpenBSD here was a mistake. 14318 # Let's accept both of them until this is cleared up. 14319 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 14320 lt_cv_file_magic_cmd=/usr/bin/file 14321 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 14322 ;; 14323 esac 14324 else 14325 lt_cv_deplibs_check_method=pass_all 14326 fi 14327 ;; 14328 14329haiku*) 14330 lt_cv_deplibs_check_method=pass_all 14331 ;; 14332 14333hpux10.20* | hpux11*) 14334 lt_cv_file_magic_cmd=/usr/bin/file 14335 case $host_cpu in 14336 ia64*) 14337 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 14338 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 14339 ;; 14340 hppa*64*) 14341 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]' 14342 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 14343 ;; 14344 *) 14345 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 14346 lt_cv_file_magic_test_file=/usr/lib/libc.sl 14347 ;; 14348 esac 14349 ;; 14350 14351interix[3-9]*) 14352 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 14353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 14354 ;; 14355 14356irix5* | irix6* | nonstopux*) 14357 case $LD in 14358 *-32|*"-32 ") libmagic=32-bit;; 14359 *-n32|*"-n32 ") libmagic=N32;; 14360 *-64|*"-64 ") libmagic=64-bit;; 14361 *) libmagic=never-match;; 14362 esac 14363 lt_cv_deplibs_check_method=pass_all 14364 ;; 14365 14366# This must be glibc/ELF. 14367linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14368 lt_cv_deplibs_check_method=pass_all 14369 ;; 14370 14371netbsd*) 14372 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 14373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 14374 else 14375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 14376 fi 14377 ;; 14378 14379newos6*) 14380 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 14381 lt_cv_file_magic_cmd=/usr/bin/file 14382 lt_cv_file_magic_test_file=/usr/lib/libnls.so 14383 ;; 14384 14385*nto* | *qnx*) 14386 lt_cv_deplibs_check_method=pass_all 14387 ;; 14388 14389openbsd* | bitrig*) 14390 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 14392 else 14393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 14394 fi 14395 ;; 14396 14397osf3* | osf4* | osf5*) 14398 lt_cv_deplibs_check_method=pass_all 14399 ;; 14400 14401rdos*) 14402 lt_cv_deplibs_check_method=pass_all 14403 ;; 14404 14405solaris*) 14406 lt_cv_deplibs_check_method=pass_all 14407 ;; 14408 14409sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14410 lt_cv_deplibs_check_method=pass_all 14411 ;; 14412 14413sysv4 | sysv4.3*) 14414 case $host_vendor in 14415 motorola) 14416 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]' 14417 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 14418 ;; 14419 ncr) 14420 lt_cv_deplibs_check_method=pass_all 14421 ;; 14422 sequent) 14423 lt_cv_file_magic_cmd='/bin/file' 14424 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 14425 ;; 14426 sni) 14427 lt_cv_file_magic_cmd='/bin/file' 14428 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 14429 lt_cv_file_magic_test_file=/lib/libc.so 14430 ;; 14431 siemens) 14432 lt_cv_deplibs_check_method=pass_all 14433 ;; 14434 pc) 14435 lt_cv_deplibs_check_method=pass_all 14436 ;; 14437 esac 14438 ;; 14439 14440tpf*) 14441 lt_cv_deplibs_check_method=pass_all 14442 ;; 14443os2*) 14444 lt_cv_deplibs_check_method=pass_all 14445 ;; 14446esac 14447 14448fi 14449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 14450$as_echo "$lt_cv_deplibs_check_method" >&6; } 14451 14452file_magic_glob= 14453want_nocaseglob=no 14454if test "$build" = "$host"; then 14455 case $host_os in 14456 mingw* | pw32*) 14457 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 14458 want_nocaseglob=yes 14459 else 14460 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 14461 fi 14462 ;; 14463 esac 14464fi 14465 14466file_magic_cmd=$lt_cv_file_magic_cmd 14467deplibs_check_method=$lt_cv_deplibs_check_method 14468test -z "$deplibs_check_method" && deplibs_check_method=unknown 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491if test -n "$ac_tool_prefix"; then 14492 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 14493set dummy ${ac_tool_prefix}dlltool; ac_word=$2 14494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14495$as_echo_n "checking for $ac_word... " >&6; } 14496if ${ac_cv_prog_DLLTOOL+:} false; then : 14497 $as_echo_n "(cached) " >&6 14498else 14499 if test -n "$DLLTOOL"; then 14500 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 14501else 14502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14503for as_dir in $PATH 14504do 14505 IFS=$as_save_IFS 14506 test -z "$as_dir" && as_dir=. 14507 for ac_exec_ext in '' $ac_executable_extensions; do 14508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14509 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 14510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14511 break 2 14512 fi 14513done 14514 done 14515IFS=$as_save_IFS 14516 14517fi 14518fi 14519DLLTOOL=$ac_cv_prog_DLLTOOL 14520if test -n "$DLLTOOL"; then 14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 14522$as_echo "$DLLTOOL" >&6; } 14523else 14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14525$as_echo "no" >&6; } 14526fi 14527 14528 14529fi 14530if test -z "$ac_cv_prog_DLLTOOL"; then 14531 ac_ct_DLLTOOL=$DLLTOOL 14532 # Extract the first word of "dlltool", so it can be a program name with args. 14533set dummy dlltool; ac_word=$2 14534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14535$as_echo_n "checking for $ac_word... " >&6; } 14536if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 14537 $as_echo_n "(cached) " >&6 14538else 14539 if test -n "$ac_ct_DLLTOOL"; then 14540 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 14541else 14542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14543for as_dir in $PATH 14544do 14545 IFS=$as_save_IFS 14546 test -z "$as_dir" && as_dir=. 14547 for ac_exec_ext in '' $ac_executable_extensions; do 14548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14549 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 14550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14551 break 2 14552 fi 14553done 14554 done 14555IFS=$as_save_IFS 14556 14557fi 14558fi 14559ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 14560if test -n "$ac_ct_DLLTOOL"; then 14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 14562$as_echo "$ac_ct_DLLTOOL" >&6; } 14563else 14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14565$as_echo "no" >&6; } 14566fi 14567 14568 if test "x$ac_ct_DLLTOOL" = x; then 14569 DLLTOOL="false" 14570 else 14571 case $cross_compiling:$ac_tool_warned in 14572yes:) 14573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14575ac_tool_warned=yes ;; 14576esac 14577 DLLTOOL=$ac_ct_DLLTOOL 14578 fi 14579else 14580 DLLTOOL="$ac_cv_prog_DLLTOOL" 14581fi 14582 14583test -z "$DLLTOOL" && DLLTOOL=dlltool 14584 14585 14586 14587 14588 14589 14590 14591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 14592$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 14593if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 14594 $as_echo_n "(cached) " >&6 14595else 14596 lt_cv_sharedlib_from_linklib_cmd='unknown' 14597 14598case $host_os in 14599cygwin* | mingw* | pw32* | cegcc*) 14600 # two different shell functions defined in ltmain.sh; 14601 # decide which one to use based on capabilities of $DLLTOOL 14602 case `$DLLTOOL --help 2>&1` in 14603 *--identify-strict*) 14604 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 14605 ;; 14606 *) 14607 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 14608 ;; 14609 esac 14610 ;; 14611*) 14612 # fallback: assume linklib IS sharedlib 14613 lt_cv_sharedlib_from_linklib_cmd=$ECHO 14614 ;; 14615esac 14616 14617fi 14618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 14619$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 14620sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 14621test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 14622 14623 14624 14625 14626 14627 14628 14629if test -n "$ac_tool_prefix"; then 14630 for ac_prog in ar 14631 do 14632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 14633set dummy $ac_tool_prefix$ac_prog; ac_word=$2 14634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14635$as_echo_n "checking for $ac_word... " >&6; } 14636if ${ac_cv_prog_AR+:} false; then : 14637 $as_echo_n "(cached) " >&6 14638else 14639 if test -n "$AR"; then 14640 ac_cv_prog_AR="$AR" # Let the user override the test. 14641else 14642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14643for as_dir in $PATH 14644do 14645 IFS=$as_save_IFS 14646 test -z "$as_dir" && as_dir=. 14647 for ac_exec_ext in '' $ac_executable_extensions; do 14648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14649 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 14650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14651 break 2 14652 fi 14653done 14654 done 14655IFS=$as_save_IFS 14656 14657fi 14658fi 14659AR=$ac_cv_prog_AR 14660if test -n "$AR"; then 14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 14662$as_echo "$AR" >&6; } 14663else 14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14665$as_echo "no" >&6; } 14666fi 14667 14668 14669 test -n "$AR" && break 14670 done 14671fi 14672if test -z "$AR"; then 14673 ac_ct_AR=$AR 14674 for ac_prog in ar 14675do 14676 # Extract the first word of "$ac_prog", so it can be a program name with args. 14677set dummy $ac_prog; ac_word=$2 14678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14679$as_echo_n "checking for $ac_word... " >&6; } 14680if ${ac_cv_prog_ac_ct_AR+:} false; then : 14681 $as_echo_n "(cached) " >&6 14682else 14683 if test -n "$ac_ct_AR"; then 14684 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 14685else 14686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14687for as_dir in $PATH 14688do 14689 IFS=$as_save_IFS 14690 test -z "$as_dir" && as_dir=. 14691 for ac_exec_ext in '' $ac_executable_extensions; do 14692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14693 ac_cv_prog_ac_ct_AR="$ac_prog" 14694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14695 break 2 14696 fi 14697done 14698 done 14699IFS=$as_save_IFS 14700 14701fi 14702fi 14703ac_ct_AR=$ac_cv_prog_ac_ct_AR 14704if test -n "$ac_ct_AR"; then 14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 14706$as_echo "$ac_ct_AR" >&6; } 14707else 14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14709$as_echo "no" >&6; } 14710fi 14711 14712 14713 test -n "$ac_ct_AR" && break 14714done 14715 14716 if test "x$ac_ct_AR" = x; then 14717 AR="false" 14718 else 14719 case $cross_compiling:$ac_tool_warned in 14720yes:) 14721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14723ac_tool_warned=yes ;; 14724esac 14725 AR=$ac_ct_AR 14726 fi 14727fi 14728 14729: ${AR=ar} 14730: ${AR_FLAGS=cru} 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 14743$as_echo_n "checking for archiver @FILE support... " >&6; } 14744if ${lt_cv_ar_at_file+:} false; then : 14745 $as_echo_n "(cached) " >&6 14746else 14747 lt_cv_ar_at_file=no 14748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14749/* end confdefs.h. */ 14750 14751int 14752main () 14753{ 14754 14755 ; 14756 return 0; 14757} 14758_ACEOF 14759if ac_fn_c_try_compile "$LINENO"; then : 14760 echo conftest.$ac_objext > conftest.lst 14761 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 14762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 14763 (eval $lt_ar_try) 2>&5 14764 ac_status=$? 14765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14766 test $ac_status = 0; } 14767 if test 0 -eq "$ac_status"; then 14768 # Ensure the archiver fails upon bogus file names. 14769 rm -f conftest.$ac_objext libconftest.a 14770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 14771 (eval $lt_ar_try) 2>&5 14772 ac_status=$? 14773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14774 test $ac_status = 0; } 14775 if test 0 -ne "$ac_status"; then 14776 lt_cv_ar_at_file=@ 14777 fi 14778 fi 14779 rm -f conftest.* libconftest.a 14780 14781fi 14782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14783 14784fi 14785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 14786$as_echo "$lt_cv_ar_at_file" >&6; } 14787 14788if test no = "$lt_cv_ar_at_file"; then 14789 archiver_list_spec= 14790else 14791 archiver_list_spec=$lt_cv_ar_at_file 14792fi 14793 14794 14795 14796 14797 14798 14799 14800if test -n "$ac_tool_prefix"; then 14801 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 14802set dummy ${ac_tool_prefix}strip; ac_word=$2 14803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14804$as_echo_n "checking for $ac_word... " >&6; } 14805if ${ac_cv_prog_STRIP+:} false; then : 14806 $as_echo_n "(cached) " >&6 14807else 14808 if test -n "$STRIP"; then 14809 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 14810else 14811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14812for as_dir in $PATH 14813do 14814 IFS=$as_save_IFS 14815 test -z "$as_dir" && as_dir=. 14816 for ac_exec_ext in '' $ac_executable_extensions; do 14817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14818 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 14819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14820 break 2 14821 fi 14822done 14823 done 14824IFS=$as_save_IFS 14825 14826fi 14827fi 14828STRIP=$ac_cv_prog_STRIP 14829if test -n "$STRIP"; then 14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 14831$as_echo "$STRIP" >&6; } 14832else 14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14834$as_echo "no" >&6; } 14835fi 14836 14837 14838fi 14839if test -z "$ac_cv_prog_STRIP"; then 14840 ac_ct_STRIP=$STRIP 14841 # Extract the first word of "strip", so it can be a program name with args. 14842set dummy strip; ac_word=$2 14843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14844$as_echo_n "checking for $ac_word... " >&6; } 14845if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 14846 $as_echo_n "(cached) " >&6 14847else 14848 if test -n "$ac_ct_STRIP"; then 14849 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 14850else 14851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14852for as_dir in $PATH 14853do 14854 IFS=$as_save_IFS 14855 test -z "$as_dir" && as_dir=. 14856 for ac_exec_ext in '' $ac_executable_extensions; do 14857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14858 ac_cv_prog_ac_ct_STRIP="strip" 14859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14860 break 2 14861 fi 14862done 14863 done 14864IFS=$as_save_IFS 14865 14866fi 14867fi 14868ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 14869if test -n "$ac_ct_STRIP"; then 14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 14871$as_echo "$ac_ct_STRIP" >&6; } 14872else 14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14874$as_echo "no" >&6; } 14875fi 14876 14877 if test "x$ac_ct_STRIP" = x; then 14878 STRIP=":" 14879 else 14880 case $cross_compiling:$ac_tool_warned in 14881yes:) 14882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14884ac_tool_warned=yes ;; 14885esac 14886 STRIP=$ac_ct_STRIP 14887 fi 14888else 14889 STRIP="$ac_cv_prog_STRIP" 14890fi 14891 14892test -z "$STRIP" && STRIP=: 14893 14894 14895 14896 14897 14898 14899if test -n "$ac_tool_prefix"; then 14900 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 14901set dummy ${ac_tool_prefix}ranlib; ac_word=$2 14902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14903$as_echo_n "checking for $ac_word... " >&6; } 14904if ${ac_cv_prog_RANLIB+:} false; then : 14905 $as_echo_n "(cached) " >&6 14906else 14907 if test -n "$RANLIB"; then 14908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 14909else 14910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14911for as_dir in $PATH 14912do 14913 IFS=$as_save_IFS 14914 test -z "$as_dir" && as_dir=. 14915 for ac_exec_ext in '' $ac_executable_extensions; do 14916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14917 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 14918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14919 break 2 14920 fi 14921done 14922 done 14923IFS=$as_save_IFS 14924 14925fi 14926fi 14927RANLIB=$ac_cv_prog_RANLIB 14928if test -n "$RANLIB"; then 14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 14930$as_echo "$RANLIB" >&6; } 14931else 14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14933$as_echo "no" >&6; } 14934fi 14935 14936 14937fi 14938if test -z "$ac_cv_prog_RANLIB"; then 14939 ac_ct_RANLIB=$RANLIB 14940 # Extract the first word of "ranlib", so it can be a program name with args. 14941set dummy ranlib; ac_word=$2 14942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14943$as_echo_n "checking for $ac_word... " >&6; } 14944if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 14945 $as_echo_n "(cached) " >&6 14946else 14947 if test -n "$ac_ct_RANLIB"; then 14948 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 14949else 14950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14951for as_dir in $PATH 14952do 14953 IFS=$as_save_IFS 14954 test -z "$as_dir" && as_dir=. 14955 for ac_exec_ext in '' $ac_executable_extensions; do 14956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14957 ac_cv_prog_ac_ct_RANLIB="ranlib" 14958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14959 break 2 14960 fi 14961done 14962 done 14963IFS=$as_save_IFS 14964 14965fi 14966fi 14967ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 14968if test -n "$ac_ct_RANLIB"; then 14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 14970$as_echo "$ac_ct_RANLIB" >&6; } 14971else 14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14973$as_echo "no" >&6; } 14974fi 14975 14976 if test "x$ac_ct_RANLIB" = x; then 14977 RANLIB=":" 14978 else 14979 case $cross_compiling:$ac_tool_warned in 14980yes:) 14981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14983ac_tool_warned=yes ;; 14984esac 14985 RANLIB=$ac_ct_RANLIB 14986 fi 14987else 14988 RANLIB="$ac_cv_prog_RANLIB" 14989fi 14990 14991test -z "$RANLIB" && RANLIB=: 14992 14993 14994 14995 14996 14997 14998# Determine commands to create old-style static archives. 14999old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 15000old_postinstall_cmds='chmod 644 $oldlib' 15001old_postuninstall_cmds= 15002 15003if test -n "$RANLIB"; then 15004 case $host_os in 15005 bitrig* | openbsd*) 15006 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 15007 ;; 15008 *) 15009 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 15010 ;; 15011 esac 15012 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 15013fi 15014 15015case $host_os in 15016 darwin*) 15017 lock_old_archive_extraction=yes ;; 15018 *) 15019 lock_old_archive_extraction=no ;; 15020esac 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 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# If no C compiler was specified, use CC. 15061LTCC=${LTCC-"$CC"} 15062 15063# If no C compiler flags were specified, use CFLAGS. 15064LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15065 15066# Allow CC to be a program name with arguments. 15067compiler=$CC 15068 15069 15070# Check for command to grab the raw symbol name followed by C symbol from nm. 15071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 15072$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 15073if ${lt_cv_sys_global_symbol_pipe+:} false; then : 15074 $as_echo_n "(cached) " >&6 15075else 15076 15077# These are sane defaults that work on at least a few old systems. 15078# [They come from Ultrix. What could be older than Ultrix?!! ;)] 15079 15080# Character class describing NM global symbol codes. 15081symcode='[BCDEGRST]' 15082 15083# Regexp to match symbols that can be accessed directly from C. 15084sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 15085 15086# Define system-specific variables. 15087case $host_os in 15088aix*) 15089 symcode='[BCDT]' 15090 ;; 15091cygwin* | mingw* | pw32* | cegcc*) 15092 symcode='[ABCDGISTW]' 15093 ;; 15094hpux*) 15095 if test ia64 = "$host_cpu"; then 15096 symcode='[ABCDEGRST]' 15097 fi 15098 ;; 15099irix* | nonstopux*) 15100 symcode='[BCDEGRST]' 15101 ;; 15102osf*) 15103 symcode='[BCDEGQRST]' 15104 ;; 15105solaris*) 15106 symcode='[BDRT]' 15107 ;; 15108sco3.2v5*) 15109 symcode='[DT]' 15110 ;; 15111sysv4.2uw2*) 15112 symcode='[DT]' 15113 ;; 15114sysv5* | sco5v6* | unixware* | OpenUNIX*) 15115 symcode='[ABDT]' 15116 ;; 15117sysv4) 15118 symcode='[DFNSTU]' 15119 ;; 15120esac 15121 15122# If we're using GNU nm, then use its standard symbol codes. 15123case `$NM -V 2>&1` in 15124*GNU* | *'with BFD'*) 15125 symcode='[ABCDGIRSTW]' ;; 15126esac 15127 15128if test "$lt_cv_nm_interface" = "MS dumpbin"; then 15129 # Gets list of data symbols to import. 15130 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 15131 # Adjust the below global symbol transforms to fixup imported variables. 15132 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 15133 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 15134 lt_c_name_lib_hook="\ 15135 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 15136 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 15137else 15138 # Disable hooks by default. 15139 lt_cv_sys_global_symbol_to_import= 15140 lt_cdecl_hook= 15141 lt_c_name_hook= 15142 lt_c_name_lib_hook= 15143fi 15144 15145# Transform an extracted symbol line into a proper C declaration. 15146# Some systems (esp. on ia64) link data and code symbols differently, 15147# so use this general approach. 15148lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 15149$lt_cdecl_hook\ 15150" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 15151" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 15152 15153# Transform an extracted symbol line into symbol name and symbol address 15154lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 15155$lt_c_name_hook\ 15156" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 15157" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 15158 15159# Transform an extracted symbol line into symbol name with lib prefix and 15160# symbol address. 15161lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 15162$lt_c_name_lib_hook\ 15163" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 15164" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 15165" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 15166 15167# Handle CRLF in mingw tool chain 15168opt_cr= 15169case $build_os in 15170mingw*) 15171 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 15172 ;; 15173esac 15174 15175# Try without a prefix underscore, then with it. 15176for ac_symprfx in "" "_"; do 15177 15178 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 15179 symxfrm="\\1 $ac_symprfx\\2 \\2" 15180 15181 # Write the raw and C identifiers. 15182 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 15183 # Fake it for dumpbin and say T for any non-static function, 15184 # D for any global variable and I for any imported variable. 15185 # Also find C++ and __fastcall symbols from MSVC++, 15186 # which start with @ or ?. 15187 lt_cv_sys_global_symbol_pipe="$AWK '"\ 15188" {last_section=section; section=\$ 3};"\ 15189" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 15190" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 15191" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 15192" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 15193" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 15194" \$ 0!~/External *\|/{next};"\ 15195" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 15196" {if(hide[section]) next};"\ 15197" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 15198" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 15199" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 15200" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 15201" ' prfx=^$ac_symprfx" 15202 else 15203 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 15204 fi 15205 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 15206 15207 # Check to see that the pipe works correctly. 15208 pipe_works=no 15209 15210 rm -f conftest* 15211 cat > conftest.$ac_ext <<_LT_EOF 15212#ifdef __cplusplus 15213extern "C" { 15214#endif 15215char nm_test_var; 15216void nm_test_func(void); 15217void nm_test_func(void){} 15218#ifdef __cplusplus 15219} 15220#endif 15221int main(){nm_test_var='a';nm_test_func();return(0);} 15222_LT_EOF 15223 15224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15225 (eval $ac_compile) 2>&5 15226 ac_status=$? 15227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15228 test $ac_status = 0; }; then 15229 # Now try to grab the symbols. 15230 nlist=conftest.nm 15231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 15232 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 15233 ac_status=$? 15234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15235 test $ac_status = 0; } && test -s "$nlist"; then 15236 # Try sorting and uniquifying the output. 15237 if sort "$nlist" | uniq > "$nlist"T; then 15238 mv -f "$nlist"T "$nlist" 15239 else 15240 rm -f "$nlist"T 15241 fi 15242 15243 # Make sure that we snagged all the symbols we need. 15244 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 15245 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 15246 cat <<_LT_EOF > conftest.$ac_ext 15247/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 15248#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 15249/* DATA imports from DLLs on WIN32 can't be const, because runtime 15250 relocations are performed -- see ld's documentation on pseudo-relocs. */ 15251# define LT_DLSYM_CONST 15252#elif defined __osf__ 15253/* This system does not cope well with relocations in const data. */ 15254# define LT_DLSYM_CONST 15255#else 15256# define LT_DLSYM_CONST const 15257#endif 15258 15259#ifdef __cplusplus 15260extern "C" { 15261#endif 15262 15263_LT_EOF 15264 # Now generate the symbol file. 15265 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 15266 15267 cat <<_LT_EOF >> conftest.$ac_ext 15268 15269/* The mapping between symbol names and symbols. */ 15270LT_DLSYM_CONST struct { 15271 const char *name; 15272 void *address; 15273} 15274lt__PROGRAM__LTX_preloaded_symbols[] = 15275{ 15276 { "@PROGRAM@", (void *) 0 }, 15277_LT_EOF 15278 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 15279 cat <<\_LT_EOF >> conftest.$ac_ext 15280 {0, (void *) 0} 15281}; 15282 15283/* This works around a problem in FreeBSD linker */ 15284#ifdef FREEBSD_WORKAROUND 15285static const void *lt_preloaded_setup() { 15286 return lt__PROGRAM__LTX_preloaded_symbols; 15287} 15288#endif 15289 15290#ifdef __cplusplus 15291} 15292#endif 15293_LT_EOF 15294 # Now try linking the two files. 15295 mv conftest.$ac_objext conftstm.$ac_objext 15296 lt_globsym_save_LIBS=$LIBS 15297 lt_globsym_save_CFLAGS=$CFLAGS 15298 LIBS=conftstm.$ac_objext 15299 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 15300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15301 (eval $ac_link) 2>&5 15302 ac_status=$? 15303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15304 test $ac_status = 0; } && test -s conftest$ac_exeext; then 15305 pipe_works=yes 15306 fi 15307 LIBS=$lt_globsym_save_LIBS 15308 CFLAGS=$lt_globsym_save_CFLAGS 15309 else 15310 echo "cannot find nm_test_func in $nlist" >&5 15311 fi 15312 else 15313 echo "cannot find nm_test_var in $nlist" >&5 15314 fi 15315 else 15316 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 15317 fi 15318 else 15319 echo "$progname: failed program was:" >&5 15320 cat conftest.$ac_ext >&5 15321 fi 15322 rm -rf conftest* conftst* 15323 15324 # Do not use the global_symbol_pipe unless it works. 15325 if test yes = "$pipe_works"; then 15326 break 15327 else 15328 lt_cv_sys_global_symbol_pipe= 15329 fi 15330done 15331 15332fi 15333 15334if test -z "$lt_cv_sys_global_symbol_pipe"; then 15335 lt_cv_sys_global_symbol_to_cdecl= 15336fi 15337if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 15339$as_echo "failed" >&6; } 15340else 15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15342$as_echo "ok" >&6; } 15343fi 15344 15345# Response file support. 15346if test "$lt_cv_nm_interface" = "MS dumpbin"; then 15347 nm_file_list_spec='@' 15348elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 15349 nm_file_list_spec='@' 15350fi 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 15389$as_echo_n "checking for sysroot... " >&6; } 15390 15391# Check whether --with-sysroot was given. 15392if test "${with_sysroot+set}" = set; then : 15393 withval=$with_sysroot; 15394else 15395 with_sysroot=no 15396fi 15397 15398 15399lt_sysroot= 15400case $with_sysroot in #( 15401 yes) 15402 if test yes = "$GCC"; then 15403 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 15404 fi 15405 ;; #( 15406 /*) 15407 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 15408 ;; #( 15409 no|'') 15410 ;; #( 15411 *) 15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 15413$as_echo "$with_sysroot" >&6; } 15414 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 15415 ;; 15416esac 15417 15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 15419$as_echo "${lt_sysroot:-no}" >&6; } 15420 15421 15422 15423 15424 15425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 15426$as_echo_n "checking for a working dd... " >&6; } 15427if ${ac_cv_path_lt_DD+:} false; then : 15428 $as_echo_n "(cached) " >&6 15429else 15430 printf 0123456789abcdef0123456789abcdef >conftest.i 15431cat conftest.i conftest.i >conftest2.i 15432: ${lt_DD:=$DD} 15433if test -z "$lt_DD"; then 15434 ac_path_lt_DD_found=false 15435 # Loop through the user's path and test for each of PROGNAME-LIST 15436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15437for as_dir in $PATH 15438do 15439 IFS=$as_save_IFS 15440 test -z "$as_dir" && as_dir=. 15441 for ac_prog in dd; do 15442 for ac_exec_ext in '' $ac_executable_extensions; do 15443 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 15444 as_fn_executable_p "$ac_path_lt_DD" || continue 15445if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 15446 cmp -s conftest.i conftest.out \ 15447 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 15448fi 15449 $ac_path_lt_DD_found && break 3 15450 done 15451 done 15452 done 15453IFS=$as_save_IFS 15454 if test -z "$ac_cv_path_lt_DD"; then 15455 : 15456 fi 15457else 15458 ac_cv_path_lt_DD=$lt_DD 15459fi 15460 15461rm -f conftest.i conftest2.i conftest.out 15462fi 15463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 15464$as_echo "$ac_cv_path_lt_DD" >&6; } 15465 15466 15467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 15468$as_echo_n "checking how to truncate binary pipes... " >&6; } 15469if ${lt_cv_truncate_bin+:} false; then : 15470 $as_echo_n "(cached) " >&6 15471else 15472 printf 0123456789abcdef0123456789abcdef >conftest.i 15473cat conftest.i conftest.i >conftest2.i 15474lt_cv_truncate_bin= 15475if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 15476 cmp -s conftest.i conftest.out \ 15477 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 15478fi 15479rm -f conftest.i conftest2.i conftest.out 15480test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 15481fi 15482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 15483$as_echo "$lt_cv_truncate_bin" >&6; } 15484 15485 15486 15487 15488 15489 15490 15491# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15492func_cc_basename () 15493{ 15494 for cc_temp in $*""; do 15495 case $cc_temp in 15496 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15497 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15498 \-*) ;; 15499 *) break;; 15500 esac 15501 done 15502 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15503} 15504 15505# Check whether --enable-libtool-lock was given. 15506if test "${enable_libtool_lock+set}" = set; then : 15507 enableval=$enable_libtool_lock; 15508fi 15509 15510test no = "$enable_libtool_lock" || enable_libtool_lock=yes 15511 15512# Some flags need to be propagated to the compiler or linker for good 15513# libtool support. 15514case $host in 15515ia64-*-hpux*) 15516 # Find out what ABI is being produced by ac_compile, and set mode 15517 # options accordingly. 15518 echo 'int i;' > conftest.$ac_ext 15519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15520 (eval $ac_compile) 2>&5 15521 ac_status=$? 15522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15523 test $ac_status = 0; }; then 15524 case `/usr/bin/file conftest.$ac_objext` in 15525 *ELF-32*) 15526 HPUX_IA64_MODE=32 15527 ;; 15528 *ELF-64*) 15529 HPUX_IA64_MODE=64 15530 ;; 15531 esac 15532 fi 15533 rm -rf conftest* 15534 ;; 15535*-*-irix6*) 15536 # Find out what ABI is being produced by ac_compile, and set linker 15537 # options accordingly. 15538 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 15539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15540 (eval $ac_compile) 2>&5 15541 ac_status=$? 15542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15543 test $ac_status = 0; }; then 15544 if test yes = "$lt_cv_prog_gnu_ld"; then 15545 case `/usr/bin/file conftest.$ac_objext` in 15546 *32-bit*) 15547 LD="${LD-ld} -melf32bsmip" 15548 ;; 15549 *N32*) 15550 LD="${LD-ld} -melf32bmipn32" 15551 ;; 15552 *64-bit*) 15553 LD="${LD-ld} -melf64bmip" 15554 ;; 15555 esac 15556 else 15557 case `/usr/bin/file conftest.$ac_objext` in 15558 *32-bit*) 15559 LD="${LD-ld} -32" 15560 ;; 15561 *N32*) 15562 LD="${LD-ld} -n32" 15563 ;; 15564 *64-bit*) 15565 LD="${LD-ld} -64" 15566 ;; 15567 esac 15568 fi 15569 fi 15570 rm -rf conftest* 15571 ;; 15572 15573mips64*-*linux*) 15574 # Find out what ABI is being produced by ac_compile, and set linker 15575 # options accordingly. 15576 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 15577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15578 (eval $ac_compile) 2>&5 15579 ac_status=$? 15580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15581 test $ac_status = 0; }; then 15582 emul=elf 15583 case `/usr/bin/file conftest.$ac_objext` in 15584 *32-bit*) 15585 emul="${emul}32" 15586 ;; 15587 *64-bit*) 15588 emul="${emul}64" 15589 ;; 15590 esac 15591 case `/usr/bin/file conftest.$ac_objext` in 15592 *MSB*) 15593 emul="${emul}btsmip" 15594 ;; 15595 *LSB*) 15596 emul="${emul}ltsmip" 15597 ;; 15598 esac 15599 case `/usr/bin/file conftest.$ac_objext` in 15600 *N32*) 15601 emul="${emul}n32" 15602 ;; 15603 esac 15604 LD="${LD-ld} -m $emul" 15605 fi 15606 rm -rf conftest* 15607 ;; 15608 15609x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 15610s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 15611 # Find out what ABI is being produced by ac_compile, and set linker 15612 # options accordingly. Note that the listed cases only cover the 15613 # situations where additional linker options are needed (such as when 15614 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 15615 # vice versa); the common cases where no linker options are needed do 15616 # not appear in the list. 15617 echo 'int i;' > conftest.$ac_ext 15618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15619 (eval $ac_compile) 2>&5 15620 ac_status=$? 15621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15622 test $ac_status = 0; }; then 15623 case `/usr/bin/file conftest.o` in 15624 *32-bit*) 15625 case $host in 15626 x86_64-*kfreebsd*-gnu) 15627 LD="${LD-ld} -m elf_i386_fbsd" 15628 ;; 15629 x86_64-*linux*) 15630 case `/usr/bin/file conftest.o` in 15631 *x86-64*) 15632 LD="${LD-ld} -m elf32_x86_64" 15633 ;; 15634 *) 15635 LD="${LD-ld} -m elf_i386" 15636 ;; 15637 esac 15638 ;; 15639 powerpc64le-*linux*) 15640 LD="${LD-ld} -m elf32lppclinux" 15641 ;; 15642 powerpc64-*linux*) 15643 LD="${LD-ld} -m elf32ppclinux" 15644 ;; 15645 s390x-*linux*) 15646 LD="${LD-ld} -m elf_s390" 15647 ;; 15648 sparc64-*linux*) 15649 LD="${LD-ld} -m elf32_sparc" 15650 ;; 15651 esac 15652 ;; 15653 *64-bit*) 15654 case $host in 15655 x86_64-*kfreebsd*-gnu) 15656 LD="${LD-ld} -m elf_x86_64_fbsd" 15657 ;; 15658 x86_64-*linux*) 15659 LD="${LD-ld} -m elf_x86_64" 15660 ;; 15661 powerpcle-*linux*|powerpc64le-*linux*) 15662 LD="${LD-ld} -m elf64lppc" 15663 ;; 15664 powerpc-*linux*|powerpc64-*linux*) 15665 LD="${LD-ld} -m elf64ppc" 15666 ;; 15667 s390*-*linux*|s390*-*tpf*) 15668 LD="${LD-ld} -m elf64_s390" 15669 ;; 15670 sparc*-*linux*) 15671 LD="${LD-ld} -m elf64_sparc" 15672 ;; 15673 esac 15674 ;; 15675 esac 15676 fi 15677 rm -rf conftest* 15678 ;; 15679 15680*-*-sco3.2v5*) 15681 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 15682 SAVE_CFLAGS=$CFLAGS 15683 CFLAGS="$CFLAGS -belf" 15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 15685$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 15686if ${lt_cv_cc_needs_belf+:} false; then : 15687 $as_echo_n "(cached) " >&6 15688else 15689 ac_ext=c 15690ac_cpp='$CPP $CPPFLAGS' 15691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15693ac_compiler_gnu=$ac_cv_c_compiler_gnu 15694 15695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15696/* end confdefs.h. */ 15697 15698int 15699main () 15700{ 15701 15702 ; 15703 return 0; 15704} 15705_ACEOF 15706if ac_fn_c_try_link "$LINENO"; then : 15707 lt_cv_cc_needs_belf=yes 15708else 15709 lt_cv_cc_needs_belf=no 15710fi 15711rm -f core conftest.err conftest.$ac_objext \ 15712 conftest$ac_exeext conftest.$ac_ext 15713 ac_ext=c 15714ac_cpp='$CPP $CPPFLAGS' 15715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15717ac_compiler_gnu=$ac_cv_c_compiler_gnu 15718 15719fi 15720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 15721$as_echo "$lt_cv_cc_needs_belf" >&6; } 15722 if test yes != "$lt_cv_cc_needs_belf"; then 15723 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 15724 CFLAGS=$SAVE_CFLAGS 15725 fi 15726 ;; 15727*-*solaris*) 15728 # Find out what ABI is being produced by ac_compile, and set linker 15729 # options accordingly. 15730 echo 'int i;' > conftest.$ac_ext 15731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15732 (eval $ac_compile) 2>&5 15733 ac_status=$? 15734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15735 test $ac_status = 0; }; then 15736 case `/usr/bin/file conftest.o` in 15737 *64-bit*) 15738 case $lt_cv_prog_gnu_ld in 15739 yes*) 15740 case $host in 15741 i?86-*-solaris*|x86_64-*-solaris*) 15742 LD="${LD-ld} -m elf_x86_64" 15743 ;; 15744 sparc*-*-solaris*) 15745 LD="${LD-ld} -m elf64_sparc" 15746 ;; 15747 esac 15748 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 15749 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 15750 LD=${LD-ld}_sol2 15751 fi 15752 ;; 15753 *) 15754 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 15755 LD="${LD-ld} -64" 15756 fi 15757 ;; 15758 esac 15759 ;; 15760 esac 15761 fi 15762 rm -rf conftest* 15763 ;; 15764esac 15765 15766need_locks=$enable_libtool_lock 15767 15768if test -n "$ac_tool_prefix"; then 15769 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 15770set dummy ${ac_tool_prefix}mt; ac_word=$2 15771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15772$as_echo_n "checking for $ac_word... " >&6; } 15773if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 15774 $as_echo_n "(cached) " >&6 15775else 15776 if test -n "$MANIFEST_TOOL"; then 15777 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 15778else 15779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15780for as_dir in $PATH 15781do 15782 IFS=$as_save_IFS 15783 test -z "$as_dir" && as_dir=. 15784 for ac_exec_ext in '' $ac_executable_extensions; do 15785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15786 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 15787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15788 break 2 15789 fi 15790done 15791 done 15792IFS=$as_save_IFS 15793 15794fi 15795fi 15796MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 15797if test -n "$MANIFEST_TOOL"; then 15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 15799$as_echo "$MANIFEST_TOOL" >&6; } 15800else 15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15802$as_echo "no" >&6; } 15803fi 15804 15805 15806fi 15807if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 15808 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 15809 # Extract the first word of "mt", so it can be a program name with args. 15810set dummy mt; ac_word=$2 15811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15812$as_echo_n "checking for $ac_word... " >&6; } 15813if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 15814 $as_echo_n "(cached) " >&6 15815else 15816 if test -n "$ac_ct_MANIFEST_TOOL"; then 15817 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 15818else 15819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15820for as_dir in $PATH 15821do 15822 IFS=$as_save_IFS 15823 test -z "$as_dir" && as_dir=. 15824 for ac_exec_ext in '' $ac_executable_extensions; do 15825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15826 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 15827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15828 break 2 15829 fi 15830done 15831 done 15832IFS=$as_save_IFS 15833 15834fi 15835fi 15836ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 15837if test -n "$ac_ct_MANIFEST_TOOL"; then 15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 15839$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 15840else 15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15842$as_echo "no" >&6; } 15843fi 15844 15845 if test "x$ac_ct_MANIFEST_TOOL" = x; then 15846 MANIFEST_TOOL=":" 15847 else 15848 case $cross_compiling:$ac_tool_warned in 15849yes:) 15850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15852ac_tool_warned=yes ;; 15853esac 15854 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 15855 fi 15856else 15857 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 15858fi 15859 15860test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 15861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 15862$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 15863if ${lt_cv_path_mainfest_tool+:} false; then : 15864 $as_echo_n "(cached) " >&6 15865else 15866 lt_cv_path_mainfest_tool=no 15867 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 15868 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 15869 cat conftest.err >&5 15870 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 15871 lt_cv_path_mainfest_tool=yes 15872 fi 15873 rm -f conftest* 15874fi 15875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 15876$as_echo "$lt_cv_path_mainfest_tool" >&6; } 15877if test yes != "$lt_cv_path_mainfest_tool"; then 15878 MANIFEST_TOOL=: 15879fi 15880 15881 15882 15883 15884 15885 15886 case $host_os in 15887 rhapsody* | darwin*) 15888 if test -n "$ac_tool_prefix"; then 15889 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 15890set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 15891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15892$as_echo_n "checking for $ac_word... " >&6; } 15893if ${ac_cv_prog_DSYMUTIL+:} false; then : 15894 $as_echo_n "(cached) " >&6 15895else 15896 if test -n "$DSYMUTIL"; then 15897 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 15898else 15899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15900for as_dir in $PATH 15901do 15902 IFS=$as_save_IFS 15903 test -z "$as_dir" && as_dir=. 15904 for ac_exec_ext in '' $ac_executable_extensions; do 15905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15906 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 15907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15908 break 2 15909 fi 15910done 15911 done 15912IFS=$as_save_IFS 15913 15914fi 15915fi 15916DSYMUTIL=$ac_cv_prog_DSYMUTIL 15917if test -n "$DSYMUTIL"; then 15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 15919$as_echo "$DSYMUTIL" >&6; } 15920else 15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15922$as_echo "no" >&6; } 15923fi 15924 15925 15926fi 15927if test -z "$ac_cv_prog_DSYMUTIL"; then 15928 ac_ct_DSYMUTIL=$DSYMUTIL 15929 # Extract the first word of "dsymutil", so it can be a program name with args. 15930set dummy dsymutil; ac_word=$2 15931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15932$as_echo_n "checking for $ac_word... " >&6; } 15933if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 15934 $as_echo_n "(cached) " >&6 15935else 15936 if test -n "$ac_ct_DSYMUTIL"; then 15937 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 15938else 15939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15940for as_dir in $PATH 15941do 15942 IFS=$as_save_IFS 15943 test -z "$as_dir" && as_dir=. 15944 for ac_exec_ext in '' $ac_executable_extensions; do 15945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15946 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 15947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15948 break 2 15949 fi 15950done 15951 done 15952IFS=$as_save_IFS 15953 15954fi 15955fi 15956ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 15957if test -n "$ac_ct_DSYMUTIL"; then 15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 15959$as_echo "$ac_ct_DSYMUTIL" >&6; } 15960else 15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15962$as_echo "no" >&6; } 15963fi 15964 15965 if test "x$ac_ct_DSYMUTIL" = x; then 15966 DSYMUTIL=":" 15967 else 15968 case $cross_compiling:$ac_tool_warned in 15969yes:) 15970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15972ac_tool_warned=yes ;; 15973esac 15974 DSYMUTIL=$ac_ct_DSYMUTIL 15975 fi 15976else 15977 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 15978fi 15979 15980 if test -n "$ac_tool_prefix"; then 15981 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 15982set dummy ${ac_tool_prefix}nmedit; ac_word=$2 15983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15984$as_echo_n "checking for $ac_word... " >&6; } 15985if ${ac_cv_prog_NMEDIT+:} false; then : 15986 $as_echo_n "(cached) " >&6 15987else 15988 if test -n "$NMEDIT"; then 15989 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 15990else 15991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15992for as_dir in $PATH 15993do 15994 IFS=$as_save_IFS 15995 test -z "$as_dir" && as_dir=. 15996 for ac_exec_ext in '' $ac_executable_extensions; do 15997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15998 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 15999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16000 break 2 16001 fi 16002done 16003 done 16004IFS=$as_save_IFS 16005 16006fi 16007fi 16008NMEDIT=$ac_cv_prog_NMEDIT 16009if test -n "$NMEDIT"; then 16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 16011$as_echo "$NMEDIT" >&6; } 16012else 16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16014$as_echo "no" >&6; } 16015fi 16016 16017 16018fi 16019if test -z "$ac_cv_prog_NMEDIT"; then 16020 ac_ct_NMEDIT=$NMEDIT 16021 # Extract the first word of "nmedit", so it can be a program name with args. 16022set dummy nmedit; ac_word=$2 16023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16024$as_echo_n "checking for $ac_word... " >&6; } 16025if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 16026 $as_echo_n "(cached) " >&6 16027else 16028 if test -n "$ac_ct_NMEDIT"; then 16029 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 16030else 16031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16032for as_dir in $PATH 16033do 16034 IFS=$as_save_IFS 16035 test -z "$as_dir" && as_dir=. 16036 for ac_exec_ext in '' $ac_executable_extensions; do 16037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16038 ac_cv_prog_ac_ct_NMEDIT="nmedit" 16039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16040 break 2 16041 fi 16042done 16043 done 16044IFS=$as_save_IFS 16045 16046fi 16047fi 16048ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 16049if test -n "$ac_ct_NMEDIT"; then 16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 16051$as_echo "$ac_ct_NMEDIT" >&6; } 16052else 16053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16054$as_echo "no" >&6; } 16055fi 16056 16057 if test "x$ac_ct_NMEDIT" = x; then 16058 NMEDIT=":" 16059 else 16060 case $cross_compiling:$ac_tool_warned in 16061yes:) 16062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16064ac_tool_warned=yes ;; 16065esac 16066 NMEDIT=$ac_ct_NMEDIT 16067 fi 16068else 16069 NMEDIT="$ac_cv_prog_NMEDIT" 16070fi 16071 16072 if test -n "$ac_tool_prefix"; then 16073 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 16074set dummy ${ac_tool_prefix}lipo; ac_word=$2 16075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16076$as_echo_n "checking for $ac_word... " >&6; } 16077if ${ac_cv_prog_LIPO+:} false; then : 16078 $as_echo_n "(cached) " >&6 16079else 16080 if test -n "$LIPO"; then 16081 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 16082else 16083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16084for as_dir in $PATH 16085do 16086 IFS=$as_save_IFS 16087 test -z "$as_dir" && as_dir=. 16088 for ac_exec_ext in '' $ac_executable_extensions; do 16089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16090 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 16091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16092 break 2 16093 fi 16094done 16095 done 16096IFS=$as_save_IFS 16097 16098fi 16099fi 16100LIPO=$ac_cv_prog_LIPO 16101if test -n "$LIPO"; then 16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 16103$as_echo "$LIPO" >&6; } 16104else 16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16106$as_echo "no" >&6; } 16107fi 16108 16109 16110fi 16111if test -z "$ac_cv_prog_LIPO"; then 16112 ac_ct_LIPO=$LIPO 16113 # Extract the first word of "lipo", so it can be a program name with args. 16114set dummy lipo; ac_word=$2 16115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16116$as_echo_n "checking for $ac_word... " >&6; } 16117if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 16118 $as_echo_n "(cached) " >&6 16119else 16120 if test -n "$ac_ct_LIPO"; then 16121 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 16122else 16123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16124for as_dir in $PATH 16125do 16126 IFS=$as_save_IFS 16127 test -z "$as_dir" && as_dir=. 16128 for ac_exec_ext in '' $ac_executable_extensions; do 16129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16130 ac_cv_prog_ac_ct_LIPO="lipo" 16131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16132 break 2 16133 fi 16134done 16135 done 16136IFS=$as_save_IFS 16137 16138fi 16139fi 16140ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 16141if test -n "$ac_ct_LIPO"; then 16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 16143$as_echo "$ac_ct_LIPO" >&6; } 16144else 16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16146$as_echo "no" >&6; } 16147fi 16148 16149 if test "x$ac_ct_LIPO" = x; then 16150 LIPO=":" 16151 else 16152 case $cross_compiling:$ac_tool_warned in 16153yes:) 16154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16156ac_tool_warned=yes ;; 16157esac 16158 LIPO=$ac_ct_LIPO 16159 fi 16160else 16161 LIPO="$ac_cv_prog_LIPO" 16162fi 16163 16164 if test -n "$ac_tool_prefix"; then 16165 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 16166set dummy ${ac_tool_prefix}otool; ac_word=$2 16167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16168$as_echo_n "checking for $ac_word... " >&6; } 16169if ${ac_cv_prog_OTOOL+:} false; then : 16170 $as_echo_n "(cached) " >&6 16171else 16172 if test -n "$OTOOL"; then 16173 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 16174else 16175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16176for as_dir in $PATH 16177do 16178 IFS=$as_save_IFS 16179 test -z "$as_dir" && as_dir=. 16180 for ac_exec_ext in '' $ac_executable_extensions; do 16181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16182 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 16183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16184 break 2 16185 fi 16186done 16187 done 16188IFS=$as_save_IFS 16189 16190fi 16191fi 16192OTOOL=$ac_cv_prog_OTOOL 16193if test -n "$OTOOL"; then 16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 16195$as_echo "$OTOOL" >&6; } 16196else 16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16198$as_echo "no" >&6; } 16199fi 16200 16201 16202fi 16203if test -z "$ac_cv_prog_OTOOL"; then 16204 ac_ct_OTOOL=$OTOOL 16205 # Extract the first word of "otool", so it can be a program name with args. 16206set dummy otool; ac_word=$2 16207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16208$as_echo_n "checking for $ac_word... " >&6; } 16209if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 16210 $as_echo_n "(cached) " >&6 16211else 16212 if test -n "$ac_ct_OTOOL"; then 16213 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 16214else 16215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16216for as_dir in $PATH 16217do 16218 IFS=$as_save_IFS 16219 test -z "$as_dir" && as_dir=. 16220 for ac_exec_ext in '' $ac_executable_extensions; do 16221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16222 ac_cv_prog_ac_ct_OTOOL="otool" 16223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16224 break 2 16225 fi 16226done 16227 done 16228IFS=$as_save_IFS 16229 16230fi 16231fi 16232ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 16233if test -n "$ac_ct_OTOOL"; then 16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 16235$as_echo "$ac_ct_OTOOL" >&6; } 16236else 16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16238$as_echo "no" >&6; } 16239fi 16240 16241 if test "x$ac_ct_OTOOL" = x; then 16242 OTOOL=":" 16243 else 16244 case $cross_compiling:$ac_tool_warned in 16245yes:) 16246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16248ac_tool_warned=yes ;; 16249esac 16250 OTOOL=$ac_ct_OTOOL 16251 fi 16252else 16253 OTOOL="$ac_cv_prog_OTOOL" 16254fi 16255 16256 if test -n "$ac_tool_prefix"; then 16257 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 16258set dummy ${ac_tool_prefix}otool64; ac_word=$2 16259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16260$as_echo_n "checking for $ac_word... " >&6; } 16261if ${ac_cv_prog_OTOOL64+:} false; then : 16262 $as_echo_n "(cached) " >&6 16263else 16264 if test -n "$OTOOL64"; then 16265 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 16266else 16267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16268for as_dir in $PATH 16269do 16270 IFS=$as_save_IFS 16271 test -z "$as_dir" && as_dir=. 16272 for ac_exec_ext in '' $ac_executable_extensions; do 16273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16274 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 16275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16276 break 2 16277 fi 16278done 16279 done 16280IFS=$as_save_IFS 16281 16282fi 16283fi 16284OTOOL64=$ac_cv_prog_OTOOL64 16285if test -n "$OTOOL64"; then 16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 16287$as_echo "$OTOOL64" >&6; } 16288else 16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16290$as_echo "no" >&6; } 16291fi 16292 16293 16294fi 16295if test -z "$ac_cv_prog_OTOOL64"; then 16296 ac_ct_OTOOL64=$OTOOL64 16297 # Extract the first word of "otool64", so it can be a program name with args. 16298set dummy otool64; ac_word=$2 16299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16300$as_echo_n "checking for $ac_word... " >&6; } 16301if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 16302 $as_echo_n "(cached) " >&6 16303else 16304 if test -n "$ac_ct_OTOOL64"; then 16305 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 16306else 16307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16308for as_dir in $PATH 16309do 16310 IFS=$as_save_IFS 16311 test -z "$as_dir" && as_dir=. 16312 for ac_exec_ext in '' $ac_executable_extensions; do 16313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16314 ac_cv_prog_ac_ct_OTOOL64="otool64" 16315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16316 break 2 16317 fi 16318done 16319 done 16320IFS=$as_save_IFS 16321 16322fi 16323fi 16324ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 16325if test -n "$ac_ct_OTOOL64"; then 16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 16327$as_echo "$ac_ct_OTOOL64" >&6; } 16328else 16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16330$as_echo "no" >&6; } 16331fi 16332 16333 if test "x$ac_ct_OTOOL64" = x; then 16334 OTOOL64=":" 16335 else 16336 case $cross_compiling:$ac_tool_warned in 16337yes:) 16338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16340ac_tool_warned=yes ;; 16341esac 16342 OTOOL64=$ac_ct_OTOOL64 16343 fi 16344else 16345 OTOOL64="$ac_cv_prog_OTOOL64" 16346fi 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 16375$as_echo_n "checking for -single_module linker flag... " >&6; } 16376if ${lt_cv_apple_cc_single_mod+:} false; then : 16377 $as_echo_n "(cached) " >&6 16378else 16379 lt_cv_apple_cc_single_mod=no 16380 if test -z "$LT_MULTI_MODULE"; then 16381 # By default we will add the -single_module flag. You can override 16382 # by either setting the environment variable LT_MULTI_MODULE 16383 # non-empty at configure time, or by adding -multi_module to the 16384 # link flags. 16385 rm -rf libconftest.dylib* 16386 echo "int foo(void){return 1;}" > conftest.c 16387 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 16388-dynamiclib -Wl,-single_module conftest.c" >&5 16389 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 16390 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 16391 _lt_result=$? 16392 # If there is a non-empty error log, and "single_module" 16393 # appears in it, assume the flag caused a linker warning 16394 if test -s conftest.err && $GREP single_module conftest.err; then 16395 cat conftest.err >&5 16396 # Otherwise, if the output was created with a 0 exit code from 16397 # the compiler, it worked. 16398 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 16399 lt_cv_apple_cc_single_mod=yes 16400 else 16401 cat conftest.err >&5 16402 fi 16403 rm -rf libconftest.dylib* 16404 rm -f conftest.* 16405 fi 16406fi 16407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 16408$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 16409 16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 16411$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 16412if ${lt_cv_ld_exported_symbols_list+:} false; then : 16413 $as_echo_n "(cached) " >&6 16414else 16415 lt_cv_ld_exported_symbols_list=no 16416 save_LDFLAGS=$LDFLAGS 16417 echo "_main" > conftest.sym 16418 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 16419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16420/* end confdefs.h. */ 16421 16422int 16423main () 16424{ 16425 16426 ; 16427 return 0; 16428} 16429_ACEOF 16430if ac_fn_c_try_link "$LINENO"; then : 16431 lt_cv_ld_exported_symbols_list=yes 16432else 16433 lt_cv_ld_exported_symbols_list=no 16434fi 16435rm -f core conftest.err conftest.$ac_objext \ 16436 conftest$ac_exeext conftest.$ac_ext 16437 LDFLAGS=$save_LDFLAGS 16438 16439fi 16440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 16441$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 16442 16443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 16444$as_echo_n "checking for -force_load linker flag... " >&6; } 16445if ${lt_cv_ld_force_load+:} false; then : 16446 $as_echo_n "(cached) " >&6 16447else 16448 lt_cv_ld_force_load=no 16449 cat > conftest.c << _LT_EOF 16450int forced_loaded() { return 2;} 16451_LT_EOF 16452 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 16453 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 16454 echo "$AR cru libconftest.a conftest.o" >&5 16455 $AR cru libconftest.a conftest.o 2>&5 16456 echo "$RANLIB libconftest.a" >&5 16457 $RANLIB libconftest.a 2>&5 16458 cat > conftest.c << _LT_EOF 16459int main() { return 0;} 16460_LT_EOF 16461 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 16462 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 16463 _lt_result=$? 16464 if test -s conftest.err && $GREP force_load conftest.err; then 16465 cat conftest.err >&5 16466 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 16467 lt_cv_ld_force_load=yes 16468 else 16469 cat conftest.err >&5 16470 fi 16471 rm -f conftest.err libconftest.a conftest conftest.c 16472 rm -rf conftest.dSYM 16473 16474fi 16475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 16476$as_echo "$lt_cv_ld_force_load" >&6; } 16477 case $host_os in 16478 rhapsody* | darwin1.[012]) 16479 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 16480 darwin1.*) 16481 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 16482 darwin*) # darwin 5.x on 16483 # if running on 10.5 or later, the deployment target defaults 16484 # to the OS version, if on x86, and 10.4, the deployment 16485 # target defaults to 10.4. Don't you love it? 16486 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 16487 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 16488 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 16489 10.[012][,.]*) 16490 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 16491 10.*) 16492 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 16493 esac 16494 ;; 16495 esac 16496 if test yes = "$lt_cv_apple_cc_single_mod"; then 16497 _lt_dar_single_mod='$single_module' 16498 fi 16499 if test yes = "$lt_cv_ld_exported_symbols_list"; then 16500 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 16501 else 16502 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 16503 fi 16504 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 16505 _lt_dsymutil='~$DSYMUTIL $lib || :' 16506 else 16507 _lt_dsymutil= 16508 fi 16509 ;; 16510 esac 16511 16512# func_munge_path_list VARIABLE PATH 16513# ----------------------------------- 16514# VARIABLE is name of variable containing _space_ separated list of 16515# directories to be munged by the contents of PATH, which is string 16516# having a format: 16517# "DIR[:DIR]:" 16518# string "DIR[ DIR]" will be prepended to VARIABLE 16519# ":DIR[:DIR]" 16520# string "DIR[ DIR]" will be appended to VARIABLE 16521# "DIRP[:DIRP]::[DIRA:]DIRA" 16522# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 16523# "DIRA[ DIRA]" will be appended to VARIABLE 16524# "DIR[:DIR]" 16525# VARIABLE will be replaced by "DIR[ DIR]" 16526func_munge_path_list () 16527{ 16528 case x$2 in 16529 x) 16530 ;; 16531 *:) 16532 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 16533 ;; 16534 x:*) 16535 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 16536 ;; 16537 *::*) 16538 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 16539 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 16540 ;; 16541 *) 16542 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 16543 ;; 16544 esac 16545} 16546 16547for ac_header in dlfcn.h 16548do : 16549 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 16550" 16551if test "x$ac_cv_header_dlfcn_h" = xyes; then : 16552 cat >>confdefs.h <<_ACEOF 16553#define HAVE_DLFCN_H 1 16554_ACEOF 16555 16556fi 16557 16558done 16559 16560 16561 16562 16563 16564# Set options 16565# Check whether --enable-static was given. 16566if test "${enable_static+set}" = set; then : 16567 enableval=$enable_static; p=${PACKAGE-default} 16568 case $enableval in 16569 yes) enable_static=yes ;; 16570 no) enable_static=no ;; 16571 *) 16572 enable_static=no 16573 # Look at the argument we got. We use all the common list separators. 16574 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16575 for pkg in $enableval; do 16576 IFS=$lt_save_ifs 16577 if test "X$pkg" = "X$p"; then 16578 enable_static=yes 16579 fi 16580 done 16581 IFS=$lt_save_ifs 16582 ;; 16583 esac 16584else 16585 enable_static=no 16586fi 16587 16588 16589 16590 16591 16592 16593 16594enable_win32_dll=yes 16595 16596case $host in 16597*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 16598 if test -n "$ac_tool_prefix"; then 16599 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 16600set dummy ${ac_tool_prefix}as; ac_word=$2 16601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16602$as_echo_n "checking for $ac_word... " >&6; } 16603if ${ac_cv_prog_AS+:} false; then : 16604 $as_echo_n "(cached) " >&6 16605else 16606 if test -n "$AS"; then 16607 ac_cv_prog_AS="$AS" # Let the user override the test. 16608else 16609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16610for as_dir in $PATH 16611do 16612 IFS=$as_save_IFS 16613 test -z "$as_dir" && as_dir=. 16614 for ac_exec_ext in '' $ac_executable_extensions; do 16615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16616 ac_cv_prog_AS="${ac_tool_prefix}as" 16617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16618 break 2 16619 fi 16620done 16621 done 16622IFS=$as_save_IFS 16623 16624fi 16625fi 16626AS=$ac_cv_prog_AS 16627if test -n "$AS"; then 16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 16629$as_echo "$AS" >&6; } 16630else 16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16632$as_echo "no" >&6; } 16633fi 16634 16635 16636fi 16637if test -z "$ac_cv_prog_AS"; then 16638 ac_ct_AS=$AS 16639 # Extract the first word of "as", so it can be a program name with args. 16640set dummy as; ac_word=$2 16641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16642$as_echo_n "checking for $ac_word... " >&6; } 16643if ${ac_cv_prog_ac_ct_AS+:} false; then : 16644 $as_echo_n "(cached) " >&6 16645else 16646 if test -n "$ac_ct_AS"; then 16647 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 16648else 16649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16650for as_dir in $PATH 16651do 16652 IFS=$as_save_IFS 16653 test -z "$as_dir" && as_dir=. 16654 for ac_exec_ext in '' $ac_executable_extensions; do 16655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16656 ac_cv_prog_ac_ct_AS="as" 16657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16658 break 2 16659 fi 16660done 16661 done 16662IFS=$as_save_IFS 16663 16664fi 16665fi 16666ac_ct_AS=$ac_cv_prog_ac_ct_AS 16667if test -n "$ac_ct_AS"; then 16668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 16669$as_echo "$ac_ct_AS" >&6; } 16670else 16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16672$as_echo "no" >&6; } 16673fi 16674 16675 if test "x$ac_ct_AS" = x; then 16676 AS="false" 16677 else 16678 case $cross_compiling:$ac_tool_warned in 16679yes:) 16680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16682ac_tool_warned=yes ;; 16683esac 16684 AS=$ac_ct_AS 16685 fi 16686else 16687 AS="$ac_cv_prog_AS" 16688fi 16689 16690 if test -n "$ac_tool_prefix"; then 16691 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 16692set dummy ${ac_tool_prefix}dlltool; ac_word=$2 16693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16694$as_echo_n "checking for $ac_word... " >&6; } 16695if ${ac_cv_prog_DLLTOOL+:} false; then : 16696 $as_echo_n "(cached) " >&6 16697else 16698 if test -n "$DLLTOOL"; then 16699 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 16700else 16701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16702for as_dir in $PATH 16703do 16704 IFS=$as_save_IFS 16705 test -z "$as_dir" && as_dir=. 16706 for ac_exec_ext in '' $ac_executable_extensions; do 16707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16708 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 16709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16710 break 2 16711 fi 16712done 16713 done 16714IFS=$as_save_IFS 16715 16716fi 16717fi 16718DLLTOOL=$ac_cv_prog_DLLTOOL 16719if test -n "$DLLTOOL"; then 16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 16721$as_echo "$DLLTOOL" >&6; } 16722else 16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16724$as_echo "no" >&6; } 16725fi 16726 16727 16728fi 16729if test -z "$ac_cv_prog_DLLTOOL"; then 16730 ac_ct_DLLTOOL=$DLLTOOL 16731 # Extract the first word of "dlltool", so it can be a program name with args. 16732set dummy dlltool; ac_word=$2 16733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16734$as_echo_n "checking for $ac_word... " >&6; } 16735if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 16736 $as_echo_n "(cached) " >&6 16737else 16738 if test -n "$ac_ct_DLLTOOL"; then 16739 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 16740else 16741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16742for as_dir in $PATH 16743do 16744 IFS=$as_save_IFS 16745 test -z "$as_dir" && as_dir=. 16746 for ac_exec_ext in '' $ac_executable_extensions; do 16747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16748 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 16749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16750 break 2 16751 fi 16752done 16753 done 16754IFS=$as_save_IFS 16755 16756fi 16757fi 16758ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 16759if test -n "$ac_ct_DLLTOOL"; then 16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 16761$as_echo "$ac_ct_DLLTOOL" >&6; } 16762else 16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16764$as_echo "no" >&6; } 16765fi 16766 16767 if test "x$ac_ct_DLLTOOL" = x; then 16768 DLLTOOL="false" 16769 else 16770 case $cross_compiling:$ac_tool_warned in 16771yes:) 16772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16774ac_tool_warned=yes ;; 16775esac 16776 DLLTOOL=$ac_ct_DLLTOOL 16777 fi 16778else 16779 DLLTOOL="$ac_cv_prog_DLLTOOL" 16780fi 16781 16782 if test -n "$ac_tool_prefix"; then 16783 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 16784set dummy ${ac_tool_prefix}objdump; ac_word=$2 16785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16786$as_echo_n "checking for $ac_word... " >&6; } 16787if ${ac_cv_prog_OBJDUMP+:} false; then : 16788 $as_echo_n "(cached) " >&6 16789else 16790 if test -n "$OBJDUMP"; then 16791 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 16792else 16793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16794for as_dir in $PATH 16795do 16796 IFS=$as_save_IFS 16797 test -z "$as_dir" && as_dir=. 16798 for ac_exec_ext in '' $ac_executable_extensions; do 16799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16800 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 16801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16802 break 2 16803 fi 16804done 16805 done 16806IFS=$as_save_IFS 16807 16808fi 16809fi 16810OBJDUMP=$ac_cv_prog_OBJDUMP 16811if test -n "$OBJDUMP"; then 16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 16813$as_echo "$OBJDUMP" >&6; } 16814else 16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16816$as_echo "no" >&6; } 16817fi 16818 16819 16820fi 16821if test -z "$ac_cv_prog_OBJDUMP"; then 16822 ac_ct_OBJDUMP=$OBJDUMP 16823 # Extract the first word of "objdump", so it can be a program name with args. 16824set dummy objdump; ac_word=$2 16825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16826$as_echo_n "checking for $ac_word... " >&6; } 16827if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 16828 $as_echo_n "(cached) " >&6 16829else 16830 if test -n "$ac_ct_OBJDUMP"; then 16831 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 16832else 16833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16834for as_dir in $PATH 16835do 16836 IFS=$as_save_IFS 16837 test -z "$as_dir" && as_dir=. 16838 for ac_exec_ext in '' $ac_executable_extensions; do 16839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16840 ac_cv_prog_ac_ct_OBJDUMP="objdump" 16841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16842 break 2 16843 fi 16844done 16845 done 16846IFS=$as_save_IFS 16847 16848fi 16849fi 16850ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 16851if test -n "$ac_ct_OBJDUMP"; then 16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 16853$as_echo "$ac_ct_OBJDUMP" >&6; } 16854else 16855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16856$as_echo "no" >&6; } 16857fi 16858 16859 if test "x$ac_ct_OBJDUMP" = x; then 16860 OBJDUMP="false" 16861 else 16862 case $cross_compiling:$ac_tool_warned in 16863yes:) 16864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16866ac_tool_warned=yes ;; 16867esac 16868 OBJDUMP=$ac_ct_OBJDUMP 16869 fi 16870else 16871 OBJDUMP="$ac_cv_prog_OBJDUMP" 16872fi 16873 16874 ;; 16875esac 16876 16877test -z "$AS" && AS=as 16878 16879 16880 16881 16882 16883test -z "$DLLTOOL" && DLLTOOL=dlltool 16884 16885 16886 16887 16888 16889test -z "$OBJDUMP" && OBJDUMP=objdump 16890 16891 16892 16893 16894 16895 16896 16897 enable_dlopen=no 16898 16899 16900 16901 # Check whether --enable-shared was given. 16902if test "${enable_shared+set}" = set; then : 16903 enableval=$enable_shared; p=${PACKAGE-default} 16904 case $enableval in 16905 yes) enable_shared=yes ;; 16906 no) enable_shared=no ;; 16907 *) 16908 enable_shared=no 16909 # Look at the argument we got. We use all the common list separators. 16910 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16911 for pkg in $enableval; do 16912 IFS=$lt_save_ifs 16913 if test "X$pkg" = "X$p"; then 16914 enable_shared=yes 16915 fi 16916 done 16917 IFS=$lt_save_ifs 16918 ;; 16919 esac 16920else 16921 enable_shared=yes 16922fi 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934# Check whether --with-pic was given. 16935if test "${with_pic+set}" = set; then : 16936 withval=$with_pic; lt_p=${PACKAGE-default} 16937 case $withval in 16938 yes|no) pic_mode=$withval ;; 16939 *) 16940 pic_mode=default 16941 # Look at the argument we got. We use all the common list separators. 16942 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16943 for lt_pkg in $withval; do 16944 IFS=$lt_save_ifs 16945 if test "X$lt_pkg" = "X$lt_p"; then 16946 pic_mode=yes 16947 fi 16948 done 16949 IFS=$lt_save_ifs 16950 ;; 16951 esac 16952else 16953 pic_mode=default 16954fi 16955 16956 16957 16958 16959 16960 16961 16962 16963 # Check whether --enable-fast-install was given. 16964if test "${enable_fast_install+set}" = set; then : 16965 enableval=$enable_fast_install; p=${PACKAGE-default} 16966 case $enableval in 16967 yes) enable_fast_install=yes ;; 16968 no) enable_fast_install=no ;; 16969 *) 16970 enable_fast_install=no 16971 # Look at the argument we got. We use all the common list separators. 16972 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16973 for pkg in $enableval; do 16974 IFS=$lt_save_ifs 16975 if test "X$pkg" = "X$p"; then 16976 enable_fast_install=yes 16977 fi 16978 done 16979 IFS=$lt_save_ifs 16980 ;; 16981 esac 16982else 16983 enable_fast_install=yes 16984fi 16985 16986 16987 16988 16989 16990 16991 16992 16993 shared_archive_member_spec= 16994case $host,$enable_shared in 16995power*-*-aix[5-9]*,yes) 16996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 16997$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 16998 16999# Check whether --with-aix-soname was given. 17000if test "${with_aix_soname+set}" = set; then : 17001 withval=$with_aix_soname; case $withval in 17002 aix|svr4|both) 17003 ;; 17004 *) 17005 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 17006 ;; 17007 esac 17008 lt_cv_with_aix_soname=$with_aix_soname 17009else 17010 if ${lt_cv_with_aix_soname+:} false; then : 17011 $as_echo_n "(cached) " >&6 17012else 17013 lt_cv_with_aix_soname=aix 17014fi 17015 17016 with_aix_soname=$lt_cv_with_aix_soname 17017fi 17018 17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 17020$as_echo "$with_aix_soname" >&6; } 17021 if test aix != "$with_aix_soname"; then 17022 # For the AIX way of multilib, we name the shared archive member 17023 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 17024 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 17025 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 17026 # the AIX toolchain works better with OBJECT_MODE set (default 32). 17027 if test 64 = "${OBJECT_MODE-32}"; then 17028 shared_archive_member_spec=shr_64 17029 else 17030 shared_archive_member_spec=shr 17031 fi 17032 fi 17033 ;; 17034*) 17035 with_aix_soname=aix 17036 ;; 17037esac 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048# This can be used to rebuild libtool when needed 17049LIBTOOL_DEPS=$ltmain 17050 17051# Always use our own libtool. 17052LIBTOOL='$(SHELL) $(top_builddir)/libtool' 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083test -z "$LN_S" && LN_S="ln -s" 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098if test -n "${ZSH_VERSION+set}"; then 17099 setopt NO_GLOB_SUBST 17100fi 17101 17102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 17103$as_echo_n "checking for objdir... " >&6; } 17104if ${lt_cv_objdir+:} false; then : 17105 $as_echo_n "(cached) " >&6 17106else 17107 rm -f .libs 2>/dev/null 17108mkdir .libs 2>/dev/null 17109if test -d .libs; then 17110 lt_cv_objdir=.libs 17111else 17112 # MS-DOS does not allow filenames that begin with a dot. 17113 lt_cv_objdir=_libs 17114fi 17115rmdir .libs 2>/dev/null 17116fi 17117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 17118$as_echo "$lt_cv_objdir" >&6; } 17119objdir=$lt_cv_objdir 17120 17121 17122 17123 17124 17125cat >>confdefs.h <<_ACEOF 17126#define LT_OBJDIR "$lt_cv_objdir/" 17127_ACEOF 17128 17129 17130 17131 17132case $host_os in 17133aix3*) 17134 # AIX sometimes has problems with the GCC collect2 program. For some 17135 # reason, if we set the COLLECT_NAMES environment variable, the problems 17136 # vanish in a puff of smoke. 17137 if test set != "${COLLECT_NAMES+set}"; then 17138 COLLECT_NAMES= 17139 export COLLECT_NAMES 17140 fi 17141 ;; 17142esac 17143 17144# Global variables: 17145ofile=libtool 17146can_build_shared=yes 17147 17148# All known linkers require a '.a' archive for static linking (except MSVC, 17149# which needs '.lib'). 17150libext=a 17151 17152with_gnu_ld=$lt_cv_prog_gnu_ld 17153 17154old_CC=$CC 17155old_CFLAGS=$CFLAGS 17156 17157# Set sane defaults for various variables 17158test -z "$CC" && CC=cc 17159test -z "$LTCC" && LTCC=$CC 17160test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 17161test -z "$LD" && LD=ld 17162test -z "$ac_objext" && ac_objext=o 17163 17164func_cc_basename $compiler 17165cc_basename=$func_cc_basename_result 17166 17167 17168# Only perform the check for file, if the check method requires it 17169test -z "$MAGIC_CMD" && MAGIC_CMD=file 17170case $deplibs_check_method in 17171file_magic*) 17172 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 17173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 17174$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 17175if ${lt_cv_path_MAGIC_CMD+:} false; then : 17176 $as_echo_n "(cached) " >&6 17177else 17178 case $MAGIC_CMD in 17179[\\/*] | ?:[\\/]*) 17180 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 17181 ;; 17182*) 17183 lt_save_MAGIC_CMD=$MAGIC_CMD 17184 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 17185 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 17186 for ac_dir in $ac_dummy; do 17187 IFS=$lt_save_ifs 17188 test -z "$ac_dir" && ac_dir=. 17189 if test -f "$ac_dir/${ac_tool_prefix}file"; then 17190 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 17191 if test -n "$file_magic_test_file"; then 17192 case $deplibs_check_method in 17193 "file_magic "*) 17194 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 17195 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 17196 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 17197 $EGREP "$file_magic_regex" > /dev/null; then 17198 : 17199 else 17200 cat <<_LT_EOF 1>&2 17201 17202*** Warning: the command libtool uses to detect shared libraries, 17203*** $file_magic_cmd, produces output that libtool cannot recognize. 17204*** The result is that libtool may fail to recognize shared libraries 17205*** as such. This will affect the creation of libtool libraries that 17206*** depend on shared libraries, but programs linked with such libtool 17207*** libraries will work regardless of this problem. Nevertheless, you 17208*** may want to report the problem to your system manager and/or to 17209*** bug-libtool@gnu.org 17210 17211_LT_EOF 17212 fi ;; 17213 esac 17214 fi 17215 break 17216 fi 17217 done 17218 IFS=$lt_save_ifs 17219 MAGIC_CMD=$lt_save_MAGIC_CMD 17220 ;; 17221esac 17222fi 17223 17224MAGIC_CMD=$lt_cv_path_MAGIC_CMD 17225if test -n "$MAGIC_CMD"; then 17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 17227$as_echo "$MAGIC_CMD" >&6; } 17228else 17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17230$as_echo "no" >&6; } 17231fi 17232 17233 17234 17235 17236 17237if test -z "$lt_cv_path_MAGIC_CMD"; then 17238 if test -n "$ac_tool_prefix"; then 17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 17240$as_echo_n "checking for file... " >&6; } 17241if ${lt_cv_path_MAGIC_CMD+:} false; then : 17242 $as_echo_n "(cached) " >&6 17243else 17244 case $MAGIC_CMD in 17245[\\/*] | ?:[\\/]*) 17246 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 17247 ;; 17248*) 17249 lt_save_MAGIC_CMD=$MAGIC_CMD 17250 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 17251 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 17252 for ac_dir in $ac_dummy; do 17253 IFS=$lt_save_ifs 17254 test -z "$ac_dir" && ac_dir=. 17255 if test -f "$ac_dir/file"; then 17256 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 17257 if test -n "$file_magic_test_file"; then 17258 case $deplibs_check_method in 17259 "file_magic "*) 17260 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 17261 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 17262 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 17263 $EGREP "$file_magic_regex" > /dev/null; then 17264 : 17265 else 17266 cat <<_LT_EOF 1>&2 17267 17268*** Warning: the command libtool uses to detect shared libraries, 17269*** $file_magic_cmd, produces output that libtool cannot recognize. 17270*** The result is that libtool may fail to recognize shared libraries 17271*** as such. This will affect the creation of libtool libraries that 17272*** depend on shared libraries, but programs linked with such libtool 17273*** libraries will work regardless of this problem. Nevertheless, you 17274*** may want to report the problem to your system manager and/or to 17275*** bug-libtool@gnu.org 17276 17277_LT_EOF 17278 fi ;; 17279 esac 17280 fi 17281 break 17282 fi 17283 done 17284 IFS=$lt_save_ifs 17285 MAGIC_CMD=$lt_save_MAGIC_CMD 17286 ;; 17287esac 17288fi 17289 17290MAGIC_CMD=$lt_cv_path_MAGIC_CMD 17291if test -n "$MAGIC_CMD"; then 17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 17293$as_echo "$MAGIC_CMD" >&6; } 17294else 17295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17296$as_echo "no" >&6; } 17297fi 17298 17299 17300 else 17301 MAGIC_CMD=: 17302 fi 17303fi 17304 17305 fi 17306 ;; 17307esac 17308 17309# Use C for the default configuration in the libtool script 17310 17311lt_save_CC=$CC 17312ac_ext=c 17313ac_cpp='$CPP $CPPFLAGS' 17314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17316ac_compiler_gnu=$ac_cv_c_compiler_gnu 17317 17318 17319# Source file extension for C test sources. 17320ac_ext=c 17321 17322# Object file extension for compiled C test sources. 17323objext=o 17324objext=$objext 17325 17326# Code to be used in simple compile tests 17327lt_simple_compile_test_code="int some_variable = 0;" 17328 17329# Code to be used in simple link tests 17330lt_simple_link_test_code='int main(){return(0);}' 17331 17332 17333 17334 17335 17336 17337 17338# If no C compiler was specified, use CC. 17339LTCC=${LTCC-"$CC"} 17340 17341# If no C compiler flags were specified, use CFLAGS. 17342LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17343 17344# Allow CC to be a program name with arguments. 17345compiler=$CC 17346 17347# Save the default compiler, since it gets overwritten when the other 17348# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 17349compiler_DEFAULT=$CC 17350 17351# save warnings/boilerplate of simple test code 17352ac_outfile=conftest.$ac_objext 17353echo "$lt_simple_compile_test_code" >conftest.$ac_ext 17354eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17355_lt_compiler_boilerplate=`cat conftest.err` 17356$RM conftest* 17357 17358ac_outfile=conftest.$ac_objext 17359echo "$lt_simple_link_test_code" >conftest.$ac_ext 17360eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17361_lt_linker_boilerplate=`cat conftest.err` 17362$RM -r conftest* 17363 17364 17365## CAVEAT EMPTOR: 17366## There is no encapsulation within the following macros, do not change 17367## the running order or otherwise move them around unless you know exactly 17368## what you are doing... 17369if test -n "$compiler"; then 17370 17371lt_prog_compiler_no_builtin_flag= 17372 17373if test yes = "$GCC"; then 17374 case $cc_basename in 17375 nvcc*) 17376 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 17377 *) 17378 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 17379 esac 17380 17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17382$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 17383if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 17384 $as_echo_n "(cached) " >&6 17385else 17386 lt_cv_prog_compiler_rtti_exceptions=no 17387 ac_outfile=conftest.$ac_objext 17388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17389 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 17390 # Insert the option either (1) after the last *FLAGS variable, or 17391 # (2) before a word containing "conftest.", or (3) at the end. 17392 # Note that $ac_compile itself does not contain backslashes and begins 17393 # with a dollar sign (not a hyphen), so the echo should work correctly. 17394 # The option is referenced via a variable to avoid confusing sed. 17395 lt_compile=`echo "$ac_compile" | $SED \ 17396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17398 -e 's:$: $lt_compiler_flag:'` 17399 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17400 (eval "$lt_compile" 2>conftest.err) 17401 ac_status=$? 17402 cat conftest.err >&5 17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17404 if (exit $ac_status) && test -s "$ac_outfile"; then 17405 # The compiler can only warn and ignore the option if not recognized 17406 # So say no if there are warnings other than the usual output. 17407 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17408 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17409 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17410 lt_cv_prog_compiler_rtti_exceptions=yes 17411 fi 17412 fi 17413 $RM conftest* 17414 17415fi 17416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17417$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 17418 17419if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 17420 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 17421else 17422 : 17423fi 17424 17425fi 17426 17427 17428 17429 17430 17431 17432 lt_prog_compiler_wl= 17433lt_prog_compiler_pic= 17434lt_prog_compiler_static= 17435 17436 17437 if test yes = "$GCC"; then 17438 lt_prog_compiler_wl='-Wl,' 17439 lt_prog_compiler_static='-static' 17440 17441 case $host_os in 17442 aix*) 17443 # All AIX code is PIC. 17444 if test ia64 = "$host_cpu"; then 17445 # AIX 5 now supports IA64 processor 17446 lt_prog_compiler_static='-Bstatic' 17447 fi 17448 lt_prog_compiler_pic='-fPIC' 17449 ;; 17450 17451 amigaos*) 17452 case $host_cpu in 17453 powerpc) 17454 # see comment about AmigaOS4 .so support 17455 lt_prog_compiler_pic='-fPIC' 17456 ;; 17457 m68k) 17458 # FIXME: we need at least 68020 code to build shared libraries, but 17459 # adding the '-m68020' flag to GCC prevents building anything better, 17460 # like '-m68040'. 17461 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 17462 ;; 17463 esac 17464 ;; 17465 17466 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17467 # PIC is the default for these OSes. 17468 ;; 17469 17470 mingw* | cygwin* | pw32* | os2* | cegcc*) 17471 # This hack is so that the source file can tell whether it is being 17472 # built for inclusion in a dll (and should export symbols for example). 17473 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17474 # (--disable-auto-import) libraries 17475 lt_prog_compiler_pic='-DDLL_EXPORT' 17476 case $host_os in 17477 os2*) 17478 lt_prog_compiler_static='$wl-static' 17479 ;; 17480 esac 17481 ;; 17482 17483 darwin* | rhapsody*) 17484 # PIC is the default on this platform 17485 # Common symbols not allowed in MH_DYLIB files 17486 lt_prog_compiler_pic='-fno-common' 17487 ;; 17488 17489 haiku*) 17490 # PIC is the default for Haiku. 17491 # The "-static" flag exists, but is broken. 17492 lt_prog_compiler_static= 17493 ;; 17494 17495 hpux*) 17496 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 17497 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 17498 # sets the default TLS model and affects inlining. 17499 case $host_cpu in 17500 hppa*64*) 17501 # +Z the default 17502 ;; 17503 *) 17504 lt_prog_compiler_pic='-fPIC' 17505 ;; 17506 esac 17507 ;; 17508 17509 interix[3-9]*) 17510 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17511 # Instead, we relocate shared libraries at runtime. 17512 ;; 17513 17514 msdosdjgpp*) 17515 # Just because we use GCC doesn't mean we suddenly get shared libraries 17516 # on systems that don't support them. 17517 lt_prog_compiler_can_build_shared=no 17518 enable_shared=no 17519 ;; 17520 17521 *nto* | *qnx*) 17522 # QNX uses GNU C++, but need to define -shared option too, otherwise 17523 # it will coredump. 17524 lt_prog_compiler_pic='-fPIC -shared' 17525 ;; 17526 17527 sysv4*MP*) 17528 if test -d /usr/nec; then 17529 lt_prog_compiler_pic=-Kconform_pic 17530 fi 17531 ;; 17532 17533 *) 17534 lt_prog_compiler_pic='-fPIC' 17535 ;; 17536 esac 17537 17538 case $cc_basename in 17539 nvcc*) # Cuda Compiler Driver 2.2 17540 lt_prog_compiler_wl='-Xlinker ' 17541 if test -n "$lt_prog_compiler_pic"; then 17542 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 17543 fi 17544 ;; 17545 esac 17546 else 17547 # PORTME Check for flag to pass linker flags through the system compiler. 17548 case $host_os in 17549 aix*) 17550 lt_prog_compiler_wl='-Wl,' 17551 if test ia64 = "$host_cpu"; then 17552 # AIX 5 now supports IA64 processor 17553 lt_prog_compiler_static='-Bstatic' 17554 else 17555 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 17556 fi 17557 ;; 17558 17559 darwin* | rhapsody*) 17560 # PIC is the default on this platform 17561 # Common symbols not allowed in MH_DYLIB files 17562 lt_prog_compiler_pic='-fno-common' 17563 case $cc_basename in 17564 nagfor*) 17565 # NAG Fortran compiler 17566 lt_prog_compiler_wl='-Wl,-Wl,,' 17567 lt_prog_compiler_pic='-PIC' 17568 lt_prog_compiler_static='-Bstatic' 17569 ;; 17570 esac 17571 ;; 17572 17573 mingw* | cygwin* | pw32* | os2* | cegcc*) 17574 # This hack is so that the source file can tell whether it is being 17575 # built for inclusion in a dll (and should export symbols for example). 17576 lt_prog_compiler_pic='-DDLL_EXPORT' 17577 case $host_os in 17578 os2*) 17579 lt_prog_compiler_static='$wl-static' 17580 ;; 17581 esac 17582 ;; 17583 17584 hpux9* | hpux10* | hpux11*) 17585 lt_prog_compiler_wl='-Wl,' 17586 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17587 # not for PA HP-UX. 17588 case $host_cpu in 17589 hppa*64*|ia64*) 17590 # +Z the default 17591 ;; 17592 *) 17593 lt_prog_compiler_pic='+Z' 17594 ;; 17595 esac 17596 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17597 lt_prog_compiler_static='$wl-a ${wl}archive' 17598 ;; 17599 17600 irix5* | irix6* | nonstopux*) 17601 lt_prog_compiler_wl='-Wl,' 17602 # PIC (with -KPIC) is the default. 17603 lt_prog_compiler_static='-non_shared' 17604 ;; 17605 17606 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17607 case $cc_basename in 17608 # old Intel for x86_64, which still supported -KPIC. 17609 ecc*) 17610 lt_prog_compiler_wl='-Wl,' 17611 lt_prog_compiler_pic='-KPIC' 17612 lt_prog_compiler_static='-static' 17613 ;; 17614 # icc used to be incompatible with GCC. 17615 # ICC 10 doesn't accept -KPIC any more. 17616 icc* | ifort*) 17617 lt_prog_compiler_wl='-Wl,' 17618 lt_prog_compiler_pic='-fPIC' 17619 lt_prog_compiler_static='-static' 17620 ;; 17621 # Lahey Fortran 8.1. 17622 lf95*) 17623 lt_prog_compiler_wl='-Wl,' 17624 lt_prog_compiler_pic='--shared' 17625 lt_prog_compiler_static='--static' 17626 ;; 17627 nagfor*) 17628 # NAG Fortran compiler 17629 lt_prog_compiler_wl='-Wl,-Wl,,' 17630 lt_prog_compiler_pic='-PIC' 17631 lt_prog_compiler_static='-Bstatic' 17632 ;; 17633 tcc*) 17634 # Fabrice Bellard et al's Tiny C Compiler 17635 lt_prog_compiler_wl='-Wl,' 17636 lt_prog_compiler_pic='-fPIC' 17637 lt_prog_compiler_static='-static' 17638 ;; 17639 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 17640 # Portland Group compilers (*not* the Pentium gcc compiler, 17641 # which looks to be a dead project) 17642 lt_prog_compiler_wl='-Wl,' 17643 lt_prog_compiler_pic='-fpic' 17644 lt_prog_compiler_static='-Bstatic' 17645 ;; 17646 ccc*) 17647 lt_prog_compiler_wl='-Wl,' 17648 # All Alpha code is PIC. 17649 lt_prog_compiler_static='-non_shared' 17650 ;; 17651 xl* | bgxl* | bgf* | mpixl*) 17652 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 17653 lt_prog_compiler_wl='-Wl,' 17654 lt_prog_compiler_pic='-qpic' 17655 lt_prog_compiler_static='-qstaticlink' 17656 ;; 17657 *) 17658 case `$CC -V 2>&1 | sed 5q` in 17659 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 17660 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17661 lt_prog_compiler_pic='-KPIC' 17662 lt_prog_compiler_static='-Bstatic' 17663 lt_prog_compiler_wl='' 17664 ;; 17665 *Sun\ F* | *Sun*Fortran*) 17666 lt_prog_compiler_pic='-KPIC' 17667 lt_prog_compiler_static='-Bstatic' 17668 lt_prog_compiler_wl='-Qoption ld ' 17669 ;; 17670 *Sun\ C*) 17671 # Sun C 5.9 17672 lt_prog_compiler_pic='-KPIC' 17673 lt_prog_compiler_static='-Bstatic' 17674 lt_prog_compiler_wl='-Wl,' 17675 ;; 17676 *Intel*\ [CF]*Compiler*) 17677 lt_prog_compiler_wl='-Wl,' 17678 lt_prog_compiler_pic='-fPIC' 17679 lt_prog_compiler_static='-static' 17680 ;; 17681 *Portland\ Group*) 17682 lt_prog_compiler_wl='-Wl,' 17683 lt_prog_compiler_pic='-fpic' 17684 lt_prog_compiler_static='-Bstatic' 17685 ;; 17686 esac 17687 ;; 17688 esac 17689 ;; 17690 17691 newsos6) 17692 lt_prog_compiler_pic='-KPIC' 17693 lt_prog_compiler_static='-Bstatic' 17694 ;; 17695 17696 *nto* | *qnx*) 17697 # QNX uses GNU C++, but need to define -shared option too, otherwise 17698 # it will coredump. 17699 lt_prog_compiler_pic='-fPIC -shared' 17700 ;; 17701 17702 osf3* | osf4* | osf5*) 17703 lt_prog_compiler_wl='-Wl,' 17704 # All OSF/1 code is PIC. 17705 lt_prog_compiler_static='-non_shared' 17706 ;; 17707 17708 rdos*) 17709 lt_prog_compiler_static='-non_shared' 17710 ;; 17711 17712 solaris*) 17713 lt_prog_compiler_pic='-KPIC' 17714 lt_prog_compiler_static='-Bstatic' 17715 case $cc_basename in 17716 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 17717 lt_prog_compiler_wl='-Qoption ld ';; 17718 *) 17719 lt_prog_compiler_wl='-Wl,';; 17720 esac 17721 ;; 17722 17723 sunos4*) 17724 lt_prog_compiler_wl='-Qoption ld ' 17725 lt_prog_compiler_pic='-PIC' 17726 lt_prog_compiler_static='-Bstatic' 17727 ;; 17728 17729 sysv4 | sysv4.2uw2* | sysv4.3*) 17730 lt_prog_compiler_wl='-Wl,' 17731 lt_prog_compiler_pic='-KPIC' 17732 lt_prog_compiler_static='-Bstatic' 17733 ;; 17734 17735 sysv4*MP*) 17736 if test -d /usr/nec; then 17737 lt_prog_compiler_pic='-Kconform_pic' 17738 lt_prog_compiler_static='-Bstatic' 17739 fi 17740 ;; 17741 17742 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17743 lt_prog_compiler_wl='-Wl,' 17744 lt_prog_compiler_pic='-KPIC' 17745 lt_prog_compiler_static='-Bstatic' 17746 ;; 17747 17748 unicos*) 17749 lt_prog_compiler_wl='-Wl,' 17750 lt_prog_compiler_can_build_shared=no 17751 ;; 17752 17753 uts4*) 17754 lt_prog_compiler_pic='-pic' 17755 lt_prog_compiler_static='-Bstatic' 17756 ;; 17757 17758 *) 17759 lt_prog_compiler_can_build_shared=no 17760 ;; 17761 esac 17762 fi 17763 17764case $host_os in 17765 # For platforms that do not support PIC, -DPIC is meaningless: 17766 *djgpp*) 17767 lt_prog_compiler_pic= 17768 ;; 17769 *) 17770 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 17771 ;; 17772esac 17773 17774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 17775$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 17776if ${lt_cv_prog_compiler_pic+:} false; then : 17777 $as_echo_n "(cached) " >&6 17778else 17779 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 17780fi 17781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 17782$as_echo "$lt_cv_prog_compiler_pic" >&6; } 17783lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 17784 17785# 17786# Check to make sure the PIC flag actually works. 17787# 17788if test -n "$lt_prog_compiler_pic"; then 17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 17790$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 17791if ${lt_cv_prog_compiler_pic_works+:} false; then : 17792 $as_echo_n "(cached) " >&6 17793else 17794 lt_cv_prog_compiler_pic_works=no 17795 ac_outfile=conftest.$ac_objext 17796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17797 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 17798 # Insert the option either (1) after the last *FLAGS variable, or 17799 # (2) before a word containing "conftest.", or (3) at the end. 17800 # Note that $ac_compile itself does not contain backslashes and begins 17801 # with a dollar sign (not a hyphen), so the echo should work correctly. 17802 # The option is referenced via a variable to avoid confusing sed. 17803 lt_compile=`echo "$ac_compile" | $SED \ 17804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17806 -e 's:$: $lt_compiler_flag:'` 17807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17808 (eval "$lt_compile" 2>conftest.err) 17809 ac_status=$? 17810 cat conftest.err >&5 17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17812 if (exit $ac_status) && test -s "$ac_outfile"; then 17813 # The compiler can only warn and ignore the option if not recognized 17814 # So say no if there are warnings other than the usual output. 17815 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17817 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17818 lt_cv_prog_compiler_pic_works=yes 17819 fi 17820 fi 17821 $RM conftest* 17822 17823fi 17824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 17825$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 17826 17827if test yes = "$lt_cv_prog_compiler_pic_works"; then 17828 case $lt_prog_compiler_pic in 17829 "" | " "*) ;; 17830 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 17831 esac 17832else 17833 lt_prog_compiler_pic= 17834 lt_prog_compiler_can_build_shared=no 17835fi 17836 17837fi 17838 17839 17840 17841 17842 17843 17844 17845 17846 17847 17848 17849# 17850# Check to make sure the static flag actually works. 17851# 17852wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 17853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17854$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17855if ${lt_cv_prog_compiler_static_works+:} false; then : 17856 $as_echo_n "(cached) " >&6 17857else 17858 lt_cv_prog_compiler_static_works=no 17859 save_LDFLAGS=$LDFLAGS 17860 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17861 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17862 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17863 # The linker can only warn and ignore the option if not recognized 17864 # So say no if there are warnings 17865 if test -s conftest.err; then 17866 # Append any errors to the config.log. 17867 cat conftest.err 1>&5 17868 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17870 if diff conftest.exp conftest.er2 >/dev/null; then 17871 lt_cv_prog_compiler_static_works=yes 17872 fi 17873 else 17874 lt_cv_prog_compiler_static_works=yes 17875 fi 17876 fi 17877 $RM -r conftest* 17878 LDFLAGS=$save_LDFLAGS 17879 17880fi 17881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 17882$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 17883 17884if test yes = "$lt_cv_prog_compiler_static_works"; then 17885 : 17886else 17887 lt_prog_compiler_static= 17888fi 17889 17890 17891 17892 17893 17894 17895 17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17897$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17898if ${lt_cv_prog_compiler_c_o+:} false; then : 17899 $as_echo_n "(cached) " >&6 17900else 17901 lt_cv_prog_compiler_c_o=no 17902 $RM -r conftest 2>/dev/null 17903 mkdir conftest 17904 cd conftest 17905 mkdir out 17906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17907 17908 lt_compiler_flag="-o out/conftest2.$ac_objext" 17909 # Insert the option either (1) after the last *FLAGS variable, or 17910 # (2) before a word containing "conftest.", or (3) at the end. 17911 # Note that $ac_compile itself does not contain backslashes and begins 17912 # with a dollar sign (not a hyphen), so the echo should work correctly. 17913 lt_compile=`echo "$ac_compile" | $SED \ 17914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17916 -e 's:$: $lt_compiler_flag:'` 17917 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17918 (eval "$lt_compile" 2>out/conftest.err) 17919 ac_status=$? 17920 cat out/conftest.err >&5 17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17922 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17923 then 17924 # The compiler can only warn and ignore the option if not recognized 17925 # So say no if there are warnings 17926 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17927 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17928 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17929 lt_cv_prog_compiler_c_o=yes 17930 fi 17931 fi 17932 chmod u+w . 2>&5 17933 $RM conftest* 17934 # SGI C++ compiler will create directory out/ii_files/ for 17935 # template instantiation 17936 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17937 $RM out/* && rmdir out 17938 cd .. 17939 $RM -r conftest 17940 $RM conftest* 17941 17942fi 17943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 17944$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 17945 17946 17947 17948 17949 17950 17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17952$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17953if ${lt_cv_prog_compiler_c_o+:} false; then : 17954 $as_echo_n "(cached) " >&6 17955else 17956 lt_cv_prog_compiler_c_o=no 17957 $RM -r conftest 2>/dev/null 17958 mkdir conftest 17959 cd conftest 17960 mkdir out 17961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17962 17963 lt_compiler_flag="-o out/conftest2.$ac_objext" 17964 # Insert the option either (1) after the last *FLAGS variable, or 17965 # (2) before a word containing "conftest.", or (3) at the end. 17966 # Note that $ac_compile itself does not contain backslashes and begins 17967 # with a dollar sign (not a hyphen), so the echo should work correctly. 17968 lt_compile=`echo "$ac_compile" | $SED \ 17969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17971 -e 's:$: $lt_compiler_flag:'` 17972 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17973 (eval "$lt_compile" 2>out/conftest.err) 17974 ac_status=$? 17975 cat out/conftest.err >&5 17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17977 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17978 then 17979 # The compiler can only warn and ignore the option if not recognized 17980 # So say no if there are warnings 17981 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17982 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17983 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17984 lt_cv_prog_compiler_c_o=yes 17985 fi 17986 fi 17987 chmod u+w . 2>&5 17988 $RM conftest* 17989 # SGI C++ compiler will create directory out/ii_files/ for 17990 # template instantiation 17991 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17992 $RM out/* && rmdir out 17993 cd .. 17994 $RM -r conftest 17995 $RM conftest* 17996 17997fi 17998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 17999$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 18000 18001 18002 18003 18004hard_links=nottested 18005if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 18006 # do not overwrite the value of need_locks provided by the user 18007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 18008$as_echo_n "checking if we can lock with hard links... " >&6; } 18009 hard_links=yes 18010 $RM conftest* 18011 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18012 touch conftest.a 18013 ln conftest.a conftest.b 2>&5 || hard_links=no 18014 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 18016$as_echo "$hard_links" >&6; } 18017 if test no = "$hard_links"; then 18018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 18019$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 18020 need_locks=warn 18021 fi 18022else 18023 need_locks=no 18024fi 18025 18026 18027 18028 18029 18030 18031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18032$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 18033 18034 runpath_var= 18035 allow_undefined_flag= 18036 always_export_symbols=no 18037 archive_cmds= 18038 archive_expsym_cmds= 18039 compiler_needs_object=no 18040 enable_shared_with_static_runtimes=no 18041 export_dynamic_flag_spec= 18042 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18043 hardcode_automatic=no 18044 hardcode_direct=no 18045 hardcode_direct_absolute=no 18046 hardcode_libdir_flag_spec= 18047 hardcode_libdir_separator= 18048 hardcode_minus_L=no 18049 hardcode_shlibpath_var=unsupported 18050 inherit_rpath=no 18051 link_all_deplibs=unknown 18052 module_cmds= 18053 module_expsym_cmds= 18054 old_archive_from_new_cmds= 18055 old_archive_from_expsyms_cmds= 18056 thread_safe_flag_spec= 18057 whole_archive_flag_spec= 18058 # include_expsyms should be a list of space-separated symbols to be *always* 18059 # included in the symbol list 18060 include_expsyms= 18061 # exclude_expsyms can be an extended regexp of symbols to exclude 18062 # it will be wrapped by ' (' and ')$', so one must not match beginning or 18063 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 18064 # as well as any symbol that contains 'd'. 18065 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 18066 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 18067 # platforms (ab)use it in PIC code, but their linkers get confused if 18068 # the symbol is explicitly referenced. Since portable code cannot 18069 # rely on this symbol name, it's probably fine to never include it in 18070 # preloaded symbol tables. 18071 # Exclude shared library initialization/finalization symbols. 18072 extract_expsyms_cmds= 18073 18074 case $host_os in 18075 cygwin* | mingw* | pw32* | cegcc*) 18076 # FIXME: the MSVC++ port hasn't been tested in a loooong time 18077 # When not using gcc, we currently assume that we are using 18078 # Microsoft Visual C++. 18079 if test yes != "$GCC"; then 18080 with_gnu_ld=no 18081 fi 18082 ;; 18083 interix*) 18084 # we just hope/assume this is gcc and not c89 (= MSVC++) 18085 with_gnu_ld=yes 18086 ;; 18087 openbsd* | bitrig*) 18088 with_gnu_ld=no 18089 ;; 18090 esac 18091 18092 ld_shlibs=yes 18093 18094 # On some targets, GNU ld is compatible enough with the native linker 18095 # that we're better off using the native interface for both. 18096 lt_use_gnu_ld_interface=no 18097 if test yes = "$with_gnu_ld"; then 18098 case $host_os in 18099 aix*) 18100 # The AIX port of GNU ld has always aspired to compatibility 18101 # with the native linker. However, as the warning in the GNU ld 18102 # block says, versions before 2.19.5* couldn't really create working 18103 # shared libraries, regardless of the interface used. 18104 case `$LD -v 2>&1` in 18105 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 18106 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 18107 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 18108 *) 18109 lt_use_gnu_ld_interface=yes 18110 ;; 18111 esac 18112 ;; 18113 *) 18114 lt_use_gnu_ld_interface=yes 18115 ;; 18116 esac 18117 fi 18118 18119 if test yes = "$lt_use_gnu_ld_interface"; then 18120 # If archive_cmds runs LD, not CC, wlarc should be empty 18121 wlarc='$wl' 18122 18123 # Set some defaults for GNU ld with shared library support. These 18124 # are reset later if shared libraries are not supported. Putting them 18125 # here allows them to be overridden if necessary. 18126 runpath_var=LD_RUN_PATH 18127 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18128 export_dynamic_flag_spec='$wl--export-dynamic' 18129 # ancient GNU ld didn't support --whole-archive et. al. 18130 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 18131 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 18132 else 18133 whole_archive_flag_spec= 18134 fi 18135 supports_anon_versioning=no 18136 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 18137 *GNU\ gold*) supports_anon_versioning=yes ;; 18138 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 18139 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 18140 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 18141 *\ 2.11.*) ;; # other 2.11 versions 18142 *) supports_anon_versioning=yes ;; 18143 esac 18144 18145 # See if GNU ld supports shared libraries. 18146 case $host_os in 18147 aix[3-9]*) 18148 # On AIX/PPC, the GNU linker is very broken 18149 if test ia64 != "$host_cpu"; then 18150 ld_shlibs=no 18151 cat <<_LT_EOF 1>&2 18152 18153*** Warning: the GNU linker, at least up to release 2.19, is reported 18154*** to be unable to reliably create shared libraries on AIX. 18155*** Therefore, libtool is disabling shared libraries support. If you 18156*** really care for shared libraries, you may want to install binutils 18157*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 18158*** You will then need to restart the configuration process. 18159 18160_LT_EOF 18161 fi 18162 ;; 18163 18164 amigaos*) 18165 case $host_cpu in 18166 powerpc) 18167 # see comment about AmigaOS4 .so support 18168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18169 archive_expsym_cmds='' 18170 ;; 18171 m68k) 18172 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)' 18173 hardcode_libdir_flag_spec='-L$libdir' 18174 hardcode_minus_L=yes 18175 ;; 18176 esac 18177 ;; 18178 18179 beos*) 18180 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 18181 allow_undefined_flag=unsupported 18182 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18183 # support --undefined. This deserves some investigation. FIXME 18184 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18185 else 18186 ld_shlibs=no 18187 fi 18188 ;; 18189 18190 cygwin* | mingw* | pw32* | cegcc*) 18191 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 18192 # as there is no search path for DLLs. 18193 hardcode_libdir_flag_spec='-L$libdir' 18194 export_dynamic_flag_spec='$wl--export-all-symbols' 18195 allow_undefined_flag=unsupported 18196 always_export_symbols=no 18197 enable_shared_with_static_runtimes=yes 18198 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' 18199 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 18200 18201 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 18202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18203 # If the export-symbols file already is a .def file, use it as 18204 # is; otherwise, prepend EXPORTS... 18205 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 18206 cp $export_symbols $output_objdir/$soname.def; 18207 else 18208 echo EXPORTS > $output_objdir/$soname.def; 18209 cat $export_symbols >> $output_objdir/$soname.def; 18210 fi~ 18211 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18212 else 18213 ld_shlibs=no 18214 fi 18215 ;; 18216 18217 haiku*) 18218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18219 link_all_deplibs=yes 18220 ;; 18221 18222 os2*) 18223 hardcode_libdir_flag_spec='-L$libdir' 18224 hardcode_minus_L=yes 18225 allow_undefined_flag=unsupported 18226 shrext_cmds=.dll 18227 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 18228 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 18229 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 18230 $ECHO EXPORTS >> $output_objdir/$libname.def~ 18231 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 18232 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 18233 emximp -o $lib $output_objdir/$libname.def' 18234 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 18235 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 18236 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 18237 $ECHO EXPORTS >> $output_objdir/$libname.def~ 18238 prefix_cmds="$SED"~ 18239 if test EXPORTS = "`$SED 1q $export_symbols`"; then 18240 prefix_cmds="$prefix_cmds -e 1d"; 18241 fi~ 18242 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 18243 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 18244 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 18245 emximp -o $lib $output_objdir/$libname.def' 18246 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 18247 enable_shared_with_static_runtimes=yes 18248 ;; 18249 18250 interix[3-9]*) 18251 hardcode_direct=no 18252 hardcode_shlibpath_var=no 18253 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 18254 export_dynamic_flag_spec='$wl-E' 18255 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 18256 # Instead, shared libraries are loaded at an image base (0x10000000 by 18257 # default) and relocated if they conflict, which is a slow very memory 18258 # consuming and fragmenting process. To avoid this, we pick a random, 18259 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 18260 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 18261 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 18262 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' 18263 ;; 18264 18265 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 18266 tmp_diet=no 18267 if test linux-dietlibc = "$host_os"; then 18268 case $cc_basename in 18269 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 18270 esac 18271 fi 18272 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 18273 && test no = "$tmp_diet" 18274 then 18275 tmp_addflag=' $pic_flag' 18276 tmp_sharedflag='-shared' 18277 case $cc_basename,$host_cpu in 18278 pgcc*) # Portland Group C compiler 18279 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' 18280 tmp_addflag=' $pic_flag' 18281 ;; 18282 pgf77* | pgf90* | pgf95* | pgfortran*) 18283 # Portland Group f77 and f90 compilers 18284 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' 18285 tmp_addflag=' $pic_flag -Mnomain' ;; 18286 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 18287 tmp_addflag=' -i_dynamic' ;; 18288 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 18289 tmp_addflag=' -i_dynamic -nofor_main' ;; 18290 ifc* | ifort*) # Intel Fortran compiler 18291 tmp_addflag=' -nofor_main' ;; 18292 lf95*) # Lahey Fortran 8.1 18293 whole_archive_flag_spec= 18294 tmp_sharedflag='--shared' ;; 18295 nagfor*) # NAGFOR 5.3 18296 tmp_sharedflag='-Wl,-shared' ;; 18297 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 18298 tmp_sharedflag='-qmkshrobj' 18299 tmp_addflag= ;; 18300 nvcc*) # Cuda Compiler Driver 2.2 18301 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' 18302 compiler_needs_object=yes 18303 ;; 18304 esac 18305 case `$CC -V 2>&1 | sed 5q` in 18306 *Sun\ C*) # Sun C 5.9 18307 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' 18308 compiler_needs_object=yes 18309 tmp_sharedflag='-G' ;; 18310 *Sun\ F*) # Sun Fortran 8.3 18311 tmp_sharedflag='-G' ;; 18312 esac 18313 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18314 18315 if test yes = "$supports_anon_versioning"; then 18316 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 18317 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18318 echo "local: *; };" >> $output_objdir/$libname.ver~ 18319 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 18320 fi 18321 18322 case $cc_basename in 18323 tcc*) 18324 export_dynamic_flag_spec='-rdynamic' 18325 ;; 18326 xlf* | bgf* | bgxlf* | mpixlf*) 18327 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 18328 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 18329 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18330 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 18331 if test yes = "$supports_anon_versioning"; then 18332 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 18333 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18334 echo "local: *; };" >> $output_objdir/$libname.ver~ 18335 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 18336 fi 18337 ;; 18338 esac 18339 else 18340 ld_shlibs=no 18341 fi 18342 ;; 18343 18344 netbsd*) 18345 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18346 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 18347 wlarc= 18348 else 18349 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18350 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18351 fi 18352 ;; 18353 18354 solaris*) 18355 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 18356 ld_shlibs=no 18357 cat <<_LT_EOF 1>&2 18358 18359*** Warning: The releases 2.8.* of the GNU linker cannot reliably 18360*** create shared libraries on Solaris systems. Therefore, libtool 18361*** is disabling shared libraries support. We urge you to upgrade GNU 18362*** binutils to release 2.9.1 or newer. Another option is to modify 18363*** your PATH or compiler configuration so that the native linker is 18364*** used, and then restart. 18365 18366_LT_EOF 18367 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 18368 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18369 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18370 else 18371 ld_shlibs=no 18372 fi 18373 ;; 18374 18375 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 18376 case `$LD -v 2>&1` in 18377 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 18378 ld_shlibs=no 18379 cat <<_LT_EOF 1>&2 18380 18381*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 18382*** reliably create shared libraries on SCO systems. Therefore, libtool 18383*** is disabling shared libraries support. We urge you to upgrade GNU 18384*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 18385*** your PATH or compiler configuration so that the native linker is 18386*** used, and then restart. 18387 18388_LT_EOF 18389 ;; 18390 *) 18391 # For security reasons, it is highly recommended that you always 18392 # use absolute paths for naming shared libraries, and exclude the 18393 # DT_RUNPATH tag from executables and libraries. But doing so 18394 # requires that you compile everything twice, which is a pain. 18395 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 18396 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18397 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18398 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18399 else 18400 ld_shlibs=no 18401 fi 18402 ;; 18403 esac 18404 ;; 18405 18406 sunos4*) 18407 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18408 wlarc= 18409 hardcode_direct=yes 18410 hardcode_shlibpath_var=no 18411 ;; 18412 18413 *) 18414 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 18415 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18416 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18417 else 18418 ld_shlibs=no 18419 fi 18420 ;; 18421 esac 18422 18423 if test no = "$ld_shlibs"; then 18424 runpath_var= 18425 hardcode_libdir_flag_spec= 18426 export_dynamic_flag_spec= 18427 whole_archive_flag_spec= 18428 fi 18429 else 18430 # PORTME fill in a description of your system's linker (not GNU ld) 18431 case $host_os in 18432 aix3*) 18433 allow_undefined_flag=unsupported 18434 always_export_symbols=yes 18435 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' 18436 # Note: this linker hardcodes the directories in LIBPATH if there 18437 # are no directories specified by -L. 18438 hardcode_minus_L=yes 18439 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 18440 # Neither direct hardcoding nor static linking is supported with a 18441 # broken collect2. 18442 hardcode_direct=unsupported 18443 fi 18444 ;; 18445 18446 aix[4-9]*) 18447 if test ia64 = "$host_cpu"; then 18448 # On IA64, the linker does run time linking by default, so we don't 18449 # have to do anything special. 18450 aix_use_runtimelinking=no 18451 exp_sym_flag='-Bexport' 18452 no_entry_flag= 18453 else 18454 # If we're using GNU nm, then we don't want the "-C" option. 18455 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 18456 # Without the "-l" option, or with the "-B" option, AIX nm treats 18457 # weak defined symbols like other global defined symbols, whereas 18458 # GNU nm marks them as "W". 18459 # While the 'weak' keyword is ignored in the Export File, we need 18460 # it in the Import File for the 'aix-soname' feature, so we have 18461 # to replace the "-B" option with "-P" for AIX nm. 18462 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 18463 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' 18464 else 18465 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' 18466 fi 18467 aix_use_runtimelinking=no 18468 18469 # Test if we are trying to use run time linking or normal 18470 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18471 # have runtime linking enabled, and use it for executables. 18472 # For shared libraries, we enable/disable runtime linking 18473 # depending on the kind of the shared library created - 18474 # when "with_aix_soname,aix_use_runtimelinking" is: 18475 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 18476 # "aix,yes" lib.so shared, rtl:yes, for executables 18477 # lib.a static archive 18478 # "both,no" lib.so.V(shr.o) shared, rtl:yes 18479 # lib.a(lib.so.V) shared, rtl:no, for executables 18480 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 18481 # lib.a(lib.so.V) shared, rtl:no 18482 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 18483 # lib.a static archive 18484 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 18485 for ld_flag in $LDFLAGS; do 18486 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 18487 aix_use_runtimelinking=yes 18488 break 18489 fi 18490 done 18491 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 18492 # With aix-soname=svr4, we create the lib.so.V shared archives only, 18493 # so we don't have lib.a shared libs to link our executables. 18494 # We have to force runtime linking in this case. 18495 aix_use_runtimelinking=yes 18496 LDFLAGS="$LDFLAGS -Wl,-brtl" 18497 fi 18498 ;; 18499 esac 18500 18501 exp_sym_flag='-bexport' 18502 no_entry_flag='-bnoentry' 18503 fi 18504 18505 # When large executables or shared objects are built, AIX ld can 18506 # have problems creating the table of contents. If linking a library 18507 # or program results in "error TOC overflow" add -mminimal-toc to 18508 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18509 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18510 18511 archive_cmds='' 18512 hardcode_direct=yes 18513 hardcode_direct_absolute=yes 18514 hardcode_libdir_separator=':' 18515 link_all_deplibs=yes 18516 file_list_spec='$wl-f,' 18517 case $with_aix_soname,$aix_use_runtimelinking in 18518 aix,*) ;; # traditional, no import file 18519 svr4,* | *,yes) # use import file 18520 # The Import File defines what to hardcode. 18521 hardcode_direct=no 18522 hardcode_direct_absolute=no 18523 ;; 18524 esac 18525 18526 if test yes = "$GCC"; then 18527 case $host_os in aix4.[012]|aix4.[012].*) 18528 # We only want to do this on AIX 4.2 and lower, the check 18529 # below for broken collect2 doesn't work under 4.3+ 18530 collect2name=`$CC -print-prog-name=collect2` 18531 if test -f "$collect2name" && 18532 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 18533 then 18534 # We have reworked collect2 18535 : 18536 else 18537 # We have old collect2 18538 hardcode_direct=unsupported 18539 # It fails to find uninstalled libraries when the uninstalled 18540 # path is not listed in the libpath. Setting hardcode_minus_L 18541 # to unsupported forces relinking 18542 hardcode_minus_L=yes 18543 hardcode_libdir_flag_spec='-L$libdir' 18544 hardcode_libdir_separator= 18545 fi 18546 ;; 18547 esac 18548 shared_flag='-shared' 18549 if test yes = "$aix_use_runtimelinking"; then 18550 shared_flag="$shared_flag "'$wl-G' 18551 fi 18552 # Need to ensure runtime linking is disabled for the traditional 18553 # shared library, or the linker may eventually find shared libraries 18554 # /with/ Import File - we do not want to mix them. 18555 shared_flag_aix='-shared' 18556 shared_flag_svr4='-shared $wl-G' 18557 else 18558 # not using gcc 18559 if test ia64 = "$host_cpu"; then 18560 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18561 # chokes on -Wl,-G. The following line is correct: 18562 shared_flag='-G' 18563 else 18564 if test yes = "$aix_use_runtimelinking"; then 18565 shared_flag='$wl-G' 18566 else 18567 shared_flag='$wl-bM:SRE' 18568 fi 18569 shared_flag_aix='$wl-bM:SRE' 18570 shared_flag_svr4='$wl-G' 18571 fi 18572 fi 18573 18574 export_dynamic_flag_spec='$wl-bexpall' 18575 # It seems that -bexpall does not export symbols beginning with 18576 # underscore (_), so it is better to generate a list of symbols to export. 18577 always_export_symbols=yes 18578 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 18579 # Warning - without using the other runtime loading flags (-brtl), 18580 # -berok will link without error, but may produce a broken library. 18581 allow_undefined_flag='-berok' 18582 # Determine the default libpath from the value encoded in an 18583 # empty executable. 18584 if test set = "${lt_cv_aix_libpath+set}"; then 18585 aix_libpath=$lt_cv_aix_libpath 18586else 18587 if ${lt_cv_aix_libpath_+:} false; then : 18588 $as_echo_n "(cached) " >&6 18589else 18590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18591/* end confdefs.h. */ 18592 18593int 18594main () 18595{ 18596 18597 ; 18598 return 0; 18599} 18600_ACEOF 18601if ac_fn_c_try_link "$LINENO"; then : 18602 18603 lt_aix_libpath_sed=' 18604 /Import File Strings/,/^$/ { 18605 /^0/ { 18606 s/^0 *\([^ ]*\) *$/\1/ 18607 p 18608 } 18609 }' 18610 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18611 # Check for a 64-bit object if we didn't find anything. 18612 if test -z "$lt_cv_aix_libpath_"; then 18613 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18614 fi 18615fi 18616rm -f core conftest.err conftest.$ac_objext \ 18617 conftest$ac_exeext conftest.$ac_ext 18618 if test -z "$lt_cv_aix_libpath_"; then 18619 lt_cv_aix_libpath_=/usr/lib:/lib 18620 fi 18621 18622fi 18623 18624 aix_libpath=$lt_cv_aix_libpath_ 18625fi 18626 18627 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 18628 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 18629 else 18630 if test ia64 = "$host_cpu"; then 18631 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 18632 allow_undefined_flag="-z nodefs" 18633 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" 18634 else 18635 # Determine the default libpath from the value encoded in an 18636 # empty executable. 18637 if test set = "${lt_cv_aix_libpath+set}"; then 18638 aix_libpath=$lt_cv_aix_libpath 18639else 18640 if ${lt_cv_aix_libpath_+:} false; then : 18641 $as_echo_n "(cached) " >&6 18642else 18643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18644/* end confdefs.h. */ 18645 18646int 18647main () 18648{ 18649 18650 ; 18651 return 0; 18652} 18653_ACEOF 18654if ac_fn_c_try_link "$LINENO"; then : 18655 18656 lt_aix_libpath_sed=' 18657 /Import File Strings/,/^$/ { 18658 /^0/ { 18659 s/^0 *\([^ ]*\) *$/\1/ 18660 p 18661 } 18662 }' 18663 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18664 # Check for a 64-bit object if we didn't find anything. 18665 if test -z "$lt_cv_aix_libpath_"; then 18666 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18667 fi 18668fi 18669rm -f core conftest.err conftest.$ac_objext \ 18670 conftest$ac_exeext conftest.$ac_ext 18671 if test -z "$lt_cv_aix_libpath_"; then 18672 lt_cv_aix_libpath_=/usr/lib:/lib 18673 fi 18674 18675fi 18676 18677 aix_libpath=$lt_cv_aix_libpath_ 18678fi 18679 18680 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 18681 # Warning - without using the other run time loading flags, 18682 # -berok will link without error, but may produce a broken library. 18683 no_undefined_flag=' $wl-bernotok' 18684 allow_undefined_flag=' $wl-berok' 18685 if test yes = "$with_gnu_ld"; then 18686 # We only use this code for GNU lds that support --whole-archive. 18687 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 18688 else 18689 # Exported symbols can be pulled into shared objects from archives 18690 whole_archive_flag_spec='$convenience' 18691 fi 18692 archive_cmds_need_lc=yes 18693 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 18694 # -brtl affects multiple linker settings, -berok does not and is overridden later 18695 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 18696 if test svr4 != "$with_aix_soname"; then 18697 # This is similar to how AIX traditionally builds its shared libraries. 18698 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' 18699 fi 18700 if test aix != "$with_aix_soname"; then 18701 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' 18702 else 18703 # used by -dlpreopen to get the symbols 18704 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 18705 fi 18706 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 18707 fi 18708 fi 18709 ;; 18710 18711 amigaos*) 18712 case $host_cpu in 18713 powerpc) 18714 # see comment about AmigaOS4 .so support 18715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18716 archive_expsym_cmds='' 18717 ;; 18718 m68k) 18719 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)' 18720 hardcode_libdir_flag_spec='-L$libdir' 18721 hardcode_minus_L=yes 18722 ;; 18723 esac 18724 ;; 18725 18726 bsdi[45]*) 18727 export_dynamic_flag_spec=-rdynamic 18728 ;; 18729 18730 cygwin* | mingw* | pw32* | cegcc*) 18731 # When not using gcc, we currently assume that we are using 18732 # Microsoft Visual C++. 18733 # hardcode_libdir_flag_spec is actually meaningless, as there is 18734 # no search path for DLLs. 18735 case $cc_basename in 18736 cl*) 18737 # Native MSVC 18738 hardcode_libdir_flag_spec=' ' 18739 allow_undefined_flag=unsupported 18740 always_export_symbols=yes 18741 file_list_spec='@' 18742 # Tell ltmain to make .lib files, not .a files. 18743 libext=lib 18744 # Tell ltmain to make .dll files, not .so files. 18745 shrext_cmds=.dll 18746 # FIXME: Setting linknames here is a bad hack. 18747 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 18748 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 18749 cp "$export_symbols" "$output_objdir/$soname.def"; 18750 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 18751 else 18752 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 18753 fi~ 18754 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 18755 linknames=' 18756 # The linker will not automatically build a static lib if we build a DLL. 18757 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 18758 enable_shared_with_static_runtimes=yes 18759 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 18760 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 18761 # Don't use ranlib 18762 old_postinstall_cmds='chmod 644 $oldlib' 18763 postlink_cmds='lt_outputfile="@OUTPUT@"~ 18764 lt_tool_outputfile="@TOOL_OUTPUT@"~ 18765 case $lt_outputfile in 18766 *.exe|*.EXE) ;; 18767 *) 18768 lt_outputfile=$lt_outputfile.exe 18769 lt_tool_outputfile=$lt_tool_outputfile.exe 18770 ;; 18771 esac~ 18772 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 18773 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 18774 $RM "$lt_outputfile.manifest"; 18775 fi' 18776 ;; 18777 *) 18778 # Assume MSVC wrapper 18779 hardcode_libdir_flag_spec=' ' 18780 allow_undefined_flag=unsupported 18781 # Tell ltmain to make .lib files, not .a files. 18782 libext=lib 18783 # Tell ltmain to make .dll files, not .so files. 18784 shrext_cmds=.dll 18785 # FIXME: Setting linknames here is a bad hack. 18786 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 18787 # The linker will automatically build a .lib file if we build a DLL. 18788 old_archive_from_new_cmds='true' 18789 # FIXME: Should let the user specify the lib program. 18790 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 18791 enable_shared_with_static_runtimes=yes 18792 ;; 18793 esac 18794 ;; 18795 18796 darwin* | rhapsody*) 18797 18798 18799 archive_cmds_need_lc=no 18800 hardcode_direct=no 18801 hardcode_automatic=yes 18802 hardcode_shlibpath_var=unsupported 18803 if test yes = "$lt_cv_ld_force_load"; then 18804 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\"`' 18805 18806 else 18807 whole_archive_flag_spec='' 18808 fi 18809 link_all_deplibs=yes 18810 allow_undefined_flag=$_lt_dar_allow_undefined 18811 case $cc_basename in 18812 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 18813 *) _lt_dar_can_shared=$GCC ;; 18814 esac 18815 if test yes = "$_lt_dar_can_shared"; then 18816 output_verbose_link_cmd=func_echo_all 18817 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 18818 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 18819 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" 18820 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" 18821 18822 else 18823 ld_shlibs=no 18824 fi 18825 18826 ;; 18827 18828 dgux*) 18829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18830 hardcode_libdir_flag_spec='-L$libdir' 18831 hardcode_shlibpath_var=no 18832 ;; 18833 18834 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18835 # support. Future versions do this automatically, but an explicit c++rt0.o 18836 # does not break anything, and helps significantly (at the cost of a little 18837 # extra space). 18838 freebsd2.2*) 18839 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18840 hardcode_libdir_flag_spec='-R$libdir' 18841 hardcode_direct=yes 18842 hardcode_shlibpath_var=no 18843 ;; 18844 18845 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18846 freebsd2.*) 18847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18848 hardcode_direct=yes 18849 hardcode_minus_L=yes 18850 hardcode_shlibpath_var=no 18851 ;; 18852 18853 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18854 freebsd* | dragonfly*) 18855 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18856 hardcode_libdir_flag_spec='-R$libdir' 18857 hardcode_direct=yes 18858 hardcode_shlibpath_var=no 18859 ;; 18860 18861 hpux9*) 18862 if test yes = "$GCC"; then 18863 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' 18864 else 18865 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' 18866 fi 18867 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 18868 hardcode_libdir_separator=: 18869 hardcode_direct=yes 18870 18871 # hardcode_minus_L: Not really in the search PATH, 18872 # but as the default location of the library. 18873 hardcode_minus_L=yes 18874 export_dynamic_flag_spec='$wl-E' 18875 ;; 18876 18877 hpux10*) 18878 if test yes,no = "$GCC,$with_gnu_ld"; then 18879 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18880 else 18881 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18882 fi 18883 if test no = "$with_gnu_ld"; then 18884 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 18885 hardcode_libdir_separator=: 18886 hardcode_direct=yes 18887 hardcode_direct_absolute=yes 18888 export_dynamic_flag_spec='$wl-E' 18889 # hardcode_minus_L: Not really in the search PATH, 18890 # but as the default location of the library. 18891 hardcode_minus_L=yes 18892 fi 18893 ;; 18894 18895 hpux11*) 18896 if test yes,no = "$GCC,$with_gnu_ld"; then 18897 case $host_cpu in 18898 hppa*64*) 18899 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 18900 ;; 18901 ia64*) 18902 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18903 ;; 18904 *) 18905 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18906 ;; 18907 esac 18908 else 18909 case $host_cpu in 18910 hppa*64*) 18911 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 18912 ;; 18913 ia64*) 18914 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18915 ;; 18916 *) 18917 18918 # Older versions of the 11.00 compiler do not understand -b yet 18919 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 18920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 18921$as_echo_n "checking if $CC understands -b... " >&6; } 18922if ${lt_cv_prog_compiler__b+:} false; then : 18923 $as_echo_n "(cached) " >&6 18924else 18925 lt_cv_prog_compiler__b=no 18926 save_LDFLAGS=$LDFLAGS 18927 LDFLAGS="$LDFLAGS -b" 18928 echo "$lt_simple_link_test_code" > conftest.$ac_ext 18929 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 18930 # The linker can only warn and ignore the option if not recognized 18931 # So say no if there are warnings 18932 if test -s conftest.err; then 18933 # Append any errors to the config.log. 18934 cat conftest.err 1>&5 18935 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 18936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18937 if diff conftest.exp conftest.er2 >/dev/null; then 18938 lt_cv_prog_compiler__b=yes 18939 fi 18940 else 18941 lt_cv_prog_compiler__b=yes 18942 fi 18943 fi 18944 $RM -r conftest* 18945 LDFLAGS=$save_LDFLAGS 18946 18947fi 18948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 18949$as_echo "$lt_cv_prog_compiler__b" >&6; } 18950 18951if test yes = "$lt_cv_prog_compiler__b"; then 18952 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18953else 18954 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18955fi 18956 18957 ;; 18958 esac 18959 fi 18960 if test no = "$with_gnu_ld"; then 18961 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 18962 hardcode_libdir_separator=: 18963 18964 case $host_cpu in 18965 hppa*64*|ia64*) 18966 hardcode_direct=no 18967 hardcode_shlibpath_var=no 18968 ;; 18969 *) 18970 hardcode_direct=yes 18971 hardcode_direct_absolute=yes 18972 export_dynamic_flag_spec='$wl-E' 18973 18974 # hardcode_minus_L: Not really in the search PATH, 18975 # but as the default location of the library. 18976 hardcode_minus_L=yes 18977 ;; 18978 esac 18979 fi 18980 ;; 18981 18982 irix5* | irix6* | nonstopux*) 18983 if test yes = "$GCC"; then 18984 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' 18985 # Try to use the -exported_symbol ld option, if it does not 18986 # work, assume that -exports_file does not work either and 18987 # implicitly export all symbols. 18988 # This should be the same for all languages, so no per-tag cache variable. 18989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 18990$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 18991if ${lt_cv_irix_exported_symbol+:} false; then : 18992 $as_echo_n "(cached) " >&6 18993else 18994 save_LDFLAGS=$LDFLAGS 18995 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 18996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18997/* end confdefs.h. */ 18998int foo (void) { return 0; } 18999_ACEOF 19000if ac_fn_c_try_link "$LINENO"; then : 19001 lt_cv_irix_exported_symbol=yes 19002else 19003 lt_cv_irix_exported_symbol=no 19004fi 19005rm -f core conftest.err conftest.$ac_objext \ 19006 conftest$ac_exeext conftest.$ac_ext 19007 LDFLAGS=$save_LDFLAGS 19008fi 19009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 19010$as_echo "$lt_cv_irix_exported_symbol" >&6; } 19011 if test yes = "$lt_cv_irix_exported_symbol"; then 19012 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' 19013 fi 19014 else 19015 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' 19016 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' 19017 fi 19018 archive_cmds_need_lc='no' 19019 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19020 hardcode_libdir_separator=: 19021 inherit_rpath=yes 19022 link_all_deplibs=yes 19023 ;; 19024 19025 linux*) 19026 case $cc_basename in 19027 tcc*) 19028 # Fabrice Bellard et al's Tiny C Compiler 19029 ld_shlibs=yes 19030 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19031 ;; 19032 esac 19033 ;; 19034 19035 netbsd*) 19036 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19037 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 19038 else 19039 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 19040 fi 19041 hardcode_libdir_flag_spec='-R$libdir' 19042 hardcode_direct=yes 19043 hardcode_shlibpath_var=no 19044 ;; 19045 19046 newsos6) 19047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19048 hardcode_direct=yes 19049 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19050 hardcode_libdir_separator=: 19051 hardcode_shlibpath_var=no 19052 ;; 19053 19054 *nto* | *qnx*) 19055 ;; 19056 19057 openbsd* | bitrig*) 19058 if test -f /usr/libexec/ld.so; then 19059 hardcode_direct=yes 19060 hardcode_shlibpath_var=no 19061 hardcode_direct_absolute=yes 19062 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 19063 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19064 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 19065 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 19066 export_dynamic_flag_spec='$wl-E' 19067 else 19068 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19069 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 19070 fi 19071 else 19072 ld_shlibs=no 19073 fi 19074 ;; 19075 19076 os2*) 19077 hardcode_libdir_flag_spec='-L$libdir' 19078 hardcode_minus_L=yes 19079 allow_undefined_flag=unsupported 19080 shrext_cmds=.dll 19081 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19082 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19083 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19084 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19085 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 19086 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19087 emximp -o $lib $output_objdir/$libname.def' 19088 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19089 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19090 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19091 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19092 prefix_cmds="$SED"~ 19093 if test EXPORTS = "`$SED 1q $export_symbols`"; then 19094 prefix_cmds="$prefix_cmds -e 1d"; 19095 fi~ 19096 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 19097 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 19098 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19099 emximp -o $lib $output_objdir/$libname.def' 19100 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 19101 enable_shared_with_static_runtimes=yes 19102 ;; 19103 19104 osf3*) 19105 if test yes = "$GCC"; then 19106 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 19107 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' 19108 else 19109 allow_undefined_flag=' -expect_unresolved \*' 19110 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' 19111 fi 19112 archive_cmds_need_lc='no' 19113 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19114 hardcode_libdir_separator=: 19115 ;; 19116 19117 osf4* | osf5*) # as osf3* with the addition of -msym flag 19118 if test yes = "$GCC"; then 19119 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 19120 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' 19121 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19122 else 19123 allow_undefined_flag=' -expect_unresolved \*' 19124 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' 19125 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~ 19126 $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' 19127 19128 # Both c and cxx compiler support -rpath directly 19129 hardcode_libdir_flag_spec='-rpath $libdir' 19130 fi 19131 archive_cmds_need_lc='no' 19132 hardcode_libdir_separator=: 19133 ;; 19134 19135 solaris*) 19136 no_undefined_flag=' -z defs' 19137 if test yes = "$GCC"; then 19138 wlarc='$wl' 19139 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 19140 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19141 $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' 19142 else 19143 case `$CC -V 2>&1` in 19144 *"Compilers 5.0"*) 19145 wlarc='' 19146 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 19147 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19148 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 19149 ;; 19150 *) 19151 wlarc='$wl' 19152 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 19153 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19154 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 19155 ;; 19156 esac 19157 fi 19158 hardcode_libdir_flag_spec='-R$libdir' 19159 hardcode_shlibpath_var=no 19160 case $host_os in 19161 solaris2.[0-5] | solaris2.[0-5].*) ;; 19162 *) 19163 # The compiler driver will combine and reorder linker options, 19164 # but understands '-z linker_flag'. GCC discards it without '$wl', 19165 # but is careful enough not to reorder. 19166 # Supported since Solaris 2.6 (maybe 2.5.1?) 19167 if test yes = "$GCC"; then 19168 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 19169 else 19170 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 19171 fi 19172 ;; 19173 esac 19174 link_all_deplibs=yes 19175 ;; 19176 19177 sunos4*) 19178 if test sequent = "$host_vendor"; then 19179 # Use $CC to link under sequent, because it throws in some extra .o 19180 # files that make .init and .fini sections work. 19181 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 19182 else 19183 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 19184 fi 19185 hardcode_libdir_flag_spec='-L$libdir' 19186 hardcode_direct=yes 19187 hardcode_minus_L=yes 19188 hardcode_shlibpath_var=no 19189 ;; 19190 19191 sysv4) 19192 case $host_vendor in 19193 sni) 19194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19195 hardcode_direct=yes # is this really true??? 19196 ;; 19197 siemens) 19198 ## LD is ld it makes a PLAMLIB 19199 ## CC just makes a GrossModule. 19200 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 19201 reload_cmds='$CC -r -o $output$reload_objs' 19202 hardcode_direct=no 19203 ;; 19204 motorola) 19205 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19206 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 19207 ;; 19208 esac 19209 runpath_var='LD_RUN_PATH' 19210 hardcode_shlibpath_var=no 19211 ;; 19212 19213 sysv4.3*) 19214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19215 hardcode_shlibpath_var=no 19216 export_dynamic_flag_spec='-Bexport' 19217 ;; 19218 19219 sysv4*MP*) 19220 if test -d /usr/nec; then 19221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19222 hardcode_shlibpath_var=no 19223 runpath_var=LD_RUN_PATH 19224 hardcode_runpath_var=yes 19225 ld_shlibs=yes 19226 fi 19227 ;; 19228 19229 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 19230 no_undefined_flag='$wl-z,text' 19231 archive_cmds_need_lc=no 19232 hardcode_shlibpath_var=no 19233 runpath_var='LD_RUN_PATH' 19234 19235 if test yes = "$GCC"; then 19236 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19237 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19238 else 19239 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19240 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19241 fi 19242 ;; 19243 19244 sysv5* | sco3.2v5* | sco5v6*) 19245 # Note: We CANNOT use -z defs as we might desire, because we do not 19246 # link with -lc, and that would cause any symbols used from libc to 19247 # always be unresolved, which means just about no library would 19248 # ever link correctly. If we're not using GNU ld we use -z text 19249 # though, which does catch some bad symbols but isn't as heavy-handed 19250 # as -z defs. 19251 no_undefined_flag='$wl-z,text' 19252 allow_undefined_flag='$wl-z,nodefs' 19253 archive_cmds_need_lc=no 19254 hardcode_shlibpath_var=no 19255 hardcode_libdir_flag_spec='$wl-R,$libdir' 19256 hardcode_libdir_separator=':' 19257 link_all_deplibs=yes 19258 export_dynamic_flag_spec='$wl-Bexport' 19259 runpath_var='LD_RUN_PATH' 19260 19261 if test yes = "$GCC"; then 19262 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19263 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19264 else 19265 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19266 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19267 fi 19268 ;; 19269 19270 uts4*) 19271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19272 hardcode_libdir_flag_spec='-L$libdir' 19273 hardcode_shlibpath_var=no 19274 ;; 19275 19276 *) 19277 ld_shlibs=no 19278 ;; 19279 esac 19280 19281 if test sni = "$host_vendor"; then 19282 case $host in 19283 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 19284 export_dynamic_flag_spec='$wl-Blargedynsym' 19285 ;; 19286 esac 19287 fi 19288 fi 19289 19290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 19291$as_echo "$ld_shlibs" >&6; } 19292test no = "$ld_shlibs" && can_build_shared=no 19293 19294with_gnu_ld=$with_gnu_ld 19295 19296 19297 19298 19299 19300 19301 19302 19303 19304 19305 19306 19307 19308 19309 19310# 19311# Do we need to explicitly link libc? 19312# 19313case "x$archive_cmds_need_lc" in 19314x|xyes) 19315 # Assume -lc should be added 19316 archive_cmds_need_lc=yes 19317 19318 if test yes,yes = "$GCC,$enable_shared"; then 19319 case $archive_cmds in 19320 *'~'*) 19321 # FIXME: we may have to deal with multi-command sequences. 19322 ;; 19323 '$CC '*) 19324 # Test whether the compiler implicitly links with -lc since on some 19325 # systems, -lgcc has to come before -lc. If gcc already passes -lc 19326 # to ld, don't add -lc before -lgcc. 19327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 19328$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 19329if ${lt_cv_archive_cmds_need_lc+:} false; then : 19330 $as_echo_n "(cached) " >&6 19331else 19332 $RM conftest* 19333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19334 19335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 19336 (eval $ac_compile) 2>&5 19337 ac_status=$? 19338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19339 test $ac_status = 0; } 2>conftest.err; then 19340 soname=conftest 19341 lib=conftest 19342 libobjs=conftest.$ac_objext 19343 deplibs= 19344 wl=$lt_prog_compiler_wl 19345 pic_flag=$lt_prog_compiler_pic 19346 compiler_flags=-v 19347 linker_flags=-v 19348 verstring= 19349 output_objdir=. 19350 libname=conftest 19351 lt_save_allow_undefined_flag=$allow_undefined_flag 19352 allow_undefined_flag= 19353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 19354 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 19355 ac_status=$? 19356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19357 test $ac_status = 0; } 19358 then 19359 lt_cv_archive_cmds_need_lc=no 19360 else 19361 lt_cv_archive_cmds_need_lc=yes 19362 fi 19363 allow_undefined_flag=$lt_save_allow_undefined_flag 19364 else 19365 cat conftest.err 1>&5 19366 fi 19367 $RM conftest* 19368 19369fi 19370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 19371$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 19372 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 19373 ;; 19374 esac 19375 fi 19376 ;; 19377esac 19378 19379 19380 19381 19382 19383 19384 19385 19386 19387 19388 19389 19390 19391 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 19531$as_echo_n "checking dynamic linker characteristics... " >&6; } 19532 19533if test yes = "$GCC"; then 19534 case $host_os in 19535 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 19536 *) lt_awk_arg='/^libraries:/' ;; 19537 esac 19538 case $host_os in 19539 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 19540 *) lt_sed_strip_eq='s|=/|/|g' ;; 19541 esac 19542 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 19543 case $lt_search_path_spec in 19544 *\;*) 19545 # if the path contains ";" then we assume it to be the separator 19546 # otherwise default to the standard path separator (i.e. ":") - it is 19547 # assumed that no part of a normal pathname contains ";" but that should 19548 # okay in the real world where ";" in dirpaths is itself problematic. 19549 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 19550 ;; 19551 *) 19552 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 19553 ;; 19554 esac 19555 # Ok, now we have the path, separated by spaces, we can step through it 19556 # and add multilib dir if necessary... 19557 lt_tmp_lt_search_path_spec= 19558 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 19559 # ...but if some path component already ends with the multilib dir we assume 19560 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 19561 case "$lt_multi_os_dir; $lt_search_path_spec " in 19562 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 19563 lt_multi_os_dir= 19564 ;; 19565 esac 19566 for lt_sys_path in $lt_search_path_spec; do 19567 if test -d "$lt_sys_path$lt_multi_os_dir"; then 19568 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 19569 elif test -n "$lt_multi_os_dir"; then 19570 test -d "$lt_sys_path" && \ 19571 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 19572 fi 19573 done 19574 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 19575BEGIN {RS = " "; FS = "/|\n";} { 19576 lt_foo = ""; 19577 lt_count = 0; 19578 for (lt_i = NF; lt_i > 0; lt_i--) { 19579 if ($lt_i != "" && $lt_i != ".") { 19580 if ($lt_i == "..") { 19581 lt_count++; 19582 } else { 19583 if (lt_count == 0) { 19584 lt_foo = "/" $lt_i lt_foo; 19585 } else { 19586 lt_count--; 19587 } 19588 } 19589 } 19590 } 19591 if (lt_foo != "") { lt_freq[lt_foo]++; } 19592 if (lt_freq[lt_foo] == 1) { print lt_foo; } 19593}'` 19594 # AWK program above erroneously prepends '/' to C:/dos/paths 19595 # for these hosts. 19596 case $host_os in 19597 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 19598 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 19599 esac 19600 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 19601else 19602 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 19603fi 19604library_names_spec= 19605libname_spec='lib$name' 19606soname_spec= 19607shrext_cmds=.so 19608postinstall_cmds= 19609postuninstall_cmds= 19610finish_cmds= 19611finish_eval= 19612shlibpath_var= 19613shlibpath_overrides_runpath=unknown 19614version_type=none 19615dynamic_linker="$host_os ld.so" 19616sys_lib_dlsearch_path_spec="/lib /usr/lib" 19617need_lib_prefix=unknown 19618hardcode_into_libs=no 19619 19620# when you set need_version to no, make sure it does not cause -set_version 19621# flags to be left without arguments 19622need_version=unknown 19623 19624 19625 19626case $host_os in 19627aix3*) 19628 version_type=linux # correct to gnu/linux during the next big refactor 19629 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 19630 shlibpath_var=LIBPATH 19631 19632 # AIX 3 has no versioning support, so we append a major version to the name. 19633 soname_spec='$libname$release$shared_ext$major' 19634 ;; 19635 19636aix[4-9]*) 19637 version_type=linux # correct to gnu/linux during the next big refactor 19638 need_lib_prefix=no 19639 need_version=no 19640 hardcode_into_libs=yes 19641 if test ia64 = "$host_cpu"; then 19642 # AIX 5 supports IA64 19643 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 19644 shlibpath_var=LD_LIBRARY_PATH 19645 else 19646 # With GCC up to 2.95.x, collect2 would create an import file 19647 # for dependence libraries. The import file would start with 19648 # the line '#! .'. This would cause the generated library to 19649 # depend on '.', always an invalid library. This was fixed in 19650 # development snapshots of GCC prior to 3.0. 19651 case $host_os in 19652 aix4 | aix4.[01] | aix4.[01].*) 19653 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 19654 echo ' yes ' 19655 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 19656 : 19657 else 19658 can_build_shared=no 19659 fi 19660 ;; 19661 esac 19662 # Using Import Files as archive members, it is possible to support 19663 # filename-based versioning of shared library archives on AIX. While 19664 # this would work for both with and without runtime linking, it will 19665 # prevent static linking of such archives. So we do filename-based 19666 # shared library versioning with .so extension only, which is used 19667 # when both runtime linking and shared linking is enabled. 19668 # Unfortunately, runtime linking may impact performance, so we do 19669 # not want this to be the default eventually. Also, we use the 19670 # versioned .so libs for executables only if there is the -brtl 19671 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 19672 # To allow for filename-based versioning support, we need to create 19673 # libNAME.so.V as an archive file, containing: 19674 # *) an Import File, referring to the versioned filename of the 19675 # archive as well as the shared archive member, telling the 19676 # bitwidth (32 or 64) of that shared object, and providing the 19677 # list of exported symbols of that shared object, eventually 19678 # decorated with the 'weak' keyword 19679 # *) the shared object with the F_LOADONLY flag set, to really avoid 19680 # it being seen by the linker. 19681 # At run time we better use the real file rather than another symlink, 19682 # but for link time we create the symlink libNAME.so -> libNAME.so.V 19683 19684 case $with_aix_soname,$aix_use_runtimelinking in 19685 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 19686 # soname into executable. Probably we can add versioning support to 19687 # collect2, so additional links can be useful in future. 19688 aix,yes) # traditional libtool 19689 dynamic_linker='AIX unversionable lib.so' 19690 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 19691 # instead of lib<name>.a to let people know that these are not 19692 # typical AIX shared libraries. 19693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19694 ;; 19695 aix,no) # traditional AIX only 19696 dynamic_linker='AIX lib.a(lib.so.V)' 19697 # We preserve .a as extension for shared libraries through AIX4.2 19698 # and later when we are not doing run time linking. 19699 library_names_spec='$libname$release.a $libname.a' 19700 soname_spec='$libname$release$shared_ext$major' 19701 ;; 19702 svr4,*) # full svr4 only 19703 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 19704 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 19705 # We do not specify a path in Import Files, so LIBPATH fires. 19706 shlibpath_overrides_runpath=yes 19707 ;; 19708 *,yes) # both, prefer svr4 19709 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 19710 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 19711 # unpreferred sharedlib libNAME.a needs extra handling 19712 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"' 19713 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"' 19714 # We do not specify a path in Import Files, so LIBPATH fires. 19715 shlibpath_overrides_runpath=yes 19716 ;; 19717 *,no) # both, prefer aix 19718 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 19719 library_names_spec='$libname$release.a $libname.a' 19720 soname_spec='$libname$release$shared_ext$major' 19721 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 19722 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)' 19723 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"' 19724 ;; 19725 esac 19726 shlibpath_var=LIBPATH 19727 fi 19728 ;; 19729 19730amigaos*) 19731 case $host_cpu in 19732 powerpc) 19733 # Since July 2007 AmigaOS4 officially supports .so libraries. 19734 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 19735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19736 ;; 19737 m68k) 19738 library_names_spec='$libname.ixlibrary $libname.a' 19739 # Create ${libname}_ixlibrary.a entries in /sys/libs. 19740 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' 19741 ;; 19742 esac 19743 ;; 19744 19745beos*) 19746 library_names_spec='$libname$shared_ext' 19747 dynamic_linker="$host_os ld.so" 19748 shlibpath_var=LIBRARY_PATH 19749 ;; 19750 19751bsdi[45]*) 19752 version_type=linux # correct to gnu/linux during the next big refactor 19753 need_version=no 19754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19755 soname_spec='$libname$release$shared_ext$major' 19756 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19757 shlibpath_var=LD_LIBRARY_PATH 19758 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19759 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19760 # the default ld.so.conf also contains /usr/contrib/lib and 19761 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19762 # libtool to hard-code these into programs 19763 ;; 19764 19765cygwin* | mingw* | pw32* | cegcc*) 19766 version_type=windows 19767 shrext_cmds=.dll 19768 need_version=no 19769 need_lib_prefix=no 19770 19771 case $GCC,$cc_basename in 19772 yes,*) 19773 # gcc 19774 library_names_spec='$libname.dll.a' 19775 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19776 postinstall_cmds='base_file=`basename \$file`~ 19777 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 19778 dldir=$destdir/`dirname \$dlpath`~ 19779 test -d \$dldir || mkdir -p \$dldir~ 19780 $install_prog $dir/$dlname \$dldir/$dlname~ 19781 chmod a+x \$dldir/$dlname~ 19782 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 19783 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 19784 fi' 19785 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19786 dlpath=$dir/\$dldll~ 19787 $RM \$dlpath' 19788 shlibpath_overrides_runpath=yes 19789 19790 case $host_os in 19791 cygwin*) 19792 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19793 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19794 19795 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 19796 ;; 19797 mingw* | cegcc*) 19798 # MinGW DLLs use traditional 'lib' prefix 19799 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19800 ;; 19801 pw32*) 19802 # pw32 DLLs use 'pw' prefix rather than 'lib' 19803 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19804 ;; 19805 esac 19806 dynamic_linker='Win32 ld.exe' 19807 ;; 19808 19809 *,cl*) 19810 # Native MSVC 19811 libname_spec='$name' 19812 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19813 library_names_spec='$libname.dll.lib' 19814 19815 case $build_os in 19816 mingw*) 19817 sys_lib_search_path_spec= 19818 lt_save_ifs=$IFS 19819 IFS=';' 19820 for lt_path in $LIB 19821 do 19822 IFS=$lt_save_ifs 19823 # Let DOS variable expansion print the short 8.3 style file name. 19824 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 19825 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 19826 done 19827 IFS=$lt_save_ifs 19828 # Convert to MSYS style. 19829 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 19830 ;; 19831 cygwin*) 19832 # Convert to unix form, then to dos form, then back to unix form 19833 # but this time dos style (no spaces!) so that the unix form looks 19834 # like /cygdrive/c/PROGRA~1:/cygdr... 19835 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 19836 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 19837 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19838 ;; 19839 *) 19840 sys_lib_search_path_spec=$LIB 19841 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 19842 # It is most probably a Windows format PATH. 19843 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19844 else 19845 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19846 fi 19847 # FIXME: find the short name or the path components, as spaces are 19848 # common. (e.g. "Program Files" -> "PROGRA~1") 19849 ;; 19850 esac 19851 19852 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19853 postinstall_cmds='base_file=`basename \$file`~ 19854 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 19855 dldir=$destdir/`dirname \$dlpath`~ 19856 test -d \$dldir || mkdir -p \$dldir~ 19857 $install_prog $dir/$dlname \$dldir/$dlname' 19858 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19859 dlpath=$dir/\$dldll~ 19860 $RM \$dlpath' 19861 shlibpath_overrides_runpath=yes 19862 dynamic_linker='Win32 link.exe' 19863 ;; 19864 19865 *) 19866 # Assume MSVC wrapper 19867 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 19868 dynamic_linker='Win32 ld.exe' 19869 ;; 19870 esac 19871 # FIXME: first we should search . and the directory the executable is in 19872 shlibpath_var=PATH 19873 ;; 19874 19875darwin* | rhapsody*) 19876 dynamic_linker="$host_os dyld" 19877 version_type=darwin 19878 need_lib_prefix=no 19879 need_version=no 19880 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 19881 soname_spec='$libname$release$major$shared_ext' 19882 shlibpath_overrides_runpath=yes 19883 shlibpath_var=DYLD_LIBRARY_PATH 19884 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 19885 19886 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 19887 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19888 ;; 19889 19890dgux*) 19891 version_type=linux # correct to gnu/linux during the next big refactor 19892 need_lib_prefix=no 19893 need_version=no 19894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19895 soname_spec='$libname$release$shared_ext$major' 19896 shlibpath_var=LD_LIBRARY_PATH 19897 ;; 19898 19899freebsd* | dragonfly*) 19900 # DragonFly does not have aout. When/if they implement a new 19901 # versioning mechanism, adjust this. 19902 if test -x /usr/bin/objformat; then 19903 objformat=`/usr/bin/objformat` 19904 else 19905 case $host_os in 19906 freebsd[23].*) objformat=aout ;; 19907 *) objformat=elf ;; 19908 esac 19909 fi 19910 # Handle Gentoo/FreeBSD as it was Linux 19911 case $host_vendor in 19912 gentoo) 19913 version_type=linux ;; 19914 *) 19915 version_type=freebsd-$objformat ;; 19916 esac 19917 19918 case $version_type in 19919 freebsd-elf*) 19920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19921 soname_spec='$libname$release$shared_ext$major' 19922 need_version=no 19923 need_lib_prefix=no 19924 ;; 19925 freebsd-*) 19926 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 19927 need_version=yes 19928 ;; 19929 linux) 19930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19931 soname_spec='${libname}${release}${shared_ext}$major' 19932 need_lib_prefix=no 19933 need_version=no 19934 ;; 19935 esac 19936 shlibpath_var=LD_LIBRARY_PATH 19937 case $host_os in 19938 freebsd2.*) 19939 shlibpath_overrides_runpath=yes 19940 ;; 19941 freebsd3.[01]* | freebsdelf3.[01]*) 19942 shlibpath_overrides_runpath=yes 19943 hardcode_into_libs=yes 19944 ;; 19945 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 19946 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 19947 shlibpath_overrides_runpath=no 19948 hardcode_into_libs=yes 19949 ;; 19950 *) # from 4.6 on, and DragonFly 19951 shlibpath_overrides_runpath=yes 19952 hardcode_into_libs=yes 19953 ;; 19954 esac 19955 ;; 19956 19957haiku*) 19958 version_type=linux # correct to gnu/linux during the next big refactor 19959 need_lib_prefix=no 19960 need_version=no 19961 dynamic_linker="$host_os runtime_loader" 19962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19963 soname_spec='$libname$release$shared_ext$major' 19964 shlibpath_var=LIBRARY_PATH 19965 shlibpath_overrides_runpath=no 19966 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 19967 hardcode_into_libs=yes 19968 ;; 19969 19970hpux9* | hpux10* | hpux11*) 19971 # Give a soname corresponding to the major version so that dld.sl refuses to 19972 # link against other versions. 19973 version_type=sunos 19974 need_lib_prefix=no 19975 need_version=no 19976 case $host_cpu in 19977 ia64*) 19978 shrext_cmds='.so' 19979 hardcode_into_libs=yes 19980 dynamic_linker="$host_os dld.so" 19981 shlibpath_var=LD_LIBRARY_PATH 19982 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19983 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19984 soname_spec='$libname$release$shared_ext$major' 19985 if test 32 = "$HPUX_IA64_MODE"; then 19986 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 19987 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 19988 else 19989 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 19990 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 19991 fi 19992 ;; 19993 hppa*64*) 19994 shrext_cmds='.sl' 19995 hardcode_into_libs=yes 19996 dynamic_linker="$host_os dld.sl" 19997 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 19998 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20000 soname_spec='$libname$release$shared_ext$major' 20001 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 20002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20003 ;; 20004 *) 20005 shrext_cmds='.sl' 20006 dynamic_linker="$host_os dld.sl" 20007 shlibpath_var=SHLIB_PATH 20008 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 20009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20010 soname_spec='$libname$release$shared_ext$major' 20011 ;; 20012 esac 20013 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 20014 postinstall_cmds='chmod 555 $lib' 20015 # or fails outright, so override atomically: 20016 install_override_mode=555 20017 ;; 20018 20019interix[3-9]*) 20020 version_type=linux # correct to gnu/linux during the next big refactor 20021 need_lib_prefix=no 20022 need_version=no 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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 20026 shlibpath_var=LD_LIBRARY_PATH 20027 shlibpath_overrides_runpath=no 20028 hardcode_into_libs=yes 20029 ;; 20030 20031irix5* | irix6* | nonstopux*) 20032 case $host_os in 20033 nonstopux*) version_type=nonstopux ;; 20034 *) 20035 if test yes = "$lt_cv_prog_gnu_ld"; then 20036 version_type=linux # correct to gnu/linux during the next big refactor 20037 else 20038 version_type=irix 20039 fi ;; 20040 esac 20041 need_lib_prefix=no 20042 need_version=no 20043 soname_spec='$libname$release$shared_ext$major' 20044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 20045 case $host_os in 20046 irix5* | nonstopux*) 20047 libsuff= shlibsuff= 20048 ;; 20049 *) 20050 case $LD in # libtool.m4 will add one of these switches to LD 20051 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 20052 libsuff= shlibsuff= libmagic=32-bit;; 20053 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 20054 libsuff=32 shlibsuff=N32 libmagic=N32;; 20055 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 20056 libsuff=64 shlibsuff=64 libmagic=64-bit;; 20057 *) libsuff= shlibsuff= libmagic=never-match;; 20058 esac 20059 ;; 20060 esac 20061 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 20062 shlibpath_overrides_runpath=no 20063 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 20064 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 20065 hardcode_into_libs=yes 20066 ;; 20067 20068# No shared lib support for Linux oldld, aout, or coff. 20069linux*oldld* | linux*aout* | linux*coff*) 20070 dynamic_linker=no 20071 ;; 20072 20073linux*android*) 20074 version_type=none # Android doesn't support versioned libraries. 20075 need_lib_prefix=no 20076 need_version=no 20077 library_names_spec='$libname$release$shared_ext' 20078 soname_spec='$libname$release$shared_ext' 20079 finish_cmds= 20080 shlibpath_var=LD_LIBRARY_PATH 20081 shlibpath_overrides_runpath=yes 20082 20083 # This implies no fast_install, which is unacceptable. 20084 # Some rework will be needed to allow for fast_install 20085 # before this can be enabled. 20086 hardcode_into_libs=yes 20087 20088 dynamic_linker='Android linker' 20089 # Don't embed -rpath directories since the linker doesn't support them. 20090 hardcode_libdir_flag_spec='-L$libdir' 20091 ;; 20092 20093# This must be glibc/ELF. 20094linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 20095 version_type=linux # correct to gnu/linux during the next big refactor 20096 need_lib_prefix=no 20097 need_version=no 20098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20099 soname_spec='$libname$release$shared_ext$major' 20100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 20101 shlibpath_var=LD_LIBRARY_PATH 20102 shlibpath_overrides_runpath=no 20103 20104 # Some binutils ld are patched to set DT_RUNPATH 20105 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 20106 $as_echo_n "(cached) " >&6 20107else 20108 lt_cv_shlibpath_overrides_runpath=no 20109 save_LDFLAGS=$LDFLAGS 20110 save_libdir=$libdir 20111 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 20112 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 20113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20114/* end confdefs.h. */ 20115 20116int 20117main () 20118{ 20119 20120 ; 20121 return 0; 20122} 20123_ACEOF 20124if ac_fn_c_try_link "$LINENO"; then : 20125 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 20126 lt_cv_shlibpath_overrides_runpath=yes 20127fi 20128fi 20129rm -f core conftest.err conftest.$ac_objext \ 20130 conftest$ac_exeext conftest.$ac_ext 20131 LDFLAGS=$save_LDFLAGS 20132 libdir=$save_libdir 20133 20134fi 20135 20136 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 20137 20138 # This implies no fast_install, which is unacceptable. 20139 # Some rework will be needed to allow for fast_install 20140 # before this can be enabled. 20141 hardcode_into_libs=yes 20142 20143 # Ideally, we could use ldconfig to report *all* directores which are 20144 # searched for libraries, however this is still not possible. Aside from not 20145 # being certain /sbin/ldconfig is available, command 20146 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 20147 # even though it is searched at run-time. Try to do the best guess by 20148 # appending ld.so.conf contents (and includes) to the search path. 20149 if test -f /etc/ld.so.conf; then 20150 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' ' '` 20151 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 20152 fi 20153 20154 # We used to test for /lib/ld.so.1 and disable shared libraries on 20155 # powerpc, because MkLinux only supported shared libraries with the 20156 # GNU dynamic linker. Since this was broken with cross compilers, 20157 # most powerpc-linux boxes support dynamic linking these days and 20158 # people can always --disable-shared, the test was removed, and we 20159 # assume the GNU/Linux dynamic linker is in use. 20160 dynamic_linker='GNU/Linux ld.so' 20161 ;; 20162 20163netbsd*) 20164 version_type=sunos 20165 need_lib_prefix=no 20166 need_version=no 20167 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20168 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20170 dynamic_linker='NetBSD (a.out) ld.so' 20171 else 20172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20173 soname_spec='$libname$release$shared_ext$major' 20174 dynamic_linker='NetBSD ld.elf_so' 20175 fi 20176 shlibpath_var=LD_LIBRARY_PATH 20177 shlibpath_overrides_runpath=yes 20178 hardcode_into_libs=yes 20179 ;; 20180 20181newsos6) 20182 version_type=linux # correct to gnu/linux during the next big refactor 20183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20184 shlibpath_var=LD_LIBRARY_PATH 20185 shlibpath_overrides_runpath=yes 20186 ;; 20187 20188*nto* | *qnx*) 20189 version_type=qnx 20190 need_lib_prefix=no 20191 need_version=no 20192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20193 soname_spec='$libname$release$shared_ext$major' 20194 shlibpath_var=LD_LIBRARY_PATH 20195 shlibpath_overrides_runpath=no 20196 hardcode_into_libs=yes 20197 dynamic_linker='ldqnx.so' 20198 ;; 20199 20200openbsd* | bitrig*) 20201 version_type=sunos 20202 sys_lib_dlsearch_path_spec=/usr/lib 20203 need_lib_prefix=no 20204 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 20205 need_version=no 20206 else 20207 need_version=yes 20208 fi 20209 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20211 shlibpath_var=LD_LIBRARY_PATH 20212 shlibpath_overrides_runpath=yes 20213 ;; 20214 20215os2*) 20216 libname_spec='$name' 20217 version_type=windows 20218 shrext_cmds=.dll 20219 need_version=no 20220 need_lib_prefix=no 20221 # OS/2 can only load a DLL with a base name of 8 characters or less. 20222 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 20223 v=$($ECHO $release$versuffix | tr -d .-); 20224 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 20225 $ECHO $n$v`$shared_ext' 20226 library_names_spec='${libname}_dll.$libext' 20227 dynamic_linker='OS/2 ld.exe' 20228 shlibpath_var=BEGINLIBPATH 20229 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 20230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20231 postinstall_cmds='base_file=`basename \$file`~ 20232 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 20233 dldir=$destdir/`dirname \$dlpath`~ 20234 test -d \$dldir || mkdir -p \$dldir~ 20235 $install_prog $dir/$dlname \$dldir/$dlname~ 20236 chmod a+x \$dldir/$dlname~ 20237 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 20238 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 20239 fi' 20240 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 20241 dlpath=$dir/\$dldll~ 20242 $RM \$dlpath' 20243 ;; 20244 20245osf3* | osf4* | osf5*) 20246 version_type=osf 20247 need_lib_prefix=no 20248 need_version=no 20249 soname_spec='$libname$release$shared_ext$major' 20250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20251 shlibpath_var=LD_LIBRARY_PATH 20252 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 20253 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20254 ;; 20255 20256rdos*) 20257 dynamic_linker=no 20258 ;; 20259 20260solaris*) 20261 version_type=linux # correct to gnu/linux during the next big refactor 20262 need_lib_prefix=no 20263 need_version=no 20264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20265 soname_spec='$libname$release$shared_ext$major' 20266 shlibpath_var=LD_LIBRARY_PATH 20267 shlibpath_overrides_runpath=yes 20268 hardcode_into_libs=yes 20269 # ldd complains unless libraries are executable 20270 postinstall_cmds='chmod +x $lib' 20271 ;; 20272 20273sunos4*) 20274 version_type=sunos 20275 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20276 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 20277 shlibpath_var=LD_LIBRARY_PATH 20278 shlibpath_overrides_runpath=yes 20279 if test yes = "$with_gnu_ld"; then 20280 need_lib_prefix=no 20281 fi 20282 need_version=yes 20283 ;; 20284 20285sysv4 | sysv4.3*) 20286 version_type=linux # correct to gnu/linux during the next big refactor 20287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20288 soname_spec='$libname$release$shared_ext$major' 20289 shlibpath_var=LD_LIBRARY_PATH 20290 case $host_vendor in 20291 sni) 20292 shlibpath_overrides_runpath=no 20293 need_lib_prefix=no 20294 runpath_var=LD_RUN_PATH 20295 ;; 20296 siemens) 20297 need_lib_prefix=no 20298 ;; 20299 motorola) 20300 need_lib_prefix=no 20301 need_version=no 20302 shlibpath_overrides_runpath=no 20303 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 20304 ;; 20305 esac 20306 ;; 20307 20308sysv4*MP*) 20309 if test -d /usr/nec; then 20310 version_type=linux # correct to gnu/linux during the next big refactor 20311 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 20312 soname_spec='$libname$shared_ext.$major' 20313 shlibpath_var=LD_LIBRARY_PATH 20314 fi 20315 ;; 20316 20317sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 20318 version_type=sco 20319 need_lib_prefix=no 20320 need_version=no 20321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 20322 soname_spec='$libname$release$shared_ext$major' 20323 shlibpath_var=LD_LIBRARY_PATH 20324 shlibpath_overrides_runpath=yes 20325 hardcode_into_libs=yes 20326 if test yes = "$with_gnu_ld"; then 20327 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 20328 else 20329 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 20330 case $host_os in 20331 sco3.2v5*) 20332 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 20333 ;; 20334 esac 20335 fi 20336 sys_lib_dlsearch_path_spec='/usr/lib' 20337 ;; 20338 20339tpf*) 20340 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 20341 version_type=linux # correct to gnu/linux during the next big refactor 20342 need_lib_prefix=no 20343 need_version=no 20344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20345 shlibpath_var=LD_LIBRARY_PATH 20346 shlibpath_overrides_runpath=no 20347 hardcode_into_libs=yes 20348 ;; 20349 20350uts4*) 20351 version_type=linux # correct to gnu/linux during the next big refactor 20352 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20353 soname_spec='$libname$release$shared_ext$major' 20354 shlibpath_var=LD_LIBRARY_PATH 20355 ;; 20356 20357*) 20358 dynamic_linker=no 20359 ;; 20360esac 20361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 20362$as_echo "$dynamic_linker" >&6; } 20363test no = "$dynamic_linker" && can_build_shared=no 20364 20365variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 20366if test yes = "$GCC"; then 20367 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 20368fi 20369 20370if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 20371 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 20372fi 20373 20374if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 20375 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 20376fi 20377 20378# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 20379configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 20380 20381# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 20382func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 20383 20384# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 20385configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 20386 20387 20388 20389 20390 20391 20392 20393 20394 20395 20396 20397 20398 20399 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 20484$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 20485hardcode_action= 20486if test -n "$hardcode_libdir_flag_spec" || 20487 test -n "$runpath_var" || 20488 test yes = "$hardcode_automatic"; then 20489 20490 # We can hardcode non-existent directories. 20491 if test no != "$hardcode_direct" && 20492 # If the only mechanism to avoid hardcoding is shlibpath_var, we 20493 # have to relink, otherwise we might link with an installed library 20494 # when we should be linking with a yet-to-be-installed one 20495 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 20496 test no != "$hardcode_minus_L"; then 20497 # Linking always hardcodes the temporary library directory. 20498 hardcode_action=relink 20499 else 20500 # We can link without hardcoding, and we can hardcode nonexisting dirs. 20501 hardcode_action=immediate 20502 fi 20503else 20504 # We cannot hardcode anything, or else we can only hardcode existing 20505 # directories. 20506 hardcode_action=unsupported 20507fi 20508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 20509$as_echo "$hardcode_action" >&6; } 20510 20511if test relink = "$hardcode_action" || 20512 test yes = "$inherit_rpath"; then 20513 # Fast installation is not supported 20514 enable_fast_install=no 20515elif test yes = "$shlibpath_overrides_runpath" || 20516 test no = "$enable_shared"; then 20517 # Fast installation is not necessary 20518 enable_fast_install=needless 20519fi 20520 20521 20522 20523 20524 20525 20526 if test yes != "$enable_dlopen"; then 20527 enable_dlopen=unknown 20528 enable_dlopen_self=unknown 20529 enable_dlopen_self_static=unknown 20530else 20531 lt_cv_dlopen=no 20532 lt_cv_dlopen_libs= 20533 20534 case $host_os in 20535 beos*) 20536 lt_cv_dlopen=load_add_on 20537 lt_cv_dlopen_libs= 20538 lt_cv_dlopen_self=yes 20539 ;; 20540 20541 mingw* | pw32* | cegcc*) 20542 lt_cv_dlopen=LoadLibrary 20543 lt_cv_dlopen_libs= 20544 ;; 20545 20546 cygwin*) 20547 lt_cv_dlopen=dlopen 20548 lt_cv_dlopen_libs= 20549 ;; 20550 20551 darwin*) 20552 # if libdl is installed we need to link against it 20553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 20554$as_echo_n "checking for dlopen in -ldl... " >&6; } 20555if ${ac_cv_lib_dl_dlopen+:} false; then : 20556 $as_echo_n "(cached) " >&6 20557else 20558 ac_check_lib_save_LIBS=$LIBS 20559LIBS="-ldl $LIBS" 20560cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20561/* end confdefs.h. */ 20562 20563/* Override any GCC internal prototype to avoid an error. 20564 Use char because int might match the return type of a GCC 20565 builtin and then its argument prototype would still apply. */ 20566#ifdef __cplusplus 20567extern "C" 20568#endif 20569char dlopen (); 20570int 20571main () 20572{ 20573return dlopen (); 20574 ; 20575 return 0; 20576} 20577_ACEOF 20578if ac_fn_c_try_link "$LINENO"; then : 20579 ac_cv_lib_dl_dlopen=yes 20580else 20581 ac_cv_lib_dl_dlopen=no 20582fi 20583rm -f core conftest.err conftest.$ac_objext \ 20584 conftest$ac_exeext conftest.$ac_ext 20585LIBS=$ac_check_lib_save_LIBS 20586fi 20587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 20588$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 20589if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 20590 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 20591else 20592 20593 lt_cv_dlopen=dyld 20594 lt_cv_dlopen_libs= 20595 lt_cv_dlopen_self=yes 20596 20597fi 20598 20599 ;; 20600 20601 tpf*) 20602 # Don't try to run any link tests for TPF. We know it's impossible 20603 # because TPF is a cross-compiler, and we know how we open DSOs. 20604 lt_cv_dlopen=dlopen 20605 lt_cv_dlopen_libs= 20606 lt_cv_dlopen_self=no 20607 ;; 20608 20609 *) 20610 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 20611if test "x$ac_cv_func_shl_load" = xyes; then : 20612 lt_cv_dlopen=shl_load 20613else 20614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 20615$as_echo_n "checking for shl_load in -ldld... " >&6; } 20616if ${ac_cv_lib_dld_shl_load+:} false; then : 20617 $as_echo_n "(cached) " >&6 20618else 20619 ac_check_lib_save_LIBS=$LIBS 20620LIBS="-ldld $LIBS" 20621cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20622/* end confdefs.h. */ 20623 20624/* Override any GCC internal prototype to avoid an error. 20625 Use char because int might match the return type of a GCC 20626 builtin and then its argument prototype would still apply. */ 20627#ifdef __cplusplus 20628extern "C" 20629#endif 20630char shl_load (); 20631int 20632main () 20633{ 20634return shl_load (); 20635 ; 20636 return 0; 20637} 20638_ACEOF 20639if ac_fn_c_try_link "$LINENO"; then : 20640 ac_cv_lib_dld_shl_load=yes 20641else 20642 ac_cv_lib_dld_shl_load=no 20643fi 20644rm -f core conftest.err conftest.$ac_objext \ 20645 conftest$ac_exeext conftest.$ac_ext 20646LIBS=$ac_check_lib_save_LIBS 20647fi 20648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 20649$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 20650if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 20651 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 20652else 20653 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 20654if test "x$ac_cv_func_dlopen" = xyes; then : 20655 lt_cv_dlopen=dlopen 20656else 20657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 20658$as_echo_n "checking for dlopen in -ldl... " >&6; } 20659if ${ac_cv_lib_dl_dlopen+:} false; then : 20660 $as_echo_n "(cached) " >&6 20661else 20662 ac_check_lib_save_LIBS=$LIBS 20663LIBS="-ldl $LIBS" 20664cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20665/* end confdefs.h. */ 20666 20667/* Override any GCC internal prototype to avoid an error. 20668 Use char because int might match the return type of a GCC 20669 builtin and then its argument prototype would still apply. */ 20670#ifdef __cplusplus 20671extern "C" 20672#endif 20673char dlopen (); 20674int 20675main () 20676{ 20677return dlopen (); 20678 ; 20679 return 0; 20680} 20681_ACEOF 20682if ac_fn_c_try_link "$LINENO"; then : 20683 ac_cv_lib_dl_dlopen=yes 20684else 20685 ac_cv_lib_dl_dlopen=no 20686fi 20687rm -f core conftest.err conftest.$ac_objext \ 20688 conftest$ac_exeext conftest.$ac_ext 20689LIBS=$ac_check_lib_save_LIBS 20690fi 20691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 20692$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 20693if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 20694 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 20695else 20696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 20697$as_echo_n "checking for dlopen in -lsvld... " >&6; } 20698if ${ac_cv_lib_svld_dlopen+:} false; then : 20699 $as_echo_n "(cached) " >&6 20700else 20701 ac_check_lib_save_LIBS=$LIBS 20702LIBS="-lsvld $LIBS" 20703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20704/* end confdefs.h. */ 20705 20706/* Override any GCC internal prototype to avoid an error. 20707 Use char because int might match the return type of a GCC 20708 builtin and then its argument prototype would still apply. */ 20709#ifdef __cplusplus 20710extern "C" 20711#endif 20712char dlopen (); 20713int 20714main () 20715{ 20716return dlopen (); 20717 ; 20718 return 0; 20719} 20720_ACEOF 20721if ac_fn_c_try_link "$LINENO"; then : 20722 ac_cv_lib_svld_dlopen=yes 20723else 20724 ac_cv_lib_svld_dlopen=no 20725fi 20726rm -f core conftest.err conftest.$ac_objext \ 20727 conftest$ac_exeext conftest.$ac_ext 20728LIBS=$ac_check_lib_save_LIBS 20729fi 20730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 20731$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 20732if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 20733 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 20734else 20735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 20736$as_echo_n "checking for dld_link in -ldld... " >&6; } 20737if ${ac_cv_lib_dld_dld_link+:} false; then : 20738 $as_echo_n "(cached) " >&6 20739else 20740 ac_check_lib_save_LIBS=$LIBS 20741LIBS="-ldld $LIBS" 20742cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20743/* end confdefs.h. */ 20744 20745/* Override any GCC internal prototype to avoid an error. 20746 Use char because int might match the return type of a GCC 20747 builtin and then its argument prototype would still apply. */ 20748#ifdef __cplusplus 20749extern "C" 20750#endif 20751char dld_link (); 20752int 20753main () 20754{ 20755return dld_link (); 20756 ; 20757 return 0; 20758} 20759_ACEOF 20760if ac_fn_c_try_link "$LINENO"; then : 20761 ac_cv_lib_dld_dld_link=yes 20762else 20763 ac_cv_lib_dld_dld_link=no 20764fi 20765rm -f core conftest.err conftest.$ac_objext \ 20766 conftest$ac_exeext conftest.$ac_ext 20767LIBS=$ac_check_lib_save_LIBS 20768fi 20769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 20770$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 20771if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 20772 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 20773fi 20774 20775 20776fi 20777 20778 20779fi 20780 20781 20782fi 20783 20784 20785fi 20786 20787 20788fi 20789 20790 ;; 20791 esac 20792 20793 if test no = "$lt_cv_dlopen"; then 20794 enable_dlopen=no 20795 else 20796 enable_dlopen=yes 20797 fi 20798 20799 case $lt_cv_dlopen in 20800 dlopen) 20801 save_CPPFLAGS=$CPPFLAGS 20802 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 20803 20804 save_LDFLAGS=$LDFLAGS 20805 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 20806 20807 save_LIBS=$LIBS 20808 LIBS="$lt_cv_dlopen_libs $LIBS" 20809 20810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 20811$as_echo_n "checking whether a program can dlopen itself... " >&6; } 20812if ${lt_cv_dlopen_self+:} false; then : 20813 $as_echo_n "(cached) " >&6 20814else 20815 if test yes = "$cross_compiling"; then : 20816 lt_cv_dlopen_self=cross 20817else 20818 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20819 lt_status=$lt_dlunknown 20820 cat > conftest.$ac_ext <<_LT_EOF 20821#line $LINENO "configure" 20822#include "confdefs.h" 20823 20824#if HAVE_DLFCN_H 20825#include <dlfcn.h> 20826#endif 20827 20828#include <stdio.h> 20829 20830#ifdef RTLD_GLOBAL 20831# define LT_DLGLOBAL RTLD_GLOBAL 20832#else 20833# ifdef DL_GLOBAL 20834# define LT_DLGLOBAL DL_GLOBAL 20835# else 20836# define LT_DLGLOBAL 0 20837# endif 20838#endif 20839 20840/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20841 find out it does not work in some platform. */ 20842#ifndef LT_DLLAZY_OR_NOW 20843# ifdef RTLD_LAZY 20844# define LT_DLLAZY_OR_NOW RTLD_LAZY 20845# else 20846# ifdef DL_LAZY 20847# define LT_DLLAZY_OR_NOW DL_LAZY 20848# else 20849# ifdef RTLD_NOW 20850# define LT_DLLAZY_OR_NOW RTLD_NOW 20851# else 20852# ifdef DL_NOW 20853# define LT_DLLAZY_OR_NOW DL_NOW 20854# else 20855# define LT_DLLAZY_OR_NOW 0 20856# endif 20857# endif 20858# endif 20859# endif 20860#endif 20861 20862/* When -fvisibility=hidden is used, assume the code has been annotated 20863 correspondingly for the symbols needed. */ 20864#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 20865int fnord () __attribute__((visibility("default"))); 20866#endif 20867 20868int fnord () { return 42; } 20869int main () 20870{ 20871 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20872 int status = $lt_dlunknown; 20873 20874 if (self) 20875 { 20876 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20877 else 20878 { 20879 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20880 else puts (dlerror ()); 20881 } 20882 /* dlclose (self); */ 20883 } 20884 else 20885 puts (dlerror ()); 20886 20887 return status; 20888} 20889_LT_EOF 20890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 20891 (eval $ac_link) 2>&5 20892 ac_status=$? 20893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20894 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 20895 (./conftest; exit; ) >&5 2>/dev/null 20896 lt_status=$? 20897 case x$lt_status in 20898 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 20899 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 20900 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 20901 esac 20902 else : 20903 # compilation failed 20904 lt_cv_dlopen_self=no 20905 fi 20906fi 20907rm -fr conftest* 20908 20909 20910fi 20911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 20912$as_echo "$lt_cv_dlopen_self" >&6; } 20913 20914 if test yes = "$lt_cv_dlopen_self"; then 20915 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 20916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 20917$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 20918if ${lt_cv_dlopen_self_static+:} false; then : 20919 $as_echo_n "(cached) " >&6 20920else 20921 if test yes = "$cross_compiling"; then : 20922 lt_cv_dlopen_self_static=cross 20923else 20924 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20925 lt_status=$lt_dlunknown 20926 cat > conftest.$ac_ext <<_LT_EOF 20927#line $LINENO "configure" 20928#include "confdefs.h" 20929 20930#if HAVE_DLFCN_H 20931#include <dlfcn.h> 20932#endif 20933 20934#include <stdio.h> 20935 20936#ifdef RTLD_GLOBAL 20937# define LT_DLGLOBAL RTLD_GLOBAL 20938#else 20939# ifdef DL_GLOBAL 20940# define LT_DLGLOBAL DL_GLOBAL 20941# else 20942# define LT_DLGLOBAL 0 20943# endif 20944#endif 20945 20946/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20947 find out it does not work in some platform. */ 20948#ifndef LT_DLLAZY_OR_NOW 20949# ifdef RTLD_LAZY 20950# define LT_DLLAZY_OR_NOW RTLD_LAZY 20951# else 20952# ifdef DL_LAZY 20953# define LT_DLLAZY_OR_NOW DL_LAZY 20954# else 20955# ifdef RTLD_NOW 20956# define LT_DLLAZY_OR_NOW RTLD_NOW 20957# else 20958# ifdef DL_NOW 20959# define LT_DLLAZY_OR_NOW DL_NOW 20960# else 20961# define LT_DLLAZY_OR_NOW 0 20962# endif 20963# endif 20964# endif 20965# endif 20966#endif 20967 20968/* When -fvisibility=hidden is used, assume the code has been annotated 20969 correspondingly for the symbols needed. */ 20970#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 20971int fnord () __attribute__((visibility("default"))); 20972#endif 20973 20974int fnord () { return 42; } 20975int main () 20976{ 20977 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20978 int status = $lt_dlunknown; 20979 20980 if (self) 20981 { 20982 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20983 else 20984 { 20985 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20986 else puts (dlerror ()); 20987 } 20988 /* dlclose (self); */ 20989 } 20990 else 20991 puts (dlerror ()); 20992 20993 return status; 20994} 20995_LT_EOF 20996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 20997 (eval $ac_link) 2>&5 20998 ac_status=$? 20999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21000 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 21001 (./conftest; exit; ) >&5 2>/dev/null 21002 lt_status=$? 21003 case x$lt_status in 21004 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 21005 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 21006 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 21007 esac 21008 else : 21009 # compilation failed 21010 lt_cv_dlopen_self_static=no 21011 fi 21012fi 21013rm -fr conftest* 21014 21015 21016fi 21017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 21018$as_echo "$lt_cv_dlopen_self_static" >&6; } 21019 fi 21020 21021 CPPFLAGS=$save_CPPFLAGS 21022 LDFLAGS=$save_LDFLAGS 21023 LIBS=$save_LIBS 21024 ;; 21025 esac 21026 21027 case $lt_cv_dlopen_self in 21028 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 21029 *) enable_dlopen_self=unknown ;; 21030 esac 21031 21032 case $lt_cv_dlopen_self_static in 21033 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 21034 *) enable_dlopen_self_static=unknown ;; 21035 esac 21036fi 21037 21038 21039 21040 21041 21042 21043 21044 21045 21046 21047 21048 21049 21050 21051 21052 21053 21054striplib= 21055old_striplib= 21056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 21057$as_echo_n "checking whether stripping libraries is possible... " >&6; } 21058if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 21059 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 21060 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 21061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21062$as_echo "yes" >&6; } 21063else 21064# FIXME - insert some real tests, host_os isn't really good enough 21065 case $host_os in 21066 darwin*) 21067 if test -n "$STRIP"; then 21068 striplib="$STRIP -x" 21069 old_striplib="$STRIP -S" 21070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21071$as_echo "yes" >&6; } 21072 else 21073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21074$as_echo "no" >&6; } 21075 fi 21076 ;; 21077 *) 21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21079$as_echo "no" >&6; } 21080 ;; 21081 esac 21082fi 21083 21084 21085 21086 21087 21088 21089 21090 21091 21092 21093 21094 21095 # Report what library types will actually be built 21096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 21097$as_echo_n "checking if libtool supports shared libraries... " >&6; } 21098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 21099$as_echo "$can_build_shared" >&6; } 21100 21101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 21102$as_echo_n "checking whether to build shared libraries... " >&6; } 21103 test no = "$can_build_shared" && enable_shared=no 21104 21105 # On AIX, shared libraries and static libraries use the same namespace, and 21106 # are all built from PIC. 21107 case $host_os in 21108 aix3*) 21109 test yes = "$enable_shared" && enable_static=no 21110 if test -n "$RANLIB"; then 21111 archive_cmds="$archive_cmds~\$RANLIB \$lib" 21112 postinstall_cmds='$RANLIB $lib' 21113 fi 21114 ;; 21115 21116 aix[4-9]*) 21117 if test ia64 != "$host_cpu"; then 21118 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 21119 yes,aix,yes) ;; # shared object as lib.so file only 21120 yes,svr4,*) ;; # shared object as lib.so archive member only 21121 yes,*) enable_static=no ;; # shared object in lib.a archive as well 21122 esac 21123 fi 21124 ;; 21125 esac 21126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 21127$as_echo "$enable_shared" >&6; } 21128 21129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 21130$as_echo_n "checking whether to build static libraries... " >&6; } 21131 # Make sure either enable_shared or enable_static is yes. 21132 test yes = "$enable_shared" || enable_static=yes 21133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 21134$as_echo "$enable_static" >&6; } 21135 21136 21137 21138 21139fi 21140ac_ext=c 21141ac_cpp='$CPP $CPPFLAGS' 21142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21144ac_compiler_gnu=$ac_cv_c_compiler_gnu 21145 21146CC=$lt_save_CC 21147 21148 21149 21150 21151 21152 21153 21154 21155 21156 21157 21158 21159 21160 21161 21162 ac_config_commands="$ac_config_commands libtool" 21163 21164 21165 21166 21167# Only expand once: 21168 21169 21170 21171 21172 21173 21174 21175 21176 21177if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21178 if test -n "$ac_tool_prefix"; then 21179 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21180set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21182$as_echo_n "checking for $ac_word... " >&6; } 21183if ${ac_cv_path_PKG_CONFIG+:} false; then : 21184 $as_echo_n "(cached) " >&6 21185else 21186 case $PKG_CONFIG in 21187 [\\/]* | ?:[\\/]*) 21188 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21189 ;; 21190 *) 21191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21192for as_dir in $PATH 21193do 21194 IFS=$as_save_IFS 21195 test -z "$as_dir" && as_dir=. 21196 for ac_exec_ext in '' $ac_executable_extensions; do 21197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21198 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21200 break 2 21201 fi 21202done 21203 done 21204IFS=$as_save_IFS 21205 21206 ;; 21207esac 21208fi 21209PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21210if test -n "$PKG_CONFIG"; then 21211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 21212$as_echo "$PKG_CONFIG" >&6; } 21213else 21214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21215$as_echo "no" >&6; } 21216fi 21217 21218 21219fi 21220if test -z "$ac_cv_path_PKG_CONFIG"; then 21221 ac_pt_PKG_CONFIG=$PKG_CONFIG 21222 # Extract the first word of "pkg-config", so it can be a program name with args. 21223set dummy pkg-config; ac_word=$2 21224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21225$as_echo_n "checking for $ac_word... " >&6; } 21226if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 21227 $as_echo_n "(cached) " >&6 21228else 21229 case $ac_pt_PKG_CONFIG in 21230 [\\/]* | ?:[\\/]*) 21231 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21232 ;; 21233 *) 21234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21235for as_dir in $PATH 21236do 21237 IFS=$as_save_IFS 21238 test -z "$as_dir" && as_dir=. 21239 for ac_exec_ext in '' $ac_executable_extensions; do 21240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21241 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21243 break 2 21244 fi 21245done 21246 done 21247IFS=$as_save_IFS 21248 21249 ;; 21250esac 21251fi 21252ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21253if test -n "$ac_pt_PKG_CONFIG"; then 21254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 21255$as_echo "$ac_pt_PKG_CONFIG" >&6; } 21256else 21257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21258$as_echo "no" >&6; } 21259fi 21260 21261 if test "x$ac_pt_PKG_CONFIG" = x; then 21262 PKG_CONFIG="" 21263 else 21264 case $cross_compiling:$ac_tool_warned in 21265yes:) 21266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21268ac_tool_warned=yes ;; 21269esac 21270 PKG_CONFIG=$ac_pt_PKG_CONFIG 21271 fi 21272else 21273 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21274fi 21275 21276fi 21277if test -n "$PKG_CONFIG"; then 21278 _pkg_min_version=0.9.0 21279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 21280$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21281 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21283$as_echo "yes" >&6; } 21284 else 21285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21286$as_echo "no" >&6; } 21287 PKG_CONFIG="" 21288 fi 21289fi 21290for ac_prog in flex lex 21291do 21292 # Extract the first word of "$ac_prog", so it can be a program name with args. 21293set dummy $ac_prog; ac_word=$2 21294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21295$as_echo_n "checking for $ac_word... " >&6; } 21296if ${ac_cv_prog_LEX+:} false; then : 21297 $as_echo_n "(cached) " >&6 21298else 21299 if test -n "$LEX"; then 21300 ac_cv_prog_LEX="$LEX" # Let the user override the test. 21301else 21302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21303for as_dir in $PATH 21304do 21305 IFS=$as_save_IFS 21306 test -z "$as_dir" && as_dir=. 21307 for ac_exec_ext in '' $ac_executable_extensions; do 21308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21309 ac_cv_prog_LEX="$ac_prog" 21310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21311 break 2 21312 fi 21313done 21314 done 21315IFS=$as_save_IFS 21316 21317fi 21318fi 21319LEX=$ac_cv_prog_LEX 21320if test -n "$LEX"; then 21321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 21322$as_echo "$LEX" >&6; } 21323else 21324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21325$as_echo "no" >&6; } 21326fi 21327 21328 21329 test -n "$LEX" && break 21330done 21331test -n "$LEX" || LEX=":" 21332 21333if test "x$LEX" != "x:"; then 21334 cat >conftest.l <<_ACEOF 21335%% 21336a { ECHO; } 21337b { REJECT; } 21338c { yymore (); } 21339d { yyless (1); } 21340e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 21341 yyless ((input () != 0)); } 21342f { unput (yytext[0]); } 21343. { BEGIN INITIAL; } 21344%% 21345#ifdef YYTEXT_POINTER 21346extern char *yytext; 21347#endif 21348int 21349main (void) 21350{ 21351 return ! yylex () + ! yywrap (); 21352} 21353_ACEOF 21354{ { ac_try="$LEX conftest.l" 21355case "(($ac_try" in 21356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21357 *) ac_try_echo=$ac_try;; 21358esac 21359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 21360$as_echo "$ac_try_echo"; } >&5 21361 (eval "$LEX conftest.l") 2>&5 21362 ac_status=$? 21363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21364 test $ac_status = 0; } 21365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 21366$as_echo_n "checking lex output file root... " >&6; } 21367if ${ac_cv_prog_lex_root+:} false; then : 21368 $as_echo_n "(cached) " >&6 21369else 21370 21371if test -f lex.yy.c; then 21372 ac_cv_prog_lex_root=lex.yy 21373elif test -f lexyy.c; then 21374 ac_cv_prog_lex_root=lexyy 21375else 21376 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 21377fi 21378fi 21379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 21380$as_echo "$ac_cv_prog_lex_root" >&6; } 21381LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 21382 21383if test -z "${LEXLIB+set}"; then 21384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 21385$as_echo_n "checking lex library... " >&6; } 21386if ${ac_cv_lib_lex+:} false; then : 21387 $as_echo_n "(cached) " >&6 21388else 21389 21390 ac_save_LIBS=$LIBS 21391 ac_cv_lib_lex='none needed' 21392 for ac_lib in '' -lfl -ll; do 21393 LIBS="$ac_lib $ac_save_LIBS" 21394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21395/* end confdefs.h. */ 21396`cat $LEX_OUTPUT_ROOT.c` 21397_ACEOF 21398if ac_fn_c_try_link "$LINENO"; then : 21399 ac_cv_lib_lex=$ac_lib 21400fi 21401rm -f core conftest.err conftest.$ac_objext \ 21402 conftest$ac_exeext conftest.$ac_ext 21403 test "$ac_cv_lib_lex" != 'none needed' && break 21404 done 21405 LIBS=$ac_save_LIBS 21406 21407fi 21408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 21409$as_echo "$ac_cv_lib_lex" >&6; } 21410 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 21411fi 21412 21413 21414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 21415$as_echo_n "checking whether yytext is a pointer... " >&6; } 21416if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 21417 $as_echo_n "(cached) " >&6 21418else 21419 # POSIX says lex can declare yytext either as a pointer or an array; the 21420# default is implementation-dependent. Figure out which it is, since 21421# not all implementations provide the %pointer and %array declarations. 21422ac_cv_prog_lex_yytext_pointer=no 21423ac_save_LIBS=$LIBS 21424LIBS="$LEXLIB $ac_save_LIBS" 21425cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21426/* end confdefs.h. */ 21427 21428 #define YYTEXT_POINTER 1 21429`cat $LEX_OUTPUT_ROOT.c` 21430_ACEOF 21431if ac_fn_c_try_link "$LINENO"; then : 21432 ac_cv_prog_lex_yytext_pointer=yes 21433fi 21434rm -f core conftest.err conftest.$ac_objext \ 21435 conftest$ac_exeext conftest.$ac_ext 21436LIBS=$ac_save_LIBS 21437 21438fi 21439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 21440$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 21441if test $ac_cv_prog_lex_yytext_pointer = yes; then 21442 21443$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 21444 21445fi 21446rm -f conftest.l $LEX_OUTPUT_ROOT.c 21447 21448fi 21449for ac_prog in 'bison -y' byacc 21450do 21451 # Extract the first word of "$ac_prog", so it can be a program name with args. 21452set dummy $ac_prog; ac_word=$2 21453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21454$as_echo_n "checking for $ac_word... " >&6; } 21455if ${ac_cv_prog_YACC+:} false; then : 21456 $as_echo_n "(cached) " >&6 21457else 21458 if test -n "$YACC"; then 21459 ac_cv_prog_YACC="$YACC" # Let the user override the test. 21460else 21461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21462for as_dir in $PATH 21463do 21464 IFS=$as_save_IFS 21465 test -z "$as_dir" && as_dir=. 21466 for ac_exec_ext in '' $ac_executable_extensions; do 21467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21468 ac_cv_prog_YACC="$ac_prog" 21469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21470 break 2 21471 fi 21472done 21473 done 21474IFS=$as_save_IFS 21475 21476fi 21477fi 21478YACC=$ac_cv_prog_YACC 21479if test -n "$YACC"; then 21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 21481$as_echo "$YACC" >&6; } 21482else 21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21484$as_echo "no" >&6; } 21485fi 21486 21487 21488 test -n "$YACC" && break 21489done 21490test -n "$YACC" || YACC="yacc" 21491 21492# Check whether --enable-largefile was given. 21493if test "${enable_largefile+set}" = set; then : 21494 enableval=$enable_largefile; 21495fi 21496 21497if test "$enable_largefile" != no; then 21498 21499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 21500$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 21501if ${ac_cv_sys_largefile_CC+:} false; then : 21502 $as_echo_n "(cached) " >&6 21503else 21504 ac_cv_sys_largefile_CC=no 21505 if test "$GCC" != yes; then 21506 ac_save_CC=$CC 21507 while :; do 21508 # IRIX 6.2 and later do not support large files by default, 21509 # so use the C compiler's -n32 option if that helps. 21510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21511/* end confdefs.h. */ 21512#include <sys/types.h> 21513 /* Check that off_t can represent 2**63 - 1 correctly. 21514 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21515 since some C++ compilers masquerading as C compilers 21516 incorrectly reject 9223372036854775807. */ 21517#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21518 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21519 && LARGE_OFF_T % 2147483647 == 1) 21520 ? 1 : -1]; 21521int 21522main () 21523{ 21524 21525 ; 21526 return 0; 21527} 21528_ACEOF 21529 if ac_fn_c_try_compile "$LINENO"; then : 21530 break 21531fi 21532rm -f core conftest.err conftest.$ac_objext 21533 CC="$CC -n32" 21534 if ac_fn_c_try_compile "$LINENO"; then : 21535 ac_cv_sys_largefile_CC=' -n32'; break 21536fi 21537rm -f core conftest.err conftest.$ac_objext 21538 break 21539 done 21540 CC=$ac_save_CC 21541 rm -f conftest.$ac_ext 21542 fi 21543fi 21544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 21545$as_echo "$ac_cv_sys_largefile_CC" >&6; } 21546 if test "$ac_cv_sys_largefile_CC" != no; then 21547 CC=$CC$ac_cv_sys_largefile_CC 21548 fi 21549 21550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 21551$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 21552if ${ac_cv_sys_file_offset_bits+:} false; then : 21553 $as_echo_n "(cached) " >&6 21554else 21555 while :; do 21556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21557/* end confdefs.h. */ 21558#include <sys/types.h> 21559 /* Check that off_t can represent 2**63 - 1 correctly. 21560 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21561 since some C++ compilers masquerading as C compilers 21562 incorrectly reject 9223372036854775807. */ 21563#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21564 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21565 && LARGE_OFF_T % 2147483647 == 1) 21566 ? 1 : -1]; 21567int 21568main () 21569{ 21570 21571 ; 21572 return 0; 21573} 21574_ACEOF 21575if ac_fn_c_try_compile "$LINENO"; then : 21576 ac_cv_sys_file_offset_bits=no; break 21577fi 21578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21580/* end confdefs.h. */ 21581#define _FILE_OFFSET_BITS 64 21582#include <sys/types.h> 21583 /* Check that off_t can represent 2**63 - 1 correctly. 21584 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21585 since some C++ compilers masquerading as C compilers 21586 incorrectly reject 9223372036854775807. */ 21587#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21588 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21589 && LARGE_OFF_T % 2147483647 == 1) 21590 ? 1 : -1]; 21591int 21592main () 21593{ 21594 21595 ; 21596 return 0; 21597} 21598_ACEOF 21599if ac_fn_c_try_compile "$LINENO"; then : 21600 ac_cv_sys_file_offset_bits=64; break 21601fi 21602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21603 ac_cv_sys_file_offset_bits=unknown 21604 break 21605done 21606fi 21607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 21608$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 21609case $ac_cv_sys_file_offset_bits in #( 21610 no | unknown) ;; 21611 *) 21612cat >>confdefs.h <<_ACEOF 21613#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 21614_ACEOF 21615;; 21616esac 21617rm -rf conftest* 21618 if test $ac_cv_sys_file_offset_bits = unknown; then 21619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 21620$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 21621if ${ac_cv_sys_large_files+:} false; then : 21622 $as_echo_n "(cached) " >&6 21623else 21624 while :; do 21625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21626/* end confdefs.h. */ 21627#include <sys/types.h> 21628 /* Check that off_t can represent 2**63 - 1 correctly. 21629 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21630 since some C++ compilers masquerading as C compilers 21631 incorrectly reject 9223372036854775807. */ 21632#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21633 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21634 && LARGE_OFF_T % 2147483647 == 1) 21635 ? 1 : -1]; 21636int 21637main () 21638{ 21639 21640 ; 21641 return 0; 21642} 21643_ACEOF 21644if ac_fn_c_try_compile "$LINENO"; then : 21645 ac_cv_sys_large_files=no; break 21646fi 21647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21649/* end confdefs.h. */ 21650#define _LARGE_FILES 1 21651#include <sys/types.h> 21652 /* Check that off_t can represent 2**63 - 1 correctly. 21653 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21654 since some C++ compilers masquerading as C compilers 21655 incorrectly reject 9223372036854775807. */ 21656#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21657 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21658 && LARGE_OFF_T % 2147483647 == 1) 21659 ? 1 : -1]; 21660int 21661main () 21662{ 21663 21664 ; 21665 return 0; 21666} 21667_ACEOF 21668if ac_fn_c_try_compile "$LINENO"; then : 21669 ac_cv_sys_large_files=1; break 21670fi 21671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21672 ac_cv_sys_large_files=unknown 21673 break 21674done 21675fi 21676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 21677$as_echo "$ac_cv_sys_large_files" >&6; } 21678case $ac_cv_sys_large_files in #( 21679 no | unknown) ;; 21680 *) 21681cat >>confdefs.h <<_ACEOF 21682#define _LARGE_FILES $ac_cv_sys_large_files 21683_ACEOF 21684;; 21685esac 21686rm -rf conftest* 21687 fi 21688 21689 21690fi 21691 21692 21693 21694for ac_prog in cpp 21695do 21696 # Extract the first word of "$ac_prog", so it can be a program name with args. 21697set dummy $ac_prog; ac_word=$2 21698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21699$as_echo_n "checking for $ac_word... " >&6; } 21700if ${ac_cv_path_RAWCPP+:} false; then : 21701 $as_echo_n "(cached) " >&6 21702else 21703 case $RAWCPP in 21704 [\\/]* | ?:[\\/]*) 21705 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 21706 ;; 21707 *) 21708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21709as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 21710for as_dir in $as_dummy 21711do 21712 IFS=$as_save_IFS 21713 test -z "$as_dir" && as_dir=. 21714 for ac_exec_ext in '' $ac_executable_extensions; do 21715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21716 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 21717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21718 break 2 21719 fi 21720done 21721 done 21722IFS=$as_save_IFS 21723 21724 ;; 21725esac 21726fi 21727RAWCPP=$ac_cv_path_RAWCPP 21728if test -n "$RAWCPP"; then 21729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 21730$as_echo "$RAWCPP" >&6; } 21731else 21732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21733$as_echo "no" >&6; } 21734fi 21735 21736 21737 test -n "$RAWCPP" && break 21738done 21739test -n "$RAWCPP" || RAWCPP="${CPP}" 21740 21741 21742# Check for flag to avoid builtin definitions - assumes unix is predefined, 21743# which is not the best choice for supporting other OS'es, but covers most 21744# of the ones we need for now. 21745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 21746$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 21747cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21748/* end confdefs.h. */ 21749Does cpp redefine unix ? 21750_ACEOF 21751if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21753$as_echo "no" >&6; } 21754else 21755 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 21756 RAWCPPFLAGS=-undef 21757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21758$as_echo "yes" >&6; } 21759 # under Cygwin unix is still defined even with -undef 21760 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 21761 RAWCPPFLAGS="-undef -ansi" 21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 21763$as_echo "yes, with -ansi" >&6; } 21764 else 21765 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 21766 fi 21767fi 21768rm -f conftest.$ac_ext 21769 21770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 21771$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 21772cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21773/* end confdefs.h. */ 21774Does cpp preserve "whitespace"? 21775_ACEOF 21776if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21778$as_echo "no" >&6; } 21779else 21780 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 21781 TRADITIONALCPPFLAGS="-traditional" 21782 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 21783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21784$as_echo "yes" >&6; } 21785 else 21786 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 21787 fi 21788fi 21789rm -f conftest.$ac_ext 21790 21791 21792 21793 21794# Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow 21795# easier overrides at build time. 21796XSERVER_CFLAGS='$(CWARNFLAGS)' 21797 21798if test "x$GCC" = xyes ; then 21799 XSERVER_CFLAGS="$XSERVER_CFLAGS -fno-strict-aliasing" 21800fi 21801 21802 21803# Check whether --with-dtrace was given. 21804if test "${with_dtrace+set}" = set; then : 21805 withval=$with_dtrace; WDTRACE=$withval 21806else 21807 WDTRACE=auto 21808fi 21809 21810if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then 21811 # Extract the first word of "dtrace", so it can be a program name with args. 21812set dummy dtrace; ac_word=$2 21813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21814$as_echo_n "checking for $ac_word... " >&6; } 21815if ${ac_cv_path_DTRACE+:} false; then : 21816 $as_echo_n "(cached) " >&6 21817else 21818 case $DTRACE in 21819 [\\/]* | ?:[\\/]*) 21820 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 21821 ;; 21822 *) 21823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21824as_dummy="$PATH:/usr/sbin" 21825for as_dir in $as_dummy 21826do 21827 IFS=$as_save_IFS 21828 test -z "$as_dir" && as_dir=. 21829 for ac_exec_ext in '' $ac_executable_extensions; do 21830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21831 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 21832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21833 break 2 21834 fi 21835done 21836 done 21837IFS=$as_save_IFS 21838 21839 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found" 21840 ;; 21841esac 21842fi 21843DTRACE=$ac_cv_path_DTRACE 21844if test -n "$DTRACE"; then 21845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 21846$as_echo "$DTRACE" >&6; } 21847else 21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21849$as_echo "no" >&6; } 21850fi 21851 21852 21853 if test "x$DTRACE" = "xnot_found" ; then 21854 if test "x$WDTRACE" = "xyes" ; then 21855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21857as_fn_error $? "dtrace requested but not found 21858See \`config.log' for more details" "$LINENO" 5; } 21859 fi 21860 WDTRACE="no" 21861 else 21862 ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 21863if test "x$ac_cv_header_sys_sdt_h" = xyes; then : 21864 HAS_SDT_H="yes" 21865else 21866 HAS_SDT_H="no" 21867fi 21868 21869 21870 if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then 21871 WDTRACE="no" 21872 fi 21873 fi 21874fi 21875if test "x$WDTRACE" != "xno" ; then 21876 21877$as_echo "#define XSERVER_DTRACE 1" >>confdefs.h 21878 21879 21880# Solaris/OpenSolaris require dtrace -G to build dtrace probe information into 21881# object files, and require linking with those as relocatable objects, not .a 21882# archives. MacOS X handles all this in the normal compiler toolchain, and on 21883# some releases (like Tiger), will error out on dtrace -G. For now, other 21884# platforms with Dtrace ports are assumed to support -G (the FreeBSD and Linux 21885# ports appear to, based on my web searches, but have not yet been tested). 21886 case $host_os in 21887 darwin*) SPECIAL_DTRACE_OBJECTS=no ;; 21888 *) SPECIAL_DTRACE_OBJECTS=yes ;; 21889 esac 21890fi 21891 if test "x$WDTRACE" != "xno"; then 21892 XSERVER_DTRACE_TRUE= 21893 XSERVER_DTRACE_FALSE='#' 21894else 21895 XSERVER_DTRACE_TRUE='#' 21896 XSERVER_DTRACE_FALSE= 21897fi 21898 21899 if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes"; then 21900 SPECIAL_DTRACE_OBJECTS_TRUE= 21901 SPECIAL_DTRACE_OBJECTS_FALSE='#' 21902else 21903 SPECIAL_DTRACE_OBJECTS_TRUE='#' 21904 SPECIAL_DTRACE_OBJECTS_FALSE= 21905fi 21906 21907 21908ac_header_dirent=no 21909for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 21910 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 21911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 21912$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 21913if eval \${$as_ac_Header+:} false; then : 21914 $as_echo_n "(cached) " >&6 21915else 21916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21917/* end confdefs.h. */ 21918#include <sys/types.h> 21919#include <$ac_hdr> 21920 21921int 21922main () 21923{ 21924if ((DIR *) 0) 21925return 0; 21926 ; 21927 return 0; 21928} 21929_ACEOF 21930if ac_fn_c_try_compile "$LINENO"; then : 21931 eval "$as_ac_Header=yes" 21932else 21933 eval "$as_ac_Header=no" 21934fi 21935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21936fi 21937eval ac_res=\$$as_ac_Header 21938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21939$as_echo "$ac_res" >&6; } 21940if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21941 cat >>confdefs.h <<_ACEOF 21942#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 21943_ACEOF 21944 21945ac_header_dirent=$ac_hdr; break 21946fi 21947 21948done 21949# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 21950if test $ac_header_dirent = dirent.h; then 21951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 21952$as_echo_n "checking for library containing opendir... " >&6; } 21953if ${ac_cv_search_opendir+:} false; then : 21954 $as_echo_n "(cached) " >&6 21955else 21956 ac_func_search_save_LIBS=$LIBS 21957cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21958/* end confdefs.h. */ 21959 21960/* Override any GCC internal prototype to avoid an error. 21961 Use char because int might match the return type of a GCC 21962 builtin and then its argument prototype would still apply. */ 21963#ifdef __cplusplus 21964extern "C" 21965#endif 21966char opendir (); 21967int 21968main () 21969{ 21970return opendir (); 21971 ; 21972 return 0; 21973} 21974_ACEOF 21975for ac_lib in '' dir; do 21976 if test -z "$ac_lib"; then 21977 ac_res="none required" 21978 else 21979 ac_res=-l$ac_lib 21980 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21981 fi 21982 if ac_fn_c_try_link "$LINENO"; then : 21983 ac_cv_search_opendir=$ac_res 21984fi 21985rm -f core conftest.err conftest.$ac_objext \ 21986 conftest$ac_exeext 21987 if ${ac_cv_search_opendir+:} false; then : 21988 break 21989fi 21990done 21991if ${ac_cv_search_opendir+:} false; then : 21992 21993else 21994 ac_cv_search_opendir=no 21995fi 21996rm conftest.$ac_ext 21997LIBS=$ac_func_search_save_LIBS 21998fi 21999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 22000$as_echo "$ac_cv_search_opendir" >&6; } 22001ac_res=$ac_cv_search_opendir 22002if test "$ac_res" != no; then : 22003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22004 22005fi 22006 22007else 22008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 22009$as_echo_n "checking for library containing opendir... " >&6; } 22010if ${ac_cv_search_opendir+:} false; then : 22011 $as_echo_n "(cached) " >&6 22012else 22013 ac_func_search_save_LIBS=$LIBS 22014cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22015/* end confdefs.h. */ 22016 22017/* Override any GCC internal prototype to avoid an error. 22018 Use char because int might match the return type of a GCC 22019 builtin and then its argument prototype would still apply. */ 22020#ifdef __cplusplus 22021extern "C" 22022#endif 22023char opendir (); 22024int 22025main () 22026{ 22027return opendir (); 22028 ; 22029 return 0; 22030} 22031_ACEOF 22032for ac_lib in '' x; do 22033 if test -z "$ac_lib"; then 22034 ac_res="none required" 22035 else 22036 ac_res=-l$ac_lib 22037 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22038 fi 22039 if ac_fn_c_try_link "$LINENO"; then : 22040 ac_cv_search_opendir=$ac_res 22041fi 22042rm -f core conftest.err conftest.$ac_objext \ 22043 conftest$ac_exeext 22044 if ${ac_cv_search_opendir+:} false; then : 22045 break 22046fi 22047done 22048if ${ac_cv_search_opendir+:} false; then : 22049 22050else 22051 ac_cv_search_opendir=no 22052fi 22053rm conftest.$ac_ext 22054LIBS=$ac_func_search_save_LIBS 22055fi 22056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 22057$as_echo "$ac_cv_search_opendir" >&6; } 22058ac_res=$ac_cv_search_opendir 22059if test "$ac_res" != no; then : 22060 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22061 22062fi 22063 22064fi 22065 22066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 22067$as_echo_n "checking for ANSI C header files... " >&6; } 22068if ${ac_cv_header_stdc+:} false; then : 22069 $as_echo_n "(cached) " >&6 22070else 22071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22072/* end confdefs.h. */ 22073#include <stdlib.h> 22074#include <stdarg.h> 22075#include <string.h> 22076#include <float.h> 22077 22078int 22079main () 22080{ 22081 22082 ; 22083 return 0; 22084} 22085_ACEOF 22086if ac_fn_c_try_compile "$LINENO"; then : 22087 ac_cv_header_stdc=yes 22088else 22089 ac_cv_header_stdc=no 22090fi 22091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22092 22093if test $ac_cv_header_stdc = yes; then 22094 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 22095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22096/* end confdefs.h. */ 22097#include <string.h> 22098 22099_ACEOF 22100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22101 $EGREP "memchr" >/dev/null 2>&1; then : 22102 22103else 22104 ac_cv_header_stdc=no 22105fi 22106rm -f conftest* 22107 22108fi 22109 22110if test $ac_cv_header_stdc = yes; then 22111 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 22112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22113/* end confdefs.h. */ 22114#include <stdlib.h> 22115 22116_ACEOF 22117if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22118 $EGREP "free" >/dev/null 2>&1; then : 22119 22120else 22121 ac_cv_header_stdc=no 22122fi 22123rm -f conftest* 22124 22125fi 22126 22127if test $ac_cv_header_stdc = yes; then 22128 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 22129 if test "$cross_compiling" = yes; then : 22130 : 22131else 22132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22133/* end confdefs.h. */ 22134#include <ctype.h> 22135#include <stdlib.h> 22136#if ((' ' & 0x0FF) == 0x020) 22137# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 22138# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 22139#else 22140# define ISLOWER(c) \ 22141 (('a' <= (c) && (c) <= 'i') \ 22142 || ('j' <= (c) && (c) <= 'r') \ 22143 || ('s' <= (c) && (c) <= 'z')) 22144# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 22145#endif 22146 22147#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 22148int 22149main () 22150{ 22151 int i; 22152 for (i = 0; i < 256; i++) 22153 if (XOR (islower (i), ISLOWER (i)) 22154 || toupper (i) != TOUPPER (i)) 22155 return 2; 22156 return 0; 22157} 22158_ACEOF 22159if ac_fn_c_try_run "$LINENO"; then : 22160 22161else 22162 ac_cv_header_stdc=no 22163fi 22164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22165 conftest.$ac_objext conftest.beam conftest.$ac_ext 22166fi 22167 22168fi 22169fi 22170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 22171$as_echo "$ac_cv_header_stdc" >&6; } 22172if test $ac_cv_header_stdc = yes; then 22173 22174$as_echo "#define STDC_HEADERS 1" >>confdefs.h 22175 22176fi 22177 22178for ac_header in fcntl.h stdlib.h string.h unistd.h dlfcn.h stropts.h \ 22179 fnmatch.h sys/mkdev.h sys/sysmacros.h sys/utsname.h 22180do : 22181 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22182ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22183if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22184 cat >>confdefs.h <<_ACEOF 22185#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22186_ACEOF 22187 22188fi 22189 22190done 22191 22192 22193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 22194$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 22195if ${ac_cv_c_const+:} false; then : 22196 $as_echo_n "(cached) " >&6 22197else 22198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22199/* end confdefs.h. */ 22200 22201int 22202main () 22203{ 22204 22205#ifndef __cplusplus 22206 /* Ultrix mips cc rejects this sort of thing. */ 22207 typedef int charset[2]; 22208 const charset cs = { 0, 0 }; 22209 /* SunOS 4.1.1 cc rejects this. */ 22210 char const *const *pcpcc; 22211 char **ppc; 22212 /* NEC SVR4.0.2 mips cc rejects this. */ 22213 struct point {int x, y;}; 22214 static struct point const zero = {0,0}; 22215 /* AIX XL C 1.02.0.0 rejects this. 22216 It does not let you subtract one const X* pointer from another in 22217 an arm of an if-expression whose if-part is not a constant 22218 expression */ 22219 const char *g = "string"; 22220 pcpcc = &g + (g ? g-g : 0); 22221 /* HPUX 7.0 cc rejects these. */ 22222 ++pcpcc; 22223 ppc = (char**) pcpcc; 22224 pcpcc = (char const *const *) ppc; 22225 { /* SCO 3.2v4 cc rejects this sort of thing. */ 22226 char tx; 22227 char *t = &tx; 22228 char const *s = 0 ? (char *) 0 : (char const *) 0; 22229 22230 *t++ = 0; 22231 if (s) return 0; 22232 } 22233 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 22234 int x[] = {25, 17}; 22235 const int *foo = &x[0]; 22236 ++foo; 22237 } 22238 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 22239 typedef const int *iptr; 22240 iptr p = 0; 22241 ++p; 22242 } 22243 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 22244 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 22245 struct s { int j; const int *ap[3]; } bx; 22246 struct s *b = &bx; b->j = 5; 22247 } 22248 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 22249 const int foo = 10; 22250 if (!foo) return 0; 22251 } 22252 return !cs[0] && !zero.x; 22253#endif 22254 22255 ; 22256 return 0; 22257} 22258_ACEOF 22259if ac_fn_c_try_compile "$LINENO"; then : 22260 ac_cv_c_const=yes 22261else 22262 ac_cv_c_const=no 22263fi 22264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22265fi 22266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 22267$as_echo "$ac_cv_c_const" >&6; } 22268if test $ac_cv_c_const = no; then 22269 22270$as_echo "#define const /**/" >>confdefs.h 22271 22272fi 22273 22274 22275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5 22276$as_echo_n "checking for typeof syntax and keyword spelling... " >&6; } 22277if ${ac_cv_c_typeof+:} false; then : 22278 $as_echo_n "(cached) " >&6 22279else 22280 ac_cv_c_typeof=no 22281 for ac_kw in typeof __typeof__ no; do 22282 test $ac_kw = no && break 22283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22284/* end confdefs.h. */ 22285 22286int 22287main () 22288{ 22289 22290 int value; 22291 typedef struct { 22292 char a [1 22293 + ! (($ac_kw (value)) 22294 (($ac_kw (value)) 0 < ($ac_kw (value)) -1 22295 ? ($ac_kw (value)) - 1 22296 : ~ (~ ($ac_kw (value)) 0 22297 << sizeof ($ac_kw (value)))))]; } 22298 ac__typeof_type_; 22299 return 22300 (! ((void) ((ac__typeof_type_ *) 0), 0)); 22301 22302 ; 22303 return 0; 22304} 22305_ACEOF 22306if ac_fn_c_try_compile "$LINENO"; then : 22307 ac_cv_c_typeof=$ac_kw 22308fi 22309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22310 test $ac_cv_c_typeof != no && break 22311 done 22312fi 22313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5 22314$as_echo "$ac_cv_c_typeof" >&6; } 22315 if test $ac_cv_c_typeof != no; then 22316 22317$as_echo "#define HAVE_TYPEOF 1" >>confdefs.h 22318 22319 if test $ac_cv_c_typeof != typeof; then 22320 22321cat >>confdefs.h <<_ACEOF 22322#define typeof $ac_cv_c_typeof 22323_ACEOF 22324 22325 fi 22326 fi 22327 22328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 22329$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 22330if ${ac_cv_c_bigendian+:} false; then : 22331 $as_echo_n "(cached) " >&6 22332else 22333 ac_cv_c_bigendian=unknown 22334 # See if we're dealing with a universal compiler. 22335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22336/* end confdefs.h. */ 22337#ifndef __APPLE_CC__ 22338 not a universal capable compiler 22339 #endif 22340 typedef int dummy; 22341 22342_ACEOF 22343if ac_fn_c_try_compile "$LINENO"; then : 22344 22345 # Check for potential -arch flags. It is not universal unless 22346 # there are at least two -arch flags with different values. 22347 ac_arch= 22348 ac_prev= 22349 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 22350 if test -n "$ac_prev"; then 22351 case $ac_word in 22352 i?86 | x86_64 | ppc | ppc64) 22353 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 22354 ac_arch=$ac_word 22355 else 22356 ac_cv_c_bigendian=universal 22357 break 22358 fi 22359 ;; 22360 esac 22361 ac_prev= 22362 elif test "x$ac_word" = "x-arch"; then 22363 ac_prev=arch 22364 fi 22365 done 22366fi 22367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22368 if test $ac_cv_c_bigendian = unknown; then 22369 # See if sys/param.h defines the BYTE_ORDER macro. 22370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22371/* end confdefs.h. */ 22372#include <sys/types.h> 22373 #include <sys/param.h> 22374 22375int 22376main () 22377{ 22378#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 22379 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 22380 && LITTLE_ENDIAN) 22381 bogus endian macros 22382 #endif 22383 22384 ; 22385 return 0; 22386} 22387_ACEOF 22388if ac_fn_c_try_compile "$LINENO"; then : 22389 # It does; now see whether it defined to BIG_ENDIAN or not. 22390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22391/* end confdefs.h. */ 22392#include <sys/types.h> 22393 #include <sys/param.h> 22394 22395int 22396main () 22397{ 22398#if BYTE_ORDER != BIG_ENDIAN 22399 not big endian 22400 #endif 22401 22402 ; 22403 return 0; 22404} 22405_ACEOF 22406if ac_fn_c_try_compile "$LINENO"; then : 22407 ac_cv_c_bigendian=yes 22408else 22409 ac_cv_c_bigendian=no 22410fi 22411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22412fi 22413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22414 fi 22415 if test $ac_cv_c_bigendian = unknown; then 22416 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 22417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22418/* end confdefs.h. */ 22419#include <limits.h> 22420 22421int 22422main () 22423{ 22424#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 22425 bogus endian macros 22426 #endif 22427 22428 ; 22429 return 0; 22430} 22431_ACEOF 22432if ac_fn_c_try_compile "$LINENO"; then : 22433 # It does; now see whether it defined to _BIG_ENDIAN or not. 22434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22435/* end confdefs.h. */ 22436#include <limits.h> 22437 22438int 22439main () 22440{ 22441#ifndef _BIG_ENDIAN 22442 not big endian 22443 #endif 22444 22445 ; 22446 return 0; 22447} 22448_ACEOF 22449if ac_fn_c_try_compile "$LINENO"; then : 22450 ac_cv_c_bigendian=yes 22451else 22452 ac_cv_c_bigendian=no 22453fi 22454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22455fi 22456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22457 fi 22458 if test $ac_cv_c_bigendian = unknown; then 22459 # Compile a test program. 22460 if test "$cross_compiling" = yes; then : 22461 # Try to guess by grepping values from an object file. 22462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22463/* end confdefs.h. */ 22464short int ascii_mm[] = 22465 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 22466 short int ascii_ii[] = 22467 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 22468 int use_ascii (int i) { 22469 return ascii_mm[i] + ascii_ii[i]; 22470 } 22471 short int ebcdic_ii[] = 22472 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 22473 short int ebcdic_mm[] = 22474 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 22475 int use_ebcdic (int i) { 22476 return ebcdic_mm[i] + ebcdic_ii[i]; 22477 } 22478 extern int foo; 22479 22480int 22481main () 22482{ 22483return use_ascii (foo) == use_ebcdic (foo); 22484 ; 22485 return 0; 22486} 22487_ACEOF 22488if ac_fn_c_try_compile "$LINENO"; then : 22489 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 22490 ac_cv_c_bigendian=yes 22491 fi 22492 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 22493 if test "$ac_cv_c_bigendian" = unknown; then 22494 ac_cv_c_bigendian=no 22495 else 22496 # finding both strings is unlikely to happen, but who knows? 22497 ac_cv_c_bigendian=unknown 22498 fi 22499 fi 22500fi 22501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22502else 22503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22504/* end confdefs.h. */ 22505$ac_includes_default 22506int 22507main () 22508{ 22509 22510 /* Are we little or big endian? From Harbison&Steele. */ 22511 union 22512 { 22513 long int l; 22514 char c[sizeof (long int)]; 22515 } u; 22516 u.l = 1; 22517 return u.c[sizeof (long int) - 1] == 1; 22518 22519 ; 22520 return 0; 22521} 22522_ACEOF 22523if ac_fn_c_try_run "$LINENO"; then : 22524 ac_cv_c_bigendian=no 22525else 22526 ac_cv_c_bigendian=yes 22527fi 22528rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22529 conftest.$ac_objext conftest.beam conftest.$ac_ext 22530fi 22531 22532 fi 22533fi 22534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 22535$as_echo "$ac_cv_c_bigendian" >&6; } 22536 case $ac_cv_c_bigendian in #( 22537 yes) 22538 22539$as_echo "#define X_BYTE_ORDER X_BIG_ENDIAN" >>confdefs.h 22540;; #( 22541 no) 22542 22543$as_echo "#define X_BYTE_ORDER X_LITTLE_ENDIAN" >>confdefs.h 22544 ;; #( 22545 universal) 22546 22547$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 22548 22549 ;; #( 22550 *) 22551 as_fn_error $? "unknown endianness 22552 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 22553 esac 22554 22555 22556# The cast to long int works around a bug in the HP C Compiler 22557# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22558# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22559# This bug is HP SR number 8606223364. 22560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 22561$as_echo_n "checking size of unsigned long... " >&6; } 22562if ${ac_cv_sizeof_unsigned_long+:} false; then : 22563 $as_echo_n "(cached) " >&6 22564else 22565 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 22566 22567else 22568 if test "$ac_cv_type_unsigned_long" = yes; then 22569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22571as_fn_error 77 "cannot compute sizeof (unsigned long) 22572See \`config.log' for more details" "$LINENO" 5; } 22573 else 22574 ac_cv_sizeof_unsigned_long=0 22575 fi 22576fi 22577 22578fi 22579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 22580$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 22581 22582 22583 22584cat >>confdefs.h <<_ACEOF 22585#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 22586_ACEOF 22587 22588 22589if test "$ac_cv_sizeof_unsigned_long" = 8; then 22590 22591$as_echo "#define _XSERVER64 1" >>confdefs.h 22592 22593fi 22594 22595ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 22596if test "x$ac_cv_type_pid_t" = xyes; then : 22597 22598else 22599 22600cat >>confdefs.h <<_ACEOF 22601#define pid_t int 22602_ACEOF 22603 22604fi 22605 22606 22607ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 22608if test "x$ac_cv_func_dlopen" = xyes; then : 22609 22610else 22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 22612$as_echo_n "checking for dlopen in -ldl... " >&6; } 22613if ${ac_cv_lib_dl_dlopen+:} false; then : 22614 $as_echo_n "(cached) " >&6 22615else 22616 ac_check_lib_save_LIBS=$LIBS 22617LIBS="-ldl $LIBS" 22618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22619/* end confdefs.h. */ 22620 22621/* Override any GCC internal prototype to avoid an error. 22622 Use char because int might match the return type of a GCC 22623 builtin and then its argument prototype would still apply. */ 22624#ifdef __cplusplus 22625extern "C" 22626#endif 22627char dlopen (); 22628int 22629main () 22630{ 22631return dlopen (); 22632 ; 22633 return 0; 22634} 22635_ACEOF 22636if ac_fn_c_try_link "$LINENO"; then : 22637 ac_cv_lib_dl_dlopen=yes 22638else 22639 ac_cv_lib_dl_dlopen=no 22640fi 22641rm -f core conftest.err conftest.$ac_objext \ 22642 conftest$ac_exeext conftest.$ac_ext 22643LIBS=$ac_check_lib_save_LIBS 22644fi 22645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 22646$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 22647if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 22648 DLOPEN_LIBS="-ldl" 22649fi 22650 22651fi 22652 22653 22654 22655for ac_func in backtrace geteuid getuid issetugid getresuid \ 22656 getdtablesize getifaddrs getpeereid getpeerucred getprogname getzoneid \ 22657 mmap posix_fallocate seteuid shmctl64 strncasecmp vasprintf vsnprintf \ 22658 walkcontext setitimer poll epoll_create1 mkostemp memfd_create isastream 22659do : 22660 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22661ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22662if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22663 cat >>confdefs.h <<_ACEOF 22664#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22665_ACEOF 22666 22667fi 22668done 22669 22670 22671ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 22672if test "x$ac_cv_func_reallocarray" = xyes; then : 22673 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h 22674 22675else 22676 case " $LIBOBJS " in 22677 *" reallocarray.$ac_objext "* ) ;; 22678 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 22679 ;; 22680esac 22681 22682fi 22683 22684ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 22685if test "x$ac_cv_func_strcasecmp" = xyes; then : 22686 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h 22687 22688else 22689 case " $LIBOBJS " in 22690 *" strcasecmp.$ac_objext "* ) ;; 22691 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 22692 ;; 22693esac 22694 22695fi 22696 22697ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 22698if test "x$ac_cv_func_strcasestr" = xyes; then : 22699 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h 22700 22701else 22702 case " $LIBOBJS " in 22703 *" strcasestr.$ac_objext "* ) ;; 22704 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" 22705 ;; 22706esac 22707 22708fi 22709 22710ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 22711if test "x$ac_cv_func_strlcat" = xyes; then : 22712 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 22713 22714else 22715 case " $LIBOBJS " in 22716 *" strlcat.$ac_objext "* ) ;; 22717 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 22718 ;; 22719esac 22720 22721fi 22722 22723ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 22724if test "x$ac_cv_func_strlcpy" = xyes; then : 22725 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 22726 22727else 22728 case " $LIBOBJS " in 22729 *" strlcpy.$ac_objext "* ) ;; 22730 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 22731 ;; 22732esac 22733 22734fi 22735 22736ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 22737if test "x$ac_cv_func_strndup" = xyes; then : 22738 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h 22739 22740else 22741 case " $LIBOBJS " in 22742 *" strndup.$ac_objext "* ) ;; 22743 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" 22744 ;; 22745esac 22746 22747fi 22748 22749ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp" 22750if test "x$ac_cv_func_timingsafe_memcmp" = xyes; then : 22751 $as_echo "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h 22752 22753else 22754 case " $LIBOBJS " in 22755 *" timingsafe_memcmp.$ac_objext "* ) ;; 22756 *) LIBOBJS="$LIBOBJS timingsafe_memcmp.$ac_objext" 22757 ;; 22758esac 22759 22760fi 22761 22762 22763 if test "x$ac_cv_func_poll" = "xyes"; then 22764 POLL_TRUE= 22765 POLL_FALSE='#' 22766else 22767 POLL_TRUE='#' 22768 POLL_FALSE= 22769fi 22770 22771 22772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5 22773$as_echo_n "checking for arc4random_buf in -lbsd... " >&6; } 22774if ${ac_cv_lib_bsd_arc4random_buf+:} false; then : 22775 $as_echo_n "(cached) " >&6 22776else 22777 ac_check_lib_save_LIBS=$LIBS 22778LIBS="-lbsd $LIBS" 22779cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22780/* end confdefs.h. */ 22781 22782/* Override any GCC internal prototype to avoid an error. 22783 Use char because int might match the return type of a GCC 22784 builtin and then its argument prototype would still apply. */ 22785#ifdef __cplusplus 22786extern "C" 22787#endif 22788char arc4random_buf (); 22789int 22790main () 22791{ 22792return arc4random_buf (); 22793 ; 22794 return 0; 22795} 22796_ACEOF 22797if ac_fn_c_try_link "$LINENO"; then : 22798 ac_cv_lib_bsd_arc4random_buf=yes 22799else 22800 ac_cv_lib_bsd_arc4random_buf=no 22801fi 22802rm -f core conftest.err conftest.$ac_objext \ 22803 conftest$ac_exeext conftest.$ac_ext 22804LIBS=$ac_check_lib_save_LIBS 22805fi 22806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5 22807$as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; } 22808if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then : 22809 cat >>confdefs.h <<_ACEOF 22810#define HAVE_LIBBSD 1 22811_ACEOF 22812 22813 LIBS="-lbsd $LIBS" 22814 22815fi 22816 22817for ac_func in arc4random_buf 22818do : 22819 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf" 22820if test "x$ac_cv_func_arc4random_buf" = xyes; then : 22821 cat >>confdefs.h <<_ACEOF 22822#define HAVE_ARC4RANDOM_BUF 1 22823_ACEOF 22824 22825fi 22826done 22827 22828 22829ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 22830" 22831if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then : 22832 ac_have_decl=1 22833else 22834 ac_have_decl=0 22835fi 22836 22837cat >>confdefs.h <<_ACEOF 22838#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl 22839_ACEOF 22840 22841 22842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_PEERCRED in sys/socket.h" >&5 22843$as_echo_n "checking for SO_PEERCRED in sys/socket.h... " >&6; } 22844if ${xorg_cv_sys_have_so_peercred+:} false; then : 22845 $as_echo_n "(cached) " >&6 22846else 22847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22848/* end confdefs.h. */ 22849 22850#include <sys/types.h> 22851#include <sys/socket.h> 22852#ifdef SO_PEERCRED 22853yes_have_so_peercred 22854#endif 22855 22856_ACEOF 22857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22858 $EGREP "yes_have_so_peercred" >/dev/null 2>&1; then : 22859 xorg_cv_sys_have_so_peercred=yes 22860else 22861 xorg_cv_sys_have_so_peercred=no 22862fi 22863rm -f conftest* 22864 22865fi 22866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_sys_have_so_peercred" >&5 22867$as_echo "$xorg_cv_sys_have_so_peercred" >&6; } 22868 22869if test "x$ac_cv_func_getpeereid" = xno && test "x$ac_cv_func_getpeerucred" = xno && test "x$xorg_cv_sys_have_so_peercred" = xno ; then 22870 22871$as_echo "#define NO_LOCAL_CLIENT_CRED 1" >>confdefs.h 22872 22873fi 22874 22875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 22876$as_echo_n "checking for sqrt in -lm... " >&6; } 22877if ${ac_cv_lib_m_sqrt+:} false; then : 22878 $as_echo_n "(cached) " >&6 22879else 22880 ac_check_lib_save_LIBS=$LIBS 22881LIBS="-lm $LIBS" 22882cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22883/* end confdefs.h. */ 22884 22885/* Override any GCC internal prototype to avoid an error. 22886 Use char because int might match the return type of a GCC 22887 builtin and then its argument prototype would still apply. */ 22888#ifdef __cplusplus 22889extern "C" 22890#endif 22891char sqrt (); 22892int 22893main () 22894{ 22895return sqrt (); 22896 ; 22897 return 0; 22898} 22899_ACEOF 22900if ac_fn_c_try_link "$LINENO"; then : 22901 ac_cv_lib_m_sqrt=yes 22902else 22903 ac_cv_lib_m_sqrt=no 22904fi 22905rm -f core conftest.err conftest.$ac_objext \ 22906 conftest$ac_exeext conftest.$ac_ext 22907LIBS=$ac_check_lib_save_LIBS 22908fi 22909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 22910$as_echo "$ac_cv_lib_m_sqrt" >&6; } 22911if test "x$ac_cv_lib_m_sqrt" = xyes; then : 22912 cat >>confdefs.h <<_ACEOF 22913#define HAVE_LIBM 1 22914_ACEOF 22915 22916 LIBS="-lm $LIBS" 22917 22918fi 22919 22920for ac_func in cbrt 22921do : 22922 ac_fn_c_check_func "$LINENO" "cbrt" "ac_cv_func_cbrt" 22923if test "x$ac_cv_func_cbrt" = xyes; then : 22924 cat >>confdefs.h <<_ACEOF 22925#define HAVE_CBRT 1 22926_ACEOF 22927 22928fi 22929done 22930 22931 22932for ac_header in linux/agpgart.h sys/agpio.h sys/agpgart.h 22933do : 22934 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22935ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22936if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22937 cat >>confdefs.h <<_ACEOF 22938#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22939_ACEOF 22940 AGP=yes 22941fi 22942 22943done 22944 22945 if test "x$AGP" = xyes; then 22946 AGP_TRUE= 22947 AGP_FALSE='#' 22948else 22949 AGP_TRUE='#' 22950 AGP_FALSE= 22951fi 22952 22953 22954for ac_header in linux/fb.h 22955do : 22956 ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default" 22957if test "x$ac_cv_header_linux_fb_h" = xyes; then : 22958 cat >>confdefs.h <<_ACEOF 22959#define HAVE_LINUX_FB_H 1 22960_ACEOF 22961 FBDEV=yes 22962fi 22963 22964done 22965 22966 if test "x$FBDEV" = xyes; then 22967 FBDEVHW_TRUE= 22968 FBDEVHW_FALSE='#' 22969else 22970 FBDEVHW_TRUE='#' 22971 FBDEVHW_FALSE= 22972fi 22973 22974 22975for ac_header in sys/linker.h 22976do : 22977 ac_fn_c_check_header_compile "$LINENO" "sys/linker.h" "ac_cv_header_sys_linker_h" "#include <sys/param.h> 22978" 22979if test "x$ac_cv_header_sys_linker_h" = xyes; then : 22980 cat >>confdefs.h <<_ACEOF 22981#define HAVE_SYS_LINKER_H 1 22982_ACEOF 22983 ac_cv_sys_linker_h=yes 22984else 22985 ac_cv_sys_linker_h=no 22986fi 22987 22988done 22989 22990 if test "x$ac_cv_sys_linker_h" = xyes; then 22991 FREEBSD_KLDLOAD_TRUE= 22992 FREEBSD_KLDLOAD_FALSE='#' 22993else 22994 FREEBSD_KLDLOAD_TRUE='#' 22995 FREEBSD_KLDLOAD_FALSE= 22996fi 22997 22998 22999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSV IPC" >&5 23000$as_echo_n "checking for SYSV IPC... " >&6; } 23001if ${ac_cv_sysv_ipc+:} false; then : 23002 $as_echo_n "(cached) " >&6 23003else 23004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23005/* end confdefs.h. */ 23006 23007#include <sys/types.h> 23008#include <sys/ipc.h> 23009#include <sys/shm.h> 23010#include <sys/stat.h> 23011 23012int 23013main () 23014{ 23015 23016{ 23017 int id; 23018 id = shmget(IPC_PRIVATE, 512, S_IRUSR | S_IWUSR); 23019 if (id < 0) return -1; 23020 return shmctl(id, IPC_RMID, 0); 23021} 23022 ; 23023 return 0; 23024} 23025_ACEOF 23026if ac_fn_c_try_link "$LINENO"; then : 23027 ac_cv_sysv_ipc=yes 23028else 23029 ac_cv_sysv_ipc=no 23030fi 23031rm -f core conftest.err conftest.$ac_objext \ 23032 conftest$ac_exeext conftest.$ac_ext 23033fi 23034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_ipc" >&5 23035$as_echo "$ac_cv_sysv_ipc" >&6; } 23036if test "x$ac_cv_sysv_ipc" = xyes; then 23037 23038$as_echo "#define HAVE_SYSV_IPC 1" >>confdefs.h 23039 23040fi 23041 23042if test -c /dev/xf86 ; then 23043 23044$as_echo "#define HAS_APERTURE_DRV 1" >>confdefs.h 23045 23046fi 23047 23048ac_fn_c_check_header_mongrel "$LINENO" "machine/apmvar.h" "ac_cv_header_machine_apmvar_h" "$ac_includes_default" 23049if test "x$ac_cv_header_machine_apmvar_h" = xyes; then : 23050 23051 ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default" 23052if test "x$ac_cv_header_sys_event_h" = xyes; then : 23053 ac_cv_BSD_KQUEUE_APM=yes 23054else 23055 ac_cv_BSD_APM=yes 23056fi 23057 23058 23059fi 23060 23061 23062 23063 if test "x$ac_cv_BSD_APM" = xyes; then 23064 BSD_APM_TRUE= 23065 BSD_APM_FALSE='#' 23066else 23067 BSD_APM_TRUE='#' 23068 BSD_APM_FALSE= 23069fi 23070 23071 if test "x$ac_cv_BSD_KQUEUE_APM" = xyes; then 23072 BSD_KQUEUE_APM_TRUE= 23073 BSD_KQUEUE_APM_FALSE='#' 23074else 23075 BSD_KQUEUE_APM_TRUE='#' 23076 BSD_KQUEUE_APM_FALSE= 23077fi 23078 23079 23080ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" 23081if test "x$ac_cv_header_execinfo_h" = xyes; then : 23082 23083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lc" >&5 23084$as_echo_n "checking for backtrace in -lc... " >&6; } 23085if ${ac_cv_lib_c_backtrace+:} false; then : 23086 $as_echo_n "(cached) " >&6 23087else 23088 ac_check_lib_save_LIBS=$LIBS 23089LIBS="-lc $LIBS" 23090cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23091/* end confdefs.h. */ 23092 23093/* Override any GCC internal prototype to avoid an error. 23094 Use char because int might match the return type of a GCC 23095 builtin and then its argument prototype would still apply. */ 23096#ifdef __cplusplus 23097extern "C" 23098#endif 23099char backtrace (); 23100int 23101main () 23102{ 23103return backtrace (); 23104 ; 23105 return 0; 23106} 23107_ACEOF 23108if ac_fn_c_try_link "$LINENO"; then : 23109 ac_cv_lib_c_backtrace=yes 23110else 23111 ac_cv_lib_c_backtrace=no 23112fi 23113rm -f core conftest.err conftest.$ac_objext \ 23114 conftest$ac_exeext conftest.$ac_ext 23115LIBS=$ac_check_lib_save_LIBS 23116fi 23117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_backtrace" >&5 23118$as_echo "$ac_cv_lib_c_backtrace" >&6; } 23119if test "x$ac_cv_lib_c_backtrace" = xyes; then : 23120 23121 23122$as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h 23123 23124 23125$as_echo "#define HAVE_EXECINFO_H 1" >>confdefs.h 23126 23127 23128fi 23129 23130 23131fi 23132 23133 23134 23135DEFAULT_INT10="x86emu" 23136 23137 23138case $host_cpu in 23139 alpha*) 23140 ALPHA_VIDEO=yes 23141 case $host_os in 23142 *freebsd*) SYS_LIBS=-lio ;; 23143 *netbsd*) 23144$as_echo "#define USE_ALPHA_PIO 1" >>confdefs.h 23145 ;; 23146 esac 23147 GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee" 23148 ;; 23149 arm*) 23150 ARM_VIDEO=yes 23151 DEFAULT_INT10="stub" 23152 ;; 23153 i*86) 23154 I386_VIDEO=yes 23155 case $host_os in 23156 *freebsd*) $as_echo "#define USE_DEV_IO 1" >>confdefs.h 23157 ;; 23158 *dragonfly*) $as_echo "#define USE_DEV_IO 1" >>confdefs.h 23159 ;; 23160 *netbsd*) $as_echo "#define USE_I386_IOPL 1" >>confdefs.h 23161 23162 SYS_LIBS=-li386 23163 ;; 23164 *openbsd*) $as_echo "#define USE_I386_IOPL 1" >>confdefs.h 23165 23166 SYS_LIBS=-li386 23167 ;; 23168 esac 23169 ;; 23170 powerpc*) 23171 PPC_VIDEO=yes 23172 case $host_os in 23173 *freebsd*) DEFAULT_INT10=stub ;; 23174 esac 23175 ;; 23176 sparc*) 23177 SPARC64_VIDEO=yes 23178 BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c" 23179 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 23180 ;; 23181 x86_64*|amd64*) 23182 I386_VIDEO=yes 23183 case $host_os in 23184 *freebsd*) 23185$as_echo "#define USE_DEV_IO 1" >>confdefs.h 23186 ;; 23187 *dragonfly*) 23188$as_echo "#define USE_DEV_IO 1" >>confdefs.h 23189 ;; 23190 *netbsd*) 23191$as_echo "#define USE_I386_IOPL 1" >>confdefs.h 23192 23193 SYS_LIBS=-lx86_64 23194 ;; 23195 *openbsd*) 23196$as_echo "#define USE_AMD64_IOPL 1" >>confdefs.h 23197 23198 SYS_LIBS=-lamd64 23199 ;; 23200 esac 23201 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 23202 ;; 23203 ia64*) 23204 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 23205 ;; 23206 s390*) 23207 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 23208 ;; 23209esac 23210 23211 23212 if test "x$ALPHA_VIDEO" = xyes; then 23213 ALPHA_VIDEO_TRUE= 23214 ALPHA_VIDEO_FALSE='#' 23215else 23216 ALPHA_VIDEO_TRUE='#' 23217 ALPHA_VIDEO_FALSE= 23218fi 23219 23220 if test "x$ARM_VIDEO" = xyes; then 23221 ARM_VIDEO_TRUE= 23222 ARM_VIDEO_FALSE='#' 23223else 23224 ARM_VIDEO_TRUE='#' 23225 ARM_VIDEO_FALSE= 23226fi 23227 23228 if test "x$I386_VIDEO" = xyes; then 23229 I386_VIDEO_TRUE= 23230 I386_VIDEO_FALSE='#' 23231else 23232 I386_VIDEO_TRUE='#' 23233 I386_VIDEO_FALSE= 23234fi 23235 23236 if test "x$PPC_VIDEO" = xyes; then 23237 PPC_VIDEO_TRUE= 23238 PPC_VIDEO_FALSE='#' 23239else 23240 PPC_VIDEO_TRUE='#' 23241 PPC_VIDEO_FALSE= 23242fi 23243 23244 if test "x$SPARC64_VIDEO" = xyes; then 23245 SPARC64_VIDEO_TRUE= 23246 SPARC64_VIDEO_FALSE='#' 23247else 23248 SPARC64_VIDEO_TRUE='#' 23249 SPARC64_VIDEO_FALSE= 23250fi 23251 23252 23253DRI=no 23254case $host_os in 23255 *freebsd* | *dragonfly*) 23256 case $host_os in 23257 kfreebsd*-gnu) ;; 23258 *) 23259$as_echo "#define CSRG_BASED 1" >>confdefs.h 23260 ;; 23261 esac 23262 23263$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h 23264 23265 23266$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h 23267 23268 23269$as_echo "#define SYSCONS_SUPPORT 1" >>confdefs.h 23270 23271 DRI=yes 23272 ;; 23273 *netbsd*) 23274 23275$as_echo "#define CSRG_BASED 1" >>confdefs.h 23276 23277 23278$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h 23279 23280 23281$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h 23282 23283 23284$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h 23285 23286 DRI=yes 23287 ;; 23288 *openbsd*) 23289 23290$as_echo "#define CSRG_BASED 1" >>confdefs.h 23291 23292 23293$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h 23294 23295 23296$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h 23297 23298 ;; 23299 *linux*) 23300 DRI=yes 23301 ;; 23302 *solaris*) 23303 DRI=yes 23304 ;; 23305 darwin*) 23306 23307$as_echo "#define CSRG_BASED 1" >>confdefs.h 23308 23309 ;; 23310 cygwin*|mingw*) 23311 CFLAGS="$CFLAGS -DFD_SETSIZE=512" 23312 ;; 23313esac 23314 23315PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1` 23316PVS=`echo $PACKAGE_VERSION | cut -d . -f 4 | cut -d - -f 1` 23317if test "x$PVS" = "x"; then 23318 PVS="0" 23319fi 23320 23321VENDOR_RELEASE="((($PVMAJOR) * 10000000) + (($PVM) * 100000) + (($PVP) * 1000) + $PVS)" 23322VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}" 23323 23324VENDOR_NAME="The X.Org Foundation" 23325VENDOR_NAME_SHORT="X.Org" 23326VENDOR_WEB="http://wiki.x.org" 23327 23328# Check whether --enable-werror was given. 23329if test "${enable_werror+set}" = set; then : 23330 enableval=$enable_werror; as_fn_error $? "--enable-werror has been replaced by --enable-strict-compilation" "$LINENO" 5 23331fi 23332 23333 23334# Check whether --enable-debug was given. 23335if test "${enable_debug+set}" = set; then : 23336 enableval=$enable_debug; DEBUGGING=$enableval 23337else 23338 DEBUGGING=no 23339fi 23340 23341 23342# Check whether --with-int10 was given. 23343if test "${with_int10+set}" = set; then : 23344 withval=$with_int10; INT10="$withval" 23345else 23346 INT10="$DEFAULT_INT10" 23347fi 23348 23349 23350# Check whether --with-vendor-name was given. 23351if test "${with_vendor_name+set}" = set; then : 23352 withval=$with_vendor_name; VENDOR_NAME="$withval" 23353fi 23354 23355 23356# Check whether --with-vendor-name-short was given. 23357if test "${with_vendor_name_short+set}" = set; then : 23358 withval=$with_vendor_name_short; VENDOR_NAME_SHORT="$withval" 23359fi 23360 23361 23362# Check whether --with-vendor-web was given. 23363if test "${with_vendor_web+set}" = set; then : 23364 withval=$with_vendor_web; VENDOR_WEB="$withval" 23365fi 23366 23367 23368# Check whether --with-module-dir was given. 23369if test "${with_module_dir+set}" = set; then : 23370 withval=$with_module_dir; moduledir="$withval" 23371else 23372 moduledir="${libdir}/xorg/modules" 23373fi 23374 23375 23376# Check whether --with-log-dir was given. 23377if test "${with_log_dir+set}" = set; then : 23378 withval=$with_log_dir; logdir="$withval" 23379else 23380 logdir="$localstatedir/log" 23381fi 23382 23383 23384# Check whether --with-builder-addr was given. 23385if test "${with_builder_addr+set}" = set; then : 23386 withval=$with_builder_addr; BUILDERADDR="$withval" 23387else 23388 BUILDERADDR="xorg@lists.freedesktop.org" 23389fi 23390 23391 23392# Check whether --with-os-name was given. 23393if test "${with_os_name+set}" = set; then : 23394 withval=$with_os_name; OSNAME="$withval" 23395else 23396 OSNAME=`uname -srm` 23397fi 23398 23399 23400# Check whether --with-os-vendor was given. 23401if test "${with_os_vendor+set}" = set; then : 23402 withval=$with_os_vendor; OSVENDOR="$withval" 23403else 23404 OSVENDOR="" 23405fi 23406 23407 23408# Check whether --with-builderstring was given. 23409if test "${with_builderstring+set}" = set; then : 23410 withval=$with_builderstring; BUILDERSTRING="$withval" 23411 23412fi 23413 23414# Check whether --enable-listen-tcp was given. 23415if test "${enable_listen_tcp+set}" = set; then : 23416 enableval=$enable_listen_tcp; LISTEN_TCP=$enableval 23417else 23418 LISTEN_TCP=no 23419fi 23420 23421# Check whether --enable-listen-unix was given. 23422if test "${enable_listen_unix+set}" = set; then : 23423 enableval=$enable_listen_unix; LISTEN_UNIX=$enableval 23424else 23425 LISTEN_UNIX=yes 23426fi 23427 23428 23429# Check whether --enable-listen-local was given. 23430if test "${enable_listen_local+set}" = set; then : 23431 enableval=$enable_listen_local; LISTEN_LOCAL=$enableval 23432else 23433 LISTEN_LOCAL=yes 23434fi 23435 23436 23437case $host_os in 23438 linux*) 23439 FALLBACK_INPUT_DRIVER="libinput" 23440 ;; 23441 *) 23442 FALLBACK_INPUT_DRIVER="" 23443 ;; 23444esac 23445 23446# Check whether --with-fallback-input-driver was given. 23447if test "${with_fallback_input_driver+set}" = set; then : 23448 withval=$with_fallback_input_driver; FALLBACK_INPUT_DRIVER=$withval 23449fi 23450 23451if test "x$FALLBACK_INPUT_DRIVER" = "xno"; then 23452 FALLBACK_INPUT_DRIVER="" 23453fi 23454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallback input driver" >&5 23455$as_echo_n "checking for fallback input driver... " >&6; } 23456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALLBACK_INPUT_DRIVER" >&5 23457$as_echo "$FALLBACK_INPUT_DRIVER" >&6; } 23458 23459cat >>confdefs.h <<_ACEOF 23460#define FALLBACK_INPUT_DRIVER "$FALLBACK_INPUT_DRIVER" 23461_ACEOF 23462 23463 23464 23465 23466 23467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5 23468$as_echo_n "checking for root directory for font files... " >&6; } 23469 23470# Check whether --with-fontrootdir was given. 23471if test "${with_fontrootdir+set}" = set; then : 23472 withval=$with_fontrootdir; FONTROOTDIR="$withval" 23473fi 23474 23475 # if --with-fontrootdir not specified... 23476 if test "x${FONTROOTDIR}" = "x"; then 23477 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil` 23478 fi 23479 # ...and if pkg-config didn't find fontdir in fontutil.pc... 23480 if test "x${FONTROOTDIR}" = "x"; then 23481 FONTROOTDIR="${datadir}/fonts/X11" 23482 fi 23483 23484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5 23485$as_echo "${FONTROOTDIR}" >&6; } 23486 23487 23488 23489 23490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5 23491$as_echo_n "checking for directory for misc files... " >&6; } 23492 23493# Check whether --with-fontmiscdir was given. 23494if test "${with_fontmiscdir+set}" = set; then : 23495 withval=$with_fontmiscdir; FONTMISCDIR="${withval}" 23496else 23497 FONTMISCDIR='${FONTROOTDIR}/misc' 23498fi 23499 23500 23501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5 23502$as_echo "${FONTMISCDIR}" >&6; } 23503 23504 23505 23506 23507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5 23508$as_echo_n "checking for directory for OTF files... " >&6; } 23509 23510# Check whether --with-fontotfdir was given. 23511if test "${with_fontotfdir+set}" = set; then : 23512 withval=$with_fontotfdir; FONTOTFDIR="${withval}" 23513else 23514 FONTOTFDIR='${FONTROOTDIR}/OTF' 23515fi 23516 23517 23518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5 23519$as_echo "${FONTOTFDIR}" >&6; } 23520 23521 23522 23523 23524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5 23525$as_echo_n "checking for directory for TTF files... " >&6; } 23526 23527# Check whether --with-fontttfdir was given. 23528if test "${with_fontttfdir+set}" = set; then : 23529 withval=$with_fontttfdir; FONTTTFDIR="${withval}" 23530else 23531 FONTTTFDIR='${FONTROOTDIR}/TTF' 23532fi 23533 23534 23535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5 23536$as_echo "${FONTTTFDIR}" >&6; } 23537 23538 23539 23540 23541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5 23542$as_echo_n "checking for directory for Type1 files... " >&6; } 23543 23544# Check whether --with-fonttype1dir was given. 23545if test "${with_fonttype1dir+set}" = set; then : 23546 withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}" 23547else 23548 FONTTYPE1DIR='${FONTROOTDIR}/Type1' 23549fi 23550 23551 23552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5 23553$as_echo "${FONTTYPE1DIR}" >&6; } 23554 23555 23556 23557 23558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5 23559$as_echo_n "checking for directory for 75dpi files... " >&6; } 23560 23561# Check whether --with-font75dpidir was given. 23562if test "${with_font75dpidir+set}" = set; then : 23563 withval=$with_font75dpidir; FONT75DPIDIR="${withval}" 23564else 23565 FONT75DPIDIR='${FONTROOTDIR}/75dpi' 23566fi 23567 23568 23569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5 23570$as_echo "${FONT75DPIDIR}" >&6; } 23571 23572 23573 23574 23575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5 23576$as_echo_n "checking for directory for 100dpi files... " >&6; } 23577 23578# Check whether --with-font100dpidir was given. 23579if test "${with_font100dpidir+set}" = set; then : 23580 withval=$with_font100dpidir; FONT100DPIDIR="${withval}" 23581else 23582 FONT100DPIDIR='${FONTROOTDIR}/100dpi' 23583fi 23584 23585 23586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5 23587$as_echo "${FONT100DPIDIR}" >&6; } 23588 23589 23590DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/" 23591case $host_os in 23592 darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;; 23593esac 23594 23595 23596# Check whether --with-default-font-path was given. 23597if test "${with_default_font_path+set}" = set; then : 23598 withval=$with_default_font_path; FONTPATH="$withval" 23599else 23600 FONTPATH="${DEFAULT_FONT_PATH}" 23601fi 23602 23603 23604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5 23605$as_echo_n "checking for default font path... " >&6; } 23606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5 23607$as_echo "$FONTPATH" >&6; } 23608 23609 23610# Check whether --with-xkb-path was given. 23611if test "${with_xkb_path+set}" = set; then : 23612 withval=$with_xkb_path; XKBPATH="$withval" 23613else 23614 XKBPATH="auto" 23615fi 23616 23617 23618# Check whether --with-xkb-output was given. 23619if test "${with_xkb_output+set}" = set; then : 23620 withval=$with_xkb_output; XKBOUTPUT="$withval" 23621else 23622 XKBOUTPUT="compiled" 23623fi 23624 23625 23626# Check whether --with-default-xkb-rules was given. 23627if test "${with_default_xkb_rules+set}" = set; then : 23628 withval=$with_default_xkb_rules; XKB_DFLT_RULES="$withval" 23629else 23630 XKB_DFLT_RULES="" 23631fi 23632 23633 23634# Check whether --with-default-xkb-model was given. 23635if test "${with_default_xkb_model+set}" = set; then : 23636 withval=$with_default_xkb_model; XKB_DFLT_MODEL="$withval" 23637else 23638 XKB_DFLT_MODEL="pc105" 23639fi 23640 23641 23642# Check whether --with-default-xkb-layout was given. 23643if test "${with_default_xkb_layout+set}" = set; then : 23644 withval=$with_default_xkb_layout; XKB_DFLT_LAYOUT="$withval" 23645else 23646 XKB_DFLT_LAYOUT="us" 23647fi 23648 23649 23650# Check whether --with-default-xkb-variant was given. 23651if test "${with_default_xkb_variant+set}" = set; then : 23652 withval=$with_default_xkb_variant; XKB_DFLT_VARIANT="$withval" 23653else 23654 XKB_DFLT_VARIANT="" 23655fi 23656 23657 23658# Check whether --with-default-xkb-options was given. 23659if test "${with_default_xkb_options+set}" = set; then : 23660 withval=$with_default_xkb_options; XKB_DFLT_OPTIONS="$withval" 23661else 23662 XKB_DFLT_OPTIONS="" 23663fi 23664 23665 23666# Check whether --with-serverconfig-path was given. 23667if test "${with_serverconfig_path+set}" = set; then : 23668 withval=$with_serverconfig_path; SERVERCONFIG="$withval" 23669else 23670 SERVERCONFIG="${libdir}/xorg" 23671fi 23672 23673 23674# Check whether --with-apple-applications-dir was given. 23675if test "${with_apple_applications_dir+set}" = set; then : 23676 withval=$with_apple_applications_dir; APPLE_APPLICATIONS_DIR="${withval}" 23677else 23678 APPLE_APPLICATIONS_DIR="/Applications/Utilities" 23679fi 23680 23681 23682 23683# Check whether --with-apple-application-name was given. 23684if test "${with_apple_application_name+set}" = set; then : 23685 withval=$with_apple_application_name; APPLE_APPLICATION_NAME="${withval}" 23686else 23687 APPLE_APPLICATION_NAME="X11" 23688fi 23689 23690 23691 23692# Check whether --with-bundle-id-prefix was given. 23693if test "${with_bundle_id_prefix+set}" = set; then : 23694 withval=$with_bundle_id_prefix; BUNDLE_ID_PREFIX="${withval}" 23695fi 23696 23697 23698 23699cat >>confdefs.h <<_ACEOF 23700#define BUNDLE_ID_PREFIX "$BUNDLE_ID_PREFIX" 23701_ACEOF 23702 23703 23704 23705# Check whether --with-bundle-version was given. 23706if test "${with_bundle_version+set}" = set; then : 23707 withval=$with_bundle_version; BUNDLE_VERSION="${withval}" 23708else 23709 BUNDLE_VERSION="1.20.6" 23710fi 23711 23712 23713 23714# Check whether --with-bundle-version-string was given. 23715if test "${with_bundle_version_string+set}" = set; then : 23716 withval=$with_bundle_version_string; BUNDLE_VERSION_STRING="${withval}" 23717else 23718 BUNDLE_VERSION_STRING="${PACKAGE_VERSION}" 23719fi 23720 23721 23722# Check whether --enable-sparkle was given. 23723if test "${enable_sparkle+set}" = set; then : 23724 enableval=$enable_sparkle; XQUARTZ_SPARKLE="${enableval}" 23725else 23726 XQUARTZ_SPARKLE="no" 23727fi 23728 23729 23730 23731# Check whether --with-sparkle-feed-url was given. 23732if test "${with_sparkle_feed_url+set}" = set; then : 23733 withval=$with_sparkle_feed_url; XQUARTZ_SPARKLE_FEED_URL="${withval}" 23734else 23735 XQUARTZ_SPARKLE_FEED_URL="https://www.xquartz.org/releases/sparkle/release.xml" 23736fi 23737 23738 23739# Check whether --enable-visibility was given. 23740if test "${enable_visibility+set}" = set; then : 23741 enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval 23742else 23743 SYMBOL_VISIBILITY=auto 23744fi 23745 23746 23747 23748# Check whether --with-khronos-spec-dir was given. 23749if test "${with_khronos_spec_dir+set}" = set; then : 23750 withval=$with_khronos_spec_dir; KHRONOS_SPEC_DIR="${withval}" 23751else 23752 KHRONOS_SPEC_DIR=auto 23753fi 23754 23755 23756# Check whether --enable-composite was given. 23757if test "${enable_composite+set}" = set; then : 23758 enableval=$enable_composite; COMPOSITE=$enableval 23759else 23760 COMPOSITE=yes 23761fi 23762 23763# Check whether --enable-mitshm was given. 23764if test "${enable_mitshm+set}" = set; then : 23765 enableval=$enable_mitshm; MITSHM=$enableval 23766else 23767 MITSHM=auto 23768fi 23769 23770# Check whether --enable-xres was given. 23771if test "${enable_xres+set}" = set; then : 23772 enableval=$enable_xres; RES=$enableval 23773else 23774 RES=yes 23775fi 23776 23777# Check whether --enable-record was given. 23778if test "${enable_record+set}" = set; then : 23779 enableval=$enable_record; RECORD=$enableval 23780else 23781 RECORD=yes 23782fi 23783 23784# Check whether --enable-xv was given. 23785if test "${enable_xv+set}" = set; then : 23786 enableval=$enable_xv; XV=$enableval 23787else 23788 XV=yes 23789fi 23790 23791# Check whether --enable-xvmc was given. 23792if test "${enable_xvmc+set}" = set; then : 23793 enableval=$enable_xvmc; XVMC=$enableval 23794else 23795 XVMC=yes 23796fi 23797 23798# Check whether --enable-dga was given. 23799if test "${enable_dga+set}" = set; then : 23800 enableval=$enable_dga; DGA=$enableval 23801else 23802 DGA=auto 23803fi 23804 23805# Check whether --enable-screensaver was given. 23806if test "${enable_screensaver+set}" = set; then : 23807 enableval=$enable_screensaver; SCREENSAVER=$enableval 23808else 23809 SCREENSAVER=yes 23810fi 23811 23812# Check whether --enable-xdmcp was given. 23813if test "${enable_xdmcp+set}" = set; then : 23814 enableval=$enable_xdmcp; XDMCP=$enableval 23815else 23816 XDMCP=auto 23817fi 23818 23819# Check whether --enable-xdm-auth-1 was given. 23820if test "${enable_xdm_auth_1+set}" = set; then : 23821 enableval=$enable_xdm_auth_1; XDMAUTH=$enableval 23822else 23823 XDMAUTH=auto 23824fi 23825 23826# Check whether --enable-glx was given. 23827if test "${enable_glx+set}" = set; then : 23828 enableval=$enable_glx; GLX=$enableval 23829else 23830 GLX=yes 23831fi 23832 23833# Check whether --enable-dri was given. 23834if test "${enable_dri+set}" = set; then : 23835 enableval=$enable_dri; DRI=$enableval 23836fi 23837 23838# Check whether --enable-dri2 was given. 23839if test "${enable_dri2+set}" = set; then : 23840 enableval=$enable_dri2; DRI2=$enableval 23841else 23842 DRI2=auto 23843fi 23844 23845# Check whether --enable-dri3 was given. 23846if test "${enable_dri3+set}" = set; then : 23847 enableval=$enable_dri3; DRI3=$enableval 23848else 23849 DRI3=auto 23850fi 23851 23852# Check whether --enable-present was given. 23853if test "${enable_present+set}" = set; then : 23854 enableval=$enable_present; PRESENT=$enableval 23855else 23856 PRESENT=yes 23857fi 23858 23859# Check whether --enable-xinerama was given. 23860if test "${enable_xinerama+set}" = set; then : 23861 enableval=$enable_xinerama; XINERAMA=$enableval 23862else 23863 XINERAMA=yes 23864fi 23865 23866# Check whether --enable-xf86vidmode was given. 23867if test "${enable_xf86vidmode+set}" = set; then : 23868 enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval 23869else 23870 XF86VIDMODE=auto 23871fi 23872 23873# Check whether --enable-xace was given. 23874if test "${enable_xace+set}" = set; then : 23875 enableval=$enable_xace; XACE=$enableval 23876else 23877 XACE=yes 23878fi 23879 23880# Check whether --enable-xselinux was given. 23881if test "${enable_xselinux+set}" = set; then : 23882 enableval=$enable_xselinux; XSELINUX=$enableval 23883else 23884 XSELINUX=no 23885fi 23886 23887# Check whether --enable-xcsecurity was given. 23888if test "${enable_xcsecurity+set}" = set; then : 23889 enableval=$enable_xcsecurity; XCSECURITY=$enableval 23890else 23891 XCSECURITY=no 23892fi 23893 23894# Check whether --enable-dbe was given. 23895if test "${enable_dbe+set}" = set; then : 23896 enableval=$enable_dbe; DBE=$enableval 23897else 23898 DBE=yes 23899fi 23900 23901# Check whether --enable-xf86bigfont was given. 23902if test "${enable_xf86bigfont+set}" = set; then : 23903 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval 23904else 23905 XF86BIGFONT=no 23906fi 23907 23908# Check whether --enable-dpms was given. 23909if test "${enable_dpms+set}" = set; then : 23910 enableval=$enable_dpms; DPMSExtension=$enableval 23911else 23912 DPMSExtension=yes 23913fi 23914 23915# Check whether --enable-config-udev was given. 23916if test "${enable_config_udev+set}" = set; then : 23917 enableval=$enable_config_udev; CONFIG_UDEV=$enableval 23918else 23919 CONFIG_UDEV=auto 23920fi 23921 23922# Check whether --enable-config-udev-kms was given. 23923if test "${enable_config_udev_kms+set}" = set; then : 23924 enableval=$enable_config_udev_kms; CONFIG_UDEV_KMS=$enableval 23925else 23926 CONFIG_UDEV_KMS=auto 23927fi 23928 23929# Check whether --enable-config-hal was given. 23930if test "${enable_config_hal+set}" = set; then : 23931 enableval=$enable_config_hal; CONFIG_HAL=$enableval 23932else 23933 CONFIG_HAL=auto 23934fi 23935 23936# Check whether --enable-config-wscons was given. 23937if test "${enable_config_wscons+set}" = set; then : 23938 enableval=$enable_config_wscons; CONFIG_WSCONS=$enableval 23939else 23940 CONFIG_WSCONS=auto 23941fi 23942 23943# Check whether --enable-xfree86-utils was given. 23944if test "${enable_xfree86_utils+set}" = set; then : 23945 enableval=$enable_xfree86_utils; XF86UTILS=$enableval 23946else 23947 XF86UTILS=yes 23948fi 23949 23950# Check whether --enable-vgahw was given. 23951if test "${enable_vgahw+set}" = set; then : 23952 enableval=$enable_vgahw; VGAHW=$enableval 23953else 23954 VGAHW=yes 23955fi 23956 23957# Check whether --enable-vbe was given. 23958if test "${enable_vbe+set}" = set; then : 23959 enableval=$enable_vbe; VBE=$enableval 23960else 23961 VBE=yes 23962fi 23963 23964# Check whether --enable-int10-module was given. 23965if test "${enable_int10_module+set}" = set; then : 23966 enableval=$enable_int10_module; INT10MODULE=$enableval 23967else 23968 INT10MODULE=yes 23969fi 23970 23971# Check whether --enable-windowswm was given. 23972if test "${enable_windowswm+set}" = set; then : 23973 enableval=$enable_windowswm; WINDOWSWM=$enableval 23974else 23975 WINDOWSWM=no 23976fi 23977 23978# Check whether --enable-windowsdri was given. 23979if test "${enable_windowsdri+set}" = set; then : 23980 enableval=$enable_windowsdri; WINDOWSDRI=$enableval 23981else 23982 WINDOWSDRI=auto 23983fi 23984 23985# Check whether --enable-libdrm was given. 23986if test "${enable_libdrm+set}" = set; then : 23987 enableval=$enable_libdrm; DRM=$enableval 23988else 23989 DRM=yes 23990fi 23991 23992# Check whether --enable-clientids was given. 23993if test "${enable_clientids+set}" = set; then : 23994 enableval=$enable_clientids; CLIENTIDS=$enableval 23995else 23996 CLIENTIDS=yes 23997fi 23998 23999# Check whether --enable-pciaccess was given. 24000if test "${enable_pciaccess+set}" = set; then : 24001 enableval=$enable_pciaccess; PCI=$enableval 24002else 24003 PCI=yes 24004fi 24005 24006# Check whether --enable-linux_acpi was given. 24007if test "${enable_linux_acpi+set}" = set; then : 24008 enableval=$enable_linux_acpi; enable_linux_acpi=$enableval 24009else 24010 enable_linux_acpi=yes 24011fi 24012 24013# Check whether --enable-linux_apm was given. 24014if test "${enable_linux_apm+set}" = set; then : 24015 enableval=$enable_linux_apm; enable_linux_apm=$enableval 24016else 24017 enable_linux_apm=yes 24018fi 24019 24020# Check whether --enable-systemd-logind was given. 24021if test "${enable_systemd_logind+set}" = set; then : 24022 enableval=$enable_systemd_logind; SYSTEMD_LOGIND=$enableval 24023else 24024 SYSTEMD_LOGIND=auto 24025fi 24026 24027# Check whether --enable-suid-wrapper was given. 24028if test "${enable_suid_wrapper+set}" = set; then : 24029 enableval=$enable_suid_wrapper; SUID_WRAPPER=$enableval 24030else 24031 SUID_WRAPPER=no 24032fi 24033 24034 24035# Check whether --enable-xorg was given. 24036if test "${enable_xorg+set}" = set; then : 24037 enableval=$enable_xorg; XORG=$enableval 24038else 24039 XORG=auto 24040fi 24041 24042# Check whether --enable-dmx was given. 24043if test "${enable_dmx+set}" = set; then : 24044 enableval=$enable_dmx; DMX=$enableval 24045else 24046 DMX=no 24047fi 24048 24049# Check whether --enable-xvfb was given. 24050if test "${enable_xvfb+set}" = set; then : 24051 enableval=$enable_xvfb; XVFB=$enableval 24052else 24053 XVFB=yes 24054fi 24055 24056# Check whether --enable-xnest was given. 24057if test "${enable_xnest+set}" = set; then : 24058 enableval=$enable_xnest; XNEST=$enableval 24059else 24060 XNEST=auto 24061fi 24062 24063# Check whether --enable-xquartz was given. 24064if test "${enable_xquartz+set}" = set; then : 24065 enableval=$enable_xquartz; XQUARTZ=$enableval 24066else 24067 XQUARTZ=auto 24068fi 24069 24070# Check whether --enable-xwayland was given. 24071if test "${enable_xwayland+set}" = set; then : 24072 enableval=$enable_xwayland; XWAYLAND=$enableval 24073else 24074 XWAYLAND=auto 24075fi 24076 24077# Check whether --enable-xwayland-eglstream was given. 24078if test "${enable_xwayland_eglstream+set}" = set; then : 24079 enableval=$enable_xwayland_eglstream; XWAYLAND_EGLSTREAM=$enableval 24080else 24081 XWAYLAND_EGLSTREAM=no 24082fi 24083 24084# Check whether --enable-standalone-xpbproxy was given. 24085if test "${enable_standalone_xpbproxy+set}" = set; then : 24086 enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval 24087else 24088 STANDALONE_XPBPROXY=no 24089fi 24090 24091# Check whether --enable-xwin was given. 24092if test "${enable_xwin+set}" = set; then : 24093 enableval=$enable_xwin; XWIN=$enableval 24094else 24095 XWIN=auto 24096fi 24097 24098# Check whether --enable-glamor was given. 24099if test "${enable_glamor+set}" = set; then : 24100 enableval=$enable_glamor; GLAMOR=$enableval 24101else 24102 GLAMOR=auto 24103fi 24104 24105# Check whether --enable-kdrive was given. 24106if test "${enable_kdrive+set}" = set; then : 24107 enableval=$enable_kdrive; KDRIVE=$enableval 24108else 24109 KDRIVE=no 24110fi 24111 24112# Check whether --enable-xephyr was given. 24113if test "${enable_xephyr+set}" = set; then : 24114 enableval=$enable_xephyr; XEPHYR=$enableval 24115else 24116 XEPHYR=auto 24117fi 24118 24119# Check whether --enable-libunwind was given. 24120if test "${enable_libunwind+set}" = set; then : 24121 enableval=$enable_libunwind; LIBUNWIND="$enableval" 24122else 24123 LIBUNWIND="auto" 24124fi 24125 24126# Check whether --enable-xshmfence was given. 24127if test "${enable_xshmfence+set}" = set; then : 24128 enableval=$enable_xshmfence; XSHMFENCE="$enableval" 24129else 24130 XSHMFENCE="auto" 24131fi 24132 24133 24134 24135# Check whether --enable-install-setuid was given. 24136if test "${enable_install_setuid+set}" = set; then : 24137 enableval=$enable_install_setuid; SETUID=$enableval 24138else 24139 SETUID=auto 24140fi 24141 24142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we can install the Xorg server as root" >&5 24143$as_echo_n "checking to see if we can install the Xorg server as root... " >&6; } 24144if test "x$SETUID" = "xauto" ; then 24145 case $host_os in 24146 cygwin*) SETUID="no" ;; 24147 mingw*) SETUID="no" ;; 24148 darwin*) SETUID="no" ;; 24149 *) 24150 case $host_cpu in 24151 sparc) SETUID="no" ;; 24152 *) SETUID="yes" ;; 24153 esac 24154 esac 24155 if test "x$SETUID" = xyes; then 24156 touch testfile 24157 chown root testfile > /dev/null 2>&1 || SETUID="no" 24158 rm -f testfile 24159 fi 24160fi 24161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETUID" >&5 24162$as_echo "$SETUID" >&6; } 24163 if test "x$SETUID" = "xyes"; then 24164 INSTALL_SETUID_TRUE= 24165 INSTALL_SETUID_FALSE='#' 24166else 24167 INSTALL_SETUID_TRUE='#' 24168 INSTALL_SETUID_FALSE= 24169fi 24170 24171 24172 24173 24174# Transport selection macro from xtrans.m4 24175 24176 24177 case $host_os in 24178 mingw*) unixdef="no" ;; 24179 *) unixdef="yes" ;; 24180 esac 24181 # Check whether --enable-unix-transport was given. 24182if test "${enable_unix_transport+set}" = set; then : 24183 enableval=$enable_unix_transport; UNIXCONN=$enableval 24184else 24185 UNIXCONN=$unixdef 24186fi 24187 24188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 24189$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 24190 if test "$UNIXCONN" = "yes"; then 24191 24192$as_echo "#define UNIXCONN 1" >>confdefs.h 24193 24194 fi 24195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 24196$as_echo "$UNIXCONN" >&6; } 24197 # Check whether --enable-tcp-transport was given. 24198if test "${enable_tcp_transport+set}" = set; then : 24199 enableval=$enable_tcp_transport; TCPCONN=$enableval 24200else 24201 TCPCONN=yes 24202fi 24203 24204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 24205$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 24206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 24207$as_echo "$TCPCONN" >&6; } 24208 if test "$TCPCONN" = "yes"; then 24209 24210$as_echo "#define TCPCONN 1" >>confdefs.h 24211 24212 24213 # SVR4 hides these in libraries other than libc 24214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 24215$as_echo_n "checking for library containing socket... " >&6; } 24216if ${ac_cv_search_socket+:} false; then : 24217 $as_echo_n "(cached) " >&6 24218else 24219 ac_func_search_save_LIBS=$LIBS 24220cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24221/* end confdefs.h. */ 24222 24223/* Override any GCC internal prototype to avoid an error. 24224 Use char because int might match the return type of a GCC 24225 builtin and then its argument prototype would still apply. */ 24226#ifdef __cplusplus 24227extern "C" 24228#endif 24229char socket (); 24230int 24231main () 24232{ 24233return socket (); 24234 ; 24235 return 0; 24236} 24237_ACEOF 24238for ac_lib in '' socket; do 24239 if test -z "$ac_lib"; then 24240 ac_res="none required" 24241 else 24242 ac_res=-l$ac_lib 24243 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24244 fi 24245 if ac_fn_c_try_link "$LINENO"; then : 24246 ac_cv_search_socket=$ac_res 24247fi 24248rm -f core conftest.err conftest.$ac_objext \ 24249 conftest$ac_exeext 24250 if ${ac_cv_search_socket+:} false; then : 24251 break 24252fi 24253done 24254if ${ac_cv_search_socket+:} false; then : 24255 24256else 24257 ac_cv_search_socket=no 24258fi 24259rm conftest.$ac_ext 24260LIBS=$ac_func_search_save_LIBS 24261fi 24262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 24263$as_echo "$ac_cv_search_socket" >&6; } 24264ac_res=$ac_cv_search_socket 24265if test "$ac_res" != no; then : 24266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24267 24268fi 24269 24270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 24271$as_echo_n "checking for library containing gethostbyname... " >&6; } 24272if ${ac_cv_search_gethostbyname+:} false; then : 24273 $as_echo_n "(cached) " >&6 24274else 24275 ac_func_search_save_LIBS=$LIBS 24276cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24277/* end confdefs.h. */ 24278 24279/* Override any GCC internal prototype to avoid an error. 24280 Use char because int might match the return type of a GCC 24281 builtin and then its argument prototype would still apply. */ 24282#ifdef __cplusplus 24283extern "C" 24284#endif 24285char gethostbyname (); 24286int 24287main () 24288{ 24289return gethostbyname (); 24290 ; 24291 return 0; 24292} 24293_ACEOF 24294for ac_lib in '' nsl; do 24295 if test -z "$ac_lib"; then 24296 ac_res="none required" 24297 else 24298 ac_res=-l$ac_lib 24299 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24300 fi 24301 if ac_fn_c_try_link "$LINENO"; then : 24302 ac_cv_search_gethostbyname=$ac_res 24303fi 24304rm -f core conftest.err conftest.$ac_objext \ 24305 conftest$ac_exeext 24306 if ${ac_cv_search_gethostbyname+:} false; then : 24307 break 24308fi 24309done 24310if ${ac_cv_search_gethostbyname+:} false; then : 24311 24312else 24313 ac_cv_search_gethostbyname=no 24314fi 24315rm conftest.$ac_ext 24316LIBS=$ac_func_search_save_LIBS 24317fi 24318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 24319$as_echo "$ac_cv_search_gethostbyname" >&6; } 24320ac_res=$ac_cv_search_gethostbyname 24321if test "$ac_res" != no; then : 24322 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24323 24324fi 24325 24326 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 24327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 24328$as_echo_n "checking for main in -lws2_32... " >&6; } 24329if ${ac_cv_lib_ws2_32_main+:} false; then : 24330 $as_echo_n "(cached) " >&6 24331else 24332 ac_check_lib_save_LIBS=$LIBS 24333LIBS="-lws2_32 $LIBS" 24334cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24335/* end confdefs.h. */ 24336 24337 24338int 24339main () 24340{ 24341return main (); 24342 ; 24343 return 0; 24344} 24345_ACEOF 24346if ac_fn_c_try_link "$LINENO"; then : 24347 ac_cv_lib_ws2_32_main=yes 24348else 24349 ac_cv_lib_ws2_32_main=no 24350fi 24351rm -f core conftest.err conftest.$ac_objext \ 24352 conftest$ac_exeext conftest.$ac_ext 24353LIBS=$ac_check_lib_save_LIBS 24354fi 24355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 24356$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 24357if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 24358 cat >>confdefs.h <<_ACEOF 24359#define HAVE_LIBWS2_32 1 24360_ACEOF 24361 24362 LIBS="-lws2_32 $LIBS" 24363 24364fi 24365 24366 fi 24367 24368 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 24369 # Check whether --enable-ipv6 was given. 24370if test "${enable_ipv6+set}" = set; then : 24371 enableval=$enable_ipv6; IPV6CONN=$enableval 24372else 24373 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 24374if test "x$ac_cv_func_getaddrinfo" = xyes; then : 24375 IPV6CONN=yes 24376else 24377 IPV6CONN=no 24378fi 24379 24380fi 24381 24382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 24383$as_echo_n "checking if IPv6 support should be built... " >&6; } 24384 if test "$IPV6CONN" = "yes"; then 24385 24386$as_echo "#define IPv6 1" >>confdefs.h 24387 24388 fi 24389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 24390$as_echo "$IPV6CONN" >&6; } 24391 24392 # 4.3BSD-Reno added a new member to struct sockaddr_in 24393 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 24394#include <sys/types.h> 24395#include <sys/socket.h> 24396#include <netinet/in.h> 24397 24398" 24399if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 24400 24401$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 24402 24403fi 24404 24405 24406 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 24407 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 24408$ac_includes_default 24409#include <sys/socket.h> 24410" 24411if test "x$ac_cv_type_socklen_t" = xyes; then : 24412 24413cat >>confdefs.h <<_ACEOF 24414#define HAVE_SOCKLEN_T 1 24415_ACEOF 24416 24417 24418fi 24419 24420 24421 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 24422 # _XOPEN_SOURCE to get it (such as on Solaris) 24423 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 24424$ac_includes_default 24425#include <sys/socket.h> 24426 24427" 24428if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 24429 24430fi 24431 24432 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 24433 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 24434 unset ac_cv_member_struct_msghdr_msg_control 24435 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 24436$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 24437 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 24438#define _XOPEN_SOURCE 600 24439$ac_includes_default 24440#include <sys/socket.h> 24441 24442" 24443if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 24444 24445$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 24446 24447 24448fi 24449 24450 fi 24451 # If that didn't work, fall back to XPG5/UNIX98 with C89 24452 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 24453 unset ac_cv_member_struct_msghdr_msg_control 24454 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 24455$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 24456 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 24457#define _XOPEN_SOURCE 500 24458$ac_includes_default 24459#include <sys/socket.h> 24460 24461" 24462if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 24463 24464$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 24465 24466 24467fi 24468 24469 fi 24470 24471 24472 24473 fi 24474 case $host_os in 24475 solaris*|sco*|sysv4*) localdef="yes" ;; 24476 *) localdef="no" ;; 24477 esac 24478 # Check whether --enable-local-transport was given. 24479if test "${enable_local_transport+set}" = set; then : 24480 enableval=$enable_local_transport; LOCALCONN=$enableval 24481else 24482 LOCALCONN=$localdef 24483fi 24484 24485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 24486$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 24487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 24488$as_echo "$LOCALCONN" >&6; } 24489 if test "$LOCALCONN" = "yes"; then 24490 24491$as_echo "#define LOCALCONN 1" >>confdefs.h 24492 24493 fi 24494 24495 # Other functions Xtrans may need 24496 for ac_func in strcasecmp strlcpy 24497do : 24498 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24499ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24500if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24501 cat >>confdefs.h <<_ACEOF 24502#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24503_ACEOF 24504 24505fi 24506done 24507 24508 24509 24510 24511# Secure RPC detection macro from xtrans.m4 24512 24513 # Check whether --enable-secure-rpc was given. 24514if test "${enable_secure_rpc+set}" = set; then : 24515 enableval=$enable_secure_rpc; SECURE_RPC=$enableval 24516else 24517 SECURE_RPC="try" 24518fi 24519 24520 24521 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 24522 FOUND_SECURE_RPC="no" 24523 for ac_func in authdes_seccreate authdes_create 24524do : 24525 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24526ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24527if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24528 cat >>confdefs.h <<_ACEOF 24529#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24530_ACEOF 24531 FOUND_SECURE_RPC="yes" 24532fi 24533done 24534 24535 if test "x$FOUND_SECURE_RPC" = "xno" ; then 24536 if test "x$SECURE_RPC" = "xyes" ; then 24537 as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5 24538 fi 24539 SECURE_RPC="no" 24540 else 24541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5 24542$as_echo_n "checking for library containing getsecretkey... " >&6; } 24543if ${ac_cv_search_getsecretkey+:} false; then : 24544 $as_echo_n "(cached) " >&6 24545else 24546 ac_func_search_save_LIBS=$LIBS 24547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24548/* end confdefs.h. */ 24549 24550/* Override any GCC internal prototype to avoid an error. 24551 Use char because int might match the return type of a GCC 24552 builtin and then its argument prototype would still apply. */ 24553#ifdef __cplusplus 24554extern "C" 24555#endif 24556char getsecretkey (); 24557int 24558main () 24559{ 24560return getsecretkey (); 24561 ; 24562 return 0; 24563} 24564_ACEOF 24565for ac_lib in '' rpcsvc; do 24566 if test -z "$ac_lib"; then 24567 ac_res="none required" 24568 else 24569 ac_res=-l$ac_lib 24570 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24571 fi 24572 if ac_fn_c_try_link "$LINENO"; then : 24573 ac_cv_search_getsecretkey=$ac_res 24574fi 24575rm -f core conftest.err conftest.$ac_objext \ 24576 conftest$ac_exeext 24577 if ${ac_cv_search_getsecretkey+:} false; then : 24578 break 24579fi 24580done 24581if ${ac_cv_search_getsecretkey+:} false; then : 24582 24583else 24584 ac_cv_search_getsecretkey=no 24585fi 24586rm conftest.$ac_ext 24587LIBS=$ac_func_search_save_LIBS 24588fi 24589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5 24590$as_echo "$ac_cv_search_getsecretkey" >&6; } 24591ac_res=$ac_cv_search_getsecretkey 24592if test "$ac_res" != no; then : 24593 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24594 24595fi 24596 24597 SECURE_RPC="yes" 24598 fi 24599 fi 24600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5 24601$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; } 24602 if test "x$SECURE_RPC" = "xyes" ; then 24603 24604$as_echo "#define SECURE_RPC 1" >>confdefs.h 24605 24606 fi 24607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5 24608$as_echo "$SECURE_RPC" >&6; } 24609 24610 if test "x$SECURE_RPC" = xyes; then 24611 SECURE_RPC_TRUE= 24612 SECURE_RPC_FALSE='#' 24613else 24614 SECURE_RPC_TRUE='#' 24615 SECURE_RPC_FALSE= 24616fi 24617 24618 24619 if test "x$INT10" = xvm86; then 24620 INT10_VM86_TRUE= 24621 INT10_VM86_FALSE='#' 24622else 24623 INT10_VM86_TRUE='#' 24624 INT10_VM86_FALSE= 24625fi 24626 24627 if test "x$INT10" = xx86emu; then 24628 INT10_X86EMU_TRUE= 24629 INT10_X86EMU_FALSE='#' 24630else 24631 INT10_X86EMU_TRUE='#' 24632 INT10_X86EMU_FALSE= 24633fi 24634 24635 if test "x$INT10" = xstub; then 24636 INT10_STUB_TRUE= 24637 INT10_STUB_FALSE='#' 24638else 24639 INT10_STUB_TRUE='#' 24640 INT10_STUB_FALSE= 24641fi 24642 24643 24644case $host_os in 24645 cygwin* | mingw*) 24646 CONFIG_HAL=no 24647 CONFIG_UDEV=no 24648 CONFIG_UDEV_KMS=no 24649 DGA=no 24650 DRM=no 24651 DRI2=no 24652 DRI3=no 24653 INT10MODULE=no 24654 PCI=no 24655 VGAHW=no 24656 VBE=no 24657 XF86UTILS=no 24658 XF86VIDMODE=no 24659 XSELINUX=no 24660 SYMBOL_VISIBILITY=no 24661 ;; 24662 darwin*) 24663 PCI=no 24664 INT10MODULE=no 24665 VGAHW=no 24666 VBE=no 24667 DRM=no 24668 DRI2=no 24669 DRI3=no 24670 24671 if test x$XQUARTZ = xauto; then 24672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xquartz" >&5 24673$as_echo_n "checking whether to build Xquartz... " >&6; } 24674if ${xorg_cv_Carbon_framework+:} false; then : 24675 $as_echo_n "(cached) " >&6 24676else 24677 24678 save_LDFLAGS=$LDFLAGS 24679 LDFLAGS="$LDFLAGS -framework Carbon" 24680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24681/* end confdefs.h. */ 24682char FSFindFolder(); int main() { FSFindFolder(); return 0;} 24683_ACEOF 24684if ac_fn_c_try_link "$LINENO"; then : 24685 xorg_cv_Carbon_framework=yes 24686else 24687 xorg_cv_Carbon_framework=no 24688fi 24689rm -f core conftest.err conftest.$ac_objext \ 24690 conftest$ac_exeext conftest.$ac_ext 24691 LDFLAGS=$save_LDFLAGS 24692fi 24693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_Carbon_framework" >&5 24694$as_echo "$xorg_cv_Carbon_framework" >&6; } 24695 24696 if test "X$xorg_cv_Carbon_framework" = Xyes; then 24697 XQUARTZ=yes 24698 else 24699 XQUARTZ=no 24700 fi 24701 fi 24702 24703 ac_fn_c_check_func "$LINENO" "dispatch_async" "ac_cv_func_dispatch_async" 24704if test "x$ac_cv_func_dispatch_async" = xyes; then : 24705 24706$as_echo "#define HAVE_LIBDISPATCH 1" >>confdefs.h 24707 24708fi 24709 24710 24711 if test "x$XQUARTZ" = xyes ; then 24712 XQUARTZ=yes 24713 XVFB=no 24714 XNEST=no 24715 XWAYLAND=no 24716 24717 COMPOSITE=no 24718 DGA=no 24719 DPMSExtension=no 24720 XF86VIDMODE=no 24721 fi 24722 ;; 24723 gnu*) 24724 DRM=no 24725 DRI2=no 24726 DRI3=no 24727 ;; 24728 *) XQUARTZ=no ;; 24729esac 24730 24731XEXT_INC='-I$(top_srcdir)/Xext' 24732XEXT_LIB='$(top_builddir)/Xext/libXext.la' 24733 24734VIDEOPROTO="videoproto" 24735COMPOSITEPROTO="compositeproto >= 0.4" 24736RECORDPROTO="recordproto >= 1.13.99.1" 24737SCRNSAVERPROTO="scrnsaverproto >= 1.1" 24738RESOURCEPROTO="resourceproto >= 1.2.0" 24739DRIPROTO="xf86driproto >= 2.1.0" 24740DRI2PROTO="dri2proto >= 2.8" 24741DRI3PROTO="dri3proto >= 1.2" 24742XINERAMAPROTO="xineramaproto" 24743BIGFONTPROTO="xf86bigfontproto >= 1.2.0" 24744DGAPROTO="xf86dgaproto >= 2.0.99.1" 24745GLPROTO="glproto >= 1.4.17" 24746DMXPROTO="dmxproto >= 2.2.99.1" 24747VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1" 24748WINDOWSWMPROTO="windowswmproto" 24749APPLEWMPROTO="applewmproto >= 1.4" 24750LIBXSHMFENCE="xshmfence >= 1.1" 24751 24752XPROTO="xproto >= 7.0.31" 24753RANDRPROTO="randrproto >= 1.6.0" 24754RENDERPROTO="renderproto >= 0.11" 24755XEXTPROTO="xextproto >= 7.2.99.901" 24756INPUTPROTO="inputproto >= 2.3" 24757KBPROTO="kbproto >= 1.0.3" 24758FONTSPROTO="fontsproto >= 2.1.3" 24759FIXESPROTO="fixesproto >= 5.0" 24760DAMAGEPROTO="damageproto >= 1.1" 24761XCMISCPROTO="xcmiscproto >= 1.2.0" 24762BIGREQSPROTO="bigreqsproto >= 1.1.0" 24763XTRANS="xtrans >= 1.3.5" 24764PRESENTPROTO="presentproto >= 1.1" 24765 24766LIBAPPLEWM="applewm >= 1.4" 24767LIBDMX="dmx >= 1.0.99.1" 24768LIBDRI="dri >= 7.8.0" 24769LIBDRM="libdrm >= 2.4.89" 24770LIBEGL="egl" 24771LIBGBM="gbm >= 10.2.0" 24772LIBGL="gl >= 1.2" 24773LIBXEXT="xext >= 1.0.99.4" 24774LIBXFONT="xfont2 >= 2.0.0" 24775LIBXI="xi >= 1.2.99.1" 24776LIBXTST="xtst >= 1.0.99.2" 24777LIBPCIACCESS="pciaccess >= 0.12.901" 24778LIBUDEV="libudev >= 143" 24779LIBSELINUX="libselinux >= 2.0.86" 24780LIBDBUS="dbus-1 >= 1.0" 24781LIBPIXMAN="pixman-1 >= 0.27.2" 24782 24783 24784pkg_failed=no 24785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5 24786$as_echo_n "checking for PIXMAN... " >&6; } 24787 24788if test -n "$PIXMAN_CFLAGS"; then 24789 pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS" 24790 elif test -n "$PKG_CONFIG"; then 24791 if test -n "$PKG_CONFIG" && \ 24792 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5 24793 ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5 24794 ac_status=$? 24795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24796 test $ac_status = 0; }; then 24797 pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$LIBPIXMAN" 2>/dev/null` 24798 test "x$?" != "x0" && pkg_failed=yes 24799else 24800 pkg_failed=yes 24801fi 24802 else 24803 pkg_failed=untried 24804fi 24805if test -n "$PIXMAN_LIBS"; then 24806 pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS" 24807 elif test -n "$PKG_CONFIG"; then 24808 if test -n "$PKG_CONFIG" && \ 24809 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5 24810 ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5 24811 ac_status=$? 24812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24813 test $ac_status = 0; }; then 24814 pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$LIBPIXMAN" 2>/dev/null` 24815 test "x$?" != "x0" && pkg_failed=yes 24816else 24817 pkg_failed=yes 24818fi 24819 else 24820 pkg_failed=untried 24821fi 24822 24823 24824 24825if test $pkg_failed = yes; then 24826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24827$as_echo "no" >&6; } 24828 24829if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24830 _pkg_short_errors_supported=yes 24831else 24832 _pkg_short_errors_supported=no 24833fi 24834 if test $_pkg_short_errors_supported = yes; then 24835 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPIXMAN" 2>&1` 24836 else 24837 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPIXMAN" 2>&1` 24838 fi 24839 # Put the nasty error message in config.log where it belongs 24840 echo "$PIXMAN_PKG_ERRORS" >&5 24841 24842 as_fn_error $? "Package requirements ($LIBPIXMAN) were not met: 24843 24844$PIXMAN_PKG_ERRORS 24845 24846Consider adjusting the PKG_CONFIG_PATH environment variable if you 24847installed software in a non-standard prefix. 24848 24849Alternatively, you may set the environment variables PIXMAN_CFLAGS 24850and PIXMAN_LIBS to avoid the need to call pkg-config. 24851See the pkg-config man page for more details." "$LINENO" 5 24852elif test $pkg_failed = untried; then 24853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24854$as_echo "no" >&6; } 24855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24857as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 24858is in your PATH or set the PKG_CONFIG environment variable to the full 24859path to pkg-config. 24860 24861Alternatively, you may set the environment variables PIXMAN_CFLAGS 24862and PIXMAN_LIBS to avoid the need to call pkg-config. 24863See the pkg-config man page for more details. 24864 24865To get pkg-config, see <http://pkg-config.freedesktop.org/>. 24866See \`config.log' for more details" "$LINENO" 5; } 24867else 24868 PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS 24869 PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS 24870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24871$as_echo "yes" >&6; } 24872 24873fi 24874REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau" 24875 24876SDK_REQUIRED_MODULES="$XPROTO $RANDRPROTO $RENDERPROTO $XEXTPROTO $INPUTPROTO $KBPROTO $FONTSPROTO $LIBPIXMAN" 24877# Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc 24878 24879 24880ac_fn_c_check_decl "$LINENO" "PTHREAD_MUTEX_RECURSIVE" "ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" "#include <pthread.h> 24881" 24882if test "x$ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" = xyes; then : 24883 HAVE_RECURSIVE_MUTEX=yes 24884else 24885 HAVE_RECURSIVE_MUTEX=no 24886fi 24887 24888 24889THREAD_DEFAULT=no 24890 24891if test "x$HAVE_RECURSIVE_MUTEX" = "xyes" ; then 24892 THREAD_DEFAULT=yes 24893fi 24894 24895# Check whether --enable-input-thread was given. 24896if test "${enable_input_thread+set}" = set; then : 24897 enableval=$enable_input_thread; INPUTTHREAD=$enableval 24898else 24899 INPUTTHREAD=$THREAD_DEFAULT 24900fi 24901 24902 24903if test "x$INPUTTHREAD" = "xyes" ; then 24904 24905 24906ac_ext=c 24907ac_cpp='$CPP $CPPFLAGS' 24908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24910ac_compiler_gnu=$ac_cv_c_compiler_gnu 24911 24912ax_pthread_ok=no 24913 24914# We used to check for pthread.h first, but this fails if pthread.h 24915# requires special compiler flags (e.g. on True64 or Sequent). 24916# It gets checked for in the link test anyway. 24917 24918# First of all, check if the user has set any of the PTHREAD_LIBS, 24919# etcetera environment variables, and if threads linking works using 24920# them: 24921if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 24922 save_CFLAGS="$CFLAGS" 24923 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 24924 save_LIBS="$LIBS" 24925 LIBS="$PTHREAD_LIBS $LIBS" 24926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 24927$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 24928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24929/* end confdefs.h. */ 24930 24931/* Override any GCC internal prototype to avoid an error. 24932 Use char because int might match the return type of a GCC 24933 builtin and then its argument prototype would still apply. */ 24934#ifdef __cplusplus 24935extern "C" 24936#endif 24937char pthread_join (); 24938int 24939main () 24940{ 24941return pthread_join (); 24942 ; 24943 return 0; 24944} 24945_ACEOF 24946if ac_fn_c_try_link "$LINENO"; then : 24947 ax_pthread_ok=yes 24948fi 24949rm -f core conftest.err conftest.$ac_objext \ 24950 conftest$ac_exeext conftest.$ac_ext 24951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 24952$as_echo "$ax_pthread_ok" >&6; } 24953 if test x"$ax_pthread_ok" = xno; then 24954 PTHREAD_LIBS="" 24955 PTHREAD_CFLAGS="" 24956 fi 24957 LIBS="$save_LIBS" 24958 CFLAGS="$save_CFLAGS" 24959fi 24960 24961# We must check for the threads library under a number of different 24962# names; the ordering is very important because some systems 24963# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 24964# libraries is broken (non-POSIX). 24965 24966# Create a list of thread flags to try. Items starting with a "-" are 24967# C compiler flags, and other items are library names, except for "none" 24968# which indicates that we try without any flags at all, and "pthread-config" 24969# which is a program returning the flags for the Pth emulation library. 24970 24971ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 24972 24973# The ordering *is* (sometimes) important. Some notes on the 24974# individual items follow: 24975 24976# pthreads: AIX (must check this before -lpthread) 24977# none: in case threads are in libc; should be tried before -Kthread and 24978# other compiler flags to prevent continual compiler warnings 24979# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 24980# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 24981# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 24982# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 24983# -pthreads: Solaris/gcc 24984# -mthreads: Mingw32/gcc, Lynx/gcc 24985# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 24986# doesn't hurt to check since this sometimes defines pthreads too; 24987# also defines -D_REENTRANT) 24988# ... -mt is also the pthreads flag for HP/aCC 24989# pthread: Linux, etcetera 24990# --thread-safe: KAI C++ 24991# pthread-config: use pthread-config program (for GNU Pth library) 24992 24993case ${host_os} in 24994 solaris*) 24995 24996 # On Solaris (at least, for some versions), libc contains stubbed 24997 # (non-functional) versions of the pthreads routines, so link-based 24998 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 24999 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 25000 # a function called by this macro, so we could check for that, but 25001 # who knows whether they'll stub that too in a future libc.) So, 25002 # we'll just look for -pthreads and -lpthread first: 25003 25004 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 25005 ;; 25006 25007 darwin*) 25008 ax_pthread_flags="-pthread $ax_pthread_flags" 25009 ;; 25010 netbsd*) 25011 # use libc stubs, don't link against libpthread, to allow 25012 # dynamic loading 25013 ax_pthread_flags="" 25014 ;; 25015esac 25016 25017# Clang doesn't consider unrecognized options an error unless we specify 25018# -Werror. We throw in some extra Clang-specific options to ensure that 25019# this doesn't happen for GCC, which also accepts -Werror. 25020 25021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 25022$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 25023save_CFLAGS="$CFLAGS" 25024ax_pthread_extra_flags="-Werror" 25025CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 25026cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25027/* end confdefs.h. */ 25028int foo(void); 25029int 25030main () 25031{ 25032foo() 25033 ; 25034 return 0; 25035} 25036_ACEOF 25037if ac_fn_c_try_compile "$LINENO"; then : 25038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25039$as_echo "yes" >&6; } 25040else 25041 ax_pthread_extra_flags= 25042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25043$as_echo "no" >&6; } 25044fi 25045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25046CFLAGS="$save_CFLAGS" 25047 25048if test x"$ax_pthread_ok" = xno; then 25049for flag in $ax_pthread_flags; do 25050 25051 case $flag in 25052 none) 25053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 25054$as_echo_n "checking whether pthreads work without any flags... " >&6; } 25055 ;; 25056 25057 -*) 25058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 25059$as_echo_n "checking whether pthreads work with $flag... " >&6; } 25060 PTHREAD_CFLAGS="$flag" 25061 ;; 25062 25063 pthread-config) 25064 # Extract the first word of "pthread-config", so it can be a program name with args. 25065set dummy pthread-config; ac_word=$2 25066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25067$as_echo_n "checking for $ac_word... " >&6; } 25068if ${ac_cv_prog_ax_pthread_config+:} false; then : 25069 $as_echo_n "(cached) " >&6 25070else 25071 if test -n "$ax_pthread_config"; then 25072 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 25073else 25074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25075for as_dir in $PATH 25076do 25077 IFS=$as_save_IFS 25078 test -z "$as_dir" && as_dir=. 25079 for ac_exec_ext in '' $ac_executable_extensions; do 25080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25081 ac_cv_prog_ax_pthread_config="yes" 25082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25083 break 2 25084 fi 25085done 25086 done 25087IFS=$as_save_IFS 25088 25089 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 25090fi 25091fi 25092ax_pthread_config=$ac_cv_prog_ax_pthread_config 25093if test -n "$ax_pthread_config"; then 25094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 25095$as_echo "$ax_pthread_config" >&6; } 25096else 25097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25098$as_echo "no" >&6; } 25099fi 25100 25101 25102 if test x"$ax_pthread_config" = xno; then continue; fi 25103 PTHREAD_CFLAGS="`pthread-config --cflags`" 25104 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 25105 ;; 25106 25107 *) 25108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 25109$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 25110 PTHREAD_LIBS="-l$flag" 25111 ;; 25112 esac 25113 25114 save_LIBS="$LIBS" 25115 save_CFLAGS="$CFLAGS" 25116 LIBS="$PTHREAD_LIBS $LIBS" 25117 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 25118 25119 # Check for various functions. We must include pthread.h, 25120 # since some functions may be macros. (On the Sequent, we 25121 # need a special flag -Kthread to make this header compile.) 25122 # We check for pthread_join because it is in -lpthread on IRIX 25123 # while pthread_create is in libc. We check for pthread_attr_init 25124 # due to DEC craziness with -lpthreads. We check for 25125 # pthread_cleanup_push because it is one of the few pthread 25126 # functions on Solaris that doesn't have a non-functional libc stub. 25127 # We try pthread_create on general principles. 25128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25129/* end confdefs.h. */ 25130#include <pthread.h> 25131 static void routine(void *a) { a = 0; } 25132 static void *start_routine(void *a) { return a; } 25133int 25134main () 25135{ 25136pthread_t th; pthread_attr_t attr; 25137 pthread_create(&th, 0, start_routine, 0); 25138 pthread_join(th, 0); 25139 pthread_attr_init(&attr); 25140 pthread_cleanup_push(routine, 0); 25141 pthread_cleanup_pop(0) /* ; */ 25142 ; 25143 return 0; 25144} 25145_ACEOF 25146if ac_fn_c_try_link "$LINENO"; then : 25147 ax_pthread_ok=yes 25148fi 25149rm -f core conftest.err conftest.$ac_objext \ 25150 conftest$ac_exeext conftest.$ac_ext 25151 25152 LIBS="$save_LIBS" 25153 CFLAGS="$save_CFLAGS" 25154 25155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 25156$as_echo "$ax_pthread_ok" >&6; } 25157 if test "x$ax_pthread_ok" = xyes; then 25158 break; 25159 fi 25160 25161 PTHREAD_LIBS="" 25162 PTHREAD_CFLAGS="" 25163done 25164fi 25165 25166# Various other checks: 25167if test "x$ax_pthread_ok" = xyes; then 25168 save_LIBS="$LIBS" 25169 LIBS="$PTHREAD_LIBS $LIBS" 25170 save_CFLAGS="$CFLAGS" 25171 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 25172 25173 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 25174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 25175$as_echo_n "checking for joinable pthread attribute... " >&6; } 25176 attr_name=unknown 25177 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 25178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25179/* end confdefs.h. */ 25180#include <pthread.h> 25181int 25182main () 25183{ 25184int attr = $attr; return attr /* ; */ 25185 ; 25186 return 0; 25187} 25188_ACEOF 25189if ac_fn_c_try_link "$LINENO"; then : 25190 attr_name=$attr; break 25191fi 25192rm -f core conftest.err conftest.$ac_objext \ 25193 conftest$ac_exeext conftest.$ac_ext 25194 done 25195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 25196$as_echo "$attr_name" >&6; } 25197 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 25198 25199cat >>confdefs.h <<_ACEOF 25200#define PTHREAD_CREATE_JOINABLE $attr_name 25201_ACEOF 25202 25203 fi 25204 25205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 25206$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 25207 flag=no 25208 case ${host_os} in 25209 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 25210 osf* | hpux*) flag="-D_REENTRANT";; 25211 solaris*) 25212 if test "$GCC" = "yes"; then 25213 flag="-D_REENTRANT" 25214 else 25215 # TODO: What about Clang on Solaris? 25216 flag="-mt -D_REENTRANT" 25217 fi 25218 ;; 25219 esac 25220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 25221$as_echo "$flag" >&6; } 25222 if test "x$flag" != xno; then 25223 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 25224 fi 25225 25226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 25227$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 25228if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 25229 $as_echo_n "(cached) " >&6 25230else 25231 25232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25233/* end confdefs.h. */ 25234#include <pthread.h> 25235int 25236main () 25237{ 25238int i = PTHREAD_PRIO_INHERIT; 25239 ; 25240 return 0; 25241} 25242_ACEOF 25243if ac_fn_c_try_link "$LINENO"; then : 25244 ax_cv_PTHREAD_PRIO_INHERIT=yes 25245else 25246 ax_cv_PTHREAD_PRIO_INHERIT=no 25247fi 25248rm -f core conftest.err conftest.$ac_objext \ 25249 conftest$ac_exeext conftest.$ac_ext 25250 25251fi 25252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 25253$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 25254 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 25255 25256$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 25257 25258fi 25259 25260 LIBS="$save_LIBS" 25261 CFLAGS="$save_CFLAGS" 25262 25263 # More AIX lossage: compile with *_r variant 25264 if test "x$GCC" != xyes; then 25265 case $host_os in 25266 aix*) 25267 case "x/$CC" in #( 25268 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 25269 #handle absolute path differently from PATH based program lookup 25270 case "x$CC" in #( 25271 x/*) : 25272 if as_fn_executable_p ${CC}_r; then : 25273 PTHREAD_CC="${CC}_r" 25274fi ;; #( 25275 *) : 25276 for ac_prog in ${CC}_r 25277do 25278 # Extract the first word of "$ac_prog", so it can be a program name with args. 25279set dummy $ac_prog; ac_word=$2 25280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25281$as_echo_n "checking for $ac_word... " >&6; } 25282if ${ac_cv_prog_PTHREAD_CC+:} false; then : 25283 $as_echo_n "(cached) " >&6 25284else 25285 if test -n "$PTHREAD_CC"; then 25286 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 25287else 25288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25289for as_dir in $PATH 25290do 25291 IFS=$as_save_IFS 25292 test -z "$as_dir" && as_dir=. 25293 for ac_exec_ext in '' $ac_executable_extensions; do 25294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25295 ac_cv_prog_PTHREAD_CC="$ac_prog" 25296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25297 break 2 25298 fi 25299done 25300 done 25301IFS=$as_save_IFS 25302 25303fi 25304fi 25305PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 25306if test -n "$PTHREAD_CC"; then 25307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 25308$as_echo "$PTHREAD_CC" >&6; } 25309else 25310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25311$as_echo "no" >&6; } 25312fi 25313 25314 25315 test -n "$PTHREAD_CC" && break 25316done 25317test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 25318 ;; 25319esac ;; #( 25320 *) : 25321 ;; 25322esac 25323 ;; 25324 esac 25325 fi 25326fi 25327 25328test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 25329 25330 25331 25332 25333 25334# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 25335if test x"$ax_pthread_ok" = xyes; then 25336 25337$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 25338 25339 : 25340else 25341 ax_pthread_ok=no 25342 as_fn_error $? "threaded input requested but no pthread support has been found" "$LINENO" 5 25343fi 25344ac_ext=c 25345ac_cpp='$CPP $CPPFLAGS' 25346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25348ac_compiler_gnu=$ac_cv_c_compiler_gnu 25349 25350 25351 SYS_LIBS="$SYS_LIBS $PTHREAD_LIBS" 25352 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 25353 25354$as_echo "#define INPUTTHREAD 1" >>confdefs.h 25355 25356 25357 save_LIBS="$LIBS" 25358 LIBS="$LIBS $SYS_LIBS" 25359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(const char*)" >&5 25360$as_echo_n "checking for pthread_setname_np(const char*)... " >&6; } 25361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25362/* end confdefs.h. */ 25363#include <pthread.h> 25364int 25365main () 25366{ 25367pthread_setname_np("example") 25368 ; 25369 return 0; 25370} 25371_ACEOF 25372if ac_fn_c_try_link "$LINENO"; then : 25373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25374$as_echo "yes" >&6; } 25375 25376$as_echo "#define HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID 1" >>confdefs.h 25377 25378else 25379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25380$as_echo "no" >&6; } 25381fi 25382rm -f core conftest.err conftest.$ac_objext \ 25383 conftest$ac_exeext conftest.$ac_ext 25384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(pthread_t, const char*)" >&5 25385$as_echo_n "checking for pthread_setname_np(pthread_t, const char*)... " >&6; } 25386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25387/* end confdefs.h. */ 25388#include <pthread.h> 25389int 25390main () 25391{ 25392pthread_setname_np(pthread_self(), "example") 25393 ; 25394 return 0; 25395} 25396_ACEOF 25397if ac_fn_c_try_link "$LINENO"; then : 25398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25399$as_echo "yes" >&6; } 25400 25401$as_echo "#define HAVE_PTHREAD_SETNAME_NP_WITH_TID 1" >>confdefs.h 25402 25403else 25404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25405$as_echo "no" >&6; } 25406fi 25407rm -f core conftest.err conftest.$ac_objext \ 25408 conftest$ac_exeext conftest.$ac_ext 25409 LIBS="$save_LIBS" 25410fi 25411 25412REQUIRED_MODULES="$FIXESPROTO $DAMAGEPROTO $XCMISCPROTO $XTRANS $BIGREQSPROTO $SDK_REQUIRED_MODULES" 25413 25414LIBSYSTEMD="libsystemd >= 209" 25415 25416# Check whether --with-systemd-daemon was given. 25417if test "${with_systemd_daemon+set}" = set; then : 25418 withval=$with_systemd_daemon; WITH_SYSTEMD_DAEMON=$withval 25419else 25420 WITH_SYSTEMD_DAEMON=auto 25421fi 25422 25423if test "x$WITH_SYSTEMD_DAEMON" = "xyes" -o "x$WITH_SYSTEMD_DAEMON" = "xauto" ; then 25424 25425pkg_failed=no 25426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 25427$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; } 25428 25429if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 25430 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 25431 elif test -n "$PKG_CONFIG"; then 25432 if test -n "$PKG_CONFIG" && \ 25433 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5 25434 ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5 25435 ac_status=$? 25436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25437 test $ac_status = 0; }; then 25438 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "$LIBSYSTEMD" 2>/dev/null` 25439 test "x$?" != "x0" && pkg_failed=yes 25440else 25441 pkg_failed=yes 25442fi 25443 else 25444 pkg_failed=untried 25445fi 25446if test -n "$SYSTEMD_DAEMON_LIBS"; then 25447 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 25448 elif test -n "$PKG_CONFIG"; then 25449 if test -n "$PKG_CONFIG" && \ 25450 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5 25451 ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5 25452 ac_status=$? 25453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25454 test $ac_status = 0; }; then 25455 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "$LIBSYSTEMD" 2>/dev/null` 25456 test "x$?" != "x0" && pkg_failed=yes 25457else 25458 pkg_failed=yes 25459fi 25460 else 25461 pkg_failed=untried 25462fi 25463 25464 25465 25466if test $pkg_failed = yes; then 25467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25468$as_echo "no" >&6; } 25469 25470if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25471 _pkg_short_errors_supported=yes 25472else 25473 _pkg_short_errors_supported=no 25474fi 25475 if test $_pkg_short_errors_supported = yes; then 25476 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1` 25477 else 25478 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1` 25479 fi 25480 # Put the nasty error message in config.log where it belongs 25481 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 25482 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-daemon\""; } >&5 25493 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 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-daemon" 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-daemon\""; } >&5 25510 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 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-daemon" 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-daemon" 2>&1` 25536 else 25537 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 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 HAVE_SYSTEMD_DAEMON=no 25543elif test $pkg_failed = untried; then 25544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25545$as_echo "no" >&6; } 25546 HAVE_SYSTEMD_DAEMON=no 25547else 25548 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 25549 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 25550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25551$as_echo "yes" >&6; } 25552 HAVE_SYSTEMD_DAEMON=yes; 25553 LIBSYSTEMD_DAEMON=libsystemd-daemon 25554fi 25555elif test $pkg_failed = untried; then 25556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25557$as_echo "no" >&6; } 25558 25559pkg_failed=no 25560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 25561$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; } 25562 25563if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 25564 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 25565 elif test -n "$PKG_CONFIG"; then 25566 if test -n "$PKG_CONFIG" && \ 25567 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 25568 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 25569 ac_status=$? 25570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25571 test $ac_status = 0; }; then 25572 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 25573 test "x$?" != "x0" && pkg_failed=yes 25574else 25575 pkg_failed=yes 25576fi 25577 else 25578 pkg_failed=untried 25579fi 25580if test -n "$SYSTEMD_DAEMON_LIBS"; then 25581 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 25582 elif test -n "$PKG_CONFIG"; then 25583 if test -n "$PKG_CONFIG" && \ 25584 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 25585 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 25586 ac_status=$? 25587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25588 test $ac_status = 0; }; then 25589 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 25590 test "x$?" != "x0" && pkg_failed=yes 25591else 25592 pkg_failed=yes 25593fi 25594 else 25595 pkg_failed=untried 25596fi 25597 25598 25599 25600if test $pkg_failed = yes; then 25601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25602$as_echo "no" >&6; } 25603 25604if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25605 _pkg_short_errors_supported=yes 25606else 25607 _pkg_short_errors_supported=no 25608fi 25609 if test $_pkg_short_errors_supported = yes; then 25610 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 25611 else 25612 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 25613 fi 25614 # Put the nasty error message in config.log where it belongs 25615 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 25616 25617 HAVE_SYSTEMD_DAEMON=no 25618elif test $pkg_failed = untried; then 25619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25620$as_echo "no" >&6; } 25621 HAVE_SYSTEMD_DAEMON=no 25622else 25623 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 25624 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 25625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25626$as_echo "yes" >&6; } 25627 HAVE_SYSTEMD_DAEMON=yes; 25628 LIBSYSTEMD_DAEMON=libsystemd-daemon 25629fi 25630else 25631 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 25632 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 25633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25634$as_echo "yes" >&6; } 25635 HAVE_SYSTEMD_DAEMON=yes; 25636 LIBSYSTEMD_DAEMON="$LIBSYSTEMD" 25637fi 25638 if test "x$HAVE_SYSTEMD_DAEMON" = xyes; then 25639 25640$as_echo "#define HAVE_SYSTEMD_DAEMON 1" >>confdefs.h 25641 25642 REQUIRED_LIBS="$REQUIRED_LIBS $LIBSYSTEMD_DAEMON" 25643 elif test "x$WITH_SYSTEMD_DAEMON" = xyes; then 25644 as_fn_error $? "systemd support requested but no library has been found" "$LINENO" 5 25645 fi 25646fi 25647 if test "x$HAVE_SYSTEMD_DAEMON" = "xyes"; then 25648 HAVE_SYSTEMD_DAEMON_TRUE= 25649 HAVE_SYSTEMD_DAEMON_FALSE='#' 25650else 25651 HAVE_SYSTEMD_DAEMON_TRUE='#' 25652 HAVE_SYSTEMD_DAEMON_FALSE= 25653fi 25654 25655 25656if test "x$CONFIG_UDEV" = xyes && test "x$CONFIG_HAL" = xyes; then 25657 as_fn_error $? "Hotplugging through both libudev and hal not allowed" "$LINENO" 5 25658fi 25659 25660 25661pkg_failed=no 25662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 25663$as_echo_n "checking for UDEV... " >&6; } 25664 25665if test -n "$UDEV_CFLAGS"; then 25666 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" 25667 elif test -n "$PKG_CONFIG"; then 25668 if test -n "$PKG_CONFIG" && \ 25669 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5 25670 ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5 25671 ac_status=$? 25672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25673 test $ac_status = 0; }; then 25674 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "$LIBUDEV" 2>/dev/null` 25675 test "x$?" != "x0" && pkg_failed=yes 25676else 25677 pkg_failed=yes 25678fi 25679 else 25680 pkg_failed=untried 25681fi 25682if test -n "$UDEV_LIBS"; then 25683 pkg_cv_UDEV_LIBS="$UDEV_LIBS" 25684 elif test -n "$PKG_CONFIG"; then 25685 if test -n "$PKG_CONFIG" && \ 25686 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5 25687 ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5 25688 ac_status=$? 25689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25690 test $ac_status = 0; }; then 25691 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "$LIBUDEV" 2>/dev/null` 25692 test "x$?" != "x0" && pkg_failed=yes 25693else 25694 pkg_failed=yes 25695fi 25696 else 25697 pkg_failed=untried 25698fi 25699 25700 25701 25702if test $pkg_failed = yes; then 25703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25704$as_echo "no" >&6; } 25705 25706if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25707 _pkg_short_errors_supported=yes 25708else 25709 _pkg_short_errors_supported=no 25710fi 25711 if test $_pkg_short_errors_supported = yes; then 25712 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBUDEV" 2>&1` 25713 else 25714 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBUDEV" 2>&1` 25715 fi 25716 # Put the nasty error message in config.log where it belongs 25717 echo "$UDEV_PKG_ERRORS" >&5 25718 25719 HAVE_LIBUDEV=no 25720elif test $pkg_failed = untried; then 25721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25722$as_echo "no" >&6; } 25723 HAVE_LIBUDEV=no 25724else 25725 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS 25726 UDEV_LIBS=$pkg_cv_UDEV_LIBS 25727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25728$as_echo "yes" >&6; } 25729 HAVE_LIBUDEV=yes 25730fi 25731if test "x$CONFIG_UDEV" = xauto; then 25732 CONFIG_UDEV="$HAVE_LIBUDEV" 25733 25734$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h 25735 25736fi 25737 if test "x$CONFIG_UDEV" = xyes; then 25738 CONFIG_UDEV_TRUE= 25739 CONFIG_UDEV_FALSE='#' 25740else 25741 CONFIG_UDEV_TRUE='#' 25742 CONFIG_UDEV_FALSE= 25743fi 25744 25745if test "x$CONFIG_UDEV" = xyes; then 25746 CONFIG_HAL=no 25747 if test "x$CONFIG_UDEV_KMS" = xauto; then 25748 CONFIG_UDEV_KMS="$HAVE_LIBUDEV" 25749 fi 25750 if ! test "x$HAVE_LIBUDEV" = xyes; then 25751 as_fn_error $? "udev configuration API requested, but libudev is not installed" "$LINENO" 5 25752 fi 25753 25754$as_echo "#define CONFIG_UDEV 1" >>confdefs.h 25755 25756 if test "x$CONFIG_UDEV_KMS" = xyes; then 25757 25758$as_echo "#define CONFIG_UDEV_KMS 1" >>confdefs.h 25759 25760 fi 25761 SAVE_LIBS=$LIBS 25762 SAVE_CFLAGS=$CFLAGS 25763 CFLAGS="$CFLAGS $UDEV_CFLAGS" 25764 LIBS=$UDEV_LIBS 25765 for ac_func in udev_monitor_filter_add_match_tag 25766do : 25767 ac_fn_c_check_func "$LINENO" "udev_monitor_filter_add_match_tag" "ac_cv_func_udev_monitor_filter_add_match_tag" 25768if test "x$ac_cv_func_udev_monitor_filter_add_match_tag" = xyes; then : 25769 cat >>confdefs.h <<_ACEOF 25770#define HAVE_UDEV_MONITOR_FILTER_ADD_MATCH_TAG 1 25771_ACEOF 25772 25773fi 25774done 25775 25776 for ac_func in udev_enumerate_add_match_tag 25777do : 25778 ac_fn_c_check_func "$LINENO" "udev_enumerate_add_match_tag" "ac_cv_func_udev_enumerate_add_match_tag" 25779if test "x$ac_cv_func_udev_enumerate_add_match_tag" = xyes; then : 25780 cat >>confdefs.h <<_ACEOF 25781#define HAVE_UDEV_ENUMERATE_ADD_MATCH_TAG 1 25782_ACEOF 25783 25784fi 25785done 25786 25787 LIBS=$SAVE_LIBS 25788 CFLAGS=$SAVE_CFLAGS 25789fi 25790 if test "x$CONFIG_UDEV_KMS" = xyes; then 25791 CONFIG_UDEV_KMS_TRUE= 25792 CONFIG_UDEV_KMS_FALSE='#' 25793else 25794 CONFIG_UDEV_KMS_TRUE='#' 25795 CONFIG_UDEV_KMS_FALSE= 25796fi 25797 25798 25799 25800pkg_failed=no 25801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5 25802$as_echo_n "checking for DBUS... " >&6; } 25803 25804if test -n "$DBUS_CFLAGS"; then 25805 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS" 25806 elif test -n "$PKG_CONFIG"; then 25807 if test -n "$PKG_CONFIG" && \ 25808 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5 25809 ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5 25810 ac_status=$? 25811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25812 test $ac_status = 0; }; then 25813 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$LIBDBUS" 2>/dev/null` 25814 test "x$?" != "x0" && pkg_failed=yes 25815else 25816 pkg_failed=yes 25817fi 25818 else 25819 pkg_failed=untried 25820fi 25821if test -n "$DBUS_LIBS"; then 25822 pkg_cv_DBUS_LIBS="$DBUS_LIBS" 25823 elif test -n "$PKG_CONFIG"; then 25824 if test -n "$PKG_CONFIG" && \ 25825 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5 25826 ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5 25827 ac_status=$? 25828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25829 test $ac_status = 0; }; then 25830 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$LIBDBUS" 2>/dev/null` 25831 test "x$?" != "x0" && pkg_failed=yes 25832else 25833 pkg_failed=yes 25834fi 25835 else 25836 pkg_failed=untried 25837fi 25838 25839 25840 25841if test $pkg_failed = yes; then 25842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25843$as_echo "no" >&6; } 25844 25845if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25846 _pkg_short_errors_supported=yes 25847else 25848 _pkg_short_errors_supported=no 25849fi 25850 if test $_pkg_short_errors_supported = yes; then 25851 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDBUS" 2>&1` 25852 else 25853 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDBUS" 2>&1` 25854 fi 25855 # Put the nasty error message in config.log where it belongs 25856 echo "$DBUS_PKG_ERRORS" >&5 25857 25858 HAVE_DBUS=no 25859elif test $pkg_failed = untried; then 25860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25861$as_echo "no" >&6; } 25862 HAVE_DBUS=no 25863else 25864 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS 25865 DBUS_LIBS=$pkg_cv_DBUS_LIBS 25866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25867$as_echo "yes" >&6; } 25868 HAVE_DBUS=yes 25869fi 25870if test "x$HAVE_DBUS" = xyes; then 25871 25872$as_echo "#define HAVE_DBUS 1" >>confdefs.h 25873 25874fi 25875 if test "x$HAVE_DBUS" = xyes; then 25876 HAVE_DBUS_TRUE= 25877 HAVE_DBUS_FALSE='#' 25878else 25879 HAVE_DBUS_TRUE='#' 25880 HAVE_DBUS_FALSE= 25881fi 25882 25883 25884 25885pkg_failed=no 25886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HAL" >&5 25887$as_echo_n "checking for HAL... " >&6; } 25888 25889if test -n "$HAL_CFLAGS"; then 25890 pkg_cv_HAL_CFLAGS="$HAL_CFLAGS" 25891 elif test -n "$PKG_CONFIG"; then 25892 if test -n "$PKG_CONFIG" && \ 25893 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5 25894 ($PKG_CONFIG --exists --print-errors "hal") 2>&5 25895 ac_status=$? 25896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25897 test $ac_status = 0; }; then 25898 pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null` 25899 test "x$?" != "x0" && pkg_failed=yes 25900else 25901 pkg_failed=yes 25902fi 25903 else 25904 pkg_failed=untried 25905fi 25906if test -n "$HAL_LIBS"; then 25907 pkg_cv_HAL_LIBS="$HAL_LIBS" 25908 elif test -n "$PKG_CONFIG"; then 25909 if test -n "$PKG_CONFIG" && \ 25910 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5 25911 ($PKG_CONFIG --exists --print-errors "hal") 2>&5 25912 ac_status=$? 25913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25914 test $ac_status = 0; }; then 25915 pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null` 25916 test "x$?" != "x0" && pkg_failed=yes 25917else 25918 pkg_failed=yes 25919fi 25920 else 25921 pkg_failed=untried 25922fi 25923 25924 25925 25926if test $pkg_failed = yes; then 25927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25928$as_echo "no" >&6; } 25929 25930if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25931 _pkg_short_errors_supported=yes 25932else 25933 _pkg_short_errors_supported=no 25934fi 25935 if test $_pkg_short_errors_supported = yes; then 25936 HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hal" 2>&1` 25937 else 25938 HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hal" 2>&1` 25939 fi 25940 # Put the nasty error message in config.log where it belongs 25941 echo "$HAL_PKG_ERRORS" >&5 25942 25943 HAVE_HAL=no 25944elif test $pkg_failed = untried; then 25945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25946$as_echo "no" >&6; } 25947 HAVE_HAL=no 25948else 25949 HAL_CFLAGS=$pkg_cv_HAL_CFLAGS 25950 HAL_LIBS=$pkg_cv_HAL_LIBS 25951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25952$as_echo "yes" >&6; } 25953 HAVE_HAL=yes 25954fi 25955if test "x$CONFIG_HAL" = xauto; then 25956 CONFIG_HAL="$HAVE_HAL" 25957fi 25958if test "x$CONFIG_HAL" = xyes; then 25959 if ! test "x$HAVE_HAL" = xyes; then 25960 as_fn_error $? "HAL hotplug API requested, but HAL is not installed." "$LINENO" 5 25961 fi 25962 25963 25964$as_echo "#define CONFIG_HAL 1" >>confdefs.h 25965 25966 NEED_DBUS="yes" 25967fi 25968 if test "x$CONFIG_HAL" = xyes; then 25969 CONFIG_HAL_TRUE= 25970 CONFIG_HAL_FALSE='#' 25971else 25972 CONFIG_HAL_TRUE='#' 25973 CONFIG_HAL_FALSE= 25974fi 25975 25976 25977if test "x$SYSTEMD_LOGIND" = xauto; then 25978 if test "x$HAVE_DBUS" = xyes -a "x$CONFIG_UDEV" = xyes ; then 25979 SYSTEMD_LOGIND=yes 25980 else 25981 SYSTEMD_LOGIND=no 25982 fi 25983fi 25984if test "x$SYSTEMD_LOGIND" = xyes; then 25985 if ! test "x$HAVE_DBUS" = xyes; then 25986 as_fn_error $? "systemd-logind requested, but D-Bus is not installed." "$LINENO" 5 25987 fi 25988 if ! test "x$CONFIG_UDEV" = xyes ; then 25989 as_fn_error $? "systemd-logind is only supported in combination with udev configuration." "$LINENO" 5 25990 fi 25991 25992 25993$as_echo "#define SYSTEMD_LOGIND 1" >>confdefs.h 25994 25995 NEED_DBUS="yes" 25996fi 25997 if test "x$SYSTEMD_LOGIND" = xyes; then 25998 SYSTEMD_LOGIND_TRUE= 25999 SYSTEMD_LOGIND_FALSE='#' 26000else 26001 SYSTEMD_LOGIND_TRUE='#' 26002 SYSTEMD_LOGIND_FALSE= 26003fi 26004 26005 26006if test "x$SUID_WRAPPER" = xyes; then 26007 26008 prefix_NONE= 26009 exec_prefix_NONE= 26010 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 26011 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 26012 eval ac_define_dir="\"$libexecdir\"" 26013 eval ac_define_dir="\"$ac_define_dir\"" 26014 SUID_WRAPPER_DIR="$ac_define_dir" 26015 26016 26017cat >>confdefs.h <<_ACEOF 26018#define SUID_WRAPPER_DIR "$ac_define_dir" 26019_ACEOF 26020 26021 test "$prefix_NONE" && prefix=NONE 26022 test "$exec_prefix_NONE" && exec_prefix=NONE 26023 26024 SETUID="no" 26025fi 26026 if test "x$SUID_WRAPPER" = xyes; then 26027 SUID_WRAPPER_TRUE= 26028 SUID_WRAPPER_FALSE='#' 26029else 26030 SUID_WRAPPER_TRUE='#' 26031 SUID_WRAPPER_FALSE= 26032fi 26033 26034 26035if test "x$NEED_DBUS" = xyes; then 26036 26037$as_echo "#define NEED_DBUS 1" >>confdefs.h 26038 26039fi 26040 if test "x$NEED_DBUS" = xyes; then 26041 NEED_DBUS_TRUE= 26042 NEED_DBUS_FALSE='#' 26043else 26044 NEED_DBUS_TRUE='#' 26045 NEED_DBUS_FALSE= 26046fi 26047 26048 26049if test "x$CONFIG_WSCONS" = xauto; then 26050 case $host_os in 26051 *openbsd*) 26052 CONFIG_WSCONS=yes; 26053 ;; 26054 *) 26055 CONFIG_WSCONS=no; 26056 ;; 26057 esac 26058fi 26059 if test "x$CONFIG_WSCONS" = xyes; then 26060 CONFIG_WSCONS_TRUE= 26061 CONFIG_WSCONS_FALSE='#' 26062else 26063 CONFIG_WSCONS_TRUE='#' 26064 CONFIG_WSCONS_FALSE= 26065fi 26066 26067if test "x$CONFIG_WSCONS" = xyes; then 26068 26069$as_echo "#define CONFIG_WSCONS 1" >>confdefs.h 26070 26071fi 26072 26073 26074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc..." >&5 26075$as_echo_n "checking for glibc...... " >&6; } 26076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26077/* end confdefs.h. */ 26078 26079#include <features.h> 26080#ifndef __GLIBC__ 26081#error 26082#endif 26083 26084_ACEOF 26085if ac_fn_c_try_cpp "$LINENO"; then : 26086 glibc=yes 26087else 26088 glibc=no 26089fi 26090rm -f conftest.err conftest.i conftest.$ac_ext 26091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc" >&5 26092$as_echo "$glibc" >&6; } 26093 26094for ac_func in clock_gettime 26095do : 26096 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 26097if test "x$ac_cv_func_clock_gettime" = xyes; then : 26098 cat >>confdefs.h <<_ACEOF 26099#define HAVE_CLOCK_GETTIME 1 26100_ACEOF 26101 have_clock_gettime=yes 26102else 26103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 26104$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 26105if ${ac_cv_lib_rt_clock_gettime+:} false; then : 26106 $as_echo_n "(cached) " >&6 26107else 26108 ac_check_lib_save_LIBS=$LIBS 26109LIBS="-lrt $LIBS" 26110cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26111/* end confdefs.h. */ 26112 26113/* Override any GCC internal prototype to avoid an error. 26114 Use char because int might match the return type of a GCC 26115 builtin and then its argument prototype would still apply. */ 26116#ifdef __cplusplus 26117extern "C" 26118#endif 26119char clock_gettime (); 26120int 26121main () 26122{ 26123return clock_gettime (); 26124 ; 26125 return 0; 26126} 26127_ACEOF 26128if ac_fn_c_try_link "$LINENO"; then : 26129 ac_cv_lib_rt_clock_gettime=yes 26130else 26131 ac_cv_lib_rt_clock_gettime=no 26132fi 26133rm -f core conftest.err conftest.$ac_objext \ 26134 conftest$ac_exeext conftest.$ac_ext 26135LIBS=$ac_check_lib_save_LIBS 26136fi 26137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 26138$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 26139if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 26140 have_clock_gettime=-lrt 26141else 26142 have_clock_gettime=no 26143fi 26144 26145fi 26146done 26147 26148 26149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a useful monotonic clock ..." >&5 26150$as_echo_n "checking for a useful monotonic clock ...... " >&6; } 26151 26152if ! test "x$have_clock_gettime" = xno; then 26153 if ! test "x$have_clock_gettime" = xyes; then 26154 CLOCK_LIBS="$have_clock_gettime" 26155 else 26156 CLOCK_LIBS="" 26157 fi 26158 26159 LIBS_SAVE="$LIBS" 26160 LIBS="$CLOCK_LIBS" 26161 CPPFLAGS_SAVE="$CPPFLAGS" 26162 26163 if test x"$glibc" = xyes; then 26164 CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L" 26165 fi 26166 26167 if test "$cross_compiling" = yes; then : 26168 MONOTONIC_CLOCK="cross compiling" 26169else 26170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26171/* end confdefs.h. */ 26172 26173#include <time.h> 26174 26175int main(int argc, char *argv[]) { 26176 struct timespec tp; 26177 26178 if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0) 26179 return 0; 26180 else 26181 return 1; 26182} 26183 26184_ACEOF 26185if ac_fn_c_try_run "$LINENO"; then : 26186 MONOTONIC_CLOCK=yes 26187else 26188 MONOTONIC_CLOCK=no 26189fi 26190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26191 conftest.$ac_objext conftest.beam conftest.$ac_ext 26192fi 26193 26194 26195 if test "$MONOTONIC_CLOCK" = "cross compiling"; then 26196 ac_fn_c_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#include <time.h> 26197" 26198if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes; then : 26199 MONOTONIC_CLOCK="guessing yes" 26200else 26201 MONOTONIC_CLOCK=no 26202fi 26203 26204 fi 26205 26206 LIBS="$LIBS_SAVE" 26207 CPPFLAGS="$CPPFLAGS_SAVE" 26208else 26209 MONOTONIC_CLOCK=no 26210fi 26211 26212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MONOTONIC_CLOCK" >&5 26213$as_echo "$MONOTONIC_CLOCK" >&6; } 26214if test "$MONOTONIC_CLOCK" = "guessing yes"; then 26215 MONOTONIC_CLOCK=yes 26216fi 26217 26218if test "x$MONOTONIC_CLOCK" = xyes; then 26219 26220$as_echo "#define MONOTONIC_CLOCK 1" >>confdefs.h 26221 26222 LIBS="$LIBS $CLOCK_LIBS" 26223fi 26224 26225 if test "x$XV" = xyes; then 26226 XV_TRUE= 26227 XV_FALSE='#' 26228else 26229 XV_TRUE='#' 26230 XV_FALSE= 26231fi 26232 26233if test "x$XV" = xyes; then 26234 26235$as_echo "#define XV 1" >>confdefs.h 26236 26237 26238$as_echo "#define XvExtension 1" >>confdefs.h 26239 26240 REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO" 26241 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $VIDEOPROTO" 26242else 26243 XVMC=no 26244fi 26245 26246 if test "x$XVMC" = xyes; then 26247 XVMC_TRUE= 26248 XVMC_FALSE='#' 26249else 26250 XVMC_TRUE='#' 26251 XVMC_FALSE= 26252fi 26253 26254if test "x$XVMC" = xyes; then 26255 26256$as_echo "#define XvMCExtension 1" >>confdefs.h 26257 26258fi 26259 26260 if test "x$COMPOSITE" = xyes; then 26261 COMPOSITE_TRUE= 26262 COMPOSITE_FALSE='#' 26263else 26264 COMPOSITE_TRUE='#' 26265 COMPOSITE_FALSE= 26266fi 26267 26268if test "x$COMPOSITE" = xyes; then 26269 26270$as_echo "#define COMPOSITE 1" >>confdefs.h 26271 26272 REQUIRED_MODULES="$REQUIRED_MODULES $COMPOSITEPROTO" 26273 COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la' 26274 COMPOSITE_INC='-I$(top_srcdir)/composite' 26275fi 26276 26277if test "x$MITSHM" = xauto; then 26278 MITSHM="$ac_cv_sysv_ipc" 26279fi 26280 if test "x$MITSHM" = xyes; then 26281 MITSHM_TRUE= 26282 MITSHM_FALSE='#' 26283else 26284 MITSHM_TRUE='#' 26285 MITSHM_FALSE= 26286fi 26287 26288if test "x$MITSHM" = xyes; then 26289 26290$as_echo "#define MITSHM 1" >>confdefs.h 26291 26292 26293$as_echo "#define HAS_SHM 1" >>confdefs.h 26294 26295fi 26296 26297 if test "x$RECORD" = xyes; then 26298 RECORD_TRUE= 26299 RECORD_FALSE='#' 26300else 26301 RECORD_TRUE='#' 26302 RECORD_FALSE= 26303fi 26304 26305if test "x$RECORD" = xyes; then 26306 26307$as_echo "#define XRECORD 1" >>confdefs.h 26308 26309 REQUIRED_MODULES="$REQUIRED_MODULES $RECORDPROTO" 26310 RECORD_LIB='$(top_builddir)/record/librecord.la' 26311fi 26312 26313 if test "x$SCREENSAVER" = xyes; then 26314 SCREENSAVER_TRUE= 26315 SCREENSAVER_FALSE='#' 26316else 26317 SCREENSAVER_TRUE='#' 26318 SCREENSAVER_FALSE= 26319fi 26320 26321if test "x$SCREENSAVER" = xyes; then 26322 26323$as_echo "#define SCREENSAVER 1" >>confdefs.h 26324 26325 REQUIRED_MODULES="$REQUIRED_MODULES $SCRNSAVERPROTO" 26326 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $SCRNSAVERPROTO" 26327fi 26328 26329 if test "x$RES" = xyes; then 26330 RES_TRUE= 26331 RES_FALSE='#' 26332else 26333 RES_TRUE='#' 26334 RES_FALSE= 26335fi 26336 26337if test "x$RES" = xyes; then 26338 26339$as_echo "#define RES 1" >>confdefs.h 26340 26341 REQUIRED_MODULES="$REQUIRED_MODULES $RESOURCEPROTO" 26342 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $RESOURCEPROTO" 26343fi 26344 26345if test "x$LISTEN_TCP" = xyes; then 26346 26347$as_echo "#define LISTEN_TCP 1" >>confdefs.h 26348 26349fi 26350if test "x$LISTEN_UNIX" = xyes; then 26351 26352$as_echo "#define LISTEN_UNIX 1" >>confdefs.h 26353 26354fi 26355if test "x$LISTEN_LOCAL" = xyes; then 26356 26357$as_echo "#define LISTEN_LOCAL 1" >>confdefs.h 26358 26359fi 26360 26361# The XRes extension may support client ID tracking only if it has 26362# been specifically enabled. Client ID tracking is implicitly not 26363# supported if XRes extension is disabled. 26364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to track client ids" >&5 26365$as_echo_n "checking whether to track client ids... " >&6; } 26366if test "x$RES" = xyes && test "x$CLIENTIDS" = xyes; then 26367 26368$as_echo "#define CLIENTIDS 1" >>confdefs.h 26369 26370else 26371 CLIENTIDS=no 26372fi 26373if test "x$CLIENTIDS" = xyes; then 26374 case $host_os in 26375 openbsd*) 26376 SYS_LIBS="$SYS_LIBS -lkvm" 26377 ;; 26378 esac 26379fi 26380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLIENTIDS" >&5 26381$as_echo "$CLIENTIDS" >&6; } 26382 if test "x$CLIENTIDS" = xyes; then 26383 CLIENTIDS_TRUE= 26384 CLIENTIDS_FALSE='#' 26385else 26386 CLIENTIDS_TRUE='#' 26387 CLIENTIDS_FALSE= 26388fi 26389 26390 26391 if test "x$DRI" = xyes; then 26392 DRI_TRUE= 26393 DRI_FALSE='#' 26394else 26395 DRI_TRUE='#' 26396 DRI_FALSE= 26397fi 26398 26399if test "x$DRI" = xyes; then 26400 26401$as_echo "#define XF86DRI 1" >>confdefs.h 26402 26403 REQUIRED_MODULES="$REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI" 26404 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI" 26405fi 26406 26407 26408pkg_failed=no 26409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2PROTO" >&5 26410$as_echo_n "checking for DRI2PROTO... " >&6; } 26411 26412if test -n "$DRI2PROTO_CFLAGS"; then 26413 pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS" 26414 elif test -n "$PKG_CONFIG"; then 26415 if test -n "$PKG_CONFIG" && \ 26416 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5 26417 ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5 26418 ac_status=$? 26419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26420 test $ac_status = 0; }; then 26421 pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI2PROTO" 2>/dev/null` 26422 test "x$?" != "x0" && pkg_failed=yes 26423else 26424 pkg_failed=yes 26425fi 26426 else 26427 pkg_failed=untried 26428fi 26429if test -n "$DRI2PROTO_LIBS"; then 26430 pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS" 26431 elif test -n "$PKG_CONFIG"; then 26432 if test -n "$PKG_CONFIG" && \ 26433 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5 26434 ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5 26435 ac_status=$? 26436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26437 test $ac_status = 0; }; then 26438 pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "$DRI2PROTO" 2>/dev/null` 26439 test "x$?" != "x0" && pkg_failed=yes 26440else 26441 pkg_failed=yes 26442fi 26443 else 26444 pkg_failed=untried 26445fi 26446 26447 26448 26449if test $pkg_failed = yes; then 26450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26451$as_echo "no" >&6; } 26452 26453if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26454 _pkg_short_errors_supported=yes 26455else 26456 _pkg_short_errors_supported=no 26457fi 26458 if test $_pkg_short_errors_supported = yes; then 26459 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI2PROTO" 2>&1` 26460 else 26461 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI2PROTO" 2>&1` 26462 fi 26463 # Put the nasty error message in config.log where it belongs 26464 echo "$DRI2PROTO_PKG_ERRORS" >&5 26465 26466 HAVE_DRI2PROTO=no 26467elif test $pkg_failed = untried; then 26468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26469$as_echo "no" >&6; } 26470 HAVE_DRI2PROTO=no 26471else 26472 DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS 26473 DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS 26474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26475$as_echo "yes" >&6; } 26476 HAVE_DRI2PROTO=yes 26477fi 26478case "$DRI2,$HAVE_DRI2PROTO" in 26479 yes,no) 26480 as_fn_error $? "DRI2 requested, but dri2proto not found." "$LINENO" 5 26481 ;; 26482 yes,yes | auto,yes) 26483 26484$as_echo "#define DRI2 1" >>confdefs.h 26485 26486 DRI2=yes 26487 LIBGL="gl >= 1.2" 26488 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI2PROTO" 26489 ;; 26490esac 26491 if test "x$DRI2" = xyes; then 26492 DRI2_TRUE= 26493 DRI2_FALSE='#' 26494else 26495 DRI2_TRUE='#' 26496 DRI2_FALSE= 26497fi 26498 26499 26500# Check whether --enable-xtrans-send-fds was given. 26501if test "${enable_xtrans_send_fds+set}" = set; then : 26502 enableval=$enable_xtrans_send_fds; XTRANS_SEND_FDS=$enableval 26503else 26504 XTRANS_SEND_FDS=auto 26505fi 26506 26507 26508case "x$XTRANS_SEND_FDS" in 26509xauto) 26510 case "$host_os" in 26511 linux*|solaris*|freebsd*|dragonfly*|openbsd*) 26512 XTRANS_SEND_FDS=yes 26513 ;; 26514 *) 26515 XTRANS_SEND_FDS=no 26516 ;; 26517 esac 26518esac 26519 26520case "x$XTRANS_SEND_FDS" in 26521xyes) 26522 26523$as_echo "#define XTRANS_SEND_FDS 1" >>confdefs.h 26524 26525 ;; 26526esac 26527 26528case "$DRI3,$XTRANS_SEND_FDS" in 26529 yes,yes | auto,yes) 26530 ;; 26531 yes,no) 26532 as_fn_error $? "DRI3 requested, but xtrans fd passing support not found." "$LINENO" 5 26533 DRI3=no 26534 ;; 26535 no,*) 26536 ;; 26537 *) 26538 { $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xtrans fd passing support not found." >&5 26539$as_echo "$as_me: DRI3 disabled because xtrans fd passing support not found." >&6;} 26540 DRI3=no 26541 ;; 26542esac 26543 26544 26545pkg_failed=no 26546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI3PROTO" >&5 26547$as_echo_n "checking for DRI3PROTO... " >&6; } 26548 26549if test -n "$DRI3PROTO_CFLAGS"; then 26550 pkg_cv_DRI3PROTO_CFLAGS="$DRI3PROTO_CFLAGS" 26551 elif test -n "$PKG_CONFIG"; then 26552 if test -n "$PKG_CONFIG" && \ 26553 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5 26554 ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5 26555 ac_status=$? 26556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26557 test $ac_status = 0; }; then 26558 pkg_cv_DRI3PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI3PROTO" 2>/dev/null` 26559 test "x$?" != "x0" && pkg_failed=yes 26560else 26561 pkg_failed=yes 26562fi 26563 else 26564 pkg_failed=untried 26565fi 26566if test -n "$DRI3PROTO_LIBS"; then 26567 pkg_cv_DRI3PROTO_LIBS="$DRI3PROTO_LIBS" 26568 elif test -n "$PKG_CONFIG"; then 26569 if test -n "$PKG_CONFIG" && \ 26570 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5 26571 ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5 26572 ac_status=$? 26573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26574 test $ac_status = 0; }; then 26575 pkg_cv_DRI3PROTO_LIBS=`$PKG_CONFIG --libs "$DRI3PROTO" 2>/dev/null` 26576 test "x$?" != "x0" && pkg_failed=yes 26577else 26578 pkg_failed=yes 26579fi 26580 else 26581 pkg_failed=untried 26582fi 26583 26584 26585 26586if test $pkg_failed = yes; then 26587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26588$as_echo "no" >&6; } 26589 26590if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26591 _pkg_short_errors_supported=yes 26592else 26593 _pkg_short_errors_supported=no 26594fi 26595 if test $_pkg_short_errors_supported = yes; then 26596 DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI3PROTO" 2>&1` 26597 else 26598 DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI3PROTO" 2>&1` 26599 fi 26600 # Put the nasty error message in config.log where it belongs 26601 echo "$DRI3PROTO_PKG_ERRORS" >&5 26602 26603 HAVE_DRI3PROTO=no 26604elif test $pkg_failed = untried; then 26605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26606$as_echo "no" >&6; } 26607 HAVE_DRI3PROTO=no 26608else 26609 DRI3PROTO_CFLAGS=$pkg_cv_DRI3PROTO_CFLAGS 26610 DRI3PROTO_LIBS=$pkg_cv_DRI3PROTO_LIBS 26611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26612$as_echo "yes" >&6; } 26613 HAVE_DRI3PROTO=yes 26614fi 26615 26616case "$DRI3,$HAVE_DRI3PROTO" in 26617 yes,yes | auto,yes) 26618 REQUIRED_MODULES="$REQUIRED_MODULES dri3proto" 26619 ;; 26620 yes,no) 26621 as_fn_error $? "DRI3 requested, but dri3proto not found." "$LINENO" 5 26622 DRI3=no 26623 ;; 26624 no,*) 26625 ;; 26626 *) 26627 { $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because dri3proto not found." >&5 26628$as_echo "$as_me: DRI3 disabled because dri3proto not found." >&6;} 26629 DRI3=no 26630 ;; 26631esac 26632 26633for ac_func in sigaction 26634do : 26635 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 26636if test "x$ac_cv_func_sigaction" = xyes; then : 26637 cat >>confdefs.h <<_ACEOF 26638#define HAVE_SIGACTION 1 26639_ACEOF 26640 26641fi 26642done 26643 26644 26645BUSFAULT=no 26646 26647case x"$ac_cv_func_sigaction" in 26648 xyes) 26649 26650$as_echo "#define HAVE_SIGACTION 1" >>confdefs.h 26651 26652 BUSFAULT=yes 26653 ;; 26654esac 26655 26656case x"$BUSFAULT" in 26657 xyes) 26658 26659$as_echo "#define BUSFAULT 1" >>confdefs.h 26660 26661 ;; 26662esac 26663 26664 if test x"$BUSFAULT" = xyes; then 26665 BUSFAULT_TRUE= 26666 BUSFAULT_FALSE='#' 26667else 26668 BUSFAULT_TRUE='#' 26669 BUSFAULT_FALSE= 26670fi 26671 26672 26673 26674 26675pkg_failed=no 26676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSHMFENCE" >&5 26677$as_echo_n "checking for XSHMFENCE... " >&6; } 26678 26679if test -n "$XSHMFENCE_CFLAGS"; then 26680 pkg_cv_XSHMFENCE_CFLAGS="$XSHMFENCE_CFLAGS" 26681 elif test -n "$PKG_CONFIG"; then 26682 if test -n "$PKG_CONFIG" && \ 26683 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5 26684 ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5 26685 ac_status=$? 26686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26687 test $ac_status = 0; }; then 26688 pkg_cv_XSHMFENCE_CFLAGS=`$PKG_CONFIG --cflags "$LIBXSHMFENCE" 2>/dev/null` 26689 test "x$?" != "x0" && pkg_failed=yes 26690else 26691 pkg_failed=yes 26692fi 26693 else 26694 pkg_failed=untried 26695fi 26696if test -n "$XSHMFENCE_LIBS"; then 26697 pkg_cv_XSHMFENCE_LIBS="$XSHMFENCE_LIBS" 26698 elif test -n "$PKG_CONFIG"; then 26699 if test -n "$PKG_CONFIG" && \ 26700 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5 26701 ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5 26702 ac_status=$? 26703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26704 test $ac_status = 0; }; then 26705 pkg_cv_XSHMFENCE_LIBS=`$PKG_CONFIG --libs "$LIBXSHMFENCE" 2>/dev/null` 26706 test "x$?" != "x0" && pkg_failed=yes 26707else 26708 pkg_failed=yes 26709fi 26710 else 26711 pkg_failed=untried 26712fi 26713 26714 26715 26716if test $pkg_failed = yes; then 26717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26718$as_echo "no" >&6; } 26719 26720if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26721 _pkg_short_errors_supported=yes 26722else 26723 _pkg_short_errors_supported=no 26724fi 26725 if test $_pkg_short_errors_supported = yes; then 26726 XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1` 26727 else 26728 XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1` 26729 fi 26730 # Put the nasty error message in config.log where it belongs 26731 echo "$XSHMFENCE_PKG_ERRORS" >&5 26732 26733 HAVE_XSHMFENCE=no 26734elif test $pkg_failed = untried; then 26735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26736$as_echo "no" >&6; } 26737 HAVE_XSHMFENCE=no 26738else 26739 XSHMFENCE_CFLAGS=$pkg_cv_XSHMFENCE_CFLAGS 26740 XSHMFENCE_LIBS=$pkg_cv_XSHMFENCE_LIBS 26741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26742$as_echo "yes" >&6; } 26743 HAVE_XSHMFENCE=yes 26744fi 26745if test "x$XSHMFENCE" = "xauto"; then 26746 XSHMFENCE="$HAVE_XSHMFENCE" 26747fi 26748 26749if test "x$XSHMFENCE" = "xyes"; then 26750 if test "x$HAVE_XSHMFENCE" != "xyes"; then 26751 as_fn_error $? "xshmfence requested but not installed." "$LINENO" 5 26752 fi 26753 26754$as_echo "#define HAVE_XSHMFENCE 1" >>confdefs.h 26755 26756 REQUIRED_LIBS="$REQUIRED_LIBS $LIBXSHMFENCE" 26757fi 26758 26759 if test "x$XSHMFENCE" = xyes; then 26760 XSHMFENCE_TRUE= 26761 XSHMFENCE_FALSE='#' 26762else 26763 XSHMFENCE_TRUE='#' 26764 XSHMFENCE_FALSE= 26765fi 26766 26767 26768case "$DRI3,$XSHMFENCE" in 26769 yes,yes | auto,yes) 26770 ;; 26771 yes,no) 26772 as_fn_error $? "DRI3 requested, but xshmfence not found." "$LINENO" 5 26773 DRI3=no 26774 ;; 26775 no,*) 26776 ;; 26777 *) 26778 { $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xshmfence not found." >&5 26779$as_echo "$as_me: DRI3 disabled because xshmfence not found." >&6;} 26780 DRI3=no 26781 ;; 26782esac 26783 26784case x"$DRI3" in 26785 xyes|xauto) 26786 DRI3=yes 26787 26788$as_echo "#define DRI3 1" >>confdefs.h 26789 26790 DRI3_LIB='$(top_builddir)/dri3/libdri3.la' 26791 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI3PROTO" 26792 { $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 enabled" >&5 26793$as_echo "$as_me: DRI3 enabled" >&6;}; 26794 ;; 26795esac 26796 26797 if test "x$DRI3" = xyes; then 26798 DRI3_TRUE= 26799 DRI3_FALSE='#' 26800else 26801 DRI3_TRUE='#' 26802 DRI3_FALSE= 26803fi 26804 26805 26806if test "x$DRI" = xyes || test "x$DRI2" = xyes || test "x$DRI3" = xyes || test "x$CONFIG_UDEV_KMS" = xyes || test "x$XORG" = xyes; then 26807 if test "x$DRM" = xyes; then 26808 26809$as_echo "#define WITH_LIBDRM 1" >>confdefs.h 26810 26811 26812pkg_failed=no 26813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5 26814$as_echo_n "checking for LIBDRM... " >&6; } 26815 26816if test -n "$LIBDRM_CFLAGS"; then 26817 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" 26818 elif test -n "$PKG_CONFIG"; then 26819 if test -n "$PKG_CONFIG" && \ 26820 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5 26821 ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5 26822 ac_status=$? 26823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26824 test $ac_status = 0; }; then 26825 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "$LIBDRM" 2>/dev/null` 26826 test "x$?" != "x0" && pkg_failed=yes 26827else 26828 pkg_failed=yes 26829fi 26830 else 26831 pkg_failed=untried 26832fi 26833if test -n "$LIBDRM_LIBS"; then 26834 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" 26835 elif test -n "$PKG_CONFIG"; then 26836 if test -n "$PKG_CONFIG" && \ 26837 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5 26838 ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5 26839 ac_status=$? 26840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26841 test $ac_status = 0; }; then 26842 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "$LIBDRM" 2>/dev/null` 26843 test "x$?" != "x0" && pkg_failed=yes 26844else 26845 pkg_failed=yes 26846fi 26847 else 26848 pkg_failed=untried 26849fi 26850 26851 26852 26853if test $pkg_failed = yes; then 26854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26855$as_echo "no" >&6; } 26856 26857if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26858 _pkg_short_errors_supported=yes 26859else 26860 _pkg_short_errors_supported=no 26861fi 26862 if test $_pkg_short_errors_supported = yes; then 26863 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDRM" 2>&1` 26864 else 26865 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDRM" 2>&1` 26866 fi 26867 # Put the nasty error message in config.log where it belongs 26868 echo "$LIBDRM_PKG_ERRORS" >&5 26869 26870 as_fn_error $? "Package requirements ($LIBDRM) were not met: 26871 26872$LIBDRM_PKG_ERRORS 26873 26874Consider adjusting the PKG_CONFIG_PATH environment variable if you 26875installed software in a non-standard prefix. 26876 26877Alternatively, you may set the environment variables LIBDRM_CFLAGS 26878and LIBDRM_LIBS to avoid the need to call pkg-config. 26879See the pkg-config man page for more details." "$LINENO" 5 26880elif test $pkg_failed = untried; then 26881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26882$as_echo "no" >&6; } 26883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26885as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 26886is in your PATH or set the PKG_CONFIG environment variable to the full 26887path to pkg-config. 26888 26889Alternatively, you may set the environment variables LIBDRM_CFLAGS 26890and LIBDRM_LIBS to avoid the need to call pkg-config. 26891See the pkg-config man page for more details. 26892 26893To get pkg-config, see <http://pkg-config.freedesktop.org/>. 26894See \`config.log' for more details" "$LINENO" 5; } 26895else 26896 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS 26897 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS 26898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26899$as_echo "yes" >&6; } 26900 26901fi 26902 fi 26903fi 26904 26905if test "x$GLX" = xyes; then 26906 26907pkg_failed=no 26908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5 26909$as_echo_n "checking for XLIB... " >&6; } 26910 26911if test -n "$XLIB_CFLAGS"; then 26912 pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS" 26913 elif test -n "$PKG_CONFIG"; then 26914 if test -n "$PKG_CONFIG" && \ 26915 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 26916 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 26917 ac_status=$? 26918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26919 test $ac_status = 0; }; then 26920 pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 26921 test "x$?" != "x0" && pkg_failed=yes 26922else 26923 pkg_failed=yes 26924fi 26925 else 26926 pkg_failed=untried 26927fi 26928if test -n "$XLIB_LIBS"; then 26929 pkg_cv_XLIB_LIBS="$XLIB_LIBS" 26930 elif test -n "$PKG_CONFIG"; then 26931 if test -n "$PKG_CONFIG" && \ 26932 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 26933 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 26934 ac_status=$? 26935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26936 test $ac_status = 0; }; then 26937 pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 26938 test "x$?" != "x0" && pkg_failed=yes 26939else 26940 pkg_failed=yes 26941fi 26942 else 26943 pkg_failed=untried 26944fi 26945 26946 26947 26948if test $pkg_failed = yes; then 26949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26950$as_echo "no" >&6; } 26951 26952if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26953 _pkg_short_errors_supported=yes 26954else 26955 _pkg_short_errors_supported=no 26956fi 26957 if test $_pkg_short_errors_supported = yes; then 26958 XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 26959 else 26960 XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 26961 fi 26962 # Put the nasty error message in config.log where it belongs 26963 echo "$XLIB_PKG_ERRORS" >&5 26964 26965 as_fn_error $? "Package requirements (x11) were not met: 26966 26967$XLIB_PKG_ERRORS 26968 26969Consider adjusting the PKG_CONFIG_PATH environment variable if you 26970installed software in a non-standard prefix. 26971 26972Alternatively, you may set the environment variables XLIB_CFLAGS 26973and XLIB_LIBS to avoid the need to call pkg-config. 26974See the pkg-config man page for more details." "$LINENO" 5 26975elif test $pkg_failed = untried; then 26976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26977$as_echo "no" >&6; } 26978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26980as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 26981is in your PATH or set the PKG_CONFIG environment variable to the full 26982path to pkg-config. 26983 26984Alternatively, you may set the environment variables XLIB_CFLAGS 26985and XLIB_LIBS to avoid the need to call pkg-config. 26986See the pkg-config man page for more details. 26987 26988To get pkg-config, see <http://pkg-config.freedesktop.org/>. 26989See \`config.log' for more details" "$LINENO" 5; } 26990else 26991 XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS 26992 XLIB_LIBS=$pkg_cv_XLIB_LIBS 26993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26994$as_echo "yes" >&6; } 26995 26996fi 26997 26998pkg_failed=no 26999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5 27000$as_echo_n "checking for GL... " >&6; } 27001 27002if test -n "$GL_CFLAGS"; then 27003 pkg_cv_GL_CFLAGS="$GL_CFLAGS" 27004 elif test -n "$PKG_CONFIG"; then 27005 if test -n "$PKG_CONFIG" && \ 27006 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5 27007 ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5 27008 ac_status=$? 27009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27010 test $ac_status = 0; }; then 27011 pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBGL" 2>/dev/null` 27012 test "x$?" != "x0" && pkg_failed=yes 27013else 27014 pkg_failed=yes 27015fi 27016 else 27017 pkg_failed=untried 27018fi 27019if test -n "$GL_LIBS"; then 27020 pkg_cv_GL_LIBS="$GL_LIBS" 27021 elif test -n "$PKG_CONFIG"; then 27022 if test -n "$PKG_CONFIG" && \ 27023 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5 27024 ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5 27025 ac_status=$? 27026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27027 test $ac_status = 0; }; then 27028 pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBGL" 2>/dev/null` 27029 test "x$?" != "x0" && pkg_failed=yes 27030else 27031 pkg_failed=yes 27032fi 27033 else 27034 pkg_failed=untried 27035fi 27036 27037 27038 27039if test $pkg_failed = yes; then 27040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27041$as_echo "no" >&6; } 27042 27043if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27044 _pkg_short_errors_supported=yes 27045else 27046 _pkg_short_errors_supported=no 27047fi 27048 if test $_pkg_short_errors_supported = yes; then 27049 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1` 27050 else 27051 GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1` 27052 fi 27053 # Put the nasty error message in config.log where it belongs 27054 echo "$GL_PKG_ERRORS" >&5 27055 27056 as_fn_error $? "Package requirements ($GLPROTO $LIBGL) were not met: 27057 27058$GL_PKG_ERRORS 27059 27060Consider adjusting the PKG_CONFIG_PATH environment variable if you 27061installed software in a non-standard prefix. 27062 27063Alternatively, you may set the environment variables GL_CFLAGS 27064and GL_LIBS to avoid the need to call pkg-config. 27065See the pkg-config man page for more details." "$LINENO" 5 27066elif test $pkg_failed = untried; then 27067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27068$as_echo "no" >&6; } 27069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27071as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 27072is in your PATH or set the PKG_CONFIG environment variable to the full 27073path to pkg-config. 27074 27075Alternatively, you may set the environment variables GL_CFLAGS 27076and GL_LIBS to avoid the need to call pkg-config. 27077See the pkg-config man page for more details. 27078 27079To get pkg-config, see <http://pkg-config.freedesktop.org/>. 27080See \`config.log' for more details" "$LINENO" 5; } 27081else 27082 GL_CFLAGS=$pkg_cv_GL_CFLAGS 27083 GL_LIBS=$pkg_cv_GL_LIBS 27084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27085$as_echo "yes" >&6; } 27086 27087fi 27088 27089 27090$as_echo "#define GLXEXT 1" >>confdefs.h 27091 27092 GLX_LIBS='$(top_builddir)/glx/libglx.la $(top_builddir)/glx/libglxvnd.la' 27093 GLX_SYS_LIBS="$GLX_SYS_LIBS $GL_LIBS" 27094else 27095 GLX=no 27096fi 27097 if test "x$GLX" = xyes; then 27098 GLX_TRUE= 27099 GLX_FALSE='#' 27100else 27101 GLX_TRUE='#' 27102 GLX_FALSE= 27103fi 27104 27105 27106 27107 27108 27109 if test "x$PRESENT" = xyes; then 27110 PRESENT_TRUE= 27111 PRESENT_FALSE='#' 27112else 27113 PRESENT_TRUE='#' 27114 PRESENT_FALSE= 27115fi 27116 27117if test "x$PRESENT" = xyes; then 27118 27119$as_echo "#define PRESENT 1" >>confdefs.h 27120 27121 REQUIRED_MODULES="$REQUIRED_MODULES $PRESENTPROTO" 27122 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $PRESENTPROTO" 27123 PRESENT_INC='-I$(top_srcdir)/present' 27124 PRESENT_LIB='$(top_builddir)/present/libpresent.la' 27125fi 27126 27127 if test "x$XINERAMA" = xyes; then 27128 XINERAMA_TRUE= 27129 XINERAMA_FALSE='#' 27130else 27131 XINERAMA_TRUE='#' 27132 XINERAMA_FALSE= 27133fi 27134 27135if test "x$XINERAMA" = xyes; then 27136 27137$as_echo "#define XINERAMA 1" >>confdefs.h 27138 27139 27140$as_echo "#define PANORAMIX 1" >>confdefs.h 27141 27142 REQUIRED_MODULES="$REQUIRED_MODULES $XINERAMAPROTO" 27143 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO" 27144fi 27145 27146 if test "x$XACE" = xyes; then 27147 XACE_TRUE= 27148 XACE_FALSE='#' 27149else 27150 XACE_TRUE='#' 27151 XACE_FALSE= 27152fi 27153 27154if test "x$XACE" = xyes; then 27155 27156$as_echo "#define XACE 1" >>confdefs.h 27157 27158fi 27159 27160 if test "x$XSELINUX" = xyes; then 27161 XSELINUX_TRUE= 27162 XSELINUX_FALSE='#' 27163else 27164 XSELINUX_TRUE='#' 27165 XSELINUX_FALSE= 27166fi 27167 27168if test "x$XSELINUX" = xyes; then 27169 if test "x$XACE" != xyes; then 27170 as_fn_error $? "cannot build SELinux extension without X-ACE" "$LINENO" 5 27171 fi 27172 for ac_header in libaudit.h 27173do : 27174 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" 27175if test "x$ac_cv_header_libaudit_h" = xyes; then : 27176 cat >>confdefs.h <<_ACEOF 27177#define HAVE_LIBAUDIT_H 1 27178_ACEOF 27179 27180else 27181 as_fn_error $? "SELinux extension requires audit system headers" "$LINENO" 5 27182fi 27183 27184done 27185 27186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_open in -laudit" >&5 27187$as_echo_n "checking for audit_open in -laudit... " >&6; } 27188if ${ac_cv_lib_audit_audit_open+:} false; then : 27189 $as_echo_n "(cached) " >&6 27190else 27191 ac_check_lib_save_LIBS=$LIBS 27192LIBS="-laudit $LIBS" 27193cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27194/* end confdefs.h. */ 27195 27196/* Override any GCC internal prototype to avoid an error. 27197 Use char because int might match the return type of a GCC 27198 builtin and then its argument prototype would still apply. */ 27199#ifdef __cplusplus 27200extern "C" 27201#endif 27202char audit_open (); 27203int 27204main () 27205{ 27206return audit_open (); 27207 ; 27208 return 0; 27209} 27210_ACEOF 27211if ac_fn_c_try_link "$LINENO"; then : 27212 ac_cv_lib_audit_audit_open=yes 27213else 27214 ac_cv_lib_audit_audit_open=no 27215fi 27216rm -f core conftest.err conftest.$ac_objext \ 27217 conftest$ac_exeext conftest.$ac_ext 27218LIBS=$ac_check_lib_save_LIBS 27219fi 27220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_open" >&5 27221$as_echo "$ac_cv_lib_audit_audit_open" >&6; } 27222if test "x$ac_cv_lib_audit_audit_open" = xyes; then : 27223 cat >>confdefs.h <<_ACEOF 27224#define HAVE_LIBAUDIT 1 27225_ACEOF 27226 27227 LIBS="-laudit $LIBS" 27228 27229else 27230 as_fn_error $? "SELinux extension requires audit system library" "$LINENO" 5 27231fi 27232 27233 27234pkg_failed=no 27235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELINUX" >&5 27236$as_echo_n "checking for SELINUX... " >&6; } 27237 27238if test -n "$SELINUX_CFLAGS"; then 27239 pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS" 27240 elif test -n "$PKG_CONFIG"; then 27241 if test -n "$PKG_CONFIG" && \ 27242 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5 27243 ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5 27244 ac_status=$? 27245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27246 test $ac_status = 0; }; then 27247 pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "$LIBSELINUX" 2>/dev/null` 27248 test "x$?" != "x0" && pkg_failed=yes 27249else 27250 pkg_failed=yes 27251fi 27252 else 27253 pkg_failed=untried 27254fi 27255if test -n "$SELINUX_LIBS"; then 27256 pkg_cv_SELINUX_LIBS="$SELINUX_LIBS" 27257 elif test -n "$PKG_CONFIG"; then 27258 if test -n "$PKG_CONFIG" && \ 27259 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5 27260 ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5 27261 ac_status=$? 27262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27263 test $ac_status = 0; }; then 27264 pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "$LIBSELINUX" 2>/dev/null` 27265 test "x$?" != "x0" && pkg_failed=yes 27266else 27267 pkg_failed=yes 27268fi 27269 else 27270 pkg_failed=untried 27271fi 27272 27273 27274 27275if test $pkg_failed = yes; then 27276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27277$as_echo "no" >&6; } 27278 27279if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27280 _pkg_short_errors_supported=yes 27281else 27282 _pkg_short_errors_supported=no 27283fi 27284 if test $_pkg_short_errors_supported = yes; then 27285 SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSELINUX" 2>&1` 27286 else 27287 SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSELINUX" 2>&1` 27288 fi 27289 # Put the nasty error message in config.log where it belongs 27290 echo "$SELINUX_PKG_ERRORS" >&5 27291 27292 as_fn_error $? "Package requirements ($LIBSELINUX) were not met: 27293 27294$SELINUX_PKG_ERRORS 27295 27296Consider adjusting the PKG_CONFIG_PATH environment variable if you 27297installed software in a non-standard prefix. 27298 27299Alternatively, you may set the environment variables SELINUX_CFLAGS 27300and SELINUX_LIBS to avoid the need to call pkg-config. 27301See the pkg-config man page for more details." "$LINENO" 5 27302elif test $pkg_failed = untried; then 27303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27304$as_echo "no" >&6; } 27305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27307as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 27308is in your PATH or set the PKG_CONFIG environment variable to the full 27309path to pkg-config. 27310 27311Alternatively, you may set the environment variables SELINUX_CFLAGS 27312and SELINUX_LIBS to avoid the need to call pkg-config. 27313See the pkg-config man page for more details. 27314 27315To get pkg-config, see <http://pkg-config.freedesktop.org/>. 27316See \`config.log' for more details" "$LINENO" 5; } 27317else 27318 SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS 27319 SELINUX_LIBS=$pkg_cv_SELINUX_LIBS 27320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27321$as_echo "yes" >&6; } 27322 27323fi 27324 SELINUX_LIBS="$SELINUX_LIBS -laudit" 27325 27326$as_echo "#define XSELINUX 1" >>confdefs.h 27327 27328fi 27329 27330 if test "x$XCSECURITY" = xyes; then 27331 XCSECURITY_TRUE= 27332 XCSECURITY_FALSE='#' 27333else 27334 XCSECURITY_TRUE='#' 27335 XCSECURITY_FALSE= 27336fi 27337 27338if test "x$XCSECURITY" = xyes; then 27339 if test "x$XACE" != xyes; then 27340 as_fn_error $? "cannot build Security extension without X-ACE" "$LINENO" 5 27341 fi 27342 27343$as_echo "#define XCSECURITY 1" >>confdefs.h 27344 27345fi 27346 27347 if test "x$DBE" = xyes; then 27348 DBE_TRUE= 27349 DBE_FALSE='#' 27350else 27351 DBE_TRUE='#' 27352 DBE_FALSE= 27353fi 27354 27355if test "x$DBE" = xyes; then 27356 27357$as_echo "#define DBE 1" >>confdefs.h 27358 27359 DBE_LIB='$(top_builddir)/dbe/libdbe.la' 27360 DBE_INC='-I$(top_srcdir)/dbe' 27361fi 27362 27363 if test "x$XF86BIGFONT" = xyes; then 27364 XF86BIGFONT_TRUE= 27365 XF86BIGFONT_FALSE='#' 27366else 27367 XF86BIGFONT_TRUE='#' 27368 XF86BIGFONT_FALSE= 27369fi 27370 27371if test "x$XF86BIGFONT" = xyes; then 27372 27373$as_echo "#define XF86BIGFONT 1" >>confdefs.h 27374 27375 REQUIRED_MODULES="$REQUIRED_MODULES $BIGFONTPROTO" 27376 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $BIGFONTPROTO" 27377fi 27378 27379 if test "x$DPMSExtension" = xyes; then 27380 DPMSExtension_TRUE= 27381 DPMSExtension_FALSE='#' 27382else 27383 DPMSExtension_TRUE='#' 27384 DPMSExtension_FALSE= 27385fi 27386 27387if test "x$DPMSExtension" = xyes; then 27388 27389$as_echo "#define DPMSExtension 1" >>confdefs.h 27390 27391fi 27392 27393 27394$as_echo "#define RENDER 1" >>confdefs.h 27395 27396RENDER_LIB='$(top_builddir)/render/librender.la' 27397RENDER_INC='-I$(top_srcdir)/render' 27398 27399 27400$as_echo "#define RANDR 1" >>confdefs.h 27401 27402RANDR_LIB='$(top_builddir)/randr/librandr.la' 27403RANDR_INC='-I$(top_srcdir)/randr' 27404 27405 27406$as_echo "#define XFIXES 1" >>confdefs.h 27407 27408FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la' 27409FIXES_INC='-I$(top_srcdir)/xfixes' 27410 27411 27412$as_echo "#define DAMAGE 1" >>confdefs.h 27413 27414DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la' 27415DAMAGE_INC='-I$(top_srcdir)/damageext' 27416MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la' 27417MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage' 27418 27419# XINPUT extension is integral part of the server 27420 27421$as_echo "#define XINPUT 1" >>confdefs.h 27422 27423XI_LIB='$(top_builddir)/Xi/libXi.la' 27424XI_INC='-I$(top_srcdir)/Xi' 27425 27426 if test "x$XF86UTILS" = xyes; then 27427 XF86UTILS_TRUE= 27428 XF86UTILS_FALSE='#' 27429else 27430 XF86UTILS_TRUE='#' 27431 XF86UTILS_FALSE= 27432fi 27433 27434 if test "x$VGAHW" = xyes; then 27435 VGAHW_TRUE= 27436 VGAHW_FALSE='#' 27437else 27438 VGAHW_TRUE='#' 27439 VGAHW_FALSE= 27440fi 27441 27442 if test "x$VBE" = xyes; then 27443 VBE_TRUE= 27444 VBE_FALSE='#' 27445else 27446 VBE_TRUE='#' 27447 VBE_FALSE= 27448fi 27449 27450 if test "x$INT10MODULE" = xyes; then 27451 INT10MODULE_TRUE= 27452 INT10MODULE_FALSE='#' 27453else 27454 INT10MODULE_TRUE='#' 27455 INT10MODULE_FALSE= 27456fi 27457 27458 27459 27460$as_echo "#define SHAPE 1" >>confdefs.h 27461 27462 27463if test "x$XKBPATH" = "xauto"; then 27464 XKBPATH=$(pkg-config --variable datadir xkbcomp || echo ${datadir})/X11/xkb 27465fi 27466 27467 27468 prefix_NONE= 27469 exec_prefix_NONE= 27470 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27471 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27472 eval ac_define_dir="\"$XKBPATH\"" 27473 eval ac_define_dir="\"$ac_define_dir\"" 27474 XKB_BASE_DIRECTORY="$ac_define_dir" 27475 27476 27477cat >>confdefs.h <<_ACEOF 27478#define XKB_BASE_DIRECTORY "$ac_define_dir" 27479_ACEOF 27480 27481 test "$prefix_NONE" && prefix=NONE 27482 test "$exec_prefix_NONE" && exec_prefix=NONE 27483 27484 27485# Check whether --with-xkb-bin-directory was given. 27486if test "${with_xkb_bin_directory+set}" = set; then : 27487 withval=$with_xkb_bin_directory; XKB_BIN_DIRECTORY="$withval" 27488else 27489 XKB_BIN_DIRECTORY="auto" 27490fi 27491 27492 27493if test "x$XKB_BIN_DIRECTORY" = "xauto"; then 27494 XKB_BIN_DIRECTORY=$(pkg-config --variable bindir xkbcomp || echo ${bindir}) 27495fi 27496 27497 27498 prefix_NONE= 27499 exec_prefix_NONE= 27500 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27501 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27502 eval ac_define_dir="\"$XKB_BIN_DIRECTORY\"" 27503 eval ac_define_dir="\"$ac_define_dir\"" 27504 XKB_BIN_DIRECTORY="$ac_define_dir" 27505 27506 27507cat >>confdefs.h <<_ACEOF 27508#define XKB_BIN_DIRECTORY "$ac_define_dir" 27509_ACEOF 27510 27511 test "$prefix_NONE" && prefix=NONE 27512 test "$exec_prefix_NONE" && exec_prefix=NONE 27513 27514 27515XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1` 27516if [ x$XKBOUTPUT_FIRSTCHAR != x/ -a x$XKBOUTPUT_FIRSTCHAR != 'x$' ] ; then 27517 XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT" 27518fi 27519 27520 27521XKBOUTPUT=`echo $XKBOUTPUT/ | $SED 's|/*$|/|'` 27522XKB_COMPILED_DIR=`echo $XKBOUTPUT | $SED 's|/*$||'` 27523 27524 prefix_NONE= 27525 exec_prefix_NONE= 27526 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27527 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27528 eval ac_define_dir="\"$XKBOUTPUT\"" 27529 eval ac_define_dir="\"$ac_define_dir\"" 27530 XKM_OUTPUT_DIR="$ac_define_dir" 27531 27532 27533cat >>confdefs.h <<_ACEOF 27534#define XKM_OUTPUT_DIR "$ac_define_dir" 27535_ACEOF 27536 27537 test "$prefix_NONE" && prefix=NONE 27538 test "$exec_prefix_NONE" && exec_prefix=NONE 27539 27540 27541 27542if test "x$XKB_DFLT_RULES" = x; then 27543 case $host_os in 27544 linux*) 27545 XKB_DFLT_RULES="evdev" 27546 ;; 27547 *) 27548 XKB_DFLT_RULES="base" 27549 ;; 27550 esac 27551fi 27552 27553cat >>confdefs.h <<_ACEOF 27554#define XKB_DFLT_RULES "$XKB_DFLT_RULES" 27555_ACEOF 27556 27557 27558cat >>confdefs.h <<_ACEOF 27559#define XKB_DFLT_MODEL "$XKB_DFLT_MODEL" 27560_ACEOF 27561 27562 27563cat >>confdefs.h <<_ACEOF 27564#define XKB_DFLT_LAYOUT "$XKB_DFLT_LAYOUT" 27565_ACEOF 27566 27567 27568cat >>confdefs.h <<_ACEOF 27569#define XKB_DFLT_VARIANT "$XKB_DFLT_VARIANT" 27570_ACEOF 27571 27572 27573cat >>confdefs.h <<_ACEOF 27574#define XKB_DFLT_OPTIONS "$XKB_DFLT_OPTIONS" 27575_ACEOF 27576 27577 27578 27579 27580 27581 27582 27583XKB_LIB='$(top_builddir)/xkb/libxkb.la' 27584XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la' 27585REQUIRED_MODULES="$REQUIRED_MODULES xkbfile" 27586 27587 27588pkg_failed=no 27589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5 27590$as_echo_n "checking for XDMCP... " >&6; } 27591 27592if test -n "$XDMCP_CFLAGS"; then 27593 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS" 27594 elif test -n "$PKG_CONFIG"; then 27595 if test -n "$PKG_CONFIG" && \ 27596 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 27597 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 27598 ac_status=$? 27599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27600 test $ac_status = 0; }; then 27601 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` 27602 test "x$?" != "x0" && pkg_failed=yes 27603else 27604 pkg_failed=yes 27605fi 27606 else 27607 pkg_failed=untried 27608fi 27609if test -n "$XDMCP_LIBS"; then 27610 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS" 27611 elif test -n "$PKG_CONFIG"; then 27612 if test -n "$PKG_CONFIG" && \ 27613 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 27614 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 27615 ac_status=$? 27616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27617 test $ac_status = 0; }; then 27618 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` 27619 test "x$?" != "x0" && pkg_failed=yes 27620else 27621 pkg_failed=yes 27622fi 27623 else 27624 pkg_failed=untried 27625fi 27626 27627 27628 27629if test $pkg_failed = yes; then 27630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27631$as_echo "no" >&6; } 27632 27633if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27634 _pkg_short_errors_supported=yes 27635else 27636 _pkg_short_errors_supported=no 27637fi 27638 if test $_pkg_short_errors_supported = yes; then 27639 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1` 27640 else 27641 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1` 27642 fi 27643 # Put the nasty error message in config.log where it belongs 27644 echo "$XDMCP_PKG_ERRORS" >&5 27645 27646 have_libxdmcp="no" 27647elif test $pkg_failed = untried; then 27648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27649$as_echo "no" >&6; } 27650 have_libxdmcp="no" 27651else 27652 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS 27653 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS 27654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27655$as_echo "yes" >&6; } 27656 have_libxdmcp="yes" 27657fi 27658if test "x$XDMCP" = xauto; then 27659 if test "x$have_libxdmcp" = xyes; then 27660 XDMCP=yes 27661 else 27662 XDMCP=no 27663 fi 27664fi 27665if test "x$XDMAUTH" = xauto; then 27666 if test "x$have_libxdmcp" = xyes; then 27667 XDMAUTH=yes 27668 else 27669 XDMAUTH=no 27670 fi 27671fi 27672 27673 if test "x$XDMCP" = xyes; then 27674 XDMCP_TRUE= 27675 XDMCP_FALSE='#' 27676else 27677 XDMCP_TRUE='#' 27678 XDMCP_FALSE= 27679fi 27680 27681if test "x$XDMCP" = xyes; then 27682 27683$as_echo "#define XDMCP 1" >>confdefs.h 27684 27685 REQUIRED_LIBS="$REQUIRED_LIBS xdmcp" 27686 XDMCP_MODULES="xdmcp" 27687fi 27688 27689 if test "x$XDMAUTH" = xyes; then 27690 XDMAUTH_TRUE= 27691 XDMAUTH_FALSE='#' 27692else 27693 XDMAUTH_TRUE='#' 27694 XDMAUTH_FALSE= 27695fi 27696 27697if test "x$XDMAUTH" = xyes; then 27698 27699$as_echo "#define HASXDMAUTH 1" >>confdefs.h 27700 27701 if ! test "x$XDMCP" = xyes; then 27702 REQUIRED_LIBS="$REQUIRED_LIBS xdmcp" 27703 XDMCP_MODULES="xdmcp" 27704 fi 27705fi 27706 27707if test "x$XF86VIDMODE" = xauto; then 27708 if test -n "$PKG_CONFIG" && \ 27709 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5 27710 ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5 27711 ac_status=$? 27712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27713 test $ac_status = 0; }; then 27714 XF86VIDMODE=yes 27715else 27716 XF86VIDMODE=no 27717fi 27718fi 27719if test "x$XF86VIDMODE" = xyes; then 27720 27721$as_echo "#define XF86VIDMODE 1" >>confdefs.h 27722 27723fi 27724 if test "x$XF86VIDMODE" = xyes; then 27725 XF86VIDMODE_TRUE= 27726 XF86VIDMODE_FALSE='#' 27727else 27728 XF86VIDMODE_TRUE='#' 27729 XF86VIDMODE_FALSE= 27730fi 27731 27732 27733 27734 prefix_NONE= 27735 exec_prefix_NONE= 27736 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27737 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27738 eval ac_define_dir="\"$FONTPATH\"" 27739 eval ac_define_dir="\"$ac_define_dir\"" 27740 COMPILEDDEFAULTFONTPATH="$ac_define_dir" 27741 27742 27743cat >>confdefs.h <<_ACEOF 27744#define COMPILEDDEFAULTFONTPATH "$ac_define_dir" 27745_ACEOF 27746 27747 test "$prefix_NONE" && prefix=NONE 27748 test "$exec_prefix_NONE" && exec_prefix=NONE 27749 27750 27751 prefix_NONE= 27752 exec_prefix_NONE= 27753 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27754 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27755 eval ac_define_dir="\"$SERVERCONFIG\"" 27756 eval ac_define_dir="\"$ac_define_dir\"" 27757 SERVER_MISC_CONFIG_PATH="$ac_define_dir" 27758 27759 27760cat >>confdefs.h <<_ACEOF 27761#define SERVER_MISC_CONFIG_PATH "$ac_define_dir" 27762_ACEOF 27763 27764 test "$prefix_NONE" && prefix=NONE 27765 test "$exec_prefix_NONE" && exec_prefix=NONE 27766 27767 27768 prefix_NONE= 27769 exec_prefix_NONE= 27770 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27771 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27772 eval ac_define_dir="\"$FONTROOTDIR\"" 27773 eval ac_define_dir="\"$ac_define_dir\"" 27774 BASE_FONT_PATH="$ac_define_dir" 27775 27776 27777cat >>confdefs.h <<_ACEOF 27778#define BASE_FONT_PATH "$ac_define_dir" 27779_ACEOF 27780 27781 test "$prefix_NONE" && prefix=NONE 27782 test "$exec_prefix_NONE" && exec_prefix=NONE 27783 27784dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri` 27785 27786 prefix_NONE= 27787 exec_prefix_NONE= 27788 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27789 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27790 eval ac_define_dir="\"$dridriverdir\"" 27791 eval ac_define_dir="\"$ac_define_dir\"" 27792 DRI_DRIVER_PATH="$ac_define_dir" 27793 27794 27795cat >>confdefs.h <<_ACEOF 27796#define DRI_DRIVER_PATH "$ac_define_dir" 27797_ACEOF 27798 27799 test "$prefix_NONE" && prefix=NONE 27800 test "$exec_prefix_NONE" && exec_prefix=NONE 27801 27802 27803cat >>confdefs.h <<_ACEOF 27804#define XVENDORNAME "$VENDOR_NAME" 27805_ACEOF 27806 27807 27808cat >>confdefs.h <<_ACEOF 27809#define XVENDORNAMESHORT "$VENDOR_NAME_SHORT" 27810_ACEOF 27811 27812 27813cat >>confdefs.h <<_ACEOF 27814#define XORG_MAN_VERSION "$VENDOR_MAN_VERSION" 27815_ACEOF 27816 27817 27818cat >>confdefs.h <<_ACEOF 27819#define BUILDERADDR "$BUILDERADDR" 27820_ACEOF 27821 27822 27823if test -z "$OSNAME"; then 27824 OSNAME="UNKNOWN" 27825fi 27826 27827 27828cat >>confdefs.h <<_ACEOF 27829#define OSNAME "$OSNAME" 27830_ACEOF 27831 27832 27833cat >>confdefs.h <<_ACEOF 27834#define OSVENDOR "$OSVENDOR" 27835_ACEOF 27836 27837 27838cat >>confdefs.h <<_ACEOF 27839#define BUILDERSTRING "$BUILDERSTRING" 27840_ACEOF 27841 27842 27843 27844 27845cat >>confdefs.h <<_ACEOF 27846#define VENDOR_NAME "$VENDOR_NAME" 27847_ACEOF 27848 27849 27850cat >>confdefs.h <<_ACEOF 27851#define VENDOR_NAME_SHORT "$VENDOR_NAME_SHORT" 27852_ACEOF 27853 27854 27855cat >>confdefs.h <<_ACEOF 27856#define VENDOR_RELEASE $VENDOR_RELEASE 27857_ACEOF 27858 27859 27860cat >>confdefs.h <<_ACEOF 27861#define VENDOR_MAN_VERSION "$VENDOR_MAN_VERSION" 27862_ACEOF 27863 27864 27865if test "x$DEBUGGING" = xyes; then 27866 27867$as_echo "#define DEBUG 1" >>confdefs.h 27868 27869fi 27870 if test "x$DEBUGGING" = xyes; then 27871 DEBUG_TRUE= 27872 DEBUG_FALSE='#' 27873else 27874 DEBUG_TRUE='#' 27875 DEBUG_FALSE= 27876fi 27877 27878 27879 27880$as_echo "#define XTEST 1" >>confdefs.h 27881 27882 27883$as_echo "#define XSYNC 1" >>confdefs.h 27884 27885 27886$as_echo "#define XCMISC 1" >>confdefs.h 27887 27888 27889$as_echo "#define BIGREQS 1" >>confdefs.h 27890 27891 27892if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then 27893 DIX_LIB='$(top_builddir)/dix/dix.O' 27894 OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS) $(LIBUNWIND_LIBS)' 27895else 27896 DIX_LIB='$(top_builddir)/dix/libdix.la' 27897 OS_LIB='$(top_builddir)/os/libos.la' 27898fi 27899 27900 27901 27902MAIN_LIB='$(top_builddir)/dix/libmain.la' 27903 27904 27905MI_LIB='$(top_builddir)/mi/libmi.la' 27906MI_EXT_LIB='$(top_builddir)/mi/libmiext.la' 27907MI_INC='-I$(top_srcdir)/mi' 27908FB_LIB='$(top_builddir)/fb/libfb.la' 27909FB_INC='-I$(top_srcdir)/fb' 27910MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow' 27911MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la' 27912MIEXT_SYNC_INC='-I$(top_srcdir)/miext/sync' 27913MIEXT_SYNC_LIB='$(top_builddir)/miext/sync/libsync.la' 27914CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include' 27915 27916# SHA1 hashing 27917 27918# Check whether --with-sha1 was given. 27919if test "${with_sha1+set}" = set; then : 27920 withval=$with_sha1; 27921fi 27922 27923ac_fn_c_check_func "$LINENO" "SHA1Init" "ac_cv_func_SHA1Init" 27924if test "x$ac_cv_func_SHA1Init" = xyes; then : 27925 HAVE_SHA1_IN_LIBC=yes 27926fi 27927 27928if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then 27929 with_sha1=libc 27930fi 27931if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then 27932 as_fn_error $? "libc requested but not found" "$LINENO" 5 27933fi 27934if test "x$with_sha1" = xlibc; then 27935 27936$as_echo "#define HAVE_SHA1_IN_LIBC 1" >>confdefs.h 27937 27938 SHA1_LIBS="" 27939fi 27940ac_fn_c_check_func "$LINENO" "CC_SHA1_Init" "ac_cv_func_CC_SHA1_Init" 27941if test "x$ac_cv_func_CC_SHA1_Init" = xyes; then : 27942 HAVE_SHA1_IN_COMMONCRYPTO=yes 27943fi 27944 27945if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then 27946 with_sha1=CommonCrypto 27947fi 27948if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then 27949 as_fn_error $? "CommonCrypto requested but not found" "$LINENO" 5 27950fi 27951if test "x$with_sha1" = xCommonCrypto; then 27952 27953$as_echo "#define HAVE_SHA1_IN_COMMONCRYPTO 1" >>confdefs.h 27954 27955 SHA1_LIBS="" 27956fi 27957ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#include <windows.h> 27958" 27959if test "x$ac_cv_header_wincrypt_h" = xyes; then : 27960 HAVE_SHA1_IN_CRYPTOAPI=yes 27961fi 27962 27963 27964if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_CRYPTOAPI" = xyes; then 27965 with_sha1=CryptoAPI 27966fi 27967if test "x$with_sha1" = xCryptoAPI && test "x$HAVE_SHA1_IN_CRYPTOAPI" != xyes; then 27968 as_fn_error $? "CryptoAPI requested but not found" "$LINENO" 5 27969fi 27970if test "x$with_sha1" = xCryptoAPI; then 27971 27972$as_echo "#define HAVE_SHA1_IN_CRYPTOAPI 1" >>confdefs.h 27973 27974 SHA1_LIBS="" 27975fi 27976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1Init in -lmd" >&5 27977$as_echo_n "checking for SHA1Init in -lmd... " >&6; } 27978if ${ac_cv_lib_md_SHA1Init+:} false; then : 27979 $as_echo_n "(cached) " >&6 27980else 27981 ac_check_lib_save_LIBS=$LIBS 27982LIBS="-lmd $LIBS" 27983cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27984/* end confdefs.h. */ 27985 27986/* Override any GCC internal prototype to avoid an error. 27987 Use char because int might match the return type of a GCC 27988 builtin and then its argument prototype would still apply. */ 27989#ifdef __cplusplus 27990extern "C" 27991#endif 27992char SHA1Init (); 27993int 27994main () 27995{ 27996return SHA1Init (); 27997 ; 27998 return 0; 27999} 28000_ACEOF 28001if ac_fn_c_try_link "$LINENO"; then : 28002 ac_cv_lib_md_SHA1Init=yes 28003else 28004 ac_cv_lib_md_SHA1Init=no 28005fi 28006rm -f core conftest.err conftest.$ac_objext \ 28007 conftest$ac_exeext conftest.$ac_ext 28008LIBS=$ac_check_lib_save_LIBS 28009fi 28010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA1Init" >&5 28011$as_echo "$ac_cv_lib_md_SHA1Init" >&6; } 28012if test "x$ac_cv_lib_md_SHA1Init" = xyes; then : 28013 HAVE_LIBMD=yes 28014fi 28015 28016if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then 28017 with_sha1=libmd 28018fi 28019if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then 28020 as_fn_error $? "libmd requested but not found" "$LINENO" 5 28021fi 28022if test "x$with_sha1" = xlibmd; then 28023 28024$as_echo "#define HAVE_SHA1_IN_LIBMD 1" >>confdefs.h 28025 28026 SHA1_LIBS=-lmd 28027fi 28028 28029pkg_failed=no 28030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSHA1" >&5 28031$as_echo_n "checking for LIBSHA1... " >&6; } 28032 28033if test -n "$LIBSHA1_CFLAGS"; then 28034 pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS" 28035 elif test -n "$PKG_CONFIG"; then 28036 if test -n "$PKG_CONFIG" && \ 28037 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5 28038 ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5 28039 ac_status=$? 28040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28041 test $ac_status = 0; }; then 28042 pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null` 28043 test "x$?" != "x0" && pkg_failed=yes 28044else 28045 pkg_failed=yes 28046fi 28047 else 28048 pkg_failed=untried 28049fi 28050if test -n "$LIBSHA1_LIBS"; then 28051 pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS" 28052 elif test -n "$PKG_CONFIG"; then 28053 if test -n "$PKG_CONFIG" && \ 28054 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5 28055 ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5 28056 ac_status=$? 28057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28058 test $ac_status = 0; }; then 28059 pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null` 28060 test "x$?" != "x0" && pkg_failed=yes 28061else 28062 pkg_failed=yes 28063fi 28064 else 28065 pkg_failed=untried 28066fi 28067 28068 28069 28070if test $pkg_failed = yes; then 28071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28072$as_echo "no" >&6; } 28073 28074if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28075 _pkg_short_errors_supported=yes 28076else 28077 _pkg_short_errors_supported=no 28078fi 28079 if test $_pkg_short_errors_supported = yes; then 28080 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsha1" 2>&1` 28081 else 28082 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsha1" 2>&1` 28083 fi 28084 # Put the nasty error message in config.log where it belongs 28085 echo "$LIBSHA1_PKG_ERRORS" >&5 28086 28087 HAVE_LIBSHA1=no 28088elif test $pkg_failed = untried; then 28089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28090$as_echo "no" >&6; } 28091 HAVE_LIBSHA1=no 28092else 28093 LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS 28094 LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS 28095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28096$as_echo "yes" >&6; } 28097 HAVE_LIBSHA1=yes 28098fi 28099if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then 28100 with_sha1=libsha1 28101fi 28102if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then 28103 as_fn_error $? "libsha1 requested but not found" "$LINENO" 5 28104fi 28105if test "x$with_sha1" = xlibsha1; then 28106 28107$as_echo "#define HAVE_SHA1_IN_LIBSHA1 1" >>confdefs.h 28108 28109 SHA1_LIBS=-lsha1 28110fi 28111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_sha1_init in -lnettle" >&5 28112$as_echo_n "checking for nettle_sha1_init in -lnettle... " >&6; } 28113if ${ac_cv_lib_nettle_nettle_sha1_init+:} false; then : 28114 $as_echo_n "(cached) " >&6 28115else 28116 ac_check_lib_save_LIBS=$LIBS 28117LIBS="-lnettle $LIBS" 28118cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28119/* end confdefs.h. */ 28120 28121/* Override any GCC internal prototype to avoid an error. 28122 Use char because int might match the return type of a GCC 28123 builtin and then its argument prototype would still apply. */ 28124#ifdef __cplusplus 28125extern "C" 28126#endif 28127char nettle_sha1_init (); 28128int 28129main () 28130{ 28131return nettle_sha1_init (); 28132 ; 28133 return 0; 28134} 28135_ACEOF 28136if ac_fn_c_try_link "$LINENO"; then : 28137 ac_cv_lib_nettle_nettle_sha1_init=yes 28138else 28139 ac_cv_lib_nettle_nettle_sha1_init=no 28140fi 28141rm -f core conftest.err conftest.$ac_objext \ 28142 conftest$ac_exeext conftest.$ac_ext 28143LIBS=$ac_check_lib_save_LIBS 28144fi 28145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha1_init" >&5 28146$as_echo "$ac_cv_lib_nettle_nettle_sha1_init" >&6; } 28147if test "x$ac_cv_lib_nettle_nettle_sha1_init" = xyes; then : 28148 HAVE_LIBNETTLE=yes 28149fi 28150 28151if test "x$with_sha1" = x && test "x$HAVE_LIBNETTLE" = xyes; then 28152 with_sha1=libnettle 28153fi 28154if test "x$with_sha1" = xlibnettle && test "x$HAVE_LIBNETTLE" != xyes; then 28155 as_fn_error $? "libnettle requested but not found" "$LINENO" 5 28156fi 28157if test "x$with_sha1" = xlibnettle; then 28158 28159$as_echo "#define HAVE_SHA1_IN_LIBNETTLE 1" >>confdefs.h 28160 28161 SHA1_LIBS=-lnettle 28162fi 28163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5 28164$as_echo_n "checking for gcry_md_open in -lgcrypt... " >&6; } 28165if ${ac_cv_lib_gcrypt_gcry_md_open+:} false; then : 28166 $as_echo_n "(cached) " >&6 28167else 28168 ac_check_lib_save_LIBS=$LIBS 28169LIBS="-lgcrypt $LIBS" 28170cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28171/* end confdefs.h. */ 28172 28173/* Override any GCC internal prototype to avoid an error. 28174 Use char because int might match the return type of a GCC 28175 builtin and then its argument prototype would still apply. */ 28176#ifdef __cplusplus 28177extern "C" 28178#endif 28179char gcry_md_open (); 28180int 28181main () 28182{ 28183return gcry_md_open (); 28184 ; 28185 return 0; 28186} 28187_ACEOF 28188if ac_fn_c_try_link "$LINENO"; then : 28189 ac_cv_lib_gcrypt_gcry_md_open=yes 28190else 28191 ac_cv_lib_gcrypt_gcry_md_open=no 28192fi 28193rm -f core conftest.err conftest.$ac_objext \ 28194 conftest$ac_exeext conftest.$ac_ext 28195LIBS=$ac_check_lib_save_LIBS 28196fi 28197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5 28198$as_echo "$ac_cv_lib_gcrypt_gcry_md_open" >&6; } 28199if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes; then : 28200 HAVE_LIBGCRYPT=yes 28201fi 28202 28203if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then 28204 with_sha1=libgcrypt 28205fi 28206if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then 28207 as_fn_error $? "libgcrypt requested but not found" "$LINENO" 5 28208fi 28209if test "x$with_sha1" = xlibgcrypt; then 28210 28211$as_echo "#define HAVE_SHA1_IN_LIBGCRYPT 1" >>confdefs.h 28212 28213 SHA1_LIBS=-lgcrypt 28214fi 28215# We don't need all of the OpenSSL libraries, just libcrypto 28216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5 28217$as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; } 28218if ${ac_cv_lib_crypto_SHA1_Init+:} false; then : 28219 $as_echo_n "(cached) " >&6 28220else 28221 ac_check_lib_save_LIBS=$LIBS 28222LIBS="-lcrypto $LIBS" 28223cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28224/* end confdefs.h. */ 28225 28226/* Override any GCC internal prototype to avoid an error. 28227 Use char because int might match the return type of a GCC 28228 builtin and then its argument prototype would still apply. */ 28229#ifdef __cplusplus 28230extern "C" 28231#endif 28232char SHA1_Init (); 28233int 28234main () 28235{ 28236return SHA1_Init (); 28237 ; 28238 return 0; 28239} 28240_ACEOF 28241if ac_fn_c_try_link "$LINENO"; then : 28242 ac_cv_lib_crypto_SHA1_Init=yes 28243else 28244 ac_cv_lib_crypto_SHA1_Init=no 28245fi 28246rm -f core conftest.err conftest.$ac_objext \ 28247 conftest$ac_exeext conftest.$ac_ext 28248LIBS=$ac_check_lib_save_LIBS 28249fi 28250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5 28251$as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; } 28252if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then : 28253 HAVE_LIBCRYPTO=yes 28254fi 28255 28256 28257pkg_failed=no 28258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5 28259$as_echo_n "checking for OPENSSL... " >&6; } 28260 28261if test -n "$OPENSSL_CFLAGS"; then 28262 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" 28263 elif test -n "$PKG_CONFIG"; then 28264 if test -n "$PKG_CONFIG" && \ 28265 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 28266 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 28267 ac_status=$? 28268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28269 test $ac_status = 0; }; then 28270 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` 28271 test "x$?" != "x0" && pkg_failed=yes 28272else 28273 pkg_failed=yes 28274fi 28275 else 28276 pkg_failed=untried 28277fi 28278if test -n "$OPENSSL_LIBS"; then 28279 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" 28280 elif test -n "$PKG_CONFIG"; then 28281 if test -n "$PKG_CONFIG" && \ 28282 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 28283 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 28284 ac_status=$? 28285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28286 test $ac_status = 0; }; then 28287 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` 28288 test "x$?" != "x0" && pkg_failed=yes 28289else 28290 pkg_failed=yes 28291fi 28292 else 28293 pkg_failed=untried 28294fi 28295 28296 28297 28298if test $pkg_failed = yes; then 28299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28300$as_echo "no" >&6; } 28301 28302if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28303 _pkg_short_errors_supported=yes 28304else 28305 _pkg_short_errors_supported=no 28306fi 28307 if test $_pkg_short_errors_supported = yes; then 28308 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1` 28309 else 28310 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1` 28311 fi 28312 # Put the nasty error message in config.log where it belongs 28313 echo "$OPENSSL_PKG_ERRORS" >&5 28314 28315 HAVE_OPENSSL_PKC=no 28316elif test $pkg_failed = untried; then 28317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28318$as_echo "no" >&6; } 28319 HAVE_OPENSSL_PKC=no 28320else 28321 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS 28322 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS 28323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28324$as_echo "yes" >&6; } 28325 HAVE_OPENSSL_PKC=yes 28326fi 28327if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then 28328 if test "x$with_sha1" = x; then 28329 with_sha1=libcrypto 28330 fi 28331else 28332 if test "x$with_sha1" = xlibcrypto; then 28333 as_fn_error $? "OpenSSL libcrypto requested but not found" "$LINENO" 5 28334 fi 28335fi 28336if test "x$with_sha1" = xlibcrypto; then 28337 if test "x$HAVE_LIBCRYPTO" = xyes; then 28338 SHA1_LIBS=-lcrypto 28339 else 28340 SHA1_LIBS="$OPENSSL_LIBS" 28341 SHA1_CFLAGS="$OPENSSL_CFLAGS" 28342 fi 28343fi 28344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 implementation" >&5 28345$as_echo_n "checking for SHA1 implementation... " >&6; } 28346if test "x$with_sha1" = x; then 28347 as_fn_error $? "No suitable SHA1 implementation found" "$LINENO" 5 28348fi 28349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sha1" >&5 28350$as_echo "$with_sha1" >&6; } 28351 28352 28353 28354 28355pkg_failed=no 28356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERCFLAGS" >&5 28357$as_echo_n "checking for XSERVERCFLAGS... " >&6; } 28358 28359if test -n "$XSERVERCFLAGS_CFLAGS"; then 28360 pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS" 28361 elif test -n "$PKG_CONFIG"; then 28362 if test -n "$PKG_CONFIG" && \ 28363 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5 28364 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5 28365 ac_status=$? 28366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28367 test $ac_status = 0; }; then 28368 pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null` 28369 test "x$?" != "x0" && pkg_failed=yes 28370else 28371 pkg_failed=yes 28372fi 28373 else 28374 pkg_failed=untried 28375fi 28376if test -n "$XSERVERCFLAGS_LIBS"; then 28377 pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS" 28378 elif test -n "$PKG_CONFIG"; then 28379 if test -n "$PKG_CONFIG" && \ 28380 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5 28381 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5 28382 ac_status=$? 28383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28384 test $ac_status = 0; }; then 28385 pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null` 28386 test "x$?" != "x0" && pkg_failed=yes 28387else 28388 pkg_failed=yes 28389fi 28390 else 28391 pkg_failed=untried 28392fi 28393 28394 28395 28396if test $pkg_failed = yes; then 28397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28398$as_echo "no" >&6; } 28399 28400if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28401 _pkg_short_errors_supported=yes 28402else 28403 _pkg_short_errors_supported=no 28404fi 28405 if test $_pkg_short_errors_supported = yes; then 28406 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1` 28407 else 28408 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1` 28409 fi 28410 # Put the nasty error message in config.log where it belongs 28411 echo "$XSERVERCFLAGS_PKG_ERRORS" >&5 28412 28413 as_fn_error $? "Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met: 28414 28415$XSERVERCFLAGS_PKG_ERRORS 28416 28417Consider adjusting the PKG_CONFIG_PATH environment variable if you 28418installed software in a non-standard prefix. 28419 28420Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS 28421and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config. 28422See the pkg-config man page for more details." "$LINENO" 5 28423elif test $pkg_failed = untried; then 28424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28425$as_echo "no" >&6; } 28426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28427$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28428as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 28429is in your PATH or set the PKG_CONFIG environment variable to the full 28430path to pkg-config. 28431 28432Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS 28433and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config. 28434See the pkg-config man page for more details. 28435 28436To get pkg-config, see <http://pkg-config.freedesktop.org/>. 28437See \`config.log' for more details" "$LINENO" 5; } 28438else 28439 XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS 28440 XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS 28441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28442$as_echo "yes" >&6; } 28443 28444fi 28445 28446pkg_failed=no 28447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERLIBS" >&5 28448$as_echo_n "checking for XSERVERLIBS... " >&6; } 28449 28450if test -n "$XSERVERLIBS_CFLAGS"; then 28451 pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS" 28452 elif test -n "$PKG_CONFIG"; then 28453 if test -n "$PKG_CONFIG" && \ 28454 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5 28455 ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5 28456 ac_status=$? 28457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28458 test $ac_status = 0; }; then 28459 pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null` 28460 test "x$?" != "x0" && pkg_failed=yes 28461else 28462 pkg_failed=yes 28463fi 28464 else 28465 pkg_failed=untried 28466fi 28467if test -n "$XSERVERLIBS_LIBS"; then 28468 pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS" 28469 elif test -n "$PKG_CONFIG"; then 28470 if test -n "$PKG_CONFIG" && \ 28471 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5 28472 ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5 28473 ac_status=$? 28474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28475 test $ac_status = 0; }; then 28476 pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null` 28477 test "x$?" != "x0" && pkg_failed=yes 28478else 28479 pkg_failed=yes 28480fi 28481 else 28482 pkg_failed=untried 28483fi 28484 28485 28486 28487if test $pkg_failed = yes; then 28488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28489$as_echo "no" >&6; } 28490 28491if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28492 _pkg_short_errors_supported=yes 28493else 28494 _pkg_short_errors_supported=no 28495fi 28496 if test $_pkg_short_errors_supported = yes; then 28497 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1` 28498 else 28499 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1` 28500 fi 28501 # Put the nasty error message in config.log where it belongs 28502 echo "$XSERVERLIBS_PKG_ERRORS" >&5 28503 28504 as_fn_error $? "Package requirements ($REQUIRED_LIBS) were not met: 28505 28506$XSERVERLIBS_PKG_ERRORS 28507 28508Consider adjusting the PKG_CONFIG_PATH environment variable if you 28509installed software in a non-standard prefix. 28510 28511Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS 28512and XSERVERLIBS_LIBS to avoid the need to call pkg-config. 28513See the pkg-config man page for more details." "$LINENO" 5 28514elif test $pkg_failed = untried; then 28515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28516$as_echo "no" >&6; } 28517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28519as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 28520is in your PATH or set the PKG_CONFIG environment variable to the full 28521path to pkg-config. 28522 28523Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS 28524and XSERVERLIBS_LIBS to avoid the need to call pkg-config. 28525See the pkg-config man page for more details. 28526 28527To get pkg-config, see <http://pkg-config.freedesktop.org/>. 28528See \`config.log' for more details" "$LINENO" 5; } 28529else 28530 XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS 28531 XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS 28532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28533$as_echo "yes" >&6; } 28534 28535fi 28536 28537 28538pkg_failed=no 28539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUNWIND" >&5 28540$as_echo_n "checking for LIBUNWIND... " >&6; } 28541 28542if test -n "$LIBUNWIND_CFLAGS"; then 28543 pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS" 28544 elif test -n "$PKG_CONFIG"; then 28545 if test -n "$PKG_CONFIG" && \ 28546 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5 28547 ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5 28548 ac_status=$? 28549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28550 test $ac_status = 0; }; then 28551 pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null` 28552 test "x$?" != "x0" && pkg_failed=yes 28553else 28554 pkg_failed=yes 28555fi 28556 else 28557 pkg_failed=untried 28558fi 28559if test -n "$LIBUNWIND_LIBS"; then 28560 pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS" 28561 elif test -n "$PKG_CONFIG"; then 28562 if test -n "$PKG_CONFIG" && \ 28563 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5 28564 ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5 28565 ac_status=$? 28566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28567 test $ac_status = 0; }; then 28568 pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null` 28569 test "x$?" != "x0" && pkg_failed=yes 28570else 28571 pkg_failed=yes 28572fi 28573 else 28574 pkg_failed=untried 28575fi 28576 28577 28578 28579if test $pkg_failed = yes; then 28580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28581$as_echo "no" >&6; } 28582 28583if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28584 _pkg_short_errors_supported=yes 28585else 28586 _pkg_short_errors_supported=no 28587fi 28588 if test $_pkg_short_errors_supported = yes; then 28589 LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libunwind" 2>&1` 28590 else 28591 LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libunwind" 2>&1` 28592 fi 28593 # Put the nasty error message in config.log where it belongs 28594 echo "$LIBUNWIND_PKG_ERRORS" >&5 28595 28596 HAVE_LIBUNWIND=no 28597elif test $pkg_failed = untried; then 28598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28599$as_echo "no" >&6; } 28600 HAVE_LIBUNWIND=no 28601else 28602 LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS 28603 LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS 28604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28605$as_echo "yes" >&6; } 28606 HAVE_LIBUNWIND=yes 28607fi 28608if test "x$LIBUNWIND" = "xauto"; then 28609 LIBUNWIND="$HAVE_LIBUNWIND" 28610fi 28611 28612if test "x$LIBUNWIND" = "xyes"; then 28613 if test "x$HAVE_LIBUNWIND" != "xyes"; then 28614 as_fn_error $? "libunwind requested but not installed." "$LINENO" 5 28615 fi 28616 28617$as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h 28618 28619fi 28620 28621 if test "x$LIBUNWIND" = xyes; then 28622 HAVE_LIBUNWIND_TRUE= 28623 HAVE_LIBUNWIND_FALSE='#' 28624else 28625 HAVE_LIBUNWIND_TRUE='#' 28626 HAVE_LIBUNWIND_FALSE= 28627fi 28628 28629 28630# Autotools has some unfortunate issues with library handling. In order to 28631# get a server to rebuild when a dependency in the tree is changed, it must 28632# be listed in SERVERNAME_DEPENDENCIES. However, no system libraries may be 28633# listed there, or some versions of autotools will break (especially if a -L 28634# is required to find the library). So, we keep two sets of libraries 28635# detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which 28636# will go into the _DEPENDENCIES and _LDADD of the server, and 28637# NAMESPACE_SYS_LIBS which will go into only the _LDADD. The 28638# NAMESPACEMODULES_LIBS detected from pkgconfig should always go in 28639# NAMESPACE_SYS_LIBS. 28640# 28641# XSERVER_LIBS is the set of in-tree libraries which all servers require. 28642# XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers 28643# require. 28644# 28645XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}" 28646XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB" 28647XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}" 28648 28649 28650 28651UTILS_SYS_LIBS="${SYS_LIBS}" 28652 28653 28654# The Xorg binary needs to export symbols so that they can be used from modules 28655# Some platforms require extra flags to do this. libtool should set the 28656# necessary flags for each platform when -export-dynamic is passed to it. 28657LD_EXPORT_SYMBOLS_FLAG="-export-dynamic" 28658LD_NO_UNDEFINED_FLAG= 28659XORG_DRIVER_LIBS= 28660case "$host_os" in 28661 cygwin*) 28662 LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-all,--out-implib,lib\$@.a" 28663 LD_NO_UNDEFINED_FLAG="-no-undefined -Wl,\$(top_builddir)/hw/xfree86/libXorg.exe.a" 28664 XORG_DRIVER_LIBS="-lXorg.exe -L\${moduledir} -lshadow -lfb -no-undefined" 28665 CYGWIN=yes 28666 ;; 28667 solaris*) 28668 # We use AC_LINK_IFELSE to generate a temporary program conftest$EXEEXT 28669 # that we can link against for testing if the system linker is new 28670 # enough to support -z parent=<program> for verifying loadable modules 28671 # are only calling functions defined in either the loading program or 28672 # the libraries they're linked with. 28673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28674/* end confdefs.h. */ 28675int main(int argc, char **argv) { return 0; } 28676_ACEOF 28677if ac_fn_c_try_link "$LINENO"; then : 28678 mv conftest$EXEEXT conftest.parent 28679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,parent=conftest.parent -G" >&5 28680$as_echo_n "checking whether the linker accepts -Wl,-z,parent=conftest.parent -G... " >&6; } 28681if ${xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G+:} false; then : 28682 $as_echo_n "(cached) " >&6 28683else 28684 28685 ax_save_FLAGS=$LDFLAGS 28686 LDFLAGS="-Wl,-z,parent=conftest.parent -G" 28687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28688/* end confdefs.h. */ 28689extern int main(int argc, char **argv); 28690 int call_main(void) { return main(0, (void *)0); } 28691_ACEOF 28692if ac_fn_c_try_link "$LINENO"; then : 28693 xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=yes 28694else 28695 xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=no 28696fi 28697rm -f core conftest.err conftest.$ac_objext \ 28698 conftest$ac_exeext conftest.$ac_ext 28699 LDFLAGS=$ax_save_FLAGS 28700fi 28701 28702eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G 28703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5 28704$as_echo "$xorg_check_linker_flags" >&6; } 28705if test "x$xorg_check_linker_flags" = xyes; then 28706 LD_NO_UNDEFINED_FLAG="-Wl,-z,defs -Wl,-z,parent=\$(top_builddir)/hw/xfree86/Xorg" 28707# Not set yet, since this gets exported in xorg-server.pc to all the drivers, 28708# and they're not all fixed to build correctly with it yet. 28709# XORG_DRIVER_LIBS="-Wl,-z,defs -Wl,-z,parent=${bindir}/Xorg" 28710 28711else 28712 : 28713fi 28714 28715 rm -f conftest.parent 28716 28717fi 28718rm -f core conftest.err conftest.$ac_objext \ 28719 conftest$ac_exeext conftest.$ac_ext 28720 ;; 28721esac 28722 28723 28724 28725 if test x"$CYGWIN" = xyes; then 28726 CYGWIN_TRUE= 28727 CYGWIN_FALSE='#' 28728else 28729 CYGWIN_TRUE='#' 28730 CYGWIN_FALSE= 28731fi 28732 28733 if test x"$LD_NO_UNDEFINED_FLAG" != x; then 28734 NO_UNDEFINED_TRUE= 28735 NO_UNDEFINED_FALSE='#' 28736else 28737 NO_UNDEFINED_TRUE='#' 28738 NO_UNDEFINED_FALSE= 28739fi 28740 28741 28742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SVR4 needs to be defined" >&5 28743$as_echo_n "checking if SVR4 needs to be defined... " >&6; } 28744cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28745/* end confdefs.h. */ 28746 28747#if defined(SVR4) || defined(__svr4__) || defined(__SVR4) 28748 I_AM_SVR4 28749#endif 28750 28751_ACEOF 28752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28753 $EGREP "I_AM_SVR4" >/dev/null 2>&1; then : 28754 28755 28756$as_echo "#define SVR4 1" >>confdefs.h 28757 28758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28759$as_echo "yes" >&6; } 28760else 28761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28762$as_echo "no" >&6; } 28763fi 28764rm -f conftest* 28765 28766 28767XSERVER_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" 28768 28769 28770 28771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xvfb DDX" >&5 28772$as_echo_n "checking whether to build Xvfb DDX... " >&6; } 28773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVFB" >&5 28774$as_echo "$XVFB" >&6; } 28775 if test "x$XVFB" = xyes; then 28776 XVFB_TRUE= 28777 XVFB_FALSE='#' 28778else 28779 XVFB_TRUE='#' 28780 XVFB_FALSE= 28781fi 28782 28783 28784if test "x$XVFB" = xyes; then 28785 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" 28786 XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS" 28787 28788 28789fi 28790 28791 28792 28793 28794pkg_failed=no 28795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNESTMODULES" >&5 28796$as_echo_n "checking for XNESTMODULES... " >&6; } 28797 28798if test -n "$XNESTMODULES_CFLAGS"; then 28799 pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS" 28800 elif test -n "$PKG_CONFIG"; then 28801 if test -n "$PKG_CONFIG" && \ 28802 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5 28803 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5 28804 ac_status=$? 28805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28806 test $ac_status = 0; }; then 28807 pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null` 28808 test "x$?" != "x0" && pkg_failed=yes 28809else 28810 pkg_failed=yes 28811fi 28812 else 28813 pkg_failed=untried 28814fi 28815if test -n "$XNESTMODULES_LIBS"; then 28816 pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS" 28817 elif test -n "$PKG_CONFIG"; then 28818 if test -n "$PKG_CONFIG" && \ 28819 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5 28820 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5 28821 ac_status=$? 28822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28823 test $ac_status = 0; }; then 28824 pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null` 28825 test "x$?" != "x0" && pkg_failed=yes 28826else 28827 pkg_failed=yes 28828fi 28829 else 28830 pkg_failed=untried 28831fi 28832 28833 28834 28835if test $pkg_failed = yes; then 28836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28837$as_echo "no" >&6; } 28838 28839if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28840 _pkg_short_errors_supported=yes 28841else 28842 _pkg_short_errors_supported=no 28843fi 28844 if test $_pkg_short_errors_supported = yes; then 28845 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1` 28846 else 28847 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1` 28848 fi 28849 # Put the nasty error message in config.log where it belongs 28850 echo "$XNESTMODULES_PKG_ERRORS" >&5 28851 28852 have_xnest=no 28853elif test $pkg_failed = untried; then 28854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28855$as_echo "no" >&6; } 28856 have_xnest=no 28857else 28858 XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS 28859 XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS 28860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28861$as_echo "yes" >&6; } 28862 have_xnest=yes 28863fi 28864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xnest DDX" >&5 28865$as_echo_n "checking whether to build Xnest DDX... " >&6; } 28866if test "x$XNEST" = xauto; then 28867 XNEST="$have_xnest" 28868fi 28869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XNEST" >&5 28870$as_echo "$XNEST" >&6; } 28871 if test "x$XNEST" = xyes; then 28872 XNEST_TRUE= 28873 XNEST_FALSE='#' 28874else 28875 XNEST_TRUE='#' 28876 XNEST_FALSE= 28877fi 28878 28879 28880if test "x$XNEST" = xyes; then 28881 if test "x$have_xnest" = xno; then 28882 as_fn_error $? "Xnest build explicitly requested, but required modules not found." "$LINENO" 5 28883 fi 28884 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" 28885 XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS" 28886 28887 28888fi 28889 28890 28891 28892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg DDX" >&5 28893$as_echo_n "checking whether to build Xorg DDX... " >&6; } 28894if test "x$XORG" = xauto; then 28895 XORG="yes" 28896 case $host_os in 28897 cygwin*) XORG="no" ;; 28898 mingw*) XORG="no" ;; 28899 darwin*) XORG="no" ;; 28900 esac 28901fi 28902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG" >&5 28903$as_echo "$XORG" >&6; } 28904 28905if test "x$XORG" = xyes; then 28906 XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common' 28907 XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os' 28908 XORG_INCS="$XORG_DDXINCS $XORG_OSINCS" 28909 XORG_CFLAGS="$XORGSERVER_CFLAGS -DHAVE_XORG_CONFIG_H" 28910 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" 28911 28912 symbol_visibility= 28913 have_visibility=disabled 28914 if test x$SYMBOL_VISIBILITY != xno; then 28915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5 28916$as_echo_n "checking for symbol visibility support... " >&6; } 28917 if test x$GCC = xyes; then 28918 VISIBILITY_CFLAGS="-fvisibility=hidden" 28919 else 28920 if test x$SUNCC = xyes; then 28921 VISIBILITY_CFLAGS="-xldscope=hidden" 28922 else 28923 have_visibility=no 28924 fi 28925 fi 28926 if test x$have_visibility != xno; then 28927 save_CFLAGS="$CFLAGS" 28928 proto_inc=`$PKG_CONFIG --cflags xproto` 28929 CFLAGS="$CFLAGS $VISIBILITY_CFLAGS $proto_inc" 28930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28931/* end confdefs.h. */ 28932 28933 #include <X11/Xfuncproto.h> 28934 extern _X_HIDDEN int hidden_int; 28935 extern _X_EXPORT int public_int; 28936 extern _X_HIDDEN int hidden_int_func(void); 28937 extern _X_EXPORT int public_int_func(void); 28938int 28939main () 28940{ 28941 28942 ; 28943 return 0; 28944} 28945_ACEOF 28946if ac_fn_c_try_compile "$LINENO"; then : 28947 have_visibility=yes 28948else 28949 have_visibility=no 28950fi 28951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28952 CFLAGS=$save_CFLAGS 28953 fi 28954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5 28955$as_echo "$have_visibility" >&6; } 28956 if test x$have_visibility != xno; then 28957 symbol_visibility=$VISIBILITY_CFLAGS 28958 XORG_CFLAGS="$XORG_CFLAGS $VISIBILITY_CFLAGS" 28959 XSERVER_CFLAGS="$XSERVER_CFLAGS $VISIBILITY_CFLAGS" 28960 fi 28961 fi 28962 28963 28964 xorg_bus_bsdpci=no 28965 xorg_bus_sparc=no 28966 28967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg PCI functions" >&5 28968$as_echo_n "checking whether to build Xorg PCI functions... " >&6; } 28969 if test "x$PCI" = xyes; then 28970 28971pkg_failed=no 28972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 28973$as_echo_n "checking for PCIACCESS... " >&6; } 28974 28975if test -n "$PCIACCESS_CFLAGS"; then 28976 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 28977 elif test -n "$PKG_CONFIG"; then 28978 if test -n "$PKG_CONFIG" && \ 28979 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5 28980 ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5 28981 ac_status=$? 28982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28983 test $ac_status = 0; }; then 28984 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "$LIBPCIACCESS" 2>/dev/null` 28985 test "x$?" != "x0" && pkg_failed=yes 28986else 28987 pkg_failed=yes 28988fi 28989 else 28990 pkg_failed=untried 28991fi 28992if test -n "$PCIACCESS_LIBS"; then 28993 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 28994 elif test -n "$PKG_CONFIG"; then 28995 if test -n "$PKG_CONFIG" && \ 28996 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5 28997 ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5 28998 ac_status=$? 28999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29000 test $ac_status = 0; }; then 29001 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "$LIBPCIACCESS" 2>/dev/null` 29002 test "x$?" != "x0" && pkg_failed=yes 29003else 29004 pkg_failed=yes 29005fi 29006 else 29007 pkg_failed=untried 29008fi 29009 29010 29011 29012if test $pkg_failed = yes; then 29013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29014$as_echo "no" >&6; } 29015 29016if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29017 _pkg_short_errors_supported=yes 29018else 29019 _pkg_short_errors_supported=no 29020fi 29021 if test $_pkg_short_errors_supported = yes; then 29022 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1` 29023 else 29024 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1` 29025 fi 29026 # Put the nasty error message in config.log where it belongs 29027 echo "$PCIACCESS_PKG_ERRORS" >&5 29028 29029 as_fn_error $? "Package requirements ($LIBPCIACCESS) were not met: 29030 29031$PCIACCESS_PKG_ERRORS 29032 29033Consider adjusting the PKG_CONFIG_PATH environment variable if you 29034installed software in a non-standard prefix. 29035 29036Alternatively, you may set the environment variables PCIACCESS_CFLAGS 29037and PCIACCESS_LIBS to avoid the need to call pkg-config. 29038See the pkg-config man page for more details." "$LINENO" 5 29039elif test $pkg_failed = untried; then 29040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29041$as_echo "no" >&6; } 29042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29044as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29045is in your PATH or set the PKG_CONFIG environment variable to the full 29046path to pkg-config. 29047 29048Alternatively, you may set the environment variables PCIACCESS_CFLAGS 29049and PCIACCESS_LIBS to avoid the need to call pkg-config. 29050See the pkg-config man page for more details. 29051 29052To get pkg-config, see <http://pkg-config.freedesktop.org/>. 29053See \`config.log' for more details" "$LINENO" 5; } 29054else 29055 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 29056 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 29057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29058$as_echo "yes" >&6; } 29059 29060fi 29061 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $LIBPCIACCESS" 29062 XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $LIBDRM_LIBS" 29063 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS $LIBDRM_CFLAGS" 29064 29065 29066$as_echo "#define XSERVER_LIBPCIACCESS 1" >>confdefs.h 29067 29068 29069 prefix_NONE= 29070 exec_prefix_NONE= 29071 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29072 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29073 eval ac_define_dir="\"$PCI_TXT_IDS_DIR\"" 29074 eval ac_define_dir="\"$ac_define_dir\"" 29075 PCI_TXT_IDS_PATH="$ac_define_dir" 29076 29077 29078cat >>confdefs.h <<_ACEOF 29079#define PCI_TXT_IDS_PATH "$ac_define_dir" 29080_ACEOF 29081 29082 test "$prefix_NONE" && prefix=NONE 29083 test "$exec_prefix_NONE" && exec_prefix=NONE 29084 29085 case $host_os in 29086 gnu* | freebsd* | kfreebsd*-gnu | netbsd* | openbsd* | solaris* | dragonfly*) 29087 xorg_bus_bsdpci="yes" 29088 ;; 29089 esac 29090 case $host_cpu in 29091 sparc*) 29092 xorg_bus_sparc="yes" 29093 ;; 29094 esac 29095 else 29096 if test "x$CONFIG_UDEV_KMS" = xyes; then 29097 as_fn_error $? "Platform device enumeration requires libpciaccess" "$LINENO" 5 29098 fi 29099 if test "x$INT10MODULE" = xyes && test "x$INT10" != xstub; then 29100 as_fn_error $? "Cannot build int10 without libpciaccess" "$LINENO" 5 29101 fi 29102 fi 29103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCI" >&5 29104$as_echo "$PCI" >&6; } 29105 29106 if test "x$CONFIG_UDEV_KMS" = xyes; then 29107 29108$as_echo "#define XSERVER_PLATFORM_BUS 1" >>confdefs.h 29109 29110 fi 29111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSERVER_PLATFORM_BUS" >&5 29112$as_echo "$XSERVER_PLATFORM_BUS" >&6; } 29113 29114 case $host_os in 29115 linux*) 29116 XORG_OS_SUBDIR="linux" 29117 linux_acpi="no" 29118 case $host_cpu in 29119 i*86|amd64*|x86_64*|ia64*) 29120 linux_acpi=$enable_linux_acpi 29121 ;; 29122 *) 29123 ;; 29124 esac 29125 for ac_header in linux/apm_bios.h 29126do : 29127 ac_fn_c_check_header_mongrel "$LINENO" "linux/apm_bios.h" "ac_cv_header_linux_apm_bios_h" "$ac_includes_default" 29128if test "x$ac_cv_header_linux_apm_bios_h" = xyes; then : 29129 cat >>confdefs.h <<_ACEOF 29130#define HAVE_LINUX_APM_BIOS_H 1 29131_ACEOF 29132 linux_apm=$enable_linux_apm 29133fi 29134 29135done 29136 29137 if test "x$linux_apm" = xyes -o "x$linux_acpi" = xyes; then 29138 29139$as_echo "#define XF86PM 1" >>confdefs.h 29140 29141 fi 29142 ;; 29143 freebsd* | kfreebsd*-gnu | dragonfly*) 29144 XORG_OS_SUBDIR="bsd" 29145 ;; 29146 netbsd*) 29147 XORG_OS_SUBDIR="bsd" 29148 ;; 29149 openbsd*) 29150 if test "x$ac_cv_BSD_APM" = xyes \ 29151 -o "x$ac_cv_BSD_KQUEUE_APM" = xyes; then 29152 XORG_CFLAGS="$XORG_CFLAGS -DXF86PM" 29153 fi 29154 XORG_OS_SUBDIR="bsd" 29155 ;; 29156 solaris*) 29157 XORG_OS_SUBDIR="solaris" 29158 XORG_CFLAGS="$XORG_CFLAGS -DXF86PM" 29159 for ac_header in sys/kd.h 29160do : 29161 ac_fn_c_check_header_mongrel "$LINENO" "sys/kd.h" "ac_cv_header_sys_kd_h" "$ac_includes_default" 29162if test "x$ac_cv_header_sys_kd_h" = xyes; then : 29163 cat >>confdefs.h <<_ACEOF 29164#define HAVE_SYS_KD_H 1 29165_ACEOF 29166 29167fi 29168 29169done 29170 29171 for ac_header in sys/vt.h 29172do : 29173 ac_fn_c_check_header_mongrel "$LINENO" "sys/vt.h" "ac_cv_header_sys_vt_h" "$ac_includes_default" 29174if test "x$ac_cv_header_sys_vt_h" = xyes; then : 29175 cat >>confdefs.h <<_ACEOF 29176#define HAVE_SYS_VT_H 1 29177_ACEOF 29178 solaris_vt=yes 29179else 29180 solaris_vt=no 29181fi 29182 29183done 29184 29185 # Check for minimum supported release 29186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris version" >&5 29187$as_echo_n "checking Solaris version... " >&6; } 29188 OS_MINOR=`echo ${host_os}|$SED -e 's/^.*solaris2\.//' -e s'/\..*$//'` 29189 if test "${OS_MINOR}" -ge 7 ; then 29190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris ${OS_MINOR}" >&5 29191$as_echo "Solaris ${OS_MINOR}" >&6; } 29192 else 29193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&5 29194$as_echo "Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&6; } 29195 fi 29196 if test "${OS_MINOR}" -lt 8 ; then 29197 as_fn_error $? "This release no longer supports Solaris versions older than Solaris 8." "$LINENO" 5 29198 fi 29199 ac_fn_c_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default" 29200if test "x$ac_cv_have_decl__LP64" = xyes; then : 29201 SOLARIS_64="yes" 29202else 29203 SOLARIS_64="no" 29204fi 29205 29206 29207 case $host_cpu in 29208 sparc*) 29209 SOLARIS_INOUT_ARCH="sparcv8plus" 29210 ;; 29211 i*86|x86_64*) 29212 if test x$SOLARIS_64 = xyes ; then 29213 SOLARIS_INOUT_ARCH="amd64" 29214 else 29215 SOLARIS_INOUT_ARCH="ia32" 29216 fi 29217 ;; 29218 *) 29219 as_fn_error $? "Unsupported Solaris platform. Only SPARC & x86 \ 29220 are supported on Solaris in this release. If you are \ 29221 interested in porting Xorg to your platform, please email \ 29222 xorg@lists.freedesktop.org." "$LINENO" 5 ;; 29223 esac 29224 29225 ;; 29226 gnu*) 29227 XORG_OS_SUBDIR="hurd" 29228 ;; 29229 cygwin*) 29230 XORG_OS_SUBDIR="stub" 29231 ;; 29232 *) 29233 XORG_OS_SUBDIR="stub" 29234 { $as_echo "$as_me:${as_lineno-$LINENO}: Your OS is unknown. If you are interested in porting Xorg to your platform, 29235please email xorg@lists.freedesktop.org." >&5 29236$as_echo "$as_me: Your OS is unknown. If you are interested in porting Xorg to your platform, 29237please email xorg@lists.freedesktop.org." >&6;} 29238 ;; 29239 esac 29240 29241 if test "x$DGA" = xauto; then 29242 29243pkg_failed=no 29244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5 29245$as_echo_n "checking for DGA... " >&6; } 29246 29247if test -n "$DGA_CFLAGS"; then 29248 pkg_cv_DGA_CFLAGS="$DGA_CFLAGS" 29249 elif test -n "$PKG_CONFIG"; then 29250 if test -n "$PKG_CONFIG" && \ 29251 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 29252 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 29253 ac_status=$? 29254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29255 test $ac_status = 0; }; then 29256 pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null` 29257 test "x$?" != "x0" && pkg_failed=yes 29258else 29259 pkg_failed=yes 29260fi 29261 else 29262 pkg_failed=untried 29263fi 29264if test -n "$DGA_LIBS"; then 29265 pkg_cv_DGA_LIBS="$DGA_LIBS" 29266 elif test -n "$PKG_CONFIG"; then 29267 if test -n "$PKG_CONFIG" && \ 29268 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 29269 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 29270 ac_status=$? 29271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29272 test $ac_status = 0; }; then 29273 pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null` 29274 test "x$?" != "x0" && pkg_failed=yes 29275else 29276 pkg_failed=yes 29277fi 29278 else 29279 pkg_failed=untried 29280fi 29281 29282 29283 29284if test $pkg_failed = yes; then 29285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29286$as_echo "no" >&6; } 29287 29288if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29289 _pkg_short_errors_supported=yes 29290else 29291 _pkg_short_errors_supported=no 29292fi 29293 if test $_pkg_short_errors_supported = yes; then 29294 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1` 29295 else 29296 DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1` 29297 fi 29298 # Put the nasty error message in config.log where it belongs 29299 echo "$DGA_PKG_ERRORS" >&5 29300 29301 DGA=no 29302elif test $pkg_failed = untried; then 29303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29304$as_echo "no" >&6; } 29305 DGA=no 29306else 29307 DGA_CFLAGS=$pkg_cv_DGA_CFLAGS 29308 DGA_LIBS=$pkg_cv_DGA_LIBS 29309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29310$as_echo "yes" >&6; } 29311 DGA=yes 29312fi 29313 fi 29314 if test "x$DGA" = xyes; then 29315 XORG_MODULES="$XORG_MODULES $DGAPROTO" 29316 29317pkg_failed=no 29318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5 29319$as_echo_n "checking for DGA... " >&6; } 29320 29321if test -n "$DGA_CFLAGS"; then 29322 pkg_cv_DGA_CFLAGS="$DGA_CFLAGS" 29323 elif test -n "$PKG_CONFIG"; then 29324 if test -n "$PKG_CONFIG" && \ 29325 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 29326 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 29327 ac_status=$? 29328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29329 test $ac_status = 0; }; then 29330 pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null` 29331 test "x$?" != "x0" && pkg_failed=yes 29332else 29333 pkg_failed=yes 29334fi 29335 else 29336 pkg_failed=untried 29337fi 29338if test -n "$DGA_LIBS"; then 29339 pkg_cv_DGA_LIBS="$DGA_LIBS" 29340 elif test -n "$PKG_CONFIG"; then 29341 if test -n "$PKG_CONFIG" && \ 29342 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 29343 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 29344 ac_status=$? 29345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29346 test $ac_status = 0; }; then 29347 pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null` 29348 test "x$?" != "x0" && pkg_failed=yes 29349else 29350 pkg_failed=yes 29351fi 29352 else 29353 pkg_failed=untried 29354fi 29355 29356 29357 29358if test $pkg_failed = yes; then 29359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29360$as_echo "no" >&6; } 29361 29362if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29363 _pkg_short_errors_supported=yes 29364else 29365 _pkg_short_errors_supported=no 29366fi 29367 if test $_pkg_short_errors_supported = yes; then 29368 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1` 29369 else 29370 DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1` 29371 fi 29372 # Put the nasty error message in config.log where it belongs 29373 echo "$DGA_PKG_ERRORS" >&5 29374 29375 as_fn_error $? "Package requirements ($DGAPROTO) were not met: 29376 29377$DGA_PKG_ERRORS 29378 29379Consider adjusting the PKG_CONFIG_PATH environment variable if you 29380installed software in a non-standard prefix. 29381 29382Alternatively, you may set the environment variables DGA_CFLAGS 29383and DGA_LIBS to avoid the need to call pkg-config. 29384See the pkg-config man page for more details." "$LINENO" 5 29385elif test $pkg_failed = untried; then 29386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29387$as_echo "no" >&6; } 29388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29390as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29391is in your PATH or set the PKG_CONFIG environment variable to the full 29392path to pkg-config. 29393 29394Alternatively, you may set the environment variables DGA_CFLAGS 29395and DGA_LIBS to avoid the need to call pkg-config. 29396See the pkg-config man page for more details. 29397 29398To get pkg-config, see <http://pkg-config.freedesktop.org/>. 29399See \`config.log' for more details" "$LINENO" 5; } 29400else 29401 DGA_CFLAGS=$pkg_cv_DGA_CFLAGS 29402 DGA_LIBS=$pkg_cv_DGA_LIBS 29403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29404$as_echo "yes" >&6; } 29405 29406fi 29407 29408$as_echo "#define DGA 1" >>confdefs.h 29409 29410 29411$as_echo "#define XFreeXDGA 1" >>confdefs.h 29412 29413 fi 29414 29415 if test "x$XF86VIDMODE" = xyes; then 29416 XORG_MODULES="$XORG_MODULES $VIDMODEPROTO" 29417 fi 29418 29419 if test -n "$XORG_MODULES"; then 29420 29421pkg_failed=no 29422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG_MODULES" >&5 29423$as_echo_n "checking for XORG_MODULES... " >&6; } 29424 29425if test -n "$XORG_MODULES_CFLAGS"; then 29426 pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS" 29427 elif test -n "$PKG_CONFIG"; then 29428 if test -n "$PKG_CONFIG" && \ 29429 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5 29430 ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5 29431 ac_status=$? 29432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29433 test $ac_status = 0; }; then 29434 pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null` 29435 test "x$?" != "x0" && pkg_failed=yes 29436else 29437 pkg_failed=yes 29438fi 29439 else 29440 pkg_failed=untried 29441fi 29442if test -n "$XORG_MODULES_LIBS"; then 29443 pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS" 29444 elif test -n "$PKG_CONFIG"; then 29445 if test -n "$PKG_CONFIG" && \ 29446 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5 29447 ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5 29448 ac_status=$? 29449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29450 test $ac_status = 0; }; then 29451 pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null` 29452 test "x$?" != "x0" && pkg_failed=yes 29453else 29454 pkg_failed=yes 29455fi 29456 else 29457 pkg_failed=untried 29458fi 29459 29460 29461 29462if test $pkg_failed = yes; then 29463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29464$as_echo "no" >&6; } 29465 29466if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29467 _pkg_short_errors_supported=yes 29468else 29469 _pkg_short_errors_supported=no 29470fi 29471 if test $_pkg_short_errors_supported = yes; then 29472 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XORG_MODULES" 2>&1` 29473 else 29474 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XORG_MODULES" 2>&1` 29475 fi 29476 # Put the nasty error message in config.log where it belongs 29477 echo "$XORG_MODULES_PKG_ERRORS" >&5 29478 29479 as_fn_error $? "Package requirements ($XORG_MODULES) were not met: 29480 29481$XORG_MODULES_PKG_ERRORS 29482 29483Consider adjusting the PKG_CONFIG_PATH environment variable if you 29484installed software in a non-standard prefix. 29485 29486Alternatively, you may set the environment variables XORG_MODULES_CFLAGS 29487and XORG_MODULES_LIBS to avoid the need to call pkg-config. 29488See the pkg-config man page for more details." "$LINENO" 5 29489elif test $pkg_failed = untried; then 29490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29491$as_echo "no" >&6; } 29492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29494as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29495is in your PATH or set the PKG_CONFIG environment variable to the full 29496path to pkg-config. 29497 29498Alternatively, you may set the environment variables XORG_MODULES_CFLAGS 29499and XORG_MODULES_LIBS to avoid the need to call pkg-config. 29500See the pkg-config man page for more details. 29501 29502To get pkg-config, see <http://pkg-config.freedesktop.org/>. 29503See \`config.log' for more details" "$LINENO" 5; } 29504else 29505 XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS 29506 XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS 29507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29508$as_echo "yes" >&6; } 29509 29510fi 29511 XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS" 29512 XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS" 29513 fi 29514 29515 if test "x$DRM" = xyes; then 29516 XORG_DRIVER_MODESETTING=yes 29517 fi 29518 29519 29520 29521 29522 29523 29524 29525 XF86CONFIGFILE="xorg.conf" 29526 XF86CONFIGDIR="xorg.conf.d" 29527 29528 CONFIGFILE="$sysconfdir/$XF86CONFIGFILE" 29529 LOGPREFIX="Xorg." 29530 XDG_DATA_HOME=".local/share" 29531 XDG_DATA_HOME_LOGDIR="xorg" 29532 29533$as_echo "#define XORG_SERVER 1" >>confdefs.h 29534 29535 29536$as_echo "#define XORGSERVER 1" >>confdefs.h 29537 29538 29539$as_echo "#define XFree86Server 1" >>confdefs.h 29540 29541 29542cat >>confdefs.h <<_ACEOF 29543#define XORG_VERSION_CURRENT $VENDOR_RELEASE 29544_ACEOF 29545 29546 29547$as_echo "#define NEED_XF86_TYPES 1" >>confdefs.h 29548 29549 29550$as_echo "#define NEED_XF86_PROTOTYPES 1" >>confdefs.h 29551 29552 29553$as_echo "#define __XSERVERNAME__ \"Xorg\"" >>confdefs.h 29554 29555 29556 prefix_NONE= 29557 exec_prefix_NONE= 29558 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29559 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29560 eval ac_define_dir="\"$XF86CONFIGFILE\"" 29561 eval ac_define_dir="\"$ac_define_dir\"" 29562 XCONFIGFILE="$ac_define_dir" 29563 29564 29565cat >>confdefs.h <<_ACEOF 29566#define XCONFIGFILE "$ac_define_dir" 29567_ACEOF 29568 29569 test "$prefix_NONE" && prefix=NONE 29570 test "$exec_prefix_NONE" && exec_prefix=NONE 29571 29572 29573 prefix_NONE= 29574 exec_prefix_NONE= 29575 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29576 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29577 eval ac_define_dir="\"$XF86CONFIGFILE\"" 29578 eval ac_define_dir="\"$ac_define_dir\"" 29579 XF86CONFIGFILE="$ac_define_dir" 29580 29581 29582cat >>confdefs.h <<_ACEOF 29583#define XF86CONFIGFILE "$ac_define_dir" 29584_ACEOF 29585 29586 test "$prefix_NONE" && prefix=NONE 29587 test "$exec_prefix_NONE" && exec_prefix=NONE 29588 29589 29590 prefix_NONE= 29591 exec_prefix_NONE= 29592 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29593 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29594 eval ac_define_dir="\"$XF86CONFIGDIR\"" 29595 eval ac_define_dir="\"$ac_define_dir\"" 29596 XCONFIGDIR="$ac_define_dir" 29597 29598 29599cat >>confdefs.h <<_ACEOF 29600#define XCONFIGDIR "$ac_define_dir" 29601_ACEOF 29602 29603 test "$prefix_NONE" && prefix=NONE 29604 test "$exec_prefix_NONE" && exec_prefix=NONE 29605 29606 29607 prefix_NONE= 29608 exec_prefix_NONE= 29609 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29610 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29611 eval ac_define_dir="\"$moduledir\"" 29612 eval ac_define_dir="\"$ac_define_dir\"" 29613 DEFAULT_MODULE_PATH="$ac_define_dir" 29614 29615 29616cat >>confdefs.h <<_ACEOF 29617#define DEFAULT_MODULE_PATH "$ac_define_dir" 29618_ACEOF 29619 29620 test "$prefix_NONE" && prefix=NONE 29621 test "$exec_prefix_NONE" && exec_prefix=NONE 29622 29623 29624 prefix_NONE= 29625 exec_prefix_NONE= 29626 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29627 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29628 eval ac_define_dir="\"$libdir\"" 29629 eval ac_define_dir="\"$ac_define_dir\"" 29630 DEFAULT_LIBRARY_PATH="$ac_define_dir" 29631 29632 29633cat >>confdefs.h <<_ACEOF 29634#define DEFAULT_LIBRARY_PATH "$ac_define_dir" 29635_ACEOF 29636 29637 test "$prefix_NONE" && prefix=NONE 29638 test "$exec_prefix_NONE" && exec_prefix=NONE 29639 29640 29641 prefix_NONE= 29642 exec_prefix_NONE= 29643 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29644 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29645 eval ac_define_dir="\"$logdir\"" 29646 eval ac_define_dir="\"$ac_define_dir\"" 29647 DEFAULT_LOGDIR="$ac_define_dir" 29648 29649 29650cat >>confdefs.h <<_ACEOF 29651#define DEFAULT_LOGDIR "$ac_define_dir" 29652_ACEOF 29653 29654 test "$prefix_NONE" && prefix=NONE 29655 test "$exec_prefix_NONE" && exec_prefix=NONE 29656 29657 29658 prefix_NONE= 29659 exec_prefix_NONE= 29660 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29661 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29662 eval ac_define_dir="\"$LOGPREFIX\"" 29663 eval ac_define_dir="\"$ac_define_dir\"" 29664 DEFAULT_LOGPREFIX="$ac_define_dir" 29665 29666 29667cat >>confdefs.h <<_ACEOF 29668#define DEFAULT_LOGPREFIX "$ac_define_dir" 29669_ACEOF 29670 29671 test "$prefix_NONE" && prefix=NONE 29672 test "$exec_prefix_NONE" && exec_prefix=NONE 29673 29674 29675 prefix_NONE= 29676 exec_prefix_NONE= 29677 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29678 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29679 eval ac_define_dir="\"$XDG_DATA_HOME\"" 29680 eval ac_define_dir="\"$ac_define_dir\"" 29681 DEFAULT_XDG_DATA_HOME="$ac_define_dir" 29682 29683 29684cat >>confdefs.h <<_ACEOF 29685#define DEFAULT_XDG_DATA_HOME "$ac_define_dir" 29686_ACEOF 29687 29688 test "$prefix_NONE" && prefix=NONE 29689 test "$exec_prefix_NONE" && exec_prefix=NONE 29690 29691 29692 prefix_NONE= 29693 exec_prefix_NONE= 29694 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29695 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29696 eval ac_define_dir="\"$XDG_DATA_HOME_LOGDIR\"" 29697 eval ac_define_dir="\"$ac_define_dir\"" 29698 DEFAULT_XDG_DATA_HOME_LOGDIR="$ac_define_dir" 29699 29700 29701cat >>confdefs.h <<_ACEOF 29702#define DEFAULT_XDG_DATA_HOME_LOGDIR "$ac_define_dir" 29703_ACEOF 29704 29705 test "$prefix_NONE" && prefix=NONE 29706 test "$exec_prefix_NONE" && exec_prefix=NONE 29707 29708 29709cat >>confdefs.h <<_ACEOF 29710#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB" 29711_ACEOF 29712 29713 if test "x$VGAHW" = xyes; then 29714 29715$as_echo "#define WITH_VGAHW 1" >>confdefs.h 29716 29717 fi 29718 29719 driverdir="$moduledir/drivers" 29720 29721 29722 sdkdir="$includedir/xorg" 29723 extdir="$includedir/X11/extensions" 29724 sysconfigdir="$datadir/X11/$XF86CONFIGDIR" 29725 29726 29727 29728 29729 29730 # stuff the ABI versions into the pc file too 29731 extract_abi() { 29732 grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' ' .' | awk '{ print $4$5 }' 29733 } 29734 abi_ansic=`extract_abi ANSIC` 29735 abi_videodrv=`extract_abi VIDEODRV` 29736 abi_xinput=`extract_abi XINPUT` 29737 abi_extension=`extract_abi EXTENSION` 29738 29739 29740 29741 29742fi 29743 if test "x$XORG" = xyes; then 29744 XORG_TRUE= 29745 XORG_FALSE='#' 29746else 29747 XORG_TRUE='#' 29748 XORG_FALSE= 29749fi 29750 29751 if test "x$PCI" = xyes; then 29752 XORG_BUS_PCI_TRUE= 29753 XORG_BUS_PCI_FALSE='#' 29754else 29755 XORG_BUS_PCI_TRUE='#' 29756 XORG_BUS_PCI_FALSE= 29757fi 29758 29759 if test "x$xorg_bus_bsdpci" = xyes; then 29760 XORG_BUS_BSDPCI_TRUE= 29761 XORG_BUS_BSDPCI_FALSE='#' 29762else 29763 XORG_BUS_BSDPCI_TRUE='#' 29764 XORG_BUS_BSDPCI_FALSE= 29765fi 29766 29767 if test "x$xorg_bus_sparc" = xyes; then 29768 XORG_BUS_SPARC_TRUE= 29769 XORG_BUS_SPARC_FALSE='#' 29770else 29771 XORG_BUS_SPARC_TRUE='#' 29772 XORG_BUS_SPARC_FALSE= 29773fi 29774 29775 if test "x$linux_acpi" = xyes; then 29776 LNXACPI_TRUE= 29777 LNXACPI_FALSE='#' 29778else 29779 LNXACPI_TRUE='#' 29780 LNXACPI_FALSE= 29781fi 29782 29783 if test "x$linux_apm" = xyes; then 29784 LNXAPM_TRUE= 29785 LNXAPM_FALSE='#' 29786else 29787 LNXAPM_TRUE='#' 29788 LNXAPM_FALSE= 29789fi 29790 29791 if test "x$solaris_vt" = xyes; then 29792 SOLARIS_VT_TRUE= 29793 SOLARIS_VT_FALSE='#' 29794else 29795 SOLARIS_VT_TRUE='#' 29796 SOLARIS_VT_FALSE= 29797fi 29798 29799 if test "x$DGA" = xyes; then 29800 DGA_TRUE= 29801 DGA_FALSE='#' 29802else 29803 DGA_TRUE='#' 29804 DGA_FALSE= 29805fi 29806 29807 if test "x$CONFIG_UDEV_KMS" = xyes; then 29808 XORG_BUS_PLATFORM_TRUE= 29809 XORG_BUS_PLATFORM_FALSE='#' 29810else 29811 XORG_BUS_PLATFORM_TRUE='#' 29812 XORG_BUS_PLATFORM_FALSE= 29813fi 29814 29815 if test "x$XORG_DRIVER_MODESETTING" = xyes; then 29816 XORG_DRIVER_MODESETTING_TRUE= 29817 XORG_DRIVER_MODESETTING_FALSE='#' 29818else 29819 XORG_DRIVER_MODESETTING_TRUE='#' 29820 XORG_DRIVER_MODESETTING_FALSE= 29821fi 29822 29823 29824if test "x$GLAMOR" = xauto; then 29825 if echo "$XORG" "$XEPHYR" "$XWAYLAND" | grep -q yes ; then 29826 GLAMOR=yes 29827 fi 29828fi 29829 29830 if test "x$GLAMOR" = xyes; then 29831 GLAMOR_TRUE= 29832 GLAMOR_FALSE='#' 29833else 29834 GLAMOR_TRUE='#' 29835 GLAMOR_FALSE= 29836fi 29837 29838 29839if test "x$GLAMOR" = xyes; then 29840 29841$as_echo "#define GLAMOR 1" >>confdefs.h 29842 29843 29844pkg_failed=no 29845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLAMOR" >&5 29846$as_echo_n "checking for GLAMOR... " >&6; } 29847 29848if test -n "$GLAMOR_CFLAGS"; then 29849 pkg_cv_GLAMOR_CFLAGS="$GLAMOR_CFLAGS" 29850 elif test -n "$PKG_CONFIG"; then 29851 if test -n "$PKG_CONFIG" && \ 29852 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5 29853 ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5 29854 ac_status=$? 29855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29856 test $ac_status = 0; }; then 29857 pkg_cv_GLAMOR_CFLAGS=`$PKG_CONFIG --cflags "epoxy" 2>/dev/null` 29858 test "x$?" != "x0" && pkg_failed=yes 29859else 29860 pkg_failed=yes 29861fi 29862 else 29863 pkg_failed=untried 29864fi 29865if test -n "$GLAMOR_LIBS"; then 29866 pkg_cv_GLAMOR_LIBS="$GLAMOR_LIBS" 29867 elif test -n "$PKG_CONFIG"; then 29868 if test -n "$PKG_CONFIG" && \ 29869 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5 29870 ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5 29871 ac_status=$? 29872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29873 test $ac_status = 0; }; then 29874 pkg_cv_GLAMOR_LIBS=`$PKG_CONFIG --libs "epoxy" 2>/dev/null` 29875 test "x$?" != "x0" && pkg_failed=yes 29876else 29877 pkg_failed=yes 29878fi 29879 else 29880 pkg_failed=untried 29881fi 29882 29883 29884 29885if test $pkg_failed = yes; then 29886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29887$as_echo "no" >&6; } 29888 29889if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29890 _pkg_short_errors_supported=yes 29891else 29892 _pkg_short_errors_supported=no 29893fi 29894 if test $_pkg_short_errors_supported = yes; then 29895 GLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "epoxy" 2>&1` 29896 else 29897 GLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "epoxy" 2>&1` 29898 fi 29899 # Put the nasty error message in config.log where it belongs 29900 echo "$GLAMOR_PKG_ERRORS" >&5 29901 29902 as_fn_error $? "Package requirements (epoxy) were not met: 29903 29904$GLAMOR_PKG_ERRORS 29905 29906Consider adjusting the PKG_CONFIG_PATH environment variable if you 29907installed software in a non-standard prefix. 29908 29909Alternatively, you may set the environment variables GLAMOR_CFLAGS 29910and GLAMOR_LIBS to avoid the need to call pkg-config. 29911See the pkg-config man page for more details." "$LINENO" 5 29912elif test $pkg_failed = untried; then 29913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29914$as_echo "no" >&6; } 29915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29917as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29918is in your PATH or set the PKG_CONFIG environment variable to the full 29919path to pkg-config. 29920 29921Alternatively, you may set the environment variables GLAMOR_CFLAGS 29922and GLAMOR_LIBS to avoid the need to call pkg-config. 29923See the pkg-config man page for more details. 29924 29925To get pkg-config, see <http://pkg-config.freedesktop.org/>. 29926See \`config.log' for more details" "$LINENO" 5; } 29927else 29928 GLAMOR_CFLAGS=$pkg_cv_GLAMOR_CFLAGS 29929 GLAMOR_LIBS=$pkg_cv_GLAMOR_LIBS 29930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29931$as_echo "yes" >&6; } 29932 29933fi 29934 29935 if test -n "$PKG_CONFIG" && \ 29936 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.4.4\""; } >&5 29937 ($PKG_CONFIG --exists --print-errors "epoxy >= 1.4.4") 2>&5 29938 ac_status=$? 29939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29940 test $ac_status = 0; }; then 29941 29942$as_echo "#define GLAMOR_HAS_EGL_QUERY_DMABUF 1" >>confdefs.h 29943 29944fi 29945 29946 29947pkg_failed=no 29948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GBM" >&5 29949$as_echo_n "checking for GBM... " >&6; } 29950 29951if test -n "$GBM_CFLAGS"; then 29952 pkg_cv_GBM_CFLAGS="$GBM_CFLAGS" 29953 elif test -n "$PKG_CONFIG"; then 29954 if test -n "$PKG_CONFIG" && \ 29955 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5 29956 ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5 29957 ac_status=$? 29958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29959 test $ac_status = 0; }; then 29960 pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags ""$LIBGBM"" 2>/dev/null` 29961 test "x$?" != "x0" && pkg_failed=yes 29962else 29963 pkg_failed=yes 29964fi 29965 else 29966 pkg_failed=untried 29967fi 29968if test -n "$GBM_LIBS"; then 29969 pkg_cv_GBM_LIBS="$GBM_LIBS" 29970 elif test -n "$PKG_CONFIG"; then 29971 if test -n "$PKG_CONFIG" && \ 29972 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5 29973 ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5 29974 ac_status=$? 29975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29976 test $ac_status = 0; }; then 29977 pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs ""$LIBGBM"" 2>/dev/null` 29978 test "x$?" != "x0" && pkg_failed=yes 29979else 29980 pkg_failed=yes 29981fi 29982 else 29983 pkg_failed=untried 29984fi 29985 29986 29987 29988if test $pkg_failed = yes; then 29989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29990$as_echo "no" >&6; } 29991 29992if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29993 _pkg_short_errors_supported=yes 29994else 29995 _pkg_short_errors_supported=no 29996fi 29997 if test $_pkg_short_errors_supported = yes; then 29998 GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""$LIBGBM"" 2>&1` 29999 else 30000 GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""$LIBGBM"" 2>&1` 30001 fi 30002 # Put the nasty error message in config.log where it belongs 30003 echo "$GBM_PKG_ERRORS" >&5 30004 30005 GBM=no 30006elif test $pkg_failed = untried; then 30007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30008$as_echo "no" >&6; } 30009 GBM=no 30010else 30011 GBM_CFLAGS=$pkg_cv_GBM_CFLAGS 30012 GBM_LIBS=$pkg_cv_GBM_LIBS 30013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30014$as_echo "yes" >&6; } 30015 GBM=yes 30016fi 30017 if test "x$GBM" = xyes; then 30018 30019$as_echo "#define GLAMOR_HAS_GBM 1" >>confdefs.h 30020 30021 ac_fn_c_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h> 30022 #include <gbm.h> 30023" 30024if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes; then : 30025 30026$as_echo "#define GLAMOR_HAS_GBM_LINEAR 1" >>confdefs.h 30027 30028fi 30029 30030 if test -n "$PKG_CONFIG" && \ 30031 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 17.1.0\""; } >&5 30032 ($PKG_CONFIG --exists --print-errors "gbm >= 17.1.0") 2>&5 30033 ac_status=$? 30034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30035 test $ac_status = 0; }; then 30036 30037$as_echo "#define GBM_BO_WITH_MODIFIERS 1" >>confdefs.h 30038 30039fi 30040 else 30041 if test "x$XORG" = xyes; then 30042 as_fn_error $? "Glamor for Xorg requires $LIBGBM" "$LINENO" 5 30043 fi 30044 fi 30045fi 30046 if test "x$GBM" = xyes; then 30047 GLAMOR_EGL_TRUE= 30048 GLAMOR_EGL_FALSE='#' 30049else 30050 GLAMOR_EGL_TRUE='#' 30051 GLAMOR_EGL_FALSE= 30052fi 30053 30054 30055 30056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build XWin DDX" >&5 30057$as_echo_n "checking whether to build XWin DDX... " >&6; } 30058if test "x$XWIN" = xauto; then 30059 case $host_os in 30060 cygwin*) XWIN="yes" ;; 30061 mingw*) XWIN="yes" ;; 30062 *) XWIN="no" ;; 30063 esac 30064fi 30065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XWIN" >&5 30066$as_echo "$XWIN" >&6; } 30067 30068if test "x$XWIN" = xyes; then 30069 30070 prefix_NONE= 30071 exec_prefix_NONE= 30072 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 30073 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 30074 eval ac_define_dir="\"$logdir\"" 30075 eval ac_define_dir="\"$ac_define_dir\"" 30076 DEFAULT_LOGDIR="$ac_define_dir" 30077 30078 30079cat >>confdefs.h <<_ACEOF 30080#define DEFAULT_LOGDIR "$ac_define_dir" 30081_ACEOF 30082 30083 test "$prefix_NONE" && prefix=NONE 30084 test "$exec_prefix_NONE" && exec_prefix=NONE 30085 30086 30087cat >>confdefs.h <<_ACEOF 30088#define XORG_VERSION_CURRENT $VENDOR_RELEASE 30089_ACEOF 30090 30091 30092cat >>confdefs.h <<_ACEOF 30093#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB" 30094_ACEOF 30095 30096 if test -n "$ac_tool_prefix"; then 30097 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 30098set dummy ${ac_tool_prefix}windres; ac_word=$2 30099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30100$as_echo_n "checking for $ac_word... " >&6; } 30101if ${ac_cv_prog_WINDRES+:} false; then : 30102 $as_echo_n "(cached) " >&6 30103else 30104 if test -n "$WINDRES"; then 30105 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 30106else 30107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30108for as_dir in $PATH 30109do 30110 IFS=$as_save_IFS 30111 test -z "$as_dir" && as_dir=. 30112 for ac_exec_ext in '' $ac_executable_extensions; do 30113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30114 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 30115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30116 break 2 30117 fi 30118done 30119 done 30120IFS=$as_save_IFS 30121 30122fi 30123fi 30124WINDRES=$ac_cv_prog_WINDRES 30125if test -n "$WINDRES"; then 30126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 30127$as_echo "$WINDRES" >&6; } 30128else 30129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30130$as_echo "no" >&6; } 30131fi 30132 30133 30134fi 30135if test -z "$ac_cv_prog_WINDRES"; then 30136 ac_ct_WINDRES=$WINDRES 30137 # Extract the first word of "windres", so it can be a program name with args. 30138set dummy windres; ac_word=$2 30139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30140$as_echo_n "checking for $ac_word... " >&6; } 30141if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 30142 $as_echo_n "(cached) " >&6 30143else 30144 if test -n "$ac_ct_WINDRES"; then 30145 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 30146else 30147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30148for as_dir in $PATH 30149do 30150 IFS=$as_save_IFS 30151 test -z "$as_dir" && as_dir=. 30152 for ac_exec_ext in '' $ac_executable_extensions; do 30153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30154 ac_cv_prog_ac_ct_WINDRES="windres" 30155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30156 break 2 30157 fi 30158done 30159 done 30160IFS=$as_save_IFS 30161 30162fi 30163fi 30164ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 30165if test -n "$ac_ct_WINDRES"; then 30166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 30167$as_echo "$ac_ct_WINDRES" >&6; } 30168else 30169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30170$as_echo "no" >&6; } 30171fi 30172 30173 if test "x$ac_ct_WINDRES" = x; then 30174 WINDRES="" 30175 else 30176 case $cross_compiling:$ac_tool_warned in 30177yes:) 30178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30180ac_tool_warned=yes ;; 30181esac 30182 WINDRES=$ac_ct_WINDRES 30183 fi 30184else 30185 WINDRES="$ac_cv_prog_WINDRES" 30186fi 30187 30188 30189 30190pkg_failed=no 30191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWINMODULES" >&5 30192$as_echo_n "checking for XWINMODULES... " >&6; } 30193 30194if test -n "$XWINMODULES_CFLAGS"; then 30195 pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS" 30196 elif test -n "$PKG_CONFIG"; then 30197 if test -n "$PKG_CONFIG" && \ 30198 { { $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 30199 ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm") 2>&5 30200 ac_status=$? 30201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30202 test $ac_status = 0; }; then 30203 pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm" 2>/dev/null` 30204 test "x$?" != "x0" && pkg_failed=yes 30205else 30206 pkg_failed=yes 30207fi 30208 else 30209 pkg_failed=untried 30210fi 30211if test -n "$XWINMODULES_LIBS"; then 30212 pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS" 30213 elif test -n "$PKG_CONFIG"; then 30214 if test -n "$PKG_CONFIG" && \ 30215 { { $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 30216 ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm") 2>&5 30217 ac_status=$? 30218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30219 test $ac_status = 0; }; then 30220 pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm" 2>/dev/null` 30221 test "x$?" != "x0" && pkg_failed=yes 30222else 30223 pkg_failed=yes 30224fi 30225 else 30226 pkg_failed=untried 30227fi 30228 30229 30230 30231if test $pkg_failed = yes; then 30232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30233$as_echo "no" >&6; } 30234 30235if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30236 _pkg_short_errors_supported=yes 30237else 30238 _pkg_short_errors_supported=no 30239fi 30240 if test $_pkg_short_errors_supported = yes; then 30241 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` 30242 else 30243 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` 30244 fi 30245 # Put the nasty error message in config.log where it belongs 30246 echo "$XWINMODULES_PKG_ERRORS" >&5 30247 30248 as_fn_error $? "Package requirements (x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm) were not met: 30249 30250$XWINMODULES_PKG_ERRORS 30251 30252Consider adjusting the PKG_CONFIG_PATH environment variable if you 30253installed software in a non-standard prefix. 30254 30255Alternatively, you may set the environment variables XWINMODULES_CFLAGS 30256and XWINMODULES_LIBS to avoid the need to call pkg-config. 30257See the pkg-config man page for more details." "$LINENO" 5 30258elif test $pkg_failed = untried; then 30259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30260$as_echo "no" >&6; } 30261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30263as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30264is in your PATH or set the PKG_CONFIG environment variable to the full 30265path to pkg-config. 30266 30267Alternatively, you may set the environment variables XWINMODULES_CFLAGS 30268and XWINMODULES_LIBS to avoid the need to call pkg-config. 30269See the pkg-config man page for more details. 30270 30271To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30272See \`config.log' for more details" "$LINENO" 5; } 30273else 30274 XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS 30275 XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS 30276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30277$as_echo "yes" >&6; } 30278 30279fi 30280 30281 if test "x$WINDOWSWM" = xauto; then 30282 if test -n "$PKG_CONFIG" && \ 30283 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5 30284 ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5 30285 ac_status=$? 30286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30287 test $ac_status = 0; }; then 30288 WINDOWSWM=yes 30289else 30290 WINDOWSWM=no 30291fi 30292 fi 30293 if test "x$WINDOWSWM" = xyes ; then 30294 30295pkg_failed=no 30296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WINDOWSWM" >&5 30297$as_echo_n "checking for WINDOWSWM... " >&6; } 30298 30299if test -n "$WINDOWSWM_CFLAGS"; then 30300 pkg_cv_WINDOWSWM_CFLAGS="$WINDOWSWM_CFLAGS" 30301 elif test -n "$PKG_CONFIG"; then 30302 if test -n "$PKG_CONFIG" && \ 30303 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5 30304 ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5 30305 ac_status=$? 30306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30307 test $ac_status = 0; }; then 30308 pkg_cv_WINDOWSWM_CFLAGS=`$PKG_CONFIG --cflags "$WINDOWSWMPROTO" 2>/dev/null` 30309 test "x$?" != "x0" && pkg_failed=yes 30310else 30311 pkg_failed=yes 30312fi 30313 else 30314 pkg_failed=untried 30315fi 30316if test -n "$WINDOWSWM_LIBS"; then 30317 pkg_cv_WINDOWSWM_LIBS="$WINDOWSWM_LIBS" 30318 elif test -n "$PKG_CONFIG"; then 30319 if test -n "$PKG_CONFIG" && \ 30320 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5 30321 ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5 30322 ac_status=$? 30323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30324 test $ac_status = 0; }; then 30325 pkg_cv_WINDOWSWM_LIBS=`$PKG_CONFIG --libs "$WINDOWSWMPROTO" 2>/dev/null` 30326 test "x$?" != "x0" && pkg_failed=yes 30327else 30328 pkg_failed=yes 30329fi 30330 else 30331 pkg_failed=untried 30332fi 30333 30334 30335 30336if test $pkg_failed = yes; then 30337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30338$as_echo "no" >&6; } 30339 30340if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30341 _pkg_short_errors_supported=yes 30342else 30343 _pkg_short_errors_supported=no 30344fi 30345 if test $_pkg_short_errors_supported = yes; then 30346 WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WINDOWSWMPROTO" 2>&1` 30347 else 30348 WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WINDOWSWMPROTO" 2>&1` 30349 fi 30350 # Put the nasty error message in config.log where it belongs 30351 echo "$WINDOWSWM_PKG_ERRORS" >&5 30352 30353 as_fn_error $? "Package requirements ($WINDOWSWMPROTO) were not met: 30354 30355$WINDOWSWM_PKG_ERRORS 30356 30357Consider adjusting the PKG_CONFIG_PATH environment variable if you 30358installed software in a non-standard prefix. 30359 30360Alternatively, you may set the environment variables WINDOWSWM_CFLAGS 30361and WINDOWSWM_LIBS to avoid the need to call pkg-config. 30362See the pkg-config man page for more details." "$LINENO" 5 30363elif test $pkg_failed = untried; then 30364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30365$as_echo "no" >&6; } 30366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30368as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30369is in your PATH or set the PKG_CONFIG environment variable to the full 30370path to pkg-config. 30371 30372Alternatively, you may set the environment variables WINDOWSWM_CFLAGS 30373and WINDOWSWM_LIBS to avoid the need to call pkg-config. 30374See the pkg-config man page for more details. 30375 30376To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30377See \`config.log' for more details" "$LINENO" 5; } 30378else 30379 WINDOWSWM_CFLAGS=$pkg_cv_WINDOWSWM_CFLAGS 30380 WINDOWSWM_LIBS=$pkg_cv_WINDOWSWM_LIBS 30381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30382$as_echo "yes" >&6; } 30383 30384fi 30385 XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS $WINDOWSWM_CFLAGS" 30386 30387$as_echo "#define ROOTLESS 1" >>confdefs.h 30388 30389 fi 30390 30391 if test "x$WINDOWSDRI" = xauto; then 30392 if test -n "$PKG_CONFIG" && \ 30393 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 30394 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 30395 ac_status=$? 30396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30397 test $ac_status = 0; }; then 30398 WINDOWSDRI=yes 30399else 30400 WINDOWSDRI=no 30401fi 30402 fi 30403 if test "x$WINDOWSDRI" = xyes ; then 30404 30405pkg_failed=no 30406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WINDOWSDRI" >&5 30407$as_echo_n "checking for WINDOWSDRI... " >&6; } 30408 30409if test -n "$WINDOWSDRI_CFLAGS"; then 30410 pkg_cv_WINDOWSDRI_CFLAGS="$WINDOWSDRI_CFLAGS" 30411 elif test -n "$PKG_CONFIG"; then 30412 if test -n "$PKG_CONFIG" && \ 30413 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 30414 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 30415 ac_status=$? 30416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30417 test $ac_status = 0; }; then 30418 pkg_cv_WINDOWSDRI_CFLAGS=`$PKG_CONFIG --cflags "windowsdriproto" 2>/dev/null` 30419 test "x$?" != "x0" && pkg_failed=yes 30420else 30421 pkg_failed=yes 30422fi 30423 else 30424 pkg_failed=untried 30425fi 30426if test -n "$WINDOWSDRI_LIBS"; then 30427 pkg_cv_WINDOWSDRI_LIBS="$WINDOWSDRI_LIBS" 30428 elif test -n "$PKG_CONFIG"; then 30429 if test -n "$PKG_CONFIG" && \ 30430 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 30431 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 30432 ac_status=$? 30433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30434 test $ac_status = 0; }; then 30435 pkg_cv_WINDOWSDRI_LIBS=`$PKG_CONFIG --libs "windowsdriproto" 2>/dev/null` 30436 test "x$?" != "x0" && pkg_failed=yes 30437else 30438 pkg_failed=yes 30439fi 30440 else 30441 pkg_failed=untried 30442fi 30443 30444 30445 30446if test $pkg_failed = yes; then 30447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30448$as_echo "no" >&6; } 30449 30450if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30451 _pkg_short_errors_supported=yes 30452else 30453 _pkg_short_errors_supported=no 30454fi 30455 if test $_pkg_short_errors_supported = yes; then 30456 WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "windowsdriproto" 2>&1` 30457 else 30458 WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "windowsdriproto" 2>&1` 30459 fi 30460 # Put the nasty error message in config.log where it belongs 30461 echo "$WINDOWSDRI_PKG_ERRORS" >&5 30462 30463 as_fn_error $? "Package requirements (windowsdriproto) were not met: 30464 30465$WINDOWSDRI_PKG_ERRORS 30466 30467Consider adjusting the PKG_CONFIG_PATH environment variable if you 30468installed software in a non-standard prefix. 30469 30470Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS 30471and WINDOWSDRI_LIBS to avoid the need to call pkg-config. 30472See the pkg-config man page for more details." "$LINENO" 5 30473elif test $pkg_failed = untried; then 30474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30475$as_echo "no" >&6; } 30476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30478as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30479is in your PATH or set the PKG_CONFIG environment variable to the full 30480path to pkg-config. 30481 30482Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS 30483and WINDOWSDRI_LIBS to avoid the need to call pkg-config. 30484See the pkg-config man page for more details. 30485 30486To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30487See \`config.log' for more details" "$LINENO" 5; } 30488else 30489 WINDOWSDRI_CFLAGS=$pkg_cv_WINDOWSDRI_CFLAGS 30490 WINDOWSDRI_LIBS=$pkg_cv_WINDOWSDRI_LIBS 30491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30492$as_echo "yes" >&6; } 30493 30494fi 30495 fi 30496 30497 case $host_os in 30498 cygwin*) 30499 XWIN_SERVER_NAME=XWin 30500 30501$as_echo "#define HAS_DEVWINDOWS 1" >>confdefs.h 30502 30503 ;; 30504 mingw*) 30505 XWIN_SERVER_NAME=Xming 30506 30507$as_echo "#define RELOCATE_PROJECTROOT 1" >>confdefs.h 30508 30509 30510$as_echo "#define HAS_WINSOCK 1" >>confdefs.h 30511 30512 XWIN_SYS_LIBS="-lpthread -lws2_32" 30513 ;; 30514 esac 30515 30516 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" 30517 XWIN_SYS_LIBS="$XWIN_SYS_LIBS $XWINMODULES_LIBS" 30518 30519 30520 30521 30522 if test "x$DEBUGGING" = xyes; then 30523 30524$as_echo "#define CYGDEBUG 1" >>confdefs.h 30525 30526 30527$as_echo "#define CYGWINDOWING_DEBUG 1" >>confdefs.h 30528 30529 30530$as_echo "#define CYGMULTIWINDOW_DEBUG 1" >>confdefs.h 30531 30532 fi 30533 30534 30535$as_echo "#define DDXOSVERRORF 1" >>confdefs.h 30536 30537 30538$as_echo "#define DDXBEFORERESET 1" >>confdefs.h 30539 30540 30541 if test "x$XWIN" = xyes && test "x$GLX" = xyes ; then 30542 # Extract the first word of "python3", so it can be a program name with args. 30543set dummy python3; ac_word=$2 30544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30545$as_echo_n "checking for $ac_word... " >&6; } 30546if ${ac_cv_prog_PYTHON3+:} false; then : 30547 $as_echo_n "(cached) " >&6 30548else 30549 if test -n "$PYTHON3"; then 30550 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test. 30551else 30552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30553for as_dir in $PATH 30554do 30555 IFS=$as_save_IFS 30556 test -z "$as_dir" && as_dir=. 30557 for ac_exec_ext in '' $ac_executable_extensions; do 30558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30559 ac_cv_prog_PYTHON3="python3" 30560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30561 break 2 30562 fi 30563done 30564 done 30565IFS=$as_save_IFS 30566 30567fi 30568fi 30569PYTHON3=$ac_cv_prog_PYTHON3 30570if test -n "$PYTHON3"; then 30571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5 30572$as_echo "$PYTHON3" >&6; } 30573else 30574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30575$as_echo "no" >&6; } 30576fi 30577 30578 30579 if test -z "$PYTHON3"; then 30580 as_fn_error $? "python3 not found" "$LINENO" 5 30581 fi 30582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module lxml" >&5 30583$as_echo_n "checking for python module lxml... " >&6; } 30584 $PYTHON3 -c "import lxml;" 30585 if test $? -ne 0 ; then 30586 as_fn_error $? "not found" "$LINENO" 5 30587 fi 30588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30589$as_echo "yes" >&6; } 30590 if test "x$KHRONOS_SPEC_DIR" = "xauto" ; then 30591 30592pkg_failed=no 30593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for KHRONOS_OPENGL_REGISTRY" >&5 30594$as_echo_n "checking for KHRONOS_OPENGL_REGISTRY... " >&6; } 30595 30596if test -n "$KHRONOS_OPENGL_REGISTRY_CFLAGS"; then 30597 pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS="$KHRONOS_OPENGL_REGISTRY_CFLAGS" 30598 elif test -n "$PKG_CONFIG"; then 30599 if test -n "$PKG_CONFIG" && \ 30600 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5 30601 ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5 30602 ac_status=$? 30603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30604 test $ac_status = 0; }; then 30605 pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS=`$PKG_CONFIG --cflags "khronos-opengl-registry" 2>/dev/null` 30606 test "x$?" != "x0" && pkg_failed=yes 30607else 30608 pkg_failed=yes 30609fi 30610 else 30611 pkg_failed=untried 30612fi 30613if test -n "$KHRONOS_OPENGL_REGISTRY_LIBS"; then 30614 pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS="$KHRONOS_OPENGL_REGISTRY_LIBS" 30615 elif test -n "$PKG_CONFIG"; then 30616 if test -n "$PKG_CONFIG" && \ 30617 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5 30618 ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5 30619 ac_status=$? 30620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30621 test $ac_status = 0; }; then 30622 pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS=`$PKG_CONFIG --libs "khronos-opengl-registry" 2>/dev/null` 30623 test "x$?" != "x0" && pkg_failed=yes 30624else 30625 pkg_failed=yes 30626fi 30627 else 30628 pkg_failed=untried 30629fi 30630 30631 30632 30633if test $pkg_failed = yes; then 30634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30635$as_echo "no" >&6; } 30636 30637if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30638 _pkg_short_errors_supported=yes 30639else 30640 _pkg_short_errors_supported=no 30641fi 30642 if test $_pkg_short_errors_supported = yes; then 30643 KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "khronos-opengl-registry" 2>&1` 30644 else 30645 KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "khronos-opengl-registry" 2>&1` 30646 fi 30647 # Put the nasty error message in config.log where it belongs 30648 echo "$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS" >&5 30649 30650 as_fn_error $? "Package requirements (khronos-opengl-registry) were not met: 30651 30652$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS 30653 30654Consider adjusting the PKG_CONFIG_PATH environment variable if you 30655installed software in a non-standard prefix. 30656 30657Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS 30658and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config. 30659See the pkg-config man page for more details." "$LINENO" 5 30660elif test $pkg_failed = untried; then 30661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30662$as_echo "no" >&6; } 30663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30665as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30666is in your PATH or set the PKG_CONFIG environment variable to the full 30667path to pkg-config. 30668 30669Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS 30670and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config. 30671See the pkg-config man page for more details. 30672 30673To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30674See \`config.log' for more details" "$LINENO" 5; } 30675else 30676 KHRONOS_OPENGL_REGISTRY_CFLAGS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS 30677 KHRONOS_OPENGL_REGISTRY_LIBS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS 30678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30679$as_echo "yes" >&6; } 30680 30681fi 30682 KHRONOS_SPEC_DIR=`pkg-config khronos-opengl-registry --variable=specdir` 30683 fi 30684 30685 fi 30686 30687fi 30688 if test "x$XWIN" = xyes; then 30689 XWIN_TRUE= 30690 XWIN_FALSE='#' 30691else 30692 XWIN_TRUE='#' 30693 XWIN_FALSE= 30694fi 30695 30696 if test "x$XWIN" = xyes && test "x$WINDOWSWM" = xyes; then 30697 XWIN_MULTIWINDOWEXTWM_TRUE= 30698 XWIN_MULTIWINDOWEXTWM_FALSE='#' 30699else 30700 XWIN_MULTIWINDOWEXTWM_TRUE='#' 30701 XWIN_MULTIWINDOWEXTWM_FALSE= 30702fi 30703 30704 if test "x$XWIN" = xyes && test "x$GLX" = xyes; then 30705 XWIN_GLX_WINDOWS_TRUE= 30706 XWIN_GLX_WINDOWS_FALSE='#' 30707else 30708 XWIN_GLX_WINDOWS_TRUE='#' 30709 XWIN_GLX_WINDOWS_FALSE= 30710fi 30711 30712 if test "x$XWIN" = xyes && test "x$WINDOWSDRI" = xyes; then 30713 XWIN_WINDOWS_DRI_TRUE= 30714 XWIN_WINDOWS_DRI_FALSE='#' 30715else 30716 XWIN_WINDOWS_DRI_TRUE='#' 30717 XWIN_WINDOWS_DRI_FALSE= 30718fi 30719 30720 30721if test "x$XQUARTZ" = xyes; then 30722 30723$as_echo "#define XQUARTZ 1" >>confdefs.h 30724 30725 30726$as_echo "#define ROOTLESS 1" >>confdefs.h 30727 30728 30729 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" 30730 30731 30732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xp_init in -lXplugin" >&5 30733$as_echo_n "checking for xp_init in -lXplugin... " >&6; } 30734if ${ac_cv_lib_Xplugin_xp_init+:} false; then : 30735 $as_echo_n "(cached) " >&6 30736else 30737 ac_check_lib_save_LIBS=$LIBS 30738LIBS="-lXplugin $LIBS" 30739cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30740/* end confdefs.h. */ 30741 30742/* Override any GCC internal prototype to avoid an error. 30743 Use char because int might match the return type of a GCC 30744 builtin and then its argument prototype would still apply. */ 30745#ifdef __cplusplus 30746extern "C" 30747#endif 30748char xp_init (); 30749int 30750main () 30751{ 30752return xp_init (); 30753 ; 30754 return 0; 30755} 30756_ACEOF 30757if ac_fn_c_try_link "$LINENO"; then : 30758 ac_cv_lib_Xplugin_xp_init=yes 30759else 30760 ac_cv_lib_Xplugin_xp_init=no 30761fi 30762rm -f core conftest.err conftest.$ac_objext \ 30763 conftest$ac_exeext conftest.$ac_ext 30764LIBS=$ac_check_lib_save_LIBS 30765fi 30766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xplugin_xp_init" >&5 30767$as_echo "$ac_cv_lib_Xplugin_xp_init" >&6; } 30768if test "x$ac_cv_lib_Xplugin_xp_init" = xyes; then : 30769 : 30770fi 30771 30772 30773 CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA" 30774 30775 30776pkg_failed=no 30777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPBPROXY" >&5 30778$as_echo_n "checking for XPBPROXY... " >&6; } 30779 30780if test -n "$XPBPROXY_CFLAGS"; then 30781 pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS" 30782 elif test -n "$PKG_CONFIG"; then 30783 if test -n "$PKG_CONFIG" && \ 30784 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5 30785 ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5 30786 ac_status=$? 30787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30788 test $ac_status = 0; }; then 30789 pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null` 30790 test "x$?" != "x0" && pkg_failed=yes 30791else 30792 pkg_failed=yes 30793fi 30794 else 30795 pkg_failed=untried 30796fi 30797if test -n "$XPBPROXY_LIBS"; then 30798 pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS" 30799 elif test -n "$PKG_CONFIG"; then 30800 if test -n "$PKG_CONFIG" && \ 30801 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5 30802 ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5 30803 ac_status=$? 30804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30805 test $ac_status = 0; }; then 30806 pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null` 30807 test "x$?" != "x0" && pkg_failed=yes 30808else 30809 pkg_failed=yes 30810fi 30811 else 30812 pkg_failed=untried 30813fi 30814 30815 30816 30817if test $pkg_failed = yes; then 30818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30819$as_echo "no" >&6; } 30820 30821if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30822 _pkg_short_errors_supported=yes 30823else 30824 _pkg_short_errors_supported=no 30825fi 30826 if test $_pkg_short_errors_supported = yes; then 30827 XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1` 30828 else 30829 XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1` 30830 fi 30831 # Put the nasty error message in config.log where it belongs 30832 echo "$XPBPROXY_PKG_ERRORS" >&5 30833 30834 as_fn_error $? "Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met: 30835 30836$XPBPROXY_PKG_ERRORS 30837 30838Consider adjusting the PKG_CONFIG_PATH environment variable if you 30839installed software in a non-standard prefix. 30840 30841Alternatively, you may set the environment variables XPBPROXY_CFLAGS 30842and XPBPROXY_LIBS to avoid the need to call pkg-config. 30843See the pkg-config man page for more details." "$LINENO" 5 30844elif test $pkg_failed = untried; then 30845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30846$as_echo "no" >&6; } 30847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30848$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30849as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30850is in your PATH or set the PKG_CONFIG environment variable to the full 30851path to pkg-config. 30852 30853Alternatively, you may set the environment variables XPBPROXY_CFLAGS 30854and XPBPROXY_LIBS to avoid the need to call pkg-config. 30855See the pkg-config man page for more details. 30856 30857To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30858See \`config.log' for more details" "$LINENO" 5; } 30859else 30860 XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS 30861 XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS 30862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30863$as_echo "yes" >&6; } 30864 30865fi 30866 30867 if test "x$XQUARTZ_SPARKLE" = xyes ; then 30868 30869$as_echo "#define XQUARTZ_SPARKLE 1" >>confdefs.h 30870 30871 fi 30872 30873 if test "x$STANDALONE_XPBPROXY" = xyes ; then 30874 30875$as_echo "#define STANDALONE_XPBPROXY 1" >>confdefs.h 30876 30877 fi 30878fi 30879 30880 if test "x$XQUARTZ" = xyes -o "x$XWIN" = xyes ; then 30881 PSEUDORAMIX_TRUE= 30882 PSEUDORAMIX_FALSE='#' 30883else 30884 PSEUDORAMIX_TRUE='#' 30885 PSEUDORAMIX_FALSE= 30886fi 30887 30888 30889# Support for objc in autotools is minimal and not documented. 30890OBJC='$(CC)' 30891OBJCLD='$(CCLD)' 30892OBJCLINK='$(LINK)' 30893OBJCFLAGS='$(CFLAGS)' 30894 30895 30896 30897 30898# internal, undocumented automake func follows :( 30899 30900depcc="$OBJC" am_compiler_list='gcc3 gcc' 30901 30902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 30903$as_echo_n "checking dependency style of $depcc... " >&6; } 30904if ${am_cv_OBJC_dependencies_compiler_type+:} false; then : 30905 $as_echo_n "(cached) " >&6 30906else 30907 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 30908 # We make a subdir and do the tests there. Otherwise we can end up 30909 # making bogus files that we don't know about and never remove. For 30910 # instance it was reported that on HP-UX the gcc test will end up 30911 # making a dummy file named 'D' -- because '-MD' means "put the output 30912 # in D". 30913 rm -rf conftest.dir 30914 mkdir conftest.dir 30915 # Copy depcomp to subdir because otherwise we won't find it if we're 30916 # using a relative directory. 30917 cp "$am_depcomp" conftest.dir 30918 cd conftest.dir 30919 # We will build objects and dependencies in a subdirectory because 30920 # it helps to detect inapplicable dependency modes. For instance 30921 # both Tru64's cc and ICC support -MD to output dependencies as a 30922 # side effect of compilation, but ICC will put the dependencies in 30923 # the current directory while Tru64 will put them in the object 30924 # directory. 30925 mkdir sub 30926 30927 am_cv_OBJC_dependencies_compiler_type=none 30928 if test "$am_compiler_list" = ""; then 30929 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 30930 fi 30931 am__universal=false 30932 30933 30934 for depmode in $am_compiler_list; do 30935 # Setup a source with many dependencies, because some compilers 30936 # like to wrap large dependency lists on column 80 (with \), and 30937 # we should not choose a depcomp mode which is confused by this. 30938 # 30939 # We need to recreate these files for each test, as the compiler may 30940 # overwrite some of them when testing with obscure command lines. 30941 # This happens at least with the AIX C compiler. 30942 : > sub/conftest.c 30943 for i in 1 2 3 4 5 6; do 30944 echo '#include "conftst'$i'.h"' >> sub/conftest.c 30945 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 30946 # Solaris 10 /bin/sh. 30947 echo '/* dummy */' > sub/conftst$i.h 30948 done 30949 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 30950 30951 # We check with '-c' and '-o' for the sake of the "dashmstdout" 30952 # mode. It turns out that the SunPro C++ compiler does not properly 30953 # handle '-M -o', and we need to detect this. Also, some Intel 30954 # versions had trouble with output in subdirs. 30955 am__obj=sub/conftest.${OBJEXT-o} 30956 am__minus_obj="-o $am__obj" 30957 case $depmode in 30958 gcc) 30959 # This depmode causes a compiler race in universal mode. 30960 test "$am__universal" = false || continue 30961 ;; 30962 nosideeffect) 30963 # After this tag, mechanisms are not by side-effect, so they'll 30964 # only be used when explicitly requested. 30965 if test "x$enable_dependency_tracking" = xyes; then 30966 continue 30967 else 30968 break 30969 fi 30970 ;; 30971 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 30972 # This compiler won't grok '-c -o', but also, the minuso test has 30973 # not run yet. These depmodes are late enough in the game, and 30974 # so weak that their functioning should not be impacted. 30975 am__obj=conftest.${OBJEXT-o} 30976 am__minus_obj= 30977 ;; 30978 none) break ;; 30979 esac 30980 if depmode=$depmode \ 30981 source=sub/conftest.c object=$am__obj \ 30982 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 30983 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 30984 >/dev/null 2>conftest.err && 30985 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 30986 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 30987 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 30988 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 30989 # icc doesn't choke on unknown options, it will just issue warnings 30990 # or remarks (even with -Werror). So we grep stderr for any message 30991 # that says an option was ignored or not supported. 30992 # When given -MP, icc 7.0 and 7.1 complain thusly: 30993 # icc: Command line warning: ignoring option '-M'; no argument required 30994 # The diagnosis changed in icc 8.0: 30995 # icc: Command line remark: option '-MP' not supported 30996 if (grep 'ignoring option' conftest.err || 30997 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 30998 am_cv_OBJC_dependencies_compiler_type=$depmode 30999 break 31000 fi 31001 fi 31002 done 31003 31004 cd .. 31005 rm -rf conftest.dir 31006else 31007 am_cv_OBJC_dependencies_compiler_type=none 31008fi 31009 31010fi 31011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 31012$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } 31013OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type 31014 31015 if 31016 test "x$enable_dependency_tracking" != xno \ 31017 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then 31018 am__fastdepOBJC_TRUE= 31019 am__fastdepOBJC_FALSE='#' 31020else 31021 am__fastdepOBJC_TRUE='#' 31022 am__fastdepOBJC_FALSE= 31023fi 31024 31025 31026 if test "x$XQUARTZ" = xyes; then 31027 XQUARTZ_TRUE= 31028 XQUARTZ_FALSE='#' 31029else 31030 XQUARTZ_TRUE='#' 31031 XQUARTZ_FALSE= 31032fi 31033 31034 if test "x$XQUARTZ_SPARKLE" != "xno"; then 31035 XQUARTZ_SPARKLE_TRUE= 31036 XQUARTZ_SPARKLE_FALSE='#' 31037else 31038 XQUARTZ_SPARKLE_TRUE='#' 31039 XQUARTZ_SPARKLE_FALSE= 31040fi 31041 31042 if test "x$STANDALONE_XPBPROXY" = xyes; then 31043 STANDALONE_XPBPROXY_TRUE= 31044 STANDALONE_XPBPROXY_FALSE='#' 31045else 31046 STANDALONE_XPBPROXY_TRUE='#' 31047 STANDALONE_XPBPROXY_FALSE= 31048fi 31049 31050 31051 31052pkg_failed=no 31053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXMODULES" >&5 31054$as_echo_n "checking for DMXMODULES... " >&6; } 31055 31056if test -n "$DMXMODULES_CFLAGS"; then 31057 pkg_cv_DMXMODULES_CFLAGS="$DMXMODULES_CFLAGS" 31058 elif test -n "$PKG_CONFIG"; then 31059 if test -n "$PKG_CONFIG" && \ 31060 { { $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 31061 ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5 31062 ac_status=$? 31063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31064 test $ac_status = 0; }; then 31065 pkg_cv_DMXMODULES_CFLAGS=`$PKG_CONFIG --cflags "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null` 31066 test "x$?" != "x0" && pkg_failed=yes 31067else 31068 pkg_failed=yes 31069fi 31070 else 31071 pkg_failed=untried 31072fi 31073if test -n "$DMXMODULES_LIBS"; then 31074 pkg_cv_DMXMODULES_LIBS="$DMXMODULES_LIBS" 31075 elif test -n "$PKG_CONFIG"; then 31076 if test -n "$PKG_CONFIG" && \ 31077 { { $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 31078 ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5 31079 ac_status=$? 31080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31081 test $ac_status = 0; }; then 31082 pkg_cv_DMXMODULES_LIBS=`$PKG_CONFIG --libs "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null` 31083 test "x$?" != "x0" && pkg_failed=yes 31084else 31085 pkg_failed=yes 31086fi 31087 else 31088 pkg_failed=untried 31089fi 31090 31091 31092 31093if test $pkg_failed = yes; then 31094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31095$as_echo "no" >&6; } 31096 31097if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31098 _pkg_short_errors_supported=yes 31099else 31100 _pkg_short_errors_supported=no 31101fi 31102 if test $_pkg_short_errors_supported = yes; then 31103 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` 31104 else 31105 DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1` 31106 fi 31107 # Put the nasty error message in config.log where it belongs 31108 echo "$DMXMODULES_PKG_ERRORS" >&5 31109 31110 have_dmx=no 31111elif test $pkg_failed = untried; then 31112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31113$as_echo "no" >&6; } 31114 have_dmx=no 31115else 31116 DMXMODULES_CFLAGS=$pkg_cv_DMXMODULES_CFLAGS 31117 DMXMODULES_LIBS=$pkg_cv_DMXMODULES_LIBS 31118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31119$as_echo "yes" >&6; } 31120 31121pkg_failed=no 31122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMXCONFIG_DEP" >&5 31123$as_echo_n "checking for XDMXCONFIG_DEP... " >&6; } 31124 31125if test -n "$XDMXCONFIG_DEP_CFLAGS"; then 31126 pkg_cv_XDMXCONFIG_DEP_CFLAGS="$XDMXCONFIG_DEP_CFLAGS" 31127 elif test -n "$PKG_CONFIG"; then 31128 if test -n "$PKG_CONFIG" && \ 31129 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5 31130 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5 31131 ac_status=$? 31132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31133 test $ac_status = 0; }; then 31134 pkg_cv_XDMXCONFIG_DEP_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt xpm x11" 2>/dev/null` 31135 test "x$?" != "x0" && pkg_failed=yes 31136else 31137 pkg_failed=yes 31138fi 31139 else 31140 pkg_failed=untried 31141fi 31142if test -n "$XDMXCONFIG_DEP_LIBS"; then 31143 pkg_cv_XDMXCONFIG_DEP_LIBS="$XDMXCONFIG_DEP_LIBS" 31144 elif test -n "$PKG_CONFIG"; then 31145 if test -n "$PKG_CONFIG" && \ 31146 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5 31147 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5 31148 ac_status=$? 31149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31150 test $ac_status = 0; }; then 31151 pkg_cv_XDMXCONFIG_DEP_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt xpm x11" 2>/dev/null` 31152 test "x$?" != "x0" && pkg_failed=yes 31153else 31154 pkg_failed=yes 31155fi 31156 else 31157 pkg_failed=untried 31158fi 31159 31160 31161 31162if test $pkg_failed = yes; then 31163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31164$as_echo "no" >&6; } 31165 31166if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31167 _pkg_short_errors_supported=yes 31168else 31169 _pkg_short_errors_supported=no 31170fi 31171 if test $_pkg_short_errors_supported = yes; then 31172 XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt xpm x11" 2>&1` 31173 else 31174 XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt xpm x11" 2>&1` 31175 fi 31176 # Put the nasty error message in config.log where it belongs 31177 echo "$XDMXCONFIG_DEP_PKG_ERRORS" >&5 31178 31179 have_dmx=no 31180elif test $pkg_failed = untried; then 31181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31182$as_echo "no" >&6; } 31183 have_dmx=no 31184else 31185 XDMXCONFIG_DEP_CFLAGS=$pkg_cv_XDMXCONFIG_DEP_CFLAGS 31186 XDMXCONFIG_DEP_LIBS=$pkg_cv_XDMXCONFIG_DEP_LIBS 31187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31188$as_echo "yes" >&6; } 31189 have_dmx=yes 31190fi 31191fi 31192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xdmx DDX" >&5 31193$as_echo_n "checking whether to build Xdmx DDX... " >&6; } 31194if test "x$DMX" = xauto; then 31195 DMX="$have_dmx" 31196 case $host_os in 31197 cygwin*) DMX="no" ;; 31198 mingw*) DMX="no" ;; 31199 darwin*) DMX="no" ;; 31200 esac 31201fi 31202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMX" >&5 31203$as_echo "$DMX" >&6; } 31204 if test "x$DMX" = xyes; then 31205 DMX_TRUE= 31206 DMX_FALSE='#' 31207else 31208 DMX_TRUE='#' 31209 DMX_FALSE= 31210fi 31211 31212 31213if test "x$DMX" = xyes; then 31214 if test "x$have_dmx" = xno; then 31215 as_fn_error $? "Xdmx build explicitly requested, but required 31216 modules not found." "$LINENO" 5 31217 fi 31218 DMX_INCLUDES="$XEXT_INC $RENDER_INC $RECORD_INC" 31219 XDMX_CFLAGS="$DMXMODULES_CFLAGS" 31220 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 $CONFIG_LIB $OS_LIB $FIXES_LIB" 31221 XDMX_SYS_LIBS="$DMXMODULES_LIBS" 31222 31223 31224 31225 31226 ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default" 31227if test "x$ac_cv_header_linux_input_h" = xyes; then : 31228 DMX_BUILD_USB="yes" 31229else 31230 DMX_BUILD_USB="no" 31231fi 31232 31233 31234 31235 31236 31237pkg_failed=no 31238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXEXAMPLES_DEP" >&5 31239$as_echo_n "checking for DMXEXAMPLES_DEP... " >&6; } 31240 31241if test -n "$DMXEXAMPLES_DEP_CFLAGS"; then 31242 pkg_cv_DMXEXAMPLES_DEP_CFLAGS="$DMXEXAMPLES_DEP_CFLAGS" 31243 elif test -n "$PKG_CONFIG"; then 31244 if test -n "$PKG_CONFIG" && \ 31245 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5 31246 ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5 31247 ac_status=$? 31248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31249 test $ac_status = 0; }; then 31250 pkg_cv_DMXEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXEXT x11" 2>/dev/null` 31251 test "x$?" != "x0" && pkg_failed=yes 31252else 31253 pkg_failed=yes 31254fi 31255 else 31256 pkg_failed=untried 31257fi 31258if test -n "$DMXEXAMPLES_DEP_LIBS"; then 31259 pkg_cv_DMXEXAMPLES_DEP_LIBS="$DMXEXAMPLES_DEP_LIBS" 31260 elif test -n "$PKG_CONFIG"; then 31261 if test -n "$PKG_CONFIG" && \ 31262 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5 31263 ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5 31264 ac_status=$? 31265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31266 test $ac_status = 0; }; then 31267 pkg_cv_DMXEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXEXT x11" 2>/dev/null` 31268 test "x$?" != "x0" && pkg_failed=yes 31269else 31270 pkg_failed=yes 31271fi 31272 else 31273 pkg_failed=untried 31274fi 31275 31276 31277 31278if test $pkg_failed = yes; then 31279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31280$as_echo "no" >&6; } 31281 31282if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31283 _pkg_short_errors_supported=yes 31284else 31285 _pkg_short_errors_supported=no 31286fi 31287 if test $_pkg_short_errors_supported = yes; then 31288 DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX $LIBXEXT x11" 2>&1` 31289 else 31290 DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX $LIBXEXT x11" 2>&1` 31291 fi 31292 # Put the nasty error message in config.log where it belongs 31293 echo "$DMXEXAMPLES_DEP_PKG_ERRORS" >&5 31294 31295 as_fn_error $? "Package requirements ($LIBDMX $LIBXEXT x11) were not met: 31296 31297$DMXEXAMPLES_DEP_PKG_ERRORS 31298 31299Consider adjusting the PKG_CONFIG_PATH environment variable if you 31300installed software in a non-standard prefix. 31301 31302Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS 31303and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31304See the pkg-config man page for more details." "$LINENO" 5 31305elif test $pkg_failed = untried; then 31306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31307$as_echo "no" >&6; } 31308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31310as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31311is in your PATH or set the PKG_CONFIG environment variable to the full 31312path to pkg-config. 31313 31314Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS 31315and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31316See the pkg-config man page for more details. 31317 31318To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31319See \`config.log' for more details" "$LINENO" 5; } 31320else 31321 DMXEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXEXAMPLES_DEP_CFLAGS 31322 DMXEXAMPLES_DEP_LIBS=$pkg_cv_DMXEXAMPLES_DEP_LIBS 31323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31324$as_echo "yes" >&6; } 31325 31326fi 31327 31328 31329pkg_failed=no 31330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXMUEXAMPLES_DEP" >&5 31331$as_echo_n "checking for DMXXMUEXAMPLES_DEP... " >&6; } 31332 31333if test -n "$DMXXMUEXAMPLES_DEP_CFLAGS"; then 31334 pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS="$DMXXMUEXAMPLES_DEP_CFLAGS" 31335 elif test -n "$PKG_CONFIG"; then 31336 if test -n "$PKG_CONFIG" && \ 31337 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5 31338 ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5 31339 ac_status=$? 31340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31341 test $ac_status = 0; }; then 31342 pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null` 31343 test "x$?" != "x0" && pkg_failed=yes 31344else 31345 pkg_failed=yes 31346fi 31347 else 31348 pkg_failed=untried 31349fi 31350if test -n "$DMXXMUEXAMPLES_DEP_LIBS"; then 31351 pkg_cv_DMXXMUEXAMPLES_DEP_LIBS="$DMXXMUEXAMPLES_DEP_LIBS" 31352 elif test -n "$PKG_CONFIG"; then 31353 if test -n "$PKG_CONFIG" && \ 31354 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5 31355 ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5 31356 ac_status=$? 31357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31358 test $ac_status = 0; }; then 31359 pkg_cv_DMXXMUEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null` 31360 test "x$?" != "x0" && pkg_failed=yes 31361else 31362 pkg_failed=yes 31363fi 31364 else 31365 pkg_failed=untried 31366fi 31367 31368 31369 31370if test $pkg_failed = yes; then 31371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31372$as_echo "no" >&6; } 31373 31374if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31375 _pkg_short_errors_supported=yes 31376else 31377 _pkg_short_errors_supported=no 31378fi 31379 if test $_pkg_short_errors_supported = yes; then 31380 DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX xmu $LIBXEXT x11" 2>&1` 31381 else 31382 DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX xmu $LIBXEXT x11" 2>&1` 31383 fi 31384 # Put the nasty error message in config.log where it belongs 31385 echo "$DMXXMUEXAMPLES_DEP_PKG_ERRORS" >&5 31386 31387 as_fn_error $? "Package requirements ($LIBDMX xmu $LIBXEXT x11) were not met: 31388 31389$DMXXMUEXAMPLES_DEP_PKG_ERRORS 31390 31391Consider adjusting the PKG_CONFIG_PATH environment variable if you 31392installed software in a non-standard prefix. 31393 31394Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS 31395and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31396See the pkg-config man page for more details." "$LINENO" 5 31397elif test $pkg_failed = untried; then 31398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31399$as_echo "no" >&6; } 31400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31402as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31403is in your PATH or set the PKG_CONFIG environment variable to the full 31404path to pkg-config. 31405 31406Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS 31407and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31408See the pkg-config man page for more details. 31409 31410To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31411See \`config.log' for more details" "$LINENO" 5; } 31412else 31413 DMXXMUEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS 31414 DMXXMUEXAMPLES_DEP_LIBS=$pkg_cv_DMXXMUEXAMPLES_DEP_LIBS 31415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31416$as_echo "yes" >&6; } 31417 31418fi 31419 31420 31421pkg_failed=no 31422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXIEXAMPLES_DEP" >&5 31423$as_echo_n "checking for DMXXIEXAMPLES_DEP... " >&6; } 31424 31425if test -n "$DMXXIEXAMPLES_DEP_CFLAGS"; then 31426 pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS="$DMXXIEXAMPLES_DEP_CFLAGS" 31427 elif test -n "$PKG_CONFIG"; then 31428 if test -n "$PKG_CONFIG" && \ 31429 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5 31430 ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5 31431 ac_status=$? 31432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31433 test $ac_status = 0; }; then 31434 pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null` 31435 test "x$?" != "x0" && pkg_failed=yes 31436else 31437 pkg_failed=yes 31438fi 31439 else 31440 pkg_failed=untried 31441fi 31442if test -n "$DMXXIEXAMPLES_DEP_LIBS"; then 31443 pkg_cv_DMXXIEXAMPLES_DEP_LIBS="$DMXXIEXAMPLES_DEP_LIBS" 31444 elif test -n "$PKG_CONFIG"; then 31445 if test -n "$PKG_CONFIG" && \ 31446 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5 31447 ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5 31448 ac_status=$? 31449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31450 test $ac_status = 0; }; then 31451 pkg_cv_DMXXIEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null` 31452 test "x$?" != "x0" && pkg_failed=yes 31453else 31454 pkg_failed=yes 31455fi 31456 else 31457 pkg_failed=untried 31458fi 31459 31460 31461 31462if test $pkg_failed = yes; then 31463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31464$as_echo "no" >&6; } 31465 31466if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31467 _pkg_short_errors_supported=yes 31468else 31469 _pkg_short_errors_supported=no 31470fi 31471 if test $_pkg_short_errors_supported = yes; then 31472 DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1` 31473 else 31474 DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1` 31475 fi 31476 # Put the nasty error message in config.log where it belongs 31477 echo "$DMXXIEXAMPLES_DEP_PKG_ERRORS" >&5 31478 31479 as_fn_error $? "Package requirements ($LIBDMX $LIBXI $LIBXEXT x11) were not met: 31480 31481$DMXXIEXAMPLES_DEP_PKG_ERRORS 31482 31483Consider adjusting the PKG_CONFIG_PATH environment variable if you 31484installed software in a non-standard prefix. 31485 31486Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS 31487and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31488See the pkg-config man page for more details." "$LINENO" 5 31489elif test $pkg_failed = untried; then 31490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31491$as_echo "no" >&6; } 31492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31494as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31495is in your PATH or set the PKG_CONFIG environment variable to the full 31496path to pkg-config. 31497 31498Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS 31499and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31500See the pkg-config man page for more details. 31501 31502To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31503See \`config.log' for more details" "$LINENO" 5; } 31504else 31505 DMXXIEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS 31506 DMXXIEXAMPLES_DEP_LIBS=$pkg_cv_DMXXIEXAMPLES_DEP_LIBS 31507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31508$as_echo "yes" >&6; } 31509 31510fi 31511 31512 31513pkg_failed=no 31514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTSTEXAMPLES_DEP" >&5 31515$as_echo_n "checking for XTSTEXAMPLES_DEP... " >&6; } 31516 31517if test -n "$XTSTEXAMPLES_DEP_CFLAGS"; then 31518 pkg_cv_XTSTEXAMPLES_DEP_CFLAGS="$XTSTEXAMPLES_DEP_CFLAGS" 31519 elif test -n "$PKG_CONFIG"; then 31520 if test -n "$PKG_CONFIG" && \ 31521 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5 31522 ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5 31523 ac_status=$? 31524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31525 test $ac_status = 0; }; then 31526 pkg_cv_XTSTEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXTST $LIBXEXT x11" 2>/dev/null` 31527 test "x$?" != "x0" && pkg_failed=yes 31528else 31529 pkg_failed=yes 31530fi 31531 else 31532 pkg_failed=untried 31533fi 31534if test -n "$XTSTEXAMPLES_DEP_LIBS"; then 31535 pkg_cv_XTSTEXAMPLES_DEP_LIBS="$XTSTEXAMPLES_DEP_LIBS" 31536 elif test -n "$PKG_CONFIG"; then 31537 if test -n "$PKG_CONFIG" && \ 31538 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5 31539 ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5 31540 ac_status=$? 31541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31542 test $ac_status = 0; }; then 31543 pkg_cv_XTSTEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXTST $LIBXEXT x11" 2>/dev/null` 31544 test "x$?" != "x0" && pkg_failed=yes 31545else 31546 pkg_failed=yes 31547fi 31548 else 31549 pkg_failed=untried 31550fi 31551 31552 31553 31554if test $pkg_failed = yes; then 31555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31556$as_echo "no" >&6; } 31557 31558if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31559 _pkg_short_errors_supported=yes 31560else 31561 _pkg_short_errors_supported=no 31562fi 31563 if test $_pkg_short_errors_supported = yes; then 31564 XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXTST $LIBXEXT x11" 2>&1` 31565 else 31566 XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXTST $LIBXEXT x11" 2>&1` 31567 fi 31568 # Put the nasty error message in config.log where it belongs 31569 echo "$XTSTEXAMPLES_DEP_PKG_ERRORS" >&5 31570 31571 as_fn_error $? "Package requirements ($LIBXTST $LIBXEXT x11) were not met: 31572 31573$XTSTEXAMPLES_DEP_PKG_ERRORS 31574 31575Consider adjusting the PKG_CONFIG_PATH environment variable if you 31576installed software in a non-standard prefix. 31577 31578Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS 31579and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31580See the pkg-config man page for more details." "$LINENO" 5 31581elif test $pkg_failed = untried; then 31582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31583$as_echo "no" >&6; } 31584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31586as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31587is in your PATH or set the PKG_CONFIG environment variable to the full 31588path to pkg-config. 31589 31590Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS 31591and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31592See the pkg-config man page for more details. 31593 31594To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31595See \`config.log' for more details" "$LINENO" 5; } 31596else 31597 XTSTEXAMPLES_DEP_CFLAGS=$pkg_cv_XTSTEXAMPLES_DEP_CFLAGS 31598 XTSTEXAMPLES_DEP_LIBS=$pkg_cv_XTSTEXAMPLES_DEP_LIBS 31599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31600$as_echo "yes" >&6; } 31601 31602fi 31603 31604 31605pkg_failed=no 31606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRESEXAMPLES_DEP" >&5 31607$as_echo_n "checking for XRESEXAMPLES_DEP... " >&6; } 31608 31609if test -n "$XRESEXAMPLES_DEP_CFLAGS"; then 31610 pkg_cv_XRESEXAMPLES_DEP_CFLAGS="$XRESEXAMPLES_DEP_CFLAGS" 31611 elif test -n "$PKG_CONFIG"; then 31612 if test -n "$PKG_CONFIG" && \ 31613 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\""; } >&5 31614 ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5 31615 ac_status=$? 31616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31617 test $ac_status = 0; }; then 31618 pkg_cv_XRESEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "xres $LIBXEXT x11" 2>/dev/null` 31619 test "x$?" != "x0" && pkg_failed=yes 31620else 31621 pkg_failed=yes 31622fi 31623 else 31624 pkg_failed=untried 31625fi 31626if test -n "$XRESEXAMPLES_DEP_LIBS"; then 31627 pkg_cv_XRESEXAMPLES_DEP_LIBS="$XRESEXAMPLES_DEP_LIBS" 31628 elif test -n "$PKG_CONFIG"; then 31629 if test -n "$PKG_CONFIG" && \ 31630 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\""; } >&5 31631 ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5 31632 ac_status=$? 31633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31634 test $ac_status = 0; }; then 31635 pkg_cv_XRESEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "xres $LIBXEXT x11" 2>/dev/null` 31636 test "x$?" != "x0" && pkg_failed=yes 31637else 31638 pkg_failed=yes 31639fi 31640 else 31641 pkg_failed=untried 31642fi 31643 31644 31645 31646if test $pkg_failed = yes; then 31647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31648$as_echo "no" >&6; } 31649 31650if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31651 _pkg_short_errors_supported=yes 31652else 31653 _pkg_short_errors_supported=no 31654fi 31655 if test $_pkg_short_errors_supported = yes; then 31656 XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xres $LIBXEXT x11" 2>&1` 31657 else 31658 XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xres $LIBXEXT x11" 2>&1` 31659 fi 31660 # Put the nasty error message in config.log where it belongs 31661 echo "$XRESEXAMPLES_DEP_PKG_ERRORS" >&5 31662 31663 as_fn_error $? "Package requirements (xres $LIBXEXT x11) were not met: 31664 31665$XRESEXAMPLES_DEP_PKG_ERRORS 31666 31667Consider adjusting the PKG_CONFIG_PATH environment variable if you 31668installed software in a non-standard prefix. 31669 31670Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS 31671and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31672See the pkg-config man page for more details." "$LINENO" 5 31673elif test $pkg_failed = untried; then 31674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31675$as_echo "no" >&6; } 31676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31678as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31679is in your PATH or set the PKG_CONFIG environment variable to the full 31680path to pkg-config. 31681 31682Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS 31683and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31684See the pkg-config man page for more details. 31685 31686To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31687See \`config.log' for more details" "$LINENO" 5; } 31688else 31689 XRESEXAMPLES_DEP_CFLAGS=$pkg_cv_XRESEXAMPLES_DEP_CFLAGS 31690 XRESEXAMPLES_DEP_LIBS=$pkg_cv_XRESEXAMPLES_DEP_LIBS 31691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31692$as_echo "yes" >&6; } 31693 31694fi 31695 31696 31697pkg_failed=no 31698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11EXAMPLES_DEP" >&5 31699$as_echo_n "checking for X11EXAMPLES_DEP... " >&6; } 31700 31701if test -n "$X11EXAMPLES_DEP_CFLAGS"; then 31702 pkg_cv_X11EXAMPLES_DEP_CFLAGS="$X11EXAMPLES_DEP_CFLAGS" 31703 elif test -n "$PKG_CONFIG"; then 31704 if test -n "$PKG_CONFIG" && \ 31705 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5 31706 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5 31707 ac_status=$? 31708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31709 test $ac_status = 0; }; then 31710 pkg_cv_X11EXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11" 2>/dev/null` 31711 test "x$?" != "x0" && pkg_failed=yes 31712else 31713 pkg_failed=yes 31714fi 31715 else 31716 pkg_failed=untried 31717fi 31718if test -n "$X11EXAMPLES_DEP_LIBS"; then 31719 pkg_cv_X11EXAMPLES_DEP_LIBS="$X11EXAMPLES_DEP_LIBS" 31720 elif test -n "$PKG_CONFIG"; then 31721 if test -n "$PKG_CONFIG" && \ 31722 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5 31723 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5 31724 ac_status=$? 31725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31726 test $ac_status = 0; }; then 31727 pkg_cv_X11EXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11" 2>/dev/null` 31728 test "x$?" != "x0" && pkg_failed=yes 31729else 31730 pkg_failed=yes 31731fi 31732 else 31733 pkg_failed=untried 31734fi 31735 31736 31737 31738if test $pkg_failed = yes; then 31739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31740$as_echo "no" >&6; } 31741 31742if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31743 _pkg_short_errors_supported=yes 31744else 31745 _pkg_short_errors_supported=no 31746fi 31747 if test $_pkg_short_errors_supported = yes; then 31748 X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11" 2>&1` 31749 else 31750 X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11" 2>&1` 31751 fi 31752 # Put the nasty error message in config.log where it belongs 31753 echo "$X11EXAMPLES_DEP_PKG_ERRORS" >&5 31754 31755 as_fn_error $? "Package requirements ($LIBXEXT x11) were not met: 31756 31757$X11EXAMPLES_DEP_PKG_ERRORS 31758 31759Consider adjusting the PKG_CONFIG_PATH environment variable if you 31760installed software in a non-standard prefix. 31761 31762Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS 31763and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31764See the pkg-config man page for more details." "$LINENO" 5 31765elif test $pkg_failed = untried; then 31766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31767$as_echo "no" >&6; } 31768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31770as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31771is in your PATH or set the PKG_CONFIG environment variable to the full 31772path to pkg-config. 31773 31774Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS 31775and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31776See the pkg-config man page for more details. 31777 31778To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31779See \`config.log' for more details" "$LINENO" 5; } 31780else 31781 X11EXAMPLES_DEP_CFLAGS=$pkg_cv_X11EXAMPLES_DEP_CFLAGS 31782 X11EXAMPLES_DEP_LIBS=$pkg_cv_X11EXAMPLES_DEP_LIBS 31783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31784$as_echo "yes" >&6; } 31785 31786fi 31787 31788 31789fi 31790 if test "x$DMX_BUILD_USB" = xyes; then 31791 DMX_BUILD_USB_TRUE= 31792 DMX_BUILD_USB_FALSE='#' 31793else 31794 DMX_BUILD_USB_TRUE='#' 31795 DMX_BUILD_USB_FALSE= 31796fi 31797 31798 31799 31800XEPHYR_LIBS= 31801XEPHYR_INCS= 31802 31803 if test x$KDRIVE = xyes; then 31804 KDRIVE_TRUE= 31805 KDRIVE_FALSE='#' 31806else 31807 KDRIVE_TRUE='#' 31808 KDRIVE_FALSE= 31809fi 31810 31811 31812if test "$KDRIVE" = yes; then 31813 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" 31814 if test "x$XV" = xyes; then 31815 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xcb-xv" 31816 fi 31817 if test "x$DRI" = xyes && test "x$GLX" = xyes; then 31818 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBDRM xcb-glx xcb-xf86dri > 1.6" 31819 fi 31820 if test "x$GLAMOR" = xyes; then 31821 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS x11-xcb" 31822 fi 31823 31824 if test "x$XEPHYR" = xauto; then 31825 31826pkg_failed=no 31827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5 31828$as_echo_n "checking for XEPHYR... " >&6; } 31829 31830if test -n "$XEPHYR_CFLAGS"; then 31831 pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS" 31832 elif test -n "$PKG_CONFIG"; then 31833 if test -n "$PKG_CONFIG" && \ 31834 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 31835 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 31836 ac_status=$? 31837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31838 test $ac_status = 0; }; then 31839 pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 31840 test "x$?" != "x0" && pkg_failed=yes 31841else 31842 pkg_failed=yes 31843fi 31844 else 31845 pkg_failed=untried 31846fi 31847if test -n "$XEPHYR_LIBS"; then 31848 pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS" 31849 elif test -n "$PKG_CONFIG"; then 31850 if test -n "$PKG_CONFIG" && \ 31851 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 31852 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 31853 ac_status=$? 31854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31855 test $ac_status = 0; }; then 31856 pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 31857 test "x$?" != "x0" && pkg_failed=yes 31858else 31859 pkg_failed=yes 31860fi 31861 else 31862 pkg_failed=untried 31863fi 31864 31865 31866 31867if test $pkg_failed = yes; then 31868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31869$as_echo "no" >&6; } 31870 31871if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31872 _pkg_short_errors_supported=yes 31873else 31874 _pkg_short_errors_supported=no 31875fi 31876 if test $_pkg_short_errors_supported = yes; then 31877 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 31878 else 31879 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 31880 fi 31881 # Put the nasty error message in config.log where it belongs 31882 echo "$XEPHYR_PKG_ERRORS" >&5 31883 31884 XEPHYR="no" 31885elif test $pkg_failed = untried; then 31886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31887$as_echo "no" >&6; } 31888 XEPHYR="no" 31889else 31890 XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS 31891 XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS 31892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31893$as_echo "yes" >&6; } 31894 XEPHYR="yes" 31895fi 31896 elif test "x$XEPHYR" = xyes ; then 31897 31898pkg_failed=no 31899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5 31900$as_echo_n "checking for XEPHYR... " >&6; } 31901 31902if test -n "$XEPHYR_CFLAGS"; then 31903 pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS" 31904 elif test -n "$PKG_CONFIG"; then 31905 if test -n "$PKG_CONFIG" && \ 31906 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 31907 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 31908 ac_status=$? 31909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31910 test $ac_status = 0; }; then 31911 pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 31912 test "x$?" != "x0" && pkg_failed=yes 31913else 31914 pkg_failed=yes 31915fi 31916 else 31917 pkg_failed=untried 31918fi 31919if test -n "$XEPHYR_LIBS"; then 31920 pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS" 31921 elif test -n "$PKG_CONFIG"; then 31922 if test -n "$PKG_CONFIG" && \ 31923 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 31924 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 31925 ac_status=$? 31926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31927 test $ac_status = 0; }; then 31928 pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 31929 test "x$?" != "x0" && pkg_failed=yes 31930else 31931 pkg_failed=yes 31932fi 31933 else 31934 pkg_failed=untried 31935fi 31936 31937 31938 31939if test $pkg_failed = yes; then 31940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31941$as_echo "no" >&6; } 31942 31943if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31944 _pkg_short_errors_supported=yes 31945else 31946 _pkg_short_errors_supported=no 31947fi 31948 if test $_pkg_short_errors_supported = yes; then 31949 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 31950 else 31951 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 31952 fi 31953 # Put the nasty error message in config.log where it belongs 31954 echo "$XEPHYR_PKG_ERRORS" >&5 31955 31956 as_fn_error $? "Package requirements ($XEPHYR_REQUIRED_LIBS) were not met: 31957 31958$XEPHYR_PKG_ERRORS 31959 31960Consider adjusting the PKG_CONFIG_PATH environment variable if you 31961installed software in a non-standard prefix. 31962 31963Alternatively, you may set the environment variables XEPHYR_CFLAGS 31964and XEPHYR_LIBS to avoid the need to call pkg-config. 31965See the pkg-config man page for more details." "$LINENO" 5 31966elif test $pkg_failed = untried; then 31967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31968$as_echo "no" >&6; } 31969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31971as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31972is in your PATH or set the PKG_CONFIG environment variable to the full 31973path to pkg-config. 31974 31975Alternatively, you may set the environment variables XEPHYR_CFLAGS 31976and XEPHYR_LIBS to avoid the need to call pkg-config. 31977See the pkg-config man page for more details. 31978 31979To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31980See \`config.log' for more details" "$LINENO" 5; } 31981else 31982 XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS 31983 XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS 31984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31985$as_echo "yes" >&6; } 31986 31987fi 31988 fi 31989 31990 # Xephyr needs nanosleep() which is in librt on Solaris 31991 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 31992if test "x$ac_cv_func_nanosleep" = xyes; then : 31993 31994else 31995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 31996$as_echo_n "checking for nanosleep in -lrt... " >&6; } 31997if ${ac_cv_lib_rt_nanosleep+:} false; then : 31998 $as_echo_n "(cached) " >&6 31999else 32000 ac_check_lib_save_LIBS=$LIBS 32001LIBS="-lrt $LIBS" 32002cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32003/* end confdefs.h. */ 32004 32005/* Override any GCC internal prototype to avoid an error. 32006 Use char because int might match the return type of a GCC 32007 builtin and then its argument prototype would still apply. */ 32008#ifdef __cplusplus 32009extern "C" 32010#endif 32011char nanosleep (); 32012int 32013main () 32014{ 32015return nanosleep (); 32016 ; 32017 return 0; 32018} 32019_ACEOF 32020if ac_fn_c_try_link "$LINENO"; then : 32021 ac_cv_lib_rt_nanosleep=yes 32022else 32023 ac_cv_lib_rt_nanosleep=no 32024fi 32025rm -f core conftest.err conftest.$ac_objext \ 32026 conftest$ac_exeext conftest.$ac_ext 32027LIBS=$ac_check_lib_save_LIBS 32028fi 32029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 32030$as_echo "$ac_cv_lib_rt_nanosleep" >&6; } 32031if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : 32032 XEPHYR_LIBS="$XEPHYR_LIBS -lrt" 32033fi 32034 32035fi 32036 32037 32038 # damage shadow extension glx (NOTYET) fb mi 32039 KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src' 32040 KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_SYNC_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC" 32041 KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux' 32042 KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC" 32043 32044 KDRIVE_CFLAGS="$XSERVER_CFLAGS" 32045 32046 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" 32047 KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la' 32048 KDRIVE_MAIN_LIB="$MAIN_LIB" 32049 KDRIVE_LOCAL_LIBS="$DIX_LIB $KDRIVE_LIB" 32050 KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS" 32051 KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB" 32052 KDRIVE_LIBS="$KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS" 32053 32054 32055 32056fi 32057 32058 32059 32060 32061 32062 32063 32064 if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then 32065 XEPHYR_TRUE= 32066 XEPHYR_FALSE='#' 32067else 32068 XEPHYR_TRUE='#' 32069 XEPHYR_FALSE= 32070fi 32071 32072 32073 32074XWAYLANDMODULES="wayland-client >= 1.3.0 wayland-protocols >= 1.10 $LIBDRM epoxy" 32075if test "x$XF86VIDMODE" = xyes; then 32076 XWAYLANDMODULES="$XWAYLANDMODULES $VIDMODEPROTO" 32077fi 32078 32079pkg_failed=no 32080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWAYLANDMODULES" >&5 32081$as_echo_n "checking for XWAYLANDMODULES... " >&6; } 32082 32083if test -n "$XWAYLANDMODULES_CFLAGS"; then 32084 pkg_cv_XWAYLANDMODULES_CFLAGS="$XWAYLANDMODULES_CFLAGS" 32085 elif test -n "$PKG_CONFIG"; then 32086 if test -n "$PKG_CONFIG" && \ 32087 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XWAYLANDMODULES\""; } >&5 32088 ($PKG_CONFIG --exists --print-errors "$XWAYLANDMODULES") 2>&5 32089 ac_status=$? 32090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32091 test $ac_status = 0; }; then 32092 pkg_cv_XWAYLANDMODULES_CFLAGS=`$PKG_CONFIG --cflags "$XWAYLANDMODULES" 2>/dev/null` 32093 test "x$?" != "x0" && pkg_failed=yes 32094else 32095 pkg_failed=yes 32096fi 32097 else 32098 pkg_failed=untried 32099fi 32100if test -n "$XWAYLANDMODULES_LIBS"; then 32101 pkg_cv_XWAYLANDMODULES_LIBS="$XWAYLANDMODULES_LIBS" 32102 elif test -n "$PKG_CONFIG"; then 32103 if test -n "$PKG_CONFIG" && \ 32104 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XWAYLANDMODULES\""; } >&5 32105 ($PKG_CONFIG --exists --print-errors "$XWAYLANDMODULES") 2>&5 32106 ac_status=$? 32107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32108 test $ac_status = 0; }; then 32109 pkg_cv_XWAYLANDMODULES_LIBS=`$PKG_CONFIG --libs "$XWAYLANDMODULES" 2>/dev/null` 32110 test "x$?" != "x0" && pkg_failed=yes 32111else 32112 pkg_failed=yes 32113fi 32114 else 32115 pkg_failed=untried 32116fi 32117 32118 32119 32120if test $pkg_failed = yes; then 32121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32122$as_echo "no" >&6; } 32123 32124if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32125 _pkg_short_errors_supported=yes 32126else 32127 _pkg_short_errors_supported=no 32128fi 32129 if test $_pkg_short_errors_supported = yes; then 32130 XWAYLANDMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XWAYLANDMODULES" 2>&1` 32131 else 32132 XWAYLANDMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XWAYLANDMODULES" 2>&1` 32133 fi 32134 # Put the nasty error message in config.log where it belongs 32135 echo "$XWAYLANDMODULES_PKG_ERRORS" >&5 32136 32137 have_xwayland=no 32138elif test $pkg_failed = untried; then 32139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32140$as_echo "no" >&6; } 32141 have_xwayland=no 32142else 32143 XWAYLANDMODULES_CFLAGS=$pkg_cv_XWAYLANDMODULES_CFLAGS 32144 XWAYLANDMODULES_LIBS=$pkg_cv_XWAYLANDMODULES_LIBS 32145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32146$as_echo "yes" >&6; } 32147 have_xwayland=yes 32148fi 32149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xwayland DDX" >&5 32150$as_echo_n "checking whether to build Xwayland DDX... " >&6; } 32151if test "x$XWAYLAND" = xauto; then 32152 XWAYLAND="$have_xwayland" 32153fi 32154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XWAYLAND" >&5 32155$as_echo "$XWAYLAND" >&6; } 32156 if test "x$XWAYLAND" = xyes; then 32157 XWAYLAND_TRUE= 32158 XWAYLAND_FALSE='#' 32159else 32160 XWAYLAND_TRUE='#' 32161 XWAYLAND_FALSE= 32162fi 32163 32164 32165if test "x$XWAYLAND" = xyes; then 32166 if test "x$have_xwayland" = xno; then 32167 as_fn_error $? "Xwayland build explicitly requested, but required modules not found." "$LINENO" 5 32168 fi 32169 32170 if test "x$GLAMOR" = xyes && test "x$GBM" = xyes; then 32171 32172$as_echo "#define XWL_HAS_GLAMOR 1" >>confdefs.h 32173 32174 fi 32175 32176 32177pkg_failed=no 32178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_EGLSTREAM" >&5 32179$as_echo_n "checking for WAYLAND_EGLSTREAM... " >&6; } 32180 32181if test -n "$WAYLAND_EGLSTREAM_CFLAGS"; then 32182 pkg_cv_WAYLAND_EGLSTREAM_CFLAGS="$WAYLAND_EGLSTREAM_CFLAGS" 32183 elif test -n "$PKG_CONFIG"; then 32184 if test -n "$PKG_CONFIG" && \ 32185 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-eglstream-protocols >= 1.0.2\""; } >&5 32186 ($PKG_CONFIG --exists --print-errors "wayland-eglstream-protocols >= 1.0.2") 2>&5 32187 ac_status=$? 32188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32189 test $ac_status = 0; }; then 32190 pkg_cv_WAYLAND_EGLSTREAM_CFLAGS=`$PKG_CONFIG --cflags "wayland-eglstream-protocols >= 1.0.2" 2>/dev/null` 32191 test "x$?" != "x0" && pkg_failed=yes 32192else 32193 pkg_failed=yes 32194fi 32195 else 32196 pkg_failed=untried 32197fi 32198if test -n "$WAYLAND_EGLSTREAM_LIBS"; then 32199 pkg_cv_WAYLAND_EGLSTREAM_LIBS="$WAYLAND_EGLSTREAM_LIBS" 32200 elif test -n "$PKG_CONFIG"; then 32201 if test -n "$PKG_CONFIG" && \ 32202 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-eglstream-protocols >= 1.0.2\""; } >&5 32203 ($PKG_CONFIG --exists --print-errors "wayland-eglstream-protocols >= 1.0.2") 2>&5 32204 ac_status=$? 32205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32206 test $ac_status = 0; }; then 32207 pkg_cv_WAYLAND_EGLSTREAM_LIBS=`$PKG_CONFIG --libs "wayland-eglstream-protocols >= 1.0.2" 2>/dev/null` 32208 test "x$?" != "x0" && pkg_failed=yes 32209else 32210 pkg_failed=yes 32211fi 32212 else 32213 pkg_failed=untried 32214fi 32215 32216 32217 32218if test $pkg_failed = yes; then 32219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32220$as_echo "no" >&6; } 32221 32222if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32223 _pkg_short_errors_supported=yes 32224else 32225 _pkg_short_errors_supported=no 32226fi 32227 if test $_pkg_short_errors_supported = yes; then 32228 WAYLAND_EGLSTREAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-eglstream-protocols >= 1.0.2" 2>&1` 32229 else 32230 WAYLAND_EGLSTREAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-eglstream-protocols >= 1.0.2" 2>&1` 32231 fi 32232 # Put the nasty error message in config.log where it belongs 32233 echo "$WAYLAND_EGLSTREAM_PKG_ERRORS" >&5 32234 32235 have_wl_eglstream=no 32236elif test $pkg_failed = untried; then 32237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32238$as_echo "no" >&6; } 32239 have_wl_eglstream=no 32240else 32241 WAYLAND_EGLSTREAM_CFLAGS=$pkg_cv_WAYLAND_EGLSTREAM_CFLAGS 32242 WAYLAND_EGLSTREAM_LIBS=$pkg_cv_WAYLAND_EGLSTREAM_LIBS 32243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32244$as_echo "yes" >&6; } 32245 have_wl_eglstream=yes 32246fi 32247 32248 if test "x$XWAYLAND_EGLSTREAM" = xauto; then 32249 if test "x$have_wl_eglstream" = xyes && test "x$GLAMOR" = xyes; then 32250 XWAYLAND_EGLSTREAM=yes 32251 fi 32252 fi 32253 32254 if test "x$XWAYLAND_EGLSTREAM" = xyes; then 32255 if test "x$GLAMOR" != xyes; then 32256 as_fn_error $? "Xwayland eglstream support explicitly requested, but required modules not found." "$LINENO" 5 32257 fi 32258 32259 if test "x$have_wl_eglstream" = xno; then 32260 as_fn_error $? "Xwayland eglstream support requires wayland-eglstream-protocols >= 1.0.2" "$LINENO" 5 32261 fi 32262 32263 WAYLAND_EGLSTREAM_DATADIR=`$PKG_CONFIG --variable=pkgdatadir wayland-eglstream-protocols` 32264 32265 32266$as_echo "#define XWL_HAS_EGLSTREAM 1" >>confdefs.h 32267 32268 fi 32269 32270 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" 32271 XWAYLAND_SYS_LIBS="$XWAYLANDMODULES_LIBS $GLX_SYS_LIBS" 32272 32273 32274 32275 if test "x$MONOTONIC_CLOCK" != xyes; then 32276 as_fn_error $? "Xwayland requires CLOCK_MONOTONIC support." "$LINENO" 5 32277 fi 32278 32279 # Extract the first word of "wayland-scanner", so it can be a program name with args. 32280set dummy wayland-scanner; ac_word=$2 32281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32282$as_echo_n "checking for $ac_word... " >&6; } 32283if ${ac_cv_path_WAYLAND_SCANNER+:} false; then : 32284 $as_echo_n "(cached) " >&6 32285else 32286 case $WAYLAND_SCANNER in 32287 [\\/]* | ?:[\\/]*) 32288 ac_cv_path_WAYLAND_SCANNER="$WAYLAND_SCANNER" # Let the user override the test with a path. 32289 ;; 32290 *) 32291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32292for as_dir in $PATH 32293do 32294 IFS=$as_save_IFS 32295 test -z "$as_dir" && as_dir=. 32296 for ac_exec_ext in '' $ac_executable_extensions; do 32297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32298 ac_cv_path_WAYLAND_SCANNER="$as_dir/$ac_word$ac_exec_ext" 32299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32300 break 2 32301 fi 32302done 32303 done 32304IFS=$as_save_IFS 32305 32306 ;; 32307esac 32308fi 32309WAYLAND_SCANNER=$ac_cv_path_WAYLAND_SCANNER 32310if test -n "$WAYLAND_SCANNER"; then 32311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WAYLAND_SCANNER" >&5 32312$as_echo "$WAYLAND_SCANNER" >&6; } 32313else 32314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32315$as_echo "no" >&6; } 32316fi 32317 32318 32319 if test "x$WAYLAND_SCANNER" = x; then 32320 32321pkg_failed=no 32322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_SCANNER" >&5 32323$as_echo_n "checking for WAYLAND_SCANNER... " >&6; } 32324 32325if test -n "$WAYLAND_SCANNER_CFLAGS"; then 32326 pkg_cv_WAYLAND_SCANNER_CFLAGS="$WAYLAND_SCANNER_CFLAGS" 32327 elif test -n "$PKG_CONFIG"; then 32328 if test -n "$PKG_CONFIG" && \ 32329 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner\""; } >&5 32330 ($PKG_CONFIG --exists --print-errors "wayland-scanner") 2>&5 32331 ac_status=$? 32332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32333 test $ac_status = 0; }; then 32334 pkg_cv_WAYLAND_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "wayland-scanner" 2>/dev/null` 32335 test "x$?" != "x0" && pkg_failed=yes 32336else 32337 pkg_failed=yes 32338fi 32339 else 32340 pkg_failed=untried 32341fi 32342if test -n "$WAYLAND_SCANNER_LIBS"; then 32343 pkg_cv_WAYLAND_SCANNER_LIBS="$WAYLAND_SCANNER_LIBS" 32344 elif test -n "$PKG_CONFIG"; then 32345 if test -n "$PKG_CONFIG" && \ 32346 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner\""; } >&5 32347 ($PKG_CONFIG --exists --print-errors "wayland-scanner") 2>&5 32348 ac_status=$? 32349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32350 test $ac_status = 0; }; then 32351 pkg_cv_WAYLAND_SCANNER_LIBS=`$PKG_CONFIG --libs "wayland-scanner" 2>/dev/null` 32352 test "x$?" != "x0" && pkg_failed=yes 32353else 32354 pkg_failed=yes 32355fi 32356 else 32357 pkg_failed=untried 32358fi 32359 32360 32361 32362if test $pkg_failed = yes; then 32363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32364$as_echo "no" >&6; } 32365 32366if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32367 _pkg_short_errors_supported=yes 32368else 32369 _pkg_short_errors_supported=no 32370fi 32371 if test $_pkg_short_errors_supported = yes; then 32372 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-scanner" 2>&1` 32373 else 32374 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-scanner" 2>&1` 32375 fi 32376 # Put the nasty error message in config.log where it belongs 32377 echo "$WAYLAND_SCANNER_PKG_ERRORS" >&5 32378 32379 as_fn_error $? "Package requirements (wayland-scanner) were not met: 32380 32381$WAYLAND_SCANNER_PKG_ERRORS 32382 32383Consider adjusting the PKG_CONFIG_PATH environment variable if you 32384installed software in a non-standard prefix. 32385 32386Alternatively, you may set the environment variables WAYLAND_SCANNER_CFLAGS 32387and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config. 32388See the pkg-config man page for more details." "$LINENO" 5 32389elif test $pkg_failed = untried; then 32390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32391$as_echo "no" >&6; } 32392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32394as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32395is in your PATH or set the PKG_CONFIG environment variable to the full 32396path to pkg-config. 32397 32398Alternatively, you may set the environment variables WAYLAND_SCANNER_CFLAGS 32399and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config. 32400See the pkg-config man page for more details. 32401 32402To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32403See \`config.log' for more details" "$LINENO" 5; } 32404else 32405 WAYLAND_SCANNER_CFLAGS=$pkg_cv_WAYLAND_SCANNER_CFLAGS 32406 WAYLAND_SCANNER_LIBS=$pkg_cv_WAYLAND_SCANNER_LIBS 32407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32408$as_echo "yes" >&6; } 32409 32410fi 32411 WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner` 32412 32413 fi 32414 32415 32416pkg_failed=no 32417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_SCANNER" >&5 32418$as_echo_n "checking for WAYLAND_SCANNER... " >&6; } 32419 32420if test -n "$WAYLAND_SCANNER_CFLAGS"; then 32421 pkg_cv_WAYLAND_SCANNER_CFLAGS="$WAYLAND_SCANNER_CFLAGS" 32422 elif test -n "$PKG_CONFIG"; then 32423 if test -n "$PKG_CONFIG" && \ 32424 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner >= 1.14.91\""; } >&5 32425 ($PKG_CONFIG --exists --print-errors "wayland-scanner >= 1.14.91") 2>&5 32426 ac_status=$? 32427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32428 test $ac_status = 0; }; then 32429 pkg_cv_WAYLAND_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "wayland-scanner >= 1.14.91" 2>/dev/null` 32430 test "x$?" != "x0" && pkg_failed=yes 32431else 32432 pkg_failed=yes 32433fi 32434 else 32435 pkg_failed=untried 32436fi 32437if test -n "$WAYLAND_SCANNER_LIBS"; then 32438 pkg_cv_WAYLAND_SCANNER_LIBS="$WAYLAND_SCANNER_LIBS" 32439 elif test -n "$PKG_CONFIG"; then 32440 if test -n "$PKG_CONFIG" && \ 32441 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner >= 1.14.91\""; } >&5 32442 ($PKG_CONFIG --exists --print-errors "wayland-scanner >= 1.14.91") 2>&5 32443 ac_status=$? 32444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32445 test $ac_status = 0; }; then 32446 pkg_cv_WAYLAND_SCANNER_LIBS=`$PKG_CONFIG --libs "wayland-scanner >= 1.14.91" 2>/dev/null` 32447 test "x$?" != "x0" && pkg_failed=yes 32448else 32449 pkg_failed=yes 32450fi 32451 else 32452 pkg_failed=untried 32453fi 32454 32455 32456 32457if test $pkg_failed = yes; then 32458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32459$as_echo "no" >&6; } 32460 32461if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32462 _pkg_short_errors_supported=yes 32463else 32464 _pkg_short_errors_supported=no 32465fi 32466 if test $_pkg_short_errors_supported = yes; then 32467 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-scanner >= 1.14.91" 2>&1` 32468 else 32469 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-scanner >= 1.14.91" 2>&1` 32470 fi 32471 # Put the nasty error message in config.log where it belongs 32472 echo "$WAYLAND_SCANNER_PKG_ERRORS" >&5 32473 32474 SCANNER_ARG='code' 32475 32476elif test $pkg_failed = untried; then 32477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32478$as_echo "no" >&6; } 32479 SCANNER_ARG='code' 32480 32481else 32482 WAYLAND_SCANNER_CFLAGS=$pkg_cv_WAYLAND_SCANNER_CFLAGS 32483 WAYLAND_SCANNER_LIBS=$pkg_cv_WAYLAND_SCANNER_LIBS 32484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32485$as_echo "yes" >&6; } 32486 SCANNER_ARG='private-code' 32487 32488fi 32489 32490 WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols` 32491 32492fi 32493 if test "x$XWAYLAND_EGLSTREAM" = "xyes"; then 32494 XWAYLAND_EGLSTREAM_TRUE= 32495 XWAYLAND_EGLSTREAM_FALSE='#' 32496else 32497 XWAYLAND_EGLSTREAM_TRUE='#' 32498 XWAYLAND_EGLSTREAM_FALSE= 32499fi 32500 32501 32502 32503 32504cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32505/* end confdefs.h. */ 32506 32507#include <features.h> 32508#ifndef __GLIBC__ 32509#error not glibc 32510#endif 32511 32512int 32513main () 32514{ 32515 32516 ; 32517 return 0; 32518} 32519_ACEOF 32520if ac_fn_c_try_compile "$LINENO"; then : 32521 32522$as_echo "#define _GNU_SOURCE 1" >>confdefs.h 32523 32524fi 32525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32526 32527 32528 prefix_NONE= 32529 exec_prefix_NONE= 32530 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32531 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32532 eval ac_define_dir="\"$prefix\"" 32533 eval ac_define_dir="\"$ac_define_dir\"" 32534 PROJECTROOT="$ac_define_dir" 32535 32536 32537cat >>confdefs.h <<_ACEOF 32538#define PROJECTROOT "$ac_define_dir" 32539_ACEOF 32540 32541 test "$prefix_NONE" && prefix=NONE 32542 test "$exec_prefix_NONE" && exec_prefix=NONE 32543 32544 32545 prefix_NONE= 32546 exec_prefix_NONE= 32547 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32548 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32549 eval ac_define_dir="\"$sysconfdir\"" 32550 eval ac_define_dir="\"$ac_define_dir\"" 32551 SYSCONFDIR="$ac_define_dir" 32552 32553 32554cat >>confdefs.h <<_ACEOF 32555#define SYSCONFDIR "$ac_define_dir" 32556_ACEOF 32557 32558 test "$prefix_NONE" && prefix=NONE 32559 test "$exec_prefix_NONE" && exec_prefix=NONE 32560 32561 32562 32563DATE_FMT="%Y%m%d" 32564TIME_FMT="1%H%M%S" 32565BUILD_DATE="`date "+$DATE_FMT"`" 32566BUILD_TIME="`date "+$TIME_FMT"`" 32567if test "x$SOURCE_DATE_EPOCH" != "x"; then 32568 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"`" 32569 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"`" 32570fi 32571 32572 32573 32574DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS" 32575 32576 32577 32578 32579 32580 32581 32582ac_config_commands="$ac_config_commands sdksyms" 32583 32584 32585if test "x$CONFIG_HAL" = xno && test "x$CONFIG_UDEV" = xno; then 32586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 32587 *********************************************** 32588 Neither HAL nor udev backend will be enabled. 32589 Input device hotplugging will not be available! 32590 ***********************************************" >&5 32591$as_echo "$as_me: WARNING: 32592 *********************************************** 32593 Neither HAL nor udev backend will be enabled. 32594 Input device hotplugging will not be available! 32595 ***********************************************" >&2;} 32596fi 32597 32598ac_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" 32599 32600cat >confcache <<\_ACEOF 32601# This file is a shell script that caches the results of configure 32602# tests run on this system so they can be shared between configure 32603# scripts and configure runs, see configure's option --config-cache. 32604# It is not useful on other systems. If it contains results you don't 32605# want to keep, you may remove or edit it. 32606# 32607# config.status only pays attention to the cache file if you give it 32608# the --recheck option to rerun configure. 32609# 32610# `ac_cv_env_foo' variables (set or unset) will be overridden when 32611# loading this file, other *unset* `ac_cv_foo' will be assigned the 32612# following values. 32613 32614_ACEOF 32615 32616# The following way of writing the cache mishandles newlines in values, 32617# but we know of no workaround that is simple, portable, and efficient. 32618# So, we kill variables containing newlines. 32619# Ultrix sh set writes to stderr and can't be redirected directly, 32620# and sets the high bit in the cache file unless we assign to the vars. 32621( 32622 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 32623 eval ac_val=\$$ac_var 32624 case $ac_val in #( 32625 *${as_nl}*) 32626 case $ac_var in #( 32627 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 32628$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 32629 esac 32630 case $ac_var in #( 32631 _ | IFS | as_nl) ;; #( 32632 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 32633 *) { eval $ac_var=; unset $ac_var;} ;; 32634 esac ;; 32635 esac 32636 done 32637 32638 (set) 2>&1 | 32639 case $as_nl`(ac_space=' '; set) 2>&1` in #( 32640 *${as_nl}ac_space=\ *) 32641 # `set' does not quote correctly, so add quotes: double-quote 32642 # substitution turns \\\\ into \\, and sed turns \\ into \. 32643 sed -n \ 32644 "s/'/'\\\\''/g; 32645 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 32646 ;; #( 32647 *) 32648 # `set' quotes correctly as required by POSIX, so do not add quotes. 32649 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 32650 ;; 32651 esac | 32652 sort 32653) | 32654 sed ' 32655 /^ac_cv_env_/b end 32656 t clear 32657 :clear 32658 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 32659 t end 32660 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 32661 :end' >>confcache 32662if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 32663 if test -w "$cache_file"; then 32664 if test "x$cache_file" != "x/dev/null"; then 32665 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 32666$as_echo "$as_me: updating cache $cache_file" >&6;} 32667 if test ! -f "$cache_file" || test -h "$cache_file"; then 32668 cat confcache >"$cache_file" 32669 else 32670 case $cache_file in #( 32671 */* | ?:*) 32672 mv -f confcache "$cache_file"$$ && 32673 mv -f "$cache_file"$$ "$cache_file" ;; #( 32674 *) 32675 mv -f confcache "$cache_file" ;; 32676 esac 32677 fi 32678 fi 32679 else 32680 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 32681$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 32682 fi 32683fi 32684rm -f confcache 32685 32686test "x$prefix" = xNONE && prefix=$ac_default_prefix 32687# Let make expand exec_prefix. 32688test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 32689 32690DEFS=-DHAVE_CONFIG_H 32691 32692ac_libobjs= 32693ac_ltlibobjs= 32694U= 32695for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 32696 # 1. Remove the extension, and $U if already installed. 32697 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 32698 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 32699 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 32700 # will be set to the directory where LIBOBJS objects are built. 32701 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 32702 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 32703done 32704LIBOBJS=$ac_libobjs 32705 32706LTLIBOBJS=$ac_ltlibobjs 32707 32708 32709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 32710$as_echo_n "checking that generated files are newer than configure... " >&6; } 32711 if test -n "$am_sleep_pid"; then 32712 # Hide warnings about reused PIDs. 32713 wait $am_sleep_pid 2>/dev/null 32714 fi 32715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 32716$as_echo "done" >&6; } 32717 if test -n "$EXEEXT"; then 32718 am__EXEEXT_TRUE= 32719 am__EXEEXT_FALSE='#' 32720else 32721 am__EXEEXT_TRUE='#' 32722 am__EXEEXT_FALSE= 32723fi 32724 32725if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 32726 as_fn_error $? "conditional \"AMDEP\" was never defined. 32727Usually this means the macro was only invoked conditionally." "$LINENO" 5 32728fi 32729if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 32730 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 32731Usually this means the macro was only invoked conditionally." "$LINENO" 5 32732fi 32733if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then 32734 as_fn_error $? "conditional \"HAVE_DOT\" was never defined. 32735Usually this means the macro was only invoked conditionally." "$LINENO" 5 32736fi 32737if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 32738 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 32739Usually this means the macro was only invoked conditionally." "$LINENO" 5 32740fi 32741if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 32742 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 32743Usually this means the macro was only invoked conditionally." "$LINENO" 5 32744fi 32745if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 32746 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 32747Usually this means the macro was only invoked conditionally." "$LINENO" 5 32748fi 32749if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 32750 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 32751Usually this means the macro was only invoked conditionally." "$LINENO" 5 32752fi 32753if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 32754 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 32755Usually this means the macro was only invoked conditionally." "$LINENO" 5 32756fi 32757if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 32758 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 32759Usually this means the macro was only invoked conditionally." "$LINENO" 5 32760fi 32761if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 32762 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 32763Usually this means the macro was only invoked conditionally." "$LINENO" 5 32764fi 32765if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 32766 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 32767Usually this means the macro was only invoked conditionally." "$LINENO" 5 32768fi 32769if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then 32770 as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined. 32771Usually this means the macro was only invoked conditionally." "$LINENO" 5 32772fi 32773if test -z "${HAVE_LD_WRAP_TRUE}" && test -z "${HAVE_LD_WRAP_FALSE}"; then 32774 as_fn_error $? "conditional \"HAVE_LD_WRAP\" was never defined. 32775Usually this means the macro was only invoked conditionally." "$LINENO" 5 32776fi 32777if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 32778 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 32779Usually this means the macro was only invoked conditionally." "$LINENO" 5 32780fi 32781if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then 32782 as_fn_error $? "conditional \"XSERVER_DTRACE\" was never defined. 32783Usually this means the macro was only invoked conditionally." "$LINENO" 5 32784fi 32785if test -z "${SPECIAL_DTRACE_OBJECTS_TRUE}" && test -z "${SPECIAL_DTRACE_OBJECTS_FALSE}"; then 32786 as_fn_error $? "conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined. 32787Usually this means the macro was only invoked conditionally." "$LINENO" 5 32788fi 32789 32790if test -z "${POLL_TRUE}" && test -z "${POLL_FALSE}"; then 32791 as_fn_error $? "conditional \"POLL\" was never defined. 32792Usually this means the macro was only invoked conditionally." "$LINENO" 5 32793fi 32794if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then 32795 as_fn_error $? "conditional \"AGP\" was never defined. 32796Usually this means the macro was only invoked conditionally." "$LINENO" 5 32797fi 32798if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then 32799 as_fn_error $? "conditional \"FBDEVHW\" was never defined. 32800Usually this means the macro was only invoked conditionally." "$LINENO" 5 32801fi 32802if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then 32803 as_fn_error $? "conditional \"FREEBSD_KLDLOAD\" was never defined. 32804Usually this means the macro was only invoked conditionally." "$LINENO" 5 32805fi 32806if test -z "${BSD_APM_TRUE}" && test -z "${BSD_APM_FALSE}"; then 32807 as_fn_error $? "conditional \"BSD_APM\" was never defined. 32808Usually this means the macro was only invoked conditionally." "$LINENO" 5 32809fi 32810if test -z "${BSD_KQUEUE_APM_TRUE}" && test -z "${BSD_KQUEUE_APM_FALSE}"; then 32811 as_fn_error $? "conditional \"BSD_KQUEUE_APM\" was never defined. 32812Usually this means the macro was only invoked conditionally." "$LINENO" 5 32813fi 32814if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then 32815 as_fn_error $? "conditional \"ALPHA_VIDEO\" was never defined. 32816Usually this means the macro was only invoked conditionally." "$LINENO" 5 32817fi 32818if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then 32819 as_fn_error $? "conditional \"ARM_VIDEO\" was never defined. 32820Usually this means the macro was only invoked conditionally." "$LINENO" 5 32821fi 32822if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then 32823 as_fn_error $? "conditional \"I386_VIDEO\" was never defined. 32824Usually this means the macro was only invoked conditionally." "$LINENO" 5 32825fi 32826if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then 32827 as_fn_error $? "conditional \"PPC_VIDEO\" was never defined. 32828Usually this means the macro was only invoked conditionally." "$LINENO" 5 32829fi 32830if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then 32831 as_fn_error $? "conditional \"SPARC64_VIDEO\" was never defined. 32832Usually this means the macro was only invoked conditionally." "$LINENO" 5 32833fi 32834if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then 32835 as_fn_error $? "conditional \"INSTALL_SETUID\" was never defined. 32836Usually this means the macro was only invoked conditionally." "$LINENO" 5 32837fi 32838if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then 32839 as_fn_error $? "conditional \"SECURE_RPC\" was never defined. 32840Usually this means the macro was only invoked conditionally." "$LINENO" 5 32841fi 32842if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then 32843 as_fn_error $? "conditional \"INT10_VM86\" was never defined. 32844Usually this means the macro was only invoked conditionally." "$LINENO" 5 32845fi 32846if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then 32847 as_fn_error $? "conditional \"INT10_X86EMU\" was never defined. 32848Usually this means the macro was only invoked conditionally." "$LINENO" 5 32849fi 32850if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then 32851 as_fn_error $? "conditional \"INT10_STUB\" was never defined. 32852Usually this means the macro was only invoked conditionally." "$LINENO" 5 32853fi 32854if test -z "${HAVE_SYSTEMD_DAEMON_TRUE}" && test -z "${HAVE_SYSTEMD_DAEMON_FALSE}"; then 32855 as_fn_error $? "conditional \"HAVE_SYSTEMD_DAEMON\" was never defined. 32856Usually this means the macro was only invoked conditionally." "$LINENO" 5 32857fi 32858if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; then 32859 as_fn_error $? "conditional \"CONFIG_UDEV\" was never defined. 32860Usually this means the macro was only invoked conditionally." "$LINENO" 5 32861fi 32862if test -z "${CONFIG_UDEV_KMS_TRUE}" && test -z "${CONFIG_UDEV_KMS_FALSE}"; then 32863 as_fn_error $? "conditional \"CONFIG_UDEV_KMS\" was never defined. 32864Usually this means the macro was only invoked conditionally." "$LINENO" 5 32865fi 32866if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then 32867 as_fn_error $? "conditional \"HAVE_DBUS\" was never defined. 32868Usually this means the macro was only invoked conditionally." "$LINENO" 5 32869fi 32870if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then 32871 as_fn_error $? "conditional \"CONFIG_HAL\" was never defined. 32872Usually this means the macro was only invoked conditionally." "$LINENO" 5 32873fi 32874if test -z "${SYSTEMD_LOGIND_TRUE}" && test -z "${SYSTEMD_LOGIND_FALSE}"; then 32875 as_fn_error $? "conditional \"SYSTEMD_LOGIND\" was never defined. 32876Usually this means the macro was only invoked conditionally." "$LINENO" 5 32877fi 32878if test -z "${SUID_WRAPPER_TRUE}" && test -z "${SUID_WRAPPER_FALSE}"; then 32879 as_fn_error $? "conditional \"SUID_WRAPPER\" was never defined. 32880Usually this means the macro was only invoked conditionally." "$LINENO" 5 32881fi 32882if test -z "${NEED_DBUS_TRUE}" && test -z "${NEED_DBUS_FALSE}"; then 32883 as_fn_error $? "conditional \"NEED_DBUS\" was never defined. 32884Usually this means the macro was only invoked conditionally." "$LINENO" 5 32885fi 32886if test -z "${CONFIG_WSCONS_TRUE}" && test -z "${CONFIG_WSCONS_FALSE}"; then 32887 as_fn_error $? "conditional \"CONFIG_WSCONS\" was never defined. 32888Usually this means the macro was only invoked conditionally." "$LINENO" 5 32889fi 32890if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then 32891 as_fn_error $? "conditional \"XV\" was never defined. 32892Usually this means the macro was only invoked conditionally." "$LINENO" 5 32893fi 32894if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then 32895 as_fn_error $? "conditional \"XVMC\" was never defined. 32896Usually this means the macro was only invoked conditionally." "$LINENO" 5 32897fi 32898if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then 32899 as_fn_error $? "conditional \"COMPOSITE\" was never defined. 32900Usually this means the macro was only invoked conditionally." "$LINENO" 5 32901fi 32902if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then 32903 as_fn_error $? "conditional \"MITSHM\" was never defined. 32904Usually this means the macro was only invoked conditionally." "$LINENO" 5 32905fi 32906if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then 32907 as_fn_error $? "conditional \"RECORD\" was never defined. 32908Usually this means the macro was only invoked conditionally." "$LINENO" 5 32909fi 32910if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then 32911 as_fn_error $? "conditional \"SCREENSAVER\" was never defined. 32912Usually this means the macro was only invoked conditionally." "$LINENO" 5 32913fi 32914if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then 32915 as_fn_error $? "conditional \"RES\" was never defined. 32916Usually this means the macro was only invoked conditionally." "$LINENO" 5 32917fi 32918if test -z "${CLIENTIDS_TRUE}" && test -z "${CLIENTIDS_FALSE}"; then 32919 as_fn_error $? "conditional \"CLIENTIDS\" was never defined. 32920Usually this means the macro was only invoked conditionally." "$LINENO" 5 32921fi 32922if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 32923 as_fn_error $? "conditional \"DRI\" was never defined. 32924Usually this means the macro was only invoked conditionally." "$LINENO" 5 32925fi 32926if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then 32927 as_fn_error $? "conditional \"DRI2\" was never defined. 32928Usually this means the macro was only invoked conditionally." "$LINENO" 5 32929fi 32930if test -z "${BUSFAULT_TRUE}" && test -z "${BUSFAULT_FALSE}"; then 32931 as_fn_error $? "conditional \"BUSFAULT\" was never defined. 32932Usually this means the macro was only invoked conditionally." "$LINENO" 5 32933fi 32934if test -z "${XSHMFENCE_TRUE}" && test -z "${XSHMFENCE_FALSE}"; then 32935 as_fn_error $? "conditional \"XSHMFENCE\" was never defined. 32936Usually this means the macro was only invoked conditionally." "$LINENO" 5 32937fi 32938if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then 32939 as_fn_error $? "conditional \"DRI3\" was never defined. 32940Usually this means the macro was only invoked conditionally." "$LINENO" 5 32941fi 32942if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then 32943 as_fn_error $? "conditional \"GLX\" was never defined. 32944Usually this means the macro was only invoked conditionally." "$LINENO" 5 32945fi 32946if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then 32947 as_fn_error $? "conditional \"PRESENT\" was never defined. 32948Usually this means the macro was only invoked conditionally." "$LINENO" 5 32949fi 32950if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then 32951 as_fn_error $? "conditional \"XINERAMA\" was never defined. 32952Usually this means the macro was only invoked conditionally." "$LINENO" 5 32953fi 32954if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then 32955 as_fn_error $? "conditional \"XACE\" was never defined. 32956Usually this means the macro was only invoked conditionally." "$LINENO" 5 32957fi 32958if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then 32959 as_fn_error $? "conditional \"XSELINUX\" was never defined. 32960Usually this means the macro was only invoked conditionally." "$LINENO" 5 32961fi 32962if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then 32963 as_fn_error $? "conditional \"XCSECURITY\" was never defined. 32964Usually this means the macro was only invoked conditionally." "$LINENO" 5 32965fi 32966if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then 32967 as_fn_error $? "conditional \"DBE\" was never defined. 32968Usually this means the macro was only invoked conditionally." "$LINENO" 5 32969fi 32970if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then 32971 as_fn_error $? "conditional \"XF86BIGFONT\" was never defined. 32972Usually this means the macro was only invoked conditionally." "$LINENO" 5 32973fi 32974if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then 32975 as_fn_error $? "conditional \"DPMSExtension\" was never defined. 32976Usually this means the macro was only invoked conditionally." "$LINENO" 5 32977fi 32978if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then 32979 as_fn_error $? "conditional \"XF86UTILS\" was never defined. 32980Usually this means the macro was only invoked conditionally." "$LINENO" 5 32981fi 32982if test -z "${VGAHW_TRUE}" && test -z "${VGAHW_FALSE}"; then 32983 as_fn_error $? "conditional \"VGAHW\" was never defined. 32984Usually this means the macro was only invoked conditionally." "$LINENO" 5 32985fi 32986if test -z "${VBE_TRUE}" && test -z "${VBE_FALSE}"; then 32987 as_fn_error $? "conditional \"VBE\" was never defined. 32988Usually this means the macro was only invoked conditionally." "$LINENO" 5 32989fi 32990if test -z "${INT10MODULE_TRUE}" && test -z "${INT10MODULE_FALSE}"; then 32991 as_fn_error $? "conditional \"INT10MODULE\" was never defined. 32992Usually this means the macro was only invoked conditionally." "$LINENO" 5 32993fi 32994if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then 32995 as_fn_error $? "conditional \"XDMCP\" was never defined. 32996Usually this means the macro was only invoked conditionally." "$LINENO" 5 32997fi 32998if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then 32999 as_fn_error $? "conditional \"XDMAUTH\" was never defined. 33000Usually this means the macro was only invoked conditionally." "$LINENO" 5 33001fi 33002if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then 33003 as_fn_error $? "conditional \"XF86VIDMODE\" was never defined. 33004Usually this means the macro was only invoked conditionally." "$LINENO" 5 33005fi 33006if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then 33007 as_fn_error $? "conditional \"DEBUG\" was never defined. 33008Usually this means the macro was only invoked conditionally." "$LINENO" 5 33009fi 33010if test -z "${HAVE_LIBUNWIND_TRUE}" && test -z "${HAVE_LIBUNWIND_FALSE}"; then 33011 as_fn_error $? "conditional \"HAVE_LIBUNWIND\" was never defined. 33012Usually this means the macro was only invoked conditionally." "$LINENO" 5 33013fi 33014if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then 33015 as_fn_error $? "conditional \"CYGWIN\" was never defined. 33016Usually this means the macro was only invoked conditionally." "$LINENO" 5 33017fi 33018if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then 33019 as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined. 33020Usually this means the macro was only invoked conditionally." "$LINENO" 5 33021fi 33022if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then 33023 as_fn_error $? "conditional \"XVFB\" was never defined. 33024Usually this means the macro was only invoked conditionally." "$LINENO" 5 33025fi 33026if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then 33027 as_fn_error $? "conditional \"XNEST\" was never defined. 33028Usually this means the macro was only invoked conditionally." "$LINENO" 5 33029fi 33030if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then 33031 as_fn_error $? "conditional \"XORG\" was never defined. 33032Usually this means the macro was only invoked conditionally." "$LINENO" 5 33033fi 33034if test -z "${XORG_BUS_PCI_TRUE}" && test -z "${XORG_BUS_PCI_FALSE}"; then 33035 as_fn_error $? "conditional \"XORG_BUS_PCI\" was never defined. 33036Usually this means the macro was only invoked conditionally." "$LINENO" 5 33037fi 33038if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then 33039 as_fn_error $? "conditional \"XORG_BUS_BSDPCI\" was never defined. 33040Usually this means the macro was only invoked conditionally." "$LINENO" 5 33041fi 33042if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then 33043 as_fn_error $? "conditional \"XORG_BUS_SPARC\" was never defined. 33044Usually this means the macro was only invoked conditionally." "$LINENO" 5 33045fi 33046if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then 33047 as_fn_error $? "conditional \"LNXACPI\" was never defined. 33048Usually this means the macro was only invoked conditionally." "$LINENO" 5 33049fi 33050if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then 33051 as_fn_error $? "conditional \"LNXAPM\" was never defined. 33052Usually this means the macro was only invoked conditionally." "$LINENO" 5 33053fi 33054if test -z "${SOLARIS_VT_TRUE}" && test -z "${SOLARIS_VT_FALSE}"; then 33055 as_fn_error $? "conditional \"SOLARIS_VT\" was never defined. 33056Usually this means the macro was only invoked conditionally." "$LINENO" 5 33057fi 33058if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then 33059 as_fn_error $? "conditional \"DGA\" was never defined. 33060Usually this means the macro was only invoked conditionally." "$LINENO" 5 33061fi 33062if test -z "${XORG_BUS_PLATFORM_TRUE}" && test -z "${XORG_BUS_PLATFORM_FALSE}"; then 33063 as_fn_error $? "conditional \"XORG_BUS_PLATFORM\" was never defined. 33064Usually this means the macro was only invoked conditionally." "$LINENO" 5 33065fi 33066if test -z "${XORG_DRIVER_MODESETTING_TRUE}" && test -z "${XORG_DRIVER_MODESETTING_FALSE}"; then 33067 as_fn_error $? "conditional \"XORG_DRIVER_MODESETTING\" was never defined. 33068Usually this means the macro was only invoked conditionally." "$LINENO" 5 33069fi 33070if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then 33071 as_fn_error $? "conditional \"GLAMOR\" was never defined. 33072Usually this means the macro was only invoked conditionally." "$LINENO" 5 33073fi 33074if test -z "${GLAMOR_EGL_TRUE}" && test -z "${GLAMOR_EGL_FALSE}"; then 33075 as_fn_error $? "conditional \"GLAMOR_EGL\" was never defined. 33076Usually this means the macro was only invoked conditionally." "$LINENO" 5 33077fi 33078if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then 33079 as_fn_error $? "conditional \"XWIN\" was never defined. 33080Usually this means the macro was only invoked conditionally." "$LINENO" 5 33081fi 33082if test -z "${XWIN_MULTIWINDOWEXTWM_TRUE}" && test -z "${XWIN_MULTIWINDOWEXTWM_FALSE}"; then 33083 as_fn_error $? "conditional \"XWIN_MULTIWINDOWEXTWM\" was never defined. 33084Usually this means the macro was only invoked conditionally." "$LINENO" 5 33085fi 33086if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then 33087 as_fn_error $? "conditional \"XWIN_GLX_WINDOWS\" was never defined. 33088Usually this means the macro was only invoked conditionally." "$LINENO" 5 33089fi 33090if test -z "${XWIN_WINDOWS_DRI_TRUE}" && test -z "${XWIN_WINDOWS_DRI_FALSE}"; then 33091 as_fn_error $? "conditional \"XWIN_WINDOWS_DRI\" was never defined. 33092Usually this means the macro was only invoked conditionally." "$LINENO" 5 33093fi 33094if test -z "${PSEUDORAMIX_TRUE}" && test -z "${PSEUDORAMIX_FALSE}"; then 33095 as_fn_error $? "conditional \"PSEUDORAMIX\" was never defined. 33096Usually this means the macro was only invoked conditionally." "$LINENO" 5 33097fi 33098if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then 33099 as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. 33100Usually this means the macro was only invoked conditionally." "$LINENO" 5 33101fi 33102if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then 33103 as_fn_error $? "conditional \"XQUARTZ\" was never defined. 33104Usually this means the macro was only invoked conditionally." "$LINENO" 5 33105fi 33106if test -z "${XQUARTZ_SPARKLE_TRUE}" && test -z "${XQUARTZ_SPARKLE_FALSE}"; then 33107 as_fn_error $? "conditional \"XQUARTZ_SPARKLE\" was never defined. 33108Usually this means the macro was only invoked conditionally." "$LINENO" 5 33109fi 33110if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then 33111 as_fn_error $? "conditional \"STANDALONE_XPBPROXY\" was never defined. 33112Usually this means the macro was only invoked conditionally." "$LINENO" 5 33113fi 33114if test -z "${DMX_TRUE}" && test -z "${DMX_FALSE}"; then 33115 as_fn_error $? "conditional \"DMX\" was never defined. 33116Usually this means the macro was only invoked conditionally." "$LINENO" 5 33117fi 33118if test -z "${DMX_BUILD_USB_TRUE}" && test -z "${DMX_BUILD_USB_FALSE}"; then 33119 as_fn_error $? "conditional \"DMX_BUILD_USB\" was never defined. 33120Usually this means the macro was only invoked conditionally." "$LINENO" 5 33121fi 33122if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then 33123 as_fn_error $? "conditional \"KDRIVE\" was never defined. 33124Usually this means the macro was only invoked conditionally." "$LINENO" 5 33125fi 33126if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then 33127 as_fn_error $? "conditional \"XEPHYR\" was never defined. 33128Usually this means the macro was only invoked conditionally." "$LINENO" 5 33129fi 33130if test -z "${XWAYLAND_TRUE}" && test -z "${XWAYLAND_FALSE}"; then 33131 as_fn_error $? "conditional \"XWAYLAND\" was never defined. 33132Usually this means the macro was only invoked conditionally." "$LINENO" 5 33133fi 33134if test -z "${XWAYLAND_EGLSTREAM_TRUE}" && test -z "${XWAYLAND_EGLSTREAM_FALSE}"; then 33135 as_fn_error $? "conditional \"XWAYLAND_EGLSTREAM\" was never defined. 33136Usually this means the macro was only invoked conditionally." "$LINENO" 5 33137fi 33138 33139: "${CONFIG_STATUS=./config.status}" 33140ac_write_fail=0 33141ac_clean_files_save=$ac_clean_files 33142ac_clean_files="$ac_clean_files $CONFIG_STATUS" 33143{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 33144$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 33145as_write_fail=0 33146cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 33147#! $SHELL 33148# Generated by $as_me. 33149# Run this file to recreate the current configuration. 33150# Compiler output produced by configure, useful for debugging 33151# configure, is in config.log if it exists. 33152 33153debug=false 33154ac_cs_recheck=false 33155ac_cs_silent=false 33156 33157SHELL=\${CONFIG_SHELL-$SHELL} 33158export SHELL 33159_ASEOF 33160cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 33161## -------------------- ## 33162## M4sh Initialization. ## 33163## -------------------- ## 33164 33165# Be more Bourne compatible 33166DUALCASE=1; export DUALCASE # for MKS sh 33167if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 33168 emulate sh 33169 NULLCMD=: 33170 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 33171 # is contrary to our usage. Disable this feature. 33172 alias -g '${1+"$@"}'='"$@"' 33173 setopt NO_GLOB_SUBST 33174else 33175 case `(set -o) 2>/dev/null` in #( 33176 *posix*) : 33177 set -o posix ;; #( 33178 *) : 33179 ;; 33180esac 33181fi 33182 33183 33184as_nl=' 33185' 33186export as_nl 33187# Printing a long string crashes Solaris 7 /usr/bin/printf. 33188as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 33189as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 33190as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 33191# Prefer a ksh shell builtin over an external printf program on Solaris, 33192# but without wasting forks for bash or zsh. 33193if test -z "$BASH_VERSION$ZSH_VERSION" \ 33194 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 33195 as_echo='print -r --' 33196 as_echo_n='print -rn --' 33197elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 33198 as_echo='printf %s\n' 33199 as_echo_n='printf %s' 33200else 33201 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 33202 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 33203 as_echo_n='/usr/ucb/echo -n' 33204 else 33205 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 33206 as_echo_n_body='eval 33207 arg=$1; 33208 case $arg in #( 33209 *"$as_nl"*) 33210 expr "X$arg" : "X\\(.*\\)$as_nl"; 33211 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 33212 esac; 33213 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 33214 ' 33215 export as_echo_n_body 33216 as_echo_n='sh -c $as_echo_n_body as_echo' 33217 fi 33218 export as_echo_body 33219 as_echo='sh -c $as_echo_body as_echo' 33220fi 33221 33222# The user is always right. 33223if test "${PATH_SEPARATOR+set}" != set; then 33224 PATH_SEPARATOR=: 33225 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 33226 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 33227 PATH_SEPARATOR=';' 33228 } 33229fi 33230 33231 33232# IFS 33233# We need space, tab and new line, in precisely that order. Quoting is 33234# there to prevent editors from complaining about space-tab. 33235# (If _AS_PATH_WALK were called with IFS unset, it would disable word 33236# splitting by setting IFS to empty value.) 33237IFS=" "" $as_nl" 33238 33239# Find who we are. Look in the path if we contain no directory separator. 33240as_myself= 33241case $0 in #(( 33242 *[\\/]* ) as_myself=$0 ;; 33243 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33244for as_dir in $PATH 33245do 33246 IFS=$as_save_IFS 33247 test -z "$as_dir" && as_dir=. 33248 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 33249 done 33250IFS=$as_save_IFS 33251 33252 ;; 33253esac 33254# We did not find ourselves, most probably we were run as `sh COMMAND' 33255# in which case we are not to be found in the path. 33256if test "x$as_myself" = x; then 33257 as_myself=$0 33258fi 33259if test ! -f "$as_myself"; then 33260 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 33261 exit 1 33262fi 33263 33264# Unset variables that we do not need and which cause bugs (e.g. in 33265# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 33266# suppresses any "Segmentation fault" message there. '((' could 33267# trigger a bug in pdksh 5.2.14. 33268for as_var in BASH_ENV ENV MAIL MAILPATH 33269do eval test x\${$as_var+set} = xset \ 33270 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 33271done 33272PS1='$ ' 33273PS2='> ' 33274PS4='+ ' 33275 33276# NLS nuisances. 33277LC_ALL=C 33278export LC_ALL 33279LANGUAGE=C 33280export LANGUAGE 33281 33282# CDPATH. 33283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 33284 33285 33286# as_fn_error STATUS ERROR [LINENO LOG_FD] 33287# ---------------------------------------- 33288# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 33289# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 33290# script with STATUS, using 1 if that was 0. 33291as_fn_error () 33292{ 33293 as_status=$1; test $as_status -eq 0 && as_status=1 33294 if test "$4"; then 33295 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 33296 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 33297 fi 33298 $as_echo "$as_me: error: $2" >&2 33299 as_fn_exit $as_status 33300} # as_fn_error 33301 33302 33303# as_fn_set_status STATUS 33304# ----------------------- 33305# Set $? to STATUS, without forking. 33306as_fn_set_status () 33307{ 33308 return $1 33309} # as_fn_set_status 33310 33311# as_fn_exit STATUS 33312# ----------------- 33313# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 33314as_fn_exit () 33315{ 33316 set +e 33317 as_fn_set_status $1 33318 exit $1 33319} # as_fn_exit 33320 33321# as_fn_unset VAR 33322# --------------- 33323# Portably unset VAR. 33324as_fn_unset () 33325{ 33326 { eval $1=; unset $1;} 33327} 33328as_unset=as_fn_unset 33329# as_fn_append VAR VALUE 33330# ---------------------- 33331# Append the text in VALUE to the end of the definition contained in VAR. Take 33332# advantage of any shell optimizations that allow amortized linear growth over 33333# repeated appends, instead of the typical quadratic growth present in naive 33334# implementations. 33335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 33336 eval 'as_fn_append () 33337 { 33338 eval $1+=\$2 33339 }' 33340else 33341 as_fn_append () 33342 { 33343 eval $1=\$$1\$2 33344 } 33345fi # as_fn_append 33346 33347# as_fn_arith ARG... 33348# ------------------ 33349# Perform arithmetic evaluation on the ARGs, and store the result in the 33350# global $as_val. Take advantage of shells that can avoid forks. The arguments 33351# must be portable across $(()) and expr. 33352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 33353 eval 'as_fn_arith () 33354 { 33355 as_val=$(( $* )) 33356 }' 33357else 33358 as_fn_arith () 33359 { 33360 as_val=`expr "$@" || test $? -eq 1` 33361 } 33362fi # as_fn_arith 33363 33364 33365if expr a : '\(a\)' >/dev/null 2>&1 && 33366 test "X`expr 00001 : '.*\(...\)'`" = X001; then 33367 as_expr=expr 33368else 33369 as_expr=false 33370fi 33371 33372if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 33373 as_basename=basename 33374else 33375 as_basename=false 33376fi 33377 33378if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 33379 as_dirname=dirname 33380else 33381 as_dirname=false 33382fi 33383 33384as_me=`$as_basename -- "$0" || 33385$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 33386 X"$0" : 'X\(//\)$' \| \ 33387 X"$0" : 'X\(/\)' \| . 2>/dev/null || 33388$as_echo X/"$0" | 33389 sed '/^.*\/\([^/][^/]*\)\/*$/{ 33390 s//\1/ 33391 q 33392 } 33393 /^X\/\(\/\/\)$/{ 33394 s//\1/ 33395 q 33396 } 33397 /^X\/\(\/\).*/{ 33398 s//\1/ 33399 q 33400 } 33401 s/.*/./; q'` 33402 33403# Avoid depending upon Character Ranges. 33404as_cr_letters='abcdefghijklmnopqrstuvwxyz' 33405as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 33406as_cr_Letters=$as_cr_letters$as_cr_LETTERS 33407as_cr_digits='0123456789' 33408as_cr_alnum=$as_cr_Letters$as_cr_digits 33409 33410ECHO_C= ECHO_N= ECHO_T= 33411case `echo -n x` in #((((( 33412-n*) 33413 case `echo 'xy\c'` in 33414 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 33415 xy) ECHO_C='\c';; 33416 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 33417 ECHO_T=' ';; 33418 esac;; 33419*) 33420 ECHO_N='-n';; 33421esac 33422 33423rm -f conf$$ conf$$.exe conf$$.file 33424if test -d conf$$.dir; then 33425 rm -f conf$$.dir/conf$$.file 33426else 33427 rm -f conf$$.dir 33428 mkdir conf$$.dir 2>/dev/null 33429fi 33430if (echo >conf$$.file) 2>/dev/null; then 33431 if ln -s conf$$.file conf$$ 2>/dev/null; then 33432 as_ln_s='ln -s' 33433 # ... but there are two gotchas: 33434 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 33435 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 33436 # In both cases, we have to default to `cp -pR'. 33437 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 33438 as_ln_s='cp -pR' 33439 elif ln conf$$.file conf$$ 2>/dev/null; then 33440 as_ln_s=ln 33441 else 33442 as_ln_s='cp -pR' 33443 fi 33444else 33445 as_ln_s='cp -pR' 33446fi 33447rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 33448rmdir conf$$.dir 2>/dev/null 33449 33450 33451# as_fn_mkdir_p 33452# ------------- 33453# Create "$as_dir" as a directory, including parents if necessary. 33454as_fn_mkdir_p () 33455{ 33456 33457 case $as_dir in #( 33458 -*) as_dir=./$as_dir;; 33459 esac 33460 test -d "$as_dir" || eval $as_mkdir_p || { 33461 as_dirs= 33462 while :; do 33463 case $as_dir in #( 33464 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 33465 *) as_qdir=$as_dir;; 33466 esac 33467 as_dirs="'$as_qdir' $as_dirs" 33468 as_dir=`$as_dirname -- "$as_dir" || 33469$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 33470 X"$as_dir" : 'X\(//\)[^/]' \| \ 33471 X"$as_dir" : 'X\(//\)$' \| \ 33472 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 33473$as_echo X"$as_dir" | 33474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 33475 s//\1/ 33476 q 33477 } 33478 /^X\(\/\/\)[^/].*/{ 33479 s//\1/ 33480 q 33481 } 33482 /^X\(\/\/\)$/{ 33483 s//\1/ 33484 q 33485 } 33486 /^X\(\/\).*/{ 33487 s//\1/ 33488 q 33489 } 33490 s/.*/./; q'` 33491 test -d "$as_dir" && break 33492 done 33493 test -z "$as_dirs" || eval "mkdir $as_dirs" 33494 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 33495 33496 33497} # as_fn_mkdir_p 33498if mkdir -p . 2>/dev/null; then 33499 as_mkdir_p='mkdir -p "$as_dir"' 33500else 33501 test -d ./-p && rmdir ./-p 33502 as_mkdir_p=false 33503fi 33504 33505 33506# as_fn_executable_p FILE 33507# ----------------------- 33508# Test if FILE is an executable regular file. 33509as_fn_executable_p () 33510{ 33511 test -f "$1" && test -x "$1" 33512} # as_fn_executable_p 33513as_test_x='test -x' 33514as_executable_p=as_fn_executable_p 33515 33516# Sed expression to map a string onto a valid CPP name. 33517as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 33518 33519# Sed expression to map a string onto a valid variable name. 33520as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 33521 33522 33523exec 6>&1 33524## ----------------------------------- ## 33525## Main body of $CONFIG_STATUS script. ## 33526## ----------------------------------- ## 33527_ASEOF 33528test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 33529 33530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33531# Save the log message, to keep $0 and so on meaningful, and to 33532# report actual input values of CONFIG_FILES etc. instead of their 33533# values after options handling. 33534ac_log=" 33535This file was extended by xorg-server $as_me 1.20.6, which was 33536generated by GNU Autoconf 2.69. Invocation command line was 33537 33538 CONFIG_FILES = $CONFIG_FILES 33539 CONFIG_HEADERS = $CONFIG_HEADERS 33540 CONFIG_LINKS = $CONFIG_LINKS 33541 CONFIG_COMMANDS = $CONFIG_COMMANDS 33542 $ $0 $@ 33543 33544on `(hostname || uname -n) 2>/dev/null | sed 1q` 33545" 33546 33547_ACEOF 33548 33549case $ac_config_files in *" 33550"*) set x $ac_config_files; shift; ac_config_files=$*;; 33551esac 33552 33553case $ac_config_headers in *" 33554"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 33555esac 33556 33557 33558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33559# Files that config.status was made for. 33560config_files="$ac_config_files" 33561config_headers="$ac_config_headers" 33562config_commands="$ac_config_commands" 33563 33564_ACEOF 33565 33566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33567ac_cs_usage="\ 33568\`$as_me' instantiates files and other configuration actions 33569from templates according to the current configuration. Unless the files 33570and actions are specified as TAGs, all are instantiated by default. 33571 33572Usage: $0 [OPTION]... [TAG]... 33573 33574 -h, --help print this help, then exit 33575 -V, --version print version number and configuration settings, then exit 33576 --config print configuration, then exit 33577 -q, --quiet, --silent 33578 do not print progress messages 33579 -d, --debug don't remove temporary files 33580 --recheck update $as_me by reconfiguring in the same conditions 33581 --file=FILE[:TEMPLATE] 33582 instantiate the configuration file FILE 33583 --header=FILE[:TEMPLATE] 33584 instantiate the configuration header FILE 33585 33586Configuration files: 33587$config_files 33588 33589Configuration headers: 33590$config_headers 33591 33592Configuration commands: 33593$config_commands 33594 33595Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>." 33596 33597_ACEOF 33598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33599ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 33600ac_cs_version="\\ 33601xorg-server config.status 1.20.6 33602configured by $0, generated by GNU Autoconf 2.69, 33603 with options \\"\$ac_cs_config\\" 33604 33605Copyright (C) 2012 Free Software Foundation, Inc. 33606This config.status script is free software; the Free Software Foundation 33607gives unlimited permission to copy, distribute and modify it." 33608 33609ac_pwd='$ac_pwd' 33610srcdir='$srcdir' 33611INSTALL='$INSTALL' 33612MKDIR_P='$MKDIR_P' 33613AWK='$AWK' 33614test -n "\$AWK" || AWK=awk 33615_ACEOF 33616 33617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33618# The default lists apply if the user does not specify any file. 33619ac_need_defaults=: 33620while test $# != 0 33621do 33622 case $1 in 33623 --*=?*) 33624 ac_option=`expr "X$1" : 'X\([^=]*\)='` 33625 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 33626 ac_shift=: 33627 ;; 33628 --*=) 33629 ac_option=`expr "X$1" : 'X\([^=]*\)='` 33630 ac_optarg= 33631 ac_shift=: 33632 ;; 33633 *) 33634 ac_option=$1 33635 ac_optarg=$2 33636 ac_shift=shift 33637 ;; 33638 esac 33639 33640 case $ac_option in 33641 # Handling of the options. 33642 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 33643 ac_cs_recheck=: ;; 33644 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 33645 $as_echo "$ac_cs_version"; exit ;; 33646 --config | --confi | --conf | --con | --co | --c ) 33647 $as_echo "$ac_cs_config"; exit ;; 33648 --debug | --debu | --deb | --de | --d | -d ) 33649 debug=: ;; 33650 --file | --fil | --fi | --f ) 33651 $ac_shift 33652 case $ac_optarg in 33653 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 33654 '') as_fn_error $? "missing file argument" ;; 33655 esac 33656 as_fn_append CONFIG_FILES " '$ac_optarg'" 33657 ac_need_defaults=false;; 33658 --header | --heade | --head | --hea ) 33659 $ac_shift 33660 case $ac_optarg in 33661 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 33662 esac 33663 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 33664 ac_need_defaults=false;; 33665 --he | --h) 33666 # Conflict between --help and --header 33667 as_fn_error $? "ambiguous option: \`$1' 33668Try \`$0 --help' for more information.";; 33669 --help | --hel | -h ) 33670 $as_echo "$ac_cs_usage"; exit ;; 33671 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 33672 | -silent | --silent | --silen | --sile | --sil | --si | --s) 33673 ac_cs_silent=: ;; 33674 33675 # This is an error. 33676 -*) as_fn_error $? "unrecognized option: \`$1' 33677Try \`$0 --help' for more information." ;; 33678 33679 *) as_fn_append ac_config_targets " $1" 33680 ac_need_defaults=false ;; 33681 33682 esac 33683 shift 33684done 33685 33686ac_configure_extra_args= 33687 33688if $ac_cs_silent; then 33689 exec 6>/dev/null 33690 ac_configure_extra_args="$ac_configure_extra_args --silent" 33691fi 33692 33693_ACEOF 33694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33695if \$ac_cs_recheck; then 33696 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 33697 shift 33698 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 33699 CONFIG_SHELL='$SHELL' 33700 export CONFIG_SHELL 33701 exec "\$@" 33702fi 33703 33704_ACEOF 33705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33706exec 5>>config.log 33707{ 33708 echo 33709 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 33710## Running $as_me. ## 33711_ASBOX 33712 $as_echo "$ac_log" 33713} >&5 33714 33715_ACEOF 33716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33717# 33718# INIT-COMMANDS 33719# 33720AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 33721 33722 33723# The HP-UX ksh and POSIX shell print the target directory to stdout 33724# if CDPATH is set. 33725(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 33726 33727sed_quote_subst='$sed_quote_subst' 33728double_quote_subst='$double_quote_subst' 33729delay_variable_subst='$delay_variable_subst' 33730macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 33731macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 33732enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 33733AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 33734DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 33735OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 33736enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 33737pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 33738enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 33739shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 33740SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 33741ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 33742PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 33743host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 33744host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 33745host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 33746build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 33747build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 33748build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 33749SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 33750Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 33751GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 33752EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 33753FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 33754LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 33755NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 33756LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 33757max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 33758ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 33759exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 33760lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 33761lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 33762lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 33763lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 33764lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 33765reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 33766reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 33767deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 33768file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 33769file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 33770want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 33771sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 33772AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 33773AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 33774archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 33775STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 33776RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 33777old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 33778old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 33779old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 33780lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 33781CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 33782CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 33783compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 33784GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 33785lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 33786lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 33787lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 33788lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 33789lt_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"`' 33790lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 33791nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 33792lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 33793lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 33794objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 33795MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 33796lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 33797lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 33798lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 33799lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 33800lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 33801need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 33802MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 33803DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 33804NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 33805LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 33806OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 33807OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 33808libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 33809shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 33810extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 33811archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 33812enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 33813export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 33814whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 33815compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 33816old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 33817old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 33818archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 33819archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 33820module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 33821module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 33822with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 33823allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 33824no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 33825hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 33826hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 33827hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 33828hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 33829hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 33830hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 33831hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 33832inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 33833link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 33834always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 33835export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 33836exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 33837include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 33838prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 33839postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 33840file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 33841variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 33842need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 33843need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 33844version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 33845runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 33846shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 33847shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 33848libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 33849library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 33850soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 33851install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 33852postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 33853postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 33854finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 33855finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 33856hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 33857sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 33858configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 33859configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 33860hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 33861enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 33862enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 33863enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 33864old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 33865striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 33866 33867LTCC='$LTCC' 33868LTCFLAGS='$LTCFLAGS' 33869compiler='$compiler_DEFAULT' 33870 33871# A function that is used when there is no print builtin or printf. 33872func_fallback_echo () 33873{ 33874 eval 'cat <<_LTECHO_EOF 33875\$1 33876_LTECHO_EOF' 33877} 33878 33879# Quote evaled strings. 33880for var in AS \ 33881DLLTOOL \ 33882OBJDUMP \ 33883SHELL \ 33884ECHO \ 33885PATH_SEPARATOR \ 33886SED \ 33887GREP \ 33888EGREP \ 33889FGREP \ 33890LD \ 33891NM \ 33892LN_S \ 33893lt_SP2NL \ 33894lt_NL2SP \ 33895reload_flag \ 33896deplibs_check_method \ 33897file_magic_cmd \ 33898file_magic_glob \ 33899want_nocaseglob \ 33900sharedlib_from_linklib_cmd \ 33901AR \ 33902AR_FLAGS \ 33903archiver_list_spec \ 33904STRIP \ 33905RANLIB \ 33906CC \ 33907CFLAGS \ 33908compiler \ 33909lt_cv_sys_global_symbol_pipe \ 33910lt_cv_sys_global_symbol_to_cdecl \ 33911lt_cv_sys_global_symbol_to_import \ 33912lt_cv_sys_global_symbol_to_c_name_address \ 33913lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 33914lt_cv_nm_interface \ 33915nm_file_list_spec \ 33916lt_cv_truncate_bin \ 33917lt_prog_compiler_no_builtin_flag \ 33918lt_prog_compiler_pic \ 33919lt_prog_compiler_wl \ 33920lt_prog_compiler_static \ 33921lt_cv_prog_compiler_c_o \ 33922need_locks \ 33923MANIFEST_TOOL \ 33924DSYMUTIL \ 33925NMEDIT \ 33926LIPO \ 33927OTOOL \ 33928OTOOL64 \ 33929shrext_cmds \ 33930export_dynamic_flag_spec \ 33931whole_archive_flag_spec \ 33932compiler_needs_object \ 33933with_gnu_ld \ 33934allow_undefined_flag \ 33935no_undefined_flag \ 33936hardcode_libdir_flag_spec \ 33937hardcode_libdir_separator \ 33938exclude_expsyms \ 33939include_expsyms \ 33940file_list_spec \ 33941variables_saved_for_relink \ 33942libname_spec \ 33943library_names_spec \ 33944soname_spec \ 33945install_override_mode \ 33946finish_eval \ 33947old_striplib \ 33948striplib; do 33949 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 33950 *[\\\\\\\`\\"\\\$]*) 33951 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 33952 ;; 33953 *) 33954 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 33955 ;; 33956 esac 33957done 33958 33959# Double-quote double-evaled strings. 33960for var in reload_cmds \ 33961old_postinstall_cmds \ 33962old_postuninstall_cmds \ 33963old_archive_cmds \ 33964extract_expsyms_cmds \ 33965old_archive_from_new_cmds \ 33966old_archive_from_expsyms_cmds \ 33967archive_cmds \ 33968archive_expsym_cmds \ 33969module_cmds \ 33970module_expsym_cmds \ 33971export_symbols_cmds \ 33972prelink_cmds \ 33973postlink_cmds \ 33974postinstall_cmds \ 33975postuninstall_cmds \ 33976finish_cmds \ 33977sys_lib_search_path_spec \ 33978configure_time_dlsearch_path \ 33979configure_time_lt_sys_library_path; do 33980 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 33981 *[\\\\\\\`\\"\\\$]*) 33982 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 33983 ;; 33984 *) 33985 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 33986 ;; 33987 esac 33988done 33989 33990ac_aux_dir='$ac_aux_dir' 33991 33992# See if we are running on zsh, and set the options that allow our 33993# commands through without removal of \ escapes INIT. 33994if test -n "\${ZSH_VERSION+set}"; then 33995 setopt NO_GLOB_SUBST 33996fi 33997 33998 33999 PACKAGE='$PACKAGE' 34000 VERSION='$VERSION' 34001 RM='$RM' 34002 ofile='$ofile' 34003 34004 34005 34006 34007_ACEOF 34008 34009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34010 34011# Handling of arguments. 34012for ac_config_target in $ac_config_targets 34013do 34014 case $ac_config_target in 34015 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 34016 "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;; 34017 "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;; 34018 "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;; 34019 "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;; 34020 "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;; 34021 "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;; 34022 "include/xwayland-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwayland-config.h" ;; 34023 "include/version-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/version-config.h" ;; 34024 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 34025 "sdksyms") CONFIG_COMMANDS="$CONFIG_COMMANDS sdksyms" ;; 34026 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 34027 "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;; 34028 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 34029 "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;; 34030 "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;; 34031 "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;; 34032 "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;; 34033 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 34034 "doc/dtrace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dtrace/Makefile" ;; 34035 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 34036 "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;; 34037 "glamor/Makefile") CONFIG_FILES="$CONFIG_FILES glamor/Makefile" ;; 34038 "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;; 34039 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 34040 "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;; 34041 "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;; 34042 "miext/sync/Makefile") CONFIG_FILES="$CONFIG_FILES miext/sync/Makefile" ;; 34043 "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;; 34044 "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;; 34045 "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;; 34046 "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;; 34047 "pseudoramiX/Makefile") CONFIG_FILES="$CONFIG_FILES pseudoramiX/Makefile" ;; 34048 "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;; 34049 "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;; 34050 "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;; 34051 "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;; 34052 "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;; 34053 "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;; 34054 "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;; 34055 "dri3/Makefile") CONFIG_FILES="$CONFIG_FILES dri3/Makefile" ;; 34056 "present/Makefile") CONFIG_FILES="$CONFIG_FILES present/Makefile" ;; 34057 "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;; 34058 "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;; 34059 "hw/xfree86/Xorg.sh") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Xorg.sh" ;; 34060 "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;; 34061 "hw/xfree86/common/xf86Build.h") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/xf86Build.h" ;; 34062 "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;; 34063 "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;; 34064 "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;; 34065 "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;; 34066 "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;; 34067 "hw/xfree86/dri2/pci_ids/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/pci_ids/Makefile" ;; 34068 "hw/xfree86/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/Makefile" ;; 34069 "hw/xfree86/drivers/modesetting/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/modesetting/Makefile" ;; 34070 "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;; 34071 "hw/xfree86/exa/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/man/Makefile" ;; 34072 "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;; 34073 "hw/xfree86/fbdevhw/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/man/Makefile" ;; 34074 "hw/xfree86/glamor_egl/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/glamor_egl/Makefile" ;; 34075 "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;; 34076 "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;; 34077 "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;; 34078 "hw/xfree86/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/man/Makefile" ;; 34079 "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;; 34080 "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;; 34081 "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;; 34082 "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;; 34083 "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;; 34084 "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;; 34085 "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;; 34086 "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;; 34087 "hw/xfree86/os-support/stub/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/stub/Makefile" ;; 34088 "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;; 34089 "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;; 34090 "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;; 34091 "hw/xfree86/vbe/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vbe/Makefile" ;; 34092 "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;; 34093 "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;; 34094 "hw/xfree86/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xkb/Makefile" ;; 34095 "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;; 34096 "hw/xfree86/utils/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/man/Makefile" ;; 34097 "hw/xfree86/utils/cvt/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/cvt/Makefile" ;; 34098 "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;; 34099 "hw/dmx/config/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/Makefile" ;; 34100 "hw/dmx/config/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/man/Makefile" ;; 34101 "hw/dmx/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doc/Makefile" ;; 34102 "hw/dmx/doxygen/doxygen.conf") CONFIG_FILES="$CONFIG_FILES hw/dmx/doxygen/doxygen.conf" ;; 34103 "hw/dmx/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doxygen/Makefile" ;; 34104 "hw/dmx/examples/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/examples/Makefile" ;; 34105 "hw/dmx/input/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/input/Makefile" ;; 34106 "hw/dmx/glxProxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/glxProxy/Makefile" ;; 34107 "hw/dmx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/Makefile" ;; 34108 "hw/dmx/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/man/Makefile" ;; 34109 "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;; 34110 "hw/vfb/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/man/Makefile" ;; 34111 "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;; 34112 "hw/xnest/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/man/Makefile" ;; 34113 "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;; 34114 "hw/xwin/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/dri/Makefile" ;; 34115 "hw/xwin/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/glx/Makefile" ;; 34116 "hw/xwin/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/man/Makefile" ;; 34117 "hw/xwin/winclipboard/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/winclipboard/Makefile" ;; 34118 "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;; 34119 "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;; 34120 "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;; 34121 "hw/xquartz/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/man/Makefile" ;; 34122 "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;; 34123 "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;; 34124 "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;; 34125 "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;; 34126 "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;; 34127 "hw/kdrive/ephyr/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/man/Makefile" ;; 34128 "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;; 34129 "hw/xwayland/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwayland/Makefile" ;; 34130 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 34131 "xserver.ent") CONFIG_FILES="$CONFIG_FILES xserver.ent" ;; 34132 "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;; 34133 34134 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 34135 esac 34136done 34137 34138 34139# If the user did not use the arguments to specify the items to instantiate, 34140# then the envvar interface is used. Set only those that are not. 34141# We use the long form for the default assignment because of an extremely 34142# bizarre bug on SunOS 4.1.3. 34143if $ac_need_defaults; then 34144 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 34145 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 34146 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 34147fi 34148 34149# Have a temporary directory for convenience. Make it in the build tree 34150# simply because there is no reason against having it here, and in addition, 34151# creating and moving files from /tmp can sometimes cause problems. 34152# Hook for its removal unless debugging. 34153# Note that there is a small window in which the directory will not be cleaned: 34154# after its creation but before its name has been assigned to `$tmp'. 34155$debug || 34156{ 34157 tmp= ac_tmp= 34158 trap 'exit_status=$? 34159 : "${ac_tmp:=$tmp}" 34160 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 34161' 0 34162 trap 'as_fn_exit 1' 1 2 13 15 34163} 34164# Create a (secure) tmp directory for tmp files. 34165 34166{ 34167 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 34168 test -d "$tmp" 34169} || 34170{ 34171 tmp=./conf$$-$RANDOM 34172 (umask 077 && mkdir "$tmp") 34173} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 34174ac_tmp=$tmp 34175 34176# Set up the scripts for CONFIG_FILES section. 34177# No need to generate them if there are no CONFIG_FILES. 34178# This happens for instance with `./config.status config.h'. 34179if test -n "$CONFIG_FILES"; then 34180 34181 34182ac_cr=`echo X | tr X '\015'` 34183# On cygwin, bash can eat \r inside `` if the user requested igncr. 34184# But we know of no other shell where ac_cr would be empty at this 34185# point, so we can use a bashism as a fallback. 34186if test "x$ac_cr" = x; then 34187 eval ac_cr=\$\'\\r\' 34188fi 34189ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 34190if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 34191 ac_cs_awk_cr='\\r' 34192else 34193 ac_cs_awk_cr=$ac_cr 34194fi 34195 34196echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 34197_ACEOF 34198 34199 34200{ 34201 echo "cat >conf$$subs.awk <<_ACEOF" && 34202 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 34203 echo "_ACEOF" 34204} >conf$$subs.sh || 34205 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34206ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 34207ac_delim='%!_!# ' 34208for ac_last_try in false false false false false :; do 34209 . ./conf$$subs.sh || 34210 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34211 34212 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 34213 if test $ac_delim_n = $ac_delim_num; then 34214 break 34215 elif $ac_last_try; then 34216 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34217 else 34218 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34219 fi 34220done 34221rm -f conf$$subs.sh 34222 34223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34224cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 34225_ACEOF 34226sed -n ' 34227h 34228s/^/S["/; s/!.*/"]=/ 34229p 34230g 34231s/^[^!]*!// 34232:repl 34233t repl 34234s/'"$ac_delim"'$// 34235t delim 34236:nl 34237h 34238s/\(.\{148\}\)..*/\1/ 34239t more1 34240s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 34241p 34242n 34243b repl 34244:more1 34245s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 34246p 34247g 34248s/.\{148\}// 34249t nl 34250:delim 34251h 34252s/\(.\{148\}\)..*/\1/ 34253t more2 34254s/["\\]/\\&/g; s/^/"/; s/$/"/ 34255p 34256b 34257:more2 34258s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 34259p 34260g 34261s/.\{148\}// 34262t delim 34263' <conf$$subs.awk | sed ' 34264/^[^""]/{ 34265 N 34266 s/\n// 34267} 34268' >>$CONFIG_STATUS || ac_write_fail=1 34269rm -f conf$$subs.awk 34270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34271_ACAWK 34272cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 34273 for (key in S) S_is_set[key] = 1 34274 FS = "" 34275 34276} 34277{ 34278 line = $ 0 34279 nfields = split(line, field, "@") 34280 substed = 0 34281 len = length(field[1]) 34282 for (i = 2; i < nfields; i++) { 34283 key = field[i] 34284 keylen = length(key) 34285 if (S_is_set[key]) { 34286 value = S[key] 34287 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 34288 len += length(value) + length(field[++i]) 34289 substed = 1 34290 } else 34291 len += 1 + keylen 34292 } 34293 34294 print line 34295} 34296 34297_ACAWK 34298_ACEOF 34299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34300if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 34301 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 34302else 34303 cat 34304fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 34305 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 34306_ACEOF 34307 34308# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 34309# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 34310# trailing colons and then remove the whole line if VPATH becomes empty 34311# (actually we leave an empty line to preserve line numbers). 34312if test "x$srcdir" = x.; then 34313 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 34314h 34315s/// 34316s/^/:/ 34317s/[ ]*$/:/ 34318s/:\$(srcdir):/:/g 34319s/:\${srcdir}:/:/g 34320s/:@srcdir@:/:/g 34321s/^:*// 34322s/:*$// 34323x 34324s/\(=[ ]*\).*/\1/ 34325G 34326s/\n// 34327s/^[^=]*=[ ]*$// 34328}' 34329fi 34330 34331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34332fi # test -n "$CONFIG_FILES" 34333 34334# Set up the scripts for CONFIG_HEADERS section. 34335# No need to generate them if there are no CONFIG_HEADERS. 34336# This happens for instance with `./config.status Makefile'. 34337if test -n "$CONFIG_HEADERS"; then 34338cat >"$ac_tmp/defines.awk" <<\_ACAWK || 34339BEGIN { 34340_ACEOF 34341 34342# Transform confdefs.h into an awk script `defines.awk', embedded as 34343# here-document in config.status, that substitutes the proper values into 34344# config.h.in to produce config.h. 34345 34346# Create a delimiter string that does not exist in confdefs.h, to ease 34347# handling of long lines. 34348ac_delim='%!_!# ' 34349for ac_last_try in false false :; do 34350 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 34351 if test -z "$ac_tt"; then 34352 break 34353 elif $ac_last_try; then 34354 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 34355 else 34356 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34357 fi 34358done 34359 34360# For the awk script, D is an array of macro values keyed by name, 34361# likewise P contains macro parameters if any. Preserve backslash 34362# newline sequences. 34363 34364ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 34365sed -n ' 34366s/.\{148\}/&'"$ac_delim"'/g 34367t rset 34368:rset 34369s/^[ ]*#[ ]*define[ ][ ]*/ / 34370t def 34371d 34372:def 34373s/\\$// 34374t bsnl 34375s/["\\]/\\&/g 34376s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 34377D["\1"]=" \3"/p 34378s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 34379d 34380:bsnl 34381s/["\\]/\\&/g 34382s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 34383D["\1"]=" \3\\\\\\n"\\/p 34384t cont 34385s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 34386t cont 34387d 34388:cont 34389n 34390s/.\{148\}/&'"$ac_delim"'/g 34391t clear 34392:clear 34393s/\\$// 34394t bsnlc 34395s/["\\]/\\&/g; s/^/"/; s/$/"/p 34396d 34397:bsnlc 34398s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 34399b cont 34400' <confdefs.h | sed ' 34401s/'"$ac_delim"'/"\\\ 34402"/g' >>$CONFIG_STATUS || ac_write_fail=1 34403 34404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34405 for (key in D) D_is_set[key] = 1 34406 FS = "" 34407} 34408/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 34409 line = \$ 0 34410 split(line, arg, " ") 34411 if (arg[1] == "#") { 34412 defundef = arg[2] 34413 mac1 = arg[3] 34414 } else { 34415 defundef = substr(arg[1], 2) 34416 mac1 = arg[2] 34417 } 34418 split(mac1, mac2, "(") #) 34419 macro = mac2[1] 34420 prefix = substr(line, 1, index(line, defundef) - 1) 34421 if (D_is_set[macro]) { 34422 # Preserve the white space surrounding the "#". 34423 print prefix "define", macro P[macro] D[macro] 34424 next 34425 } else { 34426 # Replace #undef with comments. This is necessary, for example, 34427 # in the case of _POSIX_SOURCE, which is predefined and required 34428 # on some systems where configure will not decide to define it. 34429 if (defundef == "undef") { 34430 print "/*", prefix defundef, macro, "*/" 34431 next 34432 } 34433 } 34434} 34435{ print } 34436_ACAWK 34437_ACEOF 34438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34439 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 34440fi # test -n "$CONFIG_HEADERS" 34441 34442 34443eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 34444shift 34445for ac_tag 34446do 34447 case $ac_tag in 34448 :[FHLC]) ac_mode=$ac_tag; continue;; 34449 esac 34450 case $ac_mode$ac_tag in 34451 :[FHL]*:*);; 34452 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 34453 :[FH]-) ac_tag=-:-;; 34454 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 34455 esac 34456 ac_save_IFS=$IFS 34457 IFS=: 34458 set x $ac_tag 34459 IFS=$ac_save_IFS 34460 shift 34461 ac_file=$1 34462 shift 34463 34464 case $ac_mode in 34465 :L) ac_source=$1;; 34466 :[FH]) 34467 ac_file_inputs= 34468 for ac_f 34469 do 34470 case $ac_f in 34471 -) ac_f="$ac_tmp/stdin";; 34472 *) # Look for the file first in the build tree, then in the source tree 34473 # (if the path is not absolute). The absolute path cannot be DOS-style, 34474 # because $ac_f cannot contain `:'. 34475 test -f "$ac_f" || 34476 case $ac_f in 34477 [\\/$]*) false;; 34478 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 34479 esac || 34480 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 34481 esac 34482 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 34483 as_fn_append ac_file_inputs " '$ac_f'" 34484 done 34485 34486 # Let's still pretend it is `configure' which instantiates (i.e., don't 34487 # use $as_me), people would be surprised to read: 34488 # /* config.h. Generated by config.status. */ 34489 configure_input='Generated from '` 34490 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 34491 `' by configure.' 34492 if test x"$ac_file" != x-; then 34493 configure_input="$ac_file. $configure_input" 34494 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 34495$as_echo "$as_me: creating $ac_file" >&6;} 34496 fi 34497 # Neutralize special characters interpreted by sed in replacement strings. 34498 case $configure_input in #( 34499 *\&* | *\|* | *\\* ) 34500 ac_sed_conf_input=`$as_echo "$configure_input" | 34501 sed 's/[\\\\&|]/\\\\&/g'`;; #( 34502 *) ac_sed_conf_input=$configure_input;; 34503 esac 34504 34505 case $ac_tag in 34506 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 34507 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 34508 esac 34509 ;; 34510 esac 34511 34512 ac_dir=`$as_dirname -- "$ac_file" || 34513$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34514 X"$ac_file" : 'X\(//\)[^/]' \| \ 34515 X"$ac_file" : 'X\(//\)$' \| \ 34516 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 34517$as_echo X"$ac_file" | 34518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34519 s//\1/ 34520 q 34521 } 34522 /^X\(\/\/\)[^/].*/{ 34523 s//\1/ 34524 q 34525 } 34526 /^X\(\/\/\)$/{ 34527 s//\1/ 34528 q 34529 } 34530 /^X\(\/\).*/{ 34531 s//\1/ 34532 q 34533 } 34534 s/.*/./; q'` 34535 as_dir="$ac_dir"; as_fn_mkdir_p 34536 ac_builddir=. 34537 34538case "$ac_dir" in 34539.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 34540*) 34541 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 34542 # A ".." for each directory in $ac_dir_suffix. 34543 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 34544 case $ac_top_builddir_sub in 34545 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 34546 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 34547 esac ;; 34548esac 34549ac_abs_top_builddir=$ac_pwd 34550ac_abs_builddir=$ac_pwd$ac_dir_suffix 34551# for backward compatibility: 34552ac_top_builddir=$ac_top_build_prefix 34553 34554case $srcdir in 34555 .) # We are building in place. 34556 ac_srcdir=. 34557 ac_top_srcdir=$ac_top_builddir_sub 34558 ac_abs_top_srcdir=$ac_pwd ;; 34559 [\\/]* | ?:[\\/]* ) # Absolute name. 34560 ac_srcdir=$srcdir$ac_dir_suffix; 34561 ac_top_srcdir=$srcdir 34562 ac_abs_top_srcdir=$srcdir ;; 34563 *) # Relative name. 34564 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 34565 ac_top_srcdir=$ac_top_build_prefix$srcdir 34566 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 34567esac 34568ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 34569 34570 34571 case $ac_mode in 34572 :F) 34573 # 34574 # CONFIG_FILE 34575 # 34576 34577 case $INSTALL in 34578 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 34579 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 34580 esac 34581 ac_MKDIR_P=$MKDIR_P 34582 case $MKDIR_P in 34583 [\\/$]* | ?:[\\/]* ) ;; 34584 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 34585 esac 34586_ACEOF 34587 34588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34589# If the template does not know about datarootdir, expand it. 34590# FIXME: This hack should be removed a few years after 2.60. 34591ac_datarootdir_hack=; ac_datarootdir_seen= 34592ac_sed_dataroot=' 34593/datarootdir/ { 34594 p 34595 q 34596} 34597/@datadir@/p 34598/@docdir@/p 34599/@infodir@/p 34600/@localedir@/p 34601/@mandir@/p' 34602case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 34603*datarootdir*) ac_datarootdir_seen=yes;; 34604*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 34605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 34606$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 34607_ACEOF 34608cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34609 ac_datarootdir_hack=' 34610 s&@datadir@&$datadir&g 34611 s&@docdir@&$docdir&g 34612 s&@infodir@&$infodir&g 34613 s&@localedir@&$localedir&g 34614 s&@mandir@&$mandir&g 34615 s&\\\${datarootdir}&$datarootdir&g' ;; 34616esac 34617_ACEOF 34618 34619# Neutralize VPATH when `$srcdir' = `.'. 34620# Shell code in configure.ac might set extrasub. 34621# FIXME: do we really want to maintain this feature? 34622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34623ac_sed_extra="$ac_vpsub 34624$extrasub 34625_ACEOF 34626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34627:t 34628/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 34629s|@configure_input@|$ac_sed_conf_input|;t t 34630s&@top_builddir@&$ac_top_builddir_sub&;t t 34631s&@top_build_prefix@&$ac_top_build_prefix&;t t 34632s&@srcdir@&$ac_srcdir&;t t 34633s&@abs_srcdir@&$ac_abs_srcdir&;t t 34634s&@top_srcdir@&$ac_top_srcdir&;t t 34635s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 34636s&@builddir@&$ac_builddir&;t t 34637s&@abs_builddir@&$ac_abs_builddir&;t t 34638s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 34639s&@INSTALL@&$ac_INSTALL&;t t 34640s&@MKDIR_P@&$ac_MKDIR_P&;t t 34641$ac_datarootdir_hack 34642" 34643eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 34644 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34645 34646test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 34647 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 34648 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 34649 "$ac_tmp/out"`; test -z "$ac_out"; } && 34650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 34651which seems to be undefined. Please make sure it is defined" >&5 34652$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 34653which seems to be undefined. Please make sure it is defined" >&2;} 34654 34655 rm -f "$ac_tmp/stdin" 34656 case $ac_file in 34657 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 34658 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 34659 esac \ 34660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34661 ;; 34662 :H) 34663 # 34664 # CONFIG_HEADER 34665 # 34666 if test x"$ac_file" != x-; then 34667 { 34668 $as_echo "/* $configure_input */" \ 34669 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 34670 } >"$ac_tmp/config.h" \ 34671 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34672 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 34673 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 34674$as_echo "$as_me: $ac_file is unchanged" >&6;} 34675 else 34676 rm -f "$ac_file" 34677 mv "$ac_tmp/config.h" "$ac_file" \ 34678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34679 fi 34680 else 34681 $as_echo "/* $configure_input */" \ 34682 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 34683 || as_fn_error $? "could not create -" "$LINENO" 5 34684 fi 34685# Compute "$ac_file"'s index in $config_headers. 34686_am_arg="$ac_file" 34687_am_stamp_count=1 34688for _am_header in $config_headers :; do 34689 case $_am_header in 34690 $_am_arg | $_am_arg:* ) 34691 break ;; 34692 * ) 34693 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 34694 esac 34695done 34696echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 34697$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34698 X"$_am_arg" : 'X\(//\)[^/]' \| \ 34699 X"$_am_arg" : 'X\(//\)$' \| \ 34700 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 34701$as_echo X"$_am_arg" | 34702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34703 s//\1/ 34704 q 34705 } 34706 /^X\(\/\/\)[^/].*/{ 34707 s//\1/ 34708 q 34709 } 34710 /^X\(\/\/\)$/{ 34711 s//\1/ 34712 q 34713 } 34714 /^X\(\/\).*/{ 34715 s//\1/ 34716 q 34717 } 34718 s/.*/./; q'`/stamp-h$_am_stamp_count 34719 ;; 34720 34721 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 34722$as_echo "$as_me: executing $ac_file commands" >&6;} 34723 ;; 34724 esac 34725 34726 34727 case $ac_file$ac_mode in 34728 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 34729 # Older Autoconf quotes --file arguments for eval, but not when files 34730 # are listed without --file. Let's play safe and only enable the eval 34731 # if we detect the quoting. 34732 # TODO: see whether this extra hack can be removed once we start 34733 # requiring Autoconf 2.70 or later. 34734 case $CONFIG_FILES in #( 34735 *\'*) : 34736 eval set x "$CONFIG_FILES" ;; #( 34737 *) : 34738 set x $CONFIG_FILES ;; #( 34739 *) : 34740 ;; 34741esac 34742 shift 34743 # Used to flag and report bootstrapping failures. 34744 am_rc=0 34745 for am_mf 34746 do 34747 # Strip MF so we end up with the name of the file. 34748 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 34749 # Check whether this is an Automake generated Makefile which includes 34750 # dependency-tracking related rules and includes. 34751 # Grep'ing the whole file directly is not great: AIX grep has a line 34752 # limit of 2048, but all sed's we know have understand at least 4000. 34753 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 34754 || continue 34755 am_dirpart=`$as_dirname -- "$am_mf" || 34756$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34757 X"$am_mf" : 'X\(//\)[^/]' \| \ 34758 X"$am_mf" : 'X\(//\)$' \| \ 34759 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 34760$as_echo X"$am_mf" | 34761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34762 s//\1/ 34763 q 34764 } 34765 /^X\(\/\/\)[^/].*/{ 34766 s//\1/ 34767 q 34768 } 34769 /^X\(\/\/\)$/{ 34770 s//\1/ 34771 q 34772 } 34773 /^X\(\/\).*/{ 34774 s//\1/ 34775 q 34776 } 34777 s/.*/./; q'` 34778 am_filepart=`$as_basename -- "$am_mf" || 34779$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 34780 X"$am_mf" : 'X\(//\)$' \| \ 34781 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 34782$as_echo X/"$am_mf" | 34783 sed '/^.*\/\([^/][^/]*\)\/*$/{ 34784 s//\1/ 34785 q 34786 } 34787 /^X\/\(\/\/\)$/{ 34788 s//\1/ 34789 q 34790 } 34791 /^X\/\(\/\).*/{ 34792 s//\1/ 34793 q 34794 } 34795 s/.*/./; q'` 34796 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 34797 && sed -e '/# am--include-marker/d' "$am_filepart" \ 34798 | $MAKE -f - am--depfiles" >&5 34799 (cd "$am_dirpart" \ 34800 && sed -e '/# am--include-marker/d' "$am_filepart" \ 34801 | $MAKE -f - am--depfiles) >&5 2>&5 34802 ac_status=$? 34803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34804 (exit $ac_status); } || am_rc=$? 34805 done 34806 if test $am_rc -ne 0; then 34807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34809as_fn_error $? "Something went wrong bootstrapping makefile fragments 34810 for automatic dependency tracking. Try re-running configure with the 34811 '--disable-dependency-tracking' option to at least be able to build 34812 the package (albeit without support for automatic dependency tracking). 34813See \`config.log' for more details" "$LINENO" 5; } 34814 fi 34815 { am_dirpart=; unset am_dirpart;} 34816 { am_filepart=; unset am_filepart;} 34817 { am_mf=; unset am_mf;} 34818 { am_rc=; unset am_rc;} 34819 rm -f conftest-deps.mk 34820} 34821 ;; 34822 "libtool":C) 34823 34824 # See if we are running on zsh, and set the options that allow our 34825 # commands through without removal of \ escapes. 34826 if test -n "${ZSH_VERSION+set}"; then 34827 setopt NO_GLOB_SUBST 34828 fi 34829 34830 cfgfile=${ofile}T 34831 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 34832 $RM "$cfgfile" 34833 34834 cat <<_LT_EOF >> "$cfgfile" 34835#! $SHELL 34836# Generated automatically by $as_me ($PACKAGE) $VERSION 34837# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 34838# NOTE: Changes made to this file will be lost: look at ltmain.sh. 34839 34840# Provide generalized library-building support services. 34841# Written by Gordon Matzigkeit, 1996 34842 34843# Copyright (C) 2014 Free Software Foundation, Inc. 34844# This is free software; see the source for copying conditions. There is NO 34845# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 34846 34847# GNU Libtool is free software; you can redistribute it and/or modify 34848# it under the terms of the GNU General Public License as published by 34849# the Free Software Foundation; either version 2 of of the License, or 34850# (at your option) any later version. 34851# 34852# As a special exception to the GNU General Public License, if you 34853# distribute this file as part of a program or library that is built 34854# using GNU Libtool, you may include this file under the same 34855# distribution terms that you use for the rest of that program. 34856# 34857# GNU Libtool is distributed in the hope that it will be useful, but 34858# WITHOUT ANY WARRANTY; without even the implied warranty of 34859# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 34860# GNU General Public License for more details. 34861# 34862# You should have received a copy of the GNU General Public License 34863# along with this program. If not, see <http://www.gnu.org/licenses/>. 34864 34865 34866# The names of the tagged configurations supported by this script. 34867available_tags='' 34868 34869# Configured defaults for sys_lib_dlsearch_path munging. 34870: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 34871 34872# ### BEGIN LIBTOOL CONFIG 34873 34874# Which release of libtool.m4 was used? 34875macro_version=$macro_version 34876macro_revision=$macro_revision 34877 34878# Whether or not to build static libraries. 34879build_old_libs=$enable_static 34880 34881# Assembler program. 34882AS=$lt_AS 34883 34884# DLL creation program. 34885DLLTOOL=$lt_DLLTOOL 34886 34887# Object dumper program. 34888OBJDUMP=$lt_OBJDUMP 34889 34890# Whether or not to build shared libraries. 34891build_libtool_libs=$enable_shared 34892 34893# What type of objects to build. 34894pic_mode=$pic_mode 34895 34896# Whether or not to optimize for fast installation. 34897fast_install=$enable_fast_install 34898 34899# Shared archive member basename,for filename based shared library versioning on AIX. 34900shared_archive_member_spec=$shared_archive_member_spec 34901 34902# Shell to use when invoking shell scripts. 34903SHELL=$lt_SHELL 34904 34905# An echo program that protects backslashes. 34906ECHO=$lt_ECHO 34907 34908# The PATH separator for the build system. 34909PATH_SEPARATOR=$lt_PATH_SEPARATOR 34910 34911# The host system. 34912host_alias=$host_alias 34913host=$host 34914host_os=$host_os 34915 34916# The build system. 34917build_alias=$build_alias 34918build=$build 34919build_os=$build_os 34920 34921# A sed program that does not truncate output. 34922SED=$lt_SED 34923 34924# Sed that helps us avoid accidentally triggering echo(1) options like -n. 34925Xsed="\$SED -e 1s/^X//" 34926 34927# A grep program that handles long lines. 34928GREP=$lt_GREP 34929 34930# An ERE matcher. 34931EGREP=$lt_EGREP 34932 34933# A literal string matcher. 34934FGREP=$lt_FGREP 34935 34936# A BSD- or MS-compatible name lister. 34937NM=$lt_NM 34938 34939# Whether we need soft or hard links. 34940LN_S=$lt_LN_S 34941 34942# What is the maximum length of a command? 34943max_cmd_len=$max_cmd_len 34944 34945# Object file suffix (normally "o"). 34946objext=$ac_objext 34947 34948# Executable file suffix (normally ""). 34949exeext=$exeext 34950 34951# whether the shell understands "unset". 34952lt_unset=$lt_unset 34953 34954# turn spaces into newlines. 34955SP2NL=$lt_lt_SP2NL 34956 34957# turn newlines into spaces. 34958NL2SP=$lt_lt_NL2SP 34959 34960# convert \$build file names to \$host format. 34961to_host_file_cmd=$lt_cv_to_host_file_cmd 34962 34963# convert \$build files to toolchain format. 34964to_tool_file_cmd=$lt_cv_to_tool_file_cmd 34965 34966# Method to check whether dependent libraries are shared objects. 34967deplibs_check_method=$lt_deplibs_check_method 34968 34969# Command to use when deplibs_check_method = "file_magic". 34970file_magic_cmd=$lt_file_magic_cmd 34971 34972# How to find potential files when deplibs_check_method = "file_magic". 34973file_magic_glob=$lt_file_magic_glob 34974 34975# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 34976want_nocaseglob=$lt_want_nocaseglob 34977 34978# Command to associate shared and link libraries. 34979sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 34980 34981# The archiver. 34982AR=$lt_AR 34983 34984# Flags to create an archive. 34985AR_FLAGS=$lt_AR_FLAGS 34986 34987# How to feed a file listing to the archiver. 34988archiver_list_spec=$lt_archiver_list_spec 34989 34990# A symbol stripping program. 34991STRIP=$lt_STRIP 34992 34993# Commands used to install an old-style archive. 34994RANLIB=$lt_RANLIB 34995old_postinstall_cmds=$lt_old_postinstall_cmds 34996old_postuninstall_cmds=$lt_old_postuninstall_cmds 34997 34998# Whether to use a lock for old archive extraction. 34999lock_old_archive_extraction=$lock_old_archive_extraction 35000 35001# A C compiler. 35002LTCC=$lt_CC 35003 35004# LTCC compiler flags. 35005LTCFLAGS=$lt_CFLAGS 35006 35007# Take the output of nm and produce a listing of raw symbols and C names. 35008global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 35009 35010# Transform the output of nm in a proper C declaration. 35011global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 35012 35013# Transform the output of nm into a list of symbols to manually relocate. 35014global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 35015 35016# Transform the output of nm in a C name address pair. 35017global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 35018 35019# Transform the output of nm in a C name address pair when lib prefix is needed. 35020global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 35021 35022# The name lister interface. 35023nm_interface=$lt_lt_cv_nm_interface 35024 35025# Specify filename containing input files for \$NM. 35026nm_file_list_spec=$lt_nm_file_list_spec 35027 35028# The root where to search for dependent libraries,and where our libraries should be installed. 35029lt_sysroot=$lt_sysroot 35030 35031# Command to truncate a binary pipe. 35032lt_truncate_bin=$lt_lt_cv_truncate_bin 35033 35034# The name of the directory that contains temporary libtool files. 35035objdir=$objdir 35036 35037# Used to examine libraries when file_magic_cmd begins with "file". 35038MAGIC_CMD=$MAGIC_CMD 35039 35040# Must we lock files when doing compilation? 35041need_locks=$lt_need_locks 35042 35043# Manifest tool. 35044MANIFEST_TOOL=$lt_MANIFEST_TOOL 35045 35046# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 35047DSYMUTIL=$lt_DSYMUTIL 35048 35049# Tool to change global to local symbols on Mac OS X. 35050NMEDIT=$lt_NMEDIT 35051 35052# Tool to manipulate fat objects and archives on Mac OS X. 35053LIPO=$lt_LIPO 35054 35055# ldd/readelf like tool for Mach-O binaries on Mac OS X. 35056OTOOL=$lt_OTOOL 35057 35058# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 35059OTOOL64=$lt_OTOOL64 35060 35061# Old archive suffix (normally "a"). 35062libext=$libext 35063 35064# Shared library suffix (normally ".so"). 35065shrext_cmds=$lt_shrext_cmds 35066 35067# The commands to extract the exported symbol list from a shared archive. 35068extract_expsyms_cmds=$lt_extract_expsyms_cmds 35069 35070# Variables whose values should be saved in libtool wrapper scripts and 35071# restored at link time. 35072variables_saved_for_relink=$lt_variables_saved_for_relink 35073 35074# Do we need the "lib" prefix for modules? 35075need_lib_prefix=$need_lib_prefix 35076 35077# Do we need a version for libraries? 35078need_version=$need_version 35079 35080# Library versioning type. 35081version_type=$version_type 35082 35083# Shared library runtime path variable. 35084runpath_var=$runpath_var 35085 35086# Shared library path variable. 35087shlibpath_var=$shlibpath_var 35088 35089# Is shlibpath searched before the hard-coded library search path? 35090shlibpath_overrides_runpath=$shlibpath_overrides_runpath 35091 35092# Format of library name prefix. 35093libname_spec=$lt_libname_spec 35094 35095# List of archive names. First name is the real one, the rest are links. 35096# The last name is the one that the linker finds with -lNAME 35097library_names_spec=$lt_library_names_spec 35098 35099# The coded name of the library, if different from the real name. 35100soname_spec=$lt_soname_spec 35101 35102# Permission mode override for installation of shared libraries. 35103install_override_mode=$lt_install_override_mode 35104 35105# Command to use after installation of a shared archive. 35106postinstall_cmds=$lt_postinstall_cmds 35107 35108# Command to use after uninstallation of a shared archive. 35109postuninstall_cmds=$lt_postuninstall_cmds 35110 35111# Commands used to finish a libtool library installation in a directory. 35112finish_cmds=$lt_finish_cmds 35113 35114# As "finish_cmds", except a single script fragment to be evaled but 35115# not shown. 35116finish_eval=$lt_finish_eval 35117 35118# Whether we should hardcode library paths into libraries. 35119hardcode_into_libs=$hardcode_into_libs 35120 35121# Compile-time system search path for libraries. 35122sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 35123 35124# Detected run-time system search path for libraries. 35125sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 35126 35127# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 35128configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 35129 35130# Whether dlopen is supported. 35131dlopen_support=$enable_dlopen 35132 35133# Whether dlopen of programs is supported. 35134dlopen_self=$enable_dlopen_self 35135 35136# Whether dlopen of statically linked programs is supported. 35137dlopen_self_static=$enable_dlopen_self_static 35138 35139# Commands to strip libraries. 35140old_striplib=$lt_old_striplib 35141striplib=$lt_striplib 35142 35143 35144# The linker used to build libraries. 35145LD=$lt_LD 35146 35147# How to create reloadable object files. 35148reload_flag=$lt_reload_flag 35149reload_cmds=$lt_reload_cmds 35150 35151# Commands used to build an old-style archive. 35152old_archive_cmds=$lt_old_archive_cmds 35153 35154# A language specific compiler. 35155CC=$lt_compiler 35156 35157# Is the compiler the GNU compiler? 35158with_gcc=$GCC 35159 35160# Compiler flag to turn off builtin functions. 35161no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 35162 35163# Additional compiler flags for building library objects. 35164pic_flag=$lt_lt_prog_compiler_pic 35165 35166# How to pass a linker flag through the compiler. 35167wl=$lt_lt_prog_compiler_wl 35168 35169# Compiler flag to prevent dynamic linking. 35170link_static_flag=$lt_lt_prog_compiler_static 35171 35172# Does compiler simultaneously support -c and -o options? 35173compiler_c_o=$lt_lt_cv_prog_compiler_c_o 35174 35175# Whether or not to add -lc for building shared libraries. 35176build_libtool_need_lc=$archive_cmds_need_lc 35177 35178# Whether or not to disallow shared libs when runtime libs are static. 35179allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 35180 35181# Compiler flag to allow reflexive dlopens. 35182export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 35183 35184# Compiler flag to generate shared objects directly from archives. 35185whole_archive_flag_spec=$lt_whole_archive_flag_spec 35186 35187# Whether the compiler copes with passing no objects directly. 35188compiler_needs_object=$lt_compiler_needs_object 35189 35190# Create an old-style archive from a shared archive. 35191old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 35192 35193# Create a temporary old-style archive to link instead of a shared archive. 35194old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 35195 35196# Commands used to build a shared archive. 35197archive_cmds=$lt_archive_cmds 35198archive_expsym_cmds=$lt_archive_expsym_cmds 35199 35200# Commands used to build a loadable module if different from building 35201# a shared archive. 35202module_cmds=$lt_module_cmds 35203module_expsym_cmds=$lt_module_expsym_cmds 35204 35205# Whether we are building with GNU ld or not. 35206with_gnu_ld=$lt_with_gnu_ld 35207 35208# Flag that allows shared libraries with undefined symbols to be built. 35209allow_undefined_flag=$lt_allow_undefined_flag 35210 35211# Flag that enforces no undefined symbols. 35212no_undefined_flag=$lt_no_undefined_flag 35213 35214# Flag to hardcode \$libdir into a binary during linking. 35215# This must work even if \$libdir does not exist 35216hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 35217 35218# Whether we need a single "-rpath" flag with a separated argument. 35219hardcode_libdir_separator=$lt_hardcode_libdir_separator 35220 35221# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 35222# DIR into the resulting binary. 35223hardcode_direct=$hardcode_direct 35224 35225# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 35226# DIR into the resulting binary and the resulting library dependency is 35227# "absolute",i.e impossible to change by setting \$shlibpath_var if the 35228# library is relocated. 35229hardcode_direct_absolute=$hardcode_direct_absolute 35230 35231# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 35232# into the resulting binary. 35233hardcode_minus_L=$hardcode_minus_L 35234 35235# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 35236# into the resulting binary. 35237hardcode_shlibpath_var=$hardcode_shlibpath_var 35238 35239# Set to "yes" if building a shared library automatically hardcodes DIR 35240# into the library and all subsequent libraries and executables linked 35241# against it. 35242hardcode_automatic=$hardcode_automatic 35243 35244# Set to yes if linker adds runtime paths of dependent libraries 35245# to runtime path list. 35246inherit_rpath=$inherit_rpath 35247 35248# Whether libtool must link a program against all its dependency libraries. 35249link_all_deplibs=$link_all_deplibs 35250 35251# Set to "yes" if exported symbols are required. 35252always_export_symbols=$always_export_symbols 35253 35254# The commands to list exported symbols. 35255export_symbols_cmds=$lt_export_symbols_cmds 35256 35257# Symbols that should not be listed in the preloaded symbols. 35258exclude_expsyms=$lt_exclude_expsyms 35259 35260# Symbols that must always be exported. 35261include_expsyms=$lt_include_expsyms 35262 35263# Commands necessary for linking programs (against libraries) with templates. 35264prelink_cmds=$lt_prelink_cmds 35265 35266# Commands necessary for finishing linking programs. 35267postlink_cmds=$lt_postlink_cmds 35268 35269# Specify filename containing input files. 35270file_list_spec=$lt_file_list_spec 35271 35272# How to hardcode a shared library path into an executable. 35273hardcode_action=$hardcode_action 35274 35275# ### END LIBTOOL CONFIG 35276 35277_LT_EOF 35278 35279 cat <<'_LT_EOF' >> "$cfgfile" 35280 35281# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 35282 35283# func_munge_path_list VARIABLE PATH 35284# ----------------------------------- 35285# VARIABLE is name of variable containing _space_ separated list of 35286# directories to be munged by the contents of PATH, which is string 35287# having a format: 35288# "DIR[:DIR]:" 35289# string "DIR[ DIR]" will be prepended to VARIABLE 35290# ":DIR[:DIR]" 35291# string "DIR[ DIR]" will be appended to VARIABLE 35292# "DIRP[:DIRP]::[DIRA:]DIRA" 35293# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 35294# "DIRA[ DIRA]" will be appended to VARIABLE 35295# "DIR[:DIR]" 35296# VARIABLE will be replaced by "DIR[ DIR]" 35297func_munge_path_list () 35298{ 35299 case x$2 in 35300 x) 35301 ;; 35302 *:) 35303 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 35304 ;; 35305 x:*) 35306 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 35307 ;; 35308 *::*) 35309 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 35310 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 35311 ;; 35312 *) 35313 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 35314 ;; 35315 esac 35316} 35317 35318 35319# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 35320func_cc_basename () 35321{ 35322 for cc_temp in $*""; do 35323 case $cc_temp in 35324 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 35325 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 35326 \-*) ;; 35327 *) break;; 35328 esac 35329 done 35330 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 35331} 35332 35333 35334# ### END FUNCTIONS SHARED WITH CONFIGURE 35335 35336_LT_EOF 35337 35338 case $host_os in 35339 aix3*) 35340 cat <<\_LT_EOF >> "$cfgfile" 35341# AIX sometimes has problems with the GCC collect2 program. For some 35342# reason, if we set the COLLECT_NAMES environment variable, the problems 35343# vanish in a puff of smoke. 35344if test set != "${COLLECT_NAMES+set}"; then 35345 COLLECT_NAMES= 35346 export COLLECT_NAMES 35347fi 35348_LT_EOF 35349 ;; 35350 esac 35351 35352 35353ltmain=$ac_aux_dir/ltmain.sh 35354 35355 35356 # We use sed instead of cat because bash on DJGPP gets confused if 35357 # if finds mixed CR/LF and LF-only lines. Since sed operates in 35358 # text mode, it properly converts lines to CR/LF. This bash problem 35359 # is reportedly fixed, but why not run on old versions too? 35360 sed '$q' "$ltmain" >> "$cfgfile" \ 35361 || (rm -f "$cfgfile"; exit 1) 35362 35363 mv -f "$cfgfile" "$ofile" || 35364 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 35365 chmod +x "$ofile" 35366 35367 ;; 35368 "sdksyms":C) touch hw/xfree86/sdksyms.dep ;; 35369 35370 esac 35371done # for ac_tag 35372 35373 35374as_fn_exit 0 35375_ACEOF 35376ac_clean_files=$ac_clean_files_save 35377 35378test $ac_write_fail = 0 || 35379 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 35380 35381 35382# configure is writing to config.log, and then calls config.status. 35383# config.status does its own redirection, appending to config.log. 35384# Unfortunately, on DOS this fails, as config.log is still kept open 35385# by configure, so config.status won't be able to write to it; its 35386# output is simply discarded. So we exec the FD to /dev/null, 35387# effectively closing config.log, so it can be properly (re)opened and 35388# appended to by config.status. When coming back to configure, we 35389# need to make the FD available again. 35390if test "$no_create" != yes; then 35391 ac_cs_success=: 35392 ac_config_status_args= 35393 test "$silent" = yes && 35394 ac_config_status_args="$ac_config_status_args --quiet" 35395 exec 5>/dev/null 35396 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 35397 exec 5>>config.log 35398 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 35399 # would make configure fail if this is the last instruction. 35400 $ac_cs_success || as_fn_exit 1 35401fi 35402if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 35403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 35404$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 35405fi 35406 35407