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.24. 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 19 DUALCASE=1; export DUALCASE # for MKS sh 20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21 then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28 else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac ;; 35 esac 36 fi 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. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export 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). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${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 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 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 102 IFS=$as_save_IFS 103 104 ;; 105 esac 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. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if 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 114 fi 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. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 exec $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'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144 then : 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 151 else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157 esac ;; 158 esac 159 fi 160 " 161 as_required="as_fn_return () { (exit \$1); } 162 as_fn_success () { as_fn_return 0; } 163 as_fn_failure () { as_fn_return 1; } 164 as_fn_ret_success () { return 0; } 165 as_fn_ret_failure () { return 1; } 166 167 exitcode=0 168 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177 esac 178 fi 179 test x\$exitcode = x0 || exit 1 180 blah=\$(echo \$(echo blah)) 181 test x\"\$blah\" = xblah || exit 1 182 test -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 187 test \$(( 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 197 then : 198 as_have_required=yes 199 else case e in #( 200 e) as_have_required=no ;; 201 esac 202 fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204 then : 205 206 else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208 as_found=false 209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210 do 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 225 then : 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 228 then : 229 break 2 230 fi 231 fi 232 done;; 233 esac 234 as_found=false 235 done 236 IFS=$as_save_IFS 237 if $as_found 238 then : 239 240 else 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 243 then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245 fi ;; 246 esac 247 fi 248 249 250 if test "x$CONFIG_SHELL" != x 251 then : 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. 257 BASH_ENV=/dev/null 258 ENV=/dev/null 259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 260 case $- in # (((( 261 *v*x* | *x*v* ) as_opts=-vx ;; 262 *v* ) as_opts=-v ;; 263 *x* ) as_opts=-x ;; 264 * ) as_opts= ;; 265 esac 266 exec $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'. 269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 270 exit 255 271 fi 272 273 if test x$as_have_required = xno 274 then : 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 (at] 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 289 fi ;; 290 esac 291 fi 292 fi 293 SHELL=${CONFIG_SHELL-/bin/sh} 294 export SHELL 295 # Unset more variables known to interfere with behavior of common tools. 296 CLICOLOR_FORCE= GREP_OPTIONS= 297 unset CLICOLOR_FORCE GREP_OPTIONS 298 299 ## --------------------- ## 300 ## M4sh Shell Functions. ## 301 ## --------------------- ## 302 # as_fn_unset VAR 303 # --------------- 304 # Portably unset VAR. 305 as_fn_unset () 306 { 307 { eval $1=; unset $1;} 308 } 309 as_unset=as_fn_unset 310 311 312 # as_fn_set_status STATUS 313 # ----------------------- 314 # Set $? to STATUS, without forking. 315 as_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. 323 as_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. 333 as_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 || 352 printf "%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. 381 as_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. 391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392 then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397 else case e in #( 398 e) as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } ;; 402 esac 403 fi # 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. 410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 411 then : 412 eval 'as_fn_arith () 413 { 414 as_val=$(( $* )) 415 }' 416 else case e in #( 417 e) as_fn_arith () 418 { 419 as_val=`expr "$@" || test $? -eq 1` 420 } ;; 421 esac 422 fi # 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. 430 as_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 441 if expr a : '\(a\)' >/dev/null 2>&1 && 442 test "X`expr 00001 : '.*\(...\)'`" = X001; then 443 as_expr=expr 444 else 445 as_expr=false 446 fi 447 448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 449 as_basename=basename 450 else 451 as_basename=false 452 fi 453 454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 455 as_dirname=dirname 456 else 457 as_dirname=false 458 fi 459 460 as_me=`$as_basename -- "$0" || 461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 462 X"$0" : 'X\(//\)$' \| \ 463 X"$0" : 'X\(/\)' \| . 2>/dev/null || 464 printf "%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. 480 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 483 as_cr_digits='0123456789' 484 as_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. 528 ECHO_C= ECHO_N= ECHO_T= 529 case `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';; 539 esac 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. 544 as_echo='printf %s\n' 545 as_echo_n='printf %s' 546 547 rm -f conf$$ conf$$.exe conf$$.file 548 if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550 else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553 fi 554 if (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 568 else 569 as_ln_s='cp -pR' 570 fi 571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572 rmdir conf$$.dir 2>/dev/null 573 574 if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576 else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579 fi 580 581 as_test_x='test -x' 582 as_executable_p=as_fn_executable_p 583 584 # Sed expression to map a string onto a valid CPP name. 585 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 586 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 587 588 # Sed expression to map a string onto a valid variable name. 589 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 590 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 591 592 as_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 ' 652 SHELL=${CONFIG_SHELL-/bin/sh} 653 654 655 test -n "$DJDIR" || exec 7<&0 </dev/null 656 exec 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. 661 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 662 663 # 664 # Initializations. 665 # 666 ac_default_prefix=/usr/local 667 ac_clean_files= 668 ac_config_libobj_dir=. 669 LIBOBJS= 670 cross_compiling=no 671 subdirs= 672 MFLAGS= 673 MAKEFLAGS= 674 675 # Identity of this package. 676 PACKAGE_NAME='xorg-server' 677 PACKAGE_TARNAME='xorg-server' 678 PACKAGE_VERSION='21.1.24' 679 PACKAGE_STRING='xorg-server 21.1.24' 680 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/xserver/issues' 681 PACKAGE_URL='' 682 683 ac_unique_file="Makefile.am" 684 # Factoring default headers for most tests. 685 ac_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 715 ac_header_c_list= 716 ac_config_libobj_dir=os 717 enable_year2038=no 718 ac_subst_vars='am__EXEEXT_FALSE 719 am__EXEEXT_TRUE 720 LTLIBOBJS 721 DIX_CFLAGS 722 RELEASE_DATE 723 SYSCONFDIR 724 PROJECTROOT 725 XEPHYR_FALSE 726 XEPHYR_TRUE 727 KDRIVE_LIBS 728 KDRIVE_LOCAL_LIBS 729 KDRIVE_MAIN_LIB 730 KDRIVE_PURE_LIBS 731 KDRIVE_CFLAGS 732 KDRIVE_PURE_INCS 733 KDRIVE_INCS 734 XEPHYR_INCS 735 XEPHYR_LIBS 736 XEPHYR_CFLAGS 737 KDRIVE_FALSE 738 KDRIVE_TRUE 739 STANDALONE_XPBPROXY_FALSE 740 STANDALONE_XPBPROXY_TRUE 741 XQUARTZ_SPARKLE_FALSE 742 XQUARTZ_SPARKLE_TRUE 743 XQUARTZ_FALSE 744 XQUARTZ_TRUE 745 am__fastdepOBJC_FALSE 746 am__fastdepOBJC_TRUE 747 OBJCDEPMODE 748 OBJCFLAGS 749 OBJCLINK 750 OBJCCLD 751 OBJC 752 PSEUDORAMIX_FALSE 753 PSEUDORAMIX_TRUE 754 XPBPROXY_LIBS 755 XPBPROXY_CFLAGS 756 XQUARTZ_LIBS 757 XWIN_WINDOWS_DRI_FALSE 758 XWIN_WINDOWS_DRI_TRUE 759 XWIN_GLX_WINDOWS_FALSE 760 XWIN_GLX_WINDOWS_TRUE 761 XWIN_FALSE 762 XWIN_TRUE 763 KHRONOS_SPEC_DIR 764 KHRONOS_OPENGL_REGISTRY_LIBS 765 KHRONOS_OPENGL_REGISTRY_CFLAGS 766 PYTHON3 767 XWIN_SYS_LIBS 768 XWIN_SERVER_NAME 769 XWIN_LIBS 770 WINDOWSDRI_LIBS 771 WINDOWSDRI_CFLAGS 772 XWINMODULES_LIBS 773 XWINMODULES_CFLAGS 774 WINDRES 775 GLAMOR_EGL_FALSE 776 GLAMOR_EGL_TRUE 777 GBM_LIBS 778 GBM_CFLAGS 779 GLAMOR_LIBS 780 GLAMOR_CFLAGS 781 GLAMOR_FALSE 782 GLAMOR_TRUE 783 XORG_DRIVER_INPUT_INPUTTEST_FALSE 784 XORG_DRIVER_INPUT_INPUTTEST_TRUE 785 XORG_DRIVER_MODESETTING_FALSE 786 XORG_DRIVER_MODESETTING_TRUE 787 XORG_BUS_PLATFORM_FALSE 788 XORG_BUS_PLATFORM_TRUE 789 DGA_FALSE 790 DGA_TRUE 791 SOLARIS_VT_FALSE 792 SOLARIS_VT_TRUE 793 LNXAPM_FALSE 794 LNXAPM_TRUE 795 LNXACPI_FALSE 796 LNXACPI_TRUE 797 XORG_BUS_SPARC_FALSE 798 XORG_BUS_SPARC_TRUE 799 XORG_BUS_BSDPCI_FALSE 800 XORG_BUS_BSDPCI_TRUE 801 XORG_BUS_PCI_FALSE 802 XORG_BUS_PCI_TRUE 803 XORG_FALSE 804 XORG_TRUE 805 abi_extension 806 abi_xinput 807 abi_videodrv 808 abi_ansic 809 logdir 810 sysconfigdir 811 extdir 812 sdkdir 813 driverdir 814 moduledir 815 DEFAULT_XDG_DATA_HOME_LOGDIR 816 DEFAULT_XDG_DATA_HOME 817 DEFAULT_LOGPREFIX 818 DEFAULT_LOGDIR 819 DEFAULT_LIBRARY_PATH 820 DEFAULT_MODULE_PATH 821 XCONFIGDIR 822 XF86CONFIGFILE 823 XCONFIGFILE 824 XF86CONFIGDIR 825 XORG_CFLAGS 826 XORG_OS_SUBDIR 827 XORG_INCS 828 XORG_SYS_LIBS 829 XORG_LIBS 830 XORG_MODULES_LIBS 831 XORG_MODULES_CFLAGS 832 DGA_LIBS 833 DGA_CFLAGS 834 SOLARIS_INOUT_ARCH 835 PCI_TXT_IDS_PATH 836 PCIACCESS_LIBS 837 PCIACCESS_CFLAGS 838 symbol_visibility 839 LIBXCVT_LIBS 840 LIBXCVT_CFLAGS 841 XNEST_SYS_LIBS 842 XNEST_LIBS 843 XNEST_FALSE 844 XNEST_TRUE 845 XNESTMODULES_LIBS 846 XNESTMODULES_CFLAGS 847 XVFB_SYS_LIBS 848 XVFB_LIBS 849 XVFB_FALSE 850 XVFB_TRUE 851 NO_UNDEFINED_FALSE 852 NO_UNDEFINED_TRUE 853 CYGWIN_FALSE 854 CYGWIN_TRUE 855 XORG_DRIVER_LIBS 856 LD_NO_UNDEFINED_FLAG 857 LD_EXPORT_SYMBOLS_FLAG 858 UTILS_SYS_LIBS 859 XSERVER_SYS_LIBS 860 XSERVER_LIBS 861 HAVE_LIBUNWIND_FALSE 862 HAVE_LIBUNWIND_TRUE 863 LIBUNWIND_LIBS 864 LIBUNWIND_CFLAGS 865 XSERVERLIBS_LIBS 866 XSERVERLIBS_CFLAGS 867 XSERVERCFLAGS_LIBS 868 XSERVERCFLAGS_CFLAGS 869 SHA1_CFLAGS 870 SHA1_LIBS 871 OPENSSL_LIBS 872 OPENSSL_CFLAGS 873 LIBSHA1_LIBS 874 LIBSHA1_CFLAGS 875 MAIN_LIB 876 OS_LIB 877 DIX_LIB 878 DEBUG_FALSE 879 DEBUG_TRUE 880 VENDOR_NAME_SHORT 881 DRI_DRIVER_PATH 882 BASE_FONT_PATH 883 SERVER_MISC_CONFIG_PATH 884 COMPILEDDEFAULTFONTPATH 885 XF86VIDMODE_FALSE 886 XF86VIDMODE_TRUE 887 XDMAUTH_FALSE 888 XDMAUTH_TRUE 889 XDMCP_FALSE 890 XDMCP_TRUE 891 XDMCP_LIBS 892 XDMCP_CFLAGS 893 XKB_DFLT_OPTIONS 894 XKB_DFLT_VARIANT 895 XKB_DFLT_LAYOUT 896 XKB_DFLT_MODEL 897 XKB_DFLT_RULES 898 XKB_COMPILED_DIR 899 XKM_OUTPUT_DIR 900 XKB_BIN_DIRECTORY 901 XKB_BASE_DIRECTORY 902 INT10MODULE_FALSE 903 INT10MODULE_TRUE 904 VGAHW_FALSE 905 VGAHW_TRUE 906 XF86UTILS_FALSE 907 XF86UTILS_TRUE 908 DPMSExtension_FALSE 909 DPMSExtension_TRUE 910 XF86BIGFONT_FALSE 911 XF86BIGFONT_TRUE 912 DBE_FALSE 913 DBE_TRUE 914 XCSECURITY_FALSE 915 XCSECURITY_TRUE 916 SELINUX_LIBS 917 SELINUX_CFLAGS 918 XSELINUX_FALSE 919 XSELINUX_TRUE 920 XACE_FALSE 921 XACE_TRUE 922 XINERAMA_FALSE 923 XINERAMA_TRUE 924 PRESENT_FALSE 925 PRESENT_TRUE 926 GLX_SYS_LIBS 927 GLX_DEFINES 928 HASHTABLE_FALSE 929 HASHTABLE_TRUE 930 GLX_FALSE 931 GLX_TRUE 932 GL_LIBS 933 GL_CFLAGS 934 XLIB_LIBS 935 XLIB_CFLAGS 936 LIBDRM_LIBS 937 LIBDRM_CFLAGS 938 DRI3_FALSE 939 DRI3_TRUE 940 XSHMFENCE_FALSE 941 XSHMFENCE_TRUE 942 XSHMFENCE_LIBS 943 XSHMFENCE_CFLAGS 944 BUSFAULT_FALSE 945 BUSFAULT_TRUE 946 DRI3PROTO_LIBS 947 DRI3PROTO_CFLAGS 948 DRI2_FALSE 949 DRI2_TRUE 950 DRI2PROTO_LIBS 951 DRI2PROTO_CFLAGS 952 DRI_FALSE 953 DRI_TRUE 954 CLIENTIDS_FALSE 955 CLIENTIDS_TRUE 956 RES_FALSE 957 RES_TRUE 958 SCREENSAVER_FALSE 959 SCREENSAVER_TRUE 960 RECORD_FALSE 961 RECORD_TRUE 962 MITSHM_FALSE 963 MITSHM_TRUE 964 COMPOSITE_FALSE 965 COMPOSITE_TRUE 966 XVMC_FALSE 967 XVMC_TRUE 968 XV_FALSE 969 XV_TRUE 970 CONFIG_WSCONS_FALSE 971 CONFIG_WSCONS_TRUE 972 NEED_DBUS_FALSE 973 NEED_DBUS_TRUE 974 SUID_WRAPPER_FALSE 975 SUID_WRAPPER_TRUE 976 SUID_WRAPPER_DIR 977 SYSTEMD_LOGIND_FALSE 978 SYSTEMD_LOGIND_TRUE 979 CONFIG_HAL_FALSE 980 CONFIG_HAL_TRUE 981 HAL_LIBS 982 HAL_CFLAGS 983 HAVE_DBUS_FALSE 984 HAVE_DBUS_TRUE 985 DBUS_LIBS 986 DBUS_CFLAGS 987 CONFIG_UDEV_KMS_FALSE 988 CONFIG_UDEV_KMS_TRUE 989 CONFIG_UDEV_FALSE 990 CONFIG_UDEV_TRUE 991 UDEV_LIBS 992 UDEV_CFLAGS 993 HAVE_SYSTEMD_DAEMON_FALSE 994 HAVE_SYSTEMD_DAEMON_TRUE 995 SYSTEMD_DAEMON_LIBS 996 SYSTEMD_DAEMON_CFLAGS 997 PTHREAD_CFLAGS 998 PTHREAD_LIBS 999 PTHREAD_CC 1000 ax_pthread_config 1001 SDK_REQUIRED_MODULES 1002 PIXMAN_LIBS 1003 PIXMAN_CFLAGS 1004 INT10_STUB_FALSE 1005 INT10_STUB_TRUE 1006 INT10_X86EMU_FALSE 1007 INT10_X86EMU_TRUE 1008 INT10_VM86_FALSE 1009 INT10_VM86_TRUE 1010 SECURE_RPC_FALSE 1011 SECURE_RPC_TRUE 1012 INSTALL_SETUID_FALSE 1013 INSTALL_SETUID_TRUE 1014 XQUARTZ_SPARKLE_FEED_URL 1015 XQUARTZ_SPARKLE 1016 BUNDLE_VERSION_STRING 1017 BUNDLE_VERSION 1018 BUNDLE_ID_PREFIX 1019 APPLE_APPLICATION_NAME 1020 APPLE_APPLICATIONS_DIR 1021 FONT100DPIDIR 1022 FONT75DPIDIR 1023 FONTTYPE1DIR 1024 FONTTTFDIR 1025 FONTOTFDIR 1026 FONTMISCDIR 1027 FONTROOTDIR 1028 SPARC64_VIDEO_FALSE 1029 SPARC64_VIDEO_TRUE 1030 PPC_VIDEO_FALSE 1031 PPC_VIDEO_TRUE 1032 I386_VIDEO_FALSE 1033 I386_VIDEO_TRUE 1034 ARM_VIDEO_FALSE 1035 ARM_VIDEO_TRUE 1036 ALPHA_VIDEO_FALSE 1037 ALPHA_VIDEO_TRUE 1038 GLX_ARCH_DEFINES 1039 FREEBSD_KLDLOAD_FALSE 1040 FREEBSD_KLDLOAD_TRUE 1041 FBDEVHW_FALSE 1042 FBDEVHW_TRUE 1043 AGP_FALSE 1044 AGP_TRUE 1045 LIBBSD_LIBS 1046 LIBBSD_CFLAGS 1047 POLL_FALSE 1048 POLL_TRUE 1049 LIBOBJS 1050 DLOPEN_LIBS 1051 SPECIAL_DTRACE_OBJECTS_FALSE 1052 SPECIAL_DTRACE_OBJECTS_TRUE 1053 XSERVER_DTRACE_FALSE 1054 XSERVER_DTRACE_TRUE 1055 DTRACE 1056 TRADITIONALCPPFLAGS 1057 RAWCPPFLAGS 1058 RAWCPP 1059 CPP 1060 YFLAGS 1061 YACC 1062 LEXLIB 1063 LEX_OUTPUT_ROOT 1064 LEX 1065 LT_SYS_LIBRARY_PATH 1066 OTOOL64 1067 OTOOL 1068 LIPO 1069 NMEDIT 1070 DSYMUTIL 1071 MANIFEST_TOOL 1072 RANLIB 1073 ac_ct_AR 1074 AR 1075 FILECMD 1076 NM 1077 ac_ct_DUMPBIN 1078 DUMPBIN 1079 LD 1080 FGREP 1081 EGREP 1082 GREP 1083 LIBTOOL 1084 OBJDUMP 1085 DLLTOOL 1086 AS 1087 LN_S 1088 am__fastdepCCAS_FALSE 1089 am__fastdepCCAS_TRUE 1090 CCASDEPMODE 1091 CCASFLAGS 1092 CCAS 1093 HAVE_LD_WRAP_FALSE 1094 HAVE_LD_WRAP_TRUE 1095 ENABLE_UNIT_TESTS_FALSE 1096 ENABLE_UNIT_TESTS_TRUE 1097 XORG_MALLOC_DEBUG_ENV 1098 HAVE_XSLTPROC_FALSE 1099 HAVE_XSLTPROC_TRUE 1100 XSLTPROC 1101 HAVE_FOP_FALSE 1102 HAVE_FOP_TRUE 1103 FOP 1104 HAVE_XMLTO_FALSE 1105 HAVE_XMLTO_TRUE 1106 HAVE_XMLTO_TEXT_FALSE 1107 HAVE_XMLTO_TEXT_TRUE 1108 XMLTO 1109 ENABLE_DEVEL_DOCS_FALSE 1110 ENABLE_DEVEL_DOCS_TRUE 1111 ENABLE_DOCS_FALSE 1112 ENABLE_DOCS_TRUE 1113 HAVE_STYLESHEETS_FALSE 1114 HAVE_STYLESHEETS_TRUE 1115 XSL_STYLESHEET 1116 STYLESHEET_SRCDIR 1117 XORG_SGML_PATH 1118 HAVE_DOXYGEN_FALSE 1119 HAVE_DOXYGEN_TRUE 1120 HAVE_DOT_FALSE 1121 HAVE_DOT_TRUE 1122 HAVE_DOT 1123 DOT 1124 DOXYGEN 1125 MAN_SUBSTS 1126 XORG_MAN_PAGE 1127 ADMIN_MAN_DIR 1128 DRIVER_MAN_DIR 1129 MISC_MAN_DIR 1130 FILE_MAN_DIR 1131 LIB_MAN_DIR 1132 APP_MAN_DIR 1133 ADMIN_MAN_SUFFIX 1134 DRIVER_MAN_SUFFIX 1135 MISC_MAN_SUFFIX 1136 FILE_MAN_SUFFIX 1137 LIB_MAN_SUFFIX 1138 APP_MAN_SUFFIX 1139 SED 1140 host_os 1141 host_vendor 1142 host_cpu 1143 host 1144 build_os 1145 build_vendor 1146 build_cpu 1147 build 1148 INSTALL_CMD 1149 PKG_CONFIG_LIBDIR 1150 PKG_CONFIG_PATH 1151 PKG_CONFIG 1152 CHANGELOG_CMD 1153 STRICT_CFLAGS 1154 CWARNFLAGS 1155 BASE_CFLAGS 1156 am__fastdepCC_FALSE 1157 am__fastdepCC_TRUE 1158 CCDEPMODE 1159 am__nodep 1160 AMDEPBACKSLASH 1161 AMDEP_FALSE 1162 AMDEP_TRUE 1163 am__include 1164 DEPDIR 1165 OBJEXT 1166 EXEEXT 1167 ac_ct_CC 1168 CPPFLAGS 1169 LDFLAGS 1170 CFLAGS 1171 CC 1172 am__xargs_n 1173 am__rm_f_notfound 1174 AM_BACKSLASH 1175 AM_DEFAULT_VERBOSITY 1176 AM_DEFAULT_V 1177 AM_V 1178 CSCOPE 1179 ETAGS 1180 CTAGS 1181 am__untar 1182 am__tar 1183 AMTAR 1184 am__leading_dot 1185 SET_MAKE 1186 AWK 1187 mkdir_p 1188 MKDIR_P 1189 INSTALL_STRIP_PROGRAM 1190 STRIP 1191 install_sh 1192 MAKEINFO 1193 AUTOHEADER 1194 AUTOMAKE 1195 AUTOCONF 1196 ACLOCAL 1197 VERSION 1198 PACKAGE 1199 CYGPATH_W 1200 am__isrc 1201 INSTALL_DATA 1202 INSTALL_SCRIPT 1203 INSTALL_PROGRAM 1204 target_alias 1205 host_alias 1206 build_alias 1207 LIBS 1208 ECHO_T 1209 ECHO_N 1210 ECHO_C 1211 DEFS 1212 mandir 1213 localedir 1214 libdir 1215 psdir 1216 pdfdir 1217 dvidir 1218 htmldir 1219 infodir 1220 docdir 1221 oldincludedir 1222 includedir 1223 runstatedir 1224 localstatedir 1225 sharedstatedir 1226 sysconfdir 1227 datadir 1228 datarootdir 1229 libexecdir 1230 sbindir 1231 bindir 1232 program_transform_name 1233 prefix 1234 exec_prefix 1235 PACKAGE_URL 1236 PACKAGE_BUGREPORT 1237 PACKAGE_STRING 1238 PACKAGE_VERSION 1239 PACKAGE_TARNAME 1240 PACKAGE_NAME 1241 PATH_SEPARATOR 1242 SHELL 1243 am__quote' 1244 ac_subst_files='' 1245 ac_user_opts=' 1246 enable_option_checking 1247 enable_silent_rules 1248 enable_dependency_tracking 1249 enable_selective_werror 1250 enable_strict_compilation 1251 with_doxygen 1252 enable_docs 1253 enable_devel_docs 1254 with_xmlto 1255 with_fop 1256 with_xsltproc 1257 enable_unit_tests 1258 enable_static 1259 enable_shared 1260 enable_pic 1261 with_pic 1262 enable_fast_install 1263 enable_aix_soname 1264 with_aix_soname 1265 with_gnu_ld 1266 with_sysroot 1267 enable_libtool_lock 1268 enable_largefile 1269 with_dtrace 1270 enable_agp 1271 enable_werror 1272 enable_debug 1273 with_int10 1274 with_vendor_name 1275 with_vendor_name_short 1276 with_vendor_web 1277 with_module_dir 1278 with_log_dir 1279 with_builder_addr 1280 with_builderstring 1281 enable_listen_tcp 1282 enable_listen_unix 1283 enable_listen_local 1284 with_fallback_input_driver 1285 with_fontrootdir 1286 with_fontmiscdir 1287 with_fontotfdir 1288 with_fontttfdir 1289 with_fonttype1dir 1290 with_font75dpidir 1291 with_font100dpidir 1292 with_default_font_path 1293 with_xkb_path 1294 with_xkb_output 1295 with_default_xkb_rules 1296 with_default_xkb_model 1297 with_default_xkb_layout 1298 with_default_xkb_variant 1299 with_default_xkb_options 1300 with_serverconfig_path 1301 with_apple_applications_dir 1302 with_apple_application_name 1303 with_bundle_id_prefix 1304 with_bundle_version 1305 with_bundle_version_string 1306 enable_sparkle 1307 with_sparkle_feed_url 1308 enable_visibility 1309 with_khronos_spec_dir 1310 enable_composite 1311 enable_mitshm 1312 enable_xres 1313 enable_record 1314 enable_xv 1315 enable_xvmc 1316 enable_dga 1317 enable_screensaver 1318 enable_xdmcp 1319 enable_xdm_auth_1 1320 enable_glx 1321 enable_dri 1322 enable_dri2 1323 enable_dri3 1324 enable_present 1325 enable_xinerama 1326 enable_xf86vidmode 1327 enable_xace 1328 enable_xselinux 1329 enable_xcsecurity 1330 enable_dbe 1331 enable_xf86bigfont 1332 enable_dpms 1333 enable_config_udev 1334 enable_config_udev_kms 1335 enable_config_hal 1336 enable_config_wscons 1337 enable_xfree86_utils 1338 enable_vgahw 1339 enable_int10_module 1340 enable_windowsdri 1341 enable_libdrm 1342 enable_clientids 1343 enable_pciaccess 1344 enable_linux_acpi 1345 enable_linux_apm 1346 enable_systemd_logind 1347 enable_suid_wrapper 1348 enable_xorg 1349 enable_xvfb 1350 enable_xnest 1351 enable_xquartz 1352 enable_standalone_xpbproxy 1353 enable_xwin 1354 enable_glamor 1355 enable_xf86_input_inputtest 1356 enable_kdrive 1357 enable_xephyr 1358 enable_libunwind 1359 enable_xshmfence 1360 enable_install_setuid 1361 enable_unix_transport 1362 enable_tcp_transport 1363 enable_ipv6 1364 enable_local_transport 1365 enable_secure_rpc 1366 enable_input_thread 1367 with_systemd_daemon 1368 enable_xtrans_send_fds 1369 with_xkb_bin_directory 1370 with_sha1 1371 enable_year2038 1372 ' 1373 ac_precious_vars='build_alias 1374 host_alias 1375 target_alias 1376 CC 1377 CFLAGS 1378 LDFLAGS 1379 LIBS 1380 CPPFLAGS 1381 PKG_CONFIG 1382 PKG_CONFIG_PATH 1383 PKG_CONFIG_LIBDIR 1384 DOXYGEN 1385 DOT 1386 XMLTO 1387 FOP 1388 XSLTPROC 1389 XORG_MALLOC_DEBUG_ENV 1390 CCAS 1391 CCASFLAGS 1392 LT_SYS_LIBRARY_PATH 1393 YACC 1394 YFLAGS 1395 CPP 1396 LIBBSD_CFLAGS 1397 LIBBSD_LIBS 1398 PIXMAN_CFLAGS 1399 PIXMAN_LIBS 1400 SYSTEMD_DAEMON_CFLAGS 1401 SYSTEMD_DAEMON_LIBS 1402 UDEV_CFLAGS 1403 UDEV_LIBS 1404 DBUS_CFLAGS 1405 DBUS_LIBS 1406 HAL_CFLAGS 1407 HAL_LIBS 1408 DRI2PROTO_CFLAGS 1409 DRI2PROTO_LIBS 1410 DRI3PROTO_CFLAGS 1411 DRI3PROTO_LIBS 1412 XSHMFENCE_CFLAGS 1413 XSHMFENCE_LIBS 1414 LIBDRM_CFLAGS 1415 LIBDRM_LIBS 1416 XLIB_CFLAGS 1417 XLIB_LIBS 1418 GL_CFLAGS 1419 GL_LIBS 1420 SELINUX_CFLAGS 1421 SELINUX_LIBS 1422 XDMCP_CFLAGS 1423 XDMCP_LIBS 1424 LIBSHA1_CFLAGS 1425 LIBSHA1_LIBS 1426 OPENSSL_CFLAGS 1427 OPENSSL_LIBS 1428 XSERVERCFLAGS_CFLAGS 1429 XSERVERCFLAGS_LIBS 1430 XSERVERLIBS_CFLAGS 1431 XSERVERLIBS_LIBS 1432 LIBUNWIND_CFLAGS 1433 LIBUNWIND_LIBS 1434 XNESTMODULES_CFLAGS 1435 XNESTMODULES_LIBS 1436 LIBXCVT_CFLAGS 1437 LIBXCVT_LIBS 1438 PCIACCESS_CFLAGS 1439 PCIACCESS_LIBS 1440 DGA_CFLAGS 1441 DGA_LIBS 1442 XORG_MODULES_CFLAGS 1443 XORG_MODULES_LIBS 1444 GLAMOR_CFLAGS 1445 GLAMOR_LIBS 1446 GBM_CFLAGS 1447 GBM_LIBS 1448 XWINMODULES_CFLAGS 1449 XWINMODULES_LIBS 1450 WINDOWSDRI_CFLAGS 1451 WINDOWSDRI_LIBS 1452 KHRONOS_OPENGL_REGISTRY_CFLAGS 1453 KHRONOS_OPENGL_REGISTRY_LIBS 1454 XPBPROXY_CFLAGS 1455 XPBPROXY_LIBS 1456 XEPHYR_CFLAGS 1457 XEPHYR_LIBS' 1458 1459 1460 # Initialize some variables set by options. 1461 ac_init_help= 1462 ac_init_version=false 1463 ac_unrecognized_opts= 1464 ac_unrecognized_sep= 1465 # The variables have the same names as the options, with 1466 # dashes changed to underlines. 1467 cache_file=/dev/null 1468 exec_prefix=NONE 1469 no_create= 1470 no_recursion= 1471 prefix=NONE 1472 program_prefix=NONE 1473 program_suffix=NONE 1474 program_transform_name=s,x,x, 1475 silent= 1476 site= 1477 srcdir= 1478 verbose= 1479 x_includes=NONE 1480 x_libraries=NONE 1481 1482 # Installation directory options. 1483 # These are left unexpanded so users can "make install exec_prefix=/foo" 1484 # and all the variables that are supposed to be based on exec_prefix 1485 # by default will actually change. 1486 # Use braces instead of parens because sh, perl, etc. also accept them. 1487 # (The list follows the same order as the GNU Coding Standards.) 1488 bindir='${exec_prefix}/bin' 1489 sbindir='${exec_prefix}/sbin' 1490 libexecdir='${exec_prefix}/libexec' 1491 datarootdir='${prefix}/share' 1492 datadir='${datarootdir}' 1493 sysconfdir='${prefix}/etc' 1494 sharedstatedir='${prefix}/com' 1495 localstatedir='${prefix}/var' 1496 runstatedir='${localstatedir}/run' 1497 includedir='${prefix}/include' 1498 oldincludedir='/usr/include' 1499 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1500 infodir='${datarootdir}/info' 1501 htmldir='${docdir}' 1502 dvidir='${docdir}' 1503 pdfdir='${docdir}' 1504 psdir='${docdir}' 1505 libdir='${exec_prefix}/lib' 1506 localedir='${datarootdir}/locale' 1507 mandir='${datarootdir}/man' 1508 1509 ac_prev= 1510 ac_dashdash= 1511 for ac_option 1512 do 1513 # If the previous option needs an argument, assign it. 1514 if test -n "$ac_prev"; then 1515 eval $ac_prev=\$ac_option 1516 ac_prev= 1517 continue 1518 fi 1519 1520 case $ac_option in 1521 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1522 *=) ac_optarg= ;; 1523 *) ac_optarg=yes ;; 1524 esac 1525 1526 case $ac_dashdash$ac_option in 1527 --) 1528 ac_dashdash=yes ;; 1529 1530 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1531 ac_prev=bindir ;; 1532 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1533 bindir=$ac_optarg ;; 1534 1535 -build | --build | --buil | --bui | --bu) 1536 ac_prev=build_alias ;; 1537 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1538 build_alias=$ac_optarg ;; 1539 1540 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1541 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1542 ac_prev=cache_file ;; 1543 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1544 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1545 cache_file=$ac_optarg ;; 1546 1547 --config-cache | -C) 1548 cache_file=config.cache ;; 1549 1550 -datadir | --datadir | --datadi | --datad) 1551 ac_prev=datadir ;; 1552 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1553 datadir=$ac_optarg ;; 1554 1555 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1556 | --dataroo | --dataro | --datar) 1557 ac_prev=datarootdir ;; 1558 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1559 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1560 datarootdir=$ac_optarg ;; 1561 1562 -disable-* | --disable-*) 1563 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1564 # Reject names that are not valid shell variable names. 1565 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1566 as_fn_error $? "invalid feature name: '$ac_useropt'" 1567 ac_useropt_orig=$ac_useropt 1568 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1569 case $ac_user_opts in 1570 *" 1571 "enable_$ac_useropt" 1572 "*) ;; 1573 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1574 ac_unrecognized_sep=', ';; 1575 esac 1576 eval enable_$ac_useropt=no ;; 1577 1578 -docdir | --docdir | --docdi | --doc | --do) 1579 ac_prev=docdir ;; 1580 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1581 docdir=$ac_optarg ;; 1582 1583 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1584 ac_prev=dvidir ;; 1585 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1586 dvidir=$ac_optarg ;; 1587 1588 -enable-* | --enable-*) 1589 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1590 # Reject names that are not valid shell variable names. 1591 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1592 as_fn_error $? "invalid feature name: '$ac_useropt'" 1593 ac_useropt_orig=$ac_useropt 1594 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1595 case $ac_user_opts in 1596 *" 1597 "enable_$ac_useropt" 1598 "*) ;; 1599 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1600 ac_unrecognized_sep=', ';; 1601 esac 1602 eval enable_$ac_useropt=\$ac_optarg ;; 1603 1604 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1605 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1606 | --exec | --exe | --ex) 1607 ac_prev=exec_prefix ;; 1608 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1609 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1610 | --exec=* | --exe=* | --ex=*) 1611 exec_prefix=$ac_optarg ;; 1612 1613 -gas | --gas | --ga | --g) 1614 # Obsolete; use --with-gas. 1615 with_gas=yes ;; 1616 1617 -help | --help | --hel | --he | -h) 1618 ac_init_help=long ;; 1619 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1620 ac_init_help=recursive ;; 1621 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1622 ac_init_help=short ;; 1623 1624 -host | --host | --hos | --ho) 1625 ac_prev=host_alias ;; 1626 -host=* | --host=* | --hos=* | --ho=*) 1627 host_alias=$ac_optarg ;; 1628 1629 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1630 ac_prev=htmldir ;; 1631 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1632 | --ht=*) 1633 htmldir=$ac_optarg ;; 1634 1635 -includedir | --includedir | --includedi | --included | --include \ 1636 | --includ | --inclu | --incl | --inc) 1637 ac_prev=includedir ;; 1638 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1639 | --includ=* | --inclu=* | --incl=* | --inc=*) 1640 includedir=$ac_optarg ;; 1641 1642 -infodir | --infodir | --infodi | --infod | --info | --inf) 1643 ac_prev=infodir ;; 1644 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1645 infodir=$ac_optarg ;; 1646 1647 -libdir | --libdir | --libdi | --libd) 1648 ac_prev=libdir ;; 1649 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1650 libdir=$ac_optarg ;; 1651 1652 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1653 | --libexe | --libex | --libe) 1654 ac_prev=libexecdir ;; 1655 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1656 | --libexe=* | --libex=* | --libe=*) 1657 libexecdir=$ac_optarg ;; 1658 1659 -localedir | --localedir | --localedi | --localed | --locale) 1660 ac_prev=localedir ;; 1661 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1662 localedir=$ac_optarg ;; 1663 1664 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1665 | --localstate | --localstat | --localsta | --localst | --locals) 1666 ac_prev=localstatedir ;; 1667 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1668 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1669 localstatedir=$ac_optarg ;; 1670 1671 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1672 ac_prev=mandir ;; 1673 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1674 mandir=$ac_optarg ;; 1675 1676 -nfp | --nfp | --nf) 1677 # Obsolete; use --without-fp. 1678 with_fp=no ;; 1679 1680 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1681 | --no-cr | --no-c | -n) 1682 no_create=yes ;; 1683 1684 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1685 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1686 no_recursion=yes ;; 1687 1688 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1689 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1690 | --oldin | --oldi | --old | --ol | --o) 1691 ac_prev=oldincludedir ;; 1692 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1693 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1694 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1695 oldincludedir=$ac_optarg ;; 1696 1697 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1698 ac_prev=prefix ;; 1699 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1700 prefix=$ac_optarg ;; 1701 1702 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1703 | --program-pre | --program-pr | --program-p) 1704 ac_prev=program_prefix ;; 1705 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1706 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1707 program_prefix=$ac_optarg ;; 1708 1709 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1710 | --program-suf | --program-su | --program-s) 1711 ac_prev=program_suffix ;; 1712 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1713 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1714 program_suffix=$ac_optarg ;; 1715 1716 -program-transform-name | --program-transform-name \ 1717 | --program-transform-nam | --program-transform-na \ 1718 | --program-transform-n | --program-transform- \ 1719 | --program-transform | --program-transfor \ 1720 | --program-transfo | --program-transf \ 1721 | --program-trans | --program-tran \ 1722 | --progr-tra | --program-tr | --program-t) 1723 ac_prev=program_transform_name ;; 1724 -program-transform-name=* | --program-transform-name=* \ 1725 | --program-transform-nam=* | --program-transform-na=* \ 1726 | --program-transform-n=* | --program-transform-=* \ 1727 | --program-transform=* | --program-transfor=* \ 1728 | --program-transfo=* | --program-transf=* \ 1729 | --program-trans=* | --program-tran=* \ 1730 | --progr-tra=* | --program-tr=* | --program-t=*) 1731 program_transform_name=$ac_optarg ;; 1732 1733 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1734 ac_prev=pdfdir ;; 1735 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1736 pdfdir=$ac_optarg ;; 1737 1738 -psdir | --psdir | --psdi | --psd | --ps) 1739 ac_prev=psdir ;; 1740 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1741 psdir=$ac_optarg ;; 1742 1743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1744 | -silent | --silent | --silen | --sile | --sil) 1745 silent=yes ;; 1746 1747 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1748 | --runstate | --runstat | --runsta | --runst | --runs \ 1749 | --run | --ru | --r) 1750 ac_prev=runstatedir ;; 1751 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1752 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1753 | --run=* | --ru=* | --r=*) 1754 runstatedir=$ac_optarg ;; 1755 1756 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1757 ac_prev=sbindir ;; 1758 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1759 | --sbi=* | --sb=*) 1760 sbindir=$ac_optarg ;; 1761 1762 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1763 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1764 | --sharedst | --shareds | --shared | --share | --shar \ 1765 | --sha | --sh) 1766 ac_prev=sharedstatedir ;; 1767 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1768 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1769 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1770 | --sha=* | --sh=*) 1771 sharedstatedir=$ac_optarg ;; 1772 1773 -site | --site | --sit) 1774 ac_prev=site ;; 1775 -site=* | --site=* | --sit=*) 1776 site=$ac_optarg ;; 1777 1778 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1779 ac_prev=srcdir ;; 1780 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1781 srcdir=$ac_optarg ;; 1782 1783 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1784 | --syscon | --sysco | --sysc | --sys | --sy) 1785 ac_prev=sysconfdir ;; 1786 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1787 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1788 sysconfdir=$ac_optarg ;; 1789 1790 -target | --target | --targe | --targ | --tar | --ta | --t) 1791 ac_prev=target_alias ;; 1792 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1793 target_alias=$ac_optarg ;; 1794 1795 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1796 verbose=yes ;; 1797 1798 -version | --version | --versio | --versi | --vers | -V) 1799 ac_init_version=: ;; 1800 1801 -with-* | --with-*) 1802 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1803 # Reject names that are not valid shell variable names. 1804 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1805 as_fn_error $? "invalid package name: '$ac_useropt'" 1806 ac_useropt_orig=$ac_useropt 1807 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1808 case $ac_user_opts in 1809 *" 1810 "with_$ac_useropt" 1811 "*) ;; 1812 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1813 ac_unrecognized_sep=', ';; 1814 esac 1815 eval with_$ac_useropt=\$ac_optarg ;; 1816 1817 -without-* | --without-*) 1818 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1819 # Reject names that are not valid shell variable names. 1820 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1821 as_fn_error $? "invalid package name: '$ac_useropt'" 1822 ac_useropt_orig=$ac_useropt 1823 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1824 case $ac_user_opts in 1825 *" 1826 "with_$ac_useropt" 1827 "*) ;; 1828 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1829 ac_unrecognized_sep=', ';; 1830 esac 1831 eval with_$ac_useropt=no ;; 1832 1833 --x) 1834 # Obsolete; use --with-x. 1835 with_x=yes ;; 1836 1837 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1838 | --x-incl | --x-inc | --x-in | --x-i) 1839 ac_prev=x_includes ;; 1840 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1841 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1842 x_includes=$ac_optarg ;; 1843 1844 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1845 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1846 ac_prev=x_libraries ;; 1847 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1848 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1849 x_libraries=$ac_optarg ;; 1850 1851 -*) as_fn_error $? "unrecognized option: '$ac_option' 1852 Try '$0 --help' for more information" 1853 ;; 1854 1855 *=*) 1856 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1857 # Reject names that are not valid shell variable names. 1858 case $ac_envvar in #( 1859 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1860 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1861 esac 1862 eval $ac_envvar=\$ac_optarg 1863 export $ac_envvar ;; 1864 1865 *) 1866 # FIXME: should be removed in autoconf 3.0. 1867 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1868 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1869 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1870 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1871 ;; 1872 1873 esac 1874 done 1875 1876 if test -n "$ac_prev"; then 1877 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1878 as_fn_error $? "missing argument to $ac_option" 1879 fi 1880 1881 if test -n "$ac_unrecognized_opts"; then 1882 case $enable_option_checking in 1883 no) ;; 1884 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1885 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1886 esac 1887 fi 1888 1889 # Check all directory arguments for consistency. 1890 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1891 datadir sysconfdir sharedstatedir localstatedir includedir \ 1892 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1893 libdir localedir mandir runstatedir 1894 do 1895 eval ac_val=\$$ac_var 1896 # Remove trailing slashes. 1897 case $ac_val in 1898 */ ) 1899 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1900 eval $ac_var=\$ac_val;; 1901 esac 1902 # Be sure to have absolute directory names. 1903 case $ac_val in 1904 [\\/$]* | ?:[\\/]* ) continue;; 1905 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1906 esac 1907 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1908 done 1909 1910 # There might be people who depend on the old broken behavior: '$host' 1911 # used to hold the argument of --host etc. 1912 # FIXME: To remove some day. 1913 build=$build_alias 1914 host=$host_alias 1915 target=$target_alias 1916 1917 # FIXME: To remove some day. 1918 if test "x$host_alias" != x; then 1919 if test "x$build_alias" = x; then 1920 cross_compiling=maybe 1921 elif test "x$build_alias" != "x$host_alias"; then 1922 cross_compiling=yes 1923 fi 1924 fi 1925 1926 ac_tool_prefix= 1927 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1928 1929 test "$silent" = yes && exec 6>/dev/null 1930 1931 1932 ac_pwd=`pwd` && test -n "$ac_pwd" && 1933 ac_ls_di=`ls -di .` && 1934 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1935 as_fn_error $? "working directory cannot be determined" 1936 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1937 as_fn_error $? "pwd does not report name of working directory" 1938 1939 1940 # Find the source files, if location was not specified. 1941 if test -z "$srcdir"; then 1942 ac_srcdir_defaulted=yes 1943 # Try the directory containing this script, then the parent directory. 1944 ac_confdir=`$as_dirname -- "$as_myself" || 1945 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1946 X"$as_myself" : 'X\(//\)[^/]' \| \ 1947 X"$as_myself" : 'X\(//\)$' \| \ 1948 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1949 printf "%s\n" X"$as_myself" | 1950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1951 s//\1/ 1952 q 1953 } 1954 /^X\(\/\/\)[^/].*/{ 1955 s//\1/ 1956 q 1957 } 1958 /^X\(\/\/\)$/{ 1959 s//\1/ 1960 q 1961 } 1962 /^X\(\/\).*/{ 1963 s//\1/ 1964 q 1965 } 1966 s/.*/./; q'` 1967 srcdir=$ac_confdir 1968 if test ! -r "$srcdir/$ac_unique_file"; then 1969 srcdir=.. 1970 fi 1971 else 1972 ac_srcdir_defaulted=no 1973 fi 1974 if test ! -r "$srcdir/$ac_unique_file"; then 1975 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1976 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1977 fi 1978 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1979 ac_abs_confdir=`( 1980 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1981 pwd)` 1982 # When building in place, set srcdir=. 1983 if test "$ac_abs_confdir" = "$ac_pwd"; then 1984 srcdir=. 1985 fi 1986 # Remove unnecessary trailing slashes from srcdir. 1987 # Double slashes in file names in object file debugging info 1988 # mess up M-x gdb in Emacs. 1989 case $srcdir in 1990 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1991 esac 1992 for ac_var in $ac_precious_vars; do 1993 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1994 eval ac_env_${ac_var}_value=\$${ac_var} 1995 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1996 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1997 done 1998 1999 # 2000 # Report the --help message. 2001 # 2002 if test "$ac_init_help" = "long"; then 2003 # Omit some internal or obsolete options to make the list less imposing. 2004 # This message is too long to be a string in the A/UX 3.1 sh. 2005 cat <<_ACEOF 2006 'configure' configures xorg-server 21.1.24 to adapt to many kinds of systems. 2007 2008 Usage: $0 [OPTION]... [VAR=VALUE]... 2009 2010 To assign environment variables (e.g., CC, CFLAGS...), specify them as 2011 VAR=VALUE. See below for descriptions of some of the useful variables. 2012 2013 Defaults for the options are specified in brackets. 2014 2015 Configuration: 2016 -h, --help display this help and exit 2017 --help=short display options specific to this package 2018 --help=recursive display the short help of all the included packages 2019 -V, --version display version information and exit 2020 -q, --quiet, --silent do not print 'checking ...' messages 2021 --cache-file=FILE cache test results in FILE [disabled] 2022 -C, --config-cache alias for '--cache-file=config.cache' 2023 -n, --no-create do not create output files 2024 --srcdir=DIR find the sources in DIR [configure dir or '..'] 2025 2026 Installation directories: 2027 --prefix=PREFIX install architecture-independent files in PREFIX 2028 [$ac_default_prefix] 2029 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 2030 [PREFIX] 2031 2032 By default, 'make install' will install all the files in 2033 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 2034 an installation prefix other than '$ac_default_prefix' using '--prefix', 2035 for instance '--prefix=\$HOME'. 2036 2037 For better control, use the options below. 2038 2039 Fine tuning of the installation directories: 2040 --bindir=DIR user executables [EPREFIX/bin] 2041 --sbindir=DIR system admin executables [EPREFIX/sbin] 2042 --libexecdir=DIR program executables [EPREFIX/libexec] 2043 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 2044 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 2045 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 2046 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 2047 --libdir=DIR object code libraries [EPREFIX/lib] 2048 --includedir=DIR C header files [PREFIX/include] 2049 --oldincludedir=DIR C header files for non-gcc [/usr/include] 2050 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 2051 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 2052 --infodir=DIR info documentation [DATAROOTDIR/info] 2053 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 2054 --mandir=DIR man documentation [DATAROOTDIR/man] 2055 --docdir=DIR documentation root [DATAROOTDIR/doc/xorg-server] 2056 --htmldir=DIR html documentation [DOCDIR] 2057 --dvidir=DIR dvi documentation [DOCDIR] 2058 --pdfdir=DIR pdf documentation [DOCDIR] 2059 --psdir=DIR ps documentation [DOCDIR] 2060 _ACEOF 2061 2062 cat <<\_ACEOF 2063 2064 Program names: 2065 --program-prefix=PREFIX prepend PREFIX to installed program names 2066 --program-suffix=SUFFIX append SUFFIX to installed program names 2067 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 2068 2069 System types: 2070 --build=BUILD configure for building on BUILD [guessed] 2071 --host=HOST cross-compile to build programs to run on HOST [BUILD] 2072 _ACEOF 2073 fi 2074 2075 if test -n "$ac_init_help"; then 2076 case $ac_init_help in 2077 short | recursive ) echo "Configuration of xorg-server 21.1.24:";; 2078 esac 2079 cat <<\_ACEOF 2080 2081 Optional Features: 2082 --disable-option-checking ignore unrecognized --enable/--with options 2083 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 2084 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 2085 --enable-silent-rules less verbose build output (undo: "make V=1") 2086 --disable-silent-rules verbose build output (undo: "make V=0") 2087 --enable-dependency-tracking 2088 do not reject slow dependency extractors 2089 --disable-dependency-tracking 2090 speeds up one-time build 2091 --disable-selective-werror 2092 Turn off selective compiler errors. (default: 2093 enabled) 2094 --enable-strict-compilation 2095 Enable all warnings from compiler and make them 2096 errors (default: disabled) 2097 --enable-docs Enable building the documentation (default: yes) 2098 --enable-devel-docs Enable building the developer documentation 2099 (default: yes) 2100 --enable-unit-tests Enable building unit test cases (default: auto) 2101 --enable-static[=PKGS] build static libraries [default=no] 2102 --enable-shared[=PKGS] build shared libraries [default=yes] 2103 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 2104 both] 2105 --enable-fast-install[=PKGS] 2106 optimize for fast installation [default=yes] 2107 --enable-aix-soname=aix|svr4|both 2108 shared library versioning (aka "SONAME") variant to 2109 provide on AIX, [default=aix]. 2110 --disable-libtool-lock avoid locking (might break parallel builds) 2111 --disable-largefile omit support for large files 2112 --enable-agp Enable AGP support (default: auto) 2113 --enable-werror Obsolete - use --enable-strict-compilation instead 2114 --enable-debug Enable debugging (default: disabled) 2115 --enable-listen-tcp Listen on TCP by default (default:disabled) 2116 --disable-listen-unix Listen on Unix by default (default:enabled) 2117 --disable-listen-local Listen on local by default (default:enabled) 2118 --enable-sparkle Enable updating of X11.app using the Sparkle 2119 Framework (default: disabled) 2120 --enable-visibility Enable symbol visibility (default: auto) 2121 --disable-composite Build Composite extension (default: enabled) 2122 --disable-mitshm Build SHM extension (default: auto) 2123 --disable-xres Build XRes extension (default: enabled) 2124 --disable-record Build Record extension (default: enabled) 2125 --disable-xv Build Xv extension (default: enabled) 2126 --disable-xvmc Build XvMC extension (default: enabled) 2127 --disable-dga Build DGA extension (default: auto) 2128 --disable-screensaver Build ScreenSaver extension (default: enabled) 2129 --disable-xdmcp Build XDMCP extension (default: auto) 2130 --disable-xdm-auth-1 Build XDM-Auth-1 extension (default: auto) 2131 --disable-glx Build GLX extension (default: enabled) 2132 --enable-dri Build DRI extension (default: auto) 2133 --enable-dri2 Build DRI2 extension (default: auto) 2134 --enable-dri3 Build DRI3 extension (default: auto) 2135 --disable-present Build Present extension (default: enabled) 2136 --disable-xinerama Build Xinerama extension (default: enabled) 2137 --disable-xf86vidmode Build XF86VidMode extension (default: auto) 2138 --disable-xace Build X-ACE extension (default: enabled) 2139 --enable-xselinux Build SELinux extension (default: disabled) 2140 --enable-xcsecurity Build Security extension (default: disabled) 2141 --disable-dbe Build DBE extension (default: enabled) 2142 --enable-xf86bigfont Build XF86 Big Font extension (default: disabled) 2143 --disable-dpms Build DPMS extension (default: enabled) 2144 --enable-config-udev Build udev support (default: auto) 2145 --enable-config-udev-kms 2146 Build udev kms support (default: auto) 2147 --disable-config-hal Build HAL support (default: auto) 2148 --enable-config-wscons Build wscons config support (default: auto) 2149 --enable-xfree86-utils Build xfree86 DDX utilities (default: enabled) 2150 --enable-vgahw Build Xorg with vga access (default: enabled) 2151 --enable-int10-module Build Xorg with int10 module (default: enabled) 2152 --enable-windowsdri Build XWin with WindowsDRI extension (default: auto) 2153 --enable-libdrm Build Xorg with libdrm support (default: enabled) 2154 --disable-clientids Build Xorg with client ID tracking (default: 2155 enabled) 2156 --enable-pciaccess Build Xorg with pciaccess library (default: enabled) 2157 --disable-linux-acpi Disable building ACPI support on Linux (if 2158 available). 2159 --disable-linux-apm Disable building APM support on Linux (if 2160 available). 2161 --enable-systemd-logind Build systemd-logind support (default: auto) 2162 --enable-suid-wrapper Build suid-root wrapper for legacy driver support on 2163 rootless xserver systems (default: no) 2164 --enable-xorg Build Xorg server (default: auto) 2165 --enable-xvfb Build Xvfb server (default: yes) 2166 --enable-xnest Build Xnest server (default: auto) 2167 --enable-xquartz Build Xquartz server for OS-X (default: auto) 2168 --enable-standalone-xpbproxy 2169 Build a standalone xpbproxy (in addition to the one 2170 integrated into Xquartz as a separate thread) 2171 (default: no) 2172 --enable-xwin Build XWin server (default: auto) 2173 --enable-glamor Build glamor dix module (default: auto) 2174 --enable-xf86-input-inputtest 2175 Build Xorg test input driver (default: yes) 2176 --enable-kdrive Build kdrive servers (default: no) 2177 --enable-xephyr Build the kdrive Xephyr server (default: auto) 2178 --enable-libunwind Use libunwind for backtracing (default: auto) 2179 --disable-xshmfence Disable xshmfence (default: auto) 2180 --enable-install-setuid Install Xorg server as owned by root with setuid bit 2181 (default: auto) 2182 --enable-unix-transport Enable UNIX domain socket transport 2183 --enable-tcp-transport Enable TCP socket transport 2184 --enable-ipv6 Enable IPv6 support 2185 --enable-local-transport 2186 Enable os-specific local transport 2187 --enable-secure-rpc Enable Secure RPC 2188 --enable-input-thread Enable input threads 2189 --disable-xtrans-send-fds 2190 Use Xtrans support for fd passing (default: auto) 2191 --enable-year2038 support timestamps after 2038 2192 2193 Optional Packages: 2194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2196 --with-doxygen Use doxygen to regenerate documentation (default: 2197 auto) 2198 --with-xmlto Use xmlto to regenerate documentation (default: 2199 auto) 2200 --with-fop Use fop to regenerate documentation (default: auto) 2201 --with-xsltproc Use xsltproc for the transformation of XML documents 2202 (default: auto) 2203 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2204 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 2205 compiler's sysroot if not specified). 2206 --with-dtrace=PATH Enable dtrace probes (default: enabled if dtrace 2207 found) 2208 --with-int10=BACKEND int10 backend: vm86, x86emu or stub 2209 --with-vendor-name=VENDOR 2210 Vendor string reported by the server 2211 --with-vendor-name-short=VENDOR 2212 Short version of vendor string reported by the 2213 server 2214 --with-vendor-web=URL Vendor web address reported by the server 2215 --with-module-dir=DIR Directory where modules are installed (default: 2216 $libdir/xorg/modules) 2217 --with-log-dir=DIR Directory where log files are kept (default: 2218 $localstatedir/log) 2219 --with-builder-addr=ADDRESS 2220 Builder address (default: 2221 xorg (at] lists.freedesktop.org) 2222 --with-builderstring=BUILDERSTRING 2223 Additional builder string 2224 --with-fallback-input-driver=$FALLBACK_INPUT_DRIVER 2225 Input driver fallback if the requested driver for a 2226 device is unavailable 2227 --with-fontrootdir=DIR Path to root directory for font files 2228 --with-fontmiscdir=DIR Path to misc files [FONTROOTDIR/misc] 2229 --with-fontotfdir=DIR Path to OTF files [FONTROOTDIR/OTF] 2230 --with-fontttfdir=DIR Path to TTF files [FONTROOTDIR/TTF] 2231 --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1] 2232 --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi] 2233 --with-font100dpidir=DIR 2234 Path to 100dpi files [FONTROOTDIR/100dpi] 2235 --with-default-font-path=PATH 2236 Comma separated list of font dirs 2237 --with-xkb-path=PATH Path to XKB base dir (default: auto) 2238 --with-xkb-output=PATH Path to XKB output dir (default: 2239 ${datadir}/X11/xkb/compiled) 2240 --with-default-xkb-rules=RULES 2241 Keyboard ruleset (default: base/evdev) 2242 --with-default-xkb-model=MODEL 2243 Keyboard model (default: pc105) 2244 --with-default-xkb-layout=LAYOUT 2245 Keyboard layout (default: us) 2246 --with-default-xkb-variant=VARIANT 2247 Keyboard variant (default: (none)) 2248 --with-default-xkb-options=OPTIONS 2249 Keyboard layout options (default: (none)) 2250 --with-serverconfig-path=PATH 2251 Directory where ancillary server config files are 2252 installed (default: ${libdir}/xorg) 2253 --with-apple-applications-dir=PATH 2254 Path to the Applications directory (default: 2255 /Applications/Utilities) 2256 --with-apple-application-name=NAME 2257 Name for the .app (default: X11) 2258 --with-bundle-id-prefix=RDNS_PREFIX 2259 Prefix to use for bundle identifiers (default: 2260 org.x) 2261 --with-bundle-version=VERSION 2262 Version to use for X11.app's CFBundleVersion 2263 (default: 21.1.24) 2264 --with-bundle-version-string=VERSION 2265 Version to use for X11.app's 2266 CFBundleShortVersionString (default: 21.1.24) 2267 --with-sparkle-feed-url=URL 2268 URL for the Sparkle feed (default: 2269 https://www.xquartz.org/releases/sparkle/release.xml) 2270 --with-khronos-spec-dir=PATH 2271 Path to Khronos OpenGL registry database files 2272 (default: auto) 2273 --with-systemd-daemon support systemd socket activation (default: auto) 2274 --with-xkb-bin-directory=DIR 2275 Directory containing xkbcomp program (default: auto) 2276 --with-sha1=libc|libmd|libnettle|nettlestatic|libgcrypt|libcrypto|libsha1|CommonCrypto|CryptoAPI 2277 choose SHA1 implementation 2278 2279 Some influential environment variables: 2280 CC C compiler command 2281 CFLAGS C compiler flags 2282 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2283 nonstandard directory <lib dir> 2284 LIBS libraries to pass to the linker, e.g. -l<library> 2285 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2286 you have headers in a nonstandard directory <include dir> 2287 PKG_CONFIG path to pkg-config utility 2288 PKG_CONFIG_PATH 2289 directories to add to pkg-config's search path 2290 PKG_CONFIG_LIBDIR 2291 path overriding pkg-config's built-in search path 2292 DOXYGEN Path to doxygen command 2293 DOT Path to the dot graphics utility 2294 XMLTO Path to xmlto command 2295 FOP Path to fop command 2296 XSLTPROC Path to xsltproc command 2297 XORG_MALLOC_DEBUG_ENV 2298 Environment variables to enable memory checking in tests 2299 CCAS assembler compiler command (defaults to CC) 2300 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 2301 LT_SYS_LIBRARY_PATH 2302 User-defined run-time library search path. 2303 YACC The 'Yet Another Compiler Compiler' implementation to use. 2304 Defaults to the first program found out of: 'bison -y', 'byacc', 2305 'yacc'. 2306 YFLAGS The list of arguments that will be passed by default to $YACC. 2307 This script will default YFLAGS to the empty string to avoid a 2308 default value of '-d' given by some make applications. 2309 CPP C preprocessor 2310 LIBBSD_CFLAGS 2311 C compiler flags for LIBBSD, overriding pkg-config 2312 LIBBSD_LIBS linker flags for LIBBSD, overriding pkg-config 2313 PIXMAN_CFLAGS 2314 C compiler flags for PIXMAN, overriding pkg-config 2315 PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config 2316 SYSTEMD_DAEMON_CFLAGS 2317 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config 2318 SYSTEMD_DAEMON_LIBS 2319 linker flags for SYSTEMD_DAEMON, overriding pkg-config 2320 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config 2321 UDEV_LIBS linker flags for UDEV, overriding pkg-config 2322 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config 2323 DBUS_LIBS linker flags for DBUS, overriding pkg-config 2324 HAL_CFLAGS C compiler flags for HAL, overriding pkg-config 2325 HAL_LIBS linker flags for HAL, overriding pkg-config 2326 DRI2PROTO_CFLAGS 2327 C compiler flags for DRI2PROTO, overriding pkg-config 2328 DRI2PROTO_LIBS 2329 linker flags for DRI2PROTO, overriding pkg-config 2330 DRI3PROTO_CFLAGS 2331 C compiler flags for DRI3PROTO, overriding pkg-config 2332 DRI3PROTO_LIBS 2333 linker flags for DRI3PROTO, overriding pkg-config 2334 XSHMFENCE_CFLAGS 2335 C compiler flags for XSHMFENCE, overriding pkg-config 2336 XSHMFENCE_LIBS 2337 linker flags for XSHMFENCE, overriding pkg-config 2338 LIBDRM_CFLAGS 2339 C compiler flags for LIBDRM, overriding pkg-config 2340 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config 2341 XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config 2342 XLIB_LIBS linker flags for XLIB, overriding pkg-config 2343 GL_CFLAGS C compiler flags for GL, overriding pkg-config 2344 GL_LIBS linker flags for GL, overriding pkg-config 2345 SELINUX_CFLAGS 2346 C compiler flags for SELINUX, overriding pkg-config 2347 SELINUX_LIBS 2348 linker flags for SELINUX, overriding pkg-config 2349 XDMCP_CFLAGS 2350 C compiler flags for XDMCP, overriding pkg-config 2351 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config 2352 LIBSHA1_CFLAGS 2353 C compiler flags for LIBSHA1, overriding pkg-config 2354 LIBSHA1_LIBS 2355 linker flags for LIBSHA1, overriding pkg-config 2356 OPENSSL_CFLAGS 2357 C compiler flags for OPENSSL, overriding pkg-config 2358 OPENSSL_LIBS 2359 linker flags for OPENSSL, overriding pkg-config 2360 XSERVERCFLAGS_CFLAGS 2361 C compiler flags for XSERVERCFLAGS, overriding pkg-config 2362 XSERVERCFLAGS_LIBS 2363 linker flags for XSERVERCFLAGS, overriding pkg-config 2364 XSERVERLIBS_CFLAGS 2365 C compiler flags for XSERVERLIBS, overriding pkg-config 2366 XSERVERLIBS_LIBS 2367 linker flags for XSERVERLIBS, overriding pkg-config 2368 LIBUNWIND_CFLAGS 2369 C compiler flags for LIBUNWIND, overriding pkg-config 2370 LIBUNWIND_LIBS 2371 linker flags for LIBUNWIND, overriding pkg-config 2372 XNESTMODULES_CFLAGS 2373 C compiler flags for XNESTMODULES, overriding pkg-config 2374 XNESTMODULES_LIBS 2375 linker flags for XNESTMODULES, overriding pkg-config 2376 LIBXCVT_CFLAGS 2377 C compiler flags for LIBXCVT, overriding pkg-config 2378 LIBXCVT_LIBS 2379 linker flags for LIBXCVT, overriding pkg-config 2380 PCIACCESS_CFLAGS 2381 C compiler flags for PCIACCESS, overriding pkg-config 2382 PCIACCESS_LIBS 2383 linker flags for PCIACCESS, overriding pkg-config 2384 DGA_CFLAGS C compiler flags for DGA, overriding pkg-config 2385 DGA_LIBS linker flags for DGA, overriding pkg-config 2386 XORG_MODULES_CFLAGS 2387 C compiler flags for XORG_MODULES, overriding pkg-config 2388 XORG_MODULES_LIBS 2389 linker flags for XORG_MODULES, overriding pkg-config 2390 GLAMOR_CFLAGS 2391 C compiler flags for GLAMOR, overriding pkg-config 2392 GLAMOR_LIBS linker flags for GLAMOR, overriding pkg-config 2393 GBM_CFLAGS C compiler flags for GBM, overriding pkg-config 2394 GBM_LIBS linker flags for GBM, overriding pkg-config 2395 XWINMODULES_CFLAGS 2396 C compiler flags for XWINMODULES, overriding pkg-config 2397 XWINMODULES_LIBS 2398 linker flags for XWINMODULES, overriding pkg-config 2399 WINDOWSDRI_CFLAGS 2400 C compiler flags for WINDOWSDRI, overriding pkg-config 2401 WINDOWSDRI_LIBS 2402 linker flags for WINDOWSDRI, overriding pkg-config 2403 KHRONOS_OPENGL_REGISTRY_CFLAGS 2404 C compiler flags for KHRONOS_OPENGL_REGISTRY, overriding 2405 pkg-config 2406 KHRONOS_OPENGL_REGISTRY_LIBS 2407 linker flags for KHRONOS_OPENGL_REGISTRY, overriding pkg-config 2408 XPBPROXY_CFLAGS 2409 C compiler flags for XPBPROXY, overriding pkg-config 2410 XPBPROXY_LIBS 2411 linker flags for XPBPROXY, overriding pkg-config 2412 XEPHYR_CFLAGS 2413 C compiler flags for XEPHYR, overriding pkg-config 2414 XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config 2415 2416 Use these variables to override the choices made by 'configure' or to help 2417 it to find libraries and programs with nonstandard names/locations. 2418 2419 Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>. 2420 _ACEOF 2421 ac_status=$? 2422 fi 2423 2424 if test "$ac_init_help" = "recursive"; then 2425 # If there are subdirs, report their specific --help. 2426 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2427 test -d "$ac_dir" || 2428 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2429 continue 2430 ac_builddir=. 2431 2432 case "$ac_dir" in 2433 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2434 *) 2435 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 2436 # A ".." for each directory in $ac_dir_suffix. 2437 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2438 case $ac_top_builddir_sub in 2439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2441 esac ;; 2442 esac 2443 ac_abs_top_builddir=$ac_pwd 2444 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2445 # for backward compatibility: 2446 ac_top_builddir=$ac_top_build_prefix 2447 2448 case $srcdir in 2449 .) # We are building in place. 2450 ac_srcdir=. 2451 ac_top_srcdir=$ac_top_builddir_sub 2452 ac_abs_top_srcdir=$ac_pwd ;; 2453 [\\/]* | ?:[\\/]* ) # Absolute name. 2454 ac_srcdir=$srcdir$ac_dir_suffix; 2455 ac_top_srcdir=$srcdir 2456 ac_abs_top_srcdir=$srcdir ;; 2457 *) # Relative name. 2458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2459 ac_top_srcdir=$ac_top_build_prefix$srcdir 2460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2461 esac 2462 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2463 2464 cd "$ac_dir" || { ac_status=$?; continue; } 2465 # Check for configure.gnu first; this name is used for a wrapper for 2466 # Metaconfig's "Configure" on case-insensitive file systems. 2467 if test -f "$ac_srcdir/configure.gnu"; then 2468 echo && 2469 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2470 elif test -f "$ac_srcdir/configure"; then 2471 echo && 2472 $SHELL "$ac_srcdir/configure" --help=recursive 2473 else 2474 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2475 fi || ac_status=$? 2476 cd "$ac_pwd" || { ac_status=$?; break; } 2477 done 2478 fi 2479 2480 test -n "$ac_init_help" && exit $ac_status 2481 if $ac_init_version; then 2482 cat <<\_ACEOF 2483 xorg-server configure 21.1.24 2484 generated by GNU Autoconf 2.72 2485 2486 Copyright (C) 2023 Free Software Foundation, Inc. 2487 This configure script is free software; the Free Software Foundation 2488 gives unlimited permission to copy, distribute and modify it. 2489 _ACEOF 2490 exit 2491 fi 2492 2493 ## ------------------------ ## 2494 ## Autoconf initialization. ## 2495 ## ------------------------ ## 2496 2497 # ac_fn_c_try_compile LINENO 2498 # -------------------------- 2499 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2500 ac_fn_c_try_compile () 2501 { 2502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2503 rm -f conftest.$ac_objext conftest.beam 2504 if { { ac_try="$ac_compile" 2505 case "(($ac_try" in 2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2507 *) ac_try_echo=$ac_try;; 2508 esac 2509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2510 printf "%s\n" "$ac_try_echo"; } >&5 2511 (eval "$ac_compile") 2>conftest.err 2512 ac_status=$? 2513 if test -s conftest.err; then 2514 grep -v '^ *+' conftest.err >conftest.er1 2515 cat conftest.er1 >&5 2516 mv -f conftest.er1 conftest.err 2517 fi 2518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2519 test $ac_status = 0; } && { 2520 test -z "$ac_c_werror_flag" || 2521 test ! -s conftest.err 2522 } && test -s conftest.$ac_objext 2523 then : 2524 ac_retval=0 2525 else case e in #( 2526 e) printf "%s\n" "$as_me: failed program was:" >&5 2527 sed 's/^/| /' conftest.$ac_ext >&5 2528 2529 ac_retval=1 ;; 2530 esac 2531 fi 2532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2533 as_fn_set_status $ac_retval 2534 2535 } # ac_fn_c_try_compile 2536 2537 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2538 # ------------------------------------------------------- 2539 # Tests whether HEADER exists and can be compiled using the include files in 2540 # INCLUDES, setting the cache variable VAR accordingly. 2541 ac_fn_c_check_header_compile () 2542 { 2543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2545 printf %s "checking for $2... " >&6; } 2546 if eval test \${$3+y} 2547 then : 2548 printf %s "(cached) " >&6 2549 else case e in #( 2550 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2551 /* end confdefs.h. */ 2552 $4 2553 #include <$2> 2554 _ACEOF 2555 if ac_fn_c_try_compile "$LINENO" 2556 then : 2557 eval "$3=yes" 2558 else case e in #( 2559 e) eval "$3=no" ;; 2560 esac 2561 fi 2562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2563 esac 2564 fi 2565 eval ac_res=\$$3 2566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2567 printf "%s\n" "$ac_res" >&6; } 2568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2569 2570 } # ac_fn_c_check_header_compile 2571 2572 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2573 # ------------------------------------------------------------------ 2574 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2575 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2576 ac_fn_check_decl () 2577 { 2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2579 as_decl_name=`echo $2|sed 's/ *(.*//'` 2580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2581 printf %s "checking whether $as_decl_name is declared... " >&6; } 2582 if eval test \${$3+y} 2583 then : 2584 printf %s "(cached) " >&6 2585 else case e in #( 2586 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2587 eval ac_save_FLAGS=\$$6 2588 as_fn_append $6 " $5" 2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2590 /* end confdefs.h. */ 2591 $4 2592 int 2593 main (void) 2594 { 2595 #ifndef $as_decl_name 2596 #ifdef __cplusplus 2597 (void) $as_decl_use; 2598 #else 2599 (void) $as_decl_name; 2600 #endif 2601 #endif 2602 2603 ; 2604 return 0; 2605 } 2606 _ACEOF 2607 if ac_fn_c_try_compile "$LINENO" 2608 then : 2609 eval "$3=yes" 2610 else case e in #( 2611 e) eval "$3=no" ;; 2612 esac 2613 fi 2614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2615 eval $6=\$ac_save_FLAGS 2616 ;; 2617 esac 2618 fi 2619 eval ac_res=\$$3 2620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2621 printf "%s\n" "$ac_res" >&6; } 2622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2623 2624 } # ac_fn_check_decl 2625 2626 # ac_fn_c_try_link LINENO 2627 # ----------------------- 2628 # Try to link conftest.$ac_ext, and return whether this succeeded. 2629 ac_fn_c_try_link () 2630 { 2631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2632 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2633 if { { ac_try="$ac_link" 2634 case "(($ac_try" in 2635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2636 *) ac_try_echo=$ac_try;; 2637 esac 2638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2639 printf "%s\n" "$ac_try_echo"; } >&5 2640 (eval "$ac_link") 2>conftest.err 2641 ac_status=$? 2642 if test -s conftest.err; then 2643 grep -v '^ *+' conftest.err >conftest.er1 2644 cat conftest.er1 >&5 2645 mv -f conftest.er1 conftest.err 2646 fi 2647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2648 test $ac_status = 0; } && { 2649 test -z "$ac_c_werror_flag" || 2650 test ! -s conftest.err 2651 } && test -s conftest$ac_exeext && { 2652 test "$cross_compiling" = yes || 2653 test -x conftest$ac_exeext 2654 } 2655 then : 2656 ac_retval=0 2657 else case e in #( 2658 e) printf "%s\n" "$as_me: failed program was:" >&5 2659 sed 's/^/| /' conftest.$ac_ext >&5 2660 2661 ac_retval=1 ;; 2662 esac 2663 fi 2664 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2665 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2666 # interfere with the next link command; also delete a directory that is 2667 # left behind by Apple's compiler. We do this before executing the actions. 2668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2670 as_fn_set_status $ac_retval 2671 2672 } # ac_fn_c_try_link 2673 2674 # ac_fn_c_check_func LINENO FUNC VAR 2675 # ---------------------------------- 2676 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2677 ac_fn_c_check_func () 2678 { 2679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2681 printf %s "checking for $2... " >&6; } 2682 if eval test \${$3+y} 2683 then : 2684 printf %s "(cached) " >&6 2685 else case e in #( 2686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2687 /* end confdefs.h. */ 2688 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2689 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2690 #define $2 innocuous_$2 2691 2692 /* System header to define __stub macros and hopefully few prototypes, 2693 which can conflict with char $2 (void); below. */ 2694 2695 #include <limits.h> 2696 #undef $2 2697 2698 /* Override any GCC internal prototype to avoid an error. 2699 Use char because int might match the return type of a GCC 2700 builtin and then its argument prototype would still apply. */ 2701 #ifdef __cplusplus 2702 extern "C" 2703 #endif 2704 char $2 (void); 2705 /* The GNU C library defines this for functions which it implements 2706 to always fail with ENOSYS. Some functions are actually named 2707 something starting with __ and the normal name is an alias. */ 2708 #if defined __stub_$2 || defined __stub___$2 2709 choke me 2710 #endif 2711 2712 int 2713 main (void) 2714 { 2715 return $2 (); 2716 ; 2717 return 0; 2718 } 2719 _ACEOF 2720 if ac_fn_c_try_link "$LINENO" 2721 then : 2722 eval "$3=yes" 2723 else case e in #( 2724 e) eval "$3=no" ;; 2725 esac 2726 fi 2727 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2728 conftest$ac_exeext conftest.$ac_ext ;; 2729 esac 2730 fi 2731 eval ac_res=\$$3 2732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2733 printf "%s\n" "$ac_res" >&6; } 2734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2735 2736 } # ac_fn_c_check_func 2737 2738 # ac_fn_c_try_cpp LINENO 2739 # ---------------------- 2740 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2741 ac_fn_c_try_cpp () 2742 { 2743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2744 if { { ac_try="$ac_cpp conftest.$ac_ext" 2745 case "(($ac_try" in 2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2747 *) ac_try_echo=$ac_try;; 2748 esac 2749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2750 printf "%s\n" "$ac_try_echo"; } >&5 2751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2752 ac_status=$? 2753 if test -s conftest.err; then 2754 grep -v '^ *+' conftest.err >conftest.er1 2755 cat conftest.er1 >&5 2756 mv -f conftest.er1 conftest.err 2757 fi 2758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2759 test $ac_status = 0; } > conftest.i && { 2760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2761 test ! -s conftest.err 2762 } 2763 then : 2764 ac_retval=0 2765 else case e in #( 2766 e) printf "%s\n" "$as_me: failed program was:" >&5 2767 sed 's/^/| /' conftest.$ac_ext >&5 2768 2769 ac_retval=1 ;; 2770 esac 2771 fi 2772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2773 as_fn_set_status $ac_retval 2774 2775 } # ac_fn_c_try_cpp 2776 2777 # ac_fn_c_try_run LINENO 2778 # ---------------------- 2779 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2780 # executables *can* be run. 2781 ac_fn_c_try_run () 2782 { 2783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2784 if { { ac_try="$ac_link" 2785 case "(($ac_try" in 2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2787 *) ac_try_echo=$ac_try;; 2788 esac 2789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2790 printf "%s\n" "$ac_try_echo"; } >&5 2791 (eval "$ac_link") 2>&5 2792 ac_status=$? 2793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2794 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2795 { { case "(($ac_try" in 2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2797 *) ac_try_echo=$ac_try;; 2798 esac 2799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2800 printf "%s\n" "$ac_try_echo"; } >&5 2801 (eval "$ac_try") 2>&5 2802 ac_status=$? 2803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2804 test $ac_status = 0; }; } 2805 then : 2806 ac_retval=0 2807 else case e in #( 2808 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2809 printf "%s\n" "$as_me: failed program was:" >&5 2810 sed 's/^/| /' conftest.$ac_ext >&5 2811 2812 ac_retval=$ac_status ;; 2813 esac 2814 fi 2815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2817 as_fn_set_status $ac_retval 2818 2819 } # ac_fn_c_try_run 2820 2821 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2822 # -------------------------------------------- 2823 # Tries to find the compile-time value of EXPR in a program that includes 2824 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2825 # computed 2826 ac_fn_c_compute_int () 2827 { 2828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2829 if test "$cross_compiling" = yes; then 2830 # Depending upon the size, compute the lo and hi bounds. 2831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2832 /* end confdefs.h. */ 2833 $4 2834 int 2835 main (void) 2836 { 2837 static int test_array [1 - 2 * !(($2) >= 0)]; 2838 test_array [0] = 0; 2839 return test_array [0]; 2840 2841 ; 2842 return 0; 2843 } 2844 _ACEOF 2845 if ac_fn_c_try_compile "$LINENO" 2846 then : 2847 ac_lo=0 ac_mid=0 2848 while :; do 2849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2850 /* end confdefs.h. */ 2851 $4 2852 int 2853 main (void) 2854 { 2855 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2856 test_array [0] = 0; 2857 return test_array [0]; 2858 2859 ; 2860 return 0; 2861 } 2862 _ACEOF 2863 if ac_fn_c_try_compile "$LINENO" 2864 then : 2865 ac_hi=$ac_mid; break 2866 else case e in #( 2867 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2868 if test $ac_lo -le $ac_mid; then 2869 ac_lo= ac_hi= 2870 break 2871 fi 2872 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;; 2873 esac 2874 fi 2875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2876 done 2877 else case e in #( 2878 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2879 /* end confdefs.h. */ 2880 $4 2881 int 2882 main (void) 2883 { 2884 static int test_array [1 - 2 * !(($2) < 0)]; 2885 test_array [0] = 0; 2886 return test_array [0]; 2887 2888 ; 2889 return 0; 2890 } 2891 _ACEOF 2892 if ac_fn_c_try_compile "$LINENO" 2893 then : 2894 ac_hi=-1 ac_mid=-1 2895 while :; do 2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2897 /* end confdefs.h. */ 2898 $4 2899 int 2900 main (void) 2901 { 2902 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2903 test_array [0] = 0; 2904 return test_array [0]; 2905 2906 ; 2907 return 0; 2908 } 2909 _ACEOF 2910 if ac_fn_c_try_compile "$LINENO" 2911 then : 2912 ac_lo=$ac_mid; break 2913 else case e in #( 2914 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2915 if test $ac_mid -le $ac_hi; then 2916 ac_lo= ac_hi= 2917 break 2918 fi 2919 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;; 2920 esac 2921 fi 2922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2923 done 2924 else case e in #( 2925 e) ac_lo= ac_hi= ;; 2926 esac 2927 fi 2928 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2929 esac 2930 fi 2931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2932 # Binary search between lo and hi bounds. 2933 while test "x$ac_lo" != "x$ac_hi"; do 2934 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2936 /* end confdefs.h. */ 2937 $4 2938 int 2939 main (void) 2940 { 2941 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2942 test_array [0] = 0; 2943 return test_array [0]; 2944 2945 ; 2946 return 0; 2947 } 2948 _ACEOF 2949 if ac_fn_c_try_compile "$LINENO" 2950 then : 2951 ac_hi=$ac_mid 2952 else case e in #( 2953 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;; 2954 esac 2955 fi 2956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2957 done 2958 case $ac_lo in #(( 2959 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2960 '') ac_retval=1 ;; 2961 esac 2962 else 2963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2964 /* end confdefs.h. */ 2965 $4 2966 static long int longval (void) { return $2; } 2967 static unsigned long int ulongval (void) { return $2; } 2968 #include <stdio.h> 2969 #include <stdlib.h> 2970 int 2971 main (void) 2972 { 2973 2974 FILE *f = fopen ("conftest.val", "w"); 2975 if (! f) 2976 return 1; 2977 if (($2) < 0) 2978 { 2979 long int i = longval (); 2980 if (i != ($2)) 2981 return 1; 2982 fprintf (f, "%ld", i); 2983 } 2984 else 2985 { 2986 unsigned long int i = ulongval (); 2987 if (i != ($2)) 2988 return 1; 2989 fprintf (f, "%lu", i); 2990 } 2991 /* Do not output a trailing newline, as this causes \r\n confusion 2992 on some platforms. */ 2993 return ferror (f) || fclose (f) != 0; 2994 2995 ; 2996 return 0; 2997 } 2998 _ACEOF 2999 if ac_fn_c_try_run "$LINENO" 3000 then : 3001 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 3002 else case e in #( 3003 e) ac_retval=1 ;; 3004 esac 3005 fi 3006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3007 conftest.$ac_objext conftest.beam conftest.$ac_ext 3008 rm -f conftest.val 3009 3010 fi 3011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3012 as_fn_set_status $ac_retval 3013 3014 } # ac_fn_c_compute_int 3015 3016 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 3017 # ------------------------------------------- 3018 # Tests whether TYPE exists after having included INCLUDES, setting cache 3019 # variable VAR accordingly. 3020 ac_fn_c_check_type () 3021 { 3022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3024 printf %s "checking for $2... " >&6; } 3025 if eval test \${$3+y} 3026 then : 3027 printf %s "(cached) " >&6 3028 else case e in #( 3029 e) eval "$3=no" 3030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3031 /* end confdefs.h. */ 3032 $4 3033 int 3034 main (void) 3035 { 3036 if (sizeof ($2)) 3037 return 0; 3038 ; 3039 return 0; 3040 } 3041 _ACEOF 3042 if ac_fn_c_try_compile "$LINENO" 3043 then : 3044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3045 /* end confdefs.h. */ 3046 $4 3047 int 3048 main (void) 3049 { 3050 if (sizeof (($2))) 3051 return 0; 3052 ; 3053 return 0; 3054 } 3055 _ACEOF 3056 if ac_fn_c_try_compile "$LINENO" 3057 then : 3058 3059 else case e in #( 3060 e) eval "$3=yes" ;; 3061 esac 3062 fi 3063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3064 fi 3065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3066 esac 3067 fi 3068 eval ac_res=\$$3 3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3070 printf "%s\n" "$ac_res" >&6; } 3071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3072 3073 } # ac_fn_c_check_type 3074 3075 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 3076 # ---------------------------------------------------- 3077 # Tries to find if the field MEMBER exists in type AGGR, after including 3078 # INCLUDES, setting cache variable VAR accordingly. 3079 ac_fn_c_check_member () 3080 { 3081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 3083 printf %s "checking for $2.$3... " >&6; } 3084 if eval test \${$4+y} 3085 then : 3086 printf %s "(cached) " >&6 3087 else case e in #( 3088 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3089 /* end confdefs.h. */ 3090 $5 3091 int 3092 main (void) 3093 { 3094 static $2 ac_aggr; 3095 if (ac_aggr.$3) 3096 return 0; 3097 ; 3098 return 0; 3099 } 3100 _ACEOF 3101 if ac_fn_c_try_compile "$LINENO" 3102 then : 3103 eval "$4=yes" 3104 else case e in #( 3105 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3106 /* end confdefs.h. */ 3107 $5 3108 int 3109 main (void) 3110 { 3111 static $2 ac_aggr; 3112 if (sizeof ac_aggr.$3) 3113 return 0; 3114 ; 3115 return 0; 3116 } 3117 _ACEOF 3118 if ac_fn_c_try_compile "$LINENO" 3119 then : 3120 eval "$4=yes" 3121 else case e in #( 3122 e) eval "$4=no" ;; 3123 esac 3124 fi 3125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3126 esac 3127 fi 3128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3129 esac 3130 fi 3131 eval ac_res=\$$4 3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3133 printf "%s\n" "$ac_res" >&6; } 3134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3135 3136 } # ac_fn_c_check_member 3137 ac_configure_args_raw= 3138 for ac_arg 3139 do 3140 case $ac_arg in 3141 *\'*) 3142 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3143 esac 3144 as_fn_append ac_configure_args_raw " '$ac_arg'" 3145 done 3146 3147 case $ac_configure_args_raw in 3148 *$as_nl*) 3149 ac_safe_unquote= ;; 3150 *) 3151 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 3152 ac_unsafe_a="$ac_unsafe_z#~" 3153 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 3154 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 3155 esac 3156 3157 cat >config.log <<_ACEOF 3158 This file contains any messages produced by compilers while 3159 running configure, to aid debugging if configure makes a mistake. 3160 3161 It was created by xorg-server $as_me 21.1.24, which was 3162 generated by GNU Autoconf 2.72. Invocation command line was 3163 3164 $ $0$ac_configure_args_raw 3165 3166 _ACEOF 3167 exec 5>>config.log 3168 { 3169 cat <<_ASUNAME 3170 ## --------- ## 3171 ## Platform. ## 3172 ## --------- ## 3173 3174 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3175 uname -m = `(uname -m) 2>/dev/null || echo unknown` 3176 uname -r = `(uname -r) 2>/dev/null || echo unknown` 3177 uname -s = `(uname -s) 2>/dev/null || echo unknown` 3178 uname -v = `(uname -v) 2>/dev/null || echo unknown` 3179 3180 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3181 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3182 3183 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3184 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3185 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3186 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3187 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3188 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3189 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3190 3191 _ASUNAME 3192 3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3194 for as_dir in $PATH 3195 do 3196 IFS=$as_save_IFS 3197 case $as_dir in #((( 3198 '') as_dir=./ ;; 3199 */) ;; 3200 *) as_dir=$as_dir/ ;; 3201 esac 3202 printf "%s\n" "PATH: $as_dir" 3203 done 3204 IFS=$as_save_IFS 3205 3206 } >&5 3207 3208 cat >&5 <<_ACEOF 3209 3210 3211 ## ----------- ## 3212 ## Core tests. ## 3213 ## ----------- ## 3214 3215 _ACEOF 3216 3217 3218 # Keep a trace of the command line. 3219 # Strip out --no-create and --no-recursion so they do not pile up. 3220 # Strip out --silent because we don't want to record it for future runs. 3221 # Also quote any args containing shell meta-characters. 3222 # Make two passes to allow for proper duplicate-argument suppression. 3223 ac_configure_args= 3224 ac_configure_args0= 3225 ac_configure_args1= 3226 ac_must_keep_next=false 3227 for ac_pass in 1 2 3228 do 3229 for ac_arg 3230 do 3231 case $ac_arg in 3232 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3234 | -silent | --silent | --silen | --sile | --sil) 3235 continue ;; 3236 *\'*) 3237 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3238 esac 3239 case $ac_pass in 3240 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3241 2) 3242 as_fn_append ac_configure_args1 " '$ac_arg'" 3243 if test $ac_must_keep_next = true; then 3244 ac_must_keep_next=false # Got value, back to normal. 3245 else 3246 case $ac_arg in 3247 *=* | --config-cache | -C | -disable-* | --disable-* \ 3248 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3249 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3250 | -with-* | --with-* | -without-* | --without-* | --x) 3251 case "$ac_configure_args0 " in 3252 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3253 esac 3254 ;; 3255 -* ) ac_must_keep_next=true ;; 3256 esac 3257 fi 3258 as_fn_append ac_configure_args " '$ac_arg'" 3259 ;; 3260 esac 3261 done 3262 done 3263 { ac_configure_args0=; unset ac_configure_args0;} 3264 { ac_configure_args1=; unset ac_configure_args1;} 3265 3266 # When interrupted or exit'd, cleanup temporary files, and complete 3267 # config.log. We remove comments because anyway the quotes in there 3268 # would cause problems or look ugly. 3269 # WARNING: Use '\'' to represent an apostrophe within the trap. 3270 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3271 trap 'exit_status=$? 3272 # Sanitize IFS. 3273 IFS=" "" $as_nl" 3274 # Save into config.log some information that might help in debugging. 3275 { 3276 echo 3277 3278 printf "%s\n" "## ---------------- ## 3279 ## Cache variables. ## 3280 ## ---------------- ##" 3281 echo 3282 # The following way of writing the cache mishandles newlines in values, 3283 ( 3284 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3285 eval ac_val=\$$ac_var 3286 case $ac_val in #( 3287 *${as_nl}*) 3288 case $ac_var in #( 3289 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3290 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3291 esac 3292 case $ac_var in #( 3293 _ | IFS | as_nl) ;; #( 3294 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3295 *) { eval $ac_var=; unset $ac_var;} ;; 3296 esac ;; 3297 esac 3298 done 3299 (set) 2>&1 | 3300 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3301 *${as_nl}ac_space=\ *) 3302 sed -n \ 3303 "s/'\''/'\''\\\\'\'''\''/g; 3304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3305 ;; #( 3306 *) 3307 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3308 ;; 3309 esac | 3310 sort 3311 ) 3312 echo 3313 3314 printf "%s\n" "## ----------------- ## 3315 ## Output variables. ## 3316 ## ----------------- ##" 3317 echo 3318 for ac_var in $ac_subst_vars 3319 do 3320 eval ac_val=\$$ac_var 3321 case $ac_val in 3322 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3323 esac 3324 printf "%s\n" "$ac_var='\''$ac_val'\''" 3325 done | sort 3326 echo 3327 3328 if test -n "$ac_subst_files"; then 3329 printf "%s\n" "## ------------------- ## 3330 ## File substitutions. ## 3331 ## ------------------- ##" 3332 echo 3333 for ac_var in $ac_subst_files 3334 do 3335 eval ac_val=\$$ac_var 3336 case $ac_val in 3337 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3338 esac 3339 printf "%s\n" "$ac_var='\''$ac_val'\''" 3340 done | sort 3341 echo 3342 fi 3343 3344 if test -s confdefs.h; then 3345 printf "%s\n" "## ----------- ## 3346 ## confdefs.h. ## 3347 ## ----------- ##" 3348 echo 3349 cat confdefs.h 3350 echo 3351 fi 3352 test "$ac_signal" != 0 && 3353 printf "%s\n" "$as_me: caught signal $ac_signal" 3354 printf "%s\n" "$as_me: exit $exit_status" 3355 } >&5 3356 rm -f core *.core core.conftest.* && 3357 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3358 exit $exit_status 3359 ' 0 3360 for ac_signal in 1 2 13 15; do 3361 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3362 done 3363 ac_signal=0 3364 3365 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3366 rm -f -r conftest* confdefs.h 3367 3368 printf "%s\n" "/* confdefs.h */" > confdefs.h 3369 3370 # Predefined preprocessor variables. 3371 3372 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 3373 3374 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 3375 3376 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 3377 3378 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 3379 3380 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 3381 3382 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 3383 3384 3385 # Let the site file select an alternate cache file if it wants to. 3386 # Prefer an explicitly selected file to automatically selected ones. 3387 if test -n "$CONFIG_SITE"; then 3388 ac_site_files="$CONFIG_SITE" 3389 elif test "x$prefix" != xNONE; then 3390 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 3391 else 3392 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 3393 fi 3394 3395 for ac_site_file in $ac_site_files 3396 do 3397 case $ac_site_file in #( 3398 */*) : 3399 ;; #( 3400 *) : 3401 ac_site_file=./$ac_site_file ;; 3402 esac 3403 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3405 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 3406 sed 's/^/| /' "$ac_site_file" >&5 3407 . "$ac_site_file" \ 3408 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3409 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3410 as_fn_error $? "failed to load site script $ac_site_file 3411 See 'config.log' for more details" "$LINENO" 5; } 3412 fi 3413 done 3414 3415 if test -r "$cache_file"; then 3416 # Some versions of bash will fail to source /dev/null (special files 3417 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3418 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3420 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 3421 case $cache_file in 3422 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3423 *) . "./$cache_file";; 3424 esac 3425 fi 3426 else 3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3428 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 3429 >$cache_file 3430 fi 3431 3432 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 3433 # Test code for whether the C compiler supports C89 (global declarations) 3434 ac_c_conftest_c89_globals=' 3435 /* Does the compiler advertise C89 conformance? 3436 Do not test the value of __STDC__, because some compilers set it to 0 3437 while being otherwise adequately conformant. */ 3438 #if !defined __STDC__ 3439 # error "Compiler does not advertise C89 conformance" 3440 #endif 3441 3442 #include <stddef.h> 3443 #include <stdarg.h> 3444 struct stat; 3445 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 3446 struct buf { int x; }; 3447 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 3448 static char *e (char **p, int i) 3449 { 3450 return p[i]; 3451 } 3452 static char *f (char * (*g) (char **, int), char **p, ...) 3453 { 3454 char *s; 3455 va_list v; 3456 va_start (v,p); 3457 s = g (p, va_arg (v,int)); 3458 va_end (v); 3459 return s; 3460 } 3461 3462 /* C89 style stringification. */ 3463 #define noexpand_stringify(a) #a 3464 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 3465 3466 /* C89 style token pasting. Exercises some of the corner cases that 3467 e.g. old MSVC gets wrong, but not very hard. */ 3468 #define noexpand_concat(a,b) a##b 3469 #define expand_concat(a,b) noexpand_concat(a,b) 3470 extern int vA; 3471 extern int vbee; 3472 #define aye A 3473 #define bee B 3474 int *pvA = &expand_concat(v,aye); 3475 int *pvbee = &noexpand_concat(v,bee); 3476 3477 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3478 function prototypes and stuff, but not \xHH hex character constants. 3479 These do not provoke an error unfortunately, instead are silently treated 3480 as an "x". The following induces an error, until -std is added to get 3481 proper ANSI mode. Curiously \x00 != x always comes out true, for an 3482 array size at least. It is necessary to write \x00 == 0 to get something 3483 that is true only with -std. */ 3484 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 3485 3486 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3487 inside strings and character constants. */ 3488 #define FOO(x) '\''x'\'' 3489 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 3490 3491 int test (int i, double x); 3492 struct s1 {int (*f) (int a);}; 3493 struct s2 {int (*f) (double a);}; 3494 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 3495 int, int);' 3496 3497 # Test code for whether the C compiler supports C89 (body of main). 3498 ac_c_conftest_c89_main=' 3499 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 3500 ' 3501 3502 # Test code for whether the C compiler supports C99 (global declarations) 3503 ac_c_conftest_c99_globals=' 3504 /* Does the compiler advertise C99 conformance? */ 3505 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 3506 # error "Compiler does not advertise C99 conformance" 3507 #endif 3508 3509 // See if C++-style comments work. 3510 3511 #include <stdbool.h> 3512 extern int puts (const char *); 3513 extern int printf (const char *, ...); 3514 extern int dprintf (int, const char *, ...); 3515 extern void *malloc (size_t); 3516 extern void free (void *); 3517 3518 // Check varargs macros. These examples are taken from C99 6.10.3.5. 3519 // dprintf is used instead of fprintf to avoid needing to declare 3520 // FILE and stderr. 3521 #define debug(...) dprintf (2, __VA_ARGS__) 3522 #define showlist(...) puts (#__VA_ARGS__) 3523 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3524 static void 3525 test_varargs_macros (void) 3526 { 3527 int x = 1234; 3528 int y = 5678; 3529 debug ("Flag"); 3530 debug ("X = %d\n", x); 3531 showlist (The first, second, and third items.); 3532 report (x>y, "x is %d but y is %d", x, y); 3533 } 3534 3535 // Check long long types. 3536 #define BIG64 18446744073709551615ull 3537 #define BIG32 4294967295ul 3538 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3539 #if !BIG_OK 3540 #error "your preprocessor is broken" 3541 #endif 3542 #if BIG_OK 3543 #else 3544 #error "your preprocessor is broken" 3545 #endif 3546 static long long int bignum = -9223372036854775807LL; 3547 static unsigned long long int ubignum = BIG64; 3548 3549 struct incomplete_array 3550 { 3551 int datasize; 3552 double data[]; 3553 }; 3554 3555 struct named_init { 3556 int number; 3557 const wchar_t *name; 3558 double average; 3559 }; 3560 3561 typedef const char *ccp; 3562 3563 static inline int 3564 test_restrict (ccp restrict text) 3565 { 3566 // Iterate through items via the restricted pointer. 3567 // Also check for declarations in for loops. 3568 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 3569 continue; 3570 return 0; 3571 } 3572 3573 // Check varargs and va_copy. 3574 static bool 3575 test_varargs (const char *format, ...) 3576 { 3577 va_list args; 3578 va_start (args, format); 3579 va_list args_copy; 3580 va_copy (args_copy, args); 3581 3582 const char *str = ""; 3583 int number = 0; 3584 float fnumber = 0; 3585 3586 while (*format) 3587 { 3588 switch (*format++) 3589 { 3590 case '\''s'\'': // string 3591 str = va_arg (args_copy, const char *); 3592 break; 3593 case '\''d'\'': // int 3594 number = va_arg (args_copy, int); 3595 break; 3596 case '\''f'\'': // float 3597 fnumber = va_arg (args_copy, double); 3598 break; 3599 default: 3600 break; 3601 } 3602 } 3603 va_end (args_copy); 3604 va_end (args); 3605 3606 return *str && number && fnumber; 3607 } 3608 ' 3609 3610 # Test code for whether the C compiler supports C99 (body of main). 3611 ac_c_conftest_c99_main=' 3612 // Check bool. 3613 _Bool success = false; 3614 success |= (argc != 0); 3615 3616 // Check restrict. 3617 if (test_restrict ("String literal") == 0) 3618 success = true; 3619 char *restrict newvar = "Another string"; 3620 3621 // Check varargs. 3622 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 3623 test_varargs_macros (); 3624 3625 // Check flexible array members. 3626 struct incomplete_array *ia = 3627 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3628 ia->datasize = 10; 3629 for (int i = 0; i < ia->datasize; ++i) 3630 ia->data[i] = i * 1.234; 3631 // Work around memory leak warnings. 3632 free (ia); 3633 3634 // Check named initializers. 3635 struct named_init ni = { 3636 .number = 34, 3637 .name = L"Test wide string", 3638 .average = 543.34343, 3639 }; 3640 3641 ni.number = 58; 3642 3643 int dynamic_array[ni.number]; 3644 dynamic_array[0] = argv[0][0]; 3645 dynamic_array[ni.number - 1] = 543; 3646 3647 // work around unused variable warnings 3648 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 3649 || dynamic_array[ni.number - 1] != 543); 3650 ' 3651 3652 # Test code for whether the C compiler supports C11 (global declarations) 3653 ac_c_conftest_c11_globals=' 3654 /* Does the compiler advertise C11 conformance? */ 3655 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 3656 # error "Compiler does not advertise C11 conformance" 3657 #endif 3658 3659 // Check _Alignas. 3660 char _Alignas (double) aligned_as_double; 3661 char _Alignas (0) no_special_alignment; 3662 extern char aligned_as_int; 3663 char _Alignas (0) _Alignas (int) aligned_as_int; 3664 3665 // Check _Alignof. 3666 enum 3667 { 3668 int_alignment = _Alignof (int), 3669 int_array_alignment = _Alignof (int[100]), 3670 char_alignment = _Alignof (char) 3671 }; 3672 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 3673 3674 // Check _Noreturn. 3675 int _Noreturn does_not_return (void) { for (;;) continue; } 3676 3677 // Check _Static_assert. 3678 struct test_static_assert 3679 { 3680 int x; 3681 _Static_assert (sizeof (int) <= sizeof (long int), 3682 "_Static_assert does not work in struct"); 3683 long int y; 3684 }; 3685 3686 // Check UTF-8 literals. 3687 #define u8 syntax error! 3688 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 3689 3690 // Check duplicate typedefs. 3691 typedef long *long_ptr; 3692 typedef long int *long_ptr; 3693 typedef long_ptr long_ptr; 3694 3695 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 3696 struct anonymous 3697 { 3698 union { 3699 struct { int i; int j; }; 3700 struct { int k; long int l; } w; 3701 }; 3702 int m; 3703 } v1; 3704 ' 3705 3706 # Test code for whether the C compiler supports C11 (body of main). 3707 ac_c_conftest_c11_main=' 3708 _Static_assert ((offsetof (struct anonymous, i) 3709 == offsetof (struct anonymous, w.k)), 3710 "Anonymous union alignment botch"); 3711 v1.i = 2; 3712 v1.w.k = 5; 3713 ok |= v1.i != 5; 3714 ' 3715 3716 # Test code for whether the C compiler supports C11 (complete). 3717 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 3718 ${ac_c_conftest_c99_globals} 3719 ${ac_c_conftest_c11_globals} 3720 3721 int 3722 main (int argc, char **argv) 3723 { 3724 int ok = 0; 3725 ${ac_c_conftest_c89_main} 3726 ${ac_c_conftest_c99_main} 3727 ${ac_c_conftest_c11_main} 3728 return ok; 3729 } 3730 " 3731 3732 # Test code for whether the C compiler supports C99 (complete). 3733 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 3734 ${ac_c_conftest_c99_globals} 3735 3736 int 3737 main (int argc, char **argv) 3738 { 3739 int ok = 0; 3740 ${ac_c_conftest_c89_main} 3741 ${ac_c_conftest_c99_main} 3742 return ok; 3743 } 3744 " 3745 3746 # Test code for whether the C compiler supports C89 (complete). 3747 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 3748 3749 int 3750 main (int argc, char **argv) 3751 { 3752 int ok = 0; 3753 ${ac_c_conftest_c89_main} 3754 return ok; 3755 } 3756 " 3757 3758 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 3759 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 3760 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 3761 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 3762 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 3763 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 3764 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 3765 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 3766 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 3767 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 3768 3769 # Auxiliary files required by this configure script. 3770 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 3771 3772 # Locations in which to look for auxiliary files. 3773 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 3774 3775 # Search for a directory containing all of the required auxiliary files, 3776 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 3777 # If we don't find one directory that contains all the files we need, 3778 # we report the set of missing files from the *first* directory in 3779 # $ac_aux_dir_candidates and give up. 3780 ac_missing_aux_files="" 3781 ac_first_candidate=: 3782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3784 as_found=false 3785 for as_dir in $ac_aux_dir_candidates 3786 do 3787 IFS=$as_save_IFS 3788 case $as_dir in #((( 3789 '') as_dir=./ ;; 3790 */) ;; 3791 *) as_dir=$as_dir/ ;; 3792 esac 3793 as_found=: 3794 3795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 3796 ac_aux_dir_found=yes 3797 ac_install_sh= 3798 for ac_aux in $ac_aux_files 3799 do 3800 # As a special case, if "install-sh" is required, that requirement 3801 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 3802 # and $ac_install_sh is set appropriately for whichever one is found. 3803 if test x"$ac_aux" = x"install-sh" 3804 then 3805 if test -f "${as_dir}install-sh"; then 3806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 3807 ac_install_sh="${as_dir}install-sh -c" 3808 elif test -f "${as_dir}install.sh"; then 3809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 3810 ac_install_sh="${as_dir}install.sh -c" 3811 elif test -f "${as_dir}shtool"; then 3812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3813 ac_install_sh="${as_dir}shtool install -c" 3814 else 3815 ac_aux_dir_found=no 3816 if $ac_first_candidate; then 3817 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3818 else 3819 break 3820 fi 3821 fi 3822 else 3823 if test -f "${as_dir}${ac_aux}"; then 3824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3825 else 3826 ac_aux_dir_found=no 3827 if $ac_first_candidate; then 3828 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3829 else 3830 break 3831 fi 3832 fi 3833 fi 3834 done 3835 if test "$ac_aux_dir_found" = yes; then 3836 ac_aux_dir="$as_dir" 3837 break 3838 fi 3839 ac_first_candidate=false 3840 3841 as_found=false 3842 done 3843 IFS=$as_save_IFS 3844 if $as_found 3845 then : 3846 3847 else case e in #( 3848 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 3849 esac 3850 fi 3851 3852 3853 # These three variables are undocumented and unsupported, 3854 # and are intended to be withdrawn in a future Autoconf release. 3855 # They can cause serious problems if a builder's source tree is in a directory 3856 # whose full name contains unusual characters. 3857 if test -f "${ac_aux_dir}config.guess"; then 3858 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3859 fi 3860 if test -f "${ac_aux_dir}config.sub"; then 3861 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3862 fi 3863 if test -f "$ac_aux_dir/configure"; then 3864 ac_configure="$SHELL ${ac_aux_dir}configure" 3865 fi 3866 3867 # Check that the precious variables saved in the cache have kept the same 3868 # value. 3869 ac_cache_corrupted=false 3870 for ac_var in $ac_precious_vars; do 3871 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3872 eval ac_new_set=\$ac_env_${ac_var}_set 3873 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3874 eval ac_new_val=\$ac_env_${ac_var}_value 3875 case $ac_old_set,$ac_new_set in 3876 set,) 3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 3878 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 3879 ac_cache_corrupted=: ;; 3880 ,set) 3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 3882 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 3883 ac_cache_corrupted=: ;; 3884 ,);; 3885 *) 3886 if test "x$ac_old_val" != "x$ac_new_val"; then 3887 # differences in whitespace do not lead to failure. 3888 ac_old_val_w=`echo x $ac_old_val` 3889 ac_new_val_w=`echo x $ac_new_val` 3890 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 3892 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 3893 ac_cache_corrupted=: 3894 else 3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 3896 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 3897 eval $ac_var=\$ac_old_val 3898 fi 3899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 3900 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 3902 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 3903 fi;; 3904 esac 3905 # Pass precious variables to config.status. 3906 if test "$ac_new_set" = set; then 3907 case $ac_new_val in 3908 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3909 *) ac_arg=$ac_var=$ac_new_val ;; 3910 esac 3911 case " $ac_configure_args " in 3912 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3913 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3914 esac 3915 fi 3916 done 3917 if $ac_cache_corrupted; then 3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3919 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3921 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3922 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 3923 and start over" "$LINENO" 5 3924 fi 3925 ## -------------------- ## 3926 ## Main body of script. ## 3927 ## -------------------- ## 3928 3929 ac_ext=c 3930 ac_cpp='$CPP $CPPFLAGS' 3931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3933 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3934 3935 3936 RELEASE_DATE="2026-07-08" 3937 RELEASE_NAME="Caramel Ice Cream" 3938 3939 3940 am__api_version='1.18' 3941 3942 3943 3944 # Find a good install program. We prefer a C program (faster), 3945 # so one script is as good as another. But avoid the broken or 3946 # incompatible versions: 3947 # SysV /etc/install, /usr/sbin/install 3948 # SunOS /usr/etc/install 3949 # IRIX /sbin/install 3950 # AIX /bin/install 3951 # AmigaOS /C/install, which installs bootblocks on floppy discs 3952 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3953 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3954 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3955 # OS/2's system install, which has a completely different semantic 3956 # ./install, which can be erroneously created by make from ./install.sh. 3957 # Reject install programs that cannot install multiple files. 3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3959 printf %s "checking for a BSD-compatible install... " >&6; } 3960 if test -z "$INSTALL"; then 3961 if test ${ac_cv_path_install+y} 3962 then : 3963 printf %s "(cached) " >&6 3964 else case e in #( 3965 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3966 for as_dir in $PATH 3967 do 3968 IFS=$as_save_IFS 3969 case $as_dir in #((( 3970 '') as_dir=./ ;; 3971 */) ;; 3972 *) as_dir=$as_dir/ ;; 3973 esac 3974 # Account for fact that we put trailing slashes in our PATH walk. 3975 case $as_dir in #(( 3976 ./ | /[cC]/* | \ 3977 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3978 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3979 /usr/ucb/* ) ;; 3980 *) 3981 # OSF1 and SCO ODT 3.0 have their own names for install. 3982 # Don't use installbsd from OSF since it installs stuff as root 3983 # by default. 3984 for ac_prog in ginstall scoinst install; do 3985 for ac_exec_ext in '' $ac_executable_extensions; do 3986 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3987 if test $ac_prog = install && 3988 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3989 # AIX install. It has an incompatible calling convention. 3990 : 3991 elif test $ac_prog = install && 3992 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3993 # program-specific install script used by HP pwplus--don't use. 3994 : 3995 else 3996 rm -rf conftest.one conftest.two conftest.dir 3997 echo one > conftest.one 3998 echo two > conftest.two 3999 mkdir conftest.dir 4000 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4001 test -s conftest.one && test -s conftest.two && 4002 test -s conftest.dir/conftest.one && 4003 test -s conftest.dir/conftest.two 4004 then 4005 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4006 break 3 4007 fi 4008 fi 4009 fi 4010 done 4011 done 4012 ;; 4013 esac 4014 4015 done 4016 IFS=$as_save_IFS 4017 4018 rm -rf conftest.one conftest.two conftest.dir 4019 ;; 4020 esac 4021 fi 4022 if test ${ac_cv_path_install+y}; then 4023 INSTALL=$ac_cv_path_install 4024 else 4025 # As a last resort, use the slow shell script. Don't cache a 4026 # value for INSTALL within a source directory, because that will 4027 # break other packages using the cache if that directory is 4028 # removed, or if the value is a relative name. 4029 INSTALL=$ac_install_sh 4030 fi 4031 fi 4032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4033 printf "%s\n" "$INSTALL" >&6; } 4034 4035 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4036 # It thinks the first close brace ends the variable substitution. 4037 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4038 4039 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4040 4041 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4042 4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 4044 printf %s "checking whether sleep supports fractional seconds... " >&6; } 4045 if test ${am_cv_sleep_fractional_seconds+y} 4046 then : 4047 printf %s "(cached) " >&6 4048 else case e in #( 4049 e) if sleep 0.001 2>/dev/null 4050 then : 4051 am_cv_sleep_fractional_seconds=yes 4052 else case e in #( 4053 e) am_cv_sleep_fractional_seconds=no ;; 4054 esac 4055 fi 4056 ;; 4057 esac 4058 fi 4059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 4060 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 4061 4062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 4063 printf %s "checking filesystem timestamp resolution... " >&6; } 4064 if test ${am_cv_filesystem_timestamp_resolution+y} 4065 then : 4066 printf %s "(cached) " >&6 4067 else case e in #( 4068 e) # Default to the worst case. 4069 am_cv_filesystem_timestamp_resolution=2 4070 4071 # Only try to go finer than 1 sec if sleep can do it. 4072 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 4073 # - 1 sec is not much of a win compared to 2 sec, and 4074 # - it takes 2 seconds to perform the test whether 1 sec works. 4075 # 4076 # Instead, just use the default 2s on platforms that have 1s resolution, 4077 # accept the extra 1s delay when using $sleep in the Automake tests, in 4078 # exchange for not incurring the 2s delay for running the test for all 4079 # packages. 4080 # 4081 am_try_resolutions= 4082 if test "$am_cv_sleep_fractional_seconds" = yes; then 4083 # Even a millisecond often causes a bunch of false positives, 4084 # so just try a hundredth of a second. The time saved between .001 and 4085 # .01 is not terribly consequential. 4086 am_try_resolutions="0.01 0.1 $am_try_resolutions" 4087 fi 4088 4089 # In order to catch current-generation FAT out, we must *modify* files 4090 # that already exist; the *creation* timestamp is finer. Use names 4091 # that make ls -t sort them differently when they have equal 4092 # timestamps than when they have distinct timestamps, keeping 4093 # in mind that ls -t prints the *newest* file first. 4094 rm -f conftest.ts? 4095 : > conftest.ts1 4096 : > conftest.ts2 4097 : > conftest.ts3 4098 4099 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 4100 # clobber the current shell's arguments. (Outer-level square brackets 4101 # are removed by m4; they're present so that m4 does not expand 4102 # <dollar><star>; be careful, easy to get confused.) 4103 if ( 4104 set X `ls -t conftest.ts[12]` && 4105 { 4106 test "$*" != "X conftest.ts1 conftest.ts2" || 4107 test "$*" != "X conftest.ts2 conftest.ts1"; 4108 } 4109 ); then :; else 4110 # If neither matched, then we have a broken ls. This can happen 4111 # if, for instance, CONFIG_SHELL is bash and it inherits a 4112 # broken ls alias from the environment. This has actually 4113 # happened. Such a system could not be considered "sane". 4114 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 4115 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4116 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4117 as_fn_error $? "ls -t produces unexpected output. 4118 Make sure there is not a broken ls alias in your environment. 4119 See 'config.log' for more details" "$LINENO" 5; } 4120 fi 4121 4122 for am_try_res in $am_try_resolutions; do 4123 # Any one fine-grained sleep might happen to cross the boundary 4124 # between two values of a coarser actual resolution, but if we do 4125 # two fine-grained sleeps in a row, at least one of them will fall 4126 # entirely within a coarse interval. 4127 echo alpha > conftest.ts1 4128 sleep $am_try_res 4129 echo beta > conftest.ts2 4130 sleep $am_try_res 4131 echo gamma > conftest.ts3 4132 4133 # We assume that 'ls -t' will make use of high-resolution 4134 # timestamps if the operating system supports them at all. 4135 if (set X `ls -t conftest.ts?` && 4136 test "$2" = conftest.ts3 && 4137 test "$3" = conftest.ts2 && 4138 test "$4" = conftest.ts1); then 4139 # 4140 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 4141 # because we don't need to test make. 4142 make_ok=true 4143 if test $am_try_res != 1; then 4144 # But if we've succeeded so far with a subsecond resolution, we 4145 # have one more thing to check: make. It can happen that 4146 # everything else supports the subsecond mtimes, but make doesn't; 4147 # notably on macOS, which ships make 3.81 from 2006 (the last one 4148 # released under GPLv2). https://bugs.gnu.org/68808 4149 # 4150 # We test $MAKE if it is defined in the environment, else "make". 4151 # It might get overridden later, but our hope is that in practice 4152 # it does not matter: it is the system "make" which is (by far) 4153 # the most likely to be broken, whereas if the user overrides it, 4154 # probably they did so with a better, or at least not worse, make. 4155 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 4156 # 4157 # Create a Makefile (real tab character here): 4158 rm -f conftest.mk 4159 echo 'conftest.ts1: conftest.ts2' >conftest.mk 4160 echo ' touch conftest.ts2' >>conftest.mk 4161 # 4162 # Now, running 4163 # touch conftest.ts1; touch conftest.ts2; make 4164 # should touch ts1 because ts2 is newer. This could happen by luck, 4165 # but most often, it will fail if make's support is insufficient. So 4166 # test for several consecutive successes. 4167 # 4168 # (We reuse conftest.ts[12] because we still want to modify existing 4169 # files, not create new ones, per above.) 4170 n=0 4171 make=${MAKE-make} 4172 until test $n -eq 3; do 4173 echo one > conftest.ts1 4174 sleep $am_try_res 4175 echo two > conftest.ts2 # ts2 should now be newer than ts1 4176 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 4177 make_ok=false 4178 break # out of $n loop 4179 fi 4180 n=`expr $n + 1` 4181 done 4182 fi 4183 # 4184 if $make_ok; then 4185 # Everything we know to check worked out, so call this resolution good. 4186 am_cv_filesystem_timestamp_resolution=$am_try_res 4187 break # out of $am_try_res loop 4188 fi 4189 # Otherwise, we'll go on to check the next resolution. 4190 fi 4191 done 4192 rm -f conftest.ts? 4193 # (end _am_filesystem_timestamp_resolution) 4194 ;; 4195 esac 4196 fi 4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 4198 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 4199 4200 # This check should not be cached, as it may vary across builds of 4201 # different projects. 4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4203 printf %s "checking whether build environment is sane... " >&6; } 4204 # Reject unsafe characters in $srcdir or the absolute working directory 4205 # name. Accept space and tab only in the latter. 4206 am_lf=' 4207 ' 4208 case `pwd` in 4209 *[\\\"\#\$\&\'\`$am_lf]*) 4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4211 printf "%s\n" "no" >&6; } 4212 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4213 esac 4214 case $srcdir in 4215 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4217 printf "%s\n" "no" >&6; } 4218 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4219 esac 4220 4221 # Do 'set' in a subshell so we don't clobber the current shell's 4222 # arguments. Must try -L first in case configure is actually a 4223 # symlink; some systems play weird games with the mod time of symlinks 4224 # (eg FreeBSD returns the mod time of the symlink's containing 4225 # directory). 4226 am_build_env_is_sane=no 4227 am_has_slept=no 4228 rm -f conftest.file 4229 for am_try in 1 2; do 4230 echo "timestamp, slept: $am_has_slept" > conftest.file 4231 if ( 4232 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4233 if test "$*" = "X"; then 4234 # -L didn't work. 4235 set X `ls -t "$srcdir/configure" conftest.file` 4236 fi 4237 test "$2" = conftest.file 4238 ); then 4239 am_build_env_is_sane=yes 4240 break 4241 fi 4242 # Just in case. 4243 sleep "$am_cv_filesystem_timestamp_resolution" 4244 am_has_slept=yes 4245 done 4246 4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 4248 printf "%s\n" "$am_build_env_is_sane" >&6; } 4249 if test "$am_build_env_is_sane" = no; then 4250 as_fn_error $? "newly created file is older than distributed files! 4251 Check your system clock" "$LINENO" 5 4252 fi 4253 4254 # If we didn't sleep, we still need to ensure time stamps of config.status and 4255 # generated files are strictly newer. 4256 am_sleep_pid= 4257 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 4258 then : 4259 4260 else case e in #( 4261 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 4262 am_sleep_pid=$! 4263 ;; 4264 esac 4265 fi 4266 4267 rm -f conftest.file 4268 4269 test "$program_prefix" != NONE && 4270 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4271 # Use a double $ so make ignores it. 4272 test "$program_suffix" != NONE && 4273 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4274 # Double any \ or $. 4275 # By default was 's,x,x', remove it if useless. 4276 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4277 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4278 4279 4280 # Expand $ac_aux_dir to an absolute path. 4281 am_aux_dir=`cd "$ac_aux_dir" && pwd` 4282 4283 4284 if test x"${MISSING+set}" != xset; then 4285 MISSING="\${SHELL} '$am_aux_dir/missing'" 4286 fi 4287 # Use eval to expand $SHELL 4288 if eval "$MISSING --is-lightweight"; then 4289 am_missing_run="$MISSING " 4290 else 4291 am_missing_run= 4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4293 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4294 fi 4295 4296 if test x"${install_sh+set}" != xset; then 4297 case $am_aux_dir in 4298 *\ * | *\ *) 4299 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4300 *) 4301 install_sh="\${SHELL} $am_aux_dir/install-sh" 4302 esac 4303 fi 4304 4305 # Installed binaries are usually stripped using 'strip' when the user 4306 # run "make install-strip". However 'strip' might not be the right 4307 # tool to use in cross-compilation environments, therefore Automake 4308 # will honor the 'STRIP' environment variable to overrule this program. 4309 if test "$cross_compiling" != no; then 4310 if test -n "$ac_tool_prefix"; then 4311 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4312 set dummy ${ac_tool_prefix}strip; ac_word=$2 4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4314 printf %s "checking for $ac_word... " >&6; } 4315 if test ${ac_cv_prog_STRIP+y} 4316 then : 4317 printf %s "(cached) " >&6 4318 else case e in #( 4319 e) if test -n "$STRIP"; then 4320 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4321 else 4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4323 for as_dir in $PATH 4324 do 4325 IFS=$as_save_IFS 4326 case $as_dir in #((( 4327 '') as_dir=./ ;; 4328 */) ;; 4329 *) as_dir=$as_dir/ ;; 4330 esac 4331 for ac_exec_ext in '' $ac_executable_extensions; do 4332 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4333 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4335 break 2 4336 fi 4337 done 4338 done 4339 IFS=$as_save_IFS 4340 4341 fi ;; 4342 esac 4343 fi 4344 STRIP=$ac_cv_prog_STRIP 4345 if test -n "$STRIP"; then 4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4347 printf "%s\n" "$STRIP" >&6; } 4348 else 4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4350 printf "%s\n" "no" >&6; } 4351 fi 4352 4353 4354 fi 4355 if test -z "$ac_cv_prog_STRIP"; then 4356 ac_ct_STRIP=$STRIP 4357 # Extract the first word of "strip", so it can be a program name with args. 4358 set dummy strip; ac_word=$2 4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4360 printf %s "checking for $ac_word... " >&6; } 4361 if test ${ac_cv_prog_ac_ct_STRIP+y} 4362 then : 4363 printf %s "(cached) " >&6 4364 else case e in #( 4365 e) if test -n "$ac_ct_STRIP"; then 4366 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4367 else 4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4369 for as_dir in $PATH 4370 do 4371 IFS=$as_save_IFS 4372 case $as_dir in #((( 4373 '') as_dir=./ ;; 4374 */) ;; 4375 *) as_dir=$as_dir/ ;; 4376 esac 4377 for ac_exec_ext in '' $ac_executable_extensions; do 4378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4379 ac_cv_prog_ac_ct_STRIP="strip" 4380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4381 break 2 4382 fi 4383 done 4384 done 4385 IFS=$as_save_IFS 4386 4387 fi ;; 4388 esac 4389 fi 4390 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4391 if test -n "$ac_ct_STRIP"; then 4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4393 printf "%s\n" "$ac_ct_STRIP" >&6; } 4394 else 4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4396 printf "%s\n" "no" >&6; } 4397 fi 4398 4399 if test "x$ac_ct_STRIP" = x; then 4400 STRIP=":" 4401 else 4402 case $cross_compiling:$ac_tool_warned in 4403 yes:) 4404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4405 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4406 ac_tool_warned=yes ;; 4407 esac 4408 STRIP=$ac_ct_STRIP 4409 fi 4410 else 4411 STRIP="$ac_cv_prog_STRIP" 4412 fi 4413 4414 fi 4415 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4416 4417 4418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4419 printf %s "checking for a race-free mkdir -p... " >&6; } 4420 if test -z "$MKDIR_P"; then 4421 if test ${ac_cv_path_mkdir+y} 4422 then : 4423 printf %s "(cached) " >&6 4424 else case e in #( 4425 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4426 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4427 do 4428 IFS=$as_save_IFS 4429 case $as_dir in #((( 4430 '') as_dir=./ ;; 4431 */) ;; 4432 *) as_dir=$as_dir/ ;; 4433 esac 4434 for ac_prog in mkdir gmkdir; do 4435 for ac_exec_ext in '' $ac_executable_extensions; do 4436 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4437 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4438 'mkdir ('*'coreutils) '* | \ 4439 *'BusyBox '* | \ 4440 'mkdir (fileutils) '4.1*) 4441 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4442 break 3;; 4443 esac 4444 done 4445 done 4446 done 4447 IFS=$as_save_IFS 4448 ;; 4449 esac 4450 fi 4451 4452 test -d ./--version && rmdir ./--version 4453 if test ${ac_cv_path_mkdir+y}; then 4454 MKDIR_P="$ac_cv_path_mkdir -p" 4455 else 4456 # As a last resort, use plain mkdir -p, 4457 # in the hope it doesn't have the bugs of ancient mkdir. 4458 MKDIR_P='mkdir -p' 4459 fi 4460 fi 4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4462 printf "%s\n" "$MKDIR_P" >&6; } 4463 4464 for ac_prog in gawk mawk nawk awk 4465 do 4466 # Extract the first word of "$ac_prog", so it can be a program name with args. 4467 set dummy $ac_prog; ac_word=$2 4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4469 printf %s "checking for $ac_word... " >&6; } 4470 if test ${ac_cv_prog_AWK+y} 4471 then : 4472 printf %s "(cached) " >&6 4473 else case e in #( 4474 e) if test -n "$AWK"; then 4475 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4476 else 4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4478 for as_dir in $PATH 4479 do 4480 IFS=$as_save_IFS 4481 case $as_dir in #((( 4482 '') as_dir=./ ;; 4483 */) ;; 4484 *) as_dir=$as_dir/ ;; 4485 esac 4486 for ac_exec_ext in '' $ac_executable_extensions; do 4487 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4488 ac_cv_prog_AWK="$ac_prog" 4489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4490 break 2 4491 fi 4492 done 4493 done 4494 IFS=$as_save_IFS 4495 4496 fi ;; 4497 esac 4498 fi 4499 AWK=$ac_cv_prog_AWK 4500 if test -n "$AWK"; then 4501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4502 printf "%s\n" "$AWK" >&6; } 4503 else 4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4505 printf "%s\n" "no" >&6; } 4506 fi 4507 4508 4509 test -n "$AWK" && break 4510 done 4511 4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4513 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4514 set x ${MAKE-make} 4515 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4516 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4517 then : 4518 printf %s "(cached) " >&6 4519 else case e in #( 4520 e) cat >conftest.make <<\_ACEOF 4521 SHELL = /bin/sh 4522 all: 4523 @echo '@@@%%%=$(MAKE)=@@@%%%' 4524 _ACEOF 4525 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4526 case `${MAKE-make} -f conftest.make 2>/dev/null` in 4527 *@@@%%%=?*=@@@%%%*) 4528 eval ac_cv_prog_make_${ac_make}_set=yes;; 4529 *) 4530 eval ac_cv_prog_make_${ac_make}_set=no;; 4531 esac 4532 rm -f conftest.make ;; 4533 esac 4534 fi 4535 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4537 printf "%s\n" "yes" >&6; } 4538 SET_MAKE= 4539 else 4540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4541 printf "%s\n" "no" >&6; } 4542 SET_MAKE="MAKE=${MAKE-make}" 4543 fi 4544 4545 rm -rf .tst 2>/dev/null 4546 mkdir .tst 2>/dev/null 4547 if test -d .tst; then 4548 am__leading_dot=. 4549 else 4550 am__leading_dot=_ 4551 fi 4552 rmdir .tst 2>/dev/null 4553 4554 AM_DEFAULT_VERBOSITY=1 4555 # Check whether --enable-silent-rules was given. 4556 if test ${enable_silent_rules+y} 4557 then : 4558 enableval=$enable_silent_rules; 4559 fi 4560 4561 am_make=${MAKE-make} 4562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4563 printf %s "checking whether $am_make supports nested variables... " >&6; } 4564 if test ${am_cv_make_support_nested_variables+y} 4565 then : 4566 printf %s "(cached) " >&6 4567 else case e in #( 4568 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4569 BAR0=false 4570 BAR1=true 4571 V=1 4572 am__doit: 4573 @$(TRUE) 4574 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4575 am_cv_make_support_nested_variables=yes 4576 else 4577 am_cv_make_support_nested_variables=no 4578 fi ;; 4579 esac 4580 fi 4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4582 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4583 AM_BACKSLASH='\' 4584 4585 am__rm_f_notfound= 4586 if (rm -f && rm -fr && rm -rf) 2>/dev/null 4587 then : 4588 4589 else case e in #( 4590 e) am__rm_f_notfound='""' ;; 4591 esac 4592 fi 4593 4594 4595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 4596 printf %s "checking xargs -n works... " >&6; } 4597 if test ${am_cv_xargs_n_works+y} 4598 then : 4599 printf %s "(cached) " >&6 4600 else case e in #( 4601 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 4602 3" 4603 then : 4604 am_cv_xargs_n_works=yes 4605 else case e in #( 4606 e) am_cv_xargs_n_works=no ;; 4607 esac 4608 fi ;; 4609 esac 4610 fi 4611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 4612 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 4613 if test "$am_cv_xargs_n_works" = yes 4614 then : 4615 am__xargs_n='xargs -n' 4616 else case e in #( 4617 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 4618 ;; 4619 esac 4620 fi 4621 4622 if test "`cd $srcdir && pwd`" != "`pwd`"; then 4623 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4624 # is not polluted with repeated "-I." 4625 am__isrc=' -I$(srcdir)' 4626 # test to see if srcdir already configured 4627 if test -f $srcdir/config.status; then 4628 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4629 fi 4630 fi 4631 4632 # test whether we have cygpath 4633 if test -z "$CYGPATH_W"; then 4634 if (cygpath --version) >/dev/null 2>/dev/null; then 4635 CYGPATH_W='cygpath -w' 4636 else 4637 CYGPATH_W=echo 4638 fi 4639 fi 4640 4641 4642 # Define the identity of the package. 4643 PACKAGE='xorg-server' 4644 VERSION='21.1.24' 4645 4646 4647 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4648 4649 4650 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4651 4652 # Some tools Automake needs. 4653 4654 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4655 4656 4657 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4658 4659 4660 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4661 4662 4663 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4664 4665 4666 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4667 4668 # For better backward compatibility. To be removed once Automake 1.9.x 4669 # dies out for good. For more background, see: 4670 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4671 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4672 mkdir_p='$(MKDIR_P)' 4673 4674 # We need awk for the "check" target (and possibly the TAP driver). The 4675 # system "awk" is bad on some platforms. 4676 # Always define AMTAR for backward compatibility. Yes, it's still used 4677 # in the wild :-( We should find a proper way to deprecate it ... 4678 AMTAR='$${TAR-tar}' 4679 4680 4681 # We'll loop over all known methods to create a tar archive until one works. 4682 _am_tools='gnutar plaintar pax cpio none' 4683 4684 # The POSIX 1988 'ustar' format is defined with fixed-size fields. 4685 # There is notably a 21 bits limit for the UID and the GID. In fact, 4686 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 4687 # and bug#13588). 4688 am_max_uid=2097151 # 2^21 - 1 4689 am_max_gid=$am_max_uid 4690 # The $UID and $GID variables are not portable, so we need to resort 4691 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 4692 # below are definitely unexpected, so allow the users to see them 4693 # (that is, avoid stderr redirection). 4694 am_uid=`id -u || echo unknown` 4695 am_gid=`id -g || echo unknown` 4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 4697 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 4698 if test x$am_uid = xunknown; then 4699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5 4700 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;} 4701 elif test $am_uid -le $am_max_uid; then 4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4703 printf "%s\n" "yes" >&6; } 4704 else 4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4706 printf "%s\n" "no" >&6; } 4707 _am_tools=none 4708 fi 4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 4710 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 4711 if test x$gm_gid = xunknown; then 4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5 4713 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;} 4714 elif test $am_gid -le $am_max_gid; then 4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4716 printf "%s\n" "yes" >&6; } 4717 else 4718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4719 printf "%s\n" "no" >&6; } 4720 _am_tools=none 4721 fi 4722 4723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 4724 printf %s "checking how to create a ustar tar archive... " >&6; } 4725 4726 # Go ahead even if we have the value already cached. We do so because we 4727 # need to set the values for the 'am__tar' and 'am__untar' variables. 4728 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 4729 4730 for _am_tool in $_am_tools; do 4731 case $_am_tool in 4732 gnutar) 4733 for _am_tar in tar gnutar gtar; do 4734 { echo "$as_me:$LINENO: $_am_tar --version" >&5 4735 ($_am_tar --version) >&5 2>&5 4736 ac_status=$? 4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4738 (exit $ac_status); } && break 4739 done 4740 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 4741 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 4742 am__untar="$_am_tar -xf -" 4743 ;; 4744 plaintar) 4745 # Must skip GNU tar: if it does not support --format= it doesn't create 4746 # ustar tarball either. 4747 (tar --version) >/dev/null 2>&1 && continue 4748 am__tar='tar chf - "$$tardir"' 4749 am__tar_='tar chf - "$tardir"' 4750 am__untar='tar xf -' 4751 ;; 4752 pax) 4753 am__tar='pax -L -x ustar -w "$$tardir"' 4754 am__tar_='pax -L -x ustar -w "$tardir"' 4755 am__untar='pax -r' 4756 ;; 4757 cpio) 4758 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 4759 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 4760 am__untar='cpio -i -H ustar -d' 4761 ;; 4762 none) 4763 am__tar=false 4764 am__tar_=false 4765 am__untar=false 4766 ;; 4767 esac 4768 4769 # If the value was cached, stop now. We just wanted to have am__tar 4770 # and am__untar set. 4771 test -n "${am_cv_prog_tar_ustar}" && break 4772 4773 # tar/untar a dummy directory, and stop if the command works. 4774 rm -rf conftest.dir 4775 mkdir conftest.dir 4776 echo GrepMe > conftest.dir/file 4777 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 4778 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 4779 ac_status=$? 4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4781 (exit $ac_status); } 4782 rm -rf conftest.dir 4783 if test -s conftest.tar; then 4784 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 4785 ($am__untar <conftest.tar) >&5 2>&5 4786 ac_status=$? 4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4788 (exit $ac_status); } 4789 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 4790 (cat conftest.dir/file) >&5 2>&5 4791 ac_status=$? 4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4793 (exit $ac_status); } 4794 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 4795 fi 4796 done 4797 rm -rf conftest.dir 4798 4799 if test ${am_cv_prog_tar_ustar+y} 4800 then : 4801 printf %s "(cached) " >&6 4802 else case e in #( 4803 e) am_cv_prog_tar_ustar=$_am_tool ;; 4804 esac 4805 fi 4806 4807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 4808 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; } 4809 4810 4811 4812 4813 4814 # Variables for tags utilities; see am/tags.am 4815 if test -z "$CTAGS"; then 4816 CTAGS=ctags 4817 fi 4818 4819 if test -z "$ETAGS"; then 4820 ETAGS=etags 4821 fi 4822 4823 if test -z "$CSCOPE"; then 4824 CSCOPE=cscope 4825 fi 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 DEPDIR="${am__leading_dot}deps" 4843 4844 ac_config_commands="$ac_config_commands depfiles" 4845 4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4847 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4848 cat > confinc.mk << 'END' 4849 am__doit: 4850 @echo this is the am__doit target >confinc.out 4851 .PHONY: am__doit 4852 END 4853 am__include="#" 4854 am__quote= 4855 # BSD make does it like this. 4856 echo '.include "confinc.mk" # ignored' > confmf.BSD 4857 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 4858 echo 'include confinc.mk # ignored' > confmf.GNU 4859 _am_result=no 4860 for s in GNU BSD; do 4861 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4862 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4863 ac_status=$? 4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4865 (exit $ac_status); } 4866 case $?:`cat confinc.out 2>/dev/null` in #( 4867 '0:this is the am__doit target') : 4868 case $s in #( 4869 BSD) : 4870 am__include='.include' am__quote='"' ;; #( 4871 *) : 4872 am__include='include' am__quote='' ;; 4873 esac ;; #( 4874 *) : 4875 ;; 4876 esac 4877 if test "$am__include" != "#"; then 4878 _am_result="yes ($s style)" 4879 break 4880 fi 4881 done 4882 rm -f confinc.* confmf.* 4883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4884 printf "%s\n" "${_am_result}" >&6; } 4885 4886 # Check whether --enable-dependency-tracking was given. 4887 if test ${enable_dependency_tracking+y} 4888 then : 4889 enableval=$enable_dependency_tracking; 4890 fi 4891 4892 if test "x$enable_dependency_tracking" != xno; then 4893 am_depcomp="$ac_aux_dir/depcomp" 4894 AMDEPBACKSLASH='\' 4895 am__nodep='_no' 4896 fi 4897 if test "x$enable_dependency_tracking" != xno; then 4898 AMDEP_TRUE= 4899 AMDEP_FALSE='#' 4900 else 4901 AMDEP_TRUE='#' 4902 AMDEP_FALSE= 4903 fi 4904 4905 4906 ac_ext=c 4907 ac_cpp='$CPP $CPPFLAGS' 4908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4910 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4911 if test -n "$ac_tool_prefix"; then 4912 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4913 set dummy ${ac_tool_prefix}gcc; ac_word=$2 4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4915 printf %s "checking for $ac_word... " >&6; } 4916 if test ${ac_cv_prog_CC+y} 4917 then : 4918 printf %s "(cached) " >&6 4919 else case e in #( 4920 e) if test -n "$CC"; then 4921 ac_cv_prog_CC="$CC" # Let the user override the test. 4922 else 4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4924 for as_dir in $PATH 4925 do 4926 IFS=$as_save_IFS 4927 case $as_dir in #((( 4928 '') as_dir=./ ;; 4929 */) ;; 4930 *) as_dir=$as_dir/ ;; 4931 esac 4932 for ac_exec_ext in '' $ac_executable_extensions; do 4933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4934 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4936 break 2 4937 fi 4938 done 4939 done 4940 IFS=$as_save_IFS 4941 4942 fi ;; 4943 esac 4944 fi 4945 CC=$ac_cv_prog_CC 4946 if test -n "$CC"; then 4947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4948 printf "%s\n" "$CC" >&6; } 4949 else 4950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4951 printf "%s\n" "no" >&6; } 4952 fi 4953 4954 4955 fi 4956 if test -z "$ac_cv_prog_CC"; then 4957 ac_ct_CC=$CC 4958 # Extract the first word of "gcc", so it can be a program name with args. 4959 set dummy gcc; ac_word=$2 4960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4961 printf %s "checking for $ac_word... " >&6; } 4962 if test ${ac_cv_prog_ac_ct_CC+y} 4963 then : 4964 printf %s "(cached) " >&6 4965 else case e in #( 4966 e) if test -n "$ac_ct_CC"; then 4967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4968 else 4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4970 for as_dir in $PATH 4971 do 4972 IFS=$as_save_IFS 4973 case $as_dir in #((( 4974 '') as_dir=./ ;; 4975 */) ;; 4976 *) as_dir=$as_dir/ ;; 4977 esac 4978 for ac_exec_ext in '' $ac_executable_extensions; do 4979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4980 ac_cv_prog_ac_ct_CC="gcc" 4981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4982 break 2 4983 fi 4984 done 4985 done 4986 IFS=$as_save_IFS 4987 4988 fi ;; 4989 esac 4990 fi 4991 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4992 if test -n "$ac_ct_CC"; then 4993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4994 printf "%s\n" "$ac_ct_CC" >&6; } 4995 else 4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4997 printf "%s\n" "no" >&6; } 4998 fi 4999 5000 if test "x$ac_ct_CC" = x; then 5001 CC="" 5002 else 5003 case $cross_compiling:$ac_tool_warned in 5004 yes:) 5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5006 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5007 ac_tool_warned=yes ;; 5008 esac 5009 CC=$ac_ct_CC 5010 fi 5011 else 5012 CC="$ac_cv_prog_CC" 5013 fi 5014 5015 if test -z "$CC"; then 5016 if test -n "$ac_tool_prefix"; then 5017 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5018 set dummy ${ac_tool_prefix}cc; ac_word=$2 5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5020 printf %s "checking for $ac_word... " >&6; } 5021 if test ${ac_cv_prog_CC+y} 5022 then : 5023 printf %s "(cached) " >&6 5024 else case e in #( 5025 e) if test -n "$CC"; then 5026 ac_cv_prog_CC="$CC" # Let the user override the test. 5027 else 5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5029 for as_dir in $PATH 5030 do 5031 IFS=$as_save_IFS 5032 case $as_dir in #((( 5033 '') as_dir=./ ;; 5034 */) ;; 5035 *) as_dir=$as_dir/ ;; 5036 esac 5037 for ac_exec_ext in '' $ac_executable_extensions; do 5038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5039 ac_cv_prog_CC="${ac_tool_prefix}cc" 5040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5041 break 2 5042 fi 5043 done 5044 done 5045 IFS=$as_save_IFS 5046 5047 fi ;; 5048 esac 5049 fi 5050 CC=$ac_cv_prog_CC 5051 if test -n "$CC"; then 5052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5053 printf "%s\n" "$CC" >&6; } 5054 else 5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5056 printf "%s\n" "no" >&6; } 5057 fi 5058 5059 5060 fi 5061 fi 5062 if test -z "$CC"; then 5063 # Extract the first word of "cc", so it can be a program name with args. 5064 set dummy cc; ac_word=$2 5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5066 printf %s "checking for $ac_word... " >&6; } 5067 if test ${ac_cv_prog_CC+y} 5068 then : 5069 printf %s "(cached) " >&6 5070 else case e in #( 5071 e) if test -n "$CC"; then 5072 ac_cv_prog_CC="$CC" # Let the user override the test. 5073 else 5074 ac_prog_rejected=no 5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5076 for as_dir in $PATH 5077 do 5078 IFS=$as_save_IFS 5079 case $as_dir in #((( 5080 '') as_dir=./ ;; 5081 */) ;; 5082 *) as_dir=$as_dir/ ;; 5083 esac 5084 for ac_exec_ext in '' $ac_executable_extensions; do 5085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5086 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5087 ac_prog_rejected=yes 5088 continue 5089 fi 5090 ac_cv_prog_CC="cc" 5091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5092 break 2 5093 fi 5094 done 5095 done 5096 IFS=$as_save_IFS 5097 5098 if test $ac_prog_rejected = yes; then 5099 # We found a bogon in the path, so make sure we never use it. 5100 set dummy $ac_cv_prog_CC 5101 shift 5102 if test $# != 0; then 5103 # We chose a different compiler from the bogus one. 5104 # However, it has the same basename, so the bogon will be chosen 5105 # first if we set CC to just the basename; use the full file name. 5106 shift 5107 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 5108 fi 5109 fi 5110 fi ;; 5111 esac 5112 fi 5113 CC=$ac_cv_prog_CC 5114 if test -n "$CC"; then 5115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5116 printf "%s\n" "$CC" >&6; } 5117 else 5118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5119 printf "%s\n" "no" >&6; } 5120 fi 5121 5122 5123 fi 5124 if test -z "$CC"; then 5125 if test -n "$ac_tool_prefix"; then 5126 for ac_prog in cl.exe 5127 do 5128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5131 printf %s "checking for $ac_word... " >&6; } 5132 if test ${ac_cv_prog_CC+y} 5133 then : 5134 printf %s "(cached) " >&6 5135 else case e in #( 5136 e) if test -n "$CC"; then 5137 ac_cv_prog_CC="$CC" # Let the user override the test. 5138 else 5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5140 for as_dir in $PATH 5141 do 5142 IFS=$as_save_IFS 5143 case $as_dir in #((( 5144 '') as_dir=./ ;; 5145 */) ;; 5146 *) as_dir=$as_dir/ ;; 5147 esac 5148 for ac_exec_ext in '' $ac_executable_extensions; do 5149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5150 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5152 break 2 5153 fi 5154 done 5155 done 5156 IFS=$as_save_IFS 5157 5158 fi ;; 5159 esac 5160 fi 5161 CC=$ac_cv_prog_CC 5162 if test -n "$CC"; then 5163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5164 printf "%s\n" "$CC" >&6; } 5165 else 5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5167 printf "%s\n" "no" >&6; } 5168 fi 5169 5170 5171 test -n "$CC" && break 5172 done 5173 fi 5174 if test -z "$CC"; then 5175 ac_ct_CC=$CC 5176 for ac_prog in cl.exe 5177 do 5178 # Extract the first word of "$ac_prog", so it can be a program name with args. 5179 set dummy $ac_prog; ac_word=$2 5180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5181 printf %s "checking for $ac_word... " >&6; } 5182 if test ${ac_cv_prog_ac_ct_CC+y} 5183 then : 5184 printf %s "(cached) " >&6 5185 else case e in #( 5186 e) if test -n "$ac_ct_CC"; then 5187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5188 else 5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5190 for as_dir in $PATH 5191 do 5192 IFS=$as_save_IFS 5193 case $as_dir in #((( 5194 '') as_dir=./ ;; 5195 */) ;; 5196 *) as_dir=$as_dir/ ;; 5197 esac 5198 for ac_exec_ext in '' $ac_executable_extensions; do 5199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5200 ac_cv_prog_ac_ct_CC="$ac_prog" 5201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5202 break 2 5203 fi 5204 done 5205 done 5206 IFS=$as_save_IFS 5207 5208 fi ;; 5209 esac 5210 fi 5211 ac_ct_CC=$ac_cv_prog_ac_ct_CC 5212 if test -n "$ac_ct_CC"; then 5213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5214 printf "%s\n" "$ac_ct_CC" >&6; } 5215 else 5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5217 printf "%s\n" "no" >&6; } 5218 fi 5219 5220 5221 test -n "$ac_ct_CC" && break 5222 done 5223 5224 if test "x$ac_ct_CC" = x; then 5225 CC="" 5226 else 5227 case $cross_compiling:$ac_tool_warned in 5228 yes:) 5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5230 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5231 ac_tool_warned=yes ;; 5232 esac 5233 CC=$ac_ct_CC 5234 fi 5235 fi 5236 5237 fi 5238 if test -z "$CC"; then 5239 if test -n "$ac_tool_prefix"; then 5240 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 5241 set dummy ${ac_tool_prefix}clang; ac_word=$2 5242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5243 printf %s "checking for $ac_word... " >&6; } 5244 if test ${ac_cv_prog_CC+y} 5245 then : 5246 printf %s "(cached) " >&6 5247 else case e in #( 5248 e) if test -n "$CC"; then 5249 ac_cv_prog_CC="$CC" # Let the user override the test. 5250 else 5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5252 for as_dir in $PATH 5253 do 5254 IFS=$as_save_IFS 5255 case $as_dir in #((( 5256 '') as_dir=./ ;; 5257 */) ;; 5258 *) as_dir=$as_dir/ ;; 5259 esac 5260 for ac_exec_ext in '' $ac_executable_extensions; do 5261 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5262 ac_cv_prog_CC="${ac_tool_prefix}clang" 5263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5264 break 2 5265 fi 5266 done 5267 done 5268 IFS=$as_save_IFS 5269 5270 fi ;; 5271 esac 5272 fi 5273 CC=$ac_cv_prog_CC 5274 if test -n "$CC"; then 5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5276 printf "%s\n" "$CC" >&6; } 5277 else 5278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5279 printf "%s\n" "no" >&6; } 5280 fi 5281 5282 5283 fi 5284 if test -z "$ac_cv_prog_CC"; then 5285 ac_ct_CC=$CC 5286 # Extract the first word of "clang", so it can be a program name with args. 5287 set dummy clang; ac_word=$2 5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5289 printf %s "checking for $ac_word... " >&6; } 5290 if test ${ac_cv_prog_ac_ct_CC+y} 5291 then : 5292 printf %s "(cached) " >&6 5293 else case e in #( 5294 e) if test -n "$ac_ct_CC"; then 5295 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5296 else 5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5298 for as_dir in $PATH 5299 do 5300 IFS=$as_save_IFS 5301 case $as_dir in #((( 5302 '') as_dir=./ ;; 5303 */) ;; 5304 *) as_dir=$as_dir/ ;; 5305 esac 5306 for ac_exec_ext in '' $ac_executable_extensions; do 5307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5308 ac_cv_prog_ac_ct_CC="clang" 5309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5310 break 2 5311 fi 5312 done 5313 done 5314 IFS=$as_save_IFS 5315 5316 fi ;; 5317 esac 5318 fi 5319 ac_ct_CC=$ac_cv_prog_ac_ct_CC 5320 if test -n "$ac_ct_CC"; then 5321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5322 printf "%s\n" "$ac_ct_CC" >&6; } 5323 else 5324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5325 printf "%s\n" "no" >&6; } 5326 fi 5327 5328 if test "x$ac_ct_CC" = x; then 5329 CC="" 5330 else 5331 case $cross_compiling:$ac_tool_warned in 5332 yes:) 5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5334 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5335 ac_tool_warned=yes ;; 5336 esac 5337 CC=$ac_ct_CC 5338 fi 5339 else 5340 CC="$ac_cv_prog_CC" 5341 fi 5342 5343 fi 5344 5345 5346 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5347 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5348 as_fn_error $? "no acceptable C compiler found in \$PATH 5349 See 'config.log' for more details" "$LINENO" 5; } 5350 5351 # Provide some information about the compiler. 5352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5353 set X $ac_compile 5354 ac_compiler=$2 5355 for ac_option in --version -v -V -qversion -version; do 5356 { { ac_try="$ac_compiler $ac_option >&5" 5357 case "(($ac_try" in 5358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5359 *) ac_try_echo=$ac_try;; 5360 esac 5361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5362 printf "%s\n" "$ac_try_echo"; } >&5 5363 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5364 ac_status=$? 5365 if test -s conftest.err; then 5366 sed '10a\ 5367 ... rest of stderr output deleted ... 5368 10q' conftest.err >conftest.er1 5369 cat conftest.er1 >&5 5370 fi 5371 rm -f conftest.er1 conftest.err 5372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5373 test $ac_status = 0; } 5374 done 5375 5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5377 /* end confdefs.h. */ 5378 5379 int 5380 main (void) 5381 { 5382 5383 ; 5384 return 0; 5385 } 5386 _ACEOF 5387 ac_clean_files_save=$ac_clean_files 5388 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 5389 # Try to create an executable without -o first, disregard a.out. 5390 # It will help us diagnose broken compilers, and finding out an intuition 5391 # of exeext. 5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 5393 printf %s "checking whether the C compiler works... " >&6; } 5394 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 5395 5396 # The possible output files: 5397 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 5398 5399 ac_rmfiles= 5400 for ac_file in $ac_files 5401 do 5402 case $ac_file in 5403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5404 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 5405 esac 5406 done 5407 rm -f $ac_rmfiles 5408 5409 if { { ac_try="$ac_link_default" 5410 case "(($ac_try" in 5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5412 *) ac_try_echo=$ac_try;; 5413 esac 5414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5415 printf "%s\n" "$ac_try_echo"; } >&5 5416 (eval "$ac_link_default") 2>&5 5417 ac_status=$? 5418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5419 test $ac_status = 0; } 5420 then : 5421 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 5422 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 5423 # in a Makefile. We should not override ac_cv_exeext if it was cached, 5424 # so that the user can short-circuit this test for compilers unknown to 5425 # Autoconf. 5426 for ac_file in $ac_files '' 5427 do 5428 test -f "$ac_file" || continue 5429 case $ac_file in 5430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 5431 ;; 5432 [ab].out ) 5433 # We found the default executable, but exeext='' is most 5434 # certainly right. 5435 break;; 5436 *.* ) 5437 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 5438 then :; else 5439 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5440 fi 5441 # We set ac_cv_exeext here because the later test for it is not 5442 # safe: cross compilers may not add the suffix if given an '-o' 5443 # argument, so we may need to know it at that point already. 5444 # Even if this section looks crufty: it has the advantage of 5445 # actually working. 5446 break;; 5447 * ) 5448 break;; 5449 esac 5450 done 5451 test "$ac_cv_exeext" = no && ac_cv_exeext= 5452 5453 else case e in #( 5454 e) ac_file='' ;; 5455 esac 5456 fi 5457 if test -z "$ac_file" 5458 then : 5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5460 printf "%s\n" "no" >&6; } 5461 printf "%s\n" "$as_me: failed program was:" >&5 5462 sed 's/^/| /' conftest.$ac_ext >&5 5463 5464 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5465 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5466 as_fn_error 77 "C compiler cannot create executables 5467 See 'config.log' for more details" "$LINENO" 5; } 5468 else case e in #( 5469 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5470 printf "%s\n" "yes" >&6; } ;; 5471 esac 5472 fi 5473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5474 printf %s "checking for C compiler default output file name... " >&6; } 5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5476 printf "%s\n" "$ac_file" >&6; } 5477 ac_exeext=$ac_cv_exeext 5478 5479 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 5480 ac_clean_files=$ac_clean_files_save 5481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 5482 printf %s "checking for suffix of executables... " >&6; } 5483 if { { ac_try="$ac_link" 5484 case "(($ac_try" in 5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5486 *) ac_try_echo=$ac_try;; 5487 esac 5488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5489 printf "%s\n" "$ac_try_echo"; } >&5 5490 (eval "$ac_link") 2>&5 5491 ac_status=$? 5492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5493 test $ac_status = 0; } 5494 then : 5495 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 5496 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 5497 # work properly (i.e., refer to 'conftest.exe'), while it won't with 5498 # 'rm'. 5499 for ac_file in conftest.exe conftest conftest.*; do 5500 test -f "$ac_file" || continue 5501 case $ac_file in 5502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5503 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5504 break;; 5505 * ) break;; 5506 esac 5507 done 5508 else case e in #( 5509 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5510 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5511 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5512 See 'config.log' for more details" "$LINENO" 5; } ;; 5513 esac 5514 fi 5515 rm -f conftest conftest$ac_cv_exeext 5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 5517 printf "%s\n" "$ac_cv_exeext" >&6; } 5518 5519 rm -f conftest.$ac_ext 5520 EXEEXT=$ac_cv_exeext 5521 ac_exeext=$EXEEXT 5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5523 /* end confdefs.h. */ 5524 #include <stdio.h> 5525 int 5526 main (void) 5527 { 5528 FILE *f = fopen ("conftest.out", "w"); 5529 if (!f) 5530 return 1; 5531 return ferror (f) || fclose (f) != 0; 5532 5533 ; 5534 return 0; 5535 } 5536 _ACEOF 5537 ac_clean_files="$ac_clean_files conftest.out" 5538 # Check that the compiler produces executables we can run. If not, either 5539 # the compiler is broken, or we cross compile. 5540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5541 printf %s "checking whether we are cross compiling... " >&6; } 5542 if test "$cross_compiling" != yes; then 5543 { { ac_try="$ac_link" 5544 case "(($ac_try" in 5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5546 *) ac_try_echo=$ac_try;; 5547 esac 5548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5549 printf "%s\n" "$ac_try_echo"; } >&5 5550 (eval "$ac_link") 2>&5 5551 ac_status=$? 5552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5553 test $ac_status = 0; } 5554 if { ac_try='./conftest$ac_cv_exeext' 5555 { { case "(($ac_try" in 5556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5557 *) ac_try_echo=$ac_try;; 5558 esac 5559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5560 printf "%s\n" "$ac_try_echo"; } >&5 5561 (eval "$ac_try") 2>&5 5562 ac_status=$? 5563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5564 test $ac_status = 0; }; }; then 5565 cross_compiling=no 5566 else 5567 if test "$cross_compiling" = maybe; then 5568 cross_compiling=yes 5569 else 5570 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5571 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5572 as_fn_error 77 "cannot run C compiled programs. 5573 If you meant to cross compile, use '--host'. 5574 See 'config.log' for more details" "$LINENO" 5; } 5575 fi 5576 fi 5577 fi 5578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 5579 printf "%s\n" "$cross_compiling" >&6; } 5580 5581 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 5582 conftest.o conftest.obj conftest.out 5583 ac_clean_files=$ac_clean_files_save 5584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5585 printf %s "checking for suffix of object files... " >&6; } 5586 if test ${ac_cv_objext+y} 5587 then : 5588 printf %s "(cached) " >&6 5589 else case e in #( 5590 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5591 /* end confdefs.h. */ 5592 5593 int 5594 main (void) 5595 { 5596 5597 ; 5598 return 0; 5599 } 5600 _ACEOF 5601 rm -f conftest.o conftest.obj 5602 if { { ac_try="$ac_compile" 5603 case "(($ac_try" in 5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5605 *) ac_try_echo=$ac_try;; 5606 esac 5607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5608 printf "%s\n" "$ac_try_echo"; } >&5 5609 (eval "$ac_compile") 2>&5 5610 ac_status=$? 5611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5612 test $ac_status = 0; } 5613 then : 5614 for ac_file in conftest.o conftest.obj conftest.*; do 5615 test -f "$ac_file" || continue; 5616 case $ac_file in 5617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5618 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5619 break;; 5620 esac 5621 done 5622 else case e in #( 5623 e) printf "%s\n" "$as_me: failed program was:" >&5 5624 sed 's/^/| /' conftest.$ac_ext >&5 5625 5626 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5627 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5628 as_fn_error $? "cannot compute suffix of object files: cannot compile 5629 See 'config.log' for more details" "$LINENO" 5; } ;; 5630 esac 5631 fi 5632 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 5633 esac 5634 fi 5635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5636 printf "%s\n" "$ac_cv_objext" >&6; } 5637 OBJEXT=$ac_cv_objext 5638 ac_objext=$OBJEXT 5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5640 printf %s "checking whether the compiler supports GNU C... " >&6; } 5641 if test ${ac_cv_c_compiler_gnu+y} 5642 then : 5643 printf %s "(cached) " >&6 5644 else case e in #( 5645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5646 /* end confdefs.h. */ 5647 5648 int 5649 main (void) 5650 { 5651 #ifndef __GNUC__ 5652 choke me 5653 #endif 5654 5655 ; 5656 return 0; 5657 } 5658 _ACEOF 5659 if ac_fn_c_try_compile "$LINENO" 5660 then : 5661 ac_compiler_gnu=yes 5662 else case e in #( 5663 e) ac_compiler_gnu=no ;; 5664 esac 5665 fi 5666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5667 ac_cv_c_compiler_gnu=$ac_compiler_gnu 5668 ;; 5669 esac 5670 fi 5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5672 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5673 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5674 5675 if test $ac_compiler_gnu = yes; then 5676 GCC=yes 5677 else 5678 GCC= 5679 fi 5680 ac_test_CFLAGS=${CFLAGS+y} 5681 ac_save_CFLAGS=$CFLAGS 5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5683 printf %s "checking whether $CC accepts -g... " >&6; } 5684 if test ${ac_cv_prog_cc_g+y} 5685 then : 5686 printf %s "(cached) " >&6 5687 else case e in #( 5688 e) ac_save_c_werror_flag=$ac_c_werror_flag 5689 ac_c_werror_flag=yes 5690 ac_cv_prog_cc_g=no 5691 CFLAGS="-g" 5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5693 /* end confdefs.h. */ 5694 5695 int 5696 main (void) 5697 { 5698 5699 ; 5700 return 0; 5701 } 5702 _ACEOF 5703 if ac_fn_c_try_compile "$LINENO" 5704 then : 5705 ac_cv_prog_cc_g=yes 5706 else case e in #( 5707 e) CFLAGS="" 5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5709 /* end confdefs.h. */ 5710 5711 int 5712 main (void) 5713 { 5714 5715 ; 5716 return 0; 5717 } 5718 _ACEOF 5719 if ac_fn_c_try_compile "$LINENO" 5720 then : 5721 5722 else case e in #( 5723 e) ac_c_werror_flag=$ac_save_c_werror_flag 5724 CFLAGS="-g" 5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5726 /* end confdefs.h. */ 5727 5728 int 5729 main (void) 5730 { 5731 5732 ; 5733 return 0; 5734 } 5735 _ACEOF 5736 if ac_fn_c_try_compile "$LINENO" 5737 then : 5738 ac_cv_prog_cc_g=yes 5739 fi 5740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5741 esac 5742 fi 5743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5744 esac 5745 fi 5746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5747 ac_c_werror_flag=$ac_save_c_werror_flag ;; 5748 esac 5749 fi 5750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5751 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5752 if test $ac_test_CFLAGS; then 5753 CFLAGS=$ac_save_CFLAGS 5754 elif test $ac_cv_prog_cc_g = yes; then 5755 if test "$GCC" = yes; then 5756 CFLAGS="-g -O2" 5757 else 5758 CFLAGS="-g" 5759 fi 5760 else 5761 if test "$GCC" = yes; then 5762 CFLAGS="-O2" 5763 else 5764 CFLAGS= 5765 fi 5766 fi 5767 ac_prog_cc_stdc=no 5768 if test x$ac_prog_cc_stdc = xno 5769 then : 5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5771 printf %s "checking for $CC option to enable C11 features... " >&6; } 5772 if test ${ac_cv_prog_cc_c11+y} 5773 then : 5774 printf %s "(cached) " >&6 5775 else case e in #( 5776 e) ac_cv_prog_cc_c11=no 5777 ac_save_CC=$CC 5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5779 /* end confdefs.h. */ 5780 $ac_c_conftest_c11_program 5781 _ACEOF 5782 for ac_arg in '' -std=gnu11 5783 do 5784 CC="$ac_save_CC $ac_arg" 5785 if ac_fn_c_try_compile "$LINENO" 5786 then : 5787 ac_cv_prog_cc_c11=$ac_arg 5788 fi 5789 rm -f core conftest.err conftest.$ac_objext conftest.beam 5790 test "x$ac_cv_prog_cc_c11" != "xno" && break 5791 done 5792 rm -f conftest.$ac_ext 5793 CC=$ac_save_CC ;; 5794 esac 5795 fi 5796 5797 if test "x$ac_cv_prog_cc_c11" = xno 5798 then : 5799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5800 printf "%s\n" "unsupported" >&6; } 5801 else case e in #( 5802 e) if test "x$ac_cv_prog_cc_c11" = x 5803 then : 5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5805 printf "%s\n" "none needed" >&6; } 5806 else case e in #( 5807 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5808 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5809 CC="$CC $ac_cv_prog_cc_c11" ;; 5810 esac 5811 fi 5812 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5813 ac_prog_cc_stdc=c11 ;; 5814 esac 5815 fi 5816 fi 5817 if test x$ac_prog_cc_stdc = xno 5818 then : 5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5820 printf %s "checking for $CC option to enable C99 features... " >&6; } 5821 if test ${ac_cv_prog_cc_c99+y} 5822 then : 5823 printf %s "(cached) " >&6 5824 else case e in #( 5825 e) ac_cv_prog_cc_c99=no 5826 ac_save_CC=$CC 5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5828 /* end confdefs.h. */ 5829 $ac_c_conftest_c99_program 5830 _ACEOF 5831 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5832 do 5833 CC="$ac_save_CC $ac_arg" 5834 if ac_fn_c_try_compile "$LINENO" 5835 then : 5836 ac_cv_prog_cc_c99=$ac_arg 5837 fi 5838 rm -f core conftest.err conftest.$ac_objext conftest.beam 5839 test "x$ac_cv_prog_cc_c99" != "xno" && break 5840 done 5841 rm -f conftest.$ac_ext 5842 CC=$ac_save_CC ;; 5843 esac 5844 fi 5845 5846 if test "x$ac_cv_prog_cc_c99" = xno 5847 then : 5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5849 printf "%s\n" "unsupported" >&6; } 5850 else case e in #( 5851 e) if test "x$ac_cv_prog_cc_c99" = x 5852 then : 5853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5854 printf "%s\n" "none needed" >&6; } 5855 else case e in #( 5856 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5857 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5858 CC="$CC $ac_cv_prog_cc_c99" ;; 5859 esac 5860 fi 5861 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5862 ac_prog_cc_stdc=c99 ;; 5863 esac 5864 fi 5865 fi 5866 if test x$ac_prog_cc_stdc = xno 5867 then : 5868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5869 printf %s "checking for $CC option to enable C89 features... " >&6; } 5870 if test ${ac_cv_prog_cc_c89+y} 5871 then : 5872 printf %s "(cached) " >&6 5873 else case e in #( 5874 e) ac_cv_prog_cc_c89=no 5875 ac_save_CC=$CC 5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5877 /* end confdefs.h. */ 5878 $ac_c_conftest_c89_program 5879 _ACEOF 5880 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5881 do 5882 CC="$ac_save_CC $ac_arg" 5883 if ac_fn_c_try_compile "$LINENO" 5884 then : 5885 ac_cv_prog_cc_c89=$ac_arg 5886 fi 5887 rm -f core conftest.err conftest.$ac_objext conftest.beam 5888 test "x$ac_cv_prog_cc_c89" != "xno" && break 5889 done 5890 rm -f conftest.$ac_ext 5891 CC=$ac_save_CC ;; 5892 esac 5893 fi 5894 5895 if test "x$ac_cv_prog_cc_c89" = xno 5896 then : 5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5898 printf "%s\n" "unsupported" >&6; } 5899 else case e in #( 5900 e) if test "x$ac_cv_prog_cc_c89" = x 5901 then : 5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5903 printf "%s\n" "none needed" >&6; } 5904 else case e in #( 5905 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5906 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5907 CC="$CC $ac_cv_prog_cc_c89" ;; 5908 esac 5909 fi 5910 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5911 ac_prog_cc_stdc=c89 ;; 5912 esac 5913 fi 5914 fi 5915 5916 ac_ext=c 5917 ac_cpp='$CPP $CPPFLAGS' 5918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5920 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5921 5922 5923 ac_ext=c 5924 ac_cpp='$CPP $CPPFLAGS' 5925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5927 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5929 printf %s "checking whether $CC understands -c and -o together... " >&6; } 5930 if test ${am_cv_prog_cc_c_o+y} 5931 then : 5932 printf %s "(cached) " >&6 5933 else case e in #( 5934 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5935 /* end confdefs.h. */ 5936 5937 int 5938 main (void) 5939 { 5940 5941 ; 5942 return 0; 5943 } 5944 _ACEOF 5945 # Make sure it works both with $CC and with simple cc. 5946 # Following AC_PROG_CC_C_O, we do the test twice because some 5947 # compilers refuse to overwrite an existing .o file with -o, 5948 # though they will create one. 5949 am_cv_prog_cc_c_o=yes 5950 for am_i in 1 2; do 5951 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5952 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5953 ac_status=$? 5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5955 (exit $ac_status); } \ 5956 && test -f conftest2.$ac_objext; then 5957 : OK 5958 else 5959 am_cv_prog_cc_c_o=no 5960 break 5961 fi 5962 done 5963 # aligned with autoconf, so not including core; see bug#72225. 5964 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \ 5965 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \ 5966 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM 5967 unset am_i ;; 5968 esac 5969 fi 5970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5971 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 5972 if test "$am_cv_prog_cc_c_o" != yes; then 5973 # Losing compiler, so override with the script. 5974 # FIXME: It is wrong to rewrite CC. 5975 # But if we don't then we get into trouble of one sort or another. 5976 # A longer-term fix would be to have automake use am__CC in this case, 5977 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5978 CC="$am_aux_dir/compile $CC" 5979 fi 5980 ac_ext=c 5981 ac_cpp='$CPP $CPPFLAGS' 5982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5984 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5985 5986 5987 depcc="$CC" am_compiler_list= 5988 5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5990 printf %s "checking dependency style of $depcc... " >&6; } 5991 if test ${am_cv_CC_dependencies_compiler_type+y} 5992 then : 5993 printf %s "(cached) " >&6 5994 else case e in #( 5995 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5996 # We make a subdir and do the tests there. Otherwise we can end up 5997 # making bogus files that we don't know about and never remove. For 5998 # instance it was reported that on HP-UX the gcc test will end up 5999 # making a dummy file named 'D' -- because '-MD' means "put the output 6000 # in D". 6001 rm -rf conftest.dir 6002 mkdir conftest.dir 6003 # Copy depcomp to subdir because otherwise we won't find it if we're 6004 # using a relative directory. 6005 cp "$am_depcomp" conftest.dir 6006 cd conftest.dir 6007 # We will build objects and dependencies in a subdirectory because 6008 # it helps to detect inapplicable dependency modes. For instance 6009 # both Tru64's cc and ICC support -MD to output dependencies as a 6010 # side effect of compilation, but ICC will put the dependencies in 6011 # the current directory while Tru64 will put them in the object 6012 # directory. 6013 mkdir sub 6014 6015 am_cv_CC_dependencies_compiler_type=none 6016 if test "$am_compiler_list" = ""; then 6017 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6018 fi 6019 am__universal=false 6020 case " $depcc " in #( 6021 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6022 esac 6023 6024 for depmode in $am_compiler_list; do 6025 # Setup a source with many dependencies, because some compilers 6026 # like to wrap large dependency lists on column 80 (with \), and 6027 # we should not choose a depcomp mode which is confused by this. 6028 # 6029 # We need to recreate these files for each test, as the compiler may 6030 # overwrite some of them when testing with obscure command lines. 6031 # This happens at least with the AIX C compiler. 6032 : > sub/conftest.c 6033 for i in 1 2 3 4 5 6; do 6034 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6035 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6036 # Solaris 10 /bin/sh. 6037 echo '/* dummy */' > sub/conftst$i.h 6038 done 6039 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6040 6041 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6042 # mode. It turns out that the SunPro C++ compiler does not properly 6043 # handle '-M -o', and we need to detect this. Also, some Intel 6044 # versions had trouble with output in subdirs. 6045 am__obj=sub/conftest.${OBJEXT-o} 6046 am__minus_obj="-o $am__obj" 6047 case $depmode in 6048 gcc) 6049 # This depmode causes a compiler race in universal mode. 6050 test "$am__universal" = false || continue 6051 ;; 6052 nosideeffect) 6053 # After this tag, mechanisms are not by side-effect, so they'll 6054 # only be used when explicitly requested. 6055 if test "x$enable_dependency_tracking" = xyes; then 6056 continue 6057 else 6058 break 6059 fi 6060 ;; 6061 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6062 # This compiler won't grok '-c -o', but also, the minuso test has 6063 # not run yet. These depmodes are late enough in the game, and 6064 # so weak that their functioning should not be impacted. 6065 am__obj=conftest.${OBJEXT-o} 6066 am__minus_obj= 6067 ;; 6068 none) break ;; 6069 esac 6070 if depmode=$depmode \ 6071 source=sub/conftest.c object=$am__obj \ 6072 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6073 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6074 >/dev/null 2>conftest.err && 6075 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6076 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6077 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6078 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6079 # icc doesn't choke on unknown options, it will just issue warnings 6080 # or remarks (even with -Werror). So we grep stderr for any message 6081 # that says an option was ignored or not supported. 6082 # When given -MP, icc 7.0 and 7.1 complain thus: 6083 # icc: Command line warning: ignoring option '-M'; no argument required 6084 # The diagnosis changed in icc 8.0: 6085 # icc: Command line remark: option '-MP' not supported 6086 if (grep 'ignoring option' conftest.err || 6087 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6088 am_cv_CC_dependencies_compiler_type=$depmode 6089 break 6090 fi 6091 fi 6092 done 6093 6094 cd .. 6095 rm -rf conftest.dir 6096 else 6097 am_cv_CC_dependencies_compiler_type=none 6098 fi 6099 ;; 6100 esac 6101 fi 6102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6103 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 6104 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6105 6106 if 6107 test "x$enable_dependency_tracking" != xno \ 6108 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6109 am__fastdepCC_TRUE= 6110 am__fastdepCC_FALSE='#' 6111 else 6112 am__fastdepCC_TRUE='#' 6113 am__fastdepCC_FALSE= 6114 fi 6115 6116 6117 6118 ac_header= ac_cache= 6119 for ac_item in $ac_header_c_list 6120 do 6121 if test $ac_cache; then 6122 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 6123 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 6124 printf "%s\n" "#define $ac_item 1" >> confdefs.h 6125 fi 6126 ac_header= ac_cache= 6127 elif test $ac_header; then 6128 ac_cache=$ac_item 6129 else 6130 ac_header=$ac_item 6131 fi 6132 done 6133 6134 6135 6136 6137 6138 6139 6140 6141 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 6142 then : 6143 6144 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 6145 6146 fi 6147 6148 6149 6150 6151 6152 6153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 6154 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 6155 if test ${ac_cv_safe_to_define___extensions__+y} 6156 then : 6157 printf %s "(cached) " >&6 6158 else case e in #( 6159 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6160 /* end confdefs.h. */ 6161 6162 # define __EXTENSIONS__ 1 6163 $ac_includes_default 6164 int 6165 main (void) 6166 { 6167 6168 ; 6169 return 0; 6170 } 6171 _ACEOF 6172 if ac_fn_c_try_compile "$LINENO" 6173 then : 6174 ac_cv_safe_to_define___extensions__=yes 6175 else case e in #( 6176 e) ac_cv_safe_to_define___extensions__=no ;; 6177 esac 6178 fi 6179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6180 esac 6181 fi 6182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 6183 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 6184 6185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 6186 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 6187 if test ${ac_cv_should_define__xopen_source+y} 6188 then : 6189 printf %s "(cached) " >&6 6190 else case e in #( 6191 e) ac_cv_should_define__xopen_source=no 6192 if test $ac_cv_header_wchar_h = yes 6193 then : 6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6195 /* end confdefs.h. */ 6196 6197 #include <wchar.h> 6198 mbstate_t x; 6199 int 6200 main (void) 6201 { 6202 6203 ; 6204 return 0; 6205 } 6206 _ACEOF 6207 if ac_fn_c_try_compile "$LINENO" 6208 then : 6209 6210 else case e in #( 6211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6212 /* end confdefs.h. */ 6213 6214 #define _XOPEN_SOURCE 500 6215 #include <wchar.h> 6216 mbstate_t x; 6217 int 6218 main (void) 6219 { 6220 6221 ; 6222 return 0; 6223 } 6224 _ACEOF 6225 if ac_fn_c_try_compile "$LINENO" 6226 then : 6227 ac_cv_should_define__xopen_source=yes 6228 fi 6229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6230 esac 6231 fi 6232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6233 fi ;; 6234 esac 6235 fi 6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 6237 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 6238 6239 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 6240 6241 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 6242 6243 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 6244 6245 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 6246 6247 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 6248 6249 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 6250 6251 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 6252 6253 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 6254 6255 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 6256 6257 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 6258 6259 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 6260 6261 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 6262 6263 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 6264 6265 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 6266 6267 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 6268 6269 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 6270 6271 if test $ac_cv_header_minix_config_h = yes 6272 then : 6273 MINIX=yes 6274 printf "%s\n" "#define _MINIX 1" >>confdefs.h 6275 6276 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 6277 6278 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 6279 6280 else case e in #( 6281 e) MINIX= ;; 6282 esac 6283 fi 6284 if test $ac_cv_safe_to_define___extensions__ = yes 6285 then : 6286 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 6287 6288 fi 6289 if test $ac_cv_should_define__xopen_source = yes 6290 then : 6291 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 6292 6293 fi 6294 6295 6296 # Require xorg-macros minimum of 1.14 for XORG_COMPILER_BRAND in XORG_DEFAULT_OPTIONS 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 6309 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 6310 if test ${ac_cv_c_undeclared_builtin_options+y} 6311 then : 6312 printf %s "(cached) " >&6 6313 else case e in #( 6314 e) ac_save_CFLAGS=$CFLAGS 6315 ac_cv_c_undeclared_builtin_options='cannot detect' 6316 for ac_arg in '' -fno-builtin; do 6317 CFLAGS="$ac_save_CFLAGS $ac_arg" 6318 # This test program should *not* compile successfully. 6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6320 /* end confdefs.h. */ 6321 6322 int 6323 main (void) 6324 { 6325 (void) strchr; 6326 ; 6327 return 0; 6328 } 6329 _ACEOF 6330 if ac_fn_c_try_compile "$LINENO" 6331 then : 6332 6333 else case e in #( 6334 e) # This test program should compile successfully. 6335 # No library function is consistently available on 6336 # freestanding implementations, so test against a dummy 6337 # declaration. Include always-available headers on the 6338 # off chance that they somehow elicit warnings. 6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6340 /* end confdefs.h. */ 6341 #include <float.h> 6342 #include <limits.h> 6343 #include <stdarg.h> 6344 #include <stddef.h> 6345 extern void ac_decl (int, char *); 6346 6347 int 6348 main (void) 6349 { 6350 (void) ac_decl (0, (char *) 0); 6351 (void) ac_decl; 6352 6353 ; 6354 return 0; 6355 } 6356 _ACEOF 6357 if ac_fn_c_try_compile "$LINENO" 6358 then : 6359 if test x"$ac_arg" = x 6360 then : 6361 ac_cv_c_undeclared_builtin_options='none needed' 6362 else case e in #( 6363 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 6364 esac 6365 fi 6366 break 6367 fi 6368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6369 esac 6370 fi 6371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6372 done 6373 CFLAGS=$ac_save_CFLAGS 6374 ;; 6375 esac 6376 fi 6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 6378 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 6379 case $ac_cv_c_undeclared_builtin_options in #( 6380 'cannot detect') : 6381 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 6382 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 6383 as_fn_error $? "cannot make $CC report undeclared builtins 6384 See 'config.log' for more details" "$LINENO" 5; } ;; #( 6385 'none needed') : 6386 ac_c_undeclared_builtin_options='' ;; #( 6387 *) : 6388 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 6389 esac 6390 6391 6392 6393 6394 6395 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 6396 if test "x$ac_cv_have_decl___clang__" = xyes 6397 then : 6398 CLANGCC="yes" 6399 else case e in #( 6400 e) CLANGCC="no" ;; 6401 esac 6402 fi 6403 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 6404 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 6405 then : 6406 INTELCC="yes" 6407 else case e in #( 6408 e) INTELCC="no" ;; 6409 esac 6410 fi 6411 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 6412 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 6413 then : 6414 SUNCC="yes" 6415 else case e in #( 6416 e) SUNCC="no" ;; 6417 esac 6418 fi 6419 6420 6421 6422 6423 6424 6425 6426 6427 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 6428 if test -n "$ac_tool_prefix"; then 6429 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 6430 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6432 printf %s "checking for $ac_word... " >&6; } 6433 if test ${ac_cv_path_PKG_CONFIG+y} 6434 then : 6435 printf %s "(cached) " >&6 6436 else case e in #( 6437 e) case $PKG_CONFIG in 6438 [\\/]* | ?:[\\/]*) 6439 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6440 ;; 6441 *) 6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6443 for as_dir in $PATH 6444 do 6445 IFS=$as_save_IFS 6446 case $as_dir in #((( 6447 '') as_dir=./ ;; 6448 */) ;; 6449 *) as_dir=$as_dir/ ;; 6450 esac 6451 for ac_exec_ext in '' $ac_executable_extensions; do 6452 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6453 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 6454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6455 break 2 6456 fi 6457 done 6458 done 6459 IFS=$as_save_IFS 6460 6461 ;; 6462 esac ;; 6463 esac 6464 fi 6465 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6466 if test -n "$PKG_CONFIG"; then 6467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6468 printf "%s\n" "$PKG_CONFIG" >&6; } 6469 else 6470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6471 printf "%s\n" "no" >&6; } 6472 fi 6473 6474 6475 fi 6476 if test -z "$ac_cv_path_PKG_CONFIG"; then 6477 ac_pt_PKG_CONFIG=$PKG_CONFIG 6478 # Extract the first word of "pkg-config", so it can be a program name with args. 6479 set dummy pkg-config; ac_word=$2 6480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6481 printf %s "checking for $ac_word... " >&6; } 6482 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 6483 then : 6484 printf %s "(cached) " >&6 6485 else case e in #( 6486 e) case $ac_pt_PKG_CONFIG in 6487 [\\/]* | ?:[\\/]*) 6488 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 6489 ;; 6490 *) 6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6492 for as_dir in $PATH 6493 do 6494 IFS=$as_save_IFS 6495 case $as_dir in #((( 6496 '') as_dir=./ ;; 6497 */) ;; 6498 *) as_dir=$as_dir/ ;; 6499 esac 6500 for ac_exec_ext in '' $ac_executable_extensions; do 6501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6502 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 6503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6504 break 2 6505 fi 6506 done 6507 done 6508 IFS=$as_save_IFS 6509 6510 ;; 6511 esac ;; 6512 esac 6513 fi 6514 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 6515 if test -n "$ac_pt_PKG_CONFIG"; then 6516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 6517 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 6518 else 6519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6520 printf "%s\n" "no" >&6; } 6521 fi 6522 6523 if test "x$ac_pt_PKG_CONFIG" = x; then 6524 PKG_CONFIG="" 6525 else 6526 case $cross_compiling:$ac_tool_warned in 6527 yes:) 6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6529 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6530 ac_tool_warned=yes ;; 6531 esac 6532 PKG_CONFIG=$ac_pt_PKG_CONFIG 6533 fi 6534 else 6535 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 6536 fi 6537 6538 fi 6539 if test -n "$PKG_CONFIG"; then 6540 _pkg_min_version=0.9.0 6541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 6542 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 6543 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 6544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6545 printf "%s\n" "yes" >&6; } 6546 else 6547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6548 printf "%s\n" "no" >&6; } 6549 PKG_CONFIG="" 6550 fi 6551 fi 6552 if test -z "$PKG_CONFIG"; then 6553 as_fn_error $? "pkg-config not found" "$LINENO" 5 6554 fi 6555 6556 6557 # Make sure we can run config.sub. 6558 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 6559 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 6560 6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6562 printf %s "checking build system type... " >&6; } 6563 if test ${ac_cv_build+y} 6564 then : 6565 printf %s "(cached) " >&6 6566 else case e in #( 6567 e) ac_build_alias=$build_alias 6568 test "x$ac_build_alias" = x && 6569 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 6570 test "x$ac_build_alias" = x && 6571 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6572 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 6573 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 6574 ;; 6575 esac 6576 fi 6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6578 printf "%s\n" "$ac_cv_build" >&6; } 6579 case $ac_cv_build in 6580 *-*-*) ;; 6581 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6582 esac 6583 build=$ac_cv_build 6584 ac_save_IFS=$IFS; IFS='-' 6585 set x $ac_cv_build 6586 shift 6587 build_cpu=$1 6588 build_vendor=$2 6589 shift; shift 6590 # Remember, the first character of IFS is used to create $*, 6591 # except with old shells: 6592 build_os=$* 6593 IFS=$ac_save_IFS 6594 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6595 6596 6597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6598 printf %s "checking host system type... " >&6; } 6599 if test ${ac_cv_host+y} 6600 then : 6601 printf %s "(cached) " >&6 6602 else case e in #( 6603 e) if test "x$host_alias" = x; then 6604 ac_cv_host=$ac_cv_build 6605 else 6606 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 6607 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 6608 fi 6609 ;; 6610 esac 6611 fi 6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6613 printf "%s\n" "$ac_cv_host" >&6; } 6614 case $ac_cv_host in 6615 *-*-*) ;; 6616 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6617 esac 6618 host=$ac_cv_host 6619 ac_save_IFS=$IFS; IFS='-' 6620 set x $ac_cv_host 6621 shift 6622 host_cpu=$1 6623 host_vendor=$2 6624 shift; shift 6625 # Remember, the first character of IFS is used to create $*, 6626 # except with old shells: 6627 host_os=$* 6628 IFS=$ac_save_IFS 6629 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6630 6631 6632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6633 printf %s "checking for a sed that does not truncate output... " >&6; } 6634 if test ${ac_cv_path_SED+y} 6635 then : 6636 printf %s "(cached) " >&6 6637 else case e in #( 6638 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6639 for ac_i in 1 2 3 4 5 6 7; do 6640 ac_script="$ac_script$as_nl$ac_script" 6641 done 6642 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6643 { ac_script=; unset ac_script;} 6644 if test -z "$SED"; then 6645 ac_path_SED_found=false 6646 # Loop through the user's path and test for each of PROGNAME-LIST 6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6648 for as_dir in $PATH 6649 do 6650 IFS=$as_save_IFS 6651 case $as_dir in #((( 6652 '') as_dir=./ ;; 6653 */) ;; 6654 *) as_dir=$as_dir/ ;; 6655 esac 6656 for ac_prog in sed gsed 6657 do 6658 for ac_exec_ext in '' $ac_executable_extensions; do 6659 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 6660 as_fn_executable_p "$ac_path_SED" || continue 6661 # Check for GNU ac_path_SED and select it if it is found. 6662 # Check for GNU $ac_path_SED 6663 case `"$ac_path_SED" --version 2>&1` in #( 6664 *GNU*) 6665 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6666 #( 6667 *) 6668 ac_count=0 6669 printf %s 0123456789 >"conftest.in" 6670 while : 6671 do 6672 cat "conftest.in" "conftest.in" >"conftest.tmp" 6673 mv "conftest.tmp" "conftest.in" 6674 cp "conftest.in" "conftest.nl" 6675 printf "%s\n" '' >> "conftest.nl" 6676 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6678 as_fn_arith $ac_count + 1 && ac_count=$as_val 6679 if test $ac_count -gt ${ac_path_SED_max-0}; then 6680 # Best one so far, save it but keep looking for a better one 6681 ac_cv_path_SED="$ac_path_SED" 6682 ac_path_SED_max=$ac_count 6683 fi 6684 # 10*(2^10) chars as input seems more than enough 6685 test $ac_count -gt 10 && break 6686 done 6687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6688 esac 6689 6690 $ac_path_SED_found && break 3 6691 done 6692 done 6693 done 6694 IFS=$as_save_IFS 6695 if test -z "$ac_cv_path_SED"; then 6696 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6697 fi 6698 else 6699 ac_cv_path_SED=$SED 6700 fi 6701 ;; 6702 esac 6703 fi 6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6705 printf "%s\n" "$ac_cv_path_SED" >&6; } 6706 SED="$ac_cv_path_SED" 6707 rm -f conftest.sed 6708 6709 6710 6711 6712 6713 6714 # Check whether --enable-selective-werror was given. 6715 if test ${enable_selective_werror+y} 6716 then : 6717 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 6718 else case e in #( 6719 e) SELECTIVE_WERROR=yes ;; 6720 esac 6721 fi 6722 6723 6724 6725 6726 6727 # -v is too short to test reliably with XORG_TESTSET_CFLAG 6728 if test "x$SUNCC" = "xyes"; then 6729 BASE_CFLAGS="-v" 6730 else 6731 BASE_CFLAGS="" 6732 fi 6733 6734 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 xorg_testset_save_CFLAGS="$CFLAGS" 6749 6750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6753 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6754 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6755 then : 6756 printf %s "(cached) " >&6 6757 else case e in #( 6758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6759 /* end confdefs.h. */ 6760 int i; 6761 _ACEOF 6762 if ac_fn_c_try_compile "$LINENO" 6763 then : 6764 xorg_cv_cc_flag_unknown_warning_option=yes 6765 else case e in #( 6766 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6767 esac 6768 fi 6769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6770 esac 6771 fi 6772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6773 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6775 CFLAGS="$xorg_testset_save_CFLAGS" 6776 fi 6777 6778 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6781 fi 6782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6784 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6785 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6786 then : 6787 printf %s "(cached) " >&6 6788 else case e in #( 6789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6790 /* end confdefs.h. */ 6791 int i; 6792 _ACEOF 6793 if ac_fn_c_try_compile "$LINENO" 6794 then : 6795 xorg_cv_cc_flag_unused_command_line_argument=yes 6796 else case e in #( 6797 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6798 esac 6799 fi 6800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6801 esac 6802 fi 6803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6804 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6806 CFLAGS="$xorg_testset_save_CFLAGS" 6807 fi 6808 6809 found="no" 6810 6811 if test $found = "no" ; then 6812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6814 fi 6815 6816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6818 fi 6819 6820 CFLAGS="$CFLAGS -Wall" 6821 6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 6823 printf %s "checking if $CC supports -Wall... " >&6; } 6824 cacheid=xorg_cv_cc_flag__Wall 6825 if eval test \${$cacheid+y} 6826 then : 6827 printf %s "(cached) " >&6 6828 else case e in #( 6829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6830 /* end confdefs.h. */ 6831 int i; 6832 int 6833 main (void) 6834 { 6835 6836 ; 6837 return 0; 6838 } 6839 _ACEOF 6840 if ac_fn_c_try_link "$LINENO" 6841 then : 6842 eval $cacheid=yes 6843 else case e in #( 6844 e) eval $cacheid=no ;; 6845 esac 6846 fi 6847 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6848 conftest$ac_exeext conftest.$ac_ext ;; 6849 esac 6850 fi 6851 6852 6853 CFLAGS="$xorg_testset_save_CFLAGS" 6854 6855 eval supported=\$$cacheid 6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6857 printf "%s\n" "$supported" >&6; } 6858 if test "$supported" = "yes" ; then 6859 BASE_CFLAGS="$BASE_CFLAGS -Wall" 6860 found="yes" 6861 fi 6862 fi 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 xorg_testset_save_CFLAGS="$CFLAGS" 6879 6880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6883 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6884 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6885 then : 6886 printf %s "(cached) " >&6 6887 else case e in #( 6888 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6889 /* end confdefs.h. */ 6890 int i; 6891 _ACEOF 6892 if ac_fn_c_try_compile "$LINENO" 6893 then : 6894 xorg_cv_cc_flag_unknown_warning_option=yes 6895 else case e in #( 6896 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6897 esac 6898 fi 6899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6900 esac 6901 fi 6902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6903 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6905 CFLAGS="$xorg_testset_save_CFLAGS" 6906 fi 6907 6908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6911 fi 6912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6914 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6915 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6916 then : 6917 printf %s "(cached) " >&6 6918 else case e in #( 6919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6920 /* end confdefs.h. */ 6921 int i; 6922 _ACEOF 6923 if ac_fn_c_try_compile "$LINENO" 6924 then : 6925 xorg_cv_cc_flag_unused_command_line_argument=yes 6926 else case e in #( 6927 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6928 esac 6929 fi 6930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6931 esac 6932 fi 6933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6934 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6936 CFLAGS="$xorg_testset_save_CFLAGS" 6937 fi 6938 6939 found="no" 6940 6941 if test $found = "no" ; then 6942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6944 fi 6945 6946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6948 fi 6949 6950 CFLAGS="$CFLAGS -Wpointer-arith" 6951 6952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 6953 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 6954 cacheid=xorg_cv_cc_flag__Wpointer_arith 6955 if eval test \${$cacheid+y} 6956 then : 6957 printf %s "(cached) " >&6 6958 else case e in #( 6959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6960 /* end confdefs.h. */ 6961 int i; 6962 int 6963 main (void) 6964 { 6965 6966 ; 6967 return 0; 6968 } 6969 _ACEOF 6970 if ac_fn_c_try_link "$LINENO" 6971 then : 6972 eval $cacheid=yes 6973 else case e in #( 6974 e) eval $cacheid=no ;; 6975 esac 6976 fi 6977 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6978 conftest$ac_exeext conftest.$ac_ext ;; 6979 esac 6980 fi 6981 6982 6983 CFLAGS="$xorg_testset_save_CFLAGS" 6984 6985 eval supported=\$$cacheid 6986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6987 printf "%s\n" "$supported" >&6; } 6988 if test "$supported" = "yes" ; then 6989 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 6990 found="yes" 6991 fi 6992 fi 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 xorg_testset_save_CFLAGS="$CFLAGS" 7009 7010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7013 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7014 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7015 then : 7016 printf %s "(cached) " >&6 7017 else case e in #( 7018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7019 /* end confdefs.h. */ 7020 int i; 7021 _ACEOF 7022 if ac_fn_c_try_compile "$LINENO" 7023 then : 7024 xorg_cv_cc_flag_unknown_warning_option=yes 7025 else case e in #( 7026 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7027 esac 7028 fi 7029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7030 esac 7031 fi 7032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7033 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7035 CFLAGS="$xorg_testset_save_CFLAGS" 7036 fi 7037 7038 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7041 fi 7042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7044 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7045 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7046 then : 7047 printf %s "(cached) " >&6 7048 else case e in #( 7049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7050 /* end confdefs.h. */ 7051 int i; 7052 _ACEOF 7053 if ac_fn_c_try_compile "$LINENO" 7054 then : 7055 xorg_cv_cc_flag_unused_command_line_argument=yes 7056 else case e in #( 7057 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7058 esac 7059 fi 7060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7061 esac 7062 fi 7063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7064 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7066 CFLAGS="$xorg_testset_save_CFLAGS" 7067 fi 7068 7069 found="no" 7070 7071 if test $found = "no" ; then 7072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7074 fi 7075 7076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7078 fi 7079 7080 CFLAGS="$CFLAGS -Wmissing-declarations" 7081 7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 7083 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 7084 cacheid=xorg_cv_cc_flag__Wmissing_declarations 7085 if eval test \${$cacheid+y} 7086 then : 7087 printf %s "(cached) " >&6 7088 else case e in #( 7089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7090 /* end confdefs.h. */ 7091 int i; 7092 int 7093 main (void) 7094 { 7095 7096 ; 7097 return 0; 7098 } 7099 _ACEOF 7100 if ac_fn_c_try_link "$LINENO" 7101 then : 7102 eval $cacheid=yes 7103 else case e in #( 7104 e) eval $cacheid=no ;; 7105 esac 7106 fi 7107 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7108 conftest$ac_exeext conftest.$ac_ext ;; 7109 esac 7110 fi 7111 7112 7113 CFLAGS="$xorg_testset_save_CFLAGS" 7114 7115 eval supported=\$$cacheid 7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7117 printf "%s\n" "$supported" >&6; } 7118 if test "$supported" = "yes" ; then 7119 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 7120 found="yes" 7121 fi 7122 fi 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 xorg_testset_save_CFLAGS="$CFLAGS" 7139 7140 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7143 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7144 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7145 then : 7146 printf %s "(cached) " >&6 7147 else case e in #( 7148 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7149 /* end confdefs.h. */ 7150 int i; 7151 _ACEOF 7152 if ac_fn_c_try_compile "$LINENO" 7153 then : 7154 xorg_cv_cc_flag_unknown_warning_option=yes 7155 else case e in #( 7156 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7157 esac 7158 fi 7159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7160 esac 7161 fi 7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7163 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7165 CFLAGS="$xorg_testset_save_CFLAGS" 7166 fi 7167 7168 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7171 fi 7172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7174 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7175 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7176 then : 7177 printf %s "(cached) " >&6 7178 else case e in #( 7179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7180 /* end confdefs.h. */ 7181 int i; 7182 _ACEOF 7183 if ac_fn_c_try_compile "$LINENO" 7184 then : 7185 xorg_cv_cc_flag_unused_command_line_argument=yes 7186 else case e in #( 7187 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7188 esac 7189 fi 7190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7191 esac 7192 fi 7193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7194 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7196 CFLAGS="$xorg_testset_save_CFLAGS" 7197 fi 7198 7199 found="no" 7200 7201 if test $found = "no" ; then 7202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7204 fi 7205 7206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7208 fi 7209 7210 CFLAGS="$CFLAGS -Wformat=2" 7211 7212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 7213 printf %s "checking if $CC supports -Wformat=2... " >&6; } 7214 cacheid=xorg_cv_cc_flag__Wformat_2 7215 if eval test \${$cacheid+y} 7216 then : 7217 printf %s "(cached) " >&6 7218 else case e in #( 7219 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7220 /* end confdefs.h. */ 7221 int i; 7222 int 7223 main (void) 7224 { 7225 7226 ; 7227 return 0; 7228 } 7229 _ACEOF 7230 if ac_fn_c_try_link "$LINENO" 7231 then : 7232 eval $cacheid=yes 7233 else case e in #( 7234 e) eval $cacheid=no ;; 7235 esac 7236 fi 7237 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7238 conftest$ac_exeext conftest.$ac_ext ;; 7239 esac 7240 fi 7241 7242 7243 CFLAGS="$xorg_testset_save_CFLAGS" 7244 7245 eval supported=\$$cacheid 7246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7247 printf "%s\n" "$supported" >&6; } 7248 if test "$supported" = "yes" ; then 7249 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 7250 found="yes" 7251 fi 7252 fi 7253 7254 if test $found = "no" ; then 7255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7257 fi 7258 7259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7261 fi 7262 7263 CFLAGS="$CFLAGS -Wformat" 7264 7265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 7266 printf %s "checking if $CC supports -Wformat... " >&6; } 7267 cacheid=xorg_cv_cc_flag__Wformat 7268 if eval test \${$cacheid+y} 7269 then : 7270 printf %s "(cached) " >&6 7271 else case e in #( 7272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7273 /* end confdefs.h. */ 7274 int i; 7275 int 7276 main (void) 7277 { 7278 7279 ; 7280 return 0; 7281 } 7282 _ACEOF 7283 if ac_fn_c_try_link "$LINENO" 7284 then : 7285 eval $cacheid=yes 7286 else case e in #( 7287 e) eval $cacheid=no ;; 7288 esac 7289 fi 7290 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7291 conftest$ac_exeext conftest.$ac_ext ;; 7292 esac 7293 fi 7294 7295 7296 CFLAGS="$xorg_testset_save_CFLAGS" 7297 7298 eval supported=\$$cacheid 7299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7300 printf "%s\n" "$supported" >&6; } 7301 if test "$supported" = "yes" ; then 7302 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 7303 found="yes" 7304 fi 7305 fi 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 xorg_testset_save_CFLAGS="$CFLAGS" 7324 7325 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7328 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7329 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7330 then : 7331 printf %s "(cached) " >&6 7332 else case e in #( 7333 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7334 /* end confdefs.h. */ 7335 int i; 7336 _ACEOF 7337 if ac_fn_c_try_compile "$LINENO" 7338 then : 7339 xorg_cv_cc_flag_unknown_warning_option=yes 7340 else case e in #( 7341 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7342 esac 7343 fi 7344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7345 esac 7346 fi 7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7348 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7350 CFLAGS="$xorg_testset_save_CFLAGS" 7351 fi 7352 7353 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7356 fi 7357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7359 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7360 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7361 then : 7362 printf %s "(cached) " >&6 7363 else case e in #( 7364 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7365 /* end confdefs.h. */ 7366 int i; 7367 _ACEOF 7368 if ac_fn_c_try_compile "$LINENO" 7369 then : 7370 xorg_cv_cc_flag_unused_command_line_argument=yes 7371 else case e in #( 7372 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7373 esac 7374 fi 7375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7376 esac 7377 fi 7378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7379 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7381 CFLAGS="$xorg_testset_save_CFLAGS" 7382 fi 7383 7384 found="no" 7385 7386 if test $found = "no" ; then 7387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7389 fi 7390 7391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7393 fi 7394 7395 CFLAGS="$CFLAGS -Wstrict-prototypes" 7396 7397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 7398 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 7399 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 7400 if eval test \${$cacheid+y} 7401 then : 7402 printf %s "(cached) " >&6 7403 else case e in #( 7404 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7405 /* end confdefs.h. */ 7406 int i; 7407 int 7408 main (void) 7409 { 7410 7411 ; 7412 return 0; 7413 } 7414 _ACEOF 7415 if ac_fn_c_try_link "$LINENO" 7416 then : 7417 eval $cacheid=yes 7418 else case e in #( 7419 e) eval $cacheid=no ;; 7420 esac 7421 fi 7422 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7423 conftest$ac_exeext conftest.$ac_ext ;; 7424 esac 7425 fi 7426 7427 7428 CFLAGS="$xorg_testset_save_CFLAGS" 7429 7430 eval supported=\$$cacheid 7431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7432 printf "%s\n" "$supported" >&6; } 7433 if test "$supported" = "yes" ; then 7434 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 7435 found="yes" 7436 fi 7437 fi 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 xorg_testset_save_CFLAGS="$CFLAGS" 7454 7455 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7458 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7459 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7460 then : 7461 printf %s "(cached) " >&6 7462 else case e in #( 7463 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7464 /* end confdefs.h. */ 7465 int i; 7466 _ACEOF 7467 if ac_fn_c_try_compile "$LINENO" 7468 then : 7469 xorg_cv_cc_flag_unknown_warning_option=yes 7470 else case e in #( 7471 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7472 esac 7473 fi 7474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7475 esac 7476 fi 7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7478 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7480 CFLAGS="$xorg_testset_save_CFLAGS" 7481 fi 7482 7483 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7486 fi 7487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7489 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7490 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7491 then : 7492 printf %s "(cached) " >&6 7493 else case e in #( 7494 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7495 /* end confdefs.h. */ 7496 int i; 7497 _ACEOF 7498 if ac_fn_c_try_compile "$LINENO" 7499 then : 7500 xorg_cv_cc_flag_unused_command_line_argument=yes 7501 else case e in #( 7502 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7503 esac 7504 fi 7505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7506 esac 7507 fi 7508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7509 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7511 CFLAGS="$xorg_testset_save_CFLAGS" 7512 fi 7513 7514 found="no" 7515 7516 if test $found = "no" ; then 7517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7519 fi 7520 7521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7523 fi 7524 7525 CFLAGS="$CFLAGS -Wmissing-prototypes" 7526 7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 7528 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 7529 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 7530 if eval test \${$cacheid+y} 7531 then : 7532 printf %s "(cached) " >&6 7533 else case e in #( 7534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7535 /* end confdefs.h. */ 7536 int i; 7537 int 7538 main (void) 7539 { 7540 7541 ; 7542 return 0; 7543 } 7544 _ACEOF 7545 if ac_fn_c_try_link "$LINENO" 7546 then : 7547 eval $cacheid=yes 7548 else case e in #( 7549 e) eval $cacheid=no ;; 7550 esac 7551 fi 7552 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7553 conftest$ac_exeext conftest.$ac_ext ;; 7554 esac 7555 fi 7556 7557 7558 CFLAGS="$xorg_testset_save_CFLAGS" 7559 7560 eval supported=\$$cacheid 7561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7562 printf "%s\n" "$supported" >&6; } 7563 if test "$supported" = "yes" ; then 7564 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 7565 found="yes" 7566 fi 7567 fi 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 xorg_testset_save_CFLAGS="$CFLAGS" 7584 7585 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7588 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7589 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7590 then : 7591 printf %s "(cached) " >&6 7592 else case e in #( 7593 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7594 /* end confdefs.h. */ 7595 int i; 7596 _ACEOF 7597 if ac_fn_c_try_compile "$LINENO" 7598 then : 7599 xorg_cv_cc_flag_unknown_warning_option=yes 7600 else case e in #( 7601 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7602 esac 7603 fi 7604 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7605 esac 7606 fi 7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7608 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7610 CFLAGS="$xorg_testset_save_CFLAGS" 7611 fi 7612 7613 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7616 fi 7617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7619 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7620 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7621 then : 7622 printf %s "(cached) " >&6 7623 else case e in #( 7624 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7625 /* end confdefs.h. */ 7626 int i; 7627 _ACEOF 7628 if ac_fn_c_try_compile "$LINENO" 7629 then : 7630 xorg_cv_cc_flag_unused_command_line_argument=yes 7631 else case e in #( 7632 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7633 esac 7634 fi 7635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7636 esac 7637 fi 7638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7639 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7641 CFLAGS="$xorg_testset_save_CFLAGS" 7642 fi 7643 7644 found="no" 7645 7646 if test $found = "no" ; then 7647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7649 fi 7650 7651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7653 fi 7654 7655 CFLAGS="$CFLAGS -Wnested-externs" 7656 7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 7658 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 7659 cacheid=xorg_cv_cc_flag__Wnested_externs 7660 if eval test \${$cacheid+y} 7661 then : 7662 printf %s "(cached) " >&6 7663 else case e in #( 7664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7665 /* end confdefs.h. */ 7666 int i; 7667 int 7668 main (void) 7669 { 7670 7671 ; 7672 return 0; 7673 } 7674 _ACEOF 7675 if ac_fn_c_try_link "$LINENO" 7676 then : 7677 eval $cacheid=yes 7678 else case e in #( 7679 e) eval $cacheid=no ;; 7680 esac 7681 fi 7682 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7683 conftest$ac_exeext conftest.$ac_ext ;; 7684 esac 7685 fi 7686 7687 7688 CFLAGS="$xorg_testset_save_CFLAGS" 7689 7690 eval supported=\$$cacheid 7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7692 printf "%s\n" "$supported" >&6; } 7693 if test "$supported" = "yes" ; then 7694 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 7695 found="yes" 7696 fi 7697 fi 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 xorg_testset_save_CFLAGS="$CFLAGS" 7714 7715 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7718 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7719 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7720 then : 7721 printf %s "(cached) " >&6 7722 else case e in #( 7723 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7724 /* end confdefs.h. */ 7725 int i; 7726 _ACEOF 7727 if ac_fn_c_try_compile "$LINENO" 7728 then : 7729 xorg_cv_cc_flag_unknown_warning_option=yes 7730 else case e in #( 7731 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7732 esac 7733 fi 7734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7735 esac 7736 fi 7737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7738 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7740 CFLAGS="$xorg_testset_save_CFLAGS" 7741 fi 7742 7743 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7746 fi 7747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7749 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7750 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7751 then : 7752 printf %s "(cached) " >&6 7753 else case e in #( 7754 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7755 /* end confdefs.h. */ 7756 int i; 7757 _ACEOF 7758 if ac_fn_c_try_compile "$LINENO" 7759 then : 7760 xorg_cv_cc_flag_unused_command_line_argument=yes 7761 else case e in #( 7762 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7763 esac 7764 fi 7765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7766 esac 7767 fi 7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7769 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7771 CFLAGS="$xorg_testset_save_CFLAGS" 7772 fi 7773 7774 found="no" 7775 7776 if test $found = "no" ; then 7777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7779 fi 7780 7781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7783 fi 7784 7785 CFLAGS="$CFLAGS -Wbad-function-cast" 7786 7787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 7788 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 7789 cacheid=xorg_cv_cc_flag__Wbad_function_cast 7790 if eval test \${$cacheid+y} 7791 then : 7792 printf %s "(cached) " >&6 7793 else case e in #( 7794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7795 /* end confdefs.h. */ 7796 int i; 7797 int 7798 main (void) 7799 { 7800 7801 ; 7802 return 0; 7803 } 7804 _ACEOF 7805 if ac_fn_c_try_link "$LINENO" 7806 then : 7807 eval $cacheid=yes 7808 else case e in #( 7809 e) eval $cacheid=no ;; 7810 esac 7811 fi 7812 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7813 conftest$ac_exeext conftest.$ac_ext ;; 7814 esac 7815 fi 7816 7817 7818 CFLAGS="$xorg_testset_save_CFLAGS" 7819 7820 eval supported=\$$cacheid 7821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7822 printf "%s\n" "$supported" >&6; } 7823 if test "$supported" = "yes" ; then 7824 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 7825 found="yes" 7826 fi 7827 fi 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 xorg_testset_save_CFLAGS="$CFLAGS" 7844 7845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7848 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7849 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7850 then : 7851 printf %s "(cached) " >&6 7852 else case e in #( 7853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7854 /* end confdefs.h. */ 7855 int i; 7856 _ACEOF 7857 if ac_fn_c_try_compile "$LINENO" 7858 then : 7859 xorg_cv_cc_flag_unknown_warning_option=yes 7860 else case e in #( 7861 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7862 esac 7863 fi 7864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7865 esac 7866 fi 7867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7868 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7870 CFLAGS="$xorg_testset_save_CFLAGS" 7871 fi 7872 7873 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7876 fi 7877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7879 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7880 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7881 then : 7882 printf %s "(cached) " >&6 7883 else case e in #( 7884 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7885 /* end confdefs.h. */ 7886 int i; 7887 _ACEOF 7888 if ac_fn_c_try_compile "$LINENO" 7889 then : 7890 xorg_cv_cc_flag_unused_command_line_argument=yes 7891 else case e in #( 7892 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7893 esac 7894 fi 7895 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7896 esac 7897 fi 7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7899 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7901 CFLAGS="$xorg_testset_save_CFLAGS" 7902 fi 7903 7904 found="no" 7905 7906 if test $found = "no" ; then 7907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7909 fi 7910 7911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7913 fi 7914 7915 CFLAGS="$CFLAGS -Wold-style-definition" 7916 7917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 7918 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 7919 cacheid=xorg_cv_cc_flag__Wold_style_definition 7920 if eval test \${$cacheid+y} 7921 then : 7922 printf %s "(cached) " >&6 7923 else case e in #( 7924 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7925 /* end confdefs.h. */ 7926 int i; 7927 int 7928 main (void) 7929 { 7930 7931 ; 7932 return 0; 7933 } 7934 _ACEOF 7935 if ac_fn_c_try_link "$LINENO" 7936 then : 7937 eval $cacheid=yes 7938 else case e in #( 7939 e) eval $cacheid=no ;; 7940 esac 7941 fi 7942 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7943 conftest$ac_exeext conftest.$ac_ext ;; 7944 esac 7945 fi 7946 7947 7948 CFLAGS="$xorg_testset_save_CFLAGS" 7949 7950 eval supported=\$$cacheid 7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7952 printf "%s\n" "$supported" >&6; } 7953 if test "$supported" = "yes" ; then 7954 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 7955 found="yes" 7956 fi 7957 fi 7958 7959 if test $found = "no" ; then 7960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7962 fi 7963 7964 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7966 fi 7967 7968 CFLAGS="$CFLAGS -fd" 7969 7970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 7971 printf %s "checking if $CC supports -fd... " >&6; } 7972 cacheid=xorg_cv_cc_flag__fd 7973 if eval test \${$cacheid+y} 7974 then : 7975 printf %s "(cached) " >&6 7976 else case e in #( 7977 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7978 /* end confdefs.h. */ 7979 int i; 7980 int 7981 main (void) 7982 { 7983 7984 ; 7985 return 0; 7986 } 7987 _ACEOF 7988 if ac_fn_c_try_link "$LINENO" 7989 then : 7990 eval $cacheid=yes 7991 else case e in #( 7992 e) eval $cacheid=no ;; 7993 esac 7994 fi 7995 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7996 conftest$ac_exeext conftest.$ac_ext ;; 7997 esac 7998 fi 7999 8000 8001 CFLAGS="$xorg_testset_save_CFLAGS" 8002 8003 eval supported=\$$cacheid 8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8005 printf "%s\n" "$supported" >&6; } 8006 if test "$supported" = "yes" ; then 8007 BASE_CFLAGS="$BASE_CFLAGS -fd" 8008 found="yes" 8009 fi 8010 fi 8011 8012 8013 8014 8015 8016 # This chunk adds additional warnings that could catch undesired effects. 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 xorg_testset_save_CFLAGS="$CFLAGS" 8031 8032 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8035 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8036 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8037 then : 8038 printf %s "(cached) " >&6 8039 else case e in #( 8040 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8041 /* end confdefs.h. */ 8042 int i; 8043 _ACEOF 8044 if ac_fn_c_try_compile "$LINENO" 8045 then : 8046 xorg_cv_cc_flag_unknown_warning_option=yes 8047 else case e in #( 8048 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8049 esac 8050 fi 8051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8052 esac 8053 fi 8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8055 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8057 CFLAGS="$xorg_testset_save_CFLAGS" 8058 fi 8059 8060 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8063 fi 8064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8066 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8067 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8068 then : 8069 printf %s "(cached) " >&6 8070 else case e in #( 8071 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8072 /* end confdefs.h. */ 8073 int i; 8074 _ACEOF 8075 if ac_fn_c_try_compile "$LINENO" 8076 then : 8077 xorg_cv_cc_flag_unused_command_line_argument=yes 8078 else case e in #( 8079 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8080 esac 8081 fi 8082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8083 esac 8084 fi 8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8086 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8088 CFLAGS="$xorg_testset_save_CFLAGS" 8089 fi 8090 8091 found="no" 8092 8093 if test $found = "no" ; then 8094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8096 fi 8097 8098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8100 fi 8101 8102 CFLAGS="$CFLAGS -Wunused" 8103 8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 8105 printf %s "checking if $CC supports -Wunused... " >&6; } 8106 cacheid=xorg_cv_cc_flag__Wunused 8107 if eval test \${$cacheid+y} 8108 then : 8109 printf %s "(cached) " >&6 8110 else case e in #( 8111 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8112 /* end confdefs.h. */ 8113 int i; 8114 int 8115 main (void) 8116 { 8117 8118 ; 8119 return 0; 8120 } 8121 _ACEOF 8122 if ac_fn_c_try_link "$LINENO" 8123 then : 8124 eval $cacheid=yes 8125 else case e in #( 8126 e) eval $cacheid=no ;; 8127 esac 8128 fi 8129 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8130 conftest$ac_exeext conftest.$ac_ext ;; 8131 esac 8132 fi 8133 8134 8135 CFLAGS="$xorg_testset_save_CFLAGS" 8136 8137 eval supported=\$$cacheid 8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8139 printf "%s\n" "$supported" >&6; } 8140 if test "$supported" = "yes" ; then 8141 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 8142 found="yes" 8143 fi 8144 fi 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 xorg_testset_save_CFLAGS="$CFLAGS" 8161 8162 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8165 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8166 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8167 then : 8168 printf %s "(cached) " >&6 8169 else case e in #( 8170 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8171 /* end confdefs.h. */ 8172 int i; 8173 _ACEOF 8174 if ac_fn_c_try_compile "$LINENO" 8175 then : 8176 xorg_cv_cc_flag_unknown_warning_option=yes 8177 else case e in #( 8178 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8179 esac 8180 fi 8181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8182 esac 8183 fi 8184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8185 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8187 CFLAGS="$xorg_testset_save_CFLAGS" 8188 fi 8189 8190 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8193 fi 8194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8196 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8197 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8198 then : 8199 printf %s "(cached) " >&6 8200 else case e in #( 8201 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8202 /* end confdefs.h. */ 8203 int i; 8204 _ACEOF 8205 if ac_fn_c_try_compile "$LINENO" 8206 then : 8207 xorg_cv_cc_flag_unused_command_line_argument=yes 8208 else case e in #( 8209 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8210 esac 8211 fi 8212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8213 esac 8214 fi 8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8216 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8218 CFLAGS="$xorg_testset_save_CFLAGS" 8219 fi 8220 8221 found="no" 8222 8223 if test $found = "no" ; then 8224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8226 fi 8227 8228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8230 fi 8231 8232 CFLAGS="$CFLAGS -Wuninitialized" 8233 8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 8235 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 8236 cacheid=xorg_cv_cc_flag__Wuninitialized 8237 if eval test \${$cacheid+y} 8238 then : 8239 printf %s "(cached) " >&6 8240 else case e in #( 8241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8242 /* end confdefs.h. */ 8243 int i; 8244 int 8245 main (void) 8246 { 8247 8248 ; 8249 return 0; 8250 } 8251 _ACEOF 8252 if ac_fn_c_try_link "$LINENO" 8253 then : 8254 eval $cacheid=yes 8255 else case e in #( 8256 e) eval $cacheid=no ;; 8257 esac 8258 fi 8259 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8260 conftest$ac_exeext conftest.$ac_ext ;; 8261 esac 8262 fi 8263 8264 8265 CFLAGS="$xorg_testset_save_CFLAGS" 8266 8267 eval supported=\$$cacheid 8268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8269 printf "%s\n" "$supported" >&6; } 8270 if test "$supported" = "yes" ; then 8271 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 8272 found="yes" 8273 fi 8274 fi 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 xorg_testset_save_CFLAGS="$CFLAGS" 8291 8292 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8295 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8296 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8297 then : 8298 printf %s "(cached) " >&6 8299 else case e in #( 8300 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8301 /* end confdefs.h. */ 8302 int i; 8303 _ACEOF 8304 if ac_fn_c_try_compile "$LINENO" 8305 then : 8306 xorg_cv_cc_flag_unknown_warning_option=yes 8307 else case e in #( 8308 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8309 esac 8310 fi 8311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8312 esac 8313 fi 8314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8315 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8317 CFLAGS="$xorg_testset_save_CFLAGS" 8318 fi 8319 8320 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8323 fi 8324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8326 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8327 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8328 then : 8329 printf %s "(cached) " >&6 8330 else case e in #( 8331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8332 /* end confdefs.h. */ 8333 int i; 8334 _ACEOF 8335 if ac_fn_c_try_compile "$LINENO" 8336 then : 8337 xorg_cv_cc_flag_unused_command_line_argument=yes 8338 else case e in #( 8339 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8340 esac 8341 fi 8342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8343 esac 8344 fi 8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8346 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8348 CFLAGS="$xorg_testset_save_CFLAGS" 8349 fi 8350 8351 found="no" 8352 8353 if test $found = "no" ; then 8354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8356 fi 8357 8358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8360 fi 8361 8362 CFLAGS="$CFLAGS -Wshadow" 8363 8364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 8365 printf %s "checking if $CC supports -Wshadow... " >&6; } 8366 cacheid=xorg_cv_cc_flag__Wshadow 8367 if eval test \${$cacheid+y} 8368 then : 8369 printf %s "(cached) " >&6 8370 else case e in #( 8371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8372 /* end confdefs.h. */ 8373 int i; 8374 int 8375 main (void) 8376 { 8377 8378 ; 8379 return 0; 8380 } 8381 _ACEOF 8382 if ac_fn_c_try_link "$LINENO" 8383 then : 8384 eval $cacheid=yes 8385 else case e in #( 8386 e) eval $cacheid=no ;; 8387 esac 8388 fi 8389 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8390 conftest$ac_exeext conftest.$ac_ext ;; 8391 esac 8392 fi 8393 8394 8395 CFLAGS="$xorg_testset_save_CFLAGS" 8396 8397 eval supported=\$$cacheid 8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8399 printf "%s\n" "$supported" >&6; } 8400 if test "$supported" = "yes" ; then 8401 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 8402 found="yes" 8403 fi 8404 fi 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 xorg_testset_save_CFLAGS="$CFLAGS" 8421 8422 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8425 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8426 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8427 then : 8428 printf %s "(cached) " >&6 8429 else case e in #( 8430 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8431 /* end confdefs.h. */ 8432 int i; 8433 _ACEOF 8434 if ac_fn_c_try_compile "$LINENO" 8435 then : 8436 xorg_cv_cc_flag_unknown_warning_option=yes 8437 else case e in #( 8438 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8439 esac 8440 fi 8441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8442 esac 8443 fi 8444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8445 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8447 CFLAGS="$xorg_testset_save_CFLAGS" 8448 fi 8449 8450 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8453 fi 8454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8456 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8457 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8458 then : 8459 printf %s "(cached) " >&6 8460 else case e in #( 8461 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8462 /* end confdefs.h. */ 8463 int i; 8464 _ACEOF 8465 if ac_fn_c_try_compile "$LINENO" 8466 then : 8467 xorg_cv_cc_flag_unused_command_line_argument=yes 8468 else case e in #( 8469 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8470 esac 8471 fi 8472 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8473 esac 8474 fi 8475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8476 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8478 CFLAGS="$xorg_testset_save_CFLAGS" 8479 fi 8480 8481 found="no" 8482 8483 if test $found = "no" ; then 8484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8486 fi 8487 8488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8490 fi 8491 8492 CFLAGS="$CFLAGS -Wmissing-noreturn" 8493 8494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 8495 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 8496 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 8497 if eval test \${$cacheid+y} 8498 then : 8499 printf %s "(cached) " >&6 8500 else case e in #( 8501 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8502 /* end confdefs.h. */ 8503 int i; 8504 int 8505 main (void) 8506 { 8507 8508 ; 8509 return 0; 8510 } 8511 _ACEOF 8512 if ac_fn_c_try_link "$LINENO" 8513 then : 8514 eval $cacheid=yes 8515 else case e in #( 8516 e) eval $cacheid=no ;; 8517 esac 8518 fi 8519 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8520 conftest$ac_exeext conftest.$ac_ext ;; 8521 esac 8522 fi 8523 8524 8525 CFLAGS="$xorg_testset_save_CFLAGS" 8526 8527 eval supported=\$$cacheid 8528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8529 printf "%s\n" "$supported" >&6; } 8530 if test "$supported" = "yes" ; then 8531 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 8532 found="yes" 8533 fi 8534 fi 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 xorg_testset_save_CFLAGS="$CFLAGS" 8551 8552 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8555 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8556 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8557 then : 8558 printf %s "(cached) " >&6 8559 else case e in #( 8560 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8561 /* end confdefs.h. */ 8562 int i; 8563 _ACEOF 8564 if ac_fn_c_try_compile "$LINENO" 8565 then : 8566 xorg_cv_cc_flag_unknown_warning_option=yes 8567 else case e in #( 8568 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8569 esac 8570 fi 8571 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8572 esac 8573 fi 8574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8575 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8577 CFLAGS="$xorg_testset_save_CFLAGS" 8578 fi 8579 8580 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8583 fi 8584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8586 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8587 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8588 then : 8589 printf %s "(cached) " >&6 8590 else case e in #( 8591 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8592 /* end confdefs.h. */ 8593 int i; 8594 _ACEOF 8595 if ac_fn_c_try_compile "$LINENO" 8596 then : 8597 xorg_cv_cc_flag_unused_command_line_argument=yes 8598 else case e in #( 8599 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8600 esac 8601 fi 8602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8603 esac 8604 fi 8605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8606 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8608 CFLAGS="$xorg_testset_save_CFLAGS" 8609 fi 8610 8611 found="no" 8612 8613 if test $found = "no" ; then 8614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8616 fi 8617 8618 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8620 fi 8621 8622 CFLAGS="$CFLAGS -Wmissing-format-attribute" 8623 8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 8625 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 8626 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 8627 if eval test \${$cacheid+y} 8628 then : 8629 printf %s "(cached) " >&6 8630 else case e in #( 8631 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8632 /* end confdefs.h. */ 8633 int i; 8634 int 8635 main (void) 8636 { 8637 8638 ; 8639 return 0; 8640 } 8641 _ACEOF 8642 if ac_fn_c_try_link "$LINENO" 8643 then : 8644 eval $cacheid=yes 8645 else case e in #( 8646 e) eval $cacheid=no ;; 8647 esac 8648 fi 8649 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8650 conftest$ac_exeext conftest.$ac_ext ;; 8651 esac 8652 fi 8653 8654 8655 CFLAGS="$xorg_testset_save_CFLAGS" 8656 8657 eval supported=\$$cacheid 8658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8659 printf "%s\n" "$supported" >&6; } 8660 if test "$supported" = "yes" ; then 8661 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 8662 found="yes" 8663 fi 8664 fi 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 xorg_testset_save_CFLAGS="$CFLAGS" 8681 8682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8685 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8686 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8687 then : 8688 printf %s "(cached) " >&6 8689 else case e in #( 8690 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8691 /* end confdefs.h. */ 8692 int i; 8693 _ACEOF 8694 if ac_fn_c_try_compile "$LINENO" 8695 then : 8696 xorg_cv_cc_flag_unknown_warning_option=yes 8697 else case e in #( 8698 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8699 esac 8700 fi 8701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8702 esac 8703 fi 8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8705 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8707 CFLAGS="$xorg_testset_save_CFLAGS" 8708 fi 8709 8710 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8713 fi 8714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8716 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8717 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8718 then : 8719 printf %s "(cached) " >&6 8720 else case e in #( 8721 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8722 /* end confdefs.h. */ 8723 int i; 8724 _ACEOF 8725 if ac_fn_c_try_compile "$LINENO" 8726 then : 8727 xorg_cv_cc_flag_unused_command_line_argument=yes 8728 else case e in #( 8729 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8730 esac 8731 fi 8732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8733 esac 8734 fi 8735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8736 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8738 CFLAGS="$xorg_testset_save_CFLAGS" 8739 fi 8740 8741 found="no" 8742 8743 if test $found = "no" ; then 8744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8746 fi 8747 8748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8750 fi 8751 8752 CFLAGS="$CFLAGS -Wredundant-decls" 8753 8754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 8755 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 8756 cacheid=xorg_cv_cc_flag__Wredundant_decls 8757 if eval test \${$cacheid+y} 8758 then : 8759 printf %s "(cached) " >&6 8760 else case e in #( 8761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8762 /* end confdefs.h. */ 8763 int i; 8764 int 8765 main (void) 8766 { 8767 8768 ; 8769 return 0; 8770 } 8771 _ACEOF 8772 if ac_fn_c_try_link "$LINENO" 8773 then : 8774 eval $cacheid=yes 8775 else case e in #( 8776 e) eval $cacheid=no ;; 8777 esac 8778 fi 8779 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8780 conftest$ac_exeext conftest.$ac_ext ;; 8781 esac 8782 fi 8783 8784 8785 CFLAGS="$xorg_testset_save_CFLAGS" 8786 8787 eval supported=\$$cacheid 8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8789 printf "%s\n" "$supported" >&6; } 8790 if test "$supported" = "yes" ; then 8791 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 8792 found="yes" 8793 fi 8794 fi 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 xorg_testset_save_CFLAGS="$CFLAGS" 8811 8812 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8815 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8816 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8817 then : 8818 printf %s "(cached) " >&6 8819 else case e in #( 8820 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8821 /* end confdefs.h. */ 8822 int i; 8823 _ACEOF 8824 if ac_fn_c_try_compile "$LINENO" 8825 then : 8826 xorg_cv_cc_flag_unknown_warning_option=yes 8827 else case e in #( 8828 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8829 esac 8830 fi 8831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8832 esac 8833 fi 8834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8835 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8837 CFLAGS="$xorg_testset_save_CFLAGS" 8838 fi 8839 8840 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8843 fi 8844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8846 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8847 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8848 then : 8849 printf %s "(cached) " >&6 8850 else case e in #( 8851 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8852 /* end confdefs.h. */ 8853 int i; 8854 _ACEOF 8855 if ac_fn_c_try_compile "$LINENO" 8856 then : 8857 xorg_cv_cc_flag_unused_command_line_argument=yes 8858 else case e in #( 8859 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8860 esac 8861 fi 8862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8863 esac 8864 fi 8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8866 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8868 CFLAGS="$xorg_testset_save_CFLAGS" 8869 fi 8870 8871 found="no" 8872 8873 if test $found = "no" ; then 8874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8876 fi 8877 8878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8880 fi 8881 8882 CFLAGS="$CFLAGS -Wlogical-op" 8883 8884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 8885 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 8886 cacheid=xorg_cv_cc_flag__Wlogical_op 8887 if eval test \${$cacheid+y} 8888 then : 8889 printf %s "(cached) " >&6 8890 else case e in #( 8891 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8892 /* end confdefs.h. */ 8893 int i; 8894 int 8895 main (void) 8896 { 8897 8898 ; 8899 return 0; 8900 } 8901 _ACEOF 8902 if ac_fn_c_try_link "$LINENO" 8903 then : 8904 eval $cacheid=yes 8905 else case e in #( 8906 e) eval $cacheid=no ;; 8907 esac 8908 fi 8909 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8910 conftest$ac_exeext conftest.$ac_ext ;; 8911 esac 8912 fi 8913 8914 8915 CFLAGS="$xorg_testset_save_CFLAGS" 8916 8917 eval supported=\$$cacheid 8918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8919 printf "%s\n" "$supported" >&6; } 8920 if test "$supported" = "yes" ; then 8921 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 8922 found="yes" 8923 fi 8924 fi 8925 8926 8927 8928 # These are currently disabled because they are noisy. They will be enabled 8929 # in the future once the codebase is sufficiently modernized to silence 8930 # them. For now, I don't want them to drown out the other warnings. 8931 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 8932 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 8933 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 8934 8935 # Turn some warnings into errors, so we don't accidentally get successful builds 8936 # when there are problems that should be fixed. 8937 8938 if test "x$SELECTIVE_WERROR" = "xyes" ; then 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 xorg_testset_save_CFLAGS="$CFLAGS" 8953 8954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8957 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8958 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8959 then : 8960 printf %s "(cached) " >&6 8961 else case e in #( 8962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8963 /* end confdefs.h. */ 8964 int i; 8965 _ACEOF 8966 if ac_fn_c_try_compile "$LINENO" 8967 then : 8968 xorg_cv_cc_flag_unknown_warning_option=yes 8969 else case e in #( 8970 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8971 esac 8972 fi 8973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8974 esac 8975 fi 8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8977 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8979 CFLAGS="$xorg_testset_save_CFLAGS" 8980 fi 8981 8982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8985 fi 8986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8988 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8989 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8990 then : 8991 printf %s "(cached) " >&6 8992 else case e in #( 8993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8994 /* end confdefs.h. */ 8995 int i; 8996 _ACEOF 8997 if ac_fn_c_try_compile "$LINENO" 8998 then : 8999 xorg_cv_cc_flag_unused_command_line_argument=yes 9000 else case e in #( 9001 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9002 esac 9003 fi 9004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9005 esac 9006 fi 9007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9008 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9010 CFLAGS="$xorg_testset_save_CFLAGS" 9011 fi 9012 9013 found="no" 9014 9015 if test $found = "no" ; then 9016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9018 fi 9019 9020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9022 fi 9023 9024 CFLAGS="$CFLAGS -Werror=implicit" 9025 9026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 9027 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 9028 cacheid=xorg_cv_cc_flag__Werror_implicit 9029 if eval test \${$cacheid+y} 9030 then : 9031 printf %s "(cached) " >&6 9032 else case e in #( 9033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9034 /* end confdefs.h. */ 9035 int i; 9036 int 9037 main (void) 9038 { 9039 9040 ; 9041 return 0; 9042 } 9043 _ACEOF 9044 if ac_fn_c_try_link "$LINENO" 9045 then : 9046 eval $cacheid=yes 9047 else case e in #( 9048 e) eval $cacheid=no ;; 9049 esac 9050 fi 9051 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9052 conftest$ac_exeext conftest.$ac_ext ;; 9053 esac 9054 fi 9055 9056 9057 CFLAGS="$xorg_testset_save_CFLAGS" 9058 9059 eval supported=\$$cacheid 9060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9061 printf "%s\n" "$supported" >&6; } 9062 if test "$supported" = "yes" ; then 9063 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 9064 found="yes" 9065 fi 9066 fi 9067 9068 if test $found = "no" ; then 9069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9071 fi 9072 9073 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9075 fi 9076 9077 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 9078 9079 { 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 9080 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 9081 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 9082 if eval test \${$cacheid+y} 9083 then : 9084 printf %s "(cached) " >&6 9085 else case e in #( 9086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9087 /* end confdefs.h. */ 9088 int i; 9089 int 9090 main (void) 9091 { 9092 9093 ; 9094 return 0; 9095 } 9096 _ACEOF 9097 if ac_fn_c_try_link "$LINENO" 9098 then : 9099 eval $cacheid=yes 9100 else case e in #( 9101 e) eval $cacheid=no ;; 9102 esac 9103 fi 9104 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9105 conftest$ac_exeext conftest.$ac_ext ;; 9106 esac 9107 fi 9108 9109 9110 CFLAGS="$xorg_testset_save_CFLAGS" 9111 9112 eval supported=\$$cacheid 9113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9114 printf "%s\n" "$supported" >&6; } 9115 if test "$supported" = "yes" ; then 9116 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 9117 found="yes" 9118 fi 9119 fi 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 xorg_testset_save_CFLAGS="$CFLAGS" 9136 9137 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9140 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9141 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9142 then : 9143 printf %s "(cached) " >&6 9144 else case e in #( 9145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9146 /* end confdefs.h. */ 9147 int i; 9148 _ACEOF 9149 if ac_fn_c_try_compile "$LINENO" 9150 then : 9151 xorg_cv_cc_flag_unknown_warning_option=yes 9152 else case e in #( 9153 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9154 esac 9155 fi 9156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9157 esac 9158 fi 9159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9160 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9162 CFLAGS="$xorg_testset_save_CFLAGS" 9163 fi 9164 9165 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9168 fi 9169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9171 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9172 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9173 then : 9174 printf %s "(cached) " >&6 9175 else case e in #( 9176 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9177 /* end confdefs.h. */ 9178 int i; 9179 _ACEOF 9180 if ac_fn_c_try_compile "$LINENO" 9181 then : 9182 xorg_cv_cc_flag_unused_command_line_argument=yes 9183 else case e in #( 9184 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9185 esac 9186 fi 9187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9188 esac 9189 fi 9190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9191 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9193 CFLAGS="$xorg_testset_save_CFLAGS" 9194 fi 9195 9196 found="no" 9197 9198 if test $found = "no" ; then 9199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9201 fi 9202 9203 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9205 fi 9206 9207 CFLAGS="$CFLAGS -Werror=nonnull" 9208 9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 9210 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 9211 cacheid=xorg_cv_cc_flag__Werror_nonnull 9212 if eval test \${$cacheid+y} 9213 then : 9214 printf %s "(cached) " >&6 9215 else case e in #( 9216 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9217 /* end confdefs.h. */ 9218 int i; 9219 int 9220 main (void) 9221 { 9222 9223 ; 9224 return 0; 9225 } 9226 _ACEOF 9227 if ac_fn_c_try_link "$LINENO" 9228 then : 9229 eval $cacheid=yes 9230 else case e in #( 9231 e) eval $cacheid=no ;; 9232 esac 9233 fi 9234 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9235 conftest$ac_exeext conftest.$ac_ext ;; 9236 esac 9237 fi 9238 9239 9240 CFLAGS="$xorg_testset_save_CFLAGS" 9241 9242 eval supported=\$$cacheid 9243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9244 printf "%s\n" "$supported" >&6; } 9245 if test "$supported" = "yes" ; then 9246 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 9247 found="yes" 9248 fi 9249 fi 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 xorg_testset_save_CFLAGS="$CFLAGS" 9266 9267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9270 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9271 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9272 then : 9273 printf %s "(cached) " >&6 9274 else case e in #( 9275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9276 /* end confdefs.h. */ 9277 int i; 9278 _ACEOF 9279 if ac_fn_c_try_compile "$LINENO" 9280 then : 9281 xorg_cv_cc_flag_unknown_warning_option=yes 9282 else case e in #( 9283 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9284 esac 9285 fi 9286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9287 esac 9288 fi 9289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9290 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9292 CFLAGS="$xorg_testset_save_CFLAGS" 9293 fi 9294 9295 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9298 fi 9299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9301 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9302 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9303 then : 9304 printf %s "(cached) " >&6 9305 else case e in #( 9306 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9307 /* end confdefs.h. */ 9308 int i; 9309 _ACEOF 9310 if ac_fn_c_try_compile "$LINENO" 9311 then : 9312 xorg_cv_cc_flag_unused_command_line_argument=yes 9313 else case e in #( 9314 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9315 esac 9316 fi 9317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9318 esac 9319 fi 9320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9321 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9323 CFLAGS="$xorg_testset_save_CFLAGS" 9324 fi 9325 9326 found="no" 9327 9328 if test $found = "no" ; then 9329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9331 fi 9332 9333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9335 fi 9336 9337 CFLAGS="$CFLAGS -Werror=init-self" 9338 9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 9340 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 9341 cacheid=xorg_cv_cc_flag__Werror_init_self 9342 if eval test \${$cacheid+y} 9343 then : 9344 printf %s "(cached) " >&6 9345 else case e in #( 9346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9347 /* end confdefs.h. */ 9348 int i; 9349 int 9350 main (void) 9351 { 9352 9353 ; 9354 return 0; 9355 } 9356 _ACEOF 9357 if ac_fn_c_try_link "$LINENO" 9358 then : 9359 eval $cacheid=yes 9360 else case e in #( 9361 e) eval $cacheid=no ;; 9362 esac 9363 fi 9364 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9365 conftest$ac_exeext conftest.$ac_ext ;; 9366 esac 9367 fi 9368 9369 9370 CFLAGS="$xorg_testset_save_CFLAGS" 9371 9372 eval supported=\$$cacheid 9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9374 printf "%s\n" "$supported" >&6; } 9375 if test "$supported" = "yes" ; then 9376 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 9377 found="yes" 9378 fi 9379 fi 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 xorg_testset_save_CFLAGS="$CFLAGS" 9396 9397 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9400 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9401 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9402 then : 9403 printf %s "(cached) " >&6 9404 else case e in #( 9405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9406 /* end confdefs.h. */ 9407 int i; 9408 _ACEOF 9409 if ac_fn_c_try_compile "$LINENO" 9410 then : 9411 xorg_cv_cc_flag_unknown_warning_option=yes 9412 else case e in #( 9413 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9414 esac 9415 fi 9416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9417 esac 9418 fi 9419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9420 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9422 CFLAGS="$xorg_testset_save_CFLAGS" 9423 fi 9424 9425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9428 fi 9429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9431 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9432 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9433 then : 9434 printf %s "(cached) " >&6 9435 else case e in #( 9436 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9437 /* end confdefs.h. */ 9438 int i; 9439 _ACEOF 9440 if ac_fn_c_try_compile "$LINENO" 9441 then : 9442 xorg_cv_cc_flag_unused_command_line_argument=yes 9443 else case e in #( 9444 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9445 esac 9446 fi 9447 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9448 esac 9449 fi 9450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9451 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9453 CFLAGS="$xorg_testset_save_CFLAGS" 9454 fi 9455 9456 found="no" 9457 9458 if test $found = "no" ; then 9459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9461 fi 9462 9463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9465 fi 9466 9467 CFLAGS="$CFLAGS -Werror=main" 9468 9469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 9470 printf %s "checking if $CC supports -Werror=main... " >&6; } 9471 cacheid=xorg_cv_cc_flag__Werror_main 9472 if eval test \${$cacheid+y} 9473 then : 9474 printf %s "(cached) " >&6 9475 else case e in #( 9476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9477 /* end confdefs.h. */ 9478 int i; 9479 int 9480 main (void) 9481 { 9482 9483 ; 9484 return 0; 9485 } 9486 _ACEOF 9487 if ac_fn_c_try_link "$LINENO" 9488 then : 9489 eval $cacheid=yes 9490 else case e in #( 9491 e) eval $cacheid=no ;; 9492 esac 9493 fi 9494 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9495 conftest$ac_exeext conftest.$ac_ext ;; 9496 esac 9497 fi 9498 9499 9500 CFLAGS="$xorg_testset_save_CFLAGS" 9501 9502 eval supported=\$$cacheid 9503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9504 printf "%s\n" "$supported" >&6; } 9505 if test "$supported" = "yes" ; then 9506 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 9507 found="yes" 9508 fi 9509 fi 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 xorg_testset_save_CFLAGS="$CFLAGS" 9526 9527 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9530 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9531 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9532 then : 9533 printf %s "(cached) " >&6 9534 else case e in #( 9535 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9536 /* end confdefs.h. */ 9537 int i; 9538 _ACEOF 9539 if ac_fn_c_try_compile "$LINENO" 9540 then : 9541 xorg_cv_cc_flag_unknown_warning_option=yes 9542 else case e in #( 9543 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9544 esac 9545 fi 9546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9547 esac 9548 fi 9549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9550 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9552 CFLAGS="$xorg_testset_save_CFLAGS" 9553 fi 9554 9555 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9558 fi 9559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9561 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9562 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9563 then : 9564 printf %s "(cached) " >&6 9565 else case e in #( 9566 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9567 /* end confdefs.h. */ 9568 int i; 9569 _ACEOF 9570 if ac_fn_c_try_compile "$LINENO" 9571 then : 9572 xorg_cv_cc_flag_unused_command_line_argument=yes 9573 else case e in #( 9574 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9575 esac 9576 fi 9577 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9578 esac 9579 fi 9580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9581 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9582 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9583 CFLAGS="$xorg_testset_save_CFLAGS" 9584 fi 9585 9586 found="no" 9587 9588 if test $found = "no" ; then 9589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9591 fi 9592 9593 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9595 fi 9596 9597 CFLAGS="$CFLAGS -Werror=missing-braces" 9598 9599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 9600 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 9601 cacheid=xorg_cv_cc_flag__Werror_missing_braces 9602 if eval test \${$cacheid+y} 9603 then : 9604 printf %s "(cached) " >&6 9605 else case e in #( 9606 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9607 /* end confdefs.h. */ 9608 int i; 9609 int 9610 main (void) 9611 { 9612 9613 ; 9614 return 0; 9615 } 9616 _ACEOF 9617 if ac_fn_c_try_link "$LINENO" 9618 then : 9619 eval $cacheid=yes 9620 else case e in #( 9621 e) eval $cacheid=no ;; 9622 esac 9623 fi 9624 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9625 conftest$ac_exeext conftest.$ac_ext ;; 9626 esac 9627 fi 9628 9629 9630 CFLAGS="$xorg_testset_save_CFLAGS" 9631 9632 eval supported=\$$cacheid 9633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9634 printf "%s\n" "$supported" >&6; } 9635 if test "$supported" = "yes" ; then 9636 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 9637 found="yes" 9638 fi 9639 fi 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 xorg_testset_save_CFLAGS="$CFLAGS" 9656 9657 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9660 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9661 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9662 then : 9663 printf %s "(cached) " >&6 9664 else case e in #( 9665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9666 /* end confdefs.h. */ 9667 int i; 9668 _ACEOF 9669 if ac_fn_c_try_compile "$LINENO" 9670 then : 9671 xorg_cv_cc_flag_unknown_warning_option=yes 9672 else case e in #( 9673 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9674 esac 9675 fi 9676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9677 esac 9678 fi 9679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9680 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9682 CFLAGS="$xorg_testset_save_CFLAGS" 9683 fi 9684 9685 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9688 fi 9689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9691 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9692 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9693 then : 9694 printf %s "(cached) " >&6 9695 else case e in #( 9696 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9697 /* end confdefs.h. */ 9698 int i; 9699 _ACEOF 9700 if ac_fn_c_try_compile "$LINENO" 9701 then : 9702 xorg_cv_cc_flag_unused_command_line_argument=yes 9703 else case e in #( 9704 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9705 esac 9706 fi 9707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9708 esac 9709 fi 9710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9711 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9712 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9713 CFLAGS="$xorg_testset_save_CFLAGS" 9714 fi 9715 9716 found="no" 9717 9718 if test $found = "no" ; then 9719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9721 fi 9722 9723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9725 fi 9726 9727 CFLAGS="$CFLAGS -Werror=sequence-point" 9728 9729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 9730 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 9731 cacheid=xorg_cv_cc_flag__Werror_sequence_point 9732 if eval test \${$cacheid+y} 9733 then : 9734 printf %s "(cached) " >&6 9735 else case e in #( 9736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9737 /* end confdefs.h. */ 9738 int i; 9739 int 9740 main (void) 9741 { 9742 9743 ; 9744 return 0; 9745 } 9746 _ACEOF 9747 if ac_fn_c_try_link "$LINENO" 9748 then : 9749 eval $cacheid=yes 9750 else case e in #( 9751 e) eval $cacheid=no ;; 9752 esac 9753 fi 9754 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9755 conftest$ac_exeext conftest.$ac_ext ;; 9756 esac 9757 fi 9758 9759 9760 CFLAGS="$xorg_testset_save_CFLAGS" 9761 9762 eval supported=\$$cacheid 9763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9764 printf "%s\n" "$supported" >&6; } 9765 if test "$supported" = "yes" ; then 9766 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 9767 found="yes" 9768 fi 9769 fi 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 xorg_testset_save_CFLAGS="$CFLAGS" 9786 9787 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9790 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9791 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9792 then : 9793 printf %s "(cached) " >&6 9794 else case e in #( 9795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9796 /* end confdefs.h. */ 9797 int i; 9798 _ACEOF 9799 if ac_fn_c_try_compile "$LINENO" 9800 then : 9801 xorg_cv_cc_flag_unknown_warning_option=yes 9802 else case e in #( 9803 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9804 esac 9805 fi 9806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9807 esac 9808 fi 9809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9810 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9812 CFLAGS="$xorg_testset_save_CFLAGS" 9813 fi 9814 9815 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9818 fi 9819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9821 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9822 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9823 then : 9824 printf %s "(cached) " >&6 9825 else case e in #( 9826 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9827 /* end confdefs.h. */ 9828 int i; 9829 _ACEOF 9830 if ac_fn_c_try_compile "$LINENO" 9831 then : 9832 xorg_cv_cc_flag_unused_command_line_argument=yes 9833 else case e in #( 9834 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9835 esac 9836 fi 9837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9838 esac 9839 fi 9840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9841 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9843 CFLAGS="$xorg_testset_save_CFLAGS" 9844 fi 9845 9846 found="no" 9847 9848 if test $found = "no" ; then 9849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9851 fi 9852 9853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9855 fi 9856 9857 CFLAGS="$CFLAGS -Werror=return-type" 9858 9859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 9860 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 9861 cacheid=xorg_cv_cc_flag__Werror_return_type 9862 if eval test \${$cacheid+y} 9863 then : 9864 printf %s "(cached) " >&6 9865 else case e in #( 9866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9867 /* end confdefs.h. */ 9868 int i; 9869 int 9870 main (void) 9871 { 9872 9873 ; 9874 return 0; 9875 } 9876 _ACEOF 9877 if ac_fn_c_try_link "$LINENO" 9878 then : 9879 eval $cacheid=yes 9880 else case e in #( 9881 e) eval $cacheid=no ;; 9882 esac 9883 fi 9884 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9885 conftest$ac_exeext conftest.$ac_ext ;; 9886 esac 9887 fi 9888 9889 9890 CFLAGS="$xorg_testset_save_CFLAGS" 9891 9892 eval supported=\$$cacheid 9893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9894 printf "%s\n" "$supported" >&6; } 9895 if test "$supported" = "yes" ; then 9896 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 9897 found="yes" 9898 fi 9899 fi 9900 9901 if test $found = "no" ; then 9902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9904 fi 9905 9906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9908 fi 9909 9910 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 9911 9912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 9913 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 9914 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 9915 if eval test \${$cacheid+y} 9916 then : 9917 printf %s "(cached) " >&6 9918 else case e in #( 9919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9920 /* end confdefs.h. */ 9921 int i; 9922 int 9923 main (void) 9924 { 9925 9926 ; 9927 return 0; 9928 } 9929 _ACEOF 9930 if ac_fn_c_try_link "$LINENO" 9931 then : 9932 eval $cacheid=yes 9933 else case e in #( 9934 e) eval $cacheid=no ;; 9935 esac 9936 fi 9937 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9938 conftest$ac_exeext conftest.$ac_ext ;; 9939 esac 9940 fi 9941 9942 9943 CFLAGS="$xorg_testset_save_CFLAGS" 9944 9945 eval supported=\$$cacheid 9946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9947 printf "%s\n" "$supported" >&6; } 9948 if test "$supported" = "yes" ; then 9949 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 9950 found="yes" 9951 fi 9952 fi 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 xorg_testset_save_CFLAGS="$CFLAGS" 9969 9970 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9973 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9974 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9975 then : 9976 printf %s "(cached) " >&6 9977 else case e in #( 9978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9979 /* end confdefs.h. */ 9980 int i; 9981 _ACEOF 9982 if ac_fn_c_try_compile "$LINENO" 9983 then : 9984 xorg_cv_cc_flag_unknown_warning_option=yes 9985 else case e in #( 9986 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9987 esac 9988 fi 9989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9990 esac 9991 fi 9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9993 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9995 CFLAGS="$xorg_testset_save_CFLAGS" 9996 fi 9997 9998 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10001 fi 10002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10004 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10005 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10006 then : 10007 printf %s "(cached) " >&6 10008 else case e in #( 10009 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10010 /* end confdefs.h. */ 10011 int i; 10012 _ACEOF 10013 if ac_fn_c_try_compile "$LINENO" 10014 then : 10015 xorg_cv_cc_flag_unused_command_line_argument=yes 10016 else case e in #( 10017 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10018 esac 10019 fi 10020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10021 esac 10022 fi 10023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10024 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10026 CFLAGS="$xorg_testset_save_CFLAGS" 10027 fi 10028 10029 found="no" 10030 10031 if test $found = "no" ; then 10032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10034 fi 10035 10036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10038 fi 10039 10040 CFLAGS="$CFLAGS -Werror=trigraphs" 10041 10042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 10043 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 10044 cacheid=xorg_cv_cc_flag__Werror_trigraphs 10045 if eval test \${$cacheid+y} 10046 then : 10047 printf %s "(cached) " >&6 10048 else case e in #( 10049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10050 /* end confdefs.h. */ 10051 int i; 10052 int 10053 main (void) 10054 { 10055 10056 ; 10057 return 0; 10058 } 10059 _ACEOF 10060 if ac_fn_c_try_link "$LINENO" 10061 then : 10062 eval $cacheid=yes 10063 else case e in #( 10064 e) eval $cacheid=no ;; 10065 esac 10066 fi 10067 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10068 conftest$ac_exeext conftest.$ac_ext ;; 10069 esac 10070 fi 10071 10072 10073 CFLAGS="$xorg_testset_save_CFLAGS" 10074 10075 eval supported=\$$cacheid 10076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10077 printf "%s\n" "$supported" >&6; } 10078 if test "$supported" = "yes" ; then 10079 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 10080 found="yes" 10081 fi 10082 fi 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 xorg_testset_save_CFLAGS="$CFLAGS" 10099 10100 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10103 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10104 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10105 then : 10106 printf %s "(cached) " >&6 10107 else case e in #( 10108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10109 /* end confdefs.h. */ 10110 int i; 10111 _ACEOF 10112 if ac_fn_c_try_compile "$LINENO" 10113 then : 10114 xorg_cv_cc_flag_unknown_warning_option=yes 10115 else case e in #( 10116 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10117 esac 10118 fi 10119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10120 esac 10121 fi 10122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10123 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10125 CFLAGS="$xorg_testset_save_CFLAGS" 10126 fi 10127 10128 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10131 fi 10132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10134 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10135 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10136 then : 10137 printf %s "(cached) " >&6 10138 else case e in #( 10139 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10140 /* end confdefs.h. */ 10141 int i; 10142 _ACEOF 10143 if ac_fn_c_try_compile "$LINENO" 10144 then : 10145 xorg_cv_cc_flag_unused_command_line_argument=yes 10146 else case e in #( 10147 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10148 esac 10149 fi 10150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10151 esac 10152 fi 10153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10154 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10156 CFLAGS="$xorg_testset_save_CFLAGS" 10157 fi 10158 10159 found="no" 10160 10161 if test $found = "no" ; then 10162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10164 fi 10165 10166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10168 fi 10169 10170 CFLAGS="$CFLAGS -Werror=array-bounds" 10171 10172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 10173 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 10174 cacheid=xorg_cv_cc_flag__Werror_array_bounds 10175 if eval test \${$cacheid+y} 10176 then : 10177 printf %s "(cached) " >&6 10178 else case e in #( 10179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10180 /* end confdefs.h. */ 10181 int i; 10182 int 10183 main (void) 10184 { 10185 10186 ; 10187 return 0; 10188 } 10189 _ACEOF 10190 if ac_fn_c_try_link "$LINENO" 10191 then : 10192 eval $cacheid=yes 10193 else case e in #( 10194 e) eval $cacheid=no ;; 10195 esac 10196 fi 10197 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10198 conftest$ac_exeext conftest.$ac_ext ;; 10199 esac 10200 fi 10201 10202 10203 CFLAGS="$xorg_testset_save_CFLAGS" 10204 10205 eval supported=\$$cacheid 10206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10207 printf "%s\n" "$supported" >&6; } 10208 if test "$supported" = "yes" ; then 10209 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 10210 found="yes" 10211 fi 10212 fi 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 xorg_testset_save_CFLAGS="$CFLAGS" 10229 10230 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10233 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10234 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10235 then : 10236 printf %s "(cached) " >&6 10237 else case e in #( 10238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10239 /* end confdefs.h. */ 10240 int i; 10241 _ACEOF 10242 if ac_fn_c_try_compile "$LINENO" 10243 then : 10244 xorg_cv_cc_flag_unknown_warning_option=yes 10245 else case e in #( 10246 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10247 esac 10248 fi 10249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10250 esac 10251 fi 10252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10253 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10255 CFLAGS="$xorg_testset_save_CFLAGS" 10256 fi 10257 10258 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10261 fi 10262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10264 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10265 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10266 then : 10267 printf %s "(cached) " >&6 10268 else case e in #( 10269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10270 /* end confdefs.h. */ 10271 int i; 10272 _ACEOF 10273 if ac_fn_c_try_compile "$LINENO" 10274 then : 10275 xorg_cv_cc_flag_unused_command_line_argument=yes 10276 else case e in #( 10277 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10278 esac 10279 fi 10280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10281 esac 10282 fi 10283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10284 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10286 CFLAGS="$xorg_testset_save_CFLAGS" 10287 fi 10288 10289 found="no" 10290 10291 if test $found = "no" ; then 10292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10294 fi 10295 10296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10298 fi 10299 10300 CFLAGS="$CFLAGS -Werror=write-strings" 10301 10302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 10303 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 10304 cacheid=xorg_cv_cc_flag__Werror_write_strings 10305 if eval test \${$cacheid+y} 10306 then : 10307 printf %s "(cached) " >&6 10308 else case e in #( 10309 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10310 /* end confdefs.h. */ 10311 int i; 10312 int 10313 main (void) 10314 { 10315 10316 ; 10317 return 0; 10318 } 10319 _ACEOF 10320 if ac_fn_c_try_link "$LINENO" 10321 then : 10322 eval $cacheid=yes 10323 else case e in #( 10324 e) eval $cacheid=no ;; 10325 esac 10326 fi 10327 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10328 conftest$ac_exeext conftest.$ac_ext ;; 10329 esac 10330 fi 10331 10332 10333 CFLAGS="$xorg_testset_save_CFLAGS" 10334 10335 eval supported=\$$cacheid 10336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10337 printf "%s\n" "$supported" >&6; } 10338 if test "$supported" = "yes" ; then 10339 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 10340 found="yes" 10341 fi 10342 fi 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 xorg_testset_save_CFLAGS="$CFLAGS" 10359 10360 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10363 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10364 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10365 then : 10366 printf %s "(cached) " >&6 10367 else case e in #( 10368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10369 /* end confdefs.h. */ 10370 int i; 10371 _ACEOF 10372 if ac_fn_c_try_compile "$LINENO" 10373 then : 10374 xorg_cv_cc_flag_unknown_warning_option=yes 10375 else case e in #( 10376 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10377 esac 10378 fi 10379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10380 esac 10381 fi 10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10383 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10384 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10385 CFLAGS="$xorg_testset_save_CFLAGS" 10386 fi 10387 10388 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10391 fi 10392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10394 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10395 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10396 then : 10397 printf %s "(cached) " >&6 10398 else case e in #( 10399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10400 /* end confdefs.h. */ 10401 int i; 10402 _ACEOF 10403 if ac_fn_c_try_compile "$LINENO" 10404 then : 10405 xorg_cv_cc_flag_unused_command_line_argument=yes 10406 else case e in #( 10407 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10408 esac 10409 fi 10410 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10411 esac 10412 fi 10413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10414 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10416 CFLAGS="$xorg_testset_save_CFLAGS" 10417 fi 10418 10419 found="no" 10420 10421 if test $found = "no" ; then 10422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10424 fi 10425 10426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10428 fi 10429 10430 CFLAGS="$CFLAGS -Werror=address" 10431 10432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 10433 printf %s "checking if $CC supports -Werror=address... " >&6; } 10434 cacheid=xorg_cv_cc_flag__Werror_address 10435 if eval test \${$cacheid+y} 10436 then : 10437 printf %s "(cached) " >&6 10438 else case e in #( 10439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10440 /* end confdefs.h. */ 10441 int i; 10442 int 10443 main (void) 10444 { 10445 10446 ; 10447 return 0; 10448 } 10449 _ACEOF 10450 if ac_fn_c_try_link "$LINENO" 10451 then : 10452 eval $cacheid=yes 10453 else case e in #( 10454 e) eval $cacheid=no ;; 10455 esac 10456 fi 10457 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10458 conftest$ac_exeext conftest.$ac_ext ;; 10459 esac 10460 fi 10461 10462 10463 CFLAGS="$xorg_testset_save_CFLAGS" 10464 10465 eval supported=\$$cacheid 10466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10467 printf "%s\n" "$supported" >&6; } 10468 if test "$supported" = "yes" ; then 10469 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 10470 found="yes" 10471 fi 10472 fi 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 xorg_testset_save_CFLAGS="$CFLAGS" 10489 10490 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10493 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10494 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10495 then : 10496 printf %s "(cached) " >&6 10497 else case e in #( 10498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10499 /* end confdefs.h. */ 10500 int i; 10501 _ACEOF 10502 if ac_fn_c_try_compile "$LINENO" 10503 then : 10504 xorg_cv_cc_flag_unknown_warning_option=yes 10505 else case e in #( 10506 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10507 esac 10508 fi 10509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10510 esac 10511 fi 10512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10513 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10515 CFLAGS="$xorg_testset_save_CFLAGS" 10516 fi 10517 10518 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10521 fi 10522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10524 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10525 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10526 then : 10527 printf %s "(cached) " >&6 10528 else case e in #( 10529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10530 /* end confdefs.h. */ 10531 int i; 10532 _ACEOF 10533 if ac_fn_c_try_compile "$LINENO" 10534 then : 10535 xorg_cv_cc_flag_unused_command_line_argument=yes 10536 else case e in #( 10537 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10538 esac 10539 fi 10540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10541 esac 10542 fi 10543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10544 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10546 CFLAGS="$xorg_testset_save_CFLAGS" 10547 fi 10548 10549 found="no" 10550 10551 if test $found = "no" ; then 10552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10554 fi 10555 10556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10558 fi 10559 10560 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 10561 10562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 10563 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 10564 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 10565 if eval test \${$cacheid+y} 10566 then : 10567 printf %s "(cached) " >&6 10568 else case e in #( 10569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10570 /* end confdefs.h. */ 10571 int i; 10572 int 10573 main (void) 10574 { 10575 10576 ; 10577 return 0; 10578 } 10579 _ACEOF 10580 if ac_fn_c_try_link "$LINENO" 10581 then : 10582 eval $cacheid=yes 10583 else case e in #( 10584 e) eval $cacheid=no ;; 10585 esac 10586 fi 10587 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10588 conftest$ac_exeext conftest.$ac_ext ;; 10589 esac 10590 fi 10591 10592 10593 CFLAGS="$xorg_testset_save_CFLAGS" 10594 10595 eval supported=\$$cacheid 10596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10597 printf "%s\n" "$supported" >&6; } 10598 if test "$supported" = "yes" ; then 10599 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 10600 found="yes" 10601 fi 10602 fi 10603 10604 if test $found = "no" ; then 10605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10607 fi 10608 10609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10611 fi 10612 10613 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 10614 10615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 10616 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 10617 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 10618 if eval test \${$cacheid+y} 10619 then : 10620 printf %s "(cached) " >&6 10621 else case e in #( 10622 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10623 /* end confdefs.h. */ 10624 int i; 10625 int 10626 main (void) 10627 { 10628 10629 ; 10630 return 0; 10631 } 10632 _ACEOF 10633 if ac_fn_c_try_link "$LINENO" 10634 then : 10635 eval $cacheid=yes 10636 else case e in #( 10637 e) eval $cacheid=no ;; 10638 esac 10639 fi 10640 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10641 conftest$ac_exeext conftest.$ac_ext ;; 10642 esac 10643 fi 10644 10645 10646 CFLAGS="$xorg_testset_save_CFLAGS" 10647 10648 eval supported=\$$cacheid 10649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10650 printf "%s\n" "$supported" >&6; } 10651 if test "$supported" = "yes" ; then 10652 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 10653 found="yes" 10654 fi 10655 fi 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 xorg_testset_save_CFLAGS="$CFLAGS" 10672 10673 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10676 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10677 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10678 then : 10679 printf %s "(cached) " >&6 10680 else case e in #( 10681 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10682 /* end confdefs.h. */ 10683 int i; 10684 _ACEOF 10685 if ac_fn_c_try_compile "$LINENO" 10686 then : 10687 xorg_cv_cc_flag_unknown_warning_option=yes 10688 else case e in #( 10689 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10690 esac 10691 fi 10692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10693 esac 10694 fi 10695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10696 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10698 CFLAGS="$xorg_testset_save_CFLAGS" 10699 fi 10700 10701 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10704 fi 10705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10707 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10708 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10709 then : 10710 printf %s "(cached) " >&6 10711 else case e in #( 10712 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10713 /* end confdefs.h. */ 10714 int i; 10715 _ACEOF 10716 if ac_fn_c_try_compile "$LINENO" 10717 then : 10718 xorg_cv_cc_flag_unused_command_line_argument=yes 10719 else case e in #( 10720 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10721 esac 10722 fi 10723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10724 esac 10725 fi 10726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10727 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10728 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10729 CFLAGS="$xorg_testset_save_CFLAGS" 10730 fi 10731 10732 found="no" 10733 10734 if test $found = "no" ; then 10735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10737 fi 10738 10739 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10741 fi 10742 10743 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 10744 10745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 10746 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 10747 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 10748 if eval test \${$cacheid+y} 10749 then : 10750 printf %s "(cached) " >&6 10751 else case e in #( 10752 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10753 /* end confdefs.h. */ 10754 int i; 10755 int 10756 main (void) 10757 { 10758 10759 ; 10760 return 0; 10761 } 10762 _ACEOF 10763 if ac_fn_c_try_link "$LINENO" 10764 then : 10765 eval $cacheid=yes 10766 else case e in #( 10767 e) eval $cacheid=no ;; 10768 esac 10769 fi 10770 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10771 conftest$ac_exeext conftest.$ac_ext ;; 10772 esac 10773 fi 10774 10775 10776 CFLAGS="$xorg_testset_save_CFLAGS" 10777 10778 eval supported=\$$cacheid 10779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10780 printf "%s\n" "$supported" >&6; } 10781 if test "$supported" = "yes" ; then 10782 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 10783 found="yes" 10784 fi 10785 fi 10786 10787 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 10788 else 10789 { 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 10790 printf "%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;} 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 xorg_testset_save_CFLAGS="$CFLAGS" 10805 10806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10809 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10810 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10811 then : 10812 printf %s "(cached) " >&6 10813 else case e in #( 10814 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10815 /* end confdefs.h. */ 10816 int i; 10817 _ACEOF 10818 if ac_fn_c_try_compile "$LINENO" 10819 then : 10820 xorg_cv_cc_flag_unknown_warning_option=yes 10821 else case e in #( 10822 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10823 esac 10824 fi 10825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10826 esac 10827 fi 10828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10829 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10831 CFLAGS="$xorg_testset_save_CFLAGS" 10832 fi 10833 10834 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10837 fi 10838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10840 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10841 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10842 then : 10843 printf %s "(cached) " >&6 10844 else case e in #( 10845 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10846 /* end confdefs.h. */ 10847 int i; 10848 _ACEOF 10849 if ac_fn_c_try_compile "$LINENO" 10850 then : 10851 xorg_cv_cc_flag_unused_command_line_argument=yes 10852 else case e in #( 10853 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10854 esac 10855 fi 10856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10857 esac 10858 fi 10859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10860 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10862 CFLAGS="$xorg_testset_save_CFLAGS" 10863 fi 10864 10865 found="no" 10866 10867 if test $found = "no" ; then 10868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10870 fi 10871 10872 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10874 fi 10875 10876 CFLAGS="$CFLAGS -Wimplicit" 10877 10878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 10879 printf %s "checking if $CC supports -Wimplicit... " >&6; } 10880 cacheid=xorg_cv_cc_flag__Wimplicit 10881 if eval test \${$cacheid+y} 10882 then : 10883 printf %s "(cached) " >&6 10884 else case e in #( 10885 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10886 /* end confdefs.h. */ 10887 int i; 10888 int 10889 main (void) 10890 { 10891 10892 ; 10893 return 0; 10894 } 10895 _ACEOF 10896 if ac_fn_c_try_link "$LINENO" 10897 then : 10898 eval $cacheid=yes 10899 else case e in #( 10900 e) eval $cacheid=no ;; 10901 esac 10902 fi 10903 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10904 conftest$ac_exeext conftest.$ac_ext ;; 10905 esac 10906 fi 10907 10908 10909 CFLAGS="$xorg_testset_save_CFLAGS" 10910 10911 eval supported=\$$cacheid 10912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10913 printf "%s\n" "$supported" >&6; } 10914 if test "$supported" = "yes" ; then 10915 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 10916 found="yes" 10917 fi 10918 fi 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 xorg_testset_save_CFLAGS="$CFLAGS" 10935 10936 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10939 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10940 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10941 then : 10942 printf %s "(cached) " >&6 10943 else case e in #( 10944 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10945 /* end confdefs.h. */ 10946 int i; 10947 _ACEOF 10948 if ac_fn_c_try_compile "$LINENO" 10949 then : 10950 xorg_cv_cc_flag_unknown_warning_option=yes 10951 else case e in #( 10952 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10953 esac 10954 fi 10955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10956 esac 10957 fi 10958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10959 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10961 CFLAGS="$xorg_testset_save_CFLAGS" 10962 fi 10963 10964 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10967 fi 10968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10970 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10971 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10972 then : 10973 printf %s "(cached) " >&6 10974 else case e in #( 10975 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10976 /* end confdefs.h. */ 10977 int i; 10978 _ACEOF 10979 if ac_fn_c_try_compile "$LINENO" 10980 then : 10981 xorg_cv_cc_flag_unused_command_line_argument=yes 10982 else case e in #( 10983 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10984 esac 10985 fi 10986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10987 esac 10988 fi 10989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10990 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10992 CFLAGS="$xorg_testset_save_CFLAGS" 10993 fi 10994 10995 found="no" 10996 10997 if test $found = "no" ; then 10998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11000 fi 11001 11002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11004 fi 11005 11006 CFLAGS="$CFLAGS -Wnonnull" 11007 11008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 11009 printf %s "checking if $CC supports -Wnonnull... " >&6; } 11010 cacheid=xorg_cv_cc_flag__Wnonnull 11011 if eval test \${$cacheid+y} 11012 then : 11013 printf %s "(cached) " >&6 11014 else case e in #( 11015 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11016 /* end confdefs.h. */ 11017 int i; 11018 int 11019 main (void) 11020 { 11021 11022 ; 11023 return 0; 11024 } 11025 _ACEOF 11026 if ac_fn_c_try_link "$LINENO" 11027 then : 11028 eval $cacheid=yes 11029 else case e in #( 11030 e) eval $cacheid=no ;; 11031 esac 11032 fi 11033 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11034 conftest$ac_exeext conftest.$ac_ext ;; 11035 esac 11036 fi 11037 11038 11039 CFLAGS="$xorg_testset_save_CFLAGS" 11040 11041 eval supported=\$$cacheid 11042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11043 printf "%s\n" "$supported" >&6; } 11044 if test "$supported" = "yes" ; then 11045 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 11046 found="yes" 11047 fi 11048 fi 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 xorg_testset_save_CFLAGS="$CFLAGS" 11065 11066 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11069 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11070 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11071 then : 11072 printf %s "(cached) " >&6 11073 else case e in #( 11074 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11075 /* end confdefs.h. */ 11076 int i; 11077 _ACEOF 11078 if ac_fn_c_try_compile "$LINENO" 11079 then : 11080 xorg_cv_cc_flag_unknown_warning_option=yes 11081 else case e in #( 11082 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11083 esac 11084 fi 11085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11086 esac 11087 fi 11088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11089 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11090 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11091 CFLAGS="$xorg_testset_save_CFLAGS" 11092 fi 11093 11094 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11097 fi 11098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11100 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11101 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11102 then : 11103 printf %s "(cached) " >&6 11104 else case e in #( 11105 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11106 /* end confdefs.h. */ 11107 int i; 11108 _ACEOF 11109 if ac_fn_c_try_compile "$LINENO" 11110 then : 11111 xorg_cv_cc_flag_unused_command_line_argument=yes 11112 else case e in #( 11113 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11114 esac 11115 fi 11116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11117 esac 11118 fi 11119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11120 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11122 CFLAGS="$xorg_testset_save_CFLAGS" 11123 fi 11124 11125 found="no" 11126 11127 if test $found = "no" ; then 11128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11130 fi 11131 11132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11134 fi 11135 11136 CFLAGS="$CFLAGS -Winit-self" 11137 11138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 11139 printf %s "checking if $CC supports -Winit-self... " >&6; } 11140 cacheid=xorg_cv_cc_flag__Winit_self 11141 if eval test \${$cacheid+y} 11142 then : 11143 printf %s "(cached) " >&6 11144 else case e in #( 11145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11146 /* end confdefs.h. */ 11147 int i; 11148 int 11149 main (void) 11150 { 11151 11152 ; 11153 return 0; 11154 } 11155 _ACEOF 11156 if ac_fn_c_try_link "$LINENO" 11157 then : 11158 eval $cacheid=yes 11159 else case e in #( 11160 e) eval $cacheid=no ;; 11161 esac 11162 fi 11163 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11164 conftest$ac_exeext conftest.$ac_ext ;; 11165 esac 11166 fi 11167 11168 11169 CFLAGS="$xorg_testset_save_CFLAGS" 11170 11171 eval supported=\$$cacheid 11172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11173 printf "%s\n" "$supported" >&6; } 11174 if test "$supported" = "yes" ; then 11175 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 11176 found="yes" 11177 fi 11178 fi 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 xorg_testset_save_CFLAGS="$CFLAGS" 11195 11196 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11199 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11200 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11201 then : 11202 printf %s "(cached) " >&6 11203 else case e in #( 11204 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11205 /* end confdefs.h. */ 11206 int i; 11207 _ACEOF 11208 if ac_fn_c_try_compile "$LINENO" 11209 then : 11210 xorg_cv_cc_flag_unknown_warning_option=yes 11211 else case e in #( 11212 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11213 esac 11214 fi 11215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11216 esac 11217 fi 11218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11219 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11221 CFLAGS="$xorg_testset_save_CFLAGS" 11222 fi 11223 11224 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11227 fi 11228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11230 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11231 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11232 then : 11233 printf %s "(cached) " >&6 11234 else case e in #( 11235 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11236 /* end confdefs.h. */ 11237 int i; 11238 _ACEOF 11239 if ac_fn_c_try_compile "$LINENO" 11240 then : 11241 xorg_cv_cc_flag_unused_command_line_argument=yes 11242 else case e in #( 11243 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11244 esac 11245 fi 11246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11247 esac 11248 fi 11249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11250 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11252 CFLAGS="$xorg_testset_save_CFLAGS" 11253 fi 11254 11255 found="no" 11256 11257 if test $found = "no" ; then 11258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11260 fi 11261 11262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11264 fi 11265 11266 CFLAGS="$CFLAGS -Wmain" 11267 11268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 11269 printf %s "checking if $CC supports -Wmain... " >&6; } 11270 cacheid=xorg_cv_cc_flag__Wmain 11271 if eval test \${$cacheid+y} 11272 then : 11273 printf %s "(cached) " >&6 11274 else case e in #( 11275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11276 /* end confdefs.h. */ 11277 int i; 11278 int 11279 main (void) 11280 { 11281 11282 ; 11283 return 0; 11284 } 11285 _ACEOF 11286 if ac_fn_c_try_link "$LINENO" 11287 then : 11288 eval $cacheid=yes 11289 else case e in #( 11290 e) eval $cacheid=no ;; 11291 esac 11292 fi 11293 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11294 conftest$ac_exeext conftest.$ac_ext ;; 11295 esac 11296 fi 11297 11298 11299 CFLAGS="$xorg_testset_save_CFLAGS" 11300 11301 eval supported=\$$cacheid 11302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11303 printf "%s\n" "$supported" >&6; } 11304 if test "$supported" = "yes" ; then 11305 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 11306 found="yes" 11307 fi 11308 fi 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 xorg_testset_save_CFLAGS="$CFLAGS" 11325 11326 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11329 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11330 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11331 then : 11332 printf %s "(cached) " >&6 11333 else case e in #( 11334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11335 /* end confdefs.h. */ 11336 int i; 11337 _ACEOF 11338 if ac_fn_c_try_compile "$LINENO" 11339 then : 11340 xorg_cv_cc_flag_unknown_warning_option=yes 11341 else case e in #( 11342 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11343 esac 11344 fi 11345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11346 esac 11347 fi 11348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11349 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11351 CFLAGS="$xorg_testset_save_CFLAGS" 11352 fi 11353 11354 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11357 fi 11358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11360 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11361 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11362 then : 11363 printf %s "(cached) " >&6 11364 else case e in #( 11365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11366 /* end confdefs.h. */ 11367 int i; 11368 _ACEOF 11369 if ac_fn_c_try_compile "$LINENO" 11370 then : 11371 xorg_cv_cc_flag_unused_command_line_argument=yes 11372 else case e in #( 11373 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11374 esac 11375 fi 11376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11377 esac 11378 fi 11379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11380 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11382 CFLAGS="$xorg_testset_save_CFLAGS" 11383 fi 11384 11385 found="no" 11386 11387 if test $found = "no" ; then 11388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11390 fi 11391 11392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11394 fi 11395 11396 CFLAGS="$CFLAGS -Wmissing-braces" 11397 11398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 11399 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 11400 cacheid=xorg_cv_cc_flag__Wmissing_braces 11401 if eval test \${$cacheid+y} 11402 then : 11403 printf %s "(cached) " >&6 11404 else case e in #( 11405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11406 /* end confdefs.h. */ 11407 int i; 11408 int 11409 main (void) 11410 { 11411 11412 ; 11413 return 0; 11414 } 11415 _ACEOF 11416 if ac_fn_c_try_link "$LINENO" 11417 then : 11418 eval $cacheid=yes 11419 else case e in #( 11420 e) eval $cacheid=no ;; 11421 esac 11422 fi 11423 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11424 conftest$ac_exeext conftest.$ac_ext ;; 11425 esac 11426 fi 11427 11428 11429 CFLAGS="$xorg_testset_save_CFLAGS" 11430 11431 eval supported=\$$cacheid 11432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11433 printf "%s\n" "$supported" >&6; } 11434 if test "$supported" = "yes" ; then 11435 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 11436 found="yes" 11437 fi 11438 fi 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 xorg_testset_save_CFLAGS="$CFLAGS" 11455 11456 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11459 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11460 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11461 then : 11462 printf %s "(cached) " >&6 11463 else case e in #( 11464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11465 /* end confdefs.h. */ 11466 int i; 11467 _ACEOF 11468 if ac_fn_c_try_compile "$LINENO" 11469 then : 11470 xorg_cv_cc_flag_unknown_warning_option=yes 11471 else case e in #( 11472 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11473 esac 11474 fi 11475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11476 esac 11477 fi 11478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11479 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11481 CFLAGS="$xorg_testset_save_CFLAGS" 11482 fi 11483 11484 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11487 fi 11488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11490 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11491 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11492 then : 11493 printf %s "(cached) " >&6 11494 else case e in #( 11495 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11496 /* end confdefs.h. */ 11497 int i; 11498 _ACEOF 11499 if ac_fn_c_try_compile "$LINENO" 11500 then : 11501 xorg_cv_cc_flag_unused_command_line_argument=yes 11502 else case e in #( 11503 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11504 esac 11505 fi 11506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11507 esac 11508 fi 11509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11510 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11512 CFLAGS="$xorg_testset_save_CFLAGS" 11513 fi 11514 11515 found="no" 11516 11517 if test $found = "no" ; then 11518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11520 fi 11521 11522 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11524 fi 11525 11526 CFLAGS="$CFLAGS -Wsequence-point" 11527 11528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 11529 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 11530 cacheid=xorg_cv_cc_flag__Wsequence_point 11531 if eval test \${$cacheid+y} 11532 then : 11533 printf %s "(cached) " >&6 11534 else case e in #( 11535 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11536 /* end confdefs.h. */ 11537 int i; 11538 int 11539 main (void) 11540 { 11541 11542 ; 11543 return 0; 11544 } 11545 _ACEOF 11546 if ac_fn_c_try_link "$LINENO" 11547 then : 11548 eval $cacheid=yes 11549 else case e in #( 11550 e) eval $cacheid=no ;; 11551 esac 11552 fi 11553 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11554 conftest$ac_exeext conftest.$ac_ext ;; 11555 esac 11556 fi 11557 11558 11559 CFLAGS="$xorg_testset_save_CFLAGS" 11560 11561 eval supported=\$$cacheid 11562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11563 printf "%s\n" "$supported" >&6; } 11564 if test "$supported" = "yes" ; then 11565 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 11566 found="yes" 11567 fi 11568 fi 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 xorg_testset_save_CFLAGS="$CFLAGS" 11585 11586 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11589 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11590 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11591 then : 11592 printf %s "(cached) " >&6 11593 else case e in #( 11594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11595 /* end confdefs.h. */ 11596 int i; 11597 _ACEOF 11598 if ac_fn_c_try_compile "$LINENO" 11599 then : 11600 xorg_cv_cc_flag_unknown_warning_option=yes 11601 else case e in #( 11602 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11603 esac 11604 fi 11605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11606 esac 11607 fi 11608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11609 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11611 CFLAGS="$xorg_testset_save_CFLAGS" 11612 fi 11613 11614 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11617 fi 11618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11620 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11621 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11622 then : 11623 printf %s "(cached) " >&6 11624 else case e in #( 11625 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11626 /* end confdefs.h. */ 11627 int i; 11628 _ACEOF 11629 if ac_fn_c_try_compile "$LINENO" 11630 then : 11631 xorg_cv_cc_flag_unused_command_line_argument=yes 11632 else case e in #( 11633 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11634 esac 11635 fi 11636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11637 esac 11638 fi 11639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11640 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11642 CFLAGS="$xorg_testset_save_CFLAGS" 11643 fi 11644 11645 found="no" 11646 11647 if test $found = "no" ; then 11648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11650 fi 11651 11652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11654 fi 11655 11656 CFLAGS="$CFLAGS -Wreturn-type" 11657 11658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 11659 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 11660 cacheid=xorg_cv_cc_flag__Wreturn_type 11661 if eval test \${$cacheid+y} 11662 then : 11663 printf %s "(cached) " >&6 11664 else case e in #( 11665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11666 /* end confdefs.h. */ 11667 int i; 11668 int 11669 main (void) 11670 { 11671 11672 ; 11673 return 0; 11674 } 11675 _ACEOF 11676 if ac_fn_c_try_link "$LINENO" 11677 then : 11678 eval $cacheid=yes 11679 else case e in #( 11680 e) eval $cacheid=no ;; 11681 esac 11682 fi 11683 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11684 conftest$ac_exeext conftest.$ac_ext ;; 11685 esac 11686 fi 11687 11688 11689 CFLAGS="$xorg_testset_save_CFLAGS" 11690 11691 eval supported=\$$cacheid 11692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11693 printf "%s\n" "$supported" >&6; } 11694 if test "$supported" = "yes" ; then 11695 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 11696 found="yes" 11697 fi 11698 fi 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 xorg_testset_save_CFLAGS="$CFLAGS" 11715 11716 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11719 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11720 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11721 then : 11722 printf %s "(cached) " >&6 11723 else case e in #( 11724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11725 /* end confdefs.h. */ 11726 int i; 11727 _ACEOF 11728 if ac_fn_c_try_compile "$LINENO" 11729 then : 11730 xorg_cv_cc_flag_unknown_warning_option=yes 11731 else case e in #( 11732 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11733 esac 11734 fi 11735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11736 esac 11737 fi 11738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11739 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11741 CFLAGS="$xorg_testset_save_CFLAGS" 11742 fi 11743 11744 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11747 fi 11748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11750 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11751 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11752 then : 11753 printf %s "(cached) " >&6 11754 else case e in #( 11755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11756 /* end confdefs.h. */ 11757 int i; 11758 _ACEOF 11759 if ac_fn_c_try_compile "$LINENO" 11760 then : 11761 xorg_cv_cc_flag_unused_command_line_argument=yes 11762 else case e in #( 11763 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11764 esac 11765 fi 11766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11767 esac 11768 fi 11769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11770 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11772 CFLAGS="$xorg_testset_save_CFLAGS" 11773 fi 11774 11775 found="no" 11776 11777 if test $found = "no" ; then 11778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11780 fi 11781 11782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11784 fi 11785 11786 CFLAGS="$CFLAGS -Wtrigraphs" 11787 11788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 11789 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 11790 cacheid=xorg_cv_cc_flag__Wtrigraphs 11791 if eval test \${$cacheid+y} 11792 then : 11793 printf %s "(cached) " >&6 11794 else case e in #( 11795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11796 /* end confdefs.h. */ 11797 int i; 11798 int 11799 main (void) 11800 { 11801 11802 ; 11803 return 0; 11804 } 11805 _ACEOF 11806 if ac_fn_c_try_link "$LINENO" 11807 then : 11808 eval $cacheid=yes 11809 else case e in #( 11810 e) eval $cacheid=no ;; 11811 esac 11812 fi 11813 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11814 conftest$ac_exeext conftest.$ac_ext ;; 11815 esac 11816 fi 11817 11818 11819 CFLAGS="$xorg_testset_save_CFLAGS" 11820 11821 eval supported=\$$cacheid 11822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11823 printf "%s\n" "$supported" >&6; } 11824 if test "$supported" = "yes" ; then 11825 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 11826 found="yes" 11827 fi 11828 fi 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 xorg_testset_save_CFLAGS="$CFLAGS" 11845 11846 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11849 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11850 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11851 then : 11852 printf %s "(cached) " >&6 11853 else case e in #( 11854 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11855 /* end confdefs.h. */ 11856 int i; 11857 _ACEOF 11858 if ac_fn_c_try_compile "$LINENO" 11859 then : 11860 xorg_cv_cc_flag_unknown_warning_option=yes 11861 else case e in #( 11862 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11863 esac 11864 fi 11865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11866 esac 11867 fi 11868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11869 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11871 CFLAGS="$xorg_testset_save_CFLAGS" 11872 fi 11873 11874 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11877 fi 11878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11880 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11881 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11882 then : 11883 printf %s "(cached) " >&6 11884 else case e in #( 11885 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11886 /* end confdefs.h. */ 11887 int i; 11888 _ACEOF 11889 if ac_fn_c_try_compile "$LINENO" 11890 then : 11891 xorg_cv_cc_flag_unused_command_line_argument=yes 11892 else case e in #( 11893 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11894 esac 11895 fi 11896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11897 esac 11898 fi 11899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11900 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11902 CFLAGS="$xorg_testset_save_CFLAGS" 11903 fi 11904 11905 found="no" 11906 11907 if test $found = "no" ; then 11908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11910 fi 11911 11912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11914 fi 11915 11916 CFLAGS="$CFLAGS -Warray-bounds" 11917 11918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 11919 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 11920 cacheid=xorg_cv_cc_flag__Warray_bounds 11921 if eval test \${$cacheid+y} 11922 then : 11923 printf %s "(cached) " >&6 11924 else case e in #( 11925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11926 /* end confdefs.h. */ 11927 int i; 11928 int 11929 main (void) 11930 { 11931 11932 ; 11933 return 0; 11934 } 11935 _ACEOF 11936 if ac_fn_c_try_link "$LINENO" 11937 then : 11938 eval $cacheid=yes 11939 else case e in #( 11940 e) eval $cacheid=no ;; 11941 esac 11942 fi 11943 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11944 conftest$ac_exeext conftest.$ac_ext ;; 11945 esac 11946 fi 11947 11948 11949 CFLAGS="$xorg_testset_save_CFLAGS" 11950 11951 eval supported=\$$cacheid 11952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11953 printf "%s\n" "$supported" >&6; } 11954 if test "$supported" = "yes" ; then 11955 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 11956 found="yes" 11957 fi 11958 fi 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 xorg_testset_save_CFLAGS="$CFLAGS" 11975 11976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11979 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11980 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11981 then : 11982 printf %s "(cached) " >&6 11983 else case e in #( 11984 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11985 /* end confdefs.h. */ 11986 int i; 11987 _ACEOF 11988 if ac_fn_c_try_compile "$LINENO" 11989 then : 11990 xorg_cv_cc_flag_unknown_warning_option=yes 11991 else case e in #( 11992 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11993 esac 11994 fi 11995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11996 esac 11997 fi 11998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11999 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12001 CFLAGS="$xorg_testset_save_CFLAGS" 12002 fi 12003 12004 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12007 fi 12008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12010 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12011 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12012 then : 12013 printf %s "(cached) " >&6 12014 else case e in #( 12015 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12016 /* end confdefs.h. */ 12017 int i; 12018 _ACEOF 12019 if ac_fn_c_try_compile "$LINENO" 12020 then : 12021 xorg_cv_cc_flag_unused_command_line_argument=yes 12022 else case e in #( 12023 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 12024 esac 12025 fi 12026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12027 esac 12028 fi 12029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12030 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12032 CFLAGS="$xorg_testset_save_CFLAGS" 12033 fi 12034 12035 found="no" 12036 12037 if test $found = "no" ; then 12038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12040 fi 12041 12042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12044 fi 12045 12046 CFLAGS="$CFLAGS -Wwrite-strings" 12047 12048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 12049 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 12050 cacheid=xorg_cv_cc_flag__Wwrite_strings 12051 if eval test \${$cacheid+y} 12052 then : 12053 printf %s "(cached) " >&6 12054 else case e in #( 12055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12056 /* end confdefs.h. */ 12057 int i; 12058 int 12059 main (void) 12060 { 12061 12062 ; 12063 return 0; 12064 } 12065 _ACEOF 12066 if ac_fn_c_try_link "$LINENO" 12067 then : 12068 eval $cacheid=yes 12069 else case e in #( 12070 e) eval $cacheid=no ;; 12071 esac 12072 fi 12073 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12074 conftest$ac_exeext conftest.$ac_ext ;; 12075 esac 12076 fi 12077 12078 12079 CFLAGS="$xorg_testset_save_CFLAGS" 12080 12081 eval supported=\$$cacheid 12082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12083 printf "%s\n" "$supported" >&6; } 12084 if test "$supported" = "yes" ; then 12085 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 12086 found="yes" 12087 fi 12088 fi 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 xorg_testset_save_CFLAGS="$CFLAGS" 12105 12106 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12109 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12110 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12111 then : 12112 printf %s "(cached) " >&6 12113 else case e in #( 12114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12115 /* end confdefs.h. */ 12116 int i; 12117 _ACEOF 12118 if ac_fn_c_try_compile "$LINENO" 12119 then : 12120 xorg_cv_cc_flag_unknown_warning_option=yes 12121 else case e in #( 12122 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 12123 esac 12124 fi 12125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12126 esac 12127 fi 12128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12129 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12131 CFLAGS="$xorg_testset_save_CFLAGS" 12132 fi 12133 12134 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12137 fi 12138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12140 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12141 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12142 then : 12143 printf %s "(cached) " >&6 12144 else case e in #( 12145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12146 /* end confdefs.h. */ 12147 int i; 12148 _ACEOF 12149 if ac_fn_c_try_compile "$LINENO" 12150 then : 12151 xorg_cv_cc_flag_unused_command_line_argument=yes 12152 else case e in #( 12153 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 12154 esac 12155 fi 12156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12157 esac 12158 fi 12159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12160 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12162 CFLAGS="$xorg_testset_save_CFLAGS" 12163 fi 12164 12165 found="no" 12166 12167 if test $found = "no" ; then 12168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12170 fi 12171 12172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12174 fi 12175 12176 CFLAGS="$CFLAGS -Waddress" 12177 12178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 12179 printf %s "checking if $CC supports -Waddress... " >&6; } 12180 cacheid=xorg_cv_cc_flag__Waddress 12181 if eval test \${$cacheid+y} 12182 then : 12183 printf %s "(cached) " >&6 12184 else case e in #( 12185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12186 /* end confdefs.h. */ 12187 int i; 12188 int 12189 main (void) 12190 { 12191 12192 ; 12193 return 0; 12194 } 12195 _ACEOF 12196 if ac_fn_c_try_link "$LINENO" 12197 then : 12198 eval $cacheid=yes 12199 else case e in #( 12200 e) eval $cacheid=no ;; 12201 esac 12202 fi 12203 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12204 conftest$ac_exeext conftest.$ac_ext ;; 12205 esac 12206 fi 12207 12208 12209 CFLAGS="$xorg_testset_save_CFLAGS" 12210 12211 eval supported=\$$cacheid 12212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12213 printf "%s\n" "$supported" >&6; } 12214 if test "$supported" = "yes" ; then 12215 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 12216 found="yes" 12217 fi 12218 fi 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 xorg_testset_save_CFLAGS="$CFLAGS" 12235 12236 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12239 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12240 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12241 then : 12242 printf %s "(cached) " >&6 12243 else case e in #( 12244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12245 /* end confdefs.h. */ 12246 int i; 12247 _ACEOF 12248 if ac_fn_c_try_compile "$LINENO" 12249 then : 12250 xorg_cv_cc_flag_unknown_warning_option=yes 12251 else case e in #( 12252 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 12253 esac 12254 fi 12255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12256 esac 12257 fi 12258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12259 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12261 CFLAGS="$xorg_testset_save_CFLAGS" 12262 fi 12263 12264 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12267 fi 12268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12270 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12271 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12272 then : 12273 printf %s "(cached) " >&6 12274 else case e in #( 12275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12276 /* end confdefs.h. */ 12277 int i; 12278 _ACEOF 12279 if ac_fn_c_try_compile "$LINENO" 12280 then : 12281 xorg_cv_cc_flag_unused_command_line_argument=yes 12282 else case e in #( 12283 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 12284 esac 12285 fi 12286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12287 esac 12288 fi 12289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12290 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12292 CFLAGS="$xorg_testset_save_CFLAGS" 12293 fi 12294 12295 found="no" 12296 12297 if test $found = "no" ; then 12298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12300 fi 12301 12302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12304 fi 12305 12306 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 12307 12308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 12309 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 12310 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 12311 if eval test \${$cacheid+y} 12312 then : 12313 printf %s "(cached) " >&6 12314 else case e in #( 12315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12316 /* end confdefs.h. */ 12317 int i; 12318 int 12319 main (void) 12320 { 12321 12322 ; 12323 return 0; 12324 } 12325 _ACEOF 12326 if ac_fn_c_try_link "$LINENO" 12327 then : 12328 eval $cacheid=yes 12329 else case e in #( 12330 e) eval $cacheid=no ;; 12331 esac 12332 fi 12333 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12334 conftest$ac_exeext conftest.$ac_ext ;; 12335 esac 12336 fi 12337 12338 12339 CFLAGS="$xorg_testset_save_CFLAGS" 12340 12341 eval supported=\$$cacheid 12342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12343 printf "%s\n" "$supported" >&6; } 12344 if test "$supported" = "yes" ; then 12345 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 12346 found="yes" 12347 fi 12348 fi 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 xorg_testset_save_CFLAGS="$CFLAGS" 12365 12366 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12369 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12370 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12371 then : 12372 printf %s "(cached) " >&6 12373 else case e in #( 12374 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12375 /* end confdefs.h. */ 12376 int i; 12377 _ACEOF 12378 if ac_fn_c_try_compile "$LINENO" 12379 then : 12380 xorg_cv_cc_flag_unknown_warning_option=yes 12381 else case e in #( 12382 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 12383 esac 12384 fi 12385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12386 esac 12387 fi 12388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12389 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12391 CFLAGS="$xorg_testset_save_CFLAGS" 12392 fi 12393 12394 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12397 fi 12398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12400 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12401 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12402 then : 12403 printf %s "(cached) " >&6 12404 else case e in #( 12405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12406 /* end confdefs.h. */ 12407 int i; 12408 _ACEOF 12409 if ac_fn_c_try_compile "$LINENO" 12410 then : 12411 xorg_cv_cc_flag_unused_command_line_argument=yes 12412 else case e in #( 12413 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 12414 esac 12415 fi 12416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12417 esac 12418 fi 12419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12420 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12422 CFLAGS="$xorg_testset_save_CFLAGS" 12423 fi 12424 12425 found="no" 12426 12427 if test $found = "no" ; then 12428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12430 fi 12431 12432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12434 fi 12435 12436 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 12437 12438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 12439 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 12440 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 12441 if eval test \${$cacheid+y} 12442 then : 12443 printf %s "(cached) " >&6 12444 else case e in #( 12445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12446 /* end confdefs.h. */ 12447 int i; 12448 int 12449 main (void) 12450 { 12451 12452 ; 12453 return 0; 12454 } 12455 _ACEOF 12456 if ac_fn_c_try_link "$LINENO" 12457 then : 12458 eval $cacheid=yes 12459 else case e in #( 12460 e) eval $cacheid=no ;; 12461 esac 12462 fi 12463 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12464 conftest$ac_exeext conftest.$ac_ext ;; 12465 esac 12466 fi 12467 12468 12469 CFLAGS="$xorg_testset_save_CFLAGS" 12470 12471 eval supported=\$$cacheid 12472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12473 printf "%s\n" "$supported" >&6; } 12474 if test "$supported" = "yes" ; then 12475 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 12476 found="yes" 12477 fi 12478 fi 12479 12480 12481 fi 12482 12483 12484 12485 12486 12487 12488 12489 CWARNFLAGS="$BASE_CFLAGS" 12490 if test "x$GCC" = xyes ; then 12491 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 12492 fi 12493 12494 12495 12496 12497 12498 12499 12500 12501 # Check whether --enable-strict-compilation was given. 12502 if test ${enable_strict_compilation+y} 12503 then : 12504 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 12505 else case e in #( 12506 e) STRICT_COMPILE=no ;; 12507 esac 12508 fi 12509 12510 12511 12512 12513 12514 12515 STRICT_CFLAGS="" 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 xorg_testset_save_CFLAGS="$CFLAGS" 12530 12531 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12534 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12535 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12536 then : 12537 printf %s "(cached) " >&6 12538 else case e in #( 12539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12540 /* end confdefs.h. */ 12541 int i; 12542 _ACEOF 12543 if ac_fn_c_try_compile "$LINENO" 12544 then : 12545 xorg_cv_cc_flag_unknown_warning_option=yes 12546 else case e in #( 12547 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 12548 esac 12549 fi 12550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12551 esac 12552 fi 12553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12554 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12555 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12556 CFLAGS="$xorg_testset_save_CFLAGS" 12557 fi 12558 12559 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12562 fi 12563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12565 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12566 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12567 then : 12568 printf %s "(cached) " >&6 12569 else case e in #( 12570 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12571 /* end confdefs.h. */ 12572 int i; 12573 _ACEOF 12574 if ac_fn_c_try_compile "$LINENO" 12575 then : 12576 xorg_cv_cc_flag_unused_command_line_argument=yes 12577 else case e in #( 12578 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 12579 esac 12580 fi 12581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12582 esac 12583 fi 12584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12585 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12587 CFLAGS="$xorg_testset_save_CFLAGS" 12588 fi 12589 12590 found="no" 12591 12592 if test $found = "no" ; then 12593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12595 fi 12596 12597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12599 fi 12600 12601 CFLAGS="$CFLAGS -pedantic" 12602 12603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 12604 printf %s "checking if $CC supports -pedantic... " >&6; } 12605 cacheid=xorg_cv_cc_flag__pedantic 12606 if eval test \${$cacheid+y} 12607 then : 12608 printf %s "(cached) " >&6 12609 else case e in #( 12610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12611 /* end confdefs.h. */ 12612 int i; 12613 int 12614 main (void) 12615 { 12616 12617 ; 12618 return 0; 12619 } 12620 _ACEOF 12621 if ac_fn_c_try_link "$LINENO" 12622 then : 12623 eval $cacheid=yes 12624 else case e in #( 12625 e) eval $cacheid=no ;; 12626 esac 12627 fi 12628 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12629 conftest$ac_exeext conftest.$ac_ext ;; 12630 esac 12631 fi 12632 12633 12634 CFLAGS="$xorg_testset_save_CFLAGS" 12635 12636 eval supported=\$$cacheid 12637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12638 printf "%s\n" "$supported" >&6; } 12639 if test "$supported" = "yes" ; then 12640 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 12641 found="yes" 12642 fi 12643 fi 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 xorg_testset_save_CFLAGS="$CFLAGS" 12660 12661 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12664 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12665 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12666 then : 12667 printf %s "(cached) " >&6 12668 else case e in #( 12669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12670 /* end confdefs.h. */ 12671 int i; 12672 _ACEOF 12673 if ac_fn_c_try_compile "$LINENO" 12674 then : 12675 xorg_cv_cc_flag_unknown_warning_option=yes 12676 else case e in #( 12677 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 12678 esac 12679 fi 12680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12681 esac 12682 fi 12683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12684 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12686 CFLAGS="$xorg_testset_save_CFLAGS" 12687 fi 12688 12689 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12692 fi 12693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12695 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12696 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12697 then : 12698 printf %s "(cached) " >&6 12699 else case e in #( 12700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12701 /* end confdefs.h. */ 12702 int i; 12703 _ACEOF 12704 if ac_fn_c_try_compile "$LINENO" 12705 then : 12706 xorg_cv_cc_flag_unused_command_line_argument=yes 12707 else case e in #( 12708 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 12709 esac 12710 fi 12711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12712 esac 12713 fi 12714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12715 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12717 CFLAGS="$xorg_testset_save_CFLAGS" 12718 fi 12719 12720 found="no" 12721 12722 if test $found = "no" ; then 12723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12725 fi 12726 12727 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12729 fi 12730 12731 CFLAGS="$CFLAGS -Werror" 12732 12733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 12734 printf %s "checking if $CC supports -Werror... " >&6; } 12735 cacheid=xorg_cv_cc_flag__Werror 12736 if eval test \${$cacheid+y} 12737 then : 12738 printf %s "(cached) " >&6 12739 else case e in #( 12740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12741 /* end confdefs.h. */ 12742 int i; 12743 int 12744 main (void) 12745 { 12746 12747 ; 12748 return 0; 12749 } 12750 _ACEOF 12751 if ac_fn_c_try_link "$LINENO" 12752 then : 12753 eval $cacheid=yes 12754 else case e in #( 12755 e) eval $cacheid=no ;; 12756 esac 12757 fi 12758 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12759 conftest$ac_exeext conftest.$ac_ext ;; 12760 esac 12761 fi 12762 12763 12764 CFLAGS="$xorg_testset_save_CFLAGS" 12765 12766 eval supported=\$$cacheid 12767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12768 printf "%s\n" "$supported" >&6; } 12769 if test "$supported" = "yes" ; then 12770 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 12771 found="yes" 12772 fi 12773 fi 12774 12775 if test $found = "no" ; then 12776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12778 fi 12779 12780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12782 fi 12783 12784 CFLAGS="$CFLAGS -errwarn" 12785 12786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 12787 printf %s "checking if $CC supports -errwarn... " >&6; } 12788 cacheid=xorg_cv_cc_flag__errwarn 12789 if eval test \${$cacheid+y} 12790 then : 12791 printf %s "(cached) " >&6 12792 else case e in #( 12793 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12794 /* end confdefs.h. */ 12795 int i; 12796 int 12797 main (void) 12798 { 12799 12800 ; 12801 return 0; 12802 } 12803 _ACEOF 12804 if ac_fn_c_try_link "$LINENO" 12805 then : 12806 eval $cacheid=yes 12807 else case e in #( 12808 e) eval $cacheid=no ;; 12809 esac 12810 fi 12811 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12812 conftest$ac_exeext conftest.$ac_ext ;; 12813 esac 12814 fi 12815 12816 12817 CFLAGS="$xorg_testset_save_CFLAGS" 12818 12819 eval supported=\$$cacheid 12820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12821 printf "%s\n" "$supported" >&6; } 12822 if test "$supported" = "yes" ; then 12823 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 12824 found="yes" 12825 fi 12826 fi 12827 12828 12829 12830 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 12831 # activate it with -Werror, so we add it here explicitly. 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 xorg_testset_save_CFLAGS="$CFLAGS" 12846 12847 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12850 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12851 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12852 then : 12853 printf %s "(cached) " >&6 12854 else case e in #( 12855 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12856 /* end confdefs.h. */ 12857 int i; 12858 _ACEOF 12859 if ac_fn_c_try_compile "$LINENO" 12860 then : 12861 xorg_cv_cc_flag_unknown_warning_option=yes 12862 else case e in #( 12863 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 12864 esac 12865 fi 12866 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12867 esac 12868 fi 12869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12870 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12871 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12872 CFLAGS="$xorg_testset_save_CFLAGS" 12873 fi 12874 12875 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12878 fi 12879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12881 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12882 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12883 then : 12884 printf %s "(cached) " >&6 12885 else case e in #( 12886 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12887 /* end confdefs.h. */ 12888 int i; 12889 _ACEOF 12890 if ac_fn_c_try_compile "$LINENO" 12891 then : 12892 xorg_cv_cc_flag_unused_command_line_argument=yes 12893 else case e in #( 12894 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 12895 esac 12896 fi 12897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12898 esac 12899 fi 12900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12901 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12902 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12903 CFLAGS="$xorg_testset_save_CFLAGS" 12904 fi 12905 12906 found="no" 12907 12908 if test $found = "no" ; then 12909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12911 fi 12912 12913 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12915 fi 12916 12917 CFLAGS="$CFLAGS -Werror=attributes" 12918 12919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 12920 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 12921 cacheid=xorg_cv_cc_flag__Werror_attributes 12922 if eval test \${$cacheid+y} 12923 then : 12924 printf %s "(cached) " >&6 12925 else case e in #( 12926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12927 /* end confdefs.h. */ 12928 int i; 12929 int 12930 main (void) 12931 { 12932 12933 ; 12934 return 0; 12935 } 12936 _ACEOF 12937 if ac_fn_c_try_link "$LINENO" 12938 then : 12939 eval $cacheid=yes 12940 else case e in #( 12941 e) eval $cacheid=no ;; 12942 esac 12943 fi 12944 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12945 conftest$ac_exeext conftest.$ac_ext ;; 12946 esac 12947 fi 12948 12949 12950 CFLAGS="$xorg_testset_save_CFLAGS" 12951 12952 eval supported=\$$cacheid 12953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12954 printf "%s\n" "$supported" >&6; } 12955 if test "$supported" = "yes" ; then 12956 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 12957 found="yes" 12958 fi 12959 fi 12960 12961 12962 12963 if test "x$STRICT_COMPILE" = "xyes"; then 12964 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 12965 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 12966 fi 12967 12968 12969 12970 12971 12972 12973 12974 12975 cat >>confdefs.h <<_ACEOF 12976 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 12977 _ACEOF 12978 12979 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 12980 if test "x$PVM" = "x"; then 12981 PVM="0" 12982 fi 12983 12984 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 12985 12986 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 12987 if test "x$PVP" = "x"; then 12988 PVP="0" 12989 fi 12990 12991 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 12992 12993 12994 12995 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 12996 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 12997 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 12998 touch \$(top_srcdir)/ChangeLog; \ 12999 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 13000 13001 13002 13003 13004 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 13005 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 13006 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 13007 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 13008 touch \$(top_srcdir)/INSTALL; \ 13009 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 13010 13011 13012 13013 13014 13015 13016 case $host_os in 13017 solaris*) 13018 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 13019 # check for a man page file found in later versions that use 13020 # traditional section numbers instead 13021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 13022 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 13023 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 13024 then : 13025 printf %s "(cached) " >&6 13026 else case e in #( 13027 e) test "$cross_compiling" = yes && 13028 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 13029 if test -r "/usr/share/man/man7/attributes.7"; then 13030 ac_cv_file__usr_share_man_man7_attributes_7=yes 13031 else 13032 ac_cv_file__usr_share_man_man7_attributes_7=no 13033 fi ;; 13034 esac 13035 fi 13036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 13037 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 13038 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 13039 then : 13040 SYSV_MAN_SECTIONS=false 13041 else case e in #( 13042 e) SYSV_MAN_SECTIONS=true ;; 13043 esac 13044 fi 13045 13046 ;; 13047 *) SYSV_MAN_SECTIONS=false ;; 13048 esac 13049 13050 if test x$APP_MAN_SUFFIX = x ; then 13051 APP_MAN_SUFFIX=1 13052 fi 13053 if test x$APP_MAN_DIR = x ; then 13054 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 13055 fi 13056 13057 if test x$LIB_MAN_SUFFIX = x ; then 13058 LIB_MAN_SUFFIX=3 13059 fi 13060 if test x$LIB_MAN_DIR = x ; then 13061 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 13062 fi 13063 13064 if test x$FILE_MAN_SUFFIX = x ; then 13065 case $SYSV_MAN_SECTIONS in 13066 true) FILE_MAN_SUFFIX=4 ;; 13067 *) FILE_MAN_SUFFIX=5 ;; 13068 esac 13069 fi 13070 if test x$FILE_MAN_DIR = x ; then 13071 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 13072 fi 13073 13074 if test x$MISC_MAN_SUFFIX = x ; then 13075 case $SYSV_MAN_SECTIONS in 13076 true) MISC_MAN_SUFFIX=5 ;; 13077 *) MISC_MAN_SUFFIX=7 ;; 13078 esac 13079 fi 13080 if test x$MISC_MAN_DIR = x ; then 13081 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 13082 fi 13083 13084 if test x$DRIVER_MAN_SUFFIX = x ; then 13085 case $SYSV_MAN_SECTIONS in 13086 true) DRIVER_MAN_SUFFIX=7 ;; 13087 *) DRIVER_MAN_SUFFIX=4 ;; 13088 esac 13089 fi 13090 if test x$DRIVER_MAN_DIR = x ; then 13091 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 13092 fi 13093 13094 if test x$ADMIN_MAN_SUFFIX = x ; then 13095 case $SYSV_MAN_SECTIONS in 13096 true) ADMIN_MAN_SUFFIX=1m ;; 13097 *) ADMIN_MAN_SUFFIX=8 ;; 13098 esac 13099 fi 13100 if test x$ADMIN_MAN_DIR = x ; then 13101 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 13102 fi 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 XORG_MAN_PAGE="X Version 11" 13119 13120 MAN_SUBSTS="\ 13121 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 13122 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 13123 -e 's|__xservername__|Xorg|g' \ 13124 -e 's|__xconfigfile__|xorg.conf|g' \ 13125 -e 's|__projectroot__|\$(prefix)|g' \ 13126 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 13127 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 13128 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 13129 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 13130 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 13131 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 13132 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 13133 13134 13135 13136 13137 AM_DEFAULT_VERBOSITY=0 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 # Check whether --with-doxygen was given. 13148 if test ${with_doxygen+y} 13149 then : 13150 withval=$with_doxygen; use_doxygen=$withval 13151 else case e in #( 13152 e) use_doxygen=auto ;; 13153 esac 13154 fi 13155 13156 13157 13158 if test "x$use_doxygen" = x"auto"; then 13159 # Extract the first word of "doxygen", so it can be a program name with args. 13160 set dummy doxygen; ac_word=$2 13161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13162 printf %s "checking for $ac_word... " >&6; } 13163 if test ${ac_cv_path_DOXYGEN+y} 13164 then : 13165 printf %s "(cached) " >&6 13166 else case e in #( 13167 e) case $DOXYGEN in 13168 [\\/]* | ?:[\\/]*) 13169 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 13170 ;; 13171 *) 13172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13173 for as_dir in $PATH 13174 do 13175 IFS=$as_save_IFS 13176 case $as_dir in #((( 13177 '') as_dir=./ ;; 13178 */) ;; 13179 *) as_dir=$as_dir/ ;; 13180 esac 13181 for ac_exec_ext in '' $ac_executable_extensions; do 13182 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13183 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 13184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13185 break 2 13186 fi 13187 done 13188 done 13189 IFS=$as_save_IFS 13190 13191 ;; 13192 esac ;; 13193 esac 13194 fi 13195 DOXYGEN=$ac_cv_path_DOXYGEN 13196 if test -n "$DOXYGEN"; then 13197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 13198 printf "%s\n" "$DOXYGEN" >&6; } 13199 else 13200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13201 printf "%s\n" "no" >&6; } 13202 fi 13203 13204 13205 if test "x$DOXYGEN" = "x"; then 13206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5 13207 printf "%s\n" "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;} 13208 have_doxygen=no 13209 else 13210 have_doxygen=yes 13211 fi 13212 elif test "x$use_doxygen" = x"yes" ; then 13213 # Extract the first word of "doxygen", so it can be a program name with args. 13214 set dummy doxygen; ac_word=$2 13215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13216 printf %s "checking for $ac_word... " >&6; } 13217 if test ${ac_cv_path_DOXYGEN+y} 13218 then : 13219 printf %s "(cached) " >&6 13220 else case e in #( 13221 e) case $DOXYGEN in 13222 [\\/]* | ?:[\\/]*) 13223 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 13224 ;; 13225 *) 13226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13227 for as_dir in $PATH 13228 do 13229 IFS=$as_save_IFS 13230 case $as_dir in #((( 13231 '') as_dir=./ ;; 13232 */) ;; 13233 *) as_dir=$as_dir/ ;; 13234 esac 13235 for ac_exec_ext in '' $ac_executable_extensions; do 13236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13237 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 13238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13239 break 2 13240 fi 13241 done 13242 done 13243 IFS=$as_save_IFS 13244 13245 ;; 13246 esac ;; 13247 esac 13248 fi 13249 DOXYGEN=$ac_cv_path_DOXYGEN 13250 if test -n "$DOXYGEN"; then 13251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 13252 printf "%s\n" "$DOXYGEN" >&6; } 13253 else 13254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13255 printf "%s\n" "no" >&6; } 13256 fi 13257 13258 13259 if test "x$DOXYGEN" = "x"; then 13260 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5 13261 fi 13262 have_doxygen=yes 13263 elif test "x$use_doxygen" = x"no" ; then 13264 if test "x$DOXYGEN" != "x"; then 13265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5 13266 printf "%s\n" "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;} 13267 fi 13268 have_doxygen=no 13269 else 13270 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5 13271 fi 13272 if test "$have_doxygen" = yes; then 13273 # scrape the doxygen version 13274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5 13275 printf %s "checking the doxygen version... " >&6; } 13276 doxygen_version=`$DOXYGEN --version 2>/dev/null` 13277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5 13278 printf "%s\n" "$doxygen_version" >&6; } 13279 as_arg_v1=$doxygen_version 13280 as_arg_v2=1.6.1 13281 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 13282 case $? in #( 13283 1) : 13284 if test "x$use_doxygen" = xauto; then 13285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5 13286 printf "%s\n" "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;} 13287 have_doxygen=no 13288 else 13289 as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5 13290 fi ;; #( 13291 0) : 13292 ;; #( 13293 2) : 13294 ;; #( 13295 *) : 13296 ;; 13297 esac 13298 fi 13299 13300 HAVE_DOT=no 13301 if test "x$have_doxygen" = "xyes"; then 13302 # Extract the first word of "dot", so it can be a program name with args. 13303 set dummy dot; ac_word=$2 13304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13305 printf %s "checking for $ac_word... " >&6; } 13306 if test ${ac_cv_path_DOT+y} 13307 then : 13308 printf %s "(cached) " >&6 13309 else case e in #( 13310 e) case $DOT in 13311 [\\/]* | ?:[\\/]*) 13312 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 13313 ;; 13314 *) 13315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13316 for as_dir in $PATH 13317 do 13318 IFS=$as_save_IFS 13319 case $as_dir in #((( 13320 '') as_dir=./ ;; 13321 */) ;; 13322 *) as_dir=$as_dir/ ;; 13323 esac 13324 for ac_exec_ext in '' $ac_executable_extensions; do 13325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13326 ac_cv_path_DOT="$as_dir$ac_word$ac_exec_ext" 13327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13328 break 2 13329 fi 13330 done 13331 done 13332 IFS=$as_save_IFS 13333 13334 ;; 13335 esac ;; 13336 esac 13337 fi 13338 DOT=$ac_cv_path_DOT 13339 if test -n "$DOT"; then 13340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 13341 printf "%s\n" "$DOT" >&6; } 13342 else 13343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13344 printf "%s\n" "no" >&6; } 13345 fi 13346 13347 13348 if test "x$DOT" != "x"; then 13349 HAVE_DOT=yes 13350 fi 13351 fi 13352 13353 13354 if test "$HAVE_DOT" = "yes"; then 13355 HAVE_DOT_TRUE= 13356 HAVE_DOT_FALSE='#' 13357 else 13358 HAVE_DOT_TRUE='#' 13359 HAVE_DOT_FALSE= 13360 fi 13361 13362 if test "$have_doxygen" = yes; then 13363 HAVE_DOXYGEN_TRUE= 13364 HAVE_DOXYGEN_FALSE='#' 13365 else 13366 HAVE_DOXYGEN_TRUE='#' 13367 HAVE_DOXYGEN_FALSE= 13368 fi 13369 13370 13371 13372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 13373 printf %s "checking for X.Org SGML entities >= 1.8... " >&6; } 13374 XORG_SGML_PATH= 13375 if test -n "$PKG_CONFIG" && \ 13376 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 13377 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 13378 ac_status=$? 13379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13380 test $ac_status = 0; }; then 13381 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 13382 else 13383 : 13384 13385 fi 13386 13387 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 13388 # the path and the name of the doc stylesheet 13389 if test "x$XORG_SGML_PATH" != "x" ; then 13390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 13391 printf "%s\n" "$XORG_SGML_PATH" >&6; } 13392 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 13393 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 13394 else 13395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13396 printf "%s\n" "no" >&6; } 13397 fi 13398 13399 13400 13401 13402 if test "x$XSL_STYLESHEET" != "x"; then 13403 HAVE_STYLESHEETS_TRUE= 13404 HAVE_STYLESHEETS_FALSE='#' 13405 else 13406 HAVE_STYLESHEETS_TRUE='#' 13407 HAVE_STYLESHEETS_FALSE= 13408 fi 13409 13410 13411 13412 13413 # Check whether --enable-docs was given. 13414 if test ${enable_docs+y} 13415 then : 13416 enableval=$enable_docs; build_docs=$enableval 13417 else case e in #( 13418 e) build_docs=yes ;; 13419 esac 13420 fi 13421 13422 13423 if test x$build_docs = xyes; then 13424 ENABLE_DOCS_TRUE= 13425 ENABLE_DOCS_FALSE='#' 13426 else 13427 ENABLE_DOCS_TRUE='#' 13428 ENABLE_DOCS_FALSE= 13429 fi 13430 13431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 13432 printf %s "checking whether to build documentation... " >&6; } 13433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 13434 printf "%s\n" "$build_docs" >&6; } 13435 13436 13437 13438 # Check whether --enable-devel-docs was given. 13439 if test ${enable_devel_docs+y} 13440 then : 13441 enableval=$enable_devel_docs; build_devel_docs=$enableval 13442 else case e in #( 13443 e) build_devel_docs=yes ;; 13444 esac 13445 fi 13446 13447 13448 if test x$build_devel_docs = xyes; then 13449 ENABLE_DEVEL_DOCS_TRUE= 13450 ENABLE_DEVEL_DOCS_FALSE='#' 13451 else 13452 ENABLE_DEVEL_DOCS_TRUE='#' 13453 ENABLE_DEVEL_DOCS_FALSE= 13454 fi 13455 13456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 13457 printf %s "checking whether to build developer documentation... " >&6; } 13458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 13459 printf "%s\n" "$build_devel_docs" >&6; } 13460 13461 13462 13463 13464 13465 # Check whether --with-xmlto was given. 13466 if test ${with_xmlto+y} 13467 then : 13468 withval=$with_xmlto; use_xmlto=$withval 13469 else case e in #( 13470 e) use_xmlto=auto ;; 13471 esac 13472 fi 13473 13474 13475 13476 if test "x$use_xmlto" = x"auto"; then 13477 # Extract the first word of "xmlto", so it can be a program name with args. 13478 set dummy xmlto; ac_word=$2 13479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13480 printf %s "checking for $ac_word... " >&6; } 13481 if test ${ac_cv_path_XMLTO+y} 13482 then : 13483 printf %s "(cached) " >&6 13484 else case e in #( 13485 e) case $XMLTO in 13486 [\\/]* | ?:[\\/]*) 13487 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 13488 ;; 13489 *) 13490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13491 for as_dir in $PATH 13492 do 13493 IFS=$as_save_IFS 13494 case $as_dir in #((( 13495 '') as_dir=./ ;; 13496 */) ;; 13497 *) as_dir=$as_dir/ ;; 13498 esac 13499 for ac_exec_ext in '' $ac_executable_extensions; do 13500 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13501 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 13502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13503 break 2 13504 fi 13505 done 13506 done 13507 IFS=$as_save_IFS 13508 13509 ;; 13510 esac ;; 13511 esac 13512 fi 13513 XMLTO=$ac_cv_path_XMLTO 13514 if test -n "$XMLTO"; then 13515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 13516 printf "%s\n" "$XMLTO" >&6; } 13517 else 13518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13519 printf "%s\n" "no" >&6; } 13520 fi 13521 13522 13523 if test "x$XMLTO" = "x"; then 13524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 13525 printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 13526 have_xmlto=no 13527 else 13528 have_xmlto=yes 13529 fi 13530 elif test "x$use_xmlto" = x"yes" ; then 13531 # Extract the first word of "xmlto", so it can be a program name with args. 13532 set dummy xmlto; ac_word=$2 13533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13534 printf %s "checking for $ac_word... " >&6; } 13535 if test ${ac_cv_path_XMLTO+y} 13536 then : 13537 printf %s "(cached) " >&6 13538 else case e in #( 13539 e) case $XMLTO in 13540 [\\/]* | ?:[\\/]*) 13541 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 13542 ;; 13543 *) 13544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13545 for as_dir in $PATH 13546 do 13547 IFS=$as_save_IFS 13548 case $as_dir in #((( 13549 '') as_dir=./ ;; 13550 */) ;; 13551 *) as_dir=$as_dir/ ;; 13552 esac 13553 for ac_exec_ext in '' $ac_executable_extensions; do 13554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13555 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 13556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13557 break 2 13558 fi 13559 done 13560 done 13561 IFS=$as_save_IFS 13562 13563 ;; 13564 esac ;; 13565 esac 13566 fi 13567 XMLTO=$ac_cv_path_XMLTO 13568 if test -n "$XMLTO"; then 13569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 13570 printf "%s\n" "$XMLTO" >&6; } 13571 else 13572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13573 printf "%s\n" "no" >&6; } 13574 fi 13575 13576 13577 if test "x$XMLTO" = "x"; then 13578 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 13579 fi 13580 have_xmlto=yes 13581 elif test "x$use_xmlto" = x"no" ; then 13582 if test "x$XMLTO" != "x"; then 13583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 13584 printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 13585 fi 13586 have_xmlto=no 13587 else 13588 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 13589 fi 13590 13591 # Test for a minimum version of xmlto, if provided. 13592 if test "$have_xmlto" = yes; then 13593 # scrape the xmlto version 13594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 13595 printf %s "checking the xmlto version... " >&6; } 13596 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 13597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 13598 printf "%s\n" "$xmlto_version" >&6; } 13599 as_arg_v1=$xmlto_version 13600 as_arg_v2=0.0.20 13601 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 13602 case $? in #( 13603 1) : 13604 if test "x$use_xmlto" = xauto; then 13605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 13606 printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 13607 have_xmlto=no 13608 else 13609 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 13610 fi ;; #( 13611 0) : 13612 ;; #( 13613 2) : 13614 ;; #( 13615 *) : 13616 ;; 13617 esac 13618 fi 13619 13620 # Test for the ability of xmlto to generate a text target 13621 # 13622 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 13623 # following test for empty XML docbook files. 13624 # For compatibility reasons use the following empty XML docbook file and if 13625 # it fails try it again with a non-empty XML file. 13626 have_xmlto_text=no 13627 cat > conftest.xml << "EOF" 13628 EOF 13629 if test "$have_xmlto" = yes 13630 then : 13631 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 13632 then : 13633 have_xmlto_text=yes 13634 else case e in #( 13635 e) # Try it again with a non-empty XML file. 13636 cat > conftest.xml << "EOF" 13637 <x></x> 13638 EOF 13639 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 13640 then : 13641 have_xmlto_text=yes 13642 else case e in #( 13643 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 13644 printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;; 13645 esac 13646 fi ;; 13647 esac 13648 fi 13649 fi 13650 rm -f conftest.xml 13651 if test $have_xmlto_text = yes; then 13652 HAVE_XMLTO_TEXT_TRUE= 13653 HAVE_XMLTO_TEXT_FALSE='#' 13654 else 13655 HAVE_XMLTO_TEXT_TRUE='#' 13656 HAVE_XMLTO_TEXT_FALSE= 13657 fi 13658 13659 if test "$have_xmlto" = yes; then 13660 HAVE_XMLTO_TRUE= 13661 HAVE_XMLTO_FALSE='#' 13662 else 13663 HAVE_XMLTO_TRUE='#' 13664 HAVE_XMLTO_FALSE= 13665 fi 13666 13667 13668 13669 13670 13671 13672 # Check whether --with-fop was given. 13673 if test ${with_fop+y} 13674 then : 13675 withval=$with_fop; use_fop=$withval 13676 else case e in #( 13677 e) use_fop=auto ;; 13678 esac 13679 fi 13680 13681 13682 13683 if test "x$use_fop" = x"auto"; then 13684 # Extract the first word of "fop", so it can be a program name with args. 13685 set dummy fop; ac_word=$2 13686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13687 printf %s "checking for $ac_word... " >&6; } 13688 if test ${ac_cv_path_FOP+y} 13689 then : 13690 printf %s "(cached) " >&6 13691 else case e in #( 13692 e) case $FOP in 13693 [\\/]* | ?:[\\/]*) 13694 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 13695 ;; 13696 *) 13697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13698 for as_dir in $PATH 13699 do 13700 IFS=$as_save_IFS 13701 case $as_dir in #((( 13702 '') as_dir=./ ;; 13703 */) ;; 13704 *) as_dir=$as_dir/ ;; 13705 esac 13706 for ac_exec_ext in '' $ac_executable_extensions; do 13707 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13708 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 13709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13710 break 2 13711 fi 13712 done 13713 done 13714 IFS=$as_save_IFS 13715 13716 ;; 13717 esac ;; 13718 esac 13719 fi 13720 FOP=$ac_cv_path_FOP 13721 if test -n "$FOP"; then 13722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 13723 printf "%s\n" "$FOP" >&6; } 13724 else 13725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13726 printf "%s\n" "no" >&6; } 13727 fi 13728 13729 13730 if test "x$FOP" = "x"; then 13731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 13732 printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 13733 have_fop=no 13734 else 13735 have_fop=yes 13736 fi 13737 elif test "x$use_fop" = x"yes" ; then 13738 # Extract the first word of "fop", so it can be a program name with args. 13739 set dummy fop; ac_word=$2 13740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13741 printf %s "checking for $ac_word... " >&6; } 13742 if test ${ac_cv_path_FOP+y} 13743 then : 13744 printf %s "(cached) " >&6 13745 else case e in #( 13746 e) case $FOP in 13747 [\\/]* | ?:[\\/]*) 13748 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 13749 ;; 13750 *) 13751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13752 for as_dir in $PATH 13753 do 13754 IFS=$as_save_IFS 13755 case $as_dir in #((( 13756 '') as_dir=./ ;; 13757 */) ;; 13758 *) as_dir=$as_dir/ ;; 13759 esac 13760 for ac_exec_ext in '' $ac_executable_extensions; do 13761 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13762 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 13763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13764 break 2 13765 fi 13766 done 13767 done 13768 IFS=$as_save_IFS 13769 13770 ;; 13771 esac ;; 13772 esac 13773 fi 13774 FOP=$ac_cv_path_FOP 13775 if test -n "$FOP"; then 13776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 13777 printf "%s\n" "$FOP" >&6; } 13778 else 13779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13780 printf "%s\n" "no" >&6; } 13781 fi 13782 13783 13784 if test "x$FOP" = "x"; then 13785 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 13786 fi 13787 have_fop=yes 13788 elif test "x$use_fop" = x"no" ; then 13789 if test "x$FOP" != "x"; then 13790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 13791 printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 13792 fi 13793 have_fop=no 13794 else 13795 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 13796 fi 13797 13798 # Test for a minimum version of fop, if provided. 13799 13800 if test "$have_fop" = yes; then 13801 HAVE_FOP_TRUE= 13802 HAVE_FOP_FALSE='#' 13803 else 13804 HAVE_FOP_TRUE='#' 13805 HAVE_FOP_FALSE= 13806 fi 13807 13808 13809 13810 13811 # Preserves the interface, should it be implemented later 13812 13813 13814 13815 # Check whether --with-xsltproc was given. 13816 if test ${with_xsltproc+y} 13817 then : 13818 withval=$with_xsltproc; use_xsltproc=$withval 13819 else case e in #( 13820 e) use_xsltproc=auto ;; 13821 esac 13822 fi 13823 13824 13825 13826 if test "x$use_xsltproc" = x"auto"; then 13827 # Extract the first word of "xsltproc", so it can be a program name with args. 13828 set dummy xsltproc; ac_word=$2 13829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13830 printf %s "checking for $ac_word... " >&6; } 13831 if test ${ac_cv_path_XSLTPROC+y} 13832 then : 13833 printf %s "(cached) " >&6 13834 else case e in #( 13835 e) case $XSLTPROC in 13836 [\\/]* | ?:[\\/]*) 13837 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 13838 ;; 13839 *) 13840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13841 for as_dir in $PATH 13842 do 13843 IFS=$as_save_IFS 13844 case $as_dir in #((( 13845 '') as_dir=./ ;; 13846 */) ;; 13847 *) as_dir=$as_dir/ ;; 13848 esac 13849 for ac_exec_ext in '' $ac_executable_extensions; do 13850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13851 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 13852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13853 break 2 13854 fi 13855 done 13856 done 13857 IFS=$as_save_IFS 13858 13859 ;; 13860 esac ;; 13861 esac 13862 fi 13863 XSLTPROC=$ac_cv_path_XSLTPROC 13864 if test -n "$XSLTPROC"; then 13865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 13866 printf "%s\n" "$XSLTPROC" >&6; } 13867 else 13868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13869 printf "%s\n" "no" >&6; } 13870 fi 13871 13872 13873 if test "x$XSLTPROC" = "x"; then 13874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 13875 printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 13876 have_xsltproc=no 13877 else 13878 have_xsltproc=yes 13879 fi 13880 elif test "x$use_xsltproc" = x"yes" ; then 13881 # Extract the first word of "xsltproc", so it can be a program name with args. 13882 set dummy xsltproc; ac_word=$2 13883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13884 printf %s "checking for $ac_word... " >&6; } 13885 if test ${ac_cv_path_XSLTPROC+y} 13886 then : 13887 printf %s "(cached) " >&6 13888 else case e in #( 13889 e) case $XSLTPROC in 13890 [\\/]* | ?:[\\/]*) 13891 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 13892 ;; 13893 *) 13894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13895 for as_dir in $PATH 13896 do 13897 IFS=$as_save_IFS 13898 case $as_dir in #((( 13899 '') as_dir=./ ;; 13900 */) ;; 13901 *) as_dir=$as_dir/ ;; 13902 esac 13903 for ac_exec_ext in '' $ac_executable_extensions; do 13904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13905 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 13906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13907 break 2 13908 fi 13909 done 13910 done 13911 IFS=$as_save_IFS 13912 13913 ;; 13914 esac ;; 13915 esac 13916 fi 13917 XSLTPROC=$ac_cv_path_XSLTPROC 13918 if test -n "$XSLTPROC"; then 13919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 13920 printf "%s\n" "$XSLTPROC" >&6; } 13921 else 13922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13923 printf "%s\n" "no" >&6; } 13924 fi 13925 13926 13927 if test "x$XSLTPROC" = "x"; then 13928 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 13929 fi 13930 have_xsltproc=yes 13931 elif test "x$use_xsltproc" = x"no" ; then 13932 if test "x$XSLTPROC" != "x"; then 13933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 13934 printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 13935 fi 13936 have_xsltproc=no 13937 else 13938 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 13939 fi 13940 13941 if test "$have_xsltproc" = yes; then 13942 HAVE_XSLTPROC_TRUE= 13943 HAVE_XSLTPROC_FALSE='#' 13944 else 13945 HAVE_XSLTPROC_TRUE='#' 13946 HAVE_XSLTPROC_FALSE= 13947 fi 13948 13949 13950 13951 13952 13953 13954 13955 # Check for different types of support on different platforms 13956 case $host_os in 13957 solaris*) 13958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 13959 printf %s "checking for umem_alloc in -lumem... " >&6; } 13960 if test ${ac_cv_lib_umem_umem_alloc+y} 13961 then : 13962 printf %s "(cached) " >&6 13963 else case e in #( 13964 e) ac_check_lib_save_LIBS=$LIBS 13965 LIBS="-lumem $LIBS" 13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13967 /* end confdefs.h. */ 13968 13969 /* Override any GCC internal prototype to avoid an error. 13970 Use char because int might match the return type of a GCC 13971 builtin and then its argument prototype would still apply. 13972 The 'extern "C"' is for builds by C++ compilers; 13973 although this is not generally supported in C code supporting it here 13974 has little cost and some practical benefit (sr 110532). */ 13975 #ifdef __cplusplus 13976 extern "C" 13977 #endif 13978 char umem_alloc (void); 13979 int 13980 main (void) 13981 { 13982 return umem_alloc (); 13983 ; 13984 return 0; 13985 } 13986 _ACEOF 13987 if ac_fn_c_try_link "$LINENO" 13988 then : 13989 ac_cv_lib_umem_umem_alloc=yes 13990 else case e in #( 13991 e) ac_cv_lib_umem_umem_alloc=no ;; 13992 esac 13993 fi 13994 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13995 conftest$ac_exeext conftest.$ac_ext 13996 LIBS=$ac_check_lib_save_LIBS ;; 13997 esac 13998 fi 13999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 14000 printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; } 14001 if test "x$ac_cv_lib_umem_umem_alloc" = xyes 14002 then : 14003 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 14004 fi 14005 14006 ;; 14007 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 14008 # both directly and inverted, so should not be 0 or 255. 14009 malloc_debug_env='MALLOC_PERTURB_=15' 14010 ;; 14011 darwin*) 14012 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 14013 ;; 14014 *bsd*) 14015 malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 14016 ;; 14017 esac 14018 14019 # User supplied flags override default flags 14020 if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 14021 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 14022 fi 14023 14024 XORG_MALLOC_DEBUG_ENV=$malloc_debug_env 14025 14026 14027 14028 14029 14030 14031 14032 # Check whether --enable-unit-tests was given. 14033 if test ${enable_unit_tests+y} 14034 then : 14035 enableval=$enable_unit_tests; enable_unit_tests=$enableval 14036 else case e in #( 14037 e) enable_unit_tests=auto ;; 14038 esac 14039 fi 14040 14041 14042 if test "x$enable_unit_tests" != xno; then 14043 ENABLE_UNIT_TESTS_TRUE= 14044 ENABLE_UNIT_TESTS_FALSE='#' 14045 else 14046 ENABLE_UNIT_TESTS_TRUE='#' 14047 ENABLE_UNIT_TESTS_FALSE= 14048 fi 14049 14050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5 14051 printf %s "checking whether to build unit test cases... " >&6; } 14052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5 14053 printf "%s\n" "$enable_unit_tests" >&6; } 14054 14055 14056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-wrap,exit" >&5 14057 printf %s "checking whether the linker accepts -Wl,-wrap,exit... " >&6; } 14058 if test ${xorg_cv_linker_flags__Wl__wrap_exit+y} 14059 then : 14060 printf %s "(cached) " >&6 14061 else case e in #( 14062 e) 14063 ax_save_FLAGS=$LDFLAGS 14064 LDFLAGS="-Wl,-wrap,exit" 14065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14066 /* end confdefs.h. */ 14067 #include <stdlib.h> 14068 void __wrap_exit(int status) { return; } 14069 int 14070 main (void) 14071 { 14072 exit(0); 14073 ; 14074 return 0; 14075 } 14076 _ACEOF 14077 if ac_fn_c_try_link "$LINENO" 14078 then : 14079 xorg_cv_linker_flags__Wl__wrap_exit=yes 14080 else case e in #( 14081 e) xorg_cv_linker_flags__Wl__wrap_exit=no ;; 14082 esac 14083 fi 14084 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14085 conftest$ac_exeext conftest.$ac_ext 14086 LDFLAGS=$ax_save_FLAGS ;; 14087 esac 14088 fi 14089 14090 eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__wrap_exit 14091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5 14092 printf "%s\n" "$xorg_check_linker_flags" >&6; } 14093 if test "x$xorg_check_linker_flags" = xyes; then 14094 have_ld_wrap=yes 14095 else 14096 have_ld_wrap=no 14097 fi 14098 14099 # Not having ld wrap when unit testing has been explicitly requested is an error 14100 if test "x$enable_unit_tests" = x"yes" -a "xoptional" != "xoptional"; then 14101 if test "x$have_ld_wrap" = x"no"; then 14102 as_fn_error $? "--enable-unit-tests=yes specified but ld -wrap support is not available" "$LINENO" 5 14103 fi 14104 fi 14105 if test "$have_ld_wrap" = yes; then 14106 HAVE_LD_WRAP_TRUE= 14107 HAVE_LD_WRAP_FALSE='#' 14108 else 14109 HAVE_LD_WRAP_TRUE='#' 14110 HAVE_LD_WRAP_FALSE= 14111 fi 14112 14113 # 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 ac_config_headers="$ac_config_headers include/do-not-use-config.h" 14129 14130 ac_config_headers="$ac_config_headers include/xorg-server.h" 14131 14132 ac_config_headers="$ac_config_headers include/dix-config.h" 14133 14134 ac_config_headers="$ac_config_headers include/xorg-config.h" 14135 14136 ac_config_headers="$ac_config_headers include/xkb-config.h" 14137 14138 ac_config_headers="$ac_config_headers include/xwin-config.h" 14139 14140 ac_config_headers="$ac_config_headers include/version-config.h" 14141 14142 14143 # By default we simply use the C compiler to build assembly code. 14144 14145 test "${CCAS+set}" = set || CCAS=$CC 14146 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 14147 14148 14149 14150 depcc="$CCAS" am_compiler_list= 14151 14152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 14153 printf %s "checking dependency style of $depcc... " >&6; } 14154 if test ${am_cv_CCAS_dependencies_compiler_type+y} 14155 then : 14156 printf %s "(cached) " >&6 14157 else case e in #( 14158 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 14159 # We make a subdir and do the tests there. Otherwise we can end up 14160 # making bogus files that we don't know about and never remove. For 14161 # instance it was reported that on HP-UX the gcc test will end up 14162 # making a dummy file named 'D' -- because '-MD' means "put the output 14163 # in D". 14164 rm -rf conftest.dir 14165 mkdir conftest.dir 14166 # Copy depcomp to subdir because otherwise we won't find it if we're 14167 # using a relative directory. 14168 cp "$am_depcomp" conftest.dir 14169 cd conftest.dir 14170 # We will build objects and dependencies in a subdirectory because 14171 # it helps to detect inapplicable dependency modes. For instance 14172 # both Tru64's cc and ICC support -MD to output dependencies as a 14173 # side effect of compilation, but ICC will put the dependencies in 14174 # the current directory while Tru64 will put them in the object 14175 # directory. 14176 mkdir sub 14177 14178 am_cv_CCAS_dependencies_compiler_type=none 14179 if test "$am_compiler_list" = ""; then 14180 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 14181 fi 14182 am__universal=false 14183 14184 14185 for depmode in $am_compiler_list; do 14186 # Setup a source with many dependencies, because some compilers 14187 # like to wrap large dependency lists on column 80 (with \), and 14188 # we should not choose a depcomp mode which is confused by this. 14189 # 14190 # We need to recreate these files for each test, as the compiler may 14191 # overwrite some of them when testing with obscure command lines. 14192 # This happens at least with the AIX C compiler. 14193 : > sub/conftest.c 14194 for i in 1 2 3 4 5 6; do 14195 echo '#include "conftst'$i'.h"' >> sub/conftest.c 14196 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 14197 # Solaris 10 /bin/sh. 14198 echo '/* dummy */' > sub/conftst$i.h 14199 done 14200 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 14201 14202 # We check with '-c' and '-o' for the sake of the "dashmstdout" 14203 # mode. It turns out that the SunPro C++ compiler does not properly 14204 # handle '-M -o', and we need to detect this. Also, some Intel 14205 # versions had trouble with output in subdirs. 14206 am__obj=sub/conftest.${OBJEXT-o} 14207 am__minus_obj="-o $am__obj" 14208 case $depmode in 14209 gcc) 14210 # This depmode causes a compiler race in universal mode. 14211 test "$am__universal" = false || continue 14212 ;; 14213 nosideeffect) 14214 # After this tag, mechanisms are not by side-effect, so they'll 14215 # only be used when explicitly requested. 14216 if test "x$enable_dependency_tracking" = xyes; then 14217 continue 14218 else 14219 break 14220 fi 14221 ;; 14222 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 14223 # This compiler won't grok '-c -o', but also, the minuso test has 14224 # not run yet. These depmodes are late enough in the game, and 14225 # so weak that their functioning should not be impacted. 14226 am__obj=conftest.${OBJEXT-o} 14227 am__minus_obj= 14228 ;; 14229 none) break ;; 14230 esac 14231 if depmode=$depmode \ 14232 source=sub/conftest.c object=$am__obj \ 14233 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 14234 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 14235 >/dev/null 2>conftest.err && 14236 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 14237 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 14238 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 14239 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 14240 # icc doesn't choke on unknown options, it will just issue warnings 14241 # or remarks (even with -Werror). So we grep stderr for any message 14242 # that says an option was ignored or not supported. 14243 # When given -MP, icc 7.0 and 7.1 complain thus: 14244 # icc: Command line warning: ignoring option '-M'; no argument required 14245 # The diagnosis changed in icc 8.0: 14246 # icc: Command line remark: option '-MP' not supported 14247 if (grep 'ignoring option' conftest.err || 14248 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 14249 am_cv_CCAS_dependencies_compiler_type=$depmode 14250 break 14251 fi 14252 fi 14253 done 14254 14255 cd .. 14256 rm -rf conftest.dir 14257 else 14258 am_cv_CCAS_dependencies_compiler_type=none 14259 fi 14260 ;; 14261 esac 14262 fi 14263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 14264 printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; } 14265 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 14266 14267 if 14268 test "x$enable_dependency_tracking" != xno \ 14269 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 14270 am__fastdepCCAS_TRUE= 14271 am__fastdepCCAS_FALSE='#' 14272 else 14273 am__fastdepCCAS_TRUE='#' 14274 am__fastdepCCAS_FALSE= 14275 fi 14276 14277 14278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 14279 printf %s "checking whether ln -s works... " >&6; } 14280 LN_S=$as_ln_s 14281 if test "$LN_S" = "ln -s"; then 14282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14283 printf "%s\n" "yes" >&6; } 14284 else 14285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 14286 printf "%s\n" "no, using $LN_S" >&6; } 14287 fi 14288 14289 14290 case `pwd` in 14291 *\ * | *\ *) 14292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 14293 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 14294 esac 14295 14296 14297 14298 macro_version='2.5.4' 14299 macro_revision='2.5.4' 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 ltmain=$ac_aux_dir/ltmain.sh 14315 14316 # Backslashify metacharacters that are still active within 14317 # double-quoted strings. 14318 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 14319 14320 # Same as above, but do not quote variable references. 14321 double_quote_subst='s/\(["`\\]\)/\\\1/g' 14322 14323 # Sed substitution to delay expansion of an escaped shell variable in a 14324 # double_quote_subst'ed string. 14325 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 14326 14327 # Sed substitution to delay expansion of an escaped single quote. 14328 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 14329 14330 # Sed substitution to avoid accidental globbing in evaled expressions 14331 no_glob_subst='s/\*/\\\*/g' 14332 14333 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14334 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 14335 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 14336 14337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 14338 printf %s "checking how to print strings... " >&6; } 14339 # Test print first, because it will be a builtin if present. 14340 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 14341 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 14342 ECHO='print -r --' 14343 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 14344 ECHO='printf %s\n' 14345 else 14346 # Use this function as a fallback that always works. 14347 func_fallback_echo () 14348 { 14349 eval 'cat <<_LTECHO_EOF 14350 $1 14351 _LTECHO_EOF' 14352 } 14353 ECHO='func_fallback_echo' 14354 fi 14355 14356 # func_echo_all arg... 14357 # Invoke $ECHO with all args, space-separated. 14358 func_echo_all () 14359 { 14360 $ECHO "" 14361 } 14362 14363 case $ECHO in 14364 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 14365 printf "%s\n" "printf" >&6; } ;; 14366 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 14367 printf "%s\n" "print -r" >&6; } ;; 14368 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 14369 printf "%s\n" "cat" >&6; } ;; 14370 esac 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14386 printf %s "checking for a sed that does not truncate output... " >&6; } 14387 if test ${ac_cv_path_SED+y} 14388 then : 14389 printf %s "(cached) " >&6 14390 else case e in #( 14391 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14392 for ac_i in 1 2 3 4 5 6 7; do 14393 ac_script="$ac_script$as_nl$ac_script" 14394 done 14395 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14396 { ac_script=; unset ac_script;} 14397 if test -z "$SED"; then 14398 ac_path_SED_found=false 14399 # Loop through the user's path and test for each of PROGNAME-LIST 14400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14401 for as_dir in $PATH 14402 do 14403 IFS=$as_save_IFS 14404 case $as_dir in #((( 14405 '') as_dir=./ ;; 14406 */) ;; 14407 *) as_dir=$as_dir/ ;; 14408 esac 14409 for ac_prog in sed gsed 14410 do 14411 for ac_exec_ext in '' $ac_executable_extensions; do 14412 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 14413 as_fn_executable_p "$ac_path_SED" || continue 14414 # Check for GNU ac_path_SED and select it if it is found. 14415 # Check for GNU $ac_path_SED 14416 case `"$ac_path_SED" --version 2>&1` in #( 14417 *GNU*) 14418 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14419 #( 14420 *) 14421 ac_count=0 14422 printf %s 0123456789 >"conftest.in" 14423 while : 14424 do 14425 cat "conftest.in" "conftest.in" >"conftest.tmp" 14426 mv "conftest.tmp" "conftest.in" 14427 cp "conftest.in" "conftest.nl" 14428 printf "%s\n" '' >> "conftest.nl" 14429 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14430 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14431 as_fn_arith $ac_count + 1 && ac_count=$as_val 14432 if test $ac_count -gt ${ac_path_SED_max-0}; then 14433 # Best one so far, save it but keep looking for a better one 14434 ac_cv_path_SED="$ac_path_SED" 14435 ac_path_SED_max=$ac_count 14436 fi 14437 # 10*(2^10) chars as input seems more than enough 14438 test $ac_count -gt 10 && break 14439 done 14440 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14441 esac 14442 14443 $ac_path_SED_found && break 3 14444 done 14445 done 14446 done 14447 IFS=$as_save_IFS 14448 if test -z "$ac_cv_path_SED"; then 14449 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14450 fi 14451 else 14452 ac_cv_path_SED=$SED 14453 fi 14454 ;; 14455 esac 14456 fi 14457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14458 printf "%s\n" "$ac_cv_path_SED" >&6; } 14459 SED="$ac_cv_path_SED" 14460 rm -f conftest.sed 14461 14462 test -z "$SED" && SED=sed 14463 Xsed="$SED -e 1s/^X//" 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 14476 printf %s "checking for grep that handles long lines and -e... " >&6; } 14477 if test ${ac_cv_path_GREP+y} 14478 then : 14479 printf %s "(cached) " >&6 14480 else case e in #( 14481 e) if test -z "$GREP"; then 14482 ac_path_GREP_found=false 14483 # Loop through the user's path and test for each of PROGNAME-LIST 14484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14485 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 14486 do 14487 IFS=$as_save_IFS 14488 case $as_dir in #((( 14489 '') as_dir=./ ;; 14490 */) ;; 14491 *) as_dir=$as_dir/ ;; 14492 esac 14493 for ac_prog in grep ggrep 14494 do 14495 for ac_exec_ext in '' $ac_executable_extensions; do 14496 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 14497 as_fn_executable_p "$ac_path_GREP" || continue 14498 # Check for GNU ac_path_GREP and select it if it is found. 14499 # Check for GNU $ac_path_GREP 14500 case `"$ac_path_GREP" --version 2>&1` in #( 14501 *GNU*) 14502 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 14503 #( 14504 *) 14505 ac_count=0 14506 printf %s 0123456789 >"conftest.in" 14507 while : 14508 do 14509 cat "conftest.in" "conftest.in" >"conftest.tmp" 14510 mv "conftest.tmp" "conftest.in" 14511 cp "conftest.in" "conftest.nl" 14512 printf "%s\n" 'GREP' >> "conftest.nl" 14513 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 14514 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14515 as_fn_arith $ac_count + 1 && ac_count=$as_val 14516 if test $ac_count -gt ${ac_path_GREP_max-0}; then 14517 # Best one so far, save it but keep looking for a better one 14518 ac_cv_path_GREP="$ac_path_GREP" 14519 ac_path_GREP_max=$ac_count 14520 fi 14521 # 10*(2^10) chars as input seems more than enough 14522 test $ac_count -gt 10 && break 14523 done 14524 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14525 esac 14526 14527 $ac_path_GREP_found && break 3 14528 done 14529 done 14530 done 14531 IFS=$as_save_IFS 14532 if test -z "$ac_cv_path_GREP"; then 14533 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 14534 fi 14535 else 14536 ac_cv_path_GREP=$GREP 14537 fi 14538 ;; 14539 esac 14540 fi 14541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 14542 printf "%s\n" "$ac_cv_path_GREP" >&6; } 14543 GREP="$ac_cv_path_GREP" 14544 14545 14546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 14547 printf %s "checking for egrep... " >&6; } 14548 if test ${ac_cv_path_EGREP+y} 14549 then : 14550 printf %s "(cached) " >&6 14551 else case e in #( 14552 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 14553 then ac_cv_path_EGREP="$GREP -E" 14554 else 14555 if test -z "$EGREP"; then 14556 ac_path_EGREP_found=false 14557 # Loop through the user's path and test for each of PROGNAME-LIST 14558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 14560 do 14561 IFS=$as_save_IFS 14562 case $as_dir in #((( 14563 '') as_dir=./ ;; 14564 */) ;; 14565 *) as_dir=$as_dir/ ;; 14566 esac 14567 for ac_prog in egrep 14568 do 14569 for ac_exec_ext in '' $ac_executable_extensions; do 14570 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 14571 as_fn_executable_p "$ac_path_EGREP" || continue 14572 # Check for GNU ac_path_EGREP and select it if it is found. 14573 # Check for GNU $ac_path_EGREP 14574 case `"$ac_path_EGREP" --version 2>&1` in #( 14575 *GNU*) 14576 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 14577 #( 14578 *) 14579 ac_count=0 14580 printf %s 0123456789 >"conftest.in" 14581 while : 14582 do 14583 cat "conftest.in" "conftest.in" >"conftest.tmp" 14584 mv "conftest.tmp" "conftest.in" 14585 cp "conftest.in" "conftest.nl" 14586 printf "%s\n" 'EGREP' >> "conftest.nl" 14587 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 14588 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14589 as_fn_arith $ac_count + 1 && ac_count=$as_val 14590 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 14591 # Best one so far, save it but keep looking for a better one 14592 ac_cv_path_EGREP="$ac_path_EGREP" 14593 ac_path_EGREP_max=$ac_count 14594 fi 14595 # 10*(2^10) chars as input seems more than enough 14596 test $ac_count -gt 10 && break 14597 done 14598 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14599 esac 14600 14601 $ac_path_EGREP_found && break 3 14602 done 14603 done 14604 done 14605 IFS=$as_save_IFS 14606 if test -z "$ac_cv_path_EGREP"; then 14607 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 14608 fi 14609 else 14610 ac_cv_path_EGREP=$EGREP 14611 fi 14612 14613 fi ;; 14614 esac 14615 fi 14616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 14617 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 14618 EGREP="$ac_cv_path_EGREP" 14619 14620 EGREP_TRADITIONAL=$EGREP 14621 ac_cv_path_EGREP_TRADITIONAL=$EGREP 14622 14623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 14624 printf %s "checking for fgrep... " >&6; } 14625 if test ${ac_cv_path_FGREP+y} 14626 then : 14627 printf %s "(cached) " >&6 14628 else case e in #( 14629 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 14630 then ac_cv_path_FGREP="$GREP -F" 14631 else 14632 if test -z "$FGREP"; then 14633 ac_path_FGREP_found=false 14634 # Loop through the user's path and test for each of PROGNAME-LIST 14635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14636 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 14637 do 14638 IFS=$as_save_IFS 14639 case $as_dir in #((( 14640 '') as_dir=./ ;; 14641 */) ;; 14642 *) as_dir=$as_dir/ ;; 14643 esac 14644 for ac_prog in fgrep 14645 do 14646 for ac_exec_ext in '' $ac_executable_extensions; do 14647 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 14648 as_fn_executable_p "$ac_path_FGREP" || continue 14649 # Check for GNU ac_path_FGREP and select it if it is found. 14650 # Check for GNU $ac_path_FGREP 14651 case `"$ac_path_FGREP" --version 2>&1` in #( 14652 *GNU*) 14653 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 14654 #( 14655 *) 14656 ac_count=0 14657 printf %s 0123456789 >"conftest.in" 14658 while : 14659 do 14660 cat "conftest.in" "conftest.in" >"conftest.tmp" 14661 mv "conftest.tmp" "conftest.in" 14662 cp "conftest.in" "conftest.nl" 14663 printf "%s\n" 'FGREP' >> "conftest.nl" 14664 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 14665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14666 as_fn_arith $ac_count + 1 && ac_count=$as_val 14667 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 14668 # Best one so far, save it but keep looking for a better one 14669 ac_cv_path_FGREP="$ac_path_FGREP" 14670 ac_path_FGREP_max=$ac_count 14671 fi 14672 # 10*(2^10) chars as input seems more than enough 14673 test $ac_count -gt 10 && break 14674 done 14675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14676 esac 14677 14678 $ac_path_FGREP_found && break 3 14679 done 14680 done 14681 done 14682 IFS=$as_save_IFS 14683 if test -z "$ac_cv_path_FGREP"; then 14684 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 14685 fi 14686 else 14687 ac_cv_path_FGREP=$FGREP 14688 fi 14689 14690 fi ;; 14691 esac 14692 fi 14693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 14694 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 14695 FGREP="$ac_cv_path_FGREP" 14696 14697 14698 test -z "$GREP" && GREP=grep 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 # Check whether --with-gnu-ld was given. 14719 if test ${with_gnu_ld+y} 14720 then : 14721 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 14722 else case e in #( 14723 e) with_gnu_ld=no ;; 14724 esac 14725 fi 14726 14727 ac_prog=ld 14728 if test yes = "$GCC"; then 14729 # Check if gcc -print-prog-name=ld gives a path. 14730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14731 printf %s "checking for ld used by $CC... " >&6; } 14732 case $host in 14733 *-*-mingw* | *-*-windows*) 14734 # gcc leaves a trailing carriage return, which upsets mingw 14735 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14736 *) 14737 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14738 esac 14739 case $ac_prog in 14740 # Accept absolute paths. 14741 [\\/]* | ?:[\\/]*) 14742 re_direlt='/[^/][^/]*/\.\./' 14743 # Canonicalize the pathname of ld 14744 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14745 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14746 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14747 done 14748 test -z "$LD" && LD=$ac_prog 14749 ;; 14750 "") 14751 # If it fails, then pretend we aren't using GCC. 14752 ac_prog=ld 14753 ;; 14754 *) 14755 # If it is relative, then search for the first ld in PATH. 14756 with_gnu_ld=unknown 14757 ;; 14758 esac 14759 elif test yes = "$with_gnu_ld"; then 14760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14761 printf %s "checking for GNU ld... " >&6; } 14762 else 14763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14764 printf %s "checking for non-GNU ld... " >&6; } 14765 fi 14766 if test ${lt_cv_path_LD+y} 14767 then : 14768 printf %s "(cached) " >&6 14769 else case e in #( 14770 e) if test -z "$LD"; then 14771 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14772 for ac_dir in $PATH; do 14773 IFS=$lt_save_ifs 14774 test -z "$ac_dir" && ac_dir=. 14775 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14776 lt_cv_path_LD=$ac_dir/$ac_prog 14777 # Check to see if the program is GNU ld. I'd rather use --version, 14778 # but apparently some variants of GNU ld only accept -v. 14779 # Break only if it was the GNU/non-GNU ld that we prefer. 14780 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14781 *GNU* | *'with BFD'*) 14782 test no != "$with_gnu_ld" && break 14783 ;; 14784 *) 14785 test yes != "$with_gnu_ld" && break 14786 ;; 14787 esac 14788 fi 14789 done 14790 IFS=$lt_save_ifs 14791 else 14792 lt_cv_path_LD=$LD # Let the user override the test with a path. 14793 fi ;; 14794 esac 14795 fi 14796 14797 LD=$lt_cv_path_LD 14798 if test -n "$LD"; then 14799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14800 printf "%s\n" "$LD" >&6; } 14801 else 14802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14803 printf "%s\n" "no" >&6; } 14804 fi 14805 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14807 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 14808 if test ${lt_cv_prog_gnu_ld+y} 14809 then : 14810 printf %s "(cached) " >&6 14811 else case e in #( 14812 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 14813 case `$LD -v 2>&1 </dev/null` in 14814 *GNU* | *'with BFD'*) 14815 lt_cv_prog_gnu_ld=yes 14816 ;; 14817 *) 14818 lt_cv_prog_gnu_ld=no 14819 ;; 14820 esac ;; 14821 esac 14822 fi 14823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14824 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 14825 with_gnu_ld=$lt_cv_prog_gnu_ld 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 14836 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 14837 if test ${lt_cv_path_NM+y} 14838 then : 14839 printf %s "(cached) " >&6 14840 else case e in #( 14841 e) if test -n "$NM"; then 14842 # Let the user override the test. 14843 lt_cv_path_NM=$NM 14844 else 14845 lt_nm_to_check=${ac_tool_prefix}nm 14846 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 14847 lt_nm_to_check="$lt_nm_to_check nm" 14848 fi 14849 for lt_tmp_nm in $lt_nm_to_check; do 14850 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14851 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 14852 IFS=$lt_save_ifs 14853 test -z "$ac_dir" && ac_dir=. 14854 tmp_nm=$ac_dir/$lt_tmp_nm 14855 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 14856 # Check to see if the nm accepts a BSD-compat flag. 14857 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 14858 # nm: unknown option "B" ignored 14859 # Tru64's nm complains that /dev/null is an invalid object file 14860 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 14861 case $build_os in 14862 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; 14863 *) lt_bad_file=/dev/null ;; 14864 esac 14865 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 14866 *$lt_bad_file* | *'Invalid file or object type'*) 14867 lt_cv_path_NM="$tmp_nm -B" 14868 break 2 14869 ;; 14870 *) 14871 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 14872 */dev/null*) 14873 lt_cv_path_NM="$tmp_nm -p" 14874 break 2 14875 ;; 14876 *) 14877 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 14878 continue # so that we can try to find one that supports BSD flags 14879 ;; 14880 esac 14881 ;; 14882 esac 14883 fi 14884 done 14885 IFS=$lt_save_ifs 14886 done 14887 : ${lt_cv_path_NM=no} 14888 fi ;; 14889 esac 14890 fi 14891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 14892 printf "%s\n" "$lt_cv_path_NM" >&6; } 14893 if test no != "$lt_cv_path_NM"; then 14894 NM=$lt_cv_path_NM 14895 else 14896 # Didn't find any BSD compatible name lister, look for dumpbin. 14897 if test -n "$DUMPBIN"; then : 14898 # Let the user override the test. 14899 else 14900 if test -n "$ac_tool_prefix"; then 14901 for ac_prog in dumpbin "link -dump" 14902 do 14903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 14904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 14905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14906 printf %s "checking for $ac_word... " >&6; } 14907 if test ${ac_cv_prog_DUMPBIN+y} 14908 then : 14909 printf %s "(cached) " >&6 14910 else case e in #( 14911 e) if test -n "$DUMPBIN"; then 14912 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 14913 else 14914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14915 for as_dir in $PATH 14916 do 14917 IFS=$as_save_IFS 14918 case $as_dir in #((( 14919 '') as_dir=./ ;; 14920 */) ;; 14921 *) as_dir=$as_dir/ ;; 14922 esac 14923 for ac_exec_ext in '' $ac_executable_extensions; do 14924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14925 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 14926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14927 break 2 14928 fi 14929 done 14930 done 14931 IFS=$as_save_IFS 14932 14933 fi ;; 14934 esac 14935 fi 14936 DUMPBIN=$ac_cv_prog_DUMPBIN 14937 if test -n "$DUMPBIN"; then 14938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 14939 printf "%s\n" "$DUMPBIN" >&6; } 14940 else 14941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14942 printf "%s\n" "no" >&6; } 14943 fi 14944 14945 14946 test -n "$DUMPBIN" && break 14947 done 14948 fi 14949 if test -z "$DUMPBIN"; then 14950 ac_ct_DUMPBIN=$DUMPBIN 14951 for ac_prog in dumpbin "link -dump" 14952 do 14953 # Extract the first word of "$ac_prog", so it can be a program name with args. 14954 set dummy $ac_prog; ac_word=$2 14955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14956 printf %s "checking for $ac_word... " >&6; } 14957 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 14958 then : 14959 printf %s "(cached) " >&6 14960 else case e in #( 14961 e) if test -n "$ac_ct_DUMPBIN"; then 14962 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 14963 else 14964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14965 for as_dir in $PATH 14966 do 14967 IFS=$as_save_IFS 14968 case $as_dir in #((( 14969 '') as_dir=./ ;; 14970 */) ;; 14971 *) as_dir=$as_dir/ ;; 14972 esac 14973 for ac_exec_ext in '' $ac_executable_extensions; do 14974 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14975 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 14976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14977 break 2 14978 fi 14979 done 14980 done 14981 IFS=$as_save_IFS 14982 14983 fi ;; 14984 esac 14985 fi 14986 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 14987 if test -n "$ac_ct_DUMPBIN"; then 14988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 14989 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 14990 else 14991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14992 printf "%s\n" "no" >&6; } 14993 fi 14994 14995 14996 test -n "$ac_ct_DUMPBIN" && break 14997 done 14998 14999 if test "x$ac_ct_DUMPBIN" = x; then 15000 DUMPBIN=":" 15001 else 15002 case $cross_compiling:$ac_tool_warned in 15003 yes:) 15004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15005 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15006 ac_tool_warned=yes ;; 15007 esac 15008 DUMPBIN=$ac_ct_DUMPBIN 15009 fi 15010 fi 15011 15012 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 15013 *COFF*) 15014 DUMPBIN="$DUMPBIN -symbols -headers" 15015 ;; 15016 *) 15017 DUMPBIN=: 15018 ;; 15019 esac 15020 fi 15021 15022 if test : != "$DUMPBIN"; then 15023 NM=$DUMPBIN 15024 fi 15025 fi 15026 test -z "$NM" && NM=nm 15027 15028 15029 15030 15031 15032 15033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 15034 printf %s "checking the name lister ($NM) interface... " >&6; } 15035 if test ${lt_cv_nm_interface+y} 15036 then : 15037 printf %s "(cached) " >&6 15038 else case e in #( 15039 e) lt_cv_nm_interface="BSD nm" 15040 echo "int some_variable = 0;" > conftest.$ac_ext 15041 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 15042 (eval "$ac_compile" 2>conftest.err) 15043 cat conftest.err >&5 15044 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 15045 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 15046 cat conftest.err >&5 15047 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 15048 cat conftest.out >&5 15049 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 15050 lt_cv_nm_interface="MS dumpbin" 15051 fi 15052 rm -f conftest* ;; 15053 esac 15054 fi 15055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 15056 printf "%s\n" "$lt_cv_nm_interface" >&6; } 15057 15058 # find the maximum length of command line arguments 15059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 15060 printf %s "checking the maximum length of command line arguments... " >&6; } 15061 if test ${lt_cv_sys_max_cmd_len+y} 15062 then : 15063 printf %s "(cached) " >&6 15064 else case e in #( 15065 e) i=0 15066 teststring=ABCD 15067 15068 case $build_os in 15069 msdosdjgpp*) 15070 # On DJGPP, this test can blow up pretty badly due to problems in libc 15071 # (any single argument exceeding 2000 bytes causes a buffer overrun 15072 # during glob expansion). Even if it were fixed, the result of this 15073 # check would be larger than it should be. 15074 lt_cv_sys_max_cmd_len=12288; # 12K is about right 15075 ;; 15076 15077 gnu* | ironclad*) 15078 # Under GNU Hurd and Ironclad, this test is not required because there 15079 # is no limit to the length of command line arguments. 15080 # Libtool will interpret -1 as no limit whatsoever 15081 lt_cv_sys_max_cmd_len=-1; 15082 ;; 15083 15084 cygwin* | mingw* | windows* | cegcc*) 15085 # On Win9x/ME, this test blows up -- it succeeds, but takes 15086 # about 5 minutes as the teststring grows exponentially. 15087 # Worse, since 9x/ME are not pre-emptively multitasking, 15088 # you end up with a "frozen" computer, even though with patience 15089 # the test eventually succeeds (with a max line length of 256k). 15090 # Instead, let's just punt: use the minimum linelength reported by 15091 # all of the supported platforms: 8192 (on NT/2K/XP). 15092 lt_cv_sys_max_cmd_len=8192; 15093 ;; 15094 15095 mint*) 15096 # On MiNT this can take a long time and run out of memory. 15097 lt_cv_sys_max_cmd_len=8192; 15098 ;; 15099 15100 amigaos*) 15101 # On AmigaOS with pdksh, this test takes hours, literally. 15102 # So we just punt and use a minimum line length of 8192. 15103 lt_cv_sys_max_cmd_len=8192; 15104 ;; 15105 15106 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 15107 # This has been around since 386BSD, at least. Likely further. 15108 if test -x /sbin/sysctl; then 15109 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 15110 elif test -x /usr/sbin/sysctl; then 15111 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 15112 else 15113 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 15114 fi 15115 # And add a safety zone 15116 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 15117 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 15118 ;; 15119 15120 interix*) 15121 # We know the value 262144 and hardcode it with a safety zone (like BSD) 15122 lt_cv_sys_max_cmd_len=196608 15123 ;; 15124 15125 os2*) 15126 # The test takes a long time on OS/2. 15127 lt_cv_sys_max_cmd_len=8192 15128 ;; 15129 15130 osf*) 15131 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 15132 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 15133 # nice to cause kernel panics so lets avoid the loop below. 15134 # First set a reasonable default. 15135 lt_cv_sys_max_cmd_len=16384 15136 # 15137 if test -x /sbin/sysconfig; then 15138 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 15139 *1*) lt_cv_sys_max_cmd_len=-1 ;; 15140 esac 15141 fi 15142 ;; 15143 sco3.2v5*) 15144 lt_cv_sys_max_cmd_len=102400 15145 ;; 15146 sysv5* | sco5v6* | sysv4.2uw2*) 15147 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 15148 if test -n "$kargmax"; then 15149 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 15150 else 15151 lt_cv_sys_max_cmd_len=32768 15152 fi 15153 ;; 15154 *) 15155 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 15156 if test -n "$lt_cv_sys_max_cmd_len" && \ 15157 test undefined != "$lt_cv_sys_max_cmd_len"; then 15158 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 15159 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 15160 else 15161 # Make teststring a little bigger before we do anything with it. 15162 # a 1K string should be a reasonable start. 15163 for i in 1 2 3 4 5 6 7 8; do 15164 teststring=$teststring$teststring 15165 done 15166 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 15167 # If test is not a shell built-in, we'll probably end up computing a 15168 # maximum length that is only half of the actual maximum length, but 15169 # we can't tell. 15170 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 15171 = "X$teststring$teststring"; } >/dev/null 2>&1 && 15172 test 17 != "$i" # 1/2 MB should be enough 15173 do 15174 i=`expr $i + 1` 15175 teststring=$teststring$teststring 15176 done 15177 # Only check the string length outside the loop. 15178 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 15179 teststring= 15180 # Add a significant safety factor because C++ compilers can tack on 15181 # massive amounts of additional arguments before passing them to the 15182 # linker. It appears as though 1/2 is a usable value. 15183 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 15184 fi 15185 ;; 15186 esac 15187 ;; 15188 esac 15189 fi 15190 15191 if test -n "$lt_cv_sys_max_cmd_len"; then 15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 15193 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 15194 else 15195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 15196 printf "%s\n" "none" >&6; } 15197 fi 15198 max_cmd_len=$lt_cv_sys_max_cmd_len 15199 15200 15201 15202 15203 15204 15205 : ${CP="cp -f"} 15206 : ${MV="mv -f"} 15207 : ${RM="rm -f"} 15208 15209 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 15210 lt_unset=unset 15211 else 15212 lt_unset=false 15213 fi 15214 15215 15216 15217 15218 15219 # test EBCDIC or ASCII 15220 case `echo X|tr X '\101'` in 15221 A) # ASCII based system 15222 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 15223 lt_SP2NL='tr \040 \012' 15224 lt_NL2SP='tr \015\012 \040\040' 15225 ;; 15226 *) # EBCDIC based system 15227 lt_SP2NL='tr \100 \n' 15228 lt_NL2SP='tr \r\n \100\100' 15229 ;; 15230 esac 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 15241 printf %s "checking how to convert $build file names to $host format... " >&6; } 15242 if test ${lt_cv_to_host_file_cmd+y} 15243 then : 15244 printf %s "(cached) " >&6 15245 else case e in #( 15246 e) case $host in 15247 *-*-mingw* ) 15248 case $build in 15249 *-*-mingw* | *-*-windows* ) # actually msys 15250 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 15251 ;; 15252 *-*-cygwin* ) 15253 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 15254 ;; 15255 * ) # otherwise, assume *nix 15256 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 15257 ;; 15258 esac 15259 ;; 15260 *-*-cygwin* ) 15261 case $build in 15262 *-*-mingw* | *-*-windows* ) # actually msys 15263 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 15264 ;; 15265 *-*-cygwin* ) 15266 lt_cv_to_host_file_cmd=func_convert_file_noop 15267 ;; 15268 * ) # otherwise, assume *nix 15269 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 15270 ;; 15271 esac 15272 ;; 15273 * ) # unhandled hosts (and "normal" native builds) 15274 lt_cv_to_host_file_cmd=func_convert_file_noop 15275 ;; 15276 esac 15277 ;; 15278 esac 15279 fi 15280 15281 to_host_file_cmd=$lt_cv_to_host_file_cmd 15282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 15283 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 15284 15285 15286 15287 15288 15289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 15290 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 15291 if test ${lt_cv_to_tool_file_cmd+y} 15292 then : 15293 printf %s "(cached) " >&6 15294 else case e in #( 15295 e) #assume ordinary cross tools, or native build. 15296 lt_cv_to_tool_file_cmd=func_convert_file_noop 15297 case $host in 15298 *-*-mingw* | *-*-windows* ) 15299 case $build in 15300 *-*-mingw* | *-*-windows* ) # actually msys 15301 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 15302 ;; 15303 esac 15304 ;; 15305 esac 15306 ;; 15307 esac 15308 fi 15309 15310 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 15312 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 15313 15314 15315 15316 15317 15318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 15319 printf %s "checking for $LD option to reload object files... " >&6; } 15320 if test ${lt_cv_ld_reload_flag+y} 15321 then : 15322 printf %s "(cached) " >&6 15323 else case e in #( 15324 e) lt_cv_ld_reload_flag='-r' ;; 15325 esac 15326 fi 15327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 15328 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 15329 reload_flag=$lt_cv_ld_reload_flag 15330 case $reload_flag in 15331 "" | " "*) ;; 15332 *) reload_flag=" $reload_flag" ;; 15333 esac 15334 reload_cmds='$LD$reload_flag -o $output$reload_objs' 15335 case $host_os in 15336 cygwin* | mingw* | windows* | pw32* | cegcc*) 15337 if test yes != "$GCC"; then 15338 reload_cmds=false 15339 fi 15340 ;; 15341 darwin*) 15342 if test yes = "$GCC"; then 15343 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 15344 else 15345 reload_cmds='$LD$reload_flag -o $output$reload_objs' 15346 fi 15347 ;; 15348 esac 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 # Extract the first word of "file", so it can be a program name with args. 15359 set dummy file; ac_word=$2 15360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15361 printf %s "checking for $ac_word... " >&6; } 15362 if test ${ac_cv_prog_FILECMD+y} 15363 then : 15364 printf %s "(cached) " >&6 15365 else case e in #( 15366 e) if test -n "$FILECMD"; then 15367 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 15368 else 15369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15370 for as_dir in $PATH 15371 do 15372 IFS=$as_save_IFS 15373 case $as_dir in #((( 15374 '') as_dir=./ ;; 15375 */) ;; 15376 *) as_dir=$as_dir/ ;; 15377 esac 15378 for ac_exec_ext in '' $ac_executable_extensions; do 15379 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15380 ac_cv_prog_FILECMD="file" 15381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15382 break 2 15383 fi 15384 done 15385 done 15386 IFS=$as_save_IFS 15387 15388 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" 15389 fi ;; 15390 esac 15391 fi 15392 FILECMD=$ac_cv_prog_FILECMD 15393 if test -n "$FILECMD"; then 15394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 15395 printf "%s\n" "$FILECMD" >&6; } 15396 else 15397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15398 printf "%s\n" "no" >&6; } 15399 fi 15400 15401 15402 15403 15404 15405 15406 15407 15408 if test -n "$ac_tool_prefix"; then 15409 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 15410 set dummy ${ac_tool_prefix}objdump; ac_word=$2 15411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15412 printf %s "checking for $ac_word... " >&6; } 15413 if test ${ac_cv_prog_OBJDUMP+y} 15414 then : 15415 printf %s "(cached) " >&6 15416 else case e in #( 15417 e) if test -n "$OBJDUMP"; then 15418 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 15419 else 15420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15421 for as_dir in $PATH 15422 do 15423 IFS=$as_save_IFS 15424 case $as_dir in #((( 15425 '') as_dir=./ ;; 15426 */) ;; 15427 *) as_dir=$as_dir/ ;; 15428 esac 15429 for ac_exec_ext in '' $ac_executable_extensions; do 15430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15431 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 15432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15433 break 2 15434 fi 15435 done 15436 done 15437 IFS=$as_save_IFS 15438 15439 fi ;; 15440 esac 15441 fi 15442 OBJDUMP=$ac_cv_prog_OBJDUMP 15443 if test -n "$OBJDUMP"; then 15444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 15445 printf "%s\n" "$OBJDUMP" >&6; } 15446 else 15447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15448 printf "%s\n" "no" >&6; } 15449 fi 15450 15451 15452 fi 15453 if test -z "$ac_cv_prog_OBJDUMP"; then 15454 ac_ct_OBJDUMP=$OBJDUMP 15455 # Extract the first word of "objdump", so it can be a program name with args. 15456 set dummy objdump; ac_word=$2 15457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15458 printf %s "checking for $ac_word... " >&6; } 15459 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 15460 then : 15461 printf %s "(cached) " >&6 15462 else case e in #( 15463 e) if test -n "$ac_ct_OBJDUMP"; then 15464 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 15465 else 15466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15467 for as_dir in $PATH 15468 do 15469 IFS=$as_save_IFS 15470 case $as_dir in #((( 15471 '') as_dir=./ ;; 15472 */) ;; 15473 *) as_dir=$as_dir/ ;; 15474 esac 15475 for ac_exec_ext in '' $ac_executable_extensions; do 15476 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15477 ac_cv_prog_ac_ct_OBJDUMP="objdump" 15478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15479 break 2 15480 fi 15481 done 15482 done 15483 IFS=$as_save_IFS 15484 15485 fi ;; 15486 esac 15487 fi 15488 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 15489 if test -n "$ac_ct_OBJDUMP"; then 15490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 15491 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 15492 else 15493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15494 printf "%s\n" "no" >&6; } 15495 fi 15496 15497 if test "x$ac_ct_OBJDUMP" = x; then 15498 OBJDUMP="false" 15499 else 15500 case $cross_compiling:$ac_tool_warned in 15501 yes:) 15502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15503 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15504 ac_tool_warned=yes ;; 15505 esac 15506 OBJDUMP=$ac_ct_OBJDUMP 15507 fi 15508 else 15509 OBJDUMP="$ac_cv_prog_OBJDUMP" 15510 fi 15511 15512 test -z "$OBJDUMP" && OBJDUMP=objdump 15513 15514 15515 15516 15517 15518 15519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 15520 printf %s "checking how to recognize dependent libraries... " >&6; } 15521 if test ${lt_cv_deplibs_check_method+y} 15522 then : 15523 printf %s "(cached) " >&6 15524 else case e in #( 15525 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 15526 lt_cv_file_magic_test_file= 15527 lt_cv_deplibs_check_method='unknown' 15528 # Need to set the preceding variable on all platforms that support 15529 # interlibrary dependencies. 15530 # 'none' -- dependencies not supported. 15531 # 'unknown' -- same as none, but documents that we really don't know. 15532 # 'pass_all' -- all dependencies passed with no checks. 15533 # 'file_magic [[regex]]' -- check by looking for files in library path 15534 # that responds to the $file_magic_cmd with a given extended regex. 15535 # If you have 'file' or equivalent on your system and you're not sure 15536 # whether 'pass_all' will *always* work, you probably want this one. 15537 15538 case $host_os in 15539 aix[4-9]*) 15540 lt_cv_deplibs_check_method=pass_all 15541 ;; 15542 15543 beos*) 15544 lt_cv_deplibs_check_method=pass_all 15545 ;; 15546 15547 bsdi[45]*) 15548 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 15549 lt_cv_file_magic_cmd='$FILECMD -L' 15550 lt_cv_file_magic_test_file=/shlib/libc.so 15551 ;; 15552 15553 cygwin*) 15554 # func_win32_libid is a shell function defined in ltmain.sh 15555 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 15556 lt_cv_file_magic_cmd='func_win32_libid' 15557 ;; 15558 15559 mingw* | windows* | pw32*) 15560 # Base MSYS/MinGW do not provide the 'file' command needed by 15561 # func_win32_libid shell function, so use a weaker test based on 'objdump', 15562 # unless we find 'file', for example because we are cross-compiling. 15563 if ( file / ) >/dev/null 2>&1; then 15564 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 15565 lt_cv_file_magic_cmd='func_win32_libid' 15566 else 15567 # Keep this pattern in sync with the one in func_win32_libid. 15568 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' 15569 lt_cv_file_magic_cmd='$OBJDUMP -f' 15570 fi 15571 ;; 15572 15573 cegcc*) 15574 # use the weaker test based on 'objdump'. See mingw*. 15575 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 15576 lt_cv_file_magic_cmd='$OBJDUMP -f' 15577 ;; 15578 15579 darwin* | rhapsody*) 15580 lt_cv_deplibs_check_method=pass_all 15581 ;; 15582 15583 freebsd* | dragonfly* | midnightbsd*) 15584 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 15585 case $host_cpu in 15586 i*86 ) 15587 # Not sure whether the presence of OpenBSD here was a mistake. 15588 # Let's accept both of them until this is cleared up. 15589 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 15590 lt_cv_file_magic_cmd=$FILECMD 15591 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 15592 ;; 15593 esac 15594 else 15595 lt_cv_deplibs_check_method=pass_all 15596 fi 15597 ;; 15598 15599 haiku*) 15600 lt_cv_deplibs_check_method=pass_all 15601 ;; 15602 15603 hpux10.20* | hpux11*) 15604 lt_cv_file_magic_cmd=$FILECMD 15605 case $host_cpu in 15606 ia64*) 15607 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 15608 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 15609 ;; 15610 hppa*64*) 15611 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]' 15612 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 15613 ;; 15614 *) 15615 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 15616 lt_cv_file_magic_test_file=/usr/lib/libc.sl 15617 ;; 15618 esac 15619 ;; 15620 15621 interix[3-9]*) 15622 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 15623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 15624 ;; 15625 15626 irix5* | irix6* | nonstopux*) 15627 case $LD in 15628 *-32|*"-32 ") libmagic=32-bit;; 15629 *-n32|*"-n32 ") libmagic=N32;; 15630 *-64|*"-64 ") libmagic=64-bit;; 15631 *) libmagic=never-match;; 15632 esac 15633 lt_cv_deplibs_check_method=pass_all 15634 ;; 15635 15636 # This must be glibc/ELF. 15637 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15638 lt_cv_deplibs_check_method=pass_all 15639 ;; 15640 15641 *-mlibc) 15642 lt_cv_deplibs_check_method=pass_all 15643 ;; 15644 15645 netbsd* | netbsdelf*-gnu) 15646 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 15647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 15648 else 15649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 15650 fi 15651 ;; 15652 15653 newos6*) 15654 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 15655 lt_cv_file_magic_cmd=$FILECMD 15656 lt_cv_file_magic_test_file=/usr/lib/libnls.so 15657 ;; 15658 15659 *nto* | *qnx*) 15660 lt_cv_deplibs_check_method=pass_all 15661 ;; 15662 15663 openbsd*) 15664 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 15666 else 15667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 15668 fi 15669 ;; 15670 15671 osf3* | osf4* | osf5*) 15672 lt_cv_deplibs_check_method=pass_all 15673 ;; 15674 15675 rdos*) 15676 lt_cv_deplibs_check_method=pass_all 15677 ;; 15678 15679 serenity*) 15680 lt_cv_deplibs_check_method=pass_all 15681 ;; 15682 15683 solaris*) 15684 lt_cv_deplibs_check_method=pass_all 15685 ;; 15686 15687 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15688 lt_cv_deplibs_check_method=pass_all 15689 ;; 15690 15691 sysv4 | sysv4.3*) 15692 case $host_vendor in 15693 motorola) 15694 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]' 15695 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 15696 ;; 15697 ncr) 15698 lt_cv_deplibs_check_method=pass_all 15699 ;; 15700 sequent) 15701 lt_cv_file_magic_cmd='/bin/file' 15702 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 15703 ;; 15704 sni) 15705 lt_cv_file_magic_cmd='/bin/file' 15706 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 15707 lt_cv_file_magic_test_file=/lib/libc.so 15708 ;; 15709 siemens) 15710 lt_cv_deplibs_check_method=pass_all 15711 ;; 15712 pc) 15713 lt_cv_deplibs_check_method=pass_all 15714 ;; 15715 esac 15716 ;; 15717 15718 tpf*) 15719 lt_cv_deplibs_check_method=pass_all 15720 ;; 15721 os2*) 15722 lt_cv_deplibs_check_method=pass_all 15723 ;; 15724 esac 15725 ;; 15726 esac 15727 fi 15728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 15729 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 15730 15731 file_magic_glob= 15732 want_nocaseglob=no 15733 if test "$build" = "$host"; then 15734 case $host_os in 15735 mingw* | windows* | pw32*) 15736 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 15737 want_nocaseglob=yes 15738 else 15739 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 15740 fi 15741 ;; 15742 esac 15743 fi 15744 15745 file_magic_cmd=$lt_cv_file_magic_cmd 15746 deplibs_check_method=$lt_cv_deplibs_check_method 15747 test -z "$deplibs_check_method" && deplibs_check_method=unknown 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 if test -n "$ac_tool_prefix"; then 15771 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 15772 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 15773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15774 printf %s "checking for $ac_word... " >&6; } 15775 if test ${ac_cv_prog_DLLTOOL+y} 15776 then : 15777 printf %s "(cached) " >&6 15778 else case e in #( 15779 e) if test -n "$DLLTOOL"; then 15780 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 15781 else 15782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15783 for as_dir in $PATH 15784 do 15785 IFS=$as_save_IFS 15786 case $as_dir in #((( 15787 '') as_dir=./ ;; 15788 */) ;; 15789 *) as_dir=$as_dir/ ;; 15790 esac 15791 for ac_exec_ext in '' $ac_executable_extensions; do 15792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15793 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 15794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15795 break 2 15796 fi 15797 done 15798 done 15799 IFS=$as_save_IFS 15800 15801 fi ;; 15802 esac 15803 fi 15804 DLLTOOL=$ac_cv_prog_DLLTOOL 15805 if test -n "$DLLTOOL"; then 15806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 15807 printf "%s\n" "$DLLTOOL" >&6; } 15808 else 15809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15810 printf "%s\n" "no" >&6; } 15811 fi 15812 15813 15814 fi 15815 if test -z "$ac_cv_prog_DLLTOOL"; then 15816 ac_ct_DLLTOOL=$DLLTOOL 15817 # Extract the first word of "dlltool", so it can be a program name with args. 15818 set dummy dlltool; ac_word=$2 15819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15820 printf %s "checking for $ac_word... " >&6; } 15821 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 15822 then : 15823 printf %s "(cached) " >&6 15824 else case e in #( 15825 e) if test -n "$ac_ct_DLLTOOL"; then 15826 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 15827 else 15828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15829 for as_dir in $PATH 15830 do 15831 IFS=$as_save_IFS 15832 case $as_dir in #((( 15833 '') as_dir=./ ;; 15834 */) ;; 15835 *) as_dir=$as_dir/ ;; 15836 esac 15837 for ac_exec_ext in '' $ac_executable_extensions; do 15838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15839 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 15840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15841 break 2 15842 fi 15843 done 15844 done 15845 IFS=$as_save_IFS 15846 15847 fi ;; 15848 esac 15849 fi 15850 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 15851 if test -n "$ac_ct_DLLTOOL"; then 15852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 15853 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 15854 else 15855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15856 printf "%s\n" "no" >&6; } 15857 fi 15858 15859 if test "x$ac_ct_DLLTOOL" = x; then 15860 DLLTOOL="false" 15861 else 15862 case $cross_compiling:$ac_tool_warned in 15863 yes:) 15864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15865 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15866 ac_tool_warned=yes ;; 15867 esac 15868 DLLTOOL=$ac_ct_DLLTOOL 15869 fi 15870 else 15871 DLLTOOL="$ac_cv_prog_DLLTOOL" 15872 fi 15873 15874 test -z "$DLLTOOL" && DLLTOOL=dlltool 15875 15876 15877 15878 15879 15880 15881 15882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 15883 printf %s "checking how to associate runtime and link libraries... " >&6; } 15884 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 15885 then : 15886 printf %s "(cached) " >&6 15887 else case e in #( 15888 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 15889 15890 case $host_os in 15891 cygwin* | mingw* | windows* | pw32* | cegcc*) 15892 # two different shell functions defined in ltmain.sh; 15893 # decide which one to use based on capabilities of $DLLTOOL 15894 case `$DLLTOOL --help 2>&1` in 15895 *--identify-strict*) 15896 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 15897 ;; 15898 *) 15899 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 15900 ;; 15901 esac 15902 ;; 15903 *) 15904 # fallback: assume linklib IS sharedlib 15905 lt_cv_sharedlib_from_linklib_cmd=$ECHO 15906 ;; 15907 esac 15908 ;; 15909 esac 15910 fi 15911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 15912 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 15913 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 15914 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 15915 15916 15917 15918 15919 15920 15921 15922 if test -n "$ac_tool_prefix"; then 15923 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 15924 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 15925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15926 printf %s "checking for $ac_word... " >&6; } 15927 if test ${ac_cv_prog_RANLIB+y} 15928 then : 15929 printf %s "(cached) " >&6 15930 else case e in #( 15931 e) if test -n "$RANLIB"; then 15932 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 15933 else 15934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15935 for as_dir in $PATH 15936 do 15937 IFS=$as_save_IFS 15938 case $as_dir in #((( 15939 '') as_dir=./ ;; 15940 */) ;; 15941 *) as_dir=$as_dir/ ;; 15942 esac 15943 for ac_exec_ext in '' $ac_executable_extensions; do 15944 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15945 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 15946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15947 break 2 15948 fi 15949 done 15950 done 15951 IFS=$as_save_IFS 15952 15953 fi ;; 15954 esac 15955 fi 15956 RANLIB=$ac_cv_prog_RANLIB 15957 if test -n "$RANLIB"; then 15958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 15959 printf "%s\n" "$RANLIB" >&6; } 15960 else 15961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15962 printf "%s\n" "no" >&6; } 15963 fi 15964 15965 15966 fi 15967 if test -z "$ac_cv_prog_RANLIB"; then 15968 ac_ct_RANLIB=$RANLIB 15969 # Extract the first word of "ranlib", so it can be a program name with args. 15970 set dummy ranlib; ac_word=$2 15971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15972 printf %s "checking for $ac_word... " >&6; } 15973 if test ${ac_cv_prog_ac_ct_RANLIB+y} 15974 then : 15975 printf %s "(cached) " >&6 15976 else case e in #( 15977 e) if test -n "$ac_ct_RANLIB"; then 15978 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 15979 else 15980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15981 for as_dir in $PATH 15982 do 15983 IFS=$as_save_IFS 15984 case $as_dir in #((( 15985 '') as_dir=./ ;; 15986 */) ;; 15987 *) as_dir=$as_dir/ ;; 15988 esac 15989 for ac_exec_ext in '' $ac_executable_extensions; do 15990 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15991 ac_cv_prog_ac_ct_RANLIB="ranlib" 15992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15993 break 2 15994 fi 15995 done 15996 done 15997 IFS=$as_save_IFS 15998 15999 fi ;; 16000 esac 16001 fi 16002 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 16003 if test -n "$ac_ct_RANLIB"; then 16004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 16005 printf "%s\n" "$ac_ct_RANLIB" >&6; } 16006 else 16007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16008 printf "%s\n" "no" >&6; } 16009 fi 16010 16011 if test "x$ac_ct_RANLIB" = x; then 16012 RANLIB=":" 16013 else 16014 case $cross_compiling:$ac_tool_warned in 16015 yes:) 16016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16017 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16018 ac_tool_warned=yes ;; 16019 esac 16020 RANLIB=$ac_ct_RANLIB 16021 fi 16022 else 16023 RANLIB="$ac_cv_prog_RANLIB" 16024 fi 16025 16026 if test -n "$ac_tool_prefix"; then 16027 for ac_prog in ar 16028 do 16029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 16030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 16031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16032 printf %s "checking for $ac_word... " >&6; } 16033 if test ${ac_cv_prog_AR+y} 16034 then : 16035 printf %s "(cached) " >&6 16036 else case e in #( 16037 e) if test -n "$AR"; then 16038 ac_cv_prog_AR="$AR" # Let the user override the test. 16039 else 16040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16041 for as_dir in $PATH 16042 do 16043 IFS=$as_save_IFS 16044 case $as_dir in #((( 16045 '') as_dir=./ ;; 16046 */) ;; 16047 *) as_dir=$as_dir/ ;; 16048 esac 16049 for ac_exec_ext in '' $ac_executable_extensions; do 16050 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16051 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 16052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16053 break 2 16054 fi 16055 done 16056 done 16057 IFS=$as_save_IFS 16058 16059 fi ;; 16060 esac 16061 fi 16062 AR=$ac_cv_prog_AR 16063 if test -n "$AR"; then 16064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 16065 printf "%s\n" "$AR" >&6; } 16066 else 16067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16068 printf "%s\n" "no" >&6; } 16069 fi 16070 16071 16072 test -n "$AR" && break 16073 done 16074 fi 16075 if test -z "$AR"; then 16076 ac_ct_AR=$AR 16077 for ac_prog in ar 16078 do 16079 # Extract the first word of "$ac_prog", so it can be a program name with args. 16080 set dummy $ac_prog; ac_word=$2 16081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16082 printf %s "checking for $ac_word... " >&6; } 16083 if test ${ac_cv_prog_ac_ct_AR+y} 16084 then : 16085 printf %s "(cached) " >&6 16086 else case e in #( 16087 e) if test -n "$ac_ct_AR"; then 16088 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 16089 else 16090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16091 for as_dir in $PATH 16092 do 16093 IFS=$as_save_IFS 16094 case $as_dir in #((( 16095 '') as_dir=./ ;; 16096 */) ;; 16097 *) as_dir=$as_dir/ ;; 16098 esac 16099 for ac_exec_ext in '' $ac_executable_extensions; do 16100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16101 ac_cv_prog_ac_ct_AR="$ac_prog" 16102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16103 break 2 16104 fi 16105 done 16106 done 16107 IFS=$as_save_IFS 16108 16109 fi ;; 16110 esac 16111 fi 16112 ac_ct_AR=$ac_cv_prog_ac_ct_AR 16113 if test -n "$ac_ct_AR"; then 16114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 16115 printf "%s\n" "$ac_ct_AR" >&6; } 16116 else 16117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16118 printf "%s\n" "no" >&6; } 16119 fi 16120 16121 16122 test -n "$ac_ct_AR" && break 16123 done 16124 16125 if test "x$ac_ct_AR" = x; then 16126 AR="false" 16127 else 16128 case $cross_compiling:$ac_tool_warned in 16129 yes:) 16130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16131 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16132 ac_tool_warned=yes ;; 16133 esac 16134 AR=$ac_ct_AR 16135 fi 16136 fi 16137 16138 : ${AR=ar} 16139 16140 16141 16142 16143 16144 16145 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 16146 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 16147 # higher priority because that's what people were doing historically (setting 16148 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 16149 # variable obsoleted/removed. 16150 16151 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 16152 lt_ar_flags=$AR_FLAGS 16153 16154 16155 16156 16157 16158 16159 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 16160 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 16161 16162 16163 16164 16165 16166 16167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 16168 printf %s "checking for archiver @FILE support... " >&6; } 16169 if test ${lt_cv_ar_at_file+y} 16170 then : 16171 printf %s "(cached) " >&6 16172 else case e in #( 16173 e) lt_cv_ar_at_file=no 16174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16175 /* end confdefs.h. */ 16176 16177 int 16178 main (void) 16179 { 16180 16181 ; 16182 return 0; 16183 } 16184 _ACEOF 16185 if ac_fn_c_try_compile "$LINENO" 16186 then : 16187 echo conftest.$ac_objext > conftest.lst 16188 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 16189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 16190 (eval $lt_ar_try) 2>&5 16191 ac_status=$? 16192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16193 test $ac_status = 0; } 16194 if test 0 -eq "$ac_status"; then 16195 # Ensure the archiver fails upon bogus file names. 16196 rm -f conftest.$ac_objext libconftest.a 16197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 16198 (eval $lt_ar_try) 2>&5 16199 ac_status=$? 16200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16201 test $ac_status = 0; } 16202 if test 0 -ne "$ac_status"; then 16203 lt_cv_ar_at_file=@ 16204 fi 16205 fi 16206 rm -f conftest.* libconftest.a 16207 16208 fi 16209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16210 ;; 16211 esac 16212 fi 16213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 16214 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 16215 16216 if test no = "$lt_cv_ar_at_file"; then 16217 archiver_list_spec= 16218 else 16219 archiver_list_spec=$lt_cv_ar_at_file 16220 fi 16221 16222 16223 16224 16225 16226 16227 16228 if test -n "$ac_tool_prefix"; then 16229 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 16230 set dummy ${ac_tool_prefix}strip; ac_word=$2 16231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16232 printf %s "checking for $ac_word... " >&6; } 16233 if test ${ac_cv_prog_STRIP+y} 16234 then : 16235 printf %s "(cached) " >&6 16236 else case e in #( 16237 e) if test -n "$STRIP"; then 16238 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 16239 else 16240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16241 for as_dir in $PATH 16242 do 16243 IFS=$as_save_IFS 16244 case $as_dir in #((( 16245 '') as_dir=./ ;; 16246 */) ;; 16247 *) as_dir=$as_dir/ ;; 16248 esac 16249 for ac_exec_ext in '' $ac_executable_extensions; do 16250 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16251 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 16252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16253 break 2 16254 fi 16255 done 16256 done 16257 IFS=$as_save_IFS 16258 16259 fi ;; 16260 esac 16261 fi 16262 STRIP=$ac_cv_prog_STRIP 16263 if test -n "$STRIP"; then 16264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 16265 printf "%s\n" "$STRIP" >&6; } 16266 else 16267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16268 printf "%s\n" "no" >&6; } 16269 fi 16270 16271 16272 fi 16273 if test -z "$ac_cv_prog_STRIP"; then 16274 ac_ct_STRIP=$STRIP 16275 # Extract the first word of "strip", so it can be a program name with args. 16276 set dummy strip; ac_word=$2 16277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16278 printf %s "checking for $ac_word... " >&6; } 16279 if test ${ac_cv_prog_ac_ct_STRIP+y} 16280 then : 16281 printf %s "(cached) " >&6 16282 else case e in #( 16283 e) if test -n "$ac_ct_STRIP"; then 16284 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 16285 else 16286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16287 for as_dir in $PATH 16288 do 16289 IFS=$as_save_IFS 16290 case $as_dir in #((( 16291 '') as_dir=./ ;; 16292 */) ;; 16293 *) as_dir=$as_dir/ ;; 16294 esac 16295 for ac_exec_ext in '' $ac_executable_extensions; do 16296 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16297 ac_cv_prog_ac_ct_STRIP="strip" 16298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16299 break 2 16300 fi 16301 done 16302 done 16303 IFS=$as_save_IFS 16304 16305 fi ;; 16306 esac 16307 fi 16308 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 16309 if test -n "$ac_ct_STRIP"; then 16310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 16311 printf "%s\n" "$ac_ct_STRIP" >&6; } 16312 else 16313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16314 printf "%s\n" "no" >&6; } 16315 fi 16316 16317 if test "x$ac_ct_STRIP" = x; then 16318 STRIP=":" 16319 else 16320 case $cross_compiling:$ac_tool_warned in 16321 yes:) 16322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16323 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16324 ac_tool_warned=yes ;; 16325 esac 16326 STRIP=$ac_ct_STRIP 16327 fi 16328 else 16329 STRIP="$ac_cv_prog_STRIP" 16330 fi 16331 16332 test -z "$STRIP" && STRIP=: 16333 16334 16335 16336 16337 16338 16339 16340 test -z "$RANLIB" && RANLIB=: 16341 16342 16343 16344 16345 16346 16347 # Determine commands to create old-style static archives. 16348 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 16349 old_postinstall_cmds='chmod 644 $oldlib' 16350 old_postuninstall_cmds= 16351 16352 if test -n "$RANLIB"; then 16353 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 16354 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 16355 fi 16356 16357 case $host_os in 16358 darwin*) 16359 lock_old_archive_extraction=yes ;; 16360 *) 16361 lock_old_archive_extraction=no ;; 16362 esac 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 # If no C compiler was specified, use CC. 16403 LTCC=${LTCC-"$CC"} 16404 16405 # If no C compiler flags were specified, use CFLAGS. 16406 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16407 16408 # Allow CC to be a program name with arguments. 16409 compiler=$CC 16410 16411 16412 # Check for command to grab the raw symbol name followed by C symbol from nm. 16413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 16414 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 16415 if test ${lt_cv_sys_global_symbol_pipe+y} 16416 then : 16417 printf %s "(cached) " >&6 16418 else case e in #( 16419 e) 16420 # These are sane defaults that work on at least a few old systems. 16421 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 16422 16423 # Character class describing NM global symbol codes. 16424 symcode='[BCDEGRST]' 16425 16426 # Regexp to match symbols that can be accessed directly from C. 16427 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 16428 16429 # Define system-specific variables. 16430 case $host_os in 16431 aix*) 16432 symcode='[BCDT]' 16433 ;; 16434 cygwin* | mingw* | windows* | pw32* | cegcc*) 16435 symcode='[ABCDGISTW]' 16436 ;; 16437 hpux*) 16438 if test ia64 = "$host_cpu"; then 16439 symcode='[ABCDEGRST]' 16440 fi 16441 ;; 16442 irix* | nonstopux*) 16443 symcode='[BCDEGRST]' 16444 ;; 16445 osf*) 16446 symcode='[BCDEGQRST]' 16447 ;; 16448 solaris*) 16449 symcode='[BCDRT]' 16450 ;; 16451 sco3.2v5*) 16452 symcode='[DT]' 16453 ;; 16454 sysv4.2uw2*) 16455 symcode='[DT]' 16456 ;; 16457 sysv5* | sco5v6* | unixware* | OpenUNIX*) 16458 symcode='[ABDT]' 16459 ;; 16460 sysv4) 16461 symcode='[DFNSTU]' 16462 ;; 16463 esac 16464 16465 # If we're using GNU nm, then use its standard symbol codes. 16466 case `$NM -V 2>&1` in 16467 *GNU* | *'with BFD'*) 16468 symcode='[ABCDGIRSTW]' ;; 16469 esac 16470 16471 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 16472 # Gets list of data symbols to import. 16473 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 16474 # Adjust the below global symbol transforms to fixup imported variables. 16475 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 16476 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 16477 lt_c_name_lib_hook="\ 16478 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 16479 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 16480 else 16481 # Disable hooks by default. 16482 lt_cv_sys_global_symbol_to_import= 16483 lt_cdecl_hook= 16484 lt_c_name_hook= 16485 lt_c_name_lib_hook= 16486 fi 16487 16488 # Transform an extracted symbol line into a proper C declaration. 16489 # Some systems (esp. on ia64) link data and code symbols differently, 16490 # so use this general approach. 16491 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 16492 $lt_cdecl_hook\ 16493 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 16494 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 16495 16496 # Transform an extracted symbol line into symbol name and symbol address 16497 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 16498 $lt_c_name_hook\ 16499 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 16500 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 16501 16502 # Transform an extracted symbol line into symbol name with lib prefix and 16503 # symbol address. 16504 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 16505 $lt_c_name_lib_hook\ 16506 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 16507 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 16508 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 16509 16510 # Handle CRLF in mingw tool chain 16511 opt_cr= 16512 case $build_os in 16513 mingw* | windows*) 16514 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 16515 ;; 16516 esac 16517 16518 # Try without a prefix underscore, then with it. 16519 for ac_symprfx in "" "_"; do 16520 16521 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 16522 symxfrm="\\1 $ac_symprfx\\2 \\2" 16523 16524 # Write the raw and C identifiers. 16525 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 16526 # Fake it for dumpbin and say T for any non-static function, 16527 # D for any global variable and I for any imported variable. 16528 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 16529 # which start with @ or ?. 16530 lt_cv_sys_global_symbol_pipe="$AWK '"\ 16531 " {last_section=section; section=\$ 3};"\ 16532 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 16533 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 16534 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 16535 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 16536 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 16537 " \$ 0!~/External *\|/{next};"\ 16538 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 16539 " {if(hide[section]) next};"\ 16540 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 16541 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 16542 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 16543 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 16544 " ' prfx=^$ac_symprfx" 16545 else 16546 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 16547 fi 16548 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 16549 16550 # Check to see that the pipe works correctly. 16551 pipe_works=no 16552 16553 rm -f conftest* 16554 cat > conftest.$ac_ext <<_LT_EOF 16555 #ifdef __cplusplus 16556 extern "C" { 16557 #endif 16558 char nm_test_var; 16559 void nm_test_func(void); 16560 void nm_test_func(void){} 16561 #ifdef __cplusplus 16562 } 16563 #endif 16564 int main(void){nm_test_var='a';nm_test_func();return(0);} 16565 _LT_EOF 16566 16567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16568 (eval $ac_compile) 2>&5 16569 ac_status=$? 16570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16571 test $ac_status = 0; }; then 16572 # Now try to grab the symbols. 16573 nlist=conftest.nm 16574 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 16575 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 16576 # Try sorting and uniquifying the output. 16577 if sort "$nlist" | uniq > "$nlist"T; then 16578 mv -f "$nlist"T "$nlist" 16579 else 16580 rm -f "$nlist"T 16581 fi 16582 16583 # Make sure that we snagged all the symbols we need. 16584 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 16585 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 16586 cat <<_LT_EOF > conftest.$ac_ext 16587 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 16588 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 16589 /* DATA imports from DLLs on WIN32 can't be const, because runtime 16590 relocations are performed -- see ld's documentation on pseudo-relocs. */ 16591 # define LT_DLSYM_CONST 16592 #elif defined __osf__ 16593 /* This system does not cope well with relocations in const data. */ 16594 # define LT_DLSYM_CONST 16595 #else 16596 # define LT_DLSYM_CONST const 16597 #endif 16598 16599 #ifdef __cplusplus 16600 extern "C" { 16601 #endif 16602 16603 _LT_EOF 16604 # Now generate the symbol file. 16605 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 16606 16607 cat <<_LT_EOF >> conftest.$ac_ext 16608 16609 /* The mapping between symbol names and symbols. */ 16610 LT_DLSYM_CONST struct { 16611 const char *name; 16612 void *address; 16613 } 16614 lt__PROGRAM__LTX_preloaded_symbols[] = 16615 { 16616 { "@PROGRAM@", (void *) 0 }, 16617 _LT_EOF 16618 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 16619 cat <<\_LT_EOF >> conftest.$ac_ext 16620 {0, (void *) 0} 16621 }; 16622 16623 /* This works around a problem in FreeBSD linker */ 16624 #ifdef FREEBSD_WORKAROUND 16625 static const void *lt_preloaded_setup() { 16626 return lt__PROGRAM__LTX_preloaded_symbols; 16627 } 16628 #endif 16629 16630 #ifdef __cplusplus 16631 } 16632 #endif 16633 _LT_EOF 16634 # Now try linking the two files. 16635 mv conftest.$ac_objext conftstm.$ac_objext 16636 lt_globsym_save_LIBS=$LIBS 16637 lt_globsym_save_CFLAGS=$CFLAGS 16638 LIBS=conftstm.$ac_objext 16639 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 16640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16641 (eval $ac_link) 2>&5 16642 ac_status=$? 16643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16644 test $ac_status = 0; } && test -s conftest$ac_exeext; then 16645 pipe_works=yes 16646 fi 16647 LIBS=$lt_globsym_save_LIBS 16648 CFLAGS=$lt_globsym_save_CFLAGS 16649 else 16650 echo "cannot find nm_test_func in $nlist" >&5 16651 fi 16652 else 16653 echo "cannot find nm_test_var in $nlist" >&5 16654 fi 16655 else 16656 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 16657 fi 16658 else 16659 echo "$progname: failed program was:" >&5 16660 cat conftest.$ac_ext >&5 16661 fi 16662 rm -rf conftest* conftst* 16663 16664 # Do not use the global_symbol_pipe unless it works. 16665 if test yes = "$pipe_works"; then 16666 break 16667 else 16668 lt_cv_sys_global_symbol_pipe= 16669 fi 16670 done 16671 ;; 16672 esac 16673 fi 16674 16675 if test -z "$lt_cv_sys_global_symbol_pipe"; then 16676 lt_cv_sys_global_symbol_to_cdecl= 16677 fi 16678 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 16679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 16680 printf "%s\n" "failed" >&6; } 16681 else 16682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 16683 printf "%s\n" "ok" >&6; } 16684 fi 16685 16686 # Response file support. 16687 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 16688 nm_file_list_spec='@' 16689 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 16690 nm_file_list_spec='@' 16691 fi 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 16730 printf %s "checking for sysroot... " >&6; } 16731 16732 # Check whether --with-sysroot was given. 16733 if test ${with_sysroot+y} 16734 then : 16735 withval=$with_sysroot; 16736 else case e in #( 16737 e) with_sysroot=no ;; 16738 esac 16739 fi 16740 16741 16742 lt_sysroot= 16743 case $with_sysroot in #( 16744 yes) 16745 if test yes = "$GCC"; then 16746 # Trim trailing / since we'll always append absolute paths and we want 16747 # to avoid //, if only for less confusing output for the user. 16748 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` 16749 fi 16750 ;; #( 16751 /*) 16752 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 16753 ;; #( 16754 no|'') 16755 ;; #( 16756 *) 16757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 16758 printf "%s\n" "$with_sysroot" >&6; } 16759 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 16760 ;; 16761 esac 16762 16763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 16764 printf "%s\n" "${lt_sysroot:-no}" >&6; } 16765 16766 16767 16768 16769 16770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 16771 printf %s "checking for a working dd... " >&6; } 16772 if test ${ac_cv_path_lt_DD+y} 16773 then : 16774 printf %s "(cached) " >&6 16775 else case e in #( 16776 e) printf 0123456789abcdef0123456789abcdef >conftest.i 16777 cat conftest.i conftest.i >conftest2.i 16778 : ${lt_DD:=$DD} 16779 if test -z "$lt_DD"; then 16780 ac_path_lt_DD_found=false 16781 # Loop through the user's path and test for each of PROGNAME-LIST 16782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16783 for as_dir in $PATH 16784 do 16785 IFS=$as_save_IFS 16786 case $as_dir in #((( 16787 '') as_dir=./ ;; 16788 */) ;; 16789 *) as_dir=$as_dir/ ;; 16790 esac 16791 for ac_prog in dd 16792 do 16793 for ac_exec_ext in '' $ac_executable_extensions; do 16794 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 16795 as_fn_executable_p "$ac_path_lt_DD" || continue 16796 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 16797 cmp -s conftest.i conftest.out \ 16798 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 16799 fi 16800 $ac_path_lt_DD_found && break 3 16801 done 16802 done 16803 done 16804 IFS=$as_save_IFS 16805 if test -z "$ac_cv_path_lt_DD"; then 16806 : 16807 fi 16808 else 16809 ac_cv_path_lt_DD=$lt_DD 16810 fi 16811 16812 rm -f conftest.i conftest2.i conftest.out ;; 16813 esac 16814 fi 16815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 16816 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 16817 16818 16819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 16820 printf %s "checking how to truncate binary pipes... " >&6; } 16821 if test ${lt_cv_truncate_bin+y} 16822 then : 16823 printf %s "(cached) " >&6 16824 else case e in #( 16825 e) printf 0123456789abcdef0123456789abcdef >conftest.i 16826 cat conftest.i conftest.i >conftest2.i 16827 lt_cv_truncate_bin= 16828 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 16829 cmp -s conftest.i conftest.out \ 16830 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 16831 fi 16832 rm -f conftest.i conftest2.i conftest.out 16833 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 16834 esac 16835 fi 16836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 16837 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 16838 16839 16840 16841 16842 16843 16844 16845 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 16846 func_cc_basename () 16847 { 16848 for cc_temp in $*""; do 16849 case $cc_temp in 16850 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16851 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16852 \-*) ;; 16853 *) break;; 16854 esac 16855 done 16856 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 16857 } 16858 16859 # Check whether --enable-libtool-lock was given. 16860 if test ${enable_libtool_lock+y} 16861 then : 16862 enableval=$enable_libtool_lock; 16863 fi 16864 16865 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 16866 16867 # Some flags need to be propagated to the compiler or linker for good 16868 # libtool support. 16869 case $host in 16870 ia64-*-hpux*) 16871 # Find out what ABI is being produced by ac_compile, and set mode 16872 # options accordingly. 16873 echo 'int i;' > conftest.$ac_ext 16874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16875 (eval $ac_compile) 2>&5 16876 ac_status=$? 16877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16878 test $ac_status = 0; }; then 16879 case `$FILECMD conftest.$ac_objext` in 16880 *ELF-32*) 16881 HPUX_IA64_MODE=32 16882 ;; 16883 *ELF-64*) 16884 HPUX_IA64_MODE=64 16885 ;; 16886 esac 16887 fi 16888 rm -rf conftest* 16889 ;; 16890 *-*-irix6*) 16891 # Find out what ABI is being produced by ac_compile, and set linker 16892 # options accordingly. 16893 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 16894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16895 (eval $ac_compile) 2>&5 16896 ac_status=$? 16897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16898 test $ac_status = 0; }; then 16899 if test yes = "$lt_cv_prog_gnu_ld"; then 16900 case `$FILECMD conftest.$ac_objext` in 16901 *32-bit*) 16902 LD="${LD-ld} -melf32bsmip" 16903 ;; 16904 *N32*) 16905 LD="${LD-ld} -melf32bmipn32" 16906 ;; 16907 *64-bit*) 16908 LD="${LD-ld} -melf64bmip" 16909 ;; 16910 esac 16911 else 16912 case `$FILECMD conftest.$ac_objext` in 16913 *32-bit*) 16914 LD="${LD-ld} -32" 16915 ;; 16916 *N32*) 16917 LD="${LD-ld} -n32" 16918 ;; 16919 *64-bit*) 16920 LD="${LD-ld} -64" 16921 ;; 16922 esac 16923 fi 16924 fi 16925 rm -rf conftest* 16926 ;; 16927 16928 mips64*-*linux*) 16929 # Find out what ABI is being produced by ac_compile, and set linker 16930 # options accordingly. 16931 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 16932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16933 (eval $ac_compile) 2>&5 16934 ac_status=$? 16935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16936 test $ac_status = 0; }; then 16937 emul=elf 16938 case `$FILECMD conftest.$ac_objext` in 16939 *32-bit*) 16940 emul="${emul}32" 16941 ;; 16942 *64-bit*) 16943 emul="${emul}64" 16944 ;; 16945 esac 16946 case `$FILECMD conftest.$ac_objext` in 16947 *MSB*) 16948 emul="${emul}btsmip" 16949 ;; 16950 *LSB*) 16951 emul="${emul}ltsmip" 16952 ;; 16953 esac 16954 case `$FILECMD conftest.$ac_objext` in 16955 *N32*) 16956 emul="${emul}n32" 16957 ;; 16958 esac 16959 LD="${LD-ld} -m $emul" 16960 fi 16961 rm -rf conftest* 16962 ;; 16963 16964 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 16965 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) 16966 # Find out what ABI is being produced by ac_compile, and set linker 16967 # options accordingly. Note that the listed cases only cover the 16968 # situations where additional linker options are needed (such as when 16969 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 16970 # vice versa); the common cases where no linker options are needed do 16971 # not appear in the list. 16972 echo 'int i;' > conftest.$ac_ext 16973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16974 (eval $ac_compile) 2>&5 16975 ac_status=$? 16976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16977 test $ac_status = 0; }; then 16978 case `$FILECMD conftest.o` in 16979 *32-bit*) 16980 case $host in 16981 x86_64-*kfreebsd*-gnu) 16982 LD="${LD-ld} -m elf_i386_fbsd" 16983 ;; 16984 x86_64-*linux*|x86_64-gnu*) 16985 case `$FILECMD conftest.o` in 16986 *x86-64*) 16987 LD="${LD-ld} -m elf32_x86_64" 16988 ;; 16989 *) 16990 LD="${LD-ld} -m elf_i386" 16991 ;; 16992 esac 16993 ;; 16994 powerpc64le-*linux*) 16995 LD="${LD-ld} -m elf32lppclinux" 16996 ;; 16997 powerpc64-*linux*) 16998 LD="${LD-ld} -m elf32ppclinux" 16999 ;; 17000 s390x-*linux*) 17001 LD="${LD-ld} -m elf_s390" 17002 ;; 17003 sparc64-*linux*) 17004 LD="${LD-ld} -m elf32_sparc" 17005 ;; 17006 esac 17007 ;; 17008 *64-bit*) 17009 case $host in 17010 x86_64-*kfreebsd*-gnu) 17011 LD="${LD-ld} -m elf_x86_64_fbsd" 17012 ;; 17013 x86_64-*linux*|x86_64-gnu*) 17014 LD="${LD-ld} -m elf_x86_64" 17015 ;; 17016 powerpcle-*linux*) 17017 LD="${LD-ld} -m elf64lppc" 17018 ;; 17019 powerpc-*linux*) 17020 LD="${LD-ld} -m elf64ppc" 17021 ;; 17022 s390*-*linux*|s390*-*tpf*) 17023 LD="${LD-ld} -m elf64_s390" 17024 ;; 17025 sparc*-*linux*) 17026 LD="${LD-ld} -m elf64_sparc" 17027 ;; 17028 esac 17029 ;; 17030 esac 17031 fi 17032 rm -rf conftest* 17033 ;; 17034 17035 *-*-sco3.2v5*) 17036 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 17037 SAVE_CFLAGS=$CFLAGS 17038 CFLAGS="$CFLAGS -belf" 17039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 17040 printf %s "checking whether the C compiler needs -belf... " >&6; } 17041 if test ${lt_cv_cc_needs_belf+y} 17042 then : 17043 printf %s "(cached) " >&6 17044 else case e in #( 17045 e) ac_ext=c 17046 ac_cpp='$CPP $CPPFLAGS' 17047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17049 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17050 17051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17052 /* end confdefs.h. */ 17053 17054 int 17055 main (void) 17056 { 17057 17058 ; 17059 return 0; 17060 } 17061 _ACEOF 17062 if ac_fn_c_try_link "$LINENO" 17063 then : 17064 lt_cv_cc_needs_belf=yes 17065 else case e in #( 17066 e) lt_cv_cc_needs_belf=no ;; 17067 esac 17068 fi 17069 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17070 conftest$ac_exeext conftest.$ac_ext 17071 ac_ext=c 17072 ac_cpp='$CPP $CPPFLAGS' 17073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17075 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17076 ;; 17077 esac 17078 fi 17079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 17080 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 17081 if test yes != "$lt_cv_cc_needs_belf"; then 17082 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 17083 CFLAGS=$SAVE_CFLAGS 17084 fi 17085 ;; 17086 *-*solaris*) 17087 # Find out what ABI is being produced by ac_compile, and set linker 17088 # options accordingly. 17089 echo 'int i;' > conftest.$ac_ext 17090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17091 (eval $ac_compile) 2>&5 17092 ac_status=$? 17093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17094 test $ac_status = 0; }; then 17095 case `$FILECMD conftest.o` in 17096 *64-bit*) 17097 case $lt_cv_prog_gnu_ld in 17098 yes*) 17099 case $host in 17100 i?86-*-solaris*|x86_64-*-solaris*) 17101 LD="${LD-ld} -m elf_x86_64" 17102 ;; 17103 sparc*-*-solaris*) 17104 LD="${LD-ld} -m elf64_sparc" 17105 ;; 17106 esac 17107 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 17108 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 17109 LD=${LD-ld}_sol2 17110 fi 17111 ;; 17112 *) 17113 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 17114 LD="${LD-ld} -64" 17115 fi 17116 ;; 17117 esac 17118 ;; 17119 esac 17120 fi 17121 rm -rf conftest* 17122 ;; 17123 esac 17124 17125 need_locks=$enable_libtool_lock 17126 17127 if test -n "$ac_tool_prefix"; then 17128 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 17129 set dummy ${ac_tool_prefix}mt; ac_word=$2 17130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17131 printf %s "checking for $ac_word... " >&6; } 17132 if test ${ac_cv_prog_MANIFEST_TOOL+y} 17133 then : 17134 printf %s "(cached) " >&6 17135 else case e in #( 17136 e) if test -n "$MANIFEST_TOOL"; then 17137 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 17138 else 17139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17140 for as_dir in $PATH 17141 do 17142 IFS=$as_save_IFS 17143 case $as_dir in #((( 17144 '') as_dir=./ ;; 17145 */) ;; 17146 *) as_dir=$as_dir/ ;; 17147 esac 17148 for ac_exec_ext in '' $ac_executable_extensions; do 17149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17150 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 17151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17152 break 2 17153 fi 17154 done 17155 done 17156 IFS=$as_save_IFS 17157 17158 fi ;; 17159 esac 17160 fi 17161 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 17162 if test -n "$MANIFEST_TOOL"; then 17163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 17164 printf "%s\n" "$MANIFEST_TOOL" >&6; } 17165 else 17166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17167 printf "%s\n" "no" >&6; } 17168 fi 17169 17170 17171 fi 17172 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 17173 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 17174 # Extract the first word of "mt", so it can be a program name with args. 17175 set dummy mt; ac_word=$2 17176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17177 printf %s "checking for $ac_word... " >&6; } 17178 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 17179 then : 17180 printf %s "(cached) " >&6 17181 else case e in #( 17182 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 17183 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 17184 else 17185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17186 for as_dir in $PATH 17187 do 17188 IFS=$as_save_IFS 17189 case $as_dir in #((( 17190 '') as_dir=./ ;; 17191 */) ;; 17192 *) as_dir=$as_dir/ ;; 17193 esac 17194 for ac_exec_ext in '' $ac_executable_extensions; do 17195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17196 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 17197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17198 break 2 17199 fi 17200 done 17201 done 17202 IFS=$as_save_IFS 17203 17204 fi ;; 17205 esac 17206 fi 17207 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 17208 if test -n "$ac_ct_MANIFEST_TOOL"; then 17209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 17210 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 17211 else 17212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17213 printf "%s\n" "no" >&6; } 17214 fi 17215 17216 if test "x$ac_ct_MANIFEST_TOOL" = x; then 17217 MANIFEST_TOOL=":" 17218 else 17219 case $cross_compiling:$ac_tool_warned in 17220 yes:) 17221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17222 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17223 ac_tool_warned=yes ;; 17224 esac 17225 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 17226 fi 17227 else 17228 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 17229 fi 17230 17231 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 17232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 17233 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 17234 if test ${lt_cv_path_manifest_tool+y} 17235 then : 17236 printf %s "(cached) " >&6 17237 else case e in #( 17238 e) lt_cv_path_manifest_tool=no 17239 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 17240 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 17241 cat conftest.err >&5 17242 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 17243 lt_cv_path_manifest_tool=yes 17244 fi 17245 rm -f conftest* ;; 17246 esac 17247 fi 17248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 17249 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; } 17250 if test yes != "$lt_cv_path_manifest_tool"; then 17251 MANIFEST_TOOL=: 17252 fi 17253 17254 17255 17256 17257 17258 17259 case $host_os in 17260 rhapsody* | darwin*) 17261 if test -n "$ac_tool_prefix"; then 17262 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 17263 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 17264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17265 printf %s "checking for $ac_word... " >&6; } 17266 if test ${ac_cv_prog_DSYMUTIL+y} 17267 then : 17268 printf %s "(cached) " >&6 17269 else case e in #( 17270 e) if test -n "$DSYMUTIL"; then 17271 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 17272 else 17273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17274 for as_dir in $PATH 17275 do 17276 IFS=$as_save_IFS 17277 case $as_dir in #((( 17278 '') as_dir=./ ;; 17279 */) ;; 17280 *) as_dir=$as_dir/ ;; 17281 esac 17282 for ac_exec_ext in '' $ac_executable_extensions; do 17283 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17284 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 17285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17286 break 2 17287 fi 17288 done 17289 done 17290 IFS=$as_save_IFS 17291 17292 fi ;; 17293 esac 17294 fi 17295 DSYMUTIL=$ac_cv_prog_DSYMUTIL 17296 if test -n "$DSYMUTIL"; then 17297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 17298 printf "%s\n" "$DSYMUTIL" >&6; } 17299 else 17300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17301 printf "%s\n" "no" >&6; } 17302 fi 17303 17304 17305 fi 17306 if test -z "$ac_cv_prog_DSYMUTIL"; then 17307 ac_ct_DSYMUTIL=$DSYMUTIL 17308 # Extract the first word of "dsymutil", so it can be a program name with args. 17309 set dummy dsymutil; ac_word=$2 17310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17311 printf %s "checking for $ac_word... " >&6; } 17312 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 17313 then : 17314 printf %s "(cached) " >&6 17315 else case e in #( 17316 e) if test -n "$ac_ct_DSYMUTIL"; then 17317 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 17318 else 17319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17320 for as_dir in $PATH 17321 do 17322 IFS=$as_save_IFS 17323 case $as_dir in #((( 17324 '') as_dir=./ ;; 17325 */) ;; 17326 *) as_dir=$as_dir/ ;; 17327 esac 17328 for ac_exec_ext in '' $ac_executable_extensions; do 17329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17330 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 17331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17332 break 2 17333 fi 17334 done 17335 done 17336 IFS=$as_save_IFS 17337 17338 fi ;; 17339 esac 17340 fi 17341 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 17342 if test -n "$ac_ct_DSYMUTIL"; then 17343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 17344 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 17345 else 17346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17347 printf "%s\n" "no" >&6; } 17348 fi 17349 17350 if test "x$ac_ct_DSYMUTIL" = x; then 17351 DSYMUTIL=":" 17352 else 17353 case $cross_compiling:$ac_tool_warned in 17354 yes:) 17355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17356 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17357 ac_tool_warned=yes ;; 17358 esac 17359 DSYMUTIL=$ac_ct_DSYMUTIL 17360 fi 17361 else 17362 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 17363 fi 17364 17365 if test -n "$ac_tool_prefix"; then 17366 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 17367 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 17368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17369 printf %s "checking for $ac_word... " >&6; } 17370 if test ${ac_cv_prog_NMEDIT+y} 17371 then : 17372 printf %s "(cached) " >&6 17373 else case e in #( 17374 e) if test -n "$NMEDIT"; then 17375 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 17376 else 17377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17378 for as_dir in $PATH 17379 do 17380 IFS=$as_save_IFS 17381 case $as_dir in #((( 17382 '') as_dir=./ ;; 17383 */) ;; 17384 *) as_dir=$as_dir/ ;; 17385 esac 17386 for ac_exec_ext in '' $ac_executable_extensions; do 17387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17388 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 17389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17390 break 2 17391 fi 17392 done 17393 done 17394 IFS=$as_save_IFS 17395 17396 fi ;; 17397 esac 17398 fi 17399 NMEDIT=$ac_cv_prog_NMEDIT 17400 if test -n "$NMEDIT"; then 17401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 17402 printf "%s\n" "$NMEDIT" >&6; } 17403 else 17404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17405 printf "%s\n" "no" >&6; } 17406 fi 17407 17408 17409 fi 17410 if test -z "$ac_cv_prog_NMEDIT"; then 17411 ac_ct_NMEDIT=$NMEDIT 17412 # Extract the first word of "nmedit", so it can be a program name with args. 17413 set dummy nmedit; ac_word=$2 17414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17415 printf %s "checking for $ac_word... " >&6; } 17416 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 17417 then : 17418 printf %s "(cached) " >&6 17419 else case e in #( 17420 e) if test -n "$ac_ct_NMEDIT"; then 17421 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 17422 else 17423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17424 for as_dir in $PATH 17425 do 17426 IFS=$as_save_IFS 17427 case $as_dir in #((( 17428 '') as_dir=./ ;; 17429 */) ;; 17430 *) as_dir=$as_dir/ ;; 17431 esac 17432 for ac_exec_ext in '' $ac_executable_extensions; do 17433 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17434 ac_cv_prog_ac_ct_NMEDIT="nmedit" 17435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17436 break 2 17437 fi 17438 done 17439 done 17440 IFS=$as_save_IFS 17441 17442 fi ;; 17443 esac 17444 fi 17445 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 17446 if test -n "$ac_ct_NMEDIT"; then 17447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 17448 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 17449 else 17450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17451 printf "%s\n" "no" >&6; } 17452 fi 17453 17454 if test "x$ac_ct_NMEDIT" = x; then 17455 NMEDIT=":" 17456 else 17457 case $cross_compiling:$ac_tool_warned in 17458 yes:) 17459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17460 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17461 ac_tool_warned=yes ;; 17462 esac 17463 NMEDIT=$ac_ct_NMEDIT 17464 fi 17465 else 17466 NMEDIT="$ac_cv_prog_NMEDIT" 17467 fi 17468 17469 if test -n "$ac_tool_prefix"; then 17470 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 17471 set dummy ${ac_tool_prefix}lipo; ac_word=$2 17472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17473 printf %s "checking for $ac_word... " >&6; } 17474 if test ${ac_cv_prog_LIPO+y} 17475 then : 17476 printf %s "(cached) " >&6 17477 else case e in #( 17478 e) if test -n "$LIPO"; then 17479 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 17480 else 17481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17482 for as_dir in $PATH 17483 do 17484 IFS=$as_save_IFS 17485 case $as_dir in #((( 17486 '') as_dir=./ ;; 17487 */) ;; 17488 *) as_dir=$as_dir/ ;; 17489 esac 17490 for ac_exec_ext in '' $ac_executable_extensions; do 17491 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17492 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 17493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17494 break 2 17495 fi 17496 done 17497 done 17498 IFS=$as_save_IFS 17499 17500 fi ;; 17501 esac 17502 fi 17503 LIPO=$ac_cv_prog_LIPO 17504 if test -n "$LIPO"; then 17505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 17506 printf "%s\n" "$LIPO" >&6; } 17507 else 17508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17509 printf "%s\n" "no" >&6; } 17510 fi 17511 17512 17513 fi 17514 if test -z "$ac_cv_prog_LIPO"; then 17515 ac_ct_LIPO=$LIPO 17516 # Extract the first word of "lipo", so it can be a program name with args. 17517 set dummy lipo; ac_word=$2 17518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17519 printf %s "checking for $ac_word... " >&6; } 17520 if test ${ac_cv_prog_ac_ct_LIPO+y} 17521 then : 17522 printf %s "(cached) " >&6 17523 else case e in #( 17524 e) if test -n "$ac_ct_LIPO"; then 17525 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 17526 else 17527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17528 for as_dir in $PATH 17529 do 17530 IFS=$as_save_IFS 17531 case $as_dir in #((( 17532 '') as_dir=./ ;; 17533 */) ;; 17534 *) as_dir=$as_dir/ ;; 17535 esac 17536 for ac_exec_ext in '' $ac_executable_extensions; do 17537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17538 ac_cv_prog_ac_ct_LIPO="lipo" 17539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17540 break 2 17541 fi 17542 done 17543 done 17544 IFS=$as_save_IFS 17545 17546 fi ;; 17547 esac 17548 fi 17549 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 17550 if test -n "$ac_ct_LIPO"; then 17551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 17552 printf "%s\n" "$ac_ct_LIPO" >&6; } 17553 else 17554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17555 printf "%s\n" "no" >&6; } 17556 fi 17557 17558 if test "x$ac_ct_LIPO" = x; then 17559 LIPO=":" 17560 else 17561 case $cross_compiling:$ac_tool_warned in 17562 yes:) 17563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17564 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17565 ac_tool_warned=yes ;; 17566 esac 17567 LIPO=$ac_ct_LIPO 17568 fi 17569 else 17570 LIPO="$ac_cv_prog_LIPO" 17571 fi 17572 17573 if test -n "$ac_tool_prefix"; then 17574 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 17575 set dummy ${ac_tool_prefix}otool; ac_word=$2 17576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17577 printf %s "checking for $ac_word... " >&6; } 17578 if test ${ac_cv_prog_OTOOL+y} 17579 then : 17580 printf %s "(cached) " >&6 17581 else case e in #( 17582 e) if test -n "$OTOOL"; then 17583 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 17584 else 17585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17586 for as_dir in $PATH 17587 do 17588 IFS=$as_save_IFS 17589 case $as_dir in #((( 17590 '') as_dir=./ ;; 17591 */) ;; 17592 *) as_dir=$as_dir/ ;; 17593 esac 17594 for ac_exec_ext in '' $ac_executable_extensions; do 17595 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17596 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 17597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17598 break 2 17599 fi 17600 done 17601 done 17602 IFS=$as_save_IFS 17603 17604 fi ;; 17605 esac 17606 fi 17607 OTOOL=$ac_cv_prog_OTOOL 17608 if test -n "$OTOOL"; then 17609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17610 printf "%s\n" "$OTOOL" >&6; } 17611 else 17612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17613 printf "%s\n" "no" >&6; } 17614 fi 17615 17616 17617 fi 17618 if test -z "$ac_cv_prog_OTOOL"; then 17619 ac_ct_OTOOL=$OTOOL 17620 # Extract the first word of "otool", so it can be a program name with args. 17621 set dummy otool; ac_word=$2 17622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17623 printf %s "checking for $ac_word... " >&6; } 17624 if test ${ac_cv_prog_ac_ct_OTOOL+y} 17625 then : 17626 printf %s "(cached) " >&6 17627 else case e in #( 17628 e) if test -n "$ac_ct_OTOOL"; then 17629 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 17630 else 17631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17632 for as_dir in $PATH 17633 do 17634 IFS=$as_save_IFS 17635 case $as_dir in #((( 17636 '') as_dir=./ ;; 17637 */) ;; 17638 *) as_dir=$as_dir/ ;; 17639 esac 17640 for ac_exec_ext in '' $ac_executable_extensions; do 17641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17642 ac_cv_prog_ac_ct_OTOOL="otool" 17643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17644 break 2 17645 fi 17646 done 17647 done 17648 IFS=$as_save_IFS 17649 17650 fi ;; 17651 esac 17652 fi 17653 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 17654 if test -n "$ac_ct_OTOOL"; then 17655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 17656 printf "%s\n" "$ac_ct_OTOOL" >&6; } 17657 else 17658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17659 printf "%s\n" "no" >&6; } 17660 fi 17661 17662 if test "x$ac_ct_OTOOL" = x; then 17663 OTOOL=":" 17664 else 17665 case $cross_compiling:$ac_tool_warned in 17666 yes:) 17667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17668 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17669 ac_tool_warned=yes ;; 17670 esac 17671 OTOOL=$ac_ct_OTOOL 17672 fi 17673 else 17674 OTOOL="$ac_cv_prog_OTOOL" 17675 fi 17676 17677 if test -n "$ac_tool_prefix"; then 17678 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 17679 set dummy ${ac_tool_prefix}otool64; ac_word=$2 17680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17681 printf %s "checking for $ac_word... " >&6; } 17682 if test ${ac_cv_prog_OTOOL64+y} 17683 then : 17684 printf %s "(cached) " >&6 17685 else case e in #( 17686 e) if test -n "$OTOOL64"; then 17687 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 17688 else 17689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17690 for as_dir in $PATH 17691 do 17692 IFS=$as_save_IFS 17693 case $as_dir in #((( 17694 '') as_dir=./ ;; 17695 */) ;; 17696 *) as_dir=$as_dir/ ;; 17697 esac 17698 for ac_exec_ext in '' $ac_executable_extensions; do 17699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17700 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 17701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17702 break 2 17703 fi 17704 done 17705 done 17706 IFS=$as_save_IFS 17707 17708 fi ;; 17709 esac 17710 fi 17711 OTOOL64=$ac_cv_prog_OTOOL64 17712 if test -n "$OTOOL64"; then 17713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 17714 printf "%s\n" "$OTOOL64" >&6; } 17715 else 17716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17717 printf "%s\n" "no" >&6; } 17718 fi 17719 17720 17721 fi 17722 if test -z "$ac_cv_prog_OTOOL64"; then 17723 ac_ct_OTOOL64=$OTOOL64 17724 # Extract the first word of "otool64", so it can be a program name with args. 17725 set dummy otool64; ac_word=$2 17726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17727 printf %s "checking for $ac_word... " >&6; } 17728 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 17729 then : 17730 printf %s "(cached) " >&6 17731 else case e in #( 17732 e) if test -n "$ac_ct_OTOOL64"; then 17733 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 17734 else 17735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17736 for as_dir in $PATH 17737 do 17738 IFS=$as_save_IFS 17739 case $as_dir in #((( 17740 '') as_dir=./ ;; 17741 */) ;; 17742 *) as_dir=$as_dir/ ;; 17743 esac 17744 for ac_exec_ext in '' $ac_executable_extensions; do 17745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17746 ac_cv_prog_ac_ct_OTOOL64="otool64" 17747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17748 break 2 17749 fi 17750 done 17751 done 17752 IFS=$as_save_IFS 17753 17754 fi ;; 17755 esac 17756 fi 17757 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 17758 if test -n "$ac_ct_OTOOL64"; then 17759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 17760 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 17761 else 17762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17763 printf "%s\n" "no" >&6; } 17764 fi 17765 17766 if test "x$ac_ct_OTOOL64" = x; then 17767 OTOOL64=":" 17768 else 17769 case $cross_compiling:$ac_tool_warned in 17770 yes:) 17771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17772 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17773 ac_tool_warned=yes ;; 17774 esac 17775 OTOOL64=$ac_ct_OTOOL64 17776 fi 17777 else 17778 OTOOL64="$ac_cv_prog_OTOOL64" 17779 fi 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 17808 printf %s "checking for -single_module linker flag... " >&6; } 17809 if test ${lt_cv_apple_cc_single_mod+y} 17810 then : 17811 printf %s "(cached) " >&6 17812 else case e in #( 17813 e) lt_cv_apple_cc_single_mod=no 17814 if test -z "$LT_MULTI_MODULE"; then 17815 # By default we will add the -single_module flag. You can override 17816 # by either setting the environment variable LT_MULTI_MODULE 17817 # non-empty at configure time, or by adding -multi_module to the 17818 # link flags. 17819 rm -rf libconftest.dylib* 17820 echo "int foo(void){return 1;}" > conftest.c 17821 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 17822 -dynamiclib -Wl,-single_module conftest.c" >&5 17823 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 17824 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 17825 _lt_result=$? 17826 # If there is a non-empty error log, and "single_module" 17827 # appears in it, assume the flag caused a linker warning 17828 if test -s conftest.err && $GREP single_module conftest.err; then 17829 cat conftest.err >&5 17830 # Otherwise, if the output was created with a 0 exit code from 17831 # the compiler, it worked. 17832 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 17833 lt_cv_apple_cc_single_mod=yes 17834 else 17835 cat conftest.err >&5 17836 fi 17837 rm -rf libconftest.dylib* 17838 rm -f conftest.* 17839 fi ;; 17840 esac 17841 fi 17842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 17843 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 17844 17845 # Feature test to disable chained fixups since it is not 17846 # compatible with '-undefined dynamic_lookup' 17847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 17848 printf %s "checking for -no_fixup_chains linker flag... " >&6; } 17849 if test ${lt_cv_support_no_fixup_chains+y} 17850 then : 17851 printf %s "(cached) " >&6 17852 else case e in #( 17853 e) save_LDFLAGS=$LDFLAGS 17854 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" 17855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17856 /* end confdefs.h. */ 17857 17858 int 17859 main (void) 17860 { 17861 17862 ; 17863 return 0; 17864 } 17865 _ACEOF 17866 if ac_fn_c_try_link "$LINENO" 17867 then : 17868 lt_cv_support_no_fixup_chains=yes 17869 else case e in #( 17870 e) lt_cv_support_no_fixup_chains=no 17871 ;; 17872 esac 17873 fi 17874 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17875 conftest$ac_exeext conftest.$ac_ext 17876 LDFLAGS=$save_LDFLAGS 17877 17878 ;; 17879 esac 17880 fi 17881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 17882 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; } 17883 17884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 17885 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 17886 if test ${lt_cv_ld_exported_symbols_list+y} 17887 then : 17888 printf %s "(cached) " >&6 17889 else case e in #( 17890 e) lt_cv_ld_exported_symbols_list=no 17891 save_LDFLAGS=$LDFLAGS 17892 echo "_main" > conftest.sym 17893 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 17894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17895 /* end confdefs.h. */ 17896 17897 int 17898 main (void) 17899 { 17900 17901 ; 17902 return 0; 17903 } 17904 _ACEOF 17905 if ac_fn_c_try_link "$LINENO" 17906 then : 17907 lt_cv_ld_exported_symbols_list=yes 17908 else case e in #( 17909 e) lt_cv_ld_exported_symbols_list=no ;; 17910 esac 17911 fi 17912 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17913 conftest$ac_exeext conftest.$ac_ext 17914 LDFLAGS=$save_LDFLAGS 17915 ;; 17916 esac 17917 fi 17918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 17919 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 17920 17921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 17922 printf %s "checking for -force_load linker flag... " >&6; } 17923 if test ${lt_cv_ld_force_load+y} 17924 then : 17925 printf %s "(cached) " >&6 17926 else case e in #( 17927 e) lt_cv_ld_force_load=no 17928 cat > conftest.c << _LT_EOF 17929 int forced_loaded() { return 2;} 17930 _LT_EOF 17931 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 17932 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 17933 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 17934 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 17935 echo "$RANLIB libconftest.a" >&5 17936 $RANLIB libconftest.a 2>&5 17937 cat > conftest.c << _LT_EOF 17938 int main(void) { return 0;} 17939 _LT_EOF 17940 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 17941 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 17942 _lt_result=$? 17943 if test -s conftest.err && $GREP force_load conftest.err; then 17944 cat conftest.err >&5 17945 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 17946 lt_cv_ld_force_load=yes 17947 else 17948 cat conftest.err >&5 17949 fi 17950 rm -f conftest.err libconftest.a conftest conftest.c 17951 rm -rf conftest.dSYM 17952 ;; 17953 esac 17954 fi 17955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 17956 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 17957 case $host_os in 17958 rhapsody* | darwin1.[012]) 17959 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 17960 darwin1.*) 17961 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 17962 darwin*) 17963 case $MACOSX_DEPLOYMENT_TARGET,$host in 17964 10.[012],*|,*powerpc*-darwin[5-8]*) 17965 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 17966 *) 17967 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' 17968 if test yes = "$lt_cv_support_no_fixup_chains"; then 17969 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' 17970 fi 17971 ;; 17972 esac 17973 ;; 17974 esac 17975 if test yes = "$lt_cv_apple_cc_single_mod"; then 17976 _lt_dar_single_mod='$single_module' 17977 fi 17978 _lt_dar_needs_single_mod=no 17979 case $host_os in 17980 rhapsody* | darwin1.*) 17981 _lt_dar_needs_single_mod=yes ;; 17982 darwin*) 17983 # When targeting Mac OS X 10.4 (darwin 8) or later, 17984 # -single_module is the default and -multi_module is unsupported. 17985 # The toolchain on macOS 10.14 (darwin 18) and later cannot 17986 # target any OS version that needs -single_module. 17987 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 17988 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) 17989 _lt_dar_needs_single_mod=yes ;; 17990 esac 17991 ;; 17992 esac 17993 if test yes = "$lt_cv_ld_exported_symbols_list"; then 17994 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 17995 else 17996 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 17997 fi 17998 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 17999 _lt_dsymutil='~$DSYMUTIL $lib || :' 18000 else 18001 _lt_dsymutil= 18002 fi 18003 ;; 18004 esac 18005 18006 # func_munge_path_list VARIABLE PATH 18007 # ----------------------------------- 18008 # VARIABLE is name of variable containing _space_ separated list of 18009 # directories to be munged by the contents of PATH, which is string 18010 # having a format: 18011 # "DIR[:DIR]:" 18012 # string "DIR[ DIR]" will be prepended to VARIABLE 18013 # ":DIR[:DIR]" 18014 # string "DIR[ DIR]" will be appended to VARIABLE 18015 # "DIRP[:DIRP]::[DIRA:]DIRA" 18016 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18017 # "DIRA[ DIRA]" will be appended to VARIABLE 18018 # "DIR[:DIR]" 18019 # VARIABLE will be replaced by "DIR[ DIR]" 18020 func_munge_path_list () 18021 { 18022 case x$2 in 18023 x) 18024 ;; 18025 *:) 18026 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18027 ;; 18028 x:*) 18029 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18030 ;; 18031 *::*) 18032 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18033 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18034 ;; 18035 *) 18036 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18037 ;; 18038 esac 18039 } 18040 18041 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 18042 " 18043 if test "x$ac_cv_header_dlfcn_h" = xyes 18044 then : 18045 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 18046 18047 fi 18048 18049 18050 18051 18052 18053 # Set options 18054 # Check whether --enable-static was given. 18055 if test ${enable_static+y} 18056 then : 18057 enableval=$enable_static; p=${PACKAGE-default} 18058 case $enableval in 18059 yes) enable_static=yes ;; 18060 no) enable_static=no ;; 18061 *) 18062 enable_static=no 18063 # Look at the argument we got. We use all the common list separators. 18064 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 18065 for pkg in $enableval; do 18066 IFS=$lt_save_ifs 18067 if test "X$pkg" = "X$p"; then 18068 enable_static=yes 18069 fi 18070 done 18071 IFS=$lt_save_ifs 18072 ;; 18073 esac 18074 else case e in #( 18075 e) enable_static=no ;; 18076 esac 18077 fi 18078 18079 18080 18081 18082 18083 18084 18085 enable_win32_dll=yes 18086 18087 case $host in 18088 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*) 18089 if test -n "$ac_tool_prefix"; then 18090 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 18091 set dummy ${ac_tool_prefix}as; ac_word=$2 18092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18093 printf %s "checking for $ac_word... " >&6; } 18094 if test ${ac_cv_prog_AS+y} 18095 then : 18096 printf %s "(cached) " >&6 18097 else case e in #( 18098 e) if test -n "$AS"; then 18099 ac_cv_prog_AS="$AS" # Let the user override the test. 18100 else 18101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18102 for as_dir in $PATH 18103 do 18104 IFS=$as_save_IFS 18105 case $as_dir in #((( 18106 '') as_dir=./ ;; 18107 */) ;; 18108 *) as_dir=$as_dir/ ;; 18109 esac 18110 for ac_exec_ext in '' $ac_executable_extensions; do 18111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18112 ac_cv_prog_AS="${ac_tool_prefix}as" 18113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18114 break 2 18115 fi 18116 done 18117 done 18118 IFS=$as_save_IFS 18119 18120 fi ;; 18121 esac 18122 fi 18123 AS=$ac_cv_prog_AS 18124 if test -n "$AS"; then 18125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 18126 printf "%s\n" "$AS" >&6; } 18127 else 18128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18129 printf "%s\n" "no" >&6; } 18130 fi 18131 18132 18133 fi 18134 if test -z "$ac_cv_prog_AS"; then 18135 ac_ct_AS=$AS 18136 # Extract the first word of "as", so it can be a program name with args. 18137 set dummy as; ac_word=$2 18138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18139 printf %s "checking for $ac_word... " >&6; } 18140 if test ${ac_cv_prog_ac_ct_AS+y} 18141 then : 18142 printf %s "(cached) " >&6 18143 else case e in #( 18144 e) if test -n "$ac_ct_AS"; then 18145 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 18146 else 18147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18148 for as_dir in $PATH 18149 do 18150 IFS=$as_save_IFS 18151 case $as_dir in #((( 18152 '') as_dir=./ ;; 18153 */) ;; 18154 *) as_dir=$as_dir/ ;; 18155 esac 18156 for ac_exec_ext in '' $ac_executable_extensions; do 18157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18158 ac_cv_prog_ac_ct_AS="as" 18159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18160 break 2 18161 fi 18162 done 18163 done 18164 IFS=$as_save_IFS 18165 18166 fi ;; 18167 esac 18168 fi 18169 ac_ct_AS=$ac_cv_prog_ac_ct_AS 18170 if test -n "$ac_ct_AS"; then 18171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 18172 printf "%s\n" "$ac_ct_AS" >&6; } 18173 else 18174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18175 printf "%s\n" "no" >&6; } 18176 fi 18177 18178 if test "x$ac_ct_AS" = x; then 18179 AS="false" 18180 else 18181 case $cross_compiling:$ac_tool_warned in 18182 yes:) 18183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18184 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18185 ac_tool_warned=yes ;; 18186 esac 18187 AS=$ac_ct_AS 18188 fi 18189 else 18190 AS="$ac_cv_prog_AS" 18191 fi 18192 18193 if test -n "$ac_tool_prefix"; then 18194 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 18195 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 18196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18197 printf %s "checking for $ac_word... " >&6; } 18198 if test ${ac_cv_prog_DLLTOOL+y} 18199 then : 18200 printf %s "(cached) " >&6 18201 else case e in #( 18202 e) if test -n "$DLLTOOL"; then 18203 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 18204 else 18205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18206 for as_dir in $PATH 18207 do 18208 IFS=$as_save_IFS 18209 case $as_dir in #((( 18210 '') as_dir=./ ;; 18211 */) ;; 18212 *) as_dir=$as_dir/ ;; 18213 esac 18214 for ac_exec_ext in '' $ac_executable_extensions; do 18215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18216 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 18217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18218 break 2 18219 fi 18220 done 18221 done 18222 IFS=$as_save_IFS 18223 18224 fi ;; 18225 esac 18226 fi 18227 DLLTOOL=$ac_cv_prog_DLLTOOL 18228 if test -n "$DLLTOOL"; then 18229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 18230 printf "%s\n" "$DLLTOOL" >&6; } 18231 else 18232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18233 printf "%s\n" "no" >&6; } 18234 fi 18235 18236 18237 fi 18238 if test -z "$ac_cv_prog_DLLTOOL"; then 18239 ac_ct_DLLTOOL=$DLLTOOL 18240 # Extract the first word of "dlltool", so it can be a program name with args. 18241 set dummy dlltool; ac_word=$2 18242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18243 printf %s "checking for $ac_word... " >&6; } 18244 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 18245 then : 18246 printf %s "(cached) " >&6 18247 else case e in #( 18248 e) if test -n "$ac_ct_DLLTOOL"; then 18249 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 18250 else 18251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18252 for as_dir in $PATH 18253 do 18254 IFS=$as_save_IFS 18255 case $as_dir in #((( 18256 '') as_dir=./ ;; 18257 */) ;; 18258 *) as_dir=$as_dir/ ;; 18259 esac 18260 for ac_exec_ext in '' $ac_executable_extensions; do 18261 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18262 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 18263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18264 break 2 18265 fi 18266 done 18267 done 18268 IFS=$as_save_IFS 18269 18270 fi ;; 18271 esac 18272 fi 18273 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 18274 if test -n "$ac_ct_DLLTOOL"; then 18275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 18276 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 18277 else 18278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18279 printf "%s\n" "no" >&6; } 18280 fi 18281 18282 if test "x$ac_ct_DLLTOOL" = x; then 18283 DLLTOOL="false" 18284 else 18285 case $cross_compiling:$ac_tool_warned in 18286 yes:) 18287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18288 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18289 ac_tool_warned=yes ;; 18290 esac 18291 DLLTOOL=$ac_ct_DLLTOOL 18292 fi 18293 else 18294 DLLTOOL="$ac_cv_prog_DLLTOOL" 18295 fi 18296 18297 if test -n "$ac_tool_prefix"; then 18298 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 18299 set dummy ${ac_tool_prefix}objdump; ac_word=$2 18300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18301 printf %s "checking for $ac_word... " >&6; } 18302 if test ${ac_cv_prog_OBJDUMP+y} 18303 then : 18304 printf %s "(cached) " >&6 18305 else case e in #( 18306 e) if test -n "$OBJDUMP"; then 18307 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 18308 else 18309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18310 for as_dir in $PATH 18311 do 18312 IFS=$as_save_IFS 18313 case $as_dir in #((( 18314 '') as_dir=./ ;; 18315 */) ;; 18316 *) as_dir=$as_dir/ ;; 18317 esac 18318 for ac_exec_ext in '' $ac_executable_extensions; do 18319 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18320 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 18321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18322 break 2 18323 fi 18324 done 18325 done 18326 IFS=$as_save_IFS 18327 18328 fi ;; 18329 esac 18330 fi 18331 OBJDUMP=$ac_cv_prog_OBJDUMP 18332 if test -n "$OBJDUMP"; then 18333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 18334 printf "%s\n" "$OBJDUMP" >&6; } 18335 else 18336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18337 printf "%s\n" "no" >&6; } 18338 fi 18339 18340 18341 fi 18342 if test -z "$ac_cv_prog_OBJDUMP"; then 18343 ac_ct_OBJDUMP=$OBJDUMP 18344 # Extract the first word of "objdump", so it can be a program name with args. 18345 set dummy objdump; ac_word=$2 18346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18347 printf %s "checking for $ac_word... " >&6; } 18348 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 18349 then : 18350 printf %s "(cached) " >&6 18351 else case e in #( 18352 e) if test -n "$ac_ct_OBJDUMP"; then 18353 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 18354 else 18355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18356 for as_dir in $PATH 18357 do 18358 IFS=$as_save_IFS 18359 case $as_dir in #((( 18360 '') as_dir=./ ;; 18361 */) ;; 18362 *) as_dir=$as_dir/ ;; 18363 esac 18364 for ac_exec_ext in '' $ac_executable_extensions; do 18365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18366 ac_cv_prog_ac_ct_OBJDUMP="objdump" 18367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18368 break 2 18369 fi 18370 done 18371 done 18372 IFS=$as_save_IFS 18373 18374 fi ;; 18375 esac 18376 fi 18377 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 18378 if test -n "$ac_ct_OBJDUMP"; then 18379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 18380 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 18381 else 18382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18383 printf "%s\n" "no" >&6; } 18384 fi 18385 18386 if test "x$ac_ct_OBJDUMP" = x; then 18387 OBJDUMP="false" 18388 else 18389 case $cross_compiling:$ac_tool_warned in 18390 yes:) 18391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18392 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18393 ac_tool_warned=yes ;; 18394 esac 18395 OBJDUMP=$ac_ct_OBJDUMP 18396 fi 18397 else 18398 OBJDUMP="$ac_cv_prog_OBJDUMP" 18399 fi 18400 18401 ;; 18402 esac 18403 18404 test -z "$AS" && AS=as 18405 18406 18407 18408 18409 18410 test -z "$DLLTOOL" && DLLTOOL=dlltool 18411 18412 18413 18414 18415 18416 test -z "$OBJDUMP" && OBJDUMP=objdump 18417 18418 18419 18420 18421 18422 18423 18424 enable_dlopen=no 18425 18426 18427 18428 # Check whether --enable-shared was given. 18429 if test ${enable_shared+y} 18430 then : 18431 enableval=$enable_shared; p=${PACKAGE-default} 18432 case $enableval in 18433 yes) enable_shared=yes ;; 18434 no) enable_shared=no ;; 18435 *) 18436 enable_shared=no 18437 # Look at the argument we got. We use all the common list separators. 18438 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 18439 for pkg in $enableval; do 18440 IFS=$lt_save_ifs 18441 if test "X$pkg" = "X$p"; then 18442 enable_shared=yes 18443 fi 18444 done 18445 IFS=$lt_save_ifs 18446 ;; 18447 esac 18448 else case e in #( 18449 e) enable_shared=yes ;; 18450 esac 18451 fi 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461 18462 # Check whether --enable-pic was given. 18463 if test ${enable_pic+y} 18464 then : 18465 enableval=$enable_pic; lt_p=${PACKAGE-default} 18466 case $enableval in 18467 yes|no) pic_mode=$enableval ;; 18468 *) 18469 pic_mode=default 18470 # Look at the argument we got. We use all the common list separators. 18471 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 18472 for lt_pkg in $enableval; do 18473 IFS=$lt_save_ifs 18474 if test "X$lt_pkg" = "X$lt_p"; then 18475 pic_mode=yes 18476 fi 18477 done 18478 IFS=$lt_save_ifs 18479 ;; 18480 esac 18481 else case e in #( 18482 e) # Check whether --with-pic was given. 18483 if test ${with_pic+y} 18484 then : 18485 withval=$with_pic; lt_p=${PACKAGE-default} 18486 case $withval in 18487 yes|no) pic_mode=$withval ;; 18488 *) 18489 pic_mode=default 18490 # Look at the argument we got. We use all the common list separators. 18491 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 18492 for lt_pkg in $withval; do 18493 IFS=$lt_save_ifs 18494 if test "X$lt_pkg" = "X$lt_p"; then 18495 pic_mode=yes 18496 fi 18497 done 18498 IFS=$lt_save_ifs 18499 ;; 18500 esac 18501 else case e in #( 18502 e) pic_mode=default ;; 18503 esac 18504 fi 18505 18506 ;; 18507 esac 18508 fi 18509 18510 18511 18512 18513 18514 18515 18516 18517 # Check whether --enable-fast-install was given. 18518 if test ${enable_fast_install+y} 18519 then : 18520 enableval=$enable_fast_install; p=${PACKAGE-default} 18521 case $enableval in 18522 yes) enable_fast_install=yes ;; 18523 no) enable_fast_install=no ;; 18524 *) 18525 enable_fast_install=no 18526 # Look at the argument we got. We use all the common list separators. 18527 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 18528 for pkg in $enableval; do 18529 IFS=$lt_save_ifs 18530 if test "X$pkg" = "X$p"; then 18531 enable_fast_install=yes 18532 fi 18533 done 18534 IFS=$lt_save_ifs 18535 ;; 18536 esac 18537 else case e in #( 18538 e) enable_fast_install=yes ;; 18539 esac 18540 fi 18541 18542 18543 18544 18545 18546 18547 18548 18549 shared_archive_member_spec= 18550 case $host,$enable_shared in 18551 power*-*-aix[5-9]*,yes) 18552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 18553 printf %s "checking which variant of shared library versioning to provide... " >&6; } 18554 # Check whether --enable-aix-soname was given. 18555 if test ${enable_aix_soname+y} 18556 then : 18557 enableval=$enable_aix_soname; case $enableval in 18558 aix|svr4|both) 18559 ;; 18560 *) 18561 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 18562 ;; 18563 esac 18564 lt_cv_with_aix_soname=$enable_aix_soname 18565 else case e in #( 18566 e) # Check whether --with-aix-soname was given. 18567 if test ${with_aix_soname+y} 18568 then : 18569 withval=$with_aix_soname; case $withval in 18570 aix|svr4|both) 18571 ;; 18572 *) 18573 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 18574 ;; 18575 esac 18576 lt_cv_with_aix_soname=$with_aix_soname 18577 else case e in #( 18578 e) if test ${lt_cv_with_aix_soname+y} 18579 then : 18580 printf %s "(cached) " >&6 18581 else case e in #( 18582 e) lt_cv_with_aix_soname=aix ;; 18583 esac 18584 fi 18585 ;; 18586 esac 18587 fi 18588 18589 enable_aix_soname=$lt_cv_with_aix_soname ;; 18590 esac 18591 fi 18592 18593 with_aix_soname=$enable_aix_soname 18594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 18595 printf "%s\n" "$with_aix_soname" >&6; } 18596 if test aix != "$with_aix_soname"; then 18597 # For the AIX way of multilib, we name the shared archive member 18598 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 18599 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 18600 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 18601 # the AIX toolchain works better with OBJECT_MODE set (default 32). 18602 if test 64 = "${OBJECT_MODE-32}"; then 18603 shared_archive_member_spec=shr_64 18604 else 18605 shared_archive_member_spec=shr 18606 fi 18607 fi 18608 ;; 18609 *) 18610 with_aix_soname=aix 18611 ;; 18612 esac 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 # This can be used to rebuild libtool when needed 18624 LIBTOOL_DEPS=$ltmain 18625 18626 # Always use our own libtool. 18627 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 test -z "$LN_S" && LN_S="ln -s" 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668 18669 18670 18671 18672 18673 if test -n "${ZSH_VERSION+set}"; then 18674 setopt NO_GLOB_SUBST 18675 fi 18676 18677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 18678 printf %s "checking for objdir... " >&6; } 18679 if test ${lt_cv_objdir+y} 18680 then : 18681 printf %s "(cached) " >&6 18682 else case e in #( 18683 e) rm -f .libs 2>/dev/null 18684 mkdir .libs 2>/dev/null 18685 if test -d .libs; then 18686 lt_cv_objdir=.libs 18687 else 18688 # MS-DOS does not allow filenames that begin with a dot. 18689 lt_cv_objdir=_libs 18690 fi 18691 rmdir .libs 2>/dev/null ;; 18692 esac 18693 fi 18694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 18695 printf "%s\n" "$lt_cv_objdir" >&6; } 18696 objdir=$lt_cv_objdir 18697 18698 18699 18700 18701 18702 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 18703 18704 18705 18706 18707 case $host_os in 18708 aix3*) 18709 # AIX sometimes has problems with the GCC collect2 program. For some 18710 # reason, if we set the COLLECT_NAMES environment variable, the problems 18711 # vanish in a puff of smoke. 18712 if test set != "${COLLECT_NAMES+set}"; then 18713 COLLECT_NAMES= 18714 export COLLECT_NAMES 18715 fi 18716 ;; 18717 esac 18718 18719 # Global variables: 18720 ofile=libtool 18721 can_build_shared=yes 18722 18723 # All known linkers require a '.a' archive for static linking (except MSVC and 18724 # ICC, which need '.lib'). 18725 libext=a 18726 18727 with_gnu_ld=$lt_cv_prog_gnu_ld 18728 18729 old_CC=$CC 18730 old_CFLAGS=$CFLAGS 18731 18732 # Set sane defaults for various variables 18733 test -z "$CC" && CC=cc 18734 test -z "$LTCC" && LTCC=$CC 18735 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 18736 test -z "$LD" && LD=ld 18737 test -z "$ac_objext" && ac_objext=o 18738 18739 func_cc_basename $compiler 18740 cc_basename=$func_cc_basename_result 18741 18742 18743 # Only perform the check for file, if the check method requires it 18744 test -z "$MAGIC_CMD" && MAGIC_CMD=file 18745 case $deplibs_check_method in 18746 file_magic*) 18747 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 18748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 18749 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 18750 if test ${lt_cv_path_MAGIC_CMD+y} 18751 then : 18752 printf %s "(cached) " >&6 18753 else case e in #( 18754 e) case $MAGIC_CMD in 18755 [\\/*] | ?:[\\/]*) 18756 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 18757 ;; 18758 *) 18759 lt_save_MAGIC_CMD=$MAGIC_CMD 18760 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 18761 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 18762 for ac_dir in $ac_dummy; do 18763 IFS=$lt_save_ifs 18764 test -z "$ac_dir" && ac_dir=. 18765 if test -f "$ac_dir/${ac_tool_prefix}file"; then 18766 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 18767 if test -n "$file_magic_test_file"; then 18768 case $deplibs_check_method in 18769 "file_magic "*) 18770 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 18771 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18772 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 18773 $EGREP "$file_magic_regex" > /dev/null; then 18774 : 18775 else 18776 cat <<_LT_EOF 1>&2 18777 18778 *** Warning: the command libtool uses to detect shared libraries, 18779 *** $file_magic_cmd, produces output that libtool cannot recognize. 18780 *** The result is that libtool may fail to recognize shared libraries 18781 *** as such. This will affect the creation of libtool libraries that 18782 *** depend on shared libraries, but programs linked with such libtool 18783 *** libraries will work regardless of this problem. Nevertheless, you 18784 *** may want to report the problem to your system manager and/or to 18785 *** bug-libtool@gnu.org 18786 18787 _LT_EOF 18788 fi ;; 18789 esac 18790 fi 18791 break 18792 fi 18793 done 18794 IFS=$lt_save_ifs 18795 MAGIC_CMD=$lt_save_MAGIC_CMD 18796 ;; 18797 esac ;; 18798 esac 18799 fi 18800 18801 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18802 if test -n "$MAGIC_CMD"; then 18803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 18804 printf "%s\n" "$MAGIC_CMD" >&6; } 18805 else 18806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18807 printf "%s\n" "no" >&6; } 18808 fi 18809 18810 18811 18812 18813 18814 if test -z "$lt_cv_path_MAGIC_CMD"; then 18815 if test -n "$ac_tool_prefix"; then 18816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 18817 printf %s "checking for file... " >&6; } 18818 if test ${lt_cv_path_MAGIC_CMD+y} 18819 then : 18820 printf %s "(cached) " >&6 18821 else case e in #( 18822 e) case $MAGIC_CMD in 18823 [\\/*] | ?:[\\/]*) 18824 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 18825 ;; 18826 *) 18827 lt_save_MAGIC_CMD=$MAGIC_CMD 18828 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 18829 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 18830 for ac_dir in $ac_dummy; do 18831 IFS=$lt_save_ifs 18832 test -z "$ac_dir" && ac_dir=. 18833 if test -f "$ac_dir/file"; then 18834 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 18835 if test -n "$file_magic_test_file"; then 18836 case $deplibs_check_method in 18837 "file_magic "*) 18838 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 18839 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18840 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 18841 $EGREP "$file_magic_regex" > /dev/null; then 18842 : 18843 else 18844 cat <<_LT_EOF 1>&2 18845 18846 *** Warning: the command libtool uses to detect shared libraries, 18847 *** $file_magic_cmd, produces output that libtool cannot recognize. 18848 *** The result is that libtool may fail to recognize shared libraries 18849 *** as such. This will affect the creation of libtool libraries that 18850 *** depend on shared libraries, but programs linked with such libtool 18851 *** libraries will work regardless of this problem. Nevertheless, you 18852 *** may want to report the problem to your system manager and/or to 18853 *** bug-libtool@gnu.org 18854 18855 _LT_EOF 18856 fi ;; 18857 esac 18858 fi 18859 break 18860 fi 18861 done 18862 IFS=$lt_save_ifs 18863 MAGIC_CMD=$lt_save_MAGIC_CMD 18864 ;; 18865 esac ;; 18866 esac 18867 fi 18868 18869 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18870 if test -n "$MAGIC_CMD"; then 18871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 18872 printf "%s\n" "$MAGIC_CMD" >&6; } 18873 else 18874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18875 printf "%s\n" "no" >&6; } 18876 fi 18877 18878 18879 else 18880 MAGIC_CMD=: 18881 fi 18882 fi 18883 18884 fi 18885 ;; 18886 esac 18887 18888 # Use C for the default configuration in the libtool script 18889 18890 lt_save_CC=$CC 18891 ac_ext=c 18892 ac_cpp='$CPP $CPPFLAGS' 18893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18895 ac_compiler_gnu=$ac_cv_c_compiler_gnu 18896 18897 18898 # Source file extension for C test sources. 18899 ac_ext=c 18900 18901 # Object file extension for compiled C test sources. 18902 objext=o 18903 objext=$objext 18904 18905 # Code to be used in simple compile tests 18906 lt_simple_compile_test_code="int some_variable = 0;" 18907 18908 # Code to be used in simple link tests 18909 lt_simple_link_test_code='int main(void){return(0);}' 18910 18911 18912 18913 18914 18915 18916 18917 # If no C compiler was specified, use CC. 18918 LTCC=${LTCC-"$CC"} 18919 18920 # If no C compiler flags were specified, use CFLAGS. 18921 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18922 18923 # Allow CC to be a program name with arguments. 18924 compiler=$CC 18925 18926 # Save the default compiler, since it gets overwritten when the other 18927 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 18928 compiler_DEFAULT=$CC 18929 18930 # save warnings/boilerplate of simple test code 18931 ac_outfile=conftest.$ac_objext 18932 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18933 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18934 _lt_compiler_boilerplate=`cat conftest.err` 18935 $RM conftest* 18936 18937 ac_outfile=conftest.$ac_objext 18938 echo "$lt_simple_link_test_code" >conftest.$ac_ext 18939 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18940 _lt_linker_boilerplate=`cat conftest.err` 18941 $RM -r conftest* 18942 18943 18944 ## CAVEAT EMPTOR: 18945 ## There is no encapsulation within the following macros, do not change 18946 ## the running order or otherwise move them around unless you know exactly 18947 ## what you are doing... 18948 if test -n "$compiler"; then 18949 18950 lt_prog_compiler_no_builtin_flag= 18951 18952 if test yes = "$GCC"; then 18953 case $cc_basename in 18954 nvcc*) 18955 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 18956 *) 18957 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 18958 esac 18959 18960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 18961 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 18962 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 18963 then : 18964 printf %s "(cached) " >&6 18965 else case e in #( 18966 e) lt_cv_prog_compiler_rtti_exceptions=no 18967 ac_outfile=conftest.$ac_objext 18968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18969 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 18970 # Insert the option either (1) after the last *FLAGS variable, or 18971 # (2) before a word containing "conftest.", or (3) at the end. 18972 # Note that $ac_compile itself does not contain backslashes and begins 18973 # with a dollar sign (not a hyphen), so the echo should work correctly. 18974 # The option is referenced via a variable to avoid confusing sed. 18975 lt_compile=`echo "$ac_compile" | $SED \ 18976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18978 -e 's:$: $lt_compiler_flag:'` 18979 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18980 (eval "$lt_compile" 2>conftest.err) 18981 ac_status=$? 18982 cat conftest.err >&5 18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18984 if (exit $ac_status) && test -s "$ac_outfile"; then 18985 # The compiler can only warn and ignore the option if not recognized 18986 # So say no if there are warnings other than the usual output. 18987 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 18988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18989 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 18990 lt_cv_prog_compiler_rtti_exceptions=yes 18991 fi 18992 fi 18993 $RM conftest* 18994 ;; 18995 esac 18996 fi 18997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 18998 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 18999 19000 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 19001 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 19002 else 19003 : 19004 fi 19005 19006 fi 19007 19008 19009 19010 19011 19012 19013 lt_prog_compiler_wl= 19014 lt_prog_compiler_pic= 19015 lt_prog_compiler_static= 19016 19017 19018 if test yes = "$GCC"; then 19019 lt_prog_compiler_wl='-Wl,' 19020 lt_prog_compiler_static='-static' 19021 19022 case $host_os in 19023 aix*) 19024 # All AIX code is PIC. 19025 if test ia64 = "$host_cpu"; then 19026 # AIX 5 now supports IA64 processor 19027 lt_prog_compiler_static='-Bstatic' 19028 fi 19029 lt_prog_compiler_pic='-fPIC' 19030 ;; 19031 19032 amigaos*) 19033 case $host_cpu in 19034 powerpc) 19035 # see comment about AmigaOS4 .so support 19036 lt_prog_compiler_pic='-fPIC' 19037 ;; 19038 m68k) 19039 # FIXME: we need at least 68020 code to build shared libraries, but 19040 # adding the '-m68020' flag to GCC prevents building anything better, 19041 # like '-m68040'. 19042 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 19043 ;; 19044 esac 19045 ;; 19046 19047 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 19048 # PIC is the default for these OSes. 19049 ;; 19050 19051 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 19052 # This hack is so that the source file can tell whether it is being 19053 # built for inclusion in a dll (and should export symbols for example). 19054 # Although the cygwin gcc ignores -fPIC, still need this for old-style 19055 # (--disable-auto-import) libraries 19056 lt_prog_compiler_pic='-DDLL_EXPORT' 19057 case $host_os in 19058 os2*) 19059 lt_prog_compiler_static='$wl-static' 19060 ;; 19061 esac 19062 ;; 19063 19064 darwin* | rhapsody*) 19065 # PIC is the default on this platform 19066 # Common symbols not allowed in MH_DYLIB files 19067 lt_prog_compiler_pic='-fno-common' 19068 ;; 19069 19070 haiku*) 19071 # PIC is the default for Haiku. 19072 # The "-static" flag exists, but is broken. 19073 lt_prog_compiler_static= 19074 ;; 19075 19076 hpux*) 19077 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 19078 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 19079 # sets the default TLS model and affects inlining. 19080 case $host_cpu in 19081 hppa*64*) 19082 # +Z the default 19083 ;; 19084 *) 19085 lt_prog_compiler_pic='-fPIC' 19086 ;; 19087 esac 19088 ;; 19089 19090 interix[3-9]*) 19091 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 19092 # Instead, we relocate shared libraries at runtime. 19093 ;; 19094 19095 msdosdjgpp*) 19096 # Just because we use GCC doesn't mean we suddenly get shared libraries 19097 # on systems that don't support them. 19098 lt_prog_compiler_can_build_shared=no 19099 enable_shared=no 19100 ;; 19101 19102 *nto* | *qnx*) 19103 # QNX uses GNU C++, but need to define -shared option too, otherwise 19104 # it will coredump. 19105 lt_prog_compiler_pic='-fPIC -shared' 19106 ;; 19107 19108 sysv4*MP*) 19109 if test -d /usr/nec; then 19110 lt_prog_compiler_pic=-Kconform_pic 19111 fi 19112 ;; 19113 19114 *) 19115 lt_prog_compiler_pic='-fPIC' 19116 ;; 19117 esac 19118 19119 case $cc_basename in 19120 nvcc*) # Cuda Compiler Driver 2.2 19121 lt_prog_compiler_wl='-Xlinker ' 19122 if test -n "$lt_prog_compiler_pic"; then 19123 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 19124 fi 19125 ;; 19126 esac 19127 else 19128 # PORTME Check for flag to pass linker flags through the system compiler. 19129 case $host_os in 19130 aix*) 19131 lt_prog_compiler_wl='-Wl,' 19132 if test ia64 = "$host_cpu"; then 19133 # AIX 5 now supports IA64 processor 19134 lt_prog_compiler_static='-Bstatic' 19135 else 19136 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 19137 fi 19138 ;; 19139 19140 darwin* | rhapsody*) 19141 # PIC is the default on this platform 19142 # Common symbols not allowed in MH_DYLIB files 19143 lt_prog_compiler_pic='-fno-common' 19144 case $cc_basename in 19145 nagfor*) 19146 # NAG Fortran compiler 19147 lt_prog_compiler_wl='-Wl,-Wl,,' 19148 lt_prog_compiler_pic='-PIC' 19149 lt_prog_compiler_static='-Bstatic' 19150 ;; 19151 esac 19152 ;; 19153 19154 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 19155 # This hack is so that the source file can tell whether it is being 19156 # built for inclusion in a dll (and should export symbols for example). 19157 lt_prog_compiler_pic='-DDLL_EXPORT' 19158 case $host_os in 19159 os2*) 19160 lt_prog_compiler_static='$wl-static' 19161 ;; 19162 esac 19163 ;; 19164 19165 hpux9* | hpux10* | hpux11*) 19166 lt_prog_compiler_wl='-Wl,' 19167 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 19168 # not for PA HP-UX. 19169 case $host_cpu in 19170 hppa*64*|ia64*) 19171 # +Z the default 19172 ;; 19173 *) 19174 lt_prog_compiler_pic='+Z' 19175 ;; 19176 esac 19177 # Is there a better lt_prog_compiler_static that works with the bundled CC? 19178 lt_prog_compiler_static='$wl-a ${wl}archive' 19179 ;; 19180 19181 irix5* | irix6* | nonstopux*) 19182 lt_prog_compiler_wl='-Wl,' 19183 # PIC (with -KPIC) is the default. 19184 lt_prog_compiler_static='-non_shared' 19185 ;; 19186 19187 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 19188 case $cc_basename in 19189 # old Intel for x86_64, which still supported -KPIC. 19190 ecc*) 19191 lt_prog_compiler_wl='-Wl,' 19192 lt_prog_compiler_pic='-KPIC' 19193 lt_prog_compiler_static='-static' 19194 ;; 19195 *flang* | ftn | f18* | f95*) 19196 # Flang compiler. 19197 lt_prog_compiler_wl='-Wl,' 19198 lt_prog_compiler_pic='-fPIC' 19199 lt_prog_compiler_static='-static' 19200 ;; 19201 # icc used to be incompatible with GCC. 19202 # ICC 10 doesn't accept -KPIC any more. 19203 icc* | ifort*) 19204 lt_prog_compiler_wl='-Wl,' 19205 lt_prog_compiler_pic='-fPIC' 19206 lt_prog_compiler_static='-static' 19207 ;; 19208 # Lahey Fortran 8.1. 19209 lf95*) 19210 lt_prog_compiler_wl='-Wl,' 19211 lt_prog_compiler_pic='--shared' 19212 lt_prog_compiler_static='--static' 19213 ;; 19214 nagfor*) 19215 # NAG Fortran compiler 19216 lt_prog_compiler_wl='-Wl,-Wl,,' 19217 lt_prog_compiler_pic='-PIC' 19218 lt_prog_compiler_static='-Bstatic' 19219 ;; 19220 tcc*) 19221 # Fabrice Bellard et al's Tiny C Compiler 19222 lt_prog_compiler_wl='-Wl,' 19223 lt_prog_compiler_pic='-fPIC' 19224 lt_prog_compiler_static='-static' 19225 ;; 19226 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 19227 # Portland Group compilers (*not* the Pentium gcc compiler, 19228 # which looks to be a dead project) 19229 lt_prog_compiler_wl='-Wl,' 19230 lt_prog_compiler_pic='-fpic' 19231 lt_prog_compiler_static='-Bstatic' 19232 ;; 19233 ccc*) 19234 lt_prog_compiler_wl='-Wl,' 19235 # All Alpha code is PIC. 19236 lt_prog_compiler_static='-non_shared' 19237 ;; 19238 xl* | bgxl* | bgf* | mpixl*) 19239 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 19240 lt_prog_compiler_wl='-Wl,' 19241 lt_prog_compiler_pic='-qpic' 19242 lt_prog_compiler_static='-qstaticlink' 19243 ;; 19244 *) 19245 case `$CC -V 2>&1 | $SED 5q` in 19246 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 19247 # Sun Fortran 8.3 passes all unrecognized flags to the linker 19248 lt_prog_compiler_pic='-KPIC' 19249 lt_prog_compiler_static='-Bstatic' 19250 lt_prog_compiler_wl='' 19251 ;; 19252 *Sun\ F* | *Sun*Fortran*) 19253 lt_prog_compiler_pic='-KPIC' 19254 lt_prog_compiler_static='-Bstatic' 19255 lt_prog_compiler_wl='-Qoption ld ' 19256 ;; 19257 *Sun\ C*) 19258 # Sun C 5.9 19259 lt_prog_compiler_pic='-KPIC' 19260 lt_prog_compiler_static='-Bstatic' 19261 lt_prog_compiler_wl='-Wl,' 19262 ;; 19263 *Intel*\ [CF]*Compiler*) 19264 lt_prog_compiler_wl='-Wl,' 19265 lt_prog_compiler_pic='-fPIC' 19266 lt_prog_compiler_static='-static' 19267 ;; 19268 *Portland\ Group*) 19269 lt_prog_compiler_wl='-Wl,' 19270 lt_prog_compiler_pic='-fpic' 19271 lt_prog_compiler_static='-Bstatic' 19272 ;; 19273 esac 19274 ;; 19275 esac 19276 ;; 19277 19278 newsos6) 19279 lt_prog_compiler_pic='-KPIC' 19280 lt_prog_compiler_static='-Bstatic' 19281 ;; 19282 19283 *-mlibc) 19284 lt_prog_compiler_wl='-Wl,' 19285 lt_prog_compiler_pic='-fPIC' 19286 lt_prog_compiler_static='-static' 19287 ;; 19288 19289 *nto* | *qnx*) 19290 # QNX uses GNU C++, but need to define -shared option too, otherwise 19291 # it will coredump. 19292 lt_prog_compiler_pic='-fPIC -shared' 19293 ;; 19294 19295 osf3* | osf4* | osf5*) 19296 lt_prog_compiler_wl='-Wl,' 19297 # All OSF/1 code is PIC. 19298 lt_prog_compiler_static='-non_shared' 19299 ;; 19300 19301 rdos*) 19302 lt_prog_compiler_static='-non_shared' 19303 ;; 19304 19305 serenity*) 19306 ;; 19307 19308 solaris*) 19309 lt_prog_compiler_pic='-KPIC' 19310 lt_prog_compiler_static='-Bstatic' 19311 case $cc_basename in 19312 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 19313 lt_prog_compiler_wl='-Qoption ld ';; 19314 *) 19315 lt_prog_compiler_wl='-Wl,';; 19316 esac 19317 ;; 19318 19319 sunos4*) 19320 lt_prog_compiler_wl='-Qoption ld ' 19321 lt_prog_compiler_pic='-PIC' 19322 lt_prog_compiler_static='-Bstatic' 19323 ;; 19324 19325 sysv4 | sysv4.2uw2* | sysv4.3*) 19326 lt_prog_compiler_wl='-Wl,' 19327 lt_prog_compiler_pic='-KPIC' 19328 lt_prog_compiler_static='-Bstatic' 19329 ;; 19330 19331 sysv4*MP*) 19332 if test -d /usr/nec; then 19333 lt_prog_compiler_pic='-Kconform_pic' 19334 lt_prog_compiler_static='-Bstatic' 19335 fi 19336 ;; 19337 19338 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 19339 lt_prog_compiler_wl='-Wl,' 19340 lt_prog_compiler_pic='-KPIC' 19341 lt_prog_compiler_static='-Bstatic' 19342 ;; 19343 19344 unicos*) 19345 lt_prog_compiler_wl='-Wl,' 19346 lt_prog_compiler_can_build_shared=no 19347 ;; 19348 19349 uts4*) 19350 lt_prog_compiler_pic='-pic' 19351 lt_prog_compiler_static='-Bstatic' 19352 ;; 19353 19354 *) 19355 lt_prog_compiler_can_build_shared=no 19356 ;; 19357 esac 19358 fi 19359 19360 case $host_os in 19361 # For platforms that do not support PIC, -DPIC is meaningless: 19362 *djgpp*) 19363 lt_prog_compiler_pic= 19364 ;; 19365 *) 19366 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 19367 ;; 19368 esac 19369 19370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 19371 printf %s "checking for $compiler option to produce PIC... " >&6; } 19372 if test ${lt_cv_prog_compiler_pic+y} 19373 then : 19374 printf %s "(cached) " >&6 19375 else case e in #( 19376 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 19377 esac 19378 fi 19379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 19380 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 19381 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 19382 19383 # 19384 # Check to make sure the PIC flag actually works. 19385 # 19386 if test -n "$lt_prog_compiler_pic"; then 19387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 19388 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 19389 if test ${lt_cv_prog_compiler_pic_works+y} 19390 then : 19391 printf %s "(cached) " >&6 19392 else case e in #( 19393 e) lt_cv_prog_compiler_pic_works=no 19394 ac_outfile=conftest.$ac_objext 19395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19396 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 19397 # Insert the option either (1) after the last *FLAGS variable, or 19398 # (2) before a word containing "conftest.", or (3) at the end. 19399 # Note that $ac_compile itself does not contain backslashes and begins 19400 # with a dollar sign (not a hyphen), so the echo should work correctly. 19401 # The option is referenced via a variable to avoid confusing sed. 19402 lt_compile=`echo "$ac_compile" | $SED \ 19403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19405 -e 's:$: $lt_compiler_flag:'` 19406 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19407 (eval "$lt_compile" 2>conftest.err) 19408 ac_status=$? 19409 cat conftest.err >&5 19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19411 if (exit $ac_status) && test -s "$ac_outfile"; then 19412 # The compiler can only warn and ignore the option if not recognized 19413 # So say no if there are warnings other than the usual output. 19414 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 19415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19416 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19417 lt_cv_prog_compiler_pic_works=yes 19418 fi 19419 fi 19420 $RM conftest* 19421 ;; 19422 esac 19423 fi 19424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 19425 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 19426 19427 if test yes = "$lt_cv_prog_compiler_pic_works"; then 19428 case $lt_prog_compiler_pic in 19429 "" | " "*) ;; 19430 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 19431 esac 19432 else 19433 lt_prog_compiler_pic= 19434 lt_prog_compiler_can_build_shared=no 19435 fi 19436 19437 fi 19438 19439 19440 19441 19442 19443 19444 19445 19446 19447 19448 19449 # 19450 # Check to make sure the static flag actually works. 19451 # 19452 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 19453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 19454 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 19455 if test ${lt_cv_prog_compiler_static_works+y} 19456 then : 19457 printf %s "(cached) " >&6 19458 else case e in #( 19459 e) lt_cv_prog_compiler_static_works=no 19460 save_LDFLAGS=$LDFLAGS 19461 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 19462 echo "$lt_simple_link_test_code" > conftest.$ac_ext 19463 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19464 # The linker can only warn and ignore the option if not recognized 19465 # So say no if there are warnings 19466 if test -s conftest.err; then 19467 # Append any errors to the config.log. 19468 cat conftest.err 1>&5 19469 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 19470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19471 if diff conftest.exp conftest.er2 >/dev/null; then 19472 lt_cv_prog_compiler_static_works=yes 19473 fi 19474 else 19475 lt_cv_prog_compiler_static_works=yes 19476 fi 19477 fi 19478 $RM -r conftest* 19479 LDFLAGS=$save_LDFLAGS 19480 ;; 19481 esac 19482 fi 19483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 19484 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 19485 19486 if test yes = "$lt_cv_prog_compiler_static_works"; then 19487 : 19488 else 19489 lt_prog_compiler_static= 19490 fi 19491 19492 19493 19494 19495 19496 19497 19498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19499 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19500 if test ${lt_cv_prog_compiler_c_o+y} 19501 then : 19502 printf %s "(cached) " >&6 19503 else case e in #( 19504 e) lt_cv_prog_compiler_c_o=no 19505 $RM -r conftest 2>/dev/null 19506 mkdir conftest 19507 cd conftest 19508 mkdir out 19509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19510 19511 lt_compiler_flag="-o out/conftest2.$ac_objext" 19512 # Insert the option either (1) after the last *FLAGS variable, or 19513 # (2) before a word containing "conftest.", or (3) at the end. 19514 # Note that $ac_compile itself does not contain backslashes and begins 19515 # with a dollar sign (not a hyphen), so the echo should work correctly. 19516 lt_compile=`echo "$ac_compile" | $SED \ 19517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19519 -e 's:$: $lt_compiler_flag:'` 19520 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19521 (eval "$lt_compile" 2>out/conftest.err) 19522 ac_status=$? 19523 cat out/conftest.err >&5 19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19525 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19526 then 19527 # The compiler can only warn and ignore the option if not recognized 19528 # So say no if there are warnings 19529 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19530 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19531 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19532 lt_cv_prog_compiler_c_o=yes 19533 fi 19534 fi 19535 chmod u+w . 2>&5 19536 $RM conftest* 19537 # SGI C++ compiler will create directory out/ii_files/ for 19538 # template instantiation 19539 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19540 $RM out/* && rmdir out 19541 cd .. 19542 $RM -r conftest 19543 $RM conftest* 19544 ;; 19545 esac 19546 fi 19547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 19548 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 19549 19550 19551 19552 19553 19554 19555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19556 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19557 if test ${lt_cv_prog_compiler_c_o+y} 19558 then : 19559 printf %s "(cached) " >&6 19560 else case e in #( 19561 e) lt_cv_prog_compiler_c_o=no 19562 $RM -r conftest 2>/dev/null 19563 mkdir conftest 19564 cd conftest 19565 mkdir out 19566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19567 19568 lt_compiler_flag="-o out/conftest2.$ac_objext" 19569 # Insert the option either (1) after the last *FLAGS variable, or 19570 # (2) before a word containing "conftest.", or (3) at the end. 19571 # Note that $ac_compile itself does not contain backslashes and begins 19572 # with a dollar sign (not a hyphen), so the echo should work correctly. 19573 lt_compile=`echo "$ac_compile" | $SED \ 19574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19576 -e 's:$: $lt_compiler_flag:'` 19577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19578 (eval "$lt_compile" 2>out/conftest.err) 19579 ac_status=$? 19580 cat out/conftest.err >&5 19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19582 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19583 then 19584 # The compiler can only warn and ignore the option if not recognized 19585 # So say no if there are warnings 19586 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19587 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19588 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19589 lt_cv_prog_compiler_c_o=yes 19590 fi 19591 fi 19592 chmod u+w . 2>&5 19593 $RM conftest* 19594 # SGI C++ compiler will create directory out/ii_files/ for 19595 # template instantiation 19596 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19597 $RM out/* && rmdir out 19598 cd .. 19599 $RM -r conftest 19600 $RM conftest* 19601 ;; 19602 esac 19603 fi 19604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 19605 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 19606 19607 19608 19609 19610 hard_links=nottested 19611 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 19612 # do not overwrite the value of need_locks provided by the user 19613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 19614 printf %s "checking if we can lock with hard links... " >&6; } 19615 hard_links=yes 19616 $RM conftest* 19617 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19618 touch conftest.a 19619 ln conftest.a conftest.b 2>&5 || hard_links=no 19620 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 19622 printf "%s\n" "$hard_links" >&6; } 19623 if test no = "$hard_links"; then 19624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 19625 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 19626 need_locks=warn 19627 fi 19628 else 19629 need_locks=no 19630 fi 19631 19632 19633 19634 19635 19636 19637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19638 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 19639 19640 runpath_var= 19641 allow_undefined_flag= 19642 always_export_symbols=no 19643 archive_cmds= 19644 archive_expsym_cmds= 19645 compiler_needs_object=no 19646 enable_shared_with_static_runtimes=no 19647 export_dynamic_flag_spec= 19648 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19649 hardcode_automatic=no 19650 hardcode_direct=no 19651 hardcode_direct_absolute=no 19652 hardcode_libdir_flag_spec= 19653 hardcode_libdir_separator= 19654 hardcode_minus_L=no 19655 hardcode_shlibpath_var=unsupported 19656 inherit_rpath=no 19657 link_all_deplibs=unknown 19658 module_cmds= 19659 module_expsym_cmds= 19660 old_archive_from_new_cmds= 19661 old_archive_from_expsyms_cmds= 19662 thread_safe_flag_spec= 19663 whole_archive_flag_spec= 19664 # include_expsyms should be a list of space-separated symbols to be *always* 19665 # included in the symbol list 19666 include_expsyms= 19667 # exclude_expsyms can be an extended regexp of symbols to exclude 19668 # it will be wrapped by ' (' and ')$', so one must not match beginning or 19669 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 19670 # as well as any symbol that contains 'd'. 19671 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 19672 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 19673 # platforms (ab)use it in PIC code, but their linkers get confused if 19674 # the symbol is explicitly referenced. Since portable code cannot 19675 # rely on this symbol name, it's probably fine to never include it in 19676 # preloaded symbol tables. 19677 # Exclude shared library initialization/finalization symbols. 19678 extract_expsyms_cmds= 19679 19680 case $host_os in 19681 cygwin* | mingw* | windows* | pw32* | cegcc*) 19682 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 19683 # When not using gcc, we currently assume that we are using 19684 # Microsoft Visual C++ or Intel C++ Compiler. 19685 if test yes != "$GCC"; then 19686 with_gnu_ld=no 19687 fi 19688 ;; 19689 interix*) 19690 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 19691 with_gnu_ld=yes 19692 ;; 19693 esac 19694 19695 ld_shlibs=yes 19696 19697 # On some targets, GNU ld is compatible enough with the native linker 19698 # that we're better off using the native interface for both. 19699 lt_use_gnu_ld_interface=no 19700 if test yes = "$with_gnu_ld"; then 19701 case $host_os in 19702 aix*) 19703 # The AIX port of GNU ld has always aspired to compatibility 19704 # with the native linker. However, as the warning in the GNU ld 19705 # block says, versions before 2.19.5* couldn't really create working 19706 # shared libraries, regardless of the interface used. 19707 case `$LD -v 2>&1` in 19708 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 19709 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 19710 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 19711 *) 19712 lt_use_gnu_ld_interface=yes 19713 ;; 19714 esac 19715 ;; 19716 *) 19717 lt_use_gnu_ld_interface=yes 19718 ;; 19719 esac 19720 fi 19721 19722 if test yes = "$lt_use_gnu_ld_interface"; then 19723 # If archive_cmds runs LD, not CC, wlarc should be empty 19724 wlarc='$wl' 19725 19726 # Set some defaults for GNU ld with shared library support. These 19727 # are reset later if shared libraries are not supported. Putting them 19728 # here allows them to be overridden if necessary. 19729 runpath_var=LD_RUN_PATH 19730 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19731 export_dynamic_flag_spec='$wl--export-dynamic' 19732 # ancient GNU ld didn't support --whole-archive et. al. 19733 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 19734 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 19735 else 19736 whole_archive_flag_spec= 19737 fi 19738 supports_anon_versioning=no 19739 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 19740 *GNU\ gold*) supports_anon_versioning=yes ;; 19741 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 19742 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 19743 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 19744 *\ 2.11.*) ;; # other 2.11 versions 19745 *) supports_anon_versioning=yes ;; 19746 esac 19747 19748 # See if GNU ld supports shared libraries. 19749 case $host_os in 19750 aix[3-9]*) 19751 # On AIX/PPC, the GNU linker is very broken 19752 if test ia64 != "$host_cpu"; then 19753 ld_shlibs=no 19754 cat <<_LT_EOF 1>&2 19755 19756 *** Warning: the GNU linker, at least up to release 2.19, is reported 19757 *** to be unable to reliably create shared libraries on AIX. 19758 *** Therefore, libtool is disabling shared libraries support. If you 19759 *** really care for shared libraries, you may want to install binutils 19760 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 19761 *** You will then need to restart the configuration process. 19762 19763 _LT_EOF 19764 fi 19765 ;; 19766 19767 amigaos*) 19768 case $host_cpu in 19769 powerpc) 19770 # see comment about AmigaOS4 .so support 19771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19772 archive_expsym_cmds='' 19773 ;; 19774 m68k) 19775 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)' 19776 hardcode_libdir_flag_spec='-L$libdir' 19777 hardcode_minus_L=yes 19778 ;; 19779 esac 19780 ;; 19781 19782 beos*) 19783 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19784 allow_undefined_flag=unsupported 19785 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 19786 # support --undefined. This deserves some investigation. FIXME 19787 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19788 else 19789 ld_shlibs=no 19790 fi 19791 ;; 19792 19793 cygwin* | mingw* | windows* | pw32* | cegcc*) 19794 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 19795 # as there is no search path for DLLs. 19796 hardcode_libdir_flag_spec='-L$libdir' 19797 export_dynamic_flag_spec='$wl--export-all-symbols' 19798 allow_undefined_flag=unsupported 19799 always_export_symbols=no 19800 enable_shared_with_static_runtimes=yes 19801 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' 19802 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 19803 file_list_spec='@' 19804 19805 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 19806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19807 # If the export-symbols file already is a .def file, use it as 19808 # is; otherwise, prepend EXPORTS... 19809 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 19810 cp $export_symbols $output_objdir/$soname.def; 19811 else 19812 echo EXPORTS > $output_objdir/$soname.def; 19813 cat $export_symbols >> $output_objdir/$soname.def; 19814 fi~ 19815 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19816 else 19817 ld_shlibs=no 19818 fi 19819 ;; 19820 19821 haiku*) 19822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19823 link_all_deplibs=no 19824 ;; 19825 19826 os2*) 19827 hardcode_libdir_flag_spec='-L$libdir' 19828 hardcode_minus_L=yes 19829 allow_undefined_flag=unsupported 19830 shrext_cmds=.dll 19831 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19832 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19833 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19834 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19835 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 19836 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19837 emximp -o $lib $output_objdir/$libname.def' 19838 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19839 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19840 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19841 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19842 prefix_cmds="$SED"~ 19843 if test EXPORTS = "`$SED 1q $export_symbols`"; then 19844 prefix_cmds="$prefix_cmds -e 1d"; 19845 fi~ 19846 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 19847 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 19848 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19849 emximp -o $lib $output_objdir/$libname.def' 19850 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 19851 enable_shared_with_static_runtimes=yes 19852 file_list_spec='@' 19853 ;; 19854 19855 interix[3-9]*) 19856 hardcode_direct=no 19857 hardcode_shlibpath_var=no 19858 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 19859 export_dynamic_flag_spec='$wl-E' 19860 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 19861 # Instead, shared libraries are loaded at an image base (0x10000000 by 19862 # default) and relocated if they conflict, which is a slow very memory 19863 # consuming and fragmenting process. To avoid this, we pick a random, 19864 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 19865 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 19866 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 19867 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' 19868 ;; 19869 19870 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 19871 tmp_diet=no 19872 if test linux-dietlibc = "$host_os"; then 19873 case $cc_basename in 19874 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 19875 esac 19876 fi 19877 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 19878 && test no = "$tmp_diet" 19879 then 19880 tmp_addflag=' $pic_flag' 19881 tmp_sharedflag='-shared' 19882 case $cc_basename,$host_cpu in 19883 pgcc*) # Portland Group C compiler 19884 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' 19885 tmp_addflag=' $pic_flag' 19886 ;; 19887 pgf77* | pgf90* | pgf95* | pgfortran*) 19888 # Portland Group f77 and f90 compilers 19889 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' 19890 tmp_addflag=' $pic_flag -Mnomain' ;; 19891 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 19892 tmp_addflag=' -i_dynamic' ;; 19893 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 19894 tmp_addflag=' -i_dynamic -nofor_main' ;; 19895 ifc* | ifort*) # Intel Fortran compiler 19896 tmp_addflag=' -nofor_main' ;; 19897 lf95*) # Lahey Fortran 8.1 19898 whole_archive_flag_spec= 19899 tmp_sharedflag='--shared' ;; 19900 nagfor*) # NAGFOR 5.3 19901 tmp_sharedflag='-Wl,-shared' ;; 19902 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 19903 tmp_sharedflag='-qmkshrobj' 19904 tmp_addflag= ;; 19905 nvcc*) # Cuda Compiler Driver 2.2 19906 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' 19907 compiler_needs_object=yes 19908 ;; 19909 esac 19910 case `$CC -V 2>&1 | $SED 5q` in 19911 *Sun\ C*) # Sun C 5.9 19912 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' 19913 compiler_needs_object=yes 19914 tmp_sharedflag='-G' ;; 19915 *Sun\ F*) # Sun Fortran 8.3 19916 tmp_sharedflag='-G' ;; 19917 esac 19918 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19919 19920 if test yes = "$supports_anon_versioning"; then 19921 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 19922 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19923 echo "local: *; };" >> $output_objdir/$libname.ver~ 19924 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 19925 fi 19926 19927 case $cc_basename in 19928 tcc*) 19929 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19930 export_dynamic_flag_spec='-rdynamic' 19931 ;; 19932 xlf* | bgf* | bgxlf* | mpixlf*) 19933 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 19934 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 19935 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19936 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 19937 if test yes = "$supports_anon_versioning"; then 19938 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 19939 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19940 echo "local: *; };" >> $output_objdir/$libname.ver~ 19941 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 19942 fi 19943 ;; 19944 esac 19945 else 19946 ld_shlibs=no 19947 fi 19948 ;; 19949 19950 *-mlibc) 19951 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19952 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19953 ;; 19954 19955 netbsd* | netbsdelf*-gnu) 19956 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19957 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 19958 wlarc= 19959 else 19960 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19961 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19962 fi 19963 ;; 19964 19965 solaris*) 19966 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 19967 ld_shlibs=no 19968 cat <<_LT_EOF 1>&2 19969 19970 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 19971 *** create shared libraries on Solaris systems. Therefore, libtool 19972 *** is disabling shared libraries support. We urge you to upgrade GNU 19973 *** binutils to release 2.9.1 or newer. Another option is to modify 19974 *** your PATH or compiler configuration so that the native linker is 19975 *** used, and then restart. 19976 19977 _LT_EOF 19978 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19979 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19980 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19981 else 19982 ld_shlibs=no 19983 fi 19984 ;; 19985 19986 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 19987 case `$LD -v 2>&1` in 19988 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 19989 ld_shlibs=no 19990 cat <<_LT_EOF 1>&2 19991 19992 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 19993 *** reliably create shared libraries on SCO systems. Therefore, libtool 19994 *** is disabling shared libraries support. We urge you to upgrade GNU 19995 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 19996 *** your PATH or compiler configuration so that the native linker is 19997 *** used, and then restart. 19998 19999 _LT_EOF 20000 ;; 20001 *) 20002 # For security reasons, it is highly recommended that you always 20003 # use absolute paths for naming shared libraries, and exclude the 20004 # DT_RUNPATH tag from executables and libraries. But doing so 20005 # requires that you compile everything twice, which is a pain. 20006 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 20007 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20009 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 20010 else 20011 ld_shlibs=no 20012 fi 20013 ;; 20014 esac 20015 ;; 20016 20017 sunos4*) 20018 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20019 wlarc= 20020 hardcode_direct=yes 20021 hardcode_shlibpath_var=no 20022 ;; 20023 20024 *) 20025 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 20026 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20027 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 20028 else 20029 ld_shlibs=no 20030 fi 20031 ;; 20032 esac 20033 20034 if test no = "$ld_shlibs"; then 20035 runpath_var= 20036 hardcode_libdir_flag_spec= 20037 export_dynamic_flag_spec= 20038 whole_archive_flag_spec= 20039 fi 20040 else 20041 # PORTME fill in a description of your system's linker (not GNU ld) 20042 case $host_os in 20043 aix3*) 20044 allow_undefined_flag=unsupported 20045 always_export_symbols=yes 20046 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' 20047 # Note: this linker hardcodes the directories in LIBPATH if there 20048 # are no directories specified by -L. 20049 hardcode_minus_L=yes 20050 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 20051 # Neither direct hardcoding nor static linking is supported with a 20052 # broken collect2. 20053 hardcode_direct=unsupported 20054 fi 20055 ;; 20056 20057 aix[4-9]*) 20058 if test ia64 = "$host_cpu"; then 20059 # On IA64, the linker does run time linking by default, so we don't 20060 # have to do anything special. 20061 aix_use_runtimelinking=no 20062 exp_sym_flag='-Bexport' 20063 no_entry_flag= 20064 else 20065 # If we're using GNU nm, then we don't want the "-C" option. 20066 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 20067 # Without the "-l" option, or with the "-B" option, AIX nm treats 20068 # weak defined symbols like other global defined symbols, whereas 20069 # GNU nm marks them as "W". 20070 # While the 'weak' keyword is ignored in the Export File, we need 20071 # it in the Import File for the 'aix-soname' feature, so we have 20072 # to replace the "-B" option with "-P" for AIX nm. 20073 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 20074 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' 20075 else 20076 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' 20077 fi 20078 aix_use_runtimelinking=no 20079 20080 # Test if we are trying to use run time linking or normal 20081 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 20082 # have runtime linking enabled, and use it for executables. 20083 # For shared libraries, we enable/disable runtime linking 20084 # depending on the kind of the shared library created - 20085 # when "with_aix_soname,aix_use_runtimelinking" is: 20086 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 20087 # "aix,yes" lib.so shared, rtl:yes, for executables 20088 # lib.a static archive 20089 # "both,no" lib.so.V(shr.o) shared, rtl:yes 20090 # lib.a(lib.so.V) shared, rtl:no, for executables 20091 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 20092 # lib.a(lib.so.V) shared, rtl:no 20093 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 20094 # lib.a static archive 20095 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 20096 for ld_flag in $LDFLAGS; do 20097 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 20098 aix_use_runtimelinking=yes 20099 break 20100 fi 20101 done 20102 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 20103 # With aix-soname=svr4, we create the lib.so.V shared archives only, 20104 # so we don't have lib.a shared libs to link our executables. 20105 # We have to force runtime linking in this case. 20106 aix_use_runtimelinking=yes 20107 LDFLAGS="$LDFLAGS -Wl,-brtl" 20108 fi 20109 ;; 20110 esac 20111 20112 exp_sym_flag='-bexport' 20113 no_entry_flag='-bnoentry' 20114 fi 20115 20116 # When large executables or shared objects are built, AIX ld can 20117 # have problems creating the table of contents. If linking a library 20118 # or program results in "error TOC overflow" add -mminimal-toc to 20119 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 20120 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 20121 20122 archive_cmds='' 20123 hardcode_direct=yes 20124 hardcode_direct_absolute=yes 20125 hardcode_libdir_separator=':' 20126 link_all_deplibs=yes 20127 file_list_spec='$wl-f,' 20128 case $with_aix_soname,$aix_use_runtimelinking in 20129 aix,*) ;; # traditional, no import file 20130 svr4,* | *,yes) # use import file 20131 # The Import File defines what to hardcode. 20132 hardcode_direct=no 20133 hardcode_direct_absolute=no 20134 ;; 20135 esac 20136 20137 if test yes = "$GCC"; then 20138 case $host_os in aix4.[012]|aix4.[012].*) 20139 # We only want to do this on AIX 4.2 and lower, the check 20140 # below for broken collect2 doesn't work under 4.3+ 20141 collect2name=`$CC -print-prog-name=collect2` 20142 if test -f "$collect2name" && 20143 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 20144 then 20145 # We have reworked collect2 20146 : 20147 else 20148 # We have old collect2 20149 hardcode_direct=unsupported 20150 # It fails to find uninstalled libraries when the uninstalled 20151 # path is not listed in the libpath. Setting hardcode_minus_L 20152 # to unsupported forces relinking 20153 hardcode_minus_L=yes 20154 hardcode_libdir_flag_spec='-L$libdir' 20155 hardcode_libdir_separator= 20156 fi 20157 ;; 20158 esac 20159 shared_flag='-shared' 20160 if test yes = "$aix_use_runtimelinking"; then 20161 shared_flag="$shared_flag "'$wl-G' 20162 fi 20163 # Need to ensure runtime linking is disabled for the traditional 20164 # shared library, or the linker may eventually find shared libraries 20165 # /with/ Import File - we do not want to mix them. 20166 shared_flag_aix='-shared' 20167 shared_flag_svr4='-shared $wl-G' 20168 else 20169 # not using gcc 20170 if test ia64 = "$host_cpu"; then 20171 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 20172 # chokes on -Wl,-G. The following line is correct: 20173 shared_flag='-G' 20174 else 20175 if test yes = "$aix_use_runtimelinking"; then 20176 shared_flag='$wl-G' 20177 else 20178 shared_flag='$wl-bM:SRE' 20179 fi 20180 shared_flag_aix='$wl-bM:SRE' 20181 shared_flag_svr4='$wl-G' 20182 fi 20183 fi 20184 20185 export_dynamic_flag_spec='$wl-bexpall' 20186 # It seems that -bexpall does not export symbols beginning with 20187 # underscore (_), so it is better to generate a list of symbols to export. 20188 always_export_symbols=yes 20189 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 20190 # Warning - without using the other runtime loading flags (-brtl), 20191 # -berok will link without error, but may produce a broken library. 20192 allow_undefined_flag='-berok' 20193 # Determine the default libpath from the value encoded in an 20194 # empty executable. 20195 if test set = "${lt_cv_aix_libpath+set}"; then 20196 aix_libpath=$lt_cv_aix_libpath 20197 else 20198 if test ${lt_cv_aix_libpath_+y} 20199 then : 20200 printf %s "(cached) " >&6 20201 else case e in #( 20202 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20203 /* end confdefs.h. */ 20204 20205 int 20206 main (void) 20207 { 20208 20209 ; 20210 return 0; 20211 } 20212 _ACEOF 20213 if ac_fn_c_try_link "$LINENO" 20214 then : 20215 20216 lt_aix_libpath_sed=' 20217 /Import File Strings/,/^$/ { 20218 /^0/ { 20219 s/^0 *\([^ ]*\) *$/\1/ 20220 p 20221 } 20222 }' 20223 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20224 # Check for a 64-bit object if we didn't find anything. 20225 if test -z "$lt_cv_aix_libpath_"; then 20226 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20227 fi 20228 fi 20229 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20230 conftest$ac_exeext conftest.$ac_ext 20231 if test -z "$lt_cv_aix_libpath_"; then 20232 lt_cv_aix_libpath_=/usr/lib:/lib 20233 fi 20234 ;; 20235 esac 20236 fi 20237 20238 aix_libpath=$lt_cv_aix_libpath_ 20239 fi 20240 20241 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 20242 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 20243 else 20244 if test ia64 = "$host_cpu"; then 20245 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 20246 allow_undefined_flag="-z nodefs" 20247 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" 20248 else 20249 # Determine the default libpath from the value encoded in an 20250 # empty executable. 20251 if test set = "${lt_cv_aix_libpath+set}"; then 20252 aix_libpath=$lt_cv_aix_libpath 20253 else 20254 if test ${lt_cv_aix_libpath_+y} 20255 then : 20256 printf %s "(cached) " >&6 20257 else case e in #( 20258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20259 /* end confdefs.h. */ 20260 20261 int 20262 main (void) 20263 { 20264 20265 ; 20266 return 0; 20267 } 20268 _ACEOF 20269 if ac_fn_c_try_link "$LINENO" 20270 then : 20271 20272 lt_aix_libpath_sed=' 20273 /Import File Strings/,/^$/ { 20274 /^0/ { 20275 s/^0 *\([^ ]*\) *$/\1/ 20276 p 20277 } 20278 }' 20279 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20280 # Check for a 64-bit object if we didn't find anything. 20281 if test -z "$lt_cv_aix_libpath_"; then 20282 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20283 fi 20284 fi 20285 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20286 conftest$ac_exeext conftest.$ac_ext 20287 if test -z "$lt_cv_aix_libpath_"; then 20288 lt_cv_aix_libpath_=/usr/lib:/lib 20289 fi 20290 ;; 20291 esac 20292 fi 20293 20294 aix_libpath=$lt_cv_aix_libpath_ 20295 fi 20296 20297 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 20298 # Warning - without using the other run time loading flags, 20299 # -berok will link without error, but may produce a broken library. 20300 no_undefined_flag=' $wl-bernotok' 20301 allow_undefined_flag=' $wl-berok' 20302 if test yes = "$with_gnu_ld"; then 20303 # We only use this code for GNU lds that support --whole-archive. 20304 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 20305 else 20306 # Exported symbols can be pulled into shared objects from archives 20307 whole_archive_flag_spec='$convenience' 20308 fi 20309 archive_cmds_need_lc=yes 20310 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 20311 # -brtl affects multiple linker settings, -berok does not and is overridden later 20312 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 20313 if test svr4 != "$with_aix_soname"; then 20314 # This is similar to how AIX traditionally builds its shared libraries. 20315 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' 20316 fi 20317 if test aix != "$with_aix_soname"; then 20318 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' 20319 else 20320 # used by -dlpreopen to get the symbols 20321 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 20322 fi 20323 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 20324 fi 20325 fi 20326 ;; 20327 20328 amigaos*) 20329 case $host_cpu in 20330 powerpc) 20331 # see comment about AmigaOS4 .so support 20332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20333 archive_expsym_cmds='' 20334 ;; 20335 m68k) 20336 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)' 20337 hardcode_libdir_flag_spec='-L$libdir' 20338 hardcode_minus_L=yes 20339 ;; 20340 esac 20341 ;; 20342 20343 bsdi[45]*) 20344 export_dynamic_flag_spec=-rdynamic 20345 ;; 20346 20347 cygwin* | mingw* | windows* | pw32* | cegcc*) 20348 # When not using gcc, we currently assume that we are using 20349 # Microsoft Visual C++ or Intel C++ Compiler. 20350 # hardcode_libdir_flag_spec is actually meaningless, as there is 20351 # no search path for DLLs. 20352 case $cc_basename in 20353 cl* | icl*) 20354 # Native MSVC or ICC 20355 hardcode_libdir_flag_spec=' ' 20356 allow_undefined_flag=unsupported 20357 always_export_symbols=yes 20358 file_list_spec='@' 20359 # Tell ltmain to make .lib files, not .a files. 20360 libext=lib 20361 # Tell ltmain to make .dll files, not .so files. 20362 shrext_cmds=.dll 20363 # FIXME: Setting linknames here is a bad hack. 20364 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 20365 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 20366 cp "$export_symbols" "$output_objdir/$soname.def"; 20367 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 20368 else 20369 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 20370 fi~ 20371 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 20372 linknames=' 20373 # The linker will not automatically build a static lib if we build a DLL. 20374 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 20375 enable_shared_with_static_runtimes=yes 20376 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 20377 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 20378 # Don't use ranlib 20379 old_postinstall_cmds='chmod 644 $oldlib' 20380 postlink_cmds='lt_outputfile="@OUTPUT@"~ 20381 lt_tool_outputfile="@TOOL_OUTPUT@"~ 20382 case $lt_outputfile in 20383 *.exe|*.EXE) ;; 20384 *) 20385 lt_outputfile=$lt_outputfile.exe 20386 lt_tool_outputfile=$lt_tool_outputfile.exe 20387 ;; 20388 esac~ 20389 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 20390 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 20391 $RM "$lt_outputfile.manifest"; 20392 fi' 20393 ;; 20394 *) 20395 # Assume MSVC and ICC wrapper 20396 hardcode_libdir_flag_spec=' ' 20397 allow_undefined_flag=unsupported 20398 # Tell ltmain to make .lib files, not .a files. 20399 libext=lib 20400 # Tell ltmain to make .dll files, not .so files. 20401 shrext_cmds=.dll 20402 # FIXME: Setting linknames here is a bad hack. 20403 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 20404 # The linker will automatically build a .lib file if we build a DLL. 20405 old_archive_from_new_cmds='true' 20406 # FIXME: Should let the user specify the lib program. 20407 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 20408 enable_shared_with_static_runtimes=yes 20409 ;; 20410 esac 20411 ;; 20412 20413 darwin* | rhapsody*) 20414 20415 20416 archive_cmds_need_lc=no 20417 hardcode_direct=no 20418 hardcode_automatic=yes 20419 hardcode_shlibpath_var=unsupported 20420 if test yes = "$lt_cv_ld_force_load"; then 20421 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\"`' 20422 20423 else 20424 whole_archive_flag_spec='' 20425 fi 20426 link_all_deplibs=yes 20427 allow_undefined_flag=$_lt_dar_allow_undefined 20428 case $cc_basename in 20429 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 20430 *) _lt_dar_can_shared=$GCC ;; 20431 esac 20432 if test yes = "$_lt_dar_can_shared"; then 20433 output_verbose_link_cmd=func_echo_all 20434 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 20435 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 20436 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" 20437 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" 20438 20439 else 20440 ld_shlibs=no 20441 fi 20442 20443 ;; 20444 20445 dgux*) 20446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20447 hardcode_libdir_flag_spec='-L$libdir' 20448 hardcode_shlibpath_var=no 20449 ;; 20450 20451 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 20452 # support. Future versions do this automatically, but an explicit c++rt0.o 20453 # does not break anything, and helps significantly (at the cost of a little 20454 # extra space). 20455 freebsd2.2*) 20456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 20457 hardcode_libdir_flag_spec='-R$libdir' 20458 hardcode_direct=yes 20459 hardcode_shlibpath_var=no 20460 ;; 20461 20462 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 20463 freebsd2.*) 20464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20465 hardcode_direct=yes 20466 hardcode_minus_L=yes 20467 hardcode_shlibpath_var=no 20468 ;; 20469 20470 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 20471 freebsd* | dragonfly* | midnightbsd*) 20472 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20473 hardcode_libdir_flag_spec='-R$libdir' 20474 hardcode_direct=yes 20475 hardcode_shlibpath_var=no 20476 ;; 20477 20478 hpux9*) 20479 if test yes = "$GCC"; then 20480 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' 20481 else 20482 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' 20483 fi 20484 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 20485 hardcode_libdir_separator=: 20486 hardcode_direct=yes 20487 20488 # hardcode_minus_L: Not really in the search PATH, 20489 # but as the default location of the library. 20490 hardcode_minus_L=yes 20491 export_dynamic_flag_spec='$wl-E' 20492 ;; 20493 20494 hpux10*) 20495 if test yes,no = "$GCC,$with_gnu_ld"; then 20496 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20497 else 20498 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 20499 fi 20500 if test no = "$with_gnu_ld"; then 20501 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 20502 hardcode_libdir_separator=: 20503 hardcode_direct=yes 20504 hardcode_direct_absolute=yes 20505 export_dynamic_flag_spec='$wl-E' 20506 # hardcode_minus_L: Not really in the search PATH, 20507 # but as the default location of the library. 20508 hardcode_minus_L=yes 20509 fi 20510 ;; 20511 20512 hpux11*) 20513 if test yes,no = "$GCC,$with_gnu_ld"; then 20514 case $host_cpu in 20515 hppa*64*) 20516 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 20517 ;; 20518 ia64*) 20519 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20520 ;; 20521 *) 20522 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20523 ;; 20524 esac 20525 else 20526 case $host_cpu in 20527 hppa*64*) 20528 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 20529 ;; 20530 ia64*) 20531 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20532 ;; 20533 *) 20534 20535 # Older versions of the 11.00 compiler do not understand -b yet 20536 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 20537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 20538 printf %s "checking if $CC understands -b... " >&6; } 20539 if test ${lt_cv_prog_compiler__b+y} 20540 then : 20541 printf %s "(cached) " >&6 20542 else case e in #( 20543 e) lt_cv_prog_compiler__b=no 20544 save_LDFLAGS=$LDFLAGS 20545 LDFLAGS="$LDFLAGS -b" 20546 echo "$lt_simple_link_test_code" > conftest.$ac_ext 20547 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 20548 # The linker can only warn and ignore the option if not recognized 20549 # So say no if there are warnings 20550 if test -s conftest.err; then 20551 # Append any errors to the config.log. 20552 cat conftest.err 1>&5 20553 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 20554 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 20555 if diff conftest.exp conftest.er2 >/dev/null; then 20556 lt_cv_prog_compiler__b=yes 20557 fi 20558 else 20559 lt_cv_prog_compiler__b=yes 20560 fi 20561 fi 20562 $RM -r conftest* 20563 LDFLAGS=$save_LDFLAGS 20564 ;; 20565 esac 20566 fi 20567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 20568 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 20569 20570 if test yes = "$lt_cv_prog_compiler__b"; then 20571 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20572 else 20573 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 20574 fi 20575 20576 ;; 20577 esac 20578 fi 20579 if test no = "$with_gnu_ld"; then 20580 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 20581 hardcode_libdir_separator=: 20582 20583 case $host_cpu in 20584 hppa*64*|ia64*) 20585 hardcode_direct=no 20586 hardcode_shlibpath_var=no 20587 ;; 20588 *) 20589 hardcode_direct=yes 20590 hardcode_direct_absolute=yes 20591 export_dynamic_flag_spec='$wl-E' 20592 20593 # hardcode_minus_L: Not really in the search PATH, 20594 # but as the default location of the library. 20595 hardcode_minus_L=yes 20596 ;; 20597 esac 20598 fi 20599 ;; 20600 20601 irix5* | irix6* | nonstopux*) 20602 if test yes = "$GCC"; then 20603 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' 20604 # Try to use the -exported_symbol ld option, if it does not 20605 # work, assume that -exports_file does not work either and 20606 # implicitly export all symbols. 20607 # This should be the same for all languages, so no per-tag cache variable. 20608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 20609 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 20610 if test ${lt_cv_irix_exported_symbol+y} 20611 then : 20612 printf %s "(cached) " >&6 20613 else case e in #( 20614 e) save_LDFLAGS=$LDFLAGS 20615 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 20616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20617 /* end confdefs.h. */ 20618 int foo (void) { return 0; } 20619 _ACEOF 20620 if ac_fn_c_try_link "$LINENO" 20621 then : 20622 lt_cv_irix_exported_symbol=yes 20623 else case e in #( 20624 e) lt_cv_irix_exported_symbol=no ;; 20625 esac 20626 fi 20627 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20628 conftest$ac_exeext conftest.$ac_ext 20629 LDFLAGS=$save_LDFLAGS ;; 20630 esac 20631 fi 20632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 20633 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 20634 if test yes = "$lt_cv_irix_exported_symbol"; then 20635 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' 20636 fi 20637 else 20638 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' 20639 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' 20640 fi 20641 archive_cmds_need_lc='no' 20642 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20643 hardcode_libdir_separator=: 20644 inherit_rpath=yes 20645 link_all_deplibs=yes 20646 ;; 20647 20648 linux*) 20649 case $cc_basename in 20650 tcc*) 20651 # Fabrice Bellard et al's Tiny C Compiler 20652 ld_shlibs=yes 20653 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20654 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20655 ;; 20656 esac 20657 ;; 20658 20659 *-mlibc) 20660 ;; 20661 20662 netbsd* | netbsdelf*-gnu) 20663 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 20665 else 20666 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 20667 fi 20668 hardcode_libdir_flag_spec='-R$libdir' 20669 hardcode_direct=yes 20670 hardcode_shlibpath_var=no 20671 ;; 20672 20673 newsos6) 20674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20675 hardcode_direct=yes 20676 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20677 hardcode_libdir_separator=: 20678 hardcode_shlibpath_var=no 20679 ;; 20680 20681 *nto* | *qnx*) 20682 ;; 20683 20684 openbsd*) 20685 if test -f /usr/libexec/ld.so; then 20686 hardcode_direct=yes 20687 hardcode_shlibpath_var=no 20688 hardcode_direct_absolute=yes 20689 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 20690 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20691 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 20692 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 20693 export_dynamic_flag_spec='$wl-E' 20694 else 20695 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20696 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 20697 fi 20698 else 20699 ld_shlibs=no 20700 fi 20701 ;; 20702 20703 os2*) 20704 hardcode_libdir_flag_spec='-L$libdir' 20705 hardcode_minus_L=yes 20706 allow_undefined_flag=unsupported 20707 shrext_cmds=.dll 20708 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20709 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20710 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20711 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20712 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 20713 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20714 emximp -o $lib $output_objdir/$libname.def' 20715 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20716 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20717 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20718 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20719 prefix_cmds="$SED"~ 20720 if test EXPORTS = "`$SED 1q $export_symbols`"; then 20721 prefix_cmds="$prefix_cmds -e 1d"; 20722 fi~ 20723 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 20724 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 20725 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20726 emximp -o $lib $output_objdir/$libname.def' 20727 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 20728 enable_shared_with_static_runtimes=yes 20729 file_list_spec='@' 20730 ;; 20731 20732 osf3*) 20733 if test yes = "$GCC"; then 20734 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 20735 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' 20736 else 20737 allow_undefined_flag=' -expect_unresolved \*' 20738 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' 20739 fi 20740 archive_cmds_need_lc='no' 20741 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20742 hardcode_libdir_separator=: 20743 ;; 20744 20745 osf4* | osf5*) # as osf3* with the addition of -msym flag 20746 if test yes = "$GCC"; then 20747 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 20748 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' 20749 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20750 else 20751 allow_undefined_flag=' -expect_unresolved \*' 20752 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' 20753 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~ 20754 $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' 20755 20756 # Both c and cxx compiler support -rpath directly 20757 hardcode_libdir_flag_spec='-rpath $libdir' 20758 fi 20759 archive_cmds_need_lc='no' 20760 hardcode_libdir_separator=: 20761 ;; 20762 20763 serenity*) 20764 ;; 20765 20766 solaris*) 20767 no_undefined_flag=' -z defs' 20768 if test yes = "$GCC"; then 20769 wlarc='$wl' 20770 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 20771 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20772 $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' 20773 else 20774 case `$CC -V 2>&1` in 20775 *"Compilers 5.0"*) 20776 wlarc='' 20777 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 20778 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20779 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 20780 ;; 20781 *) 20782 wlarc='$wl' 20783 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 20784 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20785 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 20786 ;; 20787 esac 20788 fi 20789 hardcode_libdir_flag_spec='-R$libdir' 20790 hardcode_shlibpath_var=no 20791 case $host_os in 20792 solaris2.[0-5] | solaris2.[0-5].*) ;; 20793 *) 20794 # The compiler driver will combine and reorder linker options, 20795 # but understands '-z linker_flag'. GCC discards it without '$wl', 20796 # but is careful enough not to reorder. 20797 # Supported since Solaris 2.6 (maybe 2.5.1?) 20798 if test yes = "$GCC"; then 20799 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 20800 else 20801 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 20802 fi 20803 ;; 20804 esac 20805 link_all_deplibs=yes 20806 ;; 20807 20808 sunos4*) 20809 if test sequent = "$host_vendor"; then 20810 # Use $CC to link under sequent, because it throws in some extra .o 20811 # files that make .init and .fini sections work. 20812 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 20813 else 20814 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 20815 fi 20816 hardcode_libdir_flag_spec='-L$libdir' 20817 hardcode_direct=yes 20818 hardcode_minus_L=yes 20819 hardcode_shlibpath_var=no 20820 ;; 20821 20822 sysv4) 20823 case $host_vendor in 20824 sni) 20825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20826 hardcode_direct=yes # is this really true??? 20827 ;; 20828 siemens) 20829 ## LD is ld it makes a PLAMLIB 20830 ## CC just makes a GrossModule. 20831 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 20832 reload_cmds='$CC -r -o $output$reload_objs' 20833 hardcode_direct=no 20834 ;; 20835 motorola) 20836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20837 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 20838 ;; 20839 esac 20840 runpath_var='LD_RUN_PATH' 20841 hardcode_shlibpath_var=no 20842 ;; 20843 20844 sysv4.3*) 20845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20846 hardcode_shlibpath_var=no 20847 export_dynamic_flag_spec='-Bexport' 20848 ;; 20849 20850 sysv4*MP*) 20851 if test -d /usr/nec; then 20852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20853 hardcode_shlibpath_var=no 20854 runpath_var=LD_RUN_PATH 20855 hardcode_runpath_var=yes 20856 ld_shlibs=yes 20857 fi 20858 ;; 20859 20860 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 20861 no_undefined_flag='$wl-z,text' 20862 archive_cmds_need_lc=no 20863 hardcode_shlibpath_var=no 20864 runpath_var='LD_RUN_PATH' 20865 20866 if test yes = "$GCC"; then 20867 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20868 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20869 else 20870 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20871 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20872 fi 20873 ;; 20874 20875 sysv5* | sco3.2v5* | sco5v6*) 20876 # Note: We CANNOT use -z defs as we might desire, because we do not 20877 # link with -lc, and that would cause any symbols used from libc to 20878 # always be unresolved, which means just about no library would 20879 # ever link correctly. If we're not using GNU ld we use -z text 20880 # though, which does catch some bad symbols but isn't as heavy-handed 20881 # as -z defs. 20882 no_undefined_flag='$wl-z,text' 20883 allow_undefined_flag='$wl-z,nodefs' 20884 archive_cmds_need_lc=no 20885 hardcode_shlibpath_var=no 20886 hardcode_libdir_flag_spec='$wl-R,$libdir' 20887 hardcode_libdir_separator=':' 20888 link_all_deplibs=yes 20889 export_dynamic_flag_spec='$wl-Bexport' 20890 runpath_var='LD_RUN_PATH' 20891 20892 if test yes = "$GCC"; then 20893 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20894 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20895 else 20896 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20897 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20898 fi 20899 ;; 20900 20901 uts4*) 20902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20903 hardcode_libdir_flag_spec='-L$libdir' 20904 hardcode_shlibpath_var=no 20905 ;; 20906 20907 *) 20908 ld_shlibs=no 20909 ;; 20910 esac 20911 20912 if test sni = "$host_vendor"; then 20913 case $host in 20914 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 20915 export_dynamic_flag_spec='$wl-Blargedynsym' 20916 ;; 20917 esac 20918 fi 20919 fi 20920 20921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 20922 printf "%s\n" "$ld_shlibs" >&6; } 20923 test no = "$ld_shlibs" && can_build_shared=no 20924 20925 with_gnu_ld=$with_gnu_ld 20926 20927 20928 20929 20930 20931 20932 20933 20934 20935 20936 20937 20938 20939 20940 20941 # 20942 # Do we need to explicitly link libc? 20943 # 20944 case "x$archive_cmds_need_lc" in 20945 x|xyes) 20946 # Assume -lc should be added 20947 archive_cmds_need_lc=yes 20948 20949 if test yes,yes = "$GCC,$enable_shared"; then 20950 case $archive_cmds in 20951 *'~'*) 20952 # FIXME: we may have to deal with multi-command sequences. 20953 ;; 20954 '$CC '*) 20955 # Test whether the compiler implicitly links with -lc since on some 20956 # systems, -lgcc has to come before -lc. If gcc already passes -lc 20957 # to ld, don't add -lc before -lgcc. 20958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 20959 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 20960 if test ${lt_cv_archive_cmds_need_lc+y} 20961 then : 20962 printf %s "(cached) " >&6 20963 else case e in #( 20964 e) $RM conftest* 20965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20966 20967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 20968 (eval $ac_compile) 2>&5 20969 ac_status=$? 20970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20971 test $ac_status = 0; } 2>conftest.err; then 20972 soname=conftest 20973 lib=conftest 20974 libobjs=conftest.$ac_objext 20975 deplibs= 20976 wl=$lt_prog_compiler_wl 20977 pic_flag=$lt_prog_compiler_pic 20978 compiler_flags=-v 20979 linker_flags=-v 20980 verstring= 20981 output_objdir=. 20982 libname=conftest 20983 lt_save_allow_undefined_flag=$allow_undefined_flag 20984 allow_undefined_flag= 20985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 20986 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 20987 ac_status=$? 20988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20989 test $ac_status = 0; } 20990 then 20991 lt_cv_archive_cmds_need_lc=no 20992 else 20993 lt_cv_archive_cmds_need_lc=yes 20994 fi 20995 allow_undefined_flag=$lt_save_allow_undefined_flag 20996 else 20997 cat conftest.err 1>&5 20998 fi 20999 $RM conftest* 21000 ;; 21001 esac 21002 fi 21003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 21004 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 21005 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 21006 ;; 21007 esac 21008 fi 21009 ;; 21010 esac 21011 21012 21013 21014 21015 21016 21017 21018 21019 21020 21021 21022 21023 21024 21025 21026 21027 21028 21029 21030 21031 21032 21033 21034 21035 21036 21037 21038 21039 21040 21041 21042 21043 21044 21045 21046 21047 21048 21049 21050 21051 21052 21053 21054 21055 21056 21057 21058 21059 21060 21061 21062 21063 21064 21065 21066 21067 21068 21069 21070 21071 21072 21073 21074 21075 21076 21077 21078 21079 21080 21081 21082 21083 21084 21085 21086 21087 21088 21089 21090 21091 21092 21093 21094 21095 21096 21097 21098 21099 21100 21101 21102 21103 21104 21105 21106 21107 21108 21109 21110 21111 21112 21113 21114 21115 21116 21117 21118 21119 21120 21121 21122 21123 21124 21125 21126 21127 21128 21129 21130 21131 21132 21133 21134 21135 21136 21137 21138 21139 21140 21141 21142 21143 21144 21145 21146 21147 21148 21149 21150 21151 21152 21153 21154 21155 21156 21157 21158 21159 21160 21161 21162 21163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 21164 printf %s "checking dynamic linker characteristics... " >&6; } 21165 21166 if test yes = "$GCC"; then 21167 case $host_os in 21168 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 21169 *) lt_awk_arg='/^libraries:/' ;; 21170 esac 21171 case $host_os in 21172 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 21173 *) lt_sed_strip_eq='s|=/|/|g' ;; 21174 esac 21175 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 21176 case $lt_search_path_spec in 21177 *\;*) 21178 # if the path contains ";" then we assume it to be the separator 21179 # otherwise default to the standard path separator (i.e. ":") - it is 21180 # assumed that no part of a normal pathname contains ";" but that should 21181 # okay in the real world where ";" in dirpaths is itself problematic. 21182 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 21183 ;; 21184 *) 21185 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 21186 ;; 21187 esac 21188 # Ok, now we have the path, separated by spaces, we can step through it 21189 # and add multilib dir if necessary... 21190 lt_tmp_lt_search_path_spec= 21191 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 21192 # ...but if some path component already ends with the multilib dir we assume 21193 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 21194 case "$lt_multi_os_dir; $lt_search_path_spec " in 21195 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 21196 lt_multi_os_dir= 21197 ;; 21198 esac 21199 for lt_sys_path in $lt_search_path_spec; do 21200 if test -d "$lt_sys_path$lt_multi_os_dir"; then 21201 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 21202 elif test -n "$lt_multi_os_dir"; then 21203 test -d "$lt_sys_path" && \ 21204 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 21205 fi 21206 done 21207 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 21208 BEGIN {RS = " "; FS = "/|\n";} { 21209 lt_foo = ""; 21210 lt_count = 0; 21211 for (lt_i = NF; lt_i > 0; lt_i--) { 21212 if ($lt_i != "" && $lt_i != ".") { 21213 if ($lt_i == "..") { 21214 lt_count++; 21215 } else { 21216 if (lt_count == 0) { 21217 lt_foo = "/" $lt_i lt_foo; 21218 } else { 21219 lt_count--; 21220 } 21221 } 21222 } 21223 } 21224 if (lt_foo != "") { lt_freq[lt_foo]++; } 21225 if (lt_freq[lt_foo] == 1) { print lt_foo; } 21226 }'` 21227 # AWK program above erroneously prepends '/' to C:/dos/paths 21228 # for these hosts. 21229 case $host_os in 21230 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 21231 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 21232 esac 21233 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 21234 else 21235 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 21236 fi 21237 library_names_spec= 21238 libname_spec='lib$name' 21239 soname_spec= 21240 shrext_cmds=.so 21241 postinstall_cmds= 21242 postuninstall_cmds= 21243 finish_cmds= 21244 finish_eval= 21245 shlibpath_var= 21246 shlibpath_overrides_runpath=unknown 21247 version_type=none 21248 dynamic_linker="$host_os ld.so" 21249 sys_lib_dlsearch_path_spec="/lib /usr/lib" 21250 need_lib_prefix=unknown 21251 hardcode_into_libs=no 21252 21253 # when you set need_version to no, make sure it does not cause -set_version 21254 # flags to be left without arguments 21255 need_version=unknown 21256 21257 21258 21259 case $host_os in 21260 aix3*) 21261 version_type=linux # correct to gnu/linux during the next big refactor 21262 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 21263 shlibpath_var=LIBPATH 21264 21265 # AIX 3 has no versioning support, so we append a major version to the name. 21266 soname_spec='$libname$release$shared_ext$major' 21267 ;; 21268 21269 aix[4-9]*) 21270 version_type=linux # correct to gnu/linux during the next big refactor 21271 need_lib_prefix=no 21272 need_version=no 21273 hardcode_into_libs=yes 21274 if test ia64 = "$host_cpu"; then 21275 # AIX 5 supports IA64 21276 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 21277 shlibpath_var=LD_LIBRARY_PATH 21278 else 21279 # With GCC up to 2.95.x, collect2 would create an import file 21280 # for dependence libraries. The import file would start with 21281 # the line '#! .'. This would cause the generated library to 21282 # depend on '.', always an invalid library. This was fixed in 21283 # development snapshots of GCC prior to 3.0. 21284 case $host_os in 21285 aix4 | aix4.[01] | aix4.[01].*) 21286 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 21287 echo ' yes ' 21288 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 21289 : 21290 else 21291 can_build_shared=no 21292 fi 21293 ;; 21294 esac 21295 # Using Import Files as archive members, it is possible to support 21296 # filename-based versioning of shared library archives on AIX. While 21297 # this would work for both with and without runtime linking, it will 21298 # prevent static linking of such archives. So we do filename-based 21299 # shared library versioning with .so extension only, which is used 21300 # when both runtime linking and shared linking is enabled. 21301 # Unfortunately, runtime linking may impact performance, so we do 21302 # not want this to be the default eventually. Also, we use the 21303 # versioned .so libs for executables only if there is the -brtl 21304 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. 21305 # To allow for filename-based versioning support, we need to create 21306 # libNAME.so.V as an archive file, containing: 21307 # *) an Import File, referring to the versioned filename of the 21308 # archive as well as the shared archive member, telling the 21309 # bitwidth (32 or 64) of that shared object, and providing the 21310 # list of exported symbols of that shared object, eventually 21311 # decorated with the 'weak' keyword 21312 # *) the shared object with the F_LOADONLY flag set, to really avoid 21313 # it being seen by the linker. 21314 # At run time we better use the real file rather than another symlink, 21315 # but for link time we create the symlink libNAME.so -> libNAME.so.V 21316 21317 case $with_aix_soname,$aix_use_runtimelinking in 21318 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 21319 # soname into executable. Probably we can add versioning support to 21320 # collect2, so additional links can be useful in future. 21321 aix,yes) # traditional libtool 21322 dynamic_linker='AIX unversionable lib.so' 21323 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 21324 # instead of lib<name>.a to let people know that these are not 21325 # typical AIX shared libraries. 21326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21327 ;; 21328 aix,no) # traditional AIX only 21329 dynamic_linker='AIX lib.a(lib.so.V)' 21330 # We preserve .a as extension for shared libraries through AIX4.2 21331 # and later when we are not doing run time linking. 21332 library_names_spec='$libname$release.a $libname.a' 21333 soname_spec='$libname$release$shared_ext$major' 21334 ;; 21335 svr4,*) # full svr4 only 21336 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 21337 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 21338 # We do not specify a path in Import Files, so LIBPATH fires. 21339 shlibpath_overrides_runpath=yes 21340 ;; 21341 *,yes) # both, prefer svr4 21342 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 21343 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 21344 # unpreferred sharedlib libNAME.a needs extra handling 21345 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"' 21346 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"' 21347 # We do not specify a path in Import Files, so LIBPATH fires. 21348 shlibpath_overrides_runpath=yes 21349 ;; 21350 *,no) # both, prefer aix 21351 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 21352 library_names_spec='$libname$release.a $libname.a' 21353 soname_spec='$libname$release$shared_ext$major' 21354 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 21355 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)' 21356 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"' 21357 ;; 21358 esac 21359 shlibpath_var=LIBPATH 21360 fi 21361 ;; 21362 21363 amigaos*) 21364 case $host_cpu in 21365 powerpc) 21366 # Since July 2007 AmigaOS4 officially supports .so libraries. 21367 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 21368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21369 ;; 21370 m68k) 21371 library_names_spec='$libname.ixlibrary $libname.a' 21372 # Create ${libname}_ixlibrary.a entries in /sys/libs. 21373 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' 21374 ;; 21375 esac 21376 ;; 21377 21378 beos*) 21379 library_names_spec='$libname$shared_ext' 21380 dynamic_linker="$host_os ld.so" 21381 shlibpath_var=LIBRARY_PATH 21382 ;; 21383 21384 bsdi[45]*) 21385 version_type=linux # correct to gnu/linux during the next big refactor 21386 need_version=no 21387 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21388 soname_spec='$libname$release$shared_ext$major' 21389 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 21390 shlibpath_var=LD_LIBRARY_PATH 21391 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 21392 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 21393 # the default ld.so.conf also contains /usr/contrib/lib and 21394 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 21395 # libtool to hard-code these into programs 21396 ;; 21397 21398 cygwin* | mingw* | windows* | pw32* | cegcc*) 21399 version_type=windows 21400 shrext_cmds=.dll 21401 need_version=no 21402 need_lib_prefix=no 21403 21404 case $GCC,$cc_basename in 21405 yes,*) 21406 # gcc 21407 library_names_spec='$libname.dll.a' 21408 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21409 # If user builds GCC with multilib enabled, 21410 # it should just install on $(libdir) 21411 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. 21412 if test xyes = x"$multilib"; then 21413 postinstall_cmds='base_file=`basename \$file`~ 21414 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 21415 dldir=$destdir/`dirname \$dlpath`~ 21416 $install_prog $dir/$dlname $destdir/$dlname~ 21417 chmod a+x $destdir/$dlname~ 21418 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21419 eval '\''$striplib $destdir/$dlname'\'' || exit \$?; 21420 fi' 21421 else 21422 postinstall_cmds='base_file=`basename \$file`~ 21423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 21424 dldir=$destdir/`dirname \$dlpath`~ 21425 test -d \$dldir || mkdir -p \$dldir~ 21426 $install_prog $dir/$dlname \$dldir/$dlname~ 21427 chmod a+x \$dldir/$dlname~ 21428 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21429 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21430 fi' 21431 fi 21432 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21433 dlpath=$dir/\$dldll~ 21434 $RM \$dlpath' 21435 shlibpath_overrides_runpath=yes 21436 21437 case $host_os in 21438 cygwin*) 21439 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 21440 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21441 21442 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 21443 ;; 21444 mingw* | windows* | cegcc*) 21445 # MinGW DLLs use traditional 'lib' prefix 21446 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21447 ;; 21448 pw32*) 21449 # pw32 DLLs use 'pw' prefix rather than 'lib' 21450 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21451 ;; 21452 esac 21453 dynamic_linker='Win32 ld.exe' 21454 ;; 21455 21456 *,cl* | *,icl*) 21457 # Native MSVC or ICC 21458 libname_spec='$name' 21459 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21460 library_names_spec='$libname.dll.lib' 21461 21462 case $build_os in 21463 mingw* | windows*) 21464 sys_lib_search_path_spec= 21465 lt_save_ifs=$IFS 21466 IFS=';' 21467 for lt_path in $LIB 21468 do 21469 IFS=$lt_save_ifs 21470 # Let DOS variable expansion print the short 8.3 style file name. 21471 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 21472 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 21473 done 21474 IFS=$lt_save_ifs 21475 # Convert to MSYS style. 21476 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 21477 ;; 21478 cygwin*) 21479 # Convert to unix form, then to dos form, then back to unix form 21480 # but this time dos style (no spaces!) so that the unix form looks 21481 # like /cygdrive/c/PROGRA~1:/cygdr... 21482 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 21483 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 21484 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21485 ;; 21486 *) 21487 sys_lib_search_path_spec=$LIB 21488 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 21489 # It is most probably a Windows format PATH. 21490 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 21491 else 21492 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21493 fi 21494 # FIXME: find the short name or the path components, as spaces are 21495 # common. (e.g. "Program Files" -> "PROGRA~1") 21496 ;; 21497 esac 21498 21499 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21500 postinstall_cmds='base_file=`basename \$file`~ 21501 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 21502 dldir=$destdir/`dirname \$dlpath`~ 21503 test -d \$dldir || mkdir -p \$dldir~ 21504 $install_prog $dir/$dlname \$dldir/$dlname' 21505 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21506 dlpath=$dir/\$dldll~ 21507 $RM \$dlpath' 21508 shlibpath_overrides_runpath=yes 21509 dynamic_linker='Win32 link.exe' 21510 ;; 21511 21512 *) 21513 # Assume MSVC and ICC wrapper 21514 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 21515 dynamic_linker='Win32 ld.exe' 21516 ;; 21517 esac 21518 # FIXME: first we should search . and the directory the executable is in 21519 shlibpath_var=PATH 21520 ;; 21521 21522 darwin* | rhapsody*) 21523 dynamic_linker="$host_os dyld" 21524 version_type=darwin 21525 need_lib_prefix=no 21526 need_version=no 21527 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 21528 soname_spec='$libname$release$major$shared_ext' 21529 shlibpath_overrides_runpath=yes 21530 shlibpath_var=DYLD_LIBRARY_PATH 21531 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 21532 21533 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 21534 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 21535 ;; 21536 21537 dgux*) 21538 version_type=linux # correct to gnu/linux during the next big refactor 21539 need_lib_prefix=no 21540 need_version=no 21541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21542 soname_spec='$libname$release$shared_ext$major' 21543 shlibpath_var=LD_LIBRARY_PATH 21544 ;; 21545 21546 freebsd* | dragonfly* | midnightbsd*) 21547 # DragonFly does not have aout. When/if they implement a new 21548 # versioning mechanism, adjust this. 21549 if test -x /usr/bin/objformat; then 21550 objformat=`/usr/bin/objformat` 21551 else 21552 case $host_os in 21553 freebsd[23].*) objformat=aout ;; 21554 *) objformat=elf ;; 21555 esac 21556 fi 21557 version_type=freebsd-$objformat 21558 case $version_type in 21559 freebsd-elf*) 21560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21561 soname_spec='$libname$release$shared_ext$major' 21562 need_version=no 21563 need_lib_prefix=no 21564 ;; 21565 freebsd-*) 21566 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21567 need_version=yes 21568 ;; 21569 esac 21570 case $host_cpu in 21571 powerpc64) 21572 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit 21573 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. 21574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21575 /* end confdefs.h. */ 21576 int test_pointer_size[sizeof (void *) - 5]; 21577 21578 _ACEOF 21579 if ac_fn_c_try_compile "$LINENO" 21580 then : 21581 shlibpath_var=LD_LIBRARY_PATH 21582 else case e in #( 21583 e) shlibpath_var=LD_32_LIBRARY_PATH ;; 21584 esac 21585 fi 21586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21587 ;; 21588 *) 21589 shlibpath_var=LD_LIBRARY_PATH 21590 ;; 21591 esac 21592 case $host_os in 21593 freebsd2.*) 21594 shlibpath_overrides_runpath=yes 21595 ;; 21596 freebsd3.[01]* | freebsdelf3.[01]*) 21597 shlibpath_overrides_runpath=yes 21598 hardcode_into_libs=yes 21599 ;; 21600 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 21601 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 21602 shlibpath_overrides_runpath=no 21603 hardcode_into_libs=yes 21604 ;; 21605 *) # from 4.6 on, and DragonFly 21606 shlibpath_overrides_runpath=yes 21607 hardcode_into_libs=yes 21608 ;; 21609 esac 21610 ;; 21611 21612 haiku*) 21613 version_type=linux # correct to gnu/linux during the next big refactor 21614 need_lib_prefix=no 21615 need_version=no 21616 dynamic_linker="$host_os runtime_loader" 21617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21618 soname_spec='$libname$release$shared_ext$major' 21619 shlibpath_var=LIBRARY_PATH 21620 shlibpath_overrides_runpath=no 21621 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' 21622 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' 21623 hardcode_into_libs=no 21624 ;; 21625 21626 hpux9* | hpux10* | hpux11*) 21627 # Give a soname corresponding to the major version so that dld.sl refuses to 21628 # link against other versions. 21629 version_type=sunos 21630 need_lib_prefix=no 21631 need_version=no 21632 case $host_cpu in 21633 ia64*) 21634 shrext_cmds='.so' 21635 hardcode_into_libs=yes 21636 dynamic_linker="$host_os dld.so" 21637 shlibpath_var=LD_LIBRARY_PATH 21638 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21640 soname_spec='$libname$release$shared_ext$major' 21641 if test 32 = "$HPUX_IA64_MODE"; then 21642 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 21643 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 21644 else 21645 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 21646 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 21647 fi 21648 ;; 21649 hppa*64*) 21650 shrext_cmds='.sl' 21651 hardcode_into_libs=yes 21652 dynamic_linker="$host_os dld.sl" 21653 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 21654 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21656 soname_spec='$libname$release$shared_ext$major' 21657 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 21658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21659 ;; 21660 *) 21661 shrext_cmds='.sl' 21662 dynamic_linker="$host_os dld.sl" 21663 shlibpath_var=SHLIB_PATH 21664 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 21665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21666 soname_spec='$libname$release$shared_ext$major' 21667 ;; 21668 esac 21669 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 21670 postinstall_cmds='chmod 555 $lib' 21671 # or fails outright, so override atomically: 21672 install_override_mode=555 21673 ;; 21674 21675 interix[3-9]*) 21676 version_type=linux # correct to gnu/linux during the next big refactor 21677 need_lib_prefix=no 21678 need_version=no 21679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21680 soname_spec='$libname$release$shared_ext$major' 21681 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 21682 shlibpath_var=LD_LIBRARY_PATH 21683 shlibpath_overrides_runpath=no 21684 hardcode_into_libs=yes 21685 ;; 21686 21687 irix5* | irix6* | nonstopux*) 21688 case $host_os in 21689 nonstopux*) version_type=nonstopux ;; 21690 *) 21691 if test yes = "$lt_cv_prog_gnu_ld"; then 21692 version_type=linux # correct to gnu/linux during the next big refactor 21693 else 21694 version_type=irix 21695 fi ;; 21696 esac 21697 need_lib_prefix=no 21698 need_version=no 21699 soname_spec='$libname$release$shared_ext$major' 21700 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 21701 case $host_os in 21702 irix5* | nonstopux*) 21703 libsuff= shlibsuff= 21704 ;; 21705 *) 21706 case $LD in # libtool.m4 will add one of these switches to LD 21707 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 21708 libsuff= shlibsuff= libmagic=32-bit;; 21709 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 21710 libsuff=32 shlibsuff=N32 libmagic=N32;; 21711 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 21712 libsuff=64 shlibsuff=64 libmagic=64-bit;; 21713 *) libsuff= shlibsuff= libmagic=never-match;; 21714 esac 21715 ;; 21716 esac 21717 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 21718 shlibpath_overrides_runpath=no 21719 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 21720 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 21721 hardcode_into_libs=yes 21722 ;; 21723 21724 # No shared lib support for Linux oldld, aout, or coff. 21725 linux*oldld* | linux*aout* | linux*coff*) 21726 dynamic_linker=no 21727 ;; 21728 21729 linux*android*) 21730 version_type=none # Android doesn't support versioned libraries. 21731 need_lib_prefix=no 21732 need_version=no 21733 library_names_spec='$libname$release$shared_ext $libname$shared_ext' 21734 soname_spec='$libname$release$shared_ext' 21735 finish_cmds= 21736 shlibpath_var=LD_LIBRARY_PATH 21737 shlibpath_overrides_runpath=yes 21738 21739 # This implies no fast_install, which is unacceptable. 21740 # Some rework will be needed to allow for fast_install 21741 # before this can be enabled. 21742 hardcode_into_libs=yes 21743 21744 dynamic_linker='Android linker' 21745 # -rpath works at least for libraries that are not overridden by 21746 # libraries installed in system locations. 21747 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 21748 ;; 21749 21750 # This must be glibc/ELF. 21751 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 21752 version_type=linux # correct to gnu/linux during the next big refactor 21753 need_lib_prefix=no 21754 need_version=no 21755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21756 soname_spec='$libname$release$shared_ext$major' 21757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 21758 shlibpath_var=LD_LIBRARY_PATH 21759 shlibpath_overrides_runpath=no 21760 21761 # Some binutils ld are patched to set DT_RUNPATH 21762 if test ${lt_cv_shlibpath_overrides_runpath+y} 21763 then : 21764 printf %s "(cached) " >&6 21765 else case e in #( 21766 e) lt_cv_shlibpath_overrides_runpath=no 21767 save_LDFLAGS=$LDFLAGS 21768 save_libdir=$libdir 21769 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 21770 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 21771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21772 /* end confdefs.h. */ 21773 21774 int 21775 main (void) 21776 { 21777 21778 ; 21779 return 0; 21780 } 21781 _ACEOF 21782 if ac_fn_c_try_link "$LINENO" 21783 then : 21784 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 21785 then : 21786 lt_cv_shlibpath_overrides_runpath=yes 21787 fi 21788 fi 21789 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21790 conftest$ac_exeext conftest.$ac_ext 21791 LDFLAGS=$save_LDFLAGS 21792 libdir=$save_libdir 21793 ;; 21794 esac 21795 fi 21796 21797 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 21798 21799 # This implies no fast_install, which is unacceptable. 21800 # Some rework will be needed to allow for fast_install 21801 # before this can be enabled. 21802 hardcode_into_libs=yes 21803 21804 # Add ABI-specific directories to the system library path. 21805 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 21806 21807 # Ideally, we could use ldconfig to report *all* directories which are 21808 # searched for libraries, however this is still not possible. Aside from not 21809 # being certain /sbin/ldconfig is available, command 21810 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 21811 # even though it is searched at run-time. Try to do the best guess by 21812 # appending ld.so.conf contents (and includes) to the search path. 21813 if test -f /etc/ld.so.conf; then 21814 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' ' '` 21815 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 21816 fi 21817 21818 # We used to test for /lib/ld.so.1 and disable shared libraries on 21819 # powerpc, because MkLinux only supported shared libraries with the 21820 # GNU dynamic linker. Since this was broken with cross compilers, 21821 # most powerpc-linux boxes support dynamic linking these days and 21822 # people can always --disable-shared, the test was removed, and we 21823 # assume the GNU/Linux dynamic linker is in use. 21824 dynamic_linker='GNU/Linux ld.so' 21825 ;; 21826 21827 netbsdelf*-gnu) 21828 version_type=linux 21829 need_lib_prefix=no 21830 need_version=no 21831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21832 soname_spec='$libname$release$shared_ext$major' 21833 shlibpath_var=LD_LIBRARY_PATH 21834 shlibpath_overrides_runpath=no 21835 hardcode_into_libs=yes 21836 dynamic_linker='NetBSD ld.elf_so' 21837 ;; 21838 21839 netbsd*) 21840 version_type=sunos 21841 need_lib_prefix=no 21842 need_version=no 21843 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 21844 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21846 dynamic_linker='NetBSD (a.out) ld.so' 21847 else 21848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21849 soname_spec='$libname$release$shared_ext$major' 21850 dynamic_linker='NetBSD ld.elf_so' 21851 fi 21852 shlibpath_var=LD_LIBRARY_PATH 21853 shlibpath_overrides_runpath=yes 21854 hardcode_into_libs=yes 21855 ;; 21856 21857 *-mlibc) 21858 version_type=linux # correct to gnu/linux during the next big refactor 21859 need_lib_prefix=no 21860 need_version=no 21861 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21862 soname_spec='$libname$release$shared_ext$major' 21863 dynamic_linker='mlibc ld.so' 21864 shlibpath_var=LD_LIBRARY_PATH 21865 shlibpath_overrides_runpath=no 21866 hardcode_into_libs=yes 21867 ;; 21868 21869 newsos6) 21870 version_type=linux # correct to gnu/linux during the next big refactor 21871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21872 shlibpath_var=LD_LIBRARY_PATH 21873 shlibpath_overrides_runpath=yes 21874 ;; 21875 21876 *nto* | *qnx*) 21877 version_type=qnx 21878 need_lib_prefix=no 21879 need_version=no 21880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21881 soname_spec='$libname$release$shared_ext$major' 21882 shlibpath_var=LD_LIBRARY_PATH 21883 shlibpath_overrides_runpath=no 21884 hardcode_into_libs=yes 21885 dynamic_linker='ldqnx.so' 21886 ;; 21887 21888 openbsd*) 21889 version_type=sunos 21890 sys_lib_dlsearch_path_spec=/usr/lib 21891 need_lib_prefix=no 21892 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 21893 need_version=no 21894 else 21895 need_version=yes 21896 fi 21897 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21899 shlibpath_var=LD_LIBRARY_PATH 21900 shlibpath_overrides_runpath=yes 21901 ;; 21902 21903 os2*) 21904 libname_spec='$name' 21905 version_type=windows 21906 shrext_cmds=.dll 21907 need_version=no 21908 need_lib_prefix=no 21909 # OS/2 can only load a DLL with a base name of 8 characters or less. 21910 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 21911 v=$($ECHO $release$versuffix | tr -d .-); 21912 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 21913 $ECHO $n$v`$shared_ext' 21914 library_names_spec='${libname}_dll.$libext' 21915 dynamic_linker='OS/2 ld.exe' 21916 shlibpath_var=BEGINLIBPATH 21917 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 21918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21919 postinstall_cmds='base_file=`basename \$file`~ 21920 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 21921 dldir=$destdir/`dirname \$dlpath`~ 21922 test -d \$dldir || mkdir -p \$dldir~ 21923 $install_prog $dir/$dlname \$dldir/$dlname~ 21924 chmod a+x \$dldir/$dlname~ 21925 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21926 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21927 fi' 21928 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 21929 dlpath=$dir/\$dldll~ 21930 $RM \$dlpath' 21931 ;; 21932 21933 osf3* | osf4* | osf5*) 21934 version_type=osf 21935 need_lib_prefix=no 21936 need_version=no 21937 soname_spec='$libname$release$shared_ext$major' 21938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21939 shlibpath_var=LD_LIBRARY_PATH 21940 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 21941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21942 ;; 21943 21944 rdos*) 21945 dynamic_linker=no 21946 ;; 21947 21948 serenity*) 21949 version_type=linux # correct to gnu/linux during the next big refactor 21950 need_lib_prefix=no 21951 need_version=no 21952 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21953 soname_spec='$libname$release$shared_ext$major' 21954 shlibpath_var=LD_LIBRARY_PATH 21955 shlibpath_overrides_runpath=no 21956 dynamic_linker='SerenityOS LibELF' 21957 ;; 21958 21959 solaris*) 21960 version_type=linux # correct to gnu/linux during the next big refactor 21961 need_lib_prefix=no 21962 need_version=no 21963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21964 soname_spec='$libname$release$shared_ext$major' 21965 shlibpath_var=LD_LIBRARY_PATH 21966 shlibpath_overrides_runpath=yes 21967 hardcode_into_libs=yes 21968 # ldd complains unless libraries are executable 21969 postinstall_cmds='chmod +x $lib' 21970 ;; 21971 21972 sunos4*) 21973 version_type=sunos 21974 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21975 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 21976 shlibpath_var=LD_LIBRARY_PATH 21977 shlibpath_overrides_runpath=yes 21978 if test yes = "$with_gnu_ld"; then 21979 need_lib_prefix=no 21980 fi 21981 need_version=yes 21982 ;; 21983 21984 sysv4 | sysv4.3*) 21985 version_type=linux # correct to gnu/linux during the next big refactor 21986 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21987 soname_spec='$libname$release$shared_ext$major' 21988 shlibpath_var=LD_LIBRARY_PATH 21989 case $host_vendor in 21990 sni) 21991 shlibpath_overrides_runpath=no 21992 need_lib_prefix=no 21993 runpath_var=LD_RUN_PATH 21994 ;; 21995 siemens) 21996 need_lib_prefix=no 21997 ;; 21998 motorola) 21999 need_lib_prefix=no 22000 need_version=no 22001 shlibpath_overrides_runpath=no 22002 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 22003 ;; 22004 esac 22005 ;; 22006 22007 sysv4*MP*) 22008 if test -d /usr/nec; then 22009 version_type=linux # correct to gnu/linux during the next big refactor 22010 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 22011 soname_spec='$libname$shared_ext.$major' 22012 shlibpath_var=LD_LIBRARY_PATH 22013 fi 22014 ;; 22015 22016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 22017 version_type=sco 22018 need_lib_prefix=no 22019 need_version=no 22020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 22021 soname_spec='$libname$release$shared_ext$major' 22022 shlibpath_var=LD_LIBRARY_PATH 22023 shlibpath_overrides_runpath=yes 22024 hardcode_into_libs=yes 22025 if test yes = "$with_gnu_ld"; then 22026 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 22027 else 22028 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 22029 case $host_os in 22030 sco3.2v5*) 22031 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 22032 ;; 22033 esac 22034 fi 22035 sys_lib_dlsearch_path_spec='/usr/lib' 22036 ;; 22037 22038 tpf*) 22039 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 22040 version_type=linux # correct to gnu/linux during the next big refactor 22041 need_lib_prefix=no 22042 need_version=no 22043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22044 shlibpath_var=LD_LIBRARY_PATH 22045 shlibpath_overrides_runpath=no 22046 hardcode_into_libs=yes 22047 ;; 22048 22049 uts4*) 22050 version_type=linux # correct to gnu/linux during the next big refactor 22051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22052 soname_spec='$libname$release$shared_ext$major' 22053 shlibpath_var=LD_LIBRARY_PATH 22054 ;; 22055 22056 emscripten*) 22057 version_type=none 22058 need_lib_prefix=no 22059 need_version=no 22060 library_names_spec='$libname$release$shared_ext' 22061 soname_spec='$libname$release$shared_ext' 22062 finish_cmds= 22063 dynamic_linker="Emscripten linker" 22064 lt_prog_compiler_wl= 22065 lt_prog_compiler_pic= 22066 lt_prog_compiler_static= 22067 22068 22069 if test yes = "$GCC"; then 22070 lt_prog_compiler_wl='-Wl,' 22071 lt_prog_compiler_static='-static' 22072 22073 case $host_os in 22074 aix*) 22075 # All AIX code is PIC. 22076 if test ia64 = "$host_cpu"; then 22077 # AIX 5 now supports IA64 processor 22078 lt_prog_compiler_static='-Bstatic' 22079 fi 22080 lt_prog_compiler_pic='-fPIC' 22081 ;; 22082 22083 amigaos*) 22084 case $host_cpu in 22085 powerpc) 22086 # see comment about AmigaOS4 .so support 22087 lt_prog_compiler_pic='-fPIC' 22088 ;; 22089 m68k) 22090 # FIXME: we need at least 68020 code to build shared libraries, but 22091 # adding the '-m68020' flag to GCC prevents building anything better, 22092 # like '-m68040'. 22093 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 22094 ;; 22095 esac 22096 ;; 22097 22098 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 22099 # PIC is the default for these OSes. 22100 ;; 22101 22102 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 22103 # This hack is so that the source file can tell whether it is being 22104 # built for inclusion in a dll (and should export symbols for example). 22105 # Although the cygwin gcc ignores -fPIC, still need this for old-style 22106 # (--disable-auto-import) libraries 22107 lt_prog_compiler_pic='-DDLL_EXPORT' 22108 case $host_os in 22109 os2*) 22110 lt_prog_compiler_static='$wl-static' 22111 ;; 22112 esac 22113 ;; 22114 22115 darwin* | rhapsody*) 22116 # PIC is the default on this platform 22117 # Common symbols not allowed in MH_DYLIB files 22118 lt_prog_compiler_pic='-fno-common' 22119 ;; 22120 22121 haiku*) 22122 # PIC is the default for Haiku. 22123 # The "-static" flag exists, but is broken. 22124 lt_prog_compiler_static= 22125 ;; 22126 22127 hpux*) 22128 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 22129 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 22130 # sets the default TLS model and affects inlining. 22131 case $host_cpu in 22132 hppa*64*) 22133 # +Z the default 22134 ;; 22135 *) 22136 lt_prog_compiler_pic='-fPIC' 22137 ;; 22138 esac 22139 ;; 22140 22141 interix[3-9]*) 22142 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 22143 # Instead, we relocate shared libraries at runtime. 22144 ;; 22145 22146 msdosdjgpp*) 22147 # Just because we use GCC doesn't mean we suddenly get shared libraries 22148 # on systems that don't support them. 22149 lt_prog_compiler_can_build_shared=no 22150 enable_shared=no 22151 ;; 22152 22153 *nto* | *qnx*) 22154 # QNX uses GNU C++, but need to define -shared option too, otherwise 22155 # it will coredump. 22156 lt_prog_compiler_pic='-fPIC -shared' 22157 ;; 22158 22159 sysv4*MP*) 22160 if test -d /usr/nec; then 22161 lt_prog_compiler_pic=-Kconform_pic 22162 fi 22163 ;; 22164 22165 *) 22166 lt_prog_compiler_pic='-fPIC' 22167 ;; 22168 esac 22169 22170 case $cc_basename in 22171 nvcc*) # Cuda Compiler Driver 2.2 22172 lt_prog_compiler_wl='-Xlinker ' 22173 if test -n "$lt_prog_compiler_pic"; then 22174 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 22175 fi 22176 ;; 22177 esac 22178 else 22179 # PORTME Check for flag to pass linker flags through the system compiler. 22180 case $host_os in 22181 aix*) 22182 lt_prog_compiler_wl='-Wl,' 22183 if test ia64 = "$host_cpu"; then 22184 # AIX 5 now supports IA64 processor 22185 lt_prog_compiler_static='-Bstatic' 22186 else 22187 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 22188 fi 22189 ;; 22190 22191 darwin* | rhapsody*) 22192 # PIC is the default on this platform 22193 # Common symbols not allowed in MH_DYLIB files 22194 lt_prog_compiler_pic='-fno-common' 22195 case $cc_basename in 22196 nagfor*) 22197 # NAG Fortran compiler 22198 lt_prog_compiler_wl='-Wl,-Wl,,' 22199 lt_prog_compiler_pic='-PIC' 22200 lt_prog_compiler_static='-Bstatic' 22201 ;; 22202 esac 22203 ;; 22204 22205 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 22206 # This hack is so that the source file can tell whether it is being 22207 # built for inclusion in a dll (and should export symbols for example). 22208 lt_prog_compiler_pic='-DDLL_EXPORT' 22209 case $host_os in 22210 os2*) 22211 lt_prog_compiler_static='$wl-static' 22212 ;; 22213 esac 22214 ;; 22215 22216 hpux9* | hpux10* | hpux11*) 22217 lt_prog_compiler_wl='-Wl,' 22218 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 22219 # not for PA HP-UX. 22220 case $host_cpu in 22221 hppa*64*|ia64*) 22222 # +Z the default 22223 ;; 22224 *) 22225 lt_prog_compiler_pic='+Z' 22226 ;; 22227 esac 22228 # Is there a better lt_prog_compiler_static that works with the bundled CC? 22229 lt_prog_compiler_static='$wl-a ${wl}archive' 22230 ;; 22231 22232 irix5* | irix6* | nonstopux*) 22233 lt_prog_compiler_wl='-Wl,' 22234 # PIC (with -KPIC) is the default. 22235 lt_prog_compiler_static='-non_shared' 22236 ;; 22237 22238 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 22239 case $cc_basename in 22240 # old Intel for x86_64, which still supported -KPIC. 22241 ecc*) 22242 lt_prog_compiler_wl='-Wl,' 22243 lt_prog_compiler_pic='-KPIC' 22244 lt_prog_compiler_static='-static' 22245 ;; 22246 *flang* | ftn | f18* | f95*) 22247 # Flang compiler. 22248 lt_prog_compiler_wl='-Wl,' 22249 lt_prog_compiler_pic='-fPIC' 22250 lt_prog_compiler_static='-static' 22251 ;; 22252 # icc used to be incompatible with GCC. 22253 # ICC 10 doesn't accept -KPIC any more. 22254 icc* | ifort*) 22255 lt_prog_compiler_wl='-Wl,' 22256 lt_prog_compiler_pic='-fPIC' 22257 lt_prog_compiler_static='-static' 22258 ;; 22259 # Lahey Fortran 8.1. 22260 lf95*) 22261 lt_prog_compiler_wl='-Wl,' 22262 lt_prog_compiler_pic='--shared' 22263 lt_prog_compiler_static='--static' 22264 ;; 22265 nagfor*) 22266 # NAG Fortran compiler 22267 lt_prog_compiler_wl='-Wl,-Wl,,' 22268 lt_prog_compiler_pic='-PIC' 22269 lt_prog_compiler_static='-Bstatic' 22270 ;; 22271 tcc*) 22272 # Fabrice Bellard et al's Tiny C Compiler 22273 lt_prog_compiler_wl='-Wl,' 22274 lt_prog_compiler_pic='-fPIC' 22275 lt_prog_compiler_static='-static' 22276 ;; 22277 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 22278 # Portland Group compilers (*not* the Pentium gcc compiler, 22279 # which looks to be a dead project) 22280 lt_prog_compiler_wl='-Wl,' 22281 lt_prog_compiler_pic='-fpic' 22282 lt_prog_compiler_static='-Bstatic' 22283 ;; 22284 ccc*) 22285 lt_prog_compiler_wl='-Wl,' 22286 # All Alpha code is PIC. 22287 lt_prog_compiler_static='-non_shared' 22288 ;; 22289 xl* | bgxl* | bgf* | mpixl*) 22290 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 22291 lt_prog_compiler_wl='-Wl,' 22292 lt_prog_compiler_pic='-qpic' 22293 lt_prog_compiler_static='-qstaticlink' 22294 ;; 22295 *) 22296 case `$CC -V 2>&1 | $SED 5q` in 22297 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 22298 # Sun Fortran 8.3 passes all unrecognized flags to the linker 22299 lt_prog_compiler_pic='-KPIC' 22300 lt_prog_compiler_static='-Bstatic' 22301 lt_prog_compiler_wl='' 22302 ;; 22303 *Sun\ F* | *Sun*Fortran*) 22304 lt_prog_compiler_pic='-KPIC' 22305 lt_prog_compiler_static='-Bstatic' 22306 lt_prog_compiler_wl='-Qoption ld ' 22307 ;; 22308 *Sun\ C*) 22309 # Sun C 5.9 22310 lt_prog_compiler_pic='-KPIC' 22311 lt_prog_compiler_static='-Bstatic' 22312 lt_prog_compiler_wl='-Wl,' 22313 ;; 22314 *Intel*\ [CF]*Compiler*) 22315 lt_prog_compiler_wl='-Wl,' 22316 lt_prog_compiler_pic='-fPIC' 22317 lt_prog_compiler_static='-static' 22318 ;; 22319 *Portland\ Group*) 22320 lt_prog_compiler_wl='-Wl,' 22321 lt_prog_compiler_pic='-fpic' 22322 lt_prog_compiler_static='-Bstatic' 22323 ;; 22324 esac 22325 ;; 22326 esac 22327 ;; 22328 22329 newsos6) 22330 lt_prog_compiler_pic='-KPIC' 22331 lt_prog_compiler_static='-Bstatic' 22332 ;; 22333 22334 *-mlibc) 22335 lt_prog_compiler_wl='-Wl,' 22336 lt_prog_compiler_pic='-fPIC' 22337 lt_prog_compiler_static='-static' 22338 ;; 22339 22340 *nto* | *qnx*) 22341 # QNX uses GNU C++, but need to define -shared option too, otherwise 22342 # it will coredump. 22343 lt_prog_compiler_pic='-fPIC -shared' 22344 ;; 22345 22346 osf3* | osf4* | osf5*) 22347 lt_prog_compiler_wl='-Wl,' 22348 # All OSF/1 code is PIC. 22349 lt_prog_compiler_static='-non_shared' 22350 ;; 22351 22352 rdos*) 22353 lt_prog_compiler_static='-non_shared' 22354 ;; 22355 22356 serenity*) 22357 ;; 22358 22359 solaris*) 22360 lt_prog_compiler_pic='-KPIC' 22361 lt_prog_compiler_static='-Bstatic' 22362 case $cc_basename in 22363 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 22364 lt_prog_compiler_wl='-Qoption ld ';; 22365 *) 22366 lt_prog_compiler_wl='-Wl,';; 22367 esac 22368 ;; 22369 22370 sunos4*) 22371 lt_prog_compiler_wl='-Qoption ld ' 22372 lt_prog_compiler_pic='-PIC' 22373 lt_prog_compiler_static='-Bstatic' 22374 ;; 22375 22376 sysv4 | sysv4.2uw2* | sysv4.3*) 22377 lt_prog_compiler_wl='-Wl,' 22378 lt_prog_compiler_pic='-KPIC' 22379 lt_prog_compiler_static='-Bstatic' 22380 ;; 22381 22382 sysv4*MP*) 22383 if test -d /usr/nec; then 22384 lt_prog_compiler_pic='-Kconform_pic' 22385 lt_prog_compiler_static='-Bstatic' 22386 fi 22387 ;; 22388 22389 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 22390 lt_prog_compiler_wl='-Wl,' 22391 lt_prog_compiler_pic='-KPIC' 22392 lt_prog_compiler_static='-Bstatic' 22393 ;; 22394 22395 unicos*) 22396 lt_prog_compiler_wl='-Wl,' 22397 lt_prog_compiler_can_build_shared=no 22398 ;; 22399 22400 uts4*) 22401 lt_prog_compiler_pic='-pic' 22402 lt_prog_compiler_static='-Bstatic' 22403 ;; 22404 22405 *) 22406 lt_prog_compiler_can_build_shared=no 22407 ;; 22408 esac 22409 fi 22410 22411 case $host_os in 22412 # For platforms that do not support PIC, -DPIC is meaningless: 22413 *djgpp*) 22414 lt_prog_compiler_pic= 22415 ;; 22416 *) 22417 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 22418 ;; 22419 esac 22420 22421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 22422 printf %s "checking for $compiler option to produce PIC... " >&6; } 22423 if test ${lt_cv_prog_compiler_pic+y} 22424 then : 22425 printf %s "(cached) " >&6 22426 else case e in #( 22427 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 22428 esac 22429 fi 22430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 22431 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 22432 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 22433 22434 # 22435 # Check to make sure the PIC flag actually works. 22436 # 22437 if test -n "$lt_prog_compiler_pic"; then 22438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 22439 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 22440 if test ${lt_cv_prog_compiler_pic_works+y} 22441 then : 22442 printf %s "(cached) " >&6 22443 else case e in #( 22444 e) lt_cv_prog_compiler_pic_works=no 22445 ac_outfile=conftest.$ac_objext 22446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22447 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 22448 # Insert the option either (1) after the last *FLAGS variable, or 22449 # (2) before a word containing "conftest.", or (3) at the end. 22450 # Note that $ac_compile itself does not contain backslashes and begins 22451 # with a dollar sign (not a hyphen), so the echo should work correctly. 22452 # The option is referenced via a variable to avoid confusing sed. 22453 lt_compile=`echo "$ac_compile" | $SED \ 22454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22456 -e 's:$: $lt_compiler_flag:'` 22457 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 22458 (eval "$lt_compile" 2>conftest.err) 22459 ac_status=$? 22460 cat conftest.err >&5 22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22462 if (exit $ac_status) && test -s "$ac_outfile"; then 22463 # The compiler can only warn and ignore the option if not recognized 22464 # So say no if there are warnings other than the usual output. 22465 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 22466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 22467 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 22468 lt_cv_prog_compiler_pic_works=yes 22469 fi 22470 fi 22471 $RM conftest* 22472 ;; 22473 esac 22474 fi 22475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 22476 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 22477 22478 if test yes = "$lt_cv_prog_compiler_pic_works"; then 22479 case $lt_prog_compiler_pic in 22480 "" | " "*) ;; 22481 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 22482 esac 22483 else 22484 lt_prog_compiler_pic= 22485 lt_prog_compiler_can_build_shared=no 22486 fi 22487 22488 fi 22489 22490 22491 22492 22493 22494 # 22495 # Check to make sure the static flag actually works. 22496 # 22497 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 22498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 22499 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 22500 if test ${lt_cv_prog_compiler_static_works+y} 22501 then : 22502 printf %s "(cached) " >&6 22503 else case e in #( 22504 e) lt_cv_prog_compiler_static_works=no 22505 save_LDFLAGS=$LDFLAGS 22506 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 22507 echo "$lt_simple_link_test_code" > conftest.$ac_ext 22508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 22509 # The linker can only warn and ignore the option if not recognized 22510 # So say no if there are warnings 22511 if test -s conftest.err; then 22512 # Append any errors to the config.log. 22513 cat conftest.err 1>&5 22514 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 22515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 22516 if diff conftest.exp conftest.er2 >/dev/null; then 22517 lt_cv_prog_compiler_static_works=yes 22518 fi 22519 else 22520 lt_cv_prog_compiler_static_works=yes 22521 fi 22522 fi 22523 $RM -r conftest* 22524 LDFLAGS=$save_LDFLAGS 22525 ;; 22526 esac 22527 fi 22528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 22529 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 22530 22531 if test yes = "$lt_cv_prog_compiler_static_works"; then 22532 : 22533 else 22534 lt_prog_compiler_static= 22535 fi 22536 22537 22538 22539 ='-fPIC' 22540 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' 22541 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym' 22542 archive_cmds_need_lc=no 22543 no_undefined_flag= 22544 ;; 22545 22546 *) 22547 dynamic_linker=no 22548 ;; 22549 esac 22550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 22551 printf "%s\n" "$dynamic_linker" >&6; } 22552 test no = "$dynamic_linker" && can_build_shared=no 22553 22554 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 22555 if test yes = "$GCC"; then 22556 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 22557 fi 22558 22559 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 22560 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 22561 fi 22562 22563 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 22564 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 22565 fi 22566 22567 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 22568 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 22569 22570 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 22571 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 22572 22573 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 22574 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 22575 22576 22577 22578 22579 22580 22581 22582 22583 22584 22585 22586 22587 22588 22589 22590 22591 22592 22593 22594 22595 22596 22597 22598 22599 22600 22601 22602 22603 22604 22605 22606 22607 22608 22609 22610 22611 22612 22613 22614 22615 22616 22617 22618 22619 22620 22621 22622 22623 22624 22625 22626 22627 22628 22629 22630 22631 22632 22633 22634 22635 22636 22637 22638 22639 22640 22641 22642 22643 22644 22645 22646 22647 22648 22649 22650 22651 22652 22653 22654 22655 22656 22657 22658 22659 22660 22661 22662 22663 22664 22665 22666 22667 22668 22669 22670 22671 22672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 22673 printf %s "checking how to hardcode library paths into programs... " >&6; } 22674 hardcode_action= 22675 if test -n "$hardcode_libdir_flag_spec" || 22676 test -n "$runpath_var" || 22677 test yes = "$hardcode_automatic"; then 22678 22679 # We can hardcode non-existent directories. 22680 if test no != "$hardcode_direct" && 22681 # If the only mechanism to avoid hardcoding is shlibpath_var, we 22682 # have to relink, otherwise we might link with an installed library 22683 # when we should be linking with a yet-to-be-installed one 22684 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 22685 test no != "$hardcode_minus_L"; then 22686 # Linking always hardcodes the temporary library directory. 22687 hardcode_action=relink 22688 else 22689 # We can link without hardcoding, and we can hardcode nonexisting dirs. 22690 hardcode_action=immediate 22691 fi 22692 else 22693 # We cannot hardcode anything, or else we can only hardcode existing 22694 # directories. 22695 hardcode_action=unsupported 22696 fi 22697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 22698 printf "%s\n" "$hardcode_action" >&6; } 22699 22700 if test relink = "$hardcode_action" || 22701 test yes = "$inherit_rpath"; then 22702 # Fast installation is not supported 22703 enable_fast_install=no 22704 elif test yes = "$shlibpath_overrides_runpath" || 22705 test no = "$enable_shared"; then 22706 # Fast installation is not necessary 22707 enable_fast_install=needless 22708 fi 22709 22710 22711 22712 22713 22714 22715 if test yes != "$enable_dlopen"; then 22716 enable_dlopen=unknown 22717 enable_dlopen_self=unknown 22718 enable_dlopen_self_static=unknown 22719 else 22720 lt_cv_dlopen=no 22721 lt_cv_dlopen_libs= 22722 22723 case $host_os in 22724 beos*) 22725 lt_cv_dlopen=load_add_on 22726 lt_cv_dlopen_libs= 22727 lt_cv_dlopen_self=yes 22728 ;; 22729 22730 mingw* | windows* | pw32* | cegcc*) 22731 lt_cv_dlopen=LoadLibrary 22732 lt_cv_dlopen_libs= 22733 ;; 22734 22735 cygwin*) 22736 lt_cv_dlopen=dlopen 22737 lt_cv_dlopen_libs= 22738 ;; 22739 22740 darwin*) 22741 # if libdl is installed we need to link against it 22742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 22743 printf %s "checking for dlopen in -ldl... " >&6; } 22744 if test ${ac_cv_lib_dl_dlopen+y} 22745 then : 22746 printf %s "(cached) " >&6 22747 else case e in #( 22748 e) ac_check_lib_save_LIBS=$LIBS 22749 LIBS="-ldl $LIBS" 22750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22751 /* end confdefs.h. */ 22752 22753 /* Override any GCC internal prototype to avoid an error. 22754 Use char because int might match the return type of a GCC 22755 builtin and then its argument prototype would still apply. 22756 The 'extern "C"' is for builds by C++ compilers; 22757 although this is not generally supported in C code supporting it here 22758 has little cost and some practical benefit (sr 110532). */ 22759 #ifdef __cplusplus 22760 extern "C" 22761 #endif 22762 char dlopen (void); 22763 int 22764 main (void) 22765 { 22766 return dlopen (); 22767 ; 22768 return 0; 22769 } 22770 _ACEOF 22771 if ac_fn_c_try_link "$LINENO" 22772 then : 22773 ac_cv_lib_dl_dlopen=yes 22774 else case e in #( 22775 e) ac_cv_lib_dl_dlopen=no ;; 22776 esac 22777 fi 22778 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22779 conftest$ac_exeext conftest.$ac_ext 22780 LIBS=$ac_check_lib_save_LIBS ;; 22781 esac 22782 fi 22783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 22784 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 22785 if test "x$ac_cv_lib_dl_dlopen" = xyes 22786 then : 22787 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 22788 else case e in #( 22789 e) 22790 lt_cv_dlopen=dyld 22791 lt_cv_dlopen_libs= 22792 lt_cv_dlopen_self=yes 22793 ;; 22794 esac 22795 fi 22796 22797 ;; 22798 22799 tpf*) 22800 # Don't try to run any link tests for TPF. We know it's impossible 22801 # because TPF is a cross-compiler, and we know how we open DSOs. 22802 lt_cv_dlopen=dlopen 22803 lt_cv_dlopen_libs= 22804 lt_cv_dlopen_self=no 22805 ;; 22806 22807 *) 22808 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 22809 if test "x$ac_cv_func_shl_load" = xyes 22810 then : 22811 lt_cv_dlopen=shl_load 22812 else case e in #( 22813 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 22814 printf %s "checking for shl_load in -ldld... " >&6; } 22815 if test ${ac_cv_lib_dld_shl_load+y} 22816 then : 22817 printf %s "(cached) " >&6 22818 else case e in #( 22819 e) ac_check_lib_save_LIBS=$LIBS 22820 LIBS="-ldld $LIBS" 22821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22822 /* end confdefs.h. */ 22823 22824 /* Override any GCC internal prototype to avoid an error. 22825 Use char because int might match the return type of a GCC 22826 builtin and then its argument prototype would still apply. 22827 The 'extern "C"' is for builds by C++ compilers; 22828 although this is not generally supported in C code supporting it here 22829 has little cost and some practical benefit (sr 110532). */ 22830 #ifdef __cplusplus 22831 extern "C" 22832 #endif 22833 char shl_load (void); 22834 int 22835 main (void) 22836 { 22837 return shl_load (); 22838 ; 22839 return 0; 22840 } 22841 _ACEOF 22842 if ac_fn_c_try_link "$LINENO" 22843 then : 22844 ac_cv_lib_dld_shl_load=yes 22845 else case e in #( 22846 e) ac_cv_lib_dld_shl_load=no ;; 22847 esac 22848 fi 22849 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22850 conftest$ac_exeext conftest.$ac_ext 22851 LIBS=$ac_check_lib_save_LIBS ;; 22852 esac 22853 fi 22854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 22855 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 22856 if test "x$ac_cv_lib_dld_shl_load" = xyes 22857 then : 22858 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 22859 else case e in #( 22860 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 22861 if test "x$ac_cv_func_dlopen" = xyes 22862 then : 22863 lt_cv_dlopen=dlopen 22864 else case e in #( 22865 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 22866 printf %s "checking for dlopen in -ldl... " >&6; } 22867 if test ${ac_cv_lib_dl_dlopen+y} 22868 then : 22869 printf %s "(cached) " >&6 22870 else case e in #( 22871 e) ac_check_lib_save_LIBS=$LIBS 22872 LIBS="-ldl $LIBS" 22873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22874 /* end confdefs.h. */ 22875 22876 /* Override any GCC internal prototype to avoid an error. 22877 Use char because int might match the return type of a GCC 22878 builtin and then its argument prototype would still apply. 22879 The 'extern "C"' is for builds by C++ compilers; 22880 although this is not generally supported in C code supporting it here 22881 has little cost and some practical benefit (sr 110532). */ 22882 #ifdef __cplusplus 22883 extern "C" 22884 #endif 22885 char dlopen (void); 22886 int 22887 main (void) 22888 { 22889 return dlopen (); 22890 ; 22891 return 0; 22892 } 22893 _ACEOF 22894 if ac_fn_c_try_link "$LINENO" 22895 then : 22896 ac_cv_lib_dl_dlopen=yes 22897 else case e in #( 22898 e) ac_cv_lib_dl_dlopen=no ;; 22899 esac 22900 fi 22901 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22902 conftest$ac_exeext conftest.$ac_ext 22903 LIBS=$ac_check_lib_save_LIBS ;; 22904 esac 22905 fi 22906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 22907 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 22908 if test "x$ac_cv_lib_dl_dlopen" = xyes 22909 then : 22910 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 22911 else case e in #( 22912 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 22913 printf %s "checking for dlopen in -lsvld... " >&6; } 22914 if test ${ac_cv_lib_svld_dlopen+y} 22915 then : 22916 printf %s "(cached) " >&6 22917 else case e in #( 22918 e) ac_check_lib_save_LIBS=$LIBS 22919 LIBS="-lsvld $LIBS" 22920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22921 /* end confdefs.h. */ 22922 22923 /* Override any GCC internal prototype to avoid an error. 22924 Use char because int might match the return type of a GCC 22925 builtin and then its argument prototype would still apply. 22926 The 'extern "C"' is for builds by C++ compilers; 22927 although this is not generally supported in C code supporting it here 22928 has little cost and some practical benefit (sr 110532). */ 22929 #ifdef __cplusplus 22930 extern "C" 22931 #endif 22932 char dlopen (void); 22933 int 22934 main (void) 22935 { 22936 return dlopen (); 22937 ; 22938 return 0; 22939 } 22940 _ACEOF 22941 if ac_fn_c_try_link "$LINENO" 22942 then : 22943 ac_cv_lib_svld_dlopen=yes 22944 else case e in #( 22945 e) ac_cv_lib_svld_dlopen=no ;; 22946 esac 22947 fi 22948 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22949 conftest$ac_exeext conftest.$ac_ext 22950 LIBS=$ac_check_lib_save_LIBS ;; 22951 esac 22952 fi 22953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 22954 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 22955 if test "x$ac_cv_lib_svld_dlopen" = xyes 22956 then : 22957 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 22958 else case e in #( 22959 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 22960 printf %s "checking for dld_link in -ldld... " >&6; } 22961 if test ${ac_cv_lib_dld_dld_link+y} 22962 then : 22963 printf %s "(cached) " >&6 22964 else case e in #( 22965 e) ac_check_lib_save_LIBS=$LIBS 22966 LIBS="-ldld $LIBS" 22967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22968 /* end confdefs.h. */ 22969 22970 /* Override any GCC internal prototype to avoid an error. 22971 Use char because int might match the return type of a GCC 22972 builtin and then its argument prototype would still apply. 22973 The 'extern "C"' is for builds by C++ compilers; 22974 although this is not generally supported in C code supporting it here 22975 has little cost and some practical benefit (sr 110532). */ 22976 #ifdef __cplusplus 22977 extern "C" 22978 #endif 22979 char dld_link (void); 22980 int 22981 main (void) 22982 { 22983 return dld_link (); 22984 ; 22985 return 0; 22986 } 22987 _ACEOF 22988 if ac_fn_c_try_link "$LINENO" 22989 then : 22990 ac_cv_lib_dld_dld_link=yes 22991 else case e in #( 22992 e) ac_cv_lib_dld_dld_link=no ;; 22993 esac 22994 fi 22995 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22996 conftest$ac_exeext conftest.$ac_ext 22997 LIBS=$ac_check_lib_save_LIBS ;; 22998 esac 22999 fi 23000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 23001 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 23002 if test "x$ac_cv_lib_dld_dld_link" = xyes 23003 then : 23004 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 23005 fi 23006 23007 ;; 23008 esac 23009 fi 23010 23011 ;; 23012 esac 23013 fi 23014 23015 ;; 23016 esac 23017 fi 23018 23019 ;; 23020 esac 23021 fi 23022 23023 ;; 23024 esac 23025 fi 23026 23027 ;; 23028 esac 23029 23030 if test no = "$lt_cv_dlopen"; then 23031 enable_dlopen=no 23032 else 23033 enable_dlopen=yes 23034 fi 23035 23036 case $lt_cv_dlopen in 23037 dlopen) 23038 save_CPPFLAGS=$CPPFLAGS 23039 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 23040 23041 save_LDFLAGS=$LDFLAGS 23042 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 23043 23044 save_LIBS=$LIBS 23045 LIBS="$lt_cv_dlopen_libs $LIBS" 23046 23047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 23048 printf %s "checking whether a program can dlopen itself... " >&6; } 23049 if test ${lt_cv_dlopen_self+y} 23050 then : 23051 printf %s "(cached) " >&6 23052 else case e in #( 23053 e) if test yes = "$cross_compiling"; then : 23054 lt_cv_dlopen_self=cross 23055 else 23056 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 23057 lt_status=$lt_dlunknown 23058 cat > conftest.$ac_ext <<_LT_EOF 23059 #line $LINENO "configure" 23060 #include "confdefs.h" 23061 23062 #if HAVE_DLFCN_H 23063 #include <dlfcn.h> 23064 #endif 23065 23066 #include <stdio.h> 23067 23068 #ifdef RTLD_GLOBAL 23069 # define LT_DLGLOBAL RTLD_GLOBAL 23070 #else 23071 # ifdef DL_GLOBAL 23072 # define LT_DLGLOBAL DL_GLOBAL 23073 # else 23074 # define LT_DLGLOBAL 0 23075 # endif 23076 #endif 23077 23078 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 23079 find out it does not work in some platform. */ 23080 #ifndef LT_DLLAZY_OR_NOW 23081 # ifdef RTLD_LAZY 23082 # define LT_DLLAZY_OR_NOW RTLD_LAZY 23083 # else 23084 # ifdef DL_LAZY 23085 # define LT_DLLAZY_OR_NOW DL_LAZY 23086 # else 23087 # ifdef RTLD_NOW 23088 # define LT_DLLAZY_OR_NOW RTLD_NOW 23089 # else 23090 # ifdef DL_NOW 23091 # define LT_DLLAZY_OR_NOW DL_NOW 23092 # else 23093 # define LT_DLLAZY_OR_NOW 0 23094 # endif 23095 # endif 23096 # endif 23097 # endif 23098 #endif 23099 23100 /* When -fvisibility=hidden is used, assume the code has been annotated 23101 correspondingly for the symbols needed. */ 23102 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 23103 int fnord (void) __attribute__((visibility("default"))); 23104 #endif 23105 23106 int fnord (void) { return 42; } 23107 int main (void) 23108 { 23109 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 23110 int status = $lt_dlunknown; 23111 23112 if (self) 23113 { 23114 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 23115 else 23116 { 23117 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 23118 else puts (dlerror ()); 23119 } 23120 /* dlclose (self); */ 23121 } 23122 else 23123 puts (dlerror ()); 23124 23125 return status; 23126 } 23127 _LT_EOF 23128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 23129 (eval $ac_link) 2>&5 23130 ac_status=$? 23131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23132 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 23133 (./conftest; exit; ) >&5 2>/dev/null 23134 lt_status=$? 23135 case x$lt_status in 23136 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 23137 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 23138 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 23139 esac 23140 else : 23141 # compilation failed 23142 lt_cv_dlopen_self=no 23143 fi 23144 fi 23145 rm -fr conftest* 23146 23147 ;; 23148 esac 23149 fi 23150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 23151 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 23152 23153 if test yes = "$lt_cv_dlopen_self"; then 23154 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 23155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 23156 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 23157 if test ${lt_cv_dlopen_self_static+y} 23158 then : 23159 printf %s "(cached) " >&6 23160 else case e in #( 23161 e) if test yes = "$cross_compiling"; then : 23162 lt_cv_dlopen_self_static=cross 23163 else 23164 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 23165 lt_status=$lt_dlunknown 23166 cat > conftest.$ac_ext <<_LT_EOF 23167 #line $LINENO "configure" 23168 #include "confdefs.h" 23169 23170 #if HAVE_DLFCN_H 23171 #include <dlfcn.h> 23172 #endif 23173 23174 #include <stdio.h> 23175 23176 #ifdef RTLD_GLOBAL 23177 # define LT_DLGLOBAL RTLD_GLOBAL 23178 #else 23179 # ifdef DL_GLOBAL 23180 # define LT_DLGLOBAL DL_GLOBAL 23181 # else 23182 # define LT_DLGLOBAL 0 23183 # endif 23184 #endif 23185 23186 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 23187 find out it does not work in some platform. */ 23188 #ifndef LT_DLLAZY_OR_NOW 23189 # ifdef RTLD_LAZY 23190 # define LT_DLLAZY_OR_NOW RTLD_LAZY 23191 # else 23192 # ifdef DL_LAZY 23193 # define LT_DLLAZY_OR_NOW DL_LAZY 23194 # else 23195 # ifdef RTLD_NOW 23196 # define LT_DLLAZY_OR_NOW RTLD_NOW 23197 # else 23198 # ifdef DL_NOW 23199 # define LT_DLLAZY_OR_NOW DL_NOW 23200 # else 23201 # define LT_DLLAZY_OR_NOW 0 23202 # endif 23203 # endif 23204 # endif 23205 # endif 23206 #endif 23207 23208 /* When -fvisibility=hidden is used, assume the code has been annotated 23209 correspondingly for the symbols needed. */ 23210 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 23211 int fnord (void) __attribute__((visibility("default"))); 23212 #endif 23213 23214 int fnord (void) { return 42; } 23215 int main (void) 23216 { 23217 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 23218 int status = $lt_dlunknown; 23219 23220 if (self) 23221 { 23222 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 23223 else 23224 { 23225 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 23226 else puts (dlerror ()); 23227 } 23228 /* dlclose (self); */ 23229 } 23230 else 23231 puts (dlerror ()); 23232 23233 return status; 23234 } 23235 _LT_EOF 23236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 23237 (eval $ac_link) 2>&5 23238 ac_status=$? 23239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23240 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 23241 (./conftest; exit; ) >&5 2>/dev/null 23242 lt_status=$? 23243 case x$lt_status in 23244 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 23245 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 23246 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 23247 esac 23248 else : 23249 # compilation failed 23250 lt_cv_dlopen_self_static=no 23251 fi 23252 fi 23253 rm -fr conftest* 23254 23255 ;; 23256 esac 23257 fi 23258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 23259 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 23260 fi 23261 23262 CPPFLAGS=$save_CPPFLAGS 23263 LDFLAGS=$save_LDFLAGS 23264 LIBS=$save_LIBS 23265 ;; 23266 esac 23267 23268 case $lt_cv_dlopen_self in 23269 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 23270 *) enable_dlopen_self=unknown ;; 23271 esac 23272 23273 case $lt_cv_dlopen_self_static in 23274 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 23275 *) enable_dlopen_self_static=unknown ;; 23276 esac 23277 fi 23278 23279 23280 23281 23282 23283 23284 23285 23286 23287 23288 23289 23290 23291 23292 23293 23294 23295 striplib= 23296 old_striplib= 23297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 23298 printf %s "checking whether stripping libraries is possible... " >&6; } 23299 if test -z "$STRIP"; then 23300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23301 printf "%s\n" "no" >&6; } 23302 else 23303 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 23304 old_striplib="$STRIP --strip-debug" 23305 striplib="$STRIP --strip-unneeded" 23306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23307 printf "%s\n" "yes" >&6; } 23308 else 23309 case $host_os in 23310 darwin*) 23311 # FIXME - insert some real tests, host_os isn't really good enough 23312 striplib="$STRIP -x" 23313 old_striplib="$STRIP -S" 23314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23315 printf "%s\n" "yes" >&6; } 23316 ;; 23317 freebsd*) 23318 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 23319 old_striplib="$STRIP --strip-debug" 23320 striplib="$STRIP --strip-unneeded" 23321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23322 printf "%s\n" "yes" >&6; } 23323 else 23324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23325 printf "%s\n" "no" >&6; } 23326 fi 23327 ;; 23328 *) 23329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23330 printf "%s\n" "no" >&6; } 23331 ;; 23332 esac 23333 fi 23334 fi 23335 23336 23337 23338 23339 23340 23341 23342 23343 23344 23345 23346 23347 # Report what library types will actually be built 23348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 23349 printf %s "checking if libtool supports shared libraries... " >&6; } 23350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 23351 printf "%s\n" "$can_build_shared" >&6; } 23352 23353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 23354 printf %s "checking whether to build shared libraries... " >&6; } 23355 test no = "$can_build_shared" && enable_shared=no 23356 23357 # On AIX, shared libraries and static libraries use the same namespace, and 23358 # are all built from PIC. 23359 case $host_os in 23360 aix3*) 23361 test yes = "$enable_shared" && enable_static=no 23362 if test -n "$RANLIB"; then 23363 archive_cmds="$archive_cmds~\$RANLIB \$lib" 23364 postinstall_cmds='$RANLIB $lib' 23365 fi 23366 ;; 23367 23368 aix[4-9]*) 23369 if test ia64 != "$host_cpu"; then 23370 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 23371 yes,aix,yes) ;; # shared object as lib.so file only 23372 yes,svr4,*) ;; # shared object as lib.so archive member only 23373 yes,*) enable_static=no ;; # shared object in lib.a archive as well 23374 esac 23375 fi 23376 ;; 23377 esac 23378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 23379 printf "%s\n" "$enable_shared" >&6; } 23380 23381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 23382 printf %s "checking whether to build static libraries... " >&6; } 23383 # Make sure either enable_shared or enable_static is yes. 23384 test yes = "$enable_shared" || enable_static=yes 23385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 23386 printf "%s\n" "$enable_static" >&6; } 23387 23388 23389 23390 23391 fi 23392 ac_ext=c 23393 ac_cpp='$CPP $CPPFLAGS' 23394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23396 ac_compiler_gnu=$ac_cv_c_compiler_gnu 23397 23398 CC=$lt_save_CC 23399 23400 23401 23402 23403 23404 23405 23406 23407 23408 23409 23410 23411 23412 23413 23414 ac_config_commands="$ac_config_commands libtool" 23415 23416 23417 23418 23419 # Only expand once: 23420 23421 23422 23423 23424 23425 23426 23427 23428 23429 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 23430 if test -n "$ac_tool_prefix"; then 23431 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 23432 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 23433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23434 printf %s "checking for $ac_word... " >&6; } 23435 if test ${ac_cv_path_PKG_CONFIG+y} 23436 then : 23437 printf %s "(cached) " >&6 23438 else case e in #( 23439 e) case $PKG_CONFIG in 23440 [\\/]* | ?:[\\/]*) 23441 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 23442 ;; 23443 *) 23444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23445 for as_dir in $PATH 23446 do 23447 IFS=$as_save_IFS 23448 case $as_dir in #((( 23449 '') as_dir=./ ;; 23450 */) ;; 23451 *) as_dir=$as_dir/ ;; 23452 esac 23453 for ac_exec_ext in '' $ac_executable_extensions; do 23454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23455 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 23456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23457 break 2 23458 fi 23459 done 23460 done 23461 IFS=$as_save_IFS 23462 23463 ;; 23464 esac ;; 23465 esac 23466 fi 23467 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 23468 if test -n "$PKG_CONFIG"; then 23469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 23470 printf "%s\n" "$PKG_CONFIG" >&6; } 23471 else 23472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23473 printf "%s\n" "no" >&6; } 23474 fi 23475 23476 23477 fi 23478 if test -z "$ac_cv_path_PKG_CONFIG"; then 23479 ac_pt_PKG_CONFIG=$PKG_CONFIG 23480 # Extract the first word of "pkg-config", so it can be a program name with args. 23481 set dummy pkg-config; ac_word=$2 23482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23483 printf %s "checking for $ac_word... " >&6; } 23484 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 23485 then : 23486 printf %s "(cached) " >&6 23487 else case e in #( 23488 e) case $ac_pt_PKG_CONFIG in 23489 [\\/]* | ?:[\\/]*) 23490 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 23491 ;; 23492 *) 23493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23494 for as_dir in $PATH 23495 do 23496 IFS=$as_save_IFS 23497 case $as_dir in #((( 23498 '') as_dir=./ ;; 23499 */) ;; 23500 *) as_dir=$as_dir/ ;; 23501 esac 23502 for ac_exec_ext in '' $ac_executable_extensions; do 23503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23504 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 23505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23506 break 2 23507 fi 23508 done 23509 done 23510 IFS=$as_save_IFS 23511 23512 ;; 23513 esac ;; 23514 esac 23515 fi 23516 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 23517 if test -n "$ac_pt_PKG_CONFIG"; then 23518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 23519 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 23520 else 23521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23522 printf "%s\n" "no" >&6; } 23523 fi 23524 23525 if test "x$ac_pt_PKG_CONFIG" = x; then 23526 PKG_CONFIG="" 23527 else 23528 case $cross_compiling:$ac_tool_warned in 23529 yes:) 23530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 23531 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 23532 ac_tool_warned=yes ;; 23533 esac 23534 PKG_CONFIG=$ac_pt_PKG_CONFIG 23535 fi 23536 else 23537 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 23538 fi 23539 23540 fi 23541 if test -n "$PKG_CONFIG"; then 23542 _pkg_min_version=0.9.0 23543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 23544 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 23545 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 23546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23547 printf "%s\n" "yes" >&6; } 23548 else 23549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23550 printf "%s\n" "no" >&6; } 23551 PKG_CONFIG="" 23552 fi 23553 fi 23554 if test -z "$PKG_CONFIG"; then 23555 as_fn_error $? "pkg-config not found" "$LINENO" 5 23556 fi 23557 for ac_prog in flex lex 23558 do 23559 # Extract the first word of "$ac_prog", so it can be a program name with args. 23560 set dummy $ac_prog; ac_word=$2 23561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23562 printf %s "checking for $ac_word... " >&6; } 23563 if test ${ac_cv_prog_LEX+y} 23564 then : 23565 printf %s "(cached) " >&6 23566 else case e in #( 23567 e) if test -n "$LEX"; then 23568 ac_cv_prog_LEX="$LEX" # Let the user override the test. 23569 else 23570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23571 for as_dir in $PATH 23572 do 23573 IFS=$as_save_IFS 23574 case $as_dir in #((( 23575 '') as_dir=./ ;; 23576 */) ;; 23577 *) as_dir=$as_dir/ ;; 23578 esac 23579 for ac_exec_ext in '' $ac_executable_extensions; do 23580 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23581 ac_cv_prog_LEX="$ac_prog" 23582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23583 break 2 23584 fi 23585 done 23586 done 23587 IFS=$as_save_IFS 23588 23589 fi ;; 23590 esac 23591 fi 23592 LEX=$ac_cv_prog_LEX 23593 if test -n "$LEX"; then 23594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 23595 printf "%s\n" "$LEX" >&6; } 23596 else 23597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23598 printf "%s\n" "no" >&6; } 23599 fi 23600 23601 23602 test -n "$LEX" && break 23603 done 23604 test -n "$LEX" || LEX=":" 23605 23606 if test "x$LEX" != "x:"; then 23607 cat >conftest.l <<_ACEOF 23608 %{ 23609 #ifdef __cplusplus 23610 extern "C" 23611 #endif 23612 int yywrap(void); 23613 %} 23614 %% 23615 a { ECHO; } 23616 b { REJECT; } 23617 c { yymore (); } 23618 d { yyless (1); } 23619 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 23620 #ifdef __cplusplus 23621 yyless ((yyinput () != 0)); 23622 #else 23623 yyless ((input () != 0)); 23624 #endif 23625 } 23626 f { unput (yytext[0]); } 23627 . { BEGIN INITIAL; } 23628 %% 23629 #ifdef YYTEXT_POINTER 23630 extern char *yytext; 23631 #endif 23632 int 23633 yywrap (void) 23634 { 23635 return 1; 23636 } 23637 int 23638 main (void) 23639 { 23640 return ! yylex (); 23641 } 23642 _ACEOF 23643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5 23644 printf %s "checking for lex output file root... " >&6; } 23645 if test ${ac_cv_prog_lex_root+y} 23646 then : 23647 printf %s "(cached) " >&6 23648 else case e in #( 23649 e) 23650 ac_cv_prog_lex_root=unknown 23651 { { ac_try="$LEX conftest.l" 23652 case "(($ac_try" in 23653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23654 *) ac_try_echo=$ac_try;; 23655 esac 23656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 23657 printf "%s\n" "$ac_try_echo"; } >&5 23658 (eval "$LEX conftest.l") 2>&5 23659 ac_status=$? 23660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23661 test $ac_status = 0; } && 23662 if test -f lex.yy.c; then 23663 ac_cv_prog_lex_root=lex.yy 23664 elif test -f lexyy.c; then 23665 ac_cv_prog_lex_root=lexyy 23666 fi ;; 23667 esac 23668 fi 23669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 23670 printf "%s\n" "$ac_cv_prog_lex_root" >&6; } 23671 if test "$ac_cv_prog_lex_root" = unknown 23672 then : 23673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5 23674 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;} 23675 LEX=: LEXLIB= 23676 fi 23677 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 23678 23679 if test ${LEXLIB+y} 23680 then : 23681 23682 else case e in #( 23683 e) 23684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5 23685 printf %s "checking for lex library... " >&6; } 23686 if test ${ac_cv_lib_lex+y} 23687 then : 23688 printf %s "(cached) " >&6 23689 else case e in #( 23690 e) 23691 ac_save_LIBS="$LIBS" 23692 ac_found=false 23693 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do 23694 case $ac_cv_lib_lex in #( 23695 'none needed') : 23696 ;; #( 23697 'not found') : 23698 break ;; #( 23699 *) : 23700 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #( 23701 *) : 23702 ;; 23703 esac 23704 23705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23706 /* end confdefs.h. */ 23707 `cat $LEX_OUTPUT_ROOT.c` 23708 _ACEOF 23709 if ac_fn_c_try_link "$LINENO" 23710 then : 23711 ac_found=: 23712 fi 23713 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23714 conftest$ac_exeext conftest.$ac_ext 23715 if $ac_found; then 23716 break 23717 fi 23718 done 23719 LIBS="$ac_save_LIBS" 23720 ;; 23721 esac 23722 fi 23723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 23724 printf "%s\n" "$ac_cv_lib_lex" >&6; } 23725 if test "$ac_cv_lib_lex" = 'not found' 23726 then : 23727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5 23728 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;} 23729 LEX=: LEXLIB= 23730 elif test "$ac_cv_lib_lex" = 'none needed' 23731 then : 23732 LEXLIB='' 23733 else case e in #( 23734 e) LEXLIB=$ac_cv_lib_lex ;; 23735 esac 23736 fi 23737 ac_save_LIBS="$LIBS" 23738 LIBS= 23739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5 23740 printf %s "checking for library containing yywrap... " >&6; } 23741 if test ${ac_cv_search_yywrap+y} 23742 then : 23743 printf %s "(cached) " >&6 23744 else case e in #( 23745 e) ac_func_search_save_LIBS=$LIBS 23746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23747 /* end confdefs.h. */ 23748 23749 /* Override any GCC internal prototype to avoid an error. 23750 Use char because int might match the return type of a GCC 23751 builtin and then its argument prototype would still apply. 23752 The 'extern "C"' is for builds by C++ compilers; 23753 although this is not generally supported in C code supporting it here 23754 has little cost and some practical benefit (sr 110532). */ 23755 #ifdef __cplusplus 23756 extern "C" 23757 #endif 23758 char yywrap (void); 23759 int 23760 main (void) 23761 { 23762 return yywrap (); 23763 ; 23764 return 0; 23765 } 23766 _ACEOF 23767 for ac_lib in '' fl l 23768 do 23769 if test -z "$ac_lib"; then 23770 ac_res="none required" 23771 else 23772 ac_res=-l$ac_lib 23773 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23774 fi 23775 if ac_fn_c_try_link "$LINENO" 23776 then : 23777 ac_cv_search_yywrap=$ac_res 23778 fi 23779 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23780 conftest$ac_exeext 23781 if test ${ac_cv_search_yywrap+y} 23782 then : 23783 break 23784 fi 23785 done 23786 if test ${ac_cv_search_yywrap+y} 23787 then : 23788 23789 else case e in #( 23790 e) ac_cv_search_yywrap=no ;; 23791 esac 23792 fi 23793 rm conftest.$ac_ext 23794 LIBS=$ac_func_search_save_LIBS ;; 23795 esac 23796 fi 23797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5 23798 printf "%s\n" "$ac_cv_search_yywrap" >&6; } 23799 ac_res=$ac_cv_search_yywrap 23800 if test "$ac_res" != no 23801 then : 23802 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23803 LEXLIB="$LIBS" 23804 fi 23805 23806 LIBS="$ac_save_LIBS" ;; 23807 esac 23808 fi 23809 23810 23811 if test "$LEX" != : 23812 then : 23813 23814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 23815 printf %s "checking whether yytext is a pointer... " >&6; } 23816 if test ${ac_cv_prog_lex_yytext_pointer+y} 23817 then : 23818 printf %s "(cached) " >&6 23819 else case e in #( 23820 e) # POSIX says lex can declare yytext either as a pointer or an array; the 23821 # default is implementation-dependent. Figure out which it is, since 23822 # not all implementations provide the %pointer and %array declarations. 23823 ac_cv_prog_lex_yytext_pointer=no 23824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23825 /* end confdefs.h. */ 23826 23827 #define YYTEXT_POINTER 1 23828 `cat $LEX_OUTPUT_ROOT.c` 23829 _ACEOF 23830 if ac_fn_c_try_compile "$LINENO" 23831 then : 23832 ac_cv_prog_lex_yytext_pointer=yes 23833 fi 23834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23835 ;; 23836 esac 23837 fi 23838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 23839 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; } 23840 if test $ac_cv_prog_lex_yytext_pointer = yes; then 23841 23842 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h 23843 23844 fi 23845 23846 fi 23847 rm -f conftest.l $LEX_OUTPUT_ROOT.c 23848 23849 fi 23850 for ac_prog in 'bison -y' byacc 23851 do 23852 # Extract the first word of "$ac_prog", so it can be a program name with args. 23853 set dummy $ac_prog; ac_word=$2 23854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23855 printf %s "checking for $ac_word... " >&6; } 23856 if test ${ac_cv_prog_YACC+y} 23857 then : 23858 printf %s "(cached) " >&6 23859 else case e in #( 23860 e) if test -n "$YACC"; then 23861 ac_cv_prog_YACC="$YACC" # Let the user override the test. 23862 else 23863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23864 for as_dir in $PATH 23865 do 23866 IFS=$as_save_IFS 23867 case $as_dir in #((( 23868 '') as_dir=./ ;; 23869 */) ;; 23870 *) as_dir=$as_dir/ ;; 23871 esac 23872 for ac_exec_ext in '' $ac_executable_extensions; do 23873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23874 ac_cv_prog_YACC="$ac_prog" 23875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23876 break 2 23877 fi 23878 done 23879 done 23880 IFS=$as_save_IFS 23881 23882 fi ;; 23883 esac 23884 fi 23885 YACC=$ac_cv_prog_YACC 23886 if test -n "$YACC"; then 23887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 23888 printf "%s\n" "$YACC" >&6; } 23889 else 23890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23891 printf "%s\n" "no" >&6; } 23892 fi 23893 23894 23895 test -n "$YACC" && break 23896 done 23897 test -n "$YACC" || YACC="yacc" 23898 23899 # Check whether --enable-largefile was given. 23900 if test ${enable_largefile+y} 23901 then : 23902 enableval=$enable_largefile; 23903 fi 23904 if test "$enable_largefile,$enable_year2038" != no,no 23905 then : 23906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 23907 printf %s "checking for $CC option to enable large file support... " >&6; } 23908 if test ${ac_cv_sys_largefile_opts+y} 23909 then : 23910 printf %s "(cached) " >&6 23911 else case e in #( 23912 e) ac_save_CC="$CC" 23913 ac_opt_found=no 23914 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 23915 if test x"$ac_opt" != x"none needed" 23916 then : 23917 CC="$ac_save_CC $ac_opt" 23918 fi 23919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23920 /* end confdefs.h. */ 23921 #include <sys/types.h> 23922 #ifndef FTYPE 23923 # define FTYPE off_t 23924 #endif 23925 /* Check that FTYPE can represent 2**63 - 1 correctly. 23926 We can't simply define LARGE_FTYPE to be 9223372036854775807, 23927 since some C++ compilers masquerading as C compilers 23928 incorrectly reject 9223372036854775807. */ 23929 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 23930 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 23931 && LARGE_FTYPE % 2147483647 == 1) 23932 ? 1 : -1]; 23933 int 23934 main (void) 23935 { 23936 23937 ; 23938 return 0; 23939 } 23940 _ACEOF 23941 if ac_fn_c_try_compile "$LINENO" 23942 then : 23943 if test x"$ac_opt" = x"none needed" 23944 then : 23945 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 23946 CC="$CC -DFTYPE=ino_t" 23947 if ac_fn_c_try_compile "$LINENO" 23948 then : 23949 23950 else case e in #( 23951 e) CC="$CC -D_FILE_OFFSET_BITS=64" 23952 if ac_fn_c_try_compile "$LINENO" 23953 then : 23954 ac_opt='-D_FILE_OFFSET_BITS=64' 23955 fi 23956 rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 23957 esac 23958 fi 23959 rm -f core conftest.err conftest.$ac_objext conftest.beam 23960 fi 23961 ac_cv_sys_largefile_opts=$ac_opt 23962 ac_opt_found=yes 23963 fi 23964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23965 test $ac_opt_found = no || break 23966 done 23967 CC="$ac_save_CC" 23968 23969 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 23970 esac 23971 fi 23972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 23973 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 23974 23975 ac_have_largefile=yes 23976 case $ac_cv_sys_largefile_opts in #( 23977 "none needed") : 23978 ;; #( 23979 "supported through gnulib") : 23980 ;; #( 23981 "support not detected") : 23982 ac_have_largefile=no ;; #( 23983 "-D_FILE_OFFSET_BITS=64") : 23984 23985 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 23986 ;; #( 23987 "-D_LARGE_FILES=1") : 23988 23989 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 23990 ;; #( 23991 "-n32") : 23992 CC="$CC -n32" ;; #( 23993 *) : 23994 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 23995 esac 23996 23997 if test "$enable_year2038" != no 23998 then : 23999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 24000 printf %s "checking for $CC option for timestamps after 2038... " >&6; } 24001 if test ${ac_cv_sys_year2038_opts+y} 24002 then : 24003 printf %s "(cached) " >&6 24004 else case e in #( 24005 e) ac_save_CPPFLAGS="$CPPFLAGS" 24006 ac_opt_found=no 24007 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 24008 if test x"$ac_opt" != x"none needed" 24009 then : 24010 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 24011 fi 24012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24013 /* end confdefs.h. */ 24014 24015 #include <time.h> 24016 /* Check that time_t can represent 2**32 - 1 correctly. */ 24017 #define LARGE_TIME_T \\ 24018 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 24019 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 24020 && LARGE_TIME_T % 65537 == 0) 24021 ? 1 : -1]; 24022 24023 int 24024 main (void) 24025 { 24026 24027 ; 24028 return 0; 24029 } 24030 _ACEOF 24031 if ac_fn_c_try_compile "$LINENO" 24032 then : 24033 ac_cv_sys_year2038_opts="$ac_opt" 24034 ac_opt_found=yes 24035 fi 24036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24037 test $ac_opt_found = no || break 24038 done 24039 CPPFLAGS="$ac_save_CPPFLAGS" 24040 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 24041 esac 24042 fi 24043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 24044 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 24045 24046 ac_have_year2038=yes 24047 case $ac_cv_sys_year2038_opts in #( 24048 "none needed") : 24049 ;; #( 24050 "support not detected") : 24051 ac_have_year2038=no ;; #( 24052 "-D_TIME_BITS=64") : 24053 24054 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 24055 ;; #( 24056 "-D__MINGW_USE_VC2005_COMPAT") : 24057 24058 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 24059 ;; #( 24060 "-U_USE_32_BIT_TIME_T"*) : 24061 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 24062 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 24063 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 24064 will stop working after mid-January 2038. Remove 24065 _USE_32BIT_TIME_T from the compiler flags. 24066 See 'config.log' for more details" "$LINENO" 5; } ;; #( 24067 *) : 24068 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 24069 esac 24070 24071 fi 24072 24073 fi 24074 ac_ext=c 24075 ac_cpp='$CPP $CPPFLAGS' 24076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24078 ac_compiler_gnu=$ac_cv_c_compiler_gnu 24079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 24080 printf %s "checking how to run the C preprocessor... " >&6; } 24081 # On Suns, sometimes $CPP names a directory. 24082 if test -n "$CPP" && test -d "$CPP"; then 24083 CPP= 24084 fi 24085 if test -z "$CPP"; then 24086 if test ${ac_cv_prog_CPP+y} 24087 then : 24088 printf %s "(cached) " >&6 24089 else case e in #( 24090 e) # Double quotes because $CC needs to be expanded 24091 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 24092 do 24093 ac_preproc_ok=false 24094 for ac_c_preproc_warn_flag in '' yes 24095 do 24096 # Use a header file that comes with gcc, so configuring glibc 24097 # with a fresh cross-compiler works. 24098 # On the NeXT, cc -E runs the code through the compiler's parser, 24099 # not just through cpp. "Syntax error" is here to catch this case. 24100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24101 /* end confdefs.h. */ 24102 #include <limits.h> 24103 Syntax error 24104 _ACEOF 24105 if ac_fn_c_try_cpp "$LINENO" 24106 then : 24107 24108 else case e in #( 24109 e) # Broken: fails on valid input. 24110 continue ;; 24111 esac 24112 fi 24113 rm -f conftest.err conftest.i conftest.$ac_ext 24114 24115 # OK, works on sane cases. Now check whether nonexistent headers 24116 # can be detected and how. 24117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24118 /* end confdefs.h. */ 24119 #include <ac_nonexistent.h> 24120 _ACEOF 24121 if ac_fn_c_try_cpp "$LINENO" 24122 then : 24123 # Broken: success on invalid input. 24124 continue 24125 else case e in #( 24126 e) # Passes both tests. 24127 ac_preproc_ok=: 24128 break ;; 24129 esac 24130 fi 24131 rm -f conftest.err conftest.i conftest.$ac_ext 24132 24133 done 24134 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 24135 rm -f conftest.i conftest.err conftest.$ac_ext 24136 if $ac_preproc_ok 24137 then : 24138 break 24139 fi 24140 24141 done 24142 ac_cv_prog_CPP=$CPP 24143 ;; 24144 esac 24145 fi 24146 CPP=$ac_cv_prog_CPP 24147 else 24148 ac_cv_prog_CPP=$CPP 24149 fi 24150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 24151 printf "%s\n" "$CPP" >&6; } 24152 ac_preproc_ok=false 24153 for ac_c_preproc_warn_flag in '' yes 24154 do 24155 # Use a header file that comes with gcc, so configuring glibc 24156 # with a fresh cross-compiler works. 24157 # On the NeXT, cc -E runs the code through the compiler's parser, 24158 # not just through cpp. "Syntax error" is here to catch this case. 24159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24160 /* end confdefs.h. */ 24161 #include <limits.h> 24162 Syntax error 24163 _ACEOF 24164 if ac_fn_c_try_cpp "$LINENO" 24165 then : 24166 24167 else case e in #( 24168 e) # Broken: fails on valid input. 24169 continue ;; 24170 esac 24171 fi 24172 rm -f conftest.err conftest.i conftest.$ac_ext 24173 24174 # OK, works on sane cases. Now check whether nonexistent headers 24175 # can be detected and how. 24176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24177 /* end confdefs.h. */ 24178 #include <ac_nonexistent.h> 24179 _ACEOF 24180 if ac_fn_c_try_cpp "$LINENO" 24181 then : 24182 # Broken: success on invalid input. 24183 continue 24184 else case e in #( 24185 e) # Passes both tests. 24186 ac_preproc_ok=: 24187 break ;; 24188 esac 24189 fi 24190 rm -f conftest.err conftest.i conftest.$ac_ext 24191 24192 done 24193 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 24194 rm -f conftest.i conftest.err conftest.$ac_ext 24195 if $ac_preproc_ok 24196 then : 24197 24198 else case e in #( 24199 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 24200 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 24201 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 24202 See 'config.log' for more details" "$LINENO" 5; } ;; 24203 esac 24204 fi 24205 24206 ac_ext=c 24207 ac_cpp='$CPP $CPPFLAGS' 24208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24210 ac_compiler_gnu=$ac_cv_c_compiler_gnu 24211 24212 24213 24214 if test -n "$ac_tool_prefix"; then 24215 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. 24216 set dummy ${ac_tool_prefix}cpp; ac_word=$2 24217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24218 printf %s "checking for $ac_word... " >&6; } 24219 if test ${ac_cv_path_RAWCPP+y} 24220 then : 24221 printf %s "(cached) " >&6 24222 else case e in #( 24223 e) case $RAWCPP in 24224 [\\/]* | ?:[\\/]*) 24225 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 24226 ;; 24227 *) 24228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24229 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 24230 for as_dir in $as_dummy 24231 do 24232 IFS=$as_save_IFS 24233 case $as_dir in #((( 24234 '') as_dir=./ ;; 24235 */) ;; 24236 *) as_dir=$as_dir/ ;; 24237 esac 24238 for ac_exec_ext in '' $ac_executable_extensions; do 24239 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 24240 ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext" 24241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 24242 break 2 24243 fi 24244 done 24245 done 24246 IFS=$as_save_IFS 24247 24248 ;; 24249 esac ;; 24250 esac 24251 fi 24252 RAWCPP=$ac_cv_path_RAWCPP 24253 if test -n "$RAWCPP"; then 24254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 24255 printf "%s\n" "$RAWCPP" >&6; } 24256 else 24257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24258 printf "%s\n" "no" >&6; } 24259 fi 24260 24261 24262 fi 24263 if test -z "$ac_cv_path_RAWCPP"; then 24264 ac_pt_RAWCPP=$RAWCPP 24265 # Extract the first word of "cpp", so it can be a program name with args. 24266 set dummy cpp; ac_word=$2 24267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24268 printf %s "checking for $ac_word... " >&6; } 24269 if test ${ac_cv_path_ac_pt_RAWCPP+y} 24270 then : 24271 printf %s "(cached) " >&6 24272 else case e in #( 24273 e) case $ac_pt_RAWCPP in 24274 [\\/]* | ?:[\\/]*) 24275 ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path. 24276 ;; 24277 *) 24278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24279 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 24280 for as_dir in $as_dummy 24281 do 24282 IFS=$as_save_IFS 24283 case $as_dir in #((( 24284 '') as_dir=./ ;; 24285 */) ;; 24286 *) as_dir=$as_dir/ ;; 24287 esac 24288 for ac_exec_ext in '' $ac_executable_extensions; do 24289 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 24290 ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext" 24291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 24292 break 2 24293 fi 24294 done 24295 done 24296 IFS=$as_save_IFS 24297 24298 ;; 24299 esac ;; 24300 esac 24301 fi 24302 ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP 24303 if test -n "$ac_pt_RAWCPP"; then 24304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5 24305 printf "%s\n" "$ac_pt_RAWCPP" >&6; } 24306 else 24307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24308 printf "%s\n" "no" >&6; } 24309 fi 24310 24311 if test "x$ac_pt_RAWCPP" = x; then 24312 RAWCPP="${CPP}" 24313 else 24314 case $cross_compiling:$ac_tool_warned in 24315 yes:) 24316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24317 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24318 ac_tool_warned=yes ;; 24319 esac 24320 RAWCPP=$ac_pt_RAWCPP 24321 fi 24322 else 24323 RAWCPP="$ac_cv_path_RAWCPP" 24324 fi 24325 24326 24327 # Check for flag to avoid builtin definitions - assumes unix is predefined, 24328 # which is not the best choice for supporting other OS'es, but covers most 24329 # of the ones we need for now. 24330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 24331 printf %s "checking if $RAWCPP requires -undef... " >&6; } 24332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24333 /* end confdefs.h. */ 24334 Does cpp redefine unix ? 24335 _ACEOF 24336 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 24337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24338 printf "%s\n" "no" >&6; } 24339 else 24340 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 24341 RAWCPPFLAGS=-undef 24342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24343 printf "%s\n" "yes" >&6; } 24344 # under Cygwin unix is still defined even with -undef 24345 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 24346 RAWCPPFLAGS="-undef -ansi" 24347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 24348 printf "%s\n" "yes, with -ansi" >&6; } 24349 else 24350 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 24351 fi 24352 fi 24353 rm -f conftest.$ac_ext 24354 24355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 24356 printf %s "checking if $RAWCPP requires -traditional... " >&6; } 24357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24358 /* end confdefs.h. */ 24359 Does cpp preserve "whitespace"? 24360 _ACEOF 24361 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve "'` -eq 1 ; then 24362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24363 printf "%s\n" "no" >&6; } 24364 else 24365 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve "'` -eq 1 ; then 24366 TRADITIONALCPPFLAGS="-traditional" 24367 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 24368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24369 printf "%s\n" "yes" >&6; } 24370 else 24371 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 24372 fi 24373 fi 24374 rm -f conftest.$ac_ext 24375 24376 24377 24378 24379 # Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow 24380 # easier overrides at build time. 24381 XSERVER_CFLAGS='$(CWARNFLAGS)' 24382 24383 if test "x$GCC" = xyes ; then 24384 XSERVER_CFLAGS="$XSERVER_CFLAGS -fno-strict-aliasing" 24385 fi 24386 24387 24388 # Check whether --with-dtrace was given. 24389 if test ${with_dtrace+y} 24390 then : 24391 withval=$with_dtrace; WDTRACE=$withval 24392 else case e in #( 24393 e) WDTRACE=auto ;; 24394 esac 24395 fi 24396 24397 if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then 24398 # Extract the first word of "dtrace", so it can be a program name with args. 24399 set dummy dtrace; ac_word=$2 24400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24401 printf %s "checking for $ac_word... " >&6; } 24402 if test ${ac_cv_path_DTRACE+y} 24403 then : 24404 printf %s "(cached) " >&6 24405 else case e in #( 24406 e) case $DTRACE in 24407 [\\/]* | ?:[\\/]*) 24408 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 24409 ;; 24410 *) 24411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24412 as_dummy="$PATH:/usr/sbin" 24413 for as_dir in $as_dummy 24414 do 24415 IFS=$as_save_IFS 24416 case $as_dir in #((( 24417 '') as_dir=./ ;; 24418 */) ;; 24419 *) as_dir=$as_dir/ ;; 24420 esac 24421 for ac_exec_ext in '' $ac_executable_extensions; do 24422 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 24423 ac_cv_path_DTRACE="$as_dir$ac_word$ac_exec_ext" 24424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 24425 break 2 24426 fi 24427 done 24428 done 24429 IFS=$as_save_IFS 24430 24431 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found" 24432 ;; 24433 esac ;; 24434 esac 24435 fi 24436 DTRACE=$ac_cv_path_DTRACE 24437 if test -n "$DTRACE"; then 24438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 24439 printf "%s\n" "$DTRACE" >&6; } 24440 else 24441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24442 printf "%s\n" "no" >&6; } 24443 fi 24444 24445 24446 if test "x$DTRACE" = "xnot_found" ; then 24447 if test "x$WDTRACE" = "xyes" ; then 24448 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 24449 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 24450 as_fn_error $? "dtrace requested but not found 24451 See 'config.log' for more details" "$LINENO" 5; } 24452 fi 24453 WDTRACE="no" 24454 else 24455 ac_fn_c_check_header_compile "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 24456 if test "x$ac_cv_header_sys_sdt_h" = xyes 24457 then : 24458 HAS_SDT_H="yes" 24459 else case e in #( 24460 e) HAS_SDT_H="no" ;; 24461 esac 24462 fi 24463 24464 if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then 24465 WDTRACE="no" 24466 fi 24467 fi 24468 fi 24469 if test "x$WDTRACE" != "xno" ; then 24470 24471 printf "%s\n" "#define XSERVER_DTRACE 1" >>confdefs.h 24472 24473 24474 # Solaris/OpenSolaris require dtrace -G to build dtrace probe information into 24475 # object files, and require linking with those as relocatable objects, not .a 24476 # archives. MacOS X handles all this in the normal compiler toolchain, and on 24477 # some releases (like Tiger), will error out on dtrace -G. For now, other 24478 # platforms with Dtrace ports are assumed to support -G (the FreeBSD and Linux 24479 # ports appear to, based on my web searches, but have not yet been tested). 24480 case $host_os in 24481 darwin*) SPECIAL_DTRACE_OBJECTS=no ;; 24482 *) SPECIAL_DTRACE_OBJECTS=yes ;; 24483 esac 24484 fi 24485 if test "x$WDTRACE" != "xno"; then 24486 XSERVER_DTRACE_TRUE= 24487 XSERVER_DTRACE_FALSE='#' 24488 else 24489 XSERVER_DTRACE_TRUE='#' 24490 XSERVER_DTRACE_FALSE= 24491 fi 24492 24493 if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes"; then 24494 SPECIAL_DTRACE_OBJECTS_TRUE= 24495 SPECIAL_DTRACE_OBJECTS_FALSE='#' 24496 else 24497 SPECIAL_DTRACE_OBJECTS_TRUE='#' 24498 SPECIAL_DTRACE_OBJECTS_FALSE= 24499 fi 24500 24501 24502 ac_header_dirent=no 24503 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 24504 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"` 24505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 24506 printf %s "checking for $ac_hdr that defines DIR... " >&6; } 24507 if eval test \${$as_ac_Header+y} 24508 then : 24509 printf %s "(cached) " >&6 24510 else case e in #( 24511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24512 /* end confdefs.h. */ 24513 #include <sys/types.h> 24514 #include <$ac_hdr> 24515 24516 int 24517 main (void) 24518 { 24519 if ((DIR *) 0) 24520 return 0; 24521 ; 24522 return 0; 24523 } 24524 _ACEOF 24525 if ac_fn_c_try_compile "$LINENO" 24526 then : 24527 eval "$as_ac_Header=yes" 24528 else case e in #( 24529 e) eval "$as_ac_Header=no" ;; 24530 esac 24531 fi 24532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 24533 esac 24534 fi 24535 eval ac_res=\$$as_ac_Header 24536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 24537 printf "%s\n" "$ac_res" >&6; } 24538 if eval test \"x\$"$as_ac_Header"\" = x"yes" 24539 then : 24540 cat >>confdefs.h <<_ACEOF 24541 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1 24542 _ACEOF 24543 24544 ac_header_dirent=$ac_hdr; break 24545 fi 24546 24547 done 24548 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 24549 if test $ac_header_dirent = dirent.h; then 24550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 24551 printf %s "checking for library containing opendir... " >&6; } 24552 if test ${ac_cv_search_opendir+y} 24553 then : 24554 printf %s "(cached) " >&6 24555 else case e in #( 24556 e) ac_func_search_save_LIBS=$LIBS 24557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24558 /* end confdefs.h. */ 24559 24560 /* Override any GCC internal prototype to avoid an error. 24561 Use char because int might match the return type of a GCC 24562 builtin and then its argument prototype would still apply. 24563 The 'extern "C"' is for builds by C++ compilers; 24564 although this is not generally supported in C code supporting it here 24565 has little cost and some practical benefit (sr 110532). */ 24566 #ifdef __cplusplus 24567 extern "C" 24568 #endif 24569 char opendir (void); 24570 int 24571 main (void) 24572 { 24573 return opendir (); 24574 ; 24575 return 0; 24576 } 24577 _ACEOF 24578 for ac_lib in '' dir 24579 do 24580 if test -z "$ac_lib"; then 24581 ac_res="none required" 24582 else 24583 ac_res=-l$ac_lib 24584 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24585 fi 24586 if ac_fn_c_try_link "$LINENO" 24587 then : 24588 ac_cv_search_opendir=$ac_res 24589 fi 24590 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24591 conftest$ac_exeext 24592 if test ${ac_cv_search_opendir+y} 24593 then : 24594 break 24595 fi 24596 done 24597 if test ${ac_cv_search_opendir+y} 24598 then : 24599 24600 else case e in #( 24601 e) ac_cv_search_opendir=no ;; 24602 esac 24603 fi 24604 rm conftest.$ac_ext 24605 LIBS=$ac_func_search_save_LIBS ;; 24606 esac 24607 fi 24608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 24609 printf "%s\n" "$ac_cv_search_opendir" >&6; } 24610 ac_res=$ac_cv_search_opendir 24611 if test "$ac_res" != no 24612 then : 24613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24614 24615 fi 24616 24617 else 24618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 24619 printf %s "checking for library containing opendir... " >&6; } 24620 if test ${ac_cv_search_opendir+y} 24621 then : 24622 printf %s "(cached) " >&6 24623 else case e in #( 24624 e) ac_func_search_save_LIBS=$LIBS 24625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24626 /* end confdefs.h. */ 24627 24628 /* Override any GCC internal prototype to avoid an error. 24629 Use char because int might match the return type of a GCC 24630 builtin and then its argument prototype would still apply. 24631 The 'extern "C"' is for builds by C++ compilers; 24632 although this is not generally supported in C code supporting it here 24633 has little cost and some practical benefit (sr 110532). */ 24634 #ifdef __cplusplus 24635 extern "C" 24636 #endif 24637 char opendir (void); 24638 int 24639 main (void) 24640 { 24641 return opendir (); 24642 ; 24643 return 0; 24644 } 24645 _ACEOF 24646 for ac_lib in '' x 24647 do 24648 if test -z "$ac_lib"; then 24649 ac_res="none required" 24650 else 24651 ac_res=-l$ac_lib 24652 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24653 fi 24654 if ac_fn_c_try_link "$LINENO" 24655 then : 24656 ac_cv_search_opendir=$ac_res 24657 fi 24658 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24659 conftest$ac_exeext 24660 if test ${ac_cv_search_opendir+y} 24661 then : 24662 break 24663 fi 24664 done 24665 if test ${ac_cv_search_opendir+y} 24666 then : 24667 24668 else case e in #( 24669 e) ac_cv_search_opendir=no ;; 24670 esac 24671 fi 24672 rm conftest.$ac_ext 24673 LIBS=$ac_func_search_save_LIBS ;; 24674 esac 24675 fi 24676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 24677 printf "%s\n" "$ac_cv_search_opendir" >&6; } 24678 ac_res=$ac_cv_search_opendir 24679 if test "$ac_res" != no 24680 then : 24681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24682 24683 fi 24684 24685 fi 24686 24687 # Autoupdate added the next two lines to ensure that your configure 24688 # script's behavior did not change. They are probably safe to remove. 24689 24690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 24691 printf %s "checking for egrep... " >&6; } 24692 if test ${ac_cv_path_EGREP+y} 24693 then : 24694 printf %s "(cached) " >&6 24695 else case e in #( 24696 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 24697 then ac_cv_path_EGREP="$GREP -E" 24698 else 24699 if test -z "$EGREP"; then 24700 ac_path_EGREP_found=false 24701 # Loop through the user's path and test for each of PROGNAME-LIST 24702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 24704 do 24705 IFS=$as_save_IFS 24706 case $as_dir in #((( 24707 '') as_dir=./ ;; 24708 */) ;; 24709 *) as_dir=$as_dir/ ;; 24710 esac 24711 for ac_prog in egrep 24712 do 24713 for ac_exec_ext in '' $ac_executable_extensions; do 24714 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 24715 as_fn_executable_p "$ac_path_EGREP" || continue 24716 # Check for GNU ac_path_EGREP and select it if it is found. 24717 # Check for GNU $ac_path_EGREP 24718 case `"$ac_path_EGREP" --version 2>&1` in #( 24719 *GNU*) 24720 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 24721 #( 24722 *) 24723 ac_count=0 24724 printf %s 0123456789 >"conftest.in" 24725 while : 24726 do 24727 cat "conftest.in" "conftest.in" >"conftest.tmp" 24728 mv "conftest.tmp" "conftest.in" 24729 cp "conftest.in" "conftest.nl" 24730 printf "%s\n" 'EGREP' >> "conftest.nl" 24731 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 24732 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 24733 as_fn_arith $ac_count + 1 && ac_count=$as_val 24734 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 24735 # Best one so far, save it but keep looking for a better one 24736 ac_cv_path_EGREP="$ac_path_EGREP" 24737 ac_path_EGREP_max=$ac_count 24738 fi 24739 # 10*(2^10) chars as input seems more than enough 24740 test $ac_count -gt 10 && break 24741 done 24742 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 24743 esac 24744 24745 $ac_path_EGREP_found && break 3 24746 done 24747 done 24748 done 24749 IFS=$as_save_IFS 24750 if test -z "$ac_cv_path_EGREP"; then 24751 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 24752 fi 24753 else 24754 ac_cv_path_EGREP=$EGREP 24755 fi 24756 24757 fi ;; 24758 esac 24759 fi 24760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 24761 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 24762 EGREP="$ac_cv_path_EGREP" 24763 24764 EGREP_TRADITIONAL=$EGREP 24765 ac_cv_path_EGREP_TRADITIONAL=$EGREP 24766 24767 24768 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 24769 if test "x$ac_cv_header_fcntl_h" = xyes 24770 then : 24771 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 24772 24773 fi 24774 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 24775 if test "x$ac_cv_header_stdlib_h" = xyes 24776 then : 24777 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h 24778 24779 fi 24780 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 24781 if test "x$ac_cv_header_string_h" = xyes 24782 then : 24783 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h 24784 24785 fi 24786 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 24787 if test "x$ac_cv_header_unistd_h" = xyes 24788 then : 24789 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 24790 24791 fi 24792 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 24793 if test "x$ac_cv_header_dlfcn_h" = xyes 24794 then : 24795 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 24796 24797 fi 24798 ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" 24799 if test "x$ac_cv_header_stropts_h" = xyes 24800 then : 24801 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h 24802 24803 fi 24804 ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" 24805 if test "x$ac_cv_header_fnmatch_h" = xyes 24806 then : 24807 printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h 24808 24809 fi 24810 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 24811 if test "x$ac_cv_header_sys_mkdev_h" = xyes 24812 then : 24813 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h 24814 24815 fi 24816 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 24817 if test "x$ac_cv_header_sys_sysmacros_h" = xyes 24818 then : 24819 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h 24820 24821 fi 24822 ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" 24823 if test "x$ac_cv_header_sys_utsname_h" = xyes 24824 then : 24825 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h 24826 24827 fi 24828 24829 24830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 24831 printf %s "checking for an ANSI C-conforming const... " >&6; } 24832 if test ${ac_cv_c_const+y} 24833 then : 24834 printf %s "(cached) " >&6 24835 else case e in #( 24836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24837 /* end confdefs.h. */ 24838 24839 int 24840 main (void) 24841 { 24842 24843 #ifndef __cplusplus 24844 /* Ultrix mips cc rejects this sort of thing. */ 24845 typedef int charset[2]; 24846 const charset cs = { 0, 0 }; 24847 /* SunOS 4.1.1 cc rejects this. */ 24848 char const *const *pcpcc; 24849 char **ppc; 24850 /* NEC SVR4.0.2 mips cc rejects this. */ 24851 struct point {int x, y;}; 24852 static struct point const zero = {0,0}; 24853 /* IBM XL C 1.02.0.0 rejects this. 24854 It does not let you subtract one const X* pointer from another in 24855 an arm of an if-expression whose if-part is not a constant 24856 expression */ 24857 const char *g = "string"; 24858 pcpcc = &g + (g ? g-g : 0); 24859 /* HPUX 7.0 cc rejects these. */ 24860 ++pcpcc; 24861 ppc = (char**) pcpcc; 24862 pcpcc = (char const *const *) ppc; 24863 { /* SCO 3.2v4 cc rejects this sort of thing. */ 24864 char tx; 24865 char *t = &tx; 24866 char const *s = 0 ? (char *) 0 : (char const *) 0; 24867 24868 *t++ = 0; 24869 if (s) return 0; 24870 } 24871 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 24872 int x[] = {25, 17}; 24873 const int *foo = &x[0]; 24874 ++foo; 24875 } 24876 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 24877 typedef const int *iptr; 24878 iptr p = 0; 24879 ++p; 24880 } 24881 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 24882 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 24883 struct s { int j; const int *ap[3]; } bx; 24884 struct s *b = &bx; b->j = 5; 24885 } 24886 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 24887 const int foo = 10; 24888 if (!foo) return 0; 24889 } 24890 return !cs[0] && !zero.x; 24891 #endif 24892 24893 ; 24894 return 0; 24895 } 24896 _ACEOF 24897 if ac_fn_c_try_compile "$LINENO" 24898 then : 24899 ac_cv_c_const=yes 24900 else case e in #( 24901 e) ac_cv_c_const=no ;; 24902 esac 24903 fi 24904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 24905 esac 24906 fi 24907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 24908 printf "%s\n" "$ac_cv_c_const" >&6; } 24909 if test $ac_cv_c_const = no; then 24910 24911 printf "%s\n" "#define const /**/" >>confdefs.h 24912 24913 fi 24914 24915 24916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5 24917 printf %s "checking for typeof syntax and keyword spelling... " >&6; } 24918 if test ${ac_cv_c_typeof+y} 24919 then : 24920 printf %s "(cached) " >&6 24921 else case e in #( 24922 e) ac_cv_c_typeof=no 24923 for ac_kw in typeof __typeof__ no; do 24924 test $ac_kw = no && break 24925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24926 /* end confdefs.h. */ 24927 24928 int 24929 main (void) 24930 { 24931 24932 int value; 24933 typedef struct { 24934 char a [1 24935 + ! (($ac_kw (value)) 24936 (($ac_kw (value)) 0 < ($ac_kw (value)) -1 24937 ? ($ac_kw (value)) - 1 24938 : ~ (~ ($ac_kw (value)) 0 24939 << sizeof ($ac_kw (value)))))]; } 24940 ac__typeof_type_; 24941 return 24942 (! ((void) ((ac__typeof_type_ *) 0), 0)); 24943 24944 ; 24945 return 0; 24946 } 24947 _ACEOF 24948 if ac_fn_c_try_compile "$LINENO" 24949 then : 24950 ac_cv_c_typeof=$ac_kw 24951 fi 24952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24953 test $ac_cv_c_typeof != no && break 24954 done ;; 24955 esac 24956 fi 24957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5 24958 printf "%s\n" "$ac_cv_c_typeof" >&6; } 24959 if test $ac_cv_c_typeof != no; then 24960 24961 printf "%s\n" "#define HAVE_TYPEOF 1" >>confdefs.h 24962 24963 if test $ac_cv_c_typeof != typeof; then 24964 24965 printf "%s\n" "#define typeof $ac_cv_c_typeof" >>confdefs.h 24966 24967 fi 24968 fi 24969 24970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 24971 printf %s "checking whether byte ordering is bigendian... " >&6; } 24972 if test ${ac_cv_c_bigendian+y} 24973 then : 24974 printf %s "(cached) " >&6 24975 else case e in #( 24976 e) ac_cv_c_bigendian=unknown 24977 # See if we're dealing with a universal compiler. 24978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24979 /* end confdefs.h. */ 24980 #ifndef __APPLE_CC__ 24981 not a universal capable compiler 24982 #endif 24983 typedef int dummy; 24984 24985 _ACEOF 24986 if ac_fn_c_try_compile "$LINENO" 24987 then : 24988 24989 # Check for potential -arch flags. It is not universal unless 24990 # there are at least two -arch flags with different values. 24991 ac_arch= 24992 ac_prev= 24993 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 24994 if test -n "$ac_prev"; then 24995 case $ac_word in 24996 i?86 | x86_64 | ppc | ppc64) 24997 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 24998 ac_arch=$ac_word 24999 else 25000 ac_cv_c_bigendian=universal 25001 break 25002 fi 25003 ;; 25004 esac 25005 ac_prev= 25006 elif test "x$ac_word" = "x-arch"; then 25007 ac_prev=arch 25008 fi 25009 done 25010 fi 25011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25012 if test $ac_cv_c_bigendian = unknown; then 25013 # See if sys/param.h defines the BYTE_ORDER macro. 25014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25015 /* end confdefs.h. */ 25016 #include <sys/types.h> 25017 #include <sys/param.h> 25018 25019 int 25020 main (void) 25021 { 25022 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ 25023 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ 25024 && LITTLE_ENDIAN) 25025 bogus endian macros 25026 #endif 25027 25028 ; 25029 return 0; 25030 } 25031 _ACEOF 25032 if ac_fn_c_try_compile "$LINENO" 25033 then : 25034 # It does; now see whether it defined to BIG_ENDIAN or not. 25035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25036 /* end confdefs.h. */ 25037 #include <sys/types.h> 25038 #include <sys/param.h> 25039 25040 int 25041 main (void) 25042 { 25043 #if BYTE_ORDER != BIG_ENDIAN 25044 not big endian 25045 #endif 25046 25047 ; 25048 return 0; 25049 } 25050 _ACEOF 25051 if ac_fn_c_try_compile "$LINENO" 25052 then : 25053 ac_cv_c_bigendian=yes 25054 else case e in #( 25055 e) ac_cv_c_bigendian=no ;; 25056 esac 25057 fi 25058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25059 fi 25060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25061 fi 25062 if test $ac_cv_c_bigendian = unknown; then 25063 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 25064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25065 /* end confdefs.h. */ 25066 #include <limits.h> 25067 25068 int 25069 main (void) 25070 { 25071 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 25072 bogus endian macros 25073 #endif 25074 25075 ; 25076 return 0; 25077 } 25078 _ACEOF 25079 if ac_fn_c_try_compile "$LINENO" 25080 then : 25081 # It does; now see whether it defined to _BIG_ENDIAN or not. 25082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25083 /* end confdefs.h. */ 25084 #include <limits.h> 25085 25086 int 25087 main (void) 25088 { 25089 #ifndef _BIG_ENDIAN 25090 not big endian 25091 #endif 25092 25093 ; 25094 return 0; 25095 } 25096 _ACEOF 25097 if ac_fn_c_try_compile "$LINENO" 25098 then : 25099 ac_cv_c_bigendian=yes 25100 else case e in #( 25101 e) ac_cv_c_bigendian=no ;; 25102 esac 25103 fi 25104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25105 fi 25106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25107 fi 25108 if test $ac_cv_c_bigendian = unknown; then 25109 # Compile a test program. 25110 if test "$cross_compiling" = yes 25111 then : 25112 # Try to guess by grepping values from an object file. 25113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25114 /* end confdefs.h. */ 25115 unsigned short int ascii_mm[] = 25116 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 25117 unsigned short int ascii_ii[] = 25118 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 25119 int use_ascii (int i) { 25120 return ascii_mm[i] + ascii_ii[i]; 25121 } 25122 unsigned short int ebcdic_ii[] = 25123 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 25124 unsigned short int ebcdic_mm[] = 25125 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 25126 int use_ebcdic (int i) { 25127 return ebcdic_mm[i] + ebcdic_ii[i]; 25128 } 25129 int 25130 main (int argc, char **argv) 25131 { 25132 /* Intimidate the compiler so that it does not 25133 optimize the arrays away. */ 25134 char *p = argv[0]; 25135 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; 25136 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; 25137 return use_ascii (argc) == use_ebcdic (*p); 25138 } 25139 _ACEOF 25140 if ac_fn_c_try_link "$LINENO" 25141 then : 25142 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then 25143 ac_cv_c_bigendian=yes 25144 fi 25145 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then 25146 if test "$ac_cv_c_bigendian" = unknown; then 25147 ac_cv_c_bigendian=no 25148 else 25149 # finding both strings is unlikely to happen, but who knows? 25150 ac_cv_c_bigendian=unknown 25151 fi 25152 fi 25153 fi 25154 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25155 conftest$ac_exeext conftest.$ac_ext 25156 else case e in #( 25157 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25158 /* end confdefs.h. */ 25159 $ac_includes_default 25160 int 25161 main (void) 25162 { 25163 25164 /* Are we little or big endian? From Harbison&Steele. */ 25165 union 25166 { 25167 long int l; 25168 char c[sizeof (long int)]; 25169 } u; 25170 u.l = 1; 25171 return u.c[sizeof (long int) - 1] == 1; 25172 25173 ; 25174 return 0; 25175 } 25176 _ACEOF 25177 if ac_fn_c_try_run "$LINENO" 25178 then : 25179 ac_cv_c_bigendian=no 25180 else case e in #( 25181 e) ac_cv_c_bigendian=yes ;; 25182 esac 25183 fi 25184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25185 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 25186 esac 25187 fi 25188 25189 fi ;; 25190 esac 25191 fi 25192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 25193 printf "%s\n" "$ac_cv_c_bigendian" >&6; } 25194 case $ac_cv_c_bigendian in #( 25195 yes) 25196 25197 printf "%s\n" "#define X_BYTE_ORDER X_BIG_ENDIAN" >>confdefs.h 25198 ;; #( 25199 no) 25200 25201 printf "%s\n" "#define X_BYTE_ORDER X_LITTLE_ENDIAN" >>confdefs.h 25202 ;; #( 25203 universal) 25204 25205 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 25206 25207 ;; #( 25208 *) 25209 as_fn_error $? "unknown endianness 25210 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 25211 esac 25212 25213 25214 # The cast to long int works around a bug in the HP C Compiler 25215 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 25216 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. 25217 # This bug is HP SR number 8606223364. 25218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 25219 printf %s "checking size of unsigned long... " >&6; } 25220 if test ${ac_cv_sizeof_unsigned_long+y} 25221 then : 25222 printf %s "(cached) " >&6 25223 else case e in #( 25224 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default" 25225 then : 25226 25227 else case e in #( 25228 e) if test "$ac_cv_type_unsigned_long" = yes; then 25229 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 25230 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 25231 as_fn_error 77 "cannot compute sizeof (unsigned long) 25232 See 'config.log' for more details" "$LINENO" 5; } 25233 else 25234 ac_cv_sizeof_unsigned_long=0 25235 fi ;; 25236 esac 25237 fi 25238 ;; 25239 esac 25240 fi 25241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 25242 printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; } 25243 25244 25245 25246 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h 25247 25248 25249 if test "$ac_cv_sizeof_unsigned_long" = 8; then 25250 25251 printf "%s\n" "#define _XSERVER64 1" >>confdefs.h 25252 25253 fi 25254 25255 25256 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 25257 " 25258 if test "x$ac_cv_type_pid_t" = xyes 25259 then : 25260 25261 else case e in #( 25262 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25263 /* end confdefs.h. */ 25264 25265 #if defined _WIN64 && !defined __CYGWIN__ 25266 LLP64 25267 #endif 25268 25269 int 25270 main (void) 25271 { 25272 25273 ; 25274 return 0; 25275 } 25276 25277 _ACEOF 25278 if ac_fn_c_try_compile "$LINENO" 25279 then : 25280 ac_pid_type='int' 25281 else case e in #( 25282 e) ac_pid_type='__int64' ;; 25283 esac 25284 fi 25285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25286 25287 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 25288 25289 ;; 25290 esac 25291 fi 25292 25293 25294 25295 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 25296 if test "x$ac_cv_func_dlopen" = xyes 25297 then : 25298 25299 else case e in #( 25300 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 25301 printf %s "checking for dlopen in -ldl... " >&6; } 25302 if test ${ac_cv_lib_dl_dlopen+y} 25303 then : 25304 printf %s "(cached) " >&6 25305 else case e in #( 25306 e) ac_check_lib_save_LIBS=$LIBS 25307 LIBS="-ldl $LIBS" 25308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25309 /* end confdefs.h. */ 25310 25311 /* Override any GCC internal prototype to avoid an error. 25312 Use char because int might match the return type of a GCC 25313 builtin and then its argument prototype would still apply. 25314 The 'extern "C"' is for builds by C++ compilers; 25315 although this is not generally supported in C code supporting it here 25316 has little cost and some practical benefit (sr 110532). */ 25317 #ifdef __cplusplus 25318 extern "C" 25319 #endif 25320 char dlopen (void); 25321 int 25322 main (void) 25323 { 25324 return dlopen (); 25325 ; 25326 return 0; 25327 } 25328 _ACEOF 25329 if ac_fn_c_try_link "$LINENO" 25330 then : 25331 ac_cv_lib_dl_dlopen=yes 25332 else case e in #( 25333 e) ac_cv_lib_dl_dlopen=no ;; 25334 esac 25335 fi 25336 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25337 conftest$ac_exeext conftest.$ac_ext 25338 LIBS=$ac_check_lib_save_LIBS ;; 25339 esac 25340 fi 25341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 25342 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 25343 if test "x$ac_cv_lib_dl_dlopen" = xyes 25344 then : 25345 DLOPEN_LIBS="-ldl" 25346 fi 25347 ;; 25348 esac 25349 fi 25350 25351 25352 25353 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace" 25354 if test "x$ac_cv_func_backtrace" = xyes 25355 then : 25356 printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h 25357 25358 fi 25359 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" 25360 if test "x$ac_cv_func_geteuid" = xyes 25361 then : 25362 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h 25363 25364 fi 25365 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid" 25366 if test "x$ac_cv_func_getuid" = xyes 25367 then : 25368 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h 25369 25370 fi 25371 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 25372 if test "x$ac_cv_func_issetugid" = xyes 25373 then : 25374 printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h 25375 25376 fi 25377 ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid" 25378 if test "x$ac_cv_func_getresuid" = xyes 25379 then : 25380 printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h 25381 25382 fi 25383 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize" 25384 if test "x$ac_cv_func_getdtablesize" = xyes 25385 then : 25386 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h 25387 25388 fi 25389 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 25390 if test "x$ac_cv_func_getifaddrs" = xyes 25391 then : 25392 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h 25393 25394 fi 25395 ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid" 25396 if test "x$ac_cv_func_getpeereid" = xyes 25397 then : 25398 printf "%s\n" "#define HAVE_GETPEEREID 1" >>confdefs.h 25399 25400 fi 25401 ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred" 25402 if test "x$ac_cv_func_getpeerucred" = xyes 25403 then : 25404 printf "%s\n" "#define HAVE_GETPEERUCRED 1" >>confdefs.h 25405 25406 fi 25407 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname" 25408 if test "x$ac_cv_func_getprogname" = xyes 25409 then : 25410 printf "%s\n" "#define HAVE_GETPROGNAME 1" >>confdefs.h 25411 25412 fi 25413 ac_fn_c_check_func "$LINENO" "getzoneid" "ac_cv_func_getzoneid" 25414 if test "x$ac_cv_func_getzoneid" = xyes 25415 then : 25416 printf "%s\n" "#define HAVE_GETZONEID 1" >>confdefs.h 25417 25418 fi 25419 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 25420 if test "x$ac_cv_func_mmap" = xyes 25421 then : 25422 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 25423 25424 fi 25425 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate" 25426 if test "x$ac_cv_func_posix_fallocate" = xyes 25427 then : 25428 printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h 25429 25430 fi 25431 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" 25432 if test "x$ac_cv_func_seteuid" = xyes 25433 then : 25434 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h 25435 25436 fi 25437 ac_fn_c_check_func "$LINENO" "shmctl64" "ac_cv_func_shmctl64" 25438 if test "x$ac_cv_func_shmctl64" = xyes 25439 then : 25440 printf "%s\n" "#define HAVE_SHMCTL64 1" >>confdefs.h 25441 25442 fi 25443 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 25444 if test "x$ac_cv_func_strncasecmp" = xyes 25445 then : 25446 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h 25447 25448 fi 25449 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 25450 if test "x$ac_cv_func_vasprintf" = xyes 25451 then : 25452 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h 25453 25454 fi 25455 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 25456 if test "x$ac_cv_func_vsnprintf" = xyes 25457 then : 25458 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h 25459 25460 fi 25461 ac_fn_c_check_func "$LINENO" "walkcontext" "ac_cv_func_walkcontext" 25462 if test "x$ac_cv_func_walkcontext" = xyes 25463 then : 25464 printf "%s\n" "#define HAVE_WALKCONTEXT 1" >>confdefs.h 25465 25466 fi 25467 ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer" 25468 if test "x$ac_cv_func_setitimer" = xyes 25469 then : 25470 printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h 25471 25472 fi 25473 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 25474 if test "x$ac_cv_func_poll" = xyes 25475 then : 25476 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 25477 25478 fi 25479 ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1" 25480 if test "x$ac_cv_func_epoll_create1" = xyes 25481 then : 25482 printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h 25483 25484 fi 25485 ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp" 25486 if test "x$ac_cv_func_mkostemp" = xyes 25487 then : 25488 printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h 25489 25490 fi 25491 ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create" 25492 if test "x$ac_cv_func_memfd_create" = xyes 25493 then : 25494 printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h 25495 25496 fi 25497 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" 25498 if test "x$ac_cv_func_sigprocmask" = xyes 25499 then : 25500 printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h 25501 25502 fi 25503 ac_fn_c_check_func "$LINENO" "isastream" "ac_cv_func_isastream" 25504 if test "x$ac_cv_func_isastream" = xyes 25505 then : 25506 printf "%s\n" "#define HAVE_ISASTREAM 1" >>confdefs.h 25507 25508 fi 25509 25510 25511 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 25512 if test "x$ac_cv_func_reallocarray" = xyes 25513 then : 25514 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 25515 25516 else case e in #( 25517 e) case " $LIBOBJS " in 25518 *" reallocarray.$ac_objext "* ) ;; 25519 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 25520 ;; 25521 esac 25522 ;; 25523 esac 25524 fi 25525 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 25526 if test "x$ac_cv_func_strcasecmp" = xyes 25527 then : 25528 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 25529 25530 else case e in #( 25531 e) case " $LIBOBJS " in 25532 *" strcasecmp.$ac_objext "* ) ;; 25533 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 25534 ;; 25535 esac 25536 ;; 25537 esac 25538 fi 25539 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 25540 if test "x$ac_cv_func_strcasestr" = xyes 25541 then : 25542 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h 25543 25544 else case e in #( 25545 e) case " $LIBOBJS " in 25546 *" strcasestr.$ac_objext "* ) ;; 25547 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" 25548 ;; 25549 esac 25550 ;; 25551 esac 25552 fi 25553 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 25554 if test "x$ac_cv_func_strlcat" = xyes 25555 then : 25556 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 25557 25558 else case e in #( 25559 e) case " $LIBOBJS " in 25560 *" strlcat.$ac_objext "* ) ;; 25561 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 25562 ;; 25563 esac 25564 ;; 25565 esac 25566 fi 25567 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 25568 if test "x$ac_cv_func_strlcpy" = xyes 25569 then : 25570 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 25571 25572 else case e in #( 25573 e) case " $LIBOBJS " in 25574 *" strlcpy.$ac_objext "* ) ;; 25575 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 25576 ;; 25577 esac 25578 ;; 25579 esac 25580 fi 25581 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 25582 if test "x$ac_cv_func_strndup" = xyes 25583 then : 25584 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h 25585 25586 else case e in #( 25587 e) case " $LIBOBJS " in 25588 *" strndup.$ac_objext "* ) ;; 25589 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" 25590 ;; 25591 esac 25592 ;; 25593 esac 25594 fi 25595 ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp" 25596 if test "x$ac_cv_func_timingsafe_memcmp" = xyes 25597 then : 25598 printf "%s\n" "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h 25599 25600 else case e in #( 25601 e) case " $LIBOBJS " in 25602 *" timingsafe_memcmp.$ac_objext "* ) ;; 25603 *) LIBOBJS="$LIBOBJS timingsafe_memcmp.$ac_objext" 25604 ;; 25605 esac 25606 ;; 25607 esac 25608 fi 25609 25610 if test "x$ac_cv_func_poll" = "xyes"; then 25611 POLL_TRUE= 25612 POLL_FALSE='#' 25613 else 25614 POLL_TRUE='#' 25615 POLL_FALSE= 25616 fi 25617 25618 25619 # Checks for non-standard functions and fallback to libbsd if we can 25620 # We only check for arc4random_buf, because if we have that, we don't 25621 # need/use getentropy. 25622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25623 /* end confdefs.h. */ 25624 25625 /* Override any GCC internal prototype to avoid an error. 25626 Use char because int might match the return type of a GCC 25627 builtin and then its argument prototype would still apply. 25628 The 'extern "C"' is for builds by C++ compilers; 25629 although this is not generally supported in C code supporting it here 25630 has little cost and some practical benefit (sr 110532). */ 25631 #ifdef __cplusplus 25632 extern "C" 25633 #endif 25634 char arc4random_buf (void); 25635 int 25636 main (void) 25637 { 25638 return arc4random_buf (); 25639 ; 25640 return 0; 25641 } 25642 _ACEOF 25643 if ac_fn_c_try_link "$LINENO" 25644 then : 25645 TRY_LIBBSD="no" 25646 else case e in #( 25647 e) TRY_LIBBSD="yes" ;; 25648 esac 25649 fi 25650 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25651 conftest$ac_exeext conftest.$ac_ext 25652 if test "x$TRY_LIBBSD" = "xyes" 25653 then : 25654 25655 pkg_failed=no 25656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbsd-overlay" >&5 25657 printf %s "checking for libbsd-overlay... " >&6; } 25658 25659 if test -n "$LIBBSD_CFLAGS"; then 25660 pkg_cv_LIBBSD_CFLAGS="$LIBBSD_CFLAGS" 25661 elif test -n "$PKG_CONFIG"; then 25662 if test -n "$PKG_CONFIG" && \ 25663 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 25664 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 25665 ac_status=$? 25666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25667 test $ac_status = 0; }; then 25668 pkg_cv_LIBBSD_CFLAGS=`$PKG_CONFIG --cflags "libbsd-overlay" 2>/dev/null` 25669 test "x$?" != "x0" && pkg_failed=yes 25670 else 25671 pkg_failed=yes 25672 fi 25673 else 25674 pkg_failed=untried 25675 fi 25676 if test -n "$LIBBSD_LIBS"; then 25677 pkg_cv_LIBBSD_LIBS="$LIBBSD_LIBS" 25678 elif test -n "$PKG_CONFIG"; then 25679 if test -n "$PKG_CONFIG" && \ 25680 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 25681 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 25682 ac_status=$? 25683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25684 test $ac_status = 0; }; then 25685 pkg_cv_LIBBSD_LIBS=`$PKG_CONFIG --libs "libbsd-overlay" 2>/dev/null` 25686 test "x$?" != "x0" && pkg_failed=yes 25687 else 25688 pkg_failed=yes 25689 fi 25690 else 25691 pkg_failed=untried 25692 fi 25693 25694 25695 25696 if test $pkg_failed = yes; then 25697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25698 printf "%s\n" "no" >&6; } 25699 25700 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25701 _pkg_short_errors_supported=yes 25702 else 25703 _pkg_short_errors_supported=no 25704 fi 25705 if test $_pkg_short_errors_supported = yes; then 25706 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd-overlay" 2>&1` 25707 else 25708 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd-overlay" 2>&1` 25709 fi 25710 # Put the nasty error message in config.log where it belongs 25711 echo "$LIBBSD_PKG_ERRORS" >&5 25712 25713 : 25714 elif test $pkg_failed = untried; then 25715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25716 printf "%s\n" "no" >&6; } 25717 : 25718 else 25719 LIBBSD_CFLAGS=$pkg_cv_LIBBSD_CFLAGS 25720 LIBBSD_LIBS=$pkg_cv_LIBBSD_LIBS 25721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25722 printf "%s\n" "yes" >&6; } 25723 25724 CFLAGS="$CFLAGS $LIBBSD_CFLAGS" 25725 LIBS="$LIBS $LIBBSD_LIBS" 25726 25727 fi 25728 fi 25729 25730 ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 25731 " "$ac_c_undeclared_builtin_options" "CFLAGS" 25732 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes 25733 then : 25734 ac_have_decl=1 25735 else case e in #( 25736 e) ac_have_decl=0 ;; 25737 esac 25738 fi 25739 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h 25740 25741 25742 25743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 25744 printf %s "checking for egrep -e... " >&6; } 25745 if test ${ac_cv_path_EGREP_TRADITIONAL+y} 25746 then : 25747 printf %s "(cached) " >&6 25748 else case e in #( 25749 e) if test -z "$EGREP_TRADITIONAL"; then 25750 ac_path_EGREP_TRADITIONAL_found=false 25751 # Loop through the user's path and test for each of PROGNAME-LIST 25752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25753 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 25754 do 25755 IFS=$as_save_IFS 25756 case $as_dir in #((( 25757 '') as_dir=./ ;; 25758 */) ;; 25759 *) as_dir=$as_dir/ ;; 25760 esac 25761 for ac_prog in grep ggrep 25762 do 25763 for ac_exec_ext in '' $ac_executable_extensions; do 25764 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" 25765 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue 25766 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. 25767 # Check for GNU $ac_path_EGREP_TRADITIONAL 25768 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( 25769 *GNU*) 25770 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; 25771 #( 25772 *) 25773 ac_count=0 25774 printf %s 0123456789 >"conftest.in" 25775 while : 25776 do 25777 cat "conftest.in" "conftest.in" >"conftest.tmp" 25778 mv "conftest.tmp" "conftest.in" 25779 cp "conftest.in" "conftest.nl" 25780 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" 25781 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 25782 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 25783 as_fn_arith $ac_count + 1 && ac_count=$as_val 25784 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then 25785 # Best one so far, save it but keep looking for a better one 25786 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" 25787 ac_path_EGREP_TRADITIONAL_max=$ac_count 25788 fi 25789 # 10*(2^10) chars as input seems more than enough 25790 test $ac_count -gt 10 && break 25791 done 25792 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 25793 esac 25794 25795 $ac_path_EGREP_TRADITIONAL_found && break 3 25796 done 25797 done 25798 done 25799 IFS=$as_save_IFS 25800 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then 25801 : 25802 fi 25803 else 25804 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL 25805 fi 25806 25807 if test "$ac_cv_path_EGREP_TRADITIONAL" 25808 then : 25809 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" 25810 else case e in #( 25811 e) if test -z "$EGREP_TRADITIONAL"; then 25812 ac_path_EGREP_TRADITIONAL_found=false 25813 # Loop through the user's path and test for each of PROGNAME-LIST 25814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25815 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 25816 do 25817 IFS=$as_save_IFS 25818 case $as_dir in #((( 25819 '') as_dir=./ ;; 25820 */) ;; 25821 *) as_dir=$as_dir/ ;; 25822 esac 25823 for ac_prog in egrep 25824 do 25825 for ac_exec_ext in '' $ac_executable_extensions; do 25826 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" 25827 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue 25828 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. 25829 # Check for GNU $ac_path_EGREP_TRADITIONAL 25830 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( 25831 *GNU*) 25832 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; 25833 #( 25834 *) 25835 ac_count=0 25836 printf %s 0123456789 >"conftest.in" 25837 while : 25838 do 25839 cat "conftest.in" "conftest.in" >"conftest.tmp" 25840 mv "conftest.tmp" "conftest.in" 25841 cp "conftest.in" "conftest.nl" 25842 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" 25843 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 25844 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 25845 as_fn_arith $ac_count + 1 && ac_count=$as_val 25846 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then 25847 # Best one so far, save it but keep looking for a better one 25848 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" 25849 ac_path_EGREP_TRADITIONAL_max=$ac_count 25850 fi 25851 # 10*(2^10) chars as input seems more than enough 25852 test $ac_count -gt 10 && break 25853 done 25854 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 25855 esac 25856 25857 $ac_path_EGREP_TRADITIONAL_found && break 3 25858 done 25859 done 25860 done 25861 IFS=$as_save_IFS 25862 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then 25863 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 25864 fi 25865 else 25866 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL 25867 fi 25868 ;; 25869 esac 25870 fi ;; 25871 esac 25872 fi 25873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 25874 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } 25875 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL 25876 25877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SO_PEERCRED in sys/socket.h" >&5 25878 printf %s "checking for SO_PEERCRED in sys/socket.h... " >&6; } 25879 if test ${xorg_cv_sys_have_so_peercred+y} 25880 then : 25881 printf %s "(cached) " >&6 25882 else case e in #( 25883 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25884 /* end confdefs.h. */ 25885 25886 #include <sys/types.h> 25887 #include <sys/socket.h> 25888 #ifdef SO_PEERCRED 25889 yes_have_so_peercred 25890 #endif 25891 25892 _ACEOF 25893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25894 $EGREP_TRADITIONAL "yes_have_so_peercred" >/dev/null 2>&1 25895 then : 25896 xorg_cv_sys_have_so_peercred=yes 25897 else case e in #( 25898 e) xorg_cv_sys_have_so_peercred=no ;; 25899 esac 25900 fi 25901 rm -rf conftest* 25902 ;; 25903 esac 25904 fi 25905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_sys_have_so_peercred" >&5 25906 printf "%s\n" "$xorg_cv_sys_have_so_peercred" >&6; } 25907 25908 if test "x$ac_cv_func_getpeereid" = xno && test "x$ac_cv_func_getpeerucred" = xno && test "x$xorg_cv_sys_have_so_peercred" = xno ; then 25909 25910 printf "%s\n" "#define NO_LOCAL_CLIENT_CRED 1" >>confdefs.h 25911 25912 fi 25913 25914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 25915 printf %s "checking for sqrt in -lm... " >&6; } 25916 if test ${ac_cv_lib_m_sqrt+y} 25917 then : 25918 printf %s "(cached) " >&6 25919 else case e in #( 25920 e) ac_check_lib_save_LIBS=$LIBS 25921 LIBS="-lm $LIBS" 25922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25923 /* end confdefs.h. */ 25924 25925 /* Override any GCC internal prototype to avoid an error. 25926 Use char because int might match the return type of a GCC 25927 builtin and then its argument prototype would still apply. 25928 The 'extern "C"' is for builds by C++ compilers; 25929 although this is not generally supported in C code supporting it here 25930 has little cost and some practical benefit (sr 110532). */ 25931 #ifdef __cplusplus 25932 extern "C" 25933 #endif 25934 char sqrt (void); 25935 int 25936 main (void) 25937 { 25938 return sqrt (); 25939 ; 25940 return 0; 25941 } 25942 _ACEOF 25943 if ac_fn_c_try_link "$LINENO" 25944 then : 25945 ac_cv_lib_m_sqrt=yes 25946 else case e in #( 25947 e) ac_cv_lib_m_sqrt=no ;; 25948 esac 25949 fi 25950 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25951 conftest$ac_exeext conftest.$ac_ext 25952 LIBS=$ac_check_lib_save_LIBS ;; 25953 esac 25954 fi 25955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 25956 printf "%s\n" "$ac_cv_lib_m_sqrt" >&6; } 25957 if test "x$ac_cv_lib_m_sqrt" = xyes 25958 then : 25959 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h 25960 25961 LIBS="-lm $LIBS" 25962 25963 fi 25964 25965 ac_fn_c_check_func "$LINENO" "cbrt" "ac_cv_func_cbrt" 25966 if test "x$ac_cv_func_cbrt" = xyes 25967 then : 25968 printf "%s\n" "#define HAVE_CBRT 1" >>confdefs.h 25969 25970 fi 25971 25972 25973 # Check whether --enable-agp was given. 25974 if test ${enable_agp+y} 25975 then : 25976 enableval=$enable_agp; AGP=$enableval 25977 else case e in #( 25978 e) AGP=auto ;; 25979 esac 25980 fi 25981 25982 if test "x$AGP" = "xauto" ; then 25983 for ac_header in linux/agpgart.h sys/agpio.h sys/agpgart.h 25984 do : 25985 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` 25986 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25987 if eval test \"x\$"$as_ac_Header"\" = x"yes" 25988 then : 25989 cat >>confdefs.h <<_ACEOF 25990 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 25991 _ACEOF 25992 AGP=yes 25993 fi 25994 25995 done 25996 fi 25997 if test "x$AGP" = xyes; then 25998 AGP_TRUE= 25999 AGP_FALSE='#' 26000 else 26001 AGP_TRUE='#' 26002 AGP_FALSE= 26003 fi 26004 26005 26006 for ac_header in linux/fb.h 26007 do : 26008 ac_fn_c_check_header_compile "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default" 26009 if test "x$ac_cv_header_linux_fb_h" = xyes 26010 then : 26011 printf "%s\n" "#define HAVE_LINUX_FB_H 1" >>confdefs.h 26012 FBDEV=yes 26013 fi 26014 26015 done 26016 if test "x$FBDEV" = xyes; then 26017 FBDEVHW_TRUE= 26018 FBDEVHW_FALSE='#' 26019 else 26020 FBDEVHW_TRUE='#' 26021 FBDEVHW_FALSE= 26022 fi 26023 26024 26025 for ac_header in sys/linker.h 26026 do : 26027 ac_fn_c_check_header_compile "$LINENO" "sys/linker.h" "ac_cv_header_sys_linker_h" "#include <sys/param.h> 26028 " 26029 if test "x$ac_cv_header_sys_linker_h" = xyes 26030 then : 26031 printf "%s\n" "#define HAVE_SYS_LINKER_H 1" >>confdefs.h 26032 ac_cv_sys_linker_h=yes 26033 else case e in #( 26034 e) ac_cv_sys_linker_h=no ;; 26035 esac 26036 fi 26037 26038 done 26039 if test "x$ac_cv_sys_linker_h" = xyes; then 26040 FREEBSD_KLDLOAD_TRUE= 26041 FREEBSD_KLDLOAD_FALSE='#' 26042 else 26043 FREEBSD_KLDLOAD_TRUE='#' 26044 FREEBSD_KLDLOAD_FALSE= 26045 fi 26046 26047 26048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSV IPC" >&5 26049 printf %s "checking for SYSV IPC... " >&6; } 26050 if test ${ac_cv_sysv_ipc+y} 26051 then : 26052 printf %s "(cached) " >&6 26053 else case e in #( 26054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26055 /* end confdefs.h. */ 26056 26057 #include <sys/types.h> 26058 #include <sys/ipc.h> 26059 #include <sys/shm.h> 26060 #include <sys/stat.h> 26061 26062 int 26063 main (void) 26064 { 26065 26066 { 26067 int id; 26068 id = shmget(IPC_PRIVATE, 512, S_IRUSR | S_IWUSR); 26069 if (id < 0) return -1; 26070 return shmctl(id, IPC_RMID, 0); 26071 } 26072 ; 26073 return 0; 26074 } 26075 _ACEOF 26076 if ac_fn_c_try_link "$LINENO" 26077 then : 26078 ac_cv_sysv_ipc=yes 26079 else case e in #( 26080 e) ac_cv_sysv_ipc=no ;; 26081 esac 26082 fi 26083 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26084 conftest$ac_exeext conftest.$ac_ext ;; 26085 esac 26086 fi 26087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_ipc" >&5 26088 printf "%s\n" "$ac_cv_sysv_ipc" >&6; } 26089 if test "x$ac_cv_sysv_ipc" = xyes; then 26090 26091 printf "%s\n" "#define HAVE_SYSV_IPC 1" >>confdefs.h 26092 26093 fi 26094 26095 if test -c /dev/xf86 ; then 26096 26097 printf "%s\n" "#define HAS_APERTURE_DRV 1" >>confdefs.h 26098 26099 fi 26100 26101 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" 26102 if test "x$ac_cv_header_execinfo_h" = xyes 26103 then : 26104 26105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lc" >&5 26106 printf %s "checking for backtrace in -lc... " >&6; } 26107 if test ${ac_cv_lib_c_backtrace+y} 26108 then : 26109 printf %s "(cached) " >&6 26110 else case e in #( 26111 e) ac_check_lib_save_LIBS=$LIBS 26112 LIBS="-lc $LIBS" 26113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26114 /* end confdefs.h. */ 26115 26116 /* Override any GCC internal prototype to avoid an error. 26117 Use char because int might match the return type of a GCC 26118 builtin and then its argument prototype would still apply. 26119 The 'extern "C"' is for builds by C++ compilers; 26120 although this is not generally supported in C code supporting it here 26121 has little cost and some practical benefit (sr 110532). */ 26122 #ifdef __cplusplus 26123 extern "C" 26124 #endif 26125 char backtrace (void); 26126 int 26127 main (void) 26128 { 26129 return backtrace (); 26130 ; 26131 return 0; 26132 } 26133 _ACEOF 26134 if ac_fn_c_try_link "$LINENO" 26135 then : 26136 ac_cv_lib_c_backtrace=yes 26137 else case e in #( 26138 e) ac_cv_lib_c_backtrace=no ;; 26139 esac 26140 fi 26141 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26142 conftest$ac_exeext conftest.$ac_ext 26143 LIBS=$ac_check_lib_save_LIBS ;; 26144 esac 26145 fi 26146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_backtrace" >&5 26147 printf "%s\n" "$ac_cv_lib_c_backtrace" >&6; } 26148 if test "x$ac_cv_lib_c_backtrace" = xyes 26149 then : 26150 26151 26152 printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h 26153 26154 26155 printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h 26156 26157 26158 fi 26159 26160 26161 fi 26162 26163 26164 DEFAULT_INT10="x86emu" 26165 26166 26167 case $host_cpu in 26168 alpha*) 26169 ALPHA_VIDEO=yes 26170 case $host_os in 26171 *freebsd*) SYS_LIBS=-lio ;; 26172 *netbsd*) 26173 printf "%s\n" "#define USE_ALPHA_PIO 1" >>confdefs.h 26174 ;; 26175 esac 26176 GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee" 26177 ;; 26178 arm*) 26179 ARM_VIDEO=yes 26180 DEFAULT_INT10="stub" 26181 ;; 26182 i*86) 26183 I386_VIDEO=yes 26184 case $host_os in 26185 *freebsd*) printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h 26186 ;; 26187 *dragonfly*) printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h 26188 ;; 26189 *netbsd*) printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h 26190 26191 SYS_LIBS=-li386 26192 ;; 26193 *openbsd*) printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h 26194 26195 SYS_LIBS=-li386 26196 ;; 26197 esac 26198 ;; 26199 powerpc*) 26200 PPC_VIDEO=yes 26201 case $host_os in 26202 *freebsd*) DEFAULT_INT10=stub ;; 26203 esac 26204 ;; 26205 sparc*) 26206 SPARC64_VIDEO=yes 26207 BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c" 26208 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 26209 ;; 26210 x86_64*|amd64*) 26211 I386_VIDEO=yes 26212 case $host_os in 26213 *freebsd*) 26214 printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h 26215 ;; 26216 *dragonfly*) 26217 printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h 26218 ;; 26219 *netbsd*) 26220 printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h 26221 26222 SYS_LIBS=-lx86_64 26223 ;; 26224 *openbsd*) 26225 printf "%s\n" "#define USE_AMD64_IOPL 1" >>confdefs.h 26226 26227 SYS_LIBS=-lamd64 26228 ;; 26229 esac 26230 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 26231 ;; 26232 ia64*) 26233 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 26234 ;; 26235 s390*) 26236 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 26237 ;; 26238 esac 26239 26240 26241 if test "x$ALPHA_VIDEO" = xyes; then 26242 ALPHA_VIDEO_TRUE= 26243 ALPHA_VIDEO_FALSE='#' 26244 else 26245 ALPHA_VIDEO_TRUE='#' 26246 ALPHA_VIDEO_FALSE= 26247 fi 26248 26249 if test "x$ARM_VIDEO" = xyes; then 26250 ARM_VIDEO_TRUE= 26251 ARM_VIDEO_FALSE='#' 26252 else 26253 ARM_VIDEO_TRUE='#' 26254 ARM_VIDEO_FALSE= 26255 fi 26256 26257 if test "x$I386_VIDEO" = xyes; then 26258 I386_VIDEO_TRUE= 26259 I386_VIDEO_FALSE='#' 26260 else 26261 I386_VIDEO_TRUE='#' 26262 I386_VIDEO_FALSE= 26263 fi 26264 26265 if test "x$PPC_VIDEO" = xyes; then 26266 PPC_VIDEO_TRUE= 26267 PPC_VIDEO_FALSE='#' 26268 else 26269 PPC_VIDEO_TRUE='#' 26270 PPC_VIDEO_FALSE= 26271 fi 26272 26273 if test "x$SPARC64_VIDEO" = xyes; then 26274 SPARC64_VIDEO_TRUE= 26275 SPARC64_VIDEO_FALSE='#' 26276 else 26277 SPARC64_VIDEO_TRUE='#' 26278 SPARC64_VIDEO_FALSE= 26279 fi 26280 26281 26282 DRI=no 26283 case $host_os in 26284 *freebsd* | *dragonfly*) 26285 case $host_os in 26286 kfreebsd*-gnu) ;; 26287 *) 26288 printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h 26289 ;; 26290 esac 26291 26292 printf "%s\n" "#define PCCONS_SUPPORT 1" >>confdefs.h 26293 26294 26295 printf "%s\n" "#define PCVT_SUPPORT 1" >>confdefs.h 26296 26297 26298 printf "%s\n" "#define SYSCONS_SUPPORT 1" >>confdefs.h 26299 26300 DRI=yes 26301 ;; 26302 *netbsd*) 26303 26304 printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h 26305 26306 26307 printf "%s\n" "#define PCCONS_SUPPORT 1" >>confdefs.h 26308 26309 26310 printf "%s\n" "#define PCVT_SUPPORT 1" >>confdefs.h 26311 26312 26313 printf "%s\n" "#define WSCONS_SUPPORT 1" >>confdefs.h 26314 26315 DRI=yes 26316 ;; 26317 *openbsd*) 26318 26319 printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h 26320 26321 26322 printf "%s\n" "#define PCVT_SUPPORT 1" >>confdefs.h 26323 26324 26325 printf "%s\n" "#define WSCONS_SUPPORT 1" >>confdefs.h 26326 26327 ;; 26328 *linux*) 26329 DRI=yes 26330 ;; 26331 *solaris*) 26332 DRI=yes 26333 ;; 26334 darwin*) 26335 26336 printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h 26337 26338 ;; 26339 cygwin*|mingw*) 26340 CFLAGS="$CFLAGS -DFD_SETSIZE=512" 26341 ;; 26342 esac 26343 26344 PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1` 26345 26346 VENDOR_RELEASE="((10000000) + (($PVMAJOR) * 100000) + (($PVM) * 1000) + $PVP)" 26347 VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}" 26348 26349 VENDOR_NAME="The X.Org Foundation" 26350 VENDOR_NAME_SHORT="X.Org" 26351 VENDOR_WEB="http://wiki.x.org" 26352 26353 # Check whether --enable-werror was given. 26354 if test ${enable_werror+y} 26355 then : 26356 enableval=$enable_werror; as_fn_error $? "--enable-werror has been replaced by --enable-strict-compilation" "$LINENO" 5 26357 fi 26358 26359 26360 # Check whether --enable-debug was given. 26361 if test ${enable_debug+y} 26362 then : 26363 enableval=$enable_debug; DEBUGGING=$enableval 26364 else case e in #( 26365 e) DEBUGGING=no ;; 26366 esac 26367 fi 26368 26369 26370 # Check whether --with-int10 was given. 26371 if test ${with_int10+y} 26372 then : 26373 withval=$with_int10; INT10="$withval" 26374 else case e in #( 26375 e) INT10="$DEFAULT_INT10" ;; 26376 esac 26377 fi 26378 26379 26380 # Check whether --with-vendor-name was given. 26381 if test ${with_vendor_name+y} 26382 then : 26383 withval=$with_vendor_name; VENDOR_NAME="$withval" 26384 fi 26385 26386 26387 # Check whether --with-vendor-name-short was given. 26388 if test ${with_vendor_name_short+y} 26389 then : 26390 withval=$with_vendor_name_short; VENDOR_NAME_SHORT="$withval" 26391 fi 26392 26393 26394 # Check whether --with-vendor-web was given. 26395 if test ${with_vendor_web+y} 26396 then : 26397 withval=$with_vendor_web; VENDOR_WEB="$withval" 26398 fi 26399 26400 26401 # Check whether --with-module-dir was given. 26402 if test ${with_module_dir+y} 26403 then : 26404 withval=$with_module_dir; moduledir="$withval" 26405 else case e in #( 26406 e) moduledir="${libdir}/xorg/modules" ;; 26407 esac 26408 fi 26409 26410 26411 # Check whether --with-log-dir was given. 26412 if test ${with_log_dir+y} 26413 then : 26414 withval=$with_log_dir; logdir="$withval" 26415 else case e in #( 26416 e) logdir="$localstatedir/log" ;; 26417 esac 26418 fi 26419 26420 26421 # Check whether --with-builder-addr was given. 26422 if test ${with_builder_addr+y} 26423 then : 26424 withval=$with_builder_addr; BUILDERADDR="$withval" 26425 else case e in #( 26426 e) BUILDERADDR="xorg (at] lists.freedesktop.org" ;; 26427 esac 26428 fi 26429 26430 26431 # Check whether --with-builderstring was given. 26432 if test ${with_builderstring+y} 26433 then : 26434 withval=$with_builderstring; BUILDERSTRING="$withval" 26435 26436 fi 26437 26438 # Check whether --enable-listen-tcp was given. 26439 if test ${enable_listen_tcp+y} 26440 then : 26441 enableval=$enable_listen_tcp; LISTEN_TCP=$enableval 26442 else case e in #( 26443 e) LISTEN_TCP=no ;; 26444 esac 26445 fi 26446 26447 # Check whether --enable-listen-unix was given. 26448 if test ${enable_listen_unix+y} 26449 then : 26450 enableval=$enable_listen_unix; LISTEN_UNIX=$enableval 26451 else case e in #( 26452 e) LISTEN_UNIX=yes ;; 26453 esac 26454 fi 26455 26456 26457 # Check whether --enable-listen-local was given. 26458 if test ${enable_listen_local+y} 26459 then : 26460 enableval=$enable_listen_local; LISTEN_LOCAL=$enableval 26461 else case e in #( 26462 e) LISTEN_LOCAL=yes ;; 26463 esac 26464 fi 26465 26466 26467 case $host_os in 26468 linux*) 26469 FALLBACK_INPUT_DRIVER="libinput" 26470 ;; 26471 *) 26472 FALLBACK_INPUT_DRIVER="" 26473 ;; 26474 esac 26475 26476 # Check whether --with-fallback-input-driver was given. 26477 if test ${with_fallback_input_driver+y} 26478 then : 26479 withval=$with_fallback_input_driver; FALLBACK_INPUT_DRIVER=$withval 26480 fi 26481 26482 if test "x$FALLBACK_INPUT_DRIVER" = "xno"; then 26483 FALLBACK_INPUT_DRIVER="" 26484 fi 26485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fallback input driver" >&5 26486 printf %s "checking for fallback input driver... " >&6; } 26487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FALLBACK_INPUT_DRIVER" >&5 26488 printf "%s\n" "$FALLBACK_INPUT_DRIVER" >&6; } 26489 26490 printf "%s\n" "#define FALLBACK_INPUT_DRIVER \"$FALLBACK_INPUT_DRIVER\"" >>confdefs.h 26491 26492 26493 26494 26495 26496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5 26497 printf %s "checking for root directory for font files... " >&6; } 26498 26499 # Check whether --with-fontrootdir was given. 26500 if test ${with_fontrootdir+y} 26501 then : 26502 withval=$with_fontrootdir; FONTROOTDIR="$withval" 26503 fi 26504 26505 # if --with-fontrootdir not specified... 26506 if test "x${FONTROOTDIR}" = "x"; then 26507 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil` 26508 fi 26509 # ...and if pkg-config didn't find fontdir in fontutil.pc... 26510 if test "x${FONTROOTDIR}" = "x"; then 26511 FONTROOTDIR="${datadir}/fonts/X11" 26512 fi 26513 26514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5 26515 printf "%s\n" "${FONTROOTDIR}" >&6; } 26516 26517 26518 26519 26520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5 26521 printf %s "checking for directory for misc files... " >&6; } 26522 26523 # Check whether --with-fontmiscdir was given. 26524 if test ${with_fontmiscdir+y} 26525 then : 26526 withval=$with_fontmiscdir; FONTMISCDIR="${withval}" 26527 else case e in #( 26528 e) FONTMISCDIR='${FONTROOTDIR}/misc' ;; 26529 esac 26530 fi 26531 26532 26533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5 26534 printf "%s\n" "${FONTMISCDIR}" >&6; } 26535 26536 26537 26538 26539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5 26540 printf %s "checking for directory for OTF files... " >&6; } 26541 26542 # Check whether --with-fontotfdir was given. 26543 if test ${with_fontotfdir+y} 26544 then : 26545 withval=$with_fontotfdir; FONTOTFDIR="${withval}" 26546 else case e in #( 26547 e) FONTOTFDIR='${FONTROOTDIR}/OTF' ;; 26548 esac 26549 fi 26550 26551 26552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5 26553 printf "%s\n" "${FONTOTFDIR}" >&6; } 26554 26555 26556 26557 26558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5 26559 printf %s "checking for directory for TTF files... " >&6; } 26560 26561 # Check whether --with-fontttfdir was given. 26562 if test ${with_fontttfdir+y} 26563 then : 26564 withval=$with_fontttfdir; FONTTTFDIR="${withval}" 26565 else case e in #( 26566 e) FONTTTFDIR='${FONTROOTDIR}/TTF' ;; 26567 esac 26568 fi 26569 26570 26571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5 26572 printf "%s\n" "${FONTTTFDIR}" >&6; } 26573 26574 26575 26576 26577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5 26578 printf %s "checking for directory for Type1 files... " >&6; } 26579 26580 # Check whether --with-fonttype1dir was given. 26581 if test ${with_fonttype1dir+y} 26582 then : 26583 withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}" 26584 else case e in #( 26585 e) FONTTYPE1DIR='${FONTROOTDIR}/Type1' ;; 26586 esac 26587 fi 26588 26589 26590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5 26591 printf "%s\n" "${FONTTYPE1DIR}" >&6; } 26592 26593 26594 26595 26596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5 26597 printf %s "checking for directory for 75dpi files... " >&6; } 26598 26599 # Check whether --with-font75dpidir was given. 26600 if test ${with_font75dpidir+y} 26601 then : 26602 withval=$with_font75dpidir; FONT75DPIDIR="${withval}" 26603 else case e in #( 26604 e) FONT75DPIDIR='${FONTROOTDIR}/75dpi' ;; 26605 esac 26606 fi 26607 26608 26609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5 26610 printf "%s\n" "${FONT75DPIDIR}" >&6; } 26611 26612 26613 26614 26615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5 26616 printf %s "checking for directory for 100dpi files... " >&6; } 26617 26618 # Check whether --with-font100dpidir was given. 26619 if test ${with_font100dpidir+y} 26620 then : 26621 withval=$with_font100dpidir; FONT100DPIDIR="${withval}" 26622 else case e in #( 26623 e) FONT100DPIDIR='${FONTROOTDIR}/100dpi' ;; 26624 esac 26625 fi 26626 26627 26628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5 26629 printf "%s\n" "${FONT100DPIDIR}" >&6; } 26630 26631 26632 DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/" 26633 case $host_os in 26634 darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;; 26635 esac 26636 26637 26638 # Check whether --with-default-font-path was given. 26639 if test ${with_default_font_path+y} 26640 then : 26641 withval=$with_default_font_path; FONTPATH="$withval" 26642 else case e in #( 26643 e) FONTPATH="${DEFAULT_FONT_PATH}" ;; 26644 esac 26645 fi 26646 26647 26648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5 26649 printf %s "checking for default font path... " >&6; } 26650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5 26651 printf "%s\n" "$FONTPATH" >&6; } 26652 26653 26654 # Check whether --with-xkb-path was given. 26655 if test ${with_xkb_path+y} 26656 then : 26657 withval=$with_xkb_path; XKBPATH="$withval" 26658 else case e in #( 26659 e) XKBPATH="auto" ;; 26660 esac 26661 fi 26662 26663 26664 # Check whether --with-xkb-output was given. 26665 if test ${with_xkb_output+y} 26666 then : 26667 withval=$with_xkb_output; XKBOUTPUT="$withval" 26668 else case e in #( 26669 e) XKBOUTPUT="compiled" ;; 26670 esac 26671 fi 26672 26673 26674 # Check whether --with-default-xkb-rules was given. 26675 if test ${with_default_xkb_rules+y} 26676 then : 26677 withval=$with_default_xkb_rules; XKB_DFLT_RULES="$withval" 26678 else case e in #( 26679 e) XKB_DFLT_RULES="" ;; 26680 esac 26681 fi 26682 26683 26684 # Check whether --with-default-xkb-model was given. 26685 if test ${with_default_xkb_model+y} 26686 then : 26687 withval=$with_default_xkb_model; XKB_DFLT_MODEL="$withval" 26688 else case e in #( 26689 e) XKB_DFLT_MODEL="pc105" ;; 26690 esac 26691 fi 26692 26693 26694 # Check whether --with-default-xkb-layout was given. 26695 if test ${with_default_xkb_layout+y} 26696 then : 26697 withval=$with_default_xkb_layout; XKB_DFLT_LAYOUT="$withval" 26698 else case e in #( 26699 e) XKB_DFLT_LAYOUT="us" ;; 26700 esac 26701 fi 26702 26703 26704 # Check whether --with-default-xkb-variant was given. 26705 if test ${with_default_xkb_variant+y} 26706 then : 26707 withval=$with_default_xkb_variant; XKB_DFLT_VARIANT="$withval" 26708 else case e in #( 26709 e) XKB_DFLT_VARIANT="" ;; 26710 esac 26711 fi 26712 26713 26714 # Check whether --with-default-xkb-options was given. 26715 if test ${with_default_xkb_options+y} 26716 then : 26717 withval=$with_default_xkb_options; XKB_DFLT_OPTIONS="$withval" 26718 else case e in #( 26719 e) XKB_DFLT_OPTIONS="" ;; 26720 esac 26721 fi 26722 26723 26724 # Check whether --with-serverconfig-path was given. 26725 if test ${with_serverconfig_path+y} 26726 then : 26727 withval=$with_serverconfig_path; SERVERCONFIG="$withval" 26728 else case e in #( 26729 e) SERVERCONFIG="${libdir}/xorg" ;; 26730 esac 26731 fi 26732 26733 26734 # Check whether --with-apple-applications-dir was given. 26735 if test ${with_apple_applications_dir+y} 26736 then : 26737 withval=$with_apple_applications_dir; APPLE_APPLICATIONS_DIR="${withval}" 26738 else case e in #( 26739 e) APPLE_APPLICATIONS_DIR="/Applications/Utilities" ;; 26740 esac 26741 fi 26742 26743 26744 26745 # Check whether --with-apple-application-name was given. 26746 if test ${with_apple_application_name+y} 26747 then : 26748 withval=$with_apple_application_name; APPLE_APPLICATION_NAME="${withval}" 26749 else case e in #( 26750 e) APPLE_APPLICATION_NAME="X11" ;; 26751 esac 26752 fi 26753 26754 26755 26756 # Check whether --with-bundle-id-prefix was given. 26757 if test ${with_bundle_id_prefix+y} 26758 then : 26759 withval=$with_bundle_id_prefix; BUNDLE_ID_PREFIX="${withval}" 26760 fi 26761 26762 26763 26764 printf "%s\n" "#define BUNDLE_ID_PREFIX \"$BUNDLE_ID_PREFIX\"" >>confdefs.h 26765 26766 26767 26768 # Check whether --with-bundle-version was given. 26769 if test ${with_bundle_version+y} 26770 then : 26771 withval=$with_bundle_version; BUNDLE_VERSION="${withval}" 26772 else case e in #( 26773 e) BUNDLE_VERSION="21.1.24" ;; 26774 esac 26775 fi 26776 26777 26778 26779 # Check whether --with-bundle-version-string was given. 26780 if test ${with_bundle_version_string+y} 26781 then : 26782 withval=$with_bundle_version_string; BUNDLE_VERSION_STRING="${withval}" 26783 else case e in #( 26784 e) BUNDLE_VERSION_STRING="${PACKAGE_VERSION}" ;; 26785 esac 26786 fi 26787 26788 26789 # Check whether --enable-sparkle was given. 26790 if test ${enable_sparkle+y} 26791 then : 26792 enableval=$enable_sparkle; XQUARTZ_SPARKLE="${enableval}" 26793 else case e in #( 26794 e) XQUARTZ_SPARKLE="no" ;; 26795 esac 26796 fi 26797 26798 26799 26800 # Check whether --with-sparkle-feed-url was given. 26801 if test ${with_sparkle_feed_url+y} 26802 then : 26803 withval=$with_sparkle_feed_url; XQUARTZ_SPARKLE_FEED_URL="${withval}" 26804 else case e in #( 26805 e) XQUARTZ_SPARKLE_FEED_URL="https://www.xquartz.org/releases/sparkle/release.xml" ;; 26806 esac 26807 fi 26808 26809 26810 # Check whether --enable-visibility was given. 26811 if test ${enable_visibility+y} 26812 then : 26813 enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval 26814 else case e in #( 26815 e) SYMBOL_VISIBILITY=auto ;; 26816 esac 26817 fi 26818 26819 26820 26821 # Check whether --with-khronos-spec-dir was given. 26822 if test ${with_khronos_spec_dir+y} 26823 then : 26824 withval=$with_khronos_spec_dir; KHRONOS_SPEC_DIR="${withval}" 26825 else case e in #( 26826 e) KHRONOS_SPEC_DIR=auto ;; 26827 esac 26828 fi 26829 26830 26831 # Check whether --enable-composite was given. 26832 if test ${enable_composite+y} 26833 then : 26834 enableval=$enable_composite; COMPOSITE=$enableval 26835 else case e in #( 26836 e) COMPOSITE=yes ;; 26837 esac 26838 fi 26839 26840 # Check whether --enable-mitshm was given. 26841 if test ${enable_mitshm+y} 26842 then : 26843 enableval=$enable_mitshm; MITSHM=$enableval 26844 else case e in #( 26845 e) MITSHM=auto ;; 26846 esac 26847 fi 26848 26849 # Check whether --enable-xres was given. 26850 if test ${enable_xres+y} 26851 then : 26852 enableval=$enable_xres; RES=$enableval 26853 else case e in #( 26854 e) RES=yes ;; 26855 esac 26856 fi 26857 26858 # Check whether --enable-record was given. 26859 if test ${enable_record+y} 26860 then : 26861 enableval=$enable_record; RECORD=$enableval 26862 else case e in #( 26863 e) RECORD=yes ;; 26864 esac 26865 fi 26866 26867 # Check whether --enable-xv was given. 26868 if test ${enable_xv+y} 26869 then : 26870 enableval=$enable_xv; XV=$enableval 26871 else case e in #( 26872 e) XV=yes ;; 26873 esac 26874 fi 26875 26876 # Check whether --enable-xvmc was given. 26877 if test ${enable_xvmc+y} 26878 then : 26879 enableval=$enable_xvmc; XVMC=$enableval 26880 else case e in #( 26881 e) XVMC=yes ;; 26882 esac 26883 fi 26884 26885 # Check whether --enable-dga was given. 26886 if test ${enable_dga+y} 26887 then : 26888 enableval=$enable_dga; DGA=$enableval 26889 else case e in #( 26890 e) DGA=auto ;; 26891 esac 26892 fi 26893 26894 # Check whether --enable-screensaver was given. 26895 if test ${enable_screensaver+y} 26896 then : 26897 enableval=$enable_screensaver; SCREENSAVER=$enableval 26898 else case e in #( 26899 e) SCREENSAVER=yes ;; 26900 esac 26901 fi 26902 26903 # Check whether --enable-xdmcp was given. 26904 if test ${enable_xdmcp+y} 26905 then : 26906 enableval=$enable_xdmcp; XDMCP=$enableval 26907 else case e in #( 26908 e) XDMCP=auto ;; 26909 esac 26910 fi 26911 26912 # Check whether --enable-xdm-auth-1 was given. 26913 if test ${enable_xdm_auth_1+y} 26914 then : 26915 enableval=$enable_xdm_auth_1; XDMAUTH=$enableval 26916 else case e in #( 26917 e) XDMAUTH=auto ;; 26918 esac 26919 fi 26920 26921 # Check whether --enable-glx was given. 26922 if test ${enable_glx+y} 26923 then : 26924 enableval=$enable_glx; GLX=$enableval 26925 else case e in #( 26926 e) GLX=yes ;; 26927 esac 26928 fi 26929 26930 # Check whether --enable-dri was given. 26931 if test ${enable_dri+y} 26932 then : 26933 enableval=$enable_dri; DRI=$enableval 26934 fi 26935 26936 # Check whether --enable-dri2 was given. 26937 if test ${enable_dri2+y} 26938 then : 26939 enableval=$enable_dri2; DRI2=$enableval 26940 else case e in #( 26941 e) DRI2=auto ;; 26942 esac 26943 fi 26944 26945 # Check whether --enable-dri3 was given. 26946 if test ${enable_dri3+y} 26947 then : 26948 enableval=$enable_dri3; DRI3=$enableval 26949 else case e in #( 26950 e) DRI3=auto ;; 26951 esac 26952 fi 26953 26954 # Check whether --enable-present was given. 26955 if test ${enable_present+y} 26956 then : 26957 enableval=$enable_present; PRESENT=$enableval 26958 else case e in #( 26959 e) PRESENT=yes ;; 26960 esac 26961 fi 26962 26963 # Check whether --enable-xinerama was given. 26964 if test ${enable_xinerama+y} 26965 then : 26966 enableval=$enable_xinerama; XINERAMA=$enableval 26967 else case e in #( 26968 e) XINERAMA=yes ;; 26969 esac 26970 fi 26971 26972 # Check whether --enable-xf86vidmode was given. 26973 if test ${enable_xf86vidmode+y} 26974 then : 26975 enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval 26976 else case e in #( 26977 e) XF86VIDMODE=auto ;; 26978 esac 26979 fi 26980 26981 # Check whether --enable-xace was given. 26982 if test ${enable_xace+y} 26983 then : 26984 enableval=$enable_xace; XACE=$enableval 26985 else case e in #( 26986 e) XACE=yes ;; 26987 esac 26988 fi 26989 26990 # Check whether --enable-xselinux was given. 26991 if test ${enable_xselinux+y} 26992 then : 26993 enableval=$enable_xselinux; XSELINUX=$enableval 26994 else case e in #( 26995 e) XSELINUX=no ;; 26996 esac 26997 fi 26998 26999 # Check whether --enable-xcsecurity was given. 27000 if test ${enable_xcsecurity+y} 27001 then : 27002 enableval=$enable_xcsecurity; XCSECURITY=$enableval 27003 else case e in #( 27004 e) XCSECURITY=no ;; 27005 esac 27006 fi 27007 27008 # Check whether --enable-dbe was given. 27009 if test ${enable_dbe+y} 27010 then : 27011 enableval=$enable_dbe; DBE=$enableval 27012 else case e in #( 27013 e) DBE=yes ;; 27014 esac 27015 fi 27016 27017 # Check whether --enable-xf86bigfont was given. 27018 if test ${enable_xf86bigfont+y} 27019 then : 27020 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval 27021 else case e in #( 27022 e) XF86BIGFONT=no ;; 27023 esac 27024 fi 27025 27026 # Check whether --enable-dpms was given. 27027 if test ${enable_dpms+y} 27028 then : 27029 enableval=$enable_dpms; DPMSExtension=$enableval 27030 else case e in #( 27031 e) DPMSExtension=yes ;; 27032 esac 27033 fi 27034 27035 # Check whether --enable-config-udev was given. 27036 if test ${enable_config_udev+y} 27037 then : 27038 enableval=$enable_config_udev; CONFIG_UDEV=$enableval 27039 else case e in #( 27040 e) CONFIG_UDEV=auto ;; 27041 esac 27042 fi 27043 27044 # Check whether --enable-config-udev-kms was given. 27045 if test ${enable_config_udev_kms+y} 27046 then : 27047 enableval=$enable_config_udev_kms; CONFIG_UDEV_KMS=$enableval 27048 else case e in #( 27049 e) CONFIG_UDEV_KMS=auto ;; 27050 esac 27051 fi 27052 27053 # Check whether --enable-config-hal was given. 27054 if test ${enable_config_hal+y} 27055 then : 27056 enableval=$enable_config_hal; CONFIG_HAL=$enableval 27057 else case e in #( 27058 e) CONFIG_HAL=auto ;; 27059 esac 27060 fi 27061 27062 # Check whether --enable-config-wscons was given. 27063 if test ${enable_config_wscons+y} 27064 then : 27065 enableval=$enable_config_wscons; CONFIG_WSCONS=$enableval 27066 else case e in #( 27067 e) CONFIG_WSCONS=auto ;; 27068 esac 27069 fi 27070 27071 # Check whether --enable-xfree86-utils was given. 27072 if test ${enable_xfree86_utils+y} 27073 then : 27074 enableval=$enable_xfree86_utils; XF86UTILS=$enableval 27075 else case e in #( 27076 e) XF86UTILS=yes ;; 27077 esac 27078 fi 27079 27080 # Check whether --enable-vgahw was given. 27081 if test ${enable_vgahw+y} 27082 then : 27083 enableval=$enable_vgahw; VGAHW=$enableval 27084 else case e in #( 27085 e) VGAHW=yes ;; 27086 esac 27087 fi 27088 27089 # Check whether --enable-int10-module was given. 27090 if test ${enable_int10_module+y} 27091 then : 27092 enableval=$enable_int10_module; INT10MODULE=$enableval 27093 else case e in #( 27094 e) INT10MODULE=yes ;; 27095 esac 27096 fi 27097 27098 # Check whether --enable-windowsdri was given. 27099 if test ${enable_windowsdri+y} 27100 then : 27101 enableval=$enable_windowsdri; WINDOWSDRI=$enableval 27102 else case e in #( 27103 e) WINDOWSDRI=auto ;; 27104 esac 27105 fi 27106 27107 # Check whether --enable-libdrm was given. 27108 if test ${enable_libdrm+y} 27109 then : 27110 enableval=$enable_libdrm; DRM=$enableval 27111 else case e in #( 27112 e) DRM=yes ;; 27113 esac 27114 fi 27115 27116 # Check whether --enable-clientids was given. 27117 if test ${enable_clientids+y} 27118 then : 27119 enableval=$enable_clientids; CLIENTIDS=$enableval 27120 else case e in #( 27121 e) CLIENTIDS=yes ;; 27122 esac 27123 fi 27124 27125 # Check whether --enable-pciaccess was given. 27126 if test ${enable_pciaccess+y} 27127 then : 27128 enableval=$enable_pciaccess; PCI=$enableval 27129 else case e in #( 27130 e) PCI=yes ;; 27131 esac 27132 fi 27133 27134 # Check whether --enable-linux_acpi was given. 27135 if test ${enable_linux_acpi+y} 27136 then : 27137 enableval=$enable_linux_acpi; enable_linux_acpi=$enableval 27138 else case e in #( 27139 e) enable_linux_acpi=yes ;; 27140 esac 27141 fi 27142 27143 # Check whether --enable-linux_apm was given. 27144 if test ${enable_linux_apm+y} 27145 then : 27146 enableval=$enable_linux_apm; enable_linux_apm=$enableval 27147 else case e in #( 27148 e) enable_linux_apm=yes ;; 27149 esac 27150 fi 27151 27152 # Check whether --enable-systemd-logind was given. 27153 if test ${enable_systemd_logind+y} 27154 then : 27155 enableval=$enable_systemd_logind; SYSTEMD_LOGIND=$enableval 27156 else case e in #( 27157 e) SYSTEMD_LOGIND=auto ;; 27158 esac 27159 fi 27160 27161 # Check whether --enable-suid-wrapper was given. 27162 if test ${enable_suid_wrapper+y} 27163 then : 27164 enableval=$enable_suid_wrapper; SUID_WRAPPER=$enableval 27165 else case e in #( 27166 e) SUID_WRAPPER=no ;; 27167 esac 27168 fi 27169 27170 27171 # Check whether --enable-xorg was given. 27172 if test ${enable_xorg+y} 27173 then : 27174 enableval=$enable_xorg; XORG=$enableval 27175 else case e in #( 27176 e) XORG=auto ;; 27177 esac 27178 fi 27179 27180 # Check whether --enable-xvfb was given. 27181 if test ${enable_xvfb+y} 27182 then : 27183 enableval=$enable_xvfb; XVFB=$enableval 27184 else case e in #( 27185 e) XVFB=yes ;; 27186 esac 27187 fi 27188 27189 # Check whether --enable-xnest was given. 27190 if test ${enable_xnest+y} 27191 then : 27192 enableval=$enable_xnest; XNEST=$enableval 27193 else case e in #( 27194 e) XNEST=auto ;; 27195 esac 27196 fi 27197 27198 # Check whether --enable-xquartz was given. 27199 if test ${enable_xquartz+y} 27200 then : 27201 enableval=$enable_xquartz; XQUARTZ=$enableval 27202 else case e in #( 27203 e) XQUARTZ=auto ;; 27204 esac 27205 fi 27206 27207 # Check whether --enable-standalone-xpbproxy was given. 27208 if test ${enable_standalone_xpbproxy+y} 27209 then : 27210 enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval 27211 else case e in #( 27212 e) STANDALONE_XPBPROXY=no ;; 27213 esac 27214 fi 27215 27216 # Check whether --enable-xwin was given. 27217 if test ${enable_xwin+y} 27218 then : 27219 enableval=$enable_xwin; XWIN=$enableval 27220 else case e in #( 27221 e) XWIN=auto ;; 27222 esac 27223 fi 27224 27225 # Check whether --enable-glamor was given. 27226 if test ${enable_glamor+y} 27227 then : 27228 enableval=$enable_glamor; GLAMOR=$enableval 27229 else case e in #( 27230 e) GLAMOR=auto ;; 27231 esac 27232 fi 27233 27234 # Check whether --enable-xf86-input-inputtest was given. 27235 if test ${enable_xf86_input_inputtest+y} 27236 then : 27237 enableval=$enable_xf86_input_inputtest; XORG_DRIVER_INPUT_INPUTTEST=$enableval 27238 else case e in #( 27239 e) XORG_DRIVER_INPUT_INPUTTEST=yes ;; 27240 esac 27241 fi 27242 27243 # Check whether --enable-kdrive was given. 27244 if test ${enable_kdrive+y} 27245 then : 27246 enableval=$enable_kdrive; KDRIVE=$enableval 27247 else case e in #( 27248 e) KDRIVE=no ;; 27249 esac 27250 fi 27251 27252 # Check whether --enable-xephyr was given. 27253 if test ${enable_xephyr+y} 27254 then : 27255 enableval=$enable_xephyr; XEPHYR=$enableval 27256 else case e in #( 27257 e) XEPHYR=auto ;; 27258 esac 27259 fi 27260 27261 # Check whether --enable-libunwind was given. 27262 if test ${enable_libunwind+y} 27263 then : 27264 enableval=$enable_libunwind; LIBUNWIND="$enableval" 27265 else case e in #( 27266 e) LIBUNWIND="auto" ;; 27267 esac 27268 fi 27269 27270 # Check whether --enable-xshmfence was given. 27271 if test ${enable_xshmfence+y} 27272 then : 27273 enableval=$enable_xshmfence; XSHMFENCE="$enableval" 27274 else case e in #( 27275 e) XSHMFENCE="auto" ;; 27276 esac 27277 fi 27278 27279 27280 27281 # Check whether --enable-install-setuid was given. 27282 if test ${enable_install_setuid+y} 27283 then : 27284 enableval=$enable_install_setuid; SETUID=$enableval 27285 else case e in #( 27286 e) SETUID=auto ;; 27287 esac 27288 fi 27289 27290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if we can install the Xorg server as root" >&5 27291 printf %s "checking to see if we can install the Xorg server as root... " >&6; } 27292 if test "x$SETUID" = "xauto" ; then 27293 case $host_os in 27294 cygwin*) SETUID="no" ;; 27295 mingw*) SETUID="no" ;; 27296 darwin*) SETUID="no" ;; 27297 *) 27298 case $host_cpu in 27299 sparc) SETUID="no" ;; 27300 *) SETUID="yes" ;; 27301 esac 27302 esac 27303 if test "x$SETUID" = xyes; then 27304 touch testfile 27305 chown root testfile > /dev/null 2>&1 || SETUID="no" 27306 rm -f testfile 27307 fi 27308 fi 27309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SETUID" >&5 27310 printf "%s\n" "$SETUID" >&6; } 27311 if test "x$SETUID" = "xyes"; then 27312 INSTALL_SETUID_TRUE= 27313 INSTALL_SETUID_FALSE='#' 27314 else 27315 INSTALL_SETUID_TRUE='#' 27316 INSTALL_SETUID_FALSE= 27317 fi 27318 27319 27320 27321 27322 # Transport selection macro from xtrans.m4 27323 27324 27325 case $host_os in 27326 mingw*) unixdef="no" ;; 27327 *) unixdef="yes" ;; 27328 esac 27329 # Check whether --enable-unix-transport was given. 27330 if test ${enable_unix_transport+y} 27331 then : 27332 enableval=$enable_unix_transport; UNIXCONN=$enableval 27333 else case e in #( 27334 e) UNIXCONN=$unixdef ;; 27335 esac 27336 fi 27337 27338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 27339 printf %s "checking if Xtrans should support UNIX socket connections... " >&6; } 27340 if test "$UNIXCONN" = "yes"; then 27341 27342 printf "%s\n" "#define UNIXCONN 1" >>confdefs.h 27343 27344 fi 27345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 27346 printf "%s\n" "$UNIXCONN" >&6; } 27347 # Check whether --enable-tcp-transport was given. 27348 if test ${enable_tcp_transport+y} 27349 then : 27350 enableval=$enable_tcp_transport; TCPCONN=$enableval 27351 else case e in #( 27352 e) TCPCONN=yes ;; 27353 esac 27354 fi 27355 27356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 27357 printf %s "checking if Xtrans should support TCP socket connections... " >&6; } 27358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 27359 printf "%s\n" "$TCPCONN" >&6; } 27360 if test "$TCPCONN" = "yes"; then 27361 27362 printf "%s\n" "#define TCPCONN 1" >>confdefs.h 27363 27364 27365 # SVR4 hides these in libraries other than libc 27366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 27367 printf %s "checking for library containing socket... " >&6; } 27368 if test ${ac_cv_search_socket+y} 27369 then : 27370 printf %s "(cached) " >&6 27371 else case e in #( 27372 e) ac_func_search_save_LIBS=$LIBS 27373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27374 /* end confdefs.h. */ 27375 27376 /* Override any GCC internal prototype to avoid an error. 27377 Use char because int might match the return type of a GCC 27378 builtin and then its argument prototype would still apply. 27379 The 'extern "C"' is for builds by C++ compilers; 27380 although this is not generally supported in C code supporting it here 27381 has little cost and some practical benefit (sr 110532). */ 27382 #ifdef __cplusplus 27383 extern "C" 27384 #endif 27385 char socket (void); 27386 int 27387 main (void) 27388 { 27389 return socket (); 27390 ; 27391 return 0; 27392 } 27393 _ACEOF 27394 for ac_lib in '' socket 27395 do 27396 if test -z "$ac_lib"; then 27397 ac_res="none required" 27398 else 27399 ac_res=-l$ac_lib 27400 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 27401 fi 27402 if ac_fn_c_try_link "$LINENO" 27403 then : 27404 ac_cv_search_socket=$ac_res 27405 fi 27406 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27407 conftest$ac_exeext 27408 if test ${ac_cv_search_socket+y} 27409 then : 27410 break 27411 fi 27412 done 27413 if test ${ac_cv_search_socket+y} 27414 then : 27415 27416 else case e in #( 27417 e) ac_cv_search_socket=no ;; 27418 esac 27419 fi 27420 rm conftest.$ac_ext 27421 LIBS=$ac_func_search_save_LIBS ;; 27422 esac 27423 fi 27424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 27425 printf "%s\n" "$ac_cv_search_socket" >&6; } 27426 ac_res=$ac_cv_search_socket 27427 if test "$ac_res" != no 27428 then : 27429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 27430 27431 fi 27432 27433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 27434 printf %s "checking for library containing gethostbyname... " >&6; } 27435 if test ${ac_cv_search_gethostbyname+y} 27436 then : 27437 printf %s "(cached) " >&6 27438 else case e in #( 27439 e) ac_func_search_save_LIBS=$LIBS 27440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27441 /* end confdefs.h. */ 27442 27443 /* Override any GCC internal prototype to avoid an error. 27444 Use char because int might match the return type of a GCC 27445 builtin and then its argument prototype would still apply. 27446 The 'extern "C"' is for builds by C++ compilers; 27447 although this is not generally supported in C code supporting it here 27448 has little cost and some practical benefit (sr 110532). */ 27449 #ifdef __cplusplus 27450 extern "C" 27451 #endif 27452 char gethostbyname (void); 27453 int 27454 main (void) 27455 { 27456 return gethostbyname (); 27457 ; 27458 return 0; 27459 } 27460 _ACEOF 27461 for ac_lib in '' nsl 27462 do 27463 if test -z "$ac_lib"; then 27464 ac_res="none required" 27465 else 27466 ac_res=-l$ac_lib 27467 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 27468 fi 27469 if ac_fn_c_try_link "$LINENO" 27470 then : 27471 ac_cv_search_gethostbyname=$ac_res 27472 fi 27473 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27474 conftest$ac_exeext 27475 if test ${ac_cv_search_gethostbyname+y} 27476 then : 27477 break 27478 fi 27479 done 27480 if test ${ac_cv_search_gethostbyname+y} 27481 then : 27482 27483 else case e in #( 27484 e) ac_cv_search_gethostbyname=no ;; 27485 esac 27486 fi 27487 rm conftest.$ac_ext 27488 LIBS=$ac_func_search_save_LIBS ;; 27489 esac 27490 fi 27491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 27492 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 27493 ac_res=$ac_cv_search_gethostbyname 27494 if test "$ac_res" != no 27495 then : 27496 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 27497 27498 fi 27499 27500 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 27501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 27502 printf %s "checking for main in -lws2_32... " >&6; } 27503 if test ${ac_cv_lib_ws2_32_main+y} 27504 then : 27505 printf %s "(cached) " >&6 27506 else case e in #( 27507 e) ac_check_lib_save_LIBS=$LIBS 27508 LIBS="-lws2_32 $LIBS" 27509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27510 /* end confdefs.h. */ 27511 27512 27513 int 27514 main (void) 27515 { 27516 return main (); 27517 ; 27518 return 0; 27519 } 27520 _ACEOF 27521 if ac_fn_c_try_link "$LINENO" 27522 then : 27523 ac_cv_lib_ws2_32_main=yes 27524 else case e in #( 27525 e) ac_cv_lib_ws2_32_main=no ;; 27526 esac 27527 fi 27528 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27529 conftest$ac_exeext conftest.$ac_ext 27530 LIBS=$ac_check_lib_save_LIBS ;; 27531 esac 27532 fi 27533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 27534 printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 27535 if test "x$ac_cv_lib_ws2_32_main" = xyes 27536 then : 27537 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 27538 27539 LIBS="-lws2_32 $LIBS" 27540 27541 fi 27542 27543 fi 27544 27545 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 27546 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 27547 if test "x$ac_cv_func_getaddrinfo" = xyes 27548 then : 27549 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 27550 27551 fi 27552 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 27553 if test "x$ac_cv_func_inet_ntop" = xyes 27554 then : 27555 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 27556 27557 fi 27558 27559 27560 # Check whether --enable-ipv6 was given. 27561 if test ${enable_ipv6+y} 27562 then : 27563 enableval=$enable_ipv6; IPV6CONN=$enableval 27564 else case e in #( 27565 e) IPV6CONN=$ac_cv_func_getaddrinfo ;; 27566 esac 27567 fi 27568 27569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 27570 printf %s "checking if IPv6 support should be built... " >&6; } 27571 if test "$IPV6CONN" = "yes"; then 27572 27573 printf "%s\n" "#define IPv6 1" >>confdefs.h 27574 27575 fi 27576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 27577 printf "%s\n" "$IPV6CONN" >&6; } 27578 27579 # 4.3BSD-Reno added a new member to struct sockaddr_in 27580 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 27581 #include <sys/types.h> 27582 #include <sys/socket.h> 27583 #include <netinet/in.h> 27584 27585 " 27586 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 27587 then : 27588 27589 printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h 27590 27591 fi 27592 27593 27594 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 27595 # and added a type defined to be large enough to hold any sockaddr format. 27596 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 27597 $ac_includes_default 27598 #include <sys/socket.h> 27599 27600 " 27601 if test "x$ac_cv_type_socklen_t" = xyes 27602 then : 27603 27604 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 27605 27606 27607 fi 27608 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " 27609 $ac_includes_default 27610 #include <sys/socket.h> 27611 27612 " 27613 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes 27614 then : 27615 27616 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 27617 27618 27619 fi 27620 27621 27622 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 27623 # _XOPEN_SOURCE to get it (such as on Solaris) 27624 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 27625 $ac_includes_default 27626 #include <sys/socket.h> 27627 27628 " 27629 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 27630 then : 27631 27632 fi 27633 27634 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 27635 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 27636 unset ac_cv_member_struct_msghdr_msg_control 27637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 27638 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 27639 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 27640 #define _XOPEN_SOURCE 600 27641 $ac_includes_default 27642 #include <sys/socket.h> 27643 27644 " 27645 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 27646 then : 27647 27648 printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 27649 27650 27651 fi 27652 27653 fi 27654 # If that didn't work, fall back to XPG5/UNIX98 with C89 27655 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 27656 unset ac_cv_member_struct_msghdr_msg_control 27657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 27658 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 27659 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 27660 #define _XOPEN_SOURCE 500 27661 $ac_includes_default 27662 #include <sys/socket.h> 27663 27664 " 27665 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 27666 then : 27667 27668 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 27669 27670 27671 fi 27672 27673 fi 27674 27675 27676 27677 fi 27678 case $host_os in 27679 solaris*) localdef="yes" ;; 27680 *) localdef="no" ;; 27681 esac 27682 # Check whether --enable-local-transport was given. 27683 if test ${enable_local_transport+y} 27684 then : 27685 enableval=$enable_local_transport; LOCALCONN=$enableval 27686 else case e in #( 27687 e) LOCALCONN=$localdef ;; 27688 esac 27689 fi 27690 27691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 27692 printf %s "checking if Xtrans should support os-specific local connections... " >&6; } 27693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 27694 printf "%s\n" "$LOCALCONN" >&6; } 27695 if test "$LOCALCONN" = "yes"; then 27696 27697 printf "%s\n" "#define LOCALCONN 1" >>confdefs.h 27698 27699 fi 27700 27701 # Other functions Xtrans may need 27702 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 27703 if test "x$ac_cv_func_strcasecmp" = xyes 27704 then : 27705 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 27706 27707 fi 27708 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 27709 if test "x$ac_cv_func_strlcpy" = xyes 27710 then : 27711 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 27712 27713 fi 27714 27715 27716 27717 27718 # Secure RPC detection macro from xtrans.m4 27719 27720 # Check whether --enable-secure-rpc was given. 27721 if test ${enable_secure_rpc+y} 27722 then : 27723 enableval=$enable_secure_rpc; SECURE_RPC=$enableval 27724 else case e in #( 27725 e) SECURE_RPC="try" ;; 27726 esac 27727 fi 27728 27729 27730 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 27731 FOUND_SECURE_RPC="no" 27732 27733 for ac_func in authdes_seccreate authdes_create 27734 do : 27735 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"` 27736 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27737 if eval test \"x\$"$as_ac_var"\" = x"yes" 27738 then : 27739 cat >>confdefs.h <<_ACEOF 27740 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1 27741 _ACEOF 27742 FOUND_SECURE_RPC="yes" 27743 fi 27744 27745 done 27746 if test "x$FOUND_SECURE_RPC" = "xno" ; then 27747 if test "x$SECURE_RPC" = "xyes" ; then 27748 as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5 27749 fi 27750 SECURE_RPC="no" 27751 else 27752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5 27753 printf %s "checking for library containing getsecretkey... " >&6; } 27754 if test ${ac_cv_search_getsecretkey+y} 27755 then : 27756 printf %s "(cached) " >&6 27757 else case e in #( 27758 e) ac_func_search_save_LIBS=$LIBS 27759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27760 /* end confdefs.h. */ 27761 27762 /* Override any GCC internal prototype to avoid an error. 27763 Use char because int might match the return type of a GCC 27764 builtin and then its argument prototype would still apply. 27765 The 'extern "C"' is for builds by C++ compilers; 27766 although this is not generally supported in C code supporting it here 27767 has little cost and some practical benefit (sr 110532). */ 27768 #ifdef __cplusplus 27769 extern "C" 27770 #endif 27771 char getsecretkey (void); 27772 int 27773 main (void) 27774 { 27775 return getsecretkey (); 27776 ; 27777 return 0; 27778 } 27779 _ACEOF 27780 for ac_lib in '' rpcsvc 27781 do 27782 if test -z "$ac_lib"; then 27783 ac_res="none required" 27784 else 27785 ac_res=-l$ac_lib 27786 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 27787 fi 27788 if ac_fn_c_try_link "$LINENO" 27789 then : 27790 ac_cv_search_getsecretkey=$ac_res 27791 fi 27792 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27793 conftest$ac_exeext 27794 if test ${ac_cv_search_getsecretkey+y} 27795 then : 27796 break 27797 fi 27798 done 27799 if test ${ac_cv_search_getsecretkey+y} 27800 then : 27801 27802 else case e in #( 27803 e) ac_cv_search_getsecretkey=no ;; 27804 esac 27805 fi 27806 rm conftest.$ac_ext 27807 LIBS=$ac_func_search_save_LIBS ;; 27808 esac 27809 fi 27810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5 27811 printf "%s\n" "$ac_cv_search_getsecretkey" >&6; } 27812 ac_res=$ac_cv_search_getsecretkey 27813 if test "$ac_res" != no 27814 then : 27815 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 27816 27817 fi 27818 27819 SECURE_RPC="yes" 27820 fi 27821 fi 27822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5 27823 printf %s "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; } 27824 if test "x$SECURE_RPC" = "xyes" ; then 27825 27826 printf "%s\n" "#define SECURE_RPC 1" >>confdefs.h 27827 27828 fi 27829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5 27830 printf "%s\n" "$SECURE_RPC" >&6; } 27831 27832 if test "x$SECURE_RPC" = xyes; then 27833 SECURE_RPC_TRUE= 27834 SECURE_RPC_FALSE='#' 27835 else 27836 SECURE_RPC_TRUE='#' 27837 SECURE_RPC_FALSE= 27838 fi 27839 27840 27841 if test "x$INT10" = xvm86; then 27842 INT10_VM86_TRUE= 27843 INT10_VM86_FALSE='#' 27844 else 27845 INT10_VM86_TRUE='#' 27846 INT10_VM86_FALSE= 27847 fi 27848 27849 if test "x$INT10" = xx86emu; then 27850 INT10_X86EMU_TRUE= 27851 INT10_X86EMU_FALSE='#' 27852 else 27853 INT10_X86EMU_TRUE='#' 27854 INT10_X86EMU_FALSE= 27855 fi 27856 27857 if test "x$INT10" = xstub; then 27858 INT10_STUB_TRUE= 27859 INT10_STUB_FALSE='#' 27860 else 27861 INT10_STUB_TRUE='#' 27862 INT10_STUB_FALSE= 27863 fi 27864 27865 27866 case $host_os in 27867 cygwin* | mingw*) 27868 CONFIG_HAL=no 27869 CONFIG_UDEV=no 27870 CONFIG_UDEV_KMS=no 27871 DGA=no 27872 DRM=no 27873 DRI2=no 27874 DRI3=no 27875 INT10MODULE=no 27876 PCI=no 27877 VGAHW=no 27878 XF86UTILS=no 27879 XF86VIDMODE=no 27880 XSELINUX=no 27881 SYMBOL_VISIBILITY=no 27882 ;; 27883 darwin*) 27884 PCI=no 27885 INT10MODULE=no 27886 VGAHW=no 27887 DRM=no 27888 DRI2=no 27889 DRI3=no 27890 27891 if test x$XQUARTZ = xauto; then 27892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xquartz" >&5 27893 printf %s "checking whether to build Xquartz... " >&6; } 27894 if test ${xorg_cv_Carbon_framework+y} 27895 then : 27896 printf %s "(cached) " >&6 27897 else case e in #( 27898 e) 27899 save_LDFLAGS=$LDFLAGS 27900 LDFLAGS="$LDFLAGS -framework Carbon" 27901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27902 /* end confdefs.h. */ 27903 char FSFindFolder(); int main() { FSFindFolder(); return 0;} 27904 _ACEOF 27905 if ac_fn_c_try_link "$LINENO" 27906 then : 27907 xorg_cv_Carbon_framework=yes 27908 else case e in #( 27909 e) xorg_cv_Carbon_framework=no ;; 27910 esac 27911 fi 27912 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27913 conftest$ac_exeext conftest.$ac_ext 27914 LDFLAGS=$save_LDFLAGS ;; 27915 esac 27916 fi 27917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_Carbon_framework" >&5 27918 printf "%s\n" "$xorg_cv_Carbon_framework" >&6; } 27919 27920 if test "X$xorg_cv_Carbon_framework" = Xyes; then 27921 XQUARTZ=yes 27922 else 27923 XQUARTZ=no 27924 fi 27925 fi 27926 27927 if test "x$XQUARTZ" = xyes ; then 27928 XQUARTZ=yes 27929 XVFB=no 27930 XNEST=no 27931 27932 DGA=no 27933 DPMSExtension=no 27934 XF86VIDMODE=no 27935 fi 27936 ;; 27937 gnu*) 27938 DRM=no 27939 DRI2=no 27940 DRI3=no 27941 ;; 27942 *) XQUARTZ=no ;; 27943 esac 27944 27945 XEXT_INC='-I$(top_srcdir)/Xext' 27946 XEXT_LIB='$(top_builddir)/Xext/libXext.la' 27947 27948 VIDEOPROTO="videoproto" 27949 COMPOSITEPROTO="compositeproto >= 0.4" 27950 RECORDPROTO="recordproto >= 1.13.99.1" 27951 SCRNSAVERPROTO="scrnsaverproto >= 1.1" 27952 RESOURCEPROTO="resourceproto >= 1.2.0" 27953 DRIPROTO="xf86driproto >= 2.1.0" 27954 DRI2PROTO="dri2proto >= 2.8" 27955 DRI3PROTO="dri3proto >= 1.2" 27956 XINERAMAPROTO="xineramaproto" 27957 BIGFONTPROTO="xf86bigfontproto >= 1.2.0" 27958 DGAPROTO="xf86dgaproto >= 2.0.99.1" 27959 GLPROTO="glproto >= 1.4.17" 27960 VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1" 27961 APPLEWMPROTO="applewmproto >= 1.4" 27962 LIBXSHMFENCE="xshmfence >= 1.1" 27963 27964 XPROTO="xproto >= 7.0.31" 27965 RANDRPROTO="randrproto >= 1.6.0" 27966 RENDERPROTO="renderproto >= 0.11" 27967 XEXTPROTO="xextproto >= 7.2.99.901" 27968 INPUTPROTO="inputproto >= 2.3.99.1" 27969 KBPROTO="kbproto >= 1.0.3" 27970 FONTSPROTO="fontsproto >= 2.1.3" 27971 FIXESPROTO="fixesproto >= 6.0" 27972 DAMAGEPROTO="damageproto >= 1.1" 27973 XCMISCPROTO="xcmiscproto >= 1.2.0" 27974 BIGREQSPROTO="bigreqsproto >= 1.1.0" 27975 XTRANS="xtrans >= 1.3.5" 27976 PRESENTPROTO="presentproto >= 1.2" 27977 27978 LIBAPPLEWM="applewm >= 1.4" 27979 LIBDRI="dri >= 7.8.0" 27980 LIBDRM="libdrm >= 2.4.89" 27981 LIBEGL="egl" 27982 LIBGBM="gbm >= 10.2.0" 27983 LIBGL="gl >= 1.2" 27984 LIBXEXT="xext >= 1.0.99.4" 27985 LIBXFONT="xfont2 >= 2.0.0" 27986 LIBXI="xi >= 1.2.99.1" 27987 LIBXTST="xtst >= 1.0.99.2" 27988 LIBPCIACCESS="pciaccess >= 0.12.901" 27989 LIBUDEV="libudev >= 143" 27990 LIBSELINUX="libselinux >= 2.0.86" 27991 LIBDBUS="dbus-1 >= 1.0" 27992 LIBPIXMAN="pixman-1 >= 0.27.2" 27993 LIBXCVT="libxcvt" 27994 27995 27996 pkg_failed=no 27997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBPIXMAN" >&5 27998 printf %s "checking for $LIBPIXMAN... " >&6; } 27999 28000 if test -n "$PIXMAN_CFLAGS"; then 28001 pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS" 28002 elif test -n "$PKG_CONFIG"; then 28003 if test -n "$PKG_CONFIG" && \ 28004 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5 28005 ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5 28006 ac_status=$? 28007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28008 test $ac_status = 0; }; then 28009 pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$LIBPIXMAN" 2>/dev/null` 28010 test "x$?" != "x0" && pkg_failed=yes 28011 else 28012 pkg_failed=yes 28013 fi 28014 else 28015 pkg_failed=untried 28016 fi 28017 if test -n "$PIXMAN_LIBS"; then 28018 pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS" 28019 elif test -n "$PKG_CONFIG"; then 28020 if test -n "$PKG_CONFIG" && \ 28021 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5 28022 ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5 28023 ac_status=$? 28024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28025 test $ac_status = 0; }; then 28026 pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$LIBPIXMAN" 2>/dev/null` 28027 test "x$?" != "x0" && pkg_failed=yes 28028 else 28029 pkg_failed=yes 28030 fi 28031 else 28032 pkg_failed=untried 28033 fi 28034 28035 28036 28037 if test $pkg_failed = yes; then 28038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28039 printf "%s\n" "no" >&6; } 28040 28041 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28042 _pkg_short_errors_supported=yes 28043 else 28044 _pkg_short_errors_supported=no 28045 fi 28046 if test $_pkg_short_errors_supported = yes; then 28047 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPIXMAN" 2>&1` 28048 else 28049 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPIXMAN" 2>&1` 28050 fi 28051 # Put the nasty error message in config.log where it belongs 28052 echo "$PIXMAN_PKG_ERRORS" >&5 28053 28054 as_fn_error $? "Package requirements ($LIBPIXMAN) were not met: 28055 28056 $PIXMAN_PKG_ERRORS 28057 28058 Consider adjusting the PKG_CONFIG_PATH environment variable if you 28059 installed software in a non-standard prefix. 28060 28061 Alternatively, you may set the environment variables PIXMAN_CFLAGS 28062 and PIXMAN_LIBS to avoid the need to call pkg-config. 28063 See the pkg-config man page for more details." "$LINENO" 5 28064 elif test $pkg_failed = untried; then 28065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28066 printf "%s\n" "no" >&6; } 28067 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 28068 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 28069 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 28070 is in your PATH or set the PKG_CONFIG environment variable to the full 28071 path to pkg-config. 28072 28073 Alternatively, you may set the environment variables PIXMAN_CFLAGS 28074 and PIXMAN_LIBS to avoid the need to call pkg-config. 28075 See the pkg-config man page for more details. 28076 28077 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 28078 See 'config.log' for more details" "$LINENO" 5; } 28079 else 28080 PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS 28081 PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS 28082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28083 printf "%s\n" "yes" >&6; } 28084 28085 fi 28086 REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau" 28087 28088 SDK_REQUIRED_MODULES="$XPROTO $RANDRPROTO $RENDERPROTO $XEXTPROTO $INPUTPROTO $KBPROTO $FONTSPROTO $LIBPIXMAN" 28089 # Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc 28090 28091 28092 ac_fn_check_decl "$LINENO" "PTHREAD_MUTEX_RECURSIVE" "ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" "#include <pthread.h> 28093 " "$ac_c_undeclared_builtin_options" "CFLAGS" 28094 if test "x$ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" = xyes 28095 then : 28096 HAVE_RECURSIVE_MUTEX=yes 28097 else case e in #( 28098 e) HAVE_RECURSIVE_MUTEX=no ;; 28099 esac 28100 fi 28101 28102 THREAD_DEFAULT=no 28103 28104 if test "x$HAVE_RECURSIVE_MUTEX" = "xyes" ; then 28105 THREAD_DEFAULT=yes 28106 fi 28107 28108 case $host_os in 28109 mingw*) THREAD_DEFAULT=no ;; 28110 *) 28111 esac 28112 28113 # Check whether --enable-input-thread was given. 28114 if test ${enable_input_thread+y} 28115 then : 28116 enableval=$enable_input_thread; INPUTTHREAD=$enableval 28117 else case e in #( 28118 e) INPUTTHREAD=$THREAD_DEFAULT ;; 28119 esac 28120 fi 28121 28122 28123 if test "x$INPUTTHREAD" = "xyes" ; then 28124 28125 28126 ac_ext=c 28127 ac_cpp='$CPP $CPPFLAGS' 28128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28130 ac_compiler_gnu=$ac_cv_c_compiler_gnu 28131 28132 ax_pthread_ok=no 28133 28134 # We used to check for pthread.h first, but this fails if pthread.h 28135 # requires special compiler flags (e.g. on True64 or Sequent). 28136 # It gets checked for in the link test anyway. 28137 28138 # First of all, check if the user has set any of the PTHREAD_LIBS, 28139 # etcetera environment variables, and if threads linking works using 28140 # them: 28141 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 28142 save_CFLAGS="$CFLAGS" 28143 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 28144 save_LIBS="$LIBS" 28145 LIBS="$PTHREAD_LIBS $LIBS" 28146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 28147 printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 28148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28149 /* end confdefs.h. */ 28150 28151 /* Override any GCC internal prototype to avoid an error. 28152 Use char because int might match the return type of a GCC 28153 builtin and then its argument prototype would still apply. 28154 The 'extern "C"' is for builds by C++ compilers; 28155 although this is not generally supported in C code supporting it here 28156 has little cost and some practical benefit (sr 110532). */ 28157 #ifdef __cplusplus 28158 extern "C" 28159 #endif 28160 char pthread_join (void); 28161 int 28162 main (void) 28163 { 28164 return pthread_join (); 28165 ; 28166 return 0; 28167 } 28168 _ACEOF 28169 if ac_fn_c_try_link "$LINENO" 28170 then : 28171 ax_pthread_ok=yes 28172 fi 28173 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28174 conftest$ac_exeext conftest.$ac_ext 28175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 28176 printf "%s\n" "$ax_pthread_ok" >&6; } 28177 if test x"$ax_pthread_ok" = xno; then 28178 PTHREAD_LIBS="" 28179 PTHREAD_CFLAGS="" 28180 fi 28181 LIBS="$save_LIBS" 28182 CFLAGS="$save_CFLAGS" 28183 fi 28184 28185 # We must check for the threads library under a number of different 28186 # names; the ordering is very important because some systems 28187 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the 28188 # libraries is broken (non-POSIX). 28189 28190 # Create a list of thread flags to try. Items starting with a "-" are 28191 # C compiler flags, and other items are library names, except for "none" 28192 # which indicates that we try without any flags at all, and "pthread-config" 28193 # which is a program returning the flags for the Pth emulation library. 28194 28195 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 28196 28197 # The ordering *is* (sometimes) important. Some notes on the 28198 # individual items follow: 28199 28200 # pthreads: AIX (must check this before -lpthread) 28201 # none: in case threads are in libc; should be tried before -Kthread and 28202 # other compiler flags to prevent continual compiler warnings 28203 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 28204 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 28205 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 28206 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 28207 # -pthreads: Solaris/gcc 28208 # -mthreads: Mingw32/gcc, Lynx/gcc 28209 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 28210 # doesn't hurt to check since this sometimes defines pthreads too; 28211 # also defines -D_REENTRANT) 28212 # ... -mt is also the pthreads flag for HP/aCC 28213 # pthread: Linux, etcetera 28214 # --thread-safe: KAI C++ 28215 # pthread-config: use pthread-config program (for GNU Pth library) 28216 28217 case ${host_os} in 28218 solaris*) 28219 28220 # On Solaris (at least, for some versions), libc contains stubbed 28221 # (non-functional) versions of the pthreads routines, so link-based 28222 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 28223 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 28224 # a function called by this macro, so we could check for that, but 28225 # who knows whether they'll stub that too in a future libc.) So, 28226 # we'll just look for -pthreads and -lpthread first: 28227 28228 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 28229 ;; 28230 28231 darwin*) 28232 ax_pthread_flags="-pthread $ax_pthread_flags" 28233 ;; 28234 netbsd*) 28235 # use libc stubs, don't link against libpthread, to allow 28236 # dynamic loading 28237 ax_pthread_flags="" 28238 ;; 28239 esac 28240 28241 # Clang doesn't consider unrecognized options an error unless we specify 28242 # -Werror. We throw in some extra Clang-specific options to ensure that 28243 # this doesn't happen for GCC, which also accepts -Werror. 28244 28245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 28246 printf %s "checking if compiler needs -Werror to reject unknown flags... " >&6; } 28247 save_CFLAGS="$CFLAGS" 28248 ax_pthread_extra_flags="-Werror" 28249 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 28250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28251 /* end confdefs.h. */ 28252 int foo(void); 28253 int 28254 main (void) 28255 { 28256 foo() 28257 ; 28258 return 0; 28259 } 28260 _ACEOF 28261 if ac_fn_c_try_compile "$LINENO" 28262 then : 28263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28264 printf "%s\n" "yes" >&6; } 28265 else case e in #( 28266 e) ax_pthread_extra_flags= 28267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28268 printf "%s\n" "no" >&6; } ;; 28269 esac 28270 fi 28271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28272 CFLAGS="$save_CFLAGS" 28273 28274 if test x"$ax_pthread_ok" = xno; then 28275 for flag in $ax_pthread_flags; do 28276 28277 case $flag in 28278 none) 28279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 28280 printf %s "checking whether pthreads work without any flags... " >&6; } 28281 ;; 28282 28283 -*) 28284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 28285 printf %s "checking whether pthreads work with $flag... " >&6; } 28286 PTHREAD_CFLAGS="$flag" 28287 ;; 28288 28289 pthread-config) 28290 # Extract the first word of "pthread-config", so it can be a program name with args. 28291 set dummy pthread-config; ac_word=$2 28292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28293 printf %s "checking for $ac_word... " >&6; } 28294 if test ${ac_cv_prog_ax_pthread_config+y} 28295 then : 28296 printf %s "(cached) " >&6 28297 else case e in #( 28298 e) if test -n "$ax_pthread_config"; then 28299 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 28300 else 28301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28302 for as_dir in $PATH 28303 do 28304 IFS=$as_save_IFS 28305 case $as_dir in #((( 28306 '') as_dir=./ ;; 28307 */) ;; 28308 *) as_dir=$as_dir/ ;; 28309 esac 28310 for ac_exec_ext in '' $ac_executable_extensions; do 28311 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28312 ac_cv_prog_ax_pthread_config="yes" 28313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28314 break 2 28315 fi 28316 done 28317 done 28318 IFS=$as_save_IFS 28319 28320 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 28321 fi ;; 28322 esac 28323 fi 28324 ax_pthread_config=$ac_cv_prog_ax_pthread_config 28325 if test -n "$ax_pthread_config"; then 28326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 28327 printf "%s\n" "$ax_pthread_config" >&6; } 28328 else 28329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28330 printf "%s\n" "no" >&6; } 28331 fi 28332 28333 28334 if test x"$ax_pthread_config" = xno; then continue; fi 28335 PTHREAD_CFLAGS="`pthread-config --cflags`" 28336 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 28337 ;; 28338 28339 *) 28340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 28341 printf %s "checking for the pthreads library -l$flag... " >&6; } 28342 PTHREAD_LIBS="-l$flag" 28343 ;; 28344 esac 28345 28346 save_LIBS="$LIBS" 28347 save_CFLAGS="$CFLAGS" 28348 LIBS="$PTHREAD_LIBS $LIBS" 28349 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 28350 28351 # Check for various functions. We must include pthread.h, 28352 # since some functions may be macros. (On the Sequent, we 28353 # need a special flag -Kthread to make this header compile.) 28354 # We check for pthread_join because it is in -lpthread on IRIX 28355 # while pthread_create is in libc. We check for pthread_attr_init 28356 # due to DEC craziness with -lpthreads. We check for 28357 # pthread_cleanup_push because it is one of the few pthread 28358 # functions on Solaris that doesn't have a non-functional libc stub. 28359 # We try pthread_create on general principles. 28360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28361 /* end confdefs.h. */ 28362 #include <pthread.h> 28363 static void routine(void *a) { a = 0; } 28364 static void *start_routine(void *a) { return a; } 28365 int 28366 main (void) 28367 { 28368 pthread_t th; pthread_attr_t attr; 28369 pthread_create(&th, 0, start_routine, 0); 28370 pthread_join(th, 0); 28371 pthread_attr_init(&attr); 28372 pthread_cleanup_push(routine, 0); 28373 pthread_cleanup_pop(0) /* ; */ 28374 ; 28375 return 0; 28376 } 28377 _ACEOF 28378 if ac_fn_c_try_link "$LINENO" 28379 then : 28380 ax_pthread_ok=yes 28381 fi 28382 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28383 conftest$ac_exeext conftest.$ac_ext 28384 28385 LIBS="$save_LIBS" 28386 CFLAGS="$save_CFLAGS" 28387 28388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 28389 printf "%s\n" "$ax_pthread_ok" >&6; } 28390 if test "x$ax_pthread_ok" = xyes; then 28391 break; 28392 fi 28393 28394 PTHREAD_LIBS="" 28395 PTHREAD_CFLAGS="" 28396 done 28397 fi 28398 28399 # Various other checks: 28400 if test "x$ax_pthread_ok" = xyes; then 28401 save_LIBS="$LIBS" 28402 LIBS="$PTHREAD_LIBS $LIBS" 28403 save_CFLAGS="$CFLAGS" 28404 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 28405 28406 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 28407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 28408 printf %s "checking for joinable pthread attribute... " >&6; } 28409 attr_name=unknown 28410 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 28411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28412 /* end confdefs.h. */ 28413 #include <pthread.h> 28414 int 28415 main (void) 28416 { 28417 int attr = $attr; return attr /* ; */ 28418 ; 28419 return 0; 28420 } 28421 _ACEOF 28422 if ac_fn_c_try_link "$LINENO" 28423 then : 28424 attr_name=$attr; break 28425 fi 28426 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28427 conftest$ac_exeext conftest.$ac_ext 28428 done 28429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 28430 printf "%s\n" "$attr_name" >&6; } 28431 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 28432 28433 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h 28434 28435 fi 28436 28437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 28438 printf %s "checking if more special flags are required for pthreads... " >&6; } 28439 flag=no 28440 case ${host_os} in 28441 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 28442 osf* | hpux*) flag="-D_REENTRANT";; 28443 solaris*) 28444 if test "$GCC" = "yes"; then 28445 flag="-D_REENTRANT" 28446 else 28447 # TODO: What about Clang on Solaris? 28448 flag="-mt -D_REENTRANT" 28449 fi 28450 ;; 28451 esac 28452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 28453 printf "%s\n" "$flag" >&6; } 28454 if test "x$flag" != xno; then 28455 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 28456 fi 28457 28458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 28459 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } 28460 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} 28461 then : 28462 printf %s "(cached) " >&6 28463 else case e in #( 28464 e) 28465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28466 /* end confdefs.h. */ 28467 #include <pthread.h> 28468 int 28469 main (void) 28470 { 28471 int i = PTHREAD_PRIO_INHERIT; 28472 ; 28473 return 0; 28474 } 28475 _ACEOF 28476 if ac_fn_c_try_link "$LINENO" 28477 then : 28478 ax_cv_PTHREAD_PRIO_INHERIT=yes 28479 else case e in #( 28480 e) ax_cv_PTHREAD_PRIO_INHERIT=no ;; 28481 esac 28482 fi 28483 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28484 conftest$ac_exeext conftest.$ac_ext 28485 ;; 28486 esac 28487 fi 28488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 28489 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 28490 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" 28491 then : 28492 28493 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 28494 28495 fi 28496 28497 LIBS="$save_LIBS" 28498 CFLAGS="$save_CFLAGS" 28499 28500 # More AIX lossage: compile with *_r variant 28501 if test "x$GCC" != xyes; then 28502 case $host_os in 28503 aix*) 28504 case "x/$CC" in #( 28505 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 28506 #handle absolute path differently from PATH based program lookup 28507 case "x$CC" in #( 28508 x/*) : 28509 if as_fn_executable_p ${CC}_r 28510 then : 28511 PTHREAD_CC="${CC}_r" 28512 fi ;; #( 28513 *) : 28514 for ac_prog in ${CC}_r 28515 do 28516 # Extract the first word of "$ac_prog", so it can be a program name with args. 28517 set dummy $ac_prog; ac_word=$2 28518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28519 printf %s "checking for $ac_word... " >&6; } 28520 if test ${ac_cv_prog_PTHREAD_CC+y} 28521 then : 28522 printf %s "(cached) " >&6 28523 else case e in #( 28524 e) if test -n "$PTHREAD_CC"; then 28525 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 28526 else 28527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28528 for as_dir in $PATH 28529 do 28530 IFS=$as_save_IFS 28531 case $as_dir in #((( 28532 '') as_dir=./ ;; 28533 */) ;; 28534 *) as_dir=$as_dir/ ;; 28535 esac 28536 for ac_exec_ext in '' $ac_executable_extensions; do 28537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28538 ac_cv_prog_PTHREAD_CC="$ac_prog" 28539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28540 break 2 28541 fi 28542 done 28543 done 28544 IFS=$as_save_IFS 28545 28546 fi ;; 28547 esac 28548 fi 28549 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 28550 if test -n "$PTHREAD_CC"; then 28551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 28552 printf "%s\n" "$PTHREAD_CC" >&6; } 28553 else 28554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28555 printf "%s\n" "no" >&6; } 28556 fi 28557 28558 28559 test -n "$PTHREAD_CC" && break 28560 done 28561 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 28562 ;; 28563 esac ;; #( 28564 *) : 28565 ;; 28566 esac 28567 ;; 28568 esac 28569 fi 28570 fi 28571 28572 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 28573 28574 28575 28576 28577 28578 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 28579 if test x"$ax_pthread_ok" = xyes; then 28580 28581 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h 28582 28583 : 28584 else 28585 ax_pthread_ok=no 28586 as_fn_error $? "threaded input requested but no pthread support has been found" "$LINENO" 5 28587 fi 28588 ac_ext=c 28589 ac_cpp='$CPP $CPPFLAGS' 28590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28592 ac_compiler_gnu=$ac_cv_c_compiler_gnu 28593 28594 28595 SYS_LIBS="$SYS_LIBS $PTHREAD_LIBS" 28596 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 28597 28598 printf "%s\n" "#define INPUTTHREAD 1" >>confdefs.h 28599 28600 28601 save_LIBS="$LIBS" 28602 LIBS="$LIBS $SYS_LIBS" 28603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(const char*)" >&5 28604 printf %s "checking for pthread_setname_np(const char*)... " >&6; } 28605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28606 /* end confdefs.h. */ 28607 #include <pthread.h> 28608 int 28609 main (void) 28610 { 28611 pthread_setname_np("example") 28612 ; 28613 return 0; 28614 } 28615 _ACEOF 28616 if ac_fn_c_try_link "$LINENO" 28617 then : 28618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28619 printf "%s\n" "yes" >&6; } 28620 28621 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID 1" >>confdefs.h 28622 28623 else case e in #( 28624 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28625 printf "%s\n" "no" >&6; } ;; 28626 esac 28627 fi 28628 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28629 conftest$ac_exeext conftest.$ac_ext 28630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(pthread_t, const char*)" >&5 28631 printf %s "checking for pthread_setname_np(pthread_t, const char*)... " >&6; } 28632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28633 /* end confdefs.h. */ 28634 #include <pthread.h> 28635 int 28636 main (void) 28637 { 28638 pthread_setname_np(pthread_self(), "example") 28639 ; 28640 return 0; 28641 } 28642 _ACEOF 28643 if ac_fn_c_try_link "$LINENO" 28644 then : 28645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28646 printf "%s\n" "yes" >&6; } 28647 28648 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_WITH_TID 1" >>confdefs.h 28649 28650 else case e in #( 28651 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28652 printf "%s\n" "no" >&6; } ;; 28653 esac 28654 fi 28655 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28656 conftest$ac_exeext conftest.$ac_ext 28657 LIBS="$save_LIBS" 28658 fi 28659 28660 REQUIRED_MODULES="$FIXESPROTO $DAMAGEPROTO $XCMISCPROTO $XTRANS $BIGREQSPROTO $SDK_REQUIRED_MODULES" 28661 28662 LIBSYSTEMD="libsystemd >= 209" 28663 28664 # Check whether --with-systemd-daemon was given. 28665 if test ${with_systemd_daemon+y} 28666 then : 28667 withval=$with_systemd_daemon; WITH_SYSTEMD_DAEMON=$withval 28668 else case e in #( 28669 e) WITH_SYSTEMD_DAEMON=auto ;; 28670 esac 28671 fi 28672 28673 if test "x$WITH_SYSTEMD_DAEMON" = "xyes" -o "x$WITH_SYSTEMD_DAEMON" = "xauto" ; then 28674 28675 pkg_failed=no 28676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBSYSTEMD" >&5 28677 printf %s "checking for $LIBSYSTEMD... " >&6; } 28678 28679 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 28680 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 28681 elif test -n "$PKG_CONFIG"; then 28682 if test -n "$PKG_CONFIG" && \ 28683 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5 28684 ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5 28685 ac_status=$? 28686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28687 test $ac_status = 0; }; then 28688 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "$LIBSYSTEMD" 2>/dev/null` 28689 test "x$?" != "x0" && pkg_failed=yes 28690 else 28691 pkg_failed=yes 28692 fi 28693 else 28694 pkg_failed=untried 28695 fi 28696 if test -n "$SYSTEMD_DAEMON_LIBS"; then 28697 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 28698 elif test -n "$PKG_CONFIG"; then 28699 if test -n "$PKG_CONFIG" && \ 28700 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5 28701 ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5 28702 ac_status=$? 28703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28704 test $ac_status = 0; }; then 28705 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "$LIBSYSTEMD" 2>/dev/null` 28706 test "x$?" != "x0" && pkg_failed=yes 28707 else 28708 pkg_failed=yes 28709 fi 28710 else 28711 pkg_failed=untried 28712 fi 28713 28714 28715 28716 if test $pkg_failed = yes; then 28717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28718 printf "%s\n" "no" >&6; } 28719 28720 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28721 _pkg_short_errors_supported=yes 28722 else 28723 _pkg_short_errors_supported=no 28724 fi 28725 if test $_pkg_short_errors_supported = yes; then 28726 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1` 28727 else 28728 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1` 28729 fi 28730 # Put the nasty error message in config.log where it belongs 28731 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 28732 28733 28734 pkg_failed=no 28735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5 28736 printf %s "checking for libsystemd-daemon... " >&6; } 28737 28738 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 28739 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 28740 elif test -n "$PKG_CONFIG"; then 28741 if test -n "$PKG_CONFIG" && \ 28742 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 28743 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 28744 ac_status=$? 28745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28746 test $ac_status = 0; }; then 28747 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 28748 test "x$?" != "x0" && pkg_failed=yes 28749 else 28750 pkg_failed=yes 28751 fi 28752 else 28753 pkg_failed=untried 28754 fi 28755 if test -n "$SYSTEMD_DAEMON_LIBS"; then 28756 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 28757 elif test -n "$PKG_CONFIG"; then 28758 if test -n "$PKG_CONFIG" && \ 28759 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 28760 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 28761 ac_status=$? 28762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28763 test $ac_status = 0; }; then 28764 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 28765 test "x$?" != "x0" && pkg_failed=yes 28766 else 28767 pkg_failed=yes 28768 fi 28769 else 28770 pkg_failed=untried 28771 fi 28772 28773 28774 28775 if test $pkg_failed = yes; then 28776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28777 printf "%s\n" "no" >&6; } 28778 28779 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28780 _pkg_short_errors_supported=yes 28781 else 28782 _pkg_short_errors_supported=no 28783 fi 28784 if test $_pkg_short_errors_supported = yes; then 28785 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 28786 else 28787 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 28788 fi 28789 # Put the nasty error message in config.log where it belongs 28790 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 28791 28792 HAVE_SYSTEMD_DAEMON=no 28793 elif test $pkg_failed = untried; then 28794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28795 printf "%s\n" "no" >&6; } 28796 HAVE_SYSTEMD_DAEMON=no 28797 else 28798 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 28799 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 28800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28801 printf "%s\n" "yes" >&6; } 28802 HAVE_SYSTEMD_DAEMON=yes; 28803 LIBSYSTEMD_DAEMON=libsystemd-daemon 28804 fi 28805 elif test $pkg_failed = untried; then 28806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28807 printf "%s\n" "no" >&6; } 28808 28809 pkg_failed=no 28810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5 28811 printf %s "checking for libsystemd-daemon... " >&6; } 28812 28813 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 28814 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 28815 elif test -n "$PKG_CONFIG"; then 28816 if test -n "$PKG_CONFIG" && \ 28817 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 28818 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 28819 ac_status=$? 28820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28821 test $ac_status = 0; }; then 28822 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 28823 test "x$?" != "x0" && pkg_failed=yes 28824 else 28825 pkg_failed=yes 28826 fi 28827 else 28828 pkg_failed=untried 28829 fi 28830 if test -n "$SYSTEMD_DAEMON_LIBS"; then 28831 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 28832 elif test -n "$PKG_CONFIG"; then 28833 if test -n "$PKG_CONFIG" && \ 28834 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 28835 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 28836 ac_status=$? 28837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28838 test $ac_status = 0; }; then 28839 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 28840 test "x$?" != "x0" && pkg_failed=yes 28841 else 28842 pkg_failed=yes 28843 fi 28844 else 28845 pkg_failed=untried 28846 fi 28847 28848 28849 28850 if test $pkg_failed = yes; then 28851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28852 printf "%s\n" "no" >&6; } 28853 28854 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28855 _pkg_short_errors_supported=yes 28856 else 28857 _pkg_short_errors_supported=no 28858 fi 28859 if test $_pkg_short_errors_supported = yes; then 28860 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 28861 else 28862 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 28863 fi 28864 # Put the nasty error message in config.log where it belongs 28865 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 28866 28867 HAVE_SYSTEMD_DAEMON=no 28868 elif test $pkg_failed = untried; then 28869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28870 printf "%s\n" "no" >&6; } 28871 HAVE_SYSTEMD_DAEMON=no 28872 else 28873 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 28874 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 28875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28876 printf "%s\n" "yes" >&6; } 28877 HAVE_SYSTEMD_DAEMON=yes; 28878 LIBSYSTEMD_DAEMON=libsystemd-daemon 28879 fi 28880 else 28881 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 28882 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 28883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28884 printf "%s\n" "yes" >&6; } 28885 HAVE_SYSTEMD_DAEMON=yes; 28886 LIBSYSTEMD_DAEMON="$LIBSYSTEMD" 28887 fi 28888 if test "x$HAVE_SYSTEMD_DAEMON" = xyes; then 28889 28890 printf "%s\n" "#define HAVE_SYSTEMD_DAEMON 1" >>confdefs.h 28891 28892 REQUIRED_LIBS="$REQUIRED_LIBS $LIBSYSTEMD_DAEMON" 28893 elif test "x$WITH_SYSTEMD_DAEMON" = xyes; then 28894 as_fn_error $? "systemd support requested but no library has been found" "$LINENO" 5 28895 fi 28896 fi 28897 if test "x$HAVE_SYSTEMD_DAEMON" = "xyes"; then 28898 HAVE_SYSTEMD_DAEMON_TRUE= 28899 HAVE_SYSTEMD_DAEMON_FALSE='#' 28900 else 28901 HAVE_SYSTEMD_DAEMON_TRUE='#' 28902 HAVE_SYSTEMD_DAEMON_FALSE= 28903 fi 28904 28905 28906 if test "x$CONFIG_UDEV" = xyes && test "x$CONFIG_HAL" = xyes; then 28907 as_fn_error $? "Hotplugging through both libudev and hal not allowed" "$LINENO" 5 28908 fi 28909 28910 28911 pkg_failed=no 28912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBUDEV" >&5 28913 printf %s "checking for $LIBUDEV... " >&6; } 28914 28915 if test -n "$UDEV_CFLAGS"; then 28916 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" 28917 elif test -n "$PKG_CONFIG"; then 28918 if test -n "$PKG_CONFIG" && \ 28919 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5 28920 ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5 28921 ac_status=$? 28922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28923 test $ac_status = 0; }; then 28924 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "$LIBUDEV" 2>/dev/null` 28925 test "x$?" != "x0" && pkg_failed=yes 28926 else 28927 pkg_failed=yes 28928 fi 28929 else 28930 pkg_failed=untried 28931 fi 28932 if test -n "$UDEV_LIBS"; then 28933 pkg_cv_UDEV_LIBS="$UDEV_LIBS" 28934 elif test -n "$PKG_CONFIG"; then 28935 if test -n "$PKG_CONFIG" && \ 28936 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5 28937 ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5 28938 ac_status=$? 28939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28940 test $ac_status = 0; }; then 28941 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "$LIBUDEV" 2>/dev/null` 28942 test "x$?" != "x0" && pkg_failed=yes 28943 else 28944 pkg_failed=yes 28945 fi 28946 else 28947 pkg_failed=untried 28948 fi 28949 28950 28951 28952 if test $pkg_failed = yes; then 28953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28954 printf "%s\n" "no" >&6; } 28955 28956 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28957 _pkg_short_errors_supported=yes 28958 else 28959 _pkg_short_errors_supported=no 28960 fi 28961 if test $_pkg_short_errors_supported = yes; then 28962 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBUDEV" 2>&1` 28963 else 28964 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBUDEV" 2>&1` 28965 fi 28966 # Put the nasty error message in config.log where it belongs 28967 echo "$UDEV_PKG_ERRORS" >&5 28968 28969 HAVE_LIBUDEV=no 28970 elif test $pkg_failed = untried; then 28971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28972 printf "%s\n" "no" >&6; } 28973 HAVE_LIBUDEV=no 28974 else 28975 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS 28976 UDEV_LIBS=$pkg_cv_UDEV_LIBS 28977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28978 printf "%s\n" "yes" >&6; } 28979 HAVE_LIBUDEV=yes 28980 fi 28981 if test "x$CONFIG_UDEV" = xauto; then 28982 CONFIG_UDEV="$HAVE_LIBUDEV" 28983 fi 28984 if test "x$CONFIG_UDEV" = xyes; then 28985 CONFIG_UDEV_TRUE= 28986 CONFIG_UDEV_FALSE='#' 28987 else 28988 CONFIG_UDEV_TRUE='#' 28989 CONFIG_UDEV_FALSE= 28990 fi 28991 28992 if test "x$CONFIG_UDEV" = xyes; then 28993 CONFIG_HAL=no 28994 if test "x$CONFIG_UDEV_KMS" = xauto; then 28995 CONFIG_UDEV_KMS="$HAVE_LIBUDEV" 28996 fi 28997 if ! test "x$HAVE_LIBUDEV" = xyes; then 28998 as_fn_error $? "udev configuration API requested, but libudev is not installed" "$LINENO" 5 28999 fi 29000 29001 printf "%s\n" "#define CONFIG_UDEV 1" >>confdefs.h 29002 29003 if test "x$CONFIG_UDEV_KMS" = xyes; then 29004 29005 printf "%s\n" "#define CONFIG_UDEV_KMS 1" >>confdefs.h 29006 29007 fi 29008 SAVE_LIBS=$LIBS 29009 SAVE_CFLAGS=$CFLAGS 29010 CFLAGS="$CFLAGS $UDEV_CFLAGS" 29011 LIBS=$UDEV_LIBS 29012 ac_fn_c_check_func "$LINENO" "udev_monitor_filter_add_match_tag" "ac_cv_func_udev_monitor_filter_add_match_tag" 29013 if test "x$ac_cv_func_udev_monitor_filter_add_match_tag" = xyes 29014 then : 29015 printf "%s\n" "#define HAVE_UDEV_MONITOR_FILTER_ADD_MATCH_TAG 1" >>confdefs.h 29016 29017 fi 29018 29019 ac_fn_c_check_func "$LINENO" "udev_enumerate_add_match_tag" "ac_cv_func_udev_enumerate_add_match_tag" 29020 if test "x$ac_cv_func_udev_enumerate_add_match_tag" = xyes 29021 then : 29022 printf "%s\n" "#define HAVE_UDEV_ENUMERATE_ADD_MATCH_TAG 1" >>confdefs.h 29023 29024 fi 29025 29026 LIBS=$SAVE_LIBS 29027 CFLAGS=$SAVE_CFLAGS 29028 fi 29029 if test "x$CONFIG_UDEV_KMS" = xyes; then 29030 CONFIG_UDEV_KMS_TRUE= 29031 CONFIG_UDEV_KMS_FALSE='#' 29032 else 29033 CONFIG_UDEV_KMS_TRUE='#' 29034 CONFIG_UDEV_KMS_FALSE= 29035 fi 29036 29037 29038 29039 pkg_failed=no 29040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBDBUS" >&5 29041 printf %s "checking for $LIBDBUS... " >&6; } 29042 29043 if test -n "$DBUS_CFLAGS"; then 29044 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS" 29045 elif test -n "$PKG_CONFIG"; then 29046 if test -n "$PKG_CONFIG" && \ 29047 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5 29048 ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5 29049 ac_status=$? 29050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29051 test $ac_status = 0; }; then 29052 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$LIBDBUS" 2>/dev/null` 29053 test "x$?" != "x0" && pkg_failed=yes 29054 else 29055 pkg_failed=yes 29056 fi 29057 else 29058 pkg_failed=untried 29059 fi 29060 if test -n "$DBUS_LIBS"; then 29061 pkg_cv_DBUS_LIBS="$DBUS_LIBS" 29062 elif test -n "$PKG_CONFIG"; then 29063 if test -n "$PKG_CONFIG" && \ 29064 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5 29065 ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5 29066 ac_status=$? 29067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29068 test $ac_status = 0; }; then 29069 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$LIBDBUS" 2>/dev/null` 29070 test "x$?" != "x0" && pkg_failed=yes 29071 else 29072 pkg_failed=yes 29073 fi 29074 else 29075 pkg_failed=untried 29076 fi 29077 29078 29079 29080 if test $pkg_failed = yes; then 29081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29082 printf "%s\n" "no" >&6; } 29083 29084 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29085 _pkg_short_errors_supported=yes 29086 else 29087 _pkg_short_errors_supported=no 29088 fi 29089 if test $_pkg_short_errors_supported = yes; then 29090 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDBUS" 2>&1` 29091 else 29092 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDBUS" 2>&1` 29093 fi 29094 # Put the nasty error message in config.log where it belongs 29095 echo "$DBUS_PKG_ERRORS" >&5 29096 29097 HAVE_DBUS=no 29098 elif test $pkg_failed = untried; then 29099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29100 printf "%s\n" "no" >&6; } 29101 HAVE_DBUS=no 29102 else 29103 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS 29104 DBUS_LIBS=$pkg_cv_DBUS_LIBS 29105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29106 printf "%s\n" "yes" >&6; } 29107 HAVE_DBUS=yes 29108 fi 29109 if test "x$HAVE_DBUS" = xyes; then 29110 29111 printf "%s\n" "#define HAVE_DBUS 1" >>confdefs.h 29112 29113 fi 29114 if test "x$HAVE_DBUS" = xyes; then 29115 HAVE_DBUS_TRUE= 29116 HAVE_DBUS_FALSE='#' 29117 else 29118 HAVE_DBUS_TRUE='#' 29119 HAVE_DBUS_FALSE= 29120 fi 29121 29122 29123 29124 pkg_failed=no 29125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hal" >&5 29126 printf %s "checking for hal... " >&6; } 29127 29128 if test -n "$HAL_CFLAGS"; then 29129 pkg_cv_HAL_CFLAGS="$HAL_CFLAGS" 29130 elif test -n "$PKG_CONFIG"; then 29131 if test -n "$PKG_CONFIG" && \ 29132 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5 29133 ($PKG_CONFIG --exists --print-errors "hal") 2>&5 29134 ac_status=$? 29135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29136 test $ac_status = 0; }; then 29137 pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null` 29138 test "x$?" != "x0" && pkg_failed=yes 29139 else 29140 pkg_failed=yes 29141 fi 29142 else 29143 pkg_failed=untried 29144 fi 29145 if test -n "$HAL_LIBS"; then 29146 pkg_cv_HAL_LIBS="$HAL_LIBS" 29147 elif test -n "$PKG_CONFIG"; then 29148 if test -n "$PKG_CONFIG" && \ 29149 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5 29150 ($PKG_CONFIG --exists --print-errors "hal") 2>&5 29151 ac_status=$? 29152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29153 test $ac_status = 0; }; then 29154 pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null` 29155 test "x$?" != "x0" && pkg_failed=yes 29156 else 29157 pkg_failed=yes 29158 fi 29159 else 29160 pkg_failed=untried 29161 fi 29162 29163 29164 29165 if test $pkg_failed = yes; then 29166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29167 printf "%s\n" "no" >&6; } 29168 29169 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29170 _pkg_short_errors_supported=yes 29171 else 29172 _pkg_short_errors_supported=no 29173 fi 29174 if test $_pkg_short_errors_supported = yes; then 29175 HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hal" 2>&1` 29176 else 29177 HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hal" 2>&1` 29178 fi 29179 # Put the nasty error message in config.log where it belongs 29180 echo "$HAL_PKG_ERRORS" >&5 29181 29182 HAVE_HAL=no 29183 elif test $pkg_failed = untried; then 29184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29185 printf "%s\n" "no" >&6; } 29186 HAVE_HAL=no 29187 else 29188 HAL_CFLAGS=$pkg_cv_HAL_CFLAGS 29189 HAL_LIBS=$pkg_cv_HAL_LIBS 29190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29191 printf "%s\n" "yes" >&6; } 29192 HAVE_HAL=yes 29193 fi 29194 if test "x$CONFIG_HAL" = xauto; then 29195 CONFIG_HAL="$HAVE_HAL" 29196 fi 29197 if test "x$CONFIG_HAL" = xyes; then 29198 if ! test "x$HAVE_HAL" = xyes; then 29199 as_fn_error $? "HAL hotplug API requested, but HAL is not installed." "$LINENO" 5 29200 fi 29201 29202 29203 printf "%s\n" "#define CONFIG_HAL 1" >>confdefs.h 29204 29205 NEED_DBUS="yes" 29206 fi 29207 if test "x$CONFIG_HAL" = xyes; then 29208 CONFIG_HAL_TRUE= 29209 CONFIG_HAL_FALSE='#' 29210 else 29211 CONFIG_HAL_TRUE='#' 29212 CONFIG_HAL_FALSE= 29213 fi 29214 29215 29216 if test "x$SYSTEMD_LOGIND" = xauto; then 29217 if test "x$HAVE_DBUS" = xyes -a "x$CONFIG_UDEV" = xyes ; then 29218 SYSTEMD_LOGIND=yes 29219 else 29220 SYSTEMD_LOGIND=no 29221 fi 29222 fi 29223 if test "x$SYSTEMD_LOGIND" = xyes; then 29224 if ! test "x$HAVE_DBUS" = xyes; then 29225 as_fn_error $? "systemd-logind requested, but D-Bus is not installed." "$LINENO" 5 29226 fi 29227 if ! test "x$CONFIG_UDEV" = xyes ; then 29228 as_fn_error $? "systemd-logind is only supported in combination with udev configuration." "$LINENO" 5 29229 fi 29230 29231 29232 printf "%s\n" "#define SYSTEMD_LOGIND 1" >>confdefs.h 29233 29234 NEED_DBUS="yes" 29235 fi 29236 if test "x$SYSTEMD_LOGIND" = xyes; then 29237 SYSTEMD_LOGIND_TRUE= 29238 SYSTEMD_LOGIND_FALSE='#' 29239 else 29240 SYSTEMD_LOGIND_TRUE='#' 29241 SYSTEMD_LOGIND_FALSE= 29242 fi 29243 29244 29245 if test "x$SUID_WRAPPER" = xyes; then 29246 29247 prefix_NONE= 29248 exec_prefix_NONE= 29249 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29250 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29251 eval ac_define_dir="\"$libexecdir\"" 29252 eval ac_define_dir="\"$ac_define_dir\"" 29253 SUID_WRAPPER_DIR="$ac_define_dir" 29254 29255 29256 printf "%s\n" "#define SUID_WRAPPER_DIR \"$ac_define_dir\"" >>confdefs.h 29257 29258 test "$prefix_NONE" && prefix=NONE 29259 test "$exec_prefix_NONE" && exec_prefix=NONE 29260 29261 SETUID="no" 29262 fi 29263 if test "x$SUID_WRAPPER" = xyes; then 29264 SUID_WRAPPER_TRUE= 29265 SUID_WRAPPER_FALSE='#' 29266 else 29267 SUID_WRAPPER_TRUE='#' 29268 SUID_WRAPPER_FALSE= 29269 fi 29270 29271 29272 if test "x$NEED_DBUS" = xyes; then 29273 29274 printf "%s\n" "#define NEED_DBUS 1" >>confdefs.h 29275 29276 fi 29277 if test "x$NEED_DBUS" = xyes; then 29278 NEED_DBUS_TRUE= 29279 NEED_DBUS_FALSE='#' 29280 else 29281 NEED_DBUS_TRUE='#' 29282 NEED_DBUS_FALSE= 29283 fi 29284 29285 29286 if test "x$CONFIG_WSCONS" = xauto; then 29287 case $host_os in 29288 *openbsd*) 29289 CONFIG_WSCONS=yes; 29290 ;; 29291 *) 29292 CONFIG_WSCONS=no; 29293 ;; 29294 esac 29295 fi 29296 if test "x$CONFIG_WSCONS" = xyes; then 29297 CONFIG_WSCONS_TRUE= 29298 CONFIG_WSCONS_FALSE='#' 29299 else 29300 CONFIG_WSCONS_TRUE='#' 29301 CONFIG_WSCONS_FALSE= 29302 fi 29303 29304 if test "x$CONFIG_WSCONS" = xyes; then 29305 29306 printf "%s\n" "#define CONFIG_WSCONS 1" >>confdefs.h 29307 29308 fi 29309 29310 29311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glibc..." >&5 29312 printf %s "checking for glibc...... " >&6; } 29313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29314 /* end confdefs.h. */ 29315 29316 #include <features.h> 29317 #ifndef __GLIBC__ 29318 #error 29319 #endif 29320 29321 _ACEOF 29322 if ac_fn_c_try_cpp "$LINENO" 29323 then : 29324 glibc=yes 29325 else case e in #( 29326 e) glibc=no ;; 29327 esac 29328 fi 29329 rm -f conftest.err conftest.i conftest.$ac_ext 29330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $glibc" >&5 29331 printf "%s\n" "$glibc" >&6; } 29332 29333 29334 for ac_func in clock_gettime 29335 do : 29336 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 29337 if test "x$ac_cv_func_clock_gettime" = xyes 29338 then : 29339 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 29340 have_clock_gettime=yes 29341 else case e in #( 29342 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 29343 printf %s "checking for clock_gettime in -lrt... " >&6; } 29344 if test ${ac_cv_lib_rt_clock_gettime+y} 29345 then : 29346 printf %s "(cached) " >&6 29347 else case e in #( 29348 e) ac_check_lib_save_LIBS=$LIBS 29349 LIBS="-lrt $LIBS" 29350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29351 /* end confdefs.h. */ 29352 29353 /* Override any GCC internal prototype to avoid an error. 29354 Use char because int might match the return type of a GCC 29355 builtin and then its argument prototype would still apply. 29356 The 'extern "C"' is for builds by C++ compilers; 29357 although this is not generally supported in C code supporting it here 29358 has little cost and some practical benefit (sr 110532). */ 29359 #ifdef __cplusplus 29360 extern "C" 29361 #endif 29362 char clock_gettime (void); 29363 int 29364 main (void) 29365 { 29366 return clock_gettime (); 29367 ; 29368 return 0; 29369 } 29370 _ACEOF 29371 if ac_fn_c_try_link "$LINENO" 29372 then : 29373 ac_cv_lib_rt_clock_gettime=yes 29374 else case e in #( 29375 e) ac_cv_lib_rt_clock_gettime=no ;; 29376 esac 29377 fi 29378 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29379 conftest$ac_exeext conftest.$ac_ext 29380 LIBS=$ac_check_lib_save_LIBS ;; 29381 esac 29382 fi 29383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 29384 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; } 29385 if test "x$ac_cv_lib_rt_clock_gettime" = xyes 29386 then : 29387 have_clock_gettime=-lrt 29388 else case e in #( 29389 e) have_clock_gettime=no ;; 29390 esac 29391 fi 29392 ;; 29393 esac 29394 fi 29395 29396 done 29397 29398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a useful monotonic clock ..." >&5 29399 printf %s "checking for a useful monotonic clock ...... " >&6; } 29400 29401 if ! test "x$have_clock_gettime" = xno; then 29402 if ! test "x$have_clock_gettime" = xyes; then 29403 CLOCK_LIBS="$have_clock_gettime" 29404 else 29405 CLOCK_LIBS="" 29406 fi 29407 29408 LIBS_SAVE="$LIBS" 29409 LIBS="$CLOCK_LIBS" 29410 CPPFLAGS_SAVE="$CPPFLAGS" 29411 29412 if test x"$glibc" = xyes; then 29413 CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L" 29414 fi 29415 29416 if test "$cross_compiling" = yes 29417 then : 29418 MONOTONIC_CLOCK="cross compiling" 29419 else case e in #( 29420 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29421 /* end confdefs.h. */ 29422 29423 #include <time.h> 29424 29425 int main(int argc, char *argv[]) { 29426 struct timespec tp; 29427 29428 if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0) 29429 return 0; 29430 else 29431 return 1; 29432 } 29433 29434 _ACEOF 29435 if ac_fn_c_try_run "$LINENO" 29436 then : 29437 MONOTONIC_CLOCK=yes 29438 else case e in #( 29439 e) MONOTONIC_CLOCK=no ;; 29440 esac 29441 fi 29442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29443 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 29444 esac 29445 fi 29446 29447 29448 if test "$MONOTONIC_CLOCK" = "cross compiling"; then 29449 ac_fn_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#include <time.h> 29450 " "$ac_c_undeclared_builtin_options" "CFLAGS" 29451 if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes 29452 then : 29453 MONOTONIC_CLOCK="guessing yes" 29454 else case e in #( 29455 e) MONOTONIC_CLOCK=no ;; 29456 esac 29457 fi 29458 fi 29459 29460 LIBS="$LIBS_SAVE" 29461 CPPFLAGS="$CPPFLAGS_SAVE" 29462 else 29463 MONOTONIC_CLOCK=no 29464 fi 29465 29466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MONOTONIC_CLOCK" >&5 29467 printf "%s\n" "$MONOTONIC_CLOCK" >&6; } 29468 if test "$MONOTONIC_CLOCK" = "guessing yes"; then 29469 MONOTONIC_CLOCK=yes 29470 fi 29471 29472 if test "x$MONOTONIC_CLOCK" = xyes; then 29473 29474 printf "%s\n" "#define MONOTONIC_CLOCK 1" >>confdefs.h 29475 29476 LIBS="$LIBS $CLOCK_LIBS" 29477 fi 29478 29479 if test "x$XV" = xyes; then 29480 XV_TRUE= 29481 XV_FALSE='#' 29482 else 29483 XV_TRUE='#' 29484 XV_FALSE= 29485 fi 29486 29487 if test "x$XV" = xyes; then 29488 29489 printf "%s\n" "#define XV 1" >>confdefs.h 29490 29491 29492 printf "%s\n" "#define XvExtension 1" >>confdefs.h 29493 29494 REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO" 29495 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $VIDEOPROTO" 29496 else 29497 XVMC=no 29498 fi 29499 29500 if test "x$XVMC" = xyes; then 29501 XVMC_TRUE= 29502 XVMC_FALSE='#' 29503 else 29504 XVMC_TRUE='#' 29505 XVMC_FALSE= 29506 fi 29507 29508 if test "x$XVMC" = xyes; then 29509 29510 printf "%s\n" "#define XvMCExtension 1" >>confdefs.h 29511 29512 fi 29513 29514 if test "x$COMPOSITE" = xyes; then 29515 COMPOSITE_TRUE= 29516 COMPOSITE_FALSE='#' 29517 else 29518 COMPOSITE_TRUE='#' 29519 COMPOSITE_FALSE= 29520 fi 29521 29522 if test "x$COMPOSITE" = xyes; then 29523 29524 printf "%s\n" "#define COMPOSITE 1" >>confdefs.h 29525 29526 REQUIRED_MODULES="$REQUIRED_MODULES $COMPOSITEPROTO" 29527 COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la' 29528 COMPOSITE_INC='-I$(top_srcdir)/composite' 29529 fi 29530 29531 if test "x$MITSHM" = xauto; then 29532 MITSHM="$ac_cv_sysv_ipc" 29533 fi 29534 if test "x$MITSHM" = xyes; then 29535 MITSHM_TRUE= 29536 MITSHM_FALSE='#' 29537 else 29538 MITSHM_TRUE='#' 29539 MITSHM_FALSE= 29540 fi 29541 29542 if test "x$MITSHM" = xyes; then 29543 29544 printf "%s\n" "#define MITSHM 1" >>confdefs.h 29545 29546 29547 printf "%s\n" "#define HAS_SHM 1" >>confdefs.h 29548 29549 fi 29550 29551 if test "x$RECORD" = xyes; then 29552 RECORD_TRUE= 29553 RECORD_FALSE='#' 29554 else 29555 RECORD_TRUE='#' 29556 RECORD_FALSE= 29557 fi 29558 29559 if test "x$RECORD" = xyes; then 29560 29561 printf "%s\n" "#define XRECORD 1" >>confdefs.h 29562 29563 REQUIRED_MODULES="$REQUIRED_MODULES $RECORDPROTO" 29564 RECORD_LIB='$(top_builddir)/record/librecord.la' 29565 fi 29566 29567 if test "x$SCREENSAVER" = xyes; then 29568 SCREENSAVER_TRUE= 29569 SCREENSAVER_FALSE='#' 29570 else 29571 SCREENSAVER_TRUE='#' 29572 SCREENSAVER_FALSE= 29573 fi 29574 29575 if test "x$SCREENSAVER" = xyes; then 29576 29577 printf "%s\n" "#define SCREENSAVER 1" >>confdefs.h 29578 29579 REQUIRED_MODULES="$REQUIRED_MODULES $SCRNSAVERPROTO" 29580 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $SCRNSAVERPROTO" 29581 fi 29582 29583 HASHTABLE=no 29584 if test "x$RES" = xyes; then 29585 RES_TRUE= 29586 RES_FALSE='#' 29587 else 29588 RES_TRUE='#' 29589 RES_FALSE= 29590 fi 29591 29592 if test "x$RES" = xyes; then 29593 29594 printf "%s\n" "#define RES 1" >>confdefs.h 29595 29596 HASHTABLE=yes 29597 REQUIRED_MODULES="$REQUIRED_MODULES $RESOURCEPROTO" 29598 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $RESOURCEPROTO" 29599 fi 29600 29601 if test "x$LISTEN_TCP" = xyes; then 29602 29603 printf "%s\n" "#define LISTEN_TCP 1" >>confdefs.h 29604 29605 fi 29606 if test "x$LISTEN_UNIX" = xyes; then 29607 29608 printf "%s\n" "#define LISTEN_UNIX 1" >>confdefs.h 29609 29610 fi 29611 if test "x$LISTEN_LOCAL" = xyes; then 29612 29613 printf "%s\n" "#define LISTEN_LOCAL 1" >>confdefs.h 29614 29615 fi 29616 29617 # The XRes extension may support client ID tracking only if it has 29618 # been specifically enabled. Client ID tracking is implicitly not 29619 # supported if XRes extension is disabled. 29620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to track client ids" >&5 29621 printf %s "checking whether to track client ids... " >&6; } 29622 if test "x$RES" = xyes && test "x$CLIENTIDS" = xyes; then 29623 29624 printf "%s\n" "#define CLIENTIDS 1" >>confdefs.h 29625 29626 else 29627 CLIENTIDS=no 29628 fi 29629 if test "x$CLIENTIDS" = xyes; then 29630 case $host_os in 29631 openbsd*) 29632 SYS_LIBS="$SYS_LIBS -lkvm" 29633 ;; 29634 esac 29635 fi 29636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CLIENTIDS" >&5 29637 printf "%s\n" "$CLIENTIDS" >&6; } 29638 if test "x$CLIENTIDS" = xyes; then 29639 CLIENTIDS_TRUE= 29640 CLIENTIDS_FALSE='#' 29641 else 29642 CLIENTIDS_TRUE='#' 29643 CLIENTIDS_FALSE= 29644 fi 29645 29646 29647 if test "x$DRI" = xyes; then 29648 DRI_TRUE= 29649 DRI_FALSE='#' 29650 else 29651 DRI_TRUE='#' 29652 DRI_FALSE= 29653 fi 29654 29655 if test "x$DRI" = xyes; then 29656 29657 printf "%s\n" "#define XF86DRI 1" >>confdefs.h 29658 29659 REQUIRED_MODULES="$REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI" 29660 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI" 29661 fi 29662 29663 29664 pkg_failed=no 29665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $DRI2PROTO" >&5 29666 printf %s "checking for $DRI2PROTO... " >&6; } 29667 29668 if test -n "$DRI2PROTO_CFLAGS"; then 29669 pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS" 29670 elif test -n "$PKG_CONFIG"; then 29671 if test -n "$PKG_CONFIG" && \ 29672 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5 29673 ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5 29674 ac_status=$? 29675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29676 test $ac_status = 0; }; then 29677 pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI2PROTO" 2>/dev/null` 29678 test "x$?" != "x0" && pkg_failed=yes 29679 else 29680 pkg_failed=yes 29681 fi 29682 else 29683 pkg_failed=untried 29684 fi 29685 if test -n "$DRI2PROTO_LIBS"; then 29686 pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS" 29687 elif test -n "$PKG_CONFIG"; then 29688 if test -n "$PKG_CONFIG" && \ 29689 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5 29690 ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5 29691 ac_status=$? 29692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29693 test $ac_status = 0; }; then 29694 pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "$DRI2PROTO" 2>/dev/null` 29695 test "x$?" != "x0" && pkg_failed=yes 29696 else 29697 pkg_failed=yes 29698 fi 29699 else 29700 pkg_failed=untried 29701 fi 29702 29703 29704 29705 if test $pkg_failed = yes; then 29706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29707 printf "%s\n" "no" >&6; } 29708 29709 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29710 _pkg_short_errors_supported=yes 29711 else 29712 _pkg_short_errors_supported=no 29713 fi 29714 if test $_pkg_short_errors_supported = yes; then 29715 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI2PROTO" 2>&1` 29716 else 29717 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI2PROTO" 2>&1` 29718 fi 29719 # Put the nasty error message in config.log where it belongs 29720 echo "$DRI2PROTO_PKG_ERRORS" >&5 29721 29722 HAVE_DRI2PROTO=no 29723 elif test $pkg_failed = untried; then 29724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29725 printf "%s\n" "no" >&6; } 29726 HAVE_DRI2PROTO=no 29727 else 29728 DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS 29729 DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS 29730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29731 printf "%s\n" "yes" >&6; } 29732 HAVE_DRI2PROTO=yes 29733 fi 29734 case "$DRI2,$HAVE_DRI2PROTO" in 29735 yes,no) 29736 as_fn_error $? "DRI2 requested, but dri2proto not found." "$LINENO" 5 29737 ;; 29738 yes,yes | auto,yes) 29739 29740 printf "%s\n" "#define DRI2 1" >>confdefs.h 29741 29742 DRI2=yes 29743 LIBGL="gl >= 1.2" 29744 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI2PROTO" 29745 ;; 29746 esac 29747 if test "x$DRI2" = xyes; then 29748 DRI2_TRUE= 29749 DRI2_FALSE='#' 29750 else 29751 DRI2_TRUE='#' 29752 DRI2_FALSE= 29753 fi 29754 29755 29756 # Check whether --enable-xtrans-send-fds was given. 29757 if test ${enable_xtrans_send_fds+y} 29758 then : 29759 enableval=$enable_xtrans_send_fds; XTRANS_SEND_FDS=$enableval 29760 else case e in #( 29761 e) XTRANS_SEND_FDS=auto ;; 29762 esac 29763 fi 29764 29765 29766 case "x$XTRANS_SEND_FDS" in 29767 xauto) 29768 case "$host_os" in 29769 linux*|solaris*|freebsd*|dragonfly*|openbsd*) 29770 XTRANS_SEND_FDS=yes 29771 ;; 29772 *) 29773 XTRANS_SEND_FDS=no 29774 ;; 29775 esac 29776 esac 29777 29778 case "x$XTRANS_SEND_FDS" in 29779 xyes) 29780 29781 printf "%s\n" "#define XTRANS_SEND_FDS 1" >>confdefs.h 29782 29783 ;; 29784 esac 29785 29786 case "$DRI3,$XTRANS_SEND_FDS" in 29787 yes,yes | auto,yes) 29788 ;; 29789 yes,no) 29790 as_fn_error $? "DRI3 requested, but xtrans fd passing support not found." "$LINENO" 5 29791 DRI3=no 29792 ;; 29793 no,*) 29794 ;; 29795 *) 29796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xtrans fd passing support not found." >&5 29797 printf "%s\n" "$as_me: DRI3 disabled because xtrans fd passing support not found." >&6;} 29798 DRI3=no 29799 ;; 29800 esac 29801 29802 29803 pkg_failed=no 29804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $DRI3PROTO" >&5 29805 printf %s "checking for $DRI3PROTO... " >&6; } 29806 29807 if test -n "$DRI3PROTO_CFLAGS"; then 29808 pkg_cv_DRI3PROTO_CFLAGS="$DRI3PROTO_CFLAGS" 29809 elif test -n "$PKG_CONFIG"; then 29810 if test -n "$PKG_CONFIG" && \ 29811 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5 29812 ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5 29813 ac_status=$? 29814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29815 test $ac_status = 0; }; then 29816 pkg_cv_DRI3PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI3PROTO" 2>/dev/null` 29817 test "x$?" != "x0" && pkg_failed=yes 29818 else 29819 pkg_failed=yes 29820 fi 29821 else 29822 pkg_failed=untried 29823 fi 29824 if test -n "$DRI3PROTO_LIBS"; then 29825 pkg_cv_DRI3PROTO_LIBS="$DRI3PROTO_LIBS" 29826 elif test -n "$PKG_CONFIG"; then 29827 if test -n "$PKG_CONFIG" && \ 29828 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5 29829 ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5 29830 ac_status=$? 29831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29832 test $ac_status = 0; }; then 29833 pkg_cv_DRI3PROTO_LIBS=`$PKG_CONFIG --libs "$DRI3PROTO" 2>/dev/null` 29834 test "x$?" != "x0" && pkg_failed=yes 29835 else 29836 pkg_failed=yes 29837 fi 29838 else 29839 pkg_failed=untried 29840 fi 29841 29842 29843 29844 if test $pkg_failed = yes; then 29845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29846 printf "%s\n" "no" >&6; } 29847 29848 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29849 _pkg_short_errors_supported=yes 29850 else 29851 _pkg_short_errors_supported=no 29852 fi 29853 if test $_pkg_short_errors_supported = yes; then 29854 DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI3PROTO" 2>&1` 29855 else 29856 DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI3PROTO" 2>&1` 29857 fi 29858 # Put the nasty error message in config.log where it belongs 29859 echo "$DRI3PROTO_PKG_ERRORS" >&5 29860 29861 HAVE_DRI3PROTO=no 29862 elif test $pkg_failed = untried; then 29863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29864 printf "%s\n" "no" >&6; } 29865 HAVE_DRI3PROTO=no 29866 else 29867 DRI3PROTO_CFLAGS=$pkg_cv_DRI3PROTO_CFLAGS 29868 DRI3PROTO_LIBS=$pkg_cv_DRI3PROTO_LIBS 29869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29870 printf "%s\n" "yes" >&6; } 29871 HAVE_DRI3PROTO=yes 29872 fi 29873 29874 case "$DRI3,$HAVE_DRI3PROTO" in 29875 yes,yes | auto,yes) 29876 REQUIRED_MODULES="$REQUIRED_MODULES dri3proto" 29877 ;; 29878 yes,no) 29879 as_fn_error $? "DRI3 requested, but dri3proto not found." "$LINENO" 5 29880 DRI3=no 29881 ;; 29882 no,*) 29883 ;; 29884 *) 29885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 disabled because dri3proto not found." >&5 29886 printf "%s\n" "$as_me: DRI3 disabled because dri3proto not found." >&6;} 29887 DRI3=no 29888 ;; 29889 esac 29890 29891 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 29892 if test "x$ac_cv_func_sigaction" = xyes 29893 then : 29894 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 29895 29896 fi 29897 29898 29899 BUSFAULT=no 29900 29901 case x"$ac_cv_func_sigaction" in 29902 xyes) 29903 29904 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 29905 29906 BUSFAULT=yes 29907 ;; 29908 esac 29909 29910 case x"$BUSFAULT" in 29911 xyes) 29912 29913 printf "%s\n" "#define BUSFAULT 1" >>confdefs.h 29914 29915 ;; 29916 esac 29917 29918 if test x"$BUSFAULT" = xyes; then 29919 BUSFAULT_TRUE= 29920 BUSFAULT_FALSE='#' 29921 else 29922 BUSFAULT_TRUE='#' 29923 BUSFAULT_FALSE= 29924 fi 29925 29926 29927 29928 29929 pkg_failed=no 29930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBXSHMFENCE" >&5 29931 printf %s "checking for $LIBXSHMFENCE... " >&6; } 29932 29933 if test -n "$XSHMFENCE_CFLAGS"; then 29934 pkg_cv_XSHMFENCE_CFLAGS="$XSHMFENCE_CFLAGS" 29935 elif test -n "$PKG_CONFIG"; then 29936 if test -n "$PKG_CONFIG" && \ 29937 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5 29938 ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5 29939 ac_status=$? 29940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29941 test $ac_status = 0; }; then 29942 pkg_cv_XSHMFENCE_CFLAGS=`$PKG_CONFIG --cflags "$LIBXSHMFENCE" 2>/dev/null` 29943 test "x$?" != "x0" && pkg_failed=yes 29944 else 29945 pkg_failed=yes 29946 fi 29947 else 29948 pkg_failed=untried 29949 fi 29950 if test -n "$XSHMFENCE_LIBS"; then 29951 pkg_cv_XSHMFENCE_LIBS="$XSHMFENCE_LIBS" 29952 elif test -n "$PKG_CONFIG"; then 29953 if test -n "$PKG_CONFIG" && \ 29954 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5 29955 ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5 29956 ac_status=$? 29957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29958 test $ac_status = 0; }; then 29959 pkg_cv_XSHMFENCE_LIBS=`$PKG_CONFIG --libs "$LIBXSHMFENCE" 2>/dev/null` 29960 test "x$?" != "x0" && pkg_failed=yes 29961 else 29962 pkg_failed=yes 29963 fi 29964 else 29965 pkg_failed=untried 29966 fi 29967 29968 29969 29970 if test $pkg_failed = yes; then 29971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29972 printf "%s\n" "no" >&6; } 29973 29974 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29975 _pkg_short_errors_supported=yes 29976 else 29977 _pkg_short_errors_supported=no 29978 fi 29979 if test $_pkg_short_errors_supported = yes; then 29980 XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1` 29981 else 29982 XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1` 29983 fi 29984 # Put the nasty error message in config.log where it belongs 29985 echo "$XSHMFENCE_PKG_ERRORS" >&5 29986 29987 HAVE_XSHMFENCE=no 29988 elif test $pkg_failed = untried; then 29989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29990 printf "%s\n" "no" >&6; } 29991 HAVE_XSHMFENCE=no 29992 else 29993 XSHMFENCE_CFLAGS=$pkg_cv_XSHMFENCE_CFLAGS 29994 XSHMFENCE_LIBS=$pkg_cv_XSHMFENCE_LIBS 29995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29996 printf "%s\n" "yes" >&6; } 29997 HAVE_XSHMFENCE=yes 29998 fi 29999 if test "x$XSHMFENCE" = "xauto"; then 30000 XSHMFENCE="$HAVE_XSHMFENCE" 30001 fi 30002 30003 if test "x$XSHMFENCE" = "xyes"; then 30004 if test "x$HAVE_XSHMFENCE" != "xyes"; then 30005 as_fn_error $? "xshmfence requested but not installed." "$LINENO" 5 30006 fi 30007 30008 printf "%s\n" "#define HAVE_XSHMFENCE 1" >>confdefs.h 30009 30010 REQUIRED_LIBS="$REQUIRED_LIBS $LIBXSHMFENCE" 30011 fi 30012 30013 if test "x$XSHMFENCE" = xyes; then 30014 XSHMFENCE_TRUE= 30015 XSHMFENCE_FALSE='#' 30016 else 30017 XSHMFENCE_TRUE='#' 30018 XSHMFENCE_FALSE= 30019 fi 30020 30021 30022 case "$DRI3,$XSHMFENCE" in 30023 yes,yes | auto,yes) 30024 ;; 30025 yes,no) 30026 as_fn_error $? "DRI3 requested, but xshmfence not found." "$LINENO" 5 30027 DRI3=no 30028 ;; 30029 no,*) 30030 ;; 30031 *) 30032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xshmfence not found." >&5 30033 printf "%s\n" "$as_me: DRI3 disabled because xshmfence not found." >&6;} 30034 DRI3=no 30035 ;; 30036 esac 30037 30038 case x"$DRI3" in 30039 xyes|xauto) 30040 DRI3=yes 30041 30042 printf "%s\n" "#define DRI3 1" >>confdefs.h 30043 30044 DRI3_LIB='$(top_builddir)/dri3/libdri3.la' 30045 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI3PROTO" 30046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 enabled" >&5 30047 printf "%s\n" "$as_me: DRI3 enabled" >&6;}; 30048 ;; 30049 esac 30050 30051 if test "x$DRI3" = xyes; then 30052 DRI3_TRUE= 30053 DRI3_FALSE='#' 30054 else 30055 DRI3_TRUE='#' 30056 DRI3_FALSE= 30057 fi 30058 30059 30060 if test "x$DRI" = xyes || test "x$DRI2" = xyes || test "x$DRI3" = xyes || test "x$CONFIG_UDEV_KMS" = xyes || test "x$XORG" = xyes; then 30061 if test "x$DRM" = xyes; then 30062 30063 printf "%s\n" "#define WITH_LIBDRM 1" >>confdefs.h 30064 30065 30066 pkg_failed=no 30067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBDRM" >&5 30068 printf %s "checking for $LIBDRM... " >&6; } 30069 30070 if test -n "$LIBDRM_CFLAGS"; then 30071 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" 30072 elif test -n "$PKG_CONFIG"; then 30073 if test -n "$PKG_CONFIG" && \ 30074 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5 30075 ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5 30076 ac_status=$? 30077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30078 test $ac_status = 0; }; then 30079 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "$LIBDRM" 2>/dev/null` 30080 test "x$?" != "x0" && pkg_failed=yes 30081 else 30082 pkg_failed=yes 30083 fi 30084 else 30085 pkg_failed=untried 30086 fi 30087 if test -n "$LIBDRM_LIBS"; then 30088 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" 30089 elif test -n "$PKG_CONFIG"; then 30090 if test -n "$PKG_CONFIG" && \ 30091 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5 30092 ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5 30093 ac_status=$? 30094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30095 test $ac_status = 0; }; then 30096 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "$LIBDRM" 2>/dev/null` 30097 test "x$?" != "x0" && pkg_failed=yes 30098 else 30099 pkg_failed=yes 30100 fi 30101 else 30102 pkg_failed=untried 30103 fi 30104 30105 30106 30107 if test $pkg_failed = yes; then 30108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30109 printf "%s\n" "no" >&6; } 30110 30111 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30112 _pkg_short_errors_supported=yes 30113 else 30114 _pkg_short_errors_supported=no 30115 fi 30116 if test $_pkg_short_errors_supported = yes; then 30117 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDRM" 2>&1` 30118 else 30119 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDRM" 2>&1` 30120 fi 30121 # Put the nasty error message in config.log where it belongs 30122 echo "$LIBDRM_PKG_ERRORS" >&5 30123 30124 as_fn_error $? "Package requirements ($LIBDRM) were not met: 30125 30126 $LIBDRM_PKG_ERRORS 30127 30128 Consider adjusting the PKG_CONFIG_PATH environment variable if you 30129 installed software in a non-standard prefix. 30130 30131 Alternatively, you may set the environment variables LIBDRM_CFLAGS 30132 and LIBDRM_LIBS to avoid the need to call pkg-config. 30133 See the pkg-config man page for more details." "$LINENO" 5 30134 elif test $pkg_failed = untried; then 30135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30136 printf "%s\n" "no" >&6; } 30137 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 30138 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 30139 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30140 is in your PATH or set the PKG_CONFIG environment variable to the full 30141 path to pkg-config. 30142 30143 Alternatively, you may set the environment variables LIBDRM_CFLAGS 30144 and LIBDRM_LIBS to avoid the need to call pkg-config. 30145 See the pkg-config man page for more details. 30146 30147 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30148 See 'config.log' for more details" "$LINENO" 5; } 30149 else 30150 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS 30151 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS 30152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30153 printf "%s\n" "yes" >&6; } 30154 30155 fi 30156 fi 30157 fi 30158 30159 if test "x$GLX" = xyes; then 30160 30161 pkg_failed=no 30162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x11" >&5 30163 printf %s "checking for x11... " >&6; } 30164 30165 if test -n "$XLIB_CFLAGS"; then 30166 pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS" 30167 elif test -n "$PKG_CONFIG"; then 30168 if test -n "$PKG_CONFIG" && \ 30169 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 30170 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 30171 ac_status=$? 30172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30173 test $ac_status = 0; }; then 30174 pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 30175 test "x$?" != "x0" && pkg_failed=yes 30176 else 30177 pkg_failed=yes 30178 fi 30179 else 30180 pkg_failed=untried 30181 fi 30182 if test -n "$XLIB_LIBS"; then 30183 pkg_cv_XLIB_LIBS="$XLIB_LIBS" 30184 elif test -n "$PKG_CONFIG"; then 30185 if test -n "$PKG_CONFIG" && \ 30186 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 30187 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 30188 ac_status=$? 30189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30190 test $ac_status = 0; }; then 30191 pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 30192 test "x$?" != "x0" && pkg_failed=yes 30193 else 30194 pkg_failed=yes 30195 fi 30196 else 30197 pkg_failed=untried 30198 fi 30199 30200 30201 30202 if test $pkg_failed = yes; then 30203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30204 printf "%s\n" "no" >&6; } 30205 30206 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30207 _pkg_short_errors_supported=yes 30208 else 30209 _pkg_short_errors_supported=no 30210 fi 30211 if test $_pkg_short_errors_supported = yes; then 30212 XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 30213 else 30214 XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 30215 fi 30216 # Put the nasty error message in config.log where it belongs 30217 echo "$XLIB_PKG_ERRORS" >&5 30218 30219 as_fn_error $? "Package requirements (x11) were not met: 30220 30221 $XLIB_PKG_ERRORS 30222 30223 Consider adjusting the PKG_CONFIG_PATH environment variable if you 30224 installed software in a non-standard prefix. 30225 30226 Alternatively, you may set the environment variables XLIB_CFLAGS 30227 and XLIB_LIBS to avoid the need to call pkg-config. 30228 See the pkg-config man page for more details." "$LINENO" 5 30229 elif test $pkg_failed = untried; then 30230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30231 printf "%s\n" "no" >&6; } 30232 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 30233 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 30234 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30235 is in your PATH or set the PKG_CONFIG environment variable to the full 30236 path to pkg-config. 30237 30238 Alternatively, you may set the environment variables XLIB_CFLAGS 30239 and XLIB_LIBS to avoid the need to call pkg-config. 30240 See the pkg-config man page for more details. 30241 30242 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30243 See 'config.log' for more details" "$LINENO" 5; } 30244 else 30245 XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS 30246 XLIB_LIBS=$pkg_cv_XLIB_LIBS 30247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30248 printf "%s\n" "yes" >&6; } 30249 30250 fi 30251 30252 pkg_failed=no 30253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $GLPROTO $LIBGL" >&5 30254 printf %s "checking for $GLPROTO $LIBGL... " >&6; } 30255 30256 if test -n "$GL_CFLAGS"; then 30257 pkg_cv_GL_CFLAGS="$GL_CFLAGS" 30258 elif test -n "$PKG_CONFIG"; then 30259 if test -n "$PKG_CONFIG" && \ 30260 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5 30261 ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5 30262 ac_status=$? 30263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30264 test $ac_status = 0; }; then 30265 pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBGL" 2>/dev/null` 30266 test "x$?" != "x0" && pkg_failed=yes 30267 else 30268 pkg_failed=yes 30269 fi 30270 else 30271 pkg_failed=untried 30272 fi 30273 if test -n "$GL_LIBS"; then 30274 pkg_cv_GL_LIBS="$GL_LIBS" 30275 elif test -n "$PKG_CONFIG"; then 30276 if test -n "$PKG_CONFIG" && \ 30277 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5 30278 ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5 30279 ac_status=$? 30280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30281 test $ac_status = 0; }; then 30282 pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBGL" 2>/dev/null` 30283 test "x$?" != "x0" && pkg_failed=yes 30284 else 30285 pkg_failed=yes 30286 fi 30287 else 30288 pkg_failed=untried 30289 fi 30290 30291 30292 30293 if test $pkg_failed = yes; then 30294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30295 printf "%s\n" "no" >&6; } 30296 30297 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30298 _pkg_short_errors_supported=yes 30299 else 30300 _pkg_short_errors_supported=no 30301 fi 30302 if test $_pkg_short_errors_supported = yes; then 30303 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1` 30304 else 30305 GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1` 30306 fi 30307 # Put the nasty error message in config.log where it belongs 30308 echo "$GL_PKG_ERRORS" >&5 30309 30310 as_fn_error $? "Package requirements ($GLPROTO $LIBGL) were not met: 30311 30312 $GL_PKG_ERRORS 30313 30314 Consider adjusting the PKG_CONFIG_PATH environment variable if you 30315 installed software in a non-standard prefix. 30316 30317 Alternatively, you may set the environment variables GL_CFLAGS 30318 and GL_LIBS to avoid the need to call pkg-config. 30319 See the pkg-config man page for more details." "$LINENO" 5 30320 elif test $pkg_failed = untried; then 30321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30322 printf "%s\n" "no" >&6; } 30323 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 30324 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 30325 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30326 is in your PATH or set the PKG_CONFIG environment variable to the full 30327 path to pkg-config. 30328 30329 Alternatively, you may set the environment variables GL_CFLAGS 30330 and GL_LIBS to avoid the need to call pkg-config. 30331 See the pkg-config man page for more details. 30332 30333 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30334 See 'config.log' for more details" "$LINENO" 5; } 30335 else 30336 GL_CFLAGS=$pkg_cv_GL_CFLAGS 30337 GL_LIBS=$pkg_cv_GL_LIBS 30338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30339 printf "%s\n" "yes" >&6; } 30340 30341 fi 30342 30343 30344 printf "%s\n" "#define GLXEXT 1" >>confdefs.h 30345 30346 HASHTABLE=yes 30347 GLX_LIBS='$(top_builddir)/glx/libglx.la $(top_builddir)/glx/libglxvnd.la' 30348 GLX_SYS_LIBS="$GLX_SYS_LIBS $GL_LIBS" 30349 else 30350 GLX=no 30351 fi 30352 if test "x$GLX" = xyes; then 30353 GLX_TRUE= 30354 GLX_FALSE='#' 30355 else 30356 GLX_TRUE='#' 30357 GLX_FALSE= 30358 fi 30359 30360 30361 if test "x$HASHTABLE" = xyes; then 30362 HASHTABLE_TRUE= 30363 HASHTABLE_FALSE='#' 30364 else 30365 HASHTABLE_TRUE='#' 30366 HASHTABLE_FALSE= 30367 fi 30368 30369 30370 30371 30372 30373 if test "x$PRESENT" = xyes; then 30374 PRESENT_TRUE= 30375 PRESENT_FALSE='#' 30376 else 30377 PRESENT_TRUE='#' 30378 PRESENT_FALSE= 30379 fi 30380 30381 if test "x$PRESENT" = xyes; then 30382 30383 printf "%s\n" "#define PRESENT 1" >>confdefs.h 30384 30385 REQUIRED_MODULES="$REQUIRED_MODULES $PRESENTPROTO" 30386 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $PRESENTPROTO" 30387 PRESENT_INC='-I$(top_srcdir)/present' 30388 PRESENT_LIB='$(top_builddir)/present/libpresent.la' 30389 fi 30390 30391 if test "x$XINERAMA" = xyes; then 30392 XINERAMA_TRUE= 30393 XINERAMA_FALSE='#' 30394 else 30395 XINERAMA_TRUE='#' 30396 XINERAMA_FALSE= 30397 fi 30398 30399 if test "x$XINERAMA" = xyes; then 30400 30401 printf "%s\n" "#define XINERAMA 1" >>confdefs.h 30402 30403 30404 printf "%s\n" "#define PANORAMIX 1" >>confdefs.h 30405 30406 REQUIRED_MODULES="$REQUIRED_MODULES $XINERAMAPROTO" 30407 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO" 30408 fi 30409 30410 if test "x$XACE" = xyes; then 30411 XACE_TRUE= 30412 XACE_FALSE='#' 30413 else 30414 XACE_TRUE='#' 30415 XACE_FALSE= 30416 fi 30417 30418 if test "x$XACE" = xyes; then 30419 30420 printf "%s\n" "#define XACE 1" >>confdefs.h 30421 30422 fi 30423 30424 if test "x$XSELINUX" = xyes; then 30425 XSELINUX_TRUE= 30426 XSELINUX_FALSE='#' 30427 else 30428 XSELINUX_TRUE='#' 30429 XSELINUX_FALSE= 30430 fi 30431 30432 if test "x$XSELINUX" = xyes; then 30433 if test "x$XACE" != xyes; then 30434 as_fn_error $? "cannot build SELinux extension without X-ACE" "$LINENO" 5 30435 fi 30436 for ac_header in libaudit.h 30437 do : 30438 ac_fn_c_check_header_compile "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" 30439 if test "x$ac_cv_header_libaudit_h" = xyes 30440 then : 30441 printf "%s\n" "#define HAVE_LIBAUDIT_H 1" >>confdefs.h 30442 30443 else case e in #( 30444 e) as_fn_error $? "SELinux extension requires audit system headers" "$LINENO" 5 ;; 30445 esac 30446 fi 30447 30448 done 30449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for audit_open in -laudit" >&5 30450 printf %s "checking for audit_open in -laudit... " >&6; } 30451 if test ${ac_cv_lib_audit_audit_open+y} 30452 then : 30453 printf %s "(cached) " >&6 30454 else case e in #( 30455 e) ac_check_lib_save_LIBS=$LIBS 30456 LIBS="-laudit $LIBS" 30457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30458 /* end confdefs.h. */ 30459 30460 /* Override any GCC internal prototype to avoid an error. 30461 Use char because int might match the return type of a GCC 30462 builtin and then its argument prototype would still apply. 30463 The 'extern "C"' is for builds by C++ compilers; 30464 although this is not generally supported in C code supporting it here 30465 has little cost and some practical benefit (sr 110532). */ 30466 #ifdef __cplusplus 30467 extern "C" 30468 #endif 30469 char audit_open (void); 30470 int 30471 main (void) 30472 { 30473 return audit_open (); 30474 ; 30475 return 0; 30476 } 30477 _ACEOF 30478 if ac_fn_c_try_link "$LINENO" 30479 then : 30480 ac_cv_lib_audit_audit_open=yes 30481 else case e in #( 30482 e) ac_cv_lib_audit_audit_open=no ;; 30483 esac 30484 fi 30485 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30486 conftest$ac_exeext conftest.$ac_ext 30487 LIBS=$ac_check_lib_save_LIBS ;; 30488 esac 30489 fi 30490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_open" >&5 30491 printf "%s\n" "$ac_cv_lib_audit_audit_open" >&6; } 30492 if test "x$ac_cv_lib_audit_audit_open" = xyes 30493 then : 30494 printf "%s\n" "#define HAVE_LIBAUDIT 1" >>confdefs.h 30495 30496 LIBS="-laudit $LIBS" 30497 30498 else case e in #( 30499 e) as_fn_error $? "SELinux extension requires audit system library" "$LINENO" 5 ;; 30500 esac 30501 fi 30502 30503 30504 pkg_failed=no 30505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBSELINUX" >&5 30506 printf %s "checking for $LIBSELINUX... " >&6; } 30507 30508 if test -n "$SELINUX_CFLAGS"; then 30509 pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS" 30510 elif test -n "$PKG_CONFIG"; then 30511 if test -n "$PKG_CONFIG" && \ 30512 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5 30513 ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5 30514 ac_status=$? 30515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30516 test $ac_status = 0; }; then 30517 pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "$LIBSELINUX" 2>/dev/null` 30518 test "x$?" != "x0" && pkg_failed=yes 30519 else 30520 pkg_failed=yes 30521 fi 30522 else 30523 pkg_failed=untried 30524 fi 30525 if test -n "$SELINUX_LIBS"; then 30526 pkg_cv_SELINUX_LIBS="$SELINUX_LIBS" 30527 elif test -n "$PKG_CONFIG"; then 30528 if test -n "$PKG_CONFIG" && \ 30529 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5 30530 ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5 30531 ac_status=$? 30532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30533 test $ac_status = 0; }; then 30534 pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "$LIBSELINUX" 2>/dev/null` 30535 test "x$?" != "x0" && pkg_failed=yes 30536 else 30537 pkg_failed=yes 30538 fi 30539 else 30540 pkg_failed=untried 30541 fi 30542 30543 30544 30545 if test $pkg_failed = yes; then 30546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30547 printf "%s\n" "no" >&6; } 30548 30549 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30550 _pkg_short_errors_supported=yes 30551 else 30552 _pkg_short_errors_supported=no 30553 fi 30554 if test $_pkg_short_errors_supported = yes; then 30555 SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSELINUX" 2>&1` 30556 else 30557 SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSELINUX" 2>&1` 30558 fi 30559 # Put the nasty error message in config.log where it belongs 30560 echo "$SELINUX_PKG_ERRORS" >&5 30561 30562 as_fn_error $? "Package requirements ($LIBSELINUX) were not met: 30563 30564 $SELINUX_PKG_ERRORS 30565 30566 Consider adjusting the PKG_CONFIG_PATH environment variable if you 30567 installed software in a non-standard prefix. 30568 30569 Alternatively, you may set the environment variables SELINUX_CFLAGS 30570 and SELINUX_LIBS to avoid the need to call pkg-config. 30571 See the pkg-config man page for more details." "$LINENO" 5 30572 elif test $pkg_failed = untried; then 30573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30574 printf "%s\n" "no" >&6; } 30575 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 30576 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 30577 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30578 is in your PATH or set the PKG_CONFIG environment variable to the full 30579 path to pkg-config. 30580 30581 Alternatively, you may set the environment variables SELINUX_CFLAGS 30582 and SELINUX_LIBS to avoid the need to call pkg-config. 30583 See the pkg-config man page for more details. 30584 30585 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30586 See 'config.log' for more details" "$LINENO" 5; } 30587 else 30588 SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS 30589 SELINUX_LIBS=$pkg_cv_SELINUX_LIBS 30590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30591 printf "%s\n" "yes" >&6; } 30592 30593 fi 30594 SELINUX_LIBS="$SELINUX_LIBS -laudit" 30595 30596 printf "%s\n" "#define XSELINUX 1" >>confdefs.h 30597 30598 fi 30599 30600 if test "x$XCSECURITY" = xyes; then 30601 XCSECURITY_TRUE= 30602 XCSECURITY_FALSE='#' 30603 else 30604 XCSECURITY_TRUE='#' 30605 XCSECURITY_FALSE= 30606 fi 30607 30608 if test "x$XCSECURITY" = xyes; then 30609 if test "x$XACE" != xyes; then 30610 as_fn_error $? "cannot build Security extension without X-ACE" "$LINENO" 5 30611 fi 30612 30613 printf "%s\n" "#define XCSECURITY 1" >>confdefs.h 30614 30615 fi 30616 30617 if test "x$DBE" = xyes; then 30618 DBE_TRUE= 30619 DBE_FALSE='#' 30620 else 30621 DBE_TRUE='#' 30622 DBE_FALSE= 30623 fi 30624 30625 if test "x$DBE" = xyes; then 30626 30627 printf "%s\n" "#define DBE 1" >>confdefs.h 30628 30629 DBE_LIB='$(top_builddir)/dbe/libdbe.la' 30630 DBE_INC='-I$(top_srcdir)/dbe' 30631 fi 30632 30633 if test "x$XF86BIGFONT" = xyes; then 30634 XF86BIGFONT_TRUE= 30635 XF86BIGFONT_FALSE='#' 30636 else 30637 XF86BIGFONT_TRUE='#' 30638 XF86BIGFONT_FALSE= 30639 fi 30640 30641 if test "x$XF86BIGFONT" = xyes; then 30642 30643 printf "%s\n" "#define XF86BIGFONT 1" >>confdefs.h 30644 30645 REQUIRED_MODULES="$REQUIRED_MODULES $BIGFONTPROTO" 30646 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $BIGFONTPROTO" 30647 fi 30648 30649 if test "x$DPMSExtension" = xyes; then 30650 DPMSExtension_TRUE= 30651 DPMSExtension_FALSE='#' 30652 else 30653 DPMSExtension_TRUE='#' 30654 DPMSExtension_FALSE= 30655 fi 30656 30657 if test "x$DPMSExtension" = xyes; then 30658 30659 printf "%s\n" "#define DPMSExtension 1" >>confdefs.h 30660 30661 fi 30662 30663 30664 printf "%s\n" "#define RENDER 1" >>confdefs.h 30665 30666 RENDER_LIB='$(top_builddir)/render/librender.la' 30667 RENDER_INC='-I$(top_srcdir)/render' 30668 30669 30670 printf "%s\n" "#define RANDR 1" >>confdefs.h 30671 30672 RANDR_LIB='$(top_builddir)/randr/librandr.la' 30673 RANDR_INC='-I$(top_srcdir)/randr' 30674 30675 30676 printf "%s\n" "#define XFIXES 1" >>confdefs.h 30677 30678 FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la' 30679 FIXES_INC='-I$(top_srcdir)/xfixes' 30680 30681 30682 printf "%s\n" "#define DAMAGE 1" >>confdefs.h 30683 30684 DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la' 30685 DAMAGE_INC='-I$(top_srcdir)/damageext' 30686 MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la' 30687 MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage' 30688 30689 # XINPUT extension is integral part of the server 30690 30691 printf "%s\n" "#define XINPUT 1" >>confdefs.h 30692 30693 XI_LIB='$(top_builddir)/Xi/libXi.la' 30694 XI_INC='-I$(top_srcdir)/Xi' 30695 30696 if test "x$XF86UTILS" = xyes; then 30697 XF86UTILS_TRUE= 30698 XF86UTILS_FALSE='#' 30699 else 30700 XF86UTILS_TRUE='#' 30701 XF86UTILS_FALSE= 30702 fi 30703 30704 if test "x$VGAHW" = xyes; then 30705 VGAHW_TRUE= 30706 VGAHW_FALSE='#' 30707 else 30708 VGAHW_TRUE='#' 30709 VGAHW_FALSE= 30710 fi 30711 30712 if test "x$INT10MODULE" = xyes; then 30713 INT10MODULE_TRUE= 30714 INT10MODULE_FALSE='#' 30715 else 30716 INT10MODULE_TRUE='#' 30717 INT10MODULE_FALSE= 30718 fi 30719 30720 30721 30722 printf "%s\n" "#define SHAPE 1" >>confdefs.h 30723 30724 30725 if test "x$XKBPATH" = "xauto"; then 30726 XKBPATH=$(pkg-config --variable datadir xkbcomp || echo ${datadir})/X11/xkb 30727 fi 30728 30729 30730 prefix_NONE= 30731 exec_prefix_NONE= 30732 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 30733 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 30734 eval ac_define_dir="\"$XKBPATH\"" 30735 eval ac_define_dir="\"$ac_define_dir\"" 30736 XKB_BASE_DIRECTORY="$ac_define_dir" 30737 30738 30739 printf "%s\n" "#define XKB_BASE_DIRECTORY \"$ac_define_dir\"" >>confdefs.h 30740 30741 test "$prefix_NONE" && prefix=NONE 30742 test "$exec_prefix_NONE" && exec_prefix=NONE 30743 30744 30745 # Check whether --with-xkb-bin-directory was given. 30746 if test ${with_xkb_bin_directory+y} 30747 then : 30748 withval=$with_xkb_bin_directory; XKB_BIN_DIRECTORY="$withval" 30749 else case e in #( 30750 e) XKB_BIN_DIRECTORY="auto" ;; 30751 esac 30752 fi 30753 30754 30755 if test "x$XKB_BIN_DIRECTORY" = "xauto"; then 30756 XKB_BIN_DIRECTORY=$(pkg-config --variable bindir xkbcomp) 30757 if test -z $XKB_BIN_DIRECTORY; then 30758 XKB_BIN_DIRECTORY="$bindir" 30759 fi 30760 fi 30761 30762 30763 prefix_NONE= 30764 exec_prefix_NONE= 30765 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 30766 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 30767 eval ac_define_dir="\"$XKB_BIN_DIRECTORY\"" 30768 eval ac_define_dir="\"$ac_define_dir\"" 30769 XKB_BIN_DIRECTORY="$ac_define_dir" 30770 30771 30772 printf "%s\n" "#define XKB_BIN_DIRECTORY \"$ac_define_dir\"" >>confdefs.h 30773 30774 test "$prefix_NONE" && prefix=NONE 30775 test "$exec_prefix_NONE" && exec_prefix=NONE 30776 30777 30778 XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1` 30779 if [ x$XKBOUTPUT_FIRSTCHAR != x/ -a x$XKBOUTPUT_FIRSTCHAR != 'x$' ] ; then 30780 XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT" 30781 fi 30782 30783 30784 XKBOUTPUT=`echo $XKBOUTPUT/ | $SED 's|/*$|/|'` 30785 XKB_COMPILED_DIR=`echo $XKBOUTPUT | $SED 's|/*$||'` 30786 30787 prefix_NONE= 30788 exec_prefix_NONE= 30789 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 30790 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 30791 eval ac_define_dir="\"$XKBOUTPUT\"" 30792 eval ac_define_dir="\"$ac_define_dir\"" 30793 XKM_OUTPUT_DIR="$ac_define_dir" 30794 30795 30796 printf "%s\n" "#define XKM_OUTPUT_DIR \"$ac_define_dir\"" >>confdefs.h 30797 30798 test "$prefix_NONE" && prefix=NONE 30799 test "$exec_prefix_NONE" && exec_prefix=NONE 30800 30801 30802 30803 if test "x$XKB_DFLT_RULES" = x; then 30804 case $host_os in 30805 linux*) 30806 XKB_DFLT_RULES="evdev" 30807 ;; 30808 *) 30809 XKB_DFLT_RULES="base" 30810 ;; 30811 esac 30812 fi 30813 30814 printf "%s\n" "#define XKB_DFLT_RULES \"$XKB_DFLT_RULES\"" >>confdefs.h 30815 30816 30817 printf "%s\n" "#define XKB_DFLT_MODEL \"$XKB_DFLT_MODEL\"" >>confdefs.h 30818 30819 30820 printf "%s\n" "#define XKB_DFLT_LAYOUT \"$XKB_DFLT_LAYOUT\"" >>confdefs.h 30821 30822 30823 printf "%s\n" "#define XKB_DFLT_VARIANT \"$XKB_DFLT_VARIANT\"" >>confdefs.h 30824 30825 30826 printf "%s\n" "#define XKB_DFLT_OPTIONS \"$XKB_DFLT_OPTIONS\"" >>confdefs.h 30827 30828 30829 30830 30831 30832 30833 30834 XKB_LIB='$(top_builddir)/xkb/libxkb.la' 30835 XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la' 30836 REQUIRED_MODULES="$REQUIRED_MODULES xkbfile" 30837 30838 30839 pkg_failed=no 30840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdmcp" >&5 30841 printf %s "checking for xdmcp... " >&6; } 30842 30843 if test -n "$XDMCP_CFLAGS"; then 30844 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS" 30845 elif test -n "$PKG_CONFIG"; then 30846 if test -n "$PKG_CONFIG" && \ 30847 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 30848 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 30849 ac_status=$? 30850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30851 test $ac_status = 0; }; then 30852 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` 30853 test "x$?" != "x0" && pkg_failed=yes 30854 else 30855 pkg_failed=yes 30856 fi 30857 else 30858 pkg_failed=untried 30859 fi 30860 if test -n "$XDMCP_LIBS"; then 30861 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS" 30862 elif test -n "$PKG_CONFIG"; then 30863 if test -n "$PKG_CONFIG" && \ 30864 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 30865 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 30866 ac_status=$? 30867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30868 test $ac_status = 0; }; then 30869 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` 30870 test "x$?" != "x0" && pkg_failed=yes 30871 else 30872 pkg_failed=yes 30873 fi 30874 else 30875 pkg_failed=untried 30876 fi 30877 30878 30879 30880 if test $pkg_failed = yes; then 30881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30882 printf "%s\n" "no" >&6; } 30883 30884 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30885 _pkg_short_errors_supported=yes 30886 else 30887 _pkg_short_errors_supported=no 30888 fi 30889 if test $_pkg_short_errors_supported = yes; then 30890 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1` 30891 else 30892 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1` 30893 fi 30894 # Put the nasty error message in config.log where it belongs 30895 echo "$XDMCP_PKG_ERRORS" >&5 30896 30897 have_libxdmcp="no" 30898 elif test $pkg_failed = untried; then 30899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30900 printf "%s\n" "no" >&6; } 30901 have_libxdmcp="no" 30902 else 30903 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS 30904 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS 30905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30906 printf "%s\n" "yes" >&6; } 30907 have_libxdmcp="yes" 30908 fi 30909 if test "x$XDMCP" = xauto; then 30910 if test "x$have_libxdmcp" = xyes; then 30911 XDMCP=yes 30912 else 30913 XDMCP=no 30914 fi 30915 fi 30916 if test "x$XDMAUTH" = xauto; then 30917 if test "x$have_libxdmcp" = xyes; then 30918 XDMAUTH=yes 30919 else 30920 XDMAUTH=no 30921 fi 30922 fi 30923 30924 if test "x$XDMCP" = xyes; then 30925 XDMCP_TRUE= 30926 XDMCP_FALSE='#' 30927 else 30928 XDMCP_TRUE='#' 30929 XDMCP_FALSE= 30930 fi 30931 30932 if test "x$XDMCP" = xyes; then 30933 30934 printf "%s\n" "#define XDMCP 1" >>confdefs.h 30935 30936 REQUIRED_LIBS="$REQUIRED_LIBS xdmcp" 30937 XDMCP_MODULES="xdmcp" 30938 fi 30939 30940 if test "x$XDMAUTH" = xyes; then 30941 XDMAUTH_TRUE= 30942 XDMAUTH_FALSE='#' 30943 else 30944 XDMAUTH_TRUE='#' 30945 XDMAUTH_FALSE= 30946 fi 30947 30948 if test "x$XDMAUTH" = xyes; then 30949 30950 printf "%s\n" "#define HASXDMAUTH 1" >>confdefs.h 30951 30952 if ! test "x$XDMCP" = xyes; then 30953 REQUIRED_LIBS="$REQUIRED_LIBS xdmcp" 30954 XDMCP_MODULES="xdmcp" 30955 fi 30956 fi 30957 30958 if test "x$XF86VIDMODE" = xauto; then 30959 if test -n "$PKG_CONFIG" && \ 30960 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5 30961 ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5 30962 ac_status=$? 30963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30964 test $ac_status = 0; }; then 30965 XF86VIDMODE=yes 30966 else 30967 XF86VIDMODE=no 30968 fi 30969 fi 30970 if test "x$XF86VIDMODE" = xyes; then 30971 30972 printf "%s\n" "#define XF86VIDMODE 1" >>confdefs.h 30973 30974 fi 30975 if test "x$XF86VIDMODE" = xyes; then 30976 XF86VIDMODE_TRUE= 30977 XF86VIDMODE_FALSE='#' 30978 else 30979 XF86VIDMODE_TRUE='#' 30980 XF86VIDMODE_FALSE= 30981 fi 30982 30983 30984 30985 prefix_NONE= 30986 exec_prefix_NONE= 30987 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 30988 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 30989 eval ac_define_dir="\"$FONTPATH\"" 30990 eval ac_define_dir="\"$ac_define_dir\"" 30991 COMPILEDDEFAULTFONTPATH="$ac_define_dir" 30992 30993 30994 printf "%s\n" "#define COMPILEDDEFAULTFONTPATH \"$ac_define_dir\"" >>confdefs.h 30995 30996 test "$prefix_NONE" && prefix=NONE 30997 test "$exec_prefix_NONE" && exec_prefix=NONE 30998 30999 31000 prefix_NONE= 31001 exec_prefix_NONE= 31002 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31003 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31004 eval ac_define_dir="\"$SERVERCONFIG\"" 31005 eval ac_define_dir="\"$ac_define_dir\"" 31006 SERVER_MISC_CONFIG_PATH="$ac_define_dir" 31007 31008 31009 printf "%s\n" "#define SERVER_MISC_CONFIG_PATH \"$ac_define_dir\"" >>confdefs.h 31010 31011 test "$prefix_NONE" && prefix=NONE 31012 test "$exec_prefix_NONE" && exec_prefix=NONE 31013 31014 31015 prefix_NONE= 31016 exec_prefix_NONE= 31017 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31018 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31019 eval ac_define_dir="\"$FONTROOTDIR\"" 31020 eval ac_define_dir="\"$ac_define_dir\"" 31021 BASE_FONT_PATH="$ac_define_dir" 31022 31023 31024 printf "%s\n" "#define BASE_FONT_PATH \"$ac_define_dir\"" >>confdefs.h 31025 31026 test "$prefix_NONE" && prefix=NONE 31027 test "$exec_prefix_NONE" && exec_prefix=NONE 31028 31029 dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri` 31030 31031 prefix_NONE= 31032 exec_prefix_NONE= 31033 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31034 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31035 eval ac_define_dir="\"$dridriverdir\"" 31036 eval ac_define_dir="\"$ac_define_dir\"" 31037 DRI_DRIVER_PATH="$ac_define_dir" 31038 31039 31040 printf "%s\n" "#define DRI_DRIVER_PATH \"$ac_define_dir\"" >>confdefs.h 31041 31042 test "$prefix_NONE" && prefix=NONE 31043 test "$exec_prefix_NONE" && exec_prefix=NONE 31044 31045 31046 printf "%s\n" "#define XVENDORNAME \"$VENDOR_NAME\"" >>confdefs.h 31047 31048 31049 printf "%s\n" "#define XVENDORNAMESHORT \"$VENDOR_NAME_SHORT\"" >>confdefs.h 31050 31051 31052 printf "%s\n" "#define XORG_MAN_VERSION \"$VENDOR_MAN_VERSION\"" >>confdefs.h 31053 31054 31055 printf "%s\n" "#define BUILDERADDR \"$BUILDERADDR\"" >>confdefs.h 31056 31057 31058 31059 printf "%s\n" "#define BUILDERSTRING \"$BUILDERSTRING\"" >>confdefs.h 31060 31061 31062 31063 31064 printf "%s\n" "#define VENDOR_NAME \"$VENDOR_NAME\"" >>confdefs.h 31065 31066 31067 printf "%s\n" "#define VENDOR_NAME_SHORT \"$VENDOR_NAME_SHORT\"" >>confdefs.h 31068 31069 31070 printf "%s\n" "#define VENDOR_RELEASE $VENDOR_RELEASE" >>confdefs.h 31071 31072 31073 printf "%s\n" "#define VENDOR_MAN_VERSION \"$VENDOR_MAN_VERSION\"" >>confdefs.h 31074 31075 31076 if test "x$DEBUGGING" = xyes; then 31077 31078 printf "%s\n" "#define DEBUG 1" >>confdefs.h 31079 31080 fi 31081 if test "x$DEBUGGING" = xyes; then 31082 DEBUG_TRUE= 31083 DEBUG_FALSE='#' 31084 else 31085 DEBUG_TRUE='#' 31086 DEBUG_FALSE= 31087 fi 31088 31089 31090 31091 printf "%s\n" "#define XTEST 1" >>confdefs.h 31092 31093 31094 printf "%s\n" "#define XSYNC 1" >>confdefs.h 31095 31096 31097 printf "%s\n" "#define XCMISC 1" >>confdefs.h 31098 31099 31100 printf "%s\n" "#define BIGREQS 1" >>confdefs.h 31101 31102 31103 if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then 31104 DIX_LIB='$(top_builddir)/dix/dix.O' 31105 OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS) $(LIBUNWIND_LIBS)' 31106 else 31107 DIX_LIB='$(top_builddir)/dix/libdix.la' 31108 OS_LIB='$(top_builddir)/os/libos.la' 31109 fi 31110 31111 31112 31113 MAIN_LIB='$(top_builddir)/dix/libmain.la' 31114 31115 31116 MI_LIB='$(top_builddir)/mi/libmi.la' 31117 MI_EXT_LIB='$(top_builddir)/mi/libmiext.la' 31118 MI_INC='-I$(top_srcdir)/mi' 31119 FB_LIB='$(top_builddir)/fb/libfb.la' 31120 FB_INC='-I$(top_srcdir)/fb' 31121 MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow' 31122 MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la' 31123 MIEXT_SYNC_INC='-I$(top_srcdir)/miext/sync' 31124 MIEXT_SYNC_LIB='$(top_builddir)/miext/sync/libsync.la' 31125 CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include' 31126 31127 # SHA1 hashing 31128 31129 # Check whether --with-sha1 was given. 31130 if test ${with_sha1+y} 31131 then : 31132 withval=$with_sha1; 31133 fi 31134 31135 ac_fn_c_check_func "$LINENO" "SHA1Init" "ac_cv_func_SHA1Init" 31136 if test "x$ac_cv_func_SHA1Init" = xyes 31137 then : 31138 HAVE_SHA1_IN_LIBC=yes 31139 fi 31140 31141 if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then 31142 with_sha1=libc 31143 fi 31144 if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then 31145 as_fn_error $? "libc requested but not found" "$LINENO" 5 31146 fi 31147 if test "x$with_sha1" = xlibc; then 31148 31149 printf "%s\n" "#define HAVE_SHA1_IN_LIBC 1" >>confdefs.h 31150 31151 SHA1_LIBS="" 31152 fi 31153 ac_fn_c_check_func "$LINENO" "CC_SHA1_Init" "ac_cv_func_CC_SHA1_Init" 31154 if test "x$ac_cv_func_CC_SHA1_Init" = xyes 31155 then : 31156 HAVE_SHA1_IN_COMMONCRYPTO=yes 31157 fi 31158 31159 if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then 31160 with_sha1=CommonCrypto 31161 fi 31162 if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then 31163 as_fn_error $? "CommonCrypto requested but not found" "$LINENO" 5 31164 fi 31165 if test "x$with_sha1" = xCommonCrypto; then 31166 31167 printf "%s\n" "#define HAVE_SHA1_IN_COMMONCRYPTO 1" >>confdefs.h 31168 31169 SHA1_LIBS="" 31170 fi 31171 ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#include <windows.h> 31172 " 31173 if test "x$ac_cv_header_wincrypt_h" = xyes 31174 then : 31175 HAVE_SHA1_IN_CRYPTOAPI=yes 31176 fi 31177 31178 if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_CRYPTOAPI" = xyes; then 31179 with_sha1=CryptoAPI 31180 fi 31181 if test "x$with_sha1" = xCryptoAPI && test "x$HAVE_SHA1_IN_CRYPTOAPI" != xyes; then 31182 as_fn_error $? "CryptoAPI requested but not found" "$LINENO" 5 31183 fi 31184 if test "x$with_sha1" = xCryptoAPI; then 31185 31186 printf "%s\n" "#define HAVE_SHA1_IN_CRYPTOAPI 1" >>confdefs.h 31187 31188 SHA1_LIBS="" 31189 fi 31190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1Init in -lmd" >&5 31191 printf %s "checking for SHA1Init in -lmd... " >&6; } 31192 if test ${ac_cv_lib_md_SHA1Init+y} 31193 then : 31194 printf %s "(cached) " >&6 31195 else case e in #( 31196 e) ac_check_lib_save_LIBS=$LIBS 31197 LIBS="-lmd $LIBS" 31198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31199 /* end confdefs.h. */ 31200 31201 /* Override any GCC internal prototype to avoid an error. 31202 Use char because int might match the return type of a GCC 31203 builtin and then its argument prototype would still apply. 31204 The 'extern "C"' is for builds by C++ compilers; 31205 although this is not generally supported in C code supporting it here 31206 has little cost and some practical benefit (sr 110532). */ 31207 #ifdef __cplusplus 31208 extern "C" 31209 #endif 31210 char SHA1Init (void); 31211 int 31212 main (void) 31213 { 31214 return SHA1Init (); 31215 ; 31216 return 0; 31217 } 31218 _ACEOF 31219 if ac_fn_c_try_link "$LINENO" 31220 then : 31221 ac_cv_lib_md_SHA1Init=yes 31222 else case e in #( 31223 e) ac_cv_lib_md_SHA1Init=no ;; 31224 esac 31225 fi 31226 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31227 conftest$ac_exeext conftest.$ac_ext 31228 LIBS=$ac_check_lib_save_LIBS ;; 31229 esac 31230 fi 31231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA1Init" >&5 31232 printf "%s\n" "$ac_cv_lib_md_SHA1Init" >&6; } 31233 if test "x$ac_cv_lib_md_SHA1Init" = xyes 31234 then : 31235 HAVE_LIBMD=yes 31236 fi 31237 31238 if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then 31239 with_sha1=libmd 31240 fi 31241 if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then 31242 as_fn_error $? "libmd requested but not found" "$LINENO" 5 31243 fi 31244 if test "x$with_sha1" = xlibmd; then 31245 31246 printf "%s\n" "#define HAVE_SHA1_IN_LIBMD 1" >>confdefs.h 31247 31248 SHA1_LIBS=-lmd 31249 fi 31250 31251 pkg_failed=no 31252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsha1" >&5 31253 printf %s "checking for libsha1... " >&6; } 31254 31255 if test -n "$LIBSHA1_CFLAGS"; then 31256 pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS" 31257 elif test -n "$PKG_CONFIG"; then 31258 if test -n "$PKG_CONFIG" && \ 31259 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5 31260 ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5 31261 ac_status=$? 31262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31263 test $ac_status = 0; }; then 31264 pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null` 31265 test "x$?" != "x0" && pkg_failed=yes 31266 else 31267 pkg_failed=yes 31268 fi 31269 else 31270 pkg_failed=untried 31271 fi 31272 if test -n "$LIBSHA1_LIBS"; then 31273 pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS" 31274 elif test -n "$PKG_CONFIG"; then 31275 if test -n "$PKG_CONFIG" && \ 31276 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5 31277 ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5 31278 ac_status=$? 31279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31280 test $ac_status = 0; }; then 31281 pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null` 31282 test "x$?" != "x0" && pkg_failed=yes 31283 else 31284 pkg_failed=yes 31285 fi 31286 else 31287 pkg_failed=untried 31288 fi 31289 31290 31291 31292 if test $pkg_failed = yes; then 31293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31294 printf "%s\n" "no" >&6; } 31295 31296 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31297 _pkg_short_errors_supported=yes 31298 else 31299 _pkg_short_errors_supported=no 31300 fi 31301 if test $_pkg_short_errors_supported = yes; then 31302 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsha1" 2>&1` 31303 else 31304 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsha1" 2>&1` 31305 fi 31306 # Put the nasty error message in config.log where it belongs 31307 echo "$LIBSHA1_PKG_ERRORS" >&5 31308 31309 HAVE_LIBSHA1=no 31310 elif test $pkg_failed = untried; then 31311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31312 printf "%s\n" "no" >&6; } 31313 HAVE_LIBSHA1=no 31314 else 31315 LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS 31316 LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS 31317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31318 printf "%s\n" "yes" >&6; } 31319 HAVE_LIBSHA1=yes 31320 fi 31321 if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then 31322 with_sha1=libsha1 31323 fi 31324 if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then 31325 as_fn_error $? "libsha1 requested but not found" "$LINENO" 5 31326 fi 31327 if test "x$with_sha1" = xlibsha1; then 31328 31329 printf "%s\n" "#define HAVE_SHA1_IN_LIBSHA1 1" >>confdefs.h 31330 31331 SHA1_LIBS=-lsha1 31332 fi 31333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_sha1_init in -lnettle" >&5 31334 printf %s "checking for nettle_sha1_init in -lnettle... " >&6; } 31335 if test ${ac_cv_lib_nettle_nettle_sha1_init+y} 31336 then : 31337 printf %s "(cached) " >&6 31338 else case e in #( 31339 e) ac_check_lib_save_LIBS=$LIBS 31340 LIBS="-lnettle $LIBS" 31341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31342 /* end confdefs.h. */ 31343 31344 /* Override any GCC internal prototype to avoid an error. 31345 Use char because int might match the return type of a GCC 31346 builtin and then its argument prototype would still apply. 31347 The 'extern "C"' is for builds by C++ compilers; 31348 although this is not generally supported in C code supporting it here 31349 has little cost and some practical benefit (sr 110532). */ 31350 #ifdef __cplusplus 31351 extern "C" 31352 #endif 31353 char nettle_sha1_init (void); 31354 int 31355 main (void) 31356 { 31357 return nettle_sha1_init (); 31358 ; 31359 return 0; 31360 } 31361 _ACEOF 31362 if ac_fn_c_try_link "$LINENO" 31363 then : 31364 ac_cv_lib_nettle_nettle_sha1_init=yes 31365 else case e in #( 31366 e) ac_cv_lib_nettle_nettle_sha1_init=no ;; 31367 esac 31368 fi 31369 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31370 conftest$ac_exeext conftest.$ac_ext 31371 LIBS=$ac_check_lib_save_LIBS ;; 31372 esac 31373 fi 31374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha1_init" >&5 31375 printf "%s\n" "$ac_cv_lib_nettle_nettle_sha1_init" >&6; } 31376 if test "x$ac_cv_lib_nettle_nettle_sha1_init" = xyes 31377 then : 31378 HAVE_LIBNETTLE=yes 31379 fi 31380 31381 if test "x$with_sha1" = x && test "x$HAVE_LIBNETTLE" = xyes; then 31382 with_sha1=libnettle 31383 fi 31384 if test "x$with_sha1" = xlibnettle && test "x$HAVE_LIBNETTLE" != xyes; then 31385 as_fn_error $? "libnettle requested but not found" "$LINENO" 5 31386 fi 31387 if test "x$with_sha1" = xlibnettle; then 31388 31389 printf "%s\n" "#define HAVE_SHA1_IN_LIBNETTLE 1" >>confdefs.h 31390 31391 SHA1_LIBS=-lnettle 31392 fi 31393 if test "x$with_sha1" = xnettlestatic && test "x$HAVE_LIBNETTLE" != xyes; then 31394 as_fn_error $? "nettlestatic requested but libnettle not found" "$LINENO" 5 31395 fi 31396 if test "x$with_sha1" = xnettlestatic; then 31397 31398 printf "%s\n" "#define HAVE_SHA1_IN_LIBNETTLE 1" >>confdefs.h 31399 31400 SHA1_LIBS=-l:libnettle.a 31401 fi 31402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5 31403 printf %s "checking for gcry_md_open in -lgcrypt... " >&6; } 31404 if test ${ac_cv_lib_gcrypt_gcry_md_open+y} 31405 then : 31406 printf %s "(cached) " >&6 31407 else case e in #( 31408 e) ac_check_lib_save_LIBS=$LIBS 31409 LIBS="-lgcrypt $LIBS" 31410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31411 /* end confdefs.h. */ 31412 31413 /* Override any GCC internal prototype to avoid an error. 31414 Use char because int might match the return type of a GCC 31415 builtin and then its argument prototype would still apply. 31416 The 'extern "C"' is for builds by C++ compilers; 31417 although this is not generally supported in C code supporting it here 31418 has little cost and some practical benefit (sr 110532). */ 31419 #ifdef __cplusplus 31420 extern "C" 31421 #endif 31422 char gcry_md_open (void); 31423 int 31424 main (void) 31425 { 31426 return gcry_md_open (); 31427 ; 31428 return 0; 31429 } 31430 _ACEOF 31431 if ac_fn_c_try_link "$LINENO" 31432 then : 31433 ac_cv_lib_gcrypt_gcry_md_open=yes 31434 else case e in #( 31435 e) ac_cv_lib_gcrypt_gcry_md_open=no ;; 31436 esac 31437 fi 31438 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31439 conftest$ac_exeext conftest.$ac_ext 31440 LIBS=$ac_check_lib_save_LIBS ;; 31441 esac 31442 fi 31443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5 31444 printf "%s\n" "$ac_cv_lib_gcrypt_gcry_md_open" >&6; } 31445 if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes 31446 then : 31447 HAVE_LIBGCRYPT=yes 31448 fi 31449 31450 if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then 31451 with_sha1=libgcrypt 31452 fi 31453 if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then 31454 as_fn_error $? "libgcrypt requested but not found" "$LINENO" 5 31455 fi 31456 if test "x$with_sha1" = xlibgcrypt; then 31457 31458 printf "%s\n" "#define HAVE_SHA1_IN_LIBGCRYPT 1" >>confdefs.h 31459 31460 SHA1_LIBS=-lgcrypt 31461 fi 31462 # We don't need all of the OpenSSL libraries, just libcrypto 31463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5 31464 printf %s "checking for SHA1_Init in -lcrypto... " >&6; } 31465 if test ${ac_cv_lib_crypto_SHA1_Init+y} 31466 then : 31467 printf %s "(cached) " >&6 31468 else case e in #( 31469 e) ac_check_lib_save_LIBS=$LIBS 31470 LIBS="-lcrypto $LIBS" 31471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31472 /* end confdefs.h. */ 31473 31474 /* Override any GCC internal prototype to avoid an error. 31475 Use char because int might match the return type of a GCC 31476 builtin and then its argument prototype would still apply. 31477 The 'extern "C"' is for builds by C++ compilers; 31478 although this is not generally supported in C code supporting it here 31479 has little cost and some practical benefit (sr 110532). */ 31480 #ifdef __cplusplus 31481 extern "C" 31482 #endif 31483 char SHA1_Init (void); 31484 int 31485 main (void) 31486 { 31487 return SHA1_Init (); 31488 ; 31489 return 0; 31490 } 31491 _ACEOF 31492 if ac_fn_c_try_link "$LINENO" 31493 then : 31494 ac_cv_lib_crypto_SHA1_Init=yes 31495 else case e in #( 31496 e) ac_cv_lib_crypto_SHA1_Init=no ;; 31497 esac 31498 fi 31499 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31500 conftest$ac_exeext conftest.$ac_ext 31501 LIBS=$ac_check_lib_save_LIBS ;; 31502 esac 31503 fi 31504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5 31505 printf "%s\n" "$ac_cv_lib_crypto_SHA1_Init" >&6; } 31506 if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes 31507 then : 31508 HAVE_LIBCRYPTO=yes 31509 fi 31510 31511 31512 pkg_failed=no 31513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5 31514 printf %s "checking for openssl... " >&6; } 31515 31516 if test -n "$OPENSSL_CFLAGS"; then 31517 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" 31518 elif test -n "$PKG_CONFIG"; then 31519 if test -n "$PKG_CONFIG" && \ 31520 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 31521 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 31522 ac_status=$? 31523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31524 test $ac_status = 0; }; then 31525 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` 31526 test "x$?" != "x0" && pkg_failed=yes 31527 else 31528 pkg_failed=yes 31529 fi 31530 else 31531 pkg_failed=untried 31532 fi 31533 if test -n "$OPENSSL_LIBS"; then 31534 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" 31535 elif test -n "$PKG_CONFIG"; then 31536 if test -n "$PKG_CONFIG" && \ 31537 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 31538 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 31539 ac_status=$? 31540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31541 test $ac_status = 0; }; then 31542 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` 31543 test "x$?" != "x0" && pkg_failed=yes 31544 else 31545 pkg_failed=yes 31546 fi 31547 else 31548 pkg_failed=untried 31549 fi 31550 31551 31552 31553 if test $pkg_failed = yes; then 31554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31555 printf "%s\n" "no" >&6; } 31556 31557 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31558 _pkg_short_errors_supported=yes 31559 else 31560 _pkg_short_errors_supported=no 31561 fi 31562 if test $_pkg_short_errors_supported = yes; then 31563 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1` 31564 else 31565 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1` 31566 fi 31567 # Put the nasty error message in config.log where it belongs 31568 echo "$OPENSSL_PKG_ERRORS" >&5 31569 31570 HAVE_OPENSSL_PKC=no 31571 elif test $pkg_failed = untried; then 31572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31573 printf "%s\n" "no" >&6; } 31574 HAVE_OPENSSL_PKC=no 31575 else 31576 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS 31577 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS 31578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31579 printf "%s\n" "yes" >&6; } 31580 HAVE_OPENSSL_PKC=yes 31581 fi 31582 if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then 31583 if test "x$with_sha1" = x; then 31584 with_sha1=libcrypto 31585 fi 31586 else 31587 if test "x$with_sha1" = xlibcrypto; then 31588 as_fn_error $? "OpenSSL libcrypto requested but not found" "$LINENO" 5 31589 fi 31590 fi 31591 if test "x$with_sha1" = xlibcrypto; then 31592 if test "x$HAVE_LIBCRYPTO" = xyes; then 31593 SHA1_LIBS=-lcrypto 31594 else 31595 SHA1_LIBS="$OPENSSL_LIBS" 31596 SHA1_CFLAGS="$OPENSSL_CFLAGS" 31597 fi 31598 fi 31599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1 implementation" >&5 31600 printf %s "checking for SHA1 implementation... " >&6; } 31601 if test "x$with_sha1" = x; then 31602 as_fn_error $? "No suitable SHA1 implementation found" "$LINENO" 5 31603 fi 31604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sha1" >&5 31605 printf "%s\n" "$with_sha1" >&6; } 31606 31607 31608 31609 31610 pkg_failed=no 31611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $REQUIRED_MODULES $REQUIRED_LIBS" >&5 31612 printf %s "checking for $REQUIRED_MODULES $REQUIRED_LIBS... " >&6; } 31613 31614 if test -n "$XSERVERCFLAGS_CFLAGS"; then 31615 pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS" 31616 elif test -n "$PKG_CONFIG"; then 31617 if test -n "$PKG_CONFIG" && \ 31618 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5 31619 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5 31620 ac_status=$? 31621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31622 test $ac_status = 0; }; then 31623 pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null` 31624 test "x$?" != "x0" && pkg_failed=yes 31625 else 31626 pkg_failed=yes 31627 fi 31628 else 31629 pkg_failed=untried 31630 fi 31631 if test -n "$XSERVERCFLAGS_LIBS"; then 31632 pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS" 31633 elif test -n "$PKG_CONFIG"; then 31634 if test -n "$PKG_CONFIG" && \ 31635 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5 31636 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5 31637 ac_status=$? 31638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31639 test $ac_status = 0; }; then 31640 pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null` 31641 test "x$?" != "x0" && pkg_failed=yes 31642 else 31643 pkg_failed=yes 31644 fi 31645 else 31646 pkg_failed=untried 31647 fi 31648 31649 31650 31651 if test $pkg_failed = yes; then 31652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31653 printf "%s\n" "no" >&6; } 31654 31655 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31656 _pkg_short_errors_supported=yes 31657 else 31658 _pkg_short_errors_supported=no 31659 fi 31660 if test $_pkg_short_errors_supported = yes; then 31661 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1` 31662 else 31663 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1` 31664 fi 31665 # Put the nasty error message in config.log where it belongs 31666 echo "$XSERVERCFLAGS_PKG_ERRORS" >&5 31667 31668 as_fn_error $? "Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met: 31669 31670 $XSERVERCFLAGS_PKG_ERRORS 31671 31672 Consider adjusting the PKG_CONFIG_PATH environment variable if you 31673 installed software in a non-standard prefix. 31674 31675 Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS 31676 and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config. 31677 See the pkg-config man page for more details." "$LINENO" 5 31678 elif test $pkg_failed = untried; then 31679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31680 printf "%s\n" "no" >&6; } 31681 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 31682 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 31683 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31684 is in your PATH or set the PKG_CONFIG environment variable to the full 31685 path to pkg-config. 31686 31687 Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS 31688 and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config. 31689 See the pkg-config man page for more details. 31690 31691 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31692 See 'config.log' for more details" "$LINENO" 5; } 31693 else 31694 XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS 31695 XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS 31696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31697 printf "%s\n" "yes" >&6; } 31698 31699 fi 31700 31701 pkg_failed=no 31702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $REQUIRED_LIBS" >&5 31703 printf %s "checking for $REQUIRED_LIBS... " >&6; } 31704 31705 if test -n "$XSERVERLIBS_CFLAGS"; then 31706 pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS" 31707 elif test -n "$PKG_CONFIG"; then 31708 if test -n "$PKG_CONFIG" && \ 31709 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5 31710 ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5 31711 ac_status=$? 31712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31713 test $ac_status = 0; }; then 31714 pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null` 31715 test "x$?" != "x0" && pkg_failed=yes 31716 else 31717 pkg_failed=yes 31718 fi 31719 else 31720 pkg_failed=untried 31721 fi 31722 if test -n "$XSERVERLIBS_LIBS"; then 31723 pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS" 31724 elif test -n "$PKG_CONFIG"; then 31725 if test -n "$PKG_CONFIG" && \ 31726 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5 31727 ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5 31728 ac_status=$? 31729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31730 test $ac_status = 0; }; then 31731 pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null` 31732 test "x$?" != "x0" && pkg_failed=yes 31733 else 31734 pkg_failed=yes 31735 fi 31736 else 31737 pkg_failed=untried 31738 fi 31739 31740 31741 31742 if test $pkg_failed = yes; then 31743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31744 printf "%s\n" "no" >&6; } 31745 31746 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31747 _pkg_short_errors_supported=yes 31748 else 31749 _pkg_short_errors_supported=no 31750 fi 31751 if test $_pkg_short_errors_supported = yes; then 31752 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1` 31753 else 31754 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1` 31755 fi 31756 # Put the nasty error message in config.log where it belongs 31757 echo "$XSERVERLIBS_PKG_ERRORS" >&5 31758 31759 as_fn_error $? "Package requirements ($REQUIRED_LIBS) were not met: 31760 31761 $XSERVERLIBS_PKG_ERRORS 31762 31763 Consider adjusting the PKG_CONFIG_PATH environment variable if you 31764 installed software in a non-standard prefix. 31765 31766 Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS 31767 and XSERVERLIBS_LIBS to avoid the need to call pkg-config. 31768 See the pkg-config man page for more details." "$LINENO" 5 31769 elif test $pkg_failed = untried; then 31770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31771 printf "%s\n" "no" >&6; } 31772 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 31773 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 31774 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31775 is in your PATH or set the PKG_CONFIG environment variable to the full 31776 path to pkg-config. 31777 31778 Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS 31779 and XSERVERLIBS_LIBS to avoid the need to call pkg-config. 31780 See the pkg-config man page for more details. 31781 31782 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31783 See 'config.log' for more details" "$LINENO" 5; } 31784 else 31785 XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS 31786 XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS 31787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31788 printf "%s\n" "yes" >&6; } 31789 31790 fi 31791 31792 31793 pkg_failed=no 31794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libunwind" >&5 31795 printf %s "checking for libunwind... " >&6; } 31796 31797 if test -n "$LIBUNWIND_CFLAGS"; then 31798 pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS" 31799 elif test -n "$PKG_CONFIG"; then 31800 if test -n "$PKG_CONFIG" && \ 31801 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5 31802 ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5 31803 ac_status=$? 31804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31805 test $ac_status = 0; }; then 31806 pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null` 31807 test "x$?" != "x0" && pkg_failed=yes 31808 else 31809 pkg_failed=yes 31810 fi 31811 else 31812 pkg_failed=untried 31813 fi 31814 if test -n "$LIBUNWIND_LIBS"; then 31815 pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS" 31816 elif test -n "$PKG_CONFIG"; then 31817 if test -n "$PKG_CONFIG" && \ 31818 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5 31819 ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5 31820 ac_status=$? 31821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31822 test $ac_status = 0; }; then 31823 pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null` 31824 test "x$?" != "x0" && pkg_failed=yes 31825 else 31826 pkg_failed=yes 31827 fi 31828 else 31829 pkg_failed=untried 31830 fi 31831 31832 31833 31834 if test $pkg_failed = yes; then 31835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31836 printf "%s\n" "no" >&6; } 31837 31838 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31839 _pkg_short_errors_supported=yes 31840 else 31841 _pkg_short_errors_supported=no 31842 fi 31843 if test $_pkg_short_errors_supported = yes; then 31844 LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libunwind" 2>&1` 31845 else 31846 LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libunwind" 2>&1` 31847 fi 31848 # Put the nasty error message in config.log where it belongs 31849 echo "$LIBUNWIND_PKG_ERRORS" >&5 31850 31851 HAVE_LIBUNWIND=no 31852 elif test $pkg_failed = untried; then 31853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31854 printf "%s\n" "no" >&6; } 31855 HAVE_LIBUNWIND=no 31856 else 31857 LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS 31858 LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS 31859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31860 printf "%s\n" "yes" >&6; } 31861 HAVE_LIBUNWIND=yes 31862 fi 31863 if test "x$LIBUNWIND" = "xauto"; then 31864 LIBUNWIND="$HAVE_LIBUNWIND" 31865 fi 31866 31867 if test "x$LIBUNWIND" = "xyes"; then 31868 if test "x$HAVE_LIBUNWIND" != "xyes"; then 31869 as_fn_error $? "libunwind requested but not installed." "$LINENO" 5 31870 fi 31871 31872 printf "%s\n" "#define HAVE_LIBUNWIND 1" >>confdefs.h 31873 31874 fi 31875 31876 if test "x$LIBUNWIND" = xyes; then 31877 HAVE_LIBUNWIND_TRUE= 31878 HAVE_LIBUNWIND_FALSE='#' 31879 else 31880 HAVE_LIBUNWIND_TRUE='#' 31881 HAVE_LIBUNWIND_FALSE= 31882 fi 31883 31884 31885 # Autotools has some unfortunate issues with library handling. In order to 31886 # get a server to rebuild when a dependency in the tree is changed, it must 31887 # be listed in SERVERNAME_DEPENDENCIES. However, no system libraries may be 31888 # listed there, or some versions of autotools will break (especially if a -L 31889 # is required to find the library). So, we keep two sets of libraries 31890 # detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which 31891 # will go into the _DEPENDENCIES and _LDADD of the server, and 31892 # NAMESPACE_SYS_LIBS which will go into only the _LDADD. The 31893 # NAMESPACEMODULES_LIBS detected from pkgconfig should always go in 31894 # NAMESPACE_SYS_LIBS. 31895 # 31896 # XSERVER_LIBS is the set of in-tree libraries which all servers require. 31897 # XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers 31898 # require. 31899 # 31900 XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}" 31901 XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB" 31902 XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}" 31903 31904 31905 31906 UTILS_SYS_LIBS="${SYS_LIBS}" 31907 31908 31909 # The Xorg binary needs to export symbols so that they can be used from modules 31910 # Some platforms require extra flags to do this. libtool should set the 31911 # necessary flags for each platform when -export-dynamic is passed to it. 31912 LD_EXPORT_SYMBOLS_FLAG="-export-dynamic" 31913 LD_NO_UNDEFINED_FLAG= 31914 XORG_DRIVER_LIBS= 31915 case "$host_os" in 31916 cygwin*) 31917 LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-all,--out-implib,lib\$@.a" 31918 LD_NO_UNDEFINED_FLAG="-no-undefined -Wl,\$(top_builddir)/hw/xfree86/libXorg.exe.a" 31919 XORG_DRIVER_LIBS="-lXorg.exe -L\${moduledir} -lshadow -lfb -no-undefined" 31920 CYGWIN=yes 31921 ;; 31922 solaris*) 31923 # We use AC_LINK_IFELSE to generate a temporary program conftest$EXEEXT 31924 # that we can link against for testing if the system linker is new 31925 # enough to support -z parent=<program> for verifying loadable modules 31926 # are only calling functions defined in either the loading program or 31927 # the libraries they're linked with. 31928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31929 /* end confdefs.h. */ 31930 int main(int argc, char **argv) { return 0; } 31931 _ACEOF 31932 if ac_fn_c_try_link "$LINENO" 31933 then : 31934 mv conftest$EXEEXT conftest.parent 31935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,parent=conftest.parent -G" >&5 31936 printf %s "checking whether the linker accepts -Wl,-z,parent=conftest.parent -G... " >&6; } 31937 if test ${xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G+y} 31938 then : 31939 printf %s "(cached) " >&6 31940 else case e in #( 31941 e) 31942 ax_save_FLAGS=$LDFLAGS 31943 LDFLAGS="-Wl,-z,parent=conftest.parent -G" 31944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31945 /* end confdefs.h. */ 31946 extern int main(int argc, char **argv); 31947 int call_main(void) { return main(0, (void *)0); } 31948 _ACEOF 31949 if ac_fn_c_try_link "$LINENO" 31950 then : 31951 xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=yes 31952 else case e in #( 31953 e) xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=no ;; 31954 esac 31955 fi 31956 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31957 conftest$ac_exeext conftest.$ac_ext 31958 LDFLAGS=$ax_save_FLAGS ;; 31959 esac 31960 fi 31961 31962 eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G 31963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5 31964 printf "%s\n" "$xorg_check_linker_flags" >&6; } 31965 if test "x$xorg_check_linker_flags" = xyes; then 31966 LD_NO_UNDEFINED_FLAG="-Wl,-z,defs -Wl,-z,parent=\$(top_builddir)/hw/xfree86/Xorg" 31967 # Not set yet, since this gets exported in xorg-server.pc to all the drivers, 31968 # and they're not all fixed to build correctly with it yet. 31969 # XORG_DRIVER_LIBS="-Wl,-z,defs -Wl,-z,parent=${bindir}/Xorg" 31970 31971 else 31972 : 31973 fi 31974 31975 rm -f conftest.parent 31976 31977 fi 31978 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31979 conftest$ac_exeext conftest.$ac_ext 31980 ;; 31981 esac 31982 31983 31984 31985 if test x"$CYGWIN" = xyes; then 31986 CYGWIN_TRUE= 31987 CYGWIN_FALSE='#' 31988 else 31989 CYGWIN_TRUE='#' 31990 CYGWIN_FALSE= 31991 fi 31992 31993 if test x"$LD_NO_UNDEFINED_FLAG" != x; then 31994 NO_UNDEFINED_TRUE= 31995 NO_UNDEFINED_FALSE='#' 31996 else 31997 NO_UNDEFINED_TRUE='#' 31998 NO_UNDEFINED_FALSE= 31999 fi 32000 32001 32002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SVR4 needs to be defined" >&5 32003 printf %s "checking if SVR4 needs to be defined... " >&6; } 32004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32005 /* end confdefs.h. */ 32006 32007 #if defined(SVR4) || defined(__svr4__) || defined(__SVR4) 32008 I_AM_SVR4 32009 #endif 32010 32011 _ACEOF 32012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32013 $EGREP_TRADITIONAL "I_AM_SVR4" >/dev/null 2>&1 32014 then : 32015 32016 32017 printf "%s\n" "#define SVR4 1" >>confdefs.h 32018 32019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32020 printf "%s\n" "yes" >&6; } 32021 else case e in #( 32022 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32023 printf "%s\n" "no" >&6; } ;; 32024 esac 32025 fi 32026 rm -rf conftest* 32027 32028 32029 XSERVER_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" 32030 32031 32032 32033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xvfb DDX" >&5 32034 printf %s "checking whether to build Xvfb DDX... " >&6; } 32035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XVFB" >&5 32036 printf "%s\n" "$XVFB" >&6; } 32037 if test "x$XVFB" = xyes; then 32038 XVFB_TRUE= 32039 XVFB_FALSE='#' 32040 else 32041 XVFB_TRUE='#' 32042 XVFB_FALSE= 32043 fi 32044 32045 32046 if test "x$XVFB" = xyes; then 32047 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" 32048 XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS" 32049 32050 32051 fi 32052 32053 32054 32055 32056 pkg_failed=no 32057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBXEXT x11 xau $XDMCP_MODULES" >&5 32058 printf %s "checking for $LIBXEXT x11 xau $XDMCP_MODULES... " >&6; } 32059 32060 if test -n "$XNESTMODULES_CFLAGS"; then 32061 pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS" 32062 elif test -n "$PKG_CONFIG"; then 32063 if test -n "$PKG_CONFIG" && \ 32064 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5 32065 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5 32066 ac_status=$? 32067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32068 test $ac_status = 0; }; then 32069 pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null` 32070 test "x$?" != "x0" && pkg_failed=yes 32071 else 32072 pkg_failed=yes 32073 fi 32074 else 32075 pkg_failed=untried 32076 fi 32077 if test -n "$XNESTMODULES_LIBS"; then 32078 pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS" 32079 elif test -n "$PKG_CONFIG"; then 32080 if test -n "$PKG_CONFIG" && \ 32081 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5 32082 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5 32083 ac_status=$? 32084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32085 test $ac_status = 0; }; then 32086 pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null` 32087 test "x$?" != "x0" && pkg_failed=yes 32088 else 32089 pkg_failed=yes 32090 fi 32091 else 32092 pkg_failed=untried 32093 fi 32094 32095 32096 32097 if test $pkg_failed = yes; then 32098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32099 printf "%s\n" "no" >&6; } 32100 32101 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32102 _pkg_short_errors_supported=yes 32103 else 32104 _pkg_short_errors_supported=no 32105 fi 32106 if test $_pkg_short_errors_supported = yes; then 32107 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1` 32108 else 32109 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1` 32110 fi 32111 # Put the nasty error message in config.log where it belongs 32112 echo "$XNESTMODULES_PKG_ERRORS" >&5 32113 32114 have_xnest=no 32115 elif test $pkg_failed = untried; then 32116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32117 printf "%s\n" "no" >&6; } 32118 have_xnest=no 32119 else 32120 XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS 32121 XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS 32122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32123 printf "%s\n" "yes" >&6; } 32124 have_xnest=yes 32125 fi 32126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xnest DDX" >&5 32127 printf %s "checking whether to build Xnest DDX... " >&6; } 32128 if test "x$XNEST" = xauto; then 32129 XNEST="$have_xnest" 32130 fi 32131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XNEST" >&5 32132 printf "%s\n" "$XNEST" >&6; } 32133 if test "x$XNEST" = xyes; then 32134 XNEST_TRUE= 32135 XNEST_FALSE='#' 32136 else 32137 XNEST_TRUE='#' 32138 XNEST_FALSE= 32139 fi 32140 32141 32142 if test "x$XNEST" = xyes; then 32143 if test "x$have_xnest" = xno; then 32144 as_fn_error $? "Xnest build explicitly requested, but required modules not found." "$LINENO" 5 32145 fi 32146 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" 32147 XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS" 32148 32149 32150 fi 32151 32152 32153 32154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg DDX" >&5 32155 printf %s "checking whether to build Xorg DDX... " >&6; } 32156 if test "x$XORG" = xauto; then 32157 XORG="yes" 32158 case $host_os in 32159 cygwin*) XORG="no" ;; 32160 mingw*) XORG="no" ;; 32161 darwin*) XORG="no" ;; 32162 esac 32163 fi 32164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG" >&5 32165 printf "%s\n" "$XORG" >&6; } 32166 32167 if test "x$XORG" = xyes; then 32168 32169 pkg_failed=no 32170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBXCVT" >&5 32171 printf %s "checking for $LIBXCVT... " >&6; } 32172 32173 if test -n "$LIBXCVT_CFLAGS"; then 32174 pkg_cv_LIBXCVT_CFLAGS="$LIBXCVT_CFLAGS" 32175 elif test -n "$PKG_CONFIG"; then 32176 if test -n "$PKG_CONFIG" && \ 32177 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXCVT\""; } >&5 32178 ($PKG_CONFIG --exists --print-errors "$LIBXCVT") 2>&5 32179 ac_status=$? 32180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32181 test $ac_status = 0; }; then 32182 pkg_cv_LIBXCVT_CFLAGS=`$PKG_CONFIG --cflags "$LIBXCVT" 2>/dev/null` 32183 test "x$?" != "x0" && pkg_failed=yes 32184 else 32185 pkg_failed=yes 32186 fi 32187 else 32188 pkg_failed=untried 32189 fi 32190 if test -n "$LIBXCVT_LIBS"; then 32191 pkg_cv_LIBXCVT_LIBS="$LIBXCVT_LIBS" 32192 elif test -n "$PKG_CONFIG"; then 32193 if test -n "$PKG_CONFIG" && \ 32194 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXCVT\""; } >&5 32195 ($PKG_CONFIG --exists --print-errors "$LIBXCVT") 2>&5 32196 ac_status=$? 32197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32198 test $ac_status = 0; }; then 32199 pkg_cv_LIBXCVT_LIBS=`$PKG_CONFIG --libs "$LIBXCVT" 2>/dev/null` 32200 test "x$?" != "x0" && pkg_failed=yes 32201 else 32202 pkg_failed=yes 32203 fi 32204 else 32205 pkg_failed=untried 32206 fi 32207 32208 32209 32210 if test $pkg_failed = yes; then 32211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32212 printf "%s\n" "no" >&6; } 32213 32214 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32215 _pkg_short_errors_supported=yes 32216 else 32217 _pkg_short_errors_supported=no 32218 fi 32219 if test $_pkg_short_errors_supported = yes; then 32220 LIBXCVT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXCVT" 2>&1` 32221 else 32222 LIBXCVT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXCVT" 2>&1` 32223 fi 32224 # Put the nasty error message in config.log where it belongs 32225 echo "$LIBXCVT_PKG_ERRORS" >&5 32226 32227 as_fn_error $? "Package requirements ($LIBXCVT) were not met: 32228 32229 $LIBXCVT_PKG_ERRORS 32230 32231 Consider adjusting the PKG_CONFIG_PATH environment variable if you 32232 installed software in a non-standard prefix. 32233 32234 Alternatively, you may set the environment variables LIBXCVT_CFLAGS 32235 and LIBXCVT_LIBS to avoid the need to call pkg-config. 32236 See the pkg-config man page for more details." "$LINENO" 5 32237 elif test $pkg_failed = untried; then 32238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32239 printf "%s\n" "no" >&6; } 32240 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 32241 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 32242 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32243 is in your PATH or set the PKG_CONFIG environment variable to the full 32244 path to pkg-config. 32245 32246 Alternatively, you may set the environment variables LIBXCVT_CFLAGS 32247 and LIBXCVT_LIBS to avoid the need to call pkg-config. 32248 See the pkg-config man page for more details. 32249 32250 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32251 See 'config.log' for more details" "$LINENO" 5; } 32252 else 32253 LIBXCVT_CFLAGS=$pkg_cv_LIBXCVT_CFLAGS 32254 LIBXCVT_LIBS=$pkg_cv_LIBXCVT_LIBS 32255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32256 printf "%s\n" "yes" >&6; } 32257 32258 fi 32259 32260 XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common' 32261 XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os' 32262 XORG_INCS="$XORG_DDXINCS $XORG_OSINCS" 32263 XORG_CFLAGS="$XORGSERVER_CFLAGS $LIBXCVT_CFLAGS -DHAVE_XORG_CONFIG_H" 32264 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" 32265 XORG_SYS_LIBS="$XORG_SYS_LIBS $LIBXCVT_LIBS" 32266 32267 symbol_visibility= 32268 have_visibility=disabled 32269 if test x$SYMBOL_VISIBILITY != xno; then 32270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5 32271 printf %s "checking for symbol visibility support... " >&6; } 32272 if test x$GCC = xyes; then 32273 VISIBILITY_CFLAGS="-fvisibility=hidden" 32274 else 32275 if test x$SUNCC = xyes; then 32276 VISIBILITY_CFLAGS="-xldscope=hidden" 32277 else 32278 have_visibility=no 32279 fi 32280 fi 32281 if test x$have_visibility != xno; then 32282 save_CFLAGS="$CFLAGS" 32283 proto_inc=`$PKG_CONFIG --cflags xproto` 32284 CFLAGS="$CFLAGS $VISIBILITY_CFLAGS $proto_inc" 32285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32286 /* end confdefs.h. */ 32287 32288 #include <X11/Xfuncproto.h> 32289 extern _X_HIDDEN int hidden_int; 32290 extern _X_EXPORT int public_int; 32291 extern _X_HIDDEN int hidden_int_func(void); 32292 extern _X_EXPORT int public_int_func(void); 32293 int 32294 main (void) 32295 { 32296 32297 ; 32298 return 0; 32299 } 32300 _ACEOF 32301 if ac_fn_c_try_compile "$LINENO" 32302 then : 32303 have_visibility=yes 32304 else case e in #( 32305 e) have_visibility=no ;; 32306 esac 32307 fi 32308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 32309 CFLAGS=$save_CFLAGS 32310 fi 32311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5 32312 printf "%s\n" "$have_visibility" >&6; } 32313 if test x$have_visibility != xno; then 32314 symbol_visibility=$VISIBILITY_CFLAGS 32315 XORG_CFLAGS="$XORG_CFLAGS $VISIBILITY_CFLAGS" 32316 XSERVER_CFLAGS="$XSERVER_CFLAGS $VISIBILITY_CFLAGS" 32317 fi 32318 fi 32319 32320 32321 xorg_bus_bsdpci=no 32322 xorg_bus_sparc=no 32323 32324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg PCI functions" >&5 32325 printf %s "checking whether to build Xorg PCI functions... " >&6; } 32326 if test "x$PCI" = xyes; then 32327 32328 pkg_failed=no 32329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBPCIACCESS" >&5 32330 printf %s "checking for $LIBPCIACCESS... " >&6; } 32331 32332 if test -n "$PCIACCESS_CFLAGS"; then 32333 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 32334 elif test -n "$PKG_CONFIG"; then 32335 if test -n "$PKG_CONFIG" && \ 32336 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5 32337 ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5 32338 ac_status=$? 32339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32340 test $ac_status = 0; }; then 32341 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "$LIBPCIACCESS" 2>/dev/null` 32342 test "x$?" != "x0" && pkg_failed=yes 32343 else 32344 pkg_failed=yes 32345 fi 32346 else 32347 pkg_failed=untried 32348 fi 32349 if test -n "$PCIACCESS_LIBS"; then 32350 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 32351 elif test -n "$PKG_CONFIG"; then 32352 if test -n "$PKG_CONFIG" && \ 32353 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5 32354 ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5 32355 ac_status=$? 32356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32357 test $ac_status = 0; }; then 32358 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "$LIBPCIACCESS" 2>/dev/null` 32359 test "x$?" != "x0" && pkg_failed=yes 32360 else 32361 pkg_failed=yes 32362 fi 32363 else 32364 pkg_failed=untried 32365 fi 32366 32367 32368 32369 if test $pkg_failed = yes; then 32370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32371 printf "%s\n" "no" >&6; } 32372 32373 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32374 _pkg_short_errors_supported=yes 32375 else 32376 _pkg_short_errors_supported=no 32377 fi 32378 if test $_pkg_short_errors_supported = yes; then 32379 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1` 32380 else 32381 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1` 32382 fi 32383 # Put the nasty error message in config.log where it belongs 32384 echo "$PCIACCESS_PKG_ERRORS" >&5 32385 32386 as_fn_error $? "Package requirements ($LIBPCIACCESS) were not met: 32387 32388 $PCIACCESS_PKG_ERRORS 32389 32390 Consider adjusting the PKG_CONFIG_PATH environment variable if you 32391 installed software in a non-standard prefix. 32392 32393 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 32394 and PCIACCESS_LIBS to avoid the need to call pkg-config. 32395 See the pkg-config man page for more details." "$LINENO" 5 32396 elif test $pkg_failed = untried; then 32397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32398 printf "%s\n" "no" >&6; } 32399 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 32400 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 32401 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32402 is in your PATH or set the PKG_CONFIG environment variable to the full 32403 path to pkg-config. 32404 32405 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 32406 and PCIACCESS_LIBS to avoid the need to call pkg-config. 32407 See the pkg-config man page for more details. 32408 32409 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32410 See 'config.log' for more details" "$LINENO" 5; } 32411 else 32412 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 32413 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 32414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32415 printf "%s\n" "yes" >&6; } 32416 32417 fi 32418 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $LIBPCIACCESS" 32419 XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $LIBDRM_LIBS" 32420 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS $LIBDRM_CFLAGS" 32421 32422 32423 printf "%s\n" "#define XSERVER_LIBPCIACCESS 1" >>confdefs.h 32424 32425 32426 prefix_NONE= 32427 exec_prefix_NONE= 32428 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32429 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32430 eval ac_define_dir="\"$PCI_TXT_IDS_DIR\"" 32431 eval ac_define_dir="\"$ac_define_dir\"" 32432 PCI_TXT_IDS_PATH="$ac_define_dir" 32433 32434 32435 printf "%s\n" "#define PCI_TXT_IDS_PATH \"$ac_define_dir\"" >>confdefs.h 32436 32437 test "$prefix_NONE" && prefix=NONE 32438 test "$exec_prefix_NONE" && exec_prefix=NONE 32439 32440 case $host_os in 32441 gnu* | freebsd* | kfreebsd*-gnu | netbsd* | openbsd* | solaris* | dragonfly*) 32442 xorg_bus_bsdpci="yes" 32443 ;; 32444 esac 32445 case $host_cpu in 32446 sparc*) 32447 xorg_bus_sparc="yes" 32448 ;; 32449 esac 32450 else 32451 if test "x$CONFIG_UDEV_KMS" = xyes; then 32452 as_fn_error $? "Platform device enumeration requires libpciaccess" "$LINENO" 5 32453 fi 32454 if test "x$INT10MODULE" = xyes && test "x$INT10" != xstub; then 32455 as_fn_error $? "Cannot build int10 without libpciaccess" "$LINENO" 5 32456 fi 32457 fi 32458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCI" >&5 32459 printf "%s\n" "$PCI" >&6; } 32460 32461 if test "x$CONFIG_UDEV_KMS" = xyes; then 32462 32463 printf "%s\n" "#define XSERVER_PLATFORM_BUS 1" >>confdefs.h 32464 32465 fi 32466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSERVER_PLATFORM_BUS" >&5 32467 printf "%s\n" "$XSERVER_PLATFORM_BUS" >&6; } 32468 32469 case $host_os in 32470 linux*) 32471 XORG_OS_SUBDIR="linux" 32472 linux_acpi="no" 32473 case $host_cpu in 32474 i*86|amd64*|x86_64*|ia64*) 32475 linux_acpi=$enable_linux_acpi 32476 ;; 32477 *) 32478 ;; 32479 esac 32480 for ac_header in linux/apm_bios.h 32481 do : 32482 ac_fn_c_check_header_compile "$LINENO" "linux/apm_bios.h" "ac_cv_header_linux_apm_bios_h" "$ac_includes_default" 32483 if test "x$ac_cv_header_linux_apm_bios_h" = xyes 32484 then : 32485 printf "%s\n" "#define HAVE_LINUX_APM_BIOS_H 1" >>confdefs.h 32486 linux_apm=$enable_linux_apm 32487 fi 32488 32489 done 32490 ;; 32491 freebsd* | kfreebsd*-gnu | dragonfly*) 32492 XORG_OS_SUBDIR="bsd" 32493 ;; 32494 netbsd*) 32495 XORG_OS_SUBDIR="bsd" 32496 ;; 32497 openbsd*) 32498 XORG_OS_SUBDIR="bsd" 32499 ;; 32500 solaris*) 32501 XORG_OS_SUBDIR="solaris" 32502 ac_fn_c_check_header_compile "$LINENO" "sys/kd.h" "ac_cv_header_sys_kd_h" "$ac_includes_default" 32503 if test "x$ac_cv_header_sys_kd_h" = xyes 32504 then : 32505 printf "%s\n" "#define HAVE_SYS_KD_H 1" >>confdefs.h 32506 32507 fi 32508 32509 for ac_header in sys/vt.h 32510 do : 32511 ac_fn_c_check_header_compile "$LINENO" "sys/vt.h" "ac_cv_header_sys_vt_h" "$ac_includes_default" 32512 if test "x$ac_cv_header_sys_vt_h" = xyes 32513 then : 32514 printf "%s\n" "#define HAVE_SYS_VT_H 1" >>confdefs.h 32515 solaris_vt=yes 32516 else case e in #( 32517 e) solaris_vt=no ;; 32518 esac 32519 fi 32520 32521 done 32522 # Check for minimum supported release 32523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Solaris version" >&5 32524 printf %s "checking Solaris version... " >&6; } 32525 OS_MINOR=`echo ${host_os}|$SED -e 's/^.*solaris2\.//' -e s'/\..*$//'` 32526 if test "${OS_MINOR}" -ge 7 ; then 32527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris ${OS_MINOR}" >&5 32528 printf "%s\n" "Solaris ${OS_MINOR}" >&6; } 32529 else 32530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&5 32531 printf "%s\n" "Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&6; } 32532 fi 32533 if test "${OS_MINOR}" -lt 8 ; then 32534 as_fn_error $? "This release no longer supports Solaris versions older than Solaris 8." "$LINENO" 5 32535 fi 32536 ac_fn_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 32537 if test "x$ac_cv_have_decl__LP64" = xyes 32538 then : 32539 SOLARIS_64="yes" 32540 else case e in #( 32541 e) SOLARIS_64="no" ;; 32542 esac 32543 fi 32544 32545 case $host_cpu in 32546 sparc*) 32547 SOLARIS_INOUT_ARCH="sparcv8plus" 32548 ;; 32549 i*86|x86_64*) 32550 if test x$SOLARIS_64 = xyes ; then 32551 SOLARIS_INOUT_ARCH="amd64" 32552 else 32553 SOLARIS_INOUT_ARCH="ia32" 32554 fi 32555 ;; 32556 *) 32557 as_fn_error $? "Unsupported Solaris platform. Only SPARC & x86 \ 32558 are supported on Solaris in this release. If you are \ 32559 interested in porting Xorg to your platform, please email \ 32560 xorg@lists.freedesktop.org." "$LINENO" 5 ;; 32561 esac 32562 32563 ;; 32564 gnu*) 32565 XORG_OS_SUBDIR="hurd" 32566 ;; 32567 cygwin*) 32568 XORG_OS_SUBDIR="stub" 32569 ;; 32570 *) 32571 XORG_OS_SUBDIR="stub" 32572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Your OS is unknown. If you are interested in porting Xorg to your platform, 32573 please email xorg@lists.freedesktop.org." >&5 32574 printf "%s\n" "$as_me: Your OS is unknown. If you are interested in porting Xorg to your platform, 32575 please email xorg@lists.freedesktop.org." >&6;} 32576 ;; 32577 esac 32578 32579 if test "x$DGA" = xauto; then 32580 32581 pkg_failed=no 32582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $DGAPROTO" >&5 32583 printf %s "checking for $DGAPROTO... " >&6; } 32584 32585 if test -n "$DGA_CFLAGS"; then 32586 pkg_cv_DGA_CFLAGS="$DGA_CFLAGS" 32587 elif test -n "$PKG_CONFIG"; then 32588 if test -n "$PKG_CONFIG" && \ 32589 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 32590 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 32591 ac_status=$? 32592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32593 test $ac_status = 0; }; then 32594 pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null` 32595 test "x$?" != "x0" && pkg_failed=yes 32596 else 32597 pkg_failed=yes 32598 fi 32599 else 32600 pkg_failed=untried 32601 fi 32602 if test -n "$DGA_LIBS"; then 32603 pkg_cv_DGA_LIBS="$DGA_LIBS" 32604 elif test -n "$PKG_CONFIG"; then 32605 if test -n "$PKG_CONFIG" && \ 32606 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 32607 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 32608 ac_status=$? 32609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32610 test $ac_status = 0; }; then 32611 pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null` 32612 test "x$?" != "x0" && pkg_failed=yes 32613 else 32614 pkg_failed=yes 32615 fi 32616 else 32617 pkg_failed=untried 32618 fi 32619 32620 32621 32622 if test $pkg_failed = yes; then 32623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32624 printf "%s\n" "no" >&6; } 32625 32626 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32627 _pkg_short_errors_supported=yes 32628 else 32629 _pkg_short_errors_supported=no 32630 fi 32631 if test $_pkg_short_errors_supported = yes; then 32632 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1` 32633 else 32634 DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1` 32635 fi 32636 # Put the nasty error message in config.log where it belongs 32637 echo "$DGA_PKG_ERRORS" >&5 32638 32639 DGA=no 32640 elif test $pkg_failed = untried; then 32641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32642 printf "%s\n" "no" >&6; } 32643 DGA=no 32644 else 32645 DGA_CFLAGS=$pkg_cv_DGA_CFLAGS 32646 DGA_LIBS=$pkg_cv_DGA_LIBS 32647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32648 printf "%s\n" "yes" >&6; } 32649 DGA=yes 32650 fi 32651 fi 32652 if test "x$DGA" = xyes; then 32653 XORG_MODULES="$XORG_MODULES $DGAPROTO" 32654 32655 pkg_failed=no 32656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $DGAPROTO" >&5 32657 printf %s "checking for $DGAPROTO... " >&6; } 32658 32659 if test -n "$DGA_CFLAGS"; then 32660 pkg_cv_DGA_CFLAGS="$DGA_CFLAGS" 32661 elif test -n "$PKG_CONFIG"; then 32662 if test -n "$PKG_CONFIG" && \ 32663 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 32664 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 32665 ac_status=$? 32666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32667 test $ac_status = 0; }; then 32668 pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null` 32669 test "x$?" != "x0" && pkg_failed=yes 32670 else 32671 pkg_failed=yes 32672 fi 32673 else 32674 pkg_failed=untried 32675 fi 32676 if test -n "$DGA_LIBS"; then 32677 pkg_cv_DGA_LIBS="$DGA_LIBS" 32678 elif test -n "$PKG_CONFIG"; then 32679 if test -n "$PKG_CONFIG" && \ 32680 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 32681 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 32682 ac_status=$? 32683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32684 test $ac_status = 0; }; then 32685 pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null` 32686 test "x$?" != "x0" && pkg_failed=yes 32687 else 32688 pkg_failed=yes 32689 fi 32690 else 32691 pkg_failed=untried 32692 fi 32693 32694 32695 32696 if test $pkg_failed = yes; then 32697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32698 printf "%s\n" "no" >&6; } 32699 32700 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32701 _pkg_short_errors_supported=yes 32702 else 32703 _pkg_short_errors_supported=no 32704 fi 32705 if test $_pkg_short_errors_supported = yes; then 32706 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1` 32707 else 32708 DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1` 32709 fi 32710 # Put the nasty error message in config.log where it belongs 32711 echo "$DGA_PKG_ERRORS" >&5 32712 32713 as_fn_error $? "Package requirements ($DGAPROTO) were not met: 32714 32715 $DGA_PKG_ERRORS 32716 32717 Consider adjusting the PKG_CONFIG_PATH environment variable if you 32718 installed software in a non-standard prefix. 32719 32720 Alternatively, you may set the environment variables DGA_CFLAGS 32721 and DGA_LIBS to avoid the need to call pkg-config. 32722 See the pkg-config man page for more details." "$LINENO" 5 32723 elif test $pkg_failed = untried; then 32724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32725 printf "%s\n" "no" >&6; } 32726 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 32727 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 32728 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32729 is in your PATH or set the PKG_CONFIG environment variable to the full 32730 path to pkg-config. 32731 32732 Alternatively, you may set the environment variables DGA_CFLAGS 32733 and DGA_LIBS to avoid the need to call pkg-config. 32734 See the pkg-config man page for more details. 32735 32736 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32737 See 'config.log' for more details" "$LINENO" 5; } 32738 else 32739 DGA_CFLAGS=$pkg_cv_DGA_CFLAGS 32740 DGA_LIBS=$pkg_cv_DGA_LIBS 32741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32742 printf "%s\n" "yes" >&6; } 32743 32744 fi 32745 32746 printf "%s\n" "#define DGA 1" >>confdefs.h 32747 32748 32749 printf "%s\n" "#define XFreeXDGA 1" >>confdefs.h 32750 32751 fi 32752 32753 if test "x$XF86VIDMODE" = xyes; then 32754 XORG_MODULES="$XORG_MODULES $VIDMODEPROTO" 32755 fi 32756 32757 if test -n "$XORG_MODULES"; then 32758 32759 pkg_failed=no 32760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $XORG_MODULES" >&5 32761 printf %s "checking for $XORG_MODULES... " >&6; } 32762 32763 if test -n "$XORG_MODULES_CFLAGS"; then 32764 pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS" 32765 elif test -n "$PKG_CONFIG"; then 32766 if test -n "$PKG_CONFIG" && \ 32767 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5 32768 ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5 32769 ac_status=$? 32770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32771 test $ac_status = 0; }; then 32772 pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null` 32773 test "x$?" != "x0" && pkg_failed=yes 32774 else 32775 pkg_failed=yes 32776 fi 32777 else 32778 pkg_failed=untried 32779 fi 32780 if test -n "$XORG_MODULES_LIBS"; then 32781 pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS" 32782 elif test -n "$PKG_CONFIG"; then 32783 if test -n "$PKG_CONFIG" && \ 32784 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5 32785 ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5 32786 ac_status=$? 32787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32788 test $ac_status = 0; }; then 32789 pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null` 32790 test "x$?" != "x0" && pkg_failed=yes 32791 else 32792 pkg_failed=yes 32793 fi 32794 else 32795 pkg_failed=untried 32796 fi 32797 32798 32799 32800 if test $pkg_failed = yes; then 32801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32802 printf "%s\n" "no" >&6; } 32803 32804 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32805 _pkg_short_errors_supported=yes 32806 else 32807 _pkg_short_errors_supported=no 32808 fi 32809 if test $_pkg_short_errors_supported = yes; then 32810 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XORG_MODULES" 2>&1` 32811 else 32812 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XORG_MODULES" 2>&1` 32813 fi 32814 # Put the nasty error message in config.log where it belongs 32815 echo "$XORG_MODULES_PKG_ERRORS" >&5 32816 32817 as_fn_error $? "Package requirements ($XORG_MODULES) were not met: 32818 32819 $XORG_MODULES_PKG_ERRORS 32820 32821 Consider adjusting the PKG_CONFIG_PATH environment variable if you 32822 installed software in a non-standard prefix. 32823 32824 Alternatively, you may set the environment variables XORG_MODULES_CFLAGS 32825 and XORG_MODULES_LIBS to avoid the need to call pkg-config. 32826 See the pkg-config man page for more details." "$LINENO" 5 32827 elif test $pkg_failed = untried; then 32828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32829 printf "%s\n" "no" >&6; } 32830 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 32831 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 32832 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32833 is in your PATH or set the PKG_CONFIG environment variable to the full 32834 path to pkg-config. 32835 32836 Alternatively, you may set the environment variables XORG_MODULES_CFLAGS 32837 and XORG_MODULES_LIBS to avoid the need to call pkg-config. 32838 See the pkg-config man page for more details. 32839 32840 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32841 See 'config.log' for more details" "$LINENO" 5; } 32842 else 32843 XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS 32844 XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS 32845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32846 printf "%s\n" "yes" >&6; } 32847 32848 fi 32849 XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS" 32850 XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS" 32851 fi 32852 32853 if test "x$DRM" = xyes -a "x$DRI2" = xyes; then 32854 XORG_DRIVER_MODESETTING=yes 32855 fi 32856 32857 32858 32859 32860 32861 32862 32863 XF86CONFIGFILE="xorg.conf" 32864 XF86CONFIGDIR="xorg.conf.d" 32865 32866 LOGPREFIX="Xorg." 32867 XDG_DATA_HOME=".local/share" 32868 XDG_DATA_HOME_LOGDIR="xorg" 32869 32870 printf "%s\n" "#define XORG_SERVER 1" >>confdefs.h 32871 32872 32873 printf "%s\n" "#define XORGSERVER 1" >>confdefs.h 32874 32875 32876 printf "%s\n" "#define XFree86Server 1" >>confdefs.h 32877 32878 32879 printf "%s\n" "#define XORG_VERSION_CURRENT $VENDOR_RELEASE" >>confdefs.h 32880 32881 32882 printf "%s\n" "#define NEED_XF86_TYPES 1" >>confdefs.h 32883 32884 32885 printf "%s\n" "#define NEED_XF86_PROTOTYPES 1" >>confdefs.h 32886 32887 32888 printf "%s\n" "#define __XSERVERNAME__ \"Xorg\"" >>confdefs.h 32889 32890 32891 prefix_NONE= 32892 exec_prefix_NONE= 32893 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32894 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32895 eval ac_define_dir="\"$XF86CONFIGFILE\"" 32896 eval ac_define_dir="\"$ac_define_dir\"" 32897 XCONFIGFILE="$ac_define_dir" 32898 32899 32900 printf "%s\n" "#define XCONFIGFILE \"$ac_define_dir\"" >>confdefs.h 32901 32902 test "$prefix_NONE" && prefix=NONE 32903 test "$exec_prefix_NONE" && exec_prefix=NONE 32904 32905 32906 prefix_NONE= 32907 exec_prefix_NONE= 32908 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32909 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32910 eval ac_define_dir="\"$XF86CONFIGFILE\"" 32911 eval ac_define_dir="\"$ac_define_dir\"" 32912 XF86CONFIGFILE="$ac_define_dir" 32913 32914 32915 printf "%s\n" "#define XF86CONFIGFILE \"$ac_define_dir\"" >>confdefs.h 32916 32917 test "$prefix_NONE" && prefix=NONE 32918 test "$exec_prefix_NONE" && exec_prefix=NONE 32919 32920 32921 prefix_NONE= 32922 exec_prefix_NONE= 32923 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32924 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32925 eval ac_define_dir="\"$XF86CONFIGDIR\"" 32926 eval ac_define_dir="\"$ac_define_dir\"" 32927 XCONFIGDIR="$ac_define_dir" 32928 32929 32930 printf "%s\n" "#define XCONFIGDIR \"$ac_define_dir\"" >>confdefs.h 32931 32932 test "$prefix_NONE" && prefix=NONE 32933 test "$exec_prefix_NONE" && exec_prefix=NONE 32934 32935 32936 prefix_NONE= 32937 exec_prefix_NONE= 32938 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32939 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32940 eval ac_define_dir="\"$moduledir\"" 32941 eval ac_define_dir="\"$ac_define_dir\"" 32942 DEFAULT_MODULE_PATH="$ac_define_dir" 32943 32944 32945 printf "%s\n" "#define DEFAULT_MODULE_PATH \"$ac_define_dir\"" >>confdefs.h 32946 32947 test "$prefix_NONE" && prefix=NONE 32948 test "$exec_prefix_NONE" && exec_prefix=NONE 32949 32950 32951 prefix_NONE= 32952 exec_prefix_NONE= 32953 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32954 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32955 eval ac_define_dir="\"$libdir\"" 32956 eval ac_define_dir="\"$ac_define_dir\"" 32957 DEFAULT_LIBRARY_PATH="$ac_define_dir" 32958 32959 32960 printf "%s\n" "#define DEFAULT_LIBRARY_PATH \"$ac_define_dir\"" >>confdefs.h 32961 32962 test "$prefix_NONE" && prefix=NONE 32963 test "$exec_prefix_NONE" && exec_prefix=NONE 32964 32965 32966 prefix_NONE= 32967 exec_prefix_NONE= 32968 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32969 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32970 eval ac_define_dir="\"$logdir\"" 32971 eval ac_define_dir="\"$ac_define_dir\"" 32972 DEFAULT_LOGDIR="$ac_define_dir" 32973 32974 32975 printf "%s\n" "#define DEFAULT_LOGDIR \"$ac_define_dir\"" >>confdefs.h 32976 32977 test "$prefix_NONE" && prefix=NONE 32978 test "$exec_prefix_NONE" && exec_prefix=NONE 32979 32980 32981 prefix_NONE= 32982 exec_prefix_NONE= 32983 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32984 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32985 eval ac_define_dir="\"$LOGPREFIX\"" 32986 eval ac_define_dir="\"$ac_define_dir\"" 32987 DEFAULT_LOGPREFIX="$ac_define_dir" 32988 32989 32990 printf "%s\n" "#define DEFAULT_LOGPREFIX \"$ac_define_dir\"" >>confdefs.h 32991 32992 test "$prefix_NONE" && prefix=NONE 32993 test "$exec_prefix_NONE" && exec_prefix=NONE 32994 32995 32996 prefix_NONE= 32997 exec_prefix_NONE= 32998 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32999 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 33000 eval ac_define_dir="\"$XDG_DATA_HOME\"" 33001 eval ac_define_dir="\"$ac_define_dir\"" 33002 DEFAULT_XDG_DATA_HOME="$ac_define_dir" 33003 33004 33005 printf "%s\n" "#define DEFAULT_XDG_DATA_HOME \"$ac_define_dir\"" >>confdefs.h 33006 33007 test "$prefix_NONE" && prefix=NONE 33008 test "$exec_prefix_NONE" && exec_prefix=NONE 33009 33010 33011 prefix_NONE= 33012 exec_prefix_NONE= 33013 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 33014 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 33015 eval ac_define_dir="\"$XDG_DATA_HOME_LOGDIR\"" 33016 eval ac_define_dir="\"$ac_define_dir\"" 33017 DEFAULT_XDG_DATA_HOME_LOGDIR="$ac_define_dir" 33018 33019 33020 printf "%s\n" "#define DEFAULT_XDG_DATA_HOME_LOGDIR \"$ac_define_dir\"" >>confdefs.h 33021 33022 test "$prefix_NONE" && prefix=NONE 33023 test "$exec_prefix_NONE" && exec_prefix=NONE 33024 33025 33026 printf "%s\n" "#define __VENDORDWEBSUPPORT__ \"$VENDOR_WEB\"" >>confdefs.h 33027 33028 if test "x$VGAHW" = xyes; then 33029 33030 printf "%s\n" "#define WITH_VGAHW 1" >>confdefs.h 33031 33032 fi 33033 33034 driverdir="$moduledir/drivers" 33035 33036 33037 sdkdir="$includedir/xorg" 33038 extdir="$includedir/X11/extensions" 33039 sysconfigdir="$datadir/X11/$XF86CONFIGDIR" 33040 33041 33042 33043 33044 33045 # stuff the ABI versions into the pc file too 33046 extract_abi() { 33047 grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' ' .' | awk '{ print $4$5 }' 33048 } 33049 abi_ansic=`extract_abi ANSIC` 33050 abi_videodrv=`extract_abi VIDEODRV` 33051 abi_xinput=`extract_abi XINPUT` 33052 abi_extension=`extract_abi EXTENSION` 33053 33054 33055 33056 33057 fi 33058 if test "x$XORG" = xyes; then 33059 XORG_TRUE= 33060 XORG_FALSE='#' 33061 else 33062 XORG_TRUE='#' 33063 XORG_FALSE= 33064 fi 33065 33066 if test "x$PCI" = xyes; then 33067 XORG_BUS_PCI_TRUE= 33068 XORG_BUS_PCI_FALSE='#' 33069 else 33070 XORG_BUS_PCI_TRUE='#' 33071 XORG_BUS_PCI_FALSE= 33072 fi 33073 33074 if test "x$xorg_bus_bsdpci" = xyes; then 33075 XORG_BUS_BSDPCI_TRUE= 33076 XORG_BUS_BSDPCI_FALSE='#' 33077 else 33078 XORG_BUS_BSDPCI_TRUE='#' 33079 XORG_BUS_BSDPCI_FALSE= 33080 fi 33081 33082 if test "x$xorg_bus_sparc" = xyes; then 33083 XORG_BUS_SPARC_TRUE= 33084 XORG_BUS_SPARC_FALSE='#' 33085 else 33086 XORG_BUS_SPARC_TRUE='#' 33087 XORG_BUS_SPARC_FALSE= 33088 fi 33089 33090 if test "x$linux_acpi" = xyes; then 33091 LNXACPI_TRUE= 33092 LNXACPI_FALSE='#' 33093 else 33094 LNXACPI_TRUE='#' 33095 LNXACPI_FALSE= 33096 fi 33097 33098 if test "x$linux_apm" = xyes; then 33099 LNXAPM_TRUE= 33100 LNXAPM_FALSE='#' 33101 else 33102 LNXAPM_TRUE='#' 33103 LNXAPM_FALSE= 33104 fi 33105 33106 if test "x$solaris_vt" = xyes; then 33107 SOLARIS_VT_TRUE= 33108 SOLARIS_VT_FALSE='#' 33109 else 33110 SOLARIS_VT_TRUE='#' 33111 SOLARIS_VT_FALSE= 33112 fi 33113 33114 if test "x$DGA" = xyes; then 33115 DGA_TRUE= 33116 DGA_FALSE='#' 33117 else 33118 DGA_TRUE='#' 33119 DGA_FALSE= 33120 fi 33121 33122 if test "x$CONFIG_UDEV_KMS" = xyes; then 33123 XORG_BUS_PLATFORM_TRUE= 33124 XORG_BUS_PLATFORM_FALSE='#' 33125 else 33126 XORG_BUS_PLATFORM_TRUE='#' 33127 XORG_BUS_PLATFORM_FALSE= 33128 fi 33129 33130 if test "x$XORG_DRIVER_MODESETTING" = xyes; then 33131 XORG_DRIVER_MODESETTING_TRUE= 33132 XORG_DRIVER_MODESETTING_FALSE='#' 33133 else 33134 XORG_DRIVER_MODESETTING_TRUE='#' 33135 XORG_DRIVER_MODESETTING_FALSE= 33136 fi 33137 33138 if test "x$XORG_DRIVER_INPUT_INPUTTEST" = xyes; then 33139 XORG_DRIVER_INPUT_INPUTTEST_TRUE= 33140 XORG_DRIVER_INPUT_INPUTTEST_FALSE='#' 33141 else 33142 XORG_DRIVER_INPUT_INPUTTEST_TRUE='#' 33143 XORG_DRIVER_INPUT_INPUTTEST_FALSE= 33144 fi 33145 33146 33147 if test "x$GLAMOR" = xauto; then 33148 if echo "$XORG" "$XEPHYR" | grep -q yes ; then 33149 GLAMOR=yes 33150 fi 33151 fi 33152 33153 if test "x$GLAMOR" = xyes; then 33154 GLAMOR_TRUE= 33155 GLAMOR_FALSE='#' 33156 else 33157 GLAMOR_TRUE='#' 33158 GLAMOR_FALSE= 33159 fi 33160 33161 33162 if test "x$GLAMOR" = xyes; then 33163 33164 printf "%s\n" "#define GLAMOR 1" >>confdefs.h 33165 33166 33167 pkg_failed=no 33168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoxy" >&5 33169 printf %s "checking for epoxy... " >&6; } 33170 33171 if test -n "$GLAMOR_CFLAGS"; then 33172 pkg_cv_GLAMOR_CFLAGS="$GLAMOR_CFLAGS" 33173 elif test -n "$PKG_CONFIG"; then 33174 if test -n "$PKG_CONFIG" && \ 33175 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5 33176 ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5 33177 ac_status=$? 33178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33179 test $ac_status = 0; }; then 33180 pkg_cv_GLAMOR_CFLAGS=`$PKG_CONFIG --cflags "epoxy" 2>/dev/null` 33181 test "x$?" != "x0" && pkg_failed=yes 33182 else 33183 pkg_failed=yes 33184 fi 33185 else 33186 pkg_failed=untried 33187 fi 33188 if test -n "$GLAMOR_LIBS"; then 33189 pkg_cv_GLAMOR_LIBS="$GLAMOR_LIBS" 33190 elif test -n "$PKG_CONFIG"; then 33191 if test -n "$PKG_CONFIG" && \ 33192 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5 33193 ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5 33194 ac_status=$? 33195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33196 test $ac_status = 0; }; then 33197 pkg_cv_GLAMOR_LIBS=`$PKG_CONFIG --libs "epoxy" 2>/dev/null` 33198 test "x$?" != "x0" && pkg_failed=yes 33199 else 33200 pkg_failed=yes 33201 fi 33202 else 33203 pkg_failed=untried 33204 fi 33205 33206 33207 33208 if test $pkg_failed = yes; then 33209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33210 printf "%s\n" "no" >&6; } 33211 33212 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33213 _pkg_short_errors_supported=yes 33214 else 33215 _pkg_short_errors_supported=no 33216 fi 33217 if test $_pkg_short_errors_supported = yes; then 33218 GLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "epoxy" 2>&1` 33219 else 33220 GLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "epoxy" 2>&1` 33221 fi 33222 # Put the nasty error message in config.log where it belongs 33223 echo "$GLAMOR_PKG_ERRORS" >&5 33224 33225 as_fn_error $? "Package requirements (epoxy) were not met: 33226 33227 $GLAMOR_PKG_ERRORS 33228 33229 Consider adjusting the PKG_CONFIG_PATH environment variable if you 33230 installed software in a non-standard prefix. 33231 33232 Alternatively, you may set the environment variables GLAMOR_CFLAGS 33233 and GLAMOR_LIBS to avoid the need to call pkg-config. 33234 See the pkg-config man page for more details." "$LINENO" 5 33235 elif test $pkg_failed = untried; then 33236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33237 printf "%s\n" "no" >&6; } 33238 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 33239 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 33240 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 33241 is in your PATH or set the PKG_CONFIG environment variable to the full 33242 path to pkg-config. 33243 33244 Alternatively, you may set the environment variables GLAMOR_CFLAGS 33245 and GLAMOR_LIBS to avoid the need to call pkg-config. 33246 See the pkg-config man page for more details. 33247 33248 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 33249 See 'config.log' for more details" "$LINENO" 5; } 33250 else 33251 GLAMOR_CFLAGS=$pkg_cv_GLAMOR_CFLAGS 33252 GLAMOR_LIBS=$pkg_cv_GLAMOR_LIBS 33253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33254 printf "%s\n" "yes" >&6; } 33255 33256 fi 33257 33258 if test -n "$PKG_CONFIG" && \ 33259 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.4.4\""; } >&5 33260 ($PKG_CONFIG --exists --print-errors "epoxy >= 1.4.4") 2>&5 33261 ac_status=$? 33262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33263 test $ac_status = 0; }; then 33264 33265 printf "%s\n" "#define GLAMOR_HAS_EGL_QUERY_DMABUF 1" >>confdefs.h 33266 33267 fi 33268 33269 if test -n "$PKG_CONFIG" && \ 33270 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.5.4\""; } >&5 33271 ($PKG_CONFIG --exists --print-errors "epoxy >= 1.5.4") 2>&5 33272 ac_status=$? 33273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33274 test $ac_status = 0; }; then 33275 33276 printf "%s\n" "#define GLAMOR_HAS_EGL_QUERY_DRIVER 1" >>confdefs.h 33277 33278 fi 33279 33280 33281 pkg_failed=no 33282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"$LIBGBM\"" >&5 33283 printf %s "checking for \"$LIBGBM\"... " >&6; } 33284 33285 if test -n "$GBM_CFLAGS"; then 33286 pkg_cv_GBM_CFLAGS="$GBM_CFLAGS" 33287 elif test -n "$PKG_CONFIG"; then 33288 if test -n "$PKG_CONFIG" && \ 33289 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5 33290 ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5 33291 ac_status=$? 33292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33293 test $ac_status = 0; }; then 33294 pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags ""$LIBGBM"" 2>/dev/null` 33295 test "x$?" != "x0" && pkg_failed=yes 33296 else 33297 pkg_failed=yes 33298 fi 33299 else 33300 pkg_failed=untried 33301 fi 33302 if test -n "$GBM_LIBS"; then 33303 pkg_cv_GBM_LIBS="$GBM_LIBS" 33304 elif test -n "$PKG_CONFIG"; then 33305 if test -n "$PKG_CONFIG" && \ 33306 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5 33307 ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5 33308 ac_status=$? 33309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33310 test $ac_status = 0; }; then 33311 pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs ""$LIBGBM"" 2>/dev/null` 33312 test "x$?" != "x0" && pkg_failed=yes 33313 else 33314 pkg_failed=yes 33315 fi 33316 else 33317 pkg_failed=untried 33318 fi 33319 33320 33321 33322 if test $pkg_failed = yes; then 33323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33324 printf "%s\n" "no" >&6; } 33325 33326 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33327 _pkg_short_errors_supported=yes 33328 else 33329 _pkg_short_errors_supported=no 33330 fi 33331 if test $_pkg_short_errors_supported = yes; then 33332 GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""$LIBGBM"" 2>&1` 33333 else 33334 GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""$LIBGBM"" 2>&1` 33335 fi 33336 # Put the nasty error message in config.log where it belongs 33337 echo "$GBM_PKG_ERRORS" >&5 33338 33339 GBM=no 33340 elif test $pkg_failed = untried; then 33341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33342 printf "%s\n" "no" >&6; } 33343 GBM=no 33344 else 33345 GBM_CFLAGS=$pkg_cv_GBM_CFLAGS 33346 GBM_LIBS=$pkg_cv_GBM_LIBS 33347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33348 printf "%s\n" "yes" >&6; } 33349 GBM=yes 33350 fi 33351 if test "x$GBM" = xyes; then 33352 33353 printf "%s\n" "#define GLAMOR_HAS_GBM 1" >>confdefs.h 33354 33355 ac_fn_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h> 33356 #include <gbm.h> 33357 " "$ac_c_undeclared_builtin_options" "CFLAGS" 33358 if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes 33359 then : 33360 33361 printf "%s\n" "#define GLAMOR_HAS_GBM_LINEAR 1" >>confdefs.h 33362 33363 fi 33364 if test -n "$PKG_CONFIG" && \ 33365 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 17.1.0\""; } >&5 33366 ($PKG_CONFIG --exists --print-errors "gbm >= 17.1.0") 2>&5 33367 ac_status=$? 33368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33369 test $ac_status = 0; }; then 33370 33371 printf "%s\n" "#define GBM_BO_WITH_MODIFIERS 1" >>confdefs.h 33372 33373 fi 33374 else 33375 if test "x$XORG" = xyes; then 33376 as_fn_error $? "Glamor for Xorg requires $LIBGBM" "$LINENO" 5 33377 fi 33378 fi 33379 fi 33380 if test "x$GBM" = xyes; then 33381 GLAMOR_EGL_TRUE= 33382 GLAMOR_EGL_FALSE='#' 33383 else 33384 GLAMOR_EGL_TRUE='#' 33385 GLAMOR_EGL_FALSE= 33386 fi 33387 33388 33389 33390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build XWin DDX" >&5 33391 printf %s "checking whether to build XWin DDX... " >&6; } 33392 if test "x$XWIN" = xauto; then 33393 case $host_os in 33394 cygwin*) XWIN="yes" ;; 33395 mingw*) XWIN="yes" ;; 33396 *) XWIN="no" ;; 33397 esac 33398 fi 33399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XWIN" >&5 33400 printf "%s\n" "$XWIN" >&6; } 33401 33402 if test "x$XWIN" = xyes; then 33403 33404 prefix_NONE= 33405 exec_prefix_NONE= 33406 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 33407 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 33408 eval ac_define_dir="\"$logdir\"" 33409 eval ac_define_dir="\"$ac_define_dir\"" 33410 DEFAULT_LOGDIR="$ac_define_dir" 33411 33412 33413 printf "%s\n" "#define DEFAULT_LOGDIR \"$ac_define_dir\"" >>confdefs.h 33414 33415 test "$prefix_NONE" && prefix=NONE 33416 test "$exec_prefix_NONE" && exec_prefix=NONE 33417 33418 33419 printf "%s\n" "#define XORG_VERSION_CURRENT $VENDOR_RELEASE" >>confdefs.h 33420 33421 33422 printf "%s\n" "#define __VENDORDWEBSUPPORT__ \"$VENDOR_WEB\"" >>confdefs.h 33423 33424 if test -n "$ac_tool_prefix"; then 33425 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 33426 set dummy ${ac_tool_prefix}windres; ac_word=$2 33427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33428 printf %s "checking for $ac_word... " >&6; } 33429 if test ${ac_cv_prog_WINDRES+y} 33430 then : 33431 printf %s "(cached) " >&6 33432 else case e in #( 33433 e) if test -n "$WINDRES"; then 33434 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 33435 else 33436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33437 for as_dir in $PATH 33438 do 33439 IFS=$as_save_IFS 33440 case $as_dir in #((( 33441 '') as_dir=./ ;; 33442 */) ;; 33443 *) as_dir=$as_dir/ ;; 33444 esac 33445 for ac_exec_ext in '' $ac_executable_extensions; do 33446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33447 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 33448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33449 break 2 33450 fi 33451 done 33452 done 33453 IFS=$as_save_IFS 33454 33455 fi ;; 33456 esac 33457 fi 33458 WINDRES=$ac_cv_prog_WINDRES 33459 if test -n "$WINDRES"; then 33460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 33461 printf "%s\n" "$WINDRES" >&6; } 33462 else 33463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33464 printf "%s\n" "no" >&6; } 33465 fi 33466 33467 33468 fi 33469 if test -z "$ac_cv_prog_WINDRES"; then 33470 ac_ct_WINDRES=$WINDRES 33471 # Extract the first word of "windres", so it can be a program name with args. 33472 set dummy windres; ac_word=$2 33473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33474 printf %s "checking for $ac_word... " >&6; } 33475 if test ${ac_cv_prog_ac_ct_WINDRES+y} 33476 then : 33477 printf %s "(cached) " >&6 33478 else case e in #( 33479 e) if test -n "$ac_ct_WINDRES"; then 33480 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 33481 else 33482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33483 for as_dir in $PATH 33484 do 33485 IFS=$as_save_IFS 33486 case $as_dir in #((( 33487 '') as_dir=./ ;; 33488 */) ;; 33489 *) as_dir=$as_dir/ ;; 33490 esac 33491 for ac_exec_ext in '' $ac_executable_extensions; do 33492 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33493 ac_cv_prog_ac_ct_WINDRES="windres" 33494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33495 break 2 33496 fi 33497 done 33498 done 33499 IFS=$as_save_IFS 33500 33501 fi ;; 33502 esac 33503 fi 33504 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 33505 if test -n "$ac_ct_WINDRES"; then 33506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 33507 printf "%s\n" "$ac_ct_WINDRES" >&6; } 33508 else 33509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33510 printf "%s\n" "no" >&6; } 33511 fi 33512 33513 if test "x$ac_ct_WINDRES" = x; then 33514 WINDRES="" 33515 else 33516 case $cross_compiling:$ac_tool_warned in 33517 yes:) 33518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33519 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33520 ac_tool_warned=yes ;; 33521 esac 33522 WINDRES=$ac_ct_WINDRES 33523 fi 33524 else 33525 WINDRES="$ac_cv_prog_WINDRES" 33526 fi 33527 33528 33529 33530 pkg_failed=no 33531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" >&5 33532 printf %s "checking for xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes... " >&6; } 33533 33534 if test -n "$XWINMODULES_CFLAGS"; then 33535 pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS" 33536 elif test -n "$PKG_CONFIG"; then 33537 if test -n "$PKG_CONFIG" && \ 33538 { { 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 33539 ($PKG_CONFIG --exists --print-errors "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes") 2>&5 33540 ac_status=$? 33541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33542 test $ac_status = 0; }; then 33543 pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>/dev/null` 33544 test "x$?" != "x0" && pkg_failed=yes 33545 else 33546 pkg_failed=yes 33547 fi 33548 else 33549 pkg_failed=untried 33550 fi 33551 if test -n "$XWINMODULES_LIBS"; then 33552 pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS" 33553 elif test -n "$PKG_CONFIG"; then 33554 if test -n "$PKG_CONFIG" && \ 33555 { { 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 33556 ($PKG_CONFIG --exists --print-errors "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes") 2>&5 33557 ac_status=$? 33558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33559 test $ac_status = 0; }; then 33560 pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>/dev/null` 33561 test "x$?" != "x0" && pkg_failed=yes 33562 else 33563 pkg_failed=yes 33564 fi 33565 else 33566 pkg_failed=untried 33567 fi 33568 33569 33570 33571 if test $pkg_failed = yes; then 33572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33573 printf "%s\n" "no" >&6; } 33574 33575 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33576 _pkg_short_errors_supported=yes 33577 else 33578 _pkg_short_errors_supported=no 33579 fi 33580 if test $_pkg_short_errors_supported = yes; then 33581 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` 33582 else 33583 XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>&1` 33584 fi 33585 # Put the nasty error message in config.log where it belongs 33586 echo "$XWINMODULES_PKG_ERRORS" >&5 33587 33588 as_fn_error $? "Package requirements (xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes) were not met: 33589 33590 $XWINMODULES_PKG_ERRORS 33591 33592 Consider adjusting the PKG_CONFIG_PATH environment variable if you 33593 installed software in a non-standard prefix. 33594 33595 Alternatively, you may set the environment variables XWINMODULES_CFLAGS 33596 and XWINMODULES_LIBS to avoid the need to call pkg-config. 33597 See the pkg-config man page for more details." "$LINENO" 5 33598 elif test $pkg_failed = untried; then 33599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33600 printf "%s\n" "no" >&6; } 33601 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 33602 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 33603 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 33604 is in your PATH or set the PKG_CONFIG environment variable to the full 33605 path to pkg-config. 33606 33607 Alternatively, you may set the environment variables XWINMODULES_CFLAGS 33608 and XWINMODULES_LIBS to avoid the need to call pkg-config. 33609 See the pkg-config man page for more details. 33610 33611 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 33612 See 'config.log' for more details" "$LINENO" 5; } 33613 else 33614 XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS 33615 XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS 33616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33617 printf "%s\n" "yes" >&6; } 33618 33619 fi 33620 33621 if test "x$WINDOWSDRI" = xauto; then 33622 if test -n "$PKG_CONFIG" && \ 33623 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 33624 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 33625 ac_status=$? 33626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33627 test $ac_status = 0; }; then 33628 WINDOWSDRI=yes 33629 else 33630 WINDOWSDRI=no 33631 fi 33632 fi 33633 if test "x$WINDOWSDRI" = xyes ; then 33634 33635 pkg_failed=no 33636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windowsdriproto" >&5 33637 printf %s "checking for windowsdriproto... " >&6; } 33638 33639 if test -n "$WINDOWSDRI_CFLAGS"; then 33640 pkg_cv_WINDOWSDRI_CFLAGS="$WINDOWSDRI_CFLAGS" 33641 elif test -n "$PKG_CONFIG"; then 33642 if test -n "$PKG_CONFIG" && \ 33643 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 33644 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 33645 ac_status=$? 33646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33647 test $ac_status = 0; }; then 33648 pkg_cv_WINDOWSDRI_CFLAGS=`$PKG_CONFIG --cflags "windowsdriproto" 2>/dev/null` 33649 test "x$?" != "x0" && pkg_failed=yes 33650 else 33651 pkg_failed=yes 33652 fi 33653 else 33654 pkg_failed=untried 33655 fi 33656 if test -n "$WINDOWSDRI_LIBS"; then 33657 pkg_cv_WINDOWSDRI_LIBS="$WINDOWSDRI_LIBS" 33658 elif test -n "$PKG_CONFIG"; then 33659 if test -n "$PKG_CONFIG" && \ 33660 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 33661 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 33662 ac_status=$? 33663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33664 test $ac_status = 0; }; then 33665 pkg_cv_WINDOWSDRI_LIBS=`$PKG_CONFIG --libs "windowsdriproto" 2>/dev/null` 33666 test "x$?" != "x0" && pkg_failed=yes 33667 else 33668 pkg_failed=yes 33669 fi 33670 else 33671 pkg_failed=untried 33672 fi 33673 33674 33675 33676 if test $pkg_failed = yes; then 33677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33678 printf "%s\n" "no" >&6; } 33679 33680 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33681 _pkg_short_errors_supported=yes 33682 else 33683 _pkg_short_errors_supported=no 33684 fi 33685 if test $_pkg_short_errors_supported = yes; then 33686 WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "windowsdriproto" 2>&1` 33687 else 33688 WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "windowsdriproto" 2>&1` 33689 fi 33690 # Put the nasty error message in config.log where it belongs 33691 echo "$WINDOWSDRI_PKG_ERRORS" >&5 33692 33693 as_fn_error $? "Package requirements (windowsdriproto) were not met: 33694 33695 $WINDOWSDRI_PKG_ERRORS 33696 33697 Consider adjusting the PKG_CONFIG_PATH environment variable if you 33698 installed software in a non-standard prefix. 33699 33700 Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS 33701 and WINDOWSDRI_LIBS to avoid the need to call pkg-config. 33702 See the pkg-config man page for more details." "$LINENO" 5 33703 elif test $pkg_failed = untried; then 33704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33705 printf "%s\n" "no" >&6; } 33706 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 33707 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 33708 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 33709 is in your PATH or set the PKG_CONFIG environment variable to the full 33710 path to pkg-config. 33711 33712 Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS 33713 and WINDOWSDRI_LIBS to avoid the need to call pkg-config. 33714 See the pkg-config man page for more details. 33715 33716 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 33717 See 'config.log' for more details" "$LINENO" 5; } 33718 else 33719 WINDOWSDRI_CFLAGS=$pkg_cv_WINDOWSDRI_CFLAGS 33720 WINDOWSDRI_LIBS=$pkg_cv_WINDOWSDRI_LIBS 33721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33722 printf "%s\n" "yes" >&6; } 33723 33724 fi 33725 fi 33726 33727 case $host_os in 33728 cygwin*) 33729 XWIN_SERVER_NAME=XWin 33730 33731 printf "%s\n" "#define HAS_DEVWINDOWS 1" >>confdefs.h 33732 33733 ;; 33734 mingw*) 33735 XWIN_SERVER_NAME=Xming 33736 33737 printf "%s\n" "#define RELOCATE_PROJECTROOT 1" >>confdefs.h 33738 33739 33740 printf "%s\n" "#define HAS_WINSOCK 1" >>confdefs.h 33741 33742 XWIN_SYS_LIBS="-lpthread -lws2_32" 33743 ;; 33744 esac 33745 33746 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" 33747 XWIN_SYS_LIBS="$XWIN_SYS_LIBS $XWINMODULES_LIBS" 33748 33749 33750 33751 33752 if test "x$DEBUGGING" = xyes; then 33753 33754 printf "%s\n" "#define CYGDEBUG 1" >>confdefs.h 33755 33756 33757 printf "%s\n" "#define CYGWINDOWING_DEBUG 1" >>confdefs.h 33758 33759 33760 printf "%s\n" "#define CYGMULTIWINDOW_DEBUG 1" >>confdefs.h 33761 33762 fi 33763 33764 33765 printf "%s\n" "#define DDXOSVERRORF 1" >>confdefs.h 33766 33767 33768 printf "%s\n" "#define DDXBEFORERESET 1" >>confdefs.h 33769 33770 33771 if test "x$XWIN" = xyes && test "x$GLX" = xyes ; then 33772 # Extract the first word of "python3", so it can be a program name with args. 33773 set dummy python3; ac_word=$2 33774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33775 printf %s "checking for $ac_word... " >&6; } 33776 if test ${ac_cv_prog_PYTHON3+y} 33777 then : 33778 printf %s "(cached) " >&6 33779 else case e in #( 33780 e) if test -n "$PYTHON3"; then 33781 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test. 33782 else 33783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33784 for as_dir in $PATH 33785 do 33786 IFS=$as_save_IFS 33787 case $as_dir in #((( 33788 '') as_dir=./ ;; 33789 */) ;; 33790 *) as_dir=$as_dir/ ;; 33791 esac 33792 for ac_exec_ext in '' $ac_executable_extensions; do 33793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33794 ac_cv_prog_PYTHON3="python3" 33795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33796 break 2 33797 fi 33798 done 33799 done 33800 IFS=$as_save_IFS 33801 33802 fi ;; 33803 esac 33804 fi 33805 PYTHON3=$ac_cv_prog_PYTHON3 33806 if test -n "$PYTHON3"; then 33807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5 33808 printf "%s\n" "$PYTHON3" >&6; } 33809 else 33810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33811 printf "%s\n" "no" >&6; } 33812 fi 33813 33814 33815 if test -z "$PYTHON3"; then 33816 as_fn_error $? "python3 not found" "$LINENO" 5 33817 fi 33818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python module lxml" >&5 33819 printf %s "checking for python module lxml... " >&6; } 33820 $PYTHON3 -c "import lxml;" 33821 if test $? -ne 0 ; then 33822 as_fn_error $? "not found" "$LINENO" 5 33823 fi 33824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33825 printf "%s\n" "yes" >&6; } 33826 if test "x$KHRONOS_SPEC_DIR" = "xauto" ; then 33827 33828 pkg_failed=no 33829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for khronos-opengl-registry" >&5 33830 printf %s "checking for khronos-opengl-registry... " >&6; } 33831 33832 if test -n "$KHRONOS_OPENGL_REGISTRY_CFLAGS"; then 33833 pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS="$KHRONOS_OPENGL_REGISTRY_CFLAGS" 33834 elif test -n "$PKG_CONFIG"; then 33835 if test -n "$PKG_CONFIG" && \ 33836 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5 33837 ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5 33838 ac_status=$? 33839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33840 test $ac_status = 0; }; then 33841 pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS=`$PKG_CONFIG --cflags "khronos-opengl-registry" 2>/dev/null` 33842 test "x$?" != "x0" && pkg_failed=yes 33843 else 33844 pkg_failed=yes 33845 fi 33846 else 33847 pkg_failed=untried 33848 fi 33849 if test -n "$KHRONOS_OPENGL_REGISTRY_LIBS"; then 33850 pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS="$KHRONOS_OPENGL_REGISTRY_LIBS" 33851 elif test -n "$PKG_CONFIG"; then 33852 if test -n "$PKG_CONFIG" && \ 33853 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5 33854 ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5 33855 ac_status=$? 33856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33857 test $ac_status = 0; }; then 33858 pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS=`$PKG_CONFIG --libs "khronos-opengl-registry" 2>/dev/null` 33859 test "x$?" != "x0" && pkg_failed=yes 33860 else 33861 pkg_failed=yes 33862 fi 33863 else 33864 pkg_failed=untried 33865 fi 33866 33867 33868 33869 if test $pkg_failed = yes; then 33870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33871 printf "%s\n" "no" >&6; } 33872 33873 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33874 _pkg_short_errors_supported=yes 33875 else 33876 _pkg_short_errors_supported=no 33877 fi 33878 if test $_pkg_short_errors_supported = yes; then 33879 KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "khronos-opengl-registry" 2>&1` 33880 else 33881 KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "khronos-opengl-registry" 2>&1` 33882 fi 33883 # Put the nasty error message in config.log where it belongs 33884 echo "$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS" >&5 33885 33886 as_fn_error $? "Package requirements (khronos-opengl-registry) were not met: 33887 33888 $KHRONOS_OPENGL_REGISTRY_PKG_ERRORS 33889 33890 Consider adjusting the PKG_CONFIG_PATH environment variable if you 33891 installed software in a non-standard prefix. 33892 33893 Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS 33894 and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config. 33895 See the pkg-config man page for more details." "$LINENO" 5 33896 elif test $pkg_failed = untried; then 33897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33898 printf "%s\n" "no" >&6; } 33899 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 33900 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 33901 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 33902 is in your PATH or set the PKG_CONFIG environment variable to the full 33903 path to pkg-config. 33904 33905 Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS 33906 and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config. 33907 See the pkg-config man page for more details. 33908 33909 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 33910 See 'config.log' for more details" "$LINENO" 5; } 33911 else 33912 KHRONOS_OPENGL_REGISTRY_CFLAGS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS 33913 KHRONOS_OPENGL_REGISTRY_LIBS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS 33914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33915 printf "%s\n" "yes" >&6; } 33916 33917 fi 33918 KHRONOS_SPEC_DIR=`pkg-config khronos-opengl-registry --variable=specdir` 33919 fi 33920 33921 fi 33922 33923 fi 33924 if test "x$XWIN" = xyes; then 33925 XWIN_TRUE= 33926 XWIN_FALSE='#' 33927 else 33928 XWIN_TRUE='#' 33929 XWIN_FALSE= 33930 fi 33931 33932 if test "x$XWIN" = xyes && test "x$GLX" = xyes; then 33933 XWIN_GLX_WINDOWS_TRUE= 33934 XWIN_GLX_WINDOWS_FALSE='#' 33935 else 33936 XWIN_GLX_WINDOWS_TRUE='#' 33937 XWIN_GLX_WINDOWS_FALSE= 33938 fi 33939 33940 if test "x$XWIN" = xyes && test "x$WINDOWSDRI" = xyes; then 33941 XWIN_WINDOWS_DRI_TRUE= 33942 XWIN_WINDOWS_DRI_FALSE='#' 33943 else 33944 XWIN_WINDOWS_DRI_TRUE='#' 33945 XWIN_WINDOWS_DRI_FALSE= 33946 fi 33947 33948 33949 if test "x$XQUARTZ" = xyes; then 33950 33951 printf "%s\n" "#define XQUARTZ 1" >>confdefs.h 33952 33953 33954 printf "%s\n" "#define ROOTLESS 1" >>confdefs.h 33955 33956 33957 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" 33958 33959 33960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xp_init in -lXplugin" >&5 33961 printf %s "checking for xp_init in -lXplugin... " >&6; } 33962 if test ${ac_cv_lib_Xplugin_xp_init+y} 33963 then : 33964 printf %s "(cached) " >&6 33965 else case e in #( 33966 e) ac_check_lib_save_LIBS=$LIBS 33967 LIBS="-lXplugin $LIBS" 33968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33969 /* end confdefs.h. */ 33970 33971 /* Override any GCC internal prototype to avoid an error. 33972 Use char because int might match the return type of a GCC 33973 builtin and then its argument prototype would still apply. 33974 The 'extern "C"' is for builds by C++ compilers; 33975 although this is not generally supported in C code supporting it here 33976 has little cost and some practical benefit (sr 110532). */ 33977 #ifdef __cplusplus 33978 extern "C" 33979 #endif 33980 char xp_init (void); 33981 int 33982 main (void) 33983 { 33984 return xp_init (); 33985 ; 33986 return 0; 33987 } 33988 _ACEOF 33989 if ac_fn_c_try_link "$LINENO" 33990 then : 33991 ac_cv_lib_Xplugin_xp_init=yes 33992 else case e in #( 33993 e) ac_cv_lib_Xplugin_xp_init=no ;; 33994 esac 33995 fi 33996 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33997 conftest$ac_exeext conftest.$ac_ext 33998 LIBS=$ac_check_lib_save_LIBS ;; 33999 esac 34000 fi 34001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xplugin_xp_init" >&5 34002 printf "%s\n" "$ac_cv_lib_Xplugin_xp_init" >&6; } 34003 if test "x$ac_cv_lib_Xplugin_xp_init" = xyes 34004 then : 34005 : 34006 fi 34007 34008 34009 CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA" 34010 34011 34012 pkg_failed=no 34013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $APPLEWMPROTO $LIBAPPLEWM xfixes x11" >&5 34014 printf %s "checking for $APPLEWMPROTO $LIBAPPLEWM xfixes x11... " >&6; } 34015 34016 if test -n "$XPBPROXY_CFLAGS"; then 34017 pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS" 34018 elif test -n "$PKG_CONFIG"; then 34019 if test -n "$PKG_CONFIG" && \ 34020 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5 34021 ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5 34022 ac_status=$? 34023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34024 test $ac_status = 0; }; then 34025 pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null` 34026 test "x$?" != "x0" && pkg_failed=yes 34027 else 34028 pkg_failed=yes 34029 fi 34030 else 34031 pkg_failed=untried 34032 fi 34033 if test -n "$XPBPROXY_LIBS"; then 34034 pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS" 34035 elif test -n "$PKG_CONFIG"; then 34036 if test -n "$PKG_CONFIG" && \ 34037 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5 34038 ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5 34039 ac_status=$? 34040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34041 test $ac_status = 0; }; then 34042 pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null` 34043 test "x$?" != "x0" && pkg_failed=yes 34044 else 34045 pkg_failed=yes 34046 fi 34047 else 34048 pkg_failed=untried 34049 fi 34050 34051 34052 34053 if test $pkg_failed = yes; then 34054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 34055 printf "%s\n" "no" >&6; } 34056 34057 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 34058 _pkg_short_errors_supported=yes 34059 else 34060 _pkg_short_errors_supported=no 34061 fi 34062 if test $_pkg_short_errors_supported = yes; then 34063 XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1` 34064 else 34065 XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1` 34066 fi 34067 # Put the nasty error message in config.log where it belongs 34068 echo "$XPBPROXY_PKG_ERRORS" >&5 34069 34070 as_fn_error $? "Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met: 34071 34072 $XPBPROXY_PKG_ERRORS 34073 34074 Consider adjusting the PKG_CONFIG_PATH environment variable if you 34075 installed software in a non-standard prefix. 34076 34077 Alternatively, you may set the environment variables XPBPROXY_CFLAGS 34078 and XPBPROXY_LIBS to avoid the need to call pkg-config. 34079 See the pkg-config man page for more details." "$LINENO" 5 34080 elif test $pkg_failed = untried; then 34081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 34082 printf "%s\n" "no" >&6; } 34083 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 34084 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 34085 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 34086 is in your PATH or set the PKG_CONFIG environment variable to the full 34087 path to pkg-config. 34088 34089 Alternatively, you may set the environment variables XPBPROXY_CFLAGS 34090 and XPBPROXY_LIBS to avoid the need to call pkg-config. 34091 See the pkg-config man page for more details. 34092 34093 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 34094 See 'config.log' for more details" "$LINENO" 5; } 34095 else 34096 XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS 34097 XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS 34098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34099 printf "%s\n" "yes" >&6; } 34100 34101 fi 34102 34103 if test "x$XQUARTZ_SPARKLE" = xyes ; then 34104 34105 printf "%s\n" "#define XQUARTZ_SPARKLE 1" >>confdefs.h 34106 34107 fi 34108 34109 if test "x$STANDALONE_XPBPROXY" = xyes ; then 34110 34111 printf "%s\n" "#define STANDALONE_XPBPROXY 1" >>confdefs.h 34112 34113 fi 34114 fi 34115 34116 if test "x$XQUARTZ" = xyes -o "x$XWIN" = xyes ; then 34117 PSEUDORAMIX_TRUE= 34118 PSEUDORAMIX_FALSE='#' 34119 else 34120 PSEUDORAMIX_TRUE='#' 34121 PSEUDORAMIX_FALSE= 34122 fi 34123 34124 34125 # Support for objc in autotools is minimal and not documented. 34126 OBJC='$(CC)' 34127 OBJCLD='$(CCLD)' 34128 OBJCLINK='$(LINK)' 34129 OBJCFLAGS='$(CFLAGS)' 34130 34131 34132 34133 34134 # internal, undocumented automake func follows :( 34135 34136 depcc="$OBJC" am_compiler_list='gcc3 gcc' 34137 34138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 34139 printf %s "checking dependency style of $depcc... " >&6; } 34140 if test ${am_cv_OBJC_dependencies_compiler_type+y} 34141 then : 34142 printf %s "(cached) " >&6 34143 else case e in #( 34144 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 34145 # We make a subdir and do the tests there. Otherwise we can end up 34146 # making bogus files that we don't know about and never remove. For 34147 # instance it was reported that on HP-UX the gcc test will end up 34148 # making a dummy file named 'D' -- because '-MD' means "put the output 34149 # in D". 34150 rm -rf conftest.dir 34151 mkdir conftest.dir 34152 # Copy depcomp to subdir because otherwise we won't find it if we're 34153 # using a relative directory. 34154 cp "$am_depcomp" conftest.dir 34155 cd conftest.dir 34156 # We will build objects and dependencies in a subdirectory because 34157 # it helps to detect inapplicable dependency modes. For instance 34158 # both Tru64's cc and ICC support -MD to output dependencies as a 34159 # side effect of compilation, but ICC will put the dependencies in 34160 # the current directory while Tru64 will put them in the object 34161 # directory. 34162 mkdir sub 34163 34164 am_cv_OBJC_dependencies_compiler_type=none 34165 if test "$am_compiler_list" = ""; then 34166 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 34167 fi 34168 am__universal=false 34169 34170 34171 for depmode in $am_compiler_list; do 34172 # Setup a source with many dependencies, because some compilers 34173 # like to wrap large dependency lists on column 80 (with \), and 34174 # we should not choose a depcomp mode which is confused by this. 34175 # 34176 # We need to recreate these files for each test, as the compiler may 34177 # overwrite some of them when testing with obscure command lines. 34178 # This happens at least with the AIX C compiler. 34179 : > sub/conftest.c 34180 for i in 1 2 3 4 5 6; do 34181 echo '#include "conftst'$i'.h"' >> sub/conftest.c 34182 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 34183 # Solaris 10 /bin/sh. 34184 echo '/* dummy */' > sub/conftst$i.h 34185 done 34186 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 34187 34188 # We check with '-c' and '-o' for the sake of the "dashmstdout" 34189 # mode. It turns out that the SunPro C++ compiler does not properly 34190 # handle '-M -o', and we need to detect this. Also, some Intel 34191 # versions had trouble with output in subdirs. 34192 am__obj=sub/conftest.${OBJEXT-o} 34193 am__minus_obj="-o $am__obj" 34194 case $depmode in 34195 gcc) 34196 # This depmode causes a compiler race in universal mode. 34197 test "$am__universal" = false || continue 34198 ;; 34199 nosideeffect) 34200 # After this tag, mechanisms are not by side-effect, so they'll 34201 # only be used when explicitly requested. 34202 if test "x$enable_dependency_tracking" = xyes; then 34203 continue 34204 else 34205 break 34206 fi 34207 ;; 34208 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 34209 # This compiler won't grok '-c -o', but also, the minuso test has 34210 # not run yet. These depmodes are late enough in the game, and 34211 # so weak that their functioning should not be impacted. 34212 am__obj=conftest.${OBJEXT-o} 34213 am__minus_obj= 34214 ;; 34215 none) break ;; 34216 esac 34217 if depmode=$depmode \ 34218 source=sub/conftest.c object=$am__obj \ 34219 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 34220 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 34221 >/dev/null 2>conftest.err && 34222 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 34223 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 34224 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 34225 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 34226 # icc doesn't choke on unknown options, it will just issue warnings 34227 # or remarks (even with -Werror). So we grep stderr for any message 34228 # that says an option was ignored or not supported. 34229 # When given -MP, icc 7.0 and 7.1 complain thus: 34230 # icc: Command line warning: ignoring option '-M'; no argument required 34231 # The diagnosis changed in icc 8.0: 34232 # icc: Command line remark: option '-MP' not supported 34233 if (grep 'ignoring option' conftest.err || 34234 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 34235 am_cv_OBJC_dependencies_compiler_type=$depmode 34236 break 34237 fi 34238 fi 34239 done 34240 34241 cd .. 34242 rm -rf conftest.dir 34243 else 34244 am_cv_OBJC_dependencies_compiler_type=none 34245 fi 34246 ;; 34247 esac 34248 fi 34249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 34250 printf "%s\n" "$am_cv_OBJC_dependencies_compiler_type" >&6; } 34251 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type 34252 34253 if 34254 test "x$enable_dependency_tracking" != xno \ 34255 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then 34256 am__fastdepOBJC_TRUE= 34257 am__fastdepOBJC_FALSE='#' 34258 else 34259 am__fastdepOBJC_TRUE='#' 34260 am__fastdepOBJC_FALSE= 34261 fi 34262 34263 34264 if test "x$XQUARTZ" = xyes; then 34265 XQUARTZ_TRUE= 34266 XQUARTZ_FALSE='#' 34267 else 34268 XQUARTZ_TRUE='#' 34269 XQUARTZ_FALSE= 34270 fi 34271 34272 if test "x$XQUARTZ_SPARKLE" != "xno"; then 34273 XQUARTZ_SPARKLE_TRUE= 34274 XQUARTZ_SPARKLE_FALSE='#' 34275 else 34276 XQUARTZ_SPARKLE_TRUE='#' 34277 XQUARTZ_SPARKLE_FALSE= 34278 fi 34279 34280 if test "x$STANDALONE_XPBPROXY" = xyes; then 34281 STANDALONE_XPBPROXY_TRUE= 34282 STANDALONE_XPBPROXY_FALSE='#' 34283 else 34284 STANDALONE_XPBPROXY_TRUE='#' 34285 STANDALONE_XPBPROXY_FALSE= 34286 fi 34287 34288 34289 34290 XEPHYR_LIBS= 34291 XEPHYR_INCS= 34292 34293 if test x$KDRIVE = xyes; then 34294 KDRIVE_TRUE= 34295 KDRIVE_FALSE='#' 34296 else 34297 KDRIVE_TRUE='#' 34298 KDRIVE_FALSE= 34299 fi 34300 34301 34302 if test "$KDRIVE" = yes; then 34303 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" 34304 if test "x$XV" = xyes; then 34305 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xcb-xv" 34306 fi 34307 if test "x$DRI" = xyes && test "x$GLX" = xyes; then 34308 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBDRM xcb-glx xcb-xf86dri > 1.6" 34309 fi 34310 if test "x$GLAMOR" = xyes; then 34311 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS x11-xcb" 34312 fi 34313 34314 if test "x$XEPHYR" = xauto; then 34315 34316 pkg_failed=no 34317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $XEPHYR_REQUIRED_LIBS" >&5 34318 printf %s "checking for $XEPHYR_REQUIRED_LIBS... " >&6; } 34319 34320 if test -n "$XEPHYR_CFLAGS"; then 34321 pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS" 34322 elif test -n "$PKG_CONFIG"; then 34323 if test -n "$PKG_CONFIG" && \ 34324 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 34325 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 34326 ac_status=$? 34327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34328 test $ac_status = 0; }; then 34329 pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 34330 test "x$?" != "x0" && pkg_failed=yes 34331 else 34332 pkg_failed=yes 34333 fi 34334 else 34335 pkg_failed=untried 34336 fi 34337 if test -n "$XEPHYR_LIBS"; then 34338 pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS" 34339 elif test -n "$PKG_CONFIG"; then 34340 if test -n "$PKG_CONFIG" && \ 34341 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 34342 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 34343 ac_status=$? 34344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34345 test $ac_status = 0; }; then 34346 pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 34347 test "x$?" != "x0" && pkg_failed=yes 34348 else 34349 pkg_failed=yes 34350 fi 34351 else 34352 pkg_failed=untried 34353 fi 34354 34355 34356 34357 if test $pkg_failed = yes; then 34358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 34359 printf "%s\n" "no" >&6; } 34360 34361 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 34362 _pkg_short_errors_supported=yes 34363 else 34364 _pkg_short_errors_supported=no 34365 fi 34366 if test $_pkg_short_errors_supported = yes; then 34367 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 34368 else 34369 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 34370 fi 34371 # Put the nasty error message in config.log where it belongs 34372 echo "$XEPHYR_PKG_ERRORS" >&5 34373 34374 XEPHYR="no" 34375 elif test $pkg_failed = untried; then 34376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 34377 printf "%s\n" "no" >&6; } 34378 XEPHYR="no" 34379 else 34380 XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS 34381 XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS 34382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34383 printf "%s\n" "yes" >&6; } 34384 XEPHYR="yes" 34385 fi 34386 elif test "x$XEPHYR" = xyes ; then 34387 34388 pkg_failed=no 34389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $XEPHYR_REQUIRED_LIBS" >&5 34390 printf %s "checking for $XEPHYR_REQUIRED_LIBS... " >&6; } 34391 34392 if test -n "$XEPHYR_CFLAGS"; then 34393 pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS" 34394 elif test -n "$PKG_CONFIG"; then 34395 if test -n "$PKG_CONFIG" && \ 34396 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 34397 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 34398 ac_status=$? 34399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34400 test $ac_status = 0; }; then 34401 pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 34402 test "x$?" != "x0" && pkg_failed=yes 34403 else 34404 pkg_failed=yes 34405 fi 34406 else 34407 pkg_failed=untried 34408 fi 34409 if test -n "$XEPHYR_LIBS"; then 34410 pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS" 34411 elif test -n "$PKG_CONFIG"; then 34412 if test -n "$PKG_CONFIG" && \ 34413 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 34414 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 34415 ac_status=$? 34416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34417 test $ac_status = 0; }; then 34418 pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 34419 test "x$?" != "x0" && pkg_failed=yes 34420 else 34421 pkg_failed=yes 34422 fi 34423 else 34424 pkg_failed=untried 34425 fi 34426 34427 34428 34429 if test $pkg_failed = yes; then 34430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 34431 printf "%s\n" "no" >&6; } 34432 34433 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 34434 _pkg_short_errors_supported=yes 34435 else 34436 _pkg_short_errors_supported=no 34437 fi 34438 if test $_pkg_short_errors_supported = yes; then 34439 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 34440 else 34441 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 34442 fi 34443 # Put the nasty error message in config.log where it belongs 34444 echo "$XEPHYR_PKG_ERRORS" >&5 34445 34446 as_fn_error $? "Package requirements ($XEPHYR_REQUIRED_LIBS) were not met: 34447 34448 $XEPHYR_PKG_ERRORS 34449 34450 Consider adjusting the PKG_CONFIG_PATH environment variable if you 34451 installed software in a non-standard prefix. 34452 34453 Alternatively, you may set the environment variables XEPHYR_CFLAGS 34454 and XEPHYR_LIBS to avoid the need to call pkg-config. 34455 See the pkg-config man page for more details." "$LINENO" 5 34456 elif test $pkg_failed = untried; then 34457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 34458 printf "%s\n" "no" >&6; } 34459 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 34460 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 34461 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 34462 is in your PATH or set the PKG_CONFIG environment variable to the full 34463 path to pkg-config. 34464 34465 Alternatively, you may set the environment variables XEPHYR_CFLAGS 34466 and XEPHYR_LIBS to avoid the need to call pkg-config. 34467 See the pkg-config man page for more details. 34468 34469 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 34470 See 'config.log' for more details" "$LINENO" 5; } 34471 else 34472 XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS 34473 XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS 34474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34475 printf "%s\n" "yes" >&6; } 34476 34477 fi 34478 fi 34479 34480 # Xephyr needs nanosleep() which is in librt on Solaris 34481 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 34482 if test "x$ac_cv_func_nanosleep" = xyes 34483 then : 34484 34485 else case e in #( 34486 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 34487 printf %s "checking for nanosleep in -lrt... " >&6; } 34488 if test ${ac_cv_lib_rt_nanosleep+y} 34489 then : 34490 printf %s "(cached) " >&6 34491 else case e in #( 34492 e) ac_check_lib_save_LIBS=$LIBS 34493 LIBS="-lrt $LIBS" 34494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34495 /* end confdefs.h. */ 34496 34497 /* Override any GCC internal prototype to avoid an error. 34498 Use char because int might match the return type of a GCC 34499 builtin and then its argument prototype would still apply. 34500 The 'extern "C"' is for builds by C++ compilers; 34501 although this is not generally supported in C code supporting it here 34502 has little cost and some practical benefit (sr 110532). */ 34503 #ifdef __cplusplus 34504 extern "C" 34505 #endif 34506 char nanosleep (void); 34507 int 34508 main (void) 34509 { 34510 return nanosleep (); 34511 ; 34512 return 0; 34513 } 34514 _ACEOF 34515 if ac_fn_c_try_link "$LINENO" 34516 then : 34517 ac_cv_lib_rt_nanosleep=yes 34518 else case e in #( 34519 e) ac_cv_lib_rt_nanosleep=no ;; 34520 esac 34521 fi 34522 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 34523 conftest$ac_exeext conftest.$ac_ext 34524 LIBS=$ac_check_lib_save_LIBS ;; 34525 esac 34526 fi 34527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 34528 printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; } 34529 if test "x$ac_cv_lib_rt_nanosleep" = xyes 34530 then : 34531 XEPHYR_LIBS="$XEPHYR_LIBS -lrt" 34532 fi 34533 ;; 34534 esac 34535 fi 34536 34537 34538 # damage shadow extension glx (NOTYET) fb mi 34539 KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src' 34540 KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_SYNC_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC" 34541 KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux' 34542 KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC" 34543 34544 KDRIVE_CFLAGS="$XSERVER_CFLAGS" 34545 34546 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" 34547 KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la' 34548 KDRIVE_MAIN_LIB="$MAIN_LIB" 34549 KDRIVE_LOCAL_LIBS="$DIX_LIB $KDRIVE_LIB" 34550 KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS" 34551 KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB" 34552 KDRIVE_LIBS="$KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS" 34553 34554 34555 34556 fi 34557 34558 34559 34560 34561 34562 34563 34564 if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then 34565 XEPHYR_TRUE= 34566 XEPHYR_FALSE='#' 34567 else 34568 XEPHYR_TRUE='#' 34569 XEPHYR_FALSE= 34570 fi 34571 34572 34573 34574 34575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34576 /* end confdefs.h. */ 34577 34578 #include <features.h> 34579 #ifndef __GLIBC__ 34580 #error not glibc 34581 #endif 34582 34583 int 34584 main (void) 34585 { 34586 34587 ; 34588 return 0; 34589 } 34590 _ACEOF 34591 if ac_fn_c_try_compile "$LINENO" 34592 then : 34593 34594 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 34595 34596 fi 34597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34598 34599 34600 prefix_NONE= 34601 exec_prefix_NONE= 34602 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 34603 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 34604 eval ac_define_dir="\"$prefix\"" 34605 eval ac_define_dir="\"$ac_define_dir\"" 34606 PROJECTROOT="$ac_define_dir" 34607 34608 34609 printf "%s\n" "#define PROJECTROOT \"$ac_define_dir\"" >>confdefs.h 34610 34611 test "$prefix_NONE" && prefix=NONE 34612 test "$exec_prefix_NONE" && exec_prefix=NONE 34613 34614 34615 prefix_NONE= 34616 exec_prefix_NONE= 34617 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 34618 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 34619 eval ac_define_dir="\"$sysconfdir\"" 34620 eval ac_define_dir="\"$ac_define_dir\"" 34621 SYSCONFDIR="$ac_define_dir" 34622 34623 34624 printf "%s\n" "#define SYSCONFDIR \"$ac_define_dir\"" >>confdefs.h 34625 34626 test "$prefix_NONE" && prefix=NONE 34627 test "$exec_prefix_NONE" && exec_prefix=NONE 34628 34629 34630 34631 34632 DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS" 34633 34634 34635 34636 34637 34638 34639 34640 ac_config_commands="$ac_config_commands sdksyms" 34641 34642 34643 if test "x$CONFIG_HAL" = xno && test "x$CONFIG_UDEV" = xno; then 34644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 34645 *********************************************** 34646 Neither HAL nor udev backend will be enabled. 34647 Input device hotplugging will not be available! 34648 ***********************************************" >&5 34649 printf "%s\n" "$as_me: WARNING: 34650 *********************************************** 34651 Neither HAL nor udev backend will be enabled. 34652 Input device hotplugging will not be available! 34653 ***********************************************" >&2;} 34654 fi 34655 34656 ac_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" 34657 34658 cat >confcache <<\_ACEOF 34659 # This file is a shell script that caches the results of configure 34660 # tests run on this system so they can be shared between configure 34661 # scripts and configure runs, see configure's option --config-cache. 34662 # It is not useful on other systems. If it contains results you don't 34663 # want to keep, you may remove or edit it. 34664 # 34665 # config.status only pays attention to the cache file if you give it 34666 # the --recheck option to rerun configure. 34667 # 34668 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 34669 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 34670 # following values. 34671 34672 _ACEOF 34673 34674 # The following way of writing the cache mishandles newlines in values, 34675 # but we know of no workaround that is simple, portable, and efficient. 34676 # So, we kill variables containing newlines. 34677 # Ultrix sh set writes to stderr and can't be redirected directly, 34678 # and sets the high bit in the cache file unless we assign to the vars. 34679 ( 34680 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 34681 eval ac_val=\$$ac_var 34682 case $ac_val in #( 34683 *${as_nl}*) 34684 case $ac_var in #( 34685 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 34686 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 34687 esac 34688 case $ac_var in #( 34689 _ | IFS | as_nl) ;; #( 34690 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 34691 *) { eval $ac_var=; unset $ac_var;} ;; 34692 esac ;; 34693 esac 34694 done 34695 34696 (set) 2>&1 | 34697 case $as_nl`(ac_space=' '; set) 2>&1` in #( 34698 *${as_nl}ac_space=\ *) 34699 # 'set' does not quote correctly, so add quotes: double-quote 34700 # substitution turns \\\\ into \\, and sed turns \\ into \. 34701 sed -n \ 34702 "s/'/'\\\\''/g; 34703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 34704 ;; #( 34705 *) 34706 # 'set' quotes correctly as required by POSIX, so do not add quotes. 34707 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 34708 ;; 34709 esac | 34710 sort 34711 ) | 34712 sed ' 34713 /^ac_cv_env_/b end 34714 t clear 34715 :clear 34716 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 34717 t end 34718 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 34719 :end' >>confcache 34720 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 34721 if test -w "$cache_file"; then 34722 if test "x$cache_file" != "x/dev/null"; then 34723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 34724 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 34725 if test ! -f "$cache_file" || test -h "$cache_file"; then 34726 cat confcache >"$cache_file" 34727 else 34728 case $cache_file in #( 34729 */* | ?:*) 34730 mv -f confcache "$cache_file"$$ && 34731 mv -f "$cache_file"$$ "$cache_file" ;; #( 34732 *) 34733 mv -f confcache "$cache_file" ;; 34734 esac 34735 fi 34736 fi 34737 else 34738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 34739 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 34740 fi 34741 fi 34742 rm -f confcache 34743 34744 test "x$prefix" = xNONE && prefix=$ac_default_prefix 34745 # Let make expand exec_prefix. 34746 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 34747 34748 DEFS=-DHAVE_CONFIG_H 34749 34750 ac_libobjs= 34751 ac_ltlibobjs= 34752 U= 34753 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 34754 # 1. Remove the extension, and $U if already installed. 34755 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 34756 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 34757 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 34758 # will be set to the directory where LIBOBJS objects are built. 34759 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 34760 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 34761 done 34762 LIBOBJS=$ac_libobjs 34763 34764 LTLIBOBJS=$ac_ltlibobjs 34765 34766 34767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 34768 printf %s "checking that generated files are newer than configure... " >&6; } 34769 if test -n "$am_sleep_pid"; then 34770 # Hide warnings about reused PIDs. 34771 wait $am_sleep_pid 2>/dev/null 34772 fi 34773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 34774 printf "%s\n" "done" >&6; } 34775 case $enable_silent_rules in # ((( 34776 yes) AM_DEFAULT_VERBOSITY=0;; 34777 no) AM_DEFAULT_VERBOSITY=1;; 34778 esac 34779 if test $am_cv_make_support_nested_variables = yes; then 34780 AM_V='$(V)' 34781 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 34782 else 34783 AM_V=$AM_DEFAULT_VERBOSITY 34784 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 34785 fi 34786 34787 if test -n "$EXEEXT"; then 34788 am__EXEEXT_TRUE= 34789 am__EXEEXT_FALSE='#' 34790 else 34791 am__EXEEXT_TRUE='#' 34792 am__EXEEXT_FALSE= 34793 fi 34794 34795 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 34796 as_fn_error $? "conditional \"AMDEP\" was never defined. 34797 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34798 fi 34799 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 34800 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 34801 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34802 fi 34803 if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then 34804 as_fn_error $? "conditional \"HAVE_DOT\" was never defined. 34805 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34806 fi 34807 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 34808 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 34809 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34810 fi 34811 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 34812 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 34813 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34814 fi 34815 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 34816 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 34817 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34818 fi 34819 if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 34820 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 34821 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34822 fi 34823 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 34824 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 34825 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34826 fi 34827 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 34828 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 34829 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34830 fi 34831 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 34832 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 34833 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34834 fi 34835 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 34836 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 34837 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34838 fi 34839 if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then 34840 as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined. 34841 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34842 fi 34843 if test -z "${HAVE_LD_WRAP_TRUE}" && test -z "${HAVE_LD_WRAP_FALSE}"; then 34844 as_fn_error $? "conditional \"HAVE_LD_WRAP\" was never defined. 34845 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34846 fi 34847 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 34848 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 34849 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34850 fi 34851 # Check whether --enable-year2038 was given. 34852 if test ${enable_year2038+y} 34853 then : 34854 enableval=$enable_year2038; 34855 fi 34856 34857 if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then 34858 as_fn_error $? "conditional \"XSERVER_DTRACE\" was never defined. 34859 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34860 fi 34861 if test -z "${SPECIAL_DTRACE_OBJECTS_TRUE}" && test -z "${SPECIAL_DTRACE_OBJECTS_FALSE}"; then 34862 as_fn_error $? "conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined. 34863 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34864 fi 34865 34866 if test -z "${POLL_TRUE}" && test -z "${POLL_FALSE}"; then 34867 as_fn_error $? "conditional \"POLL\" was never defined. 34868 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34869 fi 34870 if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then 34871 as_fn_error $? "conditional \"AGP\" was never defined. 34872 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34873 fi 34874 if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then 34875 as_fn_error $? "conditional \"FBDEVHW\" was never defined. 34876 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34877 fi 34878 if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then 34879 as_fn_error $? "conditional \"FREEBSD_KLDLOAD\" was never defined. 34880 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34881 fi 34882 if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then 34883 as_fn_error $? "conditional \"ALPHA_VIDEO\" was never defined. 34884 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34885 fi 34886 if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then 34887 as_fn_error $? "conditional \"ARM_VIDEO\" was never defined. 34888 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34889 fi 34890 if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then 34891 as_fn_error $? "conditional \"I386_VIDEO\" was never defined. 34892 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34893 fi 34894 if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then 34895 as_fn_error $? "conditional \"PPC_VIDEO\" was never defined. 34896 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34897 fi 34898 if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then 34899 as_fn_error $? "conditional \"SPARC64_VIDEO\" was never defined. 34900 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34901 fi 34902 if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then 34903 as_fn_error $? "conditional \"INSTALL_SETUID\" was never defined. 34904 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34905 fi 34906 if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then 34907 as_fn_error $? "conditional \"SECURE_RPC\" was never defined. 34908 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34909 fi 34910 if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then 34911 as_fn_error $? "conditional \"INT10_VM86\" was never defined. 34912 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34913 fi 34914 if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then 34915 as_fn_error $? "conditional \"INT10_X86EMU\" was never defined. 34916 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34917 fi 34918 if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then 34919 as_fn_error $? "conditional \"INT10_STUB\" was never defined. 34920 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34921 fi 34922 if test -z "${HAVE_SYSTEMD_DAEMON_TRUE}" && test -z "${HAVE_SYSTEMD_DAEMON_FALSE}"; then 34923 as_fn_error $? "conditional \"HAVE_SYSTEMD_DAEMON\" was never defined. 34924 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34925 fi 34926 if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; then 34927 as_fn_error $? "conditional \"CONFIG_UDEV\" was never defined. 34928 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34929 fi 34930 if test -z "${CONFIG_UDEV_KMS_TRUE}" && test -z "${CONFIG_UDEV_KMS_FALSE}"; then 34931 as_fn_error $? "conditional \"CONFIG_UDEV_KMS\" was never defined. 34932 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34933 fi 34934 if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then 34935 as_fn_error $? "conditional \"HAVE_DBUS\" was never defined. 34936 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34937 fi 34938 if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then 34939 as_fn_error $? "conditional \"CONFIG_HAL\" was never defined. 34940 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34941 fi 34942 if test -z "${SYSTEMD_LOGIND_TRUE}" && test -z "${SYSTEMD_LOGIND_FALSE}"; then 34943 as_fn_error $? "conditional \"SYSTEMD_LOGIND\" was never defined. 34944 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34945 fi 34946 if test -z "${SUID_WRAPPER_TRUE}" && test -z "${SUID_WRAPPER_FALSE}"; then 34947 as_fn_error $? "conditional \"SUID_WRAPPER\" was never defined. 34948 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34949 fi 34950 if test -z "${NEED_DBUS_TRUE}" && test -z "${NEED_DBUS_FALSE}"; then 34951 as_fn_error $? "conditional \"NEED_DBUS\" was never defined. 34952 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34953 fi 34954 if test -z "${CONFIG_WSCONS_TRUE}" && test -z "${CONFIG_WSCONS_FALSE}"; then 34955 as_fn_error $? "conditional \"CONFIG_WSCONS\" was never defined. 34956 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34957 fi 34958 if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then 34959 as_fn_error $? "conditional \"XV\" was never defined. 34960 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34961 fi 34962 if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then 34963 as_fn_error $? "conditional \"XVMC\" was never defined. 34964 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34965 fi 34966 if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then 34967 as_fn_error $? "conditional \"COMPOSITE\" was never defined. 34968 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34969 fi 34970 if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then 34971 as_fn_error $? "conditional \"MITSHM\" was never defined. 34972 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34973 fi 34974 if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then 34975 as_fn_error $? "conditional \"RECORD\" was never defined. 34976 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34977 fi 34978 if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then 34979 as_fn_error $? "conditional \"SCREENSAVER\" was never defined. 34980 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34981 fi 34982 if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then 34983 as_fn_error $? "conditional \"RES\" was never defined. 34984 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34985 fi 34986 if test -z "${CLIENTIDS_TRUE}" && test -z "${CLIENTIDS_FALSE}"; then 34987 as_fn_error $? "conditional \"CLIENTIDS\" was never defined. 34988 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34989 fi 34990 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 34991 as_fn_error $? "conditional \"DRI\" was never defined. 34992 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34993 fi 34994 if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then 34995 as_fn_error $? "conditional \"DRI2\" was never defined. 34996 Usually this means the macro was only invoked conditionally." "$LINENO" 5 34997 fi 34998 if test -z "${BUSFAULT_TRUE}" && test -z "${BUSFAULT_FALSE}"; then 34999 as_fn_error $? "conditional \"BUSFAULT\" was never defined. 35000 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35001 fi 35002 if test -z "${XSHMFENCE_TRUE}" && test -z "${XSHMFENCE_FALSE}"; then 35003 as_fn_error $? "conditional \"XSHMFENCE\" was never defined. 35004 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35005 fi 35006 if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then 35007 as_fn_error $? "conditional \"DRI3\" was never defined. 35008 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35009 fi 35010 if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then 35011 as_fn_error $? "conditional \"GLX\" was never defined. 35012 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35013 fi 35014 if test -z "${HASHTABLE_TRUE}" && test -z "${HASHTABLE_FALSE}"; then 35015 as_fn_error $? "conditional \"HASHTABLE\" was never defined. 35016 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35017 fi 35018 if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then 35019 as_fn_error $? "conditional \"PRESENT\" was never defined. 35020 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35021 fi 35022 if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then 35023 as_fn_error $? "conditional \"XINERAMA\" was never defined. 35024 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35025 fi 35026 if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then 35027 as_fn_error $? "conditional \"XACE\" was never defined. 35028 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35029 fi 35030 if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then 35031 as_fn_error $? "conditional \"XSELINUX\" was never defined. 35032 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35033 fi 35034 if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then 35035 as_fn_error $? "conditional \"XCSECURITY\" was never defined. 35036 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35037 fi 35038 if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then 35039 as_fn_error $? "conditional \"DBE\" was never defined. 35040 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35041 fi 35042 if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then 35043 as_fn_error $? "conditional \"XF86BIGFONT\" was never defined. 35044 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35045 fi 35046 if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then 35047 as_fn_error $? "conditional \"DPMSExtension\" was never defined. 35048 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35049 fi 35050 if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then 35051 as_fn_error $? "conditional \"XF86UTILS\" was never defined. 35052 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35053 fi 35054 if test -z "${VGAHW_TRUE}" && test -z "${VGAHW_FALSE}"; then 35055 as_fn_error $? "conditional \"VGAHW\" was never defined. 35056 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35057 fi 35058 if test -z "${INT10MODULE_TRUE}" && test -z "${INT10MODULE_FALSE}"; then 35059 as_fn_error $? "conditional \"INT10MODULE\" was never defined. 35060 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35061 fi 35062 if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then 35063 as_fn_error $? "conditional \"XDMCP\" was never defined. 35064 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35065 fi 35066 if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then 35067 as_fn_error $? "conditional \"XDMAUTH\" was never defined. 35068 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35069 fi 35070 if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then 35071 as_fn_error $? "conditional \"XF86VIDMODE\" was never defined. 35072 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35073 fi 35074 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then 35075 as_fn_error $? "conditional \"DEBUG\" was never defined. 35076 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35077 fi 35078 if test -z "${HAVE_LIBUNWIND_TRUE}" && test -z "${HAVE_LIBUNWIND_FALSE}"; then 35079 as_fn_error $? "conditional \"HAVE_LIBUNWIND\" was never defined. 35080 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35081 fi 35082 if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then 35083 as_fn_error $? "conditional \"CYGWIN\" was never defined. 35084 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35085 fi 35086 if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then 35087 as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined. 35088 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35089 fi 35090 if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then 35091 as_fn_error $? "conditional \"XVFB\" was never defined. 35092 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35093 fi 35094 if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then 35095 as_fn_error $? "conditional \"XNEST\" was never defined. 35096 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35097 fi 35098 if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then 35099 as_fn_error $? "conditional \"XORG\" was never defined. 35100 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35101 fi 35102 if test -z "${XORG_BUS_PCI_TRUE}" && test -z "${XORG_BUS_PCI_FALSE}"; then 35103 as_fn_error $? "conditional \"XORG_BUS_PCI\" was never defined. 35104 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35105 fi 35106 if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then 35107 as_fn_error $? "conditional \"XORG_BUS_BSDPCI\" was never defined. 35108 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35109 fi 35110 if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then 35111 as_fn_error $? "conditional \"XORG_BUS_SPARC\" was never defined. 35112 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35113 fi 35114 if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then 35115 as_fn_error $? "conditional \"LNXACPI\" was never defined. 35116 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35117 fi 35118 if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then 35119 as_fn_error $? "conditional \"LNXAPM\" was never defined. 35120 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35121 fi 35122 if test -z "${SOLARIS_VT_TRUE}" && test -z "${SOLARIS_VT_FALSE}"; then 35123 as_fn_error $? "conditional \"SOLARIS_VT\" was never defined. 35124 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35125 fi 35126 if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then 35127 as_fn_error $? "conditional \"DGA\" was never defined. 35128 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35129 fi 35130 if test -z "${XORG_BUS_PLATFORM_TRUE}" && test -z "${XORG_BUS_PLATFORM_FALSE}"; then 35131 as_fn_error $? "conditional \"XORG_BUS_PLATFORM\" was never defined. 35132 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35133 fi 35134 if test -z "${XORG_DRIVER_MODESETTING_TRUE}" && test -z "${XORG_DRIVER_MODESETTING_FALSE}"; then 35135 as_fn_error $? "conditional \"XORG_DRIVER_MODESETTING\" was never defined. 35136 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35137 fi 35138 if test -z "${XORG_DRIVER_INPUT_INPUTTEST_TRUE}" && test -z "${XORG_DRIVER_INPUT_INPUTTEST_FALSE}"; then 35139 as_fn_error $? "conditional \"XORG_DRIVER_INPUT_INPUTTEST\" was never defined. 35140 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35141 fi 35142 if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then 35143 as_fn_error $? "conditional \"GLAMOR\" was never defined. 35144 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35145 fi 35146 if test -z "${GLAMOR_EGL_TRUE}" && test -z "${GLAMOR_EGL_FALSE}"; then 35147 as_fn_error $? "conditional \"GLAMOR_EGL\" was never defined. 35148 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35149 fi 35150 if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then 35151 as_fn_error $? "conditional \"XWIN\" was never defined. 35152 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35153 fi 35154 if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then 35155 as_fn_error $? "conditional \"XWIN_GLX_WINDOWS\" was never defined. 35156 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35157 fi 35158 if test -z "${XWIN_WINDOWS_DRI_TRUE}" && test -z "${XWIN_WINDOWS_DRI_FALSE}"; then 35159 as_fn_error $? "conditional \"XWIN_WINDOWS_DRI\" was never defined. 35160 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35161 fi 35162 if test -z "${PSEUDORAMIX_TRUE}" && test -z "${PSEUDORAMIX_FALSE}"; then 35163 as_fn_error $? "conditional \"PSEUDORAMIX\" was never defined. 35164 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35165 fi 35166 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then 35167 as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. 35168 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35169 fi 35170 if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then 35171 as_fn_error $? "conditional \"XQUARTZ\" was never defined. 35172 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35173 fi 35174 if test -z "${XQUARTZ_SPARKLE_TRUE}" && test -z "${XQUARTZ_SPARKLE_FALSE}"; then 35175 as_fn_error $? "conditional \"XQUARTZ_SPARKLE\" was never defined. 35176 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35177 fi 35178 if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then 35179 as_fn_error $? "conditional \"STANDALONE_XPBPROXY\" was never defined. 35180 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35181 fi 35182 if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then 35183 as_fn_error $? "conditional \"KDRIVE\" was never defined. 35184 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35185 fi 35186 if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then 35187 as_fn_error $? "conditional \"XEPHYR\" was never defined. 35188 Usually this means the macro was only invoked conditionally." "$LINENO" 5 35189 fi 35190 35191 : "${CONFIG_STATUS=./config.status}" 35192 ac_write_fail=0 35193 ac_clean_files_save=$ac_clean_files 35194 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 35195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 35196 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 35197 as_write_fail=0 35198 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 35199 #! $SHELL 35200 # Generated by $as_me. 35201 # Run this file to recreate the current configuration. 35202 # Compiler output produced by configure, useful for debugging 35203 # configure, is in config.log if it exists. 35204 35205 debug=false 35206 ac_cs_recheck=false 35207 ac_cs_silent=false 35208 35209 SHELL=\${CONFIG_SHELL-$SHELL} 35210 export SHELL 35211 _ASEOF 35212 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 35213 ## -------------------- ## 35214 ## M4sh Initialization. ## 35215 ## -------------------- ## 35216 35217 # Be more Bourne compatible 35218 DUALCASE=1; export DUALCASE # for MKS sh 35219 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 35220 then : 35221 emulate sh 35222 NULLCMD=: 35223 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 35224 # is contrary to our usage. Disable this feature. 35225 alias -g '${1+"$@"}'='"$@"' 35226 setopt NO_GLOB_SUBST 35227 else case e in #( 35228 e) case `(set -o) 2>/dev/null` in #( 35229 *posix*) : 35230 set -o posix ;; #( 35231 *) : 35232 ;; 35233 esac ;; 35234 esac 35235 fi 35236 35237 35238 35239 # Reset variables that may have inherited troublesome values from 35240 # the environment. 35241 35242 # IFS needs to be set, to space, tab, and newline, in precisely that order. 35243 # (If _AS_PATH_WALK were called with IFS unset, it would have the 35244 # side effect of setting IFS to empty, thus disabling word splitting.) 35245 # Quoting is to prevent editors from complaining about space-tab. 35246 as_nl=' 35247 ' 35248 export as_nl 35249 IFS=" "" $as_nl" 35250 35251 PS1='$ ' 35252 PS2='> ' 35253 PS4='+ ' 35254 35255 # Ensure predictable behavior from utilities with locale-dependent output. 35256 LC_ALL=C 35257 export LC_ALL 35258 LANGUAGE=C 35259 export LANGUAGE 35260 35261 # We cannot yet rely on "unset" to work, but we need these variables 35262 # to be unset--not just set to an empty or harmless value--now, to 35263 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 35264 # also avoids known problems related to "unset" and subshell syntax 35265 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 35266 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 35267 do eval test \${$as_var+y} \ 35268 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 35269 done 35270 35271 # Ensure that fds 0, 1, and 2 are open. 35272 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 35273 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 35274 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 35275 35276 # The user is always right. 35277 if ${PATH_SEPARATOR+false} :; then 35278 PATH_SEPARATOR=: 35279 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 35280 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 35281 PATH_SEPARATOR=';' 35282 } 35283 fi 35284 35285 35286 # Find who we are. Look in the path if we contain no directory separator. 35287 as_myself= 35288 case $0 in #(( 35289 *[\\/]* ) as_myself=$0 ;; 35290 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35291 for as_dir in $PATH 35292 do 35293 IFS=$as_save_IFS 35294 case $as_dir in #((( 35295 '') as_dir=./ ;; 35296 */) ;; 35297 *) as_dir=$as_dir/ ;; 35298 esac 35299 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 35300 done 35301 IFS=$as_save_IFS 35302 35303 ;; 35304 esac 35305 # We did not find ourselves, most probably we were run as 'sh COMMAND' 35306 # in which case we are not to be found in the path. 35307 if test "x$as_myself" = x; then 35308 as_myself=$0 35309 fi 35310 if test ! -f "$as_myself"; then 35311 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 35312 exit 1 35313 fi 35314 35315 35316 35317 # as_fn_error STATUS ERROR [LINENO LOG_FD] 35318 # ---------------------------------------- 35319 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 35320 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 35321 # script with STATUS, using 1 if that was 0. 35322 as_fn_error () 35323 { 35324 as_status=$1; test $as_status -eq 0 && as_status=1 35325 if test "$4"; then 35326 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 35327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 35328 fi 35329 printf "%s\n" "$as_me: error: $2" >&2 35330 as_fn_exit $as_status 35331 } # as_fn_error 35332 35333 35334 # as_fn_set_status STATUS 35335 # ----------------------- 35336 # Set $? to STATUS, without forking. 35337 as_fn_set_status () 35338 { 35339 return $1 35340 } # as_fn_set_status 35341 35342 # as_fn_exit STATUS 35343 # ----------------- 35344 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 35345 as_fn_exit () 35346 { 35347 set +e 35348 as_fn_set_status $1 35349 exit $1 35350 } # as_fn_exit 35351 35352 # as_fn_unset VAR 35353 # --------------- 35354 # Portably unset VAR. 35355 as_fn_unset () 35356 { 35357 { eval $1=; unset $1;} 35358 } 35359 as_unset=as_fn_unset 35360 35361 # as_fn_append VAR VALUE 35362 # ---------------------- 35363 # Append the text in VALUE to the end of the definition contained in VAR. Take 35364 # advantage of any shell optimizations that allow amortized linear growth over 35365 # repeated appends, instead of the typical quadratic growth present in naive 35366 # implementations. 35367 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 35368 then : 35369 eval 'as_fn_append () 35370 { 35371 eval $1+=\$2 35372 }' 35373 else case e in #( 35374 e) as_fn_append () 35375 { 35376 eval $1=\$$1\$2 35377 } ;; 35378 esac 35379 fi # as_fn_append 35380 35381 # as_fn_arith ARG... 35382 # ------------------ 35383 # Perform arithmetic evaluation on the ARGs, and store the result in the 35384 # global $as_val. Take advantage of shells that can avoid forks. The arguments 35385 # must be portable across $(()) and expr. 35386 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 35387 then : 35388 eval 'as_fn_arith () 35389 { 35390 as_val=$(( $* )) 35391 }' 35392 else case e in #( 35393 e) as_fn_arith () 35394 { 35395 as_val=`expr "$@" || test $? -eq 1` 35396 } ;; 35397 esac 35398 fi # as_fn_arith 35399 35400 35401 if expr a : '\(a\)' >/dev/null 2>&1 && 35402 test "X`expr 00001 : '.*\(...\)'`" = X001; then 35403 as_expr=expr 35404 else 35405 as_expr=false 35406 fi 35407 35408 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 35409 as_basename=basename 35410 else 35411 as_basename=false 35412 fi 35413 35414 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 35415 as_dirname=dirname 35416 else 35417 as_dirname=false 35418 fi 35419 35420 as_me=`$as_basename -- "$0" || 35421 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 35422 X"$0" : 'X\(//\)$' \| \ 35423 X"$0" : 'X\(/\)' \| . 2>/dev/null || 35424 printf "%s\n" X/"$0" | 35425 sed '/^.*\/\([^/][^/]*\)\/*$/{ 35426 s//\1/ 35427 q 35428 } 35429 /^X\/\(\/\/\)$/{ 35430 s//\1/ 35431 q 35432 } 35433 /^X\/\(\/\).*/{ 35434 s//\1/ 35435 q 35436 } 35437 s/.*/./; q'` 35438 35439 # Avoid depending upon Character Ranges. 35440 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35441 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 35442 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 35443 as_cr_digits='0123456789' 35444 as_cr_alnum=$as_cr_Letters$as_cr_digits 35445 35446 35447 # Determine whether it's possible to make 'echo' print without a newline. 35448 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 35449 # for compatibility with existing Makefiles. 35450 ECHO_C= ECHO_N= ECHO_T= 35451 case `echo -n x` in #((((( 35452 -n*) 35453 case `echo 'xy\c'` in 35454 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 35455 xy) ECHO_C='\c';; 35456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 35457 ECHO_T=' ';; 35458 esac;; 35459 *) 35460 ECHO_N='-n';; 35461 esac 35462 35463 # For backward compatibility with old third-party macros, we provide 35464 # the shell variables $as_echo and $as_echo_n. New code should use 35465 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 35466 as_echo='printf %s\n' 35467 as_echo_n='printf %s' 35468 35469 rm -f conf$$ conf$$.exe conf$$.file 35470 if test -d conf$$.dir; then 35471 rm -f conf$$.dir/conf$$.file 35472 else 35473 rm -f conf$$.dir 35474 mkdir conf$$.dir 2>/dev/null 35475 fi 35476 if (echo >conf$$.file) 2>/dev/null; then 35477 if ln -s conf$$.file conf$$ 2>/dev/null; then 35478 as_ln_s='ln -s' 35479 # ... but there are two gotchas: 35480 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 35481 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 35482 # In both cases, we have to default to 'cp -pR'. 35483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 35484 as_ln_s='cp -pR' 35485 elif ln conf$$.file conf$$ 2>/dev/null; then 35486 as_ln_s=ln 35487 else 35488 as_ln_s='cp -pR' 35489 fi 35490 else 35491 as_ln_s='cp -pR' 35492 fi 35493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 35494 rmdir conf$$.dir 2>/dev/null 35495 35496 35497 # as_fn_mkdir_p 35498 # ------------- 35499 # Create "$as_dir" as a directory, including parents if necessary. 35500 as_fn_mkdir_p () 35501 { 35502 35503 case $as_dir in #( 35504 -*) as_dir=./$as_dir;; 35505 esac 35506 test -d "$as_dir" || eval $as_mkdir_p || { 35507 as_dirs= 35508 while :; do 35509 case $as_dir in #( 35510 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 35511 *) as_qdir=$as_dir;; 35512 esac 35513 as_dirs="'$as_qdir' $as_dirs" 35514 as_dir=`$as_dirname -- "$as_dir" || 35515 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35516 X"$as_dir" : 'X\(//\)[^/]' \| \ 35517 X"$as_dir" : 'X\(//\)$' \| \ 35518 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 35519 printf "%s\n" X"$as_dir" | 35520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35521 s//\1/ 35522 q 35523 } 35524 /^X\(\/\/\)[^/].*/{ 35525 s//\1/ 35526 q 35527 } 35528 /^X\(\/\/\)$/{ 35529 s//\1/ 35530 q 35531 } 35532 /^X\(\/\).*/{ 35533 s//\1/ 35534 q 35535 } 35536 s/.*/./; q'` 35537 test -d "$as_dir" && break 35538 done 35539 test -z "$as_dirs" || eval "mkdir $as_dirs" 35540 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 35541 35542 35543 } # as_fn_mkdir_p 35544 if mkdir -p . 2>/dev/null; then 35545 as_mkdir_p='mkdir -p "$as_dir"' 35546 else 35547 test -d ./-p && rmdir ./-p 35548 as_mkdir_p=false 35549 fi 35550 35551 35552 # as_fn_executable_p FILE 35553 # ----------------------- 35554 # Test if FILE is an executable regular file. 35555 as_fn_executable_p () 35556 { 35557 test -f "$1" && test -x "$1" 35558 } # as_fn_executable_p 35559 as_test_x='test -x' 35560 as_executable_p=as_fn_executable_p 35561 35562 # Sed expression to map a string onto a valid CPP name. 35563 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 35564 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 35565 35566 # Sed expression to map a string onto a valid variable name. 35567 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 35568 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 35569 35570 35571 exec 6>&1 35572 ## ----------------------------------- ## 35573 ## Main body of $CONFIG_STATUS script. ## 35574 ## ----------------------------------- ## 35575 _ASEOF 35576 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 35577 35578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35579 # Save the log message, to keep $0 and so on meaningful, and to 35580 # report actual input values of CONFIG_FILES etc. instead of their 35581 # values after options handling. 35582 ac_log=" 35583 This file was extended by xorg-server $as_me 21.1.24, which was 35584 generated by GNU Autoconf 2.72. Invocation command line was 35585 35586 CONFIG_FILES = $CONFIG_FILES 35587 CONFIG_HEADERS = $CONFIG_HEADERS 35588 CONFIG_LINKS = $CONFIG_LINKS 35589 CONFIG_COMMANDS = $CONFIG_COMMANDS 35590 $ $0 $@ 35591 35592 on `(hostname || uname -n) 2>/dev/null | sed 1q` 35593 " 35594 35595 _ACEOF 35596 35597 case $ac_config_files in *" 35598 "*) set x $ac_config_files; shift; ac_config_files=$*;; 35599 esac 35600 35601 case $ac_config_headers in *" 35602 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 35603 esac 35604 35605 35606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35607 # Files that config.status was made for. 35608 config_files="$ac_config_files" 35609 config_headers="$ac_config_headers" 35610 config_commands="$ac_config_commands" 35611 35612 _ACEOF 35613 35614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35615 ac_cs_usage="\ 35616 '$as_me' instantiates files and other configuration actions 35617 from templates according to the current configuration. Unless the files 35618 and actions are specified as TAGs, all are instantiated by default. 35619 35620 Usage: $0 [OPTION]... [TAG]... 35621 35622 -h, --help print this help, then exit 35623 -V, --version print version number and configuration settings, then exit 35624 --config print configuration, then exit 35625 -q, --quiet, --silent 35626 do not print progress messages 35627 -d, --debug don't remove temporary files 35628 --recheck update $as_me by reconfiguring in the same conditions 35629 --file=FILE[:TEMPLATE] 35630 instantiate the configuration file FILE 35631 --header=FILE[:TEMPLATE] 35632 instantiate the configuration header FILE 35633 35634 Configuration files: 35635 $config_files 35636 35637 Configuration headers: 35638 $config_headers 35639 35640 Configuration commands: 35641 $config_commands 35642 35643 Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>." 35644 35645 _ACEOF 35646 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 35647 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 35648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35649 ac_cs_config='$ac_cs_config_escaped' 35650 ac_cs_version="\\ 35651 xorg-server config.status 21.1.24 35652 configured by $0, generated by GNU Autoconf 2.72, 35653 with options \\"\$ac_cs_config\\" 35654 35655 Copyright (C) 2023 Free Software Foundation, Inc. 35656 This config.status script is free software; the Free Software Foundation 35657 gives unlimited permission to copy, distribute and modify it." 35658 35659 ac_pwd='$ac_pwd' 35660 srcdir='$srcdir' 35661 INSTALL='$INSTALL' 35662 MKDIR_P='$MKDIR_P' 35663 AWK='$AWK' 35664 test -n "\$AWK" || AWK=awk 35665 _ACEOF 35666 35667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35668 # The default lists apply if the user does not specify any file. 35669 ac_need_defaults=: 35670 while test $# != 0 35671 do 35672 case $1 in 35673 --*=?*) 35674 ac_option=`expr "X$1" : 'X\([^=]*\)='` 35675 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 35676 ac_shift=: 35677 ;; 35678 --*=) 35679 ac_option=`expr "X$1" : 'X\([^=]*\)='` 35680 ac_optarg= 35681 ac_shift=: 35682 ;; 35683 *) 35684 ac_option=$1 35685 ac_optarg=$2 35686 ac_shift=shift 35687 ;; 35688 esac 35689 35690 case $ac_option in 35691 # Handling of the options. 35692 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 35693 ac_cs_recheck=: ;; 35694 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 35695 printf "%s\n" "$ac_cs_version"; exit ;; 35696 --config | --confi | --conf | --con | --co | --c ) 35697 printf "%s\n" "$ac_cs_config"; exit ;; 35698 --debug | --debu | --deb | --de | --d | -d ) 35699 debug=: ;; 35700 --file | --fil | --fi | --f ) 35701 $ac_shift 35702 case $ac_optarg in 35703 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 35704 '') as_fn_error $? "missing file argument" ;; 35705 esac 35706 as_fn_append CONFIG_FILES " '$ac_optarg'" 35707 ac_need_defaults=false;; 35708 --header | --heade | --head | --hea ) 35709 $ac_shift 35710 case $ac_optarg in 35711 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 35712 esac 35713 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 35714 ac_need_defaults=false;; 35715 --he | --h) 35716 # Conflict between --help and --header 35717 as_fn_error $? "ambiguous option: '$1' 35718 Try '$0 --help' for more information.";; 35719 --help | --hel | -h ) 35720 printf "%s\n" "$ac_cs_usage"; exit ;; 35721 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 35722 | -silent | --silent | --silen | --sile | --sil | --si | --s) 35723 ac_cs_silent=: ;; 35724 35725 # This is an error. 35726 -*) as_fn_error $? "unrecognized option: '$1' 35727 Try '$0 --help' for more information." ;; 35728 35729 *) as_fn_append ac_config_targets " $1" 35730 ac_need_defaults=false ;; 35731 35732 esac 35733 shift 35734 done 35735 35736 ac_configure_extra_args= 35737 35738 if $ac_cs_silent; then 35739 exec 6>/dev/null 35740 ac_configure_extra_args="$ac_configure_extra_args --silent" 35741 fi 35742 35743 _ACEOF 35744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35745 if \$ac_cs_recheck; then 35746 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 35747 shift 35748 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 35749 CONFIG_SHELL='$SHELL' 35750 export CONFIG_SHELL 35751 exec "\$@" 35752 fi 35753 35754 _ACEOF 35755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35756 exec 5>>config.log 35757 { 35758 echo 35759 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 35760 ## Running $as_me. ## 35761 _ASBOX 35762 printf "%s\n" "$ac_log" 35763 } >&5 35764 35765 _ACEOF 35766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35767 # 35768 # INIT-COMMANDS 35769 # 35770 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 35771 35772 35773 # The HP-UX ksh and POSIX shell print the target directory to stdout 35774 # if CDPATH is set. 35775 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 35776 35777 sed_quote_subst='$sed_quote_subst' 35778 double_quote_subst='$double_quote_subst' 35779 delay_variable_subst='$delay_variable_subst' 35780 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 35781 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 35782 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 35783 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 35784 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 35785 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 35786 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 35787 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 35788 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 35789 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 35790 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 35791 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 35792 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 35793 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 35794 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 35795 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 35796 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 35797 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 35798 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 35799 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 35800 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 35801 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 35802 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 35803 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 35804 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 35805 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 35806 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 35807 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 35808 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 35809 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 35810 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 35811 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 35812 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 35813 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 35814 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 35815 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 35816 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 35817 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 35818 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 35819 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 35820 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 35821 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 35822 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 35823 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 35824 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 35825 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 35826 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 35827 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 35828 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 35829 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 35830 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 35831 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 35832 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 35833 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 35834 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 35835 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 35836 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 35837 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 35838 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 35839 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 35840 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 35841 lt_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"`' 35842 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 35843 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 35844 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 35845 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 35846 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 35847 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 35848 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 35849 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 35850 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 35851 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 35852 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 35853 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 35854 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 35855 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 35856 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 35857 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 35858 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 35859 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 35860 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 35861 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 35862 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 35863 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 35864 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 35865 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 35866 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 35867 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 35868 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 35869 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 35870 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 35871 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 35872 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 35873 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 35874 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 35875 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 35876 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 35877 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 35878 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 35879 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 35880 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 35881 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 35882 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 35883 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 35884 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 35885 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 35886 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 35887 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 35888 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 35889 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 35890 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 35891 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 35892 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 35893 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 35894 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 35895 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 35896 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 35897 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 35898 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 35899 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 35900 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 35901 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 35902 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 35903 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 35904 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 35905 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 35906 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 35907 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 35908 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 35909 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 35910 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 35911 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 35912 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 35913 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 35914 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 35915 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 35916 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 35917 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 35918 35919 LTCC='$LTCC' 35920 LTCFLAGS='$LTCFLAGS' 35921 compiler='$compiler_DEFAULT' 35922 35923 # A function that is used when there is no print builtin or printf. 35924 func_fallback_echo () 35925 { 35926 eval 'cat <<_LTECHO_EOF 35927 \$1 35928 _LTECHO_EOF' 35929 } 35930 35931 # Quote evaled strings. 35932 for var in AS \ 35933 DLLTOOL \ 35934 OBJDUMP \ 35935 SHELL \ 35936 ECHO \ 35937 PATH_SEPARATOR \ 35938 SED \ 35939 GREP \ 35940 EGREP \ 35941 FGREP \ 35942 LD \ 35943 NM \ 35944 LN_S \ 35945 lt_SP2NL \ 35946 lt_NL2SP \ 35947 reload_flag \ 35948 FILECMD \ 35949 deplibs_check_method \ 35950 file_magic_cmd \ 35951 file_magic_glob \ 35952 want_nocaseglob \ 35953 sharedlib_from_linklib_cmd \ 35954 AR \ 35955 archiver_list_spec \ 35956 STRIP \ 35957 RANLIB \ 35958 CC \ 35959 CFLAGS \ 35960 compiler \ 35961 lt_cv_sys_global_symbol_pipe \ 35962 lt_cv_sys_global_symbol_to_cdecl \ 35963 lt_cv_sys_global_symbol_to_import \ 35964 lt_cv_sys_global_symbol_to_c_name_address \ 35965 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 35966 lt_cv_nm_interface \ 35967 nm_file_list_spec \ 35968 lt_cv_truncate_bin \ 35969 lt_prog_compiler_no_builtin_flag \ 35970 lt_prog_compiler_pic \ 35971 lt_prog_compiler_wl \ 35972 lt_prog_compiler_static \ 35973 lt_cv_prog_compiler_c_o \ 35974 need_locks \ 35975 MANIFEST_TOOL \ 35976 DSYMUTIL \ 35977 NMEDIT \ 35978 LIPO \ 35979 OTOOL \ 35980 OTOOL64 \ 35981 shrext_cmds \ 35982 export_dynamic_flag_spec \ 35983 whole_archive_flag_spec \ 35984 compiler_needs_object \ 35985 with_gnu_ld \ 35986 allow_undefined_flag \ 35987 no_undefined_flag \ 35988 hardcode_libdir_flag_spec \ 35989 hardcode_libdir_separator \ 35990 exclude_expsyms \ 35991 include_expsyms \ 35992 file_list_spec \ 35993 variables_saved_for_relink \ 35994 libname_spec \ 35995 library_names_spec \ 35996 soname_spec \ 35997 install_override_mode \ 35998 finish_eval \ 35999 old_striplib \ 36000 striplib; do 36001 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 36002 *[\\\\\\\`\\"\\\$]*) 36003 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 36004 ;; 36005 *) 36006 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 36007 ;; 36008 esac 36009 done 36010 36011 # Double-quote double-evaled strings. 36012 for var in reload_cmds \ 36013 old_postinstall_cmds \ 36014 old_postuninstall_cmds \ 36015 old_archive_cmds \ 36016 extract_expsyms_cmds \ 36017 old_archive_from_new_cmds \ 36018 old_archive_from_expsyms_cmds \ 36019 archive_cmds \ 36020 archive_expsym_cmds \ 36021 module_cmds \ 36022 module_expsym_cmds \ 36023 export_symbols_cmds \ 36024 prelink_cmds \ 36025 postlink_cmds \ 36026 postinstall_cmds \ 36027 postuninstall_cmds \ 36028 finish_cmds \ 36029 sys_lib_search_path_spec \ 36030 configure_time_dlsearch_path \ 36031 configure_time_lt_sys_library_path; do 36032 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 36033 *[\\\\\\\`\\"\\\$]*) 36034 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 36035 ;; 36036 *) 36037 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 36038 ;; 36039 esac 36040 done 36041 36042 ac_aux_dir='$ac_aux_dir' 36043 36044 # See if we are running on zsh, and set the options that allow our 36045 # commands through without removal of \ escapes INIT. 36046 if test -n "\${ZSH_VERSION+set}"; then 36047 setopt NO_GLOB_SUBST 36048 fi 36049 36050 36051 PACKAGE='$PACKAGE' 36052 VERSION='$VERSION' 36053 RM='$RM' 36054 ofile='$ofile' 36055 36056 36057 36058 36059 _ACEOF 36060 36061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36062 36063 # Handling of arguments. 36064 for ac_config_target in $ac_config_targets 36065 do 36066 case $ac_config_target in 36067 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 36068 "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;; 36069 "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;; 36070 "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;; 36071 "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;; 36072 "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;; 36073 "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;; 36074 "include/version-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/version-config.h" ;; 36075 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 36076 "sdksyms") CONFIG_COMMANDS="$CONFIG_COMMANDS sdksyms" ;; 36077 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 36078 "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;; 36079 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 36080 "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;; 36081 "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;; 36082 "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;; 36083 "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;; 36084 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 36085 "doc/dtrace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dtrace/Makefile" ;; 36086 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 36087 "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;; 36088 "glamor/Makefile") CONFIG_FILES="$CONFIG_FILES glamor/Makefile" ;; 36089 "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;; 36090 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 36091 "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;; 36092 "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;; 36093 "miext/sync/Makefile") CONFIG_FILES="$CONFIG_FILES miext/sync/Makefile" ;; 36094 "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;; 36095 "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;; 36096 "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;; 36097 "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;; 36098 "pseudoramiX/Makefile") CONFIG_FILES="$CONFIG_FILES pseudoramiX/Makefile" ;; 36099 "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;; 36100 "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;; 36101 "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;; 36102 "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;; 36103 "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;; 36104 "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;; 36105 "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;; 36106 "dri3/Makefile") CONFIG_FILES="$CONFIG_FILES dri3/Makefile" ;; 36107 "present/Makefile") CONFIG_FILES="$CONFIG_FILES present/Makefile" ;; 36108 "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;; 36109 "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;; 36110 "hw/xfree86/Xorg.sh") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Xorg.sh" ;; 36111 "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;; 36112 "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;; 36113 "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;; 36114 "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;; 36115 "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;; 36116 "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;; 36117 "hw/xfree86/dri2/pci_ids/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/pci_ids/Makefile" ;; 36118 "hw/xfree86/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/Makefile" ;; 36119 "hw/xfree86/drivers/inputtest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/inputtest/Makefile" ;; 36120 "hw/xfree86/drivers/modesetting/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/modesetting/Makefile" ;; 36121 "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;; 36122 "hw/xfree86/exa/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/man/Makefile" ;; 36123 "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;; 36124 "hw/xfree86/fbdevhw/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/man/Makefile" ;; 36125 "hw/xfree86/glamor_egl/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/glamor_egl/Makefile" ;; 36126 "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;; 36127 "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;; 36128 "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;; 36129 "hw/xfree86/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/man/Makefile" ;; 36130 "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;; 36131 "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;; 36132 "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;; 36133 "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;; 36134 "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;; 36135 "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;; 36136 "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;; 36137 "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;; 36138 "hw/xfree86/os-support/stub/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/stub/Makefile" ;; 36139 "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;; 36140 "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;; 36141 "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;; 36142 "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;; 36143 "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;; 36144 "hw/xfree86/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xkb/Makefile" ;; 36145 "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;; 36146 "hw/xfree86/utils/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/man/Makefile" ;; 36147 "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;; 36148 "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;; 36149 "hw/vfb/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/man/Makefile" ;; 36150 "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;; 36151 "hw/xnest/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/man/Makefile" ;; 36152 "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;; 36153 "hw/xwin/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/dri/Makefile" ;; 36154 "hw/xwin/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/glx/Makefile" ;; 36155 "hw/xwin/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/man/Makefile" ;; 36156 "hw/xwin/winclipboard/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/winclipboard/Makefile" ;; 36157 "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;; 36158 "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;; 36159 "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;; 36160 "hw/xquartz/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/man/Makefile" ;; 36161 "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;; 36162 "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;; 36163 "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;; 36164 "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;; 36165 "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;; 36166 "hw/kdrive/ephyr/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/man/Makefile" ;; 36167 "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;; 36168 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 36169 "xserver.ent") CONFIG_FILES="$CONFIG_FILES xserver.ent" ;; 36170 "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;; 36171 36172 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 36173 esac 36174 done 36175 36176 36177 # If the user did not use the arguments to specify the items to instantiate, 36178 # then the envvar interface is used. Set only those that are not. 36179 # We use the long form for the default assignment because of an extremely 36180 # bizarre bug on SunOS 4.1.3. 36181 if $ac_need_defaults; then 36182 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 36183 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 36184 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 36185 fi 36186 36187 # Have a temporary directory for convenience. Make it in the build tree 36188 # simply because there is no reason against having it here, and in addition, 36189 # creating and moving files from /tmp can sometimes cause problems. 36190 # Hook for its removal unless debugging. 36191 # Note that there is a small window in which the directory will not be cleaned: 36192 # after its creation but before its name has been assigned to '$tmp'. 36193 $debug || 36194 { 36195 tmp= ac_tmp= 36196 trap 'exit_status=$? 36197 : "${ac_tmp:=$tmp}" 36198 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 36199 ' 0 36200 trap 'as_fn_exit 1' 1 2 13 15 36201 } 36202 # Create a (secure) tmp directory for tmp files. 36203 36204 { 36205 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 36206 test -d "$tmp" 36207 } || 36208 { 36209 tmp=./conf$$-$RANDOM 36210 (umask 077 && mkdir "$tmp") 36211 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 36212 ac_tmp=$tmp 36213 36214 # Set up the scripts for CONFIG_FILES section. 36215 # No need to generate them if there are no CONFIG_FILES. 36216 # This happens for instance with './config.status config.h'. 36217 if test -n "$CONFIG_FILES"; then 36218 36219 36220 ac_cr=`echo X | tr X '\015'` 36221 # On cygwin, bash can eat \r inside `` if the user requested igncr. 36222 # But we know of no other shell where ac_cr would be empty at this 36223 # point, so we can use a bashism as a fallback. 36224 if test "x$ac_cr" = x; then 36225 eval ac_cr=\$\'\\r\' 36226 fi 36227 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 36228 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 36229 ac_cs_awk_cr='\\r' 36230 else 36231 ac_cs_awk_cr=$ac_cr 36232 fi 36233 36234 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 36235 _ACEOF 36236 36237 36238 { 36239 echo "cat >conf$$subs.awk <<_ACEOF" && 36240 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 36241 echo "_ACEOF" 36242 } >conf$$subs.sh || 36243 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 36244 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 36245 ac_delim='%!_!# ' 36246 for ac_last_try in false false false false false :; do 36247 . ./conf$$subs.sh || 36248 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 36249 36250 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 36251 if test $ac_delim_n = $ac_delim_num; then 36252 break 36253 elif $ac_last_try; then 36254 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 36255 else 36256 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 36257 fi 36258 done 36259 rm -f conf$$subs.sh 36260 36261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 36262 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 36263 _ACEOF 36264 sed -n ' 36265 h 36266 s/^/S["/; s/!.*/"]=/ 36267 p 36268 g 36269 s/^[^!]*!// 36270 :repl 36271 t repl 36272 s/'"$ac_delim"'$// 36273 t delim 36274 :nl 36275 h 36276 s/\(.\{148\}\)..*/\1/ 36277 t more1 36278 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 36279 p 36280 n 36281 b repl 36282 :more1 36283 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 36284 p 36285 g 36286 s/.\{148\}// 36287 t nl 36288 :delim 36289 h 36290 s/\(.\{148\}\)..*/\1/ 36291 t more2 36292 s/["\\]/\\&/g; s/^/"/; s/$/"/ 36293 p 36294 b 36295 :more2 36296 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 36297 p 36298 g 36299 s/.\{148\}// 36300 t delim 36301 ' <conf$$subs.awk | sed ' 36302 /^[^""]/{ 36303 N 36304 s/\n// 36305 } 36306 ' >>$CONFIG_STATUS || ac_write_fail=1 36307 rm -f conf$$subs.awk 36308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 36309 _ACAWK 36310 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 36311 for (key in S) S_is_set[key] = 1 36312 FS = "" 36313 36314 } 36315 { 36316 line = $ 0 36317 nfields = split(line, field, "@") 36318 substed = 0 36319 len = length(field[1]) 36320 for (i = 2; i < nfields; i++) { 36321 key = field[i] 36322 keylen = length(key) 36323 if (S_is_set[key]) { 36324 value = S[key] 36325 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 36326 len += length(value) + length(field[++i]) 36327 substed = 1 36328 } else 36329 len += 1 + keylen 36330 } 36331 36332 print line 36333 } 36334 36335 _ACAWK 36336 _ACEOF 36337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36338 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 36339 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 36340 else 36341 cat 36342 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 36343 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 36344 _ACEOF 36345 36346 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 36347 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 36348 # trailing colons and then remove the whole line if VPATH becomes empty 36349 # (actually we leave an empty line to preserve line numbers). 36350 if test "x$srcdir" = x.; then 36351 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 36352 h 36353 s/// 36354 s/^/:/ 36355 s/[ ]*$/:/ 36356 s/:\$(srcdir):/:/g 36357 s/:\${srcdir}:/:/g 36358 s/:@srcdir@:/:/g 36359 s/^:*// 36360 s/:*$// 36361 x 36362 s/\(=[ ]*\).*/\1/ 36363 G 36364 s/\n// 36365 s/^[^=]*=[ ]*$// 36366 }' 36367 fi 36368 36369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36370 fi # test -n "$CONFIG_FILES" 36371 36372 # Set up the scripts for CONFIG_HEADERS section. 36373 # No need to generate them if there are no CONFIG_HEADERS. 36374 # This happens for instance with './config.status Makefile'. 36375 if test -n "$CONFIG_HEADERS"; then 36376 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 36377 BEGIN { 36378 _ACEOF 36379 36380 # Transform confdefs.h into an awk script 'defines.awk', embedded as 36381 # here-document in config.status, that substitutes the proper values into 36382 # config.h.in to produce config.h. 36383 36384 # Create a delimiter string that does not exist in confdefs.h, to ease 36385 # handling of long lines. 36386 ac_delim='%!_!# ' 36387 for ac_last_try in false false :; do 36388 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 36389 if test -z "$ac_tt"; then 36390 break 36391 elif $ac_last_try; then 36392 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 36393 else 36394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 36395 fi 36396 done 36397 36398 # For the awk script, D is an array of macro values keyed by name, 36399 # likewise P contains macro parameters if any. Preserve backslash 36400 # newline sequences. 36401 36402 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 36403 sed -n ' 36404 s/.\{148\}/&'"$ac_delim"'/g 36405 t rset 36406 :rset 36407 s/^[ ]*#[ ]*define[ ][ ]*/ / 36408 t def 36409 d 36410 :def 36411 s/\\$// 36412 t bsnl 36413 s/["\\]/\\&/g 36414 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 36415 D["\1"]=" \3"/p 36416 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 36417 d 36418 :bsnl 36419 s/["\\]/\\&/g 36420 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 36421 D["\1"]=" \3\\\\\\n"\\/p 36422 t cont 36423 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 36424 t cont 36425 d 36426 :cont 36427 n 36428 s/.\{148\}/&'"$ac_delim"'/g 36429 t clear 36430 :clear 36431 s/\\$// 36432 t bsnlc 36433 s/["\\]/\\&/g; s/^/"/; s/$/"/p 36434 d 36435 :bsnlc 36436 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 36437 b cont 36438 ' <confdefs.h | sed ' 36439 s/'"$ac_delim"'/"\\\ 36440 "/g' >>$CONFIG_STATUS || ac_write_fail=1 36441 36442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 36443 for (key in D) D_is_set[key] = 1 36444 FS = "" 36445 } 36446 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 36447 line = \$ 0 36448 split(line, arg, " ") 36449 if (arg[1] == "#") { 36450 defundef = arg[2] 36451 mac1 = arg[3] 36452 } else { 36453 defundef = substr(arg[1], 2) 36454 mac1 = arg[2] 36455 } 36456 split(mac1, mac2, "(") #) 36457 macro = mac2[1] 36458 prefix = substr(line, 1, index(line, defundef) - 1) 36459 if (D_is_set[macro]) { 36460 # Preserve the white space surrounding the "#". 36461 print prefix "define", macro P[macro] D[macro] 36462 next 36463 } else { 36464 # Replace #undef with comments. This is necessary, for example, 36465 # in the case of _POSIX_SOURCE, which is predefined and required 36466 # on some systems where configure will not decide to define it. 36467 if (defundef == "undef") { 36468 print "/*", prefix defundef, macro, "*/" 36469 next 36470 } 36471 } 36472 } 36473 { print } 36474 _ACAWK 36475 _ACEOF 36476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36477 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 36478 fi # test -n "$CONFIG_HEADERS" 36479 36480 36481 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 36482 shift 36483 for ac_tag 36484 do 36485 case $ac_tag in 36486 :[FHLC]) ac_mode=$ac_tag; continue;; 36487 esac 36488 case $ac_mode$ac_tag in 36489 :[FHL]*:*);; 36490 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 36491 :[FH]-) ac_tag=-:-;; 36492 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 36493 esac 36494 ac_save_IFS=$IFS 36495 IFS=: 36496 set x $ac_tag 36497 IFS=$ac_save_IFS 36498 shift 36499 ac_file=$1 36500 shift 36501 36502 case $ac_mode in 36503 :L) ac_source=$1;; 36504 :[FH]) 36505 ac_file_inputs= 36506 for ac_f 36507 do 36508 case $ac_f in 36509 -) ac_f="$ac_tmp/stdin";; 36510 *) # Look for the file first in the build tree, then in the source tree 36511 # (if the path is not absolute). The absolute path cannot be DOS-style, 36512 # because $ac_f cannot contain ':'. 36513 test -f "$ac_f" || 36514 case $ac_f in 36515 [\\/$]*) false;; 36516 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 36517 esac || 36518 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 36519 esac 36520 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 36521 as_fn_append ac_file_inputs " '$ac_f'" 36522 done 36523 36524 # Let's still pretend it is 'configure' which instantiates (i.e., don't 36525 # use $as_me), people would be surprised to read: 36526 # /* config.h. Generated by config.status. */ 36527 configure_input='Generated from '` 36528 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 36529 `' by configure.' 36530 if test x"$ac_file" != x-; then 36531 configure_input="$ac_file. $configure_input" 36532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 36533 printf "%s\n" "$as_me: creating $ac_file" >&6;} 36534 fi 36535 # Neutralize special characters interpreted by sed in replacement strings. 36536 case $configure_input in #( 36537 *\&* | *\|* | *\\* ) 36538 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 36539 sed 's/[\\\\&|]/\\\\&/g'`;; #( 36540 *) ac_sed_conf_input=$configure_input;; 36541 esac 36542 36543 case $ac_tag in 36544 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 36545 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 36546 esac 36547 ;; 36548 esac 36549 36550 ac_dir=`$as_dirname -- "$ac_file" || 36551 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 36552 X"$ac_file" : 'X\(//\)[^/]' \| \ 36553 X"$ac_file" : 'X\(//\)$' \| \ 36554 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 36555 printf "%s\n" X"$ac_file" | 36556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 36557 s//\1/ 36558 q 36559 } 36560 /^X\(\/\/\)[^/].*/{ 36561 s//\1/ 36562 q 36563 } 36564 /^X\(\/\/\)$/{ 36565 s//\1/ 36566 q 36567 } 36568 /^X\(\/\).*/{ 36569 s//\1/ 36570 q 36571 } 36572 s/.*/./; q'` 36573 as_dir="$ac_dir"; as_fn_mkdir_p 36574 ac_builddir=. 36575 36576 case "$ac_dir" in 36577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 36578 *) 36579 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 36580 # A ".." for each directory in $ac_dir_suffix. 36581 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 36582 case $ac_top_builddir_sub in 36583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 36584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 36585 esac ;; 36586 esac 36587 ac_abs_top_builddir=$ac_pwd 36588 ac_abs_builddir=$ac_pwd$ac_dir_suffix 36589 # for backward compatibility: 36590 ac_top_builddir=$ac_top_build_prefix 36591 36592 case $srcdir in 36593 .) # We are building in place. 36594 ac_srcdir=. 36595 ac_top_srcdir=$ac_top_builddir_sub 36596 ac_abs_top_srcdir=$ac_pwd ;; 36597 [\\/]* | ?:[\\/]* ) # Absolute name. 36598 ac_srcdir=$srcdir$ac_dir_suffix; 36599 ac_top_srcdir=$srcdir 36600 ac_abs_top_srcdir=$srcdir ;; 36601 *) # Relative name. 36602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 36603 ac_top_srcdir=$ac_top_build_prefix$srcdir 36604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 36605 esac 36606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 36607 36608 36609 case $ac_mode in 36610 :F) 36611 # 36612 # CONFIG_FILE 36613 # 36614 36615 case $INSTALL in 36616 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 36617 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 36618 esac 36619 ac_MKDIR_P=$MKDIR_P 36620 case $MKDIR_P in 36621 [\\/$]* | ?:[\\/]* ) ;; 36622 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 36623 esac 36624 _ACEOF 36625 36626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36627 # If the template does not know about datarootdir, expand it. 36628 # FIXME: This hack should be removed a few years after 2.60. 36629 ac_datarootdir_hack=; ac_datarootdir_seen= 36630 ac_sed_dataroot=' 36631 /datarootdir/ { 36632 p 36633 q 36634 } 36635 /@datadir@/p 36636 /@docdir@/p 36637 /@infodir@/p 36638 /@localedir@/p 36639 /@mandir@/p' 36640 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 36641 *datarootdir*) ac_datarootdir_seen=yes;; 36642 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 36643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 36644 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 36645 _ACEOF 36646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 36647 ac_datarootdir_hack=' 36648 s&@datadir@&$datadir&g 36649 s&@docdir@&$docdir&g 36650 s&@infodir@&$infodir&g 36651 s&@localedir@&$localedir&g 36652 s&@mandir@&$mandir&g 36653 s&\\\${datarootdir}&$datarootdir&g' ;; 36654 esac 36655 _ACEOF 36656 36657 # Neutralize VPATH when '$srcdir' = '.'. 36658 # Shell code in configure.ac might set extrasub. 36659 # FIXME: do we really want to maintain this feature? 36660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 36661 ac_sed_extra="$ac_vpsub 36662 $extrasub 36663 _ACEOF 36664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36665 :t 36666 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 36667 s|@configure_input@|$ac_sed_conf_input|;t t 36668 s&@top_builddir@&$ac_top_builddir_sub&;t t 36669 s&@top_build_prefix@&$ac_top_build_prefix&;t t 36670 s&@srcdir@&$ac_srcdir&;t t 36671 s&@abs_srcdir@&$ac_abs_srcdir&;t t 36672 s&@top_srcdir@&$ac_top_srcdir&;t t 36673 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 36674 s&@builddir@&$ac_builddir&;t t 36675 s&@abs_builddir@&$ac_abs_builddir&;t t 36676 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 36677 s&@INSTALL@&$ac_INSTALL&;t t 36678 s&@MKDIR_P@&$ac_MKDIR_P&;t t 36679 $ac_datarootdir_hack 36680 " 36681 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 36682 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 36683 36684 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 36685 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 36686 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 36687 "$ac_tmp/out"`; test -z "$ac_out"; } && 36688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 36689 which seems to be undefined. Please make sure it is defined" >&5 36690 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 36691 which seems to be undefined. Please make sure it is defined" >&2;} 36692 36693 rm -f "$ac_tmp/stdin" 36694 case $ac_file in 36695 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 36696 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 36697 esac \ 36698 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 36699 ;; 36700 :H) 36701 # 36702 # CONFIG_HEADER 36703 # 36704 if test x"$ac_file" != x-; then 36705 { 36706 printf "%s\n" "/* $configure_input */" >&1 \ 36707 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 36708 } >"$ac_tmp/config.h" \ 36709 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 36710 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 36711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 36712 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 36713 else 36714 rm -f "$ac_file" 36715 mv "$ac_tmp/config.h" "$ac_file" \ 36716 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 36717 fi 36718 else 36719 printf "%s\n" "/* $configure_input */" >&1 \ 36720 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 36721 || as_fn_error $? "could not create -" "$LINENO" 5 36722 fi 36723 # Compute "$ac_file"'s index in $config_headers. 36724 _am_arg="$ac_file" 36725 _am_stamp_count=1 36726 for _am_header in $config_headers :; do 36727 case $_am_header in 36728 $_am_arg | $_am_arg:* ) 36729 break ;; 36730 * ) 36731 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 36732 esac 36733 done 36734 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 36735 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 36736 X"$_am_arg" : 'X\(//\)[^/]' \| \ 36737 X"$_am_arg" : 'X\(//\)$' \| \ 36738 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 36739 printf "%s\n" X"$_am_arg" | 36740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 36741 s//\1/ 36742 q 36743 } 36744 /^X\(\/\/\)[^/].*/{ 36745 s//\1/ 36746 q 36747 } 36748 /^X\(\/\/\)$/{ 36749 s//\1/ 36750 q 36751 } 36752 /^X\(\/\).*/{ 36753 s//\1/ 36754 q 36755 } 36756 s/.*/./; q'`/stamp-h$_am_stamp_count 36757 ;; 36758 36759 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 36760 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 36761 ;; 36762 esac 36763 36764 36765 case $ac_file$ac_mode in 36766 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 36767 # Older Autoconf quotes --file arguments for eval, but not when files 36768 # are listed without --file. Let's play safe and only enable the eval 36769 # if we detect the quoting. 36770 # TODO: see whether this extra hack can be removed once we start 36771 # requiring Autoconf 2.70 or later. 36772 case $CONFIG_FILES in #( 36773 *\'*) : 36774 eval set x "$CONFIG_FILES" ;; #( 36775 *) : 36776 set x $CONFIG_FILES ;; #( 36777 *) : 36778 ;; 36779 esac 36780 shift 36781 # Used to flag and report bootstrapping failures. 36782 am_rc=0 36783 for am_mf 36784 do 36785 # Strip MF so we end up with the name of the file. 36786 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 36787 # Check whether this is an Automake generated Makefile which includes 36788 # dependency-tracking related rules and includes. 36789 # Grep'ing the whole file directly is not great: AIX grep has a line 36790 # limit of 2048, but all sed's we know have understand at least 4000. 36791 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 36792 || continue 36793 am_dirpart=`$as_dirname -- "$am_mf" || 36794 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 36795 X"$am_mf" : 'X\(//\)[^/]' \| \ 36796 X"$am_mf" : 'X\(//\)$' \| \ 36797 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 36798 printf "%s\n" X"$am_mf" | 36799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 36800 s//\1/ 36801 q 36802 } 36803 /^X\(\/\/\)[^/].*/{ 36804 s//\1/ 36805 q 36806 } 36807 /^X\(\/\/\)$/{ 36808 s//\1/ 36809 q 36810 } 36811 /^X\(\/\).*/{ 36812 s//\1/ 36813 q 36814 } 36815 s/.*/./; q'` 36816 am_filepart=`$as_basename -- "$am_mf" || 36817 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 36818 X"$am_mf" : 'X\(//\)$' \| \ 36819 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 36820 printf "%s\n" X/"$am_mf" | 36821 sed '/^.*\/\([^/][^/]*\)\/*$/{ 36822 s//\1/ 36823 q 36824 } 36825 /^X\/\(\/\/\)$/{ 36826 s//\1/ 36827 q 36828 } 36829 /^X\/\(\/\).*/{ 36830 s//\1/ 36831 q 36832 } 36833 s/.*/./; q'` 36834 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 36835 && sed -e '/# am--include-marker/d' "$am_filepart" \ 36836 | $MAKE -f - am--depfiles" >&5 36837 (cd "$am_dirpart" \ 36838 && sed -e '/# am--include-marker/d' "$am_filepart" \ 36839 | $MAKE -f - am--depfiles) >&5 2>&5 36840 ac_status=$? 36841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36842 (exit $ac_status); } || am_rc=$? 36843 done 36844 if test $am_rc -ne 0; then 36845 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 36846 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 36847 as_fn_error $? "Something went wrong bootstrapping makefile fragments 36848 for automatic dependency tracking. If GNU make was not used, consider 36849 re-running the configure script with MAKE=\"gmake\" (or whatever is 36850 necessary). You can also try re-running configure with the 36851 '--disable-dependency-tracking' option to at least be able to build 36852 the package (albeit without support for automatic dependency tracking). 36853 See 'config.log' for more details" "$LINENO" 5; } 36854 fi 36855 { am_dirpart=; unset am_dirpart;} 36856 { am_filepart=; unset am_filepart;} 36857 { am_mf=; unset am_mf;} 36858 { am_rc=; unset am_rc;} 36859 rm -f conftest-deps.mk 36860 } 36861 ;; 36862 "libtool":C) 36863 36864 # See if we are running on zsh, and set the options that allow our 36865 # commands through without removal of \ escapes. 36866 if test -n "${ZSH_VERSION+set}"; then 36867 setopt NO_GLOB_SUBST 36868 fi 36869 36870 cfgfile=${ofile}T 36871 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 36872 $RM "$cfgfile" 36873 36874 cat <<_LT_EOF >> "$cfgfile" 36875 #! $SHELL 36876 # Generated automatically by $as_me ($PACKAGE) $VERSION 36877 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 36878 36879 # Provide generalized library-building support services. 36880 # Written by Gordon Matzigkeit, 1996 36881 36882 # Copyright (C) 2024 Free Software Foundation, Inc. 36883 # This is free software; see the source for copying conditions. There is NO 36884 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 36885 36886 # GNU Libtool is free software; you can redistribute it and/or modify 36887 # it under the terms of the GNU General Public License as published by 36888 # the Free Software Foundation; either version 2 of the License, or 36889 # (at your option) any later version. 36890 # 36891 # As a special exception to the GNU General Public License, if you 36892 # distribute this file as part of a program or library that is built 36893 # using GNU Libtool, you may include this file under the same 36894 # distribution terms that you use for the rest of that program. 36895 # 36896 # GNU Libtool is distributed in the hope that it will be useful, but 36897 # WITHOUT ANY WARRANTY; without even the implied warranty of 36898 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 36899 # GNU General Public License for more details. 36900 # 36901 # You should have received a copy of the GNU General Public License 36902 # along with this program. If not, see <http://www.gnu.org/licenses/>. 36903 36904 36905 # The names of the tagged configurations supported by this script. 36906 available_tags='' 36907 36908 # Configured defaults for sys_lib_dlsearch_path munging. 36909 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 36910 36911 # ### BEGIN LIBTOOL CONFIG 36912 36913 # Which release of libtool.m4 was used? 36914 macro_version=$macro_version 36915 macro_revision=$macro_revision 36916 36917 # Whether or not to build static libraries. 36918 build_old_libs=$enable_static 36919 36920 # Assembler program. 36921 AS=$lt_AS 36922 36923 # DLL creation program. 36924 DLLTOOL=$lt_DLLTOOL 36925 36926 # Object dumper program. 36927 OBJDUMP=$lt_OBJDUMP 36928 36929 # Whether or not to build shared libraries. 36930 build_libtool_libs=$enable_shared 36931 36932 # What type of objects to build. 36933 pic_mode=$pic_mode 36934 36935 # Whether or not to optimize for fast installation. 36936 fast_install=$enable_fast_install 36937 36938 # Shared archive member basename,for filename based shared library versioning on AIX. 36939 shared_archive_member_spec=$shared_archive_member_spec 36940 36941 # Shell to use when invoking shell scripts. 36942 SHELL=$lt_SHELL 36943 36944 # An echo program that protects backslashes. 36945 ECHO=$lt_ECHO 36946 36947 # The PATH separator for the build system. 36948 PATH_SEPARATOR=$lt_PATH_SEPARATOR 36949 36950 # The host system. 36951 host_alias=$host_alias 36952 host=$host 36953 host_os=$host_os 36954 36955 # The build system. 36956 build_alias=$build_alias 36957 build=$build 36958 build_os=$build_os 36959 36960 # A sed program that does not truncate output. 36961 SED=$lt_SED 36962 36963 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 36964 Xsed="\$SED -e 1s/^X//" 36965 36966 # A grep program that handles long lines. 36967 GREP=$lt_GREP 36968 36969 # An ERE matcher. 36970 EGREP=$lt_EGREP 36971 36972 # A literal string matcher. 36973 FGREP=$lt_FGREP 36974 36975 # A BSD- or MS-compatible name lister. 36976 NM=$lt_NM 36977 36978 # Whether we need soft or hard links. 36979 LN_S=$lt_LN_S 36980 36981 # What is the maximum length of a command? 36982 max_cmd_len=$max_cmd_len 36983 36984 # Object file suffix (normally "o"). 36985 objext=$ac_objext 36986 36987 # Executable file suffix (normally ""). 36988 exeext=$exeext 36989 36990 # whether the shell understands "unset". 36991 lt_unset=$lt_unset 36992 36993 # turn spaces into newlines. 36994 SP2NL=$lt_lt_SP2NL 36995 36996 # turn newlines into spaces. 36997 NL2SP=$lt_lt_NL2SP 36998 36999 # convert \$build file names to \$host format. 37000 to_host_file_cmd=$lt_cv_to_host_file_cmd 37001 37002 # convert \$build files to toolchain format. 37003 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 37004 37005 # A file(cmd) program that detects file types. 37006 FILECMD=$lt_FILECMD 37007 37008 # Method to check whether dependent libraries are shared objects. 37009 deplibs_check_method=$lt_deplibs_check_method 37010 37011 # Command to use when deplibs_check_method = "file_magic". 37012 file_magic_cmd=$lt_file_magic_cmd 37013 37014 # How to find potential files when deplibs_check_method = "file_magic". 37015 file_magic_glob=$lt_file_magic_glob 37016 37017 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 37018 want_nocaseglob=$lt_want_nocaseglob 37019 37020 # Command to associate shared and link libraries. 37021 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 37022 37023 # The archiver. 37024 AR=$lt_AR 37025 37026 # Flags to create an archive (by configure). 37027 lt_ar_flags=$lt_ar_flags 37028 37029 # Flags to create an archive. 37030 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 37031 37032 # How to feed a file listing to the archiver. 37033 archiver_list_spec=$lt_archiver_list_spec 37034 37035 # A symbol stripping program. 37036 STRIP=$lt_STRIP 37037 37038 # Commands used to install an old-style archive. 37039 RANLIB=$lt_RANLIB 37040 old_postinstall_cmds=$lt_old_postinstall_cmds 37041 old_postuninstall_cmds=$lt_old_postuninstall_cmds 37042 37043 # Whether to use a lock for old archive extraction. 37044 lock_old_archive_extraction=$lock_old_archive_extraction 37045 37046 # A C compiler. 37047 LTCC=$lt_CC 37048 37049 # LTCC compiler flags. 37050 LTCFLAGS=$lt_CFLAGS 37051 37052 # Take the output of nm and produce a listing of raw symbols and C names. 37053 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 37054 37055 # Transform the output of nm in a proper C declaration. 37056 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 37057 37058 # Transform the output of nm into a list of symbols to manually relocate. 37059 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 37060 37061 # Transform the output of nm in a C name address pair. 37062 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 37063 37064 # Transform the output of nm in a C name address pair when lib prefix is needed. 37065 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 37066 37067 # The name lister interface. 37068 nm_interface=$lt_lt_cv_nm_interface 37069 37070 # Specify filename containing input files for \$NM. 37071 nm_file_list_spec=$lt_nm_file_list_spec 37072 37073 # The root where to search for dependent libraries,and where our libraries should be installed. 37074 lt_sysroot=$lt_sysroot 37075 37076 # Command to truncate a binary pipe. 37077 lt_truncate_bin=$lt_lt_cv_truncate_bin 37078 37079 # The name of the directory that contains temporary libtool files. 37080 objdir=$objdir 37081 37082 # Used to examine libraries when file_magic_cmd begins with "file". 37083 MAGIC_CMD=$MAGIC_CMD 37084 37085 # Must we lock files when doing compilation? 37086 need_locks=$lt_need_locks 37087 37088 # Manifest tool. 37089 MANIFEST_TOOL=$lt_MANIFEST_TOOL 37090 37091 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 37092 DSYMUTIL=$lt_DSYMUTIL 37093 37094 # Tool to change global to local symbols on Mac OS X. 37095 NMEDIT=$lt_NMEDIT 37096 37097 # Tool to manipulate fat objects and archives on Mac OS X. 37098 LIPO=$lt_LIPO 37099 37100 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 37101 OTOOL=$lt_OTOOL 37102 37103 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 37104 OTOOL64=$lt_OTOOL64 37105 37106 # Old archive suffix (normally "a"). 37107 libext=$libext 37108 37109 # Shared library suffix (normally ".so"). 37110 shrext_cmds=$lt_shrext_cmds 37111 37112 # The commands to extract the exported symbol list from a shared archive. 37113 extract_expsyms_cmds=$lt_extract_expsyms_cmds 37114 37115 # Variables whose values should be saved in libtool wrapper scripts and 37116 # restored at link time. 37117 variables_saved_for_relink=$lt_variables_saved_for_relink 37118 37119 # Do we need the "lib" prefix for modules? 37120 need_lib_prefix=$need_lib_prefix 37121 37122 # Do we need a version for libraries? 37123 need_version=$need_version 37124 37125 # Library versioning type. 37126 version_type=$version_type 37127 37128 # Shared library runtime path variable. 37129 runpath_var=$runpath_var 37130 37131 # Shared library path variable. 37132 shlibpath_var=$shlibpath_var 37133 37134 # Is shlibpath searched before the hard-coded library search path? 37135 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 37136 37137 # Format of library name prefix. 37138 libname_spec=$lt_libname_spec 37139 37140 # List of archive names. First name is the real one, the rest are links. 37141 # The last name is the one that the linker finds with -lNAME 37142 library_names_spec=$lt_library_names_spec 37143 37144 # The coded name of the library, if different from the real name. 37145 soname_spec=$lt_soname_spec 37146 37147 # Permission mode override for installation of shared libraries. 37148 install_override_mode=$lt_install_override_mode 37149 37150 # Command to use after installation of a shared archive. 37151 postinstall_cmds=$lt_postinstall_cmds 37152 37153 # Command to use after uninstallation of a shared archive. 37154 postuninstall_cmds=$lt_postuninstall_cmds 37155 37156 # Commands used to finish a libtool library installation in a directory. 37157 finish_cmds=$lt_finish_cmds 37158 37159 # As "finish_cmds", except a single script fragment to be evaled but 37160 # not shown. 37161 finish_eval=$lt_finish_eval 37162 37163 # Whether we should hardcode library paths into libraries. 37164 hardcode_into_libs=$hardcode_into_libs 37165 37166 # Compile-time system search path for libraries. 37167 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 37168 37169 # Detected run-time system search path for libraries. 37170 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 37171 37172 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 37173 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 37174 37175 # Whether dlopen is supported. 37176 dlopen_support=$enable_dlopen 37177 37178 # Whether dlopen of programs is supported. 37179 dlopen_self=$enable_dlopen_self 37180 37181 # Whether dlopen of statically linked programs is supported. 37182 dlopen_self_static=$enable_dlopen_self_static 37183 37184 # Commands to strip libraries. 37185 old_striplib=$lt_old_striplib 37186 striplib=$lt_striplib 37187 37188 37189 # The linker used to build libraries. 37190 LD=$lt_LD 37191 37192 # How to create reloadable object files. 37193 reload_flag=$lt_reload_flag 37194 reload_cmds=$lt_reload_cmds 37195 37196 # Commands used to build an old-style archive. 37197 old_archive_cmds=$lt_old_archive_cmds 37198 37199 # A language specific compiler. 37200 CC=$lt_compiler 37201 37202 # Is the compiler the GNU compiler? 37203 with_gcc=$GCC 37204 37205 # Compiler flag to turn off builtin functions. 37206 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 37207 37208 # Additional compiler flags for building library objects. 37209 pic_flag=$lt_lt_prog_compiler_pic 37210 37211 # How to pass a linker flag through the compiler. 37212 wl=$lt_lt_prog_compiler_wl 37213 37214 # Compiler flag to prevent dynamic linking. 37215 link_static_flag=$lt_lt_prog_compiler_static 37216 37217 # Does compiler simultaneously support -c and -o options? 37218 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 37219 37220 # Whether or not to add -lc for building shared libraries. 37221 build_libtool_need_lc=$archive_cmds_need_lc 37222 37223 # Whether or not to disallow shared libs when runtime libs are static. 37224 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 37225 37226 # Compiler flag to allow reflexive dlopens. 37227 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 37228 37229 # Compiler flag to generate shared objects directly from archives. 37230 whole_archive_flag_spec=$lt_whole_archive_flag_spec 37231 37232 # Whether the compiler copes with passing no objects directly. 37233 compiler_needs_object=$lt_compiler_needs_object 37234 37235 # Create an old-style archive from a shared archive. 37236 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 37237 37238 # Create a temporary old-style archive to link instead of a shared archive. 37239 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 37240 37241 # Commands used to build a shared archive. 37242 archive_cmds=$lt_archive_cmds 37243 archive_expsym_cmds=$lt_archive_expsym_cmds 37244 37245 # Commands used to build a loadable module if different from building 37246 # a shared archive. 37247 module_cmds=$lt_module_cmds 37248 module_expsym_cmds=$lt_module_expsym_cmds 37249 37250 # Whether we are building with GNU ld or not. 37251 with_gnu_ld=$lt_with_gnu_ld 37252 37253 # Flag that allows shared libraries with undefined symbols to be built. 37254 allow_undefined_flag=$lt_allow_undefined_flag 37255 37256 # Flag that enforces no undefined symbols. 37257 no_undefined_flag=$lt_no_undefined_flag 37258 37259 # Flag to hardcode \$libdir into a binary during linking. 37260 # This must work even if \$libdir does not exist 37261 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 37262 37263 # Whether we need a single "-rpath" flag with a separated argument. 37264 hardcode_libdir_separator=$lt_hardcode_libdir_separator 37265 37266 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 37267 # DIR into the resulting binary. 37268 hardcode_direct=$hardcode_direct 37269 37270 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 37271 # DIR into the resulting binary and the resulting library dependency is 37272 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the 37273 # library is relocated. 37274 hardcode_direct_absolute=$hardcode_direct_absolute 37275 37276 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 37277 # into the resulting binary. 37278 hardcode_minus_L=$hardcode_minus_L 37279 37280 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 37281 # into the resulting binary. 37282 hardcode_shlibpath_var=$hardcode_shlibpath_var 37283 37284 # Set to "yes" if building a shared library automatically hardcodes DIR 37285 # into the library and all subsequent libraries and executables linked 37286 # against it. 37287 hardcode_automatic=$hardcode_automatic 37288 37289 # Set to yes if linker adds runtime paths of dependent libraries 37290 # to runtime path list. 37291 inherit_rpath=$inherit_rpath 37292 37293 # Whether libtool must link a program against all its dependency libraries. 37294 link_all_deplibs=$link_all_deplibs 37295 37296 # Set to "yes" if exported symbols are required. 37297 always_export_symbols=$always_export_symbols 37298 37299 # The commands to list exported symbols. 37300 export_symbols_cmds=$lt_export_symbols_cmds 37301 37302 # Symbols that should not be listed in the preloaded symbols. 37303 exclude_expsyms=$lt_exclude_expsyms 37304 37305 # Symbols that must always be exported. 37306 include_expsyms=$lt_include_expsyms 37307 37308 # Commands necessary for linking programs (against libraries) with templates. 37309 prelink_cmds=$lt_prelink_cmds 37310 37311 # Commands necessary for finishing linking programs. 37312 postlink_cmds=$lt_postlink_cmds 37313 37314 # Specify filename containing input files. 37315 file_list_spec=$lt_file_list_spec 37316 37317 # How to hardcode a shared library path into an executable. 37318 hardcode_action=$hardcode_action 37319 37320 # ### END LIBTOOL CONFIG 37321 37322 _LT_EOF 37323 37324 cat <<'_LT_EOF' >> "$cfgfile" 37325 37326 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 37327 37328 # func_munge_path_list VARIABLE PATH 37329 # ----------------------------------- 37330 # VARIABLE is name of variable containing _space_ separated list of 37331 # directories to be munged by the contents of PATH, which is string 37332 # having a format: 37333 # "DIR[:DIR]:" 37334 # string "DIR[ DIR]" will be prepended to VARIABLE 37335 # ":DIR[:DIR]" 37336 # string "DIR[ DIR]" will be appended to VARIABLE 37337 # "DIRP[:DIRP]::[DIRA:]DIRA" 37338 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 37339 # "DIRA[ DIRA]" will be appended to VARIABLE 37340 # "DIR[:DIR]" 37341 # VARIABLE will be replaced by "DIR[ DIR]" 37342 func_munge_path_list () 37343 { 37344 case x$2 in 37345 x) 37346 ;; 37347 *:) 37348 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 37349 ;; 37350 x:*) 37351 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 37352 ;; 37353 *::*) 37354 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 37355 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 37356 ;; 37357 *) 37358 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 37359 ;; 37360 esac 37361 } 37362 37363 37364 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 37365 func_cc_basename () 37366 { 37367 for cc_temp in $*""; do 37368 case $cc_temp in 37369 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 37370 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 37371 \-*) ;; 37372 *) break;; 37373 esac 37374 done 37375 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 37376 } 37377 37378 37379 # ### END FUNCTIONS SHARED WITH CONFIGURE 37380 37381 _LT_EOF 37382 37383 case $host_os in 37384 aix3*) 37385 cat <<\_LT_EOF >> "$cfgfile" 37386 # AIX sometimes has problems with the GCC collect2 program. For some 37387 # reason, if we set the COLLECT_NAMES environment variable, the problems 37388 # vanish in a puff of smoke. 37389 if test set != "${COLLECT_NAMES+set}"; then 37390 COLLECT_NAMES= 37391 export COLLECT_NAMES 37392 fi 37393 _LT_EOF 37394 ;; 37395 esac 37396 37397 37398 37399 ltmain=$ac_aux_dir/ltmain.sh 37400 37401 37402 # We use sed instead of cat because bash on DJGPP gets confused if 37403 # if finds mixed CR/LF and LF-only lines. Since sed operates in 37404 # text mode, it properly converts lines to CR/LF. This bash problem 37405 # is reportedly fixed, but why not run on old versions too? 37406 $SED '$q' "$ltmain" >> "$cfgfile" \ 37407 || (rm -f "$cfgfile"; exit 1) 37408 37409 mv -f "$cfgfile" "$ofile" || 37410 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 37411 chmod +x "$ofile" 37412 37413 ;; 37414 "sdksyms":C) touch hw/xfree86/sdksyms.dep ;; 37415 37416 esac 37417 done # for ac_tag 37418 37419 37420 as_fn_exit 0 37421 _ACEOF 37422 ac_clean_files=$ac_clean_files_save 37423 37424 test $ac_write_fail = 0 || 37425 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 37426 37427 37428 # configure is writing to config.log, and then calls config.status. 37429 # config.status does its own redirection, appending to config.log. 37430 # Unfortunately, on DOS this fails, as config.log is still kept open 37431 # by configure, so config.status won't be able to write to it; its 37432 # output is simply discarded. So we exec the FD to /dev/null, 37433 # effectively closing config.log, so it can be properly (re)opened and 37434 # appended to by config.status. When coming back to configure, we 37435 # need to make the FD available again. 37436 if test "$no_create" != yes; then 37437 ac_cs_success=: 37438 ac_config_status_args= 37439 test "$silent" = yes && 37440 ac_config_status_args="$ac_config_status_args --quiet" 37441 exec 5>/dev/null 37442 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 37443 exec 5>>config.log 37444 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 37445 # would make configure fail if this is the last instruction. 37446 $ac_cs_success || as_fn_exit 1 37447 fi 37448 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 37449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 37450 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 37451 fi 37452 37453 37454