configure revision bf8e669c
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.4. 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.4' 655PACKAGE_STRING='xorg-server 1.20.4' 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 1386with_shared_memory_dir 1387enable_xtrans_send_fds 1388with_xkb_bin_directory 1389with_sha1 1390' 1391 ac_precious_vars='build_alias 1392host_alias 1393target_alias 1394CC 1395CFLAGS 1396LDFLAGS 1397LIBS 1398CPPFLAGS 1399CPP 1400PKG_CONFIG 1401PKG_CONFIG_PATH 1402PKG_CONFIG_LIBDIR 1403DOXYGEN 1404DOT 1405XMLTO 1406FOP 1407XSLTPROC 1408XORG_MALLOC_DEBUG_ENV 1409CCAS 1410CCASFLAGS 1411LT_SYS_LIBRARY_PATH 1412YACC 1413YFLAGS 1414PIXMAN_CFLAGS 1415PIXMAN_LIBS 1416SYSTEMD_DAEMON_CFLAGS 1417SYSTEMD_DAEMON_LIBS 1418UDEV_CFLAGS 1419UDEV_LIBS 1420DBUS_CFLAGS 1421DBUS_LIBS 1422HAL_CFLAGS 1423HAL_LIBS 1424DRI2PROTO_CFLAGS 1425DRI2PROTO_LIBS 1426DRI3PROTO_CFLAGS 1427DRI3PROTO_LIBS 1428XSHMFENCE_CFLAGS 1429XSHMFENCE_LIBS 1430LIBDRM_CFLAGS 1431LIBDRM_LIBS 1432XLIB_CFLAGS 1433XLIB_LIBS 1434GL_CFLAGS 1435GL_LIBS 1436SELINUX_CFLAGS 1437SELINUX_LIBS 1438XDMCP_CFLAGS 1439XDMCP_LIBS 1440LIBSHA1_CFLAGS 1441LIBSHA1_LIBS 1442OPENSSL_CFLAGS 1443OPENSSL_LIBS 1444XSERVERCFLAGS_CFLAGS 1445XSERVERCFLAGS_LIBS 1446XSERVERLIBS_CFLAGS 1447XSERVERLIBS_LIBS 1448LIBUNWIND_CFLAGS 1449LIBUNWIND_LIBS 1450XNESTMODULES_CFLAGS 1451XNESTMODULES_LIBS 1452PCIACCESS_CFLAGS 1453PCIACCESS_LIBS 1454DGA_CFLAGS 1455DGA_LIBS 1456XORG_MODULES_CFLAGS 1457XORG_MODULES_LIBS 1458GLAMOR_CFLAGS 1459GLAMOR_LIBS 1460GBM_CFLAGS 1461GBM_LIBS 1462XWINMODULES_CFLAGS 1463XWINMODULES_LIBS 1464WINDOWSWM_CFLAGS 1465WINDOWSWM_LIBS 1466WINDOWSDRI_CFLAGS 1467WINDOWSDRI_LIBS 1468KHRONOS_OPENGL_REGISTRY_CFLAGS 1469KHRONOS_OPENGL_REGISTRY_LIBS 1470XPBPROXY_CFLAGS 1471XPBPROXY_LIBS 1472DMXMODULES_CFLAGS 1473DMXMODULES_LIBS 1474XDMXCONFIG_DEP_CFLAGS 1475XDMXCONFIG_DEP_LIBS 1476DMXEXAMPLES_DEP_CFLAGS 1477DMXEXAMPLES_DEP_LIBS 1478DMXXMUEXAMPLES_DEP_CFLAGS 1479DMXXMUEXAMPLES_DEP_LIBS 1480DMXXIEXAMPLES_DEP_CFLAGS 1481DMXXIEXAMPLES_DEP_LIBS 1482XTSTEXAMPLES_DEP_CFLAGS 1483XTSTEXAMPLES_DEP_LIBS 1484XRESEXAMPLES_DEP_CFLAGS 1485XRESEXAMPLES_DEP_LIBS 1486X11EXAMPLES_DEP_CFLAGS 1487X11EXAMPLES_DEP_LIBS 1488XEPHYR_CFLAGS 1489XEPHYR_LIBS 1490XWAYLANDMODULES_CFLAGS 1491XWAYLANDMODULES_LIBS 1492WAYLAND_EGLSTREAM_CFLAGS 1493WAYLAND_EGLSTREAM_LIBS 1494WAYLAND_SCANNER_CFLAGS 1495WAYLAND_SCANNER_LIBS' 1496 1497 1498# Initialize some variables set by options. 1499ac_init_help= 1500ac_init_version=false 1501ac_unrecognized_opts= 1502ac_unrecognized_sep= 1503# The variables have the same names as the options, with 1504# dashes changed to underlines. 1505cache_file=/dev/null 1506exec_prefix=NONE 1507no_create= 1508no_recursion= 1509prefix=NONE 1510program_prefix=NONE 1511program_suffix=NONE 1512program_transform_name=s,x,x, 1513silent= 1514site= 1515srcdir= 1516verbose= 1517x_includes=NONE 1518x_libraries=NONE 1519 1520# Installation directory options. 1521# These are left unexpanded so users can "make install exec_prefix=/foo" 1522# and all the variables that are supposed to be based on exec_prefix 1523# by default will actually change. 1524# Use braces instead of parens because sh, perl, etc. also accept them. 1525# (The list follows the same order as the GNU Coding Standards.) 1526bindir='${exec_prefix}/bin' 1527sbindir='${exec_prefix}/sbin' 1528libexecdir='${exec_prefix}/libexec' 1529datarootdir='${prefix}/share' 1530datadir='${datarootdir}' 1531sysconfdir='${prefix}/etc' 1532sharedstatedir='${prefix}/com' 1533localstatedir='${prefix}/var' 1534includedir='${prefix}/include' 1535oldincludedir='/usr/include' 1536docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1537infodir='${datarootdir}/info' 1538htmldir='${docdir}' 1539dvidir='${docdir}' 1540pdfdir='${docdir}' 1541psdir='${docdir}' 1542libdir='${exec_prefix}/lib' 1543localedir='${datarootdir}/locale' 1544mandir='${datarootdir}/man' 1545 1546ac_prev= 1547ac_dashdash= 1548for ac_option 1549do 1550 # If the previous option needs an argument, assign it. 1551 if test -n "$ac_prev"; then 1552 eval $ac_prev=\$ac_option 1553 ac_prev= 1554 continue 1555 fi 1556 1557 case $ac_option in 1558 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1559 *=) ac_optarg= ;; 1560 *) ac_optarg=yes ;; 1561 esac 1562 1563 # Accept the important Cygnus configure options, so we can diagnose typos. 1564 1565 case $ac_dashdash$ac_option in 1566 --) 1567 ac_dashdash=yes ;; 1568 1569 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1570 ac_prev=bindir ;; 1571 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1572 bindir=$ac_optarg ;; 1573 1574 -build | --build | --buil | --bui | --bu) 1575 ac_prev=build_alias ;; 1576 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1577 build_alias=$ac_optarg ;; 1578 1579 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1580 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1581 ac_prev=cache_file ;; 1582 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1583 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1584 cache_file=$ac_optarg ;; 1585 1586 --config-cache | -C) 1587 cache_file=config.cache ;; 1588 1589 -datadir | --datadir | --datadi | --datad) 1590 ac_prev=datadir ;; 1591 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1592 datadir=$ac_optarg ;; 1593 1594 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1595 | --dataroo | --dataro | --datar) 1596 ac_prev=datarootdir ;; 1597 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1598 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1599 datarootdir=$ac_optarg ;; 1600 1601 -disable-* | --disable-*) 1602 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1603 # Reject names that are not valid shell variable names. 1604 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1605 as_fn_error $? "invalid feature name: $ac_useropt" 1606 ac_useropt_orig=$ac_useropt 1607 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1608 case $ac_user_opts in 1609 *" 1610"enable_$ac_useropt" 1611"*) ;; 1612 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1613 ac_unrecognized_sep=', ';; 1614 esac 1615 eval enable_$ac_useropt=no ;; 1616 1617 -docdir | --docdir | --docdi | --doc | --do) 1618 ac_prev=docdir ;; 1619 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1620 docdir=$ac_optarg ;; 1621 1622 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1623 ac_prev=dvidir ;; 1624 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1625 dvidir=$ac_optarg ;; 1626 1627 -enable-* | --enable-*) 1628 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1629 # Reject names that are not valid shell variable names. 1630 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1631 as_fn_error $? "invalid feature name: $ac_useropt" 1632 ac_useropt_orig=$ac_useropt 1633 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1634 case $ac_user_opts in 1635 *" 1636"enable_$ac_useropt" 1637"*) ;; 1638 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1639 ac_unrecognized_sep=', ';; 1640 esac 1641 eval enable_$ac_useropt=\$ac_optarg ;; 1642 1643 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1644 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1645 | --exec | --exe | --ex) 1646 ac_prev=exec_prefix ;; 1647 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1648 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1649 | --exec=* | --exe=* | --ex=*) 1650 exec_prefix=$ac_optarg ;; 1651 1652 -gas | --gas | --ga | --g) 1653 # Obsolete; use --with-gas. 1654 with_gas=yes ;; 1655 1656 -help | --help | --hel | --he | -h) 1657 ac_init_help=long ;; 1658 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1659 ac_init_help=recursive ;; 1660 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1661 ac_init_help=short ;; 1662 1663 -host | --host | --hos | --ho) 1664 ac_prev=host_alias ;; 1665 -host=* | --host=* | --hos=* | --ho=*) 1666 host_alias=$ac_optarg ;; 1667 1668 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1669 ac_prev=htmldir ;; 1670 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1671 | --ht=*) 1672 htmldir=$ac_optarg ;; 1673 1674 -includedir | --includedir | --includedi | --included | --include \ 1675 | --includ | --inclu | --incl | --inc) 1676 ac_prev=includedir ;; 1677 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1678 | --includ=* | --inclu=* | --incl=* | --inc=*) 1679 includedir=$ac_optarg ;; 1680 1681 -infodir | --infodir | --infodi | --infod | --info | --inf) 1682 ac_prev=infodir ;; 1683 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1684 infodir=$ac_optarg ;; 1685 1686 -libdir | --libdir | --libdi | --libd) 1687 ac_prev=libdir ;; 1688 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1689 libdir=$ac_optarg ;; 1690 1691 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1692 | --libexe | --libex | --libe) 1693 ac_prev=libexecdir ;; 1694 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1695 | --libexe=* | --libex=* | --libe=*) 1696 libexecdir=$ac_optarg ;; 1697 1698 -localedir | --localedir | --localedi | --localed | --locale) 1699 ac_prev=localedir ;; 1700 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1701 localedir=$ac_optarg ;; 1702 1703 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1704 | --localstate | --localstat | --localsta | --localst | --locals) 1705 ac_prev=localstatedir ;; 1706 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1707 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1708 localstatedir=$ac_optarg ;; 1709 1710 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1711 ac_prev=mandir ;; 1712 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1713 mandir=$ac_optarg ;; 1714 1715 -nfp | --nfp | --nf) 1716 # Obsolete; use --without-fp. 1717 with_fp=no ;; 1718 1719 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1720 | --no-cr | --no-c | -n) 1721 no_create=yes ;; 1722 1723 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1724 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1725 no_recursion=yes ;; 1726 1727 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1728 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1729 | --oldin | --oldi | --old | --ol | --o) 1730 ac_prev=oldincludedir ;; 1731 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1732 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1733 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1734 oldincludedir=$ac_optarg ;; 1735 1736 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1737 ac_prev=prefix ;; 1738 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1739 prefix=$ac_optarg ;; 1740 1741 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1742 | --program-pre | --program-pr | --program-p) 1743 ac_prev=program_prefix ;; 1744 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1745 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1746 program_prefix=$ac_optarg ;; 1747 1748 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1749 | --program-suf | --program-su | --program-s) 1750 ac_prev=program_suffix ;; 1751 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1752 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1753 program_suffix=$ac_optarg ;; 1754 1755 -program-transform-name | --program-transform-name \ 1756 | --program-transform-nam | --program-transform-na \ 1757 | --program-transform-n | --program-transform- \ 1758 | --program-transform | --program-transfor \ 1759 | --program-transfo | --program-transf \ 1760 | --program-trans | --program-tran \ 1761 | --progr-tra | --program-tr | --program-t) 1762 ac_prev=program_transform_name ;; 1763 -program-transform-name=* | --program-transform-name=* \ 1764 | --program-transform-nam=* | --program-transform-na=* \ 1765 | --program-transform-n=* | --program-transform-=* \ 1766 | --program-transform=* | --program-transfor=* \ 1767 | --program-transfo=* | --program-transf=* \ 1768 | --program-trans=* | --program-tran=* \ 1769 | --progr-tra=* | --program-tr=* | --program-t=*) 1770 program_transform_name=$ac_optarg ;; 1771 1772 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1773 ac_prev=pdfdir ;; 1774 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1775 pdfdir=$ac_optarg ;; 1776 1777 -psdir | --psdir | --psdi | --psd | --ps) 1778 ac_prev=psdir ;; 1779 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1780 psdir=$ac_optarg ;; 1781 1782 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1783 | -silent | --silent | --silen | --sile | --sil) 1784 silent=yes ;; 1785 1786 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1787 ac_prev=sbindir ;; 1788 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1789 | --sbi=* | --sb=*) 1790 sbindir=$ac_optarg ;; 1791 1792 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1793 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1794 | --sharedst | --shareds | --shared | --share | --shar \ 1795 | --sha | --sh) 1796 ac_prev=sharedstatedir ;; 1797 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1798 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1799 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1800 | --sha=* | --sh=*) 1801 sharedstatedir=$ac_optarg ;; 1802 1803 -site | --site | --sit) 1804 ac_prev=site ;; 1805 -site=* | --site=* | --sit=*) 1806 site=$ac_optarg ;; 1807 1808 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1809 ac_prev=srcdir ;; 1810 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1811 srcdir=$ac_optarg ;; 1812 1813 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1814 | --syscon | --sysco | --sysc | --sys | --sy) 1815 ac_prev=sysconfdir ;; 1816 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1817 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1818 sysconfdir=$ac_optarg ;; 1819 1820 -target | --target | --targe | --targ | --tar | --ta | --t) 1821 ac_prev=target_alias ;; 1822 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1823 target_alias=$ac_optarg ;; 1824 1825 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1826 verbose=yes ;; 1827 1828 -version | --version | --versio | --versi | --vers | -V) 1829 ac_init_version=: ;; 1830 1831 -with-* | --with-*) 1832 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1833 # Reject names that are not valid shell variable names. 1834 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1835 as_fn_error $? "invalid package name: $ac_useropt" 1836 ac_useropt_orig=$ac_useropt 1837 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1838 case $ac_user_opts in 1839 *" 1840"with_$ac_useropt" 1841"*) ;; 1842 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1843 ac_unrecognized_sep=', ';; 1844 esac 1845 eval with_$ac_useropt=\$ac_optarg ;; 1846 1847 -without-* | --without-*) 1848 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1849 # Reject names that are not valid shell variable names. 1850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1851 as_fn_error $? "invalid package name: $ac_useropt" 1852 ac_useropt_orig=$ac_useropt 1853 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1854 case $ac_user_opts in 1855 *" 1856"with_$ac_useropt" 1857"*) ;; 1858 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1859 ac_unrecognized_sep=', ';; 1860 esac 1861 eval with_$ac_useropt=no ;; 1862 1863 --x) 1864 # Obsolete; use --with-x. 1865 with_x=yes ;; 1866 1867 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1868 | --x-incl | --x-inc | --x-in | --x-i) 1869 ac_prev=x_includes ;; 1870 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1871 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1872 x_includes=$ac_optarg ;; 1873 1874 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1875 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1876 ac_prev=x_libraries ;; 1877 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1878 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1879 x_libraries=$ac_optarg ;; 1880 1881 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1882Try \`$0 --help' for more information" 1883 ;; 1884 1885 *=*) 1886 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1887 # Reject names that are not valid shell variable names. 1888 case $ac_envvar in #( 1889 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1890 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1891 esac 1892 eval $ac_envvar=\$ac_optarg 1893 export $ac_envvar ;; 1894 1895 *) 1896 # FIXME: should be removed in autoconf 3.0. 1897 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1898 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1899 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1900 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1901 ;; 1902 1903 esac 1904done 1905 1906if test -n "$ac_prev"; then 1907 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1908 as_fn_error $? "missing argument to $ac_option" 1909fi 1910 1911if test -n "$ac_unrecognized_opts"; then 1912 case $enable_option_checking in 1913 no) ;; 1914 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1915 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1916 esac 1917fi 1918 1919# Check all directory arguments for consistency. 1920for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1921 datadir sysconfdir sharedstatedir localstatedir includedir \ 1922 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1923 libdir localedir mandir 1924do 1925 eval ac_val=\$$ac_var 1926 # Remove trailing slashes. 1927 case $ac_val in 1928 */ ) 1929 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1930 eval $ac_var=\$ac_val;; 1931 esac 1932 # Be sure to have absolute directory names. 1933 case $ac_val in 1934 [\\/$]* | ?:[\\/]* ) continue;; 1935 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1936 esac 1937 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1938done 1939 1940# There might be people who depend on the old broken behavior: `$host' 1941# used to hold the argument of --host etc. 1942# FIXME: To remove some day. 1943build=$build_alias 1944host=$host_alias 1945target=$target_alias 1946 1947# FIXME: To remove some day. 1948if test "x$host_alias" != x; then 1949 if test "x$build_alias" = x; then 1950 cross_compiling=maybe 1951 elif test "x$build_alias" != "x$host_alias"; then 1952 cross_compiling=yes 1953 fi 1954fi 1955 1956ac_tool_prefix= 1957test -n "$host_alias" && ac_tool_prefix=$host_alias- 1958 1959test "$silent" = yes && exec 6>/dev/null 1960 1961 1962ac_pwd=`pwd` && test -n "$ac_pwd" && 1963ac_ls_di=`ls -di .` && 1964ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1965 as_fn_error $? "working directory cannot be determined" 1966test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1967 as_fn_error $? "pwd does not report name of working directory" 1968 1969 1970# Find the source files, if location was not specified. 1971if test -z "$srcdir"; then 1972 ac_srcdir_defaulted=yes 1973 # Try the directory containing this script, then the parent directory. 1974 ac_confdir=`$as_dirname -- "$as_myself" || 1975$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1976 X"$as_myself" : 'X\(//\)[^/]' \| \ 1977 X"$as_myself" : 'X\(//\)$' \| \ 1978 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1979$as_echo X"$as_myself" | 1980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1981 s//\1/ 1982 q 1983 } 1984 /^X\(\/\/\)[^/].*/{ 1985 s//\1/ 1986 q 1987 } 1988 /^X\(\/\/\)$/{ 1989 s//\1/ 1990 q 1991 } 1992 /^X\(\/\).*/{ 1993 s//\1/ 1994 q 1995 } 1996 s/.*/./; q'` 1997 srcdir=$ac_confdir 1998 if test ! -r "$srcdir/$ac_unique_file"; then 1999 srcdir=.. 2000 fi 2001else 2002 ac_srcdir_defaulted=no 2003fi 2004if test ! -r "$srcdir/$ac_unique_file"; then 2005 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 2006 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 2007fi 2008ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 2009ac_abs_confdir=`( 2010 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 2011 pwd)` 2012# When building in place, set srcdir=. 2013if test "$ac_abs_confdir" = "$ac_pwd"; then 2014 srcdir=. 2015fi 2016# Remove unnecessary trailing slashes from srcdir. 2017# Double slashes in file names in object file debugging info 2018# mess up M-x gdb in Emacs. 2019case $srcdir in 2020*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 2021esac 2022for ac_var in $ac_precious_vars; do 2023 eval ac_env_${ac_var}_set=\${${ac_var}+set} 2024 eval ac_env_${ac_var}_value=\$${ac_var} 2025 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 2026 eval ac_cv_env_${ac_var}_value=\$${ac_var} 2027done 2028 2029# 2030# Report the --help message. 2031# 2032if test "$ac_init_help" = "long"; then 2033 # Omit some internal or obsolete options to make the list less imposing. 2034 # This message is too long to be a string in the A/UX 3.1 sh. 2035 cat <<_ACEOF 2036\`configure' configures xorg-server 1.20.4 to adapt to many kinds of systems. 2037 2038Usage: $0 [OPTION]... [VAR=VALUE]... 2039 2040To assign environment variables (e.g., CC, CFLAGS...), specify them as 2041VAR=VALUE. See below for descriptions of some of the useful variables. 2042 2043Defaults for the options are specified in brackets. 2044 2045Configuration: 2046 -h, --help display this help and exit 2047 --help=short display options specific to this package 2048 --help=recursive display the short help of all the included packages 2049 -V, --version display version information and exit 2050 -q, --quiet, --silent do not print \`checking ...' messages 2051 --cache-file=FILE cache test results in FILE [disabled] 2052 -C, --config-cache alias for \`--cache-file=config.cache' 2053 -n, --no-create do not create output files 2054 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 2055 2056Installation directories: 2057 --prefix=PREFIX install architecture-independent files in PREFIX 2058 [$ac_default_prefix] 2059 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 2060 [PREFIX] 2061 2062By default, \`make install' will install all the files in 2063\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 2064an installation prefix other than \`$ac_default_prefix' using \`--prefix', 2065for instance \`--prefix=\$HOME'. 2066 2067For better control, use the options below. 2068 2069Fine tuning of the installation directories: 2070 --bindir=DIR user executables [EPREFIX/bin] 2071 --sbindir=DIR system admin executables [EPREFIX/sbin] 2072 --libexecdir=DIR program executables [EPREFIX/libexec] 2073 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 2074 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 2075 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 2076 --libdir=DIR object code libraries [EPREFIX/lib] 2077 --includedir=DIR C header files [PREFIX/include] 2078 --oldincludedir=DIR C header files for non-gcc [/usr/include] 2079 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 2080 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 2081 --infodir=DIR info documentation [DATAROOTDIR/info] 2082 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 2083 --mandir=DIR man documentation [DATAROOTDIR/man] 2084 --docdir=DIR documentation root [DATAROOTDIR/doc/xorg-server] 2085 --htmldir=DIR html documentation [DOCDIR] 2086 --dvidir=DIR dvi documentation [DOCDIR] 2087 --pdfdir=DIR pdf documentation [DOCDIR] 2088 --psdir=DIR ps documentation [DOCDIR] 2089_ACEOF 2090 2091 cat <<\_ACEOF 2092 2093Program names: 2094 --program-prefix=PREFIX prepend PREFIX to installed program names 2095 --program-suffix=SUFFIX append SUFFIX to installed program names 2096 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 2097 2098System types: 2099 --build=BUILD configure for building on BUILD [guessed] 2100 --host=HOST cross-compile to build programs to run on HOST [BUILD] 2101_ACEOF 2102fi 2103 2104if test -n "$ac_init_help"; then 2105 case $ac_init_help in 2106 short | recursive ) echo "Configuration of xorg-server 1.20.4:";; 2107 esac 2108 cat <<\_ACEOF 2109 2110Optional Features: 2111 --disable-option-checking ignore unrecognized --enable/--with options 2112 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 2113 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 2114 --enable-silent-rules less verbose build output (undo: "make V=1") 2115 --disable-silent-rules verbose build output (undo: "make V=0") 2116 --enable-dependency-tracking 2117 do not reject slow dependency extractors 2118 --disable-dependency-tracking 2119 speeds up one-time build 2120 --disable-selective-werror 2121 Turn off selective compiler errors. (default: 2122 enabled) 2123 --enable-strict-compilation 2124 Enable all warnings from compiler and make them 2125 errors (default: disabled) 2126 --enable-docs Enable building the documentation (default: yes) 2127 --enable-devel-docs Enable building the developer documentation 2128 (default: yes) 2129 --enable-unit-tests Enable building unit test cases (default: auto) 2130 --enable-static[=PKGS] build static libraries [default=no] 2131 --enable-shared[=PKGS] build shared libraries [default=yes] 2132 --enable-fast-install[=PKGS] 2133 optimize for fast installation [default=yes] 2134 --disable-libtool-lock avoid locking (might break parallel builds) 2135 --disable-largefile omit support for large files 2136 --enable-werror Obsolete - use --enable-strict-compilation instead 2137 --enable-debug Enable debugging (default: disabled) 2138 --enable-listen-tcp Listen on TCP by default (default:disabled) 2139 --disable-listen-unix Listen on Unix by default (default:enabled) 2140 --disable-listen-local Listen on local by default (default:enabled) 2141 --enable-sparkle Enable updating of X11.app using the Sparkle 2142 Framework (default: disabled) 2143 --enable-visibility Enable symbol visibility (default: auto) 2144 --disable-composite Build Composite extension (default: enabled) 2145 --disable-mitshm Build SHM extension (default: auto) 2146 --disable-xres Build XRes extension (default: enabled) 2147 --disable-record Build Record extension (default: enabled) 2148 --disable-xv Build Xv extension (default: enabled) 2149 --disable-xvmc Build XvMC extension (default: enabled) 2150 --disable-dga Build DGA extension (default: auto) 2151 --disable-screensaver Build ScreenSaver extension (default: enabled) 2152 --disable-xdmcp Build XDMCP extension (default: auto) 2153 --disable-xdm-auth-1 Build XDM-Auth-1 extension (default: auto) 2154 --disable-glx Build GLX extension (default: enabled) 2155 --enable-dri Build DRI extension (default: auto) 2156 --enable-dri2 Build DRI2 extension (default: auto) 2157 --enable-dri3 Build DRI3 extension (default: auto) 2158 --disable-present Build Present extension (default: enabled) 2159 --disable-xinerama Build Xinerama extension (default: enabled) 2160 --disable-xf86vidmode Build XF86VidMode extension (default: auto) 2161 --disable-xace Build X-ACE extension (default: enabled) 2162 --enable-xselinux Build SELinux extension (default: disabled) 2163 --enable-xcsecurity Build Security extension (default: disabled) 2164 --disable-dbe Build DBE extension (default: enabled) 2165 --enable-xf86bigfont Build XF86 Big Font extension (default: disabled) 2166 --disable-dpms Build DPMS extension (default: enabled) 2167 --enable-config-udev Build udev support (default: auto) 2168 --enable-config-udev-kms 2169 Build udev kms support (default: auto) 2170 --disable-config-hal Build HAL support (default: auto) 2171 --enable-config-wscons Build wscons config support (default: auto) 2172 --enable-xfree86-utils Build xfree86 DDX utilities (default: enabled) 2173 --enable-vgahw Build Xorg with vga access (default: enabled) 2174 --enable-vbe Build Xorg with VBE module (default: enabled) 2175 --enable-int10-module Build Xorg with int10 module (default: enabled) 2176 --enable-windowswm Build XWin with WindowsWM extension (default: no) 2177 --enable-windowsdri Build XWin with WindowsDRI extension (default: auto) 2178 --enable-libdrm Build Xorg with libdrm support (default: enabled) 2179 --disable-clientids Build Xorg with client ID tracking (default: 2180 enabled) 2181 --enable-pciaccess Build Xorg with pciaccess library (default: enabled) 2182 --disable-linux-acpi Disable building ACPI support on Linux (if 2183 available). 2184 --disable-linux-apm Disable building APM support on Linux (if 2185 available). 2186 --enable-systemd-logind Build systemd-logind support (default: auto) 2187 --enable-suid-wrapper Build suid-root wrapper for legacy driver support on 2188 rootless xserver systems (default: no) 2189 --enable-xorg Build Xorg server (default: auto) 2190 --enable-dmx Build DMX server (default: no) 2191 --enable-xvfb Build Xvfb server (default: yes) 2192 --enable-xnest Build Xnest server (default: auto) 2193 --enable-xquartz Build Xquartz server for OS-X (default: auto) 2194 --enable-xwayland Build Xwayland server (default: auto) 2195 --enable-xwayland-eglstream 2196 Build Xwayland eglstream support (default: no) 2197 --enable-standalone-xpbproxy 2198 Build a standalone xpbproxy (in addition to the one 2199 integrated into Xquartz as a separate thread) 2200 (default: no) 2201 --enable-xwin Build XWin server (default: auto) 2202 --enable-glamor Build glamor dix module (default: auto) 2203 --enable-kdrive Build kdrive servers (default: no) 2204 --enable-xephyr Build the kdrive Xephyr server (default: auto) 2205 --enable-libunwind Use libunwind for backtracing (default: auto) 2206 --disable-xshmfence Disable xshmfence (default: auto) 2207 --enable-install-setuid Install Xorg server as owned by root with setuid bit 2208 (default: auto) 2209 --enable-unix-transport Enable UNIX domain socket transport 2210 --enable-tcp-transport Enable TCP socket transport 2211 --enable-ipv6 Enable IPv6 support 2212 --enable-local-transport 2213 Enable os-specific local transport 2214 --enable-secure-rpc Enable Secure RPC 2215 --enable-input-thread Enable input threads 2216 --disable-xtrans-send-fds 2217 Use Xtrans support for fd passing (default: auto) 2218 2219Optional Packages: 2220 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2221 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2222 --with-doxygen Use doxygen to regenerate documentation (default: 2223 auto) 2224 --with-xmlto Use xmlto to regenerate documentation (default: 2225 auto) 2226 --with-fop Use fop to regenerate documentation (default: auto) 2227 --with-xsltproc Use xsltproc for the transformation of XML documents 2228 (default: auto) 2229 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 2230 both] 2231 --with-aix-soname=aix|svr4|both 2232 shared library versioning (aka "SONAME") variant to 2233 provide on AIX, [default=aix]. 2234 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2235 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 2236 compiler's sysroot if not specified). 2237 --with-dtrace=PATH Enable dtrace probes (default: enabled if dtrace 2238 found) 2239 --with-int10=BACKEND int10 backend: vm86, x86emu or stub 2240 --with-vendor-name=VENDOR 2241 Vendor string reported by the server 2242 --with-vendor-name-short=VENDOR 2243 Short version of vendor string reported by the 2244 server 2245 --with-vendor-web=URL Vendor web address reported by the server 2246 --with-module-dir=DIR Directory where modules are installed (default: 2247 $libdir/xorg/modules) 2248 --with-log-dir=DIR Directory where log files are kept (default: 2249 $localstatedir/log) 2250 --with-builder-addr=ADDRESS 2251 Builder address (default: 2252 xorg@lists.freedesktop.org) 2253 --with-os-name=OSNAME Name of OS (default: output of "uname -srm") 2254 --with-os-vendor=OSVENDOR 2255 Name of OS vendor 2256 --with-builderstring=BUILDERSTRING 2257 Additional builder string 2258 --with-fallback-input-driver=$FALLBACK_INPUT_DRIVER 2259 Input driver fallback if the requested driver for a 2260 device is unavailable 2261 --with-fontrootdir=DIR Path to root directory for font files 2262 --with-fontmiscdir=DIR Path to misc files [FONTROOTDIR/misc] 2263 --with-fontotfdir=DIR Path to OTF files [FONTROOTDIR/OTF] 2264 --with-fontttfdir=DIR Path to TTF files [FONTROOTDIR/TTF] 2265 --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1] 2266 --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi] 2267 --with-font100dpidir=DIR 2268 Path to 100dpi files [FONTROOTDIR/100dpi] 2269 --with-default-font-path=PATH 2270 Comma separated list of font dirs 2271 --with-xkb-path=PATH Path to XKB base dir (default: auto) 2272 --with-xkb-output=PATH Path to XKB output dir (default: 2273 ${datadir}/X11/xkb/compiled) 2274 --with-default-xkb-rules=RULES 2275 Keyboard ruleset (default: base/evdev) 2276 --with-default-xkb-model=MODEL 2277 Keyboard model (default: pc105) 2278 --with-default-xkb-layout=LAYOUT 2279 Keyboard layout (default: us) 2280 --with-default-xkb-variant=VARIANT 2281 Keyboard variant (default: (none)) 2282 --with-default-xkb-options=OPTIONS 2283 Keyboard layout options (default: (none)) 2284 --with-serverconfig-path=PATH 2285 Directory where ancillary server config files are 2286 installed (default: ${libdir}/xorg) 2287 --with-apple-applications-dir=PATH 2288 Path to the Applications directory (default: 2289 /Applications/Utilities) 2290 --with-apple-application-name=NAME 2291 Name for the .app (default: X11) 2292 --with-bundle-id-prefix=RDNS_PREFIX 2293 Prefix to use for bundle identifiers (default: 2294 org.x) 2295 --with-bundle-version=VERSION 2296 Version to use for X11.app's CFBundleVersion 2297 (default: 1.20.4) 2298 --with-bundle-version-string=VERSION 2299 Version to use for X11.app's 2300 CFBundleShortVersionString (default: 1.20.4) 2301 --with-sparkle-feed-url=URL 2302 URL for the Sparkle feed (default: 2303 https://www.xquartz.org/releases/sparkle/release.xml) 2304 --with-khronos-spec-dir=PATH 2305 Path to Khronos OpenGL registry database files 2306 (default: auto) 2307 --with-systemd-daemon support systemd socket activation (default: auto) 2308 --with-shared-memory-dir=PATH 2309 Path to directory in a world-writable temporary 2310 directory for anonymous shared memory (default: 2311 auto) 2312 --with-xkb-bin-directory=DIR 2313 Directory containing xkbcomp program (default: auto) 2314 --with-sha1=libc|libmd|libnettle|libgcrypt|libcrypto|libsha1|CommonCrypto|CryptoAPI 2315 choose SHA1 implementation 2316 2317Some influential environment variables: 2318 CC C compiler command 2319 CFLAGS C compiler flags 2320 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2321 nonstandard directory <lib dir> 2322 LIBS libraries to pass to the linker, e.g. -l<library> 2323 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2324 you have headers in a nonstandard directory <include dir> 2325 CPP C preprocessor 2326 PKG_CONFIG path to pkg-config utility 2327 PKG_CONFIG_PATH 2328 directories to add to pkg-config's search path 2329 PKG_CONFIG_LIBDIR 2330 path overriding pkg-config's built-in search path 2331 DOXYGEN Path to doxygen command 2332 DOT Path to the dot graphics utility 2333 XMLTO Path to xmlto command 2334 FOP Path to fop command 2335 XSLTPROC Path to xsltproc command 2336 XORG_MALLOC_DEBUG_ENV 2337 Environment variables to enable memory checking in tests 2338 CCAS assembler compiler command (defaults to CC) 2339 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 2340 LT_SYS_LIBRARY_PATH 2341 User-defined run-time library search path. 2342 YACC The `Yet Another Compiler Compiler' implementation to use. 2343 Defaults to the first program found out of: `bison -y', `byacc', 2344 `yacc'. 2345 YFLAGS The list of arguments that will be passed by default to $YACC. 2346 This script will default YFLAGS to the empty string to avoid a 2347 default value of `-d' given by some make applications. 2348 PIXMAN_CFLAGS 2349 C compiler flags for PIXMAN, overriding pkg-config 2350 PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config 2351 SYSTEMD_DAEMON_CFLAGS 2352 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config 2353 SYSTEMD_DAEMON_LIBS 2354 linker flags for SYSTEMD_DAEMON, overriding pkg-config 2355 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config 2356 UDEV_LIBS linker flags for UDEV, overriding pkg-config 2357 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config 2358 DBUS_LIBS linker flags for DBUS, overriding pkg-config 2359 HAL_CFLAGS C compiler flags for HAL, overriding pkg-config 2360 HAL_LIBS linker flags for HAL, overriding pkg-config 2361 DRI2PROTO_CFLAGS 2362 C compiler flags for DRI2PROTO, overriding pkg-config 2363 DRI2PROTO_LIBS 2364 linker flags for DRI2PROTO, overriding pkg-config 2365 DRI3PROTO_CFLAGS 2366 C compiler flags for DRI3PROTO, overriding pkg-config 2367 DRI3PROTO_LIBS 2368 linker flags for DRI3PROTO, overriding pkg-config 2369 XSHMFENCE_CFLAGS 2370 C compiler flags for XSHMFENCE, overriding pkg-config 2371 XSHMFENCE_LIBS 2372 linker flags for XSHMFENCE, overriding pkg-config 2373 LIBDRM_CFLAGS 2374 C compiler flags for LIBDRM, overriding pkg-config 2375 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config 2376 XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config 2377 XLIB_LIBS linker flags for XLIB, overriding pkg-config 2378 GL_CFLAGS C compiler flags for GL, overriding pkg-config 2379 GL_LIBS linker flags for GL, overriding pkg-config 2380 SELINUX_CFLAGS 2381 C compiler flags for SELINUX, overriding pkg-config 2382 SELINUX_LIBS 2383 linker flags for SELINUX, overriding pkg-config 2384 XDMCP_CFLAGS 2385 C compiler flags for XDMCP, overriding pkg-config 2386 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config 2387 LIBSHA1_CFLAGS 2388 C compiler flags for LIBSHA1, overriding pkg-config 2389 LIBSHA1_LIBS 2390 linker flags for LIBSHA1, overriding pkg-config 2391 OPENSSL_CFLAGS 2392 C compiler flags for OPENSSL, overriding pkg-config 2393 OPENSSL_LIBS 2394 linker flags for OPENSSL, overriding pkg-config 2395 XSERVERCFLAGS_CFLAGS 2396 C compiler flags for XSERVERCFLAGS, overriding pkg-config 2397 XSERVERCFLAGS_LIBS 2398 linker flags for XSERVERCFLAGS, overriding pkg-config 2399 XSERVERLIBS_CFLAGS 2400 C compiler flags for XSERVERLIBS, overriding pkg-config 2401 XSERVERLIBS_LIBS 2402 linker flags for XSERVERLIBS, overriding pkg-config 2403 LIBUNWIND_CFLAGS 2404 C compiler flags for LIBUNWIND, overriding pkg-config 2405 LIBUNWIND_LIBS 2406 linker flags for LIBUNWIND, overriding pkg-config 2407 XNESTMODULES_CFLAGS 2408 C compiler flags for XNESTMODULES, overriding pkg-config 2409 XNESTMODULES_LIBS 2410 linker flags for XNESTMODULES, overriding pkg-config 2411 PCIACCESS_CFLAGS 2412 C compiler flags for PCIACCESS, overriding pkg-config 2413 PCIACCESS_LIBS 2414 linker flags for PCIACCESS, overriding pkg-config 2415 DGA_CFLAGS C compiler flags for DGA, overriding pkg-config 2416 DGA_LIBS linker flags for DGA, overriding pkg-config 2417 XORG_MODULES_CFLAGS 2418 C compiler flags for XORG_MODULES, overriding pkg-config 2419 XORG_MODULES_LIBS 2420 linker flags for XORG_MODULES, overriding pkg-config 2421 GLAMOR_CFLAGS 2422 C compiler flags for GLAMOR, overriding pkg-config 2423 GLAMOR_LIBS linker flags for GLAMOR, overriding pkg-config 2424 GBM_CFLAGS C compiler flags for GBM, overriding pkg-config 2425 GBM_LIBS linker flags for GBM, overriding pkg-config 2426 XWINMODULES_CFLAGS 2427 C compiler flags for XWINMODULES, overriding pkg-config 2428 XWINMODULES_LIBS 2429 linker flags for XWINMODULES, overriding pkg-config 2430 WINDOWSWM_CFLAGS 2431 C compiler flags for WINDOWSWM, overriding pkg-config 2432 WINDOWSWM_LIBS 2433 linker flags for WINDOWSWM, overriding pkg-config 2434 WINDOWSDRI_CFLAGS 2435 C compiler flags for WINDOWSDRI, overriding pkg-config 2436 WINDOWSDRI_LIBS 2437 linker flags for WINDOWSDRI, overriding pkg-config 2438 KHRONOS_OPENGL_REGISTRY_CFLAGS 2439 C compiler flags for KHRONOS_OPENGL_REGISTRY, overriding 2440 pkg-config 2441 KHRONOS_OPENGL_REGISTRY_LIBS 2442 linker flags for KHRONOS_OPENGL_REGISTRY, overriding pkg-config 2443 XPBPROXY_CFLAGS 2444 C compiler flags for XPBPROXY, overriding pkg-config 2445 XPBPROXY_LIBS 2446 linker flags for XPBPROXY, overriding pkg-config 2447 DMXMODULES_CFLAGS 2448 C compiler flags for DMXMODULES, overriding pkg-config 2449 DMXMODULES_LIBS 2450 linker flags for DMXMODULES, overriding pkg-config 2451 XDMXCONFIG_DEP_CFLAGS 2452 C compiler flags for XDMXCONFIG_DEP, overriding pkg-config 2453 XDMXCONFIG_DEP_LIBS 2454 linker flags for XDMXCONFIG_DEP, overriding pkg-config 2455 DMXEXAMPLES_DEP_CFLAGS 2456 C compiler flags for DMXEXAMPLES_DEP, overriding pkg-config 2457 DMXEXAMPLES_DEP_LIBS 2458 linker flags for DMXEXAMPLES_DEP, overriding pkg-config 2459 DMXXMUEXAMPLES_DEP_CFLAGS 2460 C compiler flags for DMXXMUEXAMPLES_DEP, overriding pkg-config 2461 DMXXMUEXAMPLES_DEP_LIBS 2462 linker flags for DMXXMUEXAMPLES_DEP, overriding pkg-config 2463 DMXXIEXAMPLES_DEP_CFLAGS 2464 C compiler flags for DMXXIEXAMPLES_DEP, overriding pkg-config 2465 DMXXIEXAMPLES_DEP_LIBS 2466 linker flags for DMXXIEXAMPLES_DEP, overriding pkg-config 2467 XTSTEXAMPLES_DEP_CFLAGS 2468 C compiler flags for XTSTEXAMPLES_DEP, overriding pkg-config 2469 XTSTEXAMPLES_DEP_LIBS 2470 linker flags for XTSTEXAMPLES_DEP, overriding pkg-config 2471 XRESEXAMPLES_DEP_CFLAGS 2472 C compiler flags for XRESEXAMPLES_DEP, overriding pkg-config 2473 XRESEXAMPLES_DEP_LIBS 2474 linker flags for XRESEXAMPLES_DEP, overriding pkg-config 2475 X11EXAMPLES_DEP_CFLAGS 2476 C compiler flags for X11EXAMPLES_DEP, overriding pkg-config 2477 X11EXAMPLES_DEP_LIBS 2478 linker flags for X11EXAMPLES_DEP, overriding pkg-config 2479 XEPHYR_CFLAGS 2480 C compiler flags for XEPHYR, overriding pkg-config 2481 XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config 2482 XWAYLANDMODULES_CFLAGS 2483 C compiler flags for XWAYLANDMODULES, overriding pkg-config 2484 XWAYLANDMODULES_LIBS 2485 linker flags for XWAYLANDMODULES, overriding pkg-config 2486 WAYLAND_EGLSTREAM_CFLAGS 2487 C compiler flags for WAYLAND_EGLSTREAM, overriding pkg-config 2488 WAYLAND_EGLSTREAM_LIBS 2489 linker flags for WAYLAND_EGLSTREAM, overriding pkg-config 2490 WAYLAND_SCANNER_CFLAGS 2491 C compiler flags for WAYLAND_SCANNER, overriding pkg-config 2492 WAYLAND_SCANNER_LIBS 2493 linker flags for WAYLAND_SCANNER, overriding pkg-config 2494 2495Use these variables to override the choices made by `configure' or to help 2496it to find libraries and programs with nonstandard names/locations. 2497 2498Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>. 2499_ACEOF 2500ac_status=$? 2501fi 2502 2503if test "$ac_init_help" = "recursive"; then 2504 # If there are subdirs, report their specific --help. 2505 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2506 test -d "$ac_dir" || 2507 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2508 continue 2509 ac_builddir=. 2510 2511case "$ac_dir" in 2512.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2513*) 2514 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2515 # A ".." for each directory in $ac_dir_suffix. 2516 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2517 case $ac_top_builddir_sub in 2518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2520 esac ;; 2521esac 2522ac_abs_top_builddir=$ac_pwd 2523ac_abs_builddir=$ac_pwd$ac_dir_suffix 2524# for backward compatibility: 2525ac_top_builddir=$ac_top_build_prefix 2526 2527case $srcdir in 2528 .) # We are building in place. 2529 ac_srcdir=. 2530 ac_top_srcdir=$ac_top_builddir_sub 2531 ac_abs_top_srcdir=$ac_pwd ;; 2532 [\\/]* | ?:[\\/]* ) # Absolute name. 2533 ac_srcdir=$srcdir$ac_dir_suffix; 2534 ac_top_srcdir=$srcdir 2535 ac_abs_top_srcdir=$srcdir ;; 2536 *) # Relative name. 2537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2538 ac_top_srcdir=$ac_top_build_prefix$srcdir 2539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2540esac 2541ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2542 2543 cd "$ac_dir" || { ac_status=$?; continue; } 2544 # Check for guested configure. 2545 if test -f "$ac_srcdir/configure.gnu"; then 2546 echo && 2547 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2548 elif test -f "$ac_srcdir/configure"; then 2549 echo && 2550 $SHELL "$ac_srcdir/configure" --help=recursive 2551 else 2552 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2553 fi || ac_status=$? 2554 cd "$ac_pwd" || { ac_status=$?; break; } 2555 done 2556fi 2557 2558test -n "$ac_init_help" && exit $ac_status 2559if $ac_init_version; then 2560 cat <<\_ACEOF 2561xorg-server configure 1.20.4 2562generated by GNU Autoconf 2.69 2563 2564Copyright (C) 2012 Free Software Foundation, Inc. 2565This configure script is free software; the Free Software Foundation 2566gives unlimited permission to copy, distribute and modify it. 2567_ACEOF 2568 exit 2569fi 2570 2571## ------------------------ ## 2572## Autoconf initialization. ## 2573## ------------------------ ## 2574 2575# ac_fn_c_try_compile LINENO 2576# -------------------------- 2577# Try to compile conftest.$ac_ext, and return whether this succeeded. 2578ac_fn_c_try_compile () 2579{ 2580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2581 rm -f conftest.$ac_objext 2582 if { { ac_try="$ac_compile" 2583case "(($ac_try" in 2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2585 *) ac_try_echo=$ac_try;; 2586esac 2587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2588$as_echo "$ac_try_echo"; } >&5 2589 (eval "$ac_compile") 2>conftest.err 2590 ac_status=$? 2591 if test -s conftest.err; then 2592 grep -v '^ *+' conftest.err >conftest.er1 2593 cat conftest.er1 >&5 2594 mv -f conftest.er1 conftest.err 2595 fi 2596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2597 test $ac_status = 0; } && { 2598 test -z "$ac_c_werror_flag" || 2599 test ! -s conftest.err 2600 } && test -s conftest.$ac_objext; then : 2601 ac_retval=0 2602else 2603 $as_echo "$as_me: failed program was:" >&5 2604sed 's/^/| /' conftest.$ac_ext >&5 2605 2606 ac_retval=1 2607fi 2608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2609 as_fn_set_status $ac_retval 2610 2611} # ac_fn_c_try_compile 2612 2613# ac_fn_c_try_cpp LINENO 2614# ---------------------- 2615# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2616ac_fn_c_try_cpp () 2617{ 2618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2619 if { { ac_try="$ac_cpp conftest.$ac_ext" 2620case "(($ac_try" in 2621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2622 *) ac_try_echo=$ac_try;; 2623esac 2624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2625$as_echo "$ac_try_echo"; } >&5 2626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2627 ac_status=$? 2628 if test -s conftest.err; then 2629 grep -v '^ *+' conftest.err >conftest.er1 2630 cat conftest.er1 >&5 2631 mv -f conftest.er1 conftest.err 2632 fi 2633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2634 test $ac_status = 0; } > conftest.i && { 2635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2636 test ! -s conftest.err 2637 }; then : 2638 ac_retval=0 2639else 2640 $as_echo "$as_me: failed program was:" >&5 2641sed 's/^/| /' conftest.$ac_ext >&5 2642 2643 ac_retval=1 2644fi 2645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2646 as_fn_set_status $ac_retval 2647 2648} # ac_fn_c_try_cpp 2649 2650# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2651# ------------------------------------------------------- 2652# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2653# the include files in INCLUDES and setting the cache variable VAR 2654# accordingly. 2655ac_fn_c_check_header_mongrel () 2656{ 2657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2658 if eval \${$3+:} false; then : 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2660$as_echo_n "checking for $2... " >&6; } 2661if eval \${$3+:} false; then : 2662 $as_echo_n "(cached) " >&6 2663fi 2664eval ac_res=\$$3 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2666$as_echo "$ac_res" >&6; } 2667else 2668 # Is the header compilable? 2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2670$as_echo_n "checking $2 usability... " >&6; } 2671cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2672/* end confdefs.h. */ 2673$4 2674#include <$2> 2675_ACEOF 2676if ac_fn_c_try_compile "$LINENO"; then : 2677 ac_header_compiler=yes 2678else 2679 ac_header_compiler=no 2680fi 2681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2683$as_echo "$ac_header_compiler" >&6; } 2684 2685# Is the header present? 2686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2687$as_echo_n "checking $2 presence... " >&6; } 2688cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2689/* end confdefs.h. */ 2690#include <$2> 2691_ACEOF 2692if ac_fn_c_try_cpp "$LINENO"; then : 2693 ac_header_preproc=yes 2694else 2695 ac_header_preproc=no 2696fi 2697rm -f conftest.err conftest.i conftest.$ac_ext 2698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2699$as_echo "$ac_header_preproc" >&6; } 2700 2701# So? What about this header? 2702case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2703 yes:no: ) 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2705$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2707$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2708 ;; 2709 no:yes:* ) 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2711$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2713$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2715$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2717$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2719$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2720( $as_echo "## ----------------------------------------------------------------- ## 2721## Report this to https://gitlab.freedesktop.org/xorg/xserver/issues ## 2722## ----------------------------------------------------------------- ##" 2723 ) | sed "s/^/$as_me: WARNING: /" >&2 2724 ;; 2725esac 2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2727$as_echo_n "checking for $2... " >&6; } 2728if eval \${$3+:} false; then : 2729 $as_echo_n "(cached) " >&6 2730else 2731 eval "$3=\$ac_header_compiler" 2732fi 2733eval ac_res=\$$3 2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2735$as_echo "$ac_res" >&6; } 2736fi 2737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2738 2739} # ac_fn_c_check_header_mongrel 2740 2741# ac_fn_c_try_run LINENO 2742# ---------------------- 2743# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2744# that executables *can* be run. 2745ac_fn_c_try_run () 2746{ 2747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2748 if { { ac_try="$ac_link" 2749case "(($ac_try" in 2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2751 *) ac_try_echo=$ac_try;; 2752esac 2753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2754$as_echo "$ac_try_echo"; } >&5 2755 (eval "$ac_link") 2>&5 2756 ac_status=$? 2757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2758 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2759 { { case "(($ac_try" in 2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2761 *) ac_try_echo=$ac_try;; 2762esac 2763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2764$as_echo "$ac_try_echo"; } >&5 2765 (eval "$ac_try") 2>&5 2766 ac_status=$? 2767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2768 test $ac_status = 0; }; }; then : 2769 ac_retval=0 2770else 2771 $as_echo "$as_me: program exited with status $ac_status" >&5 2772 $as_echo "$as_me: failed program was:" >&5 2773sed 's/^/| /' conftest.$ac_ext >&5 2774 2775 ac_retval=$ac_status 2776fi 2777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2779 as_fn_set_status $ac_retval 2780 2781} # ac_fn_c_try_run 2782 2783# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2784# ------------------------------------------------------- 2785# Tests whether HEADER exists and can be compiled using the include files in 2786# INCLUDES, setting the cache variable VAR accordingly. 2787ac_fn_c_check_header_compile () 2788{ 2789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2791$as_echo_n "checking for $2... " >&6; } 2792if eval \${$3+:} false; then : 2793 $as_echo_n "(cached) " >&6 2794else 2795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2796/* end confdefs.h. */ 2797$4 2798#include <$2> 2799_ACEOF 2800if ac_fn_c_try_compile "$LINENO"; then : 2801 eval "$3=yes" 2802else 2803 eval "$3=no" 2804fi 2805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2806fi 2807eval ac_res=\$$3 2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2809$as_echo "$ac_res" >&6; } 2810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2811 2812} # ac_fn_c_check_header_compile 2813 2814# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2815# --------------------------------------------- 2816# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2817# accordingly. 2818ac_fn_c_check_decl () 2819{ 2820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2821 as_decl_name=`echo $2|sed 's/ *(.*//'` 2822 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2824$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2825if eval \${$3+:} false; then : 2826 $as_echo_n "(cached) " >&6 2827else 2828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2829/* end confdefs.h. */ 2830$4 2831int 2832main () 2833{ 2834#ifndef $as_decl_name 2835#ifdef __cplusplus 2836 (void) $as_decl_use; 2837#else 2838 (void) $as_decl_name; 2839#endif 2840#endif 2841 2842 ; 2843 return 0; 2844} 2845_ACEOF 2846if ac_fn_c_try_compile "$LINENO"; then : 2847 eval "$3=yes" 2848else 2849 eval "$3=no" 2850fi 2851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2852fi 2853eval ac_res=\$$3 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2855$as_echo "$ac_res" >&6; } 2856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2857 2858} # ac_fn_c_check_decl 2859 2860# ac_fn_c_try_link LINENO 2861# ----------------------- 2862# Try to link conftest.$ac_ext, and return whether this succeeded. 2863ac_fn_c_try_link () 2864{ 2865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2866 rm -f conftest.$ac_objext conftest$ac_exeext 2867 if { { ac_try="$ac_link" 2868case "(($ac_try" in 2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2870 *) ac_try_echo=$ac_try;; 2871esac 2872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2873$as_echo "$ac_try_echo"; } >&5 2874 (eval "$ac_link") 2>conftest.err 2875 ac_status=$? 2876 if test -s conftest.err; then 2877 grep -v '^ *+' conftest.err >conftest.er1 2878 cat conftest.er1 >&5 2879 mv -f conftest.er1 conftest.err 2880 fi 2881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2882 test $ac_status = 0; } && { 2883 test -z "$ac_c_werror_flag" || 2884 test ! -s conftest.err 2885 } && test -s conftest$ac_exeext && { 2886 test "$cross_compiling" = yes || 2887 test -x conftest$ac_exeext 2888 }; then : 2889 ac_retval=0 2890else 2891 $as_echo "$as_me: failed program was:" >&5 2892sed 's/^/| /' conftest.$ac_ext >&5 2893 2894 ac_retval=1 2895fi 2896 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2897 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2898 # interfere with the next link command; also delete a directory that is 2899 # left behind by Apple's compiler. We do this before executing the actions. 2900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2902 as_fn_set_status $ac_retval 2903 2904} # ac_fn_c_try_link 2905 2906# ac_fn_c_check_func LINENO FUNC VAR 2907# ---------------------------------- 2908# Tests whether FUNC exists, setting the cache variable VAR accordingly 2909ac_fn_c_check_func () 2910{ 2911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2913$as_echo_n "checking for $2... " >&6; } 2914if eval \${$3+:} false; then : 2915 $as_echo_n "(cached) " >&6 2916else 2917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2918/* end confdefs.h. */ 2919/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2920 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2921#define $2 innocuous_$2 2922 2923/* System header to define __stub macros and hopefully few prototypes, 2924 which can conflict with char $2 (); below. 2925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2926 <limits.h> exists even on freestanding compilers. */ 2927 2928#ifdef __STDC__ 2929# include <limits.h> 2930#else 2931# include <assert.h> 2932#endif 2933 2934#undef $2 2935 2936/* Override any GCC internal prototype to avoid an error. 2937 Use char because int might match the return type of a GCC 2938 builtin and then its argument prototype would still apply. */ 2939#ifdef __cplusplus 2940extern "C" 2941#endif 2942char $2 (); 2943/* The GNU C library defines this for functions which it implements 2944 to always fail with ENOSYS. Some functions are actually named 2945 something starting with __ and the normal name is an alias. */ 2946#if defined __stub_$2 || defined __stub___$2 2947choke me 2948#endif 2949 2950int 2951main () 2952{ 2953return $2 (); 2954 ; 2955 return 0; 2956} 2957_ACEOF 2958if ac_fn_c_try_link "$LINENO"; then : 2959 eval "$3=yes" 2960else 2961 eval "$3=no" 2962fi 2963rm -f core conftest.err conftest.$ac_objext \ 2964 conftest$ac_exeext conftest.$ac_ext 2965fi 2966eval ac_res=\$$3 2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2968$as_echo "$ac_res" >&6; } 2969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2970 2971} # ac_fn_c_check_func 2972 2973# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2974# -------------------------------------------- 2975# Tries to find the compile-time value of EXPR in a program that includes 2976# INCLUDES, setting VAR accordingly. Returns whether the value could be 2977# computed 2978ac_fn_c_compute_int () 2979{ 2980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2981 if test "$cross_compiling" = yes; then 2982 # Depending upon the size, compute the lo and hi bounds. 2983cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2984/* end confdefs.h. */ 2985$4 2986int 2987main () 2988{ 2989static int test_array [1 - 2 * !(($2) >= 0)]; 2990test_array [0] = 0; 2991return test_array [0]; 2992 2993 ; 2994 return 0; 2995} 2996_ACEOF 2997if ac_fn_c_try_compile "$LINENO"; then : 2998 ac_lo=0 ac_mid=0 2999 while :; do 3000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3001/* end confdefs.h. */ 3002$4 3003int 3004main () 3005{ 3006static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 3007test_array [0] = 0; 3008return test_array [0]; 3009 3010 ; 3011 return 0; 3012} 3013_ACEOF 3014if ac_fn_c_try_compile "$LINENO"; then : 3015 ac_hi=$ac_mid; break 3016else 3017 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 3018 if test $ac_lo -le $ac_mid; then 3019 ac_lo= ac_hi= 3020 break 3021 fi 3022 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 3023fi 3024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3025 done 3026else 3027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3028/* end confdefs.h. */ 3029$4 3030int 3031main () 3032{ 3033static int test_array [1 - 2 * !(($2) < 0)]; 3034test_array [0] = 0; 3035return test_array [0]; 3036 3037 ; 3038 return 0; 3039} 3040_ACEOF 3041if ac_fn_c_try_compile "$LINENO"; then : 3042 ac_hi=-1 ac_mid=-1 3043 while :; do 3044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3045/* end confdefs.h. */ 3046$4 3047int 3048main () 3049{ 3050static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 3051test_array [0] = 0; 3052return test_array [0]; 3053 3054 ; 3055 return 0; 3056} 3057_ACEOF 3058if ac_fn_c_try_compile "$LINENO"; then : 3059 ac_lo=$ac_mid; break 3060else 3061 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 3062 if test $ac_mid -le $ac_hi; then 3063 ac_lo= ac_hi= 3064 break 3065 fi 3066 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 3067fi 3068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3069 done 3070else 3071 ac_lo= ac_hi= 3072fi 3073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3074fi 3075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3076# Binary search between lo and hi bounds. 3077while test "x$ac_lo" != "x$ac_hi"; do 3078 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 3079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3080/* end confdefs.h. */ 3081$4 3082int 3083main () 3084{ 3085static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 3086test_array [0] = 0; 3087return test_array [0]; 3088 3089 ; 3090 return 0; 3091} 3092_ACEOF 3093if ac_fn_c_try_compile "$LINENO"; then : 3094 ac_hi=$ac_mid 3095else 3096 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 3097fi 3098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3099done 3100case $ac_lo in #(( 3101?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 3102'') ac_retval=1 ;; 3103esac 3104 else 3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3106/* end confdefs.h. */ 3107$4 3108static long int longval () { return $2; } 3109static unsigned long int ulongval () { return $2; } 3110#include <stdio.h> 3111#include <stdlib.h> 3112int 3113main () 3114{ 3115 3116 FILE *f = fopen ("conftest.val", "w"); 3117 if (! f) 3118 return 1; 3119 if (($2) < 0) 3120 { 3121 long int i = longval (); 3122 if (i != ($2)) 3123 return 1; 3124 fprintf (f, "%ld", i); 3125 } 3126 else 3127 { 3128 unsigned long int i = ulongval (); 3129 if (i != ($2)) 3130 return 1; 3131 fprintf (f, "%lu", i); 3132 } 3133 /* Do not output a trailing newline, as this causes \r\n confusion 3134 on some platforms. */ 3135 return ferror (f) || fclose (f) != 0; 3136 3137 ; 3138 return 0; 3139} 3140_ACEOF 3141if ac_fn_c_try_run "$LINENO"; then : 3142 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 3143else 3144 ac_retval=1 3145fi 3146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3147 conftest.$ac_objext conftest.beam conftest.$ac_ext 3148rm -f conftest.val 3149 3150 fi 3151 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3152 as_fn_set_status $ac_retval 3153 3154} # ac_fn_c_compute_int 3155 3156# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 3157# ------------------------------------------- 3158# Tests whether TYPE exists after having included INCLUDES, setting cache 3159# variable VAR accordingly. 3160ac_fn_c_check_type () 3161{ 3162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3164$as_echo_n "checking for $2... " >&6; } 3165if eval \${$3+:} false; then : 3166 $as_echo_n "(cached) " >&6 3167else 3168 eval "$3=no" 3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3170/* end confdefs.h. */ 3171$4 3172int 3173main () 3174{ 3175if (sizeof ($2)) 3176 return 0; 3177 ; 3178 return 0; 3179} 3180_ACEOF 3181if ac_fn_c_try_compile "$LINENO"; then : 3182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3183/* end confdefs.h. */ 3184$4 3185int 3186main () 3187{ 3188if (sizeof (($2))) 3189 return 0; 3190 ; 3191 return 0; 3192} 3193_ACEOF 3194if ac_fn_c_try_compile "$LINENO"; then : 3195 3196else 3197 eval "$3=yes" 3198fi 3199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3200fi 3201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3202fi 3203eval ac_res=\$$3 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3205$as_echo "$ac_res" >&6; } 3206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3207 3208} # ac_fn_c_check_type 3209 3210# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 3211# ---------------------------------------------------- 3212# Tries to find if the field MEMBER exists in type AGGR, after including 3213# INCLUDES, setting cache variable VAR accordingly. 3214ac_fn_c_check_member () 3215{ 3216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 3218$as_echo_n "checking for $2.$3... " >&6; } 3219if eval \${$4+:} false; then : 3220 $as_echo_n "(cached) " >&6 3221else 3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3223/* end confdefs.h. */ 3224$5 3225int 3226main () 3227{ 3228static $2 ac_aggr; 3229if (ac_aggr.$3) 3230return 0; 3231 ; 3232 return 0; 3233} 3234_ACEOF 3235if ac_fn_c_try_compile "$LINENO"; then : 3236 eval "$4=yes" 3237else 3238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3239/* end confdefs.h. */ 3240$5 3241int 3242main () 3243{ 3244static $2 ac_aggr; 3245if (sizeof ac_aggr.$3) 3246return 0; 3247 ; 3248 return 0; 3249} 3250_ACEOF 3251if ac_fn_c_try_compile "$LINENO"; then : 3252 eval "$4=yes" 3253else 3254 eval "$4=no" 3255fi 3256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3257fi 3258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3259fi 3260eval ac_res=\$$4 3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3262$as_echo "$ac_res" >&6; } 3263 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3264 3265} # ac_fn_c_check_member 3266cat >config.log <<_ACEOF 3267This file contains any messages produced by compilers while 3268running configure, to aid debugging if configure makes a mistake. 3269 3270It was created by xorg-server $as_me 1.20.4, which was 3271generated by GNU Autoconf 2.69. Invocation command line was 3272 3273 $ $0 $@ 3274 3275_ACEOF 3276exec 5>>config.log 3277{ 3278cat <<_ASUNAME 3279## --------- ## 3280## Platform. ## 3281## --------- ## 3282 3283hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3284uname -m = `(uname -m) 2>/dev/null || echo unknown` 3285uname -r = `(uname -r) 2>/dev/null || echo unknown` 3286uname -s = `(uname -s) 2>/dev/null || echo unknown` 3287uname -v = `(uname -v) 2>/dev/null || echo unknown` 3288 3289/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3290/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3291 3292/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3293/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3294/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3295/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3296/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3297/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3298/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3299 3300_ASUNAME 3301 3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3303for as_dir in $PATH 3304do 3305 IFS=$as_save_IFS 3306 test -z "$as_dir" && as_dir=. 3307 $as_echo "PATH: $as_dir" 3308 done 3309IFS=$as_save_IFS 3310 3311} >&5 3312 3313cat >&5 <<_ACEOF 3314 3315 3316## ----------- ## 3317## Core tests. ## 3318## ----------- ## 3319 3320_ACEOF 3321 3322 3323# Keep a trace of the command line. 3324# Strip out --no-create and --no-recursion so they do not pile up. 3325# Strip out --silent because we don't want to record it for future runs. 3326# Also quote any args containing shell meta-characters. 3327# Make two passes to allow for proper duplicate-argument suppression. 3328ac_configure_args= 3329ac_configure_args0= 3330ac_configure_args1= 3331ac_must_keep_next=false 3332for ac_pass in 1 2 3333do 3334 for ac_arg 3335 do 3336 case $ac_arg in 3337 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3339 | -silent | --silent | --silen | --sile | --sil) 3340 continue ;; 3341 *\'*) 3342 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3343 esac 3344 case $ac_pass in 3345 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3346 2) 3347 as_fn_append ac_configure_args1 " '$ac_arg'" 3348 if test $ac_must_keep_next = true; then 3349 ac_must_keep_next=false # Got value, back to normal. 3350 else 3351 case $ac_arg in 3352 *=* | --config-cache | -C | -disable-* | --disable-* \ 3353 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3354 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3355 | -with-* | --with-* | -without-* | --without-* | --x) 3356 case "$ac_configure_args0 " in 3357 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3358 esac 3359 ;; 3360 -* ) ac_must_keep_next=true ;; 3361 esac 3362 fi 3363 as_fn_append ac_configure_args " '$ac_arg'" 3364 ;; 3365 esac 3366 done 3367done 3368{ ac_configure_args0=; unset ac_configure_args0;} 3369{ ac_configure_args1=; unset ac_configure_args1;} 3370 3371# When interrupted or exit'd, cleanup temporary files, and complete 3372# config.log. We remove comments because anyway the quotes in there 3373# would cause problems or look ugly. 3374# WARNING: Use '\'' to represent an apostrophe within the trap. 3375# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3376trap 'exit_status=$? 3377 # Save into config.log some information that might help in debugging. 3378 { 3379 echo 3380 3381 $as_echo "## ---------------- ## 3382## Cache variables. ## 3383## ---------------- ##" 3384 echo 3385 # The following way of writing the cache mishandles newlines in values, 3386( 3387 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3388 eval ac_val=\$$ac_var 3389 case $ac_val in #( 3390 *${as_nl}*) 3391 case $ac_var in #( 3392 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3393$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3394 esac 3395 case $ac_var in #( 3396 _ | IFS | as_nl) ;; #( 3397 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3398 *) { eval $ac_var=; unset $ac_var;} ;; 3399 esac ;; 3400 esac 3401 done 3402 (set) 2>&1 | 3403 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3404 *${as_nl}ac_space=\ *) 3405 sed -n \ 3406 "s/'\''/'\''\\\\'\'''\''/g; 3407 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3408 ;; #( 3409 *) 3410 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3411 ;; 3412 esac | 3413 sort 3414) 3415 echo 3416 3417 $as_echo "## ----------------- ## 3418## Output variables. ## 3419## ----------------- ##" 3420 echo 3421 for ac_var in $ac_subst_vars 3422 do 3423 eval ac_val=\$$ac_var 3424 case $ac_val in 3425 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3426 esac 3427 $as_echo "$ac_var='\''$ac_val'\''" 3428 done | sort 3429 echo 3430 3431 if test -n "$ac_subst_files"; then 3432 $as_echo "## ------------------- ## 3433## File substitutions. ## 3434## ------------------- ##" 3435 echo 3436 for ac_var in $ac_subst_files 3437 do 3438 eval ac_val=\$$ac_var 3439 case $ac_val in 3440 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3441 esac 3442 $as_echo "$ac_var='\''$ac_val'\''" 3443 done | sort 3444 echo 3445 fi 3446 3447 if test -s confdefs.h; then 3448 $as_echo "## ----------- ## 3449## confdefs.h. ## 3450## ----------- ##" 3451 echo 3452 cat confdefs.h 3453 echo 3454 fi 3455 test "$ac_signal" != 0 && 3456 $as_echo "$as_me: caught signal $ac_signal" 3457 $as_echo "$as_me: exit $exit_status" 3458 } >&5 3459 rm -f core *.core core.conftest.* && 3460 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3461 exit $exit_status 3462' 0 3463for ac_signal in 1 2 13 15; do 3464 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3465done 3466ac_signal=0 3467 3468# confdefs.h avoids OS command line length limits that DEFS can exceed. 3469rm -f -r conftest* confdefs.h 3470 3471$as_echo "/* confdefs.h */" > confdefs.h 3472 3473# Predefined preprocessor variables. 3474 3475cat >>confdefs.h <<_ACEOF 3476#define PACKAGE_NAME "$PACKAGE_NAME" 3477_ACEOF 3478 3479cat >>confdefs.h <<_ACEOF 3480#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3481_ACEOF 3482 3483cat >>confdefs.h <<_ACEOF 3484#define PACKAGE_VERSION "$PACKAGE_VERSION" 3485_ACEOF 3486 3487cat >>confdefs.h <<_ACEOF 3488#define PACKAGE_STRING "$PACKAGE_STRING" 3489_ACEOF 3490 3491cat >>confdefs.h <<_ACEOF 3492#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3493_ACEOF 3494 3495cat >>confdefs.h <<_ACEOF 3496#define PACKAGE_URL "$PACKAGE_URL" 3497_ACEOF 3498 3499 3500# Let the site file select an alternate cache file if it wants to. 3501# Prefer an explicitly selected file to automatically selected ones. 3502ac_site_file1=NONE 3503ac_site_file2=NONE 3504if test -n "$CONFIG_SITE"; then 3505 # We do not want a PATH search for config.site. 3506 case $CONFIG_SITE in #(( 3507 -*) ac_site_file1=./$CONFIG_SITE;; 3508 */*) ac_site_file1=$CONFIG_SITE;; 3509 *) ac_site_file1=./$CONFIG_SITE;; 3510 esac 3511elif test "x$prefix" != xNONE; then 3512 ac_site_file1=$prefix/share/config.site 3513 ac_site_file2=$prefix/etc/config.site 3514else 3515 ac_site_file1=$ac_default_prefix/share/config.site 3516 ac_site_file2=$ac_default_prefix/etc/config.site 3517fi 3518for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3519do 3520 test "x$ac_site_file" = xNONE && continue 3521 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3522 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3523$as_echo "$as_me: loading site script $ac_site_file" >&6;} 3524 sed 's/^/| /' "$ac_site_file" >&5 3525 . "$ac_site_file" \ 3526 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3528as_fn_error $? "failed to load site script $ac_site_file 3529See \`config.log' for more details" "$LINENO" 5; } 3530 fi 3531done 3532 3533if test -r "$cache_file"; then 3534 # Some versions of bash will fail to source /dev/null (special files 3535 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3536 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3537 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3538$as_echo "$as_me: loading cache $cache_file" >&6;} 3539 case $cache_file in 3540 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3541 *) . "./$cache_file";; 3542 esac 3543 fi 3544else 3545 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3546$as_echo "$as_me: creating cache $cache_file" >&6;} 3547 >$cache_file 3548fi 3549 3550# Check that the precious variables saved in the cache have kept the same 3551# value. 3552ac_cache_corrupted=false 3553for ac_var in $ac_precious_vars; do 3554 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3555 eval ac_new_set=\$ac_env_${ac_var}_set 3556 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3557 eval ac_new_val=\$ac_env_${ac_var}_value 3558 case $ac_old_set,$ac_new_set in 3559 set,) 3560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3561$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3562 ac_cache_corrupted=: ;; 3563 ,set) 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3565$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3566 ac_cache_corrupted=: ;; 3567 ,);; 3568 *) 3569 if test "x$ac_old_val" != "x$ac_new_val"; then 3570 # differences in whitespace do not lead to failure. 3571 ac_old_val_w=`echo x $ac_old_val` 3572 ac_new_val_w=`echo x $ac_new_val` 3573 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3575$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3576 ac_cache_corrupted=: 3577 else 3578 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3579$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3580 eval $ac_var=\$ac_old_val 3581 fi 3582 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3583$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3584 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3585$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3586 fi;; 3587 esac 3588 # Pass precious variables to config.status. 3589 if test "$ac_new_set" = set; then 3590 case $ac_new_val in 3591 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3592 *) ac_arg=$ac_var=$ac_new_val ;; 3593 esac 3594 case " $ac_configure_args " in 3595 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3596 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3597 esac 3598 fi 3599done 3600if $ac_cache_corrupted; then 3601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3603 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3604$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3605 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3606fi 3607## -------------------- ## 3608## Main body of script. ## 3609## -------------------- ## 3610 3611ac_ext=c 3612ac_cpp='$CPP $CPPFLAGS' 3613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3615ac_compiler_gnu=$ac_cv_c_compiler_gnu 3616 3617 3618RELEASE_DATE="2019-02-25" 3619RELEASE_NAME="Chestnut Tortelloni" 3620 3621 3622am__api_version='1.16' 3623 3624ac_aux_dir= 3625for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3626 if test -f "$ac_dir/install-sh"; then 3627 ac_aux_dir=$ac_dir 3628 ac_install_sh="$ac_aux_dir/install-sh -c" 3629 break 3630 elif test -f "$ac_dir/install.sh"; then 3631 ac_aux_dir=$ac_dir 3632 ac_install_sh="$ac_aux_dir/install.sh -c" 3633 break 3634 elif test -f "$ac_dir/shtool"; then 3635 ac_aux_dir=$ac_dir 3636 ac_install_sh="$ac_aux_dir/shtool install -c" 3637 break 3638 fi 3639done 3640if test -z "$ac_aux_dir"; then 3641 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3642fi 3643 3644# These three variables are undocumented and unsupported, 3645# and are intended to be withdrawn in a future Autoconf release. 3646# They can cause serious problems if a builder's source tree is in a directory 3647# whose full name contains unusual characters. 3648ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3649ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3650ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3651 3652 3653# Find a good install program. We prefer a C program (faster), 3654# so one script is as good as another. But avoid the broken or 3655# incompatible versions: 3656# SysV /etc/install, /usr/sbin/install 3657# SunOS /usr/etc/install 3658# IRIX /sbin/install 3659# AIX /bin/install 3660# AmigaOS /C/install, which installs bootblocks on floppy discs 3661# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3662# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3663# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3664# OS/2's system install, which has a completely different semantic 3665# ./install, which can be erroneously created by make from ./install.sh. 3666# Reject install programs that cannot install multiple files. 3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3668$as_echo_n "checking for a BSD-compatible install... " >&6; } 3669if test -z "$INSTALL"; then 3670if ${ac_cv_path_install+:} false; then : 3671 $as_echo_n "(cached) " >&6 3672else 3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3674for as_dir in $PATH 3675do 3676 IFS=$as_save_IFS 3677 test -z "$as_dir" && as_dir=. 3678 # Account for people who put trailing slashes in PATH elements. 3679case $as_dir/ in #(( 3680 ./ | .// | /[cC]/* | \ 3681 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3682 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3683 /usr/ucb/* ) ;; 3684 *) 3685 # OSF1 and SCO ODT 3.0 have their own names for install. 3686 # Don't use installbsd from OSF since it installs stuff as root 3687 # by default. 3688 for ac_prog in ginstall scoinst install; do 3689 for ac_exec_ext in '' $ac_executable_extensions; do 3690 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3691 if test $ac_prog = install && 3692 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3693 # AIX install. It has an incompatible calling convention. 3694 : 3695 elif test $ac_prog = install && 3696 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3697 # program-specific install script used by HP pwplus--don't use. 3698 : 3699 else 3700 rm -rf conftest.one conftest.two conftest.dir 3701 echo one > conftest.one 3702 echo two > conftest.two 3703 mkdir conftest.dir 3704 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3705 test -s conftest.one && test -s conftest.two && 3706 test -s conftest.dir/conftest.one && 3707 test -s conftest.dir/conftest.two 3708 then 3709 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3710 break 3 3711 fi 3712 fi 3713 fi 3714 done 3715 done 3716 ;; 3717esac 3718 3719 done 3720IFS=$as_save_IFS 3721 3722rm -rf conftest.one conftest.two conftest.dir 3723 3724fi 3725 if test "${ac_cv_path_install+set}" = set; then 3726 INSTALL=$ac_cv_path_install 3727 else 3728 # As a last resort, use the slow shell script. Don't cache a 3729 # value for INSTALL within a source directory, because that will 3730 # break other packages using the cache if that directory is 3731 # removed, or if the value is a relative name. 3732 INSTALL=$ac_install_sh 3733 fi 3734fi 3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3736$as_echo "$INSTALL" >&6; } 3737 3738# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3739# It thinks the first close brace ends the variable substitution. 3740test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3741 3742test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3743 3744test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3745 3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3747$as_echo_n "checking whether build environment is sane... " >&6; } 3748# Reject unsafe characters in $srcdir or the absolute working directory 3749# name. Accept space and tab only in the latter. 3750am_lf=' 3751' 3752case `pwd` in 3753 *[\\\"\#\$\&\'\`$am_lf]*) 3754 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3755esac 3756case $srcdir in 3757 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3758 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3759esac 3760 3761# Do 'set' in a subshell so we don't clobber the current shell's 3762# arguments. Must try -L first in case configure is actually a 3763# symlink; some systems play weird games with the mod time of symlinks 3764# (eg FreeBSD returns the mod time of the symlink's containing 3765# directory). 3766if ( 3767 am_has_slept=no 3768 for am_try in 1 2; do 3769 echo "timestamp, slept: $am_has_slept" > conftest.file 3770 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3771 if test "$*" = "X"; then 3772 # -L didn't work. 3773 set X `ls -t "$srcdir/configure" conftest.file` 3774 fi 3775 if test "$*" != "X $srcdir/configure conftest.file" \ 3776 && test "$*" != "X conftest.file $srcdir/configure"; then 3777 3778 # If neither matched, then we have a broken ls. This can happen 3779 # if, for instance, CONFIG_SHELL is bash and it inherits a 3780 # broken ls alias from the environment. This has actually 3781 # happened. Such a system could not be considered "sane". 3782 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3783 alias in your environment" "$LINENO" 5 3784 fi 3785 if test "$2" = conftest.file || test $am_try -eq 2; then 3786 break 3787 fi 3788 # Just in case. 3789 sleep 1 3790 am_has_slept=yes 3791 done 3792 test "$2" = conftest.file 3793 ) 3794then 3795 # Ok. 3796 : 3797else 3798 as_fn_error $? "newly created file is older than distributed files! 3799Check your system clock" "$LINENO" 5 3800fi 3801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3802$as_echo "yes" >&6; } 3803# If we didn't sleep, we still need to ensure time stamps of config.status and 3804# generated files are strictly newer. 3805am_sleep_pid= 3806if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3807 ( sleep 1 ) & 3808 am_sleep_pid=$! 3809fi 3810 3811rm -f conftest.file 3812 3813test "$program_prefix" != NONE && 3814 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3815# Use a double $ so make ignores it. 3816test "$program_suffix" != NONE && 3817 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3818# Double any \ or $. 3819# By default was `s,x,x', remove it if useless. 3820ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3821program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3822 3823# Expand $ac_aux_dir to an absolute path. 3824am_aux_dir=`cd "$ac_aux_dir" && pwd` 3825 3826if test x"${MISSING+set}" != xset; then 3827 case $am_aux_dir in 3828 *\ * | *\ *) 3829 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3830 *) 3831 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3832 esac 3833fi 3834# Use eval to expand $SHELL 3835if eval "$MISSING --is-lightweight"; then 3836 am_missing_run="$MISSING " 3837else 3838 am_missing_run= 3839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3840$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3841fi 3842 3843if test x"${install_sh+set}" != xset; then 3844 case $am_aux_dir in 3845 *\ * | *\ *) 3846 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3847 *) 3848 install_sh="\${SHELL} $am_aux_dir/install-sh" 3849 esac 3850fi 3851 3852# Installed binaries are usually stripped using 'strip' when the user 3853# run "make install-strip". However 'strip' might not be the right 3854# tool to use in cross-compilation environments, therefore Automake 3855# will honor the 'STRIP' environment variable to overrule this program. 3856if test "$cross_compiling" != no; then 3857 if test -n "$ac_tool_prefix"; then 3858 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3859set dummy ${ac_tool_prefix}strip; ac_word=$2 3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3861$as_echo_n "checking for $ac_word... " >&6; } 3862if ${ac_cv_prog_STRIP+:} false; then : 3863 $as_echo_n "(cached) " >&6 3864else 3865 if test -n "$STRIP"; then 3866 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3867else 3868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3869for as_dir in $PATH 3870do 3871 IFS=$as_save_IFS 3872 test -z "$as_dir" && as_dir=. 3873 for ac_exec_ext in '' $ac_executable_extensions; do 3874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3875 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3877 break 2 3878 fi 3879done 3880 done 3881IFS=$as_save_IFS 3882 3883fi 3884fi 3885STRIP=$ac_cv_prog_STRIP 3886if test -n "$STRIP"; then 3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3888$as_echo "$STRIP" >&6; } 3889else 3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3891$as_echo "no" >&6; } 3892fi 3893 3894 3895fi 3896if test -z "$ac_cv_prog_STRIP"; then 3897 ac_ct_STRIP=$STRIP 3898 # Extract the first word of "strip", so it can be a program name with args. 3899set dummy strip; ac_word=$2 3900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3901$as_echo_n "checking for $ac_word... " >&6; } 3902if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3903 $as_echo_n "(cached) " >&6 3904else 3905 if test -n "$ac_ct_STRIP"; then 3906 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3907else 3908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3909for as_dir in $PATH 3910do 3911 IFS=$as_save_IFS 3912 test -z "$as_dir" && as_dir=. 3913 for ac_exec_ext in '' $ac_executable_extensions; do 3914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3915 ac_cv_prog_ac_ct_STRIP="strip" 3916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3917 break 2 3918 fi 3919done 3920 done 3921IFS=$as_save_IFS 3922 3923fi 3924fi 3925ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3926if test -n "$ac_ct_STRIP"; then 3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3928$as_echo "$ac_ct_STRIP" >&6; } 3929else 3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3931$as_echo "no" >&6; } 3932fi 3933 3934 if test "x$ac_ct_STRIP" = x; then 3935 STRIP=":" 3936 else 3937 case $cross_compiling:$ac_tool_warned in 3938yes:) 3939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3941ac_tool_warned=yes ;; 3942esac 3943 STRIP=$ac_ct_STRIP 3944 fi 3945else 3946 STRIP="$ac_cv_prog_STRIP" 3947fi 3948 3949fi 3950INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3951 3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3953$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3954if test -z "$MKDIR_P"; then 3955 if ${ac_cv_path_mkdir+:} false; then : 3956 $as_echo_n "(cached) " >&6 3957else 3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3959for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3960do 3961 IFS=$as_save_IFS 3962 test -z "$as_dir" && as_dir=. 3963 for ac_prog in mkdir gmkdir; do 3964 for ac_exec_ext in '' $ac_executable_extensions; do 3965 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3966 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3967 'mkdir (GNU coreutils) '* | \ 3968 'mkdir (coreutils) '* | \ 3969 'mkdir (fileutils) '4.1*) 3970 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3971 break 3;; 3972 esac 3973 done 3974 done 3975 done 3976IFS=$as_save_IFS 3977 3978fi 3979 3980 test -d ./--version && rmdir ./--version 3981 if test "${ac_cv_path_mkdir+set}" = set; then 3982 MKDIR_P="$ac_cv_path_mkdir -p" 3983 else 3984 # As a last resort, use the slow shell script. Don't cache a 3985 # value for MKDIR_P within a source directory, because that will 3986 # break other packages using the cache if that directory is 3987 # removed, or if the value is a relative name. 3988 MKDIR_P="$ac_install_sh -d" 3989 fi 3990fi 3991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3992$as_echo "$MKDIR_P" >&6; } 3993 3994for ac_prog in gawk mawk nawk awk 3995do 3996 # Extract the first word of "$ac_prog", so it can be a program name with args. 3997set dummy $ac_prog; ac_word=$2 3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3999$as_echo_n "checking for $ac_word... " >&6; } 4000if ${ac_cv_prog_AWK+:} false; then : 4001 $as_echo_n "(cached) " >&6 4002else 4003 if test -n "$AWK"; then 4004 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4005else 4006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4007for as_dir in $PATH 4008do 4009 IFS=$as_save_IFS 4010 test -z "$as_dir" && as_dir=. 4011 for ac_exec_ext in '' $ac_executable_extensions; do 4012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4013 ac_cv_prog_AWK="$ac_prog" 4014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4015 break 2 4016 fi 4017done 4018 done 4019IFS=$as_save_IFS 4020 4021fi 4022fi 4023AWK=$ac_cv_prog_AWK 4024if test -n "$AWK"; then 4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4026$as_echo "$AWK" >&6; } 4027else 4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4029$as_echo "no" >&6; } 4030fi 4031 4032 4033 test -n "$AWK" && break 4034done 4035 4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4037$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4038set x ${MAKE-make} 4039ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4040if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4041 $as_echo_n "(cached) " >&6 4042else 4043 cat >conftest.make <<\_ACEOF 4044SHELL = /bin/sh 4045all: 4046 @echo '@@@%%%=$(MAKE)=@@@%%%' 4047_ACEOF 4048# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4049case `${MAKE-make} -f conftest.make 2>/dev/null` in 4050 *@@@%%%=?*=@@@%%%*) 4051 eval ac_cv_prog_make_${ac_make}_set=yes;; 4052 *) 4053 eval ac_cv_prog_make_${ac_make}_set=no;; 4054esac 4055rm -f conftest.make 4056fi 4057if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4059$as_echo "yes" >&6; } 4060 SET_MAKE= 4061else 4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4063$as_echo "no" >&6; } 4064 SET_MAKE="MAKE=${MAKE-make}" 4065fi 4066 4067rm -rf .tst 2>/dev/null 4068mkdir .tst 2>/dev/null 4069if test -d .tst; then 4070 am__leading_dot=. 4071else 4072 am__leading_dot=_ 4073fi 4074rmdir .tst 2>/dev/null 4075 4076# Check whether --enable-silent-rules was given. 4077if test "${enable_silent_rules+set}" = set; then : 4078 enableval=$enable_silent_rules; 4079fi 4080 4081case $enable_silent_rules in # ((( 4082 yes) AM_DEFAULT_VERBOSITY=0;; 4083 no) AM_DEFAULT_VERBOSITY=1;; 4084 *) AM_DEFAULT_VERBOSITY=1;; 4085esac 4086am_make=${MAKE-make} 4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4088$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4089if ${am_cv_make_support_nested_variables+:} false; then : 4090 $as_echo_n "(cached) " >&6 4091else 4092 if $as_echo 'TRUE=$(BAR$(V)) 4093BAR0=false 4094BAR1=true 4095V=1 4096am__doit: 4097 @$(TRUE) 4098.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4099 am_cv_make_support_nested_variables=yes 4100else 4101 am_cv_make_support_nested_variables=no 4102fi 4103fi 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4105$as_echo "$am_cv_make_support_nested_variables" >&6; } 4106if test $am_cv_make_support_nested_variables = yes; then 4107 AM_V='$(V)' 4108 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4109else 4110 AM_V=$AM_DEFAULT_VERBOSITY 4111 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4112fi 4113AM_BACKSLASH='\' 4114 4115if test "`cd $srcdir && pwd`" != "`pwd`"; then 4116 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4117 # is not polluted with repeated "-I." 4118 am__isrc=' -I$(srcdir)' 4119 # test to see if srcdir already configured 4120 if test -f $srcdir/config.status; then 4121 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4122 fi 4123fi 4124 4125# test whether we have cygpath 4126if test -z "$CYGPATH_W"; then 4127 if (cygpath --version) >/dev/null 2>/dev/null; then 4128 CYGPATH_W='cygpath -w' 4129 else 4130 CYGPATH_W=echo 4131 fi 4132fi 4133 4134 4135# Define the identity of the package. 4136 PACKAGE='xorg-server' 4137 VERSION='1.20.4' 4138 4139 4140cat >>confdefs.h <<_ACEOF 4141#define PACKAGE "$PACKAGE" 4142_ACEOF 4143 4144 4145cat >>confdefs.h <<_ACEOF 4146#define VERSION "$VERSION" 4147_ACEOF 4148 4149# Some tools Automake needs. 4150 4151ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4152 4153 4154AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4155 4156 4157AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4158 4159 4160AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4161 4162 4163MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4164 4165# For better backward compatibility. To be removed once Automake 1.9.x 4166# dies out for good. For more background, see: 4167# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4168# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4169mkdir_p='$(MKDIR_P)' 4170 4171# We need awk for the "check" target (and possibly the TAP driver). The 4172# system "awk" is bad on some platforms. 4173# Always define AMTAR for backward compatibility. Yes, it's still used 4174# in the wild :-( We should find a proper way to deprecate it ... 4175AMTAR='$${TAR-tar}' 4176 4177 4178# We'll loop over all known methods to create a tar archive until one works. 4179_am_tools='gnutar pax cpio none' 4180 4181am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4182 4183 4184 4185 4186 4187 4188# POSIX will say in a future version that running "rm -f" with no argument 4189# is OK; and we want to be able to make that assumption in our Makefile 4190# recipes. So use an aggressive probe to check that the usage we want is 4191# actually supported "in the wild" to an acceptable degree. 4192# See automake bug#10828. 4193# To make any issue more visible, cause the running configure to be aborted 4194# by default if the 'rm' program in use doesn't match our expectations; the 4195# user can still override this though. 4196if rm -f && rm -fr && rm -rf; then : OK; else 4197 cat >&2 <<'END' 4198Oops! 4199 4200Your 'rm' program seems unable to run without file operands specified 4201on the command line, even when the '-f' option is present. This is contrary 4202to the behaviour of most rm programs out there, and not conforming with 4203the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4204 4205Please tell bug-automake@gnu.org about your system, including the value 4206of your $PATH and any error possibly output before this message. This 4207can help us improve future automake versions. 4208 4209END 4210 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4211 echo 'Configuration will proceed anyway, since you have set the' >&2 4212 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4213 echo >&2 4214 else 4215 cat >&2 <<'END' 4216Aborting the configuration process, to ensure you take notice of the issue. 4217 4218You can download and install GNU coreutils to get an 'rm' implementation 4219that behaves properly: <https://www.gnu.org/software/coreutils/>. 4220 4221If you want to complete the configuration process using your problematic 4222'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4223to "yes", and re-run configure. 4224 4225END 4226 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4227 fi 4228fi 4229 4230DEPDIR="${am__leading_dot}deps" 4231 4232ac_config_commands="$ac_config_commands depfiles" 4233 4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4235$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4236cat > confinc.mk << 'END' 4237am__doit: 4238 @echo this is the am__doit target >confinc.out 4239.PHONY: am__doit 4240END 4241am__include="#" 4242am__quote= 4243# BSD make does it like this. 4244echo '.include "confinc.mk" # ignored' > confmf.BSD 4245# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4246echo 'include confinc.mk # ignored' > confmf.GNU 4247_am_result=no 4248for s in GNU BSD; do 4249 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4250 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4251 ac_status=$? 4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4253 (exit $ac_status); } 4254 case $?:`cat confinc.out 2>/dev/null` in #( 4255 '0:this is the am__doit target') : 4256 case $s in #( 4257 BSD) : 4258 am__include='.include' am__quote='"' ;; #( 4259 *) : 4260 am__include='include' am__quote='' ;; 4261esac ;; #( 4262 *) : 4263 ;; 4264esac 4265 if test "$am__include" != "#"; then 4266 _am_result="yes ($s style)" 4267 break 4268 fi 4269done 4270rm -f confinc.* confmf.* 4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4272$as_echo "${_am_result}" >&6; } 4273 4274# Check whether --enable-dependency-tracking was given. 4275if test "${enable_dependency_tracking+set}" = set; then : 4276 enableval=$enable_dependency_tracking; 4277fi 4278 4279if test "x$enable_dependency_tracking" != xno; then 4280 am_depcomp="$ac_aux_dir/depcomp" 4281 AMDEPBACKSLASH='\' 4282 am__nodep='_no' 4283fi 4284 if test "x$enable_dependency_tracking" != xno; then 4285 AMDEP_TRUE= 4286 AMDEP_FALSE='#' 4287else 4288 AMDEP_TRUE='#' 4289 AMDEP_FALSE= 4290fi 4291 4292 4293ac_ext=c 4294ac_cpp='$CPP $CPPFLAGS' 4295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4297ac_compiler_gnu=$ac_cv_c_compiler_gnu 4298if test -n "$ac_tool_prefix"; then 4299 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4300set dummy ${ac_tool_prefix}gcc; ac_word=$2 4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4302$as_echo_n "checking for $ac_word... " >&6; } 4303if ${ac_cv_prog_CC+:} false; then : 4304 $as_echo_n "(cached) " >&6 4305else 4306 if test -n "$CC"; then 4307 ac_cv_prog_CC="$CC" # Let the user override the test. 4308else 4309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4310for as_dir in $PATH 4311do 4312 IFS=$as_save_IFS 4313 test -z "$as_dir" && as_dir=. 4314 for ac_exec_ext in '' $ac_executable_extensions; do 4315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4316 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4318 break 2 4319 fi 4320done 4321 done 4322IFS=$as_save_IFS 4323 4324fi 4325fi 4326CC=$ac_cv_prog_CC 4327if test -n "$CC"; then 4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4329$as_echo "$CC" >&6; } 4330else 4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4332$as_echo "no" >&6; } 4333fi 4334 4335 4336fi 4337if test -z "$ac_cv_prog_CC"; then 4338 ac_ct_CC=$CC 4339 # Extract the first word of "gcc", so it can be a program name with args. 4340set dummy gcc; ac_word=$2 4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4342$as_echo_n "checking for $ac_word... " >&6; } 4343if ${ac_cv_prog_ac_ct_CC+:} false; then : 4344 $as_echo_n "(cached) " >&6 4345else 4346 if test -n "$ac_ct_CC"; then 4347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4348else 4349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4350for as_dir in $PATH 4351do 4352 IFS=$as_save_IFS 4353 test -z "$as_dir" && as_dir=. 4354 for ac_exec_ext in '' $ac_executable_extensions; do 4355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4356 ac_cv_prog_ac_ct_CC="gcc" 4357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4358 break 2 4359 fi 4360done 4361 done 4362IFS=$as_save_IFS 4363 4364fi 4365fi 4366ac_ct_CC=$ac_cv_prog_ac_ct_CC 4367if test -n "$ac_ct_CC"; then 4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4369$as_echo "$ac_ct_CC" >&6; } 4370else 4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4372$as_echo "no" >&6; } 4373fi 4374 4375 if test "x$ac_ct_CC" = x; then 4376 CC="" 4377 else 4378 case $cross_compiling:$ac_tool_warned in 4379yes:) 4380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4382ac_tool_warned=yes ;; 4383esac 4384 CC=$ac_ct_CC 4385 fi 4386else 4387 CC="$ac_cv_prog_CC" 4388fi 4389 4390if test -z "$CC"; then 4391 if test -n "$ac_tool_prefix"; then 4392 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4393set dummy ${ac_tool_prefix}cc; ac_word=$2 4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4395$as_echo_n "checking for $ac_word... " >&6; } 4396if ${ac_cv_prog_CC+:} false; then : 4397 $as_echo_n "(cached) " >&6 4398else 4399 if test -n "$CC"; then 4400 ac_cv_prog_CC="$CC" # Let the user override the test. 4401else 4402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4403for as_dir in $PATH 4404do 4405 IFS=$as_save_IFS 4406 test -z "$as_dir" && as_dir=. 4407 for ac_exec_ext in '' $ac_executable_extensions; do 4408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4409 ac_cv_prog_CC="${ac_tool_prefix}cc" 4410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4411 break 2 4412 fi 4413done 4414 done 4415IFS=$as_save_IFS 4416 4417fi 4418fi 4419CC=$ac_cv_prog_CC 4420if test -n "$CC"; then 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4422$as_echo "$CC" >&6; } 4423else 4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4425$as_echo "no" >&6; } 4426fi 4427 4428 4429 fi 4430fi 4431if test -z "$CC"; then 4432 # Extract the first word of "cc", so it can be a program name with args. 4433set dummy cc; ac_word=$2 4434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4435$as_echo_n "checking for $ac_word... " >&6; } 4436if ${ac_cv_prog_CC+:} false; then : 4437 $as_echo_n "(cached) " >&6 4438else 4439 if test -n "$CC"; then 4440 ac_cv_prog_CC="$CC" # Let the user override the test. 4441else 4442 ac_prog_rejected=no 4443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4444for as_dir in $PATH 4445do 4446 IFS=$as_save_IFS 4447 test -z "$as_dir" && as_dir=. 4448 for ac_exec_ext in '' $ac_executable_extensions; do 4449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4450 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4451 ac_prog_rejected=yes 4452 continue 4453 fi 4454 ac_cv_prog_CC="cc" 4455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4456 break 2 4457 fi 4458done 4459 done 4460IFS=$as_save_IFS 4461 4462if test $ac_prog_rejected = yes; then 4463 # We found a bogon in the path, so make sure we never use it. 4464 set dummy $ac_cv_prog_CC 4465 shift 4466 if test $# != 0; then 4467 # We chose a different compiler from the bogus one. 4468 # However, it has the same basename, so the bogon will be chosen 4469 # first if we set CC to just the basename; use the full file name. 4470 shift 4471 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4472 fi 4473fi 4474fi 4475fi 4476CC=$ac_cv_prog_CC 4477if test -n "$CC"; then 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4479$as_echo "$CC" >&6; } 4480else 4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4482$as_echo "no" >&6; } 4483fi 4484 4485 4486fi 4487if test -z "$CC"; then 4488 if test -n "$ac_tool_prefix"; then 4489 for ac_prog in cl.exe 4490 do 4491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4492set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4494$as_echo_n "checking for $ac_word... " >&6; } 4495if ${ac_cv_prog_CC+:} false; then : 4496 $as_echo_n "(cached) " >&6 4497else 4498 if test -n "$CC"; then 4499 ac_cv_prog_CC="$CC" # Let the user override the test. 4500else 4501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4502for as_dir in $PATH 4503do 4504 IFS=$as_save_IFS 4505 test -z "$as_dir" && as_dir=. 4506 for ac_exec_ext in '' $ac_executable_extensions; do 4507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4508 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4510 break 2 4511 fi 4512done 4513 done 4514IFS=$as_save_IFS 4515 4516fi 4517fi 4518CC=$ac_cv_prog_CC 4519if test -n "$CC"; then 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4521$as_echo "$CC" >&6; } 4522else 4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4524$as_echo "no" >&6; } 4525fi 4526 4527 4528 test -n "$CC" && break 4529 done 4530fi 4531if test -z "$CC"; then 4532 ac_ct_CC=$CC 4533 for ac_prog in cl.exe 4534do 4535 # Extract the first word of "$ac_prog", so it can be a program name with args. 4536set dummy $ac_prog; ac_word=$2 4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4538$as_echo_n "checking for $ac_word... " >&6; } 4539if ${ac_cv_prog_ac_ct_CC+:} false; then : 4540 $as_echo_n "(cached) " >&6 4541else 4542 if test -n "$ac_ct_CC"; then 4543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4544else 4545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4546for as_dir in $PATH 4547do 4548 IFS=$as_save_IFS 4549 test -z "$as_dir" && as_dir=. 4550 for ac_exec_ext in '' $ac_executable_extensions; do 4551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4552 ac_cv_prog_ac_ct_CC="$ac_prog" 4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4554 break 2 4555 fi 4556done 4557 done 4558IFS=$as_save_IFS 4559 4560fi 4561fi 4562ac_ct_CC=$ac_cv_prog_ac_ct_CC 4563if test -n "$ac_ct_CC"; then 4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4565$as_echo "$ac_ct_CC" >&6; } 4566else 4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4568$as_echo "no" >&6; } 4569fi 4570 4571 4572 test -n "$ac_ct_CC" && break 4573done 4574 4575 if test "x$ac_ct_CC" = x; then 4576 CC="" 4577 else 4578 case $cross_compiling:$ac_tool_warned in 4579yes:) 4580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4582ac_tool_warned=yes ;; 4583esac 4584 CC=$ac_ct_CC 4585 fi 4586fi 4587 4588fi 4589 4590 4591test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4593as_fn_error $? "no acceptable C compiler found in \$PATH 4594See \`config.log' for more details" "$LINENO" 5; } 4595 4596# Provide some information about the compiler. 4597$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4598set X $ac_compile 4599ac_compiler=$2 4600for ac_option in --version -v -V -qversion; do 4601 { { ac_try="$ac_compiler $ac_option >&5" 4602case "(($ac_try" in 4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4604 *) ac_try_echo=$ac_try;; 4605esac 4606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4607$as_echo "$ac_try_echo"; } >&5 4608 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4609 ac_status=$? 4610 if test -s conftest.err; then 4611 sed '10a\ 4612... rest of stderr output deleted ... 4613 10q' conftest.err >conftest.er1 4614 cat conftest.er1 >&5 4615 fi 4616 rm -f conftest.er1 conftest.err 4617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4618 test $ac_status = 0; } 4619done 4620 4621cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4622/* end confdefs.h. */ 4623 4624int 4625main () 4626{ 4627 4628 ; 4629 return 0; 4630} 4631_ACEOF 4632ac_clean_files_save=$ac_clean_files 4633ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4634# Try to create an executable without -o first, disregard a.out. 4635# It will help us diagnose broken compilers, and finding out an intuition 4636# of exeext. 4637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4638$as_echo_n "checking whether the C compiler works... " >&6; } 4639ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4640 4641# The possible output files: 4642ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4643 4644ac_rmfiles= 4645for ac_file in $ac_files 4646do 4647 case $ac_file in 4648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4649 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4650 esac 4651done 4652rm -f $ac_rmfiles 4653 4654if { { ac_try="$ac_link_default" 4655case "(($ac_try" in 4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4657 *) ac_try_echo=$ac_try;; 4658esac 4659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4660$as_echo "$ac_try_echo"; } >&5 4661 (eval "$ac_link_default") 2>&5 4662 ac_status=$? 4663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4664 test $ac_status = 0; }; then : 4665 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4666# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4667# in a Makefile. We should not override ac_cv_exeext if it was cached, 4668# so that the user can short-circuit this test for compilers unknown to 4669# Autoconf. 4670for ac_file in $ac_files '' 4671do 4672 test -f "$ac_file" || continue 4673 case $ac_file in 4674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4675 ;; 4676 [ab].out ) 4677 # We found the default executable, but exeext='' is most 4678 # certainly right. 4679 break;; 4680 *.* ) 4681 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4682 then :; else 4683 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4684 fi 4685 # We set ac_cv_exeext here because the later test for it is not 4686 # safe: cross compilers may not add the suffix if given an `-o' 4687 # argument, so we may need to know it at that point already. 4688 # Even if this section looks crufty: it has the advantage of 4689 # actually working. 4690 break;; 4691 * ) 4692 break;; 4693 esac 4694done 4695test "$ac_cv_exeext" = no && ac_cv_exeext= 4696 4697else 4698 ac_file='' 4699fi 4700if test -z "$ac_file"; then : 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4702$as_echo "no" >&6; } 4703$as_echo "$as_me: failed program was:" >&5 4704sed 's/^/| /' conftest.$ac_ext >&5 4705 4706{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4707$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4708as_fn_error 77 "C compiler cannot create executables 4709See \`config.log' for more details" "$LINENO" 5; } 4710else 4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4712$as_echo "yes" >&6; } 4713fi 4714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4715$as_echo_n "checking for C compiler default output file name... " >&6; } 4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4717$as_echo "$ac_file" >&6; } 4718ac_exeext=$ac_cv_exeext 4719 4720rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4721ac_clean_files=$ac_clean_files_save 4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4723$as_echo_n "checking for suffix of executables... " >&6; } 4724if { { ac_try="$ac_link" 4725case "(($ac_try" in 4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4727 *) ac_try_echo=$ac_try;; 4728esac 4729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4730$as_echo "$ac_try_echo"; } >&5 4731 (eval "$ac_link") 2>&5 4732 ac_status=$? 4733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4734 test $ac_status = 0; }; then : 4735 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4736# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4737# work properly (i.e., refer to `conftest.exe'), while it won't with 4738# `rm'. 4739for ac_file in conftest.exe conftest conftest.*; do 4740 test -f "$ac_file" || continue 4741 case $ac_file in 4742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4743 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4744 break;; 4745 * ) break;; 4746 esac 4747done 4748else 4749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4751as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4752See \`config.log' for more details" "$LINENO" 5; } 4753fi 4754rm -f conftest conftest$ac_cv_exeext 4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4756$as_echo "$ac_cv_exeext" >&6; } 4757 4758rm -f conftest.$ac_ext 4759EXEEXT=$ac_cv_exeext 4760ac_exeext=$EXEEXT 4761cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4762/* end confdefs.h. */ 4763#include <stdio.h> 4764int 4765main () 4766{ 4767FILE *f = fopen ("conftest.out", "w"); 4768 return ferror (f) || fclose (f) != 0; 4769 4770 ; 4771 return 0; 4772} 4773_ACEOF 4774ac_clean_files="$ac_clean_files conftest.out" 4775# Check that the compiler produces executables we can run. If not, either 4776# the compiler is broken, or we cross compile. 4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4778$as_echo_n "checking whether we are cross compiling... " >&6; } 4779if test "$cross_compiling" != yes; then 4780 { { ac_try="$ac_link" 4781case "(($ac_try" in 4782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4783 *) ac_try_echo=$ac_try;; 4784esac 4785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4786$as_echo "$ac_try_echo"; } >&5 4787 (eval "$ac_link") 2>&5 4788 ac_status=$? 4789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4790 test $ac_status = 0; } 4791 if { ac_try='./conftest$ac_cv_exeext' 4792 { { case "(($ac_try" in 4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4794 *) ac_try_echo=$ac_try;; 4795esac 4796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4797$as_echo "$ac_try_echo"; } >&5 4798 (eval "$ac_try") 2>&5 4799 ac_status=$? 4800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4801 test $ac_status = 0; }; }; then 4802 cross_compiling=no 4803 else 4804 if test "$cross_compiling" = maybe; then 4805 cross_compiling=yes 4806 else 4807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4809as_fn_error $? "cannot run C compiled programs. 4810If you meant to cross compile, use \`--host'. 4811See \`config.log' for more details" "$LINENO" 5; } 4812 fi 4813 fi 4814fi 4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4816$as_echo "$cross_compiling" >&6; } 4817 4818rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4819ac_clean_files=$ac_clean_files_save 4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4821$as_echo_n "checking for suffix of object files... " >&6; } 4822if ${ac_cv_objext+:} false; then : 4823 $as_echo_n "(cached) " >&6 4824else 4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4826/* end confdefs.h. */ 4827 4828int 4829main () 4830{ 4831 4832 ; 4833 return 0; 4834} 4835_ACEOF 4836rm -f conftest.o conftest.obj 4837if { { ac_try="$ac_compile" 4838case "(($ac_try" in 4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4840 *) ac_try_echo=$ac_try;; 4841esac 4842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4843$as_echo "$ac_try_echo"; } >&5 4844 (eval "$ac_compile") 2>&5 4845 ac_status=$? 4846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4847 test $ac_status = 0; }; then : 4848 for ac_file in conftest.o conftest.obj conftest.*; do 4849 test -f "$ac_file" || continue; 4850 case $ac_file in 4851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4852 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4853 break;; 4854 esac 4855done 4856else 4857 $as_echo "$as_me: failed program was:" >&5 4858sed 's/^/| /' conftest.$ac_ext >&5 4859 4860{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4862as_fn_error $? "cannot compute suffix of object files: cannot compile 4863See \`config.log' for more details" "$LINENO" 5; } 4864fi 4865rm -f conftest.$ac_cv_objext conftest.$ac_ext 4866fi 4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4868$as_echo "$ac_cv_objext" >&6; } 4869OBJEXT=$ac_cv_objext 4870ac_objext=$OBJEXT 4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4872$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4873if ${ac_cv_c_compiler_gnu+:} false; then : 4874 $as_echo_n "(cached) " >&6 4875else 4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4877/* end confdefs.h. */ 4878 4879int 4880main () 4881{ 4882#ifndef __GNUC__ 4883 choke me 4884#endif 4885 4886 ; 4887 return 0; 4888} 4889_ACEOF 4890if ac_fn_c_try_compile "$LINENO"; then : 4891 ac_compiler_gnu=yes 4892else 4893 ac_compiler_gnu=no 4894fi 4895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4896ac_cv_c_compiler_gnu=$ac_compiler_gnu 4897 4898fi 4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4900$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4901if test $ac_compiler_gnu = yes; then 4902 GCC=yes 4903else 4904 GCC= 4905fi 4906ac_test_CFLAGS=${CFLAGS+set} 4907ac_save_CFLAGS=$CFLAGS 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4909$as_echo_n "checking whether $CC accepts -g... " >&6; } 4910if ${ac_cv_prog_cc_g+:} false; then : 4911 $as_echo_n "(cached) " >&6 4912else 4913 ac_save_c_werror_flag=$ac_c_werror_flag 4914 ac_c_werror_flag=yes 4915 ac_cv_prog_cc_g=no 4916 CFLAGS="-g" 4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4918/* end confdefs.h. */ 4919 4920int 4921main () 4922{ 4923 4924 ; 4925 return 0; 4926} 4927_ACEOF 4928if ac_fn_c_try_compile "$LINENO"; then : 4929 ac_cv_prog_cc_g=yes 4930else 4931 CFLAGS="" 4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4933/* end confdefs.h. */ 4934 4935int 4936main () 4937{ 4938 4939 ; 4940 return 0; 4941} 4942_ACEOF 4943if ac_fn_c_try_compile "$LINENO"; then : 4944 4945else 4946 ac_c_werror_flag=$ac_save_c_werror_flag 4947 CFLAGS="-g" 4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4949/* end confdefs.h. */ 4950 4951int 4952main () 4953{ 4954 4955 ; 4956 return 0; 4957} 4958_ACEOF 4959if ac_fn_c_try_compile "$LINENO"; then : 4960 ac_cv_prog_cc_g=yes 4961fi 4962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4963fi 4964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4965fi 4966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4967 ac_c_werror_flag=$ac_save_c_werror_flag 4968fi 4969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4970$as_echo "$ac_cv_prog_cc_g" >&6; } 4971if test "$ac_test_CFLAGS" = set; then 4972 CFLAGS=$ac_save_CFLAGS 4973elif test $ac_cv_prog_cc_g = yes; then 4974 if test "$GCC" = yes; then 4975 CFLAGS="-g -O2" 4976 else 4977 CFLAGS="-g" 4978 fi 4979else 4980 if test "$GCC" = yes; then 4981 CFLAGS="-O2" 4982 else 4983 CFLAGS= 4984 fi 4985fi 4986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4987$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4988if ${ac_cv_prog_cc_c89+:} false; then : 4989 $as_echo_n "(cached) " >&6 4990else 4991 ac_cv_prog_cc_c89=no 4992ac_save_CC=$CC 4993cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4994/* end confdefs.h. */ 4995#include <stdarg.h> 4996#include <stdio.h> 4997struct stat; 4998/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4999struct buf { int x; }; 5000FILE * (*rcsopen) (struct buf *, struct stat *, int); 5001static char *e (p, i) 5002 char **p; 5003 int i; 5004{ 5005 return p[i]; 5006} 5007static char *f (char * (*g) (char **, int), char **p, ...) 5008{ 5009 char *s; 5010 va_list v; 5011 va_start (v,p); 5012 s = g (p, va_arg (v,int)); 5013 va_end (v); 5014 return s; 5015} 5016 5017/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5018 function prototypes and stuff, but not '\xHH' hex character constants. 5019 These don't provoke an error unfortunately, instead are silently treated 5020 as 'x'. The following induces an error, until -std is added to get 5021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5022 array size at least. It's necessary to write '\x00'==0 to get something 5023 that's true only with -std. */ 5024int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5025 5026/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5027 inside strings and character constants. */ 5028#define FOO(x) 'x' 5029int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5030 5031int test (int i, double x); 5032struct s1 {int (*f) (int a);}; 5033struct s2 {int (*f) (double a);}; 5034int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5035int argc; 5036char **argv; 5037int 5038main () 5039{ 5040return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5041 ; 5042 return 0; 5043} 5044_ACEOF 5045for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5046 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5047do 5048 CC="$ac_save_CC $ac_arg" 5049 if ac_fn_c_try_compile "$LINENO"; then : 5050 ac_cv_prog_cc_c89=$ac_arg 5051fi 5052rm -f core conftest.err conftest.$ac_objext 5053 test "x$ac_cv_prog_cc_c89" != "xno" && break 5054done 5055rm -f conftest.$ac_ext 5056CC=$ac_save_CC 5057 5058fi 5059# AC_CACHE_VAL 5060case "x$ac_cv_prog_cc_c89" in 5061 x) 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5063$as_echo "none needed" >&6; } ;; 5064 xno) 5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5066$as_echo "unsupported" >&6; } ;; 5067 *) 5068 CC="$CC $ac_cv_prog_cc_c89" 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5070$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5071esac 5072if test "x$ac_cv_prog_cc_c89" != xno; then : 5073 5074fi 5075 5076ac_ext=c 5077ac_cpp='$CPP $CPPFLAGS' 5078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5080ac_compiler_gnu=$ac_cv_c_compiler_gnu 5081 5082ac_ext=c 5083ac_cpp='$CPP $CPPFLAGS' 5084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5086ac_compiler_gnu=$ac_cv_c_compiler_gnu 5087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5088$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5089if ${am_cv_prog_cc_c_o+:} false; then : 5090 $as_echo_n "(cached) " >&6 5091else 5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5093/* end confdefs.h. */ 5094 5095int 5096main () 5097{ 5098 5099 ; 5100 return 0; 5101} 5102_ACEOF 5103 # Make sure it works both with $CC and with simple cc. 5104 # Following AC_PROG_CC_C_O, we do the test twice because some 5105 # compilers refuse to overwrite an existing .o file with -o, 5106 # though they will create one. 5107 am_cv_prog_cc_c_o=yes 5108 for am_i in 1 2; do 5109 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5110 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5111 ac_status=$? 5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5113 (exit $ac_status); } \ 5114 && test -f conftest2.$ac_objext; then 5115 : OK 5116 else 5117 am_cv_prog_cc_c_o=no 5118 break 5119 fi 5120 done 5121 rm -f core conftest* 5122 unset am_i 5123fi 5124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5125$as_echo "$am_cv_prog_cc_c_o" >&6; } 5126if test "$am_cv_prog_cc_c_o" != yes; then 5127 # Losing compiler, so override with the script. 5128 # FIXME: It is wrong to rewrite CC. 5129 # But if we don't then we get into trouble of one sort or another. 5130 # A longer-term fix would be to have automake use am__CC in this case, 5131 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5132 CC="$am_aux_dir/compile $CC" 5133fi 5134ac_ext=c 5135ac_cpp='$CPP $CPPFLAGS' 5136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5138ac_compiler_gnu=$ac_cv_c_compiler_gnu 5139 5140 5141depcc="$CC" am_compiler_list= 5142 5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5144$as_echo_n "checking dependency style of $depcc... " >&6; } 5145if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5146 $as_echo_n "(cached) " >&6 5147else 5148 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5149 # We make a subdir and do the tests there. Otherwise we can end up 5150 # making bogus files that we don't know about and never remove. For 5151 # instance it was reported that on HP-UX the gcc test will end up 5152 # making a dummy file named 'D' -- because '-MD' means "put the output 5153 # in D". 5154 rm -rf conftest.dir 5155 mkdir conftest.dir 5156 # Copy depcomp to subdir because otherwise we won't find it if we're 5157 # using a relative directory. 5158 cp "$am_depcomp" conftest.dir 5159 cd conftest.dir 5160 # We will build objects and dependencies in a subdirectory because 5161 # it helps to detect inapplicable dependency modes. For instance 5162 # both Tru64's cc and ICC support -MD to output dependencies as a 5163 # side effect of compilation, but ICC will put the dependencies in 5164 # the current directory while Tru64 will put them in the object 5165 # directory. 5166 mkdir sub 5167 5168 am_cv_CC_dependencies_compiler_type=none 5169 if test "$am_compiler_list" = ""; then 5170 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5171 fi 5172 am__universal=false 5173 case " $depcc " in #( 5174 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5175 esac 5176 5177 for depmode in $am_compiler_list; do 5178 # Setup a source with many dependencies, because some compilers 5179 # like to wrap large dependency lists on column 80 (with \), and 5180 # we should not choose a depcomp mode which is confused by this. 5181 # 5182 # We need to recreate these files for each test, as the compiler may 5183 # overwrite some of them when testing with obscure command lines. 5184 # This happens at least with the AIX C compiler. 5185 : > sub/conftest.c 5186 for i in 1 2 3 4 5 6; do 5187 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5188 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5189 # Solaris 10 /bin/sh. 5190 echo '/* dummy */' > sub/conftst$i.h 5191 done 5192 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5193 5194 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5195 # mode. It turns out that the SunPro C++ compiler does not properly 5196 # handle '-M -o', and we need to detect this. Also, some Intel 5197 # versions had trouble with output in subdirs. 5198 am__obj=sub/conftest.${OBJEXT-o} 5199 am__minus_obj="-o $am__obj" 5200 case $depmode in 5201 gcc) 5202 # This depmode causes a compiler race in universal mode. 5203 test "$am__universal" = false || continue 5204 ;; 5205 nosideeffect) 5206 # After this tag, mechanisms are not by side-effect, so they'll 5207 # only be used when explicitly requested. 5208 if test "x$enable_dependency_tracking" = xyes; then 5209 continue 5210 else 5211 break 5212 fi 5213 ;; 5214 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5215 # This compiler won't grok '-c -o', but also, the minuso test has 5216 # not run yet. These depmodes are late enough in the game, and 5217 # so weak that their functioning should not be impacted. 5218 am__obj=conftest.${OBJEXT-o} 5219 am__minus_obj= 5220 ;; 5221 none) break ;; 5222 esac 5223 if depmode=$depmode \ 5224 source=sub/conftest.c object=$am__obj \ 5225 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5226 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5227 >/dev/null 2>conftest.err && 5228 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5229 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5230 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5231 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5232 # icc doesn't choke on unknown options, it will just issue warnings 5233 # or remarks (even with -Werror). So we grep stderr for any message 5234 # that says an option was ignored or not supported. 5235 # When given -MP, icc 7.0 and 7.1 complain thusly: 5236 # icc: Command line warning: ignoring option '-M'; no argument required 5237 # The diagnosis changed in icc 8.0: 5238 # icc: Command line remark: option '-MP' not supported 5239 if (grep 'ignoring option' conftest.err || 5240 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5241 am_cv_CC_dependencies_compiler_type=$depmode 5242 break 5243 fi 5244 fi 5245 done 5246 5247 cd .. 5248 rm -rf conftest.dir 5249else 5250 am_cv_CC_dependencies_compiler_type=none 5251fi 5252 5253fi 5254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5255$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5256CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5257 5258 if 5259 test "x$enable_dependency_tracking" != xno \ 5260 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5261 am__fastdepCC_TRUE= 5262 am__fastdepCC_FALSE='#' 5263else 5264 am__fastdepCC_TRUE='#' 5265 am__fastdepCC_FALSE= 5266fi 5267 5268 5269 5270ac_ext=c 5271ac_cpp='$CPP $CPPFLAGS' 5272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5274ac_compiler_gnu=$ac_cv_c_compiler_gnu 5275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5276$as_echo_n "checking how to run the C preprocessor... " >&6; } 5277# On Suns, sometimes $CPP names a directory. 5278if test -n "$CPP" && test -d "$CPP"; then 5279 CPP= 5280fi 5281if test -z "$CPP"; then 5282 if ${ac_cv_prog_CPP+:} false; then : 5283 $as_echo_n "(cached) " >&6 5284else 5285 # Double quotes because CPP needs to be expanded 5286 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5287 do 5288 ac_preproc_ok=false 5289for ac_c_preproc_warn_flag in '' yes 5290do 5291 # Use a header file that comes with gcc, so configuring glibc 5292 # with a fresh cross-compiler works. 5293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5294 # <limits.h> exists even on freestanding compilers. 5295 # On the NeXT, cc -E runs the code through the compiler's parser, 5296 # not just through cpp. "Syntax error" is here to catch this case. 5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5298/* end confdefs.h. */ 5299#ifdef __STDC__ 5300# include <limits.h> 5301#else 5302# include <assert.h> 5303#endif 5304 Syntax error 5305_ACEOF 5306if ac_fn_c_try_cpp "$LINENO"; then : 5307 5308else 5309 # Broken: fails on valid input. 5310continue 5311fi 5312rm -f conftest.err conftest.i conftest.$ac_ext 5313 5314 # OK, works on sane cases. Now check whether nonexistent headers 5315 # can be detected and how. 5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5317/* end confdefs.h. */ 5318#include <ac_nonexistent.h> 5319_ACEOF 5320if ac_fn_c_try_cpp "$LINENO"; then : 5321 # Broken: success on invalid input. 5322continue 5323else 5324 # Passes both tests. 5325ac_preproc_ok=: 5326break 5327fi 5328rm -f conftest.err conftest.i conftest.$ac_ext 5329 5330done 5331# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5332rm -f conftest.i conftest.err conftest.$ac_ext 5333if $ac_preproc_ok; then : 5334 break 5335fi 5336 5337 done 5338 ac_cv_prog_CPP=$CPP 5339 5340fi 5341 CPP=$ac_cv_prog_CPP 5342else 5343 ac_cv_prog_CPP=$CPP 5344fi 5345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5346$as_echo "$CPP" >&6; } 5347ac_preproc_ok=false 5348for ac_c_preproc_warn_flag in '' yes 5349do 5350 # Use a header file that comes with gcc, so configuring glibc 5351 # with a fresh cross-compiler works. 5352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5353 # <limits.h> exists even on freestanding compilers. 5354 # On the NeXT, cc -E runs the code through the compiler's parser, 5355 # not just through cpp. "Syntax error" is here to catch this case. 5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5357/* end confdefs.h. */ 5358#ifdef __STDC__ 5359# include <limits.h> 5360#else 5361# include <assert.h> 5362#endif 5363 Syntax error 5364_ACEOF 5365if ac_fn_c_try_cpp "$LINENO"; then : 5366 5367else 5368 # Broken: fails on valid input. 5369continue 5370fi 5371rm -f conftest.err conftest.i conftest.$ac_ext 5372 5373 # OK, works on sane cases. Now check whether nonexistent headers 5374 # can be detected and how. 5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5376/* end confdefs.h. */ 5377#include <ac_nonexistent.h> 5378_ACEOF 5379if ac_fn_c_try_cpp "$LINENO"; then : 5380 # Broken: success on invalid input. 5381continue 5382else 5383 # Passes both tests. 5384ac_preproc_ok=: 5385break 5386fi 5387rm -f conftest.err conftest.i conftest.$ac_ext 5388 5389done 5390# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5391rm -f conftest.i conftest.err conftest.$ac_ext 5392if $ac_preproc_ok; then : 5393 5394else 5395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5397as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5398See \`config.log' for more details" "$LINENO" 5; } 5399fi 5400 5401ac_ext=c 5402ac_cpp='$CPP $CPPFLAGS' 5403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5405ac_compiler_gnu=$ac_cv_c_compiler_gnu 5406 5407 5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5409$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5410if ${ac_cv_path_GREP+:} false; then : 5411 $as_echo_n "(cached) " >&6 5412else 5413 if test -z "$GREP"; then 5414 ac_path_GREP_found=false 5415 # Loop through the user's path and test for each of PROGNAME-LIST 5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5417for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5418do 5419 IFS=$as_save_IFS 5420 test -z "$as_dir" && as_dir=. 5421 for ac_prog in grep ggrep; do 5422 for ac_exec_ext in '' $ac_executable_extensions; do 5423 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5424 as_fn_executable_p "$ac_path_GREP" || continue 5425# Check for GNU ac_path_GREP and select it if it is found. 5426 # Check for GNU $ac_path_GREP 5427case `"$ac_path_GREP" --version 2>&1` in 5428*GNU*) 5429 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5430*) 5431 ac_count=0 5432 $as_echo_n 0123456789 >"conftest.in" 5433 while : 5434 do 5435 cat "conftest.in" "conftest.in" >"conftest.tmp" 5436 mv "conftest.tmp" "conftest.in" 5437 cp "conftest.in" "conftest.nl" 5438 $as_echo 'GREP' >> "conftest.nl" 5439 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5441 as_fn_arith $ac_count + 1 && ac_count=$as_val 5442 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5443 # Best one so far, save it but keep looking for a better one 5444 ac_cv_path_GREP="$ac_path_GREP" 5445 ac_path_GREP_max=$ac_count 5446 fi 5447 # 10*(2^10) chars as input seems more than enough 5448 test $ac_count -gt 10 && break 5449 done 5450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5451esac 5452 5453 $ac_path_GREP_found && break 3 5454 done 5455 done 5456 done 5457IFS=$as_save_IFS 5458 if test -z "$ac_cv_path_GREP"; then 5459 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5460 fi 5461else 5462 ac_cv_path_GREP=$GREP 5463fi 5464 5465fi 5466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5467$as_echo "$ac_cv_path_GREP" >&6; } 5468 GREP="$ac_cv_path_GREP" 5469 5470 5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5472$as_echo_n "checking for egrep... " >&6; } 5473if ${ac_cv_path_EGREP+:} false; then : 5474 $as_echo_n "(cached) " >&6 5475else 5476 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5477 then ac_cv_path_EGREP="$GREP -E" 5478 else 5479 if test -z "$EGREP"; then 5480 ac_path_EGREP_found=false 5481 # Loop through the user's path and test for each of PROGNAME-LIST 5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5483for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5484do 5485 IFS=$as_save_IFS 5486 test -z "$as_dir" && as_dir=. 5487 for ac_prog in egrep; do 5488 for ac_exec_ext in '' $ac_executable_extensions; do 5489 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5490 as_fn_executable_p "$ac_path_EGREP" || continue 5491# Check for GNU ac_path_EGREP and select it if it is found. 5492 # Check for GNU $ac_path_EGREP 5493case `"$ac_path_EGREP" --version 2>&1` in 5494*GNU*) 5495 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5496*) 5497 ac_count=0 5498 $as_echo_n 0123456789 >"conftest.in" 5499 while : 5500 do 5501 cat "conftest.in" "conftest.in" >"conftest.tmp" 5502 mv "conftest.tmp" "conftest.in" 5503 cp "conftest.in" "conftest.nl" 5504 $as_echo 'EGREP' >> "conftest.nl" 5505 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5506 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5507 as_fn_arith $ac_count + 1 && ac_count=$as_val 5508 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5509 # Best one so far, save it but keep looking for a better one 5510 ac_cv_path_EGREP="$ac_path_EGREP" 5511 ac_path_EGREP_max=$ac_count 5512 fi 5513 # 10*(2^10) chars as input seems more than enough 5514 test $ac_count -gt 10 && break 5515 done 5516 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5517esac 5518 5519 $ac_path_EGREP_found && break 3 5520 done 5521 done 5522 done 5523IFS=$as_save_IFS 5524 if test -z "$ac_cv_path_EGREP"; then 5525 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5526 fi 5527else 5528 ac_cv_path_EGREP=$EGREP 5529fi 5530 5531 fi 5532fi 5533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5534$as_echo "$ac_cv_path_EGREP" >&6; } 5535 EGREP="$ac_cv_path_EGREP" 5536 5537 5538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5539$as_echo_n "checking for ANSI C header files... " >&6; } 5540if ${ac_cv_header_stdc+:} false; then : 5541 $as_echo_n "(cached) " >&6 5542else 5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5544/* end confdefs.h. */ 5545#include <stdlib.h> 5546#include <stdarg.h> 5547#include <string.h> 5548#include <float.h> 5549 5550int 5551main () 5552{ 5553 5554 ; 5555 return 0; 5556} 5557_ACEOF 5558if ac_fn_c_try_compile "$LINENO"; then : 5559 ac_cv_header_stdc=yes 5560else 5561 ac_cv_header_stdc=no 5562fi 5563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5564 5565if test $ac_cv_header_stdc = yes; then 5566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5568/* end confdefs.h. */ 5569#include <string.h> 5570 5571_ACEOF 5572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5573 $EGREP "memchr" >/dev/null 2>&1; then : 5574 5575else 5576 ac_cv_header_stdc=no 5577fi 5578rm -f conftest* 5579 5580fi 5581 5582if test $ac_cv_header_stdc = yes; then 5583 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5585/* end confdefs.h. */ 5586#include <stdlib.h> 5587 5588_ACEOF 5589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5590 $EGREP "free" >/dev/null 2>&1; then : 5591 5592else 5593 ac_cv_header_stdc=no 5594fi 5595rm -f conftest* 5596 5597fi 5598 5599if test $ac_cv_header_stdc = yes; then 5600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5601 if test "$cross_compiling" = yes; then : 5602 : 5603else 5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5605/* end confdefs.h. */ 5606#include <ctype.h> 5607#include <stdlib.h> 5608#if ((' ' & 0x0FF) == 0x020) 5609# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5610# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5611#else 5612# define ISLOWER(c) \ 5613 (('a' <= (c) && (c) <= 'i') \ 5614 || ('j' <= (c) && (c) <= 'r') \ 5615 || ('s' <= (c) && (c) <= 'z')) 5616# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5617#endif 5618 5619#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5620int 5621main () 5622{ 5623 int i; 5624 for (i = 0; i < 256; i++) 5625 if (XOR (islower (i), ISLOWER (i)) 5626 || toupper (i) != TOUPPER (i)) 5627 return 2; 5628 return 0; 5629} 5630_ACEOF 5631if ac_fn_c_try_run "$LINENO"; then : 5632 5633else 5634 ac_cv_header_stdc=no 5635fi 5636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5637 conftest.$ac_objext conftest.beam conftest.$ac_ext 5638fi 5639 5640fi 5641fi 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5643$as_echo "$ac_cv_header_stdc" >&6; } 5644if test $ac_cv_header_stdc = yes; then 5645 5646$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5647 5648fi 5649 5650# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5651for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5652 inttypes.h stdint.h unistd.h 5653do : 5654 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5655ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5656" 5657if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5658 cat >>confdefs.h <<_ACEOF 5659#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5660_ACEOF 5661 5662fi 5663 5664done 5665 5666 5667 5668 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5669if test "x$ac_cv_header_minix_config_h" = xyes; then : 5670 MINIX=yes 5671else 5672 MINIX= 5673fi 5674 5675 5676 if test "$MINIX" = yes; then 5677 5678$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5679 5680 5681$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5682 5683 5684$as_echo "#define _MINIX 1" >>confdefs.h 5685 5686 fi 5687 5688 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5690$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5691if ${ac_cv_safe_to_define___extensions__+:} false; then : 5692 $as_echo_n "(cached) " >&6 5693else 5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5695/* end confdefs.h. */ 5696 5697# define __EXTENSIONS__ 1 5698 $ac_includes_default 5699int 5700main () 5701{ 5702 5703 ; 5704 return 0; 5705} 5706_ACEOF 5707if ac_fn_c_try_compile "$LINENO"; then : 5708 ac_cv_safe_to_define___extensions__=yes 5709else 5710 ac_cv_safe_to_define___extensions__=no 5711fi 5712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5713fi 5714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5715$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5716 test $ac_cv_safe_to_define___extensions__ = yes && 5717 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5718 5719 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5720 5721 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5722 5723 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5724 5725 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5726 5727 5728 5729# Require xorg-macros minimum of 1.14 for XORG_COMPILER_BRAND in XORG_DEFAULT_OPTIONS 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5742$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5743if ${ac_cv_prog_cc_c99+:} false; then : 5744 $as_echo_n "(cached) " >&6 5745else 5746 ac_cv_prog_cc_c99=no 5747ac_save_CC=$CC 5748cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5749/* end confdefs.h. */ 5750#include <stdarg.h> 5751#include <stdbool.h> 5752#include <stdlib.h> 5753#include <wchar.h> 5754#include <stdio.h> 5755 5756// Check varargs macros. These examples are taken from C99 6.10.3.5. 5757#define debug(...) fprintf (stderr, __VA_ARGS__) 5758#define showlist(...) puts (#__VA_ARGS__) 5759#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5760static void 5761test_varargs_macros (void) 5762{ 5763 int x = 1234; 5764 int y = 5678; 5765 debug ("Flag"); 5766 debug ("X = %d\n", x); 5767 showlist (The first, second, and third items.); 5768 report (x>y, "x is %d but y is %d", x, y); 5769} 5770 5771// Check long long types. 5772#define BIG64 18446744073709551615ull 5773#define BIG32 4294967295ul 5774#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5775#if !BIG_OK 5776 your preprocessor is broken; 5777#endif 5778#if BIG_OK 5779#else 5780 your preprocessor is broken; 5781#endif 5782static long long int bignum = -9223372036854775807LL; 5783static unsigned long long int ubignum = BIG64; 5784 5785struct incomplete_array 5786{ 5787 int datasize; 5788 double data[]; 5789}; 5790 5791struct named_init { 5792 int number; 5793 const wchar_t *name; 5794 double average; 5795}; 5796 5797typedef const char *ccp; 5798 5799static inline int 5800test_restrict (ccp restrict text) 5801{ 5802 // See if C++-style comments work. 5803 // Iterate through items via the restricted pointer. 5804 // Also check for declarations in for loops. 5805 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5806 continue; 5807 return 0; 5808} 5809 5810// Check varargs and va_copy. 5811static void 5812test_varargs (const char *format, ...) 5813{ 5814 va_list args; 5815 va_start (args, format); 5816 va_list args_copy; 5817 va_copy (args_copy, args); 5818 5819 const char *str; 5820 int number; 5821 float fnumber; 5822 5823 while (*format) 5824 { 5825 switch (*format++) 5826 { 5827 case 's': // string 5828 str = va_arg (args_copy, const char *); 5829 break; 5830 case 'd': // int 5831 number = va_arg (args_copy, int); 5832 break; 5833 case 'f': // float 5834 fnumber = va_arg (args_copy, double); 5835 break; 5836 default: 5837 break; 5838 } 5839 } 5840 va_end (args_copy); 5841 va_end (args); 5842} 5843 5844int 5845main () 5846{ 5847 5848 // Check bool. 5849 _Bool success = false; 5850 5851 // Check restrict. 5852 if (test_restrict ("String literal") == 0) 5853 success = true; 5854 char *restrict newvar = "Another string"; 5855 5856 // Check varargs. 5857 test_varargs ("s, d' f .", "string", 65, 34.234); 5858 test_varargs_macros (); 5859 5860 // Check flexible array members. 5861 struct incomplete_array *ia = 5862 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5863 ia->datasize = 10; 5864 for (int i = 0; i < ia->datasize; ++i) 5865 ia->data[i] = i * 1.234; 5866 5867 // Check named initializers. 5868 struct named_init ni = { 5869 .number = 34, 5870 .name = L"Test wide string", 5871 .average = 543.34343, 5872 }; 5873 5874 ni.number = 58; 5875 5876 int dynamic_array[ni.number]; 5877 dynamic_array[ni.number - 1] = 543; 5878 5879 // work around unused variable warnings 5880 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5881 || dynamic_array[ni.number - 1] != 543); 5882 5883 ; 5884 return 0; 5885} 5886_ACEOF 5887for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5888do 5889 CC="$ac_save_CC $ac_arg" 5890 if ac_fn_c_try_compile "$LINENO"; then : 5891 ac_cv_prog_cc_c99=$ac_arg 5892fi 5893rm -f core conftest.err conftest.$ac_objext 5894 test "x$ac_cv_prog_cc_c99" != "xno" && break 5895done 5896rm -f conftest.$ac_ext 5897CC=$ac_save_CC 5898 5899fi 5900# AC_CACHE_VAL 5901case "x$ac_cv_prog_cc_c99" in 5902 x) 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5904$as_echo "none needed" >&6; } ;; 5905 xno) 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5907$as_echo "unsupported" >&6; } ;; 5908 *) 5909 CC="$CC $ac_cv_prog_cc_c99" 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5911$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5912esac 5913if test "x$ac_cv_prog_cc_c99" != xno; then : 5914 5915fi 5916 5917 5918 5919 5920 5921 5922ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 5923if test "x$ac_cv_have_decl___clang__" = xyes; then : 5924 CLANGCC="yes" 5925else 5926 CLANGCC="no" 5927fi 5928 5929ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 5930if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 5931 INTELCC="yes" 5932else 5933 INTELCC="no" 5934fi 5935 5936ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 5937if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 5938 SUNCC="yes" 5939else 5940 SUNCC="no" 5941fi 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5952 if test -n "$ac_tool_prefix"; then 5953 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5954set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5956$as_echo_n "checking for $ac_word... " >&6; } 5957if ${ac_cv_path_PKG_CONFIG+:} false; then : 5958 $as_echo_n "(cached) " >&6 5959else 5960 case $PKG_CONFIG in 5961 [\\/]* | ?:[\\/]*) 5962 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5963 ;; 5964 *) 5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5966for as_dir in $PATH 5967do 5968 IFS=$as_save_IFS 5969 test -z "$as_dir" && as_dir=. 5970 for ac_exec_ext in '' $ac_executable_extensions; do 5971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5972 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5974 break 2 5975 fi 5976done 5977 done 5978IFS=$as_save_IFS 5979 5980 ;; 5981esac 5982fi 5983PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5984if test -n "$PKG_CONFIG"; then 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5986$as_echo "$PKG_CONFIG" >&6; } 5987else 5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5989$as_echo "no" >&6; } 5990fi 5991 5992 5993fi 5994if test -z "$ac_cv_path_PKG_CONFIG"; then 5995 ac_pt_PKG_CONFIG=$PKG_CONFIG 5996 # Extract the first word of "pkg-config", so it can be a program name with args. 5997set dummy pkg-config; ac_word=$2 5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5999$as_echo_n "checking for $ac_word... " >&6; } 6000if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 6001 $as_echo_n "(cached) " >&6 6002else 6003 case $ac_pt_PKG_CONFIG in 6004 [\\/]* | ?:[\\/]*) 6005 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 6006 ;; 6007 *) 6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6009for as_dir in $PATH 6010do 6011 IFS=$as_save_IFS 6012 test -z "$as_dir" && as_dir=. 6013 for ac_exec_ext in '' $ac_executable_extensions; do 6014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6015 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6017 break 2 6018 fi 6019done 6020 done 6021IFS=$as_save_IFS 6022 6023 ;; 6024esac 6025fi 6026ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 6027if test -n "$ac_pt_PKG_CONFIG"; then 6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 6029$as_echo "$ac_pt_PKG_CONFIG" >&6; } 6030else 6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6032$as_echo "no" >&6; } 6033fi 6034 6035 if test "x$ac_pt_PKG_CONFIG" = x; then 6036 PKG_CONFIG="" 6037 else 6038 case $cross_compiling:$ac_tool_warned in 6039yes:) 6040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6042ac_tool_warned=yes ;; 6043esac 6044 PKG_CONFIG=$ac_pt_PKG_CONFIG 6045 fi 6046else 6047 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 6048fi 6049 6050fi 6051if test -n "$PKG_CONFIG"; then 6052 _pkg_min_version=0.9.0 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 6054$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 6055 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6057$as_echo "yes" >&6; } 6058 else 6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6060$as_echo "no" >&6; } 6061 PKG_CONFIG="" 6062 fi 6063fi 6064# Make sure we can run config.sub. 6065$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6066 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6067 6068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6069$as_echo_n "checking build system type... " >&6; } 6070if ${ac_cv_build+:} false; then : 6071 $as_echo_n "(cached) " >&6 6072else 6073 ac_build_alias=$build_alias 6074test "x$ac_build_alias" = x && 6075 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6076test "x$ac_build_alias" = x && 6077 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6078ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6079 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6080 6081fi 6082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6083$as_echo "$ac_cv_build" >&6; } 6084case $ac_cv_build in 6085*-*-*) ;; 6086*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6087esac 6088build=$ac_cv_build 6089ac_save_IFS=$IFS; IFS='-' 6090set x $ac_cv_build 6091shift 6092build_cpu=$1 6093build_vendor=$2 6094shift; shift 6095# Remember, the first character of IFS is used to create $*, 6096# except with old shells: 6097build_os=$* 6098IFS=$ac_save_IFS 6099case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6100 6101 6102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6103$as_echo_n "checking host system type... " >&6; } 6104if ${ac_cv_host+:} false; then : 6105 $as_echo_n "(cached) " >&6 6106else 6107 if test "x$host_alias" = x; then 6108 ac_cv_host=$ac_cv_build 6109else 6110 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6111 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6112fi 6113 6114fi 6115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6116$as_echo "$ac_cv_host" >&6; } 6117case $ac_cv_host in 6118*-*-*) ;; 6119*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6120esac 6121host=$ac_cv_host 6122ac_save_IFS=$IFS; IFS='-' 6123set x $ac_cv_host 6124shift 6125host_cpu=$1 6126host_vendor=$2 6127shift; shift 6128# Remember, the first character of IFS is used to create $*, 6129# except with old shells: 6130host_os=$* 6131IFS=$ac_save_IFS 6132case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6133 6134 6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6136$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6137if ${ac_cv_path_SED+:} false; then : 6138 $as_echo_n "(cached) " >&6 6139else 6140 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6141 for ac_i in 1 2 3 4 5 6 7; do 6142 ac_script="$ac_script$as_nl$ac_script" 6143 done 6144 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6145 { ac_script=; unset ac_script;} 6146 if test -z "$SED"; then 6147 ac_path_SED_found=false 6148 # Loop through the user's path and test for each of PROGNAME-LIST 6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6150for as_dir in $PATH 6151do 6152 IFS=$as_save_IFS 6153 test -z "$as_dir" && as_dir=. 6154 for ac_prog in sed gsed; do 6155 for ac_exec_ext in '' $ac_executable_extensions; do 6156 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6157 as_fn_executable_p "$ac_path_SED" || continue 6158# Check for GNU ac_path_SED and select it if it is found. 6159 # Check for GNU $ac_path_SED 6160case `"$ac_path_SED" --version 2>&1` in 6161*GNU*) 6162 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6163*) 6164 ac_count=0 6165 $as_echo_n 0123456789 >"conftest.in" 6166 while : 6167 do 6168 cat "conftest.in" "conftest.in" >"conftest.tmp" 6169 mv "conftest.tmp" "conftest.in" 6170 cp "conftest.in" "conftest.nl" 6171 $as_echo '' >> "conftest.nl" 6172 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6174 as_fn_arith $ac_count + 1 && ac_count=$as_val 6175 if test $ac_count -gt ${ac_path_SED_max-0}; then 6176 # Best one so far, save it but keep looking for a better one 6177 ac_cv_path_SED="$ac_path_SED" 6178 ac_path_SED_max=$ac_count 6179 fi 6180 # 10*(2^10) chars as input seems more than enough 6181 test $ac_count -gt 10 && break 6182 done 6183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6184esac 6185 6186 $ac_path_SED_found && break 3 6187 done 6188 done 6189 done 6190IFS=$as_save_IFS 6191 if test -z "$ac_cv_path_SED"; then 6192 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6193 fi 6194else 6195 ac_cv_path_SED=$SED 6196fi 6197 6198fi 6199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6200$as_echo "$ac_cv_path_SED" >&6; } 6201 SED="$ac_cv_path_SED" 6202 rm -f conftest.sed 6203 6204 6205 6206 6207 6208 6209# Check whether --enable-selective-werror was given. 6210if test "${enable_selective_werror+set}" = set; then : 6211 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 6212else 6213 SELECTIVE_WERROR=yes 6214fi 6215 6216 6217 6218 6219 6220# -v is too short to test reliably with XORG_TESTSET_CFLAG 6221if test "x$SUNCC" = "xyes"; then 6222 BASE_CFLAGS="-v" 6223else 6224 BASE_CFLAGS="" 6225fi 6226 6227# This chunk of warnings were those that existed in the legacy CWARNFLAGS 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241xorg_testset_save_CFLAGS="$CFLAGS" 6242 6243if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6246$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6247if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6248 $as_echo_n "(cached) " >&6 6249else 6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6251/* end confdefs.h. */ 6252int i; 6253_ACEOF 6254if ac_fn_c_try_compile "$LINENO"; then : 6255 xorg_cv_cc_flag_unknown_warning_option=yes 6256else 6257 xorg_cv_cc_flag_unknown_warning_option=no 6258fi 6259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6260fi 6261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6262$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6263 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6264 CFLAGS="$xorg_testset_save_CFLAGS" 6265fi 6266 6267if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6270 fi 6271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6273$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6274if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6275 $as_echo_n "(cached) " >&6 6276else 6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6278/* end confdefs.h. */ 6279int i; 6280_ACEOF 6281if ac_fn_c_try_compile "$LINENO"; then : 6282 xorg_cv_cc_flag_unused_command_line_argument=yes 6283else 6284 xorg_cv_cc_flag_unused_command_line_argument=no 6285fi 6286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6287fi 6288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6289$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6290 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6291 CFLAGS="$xorg_testset_save_CFLAGS" 6292fi 6293 6294found="no" 6295 6296 if test $found = "no" ; then 6297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6299 fi 6300 6301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6303 fi 6304 6305 CFLAGS="$CFLAGS -Wall" 6306 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 6308$as_echo_n "checking if $CC supports -Wall... " >&6; } 6309 cacheid=xorg_cv_cc_flag__Wall 6310 if eval \${$cacheid+:} false; then : 6311 $as_echo_n "(cached) " >&6 6312else 6313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6314/* end confdefs.h. */ 6315int i; 6316int 6317main () 6318{ 6319 6320 ; 6321 return 0; 6322} 6323_ACEOF 6324if ac_fn_c_try_link "$LINENO"; then : 6325 eval $cacheid=yes 6326else 6327 eval $cacheid=no 6328fi 6329rm -f core conftest.err conftest.$ac_objext \ 6330 conftest$ac_exeext conftest.$ac_ext 6331fi 6332 6333 6334 CFLAGS="$xorg_testset_save_CFLAGS" 6335 6336 eval supported=\$$cacheid 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6338$as_echo "$supported" >&6; } 6339 if test "$supported" = "yes" ; then 6340 BASE_CFLAGS="$BASE_CFLAGS -Wall" 6341 found="yes" 6342 fi 6343 fi 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359xorg_testset_save_CFLAGS="$CFLAGS" 6360 6361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6364$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6365if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6366 $as_echo_n "(cached) " >&6 6367else 6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6369/* end confdefs.h. */ 6370int i; 6371_ACEOF 6372if ac_fn_c_try_compile "$LINENO"; then : 6373 xorg_cv_cc_flag_unknown_warning_option=yes 6374else 6375 xorg_cv_cc_flag_unknown_warning_option=no 6376fi 6377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6378fi 6379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6380$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6382 CFLAGS="$xorg_testset_save_CFLAGS" 6383fi 6384 6385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6388 fi 6389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6391$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6392if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6393 $as_echo_n "(cached) " >&6 6394else 6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6396/* end confdefs.h. */ 6397int i; 6398_ACEOF 6399if ac_fn_c_try_compile "$LINENO"; then : 6400 xorg_cv_cc_flag_unused_command_line_argument=yes 6401else 6402 xorg_cv_cc_flag_unused_command_line_argument=no 6403fi 6404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6405fi 6406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6407$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6409 CFLAGS="$xorg_testset_save_CFLAGS" 6410fi 6411 6412found="no" 6413 6414 if test $found = "no" ; then 6415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6417 fi 6418 6419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6421 fi 6422 6423 CFLAGS="$CFLAGS -Wpointer-arith" 6424 6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 6426$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 6427 cacheid=xorg_cv_cc_flag__Wpointer_arith 6428 if eval \${$cacheid+:} false; then : 6429 $as_echo_n "(cached) " >&6 6430else 6431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6432/* end confdefs.h. */ 6433int i; 6434int 6435main () 6436{ 6437 6438 ; 6439 return 0; 6440} 6441_ACEOF 6442if ac_fn_c_try_link "$LINENO"; then : 6443 eval $cacheid=yes 6444else 6445 eval $cacheid=no 6446fi 6447rm -f core conftest.err conftest.$ac_objext \ 6448 conftest$ac_exeext conftest.$ac_ext 6449fi 6450 6451 6452 CFLAGS="$xorg_testset_save_CFLAGS" 6453 6454 eval supported=\$$cacheid 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6456$as_echo "$supported" >&6; } 6457 if test "$supported" = "yes" ; then 6458 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 6459 found="yes" 6460 fi 6461 fi 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477xorg_testset_save_CFLAGS="$CFLAGS" 6478 6479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6482$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6483if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6484 $as_echo_n "(cached) " >&6 6485else 6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6487/* end confdefs.h. */ 6488int i; 6489_ACEOF 6490if ac_fn_c_try_compile "$LINENO"; then : 6491 xorg_cv_cc_flag_unknown_warning_option=yes 6492else 6493 xorg_cv_cc_flag_unknown_warning_option=no 6494fi 6495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6496fi 6497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6498$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6500 CFLAGS="$xorg_testset_save_CFLAGS" 6501fi 6502 6503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6506 fi 6507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6509$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6510if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6511 $as_echo_n "(cached) " >&6 6512else 6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6514/* end confdefs.h. */ 6515int i; 6516_ACEOF 6517if ac_fn_c_try_compile "$LINENO"; then : 6518 xorg_cv_cc_flag_unused_command_line_argument=yes 6519else 6520 xorg_cv_cc_flag_unused_command_line_argument=no 6521fi 6522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6523fi 6524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6525$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6527 CFLAGS="$xorg_testset_save_CFLAGS" 6528fi 6529 6530found="no" 6531 6532 if test $found = "no" ; then 6533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6535 fi 6536 6537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6539 fi 6540 6541 CFLAGS="$CFLAGS -Wmissing-declarations" 6542 6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 6544$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 6545 cacheid=xorg_cv_cc_flag__Wmissing_declarations 6546 if eval \${$cacheid+:} false; then : 6547 $as_echo_n "(cached) " >&6 6548else 6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6550/* end confdefs.h. */ 6551int i; 6552int 6553main () 6554{ 6555 6556 ; 6557 return 0; 6558} 6559_ACEOF 6560if ac_fn_c_try_link "$LINENO"; then : 6561 eval $cacheid=yes 6562else 6563 eval $cacheid=no 6564fi 6565rm -f core conftest.err conftest.$ac_objext \ 6566 conftest$ac_exeext conftest.$ac_ext 6567fi 6568 6569 6570 CFLAGS="$xorg_testset_save_CFLAGS" 6571 6572 eval supported=\$$cacheid 6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6574$as_echo "$supported" >&6; } 6575 if test "$supported" = "yes" ; then 6576 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 6577 found="yes" 6578 fi 6579 fi 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595xorg_testset_save_CFLAGS="$CFLAGS" 6596 6597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6600$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6601if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6602 $as_echo_n "(cached) " >&6 6603else 6604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6605/* end confdefs.h. */ 6606int i; 6607_ACEOF 6608if ac_fn_c_try_compile "$LINENO"; then : 6609 xorg_cv_cc_flag_unknown_warning_option=yes 6610else 6611 xorg_cv_cc_flag_unknown_warning_option=no 6612fi 6613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6614fi 6615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6616$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6618 CFLAGS="$xorg_testset_save_CFLAGS" 6619fi 6620 6621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6624 fi 6625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6627$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6628if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6629 $as_echo_n "(cached) " >&6 6630else 6631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6632/* end confdefs.h. */ 6633int i; 6634_ACEOF 6635if ac_fn_c_try_compile "$LINENO"; then : 6636 xorg_cv_cc_flag_unused_command_line_argument=yes 6637else 6638 xorg_cv_cc_flag_unused_command_line_argument=no 6639fi 6640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6641fi 6642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6643$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6645 CFLAGS="$xorg_testset_save_CFLAGS" 6646fi 6647 6648found="no" 6649 6650 if test $found = "no" ; then 6651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6653 fi 6654 6655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6657 fi 6658 6659 CFLAGS="$CFLAGS -Wformat=2" 6660 6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 6662$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 6663 cacheid=xorg_cv_cc_flag__Wformat_2 6664 if eval \${$cacheid+:} false; then : 6665 $as_echo_n "(cached) " >&6 6666else 6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6668/* end confdefs.h. */ 6669int i; 6670int 6671main () 6672{ 6673 6674 ; 6675 return 0; 6676} 6677_ACEOF 6678if ac_fn_c_try_link "$LINENO"; then : 6679 eval $cacheid=yes 6680else 6681 eval $cacheid=no 6682fi 6683rm -f core conftest.err conftest.$ac_objext \ 6684 conftest$ac_exeext conftest.$ac_ext 6685fi 6686 6687 6688 CFLAGS="$xorg_testset_save_CFLAGS" 6689 6690 eval supported=\$$cacheid 6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6692$as_echo "$supported" >&6; } 6693 if test "$supported" = "yes" ; then 6694 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 6695 found="yes" 6696 fi 6697 fi 6698 6699 if test $found = "no" ; then 6700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6702 fi 6703 6704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6706 fi 6707 6708 CFLAGS="$CFLAGS -Wformat" 6709 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 6711$as_echo_n "checking if $CC supports -Wformat... " >&6; } 6712 cacheid=xorg_cv_cc_flag__Wformat 6713 if eval \${$cacheid+:} false; then : 6714 $as_echo_n "(cached) " >&6 6715else 6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6717/* end confdefs.h. */ 6718int i; 6719int 6720main () 6721{ 6722 6723 ; 6724 return 0; 6725} 6726_ACEOF 6727if ac_fn_c_try_link "$LINENO"; then : 6728 eval $cacheid=yes 6729else 6730 eval $cacheid=no 6731fi 6732rm -f core conftest.err conftest.$ac_objext \ 6733 conftest$ac_exeext conftest.$ac_ext 6734fi 6735 6736 6737 CFLAGS="$xorg_testset_save_CFLAGS" 6738 6739 eval supported=\$$cacheid 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6741$as_echo "$supported" >&6; } 6742 if test "$supported" = "yes" ; then 6743 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 6744 found="yes" 6745 fi 6746 fi 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764xorg_testset_save_CFLAGS="$CFLAGS" 6765 6766if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6769$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6770if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6771 $as_echo_n "(cached) " >&6 6772else 6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6774/* end confdefs.h. */ 6775int i; 6776_ACEOF 6777if ac_fn_c_try_compile "$LINENO"; then : 6778 xorg_cv_cc_flag_unknown_warning_option=yes 6779else 6780 xorg_cv_cc_flag_unknown_warning_option=no 6781fi 6782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6783fi 6784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6785$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6787 CFLAGS="$xorg_testset_save_CFLAGS" 6788fi 6789 6790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6793 fi 6794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6796$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6797if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6798 $as_echo_n "(cached) " >&6 6799else 6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6801/* end confdefs.h. */ 6802int i; 6803_ACEOF 6804if ac_fn_c_try_compile "$LINENO"; then : 6805 xorg_cv_cc_flag_unused_command_line_argument=yes 6806else 6807 xorg_cv_cc_flag_unused_command_line_argument=no 6808fi 6809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6810fi 6811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6812$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6814 CFLAGS="$xorg_testset_save_CFLAGS" 6815fi 6816 6817found="no" 6818 6819 if test $found = "no" ; then 6820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6822 fi 6823 6824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6826 fi 6827 6828 CFLAGS="$CFLAGS -Wstrict-prototypes" 6829 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 6831$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 6832 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 6833 if eval \${$cacheid+:} false; then : 6834 $as_echo_n "(cached) " >&6 6835else 6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6837/* end confdefs.h. */ 6838int i; 6839int 6840main () 6841{ 6842 6843 ; 6844 return 0; 6845} 6846_ACEOF 6847if ac_fn_c_try_link "$LINENO"; then : 6848 eval $cacheid=yes 6849else 6850 eval $cacheid=no 6851fi 6852rm -f core conftest.err conftest.$ac_objext \ 6853 conftest$ac_exeext conftest.$ac_ext 6854fi 6855 6856 6857 CFLAGS="$xorg_testset_save_CFLAGS" 6858 6859 eval supported=\$$cacheid 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6861$as_echo "$supported" >&6; } 6862 if test "$supported" = "yes" ; then 6863 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 6864 found="yes" 6865 fi 6866 fi 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882xorg_testset_save_CFLAGS="$CFLAGS" 6883 6884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6887$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6888if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6889 $as_echo_n "(cached) " >&6 6890else 6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6892/* end confdefs.h. */ 6893int i; 6894_ACEOF 6895if ac_fn_c_try_compile "$LINENO"; then : 6896 xorg_cv_cc_flag_unknown_warning_option=yes 6897else 6898 xorg_cv_cc_flag_unknown_warning_option=no 6899fi 6900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6901fi 6902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6903$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6905 CFLAGS="$xorg_testset_save_CFLAGS" 6906fi 6907 6908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6911 fi 6912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6914$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6915if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6916 $as_echo_n "(cached) " >&6 6917else 6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6919/* end confdefs.h. */ 6920int i; 6921_ACEOF 6922if ac_fn_c_try_compile "$LINENO"; then : 6923 xorg_cv_cc_flag_unused_command_line_argument=yes 6924else 6925 xorg_cv_cc_flag_unused_command_line_argument=no 6926fi 6927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6928fi 6929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6930$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6932 CFLAGS="$xorg_testset_save_CFLAGS" 6933fi 6934 6935found="no" 6936 6937 if test $found = "no" ; then 6938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6940 fi 6941 6942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6944 fi 6945 6946 CFLAGS="$CFLAGS -Wmissing-prototypes" 6947 6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6949$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 6950 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6951 if eval \${$cacheid+:} false; then : 6952 $as_echo_n "(cached) " >&6 6953else 6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6955/* end confdefs.h. */ 6956int i; 6957int 6958main () 6959{ 6960 6961 ; 6962 return 0; 6963} 6964_ACEOF 6965if ac_fn_c_try_link "$LINENO"; then : 6966 eval $cacheid=yes 6967else 6968 eval $cacheid=no 6969fi 6970rm -f core conftest.err conftest.$ac_objext \ 6971 conftest$ac_exeext conftest.$ac_ext 6972fi 6973 6974 6975 CFLAGS="$xorg_testset_save_CFLAGS" 6976 6977 eval supported=\$$cacheid 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6979$as_echo "$supported" >&6; } 6980 if test "$supported" = "yes" ; then 6981 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6982 found="yes" 6983 fi 6984 fi 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000xorg_testset_save_CFLAGS="$CFLAGS" 7001 7002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7005$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7006if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7007 $as_echo_n "(cached) " >&6 7008else 7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7010/* end confdefs.h. */ 7011int i; 7012_ACEOF 7013if ac_fn_c_try_compile "$LINENO"; then : 7014 xorg_cv_cc_flag_unknown_warning_option=yes 7015else 7016 xorg_cv_cc_flag_unknown_warning_option=no 7017fi 7018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7019fi 7020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7021$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7023 CFLAGS="$xorg_testset_save_CFLAGS" 7024fi 7025 7026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7029 fi 7030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7032$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7033if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7034 $as_echo_n "(cached) " >&6 7035else 7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7037/* end confdefs.h. */ 7038int i; 7039_ACEOF 7040if ac_fn_c_try_compile "$LINENO"; then : 7041 xorg_cv_cc_flag_unused_command_line_argument=yes 7042else 7043 xorg_cv_cc_flag_unused_command_line_argument=no 7044fi 7045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7046fi 7047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7048$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7050 CFLAGS="$xorg_testset_save_CFLAGS" 7051fi 7052 7053found="no" 7054 7055 if test $found = "no" ; then 7056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7058 fi 7059 7060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7062 fi 7063 7064 CFLAGS="$CFLAGS -Wnested-externs" 7065 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 7067$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 7068 cacheid=xorg_cv_cc_flag__Wnested_externs 7069 if eval \${$cacheid+:} false; then : 7070 $as_echo_n "(cached) " >&6 7071else 7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7073/* end confdefs.h. */ 7074int i; 7075int 7076main () 7077{ 7078 7079 ; 7080 return 0; 7081} 7082_ACEOF 7083if ac_fn_c_try_link "$LINENO"; then : 7084 eval $cacheid=yes 7085else 7086 eval $cacheid=no 7087fi 7088rm -f core conftest.err conftest.$ac_objext \ 7089 conftest$ac_exeext conftest.$ac_ext 7090fi 7091 7092 7093 CFLAGS="$xorg_testset_save_CFLAGS" 7094 7095 eval supported=\$$cacheid 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7097$as_echo "$supported" >&6; } 7098 if test "$supported" = "yes" ; then 7099 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 7100 found="yes" 7101 fi 7102 fi 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118xorg_testset_save_CFLAGS="$CFLAGS" 7119 7120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7123$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7124if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7125 $as_echo_n "(cached) " >&6 7126else 7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7128/* end confdefs.h. */ 7129int i; 7130_ACEOF 7131if ac_fn_c_try_compile "$LINENO"; then : 7132 xorg_cv_cc_flag_unknown_warning_option=yes 7133else 7134 xorg_cv_cc_flag_unknown_warning_option=no 7135fi 7136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7137fi 7138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7139$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7141 CFLAGS="$xorg_testset_save_CFLAGS" 7142fi 7143 7144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7147 fi 7148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7150$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7151if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7152 $as_echo_n "(cached) " >&6 7153else 7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7155/* end confdefs.h. */ 7156int i; 7157_ACEOF 7158if ac_fn_c_try_compile "$LINENO"; then : 7159 xorg_cv_cc_flag_unused_command_line_argument=yes 7160else 7161 xorg_cv_cc_flag_unused_command_line_argument=no 7162fi 7163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7164fi 7165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7166$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7168 CFLAGS="$xorg_testset_save_CFLAGS" 7169fi 7170 7171found="no" 7172 7173 if test $found = "no" ; then 7174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7176 fi 7177 7178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7180 fi 7181 7182 CFLAGS="$CFLAGS -Wbad-function-cast" 7183 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 7185$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 7186 cacheid=xorg_cv_cc_flag__Wbad_function_cast 7187 if eval \${$cacheid+:} false; then : 7188 $as_echo_n "(cached) " >&6 7189else 7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7191/* end confdefs.h. */ 7192int i; 7193int 7194main () 7195{ 7196 7197 ; 7198 return 0; 7199} 7200_ACEOF 7201if ac_fn_c_try_link "$LINENO"; then : 7202 eval $cacheid=yes 7203else 7204 eval $cacheid=no 7205fi 7206rm -f core conftest.err conftest.$ac_objext \ 7207 conftest$ac_exeext conftest.$ac_ext 7208fi 7209 7210 7211 CFLAGS="$xorg_testset_save_CFLAGS" 7212 7213 eval supported=\$$cacheid 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7215$as_echo "$supported" >&6; } 7216 if test "$supported" = "yes" ; then 7217 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 7218 found="yes" 7219 fi 7220 fi 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236xorg_testset_save_CFLAGS="$CFLAGS" 7237 7238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7241$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7242if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7243 $as_echo_n "(cached) " >&6 7244else 7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7246/* end confdefs.h. */ 7247int i; 7248_ACEOF 7249if ac_fn_c_try_compile "$LINENO"; then : 7250 xorg_cv_cc_flag_unknown_warning_option=yes 7251else 7252 xorg_cv_cc_flag_unknown_warning_option=no 7253fi 7254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7255fi 7256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7257$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7259 CFLAGS="$xorg_testset_save_CFLAGS" 7260fi 7261 7262if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7265 fi 7266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7268$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7269if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7270 $as_echo_n "(cached) " >&6 7271else 7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7273/* end confdefs.h. */ 7274int i; 7275_ACEOF 7276if ac_fn_c_try_compile "$LINENO"; then : 7277 xorg_cv_cc_flag_unused_command_line_argument=yes 7278else 7279 xorg_cv_cc_flag_unused_command_line_argument=no 7280fi 7281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7282fi 7283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7284$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7286 CFLAGS="$xorg_testset_save_CFLAGS" 7287fi 7288 7289found="no" 7290 7291 if test $found = "no" ; then 7292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7294 fi 7295 7296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7298 fi 7299 7300 CFLAGS="$CFLAGS -Wold-style-definition" 7301 7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 7303$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 7304 cacheid=xorg_cv_cc_flag__Wold_style_definition 7305 if eval \${$cacheid+:} false; then : 7306 $as_echo_n "(cached) " >&6 7307else 7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7309/* end confdefs.h. */ 7310int i; 7311int 7312main () 7313{ 7314 7315 ; 7316 return 0; 7317} 7318_ACEOF 7319if ac_fn_c_try_link "$LINENO"; then : 7320 eval $cacheid=yes 7321else 7322 eval $cacheid=no 7323fi 7324rm -f core conftest.err conftest.$ac_objext \ 7325 conftest$ac_exeext conftest.$ac_ext 7326fi 7327 7328 7329 CFLAGS="$xorg_testset_save_CFLAGS" 7330 7331 eval supported=\$$cacheid 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7333$as_echo "$supported" >&6; } 7334 if test "$supported" = "yes" ; then 7335 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 7336 found="yes" 7337 fi 7338 fi 7339 7340 if test $found = "no" ; then 7341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7343 fi 7344 7345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7347 fi 7348 7349 CFLAGS="$CFLAGS -fd" 7350 7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 7352$as_echo_n "checking if $CC supports -fd... " >&6; } 7353 cacheid=xorg_cv_cc_flag__fd 7354 if eval \${$cacheid+:} false; then : 7355 $as_echo_n "(cached) " >&6 7356else 7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7358/* end confdefs.h. */ 7359int i; 7360int 7361main () 7362{ 7363 7364 ; 7365 return 0; 7366} 7367_ACEOF 7368if ac_fn_c_try_link "$LINENO"; then : 7369 eval $cacheid=yes 7370else 7371 eval $cacheid=no 7372fi 7373rm -f core conftest.err conftest.$ac_objext \ 7374 conftest$ac_exeext conftest.$ac_ext 7375fi 7376 7377 7378 CFLAGS="$xorg_testset_save_CFLAGS" 7379 7380 eval supported=\$$cacheid 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7382$as_echo "$supported" >&6; } 7383 if test "$supported" = "yes" ; then 7384 BASE_CFLAGS="$BASE_CFLAGS -fd" 7385 found="yes" 7386 fi 7387 fi 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403xorg_testset_save_CFLAGS="$CFLAGS" 7404 7405if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7408$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7409if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7410 $as_echo_n "(cached) " >&6 7411else 7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7413/* end confdefs.h. */ 7414int i; 7415_ACEOF 7416if ac_fn_c_try_compile "$LINENO"; then : 7417 xorg_cv_cc_flag_unknown_warning_option=yes 7418else 7419 xorg_cv_cc_flag_unknown_warning_option=no 7420fi 7421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7422fi 7423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7424$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7426 CFLAGS="$xorg_testset_save_CFLAGS" 7427fi 7428 7429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7432 fi 7433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7435$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7436if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7437 $as_echo_n "(cached) " >&6 7438else 7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7440/* end confdefs.h. */ 7441int i; 7442_ACEOF 7443if ac_fn_c_try_compile "$LINENO"; then : 7444 xorg_cv_cc_flag_unused_command_line_argument=yes 7445else 7446 xorg_cv_cc_flag_unused_command_line_argument=no 7447fi 7448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7449fi 7450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7451$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7453 CFLAGS="$xorg_testset_save_CFLAGS" 7454fi 7455 7456found="no" 7457 7458 if test $found = "no" ; then 7459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7461 fi 7462 7463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7465 fi 7466 7467 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 7468 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 7470$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 7471 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 7472 if eval \${$cacheid+:} false; then : 7473 $as_echo_n "(cached) " >&6 7474else 7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7476/* end confdefs.h. */ 7477int i; 7478int 7479main () 7480{ 7481 7482 ; 7483 return 0; 7484} 7485_ACEOF 7486if ac_fn_c_try_link "$LINENO"; then : 7487 eval $cacheid=yes 7488else 7489 eval $cacheid=no 7490fi 7491rm -f core conftest.err conftest.$ac_objext \ 7492 conftest$ac_exeext conftest.$ac_ext 7493fi 7494 7495 7496 CFLAGS="$xorg_testset_save_CFLAGS" 7497 7498 eval supported=\$$cacheid 7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7500$as_echo "$supported" >&6; } 7501 if test "$supported" = "yes" ; then 7502 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 7503 found="yes" 7504 fi 7505 fi 7506 7507 7508 7509 7510 7511# This chunk adds additional warnings that could catch undesired effects. 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525xorg_testset_save_CFLAGS="$CFLAGS" 7526 7527if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7530$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7531if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7532 $as_echo_n "(cached) " >&6 7533else 7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7535/* end confdefs.h. */ 7536int i; 7537_ACEOF 7538if ac_fn_c_try_compile "$LINENO"; then : 7539 xorg_cv_cc_flag_unknown_warning_option=yes 7540else 7541 xorg_cv_cc_flag_unknown_warning_option=no 7542fi 7543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7544fi 7545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7546$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7547 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7548 CFLAGS="$xorg_testset_save_CFLAGS" 7549fi 7550 7551if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7554 fi 7555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7557$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7558if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7559 $as_echo_n "(cached) " >&6 7560else 7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7562/* end confdefs.h. */ 7563int i; 7564_ACEOF 7565if ac_fn_c_try_compile "$LINENO"; then : 7566 xorg_cv_cc_flag_unused_command_line_argument=yes 7567else 7568 xorg_cv_cc_flag_unused_command_line_argument=no 7569fi 7570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7571fi 7572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7573$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7575 CFLAGS="$xorg_testset_save_CFLAGS" 7576fi 7577 7578found="no" 7579 7580 if test $found = "no" ; then 7581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7583 fi 7584 7585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7587 fi 7588 7589 CFLAGS="$CFLAGS -Wunused" 7590 7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 7592$as_echo_n "checking if $CC supports -Wunused... " >&6; } 7593 cacheid=xorg_cv_cc_flag__Wunused 7594 if eval \${$cacheid+:} false; then : 7595 $as_echo_n "(cached) " >&6 7596else 7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7598/* end confdefs.h. */ 7599int i; 7600int 7601main () 7602{ 7603 7604 ; 7605 return 0; 7606} 7607_ACEOF 7608if ac_fn_c_try_link "$LINENO"; then : 7609 eval $cacheid=yes 7610else 7611 eval $cacheid=no 7612fi 7613rm -f core conftest.err conftest.$ac_objext \ 7614 conftest$ac_exeext conftest.$ac_ext 7615fi 7616 7617 7618 CFLAGS="$xorg_testset_save_CFLAGS" 7619 7620 eval supported=\$$cacheid 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7622$as_echo "$supported" >&6; } 7623 if test "$supported" = "yes" ; then 7624 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 7625 found="yes" 7626 fi 7627 fi 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643xorg_testset_save_CFLAGS="$CFLAGS" 7644 7645if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7648$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7649if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7650 $as_echo_n "(cached) " >&6 7651else 7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7653/* end confdefs.h. */ 7654int i; 7655_ACEOF 7656if ac_fn_c_try_compile "$LINENO"; then : 7657 xorg_cv_cc_flag_unknown_warning_option=yes 7658else 7659 xorg_cv_cc_flag_unknown_warning_option=no 7660fi 7661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7662fi 7663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7664$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7665 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7666 CFLAGS="$xorg_testset_save_CFLAGS" 7667fi 7668 7669if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7672 fi 7673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7675$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7676if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7677 $as_echo_n "(cached) " >&6 7678else 7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7680/* end confdefs.h. */ 7681int i; 7682_ACEOF 7683if ac_fn_c_try_compile "$LINENO"; then : 7684 xorg_cv_cc_flag_unused_command_line_argument=yes 7685else 7686 xorg_cv_cc_flag_unused_command_line_argument=no 7687fi 7688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7689fi 7690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7691$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7692 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7693 CFLAGS="$xorg_testset_save_CFLAGS" 7694fi 7695 7696found="no" 7697 7698 if test $found = "no" ; then 7699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7701 fi 7702 7703 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7705 fi 7706 7707 CFLAGS="$CFLAGS -Wuninitialized" 7708 7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 7710$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 7711 cacheid=xorg_cv_cc_flag__Wuninitialized 7712 if eval \${$cacheid+:} false; then : 7713 $as_echo_n "(cached) " >&6 7714else 7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7716/* end confdefs.h. */ 7717int i; 7718int 7719main () 7720{ 7721 7722 ; 7723 return 0; 7724} 7725_ACEOF 7726if ac_fn_c_try_link "$LINENO"; then : 7727 eval $cacheid=yes 7728else 7729 eval $cacheid=no 7730fi 7731rm -f core conftest.err conftest.$ac_objext \ 7732 conftest$ac_exeext conftest.$ac_ext 7733fi 7734 7735 7736 CFLAGS="$xorg_testset_save_CFLAGS" 7737 7738 eval supported=\$$cacheid 7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7740$as_echo "$supported" >&6; } 7741 if test "$supported" = "yes" ; then 7742 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 7743 found="yes" 7744 fi 7745 fi 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761xorg_testset_save_CFLAGS="$CFLAGS" 7762 7763if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7766$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7767if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7768 $as_echo_n "(cached) " >&6 7769else 7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7771/* end confdefs.h. */ 7772int i; 7773_ACEOF 7774if ac_fn_c_try_compile "$LINENO"; then : 7775 xorg_cv_cc_flag_unknown_warning_option=yes 7776else 7777 xorg_cv_cc_flag_unknown_warning_option=no 7778fi 7779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7780fi 7781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7782$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7783 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7784 CFLAGS="$xorg_testset_save_CFLAGS" 7785fi 7786 7787if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7790 fi 7791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7793$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7794if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7795 $as_echo_n "(cached) " >&6 7796else 7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7798/* end confdefs.h. */ 7799int i; 7800_ACEOF 7801if ac_fn_c_try_compile "$LINENO"; then : 7802 xorg_cv_cc_flag_unused_command_line_argument=yes 7803else 7804 xorg_cv_cc_flag_unused_command_line_argument=no 7805fi 7806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7807fi 7808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7809$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7811 CFLAGS="$xorg_testset_save_CFLAGS" 7812fi 7813 7814found="no" 7815 7816 if test $found = "no" ; then 7817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7819 fi 7820 7821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7823 fi 7824 7825 CFLAGS="$CFLAGS -Wshadow" 7826 7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 7828$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 7829 cacheid=xorg_cv_cc_flag__Wshadow 7830 if eval \${$cacheid+:} false; then : 7831 $as_echo_n "(cached) " >&6 7832else 7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7834/* end confdefs.h. */ 7835int i; 7836int 7837main () 7838{ 7839 7840 ; 7841 return 0; 7842} 7843_ACEOF 7844if ac_fn_c_try_link "$LINENO"; then : 7845 eval $cacheid=yes 7846else 7847 eval $cacheid=no 7848fi 7849rm -f core conftest.err conftest.$ac_objext \ 7850 conftest$ac_exeext conftest.$ac_ext 7851fi 7852 7853 7854 CFLAGS="$xorg_testset_save_CFLAGS" 7855 7856 eval supported=\$$cacheid 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7858$as_echo "$supported" >&6; } 7859 if test "$supported" = "yes" ; then 7860 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 7861 found="yes" 7862 fi 7863 fi 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879xorg_testset_save_CFLAGS="$CFLAGS" 7880 7881if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7884$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7885if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7886 $as_echo_n "(cached) " >&6 7887else 7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7889/* end confdefs.h. */ 7890int i; 7891_ACEOF 7892if ac_fn_c_try_compile "$LINENO"; then : 7893 xorg_cv_cc_flag_unknown_warning_option=yes 7894else 7895 xorg_cv_cc_flag_unknown_warning_option=no 7896fi 7897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7898fi 7899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7900$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7902 CFLAGS="$xorg_testset_save_CFLAGS" 7903fi 7904 7905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7908 fi 7909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7911$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7912if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7913 $as_echo_n "(cached) " >&6 7914else 7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7916/* end confdefs.h. */ 7917int i; 7918_ACEOF 7919if ac_fn_c_try_compile "$LINENO"; then : 7920 xorg_cv_cc_flag_unused_command_line_argument=yes 7921else 7922 xorg_cv_cc_flag_unused_command_line_argument=no 7923fi 7924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7925fi 7926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7927$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7929 CFLAGS="$xorg_testset_save_CFLAGS" 7930fi 7931 7932found="no" 7933 7934 if test $found = "no" ; then 7935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7937 fi 7938 7939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7941 fi 7942 7943 CFLAGS="$CFLAGS -Wmissing-noreturn" 7944 7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7946$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 7947 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7948 if eval \${$cacheid+:} false; then : 7949 $as_echo_n "(cached) " >&6 7950else 7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7952/* end confdefs.h. */ 7953int i; 7954int 7955main () 7956{ 7957 7958 ; 7959 return 0; 7960} 7961_ACEOF 7962if ac_fn_c_try_link "$LINENO"; then : 7963 eval $cacheid=yes 7964else 7965 eval $cacheid=no 7966fi 7967rm -f core conftest.err conftest.$ac_objext \ 7968 conftest$ac_exeext conftest.$ac_ext 7969fi 7970 7971 7972 CFLAGS="$xorg_testset_save_CFLAGS" 7973 7974 eval supported=\$$cacheid 7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7976$as_echo "$supported" >&6; } 7977 if test "$supported" = "yes" ; then 7978 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7979 found="yes" 7980 fi 7981 fi 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997xorg_testset_save_CFLAGS="$CFLAGS" 7998 7999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8002$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8003if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8004 $as_echo_n "(cached) " >&6 8005else 8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8007/* end confdefs.h. */ 8008int i; 8009_ACEOF 8010if ac_fn_c_try_compile "$LINENO"; then : 8011 xorg_cv_cc_flag_unknown_warning_option=yes 8012else 8013 xorg_cv_cc_flag_unknown_warning_option=no 8014fi 8015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8016fi 8017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8018$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8020 CFLAGS="$xorg_testset_save_CFLAGS" 8021fi 8022 8023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8026 fi 8027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8029$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8030if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8031 $as_echo_n "(cached) " >&6 8032else 8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8034/* end confdefs.h. */ 8035int i; 8036_ACEOF 8037if ac_fn_c_try_compile "$LINENO"; then : 8038 xorg_cv_cc_flag_unused_command_line_argument=yes 8039else 8040 xorg_cv_cc_flag_unused_command_line_argument=no 8041fi 8042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8043fi 8044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8045$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8047 CFLAGS="$xorg_testset_save_CFLAGS" 8048fi 8049 8050found="no" 8051 8052 if test $found = "no" ; then 8053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8055 fi 8056 8057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8059 fi 8060 8061 CFLAGS="$CFLAGS -Wmissing-format-attribute" 8062 8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 8064$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 8065 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 8066 if eval \${$cacheid+:} false; then : 8067 $as_echo_n "(cached) " >&6 8068else 8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8070/* end confdefs.h. */ 8071int i; 8072int 8073main () 8074{ 8075 8076 ; 8077 return 0; 8078} 8079_ACEOF 8080if ac_fn_c_try_link "$LINENO"; then : 8081 eval $cacheid=yes 8082else 8083 eval $cacheid=no 8084fi 8085rm -f core conftest.err conftest.$ac_objext \ 8086 conftest$ac_exeext conftest.$ac_ext 8087fi 8088 8089 8090 CFLAGS="$xorg_testset_save_CFLAGS" 8091 8092 eval supported=\$$cacheid 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8094$as_echo "$supported" >&6; } 8095 if test "$supported" = "yes" ; then 8096 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 8097 found="yes" 8098 fi 8099 fi 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115xorg_testset_save_CFLAGS="$CFLAGS" 8116 8117if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8120$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8121if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8122 $as_echo_n "(cached) " >&6 8123else 8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8125/* end confdefs.h. */ 8126int i; 8127_ACEOF 8128if ac_fn_c_try_compile "$LINENO"; then : 8129 xorg_cv_cc_flag_unknown_warning_option=yes 8130else 8131 xorg_cv_cc_flag_unknown_warning_option=no 8132fi 8133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8134fi 8135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8136$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8137 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8138 CFLAGS="$xorg_testset_save_CFLAGS" 8139fi 8140 8141if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8144 fi 8145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8147$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8148if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8149 $as_echo_n "(cached) " >&6 8150else 8151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8152/* end confdefs.h. */ 8153int i; 8154_ACEOF 8155if ac_fn_c_try_compile "$LINENO"; then : 8156 xorg_cv_cc_flag_unused_command_line_argument=yes 8157else 8158 xorg_cv_cc_flag_unused_command_line_argument=no 8159fi 8160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8161fi 8162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8163$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8164 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8165 CFLAGS="$xorg_testset_save_CFLAGS" 8166fi 8167 8168found="no" 8169 8170 if test $found = "no" ; then 8171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8173 fi 8174 8175 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8177 fi 8178 8179 CFLAGS="$CFLAGS -Wredundant-decls" 8180 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 8182$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 8183 cacheid=xorg_cv_cc_flag__Wredundant_decls 8184 if eval \${$cacheid+:} false; then : 8185 $as_echo_n "(cached) " >&6 8186else 8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8188/* end confdefs.h. */ 8189int i; 8190int 8191main () 8192{ 8193 8194 ; 8195 return 0; 8196} 8197_ACEOF 8198if ac_fn_c_try_link "$LINENO"; then : 8199 eval $cacheid=yes 8200else 8201 eval $cacheid=no 8202fi 8203rm -f core conftest.err conftest.$ac_objext \ 8204 conftest$ac_exeext conftest.$ac_ext 8205fi 8206 8207 8208 CFLAGS="$xorg_testset_save_CFLAGS" 8209 8210 eval supported=\$$cacheid 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8212$as_echo "$supported" >&6; } 8213 if test "$supported" = "yes" ; then 8214 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 8215 found="yes" 8216 fi 8217 fi 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233xorg_testset_save_CFLAGS="$CFLAGS" 8234 8235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8238$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8239if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8240 $as_echo_n "(cached) " >&6 8241else 8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8243/* end confdefs.h. */ 8244int i; 8245_ACEOF 8246if ac_fn_c_try_compile "$LINENO"; then : 8247 xorg_cv_cc_flag_unknown_warning_option=yes 8248else 8249 xorg_cv_cc_flag_unknown_warning_option=no 8250fi 8251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8252fi 8253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8254$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8255 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8256 CFLAGS="$xorg_testset_save_CFLAGS" 8257fi 8258 8259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8262 fi 8263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8265$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8266if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8267 $as_echo_n "(cached) " >&6 8268else 8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8270/* end confdefs.h. */ 8271int i; 8272_ACEOF 8273if ac_fn_c_try_compile "$LINENO"; then : 8274 xorg_cv_cc_flag_unused_command_line_argument=yes 8275else 8276 xorg_cv_cc_flag_unused_command_line_argument=no 8277fi 8278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8279fi 8280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8281$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8282 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8283 CFLAGS="$xorg_testset_save_CFLAGS" 8284fi 8285 8286found="no" 8287 8288 if test $found = "no" ; then 8289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8291 fi 8292 8293 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8295 fi 8296 8297 CFLAGS="$CFLAGS -Wlogical-op" 8298 8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 8300$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 8301 cacheid=xorg_cv_cc_flag__Wlogical_op 8302 if eval \${$cacheid+:} false; then : 8303 $as_echo_n "(cached) " >&6 8304else 8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8306/* end confdefs.h. */ 8307int i; 8308int 8309main () 8310{ 8311 8312 ; 8313 return 0; 8314} 8315_ACEOF 8316if ac_fn_c_try_link "$LINENO"; then : 8317 eval $cacheid=yes 8318else 8319 eval $cacheid=no 8320fi 8321rm -f core conftest.err conftest.$ac_objext \ 8322 conftest$ac_exeext conftest.$ac_ext 8323fi 8324 8325 8326 CFLAGS="$xorg_testset_save_CFLAGS" 8327 8328 eval supported=\$$cacheid 8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8330$as_echo "$supported" >&6; } 8331 if test "$supported" = "yes" ; then 8332 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 8333 found="yes" 8334 fi 8335 fi 8336 8337 8338 8339# These are currently disabled because they are noisy. They will be enabled 8340# in the future once the codebase is sufficiently modernized to silence 8341# them. For now, I don't want them to drown out the other warnings. 8342# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 8343# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 8344# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 8345 8346# Turn some warnings into errors, so we don't accidently get successful builds 8347# when there are problems that should be fixed. 8348 8349if test "x$SELECTIVE_WERROR" = "xyes" ; then 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363xorg_testset_save_CFLAGS="$CFLAGS" 8364 8365if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8368$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8369if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8370 $as_echo_n "(cached) " >&6 8371else 8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8373/* end confdefs.h. */ 8374int i; 8375_ACEOF 8376if ac_fn_c_try_compile "$LINENO"; then : 8377 xorg_cv_cc_flag_unknown_warning_option=yes 8378else 8379 xorg_cv_cc_flag_unknown_warning_option=no 8380fi 8381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8382fi 8383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8384$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8385 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8386 CFLAGS="$xorg_testset_save_CFLAGS" 8387fi 8388 8389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8392 fi 8393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8395$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8396if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8397 $as_echo_n "(cached) " >&6 8398else 8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8400/* end confdefs.h. */ 8401int i; 8402_ACEOF 8403if ac_fn_c_try_compile "$LINENO"; then : 8404 xorg_cv_cc_flag_unused_command_line_argument=yes 8405else 8406 xorg_cv_cc_flag_unused_command_line_argument=no 8407fi 8408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8409fi 8410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8411$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8413 CFLAGS="$xorg_testset_save_CFLAGS" 8414fi 8415 8416found="no" 8417 8418 if test $found = "no" ; then 8419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8421 fi 8422 8423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8425 fi 8426 8427 CFLAGS="$CFLAGS -Werror=implicit" 8428 8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 8430$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 8431 cacheid=xorg_cv_cc_flag__Werror_implicit 8432 if eval \${$cacheid+:} false; then : 8433 $as_echo_n "(cached) " >&6 8434else 8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8436/* end confdefs.h. */ 8437int i; 8438int 8439main () 8440{ 8441 8442 ; 8443 return 0; 8444} 8445_ACEOF 8446if ac_fn_c_try_link "$LINENO"; then : 8447 eval $cacheid=yes 8448else 8449 eval $cacheid=no 8450fi 8451rm -f core conftest.err conftest.$ac_objext \ 8452 conftest$ac_exeext conftest.$ac_ext 8453fi 8454 8455 8456 CFLAGS="$xorg_testset_save_CFLAGS" 8457 8458 eval supported=\$$cacheid 8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8460$as_echo "$supported" >&6; } 8461 if test "$supported" = "yes" ; then 8462 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 8463 found="yes" 8464 fi 8465 fi 8466 8467 if test $found = "no" ; then 8468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8470 fi 8471 8472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8474 fi 8475 8476 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 8477 8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 8479$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 8480 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 8481 if eval \${$cacheid+:} false; then : 8482 $as_echo_n "(cached) " >&6 8483else 8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8485/* end confdefs.h. */ 8486int i; 8487int 8488main () 8489{ 8490 8491 ; 8492 return 0; 8493} 8494_ACEOF 8495if ac_fn_c_try_link "$LINENO"; then : 8496 eval $cacheid=yes 8497else 8498 eval $cacheid=no 8499fi 8500rm -f core conftest.err conftest.$ac_objext \ 8501 conftest$ac_exeext conftest.$ac_ext 8502fi 8503 8504 8505 CFLAGS="$xorg_testset_save_CFLAGS" 8506 8507 eval supported=\$$cacheid 8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8509$as_echo "$supported" >&6; } 8510 if test "$supported" = "yes" ; then 8511 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 8512 found="yes" 8513 fi 8514 fi 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530xorg_testset_save_CFLAGS="$CFLAGS" 8531 8532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8535$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8536if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8537 $as_echo_n "(cached) " >&6 8538else 8539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8540/* end confdefs.h. */ 8541int i; 8542_ACEOF 8543if ac_fn_c_try_compile "$LINENO"; then : 8544 xorg_cv_cc_flag_unknown_warning_option=yes 8545else 8546 xorg_cv_cc_flag_unknown_warning_option=no 8547fi 8548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8549fi 8550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8551$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8553 CFLAGS="$xorg_testset_save_CFLAGS" 8554fi 8555 8556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8559 fi 8560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8562$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8563if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8564 $as_echo_n "(cached) " >&6 8565else 8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8567/* end confdefs.h. */ 8568int i; 8569_ACEOF 8570if ac_fn_c_try_compile "$LINENO"; then : 8571 xorg_cv_cc_flag_unused_command_line_argument=yes 8572else 8573 xorg_cv_cc_flag_unused_command_line_argument=no 8574fi 8575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8576fi 8577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8578$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8580 CFLAGS="$xorg_testset_save_CFLAGS" 8581fi 8582 8583found="no" 8584 8585 if test $found = "no" ; then 8586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8588 fi 8589 8590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8592 fi 8593 8594 CFLAGS="$CFLAGS -Werror=nonnull" 8595 8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 8597$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 8598 cacheid=xorg_cv_cc_flag__Werror_nonnull 8599 if eval \${$cacheid+:} false; then : 8600 $as_echo_n "(cached) " >&6 8601else 8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8603/* end confdefs.h. */ 8604int i; 8605int 8606main () 8607{ 8608 8609 ; 8610 return 0; 8611} 8612_ACEOF 8613if ac_fn_c_try_link "$LINENO"; then : 8614 eval $cacheid=yes 8615else 8616 eval $cacheid=no 8617fi 8618rm -f core conftest.err conftest.$ac_objext \ 8619 conftest$ac_exeext conftest.$ac_ext 8620fi 8621 8622 8623 CFLAGS="$xorg_testset_save_CFLAGS" 8624 8625 eval supported=\$$cacheid 8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8627$as_echo "$supported" >&6; } 8628 if test "$supported" = "yes" ; then 8629 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 8630 found="yes" 8631 fi 8632 fi 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648xorg_testset_save_CFLAGS="$CFLAGS" 8649 8650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8653$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8654if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8655 $as_echo_n "(cached) " >&6 8656else 8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8658/* end confdefs.h. */ 8659int i; 8660_ACEOF 8661if ac_fn_c_try_compile "$LINENO"; then : 8662 xorg_cv_cc_flag_unknown_warning_option=yes 8663else 8664 xorg_cv_cc_flag_unknown_warning_option=no 8665fi 8666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8667fi 8668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8669$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8671 CFLAGS="$xorg_testset_save_CFLAGS" 8672fi 8673 8674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8677 fi 8678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8680$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8681if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8682 $as_echo_n "(cached) " >&6 8683else 8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8685/* end confdefs.h. */ 8686int i; 8687_ACEOF 8688if ac_fn_c_try_compile "$LINENO"; then : 8689 xorg_cv_cc_flag_unused_command_line_argument=yes 8690else 8691 xorg_cv_cc_flag_unused_command_line_argument=no 8692fi 8693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8694fi 8695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8696$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8697 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8698 CFLAGS="$xorg_testset_save_CFLAGS" 8699fi 8700 8701found="no" 8702 8703 if test $found = "no" ; then 8704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8706 fi 8707 8708 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8710 fi 8711 8712 CFLAGS="$CFLAGS -Werror=init-self" 8713 8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 8715$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 8716 cacheid=xorg_cv_cc_flag__Werror_init_self 8717 if eval \${$cacheid+:} false; then : 8718 $as_echo_n "(cached) " >&6 8719else 8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8721/* end confdefs.h. */ 8722int i; 8723int 8724main () 8725{ 8726 8727 ; 8728 return 0; 8729} 8730_ACEOF 8731if ac_fn_c_try_link "$LINENO"; then : 8732 eval $cacheid=yes 8733else 8734 eval $cacheid=no 8735fi 8736rm -f core conftest.err conftest.$ac_objext \ 8737 conftest$ac_exeext conftest.$ac_ext 8738fi 8739 8740 8741 CFLAGS="$xorg_testset_save_CFLAGS" 8742 8743 eval supported=\$$cacheid 8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8745$as_echo "$supported" >&6; } 8746 if test "$supported" = "yes" ; then 8747 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 8748 found="yes" 8749 fi 8750 fi 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766xorg_testset_save_CFLAGS="$CFLAGS" 8767 8768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8771$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8772if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8773 $as_echo_n "(cached) " >&6 8774else 8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8776/* end confdefs.h. */ 8777int i; 8778_ACEOF 8779if ac_fn_c_try_compile "$LINENO"; then : 8780 xorg_cv_cc_flag_unknown_warning_option=yes 8781else 8782 xorg_cv_cc_flag_unknown_warning_option=no 8783fi 8784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8785fi 8786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8787$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8789 CFLAGS="$xorg_testset_save_CFLAGS" 8790fi 8791 8792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8795 fi 8796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8798$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8799if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8800 $as_echo_n "(cached) " >&6 8801else 8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8803/* end confdefs.h. */ 8804int i; 8805_ACEOF 8806if ac_fn_c_try_compile "$LINENO"; then : 8807 xorg_cv_cc_flag_unused_command_line_argument=yes 8808else 8809 xorg_cv_cc_flag_unused_command_line_argument=no 8810fi 8811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8812fi 8813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8814$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8816 CFLAGS="$xorg_testset_save_CFLAGS" 8817fi 8818 8819found="no" 8820 8821 if test $found = "no" ; then 8822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8824 fi 8825 8826 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8828 fi 8829 8830 CFLAGS="$CFLAGS -Werror=main" 8831 8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 8833$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 8834 cacheid=xorg_cv_cc_flag__Werror_main 8835 if eval \${$cacheid+:} false; then : 8836 $as_echo_n "(cached) " >&6 8837else 8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8839/* end confdefs.h. */ 8840int i; 8841int 8842main () 8843{ 8844 8845 ; 8846 return 0; 8847} 8848_ACEOF 8849if ac_fn_c_try_link "$LINENO"; then : 8850 eval $cacheid=yes 8851else 8852 eval $cacheid=no 8853fi 8854rm -f core conftest.err conftest.$ac_objext \ 8855 conftest$ac_exeext conftest.$ac_ext 8856fi 8857 8858 8859 CFLAGS="$xorg_testset_save_CFLAGS" 8860 8861 eval supported=\$$cacheid 8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8863$as_echo "$supported" >&6; } 8864 if test "$supported" = "yes" ; then 8865 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8866 found="yes" 8867 fi 8868 fi 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884xorg_testset_save_CFLAGS="$CFLAGS" 8885 8886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8889$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8890if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8891 $as_echo_n "(cached) " >&6 8892else 8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8894/* end confdefs.h. */ 8895int i; 8896_ACEOF 8897if ac_fn_c_try_compile "$LINENO"; then : 8898 xorg_cv_cc_flag_unknown_warning_option=yes 8899else 8900 xorg_cv_cc_flag_unknown_warning_option=no 8901fi 8902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8903fi 8904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8905$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8907 CFLAGS="$xorg_testset_save_CFLAGS" 8908fi 8909 8910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8913 fi 8914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8916$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8917if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8918 $as_echo_n "(cached) " >&6 8919else 8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8921/* end confdefs.h. */ 8922int i; 8923_ACEOF 8924if ac_fn_c_try_compile "$LINENO"; then : 8925 xorg_cv_cc_flag_unused_command_line_argument=yes 8926else 8927 xorg_cv_cc_flag_unused_command_line_argument=no 8928fi 8929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8930fi 8931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8932$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8934 CFLAGS="$xorg_testset_save_CFLAGS" 8935fi 8936 8937found="no" 8938 8939 if test $found = "no" ; then 8940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8942 fi 8943 8944 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8946 fi 8947 8948 CFLAGS="$CFLAGS -Werror=missing-braces" 8949 8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8951$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 8952 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8953 if eval \${$cacheid+:} false; then : 8954 $as_echo_n "(cached) " >&6 8955else 8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8957/* end confdefs.h. */ 8958int i; 8959int 8960main () 8961{ 8962 8963 ; 8964 return 0; 8965} 8966_ACEOF 8967if ac_fn_c_try_link "$LINENO"; then : 8968 eval $cacheid=yes 8969else 8970 eval $cacheid=no 8971fi 8972rm -f core conftest.err conftest.$ac_objext \ 8973 conftest$ac_exeext conftest.$ac_ext 8974fi 8975 8976 8977 CFLAGS="$xorg_testset_save_CFLAGS" 8978 8979 eval supported=\$$cacheid 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8981$as_echo "$supported" >&6; } 8982 if test "$supported" = "yes" ; then 8983 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8984 found="yes" 8985 fi 8986 fi 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002xorg_testset_save_CFLAGS="$CFLAGS" 9003 9004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9007$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9008if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9009 $as_echo_n "(cached) " >&6 9010else 9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9012/* end confdefs.h. */ 9013int i; 9014_ACEOF 9015if ac_fn_c_try_compile "$LINENO"; then : 9016 xorg_cv_cc_flag_unknown_warning_option=yes 9017else 9018 xorg_cv_cc_flag_unknown_warning_option=no 9019fi 9020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9021fi 9022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9023$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9024 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9025 CFLAGS="$xorg_testset_save_CFLAGS" 9026fi 9027 9028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9031 fi 9032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9034$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9035if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9036 $as_echo_n "(cached) " >&6 9037else 9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9039/* end confdefs.h. */ 9040int i; 9041_ACEOF 9042if ac_fn_c_try_compile "$LINENO"; then : 9043 xorg_cv_cc_flag_unused_command_line_argument=yes 9044else 9045 xorg_cv_cc_flag_unused_command_line_argument=no 9046fi 9047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9048fi 9049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9050$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9052 CFLAGS="$xorg_testset_save_CFLAGS" 9053fi 9054 9055found="no" 9056 9057 if test $found = "no" ; then 9058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9060 fi 9061 9062 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9064 fi 9065 9066 CFLAGS="$CFLAGS -Werror=sequence-point" 9067 9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 9069$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 9070 cacheid=xorg_cv_cc_flag__Werror_sequence_point 9071 if eval \${$cacheid+:} false; then : 9072 $as_echo_n "(cached) " >&6 9073else 9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9075/* end confdefs.h. */ 9076int i; 9077int 9078main () 9079{ 9080 9081 ; 9082 return 0; 9083} 9084_ACEOF 9085if ac_fn_c_try_link "$LINENO"; then : 9086 eval $cacheid=yes 9087else 9088 eval $cacheid=no 9089fi 9090rm -f core conftest.err conftest.$ac_objext \ 9091 conftest$ac_exeext conftest.$ac_ext 9092fi 9093 9094 9095 CFLAGS="$xorg_testset_save_CFLAGS" 9096 9097 eval supported=\$$cacheid 9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9099$as_echo "$supported" >&6; } 9100 if test "$supported" = "yes" ; then 9101 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 9102 found="yes" 9103 fi 9104 fi 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120xorg_testset_save_CFLAGS="$CFLAGS" 9121 9122if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9125$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9126if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9127 $as_echo_n "(cached) " >&6 9128else 9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9130/* end confdefs.h. */ 9131int i; 9132_ACEOF 9133if ac_fn_c_try_compile "$LINENO"; then : 9134 xorg_cv_cc_flag_unknown_warning_option=yes 9135else 9136 xorg_cv_cc_flag_unknown_warning_option=no 9137fi 9138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9139fi 9140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9141$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9142 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9143 CFLAGS="$xorg_testset_save_CFLAGS" 9144fi 9145 9146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9149 fi 9150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9152$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9153if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9154 $as_echo_n "(cached) " >&6 9155else 9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9157/* end confdefs.h. */ 9158int i; 9159_ACEOF 9160if ac_fn_c_try_compile "$LINENO"; then : 9161 xorg_cv_cc_flag_unused_command_line_argument=yes 9162else 9163 xorg_cv_cc_flag_unused_command_line_argument=no 9164fi 9165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9166fi 9167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9168$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9169 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9170 CFLAGS="$xorg_testset_save_CFLAGS" 9171fi 9172 9173found="no" 9174 9175 if test $found = "no" ; then 9176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9178 fi 9179 9180 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9182 fi 9183 9184 CFLAGS="$CFLAGS -Werror=return-type" 9185 9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 9187$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 9188 cacheid=xorg_cv_cc_flag__Werror_return_type 9189 if eval \${$cacheid+:} false; then : 9190 $as_echo_n "(cached) " >&6 9191else 9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9193/* end confdefs.h. */ 9194int i; 9195int 9196main () 9197{ 9198 9199 ; 9200 return 0; 9201} 9202_ACEOF 9203if ac_fn_c_try_link "$LINENO"; then : 9204 eval $cacheid=yes 9205else 9206 eval $cacheid=no 9207fi 9208rm -f core conftest.err conftest.$ac_objext \ 9209 conftest$ac_exeext conftest.$ac_ext 9210fi 9211 9212 9213 CFLAGS="$xorg_testset_save_CFLAGS" 9214 9215 eval supported=\$$cacheid 9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9217$as_echo "$supported" >&6; } 9218 if test "$supported" = "yes" ; then 9219 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 9220 found="yes" 9221 fi 9222 fi 9223 9224 if test $found = "no" ; then 9225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9227 fi 9228 9229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9231 fi 9232 9233 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 9234 9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 9236$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 9237 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 9238 if eval \${$cacheid+:} false; then : 9239 $as_echo_n "(cached) " >&6 9240else 9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9242/* end confdefs.h. */ 9243int i; 9244int 9245main () 9246{ 9247 9248 ; 9249 return 0; 9250} 9251_ACEOF 9252if ac_fn_c_try_link "$LINENO"; then : 9253 eval $cacheid=yes 9254else 9255 eval $cacheid=no 9256fi 9257rm -f core conftest.err conftest.$ac_objext \ 9258 conftest$ac_exeext conftest.$ac_ext 9259fi 9260 9261 9262 CFLAGS="$xorg_testset_save_CFLAGS" 9263 9264 eval supported=\$$cacheid 9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9266$as_echo "$supported" >&6; } 9267 if test "$supported" = "yes" ; then 9268 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 9269 found="yes" 9270 fi 9271 fi 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287xorg_testset_save_CFLAGS="$CFLAGS" 9288 9289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9292$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9293if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9294 $as_echo_n "(cached) " >&6 9295else 9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9297/* end confdefs.h. */ 9298int i; 9299_ACEOF 9300if ac_fn_c_try_compile "$LINENO"; then : 9301 xorg_cv_cc_flag_unknown_warning_option=yes 9302else 9303 xorg_cv_cc_flag_unknown_warning_option=no 9304fi 9305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9306fi 9307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9308$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9310 CFLAGS="$xorg_testset_save_CFLAGS" 9311fi 9312 9313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9316 fi 9317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9319$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9320if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9321 $as_echo_n "(cached) " >&6 9322else 9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9324/* end confdefs.h. */ 9325int i; 9326_ACEOF 9327if ac_fn_c_try_compile "$LINENO"; then : 9328 xorg_cv_cc_flag_unused_command_line_argument=yes 9329else 9330 xorg_cv_cc_flag_unused_command_line_argument=no 9331fi 9332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9333fi 9334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9335$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9337 CFLAGS="$xorg_testset_save_CFLAGS" 9338fi 9339 9340found="no" 9341 9342 if test $found = "no" ; then 9343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9345 fi 9346 9347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9349 fi 9350 9351 CFLAGS="$CFLAGS -Werror=trigraphs" 9352 9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 9354$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 9355 cacheid=xorg_cv_cc_flag__Werror_trigraphs 9356 if eval \${$cacheid+:} false; then : 9357 $as_echo_n "(cached) " >&6 9358else 9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9360/* end confdefs.h. */ 9361int i; 9362int 9363main () 9364{ 9365 9366 ; 9367 return 0; 9368} 9369_ACEOF 9370if ac_fn_c_try_link "$LINENO"; then : 9371 eval $cacheid=yes 9372else 9373 eval $cacheid=no 9374fi 9375rm -f core conftest.err conftest.$ac_objext \ 9376 conftest$ac_exeext conftest.$ac_ext 9377fi 9378 9379 9380 CFLAGS="$xorg_testset_save_CFLAGS" 9381 9382 eval supported=\$$cacheid 9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9384$as_echo "$supported" >&6; } 9385 if test "$supported" = "yes" ; then 9386 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 9387 found="yes" 9388 fi 9389 fi 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405xorg_testset_save_CFLAGS="$CFLAGS" 9406 9407if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9410$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9411if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9412 $as_echo_n "(cached) " >&6 9413else 9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9415/* end confdefs.h. */ 9416int i; 9417_ACEOF 9418if ac_fn_c_try_compile "$LINENO"; then : 9419 xorg_cv_cc_flag_unknown_warning_option=yes 9420else 9421 xorg_cv_cc_flag_unknown_warning_option=no 9422fi 9423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9424fi 9425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9426$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9428 CFLAGS="$xorg_testset_save_CFLAGS" 9429fi 9430 9431if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9434 fi 9435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9437$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9438if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9439 $as_echo_n "(cached) " >&6 9440else 9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9442/* end confdefs.h. */ 9443int i; 9444_ACEOF 9445if ac_fn_c_try_compile "$LINENO"; then : 9446 xorg_cv_cc_flag_unused_command_line_argument=yes 9447else 9448 xorg_cv_cc_flag_unused_command_line_argument=no 9449fi 9450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9451fi 9452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9453$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9455 CFLAGS="$xorg_testset_save_CFLAGS" 9456fi 9457 9458found="no" 9459 9460 if test $found = "no" ; then 9461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9463 fi 9464 9465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9467 fi 9468 9469 CFLAGS="$CFLAGS -Werror=array-bounds" 9470 9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 9472$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 9473 cacheid=xorg_cv_cc_flag__Werror_array_bounds 9474 if eval \${$cacheid+:} false; then : 9475 $as_echo_n "(cached) " >&6 9476else 9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9478/* end confdefs.h. */ 9479int i; 9480int 9481main () 9482{ 9483 9484 ; 9485 return 0; 9486} 9487_ACEOF 9488if ac_fn_c_try_link "$LINENO"; then : 9489 eval $cacheid=yes 9490else 9491 eval $cacheid=no 9492fi 9493rm -f core conftest.err conftest.$ac_objext \ 9494 conftest$ac_exeext conftest.$ac_ext 9495fi 9496 9497 9498 CFLAGS="$xorg_testset_save_CFLAGS" 9499 9500 eval supported=\$$cacheid 9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9502$as_echo "$supported" >&6; } 9503 if test "$supported" = "yes" ; then 9504 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 9505 found="yes" 9506 fi 9507 fi 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523xorg_testset_save_CFLAGS="$CFLAGS" 9524 9525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9528$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9529if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9530 $as_echo_n "(cached) " >&6 9531else 9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9533/* end confdefs.h. */ 9534int i; 9535_ACEOF 9536if ac_fn_c_try_compile "$LINENO"; then : 9537 xorg_cv_cc_flag_unknown_warning_option=yes 9538else 9539 xorg_cv_cc_flag_unknown_warning_option=no 9540fi 9541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9542fi 9543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9544$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9546 CFLAGS="$xorg_testset_save_CFLAGS" 9547fi 9548 9549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9552 fi 9553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9555$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9556if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9557 $as_echo_n "(cached) " >&6 9558else 9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9560/* end confdefs.h. */ 9561int i; 9562_ACEOF 9563if ac_fn_c_try_compile "$LINENO"; then : 9564 xorg_cv_cc_flag_unused_command_line_argument=yes 9565else 9566 xorg_cv_cc_flag_unused_command_line_argument=no 9567fi 9568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9569fi 9570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9571$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9573 CFLAGS="$xorg_testset_save_CFLAGS" 9574fi 9575 9576found="no" 9577 9578 if test $found = "no" ; then 9579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9581 fi 9582 9583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9585 fi 9586 9587 CFLAGS="$CFLAGS -Werror=write-strings" 9588 9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 9590$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 9591 cacheid=xorg_cv_cc_flag__Werror_write_strings 9592 if eval \${$cacheid+:} false; then : 9593 $as_echo_n "(cached) " >&6 9594else 9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9596/* end confdefs.h. */ 9597int i; 9598int 9599main () 9600{ 9601 9602 ; 9603 return 0; 9604} 9605_ACEOF 9606if ac_fn_c_try_link "$LINENO"; then : 9607 eval $cacheid=yes 9608else 9609 eval $cacheid=no 9610fi 9611rm -f core conftest.err conftest.$ac_objext \ 9612 conftest$ac_exeext conftest.$ac_ext 9613fi 9614 9615 9616 CFLAGS="$xorg_testset_save_CFLAGS" 9617 9618 eval supported=\$$cacheid 9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9620$as_echo "$supported" >&6; } 9621 if test "$supported" = "yes" ; then 9622 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 9623 found="yes" 9624 fi 9625 fi 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641xorg_testset_save_CFLAGS="$CFLAGS" 9642 9643if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9646$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9647if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9648 $as_echo_n "(cached) " >&6 9649else 9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9651/* end confdefs.h. */ 9652int i; 9653_ACEOF 9654if ac_fn_c_try_compile "$LINENO"; then : 9655 xorg_cv_cc_flag_unknown_warning_option=yes 9656else 9657 xorg_cv_cc_flag_unknown_warning_option=no 9658fi 9659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9660fi 9661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9662$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9664 CFLAGS="$xorg_testset_save_CFLAGS" 9665fi 9666 9667if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9670 fi 9671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9673$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9674if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9675 $as_echo_n "(cached) " >&6 9676else 9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9678/* end confdefs.h. */ 9679int i; 9680_ACEOF 9681if ac_fn_c_try_compile "$LINENO"; then : 9682 xorg_cv_cc_flag_unused_command_line_argument=yes 9683else 9684 xorg_cv_cc_flag_unused_command_line_argument=no 9685fi 9686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9687fi 9688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9689$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9691 CFLAGS="$xorg_testset_save_CFLAGS" 9692fi 9693 9694found="no" 9695 9696 if test $found = "no" ; then 9697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9699 fi 9700 9701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9703 fi 9704 9705 CFLAGS="$CFLAGS -Werror=address" 9706 9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 9708$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 9709 cacheid=xorg_cv_cc_flag__Werror_address 9710 if eval \${$cacheid+:} false; then : 9711 $as_echo_n "(cached) " >&6 9712else 9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9714/* end confdefs.h. */ 9715int i; 9716int 9717main () 9718{ 9719 9720 ; 9721 return 0; 9722} 9723_ACEOF 9724if ac_fn_c_try_link "$LINENO"; then : 9725 eval $cacheid=yes 9726else 9727 eval $cacheid=no 9728fi 9729rm -f core conftest.err conftest.$ac_objext \ 9730 conftest$ac_exeext conftest.$ac_ext 9731fi 9732 9733 9734 CFLAGS="$xorg_testset_save_CFLAGS" 9735 9736 eval supported=\$$cacheid 9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9738$as_echo "$supported" >&6; } 9739 if test "$supported" = "yes" ; then 9740 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 9741 found="yes" 9742 fi 9743 fi 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759xorg_testset_save_CFLAGS="$CFLAGS" 9760 9761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9764$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9765if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9766 $as_echo_n "(cached) " >&6 9767else 9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9769/* end confdefs.h. */ 9770int i; 9771_ACEOF 9772if ac_fn_c_try_compile "$LINENO"; then : 9773 xorg_cv_cc_flag_unknown_warning_option=yes 9774else 9775 xorg_cv_cc_flag_unknown_warning_option=no 9776fi 9777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9778fi 9779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9780$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9782 CFLAGS="$xorg_testset_save_CFLAGS" 9783fi 9784 9785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9788 fi 9789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9791$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9792if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9793 $as_echo_n "(cached) " >&6 9794else 9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9796/* end confdefs.h. */ 9797int i; 9798_ACEOF 9799if ac_fn_c_try_compile "$LINENO"; then : 9800 xorg_cv_cc_flag_unused_command_line_argument=yes 9801else 9802 xorg_cv_cc_flag_unused_command_line_argument=no 9803fi 9804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9805fi 9806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9807$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9809 CFLAGS="$xorg_testset_save_CFLAGS" 9810fi 9811 9812found="no" 9813 9814 if test $found = "no" ; then 9815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9817 fi 9818 9819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9821 fi 9822 9823 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9824 9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9826$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9827 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9828 if eval \${$cacheid+:} false; then : 9829 $as_echo_n "(cached) " >&6 9830else 9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9832/* end confdefs.h. */ 9833int i; 9834int 9835main () 9836{ 9837 9838 ; 9839 return 0; 9840} 9841_ACEOF 9842if ac_fn_c_try_link "$LINENO"; then : 9843 eval $cacheid=yes 9844else 9845 eval $cacheid=no 9846fi 9847rm -f core conftest.err conftest.$ac_objext \ 9848 conftest$ac_exeext conftest.$ac_ext 9849fi 9850 9851 9852 CFLAGS="$xorg_testset_save_CFLAGS" 9853 9854 eval supported=\$$cacheid 9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9856$as_echo "$supported" >&6; } 9857 if test "$supported" = "yes" ; then 9858 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9859 found="yes" 9860 fi 9861 fi 9862 9863 if test $found = "no" ; then 9864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9866 fi 9867 9868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9870 fi 9871 9872 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9873 9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9875$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9876 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9877 if eval \${$cacheid+:} false; then : 9878 $as_echo_n "(cached) " >&6 9879else 9880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9881/* end confdefs.h. */ 9882int i; 9883int 9884main () 9885{ 9886 9887 ; 9888 return 0; 9889} 9890_ACEOF 9891if ac_fn_c_try_link "$LINENO"; then : 9892 eval $cacheid=yes 9893else 9894 eval $cacheid=no 9895fi 9896rm -f core conftest.err conftest.$ac_objext \ 9897 conftest$ac_exeext conftest.$ac_ext 9898fi 9899 9900 9901 CFLAGS="$xorg_testset_save_CFLAGS" 9902 9903 eval supported=\$$cacheid 9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9905$as_echo "$supported" >&6; } 9906 if test "$supported" = "yes" ; then 9907 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9908 found="yes" 9909 fi 9910 fi 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926xorg_testset_save_CFLAGS="$CFLAGS" 9927 9928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9931$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9932if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9933 $as_echo_n "(cached) " >&6 9934else 9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9936/* end confdefs.h. */ 9937int i; 9938_ACEOF 9939if ac_fn_c_try_compile "$LINENO"; then : 9940 xorg_cv_cc_flag_unknown_warning_option=yes 9941else 9942 xorg_cv_cc_flag_unknown_warning_option=no 9943fi 9944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9945fi 9946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9947$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9949 CFLAGS="$xorg_testset_save_CFLAGS" 9950fi 9951 9952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9955 fi 9956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9958$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9959if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9960 $as_echo_n "(cached) " >&6 9961else 9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9963/* end confdefs.h. */ 9964int i; 9965_ACEOF 9966if ac_fn_c_try_compile "$LINENO"; then : 9967 xorg_cv_cc_flag_unused_command_line_argument=yes 9968else 9969 xorg_cv_cc_flag_unused_command_line_argument=no 9970fi 9971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9972fi 9973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9974$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9976 CFLAGS="$xorg_testset_save_CFLAGS" 9977fi 9978 9979found="no" 9980 9981 if test $found = "no" ; then 9982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9984 fi 9985 9986 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9988 fi 9989 9990 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9991 9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9993$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9994 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9995 if eval \${$cacheid+:} false; then : 9996 $as_echo_n "(cached) " >&6 9997else 9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9999/* end confdefs.h. */ 10000int i; 10001int 10002main () 10003{ 10004 10005 ; 10006 return 0; 10007} 10008_ACEOF 10009if ac_fn_c_try_link "$LINENO"; then : 10010 eval $cacheid=yes 10011else 10012 eval $cacheid=no 10013fi 10014rm -f core conftest.err conftest.$ac_objext \ 10015 conftest$ac_exeext conftest.$ac_ext 10016fi 10017 10018 10019 CFLAGS="$xorg_testset_save_CFLAGS" 10020 10021 eval supported=\$$cacheid 10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10023$as_echo "$supported" >&6; } 10024 if test "$supported" = "yes" ; then 10025 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 10026 found="yes" 10027 fi 10028 fi 10029 10030 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 10031else 10032{ $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 10033$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;} 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047xorg_testset_save_CFLAGS="$CFLAGS" 10048 10049if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10052$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10053if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10054 $as_echo_n "(cached) " >&6 10055else 10056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10057/* end confdefs.h. */ 10058int i; 10059_ACEOF 10060if ac_fn_c_try_compile "$LINENO"; then : 10061 xorg_cv_cc_flag_unknown_warning_option=yes 10062else 10063 xorg_cv_cc_flag_unknown_warning_option=no 10064fi 10065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10066fi 10067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10068$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10070 CFLAGS="$xorg_testset_save_CFLAGS" 10071fi 10072 10073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10076 fi 10077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10079$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10080if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10081 $as_echo_n "(cached) " >&6 10082else 10083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10084/* end confdefs.h. */ 10085int i; 10086_ACEOF 10087if ac_fn_c_try_compile "$LINENO"; then : 10088 xorg_cv_cc_flag_unused_command_line_argument=yes 10089else 10090 xorg_cv_cc_flag_unused_command_line_argument=no 10091fi 10092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10093fi 10094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10095$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10097 CFLAGS="$xorg_testset_save_CFLAGS" 10098fi 10099 10100found="no" 10101 10102 if test $found = "no" ; then 10103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10105 fi 10106 10107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10109 fi 10110 10111 CFLAGS="$CFLAGS -Wimplicit" 10112 10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 10114$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 10115 cacheid=xorg_cv_cc_flag__Wimplicit 10116 if eval \${$cacheid+:} false; then : 10117 $as_echo_n "(cached) " >&6 10118else 10119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10120/* end confdefs.h. */ 10121int i; 10122int 10123main () 10124{ 10125 10126 ; 10127 return 0; 10128} 10129_ACEOF 10130if ac_fn_c_try_link "$LINENO"; then : 10131 eval $cacheid=yes 10132else 10133 eval $cacheid=no 10134fi 10135rm -f core conftest.err conftest.$ac_objext \ 10136 conftest$ac_exeext conftest.$ac_ext 10137fi 10138 10139 10140 CFLAGS="$xorg_testset_save_CFLAGS" 10141 10142 eval supported=\$$cacheid 10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10144$as_echo "$supported" >&6; } 10145 if test "$supported" = "yes" ; then 10146 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 10147 found="yes" 10148 fi 10149 fi 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165xorg_testset_save_CFLAGS="$CFLAGS" 10166 10167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10170$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10171if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10172 $as_echo_n "(cached) " >&6 10173else 10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10175/* end confdefs.h. */ 10176int i; 10177_ACEOF 10178if ac_fn_c_try_compile "$LINENO"; then : 10179 xorg_cv_cc_flag_unknown_warning_option=yes 10180else 10181 xorg_cv_cc_flag_unknown_warning_option=no 10182fi 10183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10184fi 10185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10186$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10188 CFLAGS="$xorg_testset_save_CFLAGS" 10189fi 10190 10191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10194 fi 10195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10197$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10198if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10199 $as_echo_n "(cached) " >&6 10200else 10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10202/* end confdefs.h. */ 10203int i; 10204_ACEOF 10205if ac_fn_c_try_compile "$LINENO"; then : 10206 xorg_cv_cc_flag_unused_command_line_argument=yes 10207else 10208 xorg_cv_cc_flag_unused_command_line_argument=no 10209fi 10210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10211fi 10212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10213$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10215 CFLAGS="$xorg_testset_save_CFLAGS" 10216fi 10217 10218found="no" 10219 10220 if test $found = "no" ; then 10221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10223 fi 10224 10225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10227 fi 10228 10229 CFLAGS="$CFLAGS -Wnonnull" 10230 10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 10232$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 10233 cacheid=xorg_cv_cc_flag__Wnonnull 10234 if eval \${$cacheid+:} false; then : 10235 $as_echo_n "(cached) " >&6 10236else 10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10238/* end confdefs.h. */ 10239int i; 10240int 10241main () 10242{ 10243 10244 ; 10245 return 0; 10246} 10247_ACEOF 10248if ac_fn_c_try_link "$LINENO"; then : 10249 eval $cacheid=yes 10250else 10251 eval $cacheid=no 10252fi 10253rm -f core conftest.err conftest.$ac_objext \ 10254 conftest$ac_exeext conftest.$ac_ext 10255fi 10256 10257 10258 CFLAGS="$xorg_testset_save_CFLAGS" 10259 10260 eval supported=\$$cacheid 10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10262$as_echo "$supported" >&6; } 10263 if test "$supported" = "yes" ; then 10264 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 10265 found="yes" 10266 fi 10267 fi 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283xorg_testset_save_CFLAGS="$CFLAGS" 10284 10285if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10288$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10289if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10290 $as_echo_n "(cached) " >&6 10291else 10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10293/* end confdefs.h. */ 10294int i; 10295_ACEOF 10296if ac_fn_c_try_compile "$LINENO"; then : 10297 xorg_cv_cc_flag_unknown_warning_option=yes 10298else 10299 xorg_cv_cc_flag_unknown_warning_option=no 10300fi 10301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10302fi 10303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10304$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10306 CFLAGS="$xorg_testset_save_CFLAGS" 10307fi 10308 10309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10312 fi 10313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10315$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10316if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10317 $as_echo_n "(cached) " >&6 10318else 10319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10320/* end confdefs.h. */ 10321int i; 10322_ACEOF 10323if ac_fn_c_try_compile "$LINENO"; then : 10324 xorg_cv_cc_flag_unused_command_line_argument=yes 10325else 10326 xorg_cv_cc_flag_unused_command_line_argument=no 10327fi 10328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10329fi 10330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10331$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10332 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10333 CFLAGS="$xorg_testset_save_CFLAGS" 10334fi 10335 10336found="no" 10337 10338 if test $found = "no" ; then 10339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10341 fi 10342 10343 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10345 fi 10346 10347 CFLAGS="$CFLAGS -Winit-self" 10348 10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 10350$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 10351 cacheid=xorg_cv_cc_flag__Winit_self 10352 if eval \${$cacheid+:} false; then : 10353 $as_echo_n "(cached) " >&6 10354else 10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10356/* end confdefs.h. */ 10357int i; 10358int 10359main () 10360{ 10361 10362 ; 10363 return 0; 10364} 10365_ACEOF 10366if ac_fn_c_try_link "$LINENO"; then : 10367 eval $cacheid=yes 10368else 10369 eval $cacheid=no 10370fi 10371rm -f core conftest.err conftest.$ac_objext \ 10372 conftest$ac_exeext conftest.$ac_ext 10373fi 10374 10375 10376 CFLAGS="$xorg_testset_save_CFLAGS" 10377 10378 eval supported=\$$cacheid 10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10380$as_echo "$supported" >&6; } 10381 if test "$supported" = "yes" ; then 10382 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 10383 found="yes" 10384 fi 10385 fi 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401xorg_testset_save_CFLAGS="$CFLAGS" 10402 10403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10406$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10407if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10408 $as_echo_n "(cached) " >&6 10409else 10410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10411/* end confdefs.h. */ 10412int i; 10413_ACEOF 10414if ac_fn_c_try_compile "$LINENO"; then : 10415 xorg_cv_cc_flag_unknown_warning_option=yes 10416else 10417 xorg_cv_cc_flag_unknown_warning_option=no 10418fi 10419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10420fi 10421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10422$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10424 CFLAGS="$xorg_testset_save_CFLAGS" 10425fi 10426 10427if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10430 fi 10431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10433$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10434if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10435 $as_echo_n "(cached) " >&6 10436else 10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10438/* end confdefs.h. */ 10439int i; 10440_ACEOF 10441if ac_fn_c_try_compile "$LINENO"; then : 10442 xorg_cv_cc_flag_unused_command_line_argument=yes 10443else 10444 xorg_cv_cc_flag_unused_command_line_argument=no 10445fi 10446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10447fi 10448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10449$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10451 CFLAGS="$xorg_testset_save_CFLAGS" 10452fi 10453 10454found="no" 10455 10456 if test $found = "no" ; then 10457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10459 fi 10460 10461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10463 fi 10464 10465 CFLAGS="$CFLAGS -Wmain" 10466 10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 10468$as_echo_n "checking if $CC supports -Wmain... " >&6; } 10469 cacheid=xorg_cv_cc_flag__Wmain 10470 if eval \${$cacheid+:} false; then : 10471 $as_echo_n "(cached) " >&6 10472else 10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10474/* end confdefs.h. */ 10475int i; 10476int 10477main () 10478{ 10479 10480 ; 10481 return 0; 10482} 10483_ACEOF 10484if ac_fn_c_try_link "$LINENO"; then : 10485 eval $cacheid=yes 10486else 10487 eval $cacheid=no 10488fi 10489rm -f core conftest.err conftest.$ac_objext \ 10490 conftest$ac_exeext conftest.$ac_ext 10491fi 10492 10493 10494 CFLAGS="$xorg_testset_save_CFLAGS" 10495 10496 eval supported=\$$cacheid 10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10498$as_echo "$supported" >&6; } 10499 if test "$supported" = "yes" ; then 10500 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 10501 found="yes" 10502 fi 10503 fi 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519xorg_testset_save_CFLAGS="$CFLAGS" 10520 10521if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10524$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10525if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10526 $as_echo_n "(cached) " >&6 10527else 10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10529/* end confdefs.h. */ 10530int i; 10531_ACEOF 10532if ac_fn_c_try_compile "$LINENO"; then : 10533 xorg_cv_cc_flag_unknown_warning_option=yes 10534else 10535 xorg_cv_cc_flag_unknown_warning_option=no 10536fi 10537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10538fi 10539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10540$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10542 CFLAGS="$xorg_testset_save_CFLAGS" 10543fi 10544 10545if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10548 fi 10549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10551$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10552if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10553 $as_echo_n "(cached) " >&6 10554else 10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10556/* end confdefs.h. */ 10557int i; 10558_ACEOF 10559if ac_fn_c_try_compile "$LINENO"; then : 10560 xorg_cv_cc_flag_unused_command_line_argument=yes 10561else 10562 xorg_cv_cc_flag_unused_command_line_argument=no 10563fi 10564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10565fi 10566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10567$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10568 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10569 CFLAGS="$xorg_testset_save_CFLAGS" 10570fi 10571 10572found="no" 10573 10574 if test $found = "no" ; then 10575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10577 fi 10578 10579 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10581 fi 10582 10583 CFLAGS="$CFLAGS -Wmissing-braces" 10584 10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 10586$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 10587 cacheid=xorg_cv_cc_flag__Wmissing_braces 10588 if eval \${$cacheid+:} false; then : 10589 $as_echo_n "(cached) " >&6 10590else 10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10592/* end confdefs.h. */ 10593int i; 10594int 10595main () 10596{ 10597 10598 ; 10599 return 0; 10600} 10601_ACEOF 10602if ac_fn_c_try_link "$LINENO"; then : 10603 eval $cacheid=yes 10604else 10605 eval $cacheid=no 10606fi 10607rm -f core conftest.err conftest.$ac_objext \ 10608 conftest$ac_exeext conftest.$ac_ext 10609fi 10610 10611 10612 CFLAGS="$xorg_testset_save_CFLAGS" 10613 10614 eval supported=\$$cacheid 10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10616$as_echo "$supported" >&6; } 10617 if test "$supported" = "yes" ; then 10618 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 10619 found="yes" 10620 fi 10621 fi 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637xorg_testset_save_CFLAGS="$CFLAGS" 10638 10639if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10642$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10643if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10644 $as_echo_n "(cached) " >&6 10645else 10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10647/* end confdefs.h. */ 10648int i; 10649_ACEOF 10650if ac_fn_c_try_compile "$LINENO"; then : 10651 xorg_cv_cc_flag_unknown_warning_option=yes 10652else 10653 xorg_cv_cc_flag_unknown_warning_option=no 10654fi 10655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10656fi 10657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10658$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10660 CFLAGS="$xorg_testset_save_CFLAGS" 10661fi 10662 10663if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10666 fi 10667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10669$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10670if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10671 $as_echo_n "(cached) " >&6 10672else 10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10674/* end confdefs.h. */ 10675int i; 10676_ACEOF 10677if ac_fn_c_try_compile "$LINENO"; then : 10678 xorg_cv_cc_flag_unused_command_line_argument=yes 10679else 10680 xorg_cv_cc_flag_unused_command_line_argument=no 10681fi 10682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10683fi 10684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10685$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10687 CFLAGS="$xorg_testset_save_CFLAGS" 10688fi 10689 10690found="no" 10691 10692 if test $found = "no" ; then 10693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10695 fi 10696 10697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10699 fi 10700 10701 CFLAGS="$CFLAGS -Wsequence-point" 10702 10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10704$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 10705 cacheid=xorg_cv_cc_flag__Wsequence_point 10706 if eval \${$cacheid+:} false; then : 10707 $as_echo_n "(cached) " >&6 10708else 10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10710/* end confdefs.h. */ 10711int i; 10712int 10713main () 10714{ 10715 10716 ; 10717 return 0; 10718} 10719_ACEOF 10720if ac_fn_c_try_link "$LINENO"; then : 10721 eval $cacheid=yes 10722else 10723 eval $cacheid=no 10724fi 10725rm -f core conftest.err conftest.$ac_objext \ 10726 conftest$ac_exeext conftest.$ac_ext 10727fi 10728 10729 10730 CFLAGS="$xorg_testset_save_CFLAGS" 10731 10732 eval supported=\$$cacheid 10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10734$as_echo "$supported" >&6; } 10735 if test "$supported" = "yes" ; then 10736 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10737 found="yes" 10738 fi 10739 fi 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755xorg_testset_save_CFLAGS="$CFLAGS" 10756 10757if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10760$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10761if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10762 $as_echo_n "(cached) " >&6 10763else 10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10765/* end confdefs.h. */ 10766int i; 10767_ACEOF 10768if ac_fn_c_try_compile "$LINENO"; then : 10769 xorg_cv_cc_flag_unknown_warning_option=yes 10770else 10771 xorg_cv_cc_flag_unknown_warning_option=no 10772fi 10773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10774fi 10775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10776$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10777 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10778 CFLAGS="$xorg_testset_save_CFLAGS" 10779fi 10780 10781if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10784 fi 10785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10787$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10788if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10789 $as_echo_n "(cached) " >&6 10790else 10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10792/* end confdefs.h. */ 10793int i; 10794_ACEOF 10795if ac_fn_c_try_compile "$LINENO"; then : 10796 xorg_cv_cc_flag_unused_command_line_argument=yes 10797else 10798 xorg_cv_cc_flag_unused_command_line_argument=no 10799fi 10800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10801fi 10802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10803$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10804 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10805 CFLAGS="$xorg_testset_save_CFLAGS" 10806fi 10807 10808found="no" 10809 10810 if test $found = "no" ; then 10811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10813 fi 10814 10815 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10817 fi 10818 10819 CFLAGS="$CFLAGS -Wreturn-type" 10820 10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10822$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 10823 cacheid=xorg_cv_cc_flag__Wreturn_type 10824 if eval \${$cacheid+:} false; then : 10825 $as_echo_n "(cached) " >&6 10826else 10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10828/* end confdefs.h. */ 10829int i; 10830int 10831main () 10832{ 10833 10834 ; 10835 return 0; 10836} 10837_ACEOF 10838if ac_fn_c_try_link "$LINENO"; then : 10839 eval $cacheid=yes 10840else 10841 eval $cacheid=no 10842fi 10843rm -f core conftest.err conftest.$ac_objext \ 10844 conftest$ac_exeext conftest.$ac_ext 10845fi 10846 10847 10848 CFLAGS="$xorg_testset_save_CFLAGS" 10849 10850 eval supported=\$$cacheid 10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10852$as_echo "$supported" >&6; } 10853 if test "$supported" = "yes" ; then 10854 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10855 found="yes" 10856 fi 10857 fi 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873xorg_testset_save_CFLAGS="$CFLAGS" 10874 10875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10878$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10879if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10880 $as_echo_n "(cached) " >&6 10881else 10882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10883/* end confdefs.h. */ 10884int i; 10885_ACEOF 10886if ac_fn_c_try_compile "$LINENO"; then : 10887 xorg_cv_cc_flag_unknown_warning_option=yes 10888else 10889 xorg_cv_cc_flag_unknown_warning_option=no 10890fi 10891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10892fi 10893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10894$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10895 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10896 CFLAGS="$xorg_testset_save_CFLAGS" 10897fi 10898 10899if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10902 fi 10903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10905$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10906if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10907 $as_echo_n "(cached) " >&6 10908else 10909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10910/* end confdefs.h. */ 10911int i; 10912_ACEOF 10913if ac_fn_c_try_compile "$LINENO"; then : 10914 xorg_cv_cc_flag_unused_command_line_argument=yes 10915else 10916 xorg_cv_cc_flag_unused_command_line_argument=no 10917fi 10918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10919fi 10920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10921$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10922 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10923 CFLAGS="$xorg_testset_save_CFLAGS" 10924fi 10925 10926found="no" 10927 10928 if test $found = "no" ; then 10929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10931 fi 10932 10933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10935 fi 10936 10937 CFLAGS="$CFLAGS -Wtrigraphs" 10938 10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10940$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 10941 cacheid=xorg_cv_cc_flag__Wtrigraphs 10942 if eval \${$cacheid+:} false; then : 10943 $as_echo_n "(cached) " >&6 10944else 10945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10946/* end confdefs.h. */ 10947int i; 10948int 10949main () 10950{ 10951 10952 ; 10953 return 0; 10954} 10955_ACEOF 10956if ac_fn_c_try_link "$LINENO"; then : 10957 eval $cacheid=yes 10958else 10959 eval $cacheid=no 10960fi 10961rm -f core conftest.err conftest.$ac_objext \ 10962 conftest$ac_exeext conftest.$ac_ext 10963fi 10964 10965 10966 CFLAGS="$xorg_testset_save_CFLAGS" 10967 10968 eval supported=\$$cacheid 10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10970$as_echo "$supported" >&6; } 10971 if test "$supported" = "yes" ; then 10972 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10973 found="yes" 10974 fi 10975 fi 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991xorg_testset_save_CFLAGS="$CFLAGS" 10992 10993if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10996$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10997if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10998 $as_echo_n "(cached) " >&6 10999else 11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11001/* end confdefs.h. */ 11002int i; 11003_ACEOF 11004if ac_fn_c_try_compile "$LINENO"; then : 11005 xorg_cv_cc_flag_unknown_warning_option=yes 11006else 11007 xorg_cv_cc_flag_unknown_warning_option=no 11008fi 11009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11010fi 11011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11012$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11013 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11014 CFLAGS="$xorg_testset_save_CFLAGS" 11015fi 11016 11017if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11020 fi 11021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11023$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11024if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11025 $as_echo_n "(cached) " >&6 11026else 11027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11028/* end confdefs.h. */ 11029int i; 11030_ACEOF 11031if ac_fn_c_try_compile "$LINENO"; then : 11032 xorg_cv_cc_flag_unused_command_line_argument=yes 11033else 11034 xorg_cv_cc_flag_unused_command_line_argument=no 11035fi 11036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11037fi 11038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11039$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11040 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11041 CFLAGS="$xorg_testset_save_CFLAGS" 11042fi 11043 11044found="no" 11045 11046 if test $found = "no" ; then 11047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11049 fi 11050 11051 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11053 fi 11054 11055 CFLAGS="$CFLAGS -Warray-bounds" 11056 11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 11058$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 11059 cacheid=xorg_cv_cc_flag__Warray_bounds 11060 if eval \${$cacheid+:} false; then : 11061 $as_echo_n "(cached) " >&6 11062else 11063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11064/* end confdefs.h. */ 11065int i; 11066int 11067main () 11068{ 11069 11070 ; 11071 return 0; 11072} 11073_ACEOF 11074if ac_fn_c_try_link "$LINENO"; then : 11075 eval $cacheid=yes 11076else 11077 eval $cacheid=no 11078fi 11079rm -f core conftest.err conftest.$ac_objext \ 11080 conftest$ac_exeext conftest.$ac_ext 11081fi 11082 11083 11084 CFLAGS="$xorg_testset_save_CFLAGS" 11085 11086 eval supported=\$$cacheid 11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11088$as_echo "$supported" >&6; } 11089 if test "$supported" = "yes" ; then 11090 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 11091 found="yes" 11092 fi 11093 fi 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109xorg_testset_save_CFLAGS="$CFLAGS" 11110 11111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11114$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11115if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11116 $as_echo_n "(cached) " >&6 11117else 11118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11119/* end confdefs.h. */ 11120int i; 11121_ACEOF 11122if ac_fn_c_try_compile "$LINENO"; then : 11123 xorg_cv_cc_flag_unknown_warning_option=yes 11124else 11125 xorg_cv_cc_flag_unknown_warning_option=no 11126fi 11127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11128fi 11129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11130$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11131 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11132 CFLAGS="$xorg_testset_save_CFLAGS" 11133fi 11134 11135if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11138 fi 11139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11141$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11142if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11143 $as_echo_n "(cached) " >&6 11144else 11145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11146/* end confdefs.h. */ 11147int i; 11148_ACEOF 11149if ac_fn_c_try_compile "$LINENO"; then : 11150 xorg_cv_cc_flag_unused_command_line_argument=yes 11151else 11152 xorg_cv_cc_flag_unused_command_line_argument=no 11153fi 11154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11155fi 11156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11157$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11158 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11159 CFLAGS="$xorg_testset_save_CFLAGS" 11160fi 11161 11162found="no" 11163 11164 if test $found = "no" ; then 11165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11167 fi 11168 11169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11171 fi 11172 11173 CFLAGS="$CFLAGS -Wwrite-strings" 11174 11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 11176$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 11177 cacheid=xorg_cv_cc_flag__Wwrite_strings 11178 if eval \${$cacheid+:} false; then : 11179 $as_echo_n "(cached) " >&6 11180else 11181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11182/* end confdefs.h. */ 11183int i; 11184int 11185main () 11186{ 11187 11188 ; 11189 return 0; 11190} 11191_ACEOF 11192if ac_fn_c_try_link "$LINENO"; then : 11193 eval $cacheid=yes 11194else 11195 eval $cacheid=no 11196fi 11197rm -f core conftest.err conftest.$ac_objext \ 11198 conftest$ac_exeext conftest.$ac_ext 11199fi 11200 11201 11202 CFLAGS="$xorg_testset_save_CFLAGS" 11203 11204 eval supported=\$$cacheid 11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11206$as_echo "$supported" >&6; } 11207 if test "$supported" = "yes" ; then 11208 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 11209 found="yes" 11210 fi 11211 fi 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227xorg_testset_save_CFLAGS="$CFLAGS" 11228 11229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11232$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11233if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11234 $as_echo_n "(cached) " >&6 11235else 11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11237/* end confdefs.h. */ 11238int i; 11239_ACEOF 11240if ac_fn_c_try_compile "$LINENO"; then : 11241 xorg_cv_cc_flag_unknown_warning_option=yes 11242else 11243 xorg_cv_cc_flag_unknown_warning_option=no 11244fi 11245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11246fi 11247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11248$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11250 CFLAGS="$xorg_testset_save_CFLAGS" 11251fi 11252 11253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11256 fi 11257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11259$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11260if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11261 $as_echo_n "(cached) " >&6 11262else 11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11264/* end confdefs.h. */ 11265int i; 11266_ACEOF 11267if ac_fn_c_try_compile "$LINENO"; then : 11268 xorg_cv_cc_flag_unused_command_line_argument=yes 11269else 11270 xorg_cv_cc_flag_unused_command_line_argument=no 11271fi 11272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11273fi 11274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11275$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11276 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11277 CFLAGS="$xorg_testset_save_CFLAGS" 11278fi 11279 11280found="no" 11281 11282 if test $found = "no" ; then 11283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11285 fi 11286 11287 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11289 fi 11290 11291 CFLAGS="$CFLAGS -Waddress" 11292 11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 11294$as_echo_n "checking if $CC supports -Waddress... " >&6; } 11295 cacheid=xorg_cv_cc_flag__Waddress 11296 if eval \${$cacheid+:} false; then : 11297 $as_echo_n "(cached) " >&6 11298else 11299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11300/* end confdefs.h. */ 11301int i; 11302int 11303main () 11304{ 11305 11306 ; 11307 return 0; 11308} 11309_ACEOF 11310if ac_fn_c_try_link "$LINENO"; then : 11311 eval $cacheid=yes 11312else 11313 eval $cacheid=no 11314fi 11315rm -f core conftest.err conftest.$ac_objext \ 11316 conftest$ac_exeext conftest.$ac_ext 11317fi 11318 11319 11320 CFLAGS="$xorg_testset_save_CFLAGS" 11321 11322 eval supported=\$$cacheid 11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11324$as_echo "$supported" >&6; } 11325 if test "$supported" = "yes" ; then 11326 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 11327 found="yes" 11328 fi 11329 fi 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345xorg_testset_save_CFLAGS="$CFLAGS" 11346 11347if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11350$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11351if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11352 $as_echo_n "(cached) " >&6 11353else 11354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11355/* end confdefs.h. */ 11356int i; 11357_ACEOF 11358if ac_fn_c_try_compile "$LINENO"; then : 11359 xorg_cv_cc_flag_unknown_warning_option=yes 11360else 11361 xorg_cv_cc_flag_unknown_warning_option=no 11362fi 11363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11364fi 11365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11366$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11367 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11368 CFLAGS="$xorg_testset_save_CFLAGS" 11369fi 11370 11371if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11374 fi 11375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11377$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11378if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11379 $as_echo_n "(cached) " >&6 11380else 11381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11382/* end confdefs.h. */ 11383int i; 11384_ACEOF 11385if ac_fn_c_try_compile "$LINENO"; then : 11386 xorg_cv_cc_flag_unused_command_line_argument=yes 11387else 11388 xorg_cv_cc_flag_unused_command_line_argument=no 11389fi 11390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11391fi 11392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11393$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11394 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11395 CFLAGS="$xorg_testset_save_CFLAGS" 11396fi 11397 11398found="no" 11399 11400 if test $found = "no" ; then 11401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11403 fi 11404 11405 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11407 fi 11408 11409 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 11410 11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 11412$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 11413 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 11414 if eval \${$cacheid+:} false; then : 11415 $as_echo_n "(cached) " >&6 11416else 11417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11418/* end confdefs.h. */ 11419int i; 11420int 11421main () 11422{ 11423 11424 ; 11425 return 0; 11426} 11427_ACEOF 11428if ac_fn_c_try_link "$LINENO"; then : 11429 eval $cacheid=yes 11430else 11431 eval $cacheid=no 11432fi 11433rm -f core conftest.err conftest.$ac_objext \ 11434 conftest$ac_exeext conftest.$ac_ext 11435fi 11436 11437 11438 CFLAGS="$xorg_testset_save_CFLAGS" 11439 11440 eval supported=\$$cacheid 11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11442$as_echo "$supported" >&6; } 11443 if test "$supported" = "yes" ; then 11444 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 11445 found="yes" 11446 fi 11447 fi 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463xorg_testset_save_CFLAGS="$CFLAGS" 11464 11465if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11468$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11469if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11470 $as_echo_n "(cached) " >&6 11471else 11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11473/* end confdefs.h. */ 11474int i; 11475_ACEOF 11476if ac_fn_c_try_compile "$LINENO"; then : 11477 xorg_cv_cc_flag_unknown_warning_option=yes 11478else 11479 xorg_cv_cc_flag_unknown_warning_option=no 11480fi 11481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11482fi 11483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11484$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11486 CFLAGS="$xorg_testset_save_CFLAGS" 11487fi 11488 11489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11492 fi 11493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11495$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11496if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11497 $as_echo_n "(cached) " >&6 11498else 11499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11500/* end confdefs.h. */ 11501int i; 11502_ACEOF 11503if ac_fn_c_try_compile "$LINENO"; then : 11504 xorg_cv_cc_flag_unused_command_line_argument=yes 11505else 11506 xorg_cv_cc_flag_unused_command_line_argument=no 11507fi 11508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11509fi 11510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11511$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11513 CFLAGS="$xorg_testset_save_CFLAGS" 11514fi 11515 11516found="no" 11517 11518 if test $found = "no" ; then 11519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11521 fi 11522 11523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11525 fi 11526 11527 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 11528 11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 11530$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 11531 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 11532 if eval \${$cacheid+:} false; then : 11533 $as_echo_n "(cached) " >&6 11534else 11535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11536/* end confdefs.h. */ 11537int i; 11538int 11539main () 11540{ 11541 11542 ; 11543 return 0; 11544} 11545_ACEOF 11546if ac_fn_c_try_link "$LINENO"; then : 11547 eval $cacheid=yes 11548else 11549 eval $cacheid=no 11550fi 11551rm -f core conftest.err conftest.$ac_objext \ 11552 conftest$ac_exeext conftest.$ac_ext 11553fi 11554 11555 11556 CFLAGS="$xorg_testset_save_CFLAGS" 11557 11558 eval supported=\$$cacheid 11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11560$as_echo "$supported" >&6; } 11561 if test "$supported" = "yes" ; then 11562 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 11563 found="yes" 11564 fi 11565 fi 11566 11567 11568fi 11569 11570 11571 11572 11573 11574 11575 11576 CWARNFLAGS="$BASE_CFLAGS" 11577 if test "x$GCC" = xyes ; then 11578 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 11579 fi 11580 11581 11582 11583 11584 11585 11586 11587 11588# Check whether --enable-strict-compilation was given. 11589if test "${enable_strict_compilation+set}" = set; then : 11590 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11591else 11592 STRICT_COMPILE=no 11593fi 11594 11595 11596 11597 11598 11599 11600STRICT_CFLAGS="" 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614xorg_testset_save_CFLAGS="$CFLAGS" 11615 11616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11619$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11620if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11621 $as_echo_n "(cached) " >&6 11622else 11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11624/* end confdefs.h. */ 11625int i; 11626_ACEOF 11627if ac_fn_c_try_compile "$LINENO"; then : 11628 xorg_cv_cc_flag_unknown_warning_option=yes 11629else 11630 xorg_cv_cc_flag_unknown_warning_option=no 11631fi 11632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11633fi 11634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11635$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11637 CFLAGS="$xorg_testset_save_CFLAGS" 11638fi 11639 11640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11643 fi 11644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11646$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11647if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11648 $as_echo_n "(cached) " >&6 11649else 11650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11651/* end confdefs.h. */ 11652int i; 11653_ACEOF 11654if ac_fn_c_try_compile "$LINENO"; then : 11655 xorg_cv_cc_flag_unused_command_line_argument=yes 11656else 11657 xorg_cv_cc_flag_unused_command_line_argument=no 11658fi 11659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11660fi 11661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11662$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11664 CFLAGS="$xorg_testset_save_CFLAGS" 11665fi 11666 11667found="no" 11668 11669 if test $found = "no" ; then 11670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11672 fi 11673 11674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11676 fi 11677 11678 CFLAGS="$CFLAGS -pedantic" 11679 11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11681$as_echo_n "checking if $CC supports -pedantic... " >&6; } 11682 cacheid=xorg_cv_cc_flag__pedantic 11683 if eval \${$cacheid+:} false; then : 11684 $as_echo_n "(cached) " >&6 11685else 11686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11687/* end confdefs.h. */ 11688int i; 11689int 11690main () 11691{ 11692 11693 ; 11694 return 0; 11695} 11696_ACEOF 11697if ac_fn_c_try_link "$LINENO"; then : 11698 eval $cacheid=yes 11699else 11700 eval $cacheid=no 11701fi 11702rm -f core conftest.err conftest.$ac_objext \ 11703 conftest$ac_exeext conftest.$ac_ext 11704fi 11705 11706 11707 CFLAGS="$xorg_testset_save_CFLAGS" 11708 11709 eval supported=\$$cacheid 11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11711$as_echo "$supported" >&6; } 11712 if test "$supported" = "yes" ; then 11713 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11714 found="yes" 11715 fi 11716 fi 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732xorg_testset_save_CFLAGS="$CFLAGS" 11733 11734if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11737$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11738if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11739 $as_echo_n "(cached) " >&6 11740else 11741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11742/* end confdefs.h. */ 11743int i; 11744_ACEOF 11745if ac_fn_c_try_compile "$LINENO"; then : 11746 xorg_cv_cc_flag_unknown_warning_option=yes 11747else 11748 xorg_cv_cc_flag_unknown_warning_option=no 11749fi 11750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11751fi 11752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11753$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11754 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11755 CFLAGS="$xorg_testset_save_CFLAGS" 11756fi 11757 11758if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11761 fi 11762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11764$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11765if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11766 $as_echo_n "(cached) " >&6 11767else 11768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11769/* end confdefs.h. */ 11770int i; 11771_ACEOF 11772if ac_fn_c_try_compile "$LINENO"; then : 11773 xorg_cv_cc_flag_unused_command_line_argument=yes 11774else 11775 xorg_cv_cc_flag_unused_command_line_argument=no 11776fi 11777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11778fi 11779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11780$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11782 CFLAGS="$xorg_testset_save_CFLAGS" 11783fi 11784 11785found="no" 11786 11787 if test $found = "no" ; then 11788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11790 fi 11791 11792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11794 fi 11795 11796 CFLAGS="$CFLAGS -Werror" 11797 11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11799$as_echo_n "checking if $CC supports -Werror... " >&6; } 11800 cacheid=xorg_cv_cc_flag__Werror 11801 if eval \${$cacheid+:} false; then : 11802 $as_echo_n "(cached) " >&6 11803else 11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11805/* end confdefs.h. */ 11806int i; 11807int 11808main () 11809{ 11810 11811 ; 11812 return 0; 11813} 11814_ACEOF 11815if ac_fn_c_try_link "$LINENO"; then : 11816 eval $cacheid=yes 11817else 11818 eval $cacheid=no 11819fi 11820rm -f core conftest.err conftest.$ac_objext \ 11821 conftest$ac_exeext conftest.$ac_ext 11822fi 11823 11824 11825 CFLAGS="$xorg_testset_save_CFLAGS" 11826 11827 eval supported=\$$cacheid 11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11829$as_echo "$supported" >&6; } 11830 if test "$supported" = "yes" ; then 11831 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11832 found="yes" 11833 fi 11834 fi 11835 11836 if test $found = "no" ; then 11837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11839 fi 11840 11841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11843 fi 11844 11845 CFLAGS="$CFLAGS -errwarn" 11846 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11848$as_echo_n "checking if $CC supports -errwarn... " >&6; } 11849 cacheid=xorg_cv_cc_flag__errwarn 11850 if eval \${$cacheid+:} false; then : 11851 $as_echo_n "(cached) " >&6 11852else 11853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11854/* end confdefs.h. */ 11855int i; 11856int 11857main () 11858{ 11859 11860 ; 11861 return 0; 11862} 11863_ACEOF 11864if ac_fn_c_try_link "$LINENO"; then : 11865 eval $cacheid=yes 11866else 11867 eval $cacheid=no 11868fi 11869rm -f core conftest.err conftest.$ac_objext \ 11870 conftest$ac_exeext conftest.$ac_ext 11871fi 11872 11873 11874 CFLAGS="$xorg_testset_save_CFLAGS" 11875 11876 eval supported=\$$cacheid 11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11878$as_echo "$supported" >&6; } 11879 if test "$supported" = "yes" ; then 11880 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11881 found="yes" 11882 fi 11883 fi 11884 11885 11886 11887# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11888# activate it with -Werror, so we add it here explicitly. 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902xorg_testset_save_CFLAGS="$CFLAGS" 11903 11904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11907$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11908if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11909 $as_echo_n "(cached) " >&6 11910else 11911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11912/* end confdefs.h. */ 11913int i; 11914_ACEOF 11915if ac_fn_c_try_compile "$LINENO"; then : 11916 xorg_cv_cc_flag_unknown_warning_option=yes 11917else 11918 xorg_cv_cc_flag_unknown_warning_option=no 11919fi 11920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11921fi 11922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11923$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11925 CFLAGS="$xorg_testset_save_CFLAGS" 11926fi 11927 11928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11931 fi 11932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11934$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11935if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11936 $as_echo_n "(cached) " >&6 11937else 11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11939/* end confdefs.h. */ 11940int i; 11941_ACEOF 11942if ac_fn_c_try_compile "$LINENO"; then : 11943 xorg_cv_cc_flag_unused_command_line_argument=yes 11944else 11945 xorg_cv_cc_flag_unused_command_line_argument=no 11946fi 11947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11948fi 11949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11950$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11952 CFLAGS="$xorg_testset_save_CFLAGS" 11953fi 11954 11955found="no" 11956 11957 if test $found = "no" ; then 11958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11960 fi 11961 11962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11964 fi 11965 11966 CFLAGS="$CFLAGS -Werror=attributes" 11967 11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11969$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 11970 cacheid=xorg_cv_cc_flag__Werror_attributes 11971 if eval \${$cacheid+:} false; then : 11972 $as_echo_n "(cached) " >&6 11973else 11974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11975/* end confdefs.h. */ 11976int i; 11977int 11978main () 11979{ 11980 11981 ; 11982 return 0; 11983} 11984_ACEOF 11985if ac_fn_c_try_link "$LINENO"; then : 11986 eval $cacheid=yes 11987else 11988 eval $cacheid=no 11989fi 11990rm -f core conftest.err conftest.$ac_objext \ 11991 conftest$ac_exeext conftest.$ac_ext 11992fi 11993 11994 11995 CFLAGS="$xorg_testset_save_CFLAGS" 11996 11997 eval supported=\$$cacheid 11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11999$as_echo "$supported" >&6; } 12000 if test "$supported" = "yes" ; then 12001 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 12002 found="yes" 12003 fi 12004 fi 12005 12006 12007 12008if test "x$STRICT_COMPILE" = "xyes"; then 12009 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 12010 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 12011fi 12012 12013 12014 12015 12016 12017 12018cat >>confdefs.h <<_ACEOF 12019#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 12020_ACEOF 12021 12022 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 12023 if test "x$PVM" = "x"; then 12024 PVM="0" 12025 fi 12026 12027cat >>confdefs.h <<_ACEOF 12028#define PACKAGE_VERSION_MINOR $PVM 12029_ACEOF 12030 12031 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 12032 if test "x$PVP" = "x"; then 12033 PVP="0" 12034 fi 12035 12036cat >>confdefs.h <<_ACEOF 12037#define PACKAGE_VERSION_PATCHLEVEL $PVP 12038_ACEOF 12039 12040 12041 12042CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 12043mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 12044|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 12045touch \$(top_srcdir)/ChangeLog; \ 12046echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 12047 12048 12049 12050 12051macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 12052INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 12053mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 12054|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 12055touch \$(top_srcdir)/INSTALL; \ 12056echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 12057 12058 12059 12060 12061 12062 12063case $host_os in 12064 solaris*) 12065 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 12066 # check for a man page file found in later versions that use 12067 # traditional section numbers instead 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 12069$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 12070if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 12071 $as_echo_n "(cached) " >&6 12072else 12073 test "$cross_compiling" = yes && 12074 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 12075if test -r "/usr/share/man/man7/attributes.7"; then 12076 ac_cv_file__usr_share_man_man7_attributes_7=yes 12077else 12078 ac_cv_file__usr_share_man_man7_attributes_7=no 12079fi 12080fi 12081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 12082$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 12083if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 12084 SYSV_MAN_SECTIONS=false 12085else 12086 SYSV_MAN_SECTIONS=true 12087fi 12088 12089 ;; 12090 *) SYSV_MAN_SECTIONS=false ;; 12091esac 12092 12093if test x$APP_MAN_SUFFIX = x ; then 12094 APP_MAN_SUFFIX=1 12095fi 12096if test x$APP_MAN_DIR = x ; then 12097 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 12098fi 12099 12100if test x$LIB_MAN_SUFFIX = x ; then 12101 LIB_MAN_SUFFIX=3 12102fi 12103if test x$LIB_MAN_DIR = x ; then 12104 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 12105fi 12106 12107if test x$FILE_MAN_SUFFIX = x ; then 12108 case $SYSV_MAN_SECTIONS in 12109 true) FILE_MAN_SUFFIX=4 ;; 12110 *) FILE_MAN_SUFFIX=5 ;; 12111 esac 12112fi 12113if test x$FILE_MAN_DIR = x ; then 12114 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 12115fi 12116 12117if test x$MISC_MAN_SUFFIX = x ; then 12118 case $SYSV_MAN_SECTIONS in 12119 true) MISC_MAN_SUFFIX=5 ;; 12120 *) MISC_MAN_SUFFIX=7 ;; 12121 esac 12122fi 12123if test x$MISC_MAN_DIR = x ; then 12124 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 12125fi 12126 12127if test x$DRIVER_MAN_SUFFIX = x ; then 12128 case $SYSV_MAN_SECTIONS in 12129 true) DRIVER_MAN_SUFFIX=7 ;; 12130 *) DRIVER_MAN_SUFFIX=4 ;; 12131 esac 12132fi 12133if test x$DRIVER_MAN_DIR = x ; then 12134 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 12135fi 12136 12137if test x$ADMIN_MAN_SUFFIX = x ; then 12138 case $SYSV_MAN_SECTIONS in 12139 true) ADMIN_MAN_SUFFIX=1m ;; 12140 *) ADMIN_MAN_SUFFIX=8 ;; 12141 esac 12142fi 12143if test x$ADMIN_MAN_DIR = x ; then 12144 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 12145fi 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161XORG_MAN_PAGE="X Version 11" 12162 12163MAN_SUBSTS="\ 12164 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 12165 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 12166 -e 's|__xservername__|Xorg|g' \ 12167 -e 's|__xconfigfile__|xorg.conf|g' \ 12168 -e 's|__projectroot__|\$(prefix)|g' \ 12169 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 12170 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 12171 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 12172 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 12173 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 12174 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 12175 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 12176 12177 12178 12179# Check whether --enable-silent-rules was given. 12180if test "${enable_silent_rules+set}" = set; then : 12181 enableval=$enable_silent_rules; 12182fi 12183 12184case $enable_silent_rules in # ((( 12185 yes) AM_DEFAULT_VERBOSITY=0;; 12186 no) AM_DEFAULT_VERBOSITY=1;; 12187 *) AM_DEFAULT_VERBOSITY=0;; 12188esac 12189am_make=${MAKE-make} 12190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 12191$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 12192if ${am_cv_make_support_nested_variables+:} false; then : 12193 $as_echo_n "(cached) " >&6 12194else 12195 if $as_echo 'TRUE=$(BAR$(V)) 12196BAR0=false 12197BAR1=true 12198V=1 12199am__doit: 12200 @$(TRUE) 12201.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 12202 am_cv_make_support_nested_variables=yes 12203else 12204 am_cv_make_support_nested_variables=no 12205fi 12206fi 12207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 12208$as_echo "$am_cv_make_support_nested_variables" >&6; } 12209if test $am_cv_make_support_nested_variables = yes; then 12210 AM_V='$(V)' 12211 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12212else 12213 AM_V=$AM_DEFAULT_VERBOSITY 12214 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12215fi 12216AM_BACKSLASH='\' 12217 12218 12219 12220 12221 12222 12223 12224# Check whether --with-doxygen was given. 12225if test "${with_doxygen+set}" = set; then : 12226 withval=$with_doxygen; use_doxygen=$withval 12227else 12228 use_doxygen=auto 12229fi 12230 12231 12232 12233if test "x$use_doxygen" = x"auto"; then 12234 # Extract the first word of "doxygen", so it can be a program name with args. 12235set dummy doxygen; ac_word=$2 12236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12237$as_echo_n "checking for $ac_word... " >&6; } 12238if ${ac_cv_path_DOXYGEN+:} false; then : 12239 $as_echo_n "(cached) " >&6 12240else 12241 case $DOXYGEN in 12242 [\\/]* | ?:[\\/]*) 12243 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 12244 ;; 12245 *) 12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12247for as_dir in $PATH 12248do 12249 IFS=$as_save_IFS 12250 test -z "$as_dir" && as_dir=. 12251 for ac_exec_ext in '' $ac_executable_extensions; do 12252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12253 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 12254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12255 break 2 12256 fi 12257done 12258 done 12259IFS=$as_save_IFS 12260 12261 ;; 12262esac 12263fi 12264DOXYGEN=$ac_cv_path_DOXYGEN 12265if test -n "$DOXYGEN"; then 12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 12267$as_echo "$DOXYGEN" >&6; } 12268else 12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12270$as_echo "no" >&6; } 12271fi 12272 12273 12274 if test "x$DOXYGEN" = "x"; then 12275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5 12276$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;} 12277 have_doxygen=no 12278 else 12279 have_doxygen=yes 12280 fi 12281elif test "x$use_doxygen" = x"yes" ; then 12282 # Extract the first word of "doxygen", so it can be a program name with args. 12283set dummy doxygen; ac_word=$2 12284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12285$as_echo_n "checking for $ac_word... " >&6; } 12286if ${ac_cv_path_DOXYGEN+:} false; then : 12287 $as_echo_n "(cached) " >&6 12288else 12289 case $DOXYGEN in 12290 [\\/]* | ?:[\\/]*) 12291 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 12292 ;; 12293 *) 12294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12295for as_dir in $PATH 12296do 12297 IFS=$as_save_IFS 12298 test -z "$as_dir" && as_dir=. 12299 for ac_exec_ext in '' $ac_executable_extensions; do 12300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12301 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 12302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12303 break 2 12304 fi 12305done 12306 done 12307IFS=$as_save_IFS 12308 12309 ;; 12310esac 12311fi 12312DOXYGEN=$ac_cv_path_DOXYGEN 12313if test -n "$DOXYGEN"; then 12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 12315$as_echo "$DOXYGEN" >&6; } 12316else 12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12318$as_echo "no" >&6; } 12319fi 12320 12321 12322 if test "x$DOXYGEN" = "x"; then 12323 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5 12324 fi 12325 have_doxygen=yes 12326elif test "x$use_doxygen" = x"no" ; then 12327 if test "x$DOXYGEN" != "x"; then 12328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5 12329$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;} 12330 fi 12331 have_doxygen=no 12332else 12333 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5 12334fi 12335if test "$have_doxygen" = yes; then 12336 # scrape the doxygen version 12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5 12338$as_echo_n "checking the doxygen version... " >&6; } 12339 doxygen_version=`$DOXYGEN --version 2>/dev/null` 12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5 12341$as_echo "$doxygen_version" >&6; } 12342 as_arg_v1=$doxygen_version 12343as_arg_v2=1.6.1 12344awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 12345case $? in #( 12346 1) : 12347 if test "x$use_doxygen" = xauto; then 12348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5 12349$as_echo "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;} 12350 have_doxygen=no 12351 else 12352 as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5 12353 fi ;; #( 12354 0) : 12355 ;; #( 12356 2) : 12357 ;; #( 12358 *) : 12359 ;; 12360esac 12361fi 12362 12363HAVE_DOT=no 12364if test "x$have_doxygen" = "xyes"; then 12365 # Extract the first word of "dot", so it can be a program name with args. 12366set dummy dot; ac_word=$2 12367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12368$as_echo_n "checking for $ac_word... " >&6; } 12369if ${ac_cv_path_DOT+:} false; then : 12370 $as_echo_n "(cached) " >&6 12371else 12372 case $DOT in 12373 [\\/]* | ?:[\\/]*) 12374 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 12375 ;; 12376 *) 12377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12378for as_dir in $PATH 12379do 12380 IFS=$as_save_IFS 12381 test -z "$as_dir" && as_dir=. 12382 for ac_exec_ext in '' $ac_executable_extensions; do 12383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12384 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 12385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12386 break 2 12387 fi 12388done 12389 done 12390IFS=$as_save_IFS 12391 12392 ;; 12393esac 12394fi 12395DOT=$ac_cv_path_DOT 12396if test -n "$DOT"; then 12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 12398$as_echo "$DOT" >&6; } 12399else 12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12401$as_echo "no" >&6; } 12402fi 12403 12404 12405 if test "x$DOT" != "x"; then 12406 HAVE_DOT=yes 12407 fi 12408fi 12409 12410 12411 if test "$HAVE_DOT" = "yes"; then 12412 HAVE_DOT_TRUE= 12413 HAVE_DOT_FALSE='#' 12414else 12415 HAVE_DOT_TRUE='#' 12416 HAVE_DOT_FALSE= 12417fi 12418 12419 if test "$have_doxygen" = yes; then 12420 HAVE_DOXYGEN_TRUE= 12421 HAVE_DOXYGEN_FALSE='#' 12422else 12423 HAVE_DOXYGEN_TRUE='#' 12424 HAVE_DOXYGEN_FALSE= 12425fi 12426 12427 12428 12429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 12430$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } 12431XORG_SGML_PATH= 12432if test -n "$PKG_CONFIG" && \ 12433 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 12434 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 12435 ac_status=$? 12436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12437 test $ac_status = 0; }; then 12438 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 12439else 12440 : 12441 12442fi 12443 12444# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 12445# the path and the name of the doc stylesheet 12446if test "x$XORG_SGML_PATH" != "x" ; then 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 12448$as_echo "$XORG_SGML_PATH" >&6; } 12449 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 12450 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 12451else 12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12453$as_echo "no" >&6; } 12454fi 12455 12456 12457 12458 12459 if test "x$XSL_STYLESHEET" != "x"; then 12460 HAVE_STYLESHEETS_TRUE= 12461 HAVE_STYLESHEETS_FALSE='#' 12462else 12463 HAVE_STYLESHEETS_TRUE='#' 12464 HAVE_STYLESHEETS_FALSE= 12465fi 12466 12467 12468 12469 12470# Check whether --enable-docs was given. 12471if test "${enable_docs+set}" = set; then : 12472 enableval=$enable_docs; build_docs=$enableval 12473else 12474 build_docs=yes 12475fi 12476 12477 12478 if test x$build_docs = xyes; then 12479 ENABLE_DOCS_TRUE= 12480 ENABLE_DOCS_FALSE='#' 12481else 12482 ENABLE_DOCS_TRUE='#' 12483 ENABLE_DOCS_FALSE= 12484fi 12485 12486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 12487$as_echo_n "checking whether to build documentation... " >&6; } 12488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 12489$as_echo "$build_docs" >&6; } 12490 12491 12492 12493# Check whether --enable-devel-docs was given. 12494if test "${enable_devel_docs+set}" = set; then : 12495 enableval=$enable_devel_docs; build_devel_docs=$enableval 12496else 12497 build_devel_docs=yes 12498fi 12499 12500 12501 if test x$build_devel_docs = xyes; then 12502 ENABLE_DEVEL_DOCS_TRUE= 12503 ENABLE_DEVEL_DOCS_FALSE='#' 12504else 12505 ENABLE_DEVEL_DOCS_TRUE='#' 12506 ENABLE_DEVEL_DOCS_FALSE= 12507fi 12508 12509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 12510$as_echo_n "checking whether to build developer documentation... " >&6; } 12511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 12512$as_echo "$build_devel_docs" >&6; } 12513 12514 12515 12516 12517 12518# Check whether --with-xmlto was given. 12519if test "${with_xmlto+set}" = set; then : 12520 withval=$with_xmlto; use_xmlto=$withval 12521else 12522 use_xmlto=auto 12523fi 12524 12525 12526 12527if test "x$use_xmlto" = x"auto"; then 12528 # Extract the first word of "xmlto", so it can be a program name with args. 12529set dummy xmlto; ac_word=$2 12530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12531$as_echo_n "checking for $ac_word... " >&6; } 12532if ${ac_cv_path_XMLTO+:} false; then : 12533 $as_echo_n "(cached) " >&6 12534else 12535 case $XMLTO in 12536 [\\/]* | ?:[\\/]*) 12537 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 12538 ;; 12539 *) 12540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12541for as_dir in $PATH 12542do 12543 IFS=$as_save_IFS 12544 test -z "$as_dir" && as_dir=. 12545 for ac_exec_ext in '' $ac_executable_extensions; do 12546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12547 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 12548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12549 break 2 12550 fi 12551done 12552 done 12553IFS=$as_save_IFS 12554 12555 ;; 12556esac 12557fi 12558XMLTO=$ac_cv_path_XMLTO 12559if test -n "$XMLTO"; then 12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 12561$as_echo "$XMLTO" >&6; } 12562else 12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12564$as_echo "no" >&6; } 12565fi 12566 12567 12568 if test "x$XMLTO" = "x"; then 12569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 12570$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 12571 have_xmlto=no 12572 else 12573 have_xmlto=yes 12574 fi 12575elif test "x$use_xmlto" = x"yes" ; then 12576 # Extract the first word of "xmlto", so it can be a program name with args. 12577set dummy xmlto; ac_word=$2 12578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12579$as_echo_n "checking for $ac_word... " >&6; } 12580if ${ac_cv_path_XMLTO+:} false; then : 12581 $as_echo_n "(cached) " >&6 12582else 12583 case $XMLTO in 12584 [\\/]* | ?:[\\/]*) 12585 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 12586 ;; 12587 *) 12588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12589for as_dir in $PATH 12590do 12591 IFS=$as_save_IFS 12592 test -z "$as_dir" && as_dir=. 12593 for ac_exec_ext in '' $ac_executable_extensions; do 12594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12595 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 12596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12597 break 2 12598 fi 12599done 12600 done 12601IFS=$as_save_IFS 12602 12603 ;; 12604esac 12605fi 12606XMLTO=$ac_cv_path_XMLTO 12607if test -n "$XMLTO"; then 12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 12609$as_echo "$XMLTO" >&6; } 12610else 12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12612$as_echo "no" >&6; } 12613fi 12614 12615 12616 if test "x$XMLTO" = "x"; then 12617 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 12618 fi 12619 have_xmlto=yes 12620elif test "x$use_xmlto" = x"no" ; then 12621 if test "x$XMLTO" != "x"; then 12622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 12623$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 12624 fi 12625 have_xmlto=no 12626else 12627 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 12628fi 12629 12630# Test for a minimum version of xmlto, if provided. 12631if test "$have_xmlto" = yes; then 12632 # scrape the xmlto version 12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 12634$as_echo_n "checking the xmlto version... " >&6; } 12635 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 12637$as_echo "$xmlto_version" >&6; } 12638 as_arg_v1=$xmlto_version 12639as_arg_v2=0.0.20 12640awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 12641case $? in #( 12642 1) : 12643 if test "x$use_xmlto" = xauto; then 12644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 12645$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 12646 have_xmlto=no 12647 else 12648 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 12649 fi ;; #( 12650 0) : 12651 ;; #( 12652 2) : 12653 ;; #( 12654 *) : 12655 ;; 12656esac 12657fi 12658 12659# Test for the ability of xmlto to generate a text target 12660# 12661# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 12662# following test for empty XML docbook files. 12663# For compatibility reasons use the following empty XML docbook file and if 12664# it fails try it again with a non-empty XML file. 12665have_xmlto_text=no 12666cat > conftest.xml << "EOF" 12667EOF 12668if test "$have_xmlto" = yes; then : 12669 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 12670 have_xmlto_text=yes 12671else 12672 # Try it again with a non-empty XML file. 12673 cat > conftest.xml << "EOF" 12674<x></x> 12675EOF 12676 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 12677 have_xmlto_text=yes 12678else 12679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 12680$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 12681fi 12682fi 12683fi 12684rm -f conftest.xml 12685 if test $have_xmlto_text = yes; then 12686 HAVE_XMLTO_TEXT_TRUE= 12687 HAVE_XMLTO_TEXT_FALSE='#' 12688else 12689 HAVE_XMLTO_TEXT_TRUE='#' 12690 HAVE_XMLTO_TEXT_FALSE= 12691fi 12692 12693 if test "$have_xmlto" = yes; then 12694 HAVE_XMLTO_TRUE= 12695 HAVE_XMLTO_FALSE='#' 12696else 12697 HAVE_XMLTO_TRUE='#' 12698 HAVE_XMLTO_FALSE= 12699fi 12700 12701 12702 12703 12704 12705 12706# Check whether --with-fop was given. 12707if test "${with_fop+set}" = set; then : 12708 withval=$with_fop; use_fop=$withval 12709else 12710 use_fop=auto 12711fi 12712 12713 12714 12715if test "x$use_fop" = x"auto"; then 12716 # Extract the first word of "fop", so it can be a program name with args. 12717set dummy fop; ac_word=$2 12718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12719$as_echo_n "checking for $ac_word... " >&6; } 12720if ${ac_cv_path_FOP+:} false; then : 12721 $as_echo_n "(cached) " >&6 12722else 12723 case $FOP in 12724 [\\/]* | ?:[\\/]*) 12725 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 12726 ;; 12727 *) 12728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12729for as_dir in $PATH 12730do 12731 IFS=$as_save_IFS 12732 test -z "$as_dir" && as_dir=. 12733 for ac_exec_ext in '' $ac_executable_extensions; do 12734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12735 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 12736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12737 break 2 12738 fi 12739done 12740 done 12741IFS=$as_save_IFS 12742 12743 ;; 12744esac 12745fi 12746FOP=$ac_cv_path_FOP 12747if test -n "$FOP"; then 12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 12749$as_echo "$FOP" >&6; } 12750else 12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12752$as_echo "no" >&6; } 12753fi 12754 12755 12756 if test "x$FOP" = "x"; then 12757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 12758$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 12759 have_fop=no 12760 else 12761 have_fop=yes 12762 fi 12763elif test "x$use_fop" = x"yes" ; then 12764 # Extract the first word of "fop", so it can be a program name with args. 12765set dummy fop; ac_word=$2 12766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12767$as_echo_n "checking for $ac_word... " >&6; } 12768if ${ac_cv_path_FOP+:} false; then : 12769 $as_echo_n "(cached) " >&6 12770else 12771 case $FOP in 12772 [\\/]* | ?:[\\/]*) 12773 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 12774 ;; 12775 *) 12776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12777for as_dir in $PATH 12778do 12779 IFS=$as_save_IFS 12780 test -z "$as_dir" && as_dir=. 12781 for ac_exec_ext in '' $ac_executable_extensions; do 12782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12783 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 12784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12785 break 2 12786 fi 12787done 12788 done 12789IFS=$as_save_IFS 12790 12791 ;; 12792esac 12793fi 12794FOP=$ac_cv_path_FOP 12795if test -n "$FOP"; then 12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 12797$as_echo "$FOP" >&6; } 12798else 12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12800$as_echo "no" >&6; } 12801fi 12802 12803 12804 if test "x$FOP" = "x"; then 12805 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 12806 fi 12807 have_fop=yes 12808elif test "x$use_fop" = x"no" ; then 12809 if test "x$FOP" != "x"; then 12810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 12811$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 12812 fi 12813 have_fop=no 12814else 12815 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 12816fi 12817 12818# Test for a minimum version of fop, if provided. 12819 12820 if test "$have_fop" = yes; then 12821 HAVE_FOP_TRUE= 12822 HAVE_FOP_FALSE='#' 12823else 12824 HAVE_FOP_TRUE='#' 12825 HAVE_FOP_FALSE= 12826fi 12827 12828 12829 12830 12831# Preserves the interface, should it be implemented later 12832 12833 12834 12835# Check whether --with-xsltproc was given. 12836if test "${with_xsltproc+set}" = set; then : 12837 withval=$with_xsltproc; use_xsltproc=$withval 12838else 12839 use_xsltproc=auto 12840fi 12841 12842 12843 12844if test "x$use_xsltproc" = x"auto"; then 12845 # Extract the first word of "xsltproc", so it can be a program name with args. 12846set dummy xsltproc; ac_word=$2 12847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12848$as_echo_n "checking for $ac_word... " >&6; } 12849if ${ac_cv_path_XSLTPROC+:} false; then : 12850 $as_echo_n "(cached) " >&6 12851else 12852 case $XSLTPROC in 12853 [\\/]* | ?:[\\/]*) 12854 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 12855 ;; 12856 *) 12857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12858for as_dir in $PATH 12859do 12860 IFS=$as_save_IFS 12861 test -z "$as_dir" && as_dir=. 12862 for ac_exec_ext in '' $ac_executable_extensions; do 12863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12864 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 12865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12866 break 2 12867 fi 12868done 12869 done 12870IFS=$as_save_IFS 12871 12872 ;; 12873esac 12874fi 12875XSLTPROC=$ac_cv_path_XSLTPROC 12876if test -n "$XSLTPROC"; then 12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 12878$as_echo "$XSLTPROC" >&6; } 12879else 12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12881$as_echo "no" >&6; } 12882fi 12883 12884 12885 if test "x$XSLTPROC" = "x"; then 12886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 12887$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 12888 have_xsltproc=no 12889 else 12890 have_xsltproc=yes 12891 fi 12892elif test "x$use_xsltproc" = x"yes" ; then 12893 # Extract the first word of "xsltproc", so it can be a program name with args. 12894set dummy xsltproc; ac_word=$2 12895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12896$as_echo_n "checking for $ac_word... " >&6; } 12897if ${ac_cv_path_XSLTPROC+:} false; then : 12898 $as_echo_n "(cached) " >&6 12899else 12900 case $XSLTPROC in 12901 [\\/]* | ?:[\\/]*) 12902 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 12903 ;; 12904 *) 12905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12906for as_dir in $PATH 12907do 12908 IFS=$as_save_IFS 12909 test -z "$as_dir" && as_dir=. 12910 for ac_exec_ext in '' $ac_executable_extensions; do 12911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12912 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 12913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12914 break 2 12915 fi 12916done 12917 done 12918IFS=$as_save_IFS 12919 12920 ;; 12921esac 12922fi 12923XSLTPROC=$ac_cv_path_XSLTPROC 12924if test -n "$XSLTPROC"; then 12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 12926$as_echo "$XSLTPROC" >&6; } 12927else 12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12929$as_echo "no" >&6; } 12930fi 12931 12932 12933 if test "x$XSLTPROC" = "x"; then 12934 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 12935 fi 12936 have_xsltproc=yes 12937elif test "x$use_xsltproc" = x"no" ; then 12938 if test "x$XSLTPROC" != "x"; then 12939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 12940$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 12941 fi 12942 have_xsltproc=no 12943else 12944 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 12945fi 12946 12947 if test "$have_xsltproc" = yes; then 12948 HAVE_XSLTPROC_TRUE= 12949 HAVE_XSLTPROC_FALSE='#' 12950else 12951 HAVE_XSLTPROC_TRUE='#' 12952 HAVE_XSLTPROC_FALSE= 12953fi 12954 12955 12956 12957 12958 12959 12960 12961# Check for different types of support on different platforms 12962case $host_os in 12963 solaris*) 12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 12965$as_echo_n "checking for umem_alloc in -lumem... " >&6; } 12966if ${ac_cv_lib_umem_umem_alloc+:} false; then : 12967 $as_echo_n "(cached) " >&6 12968else 12969 ac_check_lib_save_LIBS=$LIBS 12970LIBS="-lumem $LIBS" 12971cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12972/* end confdefs.h. */ 12973 12974/* Override any GCC internal prototype to avoid an error. 12975 Use char because int might match the return type of a GCC 12976 builtin and then its argument prototype would still apply. */ 12977#ifdef __cplusplus 12978extern "C" 12979#endif 12980char umem_alloc (); 12981int 12982main () 12983{ 12984return umem_alloc (); 12985 ; 12986 return 0; 12987} 12988_ACEOF 12989if ac_fn_c_try_link "$LINENO"; then : 12990 ac_cv_lib_umem_umem_alloc=yes 12991else 12992 ac_cv_lib_umem_umem_alloc=no 12993fi 12994rm -f core conftest.err conftest.$ac_objext \ 12995 conftest$ac_exeext conftest.$ac_ext 12996LIBS=$ac_check_lib_save_LIBS 12997fi 12998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 12999$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } 13000if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : 13001 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 13002fi 13003 13004 ;; 13005 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 13006 # both directly and inverted, so should not be 0 or 255. 13007 malloc_debug_env='MALLOC_PERTURB_=15' 13008 ;; 13009 darwin*) 13010 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 13011 ;; 13012 *bsd*) 13013 malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 13014 ;; 13015esac 13016 13017# User supplied flags override default flags 13018if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 13019 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 13020fi 13021 13022XORG_MALLOC_DEBUG_ENV=$malloc_debug_env 13023 13024 13025 13026 13027 13028 13029 13030# Check whether --enable-unit-tests was given. 13031if test "${enable_unit_tests+set}" = set; then : 13032 enableval=$enable_unit_tests; enable_unit_tests=$enableval 13033else 13034 enable_unit_tests=auto 13035fi 13036 13037 13038 if test "x$enable_unit_tests" != xno; then 13039 ENABLE_UNIT_TESTS_TRUE= 13040 ENABLE_UNIT_TESTS_FALSE='#' 13041else 13042 ENABLE_UNIT_TESTS_TRUE='#' 13043 ENABLE_UNIT_TESTS_FALSE= 13044fi 13045 13046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5 13047$as_echo_n "checking whether to build unit test cases... " >&6; } 13048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5 13049$as_echo "$enable_unit_tests" >&6; } 13050 13051 13052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-wrap,exit" >&5 13053$as_echo_n "checking whether the linker accepts -Wl,-wrap,exit... " >&6; } 13054if ${xorg_cv_linker_flags__Wl__wrap_exit+:} false; then : 13055 $as_echo_n "(cached) " >&6 13056else 13057 13058 ax_save_FLAGS=$LDFLAGS 13059 LDFLAGS="-Wl,-wrap,exit" 13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13061/* end confdefs.h. */ 13062#include <stdlib.h> 13063 void __wrap_exit(int status) { return; } 13064int 13065main () 13066{ 13067exit(0); 13068 ; 13069 return 0; 13070} 13071_ACEOF 13072if ac_fn_c_try_link "$LINENO"; then : 13073 xorg_cv_linker_flags__Wl__wrap_exit=yes 13074else 13075 xorg_cv_linker_flags__Wl__wrap_exit=no 13076fi 13077rm -f core conftest.err conftest.$ac_objext \ 13078 conftest$ac_exeext conftest.$ac_ext 13079 LDFLAGS=$ax_save_FLAGS 13080fi 13081 13082eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__wrap_exit 13083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5 13084$as_echo "$xorg_check_linker_flags" >&6; } 13085if test "x$xorg_check_linker_flags" = xyes; then 13086 have_ld_wrap=yes 13087else 13088 have_ld_wrap=no 13089fi 13090 13091# Not having ld wrap when unit testing has been explicitly requested is an error 13092if test "x$enable_unit_tests" = x"yes" -a "xoptional" != "xoptional"; then 13093 if test "x$have_ld_wrap" = x"no"; then 13094 as_fn_error $? "--enable-unit-tests=yes specified but ld -wrap support is not available" "$LINENO" 5 13095 fi 13096fi 13097 if test "$have_ld_wrap" = yes; then 13098 HAVE_LD_WRAP_TRUE= 13099 HAVE_LD_WRAP_FALSE='#' 13100else 13101 HAVE_LD_WRAP_TRUE='#' 13102 HAVE_LD_WRAP_FALSE= 13103fi 13104 13105# 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120ac_config_headers="$ac_config_headers include/do-not-use-config.h" 13121 13122ac_config_headers="$ac_config_headers include/xorg-server.h" 13123 13124ac_config_headers="$ac_config_headers include/dix-config.h" 13125 13126ac_config_headers="$ac_config_headers include/xorg-config.h" 13127 13128ac_config_headers="$ac_config_headers include/xkb-config.h" 13129 13130ac_config_headers="$ac_config_headers include/xwin-config.h" 13131 13132ac_config_headers="$ac_config_headers include/xwayland-config.h" 13133 13134ac_config_headers="$ac_config_headers include/version-config.h" 13135 13136 13137# By default we simply use the C compiler to build assembly code. 13138 13139test "${CCAS+set}" = set || CCAS=$CC 13140test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 13141 13142 13143 13144depcc="$CCAS" am_compiler_list= 13145 13146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13147$as_echo_n "checking dependency style of $depcc... " >&6; } 13148if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : 13149 $as_echo_n "(cached) " >&6 13150else 13151 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13152 # We make a subdir and do the tests there. Otherwise we can end up 13153 # making bogus files that we don't know about and never remove. For 13154 # instance it was reported that on HP-UX the gcc test will end up 13155 # making a dummy file named 'D' -- because '-MD' means "put the output 13156 # in D". 13157 rm -rf conftest.dir 13158 mkdir conftest.dir 13159 # Copy depcomp to subdir because otherwise we won't find it if we're 13160 # using a relative directory. 13161 cp "$am_depcomp" conftest.dir 13162 cd conftest.dir 13163 # We will build objects and dependencies in a subdirectory because 13164 # it helps to detect inapplicable dependency modes. For instance 13165 # both Tru64's cc and ICC support -MD to output dependencies as a 13166 # side effect of compilation, but ICC will put the dependencies in 13167 # the current directory while Tru64 will put them in the object 13168 # directory. 13169 mkdir sub 13170 13171 am_cv_CCAS_dependencies_compiler_type=none 13172 if test "$am_compiler_list" = ""; then 13173 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13174 fi 13175 am__universal=false 13176 13177 13178 for depmode in $am_compiler_list; do 13179 # Setup a source with many dependencies, because some compilers 13180 # like to wrap large dependency lists on column 80 (with \), and 13181 # we should not choose a depcomp mode which is confused by this. 13182 # 13183 # We need to recreate these files for each test, as the compiler may 13184 # overwrite some of them when testing with obscure command lines. 13185 # This happens at least with the AIX C compiler. 13186 : > sub/conftest.c 13187 for i in 1 2 3 4 5 6; do 13188 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13189 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13190 # Solaris 10 /bin/sh. 13191 echo '/* dummy */' > sub/conftst$i.h 13192 done 13193 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13194 13195 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13196 # mode. It turns out that the SunPro C++ compiler does not properly 13197 # handle '-M -o', and we need to detect this. Also, some Intel 13198 # versions had trouble with output in subdirs. 13199 am__obj=sub/conftest.${OBJEXT-o} 13200 am__minus_obj="-o $am__obj" 13201 case $depmode in 13202 gcc) 13203 # This depmode causes a compiler race in universal mode. 13204 test "$am__universal" = false || continue 13205 ;; 13206 nosideeffect) 13207 # After this tag, mechanisms are not by side-effect, so they'll 13208 # only be used when explicitly requested. 13209 if test "x$enable_dependency_tracking" = xyes; then 13210 continue 13211 else 13212 break 13213 fi 13214 ;; 13215 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13216 # This compiler won't grok '-c -o', but also, the minuso test has 13217 # not run yet. These depmodes are late enough in the game, and 13218 # so weak that their functioning should not be impacted. 13219 am__obj=conftest.${OBJEXT-o} 13220 am__minus_obj= 13221 ;; 13222 none) break ;; 13223 esac 13224 if depmode=$depmode \ 13225 source=sub/conftest.c object=$am__obj \ 13226 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13227 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13228 >/dev/null 2>conftest.err && 13229 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13230 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13231 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13232 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13233 # icc doesn't choke on unknown options, it will just issue warnings 13234 # or remarks (even with -Werror). So we grep stderr for any message 13235 # that says an option was ignored or not supported. 13236 # When given -MP, icc 7.0 and 7.1 complain thusly: 13237 # icc: Command line warning: ignoring option '-M'; no argument required 13238 # The diagnosis changed in icc 8.0: 13239 # icc: Command line remark: option '-MP' not supported 13240 if (grep 'ignoring option' conftest.err || 13241 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13242 am_cv_CCAS_dependencies_compiler_type=$depmode 13243 break 13244 fi 13245 fi 13246 done 13247 13248 cd .. 13249 rm -rf conftest.dir 13250else 13251 am_cv_CCAS_dependencies_compiler_type=none 13252fi 13253 13254fi 13255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 13256$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } 13257CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 13258 13259 if 13260 test "x$enable_dependency_tracking" != xno \ 13261 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 13262 am__fastdepCCAS_TRUE= 13263 am__fastdepCCAS_FALSE='#' 13264else 13265 am__fastdepCCAS_TRUE='#' 13266 am__fastdepCCAS_FALSE= 13267fi 13268 13269 13270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 13271$as_echo_n "checking whether ln -s works... " >&6; } 13272LN_S=$as_ln_s 13273if test "$LN_S" = "ln -s"; then 13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13275$as_echo "yes" >&6; } 13276else 13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 13278$as_echo "no, using $LN_S" >&6; } 13279fi 13280 13281 13282case `pwd` in 13283 *\ * | *\ *) 13284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 13285$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 13286esac 13287 13288 13289 13290macro_version='2.4.6' 13291macro_revision='2.4.6' 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305ltmain=$ac_aux_dir/ltmain.sh 13306 13307# Backslashify metacharacters that are still active within 13308# double-quoted strings. 13309sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 13310 13311# Same as above, but do not quote variable references. 13312double_quote_subst='s/\(["`\\]\)/\\\1/g' 13313 13314# Sed substitution to delay expansion of an escaped shell variable in a 13315# double_quote_subst'ed string. 13316delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 13317 13318# Sed substitution to delay expansion of an escaped single quote. 13319delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 13320 13321# Sed substitution to avoid accidental globbing in evaled expressions 13322no_glob_subst='s/\*/\\\*/g' 13323 13324ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13325ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 13326ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 13327 13328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 13329$as_echo_n "checking how to print strings... " >&6; } 13330# Test print first, because it will be a builtin if present. 13331if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 13332 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 13333 ECHO='print -r --' 13334elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 13335 ECHO='printf %s\n' 13336else 13337 # Use this function as a fallback that always works. 13338 func_fallback_echo () 13339 { 13340 eval 'cat <<_LTECHO_EOF 13341$1 13342_LTECHO_EOF' 13343 } 13344 ECHO='func_fallback_echo' 13345fi 13346 13347# func_echo_all arg... 13348# Invoke $ECHO with all args, space-separated. 13349func_echo_all () 13350{ 13351 $ECHO "" 13352} 13353 13354case $ECHO in 13355 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 13356$as_echo "printf" >&6; } ;; 13357 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 13358$as_echo "print -r" >&6; } ;; 13359 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 13360$as_echo "cat" >&6; } ;; 13361esac 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 13377$as_echo_n "checking for a sed that does not truncate output... " >&6; } 13378if ${ac_cv_path_SED+:} false; then : 13379 $as_echo_n "(cached) " >&6 13380else 13381 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 13382 for ac_i in 1 2 3 4 5 6 7; do 13383 ac_script="$ac_script$as_nl$ac_script" 13384 done 13385 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 13386 { ac_script=; unset ac_script;} 13387 if test -z "$SED"; then 13388 ac_path_SED_found=false 13389 # Loop through the user's path and test for each of PROGNAME-LIST 13390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13391for as_dir in $PATH 13392do 13393 IFS=$as_save_IFS 13394 test -z "$as_dir" && as_dir=. 13395 for ac_prog in sed gsed; do 13396 for ac_exec_ext in '' $ac_executable_extensions; do 13397 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 13398 as_fn_executable_p "$ac_path_SED" || continue 13399# Check for GNU ac_path_SED and select it if it is found. 13400 # Check for GNU $ac_path_SED 13401case `"$ac_path_SED" --version 2>&1` in 13402*GNU*) 13403 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 13404*) 13405 ac_count=0 13406 $as_echo_n 0123456789 >"conftest.in" 13407 while : 13408 do 13409 cat "conftest.in" "conftest.in" >"conftest.tmp" 13410 mv "conftest.tmp" "conftest.in" 13411 cp "conftest.in" "conftest.nl" 13412 $as_echo '' >> "conftest.nl" 13413 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 13414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13415 as_fn_arith $ac_count + 1 && ac_count=$as_val 13416 if test $ac_count -gt ${ac_path_SED_max-0}; then 13417 # Best one so far, save it but keep looking for a better one 13418 ac_cv_path_SED="$ac_path_SED" 13419 ac_path_SED_max=$ac_count 13420 fi 13421 # 10*(2^10) chars as input seems more than enough 13422 test $ac_count -gt 10 && break 13423 done 13424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13425esac 13426 13427 $ac_path_SED_found && break 3 13428 done 13429 done 13430 done 13431IFS=$as_save_IFS 13432 if test -z "$ac_cv_path_SED"; then 13433 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 13434 fi 13435else 13436 ac_cv_path_SED=$SED 13437fi 13438 13439fi 13440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 13441$as_echo "$ac_cv_path_SED" >&6; } 13442 SED="$ac_cv_path_SED" 13443 rm -f conftest.sed 13444 13445test -z "$SED" && SED=sed 13446Xsed="$SED -e 1s/^X//" 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13459$as_echo_n "checking for fgrep... " >&6; } 13460if ${ac_cv_path_FGREP+:} false; then : 13461 $as_echo_n "(cached) " >&6 13462else 13463 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13464 then ac_cv_path_FGREP="$GREP -F" 13465 else 13466 if test -z "$FGREP"; then 13467 ac_path_FGREP_found=false 13468 # Loop through the user's path and test for each of PROGNAME-LIST 13469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13470for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13471do 13472 IFS=$as_save_IFS 13473 test -z "$as_dir" && as_dir=. 13474 for ac_prog in fgrep; do 13475 for ac_exec_ext in '' $ac_executable_extensions; do 13476 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13477 as_fn_executable_p "$ac_path_FGREP" || continue 13478# Check for GNU ac_path_FGREP and select it if it is found. 13479 # Check for GNU $ac_path_FGREP 13480case `"$ac_path_FGREP" --version 2>&1` in 13481*GNU*) 13482 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13483*) 13484 ac_count=0 13485 $as_echo_n 0123456789 >"conftest.in" 13486 while : 13487 do 13488 cat "conftest.in" "conftest.in" >"conftest.tmp" 13489 mv "conftest.tmp" "conftest.in" 13490 cp "conftest.in" "conftest.nl" 13491 $as_echo 'FGREP' >> "conftest.nl" 13492 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13494 as_fn_arith $ac_count + 1 && ac_count=$as_val 13495 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13496 # Best one so far, save it but keep looking for a better one 13497 ac_cv_path_FGREP="$ac_path_FGREP" 13498 ac_path_FGREP_max=$ac_count 13499 fi 13500 # 10*(2^10) chars as input seems more than enough 13501 test $ac_count -gt 10 && break 13502 done 13503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13504esac 13505 13506 $ac_path_FGREP_found && break 3 13507 done 13508 done 13509 done 13510IFS=$as_save_IFS 13511 if test -z "$ac_cv_path_FGREP"; then 13512 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13513 fi 13514else 13515 ac_cv_path_FGREP=$FGREP 13516fi 13517 13518 fi 13519fi 13520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13521$as_echo "$ac_cv_path_FGREP" >&6; } 13522 FGREP="$ac_cv_path_FGREP" 13523 13524 13525test -z "$GREP" && GREP=grep 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545# Check whether --with-gnu-ld was given. 13546if test "${with_gnu_ld+set}" = set; then : 13547 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13548else 13549 with_gnu_ld=no 13550fi 13551 13552ac_prog=ld 13553if test yes = "$GCC"; then 13554 # Check if gcc -print-prog-name=ld gives a path. 13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13556$as_echo_n "checking for ld used by $CC... " >&6; } 13557 case $host in 13558 *-*-mingw*) 13559 # gcc leaves a trailing carriage return, which upsets mingw 13560 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13561 *) 13562 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13563 esac 13564 case $ac_prog in 13565 # Accept absolute paths. 13566 [\\/]* | ?:[\\/]*) 13567 re_direlt='/[^/][^/]*/\.\./' 13568 # Canonicalize the pathname of ld 13569 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13570 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13571 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13572 done 13573 test -z "$LD" && LD=$ac_prog 13574 ;; 13575 "") 13576 # If it fails, then pretend we aren't using GCC. 13577 ac_prog=ld 13578 ;; 13579 *) 13580 # If it is relative, then search for the first ld in PATH. 13581 with_gnu_ld=unknown 13582 ;; 13583 esac 13584elif test yes = "$with_gnu_ld"; then 13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13586$as_echo_n "checking for GNU ld... " >&6; } 13587else 13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13589$as_echo_n "checking for non-GNU ld... " >&6; } 13590fi 13591if ${lt_cv_path_LD+:} false; then : 13592 $as_echo_n "(cached) " >&6 13593else 13594 if test -z "$LD"; then 13595 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13596 for ac_dir in $PATH; do 13597 IFS=$lt_save_ifs 13598 test -z "$ac_dir" && ac_dir=. 13599 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13600 lt_cv_path_LD=$ac_dir/$ac_prog 13601 # Check to see if the program is GNU ld. I'd rather use --version, 13602 # but apparently some variants of GNU ld only accept -v. 13603 # Break only if it was the GNU/non-GNU ld that we prefer. 13604 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13605 *GNU* | *'with BFD'*) 13606 test no != "$with_gnu_ld" && break 13607 ;; 13608 *) 13609 test yes != "$with_gnu_ld" && break 13610 ;; 13611 esac 13612 fi 13613 done 13614 IFS=$lt_save_ifs 13615else 13616 lt_cv_path_LD=$LD # Let the user override the test with a path. 13617fi 13618fi 13619 13620LD=$lt_cv_path_LD 13621if test -n "$LD"; then 13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13623$as_echo "$LD" >&6; } 13624else 13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13626$as_echo "no" >&6; } 13627fi 13628test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13630$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13631if ${lt_cv_prog_gnu_ld+:} false; then : 13632 $as_echo_n "(cached) " >&6 13633else 13634 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13635case `$LD -v 2>&1 </dev/null` in 13636*GNU* | *'with BFD'*) 13637 lt_cv_prog_gnu_ld=yes 13638 ;; 13639*) 13640 lt_cv_prog_gnu_ld=no 13641 ;; 13642esac 13643fi 13644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13645$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13646with_gnu_ld=$lt_cv_prog_gnu_ld 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 13657$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 13658if ${lt_cv_path_NM+:} false; then : 13659 $as_echo_n "(cached) " >&6 13660else 13661 if test -n "$NM"; then 13662 # Let the user override the test. 13663 lt_cv_path_NM=$NM 13664else 13665 lt_nm_to_check=${ac_tool_prefix}nm 13666 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 13667 lt_nm_to_check="$lt_nm_to_check nm" 13668 fi 13669 for lt_tmp_nm in $lt_nm_to_check; do 13670 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13671 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 13672 IFS=$lt_save_ifs 13673 test -z "$ac_dir" && ac_dir=. 13674 tmp_nm=$ac_dir/$lt_tmp_nm 13675 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 13676 # Check to see if the nm accepts a BSD-compat flag. 13677 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 13678 # nm: unknown option "B" ignored 13679 # Tru64's nm complains that /dev/null is an invalid object file 13680 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 13681 case $build_os in 13682 mingw*) lt_bad_file=conftest.nm/nofile ;; 13683 *) lt_bad_file=/dev/null ;; 13684 esac 13685 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 13686 *$lt_bad_file* | *'Invalid file or object type'*) 13687 lt_cv_path_NM="$tmp_nm -B" 13688 break 2 13689 ;; 13690 *) 13691 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 13692 */dev/null*) 13693 lt_cv_path_NM="$tmp_nm -p" 13694 break 2 13695 ;; 13696 *) 13697 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 13698 continue # so that we can try to find one that supports BSD flags 13699 ;; 13700 esac 13701 ;; 13702 esac 13703 fi 13704 done 13705 IFS=$lt_save_ifs 13706 done 13707 : ${lt_cv_path_NM=no} 13708fi 13709fi 13710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 13711$as_echo "$lt_cv_path_NM" >&6; } 13712if test no != "$lt_cv_path_NM"; then 13713 NM=$lt_cv_path_NM 13714else 13715 # Didn't find any BSD compatible name lister, look for dumpbin. 13716 if test -n "$DUMPBIN"; then : 13717 # Let the user override the test. 13718 else 13719 if test -n "$ac_tool_prefix"; then 13720 for ac_prog in dumpbin "link -dump" 13721 do 13722 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13723set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13725$as_echo_n "checking for $ac_word... " >&6; } 13726if ${ac_cv_prog_DUMPBIN+:} false; then : 13727 $as_echo_n "(cached) " >&6 13728else 13729 if test -n "$DUMPBIN"; then 13730 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 13731else 13732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13733for as_dir in $PATH 13734do 13735 IFS=$as_save_IFS 13736 test -z "$as_dir" && as_dir=. 13737 for ac_exec_ext in '' $ac_executable_extensions; do 13738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13739 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 13740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13741 break 2 13742 fi 13743done 13744 done 13745IFS=$as_save_IFS 13746 13747fi 13748fi 13749DUMPBIN=$ac_cv_prog_DUMPBIN 13750if test -n "$DUMPBIN"; then 13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 13752$as_echo "$DUMPBIN" >&6; } 13753else 13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13755$as_echo "no" >&6; } 13756fi 13757 13758 13759 test -n "$DUMPBIN" && break 13760 done 13761fi 13762if test -z "$DUMPBIN"; then 13763 ac_ct_DUMPBIN=$DUMPBIN 13764 for ac_prog in dumpbin "link -dump" 13765do 13766 # Extract the first word of "$ac_prog", so it can be a program name with args. 13767set dummy $ac_prog; ac_word=$2 13768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13769$as_echo_n "checking for $ac_word... " >&6; } 13770if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 13771 $as_echo_n "(cached) " >&6 13772else 13773 if test -n "$ac_ct_DUMPBIN"; then 13774 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 13775else 13776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13777for as_dir in $PATH 13778do 13779 IFS=$as_save_IFS 13780 test -z "$as_dir" && as_dir=. 13781 for ac_exec_ext in '' $ac_executable_extensions; do 13782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13783 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 13784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13785 break 2 13786 fi 13787done 13788 done 13789IFS=$as_save_IFS 13790 13791fi 13792fi 13793ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 13794if test -n "$ac_ct_DUMPBIN"; then 13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 13796$as_echo "$ac_ct_DUMPBIN" >&6; } 13797else 13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13799$as_echo "no" >&6; } 13800fi 13801 13802 13803 test -n "$ac_ct_DUMPBIN" && break 13804done 13805 13806 if test "x$ac_ct_DUMPBIN" = x; then 13807 DUMPBIN=":" 13808 else 13809 case $cross_compiling:$ac_tool_warned in 13810yes:) 13811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13813ac_tool_warned=yes ;; 13814esac 13815 DUMPBIN=$ac_ct_DUMPBIN 13816 fi 13817fi 13818 13819 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 13820 *COFF*) 13821 DUMPBIN="$DUMPBIN -symbols -headers" 13822 ;; 13823 *) 13824 DUMPBIN=: 13825 ;; 13826 esac 13827 fi 13828 13829 if test : != "$DUMPBIN"; then 13830 NM=$DUMPBIN 13831 fi 13832fi 13833test -z "$NM" && NM=nm 13834 13835 13836 13837 13838 13839 13840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 13841$as_echo_n "checking the name lister ($NM) interface... " >&6; } 13842if ${lt_cv_nm_interface+:} false; then : 13843 $as_echo_n "(cached) " >&6 13844else 13845 lt_cv_nm_interface="BSD nm" 13846 echo "int some_variable = 0;" > conftest.$ac_ext 13847 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 13848 (eval "$ac_compile" 2>conftest.err) 13849 cat conftest.err >&5 13850 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 13851 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 13852 cat conftest.err >&5 13853 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 13854 cat conftest.out >&5 13855 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 13856 lt_cv_nm_interface="MS dumpbin" 13857 fi 13858 rm -f conftest* 13859fi 13860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 13861$as_echo "$lt_cv_nm_interface" >&6; } 13862 13863# find the maximum length of command line arguments 13864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 13865$as_echo_n "checking the maximum length of command line arguments... " >&6; } 13866if ${lt_cv_sys_max_cmd_len+:} false; then : 13867 $as_echo_n "(cached) " >&6 13868else 13869 i=0 13870 teststring=ABCD 13871 13872 case $build_os in 13873 msdosdjgpp*) 13874 # On DJGPP, this test can blow up pretty badly due to problems in libc 13875 # (any single argument exceeding 2000 bytes causes a buffer overrun 13876 # during glob expansion). Even if it were fixed, the result of this 13877 # check would be larger than it should be. 13878 lt_cv_sys_max_cmd_len=12288; # 12K is about right 13879 ;; 13880 13881 gnu*) 13882 # Under GNU Hurd, this test is not required because there is 13883 # no limit to the length of command line arguments. 13884 # Libtool will interpret -1 as no limit whatsoever 13885 lt_cv_sys_max_cmd_len=-1; 13886 ;; 13887 13888 cygwin* | mingw* | cegcc*) 13889 # On Win9x/ME, this test blows up -- it succeeds, but takes 13890 # about 5 minutes as the teststring grows exponentially. 13891 # Worse, since 9x/ME are not pre-emptively multitasking, 13892 # you end up with a "frozen" computer, even though with patience 13893 # the test eventually succeeds (with a max line length of 256k). 13894 # Instead, let's just punt: use the minimum linelength reported by 13895 # all of the supported platforms: 8192 (on NT/2K/XP). 13896 lt_cv_sys_max_cmd_len=8192; 13897 ;; 13898 13899 mint*) 13900 # On MiNT this can take a long time and run out of memory. 13901 lt_cv_sys_max_cmd_len=8192; 13902 ;; 13903 13904 amigaos*) 13905 # On AmigaOS with pdksh, this test takes hours, literally. 13906 # So we just punt and use a minimum line length of 8192. 13907 lt_cv_sys_max_cmd_len=8192; 13908 ;; 13909 13910 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 13911 # This has been around since 386BSD, at least. Likely further. 13912 if test -x /sbin/sysctl; then 13913 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 13914 elif test -x /usr/sbin/sysctl; then 13915 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 13916 else 13917 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 13918 fi 13919 # And add a safety zone 13920 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 13921 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 13922 ;; 13923 13924 interix*) 13925 # We know the value 262144 and hardcode it with a safety zone (like BSD) 13926 lt_cv_sys_max_cmd_len=196608 13927 ;; 13928 13929 os2*) 13930 # The test takes a long time on OS/2. 13931 lt_cv_sys_max_cmd_len=8192 13932 ;; 13933 13934 osf*) 13935 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 13936 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 13937 # nice to cause kernel panics so lets avoid the loop below. 13938 # First set a reasonable default. 13939 lt_cv_sys_max_cmd_len=16384 13940 # 13941 if test -x /sbin/sysconfig; then 13942 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 13943 *1*) lt_cv_sys_max_cmd_len=-1 ;; 13944 esac 13945 fi 13946 ;; 13947 sco3.2v5*) 13948 lt_cv_sys_max_cmd_len=102400 13949 ;; 13950 sysv5* | sco5v6* | sysv4.2uw2*) 13951 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 13952 if test -n "$kargmax"; then 13953 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 13954 else 13955 lt_cv_sys_max_cmd_len=32768 13956 fi 13957 ;; 13958 *) 13959 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 13960 if test -n "$lt_cv_sys_max_cmd_len" && \ 13961 test undefined != "$lt_cv_sys_max_cmd_len"; then 13962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 13963 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 13964 else 13965 # Make teststring a little bigger before we do anything with it. 13966 # a 1K string should be a reasonable start. 13967 for i in 1 2 3 4 5 6 7 8; do 13968 teststring=$teststring$teststring 13969 done 13970 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 13971 # If test is not a shell built-in, we'll probably end up computing a 13972 # maximum length that is only half of the actual maximum length, but 13973 # we can't tell. 13974 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 13975 = "X$teststring$teststring"; } >/dev/null 2>&1 && 13976 test 17 != "$i" # 1/2 MB should be enough 13977 do 13978 i=`expr $i + 1` 13979 teststring=$teststring$teststring 13980 done 13981 # Only check the string length outside the loop. 13982 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 13983 teststring= 13984 # Add a significant safety factor because C++ compilers can tack on 13985 # massive amounts of additional arguments before passing them to the 13986 # linker. It appears as though 1/2 is a usable value. 13987 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 13988 fi 13989 ;; 13990 esac 13991 13992fi 13993 13994if test -n "$lt_cv_sys_max_cmd_len"; then 13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 13996$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 13997else 13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 13999$as_echo "none" >&6; } 14000fi 14001max_cmd_len=$lt_cv_sys_max_cmd_len 14002 14003 14004 14005 14006 14007 14008: ${CP="cp -f"} 14009: ${MV="mv -f"} 14010: ${RM="rm -f"} 14011 14012if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 14013 lt_unset=unset 14014else 14015 lt_unset=false 14016fi 14017 14018 14019 14020 14021 14022# test EBCDIC or ASCII 14023case `echo X|tr X '\101'` in 14024 A) # ASCII based system 14025 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 14026 lt_SP2NL='tr \040 \012' 14027 lt_NL2SP='tr \015\012 \040\040' 14028 ;; 14029 *) # EBCDIC based system 14030 lt_SP2NL='tr \100 \n' 14031 lt_NL2SP='tr \r\n \100\100' 14032 ;; 14033esac 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 14044$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 14045if ${lt_cv_to_host_file_cmd+:} false; then : 14046 $as_echo_n "(cached) " >&6 14047else 14048 case $host in 14049 *-*-mingw* ) 14050 case $build in 14051 *-*-mingw* ) # actually msys 14052 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 14053 ;; 14054 *-*-cygwin* ) 14055 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 14056 ;; 14057 * ) # otherwise, assume *nix 14058 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 14059 ;; 14060 esac 14061 ;; 14062 *-*-cygwin* ) 14063 case $build in 14064 *-*-mingw* ) # actually msys 14065 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 14066 ;; 14067 *-*-cygwin* ) 14068 lt_cv_to_host_file_cmd=func_convert_file_noop 14069 ;; 14070 * ) # otherwise, assume *nix 14071 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 14072 ;; 14073 esac 14074 ;; 14075 * ) # unhandled hosts (and "normal" native builds) 14076 lt_cv_to_host_file_cmd=func_convert_file_noop 14077 ;; 14078esac 14079 14080fi 14081 14082to_host_file_cmd=$lt_cv_to_host_file_cmd 14083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 14084$as_echo "$lt_cv_to_host_file_cmd" >&6; } 14085 14086 14087 14088 14089 14090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 14091$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 14092if ${lt_cv_to_tool_file_cmd+:} false; then : 14093 $as_echo_n "(cached) " >&6 14094else 14095 #assume ordinary cross tools, or native build. 14096lt_cv_to_tool_file_cmd=func_convert_file_noop 14097case $host in 14098 *-*-mingw* ) 14099 case $build in 14100 *-*-mingw* ) # actually msys 14101 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 14102 ;; 14103 esac 14104 ;; 14105esac 14106 14107fi 14108 14109to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 14111$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 14112 14113 14114 14115 14116 14117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 14118$as_echo_n "checking for $LD option to reload object files... " >&6; } 14119if ${lt_cv_ld_reload_flag+:} false; then : 14120 $as_echo_n "(cached) " >&6 14121else 14122 lt_cv_ld_reload_flag='-r' 14123fi 14124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 14125$as_echo "$lt_cv_ld_reload_flag" >&6; } 14126reload_flag=$lt_cv_ld_reload_flag 14127case $reload_flag in 14128"" | " "*) ;; 14129*) reload_flag=" $reload_flag" ;; 14130esac 14131reload_cmds='$LD$reload_flag -o $output$reload_objs' 14132case $host_os in 14133 cygwin* | mingw* | pw32* | cegcc*) 14134 if test yes != "$GCC"; then 14135 reload_cmds=false 14136 fi 14137 ;; 14138 darwin*) 14139 if test yes = "$GCC"; then 14140 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 14141 else 14142 reload_cmds='$LD$reload_flag -o $output$reload_objs' 14143 fi 14144 ;; 14145esac 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155if test -n "$ac_tool_prefix"; then 14156 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 14157set dummy ${ac_tool_prefix}objdump; ac_word=$2 14158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14159$as_echo_n "checking for $ac_word... " >&6; } 14160if ${ac_cv_prog_OBJDUMP+:} false; then : 14161 $as_echo_n "(cached) " >&6 14162else 14163 if test -n "$OBJDUMP"; then 14164 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 14165else 14166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14167for as_dir in $PATH 14168do 14169 IFS=$as_save_IFS 14170 test -z "$as_dir" && as_dir=. 14171 for ac_exec_ext in '' $ac_executable_extensions; do 14172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14173 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 14174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14175 break 2 14176 fi 14177done 14178 done 14179IFS=$as_save_IFS 14180 14181fi 14182fi 14183OBJDUMP=$ac_cv_prog_OBJDUMP 14184if test -n "$OBJDUMP"; then 14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 14186$as_echo "$OBJDUMP" >&6; } 14187else 14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14189$as_echo "no" >&6; } 14190fi 14191 14192 14193fi 14194if test -z "$ac_cv_prog_OBJDUMP"; then 14195 ac_ct_OBJDUMP=$OBJDUMP 14196 # Extract the first word of "objdump", so it can be a program name with args. 14197set dummy objdump; ac_word=$2 14198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14199$as_echo_n "checking for $ac_word... " >&6; } 14200if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 14201 $as_echo_n "(cached) " >&6 14202else 14203 if test -n "$ac_ct_OBJDUMP"; then 14204 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 14205else 14206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14207for as_dir in $PATH 14208do 14209 IFS=$as_save_IFS 14210 test -z "$as_dir" && as_dir=. 14211 for ac_exec_ext in '' $ac_executable_extensions; do 14212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14213 ac_cv_prog_ac_ct_OBJDUMP="objdump" 14214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14215 break 2 14216 fi 14217done 14218 done 14219IFS=$as_save_IFS 14220 14221fi 14222fi 14223ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 14224if test -n "$ac_ct_OBJDUMP"; then 14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 14226$as_echo "$ac_ct_OBJDUMP" >&6; } 14227else 14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14229$as_echo "no" >&6; } 14230fi 14231 14232 if test "x$ac_ct_OBJDUMP" = x; then 14233 OBJDUMP="false" 14234 else 14235 case $cross_compiling:$ac_tool_warned in 14236yes:) 14237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14239ac_tool_warned=yes ;; 14240esac 14241 OBJDUMP=$ac_ct_OBJDUMP 14242 fi 14243else 14244 OBJDUMP="$ac_cv_prog_OBJDUMP" 14245fi 14246 14247test -z "$OBJDUMP" && OBJDUMP=objdump 14248 14249 14250 14251 14252 14253 14254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 14255$as_echo_n "checking how to recognize dependent libraries... " >&6; } 14256if ${lt_cv_deplibs_check_method+:} false; then : 14257 $as_echo_n "(cached) " >&6 14258else 14259 lt_cv_file_magic_cmd='$MAGIC_CMD' 14260lt_cv_file_magic_test_file= 14261lt_cv_deplibs_check_method='unknown' 14262# Need to set the preceding variable on all platforms that support 14263# interlibrary dependencies. 14264# 'none' -- dependencies not supported. 14265# 'unknown' -- same as none, but documents that we really don't know. 14266# 'pass_all' -- all dependencies passed with no checks. 14267# 'test_compile' -- check by making test program. 14268# 'file_magic [[regex]]' -- check by looking for files in library path 14269# that responds to the $file_magic_cmd with a given extended regex. 14270# If you have 'file' or equivalent on your system and you're not sure 14271# whether 'pass_all' will *always* work, you probably want this one. 14272 14273case $host_os in 14274aix[4-9]*) 14275 lt_cv_deplibs_check_method=pass_all 14276 ;; 14277 14278beos*) 14279 lt_cv_deplibs_check_method=pass_all 14280 ;; 14281 14282bsdi[45]*) 14283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 14284 lt_cv_file_magic_cmd='/usr/bin/file -L' 14285 lt_cv_file_magic_test_file=/shlib/libc.so 14286 ;; 14287 14288cygwin*) 14289 # func_win32_libid is a shell function defined in ltmain.sh 14290 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 14291 lt_cv_file_magic_cmd='func_win32_libid' 14292 ;; 14293 14294mingw* | pw32*) 14295 # Base MSYS/MinGW do not provide the 'file' command needed by 14296 # func_win32_libid shell function, so use a weaker test based on 'objdump', 14297 # unless we find 'file', for example because we are cross-compiling. 14298 if ( file / ) >/dev/null 2>&1; then 14299 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 14300 lt_cv_file_magic_cmd='func_win32_libid' 14301 else 14302 # Keep this pattern in sync with the one in func_win32_libid. 14303 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 14304 lt_cv_file_magic_cmd='$OBJDUMP -f' 14305 fi 14306 ;; 14307 14308cegcc*) 14309 # use the weaker test based on 'objdump'. See mingw*. 14310 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 14311 lt_cv_file_magic_cmd='$OBJDUMP -f' 14312 ;; 14313 14314darwin* | rhapsody*) 14315 lt_cv_deplibs_check_method=pass_all 14316 ;; 14317 14318freebsd* | dragonfly*) 14319 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 14320 case $host_cpu in 14321 i*86 ) 14322 # Not sure whether the presence of OpenBSD here was a mistake. 14323 # Let's accept both of them until this is cleared up. 14324 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 14325 lt_cv_file_magic_cmd=/usr/bin/file 14326 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 14327 ;; 14328 esac 14329 else 14330 lt_cv_deplibs_check_method=pass_all 14331 fi 14332 ;; 14333 14334haiku*) 14335 lt_cv_deplibs_check_method=pass_all 14336 ;; 14337 14338hpux10.20* | hpux11*) 14339 lt_cv_file_magic_cmd=/usr/bin/file 14340 case $host_cpu in 14341 ia64*) 14342 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 14343 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 14344 ;; 14345 hppa*64*) 14346 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]' 14347 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 14348 ;; 14349 *) 14350 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 14351 lt_cv_file_magic_test_file=/usr/lib/libc.sl 14352 ;; 14353 esac 14354 ;; 14355 14356interix[3-9]*) 14357 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 14358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 14359 ;; 14360 14361irix5* | irix6* | nonstopux*) 14362 case $LD in 14363 *-32|*"-32 ") libmagic=32-bit;; 14364 *-n32|*"-n32 ") libmagic=N32;; 14365 *-64|*"-64 ") libmagic=64-bit;; 14366 *) libmagic=never-match;; 14367 esac 14368 lt_cv_deplibs_check_method=pass_all 14369 ;; 14370 14371# This must be glibc/ELF. 14372linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14373 lt_cv_deplibs_check_method=pass_all 14374 ;; 14375 14376netbsd*) 14377 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 14378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 14379 else 14380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 14381 fi 14382 ;; 14383 14384newos6*) 14385 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 14386 lt_cv_file_magic_cmd=/usr/bin/file 14387 lt_cv_file_magic_test_file=/usr/lib/libnls.so 14388 ;; 14389 14390*nto* | *qnx*) 14391 lt_cv_deplibs_check_method=pass_all 14392 ;; 14393 14394openbsd* | bitrig*) 14395 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 14397 else 14398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 14399 fi 14400 ;; 14401 14402osf3* | osf4* | osf5*) 14403 lt_cv_deplibs_check_method=pass_all 14404 ;; 14405 14406rdos*) 14407 lt_cv_deplibs_check_method=pass_all 14408 ;; 14409 14410solaris*) 14411 lt_cv_deplibs_check_method=pass_all 14412 ;; 14413 14414sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14415 lt_cv_deplibs_check_method=pass_all 14416 ;; 14417 14418sysv4 | sysv4.3*) 14419 case $host_vendor in 14420 motorola) 14421 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]' 14422 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 14423 ;; 14424 ncr) 14425 lt_cv_deplibs_check_method=pass_all 14426 ;; 14427 sequent) 14428 lt_cv_file_magic_cmd='/bin/file' 14429 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 14430 ;; 14431 sni) 14432 lt_cv_file_magic_cmd='/bin/file' 14433 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 14434 lt_cv_file_magic_test_file=/lib/libc.so 14435 ;; 14436 siemens) 14437 lt_cv_deplibs_check_method=pass_all 14438 ;; 14439 pc) 14440 lt_cv_deplibs_check_method=pass_all 14441 ;; 14442 esac 14443 ;; 14444 14445tpf*) 14446 lt_cv_deplibs_check_method=pass_all 14447 ;; 14448os2*) 14449 lt_cv_deplibs_check_method=pass_all 14450 ;; 14451esac 14452 14453fi 14454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 14455$as_echo "$lt_cv_deplibs_check_method" >&6; } 14456 14457file_magic_glob= 14458want_nocaseglob=no 14459if test "$build" = "$host"; then 14460 case $host_os in 14461 mingw* | pw32*) 14462 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 14463 want_nocaseglob=yes 14464 else 14465 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 14466 fi 14467 ;; 14468 esac 14469fi 14470 14471file_magic_cmd=$lt_cv_file_magic_cmd 14472deplibs_check_method=$lt_cv_deplibs_check_method 14473test -z "$deplibs_check_method" && deplibs_check_method=unknown 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496if test -n "$ac_tool_prefix"; then 14497 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 14498set dummy ${ac_tool_prefix}dlltool; ac_word=$2 14499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14500$as_echo_n "checking for $ac_word... " >&6; } 14501if ${ac_cv_prog_DLLTOOL+:} false; then : 14502 $as_echo_n "(cached) " >&6 14503else 14504 if test -n "$DLLTOOL"; then 14505 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 14506else 14507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14508for as_dir in $PATH 14509do 14510 IFS=$as_save_IFS 14511 test -z "$as_dir" && as_dir=. 14512 for ac_exec_ext in '' $ac_executable_extensions; do 14513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14514 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 14515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14516 break 2 14517 fi 14518done 14519 done 14520IFS=$as_save_IFS 14521 14522fi 14523fi 14524DLLTOOL=$ac_cv_prog_DLLTOOL 14525if test -n "$DLLTOOL"; then 14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 14527$as_echo "$DLLTOOL" >&6; } 14528else 14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14530$as_echo "no" >&6; } 14531fi 14532 14533 14534fi 14535if test -z "$ac_cv_prog_DLLTOOL"; then 14536 ac_ct_DLLTOOL=$DLLTOOL 14537 # Extract the first word of "dlltool", so it can be a program name with args. 14538set dummy dlltool; ac_word=$2 14539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14540$as_echo_n "checking for $ac_word... " >&6; } 14541if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 14542 $as_echo_n "(cached) " >&6 14543else 14544 if test -n "$ac_ct_DLLTOOL"; then 14545 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 14546else 14547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14548for as_dir in $PATH 14549do 14550 IFS=$as_save_IFS 14551 test -z "$as_dir" && as_dir=. 14552 for ac_exec_ext in '' $ac_executable_extensions; do 14553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14554 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 14555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14556 break 2 14557 fi 14558done 14559 done 14560IFS=$as_save_IFS 14561 14562fi 14563fi 14564ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 14565if test -n "$ac_ct_DLLTOOL"; then 14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 14567$as_echo "$ac_ct_DLLTOOL" >&6; } 14568else 14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14570$as_echo "no" >&6; } 14571fi 14572 14573 if test "x$ac_ct_DLLTOOL" = x; then 14574 DLLTOOL="false" 14575 else 14576 case $cross_compiling:$ac_tool_warned in 14577yes:) 14578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14580ac_tool_warned=yes ;; 14581esac 14582 DLLTOOL=$ac_ct_DLLTOOL 14583 fi 14584else 14585 DLLTOOL="$ac_cv_prog_DLLTOOL" 14586fi 14587 14588test -z "$DLLTOOL" && DLLTOOL=dlltool 14589 14590 14591 14592 14593 14594 14595 14596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 14597$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 14598if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 14599 $as_echo_n "(cached) " >&6 14600else 14601 lt_cv_sharedlib_from_linklib_cmd='unknown' 14602 14603case $host_os in 14604cygwin* | mingw* | pw32* | cegcc*) 14605 # two different shell functions defined in ltmain.sh; 14606 # decide which one to use based on capabilities of $DLLTOOL 14607 case `$DLLTOOL --help 2>&1` in 14608 *--identify-strict*) 14609 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 14610 ;; 14611 *) 14612 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 14613 ;; 14614 esac 14615 ;; 14616*) 14617 # fallback: assume linklib IS sharedlib 14618 lt_cv_sharedlib_from_linklib_cmd=$ECHO 14619 ;; 14620esac 14621 14622fi 14623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 14624$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 14625sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 14626test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 14627 14628 14629 14630 14631 14632 14633 14634if test -n "$ac_tool_prefix"; then 14635 for ac_prog in ar 14636 do 14637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 14638set dummy $ac_tool_prefix$ac_prog; ac_word=$2 14639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14640$as_echo_n "checking for $ac_word... " >&6; } 14641if ${ac_cv_prog_AR+:} false; then : 14642 $as_echo_n "(cached) " >&6 14643else 14644 if test -n "$AR"; then 14645 ac_cv_prog_AR="$AR" # Let the user override the test. 14646else 14647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14648for as_dir in $PATH 14649do 14650 IFS=$as_save_IFS 14651 test -z "$as_dir" && as_dir=. 14652 for ac_exec_ext in '' $ac_executable_extensions; do 14653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14654 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 14655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14656 break 2 14657 fi 14658done 14659 done 14660IFS=$as_save_IFS 14661 14662fi 14663fi 14664AR=$ac_cv_prog_AR 14665if test -n "$AR"; then 14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 14667$as_echo "$AR" >&6; } 14668else 14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14670$as_echo "no" >&6; } 14671fi 14672 14673 14674 test -n "$AR" && break 14675 done 14676fi 14677if test -z "$AR"; then 14678 ac_ct_AR=$AR 14679 for ac_prog in ar 14680do 14681 # Extract the first word of "$ac_prog", so it can be a program name with args. 14682set dummy $ac_prog; ac_word=$2 14683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14684$as_echo_n "checking for $ac_word... " >&6; } 14685if ${ac_cv_prog_ac_ct_AR+:} false; then : 14686 $as_echo_n "(cached) " >&6 14687else 14688 if test -n "$ac_ct_AR"; then 14689 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 14690else 14691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14692for as_dir in $PATH 14693do 14694 IFS=$as_save_IFS 14695 test -z "$as_dir" && as_dir=. 14696 for ac_exec_ext in '' $ac_executable_extensions; do 14697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14698 ac_cv_prog_ac_ct_AR="$ac_prog" 14699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14700 break 2 14701 fi 14702done 14703 done 14704IFS=$as_save_IFS 14705 14706fi 14707fi 14708ac_ct_AR=$ac_cv_prog_ac_ct_AR 14709if test -n "$ac_ct_AR"; then 14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 14711$as_echo "$ac_ct_AR" >&6; } 14712else 14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14714$as_echo "no" >&6; } 14715fi 14716 14717 14718 test -n "$ac_ct_AR" && break 14719done 14720 14721 if test "x$ac_ct_AR" = x; then 14722 AR="false" 14723 else 14724 case $cross_compiling:$ac_tool_warned in 14725yes:) 14726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14728ac_tool_warned=yes ;; 14729esac 14730 AR=$ac_ct_AR 14731 fi 14732fi 14733 14734: ${AR=ar} 14735: ${AR_FLAGS=cru} 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 14748$as_echo_n "checking for archiver @FILE support... " >&6; } 14749if ${lt_cv_ar_at_file+:} false; then : 14750 $as_echo_n "(cached) " >&6 14751else 14752 lt_cv_ar_at_file=no 14753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14754/* end confdefs.h. */ 14755 14756int 14757main () 14758{ 14759 14760 ; 14761 return 0; 14762} 14763_ACEOF 14764if ac_fn_c_try_compile "$LINENO"; then : 14765 echo conftest.$ac_objext > conftest.lst 14766 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 14767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 14768 (eval $lt_ar_try) 2>&5 14769 ac_status=$? 14770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14771 test $ac_status = 0; } 14772 if test 0 -eq "$ac_status"; then 14773 # Ensure the archiver fails upon bogus file names. 14774 rm -f conftest.$ac_objext libconftest.a 14775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 14776 (eval $lt_ar_try) 2>&5 14777 ac_status=$? 14778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14779 test $ac_status = 0; } 14780 if test 0 -ne "$ac_status"; then 14781 lt_cv_ar_at_file=@ 14782 fi 14783 fi 14784 rm -f conftest.* libconftest.a 14785 14786fi 14787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14788 14789fi 14790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 14791$as_echo "$lt_cv_ar_at_file" >&6; } 14792 14793if test no = "$lt_cv_ar_at_file"; then 14794 archiver_list_spec= 14795else 14796 archiver_list_spec=$lt_cv_ar_at_file 14797fi 14798 14799 14800 14801 14802 14803 14804 14805if test -n "$ac_tool_prefix"; then 14806 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 14807set dummy ${ac_tool_prefix}strip; ac_word=$2 14808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14809$as_echo_n "checking for $ac_word... " >&6; } 14810if ${ac_cv_prog_STRIP+:} false; then : 14811 $as_echo_n "(cached) " >&6 14812else 14813 if test -n "$STRIP"; then 14814 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 14815else 14816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14817for as_dir in $PATH 14818do 14819 IFS=$as_save_IFS 14820 test -z "$as_dir" && as_dir=. 14821 for ac_exec_ext in '' $ac_executable_extensions; do 14822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14823 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 14824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14825 break 2 14826 fi 14827done 14828 done 14829IFS=$as_save_IFS 14830 14831fi 14832fi 14833STRIP=$ac_cv_prog_STRIP 14834if test -n "$STRIP"; then 14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 14836$as_echo "$STRIP" >&6; } 14837else 14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14839$as_echo "no" >&6; } 14840fi 14841 14842 14843fi 14844if test -z "$ac_cv_prog_STRIP"; then 14845 ac_ct_STRIP=$STRIP 14846 # Extract the first word of "strip", so it can be a program name with args. 14847set dummy strip; ac_word=$2 14848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14849$as_echo_n "checking for $ac_word... " >&6; } 14850if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 14851 $as_echo_n "(cached) " >&6 14852else 14853 if test -n "$ac_ct_STRIP"; then 14854 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 14855else 14856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14857for as_dir in $PATH 14858do 14859 IFS=$as_save_IFS 14860 test -z "$as_dir" && as_dir=. 14861 for ac_exec_ext in '' $ac_executable_extensions; do 14862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14863 ac_cv_prog_ac_ct_STRIP="strip" 14864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14865 break 2 14866 fi 14867done 14868 done 14869IFS=$as_save_IFS 14870 14871fi 14872fi 14873ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 14874if test -n "$ac_ct_STRIP"; then 14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 14876$as_echo "$ac_ct_STRIP" >&6; } 14877else 14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14879$as_echo "no" >&6; } 14880fi 14881 14882 if test "x$ac_ct_STRIP" = x; then 14883 STRIP=":" 14884 else 14885 case $cross_compiling:$ac_tool_warned in 14886yes:) 14887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14889ac_tool_warned=yes ;; 14890esac 14891 STRIP=$ac_ct_STRIP 14892 fi 14893else 14894 STRIP="$ac_cv_prog_STRIP" 14895fi 14896 14897test -z "$STRIP" && STRIP=: 14898 14899 14900 14901 14902 14903 14904if test -n "$ac_tool_prefix"; then 14905 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 14906set dummy ${ac_tool_prefix}ranlib; ac_word=$2 14907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14908$as_echo_n "checking for $ac_word... " >&6; } 14909if ${ac_cv_prog_RANLIB+:} false; then : 14910 $as_echo_n "(cached) " >&6 14911else 14912 if test -n "$RANLIB"; then 14913 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 14914else 14915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14916for as_dir in $PATH 14917do 14918 IFS=$as_save_IFS 14919 test -z "$as_dir" && as_dir=. 14920 for ac_exec_ext in '' $ac_executable_extensions; do 14921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14922 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 14923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14924 break 2 14925 fi 14926done 14927 done 14928IFS=$as_save_IFS 14929 14930fi 14931fi 14932RANLIB=$ac_cv_prog_RANLIB 14933if test -n "$RANLIB"; then 14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 14935$as_echo "$RANLIB" >&6; } 14936else 14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14938$as_echo "no" >&6; } 14939fi 14940 14941 14942fi 14943if test -z "$ac_cv_prog_RANLIB"; then 14944 ac_ct_RANLIB=$RANLIB 14945 # Extract the first word of "ranlib", so it can be a program name with args. 14946set dummy ranlib; ac_word=$2 14947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14948$as_echo_n "checking for $ac_word... " >&6; } 14949if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 14950 $as_echo_n "(cached) " >&6 14951else 14952 if test -n "$ac_ct_RANLIB"; then 14953 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 14954else 14955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14956for as_dir in $PATH 14957do 14958 IFS=$as_save_IFS 14959 test -z "$as_dir" && as_dir=. 14960 for ac_exec_ext in '' $ac_executable_extensions; do 14961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14962 ac_cv_prog_ac_ct_RANLIB="ranlib" 14963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14964 break 2 14965 fi 14966done 14967 done 14968IFS=$as_save_IFS 14969 14970fi 14971fi 14972ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 14973if test -n "$ac_ct_RANLIB"; then 14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 14975$as_echo "$ac_ct_RANLIB" >&6; } 14976else 14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14978$as_echo "no" >&6; } 14979fi 14980 14981 if test "x$ac_ct_RANLIB" = x; then 14982 RANLIB=":" 14983 else 14984 case $cross_compiling:$ac_tool_warned in 14985yes:) 14986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14988ac_tool_warned=yes ;; 14989esac 14990 RANLIB=$ac_ct_RANLIB 14991 fi 14992else 14993 RANLIB="$ac_cv_prog_RANLIB" 14994fi 14995 14996test -z "$RANLIB" && RANLIB=: 14997 14998 14999 15000 15001 15002 15003# Determine commands to create old-style static archives. 15004old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 15005old_postinstall_cmds='chmod 644 $oldlib' 15006old_postuninstall_cmds= 15007 15008if test -n "$RANLIB"; then 15009 case $host_os in 15010 bitrig* | openbsd*) 15011 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 15012 ;; 15013 *) 15014 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 15015 ;; 15016 esac 15017 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 15018fi 15019 15020case $host_os in 15021 darwin*) 15022 lock_old_archive_extraction=yes ;; 15023 *) 15024 lock_old_archive_extraction=no ;; 15025esac 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 15061 15062 15063 15064 15065# If no C compiler was specified, use CC. 15066LTCC=${LTCC-"$CC"} 15067 15068# If no C compiler flags were specified, use CFLAGS. 15069LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15070 15071# Allow CC to be a program name with arguments. 15072compiler=$CC 15073 15074 15075# Check for command to grab the raw symbol name followed by C symbol from nm. 15076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 15077$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 15078if ${lt_cv_sys_global_symbol_pipe+:} false; then : 15079 $as_echo_n "(cached) " >&6 15080else 15081 15082# These are sane defaults that work on at least a few old systems. 15083# [They come from Ultrix. What could be older than Ultrix?!! ;)] 15084 15085# Character class describing NM global symbol codes. 15086symcode='[BCDEGRST]' 15087 15088# Regexp to match symbols that can be accessed directly from C. 15089sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 15090 15091# Define system-specific variables. 15092case $host_os in 15093aix*) 15094 symcode='[BCDT]' 15095 ;; 15096cygwin* | mingw* | pw32* | cegcc*) 15097 symcode='[ABCDGISTW]' 15098 ;; 15099hpux*) 15100 if test ia64 = "$host_cpu"; then 15101 symcode='[ABCDEGRST]' 15102 fi 15103 ;; 15104irix* | nonstopux*) 15105 symcode='[BCDEGRST]' 15106 ;; 15107osf*) 15108 symcode='[BCDEGQRST]' 15109 ;; 15110solaris*) 15111 symcode='[BDRT]' 15112 ;; 15113sco3.2v5*) 15114 symcode='[DT]' 15115 ;; 15116sysv4.2uw2*) 15117 symcode='[DT]' 15118 ;; 15119sysv5* | sco5v6* | unixware* | OpenUNIX*) 15120 symcode='[ABDT]' 15121 ;; 15122sysv4) 15123 symcode='[DFNSTU]' 15124 ;; 15125esac 15126 15127# If we're using GNU nm, then use its standard symbol codes. 15128case `$NM -V 2>&1` in 15129*GNU* | *'with BFD'*) 15130 symcode='[ABCDGIRSTW]' ;; 15131esac 15132 15133if test "$lt_cv_nm_interface" = "MS dumpbin"; then 15134 # Gets list of data symbols to import. 15135 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 15136 # Adjust the below global symbol transforms to fixup imported variables. 15137 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 15138 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 15139 lt_c_name_lib_hook="\ 15140 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 15141 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 15142else 15143 # Disable hooks by default. 15144 lt_cv_sys_global_symbol_to_import= 15145 lt_cdecl_hook= 15146 lt_c_name_hook= 15147 lt_c_name_lib_hook= 15148fi 15149 15150# Transform an extracted symbol line into a proper C declaration. 15151# Some systems (esp. on ia64) link data and code symbols differently, 15152# so use this general approach. 15153lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 15154$lt_cdecl_hook\ 15155" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 15156" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 15157 15158# Transform an extracted symbol line into symbol name and symbol address 15159lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 15160$lt_c_name_hook\ 15161" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 15162" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 15163 15164# Transform an extracted symbol line into symbol name with lib prefix and 15165# symbol address. 15166lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 15167$lt_c_name_lib_hook\ 15168" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 15169" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 15170" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 15171 15172# Handle CRLF in mingw tool chain 15173opt_cr= 15174case $build_os in 15175mingw*) 15176 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 15177 ;; 15178esac 15179 15180# Try without a prefix underscore, then with it. 15181for ac_symprfx in "" "_"; do 15182 15183 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 15184 symxfrm="\\1 $ac_symprfx\\2 \\2" 15185 15186 # Write the raw and C identifiers. 15187 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 15188 # Fake it for dumpbin and say T for any non-static function, 15189 # D for any global variable and I for any imported variable. 15190 # Also find C++ and __fastcall symbols from MSVC++, 15191 # which start with @ or ?. 15192 lt_cv_sys_global_symbol_pipe="$AWK '"\ 15193" {last_section=section; section=\$ 3};"\ 15194" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 15195" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 15196" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 15197" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 15198" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 15199" \$ 0!~/External *\|/{next};"\ 15200" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 15201" {if(hide[section]) next};"\ 15202" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 15203" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 15204" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 15205" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 15206" ' prfx=^$ac_symprfx" 15207 else 15208 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 15209 fi 15210 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 15211 15212 # Check to see that the pipe works correctly. 15213 pipe_works=no 15214 15215 rm -f conftest* 15216 cat > conftest.$ac_ext <<_LT_EOF 15217#ifdef __cplusplus 15218extern "C" { 15219#endif 15220char nm_test_var; 15221void nm_test_func(void); 15222void nm_test_func(void){} 15223#ifdef __cplusplus 15224} 15225#endif 15226int main(){nm_test_var='a';nm_test_func();return(0);} 15227_LT_EOF 15228 15229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15230 (eval $ac_compile) 2>&5 15231 ac_status=$? 15232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15233 test $ac_status = 0; }; then 15234 # Now try to grab the symbols. 15235 nlist=conftest.nm 15236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 15237 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 15238 ac_status=$? 15239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15240 test $ac_status = 0; } && test -s "$nlist"; then 15241 # Try sorting and uniquifying the output. 15242 if sort "$nlist" | uniq > "$nlist"T; then 15243 mv -f "$nlist"T "$nlist" 15244 else 15245 rm -f "$nlist"T 15246 fi 15247 15248 # Make sure that we snagged all the symbols we need. 15249 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 15250 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 15251 cat <<_LT_EOF > conftest.$ac_ext 15252/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 15253#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 15254/* DATA imports from DLLs on WIN32 can't be const, because runtime 15255 relocations are performed -- see ld's documentation on pseudo-relocs. */ 15256# define LT_DLSYM_CONST 15257#elif defined __osf__ 15258/* This system does not cope well with relocations in const data. */ 15259# define LT_DLSYM_CONST 15260#else 15261# define LT_DLSYM_CONST const 15262#endif 15263 15264#ifdef __cplusplus 15265extern "C" { 15266#endif 15267 15268_LT_EOF 15269 # Now generate the symbol file. 15270 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 15271 15272 cat <<_LT_EOF >> conftest.$ac_ext 15273 15274/* The mapping between symbol names and symbols. */ 15275LT_DLSYM_CONST struct { 15276 const char *name; 15277 void *address; 15278} 15279lt__PROGRAM__LTX_preloaded_symbols[] = 15280{ 15281 { "@PROGRAM@", (void *) 0 }, 15282_LT_EOF 15283 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 15284 cat <<\_LT_EOF >> conftest.$ac_ext 15285 {0, (void *) 0} 15286}; 15287 15288/* This works around a problem in FreeBSD linker */ 15289#ifdef FREEBSD_WORKAROUND 15290static const void *lt_preloaded_setup() { 15291 return lt__PROGRAM__LTX_preloaded_symbols; 15292} 15293#endif 15294 15295#ifdef __cplusplus 15296} 15297#endif 15298_LT_EOF 15299 # Now try linking the two files. 15300 mv conftest.$ac_objext conftstm.$ac_objext 15301 lt_globsym_save_LIBS=$LIBS 15302 lt_globsym_save_CFLAGS=$CFLAGS 15303 LIBS=conftstm.$ac_objext 15304 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 15305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15306 (eval $ac_link) 2>&5 15307 ac_status=$? 15308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15309 test $ac_status = 0; } && test -s conftest$ac_exeext; then 15310 pipe_works=yes 15311 fi 15312 LIBS=$lt_globsym_save_LIBS 15313 CFLAGS=$lt_globsym_save_CFLAGS 15314 else 15315 echo "cannot find nm_test_func in $nlist" >&5 15316 fi 15317 else 15318 echo "cannot find nm_test_var in $nlist" >&5 15319 fi 15320 else 15321 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 15322 fi 15323 else 15324 echo "$progname: failed program was:" >&5 15325 cat conftest.$ac_ext >&5 15326 fi 15327 rm -rf conftest* conftst* 15328 15329 # Do not use the global_symbol_pipe unless it works. 15330 if test yes = "$pipe_works"; then 15331 break 15332 else 15333 lt_cv_sys_global_symbol_pipe= 15334 fi 15335done 15336 15337fi 15338 15339if test -z "$lt_cv_sys_global_symbol_pipe"; then 15340 lt_cv_sys_global_symbol_to_cdecl= 15341fi 15342if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 15344$as_echo "failed" >&6; } 15345else 15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15347$as_echo "ok" >&6; } 15348fi 15349 15350# Response file support. 15351if test "$lt_cv_nm_interface" = "MS dumpbin"; then 15352 nm_file_list_spec='@' 15353elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 15354 nm_file_list_spec='@' 15355fi 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 15389 15390 15391 15392 15393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 15394$as_echo_n "checking for sysroot... " >&6; } 15395 15396# Check whether --with-sysroot was given. 15397if test "${with_sysroot+set}" = set; then : 15398 withval=$with_sysroot; 15399else 15400 with_sysroot=no 15401fi 15402 15403 15404lt_sysroot= 15405case $with_sysroot in #( 15406 yes) 15407 if test yes = "$GCC"; then 15408 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 15409 fi 15410 ;; #( 15411 /*) 15412 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 15413 ;; #( 15414 no|'') 15415 ;; #( 15416 *) 15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 15418$as_echo "$with_sysroot" >&6; } 15419 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 15420 ;; 15421esac 15422 15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 15424$as_echo "${lt_sysroot:-no}" >&6; } 15425 15426 15427 15428 15429 15430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 15431$as_echo_n "checking for a working dd... " >&6; } 15432if ${ac_cv_path_lt_DD+:} false; then : 15433 $as_echo_n "(cached) " >&6 15434else 15435 printf 0123456789abcdef0123456789abcdef >conftest.i 15436cat conftest.i conftest.i >conftest2.i 15437: ${lt_DD:=$DD} 15438if test -z "$lt_DD"; then 15439 ac_path_lt_DD_found=false 15440 # Loop through the user's path and test for each of PROGNAME-LIST 15441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15442for as_dir in $PATH 15443do 15444 IFS=$as_save_IFS 15445 test -z "$as_dir" && as_dir=. 15446 for ac_prog in dd; do 15447 for ac_exec_ext in '' $ac_executable_extensions; do 15448 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 15449 as_fn_executable_p "$ac_path_lt_DD" || continue 15450if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 15451 cmp -s conftest.i conftest.out \ 15452 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 15453fi 15454 $ac_path_lt_DD_found && break 3 15455 done 15456 done 15457 done 15458IFS=$as_save_IFS 15459 if test -z "$ac_cv_path_lt_DD"; then 15460 : 15461 fi 15462else 15463 ac_cv_path_lt_DD=$lt_DD 15464fi 15465 15466rm -f conftest.i conftest2.i conftest.out 15467fi 15468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 15469$as_echo "$ac_cv_path_lt_DD" >&6; } 15470 15471 15472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 15473$as_echo_n "checking how to truncate binary pipes... " >&6; } 15474if ${lt_cv_truncate_bin+:} false; then : 15475 $as_echo_n "(cached) " >&6 15476else 15477 printf 0123456789abcdef0123456789abcdef >conftest.i 15478cat conftest.i conftest.i >conftest2.i 15479lt_cv_truncate_bin= 15480if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 15481 cmp -s conftest.i conftest.out \ 15482 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 15483fi 15484rm -f conftest.i conftest2.i conftest.out 15485test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 15486fi 15487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 15488$as_echo "$lt_cv_truncate_bin" >&6; } 15489 15490 15491 15492 15493 15494 15495 15496# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15497func_cc_basename () 15498{ 15499 for cc_temp in $*""; do 15500 case $cc_temp in 15501 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15502 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15503 \-*) ;; 15504 *) break;; 15505 esac 15506 done 15507 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15508} 15509 15510# Check whether --enable-libtool-lock was given. 15511if test "${enable_libtool_lock+set}" = set; then : 15512 enableval=$enable_libtool_lock; 15513fi 15514 15515test no = "$enable_libtool_lock" || enable_libtool_lock=yes 15516 15517# Some flags need to be propagated to the compiler or linker for good 15518# libtool support. 15519case $host in 15520ia64-*-hpux*) 15521 # Find out what ABI is being produced by ac_compile, and set mode 15522 # options accordingly. 15523 echo 'int i;' > conftest.$ac_ext 15524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15525 (eval $ac_compile) 2>&5 15526 ac_status=$? 15527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15528 test $ac_status = 0; }; then 15529 case `/usr/bin/file conftest.$ac_objext` in 15530 *ELF-32*) 15531 HPUX_IA64_MODE=32 15532 ;; 15533 *ELF-64*) 15534 HPUX_IA64_MODE=64 15535 ;; 15536 esac 15537 fi 15538 rm -rf conftest* 15539 ;; 15540*-*-irix6*) 15541 # Find out what ABI is being produced by ac_compile, and set linker 15542 # options accordingly. 15543 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 15544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15545 (eval $ac_compile) 2>&5 15546 ac_status=$? 15547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15548 test $ac_status = 0; }; then 15549 if test yes = "$lt_cv_prog_gnu_ld"; then 15550 case `/usr/bin/file conftest.$ac_objext` in 15551 *32-bit*) 15552 LD="${LD-ld} -melf32bsmip" 15553 ;; 15554 *N32*) 15555 LD="${LD-ld} -melf32bmipn32" 15556 ;; 15557 *64-bit*) 15558 LD="${LD-ld} -melf64bmip" 15559 ;; 15560 esac 15561 else 15562 case `/usr/bin/file conftest.$ac_objext` in 15563 *32-bit*) 15564 LD="${LD-ld} -32" 15565 ;; 15566 *N32*) 15567 LD="${LD-ld} -n32" 15568 ;; 15569 *64-bit*) 15570 LD="${LD-ld} -64" 15571 ;; 15572 esac 15573 fi 15574 fi 15575 rm -rf conftest* 15576 ;; 15577 15578mips64*-*linux*) 15579 # Find out what ABI is being produced by ac_compile, and set linker 15580 # options accordingly. 15581 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 15582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15583 (eval $ac_compile) 2>&5 15584 ac_status=$? 15585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15586 test $ac_status = 0; }; then 15587 emul=elf 15588 case `/usr/bin/file conftest.$ac_objext` in 15589 *32-bit*) 15590 emul="${emul}32" 15591 ;; 15592 *64-bit*) 15593 emul="${emul}64" 15594 ;; 15595 esac 15596 case `/usr/bin/file conftest.$ac_objext` in 15597 *MSB*) 15598 emul="${emul}btsmip" 15599 ;; 15600 *LSB*) 15601 emul="${emul}ltsmip" 15602 ;; 15603 esac 15604 case `/usr/bin/file conftest.$ac_objext` in 15605 *N32*) 15606 emul="${emul}n32" 15607 ;; 15608 esac 15609 LD="${LD-ld} -m $emul" 15610 fi 15611 rm -rf conftest* 15612 ;; 15613 15614x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 15615s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 15616 # Find out what ABI is being produced by ac_compile, and set linker 15617 # options accordingly. Note that the listed cases only cover the 15618 # situations where additional linker options are needed (such as when 15619 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 15620 # vice versa); the common cases where no linker options are needed do 15621 # not appear in the list. 15622 echo 'int i;' > conftest.$ac_ext 15623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15624 (eval $ac_compile) 2>&5 15625 ac_status=$? 15626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15627 test $ac_status = 0; }; then 15628 case `/usr/bin/file conftest.o` in 15629 *32-bit*) 15630 case $host in 15631 x86_64-*kfreebsd*-gnu) 15632 LD="${LD-ld} -m elf_i386_fbsd" 15633 ;; 15634 x86_64-*linux*) 15635 case `/usr/bin/file conftest.o` in 15636 *x86-64*) 15637 LD="${LD-ld} -m elf32_x86_64" 15638 ;; 15639 *) 15640 LD="${LD-ld} -m elf_i386" 15641 ;; 15642 esac 15643 ;; 15644 powerpc64le-*linux*) 15645 LD="${LD-ld} -m elf32lppclinux" 15646 ;; 15647 powerpc64-*linux*) 15648 LD="${LD-ld} -m elf32ppclinux" 15649 ;; 15650 s390x-*linux*) 15651 LD="${LD-ld} -m elf_s390" 15652 ;; 15653 sparc64-*linux*) 15654 LD="${LD-ld} -m elf32_sparc" 15655 ;; 15656 esac 15657 ;; 15658 *64-bit*) 15659 case $host in 15660 x86_64-*kfreebsd*-gnu) 15661 LD="${LD-ld} -m elf_x86_64_fbsd" 15662 ;; 15663 x86_64-*linux*) 15664 LD="${LD-ld} -m elf_x86_64" 15665 ;; 15666 powerpcle-*linux*) 15667 LD="${LD-ld} -m elf64lppc" 15668 ;; 15669 powerpc-*linux*) 15670 LD="${LD-ld} -m elf64ppc" 15671 ;; 15672 s390*-*linux*|s390*-*tpf*) 15673 LD="${LD-ld} -m elf64_s390" 15674 ;; 15675 sparc*-*linux*) 15676 LD="${LD-ld} -m elf64_sparc" 15677 ;; 15678 esac 15679 ;; 15680 esac 15681 fi 15682 rm -rf conftest* 15683 ;; 15684 15685*-*-sco3.2v5*) 15686 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 15687 SAVE_CFLAGS=$CFLAGS 15688 CFLAGS="$CFLAGS -belf" 15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 15690$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 15691if ${lt_cv_cc_needs_belf+:} false; then : 15692 $as_echo_n "(cached) " >&6 15693else 15694 ac_ext=c 15695ac_cpp='$CPP $CPPFLAGS' 15696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15698ac_compiler_gnu=$ac_cv_c_compiler_gnu 15699 15700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15701/* end confdefs.h. */ 15702 15703int 15704main () 15705{ 15706 15707 ; 15708 return 0; 15709} 15710_ACEOF 15711if ac_fn_c_try_link "$LINENO"; then : 15712 lt_cv_cc_needs_belf=yes 15713else 15714 lt_cv_cc_needs_belf=no 15715fi 15716rm -f core conftest.err conftest.$ac_objext \ 15717 conftest$ac_exeext conftest.$ac_ext 15718 ac_ext=c 15719ac_cpp='$CPP $CPPFLAGS' 15720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15722ac_compiler_gnu=$ac_cv_c_compiler_gnu 15723 15724fi 15725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 15726$as_echo "$lt_cv_cc_needs_belf" >&6; } 15727 if test yes != "$lt_cv_cc_needs_belf"; then 15728 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 15729 CFLAGS=$SAVE_CFLAGS 15730 fi 15731 ;; 15732*-*solaris*) 15733 # Find out what ABI is being produced by ac_compile, and set linker 15734 # options accordingly. 15735 echo 'int i;' > conftest.$ac_ext 15736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15737 (eval $ac_compile) 2>&5 15738 ac_status=$? 15739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15740 test $ac_status = 0; }; then 15741 case `/usr/bin/file conftest.o` in 15742 *64-bit*) 15743 case $lt_cv_prog_gnu_ld in 15744 yes*) 15745 case $host in 15746 i?86-*-solaris*|x86_64-*-solaris*) 15747 LD="${LD-ld} -m elf_x86_64" 15748 ;; 15749 sparc*-*-solaris*) 15750 LD="${LD-ld} -m elf64_sparc" 15751 ;; 15752 esac 15753 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 15754 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 15755 LD=${LD-ld}_sol2 15756 fi 15757 ;; 15758 *) 15759 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 15760 LD="${LD-ld} -64" 15761 fi 15762 ;; 15763 esac 15764 ;; 15765 esac 15766 fi 15767 rm -rf conftest* 15768 ;; 15769esac 15770 15771need_locks=$enable_libtool_lock 15772 15773if test -n "$ac_tool_prefix"; then 15774 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 15775set dummy ${ac_tool_prefix}mt; ac_word=$2 15776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15777$as_echo_n "checking for $ac_word... " >&6; } 15778if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 15779 $as_echo_n "(cached) " >&6 15780else 15781 if test -n "$MANIFEST_TOOL"; then 15782 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 15783else 15784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15785for as_dir in $PATH 15786do 15787 IFS=$as_save_IFS 15788 test -z "$as_dir" && as_dir=. 15789 for ac_exec_ext in '' $ac_executable_extensions; do 15790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15791 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 15792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15793 break 2 15794 fi 15795done 15796 done 15797IFS=$as_save_IFS 15798 15799fi 15800fi 15801MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 15802if test -n "$MANIFEST_TOOL"; then 15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 15804$as_echo "$MANIFEST_TOOL" >&6; } 15805else 15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15807$as_echo "no" >&6; } 15808fi 15809 15810 15811fi 15812if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 15813 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 15814 # Extract the first word of "mt", so it can be a program name with args. 15815set dummy mt; ac_word=$2 15816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15817$as_echo_n "checking for $ac_word... " >&6; } 15818if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 15819 $as_echo_n "(cached) " >&6 15820else 15821 if test -n "$ac_ct_MANIFEST_TOOL"; then 15822 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 15823else 15824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15825for as_dir in $PATH 15826do 15827 IFS=$as_save_IFS 15828 test -z "$as_dir" && as_dir=. 15829 for ac_exec_ext in '' $ac_executable_extensions; do 15830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15831 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 15832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15833 break 2 15834 fi 15835done 15836 done 15837IFS=$as_save_IFS 15838 15839fi 15840fi 15841ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 15842if test -n "$ac_ct_MANIFEST_TOOL"; then 15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 15844$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 15845else 15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15847$as_echo "no" >&6; } 15848fi 15849 15850 if test "x$ac_ct_MANIFEST_TOOL" = x; then 15851 MANIFEST_TOOL=":" 15852 else 15853 case $cross_compiling:$ac_tool_warned in 15854yes:) 15855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15857ac_tool_warned=yes ;; 15858esac 15859 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 15860 fi 15861else 15862 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 15863fi 15864 15865test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 15866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 15867$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 15868if ${lt_cv_path_mainfest_tool+:} false; then : 15869 $as_echo_n "(cached) " >&6 15870else 15871 lt_cv_path_mainfest_tool=no 15872 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 15873 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 15874 cat conftest.err >&5 15875 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 15876 lt_cv_path_mainfest_tool=yes 15877 fi 15878 rm -f conftest* 15879fi 15880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 15881$as_echo "$lt_cv_path_mainfest_tool" >&6; } 15882if test yes != "$lt_cv_path_mainfest_tool"; then 15883 MANIFEST_TOOL=: 15884fi 15885 15886 15887 15888 15889 15890 15891 case $host_os in 15892 rhapsody* | darwin*) 15893 if test -n "$ac_tool_prefix"; then 15894 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 15895set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 15896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15897$as_echo_n "checking for $ac_word... " >&6; } 15898if ${ac_cv_prog_DSYMUTIL+:} false; then : 15899 $as_echo_n "(cached) " >&6 15900else 15901 if test -n "$DSYMUTIL"; then 15902 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 15903else 15904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15905for as_dir in $PATH 15906do 15907 IFS=$as_save_IFS 15908 test -z "$as_dir" && as_dir=. 15909 for ac_exec_ext in '' $ac_executable_extensions; do 15910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15911 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 15912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15913 break 2 15914 fi 15915done 15916 done 15917IFS=$as_save_IFS 15918 15919fi 15920fi 15921DSYMUTIL=$ac_cv_prog_DSYMUTIL 15922if test -n "$DSYMUTIL"; then 15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 15924$as_echo "$DSYMUTIL" >&6; } 15925else 15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15927$as_echo "no" >&6; } 15928fi 15929 15930 15931fi 15932if test -z "$ac_cv_prog_DSYMUTIL"; then 15933 ac_ct_DSYMUTIL=$DSYMUTIL 15934 # Extract the first word of "dsymutil", so it can be a program name with args. 15935set dummy dsymutil; ac_word=$2 15936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15937$as_echo_n "checking for $ac_word... " >&6; } 15938if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 15939 $as_echo_n "(cached) " >&6 15940else 15941 if test -n "$ac_ct_DSYMUTIL"; then 15942 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 15943else 15944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15945for as_dir in $PATH 15946do 15947 IFS=$as_save_IFS 15948 test -z "$as_dir" && as_dir=. 15949 for ac_exec_ext in '' $ac_executable_extensions; do 15950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15951 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 15952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15953 break 2 15954 fi 15955done 15956 done 15957IFS=$as_save_IFS 15958 15959fi 15960fi 15961ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 15962if test -n "$ac_ct_DSYMUTIL"; then 15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 15964$as_echo "$ac_ct_DSYMUTIL" >&6; } 15965else 15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15967$as_echo "no" >&6; } 15968fi 15969 15970 if test "x$ac_ct_DSYMUTIL" = x; then 15971 DSYMUTIL=":" 15972 else 15973 case $cross_compiling:$ac_tool_warned in 15974yes:) 15975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15977ac_tool_warned=yes ;; 15978esac 15979 DSYMUTIL=$ac_ct_DSYMUTIL 15980 fi 15981else 15982 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 15983fi 15984 15985 if test -n "$ac_tool_prefix"; then 15986 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 15987set dummy ${ac_tool_prefix}nmedit; ac_word=$2 15988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15989$as_echo_n "checking for $ac_word... " >&6; } 15990if ${ac_cv_prog_NMEDIT+:} false; then : 15991 $as_echo_n "(cached) " >&6 15992else 15993 if test -n "$NMEDIT"; then 15994 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 15995else 15996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15997for as_dir in $PATH 15998do 15999 IFS=$as_save_IFS 16000 test -z "$as_dir" && as_dir=. 16001 for ac_exec_ext in '' $ac_executable_extensions; do 16002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16003 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 16004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16005 break 2 16006 fi 16007done 16008 done 16009IFS=$as_save_IFS 16010 16011fi 16012fi 16013NMEDIT=$ac_cv_prog_NMEDIT 16014if test -n "$NMEDIT"; then 16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 16016$as_echo "$NMEDIT" >&6; } 16017else 16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16019$as_echo "no" >&6; } 16020fi 16021 16022 16023fi 16024if test -z "$ac_cv_prog_NMEDIT"; then 16025 ac_ct_NMEDIT=$NMEDIT 16026 # Extract the first word of "nmedit", so it can be a program name with args. 16027set dummy nmedit; ac_word=$2 16028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16029$as_echo_n "checking for $ac_word... " >&6; } 16030if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 16031 $as_echo_n "(cached) " >&6 16032else 16033 if test -n "$ac_ct_NMEDIT"; then 16034 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 16035else 16036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16037for as_dir in $PATH 16038do 16039 IFS=$as_save_IFS 16040 test -z "$as_dir" && as_dir=. 16041 for ac_exec_ext in '' $ac_executable_extensions; do 16042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16043 ac_cv_prog_ac_ct_NMEDIT="nmedit" 16044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16045 break 2 16046 fi 16047done 16048 done 16049IFS=$as_save_IFS 16050 16051fi 16052fi 16053ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 16054if test -n "$ac_ct_NMEDIT"; then 16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 16056$as_echo "$ac_ct_NMEDIT" >&6; } 16057else 16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16059$as_echo "no" >&6; } 16060fi 16061 16062 if test "x$ac_ct_NMEDIT" = x; then 16063 NMEDIT=":" 16064 else 16065 case $cross_compiling:$ac_tool_warned in 16066yes:) 16067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16069ac_tool_warned=yes ;; 16070esac 16071 NMEDIT=$ac_ct_NMEDIT 16072 fi 16073else 16074 NMEDIT="$ac_cv_prog_NMEDIT" 16075fi 16076 16077 if test -n "$ac_tool_prefix"; then 16078 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 16079set dummy ${ac_tool_prefix}lipo; ac_word=$2 16080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16081$as_echo_n "checking for $ac_word... " >&6; } 16082if ${ac_cv_prog_LIPO+:} false; then : 16083 $as_echo_n "(cached) " >&6 16084else 16085 if test -n "$LIPO"; then 16086 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 16087else 16088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16089for as_dir in $PATH 16090do 16091 IFS=$as_save_IFS 16092 test -z "$as_dir" && as_dir=. 16093 for ac_exec_ext in '' $ac_executable_extensions; do 16094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16095 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 16096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16097 break 2 16098 fi 16099done 16100 done 16101IFS=$as_save_IFS 16102 16103fi 16104fi 16105LIPO=$ac_cv_prog_LIPO 16106if test -n "$LIPO"; then 16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 16108$as_echo "$LIPO" >&6; } 16109else 16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16111$as_echo "no" >&6; } 16112fi 16113 16114 16115fi 16116if test -z "$ac_cv_prog_LIPO"; then 16117 ac_ct_LIPO=$LIPO 16118 # Extract the first word of "lipo", so it can be a program name with args. 16119set dummy lipo; ac_word=$2 16120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16121$as_echo_n "checking for $ac_word... " >&6; } 16122if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 16123 $as_echo_n "(cached) " >&6 16124else 16125 if test -n "$ac_ct_LIPO"; then 16126 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 16127else 16128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16129for as_dir in $PATH 16130do 16131 IFS=$as_save_IFS 16132 test -z "$as_dir" && as_dir=. 16133 for ac_exec_ext in '' $ac_executable_extensions; do 16134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16135 ac_cv_prog_ac_ct_LIPO="lipo" 16136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16137 break 2 16138 fi 16139done 16140 done 16141IFS=$as_save_IFS 16142 16143fi 16144fi 16145ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 16146if test -n "$ac_ct_LIPO"; then 16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 16148$as_echo "$ac_ct_LIPO" >&6; } 16149else 16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16151$as_echo "no" >&6; } 16152fi 16153 16154 if test "x$ac_ct_LIPO" = x; then 16155 LIPO=":" 16156 else 16157 case $cross_compiling:$ac_tool_warned in 16158yes:) 16159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16161ac_tool_warned=yes ;; 16162esac 16163 LIPO=$ac_ct_LIPO 16164 fi 16165else 16166 LIPO="$ac_cv_prog_LIPO" 16167fi 16168 16169 if test -n "$ac_tool_prefix"; then 16170 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 16171set dummy ${ac_tool_prefix}otool; ac_word=$2 16172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16173$as_echo_n "checking for $ac_word... " >&6; } 16174if ${ac_cv_prog_OTOOL+:} false; then : 16175 $as_echo_n "(cached) " >&6 16176else 16177 if test -n "$OTOOL"; then 16178 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 16179else 16180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16181for as_dir in $PATH 16182do 16183 IFS=$as_save_IFS 16184 test -z "$as_dir" && as_dir=. 16185 for ac_exec_ext in '' $ac_executable_extensions; do 16186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16187 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 16188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16189 break 2 16190 fi 16191done 16192 done 16193IFS=$as_save_IFS 16194 16195fi 16196fi 16197OTOOL=$ac_cv_prog_OTOOL 16198if test -n "$OTOOL"; then 16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 16200$as_echo "$OTOOL" >&6; } 16201else 16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16203$as_echo "no" >&6; } 16204fi 16205 16206 16207fi 16208if test -z "$ac_cv_prog_OTOOL"; then 16209 ac_ct_OTOOL=$OTOOL 16210 # Extract the first word of "otool", so it can be a program name with args. 16211set dummy otool; ac_word=$2 16212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16213$as_echo_n "checking for $ac_word... " >&6; } 16214if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 16215 $as_echo_n "(cached) " >&6 16216else 16217 if test -n "$ac_ct_OTOOL"; then 16218 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 16219else 16220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16221for as_dir in $PATH 16222do 16223 IFS=$as_save_IFS 16224 test -z "$as_dir" && as_dir=. 16225 for ac_exec_ext in '' $ac_executable_extensions; do 16226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16227 ac_cv_prog_ac_ct_OTOOL="otool" 16228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16229 break 2 16230 fi 16231done 16232 done 16233IFS=$as_save_IFS 16234 16235fi 16236fi 16237ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 16238if test -n "$ac_ct_OTOOL"; then 16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 16240$as_echo "$ac_ct_OTOOL" >&6; } 16241else 16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16243$as_echo "no" >&6; } 16244fi 16245 16246 if test "x$ac_ct_OTOOL" = x; then 16247 OTOOL=":" 16248 else 16249 case $cross_compiling:$ac_tool_warned in 16250yes:) 16251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16253ac_tool_warned=yes ;; 16254esac 16255 OTOOL=$ac_ct_OTOOL 16256 fi 16257else 16258 OTOOL="$ac_cv_prog_OTOOL" 16259fi 16260 16261 if test -n "$ac_tool_prefix"; then 16262 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 16263set dummy ${ac_tool_prefix}otool64; ac_word=$2 16264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16265$as_echo_n "checking for $ac_word... " >&6; } 16266if ${ac_cv_prog_OTOOL64+:} false; then : 16267 $as_echo_n "(cached) " >&6 16268else 16269 if test -n "$OTOOL64"; then 16270 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 16271else 16272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16273for as_dir in $PATH 16274do 16275 IFS=$as_save_IFS 16276 test -z "$as_dir" && as_dir=. 16277 for ac_exec_ext in '' $ac_executable_extensions; do 16278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16279 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 16280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16281 break 2 16282 fi 16283done 16284 done 16285IFS=$as_save_IFS 16286 16287fi 16288fi 16289OTOOL64=$ac_cv_prog_OTOOL64 16290if test -n "$OTOOL64"; then 16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 16292$as_echo "$OTOOL64" >&6; } 16293else 16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16295$as_echo "no" >&6; } 16296fi 16297 16298 16299fi 16300if test -z "$ac_cv_prog_OTOOL64"; then 16301 ac_ct_OTOOL64=$OTOOL64 16302 # Extract the first word of "otool64", so it can be a program name with args. 16303set dummy otool64; ac_word=$2 16304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16305$as_echo_n "checking for $ac_word... " >&6; } 16306if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 16307 $as_echo_n "(cached) " >&6 16308else 16309 if test -n "$ac_ct_OTOOL64"; then 16310 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 16311else 16312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16313for as_dir in $PATH 16314do 16315 IFS=$as_save_IFS 16316 test -z "$as_dir" && as_dir=. 16317 for ac_exec_ext in '' $ac_executable_extensions; do 16318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16319 ac_cv_prog_ac_ct_OTOOL64="otool64" 16320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16321 break 2 16322 fi 16323done 16324 done 16325IFS=$as_save_IFS 16326 16327fi 16328fi 16329ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 16330if test -n "$ac_ct_OTOOL64"; then 16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 16332$as_echo "$ac_ct_OTOOL64" >&6; } 16333else 16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16335$as_echo "no" >&6; } 16336fi 16337 16338 if test "x$ac_ct_OTOOL64" = x; then 16339 OTOOL64=":" 16340 else 16341 case $cross_compiling:$ac_tool_warned in 16342yes:) 16343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16345ac_tool_warned=yes ;; 16346esac 16347 OTOOL64=$ac_ct_OTOOL64 16348 fi 16349else 16350 OTOOL64="$ac_cv_prog_OTOOL64" 16351fi 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 16380$as_echo_n "checking for -single_module linker flag... " >&6; } 16381if ${lt_cv_apple_cc_single_mod+:} false; then : 16382 $as_echo_n "(cached) " >&6 16383else 16384 lt_cv_apple_cc_single_mod=no 16385 if test -z "$LT_MULTI_MODULE"; then 16386 # By default we will add the -single_module flag. You can override 16387 # by either setting the environment variable LT_MULTI_MODULE 16388 # non-empty at configure time, or by adding -multi_module to the 16389 # link flags. 16390 rm -rf libconftest.dylib* 16391 echo "int foo(void){return 1;}" > conftest.c 16392 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 16393-dynamiclib -Wl,-single_module conftest.c" >&5 16394 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 16395 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 16396 _lt_result=$? 16397 # If there is a non-empty error log, and "single_module" 16398 # appears in it, assume the flag caused a linker warning 16399 if test -s conftest.err && $GREP single_module conftest.err; then 16400 cat conftest.err >&5 16401 # Otherwise, if the output was created with a 0 exit code from 16402 # the compiler, it worked. 16403 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 16404 lt_cv_apple_cc_single_mod=yes 16405 else 16406 cat conftest.err >&5 16407 fi 16408 rm -rf libconftest.dylib* 16409 rm -f conftest.* 16410 fi 16411fi 16412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 16413$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 16414 16415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 16416$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 16417if ${lt_cv_ld_exported_symbols_list+:} false; then : 16418 $as_echo_n "(cached) " >&6 16419else 16420 lt_cv_ld_exported_symbols_list=no 16421 save_LDFLAGS=$LDFLAGS 16422 echo "_main" > conftest.sym 16423 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 16424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16425/* end confdefs.h. */ 16426 16427int 16428main () 16429{ 16430 16431 ; 16432 return 0; 16433} 16434_ACEOF 16435if ac_fn_c_try_link "$LINENO"; then : 16436 lt_cv_ld_exported_symbols_list=yes 16437else 16438 lt_cv_ld_exported_symbols_list=no 16439fi 16440rm -f core conftest.err conftest.$ac_objext \ 16441 conftest$ac_exeext conftest.$ac_ext 16442 LDFLAGS=$save_LDFLAGS 16443 16444fi 16445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 16446$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 16447 16448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 16449$as_echo_n "checking for -force_load linker flag... " >&6; } 16450if ${lt_cv_ld_force_load+:} false; then : 16451 $as_echo_n "(cached) " >&6 16452else 16453 lt_cv_ld_force_load=no 16454 cat > conftest.c << _LT_EOF 16455int forced_loaded() { return 2;} 16456_LT_EOF 16457 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 16458 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 16459 echo "$AR cru libconftest.a conftest.o" >&5 16460 $AR cru libconftest.a conftest.o 2>&5 16461 echo "$RANLIB libconftest.a" >&5 16462 $RANLIB libconftest.a 2>&5 16463 cat > conftest.c << _LT_EOF 16464int main() { return 0;} 16465_LT_EOF 16466 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 16467 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 16468 _lt_result=$? 16469 if test -s conftest.err && $GREP force_load conftest.err; then 16470 cat conftest.err >&5 16471 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 16472 lt_cv_ld_force_load=yes 16473 else 16474 cat conftest.err >&5 16475 fi 16476 rm -f conftest.err libconftest.a conftest conftest.c 16477 rm -rf conftest.dSYM 16478 16479fi 16480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 16481$as_echo "$lt_cv_ld_force_load" >&6; } 16482 case $host_os in 16483 rhapsody* | darwin1.[012]) 16484 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 16485 darwin1.*) 16486 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 16487 darwin*) # darwin 5.x on 16488 # if running on 10.5 or later, the deployment target defaults 16489 # to the OS version, if on x86, and 10.4, the deployment 16490 # target defaults to 10.4. Don't you love it? 16491 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 16492 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 16493 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 16494 10.[012][,.]*) 16495 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 16496 10.*) 16497 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 16498 esac 16499 ;; 16500 esac 16501 if test yes = "$lt_cv_apple_cc_single_mod"; then 16502 _lt_dar_single_mod='$single_module' 16503 fi 16504 if test yes = "$lt_cv_ld_exported_symbols_list"; then 16505 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 16506 else 16507 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 16508 fi 16509 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 16510 _lt_dsymutil='~$DSYMUTIL $lib || :' 16511 else 16512 _lt_dsymutil= 16513 fi 16514 ;; 16515 esac 16516 16517# func_munge_path_list VARIABLE PATH 16518# ----------------------------------- 16519# VARIABLE is name of variable containing _space_ separated list of 16520# directories to be munged by the contents of PATH, which is string 16521# having a format: 16522# "DIR[:DIR]:" 16523# string "DIR[ DIR]" will be prepended to VARIABLE 16524# ":DIR[:DIR]" 16525# string "DIR[ DIR]" will be appended to VARIABLE 16526# "DIRP[:DIRP]::[DIRA:]DIRA" 16527# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 16528# "DIRA[ DIRA]" will be appended to VARIABLE 16529# "DIR[:DIR]" 16530# VARIABLE will be replaced by "DIR[ DIR]" 16531func_munge_path_list () 16532{ 16533 case x$2 in 16534 x) 16535 ;; 16536 *:) 16537 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 16538 ;; 16539 x:*) 16540 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 16541 ;; 16542 *::*) 16543 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 16544 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 16545 ;; 16546 *) 16547 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 16548 ;; 16549 esac 16550} 16551 16552for ac_header in dlfcn.h 16553do : 16554 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 16555" 16556if test "x$ac_cv_header_dlfcn_h" = xyes; then : 16557 cat >>confdefs.h <<_ACEOF 16558#define HAVE_DLFCN_H 1 16559_ACEOF 16560 16561fi 16562 16563done 16564 16565 16566 16567 16568 16569# Set options 16570# Check whether --enable-static was given. 16571if test "${enable_static+set}" = set; then : 16572 enableval=$enable_static; p=${PACKAGE-default} 16573 case $enableval in 16574 yes) enable_static=yes ;; 16575 no) enable_static=no ;; 16576 *) 16577 enable_static=no 16578 # Look at the argument we got. We use all the common list separators. 16579 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16580 for pkg in $enableval; do 16581 IFS=$lt_save_ifs 16582 if test "X$pkg" = "X$p"; then 16583 enable_static=yes 16584 fi 16585 done 16586 IFS=$lt_save_ifs 16587 ;; 16588 esac 16589else 16590 enable_static=no 16591fi 16592 16593 16594 16595 16596 16597 16598 16599enable_win32_dll=yes 16600 16601case $host in 16602*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 16603 if test -n "$ac_tool_prefix"; then 16604 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 16605set dummy ${ac_tool_prefix}as; ac_word=$2 16606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16607$as_echo_n "checking for $ac_word... " >&6; } 16608if ${ac_cv_prog_AS+:} false; then : 16609 $as_echo_n "(cached) " >&6 16610else 16611 if test -n "$AS"; then 16612 ac_cv_prog_AS="$AS" # Let the user override the test. 16613else 16614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16615for as_dir in $PATH 16616do 16617 IFS=$as_save_IFS 16618 test -z "$as_dir" && as_dir=. 16619 for ac_exec_ext in '' $ac_executable_extensions; do 16620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16621 ac_cv_prog_AS="${ac_tool_prefix}as" 16622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16623 break 2 16624 fi 16625done 16626 done 16627IFS=$as_save_IFS 16628 16629fi 16630fi 16631AS=$ac_cv_prog_AS 16632if test -n "$AS"; then 16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 16634$as_echo "$AS" >&6; } 16635else 16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16637$as_echo "no" >&6; } 16638fi 16639 16640 16641fi 16642if test -z "$ac_cv_prog_AS"; then 16643 ac_ct_AS=$AS 16644 # Extract the first word of "as", so it can be a program name with args. 16645set dummy as; ac_word=$2 16646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16647$as_echo_n "checking for $ac_word... " >&6; } 16648if ${ac_cv_prog_ac_ct_AS+:} false; then : 16649 $as_echo_n "(cached) " >&6 16650else 16651 if test -n "$ac_ct_AS"; then 16652 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 16653else 16654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16655for as_dir in $PATH 16656do 16657 IFS=$as_save_IFS 16658 test -z "$as_dir" && as_dir=. 16659 for ac_exec_ext in '' $ac_executable_extensions; do 16660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16661 ac_cv_prog_ac_ct_AS="as" 16662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16663 break 2 16664 fi 16665done 16666 done 16667IFS=$as_save_IFS 16668 16669fi 16670fi 16671ac_ct_AS=$ac_cv_prog_ac_ct_AS 16672if test -n "$ac_ct_AS"; then 16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 16674$as_echo "$ac_ct_AS" >&6; } 16675else 16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16677$as_echo "no" >&6; } 16678fi 16679 16680 if test "x$ac_ct_AS" = x; then 16681 AS="false" 16682 else 16683 case $cross_compiling:$ac_tool_warned in 16684yes:) 16685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16687ac_tool_warned=yes ;; 16688esac 16689 AS=$ac_ct_AS 16690 fi 16691else 16692 AS="$ac_cv_prog_AS" 16693fi 16694 16695 if test -n "$ac_tool_prefix"; then 16696 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 16697set dummy ${ac_tool_prefix}dlltool; ac_word=$2 16698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16699$as_echo_n "checking for $ac_word... " >&6; } 16700if ${ac_cv_prog_DLLTOOL+:} false; then : 16701 $as_echo_n "(cached) " >&6 16702else 16703 if test -n "$DLLTOOL"; then 16704 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 16705else 16706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16707for as_dir in $PATH 16708do 16709 IFS=$as_save_IFS 16710 test -z "$as_dir" && as_dir=. 16711 for ac_exec_ext in '' $ac_executable_extensions; do 16712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16713 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 16714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16715 break 2 16716 fi 16717done 16718 done 16719IFS=$as_save_IFS 16720 16721fi 16722fi 16723DLLTOOL=$ac_cv_prog_DLLTOOL 16724if test -n "$DLLTOOL"; then 16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 16726$as_echo "$DLLTOOL" >&6; } 16727else 16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16729$as_echo "no" >&6; } 16730fi 16731 16732 16733fi 16734if test -z "$ac_cv_prog_DLLTOOL"; then 16735 ac_ct_DLLTOOL=$DLLTOOL 16736 # Extract the first word of "dlltool", so it can be a program name with args. 16737set dummy dlltool; ac_word=$2 16738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16739$as_echo_n "checking for $ac_word... " >&6; } 16740if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 16741 $as_echo_n "(cached) " >&6 16742else 16743 if test -n "$ac_ct_DLLTOOL"; then 16744 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 16745else 16746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16747for as_dir in $PATH 16748do 16749 IFS=$as_save_IFS 16750 test -z "$as_dir" && as_dir=. 16751 for ac_exec_ext in '' $ac_executable_extensions; do 16752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16753 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 16754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16755 break 2 16756 fi 16757done 16758 done 16759IFS=$as_save_IFS 16760 16761fi 16762fi 16763ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 16764if test -n "$ac_ct_DLLTOOL"; then 16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 16766$as_echo "$ac_ct_DLLTOOL" >&6; } 16767else 16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16769$as_echo "no" >&6; } 16770fi 16771 16772 if test "x$ac_ct_DLLTOOL" = x; then 16773 DLLTOOL="false" 16774 else 16775 case $cross_compiling:$ac_tool_warned in 16776yes:) 16777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16779ac_tool_warned=yes ;; 16780esac 16781 DLLTOOL=$ac_ct_DLLTOOL 16782 fi 16783else 16784 DLLTOOL="$ac_cv_prog_DLLTOOL" 16785fi 16786 16787 if test -n "$ac_tool_prefix"; then 16788 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 16789set dummy ${ac_tool_prefix}objdump; ac_word=$2 16790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16791$as_echo_n "checking for $ac_word... " >&6; } 16792if ${ac_cv_prog_OBJDUMP+:} false; then : 16793 $as_echo_n "(cached) " >&6 16794else 16795 if test -n "$OBJDUMP"; then 16796 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 16797else 16798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16799for as_dir in $PATH 16800do 16801 IFS=$as_save_IFS 16802 test -z "$as_dir" && as_dir=. 16803 for ac_exec_ext in '' $ac_executable_extensions; do 16804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16805 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 16806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16807 break 2 16808 fi 16809done 16810 done 16811IFS=$as_save_IFS 16812 16813fi 16814fi 16815OBJDUMP=$ac_cv_prog_OBJDUMP 16816if test -n "$OBJDUMP"; then 16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 16818$as_echo "$OBJDUMP" >&6; } 16819else 16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16821$as_echo "no" >&6; } 16822fi 16823 16824 16825fi 16826if test -z "$ac_cv_prog_OBJDUMP"; then 16827 ac_ct_OBJDUMP=$OBJDUMP 16828 # Extract the first word of "objdump", so it can be a program name with args. 16829set dummy objdump; ac_word=$2 16830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16831$as_echo_n "checking for $ac_word... " >&6; } 16832if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 16833 $as_echo_n "(cached) " >&6 16834else 16835 if test -n "$ac_ct_OBJDUMP"; then 16836 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 16837else 16838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16839for as_dir in $PATH 16840do 16841 IFS=$as_save_IFS 16842 test -z "$as_dir" && as_dir=. 16843 for ac_exec_ext in '' $ac_executable_extensions; do 16844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16845 ac_cv_prog_ac_ct_OBJDUMP="objdump" 16846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16847 break 2 16848 fi 16849done 16850 done 16851IFS=$as_save_IFS 16852 16853fi 16854fi 16855ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 16856if test -n "$ac_ct_OBJDUMP"; then 16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 16858$as_echo "$ac_ct_OBJDUMP" >&6; } 16859else 16860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16861$as_echo "no" >&6; } 16862fi 16863 16864 if test "x$ac_ct_OBJDUMP" = x; then 16865 OBJDUMP="false" 16866 else 16867 case $cross_compiling:$ac_tool_warned in 16868yes:) 16869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16871ac_tool_warned=yes ;; 16872esac 16873 OBJDUMP=$ac_ct_OBJDUMP 16874 fi 16875else 16876 OBJDUMP="$ac_cv_prog_OBJDUMP" 16877fi 16878 16879 ;; 16880esac 16881 16882test -z "$AS" && AS=as 16883 16884 16885 16886 16887 16888test -z "$DLLTOOL" && DLLTOOL=dlltool 16889 16890 16891 16892 16893 16894test -z "$OBJDUMP" && OBJDUMP=objdump 16895 16896 16897 16898 16899 16900 16901 16902 enable_dlopen=no 16903 16904 16905 16906 # Check whether --enable-shared was given. 16907if test "${enable_shared+set}" = set; then : 16908 enableval=$enable_shared; p=${PACKAGE-default} 16909 case $enableval in 16910 yes) enable_shared=yes ;; 16911 no) enable_shared=no ;; 16912 *) 16913 enable_shared=no 16914 # Look at the argument we got. We use all the common list separators. 16915 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16916 for pkg in $enableval; do 16917 IFS=$lt_save_ifs 16918 if test "X$pkg" = "X$p"; then 16919 enable_shared=yes 16920 fi 16921 done 16922 IFS=$lt_save_ifs 16923 ;; 16924 esac 16925else 16926 enable_shared=yes 16927fi 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939# Check whether --with-pic was given. 16940if test "${with_pic+set}" = set; then : 16941 withval=$with_pic; lt_p=${PACKAGE-default} 16942 case $withval in 16943 yes|no) pic_mode=$withval ;; 16944 *) 16945 pic_mode=default 16946 # Look at the argument we got. We use all the common list separators. 16947 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16948 for lt_pkg in $withval; do 16949 IFS=$lt_save_ifs 16950 if test "X$lt_pkg" = "X$lt_p"; then 16951 pic_mode=yes 16952 fi 16953 done 16954 IFS=$lt_save_ifs 16955 ;; 16956 esac 16957else 16958 pic_mode=default 16959fi 16960 16961 16962 16963 16964 16965 16966 16967 16968 # Check whether --enable-fast-install was given. 16969if test "${enable_fast_install+set}" = set; then : 16970 enableval=$enable_fast_install; p=${PACKAGE-default} 16971 case $enableval in 16972 yes) enable_fast_install=yes ;; 16973 no) enable_fast_install=no ;; 16974 *) 16975 enable_fast_install=no 16976 # Look at the argument we got. We use all the common list separators. 16977 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16978 for pkg in $enableval; do 16979 IFS=$lt_save_ifs 16980 if test "X$pkg" = "X$p"; then 16981 enable_fast_install=yes 16982 fi 16983 done 16984 IFS=$lt_save_ifs 16985 ;; 16986 esac 16987else 16988 enable_fast_install=yes 16989fi 16990 16991 16992 16993 16994 16995 16996 16997 16998 shared_archive_member_spec= 16999case $host,$enable_shared in 17000power*-*-aix[5-9]*,yes) 17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 17002$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 17003 17004# Check whether --with-aix-soname was given. 17005if test "${with_aix_soname+set}" = set; then : 17006 withval=$with_aix_soname; case $withval in 17007 aix|svr4|both) 17008 ;; 17009 *) 17010 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 17011 ;; 17012 esac 17013 lt_cv_with_aix_soname=$with_aix_soname 17014else 17015 if ${lt_cv_with_aix_soname+:} false; then : 17016 $as_echo_n "(cached) " >&6 17017else 17018 lt_cv_with_aix_soname=aix 17019fi 17020 17021 with_aix_soname=$lt_cv_with_aix_soname 17022fi 17023 17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 17025$as_echo "$with_aix_soname" >&6; } 17026 if test aix != "$with_aix_soname"; then 17027 # For the AIX way of multilib, we name the shared archive member 17028 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 17029 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 17030 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 17031 # the AIX toolchain works better with OBJECT_MODE set (default 32). 17032 if test 64 = "${OBJECT_MODE-32}"; then 17033 shared_archive_member_spec=shr_64 17034 else 17035 shared_archive_member_spec=shr 17036 fi 17037 fi 17038 ;; 17039*) 17040 with_aix_soname=aix 17041 ;; 17042esac 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053# This can be used to rebuild libtool when needed 17054LIBTOOL_DEPS=$ltmain 17055 17056# Always use our own libtool. 17057LIBTOOL='$(SHELL) $(top_builddir)/libtool' 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 17083 17084 17085 17086 17087 17088test -z "$LN_S" && LN_S="ln -s" 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103if test -n "${ZSH_VERSION+set}"; then 17104 setopt NO_GLOB_SUBST 17105fi 17106 17107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 17108$as_echo_n "checking for objdir... " >&6; } 17109if ${lt_cv_objdir+:} false; then : 17110 $as_echo_n "(cached) " >&6 17111else 17112 rm -f .libs 2>/dev/null 17113mkdir .libs 2>/dev/null 17114if test -d .libs; then 17115 lt_cv_objdir=.libs 17116else 17117 # MS-DOS does not allow filenames that begin with a dot. 17118 lt_cv_objdir=_libs 17119fi 17120rmdir .libs 2>/dev/null 17121fi 17122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 17123$as_echo "$lt_cv_objdir" >&6; } 17124objdir=$lt_cv_objdir 17125 17126 17127 17128 17129 17130cat >>confdefs.h <<_ACEOF 17131#define LT_OBJDIR "$lt_cv_objdir/" 17132_ACEOF 17133 17134 17135 17136 17137case $host_os in 17138aix3*) 17139 # AIX sometimes has problems with the GCC collect2 program. For some 17140 # reason, if we set the COLLECT_NAMES environment variable, the problems 17141 # vanish in a puff of smoke. 17142 if test set != "${COLLECT_NAMES+set}"; then 17143 COLLECT_NAMES= 17144 export COLLECT_NAMES 17145 fi 17146 ;; 17147esac 17148 17149# Global variables: 17150ofile=libtool 17151can_build_shared=yes 17152 17153# All known linkers require a '.a' archive for static linking (except MSVC, 17154# which needs '.lib'). 17155libext=a 17156 17157with_gnu_ld=$lt_cv_prog_gnu_ld 17158 17159old_CC=$CC 17160old_CFLAGS=$CFLAGS 17161 17162# Set sane defaults for various variables 17163test -z "$CC" && CC=cc 17164test -z "$LTCC" && LTCC=$CC 17165test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 17166test -z "$LD" && LD=ld 17167test -z "$ac_objext" && ac_objext=o 17168 17169func_cc_basename $compiler 17170cc_basename=$func_cc_basename_result 17171 17172 17173# Only perform the check for file, if the check method requires it 17174test -z "$MAGIC_CMD" && MAGIC_CMD=file 17175case $deplibs_check_method in 17176file_magic*) 17177 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 17178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 17179$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 17180if ${lt_cv_path_MAGIC_CMD+:} false; then : 17181 $as_echo_n "(cached) " >&6 17182else 17183 case $MAGIC_CMD in 17184[\\/*] | ?:[\\/]*) 17185 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 17186 ;; 17187*) 17188 lt_save_MAGIC_CMD=$MAGIC_CMD 17189 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 17190 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 17191 for ac_dir in $ac_dummy; do 17192 IFS=$lt_save_ifs 17193 test -z "$ac_dir" && ac_dir=. 17194 if test -f "$ac_dir/${ac_tool_prefix}file"; then 17195 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 17196 if test -n "$file_magic_test_file"; then 17197 case $deplibs_check_method in 17198 "file_magic "*) 17199 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 17200 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 17201 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 17202 $EGREP "$file_magic_regex" > /dev/null; then 17203 : 17204 else 17205 cat <<_LT_EOF 1>&2 17206 17207*** Warning: the command libtool uses to detect shared libraries, 17208*** $file_magic_cmd, produces output that libtool cannot recognize. 17209*** The result is that libtool may fail to recognize shared libraries 17210*** as such. This will affect the creation of libtool libraries that 17211*** depend on shared libraries, but programs linked with such libtool 17212*** libraries will work regardless of this problem. Nevertheless, you 17213*** may want to report the problem to your system manager and/or to 17214*** bug-libtool@gnu.org 17215 17216_LT_EOF 17217 fi ;; 17218 esac 17219 fi 17220 break 17221 fi 17222 done 17223 IFS=$lt_save_ifs 17224 MAGIC_CMD=$lt_save_MAGIC_CMD 17225 ;; 17226esac 17227fi 17228 17229MAGIC_CMD=$lt_cv_path_MAGIC_CMD 17230if test -n "$MAGIC_CMD"; then 17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 17232$as_echo "$MAGIC_CMD" >&6; } 17233else 17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17235$as_echo "no" >&6; } 17236fi 17237 17238 17239 17240 17241 17242if test -z "$lt_cv_path_MAGIC_CMD"; then 17243 if test -n "$ac_tool_prefix"; then 17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 17245$as_echo_n "checking for file... " >&6; } 17246if ${lt_cv_path_MAGIC_CMD+:} false; then : 17247 $as_echo_n "(cached) " >&6 17248else 17249 case $MAGIC_CMD in 17250[\\/*] | ?:[\\/]*) 17251 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 17252 ;; 17253*) 17254 lt_save_MAGIC_CMD=$MAGIC_CMD 17255 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 17256 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 17257 for ac_dir in $ac_dummy; do 17258 IFS=$lt_save_ifs 17259 test -z "$ac_dir" && ac_dir=. 17260 if test -f "$ac_dir/file"; then 17261 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 17262 if test -n "$file_magic_test_file"; then 17263 case $deplibs_check_method in 17264 "file_magic "*) 17265 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 17266 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 17267 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 17268 $EGREP "$file_magic_regex" > /dev/null; then 17269 : 17270 else 17271 cat <<_LT_EOF 1>&2 17272 17273*** Warning: the command libtool uses to detect shared libraries, 17274*** $file_magic_cmd, produces output that libtool cannot recognize. 17275*** The result is that libtool may fail to recognize shared libraries 17276*** as such. This will affect the creation of libtool libraries that 17277*** depend on shared libraries, but programs linked with such libtool 17278*** libraries will work regardless of this problem. Nevertheless, you 17279*** may want to report the problem to your system manager and/or to 17280*** bug-libtool@gnu.org 17281 17282_LT_EOF 17283 fi ;; 17284 esac 17285 fi 17286 break 17287 fi 17288 done 17289 IFS=$lt_save_ifs 17290 MAGIC_CMD=$lt_save_MAGIC_CMD 17291 ;; 17292esac 17293fi 17294 17295MAGIC_CMD=$lt_cv_path_MAGIC_CMD 17296if test -n "$MAGIC_CMD"; then 17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 17298$as_echo "$MAGIC_CMD" >&6; } 17299else 17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17301$as_echo "no" >&6; } 17302fi 17303 17304 17305 else 17306 MAGIC_CMD=: 17307 fi 17308fi 17309 17310 fi 17311 ;; 17312esac 17313 17314# Use C for the default configuration in the libtool script 17315 17316lt_save_CC=$CC 17317ac_ext=c 17318ac_cpp='$CPP $CPPFLAGS' 17319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17321ac_compiler_gnu=$ac_cv_c_compiler_gnu 17322 17323 17324# Source file extension for C test sources. 17325ac_ext=c 17326 17327# Object file extension for compiled C test sources. 17328objext=o 17329objext=$objext 17330 17331# Code to be used in simple compile tests 17332lt_simple_compile_test_code="int some_variable = 0;" 17333 17334# Code to be used in simple link tests 17335lt_simple_link_test_code='int main(){return(0);}' 17336 17337 17338 17339 17340 17341 17342 17343# If no C compiler was specified, use CC. 17344LTCC=${LTCC-"$CC"} 17345 17346# If no C compiler flags were specified, use CFLAGS. 17347LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17348 17349# Allow CC to be a program name with arguments. 17350compiler=$CC 17351 17352# Save the default compiler, since it gets overwritten when the other 17353# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 17354compiler_DEFAULT=$CC 17355 17356# save warnings/boilerplate of simple test code 17357ac_outfile=conftest.$ac_objext 17358echo "$lt_simple_compile_test_code" >conftest.$ac_ext 17359eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17360_lt_compiler_boilerplate=`cat conftest.err` 17361$RM conftest* 17362 17363ac_outfile=conftest.$ac_objext 17364echo "$lt_simple_link_test_code" >conftest.$ac_ext 17365eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17366_lt_linker_boilerplate=`cat conftest.err` 17367$RM -r conftest* 17368 17369 17370## CAVEAT EMPTOR: 17371## There is no encapsulation within the following macros, do not change 17372## the running order or otherwise move them around unless you know exactly 17373## what you are doing... 17374if test -n "$compiler"; then 17375 17376lt_prog_compiler_no_builtin_flag= 17377 17378if test yes = "$GCC"; then 17379 case $cc_basename in 17380 nvcc*) 17381 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 17382 *) 17383 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 17384 esac 17385 17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17387$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 17388if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 17389 $as_echo_n "(cached) " >&6 17390else 17391 lt_cv_prog_compiler_rtti_exceptions=no 17392 ac_outfile=conftest.$ac_objext 17393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17394 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 17395 # Insert the option either (1) after the last *FLAGS variable, or 17396 # (2) before a word containing "conftest.", or (3) at the end. 17397 # Note that $ac_compile itself does not contain backslashes and begins 17398 # with a dollar sign (not a hyphen), so the echo should work correctly. 17399 # The option is referenced via a variable to avoid confusing sed. 17400 lt_compile=`echo "$ac_compile" | $SED \ 17401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17403 -e 's:$: $lt_compiler_flag:'` 17404 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17405 (eval "$lt_compile" 2>conftest.err) 17406 ac_status=$? 17407 cat conftest.err >&5 17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17409 if (exit $ac_status) && test -s "$ac_outfile"; then 17410 # The compiler can only warn and ignore the option if not recognized 17411 # So say no if there are warnings other than the usual output. 17412 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17413 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17414 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17415 lt_cv_prog_compiler_rtti_exceptions=yes 17416 fi 17417 fi 17418 $RM conftest* 17419 17420fi 17421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17422$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 17423 17424if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 17425 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 17426else 17427 : 17428fi 17429 17430fi 17431 17432 17433 17434 17435 17436 17437 lt_prog_compiler_wl= 17438lt_prog_compiler_pic= 17439lt_prog_compiler_static= 17440 17441 17442 if test yes = "$GCC"; then 17443 lt_prog_compiler_wl='-Wl,' 17444 lt_prog_compiler_static='-static' 17445 17446 case $host_os in 17447 aix*) 17448 # All AIX code is PIC. 17449 if test ia64 = "$host_cpu"; then 17450 # AIX 5 now supports IA64 processor 17451 lt_prog_compiler_static='-Bstatic' 17452 fi 17453 lt_prog_compiler_pic='-fPIC' 17454 ;; 17455 17456 amigaos*) 17457 case $host_cpu in 17458 powerpc) 17459 # see comment about AmigaOS4 .so support 17460 lt_prog_compiler_pic='-fPIC' 17461 ;; 17462 m68k) 17463 # FIXME: we need at least 68020 code to build shared libraries, but 17464 # adding the '-m68020' flag to GCC prevents building anything better, 17465 # like '-m68040'. 17466 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 17467 ;; 17468 esac 17469 ;; 17470 17471 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17472 # PIC is the default for these OSes. 17473 ;; 17474 17475 mingw* | cygwin* | pw32* | os2* | cegcc*) 17476 # This hack is so that the source file can tell whether it is being 17477 # built for inclusion in a dll (and should export symbols for example). 17478 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17479 # (--disable-auto-import) libraries 17480 lt_prog_compiler_pic='-DDLL_EXPORT' 17481 case $host_os in 17482 os2*) 17483 lt_prog_compiler_static='$wl-static' 17484 ;; 17485 esac 17486 ;; 17487 17488 darwin* | rhapsody*) 17489 # PIC is the default on this platform 17490 # Common symbols not allowed in MH_DYLIB files 17491 lt_prog_compiler_pic='-fno-common' 17492 ;; 17493 17494 haiku*) 17495 # PIC is the default for Haiku. 17496 # The "-static" flag exists, but is broken. 17497 lt_prog_compiler_static= 17498 ;; 17499 17500 hpux*) 17501 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 17502 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 17503 # sets the default TLS model and affects inlining. 17504 case $host_cpu in 17505 hppa*64*) 17506 # +Z the default 17507 ;; 17508 *) 17509 lt_prog_compiler_pic='-fPIC' 17510 ;; 17511 esac 17512 ;; 17513 17514 interix[3-9]*) 17515 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17516 # Instead, we relocate shared libraries at runtime. 17517 ;; 17518 17519 msdosdjgpp*) 17520 # Just because we use GCC doesn't mean we suddenly get shared libraries 17521 # on systems that don't support them. 17522 lt_prog_compiler_can_build_shared=no 17523 enable_shared=no 17524 ;; 17525 17526 *nto* | *qnx*) 17527 # QNX uses GNU C++, but need to define -shared option too, otherwise 17528 # it will coredump. 17529 lt_prog_compiler_pic='-fPIC -shared' 17530 ;; 17531 17532 sysv4*MP*) 17533 if test -d /usr/nec; then 17534 lt_prog_compiler_pic=-Kconform_pic 17535 fi 17536 ;; 17537 17538 *) 17539 lt_prog_compiler_pic='-fPIC' 17540 ;; 17541 esac 17542 17543 case $cc_basename in 17544 nvcc*) # Cuda Compiler Driver 2.2 17545 lt_prog_compiler_wl='-Xlinker ' 17546 if test -n "$lt_prog_compiler_pic"; then 17547 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 17548 fi 17549 ;; 17550 esac 17551 else 17552 # PORTME Check for flag to pass linker flags through the system compiler. 17553 case $host_os in 17554 aix*) 17555 lt_prog_compiler_wl='-Wl,' 17556 if test ia64 = "$host_cpu"; then 17557 # AIX 5 now supports IA64 processor 17558 lt_prog_compiler_static='-Bstatic' 17559 else 17560 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 17561 fi 17562 ;; 17563 17564 darwin* | rhapsody*) 17565 # PIC is the default on this platform 17566 # Common symbols not allowed in MH_DYLIB files 17567 lt_prog_compiler_pic='-fno-common' 17568 case $cc_basename in 17569 nagfor*) 17570 # NAG Fortran compiler 17571 lt_prog_compiler_wl='-Wl,-Wl,,' 17572 lt_prog_compiler_pic='-PIC' 17573 lt_prog_compiler_static='-Bstatic' 17574 ;; 17575 esac 17576 ;; 17577 17578 mingw* | cygwin* | pw32* | os2* | cegcc*) 17579 # This hack is so that the source file can tell whether it is being 17580 # built for inclusion in a dll (and should export symbols for example). 17581 lt_prog_compiler_pic='-DDLL_EXPORT' 17582 case $host_os in 17583 os2*) 17584 lt_prog_compiler_static='$wl-static' 17585 ;; 17586 esac 17587 ;; 17588 17589 hpux9* | hpux10* | hpux11*) 17590 lt_prog_compiler_wl='-Wl,' 17591 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17592 # not for PA HP-UX. 17593 case $host_cpu in 17594 hppa*64*|ia64*) 17595 # +Z the default 17596 ;; 17597 *) 17598 lt_prog_compiler_pic='+Z' 17599 ;; 17600 esac 17601 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17602 lt_prog_compiler_static='$wl-a ${wl}archive' 17603 ;; 17604 17605 irix5* | irix6* | nonstopux*) 17606 lt_prog_compiler_wl='-Wl,' 17607 # PIC (with -KPIC) is the default. 17608 lt_prog_compiler_static='-non_shared' 17609 ;; 17610 17611 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17612 case $cc_basename in 17613 # old Intel for x86_64, which still supported -KPIC. 17614 ecc*) 17615 lt_prog_compiler_wl='-Wl,' 17616 lt_prog_compiler_pic='-KPIC' 17617 lt_prog_compiler_static='-static' 17618 ;; 17619 # icc used to be incompatible with GCC. 17620 # ICC 10 doesn't accept -KPIC any more. 17621 icc* | ifort*) 17622 lt_prog_compiler_wl='-Wl,' 17623 lt_prog_compiler_pic='-fPIC' 17624 lt_prog_compiler_static='-static' 17625 ;; 17626 # Lahey Fortran 8.1. 17627 lf95*) 17628 lt_prog_compiler_wl='-Wl,' 17629 lt_prog_compiler_pic='--shared' 17630 lt_prog_compiler_static='--static' 17631 ;; 17632 nagfor*) 17633 # NAG Fortran compiler 17634 lt_prog_compiler_wl='-Wl,-Wl,,' 17635 lt_prog_compiler_pic='-PIC' 17636 lt_prog_compiler_static='-Bstatic' 17637 ;; 17638 tcc*) 17639 # Fabrice Bellard et al's Tiny C Compiler 17640 lt_prog_compiler_wl='-Wl,' 17641 lt_prog_compiler_pic='-fPIC' 17642 lt_prog_compiler_static='-static' 17643 ;; 17644 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 17645 # Portland Group compilers (*not* the Pentium gcc compiler, 17646 # which looks to be a dead project) 17647 lt_prog_compiler_wl='-Wl,' 17648 lt_prog_compiler_pic='-fpic' 17649 lt_prog_compiler_static='-Bstatic' 17650 ;; 17651 ccc*) 17652 lt_prog_compiler_wl='-Wl,' 17653 # All Alpha code is PIC. 17654 lt_prog_compiler_static='-non_shared' 17655 ;; 17656 xl* | bgxl* | bgf* | mpixl*) 17657 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 17658 lt_prog_compiler_wl='-Wl,' 17659 lt_prog_compiler_pic='-qpic' 17660 lt_prog_compiler_static='-qstaticlink' 17661 ;; 17662 *) 17663 case `$CC -V 2>&1 | sed 5q` in 17664 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 17665 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17666 lt_prog_compiler_pic='-KPIC' 17667 lt_prog_compiler_static='-Bstatic' 17668 lt_prog_compiler_wl='' 17669 ;; 17670 *Sun\ F* | *Sun*Fortran*) 17671 lt_prog_compiler_pic='-KPIC' 17672 lt_prog_compiler_static='-Bstatic' 17673 lt_prog_compiler_wl='-Qoption ld ' 17674 ;; 17675 *Sun\ C*) 17676 # Sun C 5.9 17677 lt_prog_compiler_pic='-KPIC' 17678 lt_prog_compiler_static='-Bstatic' 17679 lt_prog_compiler_wl='-Wl,' 17680 ;; 17681 *Intel*\ [CF]*Compiler*) 17682 lt_prog_compiler_wl='-Wl,' 17683 lt_prog_compiler_pic='-fPIC' 17684 lt_prog_compiler_static='-static' 17685 ;; 17686 *Portland\ Group*) 17687 lt_prog_compiler_wl='-Wl,' 17688 lt_prog_compiler_pic='-fpic' 17689 lt_prog_compiler_static='-Bstatic' 17690 ;; 17691 esac 17692 ;; 17693 esac 17694 ;; 17695 17696 newsos6) 17697 lt_prog_compiler_pic='-KPIC' 17698 lt_prog_compiler_static='-Bstatic' 17699 ;; 17700 17701 *nto* | *qnx*) 17702 # QNX uses GNU C++, but need to define -shared option too, otherwise 17703 # it will coredump. 17704 lt_prog_compiler_pic='-fPIC -shared' 17705 ;; 17706 17707 osf3* | osf4* | osf5*) 17708 lt_prog_compiler_wl='-Wl,' 17709 # All OSF/1 code is PIC. 17710 lt_prog_compiler_static='-non_shared' 17711 ;; 17712 17713 rdos*) 17714 lt_prog_compiler_static='-non_shared' 17715 ;; 17716 17717 solaris*) 17718 lt_prog_compiler_pic='-KPIC' 17719 lt_prog_compiler_static='-Bstatic' 17720 case $cc_basename in 17721 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 17722 lt_prog_compiler_wl='-Qoption ld ';; 17723 *) 17724 lt_prog_compiler_wl='-Wl,';; 17725 esac 17726 ;; 17727 17728 sunos4*) 17729 lt_prog_compiler_wl='-Qoption ld ' 17730 lt_prog_compiler_pic='-PIC' 17731 lt_prog_compiler_static='-Bstatic' 17732 ;; 17733 17734 sysv4 | sysv4.2uw2* | sysv4.3*) 17735 lt_prog_compiler_wl='-Wl,' 17736 lt_prog_compiler_pic='-KPIC' 17737 lt_prog_compiler_static='-Bstatic' 17738 ;; 17739 17740 sysv4*MP*) 17741 if test -d /usr/nec; then 17742 lt_prog_compiler_pic='-Kconform_pic' 17743 lt_prog_compiler_static='-Bstatic' 17744 fi 17745 ;; 17746 17747 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17748 lt_prog_compiler_wl='-Wl,' 17749 lt_prog_compiler_pic='-KPIC' 17750 lt_prog_compiler_static='-Bstatic' 17751 ;; 17752 17753 unicos*) 17754 lt_prog_compiler_wl='-Wl,' 17755 lt_prog_compiler_can_build_shared=no 17756 ;; 17757 17758 uts4*) 17759 lt_prog_compiler_pic='-pic' 17760 lt_prog_compiler_static='-Bstatic' 17761 ;; 17762 17763 *) 17764 lt_prog_compiler_can_build_shared=no 17765 ;; 17766 esac 17767 fi 17768 17769case $host_os in 17770 # For platforms that do not support PIC, -DPIC is meaningless: 17771 *djgpp*) 17772 lt_prog_compiler_pic= 17773 ;; 17774 *) 17775 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 17776 ;; 17777esac 17778 17779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 17780$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 17781if ${lt_cv_prog_compiler_pic+:} false; then : 17782 $as_echo_n "(cached) " >&6 17783else 17784 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 17785fi 17786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 17787$as_echo "$lt_cv_prog_compiler_pic" >&6; } 17788lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 17789 17790# 17791# Check to make sure the PIC flag actually works. 17792# 17793if test -n "$lt_prog_compiler_pic"; then 17794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 17795$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 17796if ${lt_cv_prog_compiler_pic_works+:} false; then : 17797 $as_echo_n "(cached) " >&6 17798else 17799 lt_cv_prog_compiler_pic_works=no 17800 ac_outfile=conftest.$ac_objext 17801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17802 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 17803 # Insert the option either (1) after the last *FLAGS variable, or 17804 # (2) before a word containing "conftest.", or (3) at the end. 17805 # Note that $ac_compile itself does not contain backslashes and begins 17806 # with a dollar sign (not a hyphen), so the echo should work correctly. 17807 # The option is referenced via a variable to avoid confusing sed. 17808 lt_compile=`echo "$ac_compile" | $SED \ 17809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17811 -e 's:$: $lt_compiler_flag:'` 17812 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17813 (eval "$lt_compile" 2>conftest.err) 17814 ac_status=$? 17815 cat conftest.err >&5 17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17817 if (exit $ac_status) && test -s "$ac_outfile"; then 17818 # The compiler can only warn and ignore the option if not recognized 17819 # So say no if there are warnings other than the usual output. 17820 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17822 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17823 lt_cv_prog_compiler_pic_works=yes 17824 fi 17825 fi 17826 $RM conftest* 17827 17828fi 17829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 17830$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 17831 17832if test yes = "$lt_cv_prog_compiler_pic_works"; then 17833 case $lt_prog_compiler_pic in 17834 "" | " "*) ;; 17835 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 17836 esac 17837else 17838 lt_prog_compiler_pic= 17839 lt_prog_compiler_can_build_shared=no 17840fi 17841 17842fi 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854# 17855# Check to make sure the static flag actually works. 17856# 17857wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 17858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17859$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17860if ${lt_cv_prog_compiler_static_works+:} false; then : 17861 $as_echo_n "(cached) " >&6 17862else 17863 lt_cv_prog_compiler_static_works=no 17864 save_LDFLAGS=$LDFLAGS 17865 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17866 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17867 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17868 # The linker can only warn and ignore the option if not recognized 17869 # So say no if there are warnings 17870 if test -s conftest.err; then 17871 # Append any errors to the config.log. 17872 cat conftest.err 1>&5 17873 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17874 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17875 if diff conftest.exp conftest.er2 >/dev/null; then 17876 lt_cv_prog_compiler_static_works=yes 17877 fi 17878 else 17879 lt_cv_prog_compiler_static_works=yes 17880 fi 17881 fi 17882 $RM -r conftest* 17883 LDFLAGS=$save_LDFLAGS 17884 17885fi 17886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 17887$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 17888 17889if test yes = "$lt_cv_prog_compiler_static_works"; then 17890 : 17891else 17892 lt_prog_compiler_static= 17893fi 17894 17895 17896 17897 17898 17899 17900 17901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17902$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17903if ${lt_cv_prog_compiler_c_o+:} false; then : 17904 $as_echo_n "(cached) " >&6 17905else 17906 lt_cv_prog_compiler_c_o=no 17907 $RM -r conftest 2>/dev/null 17908 mkdir conftest 17909 cd conftest 17910 mkdir out 17911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17912 17913 lt_compiler_flag="-o out/conftest2.$ac_objext" 17914 # Insert the option either (1) after the last *FLAGS variable, or 17915 # (2) before a word containing "conftest.", or (3) at the end. 17916 # Note that $ac_compile itself does not contain backslashes and begins 17917 # with a dollar sign (not a hyphen), so the echo should work correctly. 17918 lt_compile=`echo "$ac_compile" | $SED \ 17919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17921 -e 's:$: $lt_compiler_flag:'` 17922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17923 (eval "$lt_compile" 2>out/conftest.err) 17924 ac_status=$? 17925 cat out/conftest.err >&5 17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17927 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17928 then 17929 # The compiler can only warn and ignore the option if not recognized 17930 # So say no if there are warnings 17931 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17932 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17933 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17934 lt_cv_prog_compiler_c_o=yes 17935 fi 17936 fi 17937 chmod u+w . 2>&5 17938 $RM conftest* 17939 # SGI C++ compiler will create directory out/ii_files/ for 17940 # template instantiation 17941 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17942 $RM out/* && rmdir out 17943 cd .. 17944 $RM -r conftest 17945 $RM conftest* 17946 17947fi 17948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 17949$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 17950 17951 17952 17953 17954 17955 17956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17957$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17958if ${lt_cv_prog_compiler_c_o+:} false; then : 17959 $as_echo_n "(cached) " >&6 17960else 17961 lt_cv_prog_compiler_c_o=no 17962 $RM -r conftest 2>/dev/null 17963 mkdir conftest 17964 cd conftest 17965 mkdir out 17966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17967 17968 lt_compiler_flag="-o out/conftest2.$ac_objext" 17969 # Insert the option either (1) after the last *FLAGS variable, or 17970 # (2) before a word containing "conftest.", or (3) at the end. 17971 # Note that $ac_compile itself does not contain backslashes and begins 17972 # with a dollar sign (not a hyphen), so the echo should work correctly. 17973 lt_compile=`echo "$ac_compile" | $SED \ 17974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17976 -e 's:$: $lt_compiler_flag:'` 17977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17978 (eval "$lt_compile" 2>out/conftest.err) 17979 ac_status=$? 17980 cat out/conftest.err >&5 17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17982 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17983 then 17984 # The compiler can only warn and ignore the option if not recognized 17985 # So say no if there are warnings 17986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17987 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17988 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17989 lt_cv_prog_compiler_c_o=yes 17990 fi 17991 fi 17992 chmod u+w . 2>&5 17993 $RM conftest* 17994 # SGI C++ compiler will create directory out/ii_files/ for 17995 # template instantiation 17996 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17997 $RM out/* && rmdir out 17998 cd .. 17999 $RM -r conftest 18000 $RM conftest* 18001 18002fi 18003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 18004$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 18005 18006 18007 18008 18009hard_links=nottested 18010if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 18011 # do not overwrite the value of need_locks provided by the user 18012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 18013$as_echo_n "checking if we can lock with hard links... " >&6; } 18014 hard_links=yes 18015 $RM conftest* 18016 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18017 touch conftest.a 18018 ln conftest.a conftest.b 2>&5 || hard_links=no 18019 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 18021$as_echo "$hard_links" >&6; } 18022 if test no = "$hard_links"; then 18023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 18024$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 18025 need_locks=warn 18026 fi 18027else 18028 need_locks=no 18029fi 18030 18031 18032 18033 18034 18035 18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18037$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 18038 18039 runpath_var= 18040 allow_undefined_flag= 18041 always_export_symbols=no 18042 archive_cmds= 18043 archive_expsym_cmds= 18044 compiler_needs_object=no 18045 enable_shared_with_static_runtimes=no 18046 export_dynamic_flag_spec= 18047 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18048 hardcode_automatic=no 18049 hardcode_direct=no 18050 hardcode_direct_absolute=no 18051 hardcode_libdir_flag_spec= 18052 hardcode_libdir_separator= 18053 hardcode_minus_L=no 18054 hardcode_shlibpath_var=unsupported 18055 inherit_rpath=no 18056 link_all_deplibs=unknown 18057 module_cmds= 18058 module_expsym_cmds= 18059 old_archive_from_new_cmds= 18060 old_archive_from_expsyms_cmds= 18061 thread_safe_flag_spec= 18062 whole_archive_flag_spec= 18063 # include_expsyms should be a list of space-separated symbols to be *always* 18064 # included in the symbol list 18065 include_expsyms= 18066 # exclude_expsyms can be an extended regexp of symbols to exclude 18067 # it will be wrapped by ' (' and ')$', so one must not match beginning or 18068 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 18069 # as well as any symbol that contains 'd'. 18070 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 18071 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 18072 # platforms (ab)use it in PIC code, but their linkers get confused if 18073 # the symbol is explicitly referenced. Since portable code cannot 18074 # rely on this symbol name, it's probably fine to never include it in 18075 # preloaded symbol tables. 18076 # Exclude shared library initialization/finalization symbols. 18077 extract_expsyms_cmds= 18078 18079 case $host_os in 18080 cygwin* | mingw* | pw32* | cegcc*) 18081 # FIXME: the MSVC++ port hasn't been tested in a loooong time 18082 # When not using gcc, we currently assume that we are using 18083 # Microsoft Visual C++. 18084 if test yes != "$GCC"; then 18085 with_gnu_ld=no 18086 fi 18087 ;; 18088 interix*) 18089 # we just hope/assume this is gcc and not c89 (= MSVC++) 18090 with_gnu_ld=yes 18091 ;; 18092 openbsd* | bitrig*) 18093 with_gnu_ld=no 18094 ;; 18095 esac 18096 18097 ld_shlibs=yes 18098 18099 # On some targets, GNU ld is compatible enough with the native linker 18100 # that we're better off using the native interface for both. 18101 lt_use_gnu_ld_interface=no 18102 if test yes = "$with_gnu_ld"; then 18103 case $host_os in 18104 aix*) 18105 # The AIX port of GNU ld has always aspired to compatibility 18106 # with the native linker. However, as the warning in the GNU ld 18107 # block says, versions before 2.19.5* couldn't really create working 18108 # shared libraries, regardless of the interface used. 18109 case `$LD -v 2>&1` in 18110 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 18111 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 18112 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 18113 *) 18114 lt_use_gnu_ld_interface=yes 18115 ;; 18116 esac 18117 ;; 18118 *) 18119 lt_use_gnu_ld_interface=yes 18120 ;; 18121 esac 18122 fi 18123 18124 if test yes = "$lt_use_gnu_ld_interface"; then 18125 # If archive_cmds runs LD, not CC, wlarc should be empty 18126 wlarc='$wl' 18127 18128 # Set some defaults for GNU ld with shared library support. These 18129 # are reset later if shared libraries are not supported. Putting them 18130 # here allows them to be overridden if necessary. 18131 runpath_var=LD_RUN_PATH 18132 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18133 export_dynamic_flag_spec='$wl--export-dynamic' 18134 # ancient GNU ld didn't support --whole-archive et. al. 18135 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 18136 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 18137 else 18138 whole_archive_flag_spec= 18139 fi 18140 supports_anon_versioning=no 18141 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 18142 *GNU\ gold*) supports_anon_versioning=yes ;; 18143 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 18144 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 18145 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 18146 *\ 2.11.*) ;; # other 2.11 versions 18147 *) supports_anon_versioning=yes ;; 18148 esac 18149 18150 # See if GNU ld supports shared libraries. 18151 case $host_os in 18152 aix[3-9]*) 18153 # On AIX/PPC, the GNU linker is very broken 18154 if test ia64 != "$host_cpu"; then 18155 ld_shlibs=no 18156 cat <<_LT_EOF 1>&2 18157 18158*** Warning: the GNU linker, at least up to release 2.19, is reported 18159*** to be unable to reliably create shared libraries on AIX. 18160*** Therefore, libtool is disabling shared libraries support. If you 18161*** really care for shared libraries, you may want to install binutils 18162*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 18163*** You will then need to restart the configuration process. 18164 18165_LT_EOF 18166 fi 18167 ;; 18168 18169 amigaos*) 18170 case $host_cpu in 18171 powerpc) 18172 # see comment about AmigaOS4 .so support 18173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18174 archive_expsym_cmds='' 18175 ;; 18176 m68k) 18177 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)' 18178 hardcode_libdir_flag_spec='-L$libdir' 18179 hardcode_minus_L=yes 18180 ;; 18181 esac 18182 ;; 18183 18184 beos*) 18185 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 18186 allow_undefined_flag=unsupported 18187 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18188 # support --undefined. This deserves some investigation. FIXME 18189 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18190 else 18191 ld_shlibs=no 18192 fi 18193 ;; 18194 18195 cygwin* | mingw* | pw32* | cegcc*) 18196 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 18197 # as there is no search path for DLLs. 18198 hardcode_libdir_flag_spec='-L$libdir' 18199 export_dynamic_flag_spec='$wl--export-all-symbols' 18200 allow_undefined_flag=unsupported 18201 always_export_symbols=no 18202 enable_shared_with_static_runtimes=yes 18203 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' 18204 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 18205 18206 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 18207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18208 # If the export-symbols file already is a .def file, use it as 18209 # is; otherwise, prepend EXPORTS... 18210 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 18211 cp $export_symbols $output_objdir/$soname.def; 18212 else 18213 echo EXPORTS > $output_objdir/$soname.def; 18214 cat $export_symbols >> $output_objdir/$soname.def; 18215 fi~ 18216 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18217 else 18218 ld_shlibs=no 18219 fi 18220 ;; 18221 18222 haiku*) 18223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18224 link_all_deplibs=yes 18225 ;; 18226 18227 os2*) 18228 hardcode_libdir_flag_spec='-L$libdir' 18229 hardcode_minus_L=yes 18230 allow_undefined_flag=unsupported 18231 shrext_cmds=.dll 18232 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 18233 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 18234 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 18235 $ECHO EXPORTS >> $output_objdir/$libname.def~ 18236 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 18237 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 18238 emximp -o $lib $output_objdir/$libname.def' 18239 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 18240 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 18241 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 18242 $ECHO EXPORTS >> $output_objdir/$libname.def~ 18243 prefix_cmds="$SED"~ 18244 if test EXPORTS = "`$SED 1q $export_symbols`"; then 18245 prefix_cmds="$prefix_cmds -e 1d"; 18246 fi~ 18247 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 18248 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 18249 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 18250 emximp -o $lib $output_objdir/$libname.def' 18251 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 18252 enable_shared_with_static_runtimes=yes 18253 ;; 18254 18255 interix[3-9]*) 18256 hardcode_direct=no 18257 hardcode_shlibpath_var=no 18258 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 18259 export_dynamic_flag_spec='$wl-E' 18260 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 18261 # Instead, shared libraries are loaded at an image base (0x10000000 by 18262 # default) and relocated if they conflict, which is a slow very memory 18263 # consuming and fragmenting process. To avoid this, we pick a random, 18264 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 18265 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 18266 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 18267 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' 18268 ;; 18269 18270 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 18271 tmp_diet=no 18272 if test linux-dietlibc = "$host_os"; then 18273 case $cc_basename in 18274 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 18275 esac 18276 fi 18277 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 18278 && test no = "$tmp_diet" 18279 then 18280 tmp_addflag=' $pic_flag' 18281 tmp_sharedflag='-shared' 18282 case $cc_basename,$host_cpu in 18283 pgcc*) # Portland Group C compiler 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' 18286 ;; 18287 pgf77* | pgf90* | pgf95* | pgfortran*) 18288 # Portland Group f77 and f90 compilers 18289 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' 18290 tmp_addflag=' $pic_flag -Mnomain' ;; 18291 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 18292 tmp_addflag=' -i_dynamic' ;; 18293 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 18294 tmp_addflag=' -i_dynamic -nofor_main' ;; 18295 ifc* | ifort*) # Intel Fortran compiler 18296 tmp_addflag=' -nofor_main' ;; 18297 lf95*) # Lahey Fortran 8.1 18298 whole_archive_flag_spec= 18299 tmp_sharedflag='--shared' ;; 18300 nagfor*) # NAGFOR 5.3 18301 tmp_sharedflag='-Wl,-shared' ;; 18302 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 18303 tmp_sharedflag='-qmkshrobj' 18304 tmp_addflag= ;; 18305 nvcc*) # Cuda Compiler Driver 2.2 18306 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' 18307 compiler_needs_object=yes 18308 ;; 18309 esac 18310 case `$CC -V 2>&1 | sed 5q` in 18311 *Sun\ C*) # Sun C 5.9 18312 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' 18313 compiler_needs_object=yes 18314 tmp_sharedflag='-G' ;; 18315 *Sun\ F*) # Sun Fortran 8.3 18316 tmp_sharedflag='-G' ;; 18317 esac 18318 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18319 18320 if test yes = "$supports_anon_versioning"; then 18321 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 18322 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18323 echo "local: *; };" >> $output_objdir/$libname.ver~ 18324 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 18325 fi 18326 18327 case $cc_basename in 18328 tcc*) 18329 export_dynamic_flag_spec='-rdynamic' 18330 ;; 18331 xlf* | bgf* | bgxlf* | mpixlf*) 18332 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 18333 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 18334 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18335 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 18336 if test yes = "$supports_anon_versioning"; then 18337 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 18338 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18339 echo "local: *; };" >> $output_objdir/$libname.ver~ 18340 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 18341 fi 18342 ;; 18343 esac 18344 else 18345 ld_shlibs=no 18346 fi 18347 ;; 18348 18349 netbsd*) 18350 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18351 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 18352 wlarc= 18353 else 18354 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18355 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18356 fi 18357 ;; 18358 18359 solaris*) 18360 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 18361 ld_shlibs=no 18362 cat <<_LT_EOF 1>&2 18363 18364*** Warning: The releases 2.8.* of the GNU linker cannot reliably 18365*** create shared libraries on Solaris systems. Therefore, libtool 18366*** is disabling shared libraries support. We urge you to upgrade GNU 18367*** binutils to release 2.9.1 or newer. Another option is to modify 18368*** your PATH or compiler configuration so that the native linker is 18369*** used, and then restart. 18370 18371_LT_EOF 18372 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 18373 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18374 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18375 else 18376 ld_shlibs=no 18377 fi 18378 ;; 18379 18380 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 18381 case `$LD -v 2>&1` in 18382 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 18383 ld_shlibs=no 18384 cat <<_LT_EOF 1>&2 18385 18386*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 18387*** reliably create shared libraries on SCO systems. Therefore, libtool 18388*** is disabling shared libraries support. We urge you to upgrade GNU 18389*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 18390*** your PATH or compiler configuration so that the native linker is 18391*** used, and then restart. 18392 18393_LT_EOF 18394 ;; 18395 *) 18396 # For security reasons, it is highly recommended that you always 18397 # use absolute paths for naming shared libraries, and exclude the 18398 # DT_RUNPATH tag from executables and libraries. But doing so 18399 # requires that you compile everything twice, which is a pain. 18400 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 18401 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18403 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18404 else 18405 ld_shlibs=no 18406 fi 18407 ;; 18408 esac 18409 ;; 18410 18411 sunos4*) 18412 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18413 wlarc= 18414 hardcode_direct=yes 18415 hardcode_shlibpath_var=no 18416 ;; 18417 18418 *) 18419 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 18420 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18421 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18422 else 18423 ld_shlibs=no 18424 fi 18425 ;; 18426 esac 18427 18428 if test no = "$ld_shlibs"; then 18429 runpath_var= 18430 hardcode_libdir_flag_spec= 18431 export_dynamic_flag_spec= 18432 whole_archive_flag_spec= 18433 fi 18434 else 18435 # PORTME fill in a description of your system's linker (not GNU ld) 18436 case $host_os in 18437 aix3*) 18438 allow_undefined_flag=unsupported 18439 always_export_symbols=yes 18440 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' 18441 # Note: this linker hardcodes the directories in LIBPATH if there 18442 # are no directories specified by -L. 18443 hardcode_minus_L=yes 18444 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 18445 # Neither direct hardcoding nor static linking is supported with a 18446 # broken collect2. 18447 hardcode_direct=unsupported 18448 fi 18449 ;; 18450 18451 aix[4-9]*) 18452 if test ia64 = "$host_cpu"; then 18453 # On IA64, the linker does run time linking by default, so we don't 18454 # have to do anything special. 18455 aix_use_runtimelinking=no 18456 exp_sym_flag='-Bexport' 18457 no_entry_flag= 18458 else 18459 # If we're using GNU nm, then we don't want the "-C" option. 18460 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 18461 # Without the "-l" option, or with the "-B" option, AIX nm treats 18462 # weak defined symbols like other global defined symbols, whereas 18463 # GNU nm marks them as "W". 18464 # While the 'weak' keyword is ignored in the Export File, we need 18465 # it in the Import File for the 'aix-soname' feature, so we have 18466 # to replace the "-B" option with "-P" for AIX nm. 18467 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 18468 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' 18469 else 18470 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' 18471 fi 18472 aix_use_runtimelinking=no 18473 18474 # Test if we are trying to use run time linking or normal 18475 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18476 # have runtime linking enabled, and use it for executables. 18477 # For shared libraries, we enable/disable runtime linking 18478 # depending on the kind of the shared library created - 18479 # when "with_aix_soname,aix_use_runtimelinking" is: 18480 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 18481 # "aix,yes" lib.so shared, rtl:yes, for executables 18482 # lib.a static archive 18483 # "both,no" lib.so.V(shr.o) shared, rtl:yes 18484 # lib.a(lib.so.V) shared, rtl:no, for executables 18485 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 18486 # lib.a(lib.so.V) shared, rtl:no 18487 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 18488 # lib.a static archive 18489 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 18490 for ld_flag in $LDFLAGS; do 18491 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 18492 aix_use_runtimelinking=yes 18493 break 18494 fi 18495 done 18496 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 18497 # With aix-soname=svr4, we create the lib.so.V shared archives only, 18498 # so we don't have lib.a shared libs to link our executables. 18499 # We have to force runtime linking in this case. 18500 aix_use_runtimelinking=yes 18501 LDFLAGS="$LDFLAGS -Wl,-brtl" 18502 fi 18503 ;; 18504 esac 18505 18506 exp_sym_flag='-bexport' 18507 no_entry_flag='-bnoentry' 18508 fi 18509 18510 # When large executables or shared objects are built, AIX ld can 18511 # have problems creating the table of contents. If linking a library 18512 # or program results in "error TOC overflow" add -mminimal-toc to 18513 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18514 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18515 18516 archive_cmds='' 18517 hardcode_direct=yes 18518 hardcode_direct_absolute=yes 18519 hardcode_libdir_separator=':' 18520 link_all_deplibs=yes 18521 file_list_spec='$wl-f,' 18522 case $with_aix_soname,$aix_use_runtimelinking in 18523 aix,*) ;; # traditional, no import file 18524 svr4,* | *,yes) # use import file 18525 # The Import File defines what to hardcode. 18526 hardcode_direct=no 18527 hardcode_direct_absolute=no 18528 ;; 18529 esac 18530 18531 if test yes = "$GCC"; then 18532 case $host_os in aix4.[012]|aix4.[012].*) 18533 # We only want to do this on AIX 4.2 and lower, the check 18534 # below for broken collect2 doesn't work under 4.3+ 18535 collect2name=`$CC -print-prog-name=collect2` 18536 if test -f "$collect2name" && 18537 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 18538 then 18539 # We have reworked collect2 18540 : 18541 else 18542 # We have old collect2 18543 hardcode_direct=unsupported 18544 # It fails to find uninstalled libraries when the uninstalled 18545 # path is not listed in the libpath. Setting hardcode_minus_L 18546 # to unsupported forces relinking 18547 hardcode_minus_L=yes 18548 hardcode_libdir_flag_spec='-L$libdir' 18549 hardcode_libdir_separator= 18550 fi 18551 ;; 18552 esac 18553 shared_flag='-shared' 18554 if test yes = "$aix_use_runtimelinking"; then 18555 shared_flag="$shared_flag "'$wl-G' 18556 fi 18557 # Need to ensure runtime linking is disabled for the traditional 18558 # shared library, or the linker may eventually find shared libraries 18559 # /with/ Import File - we do not want to mix them. 18560 shared_flag_aix='-shared' 18561 shared_flag_svr4='-shared $wl-G' 18562 else 18563 # not using gcc 18564 if test ia64 = "$host_cpu"; then 18565 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18566 # chokes on -Wl,-G. The following line is correct: 18567 shared_flag='-G' 18568 else 18569 if test yes = "$aix_use_runtimelinking"; then 18570 shared_flag='$wl-G' 18571 else 18572 shared_flag='$wl-bM:SRE' 18573 fi 18574 shared_flag_aix='$wl-bM:SRE' 18575 shared_flag_svr4='$wl-G' 18576 fi 18577 fi 18578 18579 export_dynamic_flag_spec='$wl-bexpall' 18580 # It seems that -bexpall does not export symbols beginning with 18581 # underscore (_), so it is better to generate a list of symbols to export. 18582 always_export_symbols=yes 18583 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 18584 # Warning - without using the other runtime loading flags (-brtl), 18585 # -berok will link without error, but may produce a broken library. 18586 allow_undefined_flag='-berok' 18587 # Determine the default libpath from the value encoded in an 18588 # empty executable. 18589 if test set = "${lt_cv_aix_libpath+set}"; then 18590 aix_libpath=$lt_cv_aix_libpath 18591else 18592 if ${lt_cv_aix_libpath_+:} false; then : 18593 $as_echo_n "(cached) " >&6 18594else 18595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18596/* end confdefs.h. */ 18597 18598int 18599main () 18600{ 18601 18602 ; 18603 return 0; 18604} 18605_ACEOF 18606if ac_fn_c_try_link "$LINENO"; then : 18607 18608 lt_aix_libpath_sed=' 18609 /Import File Strings/,/^$/ { 18610 /^0/ { 18611 s/^0 *\([^ ]*\) *$/\1/ 18612 p 18613 } 18614 }' 18615 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18616 # Check for a 64-bit object if we didn't find anything. 18617 if test -z "$lt_cv_aix_libpath_"; then 18618 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18619 fi 18620fi 18621rm -f core conftest.err conftest.$ac_objext \ 18622 conftest$ac_exeext conftest.$ac_ext 18623 if test -z "$lt_cv_aix_libpath_"; then 18624 lt_cv_aix_libpath_=/usr/lib:/lib 18625 fi 18626 18627fi 18628 18629 aix_libpath=$lt_cv_aix_libpath_ 18630fi 18631 18632 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 18633 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 18634 else 18635 if test ia64 = "$host_cpu"; then 18636 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 18637 allow_undefined_flag="-z nodefs" 18638 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" 18639 else 18640 # Determine the default libpath from the value encoded in an 18641 # empty executable. 18642 if test set = "${lt_cv_aix_libpath+set}"; then 18643 aix_libpath=$lt_cv_aix_libpath 18644else 18645 if ${lt_cv_aix_libpath_+:} false; then : 18646 $as_echo_n "(cached) " >&6 18647else 18648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18649/* end confdefs.h. */ 18650 18651int 18652main () 18653{ 18654 18655 ; 18656 return 0; 18657} 18658_ACEOF 18659if ac_fn_c_try_link "$LINENO"; then : 18660 18661 lt_aix_libpath_sed=' 18662 /Import File Strings/,/^$/ { 18663 /^0/ { 18664 s/^0 *\([^ ]*\) *$/\1/ 18665 p 18666 } 18667 }' 18668 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18669 # Check for a 64-bit object if we didn't find anything. 18670 if test -z "$lt_cv_aix_libpath_"; then 18671 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18672 fi 18673fi 18674rm -f core conftest.err conftest.$ac_objext \ 18675 conftest$ac_exeext conftest.$ac_ext 18676 if test -z "$lt_cv_aix_libpath_"; then 18677 lt_cv_aix_libpath_=/usr/lib:/lib 18678 fi 18679 18680fi 18681 18682 aix_libpath=$lt_cv_aix_libpath_ 18683fi 18684 18685 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 18686 # Warning - without using the other run time loading flags, 18687 # -berok will link without error, but may produce a broken library. 18688 no_undefined_flag=' $wl-bernotok' 18689 allow_undefined_flag=' $wl-berok' 18690 if test yes = "$with_gnu_ld"; then 18691 # We only use this code for GNU lds that support --whole-archive. 18692 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 18693 else 18694 # Exported symbols can be pulled into shared objects from archives 18695 whole_archive_flag_spec='$convenience' 18696 fi 18697 archive_cmds_need_lc=yes 18698 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 18699 # -brtl affects multiple linker settings, -berok does not and is overridden later 18700 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 18701 if test svr4 != "$with_aix_soname"; then 18702 # This is similar to how AIX traditionally builds its shared libraries. 18703 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' 18704 fi 18705 if test aix != "$with_aix_soname"; then 18706 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' 18707 else 18708 # used by -dlpreopen to get the symbols 18709 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 18710 fi 18711 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 18712 fi 18713 fi 18714 ;; 18715 18716 amigaos*) 18717 case $host_cpu in 18718 powerpc) 18719 # see comment about AmigaOS4 .so support 18720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18721 archive_expsym_cmds='' 18722 ;; 18723 m68k) 18724 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)' 18725 hardcode_libdir_flag_spec='-L$libdir' 18726 hardcode_minus_L=yes 18727 ;; 18728 esac 18729 ;; 18730 18731 bsdi[45]*) 18732 export_dynamic_flag_spec=-rdynamic 18733 ;; 18734 18735 cygwin* | mingw* | pw32* | cegcc*) 18736 # When not using gcc, we currently assume that we are using 18737 # Microsoft Visual C++. 18738 # hardcode_libdir_flag_spec is actually meaningless, as there is 18739 # no search path for DLLs. 18740 case $cc_basename in 18741 cl*) 18742 # Native MSVC 18743 hardcode_libdir_flag_spec=' ' 18744 allow_undefined_flag=unsupported 18745 always_export_symbols=yes 18746 file_list_spec='@' 18747 # Tell ltmain to make .lib files, not .a files. 18748 libext=lib 18749 # Tell ltmain to make .dll files, not .so files. 18750 shrext_cmds=.dll 18751 # FIXME: Setting linknames here is a bad hack. 18752 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 18753 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 18754 cp "$export_symbols" "$output_objdir/$soname.def"; 18755 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 18756 else 18757 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 18758 fi~ 18759 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 18760 linknames=' 18761 # The linker will not automatically build a static lib if we build a DLL. 18762 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 18763 enable_shared_with_static_runtimes=yes 18764 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 18765 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 18766 # Don't use ranlib 18767 old_postinstall_cmds='chmod 644 $oldlib' 18768 postlink_cmds='lt_outputfile="@OUTPUT@"~ 18769 lt_tool_outputfile="@TOOL_OUTPUT@"~ 18770 case $lt_outputfile in 18771 *.exe|*.EXE) ;; 18772 *) 18773 lt_outputfile=$lt_outputfile.exe 18774 lt_tool_outputfile=$lt_tool_outputfile.exe 18775 ;; 18776 esac~ 18777 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 18778 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 18779 $RM "$lt_outputfile.manifest"; 18780 fi' 18781 ;; 18782 *) 18783 # Assume MSVC wrapper 18784 hardcode_libdir_flag_spec=' ' 18785 allow_undefined_flag=unsupported 18786 # Tell ltmain to make .lib files, not .a files. 18787 libext=lib 18788 # Tell ltmain to make .dll files, not .so files. 18789 shrext_cmds=.dll 18790 # FIXME: Setting linknames here is a bad hack. 18791 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 18792 # The linker will automatically build a .lib file if we build a DLL. 18793 old_archive_from_new_cmds='true' 18794 # FIXME: Should let the user specify the lib program. 18795 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 18796 enable_shared_with_static_runtimes=yes 18797 ;; 18798 esac 18799 ;; 18800 18801 darwin* | rhapsody*) 18802 18803 18804 archive_cmds_need_lc=no 18805 hardcode_direct=no 18806 hardcode_automatic=yes 18807 hardcode_shlibpath_var=unsupported 18808 if test yes = "$lt_cv_ld_force_load"; then 18809 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\"`' 18810 18811 else 18812 whole_archive_flag_spec='' 18813 fi 18814 link_all_deplibs=yes 18815 allow_undefined_flag=$_lt_dar_allow_undefined 18816 case $cc_basename in 18817 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 18818 *) _lt_dar_can_shared=$GCC ;; 18819 esac 18820 if test yes = "$_lt_dar_can_shared"; then 18821 output_verbose_link_cmd=func_echo_all 18822 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 18823 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 18824 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" 18825 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" 18826 18827 else 18828 ld_shlibs=no 18829 fi 18830 18831 ;; 18832 18833 dgux*) 18834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18835 hardcode_libdir_flag_spec='-L$libdir' 18836 hardcode_shlibpath_var=no 18837 ;; 18838 18839 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18840 # support. Future versions do this automatically, but an explicit c++rt0.o 18841 # does not break anything, and helps significantly (at the cost of a little 18842 # extra space). 18843 freebsd2.2*) 18844 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18845 hardcode_libdir_flag_spec='-R$libdir' 18846 hardcode_direct=yes 18847 hardcode_shlibpath_var=no 18848 ;; 18849 18850 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18851 freebsd2.*) 18852 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18853 hardcode_direct=yes 18854 hardcode_minus_L=yes 18855 hardcode_shlibpath_var=no 18856 ;; 18857 18858 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18859 freebsd* | dragonfly*) 18860 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18861 hardcode_libdir_flag_spec='-R$libdir' 18862 hardcode_direct=yes 18863 hardcode_shlibpath_var=no 18864 ;; 18865 18866 hpux9*) 18867 if test yes = "$GCC"; then 18868 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' 18869 else 18870 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' 18871 fi 18872 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 18873 hardcode_libdir_separator=: 18874 hardcode_direct=yes 18875 18876 # hardcode_minus_L: Not really in the search PATH, 18877 # but as the default location of the library. 18878 hardcode_minus_L=yes 18879 export_dynamic_flag_spec='$wl-E' 18880 ;; 18881 18882 hpux10*) 18883 if test yes,no = "$GCC,$with_gnu_ld"; then 18884 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18885 else 18886 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18887 fi 18888 if test no = "$with_gnu_ld"; then 18889 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 18890 hardcode_libdir_separator=: 18891 hardcode_direct=yes 18892 hardcode_direct_absolute=yes 18893 export_dynamic_flag_spec='$wl-E' 18894 # hardcode_minus_L: Not really in the search PATH, 18895 # but as the default location of the library. 18896 hardcode_minus_L=yes 18897 fi 18898 ;; 18899 18900 hpux11*) 18901 if test yes,no = "$GCC,$with_gnu_ld"; then 18902 case $host_cpu in 18903 hppa*64*) 18904 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 18905 ;; 18906 ia64*) 18907 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18908 ;; 18909 *) 18910 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18911 ;; 18912 esac 18913 else 18914 case $host_cpu in 18915 hppa*64*) 18916 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 18917 ;; 18918 ia64*) 18919 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18920 ;; 18921 *) 18922 18923 # Older versions of the 11.00 compiler do not understand -b yet 18924 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 18926$as_echo_n "checking if $CC understands -b... " >&6; } 18927if ${lt_cv_prog_compiler__b+:} false; then : 18928 $as_echo_n "(cached) " >&6 18929else 18930 lt_cv_prog_compiler__b=no 18931 save_LDFLAGS=$LDFLAGS 18932 LDFLAGS="$LDFLAGS -b" 18933 echo "$lt_simple_link_test_code" > conftest.$ac_ext 18934 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 18935 # The linker can only warn and ignore the option if not recognized 18936 # So say no if there are warnings 18937 if test -s conftest.err; then 18938 # Append any errors to the config.log. 18939 cat conftest.err 1>&5 18940 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 18941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18942 if diff conftest.exp conftest.er2 >/dev/null; then 18943 lt_cv_prog_compiler__b=yes 18944 fi 18945 else 18946 lt_cv_prog_compiler__b=yes 18947 fi 18948 fi 18949 $RM -r conftest* 18950 LDFLAGS=$save_LDFLAGS 18951 18952fi 18953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 18954$as_echo "$lt_cv_prog_compiler__b" >&6; } 18955 18956if test yes = "$lt_cv_prog_compiler__b"; then 18957 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18958else 18959 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18960fi 18961 18962 ;; 18963 esac 18964 fi 18965 if test no = "$with_gnu_ld"; then 18966 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 18967 hardcode_libdir_separator=: 18968 18969 case $host_cpu in 18970 hppa*64*|ia64*) 18971 hardcode_direct=no 18972 hardcode_shlibpath_var=no 18973 ;; 18974 *) 18975 hardcode_direct=yes 18976 hardcode_direct_absolute=yes 18977 export_dynamic_flag_spec='$wl-E' 18978 18979 # hardcode_minus_L: Not really in the search PATH, 18980 # but as the default location of the library. 18981 hardcode_minus_L=yes 18982 ;; 18983 esac 18984 fi 18985 ;; 18986 18987 irix5* | irix6* | nonstopux*) 18988 if test yes = "$GCC"; then 18989 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' 18990 # Try to use the -exported_symbol ld option, if it does not 18991 # work, assume that -exports_file does not work either and 18992 # implicitly export all symbols. 18993 # This should be the same for all languages, so no per-tag cache variable. 18994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 18995$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 18996if ${lt_cv_irix_exported_symbol+:} false; then : 18997 $as_echo_n "(cached) " >&6 18998else 18999 save_LDFLAGS=$LDFLAGS 19000 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 19001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19002/* end confdefs.h. */ 19003int foo (void) { return 0; } 19004_ACEOF 19005if ac_fn_c_try_link "$LINENO"; then : 19006 lt_cv_irix_exported_symbol=yes 19007else 19008 lt_cv_irix_exported_symbol=no 19009fi 19010rm -f core conftest.err conftest.$ac_objext \ 19011 conftest$ac_exeext conftest.$ac_ext 19012 LDFLAGS=$save_LDFLAGS 19013fi 19014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 19015$as_echo "$lt_cv_irix_exported_symbol" >&6; } 19016 if test yes = "$lt_cv_irix_exported_symbol"; then 19017 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' 19018 fi 19019 else 19020 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' 19021 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' 19022 fi 19023 archive_cmds_need_lc='no' 19024 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19025 hardcode_libdir_separator=: 19026 inherit_rpath=yes 19027 link_all_deplibs=yes 19028 ;; 19029 19030 linux*) 19031 case $cc_basename in 19032 tcc*) 19033 # Fabrice Bellard et al's Tiny C Compiler 19034 ld_shlibs=yes 19035 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19036 ;; 19037 esac 19038 ;; 19039 19040 netbsd*) 19041 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19042 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 19043 else 19044 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 19045 fi 19046 hardcode_libdir_flag_spec='-R$libdir' 19047 hardcode_direct=yes 19048 hardcode_shlibpath_var=no 19049 ;; 19050 19051 newsos6) 19052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19053 hardcode_direct=yes 19054 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19055 hardcode_libdir_separator=: 19056 hardcode_shlibpath_var=no 19057 ;; 19058 19059 *nto* | *qnx*) 19060 ;; 19061 19062 openbsd* | bitrig*) 19063 if test -f /usr/libexec/ld.so; then 19064 hardcode_direct=yes 19065 hardcode_shlibpath_var=no 19066 hardcode_direct_absolute=yes 19067 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 19068 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19069 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 19070 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 19071 export_dynamic_flag_spec='$wl-E' 19072 else 19073 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19074 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 19075 fi 19076 else 19077 ld_shlibs=no 19078 fi 19079 ;; 19080 19081 os2*) 19082 hardcode_libdir_flag_spec='-L$libdir' 19083 hardcode_minus_L=yes 19084 allow_undefined_flag=unsupported 19085 shrext_cmds=.dll 19086 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19087 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19088 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19089 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19090 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 19091 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19092 emximp -o $lib $output_objdir/$libname.def' 19093 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19094 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19095 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19096 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19097 prefix_cmds="$SED"~ 19098 if test EXPORTS = "`$SED 1q $export_symbols`"; then 19099 prefix_cmds="$prefix_cmds -e 1d"; 19100 fi~ 19101 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 19102 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 19103 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19104 emximp -o $lib $output_objdir/$libname.def' 19105 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 19106 enable_shared_with_static_runtimes=yes 19107 ;; 19108 19109 osf3*) 19110 if test yes = "$GCC"; then 19111 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 19112 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' 19113 else 19114 allow_undefined_flag=' -expect_unresolved \*' 19115 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' 19116 fi 19117 archive_cmds_need_lc='no' 19118 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19119 hardcode_libdir_separator=: 19120 ;; 19121 19122 osf4* | osf5*) # as osf3* with the addition of -msym flag 19123 if test yes = "$GCC"; then 19124 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 19125 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' 19126 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19127 else 19128 allow_undefined_flag=' -expect_unresolved \*' 19129 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' 19130 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~ 19131 $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' 19132 19133 # Both c and cxx compiler support -rpath directly 19134 hardcode_libdir_flag_spec='-rpath $libdir' 19135 fi 19136 archive_cmds_need_lc='no' 19137 hardcode_libdir_separator=: 19138 ;; 19139 19140 solaris*) 19141 no_undefined_flag=' -z defs' 19142 if test yes = "$GCC"; then 19143 wlarc='$wl' 19144 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 19145 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19146 $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' 19147 else 19148 case `$CC -V 2>&1` in 19149 *"Compilers 5.0"*) 19150 wlarc='' 19151 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 19152 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19153 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 19154 ;; 19155 *) 19156 wlarc='$wl' 19157 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 19158 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19159 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 19160 ;; 19161 esac 19162 fi 19163 hardcode_libdir_flag_spec='-R$libdir' 19164 hardcode_shlibpath_var=no 19165 case $host_os in 19166 solaris2.[0-5] | solaris2.[0-5].*) ;; 19167 *) 19168 # The compiler driver will combine and reorder linker options, 19169 # but understands '-z linker_flag'. GCC discards it without '$wl', 19170 # but is careful enough not to reorder. 19171 # Supported since Solaris 2.6 (maybe 2.5.1?) 19172 if test yes = "$GCC"; then 19173 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 19174 else 19175 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 19176 fi 19177 ;; 19178 esac 19179 link_all_deplibs=yes 19180 ;; 19181 19182 sunos4*) 19183 if test sequent = "$host_vendor"; then 19184 # Use $CC to link under sequent, because it throws in some extra .o 19185 # files that make .init and .fini sections work. 19186 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 19187 else 19188 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 19189 fi 19190 hardcode_libdir_flag_spec='-L$libdir' 19191 hardcode_direct=yes 19192 hardcode_minus_L=yes 19193 hardcode_shlibpath_var=no 19194 ;; 19195 19196 sysv4) 19197 case $host_vendor in 19198 sni) 19199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19200 hardcode_direct=yes # is this really true??? 19201 ;; 19202 siemens) 19203 ## LD is ld it makes a PLAMLIB 19204 ## CC just makes a GrossModule. 19205 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 19206 reload_cmds='$CC -r -o $output$reload_objs' 19207 hardcode_direct=no 19208 ;; 19209 motorola) 19210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19211 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 19212 ;; 19213 esac 19214 runpath_var='LD_RUN_PATH' 19215 hardcode_shlibpath_var=no 19216 ;; 19217 19218 sysv4.3*) 19219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19220 hardcode_shlibpath_var=no 19221 export_dynamic_flag_spec='-Bexport' 19222 ;; 19223 19224 sysv4*MP*) 19225 if test -d /usr/nec; then 19226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19227 hardcode_shlibpath_var=no 19228 runpath_var=LD_RUN_PATH 19229 hardcode_runpath_var=yes 19230 ld_shlibs=yes 19231 fi 19232 ;; 19233 19234 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 19235 no_undefined_flag='$wl-z,text' 19236 archive_cmds_need_lc=no 19237 hardcode_shlibpath_var=no 19238 runpath_var='LD_RUN_PATH' 19239 19240 if test yes = "$GCC"; then 19241 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19242 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19243 else 19244 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19245 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19246 fi 19247 ;; 19248 19249 sysv5* | sco3.2v5* | sco5v6*) 19250 # Note: We CANNOT use -z defs as we might desire, because we do not 19251 # link with -lc, and that would cause any symbols used from libc to 19252 # always be unresolved, which means just about no library would 19253 # ever link correctly. If we're not using GNU ld we use -z text 19254 # though, which does catch some bad symbols but isn't as heavy-handed 19255 # as -z defs. 19256 no_undefined_flag='$wl-z,text' 19257 allow_undefined_flag='$wl-z,nodefs' 19258 archive_cmds_need_lc=no 19259 hardcode_shlibpath_var=no 19260 hardcode_libdir_flag_spec='$wl-R,$libdir' 19261 hardcode_libdir_separator=':' 19262 link_all_deplibs=yes 19263 export_dynamic_flag_spec='$wl-Bexport' 19264 runpath_var='LD_RUN_PATH' 19265 19266 if test yes = "$GCC"; then 19267 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19268 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19269 else 19270 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19271 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19272 fi 19273 ;; 19274 19275 uts4*) 19276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19277 hardcode_libdir_flag_spec='-L$libdir' 19278 hardcode_shlibpath_var=no 19279 ;; 19280 19281 *) 19282 ld_shlibs=no 19283 ;; 19284 esac 19285 19286 if test sni = "$host_vendor"; then 19287 case $host in 19288 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 19289 export_dynamic_flag_spec='$wl-Blargedynsym' 19290 ;; 19291 esac 19292 fi 19293 fi 19294 19295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 19296$as_echo "$ld_shlibs" >&6; } 19297test no = "$ld_shlibs" && can_build_shared=no 19298 19299with_gnu_ld=$with_gnu_ld 19300 19301 19302 19303 19304 19305 19306 19307 19308 19309 19310 19311 19312 19313 19314 19315# 19316# Do we need to explicitly link libc? 19317# 19318case "x$archive_cmds_need_lc" in 19319x|xyes) 19320 # Assume -lc should be added 19321 archive_cmds_need_lc=yes 19322 19323 if test yes,yes = "$GCC,$enable_shared"; then 19324 case $archive_cmds in 19325 *'~'*) 19326 # FIXME: we may have to deal with multi-command sequences. 19327 ;; 19328 '$CC '*) 19329 # Test whether the compiler implicitly links with -lc since on some 19330 # systems, -lgcc has to come before -lc. If gcc already passes -lc 19331 # to ld, don't add -lc before -lgcc. 19332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 19333$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 19334if ${lt_cv_archive_cmds_need_lc+:} false; then : 19335 $as_echo_n "(cached) " >&6 19336else 19337 $RM conftest* 19338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19339 19340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 19341 (eval $ac_compile) 2>&5 19342 ac_status=$? 19343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19344 test $ac_status = 0; } 2>conftest.err; then 19345 soname=conftest 19346 lib=conftest 19347 libobjs=conftest.$ac_objext 19348 deplibs= 19349 wl=$lt_prog_compiler_wl 19350 pic_flag=$lt_prog_compiler_pic 19351 compiler_flags=-v 19352 linker_flags=-v 19353 verstring= 19354 output_objdir=. 19355 libname=conftest 19356 lt_save_allow_undefined_flag=$allow_undefined_flag 19357 allow_undefined_flag= 19358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 19359 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 19360 ac_status=$? 19361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19362 test $ac_status = 0; } 19363 then 19364 lt_cv_archive_cmds_need_lc=no 19365 else 19366 lt_cv_archive_cmds_need_lc=yes 19367 fi 19368 allow_undefined_flag=$lt_save_allow_undefined_flag 19369 else 19370 cat conftest.err 1>&5 19371 fi 19372 $RM conftest* 19373 19374fi 19375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 19376$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 19377 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 19378 ;; 19379 esac 19380 fi 19381 ;; 19382esac 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 19531 19532 19533 19534 19535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 19536$as_echo_n "checking dynamic linker characteristics... " >&6; } 19537 19538if test yes = "$GCC"; then 19539 case $host_os in 19540 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 19541 *) lt_awk_arg='/^libraries:/' ;; 19542 esac 19543 case $host_os in 19544 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 19545 *) lt_sed_strip_eq='s|=/|/|g' ;; 19546 esac 19547 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 19548 case $lt_search_path_spec in 19549 *\;*) 19550 # if the path contains ";" then we assume it to be the separator 19551 # otherwise default to the standard path separator (i.e. ":") - it is 19552 # assumed that no part of a normal pathname contains ";" but that should 19553 # okay in the real world where ";" in dirpaths is itself problematic. 19554 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 19555 ;; 19556 *) 19557 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 19558 ;; 19559 esac 19560 # Ok, now we have the path, separated by spaces, we can step through it 19561 # and add multilib dir if necessary... 19562 lt_tmp_lt_search_path_spec= 19563 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 19564 # ...but if some path component already ends with the multilib dir we assume 19565 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 19566 case "$lt_multi_os_dir; $lt_search_path_spec " in 19567 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 19568 lt_multi_os_dir= 19569 ;; 19570 esac 19571 for lt_sys_path in $lt_search_path_spec; do 19572 if test -d "$lt_sys_path$lt_multi_os_dir"; then 19573 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 19574 elif test -n "$lt_multi_os_dir"; then 19575 test -d "$lt_sys_path" && \ 19576 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 19577 fi 19578 done 19579 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 19580BEGIN {RS = " "; FS = "/|\n";} { 19581 lt_foo = ""; 19582 lt_count = 0; 19583 for (lt_i = NF; lt_i > 0; lt_i--) { 19584 if ($lt_i != "" && $lt_i != ".") { 19585 if ($lt_i == "..") { 19586 lt_count++; 19587 } else { 19588 if (lt_count == 0) { 19589 lt_foo = "/" $lt_i lt_foo; 19590 } else { 19591 lt_count--; 19592 } 19593 } 19594 } 19595 } 19596 if (lt_foo != "") { lt_freq[lt_foo]++; } 19597 if (lt_freq[lt_foo] == 1) { print lt_foo; } 19598}'` 19599 # AWK program above erroneously prepends '/' to C:/dos/paths 19600 # for these hosts. 19601 case $host_os in 19602 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 19603 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 19604 esac 19605 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 19606else 19607 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 19608fi 19609library_names_spec= 19610libname_spec='lib$name' 19611soname_spec= 19612shrext_cmds=.so 19613postinstall_cmds= 19614postuninstall_cmds= 19615finish_cmds= 19616finish_eval= 19617shlibpath_var= 19618shlibpath_overrides_runpath=unknown 19619version_type=none 19620dynamic_linker="$host_os ld.so" 19621sys_lib_dlsearch_path_spec="/lib /usr/lib" 19622need_lib_prefix=unknown 19623hardcode_into_libs=no 19624 19625# when you set need_version to no, make sure it does not cause -set_version 19626# flags to be left without arguments 19627need_version=unknown 19628 19629 19630 19631case $host_os in 19632aix3*) 19633 version_type=linux # correct to gnu/linux during the next big refactor 19634 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 19635 shlibpath_var=LIBPATH 19636 19637 # AIX 3 has no versioning support, so we append a major version to the name. 19638 soname_spec='$libname$release$shared_ext$major' 19639 ;; 19640 19641aix[4-9]*) 19642 version_type=linux # correct to gnu/linux during the next big refactor 19643 need_lib_prefix=no 19644 need_version=no 19645 hardcode_into_libs=yes 19646 if test ia64 = "$host_cpu"; then 19647 # AIX 5 supports IA64 19648 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 19649 shlibpath_var=LD_LIBRARY_PATH 19650 else 19651 # With GCC up to 2.95.x, collect2 would create an import file 19652 # for dependence libraries. The import file would start with 19653 # the line '#! .'. This would cause the generated library to 19654 # depend on '.', always an invalid library. This was fixed in 19655 # development snapshots of GCC prior to 3.0. 19656 case $host_os in 19657 aix4 | aix4.[01] | aix4.[01].*) 19658 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 19659 echo ' yes ' 19660 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 19661 : 19662 else 19663 can_build_shared=no 19664 fi 19665 ;; 19666 esac 19667 # Using Import Files as archive members, it is possible to support 19668 # filename-based versioning of shared library archives on AIX. While 19669 # this would work for both with and without runtime linking, it will 19670 # prevent static linking of such archives. So we do filename-based 19671 # shared library versioning with .so extension only, which is used 19672 # when both runtime linking and shared linking is enabled. 19673 # Unfortunately, runtime linking may impact performance, so we do 19674 # not want this to be the default eventually. Also, we use the 19675 # versioned .so libs for executables only if there is the -brtl 19676 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 19677 # To allow for filename-based versioning support, we need to create 19678 # libNAME.so.V as an archive file, containing: 19679 # *) an Import File, referring to the versioned filename of the 19680 # archive as well as the shared archive member, telling the 19681 # bitwidth (32 or 64) of that shared object, and providing the 19682 # list of exported symbols of that shared object, eventually 19683 # decorated with the 'weak' keyword 19684 # *) the shared object with the F_LOADONLY flag set, to really avoid 19685 # it being seen by the linker. 19686 # At run time we better use the real file rather than another symlink, 19687 # but for link time we create the symlink libNAME.so -> libNAME.so.V 19688 19689 case $with_aix_soname,$aix_use_runtimelinking in 19690 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 19691 # soname into executable. Probably we can add versioning support to 19692 # collect2, so additional links can be useful in future. 19693 aix,yes) # traditional libtool 19694 dynamic_linker='AIX unversionable lib.so' 19695 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 19696 # instead of lib<name>.a to let people know that these are not 19697 # typical AIX shared libraries. 19698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19699 ;; 19700 aix,no) # traditional AIX only 19701 dynamic_linker='AIX lib.a(lib.so.V)' 19702 # We preserve .a as extension for shared libraries through AIX4.2 19703 # and later when we are not doing run time linking. 19704 library_names_spec='$libname$release.a $libname.a' 19705 soname_spec='$libname$release$shared_ext$major' 19706 ;; 19707 svr4,*) # full svr4 only 19708 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 19709 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 19710 # We do not specify a path in Import Files, so LIBPATH fires. 19711 shlibpath_overrides_runpath=yes 19712 ;; 19713 *,yes) # both, prefer svr4 19714 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 19715 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 19716 # unpreferred sharedlib libNAME.a needs extra handling 19717 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"' 19718 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"' 19719 # We do not specify a path in Import Files, so LIBPATH fires. 19720 shlibpath_overrides_runpath=yes 19721 ;; 19722 *,no) # both, prefer aix 19723 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 19724 library_names_spec='$libname$release.a $libname.a' 19725 soname_spec='$libname$release$shared_ext$major' 19726 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 19727 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)' 19728 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"' 19729 ;; 19730 esac 19731 shlibpath_var=LIBPATH 19732 fi 19733 ;; 19734 19735amigaos*) 19736 case $host_cpu in 19737 powerpc) 19738 # Since July 2007 AmigaOS4 officially supports .so libraries. 19739 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 19740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19741 ;; 19742 m68k) 19743 library_names_spec='$libname.ixlibrary $libname.a' 19744 # Create ${libname}_ixlibrary.a entries in /sys/libs. 19745 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' 19746 ;; 19747 esac 19748 ;; 19749 19750beos*) 19751 library_names_spec='$libname$shared_ext' 19752 dynamic_linker="$host_os ld.so" 19753 shlibpath_var=LIBRARY_PATH 19754 ;; 19755 19756bsdi[45]*) 19757 version_type=linux # correct to gnu/linux during the next big refactor 19758 need_version=no 19759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19760 soname_spec='$libname$release$shared_ext$major' 19761 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19762 shlibpath_var=LD_LIBRARY_PATH 19763 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19764 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19765 # the default ld.so.conf also contains /usr/contrib/lib and 19766 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19767 # libtool to hard-code these into programs 19768 ;; 19769 19770cygwin* | mingw* | pw32* | cegcc*) 19771 version_type=windows 19772 shrext_cmds=.dll 19773 need_version=no 19774 need_lib_prefix=no 19775 19776 case $GCC,$cc_basename in 19777 yes,*) 19778 # gcc 19779 library_names_spec='$libname.dll.a' 19780 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19781 postinstall_cmds='base_file=`basename \$file`~ 19782 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 19783 dldir=$destdir/`dirname \$dlpath`~ 19784 test -d \$dldir || mkdir -p \$dldir~ 19785 $install_prog $dir/$dlname \$dldir/$dlname~ 19786 chmod a+x \$dldir/$dlname~ 19787 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 19788 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 19789 fi' 19790 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19791 dlpath=$dir/\$dldll~ 19792 $RM \$dlpath' 19793 shlibpath_overrides_runpath=yes 19794 19795 case $host_os in 19796 cygwin*) 19797 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19798 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19799 19800 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 19801 ;; 19802 mingw* | cegcc*) 19803 # MinGW DLLs use traditional 'lib' prefix 19804 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19805 ;; 19806 pw32*) 19807 # pw32 DLLs use 'pw' prefix rather than 'lib' 19808 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19809 ;; 19810 esac 19811 dynamic_linker='Win32 ld.exe' 19812 ;; 19813 19814 *,cl*) 19815 # Native MSVC 19816 libname_spec='$name' 19817 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19818 library_names_spec='$libname.dll.lib' 19819 19820 case $build_os in 19821 mingw*) 19822 sys_lib_search_path_spec= 19823 lt_save_ifs=$IFS 19824 IFS=';' 19825 for lt_path in $LIB 19826 do 19827 IFS=$lt_save_ifs 19828 # Let DOS variable expansion print the short 8.3 style file name. 19829 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 19830 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 19831 done 19832 IFS=$lt_save_ifs 19833 # Convert to MSYS style. 19834 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 19835 ;; 19836 cygwin*) 19837 # Convert to unix form, then to dos form, then back to unix form 19838 # but this time dos style (no spaces!) so that the unix form looks 19839 # like /cygdrive/c/PROGRA~1:/cygdr... 19840 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 19841 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 19842 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19843 ;; 19844 *) 19845 sys_lib_search_path_spec=$LIB 19846 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 19847 # It is most probably a Windows format PATH. 19848 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19849 else 19850 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19851 fi 19852 # FIXME: find the short name or the path components, as spaces are 19853 # common. (e.g. "Program Files" -> "PROGRA~1") 19854 ;; 19855 esac 19856 19857 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19858 postinstall_cmds='base_file=`basename \$file`~ 19859 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 19860 dldir=$destdir/`dirname \$dlpath`~ 19861 test -d \$dldir || mkdir -p \$dldir~ 19862 $install_prog $dir/$dlname \$dldir/$dlname' 19863 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19864 dlpath=$dir/\$dldll~ 19865 $RM \$dlpath' 19866 shlibpath_overrides_runpath=yes 19867 dynamic_linker='Win32 link.exe' 19868 ;; 19869 19870 *) 19871 # Assume MSVC wrapper 19872 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 19873 dynamic_linker='Win32 ld.exe' 19874 ;; 19875 esac 19876 # FIXME: first we should search . and the directory the executable is in 19877 shlibpath_var=PATH 19878 ;; 19879 19880darwin* | rhapsody*) 19881 dynamic_linker="$host_os dyld" 19882 version_type=darwin 19883 need_lib_prefix=no 19884 need_version=no 19885 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 19886 soname_spec='$libname$release$major$shared_ext' 19887 shlibpath_overrides_runpath=yes 19888 shlibpath_var=DYLD_LIBRARY_PATH 19889 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 19890 19891 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 19892 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19893 ;; 19894 19895dgux*) 19896 version_type=linux # correct to gnu/linux during the next big refactor 19897 need_lib_prefix=no 19898 need_version=no 19899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19900 soname_spec='$libname$release$shared_ext$major' 19901 shlibpath_var=LD_LIBRARY_PATH 19902 ;; 19903 19904freebsd* | dragonfly*) 19905 # DragonFly does not have aout. When/if they implement a new 19906 # versioning mechanism, adjust this. 19907 if test -x /usr/bin/objformat; then 19908 objformat=`/usr/bin/objformat` 19909 else 19910 case $host_os in 19911 freebsd[23].*) objformat=aout ;; 19912 *) objformat=elf ;; 19913 esac 19914 fi 19915 version_type=freebsd-$objformat 19916 case $version_type in 19917 freebsd-elf*) 19918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19919 soname_spec='$libname$release$shared_ext$major' 19920 need_version=no 19921 need_lib_prefix=no 19922 ;; 19923 freebsd-*) 19924 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 19925 need_version=yes 19926 ;; 19927 esac 19928 shlibpath_var=LD_LIBRARY_PATH 19929 case $host_os in 19930 freebsd2.*) 19931 shlibpath_overrides_runpath=yes 19932 ;; 19933 freebsd3.[01]* | freebsdelf3.[01]*) 19934 shlibpath_overrides_runpath=yes 19935 hardcode_into_libs=yes 19936 ;; 19937 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 19938 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 19939 shlibpath_overrides_runpath=no 19940 hardcode_into_libs=yes 19941 ;; 19942 *) # from 4.6 on, and DragonFly 19943 shlibpath_overrides_runpath=yes 19944 hardcode_into_libs=yes 19945 ;; 19946 esac 19947 ;; 19948 19949haiku*) 19950 version_type=linux # correct to gnu/linux during the next big refactor 19951 need_lib_prefix=no 19952 need_version=no 19953 dynamic_linker="$host_os runtime_loader" 19954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19955 soname_spec='$libname$release$shared_ext$major' 19956 shlibpath_var=LIBRARY_PATH 19957 shlibpath_overrides_runpath=no 19958 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 19959 hardcode_into_libs=yes 19960 ;; 19961 19962hpux9* | hpux10* | hpux11*) 19963 # Give a soname corresponding to the major version so that dld.sl refuses to 19964 # link against other versions. 19965 version_type=sunos 19966 need_lib_prefix=no 19967 need_version=no 19968 case $host_cpu in 19969 ia64*) 19970 shrext_cmds='.so' 19971 hardcode_into_libs=yes 19972 dynamic_linker="$host_os dld.so" 19973 shlibpath_var=LD_LIBRARY_PATH 19974 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19976 soname_spec='$libname$release$shared_ext$major' 19977 if test 32 = "$HPUX_IA64_MODE"; then 19978 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 19979 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 19980 else 19981 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 19982 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 19983 fi 19984 ;; 19985 hppa*64*) 19986 shrext_cmds='.sl' 19987 hardcode_into_libs=yes 19988 dynamic_linker="$host_os dld.sl" 19989 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 19990 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19991 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19992 soname_spec='$libname$release$shared_ext$major' 19993 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 19994 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19995 ;; 19996 *) 19997 shrext_cmds='.sl' 19998 dynamic_linker="$host_os dld.sl" 19999 shlibpath_var=SHLIB_PATH 20000 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 20001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20002 soname_spec='$libname$release$shared_ext$major' 20003 ;; 20004 esac 20005 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 20006 postinstall_cmds='chmod 555 $lib' 20007 # or fails outright, so override atomically: 20008 install_override_mode=555 20009 ;; 20010 20011interix[3-9]*) 20012 version_type=linux # correct to gnu/linux during the next big refactor 20013 need_lib_prefix=no 20014 need_version=no 20015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20016 soname_spec='$libname$release$shared_ext$major' 20017 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 20018 shlibpath_var=LD_LIBRARY_PATH 20019 shlibpath_overrides_runpath=no 20020 hardcode_into_libs=yes 20021 ;; 20022 20023irix5* | irix6* | nonstopux*) 20024 case $host_os in 20025 nonstopux*) version_type=nonstopux ;; 20026 *) 20027 if test yes = "$lt_cv_prog_gnu_ld"; then 20028 version_type=linux # correct to gnu/linux during the next big refactor 20029 else 20030 version_type=irix 20031 fi ;; 20032 esac 20033 need_lib_prefix=no 20034 need_version=no 20035 soname_spec='$libname$release$shared_ext$major' 20036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 20037 case $host_os in 20038 irix5* | nonstopux*) 20039 libsuff= shlibsuff= 20040 ;; 20041 *) 20042 case $LD in # libtool.m4 will add one of these switches to LD 20043 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 20044 libsuff= shlibsuff= libmagic=32-bit;; 20045 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 20046 libsuff=32 shlibsuff=N32 libmagic=N32;; 20047 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 20048 libsuff=64 shlibsuff=64 libmagic=64-bit;; 20049 *) libsuff= shlibsuff= libmagic=never-match;; 20050 esac 20051 ;; 20052 esac 20053 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 20054 shlibpath_overrides_runpath=no 20055 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 20056 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 20057 hardcode_into_libs=yes 20058 ;; 20059 20060# No shared lib support for Linux oldld, aout, or coff. 20061linux*oldld* | linux*aout* | linux*coff*) 20062 dynamic_linker=no 20063 ;; 20064 20065linux*android*) 20066 version_type=none # Android doesn't support versioned libraries. 20067 need_lib_prefix=no 20068 need_version=no 20069 library_names_spec='$libname$release$shared_ext' 20070 soname_spec='$libname$release$shared_ext' 20071 finish_cmds= 20072 shlibpath_var=LD_LIBRARY_PATH 20073 shlibpath_overrides_runpath=yes 20074 20075 # This implies no fast_install, which is unacceptable. 20076 # Some rework will be needed to allow for fast_install 20077 # before this can be enabled. 20078 hardcode_into_libs=yes 20079 20080 dynamic_linker='Android linker' 20081 # Don't embed -rpath directories since the linker doesn't support them. 20082 hardcode_libdir_flag_spec='-L$libdir' 20083 ;; 20084 20085# This must be glibc/ELF. 20086linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 20087 version_type=linux # correct to gnu/linux during the next big refactor 20088 need_lib_prefix=no 20089 need_version=no 20090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20091 soname_spec='$libname$release$shared_ext$major' 20092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 20093 shlibpath_var=LD_LIBRARY_PATH 20094 shlibpath_overrides_runpath=no 20095 20096 # Some binutils ld are patched to set DT_RUNPATH 20097 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 20098 $as_echo_n "(cached) " >&6 20099else 20100 lt_cv_shlibpath_overrides_runpath=no 20101 save_LDFLAGS=$LDFLAGS 20102 save_libdir=$libdir 20103 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 20104 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 20105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20106/* end confdefs.h. */ 20107 20108int 20109main () 20110{ 20111 20112 ; 20113 return 0; 20114} 20115_ACEOF 20116if ac_fn_c_try_link "$LINENO"; then : 20117 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 20118 lt_cv_shlibpath_overrides_runpath=yes 20119fi 20120fi 20121rm -f core conftest.err conftest.$ac_objext \ 20122 conftest$ac_exeext conftest.$ac_ext 20123 LDFLAGS=$save_LDFLAGS 20124 libdir=$save_libdir 20125 20126fi 20127 20128 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 20129 20130 # This implies no fast_install, which is unacceptable. 20131 # Some rework will be needed to allow for fast_install 20132 # before this can be enabled. 20133 hardcode_into_libs=yes 20134 20135 # Add ABI-specific directories to the system library path. 20136 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 20137 20138 # Ideally, we could use ldconfig to report *all* directores which are 20139 # searched for libraries, however this is still not possible. Aside from not 20140 # being certain /sbin/ldconfig is available, command 20141 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 20142 # even though it is searched at run-time. Try to do the best guess by 20143 # appending ld.so.conf contents (and includes) to the search path. 20144 if test -f /etc/ld.so.conf; then 20145 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' ' '` 20146 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 20147 fi 20148 20149 # We used to test for /lib/ld.so.1 and disable shared libraries on 20150 # powerpc, because MkLinux only supported shared libraries with the 20151 # GNU dynamic linker. Since this was broken with cross compilers, 20152 # most powerpc-linux boxes support dynamic linking these days and 20153 # people can always --disable-shared, the test was removed, and we 20154 # assume the GNU/Linux dynamic linker is in use. 20155 dynamic_linker='GNU/Linux ld.so' 20156 ;; 20157 20158netbsd*) 20159 version_type=sunos 20160 need_lib_prefix=no 20161 need_version=no 20162 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20163 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20165 dynamic_linker='NetBSD (a.out) ld.so' 20166 else 20167 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20168 soname_spec='$libname$release$shared_ext$major' 20169 dynamic_linker='NetBSD ld.elf_so' 20170 fi 20171 shlibpath_var=LD_LIBRARY_PATH 20172 shlibpath_overrides_runpath=yes 20173 hardcode_into_libs=yes 20174 ;; 20175 20176newsos6) 20177 version_type=linux # correct to gnu/linux during the next big refactor 20178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20179 shlibpath_var=LD_LIBRARY_PATH 20180 shlibpath_overrides_runpath=yes 20181 ;; 20182 20183*nto* | *qnx*) 20184 version_type=qnx 20185 need_lib_prefix=no 20186 need_version=no 20187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20188 soname_spec='$libname$release$shared_ext$major' 20189 shlibpath_var=LD_LIBRARY_PATH 20190 shlibpath_overrides_runpath=no 20191 hardcode_into_libs=yes 20192 dynamic_linker='ldqnx.so' 20193 ;; 20194 20195openbsd* | bitrig*) 20196 version_type=sunos 20197 sys_lib_dlsearch_path_spec=/usr/lib 20198 need_lib_prefix=no 20199 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 20200 need_version=no 20201 else 20202 need_version=yes 20203 fi 20204 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20206 shlibpath_var=LD_LIBRARY_PATH 20207 shlibpath_overrides_runpath=yes 20208 ;; 20209 20210os2*) 20211 libname_spec='$name' 20212 version_type=windows 20213 shrext_cmds=.dll 20214 need_version=no 20215 need_lib_prefix=no 20216 # OS/2 can only load a DLL with a base name of 8 characters or less. 20217 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 20218 v=$($ECHO $release$versuffix | tr -d .-); 20219 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 20220 $ECHO $n$v`$shared_ext' 20221 library_names_spec='${libname}_dll.$libext' 20222 dynamic_linker='OS/2 ld.exe' 20223 shlibpath_var=BEGINLIBPATH 20224 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 20225 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20226 postinstall_cmds='base_file=`basename \$file`~ 20227 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 20228 dldir=$destdir/`dirname \$dlpath`~ 20229 test -d \$dldir || mkdir -p \$dldir~ 20230 $install_prog $dir/$dlname \$dldir/$dlname~ 20231 chmod a+x \$dldir/$dlname~ 20232 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 20233 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 20234 fi' 20235 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 20236 dlpath=$dir/\$dldll~ 20237 $RM \$dlpath' 20238 ;; 20239 20240osf3* | osf4* | osf5*) 20241 version_type=osf 20242 need_lib_prefix=no 20243 need_version=no 20244 soname_spec='$libname$release$shared_ext$major' 20245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20246 shlibpath_var=LD_LIBRARY_PATH 20247 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 20248 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20249 ;; 20250 20251rdos*) 20252 dynamic_linker=no 20253 ;; 20254 20255solaris*) 20256 version_type=linux # correct to gnu/linux during the next big refactor 20257 need_lib_prefix=no 20258 need_version=no 20259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20260 soname_spec='$libname$release$shared_ext$major' 20261 shlibpath_var=LD_LIBRARY_PATH 20262 shlibpath_overrides_runpath=yes 20263 hardcode_into_libs=yes 20264 # ldd complains unless libraries are executable 20265 postinstall_cmds='chmod +x $lib' 20266 ;; 20267 20268sunos4*) 20269 version_type=sunos 20270 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20271 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 20272 shlibpath_var=LD_LIBRARY_PATH 20273 shlibpath_overrides_runpath=yes 20274 if test yes = "$with_gnu_ld"; then 20275 need_lib_prefix=no 20276 fi 20277 need_version=yes 20278 ;; 20279 20280sysv4 | sysv4.3*) 20281 version_type=linux # correct to gnu/linux during the next big refactor 20282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20283 soname_spec='$libname$release$shared_ext$major' 20284 shlibpath_var=LD_LIBRARY_PATH 20285 case $host_vendor in 20286 sni) 20287 shlibpath_overrides_runpath=no 20288 need_lib_prefix=no 20289 runpath_var=LD_RUN_PATH 20290 ;; 20291 siemens) 20292 need_lib_prefix=no 20293 ;; 20294 motorola) 20295 need_lib_prefix=no 20296 need_version=no 20297 shlibpath_overrides_runpath=no 20298 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 20299 ;; 20300 esac 20301 ;; 20302 20303sysv4*MP*) 20304 if test -d /usr/nec; then 20305 version_type=linux # correct to gnu/linux during the next big refactor 20306 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 20307 soname_spec='$libname$shared_ext.$major' 20308 shlibpath_var=LD_LIBRARY_PATH 20309 fi 20310 ;; 20311 20312sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 20313 version_type=sco 20314 need_lib_prefix=no 20315 need_version=no 20316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 20317 soname_spec='$libname$release$shared_ext$major' 20318 shlibpath_var=LD_LIBRARY_PATH 20319 shlibpath_overrides_runpath=yes 20320 hardcode_into_libs=yes 20321 if test yes = "$with_gnu_ld"; then 20322 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 20323 else 20324 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 20325 case $host_os in 20326 sco3.2v5*) 20327 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 20328 ;; 20329 esac 20330 fi 20331 sys_lib_dlsearch_path_spec='/usr/lib' 20332 ;; 20333 20334tpf*) 20335 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 20336 version_type=linux # correct to gnu/linux during the next big refactor 20337 need_lib_prefix=no 20338 need_version=no 20339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20340 shlibpath_var=LD_LIBRARY_PATH 20341 shlibpath_overrides_runpath=no 20342 hardcode_into_libs=yes 20343 ;; 20344 20345uts4*) 20346 version_type=linux # correct to gnu/linux during the next big refactor 20347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20348 soname_spec='$libname$release$shared_ext$major' 20349 shlibpath_var=LD_LIBRARY_PATH 20350 ;; 20351 20352*) 20353 dynamic_linker=no 20354 ;; 20355esac 20356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 20357$as_echo "$dynamic_linker" >&6; } 20358test no = "$dynamic_linker" && can_build_shared=no 20359 20360variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 20361if test yes = "$GCC"; then 20362 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 20363fi 20364 20365if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 20366 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 20367fi 20368 20369if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 20370 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 20371fi 20372 20373# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 20374configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 20375 20376# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 20377func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 20378 20379# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 20380configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 20381 20382 20383 20384 20385 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 20479$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 20480hardcode_action= 20481if test -n "$hardcode_libdir_flag_spec" || 20482 test -n "$runpath_var" || 20483 test yes = "$hardcode_automatic"; then 20484 20485 # We can hardcode non-existent directories. 20486 if test no != "$hardcode_direct" && 20487 # If the only mechanism to avoid hardcoding is shlibpath_var, we 20488 # have to relink, otherwise we might link with an installed library 20489 # when we should be linking with a yet-to-be-installed one 20490 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 20491 test no != "$hardcode_minus_L"; then 20492 # Linking always hardcodes the temporary library directory. 20493 hardcode_action=relink 20494 else 20495 # We can link without hardcoding, and we can hardcode nonexisting dirs. 20496 hardcode_action=immediate 20497 fi 20498else 20499 # We cannot hardcode anything, or else we can only hardcode existing 20500 # directories. 20501 hardcode_action=unsupported 20502fi 20503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 20504$as_echo "$hardcode_action" >&6; } 20505 20506if test relink = "$hardcode_action" || 20507 test yes = "$inherit_rpath"; then 20508 # Fast installation is not supported 20509 enable_fast_install=no 20510elif test yes = "$shlibpath_overrides_runpath" || 20511 test no = "$enable_shared"; then 20512 # Fast installation is not necessary 20513 enable_fast_install=needless 20514fi 20515 20516 20517 20518 20519 20520 20521 if test yes != "$enable_dlopen"; then 20522 enable_dlopen=unknown 20523 enable_dlopen_self=unknown 20524 enable_dlopen_self_static=unknown 20525else 20526 lt_cv_dlopen=no 20527 lt_cv_dlopen_libs= 20528 20529 case $host_os in 20530 beos*) 20531 lt_cv_dlopen=load_add_on 20532 lt_cv_dlopen_libs= 20533 lt_cv_dlopen_self=yes 20534 ;; 20535 20536 mingw* | pw32* | cegcc*) 20537 lt_cv_dlopen=LoadLibrary 20538 lt_cv_dlopen_libs= 20539 ;; 20540 20541 cygwin*) 20542 lt_cv_dlopen=dlopen 20543 lt_cv_dlopen_libs= 20544 ;; 20545 20546 darwin*) 20547 # if libdl is installed we need to link against it 20548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 20549$as_echo_n "checking for dlopen in -ldl... " >&6; } 20550if ${ac_cv_lib_dl_dlopen+:} false; then : 20551 $as_echo_n "(cached) " >&6 20552else 20553 ac_check_lib_save_LIBS=$LIBS 20554LIBS="-ldl $LIBS" 20555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20556/* end confdefs.h. */ 20557 20558/* Override any GCC internal prototype to avoid an error. 20559 Use char because int might match the return type of a GCC 20560 builtin and then its argument prototype would still apply. */ 20561#ifdef __cplusplus 20562extern "C" 20563#endif 20564char dlopen (); 20565int 20566main () 20567{ 20568return dlopen (); 20569 ; 20570 return 0; 20571} 20572_ACEOF 20573if ac_fn_c_try_link "$LINENO"; then : 20574 ac_cv_lib_dl_dlopen=yes 20575else 20576 ac_cv_lib_dl_dlopen=no 20577fi 20578rm -f core conftest.err conftest.$ac_objext \ 20579 conftest$ac_exeext conftest.$ac_ext 20580LIBS=$ac_check_lib_save_LIBS 20581fi 20582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 20583$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 20584if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 20585 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 20586else 20587 20588 lt_cv_dlopen=dyld 20589 lt_cv_dlopen_libs= 20590 lt_cv_dlopen_self=yes 20591 20592fi 20593 20594 ;; 20595 20596 tpf*) 20597 # Don't try to run any link tests for TPF. We know it's impossible 20598 # because TPF is a cross-compiler, and we know how we open DSOs. 20599 lt_cv_dlopen=dlopen 20600 lt_cv_dlopen_libs= 20601 lt_cv_dlopen_self=no 20602 ;; 20603 20604 *) 20605 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 20606if test "x$ac_cv_func_shl_load" = xyes; then : 20607 lt_cv_dlopen=shl_load 20608else 20609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 20610$as_echo_n "checking for shl_load in -ldld... " >&6; } 20611if ${ac_cv_lib_dld_shl_load+:} false; then : 20612 $as_echo_n "(cached) " >&6 20613else 20614 ac_check_lib_save_LIBS=$LIBS 20615LIBS="-ldld $LIBS" 20616cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20617/* end confdefs.h. */ 20618 20619/* Override any GCC internal prototype to avoid an error. 20620 Use char because int might match the return type of a GCC 20621 builtin and then its argument prototype would still apply. */ 20622#ifdef __cplusplus 20623extern "C" 20624#endif 20625char shl_load (); 20626int 20627main () 20628{ 20629return shl_load (); 20630 ; 20631 return 0; 20632} 20633_ACEOF 20634if ac_fn_c_try_link "$LINENO"; then : 20635 ac_cv_lib_dld_shl_load=yes 20636else 20637 ac_cv_lib_dld_shl_load=no 20638fi 20639rm -f core conftest.err conftest.$ac_objext \ 20640 conftest$ac_exeext conftest.$ac_ext 20641LIBS=$ac_check_lib_save_LIBS 20642fi 20643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 20644$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 20645if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 20646 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 20647else 20648 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 20649if test "x$ac_cv_func_dlopen" = xyes; then : 20650 lt_cv_dlopen=dlopen 20651else 20652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 20653$as_echo_n "checking for dlopen in -ldl... " >&6; } 20654if ${ac_cv_lib_dl_dlopen+:} false; then : 20655 $as_echo_n "(cached) " >&6 20656else 20657 ac_check_lib_save_LIBS=$LIBS 20658LIBS="-ldl $LIBS" 20659cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20660/* end confdefs.h. */ 20661 20662/* Override any GCC internal prototype to avoid an error. 20663 Use char because int might match the return type of a GCC 20664 builtin and then its argument prototype would still apply. */ 20665#ifdef __cplusplus 20666extern "C" 20667#endif 20668char dlopen (); 20669int 20670main () 20671{ 20672return dlopen (); 20673 ; 20674 return 0; 20675} 20676_ACEOF 20677if ac_fn_c_try_link "$LINENO"; then : 20678 ac_cv_lib_dl_dlopen=yes 20679else 20680 ac_cv_lib_dl_dlopen=no 20681fi 20682rm -f core conftest.err conftest.$ac_objext \ 20683 conftest$ac_exeext conftest.$ac_ext 20684LIBS=$ac_check_lib_save_LIBS 20685fi 20686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 20687$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 20688if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 20689 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 20690else 20691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 20692$as_echo_n "checking for dlopen in -lsvld... " >&6; } 20693if ${ac_cv_lib_svld_dlopen+:} false; then : 20694 $as_echo_n "(cached) " >&6 20695else 20696 ac_check_lib_save_LIBS=$LIBS 20697LIBS="-lsvld $LIBS" 20698cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20699/* end confdefs.h. */ 20700 20701/* Override any GCC internal prototype to avoid an error. 20702 Use char because int might match the return type of a GCC 20703 builtin and then its argument prototype would still apply. */ 20704#ifdef __cplusplus 20705extern "C" 20706#endif 20707char dlopen (); 20708int 20709main () 20710{ 20711return dlopen (); 20712 ; 20713 return 0; 20714} 20715_ACEOF 20716if ac_fn_c_try_link "$LINENO"; then : 20717 ac_cv_lib_svld_dlopen=yes 20718else 20719 ac_cv_lib_svld_dlopen=no 20720fi 20721rm -f core conftest.err conftest.$ac_objext \ 20722 conftest$ac_exeext conftest.$ac_ext 20723LIBS=$ac_check_lib_save_LIBS 20724fi 20725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 20726$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 20727if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 20728 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 20729else 20730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 20731$as_echo_n "checking for dld_link in -ldld... " >&6; } 20732if ${ac_cv_lib_dld_dld_link+:} false; then : 20733 $as_echo_n "(cached) " >&6 20734else 20735 ac_check_lib_save_LIBS=$LIBS 20736LIBS="-ldld $LIBS" 20737cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20738/* end confdefs.h. */ 20739 20740/* Override any GCC internal prototype to avoid an error. 20741 Use char because int might match the return type of a GCC 20742 builtin and then its argument prototype would still apply. */ 20743#ifdef __cplusplus 20744extern "C" 20745#endif 20746char dld_link (); 20747int 20748main () 20749{ 20750return dld_link (); 20751 ; 20752 return 0; 20753} 20754_ACEOF 20755if ac_fn_c_try_link "$LINENO"; then : 20756 ac_cv_lib_dld_dld_link=yes 20757else 20758 ac_cv_lib_dld_dld_link=no 20759fi 20760rm -f core conftest.err conftest.$ac_objext \ 20761 conftest$ac_exeext conftest.$ac_ext 20762LIBS=$ac_check_lib_save_LIBS 20763fi 20764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 20765$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 20766if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 20767 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 20768fi 20769 20770 20771fi 20772 20773 20774fi 20775 20776 20777fi 20778 20779 20780fi 20781 20782 20783fi 20784 20785 ;; 20786 esac 20787 20788 if test no = "$lt_cv_dlopen"; then 20789 enable_dlopen=no 20790 else 20791 enable_dlopen=yes 20792 fi 20793 20794 case $lt_cv_dlopen in 20795 dlopen) 20796 save_CPPFLAGS=$CPPFLAGS 20797 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 20798 20799 save_LDFLAGS=$LDFLAGS 20800 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 20801 20802 save_LIBS=$LIBS 20803 LIBS="$lt_cv_dlopen_libs $LIBS" 20804 20805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 20806$as_echo_n "checking whether a program can dlopen itself... " >&6; } 20807if ${lt_cv_dlopen_self+:} false; then : 20808 $as_echo_n "(cached) " >&6 20809else 20810 if test yes = "$cross_compiling"; then : 20811 lt_cv_dlopen_self=cross 20812else 20813 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20814 lt_status=$lt_dlunknown 20815 cat > conftest.$ac_ext <<_LT_EOF 20816#line $LINENO "configure" 20817#include "confdefs.h" 20818 20819#if HAVE_DLFCN_H 20820#include <dlfcn.h> 20821#endif 20822 20823#include <stdio.h> 20824 20825#ifdef RTLD_GLOBAL 20826# define LT_DLGLOBAL RTLD_GLOBAL 20827#else 20828# ifdef DL_GLOBAL 20829# define LT_DLGLOBAL DL_GLOBAL 20830# else 20831# define LT_DLGLOBAL 0 20832# endif 20833#endif 20834 20835/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20836 find out it does not work in some platform. */ 20837#ifndef LT_DLLAZY_OR_NOW 20838# ifdef RTLD_LAZY 20839# define LT_DLLAZY_OR_NOW RTLD_LAZY 20840# else 20841# ifdef DL_LAZY 20842# define LT_DLLAZY_OR_NOW DL_LAZY 20843# else 20844# ifdef RTLD_NOW 20845# define LT_DLLAZY_OR_NOW RTLD_NOW 20846# else 20847# ifdef DL_NOW 20848# define LT_DLLAZY_OR_NOW DL_NOW 20849# else 20850# define LT_DLLAZY_OR_NOW 0 20851# endif 20852# endif 20853# endif 20854# endif 20855#endif 20856 20857/* When -fvisibility=hidden is used, assume the code has been annotated 20858 correspondingly for the symbols needed. */ 20859#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 20860int fnord () __attribute__((visibility("default"))); 20861#endif 20862 20863int fnord () { return 42; } 20864int main () 20865{ 20866 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20867 int status = $lt_dlunknown; 20868 20869 if (self) 20870 { 20871 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20872 else 20873 { 20874 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20875 else puts (dlerror ()); 20876 } 20877 /* dlclose (self); */ 20878 } 20879 else 20880 puts (dlerror ()); 20881 20882 return status; 20883} 20884_LT_EOF 20885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 20886 (eval $ac_link) 2>&5 20887 ac_status=$? 20888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20889 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 20890 (./conftest; exit; ) >&5 2>/dev/null 20891 lt_status=$? 20892 case x$lt_status in 20893 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 20894 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 20895 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 20896 esac 20897 else : 20898 # compilation failed 20899 lt_cv_dlopen_self=no 20900 fi 20901fi 20902rm -fr conftest* 20903 20904 20905fi 20906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 20907$as_echo "$lt_cv_dlopen_self" >&6; } 20908 20909 if test yes = "$lt_cv_dlopen_self"; then 20910 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 20911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 20912$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 20913if ${lt_cv_dlopen_self_static+:} false; then : 20914 $as_echo_n "(cached) " >&6 20915else 20916 if test yes = "$cross_compiling"; then : 20917 lt_cv_dlopen_self_static=cross 20918else 20919 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20920 lt_status=$lt_dlunknown 20921 cat > conftest.$ac_ext <<_LT_EOF 20922#line $LINENO "configure" 20923#include "confdefs.h" 20924 20925#if HAVE_DLFCN_H 20926#include <dlfcn.h> 20927#endif 20928 20929#include <stdio.h> 20930 20931#ifdef RTLD_GLOBAL 20932# define LT_DLGLOBAL RTLD_GLOBAL 20933#else 20934# ifdef DL_GLOBAL 20935# define LT_DLGLOBAL DL_GLOBAL 20936# else 20937# define LT_DLGLOBAL 0 20938# endif 20939#endif 20940 20941/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20942 find out it does not work in some platform. */ 20943#ifndef LT_DLLAZY_OR_NOW 20944# ifdef RTLD_LAZY 20945# define LT_DLLAZY_OR_NOW RTLD_LAZY 20946# else 20947# ifdef DL_LAZY 20948# define LT_DLLAZY_OR_NOW DL_LAZY 20949# else 20950# ifdef RTLD_NOW 20951# define LT_DLLAZY_OR_NOW RTLD_NOW 20952# else 20953# ifdef DL_NOW 20954# define LT_DLLAZY_OR_NOW DL_NOW 20955# else 20956# define LT_DLLAZY_OR_NOW 0 20957# endif 20958# endif 20959# endif 20960# endif 20961#endif 20962 20963/* When -fvisibility=hidden is used, assume the code has been annotated 20964 correspondingly for the symbols needed. */ 20965#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 20966int fnord () __attribute__((visibility("default"))); 20967#endif 20968 20969int fnord () { return 42; } 20970int main () 20971{ 20972 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20973 int status = $lt_dlunknown; 20974 20975 if (self) 20976 { 20977 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20978 else 20979 { 20980 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20981 else puts (dlerror ()); 20982 } 20983 /* dlclose (self); */ 20984 } 20985 else 20986 puts (dlerror ()); 20987 20988 return status; 20989} 20990_LT_EOF 20991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 20992 (eval $ac_link) 2>&5 20993 ac_status=$? 20994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20995 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 20996 (./conftest; exit; ) >&5 2>/dev/null 20997 lt_status=$? 20998 case x$lt_status in 20999 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 21000 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 21001 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 21002 esac 21003 else : 21004 # compilation failed 21005 lt_cv_dlopen_self_static=no 21006 fi 21007fi 21008rm -fr conftest* 21009 21010 21011fi 21012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 21013$as_echo "$lt_cv_dlopen_self_static" >&6; } 21014 fi 21015 21016 CPPFLAGS=$save_CPPFLAGS 21017 LDFLAGS=$save_LDFLAGS 21018 LIBS=$save_LIBS 21019 ;; 21020 esac 21021 21022 case $lt_cv_dlopen_self in 21023 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 21024 *) enable_dlopen_self=unknown ;; 21025 esac 21026 21027 case $lt_cv_dlopen_self_static in 21028 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 21029 *) enable_dlopen_self_static=unknown ;; 21030 esac 21031fi 21032 21033 21034 21035 21036 21037 21038 21039 21040 21041 21042 21043 21044 21045 21046 21047 21048 21049striplib= 21050old_striplib= 21051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 21052$as_echo_n "checking whether stripping libraries is possible... " >&6; } 21053if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 21054 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 21055 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 21056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21057$as_echo "yes" >&6; } 21058else 21059# FIXME - insert some real tests, host_os isn't really good enough 21060 case $host_os in 21061 darwin*) 21062 if test -n "$STRIP"; then 21063 striplib="$STRIP -x" 21064 old_striplib="$STRIP -S" 21065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21066$as_echo "yes" >&6; } 21067 else 21068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21069$as_echo "no" >&6; } 21070 fi 21071 ;; 21072 *) 21073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21074$as_echo "no" >&6; } 21075 ;; 21076 esac 21077fi 21078 21079 21080 21081 21082 21083 21084 21085 21086 21087 21088 21089 21090 # Report what library types will actually be built 21091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 21092$as_echo_n "checking if libtool supports shared libraries... " >&6; } 21093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 21094$as_echo "$can_build_shared" >&6; } 21095 21096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 21097$as_echo_n "checking whether to build shared libraries... " >&6; } 21098 test no = "$can_build_shared" && enable_shared=no 21099 21100 # On AIX, shared libraries and static libraries use the same namespace, and 21101 # are all built from PIC. 21102 case $host_os in 21103 aix3*) 21104 test yes = "$enable_shared" && enable_static=no 21105 if test -n "$RANLIB"; then 21106 archive_cmds="$archive_cmds~\$RANLIB \$lib" 21107 postinstall_cmds='$RANLIB $lib' 21108 fi 21109 ;; 21110 21111 aix[4-9]*) 21112 if test ia64 != "$host_cpu"; then 21113 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 21114 yes,aix,yes) ;; # shared object as lib.so file only 21115 yes,svr4,*) ;; # shared object as lib.so archive member only 21116 yes,*) enable_static=no ;; # shared object in lib.a archive as well 21117 esac 21118 fi 21119 ;; 21120 esac 21121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 21122$as_echo "$enable_shared" >&6; } 21123 21124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 21125$as_echo_n "checking whether to build static libraries... " >&6; } 21126 # Make sure either enable_shared or enable_static is yes. 21127 test yes = "$enable_shared" || enable_static=yes 21128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 21129$as_echo "$enable_static" >&6; } 21130 21131 21132 21133 21134fi 21135ac_ext=c 21136ac_cpp='$CPP $CPPFLAGS' 21137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21139ac_compiler_gnu=$ac_cv_c_compiler_gnu 21140 21141CC=$lt_save_CC 21142 21143 21144 21145 21146 21147 21148 21149 21150 21151 21152 21153 21154 21155 21156 21157 ac_config_commands="$ac_config_commands libtool" 21158 21159 21160 21161 21162# Only expand once: 21163 21164 21165 21166 21167 21168 21169 21170 21171 21172if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21173 if test -n "$ac_tool_prefix"; then 21174 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21175set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21177$as_echo_n "checking for $ac_word... " >&6; } 21178if ${ac_cv_path_PKG_CONFIG+:} false; then : 21179 $as_echo_n "(cached) " >&6 21180else 21181 case $PKG_CONFIG in 21182 [\\/]* | ?:[\\/]*) 21183 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21184 ;; 21185 *) 21186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21187for as_dir in $PATH 21188do 21189 IFS=$as_save_IFS 21190 test -z "$as_dir" && as_dir=. 21191 for ac_exec_ext in '' $ac_executable_extensions; do 21192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21193 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21195 break 2 21196 fi 21197done 21198 done 21199IFS=$as_save_IFS 21200 21201 ;; 21202esac 21203fi 21204PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21205if test -n "$PKG_CONFIG"; then 21206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 21207$as_echo "$PKG_CONFIG" >&6; } 21208else 21209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21210$as_echo "no" >&6; } 21211fi 21212 21213 21214fi 21215if test -z "$ac_cv_path_PKG_CONFIG"; then 21216 ac_pt_PKG_CONFIG=$PKG_CONFIG 21217 # Extract the first word of "pkg-config", so it can be a program name with args. 21218set dummy pkg-config; ac_word=$2 21219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21220$as_echo_n "checking for $ac_word... " >&6; } 21221if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 21222 $as_echo_n "(cached) " >&6 21223else 21224 case $ac_pt_PKG_CONFIG in 21225 [\\/]* | ?:[\\/]*) 21226 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21227 ;; 21228 *) 21229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21230for as_dir in $PATH 21231do 21232 IFS=$as_save_IFS 21233 test -z "$as_dir" && as_dir=. 21234 for ac_exec_ext in '' $ac_executable_extensions; do 21235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21236 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21238 break 2 21239 fi 21240done 21241 done 21242IFS=$as_save_IFS 21243 21244 ;; 21245esac 21246fi 21247ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21248if test -n "$ac_pt_PKG_CONFIG"; then 21249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 21250$as_echo "$ac_pt_PKG_CONFIG" >&6; } 21251else 21252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21253$as_echo "no" >&6; } 21254fi 21255 21256 if test "x$ac_pt_PKG_CONFIG" = x; then 21257 PKG_CONFIG="" 21258 else 21259 case $cross_compiling:$ac_tool_warned in 21260yes:) 21261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21263ac_tool_warned=yes ;; 21264esac 21265 PKG_CONFIG=$ac_pt_PKG_CONFIG 21266 fi 21267else 21268 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21269fi 21270 21271fi 21272if test -n "$PKG_CONFIG"; then 21273 _pkg_min_version=0.9.0 21274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 21275$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21276 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21278$as_echo "yes" >&6; } 21279 else 21280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21281$as_echo "no" >&6; } 21282 PKG_CONFIG="" 21283 fi 21284fi 21285for ac_prog in flex lex 21286do 21287 # Extract the first word of "$ac_prog", so it can be a program name with args. 21288set dummy $ac_prog; ac_word=$2 21289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21290$as_echo_n "checking for $ac_word... " >&6; } 21291if ${ac_cv_prog_LEX+:} false; then : 21292 $as_echo_n "(cached) " >&6 21293else 21294 if test -n "$LEX"; then 21295 ac_cv_prog_LEX="$LEX" # Let the user override the test. 21296else 21297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21298for as_dir in $PATH 21299do 21300 IFS=$as_save_IFS 21301 test -z "$as_dir" && as_dir=. 21302 for ac_exec_ext in '' $ac_executable_extensions; do 21303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21304 ac_cv_prog_LEX="$ac_prog" 21305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21306 break 2 21307 fi 21308done 21309 done 21310IFS=$as_save_IFS 21311 21312fi 21313fi 21314LEX=$ac_cv_prog_LEX 21315if test -n "$LEX"; then 21316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 21317$as_echo "$LEX" >&6; } 21318else 21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21320$as_echo "no" >&6; } 21321fi 21322 21323 21324 test -n "$LEX" && break 21325done 21326test -n "$LEX" || LEX=":" 21327 21328if test "x$LEX" != "x:"; then 21329 cat >conftest.l <<_ACEOF 21330%% 21331a { ECHO; } 21332b { REJECT; } 21333c { yymore (); } 21334d { yyless (1); } 21335e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 21336 yyless ((input () != 0)); } 21337f { unput (yytext[0]); } 21338. { BEGIN INITIAL; } 21339%% 21340#ifdef YYTEXT_POINTER 21341extern char *yytext; 21342#endif 21343int 21344main (void) 21345{ 21346 return ! yylex () + ! yywrap (); 21347} 21348_ACEOF 21349{ { ac_try="$LEX conftest.l" 21350case "(($ac_try" in 21351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21352 *) ac_try_echo=$ac_try;; 21353esac 21354eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 21355$as_echo "$ac_try_echo"; } >&5 21356 (eval "$LEX conftest.l") 2>&5 21357 ac_status=$? 21358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21359 test $ac_status = 0; } 21360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 21361$as_echo_n "checking lex output file root... " >&6; } 21362if ${ac_cv_prog_lex_root+:} false; then : 21363 $as_echo_n "(cached) " >&6 21364else 21365 21366if test -f lex.yy.c; then 21367 ac_cv_prog_lex_root=lex.yy 21368elif test -f lexyy.c; then 21369 ac_cv_prog_lex_root=lexyy 21370else 21371 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 21372fi 21373fi 21374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 21375$as_echo "$ac_cv_prog_lex_root" >&6; } 21376LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 21377 21378if test -z "${LEXLIB+set}"; then 21379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 21380$as_echo_n "checking lex library... " >&6; } 21381if ${ac_cv_lib_lex+:} false; then : 21382 $as_echo_n "(cached) " >&6 21383else 21384 21385 ac_save_LIBS=$LIBS 21386 ac_cv_lib_lex='none needed' 21387 for ac_lib in '' -lfl -ll; do 21388 LIBS="$ac_lib $ac_save_LIBS" 21389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21390/* end confdefs.h. */ 21391`cat $LEX_OUTPUT_ROOT.c` 21392_ACEOF 21393if ac_fn_c_try_link "$LINENO"; then : 21394 ac_cv_lib_lex=$ac_lib 21395fi 21396rm -f core conftest.err conftest.$ac_objext \ 21397 conftest$ac_exeext conftest.$ac_ext 21398 test "$ac_cv_lib_lex" != 'none needed' && break 21399 done 21400 LIBS=$ac_save_LIBS 21401 21402fi 21403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 21404$as_echo "$ac_cv_lib_lex" >&6; } 21405 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 21406fi 21407 21408 21409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 21410$as_echo_n "checking whether yytext is a pointer... " >&6; } 21411if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 21412 $as_echo_n "(cached) " >&6 21413else 21414 # POSIX says lex can declare yytext either as a pointer or an array; the 21415# default is implementation-dependent. Figure out which it is, since 21416# not all implementations provide the %pointer and %array declarations. 21417ac_cv_prog_lex_yytext_pointer=no 21418ac_save_LIBS=$LIBS 21419LIBS="$LEXLIB $ac_save_LIBS" 21420cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21421/* end confdefs.h. */ 21422 21423 #define YYTEXT_POINTER 1 21424`cat $LEX_OUTPUT_ROOT.c` 21425_ACEOF 21426if ac_fn_c_try_link "$LINENO"; then : 21427 ac_cv_prog_lex_yytext_pointer=yes 21428fi 21429rm -f core conftest.err conftest.$ac_objext \ 21430 conftest$ac_exeext conftest.$ac_ext 21431LIBS=$ac_save_LIBS 21432 21433fi 21434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 21435$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 21436if test $ac_cv_prog_lex_yytext_pointer = yes; then 21437 21438$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 21439 21440fi 21441rm -f conftest.l $LEX_OUTPUT_ROOT.c 21442 21443fi 21444for ac_prog in 'bison -y' byacc 21445do 21446 # Extract the first word of "$ac_prog", so it can be a program name with args. 21447set dummy $ac_prog; ac_word=$2 21448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21449$as_echo_n "checking for $ac_word... " >&6; } 21450if ${ac_cv_prog_YACC+:} false; then : 21451 $as_echo_n "(cached) " >&6 21452else 21453 if test -n "$YACC"; then 21454 ac_cv_prog_YACC="$YACC" # Let the user override the test. 21455else 21456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21457for as_dir in $PATH 21458do 21459 IFS=$as_save_IFS 21460 test -z "$as_dir" && as_dir=. 21461 for ac_exec_ext in '' $ac_executable_extensions; do 21462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21463 ac_cv_prog_YACC="$ac_prog" 21464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21465 break 2 21466 fi 21467done 21468 done 21469IFS=$as_save_IFS 21470 21471fi 21472fi 21473YACC=$ac_cv_prog_YACC 21474if test -n "$YACC"; then 21475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 21476$as_echo "$YACC" >&6; } 21477else 21478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21479$as_echo "no" >&6; } 21480fi 21481 21482 21483 test -n "$YACC" && break 21484done 21485test -n "$YACC" || YACC="yacc" 21486 21487# Check whether --enable-largefile was given. 21488if test "${enable_largefile+set}" = set; then : 21489 enableval=$enable_largefile; 21490fi 21491 21492if test "$enable_largefile" != no; then 21493 21494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 21495$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 21496if ${ac_cv_sys_largefile_CC+:} false; then : 21497 $as_echo_n "(cached) " >&6 21498else 21499 ac_cv_sys_largefile_CC=no 21500 if test "$GCC" != yes; then 21501 ac_save_CC=$CC 21502 while :; do 21503 # IRIX 6.2 and later do not support large files by default, 21504 # so use the C compiler's -n32 option if that helps. 21505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21506/* end confdefs.h. */ 21507#include <sys/types.h> 21508 /* Check that off_t can represent 2**63 - 1 correctly. 21509 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21510 since some C++ compilers masquerading as C compilers 21511 incorrectly reject 9223372036854775807. */ 21512#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21513 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21514 && LARGE_OFF_T % 2147483647 == 1) 21515 ? 1 : -1]; 21516int 21517main () 21518{ 21519 21520 ; 21521 return 0; 21522} 21523_ACEOF 21524 if ac_fn_c_try_compile "$LINENO"; then : 21525 break 21526fi 21527rm -f core conftest.err conftest.$ac_objext 21528 CC="$CC -n32" 21529 if ac_fn_c_try_compile "$LINENO"; then : 21530 ac_cv_sys_largefile_CC=' -n32'; break 21531fi 21532rm -f core conftest.err conftest.$ac_objext 21533 break 21534 done 21535 CC=$ac_save_CC 21536 rm -f conftest.$ac_ext 21537 fi 21538fi 21539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 21540$as_echo "$ac_cv_sys_largefile_CC" >&6; } 21541 if test "$ac_cv_sys_largefile_CC" != no; then 21542 CC=$CC$ac_cv_sys_largefile_CC 21543 fi 21544 21545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 21546$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 21547if ${ac_cv_sys_file_offset_bits+:} false; then : 21548 $as_echo_n "(cached) " >&6 21549else 21550 while :; do 21551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21552/* end confdefs.h. */ 21553#include <sys/types.h> 21554 /* Check that off_t can represent 2**63 - 1 correctly. 21555 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21556 since some C++ compilers masquerading as C compilers 21557 incorrectly reject 9223372036854775807. */ 21558#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21559 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21560 && LARGE_OFF_T % 2147483647 == 1) 21561 ? 1 : -1]; 21562int 21563main () 21564{ 21565 21566 ; 21567 return 0; 21568} 21569_ACEOF 21570if ac_fn_c_try_compile "$LINENO"; then : 21571 ac_cv_sys_file_offset_bits=no; break 21572fi 21573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21575/* end confdefs.h. */ 21576#define _FILE_OFFSET_BITS 64 21577#include <sys/types.h> 21578 /* Check that off_t can represent 2**63 - 1 correctly. 21579 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21580 since some C++ compilers masquerading as C compilers 21581 incorrectly reject 9223372036854775807. */ 21582#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21584 && LARGE_OFF_T % 2147483647 == 1) 21585 ? 1 : -1]; 21586int 21587main () 21588{ 21589 21590 ; 21591 return 0; 21592} 21593_ACEOF 21594if ac_fn_c_try_compile "$LINENO"; then : 21595 ac_cv_sys_file_offset_bits=64; break 21596fi 21597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21598 ac_cv_sys_file_offset_bits=unknown 21599 break 21600done 21601fi 21602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 21603$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 21604case $ac_cv_sys_file_offset_bits in #( 21605 no | unknown) ;; 21606 *) 21607cat >>confdefs.h <<_ACEOF 21608#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 21609_ACEOF 21610;; 21611esac 21612rm -rf conftest* 21613 if test $ac_cv_sys_file_offset_bits = unknown; then 21614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 21615$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 21616if ${ac_cv_sys_large_files+:} false; then : 21617 $as_echo_n "(cached) " >&6 21618else 21619 while :; do 21620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21621/* end confdefs.h. */ 21622#include <sys/types.h> 21623 /* Check that off_t can represent 2**63 - 1 correctly. 21624 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21625 since some C++ compilers masquerading as C compilers 21626 incorrectly reject 9223372036854775807. */ 21627#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21628 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21629 && LARGE_OFF_T % 2147483647 == 1) 21630 ? 1 : -1]; 21631int 21632main () 21633{ 21634 21635 ; 21636 return 0; 21637} 21638_ACEOF 21639if ac_fn_c_try_compile "$LINENO"; then : 21640 ac_cv_sys_large_files=no; break 21641fi 21642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21644/* end confdefs.h. */ 21645#define _LARGE_FILES 1 21646#include <sys/types.h> 21647 /* Check that off_t can represent 2**63 - 1 correctly. 21648 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21649 since some C++ compilers masquerading as C compilers 21650 incorrectly reject 9223372036854775807. */ 21651#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21653 && LARGE_OFF_T % 2147483647 == 1) 21654 ? 1 : -1]; 21655int 21656main () 21657{ 21658 21659 ; 21660 return 0; 21661} 21662_ACEOF 21663if ac_fn_c_try_compile "$LINENO"; then : 21664 ac_cv_sys_large_files=1; break 21665fi 21666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21667 ac_cv_sys_large_files=unknown 21668 break 21669done 21670fi 21671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 21672$as_echo "$ac_cv_sys_large_files" >&6; } 21673case $ac_cv_sys_large_files in #( 21674 no | unknown) ;; 21675 *) 21676cat >>confdefs.h <<_ACEOF 21677#define _LARGE_FILES $ac_cv_sys_large_files 21678_ACEOF 21679;; 21680esac 21681rm -rf conftest* 21682 fi 21683 21684 21685fi 21686 21687 21688 21689for ac_prog in cpp 21690do 21691 # Extract the first word of "$ac_prog", so it can be a program name with args. 21692set dummy $ac_prog; ac_word=$2 21693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21694$as_echo_n "checking for $ac_word... " >&6; } 21695if ${ac_cv_path_RAWCPP+:} false; then : 21696 $as_echo_n "(cached) " >&6 21697else 21698 case $RAWCPP in 21699 [\\/]* | ?:[\\/]*) 21700 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 21701 ;; 21702 *) 21703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21704as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 21705for as_dir in $as_dummy 21706do 21707 IFS=$as_save_IFS 21708 test -z "$as_dir" && as_dir=. 21709 for ac_exec_ext in '' $ac_executable_extensions; do 21710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21711 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 21712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21713 break 2 21714 fi 21715done 21716 done 21717IFS=$as_save_IFS 21718 21719 ;; 21720esac 21721fi 21722RAWCPP=$ac_cv_path_RAWCPP 21723if test -n "$RAWCPP"; then 21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 21725$as_echo "$RAWCPP" >&6; } 21726else 21727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21728$as_echo "no" >&6; } 21729fi 21730 21731 21732 test -n "$RAWCPP" && break 21733done 21734test -n "$RAWCPP" || RAWCPP="${CPP}" 21735 21736 21737# Check for flag to avoid builtin definitions - assumes unix is predefined, 21738# which is not the best choice for supporting other OS'es, but covers most 21739# of the ones we need for now. 21740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 21741$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 21742cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21743/* end confdefs.h. */ 21744Does cpp redefine unix ? 21745_ACEOF 21746if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21748$as_echo "no" >&6; } 21749else 21750 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 21751 RAWCPPFLAGS=-undef 21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21753$as_echo "yes" >&6; } 21754 # under Cygwin unix is still defined even with -undef 21755 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 21756 RAWCPPFLAGS="-undef -ansi" 21757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 21758$as_echo "yes, with -ansi" >&6; } 21759 else 21760 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 21761 fi 21762fi 21763rm -f conftest.$ac_ext 21764 21765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 21766$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 21767cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21768/* end confdefs.h. */ 21769Does cpp preserve "whitespace"? 21770_ACEOF 21771if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 21772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21773$as_echo "no" >&6; } 21774else 21775 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 21776 TRADITIONALCPPFLAGS="-traditional" 21777 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 21778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21779$as_echo "yes" >&6; } 21780 else 21781 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 21782 fi 21783fi 21784rm -f conftest.$ac_ext 21785 21786 21787 21788 21789# Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow 21790# easier overrides at build time. 21791XSERVER_CFLAGS='$(CWARNFLAGS)' 21792 21793if test "x$GCC" = xyes ; then 21794 XSERVER_CFLAGS="$XSERVER_CFLAGS -fno-strict-aliasing" 21795fi 21796 21797 21798# Check whether --with-dtrace was given. 21799if test "${with_dtrace+set}" = set; then : 21800 withval=$with_dtrace; WDTRACE=$withval 21801else 21802 WDTRACE=auto 21803fi 21804 21805if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then 21806 # Extract the first word of "dtrace", so it can be a program name with args. 21807set dummy dtrace; ac_word=$2 21808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21809$as_echo_n "checking for $ac_word... " >&6; } 21810if ${ac_cv_path_DTRACE+:} false; then : 21811 $as_echo_n "(cached) " >&6 21812else 21813 case $DTRACE in 21814 [\\/]* | ?:[\\/]*) 21815 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 21816 ;; 21817 *) 21818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21819as_dummy="$PATH:/usr/sbin" 21820for as_dir in $as_dummy 21821do 21822 IFS=$as_save_IFS 21823 test -z "$as_dir" && as_dir=. 21824 for ac_exec_ext in '' $ac_executable_extensions; do 21825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21826 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 21827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21828 break 2 21829 fi 21830done 21831 done 21832IFS=$as_save_IFS 21833 21834 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found" 21835 ;; 21836esac 21837fi 21838DTRACE=$ac_cv_path_DTRACE 21839if test -n "$DTRACE"; then 21840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 21841$as_echo "$DTRACE" >&6; } 21842else 21843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21844$as_echo "no" >&6; } 21845fi 21846 21847 21848 if test "x$DTRACE" = "xnot_found" ; then 21849 if test "x$WDTRACE" = "xyes" ; then 21850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21852as_fn_error $? "dtrace requested but not found 21853See \`config.log' for more details" "$LINENO" 5; } 21854 fi 21855 WDTRACE="no" 21856 else 21857 ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 21858if test "x$ac_cv_header_sys_sdt_h" = xyes; then : 21859 HAS_SDT_H="yes" 21860else 21861 HAS_SDT_H="no" 21862fi 21863 21864 21865 if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then 21866 WDTRACE="no" 21867 fi 21868 fi 21869fi 21870if test "x$WDTRACE" != "xno" ; then 21871 21872$as_echo "#define XSERVER_DTRACE 1" >>confdefs.h 21873 21874 21875# Solaris/OpenSolaris require dtrace -G to build dtrace probe information into 21876# object files, and require linking with those as relocatable objects, not .a 21877# archives. MacOS X handles all this in the normal compiler toolchain, and on 21878# some releases (like Tiger), will error out on dtrace -G. For now, other 21879# platforms with Dtrace ports are assumed to support -G (the FreeBSD and Linux 21880# ports appear to, based on my web searches, but have not yet been tested). 21881 case $host_os in 21882 darwin*) SPECIAL_DTRACE_OBJECTS=no ;; 21883 *) SPECIAL_DTRACE_OBJECTS=yes ;; 21884 esac 21885fi 21886 if test "x$WDTRACE" != "xno"; then 21887 XSERVER_DTRACE_TRUE= 21888 XSERVER_DTRACE_FALSE='#' 21889else 21890 XSERVER_DTRACE_TRUE='#' 21891 XSERVER_DTRACE_FALSE= 21892fi 21893 21894 if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes"; then 21895 SPECIAL_DTRACE_OBJECTS_TRUE= 21896 SPECIAL_DTRACE_OBJECTS_FALSE='#' 21897else 21898 SPECIAL_DTRACE_OBJECTS_TRUE='#' 21899 SPECIAL_DTRACE_OBJECTS_FALSE= 21900fi 21901 21902 21903ac_header_dirent=no 21904for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 21905 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 21906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 21907$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 21908if eval \${$as_ac_Header+:} false; then : 21909 $as_echo_n "(cached) " >&6 21910else 21911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21912/* end confdefs.h. */ 21913#include <sys/types.h> 21914#include <$ac_hdr> 21915 21916int 21917main () 21918{ 21919if ((DIR *) 0) 21920return 0; 21921 ; 21922 return 0; 21923} 21924_ACEOF 21925if ac_fn_c_try_compile "$LINENO"; then : 21926 eval "$as_ac_Header=yes" 21927else 21928 eval "$as_ac_Header=no" 21929fi 21930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21931fi 21932eval ac_res=\$$as_ac_Header 21933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21934$as_echo "$ac_res" >&6; } 21935if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21936 cat >>confdefs.h <<_ACEOF 21937#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 21938_ACEOF 21939 21940ac_header_dirent=$ac_hdr; break 21941fi 21942 21943done 21944# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 21945if test $ac_header_dirent = dirent.h; then 21946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 21947$as_echo_n "checking for library containing opendir... " >&6; } 21948if ${ac_cv_search_opendir+:} false; then : 21949 $as_echo_n "(cached) " >&6 21950else 21951 ac_func_search_save_LIBS=$LIBS 21952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21953/* end confdefs.h. */ 21954 21955/* Override any GCC internal prototype to avoid an error. 21956 Use char because int might match the return type of a GCC 21957 builtin and then its argument prototype would still apply. */ 21958#ifdef __cplusplus 21959extern "C" 21960#endif 21961char opendir (); 21962int 21963main () 21964{ 21965return opendir (); 21966 ; 21967 return 0; 21968} 21969_ACEOF 21970for ac_lib in '' dir; do 21971 if test -z "$ac_lib"; then 21972 ac_res="none required" 21973 else 21974 ac_res=-l$ac_lib 21975 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21976 fi 21977 if ac_fn_c_try_link "$LINENO"; then : 21978 ac_cv_search_opendir=$ac_res 21979fi 21980rm -f core conftest.err conftest.$ac_objext \ 21981 conftest$ac_exeext 21982 if ${ac_cv_search_opendir+:} false; then : 21983 break 21984fi 21985done 21986if ${ac_cv_search_opendir+:} false; then : 21987 21988else 21989 ac_cv_search_opendir=no 21990fi 21991rm conftest.$ac_ext 21992LIBS=$ac_func_search_save_LIBS 21993fi 21994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 21995$as_echo "$ac_cv_search_opendir" >&6; } 21996ac_res=$ac_cv_search_opendir 21997if test "$ac_res" != no; then : 21998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21999 22000fi 22001 22002else 22003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 22004$as_echo_n "checking for library containing opendir... " >&6; } 22005if ${ac_cv_search_opendir+:} false; then : 22006 $as_echo_n "(cached) " >&6 22007else 22008 ac_func_search_save_LIBS=$LIBS 22009cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22010/* end confdefs.h. */ 22011 22012/* Override any GCC internal prototype to avoid an error. 22013 Use char because int might match the return type of a GCC 22014 builtin and then its argument prototype would still apply. */ 22015#ifdef __cplusplus 22016extern "C" 22017#endif 22018char opendir (); 22019int 22020main () 22021{ 22022return opendir (); 22023 ; 22024 return 0; 22025} 22026_ACEOF 22027for ac_lib in '' x; do 22028 if test -z "$ac_lib"; then 22029 ac_res="none required" 22030 else 22031 ac_res=-l$ac_lib 22032 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22033 fi 22034 if ac_fn_c_try_link "$LINENO"; then : 22035 ac_cv_search_opendir=$ac_res 22036fi 22037rm -f core conftest.err conftest.$ac_objext \ 22038 conftest$ac_exeext 22039 if ${ac_cv_search_opendir+:} false; then : 22040 break 22041fi 22042done 22043if ${ac_cv_search_opendir+:} false; then : 22044 22045else 22046 ac_cv_search_opendir=no 22047fi 22048rm conftest.$ac_ext 22049LIBS=$ac_func_search_save_LIBS 22050fi 22051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 22052$as_echo "$ac_cv_search_opendir" >&6; } 22053ac_res=$ac_cv_search_opendir 22054if test "$ac_res" != no; then : 22055 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22056 22057fi 22058 22059fi 22060 22061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 22062$as_echo_n "checking for ANSI C header files... " >&6; } 22063if ${ac_cv_header_stdc+:} false; then : 22064 $as_echo_n "(cached) " >&6 22065else 22066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22067/* end confdefs.h. */ 22068#include <stdlib.h> 22069#include <stdarg.h> 22070#include <string.h> 22071#include <float.h> 22072 22073int 22074main () 22075{ 22076 22077 ; 22078 return 0; 22079} 22080_ACEOF 22081if ac_fn_c_try_compile "$LINENO"; then : 22082 ac_cv_header_stdc=yes 22083else 22084 ac_cv_header_stdc=no 22085fi 22086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22087 22088if test $ac_cv_header_stdc = yes; then 22089 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 22090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22091/* end confdefs.h. */ 22092#include <string.h> 22093 22094_ACEOF 22095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22096 $EGREP "memchr" >/dev/null 2>&1; then : 22097 22098else 22099 ac_cv_header_stdc=no 22100fi 22101rm -f conftest* 22102 22103fi 22104 22105if test $ac_cv_header_stdc = yes; then 22106 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 22107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22108/* end confdefs.h. */ 22109#include <stdlib.h> 22110 22111_ACEOF 22112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22113 $EGREP "free" >/dev/null 2>&1; then : 22114 22115else 22116 ac_cv_header_stdc=no 22117fi 22118rm -f conftest* 22119 22120fi 22121 22122if test $ac_cv_header_stdc = yes; then 22123 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 22124 if test "$cross_compiling" = yes; then : 22125 : 22126else 22127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22128/* end confdefs.h. */ 22129#include <ctype.h> 22130#include <stdlib.h> 22131#if ((' ' & 0x0FF) == 0x020) 22132# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 22133# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 22134#else 22135# define ISLOWER(c) \ 22136 (('a' <= (c) && (c) <= 'i') \ 22137 || ('j' <= (c) && (c) <= 'r') \ 22138 || ('s' <= (c) && (c) <= 'z')) 22139# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 22140#endif 22141 22142#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 22143int 22144main () 22145{ 22146 int i; 22147 for (i = 0; i < 256; i++) 22148 if (XOR (islower (i), ISLOWER (i)) 22149 || toupper (i) != TOUPPER (i)) 22150 return 2; 22151 return 0; 22152} 22153_ACEOF 22154if ac_fn_c_try_run "$LINENO"; then : 22155 22156else 22157 ac_cv_header_stdc=no 22158fi 22159rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22160 conftest.$ac_objext conftest.beam conftest.$ac_ext 22161fi 22162 22163fi 22164fi 22165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 22166$as_echo "$ac_cv_header_stdc" >&6; } 22167if test $ac_cv_header_stdc = yes; then 22168 22169$as_echo "#define STDC_HEADERS 1" >>confdefs.h 22170 22171fi 22172 22173for ac_header in fcntl.h stdlib.h string.h unistd.h dlfcn.h stropts.h \ 22174 fnmatch.h sys/mkdev.h sys/sysmacros.h sys/utsname.h 22175do : 22176 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22177ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22178if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22179 cat >>confdefs.h <<_ACEOF 22180#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22181_ACEOF 22182 22183fi 22184 22185done 22186 22187 22188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 22189$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 22190if ${ac_cv_c_const+:} false; then : 22191 $as_echo_n "(cached) " >&6 22192else 22193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22194/* end confdefs.h. */ 22195 22196int 22197main () 22198{ 22199 22200#ifndef __cplusplus 22201 /* Ultrix mips cc rejects this sort of thing. */ 22202 typedef int charset[2]; 22203 const charset cs = { 0, 0 }; 22204 /* SunOS 4.1.1 cc rejects this. */ 22205 char const *const *pcpcc; 22206 char **ppc; 22207 /* NEC SVR4.0.2 mips cc rejects this. */ 22208 struct point {int x, y;}; 22209 static struct point const zero = {0,0}; 22210 /* AIX XL C 1.02.0.0 rejects this. 22211 It does not let you subtract one const X* pointer from another in 22212 an arm of an if-expression whose if-part is not a constant 22213 expression */ 22214 const char *g = "string"; 22215 pcpcc = &g + (g ? g-g : 0); 22216 /* HPUX 7.0 cc rejects these. */ 22217 ++pcpcc; 22218 ppc = (char**) pcpcc; 22219 pcpcc = (char const *const *) ppc; 22220 { /* SCO 3.2v4 cc rejects this sort of thing. */ 22221 char tx; 22222 char *t = &tx; 22223 char const *s = 0 ? (char *) 0 : (char const *) 0; 22224 22225 *t++ = 0; 22226 if (s) return 0; 22227 } 22228 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 22229 int x[] = {25, 17}; 22230 const int *foo = &x[0]; 22231 ++foo; 22232 } 22233 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 22234 typedef const int *iptr; 22235 iptr p = 0; 22236 ++p; 22237 } 22238 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 22239 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 22240 struct s { int j; const int *ap[3]; } bx; 22241 struct s *b = &bx; b->j = 5; 22242 } 22243 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 22244 const int foo = 10; 22245 if (!foo) return 0; 22246 } 22247 return !cs[0] && !zero.x; 22248#endif 22249 22250 ; 22251 return 0; 22252} 22253_ACEOF 22254if ac_fn_c_try_compile "$LINENO"; then : 22255 ac_cv_c_const=yes 22256else 22257 ac_cv_c_const=no 22258fi 22259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22260fi 22261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 22262$as_echo "$ac_cv_c_const" >&6; } 22263if test $ac_cv_c_const = no; then 22264 22265$as_echo "#define const /**/" >>confdefs.h 22266 22267fi 22268 22269 22270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5 22271$as_echo_n "checking for typeof syntax and keyword spelling... " >&6; } 22272if ${ac_cv_c_typeof+:} false; then : 22273 $as_echo_n "(cached) " >&6 22274else 22275 ac_cv_c_typeof=no 22276 for ac_kw in typeof __typeof__ no; do 22277 test $ac_kw = no && break 22278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22279/* end confdefs.h. */ 22280 22281int 22282main () 22283{ 22284 22285 int value; 22286 typedef struct { 22287 char a [1 22288 + ! (($ac_kw (value)) 22289 (($ac_kw (value)) 0 < ($ac_kw (value)) -1 22290 ? ($ac_kw (value)) - 1 22291 : ~ (~ ($ac_kw (value)) 0 22292 << sizeof ($ac_kw (value)))))]; } 22293 ac__typeof_type_; 22294 return 22295 (! ((void) ((ac__typeof_type_ *) 0), 0)); 22296 22297 ; 22298 return 0; 22299} 22300_ACEOF 22301if ac_fn_c_try_compile "$LINENO"; then : 22302 ac_cv_c_typeof=$ac_kw 22303fi 22304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22305 test $ac_cv_c_typeof != no && break 22306 done 22307fi 22308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5 22309$as_echo "$ac_cv_c_typeof" >&6; } 22310 if test $ac_cv_c_typeof != no; then 22311 22312$as_echo "#define HAVE_TYPEOF 1" >>confdefs.h 22313 22314 if test $ac_cv_c_typeof != typeof; then 22315 22316cat >>confdefs.h <<_ACEOF 22317#define typeof $ac_cv_c_typeof 22318_ACEOF 22319 22320 fi 22321 fi 22322 22323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 22324$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 22325if ${ac_cv_c_bigendian+:} false; then : 22326 $as_echo_n "(cached) " >&6 22327else 22328 ac_cv_c_bigendian=unknown 22329 # See if we're dealing with a universal compiler. 22330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22331/* end confdefs.h. */ 22332#ifndef __APPLE_CC__ 22333 not a universal capable compiler 22334 #endif 22335 typedef int dummy; 22336 22337_ACEOF 22338if ac_fn_c_try_compile "$LINENO"; then : 22339 22340 # Check for potential -arch flags. It is not universal unless 22341 # there are at least two -arch flags with different values. 22342 ac_arch= 22343 ac_prev= 22344 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 22345 if test -n "$ac_prev"; then 22346 case $ac_word in 22347 i?86 | x86_64 | ppc | ppc64) 22348 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 22349 ac_arch=$ac_word 22350 else 22351 ac_cv_c_bigendian=universal 22352 break 22353 fi 22354 ;; 22355 esac 22356 ac_prev= 22357 elif test "x$ac_word" = "x-arch"; then 22358 ac_prev=arch 22359 fi 22360 done 22361fi 22362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22363 if test $ac_cv_c_bigendian = unknown; then 22364 # See if sys/param.h defines the BYTE_ORDER macro. 22365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22366/* end confdefs.h. */ 22367#include <sys/types.h> 22368 #include <sys/param.h> 22369 22370int 22371main () 22372{ 22373#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 22374 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 22375 && LITTLE_ENDIAN) 22376 bogus endian macros 22377 #endif 22378 22379 ; 22380 return 0; 22381} 22382_ACEOF 22383if ac_fn_c_try_compile "$LINENO"; then : 22384 # It does; now see whether it defined to BIG_ENDIAN or not. 22385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22386/* end confdefs.h. */ 22387#include <sys/types.h> 22388 #include <sys/param.h> 22389 22390int 22391main () 22392{ 22393#if BYTE_ORDER != BIG_ENDIAN 22394 not big endian 22395 #endif 22396 22397 ; 22398 return 0; 22399} 22400_ACEOF 22401if ac_fn_c_try_compile "$LINENO"; then : 22402 ac_cv_c_bigendian=yes 22403else 22404 ac_cv_c_bigendian=no 22405fi 22406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22407fi 22408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22409 fi 22410 if test $ac_cv_c_bigendian = unknown; then 22411 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 22412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22413/* end confdefs.h. */ 22414#include <limits.h> 22415 22416int 22417main () 22418{ 22419#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 22420 bogus endian macros 22421 #endif 22422 22423 ; 22424 return 0; 22425} 22426_ACEOF 22427if ac_fn_c_try_compile "$LINENO"; then : 22428 # It does; now see whether it defined to _BIG_ENDIAN or not. 22429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22430/* end confdefs.h. */ 22431#include <limits.h> 22432 22433int 22434main () 22435{ 22436#ifndef _BIG_ENDIAN 22437 not big endian 22438 #endif 22439 22440 ; 22441 return 0; 22442} 22443_ACEOF 22444if ac_fn_c_try_compile "$LINENO"; then : 22445 ac_cv_c_bigendian=yes 22446else 22447 ac_cv_c_bigendian=no 22448fi 22449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22450fi 22451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22452 fi 22453 if test $ac_cv_c_bigendian = unknown; then 22454 # Compile a test program. 22455 if test "$cross_compiling" = yes; then : 22456 # Try to guess by grepping values from an object file. 22457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22458/* end confdefs.h. */ 22459short int ascii_mm[] = 22460 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 22461 short int ascii_ii[] = 22462 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 22463 int use_ascii (int i) { 22464 return ascii_mm[i] + ascii_ii[i]; 22465 } 22466 short int ebcdic_ii[] = 22467 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 22468 short int ebcdic_mm[] = 22469 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 22470 int use_ebcdic (int i) { 22471 return ebcdic_mm[i] + ebcdic_ii[i]; 22472 } 22473 extern int foo; 22474 22475int 22476main () 22477{ 22478return use_ascii (foo) == use_ebcdic (foo); 22479 ; 22480 return 0; 22481} 22482_ACEOF 22483if ac_fn_c_try_compile "$LINENO"; then : 22484 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 22485 ac_cv_c_bigendian=yes 22486 fi 22487 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 22488 if test "$ac_cv_c_bigendian" = unknown; then 22489 ac_cv_c_bigendian=no 22490 else 22491 # finding both strings is unlikely to happen, but who knows? 22492 ac_cv_c_bigendian=unknown 22493 fi 22494 fi 22495fi 22496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22497else 22498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22499/* end confdefs.h. */ 22500$ac_includes_default 22501int 22502main () 22503{ 22504 22505 /* Are we little or big endian? From Harbison&Steele. */ 22506 union 22507 { 22508 long int l; 22509 char c[sizeof (long int)]; 22510 } u; 22511 u.l = 1; 22512 return u.c[sizeof (long int) - 1] == 1; 22513 22514 ; 22515 return 0; 22516} 22517_ACEOF 22518if ac_fn_c_try_run "$LINENO"; then : 22519 ac_cv_c_bigendian=no 22520else 22521 ac_cv_c_bigendian=yes 22522fi 22523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22524 conftest.$ac_objext conftest.beam conftest.$ac_ext 22525fi 22526 22527 fi 22528fi 22529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 22530$as_echo "$ac_cv_c_bigendian" >&6; } 22531 case $ac_cv_c_bigendian in #( 22532 yes) 22533 22534$as_echo "#define X_BYTE_ORDER X_BIG_ENDIAN" >>confdefs.h 22535;; #( 22536 no) 22537 22538$as_echo "#define X_BYTE_ORDER X_LITTLE_ENDIAN" >>confdefs.h 22539 ;; #( 22540 universal) 22541 22542$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 22543 22544 ;; #( 22545 *) 22546 as_fn_error $? "unknown endianness 22547 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 22548 esac 22549 22550 22551# The cast to long int works around a bug in the HP C Compiler 22552# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22553# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22554# This bug is HP SR number 8606223364. 22555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 22556$as_echo_n "checking size of unsigned long... " >&6; } 22557if ${ac_cv_sizeof_unsigned_long+:} false; then : 22558 $as_echo_n "(cached) " >&6 22559else 22560 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 22561 22562else 22563 if test "$ac_cv_type_unsigned_long" = yes; then 22564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22566as_fn_error 77 "cannot compute sizeof (unsigned long) 22567See \`config.log' for more details" "$LINENO" 5; } 22568 else 22569 ac_cv_sizeof_unsigned_long=0 22570 fi 22571fi 22572 22573fi 22574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 22575$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 22576 22577 22578 22579cat >>confdefs.h <<_ACEOF 22580#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 22581_ACEOF 22582 22583 22584if test "$ac_cv_sizeof_unsigned_long" = 8; then 22585 22586$as_echo "#define _XSERVER64 1" >>confdefs.h 22587 22588fi 22589 22590ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 22591if test "x$ac_cv_type_pid_t" = xyes; then : 22592 22593else 22594 22595cat >>confdefs.h <<_ACEOF 22596#define pid_t int 22597_ACEOF 22598 22599fi 22600 22601 22602ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 22603if test "x$ac_cv_func_dlopen" = xyes; then : 22604 22605else 22606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 22607$as_echo_n "checking for dlopen in -ldl... " >&6; } 22608if ${ac_cv_lib_dl_dlopen+:} false; then : 22609 $as_echo_n "(cached) " >&6 22610else 22611 ac_check_lib_save_LIBS=$LIBS 22612LIBS="-ldl $LIBS" 22613cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22614/* end confdefs.h. */ 22615 22616/* Override any GCC internal prototype to avoid an error. 22617 Use char because int might match the return type of a GCC 22618 builtin and then its argument prototype would still apply. */ 22619#ifdef __cplusplus 22620extern "C" 22621#endif 22622char dlopen (); 22623int 22624main () 22625{ 22626return dlopen (); 22627 ; 22628 return 0; 22629} 22630_ACEOF 22631if ac_fn_c_try_link "$LINENO"; then : 22632 ac_cv_lib_dl_dlopen=yes 22633else 22634 ac_cv_lib_dl_dlopen=no 22635fi 22636rm -f core conftest.err conftest.$ac_objext \ 22637 conftest$ac_exeext conftest.$ac_ext 22638LIBS=$ac_check_lib_save_LIBS 22639fi 22640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 22641$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 22642if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 22643 DLOPEN_LIBS="-ldl" 22644fi 22645 22646fi 22647 22648 22649 22650for ac_func in backtrace geteuid getuid issetugid getresuid \ 22651 getdtablesize getifaddrs getpeereid getpeerucred getprogname getzoneid \ 22652 mmap posix_fallocate seteuid shmctl64 strncasecmp vasprintf vsnprintf \ 22653 walkcontext setitimer poll epoll_create1 mkostemp 22654do : 22655 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22656ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22657if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22658 cat >>confdefs.h <<_ACEOF 22659#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22660_ACEOF 22661 22662fi 22663done 22664 22665 22666ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 22667if test "x$ac_cv_func_reallocarray" = xyes; then : 22668 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h 22669 22670else 22671 case " $LIBOBJS " in 22672 *" reallocarray.$ac_objext "* ) ;; 22673 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 22674 ;; 22675esac 22676 22677fi 22678 22679ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 22680if test "x$ac_cv_func_strcasecmp" = xyes; then : 22681 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h 22682 22683else 22684 case " $LIBOBJS " in 22685 *" strcasecmp.$ac_objext "* ) ;; 22686 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 22687 ;; 22688esac 22689 22690fi 22691 22692ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 22693if test "x$ac_cv_func_strcasestr" = xyes; then : 22694 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h 22695 22696else 22697 case " $LIBOBJS " in 22698 *" strcasestr.$ac_objext "* ) ;; 22699 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" 22700 ;; 22701esac 22702 22703fi 22704 22705ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 22706if test "x$ac_cv_func_strlcat" = xyes; then : 22707 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 22708 22709else 22710 case " $LIBOBJS " in 22711 *" strlcat.$ac_objext "* ) ;; 22712 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 22713 ;; 22714esac 22715 22716fi 22717 22718ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 22719if test "x$ac_cv_func_strlcpy" = xyes; then : 22720 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 22721 22722else 22723 case " $LIBOBJS " in 22724 *" strlcpy.$ac_objext "* ) ;; 22725 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 22726 ;; 22727esac 22728 22729fi 22730 22731ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 22732if test "x$ac_cv_func_strndup" = xyes; then : 22733 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h 22734 22735else 22736 case " $LIBOBJS " in 22737 *" strndup.$ac_objext "* ) ;; 22738 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" 22739 ;; 22740esac 22741 22742fi 22743 22744ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp" 22745if test "x$ac_cv_func_timingsafe_memcmp" = xyes; then : 22746 $as_echo "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h 22747 22748else 22749 case " $LIBOBJS " in 22750 *" timingsafe_memcmp.$ac_objext "* ) ;; 22751 *) LIBOBJS="$LIBOBJS timingsafe_memcmp.$ac_objext" 22752 ;; 22753esac 22754 22755fi 22756 22757 22758 if test "x$ac_cv_func_poll" = "xyes"; then 22759 POLL_TRUE= 22760 POLL_FALSE='#' 22761else 22762 POLL_TRUE='#' 22763 POLL_FALSE= 22764fi 22765 22766 22767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5 22768$as_echo_n "checking for arc4random_buf in -lbsd... " >&6; } 22769if ${ac_cv_lib_bsd_arc4random_buf+:} false; then : 22770 $as_echo_n "(cached) " >&6 22771else 22772 ac_check_lib_save_LIBS=$LIBS 22773LIBS="-lbsd $LIBS" 22774cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22775/* end confdefs.h. */ 22776 22777/* Override any GCC internal prototype to avoid an error. 22778 Use char because int might match the return type of a GCC 22779 builtin and then its argument prototype would still apply. */ 22780#ifdef __cplusplus 22781extern "C" 22782#endif 22783char arc4random_buf (); 22784int 22785main () 22786{ 22787return arc4random_buf (); 22788 ; 22789 return 0; 22790} 22791_ACEOF 22792if ac_fn_c_try_link "$LINENO"; then : 22793 ac_cv_lib_bsd_arc4random_buf=yes 22794else 22795 ac_cv_lib_bsd_arc4random_buf=no 22796fi 22797rm -f core conftest.err conftest.$ac_objext \ 22798 conftest$ac_exeext conftest.$ac_ext 22799LIBS=$ac_check_lib_save_LIBS 22800fi 22801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5 22802$as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; } 22803if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then : 22804 cat >>confdefs.h <<_ACEOF 22805#define HAVE_LIBBSD 1 22806_ACEOF 22807 22808 LIBS="-lbsd $LIBS" 22809 22810fi 22811 22812for ac_func in arc4random_buf 22813do : 22814 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf" 22815if test "x$ac_cv_func_arc4random_buf" = xyes; then : 22816 cat >>confdefs.h <<_ACEOF 22817#define HAVE_ARC4RANDOM_BUF 1 22818_ACEOF 22819 22820fi 22821done 22822 22823 22824ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 22825" 22826if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then : 22827 ac_have_decl=1 22828else 22829 ac_have_decl=0 22830fi 22831 22832cat >>confdefs.h <<_ACEOF 22833#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl 22834_ACEOF 22835 22836 22837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_PEERCRED in sys/socket.h" >&5 22838$as_echo_n "checking for SO_PEERCRED in sys/socket.h... " >&6; } 22839if ${xorg_cv_sys_have_so_peercred+:} false; then : 22840 $as_echo_n "(cached) " >&6 22841else 22842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22843/* end confdefs.h. */ 22844 22845#include <sys/types.h> 22846#include <sys/socket.h> 22847#ifdef SO_PEERCRED 22848yes_have_so_peercred 22849#endif 22850 22851_ACEOF 22852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22853 $EGREP "yes_have_so_peercred" >/dev/null 2>&1; then : 22854 xorg_cv_sys_have_so_peercred=yes 22855else 22856 xorg_cv_sys_have_so_peercred=no 22857fi 22858rm -f conftest* 22859 22860fi 22861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_sys_have_so_peercred" >&5 22862$as_echo "$xorg_cv_sys_have_so_peercred" >&6; } 22863 22864if test "x$ac_cv_func_getpeereid" = xno && test "x$ac_cv_func_getpeerucred" = xno && test "x$xorg_cv_sys_have_so_peercred" = xno ; then 22865 22866$as_echo "#define NO_LOCAL_CLIENT_CRED 1" >>confdefs.h 22867 22868fi 22869 22870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 22871$as_echo_n "checking for sqrt in -lm... " >&6; } 22872if ${ac_cv_lib_m_sqrt+:} false; then : 22873 $as_echo_n "(cached) " >&6 22874else 22875 ac_check_lib_save_LIBS=$LIBS 22876LIBS="-lm $LIBS" 22877cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22878/* end confdefs.h. */ 22879 22880/* Override any GCC internal prototype to avoid an error. 22881 Use char because int might match the return type of a GCC 22882 builtin and then its argument prototype would still apply. */ 22883#ifdef __cplusplus 22884extern "C" 22885#endif 22886char sqrt (); 22887int 22888main () 22889{ 22890return sqrt (); 22891 ; 22892 return 0; 22893} 22894_ACEOF 22895if ac_fn_c_try_link "$LINENO"; then : 22896 ac_cv_lib_m_sqrt=yes 22897else 22898 ac_cv_lib_m_sqrt=no 22899fi 22900rm -f core conftest.err conftest.$ac_objext \ 22901 conftest$ac_exeext conftest.$ac_ext 22902LIBS=$ac_check_lib_save_LIBS 22903fi 22904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 22905$as_echo "$ac_cv_lib_m_sqrt" >&6; } 22906if test "x$ac_cv_lib_m_sqrt" = xyes; then : 22907 cat >>confdefs.h <<_ACEOF 22908#define HAVE_LIBM 1 22909_ACEOF 22910 22911 LIBS="-lm $LIBS" 22912 22913fi 22914 22915for ac_func in cbrt 22916do : 22917 ac_fn_c_check_func "$LINENO" "cbrt" "ac_cv_func_cbrt" 22918if test "x$ac_cv_func_cbrt" = xyes; then : 22919 cat >>confdefs.h <<_ACEOF 22920#define HAVE_CBRT 1 22921_ACEOF 22922 22923fi 22924done 22925 22926 22927for ac_header in linux/agpgart.h sys/agpio.h sys/agpgart.h 22928do : 22929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22930ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22931if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22932 cat >>confdefs.h <<_ACEOF 22933#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22934_ACEOF 22935 AGP=yes 22936fi 22937 22938done 22939 22940 if test "x$AGP" = xyes; then 22941 AGP_TRUE= 22942 AGP_FALSE='#' 22943else 22944 AGP_TRUE='#' 22945 AGP_FALSE= 22946fi 22947 22948 22949for ac_header in linux/fb.h 22950do : 22951 ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default" 22952if test "x$ac_cv_header_linux_fb_h" = xyes; then : 22953 cat >>confdefs.h <<_ACEOF 22954#define HAVE_LINUX_FB_H 1 22955_ACEOF 22956 FBDEV=yes 22957fi 22958 22959done 22960 22961 if test "x$FBDEV" = xyes; then 22962 FBDEVHW_TRUE= 22963 FBDEVHW_FALSE='#' 22964else 22965 FBDEVHW_TRUE='#' 22966 FBDEVHW_FALSE= 22967fi 22968 22969 22970for ac_header in sys/linker.h 22971do : 22972 ac_fn_c_check_header_compile "$LINENO" "sys/linker.h" "ac_cv_header_sys_linker_h" "#include <sys/param.h> 22973" 22974if test "x$ac_cv_header_sys_linker_h" = xyes; then : 22975 cat >>confdefs.h <<_ACEOF 22976#define HAVE_SYS_LINKER_H 1 22977_ACEOF 22978 ac_cv_sys_linker_h=yes 22979else 22980 ac_cv_sys_linker_h=no 22981fi 22982 22983done 22984 22985 if test "x$ac_cv_sys_linker_h" = xyes; then 22986 FREEBSD_KLDLOAD_TRUE= 22987 FREEBSD_KLDLOAD_FALSE='#' 22988else 22989 FREEBSD_KLDLOAD_TRUE='#' 22990 FREEBSD_KLDLOAD_FALSE= 22991fi 22992 22993 22994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSV IPC" >&5 22995$as_echo_n "checking for SYSV IPC... " >&6; } 22996if ${ac_cv_sysv_ipc+:} false; then : 22997 $as_echo_n "(cached) " >&6 22998else 22999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23000/* end confdefs.h. */ 23001 23002#include <sys/types.h> 23003#include <sys/ipc.h> 23004#include <sys/shm.h> 23005#include <sys/stat.h> 23006 23007int 23008main () 23009{ 23010 23011{ 23012 int id; 23013 id = shmget(IPC_PRIVATE, 512, S_IRUSR | S_IWUSR); 23014 if (id < 0) return -1; 23015 return shmctl(id, IPC_RMID, 0); 23016} 23017 ; 23018 return 0; 23019} 23020_ACEOF 23021if ac_fn_c_try_link "$LINENO"; then : 23022 ac_cv_sysv_ipc=yes 23023else 23024 ac_cv_sysv_ipc=no 23025fi 23026rm -f core conftest.err conftest.$ac_objext \ 23027 conftest$ac_exeext conftest.$ac_ext 23028fi 23029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_ipc" >&5 23030$as_echo "$ac_cv_sysv_ipc" >&6; } 23031if test "x$ac_cv_sysv_ipc" = xyes; then 23032 23033$as_echo "#define HAVE_SYSV_IPC 1" >>confdefs.h 23034 23035fi 23036 23037if test -c /dev/xf86 ; then 23038 23039$as_echo "#define HAS_APERTURE_DRV 1" >>confdefs.h 23040 23041fi 23042 23043ac_fn_c_check_header_mongrel "$LINENO" "machine/apmvar.h" "ac_cv_header_machine_apmvar_h" "$ac_includes_default" 23044if test "x$ac_cv_header_machine_apmvar_h" = xyes; then : 23045 23046 ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default" 23047if test "x$ac_cv_header_sys_event_h" = xyes; then : 23048 ac_cv_BSD_KQUEUE_APM=yes 23049else 23050 ac_cv_BSD_APM=yes 23051fi 23052 23053 23054fi 23055 23056 23057 23058 if test "x$ac_cv_BSD_APM" = xyes; then 23059 BSD_APM_TRUE= 23060 BSD_APM_FALSE='#' 23061else 23062 BSD_APM_TRUE='#' 23063 BSD_APM_FALSE= 23064fi 23065 23066 if test "x$ac_cv_BSD_KQUEUE_APM" = xyes; then 23067 BSD_KQUEUE_APM_TRUE= 23068 BSD_KQUEUE_APM_FALSE='#' 23069else 23070 BSD_KQUEUE_APM_TRUE='#' 23071 BSD_KQUEUE_APM_FALSE= 23072fi 23073 23074 23075ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" 23076if test "x$ac_cv_header_execinfo_h" = xyes; then : 23077 23078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lc" >&5 23079$as_echo_n "checking for backtrace in -lc... " >&6; } 23080if ${ac_cv_lib_c_backtrace+:} false; then : 23081 $as_echo_n "(cached) " >&6 23082else 23083 ac_check_lib_save_LIBS=$LIBS 23084LIBS="-lc $LIBS" 23085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23086/* end confdefs.h. */ 23087 23088/* Override any GCC internal prototype to avoid an error. 23089 Use char because int might match the return type of a GCC 23090 builtin and then its argument prototype would still apply. */ 23091#ifdef __cplusplus 23092extern "C" 23093#endif 23094char backtrace (); 23095int 23096main () 23097{ 23098return backtrace (); 23099 ; 23100 return 0; 23101} 23102_ACEOF 23103if ac_fn_c_try_link "$LINENO"; then : 23104 ac_cv_lib_c_backtrace=yes 23105else 23106 ac_cv_lib_c_backtrace=no 23107fi 23108rm -f core conftest.err conftest.$ac_objext \ 23109 conftest$ac_exeext conftest.$ac_ext 23110LIBS=$ac_check_lib_save_LIBS 23111fi 23112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_backtrace" >&5 23113$as_echo "$ac_cv_lib_c_backtrace" >&6; } 23114if test "x$ac_cv_lib_c_backtrace" = xyes; then : 23115 23116 23117$as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h 23118 23119 23120$as_echo "#define HAVE_EXECINFO_H 1" >>confdefs.h 23121 23122 23123fi 23124 23125 23126fi 23127 23128 23129 23130DEFAULT_INT10="x86emu" 23131 23132 23133case $host_cpu in 23134 alpha*) 23135 ALPHA_VIDEO=yes 23136 case $host_os in 23137 *freebsd*) SYS_LIBS=-lio ;; 23138 *netbsd*) 23139$as_echo "#define USE_ALPHA_PIO 1" >>confdefs.h 23140 ;; 23141 esac 23142 GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee" 23143 ;; 23144 arm*) 23145 ARM_VIDEO=yes 23146 DEFAULT_INT10="stub" 23147 ;; 23148 i*86) 23149 I386_VIDEO=yes 23150 case $host_os in 23151 *freebsd*) $as_echo "#define USE_DEV_IO 1" >>confdefs.h 23152 ;; 23153 *dragonfly*) $as_echo "#define USE_DEV_IO 1" >>confdefs.h 23154 ;; 23155 *netbsd*) $as_echo "#define USE_I386_IOPL 1" >>confdefs.h 23156 23157 SYS_LIBS=-li386 23158 ;; 23159 *openbsd*) $as_echo "#define USE_I386_IOPL 1" >>confdefs.h 23160 23161 SYS_LIBS=-li386 23162 ;; 23163 esac 23164 ;; 23165 powerpc*) 23166 PPC_VIDEO=yes 23167 case $host_os in 23168 *freebsd*) DEFAULT_INT10=stub ;; 23169 esac 23170 ;; 23171 sparc*) 23172 SPARC64_VIDEO=yes 23173 BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c" 23174 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 23175 ;; 23176 x86_64*|amd64*) 23177 I386_VIDEO=yes 23178 case $host_os in 23179 *freebsd*) 23180$as_echo "#define USE_DEV_IO 1" >>confdefs.h 23181 ;; 23182 *dragonfly*) 23183$as_echo "#define USE_DEV_IO 1" >>confdefs.h 23184 ;; 23185 *netbsd*) 23186$as_echo "#define USE_I386_IOPL 1" >>confdefs.h 23187 23188 SYS_LIBS=-lx86_64 23189 ;; 23190 *openbsd*) 23191$as_echo "#define USE_AMD64_IOPL 1" >>confdefs.h 23192 23193 SYS_LIBS=-lamd64 23194 ;; 23195 esac 23196 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 23197 ;; 23198 ia64*) 23199 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 23200 ;; 23201 s390*) 23202 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 23203 ;; 23204esac 23205 23206 23207 if test "x$ALPHA_VIDEO" = xyes; then 23208 ALPHA_VIDEO_TRUE= 23209 ALPHA_VIDEO_FALSE='#' 23210else 23211 ALPHA_VIDEO_TRUE='#' 23212 ALPHA_VIDEO_FALSE= 23213fi 23214 23215 if test "x$ARM_VIDEO" = xyes; then 23216 ARM_VIDEO_TRUE= 23217 ARM_VIDEO_FALSE='#' 23218else 23219 ARM_VIDEO_TRUE='#' 23220 ARM_VIDEO_FALSE= 23221fi 23222 23223 if test "x$I386_VIDEO" = xyes; then 23224 I386_VIDEO_TRUE= 23225 I386_VIDEO_FALSE='#' 23226else 23227 I386_VIDEO_TRUE='#' 23228 I386_VIDEO_FALSE= 23229fi 23230 23231 if test "x$PPC_VIDEO" = xyes; then 23232 PPC_VIDEO_TRUE= 23233 PPC_VIDEO_FALSE='#' 23234else 23235 PPC_VIDEO_TRUE='#' 23236 PPC_VIDEO_FALSE= 23237fi 23238 23239 if test "x$SPARC64_VIDEO" = xyes; then 23240 SPARC64_VIDEO_TRUE= 23241 SPARC64_VIDEO_FALSE='#' 23242else 23243 SPARC64_VIDEO_TRUE='#' 23244 SPARC64_VIDEO_FALSE= 23245fi 23246 23247 23248DRI=no 23249case $host_os in 23250 *freebsd* | *dragonfly*) 23251 case $host_os in 23252 kfreebsd*-gnu) ;; 23253 *) 23254$as_echo "#define CSRG_BASED 1" >>confdefs.h 23255 ;; 23256 esac 23257 23258$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h 23259 23260 23261$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h 23262 23263 23264$as_echo "#define SYSCONS_SUPPORT 1" >>confdefs.h 23265 23266 DRI=yes 23267 ;; 23268 *netbsd*) 23269 23270$as_echo "#define CSRG_BASED 1" >>confdefs.h 23271 23272 23273$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h 23274 23275 23276$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h 23277 23278 23279$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h 23280 23281 DRI=yes 23282 ;; 23283 *openbsd*) 23284 23285$as_echo "#define CSRG_BASED 1" >>confdefs.h 23286 23287 23288$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h 23289 23290 23291$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h 23292 23293 ;; 23294 *linux*) 23295 DRI=yes 23296 ;; 23297 *solaris*) 23298 DRI=yes 23299 ;; 23300 darwin*) 23301 23302$as_echo "#define CSRG_BASED 1" >>confdefs.h 23303 23304 ;; 23305 cygwin*|mingw*) 23306 CFLAGS="$CFLAGS -DFD_SETSIZE=512" 23307 ;; 23308esac 23309 23310PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1` 23311PVS=`echo $PACKAGE_VERSION | cut -d . -f 4 | cut -d - -f 1` 23312if test "x$PVS" = "x"; then 23313 PVS="0" 23314fi 23315 23316VENDOR_RELEASE="((($PVMAJOR) * 10000000) + (($PVM) * 100000) + (($PVP) * 1000) + $PVS)" 23317VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}" 23318 23319VENDOR_NAME="The X.Org Foundation" 23320VENDOR_NAME_SHORT="X.Org" 23321VENDOR_WEB="http://wiki.x.org" 23322 23323# Check whether --enable-werror was given. 23324if test "${enable_werror+set}" = set; then : 23325 enableval=$enable_werror; as_fn_error $? "--enable-werror has been replaced by --enable-strict-compilation" "$LINENO" 5 23326fi 23327 23328 23329# Check whether --enable-debug was given. 23330if test "${enable_debug+set}" = set; then : 23331 enableval=$enable_debug; DEBUGGING=$enableval 23332else 23333 DEBUGGING=no 23334fi 23335 23336 23337# Check whether --with-int10 was given. 23338if test "${with_int10+set}" = set; then : 23339 withval=$with_int10; INT10="$withval" 23340else 23341 INT10="$DEFAULT_INT10" 23342fi 23343 23344 23345# Check whether --with-vendor-name was given. 23346if test "${with_vendor_name+set}" = set; then : 23347 withval=$with_vendor_name; VENDOR_NAME="$withval" 23348fi 23349 23350 23351# Check whether --with-vendor-name-short was given. 23352if test "${with_vendor_name_short+set}" = set; then : 23353 withval=$with_vendor_name_short; VENDOR_NAME_SHORT="$withval" 23354fi 23355 23356 23357# Check whether --with-vendor-web was given. 23358if test "${with_vendor_web+set}" = set; then : 23359 withval=$with_vendor_web; VENDOR_WEB="$withval" 23360fi 23361 23362 23363# Check whether --with-module-dir was given. 23364if test "${with_module_dir+set}" = set; then : 23365 withval=$with_module_dir; moduledir="$withval" 23366else 23367 moduledir="${libdir}/xorg/modules" 23368fi 23369 23370 23371# Check whether --with-log-dir was given. 23372if test "${with_log_dir+set}" = set; then : 23373 withval=$with_log_dir; logdir="$withval" 23374else 23375 logdir="$localstatedir/log" 23376fi 23377 23378 23379# Check whether --with-builder-addr was given. 23380if test "${with_builder_addr+set}" = set; then : 23381 withval=$with_builder_addr; BUILDERADDR="$withval" 23382else 23383 BUILDERADDR="xorg@lists.freedesktop.org" 23384fi 23385 23386 23387# Check whether --with-os-name was given. 23388if test "${with_os_name+set}" = set; then : 23389 withval=$with_os_name; OSNAME="$withval" 23390else 23391 OSNAME=`uname -srm` 23392fi 23393 23394 23395# Check whether --with-os-vendor was given. 23396if test "${with_os_vendor+set}" = set; then : 23397 withval=$with_os_vendor; OSVENDOR="$withval" 23398else 23399 OSVENDOR="" 23400fi 23401 23402 23403# Check whether --with-builderstring was given. 23404if test "${with_builderstring+set}" = set; then : 23405 withval=$with_builderstring; BUILDERSTRING="$withval" 23406 23407fi 23408 23409# Check whether --enable-listen-tcp was given. 23410if test "${enable_listen_tcp+set}" = set; then : 23411 enableval=$enable_listen_tcp; LISTEN_TCP=$enableval 23412else 23413 LISTEN_TCP=no 23414fi 23415 23416# Check whether --enable-listen-unix was given. 23417if test "${enable_listen_unix+set}" = set; then : 23418 enableval=$enable_listen_unix; LISTEN_UNIX=$enableval 23419else 23420 LISTEN_UNIX=yes 23421fi 23422 23423 23424# Check whether --enable-listen-local was given. 23425if test "${enable_listen_local+set}" = set; then : 23426 enableval=$enable_listen_local; LISTEN_LOCAL=$enableval 23427else 23428 LISTEN_LOCAL=yes 23429fi 23430 23431 23432case $host_os in 23433 linux*) 23434 FALLBACK_INPUT_DRIVER="libinput" 23435 ;; 23436 *) 23437 FALLBACK_INPUT_DRIVER="" 23438 ;; 23439esac 23440 23441# Check whether --with-fallback-input-driver was given. 23442if test "${with_fallback_input_driver+set}" = set; then : 23443 withval=$with_fallback_input_driver; FALLBACK_INPUT_DRIVER=$withval 23444fi 23445 23446if test "x$FALLBACK_INPUT_DRIVER" = "xno"; then 23447 FALLBACK_INPUT_DRIVER="" 23448fi 23449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallback input driver" >&5 23450$as_echo_n "checking for fallback input driver... " >&6; } 23451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALLBACK_INPUT_DRIVER" >&5 23452$as_echo "$FALLBACK_INPUT_DRIVER" >&6; } 23453 23454cat >>confdefs.h <<_ACEOF 23455#define FALLBACK_INPUT_DRIVER "$FALLBACK_INPUT_DRIVER" 23456_ACEOF 23457 23458 23459 23460 23461 23462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5 23463$as_echo_n "checking for root directory for font files... " >&6; } 23464 23465# Check whether --with-fontrootdir was given. 23466if test "${with_fontrootdir+set}" = set; then : 23467 withval=$with_fontrootdir; FONTROOTDIR="$withval" 23468fi 23469 23470 # if --with-fontrootdir not specified... 23471 if test "x${FONTROOTDIR}" = "x"; then 23472 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil` 23473 fi 23474 # ...and if pkg-config didn't find fontdir in fontutil.pc... 23475 if test "x${FONTROOTDIR}" = "x"; then 23476 FONTROOTDIR="${datadir}/fonts/X11" 23477 fi 23478 23479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5 23480$as_echo "${FONTROOTDIR}" >&6; } 23481 23482 23483 23484 23485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5 23486$as_echo_n "checking for directory for misc files... " >&6; } 23487 23488# Check whether --with-fontmiscdir was given. 23489if test "${with_fontmiscdir+set}" = set; then : 23490 withval=$with_fontmiscdir; FONTMISCDIR="${withval}" 23491else 23492 FONTMISCDIR='${FONTROOTDIR}/misc' 23493fi 23494 23495 23496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5 23497$as_echo "${FONTMISCDIR}" >&6; } 23498 23499 23500 23501 23502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5 23503$as_echo_n "checking for directory for OTF files... " >&6; } 23504 23505# Check whether --with-fontotfdir was given. 23506if test "${with_fontotfdir+set}" = set; then : 23507 withval=$with_fontotfdir; FONTOTFDIR="${withval}" 23508else 23509 FONTOTFDIR='${FONTROOTDIR}/OTF' 23510fi 23511 23512 23513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5 23514$as_echo "${FONTOTFDIR}" >&6; } 23515 23516 23517 23518 23519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5 23520$as_echo_n "checking for directory for TTF files... " >&6; } 23521 23522# Check whether --with-fontttfdir was given. 23523if test "${with_fontttfdir+set}" = set; then : 23524 withval=$with_fontttfdir; FONTTTFDIR="${withval}" 23525else 23526 FONTTTFDIR='${FONTROOTDIR}/TTF' 23527fi 23528 23529 23530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5 23531$as_echo "${FONTTTFDIR}" >&6; } 23532 23533 23534 23535 23536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5 23537$as_echo_n "checking for directory for Type1 files... " >&6; } 23538 23539# Check whether --with-fonttype1dir was given. 23540if test "${with_fonttype1dir+set}" = set; then : 23541 withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}" 23542else 23543 FONTTYPE1DIR='${FONTROOTDIR}/Type1' 23544fi 23545 23546 23547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5 23548$as_echo "${FONTTYPE1DIR}" >&6; } 23549 23550 23551 23552 23553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5 23554$as_echo_n "checking for directory for 75dpi files... " >&6; } 23555 23556# Check whether --with-font75dpidir was given. 23557if test "${with_font75dpidir+set}" = set; then : 23558 withval=$with_font75dpidir; FONT75DPIDIR="${withval}" 23559else 23560 FONT75DPIDIR='${FONTROOTDIR}/75dpi' 23561fi 23562 23563 23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5 23565$as_echo "${FONT75DPIDIR}" >&6; } 23566 23567 23568 23569 23570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5 23571$as_echo_n "checking for directory for 100dpi files... " >&6; } 23572 23573# Check whether --with-font100dpidir was given. 23574if test "${with_font100dpidir+set}" = set; then : 23575 withval=$with_font100dpidir; FONT100DPIDIR="${withval}" 23576else 23577 FONT100DPIDIR='${FONTROOTDIR}/100dpi' 23578fi 23579 23580 23581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5 23582$as_echo "${FONT100DPIDIR}" >&6; } 23583 23584 23585DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/" 23586case $host_os in 23587 darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;; 23588esac 23589 23590 23591# Check whether --with-default-font-path was given. 23592if test "${with_default_font_path+set}" = set; then : 23593 withval=$with_default_font_path; FONTPATH="$withval" 23594else 23595 FONTPATH="${DEFAULT_FONT_PATH}" 23596fi 23597 23598 23599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5 23600$as_echo_n "checking for default font path... " >&6; } 23601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5 23602$as_echo "$FONTPATH" >&6; } 23603 23604 23605# Check whether --with-xkb-path was given. 23606if test "${with_xkb_path+set}" = set; then : 23607 withval=$with_xkb_path; XKBPATH="$withval" 23608else 23609 XKBPATH="auto" 23610fi 23611 23612 23613# Check whether --with-xkb-output was given. 23614if test "${with_xkb_output+set}" = set; then : 23615 withval=$with_xkb_output; XKBOUTPUT="$withval" 23616else 23617 XKBOUTPUT="compiled" 23618fi 23619 23620 23621# Check whether --with-default-xkb-rules was given. 23622if test "${with_default_xkb_rules+set}" = set; then : 23623 withval=$with_default_xkb_rules; XKB_DFLT_RULES="$withval" 23624else 23625 XKB_DFLT_RULES="" 23626fi 23627 23628 23629# Check whether --with-default-xkb-model was given. 23630if test "${with_default_xkb_model+set}" = set; then : 23631 withval=$with_default_xkb_model; XKB_DFLT_MODEL="$withval" 23632else 23633 XKB_DFLT_MODEL="pc105" 23634fi 23635 23636 23637# Check whether --with-default-xkb-layout was given. 23638if test "${with_default_xkb_layout+set}" = set; then : 23639 withval=$with_default_xkb_layout; XKB_DFLT_LAYOUT="$withval" 23640else 23641 XKB_DFLT_LAYOUT="us" 23642fi 23643 23644 23645# Check whether --with-default-xkb-variant was given. 23646if test "${with_default_xkb_variant+set}" = set; then : 23647 withval=$with_default_xkb_variant; XKB_DFLT_VARIANT="$withval" 23648else 23649 XKB_DFLT_VARIANT="" 23650fi 23651 23652 23653# Check whether --with-default-xkb-options was given. 23654if test "${with_default_xkb_options+set}" = set; then : 23655 withval=$with_default_xkb_options; XKB_DFLT_OPTIONS="$withval" 23656else 23657 XKB_DFLT_OPTIONS="" 23658fi 23659 23660 23661# Check whether --with-serverconfig-path was given. 23662if test "${with_serverconfig_path+set}" = set; then : 23663 withval=$with_serverconfig_path; SERVERCONFIG="$withval" 23664else 23665 SERVERCONFIG="${libdir}/xorg" 23666fi 23667 23668 23669# Check whether --with-apple-applications-dir was given. 23670if test "${with_apple_applications_dir+set}" = set; then : 23671 withval=$with_apple_applications_dir; APPLE_APPLICATIONS_DIR="${withval}" 23672else 23673 APPLE_APPLICATIONS_DIR="/Applications/Utilities" 23674fi 23675 23676 23677 23678# Check whether --with-apple-application-name was given. 23679if test "${with_apple_application_name+set}" = set; then : 23680 withval=$with_apple_application_name; APPLE_APPLICATION_NAME="${withval}" 23681else 23682 APPLE_APPLICATION_NAME="X11" 23683fi 23684 23685 23686 23687# Check whether --with-bundle-id-prefix was given. 23688if test "${with_bundle_id_prefix+set}" = set; then : 23689 withval=$with_bundle_id_prefix; BUNDLE_ID_PREFIX="${withval}" 23690fi 23691 23692 23693 23694cat >>confdefs.h <<_ACEOF 23695#define BUNDLE_ID_PREFIX "$BUNDLE_ID_PREFIX" 23696_ACEOF 23697 23698 23699 23700# Check whether --with-bundle-version was given. 23701if test "${with_bundle_version+set}" = set; then : 23702 withval=$with_bundle_version; BUNDLE_VERSION="${withval}" 23703else 23704 BUNDLE_VERSION="1.20.4" 23705fi 23706 23707 23708 23709# Check whether --with-bundle-version-string was given. 23710if test "${with_bundle_version_string+set}" = set; then : 23711 withval=$with_bundle_version_string; BUNDLE_VERSION_STRING="${withval}" 23712else 23713 BUNDLE_VERSION_STRING="${PACKAGE_VERSION}" 23714fi 23715 23716 23717# Check whether --enable-sparkle was given. 23718if test "${enable_sparkle+set}" = set; then : 23719 enableval=$enable_sparkle; XQUARTZ_SPARKLE="${enableval}" 23720else 23721 XQUARTZ_SPARKLE="no" 23722fi 23723 23724 23725 23726# Check whether --with-sparkle-feed-url was given. 23727if test "${with_sparkle_feed_url+set}" = set; then : 23728 withval=$with_sparkle_feed_url; XQUARTZ_SPARKLE_FEED_URL="${withval}" 23729else 23730 XQUARTZ_SPARKLE_FEED_URL="https://www.xquartz.org/releases/sparkle/release.xml" 23731fi 23732 23733 23734# Check whether --enable-visibility was given. 23735if test "${enable_visibility+set}" = set; then : 23736 enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval 23737else 23738 SYMBOL_VISIBILITY=auto 23739fi 23740 23741 23742 23743# Check whether --with-khronos-spec-dir was given. 23744if test "${with_khronos_spec_dir+set}" = set; then : 23745 withval=$with_khronos_spec_dir; KHRONOS_SPEC_DIR="${withval}" 23746else 23747 KHRONOS_SPEC_DIR=auto 23748fi 23749 23750 23751# Check whether --enable-composite was given. 23752if test "${enable_composite+set}" = set; then : 23753 enableval=$enable_composite; COMPOSITE=$enableval 23754else 23755 COMPOSITE=yes 23756fi 23757 23758# Check whether --enable-mitshm was given. 23759if test "${enable_mitshm+set}" = set; then : 23760 enableval=$enable_mitshm; MITSHM=$enableval 23761else 23762 MITSHM=auto 23763fi 23764 23765# Check whether --enable-xres was given. 23766if test "${enable_xres+set}" = set; then : 23767 enableval=$enable_xres; RES=$enableval 23768else 23769 RES=yes 23770fi 23771 23772# Check whether --enable-record was given. 23773if test "${enable_record+set}" = set; then : 23774 enableval=$enable_record; RECORD=$enableval 23775else 23776 RECORD=yes 23777fi 23778 23779# Check whether --enable-xv was given. 23780if test "${enable_xv+set}" = set; then : 23781 enableval=$enable_xv; XV=$enableval 23782else 23783 XV=yes 23784fi 23785 23786# Check whether --enable-xvmc was given. 23787if test "${enable_xvmc+set}" = set; then : 23788 enableval=$enable_xvmc; XVMC=$enableval 23789else 23790 XVMC=yes 23791fi 23792 23793# Check whether --enable-dga was given. 23794if test "${enable_dga+set}" = set; then : 23795 enableval=$enable_dga; DGA=$enableval 23796else 23797 DGA=auto 23798fi 23799 23800# Check whether --enable-screensaver was given. 23801if test "${enable_screensaver+set}" = set; then : 23802 enableval=$enable_screensaver; SCREENSAVER=$enableval 23803else 23804 SCREENSAVER=yes 23805fi 23806 23807# Check whether --enable-xdmcp was given. 23808if test "${enable_xdmcp+set}" = set; then : 23809 enableval=$enable_xdmcp; XDMCP=$enableval 23810else 23811 XDMCP=auto 23812fi 23813 23814# Check whether --enable-xdm-auth-1 was given. 23815if test "${enable_xdm_auth_1+set}" = set; then : 23816 enableval=$enable_xdm_auth_1; XDMAUTH=$enableval 23817else 23818 XDMAUTH=auto 23819fi 23820 23821# Check whether --enable-glx was given. 23822if test "${enable_glx+set}" = set; then : 23823 enableval=$enable_glx; GLX=$enableval 23824else 23825 GLX=yes 23826fi 23827 23828# Check whether --enable-dri was given. 23829if test "${enable_dri+set}" = set; then : 23830 enableval=$enable_dri; DRI=$enableval 23831fi 23832 23833# Check whether --enable-dri2 was given. 23834if test "${enable_dri2+set}" = set; then : 23835 enableval=$enable_dri2; DRI2=$enableval 23836else 23837 DRI2=auto 23838fi 23839 23840# Check whether --enable-dri3 was given. 23841if test "${enable_dri3+set}" = set; then : 23842 enableval=$enable_dri3; DRI3=$enableval 23843else 23844 DRI3=auto 23845fi 23846 23847# Check whether --enable-present was given. 23848if test "${enable_present+set}" = set; then : 23849 enableval=$enable_present; PRESENT=$enableval 23850else 23851 PRESENT=yes 23852fi 23853 23854# Check whether --enable-xinerama was given. 23855if test "${enable_xinerama+set}" = set; then : 23856 enableval=$enable_xinerama; XINERAMA=$enableval 23857else 23858 XINERAMA=yes 23859fi 23860 23861# Check whether --enable-xf86vidmode was given. 23862if test "${enable_xf86vidmode+set}" = set; then : 23863 enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval 23864else 23865 XF86VIDMODE=auto 23866fi 23867 23868# Check whether --enable-xace was given. 23869if test "${enable_xace+set}" = set; then : 23870 enableval=$enable_xace; XACE=$enableval 23871else 23872 XACE=yes 23873fi 23874 23875# Check whether --enable-xselinux was given. 23876if test "${enable_xselinux+set}" = set; then : 23877 enableval=$enable_xselinux; XSELINUX=$enableval 23878else 23879 XSELINUX=no 23880fi 23881 23882# Check whether --enable-xcsecurity was given. 23883if test "${enable_xcsecurity+set}" = set; then : 23884 enableval=$enable_xcsecurity; XCSECURITY=$enableval 23885else 23886 XCSECURITY=no 23887fi 23888 23889# Check whether --enable-dbe was given. 23890if test "${enable_dbe+set}" = set; then : 23891 enableval=$enable_dbe; DBE=$enableval 23892else 23893 DBE=yes 23894fi 23895 23896# Check whether --enable-xf86bigfont was given. 23897if test "${enable_xf86bigfont+set}" = set; then : 23898 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval 23899else 23900 XF86BIGFONT=no 23901fi 23902 23903# Check whether --enable-dpms was given. 23904if test "${enable_dpms+set}" = set; then : 23905 enableval=$enable_dpms; DPMSExtension=$enableval 23906else 23907 DPMSExtension=yes 23908fi 23909 23910# Check whether --enable-config-udev was given. 23911if test "${enable_config_udev+set}" = set; then : 23912 enableval=$enable_config_udev; CONFIG_UDEV=$enableval 23913else 23914 CONFIG_UDEV=auto 23915fi 23916 23917# Check whether --enable-config-udev-kms was given. 23918if test "${enable_config_udev_kms+set}" = set; then : 23919 enableval=$enable_config_udev_kms; CONFIG_UDEV_KMS=$enableval 23920else 23921 CONFIG_UDEV_KMS=auto 23922fi 23923 23924# Check whether --enable-config-hal was given. 23925if test "${enable_config_hal+set}" = set; then : 23926 enableval=$enable_config_hal; CONFIG_HAL=$enableval 23927else 23928 CONFIG_HAL=auto 23929fi 23930 23931# Check whether --enable-config-wscons was given. 23932if test "${enable_config_wscons+set}" = set; then : 23933 enableval=$enable_config_wscons; CONFIG_WSCONS=$enableval 23934else 23935 CONFIG_WSCONS=auto 23936fi 23937 23938# Check whether --enable-xfree86-utils was given. 23939if test "${enable_xfree86_utils+set}" = set; then : 23940 enableval=$enable_xfree86_utils; XF86UTILS=$enableval 23941else 23942 XF86UTILS=yes 23943fi 23944 23945# Check whether --enable-vgahw was given. 23946if test "${enable_vgahw+set}" = set; then : 23947 enableval=$enable_vgahw; VGAHW=$enableval 23948else 23949 VGAHW=yes 23950fi 23951 23952# Check whether --enable-vbe was given. 23953if test "${enable_vbe+set}" = set; then : 23954 enableval=$enable_vbe; VBE=$enableval 23955else 23956 VBE=yes 23957fi 23958 23959# Check whether --enable-int10-module was given. 23960if test "${enable_int10_module+set}" = set; then : 23961 enableval=$enable_int10_module; INT10MODULE=$enableval 23962else 23963 INT10MODULE=yes 23964fi 23965 23966# Check whether --enable-windowswm was given. 23967if test "${enable_windowswm+set}" = set; then : 23968 enableval=$enable_windowswm; WINDOWSWM=$enableval 23969else 23970 WINDOWSWM=no 23971fi 23972 23973# Check whether --enable-windowsdri was given. 23974if test "${enable_windowsdri+set}" = set; then : 23975 enableval=$enable_windowsdri; WINDOWSDRI=$enableval 23976else 23977 WINDOWSDRI=auto 23978fi 23979 23980# Check whether --enable-libdrm was given. 23981if test "${enable_libdrm+set}" = set; then : 23982 enableval=$enable_libdrm; DRM=$enableval 23983else 23984 DRM=yes 23985fi 23986 23987# Check whether --enable-clientids was given. 23988if test "${enable_clientids+set}" = set; then : 23989 enableval=$enable_clientids; CLIENTIDS=$enableval 23990else 23991 CLIENTIDS=yes 23992fi 23993 23994# Check whether --enable-pciaccess was given. 23995if test "${enable_pciaccess+set}" = set; then : 23996 enableval=$enable_pciaccess; PCI=$enableval 23997else 23998 PCI=yes 23999fi 24000 24001# Check whether --enable-linux_acpi was given. 24002if test "${enable_linux_acpi+set}" = set; then : 24003 enableval=$enable_linux_acpi; enable_linux_acpi=$enableval 24004else 24005 enable_linux_acpi=yes 24006fi 24007 24008# Check whether --enable-linux_apm was given. 24009if test "${enable_linux_apm+set}" = set; then : 24010 enableval=$enable_linux_apm; enable_linux_apm=$enableval 24011else 24012 enable_linux_apm=yes 24013fi 24014 24015# Check whether --enable-systemd-logind was given. 24016if test "${enable_systemd_logind+set}" = set; then : 24017 enableval=$enable_systemd_logind; SYSTEMD_LOGIND=$enableval 24018else 24019 SYSTEMD_LOGIND=auto 24020fi 24021 24022# Check whether --enable-suid-wrapper was given. 24023if test "${enable_suid_wrapper+set}" = set; then : 24024 enableval=$enable_suid_wrapper; SUID_WRAPPER=$enableval 24025else 24026 SUID_WRAPPER=no 24027fi 24028 24029 24030# Check whether --enable-xorg was given. 24031if test "${enable_xorg+set}" = set; then : 24032 enableval=$enable_xorg; XORG=$enableval 24033else 24034 XORG=auto 24035fi 24036 24037# Check whether --enable-dmx was given. 24038if test "${enable_dmx+set}" = set; then : 24039 enableval=$enable_dmx; DMX=$enableval 24040else 24041 DMX=no 24042fi 24043 24044# Check whether --enable-xvfb was given. 24045if test "${enable_xvfb+set}" = set; then : 24046 enableval=$enable_xvfb; XVFB=$enableval 24047else 24048 XVFB=yes 24049fi 24050 24051# Check whether --enable-xnest was given. 24052if test "${enable_xnest+set}" = set; then : 24053 enableval=$enable_xnest; XNEST=$enableval 24054else 24055 XNEST=auto 24056fi 24057 24058# Check whether --enable-xquartz was given. 24059if test "${enable_xquartz+set}" = set; then : 24060 enableval=$enable_xquartz; XQUARTZ=$enableval 24061else 24062 XQUARTZ=auto 24063fi 24064 24065# Check whether --enable-xwayland was given. 24066if test "${enable_xwayland+set}" = set; then : 24067 enableval=$enable_xwayland; XWAYLAND=$enableval 24068else 24069 XWAYLAND=auto 24070fi 24071 24072# Check whether --enable-xwayland-eglstream was given. 24073if test "${enable_xwayland_eglstream+set}" = set; then : 24074 enableval=$enable_xwayland_eglstream; XWAYLAND_EGLSTREAM=$enableval 24075else 24076 XWAYLAND_EGLSTREAM=no 24077fi 24078 24079# Check whether --enable-standalone-xpbproxy was given. 24080if test "${enable_standalone_xpbproxy+set}" = set; then : 24081 enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval 24082else 24083 STANDALONE_XPBPROXY=no 24084fi 24085 24086# Check whether --enable-xwin was given. 24087if test "${enable_xwin+set}" = set; then : 24088 enableval=$enable_xwin; XWIN=$enableval 24089else 24090 XWIN=auto 24091fi 24092 24093# Check whether --enable-glamor was given. 24094if test "${enable_glamor+set}" = set; then : 24095 enableval=$enable_glamor; GLAMOR=$enableval 24096else 24097 GLAMOR=auto 24098fi 24099 24100# Check whether --enable-kdrive was given. 24101if test "${enable_kdrive+set}" = set; then : 24102 enableval=$enable_kdrive; KDRIVE=$enableval 24103else 24104 KDRIVE=no 24105fi 24106 24107# Check whether --enable-xephyr was given. 24108if test "${enable_xephyr+set}" = set; then : 24109 enableval=$enable_xephyr; XEPHYR=$enableval 24110else 24111 XEPHYR=auto 24112fi 24113 24114# Check whether --enable-libunwind was given. 24115if test "${enable_libunwind+set}" = set; then : 24116 enableval=$enable_libunwind; LIBUNWIND="$enableval" 24117else 24118 LIBUNWIND="auto" 24119fi 24120 24121# Check whether --enable-xshmfence was given. 24122if test "${enable_xshmfence+set}" = set; then : 24123 enableval=$enable_xshmfence; XSHMFENCE="$enableval" 24124else 24125 XSHMFENCE="auto" 24126fi 24127 24128 24129 24130# Check whether --enable-install-setuid was given. 24131if test "${enable_install_setuid+set}" = set; then : 24132 enableval=$enable_install_setuid; SETUID=$enableval 24133else 24134 SETUID=auto 24135fi 24136 24137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we can install the Xorg server as root" >&5 24138$as_echo_n "checking to see if we can install the Xorg server as root... " >&6; } 24139if test "x$SETUID" = "xauto" ; then 24140 case $host_os in 24141 cygwin*) SETUID="no" ;; 24142 mingw*) SETUID="no" ;; 24143 darwin*) SETUID="no" ;; 24144 *) 24145 case $host_cpu in 24146 sparc) SETUID="no" ;; 24147 *) SETUID="yes" ;; 24148 esac 24149 esac 24150 if test "x$SETUID" = xyes; then 24151 touch testfile 24152 chown root testfile > /dev/null 2>&1 || SETUID="no" 24153 rm -f testfile 24154 fi 24155fi 24156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETUID" >&5 24157$as_echo "$SETUID" >&6; } 24158 if test "x$SETUID" = "xyes"; then 24159 INSTALL_SETUID_TRUE= 24160 INSTALL_SETUID_FALSE='#' 24161else 24162 INSTALL_SETUID_TRUE='#' 24163 INSTALL_SETUID_FALSE= 24164fi 24165 24166 24167 24168 24169# Transport selection macro from xtrans.m4 24170 24171 24172 case $host_os in 24173 mingw*) unixdef="no" ;; 24174 *) unixdef="yes" ;; 24175 esac 24176 # Check whether --enable-unix-transport was given. 24177if test "${enable_unix_transport+set}" = set; then : 24178 enableval=$enable_unix_transport; UNIXCONN=$enableval 24179else 24180 UNIXCONN=$unixdef 24181fi 24182 24183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 24184$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 24185 if test "$UNIXCONN" = "yes"; then 24186 24187$as_echo "#define UNIXCONN 1" >>confdefs.h 24188 24189 fi 24190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 24191$as_echo "$UNIXCONN" >&6; } 24192 # Check whether --enable-tcp-transport was given. 24193if test "${enable_tcp_transport+set}" = set; then : 24194 enableval=$enable_tcp_transport; TCPCONN=$enableval 24195else 24196 TCPCONN=yes 24197fi 24198 24199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 24200$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 24202$as_echo "$TCPCONN" >&6; } 24203 if test "$TCPCONN" = "yes"; then 24204 24205$as_echo "#define TCPCONN 1" >>confdefs.h 24206 24207 24208 # SVR4 hides these in libraries other than libc 24209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 24210$as_echo_n "checking for library containing socket... " >&6; } 24211if ${ac_cv_search_socket+:} false; then : 24212 $as_echo_n "(cached) " >&6 24213else 24214 ac_func_search_save_LIBS=$LIBS 24215cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24216/* end confdefs.h. */ 24217 24218/* Override any GCC internal prototype to avoid an error. 24219 Use char because int might match the return type of a GCC 24220 builtin and then its argument prototype would still apply. */ 24221#ifdef __cplusplus 24222extern "C" 24223#endif 24224char socket (); 24225int 24226main () 24227{ 24228return socket (); 24229 ; 24230 return 0; 24231} 24232_ACEOF 24233for ac_lib in '' socket; do 24234 if test -z "$ac_lib"; then 24235 ac_res="none required" 24236 else 24237 ac_res=-l$ac_lib 24238 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24239 fi 24240 if ac_fn_c_try_link "$LINENO"; then : 24241 ac_cv_search_socket=$ac_res 24242fi 24243rm -f core conftest.err conftest.$ac_objext \ 24244 conftest$ac_exeext 24245 if ${ac_cv_search_socket+:} false; then : 24246 break 24247fi 24248done 24249if ${ac_cv_search_socket+:} false; then : 24250 24251else 24252 ac_cv_search_socket=no 24253fi 24254rm conftest.$ac_ext 24255LIBS=$ac_func_search_save_LIBS 24256fi 24257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 24258$as_echo "$ac_cv_search_socket" >&6; } 24259ac_res=$ac_cv_search_socket 24260if test "$ac_res" != no; then : 24261 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24262 24263fi 24264 24265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 24266$as_echo_n "checking for library containing gethostbyname... " >&6; } 24267if ${ac_cv_search_gethostbyname+:} false; then : 24268 $as_echo_n "(cached) " >&6 24269else 24270 ac_func_search_save_LIBS=$LIBS 24271cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24272/* end confdefs.h. */ 24273 24274/* Override any GCC internal prototype to avoid an error. 24275 Use char because int might match the return type of a GCC 24276 builtin and then its argument prototype would still apply. */ 24277#ifdef __cplusplus 24278extern "C" 24279#endif 24280char gethostbyname (); 24281int 24282main () 24283{ 24284return gethostbyname (); 24285 ; 24286 return 0; 24287} 24288_ACEOF 24289for ac_lib in '' nsl; do 24290 if test -z "$ac_lib"; then 24291 ac_res="none required" 24292 else 24293 ac_res=-l$ac_lib 24294 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24295 fi 24296 if ac_fn_c_try_link "$LINENO"; then : 24297 ac_cv_search_gethostbyname=$ac_res 24298fi 24299rm -f core conftest.err conftest.$ac_objext \ 24300 conftest$ac_exeext 24301 if ${ac_cv_search_gethostbyname+:} false; then : 24302 break 24303fi 24304done 24305if ${ac_cv_search_gethostbyname+:} false; then : 24306 24307else 24308 ac_cv_search_gethostbyname=no 24309fi 24310rm conftest.$ac_ext 24311LIBS=$ac_func_search_save_LIBS 24312fi 24313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 24314$as_echo "$ac_cv_search_gethostbyname" >&6; } 24315ac_res=$ac_cv_search_gethostbyname 24316if test "$ac_res" != no; then : 24317 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24318 24319fi 24320 24321 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 24323$as_echo_n "checking for main in -lws2_32... " >&6; } 24324if ${ac_cv_lib_ws2_32_main+:} false; then : 24325 $as_echo_n "(cached) " >&6 24326else 24327 ac_check_lib_save_LIBS=$LIBS 24328LIBS="-lws2_32 $LIBS" 24329cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24330/* end confdefs.h. */ 24331 24332 24333int 24334main () 24335{ 24336return main (); 24337 ; 24338 return 0; 24339} 24340_ACEOF 24341if ac_fn_c_try_link "$LINENO"; then : 24342 ac_cv_lib_ws2_32_main=yes 24343else 24344 ac_cv_lib_ws2_32_main=no 24345fi 24346rm -f core conftest.err conftest.$ac_objext \ 24347 conftest$ac_exeext conftest.$ac_ext 24348LIBS=$ac_check_lib_save_LIBS 24349fi 24350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 24351$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 24352if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 24353 cat >>confdefs.h <<_ACEOF 24354#define HAVE_LIBWS2_32 1 24355_ACEOF 24356 24357 LIBS="-lws2_32 $LIBS" 24358 24359fi 24360 24361 fi 24362 24363 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 24364 # Check whether --enable-ipv6 was given. 24365if test "${enable_ipv6+set}" = set; then : 24366 enableval=$enable_ipv6; IPV6CONN=$enableval 24367else 24368 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 24369if test "x$ac_cv_func_getaddrinfo" = xyes; then : 24370 IPV6CONN=yes 24371else 24372 IPV6CONN=no 24373fi 24374 24375fi 24376 24377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 24378$as_echo_n "checking if IPv6 support should be built... " >&6; } 24379 if test "$IPV6CONN" = "yes"; then 24380 24381$as_echo "#define IPv6 1" >>confdefs.h 24382 24383 fi 24384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 24385$as_echo "$IPV6CONN" >&6; } 24386 24387 # 4.3BSD-Reno added a new member to struct sockaddr_in 24388 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 24389#include <sys/types.h> 24390#include <sys/socket.h> 24391#include <netinet/in.h> 24392 24393" 24394if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 24395 24396$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 24397 24398fi 24399 24400 24401 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 24402 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 24403$ac_includes_default 24404#include <sys/socket.h> 24405" 24406if test "x$ac_cv_type_socklen_t" = xyes; then : 24407 24408cat >>confdefs.h <<_ACEOF 24409#define HAVE_SOCKLEN_T 1 24410_ACEOF 24411 24412 24413fi 24414 24415 24416 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 24417 # _XOPEN_SOURCE to get it (such as on Solaris) 24418 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 24419$ac_includes_default 24420#include <sys/socket.h> 24421 24422" 24423if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 24424 24425fi 24426 24427 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 24428 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 24429 unset ac_cv_member_struct_msghdr_msg_control 24430 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 24431$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 24432 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 24433#define _XOPEN_SOURCE 600 24434$ac_includes_default 24435#include <sys/socket.h> 24436 24437" 24438if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 24439 24440$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 24441 24442 24443fi 24444 24445 fi 24446 # If that didn't work, fall back to XPG5/UNIX98 with C89 24447 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 24448 unset ac_cv_member_struct_msghdr_msg_control 24449 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 24450$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 24451 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 24452#define _XOPEN_SOURCE 500 24453$ac_includes_default 24454#include <sys/socket.h> 24455 24456" 24457if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 24458 24459$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 24460 24461 24462fi 24463 24464 fi 24465 24466 24467 24468 fi 24469 case $host_os in 24470 solaris*|sco*|sysv4*) localdef="yes" ;; 24471 *) localdef="no" ;; 24472 esac 24473 # Check whether --enable-local-transport was given. 24474if test "${enable_local_transport+set}" = set; then : 24475 enableval=$enable_local_transport; LOCALCONN=$enableval 24476else 24477 LOCALCONN=$localdef 24478fi 24479 24480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 24481$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 24483$as_echo "$LOCALCONN" >&6; } 24484 if test "$LOCALCONN" = "yes"; then 24485 24486$as_echo "#define LOCALCONN 1" >>confdefs.h 24487 24488 fi 24489 24490 24491 24492# Secure RPC detection macro from xtrans.m4 24493 24494 # Check whether --enable-secure-rpc was given. 24495if test "${enable_secure_rpc+set}" = set; then : 24496 enableval=$enable_secure_rpc; SECURE_RPC=$enableval 24497else 24498 SECURE_RPC="try" 24499fi 24500 24501 24502 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 24503 FOUND_SECURE_RPC="no" 24504 for ac_func in authdes_seccreate authdes_create 24505do : 24506 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24507ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24508if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24509 cat >>confdefs.h <<_ACEOF 24510#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24511_ACEOF 24512 FOUND_SECURE_RPC="yes" 24513fi 24514done 24515 24516 if test "x$FOUND_SECURE_RPC" = "xno" ; then 24517 if test "x$SECURE_RPC" = "xyes" ; then 24518 as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5 24519 fi 24520 SECURE_RPC="no" 24521 else 24522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5 24523$as_echo_n "checking for library containing getsecretkey... " >&6; } 24524if ${ac_cv_search_getsecretkey+:} false; then : 24525 $as_echo_n "(cached) " >&6 24526else 24527 ac_func_search_save_LIBS=$LIBS 24528cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24529/* end confdefs.h. */ 24530 24531/* Override any GCC internal prototype to avoid an error. 24532 Use char because int might match the return type of a GCC 24533 builtin and then its argument prototype would still apply. */ 24534#ifdef __cplusplus 24535extern "C" 24536#endif 24537char getsecretkey (); 24538int 24539main () 24540{ 24541return getsecretkey (); 24542 ; 24543 return 0; 24544} 24545_ACEOF 24546for ac_lib in '' rpcsvc; do 24547 if test -z "$ac_lib"; then 24548 ac_res="none required" 24549 else 24550 ac_res=-l$ac_lib 24551 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24552 fi 24553 if ac_fn_c_try_link "$LINENO"; then : 24554 ac_cv_search_getsecretkey=$ac_res 24555fi 24556rm -f core conftest.err conftest.$ac_objext \ 24557 conftest$ac_exeext 24558 if ${ac_cv_search_getsecretkey+:} false; then : 24559 break 24560fi 24561done 24562if ${ac_cv_search_getsecretkey+:} false; then : 24563 24564else 24565 ac_cv_search_getsecretkey=no 24566fi 24567rm conftest.$ac_ext 24568LIBS=$ac_func_search_save_LIBS 24569fi 24570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5 24571$as_echo "$ac_cv_search_getsecretkey" >&6; } 24572ac_res=$ac_cv_search_getsecretkey 24573if test "$ac_res" != no; then : 24574 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24575 24576fi 24577 24578 SECURE_RPC="yes" 24579 fi 24580 fi 24581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5 24582$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; } 24583 if test "x$SECURE_RPC" = "xyes" ; then 24584 24585$as_echo "#define SECURE_RPC 1" >>confdefs.h 24586 24587 fi 24588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5 24589$as_echo "$SECURE_RPC" >&6; } 24590 24591 if test "x$SECURE_RPC" = xyes; then 24592 SECURE_RPC_TRUE= 24593 SECURE_RPC_FALSE='#' 24594else 24595 SECURE_RPC_TRUE='#' 24596 SECURE_RPC_FALSE= 24597fi 24598 24599 24600 if test "x$INT10" = xvm86; then 24601 INT10_VM86_TRUE= 24602 INT10_VM86_FALSE='#' 24603else 24604 INT10_VM86_TRUE='#' 24605 INT10_VM86_FALSE= 24606fi 24607 24608 if test "x$INT10" = xx86emu; then 24609 INT10_X86EMU_TRUE= 24610 INT10_X86EMU_FALSE='#' 24611else 24612 INT10_X86EMU_TRUE='#' 24613 INT10_X86EMU_FALSE= 24614fi 24615 24616 if test "x$INT10" = xstub; then 24617 INT10_STUB_TRUE= 24618 INT10_STUB_FALSE='#' 24619else 24620 INT10_STUB_TRUE='#' 24621 INT10_STUB_FALSE= 24622fi 24623 24624 24625case $host_os in 24626 cygwin* | mingw*) 24627 CONFIG_HAL=no 24628 CONFIG_UDEV=no 24629 CONFIG_UDEV_KMS=no 24630 DGA=no 24631 DRM=no 24632 DRI2=no 24633 DRI3=no 24634 INT10MODULE=no 24635 PCI=no 24636 VGAHW=no 24637 VBE=no 24638 XF86UTILS=no 24639 XF86VIDMODE=no 24640 XSELINUX=no 24641 SYMBOL_VISIBILITY=no 24642 ;; 24643 darwin*) 24644 PCI=no 24645 INT10MODULE=no 24646 VGAHW=no 24647 VBE=no 24648 DRM=no 24649 DRI2=no 24650 DRI3=no 24651 24652 if test x$XQUARTZ = xauto; then 24653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xquartz" >&5 24654$as_echo_n "checking whether to build Xquartz... " >&6; } 24655if ${xorg_cv_Carbon_framework+:} false; then : 24656 $as_echo_n "(cached) " >&6 24657else 24658 24659 save_LDFLAGS=$LDFLAGS 24660 LDFLAGS="$LDFLAGS -framework Carbon" 24661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24662/* end confdefs.h. */ 24663char FSFindFolder(); int main() { FSFindFolder(); return 0;} 24664_ACEOF 24665if ac_fn_c_try_link "$LINENO"; then : 24666 xorg_cv_Carbon_framework=yes 24667else 24668 xorg_cv_Carbon_framework=no 24669fi 24670rm -f core conftest.err conftest.$ac_objext \ 24671 conftest$ac_exeext conftest.$ac_ext 24672 LDFLAGS=$save_LDFLAGS 24673fi 24674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_Carbon_framework" >&5 24675$as_echo "$xorg_cv_Carbon_framework" >&6; } 24676 24677 if test "X$xorg_cv_Carbon_framework" = Xyes; then 24678 XQUARTZ=yes 24679 else 24680 XQUARTZ=no 24681 fi 24682 fi 24683 24684 ac_fn_c_check_func "$LINENO" "dispatch_async" "ac_cv_func_dispatch_async" 24685if test "x$ac_cv_func_dispatch_async" = xyes; then : 24686 24687$as_echo "#define HAVE_LIBDISPATCH 1" >>confdefs.h 24688 24689fi 24690 24691 24692 if test "x$XQUARTZ" = xyes ; then 24693 XQUARTZ=yes 24694 XVFB=no 24695 XNEST=no 24696 XWAYLAND=no 24697 24698 COMPOSITE=no 24699 DGA=no 24700 DPMSExtension=no 24701 XF86VIDMODE=no 24702 fi 24703 ;; 24704 gnu*) 24705 DRM=no 24706 DRI2=no 24707 DRI3=no 24708 ;; 24709 *) XQUARTZ=no ;; 24710esac 24711 24712XEXT_INC='-I$(top_srcdir)/Xext' 24713XEXT_LIB='$(top_builddir)/Xext/libXext.la' 24714 24715VIDEOPROTO="videoproto" 24716COMPOSITEPROTO="compositeproto >= 0.4" 24717RECORDPROTO="recordproto >= 1.13.99.1" 24718SCRNSAVERPROTO="scrnsaverproto >= 1.1" 24719RESOURCEPROTO="resourceproto >= 1.2.0" 24720DRIPROTO="xf86driproto >= 2.1.0" 24721DRI2PROTO="dri2proto >= 2.8" 24722DRI3PROTO="dri3proto >= 1.2" 24723XINERAMAPROTO="xineramaproto" 24724BIGFONTPROTO="xf86bigfontproto >= 1.2.0" 24725DGAPROTO="xf86dgaproto >= 2.0.99.1" 24726GLPROTO="glproto >= 1.4.17" 24727DMXPROTO="dmxproto >= 2.2.99.1" 24728VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1" 24729WINDOWSWMPROTO="windowswmproto" 24730APPLEWMPROTO="applewmproto >= 1.4" 24731LIBXSHMFENCE="xshmfence >= 1.1" 24732 24733XPROTO="xproto >= 7.0.31" 24734RANDRPROTO="randrproto >= 1.6.0" 24735RENDERPROTO="renderproto >= 0.11" 24736XEXTPROTO="xextproto >= 7.2.99.901" 24737INPUTPROTO="inputproto >= 2.3" 24738KBPROTO="kbproto >= 1.0.3" 24739FONTSPROTO="fontsproto >= 2.1.3" 24740FIXESPROTO="fixesproto >= 5.0" 24741DAMAGEPROTO="damageproto >= 1.1" 24742XCMISCPROTO="xcmiscproto >= 1.2.0" 24743BIGREQSPROTO="bigreqsproto >= 1.1.0" 24744XTRANS="xtrans >= 1.3.5" 24745PRESENTPROTO="presentproto >= 1.1" 24746 24747LIBAPPLEWM="applewm >= 1.4" 24748LIBDMX="dmx >= 1.0.99.1" 24749LIBDRI="dri >= 7.8.0" 24750LIBDRM="libdrm >= 2.4.89" 24751LIBEGL="egl" 24752LIBGBM="gbm >= 10.2.0" 24753LIBGL="gl >= 7.1.0" 24754LIBXEXT="xext >= 1.0.99.4" 24755LIBXFONT="xfont2 >= 2.0.0" 24756LIBXI="xi >= 1.2.99.1" 24757LIBXTST="xtst >= 1.0.99.2" 24758LIBPCIACCESS="pciaccess >= 0.12.901" 24759LIBUDEV="libudev >= 143" 24760LIBSELINUX="libselinux >= 2.0.86" 24761LIBDBUS="dbus-1 >= 1.0" 24762LIBPIXMAN="pixman-1 >= 0.27.2" 24763 24764 24765pkg_failed=no 24766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5 24767$as_echo_n "checking for PIXMAN... " >&6; } 24768 24769if test -n "$PIXMAN_CFLAGS"; then 24770 pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS" 24771 elif test -n "$PKG_CONFIG"; then 24772 if test -n "$PKG_CONFIG" && \ 24773 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5 24774 ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5 24775 ac_status=$? 24776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24777 test $ac_status = 0; }; then 24778 pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$LIBPIXMAN" 2>/dev/null` 24779 test "x$?" != "x0" && pkg_failed=yes 24780else 24781 pkg_failed=yes 24782fi 24783 else 24784 pkg_failed=untried 24785fi 24786if test -n "$PIXMAN_LIBS"; then 24787 pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS" 24788 elif test -n "$PKG_CONFIG"; then 24789 if test -n "$PKG_CONFIG" && \ 24790 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5 24791 ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5 24792 ac_status=$? 24793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24794 test $ac_status = 0; }; then 24795 pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$LIBPIXMAN" 2>/dev/null` 24796 test "x$?" != "x0" && pkg_failed=yes 24797else 24798 pkg_failed=yes 24799fi 24800 else 24801 pkg_failed=untried 24802fi 24803 24804 24805 24806if test $pkg_failed = yes; then 24807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24808$as_echo "no" >&6; } 24809 24810if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24811 _pkg_short_errors_supported=yes 24812else 24813 _pkg_short_errors_supported=no 24814fi 24815 if test $_pkg_short_errors_supported = yes; then 24816 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPIXMAN" 2>&1` 24817 else 24818 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPIXMAN" 2>&1` 24819 fi 24820 # Put the nasty error message in config.log where it belongs 24821 echo "$PIXMAN_PKG_ERRORS" >&5 24822 24823 as_fn_error $? "Package requirements ($LIBPIXMAN) were not met: 24824 24825$PIXMAN_PKG_ERRORS 24826 24827Consider adjusting the PKG_CONFIG_PATH environment variable if you 24828installed software in a non-standard prefix. 24829 24830Alternatively, you may set the environment variables PIXMAN_CFLAGS 24831and PIXMAN_LIBS to avoid the need to call pkg-config. 24832See the pkg-config man page for more details." "$LINENO" 5 24833elif test $pkg_failed = untried; then 24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24835$as_echo "no" >&6; } 24836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24838as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 24839is in your PATH or set the PKG_CONFIG environment variable to the full 24840path to pkg-config. 24841 24842Alternatively, you may set the environment variables PIXMAN_CFLAGS 24843and PIXMAN_LIBS to avoid the need to call pkg-config. 24844See the pkg-config man page for more details. 24845 24846To get pkg-config, see <http://pkg-config.freedesktop.org/>. 24847See \`config.log' for more details" "$LINENO" 5; } 24848else 24849 PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS 24850 PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS 24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24852$as_echo "yes" >&6; } 24853 24854fi 24855REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau" 24856 24857SDK_REQUIRED_MODULES="$XPROTO $RANDRPROTO $RENDERPROTO $XEXTPROTO $INPUTPROTO $KBPROTO $FONTSPROTO $LIBPIXMAN" 24858# Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc 24859 24860 24861ac_fn_c_check_decl "$LINENO" "PTHREAD_MUTEX_RECURSIVE" "ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" "#include <pthread.h> 24862" 24863if test "x$ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" = xyes; then : 24864 HAVE_RECURSIVE_MUTEX=yes 24865else 24866 HAVE_RECURSIVE_MUTEX=no 24867fi 24868 24869 24870THREAD_DEFAULT=no 24871 24872if test "x$HAVE_RECURSIVE_MUTEX" = "xyes" ; then 24873 THREAD_DEFAULT=yes 24874fi 24875 24876# Check whether --enable-input-thread was given. 24877if test "${enable_input_thread+set}" = set; then : 24878 enableval=$enable_input_thread; INPUTTHREAD=$enableval 24879else 24880 INPUTTHREAD=$THREAD_DEFAULT 24881fi 24882 24883 24884if test "x$INPUTTHREAD" = "xyes" ; then 24885 24886 24887ac_ext=c 24888ac_cpp='$CPP $CPPFLAGS' 24889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24891ac_compiler_gnu=$ac_cv_c_compiler_gnu 24892 24893ax_pthread_ok=no 24894 24895# We used to check for pthread.h first, but this fails if pthread.h 24896# requires special compiler flags (e.g. on True64 or Sequent). 24897# It gets checked for in the link test anyway. 24898 24899# First of all, check if the user has set any of the PTHREAD_LIBS, 24900# etcetera environment variables, and if threads linking works using 24901# them: 24902if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 24903 save_CFLAGS="$CFLAGS" 24904 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 24905 save_LIBS="$LIBS" 24906 LIBS="$PTHREAD_LIBS $LIBS" 24907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 24908$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 24909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24910/* end confdefs.h. */ 24911 24912/* Override any GCC internal prototype to avoid an error. 24913 Use char because int might match the return type of a GCC 24914 builtin and then its argument prototype would still apply. */ 24915#ifdef __cplusplus 24916extern "C" 24917#endif 24918char pthread_join (); 24919int 24920main () 24921{ 24922return pthread_join (); 24923 ; 24924 return 0; 24925} 24926_ACEOF 24927if ac_fn_c_try_link "$LINENO"; then : 24928 ax_pthread_ok=yes 24929fi 24930rm -f core conftest.err conftest.$ac_objext \ 24931 conftest$ac_exeext conftest.$ac_ext 24932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 24933$as_echo "$ax_pthread_ok" >&6; } 24934 if test x"$ax_pthread_ok" = xno; then 24935 PTHREAD_LIBS="" 24936 PTHREAD_CFLAGS="" 24937 fi 24938 LIBS="$save_LIBS" 24939 CFLAGS="$save_CFLAGS" 24940fi 24941 24942# We must check for the threads library under a number of different 24943# names; the ordering is very important because some systems 24944# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 24945# libraries is broken (non-POSIX). 24946 24947# Create a list of thread flags to try. Items starting with a "-" are 24948# C compiler flags, and other items are library names, except for "none" 24949# which indicates that we try without any flags at all, and "pthread-config" 24950# which is a program returning the flags for the Pth emulation library. 24951 24952ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 24953 24954# The ordering *is* (sometimes) important. Some notes on the 24955# individual items follow: 24956 24957# pthreads: AIX (must check this before -lpthread) 24958# none: in case threads are in libc; should be tried before -Kthread and 24959# other compiler flags to prevent continual compiler warnings 24960# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 24961# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 24962# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 24963# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 24964# -pthreads: Solaris/gcc 24965# -mthreads: Mingw32/gcc, Lynx/gcc 24966# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 24967# doesn't hurt to check since this sometimes defines pthreads too; 24968# also defines -D_REENTRANT) 24969# ... -mt is also the pthreads flag for HP/aCC 24970# pthread: Linux, etcetera 24971# --thread-safe: KAI C++ 24972# pthread-config: use pthread-config program (for GNU Pth library) 24973 24974case ${host_os} in 24975 solaris*) 24976 24977 # On Solaris (at least, for some versions), libc contains stubbed 24978 # (non-functional) versions of the pthreads routines, so link-based 24979 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 24980 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 24981 # a function called by this macro, so we could check for that, but 24982 # who knows whether they'll stub that too in a future libc.) So, 24983 # we'll just look for -pthreads and -lpthread first: 24984 24985 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 24986 ;; 24987 24988 darwin*) 24989 ax_pthread_flags="-pthread $ax_pthread_flags" 24990 ;; 24991 netbsd*) 24992 # use libc stubs, don't link against libpthread, to allow 24993 # dynamic loading 24994 ax_pthread_flags="" 24995 ;; 24996esac 24997 24998# Clang doesn't consider unrecognized options an error unless we specify 24999# -Werror. We throw in some extra Clang-specific options to ensure that 25000# this doesn't happen for GCC, which also accepts -Werror. 25001 25002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 25003$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 25004save_CFLAGS="$CFLAGS" 25005ax_pthread_extra_flags="-Werror" 25006CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 25007cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25008/* end confdefs.h. */ 25009int foo(void); 25010int 25011main () 25012{ 25013foo() 25014 ; 25015 return 0; 25016} 25017_ACEOF 25018if ac_fn_c_try_compile "$LINENO"; then : 25019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25020$as_echo "yes" >&6; } 25021else 25022 ax_pthread_extra_flags= 25023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25024$as_echo "no" >&6; } 25025fi 25026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25027CFLAGS="$save_CFLAGS" 25028 25029if test x"$ax_pthread_ok" = xno; then 25030for flag in $ax_pthread_flags; do 25031 25032 case $flag in 25033 none) 25034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 25035$as_echo_n "checking whether pthreads work without any flags... " >&6; } 25036 ;; 25037 25038 -*) 25039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 25040$as_echo_n "checking whether pthreads work with $flag... " >&6; } 25041 PTHREAD_CFLAGS="$flag" 25042 ;; 25043 25044 pthread-config) 25045 # Extract the first word of "pthread-config", so it can be a program name with args. 25046set dummy pthread-config; ac_word=$2 25047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25048$as_echo_n "checking for $ac_word... " >&6; } 25049if ${ac_cv_prog_ax_pthread_config+:} false; then : 25050 $as_echo_n "(cached) " >&6 25051else 25052 if test -n "$ax_pthread_config"; then 25053 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 25054else 25055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25056for as_dir in $PATH 25057do 25058 IFS=$as_save_IFS 25059 test -z "$as_dir" && as_dir=. 25060 for ac_exec_ext in '' $ac_executable_extensions; do 25061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25062 ac_cv_prog_ax_pthread_config="yes" 25063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25064 break 2 25065 fi 25066done 25067 done 25068IFS=$as_save_IFS 25069 25070 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 25071fi 25072fi 25073ax_pthread_config=$ac_cv_prog_ax_pthread_config 25074if test -n "$ax_pthread_config"; then 25075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 25076$as_echo "$ax_pthread_config" >&6; } 25077else 25078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25079$as_echo "no" >&6; } 25080fi 25081 25082 25083 if test x"$ax_pthread_config" = xno; then continue; fi 25084 PTHREAD_CFLAGS="`pthread-config --cflags`" 25085 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 25086 ;; 25087 25088 *) 25089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 25090$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 25091 PTHREAD_LIBS="-l$flag" 25092 ;; 25093 esac 25094 25095 save_LIBS="$LIBS" 25096 save_CFLAGS="$CFLAGS" 25097 LIBS="$PTHREAD_LIBS $LIBS" 25098 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 25099 25100 # Check for various functions. We must include pthread.h, 25101 # since some functions may be macros. (On the Sequent, we 25102 # need a special flag -Kthread to make this header compile.) 25103 # We check for pthread_join because it is in -lpthread on IRIX 25104 # while pthread_create is in libc. We check for pthread_attr_init 25105 # due to DEC craziness with -lpthreads. We check for 25106 # pthread_cleanup_push because it is one of the few pthread 25107 # functions on Solaris that doesn't have a non-functional libc stub. 25108 # We try pthread_create on general principles. 25109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25110/* end confdefs.h. */ 25111#include <pthread.h> 25112 static void routine(void *a) { a = 0; } 25113 static void *start_routine(void *a) { return a; } 25114int 25115main () 25116{ 25117pthread_t th; pthread_attr_t attr; 25118 pthread_create(&th, 0, start_routine, 0); 25119 pthread_join(th, 0); 25120 pthread_attr_init(&attr); 25121 pthread_cleanup_push(routine, 0); 25122 pthread_cleanup_pop(0) /* ; */ 25123 ; 25124 return 0; 25125} 25126_ACEOF 25127if ac_fn_c_try_link "$LINENO"; then : 25128 ax_pthread_ok=yes 25129fi 25130rm -f core conftest.err conftest.$ac_objext \ 25131 conftest$ac_exeext conftest.$ac_ext 25132 25133 LIBS="$save_LIBS" 25134 CFLAGS="$save_CFLAGS" 25135 25136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 25137$as_echo "$ax_pthread_ok" >&6; } 25138 if test "x$ax_pthread_ok" = xyes; then 25139 break; 25140 fi 25141 25142 PTHREAD_LIBS="" 25143 PTHREAD_CFLAGS="" 25144done 25145fi 25146 25147# Various other checks: 25148if test "x$ax_pthread_ok" = xyes; then 25149 save_LIBS="$LIBS" 25150 LIBS="$PTHREAD_LIBS $LIBS" 25151 save_CFLAGS="$CFLAGS" 25152 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 25153 25154 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 25155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 25156$as_echo_n "checking for joinable pthread attribute... " >&6; } 25157 attr_name=unknown 25158 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 25159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25160/* end confdefs.h. */ 25161#include <pthread.h> 25162int 25163main () 25164{ 25165int attr = $attr; return attr /* ; */ 25166 ; 25167 return 0; 25168} 25169_ACEOF 25170if ac_fn_c_try_link "$LINENO"; then : 25171 attr_name=$attr; break 25172fi 25173rm -f core conftest.err conftest.$ac_objext \ 25174 conftest$ac_exeext conftest.$ac_ext 25175 done 25176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 25177$as_echo "$attr_name" >&6; } 25178 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 25179 25180cat >>confdefs.h <<_ACEOF 25181#define PTHREAD_CREATE_JOINABLE $attr_name 25182_ACEOF 25183 25184 fi 25185 25186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 25187$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 25188 flag=no 25189 case ${host_os} in 25190 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 25191 osf* | hpux*) flag="-D_REENTRANT";; 25192 solaris*) 25193 if test "$GCC" = "yes"; then 25194 flag="-D_REENTRANT" 25195 else 25196 # TODO: What about Clang on Solaris? 25197 flag="-mt -D_REENTRANT" 25198 fi 25199 ;; 25200 esac 25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 25202$as_echo "$flag" >&6; } 25203 if test "x$flag" != xno; then 25204 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 25205 fi 25206 25207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 25208$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 25209if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 25210 $as_echo_n "(cached) " >&6 25211else 25212 25213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25214/* end confdefs.h. */ 25215#include <pthread.h> 25216int 25217main () 25218{ 25219int i = PTHREAD_PRIO_INHERIT; 25220 ; 25221 return 0; 25222} 25223_ACEOF 25224if ac_fn_c_try_link "$LINENO"; then : 25225 ax_cv_PTHREAD_PRIO_INHERIT=yes 25226else 25227 ax_cv_PTHREAD_PRIO_INHERIT=no 25228fi 25229rm -f core conftest.err conftest.$ac_objext \ 25230 conftest$ac_exeext conftest.$ac_ext 25231 25232fi 25233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 25234$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 25235 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 25236 25237$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 25238 25239fi 25240 25241 LIBS="$save_LIBS" 25242 CFLAGS="$save_CFLAGS" 25243 25244 # More AIX lossage: compile with *_r variant 25245 if test "x$GCC" != xyes; then 25246 case $host_os in 25247 aix*) 25248 case "x/$CC" in #( 25249 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 25250 #handle absolute path differently from PATH based program lookup 25251 case "x$CC" in #( 25252 x/*) : 25253 if as_fn_executable_p ${CC}_r; then : 25254 PTHREAD_CC="${CC}_r" 25255fi ;; #( 25256 *) : 25257 for ac_prog in ${CC}_r 25258do 25259 # Extract the first word of "$ac_prog", so it can be a program name with args. 25260set dummy $ac_prog; ac_word=$2 25261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25262$as_echo_n "checking for $ac_word... " >&6; } 25263if ${ac_cv_prog_PTHREAD_CC+:} false; then : 25264 $as_echo_n "(cached) " >&6 25265else 25266 if test -n "$PTHREAD_CC"; then 25267 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 25268else 25269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25270for as_dir in $PATH 25271do 25272 IFS=$as_save_IFS 25273 test -z "$as_dir" && as_dir=. 25274 for ac_exec_ext in '' $ac_executable_extensions; do 25275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25276 ac_cv_prog_PTHREAD_CC="$ac_prog" 25277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25278 break 2 25279 fi 25280done 25281 done 25282IFS=$as_save_IFS 25283 25284fi 25285fi 25286PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 25287if test -n "$PTHREAD_CC"; then 25288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 25289$as_echo "$PTHREAD_CC" >&6; } 25290else 25291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25292$as_echo "no" >&6; } 25293fi 25294 25295 25296 test -n "$PTHREAD_CC" && break 25297done 25298test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 25299 ;; 25300esac ;; #( 25301 *) : 25302 ;; 25303esac 25304 ;; 25305 esac 25306 fi 25307fi 25308 25309test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 25310 25311 25312 25313 25314 25315# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 25316if test x"$ax_pthread_ok" = xyes; then 25317 25318$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 25319 25320 : 25321else 25322 ax_pthread_ok=no 25323 as_fn_error $? "threaded input requested but no pthread support has been found" "$LINENO" 5 25324fi 25325ac_ext=c 25326ac_cpp='$CPP $CPPFLAGS' 25327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25329ac_compiler_gnu=$ac_cv_c_compiler_gnu 25330 25331 25332 SYS_LIBS="$SYS_LIBS $PTHREAD_LIBS" 25333 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 25334 25335$as_echo "#define INPUTTHREAD 1" >>confdefs.h 25336 25337 25338 save_LIBS="$LIBS" 25339 LIBS="$LIBS $SYS_LIBS" 25340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(const char*)" >&5 25341$as_echo_n "checking for pthread_setname_np(const char*)... " >&6; } 25342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25343/* end confdefs.h. */ 25344#include <pthread.h> 25345int 25346main () 25347{ 25348pthread_setname_np("example") 25349 ; 25350 return 0; 25351} 25352_ACEOF 25353if ac_fn_c_try_link "$LINENO"; then : 25354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25355$as_echo "yes" >&6; } 25356 25357$as_echo "#define HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID 1" >>confdefs.h 25358 25359else 25360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25361$as_echo "no" >&6; } 25362fi 25363rm -f core conftest.err conftest.$ac_objext \ 25364 conftest$ac_exeext conftest.$ac_ext 25365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(pthread_t, const char*)" >&5 25366$as_echo_n "checking for pthread_setname_np(pthread_t, const char*)... " >&6; } 25367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25368/* end confdefs.h. */ 25369#include <pthread.h> 25370int 25371main () 25372{ 25373pthread_setname_np(pthread_self(), "example") 25374 ; 25375 return 0; 25376} 25377_ACEOF 25378if ac_fn_c_try_link "$LINENO"; then : 25379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25380$as_echo "yes" >&6; } 25381 25382$as_echo "#define HAVE_PTHREAD_SETNAME_NP_WITH_TID 1" >>confdefs.h 25383 25384else 25385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25386$as_echo "no" >&6; } 25387fi 25388rm -f core conftest.err conftest.$ac_objext \ 25389 conftest$ac_exeext conftest.$ac_ext 25390 LIBS="$save_LIBS" 25391fi 25392 25393REQUIRED_MODULES="$FIXESPROTO $DAMAGEPROTO $XCMISCPROTO $XTRANS $BIGREQSPROTO $SDK_REQUIRED_MODULES" 25394 25395LIBSYSTEMD="libsystemd >= 209" 25396 25397# Check whether --with-systemd-daemon was given. 25398if test "${with_systemd_daemon+set}" = set; then : 25399 withval=$with_systemd_daemon; WITH_SYSTEMD_DAEMON=$withval 25400else 25401 WITH_SYSTEMD_DAEMON=auto 25402fi 25403 25404if test "x$WITH_SYSTEMD_DAEMON" = "xyes" -o "x$WITH_SYSTEMD_DAEMON" = "xauto" ; then 25405 25406pkg_failed=no 25407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 25408$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; } 25409 25410if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 25411 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 25412 elif test -n "$PKG_CONFIG"; then 25413 if test -n "$PKG_CONFIG" && \ 25414 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5 25415 ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5 25416 ac_status=$? 25417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25418 test $ac_status = 0; }; then 25419 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "$LIBSYSTEMD" 2>/dev/null` 25420 test "x$?" != "x0" && pkg_failed=yes 25421else 25422 pkg_failed=yes 25423fi 25424 else 25425 pkg_failed=untried 25426fi 25427if test -n "$SYSTEMD_DAEMON_LIBS"; then 25428 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 25429 elif test -n "$PKG_CONFIG"; then 25430 if test -n "$PKG_CONFIG" && \ 25431 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5 25432 ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5 25433 ac_status=$? 25434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25435 test $ac_status = 0; }; then 25436 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "$LIBSYSTEMD" 2>/dev/null` 25437 test "x$?" != "x0" && pkg_failed=yes 25438else 25439 pkg_failed=yes 25440fi 25441 else 25442 pkg_failed=untried 25443fi 25444 25445 25446 25447if test $pkg_failed = yes; then 25448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25449$as_echo "no" >&6; } 25450 25451if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25452 _pkg_short_errors_supported=yes 25453else 25454 _pkg_short_errors_supported=no 25455fi 25456 if test $_pkg_short_errors_supported = yes; then 25457 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1` 25458 else 25459 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1` 25460 fi 25461 # Put the nasty error message in config.log where it belongs 25462 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 25463 25464 25465pkg_failed=no 25466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 25467$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; } 25468 25469if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 25470 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 25471 elif test -n "$PKG_CONFIG"; then 25472 if test -n "$PKG_CONFIG" && \ 25473 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 25474 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 25475 ac_status=$? 25476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25477 test $ac_status = 0; }; then 25478 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 25479 test "x$?" != "x0" && pkg_failed=yes 25480else 25481 pkg_failed=yes 25482fi 25483 else 25484 pkg_failed=untried 25485fi 25486if test -n "$SYSTEMD_DAEMON_LIBS"; then 25487 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 25488 elif test -n "$PKG_CONFIG"; then 25489 if test -n "$PKG_CONFIG" && \ 25490 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 25491 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 25492 ac_status=$? 25493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25494 test $ac_status = 0; }; then 25495 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 25496 test "x$?" != "x0" && pkg_failed=yes 25497else 25498 pkg_failed=yes 25499fi 25500 else 25501 pkg_failed=untried 25502fi 25503 25504 25505 25506if test $pkg_failed = yes; then 25507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25508$as_echo "no" >&6; } 25509 25510if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25511 _pkg_short_errors_supported=yes 25512else 25513 _pkg_short_errors_supported=no 25514fi 25515 if test $_pkg_short_errors_supported = yes; then 25516 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 25517 else 25518 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 25519 fi 25520 # Put the nasty error message in config.log where it belongs 25521 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 25522 25523 HAVE_SYSTEMD_DAEMON=no 25524elif test $pkg_failed = untried; then 25525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25526$as_echo "no" >&6; } 25527 HAVE_SYSTEMD_DAEMON=no 25528else 25529 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 25530 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 25531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25532$as_echo "yes" >&6; } 25533 HAVE_SYSTEMD_DAEMON=yes; 25534 LIBSYSTEMD_DAEMON=libsystemd-daemon 25535fi 25536elif test $pkg_failed = untried; then 25537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25538$as_echo "no" >&6; } 25539 25540pkg_failed=no 25541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 25542$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; } 25543 25544if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 25545 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 25546 elif test -n "$PKG_CONFIG"; then 25547 if test -n "$PKG_CONFIG" && \ 25548 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 25549 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 25550 ac_status=$? 25551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25552 test $ac_status = 0; }; then 25553 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 25554 test "x$?" != "x0" && pkg_failed=yes 25555else 25556 pkg_failed=yes 25557fi 25558 else 25559 pkg_failed=untried 25560fi 25561if test -n "$SYSTEMD_DAEMON_LIBS"; then 25562 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 25563 elif test -n "$PKG_CONFIG"; then 25564 if test -n "$PKG_CONFIG" && \ 25565 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 25566 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 25567 ac_status=$? 25568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25569 test $ac_status = 0; }; then 25570 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 25571 test "x$?" != "x0" && pkg_failed=yes 25572else 25573 pkg_failed=yes 25574fi 25575 else 25576 pkg_failed=untried 25577fi 25578 25579 25580 25581if test $pkg_failed = yes; then 25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25583$as_echo "no" >&6; } 25584 25585if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25586 _pkg_short_errors_supported=yes 25587else 25588 _pkg_short_errors_supported=no 25589fi 25590 if test $_pkg_short_errors_supported = yes; then 25591 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 25592 else 25593 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 25594 fi 25595 # Put the nasty error message in config.log where it belongs 25596 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 25597 25598 HAVE_SYSTEMD_DAEMON=no 25599elif test $pkg_failed = untried; then 25600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25601$as_echo "no" >&6; } 25602 HAVE_SYSTEMD_DAEMON=no 25603else 25604 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 25605 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 25606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25607$as_echo "yes" >&6; } 25608 HAVE_SYSTEMD_DAEMON=yes; 25609 LIBSYSTEMD_DAEMON=libsystemd-daemon 25610fi 25611else 25612 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 25613 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 25614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25615$as_echo "yes" >&6; } 25616 HAVE_SYSTEMD_DAEMON=yes; 25617 LIBSYSTEMD_DAEMON="$LIBSYSTEMD" 25618fi 25619 if test "x$HAVE_SYSTEMD_DAEMON" = xyes; then 25620 25621$as_echo "#define HAVE_SYSTEMD_DAEMON 1" >>confdefs.h 25622 25623 REQUIRED_LIBS="$REQUIRED_LIBS $LIBSYSTEMD_DAEMON" 25624 elif test "x$WITH_SYSTEMD_DAEMON" = xyes; then 25625 as_fn_error $? "systemd support requested but no library has been found" "$LINENO" 5 25626 fi 25627fi 25628 if test "x$HAVE_SYSTEMD_DAEMON" = "xyes"; then 25629 HAVE_SYSTEMD_DAEMON_TRUE= 25630 HAVE_SYSTEMD_DAEMON_FALSE='#' 25631else 25632 HAVE_SYSTEMD_DAEMON_TRUE='#' 25633 HAVE_SYSTEMD_DAEMON_FALSE= 25634fi 25635 25636 25637if test "x$CONFIG_UDEV" = xyes && test "x$CONFIG_HAL" = xyes; then 25638 as_fn_error $? "Hotplugging through both libudev and hal not allowed" "$LINENO" 5 25639fi 25640 25641 25642pkg_failed=no 25643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 25644$as_echo_n "checking for UDEV... " >&6; } 25645 25646if test -n "$UDEV_CFLAGS"; then 25647 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" 25648 elif test -n "$PKG_CONFIG"; then 25649 if test -n "$PKG_CONFIG" && \ 25650 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5 25651 ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5 25652 ac_status=$? 25653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25654 test $ac_status = 0; }; then 25655 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "$LIBUDEV" 2>/dev/null` 25656 test "x$?" != "x0" && pkg_failed=yes 25657else 25658 pkg_failed=yes 25659fi 25660 else 25661 pkg_failed=untried 25662fi 25663if test -n "$UDEV_LIBS"; then 25664 pkg_cv_UDEV_LIBS="$UDEV_LIBS" 25665 elif test -n "$PKG_CONFIG"; then 25666 if test -n "$PKG_CONFIG" && \ 25667 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5 25668 ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5 25669 ac_status=$? 25670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25671 test $ac_status = 0; }; then 25672 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "$LIBUDEV" 2>/dev/null` 25673 test "x$?" != "x0" && pkg_failed=yes 25674else 25675 pkg_failed=yes 25676fi 25677 else 25678 pkg_failed=untried 25679fi 25680 25681 25682 25683if test $pkg_failed = yes; then 25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25685$as_echo "no" >&6; } 25686 25687if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25688 _pkg_short_errors_supported=yes 25689else 25690 _pkg_short_errors_supported=no 25691fi 25692 if test $_pkg_short_errors_supported = yes; then 25693 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBUDEV" 2>&1` 25694 else 25695 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBUDEV" 2>&1` 25696 fi 25697 # Put the nasty error message in config.log where it belongs 25698 echo "$UDEV_PKG_ERRORS" >&5 25699 25700 HAVE_LIBUDEV=no 25701elif test $pkg_failed = untried; then 25702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25703$as_echo "no" >&6; } 25704 HAVE_LIBUDEV=no 25705else 25706 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS 25707 UDEV_LIBS=$pkg_cv_UDEV_LIBS 25708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25709$as_echo "yes" >&6; } 25710 HAVE_LIBUDEV=yes 25711fi 25712if test "x$CONFIG_UDEV" = xauto; then 25713 CONFIG_UDEV="$HAVE_LIBUDEV" 25714 25715$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h 25716 25717fi 25718 if test "x$CONFIG_UDEV" = xyes; then 25719 CONFIG_UDEV_TRUE= 25720 CONFIG_UDEV_FALSE='#' 25721else 25722 CONFIG_UDEV_TRUE='#' 25723 CONFIG_UDEV_FALSE= 25724fi 25725 25726if test "x$CONFIG_UDEV" = xyes; then 25727 CONFIG_HAL=no 25728 if test "x$CONFIG_UDEV_KMS" = xauto; then 25729 CONFIG_UDEV_KMS="$HAVE_LIBUDEV" 25730 fi 25731 if ! test "x$HAVE_LIBUDEV" = xyes; then 25732 as_fn_error $? "udev configuration API requested, but libudev is not installed" "$LINENO" 5 25733 fi 25734 25735$as_echo "#define CONFIG_UDEV 1" >>confdefs.h 25736 25737 if test "x$CONFIG_UDEV_KMS" = xyes; then 25738 25739$as_echo "#define CONFIG_UDEV_KMS 1" >>confdefs.h 25740 25741 fi 25742 SAVE_LIBS=$LIBS 25743 SAVE_CFLAGS=$CFLAGS 25744 CFLAGS="$CFLAGS $UDEV_CFLAGS" 25745 LIBS=$UDEV_LIBS 25746 for ac_func in udev_monitor_filter_add_match_tag 25747do : 25748 ac_fn_c_check_func "$LINENO" "udev_monitor_filter_add_match_tag" "ac_cv_func_udev_monitor_filter_add_match_tag" 25749if test "x$ac_cv_func_udev_monitor_filter_add_match_tag" = xyes; then : 25750 cat >>confdefs.h <<_ACEOF 25751#define HAVE_UDEV_MONITOR_FILTER_ADD_MATCH_TAG 1 25752_ACEOF 25753 25754fi 25755done 25756 25757 for ac_func in udev_enumerate_add_match_tag 25758do : 25759 ac_fn_c_check_func "$LINENO" "udev_enumerate_add_match_tag" "ac_cv_func_udev_enumerate_add_match_tag" 25760if test "x$ac_cv_func_udev_enumerate_add_match_tag" = xyes; then : 25761 cat >>confdefs.h <<_ACEOF 25762#define HAVE_UDEV_ENUMERATE_ADD_MATCH_TAG 1 25763_ACEOF 25764 25765fi 25766done 25767 25768 LIBS=$SAVE_LIBS 25769 CFLAGS=$SAVE_CFLAGS 25770fi 25771 if test "x$CONFIG_UDEV_KMS" = xyes; then 25772 CONFIG_UDEV_KMS_TRUE= 25773 CONFIG_UDEV_KMS_FALSE='#' 25774else 25775 CONFIG_UDEV_KMS_TRUE='#' 25776 CONFIG_UDEV_KMS_FALSE= 25777fi 25778 25779 25780 25781pkg_failed=no 25782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5 25783$as_echo_n "checking for DBUS... " >&6; } 25784 25785if test -n "$DBUS_CFLAGS"; then 25786 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS" 25787 elif test -n "$PKG_CONFIG"; then 25788 if test -n "$PKG_CONFIG" && \ 25789 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5 25790 ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5 25791 ac_status=$? 25792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25793 test $ac_status = 0; }; then 25794 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$LIBDBUS" 2>/dev/null` 25795 test "x$?" != "x0" && pkg_failed=yes 25796else 25797 pkg_failed=yes 25798fi 25799 else 25800 pkg_failed=untried 25801fi 25802if test -n "$DBUS_LIBS"; then 25803 pkg_cv_DBUS_LIBS="$DBUS_LIBS" 25804 elif test -n "$PKG_CONFIG"; then 25805 if test -n "$PKG_CONFIG" && \ 25806 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5 25807 ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5 25808 ac_status=$? 25809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25810 test $ac_status = 0; }; then 25811 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$LIBDBUS" 2>/dev/null` 25812 test "x$?" != "x0" && pkg_failed=yes 25813else 25814 pkg_failed=yes 25815fi 25816 else 25817 pkg_failed=untried 25818fi 25819 25820 25821 25822if test $pkg_failed = yes; then 25823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25824$as_echo "no" >&6; } 25825 25826if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25827 _pkg_short_errors_supported=yes 25828else 25829 _pkg_short_errors_supported=no 25830fi 25831 if test $_pkg_short_errors_supported = yes; then 25832 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDBUS" 2>&1` 25833 else 25834 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDBUS" 2>&1` 25835 fi 25836 # Put the nasty error message in config.log where it belongs 25837 echo "$DBUS_PKG_ERRORS" >&5 25838 25839 HAVE_DBUS=no 25840elif test $pkg_failed = untried; then 25841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25842$as_echo "no" >&6; } 25843 HAVE_DBUS=no 25844else 25845 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS 25846 DBUS_LIBS=$pkg_cv_DBUS_LIBS 25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25848$as_echo "yes" >&6; } 25849 HAVE_DBUS=yes 25850fi 25851if test "x$HAVE_DBUS" = xyes; then 25852 25853$as_echo "#define HAVE_DBUS 1" >>confdefs.h 25854 25855fi 25856 if test "x$HAVE_DBUS" = xyes; then 25857 HAVE_DBUS_TRUE= 25858 HAVE_DBUS_FALSE='#' 25859else 25860 HAVE_DBUS_TRUE='#' 25861 HAVE_DBUS_FALSE= 25862fi 25863 25864 25865 25866pkg_failed=no 25867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HAL" >&5 25868$as_echo_n "checking for HAL... " >&6; } 25869 25870if test -n "$HAL_CFLAGS"; then 25871 pkg_cv_HAL_CFLAGS="$HAL_CFLAGS" 25872 elif test -n "$PKG_CONFIG"; then 25873 if test -n "$PKG_CONFIG" && \ 25874 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5 25875 ($PKG_CONFIG --exists --print-errors "hal") 2>&5 25876 ac_status=$? 25877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25878 test $ac_status = 0; }; then 25879 pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null` 25880 test "x$?" != "x0" && pkg_failed=yes 25881else 25882 pkg_failed=yes 25883fi 25884 else 25885 pkg_failed=untried 25886fi 25887if test -n "$HAL_LIBS"; then 25888 pkg_cv_HAL_LIBS="$HAL_LIBS" 25889 elif test -n "$PKG_CONFIG"; then 25890 if test -n "$PKG_CONFIG" && \ 25891 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5 25892 ($PKG_CONFIG --exists --print-errors "hal") 2>&5 25893 ac_status=$? 25894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25895 test $ac_status = 0; }; then 25896 pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null` 25897 test "x$?" != "x0" && pkg_failed=yes 25898else 25899 pkg_failed=yes 25900fi 25901 else 25902 pkg_failed=untried 25903fi 25904 25905 25906 25907if test $pkg_failed = yes; then 25908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25909$as_echo "no" >&6; } 25910 25911if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25912 _pkg_short_errors_supported=yes 25913else 25914 _pkg_short_errors_supported=no 25915fi 25916 if test $_pkg_short_errors_supported = yes; then 25917 HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hal" 2>&1` 25918 else 25919 HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hal" 2>&1` 25920 fi 25921 # Put the nasty error message in config.log where it belongs 25922 echo "$HAL_PKG_ERRORS" >&5 25923 25924 HAVE_HAL=no 25925elif test $pkg_failed = untried; then 25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25927$as_echo "no" >&6; } 25928 HAVE_HAL=no 25929else 25930 HAL_CFLAGS=$pkg_cv_HAL_CFLAGS 25931 HAL_LIBS=$pkg_cv_HAL_LIBS 25932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25933$as_echo "yes" >&6; } 25934 HAVE_HAL=yes 25935fi 25936if test "x$CONFIG_HAL" = xauto; then 25937 CONFIG_HAL="$HAVE_HAL" 25938fi 25939if test "x$CONFIG_HAL" = xyes; then 25940 if ! test "x$HAVE_HAL" = xyes; then 25941 as_fn_error $? "HAL hotplug API requested, but HAL is not installed." "$LINENO" 5 25942 fi 25943 25944 25945$as_echo "#define CONFIG_HAL 1" >>confdefs.h 25946 25947 NEED_DBUS="yes" 25948fi 25949 if test "x$CONFIG_HAL" = xyes; then 25950 CONFIG_HAL_TRUE= 25951 CONFIG_HAL_FALSE='#' 25952else 25953 CONFIG_HAL_TRUE='#' 25954 CONFIG_HAL_FALSE= 25955fi 25956 25957 25958if test "x$SYSTEMD_LOGIND" = xauto; then 25959 if test "x$HAVE_DBUS" = xyes -a "x$CONFIG_UDEV" = xyes ; then 25960 SYSTEMD_LOGIND=yes 25961 else 25962 SYSTEMD_LOGIND=no 25963 fi 25964fi 25965if test "x$SYSTEMD_LOGIND" = xyes; then 25966 if ! test "x$HAVE_DBUS" = xyes; then 25967 as_fn_error $? "systemd-logind requested, but D-Bus is not installed." "$LINENO" 5 25968 fi 25969 if ! test "x$CONFIG_UDEV" = xyes ; then 25970 as_fn_error $? "systemd-logind is only supported in combination with udev configuration." "$LINENO" 5 25971 fi 25972 25973 25974$as_echo "#define SYSTEMD_LOGIND 1" >>confdefs.h 25975 25976 NEED_DBUS="yes" 25977fi 25978 if test "x$SYSTEMD_LOGIND" = xyes; then 25979 SYSTEMD_LOGIND_TRUE= 25980 SYSTEMD_LOGIND_FALSE='#' 25981else 25982 SYSTEMD_LOGIND_TRUE='#' 25983 SYSTEMD_LOGIND_FALSE= 25984fi 25985 25986 25987if test "x$SUID_WRAPPER" = xyes; then 25988 25989 prefix_NONE= 25990 exec_prefix_NONE= 25991 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 25992 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 25993 eval ac_define_dir="\"$libexecdir\"" 25994 eval ac_define_dir="\"$ac_define_dir\"" 25995 SUID_WRAPPER_DIR="$ac_define_dir" 25996 25997 25998cat >>confdefs.h <<_ACEOF 25999#define SUID_WRAPPER_DIR "$ac_define_dir" 26000_ACEOF 26001 26002 test "$prefix_NONE" && prefix=NONE 26003 test "$exec_prefix_NONE" && exec_prefix=NONE 26004 26005 SETUID="no" 26006fi 26007 if test "x$SUID_WRAPPER" = xyes; then 26008 SUID_WRAPPER_TRUE= 26009 SUID_WRAPPER_FALSE='#' 26010else 26011 SUID_WRAPPER_TRUE='#' 26012 SUID_WRAPPER_FALSE= 26013fi 26014 26015 26016if test "x$NEED_DBUS" = xyes; then 26017 26018$as_echo "#define NEED_DBUS 1" >>confdefs.h 26019 26020fi 26021 if test "x$NEED_DBUS" = xyes; then 26022 NEED_DBUS_TRUE= 26023 NEED_DBUS_FALSE='#' 26024else 26025 NEED_DBUS_TRUE='#' 26026 NEED_DBUS_FALSE= 26027fi 26028 26029 26030if test "x$CONFIG_WSCONS" = xauto; then 26031 case $host_os in 26032 *openbsd*) 26033 CONFIG_WSCONS=yes; 26034 ;; 26035 *) 26036 CONFIG_WSCONS=no; 26037 ;; 26038 esac 26039fi 26040 if test "x$CONFIG_WSCONS" = xyes; then 26041 CONFIG_WSCONS_TRUE= 26042 CONFIG_WSCONS_FALSE='#' 26043else 26044 CONFIG_WSCONS_TRUE='#' 26045 CONFIG_WSCONS_FALSE= 26046fi 26047 26048if test "x$CONFIG_WSCONS" = xyes; then 26049 26050$as_echo "#define CONFIG_WSCONS 1" >>confdefs.h 26051 26052fi 26053 26054 26055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc..." >&5 26056$as_echo_n "checking for glibc...... " >&6; } 26057cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26058/* end confdefs.h. */ 26059 26060#include <features.h> 26061#ifndef __GLIBC__ 26062#error 26063#endif 26064 26065_ACEOF 26066if ac_fn_c_try_cpp "$LINENO"; then : 26067 glibc=yes 26068else 26069 glibc=no 26070fi 26071rm -f conftest.err conftest.i conftest.$ac_ext 26072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc" >&5 26073$as_echo "$glibc" >&6; } 26074 26075for ac_func in clock_gettime 26076do : 26077 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 26078if test "x$ac_cv_func_clock_gettime" = xyes; then : 26079 cat >>confdefs.h <<_ACEOF 26080#define HAVE_CLOCK_GETTIME 1 26081_ACEOF 26082 have_clock_gettime=yes 26083else 26084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 26085$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 26086if ${ac_cv_lib_rt_clock_gettime+:} false; then : 26087 $as_echo_n "(cached) " >&6 26088else 26089 ac_check_lib_save_LIBS=$LIBS 26090LIBS="-lrt $LIBS" 26091cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26092/* end confdefs.h. */ 26093 26094/* Override any GCC internal prototype to avoid an error. 26095 Use char because int might match the return type of a GCC 26096 builtin and then its argument prototype would still apply. */ 26097#ifdef __cplusplus 26098extern "C" 26099#endif 26100char clock_gettime (); 26101int 26102main () 26103{ 26104return clock_gettime (); 26105 ; 26106 return 0; 26107} 26108_ACEOF 26109if ac_fn_c_try_link "$LINENO"; then : 26110 ac_cv_lib_rt_clock_gettime=yes 26111else 26112 ac_cv_lib_rt_clock_gettime=no 26113fi 26114rm -f core conftest.err conftest.$ac_objext \ 26115 conftest$ac_exeext conftest.$ac_ext 26116LIBS=$ac_check_lib_save_LIBS 26117fi 26118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 26119$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 26120if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 26121 have_clock_gettime=-lrt 26122else 26123 have_clock_gettime=no 26124fi 26125 26126fi 26127done 26128 26129 26130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a useful monotonic clock ..." >&5 26131$as_echo_n "checking for a useful monotonic clock ...... " >&6; } 26132 26133if ! test "x$have_clock_gettime" = xno; then 26134 if ! test "x$have_clock_gettime" = xyes; then 26135 CLOCK_LIBS="$have_clock_gettime" 26136 else 26137 CLOCK_LIBS="" 26138 fi 26139 26140 LIBS_SAVE="$LIBS" 26141 LIBS="$CLOCK_LIBS" 26142 CPPFLAGS_SAVE="$CPPFLAGS" 26143 26144 if test x"$glibc" = xyes; then 26145 CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L" 26146 fi 26147 26148 if test "$cross_compiling" = yes; then : 26149 MONOTONIC_CLOCK="cross compiling" 26150else 26151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26152/* end confdefs.h. */ 26153 26154#include <time.h> 26155 26156int main(int argc, char *argv[]) { 26157 struct timespec tp; 26158 26159 if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0) 26160 return 0; 26161 else 26162 return 1; 26163} 26164 26165_ACEOF 26166if ac_fn_c_try_run "$LINENO"; then : 26167 MONOTONIC_CLOCK=yes 26168else 26169 MONOTONIC_CLOCK=no 26170fi 26171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26172 conftest.$ac_objext conftest.beam conftest.$ac_ext 26173fi 26174 26175 26176 if test "$MONOTONIC_CLOCK" = "cross compiling"; then 26177 ac_fn_c_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#include <time.h> 26178" 26179if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes; then : 26180 MONOTONIC_CLOCK="guessing yes" 26181else 26182 MONOTONIC_CLOCK=no 26183fi 26184 26185 fi 26186 26187 LIBS="$LIBS_SAVE" 26188 CPPFLAGS="$CPPFLAGS_SAVE" 26189else 26190 MONOTONIC_CLOCK=no 26191fi 26192 26193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MONOTONIC_CLOCK" >&5 26194$as_echo "$MONOTONIC_CLOCK" >&6; } 26195if test "$MONOTONIC_CLOCK" = "guessing yes"; then 26196 MONOTONIC_CLOCK=yes 26197fi 26198 26199if test "x$MONOTONIC_CLOCK" = xyes; then 26200 26201$as_echo "#define MONOTONIC_CLOCK 1" >>confdefs.h 26202 26203 LIBS="$LIBS $CLOCK_LIBS" 26204fi 26205 26206 if test "x$XV" = xyes; then 26207 XV_TRUE= 26208 XV_FALSE='#' 26209else 26210 XV_TRUE='#' 26211 XV_FALSE= 26212fi 26213 26214if test "x$XV" = xyes; then 26215 26216$as_echo "#define XV 1" >>confdefs.h 26217 26218 26219$as_echo "#define XvExtension 1" >>confdefs.h 26220 26221 REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO" 26222 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $VIDEOPROTO" 26223else 26224 XVMC=no 26225fi 26226 26227 if test "x$XVMC" = xyes; then 26228 XVMC_TRUE= 26229 XVMC_FALSE='#' 26230else 26231 XVMC_TRUE='#' 26232 XVMC_FALSE= 26233fi 26234 26235if test "x$XVMC" = xyes; then 26236 26237$as_echo "#define XvMCExtension 1" >>confdefs.h 26238 26239fi 26240 26241 if test "x$COMPOSITE" = xyes; then 26242 COMPOSITE_TRUE= 26243 COMPOSITE_FALSE='#' 26244else 26245 COMPOSITE_TRUE='#' 26246 COMPOSITE_FALSE= 26247fi 26248 26249if test "x$COMPOSITE" = xyes; then 26250 26251$as_echo "#define COMPOSITE 1" >>confdefs.h 26252 26253 REQUIRED_MODULES="$REQUIRED_MODULES $COMPOSITEPROTO" 26254 COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la' 26255 COMPOSITE_INC='-I$(top_srcdir)/composite' 26256fi 26257 26258if test "x$MITSHM" = xauto; then 26259 MITSHM="$ac_cv_sysv_ipc" 26260fi 26261 if test "x$MITSHM" = xyes; then 26262 MITSHM_TRUE= 26263 MITSHM_FALSE='#' 26264else 26265 MITSHM_TRUE='#' 26266 MITSHM_FALSE= 26267fi 26268 26269if test "x$MITSHM" = xyes; then 26270 26271$as_echo "#define MITSHM 1" >>confdefs.h 26272 26273 26274$as_echo "#define HAS_SHM 1" >>confdefs.h 26275 26276fi 26277 26278 if test "x$RECORD" = xyes; then 26279 RECORD_TRUE= 26280 RECORD_FALSE='#' 26281else 26282 RECORD_TRUE='#' 26283 RECORD_FALSE= 26284fi 26285 26286if test "x$RECORD" = xyes; then 26287 26288$as_echo "#define XRECORD 1" >>confdefs.h 26289 26290 REQUIRED_MODULES="$REQUIRED_MODULES $RECORDPROTO" 26291 RECORD_LIB='$(top_builddir)/record/librecord.la' 26292fi 26293 26294 if test "x$SCREENSAVER" = xyes; then 26295 SCREENSAVER_TRUE= 26296 SCREENSAVER_FALSE='#' 26297else 26298 SCREENSAVER_TRUE='#' 26299 SCREENSAVER_FALSE= 26300fi 26301 26302if test "x$SCREENSAVER" = xyes; then 26303 26304$as_echo "#define SCREENSAVER 1" >>confdefs.h 26305 26306 REQUIRED_MODULES="$REQUIRED_MODULES $SCRNSAVERPROTO" 26307 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $SCRNSAVERPROTO" 26308fi 26309 26310 if test "x$RES" = xyes; then 26311 RES_TRUE= 26312 RES_FALSE='#' 26313else 26314 RES_TRUE='#' 26315 RES_FALSE= 26316fi 26317 26318if test "x$RES" = xyes; then 26319 26320$as_echo "#define RES 1" >>confdefs.h 26321 26322 REQUIRED_MODULES="$REQUIRED_MODULES $RESOURCEPROTO" 26323 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $RESOURCEPROTO" 26324fi 26325 26326if test "x$LISTEN_TCP" = xyes; then 26327 26328$as_echo "#define LISTEN_TCP 1" >>confdefs.h 26329 26330fi 26331if test "x$LISTEN_UNIX" = xyes; then 26332 26333$as_echo "#define LISTEN_UNIX 1" >>confdefs.h 26334 26335fi 26336if test "x$LISTEN_LOCAL" = xyes; then 26337 26338$as_echo "#define LISTEN_LOCAL 1" >>confdefs.h 26339 26340fi 26341 26342# The XRes extension may support client ID tracking only if it has 26343# been specifically enabled. Client ID tracking is implicitly not 26344# supported if XRes extension is disabled. 26345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to track client ids" >&5 26346$as_echo_n "checking whether to track client ids... " >&6; } 26347if test "x$RES" = xyes && test "x$CLIENTIDS" = xyes; then 26348 26349$as_echo "#define CLIENTIDS 1" >>confdefs.h 26350 26351else 26352 CLIENTIDS=no 26353fi 26354if test "x$CLIENTIDS" = xyes; then 26355 case $host_os in 26356 openbsd*) 26357 SYS_LIBS="$SYS_LIBS -lkvm" 26358 ;; 26359 esac 26360fi 26361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLIENTIDS" >&5 26362$as_echo "$CLIENTIDS" >&6; } 26363 if test "x$CLIENTIDS" = xyes; then 26364 CLIENTIDS_TRUE= 26365 CLIENTIDS_FALSE='#' 26366else 26367 CLIENTIDS_TRUE='#' 26368 CLIENTIDS_FALSE= 26369fi 26370 26371 26372 if test "x$DRI" = xyes; then 26373 DRI_TRUE= 26374 DRI_FALSE='#' 26375else 26376 DRI_TRUE='#' 26377 DRI_FALSE= 26378fi 26379 26380if test "x$DRI" = xyes; then 26381 26382$as_echo "#define XF86DRI 1" >>confdefs.h 26383 26384 REQUIRED_MODULES="$REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI" 26385 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI" 26386fi 26387 26388 26389pkg_failed=no 26390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2PROTO" >&5 26391$as_echo_n "checking for DRI2PROTO... " >&6; } 26392 26393if test -n "$DRI2PROTO_CFLAGS"; then 26394 pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS" 26395 elif test -n "$PKG_CONFIG"; then 26396 if test -n "$PKG_CONFIG" && \ 26397 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5 26398 ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5 26399 ac_status=$? 26400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26401 test $ac_status = 0; }; then 26402 pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI2PROTO" 2>/dev/null` 26403 test "x$?" != "x0" && pkg_failed=yes 26404else 26405 pkg_failed=yes 26406fi 26407 else 26408 pkg_failed=untried 26409fi 26410if test -n "$DRI2PROTO_LIBS"; then 26411 pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS" 26412 elif test -n "$PKG_CONFIG"; then 26413 if test -n "$PKG_CONFIG" && \ 26414 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5 26415 ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5 26416 ac_status=$? 26417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26418 test $ac_status = 0; }; then 26419 pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "$DRI2PROTO" 2>/dev/null` 26420 test "x$?" != "x0" && pkg_failed=yes 26421else 26422 pkg_failed=yes 26423fi 26424 else 26425 pkg_failed=untried 26426fi 26427 26428 26429 26430if test $pkg_failed = yes; then 26431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26432$as_echo "no" >&6; } 26433 26434if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26435 _pkg_short_errors_supported=yes 26436else 26437 _pkg_short_errors_supported=no 26438fi 26439 if test $_pkg_short_errors_supported = yes; then 26440 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI2PROTO" 2>&1` 26441 else 26442 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI2PROTO" 2>&1` 26443 fi 26444 # Put the nasty error message in config.log where it belongs 26445 echo "$DRI2PROTO_PKG_ERRORS" >&5 26446 26447 HAVE_DRI2PROTO=no 26448elif test $pkg_failed = untried; then 26449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26450$as_echo "no" >&6; } 26451 HAVE_DRI2PROTO=no 26452else 26453 DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS 26454 DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS 26455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26456$as_echo "yes" >&6; } 26457 HAVE_DRI2PROTO=yes 26458fi 26459case "$DRI2,$HAVE_DRI2PROTO" in 26460 yes,no) 26461 as_fn_error $? "DRI2 requested, but dri2proto not found." "$LINENO" 5 26462 ;; 26463 yes,yes | auto,yes) 26464 26465$as_echo "#define DRI2 1" >>confdefs.h 26466 26467 DRI2=yes 26468 LIBGL="gl >= 9.2.0" 26469 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI2PROTO" 26470 ;; 26471esac 26472 if test "x$DRI2" = xyes; then 26473 DRI2_TRUE= 26474 DRI2_FALSE='#' 26475else 26476 DRI2_TRUE='#' 26477 DRI2_FALSE= 26478fi 26479 26480 26481 26482 26483# Check whether --with-shared-memory-dir was given. 26484if test "${with_shared_memory_dir+set}" = set; then : 26485 withval=$with_shared_memory_dir; 26486else 26487 with_shared_memory_dir=yes 26488fi 26489 26490 26491shmdirs="/run/shm /var/tmp /tmp" 26492 26493case x"$with_shared_memory_dir" in 26494xyes) 26495 for dir in $shmdirs; do 26496 case x"$with_shared_memory_dir" in 26497 xyes) 26498 echo Checking temp dir "$dir" 26499 if test -d "$dir"; then 26500 with_shared_memory_dir="$dir" 26501 fi 26502 ;; 26503 esac 26504 done 26505 ;; 26506x/*) 26507 ;; 26508xno) 26509 ;; 26510*) 26511 as_fn_error $? "Invalid directory specified for --with-shared-memory-dir: $with_shared_memory_dir" "$LINENO" 5 26512 ;; 26513esac 26514 26515case x"$with_shared_memory_dir" in 26516xyes) 26517 as_fn_error $? "No directory found for shared memory temp files." "$LINENO" 5 26518 ;; 26519xno) 26520 ;; 26521*) 26522 26523cat >>confdefs.h <<_ACEOF 26524#define SHMDIR "$with_shared_memory_dir" 26525_ACEOF 26526 26527 ;; 26528esac 26529 26530# Check whether --enable-xtrans-send-fds was given. 26531if test "${enable_xtrans_send_fds+set}" = set; then : 26532 enableval=$enable_xtrans_send_fds; XTRANS_SEND_FDS=$enableval 26533else 26534 XTRANS_SEND_FDS=auto 26535fi 26536 26537 26538case "x$XTRANS_SEND_FDS" in 26539xauto) 26540 case "$host_os" in 26541 linux*|solaris*|freebsd*|dragonfly*|openbsd*) 26542 XTRANS_SEND_FDS=yes 26543 ;; 26544 *) 26545 XTRANS_SEND_FDS=no 26546 ;; 26547 esac 26548esac 26549 26550case "x$XTRANS_SEND_FDS" in 26551xyes) 26552 26553$as_echo "#define XTRANS_SEND_FDS 1" >>confdefs.h 26554 26555 ;; 26556esac 26557 26558case "$DRI3,$XTRANS_SEND_FDS" in 26559 yes,yes | auto,yes) 26560 ;; 26561 yes,no) 26562 as_fn_error $? "DRI3 requested, but xtrans fd passing support not found." "$LINENO" 5 26563 DRI3=no 26564 ;; 26565 no,*) 26566 ;; 26567 *) 26568 { $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xtrans fd passing support not found." >&5 26569$as_echo "$as_me: DRI3 disabled because xtrans fd passing support not found." >&6;} 26570 DRI3=no 26571 ;; 26572esac 26573 26574 26575pkg_failed=no 26576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI3PROTO" >&5 26577$as_echo_n "checking for DRI3PROTO... " >&6; } 26578 26579if test -n "$DRI3PROTO_CFLAGS"; then 26580 pkg_cv_DRI3PROTO_CFLAGS="$DRI3PROTO_CFLAGS" 26581 elif test -n "$PKG_CONFIG"; then 26582 if test -n "$PKG_CONFIG" && \ 26583 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5 26584 ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5 26585 ac_status=$? 26586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26587 test $ac_status = 0; }; then 26588 pkg_cv_DRI3PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI3PROTO" 2>/dev/null` 26589 test "x$?" != "x0" && pkg_failed=yes 26590else 26591 pkg_failed=yes 26592fi 26593 else 26594 pkg_failed=untried 26595fi 26596if test -n "$DRI3PROTO_LIBS"; then 26597 pkg_cv_DRI3PROTO_LIBS="$DRI3PROTO_LIBS" 26598 elif test -n "$PKG_CONFIG"; then 26599 if test -n "$PKG_CONFIG" && \ 26600 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5 26601 ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5 26602 ac_status=$? 26603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26604 test $ac_status = 0; }; then 26605 pkg_cv_DRI3PROTO_LIBS=`$PKG_CONFIG --libs "$DRI3PROTO" 2>/dev/null` 26606 test "x$?" != "x0" && pkg_failed=yes 26607else 26608 pkg_failed=yes 26609fi 26610 else 26611 pkg_failed=untried 26612fi 26613 26614 26615 26616if test $pkg_failed = yes; then 26617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26618$as_echo "no" >&6; } 26619 26620if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26621 _pkg_short_errors_supported=yes 26622else 26623 _pkg_short_errors_supported=no 26624fi 26625 if test $_pkg_short_errors_supported = yes; then 26626 DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI3PROTO" 2>&1` 26627 else 26628 DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI3PROTO" 2>&1` 26629 fi 26630 # Put the nasty error message in config.log where it belongs 26631 echo "$DRI3PROTO_PKG_ERRORS" >&5 26632 26633 HAVE_DRI3PROTO=no 26634elif test $pkg_failed = untried; then 26635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26636$as_echo "no" >&6; } 26637 HAVE_DRI3PROTO=no 26638else 26639 DRI3PROTO_CFLAGS=$pkg_cv_DRI3PROTO_CFLAGS 26640 DRI3PROTO_LIBS=$pkg_cv_DRI3PROTO_LIBS 26641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26642$as_echo "yes" >&6; } 26643 HAVE_DRI3PROTO=yes 26644fi 26645 26646case "$DRI3,$HAVE_DRI3PROTO" in 26647 yes,yes | auto,yes) 26648 REQUIRED_MODULES="$REQUIRED_MODULES dri3proto" 26649 ;; 26650 yes,no) 26651 as_fn_error $? "DRI3 requested, but dri3proto not found." "$LINENO" 5 26652 DRI3=no 26653 ;; 26654 no,*) 26655 ;; 26656 *) 26657 { $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because dri3proto not found." >&5 26658$as_echo "$as_me: DRI3 disabled because dri3proto not found." >&6;} 26659 DRI3=no 26660 ;; 26661esac 26662 26663for ac_func in sigaction 26664do : 26665 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 26666if test "x$ac_cv_func_sigaction" = xyes; then : 26667 cat >>confdefs.h <<_ACEOF 26668#define HAVE_SIGACTION 1 26669_ACEOF 26670 26671fi 26672done 26673 26674 26675BUSFAULT=no 26676 26677case x"$ac_cv_func_sigaction" in 26678 xyes) 26679 26680$as_echo "#define HAVE_SIGACTION 1" >>confdefs.h 26681 26682 BUSFAULT=yes 26683 ;; 26684esac 26685 26686case x"$BUSFAULT" in 26687 xyes) 26688 26689$as_echo "#define BUSFAULT 1" >>confdefs.h 26690 26691 ;; 26692esac 26693 26694 if test x"$BUSFAULT" = xyes; then 26695 BUSFAULT_TRUE= 26696 BUSFAULT_FALSE='#' 26697else 26698 BUSFAULT_TRUE='#' 26699 BUSFAULT_FALSE= 26700fi 26701 26702 26703 26704 26705pkg_failed=no 26706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSHMFENCE" >&5 26707$as_echo_n "checking for XSHMFENCE... " >&6; } 26708 26709if test -n "$XSHMFENCE_CFLAGS"; then 26710 pkg_cv_XSHMFENCE_CFLAGS="$XSHMFENCE_CFLAGS" 26711 elif test -n "$PKG_CONFIG"; then 26712 if test -n "$PKG_CONFIG" && \ 26713 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5 26714 ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5 26715 ac_status=$? 26716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26717 test $ac_status = 0; }; then 26718 pkg_cv_XSHMFENCE_CFLAGS=`$PKG_CONFIG --cflags "$LIBXSHMFENCE" 2>/dev/null` 26719 test "x$?" != "x0" && pkg_failed=yes 26720else 26721 pkg_failed=yes 26722fi 26723 else 26724 pkg_failed=untried 26725fi 26726if test -n "$XSHMFENCE_LIBS"; then 26727 pkg_cv_XSHMFENCE_LIBS="$XSHMFENCE_LIBS" 26728 elif test -n "$PKG_CONFIG"; then 26729 if test -n "$PKG_CONFIG" && \ 26730 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5 26731 ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5 26732 ac_status=$? 26733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26734 test $ac_status = 0; }; then 26735 pkg_cv_XSHMFENCE_LIBS=`$PKG_CONFIG --libs "$LIBXSHMFENCE" 2>/dev/null` 26736 test "x$?" != "x0" && pkg_failed=yes 26737else 26738 pkg_failed=yes 26739fi 26740 else 26741 pkg_failed=untried 26742fi 26743 26744 26745 26746if test $pkg_failed = yes; then 26747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26748$as_echo "no" >&6; } 26749 26750if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26751 _pkg_short_errors_supported=yes 26752else 26753 _pkg_short_errors_supported=no 26754fi 26755 if test $_pkg_short_errors_supported = yes; then 26756 XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1` 26757 else 26758 XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1` 26759 fi 26760 # Put the nasty error message in config.log where it belongs 26761 echo "$XSHMFENCE_PKG_ERRORS" >&5 26762 26763 HAVE_XSHMFENCE=no 26764elif test $pkg_failed = untried; then 26765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26766$as_echo "no" >&6; } 26767 HAVE_XSHMFENCE=no 26768else 26769 XSHMFENCE_CFLAGS=$pkg_cv_XSHMFENCE_CFLAGS 26770 XSHMFENCE_LIBS=$pkg_cv_XSHMFENCE_LIBS 26771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26772$as_echo "yes" >&6; } 26773 HAVE_XSHMFENCE=yes 26774fi 26775if test "x$XSHMFENCE" = "xauto"; then 26776 XSHMFENCE="$HAVE_XSHMFENCE" 26777fi 26778 26779if test "x$XSHMFENCE" = "xyes"; then 26780 if test "x$HAVE_XSHMFENCE" != "xyes"; then 26781 as_fn_error $? "xshmfence requested but not installed." "$LINENO" 5 26782 fi 26783 26784$as_echo "#define HAVE_XSHMFENCE 1" >>confdefs.h 26785 26786 REQUIRED_LIBS="$REQUIRED_LIBS $LIBXSHMFENCE" 26787fi 26788 26789 if test "x$XSHMFENCE" = xyes; then 26790 XSHMFENCE_TRUE= 26791 XSHMFENCE_FALSE='#' 26792else 26793 XSHMFENCE_TRUE='#' 26794 XSHMFENCE_FALSE= 26795fi 26796 26797 26798case "$DRI3,$XSHMFENCE" in 26799 yes,yes | auto,yes) 26800 ;; 26801 yes,no) 26802 as_fn_error $? "DRI3 requested, but xshmfence not found." "$LINENO" 5 26803 DRI3=no 26804 ;; 26805 no,*) 26806 ;; 26807 *) 26808 { $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xshmfence not found." >&5 26809$as_echo "$as_me: DRI3 disabled because xshmfence not found." >&6;} 26810 DRI3=no 26811 ;; 26812esac 26813 26814case x"$DRI3" in 26815 xyes|xauto) 26816 DRI3=yes 26817 26818$as_echo "#define DRI3 1" >>confdefs.h 26819 26820 DRI3_LIB='$(top_builddir)/dri3/libdri3.la' 26821 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI3PROTO" 26822 { $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 enabled" >&5 26823$as_echo "$as_me: DRI3 enabled" >&6;}; 26824 ;; 26825esac 26826 26827 if test "x$DRI3" = xyes; then 26828 DRI3_TRUE= 26829 DRI3_FALSE='#' 26830else 26831 DRI3_TRUE='#' 26832 DRI3_FALSE= 26833fi 26834 26835 26836if test "x$DRI" = xyes || test "x$DRI2" = xyes || test "x$DRI3" = xyes || test "x$CONFIG_UDEV_KMS" = xyes; then 26837 if test "x$DRM" = xyes; then 26838 26839$as_echo "#define WITH_LIBDRM 1" >>confdefs.h 26840 26841 26842pkg_failed=no 26843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5 26844$as_echo_n "checking for LIBDRM... " >&6; } 26845 26846if test -n "$LIBDRM_CFLAGS"; then 26847 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" 26848 elif test -n "$PKG_CONFIG"; then 26849 if test -n "$PKG_CONFIG" && \ 26850 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5 26851 ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5 26852 ac_status=$? 26853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26854 test $ac_status = 0; }; then 26855 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "$LIBDRM" 2>/dev/null` 26856 test "x$?" != "x0" && pkg_failed=yes 26857else 26858 pkg_failed=yes 26859fi 26860 else 26861 pkg_failed=untried 26862fi 26863if test -n "$LIBDRM_LIBS"; then 26864 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" 26865 elif test -n "$PKG_CONFIG"; then 26866 if test -n "$PKG_CONFIG" && \ 26867 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5 26868 ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5 26869 ac_status=$? 26870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26871 test $ac_status = 0; }; then 26872 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "$LIBDRM" 2>/dev/null` 26873 test "x$?" != "x0" && pkg_failed=yes 26874else 26875 pkg_failed=yes 26876fi 26877 else 26878 pkg_failed=untried 26879fi 26880 26881 26882 26883if test $pkg_failed = yes; then 26884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26885$as_echo "no" >&6; } 26886 26887if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26888 _pkg_short_errors_supported=yes 26889else 26890 _pkg_short_errors_supported=no 26891fi 26892 if test $_pkg_short_errors_supported = yes; then 26893 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDRM" 2>&1` 26894 else 26895 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDRM" 2>&1` 26896 fi 26897 # Put the nasty error message in config.log where it belongs 26898 echo "$LIBDRM_PKG_ERRORS" >&5 26899 26900 as_fn_error $? "Package requirements ($LIBDRM) were not met: 26901 26902$LIBDRM_PKG_ERRORS 26903 26904Consider adjusting the PKG_CONFIG_PATH environment variable if you 26905installed software in a non-standard prefix. 26906 26907Alternatively, you may set the environment variables LIBDRM_CFLAGS 26908and LIBDRM_LIBS to avoid the need to call pkg-config. 26909See the pkg-config man page for more details." "$LINENO" 5 26910elif test $pkg_failed = untried; then 26911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26912$as_echo "no" >&6; } 26913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26915as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 26916is in your PATH or set the PKG_CONFIG environment variable to the full 26917path to pkg-config. 26918 26919Alternatively, you may set the environment variables LIBDRM_CFLAGS 26920and LIBDRM_LIBS to avoid the need to call pkg-config. 26921See the pkg-config man page for more details. 26922 26923To get pkg-config, see <http://pkg-config.freedesktop.org/>. 26924See \`config.log' for more details" "$LINENO" 5; } 26925else 26926 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS 26927 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS 26928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26929$as_echo "yes" >&6; } 26930 26931fi 26932 fi 26933fi 26934 26935if test "x$GLX" = xyes; then 26936 26937pkg_failed=no 26938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5 26939$as_echo_n "checking for XLIB... " >&6; } 26940 26941if test -n "$XLIB_CFLAGS"; then 26942 pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS" 26943 elif test -n "$PKG_CONFIG"; then 26944 if test -n "$PKG_CONFIG" && \ 26945 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 26946 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 26947 ac_status=$? 26948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26949 test $ac_status = 0; }; then 26950 pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 26951 test "x$?" != "x0" && pkg_failed=yes 26952else 26953 pkg_failed=yes 26954fi 26955 else 26956 pkg_failed=untried 26957fi 26958if test -n "$XLIB_LIBS"; then 26959 pkg_cv_XLIB_LIBS="$XLIB_LIBS" 26960 elif test -n "$PKG_CONFIG"; then 26961 if test -n "$PKG_CONFIG" && \ 26962 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 26963 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 26964 ac_status=$? 26965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26966 test $ac_status = 0; }; then 26967 pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 26968 test "x$?" != "x0" && pkg_failed=yes 26969else 26970 pkg_failed=yes 26971fi 26972 else 26973 pkg_failed=untried 26974fi 26975 26976 26977 26978if test $pkg_failed = yes; then 26979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26980$as_echo "no" >&6; } 26981 26982if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26983 _pkg_short_errors_supported=yes 26984else 26985 _pkg_short_errors_supported=no 26986fi 26987 if test $_pkg_short_errors_supported = yes; then 26988 XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 26989 else 26990 XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 26991 fi 26992 # Put the nasty error message in config.log where it belongs 26993 echo "$XLIB_PKG_ERRORS" >&5 26994 26995 as_fn_error $? "Package requirements (x11) were not met: 26996 26997$XLIB_PKG_ERRORS 26998 26999Consider adjusting the PKG_CONFIG_PATH environment variable if you 27000installed software in a non-standard prefix. 27001 27002Alternatively, you may set the environment variables XLIB_CFLAGS 27003and XLIB_LIBS to avoid the need to call pkg-config. 27004See the pkg-config man page for more details." "$LINENO" 5 27005elif test $pkg_failed = untried; then 27006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27007$as_echo "no" >&6; } 27008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27010as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 27011is in your PATH or set the PKG_CONFIG environment variable to the full 27012path to pkg-config. 27013 27014Alternatively, you may set the environment variables XLIB_CFLAGS 27015and XLIB_LIBS to avoid the need to call pkg-config. 27016See the pkg-config man page for more details. 27017 27018To get pkg-config, see <http://pkg-config.freedesktop.org/>. 27019See \`config.log' for more details" "$LINENO" 5; } 27020else 27021 XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS 27022 XLIB_LIBS=$pkg_cv_XLIB_LIBS 27023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27024$as_echo "yes" >&6; } 27025 27026fi 27027 27028pkg_failed=no 27029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5 27030$as_echo_n "checking for GL... " >&6; } 27031 27032if test -n "$GL_CFLAGS"; then 27033 pkg_cv_GL_CFLAGS="$GL_CFLAGS" 27034 elif test -n "$PKG_CONFIG"; then 27035 if test -n "$PKG_CONFIG" && \ 27036 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5 27037 ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5 27038 ac_status=$? 27039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27040 test $ac_status = 0; }; then 27041 pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBGL" 2>/dev/null` 27042 test "x$?" != "x0" && pkg_failed=yes 27043else 27044 pkg_failed=yes 27045fi 27046 else 27047 pkg_failed=untried 27048fi 27049if test -n "$GL_LIBS"; then 27050 pkg_cv_GL_LIBS="$GL_LIBS" 27051 elif test -n "$PKG_CONFIG"; then 27052 if test -n "$PKG_CONFIG" && \ 27053 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5 27054 ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5 27055 ac_status=$? 27056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27057 test $ac_status = 0; }; then 27058 pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBGL" 2>/dev/null` 27059 test "x$?" != "x0" && pkg_failed=yes 27060else 27061 pkg_failed=yes 27062fi 27063 else 27064 pkg_failed=untried 27065fi 27066 27067 27068 27069if test $pkg_failed = yes; then 27070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27071$as_echo "no" >&6; } 27072 27073if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27074 _pkg_short_errors_supported=yes 27075else 27076 _pkg_short_errors_supported=no 27077fi 27078 if test $_pkg_short_errors_supported = yes; then 27079 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1` 27080 else 27081 GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1` 27082 fi 27083 # Put the nasty error message in config.log where it belongs 27084 echo "$GL_PKG_ERRORS" >&5 27085 27086 as_fn_error $? "Package requirements ($GLPROTO $LIBGL) were not met: 27087 27088$GL_PKG_ERRORS 27089 27090Consider adjusting the PKG_CONFIG_PATH environment variable if you 27091installed software in a non-standard prefix. 27092 27093Alternatively, you may set the environment variables GL_CFLAGS 27094and GL_LIBS to avoid the need to call pkg-config. 27095See the pkg-config man page for more details." "$LINENO" 5 27096elif test $pkg_failed = untried; then 27097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27098$as_echo "no" >&6; } 27099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27101as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 27102is in your PATH or set the PKG_CONFIG environment variable to the full 27103path to pkg-config. 27104 27105Alternatively, you may set the environment variables GL_CFLAGS 27106and GL_LIBS to avoid the need to call pkg-config. 27107See the pkg-config man page for more details. 27108 27109To get pkg-config, see <http://pkg-config.freedesktop.org/>. 27110See \`config.log' for more details" "$LINENO" 5; } 27111else 27112 GL_CFLAGS=$pkg_cv_GL_CFLAGS 27113 GL_LIBS=$pkg_cv_GL_LIBS 27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27115$as_echo "yes" >&6; } 27116 27117fi 27118 27119 27120$as_echo "#define GLXEXT 1" >>confdefs.h 27121 27122 GLX_LIBS='$(top_builddir)/glx/libglx.la $(top_builddir)/glx/libglxvnd.la' 27123 GLX_SYS_LIBS="$GLX_SYS_LIBS $GL_LIBS" 27124else 27125 GLX=no 27126fi 27127 if test "x$GLX" = xyes; then 27128 GLX_TRUE= 27129 GLX_FALSE='#' 27130else 27131 GLX_TRUE='#' 27132 GLX_FALSE= 27133fi 27134 27135 27136 27137 27138 27139 if test "x$PRESENT" = xyes; then 27140 PRESENT_TRUE= 27141 PRESENT_FALSE='#' 27142else 27143 PRESENT_TRUE='#' 27144 PRESENT_FALSE= 27145fi 27146 27147if test "x$PRESENT" = xyes; then 27148 27149$as_echo "#define PRESENT 1" >>confdefs.h 27150 27151 REQUIRED_MODULES="$REQUIRED_MODULES $PRESENTPROTO" 27152 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $PRESENTPROTO" 27153 PRESENT_INC='-I$(top_srcdir)/present' 27154 PRESENT_LIB='$(top_builddir)/present/libpresent.la' 27155fi 27156 27157 if test "x$XINERAMA" = xyes; then 27158 XINERAMA_TRUE= 27159 XINERAMA_FALSE='#' 27160else 27161 XINERAMA_TRUE='#' 27162 XINERAMA_FALSE= 27163fi 27164 27165if test "x$XINERAMA" = xyes; then 27166 27167$as_echo "#define XINERAMA 1" >>confdefs.h 27168 27169 27170$as_echo "#define PANORAMIX 1" >>confdefs.h 27171 27172 REQUIRED_MODULES="$REQUIRED_MODULES $XINERAMAPROTO" 27173 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO" 27174fi 27175 27176 if test "x$XACE" = xyes; then 27177 XACE_TRUE= 27178 XACE_FALSE='#' 27179else 27180 XACE_TRUE='#' 27181 XACE_FALSE= 27182fi 27183 27184if test "x$XACE" = xyes; then 27185 27186$as_echo "#define XACE 1" >>confdefs.h 27187 27188fi 27189 27190 if test "x$XSELINUX" = xyes; then 27191 XSELINUX_TRUE= 27192 XSELINUX_FALSE='#' 27193else 27194 XSELINUX_TRUE='#' 27195 XSELINUX_FALSE= 27196fi 27197 27198if test "x$XSELINUX" = xyes; then 27199 if test "x$XACE" != xyes; then 27200 as_fn_error $? "cannot build SELinux extension without X-ACE" "$LINENO" 5 27201 fi 27202 for ac_header in libaudit.h 27203do : 27204 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" 27205if test "x$ac_cv_header_libaudit_h" = xyes; then : 27206 cat >>confdefs.h <<_ACEOF 27207#define HAVE_LIBAUDIT_H 1 27208_ACEOF 27209 27210else 27211 as_fn_error $? "SELinux extension requires audit system headers" "$LINENO" 5 27212fi 27213 27214done 27215 27216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_open in -laudit" >&5 27217$as_echo_n "checking for audit_open in -laudit... " >&6; } 27218if ${ac_cv_lib_audit_audit_open+:} false; then : 27219 $as_echo_n "(cached) " >&6 27220else 27221 ac_check_lib_save_LIBS=$LIBS 27222LIBS="-laudit $LIBS" 27223cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27224/* end confdefs.h. */ 27225 27226/* Override any GCC internal prototype to avoid an error. 27227 Use char because int might match the return type of a GCC 27228 builtin and then its argument prototype would still apply. */ 27229#ifdef __cplusplus 27230extern "C" 27231#endif 27232char audit_open (); 27233int 27234main () 27235{ 27236return audit_open (); 27237 ; 27238 return 0; 27239} 27240_ACEOF 27241if ac_fn_c_try_link "$LINENO"; then : 27242 ac_cv_lib_audit_audit_open=yes 27243else 27244 ac_cv_lib_audit_audit_open=no 27245fi 27246rm -f core conftest.err conftest.$ac_objext \ 27247 conftest$ac_exeext conftest.$ac_ext 27248LIBS=$ac_check_lib_save_LIBS 27249fi 27250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_open" >&5 27251$as_echo "$ac_cv_lib_audit_audit_open" >&6; } 27252if test "x$ac_cv_lib_audit_audit_open" = xyes; then : 27253 cat >>confdefs.h <<_ACEOF 27254#define HAVE_LIBAUDIT 1 27255_ACEOF 27256 27257 LIBS="-laudit $LIBS" 27258 27259else 27260 as_fn_error $? "SELinux extension requires audit system library" "$LINENO" 5 27261fi 27262 27263 27264pkg_failed=no 27265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELINUX" >&5 27266$as_echo_n "checking for SELINUX... " >&6; } 27267 27268if test -n "$SELINUX_CFLAGS"; then 27269 pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS" 27270 elif test -n "$PKG_CONFIG"; then 27271 if test -n "$PKG_CONFIG" && \ 27272 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5 27273 ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5 27274 ac_status=$? 27275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27276 test $ac_status = 0; }; then 27277 pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "$LIBSELINUX" 2>/dev/null` 27278 test "x$?" != "x0" && pkg_failed=yes 27279else 27280 pkg_failed=yes 27281fi 27282 else 27283 pkg_failed=untried 27284fi 27285if test -n "$SELINUX_LIBS"; then 27286 pkg_cv_SELINUX_LIBS="$SELINUX_LIBS" 27287 elif test -n "$PKG_CONFIG"; then 27288 if test -n "$PKG_CONFIG" && \ 27289 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5 27290 ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5 27291 ac_status=$? 27292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27293 test $ac_status = 0; }; then 27294 pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "$LIBSELINUX" 2>/dev/null` 27295 test "x$?" != "x0" && pkg_failed=yes 27296else 27297 pkg_failed=yes 27298fi 27299 else 27300 pkg_failed=untried 27301fi 27302 27303 27304 27305if test $pkg_failed = yes; then 27306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27307$as_echo "no" >&6; } 27308 27309if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27310 _pkg_short_errors_supported=yes 27311else 27312 _pkg_short_errors_supported=no 27313fi 27314 if test $_pkg_short_errors_supported = yes; then 27315 SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSELINUX" 2>&1` 27316 else 27317 SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSELINUX" 2>&1` 27318 fi 27319 # Put the nasty error message in config.log where it belongs 27320 echo "$SELINUX_PKG_ERRORS" >&5 27321 27322 as_fn_error $? "Package requirements ($LIBSELINUX) were not met: 27323 27324$SELINUX_PKG_ERRORS 27325 27326Consider adjusting the PKG_CONFIG_PATH environment variable if you 27327installed software in a non-standard prefix. 27328 27329Alternatively, you may set the environment variables SELINUX_CFLAGS 27330and SELINUX_LIBS to avoid the need to call pkg-config. 27331See the pkg-config man page for more details." "$LINENO" 5 27332elif test $pkg_failed = untried; then 27333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27334$as_echo "no" >&6; } 27335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27337as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 27338is in your PATH or set the PKG_CONFIG environment variable to the full 27339path to pkg-config. 27340 27341Alternatively, you may set the environment variables SELINUX_CFLAGS 27342and SELINUX_LIBS to avoid the need to call pkg-config. 27343See the pkg-config man page for more details. 27344 27345To get pkg-config, see <http://pkg-config.freedesktop.org/>. 27346See \`config.log' for more details" "$LINENO" 5; } 27347else 27348 SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS 27349 SELINUX_LIBS=$pkg_cv_SELINUX_LIBS 27350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27351$as_echo "yes" >&6; } 27352 27353fi 27354 SELINUX_LIBS="$SELINUX_LIBS -laudit" 27355 27356$as_echo "#define XSELINUX 1" >>confdefs.h 27357 27358fi 27359 27360 if test "x$XCSECURITY" = xyes; then 27361 XCSECURITY_TRUE= 27362 XCSECURITY_FALSE='#' 27363else 27364 XCSECURITY_TRUE='#' 27365 XCSECURITY_FALSE= 27366fi 27367 27368if test "x$XCSECURITY" = xyes; then 27369 if test "x$XACE" != xyes; then 27370 as_fn_error $? "cannot build Security extension without X-ACE" "$LINENO" 5 27371 fi 27372 27373$as_echo "#define XCSECURITY 1" >>confdefs.h 27374 27375fi 27376 27377 if test "x$DBE" = xyes; then 27378 DBE_TRUE= 27379 DBE_FALSE='#' 27380else 27381 DBE_TRUE='#' 27382 DBE_FALSE= 27383fi 27384 27385if test "x$DBE" = xyes; then 27386 27387$as_echo "#define DBE 1" >>confdefs.h 27388 27389 DBE_LIB='$(top_builddir)/dbe/libdbe.la' 27390 DBE_INC='-I$(top_srcdir)/dbe' 27391fi 27392 27393 if test "x$XF86BIGFONT" = xyes; then 27394 XF86BIGFONT_TRUE= 27395 XF86BIGFONT_FALSE='#' 27396else 27397 XF86BIGFONT_TRUE='#' 27398 XF86BIGFONT_FALSE= 27399fi 27400 27401if test "x$XF86BIGFONT" = xyes; then 27402 27403$as_echo "#define XF86BIGFONT 1" >>confdefs.h 27404 27405 REQUIRED_MODULES="$REQUIRED_MODULES $BIGFONTPROTO" 27406 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $BIGFONTPROTO" 27407fi 27408 27409 if test "x$DPMSExtension" = xyes; then 27410 DPMSExtension_TRUE= 27411 DPMSExtension_FALSE='#' 27412else 27413 DPMSExtension_TRUE='#' 27414 DPMSExtension_FALSE= 27415fi 27416 27417if test "x$DPMSExtension" = xyes; then 27418 27419$as_echo "#define DPMSExtension 1" >>confdefs.h 27420 27421fi 27422 27423 27424$as_echo "#define RENDER 1" >>confdefs.h 27425 27426RENDER_LIB='$(top_builddir)/render/librender.la' 27427RENDER_INC='-I$(top_srcdir)/render' 27428 27429 27430$as_echo "#define RANDR 1" >>confdefs.h 27431 27432RANDR_LIB='$(top_builddir)/randr/librandr.la' 27433RANDR_INC='-I$(top_srcdir)/randr' 27434 27435 27436$as_echo "#define XFIXES 1" >>confdefs.h 27437 27438FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la' 27439FIXES_INC='-I$(top_srcdir)/xfixes' 27440 27441 27442$as_echo "#define DAMAGE 1" >>confdefs.h 27443 27444DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la' 27445DAMAGE_INC='-I$(top_srcdir)/damageext' 27446MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la' 27447MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage' 27448 27449# XINPUT extension is integral part of the server 27450 27451$as_echo "#define XINPUT 1" >>confdefs.h 27452 27453XI_LIB='$(top_builddir)/Xi/libXi.la' 27454XI_INC='-I$(top_srcdir)/Xi' 27455 27456 if test "x$XF86UTILS" = xyes; then 27457 XF86UTILS_TRUE= 27458 XF86UTILS_FALSE='#' 27459else 27460 XF86UTILS_TRUE='#' 27461 XF86UTILS_FALSE= 27462fi 27463 27464 if test "x$VGAHW" = xyes; then 27465 VGAHW_TRUE= 27466 VGAHW_FALSE='#' 27467else 27468 VGAHW_TRUE='#' 27469 VGAHW_FALSE= 27470fi 27471 27472 if test "x$VBE" = xyes; then 27473 VBE_TRUE= 27474 VBE_FALSE='#' 27475else 27476 VBE_TRUE='#' 27477 VBE_FALSE= 27478fi 27479 27480 if test "x$INT10MODULE" = xyes; then 27481 INT10MODULE_TRUE= 27482 INT10MODULE_FALSE='#' 27483else 27484 INT10MODULE_TRUE='#' 27485 INT10MODULE_FALSE= 27486fi 27487 27488 27489 27490$as_echo "#define SHAPE 1" >>confdefs.h 27491 27492 27493if test "x$XKBPATH" = "xauto"; then 27494 XKBPATH=$(pkg-config --variable datadir xkbcomp || echo ${datadir})/X11/xkb 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="\"$XKBPATH\"" 27503 eval ac_define_dir="\"$ac_define_dir\"" 27504 XKB_BASE_DIRECTORY="$ac_define_dir" 27505 27506 27507cat >>confdefs.h <<_ACEOF 27508#define XKB_BASE_DIRECTORY "$ac_define_dir" 27509_ACEOF 27510 27511 test "$prefix_NONE" && prefix=NONE 27512 test "$exec_prefix_NONE" && exec_prefix=NONE 27513 27514 27515# Check whether --with-xkb-bin-directory was given. 27516if test "${with_xkb_bin_directory+set}" = set; then : 27517 withval=$with_xkb_bin_directory; XKB_BIN_DIRECTORY="$withval" 27518else 27519 XKB_BIN_DIRECTORY="auto" 27520fi 27521 27522 27523if test "x$XKB_BIN_DIRECTORY" = "xauto"; then 27524 XKB_BIN_DIRECTORY=$(pkg-config --variable bindir xkbcomp || echo ${bindir}) 27525fi 27526 27527 27528 prefix_NONE= 27529 exec_prefix_NONE= 27530 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27531 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27532 eval ac_define_dir="\"$XKB_BIN_DIRECTORY\"" 27533 eval ac_define_dir="\"$ac_define_dir\"" 27534 XKB_BIN_DIRECTORY="$ac_define_dir" 27535 27536 27537cat >>confdefs.h <<_ACEOF 27538#define XKB_BIN_DIRECTORY "$ac_define_dir" 27539_ACEOF 27540 27541 test "$prefix_NONE" && prefix=NONE 27542 test "$exec_prefix_NONE" && exec_prefix=NONE 27543 27544 27545XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1` 27546if [ x$XKBOUTPUT_FIRSTCHAR != x/ -a x$XKBOUTPUT_FIRSTCHAR != 'x$' ] ; then 27547 XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT" 27548fi 27549 27550 27551XKBOUTPUT=`echo $XKBOUTPUT/ | $SED 's|/*$|/|'` 27552XKB_COMPILED_DIR=`echo $XKBOUTPUT | $SED 's|/*$||'` 27553 27554 prefix_NONE= 27555 exec_prefix_NONE= 27556 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27557 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27558 eval ac_define_dir="\"$XKBOUTPUT\"" 27559 eval ac_define_dir="\"$ac_define_dir\"" 27560 XKM_OUTPUT_DIR="$ac_define_dir" 27561 27562 27563cat >>confdefs.h <<_ACEOF 27564#define XKM_OUTPUT_DIR "$ac_define_dir" 27565_ACEOF 27566 27567 test "$prefix_NONE" && prefix=NONE 27568 test "$exec_prefix_NONE" && exec_prefix=NONE 27569 27570 27571 27572if test "x$XKB_DFLT_RULES" = x; then 27573 case $host_os in 27574 linux*) 27575 XKB_DFLT_RULES="evdev" 27576 ;; 27577 *) 27578 XKB_DFLT_RULES="base" 27579 ;; 27580 esac 27581fi 27582 27583cat >>confdefs.h <<_ACEOF 27584#define XKB_DFLT_RULES "$XKB_DFLT_RULES" 27585_ACEOF 27586 27587 27588cat >>confdefs.h <<_ACEOF 27589#define XKB_DFLT_MODEL "$XKB_DFLT_MODEL" 27590_ACEOF 27591 27592 27593cat >>confdefs.h <<_ACEOF 27594#define XKB_DFLT_LAYOUT "$XKB_DFLT_LAYOUT" 27595_ACEOF 27596 27597 27598cat >>confdefs.h <<_ACEOF 27599#define XKB_DFLT_VARIANT "$XKB_DFLT_VARIANT" 27600_ACEOF 27601 27602 27603cat >>confdefs.h <<_ACEOF 27604#define XKB_DFLT_OPTIONS "$XKB_DFLT_OPTIONS" 27605_ACEOF 27606 27607 27608 27609 27610 27611 27612 27613XKB_LIB='$(top_builddir)/xkb/libxkb.la' 27614XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la' 27615REQUIRED_MODULES="$REQUIRED_MODULES xkbfile" 27616 27617 27618pkg_failed=no 27619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5 27620$as_echo_n "checking for XDMCP... " >&6; } 27621 27622if test -n "$XDMCP_CFLAGS"; then 27623 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS" 27624 elif test -n "$PKG_CONFIG"; then 27625 if test -n "$PKG_CONFIG" && \ 27626 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 27627 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 27628 ac_status=$? 27629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27630 test $ac_status = 0; }; then 27631 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` 27632 test "x$?" != "x0" && pkg_failed=yes 27633else 27634 pkg_failed=yes 27635fi 27636 else 27637 pkg_failed=untried 27638fi 27639if test -n "$XDMCP_LIBS"; then 27640 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS" 27641 elif test -n "$PKG_CONFIG"; then 27642 if test -n "$PKG_CONFIG" && \ 27643 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 27644 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 27645 ac_status=$? 27646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27647 test $ac_status = 0; }; then 27648 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` 27649 test "x$?" != "x0" && pkg_failed=yes 27650else 27651 pkg_failed=yes 27652fi 27653 else 27654 pkg_failed=untried 27655fi 27656 27657 27658 27659if test $pkg_failed = yes; then 27660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27661$as_echo "no" >&6; } 27662 27663if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27664 _pkg_short_errors_supported=yes 27665else 27666 _pkg_short_errors_supported=no 27667fi 27668 if test $_pkg_short_errors_supported = yes; then 27669 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1` 27670 else 27671 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1` 27672 fi 27673 # Put the nasty error message in config.log where it belongs 27674 echo "$XDMCP_PKG_ERRORS" >&5 27675 27676 have_libxdmcp="no" 27677elif test $pkg_failed = untried; then 27678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27679$as_echo "no" >&6; } 27680 have_libxdmcp="no" 27681else 27682 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS 27683 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS 27684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27685$as_echo "yes" >&6; } 27686 have_libxdmcp="yes" 27687fi 27688if test "x$XDMCP" = xauto; then 27689 if test "x$have_libxdmcp" = xyes; then 27690 XDMCP=yes 27691 else 27692 XDMCP=no 27693 fi 27694fi 27695if test "x$XDMAUTH" = xauto; then 27696 if test "x$have_libxdmcp" = xyes; then 27697 XDMAUTH=yes 27698 else 27699 XDMAUTH=no 27700 fi 27701fi 27702 27703 if test "x$XDMCP" = xyes; then 27704 XDMCP_TRUE= 27705 XDMCP_FALSE='#' 27706else 27707 XDMCP_TRUE='#' 27708 XDMCP_FALSE= 27709fi 27710 27711if test "x$XDMCP" = xyes; then 27712 27713$as_echo "#define XDMCP 1" >>confdefs.h 27714 27715 REQUIRED_LIBS="$REQUIRED_LIBS xdmcp" 27716 XDMCP_MODULES="xdmcp" 27717fi 27718 27719 if test "x$XDMAUTH" = xyes; then 27720 XDMAUTH_TRUE= 27721 XDMAUTH_FALSE='#' 27722else 27723 XDMAUTH_TRUE='#' 27724 XDMAUTH_FALSE= 27725fi 27726 27727if test "x$XDMAUTH" = xyes; then 27728 27729$as_echo "#define HASXDMAUTH 1" >>confdefs.h 27730 27731 if ! test "x$XDMCP" = xyes; then 27732 REQUIRED_LIBS="$REQUIRED_LIBS xdmcp" 27733 XDMCP_MODULES="xdmcp" 27734 fi 27735fi 27736 27737if test "x$XF86VIDMODE" = xauto; then 27738 if test -n "$PKG_CONFIG" && \ 27739 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5 27740 ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5 27741 ac_status=$? 27742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27743 test $ac_status = 0; }; then 27744 XF86VIDMODE=yes 27745else 27746 XF86VIDMODE=no 27747fi 27748fi 27749if test "x$XF86VIDMODE" = xyes; then 27750 27751$as_echo "#define XF86VIDMODE 1" >>confdefs.h 27752 27753fi 27754 if test "x$XF86VIDMODE" = xyes; then 27755 XF86VIDMODE_TRUE= 27756 XF86VIDMODE_FALSE='#' 27757else 27758 XF86VIDMODE_TRUE='#' 27759 XF86VIDMODE_FALSE= 27760fi 27761 27762 27763 27764 prefix_NONE= 27765 exec_prefix_NONE= 27766 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27767 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27768 eval ac_define_dir="\"$FONTPATH\"" 27769 eval ac_define_dir="\"$ac_define_dir\"" 27770 COMPILEDDEFAULTFONTPATH="$ac_define_dir" 27771 27772 27773cat >>confdefs.h <<_ACEOF 27774#define COMPILEDDEFAULTFONTPATH "$ac_define_dir" 27775_ACEOF 27776 27777 test "$prefix_NONE" && prefix=NONE 27778 test "$exec_prefix_NONE" && exec_prefix=NONE 27779 27780 27781 prefix_NONE= 27782 exec_prefix_NONE= 27783 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27784 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27785 eval ac_define_dir="\"$SERVERCONFIG\"" 27786 eval ac_define_dir="\"$ac_define_dir\"" 27787 SERVER_MISC_CONFIG_PATH="$ac_define_dir" 27788 27789 27790cat >>confdefs.h <<_ACEOF 27791#define SERVER_MISC_CONFIG_PATH "$ac_define_dir" 27792_ACEOF 27793 27794 test "$prefix_NONE" && prefix=NONE 27795 test "$exec_prefix_NONE" && exec_prefix=NONE 27796 27797 27798 prefix_NONE= 27799 exec_prefix_NONE= 27800 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27801 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27802 eval ac_define_dir="\"$FONTROOTDIR\"" 27803 eval ac_define_dir="\"$ac_define_dir\"" 27804 BASE_FONT_PATH="$ac_define_dir" 27805 27806 27807cat >>confdefs.h <<_ACEOF 27808#define BASE_FONT_PATH "$ac_define_dir" 27809_ACEOF 27810 27811 test "$prefix_NONE" && prefix=NONE 27812 test "$exec_prefix_NONE" && exec_prefix=NONE 27813 27814dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri` 27815 27816 prefix_NONE= 27817 exec_prefix_NONE= 27818 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27819 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27820 eval ac_define_dir="\"$dridriverdir\"" 27821 eval ac_define_dir="\"$ac_define_dir\"" 27822 DRI_DRIVER_PATH="$ac_define_dir" 27823 27824 27825cat >>confdefs.h <<_ACEOF 27826#define DRI_DRIVER_PATH "$ac_define_dir" 27827_ACEOF 27828 27829 test "$prefix_NONE" && prefix=NONE 27830 test "$exec_prefix_NONE" && exec_prefix=NONE 27831 27832 27833cat >>confdefs.h <<_ACEOF 27834#define XVENDORNAME "$VENDOR_NAME" 27835_ACEOF 27836 27837 27838cat >>confdefs.h <<_ACEOF 27839#define XVENDORNAMESHORT "$VENDOR_NAME_SHORT" 27840_ACEOF 27841 27842 27843cat >>confdefs.h <<_ACEOF 27844#define XORG_MAN_VERSION "$VENDOR_MAN_VERSION" 27845_ACEOF 27846 27847 27848cat >>confdefs.h <<_ACEOF 27849#define BUILDERADDR "$BUILDERADDR" 27850_ACEOF 27851 27852 27853if test -z "$OSNAME"; then 27854 OSNAME="UNKNOWN" 27855fi 27856 27857 27858cat >>confdefs.h <<_ACEOF 27859#define OSNAME "$OSNAME" 27860_ACEOF 27861 27862 27863cat >>confdefs.h <<_ACEOF 27864#define OSVENDOR "$OSVENDOR" 27865_ACEOF 27866 27867 27868cat >>confdefs.h <<_ACEOF 27869#define BUILDERSTRING "$BUILDERSTRING" 27870_ACEOF 27871 27872 27873 27874 27875cat >>confdefs.h <<_ACEOF 27876#define VENDOR_NAME "$VENDOR_NAME" 27877_ACEOF 27878 27879 27880cat >>confdefs.h <<_ACEOF 27881#define VENDOR_NAME_SHORT "$VENDOR_NAME_SHORT" 27882_ACEOF 27883 27884 27885cat >>confdefs.h <<_ACEOF 27886#define VENDOR_RELEASE $VENDOR_RELEASE 27887_ACEOF 27888 27889 27890cat >>confdefs.h <<_ACEOF 27891#define VENDOR_MAN_VERSION "$VENDOR_MAN_VERSION" 27892_ACEOF 27893 27894 27895if test "x$DEBUGGING" = xyes; then 27896 27897$as_echo "#define DEBUG 1" >>confdefs.h 27898 27899fi 27900 if test "x$DEBUGGING" = xyes; then 27901 DEBUG_TRUE= 27902 DEBUG_FALSE='#' 27903else 27904 DEBUG_TRUE='#' 27905 DEBUG_FALSE= 27906fi 27907 27908 27909 27910$as_echo "#define XTEST 1" >>confdefs.h 27911 27912 27913$as_echo "#define XSYNC 1" >>confdefs.h 27914 27915 27916$as_echo "#define XCMISC 1" >>confdefs.h 27917 27918 27919$as_echo "#define BIGREQS 1" >>confdefs.h 27920 27921 27922if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then 27923 DIX_LIB='$(top_builddir)/dix/dix.O' 27924 OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS) $(LIBUNWIND_LIBS)' 27925else 27926 DIX_LIB='$(top_builddir)/dix/libdix.la' 27927 OS_LIB='$(top_builddir)/os/libos.la' 27928fi 27929 27930 27931 27932MAIN_LIB='$(top_builddir)/dix/libmain.la' 27933 27934 27935MI_LIB='$(top_builddir)/mi/libmi.la' 27936MI_EXT_LIB='$(top_builddir)/mi/libmiext.la' 27937MI_INC='-I$(top_srcdir)/mi' 27938FB_LIB='$(top_builddir)/fb/libfb.la' 27939FB_INC='-I$(top_srcdir)/fb' 27940MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow' 27941MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la' 27942MIEXT_SYNC_INC='-I$(top_srcdir)/miext/sync' 27943MIEXT_SYNC_LIB='$(top_builddir)/miext/sync/libsync.la' 27944CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include' 27945 27946# SHA1 hashing 27947 27948# Check whether --with-sha1 was given. 27949if test "${with_sha1+set}" = set; then : 27950 withval=$with_sha1; 27951fi 27952 27953ac_fn_c_check_func "$LINENO" "SHA1Init" "ac_cv_func_SHA1Init" 27954if test "x$ac_cv_func_SHA1Init" = xyes; then : 27955 HAVE_SHA1_IN_LIBC=yes 27956fi 27957 27958if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then 27959 with_sha1=libc 27960fi 27961if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then 27962 as_fn_error $? "libc requested but not found" "$LINENO" 5 27963fi 27964if test "x$with_sha1" = xlibc; then 27965 27966$as_echo "#define HAVE_SHA1_IN_LIBC 1" >>confdefs.h 27967 27968 SHA1_LIBS="" 27969fi 27970ac_fn_c_check_func "$LINENO" "CC_SHA1_Init" "ac_cv_func_CC_SHA1_Init" 27971if test "x$ac_cv_func_CC_SHA1_Init" = xyes; then : 27972 HAVE_SHA1_IN_COMMONCRYPTO=yes 27973fi 27974 27975if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then 27976 with_sha1=CommonCrypto 27977fi 27978if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then 27979 as_fn_error $? "CommonCrypto requested but not found" "$LINENO" 5 27980fi 27981if test "x$with_sha1" = xCommonCrypto; then 27982 27983$as_echo "#define HAVE_SHA1_IN_COMMONCRYPTO 1" >>confdefs.h 27984 27985 SHA1_LIBS="" 27986fi 27987ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#include <windows.h> 27988" 27989if test "x$ac_cv_header_wincrypt_h" = xyes; then : 27990 HAVE_SHA1_IN_CRYPTOAPI=yes 27991fi 27992 27993 27994if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_CRYPTOAPI" = xyes; then 27995 with_sha1=CryptoAPI 27996fi 27997if test "x$with_sha1" = xCryptoAPI && test "x$HAVE_SHA1_IN_CRYPTOAPI" != xyes; then 27998 as_fn_error $? "CryptoAPI requested but not found" "$LINENO" 5 27999fi 28000if test "x$with_sha1" = xCryptoAPI; then 28001 28002$as_echo "#define HAVE_SHA1_IN_CRYPTOAPI 1" >>confdefs.h 28003 28004 SHA1_LIBS="" 28005fi 28006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1Init in -lmd" >&5 28007$as_echo_n "checking for SHA1Init in -lmd... " >&6; } 28008if ${ac_cv_lib_md_SHA1Init+:} false; then : 28009 $as_echo_n "(cached) " >&6 28010else 28011 ac_check_lib_save_LIBS=$LIBS 28012LIBS="-lmd $LIBS" 28013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28014/* end confdefs.h. */ 28015 28016/* Override any GCC internal prototype to avoid an error. 28017 Use char because int might match the return type of a GCC 28018 builtin and then its argument prototype would still apply. */ 28019#ifdef __cplusplus 28020extern "C" 28021#endif 28022char SHA1Init (); 28023int 28024main () 28025{ 28026return SHA1Init (); 28027 ; 28028 return 0; 28029} 28030_ACEOF 28031if ac_fn_c_try_link "$LINENO"; then : 28032 ac_cv_lib_md_SHA1Init=yes 28033else 28034 ac_cv_lib_md_SHA1Init=no 28035fi 28036rm -f core conftest.err conftest.$ac_objext \ 28037 conftest$ac_exeext conftest.$ac_ext 28038LIBS=$ac_check_lib_save_LIBS 28039fi 28040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA1Init" >&5 28041$as_echo "$ac_cv_lib_md_SHA1Init" >&6; } 28042if test "x$ac_cv_lib_md_SHA1Init" = xyes; then : 28043 HAVE_LIBMD=yes 28044fi 28045 28046if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then 28047 with_sha1=libmd 28048fi 28049if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then 28050 as_fn_error $? "libmd requested but not found" "$LINENO" 5 28051fi 28052if test "x$with_sha1" = xlibmd; then 28053 28054$as_echo "#define HAVE_SHA1_IN_LIBMD 1" >>confdefs.h 28055 28056 SHA1_LIBS=-lmd 28057fi 28058 28059pkg_failed=no 28060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSHA1" >&5 28061$as_echo_n "checking for LIBSHA1... " >&6; } 28062 28063if test -n "$LIBSHA1_CFLAGS"; then 28064 pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS" 28065 elif test -n "$PKG_CONFIG"; then 28066 if test -n "$PKG_CONFIG" && \ 28067 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5 28068 ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5 28069 ac_status=$? 28070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28071 test $ac_status = 0; }; then 28072 pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null` 28073 test "x$?" != "x0" && pkg_failed=yes 28074else 28075 pkg_failed=yes 28076fi 28077 else 28078 pkg_failed=untried 28079fi 28080if test -n "$LIBSHA1_LIBS"; then 28081 pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS" 28082 elif test -n "$PKG_CONFIG"; then 28083 if test -n "$PKG_CONFIG" && \ 28084 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5 28085 ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5 28086 ac_status=$? 28087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28088 test $ac_status = 0; }; then 28089 pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null` 28090 test "x$?" != "x0" && pkg_failed=yes 28091else 28092 pkg_failed=yes 28093fi 28094 else 28095 pkg_failed=untried 28096fi 28097 28098 28099 28100if test $pkg_failed = yes; then 28101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28102$as_echo "no" >&6; } 28103 28104if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28105 _pkg_short_errors_supported=yes 28106else 28107 _pkg_short_errors_supported=no 28108fi 28109 if test $_pkg_short_errors_supported = yes; then 28110 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsha1" 2>&1` 28111 else 28112 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsha1" 2>&1` 28113 fi 28114 # Put the nasty error message in config.log where it belongs 28115 echo "$LIBSHA1_PKG_ERRORS" >&5 28116 28117 HAVE_LIBSHA1=no 28118elif test $pkg_failed = untried; then 28119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28120$as_echo "no" >&6; } 28121 HAVE_LIBSHA1=no 28122else 28123 LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS 28124 LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS 28125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28126$as_echo "yes" >&6; } 28127 HAVE_LIBSHA1=yes 28128fi 28129if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then 28130 with_sha1=libsha1 28131fi 28132if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then 28133 as_fn_error $? "libsha1 requested but not found" "$LINENO" 5 28134fi 28135if test "x$with_sha1" = xlibsha1; then 28136 28137$as_echo "#define HAVE_SHA1_IN_LIBSHA1 1" >>confdefs.h 28138 28139 SHA1_LIBS=-lsha1 28140fi 28141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_sha1_init in -lnettle" >&5 28142$as_echo_n "checking for nettle_sha1_init in -lnettle... " >&6; } 28143if ${ac_cv_lib_nettle_nettle_sha1_init+:} false; then : 28144 $as_echo_n "(cached) " >&6 28145else 28146 ac_check_lib_save_LIBS=$LIBS 28147LIBS="-lnettle $LIBS" 28148cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28149/* end confdefs.h. */ 28150 28151/* Override any GCC internal prototype to avoid an error. 28152 Use char because int might match the return type of a GCC 28153 builtin and then its argument prototype would still apply. */ 28154#ifdef __cplusplus 28155extern "C" 28156#endif 28157char nettle_sha1_init (); 28158int 28159main () 28160{ 28161return nettle_sha1_init (); 28162 ; 28163 return 0; 28164} 28165_ACEOF 28166if ac_fn_c_try_link "$LINENO"; then : 28167 ac_cv_lib_nettle_nettle_sha1_init=yes 28168else 28169 ac_cv_lib_nettle_nettle_sha1_init=no 28170fi 28171rm -f core conftest.err conftest.$ac_objext \ 28172 conftest$ac_exeext conftest.$ac_ext 28173LIBS=$ac_check_lib_save_LIBS 28174fi 28175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha1_init" >&5 28176$as_echo "$ac_cv_lib_nettle_nettle_sha1_init" >&6; } 28177if test "x$ac_cv_lib_nettle_nettle_sha1_init" = xyes; then : 28178 HAVE_LIBNETTLE=yes 28179fi 28180 28181if test "x$with_sha1" = x && test "x$HAVE_LIBNETTLE" = xyes; then 28182 with_sha1=libnettle 28183fi 28184if test "x$with_sha1" = xlibnettle && test "x$HAVE_LIBNETTLE" != xyes; then 28185 as_fn_error $? "libnettle requested but not found" "$LINENO" 5 28186fi 28187if test "x$with_sha1" = xlibnettle; then 28188 28189$as_echo "#define HAVE_SHA1_IN_LIBNETTLE 1" >>confdefs.h 28190 28191 SHA1_LIBS=-lnettle 28192fi 28193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5 28194$as_echo_n "checking for gcry_md_open in -lgcrypt... " >&6; } 28195if ${ac_cv_lib_gcrypt_gcry_md_open+:} false; then : 28196 $as_echo_n "(cached) " >&6 28197else 28198 ac_check_lib_save_LIBS=$LIBS 28199LIBS="-lgcrypt $LIBS" 28200cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28201/* end confdefs.h. */ 28202 28203/* Override any GCC internal prototype to avoid an error. 28204 Use char because int might match the return type of a GCC 28205 builtin and then its argument prototype would still apply. */ 28206#ifdef __cplusplus 28207extern "C" 28208#endif 28209char gcry_md_open (); 28210int 28211main () 28212{ 28213return gcry_md_open (); 28214 ; 28215 return 0; 28216} 28217_ACEOF 28218if ac_fn_c_try_link "$LINENO"; then : 28219 ac_cv_lib_gcrypt_gcry_md_open=yes 28220else 28221 ac_cv_lib_gcrypt_gcry_md_open=no 28222fi 28223rm -f core conftest.err conftest.$ac_objext \ 28224 conftest$ac_exeext conftest.$ac_ext 28225LIBS=$ac_check_lib_save_LIBS 28226fi 28227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5 28228$as_echo "$ac_cv_lib_gcrypt_gcry_md_open" >&6; } 28229if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes; then : 28230 HAVE_LIBGCRYPT=yes 28231fi 28232 28233if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then 28234 with_sha1=libgcrypt 28235fi 28236if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then 28237 as_fn_error $? "libgcrypt requested but not found" "$LINENO" 5 28238fi 28239if test "x$with_sha1" = xlibgcrypt; then 28240 28241$as_echo "#define HAVE_SHA1_IN_LIBGCRYPT 1" >>confdefs.h 28242 28243 SHA1_LIBS=-lgcrypt 28244fi 28245# We don't need all of the OpenSSL libraries, just libcrypto 28246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5 28247$as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; } 28248if ${ac_cv_lib_crypto_SHA1_Init+:} false; then : 28249 $as_echo_n "(cached) " >&6 28250else 28251 ac_check_lib_save_LIBS=$LIBS 28252LIBS="-lcrypto $LIBS" 28253cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28254/* end confdefs.h. */ 28255 28256/* Override any GCC internal prototype to avoid an error. 28257 Use char because int might match the return type of a GCC 28258 builtin and then its argument prototype would still apply. */ 28259#ifdef __cplusplus 28260extern "C" 28261#endif 28262char SHA1_Init (); 28263int 28264main () 28265{ 28266return SHA1_Init (); 28267 ; 28268 return 0; 28269} 28270_ACEOF 28271if ac_fn_c_try_link "$LINENO"; then : 28272 ac_cv_lib_crypto_SHA1_Init=yes 28273else 28274 ac_cv_lib_crypto_SHA1_Init=no 28275fi 28276rm -f core conftest.err conftest.$ac_objext \ 28277 conftest$ac_exeext conftest.$ac_ext 28278LIBS=$ac_check_lib_save_LIBS 28279fi 28280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5 28281$as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; } 28282if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then : 28283 HAVE_LIBCRYPTO=yes 28284fi 28285 28286 28287pkg_failed=no 28288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5 28289$as_echo_n "checking for OPENSSL... " >&6; } 28290 28291if test -n "$OPENSSL_CFLAGS"; then 28292 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" 28293 elif test -n "$PKG_CONFIG"; then 28294 if test -n "$PKG_CONFIG" && \ 28295 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 28296 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 28297 ac_status=$? 28298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28299 test $ac_status = 0; }; then 28300 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` 28301 test "x$?" != "x0" && pkg_failed=yes 28302else 28303 pkg_failed=yes 28304fi 28305 else 28306 pkg_failed=untried 28307fi 28308if test -n "$OPENSSL_LIBS"; then 28309 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" 28310 elif test -n "$PKG_CONFIG"; then 28311 if test -n "$PKG_CONFIG" && \ 28312 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 28313 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 28314 ac_status=$? 28315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28316 test $ac_status = 0; }; then 28317 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` 28318 test "x$?" != "x0" && pkg_failed=yes 28319else 28320 pkg_failed=yes 28321fi 28322 else 28323 pkg_failed=untried 28324fi 28325 28326 28327 28328if test $pkg_failed = yes; then 28329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28330$as_echo "no" >&6; } 28331 28332if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28333 _pkg_short_errors_supported=yes 28334else 28335 _pkg_short_errors_supported=no 28336fi 28337 if test $_pkg_short_errors_supported = yes; then 28338 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1` 28339 else 28340 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1` 28341 fi 28342 # Put the nasty error message in config.log where it belongs 28343 echo "$OPENSSL_PKG_ERRORS" >&5 28344 28345 HAVE_OPENSSL_PKC=no 28346elif test $pkg_failed = untried; then 28347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28348$as_echo "no" >&6; } 28349 HAVE_OPENSSL_PKC=no 28350else 28351 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS 28352 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS 28353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28354$as_echo "yes" >&6; } 28355 HAVE_OPENSSL_PKC=yes 28356fi 28357if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then 28358 if test "x$with_sha1" = x; then 28359 with_sha1=libcrypto 28360 fi 28361else 28362 if test "x$with_sha1" = xlibcrypto; then 28363 as_fn_error $? "OpenSSL libcrypto requested but not found" "$LINENO" 5 28364 fi 28365fi 28366if test "x$with_sha1" = xlibcrypto; then 28367 if test "x$HAVE_LIBCRYPTO" = xyes; then 28368 SHA1_LIBS=-lcrypto 28369 else 28370 SHA1_LIBS="$OPENSSL_LIBS" 28371 SHA1_CFLAGS="$OPENSSL_CFLAGS" 28372 fi 28373fi 28374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 implementation" >&5 28375$as_echo_n "checking for SHA1 implementation... " >&6; } 28376if test "x$with_sha1" = x; then 28377 as_fn_error $? "No suitable SHA1 implementation found" "$LINENO" 5 28378fi 28379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sha1" >&5 28380$as_echo "$with_sha1" >&6; } 28381 28382 28383 28384 28385pkg_failed=no 28386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERCFLAGS" >&5 28387$as_echo_n "checking for XSERVERCFLAGS... " >&6; } 28388 28389if test -n "$XSERVERCFLAGS_CFLAGS"; then 28390 pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS" 28391 elif test -n "$PKG_CONFIG"; then 28392 if test -n "$PKG_CONFIG" && \ 28393 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5 28394 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5 28395 ac_status=$? 28396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28397 test $ac_status = 0; }; then 28398 pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null` 28399 test "x$?" != "x0" && pkg_failed=yes 28400else 28401 pkg_failed=yes 28402fi 28403 else 28404 pkg_failed=untried 28405fi 28406if test -n "$XSERVERCFLAGS_LIBS"; then 28407 pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS" 28408 elif test -n "$PKG_CONFIG"; then 28409 if test -n "$PKG_CONFIG" && \ 28410 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5 28411 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5 28412 ac_status=$? 28413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28414 test $ac_status = 0; }; then 28415 pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null` 28416 test "x$?" != "x0" && pkg_failed=yes 28417else 28418 pkg_failed=yes 28419fi 28420 else 28421 pkg_failed=untried 28422fi 28423 28424 28425 28426if test $pkg_failed = yes; then 28427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28428$as_echo "no" >&6; } 28429 28430if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28431 _pkg_short_errors_supported=yes 28432else 28433 _pkg_short_errors_supported=no 28434fi 28435 if test $_pkg_short_errors_supported = yes; then 28436 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1` 28437 else 28438 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1` 28439 fi 28440 # Put the nasty error message in config.log where it belongs 28441 echo "$XSERVERCFLAGS_PKG_ERRORS" >&5 28442 28443 as_fn_error $? "Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met: 28444 28445$XSERVERCFLAGS_PKG_ERRORS 28446 28447Consider adjusting the PKG_CONFIG_PATH environment variable if you 28448installed software in a non-standard prefix. 28449 28450Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS 28451and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config. 28452See the pkg-config man page for more details." "$LINENO" 5 28453elif test $pkg_failed = untried; then 28454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28455$as_echo "no" >&6; } 28456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28458as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 28459is in your PATH or set the PKG_CONFIG environment variable to the full 28460path to pkg-config. 28461 28462Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS 28463and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config. 28464See the pkg-config man page for more details. 28465 28466To get pkg-config, see <http://pkg-config.freedesktop.org/>. 28467See \`config.log' for more details" "$LINENO" 5; } 28468else 28469 XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS 28470 XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS 28471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28472$as_echo "yes" >&6; } 28473 28474fi 28475 28476pkg_failed=no 28477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERLIBS" >&5 28478$as_echo_n "checking for XSERVERLIBS... " >&6; } 28479 28480if test -n "$XSERVERLIBS_CFLAGS"; then 28481 pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS" 28482 elif test -n "$PKG_CONFIG"; then 28483 if test -n "$PKG_CONFIG" && \ 28484 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5 28485 ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5 28486 ac_status=$? 28487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28488 test $ac_status = 0; }; then 28489 pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null` 28490 test "x$?" != "x0" && pkg_failed=yes 28491else 28492 pkg_failed=yes 28493fi 28494 else 28495 pkg_failed=untried 28496fi 28497if test -n "$XSERVERLIBS_LIBS"; then 28498 pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS" 28499 elif test -n "$PKG_CONFIG"; then 28500 if test -n "$PKG_CONFIG" && \ 28501 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5 28502 ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5 28503 ac_status=$? 28504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28505 test $ac_status = 0; }; then 28506 pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null` 28507 test "x$?" != "x0" && pkg_failed=yes 28508else 28509 pkg_failed=yes 28510fi 28511 else 28512 pkg_failed=untried 28513fi 28514 28515 28516 28517if test $pkg_failed = yes; then 28518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28519$as_echo "no" >&6; } 28520 28521if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28522 _pkg_short_errors_supported=yes 28523else 28524 _pkg_short_errors_supported=no 28525fi 28526 if test $_pkg_short_errors_supported = yes; then 28527 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1` 28528 else 28529 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1` 28530 fi 28531 # Put the nasty error message in config.log where it belongs 28532 echo "$XSERVERLIBS_PKG_ERRORS" >&5 28533 28534 as_fn_error $? "Package requirements ($REQUIRED_LIBS) were not met: 28535 28536$XSERVERLIBS_PKG_ERRORS 28537 28538Consider adjusting the PKG_CONFIG_PATH environment variable if you 28539installed software in a non-standard prefix. 28540 28541Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS 28542and XSERVERLIBS_LIBS to avoid the need to call pkg-config. 28543See the pkg-config man page for more details." "$LINENO" 5 28544elif test $pkg_failed = untried; then 28545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28546$as_echo "no" >&6; } 28547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28549as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 28550is in your PATH or set the PKG_CONFIG environment variable to the full 28551path to pkg-config. 28552 28553Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS 28554and XSERVERLIBS_LIBS to avoid the need to call pkg-config. 28555See the pkg-config man page for more details. 28556 28557To get pkg-config, see <http://pkg-config.freedesktop.org/>. 28558See \`config.log' for more details" "$LINENO" 5; } 28559else 28560 XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS 28561 XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS 28562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28563$as_echo "yes" >&6; } 28564 28565fi 28566 28567 28568pkg_failed=no 28569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUNWIND" >&5 28570$as_echo_n "checking for LIBUNWIND... " >&6; } 28571 28572if test -n "$LIBUNWIND_CFLAGS"; then 28573 pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS" 28574 elif test -n "$PKG_CONFIG"; then 28575 if test -n "$PKG_CONFIG" && \ 28576 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5 28577 ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5 28578 ac_status=$? 28579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28580 test $ac_status = 0; }; then 28581 pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null` 28582 test "x$?" != "x0" && pkg_failed=yes 28583else 28584 pkg_failed=yes 28585fi 28586 else 28587 pkg_failed=untried 28588fi 28589if test -n "$LIBUNWIND_LIBS"; then 28590 pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS" 28591 elif test -n "$PKG_CONFIG"; then 28592 if test -n "$PKG_CONFIG" && \ 28593 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5 28594 ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5 28595 ac_status=$? 28596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28597 test $ac_status = 0; }; then 28598 pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null` 28599 test "x$?" != "x0" && pkg_failed=yes 28600else 28601 pkg_failed=yes 28602fi 28603 else 28604 pkg_failed=untried 28605fi 28606 28607 28608 28609if test $pkg_failed = yes; then 28610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28611$as_echo "no" >&6; } 28612 28613if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28614 _pkg_short_errors_supported=yes 28615else 28616 _pkg_short_errors_supported=no 28617fi 28618 if test $_pkg_short_errors_supported = yes; then 28619 LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libunwind" 2>&1` 28620 else 28621 LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libunwind" 2>&1` 28622 fi 28623 # Put the nasty error message in config.log where it belongs 28624 echo "$LIBUNWIND_PKG_ERRORS" >&5 28625 28626 HAVE_LIBUNWIND=no 28627elif test $pkg_failed = untried; then 28628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28629$as_echo "no" >&6; } 28630 HAVE_LIBUNWIND=no 28631else 28632 LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS 28633 LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS 28634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28635$as_echo "yes" >&6; } 28636 HAVE_LIBUNWIND=yes 28637fi 28638if test "x$LIBUNWIND" = "xauto"; then 28639 LIBUNWIND="$HAVE_LIBUNWIND" 28640fi 28641 28642if test "x$LIBUNWIND" = "xyes"; then 28643 if test "x$HAVE_LIBUNWIND" != "xyes"; then 28644 as_fn_error $? "libunwind requested but not installed." "$LINENO" 5 28645 fi 28646 28647$as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h 28648 28649fi 28650 28651 if test "x$LIBUNWIND" = xyes; then 28652 HAVE_LIBUNWIND_TRUE= 28653 HAVE_LIBUNWIND_FALSE='#' 28654else 28655 HAVE_LIBUNWIND_TRUE='#' 28656 HAVE_LIBUNWIND_FALSE= 28657fi 28658 28659 28660# Autotools has some unfortunate issues with library handling. In order to 28661# get a server to rebuild when a dependency in the tree is changed, it must 28662# be listed in SERVERNAME_DEPENDENCIES. However, no system libraries may be 28663# listed there, or some versions of autotools will break (especially if a -L 28664# is required to find the library). So, we keep two sets of libraries 28665# detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which 28666# will go into the _DEPENDENCIES and _LDADD of the server, and 28667# NAMESPACE_SYS_LIBS which will go into only the _LDADD. The 28668# NAMESPACEMODULES_LIBS detected from pkgconfig should always go in 28669# NAMESPACE_SYS_LIBS. 28670# 28671# XSERVER_LIBS is the set of in-tree libraries which all servers require. 28672# XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers 28673# require. 28674# 28675XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}" 28676XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB" 28677XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}" 28678 28679 28680 28681UTILS_SYS_LIBS="${SYS_LIBS}" 28682 28683 28684# The Xorg binary needs to export symbols so that they can be used from modules 28685# Some platforms require extra flags to do this. libtool should set the 28686# necessary flags for each platform when -export-dynamic is passed to it. 28687LD_EXPORT_SYMBOLS_FLAG="-export-dynamic" 28688LD_NO_UNDEFINED_FLAG= 28689XORG_DRIVER_LIBS= 28690case "$host_os" in 28691 cygwin*) 28692 LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-all,--out-implib,lib\$@.a" 28693 LD_NO_UNDEFINED_FLAG="-no-undefined -Wl,\$(top_builddir)/hw/xfree86/libXorg.exe.a" 28694 XORG_DRIVER_LIBS="-lXorg.exe -L\${moduledir} -lshadow -lfb -no-undefined" 28695 CYGWIN=yes 28696 ;; 28697 solaris*) 28698 # We use AC_LINK_IFELSE to generate a temporary program conftest$EXEEXT 28699 # that we can link against for testing if the system linker is new 28700 # enough to support -z parent=<program> for verifying loadable modules 28701 # are only calling functions defined in either the loading program or 28702 # the libraries they're linked with. 28703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28704/* end confdefs.h. */ 28705int main(int argc, char **argv) { return 0; } 28706_ACEOF 28707if ac_fn_c_try_link "$LINENO"; then : 28708 mv conftest$EXEEXT conftest.parent 28709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,parent=conftest.parent -G" >&5 28710$as_echo_n "checking whether the linker accepts -Wl,-z,parent=conftest.parent -G... " >&6; } 28711if ${xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G+:} false; then : 28712 $as_echo_n "(cached) " >&6 28713else 28714 28715 ax_save_FLAGS=$LDFLAGS 28716 LDFLAGS="-Wl,-z,parent=conftest.parent -G" 28717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28718/* end confdefs.h. */ 28719extern int main(int argc, char **argv); 28720 int call_main(void) { return main(0, (void *)0); } 28721_ACEOF 28722if ac_fn_c_try_link "$LINENO"; then : 28723 xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=yes 28724else 28725 xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=no 28726fi 28727rm -f core conftest.err conftest.$ac_objext \ 28728 conftest$ac_exeext conftest.$ac_ext 28729 LDFLAGS=$ax_save_FLAGS 28730fi 28731 28732eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G 28733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5 28734$as_echo "$xorg_check_linker_flags" >&6; } 28735if test "x$xorg_check_linker_flags" = xyes; then 28736 LD_NO_UNDEFINED_FLAG="-Wl,-z,defs -Wl,-z,parent=\$(top_builddir)/hw/xfree86/Xorg" 28737# Not set yet, since this gets exported in xorg-server.pc to all the drivers, 28738# and they're not all fixed to build correctly with it yet. 28739# XORG_DRIVER_LIBS="-Wl,-z,defs -Wl,-z,parent=${bindir}/Xorg" 28740 28741else 28742 : 28743fi 28744 28745 rm -f conftest.parent 28746 28747fi 28748rm -f core conftest.err conftest.$ac_objext \ 28749 conftest$ac_exeext conftest.$ac_ext 28750 ;; 28751esac 28752 28753 28754 28755 if test x"$CYGWIN" = xyes; then 28756 CYGWIN_TRUE= 28757 CYGWIN_FALSE='#' 28758else 28759 CYGWIN_TRUE='#' 28760 CYGWIN_FALSE= 28761fi 28762 28763 if test x"$LD_NO_UNDEFINED_FLAG" != x; then 28764 NO_UNDEFINED_TRUE= 28765 NO_UNDEFINED_FALSE='#' 28766else 28767 NO_UNDEFINED_TRUE='#' 28768 NO_UNDEFINED_FALSE= 28769fi 28770 28771 28772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SVR4 needs to be defined" >&5 28773$as_echo_n "checking if SVR4 needs to be defined... " >&6; } 28774cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28775/* end confdefs.h. */ 28776 28777#if defined(SVR4) || defined(__svr4__) || defined(__SVR4) 28778 I_AM_SVR4 28779#endif 28780 28781_ACEOF 28782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28783 $EGREP "I_AM_SVR4" >/dev/null 2>&1; then : 28784 28785 28786$as_echo "#define SVR4 1" >>confdefs.h 28787 28788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28789$as_echo "yes" >&6; } 28790else 28791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28792$as_echo "no" >&6; } 28793fi 28794rm -f conftest* 28795 28796 28797XSERVER_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" 28798 28799 28800 28801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xvfb DDX" >&5 28802$as_echo_n "checking whether to build Xvfb DDX... " >&6; } 28803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVFB" >&5 28804$as_echo "$XVFB" >&6; } 28805 if test "x$XVFB" = xyes; then 28806 XVFB_TRUE= 28807 XVFB_FALSE='#' 28808else 28809 XVFB_TRUE='#' 28810 XVFB_FALSE= 28811fi 28812 28813 28814if test "x$XVFB" = xyes; then 28815 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" 28816 XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS" 28817 28818 28819fi 28820 28821 28822 28823 28824pkg_failed=no 28825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNESTMODULES" >&5 28826$as_echo_n "checking for XNESTMODULES... " >&6; } 28827 28828if test -n "$XNESTMODULES_CFLAGS"; then 28829 pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS" 28830 elif test -n "$PKG_CONFIG"; then 28831 if test -n "$PKG_CONFIG" && \ 28832 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5 28833 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5 28834 ac_status=$? 28835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28836 test $ac_status = 0; }; then 28837 pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null` 28838 test "x$?" != "x0" && pkg_failed=yes 28839else 28840 pkg_failed=yes 28841fi 28842 else 28843 pkg_failed=untried 28844fi 28845if test -n "$XNESTMODULES_LIBS"; then 28846 pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS" 28847 elif test -n "$PKG_CONFIG"; then 28848 if test -n "$PKG_CONFIG" && \ 28849 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5 28850 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5 28851 ac_status=$? 28852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28853 test $ac_status = 0; }; then 28854 pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null` 28855 test "x$?" != "x0" && pkg_failed=yes 28856else 28857 pkg_failed=yes 28858fi 28859 else 28860 pkg_failed=untried 28861fi 28862 28863 28864 28865if test $pkg_failed = yes; then 28866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28867$as_echo "no" >&6; } 28868 28869if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28870 _pkg_short_errors_supported=yes 28871else 28872 _pkg_short_errors_supported=no 28873fi 28874 if test $_pkg_short_errors_supported = yes; then 28875 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1` 28876 else 28877 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1` 28878 fi 28879 # Put the nasty error message in config.log where it belongs 28880 echo "$XNESTMODULES_PKG_ERRORS" >&5 28881 28882 have_xnest=no 28883elif test $pkg_failed = untried; then 28884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28885$as_echo "no" >&6; } 28886 have_xnest=no 28887else 28888 XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS 28889 XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS 28890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28891$as_echo "yes" >&6; } 28892 have_xnest=yes 28893fi 28894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xnest DDX" >&5 28895$as_echo_n "checking whether to build Xnest DDX... " >&6; } 28896if test "x$XNEST" = xauto; then 28897 XNEST="$have_xnest" 28898fi 28899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XNEST" >&5 28900$as_echo "$XNEST" >&6; } 28901 if test "x$XNEST" = xyes; then 28902 XNEST_TRUE= 28903 XNEST_FALSE='#' 28904else 28905 XNEST_TRUE='#' 28906 XNEST_FALSE= 28907fi 28908 28909 28910if test "x$XNEST" = xyes; then 28911 if test "x$have_xnest" = xno; then 28912 as_fn_error $? "Xnest build explicitly requested, but required modules not found." "$LINENO" 5 28913 fi 28914 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" 28915 XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS" 28916 28917 28918fi 28919 28920 28921 28922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg DDX" >&5 28923$as_echo_n "checking whether to build Xorg DDX... " >&6; } 28924if test "x$XORG" = xauto; then 28925 XORG="yes" 28926 case $host_os in 28927 cygwin*) XORG="no" ;; 28928 mingw*) XORG="no" ;; 28929 darwin*) XORG="no" ;; 28930 esac 28931fi 28932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG" >&5 28933$as_echo "$XORG" >&6; } 28934 28935if test "x$XORG" = xyes; then 28936 XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common' 28937 XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os' 28938 XORG_INCS="$XORG_DDXINCS $XORG_OSINCS" 28939 XORG_CFLAGS="$XORGSERVER_CFLAGS -DHAVE_XORG_CONFIG_H" 28940 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" 28941 28942 symbol_visibility= 28943 have_visibility=disabled 28944 if test x$SYMBOL_VISIBILITY != xno; then 28945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5 28946$as_echo_n "checking for symbol visibility support... " >&6; } 28947 if test x$GCC = xyes; then 28948 VISIBILITY_CFLAGS="-fvisibility=hidden" 28949 else 28950 if test x$SUNCC = xyes; then 28951 VISIBILITY_CFLAGS="-xldscope=hidden" 28952 else 28953 have_visibility=no 28954 fi 28955 fi 28956 if test x$have_visibility != xno; then 28957 save_CFLAGS="$CFLAGS" 28958 proto_inc=`$PKG_CONFIG --cflags xproto` 28959 CFLAGS="$CFLAGS $VISIBILITY_CFLAGS $proto_inc" 28960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28961/* end confdefs.h. */ 28962 28963 #include <X11/Xfuncproto.h> 28964 extern _X_HIDDEN int hidden_int; 28965 extern _X_EXPORT int public_int; 28966 extern _X_HIDDEN int hidden_int_func(void); 28967 extern _X_EXPORT int public_int_func(void); 28968int 28969main () 28970{ 28971 28972 ; 28973 return 0; 28974} 28975_ACEOF 28976if ac_fn_c_try_compile "$LINENO"; then : 28977 have_visibility=yes 28978else 28979 have_visibility=no 28980fi 28981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28982 CFLAGS=$save_CFLAGS 28983 fi 28984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5 28985$as_echo "$have_visibility" >&6; } 28986 if test x$have_visibility != xno; then 28987 symbol_visibility=$VISIBILITY_CFLAGS 28988 XORG_CFLAGS="$XORG_CFLAGS $VISIBILITY_CFLAGS" 28989 XSERVER_CFLAGS="$XSERVER_CFLAGS $VISIBILITY_CFLAGS" 28990 fi 28991 fi 28992 28993 28994 xorg_bus_bsdpci=no 28995 xorg_bus_sparc=no 28996 28997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg PCI functions" >&5 28998$as_echo_n "checking whether to build Xorg PCI functions... " >&6; } 28999 if test "x$PCI" = xyes; then 29000 29001pkg_failed=no 29002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 29003$as_echo_n "checking for PCIACCESS... " >&6; } 29004 29005if test -n "$PCIACCESS_CFLAGS"; then 29006 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 29007 elif test -n "$PKG_CONFIG"; then 29008 if test -n "$PKG_CONFIG" && \ 29009 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5 29010 ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5 29011 ac_status=$? 29012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29013 test $ac_status = 0; }; then 29014 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "$LIBPCIACCESS" 2>/dev/null` 29015 test "x$?" != "x0" && pkg_failed=yes 29016else 29017 pkg_failed=yes 29018fi 29019 else 29020 pkg_failed=untried 29021fi 29022if test -n "$PCIACCESS_LIBS"; then 29023 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 29024 elif test -n "$PKG_CONFIG"; then 29025 if test -n "$PKG_CONFIG" && \ 29026 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5 29027 ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5 29028 ac_status=$? 29029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29030 test $ac_status = 0; }; then 29031 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "$LIBPCIACCESS" 2>/dev/null` 29032 test "x$?" != "x0" && pkg_failed=yes 29033else 29034 pkg_failed=yes 29035fi 29036 else 29037 pkg_failed=untried 29038fi 29039 29040 29041 29042if test $pkg_failed = yes; then 29043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29044$as_echo "no" >&6; } 29045 29046if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29047 _pkg_short_errors_supported=yes 29048else 29049 _pkg_short_errors_supported=no 29050fi 29051 if test $_pkg_short_errors_supported = yes; then 29052 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1` 29053 else 29054 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1` 29055 fi 29056 # Put the nasty error message in config.log where it belongs 29057 echo "$PCIACCESS_PKG_ERRORS" >&5 29058 29059 as_fn_error $? "Package requirements ($LIBPCIACCESS) were not met: 29060 29061$PCIACCESS_PKG_ERRORS 29062 29063Consider adjusting the PKG_CONFIG_PATH environment variable if you 29064installed software in a non-standard prefix. 29065 29066Alternatively, you may set the environment variables PCIACCESS_CFLAGS 29067and PCIACCESS_LIBS to avoid the need to call pkg-config. 29068See the pkg-config man page for more details." "$LINENO" 5 29069elif test $pkg_failed = untried; then 29070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29071$as_echo "no" >&6; } 29072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29074as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29075is in your PATH or set the PKG_CONFIG environment variable to the full 29076path to pkg-config. 29077 29078Alternatively, you may set the environment variables PCIACCESS_CFLAGS 29079and PCIACCESS_LIBS to avoid the need to call pkg-config. 29080See the pkg-config man page for more details. 29081 29082To get pkg-config, see <http://pkg-config.freedesktop.org/>. 29083See \`config.log' for more details" "$LINENO" 5; } 29084else 29085 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 29086 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 29087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29088$as_echo "yes" >&6; } 29089 29090fi 29091 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $LIBPCIACCESS" 29092 XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $LIBDRM_LIBS" 29093 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS $LIBDRM_CFLAGS" 29094 29095 29096$as_echo "#define XSERVER_LIBPCIACCESS 1" >>confdefs.h 29097 29098 29099 prefix_NONE= 29100 exec_prefix_NONE= 29101 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29102 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29103 eval ac_define_dir="\"$PCI_TXT_IDS_DIR\"" 29104 eval ac_define_dir="\"$ac_define_dir\"" 29105 PCI_TXT_IDS_PATH="$ac_define_dir" 29106 29107 29108cat >>confdefs.h <<_ACEOF 29109#define PCI_TXT_IDS_PATH "$ac_define_dir" 29110_ACEOF 29111 29112 test "$prefix_NONE" && prefix=NONE 29113 test "$exec_prefix_NONE" && exec_prefix=NONE 29114 29115 case $host_os in 29116 gnu* | freebsd* | kfreebsd*-gnu | netbsd* | openbsd* | solaris* | dragonfly*) 29117 xorg_bus_bsdpci="yes" 29118 ;; 29119 esac 29120 case $host_cpu in 29121 sparc*) 29122 xorg_bus_sparc="yes" 29123 ;; 29124 esac 29125 else 29126 if test "x$CONFIG_UDEV_KMS" = xyes; then 29127 as_fn_error $? "Platform device enumeration requires libpciaccess" "$LINENO" 5 29128 fi 29129 if test "x$INT10MODULE" = xyes && test "x$INT10" != xstub; then 29130 as_fn_error $? "Cannot build int10 without libpciaccess" "$LINENO" 5 29131 fi 29132 fi 29133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCI" >&5 29134$as_echo "$PCI" >&6; } 29135 29136 if test "x$CONFIG_UDEV_KMS" = xyes; then 29137 29138$as_echo "#define XSERVER_PLATFORM_BUS 1" >>confdefs.h 29139 29140 fi 29141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSERVER_PLATFORM_BUS" >&5 29142$as_echo "$XSERVER_PLATFORM_BUS" >&6; } 29143 29144 case $host_os in 29145 linux*) 29146 XORG_OS_SUBDIR="linux" 29147 linux_acpi="no" 29148 case $host_cpu in 29149 i*86|amd64*|x86_64*|ia64*) 29150 linux_acpi=$enable_linux_acpi 29151 ;; 29152 *) 29153 ;; 29154 esac 29155 for ac_header in linux/apm_bios.h 29156do : 29157 ac_fn_c_check_header_mongrel "$LINENO" "linux/apm_bios.h" "ac_cv_header_linux_apm_bios_h" "$ac_includes_default" 29158if test "x$ac_cv_header_linux_apm_bios_h" = xyes; then : 29159 cat >>confdefs.h <<_ACEOF 29160#define HAVE_LINUX_APM_BIOS_H 1 29161_ACEOF 29162 linux_apm=$enable_linux_apm 29163fi 29164 29165done 29166 29167 if test "x$linux_apm" = xyes -o "x$linux_acpi" = xyes; then 29168 29169$as_echo "#define XF86PM 1" >>confdefs.h 29170 29171 fi 29172 ;; 29173 freebsd* | kfreebsd*-gnu | dragonfly*) 29174 XORG_OS_SUBDIR="bsd" 29175 ;; 29176 netbsd*) 29177 XORG_OS_SUBDIR="bsd" 29178 ;; 29179 openbsd*) 29180 if test "x$ac_cv_BSD_APM" = xyes \ 29181 -o "x$ac_cv_BSD_KQUEUE_APM" = xyes; then 29182 XORG_CFLAGS="$XORG_CFLAGS -DXF86PM" 29183 fi 29184 XORG_OS_SUBDIR="bsd" 29185 ;; 29186 solaris*) 29187 XORG_OS_SUBDIR="solaris" 29188 XORG_CFLAGS="$XORG_CFLAGS -DXF86PM" 29189 for ac_header in sys/kd.h 29190do : 29191 ac_fn_c_check_header_mongrel "$LINENO" "sys/kd.h" "ac_cv_header_sys_kd_h" "$ac_includes_default" 29192if test "x$ac_cv_header_sys_kd_h" = xyes; then : 29193 cat >>confdefs.h <<_ACEOF 29194#define HAVE_SYS_KD_H 1 29195_ACEOF 29196 29197fi 29198 29199done 29200 29201 for ac_header in sys/vt.h 29202do : 29203 ac_fn_c_check_header_mongrel "$LINENO" "sys/vt.h" "ac_cv_header_sys_vt_h" "$ac_includes_default" 29204if test "x$ac_cv_header_sys_vt_h" = xyes; then : 29205 cat >>confdefs.h <<_ACEOF 29206#define HAVE_SYS_VT_H 1 29207_ACEOF 29208 solaris_vt=yes 29209else 29210 solaris_vt=no 29211fi 29212 29213done 29214 29215 # Check for minimum supported release 29216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris version" >&5 29217$as_echo_n "checking Solaris version... " >&6; } 29218 OS_MINOR=`echo ${host_os}|$SED -e 's/^.*solaris2\.//' -e s'/\..*$//'` 29219 if test "${OS_MINOR}" -ge 7 ; then 29220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris ${OS_MINOR}" >&5 29221$as_echo "Solaris ${OS_MINOR}" >&6; } 29222 else 29223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&5 29224$as_echo "Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&6; } 29225 fi 29226 if test "${OS_MINOR}" -lt 8 ; then 29227 as_fn_error $? "This release no longer supports Solaris versions older than Solaris 8." "$LINENO" 5 29228 fi 29229 ac_fn_c_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default" 29230if test "x$ac_cv_have_decl__LP64" = xyes; then : 29231 SOLARIS_64="yes" 29232else 29233 SOLARIS_64="no" 29234fi 29235 29236 29237 case $host_cpu in 29238 sparc*) 29239 SOLARIS_INOUT_ARCH="sparcv8plus" 29240 ;; 29241 i*86|x86_64*) 29242 if test x$SOLARIS_64 = xyes ; then 29243 SOLARIS_INOUT_ARCH="amd64" 29244 else 29245 SOLARIS_INOUT_ARCH="ia32" 29246 fi 29247 ;; 29248 *) 29249 as_fn_error $? "Unsupported Solaris platform. Only SPARC & x86 \ 29250 are supported on Solaris in this release. If you are \ 29251 interested in porting Xorg to your platform, please email \ 29252 xorg@lists.freedesktop.org." "$LINENO" 5 ;; 29253 esac 29254 29255 ;; 29256 gnu*) 29257 XORG_OS_SUBDIR="hurd" 29258 ;; 29259 cygwin*) 29260 XORG_OS_SUBDIR="stub" 29261 ;; 29262 *) 29263 XORG_OS_SUBDIR="stub" 29264 { $as_echo "$as_me:${as_lineno-$LINENO}: Your OS is unknown. If you are interested in porting Xorg to your platform, 29265please email xorg@lists.freedesktop.org." >&5 29266$as_echo "$as_me: Your OS is unknown. If you are interested in porting Xorg to your platform, 29267please email xorg@lists.freedesktop.org." >&6;} 29268 ;; 29269 esac 29270 29271 if test "x$DGA" = xauto; then 29272 29273pkg_failed=no 29274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5 29275$as_echo_n "checking for DGA... " >&6; } 29276 29277if test -n "$DGA_CFLAGS"; then 29278 pkg_cv_DGA_CFLAGS="$DGA_CFLAGS" 29279 elif test -n "$PKG_CONFIG"; then 29280 if test -n "$PKG_CONFIG" && \ 29281 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 29282 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 29283 ac_status=$? 29284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29285 test $ac_status = 0; }; then 29286 pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null` 29287 test "x$?" != "x0" && pkg_failed=yes 29288else 29289 pkg_failed=yes 29290fi 29291 else 29292 pkg_failed=untried 29293fi 29294if test -n "$DGA_LIBS"; then 29295 pkg_cv_DGA_LIBS="$DGA_LIBS" 29296 elif test -n "$PKG_CONFIG"; then 29297 if test -n "$PKG_CONFIG" && \ 29298 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 29299 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 29300 ac_status=$? 29301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29302 test $ac_status = 0; }; then 29303 pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null` 29304 test "x$?" != "x0" && pkg_failed=yes 29305else 29306 pkg_failed=yes 29307fi 29308 else 29309 pkg_failed=untried 29310fi 29311 29312 29313 29314if test $pkg_failed = yes; then 29315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29316$as_echo "no" >&6; } 29317 29318if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29319 _pkg_short_errors_supported=yes 29320else 29321 _pkg_short_errors_supported=no 29322fi 29323 if test $_pkg_short_errors_supported = yes; then 29324 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1` 29325 else 29326 DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1` 29327 fi 29328 # Put the nasty error message in config.log where it belongs 29329 echo "$DGA_PKG_ERRORS" >&5 29330 29331 DGA=no 29332elif test $pkg_failed = untried; then 29333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29334$as_echo "no" >&6; } 29335 DGA=no 29336else 29337 DGA_CFLAGS=$pkg_cv_DGA_CFLAGS 29338 DGA_LIBS=$pkg_cv_DGA_LIBS 29339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29340$as_echo "yes" >&6; } 29341 DGA=yes 29342fi 29343 fi 29344 if test "x$DGA" = xyes; then 29345 XORG_MODULES="$XORG_MODULES $DGAPROTO" 29346 29347pkg_failed=no 29348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5 29349$as_echo_n "checking for DGA... " >&6; } 29350 29351if test -n "$DGA_CFLAGS"; then 29352 pkg_cv_DGA_CFLAGS="$DGA_CFLAGS" 29353 elif test -n "$PKG_CONFIG"; then 29354 if test -n "$PKG_CONFIG" && \ 29355 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 29356 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 29357 ac_status=$? 29358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29359 test $ac_status = 0; }; then 29360 pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null` 29361 test "x$?" != "x0" && pkg_failed=yes 29362else 29363 pkg_failed=yes 29364fi 29365 else 29366 pkg_failed=untried 29367fi 29368if test -n "$DGA_LIBS"; then 29369 pkg_cv_DGA_LIBS="$DGA_LIBS" 29370 elif test -n "$PKG_CONFIG"; then 29371 if test -n "$PKG_CONFIG" && \ 29372 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 29373 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 29374 ac_status=$? 29375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29376 test $ac_status = 0; }; then 29377 pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null` 29378 test "x$?" != "x0" && pkg_failed=yes 29379else 29380 pkg_failed=yes 29381fi 29382 else 29383 pkg_failed=untried 29384fi 29385 29386 29387 29388if test $pkg_failed = yes; then 29389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29390$as_echo "no" >&6; } 29391 29392if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29393 _pkg_short_errors_supported=yes 29394else 29395 _pkg_short_errors_supported=no 29396fi 29397 if test $_pkg_short_errors_supported = yes; then 29398 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1` 29399 else 29400 DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1` 29401 fi 29402 # Put the nasty error message in config.log where it belongs 29403 echo "$DGA_PKG_ERRORS" >&5 29404 29405 as_fn_error $? "Package requirements ($DGAPROTO) were not met: 29406 29407$DGA_PKG_ERRORS 29408 29409Consider adjusting the PKG_CONFIG_PATH environment variable if you 29410installed software in a non-standard prefix. 29411 29412Alternatively, you may set the environment variables DGA_CFLAGS 29413and DGA_LIBS to avoid the need to call pkg-config. 29414See the pkg-config man page for more details." "$LINENO" 5 29415elif test $pkg_failed = untried; then 29416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29417$as_echo "no" >&6; } 29418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29420as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29421is in your PATH or set the PKG_CONFIG environment variable to the full 29422path to pkg-config. 29423 29424Alternatively, you may set the environment variables DGA_CFLAGS 29425and DGA_LIBS to avoid the need to call pkg-config. 29426See the pkg-config man page for more details. 29427 29428To get pkg-config, see <http://pkg-config.freedesktop.org/>. 29429See \`config.log' for more details" "$LINENO" 5; } 29430else 29431 DGA_CFLAGS=$pkg_cv_DGA_CFLAGS 29432 DGA_LIBS=$pkg_cv_DGA_LIBS 29433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29434$as_echo "yes" >&6; } 29435 29436fi 29437 29438$as_echo "#define DGA 1" >>confdefs.h 29439 29440 29441$as_echo "#define XFreeXDGA 1" >>confdefs.h 29442 29443 fi 29444 29445 if test "x$XF86VIDMODE" = xyes; then 29446 XORG_MODULES="$XORG_MODULES $VIDMODEPROTO" 29447 fi 29448 29449 if test -n "$XORG_MODULES"; then 29450 29451pkg_failed=no 29452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG_MODULES" >&5 29453$as_echo_n "checking for XORG_MODULES... " >&6; } 29454 29455if test -n "$XORG_MODULES_CFLAGS"; then 29456 pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS" 29457 elif test -n "$PKG_CONFIG"; then 29458 if test -n "$PKG_CONFIG" && \ 29459 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5 29460 ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5 29461 ac_status=$? 29462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29463 test $ac_status = 0; }; then 29464 pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null` 29465 test "x$?" != "x0" && pkg_failed=yes 29466else 29467 pkg_failed=yes 29468fi 29469 else 29470 pkg_failed=untried 29471fi 29472if test -n "$XORG_MODULES_LIBS"; then 29473 pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS" 29474 elif test -n "$PKG_CONFIG"; then 29475 if test -n "$PKG_CONFIG" && \ 29476 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5 29477 ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5 29478 ac_status=$? 29479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29480 test $ac_status = 0; }; then 29481 pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null` 29482 test "x$?" != "x0" && pkg_failed=yes 29483else 29484 pkg_failed=yes 29485fi 29486 else 29487 pkg_failed=untried 29488fi 29489 29490 29491 29492if test $pkg_failed = yes; then 29493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29494$as_echo "no" >&6; } 29495 29496if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29497 _pkg_short_errors_supported=yes 29498else 29499 _pkg_short_errors_supported=no 29500fi 29501 if test $_pkg_short_errors_supported = yes; then 29502 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XORG_MODULES" 2>&1` 29503 else 29504 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XORG_MODULES" 2>&1` 29505 fi 29506 # Put the nasty error message in config.log where it belongs 29507 echo "$XORG_MODULES_PKG_ERRORS" >&5 29508 29509 as_fn_error $? "Package requirements ($XORG_MODULES) were not met: 29510 29511$XORG_MODULES_PKG_ERRORS 29512 29513Consider adjusting the PKG_CONFIG_PATH environment variable if you 29514installed software in a non-standard prefix. 29515 29516Alternatively, you may set the environment variables XORG_MODULES_CFLAGS 29517and XORG_MODULES_LIBS to avoid the need to call pkg-config. 29518See the pkg-config man page for more details." "$LINENO" 5 29519elif test $pkg_failed = untried; then 29520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29521$as_echo "no" >&6; } 29522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29524as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29525is in your PATH or set the PKG_CONFIG environment variable to the full 29526path to pkg-config. 29527 29528Alternatively, you may set the environment variables XORG_MODULES_CFLAGS 29529and XORG_MODULES_LIBS to avoid the need to call pkg-config. 29530See the pkg-config man page for more details. 29531 29532To get pkg-config, see <http://pkg-config.freedesktop.org/>. 29533See \`config.log' for more details" "$LINENO" 5; } 29534else 29535 XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS 29536 XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS 29537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29538$as_echo "yes" >&6; } 29539 29540fi 29541 XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS" 29542 XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS" 29543 fi 29544 29545 if test "x$DRM" = xyes; then 29546 XORG_DRIVER_MODESETTING=yes 29547 fi 29548 29549 29550 29551 29552 29553 29554 29555 XF86CONFIGFILE="xorg.conf" 29556 XF86CONFIGDIR="xorg.conf.d" 29557 29558 CONFIGFILE="$sysconfdir/$XF86CONFIGFILE" 29559 LOGPREFIX="Xorg." 29560 XDG_DATA_HOME=".local/share" 29561 XDG_DATA_HOME_LOGDIR="xorg" 29562 29563$as_echo "#define XORG_SERVER 1" >>confdefs.h 29564 29565 29566$as_echo "#define XORGSERVER 1" >>confdefs.h 29567 29568 29569$as_echo "#define XFree86Server 1" >>confdefs.h 29570 29571 29572cat >>confdefs.h <<_ACEOF 29573#define XORG_VERSION_CURRENT $VENDOR_RELEASE 29574_ACEOF 29575 29576 29577$as_echo "#define NEED_XF86_TYPES 1" >>confdefs.h 29578 29579 29580$as_echo "#define NEED_XF86_PROTOTYPES 1" >>confdefs.h 29581 29582 29583$as_echo "#define __XSERVERNAME__ \"Xorg\"" >>confdefs.h 29584 29585 29586 prefix_NONE= 29587 exec_prefix_NONE= 29588 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29589 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29590 eval ac_define_dir="\"$XF86CONFIGFILE\"" 29591 eval ac_define_dir="\"$ac_define_dir\"" 29592 XCONFIGFILE="$ac_define_dir" 29593 29594 29595cat >>confdefs.h <<_ACEOF 29596#define XCONFIGFILE "$ac_define_dir" 29597_ACEOF 29598 29599 test "$prefix_NONE" && prefix=NONE 29600 test "$exec_prefix_NONE" && exec_prefix=NONE 29601 29602 29603 prefix_NONE= 29604 exec_prefix_NONE= 29605 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29606 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29607 eval ac_define_dir="\"$XF86CONFIGFILE\"" 29608 eval ac_define_dir="\"$ac_define_dir\"" 29609 XF86CONFIGFILE="$ac_define_dir" 29610 29611 29612cat >>confdefs.h <<_ACEOF 29613#define XF86CONFIGFILE "$ac_define_dir" 29614_ACEOF 29615 29616 test "$prefix_NONE" && prefix=NONE 29617 test "$exec_prefix_NONE" && exec_prefix=NONE 29618 29619 29620 prefix_NONE= 29621 exec_prefix_NONE= 29622 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29623 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29624 eval ac_define_dir="\"$XF86CONFIGDIR\"" 29625 eval ac_define_dir="\"$ac_define_dir\"" 29626 XCONFIGDIR="$ac_define_dir" 29627 29628 29629cat >>confdefs.h <<_ACEOF 29630#define XCONFIGDIR "$ac_define_dir" 29631_ACEOF 29632 29633 test "$prefix_NONE" && prefix=NONE 29634 test "$exec_prefix_NONE" && exec_prefix=NONE 29635 29636 29637 prefix_NONE= 29638 exec_prefix_NONE= 29639 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29640 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29641 eval ac_define_dir="\"$moduledir\"" 29642 eval ac_define_dir="\"$ac_define_dir\"" 29643 DEFAULT_MODULE_PATH="$ac_define_dir" 29644 29645 29646cat >>confdefs.h <<_ACEOF 29647#define DEFAULT_MODULE_PATH "$ac_define_dir" 29648_ACEOF 29649 29650 test "$prefix_NONE" && prefix=NONE 29651 test "$exec_prefix_NONE" && exec_prefix=NONE 29652 29653 29654 prefix_NONE= 29655 exec_prefix_NONE= 29656 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29657 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29658 eval ac_define_dir="\"$libdir\"" 29659 eval ac_define_dir="\"$ac_define_dir\"" 29660 DEFAULT_LIBRARY_PATH="$ac_define_dir" 29661 29662 29663cat >>confdefs.h <<_ACEOF 29664#define DEFAULT_LIBRARY_PATH "$ac_define_dir" 29665_ACEOF 29666 29667 test "$prefix_NONE" && prefix=NONE 29668 test "$exec_prefix_NONE" && exec_prefix=NONE 29669 29670 29671 prefix_NONE= 29672 exec_prefix_NONE= 29673 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29674 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29675 eval ac_define_dir="\"$logdir\"" 29676 eval ac_define_dir="\"$ac_define_dir\"" 29677 DEFAULT_LOGDIR="$ac_define_dir" 29678 29679 29680cat >>confdefs.h <<_ACEOF 29681#define DEFAULT_LOGDIR "$ac_define_dir" 29682_ACEOF 29683 29684 test "$prefix_NONE" && prefix=NONE 29685 test "$exec_prefix_NONE" && exec_prefix=NONE 29686 29687 29688 prefix_NONE= 29689 exec_prefix_NONE= 29690 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29691 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29692 eval ac_define_dir="\"$LOGPREFIX\"" 29693 eval ac_define_dir="\"$ac_define_dir\"" 29694 DEFAULT_LOGPREFIX="$ac_define_dir" 29695 29696 29697cat >>confdefs.h <<_ACEOF 29698#define DEFAULT_LOGPREFIX "$ac_define_dir" 29699_ACEOF 29700 29701 test "$prefix_NONE" && prefix=NONE 29702 test "$exec_prefix_NONE" && exec_prefix=NONE 29703 29704 29705 prefix_NONE= 29706 exec_prefix_NONE= 29707 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29708 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29709 eval ac_define_dir="\"$XDG_DATA_HOME\"" 29710 eval ac_define_dir="\"$ac_define_dir\"" 29711 DEFAULT_XDG_DATA_HOME="$ac_define_dir" 29712 29713 29714cat >>confdefs.h <<_ACEOF 29715#define DEFAULT_XDG_DATA_HOME "$ac_define_dir" 29716_ACEOF 29717 29718 test "$prefix_NONE" && prefix=NONE 29719 test "$exec_prefix_NONE" && exec_prefix=NONE 29720 29721 29722 prefix_NONE= 29723 exec_prefix_NONE= 29724 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29725 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29726 eval ac_define_dir="\"$XDG_DATA_HOME_LOGDIR\"" 29727 eval ac_define_dir="\"$ac_define_dir\"" 29728 DEFAULT_XDG_DATA_HOME_LOGDIR="$ac_define_dir" 29729 29730 29731cat >>confdefs.h <<_ACEOF 29732#define DEFAULT_XDG_DATA_HOME_LOGDIR "$ac_define_dir" 29733_ACEOF 29734 29735 test "$prefix_NONE" && prefix=NONE 29736 test "$exec_prefix_NONE" && exec_prefix=NONE 29737 29738 29739cat >>confdefs.h <<_ACEOF 29740#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB" 29741_ACEOF 29742 29743 if test "x$VGAHW" = xyes; then 29744 29745$as_echo "#define WITH_VGAHW 1" >>confdefs.h 29746 29747 fi 29748 29749 driverdir="$moduledir/drivers" 29750 29751 29752 sdkdir="$includedir/xorg" 29753 extdir="$includedir/X11/extensions" 29754 sysconfigdir="$datadir/X11/$XF86CONFIGDIR" 29755 29756 29757 29758 29759 29760 # stuff the ABI versions into the pc file too 29761 extract_abi() { 29762 grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' ' .' | awk '{ print $4$5 }' 29763 } 29764 abi_ansic=`extract_abi ANSIC` 29765 abi_videodrv=`extract_abi VIDEODRV` 29766 abi_xinput=`extract_abi XINPUT` 29767 abi_extension=`extract_abi EXTENSION` 29768 29769 29770 29771 29772fi 29773 if test "x$XORG" = xyes; then 29774 XORG_TRUE= 29775 XORG_FALSE='#' 29776else 29777 XORG_TRUE='#' 29778 XORG_FALSE= 29779fi 29780 29781 if test "x$PCI" = xyes; then 29782 XORG_BUS_PCI_TRUE= 29783 XORG_BUS_PCI_FALSE='#' 29784else 29785 XORG_BUS_PCI_TRUE='#' 29786 XORG_BUS_PCI_FALSE= 29787fi 29788 29789 if test "x$xorg_bus_bsdpci" = xyes; then 29790 XORG_BUS_BSDPCI_TRUE= 29791 XORG_BUS_BSDPCI_FALSE='#' 29792else 29793 XORG_BUS_BSDPCI_TRUE='#' 29794 XORG_BUS_BSDPCI_FALSE= 29795fi 29796 29797 if test "x$xorg_bus_sparc" = xyes; then 29798 XORG_BUS_SPARC_TRUE= 29799 XORG_BUS_SPARC_FALSE='#' 29800else 29801 XORG_BUS_SPARC_TRUE='#' 29802 XORG_BUS_SPARC_FALSE= 29803fi 29804 29805 if test "x$linux_acpi" = xyes; then 29806 LNXACPI_TRUE= 29807 LNXACPI_FALSE='#' 29808else 29809 LNXACPI_TRUE='#' 29810 LNXACPI_FALSE= 29811fi 29812 29813 if test "x$linux_apm" = xyes; then 29814 LNXAPM_TRUE= 29815 LNXAPM_FALSE='#' 29816else 29817 LNXAPM_TRUE='#' 29818 LNXAPM_FALSE= 29819fi 29820 29821 if test "x$solaris_vt" = xyes; then 29822 SOLARIS_VT_TRUE= 29823 SOLARIS_VT_FALSE='#' 29824else 29825 SOLARIS_VT_TRUE='#' 29826 SOLARIS_VT_FALSE= 29827fi 29828 29829 if test "x$DGA" = xyes; then 29830 DGA_TRUE= 29831 DGA_FALSE='#' 29832else 29833 DGA_TRUE='#' 29834 DGA_FALSE= 29835fi 29836 29837 if test "x$CONFIG_UDEV_KMS" = xyes; then 29838 XORG_BUS_PLATFORM_TRUE= 29839 XORG_BUS_PLATFORM_FALSE='#' 29840else 29841 XORG_BUS_PLATFORM_TRUE='#' 29842 XORG_BUS_PLATFORM_FALSE= 29843fi 29844 29845 if test "x$XORG_DRIVER_MODESETTING" = xyes; then 29846 XORG_DRIVER_MODESETTING_TRUE= 29847 XORG_DRIVER_MODESETTING_FALSE='#' 29848else 29849 XORG_DRIVER_MODESETTING_TRUE='#' 29850 XORG_DRIVER_MODESETTING_FALSE= 29851fi 29852 29853 29854if test "x$GLAMOR" = xauto; then 29855 if echo "$XORG" "$XEPHYR" "$XWAYLAND" | grep -q yes ; then 29856 GLAMOR=yes 29857 fi 29858fi 29859 29860 if test "x$GLAMOR" = xyes; then 29861 GLAMOR_TRUE= 29862 GLAMOR_FALSE='#' 29863else 29864 GLAMOR_TRUE='#' 29865 GLAMOR_FALSE= 29866fi 29867 29868 29869if test "x$GLAMOR" = xyes; then 29870 29871$as_echo "#define GLAMOR 1" >>confdefs.h 29872 29873 29874pkg_failed=no 29875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLAMOR" >&5 29876$as_echo_n "checking for GLAMOR... " >&6; } 29877 29878if test -n "$GLAMOR_CFLAGS"; then 29879 pkg_cv_GLAMOR_CFLAGS="$GLAMOR_CFLAGS" 29880 elif test -n "$PKG_CONFIG"; then 29881 if test -n "$PKG_CONFIG" && \ 29882 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5 29883 ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5 29884 ac_status=$? 29885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29886 test $ac_status = 0; }; then 29887 pkg_cv_GLAMOR_CFLAGS=`$PKG_CONFIG --cflags "epoxy" 2>/dev/null` 29888 test "x$?" != "x0" && pkg_failed=yes 29889else 29890 pkg_failed=yes 29891fi 29892 else 29893 pkg_failed=untried 29894fi 29895if test -n "$GLAMOR_LIBS"; then 29896 pkg_cv_GLAMOR_LIBS="$GLAMOR_LIBS" 29897 elif test -n "$PKG_CONFIG"; then 29898 if test -n "$PKG_CONFIG" && \ 29899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5 29900 ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5 29901 ac_status=$? 29902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29903 test $ac_status = 0; }; then 29904 pkg_cv_GLAMOR_LIBS=`$PKG_CONFIG --libs "epoxy" 2>/dev/null` 29905 test "x$?" != "x0" && pkg_failed=yes 29906else 29907 pkg_failed=yes 29908fi 29909 else 29910 pkg_failed=untried 29911fi 29912 29913 29914 29915if test $pkg_failed = yes; then 29916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29917$as_echo "no" >&6; } 29918 29919if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29920 _pkg_short_errors_supported=yes 29921else 29922 _pkg_short_errors_supported=no 29923fi 29924 if test $_pkg_short_errors_supported = yes; then 29925 GLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "epoxy" 2>&1` 29926 else 29927 GLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "epoxy" 2>&1` 29928 fi 29929 # Put the nasty error message in config.log where it belongs 29930 echo "$GLAMOR_PKG_ERRORS" >&5 29931 29932 as_fn_error $? "Package requirements (epoxy) were not met: 29933 29934$GLAMOR_PKG_ERRORS 29935 29936Consider adjusting the PKG_CONFIG_PATH environment variable if you 29937installed software in a non-standard prefix. 29938 29939Alternatively, you may set the environment variables GLAMOR_CFLAGS 29940and GLAMOR_LIBS to avoid the need to call pkg-config. 29941See the pkg-config man page for more details." "$LINENO" 5 29942elif test $pkg_failed = untried; then 29943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29944$as_echo "no" >&6; } 29945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29947as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29948is in your PATH or set the PKG_CONFIG environment variable to the full 29949path to pkg-config. 29950 29951Alternatively, you may set the environment variables GLAMOR_CFLAGS 29952and GLAMOR_LIBS to avoid the need to call pkg-config. 29953See the pkg-config man page for more details. 29954 29955To get pkg-config, see <http://pkg-config.freedesktop.org/>. 29956See \`config.log' for more details" "$LINENO" 5; } 29957else 29958 GLAMOR_CFLAGS=$pkg_cv_GLAMOR_CFLAGS 29959 GLAMOR_LIBS=$pkg_cv_GLAMOR_LIBS 29960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29961$as_echo "yes" >&6; } 29962 29963fi 29964 29965 if test -n "$PKG_CONFIG" && \ 29966 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.4.4\""; } >&5 29967 ($PKG_CONFIG --exists --print-errors "epoxy >= 1.4.4") 2>&5 29968 ac_status=$? 29969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29970 test $ac_status = 0; }; then 29971 29972$as_echo "#define GLAMOR_HAS_EGL_QUERY_DMABUF 1" >>confdefs.h 29973 29974fi 29975 29976 29977pkg_failed=no 29978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GBM" >&5 29979$as_echo_n "checking for GBM... " >&6; } 29980 29981if test -n "$GBM_CFLAGS"; then 29982 pkg_cv_GBM_CFLAGS="$GBM_CFLAGS" 29983 elif test -n "$PKG_CONFIG"; then 29984 if test -n "$PKG_CONFIG" && \ 29985 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5 29986 ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5 29987 ac_status=$? 29988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29989 test $ac_status = 0; }; then 29990 pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags ""$LIBGBM"" 2>/dev/null` 29991 test "x$?" != "x0" && pkg_failed=yes 29992else 29993 pkg_failed=yes 29994fi 29995 else 29996 pkg_failed=untried 29997fi 29998if test -n "$GBM_LIBS"; then 29999 pkg_cv_GBM_LIBS="$GBM_LIBS" 30000 elif test -n "$PKG_CONFIG"; then 30001 if test -n "$PKG_CONFIG" && \ 30002 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5 30003 ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5 30004 ac_status=$? 30005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30006 test $ac_status = 0; }; then 30007 pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs ""$LIBGBM"" 2>/dev/null` 30008 test "x$?" != "x0" && pkg_failed=yes 30009else 30010 pkg_failed=yes 30011fi 30012 else 30013 pkg_failed=untried 30014fi 30015 30016 30017 30018if test $pkg_failed = yes; then 30019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30020$as_echo "no" >&6; } 30021 30022if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30023 _pkg_short_errors_supported=yes 30024else 30025 _pkg_short_errors_supported=no 30026fi 30027 if test $_pkg_short_errors_supported = yes; then 30028 GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""$LIBGBM"" 2>&1` 30029 else 30030 GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""$LIBGBM"" 2>&1` 30031 fi 30032 # Put the nasty error message in config.log where it belongs 30033 echo "$GBM_PKG_ERRORS" >&5 30034 30035 GBM=no 30036elif test $pkg_failed = untried; then 30037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30038$as_echo "no" >&6; } 30039 GBM=no 30040else 30041 GBM_CFLAGS=$pkg_cv_GBM_CFLAGS 30042 GBM_LIBS=$pkg_cv_GBM_LIBS 30043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30044$as_echo "yes" >&6; } 30045 GBM=yes 30046fi 30047 if test "x$GBM" = xyes; then 30048 30049$as_echo "#define GLAMOR_HAS_GBM 1" >>confdefs.h 30050 30051 ac_fn_c_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h> 30052 #include <gbm.h> 30053" 30054if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes; then : 30055 30056$as_echo "#define GLAMOR_HAS_GBM_LINEAR 1" >>confdefs.h 30057 30058fi 30059 30060 if test -n "$PKG_CONFIG" && \ 30061 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 17.1.0\""; } >&5 30062 ($PKG_CONFIG --exists --print-errors "gbm >= 17.1.0") 2>&5 30063 ac_status=$? 30064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30065 test $ac_status = 0; }; then 30066 30067$as_echo "#define GBM_BO_WITH_MODIFIERS 1" >>confdefs.h 30068 30069fi 30070 else 30071 if test "x$XORG" = xyes; then 30072 as_fn_error $? "Glamor for Xorg requires $LIBGBM" "$LINENO" 5 30073 fi 30074 fi 30075fi 30076 if test "x$GBM" = xyes; then 30077 GLAMOR_EGL_TRUE= 30078 GLAMOR_EGL_FALSE='#' 30079else 30080 GLAMOR_EGL_TRUE='#' 30081 GLAMOR_EGL_FALSE= 30082fi 30083 30084 30085 30086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build XWin DDX" >&5 30087$as_echo_n "checking whether to build XWin DDX... " >&6; } 30088if test "x$XWIN" = xauto; then 30089 case $host_os in 30090 cygwin*) XWIN="yes" ;; 30091 mingw*) XWIN="yes" ;; 30092 *) XWIN="no" ;; 30093 esac 30094fi 30095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XWIN" >&5 30096$as_echo "$XWIN" >&6; } 30097 30098if test "x$XWIN" = xyes; then 30099 30100 prefix_NONE= 30101 exec_prefix_NONE= 30102 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 30103 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 30104 eval ac_define_dir="\"$logdir\"" 30105 eval ac_define_dir="\"$ac_define_dir\"" 30106 DEFAULT_LOGDIR="$ac_define_dir" 30107 30108 30109cat >>confdefs.h <<_ACEOF 30110#define DEFAULT_LOGDIR "$ac_define_dir" 30111_ACEOF 30112 30113 test "$prefix_NONE" && prefix=NONE 30114 test "$exec_prefix_NONE" && exec_prefix=NONE 30115 30116 30117cat >>confdefs.h <<_ACEOF 30118#define XORG_VERSION_CURRENT $VENDOR_RELEASE 30119_ACEOF 30120 30121 30122cat >>confdefs.h <<_ACEOF 30123#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB" 30124_ACEOF 30125 30126 if test -n "$ac_tool_prefix"; then 30127 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 30128set dummy ${ac_tool_prefix}windres; ac_word=$2 30129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30130$as_echo_n "checking for $ac_word... " >&6; } 30131if ${ac_cv_prog_WINDRES+:} false; then : 30132 $as_echo_n "(cached) " >&6 30133else 30134 if test -n "$WINDRES"; then 30135 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 30136else 30137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30138for as_dir in $PATH 30139do 30140 IFS=$as_save_IFS 30141 test -z "$as_dir" && as_dir=. 30142 for ac_exec_ext in '' $ac_executable_extensions; do 30143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30144 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 30145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30146 break 2 30147 fi 30148done 30149 done 30150IFS=$as_save_IFS 30151 30152fi 30153fi 30154WINDRES=$ac_cv_prog_WINDRES 30155if test -n "$WINDRES"; then 30156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 30157$as_echo "$WINDRES" >&6; } 30158else 30159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30160$as_echo "no" >&6; } 30161fi 30162 30163 30164fi 30165if test -z "$ac_cv_prog_WINDRES"; then 30166 ac_ct_WINDRES=$WINDRES 30167 # Extract the first word of "windres", so it can be a program name with args. 30168set dummy windres; ac_word=$2 30169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30170$as_echo_n "checking for $ac_word... " >&6; } 30171if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 30172 $as_echo_n "(cached) " >&6 30173else 30174 if test -n "$ac_ct_WINDRES"; then 30175 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 30176else 30177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30178for as_dir in $PATH 30179do 30180 IFS=$as_save_IFS 30181 test -z "$as_dir" && as_dir=. 30182 for ac_exec_ext in '' $ac_executable_extensions; do 30183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30184 ac_cv_prog_ac_ct_WINDRES="windres" 30185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30186 break 2 30187 fi 30188done 30189 done 30190IFS=$as_save_IFS 30191 30192fi 30193fi 30194ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 30195if test -n "$ac_ct_WINDRES"; then 30196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 30197$as_echo "$ac_ct_WINDRES" >&6; } 30198else 30199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30200$as_echo "no" >&6; } 30201fi 30202 30203 if test "x$ac_ct_WINDRES" = x; then 30204 WINDRES="" 30205 else 30206 case $cross_compiling:$ac_tool_warned in 30207yes:) 30208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30210ac_tool_warned=yes ;; 30211esac 30212 WINDRES=$ac_ct_WINDRES 30213 fi 30214else 30215 WINDRES="$ac_cv_prog_WINDRES" 30216fi 30217 30218 30219 30220pkg_failed=no 30221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWINMODULES" >&5 30222$as_echo_n "checking for XWINMODULES... " >&6; } 30223 30224if test -n "$XWINMODULES_CFLAGS"; then 30225 pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS" 30226 elif test -n "$PKG_CONFIG"; then 30227 if test -n "$PKG_CONFIG" && \ 30228 { { $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 30229 ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm") 2>&5 30230 ac_status=$? 30231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30232 test $ac_status = 0; }; then 30233 pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm" 2>/dev/null` 30234 test "x$?" != "x0" && pkg_failed=yes 30235else 30236 pkg_failed=yes 30237fi 30238 else 30239 pkg_failed=untried 30240fi 30241if test -n "$XWINMODULES_LIBS"; then 30242 pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS" 30243 elif test -n "$PKG_CONFIG"; then 30244 if test -n "$PKG_CONFIG" && \ 30245 { { $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 30246 ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm") 2>&5 30247 ac_status=$? 30248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30249 test $ac_status = 0; }; then 30250 pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm" 2>/dev/null` 30251 test "x$?" != "x0" && pkg_failed=yes 30252else 30253 pkg_failed=yes 30254fi 30255 else 30256 pkg_failed=untried 30257fi 30258 30259 30260 30261if test $pkg_failed = yes; then 30262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30263$as_echo "no" >&6; } 30264 30265if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30266 _pkg_short_errors_supported=yes 30267else 30268 _pkg_short_errors_supported=no 30269fi 30270 if test $_pkg_short_errors_supported = yes; then 30271 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` 30272 else 30273 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` 30274 fi 30275 # Put the nasty error message in config.log where it belongs 30276 echo "$XWINMODULES_PKG_ERRORS" >&5 30277 30278 as_fn_error $? "Package requirements (x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm) were not met: 30279 30280$XWINMODULES_PKG_ERRORS 30281 30282Consider adjusting the PKG_CONFIG_PATH environment variable if you 30283installed software in a non-standard prefix. 30284 30285Alternatively, you may set the environment variables XWINMODULES_CFLAGS 30286and XWINMODULES_LIBS to avoid the need to call pkg-config. 30287See the pkg-config man page for more details." "$LINENO" 5 30288elif test $pkg_failed = untried; then 30289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30290$as_echo "no" >&6; } 30291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30293as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30294is in your PATH or set the PKG_CONFIG environment variable to the full 30295path to pkg-config. 30296 30297Alternatively, you may set the environment variables XWINMODULES_CFLAGS 30298and XWINMODULES_LIBS to avoid the need to call pkg-config. 30299See the pkg-config man page for more details. 30300 30301To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30302See \`config.log' for more details" "$LINENO" 5; } 30303else 30304 XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS 30305 XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS 30306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30307$as_echo "yes" >&6; } 30308 30309fi 30310 30311 if test "x$WINDOWSWM" = xauto; then 30312 if test -n "$PKG_CONFIG" && \ 30313 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5 30314 ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5 30315 ac_status=$? 30316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30317 test $ac_status = 0; }; then 30318 WINDOWSWM=yes 30319else 30320 WINDOWSWM=no 30321fi 30322 fi 30323 if test "x$WINDOWSWM" = xyes ; then 30324 30325pkg_failed=no 30326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WINDOWSWM" >&5 30327$as_echo_n "checking for WINDOWSWM... " >&6; } 30328 30329if test -n "$WINDOWSWM_CFLAGS"; then 30330 pkg_cv_WINDOWSWM_CFLAGS="$WINDOWSWM_CFLAGS" 30331 elif test -n "$PKG_CONFIG"; then 30332 if test -n "$PKG_CONFIG" && \ 30333 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5 30334 ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5 30335 ac_status=$? 30336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30337 test $ac_status = 0; }; then 30338 pkg_cv_WINDOWSWM_CFLAGS=`$PKG_CONFIG --cflags "$WINDOWSWMPROTO" 2>/dev/null` 30339 test "x$?" != "x0" && pkg_failed=yes 30340else 30341 pkg_failed=yes 30342fi 30343 else 30344 pkg_failed=untried 30345fi 30346if test -n "$WINDOWSWM_LIBS"; then 30347 pkg_cv_WINDOWSWM_LIBS="$WINDOWSWM_LIBS" 30348 elif test -n "$PKG_CONFIG"; then 30349 if test -n "$PKG_CONFIG" && \ 30350 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5 30351 ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5 30352 ac_status=$? 30353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30354 test $ac_status = 0; }; then 30355 pkg_cv_WINDOWSWM_LIBS=`$PKG_CONFIG --libs "$WINDOWSWMPROTO" 2>/dev/null` 30356 test "x$?" != "x0" && pkg_failed=yes 30357else 30358 pkg_failed=yes 30359fi 30360 else 30361 pkg_failed=untried 30362fi 30363 30364 30365 30366if test $pkg_failed = yes; then 30367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30368$as_echo "no" >&6; } 30369 30370if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30371 _pkg_short_errors_supported=yes 30372else 30373 _pkg_short_errors_supported=no 30374fi 30375 if test $_pkg_short_errors_supported = yes; then 30376 WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WINDOWSWMPROTO" 2>&1` 30377 else 30378 WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WINDOWSWMPROTO" 2>&1` 30379 fi 30380 # Put the nasty error message in config.log where it belongs 30381 echo "$WINDOWSWM_PKG_ERRORS" >&5 30382 30383 as_fn_error $? "Package requirements ($WINDOWSWMPROTO) were not met: 30384 30385$WINDOWSWM_PKG_ERRORS 30386 30387Consider adjusting the PKG_CONFIG_PATH environment variable if you 30388installed software in a non-standard prefix. 30389 30390Alternatively, you may set the environment variables WINDOWSWM_CFLAGS 30391and WINDOWSWM_LIBS to avoid the need to call pkg-config. 30392See the pkg-config man page for more details." "$LINENO" 5 30393elif test $pkg_failed = untried; then 30394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30395$as_echo "no" >&6; } 30396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30398as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30399is in your PATH or set the PKG_CONFIG environment variable to the full 30400path to pkg-config. 30401 30402Alternatively, you may set the environment variables WINDOWSWM_CFLAGS 30403and WINDOWSWM_LIBS to avoid the need to call pkg-config. 30404See the pkg-config man page for more details. 30405 30406To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30407See \`config.log' for more details" "$LINENO" 5; } 30408else 30409 WINDOWSWM_CFLAGS=$pkg_cv_WINDOWSWM_CFLAGS 30410 WINDOWSWM_LIBS=$pkg_cv_WINDOWSWM_LIBS 30411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30412$as_echo "yes" >&6; } 30413 30414fi 30415 XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS $WINDOWSWM_CFLAGS" 30416 30417$as_echo "#define ROOTLESS 1" >>confdefs.h 30418 30419 fi 30420 30421 if test "x$WINDOWSDRI" = xauto; then 30422 if test -n "$PKG_CONFIG" && \ 30423 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 30424 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 30425 ac_status=$? 30426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30427 test $ac_status = 0; }; then 30428 WINDOWSDRI=yes 30429else 30430 WINDOWSDRI=no 30431fi 30432 fi 30433 if test "x$WINDOWSDRI" = xyes ; then 30434 30435pkg_failed=no 30436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WINDOWSDRI" >&5 30437$as_echo_n "checking for WINDOWSDRI... " >&6; } 30438 30439if test -n "$WINDOWSDRI_CFLAGS"; then 30440 pkg_cv_WINDOWSDRI_CFLAGS="$WINDOWSDRI_CFLAGS" 30441 elif test -n "$PKG_CONFIG"; then 30442 if test -n "$PKG_CONFIG" && \ 30443 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 30444 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 30445 ac_status=$? 30446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30447 test $ac_status = 0; }; then 30448 pkg_cv_WINDOWSDRI_CFLAGS=`$PKG_CONFIG --cflags "windowsdriproto" 2>/dev/null` 30449 test "x$?" != "x0" && pkg_failed=yes 30450else 30451 pkg_failed=yes 30452fi 30453 else 30454 pkg_failed=untried 30455fi 30456if test -n "$WINDOWSDRI_LIBS"; then 30457 pkg_cv_WINDOWSDRI_LIBS="$WINDOWSDRI_LIBS" 30458 elif test -n "$PKG_CONFIG"; then 30459 if test -n "$PKG_CONFIG" && \ 30460 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 30461 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 30462 ac_status=$? 30463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30464 test $ac_status = 0; }; then 30465 pkg_cv_WINDOWSDRI_LIBS=`$PKG_CONFIG --libs "windowsdriproto" 2>/dev/null` 30466 test "x$?" != "x0" && pkg_failed=yes 30467else 30468 pkg_failed=yes 30469fi 30470 else 30471 pkg_failed=untried 30472fi 30473 30474 30475 30476if test $pkg_failed = yes; then 30477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30478$as_echo "no" >&6; } 30479 30480if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30481 _pkg_short_errors_supported=yes 30482else 30483 _pkg_short_errors_supported=no 30484fi 30485 if test $_pkg_short_errors_supported = yes; then 30486 WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "windowsdriproto" 2>&1` 30487 else 30488 WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "windowsdriproto" 2>&1` 30489 fi 30490 # Put the nasty error message in config.log where it belongs 30491 echo "$WINDOWSDRI_PKG_ERRORS" >&5 30492 30493 as_fn_error $? "Package requirements (windowsdriproto) were not met: 30494 30495$WINDOWSDRI_PKG_ERRORS 30496 30497Consider adjusting the PKG_CONFIG_PATH environment variable if you 30498installed software in a non-standard prefix. 30499 30500Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS 30501and WINDOWSDRI_LIBS to avoid the need to call pkg-config. 30502See the pkg-config man page for more details." "$LINENO" 5 30503elif test $pkg_failed = untried; then 30504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30505$as_echo "no" >&6; } 30506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30508as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30509is in your PATH or set the PKG_CONFIG environment variable to the full 30510path to pkg-config. 30511 30512Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS 30513and WINDOWSDRI_LIBS to avoid the need to call pkg-config. 30514See the pkg-config man page for more details. 30515 30516To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30517See \`config.log' for more details" "$LINENO" 5; } 30518else 30519 WINDOWSDRI_CFLAGS=$pkg_cv_WINDOWSDRI_CFLAGS 30520 WINDOWSDRI_LIBS=$pkg_cv_WINDOWSDRI_LIBS 30521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30522$as_echo "yes" >&6; } 30523 30524fi 30525 fi 30526 30527 case $host_os in 30528 cygwin*) 30529 XWIN_SERVER_NAME=XWin 30530 30531$as_echo "#define HAS_DEVWINDOWS 1" >>confdefs.h 30532 30533 ;; 30534 mingw*) 30535 XWIN_SERVER_NAME=Xming 30536 30537$as_echo "#define RELOCATE_PROJECTROOT 1" >>confdefs.h 30538 30539 30540$as_echo "#define HAS_WINSOCK 1" >>confdefs.h 30541 30542 XWIN_SYS_LIBS="-lpthread -lws2_32" 30543 ;; 30544 esac 30545 30546 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" 30547 XWIN_SYS_LIBS="$XWIN_SYS_LIBS $XWINMODULES_LIBS" 30548 30549 30550 30551 30552 if test "x$DEBUGGING" = xyes; then 30553 30554$as_echo "#define CYGDEBUG 1" >>confdefs.h 30555 30556 30557$as_echo "#define CYGWINDOWING_DEBUG 1" >>confdefs.h 30558 30559 30560$as_echo "#define CYGMULTIWINDOW_DEBUG 1" >>confdefs.h 30561 30562 fi 30563 30564 30565$as_echo "#define DDXOSVERRORF 1" >>confdefs.h 30566 30567 30568$as_echo "#define DDXBEFORERESET 1" >>confdefs.h 30569 30570 30571 if test "x$XWIN" = xyes && test "x$GLX" = xyes ; then 30572 # Extract the first word of "python3", so it can be a program name with args. 30573set dummy python3; ac_word=$2 30574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30575$as_echo_n "checking for $ac_word... " >&6; } 30576if ${ac_cv_prog_PYTHON3+:} false; then : 30577 $as_echo_n "(cached) " >&6 30578else 30579 if test -n "$PYTHON3"; then 30580 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test. 30581else 30582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30583for as_dir in $PATH 30584do 30585 IFS=$as_save_IFS 30586 test -z "$as_dir" && as_dir=. 30587 for ac_exec_ext in '' $ac_executable_extensions; do 30588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30589 ac_cv_prog_PYTHON3="python3" 30590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30591 break 2 30592 fi 30593done 30594 done 30595IFS=$as_save_IFS 30596 30597fi 30598fi 30599PYTHON3=$ac_cv_prog_PYTHON3 30600if test -n "$PYTHON3"; then 30601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5 30602$as_echo "$PYTHON3" >&6; } 30603else 30604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30605$as_echo "no" >&6; } 30606fi 30607 30608 30609 if test -z "$PYTHON3"; then 30610 as_fn_error $? "python3 not found" "$LINENO" 5 30611 fi 30612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module lxml" >&5 30613$as_echo_n "checking for python module lxml... " >&6; } 30614 $PYTHON3 -c "import lxml;" 30615 if test $? -ne 0 ; then 30616 as_fn_error $? "not found" "$LINENO" 5 30617 fi 30618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30619$as_echo "yes" >&6; } 30620 if test "x$KHRONOS_SPEC_DIR" = "xauto" ; then 30621 30622pkg_failed=no 30623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for KHRONOS_OPENGL_REGISTRY" >&5 30624$as_echo_n "checking for KHRONOS_OPENGL_REGISTRY... " >&6; } 30625 30626if test -n "$KHRONOS_OPENGL_REGISTRY_CFLAGS"; then 30627 pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS="$KHRONOS_OPENGL_REGISTRY_CFLAGS" 30628 elif test -n "$PKG_CONFIG"; then 30629 if test -n "$PKG_CONFIG" && \ 30630 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5 30631 ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5 30632 ac_status=$? 30633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30634 test $ac_status = 0; }; then 30635 pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS=`$PKG_CONFIG --cflags "khronos-opengl-registry" 2>/dev/null` 30636 test "x$?" != "x0" && pkg_failed=yes 30637else 30638 pkg_failed=yes 30639fi 30640 else 30641 pkg_failed=untried 30642fi 30643if test -n "$KHRONOS_OPENGL_REGISTRY_LIBS"; then 30644 pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS="$KHRONOS_OPENGL_REGISTRY_LIBS" 30645 elif test -n "$PKG_CONFIG"; then 30646 if test -n "$PKG_CONFIG" && \ 30647 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5 30648 ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5 30649 ac_status=$? 30650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30651 test $ac_status = 0; }; then 30652 pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS=`$PKG_CONFIG --libs "khronos-opengl-registry" 2>/dev/null` 30653 test "x$?" != "x0" && pkg_failed=yes 30654else 30655 pkg_failed=yes 30656fi 30657 else 30658 pkg_failed=untried 30659fi 30660 30661 30662 30663if test $pkg_failed = yes; then 30664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30665$as_echo "no" >&6; } 30666 30667if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30668 _pkg_short_errors_supported=yes 30669else 30670 _pkg_short_errors_supported=no 30671fi 30672 if test $_pkg_short_errors_supported = yes; then 30673 KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "khronos-opengl-registry" 2>&1` 30674 else 30675 KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "khronos-opengl-registry" 2>&1` 30676 fi 30677 # Put the nasty error message in config.log where it belongs 30678 echo "$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS" >&5 30679 30680 as_fn_error $? "Package requirements (khronos-opengl-registry) were not met: 30681 30682$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS 30683 30684Consider adjusting the PKG_CONFIG_PATH environment variable if you 30685installed software in a non-standard prefix. 30686 30687Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS 30688and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config. 30689See the pkg-config man page for more details." "$LINENO" 5 30690elif test $pkg_failed = untried; then 30691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30692$as_echo "no" >&6; } 30693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30695as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30696is in your PATH or set the PKG_CONFIG environment variable to the full 30697path to pkg-config. 30698 30699Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS 30700and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config. 30701See the pkg-config man page for more details. 30702 30703To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30704See \`config.log' for more details" "$LINENO" 5; } 30705else 30706 KHRONOS_OPENGL_REGISTRY_CFLAGS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS 30707 KHRONOS_OPENGL_REGISTRY_LIBS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS 30708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30709$as_echo "yes" >&6; } 30710 30711fi 30712 KHRONOS_SPEC_DIR=`pkg-config khronos-opengl-registry --variable=specdir` 30713 fi 30714 30715 fi 30716 30717fi 30718 if test "x$XWIN" = xyes; then 30719 XWIN_TRUE= 30720 XWIN_FALSE='#' 30721else 30722 XWIN_TRUE='#' 30723 XWIN_FALSE= 30724fi 30725 30726 if test "x$XWIN" = xyes && test "x$WINDOWSWM" = xyes; then 30727 XWIN_MULTIWINDOWEXTWM_TRUE= 30728 XWIN_MULTIWINDOWEXTWM_FALSE='#' 30729else 30730 XWIN_MULTIWINDOWEXTWM_TRUE='#' 30731 XWIN_MULTIWINDOWEXTWM_FALSE= 30732fi 30733 30734 if test "x$XWIN" = xyes && test "x$GLX" = xyes; then 30735 XWIN_GLX_WINDOWS_TRUE= 30736 XWIN_GLX_WINDOWS_FALSE='#' 30737else 30738 XWIN_GLX_WINDOWS_TRUE='#' 30739 XWIN_GLX_WINDOWS_FALSE= 30740fi 30741 30742 if test "x$XWIN" = xyes && test "x$WINDOWSDRI" = xyes; then 30743 XWIN_WINDOWS_DRI_TRUE= 30744 XWIN_WINDOWS_DRI_FALSE='#' 30745else 30746 XWIN_WINDOWS_DRI_TRUE='#' 30747 XWIN_WINDOWS_DRI_FALSE= 30748fi 30749 30750 30751if test "x$XQUARTZ" = xyes; then 30752 30753$as_echo "#define XQUARTZ 1" >>confdefs.h 30754 30755 30756$as_echo "#define ROOTLESS 1" >>confdefs.h 30757 30758 30759 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" 30760 30761 30762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xp_init in -lXplugin" >&5 30763$as_echo_n "checking for xp_init in -lXplugin... " >&6; } 30764if ${ac_cv_lib_Xplugin_xp_init+:} false; then : 30765 $as_echo_n "(cached) " >&6 30766else 30767 ac_check_lib_save_LIBS=$LIBS 30768LIBS="-lXplugin $LIBS" 30769cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30770/* end confdefs.h. */ 30771 30772/* Override any GCC internal prototype to avoid an error. 30773 Use char because int might match the return type of a GCC 30774 builtin and then its argument prototype would still apply. */ 30775#ifdef __cplusplus 30776extern "C" 30777#endif 30778char xp_init (); 30779int 30780main () 30781{ 30782return xp_init (); 30783 ; 30784 return 0; 30785} 30786_ACEOF 30787if ac_fn_c_try_link "$LINENO"; then : 30788 ac_cv_lib_Xplugin_xp_init=yes 30789else 30790 ac_cv_lib_Xplugin_xp_init=no 30791fi 30792rm -f core conftest.err conftest.$ac_objext \ 30793 conftest$ac_exeext conftest.$ac_ext 30794LIBS=$ac_check_lib_save_LIBS 30795fi 30796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xplugin_xp_init" >&5 30797$as_echo "$ac_cv_lib_Xplugin_xp_init" >&6; } 30798if test "x$ac_cv_lib_Xplugin_xp_init" = xyes; then : 30799 : 30800fi 30801 30802 30803 CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA" 30804 30805 30806pkg_failed=no 30807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPBPROXY" >&5 30808$as_echo_n "checking for XPBPROXY... " >&6; } 30809 30810if test -n "$XPBPROXY_CFLAGS"; then 30811 pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS" 30812 elif test -n "$PKG_CONFIG"; then 30813 if test -n "$PKG_CONFIG" && \ 30814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5 30815 ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5 30816 ac_status=$? 30817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30818 test $ac_status = 0; }; then 30819 pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null` 30820 test "x$?" != "x0" && pkg_failed=yes 30821else 30822 pkg_failed=yes 30823fi 30824 else 30825 pkg_failed=untried 30826fi 30827if test -n "$XPBPROXY_LIBS"; then 30828 pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS" 30829 elif test -n "$PKG_CONFIG"; then 30830 if test -n "$PKG_CONFIG" && \ 30831 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5 30832 ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5 30833 ac_status=$? 30834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30835 test $ac_status = 0; }; then 30836 pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null` 30837 test "x$?" != "x0" && pkg_failed=yes 30838else 30839 pkg_failed=yes 30840fi 30841 else 30842 pkg_failed=untried 30843fi 30844 30845 30846 30847if test $pkg_failed = yes; then 30848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30849$as_echo "no" >&6; } 30850 30851if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30852 _pkg_short_errors_supported=yes 30853else 30854 _pkg_short_errors_supported=no 30855fi 30856 if test $_pkg_short_errors_supported = yes; then 30857 XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1` 30858 else 30859 XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1` 30860 fi 30861 # Put the nasty error message in config.log where it belongs 30862 echo "$XPBPROXY_PKG_ERRORS" >&5 30863 30864 as_fn_error $? "Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met: 30865 30866$XPBPROXY_PKG_ERRORS 30867 30868Consider adjusting the PKG_CONFIG_PATH environment variable if you 30869installed software in a non-standard prefix. 30870 30871Alternatively, you may set the environment variables XPBPROXY_CFLAGS 30872and XPBPROXY_LIBS to avoid the need to call pkg-config. 30873See the pkg-config man page for more details." "$LINENO" 5 30874elif test $pkg_failed = untried; then 30875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30876$as_echo "no" >&6; } 30877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30879as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30880is in your PATH or set the PKG_CONFIG environment variable to the full 30881path to pkg-config. 30882 30883Alternatively, you may set the environment variables XPBPROXY_CFLAGS 30884and XPBPROXY_LIBS to avoid the need to call pkg-config. 30885See the pkg-config man page for more details. 30886 30887To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30888See \`config.log' for more details" "$LINENO" 5; } 30889else 30890 XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS 30891 XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS 30892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30893$as_echo "yes" >&6; } 30894 30895fi 30896 30897 if test "x$XQUARTZ_SPARKLE" = xyes ; then 30898 30899$as_echo "#define XQUARTZ_SPARKLE 1" >>confdefs.h 30900 30901 fi 30902 30903 if test "x$STANDALONE_XPBPROXY" = xyes ; then 30904 30905$as_echo "#define STANDALONE_XPBPROXY 1" >>confdefs.h 30906 30907 fi 30908fi 30909 30910 if test "x$XQUARTZ" = xyes -o "x$XWIN" = xyes ; then 30911 PSEUDORAMIX_TRUE= 30912 PSEUDORAMIX_FALSE='#' 30913else 30914 PSEUDORAMIX_TRUE='#' 30915 PSEUDORAMIX_FALSE= 30916fi 30917 30918 30919# Support for objc in autotools is minimal and not documented. 30920OBJC='$(CC)' 30921OBJCLD='$(CCLD)' 30922OBJCLINK='$(LINK)' 30923OBJCFLAGS='$(CFLAGS)' 30924 30925 30926 30927 30928# internal, undocumented automake func follows :( 30929 30930depcc="$OBJC" am_compiler_list='gcc3 gcc' 30931 30932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 30933$as_echo_n "checking dependency style of $depcc... " >&6; } 30934if ${am_cv_OBJC_dependencies_compiler_type+:} false; then : 30935 $as_echo_n "(cached) " >&6 30936else 30937 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 30938 # We make a subdir and do the tests there. Otherwise we can end up 30939 # making bogus files that we don't know about and never remove. For 30940 # instance it was reported that on HP-UX the gcc test will end up 30941 # making a dummy file named 'D' -- because '-MD' means "put the output 30942 # in D". 30943 rm -rf conftest.dir 30944 mkdir conftest.dir 30945 # Copy depcomp to subdir because otherwise we won't find it if we're 30946 # using a relative directory. 30947 cp "$am_depcomp" conftest.dir 30948 cd conftest.dir 30949 # We will build objects and dependencies in a subdirectory because 30950 # it helps to detect inapplicable dependency modes. For instance 30951 # both Tru64's cc and ICC support -MD to output dependencies as a 30952 # side effect of compilation, but ICC will put the dependencies in 30953 # the current directory while Tru64 will put them in the object 30954 # directory. 30955 mkdir sub 30956 30957 am_cv_OBJC_dependencies_compiler_type=none 30958 if test "$am_compiler_list" = ""; then 30959 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 30960 fi 30961 am__universal=false 30962 30963 30964 for depmode in $am_compiler_list; do 30965 # Setup a source with many dependencies, because some compilers 30966 # like to wrap large dependency lists on column 80 (with \), and 30967 # we should not choose a depcomp mode which is confused by this. 30968 # 30969 # We need to recreate these files for each test, as the compiler may 30970 # overwrite some of them when testing with obscure command lines. 30971 # This happens at least with the AIX C compiler. 30972 : > sub/conftest.c 30973 for i in 1 2 3 4 5 6; do 30974 echo '#include "conftst'$i'.h"' >> sub/conftest.c 30975 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 30976 # Solaris 10 /bin/sh. 30977 echo '/* dummy */' > sub/conftst$i.h 30978 done 30979 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 30980 30981 # We check with '-c' and '-o' for the sake of the "dashmstdout" 30982 # mode. It turns out that the SunPro C++ compiler does not properly 30983 # handle '-M -o', and we need to detect this. Also, some Intel 30984 # versions had trouble with output in subdirs. 30985 am__obj=sub/conftest.${OBJEXT-o} 30986 am__minus_obj="-o $am__obj" 30987 case $depmode in 30988 gcc) 30989 # This depmode causes a compiler race in universal mode. 30990 test "$am__universal" = false || continue 30991 ;; 30992 nosideeffect) 30993 # After this tag, mechanisms are not by side-effect, so they'll 30994 # only be used when explicitly requested. 30995 if test "x$enable_dependency_tracking" = xyes; then 30996 continue 30997 else 30998 break 30999 fi 31000 ;; 31001 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 31002 # This compiler won't grok '-c -o', but also, the minuso test has 31003 # not run yet. These depmodes are late enough in the game, and 31004 # so weak that their functioning should not be impacted. 31005 am__obj=conftest.${OBJEXT-o} 31006 am__minus_obj= 31007 ;; 31008 none) break ;; 31009 esac 31010 if depmode=$depmode \ 31011 source=sub/conftest.c object=$am__obj \ 31012 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 31013 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 31014 >/dev/null 2>conftest.err && 31015 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 31016 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 31017 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 31018 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 31019 # icc doesn't choke on unknown options, it will just issue warnings 31020 # or remarks (even with -Werror). So we grep stderr for any message 31021 # that says an option was ignored or not supported. 31022 # When given -MP, icc 7.0 and 7.1 complain thusly: 31023 # icc: Command line warning: ignoring option '-M'; no argument required 31024 # The diagnosis changed in icc 8.0: 31025 # icc: Command line remark: option '-MP' not supported 31026 if (grep 'ignoring option' conftest.err || 31027 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 31028 am_cv_OBJC_dependencies_compiler_type=$depmode 31029 break 31030 fi 31031 fi 31032 done 31033 31034 cd .. 31035 rm -rf conftest.dir 31036else 31037 am_cv_OBJC_dependencies_compiler_type=none 31038fi 31039 31040fi 31041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 31042$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } 31043OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type 31044 31045 if 31046 test "x$enable_dependency_tracking" != xno \ 31047 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then 31048 am__fastdepOBJC_TRUE= 31049 am__fastdepOBJC_FALSE='#' 31050else 31051 am__fastdepOBJC_TRUE='#' 31052 am__fastdepOBJC_FALSE= 31053fi 31054 31055 31056 if test "x$XQUARTZ" = xyes; then 31057 XQUARTZ_TRUE= 31058 XQUARTZ_FALSE='#' 31059else 31060 XQUARTZ_TRUE='#' 31061 XQUARTZ_FALSE= 31062fi 31063 31064 if test "x$XQUARTZ_SPARKLE" != "xno"; then 31065 XQUARTZ_SPARKLE_TRUE= 31066 XQUARTZ_SPARKLE_FALSE='#' 31067else 31068 XQUARTZ_SPARKLE_TRUE='#' 31069 XQUARTZ_SPARKLE_FALSE= 31070fi 31071 31072 if test "x$STANDALONE_XPBPROXY" = xyes; then 31073 STANDALONE_XPBPROXY_TRUE= 31074 STANDALONE_XPBPROXY_FALSE='#' 31075else 31076 STANDALONE_XPBPROXY_TRUE='#' 31077 STANDALONE_XPBPROXY_FALSE= 31078fi 31079 31080 31081 31082pkg_failed=no 31083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXMODULES" >&5 31084$as_echo_n "checking for DMXMODULES... " >&6; } 31085 31086if test -n "$DMXMODULES_CFLAGS"; then 31087 pkg_cv_DMXMODULES_CFLAGS="$DMXMODULES_CFLAGS" 31088 elif test -n "$PKG_CONFIG"; then 31089 if test -n "$PKG_CONFIG" && \ 31090 { { $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 31091 ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5 31092 ac_status=$? 31093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31094 test $ac_status = 0; }; then 31095 pkg_cv_DMXMODULES_CFLAGS=`$PKG_CONFIG --cflags "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null` 31096 test "x$?" != "x0" && pkg_failed=yes 31097else 31098 pkg_failed=yes 31099fi 31100 else 31101 pkg_failed=untried 31102fi 31103if test -n "$DMXMODULES_LIBS"; then 31104 pkg_cv_DMXMODULES_LIBS="$DMXMODULES_LIBS" 31105 elif test -n "$PKG_CONFIG"; then 31106 if test -n "$PKG_CONFIG" && \ 31107 { { $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 31108 ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5 31109 ac_status=$? 31110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31111 test $ac_status = 0; }; then 31112 pkg_cv_DMXMODULES_LIBS=`$PKG_CONFIG --libs "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null` 31113 test "x$?" != "x0" && pkg_failed=yes 31114else 31115 pkg_failed=yes 31116fi 31117 else 31118 pkg_failed=untried 31119fi 31120 31121 31122 31123if test $pkg_failed = yes; then 31124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31125$as_echo "no" >&6; } 31126 31127if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31128 _pkg_short_errors_supported=yes 31129else 31130 _pkg_short_errors_supported=no 31131fi 31132 if test $_pkg_short_errors_supported = yes; then 31133 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` 31134 else 31135 DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1` 31136 fi 31137 # Put the nasty error message in config.log where it belongs 31138 echo "$DMXMODULES_PKG_ERRORS" >&5 31139 31140 have_dmx=no 31141elif test $pkg_failed = untried; then 31142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31143$as_echo "no" >&6; } 31144 have_dmx=no 31145else 31146 DMXMODULES_CFLAGS=$pkg_cv_DMXMODULES_CFLAGS 31147 DMXMODULES_LIBS=$pkg_cv_DMXMODULES_LIBS 31148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31149$as_echo "yes" >&6; } 31150 31151pkg_failed=no 31152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMXCONFIG_DEP" >&5 31153$as_echo_n "checking for XDMXCONFIG_DEP... " >&6; } 31154 31155if test -n "$XDMXCONFIG_DEP_CFLAGS"; then 31156 pkg_cv_XDMXCONFIG_DEP_CFLAGS="$XDMXCONFIG_DEP_CFLAGS" 31157 elif test -n "$PKG_CONFIG"; then 31158 if test -n "$PKG_CONFIG" && \ 31159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5 31160 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5 31161 ac_status=$? 31162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31163 test $ac_status = 0; }; then 31164 pkg_cv_XDMXCONFIG_DEP_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt xpm x11" 2>/dev/null` 31165 test "x$?" != "x0" && pkg_failed=yes 31166else 31167 pkg_failed=yes 31168fi 31169 else 31170 pkg_failed=untried 31171fi 31172if test -n "$XDMXCONFIG_DEP_LIBS"; then 31173 pkg_cv_XDMXCONFIG_DEP_LIBS="$XDMXCONFIG_DEP_LIBS" 31174 elif test -n "$PKG_CONFIG"; then 31175 if test -n "$PKG_CONFIG" && \ 31176 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5 31177 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5 31178 ac_status=$? 31179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31180 test $ac_status = 0; }; then 31181 pkg_cv_XDMXCONFIG_DEP_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt xpm x11" 2>/dev/null` 31182 test "x$?" != "x0" && pkg_failed=yes 31183else 31184 pkg_failed=yes 31185fi 31186 else 31187 pkg_failed=untried 31188fi 31189 31190 31191 31192if test $pkg_failed = yes; then 31193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31194$as_echo "no" >&6; } 31195 31196if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31197 _pkg_short_errors_supported=yes 31198else 31199 _pkg_short_errors_supported=no 31200fi 31201 if test $_pkg_short_errors_supported = yes; then 31202 XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt xpm x11" 2>&1` 31203 else 31204 XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt xpm x11" 2>&1` 31205 fi 31206 # Put the nasty error message in config.log where it belongs 31207 echo "$XDMXCONFIG_DEP_PKG_ERRORS" >&5 31208 31209 have_dmx=no 31210elif test $pkg_failed = untried; then 31211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31212$as_echo "no" >&6; } 31213 have_dmx=no 31214else 31215 XDMXCONFIG_DEP_CFLAGS=$pkg_cv_XDMXCONFIG_DEP_CFLAGS 31216 XDMXCONFIG_DEP_LIBS=$pkg_cv_XDMXCONFIG_DEP_LIBS 31217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31218$as_echo "yes" >&6; } 31219 have_dmx=yes 31220fi 31221fi 31222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xdmx DDX" >&5 31223$as_echo_n "checking whether to build Xdmx DDX... " >&6; } 31224if test "x$DMX" = xauto; then 31225 DMX="$have_dmx" 31226 case $host_os in 31227 cygwin*) DMX="no" ;; 31228 mingw*) DMX="no" ;; 31229 darwin*) DMX="no" ;; 31230 esac 31231fi 31232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMX" >&5 31233$as_echo "$DMX" >&6; } 31234 if test "x$DMX" = xyes; then 31235 DMX_TRUE= 31236 DMX_FALSE='#' 31237else 31238 DMX_TRUE='#' 31239 DMX_FALSE= 31240fi 31241 31242 31243if test "x$DMX" = xyes; then 31244 if test "x$have_dmx" = xno; then 31245 as_fn_error $? "Xdmx build explicitly requested, but required 31246 modules not found." "$LINENO" 5 31247 fi 31248 DMX_INCLUDES="$XEXT_INC $RENDER_INC $RECORD_INC" 31249 XDMX_CFLAGS="$DMXMODULES_CFLAGS" 31250 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" 31251 XDMX_SYS_LIBS="$DMXMODULES_LIBS" 31252 31253 31254 31255 31256 ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default" 31257if test "x$ac_cv_header_linux_input_h" = xyes; then : 31258 DMX_BUILD_USB="yes" 31259else 31260 DMX_BUILD_USB="no" 31261fi 31262 31263 31264 31265 31266 31267pkg_failed=no 31268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXEXAMPLES_DEP" >&5 31269$as_echo_n "checking for DMXEXAMPLES_DEP... " >&6; } 31270 31271if test -n "$DMXEXAMPLES_DEP_CFLAGS"; then 31272 pkg_cv_DMXEXAMPLES_DEP_CFLAGS="$DMXEXAMPLES_DEP_CFLAGS" 31273 elif test -n "$PKG_CONFIG"; then 31274 if test -n "$PKG_CONFIG" && \ 31275 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5 31276 ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5 31277 ac_status=$? 31278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31279 test $ac_status = 0; }; then 31280 pkg_cv_DMXEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXEXT x11" 2>/dev/null` 31281 test "x$?" != "x0" && pkg_failed=yes 31282else 31283 pkg_failed=yes 31284fi 31285 else 31286 pkg_failed=untried 31287fi 31288if test -n "$DMXEXAMPLES_DEP_LIBS"; then 31289 pkg_cv_DMXEXAMPLES_DEP_LIBS="$DMXEXAMPLES_DEP_LIBS" 31290 elif test -n "$PKG_CONFIG"; then 31291 if test -n "$PKG_CONFIG" && \ 31292 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5 31293 ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5 31294 ac_status=$? 31295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31296 test $ac_status = 0; }; then 31297 pkg_cv_DMXEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXEXT x11" 2>/dev/null` 31298 test "x$?" != "x0" && pkg_failed=yes 31299else 31300 pkg_failed=yes 31301fi 31302 else 31303 pkg_failed=untried 31304fi 31305 31306 31307 31308if test $pkg_failed = yes; then 31309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31310$as_echo "no" >&6; } 31311 31312if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31313 _pkg_short_errors_supported=yes 31314else 31315 _pkg_short_errors_supported=no 31316fi 31317 if test $_pkg_short_errors_supported = yes; then 31318 DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX $LIBXEXT x11" 2>&1` 31319 else 31320 DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX $LIBXEXT x11" 2>&1` 31321 fi 31322 # Put the nasty error message in config.log where it belongs 31323 echo "$DMXEXAMPLES_DEP_PKG_ERRORS" >&5 31324 31325 as_fn_error $? "Package requirements ($LIBDMX $LIBXEXT x11) were not met: 31326 31327$DMXEXAMPLES_DEP_PKG_ERRORS 31328 31329Consider adjusting the PKG_CONFIG_PATH environment variable if you 31330installed software in a non-standard prefix. 31331 31332Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS 31333and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31334See the pkg-config man page for more details." "$LINENO" 5 31335elif test $pkg_failed = untried; then 31336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31337$as_echo "no" >&6; } 31338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31340as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31341is in your PATH or set the PKG_CONFIG environment variable to the full 31342path to pkg-config. 31343 31344Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS 31345and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31346See the pkg-config man page for more details. 31347 31348To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31349See \`config.log' for more details" "$LINENO" 5; } 31350else 31351 DMXEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXEXAMPLES_DEP_CFLAGS 31352 DMXEXAMPLES_DEP_LIBS=$pkg_cv_DMXEXAMPLES_DEP_LIBS 31353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31354$as_echo "yes" >&6; } 31355 31356fi 31357 31358 31359pkg_failed=no 31360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXMUEXAMPLES_DEP" >&5 31361$as_echo_n "checking for DMXXMUEXAMPLES_DEP... " >&6; } 31362 31363if test -n "$DMXXMUEXAMPLES_DEP_CFLAGS"; then 31364 pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS="$DMXXMUEXAMPLES_DEP_CFLAGS" 31365 elif test -n "$PKG_CONFIG"; then 31366 if test -n "$PKG_CONFIG" && \ 31367 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5 31368 ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5 31369 ac_status=$? 31370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31371 test $ac_status = 0; }; then 31372 pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null` 31373 test "x$?" != "x0" && pkg_failed=yes 31374else 31375 pkg_failed=yes 31376fi 31377 else 31378 pkg_failed=untried 31379fi 31380if test -n "$DMXXMUEXAMPLES_DEP_LIBS"; then 31381 pkg_cv_DMXXMUEXAMPLES_DEP_LIBS="$DMXXMUEXAMPLES_DEP_LIBS" 31382 elif test -n "$PKG_CONFIG"; then 31383 if test -n "$PKG_CONFIG" && \ 31384 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5 31385 ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5 31386 ac_status=$? 31387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31388 test $ac_status = 0; }; then 31389 pkg_cv_DMXXMUEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null` 31390 test "x$?" != "x0" && pkg_failed=yes 31391else 31392 pkg_failed=yes 31393fi 31394 else 31395 pkg_failed=untried 31396fi 31397 31398 31399 31400if test $pkg_failed = yes; then 31401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31402$as_echo "no" >&6; } 31403 31404if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31405 _pkg_short_errors_supported=yes 31406else 31407 _pkg_short_errors_supported=no 31408fi 31409 if test $_pkg_short_errors_supported = yes; then 31410 DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX xmu $LIBXEXT x11" 2>&1` 31411 else 31412 DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX xmu $LIBXEXT x11" 2>&1` 31413 fi 31414 # Put the nasty error message in config.log where it belongs 31415 echo "$DMXXMUEXAMPLES_DEP_PKG_ERRORS" >&5 31416 31417 as_fn_error $? "Package requirements ($LIBDMX xmu $LIBXEXT x11) were not met: 31418 31419$DMXXMUEXAMPLES_DEP_PKG_ERRORS 31420 31421Consider adjusting the PKG_CONFIG_PATH environment variable if you 31422installed software in a non-standard prefix. 31423 31424Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS 31425and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31426See the pkg-config man page for more details." "$LINENO" 5 31427elif test $pkg_failed = untried; then 31428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31429$as_echo "no" >&6; } 31430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31432as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31433is in your PATH or set the PKG_CONFIG environment variable to the full 31434path to pkg-config. 31435 31436Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS 31437and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31438See the pkg-config man page for more details. 31439 31440To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31441See \`config.log' for more details" "$LINENO" 5; } 31442else 31443 DMXXMUEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS 31444 DMXXMUEXAMPLES_DEP_LIBS=$pkg_cv_DMXXMUEXAMPLES_DEP_LIBS 31445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31446$as_echo "yes" >&6; } 31447 31448fi 31449 31450 31451pkg_failed=no 31452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXIEXAMPLES_DEP" >&5 31453$as_echo_n "checking for DMXXIEXAMPLES_DEP... " >&6; } 31454 31455if test -n "$DMXXIEXAMPLES_DEP_CFLAGS"; then 31456 pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS="$DMXXIEXAMPLES_DEP_CFLAGS" 31457 elif test -n "$PKG_CONFIG"; then 31458 if test -n "$PKG_CONFIG" && \ 31459 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5 31460 ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5 31461 ac_status=$? 31462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31463 test $ac_status = 0; }; then 31464 pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null` 31465 test "x$?" != "x0" && pkg_failed=yes 31466else 31467 pkg_failed=yes 31468fi 31469 else 31470 pkg_failed=untried 31471fi 31472if test -n "$DMXXIEXAMPLES_DEP_LIBS"; then 31473 pkg_cv_DMXXIEXAMPLES_DEP_LIBS="$DMXXIEXAMPLES_DEP_LIBS" 31474 elif test -n "$PKG_CONFIG"; then 31475 if test -n "$PKG_CONFIG" && \ 31476 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5 31477 ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5 31478 ac_status=$? 31479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31480 test $ac_status = 0; }; then 31481 pkg_cv_DMXXIEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null` 31482 test "x$?" != "x0" && pkg_failed=yes 31483else 31484 pkg_failed=yes 31485fi 31486 else 31487 pkg_failed=untried 31488fi 31489 31490 31491 31492if test $pkg_failed = yes; then 31493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31494$as_echo "no" >&6; } 31495 31496if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31497 _pkg_short_errors_supported=yes 31498else 31499 _pkg_short_errors_supported=no 31500fi 31501 if test $_pkg_short_errors_supported = yes; then 31502 DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1` 31503 else 31504 DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1` 31505 fi 31506 # Put the nasty error message in config.log where it belongs 31507 echo "$DMXXIEXAMPLES_DEP_PKG_ERRORS" >&5 31508 31509 as_fn_error $? "Package requirements ($LIBDMX $LIBXI $LIBXEXT x11) were not met: 31510 31511$DMXXIEXAMPLES_DEP_PKG_ERRORS 31512 31513Consider adjusting the PKG_CONFIG_PATH environment variable if you 31514installed software in a non-standard prefix. 31515 31516Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS 31517and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31518See the pkg-config man page for more details." "$LINENO" 5 31519elif test $pkg_failed = untried; then 31520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31521$as_echo "no" >&6; } 31522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31524as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31525is in your PATH or set the PKG_CONFIG environment variable to the full 31526path to pkg-config. 31527 31528Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS 31529and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31530See the pkg-config man page for more details. 31531 31532To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31533See \`config.log' for more details" "$LINENO" 5; } 31534else 31535 DMXXIEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS 31536 DMXXIEXAMPLES_DEP_LIBS=$pkg_cv_DMXXIEXAMPLES_DEP_LIBS 31537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31538$as_echo "yes" >&6; } 31539 31540fi 31541 31542 31543pkg_failed=no 31544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTSTEXAMPLES_DEP" >&5 31545$as_echo_n "checking for XTSTEXAMPLES_DEP... " >&6; } 31546 31547if test -n "$XTSTEXAMPLES_DEP_CFLAGS"; then 31548 pkg_cv_XTSTEXAMPLES_DEP_CFLAGS="$XTSTEXAMPLES_DEP_CFLAGS" 31549 elif test -n "$PKG_CONFIG"; then 31550 if test -n "$PKG_CONFIG" && \ 31551 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5 31552 ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5 31553 ac_status=$? 31554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31555 test $ac_status = 0; }; then 31556 pkg_cv_XTSTEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXTST $LIBXEXT x11" 2>/dev/null` 31557 test "x$?" != "x0" && pkg_failed=yes 31558else 31559 pkg_failed=yes 31560fi 31561 else 31562 pkg_failed=untried 31563fi 31564if test -n "$XTSTEXAMPLES_DEP_LIBS"; then 31565 pkg_cv_XTSTEXAMPLES_DEP_LIBS="$XTSTEXAMPLES_DEP_LIBS" 31566 elif test -n "$PKG_CONFIG"; then 31567 if test -n "$PKG_CONFIG" && \ 31568 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5 31569 ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5 31570 ac_status=$? 31571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31572 test $ac_status = 0; }; then 31573 pkg_cv_XTSTEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXTST $LIBXEXT x11" 2>/dev/null` 31574 test "x$?" != "x0" && pkg_failed=yes 31575else 31576 pkg_failed=yes 31577fi 31578 else 31579 pkg_failed=untried 31580fi 31581 31582 31583 31584if test $pkg_failed = yes; then 31585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31586$as_echo "no" >&6; } 31587 31588if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31589 _pkg_short_errors_supported=yes 31590else 31591 _pkg_short_errors_supported=no 31592fi 31593 if test $_pkg_short_errors_supported = yes; then 31594 XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXTST $LIBXEXT x11" 2>&1` 31595 else 31596 XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXTST $LIBXEXT x11" 2>&1` 31597 fi 31598 # Put the nasty error message in config.log where it belongs 31599 echo "$XTSTEXAMPLES_DEP_PKG_ERRORS" >&5 31600 31601 as_fn_error $? "Package requirements ($LIBXTST $LIBXEXT x11) were not met: 31602 31603$XTSTEXAMPLES_DEP_PKG_ERRORS 31604 31605Consider adjusting the PKG_CONFIG_PATH environment variable if you 31606installed software in a non-standard prefix. 31607 31608Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS 31609and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31610See the pkg-config man page for more details." "$LINENO" 5 31611elif test $pkg_failed = untried; then 31612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31613$as_echo "no" >&6; } 31614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31616as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31617is in your PATH or set the PKG_CONFIG environment variable to the full 31618path to pkg-config. 31619 31620Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS 31621and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31622See the pkg-config man page for more details. 31623 31624To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31625See \`config.log' for more details" "$LINENO" 5; } 31626else 31627 XTSTEXAMPLES_DEP_CFLAGS=$pkg_cv_XTSTEXAMPLES_DEP_CFLAGS 31628 XTSTEXAMPLES_DEP_LIBS=$pkg_cv_XTSTEXAMPLES_DEP_LIBS 31629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31630$as_echo "yes" >&6; } 31631 31632fi 31633 31634 31635pkg_failed=no 31636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRESEXAMPLES_DEP" >&5 31637$as_echo_n "checking for XRESEXAMPLES_DEP... " >&6; } 31638 31639if test -n "$XRESEXAMPLES_DEP_CFLAGS"; then 31640 pkg_cv_XRESEXAMPLES_DEP_CFLAGS="$XRESEXAMPLES_DEP_CFLAGS" 31641 elif test -n "$PKG_CONFIG"; then 31642 if test -n "$PKG_CONFIG" && \ 31643 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\""; } >&5 31644 ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5 31645 ac_status=$? 31646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31647 test $ac_status = 0; }; then 31648 pkg_cv_XRESEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "xres $LIBXEXT x11" 2>/dev/null` 31649 test "x$?" != "x0" && pkg_failed=yes 31650else 31651 pkg_failed=yes 31652fi 31653 else 31654 pkg_failed=untried 31655fi 31656if test -n "$XRESEXAMPLES_DEP_LIBS"; then 31657 pkg_cv_XRESEXAMPLES_DEP_LIBS="$XRESEXAMPLES_DEP_LIBS" 31658 elif test -n "$PKG_CONFIG"; then 31659 if test -n "$PKG_CONFIG" && \ 31660 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\""; } >&5 31661 ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5 31662 ac_status=$? 31663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31664 test $ac_status = 0; }; then 31665 pkg_cv_XRESEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "xres $LIBXEXT x11" 2>/dev/null` 31666 test "x$?" != "x0" && pkg_failed=yes 31667else 31668 pkg_failed=yes 31669fi 31670 else 31671 pkg_failed=untried 31672fi 31673 31674 31675 31676if test $pkg_failed = yes; then 31677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31678$as_echo "no" >&6; } 31679 31680if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31681 _pkg_short_errors_supported=yes 31682else 31683 _pkg_short_errors_supported=no 31684fi 31685 if test $_pkg_short_errors_supported = yes; then 31686 XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xres $LIBXEXT x11" 2>&1` 31687 else 31688 XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xres $LIBXEXT x11" 2>&1` 31689 fi 31690 # Put the nasty error message in config.log where it belongs 31691 echo "$XRESEXAMPLES_DEP_PKG_ERRORS" >&5 31692 31693 as_fn_error $? "Package requirements (xres $LIBXEXT x11) were not met: 31694 31695$XRESEXAMPLES_DEP_PKG_ERRORS 31696 31697Consider adjusting the PKG_CONFIG_PATH environment variable if you 31698installed software in a non-standard prefix. 31699 31700Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS 31701and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31702See the pkg-config man page for more details." "$LINENO" 5 31703elif test $pkg_failed = untried; then 31704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31705$as_echo "no" >&6; } 31706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31707$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31708as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31709is in your PATH or set the PKG_CONFIG environment variable to the full 31710path to pkg-config. 31711 31712Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS 31713and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31714See the pkg-config man page for more details. 31715 31716To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31717See \`config.log' for more details" "$LINENO" 5; } 31718else 31719 XRESEXAMPLES_DEP_CFLAGS=$pkg_cv_XRESEXAMPLES_DEP_CFLAGS 31720 XRESEXAMPLES_DEP_LIBS=$pkg_cv_XRESEXAMPLES_DEP_LIBS 31721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31722$as_echo "yes" >&6; } 31723 31724fi 31725 31726 31727pkg_failed=no 31728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11EXAMPLES_DEP" >&5 31729$as_echo_n "checking for X11EXAMPLES_DEP... " >&6; } 31730 31731if test -n "$X11EXAMPLES_DEP_CFLAGS"; then 31732 pkg_cv_X11EXAMPLES_DEP_CFLAGS="$X11EXAMPLES_DEP_CFLAGS" 31733 elif test -n "$PKG_CONFIG"; then 31734 if test -n "$PKG_CONFIG" && \ 31735 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5 31736 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5 31737 ac_status=$? 31738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31739 test $ac_status = 0; }; then 31740 pkg_cv_X11EXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11" 2>/dev/null` 31741 test "x$?" != "x0" && pkg_failed=yes 31742else 31743 pkg_failed=yes 31744fi 31745 else 31746 pkg_failed=untried 31747fi 31748if test -n "$X11EXAMPLES_DEP_LIBS"; then 31749 pkg_cv_X11EXAMPLES_DEP_LIBS="$X11EXAMPLES_DEP_LIBS" 31750 elif test -n "$PKG_CONFIG"; then 31751 if test -n "$PKG_CONFIG" && \ 31752 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5 31753 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5 31754 ac_status=$? 31755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31756 test $ac_status = 0; }; then 31757 pkg_cv_X11EXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11" 2>/dev/null` 31758 test "x$?" != "x0" && pkg_failed=yes 31759else 31760 pkg_failed=yes 31761fi 31762 else 31763 pkg_failed=untried 31764fi 31765 31766 31767 31768if test $pkg_failed = yes; then 31769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31770$as_echo "no" >&6; } 31771 31772if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31773 _pkg_short_errors_supported=yes 31774else 31775 _pkg_short_errors_supported=no 31776fi 31777 if test $_pkg_short_errors_supported = yes; then 31778 X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11" 2>&1` 31779 else 31780 X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11" 2>&1` 31781 fi 31782 # Put the nasty error message in config.log where it belongs 31783 echo "$X11EXAMPLES_DEP_PKG_ERRORS" >&5 31784 31785 as_fn_error $? "Package requirements ($LIBXEXT x11) were not met: 31786 31787$X11EXAMPLES_DEP_PKG_ERRORS 31788 31789Consider adjusting the PKG_CONFIG_PATH environment variable if you 31790installed software in a non-standard prefix. 31791 31792Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS 31793and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31794See the pkg-config man page for more details." "$LINENO" 5 31795elif test $pkg_failed = untried; then 31796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31797$as_echo "no" >&6; } 31798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31800as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31801is in your PATH or set the PKG_CONFIG environment variable to the full 31802path to pkg-config. 31803 31804Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS 31805and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31806See the pkg-config man page for more details. 31807 31808To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31809See \`config.log' for more details" "$LINENO" 5; } 31810else 31811 X11EXAMPLES_DEP_CFLAGS=$pkg_cv_X11EXAMPLES_DEP_CFLAGS 31812 X11EXAMPLES_DEP_LIBS=$pkg_cv_X11EXAMPLES_DEP_LIBS 31813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31814$as_echo "yes" >&6; } 31815 31816fi 31817 31818 31819fi 31820 if test "x$DMX_BUILD_USB" = xyes; then 31821 DMX_BUILD_USB_TRUE= 31822 DMX_BUILD_USB_FALSE='#' 31823else 31824 DMX_BUILD_USB_TRUE='#' 31825 DMX_BUILD_USB_FALSE= 31826fi 31827 31828 31829 31830XEPHYR_LIBS= 31831XEPHYR_INCS= 31832 31833 if test x$KDRIVE = xyes; then 31834 KDRIVE_TRUE= 31835 KDRIVE_FALSE='#' 31836else 31837 KDRIVE_TRUE='#' 31838 KDRIVE_FALSE= 31839fi 31840 31841 31842if test "$KDRIVE" = yes; then 31843 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" 31844 if test "x$XV" = xyes; then 31845 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xcb-xv" 31846 fi 31847 if test "x$DRI" = xyes && test "x$GLX" = xyes; then 31848 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBDRM xcb-glx xcb-xf86dri > 1.6" 31849 fi 31850 if test "x$GLAMOR" = xyes; then 31851 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS x11-xcb" 31852 fi 31853 31854 if test "x$XEPHYR" = xauto; then 31855 31856pkg_failed=no 31857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5 31858$as_echo_n "checking for XEPHYR... " >&6; } 31859 31860if test -n "$XEPHYR_CFLAGS"; then 31861 pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS" 31862 elif test -n "$PKG_CONFIG"; then 31863 if test -n "$PKG_CONFIG" && \ 31864 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 31865 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 31866 ac_status=$? 31867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31868 test $ac_status = 0; }; then 31869 pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 31870 test "x$?" != "x0" && pkg_failed=yes 31871else 31872 pkg_failed=yes 31873fi 31874 else 31875 pkg_failed=untried 31876fi 31877if test -n "$XEPHYR_LIBS"; then 31878 pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS" 31879 elif test -n "$PKG_CONFIG"; then 31880 if test -n "$PKG_CONFIG" && \ 31881 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 31882 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 31883 ac_status=$? 31884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31885 test $ac_status = 0; }; then 31886 pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 31887 test "x$?" != "x0" && pkg_failed=yes 31888else 31889 pkg_failed=yes 31890fi 31891 else 31892 pkg_failed=untried 31893fi 31894 31895 31896 31897if test $pkg_failed = yes; then 31898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31899$as_echo "no" >&6; } 31900 31901if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31902 _pkg_short_errors_supported=yes 31903else 31904 _pkg_short_errors_supported=no 31905fi 31906 if test $_pkg_short_errors_supported = yes; then 31907 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 31908 else 31909 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 31910 fi 31911 # Put the nasty error message in config.log where it belongs 31912 echo "$XEPHYR_PKG_ERRORS" >&5 31913 31914 XEPHYR="no" 31915elif test $pkg_failed = untried; then 31916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31917$as_echo "no" >&6; } 31918 XEPHYR="no" 31919else 31920 XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS 31921 XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS 31922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31923$as_echo "yes" >&6; } 31924 XEPHYR="yes" 31925fi 31926 elif test "x$XEPHYR" = xyes ; then 31927 31928pkg_failed=no 31929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5 31930$as_echo_n "checking for XEPHYR... " >&6; } 31931 31932if test -n "$XEPHYR_CFLAGS"; then 31933 pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS" 31934 elif test -n "$PKG_CONFIG"; then 31935 if test -n "$PKG_CONFIG" && \ 31936 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 31937 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 31938 ac_status=$? 31939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31940 test $ac_status = 0; }; then 31941 pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 31942 test "x$?" != "x0" && pkg_failed=yes 31943else 31944 pkg_failed=yes 31945fi 31946 else 31947 pkg_failed=untried 31948fi 31949if test -n "$XEPHYR_LIBS"; then 31950 pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS" 31951 elif test -n "$PKG_CONFIG"; then 31952 if test -n "$PKG_CONFIG" && \ 31953 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 31954 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 31955 ac_status=$? 31956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31957 test $ac_status = 0; }; then 31958 pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 31959 test "x$?" != "x0" && pkg_failed=yes 31960else 31961 pkg_failed=yes 31962fi 31963 else 31964 pkg_failed=untried 31965fi 31966 31967 31968 31969if test $pkg_failed = yes; then 31970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31971$as_echo "no" >&6; } 31972 31973if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31974 _pkg_short_errors_supported=yes 31975else 31976 _pkg_short_errors_supported=no 31977fi 31978 if test $_pkg_short_errors_supported = yes; then 31979 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 31980 else 31981 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 31982 fi 31983 # Put the nasty error message in config.log where it belongs 31984 echo "$XEPHYR_PKG_ERRORS" >&5 31985 31986 as_fn_error $? "Package requirements ($XEPHYR_REQUIRED_LIBS) were not met: 31987 31988$XEPHYR_PKG_ERRORS 31989 31990Consider adjusting the PKG_CONFIG_PATH environment variable if you 31991installed software in a non-standard prefix. 31992 31993Alternatively, you may set the environment variables XEPHYR_CFLAGS 31994and XEPHYR_LIBS to avoid the need to call pkg-config. 31995See the pkg-config man page for more details." "$LINENO" 5 31996elif test $pkg_failed = untried; then 31997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31998$as_echo "no" >&6; } 31999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32001as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32002is in your PATH or set the PKG_CONFIG environment variable to the full 32003path to pkg-config. 32004 32005Alternatively, you may set the environment variables XEPHYR_CFLAGS 32006and XEPHYR_LIBS to avoid the need to call pkg-config. 32007See the pkg-config man page for more details. 32008 32009To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32010See \`config.log' for more details" "$LINENO" 5; } 32011else 32012 XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS 32013 XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS 32014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32015$as_echo "yes" >&6; } 32016 32017fi 32018 fi 32019 32020 # Xephyr needs nanosleep() which is in librt on Solaris 32021 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 32022if test "x$ac_cv_func_nanosleep" = xyes; then : 32023 32024else 32025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 32026$as_echo_n "checking for nanosleep in -lrt... " >&6; } 32027if ${ac_cv_lib_rt_nanosleep+:} false; then : 32028 $as_echo_n "(cached) " >&6 32029else 32030 ac_check_lib_save_LIBS=$LIBS 32031LIBS="-lrt $LIBS" 32032cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32033/* end confdefs.h. */ 32034 32035/* Override any GCC internal prototype to avoid an error. 32036 Use char because int might match the return type of a GCC 32037 builtin and then its argument prototype would still apply. */ 32038#ifdef __cplusplus 32039extern "C" 32040#endif 32041char nanosleep (); 32042int 32043main () 32044{ 32045return nanosleep (); 32046 ; 32047 return 0; 32048} 32049_ACEOF 32050if ac_fn_c_try_link "$LINENO"; then : 32051 ac_cv_lib_rt_nanosleep=yes 32052else 32053 ac_cv_lib_rt_nanosleep=no 32054fi 32055rm -f core conftest.err conftest.$ac_objext \ 32056 conftest$ac_exeext conftest.$ac_ext 32057LIBS=$ac_check_lib_save_LIBS 32058fi 32059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 32060$as_echo "$ac_cv_lib_rt_nanosleep" >&6; } 32061if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : 32062 XEPHYR_LIBS="$XEPHYR_LIBS -lrt" 32063fi 32064 32065fi 32066 32067 32068 # damage shadow extension glx (NOTYET) fb mi 32069 KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src' 32070 KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_SYNC_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC" 32071 KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux' 32072 KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC" 32073 32074 KDRIVE_CFLAGS="$XSERVER_CFLAGS" 32075 32076 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" 32077 KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la' 32078 KDRIVE_MAIN_LIB="$MAIN_LIB" 32079 KDRIVE_LOCAL_LIBS="$DIX_LIB $KDRIVE_LIB" 32080 KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS" 32081 KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB" 32082 KDRIVE_LIBS="$KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS" 32083 32084 32085 32086fi 32087 32088 32089 32090 32091 32092 32093 32094 if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then 32095 XEPHYR_TRUE= 32096 XEPHYR_FALSE='#' 32097else 32098 XEPHYR_TRUE='#' 32099 XEPHYR_FALSE= 32100fi 32101 32102 32103 32104XWAYLANDMODULES="wayland-client >= 1.3.0 wayland-protocols >= 1.10 $LIBDRM epoxy" 32105if test "x$XF86VIDMODE" = xyes; then 32106 XWAYLANDMODULES="$XWAYLANDMODULES $VIDMODEPROTO" 32107fi 32108 32109pkg_failed=no 32110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWAYLANDMODULES" >&5 32111$as_echo_n "checking for XWAYLANDMODULES... " >&6; } 32112 32113if test -n "$XWAYLANDMODULES_CFLAGS"; then 32114 pkg_cv_XWAYLANDMODULES_CFLAGS="$XWAYLANDMODULES_CFLAGS" 32115 elif test -n "$PKG_CONFIG"; then 32116 if test -n "$PKG_CONFIG" && \ 32117 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XWAYLANDMODULES\""; } >&5 32118 ($PKG_CONFIG --exists --print-errors "$XWAYLANDMODULES") 2>&5 32119 ac_status=$? 32120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32121 test $ac_status = 0; }; then 32122 pkg_cv_XWAYLANDMODULES_CFLAGS=`$PKG_CONFIG --cflags "$XWAYLANDMODULES" 2>/dev/null` 32123 test "x$?" != "x0" && pkg_failed=yes 32124else 32125 pkg_failed=yes 32126fi 32127 else 32128 pkg_failed=untried 32129fi 32130if test -n "$XWAYLANDMODULES_LIBS"; then 32131 pkg_cv_XWAYLANDMODULES_LIBS="$XWAYLANDMODULES_LIBS" 32132 elif test -n "$PKG_CONFIG"; then 32133 if test -n "$PKG_CONFIG" && \ 32134 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XWAYLANDMODULES\""; } >&5 32135 ($PKG_CONFIG --exists --print-errors "$XWAYLANDMODULES") 2>&5 32136 ac_status=$? 32137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32138 test $ac_status = 0; }; then 32139 pkg_cv_XWAYLANDMODULES_LIBS=`$PKG_CONFIG --libs "$XWAYLANDMODULES" 2>/dev/null` 32140 test "x$?" != "x0" && pkg_failed=yes 32141else 32142 pkg_failed=yes 32143fi 32144 else 32145 pkg_failed=untried 32146fi 32147 32148 32149 32150if test $pkg_failed = yes; then 32151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32152$as_echo "no" >&6; } 32153 32154if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32155 _pkg_short_errors_supported=yes 32156else 32157 _pkg_short_errors_supported=no 32158fi 32159 if test $_pkg_short_errors_supported = yes; then 32160 XWAYLANDMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XWAYLANDMODULES" 2>&1` 32161 else 32162 XWAYLANDMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XWAYLANDMODULES" 2>&1` 32163 fi 32164 # Put the nasty error message in config.log where it belongs 32165 echo "$XWAYLANDMODULES_PKG_ERRORS" >&5 32166 32167 have_xwayland=no 32168elif test $pkg_failed = untried; then 32169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32170$as_echo "no" >&6; } 32171 have_xwayland=no 32172else 32173 XWAYLANDMODULES_CFLAGS=$pkg_cv_XWAYLANDMODULES_CFLAGS 32174 XWAYLANDMODULES_LIBS=$pkg_cv_XWAYLANDMODULES_LIBS 32175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32176$as_echo "yes" >&6; } 32177 have_xwayland=yes 32178fi 32179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xwayland DDX" >&5 32180$as_echo_n "checking whether to build Xwayland DDX... " >&6; } 32181if test "x$XWAYLAND" = xauto; then 32182 XWAYLAND="$have_xwayland" 32183fi 32184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XWAYLAND" >&5 32185$as_echo "$XWAYLAND" >&6; } 32186 if test "x$XWAYLAND" = xyes; then 32187 XWAYLAND_TRUE= 32188 XWAYLAND_FALSE='#' 32189else 32190 XWAYLAND_TRUE='#' 32191 XWAYLAND_FALSE= 32192fi 32193 32194 32195if test "x$XWAYLAND" = xyes; then 32196 if test "x$have_xwayland" = xno; then 32197 as_fn_error $? "Xwayland build explicitly requested, but required modules not found." "$LINENO" 5 32198 fi 32199 32200 if test "x$GLAMOR" = xyes && test "x$GBM" = xyes; then 32201 32202$as_echo "#define XWL_HAS_GLAMOR 1" >>confdefs.h 32203 32204 fi 32205 32206 32207pkg_failed=no 32208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_EGLSTREAM" >&5 32209$as_echo_n "checking for WAYLAND_EGLSTREAM... " >&6; } 32210 32211if test -n "$WAYLAND_EGLSTREAM_CFLAGS"; then 32212 pkg_cv_WAYLAND_EGLSTREAM_CFLAGS="$WAYLAND_EGLSTREAM_CFLAGS" 32213 elif test -n "$PKG_CONFIG"; then 32214 if test -n "$PKG_CONFIG" && \ 32215 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-eglstream-protocols >= 1.0.2\""; } >&5 32216 ($PKG_CONFIG --exists --print-errors "wayland-eglstream-protocols >= 1.0.2") 2>&5 32217 ac_status=$? 32218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32219 test $ac_status = 0; }; then 32220 pkg_cv_WAYLAND_EGLSTREAM_CFLAGS=`$PKG_CONFIG --cflags "wayland-eglstream-protocols >= 1.0.2" 2>/dev/null` 32221 test "x$?" != "x0" && pkg_failed=yes 32222else 32223 pkg_failed=yes 32224fi 32225 else 32226 pkg_failed=untried 32227fi 32228if test -n "$WAYLAND_EGLSTREAM_LIBS"; then 32229 pkg_cv_WAYLAND_EGLSTREAM_LIBS="$WAYLAND_EGLSTREAM_LIBS" 32230 elif test -n "$PKG_CONFIG"; then 32231 if test -n "$PKG_CONFIG" && \ 32232 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-eglstream-protocols >= 1.0.2\""; } >&5 32233 ($PKG_CONFIG --exists --print-errors "wayland-eglstream-protocols >= 1.0.2") 2>&5 32234 ac_status=$? 32235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32236 test $ac_status = 0; }; then 32237 pkg_cv_WAYLAND_EGLSTREAM_LIBS=`$PKG_CONFIG --libs "wayland-eglstream-protocols >= 1.0.2" 2>/dev/null` 32238 test "x$?" != "x0" && pkg_failed=yes 32239else 32240 pkg_failed=yes 32241fi 32242 else 32243 pkg_failed=untried 32244fi 32245 32246 32247 32248if test $pkg_failed = yes; then 32249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32250$as_echo "no" >&6; } 32251 32252if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32253 _pkg_short_errors_supported=yes 32254else 32255 _pkg_short_errors_supported=no 32256fi 32257 if test $_pkg_short_errors_supported = yes; then 32258 WAYLAND_EGLSTREAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-eglstream-protocols >= 1.0.2" 2>&1` 32259 else 32260 WAYLAND_EGLSTREAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-eglstream-protocols >= 1.0.2" 2>&1` 32261 fi 32262 # Put the nasty error message in config.log where it belongs 32263 echo "$WAYLAND_EGLSTREAM_PKG_ERRORS" >&5 32264 32265 have_wl_eglstream=no 32266elif test $pkg_failed = untried; then 32267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32268$as_echo "no" >&6; } 32269 have_wl_eglstream=no 32270else 32271 WAYLAND_EGLSTREAM_CFLAGS=$pkg_cv_WAYLAND_EGLSTREAM_CFLAGS 32272 WAYLAND_EGLSTREAM_LIBS=$pkg_cv_WAYLAND_EGLSTREAM_LIBS 32273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32274$as_echo "yes" >&6; } 32275 have_wl_eglstream=yes 32276fi 32277 32278 if test "x$XWAYLAND_EGLSTREAM" = xauto; then 32279 if test "x$have_wl_eglstream" = xyes && test "x$GLAMOR" = xyes; then 32280 XWAYLAND_EGLSTREAM=yes 32281 fi 32282 fi 32283 32284 if test "x$XWAYLAND_EGLSTREAM" = xyes; then 32285 if test "x$GLAMOR" != xyes; then 32286 as_fn_error $? "Xwayland eglstream support explicitly requested, but required modules not found." "$LINENO" 5 32287 fi 32288 32289 if test "x$have_wl_eglstream" = xno; then 32290 as_fn_error $? "Xwayland eglstream support requires wayland-eglstream-protocols >= 1.0.2" "$LINENO" 5 32291 fi 32292 32293 WAYLAND_EGLSTREAM_DATADIR=`$PKG_CONFIG --variable=pkgdatadir wayland-eglstream-protocols` 32294 32295 32296$as_echo "#define XWL_HAS_EGLSTREAM 1" >>confdefs.h 32297 32298 fi 32299 32300 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" 32301 XWAYLAND_SYS_LIBS="$XWAYLANDMODULES_LIBS $GLX_SYS_LIBS" 32302 32303 32304 32305 if test "x$MONOTONIC_CLOCK" != xyes; then 32306 as_fn_error $? "Xwayland requires CLOCK_MONOTONIC support." "$LINENO" 5 32307 fi 32308 32309 # Extract the first word of "wayland-scanner", so it can be a program name with args. 32310set dummy wayland-scanner; ac_word=$2 32311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32312$as_echo_n "checking for $ac_word... " >&6; } 32313if ${ac_cv_path_WAYLAND_SCANNER+:} false; then : 32314 $as_echo_n "(cached) " >&6 32315else 32316 case $WAYLAND_SCANNER in 32317 [\\/]* | ?:[\\/]*) 32318 ac_cv_path_WAYLAND_SCANNER="$WAYLAND_SCANNER" # Let the user override the test with a path. 32319 ;; 32320 *) 32321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32322for as_dir in $PATH 32323do 32324 IFS=$as_save_IFS 32325 test -z "$as_dir" && as_dir=. 32326 for ac_exec_ext in '' $ac_executable_extensions; do 32327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32328 ac_cv_path_WAYLAND_SCANNER="$as_dir/$ac_word$ac_exec_ext" 32329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32330 break 2 32331 fi 32332done 32333 done 32334IFS=$as_save_IFS 32335 32336 ;; 32337esac 32338fi 32339WAYLAND_SCANNER=$ac_cv_path_WAYLAND_SCANNER 32340if test -n "$WAYLAND_SCANNER"; then 32341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WAYLAND_SCANNER" >&5 32342$as_echo "$WAYLAND_SCANNER" >&6; } 32343else 32344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32345$as_echo "no" >&6; } 32346fi 32347 32348 32349 if test "x$WAYLAND_SCANNER" = x; then 32350 32351pkg_failed=no 32352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_SCANNER" >&5 32353$as_echo_n "checking for WAYLAND_SCANNER... " >&6; } 32354 32355if test -n "$WAYLAND_SCANNER_CFLAGS"; then 32356 pkg_cv_WAYLAND_SCANNER_CFLAGS="$WAYLAND_SCANNER_CFLAGS" 32357 elif test -n "$PKG_CONFIG"; then 32358 if test -n "$PKG_CONFIG" && \ 32359 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner\""; } >&5 32360 ($PKG_CONFIG --exists --print-errors "wayland-scanner") 2>&5 32361 ac_status=$? 32362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32363 test $ac_status = 0; }; then 32364 pkg_cv_WAYLAND_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "wayland-scanner" 2>/dev/null` 32365 test "x$?" != "x0" && pkg_failed=yes 32366else 32367 pkg_failed=yes 32368fi 32369 else 32370 pkg_failed=untried 32371fi 32372if test -n "$WAYLAND_SCANNER_LIBS"; then 32373 pkg_cv_WAYLAND_SCANNER_LIBS="$WAYLAND_SCANNER_LIBS" 32374 elif test -n "$PKG_CONFIG"; then 32375 if test -n "$PKG_CONFIG" && \ 32376 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner\""; } >&5 32377 ($PKG_CONFIG --exists --print-errors "wayland-scanner") 2>&5 32378 ac_status=$? 32379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32380 test $ac_status = 0; }; then 32381 pkg_cv_WAYLAND_SCANNER_LIBS=`$PKG_CONFIG --libs "wayland-scanner" 2>/dev/null` 32382 test "x$?" != "x0" && pkg_failed=yes 32383else 32384 pkg_failed=yes 32385fi 32386 else 32387 pkg_failed=untried 32388fi 32389 32390 32391 32392if test $pkg_failed = yes; then 32393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32394$as_echo "no" >&6; } 32395 32396if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32397 _pkg_short_errors_supported=yes 32398else 32399 _pkg_short_errors_supported=no 32400fi 32401 if test $_pkg_short_errors_supported = yes; then 32402 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-scanner" 2>&1` 32403 else 32404 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-scanner" 2>&1` 32405 fi 32406 # Put the nasty error message in config.log where it belongs 32407 echo "$WAYLAND_SCANNER_PKG_ERRORS" >&5 32408 32409 as_fn_error $? "Package requirements (wayland-scanner) were not met: 32410 32411$WAYLAND_SCANNER_PKG_ERRORS 32412 32413Consider adjusting the PKG_CONFIG_PATH environment variable if you 32414installed software in a non-standard prefix. 32415 32416Alternatively, you may set the environment variables WAYLAND_SCANNER_CFLAGS 32417and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config. 32418See the pkg-config man page for more details." "$LINENO" 5 32419elif test $pkg_failed = untried; then 32420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32421$as_echo "no" >&6; } 32422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32424as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32425is in your PATH or set the PKG_CONFIG environment variable to the full 32426path to pkg-config. 32427 32428Alternatively, you may set the environment variables WAYLAND_SCANNER_CFLAGS 32429and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config. 32430See the pkg-config man page for more details. 32431 32432To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32433See \`config.log' for more details" "$LINENO" 5; } 32434else 32435 WAYLAND_SCANNER_CFLAGS=$pkg_cv_WAYLAND_SCANNER_CFLAGS 32436 WAYLAND_SCANNER_LIBS=$pkg_cv_WAYLAND_SCANNER_LIBS 32437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32438$as_echo "yes" >&6; } 32439 32440fi 32441 WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner` 32442 32443 fi 32444 32445 32446pkg_failed=no 32447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_SCANNER" >&5 32448$as_echo_n "checking for WAYLAND_SCANNER... " >&6; } 32449 32450if test -n "$WAYLAND_SCANNER_CFLAGS"; then 32451 pkg_cv_WAYLAND_SCANNER_CFLAGS="$WAYLAND_SCANNER_CFLAGS" 32452 elif test -n "$PKG_CONFIG"; then 32453 if test -n "$PKG_CONFIG" && \ 32454 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner >= 1.14.91\""; } >&5 32455 ($PKG_CONFIG --exists --print-errors "wayland-scanner >= 1.14.91") 2>&5 32456 ac_status=$? 32457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32458 test $ac_status = 0; }; then 32459 pkg_cv_WAYLAND_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "wayland-scanner >= 1.14.91" 2>/dev/null` 32460 test "x$?" != "x0" && pkg_failed=yes 32461else 32462 pkg_failed=yes 32463fi 32464 else 32465 pkg_failed=untried 32466fi 32467if test -n "$WAYLAND_SCANNER_LIBS"; then 32468 pkg_cv_WAYLAND_SCANNER_LIBS="$WAYLAND_SCANNER_LIBS" 32469 elif test -n "$PKG_CONFIG"; then 32470 if test -n "$PKG_CONFIG" && \ 32471 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner >= 1.14.91\""; } >&5 32472 ($PKG_CONFIG --exists --print-errors "wayland-scanner >= 1.14.91") 2>&5 32473 ac_status=$? 32474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32475 test $ac_status = 0; }; then 32476 pkg_cv_WAYLAND_SCANNER_LIBS=`$PKG_CONFIG --libs "wayland-scanner >= 1.14.91" 2>/dev/null` 32477 test "x$?" != "x0" && pkg_failed=yes 32478else 32479 pkg_failed=yes 32480fi 32481 else 32482 pkg_failed=untried 32483fi 32484 32485 32486 32487if test $pkg_failed = yes; then 32488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32489$as_echo "no" >&6; } 32490 32491if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32492 _pkg_short_errors_supported=yes 32493else 32494 _pkg_short_errors_supported=no 32495fi 32496 if test $_pkg_short_errors_supported = yes; then 32497 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-scanner >= 1.14.91" 2>&1` 32498 else 32499 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-scanner >= 1.14.91" 2>&1` 32500 fi 32501 # Put the nasty error message in config.log where it belongs 32502 echo "$WAYLAND_SCANNER_PKG_ERRORS" >&5 32503 32504 SCANNER_ARG='code' 32505 32506elif test $pkg_failed = untried; then 32507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32508$as_echo "no" >&6; } 32509 SCANNER_ARG='code' 32510 32511else 32512 WAYLAND_SCANNER_CFLAGS=$pkg_cv_WAYLAND_SCANNER_CFLAGS 32513 WAYLAND_SCANNER_LIBS=$pkg_cv_WAYLAND_SCANNER_LIBS 32514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32515$as_echo "yes" >&6; } 32516 SCANNER_ARG='private-code' 32517 32518fi 32519 32520 WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols` 32521 32522fi 32523 if test "x$XWAYLAND_EGLSTREAM" = "xyes"; then 32524 XWAYLAND_EGLSTREAM_TRUE= 32525 XWAYLAND_EGLSTREAM_FALSE='#' 32526else 32527 XWAYLAND_EGLSTREAM_TRUE='#' 32528 XWAYLAND_EGLSTREAM_FALSE= 32529fi 32530 32531 32532 32533 32534cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32535/* end confdefs.h. */ 32536 32537#include <features.h> 32538#ifndef __GLIBC__ 32539#error not glibc 32540#endif 32541 32542int 32543main () 32544{ 32545 32546 ; 32547 return 0; 32548} 32549_ACEOF 32550if ac_fn_c_try_compile "$LINENO"; then : 32551 32552$as_echo "#define _GNU_SOURCE 1" >>confdefs.h 32553 32554fi 32555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32556 32557 32558 prefix_NONE= 32559 exec_prefix_NONE= 32560 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32561 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32562 eval ac_define_dir="\"$prefix\"" 32563 eval ac_define_dir="\"$ac_define_dir\"" 32564 PROJECTROOT="$ac_define_dir" 32565 32566 32567cat >>confdefs.h <<_ACEOF 32568#define PROJECTROOT "$ac_define_dir" 32569_ACEOF 32570 32571 test "$prefix_NONE" && prefix=NONE 32572 test "$exec_prefix_NONE" && exec_prefix=NONE 32573 32574 32575 prefix_NONE= 32576 exec_prefix_NONE= 32577 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32578 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32579 eval ac_define_dir="\"$sysconfdir\"" 32580 eval ac_define_dir="\"$ac_define_dir\"" 32581 SYSCONFDIR="$ac_define_dir" 32582 32583 32584cat >>confdefs.h <<_ACEOF 32585#define SYSCONFDIR "$ac_define_dir" 32586_ACEOF 32587 32588 test "$prefix_NONE" && prefix=NONE 32589 test "$exec_prefix_NONE" && exec_prefix=NONE 32590 32591 32592 32593DATE_FMT="%Y%m%d" 32594TIME_FMT="1%H%M%S" 32595BUILD_DATE="`date "+$DATE_FMT"`" 32596BUILD_TIME="`date "+$TIME_FMT"`" 32597if test "x$SOURCE_DATE_EPOCH" != "x"; then 32598 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"`" 32599 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"`" 32600fi 32601 32602 32603 32604DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS" 32605 32606 32607 32608 32609 32610 32611 32612ac_config_commands="$ac_config_commands sdksyms" 32613 32614 32615if test "x$CONFIG_HAL" = xno && test "x$CONFIG_UDEV" = xno; then 32616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 32617 *********************************************** 32618 Neither HAL nor udev backend will be enabled. 32619 Input device hotplugging will not be available! 32620 ***********************************************" >&5 32621$as_echo "$as_me: WARNING: 32622 *********************************************** 32623 Neither HAL nor udev backend will be enabled. 32624 Input device hotplugging will not be available! 32625 ***********************************************" >&2;} 32626fi 32627 32628ac_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" 32629 32630cat >confcache <<\_ACEOF 32631# This file is a shell script that caches the results of configure 32632# tests run on this system so they can be shared between configure 32633# scripts and configure runs, see configure's option --config-cache. 32634# It is not useful on other systems. If it contains results you don't 32635# want to keep, you may remove or edit it. 32636# 32637# config.status only pays attention to the cache file if you give it 32638# the --recheck option to rerun configure. 32639# 32640# `ac_cv_env_foo' variables (set or unset) will be overridden when 32641# loading this file, other *unset* `ac_cv_foo' will be assigned the 32642# following values. 32643 32644_ACEOF 32645 32646# The following way of writing the cache mishandles newlines in values, 32647# but we know of no workaround that is simple, portable, and efficient. 32648# So, we kill variables containing newlines. 32649# Ultrix sh set writes to stderr and can't be redirected directly, 32650# and sets the high bit in the cache file unless we assign to the vars. 32651( 32652 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 32653 eval ac_val=\$$ac_var 32654 case $ac_val in #( 32655 *${as_nl}*) 32656 case $ac_var in #( 32657 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 32658$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 32659 esac 32660 case $ac_var in #( 32661 _ | IFS | as_nl) ;; #( 32662 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 32663 *) { eval $ac_var=; unset $ac_var;} ;; 32664 esac ;; 32665 esac 32666 done 32667 32668 (set) 2>&1 | 32669 case $as_nl`(ac_space=' '; set) 2>&1` in #( 32670 *${as_nl}ac_space=\ *) 32671 # `set' does not quote correctly, so add quotes: double-quote 32672 # substitution turns \\\\ into \\, and sed turns \\ into \. 32673 sed -n \ 32674 "s/'/'\\\\''/g; 32675 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 32676 ;; #( 32677 *) 32678 # `set' quotes correctly as required by POSIX, so do not add quotes. 32679 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 32680 ;; 32681 esac | 32682 sort 32683) | 32684 sed ' 32685 /^ac_cv_env_/b end 32686 t clear 32687 :clear 32688 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 32689 t end 32690 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 32691 :end' >>confcache 32692if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 32693 if test -w "$cache_file"; then 32694 if test "x$cache_file" != "x/dev/null"; then 32695 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 32696$as_echo "$as_me: updating cache $cache_file" >&6;} 32697 if test ! -f "$cache_file" || test -h "$cache_file"; then 32698 cat confcache >"$cache_file" 32699 else 32700 case $cache_file in #( 32701 */* | ?:*) 32702 mv -f confcache "$cache_file"$$ && 32703 mv -f "$cache_file"$$ "$cache_file" ;; #( 32704 *) 32705 mv -f confcache "$cache_file" ;; 32706 esac 32707 fi 32708 fi 32709 else 32710 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 32711$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 32712 fi 32713fi 32714rm -f confcache 32715 32716test "x$prefix" = xNONE && prefix=$ac_default_prefix 32717# Let make expand exec_prefix. 32718test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 32719 32720DEFS=-DHAVE_CONFIG_H 32721 32722ac_libobjs= 32723ac_ltlibobjs= 32724U= 32725for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 32726 # 1. Remove the extension, and $U if already installed. 32727 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 32728 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 32729 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 32730 # will be set to the directory where LIBOBJS objects are built. 32731 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 32732 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 32733done 32734LIBOBJS=$ac_libobjs 32735 32736LTLIBOBJS=$ac_ltlibobjs 32737 32738 32739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 32740$as_echo_n "checking that generated files are newer than configure... " >&6; } 32741 if test -n "$am_sleep_pid"; then 32742 # Hide warnings about reused PIDs. 32743 wait $am_sleep_pid 2>/dev/null 32744 fi 32745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 32746$as_echo "done" >&6; } 32747 if test -n "$EXEEXT"; then 32748 am__EXEEXT_TRUE= 32749 am__EXEEXT_FALSE='#' 32750else 32751 am__EXEEXT_TRUE='#' 32752 am__EXEEXT_FALSE= 32753fi 32754 32755if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 32756 as_fn_error $? "conditional \"AMDEP\" was never defined. 32757Usually this means the macro was only invoked conditionally." "$LINENO" 5 32758fi 32759if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 32760 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 32761Usually this means the macro was only invoked conditionally." "$LINENO" 5 32762fi 32763if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then 32764 as_fn_error $? "conditional \"HAVE_DOT\" was never defined. 32765Usually this means the macro was only invoked conditionally." "$LINENO" 5 32766fi 32767if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 32768 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 32769Usually this means the macro was only invoked conditionally." "$LINENO" 5 32770fi 32771if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 32772 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 32773Usually this means the macro was only invoked conditionally." "$LINENO" 5 32774fi 32775if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 32776 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 32777Usually this means the macro was only invoked conditionally." "$LINENO" 5 32778fi 32779if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 32780 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 32781Usually this means the macro was only invoked conditionally." "$LINENO" 5 32782fi 32783if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 32784 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 32785Usually this means the macro was only invoked conditionally." "$LINENO" 5 32786fi 32787if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 32788 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 32789Usually this means the macro was only invoked conditionally." "$LINENO" 5 32790fi 32791if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 32792 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 32793Usually this means the macro was only invoked conditionally." "$LINENO" 5 32794fi 32795if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 32796 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 32797Usually this means the macro was only invoked conditionally." "$LINENO" 5 32798fi 32799if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then 32800 as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined. 32801Usually this means the macro was only invoked conditionally." "$LINENO" 5 32802fi 32803if test -z "${HAVE_LD_WRAP_TRUE}" && test -z "${HAVE_LD_WRAP_FALSE}"; then 32804 as_fn_error $? "conditional \"HAVE_LD_WRAP\" was never defined. 32805Usually this means the macro was only invoked conditionally." "$LINENO" 5 32806fi 32807if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 32808 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 32809Usually this means the macro was only invoked conditionally." "$LINENO" 5 32810fi 32811if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then 32812 as_fn_error $? "conditional \"XSERVER_DTRACE\" was never defined. 32813Usually this means the macro was only invoked conditionally." "$LINENO" 5 32814fi 32815if test -z "${SPECIAL_DTRACE_OBJECTS_TRUE}" && test -z "${SPECIAL_DTRACE_OBJECTS_FALSE}"; then 32816 as_fn_error $? "conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined. 32817Usually this means the macro was only invoked conditionally." "$LINENO" 5 32818fi 32819 32820if test -z "${POLL_TRUE}" && test -z "${POLL_FALSE}"; then 32821 as_fn_error $? "conditional \"POLL\" was never defined. 32822Usually this means the macro was only invoked conditionally." "$LINENO" 5 32823fi 32824if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then 32825 as_fn_error $? "conditional \"AGP\" was never defined. 32826Usually this means the macro was only invoked conditionally." "$LINENO" 5 32827fi 32828if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then 32829 as_fn_error $? "conditional \"FBDEVHW\" was never defined. 32830Usually this means the macro was only invoked conditionally." "$LINENO" 5 32831fi 32832if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then 32833 as_fn_error $? "conditional \"FREEBSD_KLDLOAD\" was never defined. 32834Usually this means the macro was only invoked conditionally." "$LINENO" 5 32835fi 32836if test -z "${BSD_APM_TRUE}" && test -z "${BSD_APM_FALSE}"; then 32837 as_fn_error $? "conditional \"BSD_APM\" was never defined. 32838Usually this means the macro was only invoked conditionally." "$LINENO" 5 32839fi 32840if test -z "${BSD_KQUEUE_APM_TRUE}" && test -z "${BSD_KQUEUE_APM_FALSE}"; then 32841 as_fn_error $? "conditional \"BSD_KQUEUE_APM\" was never defined. 32842Usually this means the macro was only invoked conditionally." "$LINENO" 5 32843fi 32844if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then 32845 as_fn_error $? "conditional \"ALPHA_VIDEO\" was never defined. 32846Usually this means the macro was only invoked conditionally." "$LINENO" 5 32847fi 32848if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then 32849 as_fn_error $? "conditional \"ARM_VIDEO\" was never defined. 32850Usually this means the macro was only invoked conditionally." "$LINENO" 5 32851fi 32852if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then 32853 as_fn_error $? "conditional \"I386_VIDEO\" was never defined. 32854Usually this means the macro was only invoked conditionally." "$LINENO" 5 32855fi 32856if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then 32857 as_fn_error $? "conditional \"PPC_VIDEO\" was never defined. 32858Usually this means the macro was only invoked conditionally." "$LINENO" 5 32859fi 32860if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then 32861 as_fn_error $? "conditional \"SPARC64_VIDEO\" was never defined. 32862Usually this means the macro was only invoked conditionally." "$LINENO" 5 32863fi 32864if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then 32865 as_fn_error $? "conditional \"INSTALL_SETUID\" was never defined. 32866Usually this means the macro was only invoked conditionally." "$LINENO" 5 32867fi 32868if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then 32869 as_fn_error $? "conditional \"SECURE_RPC\" was never defined. 32870Usually this means the macro was only invoked conditionally." "$LINENO" 5 32871fi 32872if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then 32873 as_fn_error $? "conditional \"INT10_VM86\" was never defined. 32874Usually this means the macro was only invoked conditionally." "$LINENO" 5 32875fi 32876if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then 32877 as_fn_error $? "conditional \"INT10_X86EMU\" was never defined. 32878Usually this means the macro was only invoked conditionally." "$LINENO" 5 32879fi 32880if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then 32881 as_fn_error $? "conditional \"INT10_STUB\" was never defined. 32882Usually this means the macro was only invoked conditionally." "$LINENO" 5 32883fi 32884if test -z "${HAVE_SYSTEMD_DAEMON_TRUE}" && test -z "${HAVE_SYSTEMD_DAEMON_FALSE}"; then 32885 as_fn_error $? "conditional \"HAVE_SYSTEMD_DAEMON\" was never defined. 32886Usually this means the macro was only invoked conditionally." "$LINENO" 5 32887fi 32888if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; then 32889 as_fn_error $? "conditional \"CONFIG_UDEV\" was never defined. 32890Usually this means the macro was only invoked conditionally." "$LINENO" 5 32891fi 32892if test -z "${CONFIG_UDEV_KMS_TRUE}" && test -z "${CONFIG_UDEV_KMS_FALSE}"; then 32893 as_fn_error $? "conditional \"CONFIG_UDEV_KMS\" was never defined. 32894Usually this means the macro was only invoked conditionally." "$LINENO" 5 32895fi 32896if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then 32897 as_fn_error $? "conditional \"HAVE_DBUS\" was never defined. 32898Usually this means the macro was only invoked conditionally." "$LINENO" 5 32899fi 32900if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then 32901 as_fn_error $? "conditional \"CONFIG_HAL\" was never defined. 32902Usually this means the macro was only invoked conditionally." "$LINENO" 5 32903fi 32904if test -z "${SYSTEMD_LOGIND_TRUE}" && test -z "${SYSTEMD_LOGIND_FALSE}"; then 32905 as_fn_error $? "conditional \"SYSTEMD_LOGIND\" was never defined. 32906Usually this means the macro was only invoked conditionally." "$LINENO" 5 32907fi 32908if test -z "${SUID_WRAPPER_TRUE}" && test -z "${SUID_WRAPPER_FALSE}"; then 32909 as_fn_error $? "conditional \"SUID_WRAPPER\" was never defined. 32910Usually this means the macro was only invoked conditionally." "$LINENO" 5 32911fi 32912if test -z "${NEED_DBUS_TRUE}" && test -z "${NEED_DBUS_FALSE}"; then 32913 as_fn_error $? "conditional \"NEED_DBUS\" was never defined. 32914Usually this means the macro was only invoked conditionally." "$LINENO" 5 32915fi 32916if test -z "${CONFIG_WSCONS_TRUE}" && test -z "${CONFIG_WSCONS_FALSE}"; then 32917 as_fn_error $? "conditional \"CONFIG_WSCONS\" was never defined. 32918Usually this means the macro was only invoked conditionally." "$LINENO" 5 32919fi 32920if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then 32921 as_fn_error $? "conditional \"XV\" was never defined. 32922Usually this means the macro was only invoked conditionally." "$LINENO" 5 32923fi 32924if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then 32925 as_fn_error $? "conditional \"XVMC\" was never defined. 32926Usually this means the macro was only invoked conditionally." "$LINENO" 5 32927fi 32928if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then 32929 as_fn_error $? "conditional \"COMPOSITE\" was never defined. 32930Usually this means the macro was only invoked conditionally." "$LINENO" 5 32931fi 32932if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then 32933 as_fn_error $? "conditional \"MITSHM\" was never defined. 32934Usually this means the macro was only invoked conditionally." "$LINENO" 5 32935fi 32936if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then 32937 as_fn_error $? "conditional \"RECORD\" was never defined. 32938Usually this means the macro was only invoked conditionally." "$LINENO" 5 32939fi 32940if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then 32941 as_fn_error $? "conditional \"SCREENSAVER\" was never defined. 32942Usually this means the macro was only invoked conditionally." "$LINENO" 5 32943fi 32944if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then 32945 as_fn_error $? "conditional \"RES\" was never defined. 32946Usually this means the macro was only invoked conditionally." "$LINENO" 5 32947fi 32948if test -z "${CLIENTIDS_TRUE}" && test -z "${CLIENTIDS_FALSE}"; then 32949 as_fn_error $? "conditional \"CLIENTIDS\" was never defined. 32950Usually this means the macro was only invoked conditionally." "$LINENO" 5 32951fi 32952if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 32953 as_fn_error $? "conditional \"DRI\" was never defined. 32954Usually this means the macro was only invoked conditionally." "$LINENO" 5 32955fi 32956if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then 32957 as_fn_error $? "conditional \"DRI2\" was never defined. 32958Usually this means the macro was only invoked conditionally." "$LINENO" 5 32959fi 32960if test -z "${BUSFAULT_TRUE}" && test -z "${BUSFAULT_FALSE}"; then 32961 as_fn_error $? "conditional \"BUSFAULT\" was never defined. 32962Usually this means the macro was only invoked conditionally." "$LINENO" 5 32963fi 32964if test -z "${XSHMFENCE_TRUE}" && test -z "${XSHMFENCE_FALSE}"; then 32965 as_fn_error $? "conditional \"XSHMFENCE\" was never defined. 32966Usually this means the macro was only invoked conditionally." "$LINENO" 5 32967fi 32968if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then 32969 as_fn_error $? "conditional \"DRI3\" was never defined. 32970Usually this means the macro was only invoked conditionally." "$LINENO" 5 32971fi 32972if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then 32973 as_fn_error $? "conditional \"GLX\" was never defined. 32974Usually this means the macro was only invoked conditionally." "$LINENO" 5 32975fi 32976if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then 32977 as_fn_error $? "conditional \"PRESENT\" was never defined. 32978Usually this means the macro was only invoked conditionally." "$LINENO" 5 32979fi 32980if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then 32981 as_fn_error $? "conditional \"XINERAMA\" was never defined. 32982Usually this means the macro was only invoked conditionally." "$LINENO" 5 32983fi 32984if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then 32985 as_fn_error $? "conditional \"XACE\" was never defined. 32986Usually this means the macro was only invoked conditionally." "$LINENO" 5 32987fi 32988if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then 32989 as_fn_error $? "conditional \"XSELINUX\" was never defined. 32990Usually this means the macro was only invoked conditionally." "$LINENO" 5 32991fi 32992if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then 32993 as_fn_error $? "conditional \"XCSECURITY\" was never defined. 32994Usually this means the macro was only invoked conditionally." "$LINENO" 5 32995fi 32996if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then 32997 as_fn_error $? "conditional \"DBE\" was never defined. 32998Usually this means the macro was only invoked conditionally." "$LINENO" 5 32999fi 33000if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then 33001 as_fn_error $? "conditional \"XF86BIGFONT\" was never defined. 33002Usually this means the macro was only invoked conditionally." "$LINENO" 5 33003fi 33004if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then 33005 as_fn_error $? "conditional \"DPMSExtension\" was never defined. 33006Usually this means the macro was only invoked conditionally." "$LINENO" 5 33007fi 33008if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then 33009 as_fn_error $? "conditional \"XF86UTILS\" was never defined. 33010Usually this means the macro was only invoked conditionally." "$LINENO" 5 33011fi 33012if test -z "${VGAHW_TRUE}" && test -z "${VGAHW_FALSE}"; then 33013 as_fn_error $? "conditional \"VGAHW\" was never defined. 33014Usually this means the macro was only invoked conditionally." "$LINENO" 5 33015fi 33016if test -z "${VBE_TRUE}" && test -z "${VBE_FALSE}"; then 33017 as_fn_error $? "conditional \"VBE\" was never defined. 33018Usually this means the macro was only invoked conditionally." "$LINENO" 5 33019fi 33020if test -z "${INT10MODULE_TRUE}" && test -z "${INT10MODULE_FALSE}"; then 33021 as_fn_error $? "conditional \"INT10MODULE\" was never defined. 33022Usually this means the macro was only invoked conditionally." "$LINENO" 5 33023fi 33024if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then 33025 as_fn_error $? "conditional \"XDMCP\" was never defined. 33026Usually this means the macro was only invoked conditionally." "$LINENO" 5 33027fi 33028if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then 33029 as_fn_error $? "conditional \"XDMAUTH\" was never defined. 33030Usually this means the macro was only invoked conditionally." "$LINENO" 5 33031fi 33032if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then 33033 as_fn_error $? "conditional \"XF86VIDMODE\" was never defined. 33034Usually this means the macro was only invoked conditionally." "$LINENO" 5 33035fi 33036if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then 33037 as_fn_error $? "conditional \"DEBUG\" was never defined. 33038Usually this means the macro was only invoked conditionally." "$LINENO" 5 33039fi 33040if test -z "${HAVE_LIBUNWIND_TRUE}" && test -z "${HAVE_LIBUNWIND_FALSE}"; then 33041 as_fn_error $? "conditional \"HAVE_LIBUNWIND\" was never defined. 33042Usually this means the macro was only invoked conditionally." "$LINENO" 5 33043fi 33044if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then 33045 as_fn_error $? "conditional \"CYGWIN\" was never defined. 33046Usually this means the macro was only invoked conditionally." "$LINENO" 5 33047fi 33048if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then 33049 as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined. 33050Usually this means the macro was only invoked conditionally." "$LINENO" 5 33051fi 33052if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then 33053 as_fn_error $? "conditional \"XVFB\" was never defined. 33054Usually this means the macro was only invoked conditionally." "$LINENO" 5 33055fi 33056if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then 33057 as_fn_error $? "conditional \"XNEST\" was never defined. 33058Usually this means the macro was only invoked conditionally." "$LINENO" 5 33059fi 33060if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then 33061 as_fn_error $? "conditional \"XORG\" was never defined. 33062Usually this means the macro was only invoked conditionally." "$LINENO" 5 33063fi 33064if test -z "${XORG_BUS_PCI_TRUE}" && test -z "${XORG_BUS_PCI_FALSE}"; then 33065 as_fn_error $? "conditional \"XORG_BUS_PCI\" was never defined. 33066Usually this means the macro was only invoked conditionally." "$LINENO" 5 33067fi 33068if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then 33069 as_fn_error $? "conditional \"XORG_BUS_BSDPCI\" was never defined. 33070Usually this means the macro was only invoked conditionally." "$LINENO" 5 33071fi 33072if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then 33073 as_fn_error $? "conditional \"XORG_BUS_SPARC\" was never defined. 33074Usually this means the macro was only invoked conditionally." "$LINENO" 5 33075fi 33076if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then 33077 as_fn_error $? "conditional \"LNXACPI\" was never defined. 33078Usually this means the macro was only invoked conditionally." "$LINENO" 5 33079fi 33080if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then 33081 as_fn_error $? "conditional \"LNXAPM\" was never defined. 33082Usually this means the macro was only invoked conditionally." "$LINENO" 5 33083fi 33084if test -z "${SOLARIS_VT_TRUE}" && test -z "${SOLARIS_VT_FALSE}"; then 33085 as_fn_error $? "conditional \"SOLARIS_VT\" was never defined. 33086Usually this means the macro was only invoked conditionally." "$LINENO" 5 33087fi 33088if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then 33089 as_fn_error $? "conditional \"DGA\" was never defined. 33090Usually this means the macro was only invoked conditionally." "$LINENO" 5 33091fi 33092if test -z "${XORG_BUS_PLATFORM_TRUE}" && test -z "${XORG_BUS_PLATFORM_FALSE}"; then 33093 as_fn_error $? "conditional \"XORG_BUS_PLATFORM\" was never defined. 33094Usually this means the macro was only invoked conditionally." "$LINENO" 5 33095fi 33096if test -z "${XORG_DRIVER_MODESETTING_TRUE}" && test -z "${XORG_DRIVER_MODESETTING_FALSE}"; then 33097 as_fn_error $? "conditional \"XORG_DRIVER_MODESETTING\" was never defined. 33098Usually this means the macro was only invoked conditionally." "$LINENO" 5 33099fi 33100if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then 33101 as_fn_error $? "conditional \"GLAMOR\" was never defined. 33102Usually this means the macro was only invoked conditionally." "$LINENO" 5 33103fi 33104if test -z "${GLAMOR_EGL_TRUE}" && test -z "${GLAMOR_EGL_FALSE}"; then 33105 as_fn_error $? "conditional \"GLAMOR_EGL\" was never defined. 33106Usually this means the macro was only invoked conditionally." "$LINENO" 5 33107fi 33108if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then 33109 as_fn_error $? "conditional \"XWIN\" was never defined. 33110Usually this means the macro was only invoked conditionally." "$LINENO" 5 33111fi 33112if test -z "${XWIN_MULTIWINDOWEXTWM_TRUE}" && test -z "${XWIN_MULTIWINDOWEXTWM_FALSE}"; then 33113 as_fn_error $? "conditional \"XWIN_MULTIWINDOWEXTWM\" was never defined. 33114Usually this means the macro was only invoked conditionally." "$LINENO" 5 33115fi 33116if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then 33117 as_fn_error $? "conditional \"XWIN_GLX_WINDOWS\" was never defined. 33118Usually this means the macro was only invoked conditionally." "$LINENO" 5 33119fi 33120if test -z "${XWIN_WINDOWS_DRI_TRUE}" && test -z "${XWIN_WINDOWS_DRI_FALSE}"; then 33121 as_fn_error $? "conditional \"XWIN_WINDOWS_DRI\" was never defined. 33122Usually this means the macro was only invoked conditionally." "$LINENO" 5 33123fi 33124if test -z "${PSEUDORAMIX_TRUE}" && test -z "${PSEUDORAMIX_FALSE}"; then 33125 as_fn_error $? "conditional \"PSEUDORAMIX\" was never defined. 33126Usually this means the macro was only invoked conditionally." "$LINENO" 5 33127fi 33128if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then 33129 as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. 33130Usually this means the macro was only invoked conditionally." "$LINENO" 5 33131fi 33132if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then 33133 as_fn_error $? "conditional \"XQUARTZ\" was never defined. 33134Usually this means the macro was only invoked conditionally." "$LINENO" 5 33135fi 33136if test -z "${XQUARTZ_SPARKLE_TRUE}" && test -z "${XQUARTZ_SPARKLE_FALSE}"; then 33137 as_fn_error $? "conditional \"XQUARTZ_SPARKLE\" was never defined. 33138Usually this means the macro was only invoked conditionally." "$LINENO" 5 33139fi 33140if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then 33141 as_fn_error $? "conditional \"STANDALONE_XPBPROXY\" was never defined. 33142Usually this means the macro was only invoked conditionally." "$LINENO" 5 33143fi 33144if test -z "${DMX_TRUE}" && test -z "${DMX_FALSE}"; then 33145 as_fn_error $? "conditional \"DMX\" was never defined. 33146Usually this means the macro was only invoked conditionally." "$LINENO" 5 33147fi 33148if test -z "${DMX_BUILD_USB_TRUE}" && test -z "${DMX_BUILD_USB_FALSE}"; then 33149 as_fn_error $? "conditional \"DMX_BUILD_USB\" was never defined. 33150Usually this means the macro was only invoked conditionally." "$LINENO" 5 33151fi 33152if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then 33153 as_fn_error $? "conditional \"KDRIVE\" was never defined. 33154Usually this means the macro was only invoked conditionally." "$LINENO" 5 33155fi 33156if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then 33157 as_fn_error $? "conditional \"XEPHYR\" was never defined. 33158Usually this means the macro was only invoked conditionally." "$LINENO" 5 33159fi 33160if test -z "${XWAYLAND_TRUE}" && test -z "${XWAYLAND_FALSE}"; then 33161 as_fn_error $? "conditional \"XWAYLAND\" was never defined. 33162Usually this means the macro was only invoked conditionally." "$LINENO" 5 33163fi 33164if test -z "${XWAYLAND_EGLSTREAM_TRUE}" && test -z "${XWAYLAND_EGLSTREAM_FALSE}"; then 33165 as_fn_error $? "conditional \"XWAYLAND_EGLSTREAM\" was never defined. 33166Usually this means the macro was only invoked conditionally." "$LINENO" 5 33167fi 33168 33169: "${CONFIG_STATUS=./config.status}" 33170ac_write_fail=0 33171ac_clean_files_save=$ac_clean_files 33172ac_clean_files="$ac_clean_files $CONFIG_STATUS" 33173{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 33174$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 33175as_write_fail=0 33176cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 33177#! $SHELL 33178# Generated by $as_me. 33179# Run this file to recreate the current configuration. 33180# Compiler output produced by configure, useful for debugging 33181# configure, is in config.log if it exists. 33182 33183debug=false 33184ac_cs_recheck=false 33185ac_cs_silent=false 33186 33187SHELL=\${CONFIG_SHELL-$SHELL} 33188export SHELL 33189_ASEOF 33190cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 33191## -------------------- ## 33192## M4sh Initialization. ## 33193## -------------------- ## 33194 33195# Be more Bourne compatible 33196DUALCASE=1; export DUALCASE # for MKS sh 33197if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 33198 emulate sh 33199 NULLCMD=: 33200 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 33201 # is contrary to our usage. Disable this feature. 33202 alias -g '${1+"$@"}'='"$@"' 33203 setopt NO_GLOB_SUBST 33204else 33205 case `(set -o) 2>/dev/null` in #( 33206 *posix*) : 33207 set -o posix ;; #( 33208 *) : 33209 ;; 33210esac 33211fi 33212 33213 33214as_nl=' 33215' 33216export as_nl 33217# Printing a long string crashes Solaris 7 /usr/bin/printf. 33218as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 33219as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 33220as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 33221# Prefer a ksh shell builtin over an external printf program on Solaris, 33222# but without wasting forks for bash or zsh. 33223if test -z "$BASH_VERSION$ZSH_VERSION" \ 33224 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 33225 as_echo='print -r --' 33226 as_echo_n='print -rn --' 33227elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 33228 as_echo='printf %s\n' 33229 as_echo_n='printf %s' 33230else 33231 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 33232 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 33233 as_echo_n='/usr/ucb/echo -n' 33234 else 33235 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 33236 as_echo_n_body='eval 33237 arg=$1; 33238 case $arg in #( 33239 *"$as_nl"*) 33240 expr "X$arg" : "X\\(.*\\)$as_nl"; 33241 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 33242 esac; 33243 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 33244 ' 33245 export as_echo_n_body 33246 as_echo_n='sh -c $as_echo_n_body as_echo' 33247 fi 33248 export as_echo_body 33249 as_echo='sh -c $as_echo_body as_echo' 33250fi 33251 33252# The user is always right. 33253if test "${PATH_SEPARATOR+set}" != set; then 33254 PATH_SEPARATOR=: 33255 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 33256 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 33257 PATH_SEPARATOR=';' 33258 } 33259fi 33260 33261 33262# IFS 33263# We need space, tab and new line, in precisely that order. Quoting is 33264# there to prevent editors from complaining about space-tab. 33265# (If _AS_PATH_WALK were called with IFS unset, it would disable word 33266# splitting by setting IFS to empty value.) 33267IFS=" "" $as_nl" 33268 33269# Find who we are. Look in the path if we contain no directory separator. 33270as_myself= 33271case $0 in #(( 33272 *[\\/]* ) as_myself=$0 ;; 33273 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33274for as_dir in $PATH 33275do 33276 IFS=$as_save_IFS 33277 test -z "$as_dir" && as_dir=. 33278 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 33279 done 33280IFS=$as_save_IFS 33281 33282 ;; 33283esac 33284# We did not find ourselves, most probably we were run as `sh COMMAND' 33285# in which case we are not to be found in the path. 33286if test "x$as_myself" = x; then 33287 as_myself=$0 33288fi 33289if test ! -f "$as_myself"; then 33290 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 33291 exit 1 33292fi 33293 33294# Unset variables that we do not need and which cause bugs (e.g. in 33295# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 33296# suppresses any "Segmentation fault" message there. '((' could 33297# trigger a bug in pdksh 5.2.14. 33298for as_var in BASH_ENV ENV MAIL MAILPATH 33299do eval test x\${$as_var+set} = xset \ 33300 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 33301done 33302PS1='$ ' 33303PS2='> ' 33304PS4='+ ' 33305 33306# NLS nuisances. 33307LC_ALL=C 33308export LC_ALL 33309LANGUAGE=C 33310export LANGUAGE 33311 33312# CDPATH. 33313(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 33314 33315 33316# as_fn_error STATUS ERROR [LINENO LOG_FD] 33317# ---------------------------------------- 33318# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 33319# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 33320# script with STATUS, using 1 if that was 0. 33321as_fn_error () 33322{ 33323 as_status=$1; test $as_status -eq 0 && as_status=1 33324 if test "$4"; then 33325 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 33326 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 33327 fi 33328 $as_echo "$as_me: error: $2" >&2 33329 as_fn_exit $as_status 33330} # as_fn_error 33331 33332 33333# as_fn_set_status STATUS 33334# ----------------------- 33335# Set $? to STATUS, without forking. 33336as_fn_set_status () 33337{ 33338 return $1 33339} # as_fn_set_status 33340 33341# as_fn_exit STATUS 33342# ----------------- 33343# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 33344as_fn_exit () 33345{ 33346 set +e 33347 as_fn_set_status $1 33348 exit $1 33349} # as_fn_exit 33350 33351# as_fn_unset VAR 33352# --------------- 33353# Portably unset VAR. 33354as_fn_unset () 33355{ 33356 { eval $1=; unset $1;} 33357} 33358as_unset=as_fn_unset 33359# as_fn_append VAR VALUE 33360# ---------------------- 33361# Append the text in VALUE to the end of the definition contained in VAR. Take 33362# advantage of any shell optimizations that allow amortized linear growth over 33363# repeated appends, instead of the typical quadratic growth present in naive 33364# implementations. 33365if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 33366 eval 'as_fn_append () 33367 { 33368 eval $1+=\$2 33369 }' 33370else 33371 as_fn_append () 33372 { 33373 eval $1=\$$1\$2 33374 } 33375fi # as_fn_append 33376 33377# as_fn_arith ARG... 33378# ------------------ 33379# Perform arithmetic evaluation on the ARGs, and store the result in the 33380# global $as_val. Take advantage of shells that can avoid forks. The arguments 33381# must be portable across $(()) and expr. 33382if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 33383 eval 'as_fn_arith () 33384 { 33385 as_val=$(( $* )) 33386 }' 33387else 33388 as_fn_arith () 33389 { 33390 as_val=`expr "$@" || test $? -eq 1` 33391 } 33392fi # as_fn_arith 33393 33394 33395if expr a : '\(a\)' >/dev/null 2>&1 && 33396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 33397 as_expr=expr 33398else 33399 as_expr=false 33400fi 33401 33402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 33403 as_basename=basename 33404else 33405 as_basename=false 33406fi 33407 33408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 33409 as_dirname=dirname 33410else 33411 as_dirname=false 33412fi 33413 33414as_me=`$as_basename -- "$0" || 33415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 33416 X"$0" : 'X\(//\)$' \| \ 33417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 33418$as_echo X/"$0" | 33419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 33420 s//\1/ 33421 q 33422 } 33423 /^X\/\(\/\/\)$/{ 33424 s//\1/ 33425 q 33426 } 33427 /^X\/\(\/\).*/{ 33428 s//\1/ 33429 q 33430 } 33431 s/.*/./; q'` 33432 33433# Avoid depending upon Character Ranges. 33434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 33435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 33436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 33437as_cr_digits='0123456789' 33438as_cr_alnum=$as_cr_Letters$as_cr_digits 33439 33440ECHO_C= ECHO_N= ECHO_T= 33441case `echo -n x` in #((((( 33442-n*) 33443 case `echo 'xy\c'` in 33444 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 33445 xy) ECHO_C='\c';; 33446 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 33447 ECHO_T=' ';; 33448 esac;; 33449*) 33450 ECHO_N='-n';; 33451esac 33452 33453rm -f conf$$ conf$$.exe conf$$.file 33454if test -d conf$$.dir; then 33455 rm -f conf$$.dir/conf$$.file 33456else 33457 rm -f conf$$.dir 33458 mkdir conf$$.dir 2>/dev/null 33459fi 33460if (echo >conf$$.file) 2>/dev/null; then 33461 if ln -s conf$$.file conf$$ 2>/dev/null; then 33462 as_ln_s='ln -s' 33463 # ... but there are two gotchas: 33464 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 33465 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 33466 # In both cases, we have to default to `cp -pR'. 33467 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 33468 as_ln_s='cp -pR' 33469 elif ln conf$$.file conf$$ 2>/dev/null; then 33470 as_ln_s=ln 33471 else 33472 as_ln_s='cp -pR' 33473 fi 33474else 33475 as_ln_s='cp -pR' 33476fi 33477rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 33478rmdir conf$$.dir 2>/dev/null 33479 33480 33481# as_fn_mkdir_p 33482# ------------- 33483# Create "$as_dir" as a directory, including parents if necessary. 33484as_fn_mkdir_p () 33485{ 33486 33487 case $as_dir in #( 33488 -*) as_dir=./$as_dir;; 33489 esac 33490 test -d "$as_dir" || eval $as_mkdir_p || { 33491 as_dirs= 33492 while :; do 33493 case $as_dir in #( 33494 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 33495 *) as_qdir=$as_dir;; 33496 esac 33497 as_dirs="'$as_qdir' $as_dirs" 33498 as_dir=`$as_dirname -- "$as_dir" || 33499$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 33500 X"$as_dir" : 'X\(//\)[^/]' \| \ 33501 X"$as_dir" : 'X\(//\)$' \| \ 33502 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 33503$as_echo X"$as_dir" | 33504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 33505 s//\1/ 33506 q 33507 } 33508 /^X\(\/\/\)[^/].*/{ 33509 s//\1/ 33510 q 33511 } 33512 /^X\(\/\/\)$/{ 33513 s//\1/ 33514 q 33515 } 33516 /^X\(\/\).*/{ 33517 s//\1/ 33518 q 33519 } 33520 s/.*/./; q'` 33521 test -d "$as_dir" && break 33522 done 33523 test -z "$as_dirs" || eval "mkdir $as_dirs" 33524 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 33525 33526 33527} # as_fn_mkdir_p 33528if mkdir -p . 2>/dev/null; then 33529 as_mkdir_p='mkdir -p "$as_dir"' 33530else 33531 test -d ./-p && rmdir ./-p 33532 as_mkdir_p=false 33533fi 33534 33535 33536# as_fn_executable_p FILE 33537# ----------------------- 33538# Test if FILE is an executable regular file. 33539as_fn_executable_p () 33540{ 33541 test -f "$1" && test -x "$1" 33542} # as_fn_executable_p 33543as_test_x='test -x' 33544as_executable_p=as_fn_executable_p 33545 33546# Sed expression to map a string onto a valid CPP name. 33547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 33548 33549# Sed expression to map a string onto a valid variable name. 33550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 33551 33552 33553exec 6>&1 33554## ----------------------------------- ## 33555## Main body of $CONFIG_STATUS script. ## 33556## ----------------------------------- ## 33557_ASEOF 33558test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 33559 33560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33561# Save the log message, to keep $0 and so on meaningful, and to 33562# report actual input values of CONFIG_FILES etc. instead of their 33563# values after options handling. 33564ac_log=" 33565This file was extended by xorg-server $as_me 1.20.4, which was 33566generated by GNU Autoconf 2.69. Invocation command line was 33567 33568 CONFIG_FILES = $CONFIG_FILES 33569 CONFIG_HEADERS = $CONFIG_HEADERS 33570 CONFIG_LINKS = $CONFIG_LINKS 33571 CONFIG_COMMANDS = $CONFIG_COMMANDS 33572 $ $0 $@ 33573 33574on `(hostname || uname -n) 2>/dev/null | sed 1q` 33575" 33576 33577_ACEOF 33578 33579case $ac_config_files in *" 33580"*) set x $ac_config_files; shift; ac_config_files=$*;; 33581esac 33582 33583case $ac_config_headers in *" 33584"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 33585esac 33586 33587 33588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33589# Files that config.status was made for. 33590config_files="$ac_config_files" 33591config_headers="$ac_config_headers" 33592config_commands="$ac_config_commands" 33593 33594_ACEOF 33595 33596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33597ac_cs_usage="\ 33598\`$as_me' instantiates files and other configuration actions 33599from templates according to the current configuration. Unless the files 33600and actions are specified as TAGs, all are instantiated by default. 33601 33602Usage: $0 [OPTION]... [TAG]... 33603 33604 -h, --help print this help, then exit 33605 -V, --version print version number and configuration settings, then exit 33606 --config print configuration, then exit 33607 -q, --quiet, --silent 33608 do not print progress messages 33609 -d, --debug don't remove temporary files 33610 --recheck update $as_me by reconfiguring in the same conditions 33611 --file=FILE[:TEMPLATE] 33612 instantiate the configuration file FILE 33613 --header=FILE[:TEMPLATE] 33614 instantiate the configuration header FILE 33615 33616Configuration files: 33617$config_files 33618 33619Configuration headers: 33620$config_headers 33621 33622Configuration commands: 33623$config_commands 33624 33625Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>." 33626 33627_ACEOF 33628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33629ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 33630ac_cs_version="\\ 33631xorg-server config.status 1.20.4 33632configured by $0, generated by GNU Autoconf 2.69, 33633 with options \\"\$ac_cs_config\\" 33634 33635Copyright (C) 2012 Free Software Foundation, Inc. 33636This config.status script is free software; the Free Software Foundation 33637gives unlimited permission to copy, distribute and modify it." 33638 33639ac_pwd='$ac_pwd' 33640srcdir='$srcdir' 33641INSTALL='$INSTALL' 33642MKDIR_P='$MKDIR_P' 33643AWK='$AWK' 33644test -n "\$AWK" || AWK=awk 33645_ACEOF 33646 33647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33648# The default lists apply if the user does not specify any file. 33649ac_need_defaults=: 33650while test $# != 0 33651do 33652 case $1 in 33653 --*=?*) 33654 ac_option=`expr "X$1" : 'X\([^=]*\)='` 33655 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 33656 ac_shift=: 33657 ;; 33658 --*=) 33659 ac_option=`expr "X$1" : 'X\([^=]*\)='` 33660 ac_optarg= 33661 ac_shift=: 33662 ;; 33663 *) 33664 ac_option=$1 33665 ac_optarg=$2 33666 ac_shift=shift 33667 ;; 33668 esac 33669 33670 case $ac_option in 33671 # Handling of the options. 33672 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 33673 ac_cs_recheck=: ;; 33674 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 33675 $as_echo "$ac_cs_version"; exit ;; 33676 --config | --confi | --conf | --con | --co | --c ) 33677 $as_echo "$ac_cs_config"; exit ;; 33678 --debug | --debu | --deb | --de | --d | -d ) 33679 debug=: ;; 33680 --file | --fil | --fi | --f ) 33681 $ac_shift 33682 case $ac_optarg in 33683 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 33684 '') as_fn_error $? "missing file argument" ;; 33685 esac 33686 as_fn_append CONFIG_FILES " '$ac_optarg'" 33687 ac_need_defaults=false;; 33688 --header | --heade | --head | --hea ) 33689 $ac_shift 33690 case $ac_optarg in 33691 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 33692 esac 33693 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 33694 ac_need_defaults=false;; 33695 --he | --h) 33696 # Conflict between --help and --header 33697 as_fn_error $? "ambiguous option: \`$1' 33698Try \`$0 --help' for more information.";; 33699 --help | --hel | -h ) 33700 $as_echo "$ac_cs_usage"; exit ;; 33701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 33702 | -silent | --silent | --silen | --sile | --sil | --si | --s) 33703 ac_cs_silent=: ;; 33704 33705 # This is an error. 33706 -*) as_fn_error $? "unrecognized option: \`$1' 33707Try \`$0 --help' for more information." ;; 33708 33709 *) as_fn_append ac_config_targets " $1" 33710 ac_need_defaults=false ;; 33711 33712 esac 33713 shift 33714done 33715 33716ac_configure_extra_args= 33717 33718if $ac_cs_silent; then 33719 exec 6>/dev/null 33720 ac_configure_extra_args="$ac_configure_extra_args --silent" 33721fi 33722 33723_ACEOF 33724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33725if \$ac_cs_recheck; then 33726 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 33727 shift 33728 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 33729 CONFIG_SHELL='$SHELL' 33730 export CONFIG_SHELL 33731 exec "\$@" 33732fi 33733 33734_ACEOF 33735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33736exec 5>>config.log 33737{ 33738 echo 33739 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 33740## Running $as_me. ## 33741_ASBOX 33742 $as_echo "$ac_log" 33743} >&5 33744 33745_ACEOF 33746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33747# 33748# INIT-COMMANDS 33749# 33750AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 33751 33752 33753# The HP-UX ksh and POSIX shell print the target directory to stdout 33754# if CDPATH is set. 33755(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 33756 33757sed_quote_subst='$sed_quote_subst' 33758double_quote_subst='$double_quote_subst' 33759delay_variable_subst='$delay_variable_subst' 33760macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 33761macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 33762enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 33763AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 33764DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 33765OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 33766enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 33767pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 33768enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 33769shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 33770SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 33771ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 33772PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 33773host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 33774host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 33775host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 33776build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 33777build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 33778build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 33779SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 33780Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 33781GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 33782EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 33783FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 33784LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 33785NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 33786LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 33787max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 33788ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 33789exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 33790lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 33791lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 33792lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 33793lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 33794lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 33795reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 33796reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 33797deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 33798file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 33799file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 33800want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 33801sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 33802AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 33803AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 33804archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 33805STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 33806RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 33807old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 33808old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 33809old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 33810lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 33811CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 33812CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 33813compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 33814GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 33815lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 33816lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 33817lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 33818lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 33819lt_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"`' 33820lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 33821nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 33822lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 33823lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 33824objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 33825MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 33826lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 33827lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 33828lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 33829lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 33830lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 33831need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 33832MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 33833DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 33834NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 33835LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 33836OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 33837OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 33838libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 33839shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 33840extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 33841archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 33842enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 33843export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 33844whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 33845compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 33846old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 33847old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 33848archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 33849archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 33850module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 33851module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 33852with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 33853allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 33854no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 33855hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 33856hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 33857hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 33858hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 33859hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 33860hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 33861hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 33862inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 33863link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 33864always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 33865export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 33866exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 33867include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 33868prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 33869postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 33870file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 33871variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 33872need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 33873need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 33874version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 33875runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 33876shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 33877shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 33878libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 33879library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 33880soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 33881install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 33882postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 33883postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 33884finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 33885finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 33886hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 33887sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 33888configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 33889configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 33890hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 33891enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 33892enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 33893enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 33894old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 33895striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 33896 33897LTCC='$LTCC' 33898LTCFLAGS='$LTCFLAGS' 33899compiler='$compiler_DEFAULT' 33900 33901# A function that is used when there is no print builtin or printf. 33902func_fallback_echo () 33903{ 33904 eval 'cat <<_LTECHO_EOF 33905\$1 33906_LTECHO_EOF' 33907} 33908 33909# Quote evaled strings. 33910for var in AS \ 33911DLLTOOL \ 33912OBJDUMP \ 33913SHELL \ 33914ECHO \ 33915PATH_SEPARATOR \ 33916SED \ 33917GREP \ 33918EGREP \ 33919FGREP \ 33920LD \ 33921NM \ 33922LN_S \ 33923lt_SP2NL \ 33924lt_NL2SP \ 33925reload_flag \ 33926deplibs_check_method \ 33927file_magic_cmd \ 33928file_magic_glob \ 33929want_nocaseglob \ 33930sharedlib_from_linklib_cmd \ 33931AR \ 33932AR_FLAGS \ 33933archiver_list_spec \ 33934STRIP \ 33935RANLIB \ 33936CC \ 33937CFLAGS \ 33938compiler \ 33939lt_cv_sys_global_symbol_pipe \ 33940lt_cv_sys_global_symbol_to_cdecl \ 33941lt_cv_sys_global_symbol_to_import \ 33942lt_cv_sys_global_symbol_to_c_name_address \ 33943lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 33944lt_cv_nm_interface \ 33945nm_file_list_spec \ 33946lt_cv_truncate_bin \ 33947lt_prog_compiler_no_builtin_flag \ 33948lt_prog_compiler_pic \ 33949lt_prog_compiler_wl \ 33950lt_prog_compiler_static \ 33951lt_cv_prog_compiler_c_o \ 33952need_locks \ 33953MANIFEST_TOOL \ 33954DSYMUTIL \ 33955NMEDIT \ 33956LIPO \ 33957OTOOL \ 33958OTOOL64 \ 33959shrext_cmds \ 33960export_dynamic_flag_spec \ 33961whole_archive_flag_spec \ 33962compiler_needs_object \ 33963with_gnu_ld \ 33964allow_undefined_flag \ 33965no_undefined_flag \ 33966hardcode_libdir_flag_spec \ 33967hardcode_libdir_separator \ 33968exclude_expsyms \ 33969include_expsyms \ 33970file_list_spec \ 33971variables_saved_for_relink \ 33972libname_spec \ 33973library_names_spec \ 33974soname_spec \ 33975install_override_mode \ 33976finish_eval \ 33977old_striplib \ 33978striplib; do 33979 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 33980 *[\\\\\\\`\\"\\\$]*) 33981 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 33982 ;; 33983 *) 33984 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 33985 ;; 33986 esac 33987done 33988 33989# Double-quote double-evaled strings. 33990for var in reload_cmds \ 33991old_postinstall_cmds \ 33992old_postuninstall_cmds \ 33993old_archive_cmds \ 33994extract_expsyms_cmds \ 33995old_archive_from_new_cmds \ 33996old_archive_from_expsyms_cmds \ 33997archive_cmds \ 33998archive_expsym_cmds \ 33999module_cmds \ 34000module_expsym_cmds \ 34001export_symbols_cmds \ 34002prelink_cmds \ 34003postlink_cmds \ 34004postinstall_cmds \ 34005postuninstall_cmds \ 34006finish_cmds \ 34007sys_lib_search_path_spec \ 34008configure_time_dlsearch_path \ 34009configure_time_lt_sys_library_path; do 34010 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 34011 *[\\\\\\\`\\"\\\$]*) 34012 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 34013 ;; 34014 *) 34015 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 34016 ;; 34017 esac 34018done 34019 34020ac_aux_dir='$ac_aux_dir' 34021 34022# See if we are running on zsh, and set the options that allow our 34023# commands through without removal of \ escapes INIT. 34024if test -n "\${ZSH_VERSION+set}"; then 34025 setopt NO_GLOB_SUBST 34026fi 34027 34028 34029 PACKAGE='$PACKAGE' 34030 VERSION='$VERSION' 34031 RM='$RM' 34032 ofile='$ofile' 34033 34034 34035 34036 34037_ACEOF 34038 34039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34040 34041# Handling of arguments. 34042for ac_config_target in $ac_config_targets 34043do 34044 case $ac_config_target in 34045 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 34046 "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;; 34047 "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;; 34048 "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;; 34049 "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;; 34050 "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;; 34051 "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;; 34052 "include/xwayland-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwayland-config.h" ;; 34053 "include/version-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/version-config.h" ;; 34054 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 34055 "sdksyms") CONFIG_COMMANDS="$CONFIG_COMMANDS sdksyms" ;; 34056 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 34057 "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;; 34058 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 34059 "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;; 34060 "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;; 34061 "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;; 34062 "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;; 34063 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 34064 "doc/dtrace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dtrace/Makefile" ;; 34065 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 34066 "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;; 34067 "glamor/Makefile") CONFIG_FILES="$CONFIG_FILES glamor/Makefile" ;; 34068 "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;; 34069 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 34070 "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;; 34071 "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;; 34072 "miext/sync/Makefile") CONFIG_FILES="$CONFIG_FILES miext/sync/Makefile" ;; 34073 "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;; 34074 "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;; 34075 "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;; 34076 "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;; 34077 "pseudoramiX/Makefile") CONFIG_FILES="$CONFIG_FILES pseudoramiX/Makefile" ;; 34078 "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;; 34079 "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;; 34080 "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;; 34081 "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;; 34082 "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;; 34083 "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;; 34084 "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;; 34085 "dri3/Makefile") CONFIG_FILES="$CONFIG_FILES dri3/Makefile" ;; 34086 "present/Makefile") CONFIG_FILES="$CONFIG_FILES present/Makefile" ;; 34087 "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;; 34088 "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;; 34089 "hw/xfree86/Xorg.sh") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Xorg.sh" ;; 34090 "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;; 34091 "hw/xfree86/common/xf86Build.h") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/xf86Build.h" ;; 34092 "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;; 34093 "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;; 34094 "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;; 34095 "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;; 34096 "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;; 34097 "hw/xfree86/dri2/pci_ids/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/pci_ids/Makefile" ;; 34098 "hw/xfree86/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/Makefile" ;; 34099 "hw/xfree86/drivers/modesetting/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/modesetting/Makefile" ;; 34100 "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;; 34101 "hw/xfree86/exa/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/man/Makefile" ;; 34102 "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;; 34103 "hw/xfree86/fbdevhw/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/man/Makefile" ;; 34104 "hw/xfree86/glamor_egl/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/glamor_egl/Makefile" ;; 34105 "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;; 34106 "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;; 34107 "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;; 34108 "hw/xfree86/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/man/Makefile" ;; 34109 "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;; 34110 "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;; 34111 "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;; 34112 "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;; 34113 "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;; 34114 "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;; 34115 "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;; 34116 "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;; 34117 "hw/xfree86/os-support/stub/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/stub/Makefile" ;; 34118 "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;; 34119 "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;; 34120 "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;; 34121 "hw/xfree86/vbe/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vbe/Makefile" ;; 34122 "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;; 34123 "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;; 34124 "hw/xfree86/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xkb/Makefile" ;; 34125 "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;; 34126 "hw/xfree86/utils/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/man/Makefile" ;; 34127 "hw/xfree86/utils/cvt/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/cvt/Makefile" ;; 34128 "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;; 34129 "hw/dmx/config/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/Makefile" ;; 34130 "hw/dmx/config/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/man/Makefile" ;; 34131 "hw/dmx/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doc/Makefile" ;; 34132 "hw/dmx/doxygen/doxygen.conf") CONFIG_FILES="$CONFIG_FILES hw/dmx/doxygen/doxygen.conf" ;; 34133 "hw/dmx/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doxygen/Makefile" ;; 34134 "hw/dmx/examples/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/examples/Makefile" ;; 34135 "hw/dmx/input/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/input/Makefile" ;; 34136 "hw/dmx/glxProxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/glxProxy/Makefile" ;; 34137 "hw/dmx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/Makefile" ;; 34138 "hw/dmx/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/man/Makefile" ;; 34139 "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;; 34140 "hw/vfb/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/man/Makefile" ;; 34141 "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;; 34142 "hw/xnest/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/man/Makefile" ;; 34143 "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;; 34144 "hw/xwin/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/dri/Makefile" ;; 34145 "hw/xwin/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/glx/Makefile" ;; 34146 "hw/xwin/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/man/Makefile" ;; 34147 "hw/xwin/winclipboard/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/winclipboard/Makefile" ;; 34148 "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;; 34149 "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;; 34150 "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;; 34151 "hw/xquartz/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/man/Makefile" ;; 34152 "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;; 34153 "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;; 34154 "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;; 34155 "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;; 34156 "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;; 34157 "hw/kdrive/ephyr/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/man/Makefile" ;; 34158 "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;; 34159 "hw/xwayland/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwayland/Makefile" ;; 34160 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 34161 "xserver.ent") CONFIG_FILES="$CONFIG_FILES xserver.ent" ;; 34162 "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;; 34163 34164 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 34165 esac 34166done 34167 34168 34169# If the user did not use the arguments to specify the items to instantiate, 34170# then the envvar interface is used. Set only those that are not. 34171# We use the long form for the default assignment because of an extremely 34172# bizarre bug on SunOS 4.1.3. 34173if $ac_need_defaults; then 34174 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 34175 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 34176 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 34177fi 34178 34179# Have a temporary directory for convenience. Make it in the build tree 34180# simply because there is no reason against having it here, and in addition, 34181# creating and moving files from /tmp can sometimes cause problems. 34182# Hook for its removal unless debugging. 34183# Note that there is a small window in which the directory will not be cleaned: 34184# after its creation but before its name has been assigned to `$tmp'. 34185$debug || 34186{ 34187 tmp= ac_tmp= 34188 trap 'exit_status=$? 34189 : "${ac_tmp:=$tmp}" 34190 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 34191' 0 34192 trap 'as_fn_exit 1' 1 2 13 15 34193} 34194# Create a (secure) tmp directory for tmp files. 34195 34196{ 34197 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 34198 test -d "$tmp" 34199} || 34200{ 34201 tmp=./conf$$-$RANDOM 34202 (umask 077 && mkdir "$tmp") 34203} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 34204ac_tmp=$tmp 34205 34206# Set up the scripts for CONFIG_FILES section. 34207# No need to generate them if there are no CONFIG_FILES. 34208# This happens for instance with `./config.status config.h'. 34209if test -n "$CONFIG_FILES"; then 34210 34211 34212ac_cr=`echo X | tr X '\015'` 34213# On cygwin, bash can eat \r inside `` if the user requested igncr. 34214# But we know of no other shell where ac_cr would be empty at this 34215# point, so we can use a bashism as a fallback. 34216if test "x$ac_cr" = x; then 34217 eval ac_cr=\$\'\\r\' 34218fi 34219ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 34220if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 34221 ac_cs_awk_cr='\\r' 34222else 34223 ac_cs_awk_cr=$ac_cr 34224fi 34225 34226echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 34227_ACEOF 34228 34229 34230{ 34231 echo "cat >conf$$subs.awk <<_ACEOF" && 34232 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 34233 echo "_ACEOF" 34234} >conf$$subs.sh || 34235 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34236ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 34237ac_delim='%!_!# ' 34238for ac_last_try in false false false false false :; do 34239 . ./conf$$subs.sh || 34240 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34241 34242 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 34243 if test $ac_delim_n = $ac_delim_num; then 34244 break 34245 elif $ac_last_try; then 34246 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34247 else 34248 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34249 fi 34250done 34251rm -f conf$$subs.sh 34252 34253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34254cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 34255_ACEOF 34256sed -n ' 34257h 34258s/^/S["/; s/!.*/"]=/ 34259p 34260g 34261s/^[^!]*!// 34262:repl 34263t repl 34264s/'"$ac_delim"'$// 34265t delim 34266:nl 34267h 34268s/\(.\{148\}\)..*/\1/ 34269t more1 34270s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 34271p 34272n 34273b repl 34274:more1 34275s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 34276p 34277g 34278s/.\{148\}// 34279t nl 34280:delim 34281h 34282s/\(.\{148\}\)..*/\1/ 34283t more2 34284s/["\\]/\\&/g; s/^/"/; s/$/"/ 34285p 34286b 34287:more2 34288s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 34289p 34290g 34291s/.\{148\}// 34292t delim 34293' <conf$$subs.awk | sed ' 34294/^[^""]/{ 34295 N 34296 s/\n// 34297} 34298' >>$CONFIG_STATUS || ac_write_fail=1 34299rm -f conf$$subs.awk 34300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34301_ACAWK 34302cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 34303 for (key in S) S_is_set[key] = 1 34304 FS = "" 34305 34306} 34307{ 34308 line = $ 0 34309 nfields = split(line, field, "@") 34310 substed = 0 34311 len = length(field[1]) 34312 for (i = 2; i < nfields; i++) { 34313 key = field[i] 34314 keylen = length(key) 34315 if (S_is_set[key]) { 34316 value = S[key] 34317 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 34318 len += length(value) + length(field[++i]) 34319 substed = 1 34320 } else 34321 len += 1 + keylen 34322 } 34323 34324 print line 34325} 34326 34327_ACAWK 34328_ACEOF 34329cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34330if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 34331 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 34332else 34333 cat 34334fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 34335 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 34336_ACEOF 34337 34338# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 34339# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 34340# trailing colons and then remove the whole line if VPATH becomes empty 34341# (actually we leave an empty line to preserve line numbers). 34342if test "x$srcdir" = x.; then 34343 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 34344h 34345s/// 34346s/^/:/ 34347s/[ ]*$/:/ 34348s/:\$(srcdir):/:/g 34349s/:\${srcdir}:/:/g 34350s/:@srcdir@:/:/g 34351s/^:*// 34352s/:*$// 34353x 34354s/\(=[ ]*\).*/\1/ 34355G 34356s/\n// 34357s/^[^=]*=[ ]*$// 34358}' 34359fi 34360 34361cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34362fi # test -n "$CONFIG_FILES" 34363 34364# Set up the scripts for CONFIG_HEADERS section. 34365# No need to generate them if there are no CONFIG_HEADERS. 34366# This happens for instance with `./config.status Makefile'. 34367if test -n "$CONFIG_HEADERS"; then 34368cat >"$ac_tmp/defines.awk" <<\_ACAWK || 34369BEGIN { 34370_ACEOF 34371 34372# Transform confdefs.h into an awk script `defines.awk', embedded as 34373# here-document in config.status, that substitutes the proper values into 34374# config.h.in to produce config.h. 34375 34376# Create a delimiter string that does not exist in confdefs.h, to ease 34377# handling of long lines. 34378ac_delim='%!_!# ' 34379for ac_last_try in false false :; do 34380 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 34381 if test -z "$ac_tt"; then 34382 break 34383 elif $ac_last_try; then 34384 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 34385 else 34386 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34387 fi 34388done 34389 34390# For the awk script, D is an array of macro values keyed by name, 34391# likewise P contains macro parameters if any. Preserve backslash 34392# newline sequences. 34393 34394ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 34395sed -n ' 34396s/.\{148\}/&'"$ac_delim"'/g 34397t rset 34398:rset 34399s/^[ ]*#[ ]*define[ ][ ]*/ / 34400t def 34401d 34402:def 34403s/\\$// 34404t bsnl 34405s/["\\]/\\&/g 34406s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 34407D["\1"]=" \3"/p 34408s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 34409d 34410:bsnl 34411s/["\\]/\\&/g 34412s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 34413D["\1"]=" \3\\\\\\n"\\/p 34414t cont 34415s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 34416t cont 34417d 34418:cont 34419n 34420s/.\{148\}/&'"$ac_delim"'/g 34421t clear 34422:clear 34423s/\\$// 34424t bsnlc 34425s/["\\]/\\&/g; s/^/"/; s/$/"/p 34426d 34427:bsnlc 34428s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 34429b cont 34430' <confdefs.h | sed ' 34431s/'"$ac_delim"'/"\\\ 34432"/g' >>$CONFIG_STATUS || ac_write_fail=1 34433 34434cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34435 for (key in D) D_is_set[key] = 1 34436 FS = "" 34437} 34438/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 34439 line = \$ 0 34440 split(line, arg, " ") 34441 if (arg[1] == "#") { 34442 defundef = arg[2] 34443 mac1 = arg[3] 34444 } else { 34445 defundef = substr(arg[1], 2) 34446 mac1 = arg[2] 34447 } 34448 split(mac1, mac2, "(") #) 34449 macro = mac2[1] 34450 prefix = substr(line, 1, index(line, defundef) - 1) 34451 if (D_is_set[macro]) { 34452 # Preserve the white space surrounding the "#". 34453 print prefix "define", macro P[macro] D[macro] 34454 next 34455 } else { 34456 # Replace #undef with comments. This is necessary, for example, 34457 # in the case of _POSIX_SOURCE, which is predefined and required 34458 # on some systems where configure will not decide to define it. 34459 if (defundef == "undef") { 34460 print "/*", prefix defundef, macro, "*/" 34461 next 34462 } 34463 } 34464} 34465{ print } 34466_ACAWK 34467_ACEOF 34468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34469 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 34470fi # test -n "$CONFIG_HEADERS" 34471 34472 34473eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 34474shift 34475for ac_tag 34476do 34477 case $ac_tag in 34478 :[FHLC]) ac_mode=$ac_tag; continue;; 34479 esac 34480 case $ac_mode$ac_tag in 34481 :[FHL]*:*);; 34482 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 34483 :[FH]-) ac_tag=-:-;; 34484 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 34485 esac 34486 ac_save_IFS=$IFS 34487 IFS=: 34488 set x $ac_tag 34489 IFS=$ac_save_IFS 34490 shift 34491 ac_file=$1 34492 shift 34493 34494 case $ac_mode in 34495 :L) ac_source=$1;; 34496 :[FH]) 34497 ac_file_inputs= 34498 for ac_f 34499 do 34500 case $ac_f in 34501 -) ac_f="$ac_tmp/stdin";; 34502 *) # Look for the file first in the build tree, then in the source tree 34503 # (if the path is not absolute). The absolute path cannot be DOS-style, 34504 # because $ac_f cannot contain `:'. 34505 test -f "$ac_f" || 34506 case $ac_f in 34507 [\\/$]*) false;; 34508 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 34509 esac || 34510 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 34511 esac 34512 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 34513 as_fn_append ac_file_inputs " '$ac_f'" 34514 done 34515 34516 # Let's still pretend it is `configure' which instantiates (i.e., don't 34517 # use $as_me), people would be surprised to read: 34518 # /* config.h. Generated by config.status. */ 34519 configure_input='Generated from '` 34520 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 34521 `' by configure.' 34522 if test x"$ac_file" != x-; then 34523 configure_input="$ac_file. $configure_input" 34524 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 34525$as_echo "$as_me: creating $ac_file" >&6;} 34526 fi 34527 # Neutralize special characters interpreted by sed in replacement strings. 34528 case $configure_input in #( 34529 *\&* | *\|* | *\\* ) 34530 ac_sed_conf_input=`$as_echo "$configure_input" | 34531 sed 's/[\\\\&|]/\\\\&/g'`;; #( 34532 *) ac_sed_conf_input=$configure_input;; 34533 esac 34534 34535 case $ac_tag in 34536 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 34537 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 34538 esac 34539 ;; 34540 esac 34541 34542 ac_dir=`$as_dirname -- "$ac_file" || 34543$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34544 X"$ac_file" : 'X\(//\)[^/]' \| \ 34545 X"$ac_file" : 'X\(//\)$' \| \ 34546 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 34547$as_echo X"$ac_file" | 34548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34549 s//\1/ 34550 q 34551 } 34552 /^X\(\/\/\)[^/].*/{ 34553 s//\1/ 34554 q 34555 } 34556 /^X\(\/\/\)$/{ 34557 s//\1/ 34558 q 34559 } 34560 /^X\(\/\).*/{ 34561 s//\1/ 34562 q 34563 } 34564 s/.*/./; q'` 34565 as_dir="$ac_dir"; as_fn_mkdir_p 34566 ac_builddir=. 34567 34568case "$ac_dir" in 34569.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 34570*) 34571 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 34572 # A ".." for each directory in $ac_dir_suffix. 34573 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 34574 case $ac_top_builddir_sub in 34575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 34576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 34577 esac ;; 34578esac 34579ac_abs_top_builddir=$ac_pwd 34580ac_abs_builddir=$ac_pwd$ac_dir_suffix 34581# for backward compatibility: 34582ac_top_builddir=$ac_top_build_prefix 34583 34584case $srcdir in 34585 .) # We are building in place. 34586 ac_srcdir=. 34587 ac_top_srcdir=$ac_top_builddir_sub 34588 ac_abs_top_srcdir=$ac_pwd ;; 34589 [\\/]* | ?:[\\/]* ) # Absolute name. 34590 ac_srcdir=$srcdir$ac_dir_suffix; 34591 ac_top_srcdir=$srcdir 34592 ac_abs_top_srcdir=$srcdir ;; 34593 *) # Relative name. 34594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 34595 ac_top_srcdir=$ac_top_build_prefix$srcdir 34596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 34597esac 34598ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 34599 34600 34601 case $ac_mode in 34602 :F) 34603 # 34604 # CONFIG_FILE 34605 # 34606 34607 case $INSTALL in 34608 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 34609 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 34610 esac 34611 ac_MKDIR_P=$MKDIR_P 34612 case $MKDIR_P in 34613 [\\/$]* | ?:[\\/]* ) ;; 34614 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 34615 esac 34616_ACEOF 34617 34618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34619# If the template does not know about datarootdir, expand it. 34620# FIXME: This hack should be removed a few years after 2.60. 34621ac_datarootdir_hack=; ac_datarootdir_seen= 34622ac_sed_dataroot=' 34623/datarootdir/ { 34624 p 34625 q 34626} 34627/@datadir@/p 34628/@docdir@/p 34629/@infodir@/p 34630/@localedir@/p 34631/@mandir@/p' 34632case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 34633*datarootdir*) ac_datarootdir_seen=yes;; 34634*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 34635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 34636$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 34637_ACEOF 34638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34639 ac_datarootdir_hack=' 34640 s&@datadir@&$datadir&g 34641 s&@docdir@&$docdir&g 34642 s&@infodir@&$infodir&g 34643 s&@localedir@&$localedir&g 34644 s&@mandir@&$mandir&g 34645 s&\\\${datarootdir}&$datarootdir&g' ;; 34646esac 34647_ACEOF 34648 34649# Neutralize VPATH when `$srcdir' = `.'. 34650# Shell code in configure.ac might set extrasub. 34651# FIXME: do we really want to maintain this feature? 34652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34653ac_sed_extra="$ac_vpsub 34654$extrasub 34655_ACEOF 34656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34657:t 34658/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 34659s|@configure_input@|$ac_sed_conf_input|;t t 34660s&@top_builddir@&$ac_top_builddir_sub&;t t 34661s&@top_build_prefix@&$ac_top_build_prefix&;t t 34662s&@srcdir@&$ac_srcdir&;t t 34663s&@abs_srcdir@&$ac_abs_srcdir&;t t 34664s&@top_srcdir@&$ac_top_srcdir&;t t 34665s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 34666s&@builddir@&$ac_builddir&;t t 34667s&@abs_builddir@&$ac_abs_builddir&;t t 34668s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 34669s&@INSTALL@&$ac_INSTALL&;t t 34670s&@MKDIR_P@&$ac_MKDIR_P&;t t 34671$ac_datarootdir_hack 34672" 34673eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 34674 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34675 34676test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 34677 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 34678 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 34679 "$ac_tmp/out"`; test -z "$ac_out"; } && 34680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 34681which seems to be undefined. Please make sure it is defined" >&5 34682$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 34683which seems to be undefined. Please make sure it is defined" >&2;} 34684 34685 rm -f "$ac_tmp/stdin" 34686 case $ac_file in 34687 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 34688 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 34689 esac \ 34690 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34691 ;; 34692 :H) 34693 # 34694 # CONFIG_HEADER 34695 # 34696 if test x"$ac_file" != x-; then 34697 { 34698 $as_echo "/* $configure_input */" \ 34699 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 34700 } >"$ac_tmp/config.h" \ 34701 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34702 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 34703 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 34704$as_echo "$as_me: $ac_file is unchanged" >&6;} 34705 else 34706 rm -f "$ac_file" 34707 mv "$ac_tmp/config.h" "$ac_file" \ 34708 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34709 fi 34710 else 34711 $as_echo "/* $configure_input */" \ 34712 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 34713 || as_fn_error $? "could not create -" "$LINENO" 5 34714 fi 34715# Compute "$ac_file"'s index in $config_headers. 34716_am_arg="$ac_file" 34717_am_stamp_count=1 34718for _am_header in $config_headers :; do 34719 case $_am_header in 34720 $_am_arg | $_am_arg:* ) 34721 break ;; 34722 * ) 34723 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 34724 esac 34725done 34726echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 34727$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34728 X"$_am_arg" : 'X\(//\)[^/]' \| \ 34729 X"$_am_arg" : 'X\(//\)$' \| \ 34730 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 34731$as_echo X"$_am_arg" | 34732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34733 s//\1/ 34734 q 34735 } 34736 /^X\(\/\/\)[^/].*/{ 34737 s//\1/ 34738 q 34739 } 34740 /^X\(\/\/\)$/{ 34741 s//\1/ 34742 q 34743 } 34744 /^X\(\/\).*/{ 34745 s//\1/ 34746 q 34747 } 34748 s/.*/./; q'`/stamp-h$_am_stamp_count 34749 ;; 34750 34751 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 34752$as_echo "$as_me: executing $ac_file commands" >&6;} 34753 ;; 34754 esac 34755 34756 34757 case $ac_file$ac_mode in 34758 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 34759 # Older Autoconf quotes --file arguments for eval, but not when files 34760 # are listed without --file. Let's play safe and only enable the eval 34761 # if we detect the quoting. 34762 # TODO: see whether this extra hack can be removed once we start 34763 # requiring Autoconf 2.70 or later. 34764 case $CONFIG_FILES in #( 34765 *\'*) : 34766 eval set x "$CONFIG_FILES" ;; #( 34767 *) : 34768 set x $CONFIG_FILES ;; #( 34769 *) : 34770 ;; 34771esac 34772 shift 34773 # Used to flag and report bootstrapping failures. 34774 am_rc=0 34775 for am_mf 34776 do 34777 # Strip MF so we end up with the name of the file. 34778 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 34779 # Check whether this is an Automake generated Makefile which includes 34780 # dependency-tracking related rules and includes. 34781 # Grep'ing the whole file directly is not great: AIX grep has a line 34782 # limit of 2048, but all sed's we know have understand at least 4000. 34783 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 34784 || continue 34785 am_dirpart=`$as_dirname -- "$am_mf" || 34786$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34787 X"$am_mf" : 'X\(//\)[^/]' \| \ 34788 X"$am_mf" : 'X\(//\)$' \| \ 34789 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 34790$as_echo X"$am_mf" | 34791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34792 s//\1/ 34793 q 34794 } 34795 /^X\(\/\/\)[^/].*/{ 34796 s//\1/ 34797 q 34798 } 34799 /^X\(\/\/\)$/{ 34800 s//\1/ 34801 q 34802 } 34803 /^X\(\/\).*/{ 34804 s//\1/ 34805 q 34806 } 34807 s/.*/./; q'` 34808 am_filepart=`$as_basename -- "$am_mf" || 34809$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 34810 X"$am_mf" : 'X\(//\)$' \| \ 34811 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 34812$as_echo X/"$am_mf" | 34813 sed '/^.*\/\([^/][^/]*\)\/*$/{ 34814 s//\1/ 34815 q 34816 } 34817 /^X\/\(\/\/\)$/{ 34818 s//\1/ 34819 q 34820 } 34821 /^X\/\(\/\).*/{ 34822 s//\1/ 34823 q 34824 } 34825 s/.*/./; q'` 34826 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 34827 && sed -e '/# am--include-marker/d' "$am_filepart" \ 34828 | $MAKE -f - am--depfiles" >&5 34829 (cd "$am_dirpart" \ 34830 && sed -e '/# am--include-marker/d' "$am_filepart" \ 34831 | $MAKE -f - am--depfiles) >&5 2>&5 34832 ac_status=$? 34833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34834 (exit $ac_status); } || am_rc=$? 34835 done 34836 if test $am_rc -ne 0; then 34837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34839as_fn_error $? "Something went wrong bootstrapping makefile fragments 34840 for automatic dependency tracking. Try re-running configure with the 34841 '--disable-dependency-tracking' option to at least be able to build 34842 the package (albeit without support for automatic dependency tracking). 34843See \`config.log' for more details" "$LINENO" 5; } 34844 fi 34845 { am_dirpart=; unset am_dirpart;} 34846 { am_filepart=; unset am_filepart;} 34847 { am_mf=; unset am_mf;} 34848 { am_rc=; unset am_rc;} 34849 rm -f conftest-deps.mk 34850} 34851 ;; 34852 "libtool":C) 34853 34854 # See if we are running on zsh, and set the options that allow our 34855 # commands through without removal of \ escapes. 34856 if test -n "${ZSH_VERSION+set}"; then 34857 setopt NO_GLOB_SUBST 34858 fi 34859 34860 cfgfile=${ofile}T 34861 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 34862 $RM "$cfgfile" 34863 34864 cat <<_LT_EOF >> "$cfgfile" 34865#! $SHELL 34866# Generated automatically by $as_me ($PACKAGE) $VERSION 34867# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 34868# NOTE: Changes made to this file will be lost: look at ltmain.sh. 34869 34870# Provide generalized library-building support services. 34871# Written by Gordon Matzigkeit, 1996 34872 34873# Copyright (C) 2014 Free Software Foundation, Inc. 34874# This is free software; see the source for copying conditions. There is NO 34875# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 34876 34877# GNU Libtool is free software; you can redistribute it and/or modify 34878# it under the terms of the GNU General Public License as published by 34879# the Free Software Foundation; either version 2 of of the License, or 34880# (at your option) any later version. 34881# 34882# As a special exception to the GNU General Public License, if you 34883# distribute this file as part of a program or library that is built 34884# using GNU Libtool, you may include this file under the same 34885# distribution terms that you use for the rest of that program. 34886# 34887# GNU Libtool is distributed in the hope that it will be useful, but 34888# WITHOUT ANY WARRANTY; without even the implied warranty of 34889# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 34890# GNU General Public License for more details. 34891# 34892# You should have received a copy of the GNU General Public License 34893# along with this program. If not, see <http://www.gnu.org/licenses/>. 34894 34895 34896# The names of the tagged configurations supported by this script. 34897available_tags='' 34898 34899# Configured defaults for sys_lib_dlsearch_path munging. 34900: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 34901 34902# ### BEGIN LIBTOOL CONFIG 34903 34904# Which release of libtool.m4 was used? 34905macro_version=$macro_version 34906macro_revision=$macro_revision 34907 34908# Whether or not to build static libraries. 34909build_old_libs=$enable_static 34910 34911# Assembler program. 34912AS=$lt_AS 34913 34914# DLL creation program. 34915DLLTOOL=$lt_DLLTOOL 34916 34917# Object dumper program. 34918OBJDUMP=$lt_OBJDUMP 34919 34920# Whether or not to build shared libraries. 34921build_libtool_libs=$enable_shared 34922 34923# What type of objects to build. 34924pic_mode=$pic_mode 34925 34926# Whether or not to optimize for fast installation. 34927fast_install=$enable_fast_install 34928 34929# Shared archive member basename,for filename based shared library versioning on AIX. 34930shared_archive_member_spec=$shared_archive_member_spec 34931 34932# Shell to use when invoking shell scripts. 34933SHELL=$lt_SHELL 34934 34935# An echo program that protects backslashes. 34936ECHO=$lt_ECHO 34937 34938# The PATH separator for the build system. 34939PATH_SEPARATOR=$lt_PATH_SEPARATOR 34940 34941# The host system. 34942host_alias=$host_alias 34943host=$host 34944host_os=$host_os 34945 34946# The build system. 34947build_alias=$build_alias 34948build=$build 34949build_os=$build_os 34950 34951# A sed program that does not truncate output. 34952SED=$lt_SED 34953 34954# Sed that helps us avoid accidentally triggering echo(1) options like -n. 34955Xsed="\$SED -e 1s/^X//" 34956 34957# A grep program that handles long lines. 34958GREP=$lt_GREP 34959 34960# An ERE matcher. 34961EGREP=$lt_EGREP 34962 34963# A literal string matcher. 34964FGREP=$lt_FGREP 34965 34966# A BSD- or MS-compatible name lister. 34967NM=$lt_NM 34968 34969# Whether we need soft or hard links. 34970LN_S=$lt_LN_S 34971 34972# What is the maximum length of a command? 34973max_cmd_len=$max_cmd_len 34974 34975# Object file suffix (normally "o"). 34976objext=$ac_objext 34977 34978# Executable file suffix (normally ""). 34979exeext=$exeext 34980 34981# whether the shell understands "unset". 34982lt_unset=$lt_unset 34983 34984# turn spaces into newlines. 34985SP2NL=$lt_lt_SP2NL 34986 34987# turn newlines into spaces. 34988NL2SP=$lt_lt_NL2SP 34989 34990# convert \$build file names to \$host format. 34991to_host_file_cmd=$lt_cv_to_host_file_cmd 34992 34993# convert \$build files to toolchain format. 34994to_tool_file_cmd=$lt_cv_to_tool_file_cmd 34995 34996# Method to check whether dependent libraries are shared objects. 34997deplibs_check_method=$lt_deplibs_check_method 34998 34999# Command to use when deplibs_check_method = "file_magic". 35000file_magic_cmd=$lt_file_magic_cmd 35001 35002# How to find potential files when deplibs_check_method = "file_magic". 35003file_magic_glob=$lt_file_magic_glob 35004 35005# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 35006want_nocaseglob=$lt_want_nocaseglob 35007 35008# Command to associate shared and link libraries. 35009sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 35010 35011# The archiver. 35012AR=$lt_AR 35013 35014# Flags to create an archive. 35015AR_FLAGS=$lt_AR_FLAGS 35016 35017# How to feed a file listing to the archiver. 35018archiver_list_spec=$lt_archiver_list_spec 35019 35020# A symbol stripping program. 35021STRIP=$lt_STRIP 35022 35023# Commands used to install an old-style archive. 35024RANLIB=$lt_RANLIB 35025old_postinstall_cmds=$lt_old_postinstall_cmds 35026old_postuninstall_cmds=$lt_old_postuninstall_cmds 35027 35028# Whether to use a lock for old archive extraction. 35029lock_old_archive_extraction=$lock_old_archive_extraction 35030 35031# A C compiler. 35032LTCC=$lt_CC 35033 35034# LTCC compiler flags. 35035LTCFLAGS=$lt_CFLAGS 35036 35037# Take the output of nm and produce a listing of raw symbols and C names. 35038global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 35039 35040# Transform the output of nm in a proper C declaration. 35041global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 35042 35043# Transform the output of nm into a list of symbols to manually relocate. 35044global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 35045 35046# Transform the output of nm in a C name address pair. 35047global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 35048 35049# Transform the output of nm in a C name address pair when lib prefix is needed. 35050global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 35051 35052# The name lister interface. 35053nm_interface=$lt_lt_cv_nm_interface 35054 35055# Specify filename containing input files for \$NM. 35056nm_file_list_spec=$lt_nm_file_list_spec 35057 35058# The root where to search for dependent libraries,and where our libraries should be installed. 35059lt_sysroot=$lt_sysroot 35060 35061# Command to truncate a binary pipe. 35062lt_truncate_bin=$lt_lt_cv_truncate_bin 35063 35064# The name of the directory that contains temporary libtool files. 35065objdir=$objdir 35066 35067# Used to examine libraries when file_magic_cmd begins with "file". 35068MAGIC_CMD=$MAGIC_CMD 35069 35070# Must we lock files when doing compilation? 35071need_locks=$lt_need_locks 35072 35073# Manifest tool. 35074MANIFEST_TOOL=$lt_MANIFEST_TOOL 35075 35076# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 35077DSYMUTIL=$lt_DSYMUTIL 35078 35079# Tool to change global to local symbols on Mac OS X. 35080NMEDIT=$lt_NMEDIT 35081 35082# Tool to manipulate fat objects and archives on Mac OS X. 35083LIPO=$lt_LIPO 35084 35085# ldd/readelf like tool for Mach-O binaries on Mac OS X. 35086OTOOL=$lt_OTOOL 35087 35088# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 35089OTOOL64=$lt_OTOOL64 35090 35091# Old archive suffix (normally "a"). 35092libext=$libext 35093 35094# Shared library suffix (normally ".so"). 35095shrext_cmds=$lt_shrext_cmds 35096 35097# The commands to extract the exported symbol list from a shared archive. 35098extract_expsyms_cmds=$lt_extract_expsyms_cmds 35099 35100# Variables whose values should be saved in libtool wrapper scripts and 35101# restored at link time. 35102variables_saved_for_relink=$lt_variables_saved_for_relink 35103 35104# Do we need the "lib" prefix for modules? 35105need_lib_prefix=$need_lib_prefix 35106 35107# Do we need a version for libraries? 35108need_version=$need_version 35109 35110# Library versioning type. 35111version_type=$version_type 35112 35113# Shared library runtime path variable. 35114runpath_var=$runpath_var 35115 35116# Shared library path variable. 35117shlibpath_var=$shlibpath_var 35118 35119# Is shlibpath searched before the hard-coded library search path? 35120shlibpath_overrides_runpath=$shlibpath_overrides_runpath 35121 35122# Format of library name prefix. 35123libname_spec=$lt_libname_spec 35124 35125# List of archive names. First name is the real one, the rest are links. 35126# The last name is the one that the linker finds with -lNAME 35127library_names_spec=$lt_library_names_spec 35128 35129# The coded name of the library, if different from the real name. 35130soname_spec=$lt_soname_spec 35131 35132# Permission mode override for installation of shared libraries. 35133install_override_mode=$lt_install_override_mode 35134 35135# Command to use after installation of a shared archive. 35136postinstall_cmds=$lt_postinstall_cmds 35137 35138# Command to use after uninstallation of a shared archive. 35139postuninstall_cmds=$lt_postuninstall_cmds 35140 35141# Commands used to finish a libtool library installation in a directory. 35142finish_cmds=$lt_finish_cmds 35143 35144# As "finish_cmds", except a single script fragment to be evaled but 35145# not shown. 35146finish_eval=$lt_finish_eval 35147 35148# Whether we should hardcode library paths into libraries. 35149hardcode_into_libs=$hardcode_into_libs 35150 35151# Compile-time system search path for libraries. 35152sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 35153 35154# Detected run-time system search path for libraries. 35155sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 35156 35157# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 35158configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 35159 35160# Whether dlopen is supported. 35161dlopen_support=$enable_dlopen 35162 35163# Whether dlopen of programs is supported. 35164dlopen_self=$enable_dlopen_self 35165 35166# Whether dlopen of statically linked programs is supported. 35167dlopen_self_static=$enable_dlopen_self_static 35168 35169# Commands to strip libraries. 35170old_striplib=$lt_old_striplib 35171striplib=$lt_striplib 35172 35173 35174# The linker used to build libraries. 35175LD=$lt_LD 35176 35177# How to create reloadable object files. 35178reload_flag=$lt_reload_flag 35179reload_cmds=$lt_reload_cmds 35180 35181# Commands used to build an old-style archive. 35182old_archive_cmds=$lt_old_archive_cmds 35183 35184# A language specific compiler. 35185CC=$lt_compiler 35186 35187# Is the compiler the GNU compiler? 35188with_gcc=$GCC 35189 35190# Compiler flag to turn off builtin functions. 35191no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 35192 35193# Additional compiler flags for building library objects. 35194pic_flag=$lt_lt_prog_compiler_pic 35195 35196# How to pass a linker flag through the compiler. 35197wl=$lt_lt_prog_compiler_wl 35198 35199# Compiler flag to prevent dynamic linking. 35200link_static_flag=$lt_lt_prog_compiler_static 35201 35202# Does compiler simultaneously support -c and -o options? 35203compiler_c_o=$lt_lt_cv_prog_compiler_c_o 35204 35205# Whether or not to add -lc for building shared libraries. 35206build_libtool_need_lc=$archive_cmds_need_lc 35207 35208# Whether or not to disallow shared libs when runtime libs are static. 35209allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 35210 35211# Compiler flag to allow reflexive dlopens. 35212export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 35213 35214# Compiler flag to generate shared objects directly from archives. 35215whole_archive_flag_spec=$lt_whole_archive_flag_spec 35216 35217# Whether the compiler copes with passing no objects directly. 35218compiler_needs_object=$lt_compiler_needs_object 35219 35220# Create an old-style archive from a shared archive. 35221old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 35222 35223# Create a temporary old-style archive to link instead of a shared archive. 35224old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 35225 35226# Commands used to build a shared archive. 35227archive_cmds=$lt_archive_cmds 35228archive_expsym_cmds=$lt_archive_expsym_cmds 35229 35230# Commands used to build a loadable module if different from building 35231# a shared archive. 35232module_cmds=$lt_module_cmds 35233module_expsym_cmds=$lt_module_expsym_cmds 35234 35235# Whether we are building with GNU ld or not. 35236with_gnu_ld=$lt_with_gnu_ld 35237 35238# Flag that allows shared libraries with undefined symbols to be built. 35239allow_undefined_flag=$lt_allow_undefined_flag 35240 35241# Flag that enforces no undefined symbols. 35242no_undefined_flag=$lt_no_undefined_flag 35243 35244# Flag to hardcode \$libdir into a binary during linking. 35245# This must work even if \$libdir does not exist 35246hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 35247 35248# Whether we need a single "-rpath" flag with a separated argument. 35249hardcode_libdir_separator=$lt_hardcode_libdir_separator 35250 35251# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 35252# DIR into the resulting binary. 35253hardcode_direct=$hardcode_direct 35254 35255# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 35256# DIR into the resulting binary and the resulting library dependency is 35257# "absolute",i.e impossible to change by setting \$shlibpath_var if the 35258# library is relocated. 35259hardcode_direct_absolute=$hardcode_direct_absolute 35260 35261# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 35262# into the resulting binary. 35263hardcode_minus_L=$hardcode_minus_L 35264 35265# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 35266# into the resulting binary. 35267hardcode_shlibpath_var=$hardcode_shlibpath_var 35268 35269# Set to "yes" if building a shared library automatically hardcodes DIR 35270# into the library and all subsequent libraries and executables linked 35271# against it. 35272hardcode_automatic=$hardcode_automatic 35273 35274# Set to yes if linker adds runtime paths of dependent libraries 35275# to runtime path list. 35276inherit_rpath=$inherit_rpath 35277 35278# Whether libtool must link a program against all its dependency libraries. 35279link_all_deplibs=$link_all_deplibs 35280 35281# Set to "yes" if exported symbols are required. 35282always_export_symbols=$always_export_symbols 35283 35284# The commands to list exported symbols. 35285export_symbols_cmds=$lt_export_symbols_cmds 35286 35287# Symbols that should not be listed in the preloaded symbols. 35288exclude_expsyms=$lt_exclude_expsyms 35289 35290# Symbols that must always be exported. 35291include_expsyms=$lt_include_expsyms 35292 35293# Commands necessary for linking programs (against libraries) with templates. 35294prelink_cmds=$lt_prelink_cmds 35295 35296# Commands necessary for finishing linking programs. 35297postlink_cmds=$lt_postlink_cmds 35298 35299# Specify filename containing input files. 35300file_list_spec=$lt_file_list_spec 35301 35302# How to hardcode a shared library path into an executable. 35303hardcode_action=$hardcode_action 35304 35305# ### END LIBTOOL CONFIG 35306 35307_LT_EOF 35308 35309 cat <<'_LT_EOF' >> "$cfgfile" 35310 35311# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 35312 35313# func_munge_path_list VARIABLE PATH 35314# ----------------------------------- 35315# VARIABLE is name of variable containing _space_ separated list of 35316# directories to be munged by the contents of PATH, which is string 35317# having a format: 35318# "DIR[:DIR]:" 35319# string "DIR[ DIR]" will be prepended to VARIABLE 35320# ":DIR[:DIR]" 35321# string "DIR[ DIR]" will be appended to VARIABLE 35322# "DIRP[:DIRP]::[DIRA:]DIRA" 35323# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 35324# "DIRA[ DIRA]" will be appended to VARIABLE 35325# "DIR[:DIR]" 35326# VARIABLE will be replaced by "DIR[ DIR]" 35327func_munge_path_list () 35328{ 35329 case x$2 in 35330 x) 35331 ;; 35332 *:) 35333 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 35334 ;; 35335 x:*) 35336 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 35337 ;; 35338 *::*) 35339 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 35340 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 35341 ;; 35342 *) 35343 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 35344 ;; 35345 esac 35346} 35347 35348 35349# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 35350func_cc_basename () 35351{ 35352 for cc_temp in $*""; do 35353 case $cc_temp in 35354 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 35355 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 35356 \-*) ;; 35357 *) break;; 35358 esac 35359 done 35360 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 35361} 35362 35363 35364# ### END FUNCTIONS SHARED WITH CONFIGURE 35365 35366_LT_EOF 35367 35368 case $host_os in 35369 aix3*) 35370 cat <<\_LT_EOF >> "$cfgfile" 35371# AIX sometimes has problems with the GCC collect2 program. For some 35372# reason, if we set the COLLECT_NAMES environment variable, the problems 35373# vanish in a puff of smoke. 35374if test set != "${COLLECT_NAMES+set}"; then 35375 COLLECT_NAMES= 35376 export COLLECT_NAMES 35377fi 35378_LT_EOF 35379 ;; 35380 esac 35381 35382 35383ltmain=$ac_aux_dir/ltmain.sh 35384 35385 35386 # We use sed instead of cat because bash on DJGPP gets confused if 35387 # if finds mixed CR/LF and LF-only lines. Since sed operates in 35388 # text mode, it properly converts lines to CR/LF. This bash problem 35389 # is reportedly fixed, but why not run on old versions too? 35390 sed '$q' "$ltmain" >> "$cfgfile" \ 35391 || (rm -f "$cfgfile"; exit 1) 35392 35393 mv -f "$cfgfile" "$ofile" || 35394 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 35395 chmod +x "$ofile" 35396 35397 ;; 35398 "sdksyms":C) touch hw/xfree86/sdksyms.dep ;; 35399 35400 esac 35401done # for ac_tag 35402 35403 35404as_fn_exit 0 35405_ACEOF 35406ac_clean_files=$ac_clean_files_save 35407 35408test $ac_write_fail = 0 || 35409 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 35410 35411 35412# configure is writing to config.log, and then calls config.status. 35413# config.status does its own redirection, appending to config.log. 35414# Unfortunately, on DOS this fails, as config.log is still kept open 35415# by configure, so config.status won't be able to write to it; its 35416# output is simply discarded. So we exec the FD to /dev/null, 35417# effectively closing config.log, so it can be properly (re)opened and 35418# appended to by config.status. When coming back to configure, we 35419# need to make the FD available again. 35420if test "$no_create" != yes; then 35421 ac_cs_success=: 35422 ac_config_status_args= 35423 test "$silent" = yes && 35424 ac_config_status_args="$ac_config_status_args --quiet" 35425 exec 5>/dev/null 35426 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 35427 exec 5>>config.log 35428 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 35429 # would make configure fail if this is the last instruction. 35430 $ac_cs_success || as_fn_exit 1 35431fi 35432if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 35433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 35434$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 35435fi 35436 35437