configure revision 59ca590c
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for xorg-server 21.1.14. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed 'exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187test \$(( 1 + 1 )) = 2 || exit 1 188 189 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 193 PATH=/empty FPATH=/empty; export PATH FPATH 194 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 195 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 196 if (eval "$as_required") 2>/dev/null 197then : 198 as_have_required=yes 199else case e in #( 200 e) as_have_required=no ;; 201esac 202fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204then : 205 206else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208as_found=false 209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210do 211 IFS=$as_save_IFS 212 case $as_dir in #((( 213 '') as_dir=./ ;; 214 */) ;; 215 *) as_dir=$as_dir/ ;; 216 esac 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 225then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 228then : 229 break 2 230fi 231fi 232 done;; 233 esac 234 as_found=false 235done 236IFS=$as_save_IFS 237if $as_found 238then : 239 240else case e in #( 241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 243then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi ;; 246esac 247fi 248 249 250 if test "x$CONFIG_SHELL" != x 251then : 252 export CONFIG_SHELL 253 # We cannot yet assume a decent shell, so we have to provide a 254# neutralization value for shells without unset; and this also 255# works around shells that cannot unset nonexistent variables. 256# Preserve -v and -x to the replacement shell. 257BASH_ENV=/dev/null 258ENV=/dev/null 259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 260case $- in # (((( 261 *v*x* | *x*v* ) as_opts=-vx ;; 262 *v* ) as_opts=-v ;; 263 *x* ) as_opts=-x ;; 264 * ) as_opts= ;; 265esac 266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 267# Admittedly, this is quite paranoid, since all the known shells bail 268# out after a failed 'exec'. 269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 270exit 255 271fi 272 273 if test x$as_have_required = xno 274then : 275 printf "%s\n" "$0: This script requires a shell more modern than all" 276 printf "%s\n" "$0: the shells that I found on your system." 277 if test ${ZSH_VERSION+y} ; then 278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 280 else 281 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 282$0: https://gitlab.freedesktop.org/xorg/xserver/issues 283$0: about your system, including any error possibly output 284$0: before this message. Then install a modern shell, or 285$0: manually run the script under such a shell if you do 286$0: have one." 287 fi 288 exit 1 289fi ;; 290esac 291fi 292fi 293SHELL=${CONFIG_SHELL-/bin/sh} 294export SHELL 295# Unset more variables known to interfere with behavior of common tools. 296CLICOLOR_FORCE= GREP_OPTIONS= 297unset CLICOLOR_FORCE GREP_OPTIONS 298 299## --------------------- ## 300## M4sh Shell Functions. ## 301## --------------------- ## 302# as_fn_unset VAR 303# --------------- 304# Portably unset VAR. 305as_fn_unset () 306{ 307 { eval $1=; unset $1;} 308} 309as_unset=as_fn_unset 310 311 312# as_fn_set_status STATUS 313# ----------------------- 314# Set $? to STATUS, without forking. 315as_fn_set_status () 316{ 317 return $1 318} # as_fn_set_status 319 320# as_fn_exit STATUS 321# ----------------- 322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 323as_fn_exit () 324{ 325 set +e 326 as_fn_set_status $1 327 exit $1 328} # as_fn_exit 329 330# as_fn_mkdir_p 331# ------------- 332# Create "$as_dir" as a directory, including parents if necessary. 333as_fn_mkdir_p () 334{ 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352printf "%s\n" X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376} # as_fn_mkdir_p 377 378# as_fn_executable_p FILE 379# ----------------------- 380# Test if FILE is an executable regular file. 381as_fn_executable_p () 382{ 383 test -f "$1" && test -x "$1" 384} # as_fn_executable_p 385# as_fn_append VAR VALUE 386# ---------------------- 387# Append the text in VALUE to the end of the definition contained in VAR. Take 388# advantage of any shell optimizations that allow amortized linear growth over 389# repeated appends, instead of the typical quadratic growth present in naive 390# implementations. 391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397else case e in #( 398 e) as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } ;; 402esac 403fi # as_fn_append 404 405# as_fn_arith ARG... 406# ------------------ 407# Perform arithmetic evaluation on the ARGs, and store the result in the 408# global $as_val. Take advantage of shells that can avoid forks. The arguments 409# must be portable across $(()) and expr. 410if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 411then : 412 eval 'as_fn_arith () 413 { 414 as_val=$(( $* )) 415 }' 416else case e in #( 417 e) as_fn_arith () 418 { 419 as_val=`expr "$@" || test $? -eq 1` 420 } ;; 421esac 422fi # as_fn_arith 423 424 425# as_fn_error STATUS ERROR [LINENO LOG_FD] 426# ---------------------------------------- 427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 429# script with STATUS, using 1 if that was 0. 430as_fn_error () 431{ 432 as_status=$1; test $as_status -eq 0 && as_status=1 433 if test "$4"; then 434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 436 fi 437 printf "%s\n" "$as_me: error: $2" >&2 438 as_fn_exit $as_status 439} # as_fn_error 440 441if expr a : '\(a\)' >/dev/null 2>&1 && 442 test "X`expr 00001 : '.*\(...\)'`" = X001; then 443 as_expr=expr 444else 445 as_expr=false 446fi 447 448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 449 as_basename=basename 450else 451 as_basename=false 452fi 453 454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 455 as_dirname=dirname 456else 457 as_dirname=false 458fi 459 460as_me=`$as_basename -- "$0" || 461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 462 X"$0" : 'X\(//\)$' \| \ 463 X"$0" : 'X\(/\)' \| . 2>/dev/null || 464printf "%s\n" X/"$0" | 465 sed '/^.*\/\([^/][^/]*\)\/*$/{ 466 s//\1/ 467 q 468 } 469 /^X\/\(\/\/\)$/{ 470 s//\1/ 471 q 472 } 473 /^X\/\(\/\).*/{ 474 s//\1/ 475 q 476 } 477 s/.*/./; q'` 478 479# Avoid depending upon Character Ranges. 480as_cr_letters='abcdefghijklmnopqrstuvwxyz' 481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 482as_cr_Letters=$as_cr_letters$as_cr_LETTERS 483as_cr_digits='0123456789' 484as_cr_alnum=$as_cr_Letters$as_cr_digits 485 486 487 as_lineno_1=$LINENO as_lineno_1a=$LINENO 488 as_lineno_2=$LINENO as_lineno_2a=$LINENO 489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 492 sed -n ' 493 p 494 /[$]LINENO/= 495 ' <$as_myself | 496 sed ' 497 t clear 498 :clear 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522} 523 524 525# Determine whether it's possible to make 'echo' print without a newline. 526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527# for compatibility with existing Makefiles. 528ECHO_C= ECHO_N= ECHO_T= 529case `echo -n x` in #((((( 530-n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537*) 538 ECHO_N='-n';; 539esac 540 541# For backward compatibility with old third-party macros, we provide 542# the shell variables $as_echo and $as_echo_n. New code should use 543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544as_echo='printf %s\n' 545as_echo_n='printf %s' 546 547rm -f conf$$ conf$$.exe conf$$.file 548if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553fi 554if (echo >conf$$.file) 2>/dev/null; then 555 if ln -s conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s='ln -s' 557 # ... but there are two gotchas: 558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 560 # In both cases, we have to default to 'cp -pR'. 561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 562 as_ln_s='cp -pR' 563 elif ln conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s=ln 565 else 566 as_ln_s='cp -pR' 567 fi 568else 569 as_ln_s='cp -pR' 570fi 571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572rmdir conf$$.dir 2>/dev/null 573 574if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579fi 580 581as_test_x='test -x' 582as_executable_p=as_fn_executable_p 583 584# Sed expression to map a string onto a valid CPP name. 585as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 586as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 587 588# Sed expression to map a string onto a valid variable name. 589as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 590as_tr_sh="eval sed '$as_sed_sh'" # deprecated 591 592as_awk_strverscmp=' 593 # Use only awk features that work with 7th edition Unix awk (1978). 594 # My, what an old awk you have, Mr. Solaris! 595 END { 596 while (length(v1) && length(v2)) { 597 # Set d1 to be the next thing to compare from v1, and likewise for d2. 598 # Normally this is a single character, but if v1 and v2 contain digits, 599 # compare them as integers and fractions as strverscmp does. 600 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 601 # Split v1 and v2 into their leading digit string components d1 and d2, 602 # and advance v1 and v2 past the leading digit strings. 603 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 604 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 605 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 606 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 607 if (d1 ~ /^0/) { 608 if (d2 ~ /^0/) { 609 # Compare two fractions. 610 while (d1 ~ /^0/ && d2 ~ /^0/) { 611 d1 = substr(d1, 2); len1-- 612 d2 = substr(d2, 2); len2-- 613 } 614 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 615 # The two components differ in length, and the common prefix 616 # contains only leading zeros. Consider the longer to be less. 617 d1 = -len1 618 d2 = -len2 619 } else { 620 # Otherwise, compare as strings. 621 d1 = "x" d1 622 d2 = "x" d2 623 } 624 } else { 625 # A fraction is less than an integer. 626 exit 1 627 } 628 } else { 629 if (d2 ~ /^0/) { 630 # An integer is greater than a fraction. 631 exit 2 632 } else { 633 # Compare two integers. 634 d1 += 0 635 d2 += 0 636 } 637 } 638 } else { 639 # The normal case, without worrying about digits. 640 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 641 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 642 } 643 if (d1 < d2) exit 1 644 if (d1 > d2) exit 2 645 } 646 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 647 # which mishandles some comparisons of empty strings to integers. 648 if (length(v2)) exit 1 649 if (length(v1)) exit 2 650 } 651' 652SHELL=${CONFIG_SHELL-/bin/sh} 653 654 655test -n "$DJDIR" || exec 7<&0 </dev/null 656exec 6>&1 657 658# Name of the host. 659# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 660# so uname gets run too. 661ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 662 663# 664# Initializations. 665# 666ac_default_prefix=/usr/local 667ac_clean_files= 668ac_config_libobj_dir=. 669LIBOBJS= 670cross_compiling=no 671subdirs= 672MFLAGS= 673MAKEFLAGS= 674 675# Identity of this package. 676PACKAGE_NAME='xorg-server' 677PACKAGE_TARNAME='xorg-server' 678PACKAGE_VERSION='21.1.14' 679PACKAGE_STRING='xorg-server 21.1.14' 680PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/xserver/issues' 681PACKAGE_URL='' 682 683ac_unique_file="Makefile.am" 684# Factoring default headers for most tests. 685ac_includes_default="\ 686#include <stddef.h> 687#ifdef HAVE_STDIO_H 688# include <stdio.h> 689#endif 690#ifdef HAVE_STDLIB_H 691# include <stdlib.h> 692#endif 693#ifdef HAVE_STRING_H 694# include <string.h> 695#endif 696#ifdef HAVE_INTTYPES_H 697# include <inttypes.h> 698#endif 699#ifdef HAVE_STDINT_H 700# include <stdint.h> 701#endif 702#ifdef HAVE_STRINGS_H 703# include <strings.h> 704#endif 705#ifdef HAVE_SYS_TYPES_H 706# include <sys/types.h> 707#endif 708#ifdef HAVE_SYS_STAT_H 709# include <sys/stat.h> 710#endif 711#ifdef HAVE_UNISTD_H 712# include <unistd.h> 713#endif" 714 715ac_header_c_list= 716ac_config_libobj_dir=os 717enable_year2038=no 718ac_subst_vars='am__EXEEXT_FALSE 719am__EXEEXT_TRUE 720LTLIBOBJS 721DIX_CFLAGS 722RELEASE_DATE 723SYSCONFDIR 724PROJECTROOT 725XEPHYR_FALSE 726XEPHYR_TRUE 727KDRIVE_LIBS 728KDRIVE_LOCAL_LIBS 729KDRIVE_MAIN_LIB 730KDRIVE_PURE_LIBS 731KDRIVE_CFLAGS 732KDRIVE_PURE_INCS 733KDRIVE_INCS 734XEPHYR_INCS 735XEPHYR_LIBS 736XEPHYR_CFLAGS 737KDRIVE_FALSE 738KDRIVE_TRUE 739STANDALONE_XPBPROXY_FALSE 740STANDALONE_XPBPROXY_TRUE 741XQUARTZ_SPARKLE_FALSE 742XQUARTZ_SPARKLE_TRUE 743XQUARTZ_FALSE 744XQUARTZ_TRUE 745am__fastdepOBJC_FALSE 746am__fastdepOBJC_TRUE 747OBJCDEPMODE 748OBJCFLAGS 749OBJCLINK 750OBJCCLD 751OBJC 752PSEUDORAMIX_FALSE 753PSEUDORAMIX_TRUE 754XPBPROXY_LIBS 755XPBPROXY_CFLAGS 756XQUARTZ_LIBS 757XWIN_WINDOWS_DRI_FALSE 758XWIN_WINDOWS_DRI_TRUE 759XWIN_GLX_WINDOWS_FALSE 760XWIN_GLX_WINDOWS_TRUE 761XWIN_FALSE 762XWIN_TRUE 763KHRONOS_SPEC_DIR 764KHRONOS_OPENGL_REGISTRY_LIBS 765KHRONOS_OPENGL_REGISTRY_CFLAGS 766PYTHON3 767XWIN_SYS_LIBS 768XWIN_SERVER_NAME 769XWIN_LIBS 770WINDOWSDRI_LIBS 771WINDOWSDRI_CFLAGS 772XWINMODULES_LIBS 773XWINMODULES_CFLAGS 774WINDRES 775GLAMOR_EGL_FALSE 776GLAMOR_EGL_TRUE 777GBM_LIBS 778GBM_CFLAGS 779GLAMOR_LIBS 780GLAMOR_CFLAGS 781GLAMOR_FALSE 782GLAMOR_TRUE 783XORG_DRIVER_INPUT_INPUTTEST_FALSE 784XORG_DRIVER_INPUT_INPUTTEST_TRUE 785XORG_DRIVER_MODESETTING_FALSE 786XORG_DRIVER_MODESETTING_TRUE 787XORG_BUS_PLATFORM_FALSE 788XORG_BUS_PLATFORM_TRUE 789DGA_FALSE 790DGA_TRUE 791SOLARIS_VT_FALSE 792SOLARIS_VT_TRUE 793LNXAPM_FALSE 794LNXAPM_TRUE 795LNXACPI_FALSE 796LNXACPI_TRUE 797XORG_BUS_SPARC_FALSE 798XORG_BUS_SPARC_TRUE 799XORG_BUS_BSDPCI_FALSE 800XORG_BUS_BSDPCI_TRUE 801XORG_BUS_PCI_FALSE 802XORG_BUS_PCI_TRUE 803XORG_FALSE 804XORG_TRUE 805abi_extension 806abi_xinput 807abi_videodrv 808abi_ansic 809logdir 810sysconfigdir 811extdir 812sdkdir 813driverdir 814moduledir 815DEFAULT_XDG_DATA_HOME_LOGDIR 816DEFAULT_XDG_DATA_HOME 817DEFAULT_LOGPREFIX 818DEFAULT_LOGDIR 819DEFAULT_LIBRARY_PATH 820DEFAULT_MODULE_PATH 821XCONFIGDIR 822XF86CONFIGFILE 823XCONFIGFILE 824XF86CONFIGDIR 825XORG_CFLAGS 826XORG_OS_SUBDIR 827XORG_INCS 828XORG_SYS_LIBS 829XORG_LIBS 830XORG_MODULES_LIBS 831XORG_MODULES_CFLAGS 832DGA_LIBS 833DGA_CFLAGS 834SOLARIS_INOUT_ARCH 835PCI_TXT_IDS_PATH 836PCIACCESS_LIBS 837PCIACCESS_CFLAGS 838symbol_visibility 839LIBXCVT_LIBS 840LIBXCVT_CFLAGS 841XNEST_SYS_LIBS 842XNEST_LIBS 843XNEST_FALSE 844XNEST_TRUE 845XNESTMODULES_LIBS 846XNESTMODULES_CFLAGS 847XVFB_SYS_LIBS 848XVFB_LIBS 849XVFB_FALSE 850XVFB_TRUE 851NO_UNDEFINED_FALSE 852NO_UNDEFINED_TRUE 853CYGWIN_FALSE 854CYGWIN_TRUE 855XORG_DRIVER_LIBS 856LD_NO_UNDEFINED_FLAG 857LD_EXPORT_SYMBOLS_FLAG 858UTILS_SYS_LIBS 859XSERVER_SYS_LIBS 860XSERVER_LIBS 861HAVE_LIBUNWIND_FALSE 862HAVE_LIBUNWIND_TRUE 863LIBUNWIND_LIBS 864LIBUNWIND_CFLAGS 865XSERVERLIBS_LIBS 866XSERVERLIBS_CFLAGS 867XSERVERCFLAGS_LIBS 868XSERVERCFLAGS_CFLAGS 869SHA1_CFLAGS 870SHA1_LIBS 871OPENSSL_LIBS 872OPENSSL_CFLAGS 873LIBSHA1_LIBS 874LIBSHA1_CFLAGS 875MAIN_LIB 876OS_LIB 877DIX_LIB 878DEBUG_FALSE 879DEBUG_TRUE 880VENDOR_NAME_SHORT 881DRI_DRIVER_PATH 882BASE_FONT_PATH 883SERVER_MISC_CONFIG_PATH 884COMPILEDDEFAULTFONTPATH 885XF86VIDMODE_FALSE 886XF86VIDMODE_TRUE 887XDMAUTH_FALSE 888XDMAUTH_TRUE 889XDMCP_FALSE 890XDMCP_TRUE 891XDMCP_LIBS 892XDMCP_CFLAGS 893XKB_DFLT_OPTIONS 894XKB_DFLT_VARIANT 895XKB_DFLT_LAYOUT 896XKB_DFLT_MODEL 897XKB_DFLT_RULES 898XKB_COMPILED_DIR 899XKM_OUTPUT_DIR 900XKB_BIN_DIRECTORY 901XKB_BASE_DIRECTORY 902INT10MODULE_FALSE 903INT10MODULE_TRUE 904VGAHW_FALSE 905VGAHW_TRUE 906XF86UTILS_FALSE 907XF86UTILS_TRUE 908DPMSExtension_FALSE 909DPMSExtension_TRUE 910XF86BIGFONT_FALSE 911XF86BIGFONT_TRUE 912DBE_FALSE 913DBE_TRUE 914XCSECURITY_FALSE 915XCSECURITY_TRUE 916SELINUX_LIBS 917SELINUX_CFLAGS 918XSELINUX_FALSE 919XSELINUX_TRUE 920XACE_FALSE 921XACE_TRUE 922XINERAMA_FALSE 923XINERAMA_TRUE 924PRESENT_FALSE 925PRESENT_TRUE 926GLX_SYS_LIBS 927GLX_DEFINES 928HASHTABLE_FALSE 929HASHTABLE_TRUE 930GLX_FALSE 931GLX_TRUE 932GL_LIBS 933GL_CFLAGS 934XLIB_LIBS 935XLIB_CFLAGS 936LIBDRM_LIBS 937LIBDRM_CFLAGS 938DRI3_FALSE 939DRI3_TRUE 940XSHMFENCE_FALSE 941XSHMFENCE_TRUE 942XSHMFENCE_LIBS 943XSHMFENCE_CFLAGS 944BUSFAULT_FALSE 945BUSFAULT_TRUE 946DRI3PROTO_LIBS 947DRI3PROTO_CFLAGS 948DRI2_FALSE 949DRI2_TRUE 950DRI2PROTO_LIBS 951DRI2PROTO_CFLAGS 952DRI_FALSE 953DRI_TRUE 954CLIENTIDS_FALSE 955CLIENTIDS_TRUE 956RES_FALSE 957RES_TRUE 958SCREENSAVER_FALSE 959SCREENSAVER_TRUE 960RECORD_FALSE 961RECORD_TRUE 962MITSHM_FALSE 963MITSHM_TRUE 964COMPOSITE_FALSE 965COMPOSITE_TRUE 966XVMC_FALSE 967XVMC_TRUE 968XV_FALSE 969XV_TRUE 970CONFIG_WSCONS_FALSE 971CONFIG_WSCONS_TRUE 972NEED_DBUS_FALSE 973NEED_DBUS_TRUE 974SUID_WRAPPER_FALSE 975SUID_WRAPPER_TRUE 976SUID_WRAPPER_DIR 977SYSTEMD_LOGIND_FALSE 978SYSTEMD_LOGIND_TRUE 979CONFIG_HAL_FALSE 980CONFIG_HAL_TRUE 981HAL_LIBS 982HAL_CFLAGS 983HAVE_DBUS_FALSE 984HAVE_DBUS_TRUE 985DBUS_LIBS 986DBUS_CFLAGS 987CONFIG_UDEV_KMS_FALSE 988CONFIG_UDEV_KMS_TRUE 989CONFIG_UDEV_FALSE 990CONFIG_UDEV_TRUE 991UDEV_LIBS 992UDEV_CFLAGS 993HAVE_SYSTEMD_DAEMON_FALSE 994HAVE_SYSTEMD_DAEMON_TRUE 995SYSTEMD_DAEMON_LIBS 996SYSTEMD_DAEMON_CFLAGS 997PTHREAD_CFLAGS 998PTHREAD_LIBS 999PTHREAD_CC 1000ax_pthread_config 1001SDK_REQUIRED_MODULES 1002PIXMAN_LIBS 1003PIXMAN_CFLAGS 1004INT10_STUB_FALSE 1005INT10_STUB_TRUE 1006INT10_X86EMU_FALSE 1007INT10_X86EMU_TRUE 1008INT10_VM86_FALSE 1009INT10_VM86_TRUE 1010SECURE_RPC_FALSE 1011SECURE_RPC_TRUE 1012INSTALL_SETUID_FALSE 1013INSTALL_SETUID_TRUE 1014XQUARTZ_SPARKLE_FEED_URL 1015XQUARTZ_SPARKLE 1016BUNDLE_VERSION_STRING 1017BUNDLE_VERSION 1018BUNDLE_ID_PREFIX 1019APPLE_APPLICATION_NAME 1020APPLE_APPLICATIONS_DIR 1021FONT100DPIDIR 1022FONT75DPIDIR 1023FONTTYPE1DIR 1024FONTTTFDIR 1025FONTOTFDIR 1026FONTMISCDIR 1027FONTROOTDIR 1028SPARC64_VIDEO_FALSE 1029SPARC64_VIDEO_TRUE 1030PPC_VIDEO_FALSE 1031PPC_VIDEO_TRUE 1032I386_VIDEO_FALSE 1033I386_VIDEO_TRUE 1034ARM_VIDEO_FALSE 1035ARM_VIDEO_TRUE 1036ALPHA_VIDEO_FALSE 1037ALPHA_VIDEO_TRUE 1038GLX_ARCH_DEFINES 1039FREEBSD_KLDLOAD_FALSE 1040FREEBSD_KLDLOAD_TRUE 1041FBDEVHW_FALSE 1042FBDEVHW_TRUE 1043AGP_FALSE 1044AGP_TRUE 1045LIBBSD_LIBS 1046LIBBSD_CFLAGS 1047POLL_FALSE 1048POLL_TRUE 1049LIBOBJS 1050DLOPEN_LIBS 1051SPECIAL_DTRACE_OBJECTS_FALSE 1052SPECIAL_DTRACE_OBJECTS_TRUE 1053XSERVER_DTRACE_FALSE 1054XSERVER_DTRACE_TRUE 1055DTRACE 1056TRADITIONALCPPFLAGS 1057RAWCPPFLAGS 1058RAWCPP 1059CPP 1060YFLAGS 1061YACC 1062LEXLIB 1063LEX_OUTPUT_ROOT 1064LEX 1065LT_SYS_LIBRARY_PATH 1066OTOOL64 1067OTOOL 1068LIPO 1069NMEDIT 1070DSYMUTIL 1071MANIFEST_TOOL 1072RANLIB 1073ac_ct_AR 1074AR 1075FILECMD 1076NM 1077ac_ct_DUMPBIN 1078DUMPBIN 1079LD 1080FGREP 1081EGREP 1082GREP 1083LIBTOOL 1084OBJDUMP 1085DLLTOOL 1086AS 1087LN_S 1088am__fastdepCCAS_FALSE 1089am__fastdepCCAS_TRUE 1090CCASDEPMODE 1091CCASFLAGS 1092CCAS 1093HAVE_LD_WRAP_FALSE 1094HAVE_LD_WRAP_TRUE 1095ENABLE_UNIT_TESTS_FALSE 1096ENABLE_UNIT_TESTS_TRUE 1097XORG_MALLOC_DEBUG_ENV 1098HAVE_XSLTPROC_FALSE 1099HAVE_XSLTPROC_TRUE 1100XSLTPROC 1101HAVE_FOP_FALSE 1102HAVE_FOP_TRUE 1103FOP 1104HAVE_XMLTO_FALSE 1105HAVE_XMLTO_TRUE 1106HAVE_XMLTO_TEXT_FALSE 1107HAVE_XMLTO_TEXT_TRUE 1108XMLTO 1109ENABLE_DEVEL_DOCS_FALSE 1110ENABLE_DEVEL_DOCS_TRUE 1111ENABLE_DOCS_FALSE 1112ENABLE_DOCS_TRUE 1113HAVE_STYLESHEETS_FALSE 1114HAVE_STYLESHEETS_TRUE 1115XSL_STYLESHEET 1116STYLESHEET_SRCDIR 1117XORG_SGML_PATH 1118HAVE_DOXYGEN_FALSE 1119HAVE_DOXYGEN_TRUE 1120HAVE_DOT_FALSE 1121HAVE_DOT_TRUE 1122HAVE_DOT 1123DOT 1124DOXYGEN 1125MAN_SUBSTS 1126XORG_MAN_PAGE 1127ADMIN_MAN_DIR 1128DRIVER_MAN_DIR 1129MISC_MAN_DIR 1130FILE_MAN_DIR 1131LIB_MAN_DIR 1132APP_MAN_DIR 1133ADMIN_MAN_SUFFIX 1134DRIVER_MAN_SUFFIX 1135MISC_MAN_SUFFIX 1136FILE_MAN_SUFFIX 1137LIB_MAN_SUFFIX 1138APP_MAN_SUFFIX 1139SED 1140host_os 1141host_vendor 1142host_cpu 1143host 1144build_os 1145build_vendor 1146build_cpu 1147build 1148INSTALL_CMD 1149PKG_CONFIG_LIBDIR 1150PKG_CONFIG_PATH 1151PKG_CONFIG 1152CHANGELOG_CMD 1153STRICT_CFLAGS 1154CWARNFLAGS 1155BASE_CFLAGS 1156am__fastdepCC_FALSE 1157am__fastdepCC_TRUE 1158CCDEPMODE 1159am__nodep 1160AMDEPBACKSLASH 1161AMDEP_FALSE 1162AMDEP_TRUE 1163am__include 1164DEPDIR 1165OBJEXT 1166EXEEXT 1167ac_ct_CC 1168CPPFLAGS 1169LDFLAGS 1170CFLAGS 1171CC 1172AM_BACKSLASH 1173AM_DEFAULT_VERBOSITY 1174AM_DEFAULT_V 1175AM_V 1176CSCOPE 1177ETAGS 1178CTAGS 1179am__untar 1180am__tar 1181AMTAR 1182am__leading_dot 1183SET_MAKE 1184AWK 1185mkdir_p 1186MKDIR_P 1187INSTALL_STRIP_PROGRAM 1188STRIP 1189install_sh 1190MAKEINFO 1191AUTOHEADER 1192AUTOMAKE 1193AUTOCONF 1194ACLOCAL 1195VERSION 1196PACKAGE 1197CYGPATH_W 1198am__isrc 1199INSTALL_DATA 1200INSTALL_SCRIPT 1201INSTALL_PROGRAM 1202target_alias 1203host_alias 1204build_alias 1205LIBS 1206ECHO_T 1207ECHO_N 1208ECHO_C 1209DEFS 1210mandir 1211localedir 1212libdir 1213psdir 1214pdfdir 1215dvidir 1216htmldir 1217infodir 1218docdir 1219oldincludedir 1220includedir 1221runstatedir 1222localstatedir 1223sharedstatedir 1224sysconfdir 1225datadir 1226datarootdir 1227libexecdir 1228sbindir 1229bindir 1230program_transform_name 1231prefix 1232exec_prefix 1233PACKAGE_URL 1234PACKAGE_BUGREPORT 1235PACKAGE_STRING 1236PACKAGE_VERSION 1237PACKAGE_TARNAME 1238PACKAGE_NAME 1239PATH_SEPARATOR 1240SHELL 1241am__quote' 1242ac_subst_files='' 1243ac_user_opts=' 1244enable_option_checking 1245enable_silent_rules 1246enable_dependency_tracking 1247enable_selective_werror 1248enable_strict_compilation 1249with_doxygen 1250enable_docs 1251enable_devel_docs 1252with_xmlto 1253with_fop 1254with_xsltproc 1255enable_unit_tests 1256enable_static 1257enable_shared 1258with_pic 1259enable_fast_install 1260with_aix_soname 1261with_gnu_ld 1262with_sysroot 1263enable_libtool_lock 1264enable_largefile 1265with_dtrace 1266enable_agp 1267enable_werror 1268enable_debug 1269with_int10 1270with_vendor_name 1271with_vendor_name_short 1272with_vendor_web 1273with_module_dir 1274with_log_dir 1275with_builder_addr 1276with_builderstring 1277enable_listen_tcp 1278enable_listen_unix 1279enable_listen_local 1280with_fallback_input_driver 1281with_fontrootdir 1282with_fontmiscdir 1283with_fontotfdir 1284with_fontttfdir 1285with_fonttype1dir 1286with_font75dpidir 1287with_font100dpidir 1288with_default_font_path 1289with_xkb_path 1290with_xkb_output 1291with_default_xkb_rules 1292with_default_xkb_model 1293with_default_xkb_layout 1294with_default_xkb_variant 1295with_default_xkb_options 1296with_serverconfig_path 1297with_apple_applications_dir 1298with_apple_application_name 1299with_bundle_id_prefix 1300with_bundle_version 1301with_bundle_version_string 1302enable_sparkle 1303with_sparkle_feed_url 1304enable_visibility 1305with_khronos_spec_dir 1306enable_composite 1307enable_mitshm 1308enable_xres 1309enable_record 1310enable_xv 1311enable_xvmc 1312enable_dga 1313enable_screensaver 1314enable_xdmcp 1315enable_xdm_auth_1 1316enable_glx 1317enable_dri 1318enable_dri2 1319enable_dri3 1320enable_present 1321enable_xinerama 1322enable_xf86vidmode 1323enable_xace 1324enable_xselinux 1325enable_xcsecurity 1326enable_dbe 1327enable_xf86bigfont 1328enable_dpms 1329enable_config_udev 1330enable_config_udev_kms 1331enable_config_hal 1332enable_config_wscons 1333enable_xfree86_utils 1334enable_vgahw 1335enable_int10_module 1336enable_windowsdri 1337enable_libdrm 1338enable_clientids 1339enable_pciaccess 1340enable_linux_acpi 1341enable_linux_apm 1342enable_systemd_logind 1343enable_suid_wrapper 1344enable_xorg 1345enable_xvfb 1346enable_xnest 1347enable_xquartz 1348enable_standalone_xpbproxy 1349enable_xwin 1350enable_glamor 1351enable_xf86_input_inputtest 1352enable_kdrive 1353enable_xephyr 1354enable_libunwind 1355enable_xshmfence 1356enable_install_setuid 1357enable_unix_transport 1358enable_tcp_transport 1359enable_ipv6 1360enable_local_transport 1361enable_secure_rpc 1362enable_input_thread 1363with_systemd_daemon 1364enable_xtrans_send_fds 1365with_xkb_bin_directory 1366with_sha1 1367enable_year2038 1368' 1369 ac_precious_vars='build_alias 1370host_alias 1371target_alias 1372CC 1373CFLAGS 1374LDFLAGS 1375LIBS 1376CPPFLAGS 1377PKG_CONFIG 1378PKG_CONFIG_PATH 1379PKG_CONFIG_LIBDIR 1380DOXYGEN 1381DOT 1382XMLTO 1383FOP 1384XSLTPROC 1385XORG_MALLOC_DEBUG_ENV 1386CCAS 1387CCASFLAGS 1388LT_SYS_LIBRARY_PATH 1389YACC 1390YFLAGS 1391CPP 1392LIBBSD_CFLAGS 1393LIBBSD_LIBS 1394PIXMAN_CFLAGS 1395PIXMAN_LIBS 1396SYSTEMD_DAEMON_CFLAGS 1397SYSTEMD_DAEMON_LIBS 1398UDEV_CFLAGS 1399UDEV_LIBS 1400DBUS_CFLAGS 1401DBUS_LIBS 1402HAL_CFLAGS 1403HAL_LIBS 1404DRI2PROTO_CFLAGS 1405DRI2PROTO_LIBS 1406DRI3PROTO_CFLAGS 1407DRI3PROTO_LIBS 1408XSHMFENCE_CFLAGS 1409XSHMFENCE_LIBS 1410LIBDRM_CFLAGS 1411LIBDRM_LIBS 1412XLIB_CFLAGS 1413XLIB_LIBS 1414GL_CFLAGS 1415GL_LIBS 1416SELINUX_CFLAGS 1417SELINUX_LIBS 1418XDMCP_CFLAGS 1419XDMCP_LIBS 1420LIBSHA1_CFLAGS 1421LIBSHA1_LIBS 1422OPENSSL_CFLAGS 1423OPENSSL_LIBS 1424XSERVERCFLAGS_CFLAGS 1425XSERVERCFLAGS_LIBS 1426XSERVERLIBS_CFLAGS 1427XSERVERLIBS_LIBS 1428LIBUNWIND_CFLAGS 1429LIBUNWIND_LIBS 1430XNESTMODULES_CFLAGS 1431XNESTMODULES_LIBS 1432LIBXCVT_CFLAGS 1433LIBXCVT_LIBS 1434PCIACCESS_CFLAGS 1435PCIACCESS_LIBS 1436DGA_CFLAGS 1437DGA_LIBS 1438XORG_MODULES_CFLAGS 1439XORG_MODULES_LIBS 1440GLAMOR_CFLAGS 1441GLAMOR_LIBS 1442GBM_CFLAGS 1443GBM_LIBS 1444XWINMODULES_CFLAGS 1445XWINMODULES_LIBS 1446WINDOWSDRI_CFLAGS 1447WINDOWSDRI_LIBS 1448KHRONOS_OPENGL_REGISTRY_CFLAGS 1449KHRONOS_OPENGL_REGISTRY_LIBS 1450XPBPROXY_CFLAGS 1451XPBPROXY_LIBS 1452XEPHYR_CFLAGS 1453XEPHYR_LIBS' 1454 1455 1456# Initialize some variables set by options. 1457ac_init_help= 1458ac_init_version=false 1459ac_unrecognized_opts= 1460ac_unrecognized_sep= 1461# The variables have the same names as the options, with 1462# dashes changed to underlines. 1463cache_file=/dev/null 1464exec_prefix=NONE 1465no_create= 1466no_recursion= 1467prefix=NONE 1468program_prefix=NONE 1469program_suffix=NONE 1470program_transform_name=s,x,x, 1471silent= 1472site= 1473srcdir= 1474verbose= 1475x_includes=NONE 1476x_libraries=NONE 1477 1478# Installation directory options. 1479# These are left unexpanded so users can "make install exec_prefix=/foo" 1480# and all the variables that are supposed to be based on exec_prefix 1481# by default will actually change. 1482# Use braces instead of parens because sh, perl, etc. also accept them. 1483# (The list follows the same order as the GNU Coding Standards.) 1484bindir='${exec_prefix}/bin' 1485sbindir='${exec_prefix}/sbin' 1486libexecdir='${exec_prefix}/libexec' 1487datarootdir='${prefix}/share' 1488datadir='${datarootdir}' 1489sysconfdir='${prefix}/etc' 1490sharedstatedir='${prefix}/com' 1491localstatedir='${prefix}/var' 1492runstatedir='${localstatedir}/run' 1493includedir='${prefix}/include' 1494oldincludedir='/usr/include' 1495docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1496infodir='${datarootdir}/info' 1497htmldir='${docdir}' 1498dvidir='${docdir}' 1499pdfdir='${docdir}' 1500psdir='${docdir}' 1501libdir='${exec_prefix}/lib' 1502localedir='${datarootdir}/locale' 1503mandir='${datarootdir}/man' 1504 1505ac_prev= 1506ac_dashdash= 1507for ac_option 1508do 1509 # If the previous option needs an argument, assign it. 1510 if test -n "$ac_prev"; then 1511 eval $ac_prev=\$ac_option 1512 ac_prev= 1513 continue 1514 fi 1515 1516 case $ac_option in 1517 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1518 *=) ac_optarg= ;; 1519 *) ac_optarg=yes ;; 1520 esac 1521 1522 case $ac_dashdash$ac_option in 1523 --) 1524 ac_dashdash=yes ;; 1525 1526 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1527 ac_prev=bindir ;; 1528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1529 bindir=$ac_optarg ;; 1530 1531 -build | --build | --buil | --bui | --bu) 1532 ac_prev=build_alias ;; 1533 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1534 build_alias=$ac_optarg ;; 1535 1536 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1538 ac_prev=cache_file ;; 1539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1541 cache_file=$ac_optarg ;; 1542 1543 --config-cache | -C) 1544 cache_file=config.cache ;; 1545 1546 -datadir | --datadir | --datadi | --datad) 1547 ac_prev=datadir ;; 1548 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1549 datadir=$ac_optarg ;; 1550 1551 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1552 | --dataroo | --dataro | --datar) 1553 ac_prev=datarootdir ;; 1554 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1555 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1556 datarootdir=$ac_optarg ;; 1557 1558 -disable-* | --disable-*) 1559 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1560 # Reject names that are not valid shell variable names. 1561 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1562 as_fn_error $? "invalid feature name: '$ac_useropt'" 1563 ac_useropt_orig=$ac_useropt 1564 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1565 case $ac_user_opts in 1566 *" 1567"enable_$ac_useropt" 1568"*) ;; 1569 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1570 ac_unrecognized_sep=', ';; 1571 esac 1572 eval enable_$ac_useropt=no ;; 1573 1574 -docdir | --docdir | --docdi | --doc | --do) 1575 ac_prev=docdir ;; 1576 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1577 docdir=$ac_optarg ;; 1578 1579 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1580 ac_prev=dvidir ;; 1581 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1582 dvidir=$ac_optarg ;; 1583 1584 -enable-* | --enable-*) 1585 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1586 # Reject names that are not valid shell variable names. 1587 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1588 as_fn_error $? "invalid feature name: '$ac_useropt'" 1589 ac_useropt_orig=$ac_useropt 1590 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1591 case $ac_user_opts in 1592 *" 1593"enable_$ac_useropt" 1594"*) ;; 1595 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1596 ac_unrecognized_sep=', ';; 1597 esac 1598 eval enable_$ac_useropt=\$ac_optarg ;; 1599 1600 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1601 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1602 | --exec | --exe | --ex) 1603 ac_prev=exec_prefix ;; 1604 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1605 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1606 | --exec=* | --exe=* | --ex=*) 1607 exec_prefix=$ac_optarg ;; 1608 1609 -gas | --gas | --ga | --g) 1610 # Obsolete; use --with-gas. 1611 with_gas=yes ;; 1612 1613 -help | --help | --hel | --he | -h) 1614 ac_init_help=long ;; 1615 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1616 ac_init_help=recursive ;; 1617 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1618 ac_init_help=short ;; 1619 1620 -host | --host | --hos | --ho) 1621 ac_prev=host_alias ;; 1622 -host=* | --host=* | --hos=* | --ho=*) 1623 host_alias=$ac_optarg ;; 1624 1625 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1626 ac_prev=htmldir ;; 1627 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1628 | --ht=*) 1629 htmldir=$ac_optarg ;; 1630 1631 -includedir | --includedir | --includedi | --included | --include \ 1632 | --includ | --inclu | --incl | --inc) 1633 ac_prev=includedir ;; 1634 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1635 | --includ=* | --inclu=* | --incl=* | --inc=*) 1636 includedir=$ac_optarg ;; 1637 1638 -infodir | --infodir | --infodi | --infod | --info | --inf) 1639 ac_prev=infodir ;; 1640 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1641 infodir=$ac_optarg ;; 1642 1643 -libdir | --libdir | --libdi | --libd) 1644 ac_prev=libdir ;; 1645 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1646 libdir=$ac_optarg ;; 1647 1648 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1649 | --libexe | --libex | --libe) 1650 ac_prev=libexecdir ;; 1651 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1652 | --libexe=* | --libex=* | --libe=*) 1653 libexecdir=$ac_optarg ;; 1654 1655 -localedir | --localedir | --localedi | --localed | --locale) 1656 ac_prev=localedir ;; 1657 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1658 localedir=$ac_optarg ;; 1659 1660 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1661 | --localstate | --localstat | --localsta | --localst | --locals) 1662 ac_prev=localstatedir ;; 1663 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1664 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1665 localstatedir=$ac_optarg ;; 1666 1667 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1668 ac_prev=mandir ;; 1669 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1670 mandir=$ac_optarg ;; 1671 1672 -nfp | --nfp | --nf) 1673 # Obsolete; use --without-fp. 1674 with_fp=no ;; 1675 1676 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1677 | --no-cr | --no-c | -n) 1678 no_create=yes ;; 1679 1680 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1681 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1682 no_recursion=yes ;; 1683 1684 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1685 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1686 | --oldin | --oldi | --old | --ol | --o) 1687 ac_prev=oldincludedir ;; 1688 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1689 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1690 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1691 oldincludedir=$ac_optarg ;; 1692 1693 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1694 ac_prev=prefix ;; 1695 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1696 prefix=$ac_optarg ;; 1697 1698 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1699 | --program-pre | --program-pr | --program-p) 1700 ac_prev=program_prefix ;; 1701 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1702 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1703 program_prefix=$ac_optarg ;; 1704 1705 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1706 | --program-suf | --program-su | --program-s) 1707 ac_prev=program_suffix ;; 1708 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1709 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1710 program_suffix=$ac_optarg ;; 1711 1712 -program-transform-name | --program-transform-name \ 1713 | --program-transform-nam | --program-transform-na \ 1714 | --program-transform-n | --program-transform- \ 1715 | --program-transform | --program-transfor \ 1716 | --program-transfo | --program-transf \ 1717 | --program-trans | --program-tran \ 1718 | --progr-tra | --program-tr | --program-t) 1719 ac_prev=program_transform_name ;; 1720 -program-transform-name=* | --program-transform-name=* \ 1721 | --program-transform-nam=* | --program-transform-na=* \ 1722 | --program-transform-n=* | --program-transform-=* \ 1723 | --program-transform=* | --program-transfor=* \ 1724 | --program-transfo=* | --program-transf=* \ 1725 | --program-trans=* | --program-tran=* \ 1726 | --progr-tra=* | --program-tr=* | --program-t=*) 1727 program_transform_name=$ac_optarg ;; 1728 1729 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1730 ac_prev=pdfdir ;; 1731 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1732 pdfdir=$ac_optarg ;; 1733 1734 -psdir | --psdir | --psdi | --psd | --ps) 1735 ac_prev=psdir ;; 1736 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1737 psdir=$ac_optarg ;; 1738 1739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1740 | -silent | --silent | --silen | --sile | --sil) 1741 silent=yes ;; 1742 1743 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1744 | --runstate | --runstat | --runsta | --runst | --runs \ 1745 | --run | --ru | --r) 1746 ac_prev=runstatedir ;; 1747 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1748 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1749 | --run=* | --ru=* | --r=*) 1750 runstatedir=$ac_optarg ;; 1751 1752 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1753 ac_prev=sbindir ;; 1754 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1755 | --sbi=* | --sb=*) 1756 sbindir=$ac_optarg ;; 1757 1758 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1759 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1760 | --sharedst | --shareds | --shared | --share | --shar \ 1761 | --sha | --sh) 1762 ac_prev=sharedstatedir ;; 1763 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1764 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1765 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1766 | --sha=* | --sh=*) 1767 sharedstatedir=$ac_optarg ;; 1768 1769 -site | --site | --sit) 1770 ac_prev=site ;; 1771 -site=* | --site=* | --sit=*) 1772 site=$ac_optarg ;; 1773 1774 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1775 ac_prev=srcdir ;; 1776 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1777 srcdir=$ac_optarg ;; 1778 1779 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1780 | --syscon | --sysco | --sysc | --sys | --sy) 1781 ac_prev=sysconfdir ;; 1782 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1783 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1784 sysconfdir=$ac_optarg ;; 1785 1786 -target | --target | --targe | --targ | --tar | --ta | --t) 1787 ac_prev=target_alias ;; 1788 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1789 target_alias=$ac_optarg ;; 1790 1791 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1792 verbose=yes ;; 1793 1794 -version | --version | --versio | --versi | --vers | -V) 1795 ac_init_version=: ;; 1796 1797 -with-* | --with-*) 1798 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1799 # Reject names that are not valid shell variable names. 1800 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1801 as_fn_error $? "invalid package name: '$ac_useropt'" 1802 ac_useropt_orig=$ac_useropt 1803 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1804 case $ac_user_opts in 1805 *" 1806"with_$ac_useropt" 1807"*) ;; 1808 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1809 ac_unrecognized_sep=', ';; 1810 esac 1811 eval with_$ac_useropt=\$ac_optarg ;; 1812 1813 -without-* | --without-*) 1814 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1815 # Reject names that are not valid shell variable names. 1816 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1817 as_fn_error $? "invalid package name: '$ac_useropt'" 1818 ac_useropt_orig=$ac_useropt 1819 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1820 case $ac_user_opts in 1821 *" 1822"with_$ac_useropt" 1823"*) ;; 1824 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1825 ac_unrecognized_sep=', ';; 1826 esac 1827 eval with_$ac_useropt=no ;; 1828 1829 --x) 1830 # Obsolete; use --with-x. 1831 with_x=yes ;; 1832 1833 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1834 | --x-incl | --x-inc | --x-in | --x-i) 1835 ac_prev=x_includes ;; 1836 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1837 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1838 x_includes=$ac_optarg ;; 1839 1840 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1841 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1842 ac_prev=x_libraries ;; 1843 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1844 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1845 x_libraries=$ac_optarg ;; 1846 1847 -*) as_fn_error $? "unrecognized option: '$ac_option' 1848Try '$0 --help' for more information" 1849 ;; 1850 1851 *=*) 1852 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1853 # Reject names that are not valid shell variable names. 1854 case $ac_envvar in #( 1855 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1856 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1857 esac 1858 eval $ac_envvar=\$ac_optarg 1859 export $ac_envvar ;; 1860 1861 *) 1862 # FIXME: should be removed in autoconf 3.0. 1863 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1864 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1865 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1866 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1867 ;; 1868 1869 esac 1870done 1871 1872if test -n "$ac_prev"; then 1873 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1874 as_fn_error $? "missing argument to $ac_option" 1875fi 1876 1877if test -n "$ac_unrecognized_opts"; then 1878 case $enable_option_checking in 1879 no) ;; 1880 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1881 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1882 esac 1883fi 1884 1885# Check all directory arguments for consistency. 1886for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1887 datadir sysconfdir sharedstatedir localstatedir includedir \ 1888 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1889 libdir localedir mandir runstatedir 1890do 1891 eval ac_val=\$$ac_var 1892 # Remove trailing slashes. 1893 case $ac_val in 1894 */ ) 1895 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1896 eval $ac_var=\$ac_val;; 1897 esac 1898 # Be sure to have absolute directory names. 1899 case $ac_val in 1900 [\\/$]* | ?:[\\/]* ) continue;; 1901 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1902 esac 1903 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1904done 1905 1906# There might be people who depend on the old broken behavior: '$host' 1907# used to hold the argument of --host etc. 1908# FIXME: To remove some day. 1909build=$build_alias 1910host=$host_alias 1911target=$target_alias 1912 1913# FIXME: To remove some day. 1914if test "x$host_alias" != x; then 1915 if test "x$build_alias" = x; then 1916 cross_compiling=maybe 1917 elif test "x$build_alias" != "x$host_alias"; then 1918 cross_compiling=yes 1919 fi 1920fi 1921 1922ac_tool_prefix= 1923test -n "$host_alias" && ac_tool_prefix=$host_alias- 1924 1925test "$silent" = yes && exec 6>/dev/null 1926 1927 1928ac_pwd=`pwd` && test -n "$ac_pwd" && 1929ac_ls_di=`ls -di .` && 1930ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1931 as_fn_error $? "working directory cannot be determined" 1932test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1933 as_fn_error $? "pwd does not report name of working directory" 1934 1935 1936# Find the source files, if location was not specified. 1937if test -z "$srcdir"; then 1938 ac_srcdir_defaulted=yes 1939 # Try the directory containing this script, then the parent directory. 1940 ac_confdir=`$as_dirname -- "$as_myself" || 1941$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1942 X"$as_myself" : 'X\(//\)[^/]' \| \ 1943 X"$as_myself" : 'X\(//\)$' \| \ 1944 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1945printf "%s\n" X"$as_myself" | 1946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1947 s//\1/ 1948 q 1949 } 1950 /^X\(\/\/\)[^/].*/{ 1951 s//\1/ 1952 q 1953 } 1954 /^X\(\/\/\)$/{ 1955 s//\1/ 1956 q 1957 } 1958 /^X\(\/\).*/{ 1959 s//\1/ 1960 q 1961 } 1962 s/.*/./; q'` 1963 srcdir=$ac_confdir 1964 if test ! -r "$srcdir/$ac_unique_file"; then 1965 srcdir=.. 1966 fi 1967else 1968 ac_srcdir_defaulted=no 1969fi 1970if test ! -r "$srcdir/$ac_unique_file"; then 1971 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1972 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1973fi 1974ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1975ac_abs_confdir=`( 1976 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1977 pwd)` 1978# When building in place, set srcdir=. 1979if test "$ac_abs_confdir" = "$ac_pwd"; then 1980 srcdir=. 1981fi 1982# Remove unnecessary trailing slashes from srcdir. 1983# Double slashes in file names in object file debugging info 1984# mess up M-x gdb in Emacs. 1985case $srcdir in 1986*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1987esac 1988for ac_var in $ac_precious_vars; do 1989 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1990 eval ac_env_${ac_var}_value=\$${ac_var} 1991 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1992 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1993done 1994 1995# 1996# Report the --help message. 1997# 1998if test "$ac_init_help" = "long"; then 1999 # Omit some internal or obsolete options to make the list less imposing. 2000 # This message is too long to be a string in the A/UX 3.1 sh. 2001 cat <<_ACEOF 2002'configure' configures xorg-server 21.1.14 to adapt to many kinds of systems. 2003 2004Usage: $0 [OPTION]... [VAR=VALUE]... 2005 2006To assign environment variables (e.g., CC, CFLAGS...), specify them as 2007VAR=VALUE. See below for descriptions of some of the useful variables. 2008 2009Defaults for the options are specified in brackets. 2010 2011Configuration: 2012 -h, --help display this help and exit 2013 --help=short display options specific to this package 2014 --help=recursive display the short help of all the included packages 2015 -V, --version display version information and exit 2016 -q, --quiet, --silent do not print 'checking ...' messages 2017 --cache-file=FILE cache test results in FILE [disabled] 2018 -C, --config-cache alias for '--cache-file=config.cache' 2019 -n, --no-create do not create output files 2020 --srcdir=DIR find the sources in DIR [configure dir or '..'] 2021 2022Installation directories: 2023 --prefix=PREFIX install architecture-independent files in PREFIX 2024 [$ac_default_prefix] 2025 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 2026 [PREFIX] 2027 2028By default, 'make install' will install all the files in 2029'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 2030an installation prefix other than '$ac_default_prefix' using '--prefix', 2031for instance '--prefix=\$HOME'. 2032 2033For better control, use the options below. 2034 2035Fine tuning of the installation directories: 2036 --bindir=DIR user executables [EPREFIX/bin] 2037 --sbindir=DIR system admin executables [EPREFIX/sbin] 2038 --libexecdir=DIR program executables [EPREFIX/libexec] 2039 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 2040 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 2041 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 2042 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 2043 --libdir=DIR object code libraries [EPREFIX/lib] 2044 --includedir=DIR C header files [PREFIX/include] 2045 --oldincludedir=DIR C header files for non-gcc [/usr/include] 2046 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 2047 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 2048 --infodir=DIR info documentation [DATAROOTDIR/info] 2049 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 2050 --mandir=DIR man documentation [DATAROOTDIR/man] 2051 --docdir=DIR documentation root [DATAROOTDIR/doc/xorg-server] 2052 --htmldir=DIR html documentation [DOCDIR] 2053 --dvidir=DIR dvi documentation [DOCDIR] 2054 --pdfdir=DIR pdf documentation [DOCDIR] 2055 --psdir=DIR ps documentation [DOCDIR] 2056_ACEOF 2057 2058 cat <<\_ACEOF 2059 2060Program names: 2061 --program-prefix=PREFIX prepend PREFIX to installed program names 2062 --program-suffix=SUFFIX append SUFFIX to installed program names 2063 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 2064 2065System types: 2066 --build=BUILD configure for building on BUILD [guessed] 2067 --host=HOST cross-compile to build programs to run on HOST [BUILD] 2068_ACEOF 2069fi 2070 2071if test -n "$ac_init_help"; then 2072 case $ac_init_help in 2073 short | recursive ) echo "Configuration of xorg-server 21.1.14:";; 2074 esac 2075 cat <<\_ACEOF 2076 2077Optional Features: 2078 --disable-option-checking ignore unrecognized --enable/--with options 2079 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 2080 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 2081 --enable-silent-rules less verbose build output (undo: "make V=1") 2082 --disable-silent-rules verbose build output (undo: "make V=0") 2083 --enable-dependency-tracking 2084 do not reject slow dependency extractors 2085 --disable-dependency-tracking 2086 speeds up one-time build 2087 --disable-selective-werror 2088 Turn off selective compiler errors. (default: 2089 enabled) 2090 --enable-strict-compilation 2091 Enable all warnings from compiler and make them 2092 errors (default: disabled) 2093 --enable-docs Enable building the documentation (default: yes) 2094 --enable-devel-docs Enable building the developer documentation 2095 (default: yes) 2096 --enable-unit-tests Enable building unit test cases (default: auto) 2097 --enable-static[=PKGS] build static libraries [default=no] 2098 --enable-shared[=PKGS] build shared libraries [default=yes] 2099 --enable-fast-install[=PKGS] 2100 optimize for fast installation [default=yes] 2101 --disable-libtool-lock avoid locking (might break parallel builds) 2102 --disable-largefile omit support for large files 2103 --enable-agp Enable AGP support (default: auto) 2104 --enable-werror Obsolete - use --enable-strict-compilation instead 2105 --enable-debug Enable debugging (default: disabled) 2106 --enable-listen-tcp Listen on TCP by default (default:disabled) 2107 --disable-listen-unix Listen on Unix by default (default:enabled) 2108 --disable-listen-local Listen on local by default (default:enabled) 2109 --enable-sparkle Enable updating of X11.app using the Sparkle 2110 Framework (default: disabled) 2111 --enable-visibility Enable symbol visibility (default: auto) 2112 --disable-composite Build Composite extension (default: enabled) 2113 --disable-mitshm Build SHM extension (default: auto) 2114 --disable-xres Build XRes extension (default: enabled) 2115 --disable-record Build Record extension (default: enabled) 2116 --disable-xv Build Xv extension (default: enabled) 2117 --disable-xvmc Build XvMC extension (default: enabled) 2118 --disable-dga Build DGA extension (default: auto) 2119 --disable-screensaver Build ScreenSaver extension (default: enabled) 2120 --disable-xdmcp Build XDMCP extension (default: auto) 2121 --disable-xdm-auth-1 Build XDM-Auth-1 extension (default: auto) 2122 --disable-glx Build GLX extension (default: enabled) 2123 --enable-dri Build DRI extension (default: auto) 2124 --enable-dri2 Build DRI2 extension (default: auto) 2125 --enable-dri3 Build DRI3 extension (default: auto) 2126 --disable-present Build Present extension (default: enabled) 2127 --disable-xinerama Build Xinerama extension (default: enabled) 2128 --disable-xf86vidmode Build XF86VidMode extension (default: auto) 2129 --disable-xace Build X-ACE extension (default: enabled) 2130 --enable-xselinux Build SELinux extension (default: disabled) 2131 --enable-xcsecurity Build Security extension (default: disabled) 2132 --disable-dbe Build DBE extension (default: enabled) 2133 --enable-xf86bigfont Build XF86 Big Font extension (default: disabled) 2134 --disable-dpms Build DPMS extension (default: enabled) 2135 --enable-config-udev Build udev support (default: auto) 2136 --enable-config-udev-kms 2137 Build udev kms support (default: auto) 2138 --disable-config-hal Build HAL support (default: auto) 2139 --enable-config-wscons Build wscons config support (default: auto) 2140 --enable-xfree86-utils Build xfree86 DDX utilities (default: enabled) 2141 --enable-vgahw Build Xorg with vga access (default: enabled) 2142 --enable-int10-module Build Xorg with int10 module (default: enabled) 2143 --enable-windowsdri Build XWin with WindowsDRI extension (default: auto) 2144 --enable-libdrm Build Xorg with libdrm support (default: enabled) 2145 --disable-clientids Build Xorg with client ID tracking (default: 2146 enabled) 2147 --enable-pciaccess Build Xorg with pciaccess library (default: enabled) 2148 --disable-linux-acpi Disable building ACPI support on Linux (if 2149 available). 2150 --disable-linux-apm Disable building APM support on Linux (if 2151 available). 2152 --enable-systemd-logind Build systemd-logind support (default: auto) 2153 --enable-suid-wrapper Build suid-root wrapper for legacy driver support on 2154 rootless xserver systems (default: no) 2155 --enable-xorg Build Xorg server (default: auto) 2156 --enable-xvfb Build Xvfb server (default: yes) 2157 --enable-xnest Build Xnest server (default: auto) 2158 --enable-xquartz Build Xquartz server for OS-X (default: auto) 2159 --enable-standalone-xpbproxy 2160 Build a standalone xpbproxy (in addition to the one 2161 integrated into Xquartz as a separate thread) 2162 (default: no) 2163 --enable-xwin Build XWin server (default: auto) 2164 --enable-glamor Build glamor dix module (default: auto) 2165 --enable-xf86-input-inputtest 2166 Build Xorg test input driver (default: yes) 2167 --enable-kdrive Build kdrive servers (default: no) 2168 --enable-xephyr Build the kdrive Xephyr server (default: auto) 2169 --enable-libunwind Use libunwind for backtracing (default: auto) 2170 --disable-xshmfence Disable xshmfence (default: auto) 2171 --enable-install-setuid Install Xorg server as owned by root with setuid bit 2172 (default: auto) 2173 --enable-unix-transport Enable UNIX domain socket transport 2174 --enable-tcp-transport Enable TCP socket transport 2175 --enable-ipv6 Enable IPv6 support 2176 --enable-local-transport 2177 Enable os-specific local transport 2178 --enable-secure-rpc Enable Secure RPC 2179 --enable-input-thread Enable input threads 2180 --disable-xtrans-send-fds 2181 Use Xtrans support for fd passing (default: auto) 2182 --enable-year2038 support timestamps after 2038 2183 2184Optional Packages: 2185 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2186 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2187 --with-doxygen Use doxygen to regenerate documentation (default: 2188 auto) 2189 --with-xmlto Use xmlto to regenerate documentation (default: 2190 auto) 2191 --with-fop Use fop to regenerate documentation (default: auto) 2192 --with-xsltproc Use xsltproc for the transformation of XML documents 2193 (default: auto) 2194 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 2195 both] 2196 --with-aix-soname=aix|svr4|both 2197 shared library versioning (aka "SONAME") variant to 2198 provide on AIX, [default=aix]. 2199 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2200 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 2201 compiler's sysroot if not specified). 2202 --with-dtrace=PATH Enable dtrace probes (default: enabled if dtrace 2203 found) 2204 --with-int10=BACKEND int10 backend: vm86, x86emu or stub 2205 --with-vendor-name=VENDOR 2206 Vendor string reported by the server 2207 --with-vendor-name-short=VENDOR 2208 Short version of vendor string reported by the 2209 server 2210 --with-vendor-web=URL Vendor web address reported by the server 2211 --with-module-dir=DIR Directory where modules are installed (default: 2212 $libdir/xorg/modules) 2213 --with-log-dir=DIR Directory where log files are kept (default: 2214 $localstatedir/log) 2215 --with-builder-addr=ADDRESS 2216 Builder address (default: 2217 xorg@lists.freedesktop.org) 2218 --with-builderstring=BUILDERSTRING 2219 Additional builder string 2220 --with-fallback-input-driver=$FALLBACK_INPUT_DRIVER 2221 Input driver fallback if the requested driver for a 2222 device is unavailable 2223 --with-fontrootdir=DIR Path to root directory for font files 2224 --with-fontmiscdir=DIR Path to misc files [FONTROOTDIR/misc] 2225 --with-fontotfdir=DIR Path to OTF files [FONTROOTDIR/OTF] 2226 --with-fontttfdir=DIR Path to TTF files [FONTROOTDIR/TTF] 2227 --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1] 2228 --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi] 2229 --with-font100dpidir=DIR 2230 Path to 100dpi files [FONTROOTDIR/100dpi] 2231 --with-default-font-path=PATH 2232 Comma separated list of font dirs 2233 --with-xkb-path=PATH Path to XKB base dir (default: auto) 2234 --with-xkb-output=PATH Path to XKB output dir (default: 2235 ${datadir}/X11/xkb/compiled) 2236 --with-default-xkb-rules=RULES 2237 Keyboard ruleset (default: base/evdev) 2238 --with-default-xkb-model=MODEL 2239 Keyboard model (default: pc105) 2240 --with-default-xkb-layout=LAYOUT 2241 Keyboard layout (default: us) 2242 --with-default-xkb-variant=VARIANT 2243 Keyboard variant (default: (none)) 2244 --with-default-xkb-options=OPTIONS 2245 Keyboard layout options (default: (none)) 2246 --with-serverconfig-path=PATH 2247 Directory where ancillary server config files are 2248 installed (default: ${libdir}/xorg) 2249 --with-apple-applications-dir=PATH 2250 Path to the Applications directory (default: 2251 /Applications/Utilities) 2252 --with-apple-application-name=NAME 2253 Name for the .app (default: X11) 2254 --with-bundle-id-prefix=RDNS_PREFIX 2255 Prefix to use for bundle identifiers (default: 2256 org.x) 2257 --with-bundle-version=VERSION 2258 Version to use for X11.app's CFBundleVersion 2259 (default: 21.1.14) 2260 --with-bundle-version-string=VERSION 2261 Version to use for X11.app's 2262 CFBundleShortVersionString (default: 21.1.14) 2263 --with-sparkle-feed-url=URL 2264 URL for the Sparkle feed (default: 2265 https://www.xquartz.org/releases/sparkle/release.xml) 2266 --with-khronos-spec-dir=PATH 2267 Path to Khronos OpenGL registry database files 2268 (default: auto) 2269 --with-systemd-daemon support systemd socket activation (default: auto) 2270 --with-xkb-bin-directory=DIR 2271 Directory containing xkbcomp program (default: auto) 2272 --with-sha1=libc|libmd|libnettle|libgcrypt|libcrypto|libsha1|CommonCrypto|CryptoAPI 2273 choose SHA1 implementation 2274 2275Some influential environment variables: 2276 CC C compiler command 2277 CFLAGS C compiler flags 2278 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2279 nonstandard directory <lib dir> 2280 LIBS libraries to pass to the linker, e.g. -l<library> 2281 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2282 you have headers in a nonstandard directory <include dir> 2283 PKG_CONFIG path to pkg-config utility 2284 PKG_CONFIG_PATH 2285 directories to add to pkg-config's search path 2286 PKG_CONFIG_LIBDIR 2287 path overriding pkg-config's built-in search path 2288 DOXYGEN Path to doxygen command 2289 DOT Path to the dot graphics utility 2290 XMLTO Path to xmlto command 2291 FOP Path to fop command 2292 XSLTPROC Path to xsltproc command 2293 XORG_MALLOC_DEBUG_ENV 2294 Environment variables to enable memory checking in tests 2295 CCAS assembler compiler command (defaults to CC) 2296 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 2297 LT_SYS_LIBRARY_PATH 2298 User-defined run-time library search path. 2299 YACC The 'Yet Another Compiler Compiler' implementation to use. 2300 Defaults to the first program found out of: 'bison -y', 'byacc', 2301 'yacc'. 2302 YFLAGS The list of arguments that will be passed by default to $YACC. 2303 This script will default YFLAGS to the empty string to avoid a 2304 default value of '-d' given by some make applications. 2305 CPP C preprocessor 2306 LIBBSD_CFLAGS 2307 C compiler flags for LIBBSD, overriding pkg-config 2308 LIBBSD_LIBS linker flags for LIBBSD, overriding pkg-config 2309 PIXMAN_CFLAGS 2310 C compiler flags for PIXMAN, overriding pkg-config 2311 PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config 2312 SYSTEMD_DAEMON_CFLAGS 2313 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config 2314 SYSTEMD_DAEMON_LIBS 2315 linker flags for SYSTEMD_DAEMON, overriding pkg-config 2316 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config 2317 UDEV_LIBS linker flags for UDEV, overriding pkg-config 2318 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config 2319 DBUS_LIBS linker flags for DBUS, overriding pkg-config 2320 HAL_CFLAGS C compiler flags for HAL, overriding pkg-config 2321 HAL_LIBS linker flags for HAL, overriding pkg-config 2322 DRI2PROTO_CFLAGS 2323 C compiler flags for DRI2PROTO, overriding pkg-config 2324 DRI2PROTO_LIBS 2325 linker flags for DRI2PROTO, overriding pkg-config 2326 DRI3PROTO_CFLAGS 2327 C compiler flags for DRI3PROTO, overriding pkg-config 2328 DRI3PROTO_LIBS 2329 linker flags for DRI3PROTO, overriding pkg-config 2330 XSHMFENCE_CFLAGS 2331 C compiler flags for XSHMFENCE, overriding pkg-config 2332 XSHMFENCE_LIBS 2333 linker flags for XSHMFENCE, overriding pkg-config 2334 LIBDRM_CFLAGS 2335 C compiler flags for LIBDRM, overriding pkg-config 2336 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config 2337 XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config 2338 XLIB_LIBS linker flags for XLIB, overriding pkg-config 2339 GL_CFLAGS C compiler flags for GL, overriding pkg-config 2340 GL_LIBS linker flags for GL, overriding pkg-config 2341 SELINUX_CFLAGS 2342 C compiler flags for SELINUX, overriding pkg-config 2343 SELINUX_LIBS 2344 linker flags for SELINUX, overriding pkg-config 2345 XDMCP_CFLAGS 2346 C compiler flags for XDMCP, overriding pkg-config 2347 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config 2348 LIBSHA1_CFLAGS 2349 C compiler flags for LIBSHA1, overriding pkg-config 2350 LIBSHA1_LIBS 2351 linker flags for LIBSHA1, overriding pkg-config 2352 OPENSSL_CFLAGS 2353 C compiler flags for OPENSSL, overriding pkg-config 2354 OPENSSL_LIBS 2355 linker flags for OPENSSL, overriding pkg-config 2356 XSERVERCFLAGS_CFLAGS 2357 C compiler flags for XSERVERCFLAGS, overriding pkg-config 2358 XSERVERCFLAGS_LIBS 2359 linker flags for XSERVERCFLAGS, overriding pkg-config 2360 XSERVERLIBS_CFLAGS 2361 C compiler flags for XSERVERLIBS, overriding pkg-config 2362 XSERVERLIBS_LIBS 2363 linker flags for XSERVERLIBS, overriding pkg-config 2364 LIBUNWIND_CFLAGS 2365 C compiler flags for LIBUNWIND, overriding pkg-config 2366 LIBUNWIND_LIBS 2367 linker flags for LIBUNWIND, overriding pkg-config 2368 XNESTMODULES_CFLAGS 2369 C compiler flags for XNESTMODULES, overriding pkg-config 2370 XNESTMODULES_LIBS 2371 linker flags for XNESTMODULES, overriding pkg-config 2372 LIBXCVT_CFLAGS 2373 C compiler flags for LIBXCVT, overriding pkg-config 2374 LIBXCVT_LIBS 2375 linker flags for LIBXCVT, overriding pkg-config 2376 PCIACCESS_CFLAGS 2377 C compiler flags for PCIACCESS, overriding pkg-config 2378 PCIACCESS_LIBS 2379 linker flags for PCIACCESS, overriding pkg-config 2380 DGA_CFLAGS C compiler flags for DGA, overriding pkg-config 2381 DGA_LIBS linker flags for DGA, overriding pkg-config 2382 XORG_MODULES_CFLAGS 2383 C compiler flags for XORG_MODULES, overriding pkg-config 2384 XORG_MODULES_LIBS 2385 linker flags for XORG_MODULES, overriding pkg-config 2386 GLAMOR_CFLAGS 2387 C compiler flags for GLAMOR, overriding pkg-config 2388 GLAMOR_LIBS linker flags for GLAMOR, overriding pkg-config 2389 GBM_CFLAGS C compiler flags for GBM, overriding pkg-config 2390 GBM_LIBS linker flags for GBM, overriding pkg-config 2391 XWINMODULES_CFLAGS 2392 C compiler flags for XWINMODULES, overriding pkg-config 2393 XWINMODULES_LIBS 2394 linker flags for XWINMODULES, overriding pkg-config 2395 WINDOWSDRI_CFLAGS 2396 C compiler flags for WINDOWSDRI, overriding pkg-config 2397 WINDOWSDRI_LIBS 2398 linker flags for WINDOWSDRI, overriding pkg-config 2399 KHRONOS_OPENGL_REGISTRY_CFLAGS 2400 C compiler flags for KHRONOS_OPENGL_REGISTRY, overriding 2401 pkg-config 2402 KHRONOS_OPENGL_REGISTRY_LIBS 2403 linker flags for KHRONOS_OPENGL_REGISTRY, overriding pkg-config 2404 XPBPROXY_CFLAGS 2405 C compiler flags for XPBPROXY, overriding pkg-config 2406 XPBPROXY_LIBS 2407 linker flags for XPBPROXY, overriding pkg-config 2408 XEPHYR_CFLAGS 2409 C compiler flags for XEPHYR, overriding pkg-config 2410 XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config 2411 2412Use these variables to override the choices made by 'configure' or to help 2413it to find libraries and programs with nonstandard names/locations. 2414 2415Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>. 2416_ACEOF 2417ac_status=$? 2418fi 2419 2420if test "$ac_init_help" = "recursive"; then 2421 # If there are subdirs, report their specific --help. 2422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2423 test -d "$ac_dir" || 2424 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2425 continue 2426 ac_builddir=. 2427 2428case "$ac_dir" in 2429.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2430*) 2431 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 2432 # A ".." for each directory in $ac_dir_suffix. 2433 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2434 case $ac_top_builddir_sub in 2435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2437 esac ;; 2438esac 2439ac_abs_top_builddir=$ac_pwd 2440ac_abs_builddir=$ac_pwd$ac_dir_suffix 2441# for backward compatibility: 2442ac_top_builddir=$ac_top_build_prefix 2443 2444case $srcdir in 2445 .) # We are building in place. 2446 ac_srcdir=. 2447 ac_top_srcdir=$ac_top_builddir_sub 2448 ac_abs_top_srcdir=$ac_pwd ;; 2449 [\\/]* | ?:[\\/]* ) # Absolute name. 2450 ac_srcdir=$srcdir$ac_dir_suffix; 2451 ac_top_srcdir=$srcdir 2452 ac_abs_top_srcdir=$srcdir ;; 2453 *) # Relative name. 2454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2455 ac_top_srcdir=$ac_top_build_prefix$srcdir 2456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2457esac 2458ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2459 2460 cd "$ac_dir" || { ac_status=$?; continue; } 2461 # Check for configure.gnu first; this name is used for a wrapper for 2462 # Metaconfig's "Configure" on case-insensitive file systems. 2463 if test -f "$ac_srcdir/configure.gnu"; then 2464 echo && 2465 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2466 elif test -f "$ac_srcdir/configure"; then 2467 echo && 2468 $SHELL "$ac_srcdir/configure" --help=recursive 2469 else 2470 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2471 fi || ac_status=$? 2472 cd "$ac_pwd" || { ac_status=$?; break; } 2473 done 2474fi 2475 2476test -n "$ac_init_help" && exit $ac_status 2477if $ac_init_version; then 2478 cat <<\_ACEOF 2479xorg-server configure 21.1.14 2480generated by GNU Autoconf 2.72 2481 2482Copyright (C) 2023 Free Software Foundation, Inc. 2483This configure script is free software; the Free Software Foundation 2484gives unlimited permission to copy, distribute and modify it. 2485_ACEOF 2486 exit 2487fi 2488 2489## ------------------------ ## 2490## Autoconf initialization. ## 2491## ------------------------ ## 2492 2493# ac_fn_c_try_compile LINENO 2494# -------------------------- 2495# Try to compile conftest.$ac_ext, and return whether this succeeded. 2496ac_fn_c_try_compile () 2497{ 2498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2499 rm -f conftest.$ac_objext conftest.beam 2500 if { { ac_try="$ac_compile" 2501case "(($ac_try" in 2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2503 *) ac_try_echo=$ac_try;; 2504esac 2505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2506printf "%s\n" "$ac_try_echo"; } >&5 2507 (eval "$ac_compile") 2>conftest.err 2508 ac_status=$? 2509 if test -s conftest.err; then 2510 grep -v '^ *+' conftest.err >conftest.er1 2511 cat conftest.er1 >&5 2512 mv -f conftest.er1 conftest.err 2513 fi 2514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2515 test $ac_status = 0; } && { 2516 test -z "$ac_c_werror_flag" || 2517 test ! -s conftest.err 2518 } && test -s conftest.$ac_objext 2519then : 2520 ac_retval=0 2521else case e in #( 2522 e) printf "%s\n" "$as_me: failed program was:" >&5 2523sed 's/^/| /' conftest.$ac_ext >&5 2524 2525 ac_retval=1 ;; 2526esac 2527fi 2528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2529 as_fn_set_status $ac_retval 2530 2531} # ac_fn_c_try_compile 2532 2533# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2534# ------------------------------------------------------- 2535# Tests whether HEADER exists and can be compiled using the include files in 2536# INCLUDES, setting the cache variable VAR accordingly. 2537ac_fn_c_check_header_compile () 2538{ 2539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2541printf %s "checking for $2... " >&6; } 2542if eval test \${$3+y} 2543then : 2544 printf %s "(cached) " >&6 2545else case e in #( 2546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2547/* end confdefs.h. */ 2548$4 2549#include <$2> 2550_ACEOF 2551if ac_fn_c_try_compile "$LINENO" 2552then : 2553 eval "$3=yes" 2554else case e in #( 2555 e) eval "$3=no" ;; 2556esac 2557fi 2558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2559esac 2560fi 2561eval ac_res=\$$3 2562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2563printf "%s\n" "$ac_res" >&6; } 2564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2565 2566} # ac_fn_c_check_header_compile 2567 2568# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2569# ------------------------------------------------------------------ 2570# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2571# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2572ac_fn_check_decl () 2573{ 2574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2575 as_decl_name=`echo $2|sed 's/ *(.*//'` 2576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2577printf %s "checking whether $as_decl_name is declared... " >&6; } 2578if eval test \${$3+y} 2579then : 2580 printf %s "(cached) " >&6 2581else case e in #( 2582 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2583 eval ac_save_FLAGS=\$$6 2584 as_fn_append $6 " $5" 2585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2586/* end confdefs.h. */ 2587$4 2588int 2589main (void) 2590{ 2591#ifndef $as_decl_name 2592#ifdef __cplusplus 2593 (void) $as_decl_use; 2594#else 2595 (void) $as_decl_name; 2596#endif 2597#endif 2598 2599 ; 2600 return 0; 2601} 2602_ACEOF 2603if ac_fn_c_try_compile "$LINENO" 2604then : 2605 eval "$3=yes" 2606else case e in #( 2607 e) eval "$3=no" ;; 2608esac 2609fi 2610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2611 eval $6=\$ac_save_FLAGS 2612 ;; 2613esac 2614fi 2615eval ac_res=\$$3 2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2617printf "%s\n" "$ac_res" >&6; } 2618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2619 2620} # ac_fn_check_decl 2621 2622# ac_fn_c_try_link LINENO 2623# ----------------------- 2624# Try to link conftest.$ac_ext, and return whether this succeeded. 2625ac_fn_c_try_link () 2626{ 2627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2628 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2629 if { { ac_try="$ac_link" 2630case "(($ac_try" in 2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2632 *) ac_try_echo=$ac_try;; 2633esac 2634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2635printf "%s\n" "$ac_try_echo"; } >&5 2636 (eval "$ac_link") 2>conftest.err 2637 ac_status=$? 2638 if test -s conftest.err; then 2639 grep -v '^ *+' conftest.err >conftest.er1 2640 cat conftest.er1 >&5 2641 mv -f conftest.er1 conftest.err 2642 fi 2643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2644 test $ac_status = 0; } && { 2645 test -z "$ac_c_werror_flag" || 2646 test ! -s conftest.err 2647 } && test -s conftest$ac_exeext && { 2648 test "$cross_compiling" = yes || 2649 test -x conftest$ac_exeext 2650 } 2651then : 2652 ac_retval=0 2653else case e in #( 2654 e) printf "%s\n" "$as_me: failed program was:" >&5 2655sed 's/^/| /' conftest.$ac_ext >&5 2656 2657 ac_retval=1 ;; 2658esac 2659fi 2660 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2661 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2662 # interfere with the next link command; also delete a directory that is 2663 # left behind by Apple's compiler. We do this before executing the actions. 2664 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2666 as_fn_set_status $ac_retval 2667 2668} # ac_fn_c_try_link 2669 2670# ac_fn_c_check_func LINENO FUNC VAR 2671# ---------------------------------- 2672# Tests whether FUNC exists, setting the cache variable VAR accordingly 2673ac_fn_c_check_func () 2674{ 2675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2677printf %s "checking for $2... " >&6; } 2678if eval test \${$3+y} 2679then : 2680 printf %s "(cached) " >&6 2681else case e in #( 2682 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2683/* end confdefs.h. */ 2684/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2685 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2686#define $2 innocuous_$2 2687 2688/* System header to define __stub macros and hopefully few prototypes, 2689 which can conflict with char $2 (void); below. */ 2690 2691#include <limits.h> 2692#undef $2 2693 2694/* Override any GCC internal prototype to avoid an error. 2695 Use char because int might match the return type of a GCC 2696 builtin and then its argument prototype would still apply. */ 2697#ifdef __cplusplus 2698extern "C" 2699#endif 2700char $2 (void); 2701/* The GNU C library defines this for functions which it implements 2702 to always fail with ENOSYS. Some functions are actually named 2703 something starting with __ and the normal name is an alias. */ 2704#if defined __stub_$2 || defined __stub___$2 2705choke me 2706#endif 2707 2708int 2709main (void) 2710{ 2711return $2 (); 2712 ; 2713 return 0; 2714} 2715_ACEOF 2716if ac_fn_c_try_link "$LINENO" 2717then : 2718 eval "$3=yes" 2719else case e in #( 2720 e) eval "$3=no" ;; 2721esac 2722fi 2723rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2724 conftest$ac_exeext conftest.$ac_ext ;; 2725esac 2726fi 2727eval ac_res=\$$3 2728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2729printf "%s\n" "$ac_res" >&6; } 2730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2731 2732} # ac_fn_c_check_func 2733 2734# ac_fn_c_try_cpp LINENO 2735# ---------------------- 2736# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2737ac_fn_c_try_cpp () 2738{ 2739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2740 if { { ac_try="$ac_cpp conftest.$ac_ext" 2741case "(($ac_try" in 2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2743 *) ac_try_echo=$ac_try;; 2744esac 2745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2746printf "%s\n" "$ac_try_echo"; } >&5 2747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2748 ac_status=$? 2749 if test -s conftest.err; then 2750 grep -v '^ *+' conftest.err >conftest.er1 2751 cat conftest.er1 >&5 2752 mv -f conftest.er1 conftest.err 2753 fi 2754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2755 test $ac_status = 0; } > conftest.i && { 2756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2757 test ! -s conftest.err 2758 } 2759then : 2760 ac_retval=0 2761else case e in #( 2762 e) printf "%s\n" "$as_me: failed program was:" >&5 2763sed 's/^/| /' conftest.$ac_ext >&5 2764 2765 ac_retval=1 ;; 2766esac 2767fi 2768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2769 as_fn_set_status $ac_retval 2770 2771} # ac_fn_c_try_cpp 2772 2773# ac_fn_c_try_run LINENO 2774# ---------------------- 2775# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2776# executables *can* be run. 2777ac_fn_c_try_run () 2778{ 2779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2780 if { { ac_try="$ac_link" 2781case "(($ac_try" in 2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2783 *) ac_try_echo=$ac_try;; 2784esac 2785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2786printf "%s\n" "$ac_try_echo"; } >&5 2787 (eval "$ac_link") 2>&5 2788 ac_status=$? 2789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2790 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2791 { { case "(($ac_try" in 2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2793 *) ac_try_echo=$ac_try;; 2794esac 2795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2796printf "%s\n" "$ac_try_echo"; } >&5 2797 (eval "$ac_try") 2>&5 2798 ac_status=$? 2799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2800 test $ac_status = 0; }; } 2801then : 2802 ac_retval=0 2803else case e in #( 2804 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2805 printf "%s\n" "$as_me: failed program was:" >&5 2806sed 's/^/| /' conftest.$ac_ext >&5 2807 2808 ac_retval=$ac_status ;; 2809esac 2810fi 2811 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2813 as_fn_set_status $ac_retval 2814 2815} # ac_fn_c_try_run 2816 2817# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2818# -------------------------------------------- 2819# Tries to find the compile-time value of EXPR in a program that includes 2820# INCLUDES, setting VAR accordingly. Returns whether the value could be 2821# computed 2822ac_fn_c_compute_int () 2823{ 2824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2825 if test "$cross_compiling" = yes; then 2826 # Depending upon the size, compute the lo and hi bounds. 2827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2828/* end confdefs.h. */ 2829$4 2830int 2831main (void) 2832{ 2833static int test_array [1 - 2 * !(($2) >= 0)]; 2834test_array [0] = 0; 2835return test_array [0]; 2836 2837 ; 2838 return 0; 2839} 2840_ACEOF 2841if ac_fn_c_try_compile "$LINENO" 2842then : 2843 ac_lo=0 ac_mid=0 2844 while :; do 2845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2846/* end confdefs.h. */ 2847$4 2848int 2849main (void) 2850{ 2851static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2852test_array [0] = 0; 2853return test_array [0]; 2854 2855 ; 2856 return 0; 2857} 2858_ACEOF 2859if ac_fn_c_try_compile "$LINENO" 2860then : 2861 ac_hi=$ac_mid; break 2862else case e in #( 2863 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2864 if test $ac_lo -le $ac_mid; then 2865 ac_lo= ac_hi= 2866 break 2867 fi 2868 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;; 2869esac 2870fi 2871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2872 done 2873else case e in #( 2874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2875/* end confdefs.h. */ 2876$4 2877int 2878main (void) 2879{ 2880static int test_array [1 - 2 * !(($2) < 0)]; 2881test_array [0] = 0; 2882return test_array [0]; 2883 2884 ; 2885 return 0; 2886} 2887_ACEOF 2888if ac_fn_c_try_compile "$LINENO" 2889then : 2890 ac_hi=-1 ac_mid=-1 2891 while :; do 2892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2893/* end confdefs.h. */ 2894$4 2895int 2896main (void) 2897{ 2898static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2899test_array [0] = 0; 2900return test_array [0]; 2901 2902 ; 2903 return 0; 2904} 2905_ACEOF 2906if ac_fn_c_try_compile "$LINENO" 2907then : 2908 ac_lo=$ac_mid; break 2909else case e in #( 2910 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2911 if test $ac_mid -le $ac_hi; then 2912 ac_lo= ac_hi= 2913 break 2914 fi 2915 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;; 2916esac 2917fi 2918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2919 done 2920else case e in #( 2921 e) ac_lo= ac_hi= ;; 2922esac 2923fi 2924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2925esac 2926fi 2927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2928# Binary search between lo and hi bounds. 2929while test "x$ac_lo" != "x$ac_hi"; do 2930 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2932/* end confdefs.h. */ 2933$4 2934int 2935main (void) 2936{ 2937static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2938test_array [0] = 0; 2939return test_array [0]; 2940 2941 ; 2942 return 0; 2943} 2944_ACEOF 2945if ac_fn_c_try_compile "$LINENO" 2946then : 2947 ac_hi=$ac_mid 2948else case e in #( 2949 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;; 2950esac 2951fi 2952rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2953done 2954case $ac_lo in #(( 2955?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2956'') ac_retval=1 ;; 2957esac 2958 else 2959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2960/* end confdefs.h. */ 2961$4 2962static long int longval (void) { return $2; } 2963static unsigned long int ulongval (void) { return $2; } 2964#include <stdio.h> 2965#include <stdlib.h> 2966int 2967main (void) 2968{ 2969 2970 FILE *f = fopen ("conftest.val", "w"); 2971 if (! f) 2972 return 1; 2973 if (($2) < 0) 2974 { 2975 long int i = longval (); 2976 if (i != ($2)) 2977 return 1; 2978 fprintf (f, "%ld", i); 2979 } 2980 else 2981 { 2982 unsigned long int i = ulongval (); 2983 if (i != ($2)) 2984 return 1; 2985 fprintf (f, "%lu", i); 2986 } 2987 /* Do not output a trailing newline, as this causes \r\n confusion 2988 on some platforms. */ 2989 return ferror (f) || fclose (f) != 0; 2990 2991 ; 2992 return 0; 2993} 2994_ACEOF 2995if ac_fn_c_try_run "$LINENO" 2996then : 2997 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2998else case e in #( 2999 e) ac_retval=1 ;; 3000esac 3001fi 3002rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3003 conftest.$ac_objext conftest.beam conftest.$ac_ext 3004rm -f conftest.val 3005 3006 fi 3007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3008 as_fn_set_status $ac_retval 3009 3010} # ac_fn_c_compute_int 3011 3012# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 3013# ------------------------------------------- 3014# Tests whether TYPE exists after having included INCLUDES, setting cache 3015# variable VAR accordingly. 3016ac_fn_c_check_type () 3017{ 3018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3020printf %s "checking for $2... " >&6; } 3021if eval test \${$3+y} 3022then : 3023 printf %s "(cached) " >&6 3024else case e in #( 3025 e) eval "$3=no" 3026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3027/* end confdefs.h. */ 3028$4 3029int 3030main (void) 3031{ 3032if (sizeof ($2)) 3033 return 0; 3034 ; 3035 return 0; 3036} 3037_ACEOF 3038if ac_fn_c_try_compile "$LINENO" 3039then : 3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3041/* end confdefs.h. */ 3042$4 3043int 3044main (void) 3045{ 3046if (sizeof (($2))) 3047 return 0; 3048 ; 3049 return 0; 3050} 3051_ACEOF 3052if ac_fn_c_try_compile "$LINENO" 3053then : 3054 3055else case e in #( 3056 e) eval "$3=yes" ;; 3057esac 3058fi 3059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3060fi 3061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3062esac 3063fi 3064eval ac_res=\$$3 3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3066printf "%s\n" "$ac_res" >&6; } 3067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3068 3069} # ac_fn_c_check_type 3070 3071# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 3072# ---------------------------------------------------- 3073# Tries to find if the field MEMBER exists in type AGGR, after including 3074# INCLUDES, setting cache variable VAR accordingly. 3075ac_fn_c_check_member () 3076{ 3077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 3079printf %s "checking for $2.$3... " >&6; } 3080if eval test \${$4+y} 3081then : 3082 printf %s "(cached) " >&6 3083else case e in #( 3084 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3085/* end confdefs.h. */ 3086$5 3087int 3088main (void) 3089{ 3090static $2 ac_aggr; 3091if (ac_aggr.$3) 3092return 0; 3093 ; 3094 return 0; 3095} 3096_ACEOF 3097if ac_fn_c_try_compile "$LINENO" 3098then : 3099 eval "$4=yes" 3100else case e in #( 3101 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3102/* end confdefs.h. */ 3103$5 3104int 3105main (void) 3106{ 3107static $2 ac_aggr; 3108if (sizeof ac_aggr.$3) 3109return 0; 3110 ; 3111 return 0; 3112} 3113_ACEOF 3114if ac_fn_c_try_compile "$LINENO" 3115then : 3116 eval "$4=yes" 3117else case e in #( 3118 e) eval "$4=no" ;; 3119esac 3120fi 3121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3122esac 3123fi 3124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3125esac 3126fi 3127eval ac_res=\$$4 3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3129printf "%s\n" "$ac_res" >&6; } 3130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3131 3132} # ac_fn_c_check_member 3133ac_configure_args_raw= 3134for ac_arg 3135do 3136 case $ac_arg in 3137 *\'*) 3138 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3139 esac 3140 as_fn_append ac_configure_args_raw " '$ac_arg'" 3141done 3142 3143case $ac_configure_args_raw in 3144 *$as_nl*) 3145 ac_safe_unquote= ;; 3146 *) 3147 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 3148 ac_unsafe_a="$ac_unsafe_z#~" 3149 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 3150 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 3151esac 3152 3153cat >config.log <<_ACEOF 3154This file contains any messages produced by compilers while 3155running configure, to aid debugging if configure makes a mistake. 3156 3157It was created by xorg-server $as_me 21.1.14, which was 3158generated by GNU Autoconf 2.72. Invocation command line was 3159 3160 $ $0$ac_configure_args_raw 3161 3162_ACEOF 3163exec 5>>config.log 3164{ 3165cat <<_ASUNAME 3166## --------- ## 3167## Platform. ## 3168## --------- ## 3169 3170hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3171uname -m = `(uname -m) 2>/dev/null || echo unknown` 3172uname -r = `(uname -r) 2>/dev/null || echo unknown` 3173uname -s = `(uname -s) 2>/dev/null || echo unknown` 3174uname -v = `(uname -v) 2>/dev/null || echo unknown` 3175 3176/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3177/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3178 3179/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3180/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3181/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3182/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3183/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3184/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3185/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3186 3187_ASUNAME 3188 3189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3190for as_dir in $PATH 3191do 3192 IFS=$as_save_IFS 3193 case $as_dir in #((( 3194 '') as_dir=./ ;; 3195 */) ;; 3196 *) as_dir=$as_dir/ ;; 3197 esac 3198 printf "%s\n" "PATH: $as_dir" 3199 done 3200IFS=$as_save_IFS 3201 3202} >&5 3203 3204cat >&5 <<_ACEOF 3205 3206 3207## ----------- ## 3208## Core tests. ## 3209## ----------- ## 3210 3211_ACEOF 3212 3213 3214# Keep a trace of the command line. 3215# Strip out --no-create and --no-recursion so they do not pile up. 3216# Strip out --silent because we don't want to record it for future runs. 3217# Also quote any args containing shell meta-characters. 3218# Make two passes to allow for proper duplicate-argument suppression. 3219ac_configure_args= 3220ac_configure_args0= 3221ac_configure_args1= 3222ac_must_keep_next=false 3223for ac_pass in 1 2 3224do 3225 for ac_arg 3226 do 3227 case $ac_arg in 3228 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3230 | -silent | --silent | --silen | --sile | --sil) 3231 continue ;; 3232 *\'*) 3233 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3234 esac 3235 case $ac_pass in 3236 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3237 2) 3238 as_fn_append ac_configure_args1 " '$ac_arg'" 3239 if test $ac_must_keep_next = true; then 3240 ac_must_keep_next=false # Got value, back to normal. 3241 else 3242 case $ac_arg in 3243 *=* | --config-cache | -C | -disable-* | --disable-* \ 3244 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3245 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3246 | -with-* | --with-* | -without-* | --without-* | --x) 3247 case "$ac_configure_args0 " in 3248 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3249 esac 3250 ;; 3251 -* ) ac_must_keep_next=true ;; 3252 esac 3253 fi 3254 as_fn_append ac_configure_args " '$ac_arg'" 3255 ;; 3256 esac 3257 done 3258done 3259{ ac_configure_args0=; unset ac_configure_args0;} 3260{ ac_configure_args1=; unset ac_configure_args1;} 3261 3262# When interrupted or exit'd, cleanup temporary files, and complete 3263# config.log. We remove comments because anyway the quotes in there 3264# would cause problems or look ugly. 3265# WARNING: Use '\'' to represent an apostrophe within the trap. 3266# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3267trap 'exit_status=$? 3268 # Sanitize IFS. 3269 IFS=" "" $as_nl" 3270 # Save into config.log some information that might help in debugging. 3271 { 3272 echo 3273 3274 printf "%s\n" "## ---------------- ## 3275## Cache variables. ## 3276## ---------------- ##" 3277 echo 3278 # The following way of writing the cache mishandles newlines in values, 3279( 3280 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3281 eval ac_val=\$$ac_var 3282 case $ac_val in #( 3283 *${as_nl}*) 3284 case $ac_var in #( 3285 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3286printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3287 esac 3288 case $ac_var in #( 3289 _ | IFS | as_nl) ;; #( 3290 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3291 *) { eval $ac_var=; unset $ac_var;} ;; 3292 esac ;; 3293 esac 3294 done 3295 (set) 2>&1 | 3296 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3297 *${as_nl}ac_space=\ *) 3298 sed -n \ 3299 "s/'\''/'\''\\\\'\'''\''/g; 3300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3301 ;; #( 3302 *) 3303 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3304 ;; 3305 esac | 3306 sort 3307) 3308 echo 3309 3310 printf "%s\n" "## ----------------- ## 3311## Output variables. ## 3312## ----------------- ##" 3313 echo 3314 for ac_var in $ac_subst_vars 3315 do 3316 eval ac_val=\$$ac_var 3317 case $ac_val in 3318 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3319 esac 3320 printf "%s\n" "$ac_var='\''$ac_val'\''" 3321 done | sort 3322 echo 3323 3324 if test -n "$ac_subst_files"; then 3325 printf "%s\n" "## ------------------- ## 3326## File substitutions. ## 3327## ------------------- ##" 3328 echo 3329 for ac_var in $ac_subst_files 3330 do 3331 eval ac_val=\$$ac_var 3332 case $ac_val in 3333 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3334 esac 3335 printf "%s\n" "$ac_var='\''$ac_val'\''" 3336 done | sort 3337 echo 3338 fi 3339 3340 if test -s confdefs.h; then 3341 printf "%s\n" "## ----------- ## 3342## confdefs.h. ## 3343## ----------- ##" 3344 echo 3345 cat confdefs.h 3346 echo 3347 fi 3348 test "$ac_signal" != 0 && 3349 printf "%s\n" "$as_me: caught signal $ac_signal" 3350 printf "%s\n" "$as_me: exit $exit_status" 3351 } >&5 3352 rm -f core *.core core.conftest.* && 3353 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3354 exit $exit_status 3355' 0 3356for ac_signal in 1 2 13 15; do 3357 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3358done 3359ac_signal=0 3360 3361# confdefs.h avoids OS command line length limits that DEFS can exceed. 3362rm -f -r conftest* confdefs.h 3363 3364printf "%s\n" "/* confdefs.h */" > confdefs.h 3365 3366# Predefined preprocessor variables. 3367 3368printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 3369 3370printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 3371 3372printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 3373 3374printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 3375 3376printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 3377 3378printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 3379 3380 3381# Let the site file select an alternate cache file if it wants to. 3382# Prefer an explicitly selected file to automatically selected ones. 3383if test -n "$CONFIG_SITE"; then 3384 ac_site_files="$CONFIG_SITE" 3385elif test "x$prefix" != xNONE; then 3386 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 3387else 3388 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 3389fi 3390 3391for ac_site_file in $ac_site_files 3392do 3393 case $ac_site_file in #( 3394 */*) : 3395 ;; #( 3396 *) : 3397 ac_site_file=./$ac_site_file ;; 3398esac 3399 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3401printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 3402 sed 's/^/| /' "$ac_site_file" >&5 3403 . "$ac_site_file" \ 3404 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3405printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3406as_fn_error $? "failed to load site script $ac_site_file 3407See 'config.log' for more details" "$LINENO" 5; } 3408 fi 3409done 3410 3411if test -r "$cache_file"; then 3412 # Some versions of bash will fail to source /dev/null (special files 3413 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3414 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3416printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 3417 case $cache_file in 3418 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3419 *) . "./$cache_file";; 3420 esac 3421 fi 3422else 3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3424printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 3425 >$cache_file 3426fi 3427 3428as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 3429# Test code for whether the C compiler supports C89 (global declarations) 3430ac_c_conftest_c89_globals=' 3431/* Does the compiler advertise C89 conformance? 3432 Do not test the value of __STDC__, because some compilers set it to 0 3433 while being otherwise adequately conformant. */ 3434#if !defined __STDC__ 3435# error "Compiler does not advertise C89 conformance" 3436#endif 3437 3438#include <stddef.h> 3439#include <stdarg.h> 3440struct stat; 3441/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 3442struct buf { int x; }; 3443struct buf * (*rcsopen) (struct buf *, struct stat *, int); 3444static char *e (char **p, int i) 3445{ 3446 return p[i]; 3447} 3448static char *f (char * (*g) (char **, int), char **p, ...) 3449{ 3450 char *s; 3451 va_list v; 3452 va_start (v,p); 3453 s = g (p, va_arg (v,int)); 3454 va_end (v); 3455 return s; 3456} 3457 3458/* C89 style stringification. */ 3459#define noexpand_stringify(a) #a 3460const char *stringified = noexpand_stringify(arbitrary+token=sequence); 3461 3462/* C89 style token pasting. Exercises some of the corner cases that 3463 e.g. old MSVC gets wrong, but not very hard. */ 3464#define noexpand_concat(a,b) a##b 3465#define expand_concat(a,b) noexpand_concat(a,b) 3466extern int vA; 3467extern int vbee; 3468#define aye A 3469#define bee B 3470int *pvA = &expand_concat(v,aye); 3471int *pvbee = &noexpand_concat(v,bee); 3472 3473/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3474 function prototypes and stuff, but not \xHH hex character constants. 3475 These do not provoke an error unfortunately, instead are silently treated 3476 as an "x". The following induces an error, until -std is added to get 3477 proper ANSI mode. Curiously \x00 != x always comes out true, for an 3478 array size at least. It is necessary to write \x00 == 0 to get something 3479 that is true only with -std. */ 3480int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 3481 3482/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3483 inside strings and character constants. */ 3484#define FOO(x) '\''x'\'' 3485int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 3486 3487int test (int i, double x); 3488struct s1 {int (*f) (int a);}; 3489struct s2 {int (*f) (double a);}; 3490int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 3491 int, int);' 3492 3493# Test code for whether the C compiler supports C89 (body of main). 3494ac_c_conftest_c89_main=' 3495ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 3496' 3497 3498# Test code for whether the C compiler supports C99 (global declarations) 3499ac_c_conftest_c99_globals=' 3500/* Does the compiler advertise C99 conformance? */ 3501#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 3502# error "Compiler does not advertise C99 conformance" 3503#endif 3504 3505// See if C++-style comments work. 3506 3507#include <stdbool.h> 3508extern int puts (const char *); 3509extern int printf (const char *, ...); 3510extern int dprintf (int, const char *, ...); 3511extern void *malloc (size_t); 3512extern void free (void *); 3513 3514// Check varargs macros. These examples are taken from C99 6.10.3.5. 3515// dprintf is used instead of fprintf to avoid needing to declare 3516// FILE and stderr. 3517#define debug(...) dprintf (2, __VA_ARGS__) 3518#define showlist(...) puts (#__VA_ARGS__) 3519#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3520static void 3521test_varargs_macros (void) 3522{ 3523 int x = 1234; 3524 int y = 5678; 3525 debug ("Flag"); 3526 debug ("X = %d\n", x); 3527 showlist (The first, second, and third items.); 3528 report (x>y, "x is %d but y is %d", x, y); 3529} 3530 3531// Check long long types. 3532#define BIG64 18446744073709551615ull 3533#define BIG32 4294967295ul 3534#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3535#if !BIG_OK 3536 #error "your preprocessor is broken" 3537#endif 3538#if BIG_OK 3539#else 3540 #error "your preprocessor is broken" 3541#endif 3542static long long int bignum = -9223372036854775807LL; 3543static unsigned long long int ubignum = BIG64; 3544 3545struct incomplete_array 3546{ 3547 int datasize; 3548 double data[]; 3549}; 3550 3551struct named_init { 3552 int number; 3553 const wchar_t *name; 3554 double average; 3555}; 3556 3557typedef const char *ccp; 3558 3559static inline int 3560test_restrict (ccp restrict text) 3561{ 3562 // Iterate through items via the restricted pointer. 3563 // Also check for declarations in for loops. 3564 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 3565 continue; 3566 return 0; 3567} 3568 3569// Check varargs and va_copy. 3570static bool 3571test_varargs (const char *format, ...) 3572{ 3573 va_list args; 3574 va_start (args, format); 3575 va_list args_copy; 3576 va_copy (args_copy, args); 3577 3578 const char *str = ""; 3579 int number = 0; 3580 float fnumber = 0; 3581 3582 while (*format) 3583 { 3584 switch (*format++) 3585 { 3586 case '\''s'\'': // string 3587 str = va_arg (args_copy, const char *); 3588 break; 3589 case '\''d'\'': // int 3590 number = va_arg (args_copy, int); 3591 break; 3592 case '\''f'\'': // float 3593 fnumber = va_arg (args_copy, double); 3594 break; 3595 default: 3596 break; 3597 } 3598 } 3599 va_end (args_copy); 3600 va_end (args); 3601 3602 return *str && number && fnumber; 3603} 3604' 3605 3606# Test code for whether the C compiler supports C99 (body of main). 3607ac_c_conftest_c99_main=' 3608 // Check bool. 3609 _Bool success = false; 3610 success |= (argc != 0); 3611 3612 // Check restrict. 3613 if (test_restrict ("String literal") == 0) 3614 success = true; 3615 char *restrict newvar = "Another string"; 3616 3617 // Check varargs. 3618 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 3619 test_varargs_macros (); 3620 3621 // Check flexible array members. 3622 struct incomplete_array *ia = 3623 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3624 ia->datasize = 10; 3625 for (int i = 0; i < ia->datasize; ++i) 3626 ia->data[i] = i * 1.234; 3627 // Work around memory leak warnings. 3628 free (ia); 3629 3630 // Check named initializers. 3631 struct named_init ni = { 3632 .number = 34, 3633 .name = L"Test wide string", 3634 .average = 543.34343, 3635 }; 3636 3637 ni.number = 58; 3638 3639 int dynamic_array[ni.number]; 3640 dynamic_array[0] = argv[0][0]; 3641 dynamic_array[ni.number - 1] = 543; 3642 3643 // work around unused variable warnings 3644 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 3645 || dynamic_array[ni.number - 1] != 543); 3646' 3647 3648# Test code for whether the C compiler supports C11 (global declarations) 3649ac_c_conftest_c11_globals=' 3650/* Does the compiler advertise C11 conformance? */ 3651#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 3652# error "Compiler does not advertise C11 conformance" 3653#endif 3654 3655// Check _Alignas. 3656char _Alignas (double) aligned_as_double; 3657char _Alignas (0) no_special_alignment; 3658extern char aligned_as_int; 3659char _Alignas (0) _Alignas (int) aligned_as_int; 3660 3661// Check _Alignof. 3662enum 3663{ 3664 int_alignment = _Alignof (int), 3665 int_array_alignment = _Alignof (int[100]), 3666 char_alignment = _Alignof (char) 3667}; 3668_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 3669 3670// Check _Noreturn. 3671int _Noreturn does_not_return (void) { for (;;) continue; } 3672 3673// Check _Static_assert. 3674struct test_static_assert 3675{ 3676 int x; 3677 _Static_assert (sizeof (int) <= sizeof (long int), 3678 "_Static_assert does not work in struct"); 3679 long int y; 3680}; 3681 3682// Check UTF-8 literals. 3683#define u8 syntax error! 3684char const utf8_literal[] = u8"happens to be ASCII" "another string"; 3685 3686// Check duplicate typedefs. 3687typedef long *long_ptr; 3688typedef long int *long_ptr; 3689typedef long_ptr long_ptr; 3690 3691// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 3692struct anonymous 3693{ 3694 union { 3695 struct { int i; int j; }; 3696 struct { int k; long int l; } w; 3697 }; 3698 int m; 3699} v1; 3700' 3701 3702# Test code for whether the C compiler supports C11 (body of main). 3703ac_c_conftest_c11_main=' 3704 _Static_assert ((offsetof (struct anonymous, i) 3705 == offsetof (struct anonymous, w.k)), 3706 "Anonymous union alignment botch"); 3707 v1.i = 2; 3708 v1.w.k = 5; 3709 ok |= v1.i != 5; 3710' 3711 3712# Test code for whether the C compiler supports C11 (complete). 3713ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 3714${ac_c_conftest_c99_globals} 3715${ac_c_conftest_c11_globals} 3716 3717int 3718main (int argc, char **argv) 3719{ 3720 int ok = 0; 3721 ${ac_c_conftest_c89_main} 3722 ${ac_c_conftest_c99_main} 3723 ${ac_c_conftest_c11_main} 3724 return ok; 3725} 3726" 3727 3728# Test code for whether the C compiler supports C99 (complete). 3729ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 3730${ac_c_conftest_c99_globals} 3731 3732int 3733main (int argc, char **argv) 3734{ 3735 int ok = 0; 3736 ${ac_c_conftest_c89_main} 3737 ${ac_c_conftest_c99_main} 3738 return ok; 3739} 3740" 3741 3742# Test code for whether the C compiler supports C89 (complete). 3743ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 3744 3745int 3746main (int argc, char **argv) 3747{ 3748 int ok = 0; 3749 ${ac_c_conftest_c89_main} 3750 return ok; 3751} 3752" 3753 3754as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 3755as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 3756as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 3757as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 3758as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 3759as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 3760as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 3761as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 3762as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 3763as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 3764 3765# Auxiliary files required by this configure script. 3766ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 3767 3768# Locations in which to look for auxiliary files. 3769ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 3770 3771# Search for a directory containing all of the required auxiliary files, 3772# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 3773# If we don't find one directory that contains all the files we need, 3774# we report the set of missing files from the *first* directory in 3775# $ac_aux_dir_candidates and give up. 3776ac_missing_aux_files="" 3777ac_first_candidate=: 3778printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 3779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3780as_found=false 3781for as_dir in $ac_aux_dir_candidates 3782do 3783 IFS=$as_save_IFS 3784 case $as_dir in #((( 3785 '') as_dir=./ ;; 3786 */) ;; 3787 *) as_dir=$as_dir/ ;; 3788 esac 3789 as_found=: 3790 3791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 3792 ac_aux_dir_found=yes 3793 ac_install_sh= 3794 for ac_aux in $ac_aux_files 3795 do 3796 # As a special case, if "install-sh" is required, that requirement 3797 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 3798 # and $ac_install_sh is set appropriately for whichever one is found. 3799 if test x"$ac_aux" = x"install-sh" 3800 then 3801 if test -f "${as_dir}install-sh"; then 3802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 3803 ac_install_sh="${as_dir}install-sh -c" 3804 elif test -f "${as_dir}install.sh"; then 3805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 3806 ac_install_sh="${as_dir}install.sh -c" 3807 elif test -f "${as_dir}shtool"; then 3808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3809 ac_install_sh="${as_dir}shtool install -c" 3810 else 3811 ac_aux_dir_found=no 3812 if $ac_first_candidate; then 3813 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3814 else 3815 break 3816 fi 3817 fi 3818 else 3819 if test -f "${as_dir}${ac_aux}"; then 3820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3821 else 3822 ac_aux_dir_found=no 3823 if $ac_first_candidate; then 3824 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3825 else 3826 break 3827 fi 3828 fi 3829 fi 3830 done 3831 if test "$ac_aux_dir_found" = yes; then 3832 ac_aux_dir="$as_dir" 3833 break 3834 fi 3835 ac_first_candidate=false 3836 3837 as_found=false 3838done 3839IFS=$as_save_IFS 3840if $as_found 3841then : 3842 3843else case e in #( 3844 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 3845esac 3846fi 3847 3848 3849# These three variables are undocumented and unsupported, 3850# and are intended to be withdrawn in a future Autoconf release. 3851# They can cause serious problems if a builder's source tree is in a directory 3852# whose full name contains unusual characters. 3853if test -f "${ac_aux_dir}config.guess"; then 3854 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3855fi 3856if test -f "${ac_aux_dir}config.sub"; then 3857 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3858fi 3859if test -f "$ac_aux_dir/configure"; then 3860 ac_configure="$SHELL ${ac_aux_dir}configure" 3861fi 3862 3863# Check that the precious variables saved in the cache have kept the same 3864# value. 3865ac_cache_corrupted=false 3866for ac_var in $ac_precious_vars; do 3867 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3868 eval ac_new_set=\$ac_env_${ac_var}_set 3869 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3870 eval ac_new_val=\$ac_env_${ac_var}_value 3871 case $ac_old_set,$ac_new_set in 3872 set,) 3873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 3874printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 3875 ac_cache_corrupted=: ;; 3876 ,set) 3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 3878printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 3879 ac_cache_corrupted=: ;; 3880 ,);; 3881 *) 3882 if test "x$ac_old_val" != "x$ac_new_val"; then 3883 # differences in whitespace do not lead to failure. 3884 ac_old_val_w=`echo x $ac_old_val` 3885 ac_new_val_w=`echo x $ac_new_val` 3886 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 3888printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 3889 ac_cache_corrupted=: 3890 else 3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 3892printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 3893 eval $ac_var=\$ac_old_val 3894 fi 3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 3896printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 3897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 3898printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 3899 fi;; 3900 esac 3901 # Pass precious variables to config.status. 3902 if test "$ac_new_set" = set; then 3903 case $ac_new_val in 3904 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3905 *) ac_arg=$ac_var=$ac_new_val ;; 3906 esac 3907 case " $ac_configure_args " in 3908 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3909 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3910 esac 3911 fi 3912done 3913if $ac_cache_corrupted; then 3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3915printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3917printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3918 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 3919 and start over" "$LINENO" 5 3920fi 3921## -------------------- ## 3922## Main body of script. ## 3923## -------------------- ## 3924 3925ac_ext=c 3926ac_cpp='$CPP $CPPFLAGS' 3927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3929ac_compiler_gnu=$ac_cv_c_compiler_gnu 3930 3931 3932RELEASE_DATE="2024-10-29" 3933RELEASE_NAME="Caramel Ice Cream" 3934 3935 3936am__api_version='1.16' 3937 3938 3939 3940 # Find a good install program. We prefer a C program (faster), 3941# so one script is as good as another. But avoid the broken or 3942# incompatible versions: 3943# SysV /etc/install, /usr/sbin/install 3944# SunOS /usr/etc/install 3945# IRIX /sbin/install 3946# AIX /bin/install 3947# AmigaOS /C/install, which installs bootblocks on floppy discs 3948# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3949# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3950# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3951# OS/2's system install, which has a completely different semantic 3952# ./install, which can be erroneously created by make from ./install.sh. 3953# Reject install programs that cannot install multiple files. 3954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3955printf %s "checking for a BSD-compatible install... " >&6; } 3956if test -z "$INSTALL"; then 3957if test ${ac_cv_path_install+y} 3958then : 3959 printf %s "(cached) " >&6 3960else case e in #( 3961 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3962for as_dir in $PATH 3963do 3964 IFS=$as_save_IFS 3965 case $as_dir in #((( 3966 '') as_dir=./ ;; 3967 */) ;; 3968 *) as_dir=$as_dir/ ;; 3969 esac 3970 # Account for fact that we put trailing slashes in our PATH walk. 3971case $as_dir in #(( 3972 ./ | /[cC]/* | \ 3973 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3974 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3975 /usr/ucb/* ) ;; 3976 *) 3977 # OSF1 and SCO ODT 3.0 have their own names for install. 3978 # Don't use installbsd from OSF since it installs stuff as root 3979 # by default. 3980 for ac_prog in ginstall scoinst install; do 3981 for ac_exec_ext in '' $ac_executable_extensions; do 3982 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3983 if test $ac_prog = install && 3984 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3985 # AIX install. It has an incompatible calling convention. 3986 : 3987 elif test $ac_prog = install && 3988 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3989 # program-specific install script used by HP pwplus--don't use. 3990 : 3991 else 3992 rm -rf conftest.one conftest.two conftest.dir 3993 echo one > conftest.one 3994 echo two > conftest.two 3995 mkdir conftest.dir 3996 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3997 test -s conftest.one && test -s conftest.two && 3998 test -s conftest.dir/conftest.one && 3999 test -s conftest.dir/conftest.two 4000 then 4001 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4002 break 3 4003 fi 4004 fi 4005 fi 4006 done 4007 done 4008 ;; 4009esac 4010 4011 done 4012IFS=$as_save_IFS 4013 4014rm -rf conftest.one conftest.two conftest.dir 4015 ;; 4016esac 4017fi 4018 if test ${ac_cv_path_install+y}; then 4019 INSTALL=$ac_cv_path_install 4020 else 4021 # As a last resort, use the slow shell script. Don't cache a 4022 # value for INSTALL within a source directory, because that will 4023 # break other packages using the cache if that directory is 4024 # removed, or if the value is a relative name. 4025 INSTALL=$ac_install_sh 4026 fi 4027fi 4028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4029printf "%s\n" "$INSTALL" >&6; } 4030 4031# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4032# It thinks the first close brace ends the variable substitution. 4033test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4034 4035test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4036 4037test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4038 4039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4040printf %s "checking whether build environment is sane... " >&6; } 4041# Reject unsafe characters in $srcdir or the absolute working directory 4042# name. Accept space and tab only in the latter. 4043am_lf=' 4044' 4045case `pwd` in 4046 *[\\\"\#\$\&\'\`$am_lf]*) 4047 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4048esac 4049case $srcdir in 4050 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4051 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4052esac 4053 4054# Do 'set' in a subshell so we don't clobber the current shell's 4055# arguments. Must try -L first in case configure is actually a 4056# symlink; some systems play weird games with the mod time of symlinks 4057# (eg FreeBSD returns the mod time of the symlink's containing 4058# directory). 4059if ( 4060 am_has_slept=no 4061 for am_try in 1 2; do 4062 echo "timestamp, slept: $am_has_slept" > conftest.file 4063 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4064 if test "$*" = "X"; then 4065 # -L didn't work. 4066 set X `ls -t "$srcdir/configure" conftest.file` 4067 fi 4068 if test "$*" != "X $srcdir/configure conftest.file" \ 4069 && test "$*" != "X conftest.file $srcdir/configure"; then 4070 4071 # If neither matched, then we have a broken ls. This can happen 4072 # if, for instance, CONFIG_SHELL is bash and it inherits a 4073 # broken ls alias from the environment. This has actually 4074 # happened. Such a system could not be considered "sane". 4075 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4076 alias in your environment" "$LINENO" 5 4077 fi 4078 if test "$2" = conftest.file || test $am_try -eq 2; then 4079 break 4080 fi 4081 # Just in case. 4082 sleep 1 4083 am_has_slept=yes 4084 done 4085 test "$2" = conftest.file 4086 ) 4087then 4088 # Ok. 4089 : 4090else 4091 as_fn_error $? "newly created file is older than distributed files! 4092Check your system clock" "$LINENO" 5 4093fi 4094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4095printf "%s\n" "yes" >&6; } 4096# If we didn't sleep, we still need to ensure time stamps of config.status and 4097# generated files are strictly newer. 4098am_sleep_pid= 4099if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4100 ( sleep 1 ) & 4101 am_sleep_pid=$! 4102fi 4103 4104rm -f conftest.file 4105 4106test "$program_prefix" != NONE && 4107 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4108# Use a double $ so make ignores it. 4109test "$program_suffix" != NONE && 4110 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4111# Double any \ or $. 4112# By default was 's,x,x', remove it if useless. 4113ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4114program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4115 4116 4117# Expand $ac_aux_dir to an absolute path. 4118am_aux_dir=`cd "$ac_aux_dir" && pwd` 4119 4120 4121 if test x"${MISSING+set}" != xset; then 4122 MISSING="\${SHELL} '$am_aux_dir/missing'" 4123fi 4124# Use eval to expand $SHELL 4125if eval "$MISSING --is-lightweight"; then 4126 am_missing_run="$MISSING " 4127else 4128 am_missing_run= 4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4130printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4131fi 4132 4133if test x"${install_sh+set}" != xset; then 4134 case $am_aux_dir in 4135 *\ * | *\ *) 4136 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4137 *) 4138 install_sh="\${SHELL} $am_aux_dir/install-sh" 4139 esac 4140fi 4141 4142# Installed binaries are usually stripped using 'strip' when the user 4143# run "make install-strip". However 'strip' might not be the right 4144# tool to use in cross-compilation environments, therefore Automake 4145# will honor the 'STRIP' environment variable to overrule this program. 4146if test "$cross_compiling" != no; then 4147 if test -n "$ac_tool_prefix"; then 4148 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4149set dummy ${ac_tool_prefix}strip; ac_word=$2 4150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4151printf %s "checking for $ac_word... " >&6; } 4152if test ${ac_cv_prog_STRIP+y} 4153then : 4154 printf %s "(cached) " >&6 4155else case e in #( 4156 e) if test -n "$STRIP"; then 4157 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4158else 4159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4160for as_dir in $PATH 4161do 4162 IFS=$as_save_IFS 4163 case $as_dir in #((( 4164 '') as_dir=./ ;; 4165 */) ;; 4166 *) as_dir=$as_dir/ ;; 4167 esac 4168 for ac_exec_ext in '' $ac_executable_extensions; do 4169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4170 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4172 break 2 4173 fi 4174done 4175 done 4176IFS=$as_save_IFS 4177 4178fi ;; 4179esac 4180fi 4181STRIP=$ac_cv_prog_STRIP 4182if test -n "$STRIP"; then 4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4184printf "%s\n" "$STRIP" >&6; } 4185else 4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4187printf "%s\n" "no" >&6; } 4188fi 4189 4190 4191fi 4192if test -z "$ac_cv_prog_STRIP"; then 4193 ac_ct_STRIP=$STRIP 4194 # Extract the first word of "strip", so it can be a program name with args. 4195set dummy strip; ac_word=$2 4196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4197printf %s "checking for $ac_word... " >&6; } 4198if test ${ac_cv_prog_ac_ct_STRIP+y} 4199then : 4200 printf %s "(cached) " >&6 4201else case e in #( 4202 e) if test -n "$ac_ct_STRIP"; then 4203 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4204else 4205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4206for as_dir in $PATH 4207do 4208 IFS=$as_save_IFS 4209 case $as_dir in #((( 4210 '') as_dir=./ ;; 4211 */) ;; 4212 *) as_dir=$as_dir/ ;; 4213 esac 4214 for ac_exec_ext in '' $ac_executable_extensions; do 4215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4216 ac_cv_prog_ac_ct_STRIP="strip" 4217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4218 break 2 4219 fi 4220done 4221 done 4222IFS=$as_save_IFS 4223 4224fi ;; 4225esac 4226fi 4227ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4228if test -n "$ac_ct_STRIP"; then 4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4230printf "%s\n" "$ac_ct_STRIP" >&6; } 4231else 4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4233printf "%s\n" "no" >&6; } 4234fi 4235 4236 if test "x$ac_ct_STRIP" = x; then 4237 STRIP=":" 4238 else 4239 case $cross_compiling:$ac_tool_warned in 4240yes:) 4241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4242printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4243ac_tool_warned=yes ;; 4244esac 4245 STRIP=$ac_ct_STRIP 4246 fi 4247else 4248 STRIP="$ac_cv_prog_STRIP" 4249fi 4250 4251fi 4252INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4253 4254 4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4256printf %s "checking for a race-free mkdir -p... " >&6; } 4257if test -z "$MKDIR_P"; then 4258 if test ${ac_cv_path_mkdir+y} 4259then : 4260 printf %s "(cached) " >&6 4261else case e in #( 4262 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4263for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4264do 4265 IFS=$as_save_IFS 4266 case $as_dir in #((( 4267 '') as_dir=./ ;; 4268 */) ;; 4269 *) as_dir=$as_dir/ ;; 4270 esac 4271 for ac_prog in mkdir gmkdir; do 4272 for ac_exec_ext in '' $ac_executable_extensions; do 4273 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4274 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4275 'mkdir ('*'coreutils) '* | \ 4276 *'BusyBox '* | \ 4277 'mkdir (fileutils) '4.1*) 4278 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4279 break 3;; 4280 esac 4281 done 4282 done 4283 done 4284IFS=$as_save_IFS 4285 ;; 4286esac 4287fi 4288 4289 test -d ./--version && rmdir ./--version 4290 if test ${ac_cv_path_mkdir+y}; then 4291 MKDIR_P="$ac_cv_path_mkdir -p" 4292 else 4293 # As a last resort, use plain mkdir -p, 4294 # in the hope it doesn't have the bugs of ancient mkdir. 4295 MKDIR_P='mkdir -p' 4296 fi 4297fi 4298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4299printf "%s\n" "$MKDIR_P" >&6; } 4300 4301for ac_prog in gawk mawk nawk awk 4302do 4303 # Extract the first word of "$ac_prog", so it can be a program name with args. 4304set dummy $ac_prog; ac_word=$2 4305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4306printf %s "checking for $ac_word... " >&6; } 4307if test ${ac_cv_prog_AWK+y} 4308then : 4309 printf %s "(cached) " >&6 4310else case e in #( 4311 e) if test -n "$AWK"; then 4312 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4313else 4314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4315for as_dir in $PATH 4316do 4317 IFS=$as_save_IFS 4318 case $as_dir in #((( 4319 '') as_dir=./ ;; 4320 */) ;; 4321 *) as_dir=$as_dir/ ;; 4322 esac 4323 for ac_exec_ext in '' $ac_executable_extensions; do 4324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4325 ac_cv_prog_AWK="$ac_prog" 4326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4327 break 2 4328 fi 4329done 4330 done 4331IFS=$as_save_IFS 4332 4333fi ;; 4334esac 4335fi 4336AWK=$ac_cv_prog_AWK 4337if test -n "$AWK"; then 4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4339printf "%s\n" "$AWK" >&6; } 4340else 4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4342printf "%s\n" "no" >&6; } 4343fi 4344 4345 4346 test -n "$AWK" && break 4347done 4348 4349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4350printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4351set x ${MAKE-make} 4352ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4353if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4354then : 4355 printf %s "(cached) " >&6 4356else case e in #( 4357 e) cat >conftest.make <<\_ACEOF 4358SHELL = /bin/sh 4359all: 4360 @echo '@@@%%%=$(MAKE)=@@@%%%' 4361_ACEOF 4362# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4363case `${MAKE-make} -f conftest.make 2>/dev/null` in 4364 *@@@%%%=?*=@@@%%%*) 4365 eval ac_cv_prog_make_${ac_make}_set=yes;; 4366 *) 4367 eval ac_cv_prog_make_${ac_make}_set=no;; 4368esac 4369rm -f conftest.make ;; 4370esac 4371fi 4372if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4374printf "%s\n" "yes" >&6; } 4375 SET_MAKE= 4376else 4377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4378printf "%s\n" "no" >&6; } 4379 SET_MAKE="MAKE=${MAKE-make}" 4380fi 4381 4382rm -rf .tst 2>/dev/null 4383mkdir .tst 2>/dev/null 4384if test -d .tst; then 4385 am__leading_dot=. 4386else 4387 am__leading_dot=_ 4388fi 4389rmdir .tst 2>/dev/null 4390 4391# Check whether --enable-silent-rules was given. 4392if test ${enable_silent_rules+y} 4393then : 4394 enableval=$enable_silent_rules; 4395fi 4396 4397case $enable_silent_rules in # ((( 4398 yes) AM_DEFAULT_VERBOSITY=0;; 4399 no) AM_DEFAULT_VERBOSITY=1;; 4400 *) AM_DEFAULT_VERBOSITY=1;; 4401esac 4402am_make=${MAKE-make} 4403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4404printf %s "checking whether $am_make supports nested variables... " >&6; } 4405if test ${am_cv_make_support_nested_variables+y} 4406then : 4407 printf %s "(cached) " >&6 4408else case e in #( 4409 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4410BAR0=false 4411BAR1=true 4412V=1 4413am__doit: 4414 @$(TRUE) 4415.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4416 am_cv_make_support_nested_variables=yes 4417else 4418 am_cv_make_support_nested_variables=no 4419fi ;; 4420esac 4421fi 4422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4423printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4424if test $am_cv_make_support_nested_variables = yes; then 4425 AM_V='$(V)' 4426 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4427else 4428 AM_V=$AM_DEFAULT_VERBOSITY 4429 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4430fi 4431AM_BACKSLASH='\' 4432 4433if test "`cd $srcdir && pwd`" != "`pwd`"; then 4434 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4435 # is not polluted with repeated "-I." 4436 am__isrc=' -I$(srcdir)' 4437 # test to see if srcdir already configured 4438 if test -f $srcdir/config.status; then 4439 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4440 fi 4441fi 4442 4443# test whether we have cygpath 4444if test -z "$CYGPATH_W"; then 4445 if (cygpath --version) >/dev/null 2>/dev/null; then 4446 CYGPATH_W='cygpath -w' 4447 else 4448 CYGPATH_W=echo 4449 fi 4450fi 4451 4452 4453# Define the identity of the package. 4454 PACKAGE='xorg-server' 4455 VERSION='21.1.14' 4456 4457 4458printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4459 4460 4461printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4462 4463# Some tools Automake needs. 4464 4465ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4466 4467 4468AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4469 4470 4471AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4472 4473 4474AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4475 4476 4477MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4478 4479# For better backward compatibility. To be removed once Automake 1.9.x 4480# dies out for good. For more background, see: 4481# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4482# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4483mkdir_p='$(MKDIR_P)' 4484 4485# We need awk for the "check" target (and possibly the TAP driver). The 4486# system "awk" is bad on some platforms. 4487# Always define AMTAR for backward compatibility. Yes, it's still used 4488# in the wild :-( We should find a proper way to deprecate it ... 4489AMTAR='$${TAR-tar}' 4490 4491 4492# We'll loop over all known methods to create a tar archive until one works. 4493_am_tools='gnutar pax cpio none' 4494 4495am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4496 4497 4498 4499 4500 4501# Variables for tags utilities; see am/tags.am 4502if test -z "$CTAGS"; then 4503 CTAGS=ctags 4504fi 4505 4506if test -z "$ETAGS"; then 4507 ETAGS=etags 4508fi 4509 4510if test -z "$CSCOPE"; then 4511 CSCOPE=cscope 4512fi 4513 4514 4515 4516# POSIX will say in a future version that running "rm -f" with no argument 4517# is OK; and we want to be able to make that assumption in our Makefile 4518# recipes. So use an aggressive probe to check that the usage we want is 4519# actually supported "in the wild" to an acceptable degree. 4520# See automake bug#10828. 4521# To make any issue more visible, cause the running configure to be aborted 4522# by default if the 'rm' program in use doesn't match our expectations; the 4523# user can still override this though. 4524if rm -f && rm -fr && rm -rf; then : OK; else 4525 cat >&2 <<'END' 4526Oops! 4527 4528Your 'rm' program seems unable to run without file operands specified 4529on the command line, even when the '-f' option is present. This is contrary 4530to the behaviour of most rm programs out there, and not conforming with 4531the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4532 4533Please tell bug-automake@gnu.org about your system, including the value 4534of your $PATH and any error possibly output before this message. This 4535can help us improve future automake versions. 4536 4537END 4538 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4539 echo 'Configuration will proceed anyway, since you have set the' >&2 4540 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4541 echo >&2 4542 else 4543 cat >&2 <<'END' 4544Aborting the configuration process, to ensure you take notice of the issue. 4545 4546You can download and install GNU coreutils to get an 'rm' implementation 4547that behaves properly: <https://www.gnu.org/software/coreutils/>. 4548 4549If you want to complete the configuration process using your problematic 4550'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4551to "yes", and re-run configure. 4552 4553END 4554 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4555 fi 4556fi 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567DEPDIR="${am__leading_dot}deps" 4568 4569ac_config_commands="$ac_config_commands depfiles" 4570 4571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4572printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4573cat > confinc.mk << 'END' 4574am__doit: 4575 @echo this is the am__doit target >confinc.out 4576.PHONY: am__doit 4577END 4578am__include="#" 4579am__quote= 4580# BSD make does it like this. 4581echo '.include "confinc.mk" # ignored' > confmf.BSD 4582# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4583echo 'include confinc.mk # ignored' > confmf.GNU 4584_am_result=no 4585for s in GNU BSD; do 4586 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4587 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4588 ac_status=$? 4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4590 (exit $ac_status); } 4591 case $?:`cat confinc.out 2>/dev/null` in #( 4592 '0:this is the am__doit target') : 4593 case $s in #( 4594 BSD) : 4595 am__include='.include' am__quote='"' ;; #( 4596 *) : 4597 am__include='include' am__quote='' ;; 4598esac ;; #( 4599 *) : 4600 ;; 4601esac 4602 if test "$am__include" != "#"; then 4603 _am_result="yes ($s style)" 4604 break 4605 fi 4606done 4607rm -f confinc.* confmf.* 4608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4609printf "%s\n" "${_am_result}" >&6; } 4610 4611# Check whether --enable-dependency-tracking was given. 4612if test ${enable_dependency_tracking+y} 4613then : 4614 enableval=$enable_dependency_tracking; 4615fi 4616 4617if test "x$enable_dependency_tracking" != xno; then 4618 am_depcomp="$ac_aux_dir/depcomp" 4619 AMDEPBACKSLASH='\' 4620 am__nodep='_no' 4621fi 4622 if test "x$enable_dependency_tracking" != xno; then 4623 AMDEP_TRUE= 4624 AMDEP_FALSE='#' 4625else 4626 AMDEP_TRUE='#' 4627 AMDEP_FALSE= 4628fi 4629 4630 4631ac_ext=c 4632ac_cpp='$CPP $CPPFLAGS' 4633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4635ac_compiler_gnu=$ac_cv_c_compiler_gnu 4636if test -n "$ac_tool_prefix"; then 4637 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4638set dummy ${ac_tool_prefix}gcc; ac_word=$2 4639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4640printf %s "checking for $ac_word... " >&6; } 4641if test ${ac_cv_prog_CC+y} 4642then : 4643 printf %s "(cached) " >&6 4644else case e in #( 4645 e) if test -n "$CC"; then 4646 ac_cv_prog_CC="$CC" # Let the user override the test. 4647else 4648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4649for as_dir in $PATH 4650do 4651 IFS=$as_save_IFS 4652 case $as_dir in #((( 4653 '') as_dir=./ ;; 4654 */) ;; 4655 *) as_dir=$as_dir/ ;; 4656 esac 4657 for ac_exec_ext in '' $ac_executable_extensions; do 4658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4659 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4661 break 2 4662 fi 4663done 4664 done 4665IFS=$as_save_IFS 4666 4667fi ;; 4668esac 4669fi 4670CC=$ac_cv_prog_CC 4671if test -n "$CC"; then 4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4673printf "%s\n" "$CC" >&6; } 4674else 4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4676printf "%s\n" "no" >&6; } 4677fi 4678 4679 4680fi 4681if test -z "$ac_cv_prog_CC"; then 4682 ac_ct_CC=$CC 4683 # Extract the first word of "gcc", so it can be a program name with args. 4684set dummy gcc; ac_word=$2 4685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4686printf %s "checking for $ac_word... " >&6; } 4687if test ${ac_cv_prog_ac_ct_CC+y} 4688then : 4689 printf %s "(cached) " >&6 4690else case e in #( 4691 e) if test -n "$ac_ct_CC"; then 4692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4693else 4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4695for as_dir in $PATH 4696do 4697 IFS=$as_save_IFS 4698 case $as_dir in #((( 4699 '') as_dir=./ ;; 4700 */) ;; 4701 *) as_dir=$as_dir/ ;; 4702 esac 4703 for ac_exec_ext in '' $ac_executable_extensions; do 4704 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4705 ac_cv_prog_ac_ct_CC="gcc" 4706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4707 break 2 4708 fi 4709done 4710 done 4711IFS=$as_save_IFS 4712 4713fi ;; 4714esac 4715fi 4716ac_ct_CC=$ac_cv_prog_ac_ct_CC 4717if test -n "$ac_ct_CC"; then 4718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4719printf "%s\n" "$ac_ct_CC" >&6; } 4720else 4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4722printf "%s\n" "no" >&6; } 4723fi 4724 4725 if test "x$ac_ct_CC" = x; then 4726 CC="" 4727 else 4728 case $cross_compiling:$ac_tool_warned in 4729yes:) 4730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4731printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4732ac_tool_warned=yes ;; 4733esac 4734 CC=$ac_ct_CC 4735 fi 4736else 4737 CC="$ac_cv_prog_CC" 4738fi 4739 4740if test -z "$CC"; then 4741 if test -n "$ac_tool_prefix"; then 4742 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4743set dummy ${ac_tool_prefix}cc; ac_word=$2 4744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4745printf %s "checking for $ac_word... " >&6; } 4746if test ${ac_cv_prog_CC+y} 4747then : 4748 printf %s "(cached) " >&6 4749else case e in #( 4750 e) if test -n "$CC"; then 4751 ac_cv_prog_CC="$CC" # Let the user override the test. 4752else 4753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4754for as_dir in $PATH 4755do 4756 IFS=$as_save_IFS 4757 case $as_dir in #((( 4758 '') as_dir=./ ;; 4759 */) ;; 4760 *) as_dir=$as_dir/ ;; 4761 esac 4762 for ac_exec_ext in '' $ac_executable_extensions; do 4763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4764 ac_cv_prog_CC="${ac_tool_prefix}cc" 4765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4766 break 2 4767 fi 4768done 4769 done 4770IFS=$as_save_IFS 4771 4772fi ;; 4773esac 4774fi 4775CC=$ac_cv_prog_CC 4776if test -n "$CC"; then 4777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4778printf "%s\n" "$CC" >&6; } 4779else 4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4781printf "%s\n" "no" >&6; } 4782fi 4783 4784 4785 fi 4786fi 4787if test -z "$CC"; then 4788 # Extract the first word of "cc", so it can be a program name with args. 4789set dummy cc; ac_word=$2 4790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4791printf %s "checking for $ac_word... " >&6; } 4792if test ${ac_cv_prog_CC+y} 4793then : 4794 printf %s "(cached) " >&6 4795else case e in #( 4796 e) if test -n "$CC"; then 4797 ac_cv_prog_CC="$CC" # Let the user override the test. 4798else 4799 ac_prog_rejected=no 4800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4801for as_dir in $PATH 4802do 4803 IFS=$as_save_IFS 4804 case $as_dir in #((( 4805 '') as_dir=./ ;; 4806 */) ;; 4807 *) as_dir=$as_dir/ ;; 4808 esac 4809 for ac_exec_ext in '' $ac_executable_extensions; do 4810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4811 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4812 ac_prog_rejected=yes 4813 continue 4814 fi 4815 ac_cv_prog_CC="cc" 4816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4817 break 2 4818 fi 4819done 4820 done 4821IFS=$as_save_IFS 4822 4823if test $ac_prog_rejected = yes; then 4824 # We found a bogon in the path, so make sure we never use it. 4825 set dummy $ac_cv_prog_CC 4826 shift 4827 if test $# != 0; then 4828 # We chose a different compiler from the bogus one. 4829 # However, it has the same basename, so the bogon will be chosen 4830 # first if we set CC to just the basename; use the full file name. 4831 shift 4832 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4833 fi 4834fi 4835fi ;; 4836esac 4837fi 4838CC=$ac_cv_prog_CC 4839if test -n "$CC"; then 4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4841printf "%s\n" "$CC" >&6; } 4842else 4843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4844printf "%s\n" "no" >&6; } 4845fi 4846 4847 4848fi 4849if test -z "$CC"; then 4850 if test -n "$ac_tool_prefix"; then 4851 for ac_prog in cl.exe 4852 do 4853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4854set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4856printf %s "checking for $ac_word... " >&6; } 4857if test ${ac_cv_prog_CC+y} 4858then : 4859 printf %s "(cached) " >&6 4860else case e in #( 4861 e) if test -n "$CC"; then 4862 ac_cv_prog_CC="$CC" # Let the user override the test. 4863else 4864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4865for as_dir in $PATH 4866do 4867 IFS=$as_save_IFS 4868 case $as_dir in #((( 4869 '') as_dir=./ ;; 4870 */) ;; 4871 *) as_dir=$as_dir/ ;; 4872 esac 4873 for ac_exec_ext in '' $ac_executable_extensions; do 4874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4875 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4877 break 2 4878 fi 4879done 4880 done 4881IFS=$as_save_IFS 4882 4883fi ;; 4884esac 4885fi 4886CC=$ac_cv_prog_CC 4887if test -n "$CC"; then 4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4889printf "%s\n" "$CC" >&6; } 4890else 4891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4892printf "%s\n" "no" >&6; } 4893fi 4894 4895 4896 test -n "$CC" && break 4897 done 4898fi 4899if test -z "$CC"; then 4900 ac_ct_CC=$CC 4901 for ac_prog in cl.exe 4902do 4903 # Extract the first word of "$ac_prog", so it can be a program name with args. 4904set dummy $ac_prog; ac_word=$2 4905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4906printf %s "checking for $ac_word... " >&6; } 4907if test ${ac_cv_prog_ac_ct_CC+y} 4908then : 4909 printf %s "(cached) " >&6 4910else case e in #( 4911 e) if test -n "$ac_ct_CC"; then 4912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4913else 4914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4915for as_dir in $PATH 4916do 4917 IFS=$as_save_IFS 4918 case $as_dir in #((( 4919 '') as_dir=./ ;; 4920 */) ;; 4921 *) as_dir=$as_dir/ ;; 4922 esac 4923 for ac_exec_ext in '' $ac_executable_extensions; do 4924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4925 ac_cv_prog_ac_ct_CC="$ac_prog" 4926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4927 break 2 4928 fi 4929done 4930 done 4931IFS=$as_save_IFS 4932 4933fi ;; 4934esac 4935fi 4936ac_ct_CC=$ac_cv_prog_ac_ct_CC 4937if test -n "$ac_ct_CC"; then 4938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4939printf "%s\n" "$ac_ct_CC" >&6; } 4940else 4941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4942printf "%s\n" "no" >&6; } 4943fi 4944 4945 4946 test -n "$ac_ct_CC" && break 4947done 4948 4949 if test "x$ac_ct_CC" = x; then 4950 CC="" 4951 else 4952 case $cross_compiling:$ac_tool_warned in 4953yes:) 4954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4955printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4956ac_tool_warned=yes ;; 4957esac 4958 CC=$ac_ct_CC 4959 fi 4960fi 4961 4962fi 4963if test -z "$CC"; then 4964 if test -n "$ac_tool_prefix"; then 4965 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4966set dummy ${ac_tool_prefix}clang; ac_word=$2 4967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4968printf %s "checking for $ac_word... " >&6; } 4969if test ${ac_cv_prog_CC+y} 4970then : 4971 printf %s "(cached) " >&6 4972else case e in #( 4973 e) if test -n "$CC"; then 4974 ac_cv_prog_CC="$CC" # Let the user override the test. 4975else 4976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4977for as_dir in $PATH 4978do 4979 IFS=$as_save_IFS 4980 case $as_dir in #((( 4981 '') as_dir=./ ;; 4982 */) ;; 4983 *) as_dir=$as_dir/ ;; 4984 esac 4985 for ac_exec_ext in '' $ac_executable_extensions; do 4986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4987 ac_cv_prog_CC="${ac_tool_prefix}clang" 4988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4989 break 2 4990 fi 4991done 4992 done 4993IFS=$as_save_IFS 4994 4995fi ;; 4996esac 4997fi 4998CC=$ac_cv_prog_CC 4999if test -n "$CC"; then 5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5001printf "%s\n" "$CC" >&6; } 5002else 5003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5004printf "%s\n" "no" >&6; } 5005fi 5006 5007 5008fi 5009if test -z "$ac_cv_prog_CC"; then 5010 ac_ct_CC=$CC 5011 # Extract the first word of "clang", so it can be a program name with args. 5012set dummy clang; ac_word=$2 5013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5014printf %s "checking for $ac_word... " >&6; } 5015if test ${ac_cv_prog_ac_ct_CC+y} 5016then : 5017 printf %s "(cached) " >&6 5018else case e in #( 5019 e) if test -n "$ac_ct_CC"; then 5020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5021else 5022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5023for as_dir in $PATH 5024do 5025 IFS=$as_save_IFS 5026 case $as_dir in #((( 5027 '') as_dir=./ ;; 5028 */) ;; 5029 *) as_dir=$as_dir/ ;; 5030 esac 5031 for ac_exec_ext in '' $ac_executable_extensions; do 5032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5033 ac_cv_prog_ac_ct_CC="clang" 5034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5035 break 2 5036 fi 5037done 5038 done 5039IFS=$as_save_IFS 5040 5041fi ;; 5042esac 5043fi 5044ac_ct_CC=$ac_cv_prog_ac_ct_CC 5045if test -n "$ac_ct_CC"; then 5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5047printf "%s\n" "$ac_ct_CC" >&6; } 5048else 5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5050printf "%s\n" "no" >&6; } 5051fi 5052 5053 if test "x$ac_ct_CC" = x; then 5054 CC="" 5055 else 5056 case $cross_compiling:$ac_tool_warned in 5057yes:) 5058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5059printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5060ac_tool_warned=yes ;; 5061esac 5062 CC=$ac_ct_CC 5063 fi 5064else 5065 CC="$ac_cv_prog_CC" 5066fi 5067 5068fi 5069 5070 5071test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5072printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5073as_fn_error $? "no acceptable C compiler found in \$PATH 5074See 'config.log' for more details" "$LINENO" 5; } 5075 5076# Provide some information about the compiler. 5077printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5078set X $ac_compile 5079ac_compiler=$2 5080for ac_option in --version -v -V -qversion -version; do 5081 { { ac_try="$ac_compiler $ac_option >&5" 5082case "(($ac_try" in 5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5084 *) ac_try_echo=$ac_try;; 5085esac 5086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5087printf "%s\n" "$ac_try_echo"; } >&5 5088 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5089 ac_status=$? 5090 if test -s conftest.err; then 5091 sed '10a\ 5092... rest of stderr output deleted ... 5093 10q' conftest.err >conftest.er1 5094 cat conftest.er1 >&5 5095 fi 5096 rm -f conftest.er1 conftest.err 5097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5098 test $ac_status = 0; } 5099done 5100 5101cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5102/* end confdefs.h. */ 5103 5104int 5105main (void) 5106{ 5107 5108 ; 5109 return 0; 5110} 5111_ACEOF 5112ac_clean_files_save=$ac_clean_files 5113ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 5114# Try to create an executable without -o first, disregard a.out. 5115# It will help us diagnose broken compilers, and finding out an intuition 5116# of exeext. 5117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 5118printf %s "checking whether the C compiler works... " >&6; } 5119ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 5120 5121# The possible output files: 5122ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 5123 5124ac_rmfiles= 5125for ac_file in $ac_files 5126do 5127 case $ac_file in 5128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5129 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 5130 esac 5131done 5132rm -f $ac_rmfiles 5133 5134if { { ac_try="$ac_link_default" 5135case "(($ac_try" in 5136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5137 *) ac_try_echo=$ac_try;; 5138esac 5139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5140printf "%s\n" "$ac_try_echo"; } >&5 5141 (eval "$ac_link_default") 2>&5 5142 ac_status=$? 5143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5144 test $ac_status = 0; } 5145then : 5146 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 5147# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 5148# in a Makefile. We should not override ac_cv_exeext if it was cached, 5149# so that the user can short-circuit this test for compilers unknown to 5150# Autoconf. 5151for ac_file in $ac_files '' 5152do 5153 test -f "$ac_file" || continue 5154 case $ac_file in 5155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 5156 ;; 5157 [ab].out ) 5158 # We found the default executable, but exeext='' is most 5159 # certainly right. 5160 break;; 5161 *.* ) 5162 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 5163 then :; else 5164 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5165 fi 5166 # We set ac_cv_exeext here because the later test for it is not 5167 # safe: cross compilers may not add the suffix if given an '-o' 5168 # argument, so we may need to know it at that point already. 5169 # Even if this section looks crufty: it has the advantage of 5170 # actually working. 5171 break;; 5172 * ) 5173 break;; 5174 esac 5175done 5176test "$ac_cv_exeext" = no && ac_cv_exeext= 5177 5178else case e in #( 5179 e) ac_file='' ;; 5180esac 5181fi 5182if test -z "$ac_file" 5183then : 5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5185printf "%s\n" "no" >&6; } 5186printf "%s\n" "$as_me: failed program was:" >&5 5187sed 's/^/| /' conftest.$ac_ext >&5 5188 5189{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5190printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5191as_fn_error 77 "C compiler cannot create executables 5192See 'config.log' for more details" "$LINENO" 5; } 5193else case e in #( 5194 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5195printf "%s\n" "yes" >&6; } ;; 5196esac 5197fi 5198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5199printf %s "checking for C compiler default output file name... " >&6; } 5200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5201printf "%s\n" "$ac_file" >&6; } 5202ac_exeext=$ac_cv_exeext 5203 5204rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 5205ac_clean_files=$ac_clean_files_save 5206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 5207printf %s "checking for suffix of executables... " >&6; } 5208if { { ac_try="$ac_link" 5209case "(($ac_try" in 5210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5211 *) ac_try_echo=$ac_try;; 5212esac 5213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5214printf "%s\n" "$ac_try_echo"; } >&5 5215 (eval "$ac_link") 2>&5 5216 ac_status=$? 5217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5218 test $ac_status = 0; } 5219then : 5220 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 5221# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 5222# work properly (i.e., refer to 'conftest.exe'), while it won't with 5223# 'rm'. 5224for ac_file in conftest.exe conftest conftest.*; do 5225 test -f "$ac_file" || continue 5226 case $ac_file in 5227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5229 break;; 5230 * ) break;; 5231 esac 5232done 5233else case e in #( 5234 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5235printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5236as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5237See 'config.log' for more details" "$LINENO" 5; } ;; 5238esac 5239fi 5240rm -f conftest conftest$ac_cv_exeext 5241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 5242printf "%s\n" "$ac_cv_exeext" >&6; } 5243 5244rm -f conftest.$ac_ext 5245EXEEXT=$ac_cv_exeext 5246ac_exeext=$EXEEXT 5247cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5248/* end confdefs.h. */ 5249#include <stdio.h> 5250int 5251main (void) 5252{ 5253FILE *f = fopen ("conftest.out", "w"); 5254 if (!f) 5255 return 1; 5256 return ferror (f) || fclose (f) != 0; 5257 5258 ; 5259 return 0; 5260} 5261_ACEOF 5262ac_clean_files="$ac_clean_files conftest.out" 5263# Check that the compiler produces executables we can run. If not, either 5264# the compiler is broken, or we cross compile. 5265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5266printf %s "checking whether we are cross compiling... " >&6; } 5267if test "$cross_compiling" != yes; then 5268 { { ac_try="$ac_link" 5269case "(($ac_try" in 5270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5271 *) ac_try_echo=$ac_try;; 5272esac 5273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5274printf "%s\n" "$ac_try_echo"; } >&5 5275 (eval "$ac_link") 2>&5 5276 ac_status=$? 5277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5278 test $ac_status = 0; } 5279 if { ac_try='./conftest$ac_cv_exeext' 5280 { { case "(($ac_try" in 5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5282 *) ac_try_echo=$ac_try;; 5283esac 5284eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5285printf "%s\n" "$ac_try_echo"; } >&5 5286 (eval "$ac_try") 2>&5 5287 ac_status=$? 5288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5289 test $ac_status = 0; }; }; then 5290 cross_compiling=no 5291 else 5292 if test "$cross_compiling" = maybe; then 5293 cross_compiling=yes 5294 else 5295 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5296printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5297as_fn_error 77 "cannot run C compiled programs. 5298If you meant to cross compile, use '--host'. 5299See 'config.log' for more details" "$LINENO" 5; } 5300 fi 5301 fi 5302fi 5303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 5304printf "%s\n" "$cross_compiling" >&6; } 5305 5306rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 5307 conftest.o conftest.obj conftest.out 5308ac_clean_files=$ac_clean_files_save 5309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5310printf %s "checking for suffix of object files... " >&6; } 5311if test ${ac_cv_objext+y} 5312then : 5313 printf %s "(cached) " >&6 5314else case e in #( 5315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5316/* end confdefs.h. */ 5317 5318int 5319main (void) 5320{ 5321 5322 ; 5323 return 0; 5324} 5325_ACEOF 5326rm -f conftest.o conftest.obj 5327if { { ac_try="$ac_compile" 5328case "(($ac_try" in 5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5330 *) ac_try_echo=$ac_try;; 5331esac 5332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5333printf "%s\n" "$ac_try_echo"; } >&5 5334 (eval "$ac_compile") 2>&5 5335 ac_status=$? 5336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5337 test $ac_status = 0; } 5338then : 5339 for ac_file in conftest.o conftest.obj conftest.*; do 5340 test -f "$ac_file" || continue; 5341 case $ac_file in 5342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5343 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5344 break;; 5345 esac 5346done 5347else case e in #( 5348 e) printf "%s\n" "$as_me: failed program was:" >&5 5349sed 's/^/| /' conftest.$ac_ext >&5 5350 5351{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5352printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5353as_fn_error $? "cannot compute suffix of object files: cannot compile 5354See 'config.log' for more details" "$LINENO" 5; } ;; 5355esac 5356fi 5357rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 5358esac 5359fi 5360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5361printf "%s\n" "$ac_cv_objext" >&6; } 5362OBJEXT=$ac_cv_objext 5363ac_objext=$OBJEXT 5364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5365printf %s "checking whether the compiler supports GNU C... " >&6; } 5366if test ${ac_cv_c_compiler_gnu+y} 5367then : 5368 printf %s "(cached) " >&6 5369else case e in #( 5370 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5371/* end confdefs.h. */ 5372 5373int 5374main (void) 5375{ 5376#ifndef __GNUC__ 5377 choke me 5378#endif 5379 5380 ; 5381 return 0; 5382} 5383_ACEOF 5384if ac_fn_c_try_compile "$LINENO" 5385then : 5386 ac_compiler_gnu=yes 5387else case e in #( 5388 e) ac_compiler_gnu=no ;; 5389esac 5390fi 5391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5392ac_cv_c_compiler_gnu=$ac_compiler_gnu 5393 ;; 5394esac 5395fi 5396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5397printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5398ac_compiler_gnu=$ac_cv_c_compiler_gnu 5399 5400if test $ac_compiler_gnu = yes; then 5401 GCC=yes 5402else 5403 GCC= 5404fi 5405ac_test_CFLAGS=${CFLAGS+y} 5406ac_save_CFLAGS=$CFLAGS 5407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5408printf %s "checking whether $CC accepts -g... " >&6; } 5409if test ${ac_cv_prog_cc_g+y} 5410then : 5411 printf %s "(cached) " >&6 5412else case e in #( 5413 e) ac_save_c_werror_flag=$ac_c_werror_flag 5414 ac_c_werror_flag=yes 5415 ac_cv_prog_cc_g=no 5416 CFLAGS="-g" 5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5418/* end confdefs.h. */ 5419 5420int 5421main (void) 5422{ 5423 5424 ; 5425 return 0; 5426} 5427_ACEOF 5428if ac_fn_c_try_compile "$LINENO" 5429then : 5430 ac_cv_prog_cc_g=yes 5431else case e in #( 5432 e) CFLAGS="" 5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5434/* end confdefs.h. */ 5435 5436int 5437main (void) 5438{ 5439 5440 ; 5441 return 0; 5442} 5443_ACEOF 5444if ac_fn_c_try_compile "$LINENO" 5445then : 5446 5447else case e in #( 5448 e) ac_c_werror_flag=$ac_save_c_werror_flag 5449 CFLAGS="-g" 5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5451/* end confdefs.h. */ 5452 5453int 5454main (void) 5455{ 5456 5457 ; 5458 return 0; 5459} 5460_ACEOF 5461if ac_fn_c_try_compile "$LINENO" 5462then : 5463 ac_cv_prog_cc_g=yes 5464fi 5465rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5466esac 5467fi 5468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5469esac 5470fi 5471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5472 ac_c_werror_flag=$ac_save_c_werror_flag ;; 5473esac 5474fi 5475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5476printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5477if test $ac_test_CFLAGS; then 5478 CFLAGS=$ac_save_CFLAGS 5479elif test $ac_cv_prog_cc_g = yes; then 5480 if test "$GCC" = yes; then 5481 CFLAGS="-g -O2" 5482 else 5483 CFLAGS="-g" 5484 fi 5485else 5486 if test "$GCC" = yes; then 5487 CFLAGS="-O2" 5488 else 5489 CFLAGS= 5490 fi 5491fi 5492ac_prog_cc_stdc=no 5493if test x$ac_prog_cc_stdc = xno 5494then : 5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5496printf %s "checking for $CC option to enable C11 features... " >&6; } 5497if test ${ac_cv_prog_cc_c11+y} 5498then : 5499 printf %s "(cached) " >&6 5500else case e in #( 5501 e) ac_cv_prog_cc_c11=no 5502ac_save_CC=$CC 5503cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5504/* end confdefs.h. */ 5505$ac_c_conftest_c11_program 5506_ACEOF 5507for ac_arg in '' -std=gnu11 5508do 5509 CC="$ac_save_CC $ac_arg" 5510 if ac_fn_c_try_compile "$LINENO" 5511then : 5512 ac_cv_prog_cc_c11=$ac_arg 5513fi 5514rm -f core conftest.err conftest.$ac_objext conftest.beam 5515 test "x$ac_cv_prog_cc_c11" != "xno" && break 5516done 5517rm -f conftest.$ac_ext 5518CC=$ac_save_CC ;; 5519esac 5520fi 5521 5522if test "x$ac_cv_prog_cc_c11" = xno 5523then : 5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5525printf "%s\n" "unsupported" >&6; } 5526else case e in #( 5527 e) if test "x$ac_cv_prog_cc_c11" = x 5528then : 5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5530printf "%s\n" "none needed" >&6; } 5531else case e in #( 5532 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5533printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5534 CC="$CC $ac_cv_prog_cc_c11" ;; 5535esac 5536fi 5537 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5538 ac_prog_cc_stdc=c11 ;; 5539esac 5540fi 5541fi 5542if test x$ac_prog_cc_stdc = xno 5543then : 5544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5545printf %s "checking for $CC option to enable C99 features... " >&6; } 5546if test ${ac_cv_prog_cc_c99+y} 5547then : 5548 printf %s "(cached) " >&6 5549else case e in #( 5550 e) ac_cv_prog_cc_c99=no 5551ac_save_CC=$CC 5552cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5553/* end confdefs.h. */ 5554$ac_c_conftest_c99_program 5555_ACEOF 5556for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5557do 5558 CC="$ac_save_CC $ac_arg" 5559 if ac_fn_c_try_compile "$LINENO" 5560then : 5561 ac_cv_prog_cc_c99=$ac_arg 5562fi 5563rm -f core conftest.err conftest.$ac_objext conftest.beam 5564 test "x$ac_cv_prog_cc_c99" != "xno" && break 5565done 5566rm -f conftest.$ac_ext 5567CC=$ac_save_CC ;; 5568esac 5569fi 5570 5571if test "x$ac_cv_prog_cc_c99" = xno 5572then : 5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5574printf "%s\n" "unsupported" >&6; } 5575else case e in #( 5576 e) if test "x$ac_cv_prog_cc_c99" = x 5577then : 5578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5579printf "%s\n" "none needed" >&6; } 5580else case e in #( 5581 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5582printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5583 CC="$CC $ac_cv_prog_cc_c99" ;; 5584esac 5585fi 5586 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5587 ac_prog_cc_stdc=c99 ;; 5588esac 5589fi 5590fi 5591if test x$ac_prog_cc_stdc = xno 5592then : 5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5594printf %s "checking for $CC option to enable C89 features... " >&6; } 5595if test ${ac_cv_prog_cc_c89+y} 5596then : 5597 printf %s "(cached) " >&6 5598else case e in #( 5599 e) ac_cv_prog_cc_c89=no 5600ac_save_CC=$CC 5601cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5602/* end confdefs.h. */ 5603$ac_c_conftest_c89_program 5604_ACEOF 5605for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5606do 5607 CC="$ac_save_CC $ac_arg" 5608 if ac_fn_c_try_compile "$LINENO" 5609then : 5610 ac_cv_prog_cc_c89=$ac_arg 5611fi 5612rm -f core conftest.err conftest.$ac_objext conftest.beam 5613 test "x$ac_cv_prog_cc_c89" != "xno" && break 5614done 5615rm -f conftest.$ac_ext 5616CC=$ac_save_CC ;; 5617esac 5618fi 5619 5620if test "x$ac_cv_prog_cc_c89" = xno 5621then : 5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5623printf "%s\n" "unsupported" >&6; } 5624else case e in #( 5625 e) if test "x$ac_cv_prog_cc_c89" = x 5626then : 5627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5628printf "%s\n" "none needed" >&6; } 5629else case e in #( 5630 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5631printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5632 CC="$CC $ac_cv_prog_cc_c89" ;; 5633esac 5634fi 5635 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5636 ac_prog_cc_stdc=c89 ;; 5637esac 5638fi 5639fi 5640 5641ac_ext=c 5642ac_cpp='$CPP $CPPFLAGS' 5643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5645ac_compiler_gnu=$ac_cv_c_compiler_gnu 5646 5647 5648 ac_ext=c 5649ac_cpp='$CPP $CPPFLAGS' 5650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5652ac_compiler_gnu=$ac_cv_c_compiler_gnu 5653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5654printf %s "checking whether $CC understands -c and -o together... " >&6; } 5655if test ${am_cv_prog_cc_c_o+y} 5656then : 5657 printf %s "(cached) " >&6 5658else case e in #( 5659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5660/* end confdefs.h. */ 5661 5662int 5663main (void) 5664{ 5665 5666 ; 5667 return 0; 5668} 5669_ACEOF 5670 # Make sure it works both with $CC and with simple cc. 5671 # Following AC_PROG_CC_C_O, we do the test twice because some 5672 # compilers refuse to overwrite an existing .o file with -o, 5673 # though they will create one. 5674 am_cv_prog_cc_c_o=yes 5675 for am_i in 1 2; do 5676 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5677 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5678 ac_status=$? 5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5680 (exit $ac_status); } \ 5681 && test -f conftest2.$ac_objext; then 5682 : OK 5683 else 5684 am_cv_prog_cc_c_o=no 5685 break 5686 fi 5687 done 5688 rm -f core conftest* 5689 unset am_i ;; 5690esac 5691fi 5692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5693printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 5694if test "$am_cv_prog_cc_c_o" != yes; then 5695 # Losing compiler, so override with the script. 5696 # FIXME: It is wrong to rewrite CC. 5697 # But if we don't then we get into trouble of one sort or another. 5698 # A longer-term fix would be to have automake use am__CC in this case, 5699 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5700 CC="$am_aux_dir/compile $CC" 5701fi 5702ac_ext=c 5703ac_cpp='$CPP $CPPFLAGS' 5704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5706ac_compiler_gnu=$ac_cv_c_compiler_gnu 5707 5708 5709depcc="$CC" am_compiler_list= 5710 5711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5712printf %s "checking dependency style of $depcc... " >&6; } 5713if test ${am_cv_CC_dependencies_compiler_type+y} 5714then : 5715 printf %s "(cached) " >&6 5716else case e in #( 5717 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5718 # We make a subdir and do the tests there. Otherwise we can end up 5719 # making bogus files that we don't know about and never remove. For 5720 # instance it was reported that on HP-UX the gcc test will end up 5721 # making a dummy file named 'D' -- because '-MD' means "put the output 5722 # in D". 5723 rm -rf conftest.dir 5724 mkdir conftest.dir 5725 # Copy depcomp to subdir because otherwise we won't find it if we're 5726 # using a relative directory. 5727 cp "$am_depcomp" conftest.dir 5728 cd conftest.dir 5729 # We will build objects and dependencies in a subdirectory because 5730 # it helps to detect inapplicable dependency modes. For instance 5731 # both Tru64's cc and ICC support -MD to output dependencies as a 5732 # side effect of compilation, but ICC will put the dependencies in 5733 # the current directory while Tru64 will put them in the object 5734 # directory. 5735 mkdir sub 5736 5737 am_cv_CC_dependencies_compiler_type=none 5738 if test "$am_compiler_list" = ""; then 5739 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5740 fi 5741 am__universal=false 5742 case " $depcc " in #( 5743 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5744 esac 5745 5746 for depmode in $am_compiler_list; do 5747 # Setup a source with many dependencies, because some compilers 5748 # like to wrap large dependency lists on column 80 (with \), and 5749 # we should not choose a depcomp mode which is confused by this. 5750 # 5751 # We need to recreate these files for each test, as the compiler may 5752 # overwrite some of them when testing with obscure command lines. 5753 # This happens at least with the AIX C compiler. 5754 : > sub/conftest.c 5755 for i in 1 2 3 4 5 6; do 5756 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5757 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5758 # Solaris 10 /bin/sh. 5759 echo '/* dummy */' > sub/conftst$i.h 5760 done 5761 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5762 5763 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5764 # mode. It turns out that the SunPro C++ compiler does not properly 5765 # handle '-M -o', and we need to detect this. Also, some Intel 5766 # versions had trouble with output in subdirs. 5767 am__obj=sub/conftest.${OBJEXT-o} 5768 am__minus_obj="-o $am__obj" 5769 case $depmode in 5770 gcc) 5771 # This depmode causes a compiler race in universal mode. 5772 test "$am__universal" = false || continue 5773 ;; 5774 nosideeffect) 5775 # After this tag, mechanisms are not by side-effect, so they'll 5776 # only be used when explicitly requested. 5777 if test "x$enable_dependency_tracking" = xyes; then 5778 continue 5779 else 5780 break 5781 fi 5782 ;; 5783 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5784 # This compiler won't grok '-c -o', but also, the minuso test has 5785 # not run yet. These depmodes are late enough in the game, and 5786 # so weak that their functioning should not be impacted. 5787 am__obj=conftest.${OBJEXT-o} 5788 am__minus_obj= 5789 ;; 5790 none) break ;; 5791 esac 5792 if depmode=$depmode \ 5793 source=sub/conftest.c object=$am__obj \ 5794 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5795 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5796 >/dev/null 2>conftest.err && 5797 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5798 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5799 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5800 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5801 # icc doesn't choke on unknown options, it will just issue warnings 5802 # or remarks (even with -Werror). So we grep stderr for any message 5803 # that says an option was ignored or not supported. 5804 # When given -MP, icc 7.0 and 7.1 complain thusly: 5805 # icc: Command line warning: ignoring option '-M'; no argument required 5806 # The diagnosis changed in icc 8.0: 5807 # icc: Command line remark: option '-MP' not supported 5808 if (grep 'ignoring option' conftest.err || 5809 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5810 am_cv_CC_dependencies_compiler_type=$depmode 5811 break 5812 fi 5813 fi 5814 done 5815 5816 cd .. 5817 rm -rf conftest.dir 5818else 5819 am_cv_CC_dependencies_compiler_type=none 5820fi 5821 ;; 5822esac 5823fi 5824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5825printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5826CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5827 5828 if 5829 test "x$enable_dependency_tracking" != xno \ 5830 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5831 am__fastdepCC_TRUE= 5832 am__fastdepCC_FALSE='#' 5833else 5834 am__fastdepCC_TRUE='#' 5835 am__fastdepCC_FALSE= 5836fi 5837 5838 5839 5840ac_header= ac_cache= 5841for ac_item in $ac_header_c_list 5842do 5843 if test $ac_cache; then 5844 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5845 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5846 printf "%s\n" "#define $ac_item 1" >> confdefs.h 5847 fi 5848 ac_header= ac_cache= 5849 elif test $ac_header; then 5850 ac_cache=$ac_item 5851 else 5852 ac_header=$ac_item 5853 fi 5854done 5855 5856 5857 5858 5859 5860 5861 5862 5863if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5864then : 5865 5866printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 5867 5868fi 5869 5870 5871 5872 5873 5874 5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5876printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5877if test ${ac_cv_safe_to_define___extensions__+y} 5878then : 5879 printf %s "(cached) " >&6 5880else case e in #( 5881 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5882/* end confdefs.h. */ 5883 5884# define __EXTENSIONS__ 1 5885 $ac_includes_default 5886int 5887main (void) 5888{ 5889 5890 ; 5891 return 0; 5892} 5893_ACEOF 5894if ac_fn_c_try_compile "$LINENO" 5895then : 5896 ac_cv_safe_to_define___extensions__=yes 5897else case e in #( 5898 e) ac_cv_safe_to_define___extensions__=no ;; 5899esac 5900fi 5901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5902esac 5903fi 5904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5905printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 5906 5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5908printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 5909if test ${ac_cv_should_define__xopen_source+y} 5910then : 5911 printf %s "(cached) " >&6 5912else case e in #( 5913 e) ac_cv_should_define__xopen_source=no 5914 if test $ac_cv_header_wchar_h = yes 5915then : 5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5917/* end confdefs.h. */ 5918 5919 #include <wchar.h> 5920 mbstate_t x; 5921int 5922main (void) 5923{ 5924 5925 ; 5926 return 0; 5927} 5928_ACEOF 5929if ac_fn_c_try_compile "$LINENO" 5930then : 5931 5932else case e in #( 5933 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5934/* end confdefs.h. */ 5935 5936 #define _XOPEN_SOURCE 500 5937 #include <wchar.h> 5938 mbstate_t x; 5939int 5940main (void) 5941{ 5942 5943 ; 5944 return 0; 5945} 5946_ACEOF 5947if ac_fn_c_try_compile "$LINENO" 5948then : 5949 ac_cv_should_define__xopen_source=yes 5950fi 5951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5952esac 5953fi 5954rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5955fi ;; 5956esac 5957fi 5958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5959printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 5960 5961 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 5962 5963 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5964 5965 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 5966 5967 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 5968 5969 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 5970 5971 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 5972 5973 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5974 5975 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 5976 5977 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 5978 5979 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 5980 5981 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 5982 5983 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 5984 5985 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 5986 5987 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 5988 5989 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 5990 5991 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 5992 5993 if test $ac_cv_header_minix_config_h = yes 5994then : 5995 MINIX=yes 5996 printf "%s\n" "#define _MINIX 1" >>confdefs.h 5997 5998 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 5999 6000 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 6001 6002else case e in #( 6003 e) MINIX= ;; 6004esac 6005fi 6006 if test $ac_cv_safe_to_define___extensions__ = yes 6007then : 6008 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 6009 6010fi 6011 if test $ac_cv_should_define__xopen_source = yes 6012then : 6013 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 6014 6015fi 6016 6017 6018# Require xorg-macros minimum of 1.14 for XORG_COMPILER_BRAND in XORG_DEFAULT_OPTIONS 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 6031printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 6032if test ${ac_cv_c_undeclared_builtin_options+y} 6033then : 6034 printf %s "(cached) " >&6 6035else case e in #( 6036 e) ac_save_CFLAGS=$CFLAGS 6037 ac_cv_c_undeclared_builtin_options='cannot detect' 6038 for ac_arg in '' -fno-builtin; do 6039 CFLAGS="$ac_save_CFLAGS $ac_arg" 6040 # This test program should *not* compile successfully. 6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6042/* end confdefs.h. */ 6043 6044int 6045main (void) 6046{ 6047(void) strchr; 6048 ; 6049 return 0; 6050} 6051_ACEOF 6052if ac_fn_c_try_compile "$LINENO" 6053then : 6054 6055else case e in #( 6056 e) # This test program should compile successfully. 6057 # No library function is consistently available on 6058 # freestanding implementations, so test against a dummy 6059 # declaration. Include always-available headers on the 6060 # off chance that they somehow elicit warnings. 6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6062/* end confdefs.h. */ 6063#include <float.h> 6064#include <limits.h> 6065#include <stdarg.h> 6066#include <stddef.h> 6067extern void ac_decl (int, char *); 6068 6069int 6070main (void) 6071{ 6072(void) ac_decl (0, (char *) 0); 6073 (void) ac_decl; 6074 6075 ; 6076 return 0; 6077} 6078_ACEOF 6079if ac_fn_c_try_compile "$LINENO" 6080then : 6081 if test x"$ac_arg" = x 6082then : 6083 ac_cv_c_undeclared_builtin_options='none needed' 6084else case e in #( 6085 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 6086esac 6087fi 6088 break 6089fi 6090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6091esac 6092fi 6093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6094 done 6095 CFLAGS=$ac_save_CFLAGS 6096 ;; 6097esac 6098fi 6099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 6100printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 6101 case $ac_cv_c_undeclared_builtin_options in #( 6102 'cannot detect') : 6103 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 6104printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 6105as_fn_error $? "cannot make $CC report undeclared builtins 6106See 'config.log' for more details" "$LINENO" 5; } ;; #( 6107 'none needed') : 6108 ac_c_undeclared_builtin_options='' ;; #( 6109 *) : 6110 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 6111esac 6112 6113 6114 6115 6116 6117ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 6118if test "x$ac_cv_have_decl___clang__" = xyes 6119then : 6120 CLANGCC="yes" 6121else case e in #( 6122 e) CLANGCC="no" ;; 6123esac 6124fi 6125ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 6126if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 6127then : 6128 INTELCC="yes" 6129else case e in #( 6130 e) INTELCC="no" ;; 6131esac 6132fi 6133ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 6134if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 6135then : 6136 SUNCC="yes" 6137else case e in #( 6138 e) SUNCC="no" ;; 6139esac 6140fi 6141 6142 6143 6144 6145 6146 6147 6148 6149if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 6150 if test -n "$ac_tool_prefix"; then 6151 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 6152set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 6153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6154printf %s "checking for $ac_word... " >&6; } 6155if test ${ac_cv_path_PKG_CONFIG+y} 6156then : 6157 printf %s "(cached) " >&6 6158else case e in #( 6159 e) case $PKG_CONFIG in 6160 [\\/]* | ?:[\\/]*) 6161 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6162 ;; 6163 *) 6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6165for as_dir in $PATH 6166do 6167 IFS=$as_save_IFS 6168 case $as_dir in #((( 6169 '') as_dir=./ ;; 6170 */) ;; 6171 *) as_dir=$as_dir/ ;; 6172 esac 6173 for ac_exec_ext in '' $ac_executable_extensions; do 6174 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6175 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 6176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6177 break 2 6178 fi 6179done 6180 done 6181IFS=$as_save_IFS 6182 6183 ;; 6184esac ;; 6185esac 6186fi 6187PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6188if test -n "$PKG_CONFIG"; then 6189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6190printf "%s\n" "$PKG_CONFIG" >&6; } 6191else 6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6193printf "%s\n" "no" >&6; } 6194fi 6195 6196 6197fi 6198if test -z "$ac_cv_path_PKG_CONFIG"; then 6199 ac_pt_PKG_CONFIG=$PKG_CONFIG 6200 # Extract the first word of "pkg-config", so it can be a program name with args. 6201set dummy pkg-config; ac_word=$2 6202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6203printf %s "checking for $ac_word... " >&6; } 6204if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 6205then : 6206 printf %s "(cached) " >&6 6207else case e in #( 6208 e) case $ac_pt_PKG_CONFIG in 6209 [\\/]* | ?:[\\/]*) 6210 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 6211 ;; 6212 *) 6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6214for as_dir in $PATH 6215do 6216 IFS=$as_save_IFS 6217 case $as_dir in #((( 6218 '') as_dir=./ ;; 6219 */) ;; 6220 *) as_dir=$as_dir/ ;; 6221 esac 6222 for ac_exec_ext in '' $ac_executable_extensions; do 6223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6224 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 6225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6226 break 2 6227 fi 6228done 6229 done 6230IFS=$as_save_IFS 6231 6232 ;; 6233esac ;; 6234esac 6235fi 6236ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 6237if test -n "$ac_pt_PKG_CONFIG"; then 6238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 6239printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 6240else 6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6242printf "%s\n" "no" >&6; } 6243fi 6244 6245 if test "x$ac_pt_PKG_CONFIG" = x; then 6246 PKG_CONFIG="" 6247 else 6248 case $cross_compiling:$ac_tool_warned in 6249yes:) 6250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6251printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6252ac_tool_warned=yes ;; 6253esac 6254 PKG_CONFIG=$ac_pt_PKG_CONFIG 6255 fi 6256else 6257 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 6258fi 6259 6260fi 6261if test -n "$PKG_CONFIG"; then 6262 _pkg_min_version=0.9.0 6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 6264printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 6265 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6267printf "%s\n" "yes" >&6; } 6268 else 6269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6270printf "%s\n" "no" >&6; } 6271 PKG_CONFIG="" 6272 fi 6273fi 6274if test -z "$PKG_CONFIG"; then 6275 as_fn_error $? "pkg-config not found" "$LINENO" 5 6276fi 6277 6278 6279 # Make sure we can run config.sub. 6280$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 6281 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 6282 6283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6284printf %s "checking build system type... " >&6; } 6285if test ${ac_cv_build+y} 6286then : 6287 printf %s "(cached) " >&6 6288else case e in #( 6289 e) ac_build_alias=$build_alias 6290test "x$ac_build_alias" = x && 6291 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 6292test "x$ac_build_alias" = x && 6293 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6294ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 6295 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 6296 ;; 6297esac 6298fi 6299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6300printf "%s\n" "$ac_cv_build" >&6; } 6301case $ac_cv_build in 6302*-*-*) ;; 6303*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6304esac 6305build=$ac_cv_build 6306ac_save_IFS=$IFS; IFS='-' 6307set x $ac_cv_build 6308shift 6309build_cpu=$1 6310build_vendor=$2 6311shift; shift 6312# Remember, the first character of IFS is used to create $*, 6313# except with old shells: 6314build_os=$* 6315IFS=$ac_save_IFS 6316case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6317 6318 6319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6320printf %s "checking host system type... " >&6; } 6321if test ${ac_cv_host+y} 6322then : 6323 printf %s "(cached) " >&6 6324else case e in #( 6325 e) if test "x$host_alias" = x; then 6326 ac_cv_host=$ac_cv_build 6327else 6328 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 6329 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 6330fi 6331 ;; 6332esac 6333fi 6334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6335printf "%s\n" "$ac_cv_host" >&6; } 6336case $ac_cv_host in 6337*-*-*) ;; 6338*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6339esac 6340host=$ac_cv_host 6341ac_save_IFS=$IFS; IFS='-' 6342set x $ac_cv_host 6343shift 6344host_cpu=$1 6345host_vendor=$2 6346shift; shift 6347# Remember, the first character of IFS is used to create $*, 6348# except with old shells: 6349host_os=$* 6350IFS=$ac_save_IFS 6351case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6352 6353 6354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6355printf %s "checking for a sed that does not truncate output... " >&6; } 6356if test ${ac_cv_path_SED+y} 6357then : 6358 printf %s "(cached) " >&6 6359else case e in #( 6360 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6361 for ac_i in 1 2 3 4 5 6 7; do 6362 ac_script="$ac_script$as_nl$ac_script" 6363 done 6364 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6365 { ac_script=; unset ac_script;} 6366 if test -z "$SED"; then 6367 ac_path_SED_found=false 6368 # Loop through the user's path and test for each of PROGNAME-LIST 6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6370for as_dir in $PATH 6371do 6372 IFS=$as_save_IFS 6373 case $as_dir in #((( 6374 '') as_dir=./ ;; 6375 */) ;; 6376 *) as_dir=$as_dir/ ;; 6377 esac 6378 for ac_prog in sed gsed 6379 do 6380 for ac_exec_ext in '' $ac_executable_extensions; do 6381 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 6382 as_fn_executable_p "$ac_path_SED" || continue 6383# Check for GNU ac_path_SED and select it if it is found. 6384 # Check for GNU $ac_path_SED 6385case `"$ac_path_SED" --version 2>&1` in #( 6386*GNU*) 6387 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6388#( 6389*) 6390 ac_count=0 6391 printf %s 0123456789 >"conftest.in" 6392 while : 6393 do 6394 cat "conftest.in" "conftest.in" >"conftest.tmp" 6395 mv "conftest.tmp" "conftest.in" 6396 cp "conftest.in" "conftest.nl" 6397 printf "%s\n" '' >> "conftest.nl" 6398 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6399 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6400 as_fn_arith $ac_count + 1 && ac_count=$as_val 6401 if test $ac_count -gt ${ac_path_SED_max-0}; then 6402 # Best one so far, save it but keep looking for a better one 6403 ac_cv_path_SED="$ac_path_SED" 6404 ac_path_SED_max=$ac_count 6405 fi 6406 # 10*(2^10) chars as input seems more than enough 6407 test $ac_count -gt 10 && break 6408 done 6409 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6410esac 6411 6412 $ac_path_SED_found && break 3 6413 done 6414 done 6415 done 6416IFS=$as_save_IFS 6417 if test -z "$ac_cv_path_SED"; then 6418 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6419 fi 6420else 6421 ac_cv_path_SED=$SED 6422fi 6423 ;; 6424esac 6425fi 6426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6427printf "%s\n" "$ac_cv_path_SED" >&6; } 6428 SED="$ac_cv_path_SED" 6429 rm -f conftest.sed 6430 6431 6432 6433 6434 6435 6436# Check whether --enable-selective-werror was given. 6437if test ${enable_selective_werror+y} 6438then : 6439 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 6440else case e in #( 6441 e) SELECTIVE_WERROR=yes ;; 6442esac 6443fi 6444 6445 6446 6447 6448 6449# -v is too short to test reliably with XORG_TESTSET_CFLAG 6450if test "x$SUNCC" = "xyes"; then 6451 BASE_CFLAGS="-v" 6452else 6453 BASE_CFLAGS="" 6454fi 6455 6456# This chunk of warnings were those that existed in the legacy CWARNFLAGS 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470xorg_testset_save_CFLAGS="$CFLAGS" 6471 6472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6475printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6476if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6477then : 6478 printf %s "(cached) " >&6 6479else case e in #( 6480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6481/* end confdefs.h. */ 6482int i; 6483_ACEOF 6484if ac_fn_c_try_compile "$LINENO" 6485then : 6486 xorg_cv_cc_flag_unknown_warning_option=yes 6487else case e in #( 6488 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6489esac 6490fi 6491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6492esac 6493fi 6494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6495printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6496 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6497 CFLAGS="$xorg_testset_save_CFLAGS" 6498fi 6499 6500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6503 fi 6504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6506printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6507if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6508then : 6509 printf %s "(cached) " >&6 6510else case e in #( 6511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6512/* end confdefs.h. */ 6513int i; 6514_ACEOF 6515if ac_fn_c_try_compile "$LINENO" 6516then : 6517 xorg_cv_cc_flag_unused_command_line_argument=yes 6518else case e in #( 6519 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6520esac 6521fi 6522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6523esac 6524fi 6525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6526printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6528 CFLAGS="$xorg_testset_save_CFLAGS" 6529fi 6530 6531found="no" 6532 6533 if test $found = "no" ; then 6534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6536 fi 6537 6538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6540 fi 6541 6542 CFLAGS="$CFLAGS -Wall" 6543 6544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 6545printf %s "checking if $CC supports -Wall... " >&6; } 6546 cacheid=xorg_cv_cc_flag__Wall 6547 if eval test \${$cacheid+y} 6548then : 6549 printf %s "(cached) " >&6 6550else case e in #( 6551 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6552/* end confdefs.h. */ 6553int i; 6554int 6555main (void) 6556{ 6557 6558 ; 6559 return 0; 6560} 6561_ACEOF 6562if ac_fn_c_try_link "$LINENO" 6563then : 6564 eval $cacheid=yes 6565else case e in #( 6566 e) eval $cacheid=no ;; 6567esac 6568fi 6569rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6570 conftest$ac_exeext conftest.$ac_ext ;; 6571esac 6572fi 6573 6574 6575 CFLAGS="$xorg_testset_save_CFLAGS" 6576 6577 eval supported=\$$cacheid 6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6579printf "%s\n" "$supported" >&6; } 6580 if test "$supported" = "yes" ; then 6581 BASE_CFLAGS="$BASE_CFLAGS -Wall" 6582 found="yes" 6583 fi 6584 fi 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600xorg_testset_save_CFLAGS="$CFLAGS" 6601 6602if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6605printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6606if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6607then : 6608 printf %s "(cached) " >&6 6609else case e in #( 6610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6611/* end confdefs.h. */ 6612int i; 6613_ACEOF 6614if ac_fn_c_try_compile "$LINENO" 6615then : 6616 xorg_cv_cc_flag_unknown_warning_option=yes 6617else case e in #( 6618 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6619esac 6620fi 6621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6622esac 6623fi 6624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6625printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6627 CFLAGS="$xorg_testset_save_CFLAGS" 6628fi 6629 6630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6633 fi 6634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6636printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6637if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6638then : 6639 printf %s "(cached) " >&6 6640else case e in #( 6641 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6642/* end confdefs.h. */ 6643int i; 6644_ACEOF 6645if ac_fn_c_try_compile "$LINENO" 6646then : 6647 xorg_cv_cc_flag_unused_command_line_argument=yes 6648else case e in #( 6649 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6650esac 6651fi 6652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6653esac 6654fi 6655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6656printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6658 CFLAGS="$xorg_testset_save_CFLAGS" 6659fi 6660 6661found="no" 6662 6663 if test $found = "no" ; then 6664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6666 fi 6667 6668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6670 fi 6671 6672 CFLAGS="$CFLAGS -Wpointer-arith" 6673 6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 6675printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 6676 cacheid=xorg_cv_cc_flag__Wpointer_arith 6677 if eval test \${$cacheid+y} 6678then : 6679 printf %s "(cached) " >&6 6680else case e in #( 6681 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6682/* end confdefs.h. */ 6683int i; 6684int 6685main (void) 6686{ 6687 6688 ; 6689 return 0; 6690} 6691_ACEOF 6692if ac_fn_c_try_link "$LINENO" 6693then : 6694 eval $cacheid=yes 6695else case e in #( 6696 e) eval $cacheid=no ;; 6697esac 6698fi 6699rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6700 conftest$ac_exeext conftest.$ac_ext ;; 6701esac 6702fi 6703 6704 6705 CFLAGS="$xorg_testset_save_CFLAGS" 6706 6707 eval supported=\$$cacheid 6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6709printf "%s\n" "$supported" >&6; } 6710 if test "$supported" = "yes" ; then 6711 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 6712 found="yes" 6713 fi 6714 fi 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730xorg_testset_save_CFLAGS="$CFLAGS" 6731 6732if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6735printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6736if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6737then : 6738 printf %s "(cached) " >&6 6739else case e in #( 6740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6741/* end confdefs.h. */ 6742int i; 6743_ACEOF 6744if ac_fn_c_try_compile "$LINENO" 6745then : 6746 xorg_cv_cc_flag_unknown_warning_option=yes 6747else case e in #( 6748 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6749esac 6750fi 6751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6752esac 6753fi 6754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6755printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6757 CFLAGS="$xorg_testset_save_CFLAGS" 6758fi 6759 6760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6763 fi 6764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6766printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6767if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6768then : 6769 printf %s "(cached) " >&6 6770else case e in #( 6771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6772/* end confdefs.h. */ 6773int i; 6774_ACEOF 6775if ac_fn_c_try_compile "$LINENO" 6776then : 6777 xorg_cv_cc_flag_unused_command_line_argument=yes 6778else case e in #( 6779 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6780esac 6781fi 6782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6783esac 6784fi 6785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6786printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6788 CFLAGS="$xorg_testset_save_CFLAGS" 6789fi 6790 6791found="no" 6792 6793 if test $found = "no" ; then 6794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6796 fi 6797 6798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6800 fi 6801 6802 CFLAGS="$CFLAGS -Wmissing-declarations" 6803 6804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 6805printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 6806 cacheid=xorg_cv_cc_flag__Wmissing_declarations 6807 if eval test \${$cacheid+y} 6808then : 6809 printf %s "(cached) " >&6 6810else case e in #( 6811 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6812/* end confdefs.h. */ 6813int i; 6814int 6815main (void) 6816{ 6817 6818 ; 6819 return 0; 6820} 6821_ACEOF 6822if ac_fn_c_try_link "$LINENO" 6823then : 6824 eval $cacheid=yes 6825else case e in #( 6826 e) eval $cacheid=no ;; 6827esac 6828fi 6829rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6830 conftest$ac_exeext conftest.$ac_ext ;; 6831esac 6832fi 6833 6834 6835 CFLAGS="$xorg_testset_save_CFLAGS" 6836 6837 eval supported=\$$cacheid 6838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6839printf "%s\n" "$supported" >&6; } 6840 if test "$supported" = "yes" ; then 6841 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 6842 found="yes" 6843 fi 6844 fi 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860xorg_testset_save_CFLAGS="$CFLAGS" 6861 6862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6865printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6866if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6867then : 6868 printf %s "(cached) " >&6 6869else case e in #( 6870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6871/* end confdefs.h. */ 6872int i; 6873_ACEOF 6874if ac_fn_c_try_compile "$LINENO" 6875then : 6876 xorg_cv_cc_flag_unknown_warning_option=yes 6877else case e in #( 6878 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6879esac 6880fi 6881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6882esac 6883fi 6884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6885printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6887 CFLAGS="$xorg_testset_save_CFLAGS" 6888fi 6889 6890if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6893 fi 6894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6896printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6897if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6898then : 6899 printf %s "(cached) " >&6 6900else case e in #( 6901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6902/* end confdefs.h. */ 6903int i; 6904_ACEOF 6905if ac_fn_c_try_compile "$LINENO" 6906then : 6907 xorg_cv_cc_flag_unused_command_line_argument=yes 6908else case e in #( 6909 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6910esac 6911fi 6912rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6913esac 6914fi 6915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6916printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6918 CFLAGS="$xorg_testset_save_CFLAGS" 6919fi 6920 6921found="no" 6922 6923 if test $found = "no" ; then 6924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6926 fi 6927 6928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6930 fi 6931 6932 CFLAGS="$CFLAGS -Wformat=2" 6933 6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 6935printf %s "checking if $CC supports -Wformat=2... " >&6; } 6936 cacheid=xorg_cv_cc_flag__Wformat_2 6937 if eval test \${$cacheid+y} 6938then : 6939 printf %s "(cached) " >&6 6940else case e in #( 6941 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6942/* end confdefs.h. */ 6943int i; 6944int 6945main (void) 6946{ 6947 6948 ; 6949 return 0; 6950} 6951_ACEOF 6952if ac_fn_c_try_link "$LINENO" 6953then : 6954 eval $cacheid=yes 6955else case e in #( 6956 e) eval $cacheid=no ;; 6957esac 6958fi 6959rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6960 conftest$ac_exeext conftest.$ac_ext ;; 6961esac 6962fi 6963 6964 6965 CFLAGS="$xorg_testset_save_CFLAGS" 6966 6967 eval supported=\$$cacheid 6968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6969printf "%s\n" "$supported" >&6; } 6970 if test "$supported" = "yes" ; then 6971 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 6972 found="yes" 6973 fi 6974 fi 6975 6976 if test $found = "no" ; then 6977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6979 fi 6980 6981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6983 fi 6984 6985 CFLAGS="$CFLAGS -Wformat" 6986 6987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 6988printf %s "checking if $CC supports -Wformat... " >&6; } 6989 cacheid=xorg_cv_cc_flag__Wformat 6990 if eval test \${$cacheid+y} 6991then : 6992 printf %s "(cached) " >&6 6993else case e in #( 6994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6995/* end confdefs.h. */ 6996int i; 6997int 6998main (void) 6999{ 7000 7001 ; 7002 return 0; 7003} 7004_ACEOF 7005if ac_fn_c_try_link "$LINENO" 7006then : 7007 eval $cacheid=yes 7008else case e in #( 7009 e) eval $cacheid=no ;; 7010esac 7011fi 7012rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7013 conftest$ac_exeext conftest.$ac_ext ;; 7014esac 7015fi 7016 7017 7018 CFLAGS="$xorg_testset_save_CFLAGS" 7019 7020 eval supported=\$$cacheid 7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7022printf "%s\n" "$supported" >&6; } 7023 if test "$supported" = "yes" ; then 7024 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 7025 found="yes" 7026 fi 7027 fi 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045xorg_testset_save_CFLAGS="$CFLAGS" 7046 7047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7050printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7051if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7052then : 7053 printf %s "(cached) " >&6 7054else case e in #( 7055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7056/* end confdefs.h. */ 7057int i; 7058_ACEOF 7059if ac_fn_c_try_compile "$LINENO" 7060then : 7061 xorg_cv_cc_flag_unknown_warning_option=yes 7062else case e in #( 7063 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7064esac 7065fi 7066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7067esac 7068fi 7069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7070printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7072 CFLAGS="$xorg_testset_save_CFLAGS" 7073fi 7074 7075if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7078 fi 7079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7081printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7082if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7083then : 7084 printf %s "(cached) " >&6 7085else case e in #( 7086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7087/* end confdefs.h. */ 7088int i; 7089_ACEOF 7090if ac_fn_c_try_compile "$LINENO" 7091then : 7092 xorg_cv_cc_flag_unused_command_line_argument=yes 7093else case e in #( 7094 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7095esac 7096fi 7097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7098esac 7099fi 7100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7101printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7103 CFLAGS="$xorg_testset_save_CFLAGS" 7104fi 7105 7106found="no" 7107 7108 if test $found = "no" ; then 7109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7111 fi 7112 7113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7115 fi 7116 7117 CFLAGS="$CFLAGS -Wstrict-prototypes" 7118 7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 7120printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 7121 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 7122 if eval test \${$cacheid+y} 7123then : 7124 printf %s "(cached) " >&6 7125else case e in #( 7126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7127/* end confdefs.h. */ 7128int i; 7129int 7130main (void) 7131{ 7132 7133 ; 7134 return 0; 7135} 7136_ACEOF 7137if ac_fn_c_try_link "$LINENO" 7138then : 7139 eval $cacheid=yes 7140else case e in #( 7141 e) eval $cacheid=no ;; 7142esac 7143fi 7144rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7145 conftest$ac_exeext conftest.$ac_ext ;; 7146esac 7147fi 7148 7149 7150 CFLAGS="$xorg_testset_save_CFLAGS" 7151 7152 eval supported=\$$cacheid 7153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7154printf "%s\n" "$supported" >&6; } 7155 if test "$supported" = "yes" ; then 7156 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 7157 found="yes" 7158 fi 7159 fi 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175xorg_testset_save_CFLAGS="$CFLAGS" 7176 7177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7180printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7181if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7182then : 7183 printf %s "(cached) " >&6 7184else case e in #( 7185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7186/* end confdefs.h. */ 7187int i; 7188_ACEOF 7189if ac_fn_c_try_compile "$LINENO" 7190then : 7191 xorg_cv_cc_flag_unknown_warning_option=yes 7192else case e in #( 7193 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7194esac 7195fi 7196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7197esac 7198fi 7199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7200printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7202 CFLAGS="$xorg_testset_save_CFLAGS" 7203fi 7204 7205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7208 fi 7209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7211printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7212if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7213then : 7214 printf %s "(cached) " >&6 7215else case e in #( 7216 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7217/* end confdefs.h. */ 7218int i; 7219_ACEOF 7220if ac_fn_c_try_compile "$LINENO" 7221then : 7222 xorg_cv_cc_flag_unused_command_line_argument=yes 7223else case e in #( 7224 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7225esac 7226fi 7227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7228esac 7229fi 7230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7231printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7233 CFLAGS="$xorg_testset_save_CFLAGS" 7234fi 7235 7236found="no" 7237 7238 if test $found = "no" ; then 7239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7241 fi 7242 7243 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7245 fi 7246 7247 CFLAGS="$CFLAGS -Wmissing-prototypes" 7248 7249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 7250printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 7251 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 7252 if eval test \${$cacheid+y} 7253then : 7254 printf %s "(cached) " >&6 7255else case e in #( 7256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7257/* end confdefs.h. */ 7258int i; 7259int 7260main (void) 7261{ 7262 7263 ; 7264 return 0; 7265} 7266_ACEOF 7267if ac_fn_c_try_link "$LINENO" 7268then : 7269 eval $cacheid=yes 7270else case e in #( 7271 e) eval $cacheid=no ;; 7272esac 7273fi 7274rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7275 conftest$ac_exeext conftest.$ac_ext ;; 7276esac 7277fi 7278 7279 7280 CFLAGS="$xorg_testset_save_CFLAGS" 7281 7282 eval supported=\$$cacheid 7283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7284printf "%s\n" "$supported" >&6; } 7285 if test "$supported" = "yes" ; then 7286 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 7287 found="yes" 7288 fi 7289 fi 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305xorg_testset_save_CFLAGS="$CFLAGS" 7306 7307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7310printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7311if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7312then : 7313 printf %s "(cached) " >&6 7314else case e in #( 7315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7316/* end confdefs.h. */ 7317int i; 7318_ACEOF 7319if ac_fn_c_try_compile "$LINENO" 7320then : 7321 xorg_cv_cc_flag_unknown_warning_option=yes 7322else case e in #( 7323 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7324esac 7325fi 7326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7327esac 7328fi 7329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7330printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7332 CFLAGS="$xorg_testset_save_CFLAGS" 7333fi 7334 7335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7338 fi 7339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7341printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7342if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7343then : 7344 printf %s "(cached) " >&6 7345else case e in #( 7346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7347/* end confdefs.h. */ 7348int i; 7349_ACEOF 7350if ac_fn_c_try_compile "$LINENO" 7351then : 7352 xorg_cv_cc_flag_unused_command_line_argument=yes 7353else case e in #( 7354 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7355esac 7356fi 7357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7358esac 7359fi 7360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7361printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7363 CFLAGS="$xorg_testset_save_CFLAGS" 7364fi 7365 7366found="no" 7367 7368 if test $found = "no" ; then 7369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7371 fi 7372 7373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7375 fi 7376 7377 CFLAGS="$CFLAGS -Wnested-externs" 7378 7379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 7380printf %s "checking if $CC supports -Wnested-externs... " >&6; } 7381 cacheid=xorg_cv_cc_flag__Wnested_externs 7382 if eval test \${$cacheid+y} 7383then : 7384 printf %s "(cached) " >&6 7385else case e in #( 7386 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7387/* end confdefs.h. */ 7388int i; 7389int 7390main (void) 7391{ 7392 7393 ; 7394 return 0; 7395} 7396_ACEOF 7397if ac_fn_c_try_link "$LINENO" 7398then : 7399 eval $cacheid=yes 7400else case e in #( 7401 e) eval $cacheid=no ;; 7402esac 7403fi 7404rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7405 conftest$ac_exeext conftest.$ac_ext ;; 7406esac 7407fi 7408 7409 7410 CFLAGS="$xorg_testset_save_CFLAGS" 7411 7412 eval supported=\$$cacheid 7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7414printf "%s\n" "$supported" >&6; } 7415 if test "$supported" = "yes" ; then 7416 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 7417 found="yes" 7418 fi 7419 fi 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435xorg_testset_save_CFLAGS="$CFLAGS" 7436 7437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7440printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7441if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7442then : 7443 printf %s "(cached) " >&6 7444else case e in #( 7445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7446/* end confdefs.h. */ 7447int i; 7448_ACEOF 7449if ac_fn_c_try_compile "$LINENO" 7450then : 7451 xorg_cv_cc_flag_unknown_warning_option=yes 7452else case e in #( 7453 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7454esac 7455fi 7456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7457esac 7458fi 7459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7460printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7462 CFLAGS="$xorg_testset_save_CFLAGS" 7463fi 7464 7465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7468 fi 7469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7471printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7472if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7473then : 7474 printf %s "(cached) " >&6 7475else case e in #( 7476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7477/* end confdefs.h. */ 7478int i; 7479_ACEOF 7480if ac_fn_c_try_compile "$LINENO" 7481then : 7482 xorg_cv_cc_flag_unused_command_line_argument=yes 7483else case e in #( 7484 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7485esac 7486fi 7487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7488esac 7489fi 7490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7491printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7493 CFLAGS="$xorg_testset_save_CFLAGS" 7494fi 7495 7496found="no" 7497 7498 if test $found = "no" ; then 7499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7501 fi 7502 7503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7505 fi 7506 7507 CFLAGS="$CFLAGS -Wbad-function-cast" 7508 7509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 7510printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 7511 cacheid=xorg_cv_cc_flag__Wbad_function_cast 7512 if eval test \${$cacheid+y} 7513then : 7514 printf %s "(cached) " >&6 7515else case e in #( 7516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7517/* end confdefs.h. */ 7518int i; 7519int 7520main (void) 7521{ 7522 7523 ; 7524 return 0; 7525} 7526_ACEOF 7527if ac_fn_c_try_link "$LINENO" 7528then : 7529 eval $cacheid=yes 7530else case e in #( 7531 e) eval $cacheid=no ;; 7532esac 7533fi 7534rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7535 conftest$ac_exeext conftest.$ac_ext ;; 7536esac 7537fi 7538 7539 7540 CFLAGS="$xorg_testset_save_CFLAGS" 7541 7542 eval supported=\$$cacheid 7543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7544printf "%s\n" "$supported" >&6; } 7545 if test "$supported" = "yes" ; then 7546 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 7547 found="yes" 7548 fi 7549 fi 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565xorg_testset_save_CFLAGS="$CFLAGS" 7566 7567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7570printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7571if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7572then : 7573 printf %s "(cached) " >&6 7574else case e in #( 7575 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7576/* end confdefs.h. */ 7577int i; 7578_ACEOF 7579if ac_fn_c_try_compile "$LINENO" 7580then : 7581 xorg_cv_cc_flag_unknown_warning_option=yes 7582else case e in #( 7583 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7584esac 7585fi 7586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7587esac 7588fi 7589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7590printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7592 CFLAGS="$xorg_testset_save_CFLAGS" 7593fi 7594 7595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7598 fi 7599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7601printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7602if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7603then : 7604 printf %s "(cached) " >&6 7605else case e in #( 7606 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7607/* end confdefs.h. */ 7608int i; 7609_ACEOF 7610if ac_fn_c_try_compile "$LINENO" 7611then : 7612 xorg_cv_cc_flag_unused_command_line_argument=yes 7613else case e in #( 7614 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7615esac 7616fi 7617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7618esac 7619fi 7620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7621printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7623 CFLAGS="$xorg_testset_save_CFLAGS" 7624fi 7625 7626found="no" 7627 7628 if test $found = "no" ; then 7629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7631 fi 7632 7633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7635 fi 7636 7637 CFLAGS="$CFLAGS -Wold-style-definition" 7638 7639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 7640printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 7641 cacheid=xorg_cv_cc_flag__Wold_style_definition 7642 if eval test \${$cacheid+y} 7643then : 7644 printf %s "(cached) " >&6 7645else case e in #( 7646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7647/* end confdefs.h. */ 7648int i; 7649int 7650main (void) 7651{ 7652 7653 ; 7654 return 0; 7655} 7656_ACEOF 7657if ac_fn_c_try_link "$LINENO" 7658then : 7659 eval $cacheid=yes 7660else case e in #( 7661 e) eval $cacheid=no ;; 7662esac 7663fi 7664rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7665 conftest$ac_exeext conftest.$ac_ext ;; 7666esac 7667fi 7668 7669 7670 CFLAGS="$xorg_testset_save_CFLAGS" 7671 7672 eval supported=\$$cacheid 7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7674printf "%s\n" "$supported" >&6; } 7675 if test "$supported" = "yes" ; then 7676 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 7677 found="yes" 7678 fi 7679 fi 7680 7681 if test $found = "no" ; then 7682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7684 fi 7685 7686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7688 fi 7689 7690 CFLAGS="$CFLAGS -fd" 7691 7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 7693printf %s "checking if $CC supports -fd... " >&6; } 7694 cacheid=xorg_cv_cc_flag__fd 7695 if eval test \${$cacheid+y} 7696then : 7697 printf %s "(cached) " >&6 7698else case e in #( 7699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7700/* end confdefs.h. */ 7701int i; 7702int 7703main (void) 7704{ 7705 7706 ; 7707 return 0; 7708} 7709_ACEOF 7710if ac_fn_c_try_link "$LINENO" 7711then : 7712 eval $cacheid=yes 7713else case e in #( 7714 e) eval $cacheid=no ;; 7715esac 7716fi 7717rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7718 conftest$ac_exeext conftest.$ac_ext ;; 7719esac 7720fi 7721 7722 7723 CFLAGS="$xorg_testset_save_CFLAGS" 7724 7725 eval supported=\$$cacheid 7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7727printf "%s\n" "$supported" >&6; } 7728 if test "$supported" = "yes" ; then 7729 BASE_CFLAGS="$BASE_CFLAGS -fd" 7730 found="yes" 7731 fi 7732 fi 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748xorg_testset_save_CFLAGS="$CFLAGS" 7749 7750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7753printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7754if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7755then : 7756 printf %s "(cached) " >&6 7757else case e in #( 7758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7759/* end confdefs.h. */ 7760int i; 7761_ACEOF 7762if ac_fn_c_try_compile "$LINENO" 7763then : 7764 xorg_cv_cc_flag_unknown_warning_option=yes 7765else case e in #( 7766 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7767esac 7768fi 7769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7770esac 7771fi 7772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7773printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7775 CFLAGS="$xorg_testset_save_CFLAGS" 7776fi 7777 7778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7781 fi 7782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7784printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7785if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7786then : 7787 printf %s "(cached) " >&6 7788else case e in #( 7789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7790/* end confdefs.h. */ 7791int i; 7792_ACEOF 7793if ac_fn_c_try_compile "$LINENO" 7794then : 7795 xorg_cv_cc_flag_unused_command_line_argument=yes 7796else case e in #( 7797 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7798esac 7799fi 7800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7801esac 7802fi 7803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7804printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7806 CFLAGS="$xorg_testset_save_CFLAGS" 7807fi 7808 7809found="no" 7810 7811 if test $found = "no" ; then 7812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7814 fi 7815 7816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7818 fi 7819 7820 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 7821 7822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 7823printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 7824 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 7825 if eval test \${$cacheid+y} 7826then : 7827 printf %s "(cached) " >&6 7828else case e in #( 7829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7830/* end confdefs.h. */ 7831int i; 7832int 7833main (void) 7834{ 7835 7836 ; 7837 return 0; 7838} 7839_ACEOF 7840if ac_fn_c_try_link "$LINENO" 7841then : 7842 eval $cacheid=yes 7843else case e in #( 7844 e) eval $cacheid=no ;; 7845esac 7846fi 7847rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7848 conftest$ac_exeext conftest.$ac_ext ;; 7849esac 7850fi 7851 7852 7853 CFLAGS="$xorg_testset_save_CFLAGS" 7854 7855 eval supported=\$$cacheid 7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7857printf "%s\n" "$supported" >&6; } 7858 if test "$supported" = "yes" ; then 7859 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 7860 found="yes" 7861 fi 7862 fi 7863 7864 7865 7866 7867 7868# This chunk adds additional warnings that could catch undesired effects. 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882xorg_testset_save_CFLAGS="$CFLAGS" 7883 7884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7887printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7888if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7889then : 7890 printf %s "(cached) " >&6 7891else case e in #( 7892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7893/* end confdefs.h. */ 7894int i; 7895_ACEOF 7896if ac_fn_c_try_compile "$LINENO" 7897then : 7898 xorg_cv_cc_flag_unknown_warning_option=yes 7899else case e in #( 7900 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7901esac 7902fi 7903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7904esac 7905fi 7906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7907printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7909 CFLAGS="$xorg_testset_save_CFLAGS" 7910fi 7911 7912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7915 fi 7916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7918printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7919if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7920then : 7921 printf %s "(cached) " >&6 7922else case e in #( 7923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7924/* end confdefs.h. */ 7925int i; 7926_ACEOF 7927if ac_fn_c_try_compile "$LINENO" 7928then : 7929 xorg_cv_cc_flag_unused_command_line_argument=yes 7930else case e in #( 7931 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7932esac 7933fi 7934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7935esac 7936fi 7937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7938printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7940 CFLAGS="$xorg_testset_save_CFLAGS" 7941fi 7942 7943found="no" 7944 7945 if test $found = "no" ; then 7946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7948 fi 7949 7950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7952 fi 7953 7954 CFLAGS="$CFLAGS -Wunused" 7955 7956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 7957printf %s "checking if $CC supports -Wunused... " >&6; } 7958 cacheid=xorg_cv_cc_flag__Wunused 7959 if eval test \${$cacheid+y} 7960then : 7961 printf %s "(cached) " >&6 7962else case e in #( 7963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7964/* end confdefs.h. */ 7965int i; 7966int 7967main (void) 7968{ 7969 7970 ; 7971 return 0; 7972} 7973_ACEOF 7974if ac_fn_c_try_link "$LINENO" 7975then : 7976 eval $cacheid=yes 7977else case e in #( 7978 e) eval $cacheid=no ;; 7979esac 7980fi 7981rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7982 conftest$ac_exeext conftest.$ac_ext ;; 7983esac 7984fi 7985 7986 7987 CFLAGS="$xorg_testset_save_CFLAGS" 7988 7989 eval supported=\$$cacheid 7990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7991printf "%s\n" "$supported" >&6; } 7992 if test "$supported" = "yes" ; then 7993 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 7994 found="yes" 7995 fi 7996 fi 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012xorg_testset_save_CFLAGS="$CFLAGS" 8013 8014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8017printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8018if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8019then : 8020 printf %s "(cached) " >&6 8021else case e in #( 8022 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8023/* end confdefs.h. */ 8024int i; 8025_ACEOF 8026if ac_fn_c_try_compile "$LINENO" 8027then : 8028 xorg_cv_cc_flag_unknown_warning_option=yes 8029else case e in #( 8030 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8031esac 8032fi 8033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8034esac 8035fi 8036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8037printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8039 CFLAGS="$xorg_testset_save_CFLAGS" 8040fi 8041 8042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8045 fi 8046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8048printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8049if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8050then : 8051 printf %s "(cached) " >&6 8052else case e in #( 8053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8054/* end confdefs.h. */ 8055int i; 8056_ACEOF 8057if ac_fn_c_try_compile "$LINENO" 8058then : 8059 xorg_cv_cc_flag_unused_command_line_argument=yes 8060else case e in #( 8061 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8062esac 8063fi 8064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8065esac 8066fi 8067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8068printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8070 CFLAGS="$xorg_testset_save_CFLAGS" 8071fi 8072 8073found="no" 8074 8075 if test $found = "no" ; then 8076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8078 fi 8079 8080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8082 fi 8083 8084 CFLAGS="$CFLAGS -Wuninitialized" 8085 8086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 8087printf %s "checking if $CC supports -Wuninitialized... " >&6; } 8088 cacheid=xorg_cv_cc_flag__Wuninitialized 8089 if eval test \${$cacheid+y} 8090then : 8091 printf %s "(cached) " >&6 8092else case e in #( 8093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8094/* end confdefs.h. */ 8095int i; 8096int 8097main (void) 8098{ 8099 8100 ; 8101 return 0; 8102} 8103_ACEOF 8104if ac_fn_c_try_link "$LINENO" 8105then : 8106 eval $cacheid=yes 8107else case e in #( 8108 e) eval $cacheid=no ;; 8109esac 8110fi 8111rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8112 conftest$ac_exeext conftest.$ac_ext ;; 8113esac 8114fi 8115 8116 8117 CFLAGS="$xorg_testset_save_CFLAGS" 8118 8119 eval supported=\$$cacheid 8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8121printf "%s\n" "$supported" >&6; } 8122 if test "$supported" = "yes" ; then 8123 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 8124 found="yes" 8125 fi 8126 fi 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142xorg_testset_save_CFLAGS="$CFLAGS" 8143 8144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8147printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8148if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8149then : 8150 printf %s "(cached) " >&6 8151else case e in #( 8152 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8153/* end confdefs.h. */ 8154int i; 8155_ACEOF 8156if ac_fn_c_try_compile "$LINENO" 8157then : 8158 xorg_cv_cc_flag_unknown_warning_option=yes 8159else case e in #( 8160 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8161esac 8162fi 8163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8164esac 8165fi 8166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8167printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8169 CFLAGS="$xorg_testset_save_CFLAGS" 8170fi 8171 8172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8175 fi 8176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8178printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8179if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8180then : 8181 printf %s "(cached) " >&6 8182else case e in #( 8183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8184/* end confdefs.h. */ 8185int i; 8186_ACEOF 8187if ac_fn_c_try_compile "$LINENO" 8188then : 8189 xorg_cv_cc_flag_unused_command_line_argument=yes 8190else case e in #( 8191 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8192esac 8193fi 8194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8195esac 8196fi 8197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8198printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8200 CFLAGS="$xorg_testset_save_CFLAGS" 8201fi 8202 8203found="no" 8204 8205 if test $found = "no" ; then 8206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8208 fi 8209 8210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8212 fi 8213 8214 CFLAGS="$CFLAGS -Wshadow" 8215 8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 8217printf %s "checking if $CC supports -Wshadow... " >&6; } 8218 cacheid=xorg_cv_cc_flag__Wshadow 8219 if eval test \${$cacheid+y} 8220then : 8221 printf %s "(cached) " >&6 8222else case e in #( 8223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8224/* end confdefs.h. */ 8225int i; 8226int 8227main (void) 8228{ 8229 8230 ; 8231 return 0; 8232} 8233_ACEOF 8234if ac_fn_c_try_link "$LINENO" 8235then : 8236 eval $cacheid=yes 8237else case e in #( 8238 e) eval $cacheid=no ;; 8239esac 8240fi 8241rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8242 conftest$ac_exeext conftest.$ac_ext ;; 8243esac 8244fi 8245 8246 8247 CFLAGS="$xorg_testset_save_CFLAGS" 8248 8249 eval supported=\$$cacheid 8250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8251printf "%s\n" "$supported" >&6; } 8252 if test "$supported" = "yes" ; then 8253 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 8254 found="yes" 8255 fi 8256 fi 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272xorg_testset_save_CFLAGS="$CFLAGS" 8273 8274if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8277printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8278if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8279then : 8280 printf %s "(cached) " >&6 8281else case e in #( 8282 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8283/* end confdefs.h. */ 8284int i; 8285_ACEOF 8286if ac_fn_c_try_compile "$LINENO" 8287then : 8288 xorg_cv_cc_flag_unknown_warning_option=yes 8289else case e in #( 8290 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8291esac 8292fi 8293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8294esac 8295fi 8296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8297printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8299 CFLAGS="$xorg_testset_save_CFLAGS" 8300fi 8301 8302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8305 fi 8306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8308printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8309if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8310then : 8311 printf %s "(cached) " >&6 8312else case e in #( 8313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8314/* end confdefs.h. */ 8315int i; 8316_ACEOF 8317if ac_fn_c_try_compile "$LINENO" 8318then : 8319 xorg_cv_cc_flag_unused_command_line_argument=yes 8320else case e in #( 8321 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8322esac 8323fi 8324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8325esac 8326fi 8327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8328printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8329 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8330 CFLAGS="$xorg_testset_save_CFLAGS" 8331fi 8332 8333found="no" 8334 8335 if test $found = "no" ; then 8336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8338 fi 8339 8340 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8342 fi 8343 8344 CFLAGS="$CFLAGS -Wmissing-noreturn" 8345 8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 8347printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 8348 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 8349 if eval test \${$cacheid+y} 8350then : 8351 printf %s "(cached) " >&6 8352else case e in #( 8353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8354/* end confdefs.h. */ 8355int i; 8356int 8357main (void) 8358{ 8359 8360 ; 8361 return 0; 8362} 8363_ACEOF 8364if ac_fn_c_try_link "$LINENO" 8365then : 8366 eval $cacheid=yes 8367else case e in #( 8368 e) eval $cacheid=no ;; 8369esac 8370fi 8371rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8372 conftest$ac_exeext conftest.$ac_ext ;; 8373esac 8374fi 8375 8376 8377 CFLAGS="$xorg_testset_save_CFLAGS" 8378 8379 eval supported=\$$cacheid 8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8381printf "%s\n" "$supported" >&6; } 8382 if test "$supported" = "yes" ; then 8383 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 8384 found="yes" 8385 fi 8386 fi 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402xorg_testset_save_CFLAGS="$CFLAGS" 8403 8404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8407printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8408if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8409then : 8410 printf %s "(cached) " >&6 8411else case e in #( 8412 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8413/* end confdefs.h. */ 8414int i; 8415_ACEOF 8416if ac_fn_c_try_compile "$LINENO" 8417then : 8418 xorg_cv_cc_flag_unknown_warning_option=yes 8419else case e in #( 8420 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8421esac 8422fi 8423rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8424esac 8425fi 8426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8427printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8429 CFLAGS="$xorg_testset_save_CFLAGS" 8430fi 8431 8432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8435 fi 8436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8438printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8439if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8440then : 8441 printf %s "(cached) " >&6 8442else case e in #( 8443 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8444/* end confdefs.h. */ 8445int i; 8446_ACEOF 8447if ac_fn_c_try_compile "$LINENO" 8448then : 8449 xorg_cv_cc_flag_unused_command_line_argument=yes 8450else case e in #( 8451 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8452esac 8453fi 8454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8455esac 8456fi 8457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8458printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8460 CFLAGS="$xorg_testset_save_CFLAGS" 8461fi 8462 8463found="no" 8464 8465 if test $found = "no" ; then 8466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8468 fi 8469 8470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8472 fi 8473 8474 CFLAGS="$CFLAGS -Wmissing-format-attribute" 8475 8476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 8477printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 8478 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 8479 if eval test \${$cacheid+y} 8480then : 8481 printf %s "(cached) " >&6 8482else case e in #( 8483 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8484/* end confdefs.h. */ 8485int i; 8486int 8487main (void) 8488{ 8489 8490 ; 8491 return 0; 8492} 8493_ACEOF 8494if ac_fn_c_try_link "$LINENO" 8495then : 8496 eval $cacheid=yes 8497else case e in #( 8498 e) eval $cacheid=no ;; 8499esac 8500fi 8501rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8502 conftest$ac_exeext conftest.$ac_ext ;; 8503esac 8504fi 8505 8506 8507 CFLAGS="$xorg_testset_save_CFLAGS" 8508 8509 eval supported=\$$cacheid 8510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8511printf "%s\n" "$supported" >&6; } 8512 if test "$supported" = "yes" ; then 8513 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 8514 found="yes" 8515 fi 8516 fi 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532xorg_testset_save_CFLAGS="$CFLAGS" 8533 8534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8537printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8538if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8539then : 8540 printf %s "(cached) " >&6 8541else case e in #( 8542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8543/* end confdefs.h. */ 8544int i; 8545_ACEOF 8546if ac_fn_c_try_compile "$LINENO" 8547then : 8548 xorg_cv_cc_flag_unknown_warning_option=yes 8549else case e in #( 8550 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8551esac 8552fi 8553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8554esac 8555fi 8556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8557printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8559 CFLAGS="$xorg_testset_save_CFLAGS" 8560fi 8561 8562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8565 fi 8566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8568printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8569if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8570then : 8571 printf %s "(cached) " >&6 8572else case e in #( 8573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8574/* end confdefs.h. */ 8575int i; 8576_ACEOF 8577if ac_fn_c_try_compile "$LINENO" 8578then : 8579 xorg_cv_cc_flag_unused_command_line_argument=yes 8580else case e in #( 8581 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8582esac 8583fi 8584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8585esac 8586fi 8587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8588printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8590 CFLAGS="$xorg_testset_save_CFLAGS" 8591fi 8592 8593found="no" 8594 8595 if test $found = "no" ; then 8596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8598 fi 8599 8600 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8602 fi 8603 8604 CFLAGS="$CFLAGS -Wredundant-decls" 8605 8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 8607printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 8608 cacheid=xorg_cv_cc_flag__Wredundant_decls 8609 if eval test \${$cacheid+y} 8610then : 8611 printf %s "(cached) " >&6 8612else case e in #( 8613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8614/* end confdefs.h. */ 8615int i; 8616int 8617main (void) 8618{ 8619 8620 ; 8621 return 0; 8622} 8623_ACEOF 8624if ac_fn_c_try_link "$LINENO" 8625then : 8626 eval $cacheid=yes 8627else case e in #( 8628 e) eval $cacheid=no ;; 8629esac 8630fi 8631rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8632 conftest$ac_exeext conftest.$ac_ext ;; 8633esac 8634fi 8635 8636 8637 CFLAGS="$xorg_testset_save_CFLAGS" 8638 8639 eval supported=\$$cacheid 8640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8641printf "%s\n" "$supported" >&6; } 8642 if test "$supported" = "yes" ; then 8643 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 8644 found="yes" 8645 fi 8646 fi 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662xorg_testset_save_CFLAGS="$CFLAGS" 8663 8664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8667printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8668if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8669then : 8670 printf %s "(cached) " >&6 8671else case e in #( 8672 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8673/* end confdefs.h. */ 8674int i; 8675_ACEOF 8676if ac_fn_c_try_compile "$LINENO" 8677then : 8678 xorg_cv_cc_flag_unknown_warning_option=yes 8679else case e in #( 8680 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8681esac 8682fi 8683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8684esac 8685fi 8686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8687printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8689 CFLAGS="$xorg_testset_save_CFLAGS" 8690fi 8691 8692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8695 fi 8696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8698printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8699if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8700then : 8701 printf %s "(cached) " >&6 8702else case e in #( 8703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8704/* end confdefs.h. */ 8705int i; 8706_ACEOF 8707if ac_fn_c_try_compile "$LINENO" 8708then : 8709 xorg_cv_cc_flag_unused_command_line_argument=yes 8710else case e in #( 8711 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8712esac 8713fi 8714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8715esac 8716fi 8717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8718printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8720 CFLAGS="$xorg_testset_save_CFLAGS" 8721fi 8722 8723found="no" 8724 8725 if test $found = "no" ; then 8726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8728 fi 8729 8730 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8732 fi 8733 8734 CFLAGS="$CFLAGS -Wlogical-op" 8735 8736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 8737printf %s "checking if $CC supports -Wlogical-op... " >&6; } 8738 cacheid=xorg_cv_cc_flag__Wlogical_op 8739 if eval test \${$cacheid+y} 8740then : 8741 printf %s "(cached) " >&6 8742else case e in #( 8743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8744/* end confdefs.h. */ 8745int i; 8746int 8747main (void) 8748{ 8749 8750 ; 8751 return 0; 8752} 8753_ACEOF 8754if ac_fn_c_try_link "$LINENO" 8755then : 8756 eval $cacheid=yes 8757else case e in #( 8758 e) eval $cacheid=no ;; 8759esac 8760fi 8761rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8762 conftest$ac_exeext conftest.$ac_ext ;; 8763esac 8764fi 8765 8766 8767 CFLAGS="$xorg_testset_save_CFLAGS" 8768 8769 eval supported=\$$cacheid 8770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8771printf "%s\n" "$supported" >&6; } 8772 if test "$supported" = "yes" ; then 8773 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 8774 found="yes" 8775 fi 8776 fi 8777 8778 8779 8780# These are currently disabled because they are noisy. They will be enabled 8781# in the future once the codebase is sufficiently modernized to silence 8782# them. For now, I don't want them to drown out the other warnings. 8783# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 8784# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 8785# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 8786 8787# Turn some warnings into errors, so we don't accidentally get successful builds 8788# when there are problems that should be fixed. 8789 8790if test "x$SELECTIVE_WERROR" = "xyes" ; then 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804xorg_testset_save_CFLAGS="$CFLAGS" 8805 8806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8809printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8810if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8811then : 8812 printf %s "(cached) " >&6 8813else case e in #( 8814 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8815/* end confdefs.h. */ 8816int i; 8817_ACEOF 8818if ac_fn_c_try_compile "$LINENO" 8819then : 8820 xorg_cv_cc_flag_unknown_warning_option=yes 8821else case e in #( 8822 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8823esac 8824fi 8825rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8826esac 8827fi 8828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8829printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8831 CFLAGS="$xorg_testset_save_CFLAGS" 8832fi 8833 8834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8837 fi 8838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8840printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8841if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8842then : 8843 printf %s "(cached) " >&6 8844else case e in #( 8845 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8846/* end confdefs.h. */ 8847int i; 8848_ACEOF 8849if ac_fn_c_try_compile "$LINENO" 8850then : 8851 xorg_cv_cc_flag_unused_command_line_argument=yes 8852else case e in #( 8853 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8854esac 8855fi 8856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8857esac 8858fi 8859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8860printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8862 CFLAGS="$xorg_testset_save_CFLAGS" 8863fi 8864 8865found="no" 8866 8867 if test $found = "no" ; then 8868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8870 fi 8871 8872 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8874 fi 8875 8876 CFLAGS="$CFLAGS -Werror=implicit" 8877 8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 8879printf %s "checking if $CC supports -Werror=implicit... " >&6; } 8880 cacheid=xorg_cv_cc_flag__Werror_implicit 8881 if eval test \${$cacheid+y} 8882then : 8883 printf %s "(cached) " >&6 8884else case e in #( 8885 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8886/* end confdefs.h. */ 8887int i; 8888int 8889main (void) 8890{ 8891 8892 ; 8893 return 0; 8894} 8895_ACEOF 8896if ac_fn_c_try_link "$LINENO" 8897then : 8898 eval $cacheid=yes 8899else case e in #( 8900 e) eval $cacheid=no ;; 8901esac 8902fi 8903rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8904 conftest$ac_exeext conftest.$ac_ext ;; 8905esac 8906fi 8907 8908 8909 CFLAGS="$xorg_testset_save_CFLAGS" 8910 8911 eval supported=\$$cacheid 8912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8913printf "%s\n" "$supported" >&6; } 8914 if test "$supported" = "yes" ; then 8915 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 8916 found="yes" 8917 fi 8918 fi 8919 8920 if test $found = "no" ; then 8921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8923 fi 8924 8925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8927 fi 8928 8929 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 8930 8931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 8932printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 8933 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 8934 if eval test \${$cacheid+y} 8935then : 8936 printf %s "(cached) " >&6 8937else case e in #( 8938 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8939/* end confdefs.h. */ 8940int i; 8941int 8942main (void) 8943{ 8944 8945 ; 8946 return 0; 8947} 8948_ACEOF 8949if ac_fn_c_try_link "$LINENO" 8950then : 8951 eval $cacheid=yes 8952else case e in #( 8953 e) eval $cacheid=no ;; 8954esac 8955fi 8956rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8957 conftest$ac_exeext conftest.$ac_ext ;; 8958esac 8959fi 8960 8961 8962 CFLAGS="$xorg_testset_save_CFLAGS" 8963 8964 eval supported=\$$cacheid 8965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8966printf "%s\n" "$supported" >&6; } 8967 if test "$supported" = "yes" ; then 8968 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 8969 found="yes" 8970 fi 8971 fi 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987xorg_testset_save_CFLAGS="$CFLAGS" 8988 8989if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8992printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8993if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8994then : 8995 printf %s "(cached) " >&6 8996else case e in #( 8997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8998/* end confdefs.h. */ 8999int i; 9000_ACEOF 9001if ac_fn_c_try_compile "$LINENO" 9002then : 9003 xorg_cv_cc_flag_unknown_warning_option=yes 9004else case e in #( 9005 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9006esac 9007fi 9008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9009esac 9010fi 9011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9012printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9013 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9014 CFLAGS="$xorg_testset_save_CFLAGS" 9015fi 9016 9017if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9020 fi 9021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9023printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9024if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9025then : 9026 printf %s "(cached) " >&6 9027else case e in #( 9028 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9029/* end confdefs.h. */ 9030int i; 9031_ACEOF 9032if ac_fn_c_try_compile "$LINENO" 9033then : 9034 xorg_cv_cc_flag_unused_command_line_argument=yes 9035else case e in #( 9036 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9037esac 9038fi 9039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9040esac 9041fi 9042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9043printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9045 CFLAGS="$xorg_testset_save_CFLAGS" 9046fi 9047 9048found="no" 9049 9050 if test $found = "no" ; then 9051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9053 fi 9054 9055 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9057 fi 9058 9059 CFLAGS="$CFLAGS -Werror=nonnull" 9060 9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 9062printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 9063 cacheid=xorg_cv_cc_flag__Werror_nonnull 9064 if eval test \${$cacheid+y} 9065then : 9066 printf %s "(cached) " >&6 9067else case e in #( 9068 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9069/* end confdefs.h. */ 9070int i; 9071int 9072main (void) 9073{ 9074 9075 ; 9076 return 0; 9077} 9078_ACEOF 9079if ac_fn_c_try_link "$LINENO" 9080then : 9081 eval $cacheid=yes 9082else case e in #( 9083 e) eval $cacheid=no ;; 9084esac 9085fi 9086rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9087 conftest$ac_exeext conftest.$ac_ext ;; 9088esac 9089fi 9090 9091 9092 CFLAGS="$xorg_testset_save_CFLAGS" 9093 9094 eval supported=\$$cacheid 9095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9096printf "%s\n" "$supported" >&6; } 9097 if test "$supported" = "yes" ; then 9098 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 9099 found="yes" 9100 fi 9101 fi 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117xorg_testset_save_CFLAGS="$CFLAGS" 9118 9119if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9122printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9123if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9124then : 9125 printf %s "(cached) " >&6 9126else case e in #( 9127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9128/* end confdefs.h. */ 9129int i; 9130_ACEOF 9131if ac_fn_c_try_compile "$LINENO" 9132then : 9133 xorg_cv_cc_flag_unknown_warning_option=yes 9134else case e in #( 9135 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9136esac 9137fi 9138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9139esac 9140fi 9141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9142printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9143 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9144 CFLAGS="$xorg_testset_save_CFLAGS" 9145fi 9146 9147if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9150 fi 9151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9153printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9154if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9155then : 9156 printf %s "(cached) " >&6 9157else case e in #( 9158 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9159/* end confdefs.h. */ 9160int i; 9161_ACEOF 9162if ac_fn_c_try_compile "$LINENO" 9163then : 9164 xorg_cv_cc_flag_unused_command_line_argument=yes 9165else case e in #( 9166 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9167esac 9168fi 9169rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9170esac 9171fi 9172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9173printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9175 CFLAGS="$xorg_testset_save_CFLAGS" 9176fi 9177 9178found="no" 9179 9180 if test $found = "no" ; then 9181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9183 fi 9184 9185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9187 fi 9188 9189 CFLAGS="$CFLAGS -Werror=init-self" 9190 9191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 9192printf %s "checking if $CC supports -Werror=init-self... " >&6; } 9193 cacheid=xorg_cv_cc_flag__Werror_init_self 9194 if eval test \${$cacheid+y} 9195then : 9196 printf %s "(cached) " >&6 9197else case e in #( 9198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9199/* end confdefs.h. */ 9200int i; 9201int 9202main (void) 9203{ 9204 9205 ; 9206 return 0; 9207} 9208_ACEOF 9209if ac_fn_c_try_link "$LINENO" 9210then : 9211 eval $cacheid=yes 9212else case e in #( 9213 e) eval $cacheid=no ;; 9214esac 9215fi 9216rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9217 conftest$ac_exeext conftest.$ac_ext ;; 9218esac 9219fi 9220 9221 9222 CFLAGS="$xorg_testset_save_CFLAGS" 9223 9224 eval supported=\$$cacheid 9225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9226printf "%s\n" "$supported" >&6; } 9227 if test "$supported" = "yes" ; then 9228 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 9229 found="yes" 9230 fi 9231 fi 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247xorg_testset_save_CFLAGS="$CFLAGS" 9248 9249if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9252printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9253if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9254then : 9255 printf %s "(cached) " >&6 9256else case e in #( 9257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9258/* end confdefs.h. */ 9259int i; 9260_ACEOF 9261if ac_fn_c_try_compile "$LINENO" 9262then : 9263 xorg_cv_cc_flag_unknown_warning_option=yes 9264else case e in #( 9265 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9266esac 9267fi 9268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9269esac 9270fi 9271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9272printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9274 CFLAGS="$xorg_testset_save_CFLAGS" 9275fi 9276 9277if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9280 fi 9281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9283printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9284if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9285then : 9286 printf %s "(cached) " >&6 9287else case e in #( 9288 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9289/* end confdefs.h. */ 9290int i; 9291_ACEOF 9292if ac_fn_c_try_compile "$LINENO" 9293then : 9294 xorg_cv_cc_flag_unused_command_line_argument=yes 9295else case e in #( 9296 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9297esac 9298fi 9299rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9300esac 9301fi 9302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9303printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9305 CFLAGS="$xorg_testset_save_CFLAGS" 9306fi 9307 9308found="no" 9309 9310 if test $found = "no" ; then 9311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9313 fi 9314 9315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9317 fi 9318 9319 CFLAGS="$CFLAGS -Werror=main" 9320 9321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 9322printf %s "checking if $CC supports -Werror=main... " >&6; } 9323 cacheid=xorg_cv_cc_flag__Werror_main 9324 if eval test \${$cacheid+y} 9325then : 9326 printf %s "(cached) " >&6 9327else case e in #( 9328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9329/* end confdefs.h. */ 9330int i; 9331int 9332main (void) 9333{ 9334 9335 ; 9336 return 0; 9337} 9338_ACEOF 9339if ac_fn_c_try_link "$LINENO" 9340then : 9341 eval $cacheid=yes 9342else case e in #( 9343 e) eval $cacheid=no ;; 9344esac 9345fi 9346rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9347 conftest$ac_exeext conftest.$ac_ext ;; 9348esac 9349fi 9350 9351 9352 CFLAGS="$xorg_testset_save_CFLAGS" 9353 9354 eval supported=\$$cacheid 9355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9356printf "%s\n" "$supported" >&6; } 9357 if test "$supported" = "yes" ; then 9358 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 9359 found="yes" 9360 fi 9361 fi 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377xorg_testset_save_CFLAGS="$CFLAGS" 9378 9379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9382printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9383if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9384then : 9385 printf %s "(cached) " >&6 9386else case e in #( 9387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9388/* end confdefs.h. */ 9389int i; 9390_ACEOF 9391if ac_fn_c_try_compile "$LINENO" 9392then : 9393 xorg_cv_cc_flag_unknown_warning_option=yes 9394else case e in #( 9395 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9396esac 9397fi 9398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9399esac 9400fi 9401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9402printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9404 CFLAGS="$xorg_testset_save_CFLAGS" 9405fi 9406 9407if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9410 fi 9411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9413printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9414if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9415then : 9416 printf %s "(cached) " >&6 9417else case e in #( 9418 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9419/* end confdefs.h. */ 9420int i; 9421_ACEOF 9422if ac_fn_c_try_compile "$LINENO" 9423then : 9424 xorg_cv_cc_flag_unused_command_line_argument=yes 9425else case e in #( 9426 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9427esac 9428fi 9429rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9430esac 9431fi 9432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9433printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9435 CFLAGS="$xorg_testset_save_CFLAGS" 9436fi 9437 9438found="no" 9439 9440 if test $found = "no" ; then 9441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9443 fi 9444 9445 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9447 fi 9448 9449 CFLAGS="$CFLAGS -Werror=missing-braces" 9450 9451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 9452printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 9453 cacheid=xorg_cv_cc_flag__Werror_missing_braces 9454 if eval test \${$cacheid+y} 9455then : 9456 printf %s "(cached) " >&6 9457else case e in #( 9458 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9459/* end confdefs.h. */ 9460int i; 9461int 9462main (void) 9463{ 9464 9465 ; 9466 return 0; 9467} 9468_ACEOF 9469if ac_fn_c_try_link "$LINENO" 9470then : 9471 eval $cacheid=yes 9472else case e in #( 9473 e) eval $cacheid=no ;; 9474esac 9475fi 9476rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9477 conftest$ac_exeext conftest.$ac_ext ;; 9478esac 9479fi 9480 9481 9482 CFLAGS="$xorg_testset_save_CFLAGS" 9483 9484 eval supported=\$$cacheid 9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9486printf "%s\n" "$supported" >&6; } 9487 if test "$supported" = "yes" ; then 9488 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 9489 found="yes" 9490 fi 9491 fi 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507xorg_testset_save_CFLAGS="$CFLAGS" 9508 9509if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9512printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9513if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9514then : 9515 printf %s "(cached) " >&6 9516else case e in #( 9517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9518/* end confdefs.h. */ 9519int i; 9520_ACEOF 9521if ac_fn_c_try_compile "$LINENO" 9522then : 9523 xorg_cv_cc_flag_unknown_warning_option=yes 9524else case e in #( 9525 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9526esac 9527fi 9528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9529esac 9530fi 9531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9532printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9534 CFLAGS="$xorg_testset_save_CFLAGS" 9535fi 9536 9537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9540 fi 9541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9543printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9544if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9545then : 9546 printf %s "(cached) " >&6 9547else case e in #( 9548 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9549/* end confdefs.h. */ 9550int i; 9551_ACEOF 9552if ac_fn_c_try_compile "$LINENO" 9553then : 9554 xorg_cv_cc_flag_unused_command_line_argument=yes 9555else case e in #( 9556 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9557esac 9558fi 9559rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9560esac 9561fi 9562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9563printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9564 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9565 CFLAGS="$xorg_testset_save_CFLAGS" 9566fi 9567 9568found="no" 9569 9570 if test $found = "no" ; then 9571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9573 fi 9574 9575 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9577 fi 9578 9579 CFLAGS="$CFLAGS -Werror=sequence-point" 9580 9581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 9582printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 9583 cacheid=xorg_cv_cc_flag__Werror_sequence_point 9584 if eval test \${$cacheid+y} 9585then : 9586 printf %s "(cached) " >&6 9587else case e in #( 9588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9589/* end confdefs.h. */ 9590int i; 9591int 9592main (void) 9593{ 9594 9595 ; 9596 return 0; 9597} 9598_ACEOF 9599if ac_fn_c_try_link "$LINENO" 9600then : 9601 eval $cacheid=yes 9602else case e in #( 9603 e) eval $cacheid=no ;; 9604esac 9605fi 9606rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9607 conftest$ac_exeext conftest.$ac_ext ;; 9608esac 9609fi 9610 9611 9612 CFLAGS="$xorg_testset_save_CFLAGS" 9613 9614 eval supported=\$$cacheid 9615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9616printf "%s\n" "$supported" >&6; } 9617 if test "$supported" = "yes" ; then 9618 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 9619 found="yes" 9620 fi 9621 fi 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637xorg_testset_save_CFLAGS="$CFLAGS" 9638 9639if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9642printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9643if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9644then : 9645 printf %s "(cached) " >&6 9646else case e in #( 9647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9648/* end confdefs.h. */ 9649int i; 9650_ACEOF 9651if ac_fn_c_try_compile "$LINENO" 9652then : 9653 xorg_cv_cc_flag_unknown_warning_option=yes 9654else case e in #( 9655 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9656esac 9657fi 9658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9659esac 9660fi 9661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9662printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9673printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9674if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9675then : 9676 printf %s "(cached) " >&6 9677else case e in #( 9678 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9679/* end confdefs.h. */ 9680int i; 9681_ACEOF 9682if ac_fn_c_try_compile "$LINENO" 9683then : 9684 xorg_cv_cc_flag_unused_command_line_argument=yes 9685else case e in #( 9686 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9687esac 9688fi 9689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9690esac 9691fi 9692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9693printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9694 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9695 CFLAGS="$xorg_testset_save_CFLAGS" 9696fi 9697 9698found="no" 9699 9700 if test $found = "no" ; then 9701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9703 fi 9704 9705 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9707 fi 9708 9709 CFLAGS="$CFLAGS -Werror=return-type" 9710 9711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 9712printf %s "checking if $CC supports -Werror=return-type... " >&6; } 9713 cacheid=xorg_cv_cc_flag__Werror_return_type 9714 if eval test \${$cacheid+y} 9715then : 9716 printf %s "(cached) " >&6 9717else case e in #( 9718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9719/* end confdefs.h. */ 9720int i; 9721int 9722main (void) 9723{ 9724 9725 ; 9726 return 0; 9727} 9728_ACEOF 9729if ac_fn_c_try_link "$LINENO" 9730then : 9731 eval $cacheid=yes 9732else case e in #( 9733 e) eval $cacheid=no ;; 9734esac 9735fi 9736rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9737 conftest$ac_exeext conftest.$ac_ext ;; 9738esac 9739fi 9740 9741 9742 CFLAGS="$xorg_testset_save_CFLAGS" 9743 9744 eval supported=\$$cacheid 9745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9746printf "%s\n" "$supported" >&6; } 9747 if test "$supported" = "yes" ; then 9748 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 9749 found="yes" 9750 fi 9751 fi 9752 9753 if test $found = "no" ; then 9754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9756 fi 9757 9758 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9760 fi 9761 9762 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 9763 9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 9765printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 9766 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 9767 if eval test \${$cacheid+y} 9768then : 9769 printf %s "(cached) " >&6 9770else case e in #( 9771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9772/* end confdefs.h. */ 9773int i; 9774int 9775main (void) 9776{ 9777 9778 ; 9779 return 0; 9780} 9781_ACEOF 9782if ac_fn_c_try_link "$LINENO" 9783then : 9784 eval $cacheid=yes 9785else case e in #( 9786 e) eval $cacheid=no ;; 9787esac 9788fi 9789rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9790 conftest$ac_exeext conftest.$ac_ext ;; 9791esac 9792fi 9793 9794 9795 CFLAGS="$xorg_testset_save_CFLAGS" 9796 9797 eval supported=\$$cacheid 9798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9799printf "%s\n" "$supported" >&6; } 9800 if test "$supported" = "yes" ; then 9801 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 9802 found="yes" 9803 fi 9804 fi 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820xorg_testset_save_CFLAGS="$CFLAGS" 9821 9822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9825printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9826if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9827then : 9828 printf %s "(cached) " >&6 9829else case e in #( 9830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9831/* end confdefs.h. */ 9832int i; 9833_ACEOF 9834if ac_fn_c_try_compile "$LINENO" 9835then : 9836 xorg_cv_cc_flag_unknown_warning_option=yes 9837else case e in #( 9838 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9839esac 9840fi 9841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9842esac 9843fi 9844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9845printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9846 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9847 CFLAGS="$xorg_testset_save_CFLAGS" 9848fi 9849 9850if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9853 fi 9854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9856printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9857if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9858then : 9859 printf %s "(cached) " >&6 9860else case e in #( 9861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9862/* end confdefs.h. */ 9863int i; 9864_ACEOF 9865if ac_fn_c_try_compile "$LINENO" 9866then : 9867 xorg_cv_cc_flag_unused_command_line_argument=yes 9868else case e in #( 9869 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9870esac 9871fi 9872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9873esac 9874fi 9875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9876printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9878 CFLAGS="$xorg_testset_save_CFLAGS" 9879fi 9880 9881found="no" 9882 9883 if test $found = "no" ; then 9884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9886 fi 9887 9888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9890 fi 9891 9892 CFLAGS="$CFLAGS -Werror=trigraphs" 9893 9894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 9895printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 9896 cacheid=xorg_cv_cc_flag__Werror_trigraphs 9897 if eval test \${$cacheid+y} 9898then : 9899 printf %s "(cached) " >&6 9900else case e in #( 9901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9902/* end confdefs.h. */ 9903int i; 9904int 9905main (void) 9906{ 9907 9908 ; 9909 return 0; 9910} 9911_ACEOF 9912if ac_fn_c_try_link "$LINENO" 9913then : 9914 eval $cacheid=yes 9915else case e in #( 9916 e) eval $cacheid=no ;; 9917esac 9918fi 9919rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9920 conftest$ac_exeext conftest.$ac_ext ;; 9921esac 9922fi 9923 9924 9925 CFLAGS="$xorg_testset_save_CFLAGS" 9926 9927 eval supported=\$$cacheid 9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9929printf "%s\n" "$supported" >&6; } 9930 if test "$supported" = "yes" ; then 9931 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 9932 found="yes" 9933 fi 9934 fi 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950xorg_testset_save_CFLAGS="$CFLAGS" 9951 9952if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9955printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9956if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9957then : 9958 printf %s "(cached) " >&6 9959else case e in #( 9960 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9961/* end confdefs.h. */ 9962int i; 9963_ACEOF 9964if ac_fn_c_try_compile "$LINENO" 9965then : 9966 xorg_cv_cc_flag_unknown_warning_option=yes 9967else case e in #( 9968 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9969esac 9970fi 9971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9972esac 9973fi 9974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9975printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9977 CFLAGS="$xorg_testset_save_CFLAGS" 9978fi 9979 9980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9983 fi 9984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9986printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9987if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9988then : 9989 printf %s "(cached) " >&6 9990else case e in #( 9991 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9992/* end confdefs.h. */ 9993int i; 9994_ACEOF 9995if ac_fn_c_try_compile "$LINENO" 9996then : 9997 xorg_cv_cc_flag_unused_command_line_argument=yes 9998else case e in #( 9999 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10000esac 10001fi 10002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10003esac 10004fi 10005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10006printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10008 CFLAGS="$xorg_testset_save_CFLAGS" 10009fi 10010 10011found="no" 10012 10013 if test $found = "no" ; then 10014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10016 fi 10017 10018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10020 fi 10021 10022 CFLAGS="$CFLAGS -Werror=array-bounds" 10023 10024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 10025printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 10026 cacheid=xorg_cv_cc_flag__Werror_array_bounds 10027 if eval test \${$cacheid+y} 10028then : 10029 printf %s "(cached) " >&6 10030else case e in #( 10031 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10032/* end confdefs.h. */ 10033int i; 10034int 10035main (void) 10036{ 10037 10038 ; 10039 return 0; 10040} 10041_ACEOF 10042if ac_fn_c_try_link "$LINENO" 10043then : 10044 eval $cacheid=yes 10045else case e in #( 10046 e) eval $cacheid=no ;; 10047esac 10048fi 10049rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10050 conftest$ac_exeext conftest.$ac_ext ;; 10051esac 10052fi 10053 10054 10055 CFLAGS="$xorg_testset_save_CFLAGS" 10056 10057 eval supported=\$$cacheid 10058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10059printf "%s\n" "$supported" >&6; } 10060 if test "$supported" = "yes" ; then 10061 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 10062 found="yes" 10063 fi 10064 fi 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080xorg_testset_save_CFLAGS="$CFLAGS" 10081 10082if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10085printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10086if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10087then : 10088 printf %s "(cached) " >&6 10089else case e in #( 10090 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10091/* end confdefs.h. */ 10092int i; 10093_ACEOF 10094if ac_fn_c_try_compile "$LINENO" 10095then : 10096 xorg_cv_cc_flag_unknown_warning_option=yes 10097else case e in #( 10098 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10099esac 10100fi 10101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10102esac 10103fi 10104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10105printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10107 CFLAGS="$xorg_testset_save_CFLAGS" 10108fi 10109 10110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10113 fi 10114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10116printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10117if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10118then : 10119 printf %s "(cached) " >&6 10120else case e in #( 10121 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10122/* end confdefs.h. */ 10123int i; 10124_ACEOF 10125if ac_fn_c_try_compile "$LINENO" 10126then : 10127 xorg_cv_cc_flag_unused_command_line_argument=yes 10128else case e in #( 10129 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10130esac 10131fi 10132rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10133esac 10134fi 10135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10136printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10138 CFLAGS="$xorg_testset_save_CFLAGS" 10139fi 10140 10141found="no" 10142 10143 if test $found = "no" ; then 10144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10146 fi 10147 10148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10150 fi 10151 10152 CFLAGS="$CFLAGS -Werror=write-strings" 10153 10154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 10155printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 10156 cacheid=xorg_cv_cc_flag__Werror_write_strings 10157 if eval test \${$cacheid+y} 10158then : 10159 printf %s "(cached) " >&6 10160else case e in #( 10161 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10162/* end confdefs.h. */ 10163int i; 10164int 10165main (void) 10166{ 10167 10168 ; 10169 return 0; 10170} 10171_ACEOF 10172if ac_fn_c_try_link "$LINENO" 10173then : 10174 eval $cacheid=yes 10175else case e in #( 10176 e) eval $cacheid=no ;; 10177esac 10178fi 10179rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10180 conftest$ac_exeext conftest.$ac_ext ;; 10181esac 10182fi 10183 10184 10185 CFLAGS="$xorg_testset_save_CFLAGS" 10186 10187 eval supported=\$$cacheid 10188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10189printf "%s\n" "$supported" >&6; } 10190 if test "$supported" = "yes" ; then 10191 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 10192 found="yes" 10193 fi 10194 fi 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210xorg_testset_save_CFLAGS="$CFLAGS" 10211 10212if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10215printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10216if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10217then : 10218 printf %s "(cached) " >&6 10219else case e in #( 10220 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10221/* end confdefs.h. */ 10222int i; 10223_ACEOF 10224if ac_fn_c_try_compile "$LINENO" 10225then : 10226 xorg_cv_cc_flag_unknown_warning_option=yes 10227else case e in #( 10228 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10229esac 10230fi 10231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10232esac 10233fi 10234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10235printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10237 CFLAGS="$xorg_testset_save_CFLAGS" 10238fi 10239 10240if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10243 fi 10244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10246printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10247if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10248then : 10249 printf %s "(cached) " >&6 10250else case e in #( 10251 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10252/* end confdefs.h. */ 10253int i; 10254_ACEOF 10255if ac_fn_c_try_compile "$LINENO" 10256then : 10257 xorg_cv_cc_flag_unused_command_line_argument=yes 10258else case e in #( 10259 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10260esac 10261fi 10262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10263esac 10264fi 10265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10266printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10268 CFLAGS="$xorg_testset_save_CFLAGS" 10269fi 10270 10271found="no" 10272 10273 if test $found = "no" ; then 10274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10276 fi 10277 10278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10280 fi 10281 10282 CFLAGS="$CFLAGS -Werror=address" 10283 10284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 10285printf %s "checking if $CC supports -Werror=address... " >&6; } 10286 cacheid=xorg_cv_cc_flag__Werror_address 10287 if eval test \${$cacheid+y} 10288then : 10289 printf %s "(cached) " >&6 10290else case e in #( 10291 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10292/* end confdefs.h. */ 10293int i; 10294int 10295main (void) 10296{ 10297 10298 ; 10299 return 0; 10300} 10301_ACEOF 10302if ac_fn_c_try_link "$LINENO" 10303then : 10304 eval $cacheid=yes 10305else case e in #( 10306 e) eval $cacheid=no ;; 10307esac 10308fi 10309rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10310 conftest$ac_exeext conftest.$ac_ext ;; 10311esac 10312fi 10313 10314 10315 CFLAGS="$xorg_testset_save_CFLAGS" 10316 10317 eval supported=\$$cacheid 10318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10319printf "%s\n" "$supported" >&6; } 10320 if test "$supported" = "yes" ; then 10321 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 10322 found="yes" 10323 fi 10324 fi 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340xorg_testset_save_CFLAGS="$CFLAGS" 10341 10342if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10345printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10346if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10347then : 10348 printf %s "(cached) " >&6 10349else case e in #( 10350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10351/* end confdefs.h. */ 10352int i; 10353_ACEOF 10354if ac_fn_c_try_compile "$LINENO" 10355then : 10356 xorg_cv_cc_flag_unknown_warning_option=yes 10357else case e in #( 10358 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10359esac 10360fi 10361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10362esac 10363fi 10364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10365printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10366 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10367 CFLAGS="$xorg_testset_save_CFLAGS" 10368fi 10369 10370if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10373 fi 10374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10376printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10377if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10378then : 10379 printf %s "(cached) " >&6 10380else case e in #( 10381 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10382/* end confdefs.h. */ 10383int i; 10384_ACEOF 10385if ac_fn_c_try_compile "$LINENO" 10386then : 10387 xorg_cv_cc_flag_unused_command_line_argument=yes 10388else case e in #( 10389 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10390esac 10391fi 10392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10393esac 10394fi 10395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10396printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10398 CFLAGS="$xorg_testset_save_CFLAGS" 10399fi 10400 10401found="no" 10402 10403 if test $found = "no" ; then 10404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10406 fi 10407 10408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10410 fi 10411 10412 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 10413 10414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 10415printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 10416 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 10417 if eval test \${$cacheid+y} 10418then : 10419 printf %s "(cached) " >&6 10420else case e in #( 10421 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10422/* end confdefs.h. */ 10423int i; 10424int 10425main (void) 10426{ 10427 10428 ; 10429 return 0; 10430} 10431_ACEOF 10432if ac_fn_c_try_link "$LINENO" 10433then : 10434 eval $cacheid=yes 10435else case e in #( 10436 e) eval $cacheid=no ;; 10437esac 10438fi 10439rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10440 conftest$ac_exeext conftest.$ac_ext ;; 10441esac 10442fi 10443 10444 10445 CFLAGS="$xorg_testset_save_CFLAGS" 10446 10447 eval supported=\$$cacheid 10448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10449printf "%s\n" "$supported" >&6; } 10450 if test "$supported" = "yes" ; then 10451 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 10452 found="yes" 10453 fi 10454 fi 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 -errwarn=E_BAD_PTR_INT_COMBINATION" 10466 10467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 10468printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 10469 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 10470 if eval test \${$cacheid+y} 10471then : 10472 printf %s "(cached) " >&6 10473else case e in #( 10474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10475/* end confdefs.h. */ 10476int i; 10477int 10478main (void) 10479{ 10480 10481 ; 10482 return 0; 10483} 10484_ACEOF 10485if ac_fn_c_try_link "$LINENO" 10486then : 10487 eval $cacheid=yes 10488else case e in #( 10489 e) eval $cacheid=no ;; 10490esac 10491fi 10492rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10493 conftest$ac_exeext conftest.$ac_ext ;; 10494esac 10495fi 10496 10497 10498 CFLAGS="$xorg_testset_save_CFLAGS" 10499 10500 eval supported=\$$cacheid 10501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10502printf "%s\n" "$supported" >&6; } 10503 if test "$supported" = "yes" ; then 10504 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 10505 found="yes" 10506 fi 10507 fi 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523xorg_testset_save_CFLAGS="$CFLAGS" 10524 10525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10528printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10529if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10530then : 10531 printf %s "(cached) " >&6 10532else case e in #( 10533 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10534/* end confdefs.h. */ 10535int i; 10536_ACEOF 10537if ac_fn_c_try_compile "$LINENO" 10538then : 10539 xorg_cv_cc_flag_unknown_warning_option=yes 10540else case e in #( 10541 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10542esac 10543fi 10544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10545esac 10546fi 10547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10548printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10550 CFLAGS="$xorg_testset_save_CFLAGS" 10551fi 10552 10553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10556 fi 10557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10559printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10560if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10561then : 10562 printf %s "(cached) " >&6 10563else case e in #( 10564 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10565/* end confdefs.h. */ 10566int i; 10567_ACEOF 10568if ac_fn_c_try_compile "$LINENO" 10569then : 10570 xorg_cv_cc_flag_unused_command_line_argument=yes 10571else case e in #( 10572 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10573esac 10574fi 10575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10576esac 10577fi 10578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10579printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10581 CFLAGS="$xorg_testset_save_CFLAGS" 10582fi 10583 10584found="no" 10585 10586 if test $found = "no" ; then 10587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10589 fi 10590 10591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10593 fi 10594 10595 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 10596 10597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 10598printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 10599 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 10600 if eval test \${$cacheid+y} 10601then : 10602 printf %s "(cached) " >&6 10603else case e in #( 10604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10605/* end confdefs.h. */ 10606int i; 10607int 10608main (void) 10609{ 10610 10611 ; 10612 return 0; 10613} 10614_ACEOF 10615if ac_fn_c_try_link "$LINENO" 10616then : 10617 eval $cacheid=yes 10618else case e in #( 10619 e) eval $cacheid=no ;; 10620esac 10621fi 10622rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10623 conftest$ac_exeext conftest.$ac_ext ;; 10624esac 10625fi 10626 10627 10628 CFLAGS="$xorg_testset_save_CFLAGS" 10629 10630 eval supported=\$$cacheid 10631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10632printf "%s\n" "$supported" >&6; } 10633 if test "$supported" = "yes" ; then 10634 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 10635 found="yes" 10636 fi 10637 fi 10638 10639 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 10640else 10641{ printf "%s\n" "$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 10642printf "%s\n" "$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;} 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656xorg_testset_save_CFLAGS="$CFLAGS" 10657 10658if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10661printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10662if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10663then : 10664 printf %s "(cached) " >&6 10665else case e in #( 10666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10667/* end confdefs.h. */ 10668int i; 10669_ACEOF 10670if ac_fn_c_try_compile "$LINENO" 10671then : 10672 xorg_cv_cc_flag_unknown_warning_option=yes 10673else case e in #( 10674 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10675esac 10676fi 10677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10678esac 10679fi 10680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10681printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10682 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10683 CFLAGS="$xorg_testset_save_CFLAGS" 10684fi 10685 10686if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10689 fi 10690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10692printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10693if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10694then : 10695 printf %s "(cached) " >&6 10696else case e in #( 10697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10698/* end confdefs.h. */ 10699int i; 10700_ACEOF 10701if ac_fn_c_try_compile "$LINENO" 10702then : 10703 xorg_cv_cc_flag_unused_command_line_argument=yes 10704else case e in #( 10705 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10706esac 10707fi 10708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10709esac 10710fi 10711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10712printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10714 CFLAGS="$xorg_testset_save_CFLAGS" 10715fi 10716 10717found="no" 10718 10719 if test $found = "no" ; then 10720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10722 fi 10723 10724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10726 fi 10727 10728 CFLAGS="$CFLAGS -Wimplicit" 10729 10730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 10731printf %s "checking if $CC supports -Wimplicit... " >&6; } 10732 cacheid=xorg_cv_cc_flag__Wimplicit 10733 if eval test \${$cacheid+y} 10734then : 10735 printf %s "(cached) " >&6 10736else case e in #( 10737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10738/* end confdefs.h. */ 10739int i; 10740int 10741main (void) 10742{ 10743 10744 ; 10745 return 0; 10746} 10747_ACEOF 10748if ac_fn_c_try_link "$LINENO" 10749then : 10750 eval $cacheid=yes 10751else case e in #( 10752 e) eval $cacheid=no ;; 10753esac 10754fi 10755rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10756 conftest$ac_exeext conftest.$ac_ext ;; 10757esac 10758fi 10759 10760 10761 CFLAGS="$xorg_testset_save_CFLAGS" 10762 10763 eval supported=\$$cacheid 10764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10765printf "%s\n" "$supported" >&6; } 10766 if test "$supported" = "yes" ; then 10767 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 10768 found="yes" 10769 fi 10770 fi 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786xorg_testset_save_CFLAGS="$CFLAGS" 10787 10788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10791printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10792if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10793then : 10794 printf %s "(cached) " >&6 10795else case e in #( 10796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10797/* end confdefs.h. */ 10798int i; 10799_ACEOF 10800if ac_fn_c_try_compile "$LINENO" 10801then : 10802 xorg_cv_cc_flag_unknown_warning_option=yes 10803else case e in #( 10804 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10805esac 10806fi 10807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10808esac 10809fi 10810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10811printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10813 CFLAGS="$xorg_testset_save_CFLAGS" 10814fi 10815 10816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10819 fi 10820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10822printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10823if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10824then : 10825 printf %s "(cached) " >&6 10826else case e in #( 10827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10828/* end confdefs.h. */ 10829int i; 10830_ACEOF 10831if ac_fn_c_try_compile "$LINENO" 10832then : 10833 xorg_cv_cc_flag_unused_command_line_argument=yes 10834else case e in #( 10835 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10836esac 10837fi 10838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10839esac 10840fi 10841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10842printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10844 CFLAGS="$xorg_testset_save_CFLAGS" 10845fi 10846 10847found="no" 10848 10849 if test $found = "no" ; then 10850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10852 fi 10853 10854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10856 fi 10857 10858 CFLAGS="$CFLAGS -Wnonnull" 10859 10860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 10861printf %s "checking if $CC supports -Wnonnull... " >&6; } 10862 cacheid=xorg_cv_cc_flag__Wnonnull 10863 if eval test \${$cacheid+y} 10864then : 10865 printf %s "(cached) " >&6 10866else case e in #( 10867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10868/* end confdefs.h. */ 10869int i; 10870int 10871main (void) 10872{ 10873 10874 ; 10875 return 0; 10876} 10877_ACEOF 10878if ac_fn_c_try_link "$LINENO" 10879then : 10880 eval $cacheid=yes 10881else case e in #( 10882 e) eval $cacheid=no ;; 10883esac 10884fi 10885rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10886 conftest$ac_exeext conftest.$ac_ext ;; 10887esac 10888fi 10889 10890 10891 CFLAGS="$xorg_testset_save_CFLAGS" 10892 10893 eval supported=\$$cacheid 10894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10895printf "%s\n" "$supported" >&6; } 10896 if test "$supported" = "yes" ; then 10897 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 10898 found="yes" 10899 fi 10900 fi 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916xorg_testset_save_CFLAGS="$CFLAGS" 10917 10918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10921printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10922if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10923then : 10924 printf %s "(cached) " >&6 10925else case e in #( 10926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10927/* end confdefs.h. */ 10928int i; 10929_ACEOF 10930if ac_fn_c_try_compile "$LINENO" 10931then : 10932 xorg_cv_cc_flag_unknown_warning_option=yes 10933else case e in #( 10934 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10935esac 10936fi 10937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10938esac 10939fi 10940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10941printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10943 CFLAGS="$xorg_testset_save_CFLAGS" 10944fi 10945 10946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10949 fi 10950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10952printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10953if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10954then : 10955 printf %s "(cached) " >&6 10956else case e in #( 10957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10958/* end confdefs.h. */ 10959int i; 10960_ACEOF 10961if ac_fn_c_try_compile "$LINENO" 10962then : 10963 xorg_cv_cc_flag_unused_command_line_argument=yes 10964else case e in #( 10965 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10966esac 10967fi 10968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10969esac 10970fi 10971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10972printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10974 CFLAGS="$xorg_testset_save_CFLAGS" 10975fi 10976 10977found="no" 10978 10979 if test $found = "no" ; then 10980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10982 fi 10983 10984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10986 fi 10987 10988 CFLAGS="$CFLAGS -Winit-self" 10989 10990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 10991printf %s "checking if $CC supports -Winit-self... " >&6; } 10992 cacheid=xorg_cv_cc_flag__Winit_self 10993 if eval test \${$cacheid+y} 10994then : 10995 printf %s "(cached) " >&6 10996else case e in #( 10997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10998/* end confdefs.h. */ 10999int i; 11000int 11001main (void) 11002{ 11003 11004 ; 11005 return 0; 11006} 11007_ACEOF 11008if ac_fn_c_try_link "$LINENO" 11009then : 11010 eval $cacheid=yes 11011else case e in #( 11012 e) eval $cacheid=no ;; 11013esac 11014fi 11015rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11016 conftest$ac_exeext conftest.$ac_ext ;; 11017esac 11018fi 11019 11020 11021 CFLAGS="$xorg_testset_save_CFLAGS" 11022 11023 eval supported=\$$cacheid 11024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11025printf "%s\n" "$supported" >&6; } 11026 if test "$supported" = "yes" ; then 11027 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 11028 found="yes" 11029 fi 11030 fi 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046xorg_testset_save_CFLAGS="$CFLAGS" 11047 11048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11051printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11052if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11053then : 11054 printf %s "(cached) " >&6 11055else case e in #( 11056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11057/* end confdefs.h. */ 11058int i; 11059_ACEOF 11060if ac_fn_c_try_compile "$LINENO" 11061then : 11062 xorg_cv_cc_flag_unknown_warning_option=yes 11063else case e in #( 11064 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11065esac 11066fi 11067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11068esac 11069fi 11070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11071printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11073 CFLAGS="$xorg_testset_save_CFLAGS" 11074fi 11075 11076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11079 fi 11080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11082printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11083if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11084then : 11085 printf %s "(cached) " >&6 11086else case e in #( 11087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11088/* end confdefs.h. */ 11089int i; 11090_ACEOF 11091if ac_fn_c_try_compile "$LINENO" 11092then : 11093 xorg_cv_cc_flag_unused_command_line_argument=yes 11094else case e in #( 11095 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11096esac 11097fi 11098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11099esac 11100fi 11101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11102printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11103 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11104 CFLAGS="$xorg_testset_save_CFLAGS" 11105fi 11106 11107found="no" 11108 11109 if test $found = "no" ; then 11110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11112 fi 11113 11114 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11116 fi 11117 11118 CFLAGS="$CFLAGS -Wmain" 11119 11120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 11121printf %s "checking if $CC supports -Wmain... " >&6; } 11122 cacheid=xorg_cv_cc_flag__Wmain 11123 if eval test \${$cacheid+y} 11124then : 11125 printf %s "(cached) " >&6 11126else case e in #( 11127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11128/* end confdefs.h. */ 11129int i; 11130int 11131main (void) 11132{ 11133 11134 ; 11135 return 0; 11136} 11137_ACEOF 11138if ac_fn_c_try_link "$LINENO" 11139then : 11140 eval $cacheid=yes 11141else case e in #( 11142 e) eval $cacheid=no ;; 11143esac 11144fi 11145rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11146 conftest$ac_exeext conftest.$ac_ext ;; 11147esac 11148fi 11149 11150 11151 CFLAGS="$xorg_testset_save_CFLAGS" 11152 11153 eval supported=\$$cacheid 11154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11155printf "%s\n" "$supported" >&6; } 11156 if test "$supported" = "yes" ; then 11157 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 11158 found="yes" 11159 fi 11160 fi 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176xorg_testset_save_CFLAGS="$CFLAGS" 11177 11178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11181printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11182if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11183then : 11184 printf %s "(cached) " >&6 11185else case e in #( 11186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11187/* end confdefs.h. */ 11188int i; 11189_ACEOF 11190if ac_fn_c_try_compile "$LINENO" 11191then : 11192 xorg_cv_cc_flag_unknown_warning_option=yes 11193else case e in #( 11194 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11195esac 11196fi 11197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11198esac 11199fi 11200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11201printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11203 CFLAGS="$xorg_testset_save_CFLAGS" 11204fi 11205 11206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11209 fi 11210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11212printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11213if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11214then : 11215 printf %s "(cached) " >&6 11216else case e in #( 11217 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11218/* end confdefs.h. */ 11219int i; 11220_ACEOF 11221if ac_fn_c_try_compile "$LINENO" 11222then : 11223 xorg_cv_cc_flag_unused_command_line_argument=yes 11224else case e in #( 11225 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11226esac 11227fi 11228rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11229esac 11230fi 11231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11232printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11234 CFLAGS="$xorg_testset_save_CFLAGS" 11235fi 11236 11237found="no" 11238 11239 if test $found = "no" ; then 11240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11242 fi 11243 11244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11246 fi 11247 11248 CFLAGS="$CFLAGS -Wmissing-braces" 11249 11250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 11251printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 11252 cacheid=xorg_cv_cc_flag__Wmissing_braces 11253 if eval test \${$cacheid+y} 11254then : 11255 printf %s "(cached) " >&6 11256else case e in #( 11257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11258/* end confdefs.h. */ 11259int i; 11260int 11261main (void) 11262{ 11263 11264 ; 11265 return 0; 11266} 11267_ACEOF 11268if ac_fn_c_try_link "$LINENO" 11269then : 11270 eval $cacheid=yes 11271else case e in #( 11272 e) eval $cacheid=no ;; 11273esac 11274fi 11275rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11276 conftest$ac_exeext conftest.$ac_ext ;; 11277esac 11278fi 11279 11280 11281 CFLAGS="$xorg_testset_save_CFLAGS" 11282 11283 eval supported=\$$cacheid 11284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11285printf "%s\n" "$supported" >&6; } 11286 if test "$supported" = "yes" ; then 11287 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 11288 found="yes" 11289 fi 11290 fi 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306xorg_testset_save_CFLAGS="$CFLAGS" 11307 11308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11311printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11312if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11313then : 11314 printf %s "(cached) " >&6 11315else case e in #( 11316 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11317/* end confdefs.h. */ 11318int i; 11319_ACEOF 11320if ac_fn_c_try_compile "$LINENO" 11321then : 11322 xorg_cv_cc_flag_unknown_warning_option=yes 11323else case e in #( 11324 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11325esac 11326fi 11327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11328esac 11329fi 11330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11331printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11333 CFLAGS="$xorg_testset_save_CFLAGS" 11334fi 11335 11336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11339 fi 11340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11342printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11343if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11344then : 11345 printf %s "(cached) " >&6 11346else case e in #( 11347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11348/* end confdefs.h. */ 11349int i; 11350_ACEOF 11351if ac_fn_c_try_compile "$LINENO" 11352then : 11353 xorg_cv_cc_flag_unused_command_line_argument=yes 11354else case e in #( 11355 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11356esac 11357fi 11358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11359esac 11360fi 11361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11362printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11364 CFLAGS="$xorg_testset_save_CFLAGS" 11365fi 11366 11367found="no" 11368 11369 if test $found = "no" ; then 11370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11372 fi 11373 11374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11376 fi 11377 11378 CFLAGS="$CFLAGS -Wsequence-point" 11379 11380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 11381printf %s "checking if $CC supports -Wsequence-point... " >&6; } 11382 cacheid=xorg_cv_cc_flag__Wsequence_point 11383 if eval test \${$cacheid+y} 11384then : 11385 printf %s "(cached) " >&6 11386else case e in #( 11387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11388/* end confdefs.h. */ 11389int i; 11390int 11391main (void) 11392{ 11393 11394 ; 11395 return 0; 11396} 11397_ACEOF 11398if ac_fn_c_try_link "$LINENO" 11399then : 11400 eval $cacheid=yes 11401else case e in #( 11402 e) eval $cacheid=no ;; 11403esac 11404fi 11405rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11406 conftest$ac_exeext conftest.$ac_ext ;; 11407esac 11408fi 11409 11410 11411 CFLAGS="$xorg_testset_save_CFLAGS" 11412 11413 eval supported=\$$cacheid 11414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11415printf "%s\n" "$supported" >&6; } 11416 if test "$supported" = "yes" ; then 11417 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 11418 found="yes" 11419 fi 11420 fi 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436xorg_testset_save_CFLAGS="$CFLAGS" 11437 11438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11441printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11442if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11443then : 11444 printf %s "(cached) " >&6 11445else case e in #( 11446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11447/* end confdefs.h. */ 11448int i; 11449_ACEOF 11450if ac_fn_c_try_compile "$LINENO" 11451then : 11452 xorg_cv_cc_flag_unknown_warning_option=yes 11453else case e in #( 11454 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11455esac 11456fi 11457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11458esac 11459fi 11460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11461printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11462 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11463 CFLAGS="$xorg_testset_save_CFLAGS" 11464fi 11465 11466if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11469 fi 11470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11472printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11473if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11474then : 11475 printf %s "(cached) " >&6 11476else case e in #( 11477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11478/* end confdefs.h. */ 11479int i; 11480_ACEOF 11481if ac_fn_c_try_compile "$LINENO" 11482then : 11483 xorg_cv_cc_flag_unused_command_line_argument=yes 11484else case e in #( 11485 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11486esac 11487fi 11488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11489esac 11490fi 11491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11492printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11494 CFLAGS="$xorg_testset_save_CFLAGS" 11495fi 11496 11497found="no" 11498 11499 if test $found = "no" ; then 11500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11502 fi 11503 11504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11506 fi 11507 11508 CFLAGS="$CFLAGS -Wreturn-type" 11509 11510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 11511printf %s "checking if $CC supports -Wreturn-type... " >&6; } 11512 cacheid=xorg_cv_cc_flag__Wreturn_type 11513 if eval test \${$cacheid+y} 11514then : 11515 printf %s "(cached) " >&6 11516else case e in #( 11517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11518/* end confdefs.h. */ 11519int i; 11520int 11521main (void) 11522{ 11523 11524 ; 11525 return 0; 11526} 11527_ACEOF 11528if ac_fn_c_try_link "$LINENO" 11529then : 11530 eval $cacheid=yes 11531else case e in #( 11532 e) eval $cacheid=no ;; 11533esac 11534fi 11535rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11536 conftest$ac_exeext conftest.$ac_ext ;; 11537esac 11538fi 11539 11540 11541 CFLAGS="$xorg_testset_save_CFLAGS" 11542 11543 eval supported=\$$cacheid 11544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11545printf "%s\n" "$supported" >&6; } 11546 if test "$supported" = "yes" ; then 11547 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 11548 found="yes" 11549 fi 11550 fi 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566xorg_testset_save_CFLAGS="$CFLAGS" 11567 11568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11571printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11572if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11573then : 11574 printf %s "(cached) " >&6 11575else case e in #( 11576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11577/* end confdefs.h. */ 11578int i; 11579_ACEOF 11580if ac_fn_c_try_compile "$LINENO" 11581then : 11582 xorg_cv_cc_flag_unknown_warning_option=yes 11583else case e in #( 11584 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11585esac 11586fi 11587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11588esac 11589fi 11590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11591printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11593 CFLAGS="$xorg_testset_save_CFLAGS" 11594fi 11595 11596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11599 fi 11600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11602printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11603if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11604then : 11605 printf %s "(cached) " >&6 11606else case e in #( 11607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11608/* end confdefs.h. */ 11609int i; 11610_ACEOF 11611if ac_fn_c_try_compile "$LINENO" 11612then : 11613 xorg_cv_cc_flag_unused_command_line_argument=yes 11614else case e in #( 11615 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11616esac 11617fi 11618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11619esac 11620fi 11621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11622printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11624 CFLAGS="$xorg_testset_save_CFLAGS" 11625fi 11626 11627found="no" 11628 11629 if test $found = "no" ; then 11630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11632 fi 11633 11634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11636 fi 11637 11638 CFLAGS="$CFLAGS -Wtrigraphs" 11639 11640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 11641printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 11642 cacheid=xorg_cv_cc_flag__Wtrigraphs 11643 if eval test \${$cacheid+y} 11644then : 11645 printf %s "(cached) " >&6 11646else case e in #( 11647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11648/* end confdefs.h. */ 11649int i; 11650int 11651main (void) 11652{ 11653 11654 ; 11655 return 0; 11656} 11657_ACEOF 11658if ac_fn_c_try_link "$LINENO" 11659then : 11660 eval $cacheid=yes 11661else case e in #( 11662 e) eval $cacheid=no ;; 11663esac 11664fi 11665rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11666 conftest$ac_exeext conftest.$ac_ext ;; 11667esac 11668fi 11669 11670 11671 CFLAGS="$xorg_testset_save_CFLAGS" 11672 11673 eval supported=\$$cacheid 11674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11675printf "%s\n" "$supported" >&6; } 11676 if test "$supported" = "yes" ; then 11677 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 11678 found="yes" 11679 fi 11680 fi 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696xorg_testset_save_CFLAGS="$CFLAGS" 11697 11698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11701printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11702if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11703then : 11704 printf %s "(cached) " >&6 11705else case e in #( 11706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11707/* end confdefs.h. */ 11708int i; 11709_ACEOF 11710if ac_fn_c_try_compile "$LINENO" 11711then : 11712 xorg_cv_cc_flag_unknown_warning_option=yes 11713else case e in #( 11714 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11715esac 11716fi 11717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11718esac 11719fi 11720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11721printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11723 CFLAGS="$xorg_testset_save_CFLAGS" 11724fi 11725 11726if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11729 fi 11730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11732printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11733if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11734then : 11735 printf %s "(cached) " >&6 11736else case e in #( 11737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11738/* end confdefs.h. */ 11739int i; 11740_ACEOF 11741if ac_fn_c_try_compile "$LINENO" 11742then : 11743 xorg_cv_cc_flag_unused_command_line_argument=yes 11744else case e in #( 11745 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11746esac 11747fi 11748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11749esac 11750fi 11751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11752printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11754 CFLAGS="$xorg_testset_save_CFLAGS" 11755fi 11756 11757found="no" 11758 11759 if test $found = "no" ; then 11760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11762 fi 11763 11764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11766 fi 11767 11768 CFLAGS="$CFLAGS -Warray-bounds" 11769 11770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 11771printf %s "checking if $CC supports -Warray-bounds... " >&6; } 11772 cacheid=xorg_cv_cc_flag__Warray_bounds 11773 if eval test \${$cacheid+y} 11774then : 11775 printf %s "(cached) " >&6 11776else case e in #( 11777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11778/* end confdefs.h. */ 11779int i; 11780int 11781main (void) 11782{ 11783 11784 ; 11785 return 0; 11786} 11787_ACEOF 11788if ac_fn_c_try_link "$LINENO" 11789then : 11790 eval $cacheid=yes 11791else case e in #( 11792 e) eval $cacheid=no ;; 11793esac 11794fi 11795rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11796 conftest$ac_exeext conftest.$ac_ext ;; 11797esac 11798fi 11799 11800 11801 CFLAGS="$xorg_testset_save_CFLAGS" 11802 11803 eval supported=\$$cacheid 11804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11805printf "%s\n" "$supported" >&6; } 11806 if test "$supported" = "yes" ; then 11807 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 11808 found="yes" 11809 fi 11810 fi 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826xorg_testset_save_CFLAGS="$CFLAGS" 11827 11828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11831printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11832if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11833then : 11834 printf %s "(cached) " >&6 11835else case e in #( 11836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11837/* end confdefs.h. */ 11838int i; 11839_ACEOF 11840if ac_fn_c_try_compile "$LINENO" 11841then : 11842 xorg_cv_cc_flag_unknown_warning_option=yes 11843else case e in #( 11844 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11845esac 11846fi 11847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11848esac 11849fi 11850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11851printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11853 CFLAGS="$xorg_testset_save_CFLAGS" 11854fi 11855 11856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11859 fi 11860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11862printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11863if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11864then : 11865 printf %s "(cached) " >&6 11866else case e in #( 11867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11868/* end confdefs.h. */ 11869int i; 11870_ACEOF 11871if ac_fn_c_try_compile "$LINENO" 11872then : 11873 xorg_cv_cc_flag_unused_command_line_argument=yes 11874else case e in #( 11875 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11876esac 11877fi 11878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11879esac 11880fi 11881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11882printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11884 CFLAGS="$xorg_testset_save_CFLAGS" 11885fi 11886 11887found="no" 11888 11889 if test $found = "no" ; then 11890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11892 fi 11893 11894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11896 fi 11897 11898 CFLAGS="$CFLAGS -Wwrite-strings" 11899 11900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 11901printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 11902 cacheid=xorg_cv_cc_flag__Wwrite_strings 11903 if eval test \${$cacheid+y} 11904then : 11905 printf %s "(cached) " >&6 11906else case e in #( 11907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11908/* end confdefs.h. */ 11909int i; 11910int 11911main (void) 11912{ 11913 11914 ; 11915 return 0; 11916} 11917_ACEOF 11918if ac_fn_c_try_link "$LINENO" 11919then : 11920 eval $cacheid=yes 11921else case e in #( 11922 e) eval $cacheid=no ;; 11923esac 11924fi 11925rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11926 conftest$ac_exeext conftest.$ac_ext ;; 11927esac 11928fi 11929 11930 11931 CFLAGS="$xorg_testset_save_CFLAGS" 11932 11933 eval supported=\$$cacheid 11934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11935printf "%s\n" "$supported" >&6; } 11936 if test "$supported" = "yes" ; then 11937 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 11938 found="yes" 11939 fi 11940 fi 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956xorg_testset_save_CFLAGS="$CFLAGS" 11957 11958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11961printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11962if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11963then : 11964 printf %s "(cached) " >&6 11965else case e in #( 11966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11967/* end confdefs.h. */ 11968int i; 11969_ACEOF 11970if ac_fn_c_try_compile "$LINENO" 11971then : 11972 xorg_cv_cc_flag_unknown_warning_option=yes 11973else case e in #( 11974 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11975esac 11976fi 11977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11978esac 11979fi 11980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11981printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11983 CFLAGS="$xorg_testset_save_CFLAGS" 11984fi 11985 11986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11989 fi 11990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11992printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11993if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11994then : 11995 printf %s "(cached) " >&6 11996else case e in #( 11997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11998/* end confdefs.h. */ 11999int i; 12000_ACEOF 12001if ac_fn_c_try_compile "$LINENO" 12002then : 12003 xorg_cv_cc_flag_unused_command_line_argument=yes 12004else case e in #( 12005 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 12006esac 12007fi 12008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12009esac 12010fi 12011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12012printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12014 CFLAGS="$xorg_testset_save_CFLAGS" 12015fi 12016 12017found="no" 12018 12019 if test $found = "no" ; then 12020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12022 fi 12023 12024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12026 fi 12027 12028 CFLAGS="$CFLAGS -Waddress" 12029 12030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 12031printf %s "checking if $CC supports -Waddress... " >&6; } 12032 cacheid=xorg_cv_cc_flag__Waddress 12033 if eval test \${$cacheid+y} 12034then : 12035 printf %s "(cached) " >&6 12036else case e in #( 12037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12038/* end confdefs.h. */ 12039int i; 12040int 12041main (void) 12042{ 12043 12044 ; 12045 return 0; 12046} 12047_ACEOF 12048if ac_fn_c_try_link "$LINENO" 12049then : 12050 eval $cacheid=yes 12051else case e in #( 12052 e) eval $cacheid=no ;; 12053esac 12054fi 12055rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12056 conftest$ac_exeext conftest.$ac_ext ;; 12057esac 12058fi 12059 12060 12061 CFLAGS="$xorg_testset_save_CFLAGS" 12062 12063 eval supported=\$$cacheid 12064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12065printf "%s\n" "$supported" >&6; } 12066 if test "$supported" = "yes" ; then 12067 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 12068 found="yes" 12069 fi 12070 fi 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086xorg_testset_save_CFLAGS="$CFLAGS" 12087 12088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12091printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12092if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12093then : 12094 printf %s "(cached) " >&6 12095else case e in #( 12096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12097/* end confdefs.h. */ 12098int i; 12099_ACEOF 12100if ac_fn_c_try_compile "$LINENO" 12101then : 12102 xorg_cv_cc_flag_unknown_warning_option=yes 12103else case e in #( 12104 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 12105esac 12106fi 12107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12108esac 12109fi 12110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12111printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12113 CFLAGS="$xorg_testset_save_CFLAGS" 12114fi 12115 12116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12119 fi 12120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12122printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12123if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12124then : 12125 printf %s "(cached) " >&6 12126else case e in #( 12127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12128/* end confdefs.h. */ 12129int i; 12130_ACEOF 12131if ac_fn_c_try_compile "$LINENO" 12132then : 12133 xorg_cv_cc_flag_unused_command_line_argument=yes 12134else case e in #( 12135 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 12136esac 12137fi 12138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12139esac 12140fi 12141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12142printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12144 CFLAGS="$xorg_testset_save_CFLAGS" 12145fi 12146 12147found="no" 12148 12149 if test $found = "no" ; then 12150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12152 fi 12153 12154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12156 fi 12157 12158 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 12159 12160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 12161printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 12162 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 12163 if eval test \${$cacheid+y} 12164then : 12165 printf %s "(cached) " >&6 12166else case e in #( 12167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12168/* end confdefs.h. */ 12169int i; 12170int 12171main (void) 12172{ 12173 12174 ; 12175 return 0; 12176} 12177_ACEOF 12178if ac_fn_c_try_link "$LINENO" 12179then : 12180 eval $cacheid=yes 12181else case e in #( 12182 e) eval $cacheid=no ;; 12183esac 12184fi 12185rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12186 conftest$ac_exeext conftest.$ac_ext ;; 12187esac 12188fi 12189 12190 12191 CFLAGS="$xorg_testset_save_CFLAGS" 12192 12193 eval supported=\$$cacheid 12194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12195printf "%s\n" "$supported" >&6; } 12196 if test "$supported" = "yes" ; then 12197 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 12198 found="yes" 12199 fi 12200 fi 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216xorg_testset_save_CFLAGS="$CFLAGS" 12217 12218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12221printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12222if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12223then : 12224 printf %s "(cached) " >&6 12225else case e in #( 12226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12227/* end confdefs.h. */ 12228int i; 12229_ACEOF 12230if ac_fn_c_try_compile "$LINENO" 12231then : 12232 xorg_cv_cc_flag_unknown_warning_option=yes 12233else case e in #( 12234 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 12235esac 12236fi 12237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12238esac 12239fi 12240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12241printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12243 CFLAGS="$xorg_testset_save_CFLAGS" 12244fi 12245 12246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12249 fi 12250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12252printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12253if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12254then : 12255 printf %s "(cached) " >&6 12256else case e in #( 12257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12258/* end confdefs.h. */ 12259int i; 12260_ACEOF 12261if ac_fn_c_try_compile "$LINENO" 12262then : 12263 xorg_cv_cc_flag_unused_command_line_argument=yes 12264else case e in #( 12265 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 12266esac 12267fi 12268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12269esac 12270fi 12271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12272printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12274 CFLAGS="$xorg_testset_save_CFLAGS" 12275fi 12276 12277found="no" 12278 12279 if test $found = "no" ; then 12280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12282 fi 12283 12284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12286 fi 12287 12288 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 12289 12290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 12291printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 12292 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 12293 if eval test \${$cacheid+y} 12294then : 12295 printf %s "(cached) " >&6 12296else case e in #( 12297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12298/* end confdefs.h. */ 12299int i; 12300int 12301main (void) 12302{ 12303 12304 ; 12305 return 0; 12306} 12307_ACEOF 12308if ac_fn_c_try_link "$LINENO" 12309then : 12310 eval $cacheid=yes 12311else case e in #( 12312 e) eval $cacheid=no ;; 12313esac 12314fi 12315rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12316 conftest$ac_exeext conftest.$ac_ext ;; 12317esac 12318fi 12319 12320 12321 CFLAGS="$xorg_testset_save_CFLAGS" 12322 12323 eval supported=\$$cacheid 12324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12325printf "%s\n" "$supported" >&6; } 12326 if test "$supported" = "yes" ; then 12327 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 12328 found="yes" 12329 fi 12330 fi 12331 12332 12333fi 12334 12335 12336 12337 12338 12339 12340 12341 CWARNFLAGS="$BASE_CFLAGS" 12342 if test "x$GCC" = xyes ; then 12343 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 12344 fi 12345 12346 12347 12348 12349 12350 12351 12352 12353# Check whether --enable-strict-compilation was given. 12354if test ${enable_strict_compilation+y} 12355then : 12356 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 12357else case e in #( 12358 e) STRICT_COMPILE=no ;; 12359esac 12360fi 12361 12362 12363 12364 12365 12366 12367STRICT_CFLAGS="" 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381xorg_testset_save_CFLAGS="$CFLAGS" 12382 12383if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12386printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12387if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12388then : 12389 printf %s "(cached) " >&6 12390else case e in #( 12391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12392/* end confdefs.h. */ 12393int i; 12394_ACEOF 12395if ac_fn_c_try_compile "$LINENO" 12396then : 12397 xorg_cv_cc_flag_unknown_warning_option=yes 12398else case e in #( 12399 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 12400esac 12401fi 12402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12403esac 12404fi 12405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12406printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12408 CFLAGS="$xorg_testset_save_CFLAGS" 12409fi 12410 12411if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12414 fi 12415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12417printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12418if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12419then : 12420 printf %s "(cached) " >&6 12421else case e in #( 12422 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12423/* end confdefs.h. */ 12424int i; 12425_ACEOF 12426if ac_fn_c_try_compile "$LINENO" 12427then : 12428 xorg_cv_cc_flag_unused_command_line_argument=yes 12429else case e in #( 12430 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 12431esac 12432fi 12433rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12434esac 12435fi 12436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12437printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12439 CFLAGS="$xorg_testset_save_CFLAGS" 12440fi 12441 12442found="no" 12443 12444 if test $found = "no" ; then 12445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12447 fi 12448 12449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12451 fi 12452 12453 CFLAGS="$CFLAGS -pedantic" 12454 12455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 12456printf %s "checking if $CC supports -pedantic... " >&6; } 12457 cacheid=xorg_cv_cc_flag__pedantic 12458 if eval test \${$cacheid+y} 12459then : 12460 printf %s "(cached) " >&6 12461else case e in #( 12462 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12463/* end confdefs.h. */ 12464int i; 12465int 12466main (void) 12467{ 12468 12469 ; 12470 return 0; 12471} 12472_ACEOF 12473if ac_fn_c_try_link "$LINENO" 12474then : 12475 eval $cacheid=yes 12476else case e in #( 12477 e) eval $cacheid=no ;; 12478esac 12479fi 12480rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12481 conftest$ac_exeext conftest.$ac_ext ;; 12482esac 12483fi 12484 12485 12486 CFLAGS="$xorg_testset_save_CFLAGS" 12487 12488 eval supported=\$$cacheid 12489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12490printf "%s\n" "$supported" >&6; } 12491 if test "$supported" = "yes" ; then 12492 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 12493 found="yes" 12494 fi 12495 fi 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511xorg_testset_save_CFLAGS="$CFLAGS" 12512 12513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12516printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12517if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12518then : 12519 printf %s "(cached) " >&6 12520else case e in #( 12521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12522/* end confdefs.h. */ 12523int i; 12524_ACEOF 12525if ac_fn_c_try_compile "$LINENO" 12526then : 12527 xorg_cv_cc_flag_unknown_warning_option=yes 12528else case e in #( 12529 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 12530esac 12531fi 12532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12533esac 12534fi 12535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12536printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12538 CFLAGS="$xorg_testset_save_CFLAGS" 12539fi 12540 12541if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12544 fi 12545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12547printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12548if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12549then : 12550 printf %s "(cached) " >&6 12551else case e in #( 12552 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12553/* end confdefs.h. */ 12554int i; 12555_ACEOF 12556if ac_fn_c_try_compile "$LINENO" 12557then : 12558 xorg_cv_cc_flag_unused_command_line_argument=yes 12559else case e in #( 12560 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 12561esac 12562fi 12563rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12564esac 12565fi 12566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12567printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12568 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12569 CFLAGS="$xorg_testset_save_CFLAGS" 12570fi 12571 12572found="no" 12573 12574 if test $found = "no" ; then 12575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12577 fi 12578 12579 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12581 fi 12582 12583 CFLAGS="$CFLAGS -Werror" 12584 12585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 12586printf %s "checking if $CC supports -Werror... " >&6; } 12587 cacheid=xorg_cv_cc_flag__Werror 12588 if eval test \${$cacheid+y} 12589then : 12590 printf %s "(cached) " >&6 12591else case e in #( 12592 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12593/* end confdefs.h. */ 12594int i; 12595int 12596main (void) 12597{ 12598 12599 ; 12600 return 0; 12601} 12602_ACEOF 12603if ac_fn_c_try_link "$LINENO" 12604then : 12605 eval $cacheid=yes 12606else case e in #( 12607 e) eval $cacheid=no ;; 12608esac 12609fi 12610rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12611 conftest$ac_exeext conftest.$ac_ext ;; 12612esac 12613fi 12614 12615 12616 CFLAGS="$xorg_testset_save_CFLAGS" 12617 12618 eval supported=\$$cacheid 12619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12620printf "%s\n" "$supported" >&6; } 12621 if test "$supported" = "yes" ; then 12622 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 12623 found="yes" 12624 fi 12625 fi 12626 12627 if test $found = "no" ; then 12628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12630 fi 12631 12632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12634 fi 12635 12636 CFLAGS="$CFLAGS -errwarn" 12637 12638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 12639printf %s "checking if $CC supports -errwarn... " >&6; } 12640 cacheid=xorg_cv_cc_flag__errwarn 12641 if eval test \${$cacheid+y} 12642then : 12643 printf %s "(cached) " >&6 12644else case e in #( 12645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12646/* end confdefs.h. */ 12647int i; 12648int 12649main (void) 12650{ 12651 12652 ; 12653 return 0; 12654} 12655_ACEOF 12656if ac_fn_c_try_link "$LINENO" 12657then : 12658 eval $cacheid=yes 12659else case e in #( 12660 e) eval $cacheid=no ;; 12661esac 12662fi 12663rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12664 conftest$ac_exeext conftest.$ac_ext ;; 12665esac 12666fi 12667 12668 12669 CFLAGS="$xorg_testset_save_CFLAGS" 12670 12671 eval supported=\$$cacheid 12672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12673printf "%s\n" "$supported" >&6; } 12674 if test "$supported" = "yes" ; then 12675 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 12676 found="yes" 12677 fi 12678 fi 12679 12680 12681 12682# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 12683# activate it with -Werror, so we add it here explicitly. 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697xorg_testset_save_CFLAGS="$CFLAGS" 12698 12699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12702printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12703if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12704then : 12705 printf %s "(cached) " >&6 12706else case e in #( 12707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12708/* end confdefs.h. */ 12709int i; 12710_ACEOF 12711if ac_fn_c_try_compile "$LINENO" 12712then : 12713 xorg_cv_cc_flag_unknown_warning_option=yes 12714else case e in #( 12715 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 12716esac 12717fi 12718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12719esac 12720fi 12721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12722printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12724 CFLAGS="$xorg_testset_save_CFLAGS" 12725fi 12726 12727if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12730 fi 12731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12733printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12734if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12735then : 12736 printf %s "(cached) " >&6 12737else case e in #( 12738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12739/* end confdefs.h. */ 12740int i; 12741_ACEOF 12742if ac_fn_c_try_compile "$LINENO" 12743then : 12744 xorg_cv_cc_flag_unused_command_line_argument=yes 12745else case e in #( 12746 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 12747esac 12748fi 12749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12750esac 12751fi 12752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12753printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12755 CFLAGS="$xorg_testset_save_CFLAGS" 12756fi 12757 12758found="no" 12759 12760 if test $found = "no" ; then 12761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12763 fi 12764 12765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12767 fi 12768 12769 CFLAGS="$CFLAGS -Werror=attributes" 12770 12771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 12772printf %s "checking if $CC supports -Werror=attributes... " >&6; } 12773 cacheid=xorg_cv_cc_flag__Werror_attributes 12774 if eval test \${$cacheid+y} 12775then : 12776 printf %s "(cached) " >&6 12777else case e in #( 12778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12779/* end confdefs.h. */ 12780int i; 12781int 12782main (void) 12783{ 12784 12785 ; 12786 return 0; 12787} 12788_ACEOF 12789if ac_fn_c_try_link "$LINENO" 12790then : 12791 eval $cacheid=yes 12792else case e in #( 12793 e) eval $cacheid=no ;; 12794esac 12795fi 12796rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12797 conftest$ac_exeext conftest.$ac_ext ;; 12798esac 12799fi 12800 12801 12802 CFLAGS="$xorg_testset_save_CFLAGS" 12803 12804 eval supported=\$$cacheid 12805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12806printf "%s\n" "$supported" >&6; } 12807 if test "$supported" = "yes" ; then 12808 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 12809 found="yes" 12810 fi 12811 fi 12812 12813 12814 12815if test "x$STRICT_COMPILE" = "xyes"; then 12816 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 12817 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 12818fi 12819 12820 12821 12822 12823 12824 12825 12826 12827cat >>confdefs.h <<_ACEOF 12828#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 12829_ACEOF 12830 12831 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 12832 if test "x$PVM" = "x"; then 12833 PVM="0" 12834 fi 12835 12836printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 12837 12838 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 12839 if test "x$PVP" = "x"; then 12840 PVP="0" 12841 fi 12842 12843printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 12844 12845 12846 12847CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 12848mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 12849|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 12850touch \$(top_srcdir)/ChangeLog; \ 12851echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 12852 12853 12854 12855 12856macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 12857INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 12858mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 12859|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 12860touch \$(top_srcdir)/INSTALL; \ 12861echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 12862 12863 12864 12865 12866 12867 12868case $host_os in 12869 solaris*) 12870 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 12871 # check for a man page file found in later versions that use 12872 # traditional section numbers instead 12873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 12874printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 12875if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 12876then : 12877 printf %s "(cached) " >&6 12878else case e in #( 12879 e) test "$cross_compiling" = yes && 12880 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 12881if test -r "/usr/share/man/man7/attributes.7"; then 12882 ac_cv_file__usr_share_man_man7_attributes_7=yes 12883else 12884 ac_cv_file__usr_share_man_man7_attributes_7=no 12885fi ;; 12886esac 12887fi 12888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 12889printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 12890if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 12891then : 12892 SYSV_MAN_SECTIONS=false 12893else case e in #( 12894 e) SYSV_MAN_SECTIONS=true ;; 12895esac 12896fi 12897 12898 ;; 12899 *) SYSV_MAN_SECTIONS=false ;; 12900esac 12901 12902if test x$APP_MAN_SUFFIX = x ; then 12903 APP_MAN_SUFFIX=1 12904fi 12905if test x$APP_MAN_DIR = x ; then 12906 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 12907fi 12908 12909if test x$LIB_MAN_SUFFIX = x ; then 12910 LIB_MAN_SUFFIX=3 12911fi 12912if test x$LIB_MAN_DIR = x ; then 12913 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 12914fi 12915 12916if test x$FILE_MAN_SUFFIX = x ; then 12917 case $SYSV_MAN_SECTIONS in 12918 true) FILE_MAN_SUFFIX=4 ;; 12919 *) FILE_MAN_SUFFIX=5 ;; 12920 esac 12921fi 12922if test x$FILE_MAN_DIR = x ; then 12923 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 12924fi 12925 12926if test x$MISC_MAN_SUFFIX = x ; then 12927 case $SYSV_MAN_SECTIONS in 12928 true) MISC_MAN_SUFFIX=5 ;; 12929 *) MISC_MAN_SUFFIX=7 ;; 12930 esac 12931fi 12932if test x$MISC_MAN_DIR = x ; then 12933 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 12934fi 12935 12936if test x$DRIVER_MAN_SUFFIX = x ; then 12937 case $SYSV_MAN_SECTIONS in 12938 true) DRIVER_MAN_SUFFIX=7 ;; 12939 *) DRIVER_MAN_SUFFIX=4 ;; 12940 esac 12941fi 12942if test x$DRIVER_MAN_DIR = x ; then 12943 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 12944fi 12945 12946if test x$ADMIN_MAN_SUFFIX = x ; then 12947 case $SYSV_MAN_SECTIONS in 12948 true) ADMIN_MAN_SUFFIX=1m ;; 12949 *) ADMIN_MAN_SUFFIX=8 ;; 12950 esac 12951fi 12952if test x$ADMIN_MAN_DIR = x ; then 12953 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 12954fi 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970XORG_MAN_PAGE="X Version 11" 12971 12972MAN_SUBSTS="\ 12973 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 12974 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 12975 -e 's|__xservername__|Xorg|g' \ 12976 -e 's|__xconfigfile__|xorg.conf|g' \ 12977 -e 's|__projectroot__|\$(prefix)|g' \ 12978 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 12979 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 12980 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 12981 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 12982 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 12983 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 12984 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 12985 12986 12987 12988# Check whether --enable-silent-rules was given. 12989if test ${enable_silent_rules+y} 12990then : 12991 enableval=$enable_silent_rules; 12992fi 12993 12994case $enable_silent_rules in # ((( 12995 yes) AM_DEFAULT_VERBOSITY=0;; 12996 no) AM_DEFAULT_VERBOSITY=1;; 12997 *) AM_DEFAULT_VERBOSITY=0;; 12998esac 12999am_make=${MAKE-make} 13000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 13001printf %s "checking whether $am_make supports nested variables... " >&6; } 13002if test ${am_cv_make_support_nested_variables+y} 13003then : 13004 printf %s "(cached) " >&6 13005else case e in #( 13006 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 13007BAR0=false 13008BAR1=true 13009V=1 13010am__doit: 13011 @$(TRUE) 13012.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 13013 am_cv_make_support_nested_variables=yes 13014else 13015 am_cv_make_support_nested_variables=no 13016fi ;; 13017esac 13018fi 13019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 13020printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 13021if test $am_cv_make_support_nested_variables = yes; then 13022 AM_V='$(V)' 13023 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 13024else 13025 AM_V=$AM_DEFAULT_VERBOSITY 13026 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 13027fi 13028AM_BACKSLASH='\' 13029 13030 13031 13032 13033 13034 13035 13036 13037# Check whether --with-doxygen was given. 13038if test ${with_doxygen+y} 13039then : 13040 withval=$with_doxygen; use_doxygen=$withval 13041else case e in #( 13042 e) use_doxygen=auto ;; 13043esac 13044fi 13045 13046 13047 13048if test "x$use_doxygen" = x"auto"; then 13049 # Extract the first word of "doxygen", so it can be a program name with args. 13050set dummy doxygen; ac_word=$2 13051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13052printf %s "checking for $ac_word... " >&6; } 13053if test ${ac_cv_path_DOXYGEN+y} 13054then : 13055 printf %s "(cached) " >&6 13056else case e in #( 13057 e) case $DOXYGEN in 13058 [\\/]* | ?:[\\/]*) 13059 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 13060 ;; 13061 *) 13062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13063for as_dir in $PATH 13064do 13065 IFS=$as_save_IFS 13066 case $as_dir in #((( 13067 '') as_dir=./ ;; 13068 */) ;; 13069 *) as_dir=$as_dir/ ;; 13070 esac 13071 for ac_exec_ext in '' $ac_executable_extensions; do 13072 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13073 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 13074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13075 break 2 13076 fi 13077done 13078 done 13079IFS=$as_save_IFS 13080 13081 ;; 13082esac ;; 13083esac 13084fi 13085DOXYGEN=$ac_cv_path_DOXYGEN 13086if test -n "$DOXYGEN"; then 13087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 13088printf "%s\n" "$DOXYGEN" >&6; } 13089else 13090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13091printf "%s\n" "no" >&6; } 13092fi 13093 13094 13095 if test "x$DOXYGEN" = "x"; then 13096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5 13097printf "%s\n" "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;} 13098 have_doxygen=no 13099 else 13100 have_doxygen=yes 13101 fi 13102elif test "x$use_doxygen" = x"yes" ; then 13103 # Extract the first word of "doxygen", so it can be a program name with args. 13104set dummy doxygen; ac_word=$2 13105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13106printf %s "checking for $ac_word... " >&6; } 13107if test ${ac_cv_path_DOXYGEN+y} 13108then : 13109 printf %s "(cached) " >&6 13110else case e in #( 13111 e) case $DOXYGEN in 13112 [\\/]* | ?:[\\/]*) 13113 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 13114 ;; 13115 *) 13116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13117for as_dir in $PATH 13118do 13119 IFS=$as_save_IFS 13120 case $as_dir in #((( 13121 '') as_dir=./ ;; 13122 */) ;; 13123 *) as_dir=$as_dir/ ;; 13124 esac 13125 for ac_exec_ext in '' $ac_executable_extensions; do 13126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13127 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 13128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13129 break 2 13130 fi 13131done 13132 done 13133IFS=$as_save_IFS 13134 13135 ;; 13136esac ;; 13137esac 13138fi 13139DOXYGEN=$ac_cv_path_DOXYGEN 13140if test -n "$DOXYGEN"; then 13141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 13142printf "%s\n" "$DOXYGEN" >&6; } 13143else 13144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13145printf "%s\n" "no" >&6; } 13146fi 13147 13148 13149 if test "x$DOXYGEN" = "x"; then 13150 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5 13151 fi 13152 have_doxygen=yes 13153elif test "x$use_doxygen" = x"no" ; then 13154 if test "x$DOXYGEN" != "x"; then 13155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5 13156printf "%s\n" "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;} 13157 fi 13158 have_doxygen=no 13159else 13160 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5 13161fi 13162if test "$have_doxygen" = yes; then 13163 # scrape the doxygen version 13164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5 13165printf %s "checking the doxygen version... " >&6; } 13166 doxygen_version=`$DOXYGEN --version 2>/dev/null` 13167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5 13168printf "%s\n" "$doxygen_version" >&6; } 13169 as_arg_v1=$doxygen_version 13170as_arg_v2=1.6.1 13171awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 13172case $? in #( 13173 1) : 13174 if test "x$use_doxygen" = xauto; then 13175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5 13176printf "%s\n" "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;} 13177 have_doxygen=no 13178 else 13179 as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5 13180 fi ;; #( 13181 0) : 13182 ;; #( 13183 2) : 13184 ;; #( 13185 *) : 13186 ;; 13187esac 13188fi 13189 13190HAVE_DOT=no 13191if test "x$have_doxygen" = "xyes"; then 13192 # Extract the first word of "dot", so it can be a program name with args. 13193set dummy dot; ac_word=$2 13194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13195printf %s "checking for $ac_word... " >&6; } 13196if test ${ac_cv_path_DOT+y} 13197then : 13198 printf %s "(cached) " >&6 13199else case e in #( 13200 e) case $DOT in 13201 [\\/]* | ?:[\\/]*) 13202 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 13203 ;; 13204 *) 13205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13206for as_dir in $PATH 13207do 13208 IFS=$as_save_IFS 13209 case $as_dir in #((( 13210 '') as_dir=./ ;; 13211 */) ;; 13212 *) as_dir=$as_dir/ ;; 13213 esac 13214 for ac_exec_ext in '' $ac_executable_extensions; do 13215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13216 ac_cv_path_DOT="$as_dir$ac_word$ac_exec_ext" 13217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13218 break 2 13219 fi 13220done 13221 done 13222IFS=$as_save_IFS 13223 13224 ;; 13225esac ;; 13226esac 13227fi 13228DOT=$ac_cv_path_DOT 13229if test -n "$DOT"; then 13230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 13231printf "%s\n" "$DOT" >&6; } 13232else 13233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13234printf "%s\n" "no" >&6; } 13235fi 13236 13237 13238 if test "x$DOT" != "x"; then 13239 HAVE_DOT=yes 13240 fi 13241fi 13242 13243 13244 if test "$HAVE_DOT" = "yes"; then 13245 HAVE_DOT_TRUE= 13246 HAVE_DOT_FALSE='#' 13247else 13248 HAVE_DOT_TRUE='#' 13249 HAVE_DOT_FALSE= 13250fi 13251 13252 if test "$have_doxygen" = yes; then 13253 HAVE_DOXYGEN_TRUE= 13254 HAVE_DOXYGEN_FALSE='#' 13255else 13256 HAVE_DOXYGEN_TRUE='#' 13257 HAVE_DOXYGEN_FALSE= 13258fi 13259 13260 13261 13262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 13263printf %s "checking for X.Org SGML entities >= 1.8... " >&6; } 13264XORG_SGML_PATH= 13265if test -n "$PKG_CONFIG" && \ 13266 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 13267 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 13268 ac_status=$? 13269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13270 test $ac_status = 0; }; then 13271 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 13272else 13273 : 13274 13275fi 13276 13277# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 13278# the path and the name of the doc stylesheet 13279if test "x$XORG_SGML_PATH" != "x" ; then 13280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 13281printf "%s\n" "$XORG_SGML_PATH" >&6; } 13282 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 13283 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 13284else 13285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13286printf "%s\n" "no" >&6; } 13287fi 13288 13289 13290 13291 13292 if test "x$XSL_STYLESHEET" != "x"; then 13293 HAVE_STYLESHEETS_TRUE= 13294 HAVE_STYLESHEETS_FALSE='#' 13295else 13296 HAVE_STYLESHEETS_TRUE='#' 13297 HAVE_STYLESHEETS_FALSE= 13298fi 13299 13300 13301 13302 13303# Check whether --enable-docs was given. 13304if test ${enable_docs+y} 13305then : 13306 enableval=$enable_docs; build_docs=$enableval 13307else case e in #( 13308 e) build_docs=yes ;; 13309esac 13310fi 13311 13312 13313 if test x$build_docs = xyes; then 13314 ENABLE_DOCS_TRUE= 13315 ENABLE_DOCS_FALSE='#' 13316else 13317 ENABLE_DOCS_TRUE='#' 13318 ENABLE_DOCS_FALSE= 13319fi 13320 13321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 13322printf %s "checking whether to build documentation... " >&6; } 13323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 13324printf "%s\n" "$build_docs" >&6; } 13325 13326 13327 13328# Check whether --enable-devel-docs was given. 13329if test ${enable_devel_docs+y} 13330then : 13331 enableval=$enable_devel_docs; build_devel_docs=$enableval 13332else case e in #( 13333 e) build_devel_docs=yes ;; 13334esac 13335fi 13336 13337 13338 if test x$build_devel_docs = xyes; then 13339 ENABLE_DEVEL_DOCS_TRUE= 13340 ENABLE_DEVEL_DOCS_FALSE='#' 13341else 13342 ENABLE_DEVEL_DOCS_TRUE='#' 13343 ENABLE_DEVEL_DOCS_FALSE= 13344fi 13345 13346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 13347printf %s "checking whether to build developer documentation... " >&6; } 13348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 13349printf "%s\n" "$build_devel_docs" >&6; } 13350 13351 13352 13353 13354 13355# Check whether --with-xmlto was given. 13356if test ${with_xmlto+y} 13357then : 13358 withval=$with_xmlto; use_xmlto=$withval 13359else case e in #( 13360 e) use_xmlto=auto ;; 13361esac 13362fi 13363 13364 13365 13366if test "x$use_xmlto" = x"auto"; then 13367 # Extract the first word of "xmlto", so it can be a program name with args. 13368set dummy xmlto; ac_word=$2 13369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13370printf %s "checking for $ac_word... " >&6; } 13371if test ${ac_cv_path_XMLTO+y} 13372then : 13373 printf %s "(cached) " >&6 13374else case e in #( 13375 e) case $XMLTO in 13376 [\\/]* | ?:[\\/]*) 13377 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 13378 ;; 13379 *) 13380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13381for as_dir in $PATH 13382do 13383 IFS=$as_save_IFS 13384 case $as_dir in #((( 13385 '') as_dir=./ ;; 13386 */) ;; 13387 *) as_dir=$as_dir/ ;; 13388 esac 13389 for ac_exec_ext in '' $ac_executable_extensions; do 13390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13391 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 13392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13393 break 2 13394 fi 13395done 13396 done 13397IFS=$as_save_IFS 13398 13399 ;; 13400esac ;; 13401esac 13402fi 13403XMLTO=$ac_cv_path_XMLTO 13404if test -n "$XMLTO"; then 13405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 13406printf "%s\n" "$XMLTO" >&6; } 13407else 13408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13409printf "%s\n" "no" >&6; } 13410fi 13411 13412 13413 if test "x$XMLTO" = "x"; then 13414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 13415printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 13416 have_xmlto=no 13417 else 13418 have_xmlto=yes 13419 fi 13420elif test "x$use_xmlto" = x"yes" ; then 13421 # Extract the first word of "xmlto", so it can be a program name with args. 13422set dummy xmlto; ac_word=$2 13423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13424printf %s "checking for $ac_word... " >&6; } 13425if test ${ac_cv_path_XMLTO+y} 13426then : 13427 printf %s "(cached) " >&6 13428else case e in #( 13429 e) case $XMLTO in 13430 [\\/]* | ?:[\\/]*) 13431 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 13432 ;; 13433 *) 13434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13435for as_dir in $PATH 13436do 13437 IFS=$as_save_IFS 13438 case $as_dir in #((( 13439 '') as_dir=./ ;; 13440 */) ;; 13441 *) as_dir=$as_dir/ ;; 13442 esac 13443 for ac_exec_ext in '' $ac_executable_extensions; do 13444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13445 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 13446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13447 break 2 13448 fi 13449done 13450 done 13451IFS=$as_save_IFS 13452 13453 ;; 13454esac ;; 13455esac 13456fi 13457XMLTO=$ac_cv_path_XMLTO 13458if test -n "$XMLTO"; then 13459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 13460printf "%s\n" "$XMLTO" >&6; } 13461else 13462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13463printf "%s\n" "no" >&6; } 13464fi 13465 13466 13467 if test "x$XMLTO" = "x"; then 13468 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 13469 fi 13470 have_xmlto=yes 13471elif test "x$use_xmlto" = x"no" ; then 13472 if test "x$XMLTO" != "x"; then 13473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 13474printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 13475 fi 13476 have_xmlto=no 13477else 13478 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 13479fi 13480 13481# Test for a minimum version of xmlto, if provided. 13482if test "$have_xmlto" = yes; then 13483 # scrape the xmlto version 13484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 13485printf %s "checking the xmlto version... " >&6; } 13486 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 13487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 13488printf "%s\n" "$xmlto_version" >&6; } 13489 as_arg_v1=$xmlto_version 13490as_arg_v2=0.0.20 13491awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 13492case $? in #( 13493 1) : 13494 if test "x$use_xmlto" = xauto; then 13495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 13496printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 13497 have_xmlto=no 13498 else 13499 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 13500 fi ;; #( 13501 0) : 13502 ;; #( 13503 2) : 13504 ;; #( 13505 *) : 13506 ;; 13507esac 13508fi 13509 13510# Test for the ability of xmlto to generate a text target 13511# 13512# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 13513# following test for empty XML docbook files. 13514# For compatibility reasons use the following empty XML docbook file and if 13515# it fails try it again with a non-empty XML file. 13516have_xmlto_text=no 13517cat > conftest.xml << "EOF" 13518EOF 13519if test "$have_xmlto" = yes 13520then : 13521 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 13522then : 13523 have_xmlto_text=yes 13524else case e in #( 13525 e) # Try it again with a non-empty XML file. 13526 cat > conftest.xml << "EOF" 13527<x></x> 13528EOF 13529 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 13530then : 13531 have_xmlto_text=yes 13532else case e in #( 13533 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 13534printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;; 13535esac 13536fi ;; 13537esac 13538fi 13539fi 13540rm -f conftest.xml 13541 if test $have_xmlto_text = yes; then 13542 HAVE_XMLTO_TEXT_TRUE= 13543 HAVE_XMLTO_TEXT_FALSE='#' 13544else 13545 HAVE_XMLTO_TEXT_TRUE='#' 13546 HAVE_XMLTO_TEXT_FALSE= 13547fi 13548 13549 if test "$have_xmlto" = yes; then 13550 HAVE_XMLTO_TRUE= 13551 HAVE_XMLTO_FALSE='#' 13552else 13553 HAVE_XMLTO_TRUE='#' 13554 HAVE_XMLTO_FALSE= 13555fi 13556 13557 13558 13559 13560 13561 13562# Check whether --with-fop was given. 13563if test ${with_fop+y} 13564then : 13565 withval=$with_fop; use_fop=$withval 13566else case e in #( 13567 e) use_fop=auto ;; 13568esac 13569fi 13570 13571 13572 13573if test "x$use_fop" = x"auto"; then 13574 # Extract the first word of "fop", so it can be a program name with args. 13575set dummy fop; ac_word=$2 13576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13577printf %s "checking for $ac_word... " >&6; } 13578if test ${ac_cv_path_FOP+y} 13579then : 13580 printf %s "(cached) " >&6 13581else case e in #( 13582 e) case $FOP in 13583 [\\/]* | ?:[\\/]*) 13584 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 13585 ;; 13586 *) 13587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13588for as_dir in $PATH 13589do 13590 IFS=$as_save_IFS 13591 case $as_dir in #((( 13592 '') as_dir=./ ;; 13593 */) ;; 13594 *) as_dir=$as_dir/ ;; 13595 esac 13596 for ac_exec_ext in '' $ac_executable_extensions; do 13597 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13598 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 13599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13600 break 2 13601 fi 13602done 13603 done 13604IFS=$as_save_IFS 13605 13606 ;; 13607esac ;; 13608esac 13609fi 13610FOP=$ac_cv_path_FOP 13611if test -n "$FOP"; then 13612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 13613printf "%s\n" "$FOP" >&6; } 13614else 13615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13616printf "%s\n" "no" >&6; } 13617fi 13618 13619 13620 if test "x$FOP" = "x"; then 13621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 13622printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 13623 have_fop=no 13624 else 13625 have_fop=yes 13626 fi 13627elif test "x$use_fop" = x"yes" ; then 13628 # Extract the first word of "fop", so it can be a program name with args. 13629set dummy fop; ac_word=$2 13630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13631printf %s "checking for $ac_word... " >&6; } 13632if test ${ac_cv_path_FOP+y} 13633then : 13634 printf %s "(cached) " >&6 13635else case e in #( 13636 e) case $FOP in 13637 [\\/]* | ?:[\\/]*) 13638 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 13639 ;; 13640 *) 13641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13642for as_dir in $PATH 13643do 13644 IFS=$as_save_IFS 13645 case $as_dir in #((( 13646 '') as_dir=./ ;; 13647 */) ;; 13648 *) as_dir=$as_dir/ ;; 13649 esac 13650 for ac_exec_ext in '' $ac_executable_extensions; do 13651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13652 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 13653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13654 break 2 13655 fi 13656done 13657 done 13658IFS=$as_save_IFS 13659 13660 ;; 13661esac ;; 13662esac 13663fi 13664FOP=$ac_cv_path_FOP 13665if test -n "$FOP"; then 13666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 13667printf "%s\n" "$FOP" >&6; } 13668else 13669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13670printf "%s\n" "no" >&6; } 13671fi 13672 13673 13674 if test "x$FOP" = "x"; then 13675 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 13676 fi 13677 have_fop=yes 13678elif test "x$use_fop" = x"no" ; then 13679 if test "x$FOP" != "x"; then 13680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 13681printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 13682 fi 13683 have_fop=no 13684else 13685 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 13686fi 13687 13688# Test for a minimum version of fop, if provided. 13689 13690 if test "$have_fop" = yes; then 13691 HAVE_FOP_TRUE= 13692 HAVE_FOP_FALSE='#' 13693else 13694 HAVE_FOP_TRUE='#' 13695 HAVE_FOP_FALSE= 13696fi 13697 13698 13699 13700 13701# Preserves the interface, should it be implemented later 13702 13703 13704 13705# Check whether --with-xsltproc was given. 13706if test ${with_xsltproc+y} 13707then : 13708 withval=$with_xsltproc; use_xsltproc=$withval 13709else case e in #( 13710 e) use_xsltproc=auto ;; 13711esac 13712fi 13713 13714 13715 13716if test "x$use_xsltproc" = x"auto"; then 13717 # Extract the first word of "xsltproc", so it can be a program name with args. 13718set dummy xsltproc; ac_word=$2 13719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13720printf %s "checking for $ac_word... " >&6; } 13721if test ${ac_cv_path_XSLTPROC+y} 13722then : 13723 printf %s "(cached) " >&6 13724else case e in #( 13725 e) case $XSLTPROC in 13726 [\\/]* | ?:[\\/]*) 13727 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 13728 ;; 13729 *) 13730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13731for as_dir in $PATH 13732do 13733 IFS=$as_save_IFS 13734 case $as_dir in #((( 13735 '') as_dir=./ ;; 13736 */) ;; 13737 *) as_dir=$as_dir/ ;; 13738 esac 13739 for ac_exec_ext in '' $ac_executable_extensions; do 13740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13741 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 13742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13743 break 2 13744 fi 13745done 13746 done 13747IFS=$as_save_IFS 13748 13749 ;; 13750esac ;; 13751esac 13752fi 13753XSLTPROC=$ac_cv_path_XSLTPROC 13754if test -n "$XSLTPROC"; then 13755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 13756printf "%s\n" "$XSLTPROC" >&6; } 13757else 13758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13759printf "%s\n" "no" >&6; } 13760fi 13761 13762 13763 if test "x$XSLTPROC" = "x"; then 13764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 13765printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 13766 have_xsltproc=no 13767 else 13768 have_xsltproc=yes 13769 fi 13770elif test "x$use_xsltproc" = x"yes" ; then 13771 # Extract the first word of "xsltproc", so it can be a program name with args. 13772set dummy xsltproc; ac_word=$2 13773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13774printf %s "checking for $ac_word... " >&6; } 13775if test ${ac_cv_path_XSLTPROC+y} 13776then : 13777 printf %s "(cached) " >&6 13778else case e in #( 13779 e) case $XSLTPROC in 13780 [\\/]* | ?:[\\/]*) 13781 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 13782 ;; 13783 *) 13784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13785for as_dir in $PATH 13786do 13787 IFS=$as_save_IFS 13788 case $as_dir in #((( 13789 '') as_dir=./ ;; 13790 */) ;; 13791 *) as_dir=$as_dir/ ;; 13792 esac 13793 for ac_exec_ext in '' $ac_executable_extensions; do 13794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13795 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 13796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13797 break 2 13798 fi 13799done 13800 done 13801IFS=$as_save_IFS 13802 13803 ;; 13804esac ;; 13805esac 13806fi 13807XSLTPROC=$ac_cv_path_XSLTPROC 13808if test -n "$XSLTPROC"; then 13809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 13810printf "%s\n" "$XSLTPROC" >&6; } 13811else 13812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13813printf "%s\n" "no" >&6; } 13814fi 13815 13816 13817 if test "x$XSLTPROC" = "x"; then 13818 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 13819 fi 13820 have_xsltproc=yes 13821elif test "x$use_xsltproc" = x"no" ; then 13822 if test "x$XSLTPROC" != "x"; then 13823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 13824printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 13825 fi 13826 have_xsltproc=no 13827else 13828 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 13829fi 13830 13831 if test "$have_xsltproc" = yes; then 13832 HAVE_XSLTPROC_TRUE= 13833 HAVE_XSLTPROC_FALSE='#' 13834else 13835 HAVE_XSLTPROC_TRUE='#' 13836 HAVE_XSLTPROC_FALSE= 13837fi 13838 13839 13840 13841 13842 13843 13844 13845# Check for different types of support on different platforms 13846case $host_os in 13847 solaris*) 13848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 13849printf %s "checking for umem_alloc in -lumem... " >&6; } 13850if test ${ac_cv_lib_umem_umem_alloc+y} 13851then : 13852 printf %s "(cached) " >&6 13853else case e in #( 13854 e) ac_check_lib_save_LIBS=$LIBS 13855LIBS="-lumem $LIBS" 13856cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13857/* end confdefs.h. */ 13858 13859/* Override any GCC internal prototype to avoid an error. 13860 Use char because int might match the return type of a GCC 13861 builtin and then its argument prototype would still apply. 13862 The 'extern "C"' is for builds by C++ compilers; 13863 although this is not generally supported in C code supporting it here 13864 has little cost and some practical benefit (sr 110532). */ 13865#ifdef __cplusplus 13866extern "C" 13867#endif 13868char umem_alloc (void); 13869int 13870main (void) 13871{ 13872return umem_alloc (); 13873 ; 13874 return 0; 13875} 13876_ACEOF 13877if ac_fn_c_try_link "$LINENO" 13878then : 13879 ac_cv_lib_umem_umem_alloc=yes 13880else case e in #( 13881 e) ac_cv_lib_umem_umem_alloc=no ;; 13882esac 13883fi 13884rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13885 conftest$ac_exeext conftest.$ac_ext 13886LIBS=$ac_check_lib_save_LIBS ;; 13887esac 13888fi 13889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 13890printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; } 13891if test "x$ac_cv_lib_umem_umem_alloc" = xyes 13892then : 13893 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 13894fi 13895 13896 ;; 13897 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 13898 # both directly and inverted, so should not be 0 or 255. 13899 malloc_debug_env='MALLOC_PERTURB_=15' 13900 ;; 13901 darwin*) 13902 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 13903 ;; 13904 *bsd*) 13905 malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 13906 ;; 13907esac 13908 13909# User supplied flags override default flags 13910if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 13911 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 13912fi 13913 13914XORG_MALLOC_DEBUG_ENV=$malloc_debug_env 13915 13916 13917 13918 13919 13920 13921 13922# Check whether --enable-unit-tests was given. 13923if test ${enable_unit_tests+y} 13924then : 13925 enableval=$enable_unit_tests; enable_unit_tests=$enableval 13926else case e in #( 13927 e) enable_unit_tests=auto ;; 13928esac 13929fi 13930 13931 13932 if test "x$enable_unit_tests" != xno; then 13933 ENABLE_UNIT_TESTS_TRUE= 13934 ENABLE_UNIT_TESTS_FALSE='#' 13935else 13936 ENABLE_UNIT_TESTS_TRUE='#' 13937 ENABLE_UNIT_TESTS_FALSE= 13938fi 13939 13940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5 13941printf %s "checking whether to build unit test cases... " >&6; } 13942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5 13943printf "%s\n" "$enable_unit_tests" >&6; } 13944 13945 13946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-wrap,exit" >&5 13947printf %s "checking whether the linker accepts -Wl,-wrap,exit... " >&6; } 13948if test ${xorg_cv_linker_flags__Wl__wrap_exit+y} 13949then : 13950 printf %s "(cached) " >&6 13951else case e in #( 13952 e) 13953 ax_save_FLAGS=$LDFLAGS 13954 LDFLAGS="-Wl,-wrap,exit" 13955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13956/* end confdefs.h. */ 13957#include <stdlib.h> 13958 void __wrap_exit(int status) { return; } 13959int 13960main (void) 13961{ 13962exit(0); 13963 ; 13964 return 0; 13965} 13966_ACEOF 13967if ac_fn_c_try_link "$LINENO" 13968then : 13969 xorg_cv_linker_flags__Wl__wrap_exit=yes 13970else case e in #( 13971 e) xorg_cv_linker_flags__Wl__wrap_exit=no ;; 13972esac 13973fi 13974rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13975 conftest$ac_exeext conftest.$ac_ext 13976 LDFLAGS=$ax_save_FLAGS ;; 13977esac 13978fi 13979 13980eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__wrap_exit 13981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5 13982printf "%s\n" "$xorg_check_linker_flags" >&6; } 13983if test "x$xorg_check_linker_flags" = xyes; then 13984 have_ld_wrap=yes 13985else 13986 have_ld_wrap=no 13987fi 13988 13989# Not having ld wrap when unit testing has been explicitly requested is an error 13990if test "x$enable_unit_tests" = x"yes" -a "xoptional" != "xoptional"; then 13991 if test "x$have_ld_wrap" = x"no"; then 13992 as_fn_error $? "--enable-unit-tests=yes specified but ld -wrap support is not available" "$LINENO" 5 13993 fi 13994fi 13995 if test "$have_ld_wrap" = yes; then 13996 HAVE_LD_WRAP_TRUE= 13997 HAVE_LD_WRAP_FALSE='#' 13998else 13999 HAVE_LD_WRAP_TRUE='#' 14000 HAVE_LD_WRAP_FALSE= 14001fi 14002 14003# 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018ac_config_headers="$ac_config_headers include/do-not-use-config.h" 14019 14020ac_config_headers="$ac_config_headers include/xorg-server.h" 14021 14022ac_config_headers="$ac_config_headers include/dix-config.h" 14023 14024ac_config_headers="$ac_config_headers include/xorg-config.h" 14025 14026ac_config_headers="$ac_config_headers include/xkb-config.h" 14027 14028ac_config_headers="$ac_config_headers include/xwin-config.h" 14029 14030ac_config_headers="$ac_config_headers include/version-config.h" 14031 14032 14033# By default we simply use the C compiler to build assembly code. 14034 14035test "${CCAS+set}" = set || CCAS=$CC 14036test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 14037 14038 14039 14040depcc="$CCAS" am_compiler_list= 14041 14042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 14043printf %s "checking dependency style of $depcc... " >&6; } 14044if test ${am_cv_CCAS_dependencies_compiler_type+y} 14045then : 14046 printf %s "(cached) " >&6 14047else case e in #( 14048 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 14049 # We make a subdir and do the tests there. Otherwise we can end up 14050 # making bogus files that we don't know about and never remove. For 14051 # instance it was reported that on HP-UX the gcc test will end up 14052 # making a dummy file named 'D' -- because '-MD' means "put the output 14053 # in D". 14054 rm -rf conftest.dir 14055 mkdir conftest.dir 14056 # Copy depcomp to subdir because otherwise we won't find it if we're 14057 # using a relative directory. 14058 cp "$am_depcomp" conftest.dir 14059 cd conftest.dir 14060 # We will build objects and dependencies in a subdirectory because 14061 # it helps to detect inapplicable dependency modes. For instance 14062 # both Tru64's cc and ICC support -MD to output dependencies as a 14063 # side effect of compilation, but ICC will put the dependencies in 14064 # the current directory while Tru64 will put them in the object 14065 # directory. 14066 mkdir sub 14067 14068 am_cv_CCAS_dependencies_compiler_type=none 14069 if test "$am_compiler_list" = ""; then 14070 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 14071 fi 14072 am__universal=false 14073 14074 14075 for depmode in $am_compiler_list; do 14076 # Setup a source with many dependencies, because some compilers 14077 # like to wrap large dependency lists on column 80 (with \), and 14078 # we should not choose a depcomp mode which is confused by this. 14079 # 14080 # We need to recreate these files for each test, as the compiler may 14081 # overwrite some of them when testing with obscure command lines. 14082 # This happens at least with the AIX C compiler. 14083 : > sub/conftest.c 14084 for i in 1 2 3 4 5 6; do 14085 echo '#include "conftst'$i'.h"' >> sub/conftest.c 14086 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 14087 # Solaris 10 /bin/sh. 14088 echo '/* dummy */' > sub/conftst$i.h 14089 done 14090 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 14091 14092 # We check with '-c' and '-o' for the sake of the "dashmstdout" 14093 # mode. It turns out that the SunPro C++ compiler does not properly 14094 # handle '-M -o', and we need to detect this. Also, some Intel 14095 # versions had trouble with output in subdirs. 14096 am__obj=sub/conftest.${OBJEXT-o} 14097 am__minus_obj="-o $am__obj" 14098 case $depmode in 14099 gcc) 14100 # This depmode causes a compiler race in universal mode. 14101 test "$am__universal" = false || continue 14102 ;; 14103 nosideeffect) 14104 # After this tag, mechanisms are not by side-effect, so they'll 14105 # only be used when explicitly requested. 14106 if test "x$enable_dependency_tracking" = xyes; then 14107 continue 14108 else 14109 break 14110 fi 14111 ;; 14112 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 14113 # This compiler won't grok '-c -o', but also, the minuso test has 14114 # not run yet. These depmodes are late enough in the game, and 14115 # so weak that their functioning should not be impacted. 14116 am__obj=conftest.${OBJEXT-o} 14117 am__minus_obj= 14118 ;; 14119 none) break ;; 14120 esac 14121 if depmode=$depmode \ 14122 source=sub/conftest.c object=$am__obj \ 14123 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 14124 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 14125 >/dev/null 2>conftest.err && 14126 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 14127 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 14128 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 14129 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 14130 # icc doesn't choke on unknown options, it will just issue warnings 14131 # or remarks (even with -Werror). So we grep stderr for any message 14132 # that says an option was ignored or not supported. 14133 # When given -MP, icc 7.0 and 7.1 complain thusly: 14134 # icc: Command line warning: ignoring option '-M'; no argument required 14135 # The diagnosis changed in icc 8.0: 14136 # icc: Command line remark: option '-MP' not supported 14137 if (grep 'ignoring option' conftest.err || 14138 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 14139 am_cv_CCAS_dependencies_compiler_type=$depmode 14140 break 14141 fi 14142 fi 14143 done 14144 14145 cd .. 14146 rm -rf conftest.dir 14147else 14148 am_cv_CCAS_dependencies_compiler_type=none 14149fi 14150 ;; 14151esac 14152fi 14153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 14154printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; } 14155CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 14156 14157 if 14158 test "x$enable_dependency_tracking" != xno \ 14159 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 14160 am__fastdepCCAS_TRUE= 14161 am__fastdepCCAS_FALSE='#' 14162else 14163 am__fastdepCCAS_TRUE='#' 14164 am__fastdepCCAS_FALSE= 14165fi 14166 14167 14168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 14169printf %s "checking whether ln -s works... " >&6; } 14170LN_S=$as_ln_s 14171if test "$LN_S" = "ln -s"; then 14172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14173printf "%s\n" "yes" >&6; } 14174else 14175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 14176printf "%s\n" "no, using $LN_S" >&6; } 14177fi 14178 14179 14180case `pwd` in 14181 *\ * | *\ *) 14182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 14183printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 14184esac 14185 14186 14187 14188macro_version='2.4.7' 14189macro_revision='2.4.7' 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204ltmain=$ac_aux_dir/ltmain.sh 14205 14206# Backslashify metacharacters that are still active within 14207# double-quoted strings. 14208sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 14209 14210# Same as above, but do not quote variable references. 14211double_quote_subst='s/\(["`\\]\)/\\\1/g' 14212 14213# Sed substitution to delay expansion of an escaped shell variable in a 14214# double_quote_subst'ed string. 14215delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 14216 14217# Sed substitution to delay expansion of an escaped single quote. 14218delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 14219 14220# Sed substitution to avoid accidental globbing in evaled expressions 14221no_glob_subst='s/\*/\\\*/g' 14222 14223ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14224ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 14225ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 14226 14227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 14228printf %s "checking how to print strings... " >&6; } 14229# Test print first, because it will be a builtin if present. 14230if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 14231 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 14232 ECHO='print -r --' 14233elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 14234 ECHO='printf %s\n' 14235else 14236 # Use this function as a fallback that always works. 14237 func_fallback_echo () 14238 { 14239 eval 'cat <<_LTECHO_EOF 14240$1 14241_LTECHO_EOF' 14242 } 14243 ECHO='func_fallback_echo' 14244fi 14245 14246# func_echo_all arg... 14247# Invoke $ECHO with all args, space-separated. 14248func_echo_all () 14249{ 14250 $ECHO "" 14251} 14252 14253case $ECHO in 14254 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 14255printf "%s\n" "printf" >&6; } ;; 14256 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 14257printf "%s\n" "print -r" >&6; } ;; 14258 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 14259printf "%s\n" "cat" >&6; } ;; 14260esac 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14276printf %s "checking for a sed that does not truncate output... " >&6; } 14277if test ${ac_cv_path_SED+y} 14278then : 14279 printf %s "(cached) " >&6 14280else case e in #( 14281 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14282 for ac_i in 1 2 3 4 5 6 7; do 14283 ac_script="$ac_script$as_nl$ac_script" 14284 done 14285 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14286 { ac_script=; unset ac_script;} 14287 if test -z "$SED"; then 14288 ac_path_SED_found=false 14289 # Loop through the user's path and test for each of PROGNAME-LIST 14290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14291for as_dir in $PATH 14292do 14293 IFS=$as_save_IFS 14294 case $as_dir in #((( 14295 '') as_dir=./ ;; 14296 */) ;; 14297 *) as_dir=$as_dir/ ;; 14298 esac 14299 for ac_prog in sed gsed 14300 do 14301 for ac_exec_ext in '' $ac_executable_extensions; do 14302 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 14303 as_fn_executable_p "$ac_path_SED" || continue 14304# Check for GNU ac_path_SED and select it if it is found. 14305 # Check for GNU $ac_path_SED 14306case `"$ac_path_SED" --version 2>&1` in #( 14307*GNU*) 14308 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14309#( 14310*) 14311 ac_count=0 14312 printf %s 0123456789 >"conftest.in" 14313 while : 14314 do 14315 cat "conftest.in" "conftest.in" >"conftest.tmp" 14316 mv "conftest.tmp" "conftest.in" 14317 cp "conftest.in" "conftest.nl" 14318 printf "%s\n" '' >> "conftest.nl" 14319 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14321 as_fn_arith $ac_count + 1 && ac_count=$as_val 14322 if test $ac_count -gt ${ac_path_SED_max-0}; then 14323 # Best one so far, save it but keep looking for a better one 14324 ac_cv_path_SED="$ac_path_SED" 14325 ac_path_SED_max=$ac_count 14326 fi 14327 # 10*(2^10) chars as input seems more than enough 14328 test $ac_count -gt 10 && break 14329 done 14330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14331esac 14332 14333 $ac_path_SED_found && break 3 14334 done 14335 done 14336 done 14337IFS=$as_save_IFS 14338 if test -z "$ac_cv_path_SED"; then 14339 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14340 fi 14341else 14342 ac_cv_path_SED=$SED 14343fi 14344 ;; 14345esac 14346fi 14347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14348printf "%s\n" "$ac_cv_path_SED" >&6; } 14349 SED="$ac_cv_path_SED" 14350 rm -f conftest.sed 14351 14352test -z "$SED" && SED=sed 14353Xsed="$SED -e 1s/^X//" 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 14366printf %s "checking for grep that handles long lines and -e... " >&6; } 14367if test ${ac_cv_path_GREP+y} 14368then : 14369 printf %s "(cached) " >&6 14370else case e in #( 14371 e) if test -z "$GREP"; then 14372 ac_path_GREP_found=false 14373 # Loop through the user's path and test for each of PROGNAME-LIST 14374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14375for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 14376do 14377 IFS=$as_save_IFS 14378 case $as_dir in #((( 14379 '') as_dir=./ ;; 14380 */) ;; 14381 *) as_dir=$as_dir/ ;; 14382 esac 14383 for ac_prog in grep ggrep 14384 do 14385 for ac_exec_ext in '' $ac_executable_extensions; do 14386 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 14387 as_fn_executable_p "$ac_path_GREP" || continue 14388# Check for GNU ac_path_GREP and select it if it is found. 14389 # Check for GNU $ac_path_GREP 14390case `"$ac_path_GREP" --version 2>&1` in #( 14391*GNU*) 14392 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 14393#( 14394*) 14395 ac_count=0 14396 printf %s 0123456789 >"conftest.in" 14397 while : 14398 do 14399 cat "conftest.in" "conftest.in" >"conftest.tmp" 14400 mv "conftest.tmp" "conftest.in" 14401 cp "conftest.in" "conftest.nl" 14402 printf "%s\n" 'GREP' >> "conftest.nl" 14403 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 14404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14405 as_fn_arith $ac_count + 1 && ac_count=$as_val 14406 if test $ac_count -gt ${ac_path_GREP_max-0}; then 14407 # Best one so far, save it but keep looking for a better one 14408 ac_cv_path_GREP="$ac_path_GREP" 14409 ac_path_GREP_max=$ac_count 14410 fi 14411 # 10*(2^10) chars as input seems more than enough 14412 test $ac_count -gt 10 && break 14413 done 14414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14415esac 14416 14417 $ac_path_GREP_found && break 3 14418 done 14419 done 14420 done 14421IFS=$as_save_IFS 14422 if test -z "$ac_cv_path_GREP"; then 14423 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 14424 fi 14425else 14426 ac_cv_path_GREP=$GREP 14427fi 14428 ;; 14429esac 14430fi 14431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 14432printf "%s\n" "$ac_cv_path_GREP" >&6; } 14433 GREP="$ac_cv_path_GREP" 14434 14435 14436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 14437printf %s "checking for egrep... " >&6; } 14438if test ${ac_cv_path_EGREP+y} 14439then : 14440 printf %s "(cached) " >&6 14441else case e in #( 14442 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 14443 then ac_cv_path_EGREP="$GREP -E" 14444 else 14445 if test -z "$EGREP"; then 14446 ac_path_EGREP_found=false 14447 # Loop through the user's path and test for each of PROGNAME-LIST 14448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14449for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 14450do 14451 IFS=$as_save_IFS 14452 case $as_dir in #((( 14453 '') as_dir=./ ;; 14454 */) ;; 14455 *) as_dir=$as_dir/ ;; 14456 esac 14457 for ac_prog in egrep 14458 do 14459 for ac_exec_ext in '' $ac_executable_extensions; do 14460 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 14461 as_fn_executable_p "$ac_path_EGREP" || continue 14462# Check for GNU ac_path_EGREP and select it if it is found. 14463 # Check for GNU $ac_path_EGREP 14464case `"$ac_path_EGREP" --version 2>&1` in #( 14465*GNU*) 14466 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 14467#( 14468*) 14469 ac_count=0 14470 printf %s 0123456789 >"conftest.in" 14471 while : 14472 do 14473 cat "conftest.in" "conftest.in" >"conftest.tmp" 14474 mv "conftest.tmp" "conftest.in" 14475 cp "conftest.in" "conftest.nl" 14476 printf "%s\n" 'EGREP' >> "conftest.nl" 14477 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 14478 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14479 as_fn_arith $ac_count + 1 && ac_count=$as_val 14480 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 14481 # Best one so far, save it but keep looking for a better one 14482 ac_cv_path_EGREP="$ac_path_EGREP" 14483 ac_path_EGREP_max=$ac_count 14484 fi 14485 # 10*(2^10) chars as input seems more than enough 14486 test $ac_count -gt 10 && break 14487 done 14488 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14489esac 14490 14491 $ac_path_EGREP_found && break 3 14492 done 14493 done 14494 done 14495IFS=$as_save_IFS 14496 if test -z "$ac_cv_path_EGREP"; then 14497 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 14498 fi 14499else 14500 ac_cv_path_EGREP=$EGREP 14501fi 14502 14503 fi ;; 14504esac 14505fi 14506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 14507printf "%s\n" "$ac_cv_path_EGREP" >&6; } 14508 EGREP="$ac_cv_path_EGREP" 14509 14510 EGREP_TRADITIONAL=$EGREP 14511 ac_cv_path_EGREP_TRADITIONAL=$EGREP 14512 14513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 14514printf %s "checking for fgrep... " >&6; } 14515if test ${ac_cv_path_FGREP+y} 14516then : 14517 printf %s "(cached) " >&6 14518else case e in #( 14519 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 14520 then ac_cv_path_FGREP="$GREP -F" 14521 else 14522 if test -z "$FGREP"; then 14523 ac_path_FGREP_found=false 14524 # Loop through the user's path and test for each of PROGNAME-LIST 14525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14526for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 14527do 14528 IFS=$as_save_IFS 14529 case $as_dir in #((( 14530 '') as_dir=./ ;; 14531 */) ;; 14532 *) as_dir=$as_dir/ ;; 14533 esac 14534 for ac_prog in fgrep 14535 do 14536 for ac_exec_ext in '' $ac_executable_extensions; do 14537 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 14538 as_fn_executable_p "$ac_path_FGREP" || continue 14539# Check for GNU ac_path_FGREP and select it if it is found. 14540 # Check for GNU $ac_path_FGREP 14541case `"$ac_path_FGREP" --version 2>&1` in #( 14542*GNU*) 14543 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 14544#( 14545*) 14546 ac_count=0 14547 printf %s 0123456789 >"conftest.in" 14548 while : 14549 do 14550 cat "conftest.in" "conftest.in" >"conftest.tmp" 14551 mv "conftest.tmp" "conftest.in" 14552 cp "conftest.in" "conftest.nl" 14553 printf "%s\n" 'FGREP' >> "conftest.nl" 14554 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 14555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14556 as_fn_arith $ac_count + 1 && ac_count=$as_val 14557 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 14558 # Best one so far, save it but keep looking for a better one 14559 ac_cv_path_FGREP="$ac_path_FGREP" 14560 ac_path_FGREP_max=$ac_count 14561 fi 14562 # 10*(2^10) chars as input seems more than enough 14563 test $ac_count -gt 10 && break 14564 done 14565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14566esac 14567 14568 $ac_path_FGREP_found && break 3 14569 done 14570 done 14571 done 14572IFS=$as_save_IFS 14573 if test -z "$ac_cv_path_FGREP"; then 14574 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 14575 fi 14576else 14577 ac_cv_path_FGREP=$FGREP 14578fi 14579 14580 fi ;; 14581esac 14582fi 14583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 14584printf "%s\n" "$ac_cv_path_FGREP" >&6; } 14585 FGREP="$ac_cv_path_FGREP" 14586 14587 14588test -z "$GREP" && GREP=grep 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608# Check whether --with-gnu-ld was given. 14609if test ${with_gnu_ld+y} 14610then : 14611 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 14612else case e in #( 14613 e) with_gnu_ld=no ;; 14614esac 14615fi 14616 14617ac_prog=ld 14618if test yes = "$GCC"; then 14619 # Check if gcc -print-prog-name=ld gives a path. 14620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14621printf %s "checking for ld used by $CC... " >&6; } 14622 case $host in 14623 *-*-mingw*) 14624 # gcc leaves a trailing carriage return, which upsets mingw 14625 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14626 *) 14627 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14628 esac 14629 case $ac_prog in 14630 # Accept absolute paths. 14631 [\\/]* | ?:[\\/]*) 14632 re_direlt='/[^/][^/]*/\.\./' 14633 # Canonicalize the pathname of ld 14634 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14635 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14636 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14637 done 14638 test -z "$LD" && LD=$ac_prog 14639 ;; 14640 "") 14641 # If it fails, then pretend we aren't using GCC. 14642 ac_prog=ld 14643 ;; 14644 *) 14645 # If it is relative, then search for the first ld in PATH. 14646 with_gnu_ld=unknown 14647 ;; 14648 esac 14649elif test yes = "$with_gnu_ld"; then 14650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14651printf %s "checking for GNU ld... " >&6; } 14652else 14653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14654printf %s "checking for non-GNU ld... " >&6; } 14655fi 14656if test ${lt_cv_path_LD+y} 14657then : 14658 printf %s "(cached) " >&6 14659else case e in #( 14660 e) if test -z "$LD"; then 14661 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14662 for ac_dir in $PATH; do 14663 IFS=$lt_save_ifs 14664 test -z "$ac_dir" && ac_dir=. 14665 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14666 lt_cv_path_LD=$ac_dir/$ac_prog 14667 # Check to see if the program is GNU ld. I'd rather use --version, 14668 # but apparently some variants of GNU ld only accept -v. 14669 # Break only if it was the GNU/non-GNU ld that we prefer. 14670 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14671 *GNU* | *'with BFD'*) 14672 test no != "$with_gnu_ld" && break 14673 ;; 14674 *) 14675 test yes != "$with_gnu_ld" && break 14676 ;; 14677 esac 14678 fi 14679 done 14680 IFS=$lt_save_ifs 14681else 14682 lt_cv_path_LD=$LD # Let the user override the test with a path. 14683fi ;; 14684esac 14685fi 14686 14687LD=$lt_cv_path_LD 14688if test -n "$LD"; then 14689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14690printf "%s\n" "$LD" >&6; } 14691else 14692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14693printf "%s\n" "no" >&6; } 14694fi 14695test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14697printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 14698if test ${lt_cv_prog_gnu_ld+y} 14699then : 14700 printf %s "(cached) " >&6 14701else case e in #( 14702 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 14703case `$LD -v 2>&1 </dev/null` in 14704*GNU* | *'with BFD'*) 14705 lt_cv_prog_gnu_ld=yes 14706 ;; 14707*) 14708 lt_cv_prog_gnu_ld=no 14709 ;; 14710esac ;; 14711esac 14712fi 14713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14714printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 14715with_gnu_ld=$lt_cv_prog_gnu_ld 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 14726printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 14727if test ${lt_cv_path_NM+y} 14728then : 14729 printf %s "(cached) " >&6 14730else case e in #( 14731 e) if test -n "$NM"; then 14732 # Let the user override the test. 14733 lt_cv_path_NM=$NM 14734else 14735 lt_nm_to_check=${ac_tool_prefix}nm 14736 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 14737 lt_nm_to_check="$lt_nm_to_check nm" 14738 fi 14739 for lt_tmp_nm in $lt_nm_to_check; do 14740 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14741 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 14742 IFS=$lt_save_ifs 14743 test -z "$ac_dir" && ac_dir=. 14744 tmp_nm=$ac_dir/$lt_tmp_nm 14745 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 14746 # Check to see if the nm accepts a BSD-compat flag. 14747 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 14748 # nm: unknown option "B" ignored 14749 # Tru64's nm complains that /dev/null is an invalid object file 14750 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 14751 case $build_os in 14752 mingw*) lt_bad_file=conftest.nm/nofile ;; 14753 *) lt_bad_file=/dev/null ;; 14754 esac 14755 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 14756 *$lt_bad_file* | *'Invalid file or object type'*) 14757 lt_cv_path_NM="$tmp_nm -B" 14758 break 2 14759 ;; 14760 *) 14761 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 14762 */dev/null*) 14763 lt_cv_path_NM="$tmp_nm -p" 14764 break 2 14765 ;; 14766 *) 14767 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 14768 continue # so that we can try to find one that supports BSD flags 14769 ;; 14770 esac 14771 ;; 14772 esac 14773 fi 14774 done 14775 IFS=$lt_save_ifs 14776 done 14777 : ${lt_cv_path_NM=no} 14778fi ;; 14779esac 14780fi 14781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 14782printf "%s\n" "$lt_cv_path_NM" >&6; } 14783if test no != "$lt_cv_path_NM"; then 14784 NM=$lt_cv_path_NM 14785else 14786 # Didn't find any BSD compatible name lister, look for dumpbin. 14787 if test -n "$DUMPBIN"; then : 14788 # Let the user override the test. 14789 else 14790 if test -n "$ac_tool_prefix"; then 14791 for ac_prog in dumpbin "link -dump" 14792 do 14793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 14794set dummy $ac_tool_prefix$ac_prog; ac_word=$2 14795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14796printf %s "checking for $ac_word... " >&6; } 14797if test ${ac_cv_prog_DUMPBIN+y} 14798then : 14799 printf %s "(cached) " >&6 14800else case e in #( 14801 e) if test -n "$DUMPBIN"; then 14802 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 14803else 14804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14805for as_dir in $PATH 14806do 14807 IFS=$as_save_IFS 14808 case $as_dir in #((( 14809 '') as_dir=./ ;; 14810 */) ;; 14811 *) as_dir=$as_dir/ ;; 14812 esac 14813 for ac_exec_ext in '' $ac_executable_extensions; do 14814 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14815 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 14816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14817 break 2 14818 fi 14819done 14820 done 14821IFS=$as_save_IFS 14822 14823fi ;; 14824esac 14825fi 14826DUMPBIN=$ac_cv_prog_DUMPBIN 14827if test -n "$DUMPBIN"; then 14828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 14829printf "%s\n" "$DUMPBIN" >&6; } 14830else 14831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14832printf "%s\n" "no" >&6; } 14833fi 14834 14835 14836 test -n "$DUMPBIN" && break 14837 done 14838fi 14839if test -z "$DUMPBIN"; then 14840 ac_ct_DUMPBIN=$DUMPBIN 14841 for ac_prog in dumpbin "link -dump" 14842do 14843 # Extract the first word of "$ac_prog", so it can be a program name with args. 14844set dummy $ac_prog; ac_word=$2 14845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14846printf %s "checking for $ac_word... " >&6; } 14847if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 14848then : 14849 printf %s "(cached) " >&6 14850else case e in #( 14851 e) if test -n "$ac_ct_DUMPBIN"; then 14852 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 14853else 14854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14855for as_dir in $PATH 14856do 14857 IFS=$as_save_IFS 14858 case $as_dir in #((( 14859 '') as_dir=./ ;; 14860 */) ;; 14861 *) as_dir=$as_dir/ ;; 14862 esac 14863 for ac_exec_ext in '' $ac_executable_extensions; do 14864 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14865 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 14866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14867 break 2 14868 fi 14869done 14870 done 14871IFS=$as_save_IFS 14872 14873fi ;; 14874esac 14875fi 14876ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 14877if test -n "$ac_ct_DUMPBIN"; then 14878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 14879printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 14880else 14881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14882printf "%s\n" "no" >&6; } 14883fi 14884 14885 14886 test -n "$ac_ct_DUMPBIN" && break 14887done 14888 14889 if test "x$ac_ct_DUMPBIN" = x; then 14890 DUMPBIN=":" 14891 else 14892 case $cross_compiling:$ac_tool_warned in 14893yes:) 14894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14895printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14896ac_tool_warned=yes ;; 14897esac 14898 DUMPBIN=$ac_ct_DUMPBIN 14899 fi 14900fi 14901 14902 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 14903 *COFF*) 14904 DUMPBIN="$DUMPBIN -symbols -headers" 14905 ;; 14906 *) 14907 DUMPBIN=: 14908 ;; 14909 esac 14910 fi 14911 14912 if test : != "$DUMPBIN"; then 14913 NM=$DUMPBIN 14914 fi 14915fi 14916test -z "$NM" && NM=nm 14917 14918 14919 14920 14921 14922 14923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 14924printf %s "checking the name lister ($NM) interface... " >&6; } 14925if test ${lt_cv_nm_interface+y} 14926then : 14927 printf %s "(cached) " >&6 14928else case e in #( 14929 e) lt_cv_nm_interface="BSD nm" 14930 echo "int some_variable = 0;" > conftest.$ac_ext 14931 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 14932 (eval "$ac_compile" 2>conftest.err) 14933 cat conftest.err >&5 14934 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 14935 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 14936 cat conftest.err >&5 14937 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 14938 cat conftest.out >&5 14939 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 14940 lt_cv_nm_interface="MS dumpbin" 14941 fi 14942 rm -f conftest* ;; 14943esac 14944fi 14945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 14946printf "%s\n" "$lt_cv_nm_interface" >&6; } 14947 14948# find the maximum length of command line arguments 14949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 14950printf %s "checking the maximum length of command line arguments... " >&6; } 14951if test ${lt_cv_sys_max_cmd_len+y} 14952then : 14953 printf %s "(cached) " >&6 14954else case e in #( 14955 e) i=0 14956 teststring=ABCD 14957 14958 case $build_os in 14959 msdosdjgpp*) 14960 # On DJGPP, this test can blow up pretty badly due to problems in libc 14961 # (any single argument exceeding 2000 bytes causes a buffer overrun 14962 # during glob expansion). Even if it were fixed, the result of this 14963 # check would be larger than it should be. 14964 lt_cv_sys_max_cmd_len=12288; # 12K is about right 14965 ;; 14966 14967 gnu*) 14968 # Under GNU Hurd, this test is not required because there is 14969 # no limit to the length of command line arguments. 14970 # Libtool will interpret -1 as no limit whatsoever 14971 lt_cv_sys_max_cmd_len=-1; 14972 ;; 14973 14974 cygwin* | mingw* | cegcc*) 14975 # On Win9x/ME, this test blows up -- it succeeds, but takes 14976 # about 5 minutes as the teststring grows exponentially. 14977 # Worse, since 9x/ME are not pre-emptively multitasking, 14978 # you end up with a "frozen" computer, even though with patience 14979 # the test eventually succeeds (with a max line length of 256k). 14980 # Instead, let's just punt: use the minimum linelength reported by 14981 # all of the supported platforms: 8192 (on NT/2K/XP). 14982 lt_cv_sys_max_cmd_len=8192; 14983 ;; 14984 14985 mint*) 14986 # On MiNT this can take a long time and run out of memory. 14987 lt_cv_sys_max_cmd_len=8192; 14988 ;; 14989 14990 amigaos*) 14991 # On AmigaOS with pdksh, this test takes hours, literally. 14992 # So we just punt and use a minimum line length of 8192. 14993 lt_cv_sys_max_cmd_len=8192; 14994 ;; 14995 14996 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 14997 # This has been around since 386BSD, at least. Likely further. 14998 if test -x /sbin/sysctl; then 14999 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 15000 elif test -x /usr/sbin/sysctl; then 15001 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 15002 else 15003 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 15004 fi 15005 # And add a safety zone 15006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 15007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 15008 ;; 15009 15010 interix*) 15011 # We know the value 262144 and hardcode it with a safety zone (like BSD) 15012 lt_cv_sys_max_cmd_len=196608 15013 ;; 15014 15015 os2*) 15016 # The test takes a long time on OS/2. 15017 lt_cv_sys_max_cmd_len=8192 15018 ;; 15019 15020 osf*) 15021 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 15022 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 15023 # nice to cause kernel panics so lets avoid the loop below. 15024 # First set a reasonable default. 15025 lt_cv_sys_max_cmd_len=16384 15026 # 15027 if test -x /sbin/sysconfig; then 15028 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 15029 *1*) lt_cv_sys_max_cmd_len=-1 ;; 15030 esac 15031 fi 15032 ;; 15033 sco3.2v5*) 15034 lt_cv_sys_max_cmd_len=102400 15035 ;; 15036 sysv5* | sco5v6* | sysv4.2uw2*) 15037 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 15038 if test -n "$kargmax"; then 15039 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 15040 else 15041 lt_cv_sys_max_cmd_len=32768 15042 fi 15043 ;; 15044 *) 15045 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 15046 if test -n "$lt_cv_sys_max_cmd_len" && \ 15047 test undefined != "$lt_cv_sys_max_cmd_len"; then 15048 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 15049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 15050 else 15051 # Make teststring a little bigger before we do anything with it. 15052 # a 1K string should be a reasonable start. 15053 for i in 1 2 3 4 5 6 7 8; do 15054 teststring=$teststring$teststring 15055 done 15056 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 15057 # If test is not a shell built-in, we'll probably end up computing a 15058 # maximum length that is only half of the actual maximum length, but 15059 # we can't tell. 15060 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 15061 = "X$teststring$teststring"; } >/dev/null 2>&1 && 15062 test 17 != "$i" # 1/2 MB should be enough 15063 do 15064 i=`expr $i + 1` 15065 teststring=$teststring$teststring 15066 done 15067 # Only check the string length outside the loop. 15068 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 15069 teststring= 15070 # Add a significant safety factor because C++ compilers can tack on 15071 # massive amounts of additional arguments before passing them to the 15072 # linker. It appears as though 1/2 is a usable value. 15073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 15074 fi 15075 ;; 15076 esac 15077 ;; 15078esac 15079fi 15080 15081if test -n "$lt_cv_sys_max_cmd_len"; then 15082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 15083printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 15084else 15085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 15086printf "%s\n" "none" >&6; } 15087fi 15088max_cmd_len=$lt_cv_sys_max_cmd_len 15089 15090 15091 15092 15093 15094 15095: ${CP="cp -f"} 15096: ${MV="mv -f"} 15097: ${RM="rm -f"} 15098 15099if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 15100 lt_unset=unset 15101else 15102 lt_unset=false 15103fi 15104 15105 15106 15107 15108 15109# test EBCDIC or ASCII 15110case `echo X|tr X '\101'` in 15111 A) # ASCII based system 15112 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 15113 lt_SP2NL='tr \040 \012' 15114 lt_NL2SP='tr \015\012 \040\040' 15115 ;; 15116 *) # EBCDIC based system 15117 lt_SP2NL='tr \100 \n' 15118 lt_NL2SP='tr \r\n \100\100' 15119 ;; 15120esac 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 15131printf %s "checking how to convert $build file names to $host format... " >&6; } 15132if test ${lt_cv_to_host_file_cmd+y} 15133then : 15134 printf %s "(cached) " >&6 15135else case e in #( 15136 e) case $host in 15137 *-*-mingw* ) 15138 case $build in 15139 *-*-mingw* ) # actually msys 15140 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 15141 ;; 15142 *-*-cygwin* ) 15143 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 15144 ;; 15145 * ) # otherwise, assume *nix 15146 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 15147 ;; 15148 esac 15149 ;; 15150 *-*-cygwin* ) 15151 case $build in 15152 *-*-mingw* ) # actually msys 15153 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 15154 ;; 15155 *-*-cygwin* ) 15156 lt_cv_to_host_file_cmd=func_convert_file_noop 15157 ;; 15158 * ) # otherwise, assume *nix 15159 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 15160 ;; 15161 esac 15162 ;; 15163 * ) # unhandled hosts (and "normal" native builds) 15164 lt_cv_to_host_file_cmd=func_convert_file_noop 15165 ;; 15166esac 15167 ;; 15168esac 15169fi 15170 15171to_host_file_cmd=$lt_cv_to_host_file_cmd 15172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 15173printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 15174 15175 15176 15177 15178 15179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 15180printf %s "checking how to convert $build file names to toolchain format... " >&6; } 15181if test ${lt_cv_to_tool_file_cmd+y} 15182then : 15183 printf %s "(cached) " >&6 15184else case e in #( 15185 e) #assume ordinary cross tools, or native build. 15186lt_cv_to_tool_file_cmd=func_convert_file_noop 15187case $host in 15188 *-*-mingw* ) 15189 case $build in 15190 *-*-mingw* ) # actually msys 15191 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 15192 ;; 15193 esac 15194 ;; 15195esac 15196 ;; 15197esac 15198fi 15199 15200to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 15202printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 15203 15204 15205 15206 15207 15208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 15209printf %s "checking for $LD option to reload object files... " >&6; } 15210if test ${lt_cv_ld_reload_flag+y} 15211then : 15212 printf %s "(cached) " >&6 15213else case e in #( 15214 e) lt_cv_ld_reload_flag='-r' ;; 15215esac 15216fi 15217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 15218printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 15219reload_flag=$lt_cv_ld_reload_flag 15220case $reload_flag in 15221"" | " "*) ;; 15222*) reload_flag=" $reload_flag" ;; 15223esac 15224reload_cmds='$LD$reload_flag -o $output$reload_objs' 15225case $host_os in 15226 cygwin* | mingw* | pw32* | cegcc*) 15227 if test yes != "$GCC"; then 15228 reload_cmds=false 15229 fi 15230 ;; 15231 darwin*) 15232 if test yes = "$GCC"; then 15233 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 15234 else 15235 reload_cmds='$LD$reload_flag -o $output$reload_objs' 15236 fi 15237 ;; 15238esac 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248if test -n "$ac_tool_prefix"; then 15249 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 15250set dummy ${ac_tool_prefix}file; ac_word=$2 15251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15252printf %s "checking for $ac_word... " >&6; } 15253if test ${ac_cv_prog_FILECMD+y} 15254then : 15255 printf %s "(cached) " >&6 15256else case e in #( 15257 e) if test -n "$FILECMD"; then 15258 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 15259else 15260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15261for as_dir in $PATH 15262do 15263 IFS=$as_save_IFS 15264 case $as_dir in #((( 15265 '') as_dir=./ ;; 15266 */) ;; 15267 *) as_dir=$as_dir/ ;; 15268 esac 15269 for ac_exec_ext in '' $ac_executable_extensions; do 15270 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15271 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 15272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15273 break 2 15274 fi 15275done 15276 done 15277IFS=$as_save_IFS 15278 15279fi ;; 15280esac 15281fi 15282FILECMD=$ac_cv_prog_FILECMD 15283if test -n "$FILECMD"; then 15284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 15285printf "%s\n" "$FILECMD" >&6; } 15286else 15287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15288printf "%s\n" "no" >&6; } 15289fi 15290 15291 15292fi 15293if test -z "$ac_cv_prog_FILECMD"; then 15294 ac_ct_FILECMD=$FILECMD 15295 # Extract the first word of "file", so it can be a program name with args. 15296set dummy file; ac_word=$2 15297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15298printf %s "checking for $ac_word... " >&6; } 15299if test ${ac_cv_prog_ac_ct_FILECMD+y} 15300then : 15301 printf %s "(cached) " >&6 15302else case e in #( 15303 e) if test -n "$ac_ct_FILECMD"; then 15304 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 15305else 15306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15307for as_dir in $PATH 15308do 15309 IFS=$as_save_IFS 15310 case $as_dir in #((( 15311 '') as_dir=./ ;; 15312 */) ;; 15313 *) as_dir=$as_dir/ ;; 15314 esac 15315 for ac_exec_ext in '' $ac_executable_extensions; do 15316 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15317 ac_cv_prog_ac_ct_FILECMD="file" 15318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15319 break 2 15320 fi 15321done 15322 done 15323IFS=$as_save_IFS 15324 15325fi ;; 15326esac 15327fi 15328ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 15329if test -n "$ac_ct_FILECMD"; then 15330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 15331printf "%s\n" "$ac_ct_FILECMD" >&6; } 15332else 15333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15334printf "%s\n" "no" >&6; } 15335fi 15336 15337 if test "x$ac_ct_FILECMD" = x; then 15338 FILECMD=":" 15339 else 15340 case $cross_compiling:$ac_tool_warned in 15341yes:) 15342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15343printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15344ac_tool_warned=yes ;; 15345esac 15346 FILECMD=$ac_ct_FILECMD 15347 fi 15348else 15349 FILECMD="$ac_cv_prog_FILECMD" 15350fi 15351 15352 15353 15354 15355 15356 15357 15358if test -n "$ac_tool_prefix"; then 15359 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 15360set dummy ${ac_tool_prefix}objdump; ac_word=$2 15361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15362printf %s "checking for $ac_word... " >&6; } 15363if test ${ac_cv_prog_OBJDUMP+y} 15364then : 15365 printf %s "(cached) " >&6 15366else case e in #( 15367 e) if test -n "$OBJDUMP"; then 15368 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 15369else 15370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15371for as_dir in $PATH 15372do 15373 IFS=$as_save_IFS 15374 case $as_dir in #((( 15375 '') as_dir=./ ;; 15376 */) ;; 15377 *) as_dir=$as_dir/ ;; 15378 esac 15379 for ac_exec_ext in '' $ac_executable_extensions; do 15380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15381 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 15382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15383 break 2 15384 fi 15385done 15386 done 15387IFS=$as_save_IFS 15388 15389fi ;; 15390esac 15391fi 15392OBJDUMP=$ac_cv_prog_OBJDUMP 15393if test -n "$OBJDUMP"; then 15394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 15395printf "%s\n" "$OBJDUMP" >&6; } 15396else 15397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15398printf "%s\n" "no" >&6; } 15399fi 15400 15401 15402fi 15403if test -z "$ac_cv_prog_OBJDUMP"; then 15404 ac_ct_OBJDUMP=$OBJDUMP 15405 # Extract the first word of "objdump", so it can be a program name with args. 15406set dummy objdump; ac_word=$2 15407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15408printf %s "checking for $ac_word... " >&6; } 15409if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 15410then : 15411 printf %s "(cached) " >&6 15412else case e in #( 15413 e) if test -n "$ac_ct_OBJDUMP"; then 15414 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 15415else 15416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15417for as_dir in $PATH 15418do 15419 IFS=$as_save_IFS 15420 case $as_dir in #((( 15421 '') as_dir=./ ;; 15422 */) ;; 15423 *) as_dir=$as_dir/ ;; 15424 esac 15425 for ac_exec_ext in '' $ac_executable_extensions; do 15426 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15427 ac_cv_prog_ac_ct_OBJDUMP="objdump" 15428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15429 break 2 15430 fi 15431done 15432 done 15433IFS=$as_save_IFS 15434 15435fi ;; 15436esac 15437fi 15438ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 15439if test -n "$ac_ct_OBJDUMP"; then 15440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 15441printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 15442else 15443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15444printf "%s\n" "no" >&6; } 15445fi 15446 15447 if test "x$ac_ct_OBJDUMP" = x; then 15448 OBJDUMP="false" 15449 else 15450 case $cross_compiling:$ac_tool_warned in 15451yes:) 15452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15453printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15454ac_tool_warned=yes ;; 15455esac 15456 OBJDUMP=$ac_ct_OBJDUMP 15457 fi 15458else 15459 OBJDUMP="$ac_cv_prog_OBJDUMP" 15460fi 15461 15462test -z "$OBJDUMP" && OBJDUMP=objdump 15463 15464 15465 15466 15467 15468 15469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 15470printf %s "checking how to recognize dependent libraries... " >&6; } 15471if test ${lt_cv_deplibs_check_method+y} 15472then : 15473 printf %s "(cached) " >&6 15474else case e in #( 15475 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 15476lt_cv_file_magic_test_file= 15477lt_cv_deplibs_check_method='unknown' 15478# Need to set the preceding variable on all platforms that support 15479# interlibrary dependencies. 15480# 'none' -- dependencies not supported. 15481# 'unknown' -- same as none, but documents that we really don't know. 15482# 'pass_all' -- all dependencies passed with no checks. 15483# 'test_compile' -- check by making test program. 15484# 'file_magic [[regex]]' -- check by looking for files in library path 15485# that responds to the $file_magic_cmd with a given extended regex. 15486# If you have 'file' or equivalent on your system and you're not sure 15487# whether 'pass_all' will *always* work, you probably want this one. 15488 15489case $host_os in 15490aix[4-9]*) 15491 lt_cv_deplibs_check_method=pass_all 15492 ;; 15493 15494beos*) 15495 lt_cv_deplibs_check_method=pass_all 15496 ;; 15497 15498bsdi[45]*) 15499 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 15500 lt_cv_file_magic_cmd='$FILECMD -L' 15501 lt_cv_file_magic_test_file=/shlib/libc.so 15502 ;; 15503 15504cygwin*) 15505 # func_win32_libid is a shell function defined in ltmain.sh 15506 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 15507 lt_cv_file_magic_cmd='func_win32_libid' 15508 ;; 15509 15510mingw* | pw32*) 15511 # Base MSYS/MinGW do not provide the 'file' command needed by 15512 # func_win32_libid shell function, so use a weaker test based on 'objdump', 15513 # unless we find 'file', for example because we are cross-compiling. 15514 if ( file / ) >/dev/null 2>&1; then 15515 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 15516 lt_cv_file_magic_cmd='func_win32_libid' 15517 else 15518 # Keep this pattern in sync with the one in func_win32_libid. 15519 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 15520 lt_cv_file_magic_cmd='$OBJDUMP -f' 15521 fi 15522 ;; 15523 15524cegcc*) 15525 # use the weaker test based on 'objdump'. See mingw*. 15526 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 15527 lt_cv_file_magic_cmd='$OBJDUMP -f' 15528 ;; 15529 15530darwin* | rhapsody*) 15531 lt_cv_deplibs_check_method=pass_all 15532 ;; 15533 15534freebsd* | dragonfly* | midnightbsd*) 15535 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 15536 case $host_cpu in 15537 i*86 ) 15538 # Not sure whether the presence of OpenBSD here was a mistake. 15539 # Let's accept both of them until this is cleared up. 15540 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 15541 lt_cv_file_magic_cmd=$FILECMD 15542 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 15543 ;; 15544 esac 15545 else 15546 lt_cv_deplibs_check_method=pass_all 15547 fi 15548 ;; 15549 15550haiku*) 15551 lt_cv_deplibs_check_method=pass_all 15552 ;; 15553 15554hpux10.20* | hpux11*) 15555 lt_cv_file_magic_cmd=$FILECMD 15556 case $host_cpu in 15557 ia64*) 15558 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 15559 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 15560 ;; 15561 hppa*64*) 15562 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]' 15563 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 15564 ;; 15565 *) 15566 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 15567 lt_cv_file_magic_test_file=/usr/lib/libc.sl 15568 ;; 15569 esac 15570 ;; 15571 15572interix[3-9]*) 15573 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 15574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 15575 ;; 15576 15577irix5* | irix6* | nonstopux*) 15578 case $LD in 15579 *-32|*"-32 ") libmagic=32-bit;; 15580 *-n32|*"-n32 ") libmagic=N32;; 15581 *-64|*"-64 ") libmagic=64-bit;; 15582 *) libmagic=never-match;; 15583 esac 15584 lt_cv_deplibs_check_method=pass_all 15585 ;; 15586 15587# This must be glibc/ELF. 15588linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15589 lt_cv_deplibs_check_method=pass_all 15590 ;; 15591 15592netbsd*) 15593 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 15594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 15595 else 15596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 15597 fi 15598 ;; 15599 15600newos6*) 15601 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 15602 lt_cv_file_magic_cmd=$FILECMD 15603 lt_cv_file_magic_test_file=/usr/lib/libnls.so 15604 ;; 15605 15606*nto* | *qnx*) 15607 lt_cv_deplibs_check_method=pass_all 15608 ;; 15609 15610openbsd* | bitrig*) 15611 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 15613 else 15614 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 15615 fi 15616 ;; 15617 15618osf3* | osf4* | osf5*) 15619 lt_cv_deplibs_check_method=pass_all 15620 ;; 15621 15622rdos*) 15623 lt_cv_deplibs_check_method=pass_all 15624 ;; 15625 15626solaris*) 15627 lt_cv_deplibs_check_method=pass_all 15628 ;; 15629 15630sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15631 lt_cv_deplibs_check_method=pass_all 15632 ;; 15633 15634sysv4 | sysv4.3*) 15635 case $host_vendor in 15636 motorola) 15637 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]' 15638 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 15639 ;; 15640 ncr) 15641 lt_cv_deplibs_check_method=pass_all 15642 ;; 15643 sequent) 15644 lt_cv_file_magic_cmd='/bin/file' 15645 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 15646 ;; 15647 sni) 15648 lt_cv_file_magic_cmd='/bin/file' 15649 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 15650 lt_cv_file_magic_test_file=/lib/libc.so 15651 ;; 15652 siemens) 15653 lt_cv_deplibs_check_method=pass_all 15654 ;; 15655 pc) 15656 lt_cv_deplibs_check_method=pass_all 15657 ;; 15658 esac 15659 ;; 15660 15661tpf*) 15662 lt_cv_deplibs_check_method=pass_all 15663 ;; 15664os2*) 15665 lt_cv_deplibs_check_method=pass_all 15666 ;; 15667esac 15668 ;; 15669esac 15670fi 15671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 15672printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 15673 15674file_magic_glob= 15675want_nocaseglob=no 15676if test "$build" = "$host"; then 15677 case $host_os in 15678 mingw* | pw32*) 15679 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 15680 want_nocaseglob=yes 15681 else 15682 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 15683 fi 15684 ;; 15685 esac 15686fi 15687 15688file_magic_cmd=$lt_cv_file_magic_cmd 15689deplibs_check_method=$lt_cv_deplibs_check_method 15690test -z "$deplibs_check_method" && deplibs_check_method=unknown 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713if test -n "$ac_tool_prefix"; then 15714 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 15715set dummy ${ac_tool_prefix}dlltool; ac_word=$2 15716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15717printf %s "checking for $ac_word... " >&6; } 15718if test ${ac_cv_prog_DLLTOOL+y} 15719then : 15720 printf %s "(cached) " >&6 15721else case e in #( 15722 e) if test -n "$DLLTOOL"; then 15723 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 15724else 15725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15726for as_dir in $PATH 15727do 15728 IFS=$as_save_IFS 15729 case $as_dir in #((( 15730 '') as_dir=./ ;; 15731 */) ;; 15732 *) as_dir=$as_dir/ ;; 15733 esac 15734 for ac_exec_ext in '' $ac_executable_extensions; do 15735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15736 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 15737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15738 break 2 15739 fi 15740done 15741 done 15742IFS=$as_save_IFS 15743 15744fi ;; 15745esac 15746fi 15747DLLTOOL=$ac_cv_prog_DLLTOOL 15748if test -n "$DLLTOOL"; then 15749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 15750printf "%s\n" "$DLLTOOL" >&6; } 15751else 15752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15753printf "%s\n" "no" >&6; } 15754fi 15755 15756 15757fi 15758if test -z "$ac_cv_prog_DLLTOOL"; then 15759 ac_ct_DLLTOOL=$DLLTOOL 15760 # Extract the first word of "dlltool", so it can be a program name with args. 15761set dummy dlltool; ac_word=$2 15762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15763printf %s "checking for $ac_word... " >&6; } 15764if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 15765then : 15766 printf %s "(cached) " >&6 15767else case e in #( 15768 e) if test -n "$ac_ct_DLLTOOL"; then 15769 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 15770else 15771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15772for as_dir in $PATH 15773do 15774 IFS=$as_save_IFS 15775 case $as_dir in #((( 15776 '') as_dir=./ ;; 15777 */) ;; 15778 *) as_dir=$as_dir/ ;; 15779 esac 15780 for ac_exec_ext in '' $ac_executable_extensions; do 15781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15782 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 15783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15784 break 2 15785 fi 15786done 15787 done 15788IFS=$as_save_IFS 15789 15790fi ;; 15791esac 15792fi 15793ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 15794if test -n "$ac_ct_DLLTOOL"; then 15795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 15796printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 15797else 15798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15799printf "%s\n" "no" >&6; } 15800fi 15801 15802 if test "x$ac_ct_DLLTOOL" = x; then 15803 DLLTOOL="false" 15804 else 15805 case $cross_compiling:$ac_tool_warned in 15806yes:) 15807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15808printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15809ac_tool_warned=yes ;; 15810esac 15811 DLLTOOL=$ac_ct_DLLTOOL 15812 fi 15813else 15814 DLLTOOL="$ac_cv_prog_DLLTOOL" 15815fi 15816 15817test -z "$DLLTOOL" && DLLTOOL=dlltool 15818 15819 15820 15821 15822 15823 15824 15825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 15826printf %s "checking how to associate runtime and link libraries... " >&6; } 15827if test ${lt_cv_sharedlib_from_linklib_cmd+y} 15828then : 15829 printf %s "(cached) " >&6 15830else case e in #( 15831 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 15832 15833case $host_os in 15834cygwin* | mingw* | pw32* | cegcc*) 15835 # two different shell functions defined in ltmain.sh; 15836 # decide which one to use based on capabilities of $DLLTOOL 15837 case `$DLLTOOL --help 2>&1` in 15838 *--identify-strict*) 15839 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 15840 ;; 15841 *) 15842 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 15843 ;; 15844 esac 15845 ;; 15846*) 15847 # fallback: assume linklib IS sharedlib 15848 lt_cv_sharedlib_from_linklib_cmd=$ECHO 15849 ;; 15850esac 15851 ;; 15852esac 15853fi 15854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 15855printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 15856sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 15857test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 15858 15859 15860 15861 15862 15863 15864 15865if test -n "$ac_tool_prefix"; then 15866 for ac_prog in ar 15867 do 15868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 15869set dummy $ac_tool_prefix$ac_prog; ac_word=$2 15870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15871printf %s "checking for $ac_word... " >&6; } 15872if test ${ac_cv_prog_AR+y} 15873then : 15874 printf %s "(cached) " >&6 15875else case e in #( 15876 e) if test -n "$AR"; then 15877 ac_cv_prog_AR="$AR" # Let the user override the test. 15878else 15879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15880for as_dir in $PATH 15881do 15882 IFS=$as_save_IFS 15883 case $as_dir in #((( 15884 '') as_dir=./ ;; 15885 */) ;; 15886 *) as_dir=$as_dir/ ;; 15887 esac 15888 for ac_exec_ext in '' $ac_executable_extensions; do 15889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15890 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 15891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15892 break 2 15893 fi 15894done 15895 done 15896IFS=$as_save_IFS 15897 15898fi ;; 15899esac 15900fi 15901AR=$ac_cv_prog_AR 15902if test -n "$AR"; then 15903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 15904printf "%s\n" "$AR" >&6; } 15905else 15906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15907printf "%s\n" "no" >&6; } 15908fi 15909 15910 15911 test -n "$AR" && break 15912 done 15913fi 15914if test -z "$AR"; then 15915 ac_ct_AR=$AR 15916 for ac_prog in ar 15917do 15918 # Extract the first word of "$ac_prog", so it can be a program name with args. 15919set dummy $ac_prog; ac_word=$2 15920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15921printf %s "checking for $ac_word... " >&6; } 15922if test ${ac_cv_prog_ac_ct_AR+y} 15923then : 15924 printf %s "(cached) " >&6 15925else case e in #( 15926 e) if test -n "$ac_ct_AR"; then 15927 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 15928else 15929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15930for as_dir in $PATH 15931do 15932 IFS=$as_save_IFS 15933 case $as_dir in #((( 15934 '') as_dir=./ ;; 15935 */) ;; 15936 *) as_dir=$as_dir/ ;; 15937 esac 15938 for ac_exec_ext in '' $ac_executable_extensions; do 15939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15940 ac_cv_prog_ac_ct_AR="$ac_prog" 15941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15942 break 2 15943 fi 15944done 15945 done 15946IFS=$as_save_IFS 15947 15948fi ;; 15949esac 15950fi 15951ac_ct_AR=$ac_cv_prog_ac_ct_AR 15952if test -n "$ac_ct_AR"; then 15953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 15954printf "%s\n" "$ac_ct_AR" >&6; } 15955else 15956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15957printf "%s\n" "no" >&6; } 15958fi 15959 15960 15961 test -n "$ac_ct_AR" && break 15962done 15963 15964 if test "x$ac_ct_AR" = x; then 15965 AR="false" 15966 else 15967 case $cross_compiling:$ac_tool_warned in 15968yes:) 15969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15970printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15971ac_tool_warned=yes ;; 15972esac 15973 AR=$ac_ct_AR 15974 fi 15975fi 15976 15977: ${AR=ar} 15978 15979 15980 15981 15982 15983 15984# Use ARFLAGS variable as AR's operation code to sync the variable naming with 15985# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 15986# higher priority because thats what people were doing historically (setting 15987# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 15988# variable obsoleted/removed. 15989 15990test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 15991lt_ar_flags=$AR_FLAGS 15992 15993 15994 15995 15996 15997 15998# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 15999# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 16000 16001 16002 16003 16004 16005 16006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 16007printf %s "checking for archiver @FILE support... " >&6; } 16008if test ${lt_cv_ar_at_file+y} 16009then : 16010 printf %s "(cached) " >&6 16011else case e in #( 16012 e) lt_cv_ar_at_file=no 16013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16014/* end confdefs.h. */ 16015 16016int 16017main (void) 16018{ 16019 16020 ; 16021 return 0; 16022} 16023_ACEOF 16024if ac_fn_c_try_compile "$LINENO" 16025then : 16026 echo conftest.$ac_objext > conftest.lst 16027 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 16028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 16029 (eval $lt_ar_try) 2>&5 16030 ac_status=$? 16031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16032 test $ac_status = 0; } 16033 if test 0 -eq "$ac_status"; then 16034 # Ensure the archiver fails upon bogus file names. 16035 rm -f conftest.$ac_objext libconftest.a 16036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 16037 (eval $lt_ar_try) 2>&5 16038 ac_status=$? 16039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16040 test $ac_status = 0; } 16041 if test 0 -ne "$ac_status"; then 16042 lt_cv_ar_at_file=@ 16043 fi 16044 fi 16045 rm -f conftest.* libconftest.a 16046 16047fi 16048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16049 ;; 16050esac 16051fi 16052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 16053printf "%s\n" "$lt_cv_ar_at_file" >&6; } 16054 16055if test no = "$lt_cv_ar_at_file"; then 16056 archiver_list_spec= 16057else 16058 archiver_list_spec=$lt_cv_ar_at_file 16059fi 16060 16061 16062 16063 16064 16065 16066 16067if test -n "$ac_tool_prefix"; then 16068 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 16069set dummy ${ac_tool_prefix}strip; ac_word=$2 16070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16071printf %s "checking for $ac_word... " >&6; } 16072if test ${ac_cv_prog_STRIP+y} 16073then : 16074 printf %s "(cached) " >&6 16075else case e in #( 16076 e) if test -n "$STRIP"; then 16077 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 16078else 16079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16080for as_dir in $PATH 16081do 16082 IFS=$as_save_IFS 16083 case $as_dir in #((( 16084 '') as_dir=./ ;; 16085 */) ;; 16086 *) as_dir=$as_dir/ ;; 16087 esac 16088 for ac_exec_ext in '' $ac_executable_extensions; do 16089 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16090 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 16091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16092 break 2 16093 fi 16094done 16095 done 16096IFS=$as_save_IFS 16097 16098fi ;; 16099esac 16100fi 16101STRIP=$ac_cv_prog_STRIP 16102if test -n "$STRIP"; then 16103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 16104printf "%s\n" "$STRIP" >&6; } 16105else 16106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16107printf "%s\n" "no" >&6; } 16108fi 16109 16110 16111fi 16112if test -z "$ac_cv_prog_STRIP"; then 16113 ac_ct_STRIP=$STRIP 16114 # Extract the first word of "strip", so it can be a program name with args. 16115set dummy strip; ac_word=$2 16116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16117printf %s "checking for $ac_word... " >&6; } 16118if test ${ac_cv_prog_ac_ct_STRIP+y} 16119then : 16120 printf %s "(cached) " >&6 16121else case e in #( 16122 e) if test -n "$ac_ct_STRIP"; then 16123 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 16124else 16125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16126for as_dir in $PATH 16127do 16128 IFS=$as_save_IFS 16129 case $as_dir in #((( 16130 '') as_dir=./ ;; 16131 */) ;; 16132 *) as_dir=$as_dir/ ;; 16133 esac 16134 for ac_exec_ext in '' $ac_executable_extensions; do 16135 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16136 ac_cv_prog_ac_ct_STRIP="strip" 16137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16138 break 2 16139 fi 16140done 16141 done 16142IFS=$as_save_IFS 16143 16144fi ;; 16145esac 16146fi 16147ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 16148if test -n "$ac_ct_STRIP"; then 16149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 16150printf "%s\n" "$ac_ct_STRIP" >&6; } 16151else 16152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16153printf "%s\n" "no" >&6; } 16154fi 16155 16156 if test "x$ac_ct_STRIP" = x; then 16157 STRIP=":" 16158 else 16159 case $cross_compiling:$ac_tool_warned in 16160yes:) 16161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16162printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16163ac_tool_warned=yes ;; 16164esac 16165 STRIP=$ac_ct_STRIP 16166 fi 16167else 16168 STRIP="$ac_cv_prog_STRIP" 16169fi 16170 16171test -z "$STRIP" && STRIP=: 16172 16173 16174 16175 16176 16177 16178if test -n "$ac_tool_prefix"; then 16179 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 16180set dummy ${ac_tool_prefix}ranlib; ac_word=$2 16181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16182printf %s "checking for $ac_word... " >&6; } 16183if test ${ac_cv_prog_RANLIB+y} 16184then : 16185 printf %s "(cached) " >&6 16186else case e in #( 16187 e) if test -n "$RANLIB"; then 16188 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 16189else 16190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16191for as_dir in $PATH 16192do 16193 IFS=$as_save_IFS 16194 case $as_dir in #((( 16195 '') as_dir=./ ;; 16196 */) ;; 16197 *) as_dir=$as_dir/ ;; 16198 esac 16199 for ac_exec_ext in '' $ac_executable_extensions; do 16200 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16201 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 16202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16203 break 2 16204 fi 16205done 16206 done 16207IFS=$as_save_IFS 16208 16209fi ;; 16210esac 16211fi 16212RANLIB=$ac_cv_prog_RANLIB 16213if test -n "$RANLIB"; then 16214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 16215printf "%s\n" "$RANLIB" >&6; } 16216else 16217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16218printf "%s\n" "no" >&6; } 16219fi 16220 16221 16222fi 16223if test -z "$ac_cv_prog_RANLIB"; then 16224 ac_ct_RANLIB=$RANLIB 16225 # Extract the first word of "ranlib", so it can be a program name with args. 16226set dummy ranlib; ac_word=$2 16227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16228printf %s "checking for $ac_word... " >&6; } 16229if test ${ac_cv_prog_ac_ct_RANLIB+y} 16230then : 16231 printf %s "(cached) " >&6 16232else case e in #( 16233 e) if test -n "$ac_ct_RANLIB"; then 16234 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 16235else 16236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16237for as_dir in $PATH 16238do 16239 IFS=$as_save_IFS 16240 case $as_dir in #((( 16241 '') as_dir=./ ;; 16242 */) ;; 16243 *) as_dir=$as_dir/ ;; 16244 esac 16245 for ac_exec_ext in '' $ac_executable_extensions; do 16246 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16247 ac_cv_prog_ac_ct_RANLIB="ranlib" 16248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16249 break 2 16250 fi 16251done 16252 done 16253IFS=$as_save_IFS 16254 16255fi ;; 16256esac 16257fi 16258ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 16259if test -n "$ac_ct_RANLIB"; then 16260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 16261printf "%s\n" "$ac_ct_RANLIB" >&6; } 16262else 16263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16264printf "%s\n" "no" >&6; } 16265fi 16266 16267 if test "x$ac_ct_RANLIB" = x; then 16268 RANLIB=":" 16269 else 16270 case $cross_compiling:$ac_tool_warned in 16271yes:) 16272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16273printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16274ac_tool_warned=yes ;; 16275esac 16276 RANLIB=$ac_ct_RANLIB 16277 fi 16278else 16279 RANLIB="$ac_cv_prog_RANLIB" 16280fi 16281 16282test -z "$RANLIB" && RANLIB=: 16283 16284 16285 16286 16287 16288 16289# Determine commands to create old-style static archives. 16290old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 16291old_postinstall_cmds='chmod 644 $oldlib' 16292old_postuninstall_cmds= 16293 16294if test -n "$RANLIB"; then 16295 case $host_os in 16296 bitrig* | openbsd*) 16297 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 16298 ;; 16299 *) 16300 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 16301 ;; 16302 esac 16303 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 16304fi 16305 16306case $host_os in 16307 darwin*) 16308 lock_old_archive_extraction=yes ;; 16309 *) 16310 lock_old_archive_extraction=no ;; 16311esac 16312 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351# If no C compiler was specified, use CC. 16352LTCC=${LTCC-"$CC"} 16353 16354# If no C compiler flags were specified, use CFLAGS. 16355LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16356 16357# Allow CC to be a program name with arguments. 16358compiler=$CC 16359 16360 16361# Check for command to grab the raw symbol name followed by C symbol from nm. 16362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 16363printf %s "checking command to parse $NM output from $compiler object... " >&6; } 16364if test ${lt_cv_sys_global_symbol_pipe+y} 16365then : 16366 printf %s "(cached) " >&6 16367else case e in #( 16368 e) 16369# These are sane defaults that work on at least a few old systems. 16370# [They come from Ultrix. What could be older than Ultrix?!! ;)] 16371 16372# Character class describing NM global symbol codes. 16373symcode='[BCDEGRST]' 16374 16375# Regexp to match symbols that can be accessed directly from C. 16376sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 16377 16378# Define system-specific variables. 16379case $host_os in 16380aix*) 16381 symcode='[BCDT]' 16382 ;; 16383cygwin* | mingw* | pw32* | cegcc*) 16384 symcode='[ABCDGISTW]' 16385 ;; 16386hpux*) 16387 if test ia64 = "$host_cpu"; then 16388 symcode='[ABCDEGRST]' 16389 fi 16390 ;; 16391irix* | nonstopux*) 16392 symcode='[BCDEGRST]' 16393 ;; 16394osf*) 16395 symcode='[BCDEGQRST]' 16396 ;; 16397solaris*) 16398 symcode='[BDRT]' 16399 ;; 16400sco3.2v5*) 16401 symcode='[DT]' 16402 ;; 16403sysv4.2uw2*) 16404 symcode='[DT]' 16405 ;; 16406sysv5* | sco5v6* | unixware* | OpenUNIX*) 16407 symcode='[ABDT]' 16408 ;; 16409sysv4) 16410 symcode='[DFNSTU]' 16411 ;; 16412esac 16413 16414# If we're using GNU nm, then use its standard symbol codes. 16415case `$NM -V 2>&1` in 16416*GNU* | *'with BFD'*) 16417 symcode='[ABCDGIRSTW]' ;; 16418esac 16419 16420if test "$lt_cv_nm_interface" = "MS dumpbin"; then 16421 # Gets list of data symbols to import. 16422 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 16423 # Adjust the below global symbol transforms to fixup imported variables. 16424 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 16425 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 16426 lt_c_name_lib_hook="\ 16427 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 16428 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 16429else 16430 # Disable hooks by default. 16431 lt_cv_sys_global_symbol_to_import= 16432 lt_cdecl_hook= 16433 lt_c_name_hook= 16434 lt_c_name_lib_hook= 16435fi 16436 16437# Transform an extracted symbol line into a proper C declaration. 16438# Some systems (esp. on ia64) link data and code symbols differently, 16439# so use this general approach. 16440lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 16441$lt_cdecl_hook\ 16442" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 16443" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 16444 16445# Transform an extracted symbol line into symbol name and symbol address 16446lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 16447$lt_c_name_hook\ 16448" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 16449" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 16450 16451# Transform an extracted symbol line into symbol name with lib prefix and 16452# symbol address. 16453lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 16454$lt_c_name_lib_hook\ 16455" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 16456" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 16457" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 16458 16459# Handle CRLF in mingw tool chain 16460opt_cr= 16461case $build_os in 16462mingw*) 16463 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 16464 ;; 16465esac 16466 16467# Try without a prefix underscore, then with it. 16468for ac_symprfx in "" "_"; do 16469 16470 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 16471 symxfrm="\\1 $ac_symprfx\\2 \\2" 16472 16473 # Write the raw and C identifiers. 16474 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 16475 # Fake it for dumpbin and say T for any non-static function, 16476 # D for any global variable and I for any imported variable. 16477 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 16478 # which start with @ or ?. 16479 lt_cv_sys_global_symbol_pipe="$AWK '"\ 16480" {last_section=section; section=\$ 3};"\ 16481" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 16482" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 16483" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 16484" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 16485" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 16486" \$ 0!~/External *\|/{next};"\ 16487" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 16488" {if(hide[section]) next};"\ 16489" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 16490" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 16491" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 16492" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 16493" ' prfx=^$ac_symprfx" 16494 else 16495 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 16496 fi 16497 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 16498 16499 # Check to see that the pipe works correctly. 16500 pipe_works=no 16501 16502 rm -f conftest* 16503 cat > conftest.$ac_ext <<_LT_EOF 16504#ifdef __cplusplus 16505extern "C" { 16506#endif 16507char nm_test_var; 16508void nm_test_func(void); 16509void nm_test_func(void){} 16510#ifdef __cplusplus 16511} 16512#endif 16513int main(){nm_test_var='a';nm_test_func();return(0);} 16514_LT_EOF 16515 16516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16517 (eval $ac_compile) 2>&5 16518 ac_status=$? 16519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16520 test $ac_status = 0; }; then 16521 # Now try to grab the symbols. 16522 nlist=conftest.nm 16523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 16524 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 16525 ac_status=$? 16526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16527 test $ac_status = 0; } && test -s "$nlist"; then 16528 # Try sorting and uniquifying the output. 16529 if sort "$nlist" | uniq > "$nlist"T; then 16530 mv -f "$nlist"T "$nlist" 16531 else 16532 rm -f "$nlist"T 16533 fi 16534 16535 # Make sure that we snagged all the symbols we need. 16536 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 16537 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 16538 cat <<_LT_EOF > conftest.$ac_ext 16539/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 16540#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 16541/* DATA imports from DLLs on WIN32 can't be const, because runtime 16542 relocations are performed -- see ld's documentation on pseudo-relocs. */ 16543# define LT_DLSYM_CONST 16544#elif defined __osf__ 16545/* This system does not cope well with relocations in const data. */ 16546# define LT_DLSYM_CONST 16547#else 16548# define LT_DLSYM_CONST const 16549#endif 16550 16551#ifdef __cplusplus 16552extern "C" { 16553#endif 16554 16555_LT_EOF 16556 # Now generate the symbol file. 16557 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 16558 16559 cat <<_LT_EOF >> conftest.$ac_ext 16560 16561/* The mapping between symbol names and symbols. */ 16562LT_DLSYM_CONST struct { 16563 const char *name; 16564 void *address; 16565} 16566lt__PROGRAM__LTX_preloaded_symbols[] = 16567{ 16568 { "@PROGRAM@", (void *) 0 }, 16569_LT_EOF 16570 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 16571 cat <<\_LT_EOF >> conftest.$ac_ext 16572 {0, (void *) 0} 16573}; 16574 16575/* This works around a problem in FreeBSD linker */ 16576#ifdef FREEBSD_WORKAROUND 16577static const void *lt_preloaded_setup() { 16578 return lt__PROGRAM__LTX_preloaded_symbols; 16579} 16580#endif 16581 16582#ifdef __cplusplus 16583} 16584#endif 16585_LT_EOF 16586 # Now try linking the two files. 16587 mv conftest.$ac_objext conftstm.$ac_objext 16588 lt_globsym_save_LIBS=$LIBS 16589 lt_globsym_save_CFLAGS=$CFLAGS 16590 LIBS=conftstm.$ac_objext 16591 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 16592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16593 (eval $ac_link) 2>&5 16594 ac_status=$? 16595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16596 test $ac_status = 0; } && test -s conftest$ac_exeext; then 16597 pipe_works=yes 16598 fi 16599 LIBS=$lt_globsym_save_LIBS 16600 CFLAGS=$lt_globsym_save_CFLAGS 16601 else 16602 echo "cannot find nm_test_func in $nlist" >&5 16603 fi 16604 else 16605 echo "cannot find nm_test_var in $nlist" >&5 16606 fi 16607 else 16608 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 16609 fi 16610 else 16611 echo "$progname: failed program was:" >&5 16612 cat conftest.$ac_ext >&5 16613 fi 16614 rm -rf conftest* conftst* 16615 16616 # Do not use the global_symbol_pipe unless it works. 16617 if test yes = "$pipe_works"; then 16618 break 16619 else 16620 lt_cv_sys_global_symbol_pipe= 16621 fi 16622done 16623 ;; 16624esac 16625fi 16626 16627if test -z "$lt_cv_sys_global_symbol_pipe"; then 16628 lt_cv_sys_global_symbol_to_cdecl= 16629fi 16630if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 16631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 16632printf "%s\n" "failed" >&6; } 16633else 16634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 16635printf "%s\n" "ok" >&6; } 16636fi 16637 16638# Response file support. 16639if test "$lt_cv_nm_interface" = "MS dumpbin"; then 16640 nm_file_list_spec='@' 16641elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 16642 nm_file_list_spec='@' 16643fi 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 16682printf %s "checking for sysroot... " >&6; } 16683 16684# Check whether --with-sysroot was given. 16685if test ${with_sysroot+y} 16686then : 16687 withval=$with_sysroot; 16688else case e in #( 16689 e) with_sysroot=no ;; 16690esac 16691fi 16692 16693 16694lt_sysroot= 16695case $with_sysroot in #( 16696 yes) 16697 if test yes = "$GCC"; then 16698 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 16699 fi 16700 ;; #( 16701 /*) 16702 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 16703 ;; #( 16704 no|'') 16705 ;; #( 16706 *) 16707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 16708printf "%s\n" "$with_sysroot" >&6; } 16709 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 16710 ;; 16711esac 16712 16713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 16714printf "%s\n" "${lt_sysroot:-no}" >&6; } 16715 16716 16717 16718 16719 16720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 16721printf %s "checking for a working dd... " >&6; } 16722if test ${ac_cv_path_lt_DD+y} 16723then : 16724 printf %s "(cached) " >&6 16725else case e in #( 16726 e) printf 0123456789abcdef0123456789abcdef >conftest.i 16727cat conftest.i conftest.i >conftest2.i 16728: ${lt_DD:=$DD} 16729if test -z "$lt_DD"; then 16730 ac_path_lt_DD_found=false 16731 # Loop through the user's path and test for each of PROGNAME-LIST 16732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16733for as_dir in $PATH 16734do 16735 IFS=$as_save_IFS 16736 case $as_dir in #((( 16737 '') as_dir=./ ;; 16738 */) ;; 16739 *) as_dir=$as_dir/ ;; 16740 esac 16741 for ac_prog in dd 16742 do 16743 for ac_exec_ext in '' $ac_executable_extensions; do 16744 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 16745 as_fn_executable_p "$ac_path_lt_DD" || continue 16746if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 16747 cmp -s conftest.i conftest.out \ 16748 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 16749fi 16750 $ac_path_lt_DD_found && break 3 16751 done 16752 done 16753 done 16754IFS=$as_save_IFS 16755 if test -z "$ac_cv_path_lt_DD"; then 16756 : 16757 fi 16758else 16759 ac_cv_path_lt_DD=$lt_DD 16760fi 16761 16762rm -f conftest.i conftest2.i conftest.out ;; 16763esac 16764fi 16765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 16766printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 16767 16768 16769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 16770printf %s "checking how to truncate binary pipes... " >&6; } 16771if test ${lt_cv_truncate_bin+y} 16772then : 16773 printf %s "(cached) " >&6 16774else case e in #( 16775 e) printf 0123456789abcdef0123456789abcdef >conftest.i 16776cat conftest.i conftest.i >conftest2.i 16777lt_cv_truncate_bin= 16778if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 16779 cmp -s conftest.i conftest.out \ 16780 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 16781fi 16782rm -f conftest.i conftest2.i conftest.out 16783test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 16784esac 16785fi 16786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 16787printf "%s\n" "$lt_cv_truncate_bin" >&6; } 16788 16789 16790 16791 16792 16793 16794 16795# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 16796func_cc_basename () 16797{ 16798 for cc_temp in $*""; do 16799 case $cc_temp in 16800 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16801 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16802 \-*) ;; 16803 *) break;; 16804 esac 16805 done 16806 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 16807} 16808 16809# Check whether --enable-libtool-lock was given. 16810if test ${enable_libtool_lock+y} 16811then : 16812 enableval=$enable_libtool_lock; 16813fi 16814 16815test no = "$enable_libtool_lock" || enable_libtool_lock=yes 16816 16817# Some flags need to be propagated to the compiler or linker for good 16818# libtool support. 16819case $host in 16820ia64-*-hpux*) 16821 # Find out what ABI is being produced by ac_compile, and set mode 16822 # options accordingly. 16823 echo 'int i;' > conftest.$ac_ext 16824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16825 (eval $ac_compile) 2>&5 16826 ac_status=$? 16827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16828 test $ac_status = 0; }; then 16829 case `$FILECMD conftest.$ac_objext` in 16830 *ELF-32*) 16831 HPUX_IA64_MODE=32 16832 ;; 16833 *ELF-64*) 16834 HPUX_IA64_MODE=64 16835 ;; 16836 esac 16837 fi 16838 rm -rf conftest* 16839 ;; 16840*-*-irix6*) 16841 # Find out what ABI is being produced by ac_compile, and set linker 16842 # options accordingly. 16843 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 16844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16845 (eval $ac_compile) 2>&5 16846 ac_status=$? 16847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16848 test $ac_status = 0; }; then 16849 if test yes = "$lt_cv_prog_gnu_ld"; then 16850 case `$FILECMD conftest.$ac_objext` in 16851 *32-bit*) 16852 LD="${LD-ld} -melf32bsmip" 16853 ;; 16854 *N32*) 16855 LD="${LD-ld} -melf32bmipn32" 16856 ;; 16857 *64-bit*) 16858 LD="${LD-ld} -melf64bmip" 16859 ;; 16860 esac 16861 else 16862 case `$FILECMD conftest.$ac_objext` in 16863 *32-bit*) 16864 LD="${LD-ld} -32" 16865 ;; 16866 *N32*) 16867 LD="${LD-ld} -n32" 16868 ;; 16869 *64-bit*) 16870 LD="${LD-ld} -64" 16871 ;; 16872 esac 16873 fi 16874 fi 16875 rm -rf conftest* 16876 ;; 16877 16878mips64*-*linux*) 16879 # Find out what ABI is being produced by ac_compile, and set linker 16880 # options accordingly. 16881 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 16882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16883 (eval $ac_compile) 2>&5 16884 ac_status=$? 16885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16886 test $ac_status = 0; }; then 16887 emul=elf 16888 case `$FILECMD conftest.$ac_objext` in 16889 *32-bit*) 16890 emul="${emul}32" 16891 ;; 16892 *64-bit*) 16893 emul="${emul}64" 16894 ;; 16895 esac 16896 case `$FILECMD conftest.$ac_objext` in 16897 *MSB*) 16898 emul="${emul}btsmip" 16899 ;; 16900 *LSB*) 16901 emul="${emul}ltsmip" 16902 ;; 16903 esac 16904 case `$FILECMD conftest.$ac_objext` in 16905 *N32*) 16906 emul="${emul}n32" 16907 ;; 16908 esac 16909 LD="${LD-ld} -m $emul" 16910 fi 16911 rm -rf conftest* 16912 ;; 16913 16914x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 16915s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 16916 # Find out what ABI is being produced by ac_compile, and set linker 16917 # options accordingly. Note that the listed cases only cover the 16918 # situations where additional linker options are needed (such as when 16919 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 16920 # vice versa); the common cases where no linker options are needed do 16921 # not appear in the list. 16922 echo 'int i;' > conftest.$ac_ext 16923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16924 (eval $ac_compile) 2>&5 16925 ac_status=$? 16926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16927 test $ac_status = 0; }; then 16928 case `$FILECMD conftest.o` in 16929 *32-bit*) 16930 case $host in 16931 x86_64-*kfreebsd*-gnu) 16932 LD="${LD-ld} -m elf_i386_fbsd" 16933 ;; 16934 x86_64-*linux*) 16935 case `$FILECMD conftest.o` in 16936 *x86-64*) 16937 LD="${LD-ld} -m elf32_x86_64" 16938 ;; 16939 *) 16940 LD="${LD-ld} -m elf_i386" 16941 ;; 16942 esac 16943 ;; 16944 powerpc64le-*linux*) 16945 LD="${LD-ld} -m elf32lppclinux" 16946 ;; 16947 powerpc64-*linux*) 16948 LD="${LD-ld} -m elf32ppclinux" 16949 ;; 16950 s390x-*linux*) 16951 LD="${LD-ld} -m elf_s390" 16952 ;; 16953 sparc64-*linux*) 16954 LD="${LD-ld} -m elf32_sparc" 16955 ;; 16956 esac 16957 ;; 16958 *64-bit*) 16959 case $host in 16960 x86_64-*kfreebsd*-gnu) 16961 LD="${LD-ld} -m elf_x86_64_fbsd" 16962 ;; 16963 x86_64-*linux*) 16964 LD="${LD-ld} -m elf_x86_64" 16965 ;; 16966 powerpcle-*linux*) 16967 LD="${LD-ld} -m elf64lppc" 16968 ;; 16969 powerpc-*linux*) 16970 LD="${LD-ld} -m elf64ppc" 16971 ;; 16972 s390*-*linux*|s390*-*tpf*) 16973 LD="${LD-ld} -m elf64_s390" 16974 ;; 16975 sparc*-*linux*) 16976 LD="${LD-ld} -m elf64_sparc" 16977 ;; 16978 esac 16979 ;; 16980 esac 16981 fi 16982 rm -rf conftest* 16983 ;; 16984 16985*-*-sco3.2v5*) 16986 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 16987 SAVE_CFLAGS=$CFLAGS 16988 CFLAGS="$CFLAGS -belf" 16989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 16990printf %s "checking whether the C compiler needs -belf... " >&6; } 16991if test ${lt_cv_cc_needs_belf+y} 16992then : 16993 printf %s "(cached) " >&6 16994else case e in #( 16995 e) ac_ext=c 16996ac_cpp='$CPP $CPPFLAGS' 16997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16999ac_compiler_gnu=$ac_cv_c_compiler_gnu 17000 17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17002/* end confdefs.h. */ 17003 17004int 17005main (void) 17006{ 17007 17008 ; 17009 return 0; 17010} 17011_ACEOF 17012if ac_fn_c_try_link "$LINENO" 17013then : 17014 lt_cv_cc_needs_belf=yes 17015else case e in #( 17016 e) lt_cv_cc_needs_belf=no ;; 17017esac 17018fi 17019rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17020 conftest$ac_exeext conftest.$ac_ext 17021 ac_ext=c 17022ac_cpp='$CPP $CPPFLAGS' 17023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17025ac_compiler_gnu=$ac_cv_c_compiler_gnu 17026 ;; 17027esac 17028fi 17029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 17030printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 17031 if test yes != "$lt_cv_cc_needs_belf"; then 17032 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 17033 CFLAGS=$SAVE_CFLAGS 17034 fi 17035 ;; 17036*-*solaris*) 17037 # Find out what ABI is being produced by ac_compile, and set linker 17038 # options accordingly. 17039 echo 'int i;' > conftest.$ac_ext 17040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17041 (eval $ac_compile) 2>&5 17042 ac_status=$? 17043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17044 test $ac_status = 0; }; then 17045 case `$FILECMD conftest.o` in 17046 *64-bit*) 17047 case $lt_cv_prog_gnu_ld in 17048 yes*) 17049 case $host in 17050 i?86-*-solaris*|x86_64-*-solaris*) 17051 LD="${LD-ld} -m elf_x86_64" 17052 ;; 17053 sparc*-*-solaris*) 17054 LD="${LD-ld} -m elf64_sparc" 17055 ;; 17056 esac 17057 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 17058 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 17059 LD=${LD-ld}_sol2 17060 fi 17061 ;; 17062 *) 17063 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 17064 LD="${LD-ld} -64" 17065 fi 17066 ;; 17067 esac 17068 ;; 17069 esac 17070 fi 17071 rm -rf conftest* 17072 ;; 17073esac 17074 17075need_locks=$enable_libtool_lock 17076 17077if test -n "$ac_tool_prefix"; then 17078 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 17079set dummy ${ac_tool_prefix}mt; ac_word=$2 17080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17081printf %s "checking for $ac_word... " >&6; } 17082if test ${ac_cv_prog_MANIFEST_TOOL+y} 17083then : 17084 printf %s "(cached) " >&6 17085else case e in #( 17086 e) if test -n "$MANIFEST_TOOL"; then 17087 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 17088else 17089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17090for as_dir in $PATH 17091do 17092 IFS=$as_save_IFS 17093 case $as_dir in #((( 17094 '') as_dir=./ ;; 17095 */) ;; 17096 *) as_dir=$as_dir/ ;; 17097 esac 17098 for ac_exec_ext in '' $ac_executable_extensions; do 17099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17100 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 17101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17102 break 2 17103 fi 17104done 17105 done 17106IFS=$as_save_IFS 17107 17108fi ;; 17109esac 17110fi 17111MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 17112if test -n "$MANIFEST_TOOL"; then 17113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 17114printf "%s\n" "$MANIFEST_TOOL" >&6; } 17115else 17116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17117printf "%s\n" "no" >&6; } 17118fi 17119 17120 17121fi 17122if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 17123 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 17124 # Extract the first word of "mt", so it can be a program name with args. 17125set dummy mt; ac_word=$2 17126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17127printf %s "checking for $ac_word... " >&6; } 17128if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 17129then : 17130 printf %s "(cached) " >&6 17131else case e in #( 17132 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 17133 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 17134else 17135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17136for as_dir in $PATH 17137do 17138 IFS=$as_save_IFS 17139 case $as_dir in #((( 17140 '') as_dir=./ ;; 17141 */) ;; 17142 *) as_dir=$as_dir/ ;; 17143 esac 17144 for ac_exec_ext in '' $ac_executable_extensions; do 17145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17146 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 17147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17148 break 2 17149 fi 17150done 17151 done 17152IFS=$as_save_IFS 17153 17154fi ;; 17155esac 17156fi 17157ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 17158if test -n "$ac_ct_MANIFEST_TOOL"; then 17159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 17160printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 17161else 17162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17163printf "%s\n" "no" >&6; } 17164fi 17165 17166 if test "x$ac_ct_MANIFEST_TOOL" = x; then 17167 MANIFEST_TOOL=":" 17168 else 17169 case $cross_compiling:$ac_tool_warned in 17170yes:) 17171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17172printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17173ac_tool_warned=yes ;; 17174esac 17175 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 17176 fi 17177else 17178 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 17179fi 17180 17181test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 17182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 17183printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 17184if test ${lt_cv_path_mainfest_tool+y} 17185then : 17186 printf %s "(cached) " >&6 17187else case e in #( 17188 e) lt_cv_path_mainfest_tool=no 17189 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 17190 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 17191 cat conftest.err >&5 17192 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 17193 lt_cv_path_mainfest_tool=yes 17194 fi 17195 rm -f conftest* ;; 17196esac 17197fi 17198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 17199printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 17200if test yes != "$lt_cv_path_mainfest_tool"; then 17201 MANIFEST_TOOL=: 17202fi 17203 17204 17205 17206 17207 17208 17209 case $host_os in 17210 rhapsody* | darwin*) 17211 if test -n "$ac_tool_prefix"; then 17212 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 17213set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 17214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17215printf %s "checking for $ac_word... " >&6; } 17216if test ${ac_cv_prog_DSYMUTIL+y} 17217then : 17218 printf %s "(cached) " >&6 17219else case e in #( 17220 e) if test -n "$DSYMUTIL"; then 17221 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 17222else 17223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17224for as_dir in $PATH 17225do 17226 IFS=$as_save_IFS 17227 case $as_dir in #((( 17228 '') as_dir=./ ;; 17229 */) ;; 17230 *) as_dir=$as_dir/ ;; 17231 esac 17232 for ac_exec_ext in '' $ac_executable_extensions; do 17233 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17234 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 17235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17236 break 2 17237 fi 17238done 17239 done 17240IFS=$as_save_IFS 17241 17242fi ;; 17243esac 17244fi 17245DSYMUTIL=$ac_cv_prog_DSYMUTIL 17246if test -n "$DSYMUTIL"; then 17247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 17248printf "%s\n" "$DSYMUTIL" >&6; } 17249else 17250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17251printf "%s\n" "no" >&6; } 17252fi 17253 17254 17255fi 17256if test -z "$ac_cv_prog_DSYMUTIL"; then 17257 ac_ct_DSYMUTIL=$DSYMUTIL 17258 # Extract the first word of "dsymutil", so it can be a program name with args. 17259set dummy dsymutil; ac_word=$2 17260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17261printf %s "checking for $ac_word... " >&6; } 17262if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 17263then : 17264 printf %s "(cached) " >&6 17265else case e in #( 17266 e) if test -n "$ac_ct_DSYMUTIL"; then 17267 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 17268else 17269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17270for as_dir in $PATH 17271do 17272 IFS=$as_save_IFS 17273 case $as_dir in #((( 17274 '') as_dir=./ ;; 17275 */) ;; 17276 *) as_dir=$as_dir/ ;; 17277 esac 17278 for ac_exec_ext in '' $ac_executable_extensions; do 17279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17280 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 17281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17282 break 2 17283 fi 17284done 17285 done 17286IFS=$as_save_IFS 17287 17288fi ;; 17289esac 17290fi 17291ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 17292if test -n "$ac_ct_DSYMUTIL"; then 17293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 17294printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 17295else 17296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17297printf "%s\n" "no" >&6; } 17298fi 17299 17300 if test "x$ac_ct_DSYMUTIL" = x; then 17301 DSYMUTIL=":" 17302 else 17303 case $cross_compiling:$ac_tool_warned in 17304yes:) 17305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17306printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17307ac_tool_warned=yes ;; 17308esac 17309 DSYMUTIL=$ac_ct_DSYMUTIL 17310 fi 17311else 17312 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 17313fi 17314 17315 if test -n "$ac_tool_prefix"; then 17316 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 17317set dummy ${ac_tool_prefix}nmedit; ac_word=$2 17318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17319printf %s "checking for $ac_word... " >&6; } 17320if test ${ac_cv_prog_NMEDIT+y} 17321then : 17322 printf %s "(cached) " >&6 17323else case e in #( 17324 e) if test -n "$NMEDIT"; then 17325 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 17326else 17327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17328for as_dir in $PATH 17329do 17330 IFS=$as_save_IFS 17331 case $as_dir in #((( 17332 '') as_dir=./ ;; 17333 */) ;; 17334 *) as_dir=$as_dir/ ;; 17335 esac 17336 for ac_exec_ext in '' $ac_executable_extensions; do 17337 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17338 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 17339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17340 break 2 17341 fi 17342done 17343 done 17344IFS=$as_save_IFS 17345 17346fi ;; 17347esac 17348fi 17349NMEDIT=$ac_cv_prog_NMEDIT 17350if test -n "$NMEDIT"; then 17351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 17352printf "%s\n" "$NMEDIT" >&6; } 17353else 17354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17355printf "%s\n" "no" >&6; } 17356fi 17357 17358 17359fi 17360if test -z "$ac_cv_prog_NMEDIT"; then 17361 ac_ct_NMEDIT=$NMEDIT 17362 # Extract the first word of "nmedit", so it can be a program name with args. 17363set dummy nmedit; ac_word=$2 17364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17365printf %s "checking for $ac_word... " >&6; } 17366if test ${ac_cv_prog_ac_ct_NMEDIT+y} 17367then : 17368 printf %s "(cached) " >&6 17369else case e in #( 17370 e) if test -n "$ac_ct_NMEDIT"; then 17371 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 17372else 17373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17374for as_dir in $PATH 17375do 17376 IFS=$as_save_IFS 17377 case $as_dir in #((( 17378 '') as_dir=./ ;; 17379 */) ;; 17380 *) as_dir=$as_dir/ ;; 17381 esac 17382 for ac_exec_ext in '' $ac_executable_extensions; do 17383 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17384 ac_cv_prog_ac_ct_NMEDIT="nmedit" 17385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17386 break 2 17387 fi 17388done 17389 done 17390IFS=$as_save_IFS 17391 17392fi ;; 17393esac 17394fi 17395ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 17396if test -n "$ac_ct_NMEDIT"; then 17397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 17398printf "%s\n" "$ac_ct_NMEDIT" >&6; } 17399else 17400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17401printf "%s\n" "no" >&6; } 17402fi 17403 17404 if test "x$ac_ct_NMEDIT" = x; then 17405 NMEDIT=":" 17406 else 17407 case $cross_compiling:$ac_tool_warned in 17408yes:) 17409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17410printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17411ac_tool_warned=yes ;; 17412esac 17413 NMEDIT=$ac_ct_NMEDIT 17414 fi 17415else 17416 NMEDIT="$ac_cv_prog_NMEDIT" 17417fi 17418 17419 if test -n "$ac_tool_prefix"; then 17420 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 17421set dummy ${ac_tool_prefix}lipo; ac_word=$2 17422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17423printf %s "checking for $ac_word... " >&6; } 17424if test ${ac_cv_prog_LIPO+y} 17425then : 17426 printf %s "(cached) " >&6 17427else case e in #( 17428 e) if test -n "$LIPO"; then 17429 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 17430else 17431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17432for as_dir in $PATH 17433do 17434 IFS=$as_save_IFS 17435 case $as_dir in #((( 17436 '') as_dir=./ ;; 17437 */) ;; 17438 *) as_dir=$as_dir/ ;; 17439 esac 17440 for ac_exec_ext in '' $ac_executable_extensions; do 17441 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17442 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 17443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17444 break 2 17445 fi 17446done 17447 done 17448IFS=$as_save_IFS 17449 17450fi ;; 17451esac 17452fi 17453LIPO=$ac_cv_prog_LIPO 17454if test -n "$LIPO"; then 17455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 17456printf "%s\n" "$LIPO" >&6; } 17457else 17458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17459printf "%s\n" "no" >&6; } 17460fi 17461 17462 17463fi 17464if test -z "$ac_cv_prog_LIPO"; then 17465 ac_ct_LIPO=$LIPO 17466 # Extract the first word of "lipo", so it can be a program name with args. 17467set dummy lipo; ac_word=$2 17468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17469printf %s "checking for $ac_word... " >&6; } 17470if test ${ac_cv_prog_ac_ct_LIPO+y} 17471then : 17472 printf %s "(cached) " >&6 17473else case e in #( 17474 e) if test -n "$ac_ct_LIPO"; then 17475 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 17476else 17477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17478for as_dir in $PATH 17479do 17480 IFS=$as_save_IFS 17481 case $as_dir in #((( 17482 '') as_dir=./ ;; 17483 */) ;; 17484 *) as_dir=$as_dir/ ;; 17485 esac 17486 for ac_exec_ext in '' $ac_executable_extensions; do 17487 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17488 ac_cv_prog_ac_ct_LIPO="lipo" 17489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17490 break 2 17491 fi 17492done 17493 done 17494IFS=$as_save_IFS 17495 17496fi ;; 17497esac 17498fi 17499ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 17500if test -n "$ac_ct_LIPO"; then 17501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 17502printf "%s\n" "$ac_ct_LIPO" >&6; } 17503else 17504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17505printf "%s\n" "no" >&6; } 17506fi 17507 17508 if test "x$ac_ct_LIPO" = x; then 17509 LIPO=":" 17510 else 17511 case $cross_compiling:$ac_tool_warned in 17512yes:) 17513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17514printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17515ac_tool_warned=yes ;; 17516esac 17517 LIPO=$ac_ct_LIPO 17518 fi 17519else 17520 LIPO="$ac_cv_prog_LIPO" 17521fi 17522 17523 if test -n "$ac_tool_prefix"; then 17524 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 17525set dummy ${ac_tool_prefix}otool; ac_word=$2 17526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17527printf %s "checking for $ac_word... " >&6; } 17528if test ${ac_cv_prog_OTOOL+y} 17529then : 17530 printf %s "(cached) " >&6 17531else case e in #( 17532 e) if test -n "$OTOOL"; then 17533 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 17534else 17535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17536for as_dir in $PATH 17537do 17538 IFS=$as_save_IFS 17539 case $as_dir in #((( 17540 '') as_dir=./ ;; 17541 */) ;; 17542 *) as_dir=$as_dir/ ;; 17543 esac 17544 for ac_exec_ext in '' $ac_executable_extensions; do 17545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17546 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 17547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17548 break 2 17549 fi 17550done 17551 done 17552IFS=$as_save_IFS 17553 17554fi ;; 17555esac 17556fi 17557OTOOL=$ac_cv_prog_OTOOL 17558if test -n "$OTOOL"; then 17559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17560printf "%s\n" "$OTOOL" >&6; } 17561else 17562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17563printf "%s\n" "no" >&6; } 17564fi 17565 17566 17567fi 17568if test -z "$ac_cv_prog_OTOOL"; then 17569 ac_ct_OTOOL=$OTOOL 17570 # Extract the first word of "otool", so it can be a program name with args. 17571set dummy otool; ac_word=$2 17572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17573printf %s "checking for $ac_word... " >&6; } 17574if test ${ac_cv_prog_ac_ct_OTOOL+y} 17575then : 17576 printf %s "(cached) " >&6 17577else case e in #( 17578 e) if test -n "$ac_ct_OTOOL"; then 17579 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 17580else 17581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17582for as_dir in $PATH 17583do 17584 IFS=$as_save_IFS 17585 case $as_dir in #((( 17586 '') as_dir=./ ;; 17587 */) ;; 17588 *) as_dir=$as_dir/ ;; 17589 esac 17590 for ac_exec_ext in '' $ac_executable_extensions; do 17591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17592 ac_cv_prog_ac_ct_OTOOL="otool" 17593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17594 break 2 17595 fi 17596done 17597 done 17598IFS=$as_save_IFS 17599 17600fi ;; 17601esac 17602fi 17603ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 17604if test -n "$ac_ct_OTOOL"; then 17605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 17606printf "%s\n" "$ac_ct_OTOOL" >&6; } 17607else 17608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17609printf "%s\n" "no" >&6; } 17610fi 17611 17612 if test "x$ac_ct_OTOOL" = x; then 17613 OTOOL=":" 17614 else 17615 case $cross_compiling:$ac_tool_warned in 17616yes:) 17617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17618printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17619ac_tool_warned=yes ;; 17620esac 17621 OTOOL=$ac_ct_OTOOL 17622 fi 17623else 17624 OTOOL="$ac_cv_prog_OTOOL" 17625fi 17626 17627 if test -n "$ac_tool_prefix"; then 17628 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 17629set dummy ${ac_tool_prefix}otool64; ac_word=$2 17630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17631printf %s "checking for $ac_word... " >&6; } 17632if test ${ac_cv_prog_OTOOL64+y} 17633then : 17634 printf %s "(cached) " >&6 17635else case e in #( 17636 e) if test -n "$OTOOL64"; then 17637 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 17638else 17639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17640for as_dir in $PATH 17641do 17642 IFS=$as_save_IFS 17643 case $as_dir in #((( 17644 '') as_dir=./ ;; 17645 */) ;; 17646 *) as_dir=$as_dir/ ;; 17647 esac 17648 for ac_exec_ext in '' $ac_executable_extensions; do 17649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17650 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 17651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17652 break 2 17653 fi 17654done 17655 done 17656IFS=$as_save_IFS 17657 17658fi ;; 17659esac 17660fi 17661OTOOL64=$ac_cv_prog_OTOOL64 17662if test -n "$OTOOL64"; then 17663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 17664printf "%s\n" "$OTOOL64" >&6; } 17665else 17666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17667printf "%s\n" "no" >&6; } 17668fi 17669 17670 17671fi 17672if test -z "$ac_cv_prog_OTOOL64"; then 17673 ac_ct_OTOOL64=$OTOOL64 17674 # Extract the first word of "otool64", so it can be a program name with args. 17675set dummy otool64; ac_word=$2 17676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17677printf %s "checking for $ac_word... " >&6; } 17678if test ${ac_cv_prog_ac_ct_OTOOL64+y} 17679then : 17680 printf %s "(cached) " >&6 17681else case e in #( 17682 e) if test -n "$ac_ct_OTOOL64"; then 17683 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 17684else 17685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17686for as_dir in $PATH 17687do 17688 IFS=$as_save_IFS 17689 case $as_dir in #((( 17690 '') as_dir=./ ;; 17691 */) ;; 17692 *) as_dir=$as_dir/ ;; 17693 esac 17694 for ac_exec_ext in '' $ac_executable_extensions; do 17695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17696 ac_cv_prog_ac_ct_OTOOL64="otool64" 17697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17698 break 2 17699 fi 17700done 17701 done 17702IFS=$as_save_IFS 17703 17704fi ;; 17705esac 17706fi 17707ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 17708if test -n "$ac_ct_OTOOL64"; then 17709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 17710printf "%s\n" "$ac_ct_OTOOL64" >&6; } 17711else 17712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17713printf "%s\n" "no" >&6; } 17714fi 17715 17716 if test "x$ac_ct_OTOOL64" = x; then 17717 OTOOL64=":" 17718 else 17719 case $cross_compiling:$ac_tool_warned in 17720yes:) 17721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17722printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17723ac_tool_warned=yes ;; 17724esac 17725 OTOOL64=$ac_ct_OTOOL64 17726 fi 17727else 17728 OTOOL64="$ac_cv_prog_OTOOL64" 17729fi 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 17758printf %s "checking for -single_module linker flag... " >&6; } 17759if test ${lt_cv_apple_cc_single_mod+y} 17760then : 17761 printf %s "(cached) " >&6 17762else case e in #( 17763 e) lt_cv_apple_cc_single_mod=no 17764 if test -z "$LT_MULTI_MODULE"; then 17765 # By default we will add the -single_module flag. You can override 17766 # by either setting the environment variable LT_MULTI_MODULE 17767 # non-empty at configure time, or by adding -multi_module to the 17768 # link flags. 17769 rm -rf libconftest.dylib* 17770 echo "int foo(void){return 1;}" > conftest.c 17771 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 17772-dynamiclib -Wl,-single_module conftest.c" >&5 17773 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 17774 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 17775 _lt_result=$? 17776 # If there is a non-empty error log, and "single_module" 17777 # appears in it, assume the flag caused a linker warning 17778 if test -s conftest.err && $GREP single_module conftest.err; then 17779 cat conftest.err >&5 17780 # Otherwise, if the output was created with a 0 exit code from 17781 # the compiler, it worked. 17782 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 17783 lt_cv_apple_cc_single_mod=yes 17784 else 17785 cat conftest.err >&5 17786 fi 17787 rm -rf libconftest.dylib* 17788 rm -f conftest.* 17789 fi ;; 17790esac 17791fi 17792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 17793printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 17794 17795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 17796printf %s "checking for -exported_symbols_list linker flag... " >&6; } 17797if test ${lt_cv_ld_exported_symbols_list+y} 17798then : 17799 printf %s "(cached) " >&6 17800else case e in #( 17801 e) lt_cv_ld_exported_symbols_list=no 17802 save_LDFLAGS=$LDFLAGS 17803 echo "_main" > conftest.sym 17804 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 17805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17806/* end confdefs.h. */ 17807 17808int 17809main (void) 17810{ 17811 17812 ; 17813 return 0; 17814} 17815_ACEOF 17816if ac_fn_c_try_link "$LINENO" 17817then : 17818 lt_cv_ld_exported_symbols_list=yes 17819else case e in #( 17820 e) lt_cv_ld_exported_symbols_list=no ;; 17821esac 17822fi 17823rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17824 conftest$ac_exeext conftest.$ac_ext 17825 LDFLAGS=$save_LDFLAGS 17826 ;; 17827esac 17828fi 17829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 17830printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 17831 17832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 17833printf %s "checking for -force_load linker flag... " >&6; } 17834if test ${lt_cv_ld_force_load+y} 17835then : 17836 printf %s "(cached) " >&6 17837else case e in #( 17838 e) lt_cv_ld_force_load=no 17839 cat > conftest.c << _LT_EOF 17840int forced_loaded() { return 2;} 17841_LT_EOF 17842 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 17843 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 17844 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 17845 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 17846 echo "$RANLIB libconftest.a" >&5 17847 $RANLIB libconftest.a 2>&5 17848 cat > conftest.c << _LT_EOF 17849int main() { return 0;} 17850_LT_EOF 17851 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 17852 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 17853 _lt_result=$? 17854 if test -s conftest.err && $GREP force_load conftest.err; then 17855 cat conftest.err >&5 17856 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 17857 lt_cv_ld_force_load=yes 17858 else 17859 cat conftest.err >&5 17860 fi 17861 rm -f conftest.err libconftest.a conftest conftest.c 17862 rm -rf conftest.dSYM 17863 ;; 17864esac 17865fi 17866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 17867printf "%s\n" "$lt_cv_ld_force_load" >&6; } 17868 case $host_os in 17869 rhapsody* | darwin1.[012]) 17870 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 17871 darwin1.*) 17872 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 17873 darwin*) 17874 case $MACOSX_DEPLOYMENT_TARGET,$host in 17875 10.[012],*|,*powerpc*-darwin[5-8]*) 17876 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 17877 *) 17878 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 17879 esac 17880 ;; 17881 esac 17882 if test yes = "$lt_cv_apple_cc_single_mod"; then 17883 _lt_dar_single_mod='$single_module' 17884 fi 17885 if test yes = "$lt_cv_ld_exported_symbols_list"; then 17886 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 17887 else 17888 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 17889 fi 17890 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 17891 _lt_dsymutil='~$DSYMUTIL $lib || :' 17892 else 17893 _lt_dsymutil= 17894 fi 17895 ;; 17896 esac 17897 17898# func_munge_path_list VARIABLE PATH 17899# ----------------------------------- 17900# VARIABLE is name of variable containing _space_ separated list of 17901# directories to be munged by the contents of PATH, which is string 17902# having a format: 17903# "DIR[:DIR]:" 17904# string "DIR[ DIR]" will be prepended to VARIABLE 17905# ":DIR[:DIR]" 17906# string "DIR[ DIR]" will be appended to VARIABLE 17907# "DIRP[:DIRP]::[DIRA:]DIRA" 17908# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 17909# "DIRA[ DIRA]" will be appended to VARIABLE 17910# "DIR[:DIR]" 17911# VARIABLE will be replaced by "DIR[ DIR]" 17912func_munge_path_list () 17913{ 17914 case x$2 in 17915 x) 17916 ;; 17917 *:) 17918 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 17919 ;; 17920 x:*) 17921 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 17922 ;; 17923 *::*) 17924 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 17925 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 17926 ;; 17927 *) 17928 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 17929 ;; 17930 esac 17931} 17932 17933ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 17934" 17935if test "x$ac_cv_header_dlfcn_h" = xyes 17936then : 17937 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 17938 17939fi 17940 17941 17942 17943 17944 17945# Set options 17946# Check whether --enable-static was given. 17947if test ${enable_static+y} 17948then : 17949 enableval=$enable_static; p=${PACKAGE-default} 17950 case $enableval in 17951 yes) enable_static=yes ;; 17952 no) enable_static=no ;; 17953 *) 17954 enable_static=no 17955 # Look at the argument we got. We use all the common list separators. 17956 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 17957 for pkg in $enableval; do 17958 IFS=$lt_save_ifs 17959 if test "X$pkg" = "X$p"; then 17960 enable_static=yes 17961 fi 17962 done 17963 IFS=$lt_save_ifs 17964 ;; 17965 esac 17966else case e in #( 17967 e) enable_static=no ;; 17968esac 17969fi 17970 17971 17972 17973 17974 17975 17976 17977enable_win32_dll=yes 17978 17979case $host in 17980*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 17981 if test -n "$ac_tool_prefix"; then 17982 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 17983set dummy ${ac_tool_prefix}as; ac_word=$2 17984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17985printf %s "checking for $ac_word... " >&6; } 17986if test ${ac_cv_prog_AS+y} 17987then : 17988 printf %s "(cached) " >&6 17989else case e in #( 17990 e) if test -n "$AS"; then 17991 ac_cv_prog_AS="$AS" # Let the user override the test. 17992else 17993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17994for as_dir in $PATH 17995do 17996 IFS=$as_save_IFS 17997 case $as_dir in #((( 17998 '') as_dir=./ ;; 17999 */) ;; 18000 *) as_dir=$as_dir/ ;; 18001 esac 18002 for ac_exec_ext in '' $ac_executable_extensions; do 18003 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18004 ac_cv_prog_AS="${ac_tool_prefix}as" 18005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18006 break 2 18007 fi 18008done 18009 done 18010IFS=$as_save_IFS 18011 18012fi ;; 18013esac 18014fi 18015AS=$ac_cv_prog_AS 18016if test -n "$AS"; then 18017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 18018printf "%s\n" "$AS" >&6; } 18019else 18020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18021printf "%s\n" "no" >&6; } 18022fi 18023 18024 18025fi 18026if test -z "$ac_cv_prog_AS"; then 18027 ac_ct_AS=$AS 18028 # Extract the first word of "as", so it can be a program name with args. 18029set dummy as; ac_word=$2 18030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18031printf %s "checking for $ac_word... " >&6; } 18032if test ${ac_cv_prog_ac_ct_AS+y} 18033then : 18034 printf %s "(cached) " >&6 18035else case e in #( 18036 e) if test -n "$ac_ct_AS"; then 18037 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 18038else 18039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18040for as_dir in $PATH 18041do 18042 IFS=$as_save_IFS 18043 case $as_dir in #((( 18044 '') as_dir=./ ;; 18045 */) ;; 18046 *) as_dir=$as_dir/ ;; 18047 esac 18048 for ac_exec_ext in '' $ac_executable_extensions; do 18049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18050 ac_cv_prog_ac_ct_AS="as" 18051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18052 break 2 18053 fi 18054done 18055 done 18056IFS=$as_save_IFS 18057 18058fi ;; 18059esac 18060fi 18061ac_ct_AS=$ac_cv_prog_ac_ct_AS 18062if test -n "$ac_ct_AS"; then 18063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 18064printf "%s\n" "$ac_ct_AS" >&6; } 18065else 18066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18067printf "%s\n" "no" >&6; } 18068fi 18069 18070 if test "x$ac_ct_AS" = x; then 18071 AS="false" 18072 else 18073 case $cross_compiling:$ac_tool_warned in 18074yes:) 18075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18076printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18077ac_tool_warned=yes ;; 18078esac 18079 AS=$ac_ct_AS 18080 fi 18081else 18082 AS="$ac_cv_prog_AS" 18083fi 18084 18085 if test -n "$ac_tool_prefix"; then 18086 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 18087set dummy ${ac_tool_prefix}dlltool; ac_word=$2 18088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18089printf %s "checking for $ac_word... " >&6; } 18090if test ${ac_cv_prog_DLLTOOL+y} 18091then : 18092 printf %s "(cached) " >&6 18093else case e in #( 18094 e) if test -n "$DLLTOOL"; then 18095 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 18096else 18097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18098for as_dir in $PATH 18099do 18100 IFS=$as_save_IFS 18101 case $as_dir in #((( 18102 '') as_dir=./ ;; 18103 */) ;; 18104 *) as_dir=$as_dir/ ;; 18105 esac 18106 for ac_exec_ext in '' $ac_executable_extensions; do 18107 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18108 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 18109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18110 break 2 18111 fi 18112done 18113 done 18114IFS=$as_save_IFS 18115 18116fi ;; 18117esac 18118fi 18119DLLTOOL=$ac_cv_prog_DLLTOOL 18120if test -n "$DLLTOOL"; then 18121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 18122printf "%s\n" "$DLLTOOL" >&6; } 18123else 18124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18125printf "%s\n" "no" >&6; } 18126fi 18127 18128 18129fi 18130if test -z "$ac_cv_prog_DLLTOOL"; then 18131 ac_ct_DLLTOOL=$DLLTOOL 18132 # Extract the first word of "dlltool", so it can be a program name with args. 18133set dummy dlltool; ac_word=$2 18134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18135printf %s "checking for $ac_word... " >&6; } 18136if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 18137then : 18138 printf %s "(cached) " >&6 18139else case e in #( 18140 e) if test -n "$ac_ct_DLLTOOL"; then 18141 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 18142else 18143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18144for as_dir in $PATH 18145do 18146 IFS=$as_save_IFS 18147 case $as_dir in #((( 18148 '') as_dir=./ ;; 18149 */) ;; 18150 *) as_dir=$as_dir/ ;; 18151 esac 18152 for ac_exec_ext in '' $ac_executable_extensions; do 18153 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18154 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 18155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18156 break 2 18157 fi 18158done 18159 done 18160IFS=$as_save_IFS 18161 18162fi ;; 18163esac 18164fi 18165ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 18166if test -n "$ac_ct_DLLTOOL"; then 18167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 18168printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 18169else 18170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18171printf "%s\n" "no" >&6; } 18172fi 18173 18174 if test "x$ac_ct_DLLTOOL" = x; then 18175 DLLTOOL="false" 18176 else 18177 case $cross_compiling:$ac_tool_warned in 18178yes:) 18179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18180printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18181ac_tool_warned=yes ;; 18182esac 18183 DLLTOOL=$ac_ct_DLLTOOL 18184 fi 18185else 18186 DLLTOOL="$ac_cv_prog_DLLTOOL" 18187fi 18188 18189 if test -n "$ac_tool_prefix"; then 18190 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 18191set dummy ${ac_tool_prefix}objdump; ac_word=$2 18192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18193printf %s "checking for $ac_word... " >&6; } 18194if test ${ac_cv_prog_OBJDUMP+y} 18195then : 18196 printf %s "(cached) " >&6 18197else case e in #( 18198 e) if test -n "$OBJDUMP"; then 18199 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 18200else 18201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18202for as_dir in $PATH 18203do 18204 IFS=$as_save_IFS 18205 case $as_dir in #((( 18206 '') as_dir=./ ;; 18207 */) ;; 18208 *) as_dir=$as_dir/ ;; 18209 esac 18210 for ac_exec_ext in '' $ac_executable_extensions; do 18211 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18212 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 18213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18214 break 2 18215 fi 18216done 18217 done 18218IFS=$as_save_IFS 18219 18220fi ;; 18221esac 18222fi 18223OBJDUMP=$ac_cv_prog_OBJDUMP 18224if test -n "$OBJDUMP"; then 18225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 18226printf "%s\n" "$OBJDUMP" >&6; } 18227else 18228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18229printf "%s\n" "no" >&6; } 18230fi 18231 18232 18233fi 18234if test -z "$ac_cv_prog_OBJDUMP"; then 18235 ac_ct_OBJDUMP=$OBJDUMP 18236 # Extract the first word of "objdump", so it can be a program name with args. 18237set dummy objdump; ac_word=$2 18238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18239printf %s "checking for $ac_word... " >&6; } 18240if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 18241then : 18242 printf %s "(cached) " >&6 18243else case e in #( 18244 e) if test -n "$ac_ct_OBJDUMP"; then 18245 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 18246else 18247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18248for as_dir in $PATH 18249do 18250 IFS=$as_save_IFS 18251 case $as_dir in #((( 18252 '') as_dir=./ ;; 18253 */) ;; 18254 *) as_dir=$as_dir/ ;; 18255 esac 18256 for ac_exec_ext in '' $ac_executable_extensions; do 18257 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18258 ac_cv_prog_ac_ct_OBJDUMP="objdump" 18259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18260 break 2 18261 fi 18262done 18263 done 18264IFS=$as_save_IFS 18265 18266fi ;; 18267esac 18268fi 18269ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 18270if test -n "$ac_ct_OBJDUMP"; then 18271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 18272printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 18273else 18274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18275printf "%s\n" "no" >&6; } 18276fi 18277 18278 if test "x$ac_ct_OBJDUMP" = x; then 18279 OBJDUMP="false" 18280 else 18281 case $cross_compiling:$ac_tool_warned in 18282yes:) 18283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18284printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18285ac_tool_warned=yes ;; 18286esac 18287 OBJDUMP=$ac_ct_OBJDUMP 18288 fi 18289else 18290 OBJDUMP="$ac_cv_prog_OBJDUMP" 18291fi 18292 18293 ;; 18294esac 18295 18296test -z "$AS" && AS=as 18297 18298 18299 18300 18301 18302test -z "$DLLTOOL" && DLLTOOL=dlltool 18303 18304 18305 18306 18307 18308test -z "$OBJDUMP" && OBJDUMP=objdump 18309 18310 18311 18312 18313 18314 18315 18316 enable_dlopen=no 18317 18318 18319 18320 # Check whether --enable-shared was given. 18321if test ${enable_shared+y} 18322then : 18323 enableval=$enable_shared; p=${PACKAGE-default} 18324 case $enableval in 18325 yes) enable_shared=yes ;; 18326 no) enable_shared=no ;; 18327 *) 18328 enable_shared=no 18329 # Look at the argument we got. We use all the common list separators. 18330 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 18331 for pkg in $enableval; do 18332 IFS=$lt_save_ifs 18333 if test "X$pkg" = "X$p"; then 18334 enable_shared=yes 18335 fi 18336 done 18337 IFS=$lt_save_ifs 18338 ;; 18339 esac 18340else case e in #( 18341 e) enable_shared=yes ;; 18342esac 18343fi 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355# Check whether --with-pic was given. 18356if test ${with_pic+y} 18357then : 18358 withval=$with_pic; lt_p=${PACKAGE-default} 18359 case $withval in 18360 yes|no) pic_mode=$withval ;; 18361 *) 18362 pic_mode=default 18363 # Look at the argument we got. We use all the common list separators. 18364 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 18365 for lt_pkg in $withval; do 18366 IFS=$lt_save_ifs 18367 if test "X$lt_pkg" = "X$lt_p"; then 18368 pic_mode=yes 18369 fi 18370 done 18371 IFS=$lt_save_ifs 18372 ;; 18373 esac 18374else case e in #( 18375 e) pic_mode=default ;; 18376esac 18377fi 18378 18379 18380 18381 18382 18383 18384 18385 18386 # Check whether --enable-fast-install was given. 18387if test ${enable_fast_install+y} 18388then : 18389 enableval=$enable_fast_install; p=${PACKAGE-default} 18390 case $enableval in 18391 yes) enable_fast_install=yes ;; 18392 no) enable_fast_install=no ;; 18393 *) 18394 enable_fast_install=no 18395 # Look at the argument we got. We use all the common list separators. 18396 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 18397 for pkg in $enableval; do 18398 IFS=$lt_save_ifs 18399 if test "X$pkg" = "X$p"; then 18400 enable_fast_install=yes 18401 fi 18402 done 18403 IFS=$lt_save_ifs 18404 ;; 18405 esac 18406else case e in #( 18407 e) enable_fast_install=yes ;; 18408esac 18409fi 18410 18411 18412 18413 18414 18415 18416 18417 18418 shared_archive_member_spec= 18419case $host,$enable_shared in 18420power*-*-aix[5-9]*,yes) 18421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 18422printf %s "checking which variant of shared library versioning to provide... " >&6; } 18423 18424# Check whether --with-aix-soname was given. 18425if test ${with_aix_soname+y} 18426then : 18427 withval=$with_aix_soname; case $withval in 18428 aix|svr4|both) 18429 ;; 18430 *) 18431 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 18432 ;; 18433 esac 18434 lt_cv_with_aix_soname=$with_aix_soname 18435else case e in #( 18436 e) if test ${lt_cv_with_aix_soname+y} 18437then : 18438 printf %s "(cached) " >&6 18439else case e in #( 18440 e) lt_cv_with_aix_soname=aix ;; 18441esac 18442fi 18443 18444 with_aix_soname=$lt_cv_with_aix_soname ;; 18445esac 18446fi 18447 18448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 18449printf "%s\n" "$with_aix_soname" >&6; } 18450 if test aix != "$with_aix_soname"; then 18451 # For the AIX way of multilib, we name the shared archive member 18452 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 18453 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 18454 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 18455 # the AIX toolchain works better with OBJECT_MODE set (default 32). 18456 if test 64 = "${OBJECT_MODE-32}"; then 18457 shared_archive_member_spec=shr_64 18458 else 18459 shared_archive_member_spec=shr 18460 fi 18461 fi 18462 ;; 18463*) 18464 with_aix_soname=aix 18465 ;; 18466esac 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477# This can be used to rebuild libtool when needed 18478LIBTOOL_DEPS=$ltmain 18479 18480# Always use our own libtool. 18481LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18482 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506 18507 18508 18509 18510 18511 18512test -z "$LN_S" && LN_S="ln -s" 18513 18514 18515 18516 18517 18518 18519 18520 18521 18522 18523 18524 18525 18526 18527if test -n "${ZSH_VERSION+set}"; then 18528 setopt NO_GLOB_SUBST 18529fi 18530 18531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 18532printf %s "checking for objdir... " >&6; } 18533if test ${lt_cv_objdir+y} 18534then : 18535 printf %s "(cached) " >&6 18536else case e in #( 18537 e) rm -f .libs 2>/dev/null 18538mkdir .libs 2>/dev/null 18539if test -d .libs; then 18540 lt_cv_objdir=.libs 18541else 18542 # MS-DOS does not allow filenames that begin with a dot. 18543 lt_cv_objdir=_libs 18544fi 18545rmdir .libs 2>/dev/null ;; 18546esac 18547fi 18548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 18549printf "%s\n" "$lt_cv_objdir" >&6; } 18550objdir=$lt_cv_objdir 18551 18552 18553 18554 18555 18556printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 18557 18558 18559 18560 18561case $host_os in 18562aix3*) 18563 # AIX sometimes has problems with the GCC collect2 program. For some 18564 # reason, if we set the COLLECT_NAMES environment variable, the problems 18565 # vanish in a puff of smoke. 18566 if test set != "${COLLECT_NAMES+set}"; then 18567 COLLECT_NAMES= 18568 export COLLECT_NAMES 18569 fi 18570 ;; 18571esac 18572 18573# Global variables: 18574ofile=libtool 18575can_build_shared=yes 18576 18577# All known linkers require a '.a' archive for static linking (except MSVC and 18578# ICC, which need '.lib'). 18579libext=a 18580 18581with_gnu_ld=$lt_cv_prog_gnu_ld 18582 18583old_CC=$CC 18584old_CFLAGS=$CFLAGS 18585 18586# Set sane defaults for various variables 18587test -z "$CC" && CC=cc 18588test -z "$LTCC" && LTCC=$CC 18589test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 18590test -z "$LD" && LD=ld 18591test -z "$ac_objext" && ac_objext=o 18592 18593func_cc_basename $compiler 18594cc_basename=$func_cc_basename_result 18595 18596 18597# Only perform the check for file, if the check method requires it 18598test -z "$MAGIC_CMD" && MAGIC_CMD=file 18599case $deplibs_check_method in 18600file_magic*) 18601 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 18602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 18603printf %s "checking for ${ac_tool_prefix}file... " >&6; } 18604if test ${lt_cv_path_MAGIC_CMD+y} 18605then : 18606 printf %s "(cached) " >&6 18607else case e in #( 18608 e) case $MAGIC_CMD in 18609[\\/*] | ?:[\\/]*) 18610 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 18611 ;; 18612*) 18613 lt_save_MAGIC_CMD=$MAGIC_CMD 18614 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 18615 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 18616 for ac_dir in $ac_dummy; do 18617 IFS=$lt_save_ifs 18618 test -z "$ac_dir" && ac_dir=. 18619 if test -f "$ac_dir/${ac_tool_prefix}file"; then 18620 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 18621 if test -n "$file_magic_test_file"; then 18622 case $deplibs_check_method in 18623 "file_magic "*) 18624 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 18625 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18626 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 18627 $EGREP "$file_magic_regex" > /dev/null; then 18628 : 18629 else 18630 cat <<_LT_EOF 1>&2 18631 18632*** Warning: the command libtool uses to detect shared libraries, 18633*** $file_magic_cmd, produces output that libtool cannot recognize. 18634*** The result is that libtool may fail to recognize shared libraries 18635*** as such. This will affect the creation of libtool libraries that 18636*** depend on shared libraries, but programs linked with such libtool 18637*** libraries will work regardless of this problem. Nevertheless, you 18638*** may want to report the problem to your system manager and/or to 18639*** bug-libtool@gnu.org 18640 18641_LT_EOF 18642 fi ;; 18643 esac 18644 fi 18645 break 18646 fi 18647 done 18648 IFS=$lt_save_ifs 18649 MAGIC_CMD=$lt_save_MAGIC_CMD 18650 ;; 18651esac ;; 18652esac 18653fi 18654 18655MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18656if test -n "$MAGIC_CMD"; then 18657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 18658printf "%s\n" "$MAGIC_CMD" >&6; } 18659else 18660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18661printf "%s\n" "no" >&6; } 18662fi 18663 18664 18665 18666 18667 18668if test -z "$lt_cv_path_MAGIC_CMD"; then 18669 if test -n "$ac_tool_prefix"; then 18670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 18671printf %s "checking for file... " >&6; } 18672if test ${lt_cv_path_MAGIC_CMD+y} 18673then : 18674 printf %s "(cached) " >&6 18675else case e in #( 18676 e) case $MAGIC_CMD in 18677[\\/*] | ?:[\\/]*) 18678 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 18679 ;; 18680*) 18681 lt_save_MAGIC_CMD=$MAGIC_CMD 18682 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 18683 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 18684 for ac_dir in $ac_dummy; do 18685 IFS=$lt_save_ifs 18686 test -z "$ac_dir" && ac_dir=. 18687 if test -f "$ac_dir/file"; then 18688 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 18689 if test -n "$file_magic_test_file"; then 18690 case $deplibs_check_method in 18691 "file_magic "*) 18692 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 18693 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18694 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 18695 $EGREP "$file_magic_regex" > /dev/null; then 18696 : 18697 else 18698 cat <<_LT_EOF 1>&2 18699 18700*** Warning: the command libtool uses to detect shared libraries, 18701*** $file_magic_cmd, produces output that libtool cannot recognize. 18702*** The result is that libtool may fail to recognize shared libraries 18703*** as such. This will affect the creation of libtool libraries that 18704*** depend on shared libraries, but programs linked with such libtool 18705*** libraries will work regardless of this problem. Nevertheless, you 18706*** may want to report the problem to your system manager and/or to 18707*** bug-libtool@gnu.org 18708 18709_LT_EOF 18710 fi ;; 18711 esac 18712 fi 18713 break 18714 fi 18715 done 18716 IFS=$lt_save_ifs 18717 MAGIC_CMD=$lt_save_MAGIC_CMD 18718 ;; 18719esac ;; 18720esac 18721fi 18722 18723MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18724if test -n "$MAGIC_CMD"; then 18725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 18726printf "%s\n" "$MAGIC_CMD" >&6; } 18727else 18728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18729printf "%s\n" "no" >&6; } 18730fi 18731 18732 18733 else 18734 MAGIC_CMD=: 18735 fi 18736fi 18737 18738 fi 18739 ;; 18740esac 18741 18742# Use C for the default configuration in the libtool script 18743 18744lt_save_CC=$CC 18745ac_ext=c 18746ac_cpp='$CPP $CPPFLAGS' 18747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18749ac_compiler_gnu=$ac_cv_c_compiler_gnu 18750 18751 18752# Source file extension for C test sources. 18753ac_ext=c 18754 18755# Object file extension for compiled C test sources. 18756objext=o 18757objext=$objext 18758 18759# Code to be used in simple compile tests 18760lt_simple_compile_test_code="int some_variable = 0;" 18761 18762# Code to be used in simple link tests 18763lt_simple_link_test_code='int main(){return(0);}' 18764 18765 18766 18767 18768 18769 18770 18771# If no C compiler was specified, use CC. 18772LTCC=${LTCC-"$CC"} 18773 18774# If no C compiler flags were specified, use CFLAGS. 18775LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18776 18777# Allow CC to be a program name with arguments. 18778compiler=$CC 18779 18780# Save the default compiler, since it gets overwritten when the other 18781# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 18782compiler_DEFAULT=$CC 18783 18784# save warnings/boilerplate of simple test code 18785ac_outfile=conftest.$ac_objext 18786echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18787eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18788_lt_compiler_boilerplate=`cat conftest.err` 18789$RM conftest* 18790 18791ac_outfile=conftest.$ac_objext 18792echo "$lt_simple_link_test_code" >conftest.$ac_ext 18793eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18794_lt_linker_boilerplate=`cat conftest.err` 18795$RM -r conftest* 18796 18797 18798## CAVEAT EMPTOR: 18799## There is no encapsulation within the following macros, do not change 18800## the running order or otherwise move them around unless you know exactly 18801## what you are doing... 18802if test -n "$compiler"; then 18803 18804lt_prog_compiler_no_builtin_flag= 18805 18806if test yes = "$GCC"; then 18807 case $cc_basename in 18808 nvcc*) 18809 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 18810 *) 18811 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 18812 esac 18813 18814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 18815printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 18816if test ${lt_cv_prog_compiler_rtti_exceptions+y} 18817then : 18818 printf %s "(cached) " >&6 18819else case e in #( 18820 e) lt_cv_prog_compiler_rtti_exceptions=no 18821 ac_outfile=conftest.$ac_objext 18822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18823 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 18824 # Insert the option either (1) after the last *FLAGS variable, or 18825 # (2) before a word containing "conftest.", or (3) at the end. 18826 # Note that $ac_compile itself does not contain backslashes and begins 18827 # with a dollar sign (not a hyphen), so the echo should work correctly. 18828 # The option is referenced via a variable to avoid confusing sed. 18829 lt_compile=`echo "$ac_compile" | $SED \ 18830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18832 -e 's:$: $lt_compiler_flag:'` 18833 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18834 (eval "$lt_compile" 2>conftest.err) 18835 ac_status=$? 18836 cat conftest.err >&5 18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18838 if (exit $ac_status) && test -s "$ac_outfile"; then 18839 # The compiler can only warn and ignore the option if not recognized 18840 # So say no if there are warnings other than the usual output. 18841 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 18842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18843 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 18844 lt_cv_prog_compiler_rtti_exceptions=yes 18845 fi 18846 fi 18847 $RM conftest* 18848 ;; 18849esac 18850fi 18851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 18852printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 18853 18854if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 18855 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 18856else 18857 : 18858fi 18859 18860fi 18861 18862 18863 18864 18865 18866 18867 lt_prog_compiler_wl= 18868lt_prog_compiler_pic= 18869lt_prog_compiler_static= 18870 18871 18872 if test yes = "$GCC"; then 18873 lt_prog_compiler_wl='-Wl,' 18874 lt_prog_compiler_static='-static' 18875 18876 case $host_os in 18877 aix*) 18878 # All AIX code is PIC. 18879 if test ia64 = "$host_cpu"; then 18880 # AIX 5 now supports IA64 processor 18881 lt_prog_compiler_static='-Bstatic' 18882 fi 18883 lt_prog_compiler_pic='-fPIC' 18884 ;; 18885 18886 amigaos*) 18887 case $host_cpu in 18888 powerpc) 18889 # see comment about AmigaOS4 .so support 18890 lt_prog_compiler_pic='-fPIC' 18891 ;; 18892 m68k) 18893 # FIXME: we need at least 68020 code to build shared libraries, but 18894 # adding the '-m68020' flag to GCC prevents building anything better, 18895 # like '-m68040'. 18896 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 18897 ;; 18898 esac 18899 ;; 18900 18901 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 18902 # PIC is the default for these OSes. 18903 ;; 18904 18905 mingw* | cygwin* | pw32* | os2* | cegcc*) 18906 # This hack is so that the source file can tell whether it is being 18907 # built for inclusion in a dll (and should export symbols for example). 18908 # Although the cygwin gcc ignores -fPIC, still need this for old-style 18909 # (--disable-auto-import) libraries 18910 lt_prog_compiler_pic='-DDLL_EXPORT' 18911 case $host_os in 18912 os2*) 18913 lt_prog_compiler_static='$wl-static' 18914 ;; 18915 esac 18916 ;; 18917 18918 darwin* | rhapsody*) 18919 # PIC is the default on this platform 18920 # Common symbols not allowed in MH_DYLIB files 18921 lt_prog_compiler_pic='-fno-common' 18922 ;; 18923 18924 haiku*) 18925 # PIC is the default for Haiku. 18926 # The "-static" flag exists, but is broken. 18927 lt_prog_compiler_static= 18928 ;; 18929 18930 hpux*) 18931 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 18932 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 18933 # sets the default TLS model and affects inlining. 18934 case $host_cpu in 18935 hppa*64*) 18936 # +Z the default 18937 ;; 18938 *) 18939 lt_prog_compiler_pic='-fPIC' 18940 ;; 18941 esac 18942 ;; 18943 18944 interix[3-9]*) 18945 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 18946 # Instead, we relocate shared libraries at runtime. 18947 ;; 18948 18949 msdosdjgpp*) 18950 # Just because we use GCC doesn't mean we suddenly get shared libraries 18951 # on systems that don't support them. 18952 lt_prog_compiler_can_build_shared=no 18953 enable_shared=no 18954 ;; 18955 18956 *nto* | *qnx*) 18957 # QNX uses GNU C++, but need to define -shared option too, otherwise 18958 # it will coredump. 18959 lt_prog_compiler_pic='-fPIC -shared' 18960 ;; 18961 18962 sysv4*MP*) 18963 if test -d /usr/nec; then 18964 lt_prog_compiler_pic=-Kconform_pic 18965 fi 18966 ;; 18967 18968 *) 18969 lt_prog_compiler_pic='-fPIC' 18970 ;; 18971 esac 18972 18973 case $cc_basename in 18974 nvcc*) # Cuda Compiler Driver 2.2 18975 lt_prog_compiler_wl='-Xlinker ' 18976 if test -n "$lt_prog_compiler_pic"; then 18977 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 18978 fi 18979 ;; 18980 esac 18981 else 18982 # PORTME Check for flag to pass linker flags through the system compiler. 18983 case $host_os in 18984 aix*) 18985 lt_prog_compiler_wl='-Wl,' 18986 if test ia64 = "$host_cpu"; then 18987 # AIX 5 now supports IA64 processor 18988 lt_prog_compiler_static='-Bstatic' 18989 else 18990 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 18991 fi 18992 ;; 18993 18994 darwin* | rhapsody*) 18995 # PIC is the default on this platform 18996 # Common symbols not allowed in MH_DYLIB files 18997 lt_prog_compiler_pic='-fno-common' 18998 case $cc_basename in 18999 nagfor*) 19000 # NAG Fortran compiler 19001 lt_prog_compiler_wl='-Wl,-Wl,,' 19002 lt_prog_compiler_pic='-PIC' 19003 lt_prog_compiler_static='-Bstatic' 19004 ;; 19005 esac 19006 ;; 19007 19008 mingw* | cygwin* | pw32* | os2* | cegcc*) 19009 # This hack is so that the source file can tell whether it is being 19010 # built for inclusion in a dll (and should export symbols for example). 19011 lt_prog_compiler_pic='-DDLL_EXPORT' 19012 case $host_os in 19013 os2*) 19014 lt_prog_compiler_static='$wl-static' 19015 ;; 19016 esac 19017 ;; 19018 19019 hpux9* | hpux10* | hpux11*) 19020 lt_prog_compiler_wl='-Wl,' 19021 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 19022 # not for PA HP-UX. 19023 case $host_cpu in 19024 hppa*64*|ia64*) 19025 # +Z the default 19026 ;; 19027 *) 19028 lt_prog_compiler_pic='+Z' 19029 ;; 19030 esac 19031 # Is there a better lt_prog_compiler_static that works with the bundled CC? 19032 lt_prog_compiler_static='$wl-a ${wl}archive' 19033 ;; 19034 19035 irix5* | irix6* | nonstopux*) 19036 lt_prog_compiler_wl='-Wl,' 19037 # PIC (with -KPIC) is the default. 19038 lt_prog_compiler_static='-non_shared' 19039 ;; 19040 19041 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 19042 case $cc_basename in 19043 # old Intel for x86_64, which still supported -KPIC. 19044 ecc*) 19045 lt_prog_compiler_wl='-Wl,' 19046 lt_prog_compiler_pic='-KPIC' 19047 lt_prog_compiler_static='-static' 19048 ;; 19049 # icc used to be incompatible with GCC. 19050 # ICC 10 doesn't accept -KPIC any more. 19051 icc* | ifort*) 19052 lt_prog_compiler_wl='-Wl,' 19053 lt_prog_compiler_pic='-fPIC' 19054 lt_prog_compiler_static='-static' 19055 ;; 19056 # Lahey Fortran 8.1. 19057 lf95*) 19058 lt_prog_compiler_wl='-Wl,' 19059 lt_prog_compiler_pic='--shared' 19060 lt_prog_compiler_static='--static' 19061 ;; 19062 nagfor*) 19063 # NAG Fortran compiler 19064 lt_prog_compiler_wl='-Wl,-Wl,,' 19065 lt_prog_compiler_pic='-PIC' 19066 lt_prog_compiler_static='-Bstatic' 19067 ;; 19068 tcc*) 19069 # Fabrice Bellard et al's Tiny C Compiler 19070 lt_prog_compiler_wl='-Wl,' 19071 lt_prog_compiler_pic='-fPIC' 19072 lt_prog_compiler_static='-static' 19073 ;; 19074 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 19075 # Portland Group compilers (*not* the Pentium gcc compiler, 19076 # which looks to be a dead project) 19077 lt_prog_compiler_wl='-Wl,' 19078 lt_prog_compiler_pic='-fpic' 19079 lt_prog_compiler_static='-Bstatic' 19080 ;; 19081 ccc*) 19082 lt_prog_compiler_wl='-Wl,' 19083 # All Alpha code is PIC. 19084 lt_prog_compiler_static='-non_shared' 19085 ;; 19086 xl* | bgxl* | bgf* | mpixl*) 19087 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 19088 lt_prog_compiler_wl='-Wl,' 19089 lt_prog_compiler_pic='-qpic' 19090 lt_prog_compiler_static='-qstaticlink' 19091 ;; 19092 *) 19093 case `$CC -V 2>&1 | $SED 5q` in 19094 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 19095 # Sun Fortran 8.3 passes all unrecognized flags to the linker 19096 lt_prog_compiler_pic='-KPIC' 19097 lt_prog_compiler_static='-Bstatic' 19098 lt_prog_compiler_wl='' 19099 ;; 19100 *Sun\ F* | *Sun*Fortran*) 19101 lt_prog_compiler_pic='-KPIC' 19102 lt_prog_compiler_static='-Bstatic' 19103 lt_prog_compiler_wl='-Qoption ld ' 19104 ;; 19105 *Sun\ C*) 19106 # Sun C 5.9 19107 lt_prog_compiler_pic='-KPIC' 19108 lt_prog_compiler_static='-Bstatic' 19109 lt_prog_compiler_wl='-Wl,' 19110 ;; 19111 *Intel*\ [CF]*Compiler*) 19112 lt_prog_compiler_wl='-Wl,' 19113 lt_prog_compiler_pic='-fPIC' 19114 lt_prog_compiler_static='-static' 19115 ;; 19116 *Portland\ Group*) 19117 lt_prog_compiler_wl='-Wl,' 19118 lt_prog_compiler_pic='-fpic' 19119 lt_prog_compiler_static='-Bstatic' 19120 ;; 19121 esac 19122 ;; 19123 esac 19124 ;; 19125 19126 newsos6) 19127 lt_prog_compiler_pic='-KPIC' 19128 lt_prog_compiler_static='-Bstatic' 19129 ;; 19130 19131 *nto* | *qnx*) 19132 # QNX uses GNU C++, but need to define -shared option too, otherwise 19133 # it will coredump. 19134 lt_prog_compiler_pic='-fPIC -shared' 19135 ;; 19136 19137 osf3* | osf4* | osf5*) 19138 lt_prog_compiler_wl='-Wl,' 19139 # All OSF/1 code is PIC. 19140 lt_prog_compiler_static='-non_shared' 19141 ;; 19142 19143 rdos*) 19144 lt_prog_compiler_static='-non_shared' 19145 ;; 19146 19147 solaris*) 19148 lt_prog_compiler_pic='-KPIC' 19149 lt_prog_compiler_static='-Bstatic' 19150 case $cc_basename in 19151 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 19152 lt_prog_compiler_wl='-Qoption ld ';; 19153 *) 19154 lt_prog_compiler_wl='-Wl,';; 19155 esac 19156 ;; 19157 19158 sunos4*) 19159 lt_prog_compiler_wl='-Qoption ld ' 19160 lt_prog_compiler_pic='-PIC' 19161 lt_prog_compiler_static='-Bstatic' 19162 ;; 19163 19164 sysv4 | sysv4.2uw2* | sysv4.3*) 19165 lt_prog_compiler_wl='-Wl,' 19166 lt_prog_compiler_pic='-KPIC' 19167 lt_prog_compiler_static='-Bstatic' 19168 ;; 19169 19170 sysv4*MP*) 19171 if test -d /usr/nec; then 19172 lt_prog_compiler_pic='-Kconform_pic' 19173 lt_prog_compiler_static='-Bstatic' 19174 fi 19175 ;; 19176 19177 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 19178 lt_prog_compiler_wl='-Wl,' 19179 lt_prog_compiler_pic='-KPIC' 19180 lt_prog_compiler_static='-Bstatic' 19181 ;; 19182 19183 unicos*) 19184 lt_prog_compiler_wl='-Wl,' 19185 lt_prog_compiler_can_build_shared=no 19186 ;; 19187 19188 uts4*) 19189 lt_prog_compiler_pic='-pic' 19190 lt_prog_compiler_static='-Bstatic' 19191 ;; 19192 19193 *) 19194 lt_prog_compiler_can_build_shared=no 19195 ;; 19196 esac 19197 fi 19198 19199case $host_os in 19200 # For platforms that do not support PIC, -DPIC is meaningless: 19201 *djgpp*) 19202 lt_prog_compiler_pic= 19203 ;; 19204 *) 19205 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 19206 ;; 19207esac 19208 19209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 19210printf %s "checking for $compiler option to produce PIC... " >&6; } 19211if test ${lt_cv_prog_compiler_pic+y} 19212then : 19213 printf %s "(cached) " >&6 19214else case e in #( 19215 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 19216esac 19217fi 19218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 19219printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 19220lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 19221 19222# 19223# Check to make sure the PIC flag actually works. 19224# 19225if test -n "$lt_prog_compiler_pic"; then 19226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 19227printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 19228if test ${lt_cv_prog_compiler_pic_works+y} 19229then : 19230 printf %s "(cached) " >&6 19231else case e in #( 19232 e) lt_cv_prog_compiler_pic_works=no 19233 ac_outfile=conftest.$ac_objext 19234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19235 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 19236 # Insert the option either (1) after the last *FLAGS variable, or 19237 # (2) before a word containing "conftest.", or (3) at the end. 19238 # Note that $ac_compile itself does not contain backslashes and begins 19239 # with a dollar sign (not a hyphen), so the echo should work correctly. 19240 # The option is referenced via a variable to avoid confusing sed. 19241 lt_compile=`echo "$ac_compile" | $SED \ 19242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19244 -e 's:$: $lt_compiler_flag:'` 19245 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19246 (eval "$lt_compile" 2>conftest.err) 19247 ac_status=$? 19248 cat conftest.err >&5 19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19250 if (exit $ac_status) && test -s "$ac_outfile"; then 19251 # The compiler can only warn and ignore the option if not recognized 19252 # So say no if there are warnings other than the usual output. 19253 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 19254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19255 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19256 lt_cv_prog_compiler_pic_works=yes 19257 fi 19258 fi 19259 $RM conftest* 19260 ;; 19261esac 19262fi 19263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 19264printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 19265 19266if test yes = "$lt_cv_prog_compiler_pic_works"; then 19267 case $lt_prog_compiler_pic in 19268 "" | " "*) ;; 19269 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 19270 esac 19271else 19272 lt_prog_compiler_pic= 19273 lt_prog_compiler_can_build_shared=no 19274fi 19275 19276fi 19277 19278 19279 19280 19281 19282 19283 19284 19285 19286 19287 19288# 19289# Check to make sure the static flag actually works. 19290# 19291wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 19292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 19293printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 19294if test ${lt_cv_prog_compiler_static_works+y} 19295then : 19296 printf %s "(cached) " >&6 19297else case e in #( 19298 e) lt_cv_prog_compiler_static_works=no 19299 save_LDFLAGS=$LDFLAGS 19300 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 19301 echo "$lt_simple_link_test_code" > conftest.$ac_ext 19302 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19303 # The linker can only warn and ignore the option if not recognized 19304 # So say no if there are warnings 19305 if test -s conftest.err; then 19306 # Append any errors to the config.log. 19307 cat conftest.err 1>&5 19308 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 19309 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19310 if diff conftest.exp conftest.er2 >/dev/null; then 19311 lt_cv_prog_compiler_static_works=yes 19312 fi 19313 else 19314 lt_cv_prog_compiler_static_works=yes 19315 fi 19316 fi 19317 $RM -r conftest* 19318 LDFLAGS=$save_LDFLAGS 19319 ;; 19320esac 19321fi 19322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 19323printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 19324 19325if test yes = "$lt_cv_prog_compiler_static_works"; then 19326 : 19327else 19328 lt_prog_compiler_static= 19329fi 19330 19331 19332 19333 19334 19335 19336 19337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19338printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19339if test ${lt_cv_prog_compiler_c_o+y} 19340then : 19341 printf %s "(cached) " >&6 19342else case e in #( 19343 e) lt_cv_prog_compiler_c_o=no 19344 $RM -r conftest 2>/dev/null 19345 mkdir conftest 19346 cd conftest 19347 mkdir out 19348 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19349 19350 lt_compiler_flag="-o out/conftest2.$ac_objext" 19351 # Insert the option either (1) after the last *FLAGS variable, or 19352 # (2) before a word containing "conftest.", or (3) at the end. 19353 # Note that $ac_compile itself does not contain backslashes and begins 19354 # with a dollar sign (not a hyphen), so the echo should work correctly. 19355 lt_compile=`echo "$ac_compile" | $SED \ 19356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19358 -e 's:$: $lt_compiler_flag:'` 19359 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19360 (eval "$lt_compile" 2>out/conftest.err) 19361 ac_status=$? 19362 cat out/conftest.err >&5 19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19364 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19365 then 19366 # The compiler can only warn and ignore the option if not recognized 19367 # So say no if there are warnings 19368 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19369 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19370 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19371 lt_cv_prog_compiler_c_o=yes 19372 fi 19373 fi 19374 chmod u+w . 2>&5 19375 $RM conftest* 19376 # SGI C++ compiler will create directory out/ii_files/ for 19377 # template instantiation 19378 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19379 $RM out/* && rmdir out 19380 cd .. 19381 $RM -r conftest 19382 $RM conftest* 19383 ;; 19384esac 19385fi 19386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 19387printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 19388 19389 19390 19391 19392 19393 19394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19395printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19396if test ${lt_cv_prog_compiler_c_o+y} 19397then : 19398 printf %s "(cached) " >&6 19399else case e in #( 19400 e) lt_cv_prog_compiler_c_o=no 19401 $RM -r conftest 2>/dev/null 19402 mkdir conftest 19403 cd conftest 19404 mkdir out 19405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19406 19407 lt_compiler_flag="-o out/conftest2.$ac_objext" 19408 # Insert the option either (1) after the last *FLAGS variable, or 19409 # (2) before a word containing "conftest.", or (3) at the end. 19410 # Note that $ac_compile itself does not contain backslashes and begins 19411 # with a dollar sign (not a hyphen), so the echo should work correctly. 19412 lt_compile=`echo "$ac_compile" | $SED \ 19413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19415 -e 's:$: $lt_compiler_flag:'` 19416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19417 (eval "$lt_compile" 2>out/conftest.err) 19418 ac_status=$? 19419 cat out/conftest.err >&5 19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19421 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19422 then 19423 # The compiler can only warn and ignore the option if not recognized 19424 # So say no if there are warnings 19425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19426 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19427 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19428 lt_cv_prog_compiler_c_o=yes 19429 fi 19430 fi 19431 chmod u+w . 2>&5 19432 $RM conftest* 19433 # SGI C++ compiler will create directory out/ii_files/ for 19434 # template instantiation 19435 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19436 $RM out/* && rmdir out 19437 cd .. 19438 $RM -r conftest 19439 $RM conftest* 19440 ;; 19441esac 19442fi 19443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 19444printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 19445 19446 19447 19448 19449hard_links=nottested 19450if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 19451 # do not overwrite the value of need_locks provided by the user 19452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 19453printf %s "checking if we can lock with hard links... " >&6; } 19454 hard_links=yes 19455 $RM conftest* 19456 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19457 touch conftest.a 19458 ln conftest.a conftest.b 2>&5 || hard_links=no 19459 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 19461printf "%s\n" "$hard_links" >&6; } 19462 if test no = "$hard_links"; then 19463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 19464printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 19465 need_locks=warn 19466 fi 19467else 19468 need_locks=no 19469fi 19470 19471 19472 19473 19474 19475 19476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19477printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 19478 19479 runpath_var= 19480 allow_undefined_flag= 19481 always_export_symbols=no 19482 archive_cmds= 19483 archive_expsym_cmds= 19484 compiler_needs_object=no 19485 enable_shared_with_static_runtimes=no 19486 export_dynamic_flag_spec= 19487 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19488 hardcode_automatic=no 19489 hardcode_direct=no 19490 hardcode_direct_absolute=no 19491 hardcode_libdir_flag_spec= 19492 hardcode_libdir_separator= 19493 hardcode_minus_L=no 19494 hardcode_shlibpath_var=unsupported 19495 inherit_rpath=no 19496 link_all_deplibs=unknown 19497 module_cmds= 19498 module_expsym_cmds= 19499 old_archive_from_new_cmds= 19500 old_archive_from_expsyms_cmds= 19501 thread_safe_flag_spec= 19502 whole_archive_flag_spec= 19503 # include_expsyms should be a list of space-separated symbols to be *always* 19504 # included in the symbol list 19505 include_expsyms= 19506 # exclude_expsyms can be an extended regexp of symbols to exclude 19507 # it will be wrapped by ' (' and ')$', so one must not match beginning or 19508 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 19509 # as well as any symbol that contains 'd'. 19510 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 19511 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 19512 # platforms (ab)use it in PIC code, but their linkers get confused if 19513 # the symbol is explicitly referenced. Since portable code cannot 19514 # rely on this symbol name, it's probably fine to never include it in 19515 # preloaded symbol tables. 19516 # Exclude shared library initialization/finalization symbols. 19517 extract_expsyms_cmds= 19518 19519 case $host_os in 19520 cygwin* | mingw* | pw32* | cegcc*) 19521 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 19522 # When not using gcc, we currently assume that we are using 19523 # Microsoft Visual C++ or Intel C++ Compiler. 19524 if test yes != "$GCC"; then 19525 with_gnu_ld=no 19526 fi 19527 ;; 19528 interix*) 19529 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 19530 with_gnu_ld=yes 19531 ;; 19532 openbsd* | bitrig*) 19533 with_gnu_ld=no 19534 ;; 19535 esac 19536 19537 ld_shlibs=yes 19538 19539 # On some targets, GNU ld is compatible enough with the native linker 19540 # that we're better off using the native interface for both. 19541 lt_use_gnu_ld_interface=no 19542 if test yes = "$with_gnu_ld"; then 19543 case $host_os in 19544 aix*) 19545 # The AIX port of GNU ld has always aspired to compatibility 19546 # with the native linker. However, as the warning in the GNU ld 19547 # block says, versions before 2.19.5* couldn't really create working 19548 # shared libraries, regardless of the interface used. 19549 case `$LD -v 2>&1` in 19550 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 19551 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 19552 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 19553 *) 19554 lt_use_gnu_ld_interface=yes 19555 ;; 19556 esac 19557 ;; 19558 *) 19559 lt_use_gnu_ld_interface=yes 19560 ;; 19561 esac 19562 fi 19563 19564 if test yes = "$lt_use_gnu_ld_interface"; then 19565 # If archive_cmds runs LD, not CC, wlarc should be empty 19566 wlarc='$wl' 19567 19568 # Set some defaults for GNU ld with shared library support. These 19569 # are reset later if shared libraries are not supported. Putting them 19570 # here allows them to be overridden if necessary. 19571 runpath_var=LD_RUN_PATH 19572 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19573 export_dynamic_flag_spec='$wl--export-dynamic' 19574 # ancient GNU ld didn't support --whole-archive et. al. 19575 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 19576 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 19577 else 19578 whole_archive_flag_spec= 19579 fi 19580 supports_anon_versioning=no 19581 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 19582 *GNU\ gold*) supports_anon_versioning=yes ;; 19583 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 19584 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 19585 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 19586 *\ 2.11.*) ;; # other 2.11 versions 19587 *) supports_anon_versioning=yes ;; 19588 esac 19589 19590 # See if GNU ld supports shared libraries. 19591 case $host_os in 19592 aix[3-9]*) 19593 # On AIX/PPC, the GNU linker is very broken 19594 if test ia64 != "$host_cpu"; then 19595 ld_shlibs=no 19596 cat <<_LT_EOF 1>&2 19597 19598*** Warning: the GNU linker, at least up to release 2.19, is reported 19599*** to be unable to reliably create shared libraries on AIX. 19600*** Therefore, libtool is disabling shared libraries support. If you 19601*** really care for shared libraries, you may want to install binutils 19602*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 19603*** You will then need to restart the configuration process. 19604 19605_LT_EOF 19606 fi 19607 ;; 19608 19609 amigaos*) 19610 case $host_cpu in 19611 powerpc) 19612 # see comment about AmigaOS4 .so support 19613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19614 archive_expsym_cmds='' 19615 ;; 19616 m68k) 19617 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)' 19618 hardcode_libdir_flag_spec='-L$libdir' 19619 hardcode_minus_L=yes 19620 ;; 19621 esac 19622 ;; 19623 19624 beos*) 19625 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19626 allow_undefined_flag=unsupported 19627 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 19628 # support --undefined. This deserves some investigation. FIXME 19629 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19630 else 19631 ld_shlibs=no 19632 fi 19633 ;; 19634 19635 cygwin* | mingw* | pw32* | cegcc*) 19636 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 19637 # as there is no search path for DLLs. 19638 hardcode_libdir_flag_spec='-L$libdir' 19639 export_dynamic_flag_spec='$wl--export-all-symbols' 19640 allow_undefined_flag=unsupported 19641 always_export_symbols=no 19642 enable_shared_with_static_runtimes=yes 19643 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' 19644 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 19645 19646 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 19647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19648 # If the export-symbols file already is a .def file, use it as 19649 # is; otherwise, prepend EXPORTS... 19650 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 19651 cp $export_symbols $output_objdir/$soname.def; 19652 else 19653 echo EXPORTS > $output_objdir/$soname.def; 19654 cat $export_symbols >> $output_objdir/$soname.def; 19655 fi~ 19656 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19657 else 19658 ld_shlibs=no 19659 fi 19660 ;; 19661 19662 haiku*) 19663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19664 link_all_deplibs=yes 19665 ;; 19666 19667 os2*) 19668 hardcode_libdir_flag_spec='-L$libdir' 19669 hardcode_minus_L=yes 19670 allow_undefined_flag=unsupported 19671 shrext_cmds=.dll 19672 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19673 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19674 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19675 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19676 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 19677 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19678 emximp -o $lib $output_objdir/$libname.def' 19679 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19680 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19681 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19682 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19683 prefix_cmds="$SED"~ 19684 if test EXPORTS = "`$SED 1q $export_symbols`"; then 19685 prefix_cmds="$prefix_cmds -e 1d"; 19686 fi~ 19687 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 19688 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 19689 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19690 emximp -o $lib $output_objdir/$libname.def' 19691 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 19692 enable_shared_with_static_runtimes=yes 19693 file_list_spec='@' 19694 ;; 19695 19696 interix[3-9]*) 19697 hardcode_direct=no 19698 hardcode_shlibpath_var=no 19699 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 19700 export_dynamic_flag_spec='$wl-E' 19701 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 19702 # Instead, shared libraries are loaded at an image base (0x10000000 by 19703 # default) and relocated if they conflict, which is a slow very memory 19704 # consuming and fragmenting process. To avoid this, we pick a random, 19705 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 19706 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 19707 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 19708 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' 19709 ;; 19710 19711 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 19712 tmp_diet=no 19713 if test linux-dietlibc = "$host_os"; then 19714 case $cc_basename in 19715 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 19716 esac 19717 fi 19718 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 19719 && test no = "$tmp_diet" 19720 then 19721 tmp_addflag=' $pic_flag' 19722 tmp_sharedflag='-shared' 19723 case $cc_basename,$host_cpu in 19724 pgcc*) # Portland Group C compiler 19725 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' 19726 tmp_addflag=' $pic_flag' 19727 ;; 19728 pgf77* | pgf90* | pgf95* | pgfortran*) 19729 # Portland Group f77 and f90 compilers 19730 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' 19731 tmp_addflag=' $pic_flag -Mnomain' ;; 19732 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 19733 tmp_addflag=' -i_dynamic' ;; 19734 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 19735 tmp_addflag=' -i_dynamic -nofor_main' ;; 19736 ifc* | ifort*) # Intel Fortran compiler 19737 tmp_addflag=' -nofor_main' ;; 19738 lf95*) # Lahey Fortran 8.1 19739 whole_archive_flag_spec= 19740 tmp_sharedflag='--shared' ;; 19741 nagfor*) # NAGFOR 5.3 19742 tmp_sharedflag='-Wl,-shared' ;; 19743 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 19744 tmp_sharedflag='-qmkshrobj' 19745 tmp_addflag= ;; 19746 nvcc*) # Cuda Compiler Driver 2.2 19747 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' 19748 compiler_needs_object=yes 19749 ;; 19750 esac 19751 case `$CC -V 2>&1 | $SED 5q` in 19752 *Sun\ C*) # Sun C 5.9 19753 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' 19754 compiler_needs_object=yes 19755 tmp_sharedflag='-G' ;; 19756 *Sun\ F*) # Sun Fortran 8.3 19757 tmp_sharedflag='-G' ;; 19758 esac 19759 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19760 19761 if test yes = "$supports_anon_versioning"; then 19762 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 19763 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19764 echo "local: *; };" >> $output_objdir/$libname.ver~ 19765 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 19766 fi 19767 19768 case $cc_basename in 19769 tcc*) 19770 export_dynamic_flag_spec='-rdynamic' 19771 ;; 19772 xlf* | bgf* | bgxlf* | mpixlf*) 19773 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 19774 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 19775 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19776 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 19777 if test yes = "$supports_anon_versioning"; then 19778 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 19779 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19780 echo "local: *; };" >> $output_objdir/$libname.ver~ 19781 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 19782 fi 19783 ;; 19784 esac 19785 else 19786 ld_shlibs=no 19787 fi 19788 ;; 19789 19790 netbsd*) 19791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19792 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 19793 wlarc= 19794 else 19795 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19796 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19797 fi 19798 ;; 19799 19800 solaris*) 19801 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 19802 ld_shlibs=no 19803 cat <<_LT_EOF 1>&2 19804 19805*** Warning: The releases 2.8.* of the GNU linker cannot reliably 19806*** create shared libraries on Solaris systems. Therefore, libtool 19807*** is disabling shared libraries support. We urge you to upgrade GNU 19808*** binutils to release 2.9.1 or newer. Another option is to modify 19809*** your PATH or compiler configuration so that the native linker is 19810*** used, and then restart. 19811 19812_LT_EOF 19813 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19814 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19815 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19816 else 19817 ld_shlibs=no 19818 fi 19819 ;; 19820 19821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 19822 case `$LD -v 2>&1` in 19823 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 19824 ld_shlibs=no 19825 cat <<_LT_EOF 1>&2 19826 19827*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 19828*** reliably create shared libraries on SCO systems. Therefore, libtool 19829*** is disabling shared libraries support. We urge you to upgrade GNU 19830*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 19831*** your PATH or compiler configuration so that the native linker is 19832*** used, and then restart. 19833 19834_LT_EOF 19835 ;; 19836 *) 19837 # For security reasons, it is highly recommended that you always 19838 # use absolute paths for naming shared libraries, and exclude the 19839 # DT_RUNPATH tag from executables and libraries. But doing so 19840 # requires that you compile everything twice, which is a pain. 19841 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19842 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19844 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19845 else 19846 ld_shlibs=no 19847 fi 19848 ;; 19849 esac 19850 ;; 19851 19852 sunos4*) 19853 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19854 wlarc= 19855 hardcode_direct=yes 19856 hardcode_shlibpath_var=no 19857 ;; 19858 19859 *) 19860 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19861 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19862 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19863 else 19864 ld_shlibs=no 19865 fi 19866 ;; 19867 esac 19868 19869 if test no = "$ld_shlibs"; then 19870 runpath_var= 19871 hardcode_libdir_flag_spec= 19872 export_dynamic_flag_spec= 19873 whole_archive_flag_spec= 19874 fi 19875 else 19876 # PORTME fill in a description of your system's linker (not GNU ld) 19877 case $host_os in 19878 aix3*) 19879 allow_undefined_flag=unsupported 19880 always_export_symbols=yes 19881 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' 19882 # Note: this linker hardcodes the directories in LIBPATH if there 19883 # are no directories specified by -L. 19884 hardcode_minus_L=yes 19885 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 19886 # Neither direct hardcoding nor static linking is supported with a 19887 # broken collect2. 19888 hardcode_direct=unsupported 19889 fi 19890 ;; 19891 19892 aix[4-9]*) 19893 if test ia64 = "$host_cpu"; then 19894 # On IA64, the linker does run time linking by default, so we don't 19895 # have to do anything special. 19896 aix_use_runtimelinking=no 19897 exp_sym_flag='-Bexport' 19898 no_entry_flag= 19899 else 19900 # If we're using GNU nm, then we don't want the "-C" option. 19901 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 19902 # Without the "-l" option, or with the "-B" option, AIX nm treats 19903 # weak defined symbols like other global defined symbols, whereas 19904 # GNU nm marks them as "W". 19905 # While the 'weak' keyword is ignored in the Export File, we need 19906 # it in the Import File for the 'aix-soname' feature, so we have 19907 # to replace the "-B" option with "-P" for AIX nm. 19908 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 19909 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' 19910 else 19911 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 == "L") || (\$ 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' 19912 fi 19913 aix_use_runtimelinking=no 19914 19915 # Test if we are trying to use run time linking or normal 19916 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 19917 # have runtime linking enabled, and use it for executables. 19918 # For shared libraries, we enable/disable runtime linking 19919 # depending on the kind of the shared library created - 19920 # when "with_aix_soname,aix_use_runtimelinking" is: 19921 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 19922 # "aix,yes" lib.so shared, rtl:yes, for executables 19923 # lib.a static archive 19924 # "both,no" lib.so.V(shr.o) shared, rtl:yes 19925 # lib.a(lib.so.V) shared, rtl:no, for executables 19926 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 19927 # lib.a(lib.so.V) shared, rtl:no 19928 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 19929 # lib.a static archive 19930 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 19931 for ld_flag in $LDFLAGS; do 19932 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 19933 aix_use_runtimelinking=yes 19934 break 19935 fi 19936 done 19937 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 19938 # With aix-soname=svr4, we create the lib.so.V shared archives only, 19939 # so we don't have lib.a shared libs to link our executables. 19940 # We have to force runtime linking in this case. 19941 aix_use_runtimelinking=yes 19942 LDFLAGS="$LDFLAGS -Wl,-brtl" 19943 fi 19944 ;; 19945 esac 19946 19947 exp_sym_flag='-bexport' 19948 no_entry_flag='-bnoentry' 19949 fi 19950 19951 # When large executables or shared objects are built, AIX ld can 19952 # have problems creating the table of contents. If linking a library 19953 # or program results in "error TOC overflow" add -mminimal-toc to 19954 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 19955 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 19956 19957 archive_cmds='' 19958 hardcode_direct=yes 19959 hardcode_direct_absolute=yes 19960 hardcode_libdir_separator=':' 19961 link_all_deplibs=yes 19962 file_list_spec='$wl-f,' 19963 case $with_aix_soname,$aix_use_runtimelinking in 19964 aix,*) ;; # traditional, no import file 19965 svr4,* | *,yes) # use import file 19966 # The Import File defines what to hardcode. 19967 hardcode_direct=no 19968 hardcode_direct_absolute=no 19969 ;; 19970 esac 19971 19972 if test yes = "$GCC"; then 19973 case $host_os in aix4.[012]|aix4.[012].*) 19974 # We only want to do this on AIX 4.2 and lower, the check 19975 # below for broken collect2 doesn't work under 4.3+ 19976 collect2name=`$CC -print-prog-name=collect2` 19977 if test -f "$collect2name" && 19978 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 19979 then 19980 # We have reworked collect2 19981 : 19982 else 19983 # We have old collect2 19984 hardcode_direct=unsupported 19985 # It fails to find uninstalled libraries when the uninstalled 19986 # path is not listed in the libpath. Setting hardcode_minus_L 19987 # to unsupported forces relinking 19988 hardcode_minus_L=yes 19989 hardcode_libdir_flag_spec='-L$libdir' 19990 hardcode_libdir_separator= 19991 fi 19992 ;; 19993 esac 19994 shared_flag='-shared' 19995 if test yes = "$aix_use_runtimelinking"; then 19996 shared_flag="$shared_flag "'$wl-G' 19997 fi 19998 # Need to ensure runtime linking is disabled for the traditional 19999 # shared library, or the linker may eventually find shared libraries 20000 # /with/ Import File - we do not want to mix them. 20001 shared_flag_aix='-shared' 20002 shared_flag_svr4='-shared $wl-G' 20003 else 20004 # not using gcc 20005 if test ia64 = "$host_cpu"; then 20006 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 20007 # chokes on -Wl,-G. The following line is correct: 20008 shared_flag='-G' 20009 else 20010 if test yes = "$aix_use_runtimelinking"; then 20011 shared_flag='$wl-G' 20012 else 20013 shared_flag='$wl-bM:SRE' 20014 fi 20015 shared_flag_aix='$wl-bM:SRE' 20016 shared_flag_svr4='$wl-G' 20017 fi 20018 fi 20019 20020 export_dynamic_flag_spec='$wl-bexpall' 20021 # It seems that -bexpall does not export symbols beginning with 20022 # underscore (_), so it is better to generate a list of symbols to export. 20023 always_export_symbols=yes 20024 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 20025 # Warning - without using the other runtime loading flags (-brtl), 20026 # -berok will link without error, but may produce a broken library. 20027 allow_undefined_flag='-berok' 20028 # Determine the default libpath from the value encoded in an 20029 # empty executable. 20030 if test set = "${lt_cv_aix_libpath+set}"; then 20031 aix_libpath=$lt_cv_aix_libpath 20032else 20033 if test ${lt_cv_aix_libpath_+y} 20034then : 20035 printf %s "(cached) " >&6 20036else case e in #( 20037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20038/* end confdefs.h. */ 20039 20040int 20041main (void) 20042{ 20043 20044 ; 20045 return 0; 20046} 20047_ACEOF 20048if ac_fn_c_try_link "$LINENO" 20049then : 20050 20051 lt_aix_libpath_sed=' 20052 /Import File Strings/,/^$/ { 20053 /^0/ { 20054 s/^0 *\([^ ]*\) *$/\1/ 20055 p 20056 } 20057 }' 20058 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20059 # Check for a 64-bit object if we didn't find anything. 20060 if test -z "$lt_cv_aix_libpath_"; then 20061 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20062 fi 20063fi 20064rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20065 conftest$ac_exeext conftest.$ac_ext 20066 if test -z "$lt_cv_aix_libpath_"; then 20067 lt_cv_aix_libpath_=/usr/lib:/lib 20068 fi 20069 ;; 20070esac 20071fi 20072 20073 aix_libpath=$lt_cv_aix_libpath_ 20074fi 20075 20076 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 20077 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 20078 else 20079 if test ia64 = "$host_cpu"; then 20080 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 20081 allow_undefined_flag="-z nodefs" 20082 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" 20083 else 20084 # Determine the default libpath from the value encoded in an 20085 # empty executable. 20086 if test set = "${lt_cv_aix_libpath+set}"; then 20087 aix_libpath=$lt_cv_aix_libpath 20088else 20089 if test ${lt_cv_aix_libpath_+y} 20090then : 20091 printf %s "(cached) " >&6 20092else case e in #( 20093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20094/* end confdefs.h. */ 20095 20096int 20097main (void) 20098{ 20099 20100 ; 20101 return 0; 20102} 20103_ACEOF 20104if ac_fn_c_try_link "$LINENO" 20105then : 20106 20107 lt_aix_libpath_sed=' 20108 /Import File Strings/,/^$/ { 20109 /^0/ { 20110 s/^0 *\([^ ]*\) *$/\1/ 20111 p 20112 } 20113 }' 20114 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20115 # Check for a 64-bit object if we didn't find anything. 20116 if test -z "$lt_cv_aix_libpath_"; then 20117 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20118 fi 20119fi 20120rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20121 conftest$ac_exeext conftest.$ac_ext 20122 if test -z "$lt_cv_aix_libpath_"; then 20123 lt_cv_aix_libpath_=/usr/lib:/lib 20124 fi 20125 ;; 20126esac 20127fi 20128 20129 aix_libpath=$lt_cv_aix_libpath_ 20130fi 20131 20132 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 20133 # Warning - without using the other run time loading flags, 20134 # -berok will link without error, but may produce a broken library. 20135 no_undefined_flag=' $wl-bernotok' 20136 allow_undefined_flag=' $wl-berok' 20137 if test yes = "$with_gnu_ld"; then 20138 # We only use this code for GNU lds that support --whole-archive. 20139 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 20140 else 20141 # Exported symbols can be pulled into shared objects from archives 20142 whole_archive_flag_spec='$convenience' 20143 fi 20144 archive_cmds_need_lc=yes 20145 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 20146 # -brtl affects multiple linker settings, -berok does not and is overridden later 20147 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 20148 if test svr4 != "$with_aix_soname"; then 20149 # This is similar to how AIX traditionally builds its shared libraries. 20150 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' 20151 fi 20152 if test aix != "$with_aix_soname"; then 20153 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' 20154 else 20155 # used by -dlpreopen to get the symbols 20156 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 20157 fi 20158 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 20159 fi 20160 fi 20161 ;; 20162 20163 amigaos*) 20164 case $host_cpu in 20165 powerpc) 20166 # see comment about AmigaOS4 .so support 20167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20168 archive_expsym_cmds='' 20169 ;; 20170 m68k) 20171 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)' 20172 hardcode_libdir_flag_spec='-L$libdir' 20173 hardcode_minus_L=yes 20174 ;; 20175 esac 20176 ;; 20177 20178 bsdi[45]*) 20179 export_dynamic_flag_spec=-rdynamic 20180 ;; 20181 20182 cygwin* | mingw* | pw32* | cegcc*) 20183 # When not using gcc, we currently assume that we are using 20184 # Microsoft Visual C++ or Intel C++ Compiler. 20185 # hardcode_libdir_flag_spec is actually meaningless, as there is 20186 # no search path for DLLs. 20187 case $cc_basename in 20188 cl* | icl*) 20189 # Native MSVC or ICC 20190 hardcode_libdir_flag_spec=' ' 20191 allow_undefined_flag=unsupported 20192 always_export_symbols=yes 20193 file_list_spec='@' 20194 # Tell ltmain to make .lib files, not .a files. 20195 libext=lib 20196 # Tell ltmain to make .dll files, not .so files. 20197 shrext_cmds=.dll 20198 # FIXME: Setting linknames here is a bad hack. 20199 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 20200 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 20201 cp "$export_symbols" "$output_objdir/$soname.def"; 20202 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 20203 else 20204 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 20205 fi~ 20206 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 20207 linknames=' 20208 # The linker will not automatically build a static lib if we build a DLL. 20209 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 20210 enable_shared_with_static_runtimes=yes 20211 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 20212 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 20213 # Don't use ranlib 20214 old_postinstall_cmds='chmod 644 $oldlib' 20215 postlink_cmds='lt_outputfile="@OUTPUT@"~ 20216 lt_tool_outputfile="@TOOL_OUTPUT@"~ 20217 case $lt_outputfile in 20218 *.exe|*.EXE) ;; 20219 *) 20220 lt_outputfile=$lt_outputfile.exe 20221 lt_tool_outputfile=$lt_tool_outputfile.exe 20222 ;; 20223 esac~ 20224 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 20225 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 20226 $RM "$lt_outputfile.manifest"; 20227 fi' 20228 ;; 20229 *) 20230 # Assume MSVC and ICC wrapper 20231 hardcode_libdir_flag_spec=' ' 20232 allow_undefined_flag=unsupported 20233 # Tell ltmain to make .lib files, not .a files. 20234 libext=lib 20235 # Tell ltmain to make .dll files, not .so files. 20236 shrext_cmds=.dll 20237 # FIXME: Setting linknames here is a bad hack. 20238 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 20239 # The linker will automatically build a .lib file if we build a DLL. 20240 old_archive_from_new_cmds='true' 20241 # FIXME: Should let the user specify the lib program. 20242 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 20243 enable_shared_with_static_runtimes=yes 20244 ;; 20245 esac 20246 ;; 20247 20248 darwin* | rhapsody*) 20249 20250 20251 archive_cmds_need_lc=no 20252 hardcode_direct=no 20253 hardcode_automatic=yes 20254 hardcode_shlibpath_var=unsupported 20255 if test yes = "$lt_cv_ld_force_load"; then 20256 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\"`' 20257 20258 else 20259 whole_archive_flag_spec='' 20260 fi 20261 link_all_deplibs=yes 20262 allow_undefined_flag=$_lt_dar_allow_undefined 20263 case $cc_basename in 20264 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 20265 *) _lt_dar_can_shared=$GCC ;; 20266 esac 20267 if test yes = "$_lt_dar_can_shared"; then 20268 output_verbose_link_cmd=func_echo_all 20269 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 20270 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 20271 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" 20272 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" 20273 20274 else 20275 ld_shlibs=no 20276 fi 20277 20278 ;; 20279 20280 dgux*) 20281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20282 hardcode_libdir_flag_spec='-L$libdir' 20283 hardcode_shlibpath_var=no 20284 ;; 20285 20286 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 20287 # support. Future versions do this automatically, but an explicit c++rt0.o 20288 # does not break anything, and helps significantly (at the cost of a little 20289 # extra space). 20290 freebsd2.2*) 20291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 20292 hardcode_libdir_flag_spec='-R$libdir' 20293 hardcode_direct=yes 20294 hardcode_shlibpath_var=no 20295 ;; 20296 20297 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 20298 freebsd2.*) 20299 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20300 hardcode_direct=yes 20301 hardcode_minus_L=yes 20302 hardcode_shlibpath_var=no 20303 ;; 20304 20305 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 20306 freebsd* | dragonfly* | midnightbsd*) 20307 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20308 hardcode_libdir_flag_spec='-R$libdir' 20309 hardcode_direct=yes 20310 hardcode_shlibpath_var=no 20311 ;; 20312 20313 hpux9*) 20314 if test yes = "$GCC"; then 20315 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' 20316 else 20317 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' 20318 fi 20319 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 20320 hardcode_libdir_separator=: 20321 hardcode_direct=yes 20322 20323 # hardcode_minus_L: Not really in the search PATH, 20324 # but as the default location of the library. 20325 hardcode_minus_L=yes 20326 export_dynamic_flag_spec='$wl-E' 20327 ;; 20328 20329 hpux10*) 20330 if test yes,no = "$GCC,$with_gnu_ld"; then 20331 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20332 else 20333 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 20334 fi 20335 if test no = "$with_gnu_ld"; then 20336 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 20337 hardcode_libdir_separator=: 20338 hardcode_direct=yes 20339 hardcode_direct_absolute=yes 20340 export_dynamic_flag_spec='$wl-E' 20341 # hardcode_minus_L: Not really in the search PATH, 20342 # but as the default location of the library. 20343 hardcode_minus_L=yes 20344 fi 20345 ;; 20346 20347 hpux11*) 20348 if test yes,no = "$GCC,$with_gnu_ld"; then 20349 case $host_cpu in 20350 hppa*64*) 20351 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 20352 ;; 20353 ia64*) 20354 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20355 ;; 20356 *) 20357 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20358 ;; 20359 esac 20360 else 20361 case $host_cpu in 20362 hppa*64*) 20363 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 20364 ;; 20365 ia64*) 20366 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20367 ;; 20368 *) 20369 20370 # Older versions of the 11.00 compiler do not understand -b yet 20371 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 20372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 20373printf %s "checking if $CC understands -b... " >&6; } 20374if test ${lt_cv_prog_compiler__b+y} 20375then : 20376 printf %s "(cached) " >&6 20377else case e in #( 20378 e) lt_cv_prog_compiler__b=no 20379 save_LDFLAGS=$LDFLAGS 20380 LDFLAGS="$LDFLAGS -b" 20381 echo "$lt_simple_link_test_code" > conftest.$ac_ext 20382 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 20383 # The linker can only warn and ignore the option if not recognized 20384 # So say no if there are warnings 20385 if test -s conftest.err; then 20386 # Append any errors to the config.log. 20387 cat conftest.err 1>&5 20388 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 20389 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 20390 if diff conftest.exp conftest.er2 >/dev/null; then 20391 lt_cv_prog_compiler__b=yes 20392 fi 20393 else 20394 lt_cv_prog_compiler__b=yes 20395 fi 20396 fi 20397 $RM -r conftest* 20398 LDFLAGS=$save_LDFLAGS 20399 ;; 20400esac 20401fi 20402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 20403printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 20404 20405if test yes = "$lt_cv_prog_compiler__b"; then 20406 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20407else 20408 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 20409fi 20410 20411 ;; 20412 esac 20413 fi 20414 if test no = "$with_gnu_ld"; then 20415 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 20416 hardcode_libdir_separator=: 20417 20418 case $host_cpu in 20419 hppa*64*|ia64*) 20420 hardcode_direct=no 20421 hardcode_shlibpath_var=no 20422 ;; 20423 *) 20424 hardcode_direct=yes 20425 hardcode_direct_absolute=yes 20426 export_dynamic_flag_spec='$wl-E' 20427 20428 # hardcode_minus_L: Not really in the search PATH, 20429 # but as the default location of the library. 20430 hardcode_minus_L=yes 20431 ;; 20432 esac 20433 fi 20434 ;; 20435 20436 irix5* | irix6* | nonstopux*) 20437 if test yes = "$GCC"; then 20438 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' 20439 # Try to use the -exported_symbol ld option, if it does not 20440 # work, assume that -exports_file does not work either and 20441 # implicitly export all symbols. 20442 # This should be the same for all languages, so no per-tag cache variable. 20443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 20444printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 20445if test ${lt_cv_irix_exported_symbol+y} 20446then : 20447 printf %s "(cached) " >&6 20448else case e in #( 20449 e) save_LDFLAGS=$LDFLAGS 20450 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 20451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20452/* end confdefs.h. */ 20453int foo (void) { return 0; } 20454_ACEOF 20455if ac_fn_c_try_link "$LINENO" 20456then : 20457 lt_cv_irix_exported_symbol=yes 20458else case e in #( 20459 e) lt_cv_irix_exported_symbol=no ;; 20460esac 20461fi 20462rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20463 conftest$ac_exeext conftest.$ac_ext 20464 LDFLAGS=$save_LDFLAGS ;; 20465esac 20466fi 20467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 20468printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 20469 if test yes = "$lt_cv_irix_exported_symbol"; then 20470 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' 20471 fi 20472 else 20473 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' 20474 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' 20475 fi 20476 archive_cmds_need_lc='no' 20477 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20478 hardcode_libdir_separator=: 20479 inherit_rpath=yes 20480 link_all_deplibs=yes 20481 ;; 20482 20483 linux*) 20484 case $cc_basename in 20485 tcc*) 20486 # Fabrice Bellard et al's Tiny C Compiler 20487 ld_shlibs=yes 20488 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20489 ;; 20490 esac 20491 ;; 20492 20493 netbsd*) 20494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 20496 else 20497 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 20498 fi 20499 hardcode_libdir_flag_spec='-R$libdir' 20500 hardcode_direct=yes 20501 hardcode_shlibpath_var=no 20502 ;; 20503 20504 newsos6) 20505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20506 hardcode_direct=yes 20507 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20508 hardcode_libdir_separator=: 20509 hardcode_shlibpath_var=no 20510 ;; 20511 20512 *nto* | *qnx*) 20513 ;; 20514 20515 openbsd* | bitrig*) 20516 if test -f /usr/libexec/ld.so; then 20517 hardcode_direct=yes 20518 hardcode_shlibpath_var=no 20519 hardcode_direct_absolute=yes 20520 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 20521 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20522 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 20523 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 20524 export_dynamic_flag_spec='$wl-E' 20525 else 20526 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20527 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 20528 fi 20529 else 20530 ld_shlibs=no 20531 fi 20532 ;; 20533 20534 os2*) 20535 hardcode_libdir_flag_spec='-L$libdir' 20536 hardcode_minus_L=yes 20537 allow_undefined_flag=unsupported 20538 shrext_cmds=.dll 20539 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20540 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20541 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20542 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20543 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 20544 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20545 emximp -o $lib $output_objdir/$libname.def' 20546 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20547 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20548 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20549 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20550 prefix_cmds="$SED"~ 20551 if test EXPORTS = "`$SED 1q $export_symbols`"; then 20552 prefix_cmds="$prefix_cmds -e 1d"; 20553 fi~ 20554 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 20555 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 20556 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20557 emximp -o $lib $output_objdir/$libname.def' 20558 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 20559 enable_shared_with_static_runtimes=yes 20560 file_list_spec='@' 20561 ;; 20562 20563 osf3*) 20564 if test yes = "$GCC"; then 20565 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 20566 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' 20567 else 20568 allow_undefined_flag=' -expect_unresolved \*' 20569 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' 20570 fi 20571 archive_cmds_need_lc='no' 20572 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20573 hardcode_libdir_separator=: 20574 ;; 20575 20576 osf4* | osf5*) # as osf3* with the addition of -msym flag 20577 if test yes = "$GCC"; then 20578 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 20579 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' 20580 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20581 else 20582 allow_undefined_flag=' -expect_unresolved \*' 20583 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' 20584 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~ 20585 $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' 20586 20587 # Both c and cxx compiler support -rpath directly 20588 hardcode_libdir_flag_spec='-rpath $libdir' 20589 fi 20590 archive_cmds_need_lc='no' 20591 hardcode_libdir_separator=: 20592 ;; 20593 20594 solaris*) 20595 no_undefined_flag=' -z defs' 20596 if test yes = "$GCC"; then 20597 wlarc='$wl' 20598 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 20599 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20600 $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' 20601 else 20602 case `$CC -V 2>&1` in 20603 *"Compilers 5.0"*) 20604 wlarc='' 20605 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 20606 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20607 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 20608 ;; 20609 *) 20610 wlarc='$wl' 20611 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 20612 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20613 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 20614 ;; 20615 esac 20616 fi 20617 hardcode_libdir_flag_spec='-R$libdir' 20618 hardcode_shlibpath_var=no 20619 case $host_os in 20620 solaris2.[0-5] | solaris2.[0-5].*) ;; 20621 *) 20622 # The compiler driver will combine and reorder linker options, 20623 # but understands '-z linker_flag'. GCC discards it without '$wl', 20624 # but is careful enough not to reorder. 20625 # Supported since Solaris 2.6 (maybe 2.5.1?) 20626 if test yes = "$GCC"; then 20627 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 20628 else 20629 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 20630 fi 20631 ;; 20632 esac 20633 link_all_deplibs=yes 20634 ;; 20635 20636 sunos4*) 20637 if test sequent = "$host_vendor"; then 20638 # Use $CC to link under sequent, because it throws in some extra .o 20639 # files that make .init and .fini sections work. 20640 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 20641 else 20642 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 20643 fi 20644 hardcode_libdir_flag_spec='-L$libdir' 20645 hardcode_direct=yes 20646 hardcode_minus_L=yes 20647 hardcode_shlibpath_var=no 20648 ;; 20649 20650 sysv4) 20651 case $host_vendor in 20652 sni) 20653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20654 hardcode_direct=yes # is this really true??? 20655 ;; 20656 siemens) 20657 ## LD is ld it makes a PLAMLIB 20658 ## CC just makes a GrossModule. 20659 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 20660 reload_cmds='$CC -r -o $output$reload_objs' 20661 hardcode_direct=no 20662 ;; 20663 motorola) 20664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20665 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 20666 ;; 20667 esac 20668 runpath_var='LD_RUN_PATH' 20669 hardcode_shlibpath_var=no 20670 ;; 20671 20672 sysv4.3*) 20673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20674 hardcode_shlibpath_var=no 20675 export_dynamic_flag_spec='-Bexport' 20676 ;; 20677 20678 sysv4*MP*) 20679 if test -d /usr/nec; then 20680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20681 hardcode_shlibpath_var=no 20682 runpath_var=LD_RUN_PATH 20683 hardcode_runpath_var=yes 20684 ld_shlibs=yes 20685 fi 20686 ;; 20687 20688 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 20689 no_undefined_flag='$wl-z,text' 20690 archive_cmds_need_lc=no 20691 hardcode_shlibpath_var=no 20692 runpath_var='LD_RUN_PATH' 20693 20694 if test yes = "$GCC"; then 20695 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20696 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20697 else 20698 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20699 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20700 fi 20701 ;; 20702 20703 sysv5* | sco3.2v5* | sco5v6*) 20704 # Note: We CANNOT use -z defs as we might desire, because we do not 20705 # link with -lc, and that would cause any symbols used from libc to 20706 # always be unresolved, which means just about no library would 20707 # ever link correctly. If we're not using GNU ld we use -z text 20708 # though, which does catch some bad symbols but isn't as heavy-handed 20709 # as -z defs. 20710 no_undefined_flag='$wl-z,text' 20711 allow_undefined_flag='$wl-z,nodefs' 20712 archive_cmds_need_lc=no 20713 hardcode_shlibpath_var=no 20714 hardcode_libdir_flag_spec='$wl-R,$libdir' 20715 hardcode_libdir_separator=':' 20716 link_all_deplibs=yes 20717 export_dynamic_flag_spec='$wl-Bexport' 20718 runpath_var='LD_RUN_PATH' 20719 20720 if test yes = "$GCC"; then 20721 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20722 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20723 else 20724 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20725 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20726 fi 20727 ;; 20728 20729 uts4*) 20730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20731 hardcode_libdir_flag_spec='-L$libdir' 20732 hardcode_shlibpath_var=no 20733 ;; 20734 20735 *) 20736 ld_shlibs=no 20737 ;; 20738 esac 20739 20740 if test sni = "$host_vendor"; then 20741 case $host in 20742 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 20743 export_dynamic_flag_spec='$wl-Blargedynsym' 20744 ;; 20745 esac 20746 fi 20747 fi 20748 20749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 20750printf "%s\n" "$ld_shlibs" >&6; } 20751test no = "$ld_shlibs" && can_build_shared=no 20752 20753with_gnu_ld=$with_gnu_ld 20754 20755 20756 20757 20758 20759 20760 20761 20762 20763 20764 20765 20766 20767 20768 20769# 20770# Do we need to explicitly link libc? 20771# 20772case "x$archive_cmds_need_lc" in 20773x|xyes) 20774 # Assume -lc should be added 20775 archive_cmds_need_lc=yes 20776 20777 if test yes,yes = "$GCC,$enable_shared"; then 20778 case $archive_cmds in 20779 *'~'*) 20780 # FIXME: we may have to deal with multi-command sequences. 20781 ;; 20782 '$CC '*) 20783 # Test whether the compiler implicitly links with -lc since on some 20784 # systems, -lgcc has to come before -lc. If gcc already passes -lc 20785 # to ld, don't add -lc before -lgcc. 20786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 20787printf %s "checking whether -lc should be explicitly linked in... " >&6; } 20788if test ${lt_cv_archive_cmds_need_lc+y} 20789then : 20790 printf %s "(cached) " >&6 20791else case e in #( 20792 e) $RM conftest* 20793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20794 20795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 20796 (eval $ac_compile) 2>&5 20797 ac_status=$? 20798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20799 test $ac_status = 0; } 2>conftest.err; then 20800 soname=conftest 20801 lib=conftest 20802 libobjs=conftest.$ac_objext 20803 deplibs= 20804 wl=$lt_prog_compiler_wl 20805 pic_flag=$lt_prog_compiler_pic 20806 compiler_flags=-v 20807 linker_flags=-v 20808 verstring= 20809 output_objdir=. 20810 libname=conftest 20811 lt_save_allow_undefined_flag=$allow_undefined_flag 20812 allow_undefined_flag= 20813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 20814 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 20815 ac_status=$? 20816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20817 test $ac_status = 0; } 20818 then 20819 lt_cv_archive_cmds_need_lc=no 20820 else 20821 lt_cv_archive_cmds_need_lc=yes 20822 fi 20823 allow_undefined_flag=$lt_save_allow_undefined_flag 20824 else 20825 cat conftest.err 1>&5 20826 fi 20827 $RM conftest* 20828 ;; 20829esac 20830fi 20831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 20832printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 20833 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 20834 ;; 20835 esac 20836 fi 20837 ;; 20838esac 20839 20840 20841 20842 20843 20844 20845 20846 20847 20848 20849 20850 20851 20852 20853 20854 20855 20856 20857 20858 20859 20860 20861 20862 20863 20864 20865 20866 20867 20868 20869 20870 20871 20872 20873 20874 20875 20876 20877 20878 20879 20880 20881 20882 20883 20884 20885 20886 20887 20888 20889 20890 20891 20892 20893 20894 20895 20896 20897 20898 20899 20900 20901 20902 20903 20904 20905 20906 20907 20908 20909 20910 20911 20912 20913 20914 20915 20916 20917 20918 20919 20920 20921 20922 20923 20924 20925 20926 20927 20928 20929 20930 20931 20932 20933 20934 20935 20936 20937 20938 20939 20940 20941 20942 20943 20944 20945 20946 20947 20948 20949 20950 20951 20952 20953 20954 20955 20956 20957 20958 20959 20960 20961 20962 20963 20964 20965 20966 20967 20968 20969 20970 20971 20972 20973 20974 20975 20976 20977 20978 20979 20980 20981 20982 20983 20984 20985 20986 20987 20988 20989 20990 20991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 20992printf %s "checking dynamic linker characteristics... " >&6; } 20993 20994if test yes = "$GCC"; then 20995 case $host_os in 20996 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 20997 *) lt_awk_arg='/^libraries:/' ;; 20998 esac 20999 case $host_os in 21000 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 21001 *) lt_sed_strip_eq='s|=/|/|g' ;; 21002 esac 21003 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 21004 case $lt_search_path_spec in 21005 *\;*) 21006 # if the path contains ";" then we assume it to be the separator 21007 # otherwise default to the standard path separator (i.e. ":") - it is 21008 # assumed that no part of a normal pathname contains ";" but that should 21009 # okay in the real world where ";" in dirpaths is itself problematic. 21010 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 21011 ;; 21012 *) 21013 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 21014 ;; 21015 esac 21016 # Ok, now we have the path, separated by spaces, we can step through it 21017 # and add multilib dir if necessary... 21018 lt_tmp_lt_search_path_spec= 21019 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 21020 # ...but if some path component already ends with the multilib dir we assume 21021 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 21022 case "$lt_multi_os_dir; $lt_search_path_spec " in 21023 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 21024 lt_multi_os_dir= 21025 ;; 21026 esac 21027 for lt_sys_path in $lt_search_path_spec; do 21028 if test -d "$lt_sys_path$lt_multi_os_dir"; then 21029 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 21030 elif test -n "$lt_multi_os_dir"; then 21031 test -d "$lt_sys_path" && \ 21032 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 21033 fi 21034 done 21035 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 21036BEGIN {RS = " "; FS = "/|\n";} { 21037 lt_foo = ""; 21038 lt_count = 0; 21039 for (lt_i = NF; lt_i > 0; lt_i--) { 21040 if ($lt_i != "" && $lt_i != ".") { 21041 if ($lt_i == "..") { 21042 lt_count++; 21043 } else { 21044 if (lt_count == 0) { 21045 lt_foo = "/" $lt_i lt_foo; 21046 } else { 21047 lt_count--; 21048 } 21049 } 21050 } 21051 } 21052 if (lt_foo != "") { lt_freq[lt_foo]++; } 21053 if (lt_freq[lt_foo] == 1) { print lt_foo; } 21054}'` 21055 # AWK program above erroneously prepends '/' to C:/dos/paths 21056 # for these hosts. 21057 case $host_os in 21058 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 21059 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 21060 esac 21061 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 21062else 21063 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 21064fi 21065library_names_spec= 21066libname_spec='lib$name' 21067soname_spec= 21068shrext_cmds=.so 21069postinstall_cmds= 21070postuninstall_cmds= 21071finish_cmds= 21072finish_eval= 21073shlibpath_var= 21074shlibpath_overrides_runpath=unknown 21075version_type=none 21076dynamic_linker="$host_os ld.so" 21077sys_lib_dlsearch_path_spec="/lib /usr/lib" 21078need_lib_prefix=unknown 21079hardcode_into_libs=no 21080 21081# when you set need_version to no, make sure it does not cause -set_version 21082# flags to be left without arguments 21083need_version=unknown 21084 21085 21086 21087case $host_os in 21088aix3*) 21089 version_type=linux # correct to gnu/linux during the next big refactor 21090 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 21091 shlibpath_var=LIBPATH 21092 21093 # AIX 3 has no versioning support, so we append a major version to the name. 21094 soname_spec='$libname$release$shared_ext$major' 21095 ;; 21096 21097aix[4-9]*) 21098 version_type=linux # correct to gnu/linux during the next big refactor 21099 need_lib_prefix=no 21100 need_version=no 21101 hardcode_into_libs=yes 21102 if test ia64 = "$host_cpu"; then 21103 # AIX 5 supports IA64 21104 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 21105 shlibpath_var=LD_LIBRARY_PATH 21106 else 21107 # With GCC up to 2.95.x, collect2 would create an import file 21108 # for dependence libraries. The import file would start with 21109 # the line '#! .'. This would cause the generated library to 21110 # depend on '.', always an invalid library. This was fixed in 21111 # development snapshots of GCC prior to 3.0. 21112 case $host_os in 21113 aix4 | aix4.[01] | aix4.[01].*) 21114 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 21115 echo ' yes ' 21116 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 21117 : 21118 else 21119 can_build_shared=no 21120 fi 21121 ;; 21122 esac 21123 # Using Import Files as archive members, it is possible to support 21124 # filename-based versioning of shared library archives on AIX. While 21125 # this would work for both with and without runtime linking, it will 21126 # prevent static linking of such archives. So we do filename-based 21127 # shared library versioning with .so extension only, which is used 21128 # when both runtime linking and shared linking is enabled. 21129 # Unfortunately, runtime linking may impact performance, so we do 21130 # not want this to be the default eventually. Also, we use the 21131 # versioned .so libs for executables only if there is the -brtl 21132 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 21133 # To allow for filename-based versioning support, we need to create 21134 # libNAME.so.V as an archive file, containing: 21135 # *) an Import File, referring to the versioned filename of the 21136 # archive as well as the shared archive member, telling the 21137 # bitwidth (32 or 64) of that shared object, and providing the 21138 # list of exported symbols of that shared object, eventually 21139 # decorated with the 'weak' keyword 21140 # *) the shared object with the F_LOADONLY flag set, to really avoid 21141 # it being seen by the linker. 21142 # At run time we better use the real file rather than another symlink, 21143 # but for link time we create the symlink libNAME.so -> libNAME.so.V 21144 21145 case $with_aix_soname,$aix_use_runtimelinking in 21146 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 21147 # soname into executable. Probably we can add versioning support to 21148 # collect2, so additional links can be useful in future. 21149 aix,yes) # traditional libtool 21150 dynamic_linker='AIX unversionable lib.so' 21151 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 21152 # instead of lib<name>.a to let people know that these are not 21153 # typical AIX shared libraries. 21154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21155 ;; 21156 aix,no) # traditional AIX only 21157 dynamic_linker='AIX lib.a(lib.so.V)' 21158 # We preserve .a as extension for shared libraries through AIX4.2 21159 # and later when we are not doing run time linking. 21160 library_names_spec='$libname$release.a $libname.a' 21161 soname_spec='$libname$release$shared_ext$major' 21162 ;; 21163 svr4,*) # full svr4 only 21164 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 21165 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 21166 # We do not specify a path in Import Files, so LIBPATH fires. 21167 shlibpath_overrides_runpath=yes 21168 ;; 21169 *,yes) # both, prefer svr4 21170 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 21171 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 21172 # unpreferred sharedlib libNAME.a needs extra handling 21173 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"' 21174 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"' 21175 # We do not specify a path in Import Files, so LIBPATH fires. 21176 shlibpath_overrides_runpath=yes 21177 ;; 21178 *,no) # both, prefer aix 21179 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 21180 library_names_spec='$libname$release.a $libname.a' 21181 soname_spec='$libname$release$shared_ext$major' 21182 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 21183 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)' 21184 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"' 21185 ;; 21186 esac 21187 shlibpath_var=LIBPATH 21188 fi 21189 ;; 21190 21191amigaos*) 21192 case $host_cpu in 21193 powerpc) 21194 # Since July 2007 AmigaOS4 officially supports .so libraries. 21195 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 21196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21197 ;; 21198 m68k) 21199 library_names_spec='$libname.ixlibrary $libname.a' 21200 # Create ${libname}_ixlibrary.a entries in /sys/libs. 21201 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' 21202 ;; 21203 esac 21204 ;; 21205 21206beos*) 21207 library_names_spec='$libname$shared_ext' 21208 dynamic_linker="$host_os ld.so" 21209 shlibpath_var=LIBRARY_PATH 21210 ;; 21211 21212bsdi[45]*) 21213 version_type=linux # correct to gnu/linux during the next big refactor 21214 need_version=no 21215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21216 soname_spec='$libname$release$shared_ext$major' 21217 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 21218 shlibpath_var=LD_LIBRARY_PATH 21219 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 21220 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 21221 # the default ld.so.conf also contains /usr/contrib/lib and 21222 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 21223 # libtool to hard-code these into programs 21224 ;; 21225 21226cygwin* | mingw* | pw32* | cegcc*) 21227 version_type=windows 21228 shrext_cmds=.dll 21229 need_version=no 21230 need_lib_prefix=no 21231 21232 case $GCC,$cc_basename in 21233 yes,*) 21234 # gcc 21235 library_names_spec='$libname.dll.a' 21236 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21237 postinstall_cmds='base_file=`basename \$file`~ 21238 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 21239 dldir=$destdir/`dirname \$dlpath`~ 21240 test -d \$dldir || mkdir -p \$dldir~ 21241 $install_prog $dir/$dlname \$dldir/$dlname~ 21242 chmod a+x \$dldir/$dlname~ 21243 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21244 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21245 fi' 21246 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21247 dlpath=$dir/\$dldll~ 21248 $RM \$dlpath' 21249 shlibpath_overrides_runpath=yes 21250 21251 case $host_os in 21252 cygwin*) 21253 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 21254 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21255 21256 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 21257 ;; 21258 mingw* | cegcc*) 21259 # MinGW DLLs use traditional 'lib' prefix 21260 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21261 ;; 21262 pw32*) 21263 # pw32 DLLs use 'pw' prefix rather than 'lib' 21264 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21265 ;; 21266 esac 21267 dynamic_linker='Win32 ld.exe' 21268 ;; 21269 21270 *,cl* | *,icl*) 21271 # Native MSVC or ICC 21272 libname_spec='$name' 21273 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21274 library_names_spec='$libname.dll.lib' 21275 21276 case $build_os in 21277 mingw*) 21278 sys_lib_search_path_spec= 21279 lt_save_ifs=$IFS 21280 IFS=';' 21281 for lt_path in $LIB 21282 do 21283 IFS=$lt_save_ifs 21284 # Let DOS variable expansion print the short 8.3 style file name. 21285 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 21286 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 21287 done 21288 IFS=$lt_save_ifs 21289 # Convert to MSYS style. 21290 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 21291 ;; 21292 cygwin*) 21293 # Convert to unix form, then to dos form, then back to unix form 21294 # but this time dos style (no spaces!) so that the unix form looks 21295 # like /cygdrive/c/PROGRA~1:/cygdr... 21296 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 21297 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 21298 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21299 ;; 21300 *) 21301 sys_lib_search_path_spec=$LIB 21302 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 21303 # It is most probably a Windows format PATH. 21304 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 21305 else 21306 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21307 fi 21308 # FIXME: find the short name or the path components, as spaces are 21309 # common. (e.g. "Program Files" -> "PROGRA~1") 21310 ;; 21311 esac 21312 21313 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21314 postinstall_cmds='base_file=`basename \$file`~ 21315 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 21316 dldir=$destdir/`dirname \$dlpath`~ 21317 test -d \$dldir || mkdir -p \$dldir~ 21318 $install_prog $dir/$dlname \$dldir/$dlname' 21319 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21320 dlpath=$dir/\$dldll~ 21321 $RM \$dlpath' 21322 shlibpath_overrides_runpath=yes 21323 dynamic_linker='Win32 link.exe' 21324 ;; 21325 21326 *) 21327 # Assume MSVC and ICC wrapper 21328 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 21329 dynamic_linker='Win32 ld.exe' 21330 ;; 21331 esac 21332 # FIXME: first we should search . and the directory the executable is in 21333 shlibpath_var=PATH 21334 ;; 21335 21336darwin* | rhapsody*) 21337 dynamic_linker="$host_os dyld" 21338 version_type=darwin 21339 need_lib_prefix=no 21340 need_version=no 21341 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 21342 soname_spec='$libname$release$major$shared_ext' 21343 shlibpath_overrides_runpath=yes 21344 shlibpath_var=DYLD_LIBRARY_PATH 21345 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 21346 21347 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 21348 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 21349 ;; 21350 21351dgux*) 21352 version_type=linux # correct to gnu/linux during the next big refactor 21353 need_lib_prefix=no 21354 need_version=no 21355 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21356 soname_spec='$libname$release$shared_ext$major' 21357 shlibpath_var=LD_LIBRARY_PATH 21358 ;; 21359 21360freebsd* | dragonfly* | midnightbsd*) 21361 # DragonFly does not have aout. When/if they implement a new 21362 # versioning mechanism, adjust this. 21363 if test -x /usr/bin/objformat; then 21364 objformat=`/usr/bin/objformat` 21365 else 21366 case $host_os in 21367 freebsd[23].*) objformat=aout ;; 21368 *) objformat=elf ;; 21369 esac 21370 fi 21371 version_type=freebsd-$objformat 21372 case $version_type in 21373 freebsd-elf*) 21374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21375 soname_spec='$libname$release$shared_ext$major' 21376 need_version=no 21377 need_lib_prefix=no 21378 ;; 21379 freebsd-*) 21380 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21381 need_version=yes 21382 ;; 21383 esac 21384 shlibpath_var=LD_LIBRARY_PATH 21385 case $host_os in 21386 freebsd2.*) 21387 shlibpath_overrides_runpath=yes 21388 ;; 21389 freebsd3.[01]* | freebsdelf3.[01]*) 21390 shlibpath_overrides_runpath=yes 21391 hardcode_into_libs=yes 21392 ;; 21393 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 21394 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 21395 shlibpath_overrides_runpath=no 21396 hardcode_into_libs=yes 21397 ;; 21398 *) # from 4.6 on, and DragonFly 21399 shlibpath_overrides_runpath=yes 21400 hardcode_into_libs=yes 21401 ;; 21402 esac 21403 ;; 21404 21405haiku*) 21406 version_type=linux # correct to gnu/linux during the next big refactor 21407 need_lib_prefix=no 21408 need_version=no 21409 dynamic_linker="$host_os runtime_loader" 21410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21411 soname_spec='$libname$release$shared_ext$major' 21412 shlibpath_var=LIBRARY_PATH 21413 shlibpath_overrides_runpath=no 21414 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 21415 hardcode_into_libs=yes 21416 ;; 21417 21418hpux9* | hpux10* | hpux11*) 21419 # Give a soname corresponding to the major version so that dld.sl refuses to 21420 # link against other versions. 21421 version_type=sunos 21422 need_lib_prefix=no 21423 need_version=no 21424 case $host_cpu in 21425 ia64*) 21426 shrext_cmds='.so' 21427 hardcode_into_libs=yes 21428 dynamic_linker="$host_os dld.so" 21429 shlibpath_var=LD_LIBRARY_PATH 21430 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21432 soname_spec='$libname$release$shared_ext$major' 21433 if test 32 = "$HPUX_IA64_MODE"; then 21434 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 21435 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 21436 else 21437 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 21438 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 21439 fi 21440 ;; 21441 hppa*64*) 21442 shrext_cmds='.sl' 21443 hardcode_into_libs=yes 21444 dynamic_linker="$host_os dld.sl" 21445 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 21446 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21447 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21448 soname_spec='$libname$release$shared_ext$major' 21449 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 21450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21451 ;; 21452 *) 21453 shrext_cmds='.sl' 21454 dynamic_linker="$host_os dld.sl" 21455 shlibpath_var=SHLIB_PATH 21456 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 21457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21458 soname_spec='$libname$release$shared_ext$major' 21459 ;; 21460 esac 21461 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 21462 postinstall_cmds='chmod 555 $lib' 21463 # or fails outright, so override atomically: 21464 install_override_mode=555 21465 ;; 21466 21467interix[3-9]*) 21468 version_type=linux # correct to gnu/linux during the next big refactor 21469 need_lib_prefix=no 21470 need_version=no 21471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21472 soname_spec='$libname$release$shared_ext$major' 21473 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 21474 shlibpath_var=LD_LIBRARY_PATH 21475 shlibpath_overrides_runpath=no 21476 hardcode_into_libs=yes 21477 ;; 21478 21479irix5* | irix6* | nonstopux*) 21480 case $host_os in 21481 nonstopux*) version_type=nonstopux ;; 21482 *) 21483 if test yes = "$lt_cv_prog_gnu_ld"; then 21484 version_type=linux # correct to gnu/linux during the next big refactor 21485 else 21486 version_type=irix 21487 fi ;; 21488 esac 21489 need_lib_prefix=no 21490 need_version=no 21491 soname_spec='$libname$release$shared_ext$major' 21492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 21493 case $host_os in 21494 irix5* | nonstopux*) 21495 libsuff= shlibsuff= 21496 ;; 21497 *) 21498 case $LD in # libtool.m4 will add one of these switches to LD 21499 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 21500 libsuff= shlibsuff= libmagic=32-bit;; 21501 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 21502 libsuff=32 shlibsuff=N32 libmagic=N32;; 21503 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 21504 libsuff=64 shlibsuff=64 libmagic=64-bit;; 21505 *) libsuff= shlibsuff= libmagic=never-match;; 21506 esac 21507 ;; 21508 esac 21509 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 21510 shlibpath_overrides_runpath=no 21511 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 21512 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 21513 hardcode_into_libs=yes 21514 ;; 21515 21516# No shared lib support for Linux oldld, aout, or coff. 21517linux*oldld* | linux*aout* | linux*coff*) 21518 dynamic_linker=no 21519 ;; 21520 21521linux*android*) 21522 version_type=none # Android doesn't support versioned libraries. 21523 need_lib_prefix=no 21524 need_version=no 21525 library_names_spec='$libname$release$shared_ext' 21526 soname_spec='$libname$release$shared_ext' 21527 finish_cmds= 21528 shlibpath_var=LD_LIBRARY_PATH 21529 shlibpath_overrides_runpath=yes 21530 21531 # This implies no fast_install, which is unacceptable. 21532 # Some rework will be needed to allow for fast_install 21533 # before this can be enabled. 21534 hardcode_into_libs=yes 21535 21536 dynamic_linker='Android linker' 21537 # Don't embed -rpath directories since the linker doesn't support them. 21538 hardcode_libdir_flag_spec='-L$libdir' 21539 ;; 21540 21541# This must be glibc/ELF. 21542linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 21543 version_type=linux # correct to gnu/linux during the next big refactor 21544 need_lib_prefix=no 21545 need_version=no 21546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21547 soname_spec='$libname$release$shared_ext$major' 21548 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 21549 shlibpath_var=LD_LIBRARY_PATH 21550 shlibpath_overrides_runpath=no 21551 21552 # Some binutils ld are patched to set DT_RUNPATH 21553 if test ${lt_cv_shlibpath_overrides_runpath+y} 21554then : 21555 printf %s "(cached) " >&6 21556else case e in #( 21557 e) lt_cv_shlibpath_overrides_runpath=no 21558 save_LDFLAGS=$LDFLAGS 21559 save_libdir=$libdir 21560 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 21561 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 21562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21563/* end confdefs.h. */ 21564 21565int 21566main (void) 21567{ 21568 21569 ; 21570 return 0; 21571} 21572_ACEOF 21573if ac_fn_c_try_link "$LINENO" 21574then : 21575 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 21576then : 21577 lt_cv_shlibpath_overrides_runpath=yes 21578fi 21579fi 21580rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21581 conftest$ac_exeext conftest.$ac_ext 21582 LDFLAGS=$save_LDFLAGS 21583 libdir=$save_libdir 21584 ;; 21585esac 21586fi 21587 21588 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 21589 21590 # This implies no fast_install, which is unacceptable. 21591 # Some rework will be needed to allow for fast_install 21592 # before this can be enabled. 21593 hardcode_into_libs=yes 21594 21595 # Add ABI-specific directories to the system library path. 21596 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 21597 21598 # Ideally, we could use ldconfig to report *all* directores which are 21599 # searched for libraries, however this is still not possible. Aside from not 21600 # being certain /sbin/ldconfig is available, command 21601 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 21602 # even though it is searched at run-time. Try to do the best guess by 21603 # appending ld.so.conf contents (and includes) to the search path. 21604 if test -f /etc/ld.so.conf; then 21605 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' ' '` 21606 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 21607 fi 21608 21609 # We used to test for /lib/ld.so.1 and disable shared libraries on 21610 # powerpc, because MkLinux only supported shared libraries with the 21611 # GNU dynamic linker. Since this was broken with cross compilers, 21612 # most powerpc-linux boxes support dynamic linking these days and 21613 # people can always --disable-shared, the test was removed, and we 21614 # assume the GNU/Linux dynamic linker is in use. 21615 dynamic_linker='GNU/Linux ld.so' 21616 ;; 21617 21618netbsd*) 21619 version_type=sunos 21620 need_lib_prefix=no 21621 need_version=no 21622 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 21623 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21625 dynamic_linker='NetBSD (a.out) ld.so' 21626 else 21627 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21628 soname_spec='$libname$release$shared_ext$major' 21629 dynamic_linker='NetBSD ld.elf_so' 21630 fi 21631 shlibpath_var=LD_LIBRARY_PATH 21632 shlibpath_overrides_runpath=yes 21633 hardcode_into_libs=yes 21634 ;; 21635 21636newsos6) 21637 version_type=linux # correct to gnu/linux during the next big refactor 21638 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21639 shlibpath_var=LD_LIBRARY_PATH 21640 shlibpath_overrides_runpath=yes 21641 ;; 21642 21643*nto* | *qnx*) 21644 version_type=qnx 21645 need_lib_prefix=no 21646 need_version=no 21647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21648 soname_spec='$libname$release$shared_ext$major' 21649 shlibpath_var=LD_LIBRARY_PATH 21650 shlibpath_overrides_runpath=no 21651 hardcode_into_libs=yes 21652 dynamic_linker='ldqnx.so' 21653 ;; 21654 21655openbsd* | bitrig*) 21656 version_type=sunos 21657 sys_lib_dlsearch_path_spec=/usr/lib 21658 need_lib_prefix=no 21659 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 21660 need_version=no 21661 else 21662 need_version=yes 21663 fi 21664 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21666 shlibpath_var=LD_LIBRARY_PATH 21667 shlibpath_overrides_runpath=yes 21668 ;; 21669 21670os2*) 21671 libname_spec='$name' 21672 version_type=windows 21673 shrext_cmds=.dll 21674 need_version=no 21675 need_lib_prefix=no 21676 # OS/2 can only load a DLL with a base name of 8 characters or less. 21677 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 21678 v=$($ECHO $release$versuffix | tr -d .-); 21679 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 21680 $ECHO $n$v`$shared_ext' 21681 library_names_spec='${libname}_dll.$libext' 21682 dynamic_linker='OS/2 ld.exe' 21683 shlibpath_var=BEGINLIBPATH 21684 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 21685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21686 postinstall_cmds='base_file=`basename \$file`~ 21687 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 21688 dldir=$destdir/`dirname \$dlpath`~ 21689 test -d \$dldir || mkdir -p \$dldir~ 21690 $install_prog $dir/$dlname \$dldir/$dlname~ 21691 chmod a+x \$dldir/$dlname~ 21692 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21693 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21694 fi' 21695 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 21696 dlpath=$dir/\$dldll~ 21697 $RM \$dlpath' 21698 ;; 21699 21700osf3* | osf4* | osf5*) 21701 version_type=osf 21702 need_lib_prefix=no 21703 need_version=no 21704 soname_spec='$libname$release$shared_ext$major' 21705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21706 shlibpath_var=LD_LIBRARY_PATH 21707 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 21708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21709 ;; 21710 21711rdos*) 21712 dynamic_linker=no 21713 ;; 21714 21715solaris*) 21716 version_type=linux # correct to gnu/linux during the next big refactor 21717 need_lib_prefix=no 21718 need_version=no 21719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21720 soname_spec='$libname$release$shared_ext$major' 21721 shlibpath_var=LD_LIBRARY_PATH 21722 shlibpath_overrides_runpath=yes 21723 hardcode_into_libs=yes 21724 # ldd complains unless libraries are executable 21725 postinstall_cmds='chmod +x $lib' 21726 ;; 21727 21728sunos4*) 21729 version_type=sunos 21730 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21731 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 21732 shlibpath_var=LD_LIBRARY_PATH 21733 shlibpath_overrides_runpath=yes 21734 if test yes = "$with_gnu_ld"; then 21735 need_lib_prefix=no 21736 fi 21737 need_version=yes 21738 ;; 21739 21740sysv4 | sysv4.3*) 21741 version_type=linux # correct to gnu/linux during the next big refactor 21742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21743 soname_spec='$libname$release$shared_ext$major' 21744 shlibpath_var=LD_LIBRARY_PATH 21745 case $host_vendor in 21746 sni) 21747 shlibpath_overrides_runpath=no 21748 need_lib_prefix=no 21749 runpath_var=LD_RUN_PATH 21750 ;; 21751 siemens) 21752 need_lib_prefix=no 21753 ;; 21754 motorola) 21755 need_lib_prefix=no 21756 need_version=no 21757 shlibpath_overrides_runpath=no 21758 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 21759 ;; 21760 esac 21761 ;; 21762 21763sysv4*MP*) 21764 if test -d /usr/nec; then 21765 version_type=linux # correct to gnu/linux during the next big refactor 21766 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 21767 soname_spec='$libname$shared_ext.$major' 21768 shlibpath_var=LD_LIBRARY_PATH 21769 fi 21770 ;; 21771 21772sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 21773 version_type=sco 21774 need_lib_prefix=no 21775 need_version=no 21776 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 21777 soname_spec='$libname$release$shared_ext$major' 21778 shlibpath_var=LD_LIBRARY_PATH 21779 shlibpath_overrides_runpath=yes 21780 hardcode_into_libs=yes 21781 if test yes = "$with_gnu_ld"; then 21782 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 21783 else 21784 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 21785 case $host_os in 21786 sco3.2v5*) 21787 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 21788 ;; 21789 esac 21790 fi 21791 sys_lib_dlsearch_path_spec='/usr/lib' 21792 ;; 21793 21794tpf*) 21795 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 21796 version_type=linux # correct to gnu/linux during the next big refactor 21797 need_lib_prefix=no 21798 need_version=no 21799 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21800 shlibpath_var=LD_LIBRARY_PATH 21801 shlibpath_overrides_runpath=no 21802 hardcode_into_libs=yes 21803 ;; 21804 21805uts4*) 21806 version_type=linux # correct to gnu/linux during the next big refactor 21807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21808 soname_spec='$libname$release$shared_ext$major' 21809 shlibpath_var=LD_LIBRARY_PATH 21810 ;; 21811 21812*) 21813 dynamic_linker=no 21814 ;; 21815esac 21816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 21817printf "%s\n" "$dynamic_linker" >&6; } 21818test no = "$dynamic_linker" && can_build_shared=no 21819 21820variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 21821if test yes = "$GCC"; then 21822 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 21823fi 21824 21825if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 21826 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 21827fi 21828 21829if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 21830 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 21831fi 21832 21833# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 21834configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 21835 21836# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 21837func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 21838 21839# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 21840configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 21841 21842 21843 21844 21845 21846 21847 21848 21849 21850 21851 21852 21853 21854 21855 21856 21857 21858 21859 21860 21861 21862 21863 21864 21865 21866 21867 21868 21869 21870 21871 21872 21873 21874 21875 21876 21877 21878 21879 21880 21881 21882 21883 21884 21885 21886 21887 21888 21889 21890 21891 21892 21893 21894 21895 21896 21897 21898 21899 21900 21901 21902 21903 21904 21905 21906 21907 21908 21909 21910 21911 21912 21913 21914 21915 21916 21917 21918 21919 21920 21921 21922 21923 21924 21925 21926 21927 21928 21929 21930 21931 21932 21933 21934 21935 21936 21937 21938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 21939printf %s "checking how to hardcode library paths into programs... " >&6; } 21940hardcode_action= 21941if test -n "$hardcode_libdir_flag_spec" || 21942 test -n "$runpath_var" || 21943 test yes = "$hardcode_automatic"; then 21944 21945 # We can hardcode non-existent directories. 21946 if test no != "$hardcode_direct" && 21947 # If the only mechanism to avoid hardcoding is shlibpath_var, we 21948 # have to relink, otherwise we might link with an installed library 21949 # when we should be linking with a yet-to-be-installed one 21950 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 21951 test no != "$hardcode_minus_L"; then 21952 # Linking always hardcodes the temporary library directory. 21953 hardcode_action=relink 21954 else 21955 # We can link without hardcoding, and we can hardcode nonexisting dirs. 21956 hardcode_action=immediate 21957 fi 21958else 21959 # We cannot hardcode anything, or else we can only hardcode existing 21960 # directories. 21961 hardcode_action=unsupported 21962fi 21963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 21964printf "%s\n" "$hardcode_action" >&6; } 21965 21966if test relink = "$hardcode_action" || 21967 test yes = "$inherit_rpath"; then 21968 # Fast installation is not supported 21969 enable_fast_install=no 21970elif test yes = "$shlibpath_overrides_runpath" || 21971 test no = "$enable_shared"; then 21972 # Fast installation is not necessary 21973 enable_fast_install=needless 21974fi 21975 21976 21977 21978 21979 21980 21981 if test yes != "$enable_dlopen"; then 21982 enable_dlopen=unknown 21983 enable_dlopen_self=unknown 21984 enable_dlopen_self_static=unknown 21985else 21986 lt_cv_dlopen=no 21987 lt_cv_dlopen_libs= 21988 21989 case $host_os in 21990 beos*) 21991 lt_cv_dlopen=load_add_on 21992 lt_cv_dlopen_libs= 21993 lt_cv_dlopen_self=yes 21994 ;; 21995 21996 mingw* | pw32* | cegcc*) 21997 lt_cv_dlopen=LoadLibrary 21998 lt_cv_dlopen_libs= 21999 ;; 22000 22001 cygwin*) 22002 lt_cv_dlopen=dlopen 22003 lt_cv_dlopen_libs= 22004 ;; 22005 22006 darwin*) 22007 # if libdl is installed we need to link against it 22008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 22009printf %s "checking for dlopen in -ldl... " >&6; } 22010if test ${ac_cv_lib_dl_dlopen+y} 22011then : 22012 printf %s "(cached) " >&6 22013else case e in #( 22014 e) ac_check_lib_save_LIBS=$LIBS 22015LIBS="-ldl $LIBS" 22016cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22017/* end confdefs.h. */ 22018 22019/* Override any GCC internal prototype to avoid an error. 22020 Use char because int might match the return type of a GCC 22021 builtin and then its argument prototype would still apply. 22022 The 'extern "C"' is for builds by C++ compilers; 22023 although this is not generally supported in C code supporting it here 22024 has little cost and some practical benefit (sr 110532). */ 22025#ifdef __cplusplus 22026extern "C" 22027#endif 22028char dlopen (void); 22029int 22030main (void) 22031{ 22032return dlopen (); 22033 ; 22034 return 0; 22035} 22036_ACEOF 22037if ac_fn_c_try_link "$LINENO" 22038then : 22039 ac_cv_lib_dl_dlopen=yes 22040else case e in #( 22041 e) ac_cv_lib_dl_dlopen=no ;; 22042esac 22043fi 22044rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22045 conftest$ac_exeext conftest.$ac_ext 22046LIBS=$ac_check_lib_save_LIBS ;; 22047esac 22048fi 22049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 22050printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 22051if test "x$ac_cv_lib_dl_dlopen" = xyes 22052then : 22053 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 22054else case e in #( 22055 e) 22056 lt_cv_dlopen=dyld 22057 lt_cv_dlopen_libs= 22058 lt_cv_dlopen_self=yes 22059 ;; 22060esac 22061fi 22062 22063 ;; 22064 22065 tpf*) 22066 # Don't try to run any link tests for TPF. We know it's impossible 22067 # because TPF is a cross-compiler, and we know how we open DSOs. 22068 lt_cv_dlopen=dlopen 22069 lt_cv_dlopen_libs= 22070 lt_cv_dlopen_self=no 22071 ;; 22072 22073 *) 22074 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 22075if test "x$ac_cv_func_shl_load" = xyes 22076then : 22077 lt_cv_dlopen=shl_load 22078else case e in #( 22079 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 22080printf %s "checking for shl_load in -ldld... " >&6; } 22081if test ${ac_cv_lib_dld_shl_load+y} 22082then : 22083 printf %s "(cached) " >&6 22084else case e in #( 22085 e) ac_check_lib_save_LIBS=$LIBS 22086LIBS="-ldld $LIBS" 22087cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22088/* end confdefs.h. */ 22089 22090/* Override any GCC internal prototype to avoid an error. 22091 Use char because int might match the return type of a GCC 22092 builtin and then its argument prototype would still apply. 22093 The 'extern "C"' is for builds by C++ compilers; 22094 although this is not generally supported in C code supporting it here 22095 has little cost and some practical benefit (sr 110532). */ 22096#ifdef __cplusplus 22097extern "C" 22098#endif 22099char shl_load (void); 22100int 22101main (void) 22102{ 22103return shl_load (); 22104 ; 22105 return 0; 22106} 22107_ACEOF 22108if ac_fn_c_try_link "$LINENO" 22109then : 22110 ac_cv_lib_dld_shl_load=yes 22111else case e in #( 22112 e) ac_cv_lib_dld_shl_load=no ;; 22113esac 22114fi 22115rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22116 conftest$ac_exeext conftest.$ac_ext 22117LIBS=$ac_check_lib_save_LIBS ;; 22118esac 22119fi 22120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 22121printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 22122if test "x$ac_cv_lib_dld_shl_load" = xyes 22123then : 22124 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 22125else case e in #( 22126 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 22127if test "x$ac_cv_func_dlopen" = xyes 22128then : 22129 lt_cv_dlopen=dlopen 22130else case e in #( 22131 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 22132printf %s "checking for dlopen in -ldl... " >&6; } 22133if test ${ac_cv_lib_dl_dlopen+y} 22134then : 22135 printf %s "(cached) " >&6 22136else case e in #( 22137 e) ac_check_lib_save_LIBS=$LIBS 22138LIBS="-ldl $LIBS" 22139cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22140/* end confdefs.h. */ 22141 22142/* Override any GCC internal prototype to avoid an error. 22143 Use char because int might match the return type of a GCC 22144 builtin and then its argument prototype would still apply. 22145 The 'extern "C"' is for builds by C++ compilers; 22146 although this is not generally supported in C code supporting it here 22147 has little cost and some practical benefit (sr 110532). */ 22148#ifdef __cplusplus 22149extern "C" 22150#endif 22151char dlopen (void); 22152int 22153main (void) 22154{ 22155return dlopen (); 22156 ; 22157 return 0; 22158} 22159_ACEOF 22160if ac_fn_c_try_link "$LINENO" 22161then : 22162 ac_cv_lib_dl_dlopen=yes 22163else case e in #( 22164 e) ac_cv_lib_dl_dlopen=no ;; 22165esac 22166fi 22167rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22168 conftest$ac_exeext conftest.$ac_ext 22169LIBS=$ac_check_lib_save_LIBS ;; 22170esac 22171fi 22172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 22173printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 22174if test "x$ac_cv_lib_dl_dlopen" = xyes 22175then : 22176 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 22177else case e in #( 22178 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 22179printf %s "checking for dlopen in -lsvld... " >&6; } 22180if test ${ac_cv_lib_svld_dlopen+y} 22181then : 22182 printf %s "(cached) " >&6 22183else case e in #( 22184 e) ac_check_lib_save_LIBS=$LIBS 22185LIBS="-lsvld $LIBS" 22186cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22187/* end confdefs.h. */ 22188 22189/* Override any GCC internal prototype to avoid an error. 22190 Use char because int might match the return type of a GCC 22191 builtin and then its argument prototype would still apply. 22192 The 'extern "C"' is for builds by C++ compilers; 22193 although this is not generally supported in C code supporting it here 22194 has little cost and some practical benefit (sr 110532). */ 22195#ifdef __cplusplus 22196extern "C" 22197#endif 22198char dlopen (void); 22199int 22200main (void) 22201{ 22202return dlopen (); 22203 ; 22204 return 0; 22205} 22206_ACEOF 22207if ac_fn_c_try_link "$LINENO" 22208then : 22209 ac_cv_lib_svld_dlopen=yes 22210else case e in #( 22211 e) ac_cv_lib_svld_dlopen=no ;; 22212esac 22213fi 22214rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22215 conftest$ac_exeext conftest.$ac_ext 22216LIBS=$ac_check_lib_save_LIBS ;; 22217esac 22218fi 22219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 22220printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 22221if test "x$ac_cv_lib_svld_dlopen" = xyes 22222then : 22223 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 22224else case e in #( 22225 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 22226printf %s "checking for dld_link in -ldld... " >&6; } 22227if test ${ac_cv_lib_dld_dld_link+y} 22228then : 22229 printf %s "(cached) " >&6 22230else case e in #( 22231 e) ac_check_lib_save_LIBS=$LIBS 22232LIBS="-ldld $LIBS" 22233cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22234/* end confdefs.h. */ 22235 22236/* Override any GCC internal prototype to avoid an error. 22237 Use char because int might match the return type of a GCC 22238 builtin and then its argument prototype would still apply. 22239 The 'extern "C"' is for builds by C++ compilers; 22240 although this is not generally supported in C code supporting it here 22241 has little cost and some practical benefit (sr 110532). */ 22242#ifdef __cplusplus 22243extern "C" 22244#endif 22245char dld_link (void); 22246int 22247main (void) 22248{ 22249return dld_link (); 22250 ; 22251 return 0; 22252} 22253_ACEOF 22254if ac_fn_c_try_link "$LINENO" 22255then : 22256 ac_cv_lib_dld_dld_link=yes 22257else case e in #( 22258 e) ac_cv_lib_dld_dld_link=no ;; 22259esac 22260fi 22261rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22262 conftest$ac_exeext conftest.$ac_ext 22263LIBS=$ac_check_lib_save_LIBS ;; 22264esac 22265fi 22266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 22267printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 22268if test "x$ac_cv_lib_dld_dld_link" = xyes 22269then : 22270 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 22271fi 22272 22273 ;; 22274esac 22275fi 22276 22277 ;; 22278esac 22279fi 22280 22281 ;; 22282esac 22283fi 22284 22285 ;; 22286esac 22287fi 22288 22289 ;; 22290esac 22291fi 22292 22293 ;; 22294 esac 22295 22296 if test no = "$lt_cv_dlopen"; then 22297 enable_dlopen=no 22298 else 22299 enable_dlopen=yes 22300 fi 22301 22302 case $lt_cv_dlopen in 22303 dlopen) 22304 save_CPPFLAGS=$CPPFLAGS 22305 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 22306 22307 save_LDFLAGS=$LDFLAGS 22308 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 22309 22310 save_LIBS=$LIBS 22311 LIBS="$lt_cv_dlopen_libs $LIBS" 22312 22313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 22314printf %s "checking whether a program can dlopen itself... " >&6; } 22315if test ${lt_cv_dlopen_self+y} 22316then : 22317 printf %s "(cached) " >&6 22318else case e in #( 22319 e) if test yes = "$cross_compiling"; then : 22320 lt_cv_dlopen_self=cross 22321else 22322 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 22323 lt_status=$lt_dlunknown 22324 cat > conftest.$ac_ext <<_LT_EOF 22325#line $LINENO "configure" 22326#include "confdefs.h" 22327 22328#if HAVE_DLFCN_H 22329#include <dlfcn.h> 22330#endif 22331 22332#include <stdio.h> 22333 22334#ifdef RTLD_GLOBAL 22335# define LT_DLGLOBAL RTLD_GLOBAL 22336#else 22337# ifdef DL_GLOBAL 22338# define LT_DLGLOBAL DL_GLOBAL 22339# else 22340# define LT_DLGLOBAL 0 22341# endif 22342#endif 22343 22344/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 22345 find out it does not work in some platform. */ 22346#ifndef LT_DLLAZY_OR_NOW 22347# ifdef RTLD_LAZY 22348# define LT_DLLAZY_OR_NOW RTLD_LAZY 22349# else 22350# ifdef DL_LAZY 22351# define LT_DLLAZY_OR_NOW DL_LAZY 22352# else 22353# ifdef RTLD_NOW 22354# define LT_DLLAZY_OR_NOW RTLD_NOW 22355# else 22356# ifdef DL_NOW 22357# define LT_DLLAZY_OR_NOW DL_NOW 22358# else 22359# define LT_DLLAZY_OR_NOW 0 22360# endif 22361# endif 22362# endif 22363# endif 22364#endif 22365 22366/* When -fvisibility=hidden is used, assume the code has been annotated 22367 correspondingly for the symbols needed. */ 22368#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 22369int fnord () __attribute__((visibility("default"))); 22370#endif 22371 22372int fnord () { return 42; } 22373int main () 22374{ 22375 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 22376 int status = $lt_dlunknown; 22377 22378 if (self) 22379 { 22380 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 22381 else 22382 { 22383 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 22384 else puts (dlerror ()); 22385 } 22386 /* dlclose (self); */ 22387 } 22388 else 22389 puts (dlerror ()); 22390 22391 return status; 22392} 22393_LT_EOF 22394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 22395 (eval $ac_link) 2>&5 22396 ac_status=$? 22397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22398 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 22399 (./conftest; exit; ) >&5 2>/dev/null 22400 lt_status=$? 22401 case x$lt_status in 22402 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 22403 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 22404 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 22405 esac 22406 else : 22407 # compilation failed 22408 lt_cv_dlopen_self=no 22409 fi 22410fi 22411rm -fr conftest* 22412 22413 ;; 22414esac 22415fi 22416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 22417printf "%s\n" "$lt_cv_dlopen_self" >&6; } 22418 22419 if test yes = "$lt_cv_dlopen_self"; then 22420 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 22421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 22422printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 22423if test ${lt_cv_dlopen_self_static+y} 22424then : 22425 printf %s "(cached) " >&6 22426else case e in #( 22427 e) if test yes = "$cross_compiling"; then : 22428 lt_cv_dlopen_self_static=cross 22429else 22430 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 22431 lt_status=$lt_dlunknown 22432 cat > conftest.$ac_ext <<_LT_EOF 22433#line $LINENO "configure" 22434#include "confdefs.h" 22435 22436#if HAVE_DLFCN_H 22437#include <dlfcn.h> 22438#endif 22439 22440#include <stdio.h> 22441 22442#ifdef RTLD_GLOBAL 22443# define LT_DLGLOBAL RTLD_GLOBAL 22444#else 22445# ifdef DL_GLOBAL 22446# define LT_DLGLOBAL DL_GLOBAL 22447# else 22448# define LT_DLGLOBAL 0 22449# endif 22450#endif 22451 22452/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 22453 find out it does not work in some platform. */ 22454#ifndef LT_DLLAZY_OR_NOW 22455# ifdef RTLD_LAZY 22456# define LT_DLLAZY_OR_NOW RTLD_LAZY 22457# else 22458# ifdef DL_LAZY 22459# define LT_DLLAZY_OR_NOW DL_LAZY 22460# else 22461# ifdef RTLD_NOW 22462# define LT_DLLAZY_OR_NOW RTLD_NOW 22463# else 22464# ifdef DL_NOW 22465# define LT_DLLAZY_OR_NOW DL_NOW 22466# else 22467# define LT_DLLAZY_OR_NOW 0 22468# endif 22469# endif 22470# endif 22471# endif 22472#endif 22473 22474/* When -fvisibility=hidden is used, assume the code has been annotated 22475 correspondingly for the symbols needed. */ 22476#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 22477int fnord () __attribute__((visibility("default"))); 22478#endif 22479 22480int fnord () { return 42; } 22481int main () 22482{ 22483 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 22484 int status = $lt_dlunknown; 22485 22486 if (self) 22487 { 22488 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 22489 else 22490 { 22491 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 22492 else puts (dlerror ()); 22493 } 22494 /* dlclose (self); */ 22495 } 22496 else 22497 puts (dlerror ()); 22498 22499 return status; 22500} 22501_LT_EOF 22502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 22503 (eval $ac_link) 2>&5 22504 ac_status=$? 22505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22506 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 22507 (./conftest; exit; ) >&5 2>/dev/null 22508 lt_status=$? 22509 case x$lt_status in 22510 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 22511 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 22512 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 22513 esac 22514 else : 22515 # compilation failed 22516 lt_cv_dlopen_self_static=no 22517 fi 22518fi 22519rm -fr conftest* 22520 22521 ;; 22522esac 22523fi 22524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 22525printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 22526 fi 22527 22528 CPPFLAGS=$save_CPPFLAGS 22529 LDFLAGS=$save_LDFLAGS 22530 LIBS=$save_LIBS 22531 ;; 22532 esac 22533 22534 case $lt_cv_dlopen_self in 22535 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 22536 *) enable_dlopen_self=unknown ;; 22537 esac 22538 22539 case $lt_cv_dlopen_self_static in 22540 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 22541 *) enable_dlopen_self_static=unknown ;; 22542 esac 22543fi 22544 22545 22546 22547 22548 22549 22550 22551 22552 22553 22554 22555 22556 22557 22558 22559 22560 22561striplib= 22562old_striplib= 22563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 22564printf %s "checking whether stripping libraries is possible... " >&6; } 22565if test -z "$STRIP"; then 22566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22567printf "%s\n" "no" >&6; } 22568else 22569 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 22570 old_striplib="$STRIP --strip-debug" 22571 striplib="$STRIP --strip-unneeded" 22572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22573printf "%s\n" "yes" >&6; } 22574 else 22575 case $host_os in 22576 darwin*) 22577 # FIXME - insert some real tests, host_os isn't really good enough 22578 striplib="$STRIP -x" 22579 old_striplib="$STRIP -S" 22580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22581printf "%s\n" "yes" >&6; } 22582 ;; 22583 freebsd*) 22584 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 22585 old_striplib="$STRIP --strip-debug" 22586 striplib="$STRIP --strip-unneeded" 22587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22588printf "%s\n" "yes" >&6; } 22589 else 22590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22591printf "%s\n" "no" >&6; } 22592 fi 22593 ;; 22594 *) 22595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22596printf "%s\n" "no" >&6; } 22597 ;; 22598 esac 22599 fi 22600fi 22601 22602 22603 22604 22605 22606 22607 22608 22609 22610 22611 22612 22613 # Report what library types will actually be built 22614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 22615printf %s "checking if libtool supports shared libraries... " >&6; } 22616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 22617printf "%s\n" "$can_build_shared" >&6; } 22618 22619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 22620printf %s "checking whether to build shared libraries... " >&6; } 22621 test no = "$can_build_shared" && enable_shared=no 22622 22623 # On AIX, shared libraries and static libraries use the same namespace, and 22624 # are all built from PIC. 22625 case $host_os in 22626 aix3*) 22627 test yes = "$enable_shared" && enable_static=no 22628 if test -n "$RANLIB"; then 22629 archive_cmds="$archive_cmds~\$RANLIB \$lib" 22630 postinstall_cmds='$RANLIB $lib' 22631 fi 22632 ;; 22633 22634 aix[4-9]*) 22635 if test ia64 != "$host_cpu"; then 22636 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 22637 yes,aix,yes) ;; # shared object as lib.so file only 22638 yes,svr4,*) ;; # shared object as lib.so archive member only 22639 yes,*) enable_static=no ;; # shared object in lib.a archive as well 22640 esac 22641 fi 22642 ;; 22643 esac 22644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 22645printf "%s\n" "$enable_shared" >&6; } 22646 22647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 22648printf %s "checking whether to build static libraries... " >&6; } 22649 # Make sure either enable_shared or enable_static is yes. 22650 test yes = "$enable_shared" || enable_static=yes 22651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 22652printf "%s\n" "$enable_static" >&6; } 22653 22654 22655 22656 22657fi 22658ac_ext=c 22659ac_cpp='$CPP $CPPFLAGS' 22660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22662ac_compiler_gnu=$ac_cv_c_compiler_gnu 22663 22664CC=$lt_save_CC 22665 22666 22667 22668 22669 22670 22671 22672 22673 22674 22675 22676 22677 22678 22679 22680 ac_config_commands="$ac_config_commands libtool" 22681 22682 22683 22684 22685# Only expand once: 22686 22687 22688 22689 22690 22691 22692 22693 22694 22695if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 22696 if test -n "$ac_tool_prefix"; then 22697 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 22698set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 22699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22700printf %s "checking for $ac_word... " >&6; } 22701if test ${ac_cv_path_PKG_CONFIG+y} 22702then : 22703 printf %s "(cached) " >&6 22704else case e in #( 22705 e) case $PKG_CONFIG in 22706 [\\/]* | ?:[\\/]*) 22707 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 22708 ;; 22709 *) 22710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22711for as_dir in $PATH 22712do 22713 IFS=$as_save_IFS 22714 case $as_dir in #((( 22715 '') as_dir=./ ;; 22716 */) ;; 22717 *) as_dir=$as_dir/ ;; 22718 esac 22719 for ac_exec_ext in '' $ac_executable_extensions; do 22720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22721 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 22722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22723 break 2 22724 fi 22725done 22726 done 22727IFS=$as_save_IFS 22728 22729 ;; 22730esac ;; 22731esac 22732fi 22733PKG_CONFIG=$ac_cv_path_PKG_CONFIG 22734if test -n "$PKG_CONFIG"; then 22735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 22736printf "%s\n" "$PKG_CONFIG" >&6; } 22737else 22738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22739printf "%s\n" "no" >&6; } 22740fi 22741 22742 22743fi 22744if test -z "$ac_cv_path_PKG_CONFIG"; then 22745 ac_pt_PKG_CONFIG=$PKG_CONFIG 22746 # Extract the first word of "pkg-config", so it can be a program name with args. 22747set dummy pkg-config; ac_word=$2 22748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22749printf %s "checking for $ac_word... " >&6; } 22750if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 22751then : 22752 printf %s "(cached) " >&6 22753else case e in #( 22754 e) case $ac_pt_PKG_CONFIG in 22755 [\\/]* | ?:[\\/]*) 22756 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 22757 ;; 22758 *) 22759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22760for as_dir in $PATH 22761do 22762 IFS=$as_save_IFS 22763 case $as_dir in #((( 22764 '') as_dir=./ ;; 22765 */) ;; 22766 *) as_dir=$as_dir/ ;; 22767 esac 22768 for ac_exec_ext in '' $ac_executable_extensions; do 22769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22770 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 22771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22772 break 2 22773 fi 22774done 22775 done 22776IFS=$as_save_IFS 22777 22778 ;; 22779esac ;; 22780esac 22781fi 22782ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 22783if test -n "$ac_pt_PKG_CONFIG"; then 22784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 22785printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 22786else 22787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22788printf "%s\n" "no" >&6; } 22789fi 22790 22791 if test "x$ac_pt_PKG_CONFIG" = x; then 22792 PKG_CONFIG="" 22793 else 22794 case $cross_compiling:$ac_tool_warned in 22795yes:) 22796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 22797printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 22798ac_tool_warned=yes ;; 22799esac 22800 PKG_CONFIG=$ac_pt_PKG_CONFIG 22801 fi 22802else 22803 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 22804fi 22805 22806fi 22807if test -n "$PKG_CONFIG"; then 22808 _pkg_min_version=0.9.0 22809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 22810printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 22811 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 22812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22813printf "%s\n" "yes" >&6; } 22814 else 22815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22816printf "%s\n" "no" >&6; } 22817 PKG_CONFIG="" 22818 fi 22819fi 22820if test -z "$PKG_CONFIG"; then 22821 as_fn_error $? "pkg-config not found" "$LINENO" 5 22822fi 22823for ac_prog in flex lex 22824do 22825 # Extract the first word of "$ac_prog", so it can be a program name with args. 22826set dummy $ac_prog; ac_word=$2 22827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22828printf %s "checking for $ac_word... " >&6; } 22829if test ${ac_cv_prog_LEX+y} 22830then : 22831 printf %s "(cached) " >&6 22832else case e in #( 22833 e) if test -n "$LEX"; then 22834 ac_cv_prog_LEX="$LEX" # Let the user override the test. 22835else 22836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22837for as_dir in $PATH 22838do 22839 IFS=$as_save_IFS 22840 case $as_dir in #((( 22841 '') as_dir=./ ;; 22842 */) ;; 22843 *) as_dir=$as_dir/ ;; 22844 esac 22845 for ac_exec_ext in '' $ac_executable_extensions; do 22846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22847 ac_cv_prog_LEX="$ac_prog" 22848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22849 break 2 22850 fi 22851done 22852 done 22853IFS=$as_save_IFS 22854 22855fi ;; 22856esac 22857fi 22858LEX=$ac_cv_prog_LEX 22859if test -n "$LEX"; then 22860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 22861printf "%s\n" "$LEX" >&6; } 22862else 22863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22864printf "%s\n" "no" >&6; } 22865fi 22866 22867 22868 test -n "$LEX" && break 22869done 22870test -n "$LEX" || LEX=":" 22871 22872 if test "x$LEX" != "x:"; then 22873 cat >conftest.l <<_ACEOF 22874%{ 22875#ifdef __cplusplus 22876extern "C" 22877#endif 22878int yywrap(void); 22879%} 22880%% 22881a { ECHO; } 22882b { REJECT; } 22883c { yymore (); } 22884d { yyless (1); } 22885e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 22886#ifdef __cplusplus 22887 yyless ((yyinput () != 0)); 22888#else 22889 yyless ((input () != 0)); 22890#endif 22891 } 22892f { unput (yytext[0]); } 22893. { BEGIN INITIAL; } 22894%% 22895#ifdef YYTEXT_POINTER 22896extern char *yytext; 22897#endif 22898int 22899yywrap (void) 22900{ 22901 return 1; 22902} 22903int 22904main (void) 22905{ 22906 return ! yylex (); 22907} 22908_ACEOF 22909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5 22910printf %s "checking for lex output file root... " >&6; } 22911if test ${ac_cv_prog_lex_root+y} 22912then : 22913 printf %s "(cached) " >&6 22914else case e in #( 22915 e) 22916ac_cv_prog_lex_root=unknown 22917{ { ac_try="$LEX conftest.l" 22918case "(($ac_try" in 22919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22920 *) ac_try_echo=$ac_try;; 22921esac 22922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 22923printf "%s\n" "$ac_try_echo"; } >&5 22924 (eval "$LEX conftest.l") 2>&5 22925 ac_status=$? 22926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22927 test $ac_status = 0; } && 22928if test -f lex.yy.c; then 22929 ac_cv_prog_lex_root=lex.yy 22930elif test -f lexyy.c; then 22931 ac_cv_prog_lex_root=lexyy 22932fi ;; 22933esac 22934fi 22935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 22936printf "%s\n" "$ac_cv_prog_lex_root" >&6; } 22937if test "$ac_cv_prog_lex_root" = unknown 22938then : 22939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5 22940printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;} 22941 LEX=: LEXLIB= 22942fi 22943LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 22944 22945if test ${LEXLIB+y} 22946then : 22947 22948else case e in #( 22949 e) 22950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5 22951printf %s "checking for lex library... " >&6; } 22952if test ${ac_cv_lib_lex+y} 22953then : 22954 printf %s "(cached) " >&6 22955else case e in #( 22956 e) 22957 ac_save_LIBS="$LIBS" 22958 ac_found=false 22959 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do 22960 case $ac_cv_lib_lex in #( 22961 'none needed') : 22962 ;; #( 22963 'not found') : 22964 break ;; #( 22965 *) : 22966 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #( 22967 *) : 22968 ;; 22969esac 22970 22971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22972/* end confdefs.h. */ 22973`cat $LEX_OUTPUT_ROOT.c` 22974_ACEOF 22975if ac_fn_c_try_link "$LINENO" 22976then : 22977 ac_found=: 22978fi 22979rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22980 conftest$ac_exeext conftest.$ac_ext 22981 if $ac_found; then 22982 break 22983 fi 22984 done 22985 LIBS="$ac_save_LIBS" 22986 ;; 22987esac 22988fi 22989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 22990printf "%s\n" "$ac_cv_lib_lex" >&6; } 22991 if test "$ac_cv_lib_lex" = 'not found' 22992then : 22993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5 22994printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;} 22995 LEX=: LEXLIB= 22996elif test "$ac_cv_lib_lex" = 'none needed' 22997then : 22998 LEXLIB='' 22999else case e in #( 23000 e) LEXLIB=$ac_cv_lib_lex ;; 23001esac 23002fi 23003 ac_save_LIBS="$LIBS" 23004 LIBS= 23005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5 23006printf %s "checking for library containing yywrap... " >&6; } 23007if test ${ac_cv_search_yywrap+y} 23008then : 23009 printf %s "(cached) " >&6 23010else case e in #( 23011 e) ac_func_search_save_LIBS=$LIBS 23012cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23013/* end confdefs.h. */ 23014 23015/* Override any GCC internal prototype to avoid an error. 23016 Use char because int might match the return type of a GCC 23017 builtin and then its argument prototype would still apply. 23018 The 'extern "C"' is for builds by C++ compilers; 23019 although this is not generally supported in C code supporting it here 23020 has little cost and some practical benefit (sr 110532). */ 23021#ifdef __cplusplus 23022extern "C" 23023#endif 23024char yywrap (void); 23025int 23026main (void) 23027{ 23028return yywrap (); 23029 ; 23030 return 0; 23031} 23032_ACEOF 23033for ac_lib in '' fl l 23034do 23035 if test -z "$ac_lib"; then 23036 ac_res="none required" 23037 else 23038 ac_res=-l$ac_lib 23039 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23040 fi 23041 if ac_fn_c_try_link "$LINENO" 23042then : 23043 ac_cv_search_yywrap=$ac_res 23044fi 23045rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23046 conftest$ac_exeext 23047 if test ${ac_cv_search_yywrap+y} 23048then : 23049 break 23050fi 23051done 23052if test ${ac_cv_search_yywrap+y} 23053then : 23054 23055else case e in #( 23056 e) ac_cv_search_yywrap=no ;; 23057esac 23058fi 23059rm conftest.$ac_ext 23060LIBS=$ac_func_search_save_LIBS ;; 23061esac 23062fi 23063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5 23064printf "%s\n" "$ac_cv_search_yywrap" >&6; } 23065ac_res=$ac_cv_search_yywrap 23066if test "$ac_res" != no 23067then : 23068 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23069 LEXLIB="$LIBS" 23070fi 23071 23072 LIBS="$ac_save_LIBS" ;; 23073esac 23074fi 23075 23076 23077if test "$LEX" != : 23078then : 23079 23080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 23081printf %s "checking whether yytext is a pointer... " >&6; } 23082if test ${ac_cv_prog_lex_yytext_pointer+y} 23083then : 23084 printf %s "(cached) " >&6 23085else case e in #( 23086 e) # POSIX says lex can declare yytext either as a pointer or an array; the 23087# default is implementation-dependent. Figure out which it is, since 23088# not all implementations provide the %pointer and %array declarations. 23089ac_cv_prog_lex_yytext_pointer=no 23090cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23091/* end confdefs.h. */ 23092 23093 #define YYTEXT_POINTER 1 23094`cat $LEX_OUTPUT_ROOT.c` 23095_ACEOF 23096if ac_fn_c_try_compile "$LINENO" 23097then : 23098 ac_cv_prog_lex_yytext_pointer=yes 23099fi 23100rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23101 ;; 23102esac 23103fi 23104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 23105printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; } 23106if test $ac_cv_prog_lex_yytext_pointer = yes; then 23107 23108printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h 23109 23110fi 23111 23112fi 23113rm -f conftest.l $LEX_OUTPUT_ROOT.c 23114 23115fi 23116for ac_prog in 'bison -y' byacc 23117do 23118 # Extract the first word of "$ac_prog", so it can be a program name with args. 23119set dummy $ac_prog; ac_word=$2 23120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23121printf %s "checking for $ac_word... " >&6; } 23122if test ${ac_cv_prog_YACC+y} 23123then : 23124 printf %s "(cached) " >&6 23125else case e in #( 23126 e) if test -n "$YACC"; then 23127 ac_cv_prog_YACC="$YACC" # Let the user override the test. 23128else 23129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23130for as_dir in $PATH 23131do 23132 IFS=$as_save_IFS 23133 case $as_dir in #((( 23134 '') as_dir=./ ;; 23135 */) ;; 23136 *) as_dir=$as_dir/ ;; 23137 esac 23138 for ac_exec_ext in '' $ac_executable_extensions; do 23139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23140 ac_cv_prog_YACC="$ac_prog" 23141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23142 break 2 23143 fi 23144done 23145 done 23146IFS=$as_save_IFS 23147 23148fi ;; 23149esac 23150fi 23151YACC=$ac_cv_prog_YACC 23152if test -n "$YACC"; then 23153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 23154printf "%s\n" "$YACC" >&6; } 23155else 23156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23157printf "%s\n" "no" >&6; } 23158fi 23159 23160 23161 test -n "$YACC" && break 23162done 23163test -n "$YACC" || YACC="yacc" 23164 23165# Check whether --enable-largefile was given. 23166if test ${enable_largefile+y} 23167then : 23168 enableval=$enable_largefile; 23169fi 23170if test "$enable_largefile,$enable_year2038" != no,no 23171then : 23172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 23173printf %s "checking for $CC option to enable large file support... " >&6; } 23174if test ${ac_cv_sys_largefile_opts+y} 23175then : 23176 printf %s "(cached) " >&6 23177else case e in #( 23178 e) ac_save_CC="$CC" 23179 ac_opt_found=no 23180 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 23181 if test x"$ac_opt" != x"none needed" 23182then : 23183 CC="$ac_save_CC $ac_opt" 23184fi 23185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23186/* end confdefs.h. */ 23187#include <sys/types.h> 23188#ifndef FTYPE 23189# define FTYPE off_t 23190#endif 23191 /* Check that FTYPE can represent 2**63 - 1 correctly. 23192 We can't simply define LARGE_FTYPE to be 9223372036854775807, 23193 since some C++ compilers masquerading as C compilers 23194 incorrectly reject 9223372036854775807. */ 23195#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 23196 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 23197 && LARGE_FTYPE % 2147483647 == 1) 23198 ? 1 : -1]; 23199int 23200main (void) 23201{ 23202 23203 ; 23204 return 0; 23205} 23206_ACEOF 23207if ac_fn_c_try_compile "$LINENO" 23208then : 23209 if test x"$ac_opt" = x"none needed" 23210then : 23211 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 23212 CC="$CC -DFTYPE=ino_t" 23213 if ac_fn_c_try_compile "$LINENO" 23214then : 23215 23216else case e in #( 23217 e) CC="$CC -D_FILE_OFFSET_BITS=64" 23218 if ac_fn_c_try_compile "$LINENO" 23219then : 23220 ac_opt='-D_FILE_OFFSET_BITS=64' 23221fi 23222rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 23223esac 23224fi 23225rm -f core conftest.err conftest.$ac_objext conftest.beam 23226fi 23227 ac_cv_sys_largefile_opts=$ac_opt 23228 ac_opt_found=yes 23229fi 23230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23231 test $ac_opt_found = no || break 23232 done 23233 CC="$ac_save_CC" 23234 23235 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 23236esac 23237fi 23238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 23239printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 23240 23241ac_have_largefile=yes 23242case $ac_cv_sys_largefile_opts in #( 23243 "none needed") : 23244 ;; #( 23245 "supported through gnulib") : 23246 ;; #( 23247 "support not detected") : 23248 ac_have_largefile=no ;; #( 23249 "-D_FILE_OFFSET_BITS=64") : 23250 23251printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 23252 ;; #( 23253 "-D_LARGE_FILES=1") : 23254 23255printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 23256 ;; #( 23257 "-n32") : 23258 CC="$CC -n32" ;; #( 23259 *) : 23260 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 23261esac 23262 23263if test "$enable_year2038" != no 23264then : 23265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 23266printf %s "checking for $CC option for timestamps after 2038... " >&6; } 23267if test ${ac_cv_sys_year2038_opts+y} 23268then : 23269 printf %s "(cached) " >&6 23270else case e in #( 23271 e) ac_save_CPPFLAGS="$CPPFLAGS" 23272 ac_opt_found=no 23273 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 23274 if test x"$ac_opt" != x"none needed" 23275then : 23276 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 23277fi 23278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23279/* end confdefs.h. */ 23280 23281 #include <time.h> 23282 /* Check that time_t can represent 2**32 - 1 correctly. */ 23283 #define LARGE_TIME_T \\ 23284 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 23285 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 23286 && LARGE_TIME_T % 65537 == 0) 23287 ? 1 : -1]; 23288 23289int 23290main (void) 23291{ 23292 23293 ; 23294 return 0; 23295} 23296_ACEOF 23297if ac_fn_c_try_compile "$LINENO" 23298then : 23299 ac_cv_sys_year2038_opts="$ac_opt" 23300 ac_opt_found=yes 23301fi 23302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23303 test $ac_opt_found = no || break 23304 done 23305 CPPFLAGS="$ac_save_CPPFLAGS" 23306 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 23307esac 23308fi 23309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 23310printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 23311 23312ac_have_year2038=yes 23313case $ac_cv_sys_year2038_opts in #( 23314 "none needed") : 23315 ;; #( 23316 "support not detected") : 23317 ac_have_year2038=no ;; #( 23318 "-D_TIME_BITS=64") : 23319 23320printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 23321 ;; #( 23322 "-D__MINGW_USE_VC2005_COMPAT") : 23323 23324printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 23325 ;; #( 23326 "-U_USE_32_BIT_TIME_T"*) : 23327 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23328printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23329as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 23330will stop working after mid-January 2038. Remove 23331_USE_32BIT_TIME_T from the compiler flags. 23332See 'config.log' for more details" "$LINENO" 5; } ;; #( 23333 *) : 23334 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 23335esac 23336 23337fi 23338 23339fi 23340ac_ext=c 23341ac_cpp='$CPP $CPPFLAGS' 23342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23344ac_compiler_gnu=$ac_cv_c_compiler_gnu 23345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 23346printf %s "checking how to run the C preprocessor... " >&6; } 23347# On Suns, sometimes $CPP names a directory. 23348if test -n "$CPP" && test -d "$CPP"; then 23349 CPP= 23350fi 23351if test -z "$CPP"; then 23352 if test ${ac_cv_prog_CPP+y} 23353then : 23354 printf %s "(cached) " >&6 23355else case e in #( 23356 e) # Double quotes because $CC needs to be expanded 23357 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 23358 do 23359 ac_preproc_ok=false 23360for ac_c_preproc_warn_flag in '' yes 23361do 23362 # Use a header file that comes with gcc, so configuring glibc 23363 # with a fresh cross-compiler works. 23364 # On the NeXT, cc -E runs the code through the compiler's parser, 23365 # not just through cpp. "Syntax error" is here to catch this case. 23366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23367/* end confdefs.h. */ 23368#include <limits.h> 23369 Syntax error 23370_ACEOF 23371if ac_fn_c_try_cpp "$LINENO" 23372then : 23373 23374else case e in #( 23375 e) # Broken: fails on valid input. 23376continue ;; 23377esac 23378fi 23379rm -f conftest.err conftest.i conftest.$ac_ext 23380 23381 # OK, works on sane cases. Now check whether nonexistent headers 23382 # can be detected and how. 23383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23384/* end confdefs.h. */ 23385#include <ac_nonexistent.h> 23386_ACEOF 23387if ac_fn_c_try_cpp "$LINENO" 23388then : 23389 # Broken: success on invalid input. 23390continue 23391else case e in #( 23392 e) # Passes both tests. 23393ac_preproc_ok=: 23394break ;; 23395esac 23396fi 23397rm -f conftest.err conftest.i conftest.$ac_ext 23398 23399done 23400# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 23401rm -f conftest.i conftest.err conftest.$ac_ext 23402if $ac_preproc_ok 23403then : 23404 break 23405fi 23406 23407 done 23408 ac_cv_prog_CPP=$CPP 23409 ;; 23410esac 23411fi 23412 CPP=$ac_cv_prog_CPP 23413else 23414 ac_cv_prog_CPP=$CPP 23415fi 23416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 23417printf "%s\n" "$CPP" >&6; } 23418ac_preproc_ok=false 23419for ac_c_preproc_warn_flag in '' yes 23420do 23421 # Use a header file that comes with gcc, so configuring glibc 23422 # with a fresh cross-compiler works. 23423 # On the NeXT, cc -E runs the code through the compiler's parser, 23424 # not just through cpp. "Syntax error" is here to catch this case. 23425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23426/* end confdefs.h. */ 23427#include <limits.h> 23428 Syntax error 23429_ACEOF 23430if ac_fn_c_try_cpp "$LINENO" 23431then : 23432 23433else case e in #( 23434 e) # Broken: fails on valid input. 23435continue ;; 23436esac 23437fi 23438rm -f conftest.err conftest.i conftest.$ac_ext 23439 23440 # OK, works on sane cases. Now check whether nonexistent headers 23441 # can be detected and how. 23442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23443/* end confdefs.h. */ 23444#include <ac_nonexistent.h> 23445_ACEOF 23446if ac_fn_c_try_cpp "$LINENO" 23447then : 23448 # Broken: success on invalid input. 23449continue 23450else case e in #( 23451 e) # Passes both tests. 23452ac_preproc_ok=: 23453break ;; 23454esac 23455fi 23456rm -f conftest.err conftest.i conftest.$ac_ext 23457 23458done 23459# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 23460rm -f conftest.i conftest.err conftest.$ac_ext 23461if $ac_preproc_ok 23462then : 23463 23464else case e in #( 23465 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23466printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23467as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 23468See 'config.log' for more details" "$LINENO" 5; } ;; 23469esac 23470fi 23471 23472ac_ext=c 23473ac_cpp='$CPP $CPPFLAGS' 23474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23476ac_compiler_gnu=$ac_cv_c_compiler_gnu 23477 23478 23479 23480if test -n "$ac_tool_prefix"; then 23481 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. 23482set dummy ${ac_tool_prefix}cpp; ac_word=$2 23483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23484printf %s "checking for $ac_word... " >&6; } 23485if test ${ac_cv_path_RAWCPP+y} 23486then : 23487 printf %s "(cached) " >&6 23488else case e in #( 23489 e) case $RAWCPP in 23490 [\\/]* | ?:[\\/]*) 23491 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 23492 ;; 23493 *) 23494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23495as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 23496for as_dir in $as_dummy 23497do 23498 IFS=$as_save_IFS 23499 case $as_dir in #((( 23500 '') as_dir=./ ;; 23501 */) ;; 23502 *) as_dir=$as_dir/ ;; 23503 esac 23504 for ac_exec_ext in '' $ac_executable_extensions; do 23505 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23506 ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext" 23507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23508 break 2 23509 fi 23510done 23511 done 23512IFS=$as_save_IFS 23513 23514 ;; 23515esac ;; 23516esac 23517fi 23518RAWCPP=$ac_cv_path_RAWCPP 23519if test -n "$RAWCPP"; then 23520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 23521printf "%s\n" "$RAWCPP" >&6; } 23522else 23523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23524printf "%s\n" "no" >&6; } 23525fi 23526 23527 23528fi 23529if test -z "$ac_cv_path_RAWCPP"; then 23530 ac_pt_RAWCPP=$RAWCPP 23531 # Extract the first word of "cpp", so it can be a program name with args. 23532set dummy cpp; ac_word=$2 23533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23534printf %s "checking for $ac_word... " >&6; } 23535if test ${ac_cv_path_ac_pt_RAWCPP+y} 23536then : 23537 printf %s "(cached) " >&6 23538else case e in #( 23539 e) case $ac_pt_RAWCPP in 23540 [\\/]* | ?:[\\/]*) 23541 ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path. 23542 ;; 23543 *) 23544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23545as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 23546for as_dir in $as_dummy 23547do 23548 IFS=$as_save_IFS 23549 case $as_dir in #((( 23550 '') as_dir=./ ;; 23551 */) ;; 23552 *) as_dir=$as_dir/ ;; 23553 esac 23554 for ac_exec_ext in '' $ac_executable_extensions; do 23555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23556 ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext" 23557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23558 break 2 23559 fi 23560done 23561 done 23562IFS=$as_save_IFS 23563 23564 ;; 23565esac ;; 23566esac 23567fi 23568ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP 23569if test -n "$ac_pt_RAWCPP"; then 23570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5 23571printf "%s\n" "$ac_pt_RAWCPP" >&6; } 23572else 23573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23574printf "%s\n" "no" >&6; } 23575fi 23576 23577 if test "x$ac_pt_RAWCPP" = x; then 23578 RAWCPP="${CPP}" 23579 else 23580 case $cross_compiling:$ac_tool_warned in 23581yes:) 23582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 23583printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 23584ac_tool_warned=yes ;; 23585esac 23586 RAWCPP=$ac_pt_RAWCPP 23587 fi 23588else 23589 RAWCPP="$ac_cv_path_RAWCPP" 23590fi 23591 23592 23593# Check for flag to avoid builtin definitions - assumes unix is predefined, 23594# which is not the best choice for supporting other OS'es, but covers most 23595# of the ones we need for now. 23596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 23597printf %s "checking if $RAWCPP requires -undef... " >&6; } 23598cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23599/* end confdefs.h. */ 23600Does cpp redefine unix ? 23601_ACEOF 23602if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 23603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23604printf "%s\n" "no" >&6; } 23605else 23606 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 23607 RAWCPPFLAGS=-undef 23608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23609printf "%s\n" "yes" >&6; } 23610 # under Cygwin unix is still defined even with -undef 23611 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 23612 RAWCPPFLAGS="-undef -ansi" 23613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 23614printf "%s\n" "yes, with -ansi" >&6; } 23615 else 23616 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 23617 fi 23618fi 23619rm -f conftest.$ac_ext 23620 23621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 23622printf %s "checking if $RAWCPP requires -traditional... " >&6; } 23623cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23624/* end confdefs.h. */ 23625Does cpp preserve "whitespace"? 23626_ACEOF 23627if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve "'` -eq 1 ; then 23628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23629printf "%s\n" "no" >&6; } 23630else 23631 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve "'` -eq 1 ; then 23632 TRADITIONALCPPFLAGS="-traditional" 23633 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 23634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23635printf "%s\n" "yes" >&6; } 23636 else 23637 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 23638 fi 23639fi 23640rm -f conftest.$ac_ext 23641 23642 23643 23644 23645# Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow 23646# easier overrides at build time. 23647XSERVER_CFLAGS='$(CWARNFLAGS)' 23648 23649if test "x$GCC" = xyes ; then 23650 XSERVER_CFLAGS="$XSERVER_CFLAGS -fno-strict-aliasing" 23651fi 23652 23653 23654# Check whether --with-dtrace was given. 23655if test ${with_dtrace+y} 23656then : 23657 withval=$with_dtrace; WDTRACE=$withval 23658else case e in #( 23659 e) WDTRACE=auto ;; 23660esac 23661fi 23662 23663if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then 23664 # Extract the first word of "dtrace", so it can be a program name with args. 23665set dummy dtrace; ac_word=$2 23666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23667printf %s "checking for $ac_word... " >&6; } 23668if test ${ac_cv_path_DTRACE+y} 23669then : 23670 printf %s "(cached) " >&6 23671else case e in #( 23672 e) case $DTRACE in 23673 [\\/]* | ?:[\\/]*) 23674 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23675 ;; 23676 *) 23677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23678as_dummy="$PATH:/usr/sbin" 23679for as_dir in $as_dummy 23680do 23681 IFS=$as_save_IFS 23682 case $as_dir in #((( 23683 '') as_dir=./ ;; 23684 */) ;; 23685 *) as_dir=$as_dir/ ;; 23686 esac 23687 for ac_exec_ext in '' $ac_executable_extensions; do 23688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23689 ac_cv_path_DTRACE="$as_dir$ac_word$ac_exec_ext" 23690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23691 break 2 23692 fi 23693done 23694 done 23695IFS=$as_save_IFS 23696 23697 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found" 23698 ;; 23699esac ;; 23700esac 23701fi 23702DTRACE=$ac_cv_path_DTRACE 23703if test -n "$DTRACE"; then 23704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23705printf "%s\n" "$DTRACE" >&6; } 23706else 23707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23708printf "%s\n" "no" >&6; } 23709fi 23710 23711 23712 if test "x$DTRACE" = "xnot_found" ; then 23713 if test "x$WDTRACE" = "xyes" ; then 23714 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23715printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23716as_fn_error $? "dtrace requested but not found 23717See 'config.log' for more details" "$LINENO" 5; } 23718 fi 23719 WDTRACE="no" 23720 else 23721 ac_fn_c_check_header_compile "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 23722if test "x$ac_cv_header_sys_sdt_h" = xyes 23723then : 23724 HAS_SDT_H="yes" 23725else case e in #( 23726 e) HAS_SDT_H="no" ;; 23727esac 23728fi 23729 23730 if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then 23731 WDTRACE="no" 23732 fi 23733 fi 23734fi 23735if test "x$WDTRACE" != "xno" ; then 23736 23737printf "%s\n" "#define XSERVER_DTRACE 1" >>confdefs.h 23738 23739 23740# Solaris/OpenSolaris require dtrace -G to build dtrace probe information into 23741# object files, and require linking with those as relocatable objects, not .a 23742# archives. MacOS X handles all this in the normal compiler toolchain, and on 23743# some releases (like Tiger), will error out on dtrace -G. For now, other 23744# platforms with Dtrace ports are assumed to support -G (the FreeBSD and Linux 23745# ports appear to, based on my web searches, but have not yet been tested). 23746 case $host_os in 23747 darwin*) SPECIAL_DTRACE_OBJECTS=no ;; 23748 *) SPECIAL_DTRACE_OBJECTS=yes ;; 23749 esac 23750fi 23751 if test "x$WDTRACE" != "xno"; then 23752 XSERVER_DTRACE_TRUE= 23753 XSERVER_DTRACE_FALSE='#' 23754else 23755 XSERVER_DTRACE_TRUE='#' 23756 XSERVER_DTRACE_FALSE= 23757fi 23758 23759 if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes"; then 23760 SPECIAL_DTRACE_OBJECTS_TRUE= 23761 SPECIAL_DTRACE_OBJECTS_FALSE='#' 23762else 23763 SPECIAL_DTRACE_OBJECTS_TRUE='#' 23764 SPECIAL_DTRACE_OBJECTS_FALSE= 23765fi 23766 23767 23768ac_header_dirent=no 23769for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 23770 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"` 23771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 23772printf %s "checking for $ac_hdr that defines DIR... " >&6; } 23773if eval test \${$as_ac_Header+y} 23774then : 23775 printf %s "(cached) " >&6 23776else case e in #( 23777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23778/* end confdefs.h. */ 23779#include <sys/types.h> 23780#include <$ac_hdr> 23781 23782int 23783main (void) 23784{ 23785if ((DIR *) 0) 23786return 0; 23787 ; 23788 return 0; 23789} 23790_ACEOF 23791if ac_fn_c_try_compile "$LINENO" 23792then : 23793 eval "$as_ac_Header=yes" 23794else case e in #( 23795 e) eval "$as_ac_Header=no" ;; 23796esac 23797fi 23798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 23799esac 23800fi 23801eval ac_res=\$$as_ac_Header 23802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 23803printf "%s\n" "$ac_res" >&6; } 23804if eval test \"x\$"$as_ac_Header"\" = x"yes" 23805then : 23806 cat >>confdefs.h <<_ACEOF 23807#define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1 23808_ACEOF 23809 23810ac_header_dirent=$ac_hdr; break 23811fi 23812 23813done 23814# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 23815if test $ac_header_dirent = dirent.h; then 23816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 23817printf %s "checking for library containing opendir... " >&6; } 23818if test ${ac_cv_search_opendir+y} 23819then : 23820 printf %s "(cached) " >&6 23821else case e in #( 23822 e) ac_func_search_save_LIBS=$LIBS 23823cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23824/* end confdefs.h. */ 23825 23826/* Override any GCC internal prototype to avoid an error. 23827 Use char because int might match the return type of a GCC 23828 builtin and then its argument prototype would still apply. 23829 The 'extern "C"' is for builds by C++ compilers; 23830 although this is not generally supported in C code supporting it here 23831 has little cost and some practical benefit (sr 110532). */ 23832#ifdef __cplusplus 23833extern "C" 23834#endif 23835char opendir (void); 23836int 23837main (void) 23838{ 23839return opendir (); 23840 ; 23841 return 0; 23842} 23843_ACEOF 23844for ac_lib in '' dir 23845do 23846 if test -z "$ac_lib"; then 23847 ac_res="none required" 23848 else 23849 ac_res=-l$ac_lib 23850 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23851 fi 23852 if ac_fn_c_try_link "$LINENO" 23853then : 23854 ac_cv_search_opendir=$ac_res 23855fi 23856rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23857 conftest$ac_exeext 23858 if test ${ac_cv_search_opendir+y} 23859then : 23860 break 23861fi 23862done 23863if test ${ac_cv_search_opendir+y} 23864then : 23865 23866else case e in #( 23867 e) ac_cv_search_opendir=no ;; 23868esac 23869fi 23870rm conftest.$ac_ext 23871LIBS=$ac_func_search_save_LIBS ;; 23872esac 23873fi 23874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 23875printf "%s\n" "$ac_cv_search_opendir" >&6; } 23876ac_res=$ac_cv_search_opendir 23877if test "$ac_res" != no 23878then : 23879 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23880 23881fi 23882 23883else 23884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 23885printf %s "checking for library containing opendir... " >&6; } 23886if test ${ac_cv_search_opendir+y} 23887then : 23888 printf %s "(cached) " >&6 23889else case e in #( 23890 e) ac_func_search_save_LIBS=$LIBS 23891cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23892/* end confdefs.h. */ 23893 23894/* Override any GCC internal prototype to avoid an error. 23895 Use char because int might match the return type of a GCC 23896 builtin and then its argument prototype would still apply. 23897 The 'extern "C"' is for builds by C++ compilers; 23898 although this is not generally supported in C code supporting it here 23899 has little cost and some practical benefit (sr 110532). */ 23900#ifdef __cplusplus 23901extern "C" 23902#endif 23903char opendir (void); 23904int 23905main (void) 23906{ 23907return opendir (); 23908 ; 23909 return 0; 23910} 23911_ACEOF 23912for ac_lib in '' x 23913do 23914 if test -z "$ac_lib"; then 23915 ac_res="none required" 23916 else 23917 ac_res=-l$ac_lib 23918 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23919 fi 23920 if ac_fn_c_try_link "$LINENO" 23921then : 23922 ac_cv_search_opendir=$ac_res 23923fi 23924rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23925 conftest$ac_exeext 23926 if test ${ac_cv_search_opendir+y} 23927then : 23928 break 23929fi 23930done 23931if test ${ac_cv_search_opendir+y} 23932then : 23933 23934else case e in #( 23935 e) ac_cv_search_opendir=no ;; 23936esac 23937fi 23938rm conftest.$ac_ext 23939LIBS=$ac_func_search_save_LIBS ;; 23940esac 23941fi 23942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 23943printf "%s\n" "$ac_cv_search_opendir" >&6; } 23944ac_res=$ac_cv_search_opendir 23945if test "$ac_res" != no 23946then : 23947 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23948 23949fi 23950 23951fi 23952 23953# Autoupdate added the next two lines to ensure that your configure 23954# script's behavior did not change. They are probably safe to remove. 23955 23956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 23957printf %s "checking for egrep... " >&6; } 23958if test ${ac_cv_path_EGREP+y} 23959then : 23960 printf %s "(cached) " >&6 23961else case e in #( 23962 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 23963 then ac_cv_path_EGREP="$GREP -E" 23964 else 23965 if test -z "$EGREP"; then 23966 ac_path_EGREP_found=false 23967 # Loop through the user's path and test for each of PROGNAME-LIST 23968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23969for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 23970do 23971 IFS=$as_save_IFS 23972 case $as_dir in #((( 23973 '') as_dir=./ ;; 23974 */) ;; 23975 *) as_dir=$as_dir/ ;; 23976 esac 23977 for ac_prog in egrep 23978 do 23979 for ac_exec_ext in '' $ac_executable_extensions; do 23980 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 23981 as_fn_executable_p "$ac_path_EGREP" || continue 23982# Check for GNU ac_path_EGREP and select it if it is found. 23983 # Check for GNU $ac_path_EGREP 23984case `"$ac_path_EGREP" --version 2>&1` in #( 23985*GNU*) 23986 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 23987#( 23988*) 23989 ac_count=0 23990 printf %s 0123456789 >"conftest.in" 23991 while : 23992 do 23993 cat "conftest.in" "conftest.in" >"conftest.tmp" 23994 mv "conftest.tmp" "conftest.in" 23995 cp "conftest.in" "conftest.nl" 23996 printf "%s\n" 'EGREP' >> "conftest.nl" 23997 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 23998 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 23999 as_fn_arith $ac_count + 1 && ac_count=$as_val 24000 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 24001 # Best one so far, save it but keep looking for a better one 24002 ac_cv_path_EGREP="$ac_path_EGREP" 24003 ac_path_EGREP_max=$ac_count 24004 fi 24005 # 10*(2^10) chars as input seems more than enough 24006 test $ac_count -gt 10 && break 24007 done 24008 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 24009esac 24010 24011 $ac_path_EGREP_found && break 3 24012 done 24013 done 24014 done 24015IFS=$as_save_IFS 24016 if test -z "$ac_cv_path_EGREP"; then 24017 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 24018 fi 24019else 24020 ac_cv_path_EGREP=$EGREP 24021fi 24022 24023 fi ;; 24024esac 24025fi 24026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 24027printf "%s\n" "$ac_cv_path_EGREP" >&6; } 24028 EGREP="$ac_cv_path_EGREP" 24029 24030 EGREP_TRADITIONAL=$EGREP 24031 ac_cv_path_EGREP_TRADITIONAL=$EGREP 24032 24033 24034ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 24035if test "x$ac_cv_header_fcntl_h" = xyes 24036then : 24037 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 24038 24039fi 24040ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 24041if test "x$ac_cv_header_stdlib_h" = xyes 24042then : 24043 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h 24044 24045fi 24046ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 24047if test "x$ac_cv_header_string_h" = xyes 24048then : 24049 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h 24050 24051fi 24052ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 24053if test "x$ac_cv_header_unistd_h" = xyes 24054then : 24055 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 24056 24057fi 24058ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 24059if test "x$ac_cv_header_dlfcn_h" = xyes 24060then : 24061 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 24062 24063fi 24064ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" 24065if test "x$ac_cv_header_stropts_h" = xyes 24066then : 24067 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h 24068 24069fi 24070ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" 24071if test "x$ac_cv_header_fnmatch_h" = xyes 24072then : 24073 printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h 24074 24075fi 24076ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 24077if test "x$ac_cv_header_sys_mkdev_h" = xyes 24078then : 24079 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h 24080 24081fi 24082ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 24083if test "x$ac_cv_header_sys_sysmacros_h" = xyes 24084then : 24085 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h 24086 24087fi 24088ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" 24089if test "x$ac_cv_header_sys_utsname_h" = xyes 24090then : 24091 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h 24092 24093fi 24094 24095 24096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 24097printf %s "checking for an ANSI C-conforming const... " >&6; } 24098if test ${ac_cv_c_const+y} 24099then : 24100 printf %s "(cached) " >&6 24101else case e in #( 24102 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24103/* end confdefs.h. */ 24104 24105int 24106main (void) 24107{ 24108 24109#ifndef __cplusplus 24110 /* Ultrix mips cc rejects this sort of thing. */ 24111 typedef int charset[2]; 24112 const charset cs = { 0, 0 }; 24113 /* SunOS 4.1.1 cc rejects this. */ 24114 char const *const *pcpcc; 24115 char **ppc; 24116 /* NEC SVR4.0.2 mips cc rejects this. */ 24117 struct point {int x, y;}; 24118 static struct point const zero = {0,0}; 24119 /* IBM XL C 1.02.0.0 rejects this. 24120 It does not let you subtract one const X* pointer from another in 24121 an arm of an if-expression whose if-part is not a constant 24122 expression */ 24123 const char *g = "string"; 24124 pcpcc = &g + (g ? g-g : 0); 24125 /* HPUX 7.0 cc rejects these. */ 24126 ++pcpcc; 24127 ppc = (char**) pcpcc; 24128 pcpcc = (char const *const *) ppc; 24129 { /* SCO 3.2v4 cc rejects this sort of thing. */ 24130 char tx; 24131 char *t = &tx; 24132 char const *s = 0 ? (char *) 0 : (char const *) 0; 24133 24134 *t++ = 0; 24135 if (s) return 0; 24136 } 24137 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 24138 int x[] = {25, 17}; 24139 const int *foo = &x[0]; 24140 ++foo; 24141 } 24142 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 24143 typedef const int *iptr; 24144 iptr p = 0; 24145 ++p; 24146 } 24147 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 24148 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 24149 struct s { int j; const int *ap[3]; } bx; 24150 struct s *b = &bx; b->j = 5; 24151 } 24152 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 24153 const int foo = 10; 24154 if (!foo) return 0; 24155 } 24156 return !cs[0] && !zero.x; 24157#endif 24158 24159 ; 24160 return 0; 24161} 24162_ACEOF 24163if ac_fn_c_try_compile "$LINENO" 24164then : 24165 ac_cv_c_const=yes 24166else case e in #( 24167 e) ac_cv_c_const=no ;; 24168esac 24169fi 24170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 24171esac 24172fi 24173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 24174printf "%s\n" "$ac_cv_c_const" >&6; } 24175if test $ac_cv_c_const = no; then 24176 24177printf "%s\n" "#define const /**/" >>confdefs.h 24178 24179fi 24180 24181 24182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5 24183printf %s "checking for typeof syntax and keyword spelling... " >&6; } 24184if test ${ac_cv_c_typeof+y} 24185then : 24186 printf %s "(cached) " >&6 24187else case e in #( 24188 e) ac_cv_c_typeof=no 24189 for ac_kw in typeof __typeof__ no; do 24190 test $ac_kw = no && break 24191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24192/* end confdefs.h. */ 24193 24194int 24195main (void) 24196{ 24197 24198 int value; 24199 typedef struct { 24200 char a [1 24201 + ! (($ac_kw (value)) 24202 (($ac_kw (value)) 0 < ($ac_kw (value)) -1 24203 ? ($ac_kw (value)) - 1 24204 : ~ (~ ($ac_kw (value)) 0 24205 << sizeof ($ac_kw (value)))))]; } 24206 ac__typeof_type_; 24207 return 24208 (! ((void) ((ac__typeof_type_ *) 0), 0)); 24209 24210 ; 24211 return 0; 24212} 24213_ACEOF 24214if ac_fn_c_try_compile "$LINENO" 24215then : 24216 ac_cv_c_typeof=$ac_kw 24217fi 24218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24219 test $ac_cv_c_typeof != no && break 24220 done ;; 24221esac 24222fi 24223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5 24224printf "%s\n" "$ac_cv_c_typeof" >&6; } 24225 if test $ac_cv_c_typeof != no; then 24226 24227printf "%s\n" "#define HAVE_TYPEOF 1" >>confdefs.h 24228 24229 if test $ac_cv_c_typeof != typeof; then 24230 24231printf "%s\n" "#define typeof $ac_cv_c_typeof" >>confdefs.h 24232 24233 fi 24234 fi 24235 24236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 24237printf %s "checking whether byte ordering is bigendian... " >&6; } 24238if test ${ac_cv_c_bigendian+y} 24239then : 24240 printf %s "(cached) " >&6 24241else case e in #( 24242 e) ac_cv_c_bigendian=unknown 24243 # See if we're dealing with a universal compiler. 24244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24245/* end confdefs.h. */ 24246#ifndef __APPLE_CC__ 24247 not a universal capable compiler 24248 #endif 24249 typedef int dummy; 24250 24251_ACEOF 24252if ac_fn_c_try_compile "$LINENO" 24253then : 24254 24255 # Check for potential -arch flags. It is not universal unless 24256 # there are at least two -arch flags with different values. 24257 ac_arch= 24258 ac_prev= 24259 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 24260 if test -n "$ac_prev"; then 24261 case $ac_word in 24262 i?86 | x86_64 | ppc | ppc64) 24263 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 24264 ac_arch=$ac_word 24265 else 24266 ac_cv_c_bigendian=universal 24267 break 24268 fi 24269 ;; 24270 esac 24271 ac_prev= 24272 elif test "x$ac_word" = "x-arch"; then 24273 ac_prev=arch 24274 fi 24275 done 24276fi 24277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24278 if test $ac_cv_c_bigendian = unknown; then 24279 # See if sys/param.h defines the BYTE_ORDER macro. 24280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24281/* end confdefs.h. */ 24282#include <sys/types.h> 24283 #include <sys/param.h> 24284 24285int 24286main (void) 24287{ 24288#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ 24289 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ 24290 && LITTLE_ENDIAN) 24291 bogus endian macros 24292 #endif 24293 24294 ; 24295 return 0; 24296} 24297_ACEOF 24298if ac_fn_c_try_compile "$LINENO" 24299then : 24300 # It does; now see whether it defined to BIG_ENDIAN or not. 24301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24302/* end confdefs.h. */ 24303#include <sys/types.h> 24304 #include <sys/param.h> 24305 24306int 24307main (void) 24308{ 24309#if BYTE_ORDER != BIG_ENDIAN 24310 not big endian 24311 #endif 24312 24313 ; 24314 return 0; 24315} 24316_ACEOF 24317if ac_fn_c_try_compile "$LINENO" 24318then : 24319 ac_cv_c_bigendian=yes 24320else case e in #( 24321 e) ac_cv_c_bigendian=no ;; 24322esac 24323fi 24324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24325fi 24326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24327 fi 24328 if test $ac_cv_c_bigendian = unknown; then 24329 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 24330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24331/* end confdefs.h. */ 24332#include <limits.h> 24333 24334int 24335main (void) 24336{ 24337#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 24338 bogus endian macros 24339 #endif 24340 24341 ; 24342 return 0; 24343} 24344_ACEOF 24345if ac_fn_c_try_compile "$LINENO" 24346then : 24347 # It does; now see whether it defined to _BIG_ENDIAN or not. 24348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24349/* end confdefs.h. */ 24350#include <limits.h> 24351 24352int 24353main (void) 24354{ 24355#ifndef _BIG_ENDIAN 24356 not big endian 24357 #endif 24358 24359 ; 24360 return 0; 24361} 24362_ACEOF 24363if ac_fn_c_try_compile "$LINENO" 24364then : 24365 ac_cv_c_bigendian=yes 24366else case e in #( 24367 e) ac_cv_c_bigendian=no ;; 24368esac 24369fi 24370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24371fi 24372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24373 fi 24374 if test $ac_cv_c_bigendian = unknown; then 24375 # Compile a test program. 24376 if test "$cross_compiling" = yes 24377then : 24378 # Try to guess by grepping values from an object file. 24379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24380/* end confdefs.h. */ 24381unsigned short int ascii_mm[] = 24382 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 24383 unsigned short int ascii_ii[] = 24384 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 24385 int use_ascii (int i) { 24386 return ascii_mm[i] + ascii_ii[i]; 24387 } 24388 unsigned short int ebcdic_ii[] = 24389 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 24390 unsigned short int ebcdic_mm[] = 24391 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 24392 int use_ebcdic (int i) { 24393 return ebcdic_mm[i] + ebcdic_ii[i]; 24394 } 24395 int 24396 main (int argc, char **argv) 24397 { 24398 /* Intimidate the compiler so that it does not 24399 optimize the arrays away. */ 24400 char *p = argv[0]; 24401 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; 24402 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; 24403 return use_ascii (argc) == use_ebcdic (*p); 24404 } 24405_ACEOF 24406if ac_fn_c_try_link "$LINENO" 24407then : 24408 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then 24409 ac_cv_c_bigendian=yes 24410 fi 24411 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then 24412 if test "$ac_cv_c_bigendian" = unknown; then 24413 ac_cv_c_bigendian=no 24414 else 24415 # finding both strings is unlikely to happen, but who knows? 24416 ac_cv_c_bigendian=unknown 24417 fi 24418 fi 24419fi 24420rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24421 conftest$ac_exeext conftest.$ac_ext 24422else case e in #( 24423 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24424/* end confdefs.h. */ 24425$ac_includes_default 24426int 24427main (void) 24428{ 24429 24430 /* Are we little or big endian? From Harbison&Steele. */ 24431 union 24432 { 24433 long int l; 24434 char c[sizeof (long int)]; 24435 } u; 24436 u.l = 1; 24437 return u.c[sizeof (long int) - 1] == 1; 24438 24439 ; 24440 return 0; 24441} 24442_ACEOF 24443if ac_fn_c_try_run "$LINENO" 24444then : 24445 ac_cv_c_bigendian=no 24446else case e in #( 24447 e) ac_cv_c_bigendian=yes ;; 24448esac 24449fi 24450rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24451 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 24452esac 24453fi 24454 24455 fi ;; 24456esac 24457fi 24458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 24459printf "%s\n" "$ac_cv_c_bigendian" >&6; } 24460 case $ac_cv_c_bigendian in #( 24461 yes) 24462 24463printf "%s\n" "#define X_BYTE_ORDER X_BIG_ENDIAN" >>confdefs.h 24464;; #( 24465 no) 24466 24467printf "%s\n" "#define X_BYTE_ORDER X_LITTLE_ENDIAN" >>confdefs.h 24468 ;; #( 24469 universal) 24470 24471printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 24472 24473 ;; #( 24474 *) 24475 as_fn_error $? "unknown endianness 24476 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 24477 esac 24478 24479 24480# The cast to long int works around a bug in the HP C Compiler 24481# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24482# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. 24483# This bug is HP SR number 8606223364. 24484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 24485printf %s "checking size of unsigned long... " >&6; } 24486if test ${ac_cv_sizeof_unsigned_long+y} 24487then : 24488 printf %s "(cached) " >&6 24489else case e in #( 24490 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default" 24491then : 24492 24493else case e in #( 24494 e) if test "$ac_cv_type_unsigned_long" = yes; then 24495 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 24496printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 24497as_fn_error 77 "cannot compute sizeof (unsigned long) 24498See 'config.log' for more details" "$LINENO" 5; } 24499 else 24500 ac_cv_sizeof_unsigned_long=0 24501 fi ;; 24502esac 24503fi 24504 ;; 24505esac 24506fi 24507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 24508printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; } 24509 24510 24511 24512printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h 24513 24514 24515if test "$ac_cv_sizeof_unsigned_long" = 8; then 24516 24517printf "%s\n" "#define _XSERVER64 1" >>confdefs.h 24518 24519fi 24520 24521 24522 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 24523" 24524if test "x$ac_cv_type_pid_t" = xyes 24525then : 24526 24527else case e in #( 24528 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24529/* end confdefs.h. */ 24530 24531 #if defined _WIN64 && !defined __CYGWIN__ 24532 LLP64 24533 #endif 24534 24535int 24536main (void) 24537{ 24538 24539 ; 24540 return 0; 24541} 24542 24543_ACEOF 24544if ac_fn_c_try_compile "$LINENO" 24545then : 24546 ac_pid_type='int' 24547else case e in #( 24548 e) ac_pid_type='__int64' ;; 24549esac 24550fi 24551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24552 24553printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 24554 24555 ;; 24556esac 24557fi 24558 24559 24560 24561ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 24562if test "x$ac_cv_func_dlopen" = xyes 24563then : 24564 24565else case e in #( 24566 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 24567printf %s "checking for dlopen in -ldl... " >&6; } 24568if test ${ac_cv_lib_dl_dlopen+y} 24569then : 24570 printf %s "(cached) " >&6 24571else case e in #( 24572 e) ac_check_lib_save_LIBS=$LIBS 24573LIBS="-ldl $LIBS" 24574cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24575/* end confdefs.h. */ 24576 24577/* Override any GCC internal prototype to avoid an error. 24578 Use char because int might match the return type of a GCC 24579 builtin and then its argument prototype would still apply. 24580 The 'extern "C"' is for builds by C++ compilers; 24581 although this is not generally supported in C code supporting it here 24582 has little cost and some practical benefit (sr 110532). */ 24583#ifdef __cplusplus 24584extern "C" 24585#endif 24586char dlopen (void); 24587int 24588main (void) 24589{ 24590return dlopen (); 24591 ; 24592 return 0; 24593} 24594_ACEOF 24595if ac_fn_c_try_link "$LINENO" 24596then : 24597 ac_cv_lib_dl_dlopen=yes 24598else case e in #( 24599 e) ac_cv_lib_dl_dlopen=no ;; 24600esac 24601fi 24602rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24603 conftest$ac_exeext conftest.$ac_ext 24604LIBS=$ac_check_lib_save_LIBS ;; 24605esac 24606fi 24607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 24608printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 24609if test "x$ac_cv_lib_dl_dlopen" = xyes 24610then : 24611 DLOPEN_LIBS="-ldl" 24612fi 24613 ;; 24614esac 24615fi 24616 24617 24618 24619ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace" 24620if test "x$ac_cv_func_backtrace" = xyes 24621then : 24622 printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h 24623 24624fi 24625ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" 24626if test "x$ac_cv_func_geteuid" = xyes 24627then : 24628 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h 24629 24630fi 24631ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid" 24632if test "x$ac_cv_func_getuid" = xyes 24633then : 24634 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h 24635 24636fi 24637ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 24638if test "x$ac_cv_func_issetugid" = xyes 24639then : 24640 printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h 24641 24642fi 24643ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid" 24644if test "x$ac_cv_func_getresuid" = xyes 24645then : 24646 printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h 24647 24648fi 24649ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize" 24650if test "x$ac_cv_func_getdtablesize" = xyes 24651then : 24652 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h 24653 24654fi 24655ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 24656if test "x$ac_cv_func_getifaddrs" = xyes 24657then : 24658 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h 24659 24660fi 24661ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid" 24662if test "x$ac_cv_func_getpeereid" = xyes 24663then : 24664 printf "%s\n" "#define HAVE_GETPEEREID 1" >>confdefs.h 24665 24666fi 24667ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred" 24668if test "x$ac_cv_func_getpeerucred" = xyes 24669then : 24670 printf "%s\n" "#define HAVE_GETPEERUCRED 1" >>confdefs.h 24671 24672fi 24673ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname" 24674if test "x$ac_cv_func_getprogname" = xyes 24675then : 24676 printf "%s\n" "#define HAVE_GETPROGNAME 1" >>confdefs.h 24677 24678fi 24679ac_fn_c_check_func "$LINENO" "getzoneid" "ac_cv_func_getzoneid" 24680if test "x$ac_cv_func_getzoneid" = xyes 24681then : 24682 printf "%s\n" "#define HAVE_GETZONEID 1" >>confdefs.h 24683 24684fi 24685ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 24686if test "x$ac_cv_func_mmap" = xyes 24687then : 24688 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 24689 24690fi 24691ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate" 24692if test "x$ac_cv_func_posix_fallocate" = xyes 24693then : 24694 printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h 24695 24696fi 24697ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" 24698if test "x$ac_cv_func_seteuid" = xyes 24699then : 24700 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h 24701 24702fi 24703ac_fn_c_check_func "$LINENO" "shmctl64" "ac_cv_func_shmctl64" 24704if test "x$ac_cv_func_shmctl64" = xyes 24705then : 24706 printf "%s\n" "#define HAVE_SHMCTL64 1" >>confdefs.h 24707 24708fi 24709ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 24710if test "x$ac_cv_func_strncasecmp" = xyes 24711then : 24712 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h 24713 24714fi 24715ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 24716if test "x$ac_cv_func_vasprintf" = xyes 24717then : 24718 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h 24719 24720fi 24721ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 24722if test "x$ac_cv_func_vsnprintf" = xyes 24723then : 24724 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h 24725 24726fi 24727ac_fn_c_check_func "$LINENO" "walkcontext" "ac_cv_func_walkcontext" 24728if test "x$ac_cv_func_walkcontext" = xyes 24729then : 24730 printf "%s\n" "#define HAVE_WALKCONTEXT 1" >>confdefs.h 24731 24732fi 24733ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer" 24734if test "x$ac_cv_func_setitimer" = xyes 24735then : 24736 printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h 24737 24738fi 24739ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 24740if test "x$ac_cv_func_poll" = xyes 24741then : 24742 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 24743 24744fi 24745ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1" 24746if test "x$ac_cv_func_epoll_create1" = xyes 24747then : 24748 printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h 24749 24750fi 24751ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp" 24752if test "x$ac_cv_func_mkostemp" = xyes 24753then : 24754 printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h 24755 24756fi 24757ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create" 24758if test "x$ac_cv_func_memfd_create" = xyes 24759then : 24760 printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h 24761 24762fi 24763ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" 24764if test "x$ac_cv_func_sigprocmask" = xyes 24765then : 24766 printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h 24767 24768fi 24769ac_fn_c_check_func "$LINENO" "isastream" "ac_cv_func_isastream" 24770if test "x$ac_cv_func_isastream" = xyes 24771then : 24772 printf "%s\n" "#define HAVE_ISASTREAM 1" >>confdefs.h 24773 24774fi 24775 24776 24777ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 24778if test "x$ac_cv_func_reallocarray" = xyes 24779then : 24780 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 24781 24782else case e in #( 24783 e) case " $LIBOBJS " in 24784 *" reallocarray.$ac_objext "* ) ;; 24785 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 24786 ;; 24787esac 24788 ;; 24789esac 24790fi 24791ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 24792if test "x$ac_cv_func_strcasecmp" = xyes 24793then : 24794 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 24795 24796else case e in #( 24797 e) case " $LIBOBJS " in 24798 *" strcasecmp.$ac_objext "* ) ;; 24799 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 24800 ;; 24801esac 24802 ;; 24803esac 24804fi 24805ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 24806if test "x$ac_cv_func_strcasestr" = xyes 24807then : 24808 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h 24809 24810else case e in #( 24811 e) case " $LIBOBJS " in 24812 *" strcasestr.$ac_objext "* ) ;; 24813 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" 24814 ;; 24815esac 24816 ;; 24817esac 24818fi 24819ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 24820if test "x$ac_cv_func_strlcat" = xyes 24821then : 24822 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 24823 24824else case e in #( 24825 e) case " $LIBOBJS " in 24826 *" strlcat.$ac_objext "* ) ;; 24827 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 24828 ;; 24829esac 24830 ;; 24831esac 24832fi 24833ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 24834if test "x$ac_cv_func_strlcpy" = xyes 24835then : 24836 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 24837 24838else case e in #( 24839 e) case " $LIBOBJS " in 24840 *" strlcpy.$ac_objext "* ) ;; 24841 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 24842 ;; 24843esac 24844 ;; 24845esac 24846fi 24847ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 24848if test "x$ac_cv_func_strndup" = xyes 24849then : 24850 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h 24851 24852else case e in #( 24853 e) case " $LIBOBJS " in 24854 *" strndup.$ac_objext "* ) ;; 24855 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" 24856 ;; 24857esac 24858 ;; 24859esac 24860fi 24861ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp" 24862if test "x$ac_cv_func_timingsafe_memcmp" = xyes 24863then : 24864 printf "%s\n" "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h 24865 24866else case e in #( 24867 e) case " $LIBOBJS " in 24868 *" timingsafe_memcmp.$ac_objext "* ) ;; 24869 *) LIBOBJS="$LIBOBJS timingsafe_memcmp.$ac_objext" 24870 ;; 24871esac 24872 ;; 24873esac 24874fi 24875 24876 if test "x$ac_cv_func_poll" = "xyes"; then 24877 POLL_TRUE= 24878 POLL_FALSE='#' 24879else 24880 POLL_TRUE='#' 24881 POLL_FALSE= 24882fi 24883 24884 24885# Checks for non-standard functions and fallback to libbsd if we can 24886# We only check for arc4random_buf, because if we have that, we don't 24887# need/use getentropy. 24888cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24889/* end confdefs.h. */ 24890 24891/* Override any GCC internal prototype to avoid an error. 24892 Use char because int might match the return type of a GCC 24893 builtin and then its argument prototype would still apply. 24894 The 'extern "C"' is for builds by C++ compilers; 24895 although this is not generally supported in C code supporting it here 24896 has little cost and some practical benefit (sr 110532). */ 24897#ifdef __cplusplus 24898extern "C" 24899#endif 24900char arc4random_buf (void); 24901int 24902main (void) 24903{ 24904return arc4random_buf (); 24905 ; 24906 return 0; 24907} 24908_ACEOF 24909if ac_fn_c_try_link "$LINENO" 24910then : 24911 TRY_LIBBSD="no" 24912else case e in #( 24913 e) TRY_LIBBSD="yes" ;; 24914esac 24915fi 24916rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24917 conftest$ac_exeext conftest.$ac_ext 24918if test "x$TRY_LIBBSD" = "xyes" 24919then : 24920 24921pkg_failed=no 24922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbsd-overlay" >&5 24923printf %s "checking for libbsd-overlay... " >&6; } 24924 24925if test -n "$LIBBSD_CFLAGS"; then 24926 pkg_cv_LIBBSD_CFLAGS="$LIBBSD_CFLAGS" 24927 elif test -n "$PKG_CONFIG"; then 24928 if test -n "$PKG_CONFIG" && \ 24929 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 24930 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 24931 ac_status=$? 24932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24933 test $ac_status = 0; }; then 24934 pkg_cv_LIBBSD_CFLAGS=`$PKG_CONFIG --cflags "libbsd-overlay" 2>/dev/null` 24935 test "x$?" != "x0" && pkg_failed=yes 24936else 24937 pkg_failed=yes 24938fi 24939 else 24940 pkg_failed=untried 24941fi 24942if test -n "$LIBBSD_LIBS"; then 24943 pkg_cv_LIBBSD_LIBS="$LIBBSD_LIBS" 24944 elif test -n "$PKG_CONFIG"; then 24945 if test -n "$PKG_CONFIG" && \ 24946 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 24947 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 24948 ac_status=$? 24949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24950 test $ac_status = 0; }; then 24951 pkg_cv_LIBBSD_LIBS=`$PKG_CONFIG --libs "libbsd-overlay" 2>/dev/null` 24952 test "x$?" != "x0" && pkg_failed=yes 24953else 24954 pkg_failed=yes 24955fi 24956 else 24957 pkg_failed=untried 24958fi 24959 24960 24961 24962if test $pkg_failed = yes; then 24963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24964printf "%s\n" "no" >&6; } 24965 24966if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24967 _pkg_short_errors_supported=yes 24968else 24969 _pkg_short_errors_supported=no 24970fi 24971 if test $_pkg_short_errors_supported = yes; then 24972 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd-overlay" 2>&1` 24973 else 24974 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd-overlay" 2>&1` 24975 fi 24976 # Put the nasty error message in config.log where it belongs 24977 echo "$LIBBSD_PKG_ERRORS" >&5 24978 24979 : 24980elif test $pkg_failed = untried; then 24981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24982printf "%s\n" "no" >&6; } 24983 : 24984else 24985 LIBBSD_CFLAGS=$pkg_cv_LIBBSD_CFLAGS 24986 LIBBSD_LIBS=$pkg_cv_LIBBSD_LIBS 24987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24988printf "%s\n" "yes" >&6; } 24989 24990 CFLAGS="$CFLAGS $LIBBSD_CFLAGS" 24991 LIBS="$LIBS $LIBBSD_LIBS" 24992 24993fi 24994fi 24995 24996ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 24997" "$ac_c_undeclared_builtin_options" "CFLAGS" 24998if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes 24999then : 25000 ac_have_decl=1 25001else case e in #( 25002 e) ac_have_decl=0 ;; 25003esac 25004fi 25005printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h 25006 25007 25008 25009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 25010printf %s "checking for egrep -e... " >&6; } 25011if test ${ac_cv_path_EGREP_TRADITIONAL+y} 25012then : 25013 printf %s "(cached) " >&6 25014else case e in #( 25015 e) if test -z "$EGREP_TRADITIONAL"; then 25016 ac_path_EGREP_TRADITIONAL_found=false 25017 # Loop through the user's path and test for each of PROGNAME-LIST 25018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25019for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 25020do 25021 IFS=$as_save_IFS 25022 case $as_dir in #((( 25023 '') as_dir=./ ;; 25024 */) ;; 25025 *) as_dir=$as_dir/ ;; 25026 esac 25027 for ac_prog in grep ggrep 25028 do 25029 for ac_exec_ext in '' $ac_executable_extensions; do 25030 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" 25031 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue 25032# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. 25033 # Check for GNU $ac_path_EGREP_TRADITIONAL 25034case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( 25035*GNU*) 25036 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; 25037#( 25038*) 25039 ac_count=0 25040 printf %s 0123456789 >"conftest.in" 25041 while : 25042 do 25043 cat "conftest.in" "conftest.in" >"conftest.tmp" 25044 mv "conftest.tmp" "conftest.in" 25045 cp "conftest.in" "conftest.nl" 25046 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" 25047 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 25048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 25049 as_fn_arith $ac_count + 1 && ac_count=$as_val 25050 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then 25051 # Best one so far, save it but keep looking for a better one 25052 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" 25053 ac_path_EGREP_TRADITIONAL_max=$ac_count 25054 fi 25055 # 10*(2^10) chars as input seems more than enough 25056 test $ac_count -gt 10 && break 25057 done 25058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 25059esac 25060 25061 $ac_path_EGREP_TRADITIONAL_found && break 3 25062 done 25063 done 25064 done 25065IFS=$as_save_IFS 25066 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then 25067 : 25068 fi 25069else 25070 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL 25071fi 25072 25073 if test "$ac_cv_path_EGREP_TRADITIONAL" 25074then : 25075 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" 25076else case e in #( 25077 e) if test -z "$EGREP_TRADITIONAL"; then 25078 ac_path_EGREP_TRADITIONAL_found=false 25079 # Loop through the user's path and test for each of PROGNAME-LIST 25080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25081for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 25082do 25083 IFS=$as_save_IFS 25084 case $as_dir in #((( 25085 '') as_dir=./ ;; 25086 */) ;; 25087 *) as_dir=$as_dir/ ;; 25088 esac 25089 for ac_prog in egrep 25090 do 25091 for ac_exec_ext in '' $ac_executable_extensions; do 25092 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" 25093 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue 25094# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. 25095 # Check for GNU $ac_path_EGREP_TRADITIONAL 25096case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( 25097*GNU*) 25098 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; 25099#( 25100*) 25101 ac_count=0 25102 printf %s 0123456789 >"conftest.in" 25103 while : 25104 do 25105 cat "conftest.in" "conftest.in" >"conftest.tmp" 25106 mv "conftest.tmp" "conftest.in" 25107 cp "conftest.in" "conftest.nl" 25108 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" 25109 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 25110 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 25111 as_fn_arith $ac_count + 1 && ac_count=$as_val 25112 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then 25113 # Best one so far, save it but keep looking for a better one 25114 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" 25115 ac_path_EGREP_TRADITIONAL_max=$ac_count 25116 fi 25117 # 10*(2^10) chars as input seems more than enough 25118 test $ac_count -gt 10 && break 25119 done 25120 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 25121esac 25122 25123 $ac_path_EGREP_TRADITIONAL_found && break 3 25124 done 25125 done 25126 done 25127IFS=$as_save_IFS 25128 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then 25129 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 25130 fi 25131else 25132 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL 25133fi 25134 ;; 25135esac 25136fi ;; 25137esac 25138fi 25139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 25140printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } 25141 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL 25142 25143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SO_PEERCRED in sys/socket.h" >&5 25144printf %s "checking for SO_PEERCRED in sys/socket.h... " >&6; } 25145if test ${xorg_cv_sys_have_so_peercred+y} 25146then : 25147 printf %s "(cached) " >&6 25148else case e in #( 25149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25150/* end confdefs.h. */ 25151 25152#include <sys/types.h> 25153#include <sys/socket.h> 25154#ifdef SO_PEERCRED 25155yes_have_so_peercred 25156#endif 25157 25158_ACEOF 25159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25160 $EGREP_TRADITIONAL "yes_have_so_peercred" >/dev/null 2>&1 25161then : 25162 xorg_cv_sys_have_so_peercred=yes 25163else case e in #( 25164 e) xorg_cv_sys_have_so_peercred=no ;; 25165esac 25166fi 25167rm -rf conftest* 25168 ;; 25169esac 25170fi 25171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_sys_have_so_peercred" >&5 25172printf "%s\n" "$xorg_cv_sys_have_so_peercred" >&6; } 25173 25174if test "x$ac_cv_func_getpeereid" = xno && test "x$ac_cv_func_getpeerucred" = xno && test "x$xorg_cv_sys_have_so_peercred" = xno ; then 25175 25176printf "%s\n" "#define NO_LOCAL_CLIENT_CRED 1" >>confdefs.h 25177 25178fi 25179 25180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 25181printf %s "checking for sqrt in -lm... " >&6; } 25182if test ${ac_cv_lib_m_sqrt+y} 25183then : 25184 printf %s "(cached) " >&6 25185else case e in #( 25186 e) ac_check_lib_save_LIBS=$LIBS 25187LIBS="-lm $LIBS" 25188cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25189/* end confdefs.h. */ 25190 25191/* Override any GCC internal prototype to avoid an error. 25192 Use char because int might match the return type of a GCC 25193 builtin and then its argument prototype would still apply. 25194 The 'extern "C"' is for builds by C++ compilers; 25195 although this is not generally supported in C code supporting it here 25196 has little cost and some practical benefit (sr 110532). */ 25197#ifdef __cplusplus 25198extern "C" 25199#endif 25200char sqrt (void); 25201int 25202main (void) 25203{ 25204return sqrt (); 25205 ; 25206 return 0; 25207} 25208_ACEOF 25209if ac_fn_c_try_link "$LINENO" 25210then : 25211 ac_cv_lib_m_sqrt=yes 25212else case e in #( 25213 e) ac_cv_lib_m_sqrt=no ;; 25214esac 25215fi 25216rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25217 conftest$ac_exeext conftest.$ac_ext 25218LIBS=$ac_check_lib_save_LIBS ;; 25219esac 25220fi 25221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 25222printf "%s\n" "$ac_cv_lib_m_sqrt" >&6; } 25223if test "x$ac_cv_lib_m_sqrt" = xyes 25224then : 25225 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h 25226 25227 LIBS="-lm $LIBS" 25228 25229fi 25230 25231ac_fn_c_check_func "$LINENO" "cbrt" "ac_cv_func_cbrt" 25232if test "x$ac_cv_func_cbrt" = xyes 25233then : 25234 printf "%s\n" "#define HAVE_CBRT 1" >>confdefs.h 25235 25236fi 25237 25238 25239# Check whether --enable-agp was given. 25240if test ${enable_agp+y} 25241then : 25242 enableval=$enable_agp; AGP=$enableval 25243else case e in #( 25244 e) AGP=auto ;; 25245esac 25246fi 25247 25248if test "x$AGP" = "xauto" ; then 25249 for ac_header in linux/agpgart.h sys/agpio.h sys/agpgart.h 25250do : 25251 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` 25252ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25253if eval test \"x\$"$as_ac_Header"\" = x"yes" 25254then : 25255 cat >>confdefs.h <<_ACEOF 25256#define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 25257_ACEOF 25258 AGP=yes 25259fi 25260 25261done 25262fi 25263 if test "x$AGP" = xyes; then 25264 AGP_TRUE= 25265 AGP_FALSE='#' 25266else 25267 AGP_TRUE='#' 25268 AGP_FALSE= 25269fi 25270 25271 25272 for ac_header in linux/fb.h 25273do : 25274 ac_fn_c_check_header_compile "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default" 25275if test "x$ac_cv_header_linux_fb_h" = xyes 25276then : 25277 printf "%s\n" "#define HAVE_LINUX_FB_H 1" >>confdefs.h 25278 FBDEV=yes 25279fi 25280 25281done 25282 if test "x$FBDEV" = xyes; then 25283 FBDEVHW_TRUE= 25284 FBDEVHW_FALSE='#' 25285else 25286 FBDEVHW_TRUE='#' 25287 FBDEVHW_FALSE= 25288fi 25289 25290 25291 for ac_header in sys/linker.h 25292do : 25293 ac_fn_c_check_header_compile "$LINENO" "sys/linker.h" "ac_cv_header_sys_linker_h" "#include <sys/param.h> 25294" 25295if test "x$ac_cv_header_sys_linker_h" = xyes 25296then : 25297 printf "%s\n" "#define HAVE_SYS_LINKER_H 1" >>confdefs.h 25298 ac_cv_sys_linker_h=yes 25299else case e in #( 25300 e) ac_cv_sys_linker_h=no ;; 25301esac 25302fi 25303 25304done 25305 if test "x$ac_cv_sys_linker_h" = xyes; then 25306 FREEBSD_KLDLOAD_TRUE= 25307 FREEBSD_KLDLOAD_FALSE='#' 25308else 25309 FREEBSD_KLDLOAD_TRUE='#' 25310 FREEBSD_KLDLOAD_FALSE= 25311fi 25312 25313 25314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSV IPC" >&5 25315printf %s "checking for SYSV IPC... " >&6; } 25316if test ${ac_cv_sysv_ipc+y} 25317then : 25318 printf %s "(cached) " >&6 25319else case e in #( 25320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25321/* end confdefs.h. */ 25322 25323#include <sys/types.h> 25324#include <sys/ipc.h> 25325#include <sys/shm.h> 25326#include <sys/stat.h> 25327 25328int 25329main (void) 25330{ 25331 25332{ 25333 int id; 25334 id = shmget(IPC_PRIVATE, 512, S_IRUSR | S_IWUSR); 25335 if (id < 0) return -1; 25336 return shmctl(id, IPC_RMID, 0); 25337} 25338 ; 25339 return 0; 25340} 25341_ACEOF 25342if ac_fn_c_try_link "$LINENO" 25343then : 25344 ac_cv_sysv_ipc=yes 25345else case e in #( 25346 e) ac_cv_sysv_ipc=no ;; 25347esac 25348fi 25349rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25350 conftest$ac_exeext conftest.$ac_ext ;; 25351esac 25352fi 25353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_ipc" >&5 25354printf "%s\n" "$ac_cv_sysv_ipc" >&6; } 25355if test "x$ac_cv_sysv_ipc" = xyes; then 25356 25357printf "%s\n" "#define HAVE_SYSV_IPC 1" >>confdefs.h 25358 25359fi 25360 25361if test -c /dev/xf86 ; then 25362 25363printf "%s\n" "#define HAS_APERTURE_DRV 1" >>confdefs.h 25364 25365fi 25366 25367ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" 25368if test "x$ac_cv_header_execinfo_h" = xyes 25369then : 25370 25371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lc" >&5 25372printf %s "checking for backtrace in -lc... " >&6; } 25373if test ${ac_cv_lib_c_backtrace+y} 25374then : 25375 printf %s "(cached) " >&6 25376else case e in #( 25377 e) ac_check_lib_save_LIBS=$LIBS 25378LIBS="-lc $LIBS" 25379cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25380/* end confdefs.h. */ 25381 25382/* Override any GCC internal prototype to avoid an error. 25383 Use char because int might match the return type of a GCC 25384 builtin and then its argument prototype would still apply. 25385 The 'extern "C"' is for builds by C++ compilers; 25386 although this is not generally supported in C code supporting it here 25387 has little cost and some practical benefit (sr 110532). */ 25388#ifdef __cplusplus 25389extern "C" 25390#endif 25391char backtrace (void); 25392int 25393main (void) 25394{ 25395return backtrace (); 25396 ; 25397 return 0; 25398} 25399_ACEOF 25400if ac_fn_c_try_link "$LINENO" 25401then : 25402 ac_cv_lib_c_backtrace=yes 25403else case e in #( 25404 e) ac_cv_lib_c_backtrace=no ;; 25405esac 25406fi 25407rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25408 conftest$ac_exeext conftest.$ac_ext 25409LIBS=$ac_check_lib_save_LIBS ;; 25410esac 25411fi 25412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_backtrace" >&5 25413printf "%s\n" "$ac_cv_lib_c_backtrace" >&6; } 25414if test "x$ac_cv_lib_c_backtrace" = xyes 25415then : 25416 25417 25418printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h 25419 25420 25421printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h 25422 25423 25424fi 25425 25426 25427fi 25428 25429 25430DEFAULT_INT10="x86emu" 25431 25432 25433case $host_cpu in 25434 alpha*) 25435 ALPHA_VIDEO=yes 25436 case $host_os in 25437 *freebsd*) SYS_LIBS=-lio ;; 25438 *netbsd*) 25439printf "%s\n" "#define USE_ALPHA_PIO 1" >>confdefs.h 25440 ;; 25441 esac 25442 GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee" 25443 ;; 25444 arm*) 25445 ARM_VIDEO=yes 25446 DEFAULT_INT10="stub" 25447 ;; 25448 i*86) 25449 I386_VIDEO=yes 25450 case $host_os in 25451 *freebsd*) printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h 25452 ;; 25453 *dragonfly*) printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h 25454 ;; 25455 *netbsd*) printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h 25456 25457 SYS_LIBS=-li386 25458 ;; 25459 *openbsd*) printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h 25460 25461 SYS_LIBS=-li386 25462 ;; 25463 esac 25464 ;; 25465 powerpc*) 25466 PPC_VIDEO=yes 25467 case $host_os in 25468 *freebsd*) DEFAULT_INT10=stub ;; 25469 esac 25470 ;; 25471 sparc*) 25472 SPARC64_VIDEO=yes 25473 BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c" 25474 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 25475 ;; 25476 x86_64*|amd64*) 25477 I386_VIDEO=yes 25478 case $host_os in 25479 *freebsd*) 25480printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h 25481 ;; 25482 *dragonfly*) 25483printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h 25484 ;; 25485 *netbsd*) 25486printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h 25487 25488 SYS_LIBS=-lx86_64 25489 ;; 25490 *openbsd*) 25491printf "%s\n" "#define USE_AMD64_IOPL 1" >>confdefs.h 25492 25493 SYS_LIBS=-lamd64 25494 ;; 25495 esac 25496 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 25497 ;; 25498 ia64*) 25499 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 25500 ;; 25501 s390*) 25502 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 25503 ;; 25504esac 25505 25506 25507 if test "x$ALPHA_VIDEO" = xyes; then 25508 ALPHA_VIDEO_TRUE= 25509 ALPHA_VIDEO_FALSE='#' 25510else 25511 ALPHA_VIDEO_TRUE='#' 25512 ALPHA_VIDEO_FALSE= 25513fi 25514 25515 if test "x$ARM_VIDEO" = xyes; then 25516 ARM_VIDEO_TRUE= 25517 ARM_VIDEO_FALSE='#' 25518else 25519 ARM_VIDEO_TRUE='#' 25520 ARM_VIDEO_FALSE= 25521fi 25522 25523 if test "x$I386_VIDEO" = xyes; then 25524 I386_VIDEO_TRUE= 25525 I386_VIDEO_FALSE='#' 25526else 25527 I386_VIDEO_TRUE='#' 25528 I386_VIDEO_FALSE= 25529fi 25530 25531 if test "x$PPC_VIDEO" = xyes; then 25532 PPC_VIDEO_TRUE= 25533 PPC_VIDEO_FALSE='#' 25534else 25535 PPC_VIDEO_TRUE='#' 25536 PPC_VIDEO_FALSE= 25537fi 25538 25539 if test "x$SPARC64_VIDEO" = xyes; then 25540 SPARC64_VIDEO_TRUE= 25541 SPARC64_VIDEO_FALSE='#' 25542else 25543 SPARC64_VIDEO_TRUE='#' 25544 SPARC64_VIDEO_FALSE= 25545fi 25546 25547 25548DRI=no 25549case $host_os in 25550 *freebsd* | *dragonfly*) 25551 case $host_os in 25552 kfreebsd*-gnu) ;; 25553 *) 25554printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h 25555 ;; 25556 esac 25557 25558printf "%s\n" "#define PCCONS_SUPPORT 1" >>confdefs.h 25559 25560 25561printf "%s\n" "#define PCVT_SUPPORT 1" >>confdefs.h 25562 25563 25564printf "%s\n" "#define SYSCONS_SUPPORT 1" >>confdefs.h 25565 25566 DRI=yes 25567 ;; 25568 *netbsd*) 25569 25570printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h 25571 25572 25573printf "%s\n" "#define PCCONS_SUPPORT 1" >>confdefs.h 25574 25575 25576printf "%s\n" "#define PCVT_SUPPORT 1" >>confdefs.h 25577 25578 25579printf "%s\n" "#define WSCONS_SUPPORT 1" >>confdefs.h 25580 25581 DRI=yes 25582 ;; 25583 *openbsd*) 25584 25585printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h 25586 25587 25588printf "%s\n" "#define PCVT_SUPPORT 1" >>confdefs.h 25589 25590 25591printf "%s\n" "#define WSCONS_SUPPORT 1" >>confdefs.h 25592 25593 ;; 25594 *linux*) 25595 DRI=yes 25596 ;; 25597 *solaris*) 25598 DRI=yes 25599 ;; 25600 darwin*) 25601 25602printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h 25603 25604 ;; 25605 cygwin*|mingw*) 25606 CFLAGS="$CFLAGS -DFD_SETSIZE=512" 25607 ;; 25608esac 25609 25610PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1` 25611 25612VENDOR_RELEASE="((10000000) + (($PVMAJOR) * 100000) + (($PVM) * 1000) + $PVP)" 25613VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}" 25614 25615VENDOR_NAME="The X.Org Foundation" 25616VENDOR_NAME_SHORT="X.Org" 25617VENDOR_WEB="http://wiki.x.org" 25618 25619# Check whether --enable-werror was given. 25620if test ${enable_werror+y} 25621then : 25622 enableval=$enable_werror; as_fn_error $? "--enable-werror has been replaced by --enable-strict-compilation" "$LINENO" 5 25623fi 25624 25625 25626# Check whether --enable-debug was given. 25627if test ${enable_debug+y} 25628then : 25629 enableval=$enable_debug; DEBUGGING=$enableval 25630else case e in #( 25631 e) DEBUGGING=no ;; 25632esac 25633fi 25634 25635 25636# Check whether --with-int10 was given. 25637if test ${with_int10+y} 25638then : 25639 withval=$with_int10; INT10="$withval" 25640else case e in #( 25641 e) INT10="$DEFAULT_INT10" ;; 25642esac 25643fi 25644 25645 25646# Check whether --with-vendor-name was given. 25647if test ${with_vendor_name+y} 25648then : 25649 withval=$with_vendor_name; VENDOR_NAME="$withval" 25650fi 25651 25652 25653# Check whether --with-vendor-name-short was given. 25654if test ${with_vendor_name_short+y} 25655then : 25656 withval=$with_vendor_name_short; VENDOR_NAME_SHORT="$withval" 25657fi 25658 25659 25660# Check whether --with-vendor-web was given. 25661if test ${with_vendor_web+y} 25662then : 25663 withval=$with_vendor_web; VENDOR_WEB="$withval" 25664fi 25665 25666 25667# Check whether --with-module-dir was given. 25668if test ${with_module_dir+y} 25669then : 25670 withval=$with_module_dir; moduledir="$withval" 25671else case e in #( 25672 e) moduledir="${libdir}/xorg/modules" ;; 25673esac 25674fi 25675 25676 25677# Check whether --with-log-dir was given. 25678if test ${with_log_dir+y} 25679then : 25680 withval=$with_log_dir; logdir="$withval" 25681else case e in #( 25682 e) logdir="$localstatedir/log" ;; 25683esac 25684fi 25685 25686 25687# Check whether --with-builder-addr was given. 25688if test ${with_builder_addr+y} 25689then : 25690 withval=$with_builder_addr; BUILDERADDR="$withval" 25691else case e in #( 25692 e) BUILDERADDR="xorg@lists.freedesktop.org" ;; 25693esac 25694fi 25695 25696 25697# Check whether --with-builderstring was given. 25698if test ${with_builderstring+y} 25699then : 25700 withval=$with_builderstring; BUILDERSTRING="$withval" 25701 25702fi 25703 25704# Check whether --enable-listen-tcp was given. 25705if test ${enable_listen_tcp+y} 25706then : 25707 enableval=$enable_listen_tcp; LISTEN_TCP=$enableval 25708else case e in #( 25709 e) LISTEN_TCP=no ;; 25710esac 25711fi 25712 25713# Check whether --enable-listen-unix was given. 25714if test ${enable_listen_unix+y} 25715then : 25716 enableval=$enable_listen_unix; LISTEN_UNIX=$enableval 25717else case e in #( 25718 e) LISTEN_UNIX=yes ;; 25719esac 25720fi 25721 25722 25723# Check whether --enable-listen-local was given. 25724if test ${enable_listen_local+y} 25725then : 25726 enableval=$enable_listen_local; LISTEN_LOCAL=$enableval 25727else case e in #( 25728 e) LISTEN_LOCAL=yes ;; 25729esac 25730fi 25731 25732 25733case $host_os in 25734 linux*) 25735 FALLBACK_INPUT_DRIVER="libinput" 25736 ;; 25737 *) 25738 FALLBACK_INPUT_DRIVER="" 25739 ;; 25740esac 25741 25742# Check whether --with-fallback-input-driver was given. 25743if test ${with_fallback_input_driver+y} 25744then : 25745 withval=$with_fallback_input_driver; FALLBACK_INPUT_DRIVER=$withval 25746fi 25747 25748if test "x$FALLBACK_INPUT_DRIVER" = "xno"; then 25749 FALLBACK_INPUT_DRIVER="" 25750fi 25751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fallback input driver" >&5 25752printf %s "checking for fallback input driver... " >&6; } 25753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FALLBACK_INPUT_DRIVER" >&5 25754printf "%s\n" "$FALLBACK_INPUT_DRIVER" >&6; } 25755 25756printf "%s\n" "#define FALLBACK_INPUT_DRIVER \"$FALLBACK_INPUT_DRIVER\"" >>confdefs.h 25757 25758 25759 25760 25761 25762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5 25763printf %s "checking for root directory for font files... " >&6; } 25764 25765# Check whether --with-fontrootdir was given. 25766if test ${with_fontrootdir+y} 25767then : 25768 withval=$with_fontrootdir; FONTROOTDIR="$withval" 25769fi 25770 25771 # if --with-fontrootdir not specified... 25772 if test "x${FONTROOTDIR}" = "x"; then 25773 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil` 25774 fi 25775 # ...and if pkg-config didn't find fontdir in fontutil.pc... 25776 if test "x${FONTROOTDIR}" = "x"; then 25777 FONTROOTDIR="${datadir}/fonts/X11" 25778 fi 25779 25780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5 25781printf "%s\n" "${FONTROOTDIR}" >&6; } 25782 25783 25784 25785 25786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5 25787printf %s "checking for directory for misc files... " >&6; } 25788 25789# Check whether --with-fontmiscdir was given. 25790if test ${with_fontmiscdir+y} 25791then : 25792 withval=$with_fontmiscdir; FONTMISCDIR="${withval}" 25793else case e in #( 25794 e) FONTMISCDIR='${FONTROOTDIR}/misc' ;; 25795esac 25796fi 25797 25798 25799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5 25800printf "%s\n" "${FONTMISCDIR}" >&6; } 25801 25802 25803 25804 25805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5 25806printf %s "checking for directory for OTF files... " >&6; } 25807 25808# Check whether --with-fontotfdir was given. 25809if test ${with_fontotfdir+y} 25810then : 25811 withval=$with_fontotfdir; FONTOTFDIR="${withval}" 25812else case e in #( 25813 e) FONTOTFDIR='${FONTROOTDIR}/OTF' ;; 25814esac 25815fi 25816 25817 25818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5 25819printf "%s\n" "${FONTOTFDIR}" >&6; } 25820 25821 25822 25823 25824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5 25825printf %s "checking for directory for TTF files... " >&6; } 25826 25827# Check whether --with-fontttfdir was given. 25828if test ${with_fontttfdir+y} 25829then : 25830 withval=$with_fontttfdir; FONTTTFDIR="${withval}" 25831else case e in #( 25832 e) FONTTTFDIR='${FONTROOTDIR}/TTF' ;; 25833esac 25834fi 25835 25836 25837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5 25838printf "%s\n" "${FONTTTFDIR}" >&6; } 25839 25840 25841 25842 25843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5 25844printf %s "checking for directory for Type1 files... " >&6; } 25845 25846# Check whether --with-fonttype1dir was given. 25847if test ${with_fonttype1dir+y} 25848then : 25849 withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}" 25850else case e in #( 25851 e) FONTTYPE1DIR='${FONTROOTDIR}/Type1' ;; 25852esac 25853fi 25854 25855 25856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5 25857printf "%s\n" "${FONTTYPE1DIR}" >&6; } 25858 25859 25860 25861 25862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5 25863printf %s "checking for directory for 75dpi files... " >&6; } 25864 25865# Check whether --with-font75dpidir was given. 25866if test ${with_font75dpidir+y} 25867then : 25868 withval=$with_font75dpidir; FONT75DPIDIR="${withval}" 25869else case e in #( 25870 e) FONT75DPIDIR='${FONTROOTDIR}/75dpi' ;; 25871esac 25872fi 25873 25874 25875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5 25876printf "%s\n" "${FONT75DPIDIR}" >&6; } 25877 25878 25879 25880 25881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5 25882printf %s "checking for directory for 100dpi files... " >&6; } 25883 25884# Check whether --with-font100dpidir was given. 25885if test ${with_font100dpidir+y} 25886then : 25887 withval=$with_font100dpidir; FONT100DPIDIR="${withval}" 25888else case e in #( 25889 e) FONT100DPIDIR='${FONTROOTDIR}/100dpi' ;; 25890esac 25891fi 25892 25893 25894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5 25895printf "%s\n" "${FONT100DPIDIR}" >&6; } 25896 25897 25898DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/" 25899case $host_os in 25900 darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;; 25901esac 25902 25903 25904# Check whether --with-default-font-path was given. 25905if test ${with_default_font_path+y} 25906then : 25907 withval=$with_default_font_path; FONTPATH="$withval" 25908else case e in #( 25909 e) FONTPATH="${DEFAULT_FONT_PATH}" ;; 25910esac 25911fi 25912 25913 25914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5 25915printf %s "checking for default font path... " >&6; } 25916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5 25917printf "%s\n" "$FONTPATH" >&6; } 25918 25919 25920# Check whether --with-xkb-path was given. 25921if test ${with_xkb_path+y} 25922then : 25923 withval=$with_xkb_path; XKBPATH="$withval" 25924else case e in #( 25925 e) XKBPATH="auto" ;; 25926esac 25927fi 25928 25929 25930# Check whether --with-xkb-output was given. 25931if test ${with_xkb_output+y} 25932then : 25933 withval=$with_xkb_output; XKBOUTPUT="$withval" 25934else case e in #( 25935 e) XKBOUTPUT="compiled" ;; 25936esac 25937fi 25938 25939 25940# Check whether --with-default-xkb-rules was given. 25941if test ${with_default_xkb_rules+y} 25942then : 25943 withval=$with_default_xkb_rules; XKB_DFLT_RULES="$withval" 25944else case e in #( 25945 e) XKB_DFLT_RULES="" ;; 25946esac 25947fi 25948 25949 25950# Check whether --with-default-xkb-model was given. 25951if test ${with_default_xkb_model+y} 25952then : 25953 withval=$with_default_xkb_model; XKB_DFLT_MODEL="$withval" 25954else case e in #( 25955 e) XKB_DFLT_MODEL="pc105" ;; 25956esac 25957fi 25958 25959 25960# Check whether --with-default-xkb-layout was given. 25961if test ${with_default_xkb_layout+y} 25962then : 25963 withval=$with_default_xkb_layout; XKB_DFLT_LAYOUT="$withval" 25964else case e in #( 25965 e) XKB_DFLT_LAYOUT="us" ;; 25966esac 25967fi 25968 25969 25970# Check whether --with-default-xkb-variant was given. 25971if test ${with_default_xkb_variant+y} 25972then : 25973 withval=$with_default_xkb_variant; XKB_DFLT_VARIANT="$withval" 25974else case e in #( 25975 e) XKB_DFLT_VARIANT="" ;; 25976esac 25977fi 25978 25979 25980# Check whether --with-default-xkb-options was given. 25981if test ${with_default_xkb_options+y} 25982then : 25983 withval=$with_default_xkb_options; XKB_DFLT_OPTIONS="$withval" 25984else case e in #( 25985 e) XKB_DFLT_OPTIONS="" ;; 25986esac 25987fi 25988 25989 25990# Check whether --with-serverconfig-path was given. 25991if test ${with_serverconfig_path+y} 25992then : 25993 withval=$with_serverconfig_path; SERVERCONFIG="$withval" 25994else case e in #( 25995 e) SERVERCONFIG="${libdir}/xorg" ;; 25996esac 25997fi 25998 25999 26000# Check whether --with-apple-applications-dir was given. 26001if test ${with_apple_applications_dir+y} 26002then : 26003 withval=$with_apple_applications_dir; APPLE_APPLICATIONS_DIR="${withval}" 26004else case e in #( 26005 e) APPLE_APPLICATIONS_DIR="/Applications/Utilities" ;; 26006esac 26007fi 26008 26009 26010 26011# Check whether --with-apple-application-name was given. 26012if test ${with_apple_application_name+y} 26013then : 26014 withval=$with_apple_application_name; APPLE_APPLICATION_NAME="${withval}" 26015else case e in #( 26016 e) APPLE_APPLICATION_NAME="X11" ;; 26017esac 26018fi 26019 26020 26021 26022# Check whether --with-bundle-id-prefix was given. 26023if test ${with_bundle_id_prefix+y} 26024then : 26025 withval=$with_bundle_id_prefix; BUNDLE_ID_PREFIX="${withval}" 26026fi 26027 26028 26029 26030printf "%s\n" "#define BUNDLE_ID_PREFIX \"$BUNDLE_ID_PREFIX\"" >>confdefs.h 26031 26032 26033 26034# Check whether --with-bundle-version was given. 26035if test ${with_bundle_version+y} 26036then : 26037 withval=$with_bundle_version; BUNDLE_VERSION="${withval}" 26038else case e in #( 26039 e) BUNDLE_VERSION="21.1.14" ;; 26040esac 26041fi 26042 26043 26044 26045# Check whether --with-bundle-version-string was given. 26046if test ${with_bundle_version_string+y} 26047then : 26048 withval=$with_bundle_version_string; BUNDLE_VERSION_STRING="${withval}" 26049else case e in #( 26050 e) BUNDLE_VERSION_STRING="${PACKAGE_VERSION}" ;; 26051esac 26052fi 26053 26054 26055# Check whether --enable-sparkle was given. 26056if test ${enable_sparkle+y} 26057then : 26058 enableval=$enable_sparkle; XQUARTZ_SPARKLE="${enableval}" 26059else case e in #( 26060 e) XQUARTZ_SPARKLE="no" ;; 26061esac 26062fi 26063 26064 26065 26066# Check whether --with-sparkle-feed-url was given. 26067if test ${with_sparkle_feed_url+y} 26068then : 26069 withval=$with_sparkle_feed_url; XQUARTZ_SPARKLE_FEED_URL="${withval}" 26070else case e in #( 26071 e) XQUARTZ_SPARKLE_FEED_URL="https://www.xquartz.org/releases/sparkle/release.xml" ;; 26072esac 26073fi 26074 26075 26076# Check whether --enable-visibility was given. 26077if test ${enable_visibility+y} 26078then : 26079 enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval 26080else case e in #( 26081 e) SYMBOL_VISIBILITY=auto ;; 26082esac 26083fi 26084 26085 26086 26087# Check whether --with-khronos-spec-dir was given. 26088if test ${with_khronos_spec_dir+y} 26089then : 26090 withval=$with_khronos_spec_dir; KHRONOS_SPEC_DIR="${withval}" 26091else case e in #( 26092 e) KHRONOS_SPEC_DIR=auto ;; 26093esac 26094fi 26095 26096 26097# Check whether --enable-composite was given. 26098if test ${enable_composite+y} 26099then : 26100 enableval=$enable_composite; COMPOSITE=$enableval 26101else case e in #( 26102 e) COMPOSITE=yes ;; 26103esac 26104fi 26105 26106# Check whether --enable-mitshm was given. 26107if test ${enable_mitshm+y} 26108then : 26109 enableval=$enable_mitshm; MITSHM=$enableval 26110else case e in #( 26111 e) MITSHM=auto ;; 26112esac 26113fi 26114 26115# Check whether --enable-xres was given. 26116if test ${enable_xres+y} 26117then : 26118 enableval=$enable_xres; RES=$enableval 26119else case e in #( 26120 e) RES=yes ;; 26121esac 26122fi 26123 26124# Check whether --enable-record was given. 26125if test ${enable_record+y} 26126then : 26127 enableval=$enable_record; RECORD=$enableval 26128else case e in #( 26129 e) RECORD=yes ;; 26130esac 26131fi 26132 26133# Check whether --enable-xv was given. 26134if test ${enable_xv+y} 26135then : 26136 enableval=$enable_xv; XV=$enableval 26137else case e in #( 26138 e) XV=yes ;; 26139esac 26140fi 26141 26142# Check whether --enable-xvmc was given. 26143if test ${enable_xvmc+y} 26144then : 26145 enableval=$enable_xvmc; XVMC=$enableval 26146else case e in #( 26147 e) XVMC=yes ;; 26148esac 26149fi 26150 26151# Check whether --enable-dga was given. 26152if test ${enable_dga+y} 26153then : 26154 enableval=$enable_dga; DGA=$enableval 26155else case e in #( 26156 e) DGA=auto ;; 26157esac 26158fi 26159 26160# Check whether --enable-screensaver was given. 26161if test ${enable_screensaver+y} 26162then : 26163 enableval=$enable_screensaver; SCREENSAVER=$enableval 26164else case e in #( 26165 e) SCREENSAVER=yes ;; 26166esac 26167fi 26168 26169# Check whether --enable-xdmcp was given. 26170if test ${enable_xdmcp+y} 26171then : 26172 enableval=$enable_xdmcp; XDMCP=$enableval 26173else case e in #( 26174 e) XDMCP=auto ;; 26175esac 26176fi 26177 26178# Check whether --enable-xdm-auth-1 was given. 26179if test ${enable_xdm_auth_1+y} 26180then : 26181 enableval=$enable_xdm_auth_1; XDMAUTH=$enableval 26182else case e in #( 26183 e) XDMAUTH=auto ;; 26184esac 26185fi 26186 26187# Check whether --enable-glx was given. 26188if test ${enable_glx+y} 26189then : 26190 enableval=$enable_glx; GLX=$enableval 26191else case e in #( 26192 e) GLX=yes ;; 26193esac 26194fi 26195 26196# Check whether --enable-dri was given. 26197if test ${enable_dri+y} 26198then : 26199 enableval=$enable_dri; DRI=$enableval 26200fi 26201 26202# Check whether --enable-dri2 was given. 26203if test ${enable_dri2+y} 26204then : 26205 enableval=$enable_dri2; DRI2=$enableval 26206else case e in #( 26207 e) DRI2=auto ;; 26208esac 26209fi 26210 26211# Check whether --enable-dri3 was given. 26212if test ${enable_dri3+y} 26213then : 26214 enableval=$enable_dri3; DRI3=$enableval 26215else case e in #( 26216 e) DRI3=auto ;; 26217esac 26218fi 26219 26220# Check whether --enable-present was given. 26221if test ${enable_present+y} 26222then : 26223 enableval=$enable_present; PRESENT=$enableval 26224else case e in #( 26225 e) PRESENT=yes ;; 26226esac 26227fi 26228 26229# Check whether --enable-xinerama was given. 26230if test ${enable_xinerama+y} 26231then : 26232 enableval=$enable_xinerama; XINERAMA=$enableval 26233else case e in #( 26234 e) XINERAMA=yes ;; 26235esac 26236fi 26237 26238# Check whether --enable-xf86vidmode was given. 26239if test ${enable_xf86vidmode+y} 26240then : 26241 enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval 26242else case e in #( 26243 e) XF86VIDMODE=auto ;; 26244esac 26245fi 26246 26247# Check whether --enable-xace was given. 26248if test ${enable_xace+y} 26249then : 26250 enableval=$enable_xace; XACE=$enableval 26251else case e in #( 26252 e) XACE=yes ;; 26253esac 26254fi 26255 26256# Check whether --enable-xselinux was given. 26257if test ${enable_xselinux+y} 26258then : 26259 enableval=$enable_xselinux; XSELINUX=$enableval 26260else case e in #( 26261 e) XSELINUX=no ;; 26262esac 26263fi 26264 26265# Check whether --enable-xcsecurity was given. 26266if test ${enable_xcsecurity+y} 26267then : 26268 enableval=$enable_xcsecurity; XCSECURITY=$enableval 26269else case e in #( 26270 e) XCSECURITY=no ;; 26271esac 26272fi 26273 26274# Check whether --enable-dbe was given. 26275if test ${enable_dbe+y} 26276then : 26277 enableval=$enable_dbe; DBE=$enableval 26278else case e in #( 26279 e) DBE=yes ;; 26280esac 26281fi 26282 26283# Check whether --enable-xf86bigfont was given. 26284if test ${enable_xf86bigfont+y} 26285then : 26286 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval 26287else case e in #( 26288 e) XF86BIGFONT=no ;; 26289esac 26290fi 26291 26292# Check whether --enable-dpms was given. 26293if test ${enable_dpms+y} 26294then : 26295 enableval=$enable_dpms; DPMSExtension=$enableval 26296else case e in #( 26297 e) DPMSExtension=yes ;; 26298esac 26299fi 26300 26301# Check whether --enable-config-udev was given. 26302if test ${enable_config_udev+y} 26303then : 26304 enableval=$enable_config_udev; CONFIG_UDEV=$enableval 26305else case e in #( 26306 e) CONFIG_UDEV=auto ;; 26307esac 26308fi 26309 26310# Check whether --enable-config-udev-kms was given. 26311if test ${enable_config_udev_kms+y} 26312then : 26313 enableval=$enable_config_udev_kms; CONFIG_UDEV_KMS=$enableval 26314else case e in #( 26315 e) CONFIG_UDEV_KMS=auto ;; 26316esac 26317fi 26318 26319# Check whether --enable-config-hal was given. 26320if test ${enable_config_hal+y} 26321then : 26322 enableval=$enable_config_hal; CONFIG_HAL=$enableval 26323else case e in #( 26324 e) CONFIG_HAL=auto ;; 26325esac 26326fi 26327 26328# Check whether --enable-config-wscons was given. 26329if test ${enable_config_wscons+y} 26330then : 26331 enableval=$enable_config_wscons; CONFIG_WSCONS=$enableval 26332else case e in #( 26333 e) CONFIG_WSCONS=auto ;; 26334esac 26335fi 26336 26337# Check whether --enable-xfree86-utils was given. 26338if test ${enable_xfree86_utils+y} 26339then : 26340 enableval=$enable_xfree86_utils; XF86UTILS=$enableval 26341else case e in #( 26342 e) XF86UTILS=yes ;; 26343esac 26344fi 26345 26346# Check whether --enable-vgahw was given. 26347if test ${enable_vgahw+y} 26348then : 26349 enableval=$enable_vgahw; VGAHW=$enableval 26350else case e in #( 26351 e) VGAHW=yes ;; 26352esac 26353fi 26354 26355# Check whether --enable-int10-module was given. 26356if test ${enable_int10_module+y} 26357then : 26358 enableval=$enable_int10_module; INT10MODULE=$enableval 26359else case e in #( 26360 e) INT10MODULE=yes ;; 26361esac 26362fi 26363 26364# Check whether --enable-windowsdri was given. 26365if test ${enable_windowsdri+y} 26366then : 26367 enableval=$enable_windowsdri; WINDOWSDRI=$enableval 26368else case e in #( 26369 e) WINDOWSDRI=auto ;; 26370esac 26371fi 26372 26373# Check whether --enable-libdrm was given. 26374if test ${enable_libdrm+y} 26375then : 26376 enableval=$enable_libdrm; DRM=$enableval 26377else case e in #( 26378 e) DRM=yes ;; 26379esac 26380fi 26381 26382# Check whether --enable-clientids was given. 26383if test ${enable_clientids+y} 26384then : 26385 enableval=$enable_clientids; CLIENTIDS=$enableval 26386else case e in #( 26387 e) CLIENTIDS=yes ;; 26388esac 26389fi 26390 26391# Check whether --enable-pciaccess was given. 26392if test ${enable_pciaccess+y} 26393then : 26394 enableval=$enable_pciaccess; PCI=$enableval 26395else case e in #( 26396 e) PCI=yes ;; 26397esac 26398fi 26399 26400# Check whether --enable-linux_acpi was given. 26401if test ${enable_linux_acpi+y} 26402then : 26403 enableval=$enable_linux_acpi; enable_linux_acpi=$enableval 26404else case e in #( 26405 e) enable_linux_acpi=yes ;; 26406esac 26407fi 26408 26409# Check whether --enable-linux_apm was given. 26410if test ${enable_linux_apm+y} 26411then : 26412 enableval=$enable_linux_apm; enable_linux_apm=$enableval 26413else case e in #( 26414 e) enable_linux_apm=yes ;; 26415esac 26416fi 26417 26418# Check whether --enable-systemd-logind was given. 26419if test ${enable_systemd_logind+y} 26420then : 26421 enableval=$enable_systemd_logind; SYSTEMD_LOGIND=$enableval 26422else case e in #( 26423 e) SYSTEMD_LOGIND=auto ;; 26424esac 26425fi 26426 26427# Check whether --enable-suid-wrapper was given. 26428if test ${enable_suid_wrapper+y} 26429then : 26430 enableval=$enable_suid_wrapper; SUID_WRAPPER=$enableval 26431else case e in #( 26432 e) SUID_WRAPPER=no ;; 26433esac 26434fi 26435 26436 26437# Check whether --enable-xorg was given. 26438if test ${enable_xorg+y} 26439then : 26440 enableval=$enable_xorg; XORG=$enableval 26441else case e in #( 26442 e) XORG=auto ;; 26443esac 26444fi 26445 26446# Check whether --enable-xvfb was given. 26447if test ${enable_xvfb+y} 26448then : 26449 enableval=$enable_xvfb; XVFB=$enableval 26450else case e in #( 26451 e) XVFB=yes ;; 26452esac 26453fi 26454 26455# Check whether --enable-xnest was given. 26456if test ${enable_xnest+y} 26457then : 26458 enableval=$enable_xnest; XNEST=$enableval 26459else case e in #( 26460 e) XNEST=auto ;; 26461esac 26462fi 26463 26464# Check whether --enable-xquartz was given. 26465if test ${enable_xquartz+y} 26466then : 26467 enableval=$enable_xquartz; XQUARTZ=$enableval 26468else case e in #( 26469 e) XQUARTZ=auto ;; 26470esac 26471fi 26472 26473# Check whether --enable-standalone-xpbproxy was given. 26474if test ${enable_standalone_xpbproxy+y} 26475then : 26476 enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval 26477else case e in #( 26478 e) STANDALONE_XPBPROXY=no ;; 26479esac 26480fi 26481 26482# Check whether --enable-xwin was given. 26483if test ${enable_xwin+y} 26484then : 26485 enableval=$enable_xwin; XWIN=$enableval 26486else case e in #( 26487 e) XWIN=auto ;; 26488esac 26489fi 26490 26491# Check whether --enable-glamor was given. 26492if test ${enable_glamor+y} 26493then : 26494 enableval=$enable_glamor; GLAMOR=$enableval 26495else case e in #( 26496 e) GLAMOR=auto ;; 26497esac 26498fi 26499 26500# Check whether --enable-xf86-input-inputtest was given. 26501if test ${enable_xf86_input_inputtest+y} 26502then : 26503 enableval=$enable_xf86_input_inputtest; XORG_DRIVER_INPUT_INPUTTEST=$enableval 26504else case e in #( 26505 e) XORG_DRIVER_INPUT_INPUTTEST=yes ;; 26506esac 26507fi 26508 26509# Check whether --enable-kdrive was given. 26510if test ${enable_kdrive+y} 26511then : 26512 enableval=$enable_kdrive; KDRIVE=$enableval 26513else case e in #( 26514 e) KDRIVE=no ;; 26515esac 26516fi 26517 26518# Check whether --enable-xephyr was given. 26519if test ${enable_xephyr+y} 26520then : 26521 enableval=$enable_xephyr; XEPHYR=$enableval 26522else case e in #( 26523 e) XEPHYR=auto ;; 26524esac 26525fi 26526 26527# Check whether --enable-libunwind was given. 26528if test ${enable_libunwind+y} 26529then : 26530 enableval=$enable_libunwind; LIBUNWIND="$enableval" 26531else case e in #( 26532 e) LIBUNWIND="auto" ;; 26533esac 26534fi 26535 26536# Check whether --enable-xshmfence was given. 26537if test ${enable_xshmfence+y} 26538then : 26539 enableval=$enable_xshmfence; XSHMFENCE="$enableval" 26540else case e in #( 26541 e) XSHMFENCE="auto" ;; 26542esac 26543fi 26544 26545 26546 26547# Check whether --enable-install-setuid was given. 26548if test ${enable_install_setuid+y} 26549then : 26550 enableval=$enable_install_setuid; SETUID=$enableval 26551else case e in #( 26552 e) SETUID=auto ;; 26553esac 26554fi 26555 26556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if we can install the Xorg server as root" >&5 26557printf %s "checking to see if we can install the Xorg server as root... " >&6; } 26558if test "x$SETUID" = "xauto" ; then 26559 case $host_os in 26560 cygwin*) SETUID="no" ;; 26561 mingw*) SETUID="no" ;; 26562 darwin*) SETUID="no" ;; 26563 *) 26564 case $host_cpu in 26565 sparc) SETUID="no" ;; 26566 *) SETUID="yes" ;; 26567 esac 26568 esac 26569 if test "x$SETUID" = xyes; then 26570 touch testfile 26571 chown root testfile > /dev/null 2>&1 || SETUID="no" 26572 rm -f testfile 26573 fi 26574fi 26575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SETUID" >&5 26576printf "%s\n" "$SETUID" >&6; } 26577 if test "x$SETUID" = "xyes"; then 26578 INSTALL_SETUID_TRUE= 26579 INSTALL_SETUID_FALSE='#' 26580else 26581 INSTALL_SETUID_TRUE='#' 26582 INSTALL_SETUID_FALSE= 26583fi 26584 26585 26586 26587 26588# Transport selection macro from xtrans.m4 26589 26590 26591 case $host_os in 26592 mingw*) unixdef="no" ;; 26593 *) unixdef="yes" ;; 26594 esac 26595 # Check whether --enable-unix-transport was given. 26596if test ${enable_unix_transport+y} 26597then : 26598 enableval=$enable_unix_transport; UNIXCONN=$enableval 26599else case e in #( 26600 e) UNIXCONN=$unixdef ;; 26601esac 26602fi 26603 26604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 26605printf %s "checking if Xtrans should support UNIX socket connections... " >&6; } 26606 if test "$UNIXCONN" = "yes"; then 26607 26608printf "%s\n" "#define UNIXCONN 1" >>confdefs.h 26609 26610 fi 26611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 26612printf "%s\n" "$UNIXCONN" >&6; } 26613 # Check whether --enable-tcp-transport was given. 26614if test ${enable_tcp_transport+y} 26615then : 26616 enableval=$enable_tcp_transport; TCPCONN=$enableval 26617else case e in #( 26618 e) TCPCONN=yes ;; 26619esac 26620fi 26621 26622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 26623printf %s "checking if Xtrans should support TCP socket connections... " >&6; } 26624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 26625printf "%s\n" "$TCPCONN" >&6; } 26626 if test "$TCPCONN" = "yes"; then 26627 26628printf "%s\n" "#define TCPCONN 1" >>confdefs.h 26629 26630 26631 # SVR4 hides these in libraries other than libc 26632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 26633printf %s "checking for library containing socket... " >&6; } 26634if test ${ac_cv_search_socket+y} 26635then : 26636 printf %s "(cached) " >&6 26637else case e in #( 26638 e) ac_func_search_save_LIBS=$LIBS 26639cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26640/* end confdefs.h. */ 26641 26642/* Override any GCC internal prototype to avoid an error. 26643 Use char because int might match the return type of a GCC 26644 builtin and then its argument prototype would still apply. 26645 The 'extern "C"' is for builds by C++ compilers; 26646 although this is not generally supported in C code supporting it here 26647 has little cost and some practical benefit (sr 110532). */ 26648#ifdef __cplusplus 26649extern "C" 26650#endif 26651char socket (void); 26652int 26653main (void) 26654{ 26655return socket (); 26656 ; 26657 return 0; 26658} 26659_ACEOF 26660for ac_lib in '' socket 26661do 26662 if test -z "$ac_lib"; then 26663 ac_res="none required" 26664 else 26665 ac_res=-l$ac_lib 26666 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26667 fi 26668 if ac_fn_c_try_link "$LINENO" 26669then : 26670 ac_cv_search_socket=$ac_res 26671fi 26672rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26673 conftest$ac_exeext 26674 if test ${ac_cv_search_socket+y} 26675then : 26676 break 26677fi 26678done 26679if test ${ac_cv_search_socket+y} 26680then : 26681 26682else case e in #( 26683 e) ac_cv_search_socket=no ;; 26684esac 26685fi 26686rm conftest.$ac_ext 26687LIBS=$ac_func_search_save_LIBS ;; 26688esac 26689fi 26690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 26691printf "%s\n" "$ac_cv_search_socket" >&6; } 26692ac_res=$ac_cv_search_socket 26693if test "$ac_res" != no 26694then : 26695 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26696 26697fi 26698 26699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 26700printf %s "checking for library containing gethostbyname... " >&6; } 26701if test ${ac_cv_search_gethostbyname+y} 26702then : 26703 printf %s "(cached) " >&6 26704else case e in #( 26705 e) ac_func_search_save_LIBS=$LIBS 26706cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26707/* end confdefs.h. */ 26708 26709/* Override any GCC internal prototype to avoid an error. 26710 Use char because int might match the return type of a GCC 26711 builtin and then its argument prototype would still apply. 26712 The 'extern "C"' is for builds by C++ compilers; 26713 although this is not generally supported in C code supporting it here 26714 has little cost and some practical benefit (sr 110532). */ 26715#ifdef __cplusplus 26716extern "C" 26717#endif 26718char gethostbyname (void); 26719int 26720main (void) 26721{ 26722return gethostbyname (); 26723 ; 26724 return 0; 26725} 26726_ACEOF 26727for ac_lib in '' nsl 26728do 26729 if test -z "$ac_lib"; then 26730 ac_res="none required" 26731 else 26732 ac_res=-l$ac_lib 26733 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26734 fi 26735 if ac_fn_c_try_link "$LINENO" 26736then : 26737 ac_cv_search_gethostbyname=$ac_res 26738fi 26739rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26740 conftest$ac_exeext 26741 if test ${ac_cv_search_gethostbyname+y} 26742then : 26743 break 26744fi 26745done 26746if test ${ac_cv_search_gethostbyname+y} 26747then : 26748 26749else case e in #( 26750 e) ac_cv_search_gethostbyname=no ;; 26751esac 26752fi 26753rm conftest.$ac_ext 26754LIBS=$ac_func_search_save_LIBS ;; 26755esac 26756fi 26757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 26758printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 26759ac_res=$ac_cv_search_gethostbyname 26760if test "$ac_res" != no 26761then : 26762 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26763 26764fi 26765 26766 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 26767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 26768printf %s "checking for main in -lws2_32... " >&6; } 26769if test ${ac_cv_lib_ws2_32_main+y} 26770then : 26771 printf %s "(cached) " >&6 26772else case e in #( 26773 e) ac_check_lib_save_LIBS=$LIBS 26774LIBS="-lws2_32 $LIBS" 26775cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26776/* end confdefs.h. */ 26777 26778 26779int 26780main (void) 26781{ 26782return main (); 26783 ; 26784 return 0; 26785} 26786_ACEOF 26787if ac_fn_c_try_link "$LINENO" 26788then : 26789 ac_cv_lib_ws2_32_main=yes 26790else case e in #( 26791 e) ac_cv_lib_ws2_32_main=no ;; 26792esac 26793fi 26794rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26795 conftest$ac_exeext conftest.$ac_ext 26796LIBS=$ac_check_lib_save_LIBS ;; 26797esac 26798fi 26799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 26800printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 26801if test "x$ac_cv_lib_ws2_32_main" = xyes 26802then : 26803 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 26804 26805 LIBS="-lws2_32 $LIBS" 26806 26807fi 26808 26809 fi 26810 26811 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 26812 # Check whether --enable-ipv6 was given. 26813if test ${enable_ipv6+y} 26814then : 26815 enableval=$enable_ipv6; IPV6CONN=$enableval 26816else case e in #( 26817 e) ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 26818if test "x$ac_cv_func_getaddrinfo" = xyes 26819then : 26820 IPV6CONN=yes 26821else case e in #( 26822 e) IPV6CONN=no ;; 26823esac 26824fi 26825 ;; 26826esac 26827fi 26828 26829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 26830printf %s "checking if IPv6 support should be built... " >&6; } 26831 if test "$IPV6CONN" = "yes"; then 26832 26833printf "%s\n" "#define IPv6 1" >>confdefs.h 26834 26835 fi 26836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 26837printf "%s\n" "$IPV6CONN" >&6; } 26838 26839 # 4.3BSD-Reno added a new member to struct sockaddr_in 26840 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 26841#include <sys/types.h> 26842#include <sys/socket.h> 26843#include <netinet/in.h> 26844 26845" 26846if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 26847then : 26848 26849printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h 26850 26851fi 26852 26853 26854 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 26855 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 26856$ac_includes_default 26857#include <sys/socket.h> 26858" 26859if test "x$ac_cv_type_socklen_t" = xyes 26860then : 26861 26862printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 26863 26864 26865fi 26866 26867 26868 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 26869 # _XOPEN_SOURCE to get it (such as on Solaris) 26870 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 26871$ac_includes_default 26872#include <sys/socket.h> 26873 26874" 26875if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 26876then : 26877 26878fi 26879 26880 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 26881 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 26882 unset ac_cv_member_struct_msghdr_msg_control 26883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 26884printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 26885 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 26886#define _XOPEN_SOURCE 600 26887$ac_includes_default 26888#include <sys/socket.h> 26889 26890" 26891if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 26892then : 26893 26894printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 26895 26896 26897fi 26898 26899 fi 26900 # If that didn't work, fall back to XPG5/UNIX98 with C89 26901 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 26902 unset ac_cv_member_struct_msghdr_msg_control 26903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 26904printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 26905 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 26906#define _XOPEN_SOURCE 500 26907$ac_includes_default 26908#include <sys/socket.h> 26909 26910" 26911if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 26912then : 26913 26914printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 26915 26916 26917fi 26918 26919 fi 26920 26921 26922 26923 fi 26924 case $host_os in 26925 solaris*) localdef="yes" ;; 26926 *) localdef="no" ;; 26927 esac 26928 # Check whether --enable-local-transport was given. 26929if test ${enable_local_transport+y} 26930then : 26931 enableval=$enable_local_transport; LOCALCONN=$enableval 26932else case e in #( 26933 e) LOCALCONN=$localdef ;; 26934esac 26935fi 26936 26937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 26938printf %s "checking if Xtrans should support os-specific local connections... " >&6; } 26939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 26940printf "%s\n" "$LOCALCONN" >&6; } 26941 if test "$LOCALCONN" = "yes"; then 26942 26943printf "%s\n" "#define LOCALCONN 1" >>confdefs.h 26944 26945 fi 26946 26947 # Other functions Xtrans may need 26948 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 26949if test "x$ac_cv_func_strcasecmp" = xyes 26950then : 26951 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 26952 26953fi 26954ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 26955if test "x$ac_cv_func_strlcpy" = xyes 26956then : 26957 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 26958 26959fi 26960 26961 26962 26963 26964# Secure RPC detection macro from xtrans.m4 26965 26966 # Check whether --enable-secure-rpc was given. 26967if test ${enable_secure_rpc+y} 26968then : 26969 enableval=$enable_secure_rpc; SECURE_RPC=$enableval 26970else case e in #( 26971 e) SECURE_RPC="try" ;; 26972esac 26973fi 26974 26975 26976 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 26977 FOUND_SECURE_RPC="no" 26978 26979 for ac_func in authdes_seccreate authdes_create 26980do : 26981 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"` 26982ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26983if eval test \"x\$"$as_ac_var"\" = x"yes" 26984then : 26985 cat >>confdefs.h <<_ACEOF 26986#define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1 26987_ACEOF 26988 FOUND_SECURE_RPC="yes" 26989fi 26990 26991done 26992 if test "x$FOUND_SECURE_RPC" = "xno" ; then 26993 if test "x$SECURE_RPC" = "xyes" ; then 26994 as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5 26995 fi 26996 SECURE_RPC="no" 26997 else 26998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5 26999printf %s "checking for library containing getsecretkey... " >&6; } 27000if test ${ac_cv_search_getsecretkey+y} 27001then : 27002 printf %s "(cached) " >&6 27003else case e in #( 27004 e) ac_func_search_save_LIBS=$LIBS 27005cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27006/* end confdefs.h. */ 27007 27008/* Override any GCC internal prototype to avoid an error. 27009 Use char because int might match the return type of a GCC 27010 builtin and then its argument prototype would still apply. 27011 The 'extern "C"' is for builds by C++ compilers; 27012 although this is not generally supported in C code supporting it here 27013 has little cost and some practical benefit (sr 110532). */ 27014#ifdef __cplusplus 27015extern "C" 27016#endif 27017char getsecretkey (void); 27018int 27019main (void) 27020{ 27021return getsecretkey (); 27022 ; 27023 return 0; 27024} 27025_ACEOF 27026for ac_lib in '' rpcsvc 27027do 27028 if test -z "$ac_lib"; then 27029 ac_res="none required" 27030 else 27031 ac_res=-l$ac_lib 27032 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 27033 fi 27034 if ac_fn_c_try_link "$LINENO" 27035then : 27036 ac_cv_search_getsecretkey=$ac_res 27037fi 27038rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27039 conftest$ac_exeext 27040 if test ${ac_cv_search_getsecretkey+y} 27041then : 27042 break 27043fi 27044done 27045if test ${ac_cv_search_getsecretkey+y} 27046then : 27047 27048else case e in #( 27049 e) ac_cv_search_getsecretkey=no ;; 27050esac 27051fi 27052rm conftest.$ac_ext 27053LIBS=$ac_func_search_save_LIBS ;; 27054esac 27055fi 27056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5 27057printf "%s\n" "$ac_cv_search_getsecretkey" >&6; } 27058ac_res=$ac_cv_search_getsecretkey 27059if test "$ac_res" != no 27060then : 27061 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 27062 27063fi 27064 27065 SECURE_RPC="yes" 27066 fi 27067 fi 27068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5 27069printf %s "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; } 27070 if test "x$SECURE_RPC" = "xyes" ; then 27071 27072printf "%s\n" "#define SECURE_RPC 1" >>confdefs.h 27073 27074 fi 27075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5 27076printf "%s\n" "$SECURE_RPC" >&6; } 27077 27078 if test "x$SECURE_RPC" = xyes; then 27079 SECURE_RPC_TRUE= 27080 SECURE_RPC_FALSE='#' 27081else 27082 SECURE_RPC_TRUE='#' 27083 SECURE_RPC_FALSE= 27084fi 27085 27086 27087 if test "x$INT10" = xvm86; then 27088 INT10_VM86_TRUE= 27089 INT10_VM86_FALSE='#' 27090else 27091 INT10_VM86_TRUE='#' 27092 INT10_VM86_FALSE= 27093fi 27094 27095 if test "x$INT10" = xx86emu; then 27096 INT10_X86EMU_TRUE= 27097 INT10_X86EMU_FALSE='#' 27098else 27099 INT10_X86EMU_TRUE='#' 27100 INT10_X86EMU_FALSE= 27101fi 27102 27103 if test "x$INT10" = xstub; then 27104 INT10_STUB_TRUE= 27105 INT10_STUB_FALSE='#' 27106else 27107 INT10_STUB_TRUE='#' 27108 INT10_STUB_FALSE= 27109fi 27110 27111 27112case $host_os in 27113 cygwin* | mingw*) 27114 CONFIG_HAL=no 27115 CONFIG_UDEV=no 27116 CONFIG_UDEV_KMS=no 27117 DGA=no 27118 DRM=no 27119 DRI2=no 27120 DRI3=no 27121 INT10MODULE=no 27122 PCI=no 27123 VGAHW=no 27124 XF86UTILS=no 27125 XF86VIDMODE=no 27126 XSELINUX=no 27127 SYMBOL_VISIBILITY=no 27128 ;; 27129 darwin*) 27130 PCI=no 27131 INT10MODULE=no 27132 VGAHW=no 27133 DRM=no 27134 DRI2=no 27135 DRI3=no 27136 27137 if test x$XQUARTZ = xauto; then 27138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xquartz" >&5 27139printf %s "checking whether to build Xquartz... " >&6; } 27140if test ${xorg_cv_Carbon_framework+y} 27141then : 27142 printf %s "(cached) " >&6 27143else case e in #( 27144 e) 27145 save_LDFLAGS=$LDFLAGS 27146 LDFLAGS="$LDFLAGS -framework Carbon" 27147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27148/* end confdefs.h. */ 27149char FSFindFolder(); int main() { FSFindFolder(); return 0;} 27150_ACEOF 27151if ac_fn_c_try_link "$LINENO" 27152then : 27153 xorg_cv_Carbon_framework=yes 27154else case e in #( 27155 e) xorg_cv_Carbon_framework=no ;; 27156esac 27157fi 27158rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27159 conftest$ac_exeext conftest.$ac_ext 27160 LDFLAGS=$save_LDFLAGS ;; 27161esac 27162fi 27163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_Carbon_framework" >&5 27164printf "%s\n" "$xorg_cv_Carbon_framework" >&6; } 27165 27166 if test "X$xorg_cv_Carbon_framework" = Xyes; then 27167 XQUARTZ=yes 27168 else 27169 XQUARTZ=no 27170 fi 27171 fi 27172 27173 if test "x$XQUARTZ" = xyes ; then 27174 XQUARTZ=yes 27175 XVFB=no 27176 XNEST=no 27177 27178 DGA=no 27179 DPMSExtension=no 27180 XF86VIDMODE=no 27181 fi 27182 ;; 27183 gnu*) 27184 DRM=no 27185 DRI2=no 27186 DRI3=no 27187 ;; 27188 *) XQUARTZ=no ;; 27189esac 27190 27191XEXT_INC='-I$(top_srcdir)/Xext' 27192XEXT_LIB='$(top_builddir)/Xext/libXext.la' 27193 27194VIDEOPROTO="videoproto" 27195COMPOSITEPROTO="compositeproto >= 0.4" 27196RECORDPROTO="recordproto >= 1.13.99.1" 27197SCRNSAVERPROTO="scrnsaverproto >= 1.1" 27198RESOURCEPROTO="resourceproto >= 1.2.0" 27199DRIPROTO="xf86driproto >= 2.1.0" 27200DRI2PROTO="dri2proto >= 2.8" 27201DRI3PROTO="dri3proto >= 1.2" 27202XINERAMAPROTO="xineramaproto" 27203BIGFONTPROTO="xf86bigfontproto >= 1.2.0" 27204DGAPROTO="xf86dgaproto >= 2.0.99.1" 27205GLPROTO="glproto >= 1.4.17" 27206VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1" 27207APPLEWMPROTO="applewmproto >= 1.4" 27208LIBXSHMFENCE="xshmfence >= 1.1" 27209 27210XPROTO="xproto >= 7.0.31" 27211RANDRPROTO="randrproto >= 1.6.0" 27212RENDERPROTO="renderproto >= 0.11" 27213XEXTPROTO="xextproto >= 7.2.99.901" 27214INPUTPROTO="inputproto >= 2.3.99.1" 27215KBPROTO="kbproto >= 1.0.3" 27216FONTSPROTO="fontsproto >= 2.1.3" 27217FIXESPROTO="fixesproto >= 6.0" 27218DAMAGEPROTO="damageproto >= 1.1" 27219XCMISCPROTO="xcmiscproto >= 1.2.0" 27220BIGREQSPROTO="bigreqsproto >= 1.1.0" 27221XTRANS="xtrans >= 1.3.5" 27222PRESENTPROTO="presentproto >= 1.2" 27223 27224LIBAPPLEWM="applewm >= 1.4" 27225LIBDRI="dri >= 7.8.0" 27226LIBDRM="libdrm >= 2.4.89" 27227LIBEGL="egl" 27228LIBGBM="gbm >= 10.2.0" 27229LIBGL="gl >= 1.2" 27230LIBXEXT="xext >= 1.0.99.4" 27231LIBXFONT="xfont2 >= 2.0.0" 27232LIBXI="xi >= 1.2.99.1" 27233LIBXTST="xtst >= 1.0.99.2" 27234LIBPCIACCESS="pciaccess >= 0.12.901" 27235LIBUDEV="libudev >= 143" 27236LIBSELINUX="libselinux >= 2.0.86" 27237LIBDBUS="dbus-1 >= 1.0" 27238LIBPIXMAN="pixman-1 >= 0.27.2" 27239LIBXCVT="libxcvt" 27240 27241 27242pkg_failed=no 27243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBPIXMAN" >&5 27244printf %s "checking for $LIBPIXMAN... " >&6; } 27245 27246if test -n "$PIXMAN_CFLAGS"; then 27247 pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS" 27248 elif test -n "$PKG_CONFIG"; then 27249 if test -n "$PKG_CONFIG" && \ 27250 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5 27251 ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5 27252 ac_status=$? 27253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27254 test $ac_status = 0; }; then 27255 pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$LIBPIXMAN" 2>/dev/null` 27256 test "x$?" != "x0" && pkg_failed=yes 27257else 27258 pkg_failed=yes 27259fi 27260 else 27261 pkg_failed=untried 27262fi 27263if test -n "$PIXMAN_LIBS"; then 27264 pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS" 27265 elif test -n "$PKG_CONFIG"; then 27266 if test -n "$PKG_CONFIG" && \ 27267 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5 27268 ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5 27269 ac_status=$? 27270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27271 test $ac_status = 0; }; then 27272 pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$LIBPIXMAN" 2>/dev/null` 27273 test "x$?" != "x0" && pkg_failed=yes 27274else 27275 pkg_failed=yes 27276fi 27277 else 27278 pkg_failed=untried 27279fi 27280 27281 27282 27283if test $pkg_failed = yes; then 27284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27285printf "%s\n" "no" >&6; } 27286 27287if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27288 _pkg_short_errors_supported=yes 27289else 27290 _pkg_short_errors_supported=no 27291fi 27292 if test $_pkg_short_errors_supported = yes; then 27293 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPIXMAN" 2>&1` 27294 else 27295 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPIXMAN" 2>&1` 27296 fi 27297 # Put the nasty error message in config.log where it belongs 27298 echo "$PIXMAN_PKG_ERRORS" >&5 27299 27300 as_fn_error $? "Package requirements ($LIBPIXMAN) were not met: 27301 27302$PIXMAN_PKG_ERRORS 27303 27304Consider adjusting the PKG_CONFIG_PATH environment variable if you 27305installed software in a non-standard prefix. 27306 27307Alternatively, you may set the environment variables PIXMAN_CFLAGS 27308and PIXMAN_LIBS to avoid the need to call pkg-config. 27309See the pkg-config man page for more details." "$LINENO" 5 27310elif test $pkg_failed = untried; then 27311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27312printf "%s\n" "no" >&6; } 27313 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 27314printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 27315as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 27316is in your PATH or set the PKG_CONFIG environment variable to the full 27317path to pkg-config. 27318 27319Alternatively, you may set the environment variables PIXMAN_CFLAGS 27320and PIXMAN_LIBS to avoid the need to call pkg-config. 27321See the pkg-config man page for more details. 27322 27323To get pkg-config, see <http://pkg-config.freedesktop.org/>. 27324See 'config.log' for more details" "$LINENO" 5; } 27325else 27326 PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS 27327 PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS 27328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27329printf "%s\n" "yes" >&6; } 27330 27331fi 27332REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau" 27333 27334SDK_REQUIRED_MODULES="$XPROTO $RANDRPROTO $RENDERPROTO $XEXTPROTO $INPUTPROTO $KBPROTO $FONTSPROTO $LIBPIXMAN" 27335# Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc 27336 27337 27338ac_fn_check_decl "$LINENO" "PTHREAD_MUTEX_RECURSIVE" "ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" "#include <pthread.h> 27339" "$ac_c_undeclared_builtin_options" "CFLAGS" 27340if test "x$ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" = xyes 27341then : 27342 HAVE_RECURSIVE_MUTEX=yes 27343else case e in #( 27344 e) HAVE_RECURSIVE_MUTEX=no ;; 27345esac 27346fi 27347 27348THREAD_DEFAULT=no 27349 27350if test "x$HAVE_RECURSIVE_MUTEX" = "xyes" ; then 27351 THREAD_DEFAULT=yes 27352fi 27353 27354case $host_os in 27355 mingw*) THREAD_DEFAULT=no ;; 27356 *) 27357esac 27358 27359# Check whether --enable-input-thread was given. 27360if test ${enable_input_thread+y} 27361then : 27362 enableval=$enable_input_thread; INPUTTHREAD=$enableval 27363else case e in #( 27364 e) INPUTTHREAD=$THREAD_DEFAULT ;; 27365esac 27366fi 27367 27368 27369if test "x$INPUTTHREAD" = "xyes" ; then 27370 27371 27372ac_ext=c 27373ac_cpp='$CPP $CPPFLAGS' 27374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27376ac_compiler_gnu=$ac_cv_c_compiler_gnu 27377 27378ax_pthread_ok=no 27379 27380# We used to check for pthread.h first, but this fails if pthread.h 27381# requires special compiler flags (e.g. on True64 or Sequent). 27382# It gets checked for in the link test anyway. 27383 27384# First of all, check if the user has set any of the PTHREAD_LIBS, 27385# etcetera environment variables, and if threads linking works using 27386# them: 27387if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 27388 save_CFLAGS="$CFLAGS" 27389 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 27390 save_LIBS="$LIBS" 27391 LIBS="$PTHREAD_LIBS $LIBS" 27392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 27393printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 27394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27395/* end confdefs.h. */ 27396 27397/* Override any GCC internal prototype to avoid an error. 27398 Use char because int might match the return type of a GCC 27399 builtin and then its argument prototype would still apply. 27400 The 'extern "C"' is for builds by C++ compilers; 27401 although this is not generally supported in C code supporting it here 27402 has little cost and some practical benefit (sr 110532). */ 27403#ifdef __cplusplus 27404extern "C" 27405#endif 27406char pthread_join (void); 27407int 27408main (void) 27409{ 27410return pthread_join (); 27411 ; 27412 return 0; 27413} 27414_ACEOF 27415if ac_fn_c_try_link "$LINENO" 27416then : 27417 ax_pthread_ok=yes 27418fi 27419rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27420 conftest$ac_exeext conftest.$ac_ext 27421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 27422printf "%s\n" "$ax_pthread_ok" >&6; } 27423 if test x"$ax_pthread_ok" = xno; then 27424 PTHREAD_LIBS="" 27425 PTHREAD_CFLAGS="" 27426 fi 27427 LIBS="$save_LIBS" 27428 CFLAGS="$save_CFLAGS" 27429fi 27430 27431# We must check for the threads library under a number of different 27432# names; the ordering is very important because some systems 27433# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 27434# libraries is broken (non-POSIX). 27435 27436# Create a list of thread flags to try. Items starting with a "-" are 27437# C compiler flags, and other items are library names, except for "none" 27438# which indicates that we try without any flags at all, and "pthread-config" 27439# which is a program returning the flags for the Pth emulation library. 27440 27441ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 27442 27443# The ordering *is* (sometimes) important. Some notes on the 27444# individual items follow: 27445 27446# pthreads: AIX (must check this before -lpthread) 27447# none: in case threads are in libc; should be tried before -Kthread and 27448# other compiler flags to prevent continual compiler warnings 27449# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 27450# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 27451# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 27452# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 27453# -pthreads: Solaris/gcc 27454# -mthreads: Mingw32/gcc, Lynx/gcc 27455# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 27456# doesn't hurt to check since this sometimes defines pthreads too; 27457# also defines -D_REENTRANT) 27458# ... -mt is also the pthreads flag for HP/aCC 27459# pthread: Linux, etcetera 27460# --thread-safe: KAI C++ 27461# pthread-config: use pthread-config program (for GNU Pth library) 27462 27463case ${host_os} in 27464 solaris*) 27465 27466 # On Solaris (at least, for some versions), libc contains stubbed 27467 # (non-functional) versions of the pthreads routines, so link-based 27468 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 27469 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 27470 # a function called by this macro, so we could check for that, but 27471 # who knows whether they'll stub that too in a future libc.) So, 27472 # we'll just look for -pthreads and -lpthread first: 27473 27474 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 27475 ;; 27476 27477 darwin*) 27478 ax_pthread_flags="-pthread $ax_pthread_flags" 27479 ;; 27480 netbsd*) 27481 # use libc stubs, don't link against libpthread, to allow 27482 # dynamic loading 27483 ax_pthread_flags="" 27484 ;; 27485esac 27486 27487# Clang doesn't consider unrecognized options an error unless we specify 27488# -Werror. We throw in some extra Clang-specific options to ensure that 27489# this doesn't happen for GCC, which also accepts -Werror. 27490 27491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 27492printf %s "checking if compiler needs -Werror to reject unknown flags... " >&6; } 27493save_CFLAGS="$CFLAGS" 27494ax_pthread_extra_flags="-Werror" 27495CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 27496cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27497/* end confdefs.h. */ 27498int foo(void); 27499int 27500main (void) 27501{ 27502foo() 27503 ; 27504 return 0; 27505} 27506_ACEOF 27507if ac_fn_c_try_compile "$LINENO" 27508then : 27509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27510printf "%s\n" "yes" >&6; } 27511else case e in #( 27512 e) ax_pthread_extra_flags= 27513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27514printf "%s\n" "no" >&6; } ;; 27515esac 27516fi 27517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27518CFLAGS="$save_CFLAGS" 27519 27520if test x"$ax_pthread_ok" = xno; then 27521for flag in $ax_pthread_flags; do 27522 27523 case $flag in 27524 none) 27525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 27526printf %s "checking whether pthreads work without any flags... " >&6; } 27527 ;; 27528 27529 -*) 27530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 27531printf %s "checking whether pthreads work with $flag... " >&6; } 27532 PTHREAD_CFLAGS="$flag" 27533 ;; 27534 27535 pthread-config) 27536 # Extract the first word of "pthread-config", so it can be a program name with args. 27537set dummy pthread-config; ac_word=$2 27538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27539printf %s "checking for $ac_word... " >&6; } 27540if test ${ac_cv_prog_ax_pthread_config+y} 27541then : 27542 printf %s "(cached) " >&6 27543else case e in #( 27544 e) if test -n "$ax_pthread_config"; then 27545 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 27546else 27547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27548for as_dir in $PATH 27549do 27550 IFS=$as_save_IFS 27551 case $as_dir in #((( 27552 '') as_dir=./ ;; 27553 */) ;; 27554 *) as_dir=$as_dir/ ;; 27555 esac 27556 for ac_exec_ext in '' $ac_executable_extensions; do 27557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27558 ac_cv_prog_ax_pthread_config="yes" 27559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27560 break 2 27561 fi 27562done 27563 done 27564IFS=$as_save_IFS 27565 27566 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 27567fi ;; 27568esac 27569fi 27570ax_pthread_config=$ac_cv_prog_ax_pthread_config 27571if test -n "$ax_pthread_config"; then 27572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 27573printf "%s\n" "$ax_pthread_config" >&6; } 27574else 27575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27576printf "%s\n" "no" >&6; } 27577fi 27578 27579 27580 if test x"$ax_pthread_config" = xno; then continue; fi 27581 PTHREAD_CFLAGS="`pthread-config --cflags`" 27582 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 27583 ;; 27584 27585 *) 27586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 27587printf %s "checking for the pthreads library -l$flag... " >&6; } 27588 PTHREAD_LIBS="-l$flag" 27589 ;; 27590 esac 27591 27592 save_LIBS="$LIBS" 27593 save_CFLAGS="$CFLAGS" 27594 LIBS="$PTHREAD_LIBS $LIBS" 27595 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 27596 27597 # Check for various functions. We must include pthread.h, 27598 # since some functions may be macros. (On the Sequent, we 27599 # need a special flag -Kthread to make this header compile.) 27600 # We check for pthread_join because it is in -lpthread on IRIX 27601 # while pthread_create is in libc. We check for pthread_attr_init 27602 # due to DEC craziness with -lpthreads. We check for 27603 # pthread_cleanup_push because it is one of the few pthread 27604 # functions on Solaris that doesn't have a non-functional libc stub. 27605 # We try pthread_create on general principles. 27606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27607/* end confdefs.h. */ 27608#include <pthread.h> 27609 static void routine(void *a) { a = 0; } 27610 static void *start_routine(void *a) { return a; } 27611int 27612main (void) 27613{ 27614pthread_t th; pthread_attr_t attr; 27615 pthread_create(&th, 0, start_routine, 0); 27616 pthread_join(th, 0); 27617 pthread_attr_init(&attr); 27618 pthread_cleanup_push(routine, 0); 27619 pthread_cleanup_pop(0) /* ; */ 27620 ; 27621 return 0; 27622} 27623_ACEOF 27624if ac_fn_c_try_link "$LINENO" 27625then : 27626 ax_pthread_ok=yes 27627fi 27628rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27629 conftest$ac_exeext conftest.$ac_ext 27630 27631 LIBS="$save_LIBS" 27632 CFLAGS="$save_CFLAGS" 27633 27634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 27635printf "%s\n" "$ax_pthread_ok" >&6; } 27636 if test "x$ax_pthread_ok" = xyes; then 27637 break; 27638 fi 27639 27640 PTHREAD_LIBS="" 27641 PTHREAD_CFLAGS="" 27642done 27643fi 27644 27645# Various other checks: 27646if test "x$ax_pthread_ok" = xyes; then 27647 save_LIBS="$LIBS" 27648 LIBS="$PTHREAD_LIBS $LIBS" 27649 save_CFLAGS="$CFLAGS" 27650 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 27651 27652 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 27653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 27654printf %s "checking for joinable pthread attribute... " >&6; } 27655 attr_name=unknown 27656 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 27657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27658/* end confdefs.h. */ 27659#include <pthread.h> 27660int 27661main (void) 27662{ 27663int attr = $attr; return attr /* ; */ 27664 ; 27665 return 0; 27666} 27667_ACEOF 27668if ac_fn_c_try_link "$LINENO" 27669then : 27670 attr_name=$attr; break 27671fi 27672rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27673 conftest$ac_exeext conftest.$ac_ext 27674 done 27675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 27676printf "%s\n" "$attr_name" >&6; } 27677 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 27678 27679printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h 27680 27681 fi 27682 27683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 27684printf %s "checking if more special flags are required for pthreads... " >&6; } 27685 flag=no 27686 case ${host_os} in 27687 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 27688 osf* | hpux*) flag="-D_REENTRANT";; 27689 solaris*) 27690 if test "$GCC" = "yes"; then 27691 flag="-D_REENTRANT" 27692 else 27693 # TODO: What about Clang on Solaris? 27694 flag="-mt -D_REENTRANT" 27695 fi 27696 ;; 27697 esac 27698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 27699printf "%s\n" "$flag" >&6; } 27700 if test "x$flag" != xno; then 27701 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 27702 fi 27703 27704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 27705printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } 27706if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} 27707then : 27708 printf %s "(cached) " >&6 27709else case e in #( 27710 e) 27711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27712/* end confdefs.h. */ 27713#include <pthread.h> 27714int 27715main (void) 27716{ 27717int i = PTHREAD_PRIO_INHERIT; 27718 ; 27719 return 0; 27720} 27721_ACEOF 27722if ac_fn_c_try_link "$LINENO" 27723then : 27724 ax_cv_PTHREAD_PRIO_INHERIT=yes 27725else case e in #( 27726 e) ax_cv_PTHREAD_PRIO_INHERIT=no ;; 27727esac 27728fi 27729rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27730 conftest$ac_exeext conftest.$ac_ext 27731 ;; 27732esac 27733fi 27734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 27735printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 27736 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" 27737then : 27738 27739printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 27740 27741fi 27742 27743 LIBS="$save_LIBS" 27744 CFLAGS="$save_CFLAGS" 27745 27746 # More AIX lossage: compile with *_r variant 27747 if test "x$GCC" != xyes; then 27748 case $host_os in 27749 aix*) 27750 case "x/$CC" in #( 27751 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 27752 #handle absolute path differently from PATH based program lookup 27753 case "x$CC" in #( 27754 x/*) : 27755 if as_fn_executable_p ${CC}_r 27756then : 27757 PTHREAD_CC="${CC}_r" 27758fi ;; #( 27759 *) : 27760 for ac_prog in ${CC}_r 27761do 27762 # Extract the first word of "$ac_prog", so it can be a program name with args. 27763set dummy $ac_prog; ac_word=$2 27764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27765printf %s "checking for $ac_word... " >&6; } 27766if test ${ac_cv_prog_PTHREAD_CC+y} 27767then : 27768 printf %s "(cached) " >&6 27769else case e in #( 27770 e) if test -n "$PTHREAD_CC"; then 27771 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 27772else 27773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27774for as_dir in $PATH 27775do 27776 IFS=$as_save_IFS 27777 case $as_dir in #((( 27778 '') as_dir=./ ;; 27779 */) ;; 27780 *) as_dir=$as_dir/ ;; 27781 esac 27782 for ac_exec_ext in '' $ac_executable_extensions; do 27783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27784 ac_cv_prog_PTHREAD_CC="$ac_prog" 27785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27786 break 2 27787 fi 27788done 27789 done 27790IFS=$as_save_IFS 27791 27792fi ;; 27793esac 27794fi 27795PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 27796if test -n "$PTHREAD_CC"; then 27797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 27798printf "%s\n" "$PTHREAD_CC" >&6; } 27799else 27800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27801printf "%s\n" "no" >&6; } 27802fi 27803 27804 27805 test -n "$PTHREAD_CC" && break 27806done 27807test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 27808 ;; 27809esac ;; #( 27810 *) : 27811 ;; 27812esac 27813 ;; 27814 esac 27815 fi 27816fi 27817 27818test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 27819 27820 27821 27822 27823 27824# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 27825if test x"$ax_pthread_ok" = xyes; then 27826 27827printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h 27828 27829 : 27830else 27831 ax_pthread_ok=no 27832 as_fn_error $? "threaded input requested but no pthread support has been found" "$LINENO" 5 27833fi 27834ac_ext=c 27835ac_cpp='$CPP $CPPFLAGS' 27836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27838ac_compiler_gnu=$ac_cv_c_compiler_gnu 27839 27840 27841 SYS_LIBS="$SYS_LIBS $PTHREAD_LIBS" 27842 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 27843 27844printf "%s\n" "#define INPUTTHREAD 1" >>confdefs.h 27845 27846 27847 save_LIBS="$LIBS" 27848 LIBS="$LIBS $SYS_LIBS" 27849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(const char*)" >&5 27850printf %s "checking for pthread_setname_np(const char*)... " >&6; } 27851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27852/* end confdefs.h. */ 27853#include <pthread.h> 27854int 27855main (void) 27856{ 27857pthread_setname_np("example") 27858 ; 27859 return 0; 27860} 27861_ACEOF 27862if ac_fn_c_try_link "$LINENO" 27863then : 27864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27865printf "%s\n" "yes" >&6; } 27866 27867printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID 1" >>confdefs.h 27868 27869else case e in #( 27870 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27871printf "%s\n" "no" >&6; } ;; 27872esac 27873fi 27874rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27875 conftest$ac_exeext conftest.$ac_ext 27876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(pthread_t, const char*)" >&5 27877printf %s "checking for pthread_setname_np(pthread_t, const char*)... " >&6; } 27878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27879/* end confdefs.h. */ 27880#include <pthread.h> 27881int 27882main (void) 27883{ 27884pthread_setname_np(pthread_self(), "example") 27885 ; 27886 return 0; 27887} 27888_ACEOF 27889if ac_fn_c_try_link "$LINENO" 27890then : 27891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27892printf "%s\n" "yes" >&6; } 27893 27894printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_WITH_TID 1" >>confdefs.h 27895 27896else case e in #( 27897 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27898printf "%s\n" "no" >&6; } ;; 27899esac 27900fi 27901rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27902 conftest$ac_exeext conftest.$ac_ext 27903 LIBS="$save_LIBS" 27904fi 27905 27906REQUIRED_MODULES="$FIXESPROTO $DAMAGEPROTO $XCMISCPROTO $XTRANS $BIGREQSPROTO $SDK_REQUIRED_MODULES" 27907 27908LIBSYSTEMD="libsystemd >= 209" 27909 27910# Check whether --with-systemd-daemon was given. 27911if test ${with_systemd_daemon+y} 27912then : 27913 withval=$with_systemd_daemon; WITH_SYSTEMD_DAEMON=$withval 27914else case e in #( 27915 e) WITH_SYSTEMD_DAEMON=auto ;; 27916esac 27917fi 27918 27919if test "x$WITH_SYSTEMD_DAEMON" = "xyes" -o "x$WITH_SYSTEMD_DAEMON" = "xauto" ; then 27920 27921pkg_failed=no 27922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBSYSTEMD" >&5 27923printf %s "checking for $LIBSYSTEMD... " >&6; } 27924 27925if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 27926 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 27927 elif test -n "$PKG_CONFIG"; then 27928 if test -n "$PKG_CONFIG" && \ 27929 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5 27930 ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5 27931 ac_status=$? 27932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27933 test $ac_status = 0; }; then 27934 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "$LIBSYSTEMD" 2>/dev/null` 27935 test "x$?" != "x0" && pkg_failed=yes 27936else 27937 pkg_failed=yes 27938fi 27939 else 27940 pkg_failed=untried 27941fi 27942if test -n "$SYSTEMD_DAEMON_LIBS"; then 27943 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 27944 elif test -n "$PKG_CONFIG"; then 27945 if test -n "$PKG_CONFIG" && \ 27946 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5 27947 ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5 27948 ac_status=$? 27949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27950 test $ac_status = 0; }; then 27951 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "$LIBSYSTEMD" 2>/dev/null` 27952 test "x$?" != "x0" && pkg_failed=yes 27953else 27954 pkg_failed=yes 27955fi 27956 else 27957 pkg_failed=untried 27958fi 27959 27960 27961 27962if test $pkg_failed = yes; then 27963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27964printf "%s\n" "no" >&6; } 27965 27966if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27967 _pkg_short_errors_supported=yes 27968else 27969 _pkg_short_errors_supported=no 27970fi 27971 if test $_pkg_short_errors_supported = yes; then 27972 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1` 27973 else 27974 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1` 27975 fi 27976 # Put the nasty error message in config.log where it belongs 27977 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 27978 27979 27980pkg_failed=no 27981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5 27982printf %s "checking for libsystemd-daemon... " >&6; } 27983 27984if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 27985 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 27986 elif test -n "$PKG_CONFIG"; then 27987 if test -n "$PKG_CONFIG" && \ 27988 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 27989 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 27990 ac_status=$? 27991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27992 test $ac_status = 0; }; then 27993 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 27994 test "x$?" != "x0" && pkg_failed=yes 27995else 27996 pkg_failed=yes 27997fi 27998 else 27999 pkg_failed=untried 28000fi 28001if test -n "$SYSTEMD_DAEMON_LIBS"; then 28002 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 28003 elif test -n "$PKG_CONFIG"; then 28004 if test -n "$PKG_CONFIG" && \ 28005 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 28006 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 28007 ac_status=$? 28008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28009 test $ac_status = 0; }; then 28010 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 28011 test "x$?" != "x0" && pkg_failed=yes 28012else 28013 pkg_failed=yes 28014fi 28015 else 28016 pkg_failed=untried 28017fi 28018 28019 28020 28021if test $pkg_failed = yes; then 28022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28023printf "%s\n" "no" >&6; } 28024 28025if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28026 _pkg_short_errors_supported=yes 28027else 28028 _pkg_short_errors_supported=no 28029fi 28030 if test $_pkg_short_errors_supported = yes; then 28031 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 28032 else 28033 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 28034 fi 28035 # Put the nasty error message in config.log where it belongs 28036 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 28037 28038 HAVE_SYSTEMD_DAEMON=no 28039elif test $pkg_failed = untried; then 28040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28041printf "%s\n" "no" >&6; } 28042 HAVE_SYSTEMD_DAEMON=no 28043else 28044 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 28045 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 28046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28047printf "%s\n" "yes" >&6; } 28048 HAVE_SYSTEMD_DAEMON=yes; 28049 LIBSYSTEMD_DAEMON=libsystemd-daemon 28050fi 28051elif test $pkg_failed = untried; then 28052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28053printf "%s\n" "no" >&6; } 28054 28055pkg_failed=no 28056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5 28057printf %s "checking for libsystemd-daemon... " >&6; } 28058 28059if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 28060 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 28061 elif test -n "$PKG_CONFIG"; then 28062 if test -n "$PKG_CONFIG" && \ 28063 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 28064 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 28065 ac_status=$? 28066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28067 test $ac_status = 0; }; then 28068 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 28069 test "x$?" != "x0" && pkg_failed=yes 28070else 28071 pkg_failed=yes 28072fi 28073 else 28074 pkg_failed=untried 28075fi 28076if test -n "$SYSTEMD_DAEMON_LIBS"; then 28077 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 28078 elif test -n "$PKG_CONFIG"; then 28079 if test -n "$PKG_CONFIG" && \ 28080 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 28081 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 28082 ac_status=$? 28083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28084 test $ac_status = 0; }; then 28085 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 28086 test "x$?" != "x0" && pkg_failed=yes 28087else 28088 pkg_failed=yes 28089fi 28090 else 28091 pkg_failed=untried 28092fi 28093 28094 28095 28096if test $pkg_failed = yes; then 28097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28098printf "%s\n" "no" >&6; } 28099 28100if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28101 _pkg_short_errors_supported=yes 28102else 28103 _pkg_short_errors_supported=no 28104fi 28105 if test $_pkg_short_errors_supported = yes; then 28106 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 28107 else 28108 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 28109 fi 28110 # Put the nasty error message in config.log where it belongs 28111 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 28112 28113 HAVE_SYSTEMD_DAEMON=no 28114elif test $pkg_failed = untried; then 28115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28116printf "%s\n" "no" >&6; } 28117 HAVE_SYSTEMD_DAEMON=no 28118else 28119 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 28120 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 28121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28122printf "%s\n" "yes" >&6; } 28123 HAVE_SYSTEMD_DAEMON=yes; 28124 LIBSYSTEMD_DAEMON=libsystemd-daemon 28125fi 28126else 28127 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 28128 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 28129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28130printf "%s\n" "yes" >&6; } 28131 HAVE_SYSTEMD_DAEMON=yes; 28132 LIBSYSTEMD_DAEMON="$LIBSYSTEMD" 28133fi 28134 if test "x$HAVE_SYSTEMD_DAEMON" = xyes; then 28135 28136printf "%s\n" "#define HAVE_SYSTEMD_DAEMON 1" >>confdefs.h 28137 28138 REQUIRED_LIBS="$REQUIRED_LIBS $LIBSYSTEMD_DAEMON" 28139 elif test "x$WITH_SYSTEMD_DAEMON" = xyes; then 28140 as_fn_error $? "systemd support requested but no library has been found" "$LINENO" 5 28141 fi 28142fi 28143 if test "x$HAVE_SYSTEMD_DAEMON" = "xyes"; then 28144 HAVE_SYSTEMD_DAEMON_TRUE= 28145 HAVE_SYSTEMD_DAEMON_FALSE='#' 28146else 28147 HAVE_SYSTEMD_DAEMON_TRUE='#' 28148 HAVE_SYSTEMD_DAEMON_FALSE= 28149fi 28150 28151 28152if test "x$CONFIG_UDEV" = xyes && test "x$CONFIG_HAL" = xyes; then 28153 as_fn_error $? "Hotplugging through both libudev and hal not allowed" "$LINENO" 5 28154fi 28155 28156 28157pkg_failed=no 28158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBUDEV" >&5 28159printf %s "checking for $LIBUDEV... " >&6; } 28160 28161if test -n "$UDEV_CFLAGS"; then 28162 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" 28163 elif test -n "$PKG_CONFIG"; then 28164 if test -n "$PKG_CONFIG" && \ 28165 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5 28166 ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5 28167 ac_status=$? 28168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28169 test $ac_status = 0; }; then 28170 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "$LIBUDEV" 2>/dev/null` 28171 test "x$?" != "x0" && pkg_failed=yes 28172else 28173 pkg_failed=yes 28174fi 28175 else 28176 pkg_failed=untried 28177fi 28178if test -n "$UDEV_LIBS"; then 28179 pkg_cv_UDEV_LIBS="$UDEV_LIBS" 28180 elif test -n "$PKG_CONFIG"; then 28181 if test -n "$PKG_CONFIG" && \ 28182 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5 28183 ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5 28184 ac_status=$? 28185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28186 test $ac_status = 0; }; then 28187 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "$LIBUDEV" 2>/dev/null` 28188 test "x$?" != "x0" && pkg_failed=yes 28189else 28190 pkg_failed=yes 28191fi 28192 else 28193 pkg_failed=untried 28194fi 28195 28196 28197 28198if test $pkg_failed = yes; then 28199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28200printf "%s\n" "no" >&6; } 28201 28202if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28203 _pkg_short_errors_supported=yes 28204else 28205 _pkg_short_errors_supported=no 28206fi 28207 if test $_pkg_short_errors_supported = yes; then 28208 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBUDEV" 2>&1` 28209 else 28210 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBUDEV" 2>&1` 28211 fi 28212 # Put the nasty error message in config.log where it belongs 28213 echo "$UDEV_PKG_ERRORS" >&5 28214 28215 HAVE_LIBUDEV=no 28216elif test $pkg_failed = untried; then 28217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28218printf "%s\n" "no" >&6; } 28219 HAVE_LIBUDEV=no 28220else 28221 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS 28222 UDEV_LIBS=$pkg_cv_UDEV_LIBS 28223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28224printf "%s\n" "yes" >&6; } 28225 HAVE_LIBUDEV=yes 28226fi 28227if test "x$CONFIG_UDEV" = xauto; then 28228 CONFIG_UDEV="$HAVE_LIBUDEV" 28229fi 28230 if test "x$CONFIG_UDEV" = xyes; then 28231 CONFIG_UDEV_TRUE= 28232 CONFIG_UDEV_FALSE='#' 28233else 28234 CONFIG_UDEV_TRUE='#' 28235 CONFIG_UDEV_FALSE= 28236fi 28237 28238if test "x$CONFIG_UDEV" = xyes; then 28239 CONFIG_HAL=no 28240 if test "x$CONFIG_UDEV_KMS" = xauto; then 28241 CONFIG_UDEV_KMS="$HAVE_LIBUDEV" 28242 fi 28243 if ! test "x$HAVE_LIBUDEV" = xyes; then 28244 as_fn_error $? "udev configuration API requested, but libudev is not installed" "$LINENO" 5 28245 fi 28246 28247printf "%s\n" "#define CONFIG_UDEV 1" >>confdefs.h 28248 28249 if test "x$CONFIG_UDEV_KMS" = xyes; then 28250 28251printf "%s\n" "#define CONFIG_UDEV_KMS 1" >>confdefs.h 28252 28253 fi 28254 SAVE_LIBS=$LIBS 28255 SAVE_CFLAGS=$CFLAGS 28256 CFLAGS="$CFLAGS $UDEV_CFLAGS" 28257 LIBS=$UDEV_LIBS 28258 ac_fn_c_check_func "$LINENO" "udev_monitor_filter_add_match_tag" "ac_cv_func_udev_monitor_filter_add_match_tag" 28259if test "x$ac_cv_func_udev_monitor_filter_add_match_tag" = xyes 28260then : 28261 printf "%s\n" "#define HAVE_UDEV_MONITOR_FILTER_ADD_MATCH_TAG 1" >>confdefs.h 28262 28263fi 28264 28265 ac_fn_c_check_func "$LINENO" "udev_enumerate_add_match_tag" "ac_cv_func_udev_enumerate_add_match_tag" 28266if test "x$ac_cv_func_udev_enumerate_add_match_tag" = xyes 28267then : 28268 printf "%s\n" "#define HAVE_UDEV_ENUMERATE_ADD_MATCH_TAG 1" >>confdefs.h 28269 28270fi 28271 28272 LIBS=$SAVE_LIBS 28273 CFLAGS=$SAVE_CFLAGS 28274fi 28275 if test "x$CONFIG_UDEV_KMS" = xyes; then 28276 CONFIG_UDEV_KMS_TRUE= 28277 CONFIG_UDEV_KMS_FALSE='#' 28278else 28279 CONFIG_UDEV_KMS_TRUE='#' 28280 CONFIG_UDEV_KMS_FALSE= 28281fi 28282 28283 28284 28285pkg_failed=no 28286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBDBUS" >&5 28287printf %s "checking for $LIBDBUS... " >&6; } 28288 28289if test -n "$DBUS_CFLAGS"; then 28290 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS" 28291 elif test -n "$PKG_CONFIG"; then 28292 if test -n "$PKG_CONFIG" && \ 28293 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5 28294 ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5 28295 ac_status=$? 28296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28297 test $ac_status = 0; }; then 28298 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$LIBDBUS" 2>/dev/null` 28299 test "x$?" != "x0" && pkg_failed=yes 28300else 28301 pkg_failed=yes 28302fi 28303 else 28304 pkg_failed=untried 28305fi 28306if test -n "$DBUS_LIBS"; then 28307 pkg_cv_DBUS_LIBS="$DBUS_LIBS" 28308 elif test -n "$PKG_CONFIG"; then 28309 if test -n "$PKG_CONFIG" && \ 28310 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5 28311 ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5 28312 ac_status=$? 28313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28314 test $ac_status = 0; }; then 28315 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$LIBDBUS" 2>/dev/null` 28316 test "x$?" != "x0" && pkg_failed=yes 28317else 28318 pkg_failed=yes 28319fi 28320 else 28321 pkg_failed=untried 28322fi 28323 28324 28325 28326if test $pkg_failed = yes; then 28327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28328printf "%s\n" "no" >&6; } 28329 28330if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28331 _pkg_short_errors_supported=yes 28332else 28333 _pkg_short_errors_supported=no 28334fi 28335 if test $_pkg_short_errors_supported = yes; then 28336 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDBUS" 2>&1` 28337 else 28338 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDBUS" 2>&1` 28339 fi 28340 # Put the nasty error message in config.log where it belongs 28341 echo "$DBUS_PKG_ERRORS" >&5 28342 28343 HAVE_DBUS=no 28344elif test $pkg_failed = untried; then 28345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28346printf "%s\n" "no" >&6; } 28347 HAVE_DBUS=no 28348else 28349 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS 28350 DBUS_LIBS=$pkg_cv_DBUS_LIBS 28351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28352printf "%s\n" "yes" >&6; } 28353 HAVE_DBUS=yes 28354fi 28355if test "x$HAVE_DBUS" = xyes; then 28356 28357printf "%s\n" "#define HAVE_DBUS 1" >>confdefs.h 28358 28359fi 28360 if test "x$HAVE_DBUS" = xyes; then 28361 HAVE_DBUS_TRUE= 28362 HAVE_DBUS_FALSE='#' 28363else 28364 HAVE_DBUS_TRUE='#' 28365 HAVE_DBUS_FALSE= 28366fi 28367 28368 28369 28370pkg_failed=no 28371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hal" >&5 28372printf %s "checking for hal... " >&6; } 28373 28374if test -n "$HAL_CFLAGS"; then 28375 pkg_cv_HAL_CFLAGS="$HAL_CFLAGS" 28376 elif test -n "$PKG_CONFIG"; then 28377 if test -n "$PKG_CONFIG" && \ 28378 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5 28379 ($PKG_CONFIG --exists --print-errors "hal") 2>&5 28380 ac_status=$? 28381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28382 test $ac_status = 0; }; then 28383 pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null` 28384 test "x$?" != "x0" && pkg_failed=yes 28385else 28386 pkg_failed=yes 28387fi 28388 else 28389 pkg_failed=untried 28390fi 28391if test -n "$HAL_LIBS"; then 28392 pkg_cv_HAL_LIBS="$HAL_LIBS" 28393 elif test -n "$PKG_CONFIG"; then 28394 if test -n "$PKG_CONFIG" && \ 28395 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5 28396 ($PKG_CONFIG --exists --print-errors "hal") 2>&5 28397 ac_status=$? 28398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28399 test $ac_status = 0; }; then 28400 pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null` 28401 test "x$?" != "x0" && pkg_failed=yes 28402else 28403 pkg_failed=yes 28404fi 28405 else 28406 pkg_failed=untried 28407fi 28408 28409 28410 28411if test $pkg_failed = yes; then 28412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28413printf "%s\n" "no" >&6; } 28414 28415if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28416 _pkg_short_errors_supported=yes 28417else 28418 _pkg_short_errors_supported=no 28419fi 28420 if test $_pkg_short_errors_supported = yes; then 28421 HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hal" 2>&1` 28422 else 28423 HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hal" 2>&1` 28424 fi 28425 # Put the nasty error message in config.log where it belongs 28426 echo "$HAL_PKG_ERRORS" >&5 28427 28428 HAVE_HAL=no 28429elif test $pkg_failed = untried; then 28430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28431printf "%s\n" "no" >&6; } 28432 HAVE_HAL=no 28433else 28434 HAL_CFLAGS=$pkg_cv_HAL_CFLAGS 28435 HAL_LIBS=$pkg_cv_HAL_LIBS 28436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28437printf "%s\n" "yes" >&6; } 28438 HAVE_HAL=yes 28439fi 28440if test "x$CONFIG_HAL" = xauto; then 28441 CONFIG_HAL="$HAVE_HAL" 28442fi 28443if test "x$CONFIG_HAL" = xyes; then 28444 if ! test "x$HAVE_HAL" = xyes; then 28445 as_fn_error $? "HAL hotplug API requested, but HAL is not installed." "$LINENO" 5 28446 fi 28447 28448 28449printf "%s\n" "#define CONFIG_HAL 1" >>confdefs.h 28450 28451 NEED_DBUS="yes" 28452fi 28453 if test "x$CONFIG_HAL" = xyes; then 28454 CONFIG_HAL_TRUE= 28455 CONFIG_HAL_FALSE='#' 28456else 28457 CONFIG_HAL_TRUE='#' 28458 CONFIG_HAL_FALSE= 28459fi 28460 28461 28462if test "x$SYSTEMD_LOGIND" = xauto; then 28463 if test "x$HAVE_DBUS" = xyes -a "x$CONFIG_UDEV" = xyes ; then 28464 SYSTEMD_LOGIND=yes 28465 else 28466 SYSTEMD_LOGIND=no 28467 fi 28468fi 28469if test "x$SYSTEMD_LOGIND" = xyes; then 28470 if ! test "x$HAVE_DBUS" = xyes; then 28471 as_fn_error $? "systemd-logind requested, but D-Bus is not installed." "$LINENO" 5 28472 fi 28473 if ! test "x$CONFIG_UDEV" = xyes ; then 28474 as_fn_error $? "systemd-logind is only supported in combination with udev configuration." "$LINENO" 5 28475 fi 28476 28477 28478printf "%s\n" "#define SYSTEMD_LOGIND 1" >>confdefs.h 28479 28480 NEED_DBUS="yes" 28481fi 28482 if test "x$SYSTEMD_LOGIND" = xyes; then 28483 SYSTEMD_LOGIND_TRUE= 28484 SYSTEMD_LOGIND_FALSE='#' 28485else 28486 SYSTEMD_LOGIND_TRUE='#' 28487 SYSTEMD_LOGIND_FALSE= 28488fi 28489 28490 28491if test "x$SUID_WRAPPER" = xyes; then 28492 28493 prefix_NONE= 28494 exec_prefix_NONE= 28495 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 28496 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 28497 eval ac_define_dir="\"$libexecdir\"" 28498 eval ac_define_dir="\"$ac_define_dir\"" 28499 SUID_WRAPPER_DIR="$ac_define_dir" 28500 28501 28502printf "%s\n" "#define SUID_WRAPPER_DIR \"$ac_define_dir\"" >>confdefs.h 28503 28504 test "$prefix_NONE" && prefix=NONE 28505 test "$exec_prefix_NONE" && exec_prefix=NONE 28506 28507 SETUID="no" 28508fi 28509 if test "x$SUID_WRAPPER" = xyes; then 28510 SUID_WRAPPER_TRUE= 28511 SUID_WRAPPER_FALSE='#' 28512else 28513 SUID_WRAPPER_TRUE='#' 28514 SUID_WRAPPER_FALSE= 28515fi 28516 28517 28518if test "x$NEED_DBUS" = xyes; then 28519 28520printf "%s\n" "#define NEED_DBUS 1" >>confdefs.h 28521 28522fi 28523 if test "x$NEED_DBUS" = xyes; then 28524 NEED_DBUS_TRUE= 28525 NEED_DBUS_FALSE='#' 28526else 28527 NEED_DBUS_TRUE='#' 28528 NEED_DBUS_FALSE= 28529fi 28530 28531 28532if test "x$CONFIG_WSCONS" = xauto; then 28533 case $host_os in 28534 *openbsd*) 28535 CONFIG_WSCONS=yes; 28536 ;; 28537 *) 28538 CONFIG_WSCONS=no; 28539 ;; 28540 esac 28541fi 28542 if test "x$CONFIG_WSCONS" = xyes; then 28543 CONFIG_WSCONS_TRUE= 28544 CONFIG_WSCONS_FALSE='#' 28545else 28546 CONFIG_WSCONS_TRUE='#' 28547 CONFIG_WSCONS_FALSE= 28548fi 28549 28550if test "x$CONFIG_WSCONS" = xyes; then 28551 28552printf "%s\n" "#define CONFIG_WSCONS 1" >>confdefs.h 28553 28554fi 28555 28556 28557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glibc..." >&5 28558printf %s "checking for glibc...... " >&6; } 28559cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28560/* end confdefs.h. */ 28561 28562#include <features.h> 28563#ifndef __GLIBC__ 28564#error 28565#endif 28566 28567_ACEOF 28568if ac_fn_c_try_cpp "$LINENO" 28569then : 28570 glibc=yes 28571else case e in #( 28572 e) glibc=no ;; 28573esac 28574fi 28575rm -f conftest.err conftest.i conftest.$ac_ext 28576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $glibc" >&5 28577printf "%s\n" "$glibc" >&6; } 28578 28579 28580 for ac_func in clock_gettime 28581do : 28582 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 28583if test "x$ac_cv_func_clock_gettime" = xyes 28584then : 28585 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 28586 have_clock_gettime=yes 28587else case e in #( 28588 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 28589printf %s "checking for clock_gettime in -lrt... " >&6; } 28590if test ${ac_cv_lib_rt_clock_gettime+y} 28591then : 28592 printf %s "(cached) " >&6 28593else case e in #( 28594 e) ac_check_lib_save_LIBS=$LIBS 28595LIBS="-lrt $LIBS" 28596cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28597/* end confdefs.h. */ 28598 28599/* Override any GCC internal prototype to avoid an error. 28600 Use char because int might match the return type of a GCC 28601 builtin and then its argument prototype would still apply. 28602 The 'extern "C"' is for builds by C++ compilers; 28603 although this is not generally supported in C code supporting it here 28604 has little cost and some practical benefit (sr 110532). */ 28605#ifdef __cplusplus 28606extern "C" 28607#endif 28608char clock_gettime (void); 28609int 28610main (void) 28611{ 28612return clock_gettime (); 28613 ; 28614 return 0; 28615} 28616_ACEOF 28617if ac_fn_c_try_link "$LINENO" 28618then : 28619 ac_cv_lib_rt_clock_gettime=yes 28620else case e in #( 28621 e) ac_cv_lib_rt_clock_gettime=no ;; 28622esac 28623fi 28624rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28625 conftest$ac_exeext conftest.$ac_ext 28626LIBS=$ac_check_lib_save_LIBS ;; 28627esac 28628fi 28629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 28630printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; } 28631if test "x$ac_cv_lib_rt_clock_gettime" = xyes 28632then : 28633 have_clock_gettime=-lrt 28634else case e in #( 28635 e) have_clock_gettime=no ;; 28636esac 28637fi 28638 ;; 28639esac 28640fi 28641 28642done 28643 28644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a useful monotonic clock ..." >&5 28645printf %s "checking for a useful monotonic clock ...... " >&6; } 28646 28647if ! test "x$have_clock_gettime" = xno; then 28648 if ! test "x$have_clock_gettime" = xyes; then 28649 CLOCK_LIBS="$have_clock_gettime" 28650 else 28651 CLOCK_LIBS="" 28652 fi 28653 28654 LIBS_SAVE="$LIBS" 28655 LIBS="$CLOCK_LIBS" 28656 CPPFLAGS_SAVE="$CPPFLAGS" 28657 28658 if test x"$glibc" = xyes; then 28659 CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L" 28660 fi 28661 28662 if test "$cross_compiling" = yes 28663then : 28664 MONOTONIC_CLOCK="cross compiling" 28665else case e in #( 28666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28667/* end confdefs.h. */ 28668 28669#include <time.h> 28670 28671int main(int argc, char *argv[]) { 28672 struct timespec tp; 28673 28674 if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0) 28675 return 0; 28676 else 28677 return 1; 28678} 28679 28680_ACEOF 28681if ac_fn_c_try_run "$LINENO" 28682then : 28683 MONOTONIC_CLOCK=yes 28684else case e in #( 28685 e) MONOTONIC_CLOCK=no ;; 28686esac 28687fi 28688rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28689 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 28690esac 28691fi 28692 28693 28694 if test "$MONOTONIC_CLOCK" = "cross compiling"; then 28695 ac_fn_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#include <time.h> 28696" "$ac_c_undeclared_builtin_options" "CFLAGS" 28697if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes 28698then : 28699 MONOTONIC_CLOCK="guessing yes" 28700else case e in #( 28701 e) MONOTONIC_CLOCK=no ;; 28702esac 28703fi 28704 fi 28705 28706 LIBS="$LIBS_SAVE" 28707 CPPFLAGS="$CPPFLAGS_SAVE" 28708else 28709 MONOTONIC_CLOCK=no 28710fi 28711 28712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MONOTONIC_CLOCK" >&5 28713printf "%s\n" "$MONOTONIC_CLOCK" >&6; } 28714if test "$MONOTONIC_CLOCK" = "guessing yes"; then 28715 MONOTONIC_CLOCK=yes 28716fi 28717 28718if test "x$MONOTONIC_CLOCK" = xyes; then 28719 28720printf "%s\n" "#define MONOTONIC_CLOCK 1" >>confdefs.h 28721 28722 LIBS="$LIBS $CLOCK_LIBS" 28723fi 28724 28725 if test "x$XV" = xyes; then 28726 XV_TRUE= 28727 XV_FALSE='#' 28728else 28729 XV_TRUE='#' 28730 XV_FALSE= 28731fi 28732 28733if test "x$XV" = xyes; then 28734 28735printf "%s\n" "#define XV 1" >>confdefs.h 28736 28737 28738printf "%s\n" "#define XvExtension 1" >>confdefs.h 28739 28740 REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO" 28741 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $VIDEOPROTO" 28742else 28743 XVMC=no 28744fi 28745 28746 if test "x$XVMC" = xyes; then 28747 XVMC_TRUE= 28748 XVMC_FALSE='#' 28749else 28750 XVMC_TRUE='#' 28751 XVMC_FALSE= 28752fi 28753 28754if test "x$XVMC" = xyes; then 28755 28756printf "%s\n" "#define XvMCExtension 1" >>confdefs.h 28757 28758fi 28759 28760 if test "x$COMPOSITE" = xyes; then 28761 COMPOSITE_TRUE= 28762 COMPOSITE_FALSE='#' 28763else 28764 COMPOSITE_TRUE='#' 28765 COMPOSITE_FALSE= 28766fi 28767 28768if test "x$COMPOSITE" = xyes; then 28769 28770printf "%s\n" "#define COMPOSITE 1" >>confdefs.h 28771 28772 REQUIRED_MODULES="$REQUIRED_MODULES $COMPOSITEPROTO" 28773 COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la' 28774 COMPOSITE_INC='-I$(top_srcdir)/composite' 28775fi 28776 28777if test "x$MITSHM" = xauto; then 28778 MITSHM="$ac_cv_sysv_ipc" 28779fi 28780 if test "x$MITSHM" = xyes; then 28781 MITSHM_TRUE= 28782 MITSHM_FALSE='#' 28783else 28784 MITSHM_TRUE='#' 28785 MITSHM_FALSE= 28786fi 28787 28788if test "x$MITSHM" = xyes; then 28789 28790printf "%s\n" "#define MITSHM 1" >>confdefs.h 28791 28792 28793printf "%s\n" "#define HAS_SHM 1" >>confdefs.h 28794 28795fi 28796 28797 if test "x$RECORD" = xyes; then 28798 RECORD_TRUE= 28799 RECORD_FALSE='#' 28800else 28801 RECORD_TRUE='#' 28802 RECORD_FALSE= 28803fi 28804 28805if test "x$RECORD" = xyes; then 28806 28807printf "%s\n" "#define XRECORD 1" >>confdefs.h 28808 28809 REQUIRED_MODULES="$REQUIRED_MODULES $RECORDPROTO" 28810 RECORD_LIB='$(top_builddir)/record/librecord.la' 28811fi 28812 28813 if test "x$SCREENSAVER" = xyes; then 28814 SCREENSAVER_TRUE= 28815 SCREENSAVER_FALSE='#' 28816else 28817 SCREENSAVER_TRUE='#' 28818 SCREENSAVER_FALSE= 28819fi 28820 28821if test "x$SCREENSAVER" = xyes; then 28822 28823printf "%s\n" "#define SCREENSAVER 1" >>confdefs.h 28824 28825 REQUIRED_MODULES="$REQUIRED_MODULES $SCRNSAVERPROTO" 28826 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $SCRNSAVERPROTO" 28827fi 28828 28829HASHTABLE=no 28830 if test "x$RES" = xyes; then 28831 RES_TRUE= 28832 RES_FALSE='#' 28833else 28834 RES_TRUE='#' 28835 RES_FALSE= 28836fi 28837 28838if test "x$RES" = xyes; then 28839 28840printf "%s\n" "#define RES 1" >>confdefs.h 28841 28842 HASHTABLE=yes 28843 REQUIRED_MODULES="$REQUIRED_MODULES $RESOURCEPROTO" 28844 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $RESOURCEPROTO" 28845fi 28846 28847if test "x$LISTEN_TCP" = xyes; then 28848 28849printf "%s\n" "#define LISTEN_TCP 1" >>confdefs.h 28850 28851fi 28852if test "x$LISTEN_UNIX" = xyes; then 28853 28854printf "%s\n" "#define LISTEN_UNIX 1" >>confdefs.h 28855 28856fi 28857if test "x$LISTEN_LOCAL" = xyes; then 28858 28859printf "%s\n" "#define LISTEN_LOCAL 1" >>confdefs.h 28860 28861fi 28862 28863# The XRes extension may support client ID tracking only if it has 28864# been specifically enabled. Client ID tracking is implicitly not 28865# supported if XRes extension is disabled. 28866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to track client ids" >&5 28867printf %s "checking whether to track client ids... " >&6; } 28868if test "x$RES" = xyes && test "x$CLIENTIDS" = xyes; then 28869 28870printf "%s\n" "#define CLIENTIDS 1" >>confdefs.h 28871 28872else 28873 CLIENTIDS=no 28874fi 28875if test "x$CLIENTIDS" = xyes; then 28876 case $host_os in 28877 openbsd*) 28878 SYS_LIBS="$SYS_LIBS -lkvm" 28879 ;; 28880 esac 28881fi 28882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CLIENTIDS" >&5 28883printf "%s\n" "$CLIENTIDS" >&6; } 28884 if test "x$CLIENTIDS" = xyes; then 28885 CLIENTIDS_TRUE= 28886 CLIENTIDS_FALSE='#' 28887else 28888 CLIENTIDS_TRUE='#' 28889 CLIENTIDS_FALSE= 28890fi 28891 28892 28893 if test "x$DRI" = xyes; then 28894 DRI_TRUE= 28895 DRI_FALSE='#' 28896else 28897 DRI_TRUE='#' 28898 DRI_FALSE= 28899fi 28900 28901if test "x$DRI" = xyes; then 28902 28903printf "%s\n" "#define XF86DRI 1" >>confdefs.h 28904 28905 REQUIRED_MODULES="$REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI" 28906 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI" 28907fi 28908 28909 28910pkg_failed=no 28911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $DRI2PROTO" >&5 28912printf %s "checking for $DRI2PROTO... " >&6; } 28913 28914if test -n "$DRI2PROTO_CFLAGS"; then 28915 pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS" 28916 elif test -n "$PKG_CONFIG"; then 28917 if test -n "$PKG_CONFIG" && \ 28918 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5 28919 ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5 28920 ac_status=$? 28921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28922 test $ac_status = 0; }; then 28923 pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI2PROTO" 2>/dev/null` 28924 test "x$?" != "x0" && pkg_failed=yes 28925else 28926 pkg_failed=yes 28927fi 28928 else 28929 pkg_failed=untried 28930fi 28931if test -n "$DRI2PROTO_LIBS"; then 28932 pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS" 28933 elif test -n "$PKG_CONFIG"; then 28934 if test -n "$PKG_CONFIG" && \ 28935 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5 28936 ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5 28937 ac_status=$? 28938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28939 test $ac_status = 0; }; then 28940 pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "$DRI2PROTO" 2>/dev/null` 28941 test "x$?" != "x0" && pkg_failed=yes 28942else 28943 pkg_failed=yes 28944fi 28945 else 28946 pkg_failed=untried 28947fi 28948 28949 28950 28951if test $pkg_failed = yes; then 28952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28953printf "%s\n" "no" >&6; } 28954 28955if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28956 _pkg_short_errors_supported=yes 28957else 28958 _pkg_short_errors_supported=no 28959fi 28960 if test $_pkg_short_errors_supported = yes; then 28961 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI2PROTO" 2>&1` 28962 else 28963 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI2PROTO" 2>&1` 28964 fi 28965 # Put the nasty error message in config.log where it belongs 28966 echo "$DRI2PROTO_PKG_ERRORS" >&5 28967 28968 HAVE_DRI2PROTO=no 28969elif test $pkg_failed = untried; then 28970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28971printf "%s\n" "no" >&6; } 28972 HAVE_DRI2PROTO=no 28973else 28974 DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS 28975 DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS 28976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28977printf "%s\n" "yes" >&6; } 28978 HAVE_DRI2PROTO=yes 28979fi 28980case "$DRI2,$HAVE_DRI2PROTO" in 28981 yes,no) 28982 as_fn_error $? "DRI2 requested, but dri2proto not found." "$LINENO" 5 28983 ;; 28984 yes,yes | auto,yes) 28985 28986printf "%s\n" "#define DRI2 1" >>confdefs.h 28987 28988 DRI2=yes 28989 LIBGL="gl >= 1.2" 28990 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI2PROTO" 28991 ;; 28992esac 28993 if test "x$DRI2" = xyes; then 28994 DRI2_TRUE= 28995 DRI2_FALSE='#' 28996else 28997 DRI2_TRUE='#' 28998 DRI2_FALSE= 28999fi 29000 29001 29002# Check whether --enable-xtrans-send-fds was given. 29003if test ${enable_xtrans_send_fds+y} 29004then : 29005 enableval=$enable_xtrans_send_fds; XTRANS_SEND_FDS=$enableval 29006else case e in #( 29007 e) XTRANS_SEND_FDS=auto ;; 29008esac 29009fi 29010 29011 29012case "x$XTRANS_SEND_FDS" in 29013xauto) 29014 case "$host_os" in 29015 linux*|solaris*|freebsd*|dragonfly*|openbsd*) 29016 XTRANS_SEND_FDS=yes 29017 ;; 29018 *) 29019 XTRANS_SEND_FDS=no 29020 ;; 29021 esac 29022esac 29023 29024case "x$XTRANS_SEND_FDS" in 29025xyes) 29026 29027printf "%s\n" "#define XTRANS_SEND_FDS 1" >>confdefs.h 29028 29029 ;; 29030esac 29031 29032case "$DRI3,$XTRANS_SEND_FDS" in 29033 yes,yes | auto,yes) 29034 ;; 29035 yes,no) 29036 as_fn_error $? "DRI3 requested, but xtrans fd passing support not found." "$LINENO" 5 29037 DRI3=no 29038 ;; 29039 no,*) 29040 ;; 29041 *) 29042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xtrans fd passing support not found." >&5 29043printf "%s\n" "$as_me: DRI3 disabled because xtrans fd passing support not found." >&6;} 29044 DRI3=no 29045 ;; 29046esac 29047 29048 29049pkg_failed=no 29050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $DRI3PROTO" >&5 29051printf %s "checking for $DRI3PROTO... " >&6; } 29052 29053if test -n "$DRI3PROTO_CFLAGS"; then 29054 pkg_cv_DRI3PROTO_CFLAGS="$DRI3PROTO_CFLAGS" 29055 elif test -n "$PKG_CONFIG"; then 29056 if test -n "$PKG_CONFIG" && \ 29057 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5 29058 ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5 29059 ac_status=$? 29060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29061 test $ac_status = 0; }; then 29062 pkg_cv_DRI3PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI3PROTO" 2>/dev/null` 29063 test "x$?" != "x0" && pkg_failed=yes 29064else 29065 pkg_failed=yes 29066fi 29067 else 29068 pkg_failed=untried 29069fi 29070if test -n "$DRI3PROTO_LIBS"; then 29071 pkg_cv_DRI3PROTO_LIBS="$DRI3PROTO_LIBS" 29072 elif test -n "$PKG_CONFIG"; then 29073 if test -n "$PKG_CONFIG" && \ 29074 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5 29075 ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5 29076 ac_status=$? 29077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29078 test $ac_status = 0; }; then 29079 pkg_cv_DRI3PROTO_LIBS=`$PKG_CONFIG --libs "$DRI3PROTO" 2>/dev/null` 29080 test "x$?" != "x0" && pkg_failed=yes 29081else 29082 pkg_failed=yes 29083fi 29084 else 29085 pkg_failed=untried 29086fi 29087 29088 29089 29090if test $pkg_failed = yes; then 29091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29092printf "%s\n" "no" >&6; } 29093 29094if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29095 _pkg_short_errors_supported=yes 29096else 29097 _pkg_short_errors_supported=no 29098fi 29099 if test $_pkg_short_errors_supported = yes; then 29100 DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI3PROTO" 2>&1` 29101 else 29102 DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI3PROTO" 2>&1` 29103 fi 29104 # Put the nasty error message in config.log where it belongs 29105 echo "$DRI3PROTO_PKG_ERRORS" >&5 29106 29107 HAVE_DRI3PROTO=no 29108elif test $pkg_failed = untried; then 29109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29110printf "%s\n" "no" >&6; } 29111 HAVE_DRI3PROTO=no 29112else 29113 DRI3PROTO_CFLAGS=$pkg_cv_DRI3PROTO_CFLAGS 29114 DRI3PROTO_LIBS=$pkg_cv_DRI3PROTO_LIBS 29115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29116printf "%s\n" "yes" >&6; } 29117 HAVE_DRI3PROTO=yes 29118fi 29119 29120case "$DRI3,$HAVE_DRI3PROTO" in 29121 yes,yes | auto,yes) 29122 REQUIRED_MODULES="$REQUIRED_MODULES dri3proto" 29123 ;; 29124 yes,no) 29125 as_fn_error $? "DRI3 requested, but dri3proto not found." "$LINENO" 5 29126 DRI3=no 29127 ;; 29128 no,*) 29129 ;; 29130 *) 29131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 disabled because dri3proto not found." >&5 29132printf "%s\n" "$as_me: DRI3 disabled because dri3proto not found." >&6;} 29133 DRI3=no 29134 ;; 29135esac 29136 29137ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 29138if test "x$ac_cv_func_sigaction" = xyes 29139then : 29140 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 29141 29142fi 29143 29144 29145BUSFAULT=no 29146 29147case x"$ac_cv_func_sigaction" in 29148 xyes) 29149 29150printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 29151 29152 BUSFAULT=yes 29153 ;; 29154esac 29155 29156case x"$BUSFAULT" in 29157 xyes) 29158 29159printf "%s\n" "#define BUSFAULT 1" >>confdefs.h 29160 29161 ;; 29162esac 29163 29164 if test x"$BUSFAULT" = xyes; then 29165 BUSFAULT_TRUE= 29166 BUSFAULT_FALSE='#' 29167else 29168 BUSFAULT_TRUE='#' 29169 BUSFAULT_FALSE= 29170fi 29171 29172 29173 29174 29175pkg_failed=no 29176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBXSHMFENCE" >&5 29177printf %s "checking for $LIBXSHMFENCE... " >&6; } 29178 29179if test -n "$XSHMFENCE_CFLAGS"; then 29180 pkg_cv_XSHMFENCE_CFLAGS="$XSHMFENCE_CFLAGS" 29181 elif test -n "$PKG_CONFIG"; then 29182 if test -n "$PKG_CONFIG" && \ 29183 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5 29184 ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5 29185 ac_status=$? 29186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29187 test $ac_status = 0; }; then 29188 pkg_cv_XSHMFENCE_CFLAGS=`$PKG_CONFIG --cflags "$LIBXSHMFENCE" 2>/dev/null` 29189 test "x$?" != "x0" && pkg_failed=yes 29190else 29191 pkg_failed=yes 29192fi 29193 else 29194 pkg_failed=untried 29195fi 29196if test -n "$XSHMFENCE_LIBS"; then 29197 pkg_cv_XSHMFENCE_LIBS="$XSHMFENCE_LIBS" 29198 elif test -n "$PKG_CONFIG"; then 29199 if test -n "$PKG_CONFIG" && \ 29200 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5 29201 ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5 29202 ac_status=$? 29203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29204 test $ac_status = 0; }; then 29205 pkg_cv_XSHMFENCE_LIBS=`$PKG_CONFIG --libs "$LIBXSHMFENCE" 2>/dev/null` 29206 test "x$?" != "x0" && pkg_failed=yes 29207else 29208 pkg_failed=yes 29209fi 29210 else 29211 pkg_failed=untried 29212fi 29213 29214 29215 29216if test $pkg_failed = yes; then 29217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29218printf "%s\n" "no" >&6; } 29219 29220if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29221 _pkg_short_errors_supported=yes 29222else 29223 _pkg_short_errors_supported=no 29224fi 29225 if test $_pkg_short_errors_supported = yes; then 29226 XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1` 29227 else 29228 XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1` 29229 fi 29230 # Put the nasty error message in config.log where it belongs 29231 echo "$XSHMFENCE_PKG_ERRORS" >&5 29232 29233 HAVE_XSHMFENCE=no 29234elif test $pkg_failed = untried; then 29235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29236printf "%s\n" "no" >&6; } 29237 HAVE_XSHMFENCE=no 29238else 29239 XSHMFENCE_CFLAGS=$pkg_cv_XSHMFENCE_CFLAGS 29240 XSHMFENCE_LIBS=$pkg_cv_XSHMFENCE_LIBS 29241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29242printf "%s\n" "yes" >&6; } 29243 HAVE_XSHMFENCE=yes 29244fi 29245if test "x$XSHMFENCE" = "xauto"; then 29246 XSHMFENCE="$HAVE_XSHMFENCE" 29247fi 29248 29249if test "x$XSHMFENCE" = "xyes"; then 29250 if test "x$HAVE_XSHMFENCE" != "xyes"; then 29251 as_fn_error $? "xshmfence requested but not installed." "$LINENO" 5 29252 fi 29253 29254printf "%s\n" "#define HAVE_XSHMFENCE 1" >>confdefs.h 29255 29256 REQUIRED_LIBS="$REQUIRED_LIBS $LIBXSHMFENCE" 29257fi 29258 29259 if test "x$XSHMFENCE" = xyes; then 29260 XSHMFENCE_TRUE= 29261 XSHMFENCE_FALSE='#' 29262else 29263 XSHMFENCE_TRUE='#' 29264 XSHMFENCE_FALSE= 29265fi 29266 29267 29268case "$DRI3,$XSHMFENCE" in 29269 yes,yes | auto,yes) 29270 ;; 29271 yes,no) 29272 as_fn_error $? "DRI3 requested, but xshmfence not found." "$LINENO" 5 29273 DRI3=no 29274 ;; 29275 no,*) 29276 ;; 29277 *) 29278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xshmfence not found." >&5 29279printf "%s\n" "$as_me: DRI3 disabled because xshmfence not found." >&6;} 29280 DRI3=no 29281 ;; 29282esac 29283 29284case x"$DRI3" in 29285 xyes|xauto) 29286 DRI3=yes 29287 29288printf "%s\n" "#define DRI3 1" >>confdefs.h 29289 29290 DRI3_LIB='$(top_builddir)/dri3/libdri3.la' 29291 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI3PROTO" 29292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 enabled" >&5 29293printf "%s\n" "$as_me: DRI3 enabled" >&6;}; 29294 ;; 29295esac 29296 29297 if test "x$DRI3" = xyes; then 29298 DRI3_TRUE= 29299 DRI3_FALSE='#' 29300else 29301 DRI3_TRUE='#' 29302 DRI3_FALSE= 29303fi 29304 29305 29306if test "x$DRI" = xyes || test "x$DRI2" = xyes || test "x$DRI3" = xyes || test "x$CONFIG_UDEV_KMS" = xyes || test "x$XORG" = xyes; then 29307 if test "x$DRM" = xyes; then 29308 29309printf "%s\n" "#define WITH_LIBDRM 1" >>confdefs.h 29310 29311 29312pkg_failed=no 29313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBDRM" >&5 29314printf %s "checking for $LIBDRM... " >&6; } 29315 29316if test -n "$LIBDRM_CFLAGS"; then 29317 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" 29318 elif test -n "$PKG_CONFIG"; then 29319 if test -n "$PKG_CONFIG" && \ 29320 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5 29321 ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5 29322 ac_status=$? 29323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29324 test $ac_status = 0; }; then 29325 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "$LIBDRM" 2>/dev/null` 29326 test "x$?" != "x0" && pkg_failed=yes 29327else 29328 pkg_failed=yes 29329fi 29330 else 29331 pkg_failed=untried 29332fi 29333if test -n "$LIBDRM_LIBS"; then 29334 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" 29335 elif test -n "$PKG_CONFIG"; then 29336 if test -n "$PKG_CONFIG" && \ 29337 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5 29338 ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5 29339 ac_status=$? 29340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29341 test $ac_status = 0; }; then 29342 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "$LIBDRM" 2>/dev/null` 29343 test "x$?" != "x0" && pkg_failed=yes 29344else 29345 pkg_failed=yes 29346fi 29347 else 29348 pkg_failed=untried 29349fi 29350 29351 29352 29353if test $pkg_failed = yes; then 29354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29355printf "%s\n" "no" >&6; } 29356 29357if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29358 _pkg_short_errors_supported=yes 29359else 29360 _pkg_short_errors_supported=no 29361fi 29362 if test $_pkg_short_errors_supported = yes; then 29363 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDRM" 2>&1` 29364 else 29365 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDRM" 2>&1` 29366 fi 29367 # Put the nasty error message in config.log where it belongs 29368 echo "$LIBDRM_PKG_ERRORS" >&5 29369 29370 as_fn_error $? "Package requirements ($LIBDRM) were not met: 29371 29372$LIBDRM_PKG_ERRORS 29373 29374Consider adjusting the PKG_CONFIG_PATH environment variable if you 29375installed software in a non-standard prefix. 29376 29377Alternatively, you may set the environment variables LIBDRM_CFLAGS 29378and LIBDRM_LIBS to avoid the need to call pkg-config. 29379See the pkg-config man page for more details." "$LINENO" 5 29380elif test $pkg_failed = untried; then 29381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29382printf "%s\n" "no" >&6; } 29383 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 29384printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 29385as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29386is in your PATH or set the PKG_CONFIG environment variable to the full 29387path to pkg-config. 29388 29389Alternatively, you may set the environment variables LIBDRM_CFLAGS 29390and LIBDRM_LIBS to avoid the need to call pkg-config. 29391See the pkg-config man page for more details. 29392 29393To get pkg-config, see <http://pkg-config.freedesktop.org/>. 29394See 'config.log' for more details" "$LINENO" 5; } 29395else 29396 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS 29397 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS 29398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29399printf "%s\n" "yes" >&6; } 29400 29401fi 29402 fi 29403fi 29404 29405if test "x$GLX" = xyes; then 29406 29407pkg_failed=no 29408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x11" >&5 29409printf %s "checking for x11... " >&6; } 29410 29411if test -n "$XLIB_CFLAGS"; then 29412 pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS" 29413 elif test -n "$PKG_CONFIG"; then 29414 if test -n "$PKG_CONFIG" && \ 29415 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 29416 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 29417 ac_status=$? 29418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29419 test $ac_status = 0; }; then 29420 pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 29421 test "x$?" != "x0" && pkg_failed=yes 29422else 29423 pkg_failed=yes 29424fi 29425 else 29426 pkg_failed=untried 29427fi 29428if test -n "$XLIB_LIBS"; then 29429 pkg_cv_XLIB_LIBS="$XLIB_LIBS" 29430 elif test -n "$PKG_CONFIG"; then 29431 if test -n "$PKG_CONFIG" && \ 29432 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 29433 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 29434 ac_status=$? 29435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29436 test $ac_status = 0; }; then 29437 pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 29438 test "x$?" != "x0" && pkg_failed=yes 29439else 29440 pkg_failed=yes 29441fi 29442 else 29443 pkg_failed=untried 29444fi 29445 29446 29447 29448if test $pkg_failed = yes; then 29449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29450printf "%s\n" "no" >&6; } 29451 29452if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29453 _pkg_short_errors_supported=yes 29454else 29455 _pkg_short_errors_supported=no 29456fi 29457 if test $_pkg_short_errors_supported = yes; then 29458 XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 29459 else 29460 XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 29461 fi 29462 # Put the nasty error message in config.log where it belongs 29463 echo "$XLIB_PKG_ERRORS" >&5 29464 29465 as_fn_error $? "Package requirements (x11) were not met: 29466 29467$XLIB_PKG_ERRORS 29468 29469Consider adjusting the PKG_CONFIG_PATH environment variable if you 29470installed software in a non-standard prefix. 29471 29472Alternatively, you may set the environment variables XLIB_CFLAGS 29473and XLIB_LIBS to avoid the need to call pkg-config. 29474See the pkg-config man page for more details." "$LINENO" 5 29475elif test $pkg_failed = untried; then 29476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29477printf "%s\n" "no" >&6; } 29478 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 29479printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 29480as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29481is in your PATH or set the PKG_CONFIG environment variable to the full 29482path to pkg-config. 29483 29484Alternatively, you may set the environment variables XLIB_CFLAGS 29485and XLIB_LIBS to avoid the need to call pkg-config. 29486See the pkg-config man page for more details. 29487 29488To get pkg-config, see <http://pkg-config.freedesktop.org/>. 29489See 'config.log' for more details" "$LINENO" 5; } 29490else 29491 XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS 29492 XLIB_LIBS=$pkg_cv_XLIB_LIBS 29493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29494printf "%s\n" "yes" >&6; } 29495 29496fi 29497 29498pkg_failed=no 29499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $GLPROTO $LIBGL" >&5 29500printf %s "checking for $GLPROTO $LIBGL... " >&6; } 29501 29502if test -n "$GL_CFLAGS"; then 29503 pkg_cv_GL_CFLAGS="$GL_CFLAGS" 29504 elif test -n "$PKG_CONFIG"; then 29505 if test -n "$PKG_CONFIG" && \ 29506 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5 29507 ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5 29508 ac_status=$? 29509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29510 test $ac_status = 0; }; then 29511 pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBGL" 2>/dev/null` 29512 test "x$?" != "x0" && pkg_failed=yes 29513else 29514 pkg_failed=yes 29515fi 29516 else 29517 pkg_failed=untried 29518fi 29519if test -n "$GL_LIBS"; then 29520 pkg_cv_GL_LIBS="$GL_LIBS" 29521 elif test -n "$PKG_CONFIG"; then 29522 if test -n "$PKG_CONFIG" && \ 29523 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5 29524 ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5 29525 ac_status=$? 29526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29527 test $ac_status = 0; }; then 29528 pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBGL" 2>/dev/null` 29529 test "x$?" != "x0" && pkg_failed=yes 29530else 29531 pkg_failed=yes 29532fi 29533 else 29534 pkg_failed=untried 29535fi 29536 29537 29538 29539if test $pkg_failed = yes; then 29540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29541printf "%s\n" "no" >&6; } 29542 29543if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29544 _pkg_short_errors_supported=yes 29545else 29546 _pkg_short_errors_supported=no 29547fi 29548 if test $_pkg_short_errors_supported = yes; then 29549 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1` 29550 else 29551 GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1` 29552 fi 29553 # Put the nasty error message in config.log where it belongs 29554 echo "$GL_PKG_ERRORS" >&5 29555 29556 as_fn_error $? "Package requirements ($GLPROTO $LIBGL) were not met: 29557 29558$GL_PKG_ERRORS 29559 29560Consider adjusting the PKG_CONFIG_PATH environment variable if you 29561installed software in a non-standard prefix. 29562 29563Alternatively, you may set the environment variables GL_CFLAGS 29564and GL_LIBS to avoid the need to call pkg-config. 29565See the pkg-config man page for more details." "$LINENO" 5 29566elif test $pkg_failed = untried; then 29567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29568printf "%s\n" "no" >&6; } 29569 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 29570printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 29571as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29572is in your PATH or set the PKG_CONFIG environment variable to the full 29573path to pkg-config. 29574 29575Alternatively, you may set the environment variables GL_CFLAGS 29576and GL_LIBS to avoid the need to call pkg-config. 29577See the pkg-config man page for more details. 29578 29579To get pkg-config, see <http://pkg-config.freedesktop.org/>. 29580See 'config.log' for more details" "$LINENO" 5; } 29581else 29582 GL_CFLAGS=$pkg_cv_GL_CFLAGS 29583 GL_LIBS=$pkg_cv_GL_LIBS 29584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29585printf "%s\n" "yes" >&6; } 29586 29587fi 29588 29589 29590printf "%s\n" "#define GLXEXT 1" >>confdefs.h 29591 29592 HASHTABLE=yes 29593 GLX_LIBS='$(top_builddir)/glx/libglx.la $(top_builddir)/glx/libglxvnd.la' 29594 GLX_SYS_LIBS="$GLX_SYS_LIBS $GL_LIBS" 29595else 29596 GLX=no 29597fi 29598 if test "x$GLX" = xyes; then 29599 GLX_TRUE= 29600 GLX_FALSE='#' 29601else 29602 GLX_TRUE='#' 29603 GLX_FALSE= 29604fi 29605 29606 29607 if test "x$HASHTABLE" = xyes; then 29608 HASHTABLE_TRUE= 29609 HASHTABLE_FALSE='#' 29610else 29611 HASHTABLE_TRUE='#' 29612 HASHTABLE_FALSE= 29613fi 29614 29615 29616 29617 29618 29619 if test "x$PRESENT" = xyes; then 29620 PRESENT_TRUE= 29621 PRESENT_FALSE='#' 29622else 29623 PRESENT_TRUE='#' 29624 PRESENT_FALSE= 29625fi 29626 29627if test "x$PRESENT" = xyes; then 29628 29629printf "%s\n" "#define PRESENT 1" >>confdefs.h 29630 29631 REQUIRED_MODULES="$REQUIRED_MODULES $PRESENTPROTO" 29632 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $PRESENTPROTO" 29633 PRESENT_INC='-I$(top_srcdir)/present' 29634 PRESENT_LIB='$(top_builddir)/present/libpresent.la' 29635fi 29636 29637 if test "x$XINERAMA" = xyes; then 29638 XINERAMA_TRUE= 29639 XINERAMA_FALSE='#' 29640else 29641 XINERAMA_TRUE='#' 29642 XINERAMA_FALSE= 29643fi 29644 29645if test "x$XINERAMA" = xyes; then 29646 29647printf "%s\n" "#define XINERAMA 1" >>confdefs.h 29648 29649 29650printf "%s\n" "#define PANORAMIX 1" >>confdefs.h 29651 29652 REQUIRED_MODULES="$REQUIRED_MODULES $XINERAMAPROTO" 29653 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO" 29654fi 29655 29656 if test "x$XACE" = xyes; then 29657 XACE_TRUE= 29658 XACE_FALSE='#' 29659else 29660 XACE_TRUE='#' 29661 XACE_FALSE= 29662fi 29663 29664if test "x$XACE" = xyes; then 29665 29666printf "%s\n" "#define XACE 1" >>confdefs.h 29667 29668fi 29669 29670 if test "x$XSELINUX" = xyes; then 29671 XSELINUX_TRUE= 29672 XSELINUX_FALSE='#' 29673else 29674 XSELINUX_TRUE='#' 29675 XSELINUX_FALSE= 29676fi 29677 29678if test "x$XSELINUX" = xyes; then 29679 if test "x$XACE" != xyes; then 29680 as_fn_error $? "cannot build SELinux extension without X-ACE" "$LINENO" 5 29681 fi 29682 for ac_header in libaudit.h 29683do : 29684 ac_fn_c_check_header_compile "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" 29685if test "x$ac_cv_header_libaudit_h" = xyes 29686then : 29687 printf "%s\n" "#define HAVE_LIBAUDIT_H 1" >>confdefs.h 29688 29689else case e in #( 29690 e) as_fn_error $? "SELinux extension requires audit system headers" "$LINENO" 5 ;; 29691esac 29692fi 29693 29694done 29695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for audit_open in -laudit" >&5 29696printf %s "checking for audit_open in -laudit... " >&6; } 29697if test ${ac_cv_lib_audit_audit_open+y} 29698then : 29699 printf %s "(cached) " >&6 29700else case e in #( 29701 e) ac_check_lib_save_LIBS=$LIBS 29702LIBS="-laudit $LIBS" 29703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29704/* end confdefs.h. */ 29705 29706/* Override any GCC internal prototype to avoid an error. 29707 Use char because int might match the return type of a GCC 29708 builtin and then its argument prototype would still apply. 29709 The 'extern "C"' is for builds by C++ compilers; 29710 although this is not generally supported in C code supporting it here 29711 has little cost and some practical benefit (sr 110532). */ 29712#ifdef __cplusplus 29713extern "C" 29714#endif 29715char audit_open (void); 29716int 29717main (void) 29718{ 29719return audit_open (); 29720 ; 29721 return 0; 29722} 29723_ACEOF 29724if ac_fn_c_try_link "$LINENO" 29725then : 29726 ac_cv_lib_audit_audit_open=yes 29727else case e in #( 29728 e) ac_cv_lib_audit_audit_open=no ;; 29729esac 29730fi 29731rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29732 conftest$ac_exeext conftest.$ac_ext 29733LIBS=$ac_check_lib_save_LIBS ;; 29734esac 29735fi 29736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_open" >&5 29737printf "%s\n" "$ac_cv_lib_audit_audit_open" >&6; } 29738if test "x$ac_cv_lib_audit_audit_open" = xyes 29739then : 29740 printf "%s\n" "#define HAVE_LIBAUDIT 1" >>confdefs.h 29741 29742 LIBS="-laudit $LIBS" 29743 29744else case e in #( 29745 e) as_fn_error $? "SELinux extension requires audit system library" "$LINENO" 5 ;; 29746esac 29747fi 29748 29749 29750pkg_failed=no 29751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBSELINUX" >&5 29752printf %s "checking for $LIBSELINUX... " >&6; } 29753 29754if test -n "$SELINUX_CFLAGS"; then 29755 pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS" 29756 elif test -n "$PKG_CONFIG"; then 29757 if test -n "$PKG_CONFIG" && \ 29758 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5 29759 ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5 29760 ac_status=$? 29761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29762 test $ac_status = 0; }; then 29763 pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "$LIBSELINUX" 2>/dev/null` 29764 test "x$?" != "x0" && pkg_failed=yes 29765else 29766 pkg_failed=yes 29767fi 29768 else 29769 pkg_failed=untried 29770fi 29771if test -n "$SELINUX_LIBS"; then 29772 pkg_cv_SELINUX_LIBS="$SELINUX_LIBS" 29773 elif test -n "$PKG_CONFIG"; then 29774 if test -n "$PKG_CONFIG" && \ 29775 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5 29776 ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5 29777 ac_status=$? 29778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29779 test $ac_status = 0; }; then 29780 pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "$LIBSELINUX" 2>/dev/null` 29781 test "x$?" != "x0" && pkg_failed=yes 29782else 29783 pkg_failed=yes 29784fi 29785 else 29786 pkg_failed=untried 29787fi 29788 29789 29790 29791if test $pkg_failed = yes; then 29792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29793printf "%s\n" "no" >&6; } 29794 29795if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29796 _pkg_short_errors_supported=yes 29797else 29798 _pkg_short_errors_supported=no 29799fi 29800 if test $_pkg_short_errors_supported = yes; then 29801 SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSELINUX" 2>&1` 29802 else 29803 SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSELINUX" 2>&1` 29804 fi 29805 # Put the nasty error message in config.log where it belongs 29806 echo "$SELINUX_PKG_ERRORS" >&5 29807 29808 as_fn_error $? "Package requirements ($LIBSELINUX) were not met: 29809 29810$SELINUX_PKG_ERRORS 29811 29812Consider adjusting the PKG_CONFIG_PATH environment variable if you 29813installed software in a non-standard prefix. 29814 29815Alternatively, you may set the environment variables SELINUX_CFLAGS 29816and SELINUX_LIBS to avoid the need to call pkg-config. 29817See the pkg-config man page for more details." "$LINENO" 5 29818elif test $pkg_failed = untried; then 29819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29820printf "%s\n" "no" >&6; } 29821 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 29822printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 29823as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29824is in your PATH or set the PKG_CONFIG environment variable to the full 29825path to pkg-config. 29826 29827Alternatively, you may set the environment variables SELINUX_CFLAGS 29828and SELINUX_LIBS to avoid the need to call pkg-config. 29829See the pkg-config man page for more details. 29830 29831To get pkg-config, see <http://pkg-config.freedesktop.org/>. 29832See 'config.log' for more details" "$LINENO" 5; } 29833else 29834 SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS 29835 SELINUX_LIBS=$pkg_cv_SELINUX_LIBS 29836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29837printf "%s\n" "yes" >&6; } 29838 29839fi 29840 SELINUX_LIBS="$SELINUX_LIBS -laudit" 29841 29842printf "%s\n" "#define XSELINUX 1" >>confdefs.h 29843 29844fi 29845 29846 if test "x$XCSECURITY" = xyes; then 29847 XCSECURITY_TRUE= 29848 XCSECURITY_FALSE='#' 29849else 29850 XCSECURITY_TRUE='#' 29851 XCSECURITY_FALSE= 29852fi 29853 29854if test "x$XCSECURITY" = xyes; then 29855 if test "x$XACE" != xyes; then 29856 as_fn_error $? "cannot build Security extension without X-ACE" "$LINENO" 5 29857 fi 29858 29859printf "%s\n" "#define XCSECURITY 1" >>confdefs.h 29860 29861fi 29862 29863 if test "x$DBE" = xyes; then 29864 DBE_TRUE= 29865 DBE_FALSE='#' 29866else 29867 DBE_TRUE='#' 29868 DBE_FALSE= 29869fi 29870 29871if test "x$DBE" = xyes; then 29872 29873printf "%s\n" "#define DBE 1" >>confdefs.h 29874 29875 DBE_LIB='$(top_builddir)/dbe/libdbe.la' 29876 DBE_INC='-I$(top_srcdir)/dbe' 29877fi 29878 29879 if test "x$XF86BIGFONT" = xyes; then 29880 XF86BIGFONT_TRUE= 29881 XF86BIGFONT_FALSE='#' 29882else 29883 XF86BIGFONT_TRUE='#' 29884 XF86BIGFONT_FALSE= 29885fi 29886 29887if test "x$XF86BIGFONT" = xyes; then 29888 29889printf "%s\n" "#define XF86BIGFONT 1" >>confdefs.h 29890 29891 REQUIRED_MODULES="$REQUIRED_MODULES $BIGFONTPROTO" 29892 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $BIGFONTPROTO" 29893fi 29894 29895 if test "x$DPMSExtension" = xyes; then 29896 DPMSExtension_TRUE= 29897 DPMSExtension_FALSE='#' 29898else 29899 DPMSExtension_TRUE='#' 29900 DPMSExtension_FALSE= 29901fi 29902 29903if test "x$DPMSExtension" = xyes; then 29904 29905printf "%s\n" "#define DPMSExtension 1" >>confdefs.h 29906 29907fi 29908 29909 29910printf "%s\n" "#define RENDER 1" >>confdefs.h 29911 29912RENDER_LIB='$(top_builddir)/render/librender.la' 29913RENDER_INC='-I$(top_srcdir)/render' 29914 29915 29916printf "%s\n" "#define RANDR 1" >>confdefs.h 29917 29918RANDR_LIB='$(top_builddir)/randr/librandr.la' 29919RANDR_INC='-I$(top_srcdir)/randr' 29920 29921 29922printf "%s\n" "#define XFIXES 1" >>confdefs.h 29923 29924FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la' 29925FIXES_INC='-I$(top_srcdir)/xfixes' 29926 29927 29928printf "%s\n" "#define DAMAGE 1" >>confdefs.h 29929 29930DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la' 29931DAMAGE_INC='-I$(top_srcdir)/damageext' 29932MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la' 29933MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage' 29934 29935# XINPUT extension is integral part of the server 29936 29937printf "%s\n" "#define XINPUT 1" >>confdefs.h 29938 29939XI_LIB='$(top_builddir)/Xi/libXi.la' 29940XI_INC='-I$(top_srcdir)/Xi' 29941 29942 if test "x$XF86UTILS" = xyes; then 29943 XF86UTILS_TRUE= 29944 XF86UTILS_FALSE='#' 29945else 29946 XF86UTILS_TRUE='#' 29947 XF86UTILS_FALSE= 29948fi 29949 29950 if test "x$VGAHW" = xyes; then 29951 VGAHW_TRUE= 29952 VGAHW_FALSE='#' 29953else 29954 VGAHW_TRUE='#' 29955 VGAHW_FALSE= 29956fi 29957 29958 if test "x$INT10MODULE" = xyes; then 29959 INT10MODULE_TRUE= 29960 INT10MODULE_FALSE='#' 29961else 29962 INT10MODULE_TRUE='#' 29963 INT10MODULE_FALSE= 29964fi 29965 29966 29967 29968printf "%s\n" "#define SHAPE 1" >>confdefs.h 29969 29970 29971if test "x$XKBPATH" = "xauto"; then 29972 XKBPATH=$(pkg-config --variable datadir xkbcomp || echo ${datadir})/X11/xkb 29973fi 29974 29975 29976 prefix_NONE= 29977 exec_prefix_NONE= 29978 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29979 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29980 eval ac_define_dir="\"$XKBPATH\"" 29981 eval ac_define_dir="\"$ac_define_dir\"" 29982 XKB_BASE_DIRECTORY="$ac_define_dir" 29983 29984 29985printf "%s\n" "#define XKB_BASE_DIRECTORY \"$ac_define_dir\"" >>confdefs.h 29986 29987 test "$prefix_NONE" && prefix=NONE 29988 test "$exec_prefix_NONE" && exec_prefix=NONE 29989 29990 29991# Check whether --with-xkb-bin-directory was given. 29992if test ${with_xkb_bin_directory+y} 29993then : 29994 withval=$with_xkb_bin_directory; XKB_BIN_DIRECTORY="$withval" 29995else case e in #( 29996 e) XKB_BIN_DIRECTORY="auto" ;; 29997esac 29998fi 29999 30000 30001if test "x$XKB_BIN_DIRECTORY" = "xauto"; then 30002 XKB_BIN_DIRECTORY=$(pkg-config --variable bindir xkbcomp) 30003 if test -z $XKB_BIN_DIRECTORY; then 30004 XKB_BIN_DIRECTORY="$bindir" 30005 fi 30006fi 30007 30008 30009 prefix_NONE= 30010 exec_prefix_NONE= 30011 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 30012 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 30013 eval ac_define_dir="\"$XKB_BIN_DIRECTORY\"" 30014 eval ac_define_dir="\"$ac_define_dir\"" 30015 XKB_BIN_DIRECTORY="$ac_define_dir" 30016 30017 30018printf "%s\n" "#define XKB_BIN_DIRECTORY \"$ac_define_dir\"" >>confdefs.h 30019 30020 test "$prefix_NONE" && prefix=NONE 30021 test "$exec_prefix_NONE" && exec_prefix=NONE 30022 30023 30024XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1` 30025if [ x$XKBOUTPUT_FIRSTCHAR != x/ -a x$XKBOUTPUT_FIRSTCHAR != 'x$' ] ; then 30026 XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT" 30027fi 30028 30029 30030XKBOUTPUT=`echo $XKBOUTPUT/ | $SED 's|/*$|/|'` 30031XKB_COMPILED_DIR=`echo $XKBOUTPUT | $SED 's|/*$||'` 30032 30033 prefix_NONE= 30034 exec_prefix_NONE= 30035 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 30036 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 30037 eval ac_define_dir="\"$XKBOUTPUT\"" 30038 eval ac_define_dir="\"$ac_define_dir\"" 30039 XKM_OUTPUT_DIR="$ac_define_dir" 30040 30041 30042printf "%s\n" "#define XKM_OUTPUT_DIR \"$ac_define_dir\"" >>confdefs.h 30043 30044 test "$prefix_NONE" && prefix=NONE 30045 test "$exec_prefix_NONE" && exec_prefix=NONE 30046 30047 30048 30049if test "x$XKB_DFLT_RULES" = x; then 30050 case $host_os in 30051 linux*) 30052 XKB_DFLT_RULES="evdev" 30053 ;; 30054 *) 30055 XKB_DFLT_RULES="base" 30056 ;; 30057 esac 30058fi 30059 30060printf "%s\n" "#define XKB_DFLT_RULES \"$XKB_DFLT_RULES\"" >>confdefs.h 30061 30062 30063printf "%s\n" "#define XKB_DFLT_MODEL \"$XKB_DFLT_MODEL\"" >>confdefs.h 30064 30065 30066printf "%s\n" "#define XKB_DFLT_LAYOUT \"$XKB_DFLT_LAYOUT\"" >>confdefs.h 30067 30068 30069printf "%s\n" "#define XKB_DFLT_VARIANT \"$XKB_DFLT_VARIANT\"" >>confdefs.h 30070 30071 30072printf "%s\n" "#define XKB_DFLT_OPTIONS \"$XKB_DFLT_OPTIONS\"" >>confdefs.h 30073 30074 30075 30076 30077 30078 30079 30080XKB_LIB='$(top_builddir)/xkb/libxkb.la' 30081XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la' 30082REQUIRED_MODULES="$REQUIRED_MODULES xkbfile" 30083 30084 30085pkg_failed=no 30086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdmcp" >&5 30087printf %s "checking for xdmcp... " >&6; } 30088 30089if test -n "$XDMCP_CFLAGS"; then 30090 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS" 30091 elif test -n "$PKG_CONFIG"; then 30092 if test -n "$PKG_CONFIG" && \ 30093 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 30094 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 30095 ac_status=$? 30096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30097 test $ac_status = 0; }; then 30098 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` 30099 test "x$?" != "x0" && pkg_failed=yes 30100else 30101 pkg_failed=yes 30102fi 30103 else 30104 pkg_failed=untried 30105fi 30106if test -n "$XDMCP_LIBS"; then 30107 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS" 30108 elif test -n "$PKG_CONFIG"; then 30109 if test -n "$PKG_CONFIG" && \ 30110 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 30111 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 30112 ac_status=$? 30113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30114 test $ac_status = 0; }; then 30115 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` 30116 test "x$?" != "x0" && pkg_failed=yes 30117else 30118 pkg_failed=yes 30119fi 30120 else 30121 pkg_failed=untried 30122fi 30123 30124 30125 30126if test $pkg_failed = yes; then 30127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30128printf "%s\n" "no" >&6; } 30129 30130if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30131 _pkg_short_errors_supported=yes 30132else 30133 _pkg_short_errors_supported=no 30134fi 30135 if test $_pkg_short_errors_supported = yes; then 30136 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1` 30137 else 30138 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1` 30139 fi 30140 # Put the nasty error message in config.log where it belongs 30141 echo "$XDMCP_PKG_ERRORS" >&5 30142 30143 have_libxdmcp="no" 30144elif test $pkg_failed = untried; then 30145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30146printf "%s\n" "no" >&6; } 30147 have_libxdmcp="no" 30148else 30149 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS 30150 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS 30151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30152printf "%s\n" "yes" >&6; } 30153 have_libxdmcp="yes" 30154fi 30155if test "x$XDMCP" = xauto; then 30156 if test "x$have_libxdmcp" = xyes; then 30157 XDMCP=yes 30158 else 30159 XDMCP=no 30160 fi 30161fi 30162if test "x$XDMAUTH" = xauto; then 30163 if test "x$have_libxdmcp" = xyes; then 30164 XDMAUTH=yes 30165 else 30166 XDMAUTH=no 30167 fi 30168fi 30169 30170 if test "x$XDMCP" = xyes; then 30171 XDMCP_TRUE= 30172 XDMCP_FALSE='#' 30173else 30174 XDMCP_TRUE='#' 30175 XDMCP_FALSE= 30176fi 30177 30178if test "x$XDMCP" = xyes; then 30179 30180printf "%s\n" "#define XDMCP 1" >>confdefs.h 30181 30182 REQUIRED_LIBS="$REQUIRED_LIBS xdmcp" 30183 XDMCP_MODULES="xdmcp" 30184fi 30185 30186 if test "x$XDMAUTH" = xyes; then 30187 XDMAUTH_TRUE= 30188 XDMAUTH_FALSE='#' 30189else 30190 XDMAUTH_TRUE='#' 30191 XDMAUTH_FALSE= 30192fi 30193 30194if test "x$XDMAUTH" = xyes; then 30195 30196printf "%s\n" "#define HASXDMAUTH 1" >>confdefs.h 30197 30198 if ! test "x$XDMCP" = xyes; then 30199 REQUIRED_LIBS="$REQUIRED_LIBS xdmcp" 30200 XDMCP_MODULES="xdmcp" 30201 fi 30202fi 30203 30204if test "x$XF86VIDMODE" = xauto; then 30205 if test -n "$PKG_CONFIG" && \ 30206 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5 30207 ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5 30208 ac_status=$? 30209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30210 test $ac_status = 0; }; then 30211 XF86VIDMODE=yes 30212else 30213 XF86VIDMODE=no 30214fi 30215fi 30216if test "x$XF86VIDMODE" = xyes; then 30217 30218printf "%s\n" "#define XF86VIDMODE 1" >>confdefs.h 30219 30220fi 30221 if test "x$XF86VIDMODE" = xyes; then 30222 XF86VIDMODE_TRUE= 30223 XF86VIDMODE_FALSE='#' 30224else 30225 XF86VIDMODE_TRUE='#' 30226 XF86VIDMODE_FALSE= 30227fi 30228 30229 30230 30231 prefix_NONE= 30232 exec_prefix_NONE= 30233 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 30234 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 30235 eval ac_define_dir="\"$FONTPATH\"" 30236 eval ac_define_dir="\"$ac_define_dir\"" 30237 COMPILEDDEFAULTFONTPATH="$ac_define_dir" 30238 30239 30240printf "%s\n" "#define COMPILEDDEFAULTFONTPATH \"$ac_define_dir\"" >>confdefs.h 30241 30242 test "$prefix_NONE" && prefix=NONE 30243 test "$exec_prefix_NONE" && exec_prefix=NONE 30244 30245 30246 prefix_NONE= 30247 exec_prefix_NONE= 30248 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 30249 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 30250 eval ac_define_dir="\"$SERVERCONFIG\"" 30251 eval ac_define_dir="\"$ac_define_dir\"" 30252 SERVER_MISC_CONFIG_PATH="$ac_define_dir" 30253 30254 30255printf "%s\n" "#define SERVER_MISC_CONFIG_PATH \"$ac_define_dir\"" >>confdefs.h 30256 30257 test "$prefix_NONE" && prefix=NONE 30258 test "$exec_prefix_NONE" && exec_prefix=NONE 30259 30260 30261 prefix_NONE= 30262 exec_prefix_NONE= 30263 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 30264 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 30265 eval ac_define_dir="\"$FONTROOTDIR\"" 30266 eval ac_define_dir="\"$ac_define_dir\"" 30267 BASE_FONT_PATH="$ac_define_dir" 30268 30269 30270printf "%s\n" "#define BASE_FONT_PATH \"$ac_define_dir\"" >>confdefs.h 30271 30272 test "$prefix_NONE" && prefix=NONE 30273 test "$exec_prefix_NONE" && exec_prefix=NONE 30274 30275dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri` 30276 30277 prefix_NONE= 30278 exec_prefix_NONE= 30279 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 30280 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 30281 eval ac_define_dir="\"$dridriverdir\"" 30282 eval ac_define_dir="\"$ac_define_dir\"" 30283 DRI_DRIVER_PATH="$ac_define_dir" 30284 30285 30286printf "%s\n" "#define DRI_DRIVER_PATH \"$ac_define_dir\"" >>confdefs.h 30287 30288 test "$prefix_NONE" && prefix=NONE 30289 test "$exec_prefix_NONE" && exec_prefix=NONE 30290 30291 30292printf "%s\n" "#define XVENDORNAME \"$VENDOR_NAME\"" >>confdefs.h 30293 30294 30295printf "%s\n" "#define XVENDORNAMESHORT \"$VENDOR_NAME_SHORT\"" >>confdefs.h 30296 30297 30298printf "%s\n" "#define XORG_MAN_VERSION \"$VENDOR_MAN_VERSION\"" >>confdefs.h 30299 30300 30301printf "%s\n" "#define BUILDERADDR \"$BUILDERADDR\"" >>confdefs.h 30302 30303 30304 30305printf "%s\n" "#define BUILDERSTRING \"$BUILDERSTRING\"" >>confdefs.h 30306 30307 30308 30309 30310printf "%s\n" "#define VENDOR_NAME \"$VENDOR_NAME\"" >>confdefs.h 30311 30312 30313printf "%s\n" "#define VENDOR_NAME_SHORT \"$VENDOR_NAME_SHORT\"" >>confdefs.h 30314 30315 30316printf "%s\n" "#define VENDOR_RELEASE $VENDOR_RELEASE" >>confdefs.h 30317 30318 30319printf "%s\n" "#define VENDOR_MAN_VERSION \"$VENDOR_MAN_VERSION\"" >>confdefs.h 30320 30321 30322if test "x$DEBUGGING" = xyes; then 30323 30324printf "%s\n" "#define DEBUG 1" >>confdefs.h 30325 30326fi 30327 if test "x$DEBUGGING" = xyes; then 30328 DEBUG_TRUE= 30329 DEBUG_FALSE='#' 30330else 30331 DEBUG_TRUE='#' 30332 DEBUG_FALSE= 30333fi 30334 30335 30336 30337printf "%s\n" "#define XTEST 1" >>confdefs.h 30338 30339 30340printf "%s\n" "#define XSYNC 1" >>confdefs.h 30341 30342 30343printf "%s\n" "#define XCMISC 1" >>confdefs.h 30344 30345 30346printf "%s\n" "#define BIGREQS 1" >>confdefs.h 30347 30348 30349if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then 30350 DIX_LIB='$(top_builddir)/dix/dix.O' 30351 OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS) $(LIBUNWIND_LIBS)' 30352else 30353 DIX_LIB='$(top_builddir)/dix/libdix.la' 30354 OS_LIB='$(top_builddir)/os/libos.la' 30355fi 30356 30357 30358 30359MAIN_LIB='$(top_builddir)/dix/libmain.la' 30360 30361 30362MI_LIB='$(top_builddir)/mi/libmi.la' 30363MI_EXT_LIB='$(top_builddir)/mi/libmiext.la' 30364MI_INC='-I$(top_srcdir)/mi' 30365FB_LIB='$(top_builddir)/fb/libfb.la' 30366FB_INC='-I$(top_srcdir)/fb' 30367MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow' 30368MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la' 30369MIEXT_SYNC_INC='-I$(top_srcdir)/miext/sync' 30370MIEXT_SYNC_LIB='$(top_builddir)/miext/sync/libsync.la' 30371CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include' 30372 30373# SHA1 hashing 30374 30375# Check whether --with-sha1 was given. 30376if test ${with_sha1+y} 30377then : 30378 withval=$with_sha1; 30379fi 30380 30381ac_fn_c_check_func "$LINENO" "SHA1Init" "ac_cv_func_SHA1Init" 30382if test "x$ac_cv_func_SHA1Init" = xyes 30383then : 30384 HAVE_SHA1_IN_LIBC=yes 30385fi 30386 30387if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then 30388 with_sha1=libc 30389fi 30390if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then 30391 as_fn_error $? "libc requested but not found" "$LINENO" 5 30392fi 30393if test "x$with_sha1" = xlibc; then 30394 30395printf "%s\n" "#define HAVE_SHA1_IN_LIBC 1" >>confdefs.h 30396 30397 SHA1_LIBS="" 30398fi 30399ac_fn_c_check_func "$LINENO" "CC_SHA1_Init" "ac_cv_func_CC_SHA1_Init" 30400if test "x$ac_cv_func_CC_SHA1_Init" = xyes 30401then : 30402 HAVE_SHA1_IN_COMMONCRYPTO=yes 30403fi 30404 30405if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then 30406 with_sha1=CommonCrypto 30407fi 30408if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then 30409 as_fn_error $? "CommonCrypto requested but not found" "$LINENO" 5 30410fi 30411if test "x$with_sha1" = xCommonCrypto; then 30412 30413printf "%s\n" "#define HAVE_SHA1_IN_COMMONCRYPTO 1" >>confdefs.h 30414 30415 SHA1_LIBS="" 30416fi 30417ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#include <windows.h> 30418" 30419if test "x$ac_cv_header_wincrypt_h" = xyes 30420then : 30421 HAVE_SHA1_IN_CRYPTOAPI=yes 30422fi 30423 30424if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_CRYPTOAPI" = xyes; then 30425 with_sha1=CryptoAPI 30426fi 30427if test "x$with_sha1" = xCryptoAPI && test "x$HAVE_SHA1_IN_CRYPTOAPI" != xyes; then 30428 as_fn_error $? "CryptoAPI requested but not found" "$LINENO" 5 30429fi 30430if test "x$with_sha1" = xCryptoAPI; then 30431 30432printf "%s\n" "#define HAVE_SHA1_IN_CRYPTOAPI 1" >>confdefs.h 30433 30434 SHA1_LIBS="" 30435fi 30436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1Init in -lmd" >&5 30437printf %s "checking for SHA1Init in -lmd... " >&6; } 30438if test ${ac_cv_lib_md_SHA1Init+y} 30439then : 30440 printf %s "(cached) " >&6 30441else case e in #( 30442 e) ac_check_lib_save_LIBS=$LIBS 30443LIBS="-lmd $LIBS" 30444cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30445/* end confdefs.h. */ 30446 30447/* Override any GCC internal prototype to avoid an error. 30448 Use char because int might match the return type of a GCC 30449 builtin and then its argument prototype would still apply. 30450 The 'extern "C"' is for builds by C++ compilers; 30451 although this is not generally supported in C code supporting it here 30452 has little cost and some practical benefit (sr 110532). */ 30453#ifdef __cplusplus 30454extern "C" 30455#endif 30456char SHA1Init (void); 30457int 30458main (void) 30459{ 30460return SHA1Init (); 30461 ; 30462 return 0; 30463} 30464_ACEOF 30465if ac_fn_c_try_link "$LINENO" 30466then : 30467 ac_cv_lib_md_SHA1Init=yes 30468else case e in #( 30469 e) ac_cv_lib_md_SHA1Init=no ;; 30470esac 30471fi 30472rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30473 conftest$ac_exeext conftest.$ac_ext 30474LIBS=$ac_check_lib_save_LIBS ;; 30475esac 30476fi 30477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA1Init" >&5 30478printf "%s\n" "$ac_cv_lib_md_SHA1Init" >&6; } 30479if test "x$ac_cv_lib_md_SHA1Init" = xyes 30480then : 30481 HAVE_LIBMD=yes 30482fi 30483 30484if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then 30485 with_sha1=libmd 30486fi 30487if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then 30488 as_fn_error $? "libmd requested but not found" "$LINENO" 5 30489fi 30490if test "x$with_sha1" = xlibmd; then 30491 30492printf "%s\n" "#define HAVE_SHA1_IN_LIBMD 1" >>confdefs.h 30493 30494 SHA1_LIBS=-lmd 30495fi 30496 30497pkg_failed=no 30498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsha1" >&5 30499printf %s "checking for libsha1... " >&6; } 30500 30501if test -n "$LIBSHA1_CFLAGS"; then 30502 pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS" 30503 elif test -n "$PKG_CONFIG"; then 30504 if test -n "$PKG_CONFIG" && \ 30505 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5 30506 ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5 30507 ac_status=$? 30508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30509 test $ac_status = 0; }; then 30510 pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null` 30511 test "x$?" != "x0" && pkg_failed=yes 30512else 30513 pkg_failed=yes 30514fi 30515 else 30516 pkg_failed=untried 30517fi 30518if test -n "$LIBSHA1_LIBS"; then 30519 pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS" 30520 elif test -n "$PKG_CONFIG"; then 30521 if test -n "$PKG_CONFIG" && \ 30522 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5 30523 ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5 30524 ac_status=$? 30525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30526 test $ac_status = 0; }; then 30527 pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null` 30528 test "x$?" != "x0" && pkg_failed=yes 30529else 30530 pkg_failed=yes 30531fi 30532 else 30533 pkg_failed=untried 30534fi 30535 30536 30537 30538if test $pkg_failed = yes; then 30539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30540printf "%s\n" "no" >&6; } 30541 30542if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30543 _pkg_short_errors_supported=yes 30544else 30545 _pkg_short_errors_supported=no 30546fi 30547 if test $_pkg_short_errors_supported = yes; then 30548 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsha1" 2>&1` 30549 else 30550 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsha1" 2>&1` 30551 fi 30552 # Put the nasty error message in config.log where it belongs 30553 echo "$LIBSHA1_PKG_ERRORS" >&5 30554 30555 HAVE_LIBSHA1=no 30556elif test $pkg_failed = untried; then 30557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30558printf "%s\n" "no" >&6; } 30559 HAVE_LIBSHA1=no 30560else 30561 LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS 30562 LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS 30563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30564printf "%s\n" "yes" >&6; } 30565 HAVE_LIBSHA1=yes 30566fi 30567if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then 30568 with_sha1=libsha1 30569fi 30570if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then 30571 as_fn_error $? "libsha1 requested but not found" "$LINENO" 5 30572fi 30573if test "x$with_sha1" = xlibsha1; then 30574 30575printf "%s\n" "#define HAVE_SHA1_IN_LIBSHA1 1" >>confdefs.h 30576 30577 SHA1_LIBS=-lsha1 30578fi 30579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_sha1_init in -lnettle" >&5 30580printf %s "checking for nettle_sha1_init in -lnettle... " >&6; } 30581if test ${ac_cv_lib_nettle_nettle_sha1_init+y} 30582then : 30583 printf %s "(cached) " >&6 30584else case e in #( 30585 e) ac_check_lib_save_LIBS=$LIBS 30586LIBS="-lnettle $LIBS" 30587cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30588/* end confdefs.h. */ 30589 30590/* Override any GCC internal prototype to avoid an error. 30591 Use char because int might match the return type of a GCC 30592 builtin and then its argument prototype would still apply. 30593 The 'extern "C"' is for builds by C++ compilers; 30594 although this is not generally supported in C code supporting it here 30595 has little cost and some practical benefit (sr 110532). */ 30596#ifdef __cplusplus 30597extern "C" 30598#endif 30599char nettle_sha1_init (void); 30600int 30601main (void) 30602{ 30603return nettle_sha1_init (); 30604 ; 30605 return 0; 30606} 30607_ACEOF 30608if ac_fn_c_try_link "$LINENO" 30609then : 30610 ac_cv_lib_nettle_nettle_sha1_init=yes 30611else case e in #( 30612 e) ac_cv_lib_nettle_nettle_sha1_init=no ;; 30613esac 30614fi 30615rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30616 conftest$ac_exeext conftest.$ac_ext 30617LIBS=$ac_check_lib_save_LIBS ;; 30618esac 30619fi 30620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha1_init" >&5 30621printf "%s\n" "$ac_cv_lib_nettle_nettle_sha1_init" >&6; } 30622if test "x$ac_cv_lib_nettle_nettle_sha1_init" = xyes 30623then : 30624 HAVE_LIBNETTLE=yes 30625fi 30626 30627if test "x$with_sha1" = x && test "x$HAVE_LIBNETTLE" = xyes; then 30628 with_sha1=libnettle 30629fi 30630if test "x$with_sha1" = xlibnettle && test "x$HAVE_LIBNETTLE" != xyes; then 30631 as_fn_error $? "libnettle requested but not found" "$LINENO" 5 30632fi 30633if test "x$with_sha1" = xlibnettle; then 30634 30635printf "%s\n" "#define HAVE_SHA1_IN_LIBNETTLE 1" >>confdefs.h 30636 30637 SHA1_LIBS=-lnettle 30638fi 30639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5 30640printf %s "checking for gcry_md_open in -lgcrypt... " >&6; } 30641if test ${ac_cv_lib_gcrypt_gcry_md_open+y} 30642then : 30643 printf %s "(cached) " >&6 30644else case e in #( 30645 e) ac_check_lib_save_LIBS=$LIBS 30646LIBS="-lgcrypt $LIBS" 30647cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30648/* end confdefs.h. */ 30649 30650/* Override any GCC internal prototype to avoid an error. 30651 Use char because int might match the return type of a GCC 30652 builtin and then its argument prototype would still apply. 30653 The 'extern "C"' is for builds by C++ compilers; 30654 although this is not generally supported in C code supporting it here 30655 has little cost and some practical benefit (sr 110532). */ 30656#ifdef __cplusplus 30657extern "C" 30658#endif 30659char gcry_md_open (void); 30660int 30661main (void) 30662{ 30663return gcry_md_open (); 30664 ; 30665 return 0; 30666} 30667_ACEOF 30668if ac_fn_c_try_link "$LINENO" 30669then : 30670 ac_cv_lib_gcrypt_gcry_md_open=yes 30671else case e in #( 30672 e) ac_cv_lib_gcrypt_gcry_md_open=no ;; 30673esac 30674fi 30675rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30676 conftest$ac_exeext conftest.$ac_ext 30677LIBS=$ac_check_lib_save_LIBS ;; 30678esac 30679fi 30680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5 30681printf "%s\n" "$ac_cv_lib_gcrypt_gcry_md_open" >&6; } 30682if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes 30683then : 30684 HAVE_LIBGCRYPT=yes 30685fi 30686 30687if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then 30688 with_sha1=libgcrypt 30689fi 30690if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then 30691 as_fn_error $? "libgcrypt requested but not found" "$LINENO" 5 30692fi 30693if test "x$with_sha1" = xlibgcrypt; then 30694 30695printf "%s\n" "#define HAVE_SHA1_IN_LIBGCRYPT 1" >>confdefs.h 30696 30697 SHA1_LIBS=-lgcrypt 30698fi 30699# We don't need all of the OpenSSL libraries, just libcrypto 30700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5 30701printf %s "checking for SHA1_Init in -lcrypto... " >&6; } 30702if test ${ac_cv_lib_crypto_SHA1_Init+y} 30703then : 30704 printf %s "(cached) " >&6 30705else case e in #( 30706 e) ac_check_lib_save_LIBS=$LIBS 30707LIBS="-lcrypto $LIBS" 30708cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30709/* end confdefs.h. */ 30710 30711/* Override any GCC internal prototype to avoid an error. 30712 Use char because int might match the return type of a GCC 30713 builtin and then its argument prototype would still apply. 30714 The 'extern "C"' is for builds by C++ compilers; 30715 although this is not generally supported in C code supporting it here 30716 has little cost and some practical benefit (sr 110532). */ 30717#ifdef __cplusplus 30718extern "C" 30719#endif 30720char SHA1_Init (void); 30721int 30722main (void) 30723{ 30724return SHA1_Init (); 30725 ; 30726 return 0; 30727} 30728_ACEOF 30729if ac_fn_c_try_link "$LINENO" 30730then : 30731 ac_cv_lib_crypto_SHA1_Init=yes 30732else case e in #( 30733 e) ac_cv_lib_crypto_SHA1_Init=no ;; 30734esac 30735fi 30736rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30737 conftest$ac_exeext conftest.$ac_ext 30738LIBS=$ac_check_lib_save_LIBS ;; 30739esac 30740fi 30741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5 30742printf "%s\n" "$ac_cv_lib_crypto_SHA1_Init" >&6; } 30743if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes 30744then : 30745 HAVE_LIBCRYPTO=yes 30746fi 30747 30748 30749pkg_failed=no 30750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5 30751printf %s "checking for openssl... " >&6; } 30752 30753if test -n "$OPENSSL_CFLAGS"; then 30754 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" 30755 elif test -n "$PKG_CONFIG"; then 30756 if test -n "$PKG_CONFIG" && \ 30757 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 30758 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 30759 ac_status=$? 30760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30761 test $ac_status = 0; }; then 30762 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` 30763 test "x$?" != "x0" && pkg_failed=yes 30764else 30765 pkg_failed=yes 30766fi 30767 else 30768 pkg_failed=untried 30769fi 30770if test -n "$OPENSSL_LIBS"; then 30771 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" 30772 elif test -n "$PKG_CONFIG"; then 30773 if test -n "$PKG_CONFIG" && \ 30774 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 30775 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 30776 ac_status=$? 30777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30778 test $ac_status = 0; }; then 30779 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` 30780 test "x$?" != "x0" && pkg_failed=yes 30781else 30782 pkg_failed=yes 30783fi 30784 else 30785 pkg_failed=untried 30786fi 30787 30788 30789 30790if test $pkg_failed = yes; then 30791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30792printf "%s\n" "no" >&6; } 30793 30794if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30795 _pkg_short_errors_supported=yes 30796else 30797 _pkg_short_errors_supported=no 30798fi 30799 if test $_pkg_short_errors_supported = yes; then 30800 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1` 30801 else 30802 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1` 30803 fi 30804 # Put the nasty error message in config.log where it belongs 30805 echo "$OPENSSL_PKG_ERRORS" >&5 30806 30807 HAVE_OPENSSL_PKC=no 30808elif test $pkg_failed = untried; then 30809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30810printf "%s\n" "no" >&6; } 30811 HAVE_OPENSSL_PKC=no 30812else 30813 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS 30814 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS 30815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30816printf "%s\n" "yes" >&6; } 30817 HAVE_OPENSSL_PKC=yes 30818fi 30819if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then 30820 if test "x$with_sha1" = x; then 30821 with_sha1=libcrypto 30822 fi 30823else 30824 if test "x$with_sha1" = xlibcrypto; then 30825 as_fn_error $? "OpenSSL libcrypto requested but not found" "$LINENO" 5 30826 fi 30827fi 30828if test "x$with_sha1" = xlibcrypto; then 30829 if test "x$HAVE_LIBCRYPTO" = xyes; then 30830 SHA1_LIBS=-lcrypto 30831 else 30832 SHA1_LIBS="$OPENSSL_LIBS" 30833 SHA1_CFLAGS="$OPENSSL_CFLAGS" 30834 fi 30835fi 30836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1 implementation" >&5 30837printf %s "checking for SHA1 implementation... " >&6; } 30838if test "x$with_sha1" = x; then 30839 as_fn_error $? "No suitable SHA1 implementation found" "$LINENO" 5 30840fi 30841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sha1" >&5 30842printf "%s\n" "$with_sha1" >&6; } 30843 30844 30845 30846 30847pkg_failed=no 30848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $REQUIRED_MODULES $REQUIRED_LIBS" >&5 30849printf %s "checking for $REQUIRED_MODULES $REQUIRED_LIBS... " >&6; } 30850 30851if test -n "$XSERVERCFLAGS_CFLAGS"; then 30852 pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS" 30853 elif test -n "$PKG_CONFIG"; then 30854 if test -n "$PKG_CONFIG" && \ 30855 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5 30856 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5 30857 ac_status=$? 30858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30859 test $ac_status = 0; }; then 30860 pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null` 30861 test "x$?" != "x0" && pkg_failed=yes 30862else 30863 pkg_failed=yes 30864fi 30865 else 30866 pkg_failed=untried 30867fi 30868if test -n "$XSERVERCFLAGS_LIBS"; then 30869 pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS" 30870 elif test -n "$PKG_CONFIG"; then 30871 if test -n "$PKG_CONFIG" && \ 30872 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5 30873 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5 30874 ac_status=$? 30875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30876 test $ac_status = 0; }; then 30877 pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null` 30878 test "x$?" != "x0" && pkg_failed=yes 30879else 30880 pkg_failed=yes 30881fi 30882 else 30883 pkg_failed=untried 30884fi 30885 30886 30887 30888if test $pkg_failed = yes; then 30889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30890printf "%s\n" "no" >&6; } 30891 30892if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30893 _pkg_short_errors_supported=yes 30894else 30895 _pkg_short_errors_supported=no 30896fi 30897 if test $_pkg_short_errors_supported = yes; then 30898 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1` 30899 else 30900 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1` 30901 fi 30902 # Put the nasty error message in config.log where it belongs 30903 echo "$XSERVERCFLAGS_PKG_ERRORS" >&5 30904 30905 as_fn_error $? "Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met: 30906 30907$XSERVERCFLAGS_PKG_ERRORS 30908 30909Consider adjusting the PKG_CONFIG_PATH environment variable if you 30910installed software in a non-standard prefix. 30911 30912Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS 30913and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config. 30914See the pkg-config man page for more details." "$LINENO" 5 30915elif test $pkg_failed = untried; then 30916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30917printf "%s\n" "no" >&6; } 30918 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 30919printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 30920as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30921is in your PATH or set the PKG_CONFIG environment variable to the full 30922path to pkg-config. 30923 30924Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS 30925and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config. 30926See the pkg-config man page for more details. 30927 30928To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30929See 'config.log' for more details" "$LINENO" 5; } 30930else 30931 XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS 30932 XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS 30933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30934printf "%s\n" "yes" >&6; } 30935 30936fi 30937 30938pkg_failed=no 30939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $REQUIRED_LIBS" >&5 30940printf %s "checking for $REQUIRED_LIBS... " >&6; } 30941 30942if test -n "$XSERVERLIBS_CFLAGS"; then 30943 pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS" 30944 elif test -n "$PKG_CONFIG"; then 30945 if test -n "$PKG_CONFIG" && \ 30946 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5 30947 ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5 30948 ac_status=$? 30949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30950 test $ac_status = 0; }; then 30951 pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null` 30952 test "x$?" != "x0" && pkg_failed=yes 30953else 30954 pkg_failed=yes 30955fi 30956 else 30957 pkg_failed=untried 30958fi 30959if test -n "$XSERVERLIBS_LIBS"; then 30960 pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS" 30961 elif test -n "$PKG_CONFIG"; then 30962 if test -n "$PKG_CONFIG" && \ 30963 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5 30964 ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5 30965 ac_status=$? 30966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30967 test $ac_status = 0; }; then 30968 pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null` 30969 test "x$?" != "x0" && pkg_failed=yes 30970else 30971 pkg_failed=yes 30972fi 30973 else 30974 pkg_failed=untried 30975fi 30976 30977 30978 30979if test $pkg_failed = yes; then 30980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30981printf "%s\n" "no" >&6; } 30982 30983if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30984 _pkg_short_errors_supported=yes 30985else 30986 _pkg_short_errors_supported=no 30987fi 30988 if test $_pkg_short_errors_supported = yes; then 30989 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1` 30990 else 30991 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1` 30992 fi 30993 # Put the nasty error message in config.log where it belongs 30994 echo "$XSERVERLIBS_PKG_ERRORS" >&5 30995 30996 as_fn_error $? "Package requirements ($REQUIRED_LIBS) were not met: 30997 30998$XSERVERLIBS_PKG_ERRORS 30999 31000Consider adjusting the PKG_CONFIG_PATH environment variable if you 31001installed software in a non-standard prefix. 31002 31003Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS 31004and XSERVERLIBS_LIBS to avoid the need to call pkg-config. 31005See the pkg-config man page for more details." "$LINENO" 5 31006elif test $pkg_failed = untried; then 31007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31008printf "%s\n" "no" >&6; } 31009 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 31010printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 31011as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31012is in your PATH or set the PKG_CONFIG environment variable to the full 31013path to pkg-config. 31014 31015Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS 31016and XSERVERLIBS_LIBS to avoid the need to call pkg-config. 31017See the pkg-config man page for more details. 31018 31019To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31020See 'config.log' for more details" "$LINENO" 5; } 31021else 31022 XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS 31023 XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS 31024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31025printf "%s\n" "yes" >&6; } 31026 31027fi 31028 31029 31030pkg_failed=no 31031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libunwind" >&5 31032printf %s "checking for libunwind... " >&6; } 31033 31034if test -n "$LIBUNWIND_CFLAGS"; then 31035 pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS" 31036 elif test -n "$PKG_CONFIG"; then 31037 if test -n "$PKG_CONFIG" && \ 31038 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5 31039 ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5 31040 ac_status=$? 31041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31042 test $ac_status = 0; }; then 31043 pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null` 31044 test "x$?" != "x0" && pkg_failed=yes 31045else 31046 pkg_failed=yes 31047fi 31048 else 31049 pkg_failed=untried 31050fi 31051if test -n "$LIBUNWIND_LIBS"; then 31052 pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS" 31053 elif test -n "$PKG_CONFIG"; then 31054 if test -n "$PKG_CONFIG" && \ 31055 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5 31056 ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5 31057 ac_status=$? 31058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31059 test $ac_status = 0; }; then 31060 pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null` 31061 test "x$?" != "x0" && pkg_failed=yes 31062else 31063 pkg_failed=yes 31064fi 31065 else 31066 pkg_failed=untried 31067fi 31068 31069 31070 31071if test $pkg_failed = yes; then 31072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31073printf "%s\n" "no" >&6; } 31074 31075if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31076 _pkg_short_errors_supported=yes 31077else 31078 _pkg_short_errors_supported=no 31079fi 31080 if test $_pkg_short_errors_supported = yes; then 31081 LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libunwind" 2>&1` 31082 else 31083 LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libunwind" 2>&1` 31084 fi 31085 # Put the nasty error message in config.log where it belongs 31086 echo "$LIBUNWIND_PKG_ERRORS" >&5 31087 31088 HAVE_LIBUNWIND=no 31089elif test $pkg_failed = untried; then 31090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31091printf "%s\n" "no" >&6; } 31092 HAVE_LIBUNWIND=no 31093else 31094 LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS 31095 LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS 31096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31097printf "%s\n" "yes" >&6; } 31098 HAVE_LIBUNWIND=yes 31099fi 31100if test "x$LIBUNWIND" = "xauto"; then 31101 LIBUNWIND="$HAVE_LIBUNWIND" 31102fi 31103 31104if test "x$LIBUNWIND" = "xyes"; then 31105 if test "x$HAVE_LIBUNWIND" != "xyes"; then 31106 as_fn_error $? "libunwind requested but not installed." "$LINENO" 5 31107 fi 31108 31109printf "%s\n" "#define HAVE_LIBUNWIND 1" >>confdefs.h 31110 31111fi 31112 31113 if test "x$LIBUNWIND" = xyes; then 31114 HAVE_LIBUNWIND_TRUE= 31115 HAVE_LIBUNWIND_FALSE='#' 31116else 31117 HAVE_LIBUNWIND_TRUE='#' 31118 HAVE_LIBUNWIND_FALSE= 31119fi 31120 31121 31122# Autotools has some unfortunate issues with library handling. In order to 31123# get a server to rebuild when a dependency in the tree is changed, it must 31124# be listed in SERVERNAME_DEPENDENCIES. However, no system libraries may be 31125# listed there, or some versions of autotools will break (especially if a -L 31126# is required to find the library). So, we keep two sets of libraries 31127# detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which 31128# will go into the _DEPENDENCIES and _LDADD of the server, and 31129# NAMESPACE_SYS_LIBS which will go into only the _LDADD. The 31130# NAMESPACEMODULES_LIBS detected from pkgconfig should always go in 31131# NAMESPACE_SYS_LIBS. 31132# 31133# XSERVER_LIBS is the set of in-tree libraries which all servers require. 31134# XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers 31135# require. 31136# 31137XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}" 31138XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB" 31139XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}" 31140 31141 31142 31143UTILS_SYS_LIBS="${SYS_LIBS}" 31144 31145 31146# The Xorg binary needs to export symbols so that they can be used from modules 31147# Some platforms require extra flags to do this. libtool should set the 31148# necessary flags for each platform when -export-dynamic is passed to it. 31149LD_EXPORT_SYMBOLS_FLAG="-export-dynamic" 31150LD_NO_UNDEFINED_FLAG= 31151XORG_DRIVER_LIBS= 31152case "$host_os" in 31153 cygwin*) 31154 LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-all,--out-implib,lib\$@.a" 31155 LD_NO_UNDEFINED_FLAG="-no-undefined -Wl,\$(top_builddir)/hw/xfree86/libXorg.exe.a" 31156 XORG_DRIVER_LIBS="-lXorg.exe -L\${moduledir} -lshadow -lfb -no-undefined" 31157 CYGWIN=yes 31158 ;; 31159 solaris*) 31160 # We use AC_LINK_IFELSE to generate a temporary program conftest$EXEEXT 31161 # that we can link against for testing if the system linker is new 31162 # enough to support -z parent=<program> for verifying loadable modules 31163 # are only calling functions defined in either the loading program or 31164 # the libraries they're linked with. 31165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31166/* end confdefs.h. */ 31167int main(int argc, char **argv) { return 0; } 31168_ACEOF 31169if ac_fn_c_try_link "$LINENO" 31170then : 31171 mv conftest$EXEEXT conftest.parent 31172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,parent=conftest.parent -G" >&5 31173printf %s "checking whether the linker accepts -Wl,-z,parent=conftest.parent -G... " >&6; } 31174if test ${xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G+y} 31175then : 31176 printf %s "(cached) " >&6 31177else case e in #( 31178 e) 31179 ax_save_FLAGS=$LDFLAGS 31180 LDFLAGS="-Wl,-z,parent=conftest.parent -G" 31181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31182/* end confdefs.h. */ 31183extern int main(int argc, char **argv); 31184 int call_main(void) { return main(0, (void *)0); } 31185_ACEOF 31186if ac_fn_c_try_link "$LINENO" 31187then : 31188 xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=yes 31189else case e in #( 31190 e) xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=no ;; 31191esac 31192fi 31193rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31194 conftest$ac_exeext conftest.$ac_ext 31195 LDFLAGS=$ax_save_FLAGS ;; 31196esac 31197fi 31198 31199eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G 31200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5 31201printf "%s\n" "$xorg_check_linker_flags" >&6; } 31202if test "x$xorg_check_linker_flags" = xyes; then 31203 LD_NO_UNDEFINED_FLAG="-Wl,-z,defs -Wl,-z,parent=\$(top_builddir)/hw/xfree86/Xorg" 31204# Not set yet, since this gets exported in xorg-server.pc to all the drivers, 31205# and they're not all fixed to build correctly with it yet. 31206# XORG_DRIVER_LIBS="-Wl,-z,defs -Wl,-z,parent=${bindir}/Xorg" 31207 31208else 31209 : 31210fi 31211 31212 rm -f conftest.parent 31213 31214fi 31215rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31216 conftest$ac_exeext conftest.$ac_ext 31217 ;; 31218esac 31219 31220 31221 31222 if test x"$CYGWIN" = xyes; then 31223 CYGWIN_TRUE= 31224 CYGWIN_FALSE='#' 31225else 31226 CYGWIN_TRUE='#' 31227 CYGWIN_FALSE= 31228fi 31229 31230 if test x"$LD_NO_UNDEFINED_FLAG" != x; then 31231 NO_UNDEFINED_TRUE= 31232 NO_UNDEFINED_FALSE='#' 31233else 31234 NO_UNDEFINED_TRUE='#' 31235 NO_UNDEFINED_FALSE= 31236fi 31237 31238 31239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SVR4 needs to be defined" >&5 31240printf %s "checking if SVR4 needs to be defined... " >&6; } 31241cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31242/* end confdefs.h. */ 31243 31244#if defined(SVR4) || defined(__svr4__) || defined(__SVR4) 31245 I_AM_SVR4 31246#endif 31247 31248_ACEOF 31249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31250 $EGREP_TRADITIONAL "I_AM_SVR4" >/dev/null 2>&1 31251then : 31252 31253 31254printf "%s\n" "#define SVR4 1" >>confdefs.h 31255 31256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31257printf "%s\n" "yes" >&6; } 31258else case e in #( 31259 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31260printf "%s\n" "no" >&6; } ;; 31261esac 31262fi 31263rm -rf conftest* 31264 31265 31266XSERVER_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" 31267 31268 31269 31270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xvfb DDX" >&5 31271printf %s "checking whether to build Xvfb DDX... " >&6; } 31272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XVFB" >&5 31273printf "%s\n" "$XVFB" >&6; } 31274 if test "x$XVFB" = xyes; then 31275 XVFB_TRUE= 31276 XVFB_FALSE='#' 31277else 31278 XVFB_TRUE='#' 31279 XVFB_FALSE= 31280fi 31281 31282 31283if test "x$XVFB" = xyes; then 31284 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" 31285 XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS" 31286 31287 31288fi 31289 31290 31291 31292 31293pkg_failed=no 31294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBXEXT x11 xau $XDMCP_MODULES" >&5 31295printf %s "checking for $LIBXEXT x11 xau $XDMCP_MODULES... " >&6; } 31296 31297if test -n "$XNESTMODULES_CFLAGS"; then 31298 pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS" 31299 elif test -n "$PKG_CONFIG"; then 31300 if test -n "$PKG_CONFIG" && \ 31301 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5 31302 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5 31303 ac_status=$? 31304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31305 test $ac_status = 0; }; then 31306 pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null` 31307 test "x$?" != "x0" && pkg_failed=yes 31308else 31309 pkg_failed=yes 31310fi 31311 else 31312 pkg_failed=untried 31313fi 31314if test -n "$XNESTMODULES_LIBS"; then 31315 pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS" 31316 elif test -n "$PKG_CONFIG"; then 31317 if test -n "$PKG_CONFIG" && \ 31318 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5 31319 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5 31320 ac_status=$? 31321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31322 test $ac_status = 0; }; then 31323 pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null` 31324 test "x$?" != "x0" && pkg_failed=yes 31325else 31326 pkg_failed=yes 31327fi 31328 else 31329 pkg_failed=untried 31330fi 31331 31332 31333 31334if test $pkg_failed = yes; then 31335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31336printf "%s\n" "no" >&6; } 31337 31338if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31339 _pkg_short_errors_supported=yes 31340else 31341 _pkg_short_errors_supported=no 31342fi 31343 if test $_pkg_short_errors_supported = yes; then 31344 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1` 31345 else 31346 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1` 31347 fi 31348 # Put the nasty error message in config.log where it belongs 31349 echo "$XNESTMODULES_PKG_ERRORS" >&5 31350 31351 have_xnest=no 31352elif test $pkg_failed = untried; then 31353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31354printf "%s\n" "no" >&6; } 31355 have_xnest=no 31356else 31357 XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS 31358 XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS 31359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31360printf "%s\n" "yes" >&6; } 31361 have_xnest=yes 31362fi 31363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xnest DDX" >&5 31364printf %s "checking whether to build Xnest DDX... " >&6; } 31365if test "x$XNEST" = xauto; then 31366 XNEST="$have_xnest" 31367fi 31368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XNEST" >&5 31369printf "%s\n" "$XNEST" >&6; } 31370 if test "x$XNEST" = xyes; then 31371 XNEST_TRUE= 31372 XNEST_FALSE='#' 31373else 31374 XNEST_TRUE='#' 31375 XNEST_FALSE= 31376fi 31377 31378 31379if test "x$XNEST" = xyes; then 31380 if test "x$have_xnest" = xno; then 31381 as_fn_error $? "Xnest build explicitly requested, but required modules not found." "$LINENO" 5 31382 fi 31383 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" 31384 XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS" 31385 31386 31387fi 31388 31389 31390 31391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg DDX" >&5 31392printf %s "checking whether to build Xorg DDX... " >&6; } 31393if test "x$XORG" = xauto; then 31394 XORG="yes" 31395 case $host_os in 31396 cygwin*) XORG="no" ;; 31397 mingw*) XORG="no" ;; 31398 darwin*) XORG="no" ;; 31399 esac 31400fi 31401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG" >&5 31402printf "%s\n" "$XORG" >&6; } 31403 31404if test "x$XORG" = xyes; then 31405 31406pkg_failed=no 31407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBXCVT" >&5 31408printf %s "checking for $LIBXCVT... " >&6; } 31409 31410if test -n "$LIBXCVT_CFLAGS"; then 31411 pkg_cv_LIBXCVT_CFLAGS="$LIBXCVT_CFLAGS" 31412 elif test -n "$PKG_CONFIG"; then 31413 if test -n "$PKG_CONFIG" && \ 31414 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXCVT\""; } >&5 31415 ($PKG_CONFIG --exists --print-errors "$LIBXCVT") 2>&5 31416 ac_status=$? 31417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31418 test $ac_status = 0; }; then 31419 pkg_cv_LIBXCVT_CFLAGS=`$PKG_CONFIG --cflags "$LIBXCVT" 2>/dev/null` 31420 test "x$?" != "x0" && pkg_failed=yes 31421else 31422 pkg_failed=yes 31423fi 31424 else 31425 pkg_failed=untried 31426fi 31427if test -n "$LIBXCVT_LIBS"; then 31428 pkg_cv_LIBXCVT_LIBS="$LIBXCVT_LIBS" 31429 elif test -n "$PKG_CONFIG"; then 31430 if test -n "$PKG_CONFIG" && \ 31431 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXCVT\""; } >&5 31432 ($PKG_CONFIG --exists --print-errors "$LIBXCVT") 2>&5 31433 ac_status=$? 31434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31435 test $ac_status = 0; }; then 31436 pkg_cv_LIBXCVT_LIBS=`$PKG_CONFIG --libs "$LIBXCVT" 2>/dev/null` 31437 test "x$?" != "x0" && pkg_failed=yes 31438else 31439 pkg_failed=yes 31440fi 31441 else 31442 pkg_failed=untried 31443fi 31444 31445 31446 31447if test $pkg_failed = yes; then 31448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31449printf "%s\n" "no" >&6; } 31450 31451if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31452 _pkg_short_errors_supported=yes 31453else 31454 _pkg_short_errors_supported=no 31455fi 31456 if test $_pkg_short_errors_supported = yes; then 31457 LIBXCVT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXCVT" 2>&1` 31458 else 31459 LIBXCVT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXCVT" 2>&1` 31460 fi 31461 # Put the nasty error message in config.log where it belongs 31462 echo "$LIBXCVT_PKG_ERRORS" >&5 31463 31464 as_fn_error $? "Package requirements ($LIBXCVT) were not met: 31465 31466$LIBXCVT_PKG_ERRORS 31467 31468Consider adjusting the PKG_CONFIG_PATH environment variable if you 31469installed software in a non-standard prefix. 31470 31471Alternatively, you may set the environment variables LIBXCVT_CFLAGS 31472and LIBXCVT_LIBS to avoid the need to call pkg-config. 31473See the pkg-config man page for more details." "$LINENO" 5 31474elif test $pkg_failed = untried; then 31475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31476printf "%s\n" "no" >&6; } 31477 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 31478printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 31479as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31480is in your PATH or set the PKG_CONFIG environment variable to the full 31481path to pkg-config. 31482 31483Alternatively, you may set the environment variables LIBXCVT_CFLAGS 31484and LIBXCVT_LIBS to avoid the need to call pkg-config. 31485See the pkg-config man page for more details. 31486 31487To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31488See 'config.log' for more details" "$LINENO" 5; } 31489else 31490 LIBXCVT_CFLAGS=$pkg_cv_LIBXCVT_CFLAGS 31491 LIBXCVT_LIBS=$pkg_cv_LIBXCVT_LIBS 31492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31493printf "%s\n" "yes" >&6; } 31494 31495fi 31496 31497 XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common' 31498 XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os' 31499 XORG_INCS="$XORG_DDXINCS $XORG_OSINCS" 31500 XORG_CFLAGS="$XORGSERVER_CFLAGS $LIBXCVT_CFLAGS -DHAVE_XORG_CONFIG_H" 31501 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" 31502 XORG_SYS_LIBS="$XORG_SYS_LIBS $LIBXCVT_LIBS" 31503 31504 symbol_visibility= 31505 have_visibility=disabled 31506 if test x$SYMBOL_VISIBILITY != xno; then 31507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5 31508printf %s "checking for symbol visibility support... " >&6; } 31509 if test x$GCC = xyes; then 31510 VISIBILITY_CFLAGS="-fvisibility=hidden" 31511 else 31512 if test x$SUNCC = xyes; then 31513 VISIBILITY_CFLAGS="-xldscope=hidden" 31514 else 31515 have_visibility=no 31516 fi 31517 fi 31518 if test x$have_visibility != xno; then 31519 save_CFLAGS="$CFLAGS" 31520 proto_inc=`$PKG_CONFIG --cflags xproto` 31521 CFLAGS="$CFLAGS $VISIBILITY_CFLAGS $proto_inc" 31522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31523/* end confdefs.h. */ 31524 31525 #include <X11/Xfuncproto.h> 31526 extern _X_HIDDEN int hidden_int; 31527 extern _X_EXPORT int public_int; 31528 extern _X_HIDDEN int hidden_int_func(void); 31529 extern _X_EXPORT int public_int_func(void); 31530int 31531main (void) 31532{ 31533 31534 ; 31535 return 0; 31536} 31537_ACEOF 31538if ac_fn_c_try_compile "$LINENO" 31539then : 31540 have_visibility=yes 31541else case e in #( 31542 e) have_visibility=no ;; 31543esac 31544fi 31545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 31546 CFLAGS=$save_CFLAGS 31547 fi 31548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5 31549printf "%s\n" "$have_visibility" >&6; } 31550 if test x$have_visibility != xno; then 31551 symbol_visibility=$VISIBILITY_CFLAGS 31552 XORG_CFLAGS="$XORG_CFLAGS $VISIBILITY_CFLAGS" 31553 XSERVER_CFLAGS="$XSERVER_CFLAGS $VISIBILITY_CFLAGS" 31554 fi 31555 fi 31556 31557 31558 xorg_bus_bsdpci=no 31559 xorg_bus_sparc=no 31560 31561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg PCI functions" >&5 31562printf %s "checking whether to build Xorg PCI functions... " >&6; } 31563 if test "x$PCI" = xyes; then 31564 31565pkg_failed=no 31566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBPCIACCESS" >&5 31567printf %s "checking for $LIBPCIACCESS... " >&6; } 31568 31569if test -n "$PCIACCESS_CFLAGS"; then 31570 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 31571 elif test -n "$PKG_CONFIG"; then 31572 if test -n "$PKG_CONFIG" && \ 31573 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5 31574 ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5 31575 ac_status=$? 31576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31577 test $ac_status = 0; }; then 31578 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "$LIBPCIACCESS" 2>/dev/null` 31579 test "x$?" != "x0" && pkg_failed=yes 31580else 31581 pkg_failed=yes 31582fi 31583 else 31584 pkg_failed=untried 31585fi 31586if test -n "$PCIACCESS_LIBS"; then 31587 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 31588 elif test -n "$PKG_CONFIG"; then 31589 if test -n "$PKG_CONFIG" && \ 31590 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5 31591 ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5 31592 ac_status=$? 31593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31594 test $ac_status = 0; }; then 31595 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "$LIBPCIACCESS" 2>/dev/null` 31596 test "x$?" != "x0" && pkg_failed=yes 31597else 31598 pkg_failed=yes 31599fi 31600 else 31601 pkg_failed=untried 31602fi 31603 31604 31605 31606if test $pkg_failed = yes; then 31607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31608printf "%s\n" "no" >&6; } 31609 31610if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31611 _pkg_short_errors_supported=yes 31612else 31613 _pkg_short_errors_supported=no 31614fi 31615 if test $_pkg_short_errors_supported = yes; then 31616 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1` 31617 else 31618 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1` 31619 fi 31620 # Put the nasty error message in config.log where it belongs 31621 echo "$PCIACCESS_PKG_ERRORS" >&5 31622 31623 as_fn_error $? "Package requirements ($LIBPCIACCESS) were not met: 31624 31625$PCIACCESS_PKG_ERRORS 31626 31627Consider adjusting the PKG_CONFIG_PATH environment variable if you 31628installed software in a non-standard prefix. 31629 31630Alternatively, you may set the environment variables PCIACCESS_CFLAGS 31631and PCIACCESS_LIBS to avoid the need to call pkg-config. 31632See the pkg-config man page for more details." "$LINENO" 5 31633elif test $pkg_failed = untried; then 31634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31635printf "%s\n" "no" >&6; } 31636 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 31637printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 31638as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31639is in your PATH or set the PKG_CONFIG environment variable to the full 31640path to pkg-config. 31641 31642Alternatively, you may set the environment variables PCIACCESS_CFLAGS 31643and PCIACCESS_LIBS to avoid the need to call pkg-config. 31644See the pkg-config man page for more details. 31645 31646To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31647See 'config.log' for more details" "$LINENO" 5; } 31648else 31649 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 31650 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 31651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31652printf "%s\n" "yes" >&6; } 31653 31654fi 31655 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $LIBPCIACCESS" 31656 XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $LIBDRM_LIBS" 31657 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS $LIBDRM_CFLAGS" 31658 31659 31660printf "%s\n" "#define XSERVER_LIBPCIACCESS 1" >>confdefs.h 31661 31662 31663 prefix_NONE= 31664 exec_prefix_NONE= 31665 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31666 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31667 eval ac_define_dir="\"$PCI_TXT_IDS_DIR\"" 31668 eval ac_define_dir="\"$ac_define_dir\"" 31669 PCI_TXT_IDS_PATH="$ac_define_dir" 31670 31671 31672printf "%s\n" "#define PCI_TXT_IDS_PATH \"$ac_define_dir\"" >>confdefs.h 31673 31674 test "$prefix_NONE" && prefix=NONE 31675 test "$exec_prefix_NONE" && exec_prefix=NONE 31676 31677 case $host_os in 31678 gnu* | freebsd* | kfreebsd*-gnu | netbsd* | openbsd* | solaris* | dragonfly*) 31679 xorg_bus_bsdpci="yes" 31680 ;; 31681 esac 31682 case $host_cpu in 31683 sparc*) 31684 xorg_bus_sparc="yes" 31685 ;; 31686 esac 31687 else 31688 if test "x$CONFIG_UDEV_KMS" = xyes; then 31689 as_fn_error $? "Platform device enumeration requires libpciaccess" "$LINENO" 5 31690 fi 31691 if test "x$INT10MODULE" = xyes && test "x$INT10" != xstub; then 31692 as_fn_error $? "Cannot build int10 without libpciaccess" "$LINENO" 5 31693 fi 31694 fi 31695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCI" >&5 31696printf "%s\n" "$PCI" >&6; } 31697 31698 if test "x$CONFIG_UDEV_KMS" = xyes; then 31699 31700printf "%s\n" "#define XSERVER_PLATFORM_BUS 1" >>confdefs.h 31701 31702 fi 31703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSERVER_PLATFORM_BUS" >&5 31704printf "%s\n" "$XSERVER_PLATFORM_BUS" >&6; } 31705 31706 case $host_os in 31707 linux*) 31708 XORG_OS_SUBDIR="linux" 31709 linux_acpi="no" 31710 case $host_cpu in 31711 i*86|amd64*|x86_64*|ia64*) 31712 linux_acpi=$enable_linux_acpi 31713 ;; 31714 *) 31715 ;; 31716 esac 31717 for ac_header in linux/apm_bios.h 31718do : 31719 ac_fn_c_check_header_compile "$LINENO" "linux/apm_bios.h" "ac_cv_header_linux_apm_bios_h" "$ac_includes_default" 31720if test "x$ac_cv_header_linux_apm_bios_h" = xyes 31721then : 31722 printf "%s\n" "#define HAVE_LINUX_APM_BIOS_H 1" >>confdefs.h 31723 linux_apm=$enable_linux_apm 31724fi 31725 31726done 31727 ;; 31728 freebsd* | kfreebsd*-gnu | dragonfly*) 31729 XORG_OS_SUBDIR="bsd" 31730 ;; 31731 netbsd*) 31732 XORG_OS_SUBDIR="bsd" 31733 ;; 31734 openbsd*) 31735 XORG_OS_SUBDIR="bsd" 31736 ;; 31737 solaris*) 31738 XORG_OS_SUBDIR="solaris" 31739 ac_fn_c_check_header_compile "$LINENO" "sys/kd.h" "ac_cv_header_sys_kd_h" "$ac_includes_default" 31740if test "x$ac_cv_header_sys_kd_h" = xyes 31741then : 31742 printf "%s\n" "#define HAVE_SYS_KD_H 1" >>confdefs.h 31743 31744fi 31745 31746 for ac_header in sys/vt.h 31747do : 31748 ac_fn_c_check_header_compile "$LINENO" "sys/vt.h" "ac_cv_header_sys_vt_h" "$ac_includes_default" 31749if test "x$ac_cv_header_sys_vt_h" = xyes 31750then : 31751 printf "%s\n" "#define HAVE_SYS_VT_H 1" >>confdefs.h 31752 solaris_vt=yes 31753else case e in #( 31754 e) solaris_vt=no ;; 31755esac 31756fi 31757 31758done 31759 # Check for minimum supported release 31760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Solaris version" >&5 31761printf %s "checking Solaris version... " >&6; } 31762 OS_MINOR=`echo ${host_os}|$SED -e 's/^.*solaris2\.//' -e s'/\..*$//'` 31763 if test "${OS_MINOR}" -ge 7 ; then 31764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris ${OS_MINOR}" >&5 31765printf "%s\n" "Solaris ${OS_MINOR}" >&6; } 31766 else 31767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&5 31768printf "%s\n" "Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&6; } 31769 fi 31770 if test "${OS_MINOR}" -lt 8 ; then 31771 as_fn_error $? "This release no longer supports Solaris versions older than Solaris 8." "$LINENO" 5 31772 fi 31773 ac_fn_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 31774if test "x$ac_cv_have_decl__LP64" = xyes 31775then : 31776 SOLARIS_64="yes" 31777else case e in #( 31778 e) SOLARIS_64="no" ;; 31779esac 31780fi 31781 31782 case $host_cpu in 31783 sparc*) 31784 SOLARIS_INOUT_ARCH="sparcv8plus" 31785 ;; 31786 i*86|x86_64*) 31787 if test x$SOLARIS_64 = xyes ; then 31788 SOLARIS_INOUT_ARCH="amd64" 31789 else 31790 SOLARIS_INOUT_ARCH="ia32" 31791 fi 31792 ;; 31793 *) 31794 as_fn_error $? "Unsupported Solaris platform. Only SPARC & x86 \ 31795 are supported on Solaris in this release. If you are \ 31796 interested in porting Xorg to your platform, please email \ 31797 xorg@lists.freedesktop.org." "$LINENO" 5 ;; 31798 esac 31799 31800 ;; 31801 gnu*) 31802 XORG_OS_SUBDIR="hurd" 31803 ;; 31804 cygwin*) 31805 XORG_OS_SUBDIR="stub" 31806 ;; 31807 *) 31808 XORG_OS_SUBDIR="stub" 31809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Your OS is unknown. If you are interested in porting Xorg to your platform, 31810please email xorg@lists.freedesktop.org." >&5 31811printf "%s\n" "$as_me: Your OS is unknown. If you are interested in porting Xorg to your platform, 31812please email xorg@lists.freedesktop.org." >&6;} 31813 ;; 31814 esac 31815 31816 if test "x$DGA" = xauto; then 31817 31818pkg_failed=no 31819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $DGAPROTO" >&5 31820printf %s "checking for $DGAPROTO... " >&6; } 31821 31822if test -n "$DGA_CFLAGS"; then 31823 pkg_cv_DGA_CFLAGS="$DGA_CFLAGS" 31824 elif test -n "$PKG_CONFIG"; then 31825 if test -n "$PKG_CONFIG" && \ 31826 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 31827 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 31828 ac_status=$? 31829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31830 test $ac_status = 0; }; then 31831 pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null` 31832 test "x$?" != "x0" && pkg_failed=yes 31833else 31834 pkg_failed=yes 31835fi 31836 else 31837 pkg_failed=untried 31838fi 31839if test -n "$DGA_LIBS"; then 31840 pkg_cv_DGA_LIBS="$DGA_LIBS" 31841 elif test -n "$PKG_CONFIG"; then 31842 if test -n "$PKG_CONFIG" && \ 31843 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 31844 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 31845 ac_status=$? 31846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31847 test $ac_status = 0; }; then 31848 pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null` 31849 test "x$?" != "x0" && pkg_failed=yes 31850else 31851 pkg_failed=yes 31852fi 31853 else 31854 pkg_failed=untried 31855fi 31856 31857 31858 31859if test $pkg_failed = yes; then 31860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31861printf "%s\n" "no" >&6; } 31862 31863if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31864 _pkg_short_errors_supported=yes 31865else 31866 _pkg_short_errors_supported=no 31867fi 31868 if test $_pkg_short_errors_supported = yes; then 31869 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1` 31870 else 31871 DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1` 31872 fi 31873 # Put the nasty error message in config.log where it belongs 31874 echo "$DGA_PKG_ERRORS" >&5 31875 31876 DGA=no 31877elif test $pkg_failed = untried; then 31878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31879printf "%s\n" "no" >&6; } 31880 DGA=no 31881else 31882 DGA_CFLAGS=$pkg_cv_DGA_CFLAGS 31883 DGA_LIBS=$pkg_cv_DGA_LIBS 31884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31885printf "%s\n" "yes" >&6; } 31886 DGA=yes 31887fi 31888 fi 31889 if test "x$DGA" = xyes; then 31890 XORG_MODULES="$XORG_MODULES $DGAPROTO" 31891 31892pkg_failed=no 31893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $DGAPROTO" >&5 31894printf %s "checking for $DGAPROTO... " >&6; } 31895 31896if test -n "$DGA_CFLAGS"; then 31897 pkg_cv_DGA_CFLAGS="$DGA_CFLAGS" 31898 elif test -n "$PKG_CONFIG"; then 31899 if test -n "$PKG_CONFIG" && \ 31900 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 31901 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 31902 ac_status=$? 31903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31904 test $ac_status = 0; }; then 31905 pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null` 31906 test "x$?" != "x0" && pkg_failed=yes 31907else 31908 pkg_failed=yes 31909fi 31910 else 31911 pkg_failed=untried 31912fi 31913if test -n "$DGA_LIBS"; then 31914 pkg_cv_DGA_LIBS="$DGA_LIBS" 31915 elif test -n "$PKG_CONFIG"; then 31916 if test -n "$PKG_CONFIG" && \ 31917 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 31918 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 31919 ac_status=$? 31920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31921 test $ac_status = 0; }; then 31922 pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null` 31923 test "x$?" != "x0" && pkg_failed=yes 31924else 31925 pkg_failed=yes 31926fi 31927 else 31928 pkg_failed=untried 31929fi 31930 31931 31932 31933if test $pkg_failed = yes; then 31934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31935printf "%s\n" "no" >&6; } 31936 31937if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31938 _pkg_short_errors_supported=yes 31939else 31940 _pkg_short_errors_supported=no 31941fi 31942 if test $_pkg_short_errors_supported = yes; then 31943 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1` 31944 else 31945 DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1` 31946 fi 31947 # Put the nasty error message in config.log where it belongs 31948 echo "$DGA_PKG_ERRORS" >&5 31949 31950 as_fn_error $? "Package requirements ($DGAPROTO) were not met: 31951 31952$DGA_PKG_ERRORS 31953 31954Consider adjusting the PKG_CONFIG_PATH environment variable if you 31955installed software in a non-standard prefix. 31956 31957Alternatively, you may set the environment variables DGA_CFLAGS 31958and DGA_LIBS to avoid the need to call pkg-config. 31959See the pkg-config man page for more details." "$LINENO" 5 31960elif test $pkg_failed = untried; then 31961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31962printf "%s\n" "no" >&6; } 31963 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 31964printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 31965as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31966is in your PATH or set the PKG_CONFIG environment variable to the full 31967path to pkg-config. 31968 31969Alternatively, you may set the environment variables DGA_CFLAGS 31970and DGA_LIBS to avoid the need to call pkg-config. 31971See the pkg-config man page for more details. 31972 31973To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31974See 'config.log' for more details" "$LINENO" 5; } 31975else 31976 DGA_CFLAGS=$pkg_cv_DGA_CFLAGS 31977 DGA_LIBS=$pkg_cv_DGA_LIBS 31978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31979printf "%s\n" "yes" >&6; } 31980 31981fi 31982 31983printf "%s\n" "#define DGA 1" >>confdefs.h 31984 31985 31986printf "%s\n" "#define XFreeXDGA 1" >>confdefs.h 31987 31988 fi 31989 31990 if test "x$XF86VIDMODE" = xyes; then 31991 XORG_MODULES="$XORG_MODULES $VIDMODEPROTO" 31992 fi 31993 31994 if test -n "$XORG_MODULES"; then 31995 31996pkg_failed=no 31997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $XORG_MODULES" >&5 31998printf %s "checking for $XORG_MODULES... " >&6; } 31999 32000if test -n "$XORG_MODULES_CFLAGS"; then 32001 pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS" 32002 elif test -n "$PKG_CONFIG"; then 32003 if test -n "$PKG_CONFIG" && \ 32004 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5 32005 ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5 32006 ac_status=$? 32007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32008 test $ac_status = 0; }; then 32009 pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null` 32010 test "x$?" != "x0" && pkg_failed=yes 32011else 32012 pkg_failed=yes 32013fi 32014 else 32015 pkg_failed=untried 32016fi 32017if test -n "$XORG_MODULES_LIBS"; then 32018 pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS" 32019 elif test -n "$PKG_CONFIG"; then 32020 if test -n "$PKG_CONFIG" && \ 32021 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5 32022 ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5 32023 ac_status=$? 32024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32025 test $ac_status = 0; }; then 32026 pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null` 32027 test "x$?" != "x0" && pkg_failed=yes 32028else 32029 pkg_failed=yes 32030fi 32031 else 32032 pkg_failed=untried 32033fi 32034 32035 32036 32037if test $pkg_failed = yes; then 32038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32039printf "%s\n" "no" >&6; } 32040 32041if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32042 _pkg_short_errors_supported=yes 32043else 32044 _pkg_short_errors_supported=no 32045fi 32046 if test $_pkg_short_errors_supported = yes; then 32047 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XORG_MODULES" 2>&1` 32048 else 32049 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XORG_MODULES" 2>&1` 32050 fi 32051 # Put the nasty error message in config.log where it belongs 32052 echo "$XORG_MODULES_PKG_ERRORS" >&5 32053 32054 as_fn_error $? "Package requirements ($XORG_MODULES) were not met: 32055 32056$XORG_MODULES_PKG_ERRORS 32057 32058Consider adjusting the PKG_CONFIG_PATH environment variable if you 32059installed software in a non-standard prefix. 32060 32061Alternatively, you may set the environment variables XORG_MODULES_CFLAGS 32062and XORG_MODULES_LIBS to avoid the need to call pkg-config. 32063See the pkg-config man page for more details." "$LINENO" 5 32064elif test $pkg_failed = untried; then 32065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32066printf "%s\n" "no" >&6; } 32067 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 32068printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 32069as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32070is in your PATH or set the PKG_CONFIG environment variable to the full 32071path to pkg-config. 32072 32073Alternatively, you may set the environment variables XORG_MODULES_CFLAGS 32074and XORG_MODULES_LIBS to avoid the need to call pkg-config. 32075See the pkg-config man page for more details. 32076 32077To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32078See 'config.log' for more details" "$LINENO" 5; } 32079else 32080 XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS 32081 XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS 32082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32083printf "%s\n" "yes" >&6; } 32084 32085fi 32086 XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS" 32087 XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS" 32088 fi 32089 32090 if test "x$DRM" = xyes -a "x$DRI2" = xyes; then 32091 XORG_DRIVER_MODESETTING=yes 32092 fi 32093 32094 32095 32096 32097 32098 32099 32100 XF86CONFIGFILE="xorg.conf" 32101 XF86CONFIGDIR="xorg.conf.d" 32102 32103 LOGPREFIX="Xorg." 32104 XDG_DATA_HOME=".local/share" 32105 XDG_DATA_HOME_LOGDIR="xorg" 32106 32107printf "%s\n" "#define XORG_SERVER 1" >>confdefs.h 32108 32109 32110printf "%s\n" "#define XORGSERVER 1" >>confdefs.h 32111 32112 32113printf "%s\n" "#define XFree86Server 1" >>confdefs.h 32114 32115 32116printf "%s\n" "#define XORG_VERSION_CURRENT $VENDOR_RELEASE" >>confdefs.h 32117 32118 32119printf "%s\n" "#define NEED_XF86_TYPES 1" >>confdefs.h 32120 32121 32122printf "%s\n" "#define NEED_XF86_PROTOTYPES 1" >>confdefs.h 32123 32124 32125printf "%s\n" "#define __XSERVERNAME__ \"Xorg\"" >>confdefs.h 32126 32127 32128 prefix_NONE= 32129 exec_prefix_NONE= 32130 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32131 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32132 eval ac_define_dir="\"$XF86CONFIGFILE\"" 32133 eval ac_define_dir="\"$ac_define_dir\"" 32134 XCONFIGFILE="$ac_define_dir" 32135 32136 32137printf "%s\n" "#define XCONFIGFILE \"$ac_define_dir\"" >>confdefs.h 32138 32139 test "$prefix_NONE" && prefix=NONE 32140 test "$exec_prefix_NONE" && exec_prefix=NONE 32141 32142 32143 prefix_NONE= 32144 exec_prefix_NONE= 32145 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32146 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32147 eval ac_define_dir="\"$XF86CONFIGFILE\"" 32148 eval ac_define_dir="\"$ac_define_dir\"" 32149 XF86CONFIGFILE="$ac_define_dir" 32150 32151 32152printf "%s\n" "#define XF86CONFIGFILE \"$ac_define_dir\"" >>confdefs.h 32153 32154 test "$prefix_NONE" && prefix=NONE 32155 test "$exec_prefix_NONE" && exec_prefix=NONE 32156 32157 32158 prefix_NONE= 32159 exec_prefix_NONE= 32160 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32161 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32162 eval ac_define_dir="\"$XF86CONFIGDIR\"" 32163 eval ac_define_dir="\"$ac_define_dir\"" 32164 XCONFIGDIR="$ac_define_dir" 32165 32166 32167printf "%s\n" "#define XCONFIGDIR \"$ac_define_dir\"" >>confdefs.h 32168 32169 test "$prefix_NONE" && prefix=NONE 32170 test "$exec_prefix_NONE" && exec_prefix=NONE 32171 32172 32173 prefix_NONE= 32174 exec_prefix_NONE= 32175 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32176 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32177 eval ac_define_dir="\"$moduledir\"" 32178 eval ac_define_dir="\"$ac_define_dir\"" 32179 DEFAULT_MODULE_PATH="$ac_define_dir" 32180 32181 32182printf "%s\n" "#define DEFAULT_MODULE_PATH \"$ac_define_dir\"" >>confdefs.h 32183 32184 test "$prefix_NONE" && prefix=NONE 32185 test "$exec_prefix_NONE" && exec_prefix=NONE 32186 32187 32188 prefix_NONE= 32189 exec_prefix_NONE= 32190 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32191 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32192 eval ac_define_dir="\"$libdir\"" 32193 eval ac_define_dir="\"$ac_define_dir\"" 32194 DEFAULT_LIBRARY_PATH="$ac_define_dir" 32195 32196 32197printf "%s\n" "#define DEFAULT_LIBRARY_PATH \"$ac_define_dir\"" >>confdefs.h 32198 32199 test "$prefix_NONE" && prefix=NONE 32200 test "$exec_prefix_NONE" && exec_prefix=NONE 32201 32202 32203 prefix_NONE= 32204 exec_prefix_NONE= 32205 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32206 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32207 eval ac_define_dir="\"$logdir\"" 32208 eval ac_define_dir="\"$ac_define_dir\"" 32209 DEFAULT_LOGDIR="$ac_define_dir" 32210 32211 32212printf "%s\n" "#define DEFAULT_LOGDIR \"$ac_define_dir\"" >>confdefs.h 32213 32214 test "$prefix_NONE" && prefix=NONE 32215 test "$exec_prefix_NONE" && exec_prefix=NONE 32216 32217 32218 prefix_NONE= 32219 exec_prefix_NONE= 32220 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32221 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32222 eval ac_define_dir="\"$LOGPREFIX\"" 32223 eval ac_define_dir="\"$ac_define_dir\"" 32224 DEFAULT_LOGPREFIX="$ac_define_dir" 32225 32226 32227printf "%s\n" "#define DEFAULT_LOGPREFIX \"$ac_define_dir\"" >>confdefs.h 32228 32229 test "$prefix_NONE" && prefix=NONE 32230 test "$exec_prefix_NONE" && exec_prefix=NONE 32231 32232 32233 prefix_NONE= 32234 exec_prefix_NONE= 32235 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32236 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32237 eval ac_define_dir="\"$XDG_DATA_HOME\"" 32238 eval ac_define_dir="\"$ac_define_dir\"" 32239 DEFAULT_XDG_DATA_HOME="$ac_define_dir" 32240 32241 32242printf "%s\n" "#define DEFAULT_XDG_DATA_HOME \"$ac_define_dir\"" >>confdefs.h 32243 32244 test "$prefix_NONE" && prefix=NONE 32245 test "$exec_prefix_NONE" && exec_prefix=NONE 32246 32247 32248 prefix_NONE= 32249 exec_prefix_NONE= 32250 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32251 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32252 eval ac_define_dir="\"$XDG_DATA_HOME_LOGDIR\"" 32253 eval ac_define_dir="\"$ac_define_dir\"" 32254 DEFAULT_XDG_DATA_HOME_LOGDIR="$ac_define_dir" 32255 32256 32257printf "%s\n" "#define DEFAULT_XDG_DATA_HOME_LOGDIR \"$ac_define_dir\"" >>confdefs.h 32258 32259 test "$prefix_NONE" && prefix=NONE 32260 test "$exec_prefix_NONE" && exec_prefix=NONE 32261 32262 32263printf "%s\n" "#define __VENDORDWEBSUPPORT__ \"$VENDOR_WEB\"" >>confdefs.h 32264 32265 if test "x$VGAHW" = xyes; then 32266 32267printf "%s\n" "#define WITH_VGAHW 1" >>confdefs.h 32268 32269 fi 32270 32271 driverdir="$moduledir/drivers" 32272 32273 32274 sdkdir="$includedir/xorg" 32275 extdir="$includedir/X11/extensions" 32276 sysconfigdir="$datadir/X11/$XF86CONFIGDIR" 32277 32278 32279 32280 32281 32282 # stuff the ABI versions into the pc file too 32283 extract_abi() { 32284 grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' ' .' | awk '{ print $4$5 }' 32285 } 32286 abi_ansic=`extract_abi ANSIC` 32287 abi_videodrv=`extract_abi VIDEODRV` 32288 abi_xinput=`extract_abi XINPUT` 32289 abi_extension=`extract_abi EXTENSION` 32290 32291 32292 32293 32294fi 32295 if test "x$XORG" = xyes; then 32296 XORG_TRUE= 32297 XORG_FALSE='#' 32298else 32299 XORG_TRUE='#' 32300 XORG_FALSE= 32301fi 32302 32303 if test "x$PCI" = xyes; then 32304 XORG_BUS_PCI_TRUE= 32305 XORG_BUS_PCI_FALSE='#' 32306else 32307 XORG_BUS_PCI_TRUE='#' 32308 XORG_BUS_PCI_FALSE= 32309fi 32310 32311 if test "x$xorg_bus_bsdpci" = xyes; then 32312 XORG_BUS_BSDPCI_TRUE= 32313 XORG_BUS_BSDPCI_FALSE='#' 32314else 32315 XORG_BUS_BSDPCI_TRUE='#' 32316 XORG_BUS_BSDPCI_FALSE= 32317fi 32318 32319 if test "x$xorg_bus_sparc" = xyes; then 32320 XORG_BUS_SPARC_TRUE= 32321 XORG_BUS_SPARC_FALSE='#' 32322else 32323 XORG_BUS_SPARC_TRUE='#' 32324 XORG_BUS_SPARC_FALSE= 32325fi 32326 32327 if test "x$linux_acpi" = xyes; then 32328 LNXACPI_TRUE= 32329 LNXACPI_FALSE='#' 32330else 32331 LNXACPI_TRUE='#' 32332 LNXACPI_FALSE= 32333fi 32334 32335 if test "x$linux_apm" = xyes; then 32336 LNXAPM_TRUE= 32337 LNXAPM_FALSE='#' 32338else 32339 LNXAPM_TRUE='#' 32340 LNXAPM_FALSE= 32341fi 32342 32343 if test "x$solaris_vt" = xyes; then 32344 SOLARIS_VT_TRUE= 32345 SOLARIS_VT_FALSE='#' 32346else 32347 SOLARIS_VT_TRUE='#' 32348 SOLARIS_VT_FALSE= 32349fi 32350 32351 if test "x$DGA" = xyes; then 32352 DGA_TRUE= 32353 DGA_FALSE='#' 32354else 32355 DGA_TRUE='#' 32356 DGA_FALSE= 32357fi 32358 32359 if test "x$CONFIG_UDEV_KMS" = xyes; then 32360 XORG_BUS_PLATFORM_TRUE= 32361 XORG_BUS_PLATFORM_FALSE='#' 32362else 32363 XORG_BUS_PLATFORM_TRUE='#' 32364 XORG_BUS_PLATFORM_FALSE= 32365fi 32366 32367 if test "x$XORG_DRIVER_MODESETTING" = xyes; then 32368 XORG_DRIVER_MODESETTING_TRUE= 32369 XORG_DRIVER_MODESETTING_FALSE='#' 32370else 32371 XORG_DRIVER_MODESETTING_TRUE='#' 32372 XORG_DRIVER_MODESETTING_FALSE= 32373fi 32374 32375 if test "x$XORG_DRIVER_INPUT_INPUTTEST" = xyes; then 32376 XORG_DRIVER_INPUT_INPUTTEST_TRUE= 32377 XORG_DRIVER_INPUT_INPUTTEST_FALSE='#' 32378else 32379 XORG_DRIVER_INPUT_INPUTTEST_TRUE='#' 32380 XORG_DRIVER_INPUT_INPUTTEST_FALSE= 32381fi 32382 32383 32384if test "x$GLAMOR" = xauto; then 32385 if echo "$XORG" "$XEPHYR" | grep -q yes ; then 32386 GLAMOR=yes 32387 fi 32388fi 32389 32390 if test "x$GLAMOR" = xyes; then 32391 GLAMOR_TRUE= 32392 GLAMOR_FALSE='#' 32393else 32394 GLAMOR_TRUE='#' 32395 GLAMOR_FALSE= 32396fi 32397 32398 32399if test "x$GLAMOR" = xyes; then 32400 32401printf "%s\n" "#define GLAMOR 1" >>confdefs.h 32402 32403 32404pkg_failed=no 32405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoxy" >&5 32406printf %s "checking for epoxy... " >&6; } 32407 32408if test -n "$GLAMOR_CFLAGS"; then 32409 pkg_cv_GLAMOR_CFLAGS="$GLAMOR_CFLAGS" 32410 elif test -n "$PKG_CONFIG"; then 32411 if test -n "$PKG_CONFIG" && \ 32412 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5 32413 ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5 32414 ac_status=$? 32415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32416 test $ac_status = 0; }; then 32417 pkg_cv_GLAMOR_CFLAGS=`$PKG_CONFIG --cflags "epoxy" 2>/dev/null` 32418 test "x$?" != "x0" && pkg_failed=yes 32419else 32420 pkg_failed=yes 32421fi 32422 else 32423 pkg_failed=untried 32424fi 32425if test -n "$GLAMOR_LIBS"; then 32426 pkg_cv_GLAMOR_LIBS="$GLAMOR_LIBS" 32427 elif test -n "$PKG_CONFIG"; then 32428 if test -n "$PKG_CONFIG" && \ 32429 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5 32430 ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5 32431 ac_status=$? 32432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32433 test $ac_status = 0; }; then 32434 pkg_cv_GLAMOR_LIBS=`$PKG_CONFIG --libs "epoxy" 2>/dev/null` 32435 test "x$?" != "x0" && pkg_failed=yes 32436else 32437 pkg_failed=yes 32438fi 32439 else 32440 pkg_failed=untried 32441fi 32442 32443 32444 32445if test $pkg_failed = yes; then 32446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32447printf "%s\n" "no" >&6; } 32448 32449if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32450 _pkg_short_errors_supported=yes 32451else 32452 _pkg_short_errors_supported=no 32453fi 32454 if test $_pkg_short_errors_supported = yes; then 32455 GLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "epoxy" 2>&1` 32456 else 32457 GLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "epoxy" 2>&1` 32458 fi 32459 # Put the nasty error message in config.log where it belongs 32460 echo "$GLAMOR_PKG_ERRORS" >&5 32461 32462 as_fn_error $? "Package requirements (epoxy) were not met: 32463 32464$GLAMOR_PKG_ERRORS 32465 32466Consider adjusting the PKG_CONFIG_PATH environment variable if you 32467installed software in a non-standard prefix. 32468 32469Alternatively, you may set the environment variables GLAMOR_CFLAGS 32470and GLAMOR_LIBS to avoid the need to call pkg-config. 32471See the pkg-config man page for more details." "$LINENO" 5 32472elif test $pkg_failed = untried; then 32473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32474printf "%s\n" "no" >&6; } 32475 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 32476printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 32477as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32478is in your PATH or set the PKG_CONFIG environment variable to the full 32479path to pkg-config. 32480 32481Alternatively, you may set the environment variables GLAMOR_CFLAGS 32482and GLAMOR_LIBS to avoid the need to call pkg-config. 32483See the pkg-config man page for more details. 32484 32485To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32486See 'config.log' for more details" "$LINENO" 5; } 32487else 32488 GLAMOR_CFLAGS=$pkg_cv_GLAMOR_CFLAGS 32489 GLAMOR_LIBS=$pkg_cv_GLAMOR_LIBS 32490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32491printf "%s\n" "yes" >&6; } 32492 32493fi 32494 32495 if test -n "$PKG_CONFIG" && \ 32496 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.4.4\""; } >&5 32497 ($PKG_CONFIG --exists --print-errors "epoxy >= 1.4.4") 2>&5 32498 ac_status=$? 32499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32500 test $ac_status = 0; }; then 32501 32502printf "%s\n" "#define GLAMOR_HAS_EGL_QUERY_DMABUF 1" >>confdefs.h 32503 32504fi 32505 32506 if test -n "$PKG_CONFIG" && \ 32507 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.5.4\""; } >&5 32508 ($PKG_CONFIG --exists --print-errors "epoxy >= 1.5.4") 2>&5 32509 ac_status=$? 32510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32511 test $ac_status = 0; }; then 32512 32513printf "%s\n" "#define GLAMOR_HAS_EGL_QUERY_DRIVER 1" >>confdefs.h 32514 32515fi 32516 32517 32518pkg_failed=no 32519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"$LIBGBM\"" >&5 32520printf %s "checking for \"$LIBGBM\"... " >&6; } 32521 32522if test -n "$GBM_CFLAGS"; then 32523 pkg_cv_GBM_CFLAGS="$GBM_CFLAGS" 32524 elif test -n "$PKG_CONFIG"; then 32525 if test -n "$PKG_CONFIG" && \ 32526 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5 32527 ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5 32528 ac_status=$? 32529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32530 test $ac_status = 0; }; then 32531 pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags ""$LIBGBM"" 2>/dev/null` 32532 test "x$?" != "x0" && pkg_failed=yes 32533else 32534 pkg_failed=yes 32535fi 32536 else 32537 pkg_failed=untried 32538fi 32539if test -n "$GBM_LIBS"; then 32540 pkg_cv_GBM_LIBS="$GBM_LIBS" 32541 elif test -n "$PKG_CONFIG"; then 32542 if test -n "$PKG_CONFIG" && \ 32543 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5 32544 ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5 32545 ac_status=$? 32546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32547 test $ac_status = 0; }; then 32548 pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs ""$LIBGBM"" 2>/dev/null` 32549 test "x$?" != "x0" && pkg_failed=yes 32550else 32551 pkg_failed=yes 32552fi 32553 else 32554 pkg_failed=untried 32555fi 32556 32557 32558 32559if test $pkg_failed = yes; then 32560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32561printf "%s\n" "no" >&6; } 32562 32563if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32564 _pkg_short_errors_supported=yes 32565else 32566 _pkg_short_errors_supported=no 32567fi 32568 if test $_pkg_short_errors_supported = yes; then 32569 GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""$LIBGBM"" 2>&1` 32570 else 32571 GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""$LIBGBM"" 2>&1` 32572 fi 32573 # Put the nasty error message in config.log where it belongs 32574 echo "$GBM_PKG_ERRORS" >&5 32575 32576 GBM=no 32577elif test $pkg_failed = untried; then 32578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32579printf "%s\n" "no" >&6; } 32580 GBM=no 32581else 32582 GBM_CFLAGS=$pkg_cv_GBM_CFLAGS 32583 GBM_LIBS=$pkg_cv_GBM_LIBS 32584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32585printf "%s\n" "yes" >&6; } 32586 GBM=yes 32587fi 32588 if test "x$GBM" = xyes; then 32589 32590printf "%s\n" "#define GLAMOR_HAS_GBM 1" >>confdefs.h 32591 32592 ac_fn_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h> 32593 #include <gbm.h> 32594" "$ac_c_undeclared_builtin_options" "CFLAGS" 32595if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes 32596then : 32597 32598printf "%s\n" "#define GLAMOR_HAS_GBM_LINEAR 1" >>confdefs.h 32599 32600fi 32601 if test -n "$PKG_CONFIG" && \ 32602 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 17.1.0\""; } >&5 32603 ($PKG_CONFIG --exists --print-errors "gbm >= 17.1.0") 2>&5 32604 ac_status=$? 32605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32606 test $ac_status = 0; }; then 32607 32608printf "%s\n" "#define GBM_BO_WITH_MODIFIERS 1" >>confdefs.h 32609 32610fi 32611 else 32612 if test "x$XORG" = xyes; then 32613 as_fn_error $? "Glamor for Xorg requires $LIBGBM" "$LINENO" 5 32614 fi 32615 fi 32616fi 32617 if test "x$GBM" = xyes; then 32618 GLAMOR_EGL_TRUE= 32619 GLAMOR_EGL_FALSE='#' 32620else 32621 GLAMOR_EGL_TRUE='#' 32622 GLAMOR_EGL_FALSE= 32623fi 32624 32625 32626 32627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build XWin DDX" >&5 32628printf %s "checking whether to build XWin DDX... " >&6; } 32629if test "x$XWIN" = xauto; then 32630 case $host_os in 32631 cygwin*) XWIN="yes" ;; 32632 mingw*) XWIN="yes" ;; 32633 *) XWIN="no" ;; 32634 esac 32635fi 32636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XWIN" >&5 32637printf "%s\n" "$XWIN" >&6; } 32638 32639if test "x$XWIN" = xyes; then 32640 32641 prefix_NONE= 32642 exec_prefix_NONE= 32643 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32644 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32645 eval ac_define_dir="\"$logdir\"" 32646 eval ac_define_dir="\"$ac_define_dir\"" 32647 DEFAULT_LOGDIR="$ac_define_dir" 32648 32649 32650printf "%s\n" "#define DEFAULT_LOGDIR \"$ac_define_dir\"" >>confdefs.h 32651 32652 test "$prefix_NONE" && prefix=NONE 32653 test "$exec_prefix_NONE" && exec_prefix=NONE 32654 32655 32656printf "%s\n" "#define XORG_VERSION_CURRENT $VENDOR_RELEASE" >>confdefs.h 32657 32658 32659printf "%s\n" "#define __VENDORDWEBSUPPORT__ \"$VENDOR_WEB\"" >>confdefs.h 32660 32661 if test -n "$ac_tool_prefix"; then 32662 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 32663set dummy ${ac_tool_prefix}windres; ac_word=$2 32664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32665printf %s "checking for $ac_word... " >&6; } 32666if test ${ac_cv_prog_WINDRES+y} 32667then : 32668 printf %s "(cached) " >&6 32669else case e in #( 32670 e) if test -n "$WINDRES"; then 32671 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 32672else 32673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32674for as_dir in $PATH 32675do 32676 IFS=$as_save_IFS 32677 case $as_dir in #((( 32678 '') as_dir=./ ;; 32679 */) ;; 32680 *) as_dir=$as_dir/ ;; 32681 esac 32682 for ac_exec_ext in '' $ac_executable_extensions; do 32683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32684 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 32685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32686 break 2 32687 fi 32688done 32689 done 32690IFS=$as_save_IFS 32691 32692fi ;; 32693esac 32694fi 32695WINDRES=$ac_cv_prog_WINDRES 32696if test -n "$WINDRES"; then 32697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 32698printf "%s\n" "$WINDRES" >&6; } 32699else 32700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32701printf "%s\n" "no" >&6; } 32702fi 32703 32704 32705fi 32706if test -z "$ac_cv_prog_WINDRES"; then 32707 ac_ct_WINDRES=$WINDRES 32708 # Extract the first word of "windres", so it can be a program name with args. 32709set dummy windres; ac_word=$2 32710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32711printf %s "checking for $ac_word... " >&6; } 32712if test ${ac_cv_prog_ac_ct_WINDRES+y} 32713then : 32714 printf %s "(cached) " >&6 32715else case e in #( 32716 e) if test -n "$ac_ct_WINDRES"; then 32717 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 32718else 32719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32720for as_dir in $PATH 32721do 32722 IFS=$as_save_IFS 32723 case $as_dir in #((( 32724 '') as_dir=./ ;; 32725 */) ;; 32726 *) as_dir=$as_dir/ ;; 32727 esac 32728 for ac_exec_ext in '' $ac_executable_extensions; do 32729 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32730 ac_cv_prog_ac_ct_WINDRES="windres" 32731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32732 break 2 32733 fi 32734done 32735 done 32736IFS=$as_save_IFS 32737 32738fi ;; 32739esac 32740fi 32741ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 32742if test -n "$ac_ct_WINDRES"; then 32743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 32744printf "%s\n" "$ac_ct_WINDRES" >&6; } 32745else 32746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32747printf "%s\n" "no" >&6; } 32748fi 32749 32750 if test "x$ac_ct_WINDRES" = x; then 32751 WINDRES="" 32752 else 32753 case $cross_compiling:$ac_tool_warned in 32754yes:) 32755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32756printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32757ac_tool_warned=yes ;; 32758esac 32759 WINDRES=$ac_ct_WINDRES 32760 fi 32761else 32762 WINDRES="$ac_cv_prog_WINDRES" 32763fi 32764 32765 32766 32767pkg_failed=no 32768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" >&5 32769printf %s "checking for xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes... " >&6; } 32770 32771if test -n "$XWINMODULES_CFLAGS"; then 32772 pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS" 32773 elif test -n "$PKG_CONFIG"; then 32774 if test -n "$PKG_CONFIG" && \ 32775 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes\""; } >&5 32776 ($PKG_CONFIG --exists --print-errors "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes") 2>&5 32777 ac_status=$? 32778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32779 test $ac_status = 0; }; then 32780 pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>/dev/null` 32781 test "x$?" != "x0" && pkg_failed=yes 32782else 32783 pkg_failed=yes 32784fi 32785 else 32786 pkg_failed=untried 32787fi 32788if test -n "$XWINMODULES_LIBS"; then 32789 pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS" 32790 elif test -n "$PKG_CONFIG"; then 32791 if test -n "$PKG_CONFIG" && \ 32792 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes\""; } >&5 32793 ($PKG_CONFIG --exists --print-errors "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes") 2>&5 32794 ac_status=$? 32795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32796 test $ac_status = 0; }; then 32797 pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>/dev/null` 32798 test "x$?" != "x0" && pkg_failed=yes 32799else 32800 pkg_failed=yes 32801fi 32802 else 32803 pkg_failed=untried 32804fi 32805 32806 32807 32808if test $pkg_failed = yes; then 32809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32810printf "%s\n" "no" >&6; } 32811 32812if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32813 _pkg_short_errors_supported=yes 32814else 32815 _pkg_short_errors_supported=no 32816fi 32817 if test $_pkg_short_errors_supported = yes; then 32818 XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>&1` 32819 else 32820 XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>&1` 32821 fi 32822 # Put the nasty error message in config.log where it belongs 32823 echo "$XWINMODULES_PKG_ERRORS" >&5 32824 32825 as_fn_error $? "Package requirements (xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes) were not met: 32826 32827$XWINMODULES_PKG_ERRORS 32828 32829Consider adjusting the PKG_CONFIG_PATH environment variable if you 32830installed software in a non-standard prefix. 32831 32832Alternatively, you may set the environment variables XWINMODULES_CFLAGS 32833and XWINMODULES_LIBS to avoid the need to call pkg-config. 32834See the pkg-config man page for more details." "$LINENO" 5 32835elif test $pkg_failed = untried; then 32836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32837printf "%s\n" "no" >&6; } 32838 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 32839printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 32840as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32841is in your PATH or set the PKG_CONFIG environment variable to the full 32842path to pkg-config. 32843 32844Alternatively, you may set the environment variables XWINMODULES_CFLAGS 32845and XWINMODULES_LIBS to avoid the need to call pkg-config. 32846See the pkg-config man page for more details. 32847 32848To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32849See 'config.log' for more details" "$LINENO" 5; } 32850else 32851 XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS 32852 XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS 32853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32854printf "%s\n" "yes" >&6; } 32855 32856fi 32857 32858 if test "x$WINDOWSDRI" = xauto; then 32859 if test -n "$PKG_CONFIG" && \ 32860 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 32861 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 32862 ac_status=$? 32863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32864 test $ac_status = 0; }; then 32865 WINDOWSDRI=yes 32866else 32867 WINDOWSDRI=no 32868fi 32869 fi 32870 if test "x$WINDOWSDRI" = xyes ; then 32871 32872pkg_failed=no 32873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windowsdriproto" >&5 32874printf %s "checking for windowsdriproto... " >&6; } 32875 32876if test -n "$WINDOWSDRI_CFLAGS"; then 32877 pkg_cv_WINDOWSDRI_CFLAGS="$WINDOWSDRI_CFLAGS" 32878 elif test -n "$PKG_CONFIG"; then 32879 if test -n "$PKG_CONFIG" && \ 32880 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 32881 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 32882 ac_status=$? 32883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32884 test $ac_status = 0; }; then 32885 pkg_cv_WINDOWSDRI_CFLAGS=`$PKG_CONFIG --cflags "windowsdriproto" 2>/dev/null` 32886 test "x$?" != "x0" && pkg_failed=yes 32887else 32888 pkg_failed=yes 32889fi 32890 else 32891 pkg_failed=untried 32892fi 32893if test -n "$WINDOWSDRI_LIBS"; then 32894 pkg_cv_WINDOWSDRI_LIBS="$WINDOWSDRI_LIBS" 32895 elif test -n "$PKG_CONFIG"; then 32896 if test -n "$PKG_CONFIG" && \ 32897 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 32898 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 32899 ac_status=$? 32900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32901 test $ac_status = 0; }; then 32902 pkg_cv_WINDOWSDRI_LIBS=`$PKG_CONFIG --libs "windowsdriproto" 2>/dev/null` 32903 test "x$?" != "x0" && pkg_failed=yes 32904else 32905 pkg_failed=yes 32906fi 32907 else 32908 pkg_failed=untried 32909fi 32910 32911 32912 32913if test $pkg_failed = yes; then 32914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32915printf "%s\n" "no" >&6; } 32916 32917if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32918 _pkg_short_errors_supported=yes 32919else 32920 _pkg_short_errors_supported=no 32921fi 32922 if test $_pkg_short_errors_supported = yes; then 32923 WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "windowsdriproto" 2>&1` 32924 else 32925 WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "windowsdriproto" 2>&1` 32926 fi 32927 # Put the nasty error message in config.log where it belongs 32928 echo "$WINDOWSDRI_PKG_ERRORS" >&5 32929 32930 as_fn_error $? "Package requirements (windowsdriproto) were not met: 32931 32932$WINDOWSDRI_PKG_ERRORS 32933 32934Consider adjusting the PKG_CONFIG_PATH environment variable if you 32935installed software in a non-standard prefix. 32936 32937Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS 32938and WINDOWSDRI_LIBS to avoid the need to call pkg-config. 32939See the pkg-config man page for more details." "$LINENO" 5 32940elif test $pkg_failed = untried; then 32941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32942printf "%s\n" "no" >&6; } 32943 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 32944printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 32945as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32946is in your PATH or set the PKG_CONFIG environment variable to the full 32947path to pkg-config. 32948 32949Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS 32950and WINDOWSDRI_LIBS to avoid the need to call pkg-config. 32951See the pkg-config man page for more details. 32952 32953To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32954See 'config.log' for more details" "$LINENO" 5; } 32955else 32956 WINDOWSDRI_CFLAGS=$pkg_cv_WINDOWSDRI_CFLAGS 32957 WINDOWSDRI_LIBS=$pkg_cv_WINDOWSDRI_LIBS 32958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32959printf "%s\n" "yes" >&6; } 32960 32961fi 32962 fi 32963 32964 case $host_os in 32965 cygwin*) 32966 XWIN_SERVER_NAME=XWin 32967 32968printf "%s\n" "#define HAS_DEVWINDOWS 1" >>confdefs.h 32969 32970 ;; 32971 mingw*) 32972 XWIN_SERVER_NAME=Xming 32973 32974printf "%s\n" "#define RELOCATE_PROJECTROOT 1" >>confdefs.h 32975 32976 32977printf "%s\n" "#define HAS_WINSOCK 1" >>confdefs.h 32978 32979 XWIN_SYS_LIBS="-lpthread -lws2_32" 32980 ;; 32981 esac 32982 32983 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" 32984 XWIN_SYS_LIBS="$XWIN_SYS_LIBS $XWINMODULES_LIBS" 32985 32986 32987 32988 32989 if test "x$DEBUGGING" = xyes; then 32990 32991printf "%s\n" "#define CYGDEBUG 1" >>confdefs.h 32992 32993 32994printf "%s\n" "#define CYGWINDOWING_DEBUG 1" >>confdefs.h 32995 32996 32997printf "%s\n" "#define CYGMULTIWINDOW_DEBUG 1" >>confdefs.h 32998 32999 fi 33000 33001 33002printf "%s\n" "#define DDXOSVERRORF 1" >>confdefs.h 33003 33004 33005printf "%s\n" "#define DDXBEFORERESET 1" >>confdefs.h 33006 33007 33008 if test "x$XWIN" = xyes && test "x$GLX" = xyes ; then 33009 # Extract the first word of "python3", so it can be a program name with args. 33010set dummy python3; ac_word=$2 33011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33012printf %s "checking for $ac_word... " >&6; } 33013if test ${ac_cv_prog_PYTHON3+y} 33014then : 33015 printf %s "(cached) " >&6 33016else case e in #( 33017 e) if test -n "$PYTHON3"; then 33018 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test. 33019else 33020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33021for as_dir in $PATH 33022do 33023 IFS=$as_save_IFS 33024 case $as_dir in #((( 33025 '') as_dir=./ ;; 33026 */) ;; 33027 *) as_dir=$as_dir/ ;; 33028 esac 33029 for ac_exec_ext in '' $ac_executable_extensions; do 33030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33031 ac_cv_prog_PYTHON3="python3" 33032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33033 break 2 33034 fi 33035done 33036 done 33037IFS=$as_save_IFS 33038 33039fi ;; 33040esac 33041fi 33042PYTHON3=$ac_cv_prog_PYTHON3 33043if test -n "$PYTHON3"; then 33044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5 33045printf "%s\n" "$PYTHON3" >&6; } 33046else 33047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33048printf "%s\n" "no" >&6; } 33049fi 33050 33051 33052 if test -z "$PYTHON3"; then 33053 as_fn_error $? "python3 not found" "$LINENO" 5 33054 fi 33055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python module lxml" >&5 33056printf %s "checking for python module lxml... " >&6; } 33057 $PYTHON3 -c "import lxml;" 33058 if test $? -ne 0 ; then 33059 as_fn_error $? "not found" "$LINENO" 5 33060 fi 33061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33062printf "%s\n" "yes" >&6; } 33063 if test "x$KHRONOS_SPEC_DIR" = "xauto" ; then 33064 33065pkg_failed=no 33066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for khronos-opengl-registry" >&5 33067printf %s "checking for khronos-opengl-registry... " >&6; } 33068 33069if test -n "$KHRONOS_OPENGL_REGISTRY_CFLAGS"; then 33070 pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS="$KHRONOS_OPENGL_REGISTRY_CFLAGS" 33071 elif test -n "$PKG_CONFIG"; then 33072 if test -n "$PKG_CONFIG" && \ 33073 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5 33074 ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5 33075 ac_status=$? 33076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33077 test $ac_status = 0; }; then 33078 pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS=`$PKG_CONFIG --cflags "khronos-opengl-registry" 2>/dev/null` 33079 test "x$?" != "x0" && pkg_failed=yes 33080else 33081 pkg_failed=yes 33082fi 33083 else 33084 pkg_failed=untried 33085fi 33086if test -n "$KHRONOS_OPENGL_REGISTRY_LIBS"; then 33087 pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS="$KHRONOS_OPENGL_REGISTRY_LIBS" 33088 elif test -n "$PKG_CONFIG"; then 33089 if test -n "$PKG_CONFIG" && \ 33090 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5 33091 ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5 33092 ac_status=$? 33093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33094 test $ac_status = 0; }; then 33095 pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS=`$PKG_CONFIG --libs "khronos-opengl-registry" 2>/dev/null` 33096 test "x$?" != "x0" && pkg_failed=yes 33097else 33098 pkg_failed=yes 33099fi 33100 else 33101 pkg_failed=untried 33102fi 33103 33104 33105 33106if test $pkg_failed = yes; then 33107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33108printf "%s\n" "no" >&6; } 33109 33110if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33111 _pkg_short_errors_supported=yes 33112else 33113 _pkg_short_errors_supported=no 33114fi 33115 if test $_pkg_short_errors_supported = yes; then 33116 KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "khronos-opengl-registry" 2>&1` 33117 else 33118 KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "khronos-opengl-registry" 2>&1` 33119 fi 33120 # Put the nasty error message in config.log where it belongs 33121 echo "$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS" >&5 33122 33123 as_fn_error $? "Package requirements (khronos-opengl-registry) were not met: 33124 33125$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS 33126 33127Consider adjusting the PKG_CONFIG_PATH environment variable if you 33128installed software in a non-standard prefix. 33129 33130Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS 33131and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config. 33132See the pkg-config man page for more details." "$LINENO" 5 33133elif test $pkg_failed = untried; then 33134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33135printf "%s\n" "no" >&6; } 33136 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 33137printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 33138as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 33139is in your PATH or set the PKG_CONFIG environment variable to the full 33140path to pkg-config. 33141 33142Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS 33143and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config. 33144See the pkg-config man page for more details. 33145 33146To get pkg-config, see <http://pkg-config.freedesktop.org/>. 33147See 'config.log' for more details" "$LINENO" 5; } 33148else 33149 KHRONOS_OPENGL_REGISTRY_CFLAGS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS 33150 KHRONOS_OPENGL_REGISTRY_LIBS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS 33151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33152printf "%s\n" "yes" >&6; } 33153 33154fi 33155 KHRONOS_SPEC_DIR=`pkg-config khronos-opengl-registry --variable=specdir` 33156 fi 33157 33158 fi 33159 33160fi 33161 if test "x$XWIN" = xyes; then 33162 XWIN_TRUE= 33163 XWIN_FALSE='#' 33164else 33165 XWIN_TRUE='#' 33166 XWIN_FALSE= 33167fi 33168 33169 if test "x$XWIN" = xyes && test "x$GLX" = xyes; then 33170 XWIN_GLX_WINDOWS_TRUE= 33171 XWIN_GLX_WINDOWS_FALSE='#' 33172else 33173 XWIN_GLX_WINDOWS_TRUE='#' 33174 XWIN_GLX_WINDOWS_FALSE= 33175fi 33176 33177 if test "x$XWIN" = xyes && test "x$WINDOWSDRI" = xyes; then 33178 XWIN_WINDOWS_DRI_TRUE= 33179 XWIN_WINDOWS_DRI_FALSE='#' 33180else 33181 XWIN_WINDOWS_DRI_TRUE='#' 33182 XWIN_WINDOWS_DRI_FALSE= 33183fi 33184 33185 33186if test "x$XQUARTZ" = xyes; then 33187 33188printf "%s\n" "#define XQUARTZ 1" >>confdefs.h 33189 33190 33191printf "%s\n" "#define ROOTLESS 1" >>confdefs.h 33192 33193 33194 XQUARTZ_LIBS="$COMPOSITE_LIB $FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $XPSTUBS_LIB $PRESENT_LIB" 33195 33196 33197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xp_init in -lXplugin" >&5 33198printf %s "checking for xp_init in -lXplugin... " >&6; } 33199if test ${ac_cv_lib_Xplugin_xp_init+y} 33200then : 33201 printf %s "(cached) " >&6 33202else case e in #( 33203 e) ac_check_lib_save_LIBS=$LIBS 33204LIBS="-lXplugin $LIBS" 33205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33206/* end confdefs.h. */ 33207 33208/* Override any GCC internal prototype to avoid an error. 33209 Use char because int might match the return type of a GCC 33210 builtin and then its argument prototype would still apply. 33211 The 'extern "C"' is for builds by C++ compilers; 33212 although this is not generally supported in C code supporting it here 33213 has little cost and some practical benefit (sr 110532). */ 33214#ifdef __cplusplus 33215extern "C" 33216#endif 33217char xp_init (void); 33218int 33219main (void) 33220{ 33221return xp_init (); 33222 ; 33223 return 0; 33224} 33225_ACEOF 33226if ac_fn_c_try_link "$LINENO" 33227then : 33228 ac_cv_lib_Xplugin_xp_init=yes 33229else case e in #( 33230 e) ac_cv_lib_Xplugin_xp_init=no ;; 33231esac 33232fi 33233rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33234 conftest$ac_exeext conftest.$ac_ext 33235LIBS=$ac_check_lib_save_LIBS ;; 33236esac 33237fi 33238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xplugin_xp_init" >&5 33239printf "%s\n" "$ac_cv_lib_Xplugin_xp_init" >&6; } 33240if test "x$ac_cv_lib_Xplugin_xp_init" = xyes 33241then : 33242 : 33243fi 33244 33245 33246 CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA" 33247 33248 33249pkg_failed=no 33250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $APPLEWMPROTO $LIBAPPLEWM xfixes x11" >&5 33251printf %s "checking for $APPLEWMPROTO $LIBAPPLEWM xfixes x11... " >&6; } 33252 33253if test -n "$XPBPROXY_CFLAGS"; then 33254 pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS" 33255 elif test -n "$PKG_CONFIG"; then 33256 if test -n "$PKG_CONFIG" && \ 33257 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5 33258 ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5 33259 ac_status=$? 33260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33261 test $ac_status = 0; }; then 33262 pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null` 33263 test "x$?" != "x0" && pkg_failed=yes 33264else 33265 pkg_failed=yes 33266fi 33267 else 33268 pkg_failed=untried 33269fi 33270if test -n "$XPBPROXY_LIBS"; then 33271 pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS" 33272 elif test -n "$PKG_CONFIG"; then 33273 if test -n "$PKG_CONFIG" && \ 33274 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5 33275 ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5 33276 ac_status=$? 33277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33278 test $ac_status = 0; }; then 33279 pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null` 33280 test "x$?" != "x0" && pkg_failed=yes 33281else 33282 pkg_failed=yes 33283fi 33284 else 33285 pkg_failed=untried 33286fi 33287 33288 33289 33290if test $pkg_failed = yes; then 33291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33292printf "%s\n" "no" >&6; } 33293 33294if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33295 _pkg_short_errors_supported=yes 33296else 33297 _pkg_short_errors_supported=no 33298fi 33299 if test $_pkg_short_errors_supported = yes; then 33300 XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1` 33301 else 33302 XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1` 33303 fi 33304 # Put the nasty error message in config.log where it belongs 33305 echo "$XPBPROXY_PKG_ERRORS" >&5 33306 33307 as_fn_error $? "Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met: 33308 33309$XPBPROXY_PKG_ERRORS 33310 33311Consider adjusting the PKG_CONFIG_PATH environment variable if you 33312installed software in a non-standard prefix. 33313 33314Alternatively, you may set the environment variables XPBPROXY_CFLAGS 33315and XPBPROXY_LIBS to avoid the need to call pkg-config. 33316See the pkg-config man page for more details." "$LINENO" 5 33317elif test $pkg_failed = untried; then 33318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33319printf "%s\n" "no" >&6; } 33320 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 33321printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 33322as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 33323is in your PATH or set the PKG_CONFIG environment variable to the full 33324path to pkg-config. 33325 33326Alternatively, you may set the environment variables XPBPROXY_CFLAGS 33327and XPBPROXY_LIBS to avoid the need to call pkg-config. 33328See the pkg-config man page for more details. 33329 33330To get pkg-config, see <http://pkg-config.freedesktop.org/>. 33331See 'config.log' for more details" "$LINENO" 5; } 33332else 33333 XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS 33334 XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS 33335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33336printf "%s\n" "yes" >&6; } 33337 33338fi 33339 33340 if test "x$XQUARTZ_SPARKLE" = xyes ; then 33341 33342printf "%s\n" "#define XQUARTZ_SPARKLE 1" >>confdefs.h 33343 33344 fi 33345 33346 if test "x$STANDALONE_XPBPROXY" = xyes ; then 33347 33348printf "%s\n" "#define STANDALONE_XPBPROXY 1" >>confdefs.h 33349 33350 fi 33351fi 33352 33353 if test "x$XQUARTZ" = xyes -o "x$XWIN" = xyes ; then 33354 PSEUDORAMIX_TRUE= 33355 PSEUDORAMIX_FALSE='#' 33356else 33357 PSEUDORAMIX_TRUE='#' 33358 PSEUDORAMIX_FALSE= 33359fi 33360 33361 33362# Support for objc in autotools is minimal and not documented. 33363OBJC='$(CC)' 33364OBJCLD='$(CCLD)' 33365OBJCLINK='$(LINK)' 33366OBJCFLAGS='$(CFLAGS)' 33367 33368 33369 33370 33371# internal, undocumented automake func follows :( 33372 33373depcc="$OBJC" am_compiler_list='gcc3 gcc' 33374 33375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 33376printf %s "checking dependency style of $depcc... " >&6; } 33377if test ${am_cv_OBJC_dependencies_compiler_type+y} 33378then : 33379 printf %s "(cached) " >&6 33380else case e in #( 33381 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 33382 # We make a subdir and do the tests there. Otherwise we can end up 33383 # making bogus files that we don't know about and never remove. For 33384 # instance it was reported that on HP-UX the gcc test will end up 33385 # making a dummy file named 'D' -- because '-MD' means "put the output 33386 # in D". 33387 rm -rf conftest.dir 33388 mkdir conftest.dir 33389 # Copy depcomp to subdir because otherwise we won't find it if we're 33390 # using a relative directory. 33391 cp "$am_depcomp" conftest.dir 33392 cd conftest.dir 33393 # We will build objects and dependencies in a subdirectory because 33394 # it helps to detect inapplicable dependency modes. For instance 33395 # both Tru64's cc and ICC support -MD to output dependencies as a 33396 # side effect of compilation, but ICC will put the dependencies in 33397 # the current directory while Tru64 will put them in the object 33398 # directory. 33399 mkdir sub 33400 33401 am_cv_OBJC_dependencies_compiler_type=none 33402 if test "$am_compiler_list" = ""; then 33403 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 33404 fi 33405 am__universal=false 33406 33407 33408 for depmode in $am_compiler_list; do 33409 # Setup a source with many dependencies, because some compilers 33410 # like to wrap large dependency lists on column 80 (with \), and 33411 # we should not choose a depcomp mode which is confused by this. 33412 # 33413 # We need to recreate these files for each test, as the compiler may 33414 # overwrite some of them when testing with obscure command lines. 33415 # This happens at least with the AIX C compiler. 33416 : > sub/conftest.c 33417 for i in 1 2 3 4 5 6; do 33418 echo '#include "conftst'$i'.h"' >> sub/conftest.c 33419 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 33420 # Solaris 10 /bin/sh. 33421 echo '/* dummy */' > sub/conftst$i.h 33422 done 33423 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 33424 33425 # We check with '-c' and '-o' for the sake of the "dashmstdout" 33426 # mode. It turns out that the SunPro C++ compiler does not properly 33427 # handle '-M -o', and we need to detect this. Also, some Intel 33428 # versions had trouble with output in subdirs. 33429 am__obj=sub/conftest.${OBJEXT-o} 33430 am__minus_obj="-o $am__obj" 33431 case $depmode in 33432 gcc) 33433 # This depmode causes a compiler race in universal mode. 33434 test "$am__universal" = false || continue 33435 ;; 33436 nosideeffect) 33437 # After this tag, mechanisms are not by side-effect, so they'll 33438 # only be used when explicitly requested. 33439 if test "x$enable_dependency_tracking" = xyes; then 33440 continue 33441 else 33442 break 33443 fi 33444 ;; 33445 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 33446 # This compiler won't grok '-c -o', but also, the minuso test has 33447 # not run yet. These depmodes are late enough in the game, and 33448 # so weak that their functioning should not be impacted. 33449 am__obj=conftest.${OBJEXT-o} 33450 am__minus_obj= 33451 ;; 33452 none) break ;; 33453 esac 33454 if depmode=$depmode \ 33455 source=sub/conftest.c object=$am__obj \ 33456 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 33457 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 33458 >/dev/null 2>conftest.err && 33459 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 33460 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 33461 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 33462 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 33463 # icc doesn't choke on unknown options, it will just issue warnings 33464 # or remarks (even with -Werror). So we grep stderr for any message 33465 # that says an option was ignored or not supported. 33466 # When given -MP, icc 7.0 and 7.1 complain thusly: 33467 # icc: Command line warning: ignoring option '-M'; no argument required 33468 # The diagnosis changed in icc 8.0: 33469 # icc: Command line remark: option '-MP' not supported 33470 if (grep 'ignoring option' conftest.err || 33471 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 33472 am_cv_OBJC_dependencies_compiler_type=$depmode 33473 break 33474 fi 33475 fi 33476 done 33477 33478 cd .. 33479 rm -rf conftest.dir 33480else 33481 am_cv_OBJC_dependencies_compiler_type=none 33482fi 33483 ;; 33484esac 33485fi 33486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 33487printf "%s\n" "$am_cv_OBJC_dependencies_compiler_type" >&6; } 33488OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type 33489 33490 if 33491 test "x$enable_dependency_tracking" != xno \ 33492 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then 33493 am__fastdepOBJC_TRUE= 33494 am__fastdepOBJC_FALSE='#' 33495else 33496 am__fastdepOBJC_TRUE='#' 33497 am__fastdepOBJC_FALSE= 33498fi 33499 33500 33501 if test "x$XQUARTZ" = xyes; then 33502 XQUARTZ_TRUE= 33503 XQUARTZ_FALSE='#' 33504else 33505 XQUARTZ_TRUE='#' 33506 XQUARTZ_FALSE= 33507fi 33508 33509 if test "x$XQUARTZ_SPARKLE" != "xno"; then 33510 XQUARTZ_SPARKLE_TRUE= 33511 XQUARTZ_SPARKLE_FALSE='#' 33512else 33513 XQUARTZ_SPARKLE_TRUE='#' 33514 XQUARTZ_SPARKLE_FALSE= 33515fi 33516 33517 if test "x$STANDALONE_XPBPROXY" = xyes; then 33518 STANDALONE_XPBPROXY_TRUE= 33519 STANDALONE_XPBPROXY_FALSE='#' 33520else 33521 STANDALONE_XPBPROXY_TRUE='#' 33522 STANDALONE_XPBPROXY_FALSE= 33523fi 33524 33525 33526 33527XEPHYR_LIBS= 33528XEPHYR_INCS= 33529 33530 if test x$KDRIVE = xyes; then 33531 KDRIVE_TRUE= 33532 KDRIVE_FALSE='#' 33533else 33534 KDRIVE_TRUE='#' 33535 KDRIVE_FALSE= 33536fi 33537 33538 33539if test "$KDRIVE" = yes; then 33540 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" 33541 if test "x$XV" = xyes; then 33542 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xcb-xv" 33543 fi 33544 if test "x$DRI" = xyes && test "x$GLX" = xyes; then 33545 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBDRM xcb-glx xcb-xf86dri > 1.6" 33546 fi 33547 if test "x$GLAMOR" = xyes; then 33548 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS x11-xcb" 33549 fi 33550 33551 if test "x$XEPHYR" = xauto; then 33552 33553pkg_failed=no 33554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $XEPHYR_REQUIRED_LIBS" >&5 33555printf %s "checking for $XEPHYR_REQUIRED_LIBS... " >&6; } 33556 33557if test -n "$XEPHYR_CFLAGS"; then 33558 pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS" 33559 elif test -n "$PKG_CONFIG"; then 33560 if test -n "$PKG_CONFIG" && \ 33561 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 33562 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 33563 ac_status=$? 33564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33565 test $ac_status = 0; }; then 33566 pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 33567 test "x$?" != "x0" && pkg_failed=yes 33568else 33569 pkg_failed=yes 33570fi 33571 else 33572 pkg_failed=untried 33573fi 33574if test -n "$XEPHYR_LIBS"; then 33575 pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS" 33576 elif test -n "$PKG_CONFIG"; then 33577 if test -n "$PKG_CONFIG" && \ 33578 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 33579 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 33580 ac_status=$? 33581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33582 test $ac_status = 0; }; then 33583 pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 33584 test "x$?" != "x0" && pkg_failed=yes 33585else 33586 pkg_failed=yes 33587fi 33588 else 33589 pkg_failed=untried 33590fi 33591 33592 33593 33594if test $pkg_failed = yes; then 33595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33596printf "%s\n" "no" >&6; } 33597 33598if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33599 _pkg_short_errors_supported=yes 33600else 33601 _pkg_short_errors_supported=no 33602fi 33603 if test $_pkg_short_errors_supported = yes; then 33604 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 33605 else 33606 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 33607 fi 33608 # Put the nasty error message in config.log where it belongs 33609 echo "$XEPHYR_PKG_ERRORS" >&5 33610 33611 XEPHYR="no" 33612elif test $pkg_failed = untried; then 33613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33614printf "%s\n" "no" >&6; } 33615 XEPHYR="no" 33616else 33617 XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS 33618 XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS 33619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33620printf "%s\n" "yes" >&6; } 33621 XEPHYR="yes" 33622fi 33623 elif test "x$XEPHYR" = xyes ; then 33624 33625pkg_failed=no 33626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $XEPHYR_REQUIRED_LIBS" >&5 33627printf %s "checking for $XEPHYR_REQUIRED_LIBS... " >&6; } 33628 33629if test -n "$XEPHYR_CFLAGS"; then 33630 pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS" 33631 elif test -n "$PKG_CONFIG"; then 33632 if test -n "$PKG_CONFIG" && \ 33633 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 33634 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 33635 ac_status=$? 33636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33637 test $ac_status = 0; }; then 33638 pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 33639 test "x$?" != "x0" && pkg_failed=yes 33640else 33641 pkg_failed=yes 33642fi 33643 else 33644 pkg_failed=untried 33645fi 33646if test -n "$XEPHYR_LIBS"; then 33647 pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS" 33648 elif test -n "$PKG_CONFIG"; then 33649 if test -n "$PKG_CONFIG" && \ 33650 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 33651 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 33652 ac_status=$? 33653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33654 test $ac_status = 0; }; then 33655 pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 33656 test "x$?" != "x0" && pkg_failed=yes 33657else 33658 pkg_failed=yes 33659fi 33660 else 33661 pkg_failed=untried 33662fi 33663 33664 33665 33666if test $pkg_failed = yes; then 33667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33668printf "%s\n" "no" >&6; } 33669 33670if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33671 _pkg_short_errors_supported=yes 33672else 33673 _pkg_short_errors_supported=no 33674fi 33675 if test $_pkg_short_errors_supported = yes; then 33676 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 33677 else 33678 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 33679 fi 33680 # Put the nasty error message in config.log where it belongs 33681 echo "$XEPHYR_PKG_ERRORS" >&5 33682 33683 as_fn_error $? "Package requirements ($XEPHYR_REQUIRED_LIBS) were not met: 33684 33685$XEPHYR_PKG_ERRORS 33686 33687Consider adjusting the PKG_CONFIG_PATH environment variable if you 33688installed software in a non-standard prefix. 33689 33690Alternatively, you may set the environment variables XEPHYR_CFLAGS 33691and XEPHYR_LIBS to avoid the need to call pkg-config. 33692See the pkg-config man page for more details." "$LINENO" 5 33693elif test $pkg_failed = untried; then 33694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33695printf "%s\n" "no" >&6; } 33696 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 33697printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 33698as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 33699is in your PATH or set the PKG_CONFIG environment variable to the full 33700path to pkg-config. 33701 33702Alternatively, you may set the environment variables XEPHYR_CFLAGS 33703and XEPHYR_LIBS to avoid the need to call pkg-config. 33704See the pkg-config man page for more details. 33705 33706To get pkg-config, see <http://pkg-config.freedesktop.org/>. 33707See 'config.log' for more details" "$LINENO" 5; } 33708else 33709 XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS 33710 XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS 33711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33712printf "%s\n" "yes" >&6; } 33713 33714fi 33715 fi 33716 33717 # Xephyr needs nanosleep() which is in librt on Solaris 33718 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 33719if test "x$ac_cv_func_nanosleep" = xyes 33720then : 33721 33722else case e in #( 33723 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 33724printf %s "checking for nanosleep in -lrt... " >&6; } 33725if test ${ac_cv_lib_rt_nanosleep+y} 33726then : 33727 printf %s "(cached) " >&6 33728else case e in #( 33729 e) ac_check_lib_save_LIBS=$LIBS 33730LIBS="-lrt $LIBS" 33731cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33732/* end confdefs.h. */ 33733 33734/* Override any GCC internal prototype to avoid an error. 33735 Use char because int might match the return type of a GCC 33736 builtin and then its argument prototype would still apply. 33737 The 'extern "C"' is for builds by C++ compilers; 33738 although this is not generally supported in C code supporting it here 33739 has little cost and some practical benefit (sr 110532). */ 33740#ifdef __cplusplus 33741extern "C" 33742#endif 33743char nanosleep (void); 33744int 33745main (void) 33746{ 33747return nanosleep (); 33748 ; 33749 return 0; 33750} 33751_ACEOF 33752if ac_fn_c_try_link "$LINENO" 33753then : 33754 ac_cv_lib_rt_nanosleep=yes 33755else case e in #( 33756 e) ac_cv_lib_rt_nanosleep=no ;; 33757esac 33758fi 33759rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33760 conftest$ac_exeext conftest.$ac_ext 33761LIBS=$ac_check_lib_save_LIBS ;; 33762esac 33763fi 33764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 33765printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; } 33766if test "x$ac_cv_lib_rt_nanosleep" = xyes 33767then : 33768 XEPHYR_LIBS="$XEPHYR_LIBS -lrt" 33769fi 33770 ;; 33771esac 33772fi 33773 33774 33775 # damage shadow extension glx (NOTYET) fb mi 33776 KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src' 33777 KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_SYNC_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC" 33778 KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux' 33779 KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC" 33780 33781 KDRIVE_CFLAGS="$XSERVER_CFLAGS" 33782 33783 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" 33784 KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la' 33785 KDRIVE_MAIN_LIB="$MAIN_LIB" 33786 KDRIVE_LOCAL_LIBS="$DIX_LIB $KDRIVE_LIB" 33787 KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS" 33788 KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB" 33789 KDRIVE_LIBS="$KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS" 33790 33791 33792 33793fi 33794 33795 33796 33797 33798 33799 33800 33801 if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then 33802 XEPHYR_TRUE= 33803 XEPHYR_FALSE='#' 33804else 33805 XEPHYR_TRUE='#' 33806 XEPHYR_FALSE= 33807fi 33808 33809 33810 33811 33812cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33813/* end confdefs.h. */ 33814 33815#include <features.h> 33816#ifndef __GLIBC__ 33817#error not glibc 33818#endif 33819 33820int 33821main (void) 33822{ 33823 33824 ; 33825 return 0; 33826} 33827_ACEOF 33828if ac_fn_c_try_compile "$LINENO" 33829then : 33830 33831printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 33832 33833fi 33834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 33835 33836 33837 prefix_NONE= 33838 exec_prefix_NONE= 33839 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 33840 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 33841 eval ac_define_dir="\"$prefix\"" 33842 eval ac_define_dir="\"$ac_define_dir\"" 33843 PROJECTROOT="$ac_define_dir" 33844 33845 33846printf "%s\n" "#define PROJECTROOT \"$ac_define_dir\"" >>confdefs.h 33847 33848 test "$prefix_NONE" && prefix=NONE 33849 test "$exec_prefix_NONE" && exec_prefix=NONE 33850 33851 33852 prefix_NONE= 33853 exec_prefix_NONE= 33854 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 33855 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 33856 eval ac_define_dir="\"$sysconfdir\"" 33857 eval ac_define_dir="\"$ac_define_dir\"" 33858 SYSCONFDIR="$ac_define_dir" 33859 33860 33861printf "%s\n" "#define SYSCONFDIR \"$ac_define_dir\"" >>confdefs.h 33862 33863 test "$prefix_NONE" && prefix=NONE 33864 test "$exec_prefix_NONE" && exec_prefix=NONE 33865 33866 33867 33868 33869DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS" 33870 33871 33872 33873 33874 33875 33876 33877ac_config_commands="$ac_config_commands sdksyms" 33878 33879 33880if test "x$CONFIG_HAL" = xno && test "x$CONFIG_UDEV" = xno; then 33881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 33882 *********************************************** 33883 Neither HAL nor udev backend will be enabled. 33884 Input device hotplugging will not be available! 33885 ***********************************************" >&5 33886printf "%s\n" "$as_me: WARNING: 33887 *********************************************** 33888 Neither HAL nor udev backend will be enabled. 33889 Input device hotplugging will not be available! 33890 ***********************************************" >&2;} 33891fi 33892 33893ac_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/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/inputtest/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/vgahw/Makefile hw/xfree86/x86emu/Makefile hw/xfree86/xkb/Makefile hw/xfree86/utils/Makefile hw/xfree86/utils/man/Makefile hw/xfree86/utils/gtf/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 test/Makefile xserver.ent xorg-server.pc" 33894 33895cat >confcache <<\_ACEOF 33896# This file is a shell script that caches the results of configure 33897# tests run on this system so they can be shared between configure 33898# scripts and configure runs, see configure's option --config-cache. 33899# It is not useful on other systems. If it contains results you don't 33900# want to keep, you may remove or edit it. 33901# 33902# config.status only pays attention to the cache file if you give it 33903# the --recheck option to rerun configure. 33904# 33905# 'ac_cv_env_foo' variables (set or unset) will be overridden when 33906# loading this file, other *unset* 'ac_cv_foo' will be assigned the 33907# following values. 33908 33909_ACEOF 33910 33911# The following way of writing the cache mishandles newlines in values, 33912# but we know of no workaround that is simple, portable, and efficient. 33913# So, we kill variables containing newlines. 33914# Ultrix sh set writes to stderr and can't be redirected directly, 33915# and sets the high bit in the cache file unless we assign to the vars. 33916( 33917 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 33918 eval ac_val=\$$ac_var 33919 case $ac_val in #( 33920 *${as_nl}*) 33921 case $ac_var in #( 33922 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 33923printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 33924 esac 33925 case $ac_var in #( 33926 _ | IFS | as_nl) ;; #( 33927 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 33928 *) { eval $ac_var=; unset $ac_var;} ;; 33929 esac ;; 33930 esac 33931 done 33932 33933 (set) 2>&1 | 33934 case $as_nl`(ac_space=' '; set) 2>&1` in #( 33935 *${as_nl}ac_space=\ *) 33936 # 'set' does not quote correctly, so add quotes: double-quote 33937 # substitution turns \\\\ into \\, and sed turns \\ into \. 33938 sed -n \ 33939 "s/'/'\\\\''/g; 33940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 33941 ;; #( 33942 *) 33943 # 'set' quotes correctly as required by POSIX, so do not add quotes. 33944 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 33945 ;; 33946 esac | 33947 sort 33948) | 33949 sed ' 33950 /^ac_cv_env_/b end 33951 t clear 33952 :clear 33953 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 33954 t end 33955 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 33956 :end' >>confcache 33957if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 33958 if test -w "$cache_file"; then 33959 if test "x$cache_file" != "x/dev/null"; then 33960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 33961printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 33962 if test ! -f "$cache_file" || test -h "$cache_file"; then 33963 cat confcache >"$cache_file" 33964 else 33965 case $cache_file in #( 33966 */* | ?:*) 33967 mv -f confcache "$cache_file"$$ && 33968 mv -f "$cache_file"$$ "$cache_file" ;; #( 33969 *) 33970 mv -f confcache "$cache_file" ;; 33971 esac 33972 fi 33973 fi 33974 else 33975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 33976printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 33977 fi 33978fi 33979rm -f confcache 33980 33981test "x$prefix" = xNONE && prefix=$ac_default_prefix 33982# Let make expand exec_prefix. 33983test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 33984 33985DEFS=-DHAVE_CONFIG_H 33986 33987ac_libobjs= 33988ac_ltlibobjs= 33989U= 33990for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 33991 # 1. Remove the extension, and $U if already installed. 33992 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 33993 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 33994 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 33995 # will be set to the directory where LIBOBJS objects are built. 33996 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 33997 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 33998done 33999LIBOBJS=$ac_libobjs 34000 34001LTLIBOBJS=$ac_ltlibobjs 34002 34003 34004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 34005printf %s "checking that generated files are newer than configure... " >&6; } 34006 if test -n "$am_sleep_pid"; then 34007 # Hide warnings about reused PIDs. 34008 wait $am_sleep_pid 2>/dev/null 34009 fi 34010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 34011printf "%s\n" "done" >&6; } 34012 if test -n "$EXEEXT"; then 34013 am__EXEEXT_TRUE= 34014 am__EXEEXT_FALSE='#' 34015else 34016 am__EXEEXT_TRUE='#' 34017 am__EXEEXT_FALSE= 34018fi 34019 34020if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 34021 as_fn_error $? "conditional \"AMDEP\" was never defined. 34022Usually this means the macro was only invoked conditionally." "$LINENO" 5 34023fi 34024if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 34025 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 34026Usually this means the macro was only invoked conditionally." "$LINENO" 5 34027fi 34028if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then 34029 as_fn_error $? "conditional \"HAVE_DOT\" was never defined. 34030Usually this means the macro was only invoked conditionally." "$LINENO" 5 34031fi 34032if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 34033 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 34034Usually this means the macro was only invoked conditionally." "$LINENO" 5 34035fi 34036if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 34037 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 34038Usually this means the macro was only invoked conditionally." "$LINENO" 5 34039fi 34040if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 34041 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 34042Usually this means the macro was only invoked conditionally." "$LINENO" 5 34043fi 34044if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 34045 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 34046Usually this means the macro was only invoked conditionally." "$LINENO" 5 34047fi 34048if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 34049 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 34050Usually this means the macro was only invoked conditionally." "$LINENO" 5 34051fi 34052if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 34053 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 34054Usually this means the macro was only invoked conditionally." "$LINENO" 5 34055fi 34056if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 34057 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 34058Usually this means the macro was only invoked conditionally." "$LINENO" 5 34059fi 34060if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 34061 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 34062Usually this means the macro was only invoked conditionally." "$LINENO" 5 34063fi 34064if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then 34065 as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined. 34066Usually this means the macro was only invoked conditionally." "$LINENO" 5 34067fi 34068if test -z "${HAVE_LD_WRAP_TRUE}" && test -z "${HAVE_LD_WRAP_FALSE}"; then 34069 as_fn_error $? "conditional \"HAVE_LD_WRAP\" was never defined. 34070Usually this means the macro was only invoked conditionally." "$LINENO" 5 34071fi 34072if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 34073 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 34074Usually this means the macro was only invoked conditionally." "$LINENO" 5 34075fi 34076# Check whether --enable-year2038 was given. 34077if test ${enable_year2038+y} 34078then : 34079 enableval=$enable_year2038; 34080fi 34081 34082if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then 34083 as_fn_error $? "conditional \"XSERVER_DTRACE\" was never defined. 34084Usually this means the macro was only invoked conditionally." "$LINENO" 5 34085fi 34086if test -z "${SPECIAL_DTRACE_OBJECTS_TRUE}" && test -z "${SPECIAL_DTRACE_OBJECTS_FALSE}"; then 34087 as_fn_error $? "conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined. 34088Usually this means the macro was only invoked conditionally." "$LINENO" 5 34089fi 34090 34091if test -z "${POLL_TRUE}" && test -z "${POLL_FALSE}"; then 34092 as_fn_error $? "conditional \"POLL\" was never defined. 34093Usually this means the macro was only invoked conditionally." "$LINENO" 5 34094fi 34095if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then 34096 as_fn_error $? "conditional \"AGP\" was never defined. 34097Usually this means the macro was only invoked conditionally." "$LINENO" 5 34098fi 34099if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then 34100 as_fn_error $? "conditional \"FBDEVHW\" was never defined. 34101Usually this means the macro was only invoked conditionally." "$LINENO" 5 34102fi 34103if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then 34104 as_fn_error $? "conditional \"FREEBSD_KLDLOAD\" was never defined. 34105Usually this means the macro was only invoked conditionally." "$LINENO" 5 34106fi 34107if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then 34108 as_fn_error $? "conditional \"ALPHA_VIDEO\" was never defined. 34109Usually this means the macro was only invoked conditionally." "$LINENO" 5 34110fi 34111if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then 34112 as_fn_error $? "conditional \"ARM_VIDEO\" was never defined. 34113Usually this means the macro was only invoked conditionally." "$LINENO" 5 34114fi 34115if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then 34116 as_fn_error $? "conditional \"I386_VIDEO\" was never defined. 34117Usually this means the macro was only invoked conditionally." "$LINENO" 5 34118fi 34119if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then 34120 as_fn_error $? "conditional \"PPC_VIDEO\" was never defined. 34121Usually this means the macro was only invoked conditionally." "$LINENO" 5 34122fi 34123if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then 34124 as_fn_error $? "conditional \"SPARC64_VIDEO\" was never defined. 34125Usually this means the macro was only invoked conditionally." "$LINENO" 5 34126fi 34127if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then 34128 as_fn_error $? "conditional \"INSTALL_SETUID\" was never defined. 34129Usually this means the macro was only invoked conditionally." "$LINENO" 5 34130fi 34131if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then 34132 as_fn_error $? "conditional \"SECURE_RPC\" was never defined. 34133Usually this means the macro was only invoked conditionally." "$LINENO" 5 34134fi 34135if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then 34136 as_fn_error $? "conditional \"INT10_VM86\" was never defined. 34137Usually this means the macro was only invoked conditionally." "$LINENO" 5 34138fi 34139if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then 34140 as_fn_error $? "conditional \"INT10_X86EMU\" was never defined. 34141Usually this means the macro was only invoked conditionally." "$LINENO" 5 34142fi 34143if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then 34144 as_fn_error $? "conditional \"INT10_STUB\" was never defined. 34145Usually this means the macro was only invoked conditionally." "$LINENO" 5 34146fi 34147if test -z "${HAVE_SYSTEMD_DAEMON_TRUE}" && test -z "${HAVE_SYSTEMD_DAEMON_FALSE}"; then 34148 as_fn_error $? "conditional \"HAVE_SYSTEMD_DAEMON\" was never defined. 34149Usually this means the macro was only invoked conditionally." "$LINENO" 5 34150fi 34151if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; then 34152 as_fn_error $? "conditional \"CONFIG_UDEV\" was never defined. 34153Usually this means the macro was only invoked conditionally." "$LINENO" 5 34154fi 34155if test -z "${CONFIG_UDEV_KMS_TRUE}" && test -z "${CONFIG_UDEV_KMS_FALSE}"; then 34156 as_fn_error $? "conditional \"CONFIG_UDEV_KMS\" was never defined. 34157Usually this means the macro was only invoked conditionally." "$LINENO" 5 34158fi 34159if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then 34160 as_fn_error $? "conditional \"HAVE_DBUS\" was never defined. 34161Usually this means the macro was only invoked conditionally." "$LINENO" 5 34162fi 34163if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then 34164 as_fn_error $? "conditional \"CONFIG_HAL\" was never defined. 34165Usually this means the macro was only invoked conditionally." "$LINENO" 5 34166fi 34167if test -z "${SYSTEMD_LOGIND_TRUE}" && test -z "${SYSTEMD_LOGIND_FALSE}"; then 34168 as_fn_error $? "conditional \"SYSTEMD_LOGIND\" was never defined. 34169Usually this means the macro was only invoked conditionally." "$LINENO" 5 34170fi 34171if test -z "${SUID_WRAPPER_TRUE}" && test -z "${SUID_WRAPPER_FALSE}"; then 34172 as_fn_error $? "conditional \"SUID_WRAPPER\" was never defined. 34173Usually this means the macro was only invoked conditionally." "$LINENO" 5 34174fi 34175if test -z "${NEED_DBUS_TRUE}" && test -z "${NEED_DBUS_FALSE}"; then 34176 as_fn_error $? "conditional \"NEED_DBUS\" was never defined. 34177Usually this means the macro was only invoked conditionally." "$LINENO" 5 34178fi 34179if test -z "${CONFIG_WSCONS_TRUE}" && test -z "${CONFIG_WSCONS_FALSE}"; then 34180 as_fn_error $? "conditional \"CONFIG_WSCONS\" was never defined. 34181Usually this means the macro was only invoked conditionally." "$LINENO" 5 34182fi 34183if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then 34184 as_fn_error $? "conditional \"XV\" was never defined. 34185Usually this means the macro was only invoked conditionally." "$LINENO" 5 34186fi 34187if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then 34188 as_fn_error $? "conditional \"XVMC\" was never defined. 34189Usually this means the macro was only invoked conditionally." "$LINENO" 5 34190fi 34191if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then 34192 as_fn_error $? "conditional \"COMPOSITE\" was never defined. 34193Usually this means the macro was only invoked conditionally." "$LINENO" 5 34194fi 34195if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then 34196 as_fn_error $? "conditional \"MITSHM\" was never defined. 34197Usually this means the macro was only invoked conditionally." "$LINENO" 5 34198fi 34199if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then 34200 as_fn_error $? "conditional \"RECORD\" was never defined. 34201Usually this means the macro was only invoked conditionally." "$LINENO" 5 34202fi 34203if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then 34204 as_fn_error $? "conditional \"SCREENSAVER\" was never defined. 34205Usually this means the macro was only invoked conditionally." "$LINENO" 5 34206fi 34207if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then 34208 as_fn_error $? "conditional \"RES\" was never defined. 34209Usually this means the macro was only invoked conditionally." "$LINENO" 5 34210fi 34211if test -z "${CLIENTIDS_TRUE}" && test -z "${CLIENTIDS_FALSE}"; then 34212 as_fn_error $? "conditional \"CLIENTIDS\" was never defined. 34213Usually this means the macro was only invoked conditionally." "$LINENO" 5 34214fi 34215if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 34216 as_fn_error $? "conditional \"DRI\" was never defined. 34217Usually this means the macro was only invoked conditionally." "$LINENO" 5 34218fi 34219if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then 34220 as_fn_error $? "conditional \"DRI2\" was never defined. 34221Usually this means the macro was only invoked conditionally." "$LINENO" 5 34222fi 34223if test -z "${BUSFAULT_TRUE}" && test -z "${BUSFAULT_FALSE}"; then 34224 as_fn_error $? "conditional \"BUSFAULT\" was never defined. 34225Usually this means the macro was only invoked conditionally." "$LINENO" 5 34226fi 34227if test -z "${XSHMFENCE_TRUE}" && test -z "${XSHMFENCE_FALSE}"; then 34228 as_fn_error $? "conditional \"XSHMFENCE\" was never defined. 34229Usually this means the macro was only invoked conditionally." "$LINENO" 5 34230fi 34231if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then 34232 as_fn_error $? "conditional \"DRI3\" was never defined. 34233Usually this means the macro was only invoked conditionally." "$LINENO" 5 34234fi 34235if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then 34236 as_fn_error $? "conditional \"GLX\" was never defined. 34237Usually this means the macro was only invoked conditionally." "$LINENO" 5 34238fi 34239if test -z "${HASHTABLE_TRUE}" && test -z "${HASHTABLE_FALSE}"; then 34240 as_fn_error $? "conditional \"HASHTABLE\" was never defined. 34241Usually this means the macro was only invoked conditionally." "$LINENO" 5 34242fi 34243if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then 34244 as_fn_error $? "conditional \"PRESENT\" was never defined. 34245Usually this means the macro was only invoked conditionally." "$LINENO" 5 34246fi 34247if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then 34248 as_fn_error $? "conditional \"XINERAMA\" was never defined. 34249Usually this means the macro was only invoked conditionally." "$LINENO" 5 34250fi 34251if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then 34252 as_fn_error $? "conditional \"XACE\" was never defined. 34253Usually this means the macro was only invoked conditionally." "$LINENO" 5 34254fi 34255if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then 34256 as_fn_error $? "conditional \"XSELINUX\" was never defined. 34257Usually this means the macro was only invoked conditionally." "$LINENO" 5 34258fi 34259if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then 34260 as_fn_error $? "conditional \"XCSECURITY\" was never defined. 34261Usually this means the macro was only invoked conditionally." "$LINENO" 5 34262fi 34263if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then 34264 as_fn_error $? "conditional \"DBE\" was never defined. 34265Usually this means the macro was only invoked conditionally." "$LINENO" 5 34266fi 34267if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then 34268 as_fn_error $? "conditional \"XF86BIGFONT\" was never defined. 34269Usually this means the macro was only invoked conditionally." "$LINENO" 5 34270fi 34271if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then 34272 as_fn_error $? "conditional \"DPMSExtension\" was never defined. 34273Usually this means the macro was only invoked conditionally." "$LINENO" 5 34274fi 34275if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then 34276 as_fn_error $? "conditional \"XF86UTILS\" was never defined. 34277Usually this means the macro was only invoked conditionally." "$LINENO" 5 34278fi 34279if test -z "${VGAHW_TRUE}" && test -z "${VGAHW_FALSE}"; then 34280 as_fn_error $? "conditional \"VGAHW\" was never defined. 34281Usually this means the macro was only invoked conditionally." "$LINENO" 5 34282fi 34283if test -z "${INT10MODULE_TRUE}" && test -z "${INT10MODULE_FALSE}"; then 34284 as_fn_error $? "conditional \"INT10MODULE\" was never defined. 34285Usually this means the macro was only invoked conditionally." "$LINENO" 5 34286fi 34287if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then 34288 as_fn_error $? "conditional \"XDMCP\" was never defined. 34289Usually this means the macro was only invoked conditionally." "$LINENO" 5 34290fi 34291if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then 34292 as_fn_error $? "conditional \"XDMAUTH\" was never defined. 34293Usually this means the macro was only invoked conditionally." "$LINENO" 5 34294fi 34295if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then 34296 as_fn_error $? "conditional \"XF86VIDMODE\" was never defined. 34297Usually this means the macro was only invoked conditionally." "$LINENO" 5 34298fi 34299if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then 34300 as_fn_error $? "conditional \"DEBUG\" was never defined. 34301Usually this means the macro was only invoked conditionally." "$LINENO" 5 34302fi 34303if test -z "${HAVE_LIBUNWIND_TRUE}" && test -z "${HAVE_LIBUNWIND_FALSE}"; then 34304 as_fn_error $? "conditional \"HAVE_LIBUNWIND\" was never defined. 34305Usually this means the macro was only invoked conditionally." "$LINENO" 5 34306fi 34307if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then 34308 as_fn_error $? "conditional \"CYGWIN\" was never defined. 34309Usually this means the macro was only invoked conditionally." "$LINENO" 5 34310fi 34311if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then 34312 as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined. 34313Usually this means the macro was only invoked conditionally." "$LINENO" 5 34314fi 34315if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then 34316 as_fn_error $? "conditional \"XVFB\" was never defined. 34317Usually this means the macro was only invoked conditionally." "$LINENO" 5 34318fi 34319if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then 34320 as_fn_error $? "conditional \"XNEST\" was never defined. 34321Usually this means the macro was only invoked conditionally." "$LINENO" 5 34322fi 34323if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then 34324 as_fn_error $? "conditional \"XORG\" was never defined. 34325Usually this means the macro was only invoked conditionally." "$LINENO" 5 34326fi 34327if test -z "${XORG_BUS_PCI_TRUE}" && test -z "${XORG_BUS_PCI_FALSE}"; then 34328 as_fn_error $? "conditional \"XORG_BUS_PCI\" was never defined. 34329Usually this means the macro was only invoked conditionally." "$LINENO" 5 34330fi 34331if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then 34332 as_fn_error $? "conditional \"XORG_BUS_BSDPCI\" was never defined. 34333Usually this means the macro was only invoked conditionally." "$LINENO" 5 34334fi 34335if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then 34336 as_fn_error $? "conditional \"XORG_BUS_SPARC\" was never defined. 34337Usually this means the macro was only invoked conditionally." "$LINENO" 5 34338fi 34339if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then 34340 as_fn_error $? "conditional \"LNXACPI\" was never defined. 34341Usually this means the macro was only invoked conditionally." "$LINENO" 5 34342fi 34343if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then 34344 as_fn_error $? "conditional \"LNXAPM\" was never defined. 34345Usually this means the macro was only invoked conditionally." "$LINENO" 5 34346fi 34347if test -z "${SOLARIS_VT_TRUE}" && test -z "${SOLARIS_VT_FALSE}"; then 34348 as_fn_error $? "conditional \"SOLARIS_VT\" was never defined. 34349Usually this means the macro was only invoked conditionally." "$LINENO" 5 34350fi 34351if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then 34352 as_fn_error $? "conditional \"DGA\" was never defined. 34353Usually this means the macro was only invoked conditionally." "$LINENO" 5 34354fi 34355if test -z "${XORG_BUS_PLATFORM_TRUE}" && test -z "${XORG_BUS_PLATFORM_FALSE}"; then 34356 as_fn_error $? "conditional \"XORG_BUS_PLATFORM\" was never defined. 34357Usually this means the macro was only invoked conditionally." "$LINENO" 5 34358fi 34359if test -z "${XORG_DRIVER_MODESETTING_TRUE}" && test -z "${XORG_DRIVER_MODESETTING_FALSE}"; then 34360 as_fn_error $? "conditional \"XORG_DRIVER_MODESETTING\" was never defined. 34361Usually this means the macro was only invoked conditionally." "$LINENO" 5 34362fi 34363if test -z "${XORG_DRIVER_INPUT_INPUTTEST_TRUE}" && test -z "${XORG_DRIVER_INPUT_INPUTTEST_FALSE}"; then 34364 as_fn_error $? "conditional \"XORG_DRIVER_INPUT_INPUTTEST\" was never defined. 34365Usually this means the macro was only invoked conditionally." "$LINENO" 5 34366fi 34367if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then 34368 as_fn_error $? "conditional \"GLAMOR\" was never defined. 34369Usually this means the macro was only invoked conditionally." "$LINENO" 5 34370fi 34371if test -z "${GLAMOR_EGL_TRUE}" && test -z "${GLAMOR_EGL_FALSE}"; then 34372 as_fn_error $? "conditional \"GLAMOR_EGL\" was never defined. 34373Usually this means the macro was only invoked conditionally." "$LINENO" 5 34374fi 34375if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then 34376 as_fn_error $? "conditional \"XWIN\" was never defined. 34377Usually this means the macro was only invoked conditionally." "$LINENO" 5 34378fi 34379if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then 34380 as_fn_error $? "conditional \"XWIN_GLX_WINDOWS\" was never defined. 34381Usually this means the macro was only invoked conditionally." "$LINENO" 5 34382fi 34383if test -z "${XWIN_WINDOWS_DRI_TRUE}" && test -z "${XWIN_WINDOWS_DRI_FALSE}"; then 34384 as_fn_error $? "conditional \"XWIN_WINDOWS_DRI\" was never defined. 34385Usually this means the macro was only invoked conditionally." "$LINENO" 5 34386fi 34387if test -z "${PSEUDORAMIX_TRUE}" && test -z "${PSEUDORAMIX_FALSE}"; then 34388 as_fn_error $? "conditional \"PSEUDORAMIX\" was never defined. 34389Usually this means the macro was only invoked conditionally." "$LINENO" 5 34390fi 34391if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then 34392 as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. 34393Usually this means the macro was only invoked conditionally." "$LINENO" 5 34394fi 34395if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then 34396 as_fn_error $? "conditional \"XQUARTZ\" was never defined. 34397Usually this means the macro was only invoked conditionally." "$LINENO" 5 34398fi 34399if test -z "${XQUARTZ_SPARKLE_TRUE}" && test -z "${XQUARTZ_SPARKLE_FALSE}"; then 34400 as_fn_error $? "conditional \"XQUARTZ_SPARKLE\" was never defined. 34401Usually this means the macro was only invoked conditionally." "$LINENO" 5 34402fi 34403if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then 34404 as_fn_error $? "conditional \"STANDALONE_XPBPROXY\" was never defined. 34405Usually this means the macro was only invoked conditionally." "$LINENO" 5 34406fi 34407if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then 34408 as_fn_error $? "conditional \"KDRIVE\" was never defined. 34409Usually this means the macro was only invoked conditionally." "$LINENO" 5 34410fi 34411if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then 34412 as_fn_error $? "conditional \"XEPHYR\" was never defined. 34413Usually this means the macro was only invoked conditionally." "$LINENO" 5 34414fi 34415 34416: "${CONFIG_STATUS=./config.status}" 34417ac_write_fail=0 34418ac_clean_files_save=$ac_clean_files 34419ac_clean_files="$ac_clean_files $CONFIG_STATUS" 34420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 34421printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 34422as_write_fail=0 34423cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 34424#! $SHELL 34425# Generated by $as_me. 34426# Run this file to recreate the current configuration. 34427# Compiler output produced by configure, useful for debugging 34428# configure, is in config.log if it exists. 34429 34430debug=false 34431ac_cs_recheck=false 34432ac_cs_silent=false 34433 34434SHELL=\${CONFIG_SHELL-$SHELL} 34435export SHELL 34436_ASEOF 34437cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 34438## -------------------- ## 34439## M4sh Initialization. ## 34440## -------------------- ## 34441 34442# Be more Bourne compatible 34443DUALCASE=1; export DUALCASE # for MKS sh 34444if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 34445then : 34446 emulate sh 34447 NULLCMD=: 34448 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 34449 # is contrary to our usage. Disable this feature. 34450 alias -g '${1+"$@"}'='"$@"' 34451 setopt NO_GLOB_SUBST 34452else case e in #( 34453 e) case `(set -o) 2>/dev/null` in #( 34454 *posix*) : 34455 set -o posix ;; #( 34456 *) : 34457 ;; 34458esac ;; 34459esac 34460fi 34461 34462 34463 34464# Reset variables that may have inherited troublesome values from 34465# the environment. 34466 34467# IFS needs to be set, to space, tab, and newline, in precisely that order. 34468# (If _AS_PATH_WALK were called with IFS unset, it would have the 34469# side effect of setting IFS to empty, thus disabling word splitting.) 34470# Quoting is to prevent editors from complaining about space-tab. 34471as_nl=' 34472' 34473export as_nl 34474IFS=" "" $as_nl" 34475 34476PS1='$ ' 34477PS2='> ' 34478PS4='+ ' 34479 34480# Ensure predictable behavior from utilities with locale-dependent output. 34481LC_ALL=C 34482export LC_ALL 34483LANGUAGE=C 34484export LANGUAGE 34485 34486# We cannot yet rely on "unset" to work, but we need these variables 34487# to be unset--not just set to an empty or harmless value--now, to 34488# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 34489# also avoids known problems related to "unset" and subshell syntax 34490# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 34491for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 34492do eval test \${$as_var+y} \ 34493 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 34494done 34495 34496# Ensure that fds 0, 1, and 2 are open. 34497if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 34498if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 34499if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 34500 34501# The user is always right. 34502if ${PATH_SEPARATOR+false} :; then 34503 PATH_SEPARATOR=: 34504 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 34505 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 34506 PATH_SEPARATOR=';' 34507 } 34508fi 34509 34510 34511# Find who we are. Look in the path if we contain no directory separator. 34512as_myself= 34513case $0 in #(( 34514 *[\\/]* ) as_myself=$0 ;; 34515 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34516for as_dir in $PATH 34517do 34518 IFS=$as_save_IFS 34519 case $as_dir in #((( 34520 '') as_dir=./ ;; 34521 */) ;; 34522 *) as_dir=$as_dir/ ;; 34523 esac 34524 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 34525 done 34526IFS=$as_save_IFS 34527 34528 ;; 34529esac 34530# We did not find ourselves, most probably we were run as 'sh COMMAND' 34531# in which case we are not to be found in the path. 34532if test "x$as_myself" = x; then 34533 as_myself=$0 34534fi 34535if test ! -f "$as_myself"; then 34536 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 34537 exit 1 34538fi 34539 34540 34541 34542# as_fn_error STATUS ERROR [LINENO LOG_FD] 34543# ---------------------------------------- 34544# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 34545# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 34546# script with STATUS, using 1 if that was 0. 34547as_fn_error () 34548{ 34549 as_status=$1; test $as_status -eq 0 && as_status=1 34550 if test "$4"; then 34551 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 34552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 34553 fi 34554 printf "%s\n" "$as_me: error: $2" >&2 34555 as_fn_exit $as_status 34556} # as_fn_error 34557 34558 34559# as_fn_set_status STATUS 34560# ----------------------- 34561# Set $? to STATUS, without forking. 34562as_fn_set_status () 34563{ 34564 return $1 34565} # as_fn_set_status 34566 34567# as_fn_exit STATUS 34568# ----------------- 34569# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 34570as_fn_exit () 34571{ 34572 set +e 34573 as_fn_set_status $1 34574 exit $1 34575} # as_fn_exit 34576 34577# as_fn_unset VAR 34578# --------------- 34579# Portably unset VAR. 34580as_fn_unset () 34581{ 34582 { eval $1=; unset $1;} 34583} 34584as_unset=as_fn_unset 34585 34586# as_fn_append VAR VALUE 34587# ---------------------- 34588# Append the text in VALUE to the end of the definition contained in VAR. Take 34589# advantage of any shell optimizations that allow amortized linear growth over 34590# repeated appends, instead of the typical quadratic growth present in naive 34591# implementations. 34592if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 34593then : 34594 eval 'as_fn_append () 34595 { 34596 eval $1+=\$2 34597 }' 34598else case e in #( 34599 e) as_fn_append () 34600 { 34601 eval $1=\$$1\$2 34602 } ;; 34603esac 34604fi # as_fn_append 34605 34606# as_fn_arith ARG... 34607# ------------------ 34608# Perform arithmetic evaluation on the ARGs, and store the result in the 34609# global $as_val. Take advantage of shells that can avoid forks. The arguments 34610# must be portable across $(()) and expr. 34611if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 34612then : 34613 eval 'as_fn_arith () 34614 { 34615 as_val=$(( $* )) 34616 }' 34617else case e in #( 34618 e) as_fn_arith () 34619 { 34620 as_val=`expr "$@" || test $? -eq 1` 34621 } ;; 34622esac 34623fi # as_fn_arith 34624 34625 34626if expr a : '\(a\)' >/dev/null 2>&1 && 34627 test "X`expr 00001 : '.*\(...\)'`" = X001; then 34628 as_expr=expr 34629else 34630 as_expr=false 34631fi 34632 34633if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 34634 as_basename=basename 34635else 34636 as_basename=false 34637fi 34638 34639if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 34640 as_dirname=dirname 34641else 34642 as_dirname=false 34643fi 34644 34645as_me=`$as_basename -- "$0" || 34646$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 34647 X"$0" : 'X\(//\)$' \| \ 34648 X"$0" : 'X\(/\)' \| . 2>/dev/null || 34649printf "%s\n" X/"$0" | 34650 sed '/^.*\/\([^/][^/]*\)\/*$/{ 34651 s//\1/ 34652 q 34653 } 34654 /^X\/\(\/\/\)$/{ 34655 s//\1/ 34656 q 34657 } 34658 /^X\/\(\/\).*/{ 34659 s//\1/ 34660 q 34661 } 34662 s/.*/./; q'` 34663 34664# Avoid depending upon Character Ranges. 34665as_cr_letters='abcdefghijklmnopqrstuvwxyz' 34666as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 34667as_cr_Letters=$as_cr_letters$as_cr_LETTERS 34668as_cr_digits='0123456789' 34669as_cr_alnum=$as_cr_Letters$as_cr_digits 34670 34671 34672# Determine whether it's possible to make 'echo' print without a newline. 34673# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 34674# for compatibility with existing Makefiles. 34675ECHO_C= ECHO_N= ECHO_T= 34676case `echo -n x` in #((((( 34677-n*) 34678 case `echo 'xy\c'` in 34679 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 34680 xy) ECHO_C='\c';; 34681 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 34682 ECHO_T=' ';; 34683 esac;; 34684*) 34685 ECHO_N='-n';; 34686esac 34687 34688# For backward compatibility with old third-party macros, we provide 34689# the shell variables $as_echo and $as_echo_n. New code should use 34690# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 34691as_echo='printf %s\n' 34692as_echo_n='printf %s' 34693 34694rm -f conf$$ conf$$.exe conf$$.file 34695if test -d conf$$.dir; then 34696 rm -f conf$$.dir/conf$$.file 34697else 34698 rm -f conf$$.dir 34699 mkdir conf$$.dir 2>/dev/null 34700fi 34701if (echo >conf$$.file) 2>/dev/null; then 34702 if ln -s conf$$.file conf$$ 2>/dev/null; then 34703 as_ln_s='ln -s' 34704 # ... but there are two gotchas: 34705 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 34706 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 34707 # In both cases, we have to default to 'cp -pR'. 34708 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 34709 as_ln_s='cp -pR' 34710 elif ln conf$$.file conf$$ 2>/dev/null; then 34711 as_ln_s=ln 34712 else 34713 as_ln_s='cp -pR' 34714 fi 34715else 34716 as_ln_s='cp -pR' 34717fi 34718rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 34719rmdir conf$$.dir 2>/dev/null 34720 34721 34722# as_fn_mkdir_p 34723# ------------- 34724# Create "$as_dir" as a directory, including parents if necessary. 34725as_fn_mkdir_p () 34726{ 34727 34728 case $as_dir in #( 34729 -*) as_dir=./$as_dir;; 34730 esac 34731 test -d "$as_dir" || eval $as_mkdir_p || { 34732 as_dirs= 34733 while :; do 34734 case $as_dir in #( 34735 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 34736 *) as_qdir=$as_dir;; 34737 esac 34738 as_dirs="'$as_qdir' $as_dirs" 34739 as_dir=`$as_dirname -- "$as_dir" || 34740$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34741 X"$as_dir" : 'X\(//\)[^/]' \| \ 34742 X"$as_dir" : 'X\(//\)$' \| \ 34743 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 34744printf "%s\n" X"$as_dir" | 34745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34746 s//\1/ 34747 q 34748 } 34749 /^X\(\/\/\)[^/].*/{ 34750 s//\1/ 34751 q 34752 } 34753 /^X\(\/\/\)$/{ 34754 s//\1/ 34755 q 34756 } 34757 /^X\(\/\).*/{ 34758 s//\1/ 34759 q 34760 } 34761 s/.*/./; q'` 34762 test -d "$as_dir" && break 34763 done 34764 test -z "$as_dirs" || eval "mkdir $as_dirs" 34765 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 34766 34767 34768} # as_fn_mkdir_p 34769if mkdir -p . 2>/dev/null; then 34770 as_mkdir_p='mkdir -p "$as_dir"' 34771else 34772 test -d ./-p && rmdir ./-p 34773 as_mkdir_p=false 34774fi 34775 34776 34777# as_fn_executable_p FILE 34778# ----------------------- 34779# Test if FILE is an executable regular file. 34780as_fn_executable_p () 34781{ 34782 test -f "$1" && test -x "$1" 34783} # as_fn_executable_p 34784as_test_x='test -x' 34785as_executable_p=as_fn_executable_p 34786 34787# Sed expression to map a string onto a valid CPP name. 34788as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 34789as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 34790 34791# Sed expression to map a string onto a valid variable name. 34792as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 34793as_tr_sh="eval sed '$as_sed_sh'" # deprecated 34794 34795 34796exec 6>&1 34797## ----------------------------------- ## 34798## Main body of $CONFIG_STATUS script. ## 34799## ----------------------------------- ## 34800_ASEOF 34801test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 34802 34803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34804# Save the log message, to keep $0 and so on meaningful, and to 34805# report actual input values of CONFIG_FILES etc. instead of their 34806# values after options handling. 34807ac_log=" 34808This file was extended by xorg-server $as_me 21.1.14, which was 34809generated by GNU Autoconf 2.72. Invocation command line was 34810 34811 CONFIG_FILES = $CONFIG_FILES 34812 CONFIG_HEADERS = $CONFIG_HEADERS 34813 CONFIG_LINKS = $CONFIG_LINKS 34814 CONFIG_COMMANDS = $CONFIG_COMMANDS 34815 $ $0 $@ 34816 34817on `(hostname || uname -n) 2>/dev/null | sed 1q` 34818" 34819 34820_ACEOF 34821 34822case $ac_config_files in *" 34823"*) set x $ac_config_files; shift; ac_config_files=$*;; 34824esac 34825 34826case $ac_config_headers in *" 34827"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 34828esac 34829 34830 34831cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34832# Files that config.status was made for. 34833config_files="$ac_config_files" 34834config_headers="$ac_config_headers" 34835config_commands="$ac_config_commands" 34836 34837_ACEOF 34838 34839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34840ac_cs_usage="\ 34841'$as_me' instantiates files and other configuration actions 34842from templates according to the current configuration. Unless the files 34843and actions are specified as TAGs, all are instantiated by default. 34844 34845Usage: $0 [OPTION]... [TAG]... 34846 34847 -h, --help print this help, then exit 34848 -V, --version print version number and configuration settings, then exit 34849 --config print configuration, then exit 34850 -q, --quiet, --silent 34851 do not print progress messages 34852 -d, --debug don't remove temporary files 34853 --recheck update $as_me by reconfiguring in the same conditions 34854 --file=FILE[:TEMPLATE] 34855 instantiate the configuration file FILE 34856 --header=FILE[:TEMPLATE] 34857 instantiate the configuration header FILE 34858 34859Configuration files: 34860$config_files 34861 34862Configuration headers: 34863$config_headers 34864 34865Configuration commands: 34866$config_commands 34867 34868Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>." 34869 34870_ACEOF 34871ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 34872ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 34873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34874ac_cs_config='$ac_cs_config_escaped' 34875ac_cs_version="\\ 34876xorg-server config.status 21.1.14 34877configured by $0, generated by GNU Autoconf 2.72, 34878 with options \\"\$ac_cs_config\\" 34879 34880Copyright (C) 2023 Free Software Foundation, Inc. 34881This config.status script is free software; the Free Software Foundation 34882gives unlimited permission to copy, distribute and modify it." 34883 34884ac_pwd='$ac_pwd' 34885srcdir='$srcdir' 34886INSTALL='$INSTALL' 34887MKDIR_P='$MKDIR_P' 34888AWK='$AWK' 34889test -n "\$AWK" || AWK=awk 34890_ACEOF 34891 34892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34893# The default lists apply if the user does not specify any file. 34894ac_need_defaults=: 34895while test $# != 0 34896do 34897 case $1 in 34898 --*=?*) 34899 ac_option=`expr "X$1" : 'X\([^=]*\)='` 34900 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 34901 ac_shift=: 34902 ;; 34903 --*=) 34904 ac_option=`expr "X$1" : 'X\([^=]*\)='` 34905 ac_optarg= 34906 ac_shift=: 34907 ;; 34908 *) 34909 ac_option=$1 34910 ac_optarg=$2 34911 ac_shift=shift 34912 ;; 34913 esac 34914 34915 case $ac_option in 34916 # Handling of the options. 34917 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 34918 ac_cs_recheck=: ;; 34919 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 34920 printf "%s\n" "$ac_cs_version"; exit ;; 34921 --config | --confi | --conf | --con | --co | --c ) 34922 printf "%s\n" "$ac_cs_config"; exit ;; 34923 --debug | --debu | --deb | --de | --d | -d ) 34924 debug=: ;; 34925 --file | --fil | --fi | --f ) 34926 $ac_shift 34927 case $ac_optarg in 34928 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 34929 '') as_fn_error $? "missing file argument" ;; 34930 esac 34931 as_fn_append CONFIG_FILES " '$ac_optarg'" 34932 ac_need_defaults=false;; 34933 --header | --heade | --head | --hea ) 34934 $ac_shift 34935 case $ac_optarg in 34936 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 34937 esac 34938 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 34939 ac_need_defaults=false;; 34940 --he | --h) 34941 # Conflict between --help and --header 34942 as_fn_error $? "ambiguous option: '$1' 34943Try '$0 --help' for more information.";; 34944 --help | --hel | -h ) 34945 printf "%s\n" "$ac_cs_usage"; exit ;; 34946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 34947 | -silent | --silent | --silen | --sile | --sil | --si | --s) 34948 ac_cs_silent=: ;; 34949 34950 # This is an error. 34951 -*) as_fn_error $? "unrecognized option: '$1' 34952Try '$0 --help' for more information." ;; 34953 34954 *) as_fn_append ac_config_targets " $1" 34955 ac_need_defaults=false ;; 34956 34957 esac 34958 shift 34959done 34960 34961ac_configure_extra_args= 34962 34963if $ac_cs_silent; then 34964 exec 6>/dev/null 34965 ac_configure_extra_args="$ac_configure_extra_args --silent" 34966fi 34967 34968_ACEOF 34969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34970if \$ac_cs_recheck; then 34971 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 34972 shift 34973 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 34974 CONFIG_SHELL='$SHELL' 34975 export CONFIG_SHELL 34976 exec "\$@" 34977fi 34978 34979_ACEOF 34980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34981exec 5>>config.log 34982{ 34983 echo 34984 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 34985## Running $as_me. ## 34986_ASBOX 34987 printf "%s\n" "$ac_log" 34988} >&5 34989 34990_ACEOF 34991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34992# 34993# INIT-COMMANDS 34994# 34995AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 34996 34997 34998# The HP-UX ksh and POSIX shell print the target directory to stdout 34999# if CDPATH is set. 35000(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 35001 35002sed_quote_subst='$sed_quote_subst' 35003double_quote_subst='$double_quote_subst' 35004delay_variable_subst='$delay_variable_subst' 35005macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 35006macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 35007enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 35008AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 35009DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 35010OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 35011enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 35012pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 35013enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 35014shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 35015SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 35016ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 35017PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 35018host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 35019host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 35020host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 35021build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 35022build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 35023build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 35024SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 35025Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 35026GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 35027EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 35028FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 35029LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 35030NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 35031LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 35032max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 35033ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 35034exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 35035lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 35036lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 35037lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 35038lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 35039lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 35040reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 35041reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 35042FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 35043deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 35044file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 35045file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 35046want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 35047sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 35048AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 35049lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 35050AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 35051archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 35052STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 35053RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 35054old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 35055old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 35056old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 35057lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 35058CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 35059CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 35060compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 35061GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 35062lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 35063lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 35064lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 35065lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 35066lt_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"`' 35067lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 35068nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 35069lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 35070lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 35071objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 35072MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 35073lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 35074lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 35075lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 35076lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 35077lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 35078need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 35079MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 35080DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 35081NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 35082LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 35083OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 35084OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 35085libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 35086shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 35087extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 35088archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 35089enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 35090export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 35091whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 35092compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 35093old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 35094old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 35095archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 35096archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 35097module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 35098module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 35099with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 35100allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 35101no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 35102hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 35103hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 35104hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 35105hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 35106hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 35107hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 35108hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 35109inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 35110link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 35111always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 35112export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 35113exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 35114include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 35115prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 35116postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 35117file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 35118variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 35119need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 35120need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 35121version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 35122runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 35123shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 35124shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 35125libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 35126library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 35127soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 35128install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 35129postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 35130postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 35131finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 35132finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 35133hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 35134sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 35135configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 35136configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 35137hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 35138enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 35139enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 35140enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 35141old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 35142striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 35143 35144LTCC='$LTCC' 35145LTCFLAGS='$LTCFLAGS' 35146compiler='$compiler_DEFAULT' 35147 35148# A function that is used when there is no print builtin or printf. 35149func_fallback_echo () 35150{ 35151 eval 'cat <<_LTECHO_EOF 35152\$1 35153_LTECHO_EOF' 35154} 35155 35156# Quote evaled strings. 35157for var in AS \ 35158DLLTOOL \ 35159OBJDUMP \ 35160SHELL \ 35161ECHO \ 35162PATH_SEPARATOR \ 35163SED \ 35164GREP \ 35165EGREP \ 35166FGREP \ 35167LD \ 35168NM \ 35169LN_S \ 35170lt_SP2NL \ 35171lt_NL2SP \ 35172reload_flag \ 35173FILECMD \ 35174deplibs_check_method \ 35175file_magic_cmd \ 35176file_magic_glob \ 35177want_nocaseglob \ 35178sharedlib_from_linklib_cmd \ 35179AR \ 35180archiver_list_spec \ 35181STRIP \ 35182RANLIB \ 35183CC \ 35184CFLAGS \ 35185compiler \ 35186lt_cv_sys_global_symbol_pipe \ 35187lt_cv_sys_global_symbol_to_cdecl \ 35188lt_cv_sys_global_symbol_to_import \ 35189lt_cv_sys_global_symbol_to_c_name_address \ 35190lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 35191lt_cv_nm_interface \ 35192nm_file_list_spec \ 35193lt_cv_truncate_bin \ 35194lt_prog_compiler_no_builtin_flag \ 35195lt_prog_compiler_pic \ 35196lt_prog_compiler_wl \ 35197lt_prog_compiler_static \ 35198lt_cv_prog_compiler_c_o \ 35199need_locks \ 35200MANIFEST_TOOL \ 35201DSYMUTIL \ 35202NMEDIT \ 35203LIPO \ 35204OTOOL \ 35205OTOOL64 \ 35206shrext_cmds \ 35207export_dynamic_flag_spec \ 35208whole_archive_flag_spec \ 35209compiler_needs_object \ 35210with_gnu_ld \ 35211allow_undefined_flag \ 35212no_undefined_flag \ 35213hardcode_libdir_flag_spec \ 35214hardcode_libdir_separator \ 35215exclude_expsyms \ 35216include_expsyms \ 35217file_list_spec \ 35218variables_saved_for_relink \ 35219libname_spec \ 35220library_names_spec \ 35221soname_spec \ 35222install_override_mode \ 35223finish_eval \ 35224old_striplib \ 35225striplib; do 35226 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 35227 *[\\\\\\\`\\"\\\$]*) 35228 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 35229 ;; 35230 *) 35231 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 35232 ;; 35233 esac 35234done 35235 35236# Double-quote double-evaled strings. 35237for var in reload_cmds \ 35238old_postinstall_cmds \ 35239old_postuninstall_cmds \ 35240old_archive_cmds \ 35241extract_expsyms_cmds \ 35242old_archive_from_new_cmds \ 35243old_archive_from_expsyms_cmds \ 35244archive_cmds \ 35245archive_expsym_cmds \ 35246module_cmds \ 35247module_expsym_cmds \ 35248export_symbols_cmds \ 35249prelink_cmds \ 35250postlink_cmds \ 35251postinstall_cmds \ 35252postuninstall_cmds \ 35253finish_cmds \ 35254sys_lib_search_path_spec \ 35255configure_time_dlsearch_path \ 35256configure_time_lt_sys_library_path; do 35257 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 35258 *[\\\\\\\`\\"\\\$]*) 35259 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 35260 ;; 35261 *) 35262 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 35263 ;; 35264 esac 35265done 35266 35267ac_aux_dir='$ac_aux_dir' 35268 35269# See if we are running on zsh, and set the options that allow our 35270# commands through without removal of \ escapes INIT. 35271if test -n "\${ZSH_VERSION+set}"; then 35272 setopt NO_GLOB_SUBST 35273fi 35274 35275 35276 PACKAGE='$PACKAGE' 35277 VERSION='$VERSION' 35278 RM='$RM' 35279 ofile='$ofile' 35280 35281 35282 35283 35284_ACEOF 35285 35286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35287 35288# Handling of arguments. 35289for ac_config_target in $ac_config_targets 35290do 35291 case $ac_config_target in 35292 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 35293 "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;; 35294 "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;; 35295 "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;; 35296 "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;; 35297 "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;; 35298 "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;; 35299 "include/version-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/version-config.h" ;; 35300 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 35301 "sdksyms") CONFIG_COMMANDS="$CONFIG_COMMANDS sdksyms" ;; 35302 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 35303 "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;; 35304 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 35305 "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;; 35306 "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;; 35307 "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;; 35308 "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;; 35309 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 35310 "doc/dtrace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dtrace/Makefile" ;; 35311 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 35312 "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;; 35313 "glamor/Makefile") CONFIG_FILES="$CONFIG_FILES glamor/Makefile" ;; 35314 "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;; 35315 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 35316 "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;; 35317 "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;; 35318 "miext/sync/Makefile") CONFIG_FILES="$CONFIG_FILES miext/sync/Makefile" ;; 35319 "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;; 35320 "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;; 35321 "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;; 35322 "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;; 35323 "pseudoramiX/Makefile") CONFIG_FILES="$CONFIG_FILES pseudoramiX/Makefile" ;; 35324 "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;; 35325 "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;; 35326 "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;; 35327 "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;; 35328 "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;; 35329 "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;; 35330 "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;; 35331 "dri3/Makefile") CONFIG_FILES="$CONFIG_FILES dri3/Makefile" ;; 35332 "present/Makefile") CONFIG_FILES="$CONFIG_FILES present/Makefile" ;; 35333 "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;; 35334 "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;; 35335 "hw/xfree86/Xorg.sh") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Xorg.sh" ;; 35336 "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;; 35337 "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;; 35338 "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;; 35339 "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;; 35340 "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;; 35341 "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;; 35342 "hw/xfree86/dri2/pci_ids/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/pci_ids/Makefile" ;; 35343 "hw/xfree86/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/Makefile" ;; 35344 "hw/xfree86/drivers/inputtest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/inputtest/Makefile" ;; 35345 "hw/xfree86/drivers/modesetting/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/modesetting/Makefile" ;; 35346 "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;; 35347 "hw/xfree86/exa/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/man/Makefile" ;; 35348 "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;; 35349 "hw/xfree86/fbdevhw/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/man/Makefile" ;; 35350 "hw/xfree86/glamor_egl/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/glamor_egl/Makefile" ;; 35351 "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;; 35352 "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;; 35353 "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;; 35354 "hw/xfree86/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/man/Makefile" ;; 35355 "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;; 35356 "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;; 35357 "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;; 35358 "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;; 35359 "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;; 35360 "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;; 35361 "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;; 35362 "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;; 35363 "hw/xfree86/os-support/stub/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/stub/Makefile" ;; 35364 "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;; 35365 "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;; 35366 "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;; 35367 "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;; 35368 "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;; 35369 "hw/xfree86/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xkb/Makefile" ;; 35370 "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;; 35371 "hw/xfree86/utils/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/man/Makefile" ;; 35372 "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;; 35373 "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;; 35374 "hw/vfb/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/man/Makefile" ;; 35375 "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;; 35376 "hw/xnest/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/man/Makefile" ;; 35377 "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;; 35378 "hw/xwin/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/dri/Makefile" ;; 35379 "hw/xwin/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/glx/Makefile" ;; 35380 "hw/xwin/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/man/Makefile" ;; 35381 "hw/xwin/winclipboard/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/winclipboard/Makefile" ;; 35382 "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;; 35383 "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;; 35384 "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;; 35385 "hw/xquartz/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/man/Makefile" ;; 35386 "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;; 35387 "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;; 35388 "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;; 35389 "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;; 35390 "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;; 35391 "hw/kdrive/ephyr/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/man/Makefile" ;; 35392 "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;; 35393 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 35394 "xserver.ent") CONFIG_FILES="$CONFIG_FILES xserver.ent" ;; 35395 "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;; 35396 35397 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 35398 esac 35399done 35400 35401 35402# If the user did not use the arguments to specify the items to instantiate, 35403# then the envvar interface is used. Set only those that are not. 35404# We use the long form for the default assignment because of an extremely 35405# bizarre bug on SunOS 4.1.3. 35406if $ac_need_defaults; then 35407 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 35408 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 35409 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 35410fi 35411 35412# Have a temporary directory for convenience. Make it in the build tree 35413# simply because there is no reason against having it here, and in addition, 35414# creating and moving files from /tmp can sometimes cause problems. 35415# Hook for its removal unless debugging. 35416# Note that there is a small window in which the directory will not be cleaned: 35417# after its creation but before its name has been assigned to '$tmp'. 35418$debug || 35419{ 35420 tmp= ac_tmp= 35421 trap 'exit_status=$? 35422 : "${ac_tmp:=$tmp}" 35423 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 35424' 0 35425 trap 'as_fn_exit 1' 1 2 13 15 35426} 35427# Create a (secure) tmp directory for tmp files. 35428 35429{ 35430 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 35431 test -d "$tmp" 35432} || 35433{ 35434 tmp=./conf$$-$RANDOM 35435 (umask 077 && mkdir "$tmp") 35436} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 35437ac_tmp=$tmp 35438 35439# Set up the scripts for CONFIG_FILES section. 35440# No need to generate them if there are no CONFIG_FILES. 35441# This happens for instance with './config.status config.h'. 35442if test -n "$CONFIG_FILES"; then 35443 35444 35445ac_cr=`echo X | tr X '\015'` 35446# On cygwin, bash can eat \r inside `` if the user requested igncr. 35447# But we know of no other shell where ac_cr would be empty at this 35448# point, so we can use a bashism as a fallback. 35449if test "x$ac_cr" = x; then 35450 eval ac_cr=\$\'\\r\' 35451fi 35452ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 35453if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 35454 ac_cs_awk_cr='\\r' 35455else 35456 ac_cs_awk_cr=$ac_cr 35457fi 35458 35459echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 35460_ACEOF 35461 35462 35463{ 35464 echo "cat >conf$$subs.awk <<_ACEOF" && 35465 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 35466 echo "_ACEOF" 35467} >conf$$subs.sh || 35468 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 35469ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 35470ac_delim='%!_!# ' 35471for ac_last_try in false false false false false :; do 35472 . ./conf$$subs.sh || 35473 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 35474 35475 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 35476 if test $ac_delim_n = $ac_delim_num; then 35477 break 35478 elif $ac_last_try; then 35479 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 35480 else 35481 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 35482 fi 35483done 35484rm -f conf$$subs.sh 35485 35486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35487cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 35488_ACEOF 35489sed -n ' 35490h 35491s/^/S["/; s/!.*/"]=/ 35492p 35493g 35494s/^[^!]*!// 35495:repl 35496t repl 35497s/'"$ac_delim"'$// 35498t delim 35499:nl 35500h 35501s/\(.\{148\}\)..*/\1/ 35502t more1 35503s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 35504p 35505n 35506b repl 35507:more1 35508s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 35509p 35510g 35511s/.\{148\}// 35512t nl 35513:delim 35514h 35515s/\(.\{148\}\)..*/\1/ 35516t more2 35517s/["\\]/\\&/g; s/^/"/; s/$/"/ 35518p 35519b 35520:more2 35521s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 35522p 35523g 35524s/.\{148\}// 35525t delim 35526' <conf$$subs.awk | sed ' 35527/^[^""]/{ 35528 N 35529 s/\n// 35530} 35531' >>$CONFIG_STATUS || ac_write_fail=1 35532rm -f conf$$subs.awk 35533cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35534_ACAWK 35535cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 35536 for (key in S) S_is_set[key] = 1 35537 FS = "" 35538 35539} 35540{ 35541 line = $ 0 35542 nfields = split(line, field, "@") 35543 substed = 0 35544 len = length(field[1]) 35545 for (i = 2; i < nfields; i++) { 35546 key = field[i] 35547 keylen = length(key) 35548 if (S_is_set[key]) { 35549 value = S[key] 35550 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 35551 len += length(value) + length(field[++i]) 35552 substed = 1 35553 } else 35554 len += 1 + keylen 35555 } 35556 35557 print line 35558} 35559 35560_ACAWK 35561_ACEOF 35562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35563if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 35564 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 35565else 35566 cat 35567fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 35568 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 35569_ACEOF 35570 35571# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 35572# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 35573# trailing colons and then remove the whole line if VPATH becomes empty 35574# (actually we leave an empty line to preserve line numbers). 35575if test "x$srcdir" = x.; then 35576 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 35577h 35578s/// 35579s/^/:/ 35580s/[ ]*$/:/ 35581s/:\$(srcdir):/:/g 35582s/:\${srcdir}:/:/g 35583s/:@srcdir@:/:/g 35584s/^:*// 35585s/:*$// 35586x 35587s/\(=[ ]*\).*/\1/ 35588G 35589s/\n// 35590s/^[^=]*=[ ]*$// 35591}' 35592fi 35593 35594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35595fi # test -n "$CONFIG_FILES" 35596 35597# Set up the scripts for CONFIG_HEADERS section. 35598# No need to generate them if there are no CONFIG_HEADERS. 35599# This happens for instance with './config.status Makefile'. 35600if test -n "$CONFIG_HEADERS"; then 35601cat >"$ac_tmp/defines.awk" <<\_ACAWK || 35602BEGIN { 35603_ACEOF 35604 35605# Transform confdefs.h into an awk script 'defines.awk', embedded as 35606# here-document in config.status, that substitutes the proper values into 35607# config.h.in to produce config.h. 35608 35609# Create a delimiter string that does not exist in confdefs.h, to ease 35610# handling of long lines. 35611ac_delim='%!_!# ' 35612for ac_last_try in false false :; do 35613 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 35614 if test -z "$ac_tt"; then 35615 break 35616 elif $ac_last_try; then 35617 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 35618 else 35619 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 35620 fi 35621done 35622 35623# For the awk script, D is an array of macro values keyed by name, 35624# likewise P contains macro parameters if any. Preserve backslash 35625# newline sequences. 35626 35627ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 35628sed -n ' 35629s/.\{148\}/&'"$ac_delim"'/g 35630t rset 35631:rset 35632s/^[ ]*#[ ]*define[ ][ ]*/ / 35633t def 35634d 35635:def 35636s/\\$// 35637t bsnl 35638s/["\\]/\\&/g 35639s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 35640D["\1"]=" \3"/p 35641s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 35642d 35643:bsnl 35644s/["\\]/\\&/g 35645s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 35646D["\1"]=" \3\\\\\\n"\\/p 35647t cont 35648s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 35649t cont 35650d 35651:cont 35652n 35653s/.\{148\}/&'"$ac_delim"'/g 35654t clear 35655:clear 35656s/\\$// 35657t bsnlc 35658s/["\\]/\\&/g; s/^/"/; s/$/"/p 35659d 35660:bsnlc 35661s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 35662b cont 35663' <confdefs.h | sed ' 35664s/'"$ac_delim"'/"\\\ 35665"/g' >>$CONFIG_STATUS || ac_write_fail=1 35666 35667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35668 for (key in D) D_is_set[key] = 1 35669 FS = "" 35670} 35671/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 35672 line = \$ 0 35673 split(line, arg, " ") 35674 if (arg[1] == "#") { 35675 defundef = arg[2] 35676 mac1 = arg[3] 35677 } else { 35678 defundef = substr(arg[1], 2) 35679 mac1 = arg[2] 35680 } 35681 split(mac1, mac2, "(") #) 35682 macro = mac2[1] 35683 prefix = substr(line, 1, index(line, defundef) - 1) 35684 if (D_is_set[macro]) { 35685 # Preserve the white space surrounding the "#". 35686 print prefix "define", macro P[macro] D[macro] 35687 next 35688 } else { 35689 # Replace #undef with comments. This is necessary, for example, 35690 # in the case of _POSIX_SOURCE, which is predefined and required 35691 # on some systems where configure will not decide to define it. 35692 if (defundef == "undef") { 35693 print "/*", prefix defundef, macro, "*/" 35694 next 35695 } 35696 } 35697} 35698{ print } 35699_ACAWK 35700_ACEOF 35701cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35702 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 35703fi # test -n "$CONFIG_HEADERS" 35704 35705 35706eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 35707shift 35708for ac_tag 35709do 35710 case $ac_tag in 35711 :[FHLC]) ac_mode=$ac_tag; continue;; 35712 esac 35713 case $ac_mode$ac_tag in 35714 :[FHL]*:*);; 35715 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 35716 :[FH]-) ac_tag=-:-;; 35717 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 35718 esac 35719 ac_save_IFS=$IFS 35720 IFS=: 35721 set x $ac_tag 35722 IFS=$ac_save_IFS 35723 shift 35724 ac_file=$1 35725 shift 35726 35727 case $ac_mode in 35728 :L) ac_source=$1;; 35729 :[FH]) 35730 ac_file_inputs= 35731 for ac_f 35732 do 35733 case $ac_f in 35734 -) ac_f="$ac_tmp/stdin";; 35735 *) # Look for the file first in the build tree, then in the source tree 35736 # (if the path is not absolute). The absolute path cannot be DOS-style, 35737 # because $ac_f cannot contain ':'. 35738 test -f "$ac_f" || 35739 case $ac_f in 35740 [\\/$]*) false;; 35741 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 35742 esac || 35743 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 35744 esac 35745 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 35746 as_fn_append ac_file_inputs " '$ac_f'" 35747 done 35748 35749 # Let's still pretend it is 'configure' which instantiates (i.e., don't 35750 # use $as_me), people would be surprised to read: 35751 # /* config.h. Generated by config.status. */ 35752 configure_input='Generated from '` 35753 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 35754 `' by configure.' 35755 if test x"$ac_file" != x-; then 35756 configure_input="$ac_file. $configure_input" 35757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 35758printf "%s\n" "$as_me: creating $ac_file" >&6;} 35759 fi 35760 # Neutralize special characters interpreted by sed in replacement strings. 35761 case $configure_input in #( 35762 *\&* | *\|* | *\\* ) 35763 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 35764 sed 's/[\\\\&|]/\\\\&/g'`;; #( 35765 *) ac_sed_conf_input=$configure_input;; 35766 esac 35767 35768 case $ac_tag in 35769 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 35770 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 35771 esac 35772 ;; 35773 esac 35774 35775 ac_dir=`$as_dirname -- "$ac_file" || 35776$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35777 X"$ac_file" : 'X\(//\)[^/]' \| \ 35778 X"$ac_file" : 'X\(//\)$' \| \ 35779 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 35780printf "%s\n" X"$ac_file" | 35781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35782 s//\1/ 35783 q 35784 } 35785 /^X\(\/\/\)[^/].*/{ 35786 s//\1/ 35787 q 35788 } 35789 /^X\(\/\/\)$/{ 35790 s//\1/ 35791 q 35792 } 35793 /^X\(\/\).*/{ 35794 s//\1/ 35795 q 35796 } 35797 s/.*/./; q'` 35798 as_dir="$ac_dir"; as_fn_mkdir_p 35799 ac_builddir=. 35800 35801case "$ac_dir" in 35802.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 35803*) 35804 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 35805 # A ".." for each directory in $ac_dir_suffix. 35806 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 35807 case $ac_top_builddir_sub in 35808 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 35809 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 35810 esac ;; 35811esac 35812ac_abs_top_builddir=$ac_pwd 35813ac_abs_builddir=$ac_pwd$ac_dir_suffix 35814# for backward compatibility: 35815ac_top_builddir=$ac_top_build_prefix 35816 35817case $srcdir in 35818 .) # We are building in place. 35819 ac_srcdir=. 35820 ac_top_srcdir=$ac_top_builddir_sub 35821 ac_abs_top_srcdir=$ac_pwd ;; 35822 [\\/]* | ?:[\\/]* ) # Absolute name. 35823 ac_srcdir=$srcdir$ac_dir_suffix; 35824 ac_top_srcdir=$srcdir 35825 ac_abs_top_srcdir=$srcdir ;; 35826 *) # Relative name. 35827 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 35828 ac_top_srcdir=$ac_top_build_prefix$srcdir 35829 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 35830esac 35831ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 35832 35833 35834 case $ac_mode in 35835 :F) 35836 # 35837 # CONFIG_FILE 35838 # 35839 35840 case $INSTALL in 35841 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 35842 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 35843 esac 35844 ac_MKDIR_P=$MKDIR_P 35845 case $MKDIR_P in 35846 [\\/$]* | ?:[\\/]* ) ;; 35847 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 35848 esac 35849_ACEOF 35850 35851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35852# If the template does not know about datarootdir, expand it. 35853# FIXME: This hack should be removed a few years after 2.60. 35854ac_datarootdir_hack=; ac_datarootdir_seen= 35855ac_sed_dataroot=' 35856/datarootdir/ { 35857 p 35858 q 35859} 35860/@datadir@/p 35861/@docdir@/p 35862/@infodir@/p 35863/@localedir@/p 35864/@mandir@/p' 35865case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 35866*datarootdir*) ac_datarootdir_seen=yes;; 35867*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 35868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 35869printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 35870_ACEOF 35871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35872 ac_datarootdir_hack=' 35873 s&@datadir@&$datadir&g 35874 s&@docdir@&$docdir&g 35875 s&@infodir@&$infodir&g 35876 s&@localedir@&$localedir&g 35877 s&@mandir@&$mandir&g 35878 s&\\\${datarootdir}&$datarootdir&g' ;; 35879esac 35880_ACEOF 35881 35882# Neutralize VPATH when '$srcdir' = '.'. 35883# Shell code in configure.ac might set extrasub. 35884# FIXME: do we really want to maintain this feature? 35885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35886ac_sed_extra="$ac_vpsub 35887$extrasub 35888_ACEOF 35889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35890:t 35891/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 35892s|@configure_input@|$ac_sed_conf_input|;t t 35893s&@top_builddir@&$ac_top_builddir_sub&;t t 35894s&@top_build_prefix@&$ac_top_build_prefix&;t t 35895s&@srcdir@&$ac_srcdir&;t t 35896s&@abs_srcdir@&$ac_abs_srcdir&;t t 35897s&@top_srcdir@&$ac_top_srcdir&;t t 35898s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 35899s&@builddir@&$ac_builddir&;t t 35900s&@abs_builddir@&$ac_abs_builddir&;t t 35901s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 35902s&@INSTALL@&$ac_INSTALL&;t t 35903s&@MKDIR_P@&$ac_MKDIR_P&;t t 35904$ac_datarootdir_hack 35905" 35906eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 35907 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 35908 35909test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 35910 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 35911 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 35912 "$ac_tmp/out"`; test -z "$ac_out"; } && 35913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 35914which seems to be undefined. Please make sure it is defined" >&5 35915printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 35916which seems to be undefined. Please make sure it is defined" >&2;} 35917 35918 rm -f "$ac_tmp/stdin" 35919 case $ac_file in 35920 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 35921 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 35922 esac \ 35923 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 35924 ;; 35925 :H) 35926 # 35927 # CONFIG_HEADER 35928 # 35929 if test x"$ac_file" != x-; then 35930 { 35931 printf "%s\n" "/* $configure_input */" >&1 \ 35932 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 35933 } >"$ac_tmp/config.h" \ 35934 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 35935 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 35936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 35937printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 35938 else 35939 rm -f "$ac_file" 35940 mv "$ac_tmp/config.h" "$ac_file" \ 35941 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 35942 fi 35943 else 35944 printf "%s\n" "/* $configure_input */" >&1 \ 35945 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 35946 || as_fn_error $? "could not create -" "$LINENO" 5 35947 fi 35948# Compute "$ac_file"'s index in $config_headers. 35949_am_arg="$ac_file" 35950_am_stamp_count=1 35951for _am_header in $config_headers :; do 35952 case $_am_header in 35953 $_am_arg | $_am_arg:* ) 35954 break ;; 35955 * ) 35956 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 35957 esac 35958done 35959echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 35960$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35961 X"$_am_arg" : 'X\(//\)[^/]' \| \ 35962 X"$_am_arg" : 'X\(//\)$' \| \ 35963 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 35964printf "%s\n" X"$_am_arg" | 35965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35966 s//\1/ 35967 q 35968 } 35969 /^X\(\/\/\)[^/].*/{ 35970 s//\1/ 35971 q 35972 } 35973 /^X\(\/\/\)$/{ 35974 s//\1/ 35975 q 35976 } 35977 /^X\(\/\).*/{ 35978 s//\1/ 35979 q 35980 } 35981 s/.*/./; q'`/stamp-h$_am_stamp_count 35982 ;; 35983 35984 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 35985printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 35986 ;; 35987 esac 35988 35989 35990 case $ac_file$ac_mode in 35991 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 35992 # Older Autoconf quotes --file arguments for eval, but not when files 35993 # are listed without --file. Let's play safe and only enable the eval 35994 # if we detect the quoting. 35995 # TODO: see whether this extra hack can be removed once we start 35996 # requiring Autoconf 2.70 or later. 35997 case $CONFIG_FILES in #( 35998 *\'*) : 35999 eval set x "$CONFIG_FILES" ;; #( 36000 *) : 36001 set x $CONFIG_FILES ;; #( 36002 *) : 36003 ;; 36004esac 36005 shift 36006 # Used to flag and report bootstrapping failures. 36007 am_rc=0 36008 for am_mf 36009 do 36010 # Strip MF so we end up with the name of the file. 36011 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 36012 # Check whether this is an Automake generated Makefile which includes 36013 # dependency-tracking related rules and includes. 36014 # Grep'ing the whole file directly is not great: AIX grep has a line 36015 # limit of 2048, but all sed's we know have understand at least 4000. 36016 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 36017 || continue 36018 am_dirpart=`$as_dirname -- "$am_mf" || 36019$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 36020 X"$am_mf" : 'X\(//\)[^/]' \| \ 36021 X"$am_mf" : 'X\(//\)$' \| \ 36022 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 36023printf "%s\n" X"$am_mf" | 36024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 36025 s//\1/ 36026 q 36027 } 36028 /^X\(\/\/\)[^/].*/{ 36029 s//\1/ 36030 q 36031 } 36032 /^X\(\/\/\)$/{ 36033 s//\1/ 36034 q 36035 } 36036 /^X\(\/\).*/{ 36037 s//\1/ 36038 q 36039 } 36040 s/.*/./; q'` 36041 am_filepart=`$as_basename -- "$am_mf" || 36042$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 36043 X"$am_mf" : 'X\(//\)$' \| \ 36044 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 36045printf "%s\n" X/"$am_mf" | 36046 sed '/^.*\/\([^/][^/]*\)\/*$/{ 36047 s//\1/ 36048 q 36049 } 36050 /^X\/\(\/\/\)$/{ 36051 s//\1/ 36052 q 36053 } 36054 /^X\/\(\/\).*/{ 36055 s//\1/ 36056 q 36057 } 36058 s/.*/./; q'` 36059 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 36060 && sed -e '/# am--include-marker/d' "$am_filepart" \ 36061 | $MAKE -f - am--depfiles" >&5 36062 (cd "$am_dirpart" \ 36063 && sed -e '/# am--include-marker/d' "$am_filepart" \ 36064 | $MAKE -f - am--depfiles) >&5 2>&5 36065 ac_status=$? 36066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36067 (exit $ac_status); } || am_rc=$? 36068 done 36069 if test $am_rc -ne 0; then 36070 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 36071printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 36072as_fn_error $? "Something went wrong bootstrapping makefile fragments 36073 for automatic dependency tracking. If GNU make was not used, consider 36074 re-running the configure script with MAKE=\"gmake\" (or whatever is 36075 necessary). You can also try re-running configure with the 36076 '--disable-dependency-tracking' option to at least be able to build 36077 the package (albeit without support for automatic dependency tracking). 36078See 'config.log' for more details" "$LINENO" 5; } 36079 fi 36080 { am_dirpart=; unset am_dirpart;} 36081 { am_filepart=; unset am_filepart;} 36082 { am_mf=; unset am_mf;} 36083 { am_rc=; unset am_rc;} 36084 rm -f conftest-deps.mk 36085} 36086 ;; 36087 "libtool":C) 36088 36089 # See if we are running on zsh, and set the options that allow our 36090 # commands through without removal of \ escapes. 36091 if test -n "${ZSH_VERSION+set}"; then 36092 setopt NO_GLOB_SUBST 36093 fi 36094 36095 cfgfile=${ofile}T 36096 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 36097 $RM "$cfgfile" 36098 36099 cat <<_LT_EOF >> "$cfgfile" 36100#! $SHELL 36101# Generated automatically by $as_me ($PACKAGE) $VERSION 36102# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 36103# NOTE: Changes made to this file will be lost: look at ltmain.sh. 36104 36105# Provide generalized library-building support services. 36106# Written by Gordon Matzigkeit, 1996 36107 36108# Copyright (C) 2014 Free Software Foundation, Inc. 36109# This is free software; see the source for copying conditions. There is NO 36110# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 36111 36112# GNU Libtool is free software; you can redistribute it and/or modify 36113# it under the terms of the GNU General Public License as published by 36114# the Free Software Foundation; either version 2 of of the License, or 36115# (at your option) any later version. 36116# 36117# As a special exception to the GNU General Public License, if you 36118# distribute this file as part of a program or library that is built 36119# using GNU Libtool, you may include this file under the same 36120# distribution terms that you use for the rest of that program. 36121# 36122# GNU Libtool is distributed in the hope that it will be useful, but 36123# WITHOUT ANY WARRANTY; without even the implied warranty of 36124# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 36125# GNU General Public License for more details. 36126# 36127# You should have received a copy of the GNU General Public License 36128# along with this program. If not, see <http://www.gnu.org/licenses/>. 36129 36130 36131# The names of the tagged configurations supported by this script. 36132available_tags='' 36133 36134# Configured defaults for sys_lib_dlsearch_path munging. 36135: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 36136 36137# ### BEGIN LIBTOOL CONFIG 36138 36139# Which release of libtool.m4 was used? 36140macro_version=$macro_version 36141macro_revision=$macro_revision 36142 36143# Whether or not to build static libraries. 36144build_old_libs=$enable_static 36145 36146# Assembler program. 36147AS=$lt_AS 36148 36149# DLL creation program. 36150DLLTOOL=$lt_DLLTOOL 36151 36152# Object dumper program. 36153OBJDUMP=$lt_OBJDUMP 36154 36155# Whether or not to build shared libraries. 36156build_libtool_libs=$enable_shared 36157 36158# What type of objects to build. 36159pic_mode=$pic_mode 36160 36161# Whether or not to optimize for fast installation. 36162fast_install=$enable_fast_install 36163 36164# Shared archive member basename,for filename based shared library versioning on AIX. 36165shared_archive_member_spec=$shared_archive_member_spec 36166 36167# Shell to use when invoking shell scripts. 36168SHELL=$lt_SHELL 36169 36170# An echo program that protects backslashes. 36171ECHO=$lt_ECHO 36172 36173# The PATH separator for the build system. 36174PATH_SEPARATOR=$lt_PATH_SEPARATOR 36175 36176# The host system. 36177host_alias=$host_alias 36178host=$host 36179host_os=$host_os 36180 36181# The build system. 36182build_alias=$build_alias 36183build=$build 36184build_os=$build_os 36185 36186# A sed program that does not truncate output. 36187SED=$lt_SED 36188 36189# Sed that helps us avoid accidentally triggering echo(1) options like -n. 36190Xsed="\$SED -e 1s/^X//" 36191 36192# A grep program that handles long lines. 36193GREP=$lt_GREP 36194 36195# An ERE matcher. 36196EGREP=$lt_EGREP 36197 36198# A literal string matcher. 36199FGREP=$lt_FGREP 36200 36201# A BSD- or MS-compatible name lister. 36202NM=$lt_NM 36203 36204# Whether we need soft or hard links. 36205LN_S=$lt_LN_S 36206 36207# What is the maximum length of a command? 36208max_cmd_len=$max_cmd_len 36209 36210# Object file suffix (normally "o"). 36211objext=$ac_objext 36212 36213# Executable file suffix (normally ""). 36214exeext=$exeext 36215 36216# whether the shell understands "unset". 36217lt_unset=$lt_unset 36218 36219# turn spaces into newlines. 36220SP2NL=$lt_lt_SP2NL 36221 36222# turn newlines into spaces. 36223NL2SP=$lt_lt_NL2SP 36224 36225# convert \$build file names to \$host format. 36226to_host_file_cmd=$lt_cv_to_host_file_cmd 36227 36228# convert \$build files to toolchain format. 36229to_tool_file_cmd=$lt_cv_to_tool_file_cmd 36230 36231# A file(cmd) program that detects file types. 36232FILECMD=$lt_FILECMD 36233 36234# Method to check whether dependent libraries are shared objects. 36235deplibs_check_method=$lt_deplibs_check_method 36236 36237# Command to use when deplibs_check_method = "file_magic". 36238file_magic_cmd=$lt_file_magic_cmd 36239 36240# How to find potential files when deplibs_check_method = "file_magic". 36241file_magic_glob=$lt_file_magic_glob 36242 36243# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 36244want_nocaseglob=$lt_want_nocaseglob 36245 36246# Command to associate shared and link libraries. 36247sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 36248 36249# The archiver. 36250AR=$lt_AR 36251 36252# Flags to create an archive (by configure). 36253lt_ar_flags=$lt_ar_flags 36254 36255# Flags to create an archive. 36256AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 36257 36258# How to feed a file listing to the archiver. 36259archiver_list_spec=$lt_archiver_list_spec 36260 36261# A symbol stripping program. 36262STRIP=$lt_STRIP 36263 36264# Commands used to install an old-style archive. 36265RANLIB=$lt_RANLIB 36266old_postinstall_cmds=$lt_old_postinstall_cmds 36267old_postuninstall_cmds=$lt_old_postuninstall_cmds 36268 36269# Whether to use a lock for old archive extraction. 36270lock_old_archive_extraction=$lock_old_archive_extraction 36271 36272# A C compiler. 36273LTCC=$lt_CC 36274 36275# LTCC compiler flags. 36276LTCFLAGS=$lt_CFLAGS 36277 36278# Take the output of nm and produce a listing of raw symbols and C names. 36279global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 36280 36281# Transform the output of nm in a proper C declaration. 36282global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 36283 36284# Transform the output of nm into a list of symbols to manually relocate. 36285global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 36286 36287# Transform the output of nm in a C name address pair. 36288global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 36289 36290# Transform the output of nm in a C name address pair when lib prefix is needed. 36291global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 36292 36293# The name lister interface. 36294nm_interface=$lt_lt_cv_nm_interface 36295 36296# Specify filename containing input files for \$NM. 36297nm_file_list_spec=$lt_nm_file_list_spec 36298 36299# The root where to search for dependent libraries,and where our libraries should be installed. 36300lt_sysroot=$lt_sysroot 36301 36302# Command to truncate a binary pipe. 36303lt_truncate_bin=$lt_lt_cv_truncate_bin 36304 36305# The name of the directory that contains temporary libtool files. 36306objdir=$objdir 36307 36308# Used to examine libraries when file_magic_cmd begins with "file". 36309MAGIC_CMD=$MAGIC_CMD 36310 36311# Must we lock files when doing compilation? 36312need_locks=$lt_need_locks 36313 36314# Manifest tool. 36315MANIFEST_TOOL=$lt_MANIFEST_TOOL 36316 36317# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 36318DSYMUTIL=$lt_DSYMUTIL 36319 36320# Tool to change global to local symbols on Mac OS X. 36321NMEDIT=$lt_NMEDIT 36322 36323# Tool to manipulate fat objects and archives on Mac OS X. 36324LIPO=$lt_LIPO 36325 36326# ldd/readelf like tool for Mach-O binaries on Mac OS X. 36327OTOOL=$lt_OTOOL 36328 36329# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 36330OTOOL64=$lt_OTOOL64 36331 36332# Old archive suffix (normally "a"). 36333libext=$libext 36334 36335# Shared library suffix (normally ".so"). 36336shrext_cmds=$lt_shrext_cmds 36337 36338# The commands to extract the exported symbol list from a shared archive. 36339extract_expsyms_cmds=$lt_extract_expsyms_cmds 36340 36341# Variables whose values should be saved in libtool wrapper scripts and 36342# restored at link time. 36343variables_saved_for_relink=$lt_variables_saved_for_relink 36344 36345# Do we need the "lib" prefix for modules? 36346need_lib_prefix=$need_lib_prefix 36347 36348# Do we need a version for libraries? 36349need_version=$need_version 36350 36351# Library versioning type. 36352version_type=$version_type 36353 36354# Shared library runtime path variable. 36355runpath_var=$runpath_var 36356 36357# Shared library path variable. 36358shlibpath_var=$shlibpath_var 36359 36360# Is shlibpath searched before the hard-coded library search path? 36361shlibpath_overrides_runpath=$shlibpath_overrides_runpath 36362 36363# Format of library name prefix. 36364libname_spec=$lt_libname_spec 36365 36366# List of archive names. First name is the real one, the rest are links. 36367# The last name is the one that the linker finds with -lNAME 36368library_names_spec=$lt_library_names_spec 36369 36370# The coded name of the library, if different from the real name. 36371soname_spec=$lt_soname_spec 36372 36373# Permission mode override for installation of shared libraries. 36374install_override_mode=$lt_install_override_mode 36375 36376# Command to use after installation of a shared archive. 36377postinstall_cmds=$lt_postinstall_cmds 36378 36379# Command to use after uninstallation of a shared archive. 36380postuninstall_cmds=$lt_postuninstall_cmds 36381 36382# Commands used to finish a libtool library installation in a directory. 36383finish_cmds=$lt_finish_cmds 36384 36385# As "finish_cmds", except a single script fragment to be evaled but 36386# not shown. 36387finish_eval=$lt_finish_eval 36388 36389# Whether we should hardcode library paths into libraries. 36390hardcode_into_libs=$hardcode_into_libs 36391 36392# Compile-time system search path for libraries. 36393sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 36394 36395# Detected run-time system search path for libraries. 36396sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 36397 36398# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 36399configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 36400 36401# Whether dlopen is supported. 36402dlopen_support=$enable_dlopen 36403 36404# Whether dlopen of programs is supported. 36405dlopen_self=$enable_dlopen_self 36406 36407# Whether dlopen of statically linked programs is supported. 36408dlopen_self_static=$enable_dlopen_self_static 36409 36410# Commands to strip libraries. 36411old_striplib=$lt_old_striplib 36412striplib=$lt_striplib 36413 36414 36415# The linker used to build libraries. 36416LD=$lt_LD 36417 36418# How to create reloadable object files. 36419reload_flag=$lt_reload_flag 36420reload_cmds=$lt_reload_cmds 36421 36422# Commands used to build an old-style archive. 36423old_archive_cmds=$lt_old_archive_cmds 36424 36425# A language specific compiler. 36426CC=$lt_compiler 36427 36428# Is the compiler the GNU compiler? 36429with_gcc=$GCC 36430 36431# Compiler flag to turn off builtin functions. 36432no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 36433 36434# Additional compiler flags for building library objects. 36435pic_flag=$lt_lt_prog_compiler_pic 36436 36437# How to pass a linker flag through the compiler. 36438wl=$lt_lt_prog_compiler_wl 36439 36440# Compiler flag to prevent dynamic linking. 36441link_static_flag=$lt_lt_prog_compiler_static 36442 36443# Does compiler simultaneously support -c and -o options? 36444compiler_c_o=$lt_lt_cv_prog_compiler_c_o 36445 36446# Whether or not to add -lc for building shared libraries. 36447build_libtool_need_lc=$archive_cmds_need_lc 36448 36449# Whether or not to disallow shared libs when runtime libs are static. 36450allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 36451 36452# Compiler flag to allow reflexive dlopens. 36453export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 36454 36455# Compiler flag to generate shared objects directly from archives. 36456whole_archive_flag_spec=$lt_whole_archive_flag_spec 36457 36458# Whether the compiler copes with passing no objects directly. 36459compiler_needs_object=$lt_compiler_needs_object 36460 36461# Create an old-style archive from a shared archive. 36462old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 36463 36464# Create a temporary old-style archive to link instead of a shared archive. 36465old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 36466 36467# Commands used to build a shared archive. 36468archive_cmds=$lt_archive_cmds 36469archive_expsym_cmds=$lt_archive_expsym_cmds 36470 36471# Commands used to build a loadable module if different from building 36472# a shared archive. 36473module_cmds=$lt_module_cmds 36474module_expsym_cmds=$lt_module_expsym_cmds 36475 36476# Whether we are building with GNU ld or not. 36477with_gnu_ld=$lt_with_gnu_ld 36478 36479# Flag that allows shared libraries with undefined symbols to be built. 36480allow_undefined_flag=$lt_allow_undefined_flag 36481 36482# Flag that enforces no undefined symbols. 36483no_undefined_flag=$lt_no_undefined_flag 36484 36485# Flag to hardcode \$libdir into a binary during linking. 36486# This must work even if \$libdir does not exist 36487hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 36488 36489# Whether we need a single "-rpath" flag with a separated argument. 36490hardcode_libdir_separator=$lt_hardcode_libdir_separator 36491 36492# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 36493# DIR into the resulting binary. 36494hardcode_direct=$hardcode_direct 36495 36496# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 36497# DIR into the resulting binary and the resulting library dependency is 36498# "absolute",i.e impossible to change by setting \$shlibpath_var if the 36499# library is relocated. 36500hardcode_direct_absolute=$hardcode_direct_absolute 36501 36502# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 36503# into the resulting binary. 36504hardcode_minus_L=$hardcode_minus_L 36505 36506# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 36507# into the resulting binary. 36508hardcode_shlibpath_var=$hardcode_shlibpath_var 36509 36510# Set to "yes" if building a shared library automatically hardcodes DIR 36511# into the library and all subsequent libraries and executables linked 36512# against it. 36513hardcode_automatic=$hardcode_automatic 36514 36515# Set to yes if linker adds runtime paths of dependent libraries 36516# to runtime path list. 36517inherit_rpath=$inherit_rpath 36518 36519# Whether libtool must link a program against all its dependency libraries. 36520link_all_deplibs=$link_all_deplibs 36521 36522# Set to "yes" if exported symbols are required. 36523always_export_symbols=$always_export_symbols 36524 36525# The commands to list exported symbols. 36526export_symbols_cmds=$lt_export_symbols_cmds 36527 36528# Symbols that should not be listed in the preloaded symbols. 36529exclude_expsyms=$lt_exclude_expsyms 36530 36531# Symbols that must always be exported. 36532include_expsyms=$lt_include_expsyms 36533 36534# Commands necessary for linking programs (against libraries) with templates. 36535prelink_cmds=$lt_prelink_cmds 36536 36537# Commands necessary for finishing linking programs. 36538postlink_cmds=$lt_postlink_cmds 36539 36540# Specify filename containing input files. 36541file_list_spec=$lt_file_list_spec 36542 36543# How to hardcode a shared library path into an executable. 36544hardcode_action=$hardcode_action 36545 36546# ### END LIBTOOL CONFIG 36547 36548_LT_EOF 36549 36550 cat <<'_LT_EOF' >> "$cfgfile" 36551 36552# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 36553 36554# func_munge_path_list VARIABLE PATH 36555# ----------------------------------- 36556# VARIABLE is name of variable containing _space_ separated list of 36557# directories to be munged by the contents of PATH, which is string 36558# having a format: 36559# "DIR[:DIR]:" 36560# string "DIR[ DIR]" will be prepended to VARIABLE 36561# ":DIR[:DIR]" 36562# string "DIR[ DIR]" will be appended to VARIABLE 36563# "DIRP[:DIRP]::[DIRA:]DIRA" 36564# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 36565# "DIRA[ DIRA]" will be appended to VARIABLE 36566# "DIR[:DIR]" 36567# VARIABLE will be replaced by "DIR[ DIR]" 36568func_munge_path_list () 36569{ 36570 case x$2 in 36571 x) 36572 ;; 36573 *:) 36574 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 36575 ;; 36576 x:*) 36577 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 36578 ;; 36579 *::*) 36580 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 36581 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 36582 ;; 36583 *) 36584 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 36585 ;; 36586 esac 36587} 36588 36589 36590# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 36591func_cc_basename () 36592{ 36593 for cc_temp in $*""; do 36594 case $cc_temp in 36595 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 36596 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 36597 \-*) ;; 36598 *) break;; 36599 esac 36600 done 36601 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 36602} 36603 36604 36605# ### END FUNCTIONS SHARED WITH CONFIGURE 36606 36607_LT_EOF 36608 36609 case $host_os in 36610 aix3*) 36611 cat <<\_LT_EOF >> "$cfgfile" 36612# AIX sometimes has problems with the GCC collect2 program. For some 36613# reason, if we set the COLLECT_NAMES environment variable, the problems 36614# vanish in a puff of smoke. 36615if test set != "${COLLECT_NAMES+set}"; then 36616 COLLECT_NAMES= 36617 export COLLECT_NAMES 36618fi 36619_LT_EOF 36620 ;; 36621 esac 36622 36623 36624 36625ltmain=$ac_aux_dir/ltmain.sh 36626 36627 36628 # We use sed instead of cat because bash on DJGPP gets confused if 36629 # if finds mixed CR/LF and LF-only lines. Since sed operates in 36630 # text mode, it properly converts lines to CR/LF. This bash problem 36631 # is reportedly fixed, but why not run on old versions too? 36632 $SED '$q' "$ltmain" >> "$cfgfile" \ 36633 || (rm -f "$cfgfile"; exit 1) 36634 36635 mv -f "$cfgfile" "$ofile" || 36636 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 36637 chmod +x "$ofile" 36638 36639 ;; 36640 "sdksyms":C) touch hw/xfree86/sdksyms.dep ;; 36641 36642 esac 36643done # for ac_tag 36644 36645 36646as_fn_exit 0 36647_ACEOF 36648ac_clean_files=$ac_clean_files_save 36649 36650test $ac_write_fail = 0 || 36651 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 36652 36653 36654# configure is writing to config.log, and then calls config.status. 36655# config.status does its own redirection, appending to config.log. 36656# Unfortunately, on DOS this fails, as config.log is still kept open 36657# by configure, so config.status won't be able to write to it; its 36658# output is simply discarded. So we exec the FD to /dev/null, 36659# effectively closing config.log, so it can be properly (re)opened and 36660# appended to by config.status. When coming back to configure, we 36661# need to make the FD available again. 36662if test "$no_create" != yes; then 36663 ac_cs_success=: 36664 ac_config_status_args= 36665 test "$silent" = yes && 36666 ac_config_status_args="$ac_config_status_args --quiet" 36667 exec 5>/dev/null 36668 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 36669 exec 5>>config.log 36670 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 36671 # would make configure fail if this is the last instruction. 36672 $ac_cs_success || as_fn_exit 1 36673fi 36674if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 36675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 36676printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 36677fi 36678 36679 36680