configure revision 258a0ebe
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libX11 1.6.8. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://gitlab.freedesktop.org/xorg/lib/libx11/issues 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570as_awk_strverscmp=' 571 # Use only awk features that work with 7th edition Unix awk (1978). 572 # My, what an old awk you have, Mr. Solaris! 573 END { 574 while (length(v1) && length(v2)) { 575 # Set d1 to be the next thing to compare from v1, and likewise for d2. 576 # Normally this is a single character, but if v1 and v2 contain digits, 577 # compare them as integers and fractions as strverscmp does. 578 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 579 # Split v1 and v2 into their leading digit string components d1 and d2, 580 # and advance v1 and v2 past the leading digit strings. 581 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 582 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 583 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 584 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 585 if (d1 ~ /^0/) { 586 if (d2 ~ /^0/) { 587 # Compare two fractions. 588 while (d1 ~ /^0/ && d2 ~ /^0/) { 589 d1 = substr(d1, 2); len1-- 590 d2 = substr(d2, 2); len2-- 591 } 592 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 593 # The two components differ in length, and the common prefix 594 # contains only leading zeros. Consider the longer to be less. 595 d1 = -len1 596 d2 = -len2 597 } else { 598 # Otherwise, compare as strings. 599 d1 = "x" d1 600 d2 = "x" d2 601 } 602 } else { 603 # A fraction is less than an integer. 604 exit 1 605 } 606 } else { 607 if (d2 ~ /^0/) { 608 # An integer is greater than a fraction. 609 exit 2 610 } else { 611 # Compare two integers. 612 d1 += 0 613 d2 += 0 614 } 615 } 616 } else { 617 # The normal case, without worrying about digits. 618 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 619 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 620 } 621 if (d1 < d2) exit 1 622 if (d1 > d2) exit 2 623 } 624 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 625 # which mishandles some comparisons of empty strings to integers. 626 if (length(v2)) exit 1 627 if (length(v1)) exit 2 628 } 629' 630 631test -n "$DJDIR" || exec 7<&0 </dev/null 632exec 6>&1 633 634# Name of the host. 635# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 636# so uname gets run too. 637ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 638 639# 640# Initializations. 641# 642ac_default_prefix=/usr/local 643ac_clean_files= 644ac_config_libobj_dir=. 645LIBOBJS= 646cross_compiling=no 647subdirs= 648MFLAGS= 649MAKEFLAGS= 650 651# Identity of this package. 652PACKAGE_NAME='libX11' 653PACKAGE_TARNAME='libX11' 654PACKAGE_VERSION='1.6.8' 655PACKAGE_STRING='libX11 1.6.8' 656PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libx11/issues' 657PACKAGE_URL='' 658 659ac_unique_file="Makefile.am" 660# Factoring default headers for most tests. 661ac_includes_default="\ 662#include <stdio.h> 663#ifdef HAVE_SYS_TYPES_H 664# include <sys/types.h> 665#endif 666#ifdef HAVE_SYS_STAT_H 667# include <sys/stat.h> 668#endif 669#ifdef STDC_HEADERS 670# include <stdlib.h> 671# include <stddef.h> 672#else 673# ifdef HAVE_STDLIB_H 674# include <stdlib.h> 675# endif 676#endif 677#ifdef HAVE_STRING_H 678# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 679# include <memory.h> 680# endif 681# include <string.h> 682#endif 683#ifdef HAVE_STRINGS_H 684# include <strings.h> 685#endif 686#ifdef HAVE_INTTYPES_H 687# include <inttypes.h> 688#endif 689#ifdef HAVE_STDINT_H 690# include <stdint.h> 691#endif 692#ifdef HAVE_UNISTD_H 693# include <unistd.h> 694#endif" 695 696ac_header_list= 697ac_subst_vars='am__EXEEXT_FALSE 698am__EXEEXT_TRUE 699LTLIBOBJS 700XTMALLOC_ZERO_CFLAGS 701XMALLOC_ZERO_CFLAGS 702MALLOC_ZERO_CFLAGS 703XERRORDB 704XKEYSYMDB 705locales 706X11_LOCALEDIR 707XLOCALEDIR 708X11_LOCALELIBDIR 709XLOCALELIBDIR 710X11_LOCALEDATADIR 711XLOCALEDATADIR 712X11_LIBS 713X11_CFLAGS 714X11_LIBDIR 715X11_DATADIR 716MAKE_LINT_LIB_FALSE 717MAKE_LINT_LIB_TRUE 718LINTLIB 719LINT_FALSE 720LINT_TRUE 721LINT_FLAGS 722LINT 723XKBPROTO_REQUIRES 724XKB_FALSE 725XKB_TRUE 726BIGFONT_LIBS 727BIGFONT_CFLAGS 728XLOCALE_FALSE 729XLOCALE_TRUE 730XCMS_FALSE 731XCMS_TRUE 732KEYSYMDEFS 733XTHREAD_CFLAGS 734XTHREADLIB 735THRSTUBS_FALSE 736THRSTUBS_TRUE 737LAUNCHD 738OS2_FALSE 739OS2_TRUE 740WCHAR32 741LIBOBJS 742XLIB_LOADABLE_I18N_FALSE 743XLIB_LOADABLE_I18N_TRUE 744I18N_MODULE_LIBS 745X11_EXTRA_DEPS 746EXEEXT_FOR_BUILD 747LDFLAGS_FOR_BUILD 748CFLAGS_FOR_BUILD 749CPPFLAGS_FOR_BUILD 750CC_FOR_BUILD 751HAVE_PERL_FALSE 752HAVE_PERL_TRUE 753PERL 754TRADITIONALCPPFLAGS 755RAWCPPFLAGS 756RAWCPP 757HAVE_STYLESHEETS_FALSE 758HAVE_STYLESHEETS_TRUE 759XSL_STYLESHEET 760STYLESHEET_SRCDIR 761XORG_SGML_PATH 762HAVE_XSLTPROC_FALSE 763HAVE_XSLTPROC_TRUE 764XSLTPROC 765HAVE_FOP_FALSE 766HAVE_FOP_TRUE 767FOP 768HAVE_XMLTO_FALSE 769HAVE_XMLTO_TRUE 770HAVE_XMLTO_TEXT_FALSE 771HAVE_XMLTO_TEXT_TRUE 772XMLTO 773ENABLE_SPECS_FALSE 774ENABLE_SPECS_TRUE 775MAN_SUBSTS 776XORG_MAN_PAGE 777ADMIN_MAN_DIR 778DRIVER_MAN_DIR 779MISC_MAN_DIR 780FILE_MAN_DIR 781LIB_MAN_DIR 782APP_MAN_DIR 783ADMIN_MAN_SUFFIX 784DRIVER_MAN_SUFFIX 785MISC_MAN_SUFFIX 786FILE_MAN_SUFFIX 787LIB_MAN_SUFFIX 788APP_MAN_SUFFIX 789INSTALL_CMD 790PKG_CONFIG_LIBDIR 791PKG_CONFIG_PATH 792PKG_CONFIG 793CHANGELOG_CMD 794STRICT_CFLAGS 795CWARNFLAGS 796BASE_CFLAGS 797LT_SYS_LIBRARY_PATH 798OTOOL64 799OTOOL 800LIPO 801NMEDIT 802DSYMUTIL 803MANIFEST_TOOL 804RANLIB 805ac_ct_AR 806AR 807DLLTOOL 808OBJDUMP 809LN_S 810NM 811ac_ct_DUMPBIN 812DUMPBIN 813LD 814FGREP 815SED 816LIBTOOL 817AM_BACKSLASH 818AM_DEFAULT_VERBOSITY 819AM_DEFAULT_V 820AM_V 821am__fastdepCC_FALSE 822am__fastdepCC_TRUE 823CCDEPMODE 824am__nodep 825AMDEPBACKSLASH 826AMDEP_FALSE 827AMDEP_TRUE 828am__include 829DEPDIR 830am__untar 831am__tar 832AMTAR 833am__leading_dot 834SET_MAKE 835AWK 836mkdir_p 837MKDIR_P 838INSTALL_STRIP_PROGRAM 839STRIP 840install_sh 841MAKEINFO 842AUTOHEADER 843AUTOMAKE 844AUTOCONF 845ACLOCAL 846VERSION 847PACKAGE 848CYGPATH_W 849am__isrc 850INSTALL_DATA 851INSTALL_SCRIPT 852INSTALL_PROGRAM 853EGREP 854GREP 855CPP 856OBJEXT 857EXEEXT 858ac_ct_CC 859CPPFLAGS 860LDFLAGS 861CFLAGS 862CC 863host_os 864host_vendor 865host_cpu 866host 867build_os 868build_vendor 869build_cpu 870build 871target_alias 872host_alias 873build_alias 874LIBS 875ECHO_T 876ECHO_N 877ECHO_C 878DEFS 879mandir 880localedir 881libdir 882psdir 883pdfdir 884dvidir 885htmldir 886infodir 887docdir 888oldincludedir 889includedir 890localstatedir 891sharedstatedir 892sysconfdir 893datadir 894datarootdir 895libexecdir 896sbindir 897bindir 898program_transform_name 899prefix 900exec_prefix 901PACKAGE_URL 902PACKAGE_BUGREPORT 903PACKAGE_STRING 904PACKAGE_VERSION 905PACKAGE_TARNAME 906PACKAGE_NAME 907PATH_SEPARATOR 908SHELL 909am__quote' 910ac_subst_files='' 911ac_user_opts=' 912enable_option_checking 913enable_dependency_tracking 914enable_silent_rules 915enable_shared 916enable_static 917with_pic 918enable_fast_install 919with_aix_soname 920with_gnu_ld 921with_sysroot 922enable_libtool_lock 923enable_largefile 924enable_selective_werror 925enable_strict_compilation 926enable_specs 927with_xmlto 928with_fop 929with_xsltproc 930with_perl 931enable_unix_transport 932enable_tcp_transport 933enable_ipv6 934enable_local_transport 935enable_loadable_i18n 936enable_loadable_xcursor 937with_launchd 938enable_xthreads 939with_keysymdefdir 940enable_xcms 941enable_xlocale 942enable_xlocaledir 943enable_xf86bigfont 944enable_xkb 945enable_composecache 946with_lint 947enable_lint_library 948with_locale_lib_dir 949enable_malloc0returnsnull 950' 951 ac_precious_vars='build_alias 952host_alias 953target_alias 954CC 955CFLAGS 956LDFLAGS 957LIBS 958CPPFLAGS 959CPP 960LT_SYS_LIBRARY_PATH 961PKG_CONFIG 962PKG_CONFIG_PATH 963PKG_CONFIG_LIBDIR 964XMLTO 965FOP 966XSLTPROC 967PERL 968BIGFONT_CFLAGS 969BIGFONT_LIBS 970LINT 971LINT_FLAGS 972X11_CFLAGS 973X11_LIBS' 974 975 976# Initialize some variables set by options. 977ac_init_help= 978ac_init_version=false 979ac_unrecognized_opts= 980ac_unrecognized_sep= 981# The variables have the same names as the options, with 982# dashes changed to underlines. 983cache_file=/dev/null 984exec_prefix=NONE 985no_create= 986no_recursion= 987prefix=NONE 988program_prefix=NONE 989program_suffix=NONE 990program_transform_name=s,x,x, 991silent= 992site= 993srcdir= 994verbose= 995x_includes=NONE 996x_libraries=NONE 997 998# Installation directory options. 999# These are left unexpanded so users can "make install exec_prefix=/foo" 1000# and all the variables that are supposed to be based on exec_prefix 1001# by default will actually change. 1002# Use braces instead of parens because sh, perl, etc. also accept them. 1003# (The list follows the same order as the GNU Coding Standards.) 1004bindir='${exec_prefix}/bin' 1005sbindir='${exec_prefix}/sbin' 1006libexecdir='${exec_prefix}/libexec' 1007datarootdir='${prefix}/share' 1008datadir='${datarootdir}' 1009sysconfdir='${prefix}/etc' 1010sharedstatedir='${prefix}/com' 1011localstatedir='${prefix}/var' 1012includedir='${prefix}/include' 1013oldincludedir='/usr/include' 1014docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1015infodir='${datarootdir}/info' 1016htmldir='${docdir}' 1017dvidir='${docdir}' 1018pdfdir='${docdir}' 1019psdir='${docdir}' 1020libdir='${exec_prefix}/lib' 1021localedir='${datarootdir}/locale' 1022mandir='${datarootdir}/man' 1023 1024ac_prev= 1025ac_dashdash= 1026for ac_option 1027do 1028 # If the previous option needs an argument, assign it. 1029 if test -n "$ac_prev"; then 1030 eval $ac_prev=\$ac_option 1031 ac_prev= 1032 continue 1033 fi 1034 1035 case $ac_option in 1036 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1037 *=) ac_optarg= ;; 1038 *) ac_optarg=yes ;; 1039 esac 1040 1041 # Accept the important Cygnus configure options, so we can diagnose typos. 1042 1043 case $ac_dashdash$ac_option in 1044 --) 1045 ac_dashdash=yes ;; 1046 1047 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1048 ac_prev=bindir ;; 1049 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1050 bindir=$ac_optarg ;; 1051 1052 -build | --build | --buil | --bui | --bu) 1053 ac_prev=build_alias ;; 1054 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1055 build_alias=$ac_optarg ;; 1056 1057 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1059 ac_prev=cache_file ;; 1060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1062 cache_file=$ac_optarg ;; 1063 1064 --config-cache | -C) 1065 cache_file=config.cache ;; 1066 1067 -datadir | --datadir | --datadi | --datad) 1068 ac_prev=datadir ;; 1069 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1070 datadir=$ac_optarg ;; 1071 1072 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1073 | --dataroo | --dataro | --datar) 1074 ac_prev=datarootdir ;; 1075 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1076 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1077 datarootdir=$ac_optarg ;; 1078 1079 -disable-* | --disable-*) 1080 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1081 # Reject names that are not valid shell variable names. 1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1083 as_fn_error $? "invalid feature name: $ac_useropt" 1084 ac_useropt_orig=$ac_useropt 1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1086 case $ac_user_opts in 1087 *" 1088"enable_$ac_useropt" 1089"*) ;; 1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1091 ac_unrecognized_sep=', ';; 1092 esac 1093 eval enable_$ac_useropt=no ;; 1094 1095 -docdir | --docdir | --docdi | --doc | --do) 1096 ac_prev=docdir ;; 1097 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1098 docdir=$ac_optarg ;; 1099 1100 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1101 ac_prev=dvidir ;; 1102 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1103 dvidir=$ac_optarg ;; 1104 1105 -enable-* | --enable-*) 1106 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1107 # Reject names that are not valid shell variable names. 1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1109 as_fn_error $? "invalid feature name: $ac_useropt" 1110 ac_useropt_orig=$ac_useropt 1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1112 case $ac_user_opts in 1113 *" 1114"enable_$ac_useropt" 1115"*) ;; 1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1117 ac_unrecognized_sep=', ';; 1118 esac 1119 eval enable_$ac_useropt=\$ac_optarg ;; 1120 1121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1123 | --exec | --exe | --ex) 1124 ac_prev=exec_prefix ;; 1125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1127 | --exec=* | --exe=* | --ex=*) 1128 exec_prefix=$ac_optarg ;; 1129 1130 -gas | --gas | --ga | --g) 1131 # Obsolete; use --with-gas. 1132 with_gas=yes ;; 1133 1134 -help | --help | --hel | --he | -h) 1135 ac_init_help=long ;; 1136 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1137 ac_init_help=recursive ;; 1138 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1139 ac_init_help=short ;; 1140 1141 -host | --host | --hos | --ho) 1142 ac_prev=host_alias ;; 1143 -host=* | --host=* | --hos=* | --ho=*) 1144 host_alias=$ac_optarg ;; 1145 1146 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1147 ac_prev=htmldir ;; 1148 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1149 | --ht=*) 1150 htmldir=$ac_optarg ;; 1151 1152 -includedir | --includedir | --includedi | --included | --include \ 1153 | --includ | --inclu | --incl | --inc) 1154 ac_prev=includedir ;; 1155 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1156 | --includ=* | --inclu=* | --incl=* | --inc=*) 1157 includedir=$ac_optarg ;; 1158 1159 -infodir | --infodir | --infodi | --infod | --info | --inf) 1160 ac_prev=infodir ;; 1161 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1162 infodir=$ac_optarg ;; 1163 1164 -libdir | --libdir | --libdi | --libd) 1165 ac_prev=libdir ;; 1166 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1167 libdir=$ac_optarg ;; 1168 1169 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1170 | --libexe | --libex | --libe) 1171 ac_prev=libexecdir ;; 1172 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1173 | --libexe=* | --libex=* | --libe=*) 1174 libexecdir=$ac_optarg ;; 1175 1176 -localedir | --localedir | --localedi | --localed | --locale) 1177 ac_prev=localedir ;; 1178 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1179 localedir=$ac_optarg ;; 1180 1181 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1182 | --localstate | --localstat | --localsta | --localst | --locals) 1183 ac_prev=localstatedir ;; 1184 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1185 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1186 localstatedir=$ac_optarg ;; 1187 1188 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1189 ac_prev=mandir ;; 1190 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1191 mandir=$ac_optarg ;; 1192 1193 -nfp | --nfp | --nf) 1194 # Obsolete; use --without-fp. 1195 with_fp=no ;; 1196 1197 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1198 | --no-cr | --no-c | -n) 1199 no_create=yes ;; 1200 1201 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1202 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1203 no_recursion=yes ;; 1204 1205 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1206 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1207 | --oldin | --oldi | --old | --ol | --o) 1208 ac_prev=oldincludedir ;; 1209 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1210 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1211 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1212 oldincludedir=$ac_optarg ;; 1213 1214 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1215 ac_prev=prefix ;; 1216 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1217 prefix=$ac_optarg ;; 1218 1219 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1220 | --program-pre | --program-pr | --program-p) 1221 ac_prev=program_prefix ;; 1222 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1223 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1224 program_prefix=$ac_optarg ;; 1225 1226 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1227 | --program-suf | --program-su | --program-s) 1228 ac_prev=program_suffix ;; 1229 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1230 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1231 program_suffix=$ac_optarg ;; 1232 1233 -program-transform-name | --program-transform-name \ 1234 | --program-transform-nam | --program-transform-na \ 1235 | --program-transform-n | --program-transform- \ 1236 | --program-transform | --program-transfor \ 1237 | --program-transfo | --program-transf \ 1238 | --program-trans | --program-tran \ 1239 | --progr-tra | --program-tr | --program-t) 1240 ac_prev=program_transform_name ;; 1241 -program-transform-name=* | --program-transform-name=* \ 1242 | --program-transform-nam=* | --program-transform-na=* \ 1243 | --program-transform-n=* | --program-transform-=* \ 1244 | --program-transform=* | --program-transfor=* \ 1245 | --program-transfo=* | --program-transf=* \ 1246 | --program-trans=* | --program-tran=* \ 1247 | --progr-tra=* | --program-tr=* | --program-t=*) 1248 program_transform_name=$ac_optarg ;; 1249 1250 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1251 ac_prev=pdfdir ;; 1252 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1253 pdfdir=$ac_optarg ;; 1254 1255 -psdir | --psdir | --psdi | --psd | --ps) 1256 ac_prev=psdir ;; 1257 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1258 psdir=$ac_optarg ;; 1259 1260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1261 | -silent | --silent | --silen | --sile | --sil) 1262 silent=yes ;; 1263 1264 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1265 ac_prev=sbindir ;; 1266 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1267 | --sbi=* | --sb=*) 1268 sbindir=$ac_optarg ;; 1269 1270 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1271 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1272 | --sharedst | --shareds | --shared | --share | --shar \ 1273 | --sha | --sh) 1274 ac_prev=sharedstatedir ;; 1275 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1276 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1277 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1278 | --sha=* | --sh=*) 1279 sharedstatedir=$ac_optarg ;; 1280 1281 -site | --site | --sit) 1282 ac_prev=site ;; 1283 -site=* | --site=* | --sit=*) 1284 site=$ac_optarg ;; 1285 1286 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1287 ac_prev=srcdir ;; 1288 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1289 srcdir=$ac_optarg ;; 1290 1291 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1292 | --syscon | --sysco | --sysc | --sys | --sy) 1293 ac_prev=sysconfdir ;; 1294 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1295 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1296 sysconfdir=$ac_optarg ;; 1297 1298 -target | --target | --targe | --targ | --tar | --ta | --t) 1299 ac_prev=target_alias ;; 1300 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1301 target_alias=$ac_optarg ;; 1302 1303 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1304 verbose=yes ;; 1305 1306 -version | --version | --versio | --versi | --vers | -V) 1307 ac_init_version=: ;; 1308 1309 -with-* | --with-*) 1310 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1311 # Reject names that are not valid shell variable names. 1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1313 as_fn_error $? "invalid package name: $ac_useropt" 1314 ac_useropt_orig=$ac_useropt 1315 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1316 case $ac_user_opts in 1317 *" 1318"with_$ac_useropt" 1319"*) ;; 1320 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1321 ac_unrecognized_sep=', ';; 1322 esac 1323 eval with_$ac_useropt=\$ac_optarg ;; 1324 1325 -without-* | --without-*) 1326 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1327 # Reject names that are not valid shell variable names. 1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1329 as_fn_error $? "invalid package name: $ac_useropt" 1330 ac_useropt_orig=$ac_useropt 1331 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1332 case $ac_user_opts in 1333 *" 1334"with_$ac_useropt" 1335"*) ;; 1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1337 ac_unrecognized_sep=', ';; 1338 esac 1339 eval with_$ac_useropt=no ;; 1340 1341 --x) 1342 # Obsolete; use --with-x. 1343 with_x=yes ;; 1344 1345 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1346 | --x-incl | --x-inc | --x-in | --x-i) 1347 ac_prev=x_includes ;; 1348 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1349 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1350 x_includes=$ac_optarg ;; 1351 1352 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1353 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1354 ac_prev=x_libraries ;; 1355 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1356 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1357 x_libraries=$ac_optarg ;; 1358 1359 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1360Try \`$0 --help' for more information" 1361 ;; 1362 1363 *=*) 1364 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1365 # Reject names that are not valid shell variable names. 1366 case $ac_envvar in #( 1367 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1368 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1369 esac 1370 eval $ac_envvar=\$ac_optarg 1371 export $ac_envvar ;; 1372 1373 *) 1374 # FIXME: should be removed in autoconf 3.0. 1375 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1376 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1377 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1378 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1379 ;; 1380 1381 esac 1382done 1383 1384if test -n "$ac_prev"; then 1385 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1386 as_fn_error $? "missing argument to $ac_option" 1387fi 1388 1389if test -n "$ac_unrecognized_opts"; then 1390 case $enable_option_checking in 1391 no) ;; 1392 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1393 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1394 esac 1395fi 1396 1397# Check all directory arguments for consistency. 1398for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1399 datadir sysconfdir sharedstatedir localstatedir includedir \ 1400 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1401 libdir localedir mandir 1402do 1403 eval ac_val=\$$ac_var 1404 # Remove trailing slashes. 1405 case $ac_val in 1406 */ ) 1407 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1408 eval $ac_var=\$ac_val;; 1409 esac 1410 # Be sure to have absolute directory names. 1411 case $ac_val in 1412 [\\/$]* | ?:[\\/]* ) continue;; 1413 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1414 esac 1415 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1416done 1417 1418# There might be people who depend on the old broken behavior: `$host' 1419# used to hold the argument of --host etc. 1420# FIXME: To remove some day. 1421build=$build_alias 1422host=$host_alias 1423target=$target_alias 1424 1425# FIXME: To remove some day. 1426if test "x$host_alias" != x; then 1427 if test "x$build_alias" = x; then 1428 cross_compiling=maybe 1429 elif test "x$build_alias" != "x$host_alias"; then 1430 cross_compiling=yes 1431 fi 1432fi 1433 1434ac_tool_prefix= 1435test -n "$host_alias" && ac_tool_prefix=$host_alias- 1436 1437test "$silent" = yes && exec 6>/dev/null 1438 1439 1440ac_pwd=`pwd` && test -n "$ac_pwd" && 1441ac_ls_di=`ls -di .` && 1442ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1443 as_fn_error $? "working directory cannot be determined" 1444test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1445 as_fn_error $? "pwd does not report name of working directory" 1446 1447 1448# Find the source files, if location was not specified. 1449if test -z "$srcdir"; then 1450 ac_srcdir_defaulted=yes 1451 # Try the directory containing this script, then the parent directory. 1452 ac_confdir=`$as_dirname -- "$as_myself" || 1453$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1454 X"$as_myself" : 'X\(//\)[^/]' \| \ 1455 X"$as_myself" : 'X\(//\)$' \| \ 1456 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1457$as_echo X"$as_myself" | 1458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1459 s//\1/ 1460 q 1461 } 1462 /^X\(\/\/\)[^/].*/{ 1463 s//\1/ 1464 q 1465 } 1466 /^X\(\/\/\)$/{ 1467 s//\1/ 1468 q 1469 } 1470 /^X\(\/\).*/{ 1471 s//\1/ 1472 q 1473 } 1474 s/.*/./; q'` 1475 srcdir=$ac_confdir 1476 if test ! -r "$srcdir/$ac_unique_file"; then 1477 srcdir=.. 1478 fi 1479else 1480 ac_srcdir_defaulted=no 1481fi 1482if test ! -r "$srcdir/$ac_unique_file"; then 1483 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1484 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1485fi 1486ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1487ac_abs_confdir=`( 1488 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1489 pwd)` 1490# When building in place, set srcdir=. 1491if test "$ac_abs_confdir" = "$ac_pwd"; then 1492 srcdir=. 1493fi 1494# Remove unnecessary trailing slashes from srcdir. 1495# Double slashes in file names in object file debugging info 1496# mess up M-x gdb in Emacs. 1497case $srcdir in 1498*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1499esac 1500for ac_var in $ac_precious_vars; do 1501 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1502 eval ac_env_${ac_var}_value=\$${ac_var} 1503 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1504 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1505done 1506 1507# 1508# Report the --help message. 1509# 1510if test "$ac_init_help" = "long"; then 1511 # Omit some internal or obsolete options to make the list less imposing. 1512 # This message is too long to be a string in the A/UX 3.1 sh. 1513 cat <<_ACEOF 1514\`configure' configures libX11 1.6.8 to adapt to many kinds of systems. 1515 1516Usage: $0 [OPTION]... [VAR=VALUE]... 1517 1518To assign environment variables (e.g., CC, CFLAGS...), specify them as 1519VAR=VALUE. See below for descriptions of some of the useful variables. 1520 1521Defaults for the options are specified in brackets. 1522 1523Configuration: 1524 -h, --help display this help and exit 1525 --help=short display options specific to this package 1526 --help=recursive display the short help of all the included packages 1527 -V, --version display version information and exit 1528 -q, --quiet, --silent do not print \`checking ...' messages 1529 --cache-file=FILE cache test results in FILE [disabled] 1530 -C, --config-cache alias for \`--cache-file=config.cache' 1531 -n, --no-create do not create output files 1532 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1533 1534Installation directories: 1535 --prefix=PREFIX install architecture-independent files in PREFIX 1536 [$ac_default_prefix] 1537 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1538 [PREFIX] 1539 1540By default, \`make install' will install all the files in 1541\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1542an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1543for instance \`--prefix=\$HOME'. 1544 1545For better control, use the options below. 1546 1547Fine tuning of the installation directories: 1548 --bindir=DIR user executables [EPREFIX/bin] 1549 --sbindir=DIR system admin executables [EPREFIX/sbin] 1550 --libexecdir=DIR program executables [EPREFIX/libexec] 1551 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1552 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1553 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1554 --libdir=DIR object code libraries [EPREFIX/lib] 1555 --includedir=DIR C header files [PREFIX/include] 1556 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1557 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1558 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1559 --infodir=DIR info documentation [DATAROOTDIR/info] 1560 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1561 --mandir=DIR man documentation [DATAROOTDIR/man] 1562 --docdir=DIR documentation root [DATAROOTDIR/doc/libX11] 1563 --htmldir=DIR html documentation [DOCDIR] 1564 --dvidir=DIR dvi documentation [DOCDIR] 1565 --pdfdir=DIR pdf documentation [DOCDIR] 1566 --psdir=DIR ps documentation [DOCDIR] 1567_ACEOF 1568 1569 cat <<\_ACEOF 1570 1571Program names: 1572 --program-prefix=PREFIX prepend PREFIX to installed program names 1573 --program-suffix=SUFFIX append SUFFIX to installed program names 1574 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1575 1576System types: 1577 --build=BUILD configure for building on BUILD [guessed] 1578 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1579_ACEOF 1580fi 1581 1582if test -n "$ac_init_help"; then 1583 case $ac_init_help in 1584 short | recursive ) echo "Configuration of libX11 1.6.8:";; 1585 esac 1586 cat <<\_ACEOF 1587 1588Optional Features: 1589 --disable-option-checking ignore unrecognized --enable/--with options 1590 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1591 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1592 --enable-dependency-tracking 1593 do not reject slow dependency extractors 1594 --disable-dependency-tracking 1595 speeds up one-time build 1596 --enable-silent-rules less verbose build output (undo: "make V=1") 1597 --disable-silent-rules verbose build output (undo: "make V=0") 1598 --enable-shared[=PKGS] build shared libraries [default=yes] 1599 --enable-static[=PKGS] build static libraries [default=yes] 1600 --enable-fast-install[=PKGS] 1601 optimize for fast installation [default=yes] 1602 --disable-libtool-lock avoid locking (might break parallel builds) 1603 --disable-largefile omit support for large files 1604 --disable-selective-werror 1605 Turn off selective compiler errors. (default: 1606 enabled) 1607 --enable-strict-compilation 1608 Enable all warnings from compiler and make them 1609 errors (default: disabled) 1610 --enable-specs Enable building the specs (default: yes) 1611 --enable-unix-transport Enable UNIX domain socket transport 1612 --enable-tcp-transport Enable TCP socket transport 1613 --enable-ipv6 Enable IPv6 support 1614 --enable-local-transport 1615 Enable os-specific local transport 1616 --enable-loadable-i18n Controls loadable i18n module support 1617 --disable-loadable-xcursor 1618 Controls loadable xcursor library support 1619 --disable-xthreads Disable Xlib support for Multithreading 1620 --disable-xcms Disable Xlib support for CMS *EXPERIMENTAL* 1621 --disable-xlocale Disable Xlib locale implementation *EXPERIMENTAL* 1622 --enable-xlocaledir Enable XLOCALEDIR environment variable support 1623 --disable-xf86bigfont Disable XF86BigFont extension support 1624 --disable-xkb Disable XKB support *EXPERIMENTAL* 1625 --disable-composecache Disable compose table cache support 1626 --enable-lint-library Create lint library (default: disabled) 1627 --enable-malloc0returnsnull 1628 malloc(0) returns NULL (default: auto) 1629 1630Optional Packages: 1631 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1632 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1633 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1634 both] 1635 --with-aix-soname=aix|svr4|both 1636 shared library versioning (aka "SONAME") variant to 1637 provide on AIX, [default=aix]. 1638 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1639 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1640 compiler's sysroot if not specified). 1641 --with-xmlto Use xmlto to regenerate documentation (default: 1642 auto) 1643 --with-fop Use fop to regenerate documentation (default: no) 1644 --with-xsltproc Use xsltproc for the transformation of XML documents 1645 (default: auto) 1646 --with-perl Use perl for extracting information from files 1647 (default: auto) 1648 --with-launchd Build with support for Apple's launchd (default: 1649 auto) 1650 --with-keysymdefdir=DIR The location of keysymdef.h (defaults to xproto 1651 include dir) 1652 --with-lint Use a lint-style source code checker (default: 1653 disabled) 1654 --with-locale-lib-dir=DIR 1655 Directory where locale libraries files are installed 1656 (default: $libdir/X11/locale) 1657 1658Some influential environment variables: 1659 CC C compiler command 1660 CFLAGS C compiler flags 1661 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1662 nonstandard directory <lib dir> 1663 LIBS libraries to pass to the linker, e.g. -l<library> 1664 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1665 you have headers in a nonstandard directory <include dir> 1666 CPP C preprocessor 1667 LT_SYS_LIBRARY_PATH 1668 User-defined run-time library search path. 1669 PKG_CONFIG path to pkg-config utility 1670 PKG_CONFIG_PATH 1671 directories to add to pkg-config's search path 1672 PKG_CONFIG_LIBDIR 1673 path overriding pkg-config's built-in search path 1674 XMLTO Path to xmlto command 1675 FOP Path to fop command 1676 XSLTPROC Path to xsltproc command 1677 PERL Path to perl command 1678 BIGFONT_CFLAGS 1679 C compiler flags for BIGFONT, overriding pkg-config 1680 BIGFONT_LIBS 1681 linker flags for BIGFONT, overriding pkg-config 1682 LINT Path to a lint-style command 1683 LINT_FLAGS Flags for the lint-style command 1684 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1685 X11_LIBS linker flags for X11, overriding pkg-config 1686 1687Use these variables to override the choices made by `configure' or to help 1688it to find libraries and programs with nonstandard names/locations. 1689 1690Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/issues>. 1691_ACEOF 1692ac_status=$? 1693fi 1694 1695if test "$ac_init_help" = "recursive"; then 1696 # If there are subdirs, report their specific --help. 1697 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1698 test -d "$ac_dir" || 1699 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1700 continue 1701 ac_builddir=. 1702 1703case "$ac_dir" in 1704.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1705*) 1706 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1707 # A ".." for each directory in $ac_dir_suffix. 1708 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1709 case $ac_top_builddir_sub in 1710 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1711 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1712 esac ;; 1713esac 1714ac_abs_top_builddir=$ac_pwd 1715ac_abs_builddir=$ac_pwd$ac_dir_suffix 1716# for backward compatibility: 1717ac_top_builddir=$ac_top_build_prefix 1718 1719case $srcdir in 1720 .) # We are building in place. 1721 ac_srcdir=. 1722 ac_top_srcdir=$ac_top_builddir_sub 1723 ac_abs_top_srcdir=$ac_pwd ;; 1724 [\\/]* | ?:[\\/]* ) # Absolute name. 1725 ac_srcdir=$srcdir$ac_dir_suffix; 1726 ac_top_srcdir=$srcdir 1727 ac_abs_top_srcdir=$srcdir ;; 1728 *) # Relative name. 1729 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1730 ac_top_srcdir=$ac_top_build_prefix$srcdir 1731 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1732esac 1733ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1734 1735 cd "$ac_dir" || { ac_status=$?; continue; } 1736 # Check for guested configure. 1737 if test -f "$ac_srcdir/configure.gnu"; then 1738 echo && 1739 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1740 elif test -f "$ac_srcdir/configure"; then 1741 echo && 1742 $SHELL "$ac_srcdir/configure" --help=recursive 1743 else 1744 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1745 fi || ac_status=$? 1746 cd "$ac_pwd" || { ac_status=$?; break; } 1747 done 1748fi 1749 1750test -n "$ac_init_help" && exit $ac_status 1751if $ac_init_version; then 1752 cat <<\_ACEOF 1753libX11 configure 1.6.8 1754generated by GNU Autoconf 2.69 1755 1756Copyright (C) 2012 Free Software Foundation, Inc. 1757This configure script is free software; the Free Software Foundation 1758gives unlimited permission to copy, distribute and modify it. 1759_ACEOF 1760 exit 1761fi 1762 1763## ------------------------ ## 1764## Autoconf initialization. ## 1765## ------------------------ ## 1766 1767# ac_fn_c_try_compile LINENO 1768# -------------------------- 1769# Try to compile conftest.$ac_ext, and return whether this succeeded. 1770ac_fn_c_try_compile () 1771{ 1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1773 rm -f conftest.$ac_objext 1774 if { { ac_try="$ac_compile" 1775case "(($ac_try" in 1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1777 *) ac_try_echo=$ac_try;; 1778esac 1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1780$as_echo "$ac_try_echo"; } >&5 1781 (eval "$ac_compile") 2>conftest.err 1782 ac_status=$? 1783 if test -s conftest.err; then 1784 grep -v '^ *+' conftest.err >conftest.er1 1785 cat conftest.er1 >&5 1786 mv -f conftest.er1 conftest.err 1787 fi 1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1789 test $ac_status = 0; } && { 1790 test -z "$ac_c_werror_flag" || 1791 test ! -s conftest.err 1792 } && test -s conftest.$ac_objext; then : 1793 ac_retval=0 1794else 1795 $as_echo "$as_me: failed program was:" >&5 1796sed 's/^/| /' conftest.$ac_ext >&5 1797 1798 ac_retval=1 1799fi 1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1801 as_fn_set_status $ac_retval 1802 1803} # ac_fn_c_try_compile 1804 1805# ac_fn_c_try_cpp LINENO 1806# ---------------------- 1807# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1808ac_fn_c_try_cpp () 1809{ 1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1811 if { { ac_try="$ac_cpp conftest.$ac_ext" 1812case "(($ac_try" in 1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1814 *) ac_try_echo=$ac_try;; 1815esac 1816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1817$as_echo "$ac_try_echo"; } >&5 1818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1819 ac_status=$? 1820 if test -s conftest.err; then 1821 grep -v '^ *+' conftest.err >conftest.er1 1822 cat conftest.er1 >&5 1823 mv -f conftest.er1 conftest.err 1824 fi 1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1826 test $ac_status = 0; } > conftest.i && { 1827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1828 test ! -s conftest.err 1829 }; then : 1830 ac_retval=0 1831else 1832 $as_echo "$as_me: failed program was:" >&5 1833sed 's/^/| /' conftest.$ac_ext >&5 1834 1835 ac_retval=1 1836fi 1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1838 as_fn_set_status $ac_retval 1839 1840} # ac_fn_c_try_cpp 1841 1842# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1843# ------------------------------------------------------- 1844# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1845# the include files in INCLUDES and setting the cache variable VAR 1846# accordingly. 1847ac_fn_c_check_header_mongrel () 1848{ 1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1850 if eval \${$3+:} false; then : 1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1852$as_echo_n "checking for $2... " >&6; } 1853if eval \${$3+:} false; then : 1854 $as_echo_n "(cached) " >&6 1855fi 1856eval ac_res=\$$3 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1858$as_echo "$ac_res" >&6; } 1859else 1860 # Is the header compilable? 1861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1862$as_echo_n "checking $2 usability... " >&6; } 1863cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1864/* end confdefs.h. */ 1865$4 1866#include <$2> 1867_ACEOF 1868if ac_fn_c_try_compile "$LINENO"; then : 1869 ac_header_compiler=yes 1870else 1871 ac_header_compiler=no 1872fi 1873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1875$as_echo "$ac_header_compiler" >&6; } 1876 1877# Is the header present? 1878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1879$as_echo_n "checking $2 presence... " >&6; } 1880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1881/* end confdefs.h. */ 1882#include <$2> 1883_ACEOF 1884if ac_fn_c_try_cpp "$LINENO"; then : 1885 ac_header_preproc=yes 1886else 1887 ac_header_preproc=no 1888fi 1889rm -f conftest.err conftest.i conftest.$ac_ext 1890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1891$as_echo "$ac_header_preproc" >&6; } 1892 1893# So? What about this header? 1894case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1895 yes:no: ) 1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1897$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1899$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1900 ;; 1901 no:yes:* ) 1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1903$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1905$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1907$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1909$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1911$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1912( $as_echo "## -------------------------------------------------------------------- ## 1913## Report this to https://gitlab.freedesktop.org/xorg/lib/libx11/issues ## 1914## -------------------------------------------------------------------- ##" 1915 ) | sed "s/^/$as_me: WARNING: /" >&2 1916 ;; 1917esac 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1919$as_echo_n "checking for $2... " >&6; } 1920if eval \${$3+:} false; then : 1921 $as_echo_n "(cached) " >&6 1922else 1923 eval "$3=\$ac_header_compiler" 1924fi 1925eval ac_res=\$$3 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1927$as_echo "$ac_res" >&6; } 1928fi 1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1930 1931} # ac_fn_c_check_header_mongrel 1932 1933# ac_fn_c_try_run LINENO 1934# ---------------------- 1935# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1936# that executables *can* be run. 1937ac_fn_c_try_run () 1938{ 1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1940 if { { ac_try="$ac_link" 1941case "(($ac_try" in 1942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1943 *) ac_try_echo=$ac_try;; 1944esac 1945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1946$as_echo "$ac_try_echo"; } >&5 1947 (eval "$ac_link") 2>&5 1948 ac_status=$? 1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1950 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1951 { { case "(($ac_try" in 1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1953 *) ac_try_echo=$ac_try;; 1954esac 1955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1956$as_echo "$ac_try_echo"; } >&5 1957 (eval "$ac_try") 2>&5 1958 ac_status=$? 1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1960 test $ac_status = 0; }; }; then : 1961 ac_retval=0 1962else 1963 $as_echo "$as_me: program exited with status $ac_status" >&5 1964 $as_echo "$as_me: failed program was:" >&5 1965sed 's/^/| /' conftest.$ac_ext >&5 1966 1967 ac_retval=$ac_status 1968fi 1969 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1971 as_fn_set_status $ac_retval 1972 1973} # ac_fn_c_try_run 1974 1975# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1976# ------------------------------------------------------- 1977# Tests whether HEADER exists and can be compiled using the include files in 1978# INCLUDES, setting the cache variable VAR accordingly. 1979ac_fn_c_check_header_compile () 1980{ 1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1983$as_echo_n "checking for $2... " >&6; } 1984if eval \${$3+:} false; then : 1985 $as_echo_n "(cached) " >&6 1986else 1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1988/* end confdefs.h. */ 1989$4 1990#include <$2> 1991_ACEOF 1992if ac_fn_c_try_compile "$LINENO"; then : 1993 eval "$3=yes" 1994else 1995 eval "$3=no" 1996fi 1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1998fi 1999eval ac_res=\$$3 2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2001$as_echo "$ac_res" >&6; } 2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2003 2004} # ac_fn_c_check_header_compile 2005 2006# ac_fn_c_try_link LINENO 2007# ----------------------- 2008# Try to link conftest.$ac_ext, and return whether this succeeded. 2009ac_fn_c_try_link () 2010{ 2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2012 rm -f conftest.$ac_objext conftest$ac_exeext 2013 if { { ac_try="$ac_link" 2014case "(($ac_try" in 2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2016 *) ac_try_echo=$ac_try;; 2017esac 2018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2019$as_echo "$ac_try_echo"; } >&5 2020 (eval "$ac_link") 2>conftest.err 2021 ac_status=$? 2022 if test -s conftest.err; then 2023 grep -v '^ *+' conftest.err >conftest.er1 2024 cat conftest.er1 >&5 2025 mv -f conftest.er1 conftest.err 2026 fi 2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2028 test $ac_status = 0; } && { 2029 test -z "$ac_c_werror_flag" || 2030 test ! -s conftest.err 2031 } && test -s conftest$ac_exeext && { 2032 test "$cross_compiling" = yes || 2033 test -x conftest$ac_exeext 2034 }; then : 2035 ac_retval=0 2036else 2037 $as_echo "$as_me: failed program was:" >&5 2038sed 's/^/| /' conftest.$ac_ext >&5 2039 2040 ac_retval=1 2041fi 2042 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2043 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2044 # interfere with the next link command; also delete a directory that is 2045 # left behind by Apple's compiler. We do this before executing the actions. 2046 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2048 as_fn_set_status $ac_retval 2049 2050} # ac_fn_c_try_link 2051 2052# ac_fn_c_check_func LINENO FUNC VAR 2053# ---------------------------------- 2054# Tests whether FUNC exists, setting the cache variable VAR accordingly 2055ac_fn_c_check_func () 2056{ 2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2059$as_echo_n "checking for $2... " >&6; } 2060if eval \${$3+:} false; then : 2061 $as_echo_n "(cached) " >&6 2062else 2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2064/* end confdefs.h. */ 2065/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2066 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2067#define $2 innocuous_$2 2068 2069/* System header to define __stub macros and hopefully few prototypes, 2070 which can conflict with char $2 (); below. 2071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2072 <limits.h> exists even on freestanding compilers. */ 2073 2074#ifdef __STDC__ 2075# include <limits.h> 2076#else 2077# include <assert.h> 2078#endif 2079 2080#undef $2 2081 2082/* Override any GCC internal prototype to avoid an error. 2083 Use char because int might match the return type of a GCC 2084 builtin and then its argument prototype would still apply. */ 2085#ifdef __cplusplus 2086extern "C" 2087#endif 2088char $2 (); 2089/* The GNU C library defines this for functions which it implements 2090 to always fail with ENOSYS. Some functions are actually named 2091 something starting with __ and the normal name is an alias. */ 2092#if defined __stub_$2 || defined __stub___$2 2093choke me 2094#endif 2095 2096int 2097main () 2098{ 2099return $2 (); 2100 ; 2101 return 0; 2102} 2103_ACEOF 2104if ac_fn_c_try_link "$LINENO"; then : 2105 eval "$3=yes" 2106else 2107 eval "$3=no" 2108fi 2109rm -f core conftest.err conftest.$ac_objext \ 2110 conftest$ac_exeext conftest.$ac_ext 2111fi 2112eval ac_res=\$$3 2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2114$as_echo "$ac_res" >&6; } 2115 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2116 2117} # ac_fn_c_check_func 2118 2119# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2120# --------------------------------------------- 2121# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2122# accordingly. 2123ac_fn_c_check_decl () 2124{ 2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2126 as_decl_name=`echo $2|sed 's/ *(.*//'` 2127 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2129$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2130if eval \${$3+:} false; then : 2131 $as_echo_n "(cached) " >&6 2132else 2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2134/* end confdefs.h. */ 2135$4 2136int 2137main () 2138{ 2139#ifndef $as_decl_name 2140#ifdef __cplusplus 2141 (void) $as_decl_use; 2142#else 2143 (void) $as_decl_name; 2144#endif 2145#endif 2146 2147 ; 2148 return 0; 2149} 2150_ACEOF 2151if ac_fn_c_try_compile "$LINENO"; then : 2152 eval "$3=yes" 2153else 2154 eval "$3=no" 2155fi 2156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2157fi 2158eval ac_res=\$$3 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2160$as_echo "$ac_res" >&6; } 2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2162 2163} # ac_fn_c_check_decl 2164 2165# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2166# ---------------------------------------------------- 2167# Tries to find if the field MEMBER exists in type AGGR, after including 2168# INCLUDES, setting cache variable VAR accordingly. 2169ac_fn_c_check_member () 2170{ 2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2173$as_echo_n "checking for $2.$3... " >&6; } 2174if eval \${$4+:} false; then : 2175 $as_echo_n "(cached) " >&6 2176else 2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2178/* end confdefs.h. */ 2179$5 2180int 2181main () 2182{ 2183static $2 ac_aggr; 2184if (ac_aggr.$3) 2185return 0; 2186 ; 2187 return 0; 2188} 2189_ACEOF 2190if ac_fn_c_try_compile "$LINENO"; then : 2191 eval "$4=yes" 2192else 2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2194/* end confdefs.h. */ 2195$5 2196int 2197main () 2198{ 2199static $2 ac_aggr; 2200if (sizeof ac_aggr.$3) 2201return 0; 2202 ; 2203 return 0; 2204} 2205_ACEOF 2206if ac_fn_c_try_compile "$LINENO"; then : 2207 eval "$4=yes" 2208else 2209 eval "$4=no" 2210fi 2211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2212fi 2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2214fi 2215eval ac_res=\$$4 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2217$as_echo "$ac_res" >&6; } 2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2219 2220} # ac_fn_c_check_member 2221 2222# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2223# ------------------------------------------- 2224# Tests whether TYPE exists after having included INCLUDES, setting cache 2225# variable VAR accordingly. 2226ac_fn_c_check_type () 2227{ 2228 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2230$as_echo_n "checking for $2... " >&6; } 2231if eval \${$3+:} false; then : 2232 $as_echo_n "(cached) " >&6 2233else 2234 eval "$3=no" 2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2236/* end confdefs.h. */ 2237$4 2238int 2239main () 2240{ 2241if (sizeof ($2)) 2242 return 0; 2243 ; 2244 return 0; 2245} 2246_ACEOF 2247if ac_fn_c_try_compile "$LINENO"; then : 2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2249/* end confdefs.h. */ 2250$4 2251int 2252main () 2253{ 2254if (sizeof (($2))) 2255 return 0; 2256 ; 2257 return 0; 2258} 2259_ACEOF 2260if ac_fn_c_try_compile "$LINENO"; then : 2261 2262else 2263 eval "$3=yes" 2264fi 2265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2266fi 2267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2268fi 2269eval ac_res=\$$3 2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2271$as_echo "$ac_res" >&6; } 2272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2273 2274} # ac_fn_c_check_type 2275cat >config.log <<_ACEOF 2276This file contains any messages produced by compilers while 2277running configure, to aid debugging if configure makes a mistake. 2278 2279It was created by libX11 $as_me 1.6.8, which was 2280generated by GNU Autoconf 2.69. Invocation command line was 2281 2282 $ $0 $@ 2283 2284_ACEOF 2285exec 5>>config.log 2286{ 2287cat <<_ASUNAME 2288## --------- ## 2289## Platform. ## 2290## --------- ## 2291 2292hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2293uname -m = `(uname -m) 2>/dev/null || echo unknown` 2294uname -r = `(uname -r) 2>/dev/null || echo unknown` 2295uname -s = `(uname -s) 2>/dev/null || echo unknown` 2296uname -v = `(uname -v) 2>/dev/null || echo unknown` 2297 2298/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2299/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2300 2301/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2302/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2303/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2304/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2305/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2306/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2307/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2308 2309_ASUNAME 2310 2311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2312for as_dir in $PATH 2313do 2314 IFS=$as_save_IFS 2315 test -z "$as_dir" && as_dir=. 2316 $as_echo "PATH: $as_dir" 2317 done 2318IFS=$as_save_IFS 2319 2320} >&5 2321 2322cat >&5 <<_ACEOF 2323 2324 2325## ----------- ## 2326## Core tests. ## 2327## ----------- ## 2328 2329_ACEOF 2330 2331 2332# Keep a trace of the command line. 2333# Strip out --no-create and --no-recursion so they do not pile up. 2334# Strip out --silent because we don't want to record it for future runs. 2335# Also quote any args containing shell meta-characters. 2336# Make two passes to allow for proper duplicate-argument suppression. 2337ac_configure_args= 2338ac_configure_args0= 2339ac_configure_args1= 2340ac_must_keep_next=false 2341for ac_pass in 1 2 2342do 2343 for ac_arg 2344 do 2345 case $ac_arg in 2346 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2348 | -silent | --silent | --silen | --sile | --sil) 2349 continue ;; 2350 *\'*) 2351 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2352 esac 2353 case $ac_pass in 2354 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2355 2) 2356 as_fn_append ac_configure_args1 " '$ac_arg'" 2357 if test $ac_must_keep_next = true; then 2358 ac_must_keep_next=false # Got value, back to normal. 2359 else 2360 case $ac_arg in 2361 *=* | --config-cache | -C | -disable-* | --disable-* \ 2362 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2363 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2364 | -with-* | --with-* | -without-* | --without-* | --x) 2365 case "$ac_configure_args0 " in 2366 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2367 esac 2368 ;; 2369 -* ) ac_must_keep_next=true ;; 2370 esac 2371 fi 2372 as_fn_append ac_configure_args " '$ac_arg'" 2373 ;; 2374 esac 2375 done 2376done 2377{ ac_configure_args0=; unset ac_configure_args0;} 2378{ ac_configure_args1=; unset ac_configure_args1;} 2379 2380# When interrupted or exit'd, cleanup temporary files, and complete 2381# config.log. We remove comments because anyway the quotes in there 2382# would cause problems or look ugly. 2383# WARNING: Use '\'' to represent an apostrophe within the trap. 2384# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2385trap 'exit_status=$? 2386 # Save into config.log some information that might help in debugging. 2387 { 2388 echo 2389 2390 $as_echo "## ---------------- ## 2391## Cache variables. ## 2392## ---------------- ##" 2393 echo 2394 # The following way of writing the cache mishandles newlines in values, 2395( 2396 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2397 eval ac_val=\$$ac_var 2398 case $ac_val in #( 2399 *${as_nl}*) 2400 case $ac_var in #( 2401 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2402$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2403 esac 2404 case $ac_var in #( 2405 _ | IFS | as_nl) ;; #( 2406 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2407 *) { eval $ac_var=; unset $ac_var;} ;; 2408 esac ;; 2409 esac 2410 done 2411 (set) 2>&1 | 2412 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2413 *${as_nl}ac_space=\ *) 2414 sed -n \ 2415 "s/'\''/'\''\\\\'\'''\''/g; 2416 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2417 ;; #( 2418 *) 2419 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2420 ;; 2421 esac | 2422 sort 2423) 2424 echo 2425 2426 $as_echo "## ----------------- ## 2427## Output variables. ## 2428## ----------------- ##" 2429 echo 2430 for ac_var in $ac_subst_vars 2431 do 2432 eval ac_val=\$$ac_var 2433 case $ac_val in 2434 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2435 esac 2436 $as_echo "$ac_var='\''$ac_val'\''" 2437 done | sort 2438 echo 2439 2440 if test -n "$ac_subst_files"; then 2441 $as_echo "## ------------------- ## 2442## File substitutions. ## 2443## ------------------- ##" 2444 echo 2445 for ac_var in $ac_subst_files 2446 do 2447 eval ac_val=\$$ac_var 2448 case $ac_val in 2449 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2450 esac 2451 $as_echo "$ac_var='\''$ac_val'\''" 2452 done | sort 2453 echo 2454 fi 2455 2456 if test -s confdefs.h; then 2457 $as_echo "## ----------- ## 2458## confdefs.h. ## 2459## ----------- ##" 2460 echo 2461 cat confdefs.h 2462 echo 2463 fi 2464 test "$ac_signal" != 0 && 2465 $as_echo "$as_me: caught signal $ac_signal" 2466 $as_echo "$as_me: exit $exit_status" 2467 } >&5 2468 rm -f core *.core core.conftest.* && 2469 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2470 exit $exit_status 2471' 0 2472for ac_signal in 1 2 13 15; do 2473 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2474done 2475ac_signal=0 2476 2477# confdefs.h avoids OS command line length limits that DEFS can exceed. 2478rm -f -r conftest* confdefs.h 2479 2480$as_echo "/* confdefs.h */" > confdefs.h 2481 2482# Predefined preprocessor variables. 2483 2484cat >>confdefs.h <<_ACEOF 2485#define PACKAGE_NAME "$PACKAGE_NAME" 2486_ACEOF 2487 2488cat >>confdefs.h <<_ACEOF 2489#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2490_ACEOF 2491 2492cat >>confdefs.h <<_ACEOF 2493#define PACKAGE_VERSION "$PACKAGE_VERSION" 2494_ACEOF 2495 2496cat >>confdefs.h <<_ACEOF 2497#define PACKAGE_STRING "$PACKAGE_STRING" 2498_ACEOF 2499 2500cat >>confdefs.h <<_ACEOF 2501#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2502_ACEOF 2503 2504cat >>confdefs.h <<_ACEOF 2505#define PACKAGE_URL "$PACKAGE_URL" 2506_ACEOF 2507 2508 2509# Let the site file select an alternate cache file if it wants to. 2510# Prefer an explicitly selected file to automatically selected ones. 2511ac_site_file1=NONE 2512ac_site_file2=NONE 2513if test -n "$CONFIG_SITE"; then 2514 # We do not want a PATH search for config.site. 2515 case $CONFIG_SITE in #(( 2516 -*) ac_site_file1=./$CONFIG_SITE;; 2517 */*) ac_site_file1=$CONFIG_SITE;; 2518 *) ac_site_file1=./$CONFIG_SITE;; 2519 esac 2520elif test "x$prefix" != xNONE; then 2521 ac_site_file1=$prefix/share/config.site 2522 ac_site_file2=$prefix/etc/config.site 2523else 2524 ac_site_file1=$ac_default_prefix/share/config.site 2525 ac_site_file2=$ac_default_prefix/etc/config.site 2526fi 2527for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2528do 2529 test "x$ac_site_file" = xNONE && continue 2530 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2532$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2533 sed 's/^/| /' "$ac_site_file" >&5 2534 . "$ac_site_file" \ 2535 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2537as_fn_error $? "failed to load site script $ac_site_file 2538See \`config.log' for more details" "$LINENO" 5; } 2539 fi 2540done 2541 2542if test -r "$cache_file"; then 2543 # Some versions of bash will fail to source /dev/null (special files 2544 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2545 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2546 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2547$as_echo "$as_me: loading cache $cache_file" >&6;} 2548 case $cache_file in 2549 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2550 *) . "./$cache_file";; 2551 esac 2552 fi 2553else 2554 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2555$as_echo "$as_me: creating cache $cache_file" >&6;} 2556 >$cache_file 2557fi 2558 2559as_fn_append ac_header_list " stdlib.h" 2560as_fn_append ac_header_list " unistd.h" 2561as_fn_append ac_header_list " sys/param.h" 2562# Check that the precious variables saved in the cache have kept the same 2563# value. 2564ac_cache_corrupted=false 2565for ac_var in $ac_precious_vars; do 2566 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2567 eval ac_new_set=\$ac_env_${ac_var}_set 2568 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2569 eval ac_new_val=\$ac_env_${ac_var}_value 2570 case $ac_old_set,$ac_new_set in 2571 set,) 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2573$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2574 ac_cache_corrupted=: ;; 2575 ,set) 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2577$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2578 ac_cache_corrupted=: ;; 2579 ,);; 2580 *) 2581 if test "x$ac_old_val" != "x$ac_new_val"; then 2582 # differences in whitespace do not lead to failure. 2583 ac_old_val_w=`echo x $ac_old_val` 2584 ac_new_val_w=`echo x $ac_new_val` 2585 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2587$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2588 ac_cache_corrupted=: 2589 else 2590 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2591$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2592 eval $ac_var=\$ac_old_val 2593 fi 2594 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2595$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2597$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2598 fi;; 2599 esac 2600 # Pass precious variables to config.status. 2601 if test "$ac_new_set" = set; then 2602 case $ac_new_val in 2603 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2604 *) ac_arg=$ac_var=$ac_new_val ;; 2605 esac 2606 case " $ac_configure_args " in 2607 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2608 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2609 esac 2610 fi 2611done 2612if $ac_cache_corrupted; then 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2616$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2617 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2618fi 2619## -------------------- ## 2620## Main body of script. ## 2621## -------------------- ## 2622 2623ac_ext=c 2624ac_cpp='$CPP $CPPFLAGS' 2625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2627ac_compiler_gnu=$ac_cv_c_compiler_gnu 2628 2629 2630 2631ac_config_headers="$ac_config_headers src/config.h include/X11/XlibConf.h" 2632 2633 2634ac_aux_dir= 2635for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2636 if test -f "$ac_dir/install-sh"; then 2637 ac_aux_dir=$ac_dir 2638 ac_install_sh="$ac_aux_dir/install-sh -c" 2639 break 2640 elif test -f "$ac_dir/install.sh"; then 2641 ac_aux_dir=$ac_dir 2642 ac_install_sh="$ac_aux_dir/install.sh -c" 2643 break 2644 elif test -f "$ac_dir/shtool"; then 2645 ac_aux_dir=$ac_dir 2646 ac_install_sh="$ac_aux_dir/shtool install -c" 2647 break 2648 fi 2649done 2650if test -z "$ac_aux_dir"; then 2651 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2652fi 2653 2654# These three variables are undocumented and unsupported, 2655# and are intended to be withdrawn in a future Autoconf release. 2656# They can cause serious problems if a builder's source tree is in a directory 2657# whose full name contains unusual characters. 2658ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2659ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2660ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2661 2662 2663# Make sure we can run config.sub. 2664$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2665 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2666 2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2668$as_echo_n "checking build system type... " >&6; } 2669if ${ac_cv_build+:} false; then : 2670 $as_echo_n "(cached) " >&6 2671else 2672 ac_build_alias=$build_alias 2673test "x$ac_build_alias" = x && 2674 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2675test "x$ac_build_alias" = x && 2676 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2677ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2678 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2679 2680fi 2681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2682$as_echo "$ac_cv_build" >&6; } 2683case $ac_cv_build in 2684*-*-*) ;; 2685*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2686esac 2687build=$ac_cv_build 2688ac_save_IFS=$IFS; IFS='-' 2689set x $ac_cv_build 2690shift 2691build_cpu=$1 2692build_vendor=$2 2693shift; shift 2694# Remember, the first character of IFS is used to create $*, 2695# except with old shells: 2696build_os=$* 2697IFS=$ac_save_IFS 2698case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2699 2700 2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2702$as_echo_n "checking host system type... " >&6; } 2703if ${ac_cv_host+:} false; then : 2704 $as_echo_n "(cached) " >&6 2705else 2706 if test "x$host_alias" = x; then 2707 ac_cv_host=$ac_cv_build 2708else 2709 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2710 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2711fi 2712 2713fi 2714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2715$as_echo "$ac_cv_host" >&6; } 2716case $ac_cv_host in 2717*-*-*) ;; 2718*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2719esac 2720host=$ac_cv_host 2721ac_save_IFS=$IFS; IFS='-' 2722set x $ac_cv_host 2723shift 2724host_cpu=$1 2725host_vendor=$2 2726shift; shift 2727# Remember, the first character of IFS is used to create $*, 2728# except with old shells: 2729host_os=$* 2730IFS=$ac_save_IFS 2731case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2732 2733 2734# Set common system defines for POSIX extensions, such as _GNU_SOURCE 2735# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) 2736# to avoid autoconf errors. 2737# Expand $ac_aux_dir to an absolute path. 2738am_aux_dir=`cd "$ac_aux_dir" && pwd` 2739 2740ac_ext=c 2741ac_cpp='$CPP $CPPFLAGS' 2742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2744ac_compiler_gnu=$ac_cv_c_compiler_gnu 2745if test -n "$ac_tool_prefix"; then 2746 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2747set dummy ${ac_tool_prefix}gcc; ac_word=$2 2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2749$as_echo_n "checking for $ac_word... " >&6; } 2750if ${ac_cv_prog_CC+:} false; then : 2751 $as_echo_n "(cached) " >&6 2752else 2753 if test -n "$CC"; then 2754 ac_cv_prog_CC="$CC" # Let the user override the test. 2755else 2756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2757for as_dir in $PATH 2758do 2759 IFS=$as_save_IFS 2760 test -z "$as_dir" && as_dir=. 2761 for ac_exec_ext in '' $ac_executable_extensions; do 2762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2763 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2765 break 2 2766 fi 2767done 2768 done 2769IFS=$as_save_IFS 2770 2771fi 2772fi 2773CC=$ac_cv_prog_CC 2774if test -n "$CC"; then 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2776$as_echo "$CC" >&6; } 2777else 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2779$as_echo "no" >&6; } 2780fi 2781 2782 2783fi 2784if test -z "$ac_cv_prog_CC"; then 2785 ac_ct_CC=$CC 2786 # Extract the first word of "gcc", so it can be a program name with args. 2787set dummy gcc; ac_word=$2 2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2789$as_echo_n "checking for $ac_word... " >&6; } 2790if ${ac_cv_prog_ac_ct_CC+:} false; then : 2791 $as_echo_n "(cached) " >&6 2792else 2793 if test -n "$ac_ct_CC"; then 2794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2795else 2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2797for as_dir in $PATH 2798do 2799 IFS=$as_save_IFS 2800 test -z "$as_dir" && as_dir=. 2801 for ac_exec_ext in '' $ac_executable_extensions; do 2802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2803 ac_cv_prog_ac_ct_CC="gcc" 2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2805 break 2 2806 fi 2807done 2808 done 2809IFS=$as_save_IFS 2810 2811fi 2812fi 2813ac_ct_CC=$ac_cv_prog_ac_ct_CC 2814if test -n "$ac_ct_CC"; then 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2816$as_echo "$ac_ct_CC" >&6; } 2817else 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2819$as_echo "no" >&6; } 2820fi 2821 2822 if test "x$ac_ct_CC" = x; then 2823 CC="" 2824 else 2825 case $cross_compiling:$ac_tool_warned in 2826yes:) 2827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2829ac_tool_warned=yes ;; 2830esac 2831 CC=$ac_ct_CC 2832 fi 2833else 2834 CC="$ac_cv_prog_CC" 2835fi 2836 2837if test -z "$CC"; then 2838 if test -n "$ac_tool_prefix"; then 2839 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2840set dummy ${ac_tool_prefix}cc; ac_word=$2 2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2842$as_echo_n "checking for $ac_word... " >&6; } 2843if ${ac_cv_prog_CC+:} false; then : 2844 $as_echo_n "(cached) " >&6 2845else 2846 if test -n "$CC"; then 2847 ac_cv_prog_CC="$CC" # Let the user override the test. 2848else 2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2850for as_dir in $PATH 2851do 2852 IFS=$as_save_IFS 2853 test -z "$as_dir" && as_dir=. 2854 for ac_exec_ext in '' $ac_executable_extensions; do 2855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2856 ac_cv_prog_CC="${ac_tool_prefix}cc" 2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2858 break 2 2859 fi 2860done 2861 done 2862IFS=$as_save_IFS 2863 2864fi 2865fi 2866CC=$ac_cv_prog_CC 2867if test -n "$CC"; then 2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2869$as_echo "$CC" >&6; } 2870else 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2872$as_echo "no" >&6; } 2873fi 2874 2875 2876 fi 2877fi 2878if test -z "$CC"; then 2879 # Extract the first word of "cc", so it can be a program name with args. 2880set dummy cc; ac_word=$2 2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2882$as_echo_n "checking for $ac_word... " >&6; } 2883if ${ac_cv_prog_CC+:} false; then : 2884 $as_echo_n "(cached) " >&6 2885else 2886 if test -n "$CC"; then 2887 ac_cv_prog_CC="$CC" # Let the user override the test. 2888else 2889 ac_prog_rejected=no 2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2891for as_dir in $PATH 2892do 2893 IFS=$as_save_IFS 2894 test -z "$as_dir" && as_dir=. 2895 for ac_exec_ext in '' $ac_executable_extensions; do 2896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2897 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2898 ac_prog_rejected=yes 2899 continue 2900 fi 2901 ac_cv_prog_CC="cc" 2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2903 break 2 2904 fi 2905done 2906 done 2907IFS=$as_save_IFS 2908 2909if test $ac_prog_rejected = yes; then 2910 # We found a bogon in the path, so make sure we never use it. 2911 set dummy $ac_cv_prog_CC 2912 shift 2913 if test $# != 0; then 2914 # We chose a different compiler from the bogus one. 2915 # However, it has the same basename, so the bogon will be chosen 2916 # first if we set CC to just the basename; use the full file name. 2917 shift 2918 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2919 fi 2920fi 2921fi 2922fi 2923CC=$ac_cv_prog_CC 2924if test -n "$CC"; then 2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2926$as_echo "$CC" >&6; } 2927else 2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2929$as_echo "no" >&6; } 2930fi 2931 2932 2933fi 2934if test -z "$CC"; then 2935 if test -n "$ac_tool_prefix"; then 2936 for ac_prog in cl.exe 2937 do 2938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2939set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2941$as_echo_n "checking for $ac_word... " >&6; } 2942if ${ac_cv_prog_CC+:} false; then : 2943 $as_echo_n "(cached) " >&6 2944else 2945 if test -n "$CC"; then 2946 ac_cv_prog_CC="$CC" # Let the user override the test. 2947else 2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2949for as_dir in $PATH 2950do 2951 IFS=$as_save_IFS 2952 test -z "$as_dir" && as_dir=. 2953 for ac_exec_ext in '' $ac_executable_extensions; do 2954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2955 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2957 break 2 2958 fi 2959done 2960 done 2961IFS=$as_save_IFS 2962 2963fi 2964fi 2965CC=$ac_cv_prog_CC 2966if test -n "$CC"; then 2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2968$as_echo "$CC" >&6; } 2969else 2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2971$as_echo "no" >&6; } 2972fi 2973 2974 2975 test -n "$CC" && break 2976 done 2977fi 2978if test -z "$CC"; then 2979 ac_ct_CC=$CC 2980 for ac_prog in cl.exe 2981do 2982 # Extract the first word of "$ac_prog", so it can be a program name with args. 2983set dummy $ac_prog; ac_word=$2 2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2985$as_echo_n "checking for $ac_word... " >&6; } 2986if ${ac_cv_prog_ac_ct_CC+:} false; then : 2987 $as_echo_n "(cached) " >&6 2988else 2989 if test -n "$ac_ct_CC"; then 2990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2991else 2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2993for as_dir in $PATH 2994do 2995 IFS=$as_save_IFS 2996 test -z "$as_dir" && as_dir=. 2997 for ac_exec_ext in '' $ac_executable_extensions; do 2998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2999 ac_cv_prog_ac_ct_CC="$ac_prog" 3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3001 break 2 3002 fi 3003done 3004 done 3005IFS=$as_save_IFS 3006 3007fi 3008fi 3009ac_ct_CC=$ac_cv_prog_ac_ct_CC 3010if test -n "$ac_ct_CC"; then 3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3012$as_echo "$ac_ct_CC" >&6; } 3013else 3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3015$as_echo "no" >&6; } 3016fi 3017 3018 3019 test -n "$ac_ct_CC" && break 3020done 3021 3022 if test "x$ac_ct_CC" = x; then 3023 CC="" 3024 else 3025 case $cross_compiling:$ac_tool_warned in 3026yes:) 3027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3029ac_tool_warned=yes ;; 3030esac 3031 CC=$ac_ct_CC 3032 fi 3033fi 3034 3035fi 3036 3037 3038test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3040as_fn_error $? "no acceptable C compiler found in \$PATH 3041See \`config.log' for more details" "$LINENO" 5; } 3042 3043# Provide some information about the compiler. 3044$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3045set X $ac_compile 3046ac_compiler=$2 3047for ac_option in --version -v -V -qversion; do 3048 { { ac_try="$ac_compiler $ac_option >&5" 3049case "(($ac_try" in 3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3051 *) ac_try_echo=$ac_try;; 3052esac 3053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3054$as_echo "$ac_try_echo"; } >&5 3055 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3056 ac_status=$? 3057 if test -s conftest.err; then 3058 sed '10a\ 3059... rest of stderr output deleted ... 3060 10q' conftest.err >conftest.er1 3061 cat conftest.er1 >&5 3062 fi 3063 rm -f conftest.er1 conftest.err 3064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3065 test $ac_status = 0; } 3066done 3067 3068cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3069/* end confdefs.h. */ 3070 3071int 3072main () 3073{ 3074 3075 ; 3076 return 0; 3077} 3078_ACEOF 3079ac_clean_files_save=$ac_clean_files 3080ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3081# Try to create an executable without -o first, disregard a.out. 3082# It will help us diagnose broken compilers, and finding out an intuition 3083# of exeext. 3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3085$as_echo_n "checking whether the C compiler works... " >&6; } 3086ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3087 3088# The possible output files: 3089ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3090 3091ac_rmfiles= 3092for ac_file in $ac_files 3093do 3094 case $ac_file in 3095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3096 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3097 esac 3098done 3099rm -f $ac_rmfiles 3100 3101if { { ac_try="$ac_link_default" 3102case "(($ac_try" in 3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3104 *) ac_try_echo=$ac_try;; 3105esac 3106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3107$as_echo "$ac_try_echo"; } >&5 3108 (eval "$ac_link_default") 2>&5 3109 ac_status=$? 3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3111 test $ac_status = 0; }; then : 3112 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3113# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3114# in a Makefile. We should not override ac_cv_exeext if it was cached, 3115# so that the user can short-circuit this test for compilers unknown to 3116# Autoconf. 3117for ac_file in $ac_files '' 3118do 3119 test -f "$ac_file" || continue 3120 case $ac_file in 3121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3122 ;; 3123 [ab].out ) 3124 # We found the default executable, but exeext='' is most 3125 # certainly right. 3126 break;; 3127 *.* ) 3128 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3129 then :; else 3130 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3131 fi 3132 # We set ac_cv_exeext here because the later test for it is not 3133 # safe: cross compilers may not add the suffix if given an `-o' 3134 # argument, so we may need to know it at that point already. 3135 # Even if this section looks crufty: it has the advantage of 3136 # actually working. 3137 break;; 3138 * ) 3139 break;; 3140 esac 3141done 3142test "$ac_cv_exeext" = no && ac_cv_exeext= 3143 3144else 3145 ac_file='' 3146fi 3147if test -z "$ac_file"; then : 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3149$as_echo "no" >&6; } 3150$as_echo "$as_me: failed program was:" >&5 3151sed 's/^/| /' conftest.$ac_ext >&5 3152 3153{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3155as_fn_error 77 "C compiler cannot create executables 3156See \`config.log' for more details" "$LINENO" 5; } 3157else 3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3159$as_echo "yes" >&6; } 3160fi 3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3162$as_echo_n "checking for C compiler default output file name... " >&6; } 3163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3164$as_echo "$ac_file" >&6; } 3165ac_exeext=$ac_cv_exeext 3166 3167rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3168ac_clean_files=$ac_clean_files_save 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3170$as_echo_n "checking for suffix of executables... " >&6; } 3171if { { ac_try="$ac_link" 3172case "(($ac_try" in 3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3174 *) ac_try_echo=$ac_try;; 3175esac 3176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3177$as_echo "$ac_try_echo"; } >&5 3178 (eval "$ac_link") 2>&5 3179 ac_status=$? 3180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3181 test $ac_status = 0; }; then : 3182 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3183# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3184# work properly (i.e., refer to `conftest.exe'), while it won't with 3185# `rm'. 3186for ac_file in conftest.exe conftest conftest.*; do 3187 test -f "$ac_file" || continue 3188 case $ac_file in 3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3190 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3191 break;; 3192 * ) break;; 3193 esac 3194done 3195else 3196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3198as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3199See \`config.log' for more details" "$LINENO" 5; } 3200fi 3201rm -f conftest conftest$ac_cv_exeext 3202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3203$as_echo "$ac_cv_exeext" >&6; } 3204 3205rm -f conftest.$ac_ext 3206EXEEXT=$ac_cv_exeext 3207ac_exeext=$EXEEXT 3208cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3209/* end confdefs.h. */ 3210#include <stdio.h> 3211int 3212main () 3213{ 3214FILE *f = fopen ("conftest.out", "w"); 3215 return ferror (f) || fclose (f) != 0; 3216 3217 ; 3218 return 0; 3219} 3220_ACEOF 3221ac_clean_files="$ac_clean_files conftest.out" 3222# Check that the compiler produces executables we can run. If not, either 3223# the compiler is broken, or we cross compile. 3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3225$as_echo_n "checking whether we are cross compiling... " >&6; } 3226if test "$cross_compiling" != yes; then 3227 { { ac_try="$ac_link" 3228case "(($ac_try" in 3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3230 *) ac_try_echo=$ac_try;; 3231esac 3232eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3233$as_echo "$ac_try_echo"; } >&5 3234 (eval "$ac_link") 2>&5 3235 ac_status=$? 3236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3237 test $ac_status = 0; } 3238 if { ac_try='./conftest$ac_cv_exeext' 3239 { { case "(($ac_try" in 3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3241 *) ac_try_echo=$ac_try;; 3242esac 3243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3244$as_echo "$ac_try_echo"; } >&5 3245 (eval "$ac_try") 2>&5 3246 ac_status=$? 3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3248 test $ac_status = 0; }; }; then 3249 cross_compiling=no 3250 else 3251 if test "$cross_compiling" = maybe; then 3252 cross_compiling=yes 3253 else 3254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3256as_fn_error $? "cannot run C compiled programs. 3257If you meant to cross compile, use \`--host'. 3258See \`config.log' for more details" "$LINENO" 5; } 3259 fi 3260 fi 3261fi 3262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3263$as_echo "$cross_compiling" >&6; } 3264 3265rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3266ac_clean_files=$ac_clean_files_save 3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3268$as_echo_n "checking for suffix of object files... " >&6; } 3269if ${ac_cv_objext+:} false; then : 3270 $as_echo_n "(cached) " >&6 3271else 3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3273/* end confdefs.h. */ 3274 3275int 3276main () 3277{ 3278 3279 ; 3280 return 0; 3281} 3282_ACEOF 3283rm -f conftest.o conftest.obj 3284if { { ac_try="$ac_compile" 3285case "(($ac_try" in 3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3287 *) ac_try_echo=$ac_try;; 3288esac 3289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3290$as_echo "$ac_try_echo"; } >&5 3291 (eval "$ac_compile") 2>&5 3292 ac_status=$? 3293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3294 test $ac_status = 0; }; then : 3295 for ac_file in conftest.o conftest.obj conftest.*; do 3296 test -f "$ac_file" || continue; 3297 case $ac_file in 3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3299 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3300 break;; 3301 esac 3302done 3303else 3304 $as_echo "$as_me: failed program was:" >&5 3305sed 's/^/| /' conftest.$ac_ext >&5 3306 3307{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3309as_fn_error $? "cannot compute suffix of object files: cannot compile 3310See \`config.log' for more details" "$LINENO" 5; } 3311fi 3312rm -f conftest.$ac_cv_objext conftest.$ac_ext 3313fi 3314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3315$as_echo "$ac_cv_objext" >&6; } 3316OBJEXT=$ac_cv_objext 3317ac_objext=$OBJEXT 3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3319$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3320if ${ac_cv_c_compiler_gnu+:} false; then : 3321 $as_echo_n "(cached) " >&6 3322else 3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3324/* end confdefs.h. */ 3325 3326int 3327main () 3328{ 3329#ifndef __GNUC__ 3330 choke me 3331#endif 3332 3333 ; 3334 return 0; 3335} 3336_ACEOF 3337if ac_fn_c_try_compile "$LINENO"; then : 3338 ac_compiler_gnu=yes 3339else 3340 ac_compiler_gnu=no 3341fi 3342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3343ac_cv_c_compiler_gnu=$ac_compiler_gnu 3344 3345fi 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3347$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3348if test $ac_compiler_gnu = yes; then 3349 GCC=yes 3350else 3351 GCC= 3352fi 3353ac_test_CFLAGS=${CFLAGS+set} 3354ac_save_CFLAGS=$CFLAGS 3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3356$as_echo_n "checking whether $CC accepts -g... " >&6; } 3357if ${ac_cv_prog_cc_g+:} false; then : 3358 $as_echo_n "(cached) " >&6 3359else 3360 ac_save_c_werror_flag=$ac_c_werror_flag 3361 ac_c_werror_flag=yes 3362 ac_cv_prog_cc_g=no 3363 CFLAGS="-g" 3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3365/* end confdefs.h. */ 3366 3367int 3368main () 3369{ 3370 3371 ; 3372 return 0; 3373} 3374_ACEOF 3375if ac_fn_c_try_compile "$LINENO"; then : 3376 ac_cv_prog_cc_g=yes 3377else 3378 CFLAGS="" 3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3380/* end confdefs.h. */ 3381 3382int 3383main () 3384{ 3385 3386 ; 3387 return 0; 3388} 3389_ACEOF 3390if ac_fn_c_try_compile "$LINENO"; then : 3391 3392else 3393 ac_c_werror_flag=$ac_save_c_werror_flag 3394 CFLAGS="-g" 3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3396/* end confdefs.h. */ 3397 3398int 3399main () 3400{ 3401 3402 ; 3403 return 0; 3404} 3405_ACEOF 3406if ac_fn_c_try_compile "$LINENO"; then : 3407 ac_cv_prog_cc_g=yes 3408fi 3409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3410fi 3411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3412fi 3413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3414 ac_c_werror_flag=$ac_save_c_werror_flag 3415fi 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3417$as_echo "$ac_cv_prog_cc_g" >&6; } 3418if test "$ac_test_CFLAGS" = set; then 3419 CFLAGS=$ac_save_CFLAGS 3420elif test $ac_cv_prog_cc_g = yes; then 3421 if test "$GCC" = yes; then 3422 CFLAGS="-g -O2" 3423 else 3424 CFLAGS="-g" 3425 fi 3426else 3427 if test "$GCC" = yes; then 3428 CFLAGS="-O2" 3429 else 3430 CFLAGS= 3431 fi 3432fi 3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3434$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3435if ${ac_cv_prog_cc_c89+:} false; then : 3436 $as_echo_n "(cached) " >&6 3437else 3438 ac_cv_prog_cc_c89=no 3439ac_save_CC=$CC 3440cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3441/* end confdefs.h. */ 3442#include <stdarg.h> 3443#include <stdio.h> 3444struct stat; 3445/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3446struct buf { int x; }; 3447FILE * (*rcsopen) (struct buf *, struct stat *, int); 3448static char *e (p, i) 3449 char **p; 3450 int i; 3451{ 3452 return p[i]; 3453} 3454static char *f (char * (*g) (char **, int), char **p, ...) 3455{ 3456 char *s; 3457 va_list v; 3458 va_start (v,p); 3459 s = g (p, va_arg (v,int)); 3460 va_end (v); 3461 return s; 3462} 3463 3464/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3465 function prototypes and stuff, but not '\xHH' hex character constants. 3466 These don't provoke an error unfortunately, instead are silently treated 3467 as 'x'. The following induces an error, until -std is added to get 3468 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3469 array size at least. It's necessary to write '\x00'==0 to get something 3470 that's true only with -std. */ 3471int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3472 3473/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3474 inside strings and character constants. */ 3475#define FOO(x) 'x' 3476int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3477 3478int test (int i, double x); 3479struct s1 {int (*f) (int a);}; 3480struct s2 {int (*f) (double a);}; 3481int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3482int argc; 3483char **argv; 3484int 3485main () 3486{ 3487return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3488 ; 3489 return 0; 3490} 3491_ACEOF 3492for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3493 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3494do 3495 CC="$ac_save_CC $ac_arg" 3496 if ac_fn_c_try_compile "$LINENO"; then : 3497 ac_cv_prog_cc_c89=$ac_arg 3498fi 3499rm -f core conftest.err conftest.$ac_objext 3500 test "x$ac_cv_prog_cc_c89" != "xno" && break 3501done 3502rm -f conftest.$ac_ext 3503CC=$ac_save_CC 3504 3505fi 3506# AC_CACHE_VAL 3507case "x$ac_cv_prog_cc_c89" in 3508 x) 3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3510$as_echo "none needed" >&6; } ;; 3511 xno) 3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3513$as_echo "unsupported" >&6; } ;; 3514 *) 3515 CC="$CC $ac_cv_prog_cc_c89" 3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3517$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3518esac 3519if test "x$ac_cv_prog_cc_c89" != xno; then : 3520 3521fi 3522 3523ac_ext=c 3524ac_cpp='$CPP $CPPFLAGS' 3525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3527ac_compiler_gnu=$ac_cv_c_compiler_gnu 3528 3529ac_ext=c 3530ac_cpp='$CPP $CPPFLAGS' 3531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3533ac_compiler_gnu=$ac_cv_c_compiler_gnu 3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3535$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3536if ${am_cv_prog_cc_c_o+:} false; then : 3537 $as_echo_n "(cached) " >&6 3538else 3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3540/* end confdefs.h. */ 3541 3542int 3543main () 3544{ 3545 3546 ; 3547 return 0; 3548} 3549_ACEOF 3550 # Make sure it works both with $CC and with simple cc. 3551 # Following AC_PROG_CC_C_O, we do the test twice because some 3552 # compilers refuse to overwrite an existing .o file with -o, 3553 # though they will create one. 3554 am_cv_prog_cc_c_o=yes 3555 for am_i in 1 2; do 3556 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3557 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3558 ac_status=$? 3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3560 (exit $ac_status); } \ 3561 && test -f conftest2.$ac_objext; then 3562 : OK 3563 else 3564 am_cv_prog_cc_c_o=no 3565 break 3566 fi 3567 done 3568 rm -f core conftest* 3569 unset am_i 3570fi 3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3572$as_echo "$am_cv_prog_cc_c_o" >&6; } 3573if test "$am_cv_prog_cc_c_o" != yes; then 3574 # Losing compiler, so override with the script. 3575 # FIXME: It is wrong to rewrite CC. 3576 # But if we don't then we get into trouble of one sort or another. 3577 # A longer-term fix would be to have automake use am__CC in this case, 3578 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3579 CC="$am_aux_dir/compile $CC" 3580fi 3581ac_ext=c 3582ac_cpp='$CPP $CPPFLAGS' 3583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3585ac_compiler_gnu=$ac_cv_c_compiler_gnu 3586 3587 3588 3589ac_ext=c 3590ac_cpp='$CPP $CPPFLAGS' 3591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3593ac_compiler_gnu=$ac_cv_c_compiler_gnu 3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3595$as_echo_n "checking how to run the C preprocessor... " >&6; } 3596# On Suns, sometimes $CPP names a directory. 3597if test -n "$CPP" && test -d "$CPP"; then 3598 CPP= 3599fi 3600if test -z "$CPP"; then 3601 if ${ac_cv_prog_CPP+:} false; then : 3602 $as_echo_n "(cached) " >&6 3603else 3604 # Double quotes because CPP needs to be expanded 3605 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3606 do 3607 ac_preproc_ok=false 3608for ac_c_preproc_warn_flag in '' yes 3609do 3610 # Use a header file that comes with gcc, so configuring glibc 3611 # with a fresh cross-compiler works. 3612 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3613 # <limits.h> exists even on freestanding compilers. 3614 # On the NeXT, cc -E runs the code through the compiler's parser, 3615 # not just through cpp. "Syntax error" is here to catch this case. 3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3617/* end confdefs.h. */ 3618#ifdef __STDC__ 3619# include <limits.h> 3620#else 3621# include <assert.h> 3622#endif 3623 Syntax error 3624_ACEOF 3625if ac_fn_c_try_cpp "$LINENO"; then : 3626 3627else 3628 # Broken: fails on valid input. 3629continue 3630fi 3631rm -f conftest.err conftest.i conftest.$ac_ext 3632 3633 # OK, works on sane cases. Now check whether nonexistent headers 3634 # can be detected and how. 3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3636/* end confdefs.h. */ 3637#include <ac_nonexistent.h> 3638_ACEOF 3639if ac_fn_c_try_cpp "$LINENO"; then : 3640 # Broken: success on invalid input. 3641continue 3642else 3643 # Passes both tests. 3644ac_preproc_ok=: 3645break 3646fi 3647rm -f conftest.err conftest.i conftest.$ac_ext 3648 3649done 3650# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3651rm -f conftest.i conftest.err conftest.$ac_ext 3652if $ac_preproc_ok; then : 3653 break 3654fi 3655 3656 done 3657 ac_cv_prog_CPP=$CPP 3658 3659fi 3660 CPP=$ac_cv_prog_CPP 3661else 3662 ac_cv_prog_CPP=$CPP 3663fi 3664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3665$as_echo "$CPP" >&6; } 3666ac_preproc_ok=false 3667for ac_c_preproc_warn_flag in '' yes 3668do 3669 # Use a header file that comes with gcc, so configuring glibc 3670 # with a fresh cross-compiler works. 3671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3672 # <limits.h> exists even on freestanding compilers. 3673 # On the NeXT, cc -E runs the code through the compiler's parser, 3674 # not just through cpp. "Syntax error" is here to catch this case. 3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3676/* end confdefs.h. */ 3677#ifdef __STDC__ 3678# include <limits.h> 3679#else 3680# include <assert.h> 3681#endif 3682 Syntax error 3683_ACEOF 3684if ac_fn_c_try_cpp "$LINENO"; then : 3685 3686else 3687 # Broken: fails on valid input. 3688continue 3689fi 3690rm -f conftest.err conftest.i conftest.$ac_ext 3691 3692 # OK, works on sane cases. Now check whether nonexistent headers 3693 # can be detected and how. 3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3695/* end confdefs.h. */ 3696#include <ac_nonexistent.h> 3697_ACEOF 3698if ac_fn_c_try_cpp "$LINENO"; then : 3699 # Broken: success on invalid input. 3700continue 3701else 3702 # Passes both tests. 3703ac_preproc_ok=: 3704break 3705fi 3706rm -f conftest.err conftest.i conftest.$ac_ext 3707 3708done 3709# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3710rm -f conftest.i conftest.err conftest.$ac_ext 3711if $ac_preproc_ok; then : 3712 3713else 3714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3716as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3717See \`config.log' for more details" "$LINENO" 5; } 3718fi 3719 3720ac_ext=c 3721ac_cpp='$CPP $CPPFLAGS' 3722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3724ac_compiler_gnu=$ac_cv_c_compiler_gnu 3725 3726 3727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3728$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3729if ${ac_cv_path_GREP+:} false; then : 3730 $as_echo_n "(cached) " >&6 3731else 3732 if test -z "$GREP"; then 3733 ac_path_GREP_found=false 3734 # Loop through the user's path and test for each of PROGNAME-LIST 3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3736for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3737do 3738 IFS=$as_save_IFS 3739 test -z "$as_dir" && as_dir=. 3740 for ac_prog in grep ggrep; do 3741 for ac_exec_ext in '' $ac_executable_extensions; do 3742 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3743 as_fn_executable_p "$ac_path_GREP" || continue 3744# Check for GNU ac_path_GREP and select it if it is found. 3745 # Check for GNU $ac_path_GREP 3746case `"$ac_path_GREP" --version 2>&1` in 3747*GNU*) 3748 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3749*) 3750 ac_count=0 3751 $as_echo_n 0123456789 >"conftest.in" 3752 while : 3753 do 3754 cat "conftest.in" "conftest.in" >"conftest.tmp" 3755 mv "conftest.tmp" "conftest.in" 3756 cp "conftest.in" "conftest.nl" 3757 $as_echo 'GREP' >> "conftest.nl" 3758 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3760 as_fn_arith $ac_count + 1 && ac_count=$as_val 3761 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3762 # Best one so far, save it but keep looking for a better one 3763 ac_cv_path_GREP="$ac_path_GREP" 3764 ac_path_GREP_max=$ac_count 3765 fi 3766 # 10*(2^10) chars as input seems more than enough 3767 test $ac_count -gt 10 && break 3768 done 3769 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3770esac 3771 3772 $ac_path_GREP_found && break 3 3773 done 3774 done 3775 done 3776IFS=$as_save_IFS 3777 if test -z "$ac_cv_path_GREP"; then 3778 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3779 fi 3780else 3781 ac_cv_path_GREP=$GREP 3782fi 3783 3784fi 3785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3786$as_echo "$ac_cv_path_GREP" >&6; } 3787 GREP="$ac_cv_path_GREP" 3788 3789 3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3791$as_echo_n "checking for egrep... " >&6; } 3792if ${ac_cv_path_EGREP+:} false; then : 3793 $as_echo_n "(cached) " >&6 3794else 3795 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3796 then ac_cv_path_EGREP="$GREP -E" 3797 else 3798 if test -z "$EGREP"; then 3799 ac_path_EGREP_found=false 3800 # Loop through the user's path and test for each of PROGNAME-LIST 3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3802for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3803do 3804 IFS=$as_save_IFS 3805 test -z "$as_dir" && as_dir=. 3806 for ac_prog in egrep; do 3807 for ac_exec_ext in '' $ac_executable_extensions; do 3808 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3809 as_fn_executable_p "$ac_path_EGREP" || continue 3810# Check for GNU ac_path_EGREP and select it if it is found. 3811 # Check for GNU $ac_path_EGREP 3812case `"$ac_path_EGREP" --version 2>&1` in 3813*GNU*) 3814 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3815*) 3816 ac_count=0 3817 $as_echo_n 0123456789 >"conftest.in" 3818 while : 3819 do 3820 cat "conftest.in" "conftest.in" >"conftest.tmp" 3821 mv "conftest.tmp" "conftest.in" 3822 cp "conftest.in" "conftest.nl" 3823 $as_echo 'EGREP' >> "conftest.nl" 3824 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3825 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3826 as_fn_arith $ac_count + 1 && ac_count=$as_val 3827 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3828 # Best one so far, save it but keep looking for a better one 3829 ac_cv_path_EGREP="$ac_path_EGREP" 3830 ac_path_EGREP_max=$ac_count 3831 fi 3832 # 10*(2^10) chars as input seems more than enough 3833 test $ac_count -gt 10 && break 3834 done 3835 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3836esac 3837 3838 $ac_path_EGREP_found && break 3 3839 done 3840 done 3841 done 3842IFS=$as_save_IFS 3843 if test -z "$ac_cv_path_EGREP"; then 3844 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3845 fi 3846else 3847 ac_cv_path_EGREP=$EGREP 3848fi 3849 3850 fi 3851fi 3852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3853$as_echo "$ac_cv_path_EGREP" >&6; } 3854 EGREP="$ac_cv_path_EGREP" 3855 3856 3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3858$as_echo_n "checking for ANSI C header files... " >&6; } 3859if ${ac_cv_header_stdc+:} false; then : 3860 $as_echo_n "(cached) " >&6 3861else 3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3863/* end confdefs.h. */ 3864#include <stdlib.h> 3865#include <stdarg.h> 3866#include <string.h> 3867#include <float.h> 3868 3869int 3870main () 3871{ 3872 3873 ; 3874 return 0; 3875} 3876_ACEOF 3877if ac_fn_c_try_compile "$LINENO"; then : 3878 ac_cv_header_stdc=yes 3879else 3880 ac_cv_header_stdc=no 3881fi 3882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3883 3884if test $ac_cv_header_stdc = yes; then 3885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3887/* end confdefs.h. */ 3888#include <string.h> 3889 3890_ACEOF 3891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3892 $EGREP "memchr" >/dev/null 2>&1; then : 3893 3894else 3895 ac_cv_header_stdc=no 3896fi 3897rm -f conftest* 3898 3899fi 3900 3901if test $ac_cv_header_stdc = yes; then 3902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3904/* end confdefs.h. */ 3905#include <stdlib.h> 3906 3907_ACEOF 3908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3909 $EGREP "free" >/dev/null 2>&1; then : 3910 3911else 3912 ac_cv_header_stdc=no 3913fi 3914rm -f conftest* 3915 3916fi 3917 3918if test $ac_cv_header_stdc = yes; then 3919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3920 if test "$cross_compiling" = yes; then : 3921 : 3922else 3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3924/* end confdefs.h. */ 3925#include <ctype.h> 3926#include <stdlib.h> 3927#if ((' ' & 0x0FF) == 0x020) 3928# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3929# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3930#else 3931# define ISLOWER(c) \ 3932 (('a' <= (c) && (c) <= 'i') \ 3933 || ('j' <= (c) && (c) <= 'r') \ 3934 || ('s' <= (c) && (c) <= 'z')) 3935# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3936#endif 3937 3938#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3939int 3940main () 3941{ 3942 int i; 3943 for (i = 0; i < 256; i++) 3944 if (XOR (islower (i), ISLOWER (i)) 3945 || toupper (i) != TOUPPER (i)) 3946 return 2; 3947 return 0; 3948} 3949_ACEOF 3950if ac_fn_c_try_run "$LINENO"; then : 3951 3952else 3953 ac_cv_header_stdc=no 3954fi 3955rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3956 conftest.$ac_objext conftest.beam conftest.$ac_ext 3957fi 3958 3959fi 3960fi 3961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3962$as_echo "$ac_cv_header_stdc" >&6; } 3963if test $ac_cv_header_stdc = yes; then 3964 3965$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3966 3967fi 3968 3969# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3970for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3971 inttypes.h stdint.h unistd.h 3972do : 3973 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3974ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3975" 3976if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3977 cat >>confdefs.h <<_ACEOF 3978#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3979_ACEOF 3980 3981fi 3982 3983done 3984 3985 3986 3987 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3988if test "x$ac_cv_header_minix_config_h" = xyes; then : 3989 MINIX=yes 3990else 3991 MINIX= 3992fi 3993 3994 3995 if test "$MINIX" = yes; then 3996 3997$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3998 3999 4000$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4001 4002 4003$as_echo "#define _MINIX 1" >>confdefs.h 4004 4005 fi 4006 4007 4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4009$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4010if ${ac_cv_safe_to_define___extensions__+:} false; then : 4011 $as_echo_n "(cached) " >&6 4012else 4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4014/* end confdefs.h. */ 4015 4016# define __EXTENSIONS__ 1 4017 $ac_includes_default 4018int 4019main () 4020{ 4021 4022 ; 4023 return 0; 4024} 4025_ACEOF 4026if ac_fn_c_try_compile "$LINENO"; then : 4027 ac_cv_safe_to_define___extensions__=yes 4028else 4029 ac_cv_safe_to_define___extensions__=no 4030fi 4031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4032fi 4033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4034$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4035 test $ac_cv_safe_to_define___extensions__ = yes && 4036 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4037 4038 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4039 4040 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4041 4042 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4043 4044 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4045 4046 4047 4048# Initialize Automake 4049am__api_version='1.16' 4050 4051# Find a good install program. We prefer a C program (faster), 4052# so one script is as good as another. But avoid the broken or 4053# incompatible versions: 4054# SysV /etc/install, /usr/sbin/install 4055# SunOS /usr/etc/install 4056# IRIX /sbin/install 4057# AIX /bin/install 4058# AmigaOS /C/install, which installs bootblocks on floppy discs 4059# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4060# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4061# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4062# OS/2's system install, which has a completely different semantic 4063# ./install, which can be erroneously created by make from ./install.sh. 4064# Reject install programs that cannot install multiple files. 4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4066$as_echo_n "checking for a BSD-compatible install... " >&6; } 4067if test -z "$INSTALL"; then 4068if ${ac_cv_path_install+:} false; then : 4069 $as_echo_n "(cached) " >&6 4070else 4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4072for as_dir in $PATH 4073do 4074 IFS=$as_save_IFS 4075 test -z "$as_dir" && as_dir=. 4076 # Account for people who put trailing slashes in PATH elements. 4077case $as_dir/ in #(( 4078 ./ | .// | /[cC]/* | \ 4079 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4080 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4081 /usr/ucb/* ) ;; 4082 *) 4083 # OSF1 and SCO ODT 3.0 have their own names for install. 4084 # Don't use installbsd from OSF since it installs stuff as root 4085 # by default. 4086 for ac_prog in ginstall scoinst install; do 4087 for ac_exec_ext in '' $ac_executable_extensions; do 4088 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4089 if test $ac_prog = install && 4090 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4091 # AIX install. It has an incompatible calling convention. 4092 : 4093 elif test $ac_prog = install && 4094 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4095 # program-specific install script used by HP pwplus--don't use. 4096 : 4097 else 4098 rm -rf conftest.one conftest.two conftest.dir 4099 echo one > conftest.one 4100 echo two > conftest.two 4101 mkdir conftest.dir 4102 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4103 test -s conftest.one && test -s conftest.two && 4104 test -s conftest.dir/conftest.one && 4105 test -s conftest.dir/conftest.two 4106 then 4107 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4108 break 3 4109 fi 4110 fi 4111 fi 4112 done 4113 done 4114 ;; 4115esac 4116 4117 done 4118IFS=$as_save_IFS 4119 4120rm -rf conftest.one conftest.two conftest.dir 4121 4122fi 4123 if test "${ac_cv_path_install+set}" = set; then 4124 INSTALL=$ac_cv_path_install 4125 else 4126 # As a last resort, use the slow shell script. Don't cache a 4127 # value for INSTALL within a source directory, because that will 4128 # break other packages using the cache if that directory is 4129 # removed, or if the value is a relative name. 4130 INSTALL=$ac_install_sh 4131 fi 4132fi 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4134$as_echo "$INSTALL" >&6; } 4135 4136# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4137# It thinks the first close brace ends the variable substitution. 4138test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4139 4140test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4141 4142test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4143 4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4145$as_echo_n "checking whether build environment is sane... " >&6; } 4146# Reject unsafe characters in $srcdir or the absolute working directory 4147# name. Accept space and tab only in the latter. 4148am_lf=' 4149' 4150case `pwd` in 4151 *[\\\"\#\$\&\'\`$am_lf]*) 4152 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4153esac 4154case $srcdir in 4155 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4156 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4157esac 4158 4159# Do 'set' in a subshell so we don't clobber the current shell's 4160# arguments. Must try -L first in case configure is actually a 4161# symlink; some systems play weird games with the mod time of symlinks 4162# (eg FreeBSD returns the mod time of the symlink's containing 4163# directory). 4164if ( 4165 am_has_slept=no 4166 for am_try in 1 2; do 4167 echo "timestamp, slept: $am_has_slept" > conftest.file 4168 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4169 if test "$*" = "X"; then 4170 # -L didn't work. 4171 set X `ls -t "$srcdir/configure" conftest.file` 4172 fi 4173 if test "$*" != "X $srcdir/configure conftest.file" \ 4174 && test "$*" != "X conftest.file $srcdir/configure"; then 4175 4176 # If neither matched, then we have a broken ls. This can happen 4177 # if, for instance, CONFIG_SHELL is bash and it inherits a 4178 # broken ls alias from the environment. This has actually 4179 # happened. Such a system could not be considered "sane". 4180 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4181 alias in your environment" "$LINENO" 5 4182 fi 4183 if test "$2" = conftest.file || test $am_try -eq 2; then 4184 break 4185 fi 4186 # Just in case. 4187 sleep 1 4188 am_has_slept=yes 4189 done 4190 test "$2" = conftest.file 4191 ) 4192then 4193 # Ok. 4194 : 4195else 4196 as_fn_error $? "newly created file is older than distributed files! 4197Check your system clock" "$LINENO" 5 4198fi 4199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4200$as_echo "yes" >&6; } 4201# If we didn't sleep, we still need to ensure time stamps of config.status and 4202# generated files are strictly newer. 4203am_sleep_pid= 4204if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4205 ( sleep 1 ) & 4206 am_sleep_pid=$! 4207fi 4208 4209rm -f conftest.file 4210 4211test "$program_prefix" != NONE && 4212 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4213# Use a double $ so make ignores it. 4214test "$program_suffix" != NONE && 4215 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4216# Double any \ or $. 4217# By default was `s,x,x', remove it if useless. 4218ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4219program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4220 4221if test x"${MISSING+set}" != xset; then 4222 case $am_aux_dir in 4223 *\ * | *\ *) 4224 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4225 *) 4226 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4227 esac 4228fi 4229# Use eval to expand $SHELL 4230if eval "$MISSING --is-lightweight"; then 4231 am_missing_run="$MISSING " 4232else 4233 am_missing_run= 4234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4235$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4236fi 4237 4238if test x"${install_sh+set}" != xset; then 4239 case $am_aux_dir in 4240 *\ * | *\ *) 4241 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4242 *) 4243 install_sh="\${SHELL} $am_aux_dir/install-sh" 4244 esac 4245fi 4246 4247# Installed binaries are usually stripped using 'strip' when the user 4248# run "make install-strip". However 'strip' might not be the right 4249# tool to use in cross-compilation environments, therefore Automake 4250# will honor the 'STRIP' environment variable to overrule this program. 4251if test "$cross_compiling" != no; then 4252 if test -n "$ac_tool_prefix"; then 4253 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4254set dummy ${ac_tool_prefix}strip; ac_word=$2 4255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4256$as_echo_n "checking for $ac_word... " >&6; } 4257if ${ac_cv_prog_STRIP+:} false; then : 4258 $as_echo_n "(cached) " >&6 4259else 4260 if test -n "$STRIP"; then 4261 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4262else 4263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4264for as_dir in $PATH 4265do 4266 IFS=$as_save_IFS 4267 test -z "$as_dir" && as_dir=. 4268 for ac_exec_ext in '' $ac_executable_extensions; do 4269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4270 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4272 break 2 4273 fi 4274done 4275 done 4276IFS=$as_save_IFS 4277 4278fi 4279fi 4280STRIP=$ac_cv_prog_STRIP 4281if test -n "$STRIP"; then 4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4283$as_echo "$STRIP" >&6; } 4284else 4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4286$as_echo "no" >&6; } 4287fi 4288 4289 4290fi 4291if test -z "$ac_cv_prog_STRIP"; then 4292 ac_ct_STRIP=$STRIP 4293 # Extract the first word of "strip", so it can be a program name with args. 4294set dummy strip; ac_word=$2 4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4296$as_echo_n "checking for $ac_word... " >&6; } 4297if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4298 $as_echo_n "(cached) " >&6 4299else 4300 if test -n "$ac_ct_STRIP"; then 4301 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4302else 4303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4304for as_dir in $PATH 4305do 4306 IFS=$as_save_IFS 4307 test -z "$as_dir" && as_dir=. 4308 for ac_exec_ext in '' $ac_executable_extensions; do 4309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4310 ac_cv_prog_ac_ct_STRIP="strip" 4311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4312 break 2 4313 fi 4314done 4315 done 4316IFS=$as_save_IFS 4317 4318fi 4319fi 4320ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4321if test -n "$ac_ct_STRIP"; then 4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4323$as_echo "$ac_ct_STRIP" >&6; } 4324else 4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4326$as_echo "no" >&6; } 4327fi 4328 4329 if test "x$ac_ct_STRIP" = x; then 4330 STRIP=":" 4331 else 4332 case $cross_compiling:$ac_tool_warned in 4333yes:) 4334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4336ac_tool_warned=yes ;; 4337esac 4338 STRIP=$ac_ct_STRIP 4339 fi 4340else 4341 STRIP="$ac_cv_prog_STRIP" 4342fi 4343 4344fi 4345INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4346 4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4348$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4349if test -z "$MKDIR_P"; then 4350 if ${ac_cv_path_mkdir+:} false; then : 4351 $as_echo_n "(cached) " >&6 4352else 4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4354for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4355do 4356 IFS=$as_save_IFS 4357 test -z "$as_dir" && as_dir=. 4358 for ac_prog in mkdir gmkdir; do 4359 for ac_exec_ext in '' $ac_executable_extensions; do 4360 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4361 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4362 'mkdir (GNU coreutils) '* | \ 4363 'mkdir (coreutils) '* | \ 4364 'mkdir (fileutils) '4.1*) 4365 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4366 break 3;; 4367 esac 4368 done 4369 done 4370 done 4371IFS=$as_save_IFS 4372 4373fi 4374 4375 test -d ./--version && rmdir ./--version 4376 if test "${ac_cv_path_mkdir+set}" = set; then 4377 MKDIR_P="$ac_cv_path_mkdir -p" 4378 else 4379 # As a last resort, use the slow shell script. Don't cache a 4380 # value for MKDIR_P within a source directory, because that will 4381 # break other packages using the cache if that directory is 4382 # removed, or if the value is a relative name. 4383 MKDIR_P="$ac_install_sh -d" 4384 fi 4385fi 4386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4387$as_echo "$MKDIR_P" >&6; } 4388 4389for ac_prog in gawk mawk nawk awk 4390do 4391 # Extract the first word of "$ac_prog", so it can be a program name with args. 4392set dummy $ac_prog; ac_word=$2 4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4394$as_echo_n "checking for $ac_word... " >&6; } 4395if ${ac_cv_prog_AWK+:} false; then : 4396 $as_echo_n "(cached) " >&6 4397else 4398 if test -n "$AWK"; then 4399 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4400else 4401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4402for as_dir in $PATH 4403do 4404 IFS=$as_save_IFS 4405 test -z "$as_dir" && as_dir=. 4406 for ac_exec_ext in '' $ac_executable_extensions; do 4407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4408 ac_cv_prog_AWK="$ac_prog" 4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4410 break 2 4411 fi 4412done 4413 done 4414IFS=$as_save_IFS 4415 4416fi 4417fi 4418AWK=$ac_cv_prog_AWK 4419if test -n "$AWK"; then 4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4421$as_echo "$AWK" >&6; } 4422else 4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4424$as_echo "no" >&6; } 4425fi 4426 4427 4428 test -n "$AWK" && break 4429done 4430 4431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4432$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4433set x ${MAKE-make} 4434ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4435if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4436 $as_echo_n "(cached) " >&6 4437else 4438 cat >conftest.make <<\_ACEOF 4439SHELL = /bin/sh 4440all: 4441 @echo '@@@%%%=$(MAKE)=@@@%%%' 4442_ACEOF 4443# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4444case `${MAKE-make} -f conftest.make 2>/dev/null` in 4445 *@@@%%%=?*=@@@%%%*) 4446 eval ac_cv_prog_make_${ac_make}_set=yes;; 4447 *) 4448 eval ac_cv_prog_make_${ac_make}_set=no;; 4449esac 4450rm -f conftest.make 4451fi 4452if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4454$as_echo "yes" >&6; } 4455 SET_MAKE= 4456else 4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4458$as_echo "no" >&6; } 4459 SET_MAKE="MAKE=${MAKE-make}" 4460fi 4461 4462rm -rf .tst 2>/dev/null 4463mkdir .tst 2>/dev/null 4464if test -d .tst; then 4465 am__leading_dot=. 4466else 4467 am__leading_dot=_ 4468fi 4469rmdir .tst 2>/dev/null 4470 4471DEPDIR="${am__leading_dot}deps" 4472 4473ac_config_commands="$ac_config_commands depfiles" 4474 4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4476$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4477cat > confinc.mk << 'END' 4478am__doit: 4479 @echo this is the am__doit target >confinc.out 4480.PHONY: am__doit 4481END 4482am__include="#" 4483am__quote= 4484# BSD make does it like this. 4485echo '.include "confinc.mk" # ignored' > confmf.BSD 4486# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4487echo 'include confinc.mk # ignored' > confmf.GNU 4488_am_result=no 4489for s in GNU BSD; do 4490 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4491 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4492 ac_status=$? 4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4494 (exit $ac_status); } 4495 case $?:`cat confinc.out 2>/dev/null` in #( 4496 '0:this is the am__doit target') : 4497 case $s in #( 4498 BSD) : 4499 am__include='.include' am__quote='"' ;; #( 4500 *) : 4501 am__include='include' am__quote='' ;; 4502esac ;; #( 4503 *) : 4504 ;; 4505esac 4506 if test "$am__include" != "#"; then 4507 _am_result="yes ($s style)" 4508 break 4509 fi 4510done 4511rm -f confinc.* confmf.* 4512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4513$as_echo "${_am_result}" >&6; } 4514 4515# Check whether --enable-dependency-tracking was given. 4516if test "${enable_dependency_tracking+set}" = set; then : 4517 enableval=$enable_dependency_tracking; 4518fi 4519 4520if test "x$enable_dependency_tracking" != xno; then 4521 am_depcomp="$ac_aux_dir/depcomp" 4522 AMDEPBACKSLASH='\' 4523 am__nodep='_no' 4524fi 4525 if test "x$enable_dependency_tracking" != xno; then 4526 AMDEP_TRUE= 4527 AMDEP_FALSE='#' 4528else 4529 AMDEP_TRUE='#' 4530 AMDEP_FALSE= 4531fi 4532 4533 4534# Check whether --enable-silent-rules was given. 4535if test "${enable_silent_rules+set}" = set; then : 4536 enableval=$enable_silent_rules; 4537fi 4538 4539case $enable_silent_rules in # ((( 4540 yes) AM_DEFAULT_VERBOSITY=0;; 4541 no) AM_DEFAULT_VERBOSITY=1;; 4542 *) AM_DEFAULT_VERBOSITY=1;; 4543esac 4544am_make=${MAKE-make} 4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4546$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4547if ${am_cv_make_support_nested_variables+:} false; then : 4548 $as_echo_n "(cached) " >&6 4549else 4550 if $as_echo 'TRUE=$(BAR$(V)) 4551BAR0=false 4552BAR1=true 4553V=1 4554am__doit: 4555 @$(TRUE) 4556.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4557 am_cv_make_support_nested_variables=yes 4558else 4559 am_cv_make_support_nested_variables=no 4560fi 4561fi 4562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4563$as_echo "$am_cv_make_support_nested_variables" >&6; } 4564if test $am_cv_make_support_nested_variables = yes; then 4565 AM_V='$(V)' 4566 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4567else 4568 AM_V=$AM_DEFAULT_VERBOSITY 4569 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4570fi 4571AM_BACKSLASH='\' 4572 4573if test "`cd $srcdir && pwd`" != "`pwd`"; then 4574 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4575 # is not polluted with repeated "-I." 4576 am__isrc=' -I$(srcdir)' 4577 # test to see if srcdir already configured 4578 if test -f $srcdir/config.status; then 4579 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4580 fi 4581fi 4582 4583# test whether we have cygpath 4584if test -z "$CYGPATH_W"; then 4585 if (cygpath --version) >/dev/null 2>/dev/null; then 4586 CYGPATH_W='cygpath -w' 4587 else 4588 CYGPATH_W=echo 4589 fi 4590fi 4591 4592 4593# Define the identity of the package. 4594 PACKAGE='libX11' 4595 VERSION='1.6.8' 4596 4597 4598cat >>confdefs.h <<_ACEOF 4599#define PACKAGE "$PACKAGE" 4600_ACEOF 4601 4602 4603cat >>confdefs.h <<_ACEOF 4604#define VERSION "$VERSION" 4605_ACEOF 4606 4607# Some tools Automake needs. 4608 4609ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4610 4611 4612AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4613 4614 4615AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4616 4617 4618AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4619 4620 4621MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4622 4623# For better backward compatibility. To be removed once Automake 1.9.x 4624# dies out for good. For more background, see: 4625# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4626# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4627mkdir_p='$(MKDIR_P)' 4628 4629# We need awk for the "check" target (and possibly the TAP driver). The 4630# system "awk" is bad on some platforms. 4631# Always define AMTAR for backward compatibility. Yes, it's still used 4632# in the wild :-( We should find a proper way to deprecate it ... 4633AMTAR='$${TAR-tar}' 4634 4635 4636# We'll loop over all known methods to create a tar archive until one works. 4637_am_tools='gnutar pax cpio none' 4638 4639am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4640 4641 4642 4643 4644 4645depcc="$CC" am_compiler_list= 4646 4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4648$as_echo_n "checking dependency style of $depcc... " >&6; } 4649if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4650 $as_echo_n "(cached) " >&6 4651else 4652 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4653 # We make a subdir and do the tests there. Otherwise we can end up 4654 # making bogus files that we don't know about and never remove. For 4655 # instance it was reported that on HP-UX the gcc test will end up 4656 # making a dummy file named 'D' -- because '-MD' means "put the output 4657 # in D". 4658 rm -rf conftest.dir 4659 mkdir conftest.dir 4660 # Copy depcomp to subdir because otherwise we won't find it if we're 4661 # using a relative directory. 4662 cp "$am_depcomp" conftest.dir 4663 cd conftest.dir 4664 # We will build objects and dependencies in a subdirectory because 4665 # it helps to detect inapplicable dependency modes. For instance 4666 # both Tru64's cc and ICC support -MD to output dependencies as a 4667 # side effect of compilation, but ICC will put the dependencies in 4668 # the current directory while Tru64 will put them in the object 4669 # directory. 4670 mkdir sub 4671 4672 am_cv_CC_dependencies_compiler_type=none 4673 if test "$am_compiler_list" = ""; then 4674 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4675 fi 4676 am__universal=false 4677 case " $depcc " in #( 4678 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4679 esac 4680 4681 for depmode in $am_compiler_list; do 4682 # Setup a source with many dependencies, because some compilers 4683 # like to wrap large dependency lists on column 80 (with \), and 4684 # we should not choose a depcomp mode which is confused by this. 4685 # 4686 # We need to recreate these files for each test, as the compiler may 4687 # overwrite some of them when testing with obscure command lines. 4688 # This happens at least with the AIX C compiler. 4689 : > sub/conftest.c 4690 for i in 1 2 3 4 5 6; do 4691 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4692 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4693 # Solaris 10 /bin/sh. 4694 echo '/* dummy */' > sub/conftst$i.h 4695 done 4696 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4697 4698 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4699 # mode. It turns out that the SunPro C++ compiler does not properly 4700 # handle '-M -o', and we need to detect this. Also, some Intel 4701 # versions had trouble with output in subdirs. 4702 am__obj=sub/conftest.${OBJEXT-o} 4703 am__minus_obj="-o $am__obj" 4704 case $depmode in 4705 gcc) 4706 # This depmode causes a compiler race in universal mode. 4707 test "$am__universal" = false || continue 4708 ;; 4709 nosideeffect) 4710 # After this tag, mechanisms are not by side-effect, so they'll 4711 # only be used when explicitly requested. 4712 if test "x$enable_dependency_tracking" = xyes; then 4713 continue 4714 else 4715 break 4716 fi 4717 ;; 4718 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4719 # This compiler won't grok '-c -o', but also, the minuso test has 4720 # not run yet. These depmodes are late enough in the game, and 4721 # so weak that their functioning should not be impacted. 4722 am__obj=conftest.${OBJEXT-o} 4723 am__minus_obj= 4724 ;; 4725 none) break ;; 4726 esac 4727 if depmode=$depmode \ 4728 source=sub/conftest.c object=$am__obj \ 4729 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4730 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4731 >/dev/null 2>conftest.err && 4732 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4733 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4734 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4735 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4736 # icc doesn't choke on unknown options, it will just issue warnings 4737 # or remarks (even with -Werror). So we grep stderr for any message 4738 # that says an option was ignored or not supported. 4739 # When given -MP, icc 7.0 and 7.1 complain thusly: 4740 # icc: Command line warning: ignoring option '-M'; no argument required 4741 # The diagnosis changed in icc 8.0: 4742 # icc: Command line remark: option '-MP' not supported 4743 if (grep 'ignoring option' conftest.err || 4744 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4745 am_cv_CC_dependencies_compiler_type=$depmode 4746 break 4747 fi 4748 fi 4749 done 4750 4751 cd .. 4752 rm -rf conftest.dir 4753else 4754 am_cv_CC_dependencies_compiler_type=none 4755fi 4756 4757fi 4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4759$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4760CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4761 4762 if 4763 test "x$enable_dependency_tracking" != xno \ 4764 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4765 am__fastdepCC_TRUE= 4766 am__fastdepCC_FALSE='#' 4767else 4768 am__fastdepCC_TRUE='#' 4769 am__fastdepCC_FALSE= 4770fi 4771 4772 4773 4774# POSIX will say in a future version that running "rm -f" with no argument 4775# is OK; and we want to be able to make that assumption in our Makefile 4776# recipes. So use an aggressive probe to check that the usage we want is 4777# actually supported "in the wild" to an acceptable degree. 4778# See automake bug#10828. 4779# To make any issue more visible, cause the running configure to be aborted 4780# by default if the 'rm' program in use doesn't match our expectations; the 4781# user can still override this though. 4782if rm -f && rm -fr && rm -rf; then : OK; else 4783 cat >&2 <<'END' 4784Oops! 4785 4786Your 'rm' program seems unable to run without file operands specified 4787on the command line, even when the '-f' option is present. This is contrary 4788to the behaviour of most rm programs out there, and not conforming with 4789the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4790 4791Please tell bug-automake@gnu.org about your system, including the value 4792of your $PATH and any error possibly output before this message. This 4793can help us improve future automake versions. 4794 4795END 4796 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4797 echo 'Configuration will proceed anyway, since you have set the' >&2 4798 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4799 echo >&2 4800 else 4801 cat >&2 <<'END' 4802Aborting the configuration process, to ensure you take notice of the issue. 4803 4804You can download and install GNU coreutils to get an 'rm' implementation 4805that behaves properly: <https://www.gnu.org/software/coreutils/>. 4806 4807If you want to complete the configuration process using your problematic 4808'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4809to "yes", and re-run configure. 4810 4811END 4812 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4813 fi 4814fi 4815 4816 4817# Initialize libtool 4818case `pwd` in 4819 *\ * | *\ *) 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4821$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4822esac 4823 4824 4825 4826macro_version='2.4.6' 4827macro_revision='2.4.6' 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841ltmain=$ac_aux_dir/ltmain.sh 4842 4843# Backslashify metacharacters that are still active within 4844# double-quoted strings. 4845sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4846 4847# Same as above, but do not quote variable references. 4848double_quote_subst='s/\(["`\\]\)/\\\1/g' 4849 4850# Sed substitution to delay expansion of an escaped shell variable in a 4851# double_quote_subst'ed string. 4852delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4853 4854# Sed substitution to delay expansion of an escaped single quote. 4855delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4856 4857# Sed substitution to avoid accidental globbing in evaled expressions 4858no_glob_subst='s/\*/\\\*/g' 4859 4860ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4861ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4862ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4863 4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4865$as_echo_n "checking how to print strings... " >&6; } 4866# Test print first, because it will be a builtin if present. 4867if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4868 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4869 ECHO='print -r --' 4870elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4871 ECHO='printf %s\n' 4872else 4873 # Use this function as a fallback that always works. 4874 func_fallback_echo () 4875 { 4876 eval 'cat <<_LTECHO_EOF 4877$1 4878_LTECHO_EOF' 4879 } 4880 ECHO='func_fallback_echo' 4881fi 4882 4883# func_echo_all arg... 4884# Invoke $ECHO with all args, space-separated. 4885func_echo_all () 4886{ 4887 $ECHO "" 4888} 4889 4890case $ECHO in 4891 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4892$as_echo "printf" >&6; } ;; 4893 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4894$as_echo "print -r" >&6; } ;; 4895 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4896$as_echo "cat" >&6; } ;; 4897esac 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4913$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4914if ${ac_cv_path_SED+:} false; then : 4915 $as_echo_n "(cached) " >&6 4916else 4917 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4918 for ac_i in 1 2 3 4 5 6 7; do 4919 ac_script="$ac_script$as_nl$ac_script" 4920 done 4921 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4922 { ac_script=; unset ac_script;} 4923 if test -z "$SED"; then 4924 ac_path_SED_found=false 4925 # Loop through the user's path and test for each of PROGNAME-LIST 4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4927for as_dir in $PATH 4928do 4929 IFS=$as_save_IFS 4930 test -z "$as_dir" && as_dir=. 4931 for ac_prog in sed gsed; do 4932 for ac_exec_ext in '' $ac_executable_extensions; do 4933 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4934 as_fn_executable_p "$ac_path_SED" || continue 4935# Check for GNU ac_path_SED and select it if it is found. 4936 # Check for GNU $ac_path_SED 4937case `"$ac_path_SED" --version 2>&1` in 4938*GNU*) 4939 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4940*) 4941 ac_count=0 4942 $as_echo_n 0123456789 >"conftest.in" 4943 while : 4944 do 4945 cat "conftest.in" "conftest.in" >"conftest.tmp" 4946 mv "conftest.tmp" "conftest.in" 4947 cp "conftest.in" "conftest.nl" 4948 $as_echo '' >> "conftest.nl" 4949 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4950 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4951 as_fn_arith $ac_count + 1 && ac_count=$as_val 4952 if test $ac_count -gt ${ac_path_SED_max-0}; then 4953 # Best one so far, save it but keep looking for a better one 4954 ac_cv_path_SED="$ac_path_SED" 4955 ac_path_SED_max=$ac_count 4956 fi 4957 # 10*(2^10) chars as input seems more than enough 4958 test $ac_count -gt 10 && break 4959 done 4960 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4961esac 4962 4963 $ac_path_SED_found && break 3 4964 done 4965 done 4966 done 4967IFS=$as_save_IFS 4968 if test -z "$ac_cv_path_SED"; then 4969 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4970 fi 4971else 4972 ac_cv_path_SED=$SED 4973fi 4974 4975fi 4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4977$as_echo "$ac_cv_path_SED" >&6; } 4978 SED="$ac_cv_path_SED" 4979 rm -f conftest.sed 4980 4981test -z "$SED" && SED=sed 4982Xsed="$SED -e 1s/^X//" 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4995$as_echo_n "checking for fgrep... " >&6; } 4996if ${ac_cv_path_FGREP+:} false; then : 4997 $as_echo_n "(cached) " >&6 4998else 4999 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5000 then ac_cv_path_FGREP="$GREP -F" 5001 else 5002 if test -z "$FGREP"; then 5003 ac_path_FGREP_found=false 5004 # Loop through the user's path and test for each of PROGNAME-LIST 5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5006for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5007do 5008 IFS=$as_save_IFS 5009 test -z "$as_dir" && as_dir=. 5010 for ac_prog in fgrep; do 5011 for ac_exec_ext in '' $ac_executable_extensions; do 5012 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5013 as_fn_executable_p "$ac_path_FGREP" || continue 5014# Check for GNU ac_path_FGREP and select it if it is found. 5015 # Check for GNU $ac_path_FGREP 5016case `"$ac_path_FGREP" --version 2>&1` in 5017*GNU*) 5018 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5019*) 5020 ac_count=0 5021 $as_echo_n 0123456789 >"conftest.in" 5022 while : 5023 do 5024 cat "conftest.in" "conftest.in" >"conftest.tmp" 5025 mv "conftest.tmp" "conftest.in" 5026 cp "conftest.in" "conftest.nl" 5027 $as_echo 'FGREP' >> "conftest.nl" 5028 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5030 as_fn_arith $ac_count + 1 && ac_count=$as_val 5031 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5032 # Best one so far, save it but keep looking for a better one 5033 ac_cv_path_FGREP="$ac_path_FGREP" 5034 ac_path_FGREP_max=$ac_count 5035 fi 5036 # 10*(2^10) chars as input seems more than enough 5037 test $ac_count -gt 10 && break 5038 done 5039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5040esac 5041 5042 $ac_path_FGREP_found && break 3 5043 done 5044 done 5045 done 5046IFS=$as_save_IFS 5047 if test -z "$ac_cv_path_FGREP"; then 5048 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5049 fi 5050else 5051 ac_cv_path_FGREP=$FGREP 5052fi 5053 5054 fi 5055fi 5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5057$as_echo "$ac_cv_path_FGREP" >&6; } 5058 FGREP="$ac_cv_path_FGREP" 5059 5060 5061test -z "$GREP" && GREP=grep 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081# Check whether --with-gnu-ld was given. 5082if test "${with_gnu_ld+set}" = set; then : 5083 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5084else 5085 with_gnu_ld=no 5086fi 5087 5088ac_prog=ld 5089if test yes = "$GCC"; then 5090 # Check if gcc -print-prog-name=ld gives a path. 5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5092$as_echo_n "checking for ld used by $CC... " >&6; } 5093 case $host in 5094 *-*-mingw*) 5095 # gcc leaves a trailing carriage return, which upsets mingw 5096 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5097 *) 5098 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5099 esac 5100 case $ac_prog in 5101 # Accept absolute paths. 5102 [\\/]* | ?:[\\/]*) 5103 re_direlt='/[^/][^/]*/\.\./' 5104 # Canonicalize the pathname of ld 5105 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5106 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5107 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5108 done 5109 test -z "$LD" && LD=$ac_prog 5110 ;; 5111 "") 5112 # If it fails, then pretend we aren't using GCC. 5113 ac_prog=ld 5114 ;; 5115 *) 5116 # If it is relative, then search for the first ld in PATH. 5117 with_gnu_ld=unknown 5118 ;; 5119 esac 5120elif test yes = "$with_gnu_ld"; then 5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5122$as_echo_n "checking for GNU ld... " >&6; } 5123else 5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5125$as_echo_n "checking for non-GNU ld... " >&6; } 5126fi 5127if ${lt_cv_path_LD+:} false; then : 5128 $as_echo_n "(cached) " >&6 5129else 5130 if test -z "$LD"; then 5131 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5132 for ac_dir in $PATH; do 5133 IFS=$lt_save_ifs 5134 test -z "$ac_dir" && ac_dir=. 5135 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5136 lt_cv_path_LD=$ac_dir/$ac_prog 5137 # Check to see if the program is GNU ld. I'd rather use --version, 5138 # but apparently some variants of GNU ld only accept -v. 5139 # Break only if it was the GNU/non-GNU ld that we prefer. 5140 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5141 *GNU* | *'with BFD'*) 5142 test no != "$with_gnu_ld" && break 5143 ;; 5144 *) 5145 test yes != "$with_gnu_ld" && break 5146 ;; 5147 esac 5148 fi 5149 done 5150 IFS=$lt_save_ifs 5151else 5152 lt_cv_path_LD=$LD # Let the user override the test with a path. 5153fi 5154fi 5155 5156LD=$lt_cv_path_LD 5157if test -n "$LD"; then 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5159$as_echo "$LD" >&6; } 5160else 5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5162$as_echo "no" >&6; } 5163fi 5164test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5166$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5167if ${lt_cv_prog_gnu_ld+:} false; then : 5168 $as_echo_n "(cached) " >&6 5169else 5170 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5171case `$LD -v 2>&1 </dev/null` in 5172*GNU* | *'with BFD'*) 5173 lt_cv_prog_gnu_ld=yes 5174 ;; 5175*) 5176 lt_cv_prog_gnu_ld=no 5177 ;; 5178esac 5179fi 5180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5181$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5182with_gnu_ld=$lt_cv_prog_gnu_ld 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5193$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5194if ${lt_cv_path_NM+:} false; then : 5195 $as_echo_n "(cached) " >&6 5196else 5197 if test -n "$NM"; then 5198 # Let the user override the test. 5199 lt_cv_path_NM=$NM 5200else 5201 lt_nm_to_check=${ac_tool_prefix}nm 5202 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5203 lt_nm_to_check="$lt_nm_to_check nm" 5204 fi 5205 for lt_tmp_nm in $lt_nm_to_check; do 5206 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5207 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5208 IFS=$lt_save_ifs 5209 test -z "$ac_dir" && ac_dir=. 5210 tmp_nm=$ac_dir/$lt_tmp_nm 5211 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5212 # Check to see if the nm accepts a BSD-compat flag. 5213 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5214 # nm: unknown option "B" ignored 5215 # Tru64's nm complains that /dev/null is an invalid object file 5216 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5217 case $build_os in 5218 mingw*) lt_bad_file=conftest.nm/nofile ;; 5219 *) lt_bad_file=/dev/null ;; 5220 esac 5221 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5222 *$lt_bad_file* | *'Invalid file or object type'*) 5223 lt_cv_path_NM="$tmp_nm -B" 5224 break 2 5225 ;; 5226 *) 5227 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5228 */dev/null*) 5229 lt_cv_path_NM="$tmp_nm -p" 5230 break 2 5231 ;; 5232 *) 5233 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5234 continue # so that we can try to find one that supports BSD flags 5235 ;; 5236 esac 5237 ;; 5238 esac 5239 fi 5240 done 5241 IFS=$lt_save_ifs 5242 done 5243 : ${lt_cv_path_NM=no} 5244fi 5245fi 5246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5247$as_echo "$lt_cv_path_NM" >&6; } 5248if test no != "$lt_cv_path_NM"; then 5249 NM=$lt_cv_path_NM 5250else 5251 # Didn't find any BSD compatible name lister, look for dumpbin. 5252 if test -n "$DUMPBIN"; then : 5253 # Let the user override the test. 5254 else 5255 if test -n "$ac_tool_prefix"; then 5256 for ac_prog in dumpbin "link -dump" 5257 do 5258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5259set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5261$as_echo_n "checking for $ac_word... " >&6; } 5262if ${ac_cv_prog_DUMPBIN+:} false; then : 5263 $as_echo_n "(cached) " >&6 5264else 5265 if test -n "$DUMPBIN"; then 5266 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5267else 5268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5269for as_dir in $PATH 5270do 5271 IFS=$as_save_IFS 5272 test -z "$as_dir" && as_dir=. 5273 for ac_exec_ext in '' $ac_executable_extensions; do 5274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5275 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5277 break 2 5278 fi 5279done 5280 done 5281IFS=$as_save_IFS 5282 5283fi 5284fi 5285DUMPBIN=$ac_cv_prog_DUMPBIN 5286if test -n "$DUMPBIN"; then 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5288$as_echo "$DUMPBIN" >&6; } 5289else 5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5291$as_echo "no" >&6; } 5292fi 5293 5294 5295 test -n "$DUMPBIN" && break 5296 done 5297fi 5298if test -z "$DUMPBIN"; then 5299 ac_ct_DUMPBIN=$DUMPBIN 5300 for ac_prog in dumpbin "link -dump" 5301do 5302 # Extract the first word of "$ac_prog", so it can be a program name with args. 5303set dummy $ac_prog; ac_word=$2 5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5305$as_echo_n "checking for $ac_word... " >&6; } 5306if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5307 $as_echo_n "(cached) " >&6 5308else 5309 if test -n "$ac_ct_DUMPBIN"; then 5310 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5311else 5312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5313for as_dir in $PATH 5314do 5315 IFS=$as_save_IFS 5316 test -z "$as_dir" && as_dir=. 5317 for ac_exec_ext in '' $ac_executable_extensions; do 5318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5319 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5321 break 2 5322 fi 5323done 5324 done 5325IFS=$as_save_IFS 5326 5327fi 5328fi 5329ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5330if test -n "$ac_ct_DUMPBIN"; then 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5332$as_echo "$ac_ct_DUMPBIN" >&6; } 5333else 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5335$as_echo "no" >&6; } 5336fi 5337 5338 5339 test -n "$ac_ct_DUMPBIN" && break 5340done 5341 5342 if test "x$ac_ct_DUMPBIN" = x; then 5343 DUMPBIN=":" 5344 else 5345 case $cross_compiling:$ac_tool_warned in 5346yes:) 5347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5349ac_tool_warned=yes ;; 5350esac 5351 DUMPBIN=$ac_ct_DUMPBIN 5352 fi 5353fi 5354 5355 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5356 *COFF*) 5357 DUMPBIN="$DUMPBIN -symbols -headers" 5358 ;; 5359 *) 5360 DUMPBIN=: 5361 ;; 5362 esac 5363 fi 5364 5365 if test : != "$DUMPBIN"; then 5366 NM=$DUMPBIN 5367 fi 5368fi 5369test -z "$NM" && NM=nm 5370 5371 5372 5373 5374 5375 5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5377$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5378if ${lt_cv_nm_interface+:} false; then : 5379 $as_echo_n "(cached) " >&6 5380else 5381 lt_cv_nm_interface="BSD nm" 5382 echo "int some_variable = 0;" > conftest.$ac_ext 5383 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5384 (eval "$ac_compile" 2>conftest.err) 5385 cat conftest.err >&5 5386 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5387 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5388 cat conftest.err >&5 5389 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5390 cat conftest.out >&5 5391 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5392 lt_cv_nm_interface="MS dumpbin" 5393 fi 5394 rm -f conftest* 5395fi 5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5397$as_echo "$lt_cv_nm_interface" >&6; } 5398 5399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5400$as_echo_n "checking whether ln -s works... " >&6; } 5401LN_S=$as_ln_s 5402if test "$LN_S" = "ln -s"; then 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5404$as_echo "yes" >&6; } 5405else 5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5407$as_echo "no, using $LN_S" >&6; } 5408fi 5409 5410# find the maximum length of command line arguments 5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5412$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5413if ${lt_cv_sys_max_cmd_len+:} false; then : 5414 $as_echo_n "(cached) " >&6 5415else 5416 i=0 5417 teststring=ABCD 5418 5419 case $build_os in 5420 msdosdjgpp*) 5421 # On DJGPP, this test can blow up pretty badly due to problems in libc 5422 # (any single argument exceeding 2000 bytes causes a buffer overrun 5423 # during glob expansion). Even if it were fixed, the result of this 5424 # check would be larger than it should be. 5425 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5426 ;; 5427 5428 gnu*) 5429 # Under GNU Hurd, this test is not required because there is 5430 # no limit to the length of command line arguments. 5431 # Libtool will interpret -1 as no limit whatsoever 5432 lt_cv_sys_max_cmd_len=-1; 5433 ;; 5434 5435 cygwin* | mingw* | cegcc*) 5436 # On Win9x/ME, this test blows up -- it succeeds, but takes 5437 # about 5 minutes as the teststring grows exponentially. 5438 # Worse, since 9x/ME are not pre-emptively multitasking, 5439 # you end up with a "frozen" computer, even though with patience 5440 # the test eventually succeeds (with a max line length of 256k). 5441 # Instead, let's just punt: use the minimum linelength reported by 5442 # all of the supported platforms: 8192 (on NT/2K/XP). 5443 lt_cv_sys_max_cmd_len=8192; 5444 ;; 5445 5446 mint*) 5447 # On MiNT this can take a long time and run out of memory. 5448 lt_cv_sys_max_cmd_len=8192; 5449 ;; 5450 5451 amigaos*) 5452 # On AmigaOS with pdksh, this test takes hours, literally. 5453 # So we just punt and use a minimum line length of 8192. 5454 lt_cv_sys_max_cmd_len=8192; 5455 ;; 5456 5457 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5458 # This has been around since 386BSD, at least. Likely further. 5459 if test -x /sbin/sysctl; then 5460 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5461 elif test -x /usr/sbin/sysctl; then 5462 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5463 else 5464 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5465 fi 5466 # And add a safety zone 5467 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5469 ;; 5470 5471 interix*) 5472 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5473 lt_cv_sys_max_cmd_len=196608 5474 ;; 5475 5476 os2*) 5477 # The test takes a long time on OS/2. 5478 lt_cv_sys_max_cmd_len=8192 5479 ;; 5480 5481 osf*) 5482 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5483 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5484 # nice to cause kernel panics so lets avoid the loop below. 5485 # First set a reasonable default. 5486 lt_cv_sys_max_cmd_len=16384 5487 # 5488 if test -x /sbin/sysconfig; then 5489 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5490 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5491 esac 5492 fi 5493 ;; 5494 sco3.2v5*) 5495 lt_cv_sys_max_cmd_len=102400 5496 ;; 5497 sysv5* | sco5v6* | sysv4.2uw2*) 5498 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5499 if test -n "$kargmax"; then 5500 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5501 else 5502 lt_cv_sys_max_cmd_len=32768 5503 fi 5504 ;; 5505 *) 5506 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5507 if test -n "$lt_cv_sys_max_cmd_len" && \ 5508 test undefined != "$lt_cv_sys_max_cmd_len"; then 5509 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5511 else 5512 # Make teststring a little bigger before we do anything with it. 5513 # a 1K string should be a reasonable start. 5514 for i in 1 2 3 4 5 6 7 8; do 5515 teststring=$teststring$teststring 5516 done 5517 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5518 # If test is not a shell built-in, we'll probably end up computing a 5519 # maximum length that is only half of the actual maximum length, but 5520 # we can't tell. 5521 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5522 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5523 test 17 != "$i" # 1/2 MB should be enough 5524 do 5525 i=`expr $i + 1` 5526 teststring=$teststring$teststring 5527 done 5528 # Only check the string length outside the loop. 5529 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5530 teststring= 5531 # Add a significant safety factor because C++ compilers can tack on 5532 # massive amounts of additional arguments before passing them to the 5533 # linker. It appears as though 1/2 is a usable value. 5534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5535 fi 5536 ;; 5537 esac 5538 5539fi 5540 5541if test -n "$lt_cv_sys_max_cmd_len"; then 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5543$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5544else 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5546$as_echo "none" >&6; } 5547fi 5548max_cmd_len=$lt_cv_sys_max_cmd_len 5549 5550 5551 5552 5553 5554 5555: ${CP="cp -f"} 5556: ${MV="mv -f"} 5557: ${RM="rm -f"} 5558 5559if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5560 lt_unset=unset 5561else 5562 lt_unset=false 5563fi 5564 5565 5566 5567 5568 5569# test EBCDIC or ASCII 5570case `echo X|tr X '\101'` in 5571 A) # ASCII based system 5572 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5573 lt_SP2NL='tr \040 \012' 5574 lt_NL2SP='tr \015\012 \040\040' 5575 ;; 5576 *) # EBCDIC based system 5577 lt_SP2NL='tr \100 \n' 5578 lt_NL2SP='tr \r\n \100\100' 5579 ;; 5580esac 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5591$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5592if ${lt_cv_to_host_file_cmd+:} false; then : 5593 $as_echo_n "(cached) " >&6 5594else 5595 case $host in 5596 *-*-mingw* ) 5597 case $build in 5598 *-*-mingw* ) # actually msys 5599 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5600 ;; 5601 *-*-cygwin* ) 5602 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5603 ;; 5604 * ) # otherwise, assume *nix 5605 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5606 ;; 5607 esac 5608 ;; 5609 *-*-cygwin* ) 5610 case $build in 5611 *-*-mingw* ) # actually msys 5612 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5613 ;; 5614 *-*-cygwin* ) 5615 lt_cv_to_host_file_cmd=func_convert_file_noop 5616 ;; 5617 * ) # otherwise, assume *nix 5618 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5619 ;; 5620 esac 5621 ;; 5622 * ) # unhandled hosts (and "normal" native builds) 5623 lt_cv_to_host_file_cmd=func_convert_file_noop 5624 ;; 5625esac 5626 5627fi 5628 5629to_host_file_cmd=$lt_cv_to_host_file_cmd 5630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5631$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5632 5633 5634 5635 5636 5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5638$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5639if ${lt_cv_to_tool_file_cmd+:} false; then : 5640 $as_echo_n "(cached) " >&6 5641else 5642 #assume ordinary cross tools, or native build. 5643lt_cv_to_tool_file_cmd=func_convert_file_noop 5644case $host in 5645 *-*-mingw* ) 5646 case $build in 5647 *-*-mingw* ) # actually msys 5648 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5649 ;; 5650 esac 5651 ;; 5652esac 5653 5654fi 5655 5656to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5658$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5659 5660 5661 5662 5663 5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5665$as_echo_n "checking for $LD option to reload object files... " >&6; } 5666if ${lt_cv_ld_reload_flag+:} false; then : 5667 $as_echo_n "(cached) " >&6 5668else 5669 lt_cv_ld_reload_flag='-r' 5670fi 5671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5672$as_echo "$lt_cv_ld_reload_flag" >&6; } 5673reload_flag=$lt_cv_ld_reload_flag 5674case $reload_flag in 5675"" | " "*) ;; 5676*) reload_flag=" $reload_flag" ;; 5677esac 5678reload_cmds='$LD$reload_flag -o $output$reload_objs' 5679case $host_os in 5680 cygwin* | mingw* | pw32* | cegcc*) 5681 if test yes != "$GCC"; then 5682 reload_cmds=false 5683 fi 5684 ;; 5685 darwin*) 5686 if test yes = "$GCC"; then 5687 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5688 else 5689 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5690 fi 5691 ;; 5692esac 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702if test -n "$ac_tool_prefix"; then 5703 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5704set dummy ${ac_tool_prefix}objdump; ac_word=$2 5705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5706$as_echo_n "checking for $ac_word... " >&6; } 5707if ${ac_cv_prog_OBJDUMP+:} false; then : 5708 $as_echo_n "(cached) " >&6 5709else 5710 if test -n "$OBJDUMP"; then 5711 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5712else 5713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5714for as_dir in $PATH 5715do 5716 IFS=$as_save_IFS 5717 test -z "$as_dir" && as_dir=. 5718 for ac_exec_ext in '' $ac_executable_extensions; do 5719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5720 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5722 break 2 5723 fi 5724done 5725 done 5726IFS=$as_save_IFS 5727 5728fi 5729fi 5730OBJDUMP=$ac_cv_prog_OBJDUMP 5731if test -n "$OBJDUMP"; then 5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5733$as_echo "$OBJDUMP" >&6; } 5734else 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5736$as_echo "no" >&6; } 5737fi 5738 5739 5740fi 5741if test -z "$ac_cv_prog_OBJDUMP"; then 5742 ac_ct_OBJDUMP=$OBJDUMP 5743 # Extract the first word of "objdump", so it can be a program name with args. 5744set dummy objdump; ac_word=$2 5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5746$as_echo_n "checking for $ac_word... " >&6; } 5747if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5748 $as_echo_n "(cached) " >&6 5749else 5750 if test -n "$ac_ct_OBJDUMP"; then 5751 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5752else 5753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5754for as_dir in $PATH 5755do 5756 IFS=$as_save_IFS 5757 test -z "$as_dir" && as_dir=. 5758 for ac_exec_ext in '' $ac_executable_extensions; do 5759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5760 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5762 break 2 5763 fi 5764done 5765 done 5766IFS=$as_save_IFS 5767 5768fi 5769fi 5770ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5771if test -n "$ac_ct_OBJDUMP"; then 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5773$as_echo "$ac_ct_OBJDUMP" >&6; } 5774else 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5776$as_echo "no" >&6; } 5777fi 5778 5779 if test "x$ac_ct_OBJDUMP" = x; then 5780 OBJDUMP="false" 5781 else 5782 case $cross_compiling:$ac_tool_warned in 5783yes:) 5784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5786ac_tool_warned=yes ;; 5787esac 5788 OBJDUMP=$ac_ct_OBJDUMP 5789 fi 5790else 5791 OBJDUMP="$ac_cv_prog_OBJDUMP" 5792fi 5793 5794test -z "$OBJDUMP" && OBJDUMP=objdump 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5805$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5806if ${lt_cv_deplibs_check_method+:} false; then : 5807 $as_echo_n "(cached) " >&6 5808else 5809 lt_cv_file_magic_cmd='$MAGIC_CMD' 5810lt_cv_file_magic_test_file= 5811lt_cv_deplibs_check_method='unknown' 5812# Need to set the preceding variable on all platforms that support 5813# interlibrary dependencies. 5814# 'none' -- dependencies not supported. 5815# 'unknown' -- same as none, but documents that we really don't know. 5816# 'pass_all' -- all dependencies passed with no checks. 5817# 'test_compile' -- check by making test program. 5818# 'file_magic [[regex]]' -- check by looking for files in library path 5819# that responds to the $file_magic_cmd with a given extended regex. 5820# If you have 'file' or equivalent on your system and you're not sure 5821# whether 'pass_all' will *always* work, you probably want this one. 5822 5823case $host_os in 5824aix[4-9]*) 5825 lt_cv_deplibs_check_method=pass_all 5826 ;; 5827 5828beos*) 5829 lt_cv_deplibs_check_method=pass_all 5830 ;; 5831 5832bsdi[45]*) 5833 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5834 lt_cv_file_magic_cmd='/usr/bin/file -L' 5835 lt_cv_file_magic_test_file=/shlib/libc.so 5836 ;; 5837 5838cygwin*) 5839 # func_win32_libid is a shell function defined in ltmain.sh 5840 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5841 lt_cv_file_magic_cmd='func_win32_libid' 5842 ;; 5843 5844mingw* | pw32*) 5845 # Base MSYS/MinGW do not provide the 'file' command needed by 5846 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5847 # unless we find 'file', for example because we are cross-compiling. 5848 if ( file / ) >/dev/null 2>&1; then 5849 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5850 lt_cv_file_magic_cmd='func_win32_libid' 5851 else 5852 # Keep this pattern in sync with the one in func_win32_libid. 5853 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5854 lt_cv_file_magic_cmd='$OBJDUMP -f' 5855 fi 5856 ;; 5857 5858cegcc*) 5859 # use the weaker test based on 'objdump'. See mingw*. 5860 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5861 lt_cv_file_magic_cmd='$OBJDUMP -f' 5862 ;; 5863 5864darwin* | rhapsody*) 5865 lt_cv_deplibs_check_method=pass_all 5866 ;; 5867 5868freebsd* | dragonfly*) 5869 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5870 case $host_cpu in 5871 i*86 ) 5872 # Not sure whether the presence of OpenBSD here was a mistake. 5873 # Let's accept both of them until this is cleared up. 5874 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5875 lt_cv_file_magic_cmd=/usr/bin/file 5876 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5877 ;; 5878 esac 5879 else 5880 lt_cv_deplibs_check_method=pass_all 5881 fi 5882 ;; 5883 5884haiku*) 5885 lt_cv_deplibs_check_method=pass_all 5886 ;; 5887 5888hpux10.20* | hpux11*) 5889 lt_cv_file_magic_cmd=/usr/bin/file 5890 case $host_cpu in 5891 ia64*) 5892 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5893 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5894 ;; 5895 hppa*64*) 5896 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]' 5897 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5898 ;; 5899 *) 5900 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5901 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5902 ;; 5903 esac 5904 ;; 5905 5906interix[3-9]*) 5907 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5909 ;; 5910 5911irix5* | irix6* | nonstopux*) 5912 case $LD in 5913 *-32|*"-32 ") libmagic=32-bit;; 5914 *-n32|*"-n32 ") libmagic=N32;; 5915 *-64|*"-64 ") libmagic=64-bit;; 5916 *) libmagic=never-match;; 5917 esac 5918 lt_cv_deplibs_check_method=pass_all 5919 ;; 5920 5921# This must be glibc/ELF. 5922linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5923 lt_cv_deplibs_check_method=pass_all 5924 ;; 5925 5926netbsd*) 5927 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5929 else 5930 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5931 fi 5932 ;; 5933 5934newos6*) 5935 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5936 lt_cv_file_magic_cmd=/usr/bin/file 5937 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5938 ;; 5939 5940*nto* | *qnx*) 5941 lt_cv_deplibs_check_method=pass_all 5942 ;; 5943 5944openbsd* | bitrig*) 5945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5946 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5947 else 5948 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5949 fi 5950 ;; 5951 5952osf3* | osf4* | osf5*) 5953 lt_cv_deplibs_check_method=pass_all 5954 ;; 5955 5956rdos*) 5957 lt_cv_deplibs_check_method=pass_all 5958 ;; 5959 5960solaris*) 5961 lt_cv_deplibs_check_method=pass_all 5962 ;; 5963 5964sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5965 lt_cv_deplibs_check_method=pass_all 5966 ;; 5967 5968sysv4 | sysv4.3*) 5969 case $host_vendor in 5970 motorola) 5971 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]' 5972 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5973 ;; 5974 ncr) 5975 lt_cv_deplibs_check_method=pass_all 5976 ;; 5977 sequent) 5978 lt_cv_file_magic_cmd='/bin/file' 5979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5980 ;; 5981 sni) 5982 lt_cv_file_magic_cmd='/bin/file' 5983 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5984 lt_cv_file_magic_test_file=/lib/libc.so 5985 ;; 5986 siemens) 5987 lt_cv_deplibs_check_method=pass_all 5988 ;; 5989 pc) 5990 lt_cv_deplibs_check_method=pass_all 5991 ;; 5992 esac 5993 ;; 5994 5995tpf*) 5996 lt_cv_deplibs_check_method=pass_all 5997 ;; 5998os2*) 5999 lt_cv_deplibs_check_method=pass_all 6000 ;; 6001esac 6002 6003fi 6004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6005$as_echo "$lt_cv_deplibs_check_method" >&6; } 6006 6007file_magic_glob= 6008want_nocaseglob=no 6009if test "$build" = "$host"; then 6010 case $host_os in 6011 mingw* | pw32*) 6012 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6013 want_nocaseglob=yes 6014 else 6015 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6016 fi 6017 ;; 6018 esac 6019fi 6020 6021file_magic_cmd=$lt_cv_file_magic_cmd 6022deplibs_check_method=$lt_cv_deplibs_check_method 6023test -z "$deplibs_check_method" && deplibs_check_method=unknown 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046if test -n "$ac_tool_prefix"; then 6047 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6048set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6050$as_echo_n "checking for $ac_word... " >&6; } 6051if ${ac_cv_prog_DLLTOOL+:} false; then : 6052 $as_echo_n "(cached) " >&6 6053else 6054 if test -n "$DLLTOOL"; then 6055 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6056else 6057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6058for as_dir in $PATH 6059do 6060 IFS=$as_save_IFS 6061 test -z "$as_dir" && as_dir=. 6062 for ac_exec_ext in '' $ac_executable_extensions; do 6063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6064 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6066 break 2 6067 fi 6068done 6069 done 6070IFS=$as_save_IFS 6071 6072fi 6073fi 6074DLLTOOL=$ac_cv_prog_DLLTOOL 6075if test -n "$DLLTOOL"; then 6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6077$as_echo "$DLLTOOL" >&6; } 6078else 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6080$as_echo "no" >&6; } 6081fi 6082 6083 6084fi 6085if test -z "$ac_cv_prog_DLLTOOL"; then 6086 ac_ct_DLLTOOL=$DLLTOOL 6087 # Extract the first word of "dlltool", so it can be a program name with args. 6088set dummy dlltool; ac_word=$2 6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6090$as_echo_n "checking for $ac_word... " >&6; } 6091if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6092 $as_echo_n "(cached) " >&6 6093else 6094 if test -n "$ac_ct_DLLTOOL"; then 6095 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6096else 6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6098for as_dir in $PATH 6099do 6100 IFS=$as_save_IFS 6101 test -z "$as_dir" && as_dir=. 6102 for ac_exec_ext in '' $ac_executable_extensions; do 6103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6104 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6106 break 2 6107 fi 6108done 6109 done 6110IFS=$as_save_IFS 6111 6112fi 6113fi 6114ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6115if test -n "$ac_ct_DLLTOOL"; then 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6117$as_echo "$ac_ct_DLLTOOL" >&6; } 6118else 6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6120$as_echo "no" >&6; } 6121fi 6122 6123 if test "x$ac_ct_DLLTOOL" = x; then 6124 DLLTOOL="false" 6125 else 6126 case $cross_compiling:$ac_tool_warned in 6127yes:) 6128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6130ac_tool_warned=yes ;; 6131esac 6132 DLLTOOL=$ac_ct_DLLTOOL 6133 fi 6134else 6135 DLLTOOL="$ac_cv_prog_DLLTOOL" 6136fi 6137 6138test -z "$DLLTOOL" && DLLTOOL=dlltool 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6150$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6151if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6152 $as_echo_n "(cached) " >&6 6153else 6154 lt_cv_sharedlib_from_linklib_cmd='unknown' 6155 6156case $host_os in 6157cygwin* | mingw* | pw32* | cegcc*) 6158 # two different shell functions defined in ltmain.sh; 6159 # decide which one to use based on capabilities of $DLLTOOL 6160 case `$DLLTOOL --help 2>&1` in 6161 *--identify-strict*) 6162 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6163 ;; 6164 *) 6165 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6166 ;; 6167 esac 6168 ;; 6169*) 6170 # fallback: assume linklib IS sharedlib 6171 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6172 ;; 6173esac 6174 6175fi 6176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6177$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6178sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6179test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6180 6181 6182 6183 6184 6185 6186 6187if test -n "$ac_tool_prefix"; then 6188 for ac_prog in ar 6189 do 6190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6191set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6193$as_echo_n "checking for $ac_word... " >&6; } 6194if ${ac_cv_prog_AR+:} false; then : 6195 $as_echo_n "(cached) " >&6 6196else 6197 if test -n "$AR"; then 6198 ac_cv_prog_AR="$AR" # Let the user override the test. 6199else 6200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6201for as_dir in $PATH 6202do 6203 IFS=$as_save_IFS 6204 test -z "$as_dir" && as_dir=. 6205 for ac_exec_ext in '' $ac_executable_extensions; do 6206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6207 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6209 break 2 6210 fi 6211done 6212 done 6213IFS=$as_save_IFS 6214 6215fi 6216fi 6217AR=$ac_cv_prog_AR 6218if test -n "$AR"; then 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6220$as_echo "$AR" >&6; } 6221else 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6223$as_echo "no" >&6; } 6224fi 6225 6226 6227 test -n "$AR" && break 6228 done 6229fi 6230if test -z "$AR"; then 6231 ac_ct_AR=$AR 6232 for ac_prog in ar 6233do 6234 # Extract the first word of "$ac_prog", so it can be a program name with args. 6235set dummy $ac_prog; ac_word=$2 6236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6237$as_echo_n "checking for $ac_word... " >&6; } 6238if ${ac_cv_prog_ac_ct_AR+:} false; then : 6239 $as_echo_n "(cached) " >&6 6240else 6241 if test -n "$ac_ct_AR"; then 6242 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6243else 6244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6245for as_dir in $PATH 6246do 6247 IFS=$as_save_IFS 6248 test -z "$as_dir" && as_dir=. 6249 for ac_exec_ext in '' $ac_executable_extensions; do 6250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6251 ac_cv_prog_ac_ct_AR="$ac_prog" 6252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6253 break 2 6254 fi 6255done 6256 done 6257IFS=$as_save_IFS 6258 6259fi 6260fi 6261ac_ct_AR=$ac_cv_prog_ac_ct_AR 6262if test -n "$ac_ct_AR"; then 6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6264$as_echo "$ac_ct_AR" >&6; } 6265else 6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6267$as_echo "no" >&6; } 6268fi 6269 6270 6271 test -n "$ac_ct_AR" && break 6272done 6273 6274 if test "x$ac_ct_AR" = x; then 6275 AR="false" 6276 else 6277 case $cross_compiling:$ac_tool_warned in 6278yes:) 6279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6281ac_tool_warned=yes ;; 6282esac 6283 AR=$ac_ct_AR 6284 fi 6285fi 6286 6287: ${AR=ar} 6288: ${AR_FLAGS=cru} 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6301$as_echo_n "checking for archiver @FILE support... " >&6; } 6302if ${lt_cv_ar_at_file+:} false; then : 6303 $as_echo_n "(cached) " >&6 6304else 6305 lt_cv_ar_at_file=no 6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6307/* end confdefs.h. */ 6308 6309int 6310main () 6311{ 6312 6313 ; 6314 return 0; 6315} 6316_ACEOF 6317if ac_fn_c_try_compile "$LINENO"; then : 6318 echo conftest.$ac_objext > conftest.lst 6319 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6321 (eval $lt_ar_try) 2>&5 6322 ac_status=$? 6323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6324 test $ac_status = 0; } 6325 if test 0 -eq "$ac_status"; then 6326 # Ensure the archiver fails upon bogus file names. 6327 rm -f conftest.$ac_objext libconftest.a 6328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6329 (eval $lt_ar_try) 2>&5 6330 ac_status=$? 6331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6332 test $ac_status = 0; } 6333 if test 0 -ne "$ac_status"; then 6334 lt_cv_ar_at_file=@ 6335 fi 6336 fi 6337 rm -f conftest.* libconftest.a 6338 6339fi 6340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6341 6342fi 6343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6344$as_echo "$lt_cv_ar_at_file" >&6; } 6345 6346if test no = "$lt_cv_ar_at_file"; then 6347 archiver_list_spec= 6348else 6349 archiver_list_spec=$lt_cv_ar_at_file 6350fi 6351 6352 6353 6354 6355 6356 6357 6358if test -n "$ac_tool_prefix"; then 6359 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6360set dummy ${ac_tool_prefix}strip; ac_word=$2 6361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6362$as_echo_n "checking for $ac_word... " >&6; } 6363if ${ac_cv_prog_STRIP+:} false; then : 6364 $as_echo_n "(cached) " >&6 6365else 6366 if test -n "$STRIP"; then 6367 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6368else 6369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6370for as_dir in $PATH 6371do 6372 IFS=$as_save_IFS 6373 test -z "$as_dir" && as_dir=. 6374 for ac_exec_ext in '' $ac_executable_extensions; do 6375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6376 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6378 break 2 6379 fi 6380done 6381 done 6382IFS=$as_save_IFS 6383 6384fi 6385fi 6386STRIP=$ac_cv_prog_STRIP 6387if test -n "$STRIP"; then 6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6389$as_echo "$STRIP" >&6; } 6390else 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6392$as_echo "no" >&6; } 6393fi 6394 6395 6396fi 6397if test -z "$ac_cv_prog_STRIP"; then 6398 ac_ct_STRIP=$STRIP 6399 # Extract the first word of "strip", so it can be a program name with args. 6400set dummy strip; ac_word=$2 6401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6402$as_echo_n "checking for $ac_word... " >&6; } 6403if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6404 $as_echo_n "(cached) " >&6 6405else 6406 if test -n "$ac_ct_STRIP"; then 6407 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6408else 6409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6410for as_dir in $PATH 6411do 6412 IFS=$as_save_IFS 6413 test -z "$as_dir" && as_dir=. 6414 for ac_exec_ext in '' $ac_executable_extensions; do 6415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6416 ac_cv_prog_ac_ct_STRIP="strip" 6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6418 break 2 6419 fi 6420done 6421 done 6422IFS=$as_save_IFS 6423 6424fi 6425fi 6426ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6427if test -n "$ac_ct_STRIP"; then 6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6429$as_echo "$ac_ct_STRIP" >&6; } 6430else 6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6432$as_echo "no" >&6; } 6433fi 6434 6435 if test "x$ac_ct_STRIP" = x; then 6436 STRIP=":" 6437 else 6438 case $cross_compiling:$ac_tool_warned in 6439yes:) 6440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6442ac_tool_warned=yes ;; 6443esac 6444 STRIP=$ac_ct_STRIP 6445 fi 6446else 6447 STRIP="$ac_cv_prog_STRIP" 6448fi 6449 6450test -z "$STRIP" && STRIP=: 6451 6452 6453 6454 6455 6456 6457if test -n "$ac_tool_prefix"; then 6458 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6459set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6461$as_echo_n "checking for $ac_word... " >&6; } 6462if ${ac_cv_prog_RANLIB+:} false; then : 6463 $as_echo_n "(cached) " >&6 6464else 6465 if test -n "$RANLIB"; then 6466 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6467else 6468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6469for as_dir in $PATH 6470do 6471 IFS=$as_save_IFS 6472 test -z "$as_dir" && as_dir=. 6473 for ac_exec_ext in '' $ac_executable_extensions; do 6474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6475 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6477 break 2 6478 fi 6479done 6480 done 6481IFS=$as_save_IFS 6482 6483fi 6484fi 6485RANLIB=$ac_cv_prog_RANLIB 6486if test -n "$RANLIB"; then 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6488$as_echo "$RANLIB" >&6; } 6489else 6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6491$as_echo "no" >&6; } 6492fi 6493 6494 6495fi 6496if test -z "$ac_cv_prog_RANLIB"; then 6497 ac_ct_RANLIB=$RANLIB 6498 # Extract the first word of "ranlib", so it can be a program name with args. 6499set dummy ranlib; ac_word=$2 6500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6501$as_echo_n "checking for $ac_word... " >&6; } 6502if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6503 $as_echo_n "(cached) " >&6 6504else 6505 if test -n "$ac_ct_RANLIB"; then 6506 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6507else 6508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6509for as_dir in $PATH 6510do 6511 IFS=$as_save_IFS 6512 test -z "$as_dir" && as_dir=. 6513 for ac_exec_ext in '' $ac_executable_extensions; do 6514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6515 ac_cv_prog_ac_ct_RANLIB="ranlib" 6516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6517 break 2 6518 fi 6519done 6520 done 6521IFS=$as_save_IFS 6522 6523fi 6524fi 6525ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6526if test -n "$ac_ct_RANLIB"; then 6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6528$as_echo "$ac_ct_RANLIB" >&6; } 6529else 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6531$as_echo "no" >&6; } 6532fi 6533 6534 if test "x$ac_ct_RANLIB" = x; then 6535 RANLIB=":" 6536 else 6537 case $cross_compiling:$ac_tool_warned in 6538yes:) 6539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6541ac_tool_warned=yes ;; 6542esac 6543 RANLIB=$ac_ct_RANLIB 6544 fi 6545else 6546 RANLIB="$ac_cv_prog_RANLIB" 6547fi 6548 6549test -z "$RANLIB" && RANLIB=: 6550 6551 6552 6553 6554 6555 6556# Determine commands to create old-style static archives. 6557old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6558old_postinstall_cmds='chmod 644 $oldlib' 6559old_postuninstall_cmds= 6560 6561if test -n "$RANLIB"; then 6562 case $host_os in 6563 bitrig* | openbsd*) 6564 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6565 ;; 6566 *) 6567 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6568 ;; 6569 esac 6570 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6571fi 6572 6573case $host_os in 6574 darwin*) 6575 lock_old_archive_extraction=yes ;; 6576 *) 6577 lock_old_archive_extraction=no ;; 6578esac 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618# If no C compiler was specified, use CC. 6619LTCC=${LTCC-"$CC"} 6620 6621# If no C compiler flags were specified, use CFLAGS. 6622LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6623 6624# Allow CC to be a program name with arguments. 6625compiler=$CC 6626 6627 6628# Check for command to grab the raw symbol name followed by C symbol from nm. 6629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6630$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6631if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6632 $as_echo_n "(cached) " >&6 6633else 6634 6635# These are sane defaults that work on at least a few old systems. 6636# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6637 6638# Character class describing NM global symbol codes. 6639symcode='[BCDEGRST]' 6640 6641# Regexp to match symbols that can be accessed directly from C. 6642sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6643 6644# Define system-specific variables. 6645case $host_os in 6646aix*) 6647 symcode='[BCDT]' 6648 ;; 6649cygwin* | mingw* | pw32* | cegcc*) 6650 symcode='[ABCDGISTW]' 6651 ;; 6652hpux*) 6653 if test ia64 = "$host_cpu"; then 6654 symcode='[ABCDEGRST]' 6655 fi 6656 ;; 6657irix* | nonstopux*) 6658 symcode='[BCDEGRST]' 6659 ;; 6660osf*) 6661 symcode='[BCDEGQRST]' 6662 ;; 6663solaris*) 6664 symcode='[BDRT]' 6665 ;; 6666sco3.2v5*) 6667 symcode='[DT]' 6668 ;; 6669sysv4.2uw2*) 6670 symcode='[DT]' 6671 ;; 6672sysv5* | sco5v6* | unixware* | OpenUNIX*) 6673 symcode='[ABDT]' 6674 ;; 6675sysv4) 6676 symcode='[DFNSTU]' 6677 ;; 6678esac 6679 6680# If we're using GNU nm, then use its standard symbol codes. 6681case `$NM -V 2>&1` in 6682*GNU* | *'with BFD'*) 6683 symcode='[ABCDGIRSTW]' ;; 6684esac 6685 6686if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6687 # Gets list of data symbols to import. 6688 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6689 # Adjust the below global symbol transforms to fixup imported variables. 6690 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6691 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6692 lt_c_name_lib_hook="\ 6693 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6694 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6695else 6696 # Disable hooks by default. 6697 lt_cv_sys_global_symbol_to_import= 6698 lt_cdecl_hook= 6699 lt_c_name_hook= 6700 lt_c_name_lib_hook= 6701fi 6702 6703# Transform an extracted symbol line into a proper C declaration. 6704# Some systems (esp. on ia64) link data and code symbols differently, 6705# so use this general approach. 6706lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6707$lt_cdecl_hook\ 6708" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6709" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6710 6711# Transform an extracted symbol line into symbol name and symbol address 6712lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6713$lt_c_name_hook\ 6714" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6715" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6716 6717# Transform an extracted symbol line into symbol name with lib prefix and 6718# symbol address. 6719lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6720$lt_c_name_lib_hook\ 6721" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6722" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6723" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6724 6725# Handle CRLF in mingw tool chain 6726opt_cr= 6727case $build_os in 6728mingw*) 6729 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6730 ;; 6731esac 6732 6733# Try without a prefix underscore, then with it. 6734for ac_symprfx in "" "_"; do 6735 6736 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6737 symxfrm="\\1 $ac_symprfx\\2 \\2" 6738 6739 # Write the raw and C identifiers. 6740 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6741 # Fake it for dumpbin and say T for any non-static function, 6742 # D for any global variable and I for any imported variable. 6743 # Also find C++ and __fastcall symbols from MSVC++, 6744 # which start with @ or ?. 6745 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6746" {last_section=section; section=\$ 3};"\ 6747" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6748" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6749" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6750" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6751" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6752" \$ 0!~/External *\|/{next};"\ 6753" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6754" {if(hide[section]) next};"\ 6755" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6756" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6757" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6758" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6759" ' prfx=^$ac_symprfx" 6760 else 6761 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6762 fi 6763 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6764 6765 # Check to see that the pipe works correctly. 6766 pipe_works=no 6767 6768 rm -f conftest* 6769 cat > conftest.$ac_ext <<_LT_EOF 6770#ifdef __cplusplus 6771extern "C" { 6772#endif 6773char nm_test_var; 6774void nm_test_func(void); 6775void nm_test_func(void){} 6776#ifdef __cplusplus 6777} 6778#endif 6779int main(){nm_test_var='a';nm_test_func();return(0);} 6780_LT_EOF 6781 6782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6783 (eval $ac_compile) 2>&5 6784 ac_status=$? 6785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6786 test $ac_status = 0; }; then 6787 # Now try to grab the symbols. 6788 nlist=conftest.nm 6789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6790 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6791 ac_status=$? 6792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6793 test $ac_status = 0; } && test -s "$nlist"; then 6794 # Try sorting and uniquifying the output. 6795 if sort "$nlist" | uniq > "$nlist"T; then 6796 mv -f "$nlist"T "$nlist" 6797 else 6798 rm -f "$nlist"T 6799 fi 6800 6801 # Make sure that we snagged all the symbols we need. 6802 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6803 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6804 cat <<_LT_EOF > conftest.$ac_ext 6805/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6806#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6807/* DATA imports from DLLs on WIN32 can't be const, because runtime 6808 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6809# define LT_DLSYM_CONST 6810#elif defined __osf__ 6811/* This system does not cope well with relocations in const data. */ 6812# define LT_DLSYM_CONST 6813#else 6814# define LT_DLSYM_CONST const 6815#endif 6816 6817#ifdef __cplusplus 6818extern "C" { 6819#endif 6820 6821_LT_EOF 6822 # Now generate the symbol file. 6823 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6824 6825 cat <<_LT_EOF >> conftest.$ac_ext 6826 6827/* The mapping between symbol names and symbols. */ 6828LT_DLSYM_CONST struct { 6829 const char *name; 6830 void *address; 6831} 6832lt__PROGRAM__LTX_preloaded_symbols[] = 6833{ 6834 { "@PROGRAM@", (void *) 0 }, 6835_LT_EOF 6836 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6837 cat <<\_LT_EOF >> conftest.$ac_ext 6838 {0, (void *) 0} 6839}; 6840 6841/* This works around a problem in FreeBSD linker */ 6842#ifdef FREEBSD_WORKAROUND 6843static const void *lt_preloaded_setup() { 6844 return lt__PROGRAM__LTX_preloaded_symbols; 6845} 6846#endif 6847 6848#ifdef __cplusplus 6849} 6850#endif 6851_LT_EOF 6852 # Now try linking the two files. 6853 mv conftest.$ac_objext conftstm.$ac_objext 6854 lt_globsym_save_LIBS=$LIBS 6855 lt_globsym_save_CFLAGS=$CFLAGS 6856 LIBS=conftstm.$ac_objext 6857 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6859 (eval $ac_link) 2>&5 6860 ac_status=$? 6861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6862 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6863 pipe_works=yes 6864 fi 6865 LIBS=$lt_globsym_save_LIBS 6866 CFLAGS=$lt_globsym_save_CFLAGS 6867 else 6868 echo "cannot find nm_test_func in $nlist" >&5 6869 fi 6870 else 6871 echo "cannot find nm_test_var in $nlist" >&5 6872 fi 6873 else 6874 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6875 fi 6876 else 6877 echo "$progname: failed program was:" >&5 6878 cat conftest.$ac_ext >&5 6879 fi 6880 rm -rf conftest* conftst* 6881 6882 # Do not use the global_symbol_pipe unless it works. 6883 if test yes = "$pipe_works"; then 6884 break 6885 else 6886 lt_cv_sys_global_symbol_pipe= 6887 fi 6888done 6889 6890fi 6891 6892if test -z "$lt_cv_sys_global_symbol_pipe"; then 6893 lt_cv_sys_global_symbol_to_cdecl= 6894fi 6895if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6897$as_echo "failed" >&6; } 6898else 6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6900$as_echo "ok" >&6; } 6901fi 6902 6903# Response file support. 6904if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6905 nm_file_list_spec='@' 6906elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6907 nm_file_list_spec='@' 6908fi 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6947$as_echo_n "checking for sysroot... " >&6; } 6948 6949# Check whether --with-sysroot was given. 6950if test "${with_sysroot+set}" = set; then : 6951 withval=$with_sysroot; 6952else 6953 with_sysroot=no 6954fi 6955 6956 6957lt_sysroot= 6958case $with_sysroot in #( 6959 yes) 6960 if test yes = "$GCC"; then 6961 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6962 fi 6963 ;; #( 6964 /*) 6965 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6966 ;; #( 6967 no|'') 6968 ;; #( 6969 *) 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6971$as_echo "$with_sysroot" >&6; } 6972 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6973 ;; 6974esac 6975 6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6977$as_echo "${lt_sysroot:-no}" >&6; } 6978 6979 6980 6981 6982 6983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6984$as_echo_n "checking for a working dd... " >&6; } 6985if ${ac_cv_path_lt_DD+:} false; then : 6986 $as_echo_n "(cached) " >&6 6987else 6988 printf 0123456789abcdef0123456789abcdef >conftest.i 6989cat conftest.i conftest.i >conftest2.i 6990: ${lt_DD:=$DD} 6991if test -z "$lt_DD"; then 6992 ac_path_lt_DD_found=false 6993 # Loop through the user's path and test for each of PROGNAME-LIST 6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6995for as_dir in $PATH 6996do 6997 IFS=$as_save_IFS 6998 test -z "$as_dir" && as_dir=. 6999 for ac_prog in dd; do 7000 for ac_exec_ext in '' $ac_executable_extensions; do 7001 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7002 as_fn_executable_p "$ac_path_lt_DD" || continue 7003if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7004 cmp -s conftest.i conftest.out \ 7005 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7006fi 7007 $ac_path_lt_DD_found && break 3 7008 done 7009 done 7010 done 7011IFS=$as_save_IFS 7012 if test -z "$ac_cv_path_lt_DD"; then 7013 : 7014 fi 7015else 7016 ac_cv_path_lt_DD=$lt_DD 7017fi 7018 7019rm -f conftest.i conftest2.i conftest.out 7020fi 7021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7022$as_echo "$ac_cv_path_lt_DD" >&6; } 7023 7024 7025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7026$as_echo_n "checking how to truncate binary pipes... " >&6; } 7027if ${lt_cv_truncate_bin+:} false; then : 7028 $as_echo_n "(cached) " >&6 7029else 7030 printf 0123456789abcdef0123456789abcdef >conftest.i 7031cat conftest.i conftest.i >conftest2.i 7032lt_cv_truncate_bin= 7033if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7034 cmp -s conftest.i conftest.out \ 7035 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7036fi 7037rm -f conftest.i conftest2.i conftest.out 7038test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7039fi 7040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7041$as_echo "$lt_cv_truncate_bin" >&6; } 7042 7043 7044 7045 7046 7047 7048 7049# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7050func_cc_basename () 7051{ 7052 for cc_temp in $*""; do 7053 case $cc_temp in 7054 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7055 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7056 \-*) ;; 7057 *) break;; 7058 esac 7059 done 7060 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7061} 7062 7063# Check whether --enable-libtool-lock was given. 7064if test "${enable_libtool_lock+set}" = set; then : 7065 enableval=$enable_libtool_lock; 7066fi 7067 7068test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7069 7070# Some flags need to be propagated to the compiler or linker for good 7071# libtool support. 7072case $host in 7073ia64-*-hpux*) 7074 # Find out what ABI is being produced by ac_compile, and set mode 7075 # options accordingly. 7076 echo 'int i;' > conftest.$ac_ext 7077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7078 (eval $ac_compile) 2>&5 7079 ac_status=$? 7080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7081 test $ac_status = 0; }; then 7082 case `/usr/bin/file conftest.$ac_objext` in 7083 *ELF-32*) 7084 HPUX_IA64_MODE=32 7085 ;; 7086 *ELF-64*) 7087 HPUX_IA64_MODE=64 7088 ;; 7089 esac 7090 fi 7091 rm -rf conftest* 7092 ;; 7093*-*-irix6*) 7094 # Find out what ABI is being produced by ac_compile, and set linker 7095 # options accordingly. 7096 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7098 (eval $ac_compile) 2>&5 7099 ac_status=$? 7100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7101 test $ac_status = 0; }; then 7102 if test yes = "$lt_cv_prog_gnu_ld"; then 7103 case `/usr/bin/file conftest.$ac_objext` in 7104 *32-bit*) 7105 LD="${LD-ld} -melf32bsmip" 7106 ;; 7107 *N32*) 7108 LD="${LD-ld} -melf32bmipn32" 7109 ;; 7110 *64-bit*) 7111 LD="${LD-ld} -melf64bmip" 7112 ;; 7113 esac 7114 else 7115 case `/usr/bin/file conftest.$ac_objext` in 7116 *32-bit*) 7117 LD="${LD-ld} -32" 7118 ;; 7119 *N32*) 7120 LD="${LD-ld} -n32" 7121 ;; 7122 *64-bit*) 7123 LD="${LD-ld} -64" 7124 ;; 7125 esac 7126 fi 7127 fi 7128 rm -rf conftest* 7129 ;; 7130 7131mips64*-*linux*) 7132 # Find out what ABI is being produced by ac_compile, and set linker 7133 # options accordingly. 7134 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7136 (eval $ac_compile) 2>&5 7137 ac_status=$? 7138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7139 test $ac_status = 0; }; then 7140 emul=elf 7141 case `/usr/bin/file conftest.$ac_objext` in 7142 *32-bit*) 7143 emul="${emul}32" 7144 ;; 7145 *64-bit*) 7146 emul="${emul}64" 7147 ;; 7148 esac 7149 case `/usr/bin/file conftest.$ac_objext` in 7150 *MSB*) 7151 emul="${emul}btsmip" 7152 ;; 7153 *LSB*) 7154 emul="${emul}ltsmip" 7155 ;; 7156 esac 7157 case `/usr/bin/file conftest.$ac_objext` in 7158 *N32*) 7159 emul="${emul}n32" 7160 ;; 7161 esac 7162 LD="${LD-ld} -m $emul" 7163 fi 7164 rm -rf conftest* 7165 ;; 7166 7167x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7168s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7169 # Find out what ABI is being produced by ac_compile, and set linker 7170 # options accordingly. Note that the listed cases only cover the 7171 # situations where additional linker options are needed (such as when 7172 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7173 # vice versa); the common cases where no linker options are needed do 7174 # not appear in the list. 7175 echo 'int i;' > conftest.$ac_ext 7176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7177 (eval $ac_compile) 2>&5 7178 ac_status=$? 7179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7180 test $ac_status = 0; }; then 7181 case `/usr/bin/file conftest.o` in 7182 *32-bit*) 7183 case $host in 7184 x86_64-*kfreebsd*-gnu) 7185 LD="${LD-ld} -m elf_i386_fbsd" 7186 ;; 7187 x86_64-*linux*) 7188 case `/usr/bin/file conftest.o` in 7189 *x86-64*) 7190 LD="${LD-ld} -m elf32_x86_64" 7191 ;; 7192 *) 7193 LD="${LD-ld} -m elf_i386" 7194 ;; 7195 esac 7196 ;; 7197 powerpc64le-*linux*) 7198 LD="${LD-ld} -m elf32lppclinux" 7199 ;; 7200 powerpc64-*linux*) 7201 LD="${LD-ld} -m elf32ppclinux" 7202 ;; 7203 s390x-*linux*) 7204 LD="${LD-ld} -m elf_s390" 7205 ;; 7206 sparc64-*linux*) 7207 LD="${LD-ld} -m elf32_sparc" 7208 ;; 7209 esac 7210 ;; 7211 *64-bit*) 7212 case $host in 7213 x86_64-*kfreebsd*-gnu) 7214 LD="${LD-ld} -m elf_x86_64_fbsd" 7215 ;; 7216 x86_64-*linux*) 7217 LD="${LD-ld} -m elf_x86_64" 7218 ;; 7219 powerpcle-*linux*|powerpc64le-*linux*) 7220 LD="${LD-ld} -m elf64lppc" 7221 ;; 7222 powerpc-*linux*|powerpc64-*linux*) 7223 LD="${LD-ld} -m elf64ppc" 7224 ;; 7225 s390*-*linux*|s390*-*tpf*) 7226 LD="${LD-ld} -m elf64_s390" 7227 ;; 7228 sparc*-*linux*) 7229 LD="${LD-ld} -m elf64_sparc" 7230 ;; 7231 esac 7232 ;; 7233 esac 7234 fi 7235 rm -rf conftest* 7236 ;; 7237 7238*-*-sco3.2v5*) 7239 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7240 SAVE_CFLAGS=$CFLAGS 7241 CFLAGS="$CFLAGS -belf" 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7243$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7244if ${lt_cv_cc_needs_belf+:} false; then : 7245 $as_echo_n "(cached) " >&6 7246else 7247 ac_ext=c 7248ac_cpp='$CPP $CPPFLAGS' 7249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7251ac_compiler_gnu=$ac_cv_c_compiler_gnu 7252 7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7254/* end confdefs.h. */ 7255 7256int 7257main () 7258{ 7259 7260 ; 7261 return 0; 7262} 7263_ACEOF 7264if ac_fn_c_try_link "$LINENO"; then : 7265 lt_cv_cc_needs_belf=yes 7266else 7267 lt_cv_cc_needs_belf=no 7268fi 7269rm -f core conftest.err conftest.$ac_objext \ 7270 conftest$ac_exeext conftest.$ac_ext 7271 ac_ext=c 7272ac_cpp='$CPP $CPPFLAGS' 7273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7275ac_compiler_gnu=$ac_cv_c_compiler_gnu 7276 7277fi 7278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7279$as_echo "$lt_cv_cc_needs_belf" >&6; } 7280 if test yes != "$lt_cv_cc_needs_belf"; then 7281 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7282 CFLAGS=$SAVE_CFLAGS 7283 fi 7284 ;; 7285*-*solaris*) 7286 # Find out what ABI is being produced by ac_compile, and set linker 7287 # options accordingly. 7288 echo 'int i;' > conftest.$ac_ext 7289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7290 (eval $ac_compile) 2>&5 7291 ac_status=$? 7292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7293 test $ac_status = 0; }; then 7294 case `/usr/bin/file conftest.o` in 7295 *64-bit*) 7296 case $lt_cv_prog_gnu_ld in 7297 yes*) 7298 case $host in 7299 i?86-*-solaris*|x86_64-*-solaris*) 7300 LD="${LD-ld} -m elf_x86_64" 7301 ;; 7302 sparc*-*-solaris*) 7303 LD="${LD-ld} -m elf64_sparc" 7304 ;; 7305 esac 7306 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7307 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7308 LD=${LD-ld}_sol2 7309 fi 7310 ;; 7311 *) 7312 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7313 LD="${LD-ld} -64" 7314 fi 7315 ;; 7316 esac 7317 ;; 7318 esac 7319 fi 7320 rm -rf conftest* 7321 ;; 7322esac 7323 7324need_locks=$enable_libtool_lock 7325 7326if test -n "$ac_tool_prefix"; then 7327 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7328set dummy ${ac_tool_prefix}mt; ac_word=$2 7329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7330$as_echo_n "checking for $ac_word... " >&6; } 7331if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7332 $as_echo_n "(cached) " >&6 7333else 7334 if test -n "$MANIFEST_TOOL"; then 7335 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7336else 7337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7338for as_dir in $PATH 7339do 7340 IFS=$as_save_IFS 7341 test -z "$as_dir" && as_dir=. 7342 for ac_exec_ext in '' $ac_executable_extensions; do 7343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7344 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7346 break 2 7347 fi 7348done 7349 done 7350IFS=$as_save_IFS 7351 7352fi 7353fi 7354MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7355if test -n "$MANIFEST_TOOL"; then 7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7357$as_echo "$MANIFEST_TOOL" >&6; } 7358else 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7360$as_echo "no" >&6; } 7361fi 7362 7363 7364fi 7365if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7366 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7367 # Extract the first word of "mt", so it can be a program name with args. 7368set dummy mt; ac_word=$2 7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7370$as_echo_n "checking for $ac_word... " >&6; } 7371if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7372 $as_echo_n "(cached) " >&6 7373else 7374 if test -n "$ac_ct_MANIFEST_TOOL"; then 7375 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7376else 7377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7378for as_dir in $PATH 7379do 7380 IFS=$as_save_IFS 7381 test -z "$as_dir" && as_dir=. 7382 for ac_exec_ext in '' $ac_executable_extensions; do 7383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7384 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7386 break 2 7387 fi 7388done 7389 done 7390IFS=$as_save_IFS 7391 7392fi 7393fi 7394ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7395if test -n "$ac_ct_MANIFEST_TOOL"; then 7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7397$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7398else 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7400$as_echo "no" >&6; } 7401fi 7402 7403 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7404 MANIFEST_TOOL=":" 7405 else 7406 case $cross_compiling:$ac_tool_warned in 7407yes:) 7408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7410ac_tool_warned=yes ;; 7411esac 7412 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7413 fi 7414else 7415 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7416fi 7417 7418test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7420$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7421if ${lt_cv_path_mainfest_tool+:} false; then : 7422 $as_echo_n "(cached) " >&6 7423else 7424 lt_cv_path_mainfest_tool=no 7425 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7426 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7427 cat conftest.err >&5 7428 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7429 lt_cv_path_mainfest_tool=yes 7430 fi 7431 rm -f conftest* 7432fi 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7434$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7435if test yes != "$lt_cv_path_mainfest_tool"; then 7436 MANIFEST_TOOL=: 7437fi 7438 7439 7440 7441 7442 7443 7444 case $host_os in 7445 rhapsody* | darwin*) 7446 if test -n "$ac_tool_prefix"; then 7447 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7448set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7450$as_echo_n "checking for $ac_word... " >&6; } 7451if ${ac_cv_prog_DSYMUTIL+:} false; then : 7452 $as_echo_n "(cached) " >&6 7453else 7454 if test -n "$DSYMUTIL"; then 7455 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7456else 7457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7458for as_dir in $PATH 7459do 7460 IFS=$as_save_IFS 7461 test -z "$as_dir" && as_dir=. 7462 for ac_exec_ext in '' $ac_executable_extensions; do 7463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7464 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7466 break 2 7467 fi 7468done 7469 done 7470IFS=$as_save_IFS 7471 7472fi 7473fi 7474DSYMUTIL=$ac_cv_prog_DSYMUTIL 7475if test -n "$DSYMUTIL"; then 7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7477$as_echo "$DSYMUTIL" >&6; } 7478else 7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7480$as_echo "no" >&6; } 7481fi 7482 7483 7484fi 7485if test -z "$ac_cv_prog_DSYMUTIL"; then 7486 ac_ct_DSYMUTIL=$DSYMUTIL 7487 # Extract the first word of "dsymutil", so it can be a program name with args. 7488set dummy dsymutil; ac_word=$2 7489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7490$as_echo_n "checking for $ac_word... " >&6; } 7491if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7492 $as_echo_n "(cached) " >&6 7493else 7494 if test -n "$ac_ct_DSYMUTIL"; then 7495 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7496else 7497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7498for as_dir in $PATH 7499do 7500 IFS=$as_save_IFS 7501 test -z "$as_dir" && as_dir=. 7502 for ac_exec_ext in '' $ac_executable_extensions; do 7503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7504 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7506 break 2 7507 fi 7508done 7509 done 7510IFS=$as_save_IFS 7511 7512fi 7513fi 7514ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7515if test -n "$ac_ct_DSYMUTIL"; then 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7517$as_echo "$ac_ct_DSYMUTIL" >&6; } 7518else 7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7520$as_echo "no" >&6; } 7521fi 7522 7523 if test "x$ac_ct_DSYMUTIL" = x; then 7524 DSYMUTIL=":" 7525 else 7526 case $cross_compiling:$ac_tool_warned in 7527yes:) 7528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7530ac_tool_warned=yes ;; 7531esac 7532 DSYMUTIL=$ac_ct_DSYMUTIL 7533 fi 7534else 7535 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7536fi 7537 7538 if test -n "$ac_tool_prefix"; then 7539 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7540set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7542$as_echo_n "checking for $ac_word... " >&6; } 7543if ${ac_cv_prog_NMEDIT+:} false; then : 7544 $as_echo_n "(cached) " >&6 7545else 7546 if test -n "$NMEDIT"; then 7547 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7548else 7549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7550for as_dir in $PATH 7551do 7552 IFS=$as_save_IFS 7553 test -z "$as_dir" && as_dir=. 7554 for ac_exec_ext in '' $ac_executable_extensions; do 7555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7556 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7558 break 2 7559 fi 7560done 7561 done 7562IFS=$as_save_IFS 7563 7564fi 7565fi 7566NMEDIT=$ac_cv_prog_NMEDIT 7567if test -n "$NMEDIT"; then 7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7569$as_echo "$NMEDIT" >&6; } 7570else 7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7572$as_echo "no" >&6; } 7573fi 7574 7575 7576fi 7577if test -z "$ac_cv_prog_NMEDIT"; then 7578 ac_ct_NMEDIT=$NMEDIT 7579 # Extract the first word of "nmedit", so it can be a program name with args. 7580set dummy nmedit; ac_word=$2 7581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7582$as_echo_n "checking for $ac_word... " >&6; } 7583if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7584 $as_echo_n "(cached) " >&6 7585else 7586 if test -n "$ac_ct_NMEDIT"; then 7587 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7588else 7589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7590for as_dir in $PATH 7591do 7592 IFS=$as_save_IFS 7593 test -z "$as_dir" && as_dir=. 7594 for ac_exec_ext in '' $ac_executable_extensions; do 7595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7596 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7598 break 2 7599 fi 7600done 7601 done 7602IFS=$as_save_IFS 7603 7604fi 7605fi 7606ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7607if test -n "$ac_ct_NMEDIT"; then 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7609$as_echo "$ac_ct_NMEDIT" >&6; } 7610else 7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7612$as_echo "no" >&6; } 7613fi 7614 7615 if test "x$ac_ct_NMEDIT" = x; then 7616 NMEDIT=":" 7617 else 7618 case $cross_compiling:$ac_tool_warned in 7619yes:) 7620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7622ac_tool_warned=yes ;; 7623esac 7624 NMEDIT=$ac_ct_NMEDIT 7625 fi 7626else 7627 NMEDIT="$ac_cv_prog_NMEDIT" 7628fi 7629 7630 if test -n "$ac_tool_prefix"; then 7631 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7632set dummy ${ac_tool_prefix}lipo; ac_word=$2 7633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7634$as_echo_n "checking for $ac_word... " >&6; } 7635if ${ac_cv_prog_LIPO+:} false; then : 7636 $as_echo_n "(cached) " >&6 7637else 7638 if test -n "$LIPO"; then 7639 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7640else 7641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7642for as_dir in $PATH 7643do 7644 IFS=$as_save_IFS 7645 test -z "$as_dir" && as_dir=. 7646 for ac_exec_ext in '' $ac_executable_extensions; do 7647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7648 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7650 break 2 7651 fi 7652done 7653 done 7654IFS=$as_save_IFS 7655 7656fi 7657fi 7658LIPO=$ac_cv_prog_LIPO 7659if test -n "$LIPO"; then 7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7661$as_echo "$LIPO" >&6; } 7662else 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7664$as_echo "no" >&6; } 7665fi 7666 7667 7668fi 7669if test -z "$ac_cv_prog_LIPO"; then 7670 ac_ct_LIPO=$LIPO 7671 # Extract the first word of "lipo", so it can be a program name with args. 7672set dummy lipo; ac_word=$2 7673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7674$as_echo_n "checking for $ac_word... " >&6; } 7675if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7676 $as_echo_n "(cached) " >&6 7677else 7678 if test -n "$ac_ct_LIPO"; then 7679 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7680else 7681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7682for as_dir in $PATH 7683do 7684 IFS=$as_save_IFS 7685 test -z "$as_dir" && as_dir=. 7686 for ac_exec_ext in '' $ac_executable_extensions; do 7687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7688 ac_cv_prog_ac_ct_LIPO="lipo" 7689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7690 break 2 7691 fi 7692done 7693 done 7694IFS=$as_save_IFS 7695 7696fi 7697fi 7698ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7699if test -n "$ac_ct_LIPO"; then 7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7701$as_echo "$ac_ct_LIPO" >&6; } 7702else 7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7704$as_echo "no" >&6; } 7705fi 7706 7707 if test "x$ac_ct_LIPO" = x; then 7708 LIPO=":" 7709 else 7710 case $cross_compiling:$ac_tool_warned in 7711yes:) 7712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7714ac_tool_warned=yes ;; 7715esac 7716 LIPO=$ac_ct_LIPO 7717 fi 7718else 7719 LIPO="$ac_cv_prog_LIPO" 7720fi 7721 7722 if test -n "$ac_tool_prefix"; then 7723 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7724set dummy ${ac_tool_prefix}otool; ac_word=$2 7725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7726$as_echo_n "checking for $ac_word... " >&6; } 7727if ${ac_cv_prog_OTOOL+:} false; then : 7728 $as_echo_n "(cached) " >&6 7729else 7730 if test -n "$OTOOL"; then 7731 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7732else 7733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7734for as_dir in $PATH 7735do 7736 IFS=$as_save_IFS 7737 test -z "$as_dir" && as_dir=. 7738 for ac_exec_ext in '' $ac_executable_extensions; do 7739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7740 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7742 break 2 7743 fi 7744done 7745 done 7746IFS=$as_save_IFS 7747 7748fi 7749fi 7750OTOOL=$ac_cv_prog_OTOOL 7751if test -n "$OTOOL"; then 7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7753$as_echo "$OTOOL" >&6; } 7754else 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7756$as_echo "no" >&6; } 7757fi 7758 7759 7760fi 7761if test -z "$ac_cv_prog_OTOOL"; then 7762 ac_ct_OTOOL=$OTOOL 7763 # Extract the first word of "otool", so it can be a program name with args. 7764set dummy otool; ac_word=$2 7765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7766$as_echo_n "checking for $ac_word... " >&6; } 7767if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7768 $as_echo_n "(cached) " >&6 7769else 7770 if test -n "$ac_ct_OTOOL"; then 7771 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7772else 7773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7774for as_dir in $PATH 7775do 7776 IFS=$as_save_IFS 7777 test -z "$as_dir" && as_dir=. 7778 for ac_exec_ext in '' $ac_executable_extensions; do 7779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7780 ac_cv_prog_ac_ct_OTOOL="otool" 7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7782 break 2 7783 fi 7784done 7785 done 7786IFS=$as_save_IFS 7787 7788fi 7789fi 7790ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7791if test -n "$ac_ct_OTOOL"; then 7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7793$as_echo "$ac_ct_OTOOL" >&6; } 7794else 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7796$as_echo "no" >&6; } 7797fi 7798 7799 if test "x$ac_ct_OTOOL" = x; then 7800 OTOOL=":" 7801 else 7802 case $cross_compiling:$ac_tool_warned in 7803yes:) 7804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7806ac_tool_warned=yes ;; 7807esac 7808 OTOOL=$ac_ct_OTOOL 7809 fi 7810else 7811 OTOOL="$ac_cv_prog_OTOOL" 7812fi 7813 7814 if test -n "$ac_tool_prefix"; then 7815 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7816set dummy ${ac_tool_prefix}otool64; ac_word=$2 7817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7818$as_echo_n "checking for $ac_word... " >&6; } 7819if ${ac_cv_prog_OTOOL64+:} false; then : 7820 $as_echo_n "(cached) " >&6 7821else 7822 if test -n "$OTOOL64"; then 7823 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7824else 7825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7826for as_dir in $PATH 7827do 7828 IFS=$as_save_IFS 7829 test -z "$as_dir" && as_dir=. 7830 for ac_exec_ext in '' $ac_executable_extensions; do 7831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7832 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7834 break 2 7835 fi 7836done 7837 done 7838IFS=$as_save_IFS 7839 7840fi 7841fi 7842OTOOL64=$ac_cv_prog_OTOOL64 7843if test -n "$OTOOL64"; then 7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7845$as_echo "$OTOOL64" >&6; } 7846else 7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7848$as_echo "no" >&6; } 7849fi 7850 7851 7852fi 7853if test -z "$ac_cv_prog_OTOOL64"; then 7854 ac_ct_OTOOL64=$OTOOL64 7855 # Extract the first word of "otool64", so it can be a program name with args. 7856set dummy otool64; ac_word=$2 7857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7858$as_echo_n "checking for $ac_word... " >&6; } 7859if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7860 $as_echo_n "(cached) " >&6 7861else 7862 if test -n "$ac_ct_OTOOL64"; then 7863 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7864else 7865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7866for as_dir in $PATH 7867do 7868 IFS=$as_save_IFS 7869 test -z "$as_dir" && as_dir=. 7870 for ac_exec_ext in '' $ac_executable_extensions; do 7871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7872 ac_cv_prog_ac_ct_OTOOL64="otool64" 7873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7874 break 2 7875 fi 7876done 7877 done 7878IFS=$as_save_IFS 7879 7880fi 7881fi 7882ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7883if test -n "$ac_ct_OTOOL64"; then 7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7885$as_echo "$ac_ct_OTOOL64" >&6; } 7886else 7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7888$as_echo "no" >&6; } 7889fi 7890 7891 if test "x$ac_ct_OTOOL64" = x; then 7892 OTOOL64=":" 7893 else 7894 case $cross_compiling:$ac_tool_warned in 7895yes:) 7896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7898ac_tool_warned=yes ;; 7899esac 7900 OTOOL64=$ac_ct_OTOOL64 7901 fi 7902else 7903 OTOOL64="$ac_cv_prog_OTOOL64" 7904fi 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7933$as_echo_n "checking for -single_module linker flag... " >&6; } 7934if ${lt_cv_apple_cc_single_mod+:} false; then : 7935 $as_echo_n "(cached) " >&6 7936else 7937 lt_cv_apple_cc_single_mod=no 7938 if test -z "$LT_MULTI_MODULE"; then 7939 # By default we will add the -single_module flag. You can override 7940 # by either setting the environment variable LT_MULTI_MODULE 7941 # non-empty at configure time, or by adding -multi_module to the 7942 # link flags. 7943 rm -rf libconftest.dylib* 7944 echo "int foo(void){return 1;}" > conftest.c 7945 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7946-dynamiclib -Wl,-single_module conftest.c" >&5 7947 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7948 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7949 _lt_result=$? 7950 # If there is a non-empty error log, and "single_module" 7951 # appears in it, assume the flag caused a linker warning 7952 if test -s conftest.err && $GREP single_module conftest.err; then 7953 cat conftest.err >&5 7954 # Otherwise, if the output was created with a 0 exit code from 7955 # the compiler, it worked. 7956 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7957 lt_cv_apple_cc_single_mod=yes 7958 else 7959 cat conftest.err >&5 7960 fi 7961 rm -rf libconftest.dylib* 7962 rm -f conftest.* 7963 fi 7964fi 7965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7966$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7967 7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7969$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7970if ${lt_cv_ld_exported_symbols_list+:} false; then : 7971 $as_echo_n "(cached) " >&6 7972else 7973 lt_cv_ld_exported_symbols_list=no 7974 save_LDFLAGS=$LDFLAGS 7975 echo "_main" > conftest.sym 7976 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7978/* end confdefs.h. */ 7979 7980int 7981main () 7982{ 7983 7984 ; 7985 return 0; 7986} 7987_ACEOF 7988if ac_fn_c_try_link "$LINENO"; then : 7989 lt_cv_ld_exported_symbols_list=yes 7990else 7991 lt_cv_ld_exported_symbols_list=no 7992fi 7993rm -f core conftest.err conftest.$ac_objext \ 7994 conftest$ac_exeext conftest.$ac_ext 7995 LDFLAGS=$save_LDFLAGS 7996 7997fi 7998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7999$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8000 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8002$as_echo_n "checking for -force_load linker flag... " >&6; } 8003if ${lt_cv_ld_force_load+:} false; then : 8004 $as_echo_n "(cached) " >&6 8005else 8006 lt_cv_ld_force_load=no 8007 cat > conftest.c << _LT_EOF 8008int forced_loaded() { return 2;} 8009_LT_EOF 8010 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8011 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8012 echo "$AR cru libconftest.a conftest.o" >&5 8013 $AR cru libconftest.a conftest.o 2>&5 8014 echo "$RANLIB libconftest.a" >&5 8015 $RANLIB libconftest.a 2>&5 8016 cat > conftest.c << _LT_EOF 8017int main() { return 0;} 8018_LT_EOF 8019 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8020 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8021 _lt_result=$? 8022 if test -s conftest.err && $GREP force_load conftest.err; then 8023 cat conftest.err >&5 8024 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8025 lt_cv_ld_force_load=yes 8026 else 8027 cat conftest.err >&5 8028 fi 8029 rm -f conftest.err libconftest.a conftest conftest.c 8030 rm -rf conftest.dSYM 8031 8032fi 8033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8034$as_echo "$lt_cv_ld_force_load" >&6; } 8035 case $host_os in 8036 rhapsody* | darwin1.[012]) 8037 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8038 darwin1.*) 8039 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8040 darwin*) # darwin 5.x on 8041 # if running on 10.5 or later, the deployment target defaults 8042 # to the OS version, if on x86, and 10.4, the deployment 8043 # target defaults to 10.4. Don't you love it? 8044 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8045 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8046 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8047 10.[012][,.]*) 8048 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8049 10.*) 8050 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8051 esac 8052 ;; 8053 esac 8054 if test yes = "$lt_cv_apple_cc_single_mod"; then 8055 _lt_dar_single_mod='$single_module' 8056 fi 8057 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8058 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8059 else 8060 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8061 fi 8062 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8063 _lt_dsymutil='~$DSYMUTIL $lib || :' 8064 else 8065 _lt_dsymutil= 8066 fi 8067 ;; 8068 esac 8069 8070# func_munge_path_list VARIABLE PATH 8071# ----------------------------------- 8072# VARIABLE is name of variable containing _space_ separated list of 8073# directories to be munged by the contents of PATH, which is string 8074# having a format: 8075# "DIR[:DIR]:" 8076# string "DIR[ DIR]" will be prepended to VARIABLE 8077# ":DIR[:DIR]" 8078# string "DIR[ DIR]" will be appended to VARIABLE 8079# "DIRP[:DIRP]::[DIRA:]DIRA" 8080# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8081# "DIRA[ DIRA]" will be appended to VARIABLE 8082# "DIR[:DIR]" 8083# VARIABLE will be replaced by "DIR[ DIR]" 8084func_munge_path_list () 8085{ 8086 case x$2 in 8087 x) 8088 ;; 8089 *:) 8090 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8091 ;; 8092 x:*) 8093 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8094 ;; 8095 *::*) 8096 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8097 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8098 ;; 8099 *) 8100 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8101 ;; 8102 esac 8103} 8104 8105for ac_header in dlfcn.h 8106do : 8107 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8108" 8109if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8110 cat >>confdefs.h <<_ACEOF 8111#define HAVE_DLFCN_H 1 8112_ACEOF 8113 8114fi 8115 8116done 8117 8118 8119 8120 8121 8122# Set options 8123 8124 8125 8126 enable_dlopen=no 8127 8128 8129 enable_win32_dll=no 8130 8131 8132 # Check whether --enable-shared was given. 8133if test "${enable_shared+set}" = set; then : 8134 enableval=$enable_shared; p=${PACKAGE-default} 8135 case $enableval in 8136 yes) enable_shared=yes ;; 8137 no) enable_shared=no ;; 8138 *) 8139 enable_shared=no 8140 # Look at the argument we got. We use all the common list separators. 8141 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8142 for pkg in $enableval; do 8143 IFS=$lt_save_ifs 8144 if test "X$pkg" = "X$p"; then 8145 enable_shared=yes 8146 fi 8147 done 8148 IFS=$lt_save_ifs 8149 ;; 8150 esac 8151else 8152 enable_shared=yes 8153fi 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 # Check whether --enable-static was given. 8164if test "${enable_static+set}" = set; then : 8165 enableval=$enable_static; p=${PACKAGE-default} 8166 case $enableval in 8167 yes) enable_static=yes ;; 8168 no) enable_static=no ;; 8169 *) 8170 enable_static=no 8171 # Look at the argument we got. We use all the common list separators. 8172 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8173 for pkg in $enableval; do 8174 IFS=$lt_save_ifs 8175 if test "X$pkg" = "X$p"; then 8176 enable_static=yes 8177 fi 8178 done 8179 IFS=$lt_save_ifs 8180 ;; 8181 esac 8182else 8183 enable_static=yes 8184fi 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195# Check whether --with-pic was given. 8196if test "${with_pic+set}" = set; then : 8197 withval=$with_pic; lt_p=${PACKAGE-default} 8198 case $withval in 8199 yes|no) pic_mode=$withval ;; 8200 *) 8201 pic_mode=default 8202 # Look at the argument we got. We use all the common list separators. 8203 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8204 for lt_pkg in $withval; do 8205 IFS=$lt_save_ifs 8206 if test "X$lt_pkg" = "X$lt_p"; then 8207 pic_mode=yes 8208 fi 8209 done 8210 IFS=$lt_save_ifs 8211 ;; 8212 esac 8213else 8214 pic_mode=default 8215fi 8216 8217 8218 8219 8220 8221 8222 8223 8224 # Check whether --enable-fast-install was given. 8225if test "${enable_fast_install+set}" = set; then : 8226 enableval=$enable_fast_install; p=${PACKAGE-default} 8227 case $enableval in 8228 yes) enable_fast_install=yes ;; 8229 no) enable_fast_install=no ;; 8230 *) 8231 enable_fast_install=no 8232 # Look at the argument we got. We use all the common list separators. 8233 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8234 for pkg in $enableval; do 8235 IFS=$lt_save_ifs 8236 if test "X$pkg" = "X$p"; then 8237 enable_fast_install=yes 8238 fi 8239 done 8240 IFS=$lt_save_ifs 8241 ;; 8242 esac 8243else 8244 enable_fast_install=yes 8245fi 8246 8247 8248 8249 8250 8251 8252 8253 8254 shared_archive_member_spec= 8255case $host,$enable_shared in 8256power*-*-aix[5-9]*,yes) 8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8258$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8259 8260# Check whether --with-aix-soname was given. 8261if test "${with_aix_soname+set}" = set; then : 8262 withval=$with_aix_soname; case $withval in 8263 aix|svr4|both) 8264 ;; 8265 *) 8266 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8267 ;; 8268 esac 8269 lt_cv_with_aix_soname=$with_aix_soname 8270else 8271 if ${lt_cv_with_aix_soname+:} false; then : 8272 $as_echo_n "(cached) " >&6 8273else 8274 lt_cv_with_aix_soname=aix 8275fi 8276 8277 with_aix_soname=$lt_cv_with_aix_soname 8278fi 8279 8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8281$as_echo "$with_aix_soname" >&6; } 8282 if test aix != "$with_aix_soname"; then 8283 # For the AIX way of multilib, we name the shared archive member 8284 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8285 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8286 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8287 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8288 if test 64 = "${OBJECT_MODE-32}"; then 8289 shared_archive_member_spec=shr_64 8290 else 8291 shared_archive_member_spec=shr 8292 fi 8293 fi 8294 ;; 8295*) 8296 with_aix_soname=aix 8297 ;; 8298esac 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309# This can be used to rebuild libtool when needed 8310LIBTOOL_DEPS=$ltmain 8311 8312# Always use our own libtool. 8313LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344test -z "$LN_S" && LN_S="ln -s" 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359if test -n "${ZSH_VERSION+set}"; then 8360 setopt NO_GLOB_SUBST 8361fi 8362 8363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8364$as_echo_n "checking for objdir... " >&6; } 8365if ${lt_cv_objdir+:} false; then : 8366 $as_echo_n "(cached) " >&6 8367else 8368 rm -f .libs 2>/dev/null 8369mkdir .libs 2>/dev/null 8370if test -d .libs; then 8371 lt_cv_objdir=.libs 8372else 8373 # MS-DOS does not allow filenames that begin with a dot. 8374 lt_cv_objdir=_libs 8375fi 8376rmdir .libs 2>/dev/null 8377fi 8378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8379$as_echo "$lt_cv_objdir" >&6; } 8380objdir=$lt_cv_objdir 8381 8382 8383 8384 8385 8386cat >>confdefs.h <<_ACEOF 8387#define LT_OBJDIR "$lt_cv_objdir/" 8388_ACEOF 8389 8390 8391 8392 8393case $host_os in 8394aix3*) 8395 # AIX sometimes has problems with the GCC collect2 program. For some 8396 # reason, if we set the COLLECT_NAMES environment variable, the problems 8397 # vanish in a puff of smoke. 8398 if test set != "${COLLECT_NAMES+set}"; then 8399 COLLECT_NAMES= 8400 export COLLECT_NAMES 8401 fi 8402 ;; 8403esac 8404 8405# Global variables: 8406ofile=libtool 8407can_build_shared=yes 8408 8409# All known linkers require a '.a' archive for static linking (except MSVC, 8410# which needs '.lib'). 8411libext=a 8412 8413with_gnu_ld=$lt_cv_prog_gnu_ld 8414 8415old_CC=$CC 8416old_CFLAGS=$CFLAGS 8417 8418# Set sane defaults for various variables 8419test -z "$CC" && CC=cc 8420test -z "$LTCC" && LTCC=$CC 8421test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8422test -z "$LD" && LD=ld 8423test -z "$ac_objext" && ac_objext=o 8424 8425func_cc_basename $compiler 8426cc_basename=$func_cc_basename_result 8427 8428 8429# Only perform the check for file, if the check method requires it 8430test -z "$MAGIC_CMD" && MAGIC_CMD=file 8431case $deplibs_check_method in 8432file_magic*) 8433 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8435$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8436if ${lt_cv_path_MAGIC_CMD+:} false; then : 8437 $as_echo_n "(cached) " >&6 8438else 8439 case $MAGIC_CMD in 8440[\\/*] | ?:[\\/]*) 8441 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8442 ;; 8443*) 8444 lt_save_MAGIC_CMD=$MAGIC_CMD 8445 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8446 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8447 for ac_dir in $ac_dummy; do 8448 IFS=$lt_save_ifs 8449 test -z "$ac_dir" && ac_dir=. 8450 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8451 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8452 if test -n "$file_magic_test_file"; then 8453 case $deplibs_check_method in 8454 "file_magic "*) 8455 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8456 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8457 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8458 $EGREP "$file_magic_regex" > /dev/null; then 8459 : 8460 else 8461 cat <<_LT_EOF 1>&2 8462 8463*** Warning: the command libtool uses to detect shared libraries, 8464*** $file_magic_cmd, produces output that libtool cannot recognize. 8465*** The result is that libtool may fail to recognize shared libraries 8466*** as such. This will affect the creation of libtool libraries that 8467*** depend on shared libraries, but programs linked with such libtool 8468*** libraries will work regardless of this problem. Nevertheless, you 8469*** may want to report the problem to your system manager and/or to 8470*** bug-libtool@gnu.org 8471 8472_LT_EOF 8473 fi ;; 8474 esac 8475 fi 8476 break 8477 fi 8478 done 8479 IFS=$lt_save_ifs 8480 MAGIC_CMD=$lt_save_MAGIC_CMD 8481 ;; 8482esac 8483fi 8484 8485MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8486if test -n "$MAGIC_CMD"; then 8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8488$as_echo "$MAGIC_CMD" >&6; } 8489else 8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8491$as_echo "no" >&6; } 8492fi 8493 8494 8495 8496 8497 8498if test -z "$lt_cv_path_MAGIC_CMD"; then 8499 if test -n "$ac_tool_prefix"; then 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8501$as_echo_n "checking for file... " >&6; } 8502if ${lt_cv_path_MAGIC_CMD+:} false; then : 8503 $as_echo_n "(cached) " >&6 8504else 8505 case $MAGIC_CMD in 8506[\\/*] | ?:[\\/]*) 8507 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8508 ;; 8509*) 8510 lt_save_MAGIC_CMD=$MAGIC_CMD 8511 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8512 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8513 for ac_dir in $ac_dummy; do 8514 IFS=$lt_save_ifs 8515 test -z "$ac_dir" && ac_dir=. 8516 if test -f "$ac_dir/file"; then 8517 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8518 if test -n "$file_magic_test_file"; then 8519 case $deplibs_check_method in 8520 "file_magic "*) 8521 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8522 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8523 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8524 $EGREP "$file_magic_regex" > /dev/null; then 8525 : 8526 else 8527 cat <<_LT_EOF 1>&2 8528 8529*** Warning: the command libtool uses to detect shared libraries, 8530*** $file_magic_cmd, produces output that libtool cannot recognize. 8531*** The result is that libtool may fail to recognize shared libraries 8532*** as such. This will affect the creation of libtool libraries that 8533*** depend on shared libraries, but programs linked with such libtool 8534*** libraries will work regardless of this problem. Nevertheless, you 8535*** may want to report the problem to your system manager and/or to 8536*** bug-libtool@gnu.org 8537 8538_LT_EOF 8539 fi ;; 8540 esac 8541 fi 8542 break 8543 fi 8544 done 8545 IFS=$lt_save_ifs 8546 MAGIC_CMD=$lt_save_MAGIC_CMD 8547 ;; 8548esac 8549fi 8550 8551MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8552if test -n "$MAGIC_CMD"; then 8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8554$as_echo "$MAGIC_CMD" >&6; } 8555else 8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8557$as_echo "no" >&6; } 8558fi 8559 8560 8561 else 8562 MAGIC_CMD=: 8563 fi 8564fi 8565 8566 fi 8567 ;; 8568esac 8569 8570# Use C for the default configuration in the libtool script 8571 8572lt_save_CC=$CC 8573ac_ext=c 8574ac_cpp='$CPP $CPPFLAGS' 8575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8577ac_compiler_gnu=$ac_cv_c_compiler_gnu 8578 8579 8580# Source file extension for C test sources. 8581ac_ext=c 8582 8583# Object file extension for compiled C test sources. 8584objext=o 8585objext=$objext 8586 8587# Code to be used in simple compile tests 8588lt_simple_compile_test_code="int some_variable = 0;" 8589 8590# Code to be used in simple link tests 8591lt_simple_link_test_code='int main(){return(0);}' 8592 8593 8594 8595 8596 8597 8598 8599# If no C compiler was specified, use CC. 8600LTCC=${LTCC-"$CC"} 8601 8602# If no C compiler flags were specified, use CFLAGS. 8603LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8604 8605# Allow CC to be a program name with arguments. 8606compiler=$CC 8607 8608# Save the default compiler, since it gets overwritten when the other 8609# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8610compiler_DEFAULT=$CC 8611 8612# save warnings/boilerplate of simple test code 8613ac_outfile=conftest.$ac_objext 8614echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8615eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8616_lt_compiler_boilerplate=`cat conftest.err` 8617$RM conftest* 8618 8619ac_outfile=conftest.$ac_objext 8620echo "$lt_simple_link_test_code" >conftest.$ac_ext 8621eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8622_lt_linker_boilerplate=`cat conftest.err` 8623$RM -r conftest* 8624 8625 8626## CAVEAT EMPTOR: 8627## There is no encapsulation within the following macros, do not change 8628## the running order or otherwise move them around unless you know exactly 8629## what you are doing... 8630if test -n "$compiler"; then 8631 8632lt_prog_compiler_no_builtin_flag= 8633 8634if test yes = "$GCC"; then 8635 case $cc_basename in 8636 nvcc*) 8637 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8638 *) 8639 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8640 esac 8641 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8643$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8644if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8645 $as_echo_n "(cached) " >&6 8646else 8647 lt_cv_prog_compiler_rtti_exceptions=no 8648 ac_outfile=conftest.$ac_objext 8649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8650 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8651 # Insert the option either (1) after the last *FLAGS variable, or 8652 # (2) before a word containing "conftest.", or (3) at the end. 8653 # Note that $ac_compile itself does not contain backslashes and begins 8654 # with a dollar sign (not a hyphen), so the echo should work correctly. 8655 # The option is referenced via a variable to avoid confusing sed. 8656 lt_compile=`echo "$ac_compile" | $SED \ 8657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8659 -e 's:$: $lt_compiler_flag:'` 8660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8661 (eval "$lt_compile" 2>conftest.err) 8662 ac_status=$? 8663 cat conftest.err >&5 8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8665 if (exit $ac_status) && test -s "$ac_outfile"; then 8666 # The compiler can only warn and ignore the option if not recognized 8667 # So say no if there are warnings other than the usual output. 8668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8671 lt_cv_prog_compiler_rtti_exceptions=yes 8672 fi 8673 fi 8674 $RM conftest* 8675 8676fi 8677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8678$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8679 8680if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8681 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8682else 8683 : 8684fi 8685 8686fi 8687 8688 8689 8690 8691 8692 8693 lt_prog_compiler_wl= 8694lt_prog_compiler_pic= 8695lt_prog_compiler_static= 8696 8697 8698 if test yes = "$GCC"; then 8699 lt_prog_compiler_wl='-Wl,' 8700 lt_prog_compiler_static='-static' 8701 8702 case $host_os in 8703 aix*) 8704 # All AIX code is PIC. 8705 if test ia64 = "$host_cpu"; then 8706 # AIX 5 now supports IA64 processor 8707 lt_prog_compiler_static='-Bstatic' 8708 fi 8709 lt_prog_compiler_pic='-fPIC' 8710 ;; 8711 8712 amigaos*) 8713 case $host_cpu in 8714 powerpc) 8715 # see comment about AmigaOS4 .so support 8716 lt_prog_compiler_pic='-fPIC' 8717 ;; 8718 m68k) 8719 # FIXME: we need at least 68020 code to build shared libraries, but 8720 # adding the '-m68020' flag to GCC prevents building anything better, 8721 # like '-m68040'. 8722 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8723 ;; 8724 esac 8725 ;; 8726 8727 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8728 # PIC is the default for these OSes. 8729 ;; 8730 8731 mingw* | cygwin* | pw32* | os2* | cegcc*) 8732 # This hack is so that the source file can tell whether it is being 8733 # built for inclusion in a dll (and should export symbols for example). 8734 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8735 # (--disable-auto-import) libraries 8736 lt_prog_compiler_pic='-DDLL_EXPORT' 8737 case $host_os in 8738 os2*) 8739 lt_prog_compiler_static='$wl-static' 8740 ;; 8741 esac 8742 ;; 8743 8744 darwin* | rhapsody*) 8745 # PIC is the default on this platform 8746 # Common symbols not allowed in MH_DYLIB files 8747 lt_prog_compiler_pic='-fno-common' 8748 ;; 8749 8750 haiku*) 8751 # PIC is the default for Haiku. 8752 # The "-static" flag exists, but is broken. 8753 lt_prog_compiler_static= 8754 ;; 8755 8756 hpux*) 8757 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8758 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8759 # sets the default TLS model and affects inlining. 8760 case $host_cpu in 8761 hppa*64*) 8762 # +Z the default 8763 ;; 8764 *) 8765 lt_prog_compiler_pic='-fPIC' 8766 ;; 8767 esac 8768 ;; 8769 8770 interix[3-9]*) 8771 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8772 # Instead, we relocate shared libraries at runtime. 8773 ;; 8774 8775 msdosdjgpp*) 8776 # Just because we use GCC doesn't mean we suddenly get shared libraries 8777 # on systems that don't support them. 8778 lt_prog_compiler_can_build_shared=no 8779 enable_shared=no 8780 ;; 8781 8782 *nto* | *qnx*) 8783 # QNX uses GNU C++, but need to define -shared option too, otherwise 8784 # it will coredump. 8785 lt_prog_compiler_pic='-fPIC -shared' 8786 ;; 8787 8788 sysv4*MP*) 8789 if test -d /usr/nec; then 8790 lt_prog_compiler_pic=-Kconform_pic 8791 fi 8792 ;; 8793 8794 *) 8795 lt_prog_compiler_pic='-fPIC' 8796 ;; 8797 esac 8798 8799 case $cc_basename in 8800 nvcc*) # Cuda Compiler Driver 2.2 8801 lt_prog_compiler_wl='-Xlinker ' 8802 if test -n "$lt_prog_compiler_pic"; then 8803 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8804 fi 8805 ;; 8806 esac 8807 else 8808 # PORTME Check for flag to pass linker flags through the system compiler. 8809 case $host_os in 8810 aix*) 8811 lt_prog_compiler_wl='-Wl,' 8812 if test ia64 = "$host_cpu"; then 8813 # AIX 5 now supports IA64 processor 8814 lt_prog_compiler_static='-Bstatic' 8815 else 8816 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8817 fi 8818 ;; 8819 8820 darwin* | rhapsody*) 8821 # PIC is the default on this platform 8822 # Common symbols not allowed in MH_DYLIB files 8823 lt_prog_compiler_pic='-fno-common' 8824 case $cc_basename in 8825 nagfor*) 8826 # NAG Fortran compiler 8827 lt_prog_compiler_wl='-Wl,-Wl,,' 8828 lt_prog_compiler_pic='-PIC' 8829 lt_prog_compiler_static='-Bstatic' 8830 ;; 8831 esac 8832 ;; 8833 8834 mingw* | cygwin* | pw32* | os2* | cegcc*) 8835 # This hack is so that the source file can tell whether it is being 8836 # built for inclusion in a dll (and should export symbols for example). 8837 lt_prog_compiler_pic='-DDLL_EXPORT' 8838 case $host_os in 8839 os2*) 8840 lt_prog_compiler_static='$wl-static' 8841 ;; 8842 esac 8843 ;; 8844 8845 hpux9* | hpux10* | hpux11*) 8846 lt_prog_compiler_wl='-Wl,' 8847 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8848 # not for PA HP-UX. 8849 case $host_cpu in 8850 hppa*64*|ia64*) 8851 # +Z the default 8852 ;; 8853 *) 8854 lt_prog_compiler_pic='+Z' 8855 ;; 8856 esac 8857 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8858 lt_prog_compiler_static='$wl-a ${wl}archive' 8859 ;; 8860 8861 irix5* | irix6* | nonstopux*) 8862 lt_prog_compiler_wl='-Wl,' 8863 # PIC (with -KPIC) is the default. 8864 lt_prog_compiler_static='-non_shared' 8865 ;; 8866 8867 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8868 case $cc_basename in 8869 # old Intel for x86_64, which still supported -KPIC. 8870 ecc*) 8871 lt_prog_compiler_wl='-Wl,' 8872 lt_prog_compiler_pic='-KPIC' 8873 lt_prog_compiler_static='-static' 8874 ;; 8875 # icc used to be incompatible with GCC. 8876 # ICC 10 doesn't accept -KPIC any more. 8877 icc* | ifort*) 8878 lt_prog_compiler_wl='-Wl,' 8879 lt_prog_compiler_pic='-fPIC' 8880 lt_prog_compiler_static='-static' 8881 ;; 8882 # Lahey Fortran 8.1. 8883 lf95*) 8884 lt_prog_compiler_wl='-Wl,' 8885 lt_prog_compiler_pic='--shared' 8886 lt_prog_compiler_static='--static' 8887 ;; 8888 nagfor*) 8889 # NAG Fortran compiler 8890 lt_prog_compiler_wl='-Wl,-Wl,,' 8891 lt_prog_compiler_pic='-PIC' 8892 lt_prog_compiler_static='-Bstatic' 8893 ;; 8894 tcc*) 8895 # Fabrice Bellard et al's Tiny C Compiler 8896 lt_prog_compiler_wl='-Wl,' 8897 lt_prog_compiler_pic='-fPIC' 8898 lt_prog_compiler_static='-static' 8899 ;; 8900 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8901 # Portland Group compilers (*not* the Pentium gcc compiler, 8902 # which looks to be a dead project) 8903 lt_prog_compiler_wl='-Wl,' 8904 lt_prog_compiler_pic='-fpic' 8905 lt_prog_compiler_static='-Bstatic' 8906 ;; 8907 ccc*) 8908 lt_prog_compiler_wl='-Wl,' 8909 # All Alpha code is PIC. 8910 lt_prog_compiler_static='-non_shared' 8911 ;; 8912 xl* | bgxl* | bgf* | mpixl*) 8913 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8914 lt_prog_compiler_wl='-Wl,' 8915 lt_prog_compiler_pic='-qpic' 8916 lt_prog_compiler_static='-qstaticlink' 8917 ;; 8918 *) 8919 case `$CC -V 2>&1 | sed 5q` in 8920 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8921 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8922 lt_prog_compiler_pic='-KPIC' 8923 lt_prog_compiler_static='-Bstatic' 8924 lt_prog_compiler_wl='' 8925 ;; 8926 *Sun\ F* | *Sun*Fortran*) 8927 lt_prog_compiler_pic='-KPIC' 8928 lt_prog_compiler_static='-Bstatic' 8929 lt_prog_compiler_wl='-Qoption ld ' 8930 ;; 8931 *Sun\ C*) 8932 # Sun C 5.9 8933 lt_prog_compiler_pic='-KPIC' 8934 lt_prog_compiler_static='-Bstatic' 8935 lt_prog_compiler_wl='-Wl,' 8936 ;; 8937 *Intel*\ [CF]*Compiler*) 8938 lt_prog_compiler_wl='-Wl,' 8939 lt_prog_compiler_pic='-fPIC' 8940 lt_prog_compiler_static='-static' 8941 ;; 8942 *Portland\ Group*) 8943 lt_prog_compiler_wl='-Wl,' 8944 lt_prog_compiler_pic='-fpic' 8945 lt_prog_compiler_static='-Bstatic' 8946 ;; 8947 esac 8948 ;; 8949 esac 8950 ;; 8951 8952 newsos6) 8953 lt_prog_compiler_pic='-KPIC' 8954 lt_prog_compiler_static='-Bstatic' 8955 ;; 8956 8957 *nto* | *qnx*) 8958 # QNX uses GNU C++, but need to define -shared option too, otherwise 8959 # it will coredump. 8960 lt_prog_compiler_pic='-fPIC -shared' 8961 ;; 8962 8963 osf3* | osf4* | osf5*) 8964 lt_prog_compiler_wl='-Wl,' 8965 # All OSF/1 code is PIC. 8966 lt_prog_compiler_static='-non_shared' 8967 ;; 8968 8969 rdos*) 8970 lt_prog_compiler_static='-non_shared' 8971 ;; 8972 8973 solaris*) 8974 lt_prog_compiler_pic='-KPIC' 8975 lt_prog_compiler_static='-Bstatic' 8976 case $cc_basename in 8977 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8978 lt_prog_compiler_wl='-Qoption ld ';; 8979 *) 8980 lt_prog_compiler_wl='-Wl,';; 8981 esac 8982 ;; 8983 8984 sunos4*) 8985 lt_prog_compiler_wl='-Qoption ld ' 8986 lt_prog_compiler_pic='-PIC' 8987 lt_prog_compiler_static='-Bstatic' 8988 ;; 8989 8990 sysv4 | sysv4.2uw2* | sysv4.3*) 8991 lt_prog_compiler_wl='-Wl,' 8992 lt_prog_compiler_pic='-KPIC' 8993 lt_prog_compiler_static='-Bstatic' 8994 ;; 8995 8996 sysv4*MP*) 8997 if test -d /usr/nec; then 8998 lt_prog_compiler_pic='-Kconform_pic' 8999 lt_prog_compiler_static='-Bstatic' 9000 fi 9001 ;; 9002 9003 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9004 lt_prog_compiler_wl='-Wl,' 9005 lt_prog_compiler_pic='-KPIC' 9006 lt_prog_compiler_static='-Bstatic' 9007 ;; 9008 9009 unicos*) 9010 lt_prog_compiler_wl='-Wl,' 9011 lt_prog_compiler_can_build_shared=no 9012 ;; 9013 9014 uts4*) 9015 lt_prog_compiler_pic='-pic' 9016 lt_prog_compiler_static='-Bstatic' 9017 ;; 9018 9019 *) 9020 lt_prog_compiler_can_build_shared=no 9021 ;; 9022 esac 9023 fi 9024 9025case $host_os in 9026 # For platforms that do not support PIC, -DPIC is meaningless: 9027 *djgpp*) 9028 lt_prog_compiler_pic= 9029 ;; 9030 *) 9031 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9032 ;; 9033esac 9034 9035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9036$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9037if ${lt_cv_prog_compiler_pic+:} false; then : 9038 $as_echo_n "(cached) " >&6 9039else 9040 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9041fi 9042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9043$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9044lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9045 9046# 9047# Check to make sure the PIC flag actually works. 9048# 9049if test -n "$lt_prog_compiler_pic"; then 9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9051$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9052if ${lt_cv_prog_compiler_pic_works+:} false; then : 9053 $as_echo_n "(cached) " >&6 9054else 9055 lt_cv_prog_compiler_pic_works=no 9056 ac_outfile=conftest.$ac_objext 9057 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9058 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9059 # Insert the option either (1) after the last *FLAGS variable, or 9060 # (2) before a word containing "conftest.", or (3) at the end. 9061 # Note that $ac_compile itself does not contain backslashes and begins 9062 # with a dollar sign (not a hyphen), so the echo should work correctly. 9063 # The option is referenced via a variable to avoid confusing sed. 9064 lt_compile=`echo "$ac_compile" | $SED \ 9065 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9067 -e 's:$: $lt_compiler_flag:'` 9068 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9069 (eval "$lt_compile" 2>conftest.err) 9070 ac_status=$? 9071 cat conftest.err >&5 9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9073 if (exit $ac_status) && test -s "$ac_outfile"; then 9074 # The compiler can only warn and ignore the option if not recognized 9075 # So say no if there are warnings other than the usual output. 9076 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9077 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9078 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9079 lt_cv_prog_compiler_pic_works=yes 9080 fi 9081 fi 9082 $RM conftest* 9083 9084fi 9085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9086$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9087 9088if test yes = "$lt_cv_prog_compiler_pic_works"; then 9089 case $lt_prog_compiler_pic in 9090 "" | " "*) ;; 9091 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9092 esac 9093else 9094 lt_prog_compiler_pic= 9095 lt_prog_compiler_can_build_shared=no 9096fi 9097 9098fi 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110# 9111# Check to make sure the static flag actually works. 9112# 9113wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9115$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9116if ${lt_cv_prog_compiler_static_works+:} false; then : 9117 $as_echo_n "(cached) " >&6 9118else 9119 lt_cv_prog_compiler_static_works=no 9120 save_LDFLAGS=$LDFLAGS 9121 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9122 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9123 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9124 # The linker can only warn and ignore the option if not recognized 9125 # So say no if there are warnings 9126 if test -s conftest.err; then 9127 # Append any errors to the config.log. 9128 cat conftest.err 1>&5 9129 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9131 if diff conftest.exp conftest.er2 >/dev/null; then 9132 lt_cv_prog_compiler_static_works=yes 9133 fi 9134 else 9135 lt_cv_prog_compiler_static_works=yes 9136 fi 9137 fi 9138 $RM -r conftest* 9139 LDFLAGS=$save_LDFLAGS 9140 9141fi 9142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9143$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9144 9145if test yes = "$lt_cv_prog_compiler_static_works"; then 9146 : 9147else 9148 lt_prog_compiler_static= 9149fi 9150 9151 9152 9153 9154 9155 9156 9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9158$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9159if ${lt_cv_prog_compiler_c_o+:} false; then : 9160 $as_echo_n "(cached) " >&6 9161else 9162 lt_cv_prog_compiler_c_o=no 9163 $RM -r conftest 2>/dev/null 9164 mkdir conftest 9165 cd conftest 9166 mkdir out 9167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9168 9169 lt_compiler_flag="-o out/conftest2.$ac_objext" 9170 # Insert the option either (1) after the last *FLAGS variable, or 9171 # (2) before a word containing "conftest.", or (3) at the end. 9172 # Note that $ac_compile itself does not contain backslashes and begins 9173 # with a dollar sign (not a hyphen), so the echo should work correctly. 9174 lt_compile=`echo "$ac_compile" | $SED \ 9175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9177 -e 's:$: $lt_compiler_flag:'` 9178 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9179 (eval "$lt_compile" 2>out/conftest.err) 9180 ac_status=$? 9181 cat out/conftest.err >&5 9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9183 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9184 then 9185 # The compiler can only warn and ignore the option if not recognized 9186 # So say no if there are warnings 9187 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9188 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9189 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9190 lt_cv_prog_compiler_c_o=yes 9191 fi 9192 fi 9193 chmod u+w . 2>&5 9194 $RM conftest* 9195 # SGI C++ compiler will create directory out/ii_files/ for 9196 # template instantiation 9197 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9198 $RM out/* && rmdir out 9199 cd .. 9200 $RM -r conftest 9201 $RM conftest* 9202 9203fi 9204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9205$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9206 9207 9208 9209 9210 9211 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9213$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9214if ${lt_cv_prog_compiler_c_o+:} false; then : 9215 $as_echo_n "(cached) " >&6 9216else 9217 lt_cv_prog_compiler_c_o=no 9218 $RM -r conftest 2>/dev/null 9219 mkdir conftest 9220 cd conftest 9221 mkdir out 9222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9223 9224 lt_compiler_flag="-o out/conftest2.$ac_objext" 9225 # Insert the option either (1) after the last *FLAGS variable, or 9226 # (2) before a word containing "conftest.", or (3) at the end. 9227 # Note that $ac_compile itself does not contain backslashes and begins 9228 # with a dollar sign (not a hyphen), so the echo should work correctly. 9229 lt_compile=`echo "$ac_compile" | $SED \ 9230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9232 -e 's:$: $lt_compiler_flag:'` 9233 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9234 (eval "$lt_compile" 2>out/conftest.err) 9235 ac_status=$? 9236 cat out/conftest.err >&5 9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9238 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9239 then 9240 # The compiler can only warn and ignore the option if not recognized 9241 # So say no if there are warnings 9242 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9243 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9244 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9245 lt_cv_prog_compiler_c_o=yes 9246 fi 9247 fi 9248 chmod u+w . 2>&5 9249 $RM conftest* 9250 # SGI C++ compiler will create directory out/ii_files/ for 9251 # template instantiation 9252 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9253 $RM out/* && rmdir out 9254 cd .. 9255 $RM -r conftest 9256 $RM conftest* 9257 9258fi 9259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9260$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9261 9262 9263 9264 9265hard_links=nottested 9266if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9267 # do not overwrite the value of need_locks provided by the user 9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9269$as_echo_n "checking if we can lock with hard links... " >&6; } 9270 hard_links=yes 9271 $RM conftest* 9272 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9273 touch conftest.a 9274 ln conftest.a conftest.b 2>&5 || hard_links=no 9275 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9277$as_echo "$hard_links" >&6; } 9278 if test no = "$hard_links"; then 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9280$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9281 need_locks=warn 9282 fi 9283else 9284 need_locks=no 9285fi 9286 9287 9288 9289 9290 9291 9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9293$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9294 9295 runpath_var= 9296 allow_undefined_flag= 9297 always_export_symbols=no 9298 archive_cmds= 9299 archive_expsym_cmds= 9300 compiler_needs_object=no 9301 enable_shared_with_static_runtimes=no 9302 export_dynamic_flag_spec= 9303 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9304 hardcode_automatic=no 9305 hardcode_direct=no 9306 hardcode_direct_absolute=no 9307 hardcode_libdir_flag_spec= 9308 hardcode_libdir_separator= 9309 hardcode_minus_L=no 9310 hardcode_shlibpath_var=unsupported 9311 inherit_rpath=no 9312 link_all_deplibs=unknown 9313 module_cmds= 9314 module_expsym_cmds= 9315 old_archive_from_new_cmds= 9316 old_archive_from_expsyms_cmds= 9317 thread_safe_flag_spec= 9318 whole_archive_flag_spec= 9319 # include_expsyms should be a list of space-separated symbols to be *always* 9320 # included in the symbol list 9321 include_expsyms= 9322 # exclude_expsyms can be an extended regexp of symbols to exclude 9323 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9324 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9325 # as well as any symbol that contains 'd'. 9326 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9327 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9328 # platforms (ab)use it in PIC code, but their linkers get confused if 9329 # the symbol is explicitly referenced. Since portable code cannot 9330 # rely on this symbol name, it's probably fine to never include it in 9331 # preloaded symbol tables. 9332 # Exclude shared library initialization/finalization symbols. 9333 extract_expsyms_cmds= 9334 9335 case $host_os in 9336 cygwin* | mingw* | pw32* | cegcc*) 9337 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9338 # When not using gcc, we currently assume that we are using 9339 # Microsoft Visual C++. 9340 if test yes != "$GCC"; then 9341 with_gnu_ld=no 9342 fi 9343 ;; 9344 interix*) 9345 # we just hope/assume this is gcc and not c89 (= MSVC++) 9346 with_gnu_ld=yes 9347 ;; 9348 openbsd* | bitrig*) 9349 with_gnu_ld=no 9350 ;; 9351 esac 9352 9353 ld_shlibs=yes 9354 9355 # On some targets, GNU ld is compatible enough with the native linker 9356 # that we're better off using the native interface for both. 9357 lt_use_gnu_ld_interface=no 9358 if test yes = "$with_gnu_ld"; then 9359 case $host_os in 9360 aix*) 9361 # The AIX port of GNU ld has always aspired to compatibility 9362 # with the native linker. However, as the warning in the GNU ld 9363 # block says, versions before 2.19.5* couldn't really create working 9364 # shared libraries, regardless of the interface used. 9365 case `$LD -v 2>&1` in 9366 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9367 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9368 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9369 *) 9370 lt_use_gnu_ld_interface=yes 9371 ;; 9372 esac 9373 ;; 9374 *) 9375 lt_use_gnu_ld_interface=yes 9376 ;; 9377 esac 9378 fi 9379 9380 if test yes = "$lt_use_gnu_ld_interface"; then 9381 # If archive_cmds runs LD, not CC, wlarc should be empty 9382 wlarc='$wl' 9383 9384 # Set some defaults for GNU ld with shared library support. These 9385 # are reset later if shared libraries are not supported. Putting them 9386 # here allows them to be overridden if necessary. 9387 runpath_var=LD_RUN_PATH 9388 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9389 export_dynamic_flag_spec='$wl--export-dynamic' 9390 # ancient GNU ld didn't support --whole-archive et. al. 9391 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9392 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9393 else 9394 whole_archive_flag_spec= 9395 fi 9396 supports_anon_versioning=no 9397 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9398 *GNU\ gold*) supports_anon_versioning=yes ;; 9399 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9400 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9401 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9402 *\ 2.11.*) ;; # other 2.11 versions 9403 *) supports_anon_versioning=yes ;; 9404 esac 9405 9406 # See if GNU ld supports shared libraries. 9407 case $host_os in 9408 aix[3-9]*) 9409 # On AIX/PPC, the GNU linker is very broken 9410 if test ia64 != "$host_cpu"; then 9411 ld_shlibs=no 9412 cat <<_LT_EOF 1>&2 9413 9414*** Warning: the GNU linker, at least up to release 2.19, is reported 9415*** to be unable to reliably create shared libraries on AIX. 9416*** Therefore, libtool is disabling shared libraries support. If you 9417*** really care for shared libraries, you may want to install binutils 9418*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9419*** You will then need to restart the configuration process. 9420 9421_LT_EOF 9422 fi 9423 ;; 9424 9425 amigaos*) 9426 case $host_cpu in 9427 powerpc) 9428 # see comment about AmigaOS4 .so support 9429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9430 archive_expsym_cmds='' 9431 ;; 9432 m68k) 9433 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)' 9434 hardcode_libdir_flag_spec='-L$libdir' 9435 hardcode_minus_L=yes 9436 ;; 9437 esac 9438 ;; 9439 9440 beos*) 9441 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9442 allow_undefined_flag=unsupported 9443 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9444 # support --undefined. This deserves some investigation. FIXME 9445 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9446 else 9447 ld_shlibs=no 9448 fi 9449 ;; 9450 9451 cygwin* | mingw* | pw32* | cegcc*) 9452 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9453 # as there is no search path for DLLs. 9454 hardcode_libdir_flag_spec='-L$libdir' 9455 export_dynamic_flag_spec='$wl--export-all-symbols' 9456 allow_undefined_flag=unsupported 9457 always_export_symbols=no 9458 enable_shared_with_static_runtimes=yes 9459 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' 9460 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9461 9462 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9464 # If the export-symbols file already is a .def file, use it as 9465 # is; otherwise, prepend EXPORTS... 9466 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9467 cp $export_symbols $output_objdir/$soname.def; 9468 else 9469 echo EXPORTS > $output_objdir/$soname.def; 9470 cat $export_symbols >> $output_objdir/$soname.def; 9471 fi~ 9472 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9473 else 9474 ld_shlibs=no 9475 fi 9476 ;; 9477 9478 haiku*) 9479 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9480 link_all_deplibs=yes 9481 ;; 9482 9483 os2*) 9484 hardcode_libdir_flag_spec='-L$libdir' 9485 hardcode_minus_L=yes 9486 allow_undefined_flag=unsupported 9487 shrext_cmds=.dll 9488 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9489 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9490 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9491 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9492 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9493 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9494 emximp -o $lib $output_objdir/$libname.def' 9495 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9496 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9497 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9498 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9499 prefix_cmds="$SED"~ 9500 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9501 prefix_cmds="$prefix_cmds -e 1d"; 9502 fi~ 9503 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9504 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9505 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9506 emximp -o $lib $output_objdir/$libname.def' 9507 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9508 enable_shared_with_static_runtimes=yes 9509 ;; 9510 9511 interix[3-9]*) 9512 hardcode_direct=no 9513 hardcode_shlibpath_var=no 9514 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9515 export_dynamic_flag_spec='$wl-E' 9516 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9517 # Instead, shared libraries are loaded at an image base (0x10000000 by 9518 # default) and relocated if they conflict, which is a slow very memory 9519 # consuming and fragmenting process. To avoid this, we pick a random, 9520 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9521 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9522 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9523 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' 9524 ;; 9525 9526 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9527 tmp_diet=no 9528 if test linux-dietlibc = "$host_os"; then 9529 case $cc_basename in 9530 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9531 esac 9532 fi 9533 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9534 && test no = "$tmp_diet" 9535 then 9536 tmp_addflag=' $pic_flag' 9537 tmp_sharedflag='-shared' 9538 case $cc_basename,$host_cpu in 9539 pgcc*) # Portland Group C compiler 9540 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' 9541 tmp_addflag=' $pic_flag' 9542 ;; 9543 pgf77* | pgf90* | pgf95* | pgfortran*) 9544 # Portland Group f77 and f90 compilers 9545 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' 9546 tmp_addflag=' $pic_flag -Mnomain' ;; 9547 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9548 tmp_addflag=' -i_dynamic' ;; 9549 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9550 tmp_addflag=' -i_dynamic -nofor_main' ;; 9551 ifc* | ifort*) # Intel Fortran compiler 9552 tmp_addflag=' -nofor_main' ;; 9553 lf95*) # Lahey Fortran 8.1 9554 whole_archive_flag_spec= 9555 tmp_sharedflag='--shared' ;; 9556 nagfor*) # NAGFOR 5.3 9557 tmp_sharedflag='-Wl,-shared' ;; 9558 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9559 tmp_sharedflag='-qmkshrobj' 9560 tmp_addflag= ;; 9561 nvcc*) # Cuda Compiler Driver 2.2 9562 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' 9563 compiler_needs_object=yes 9564 ;; 9565 esac 9566 case `$CC -V 2>&1 | sed 5q` in 9567 *Sun\ C*) # Sun C 5.9 9568 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' 9569 compiler_needs_object=yes 9570 tmp_sharedflag='-G' ;; 9571 *Sun\ F*) # Sun Fortran 8.3 9572 tmp_sharedflag='-G' ;; 9573 esac 9574 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9575 9576 if test yes = "$supports_anon_versioning"; then 9577 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9578 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9579 echo "local: *; };" >> $output_objdir/$libname.ver~ 9580 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9581 fi 9582 9583 case $cc_basename in 9584 tcc*) 9585 export_dynamic_flag_spec='-rdynamic' 9586 ;; 9587 xlf* | bgf* | bgxlf* | mpixlf*) 9588 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9589 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9590 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9591 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9592 if test yes = "$supports_anon_versioning"; then 9593 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9594 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9595 echo "local: *; };" >> $output_objdir/$libname.ver~ 9596 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9597 fi 9598 ;; 9599 esac 9600 else 9601 ld_shlibs=no 9602 fi 9603 ;; 9604 9605 netbsd*) 9606 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9607 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9608 wlarc= 9609 else 9610 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9611 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9612 fi 9613 ;; 9614 9615 solaris*) 9616 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9617 ld_shlibs=no 9618 cat <<_LT_EOF 1>&2 9619 9620*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9621*** create shared libraries on Solaris systems. Therefore, libtool 9622*** is disabling shared libraries support. We urge you to upgrade GNU 9623*** binutils to release 2.9.1 or newer. Another option is to modify 9624*** your PATH or compiler configuration so that the native linker is 9625*** used, and then restart. 9626 9627_LT_EOF 9628 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9629 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9630 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9631 else 9632 ld_shlibs=no 9633 fi 9634 ;; 9635 9636 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9637 case `$LD -v 2>&1` in 9638 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9639 ld_shlibs=no 9640 cat <<_LT_EOF 1>&2 9641 9642*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9643*** reliably create shared libraries on SCO systems. Therefore, libtool 9644*** is disabling shared libraries support. We urge you to upgrade GNU 9645*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9646*** your PATH or compiler configuration so that the native linker is 9647*** used, and then restart. 9648 9649_LT_EOF 9650 ;; 9651 *) 9652 # For security reasons, it is highly recommended that you always 9653 # use absolute paths for naming shared libraries, and exclude the 9654 # DT_RUNPATH tag from executables and libraries. But doing so 9655 # requires that you compile everything twice, which is a pain. 9656 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9657 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9659 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9660 else 9661 ld_shlibs=no 9662 fi 9663 ;; 9664 esac 9665 ;; 9666 9667 sunos4*) 9668 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9669 wlarc= 9670 hardcode_direct=yes 9671 hardcode_shlibpath_var=no 9672 ;; 9673 9674 *) 9675 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9676 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9677 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9678 else 9679 ld_shlibs=no 9680 fi 9681 ;; 9682 esac 9683 9684 if test no = "$ld_shlibs"; then 9685 runpath_var= 9686 hardcode_libdir_flag_spec= 9687 export_dynamic_flag_spec= 9688 whole_archive_flag_spec= 9689 fi 9690 else 9691 # PORTME fill in a description of your system's linker (not GNU ld) 9692 case $host_os in 9693 aix3*) 9694 allow_undefined_flag=unsupported 9695 always_export_symbols=yes 9696 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' 9697 # Note: this linker hardcodes the directories in LIBPATH if there 9698 # are no directories specified by -L. 9699 hardcode_minus_L=yes 9700 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9701 # Neither direct hardcoding nor static linking is supported with a 9702 # broken collect2. 9703 hardcode_direct=unsupported 9704 fi 9705 ;; 9706 9707 aix[4-9]*) 9708 if test ia64 = "$host_cpu"; then 9709 # On IA64, the linker does run time linking by default, so we don't 9710 # have to do anything special. 9711 aix_use_runtimelinking=no 9712 exp_sym_flag='-Bexport' 9713 no_entry_flag= 9714 else 9715 # If we're using GNU nm, then we don't want the "-C" option. 9716 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9717 # Without the "-l" option, or with the "-B" option, AIX nm treats 9718 # weak defined symbols like other global defined symbols, whereas 9719 # GNU nm marks them as "W". 9720 # While the 'weak' keyword is ignored in the Export File, we need 9721 # it in the Import File for the 'aix-soname' feature, so we have 9722 # to replace the "-B" option with "-P" for AIX nm. 9723 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9724 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' 9725 else 9726 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9727 fi 9728 aix_use_runtimelinking=no 9729 9730 # Test if we are trying to use run time linking or normal 9731 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9732 # have runtime linking enabled, and use it for executables. 9733 # For shared libraries, we enable/disable runtime linking 9734 # depending on the kind of the shared library created - 9735 # when "with_aix_soname,aix_use_runtimelinking" is: 9736 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9737 # "aix,yes" lib.so shared, rtl:yes, for executables 9738 # lib.a static archive 9739 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9740 # lib.a(lib.so.V) shared, rtl:no, for executables 9741 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9742 # lib.a(lib.so.V) shared, rtl:no 9743 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9744 # lib.a static archive 9745 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9746 for ld_flag in $LDFLAGS; do 9747 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9748 aix_use_runtimelinking=yes 9749 break 9750 fi 9751 done 9752 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9753 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9754 # so we don't have lib.a shared libs to link our executables. 9755 # We have to force runtime linking in this case. 9756 aix_use_runtimelinking=yes 9757 LDFLAGS="$LDFLAGS -Wl,-brtl" 9758 fi 9759 ;; 9760 esac 9761 9762 exp_sym_flag='-bexport' 9763 no_entry_flag='-bnoentry' 9764 fi 9765 9766 # When large executables or shared objects are built, AIX ld can 9767 # have problems creating the table of contents. If linking a library 9768 # or program results in "error TOC overflow" add -mminimal-toc to 9769 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9770 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9771 9772 archive_cmds='' 9773 hardcode_direct=yes 9774 hardcode_direct_absolute=yes 9775 hardcode_libdir_separator=':' 9776 link_all_deplibs=yes 9777 file_list_spec='$wl-f,' 9778 case $with_aix_soname,$aix_use_runtimelinking in 9779 aix,*) ;; # traditional, no import file 9780 svr4,* | *,yes) # use import file 9781 # The Import File defines what to hardcode. 9782 hardcode_direct=no 9783 hardcode_direct_absolute=no 9784 ;; 9785 esac 9786 9787 if test yes = "$GCC"; then 9788 case $host_os in aix4.[012]|aix4.[012].*) 9789 # We only want to do this on AIX 4.2 and lower, the check 9790 # below for broken collect2 doesn't work under 4.3+ 9791 collect2name=`$CC -print-prog-name=collect2` 9792 if test -f "$collect2name" && 9793 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9794 then 9795 # We have reworked collect2 9796 : 9797 else 9798 # We have old collect2 9799 hardcode_direct=unsupported 9800 # It fails to find uninstalled libraries when the uninstalled 9801 # path is not listed in the libpath. Setting hardcode_minus_L 9802 # to unsupported forces relinking 9803 hardcode_minus_L=yes 9804 hardcode_libdir_flag_spec='-L$libdir' 9805 hardcode_libdir_separator= 9806 fi 9807 ;; 9808 esac 9809 shared_flag='-shared' 9810 if test yes = "$aix_use_runtimelinking"; then 9811 shared_flag="$shared_flag "'$wl-G' 9812 fi 9813 # Need to ensure runtime linking is disabled for the traditional 9814 # shared library, or the linker may eventually find shared libraries 9815 # /with/ Import File - we do not want to mix them. 9816 shared_flag_aix='-shared' 9817 shared_flag_svr4='-shared $wl-G' 9818 else 9819 # not using gcc 9820 if test ia64 = "$host_cpu"; then 9821 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9822 # chokes on -Wl,-G. The following line is correct: 9823 shared_flag='-G' 9824 else 9825 if test yes = "$aix_use_runtimelinking"; then 9826 shared_flag='$wl-G' 9827 else 9828 shared_flag='$wl-bM:SRE' 9829 fi 9830 shared_flag_aix='$wl-bM:SRE' 9831 shared_flag_svr4='$wl-G' 9832 fi 9833 fi 9834 9835 export_dynamic_flag_spec='$wl-bexpall' 9836 # It seems that -bexpall does not export symbols beginning with 9837 # underscore (_), so it is better to generate a list of symbols to export. 9838 always_export_symbols=yes 9839 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9840 # Warning - without using the other runtime loading flags (-brtl), 9841 # -berok will link without error, but may produce a broken library. 9842 allow_undefined_flag='-berok' 9843 # Determine the default libpath from the value encoded in an 9844 # empty executable. 9845 if test set = "${lt_cv_aix_libpath+set}"; then 9846 aix_libpath=$lt_cv_aix_libpath 9847else 9848 if ${lt_cv_aix_libpath_+:} false; then : 9849 $as_echo_n "(cached) " >&6 9850else 9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9852/* end confdefs.h. */ 9853 9854int 9855main () 9856{ 9857 9858 ; 9859 return 0; 9860} 9861_ACEOF 9862if ac_fn_c_try_link "$LINENO"; then : 9863 9864 lt_aix_libpath_sed=' 9865 /Import File Strings/,/^$/ { 9866 /^0/ { 9867 s/^0 *\([^ ]*\) *$/\1/ 9868 p 9869 } 9870 }' 9871 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9872 # Check for a 64-bit object if we didn't find anything. 9873 if test -z "$lt_cv_aix_libpath_"; then 9874 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9875 fi 9876fi 9877rm -f core conftest.err conftest.$ac_objext \ 9878 conftest$ac_exeext conftest.$ac_ext 9879 if test -z "$lt_cv_aix_libpath_"; then 9880 lt_cv_aix_libpath_=/usr/lib:/lib 9881 fi 9882 9883fi 9884 9885 aix_libpath=$lt_cv_aix_libpath_ 9886fi 9887 9888 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9889 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 9890 else 9891 if test ia64 = "$host_cpu"; then 9892 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9893 allow_undefined_flag="-z nodefs" 9894 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" 9895 else 9896 # Determine the default libpath from the value encoded in an 9897 # empty executable. 9898 if test set = "${lt_cv_aix_libpath+set}"; then 9899 aix_libpath=$lt_cv_aix_libpath 9900else 9901 if ${lt_cv_aix_libpath_+:} false; then : 9902 $as_echo_n "(cached) " >&6 9903else 9904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9905/* end confdefs.h. */ 9906 9907int 9908main () 9909{ 9910 9911 ; 9912 return 0; 9913} 9914_ACEOF 9915if ac_fn_c_try_link "$LINENO"; then : 9916 9917 lt_aix_libpath_sed=' 9918 /Import File Strings/,/^$/ { 9919 /^0/ { 9920 s/^0 *\([^ ]*\) *$/\1/ 9921 p 9922 } 9923 }' 9924 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9925 # Check for a 64-bit object if we didn't find anything. 9926 if test -z "$lt_cv_aix_libpath_"; then 9927 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9928 fi 9929fi 9930rm -f core conftest.err conftest.$ac_objext \ 9931 conftest$ac_exeext conftest.$ac_ext 9932 if test -z "$lt_cv_aix_libpath_"; then 9933 lt_cv_aix_libpath_=/usr/lib:/lib 9934 fi 9935 9936fi 9937 9938 aix_libpath=$lt_cv_aix_libpath_ 9939fi 9940 9941 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9942 # Warning - without using the other run time loading flags, 9943 # -berok will link without error, but may produce a broken library. 9944 no_undefined_flag=' $wl-bernotok' 9945 allow_undefined_flag=' $wl-berok' 9946 if test yes = "$with_gnu_ld"; then 9947 # We only use this code for GNU lds that support --whole-archive. 9948 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9949 else 9950 # Exported symbols can be pulled into shared objects from archives 9951 whole_archive_flag_spec='$convenience' 9952 fi 9953 archive_cmds_need_lc=yes 9954 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9955 # -brtl affects multiple linker settings, -berok does not and is overridden later 9956 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9957 if test svr4 != "$with_aix_soname"; then 9958 # This is similar to how AIX traditionally builds its shared libraries. 9959 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' 9960 fi 9961 if test aix != "$with_aix_soname"; then 9962 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' 9963 else 9964 # used by -dlpreopen to get the symbols 9965 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9966 fi 9967 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9968 fi 9969 fi 9970 ;; 9971 9972 amigaos*) 9973 case $host_cpu in 9974 powerpc) 9975 # see comment about AmigaOS4 .so support 9976 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9977 archive_expsym_cmds='' 9978 ;; 9979 m68k) 9980 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)' 9981 hardcode_libdir_flag_spec='-L$libdir' 9982 hardcode_minus_L=yes 9983 ;; 9984 esac 9985 ;; 9986 9987 bsdi[45]*) 9988 export_dynamic_flag_spec=-rdynamic 9989 ;; 9990 9991 cygwin* | mingw* | pw32* | cegcc*) 9992 # When not using gcc, we currently assume that we are using 9993 # Microsoft Visual C++. 9994 # hardcode_libdir_flag_spec is actually meaningless, as there is 9995 # no search path for DLLs. 9996 case $cc_basename in 9997 cl*) 9998 # Native MSVC 9999 hardcode_libdir_flag_spec=' ' 10000 allow_undefined_flag=unsupported 10001 always_export_symbols=yes 10002 file_list_spec='@' 10003 # Tell ltmain to make .lib files, not .a files. 10004 libext=lib 10005 # Tell ltmain to make .dll files, not .so files. 10006 shrext_cmds=.dll 10007 # FIXME: Setting linknames here is a bad hack. 10008 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10009 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10010 cp "$export_symbols" "$output_objdir/$soname.def"; 10011 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10012 else 10013 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10014 fi~ 10015 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10016 linknames=' 10017 # The linker will not automatically build a static lib if we build a DLL. 10018 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10019 enable_shared_with_static_runtimes=yes 10020 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10021 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10022 # Don't use ranlib 10023 old_postinstall_cmds='chmod 644 $oldlib' 10024 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10025 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10026 case $lt_outputfile in 10027 *.exe|*.EXE) ;; 10028 *) 10029 lt_outputfile=$lt_outputfile.exe 10030 lt_tool_outputfile=$lt_tool_outputfile.exe 10031 ;; 10032 esac~ 10033 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10034 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10035 $RM "$lt_outputfile.manifest"; 10036 fi' 10037 ;; 10038 *) 10039 # Assume MSVC wrapper 10040 hardcode_libdir_flag_spec=' ' 10041 allow_undefined_flag=unsupported 10042 # Tell ltmain to make .lib files, not .a files. 10043 libext=lib 10044 # Tell ltmain to make .dll files, not .so files. 10045 shrext_cmds=.dll 10046 # FIXME: Setting linknames here is a bad hack. 10047 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10048 # The linker will automatically build a .lib file if we build a DLL. 10049 old_archive_from_new_cmds='true' 10050 # FIXME: Should let the user specify the lib program. 10051 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10052 enable_shared_with_static_runtimes=yes 10053 ;; 10054 esac 10055 ;; 10056 10057 darwin* | rhapsody*) 10058 10059 10060 archive_cmds_need_lc=no 10061 hardcode_direct=no 10062 hardcode_automatic=yes 10063 hardcode_shlibpath_var=unsupported 10064 if test yes = "$lt_cv_ld_force_load"; then 10065 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\"`' 10066 10067 else 10068 whole_archive_flag_spec='' 10069 fi 10070 link_all_deplibs=yes 10071 allow_undefined_flag=$_lt_dar_allow_undefined 10072 case $cc_basename in 10073 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10074 *) _lt_dar_can_shared=$GCC ;; 10075 esac 10076 if test yes = "$_lt_dar_can_shared"; then 10077 output_verbose_link_cmd=func_echo_all 10078 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10079 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10080 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" 10081 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" 10082 10083 else 10084 ld_shlibs=no 10085 fi 10086 10087 ;; 10088 10089 dgux*) 10090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10091 hardcode_libdir_flag_spec='-L$libdir' 10092 hardcode_shlibpath_var=no 10093 ;; 10094 10095 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10096 # support. Future versions do this automatically, but an explicit c++rt0.o 10097 # does not break anything, and helps significantly (at the cost of a little 10098 # extra space). 10099 freebsd2.2*) 10100 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10101 hardcode_libdir_flag_spec='-R$libdir' 10102 hardcode_direct=yes 10103 hardcode_shlibpath_var=no 10104 ;; 10105 10106 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10107 freebsd2.*) 10108 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10109 hardcode_direct=yes 10110 hardcode_minus_L=yes 10111 hardcode_shlibpath_var=no 10112 ;; 10113 10114 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10115 freebsd* | dragonfly*) 10116 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10117 hardcode_libdir_flag_spec='-R$libdir' 10118 hardcode_direct=yes 10119 hardcode_shlibpath_var=no 10120 ;; 10121 10122 hpux9*) 10123 if test yes = "$GCC"; then 10124 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' 10125 else 10126 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' 10127 fi 10128 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10129 hardcode_libdir_separator=: 10130 hardcode_direct=yes 10131 10132 # hardcode_minus_L: Not really in the search PATH, 10133 # but as the default location of the library. 10134 hardcode_minus_L=yes 10135 export_dynamic_flag_spec='$wl-E' 10136 ;; 10137 10138 hpux10*) 10139 if test yes,no = "$GCC,$with_gnu_ld"; then 10140 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10141 else 10142 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10143 fi 10144 if test no = "$with_gnu_ld"; then 10145 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10146 hardcode_libdir_separator=: 10147 hardcode_direct=yes 10148 hardcode_direct_absolute=yes 10149 export_dynamic_flag_spec='$wl-E' 10150 # hardcode_minus_L: Not really in the search PATH, 10151 # but as the default location of the library. 10152 hardcode_minus_L=yes 10153 fi 10154 ;; 10155 10156 hpux11*) 10157 if test yes,no = "$GCC,$with_gnu_ld"; then 10158 case $host_cpu in 10159 hppa*64*) 10160 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10161 ;; 10162 ia64*) 10163 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10164 ;; 10165 *) 10166 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10167 ;; 10168 esac 10169 else 10170 case $host_cpu in 10171 hppa*64*) 10172 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10173 ;; 10174 ia64*) 10175 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10176 ;; 10177 *) 10178 10179 # Older versions of the 11.00 compiler do not understand -b yet 10180 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10182$as_echo_n "checking if $CC understands -b... " >&6; } 10183if ${lt_cv_prog_compiler__b+:} false; then : 10184 $as_echo_n "(cached) " >&6 10185else 10186 lt_cv_prog_compiler__b=no 10187 save_LDFLAGS=$LDFLAGS 10188 LDFLAGS="$LDFLAGS -b" 10189 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10190 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10191 # The linker can only warn and ignore the option if not recognized 10192 # So say no if there are warnings 10193 if test -s conftest.err; then 10194 # Append any errors to the config.log. 10195 cat conftest.err 1>&5 10196 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10197 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10198 if diff conftest.exp conftest.er2 >/dev/null; then 10199 lt_cv_prog_compiler__b=yes 10200 fi 10201 else 10202 lt_cv_prog_compiler__b=yes 10203 fi 10204 fi 10205 $RM -r conftest* 10206 LDFLAGS=$save_LDFLAGS 10207 10208fi 10209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10210$as_echo "$lt_cv_prog_compiler__b" >&6; } 10211 10212if test yes = "$lt_cv_prog_compiler__b"; then 10213 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10214else 10215 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10216fi 10217 10218 ;; 10219 esac 10220 fi 10221 if test no = "$with_gnu_ld"; then 10222 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10223 hardcode_libdir_separator=: 10224 10225 case $host_cpu in 10226 hppa*64*|ia64*) 10227 hardcode_direct=no 10228 hardcode_shlibpath_var=no 10229 ;; 10230 *) 10231 hardcode_direct=yes 10232 hardcode_direct_absolute=yes 10233 export_dynamic_flag_spec='$wl-E' 10234 10235 # hardcode_minus_L: Not really in the search PATH, 10236 # but as the default location of the library. 10237 hardcode_minus_L=yes 10238 ;; 10239 esac 10240 fi 10241 ;; 10242 10243 irix5* | irix6* | nonstopux*) 10244 if test yes = "$GCC"; then 10245 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' 10246 # Try to use the -exported_symbol ld option, if it does not 10247 # work, assume that -exports_file does not work either and 10248 # implicitly export all symbols. 10249 # This should be the same for all languages, so no per-tag cache variable. 10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10251$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10252if ${lt_cv_irix_exported_symbol+:} false; then : 10253 $as_echo_n "(cached) " >&6 10254else 10255 save_LDFLAGS=$LDFLAGS 10256 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10258/* end confdefs.h. */ 10259int foo (void) { return 0; } 10260_ACEOF 10261if ac_fn_c_try_link "$LINENO"; then : 10262 lt_cv_irix_exported_symbol=yes 10263else 10264 lt_cv_irix_exported_symbol=no 10265fi 10266rm -f core conftest.err conftest.$ac_objext \ 10267 conftest$ac_exeext conftest.$ac_ext 10268 LDFLAGS=$save_LDFLAGS 10269fi 10270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10271$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10272 if test yes = "$lt_cv_irix_exported_symbol"; then 10273 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' 10274 fi 10275 else 10276 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' 10277 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' 10278 fi 10279 archive_cmds_need_lc='no' 10280 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10281 hardcode_libdir_separator=: 10282 inherit_rpath=yes 10283 link_all_deplibs=yes 10284 ;; 10285 10286 linux*) 10287 case $cc_basename in 10288 tcc*) 10289 # Fabrice Bellard et al's Tiny C Compiler 10290 ld_shlibs=yes 10291 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10292 ;; 10293 esac 10294 ;; 10295 10296 netbsd*) 10297 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10298 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10299 else 10300 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10301 fi 10302 hardcode_libdir_flag_spec='-R$libdir' 10303 hardcode_direct=yes 10304 hardcode_shlibpath_var=no 10305 ;; 10306 10307 newsos6) 10308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10309 hardcode_direct=yes 10310 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10311 hardcode_libdir_separator=: 10312 hardcode_shlibpath_var=no 10313 ;; 10314 10315 *nto* | *qnx*) 10316 ;; 10317 10318 openbsd* | bitrig*) 10319 if test -f /usr/libexec/ld.so; then 10320 hardcode_direct=yes 10321 hardcode_shlibpath_var=no 10322 hardcode_direct_absolute=yes 10323 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10324 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10325 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10326 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10327 export_dynamic_flag_spec='$wl-E' 10328 else 10329 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10330 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10331 fi 10332 else 10333 ld_shlibs=no 10334 fi 10335 ;; 10336 10337 os2*) 10338 hardcode_libdir_flag_spec='-L$libdir' 10339 hardcode_minus_L=yes 10340 allow_undefined_flag=unsupported 10341 shrext_cmds=.dll 10342 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10343 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10344 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10345 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10346 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10347 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10348 emximp -o $lib $output_objdir/$libname.def' 10349 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10350 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10351 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10352 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10353 prefix_cmds="$SED"~ 10354 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10355 prefix_cmds="$prefix_cmds -e 1d"; 10356 fi~ 10357 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10358 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10359 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10360 emximp -o $lib $output_objdir/$libname.def' 10361 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10362 enable_shared_with_static_runtimes=yes 10363 ;; 10364 10365 osf3*) 10366 if test yes = "$GCC"; then 10367 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10368 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' 10369 else 10370 allow_undefined_flag=' -expect_unresolved \*' 10371 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' 10372 fi 10373 archive_cmds_need_lc='no' 10374 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10375 hardcode_libdir_separator=: 10376 ;; 10377 10378 osf4* | osf5*) # as osf3* with the addition of -msym flag 10379 if test yes = "$GCC"; then 10380 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10381 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' 10382 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10383 else 10384 allow_undefined_flag=' -expect_unresolved \*' 10385 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' 10386 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~ 10387 $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' 10388 10389 # Both c and cxx compiler support -rpath directly 10390 hardcode_libdir_flag_spec='-rpath $libdir' 10391 fi 10392 archive_cmds_need_lc='no' 10393 hardcode_libdir_separator=: 10394 ;; 10395 10396 solaris*) 10397 no_undefined_flag=' -z defs' 10398 if test yes = "$GCC"; then 10399 wlarc='$wl' 10400 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10401 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10402 $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' 10403 else 10404 case `$CC -V 2>&1` in 10405 *"Compilers 5.0"*) 10406 wlarc='' 10407 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10408 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10409 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10410 ;; 10411 *) 10412 wlarc='$wl' 10413 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10414 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10415 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10416 ;; 10417 esac 10418 fi 10419 hardcode_libdir_flag_spec='-R$libdir' 10420 hardcode_shlibpath_var=no 10421 case $host_os in 10422 solaris2.[0-5] | solaris2.[0-5].*) ;; 10423 *) 10424 # The compiler driver will combine and reorder linker options, 10425 # but understands '-z linker_flag'. GCC discards it without '$wl', 10426 # but is careful enough not to reorder. 10427 # Supported since Solaris 2.6 (maybe 2.5.1?) 10428 if test yes = "$GCC"; then 10429 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10430 else 10431 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10432 fi 10433 ;; 10434 esac 10435 link_all_deplibs=yes 10436 ;; 10437 10438 sunos4*) 10439 if test sequent = "$host_vendor"; then 10440 # Use $CC to link under sequent, because it throws in some extra .o 10441 # files that make .init and .fini sections work. 10442 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10443 else 10444 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10445 fi 10446 hardcode_libdir_flag_spec='-L$libdir' 10447 hardcode_direct=yes 10448 hardcode_minus_L=yes 10449 hardcode_shlibpath_var=no 10450 ;; 10451 10452 sysv4) 10453 case $host_vendor in 10454 sni) 10455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10456 hardcode_direct=yes # is this really true??? 10457 ;; 10458 siemens) 10459 ## LD is ld it makes a PLAMLIB 10460 ## CC just makes a GrossModule. 10461 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10462 reload_cmds='$CC -r -o $output$reload_objs' 10463 hardcode_direct=no 10464 ;; 10465 motorola) 10466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10467 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10468 ;; 10469 esac 10470 runpath_var='LD_RUN_PATH' 10471 hardcode_shlibpath_var=no 10472 ;; 10473 10474 sysv4.3*) 10475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10476 hardcode_shlibpath_var=no 10477 export_dynamic_flag_spec='-Bexport' 10478 ;; 10479 10480 sysv4*MP*) 10481 if test -d /usr/nec; then 10482 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10483 hardcode_shlibpath_var=no 10484 runpath_var=LD_RUN_PATH 10485 hardcode_runpath_var=yes 10486 ld_shlibs=yes 10487 fi 10488 ;; 10489 10490 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10491 no_undefined_flag='$wl-z,text' 10492 archive_cmds_need_lc=no 10493 hardcode_shlibpath_var=no 10494 runpath_var='LD_RUN_PATH' 10495 10496 if test yes = "$GCC"; then 10497 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10498 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10499 else 10500 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10501 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10502 fi 10503 ;; 10504 10505 sysv5* | sco3.2v5* | sco5v6*) 10506 # Note: We CANNOT use -z defs as we might desire, because we do not 10507 # link with -lc, and that would cause any symbols used from libc to 10508 # always be unresolved, which means just about no library would 10509 # ever link correctly. If we're not using GNU ld we use -z text 10510 # though, which does catch some bad symbols but isn't as heavy-handed 10511 # as -z defs. 10512 no_undefined_flag='$wl-z,text' 10513 allow_undefined_flag='$wl-z,nodefs' 10514 archive_cmds_need_lc=no 10515 hardcode_shlibpath_var=no 10516 hardcode_libdir_flag_spec='$wl-R,$libdir' 10517 hardcode_libdir_separator=':' 10518 link_all_deplibs=yes 10519 export_dynamic_flag_spec='$wl-Bexport' 10520 runpath_var='LD_RUN_PATH' 10521 10522 if test yes = "$GCC"; then 10523 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10524 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10525 else 10526 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10527 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10528 fi 10529 ;; 10530 10531 uts4*) 10532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10533 hardcode_libdir_flag_spec='-L$libdir' 10534 hardcode_shlibpath_var=no 10535 ;; 10536 10537 *) 10538 ld_shlibs=no 10539 ;; 10540 esac 10541 10542 if test sni = "$host_vendor"; then 10543 case $host in 10544 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10545 export_dynamic_flag_spec='$wl-Blargedynsym' 10546 ;; 10547 esac 10548 fi 10549 fi 10550 10551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10552$as_echo "$ld_shlibs" >&6; } 10553test no = "$ld_shlibs" && can_build_shared=no 10554 10555with_gnu_ld=$with_gnu_ld 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571# 10572# Do we need to explicitly link libc? 10573# 10574case "x$archive_cmds_need_lc" in 10575x|xyes) 10576 # Assume -lc should be added 10577 archive_cmds_need_lc=yes 10578 10579 if test yes,yes = "$GCC,$enable_shared"; then 10580 case $archive_cmds in 10581 *'~'*) 10582 # FIXME: we may have to deal with multi-command sequences. 10583 ;; 10584 '$CC '*) 10585 # Test whether the compiler implicitly links with -lc since on some 10586 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10587 # to ld, don't add -lc before -lgcc. 10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10589$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10590if ${lt_cv_archive_cmds_need_lc+:} false; then : 10591 $as_echo_n "(cached) " >&6 10592else 10593 $RM conftest* 10594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10595 10596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10597 (eval $ac_compile) 2>&5 10598 ac_status=$? 10599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10600 test $ac_status = 0; } 2>conftest.err; then 10601 soname=conftest 10602 lib=conftest 10603 libobjs=conftest.$ac_objext 10604 deplibs= 10605 wl=$lt_prog_compiler_wl 10606 pic_flag=$lt_prog_compiler_pic 10607 compiler_flags=-v 10608 linker_flags=-v 10609 verstring= 10610 output_objdir=. 10611 libname=conftest 10612 lt_save_allow_undefined_flag=$allow_undefined_flag 10613 allow_undefined_flag= 10614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10615 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10616 ac_status=$? 10617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10618 test $ac_status = 0; } 10619 then 10620 lt_cv_archive_cmds_need_lc=no 10621 else 10622 lt_cv_archive_cmds_need_lc=yes 10623 fi 10624 allow_undefined_flag=$lt_save_allow_undefined_flag 10625 else 10626 cat conftest.err 1>&5 10627 fi 10628 $RM conftest* 10629 10630fi 10631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10632$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10633 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10634 ;; 10635 esac 10636 fi 10637 ;; 10638esac 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10792$as_echo_n "checking dynamic linker characteristics... " >&6; } 10793 10794if test yes = "$GCC"; then 10795 case $host_os in 10796 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10797 *) lt_awk_arg='/^libraries:/' ;; 10798 esac 10799 case $host_os in 10800 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10801 *) lt_sed_strip_eq='s|=/|/|g' ;; 10802 esac 10803 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10804 case $lt_search_path_spec in 10805 *\;*) 10806 # if the path contains ";" then we assume it to be the separator 10807 # otherwise default to the standard path separator (i.e. ":") - it is 10808 # assumed that no part of a normal pathname contains ";" but that should 10809 # okay in the real world where ";" in dirpaths is itself problematic. 10810 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10811 ;; 10812 *) 10813 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10814 ;; 10815 esac 10816 # Ok, now we have the path, separated by spaces, we can step through it 10817 # and add multilib dir if necessary... 10818 lt_tmp_lt_search_path_spec= 10819 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10820 # ...but if some path component already ends with the multilib dir we assume 10821 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10822 case "$lt_multi_os_dir; $lt_search_path_spec " in 10823 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10824 lt_multi_os_dir= 10825 ;; 10826 esac 10827 for lt_sys_path in $lt_search_path_spec; do 10828 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10829 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10830 elif test -n "$lt_multi_os_dir"; then 10831 test -d "$lt_sys_path" && \ 10832 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10833 fi 10834 done 10835 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10836BEGIN {RS = " "; FS = "/|\n";} { 10837 lt_foo = ""; 10838 lt_count = 0; 10839 for (lt_i = NF; lt_i > 0; lt_i--) { 10840 if ($lt_i != "" && $lt_i != ".") { 10841 if ($lt_i == "..") { 10842 lt_count++; 10843 } else { 10844 if (lt_count == 0) { 10845 lt_foo = "/" $lt_i lt_foo; 10846 } else { 10847 lt_count--; 10848 } 10849 } 10850 } 10851 } 10852 if (lt_foo != "") { lt_freq[lt_foo]++; } 10853 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10854}'` 10855 # AWK program above erroneously prepends '/' to C:/dos/paths 10856 # for these hosts. 10857 case $host_os in 10858 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10859 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10860 esac 10861 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10862else 10863 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10864fi 10865library_names_spec= 10866libname_spec='lib$name' 10867soname_spec= 10868shrext_cmds=.so 10869postinstall_cmds= 10870postuninstall_cmds= 10871finish_cmds= 10872finish_eval= 10873shlibpath_var= 10874shlibpath_overrides_runpath=unknown 10875version_type=none 10876dynamic_linker="$host_os ld.so" 10877sys_lib_dlsearch_path_spec="/lib /usr/lib" 10878need_lib_prefix=unknown 10879hardcode_into_libs=no 10880 10881# when you set need_version to no, make sure it does not cause -set_version 10882# flags to be left without arguments 10883need_version=unknown 10884 10885 10886 10887case $host_os in 10888aix3*) 10889 version_type=linux # correct to gnu/linux during the next big refactor 10890 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10891 shlibpath_var=LIBPATH 10892 10893 # AIX 3 has no versioning support, so we append a major version to the name. 10894 soname_spec='$libname$release$shared_ext$major' 10895 ;; 10896 10897aix[4-9]*) 10898 version_type=linux # correct to gnu/linux during the next big refactor 10899 need_lib_prefix=no 10900 need_version=no 10901 hardcode_into_libs=yes 10902 if test ia64 = "$host_cpu"; then 10903 # AIX 5 supports IA64 10904 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10905 shlibpath_var=LD_LIBRARY_PATH 10906 else 10907 # With GCC up to 2.95.x, collect2 would create an import file 10908 # for dependence libraries. The import file would start with 10909 # the line '#! .'. This would cause the generated library to 10910 # depend on '.', always an invalid library. This was fixed in 10911 # development snapshots of GCC prior to 3.0. 10912 case $host_os in 10913 aix4 | aix4.[01] | aix4.[01].*) 10914 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10915 echo ' yes ' 10916 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10917 : 10918 else 10919 can_build_shared=no 10920 fi 10921 ;; 10922 esac 10923 # Using Import Files as archive members, it is possible to support 10924 # filename-based versioning of shared library archives on AIX. While 10925 # this would work for both with and without runtime linking, it will 10926 # prevent static linking of such archives. So we do filename-based 10927 # shared library versioning with .so extension only, which is used 10928 # when both runtime linking and shared linking is enabled. 10929 # Unfortunately, runtime linking may impact performance, so we do 10930 # not want this to be the default eventually. Also, we use the 10931 # versioned .so libs for executables only if there is the -brtl 10932 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10933 # To allow for filename-based versioning support, we need to create 10934 # libNAME.so.V as an archive file, containing: 10935 # *) an Import File, referring to the versioned filename of the 10936 # archive as well as the shared archive member, telling the 10937 # bitwidth (32 or 64) of that shared object, and providing the 10938 # list of exported symbols of that shared object, eventually 10939 # decorated with the 'weak' keyword 10940 # *) the shared object with the F_LOADONLY flag set, to really avoid 10941 # it being seen by the linker. 10942 # At run time we better use the real file rather than another symlink, 10943 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10944 10945 case $with_aix_soname,$aix_use_runtimelinking in 10946 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10947 # soname into executable. Probably we can add versioning support to 10948 # collect2, so additional links can be useful in future. 10949 aix,yes) # traditional libtool 10950 dynamic_linker='AIX unversionable lib.so' 10951 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10952 # instead of lib<name>.a to let people know that these are not 10953 # typical AIX shared libraries. 10954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10955 ;; 10956 aix,no) # traditional AIX only 10957 dynamic_linker='AIX lib.a(lib.so.V)' 10958 # We preserve .a as extension for shared libraries through AIX4.2 10959 # and later when we are not doing run time linking. 10960 library_names_spec='$libname$release.a $libname.a' 10961 soname_spec='$libname$release$shared_ext$major' 10962 ;; 10963 svr4,*) # full svr4 only 10964 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10965 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10966 # We do not specify a path in Import Files, so LIBPATH fires. 10967 shlibpath_overrides_runpath=yes 10968 ;; 10969 *,yes) # both, prefer svr4 10970 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10971 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10972 # unpreferred sharedlib libNAME.a needs extra handling 10973 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"' 10974 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"' 10975 # We do not specify a path in Import Files, so LIBPATH fires. 10976 shlibpath_overrides_runpath=yes 10977 ;; 10978 *,no) # both, prefer aix 10979 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10980 library_names_spec='$libname$release.a $libname.a' 10981 soname_spec='$libname$release$shared_ext$major' 10982 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10983 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)' 10984 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"' 10985 ;; 10986 esac 10987 shlibpath_var=LIBPATH 10988 fi 10989 ;; 10990 10991amigaos*) 10992 case $host_cpu in 10993 powerpc) 10994 # Since July 2007 AmigaOS4 officially supports .so libraries. 10995 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10997 ;; 10998 m68k) 10999 library_names_spec='$libname.ixlibrary $libname.a' 11000 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11001 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' 11002 ;; 11003 esac 11004 ;; 11005 11006beos*) 11007 library_names_spec='$libname$shared_ext' 11008 dynamic_linker="$host_os ld.so" 11009 shlibpath_var=LIBRARY_PATH 11010 ;; 11011 11012bsdi[45]*) 11013 version_type=linux # correct to gnu/linux during the next big refactor 11014 need_version=no 11015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11016 soname_spec='$libname$release$shared_ext$major' 11017 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11018 shlibpath_var=LD_LIBRARY_PATH 11019 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11020 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11021 # the default ld.so.conf also contains /usr/contrib/lib and 11022 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11023 # libtool to hard-code these into programs 11024 ;; 11025 11026cygwin* | mingw* | pw32* | cegcc*) 11027 version_type=windows 11028 shrext_cmds=.dll 11029 need_version=no 11030 need_lib_prefix=no 11031 11032 case $GCC,$cc_basename in 11033 yes,*) 11034 # gcc 11035 library_names_spec='$libname.dll.a' 11036 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11037 postinstall_cmds='base_file=`basename \$file`~ 11038 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11039 dldir=$destdir/`dirname \$dlpath`~ 11040 test -d \$dldir || mkdir -p \$dldir~ 11041 $install_prog $dir/$dlname \$dldir/$dlname~ 11042 chmod a+x \$dldir/$dlname~ 11043 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11044 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11045 fi' 11046 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11047 dlpath=$dir/\$dldll~ 11048 $RM \$dlpath' 11049 shlibpath_overrides_runpath=yes 11050 11051 case $host_os in 11052 cygwin*) 11053 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11054 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11055 11056 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11057 ;; 11058 mingw* | cegcc*) 11059 # MinGW DLLs use traditional 'lib' prefix 11060 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11061 ;; 11062 pw32*) 11063 # pw32 DLLs use 'pw' prefix rather than 'lib' 11064 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11065 ;; 11066 esac 11067 dynamic_linker='Win32 ld.exe' 11068 ;; 11069 11070 *,cl*) 11071 # Native MSVC 11072 libname_spec='$name' 11073 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11074 library_names_spec='$libname.dll.lib' 11075 11076 case $build_os in 11077 mingw*) 11078 sys_lib_search_path_spec= 11079 lt_save_ifs=$IFS 11080 IFS=';' 11081 for lt_path in $LIB 11082 do 11083 IFS=$lt_save_ifs 11084 # Let DOS variable expansion print the short 8.3 style file name. 11085 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11086 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11087 done 11088 IFS=$lt_save_ifs 11089 # Convert to MSYS style. 11090 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11091 ;; 11092 cygwin*) 11093 # Convert to unix form, then to dos form, then back to unix form 11094 # but this time dos style (no spaces!) so that the unix form looks 11095 # like /cygdrive/c/PROGRA~1:/cygdr... 11096 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11097 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11098 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11099 ;; 11100 *) 11101 sys_lib_search_path_spec=$LIB 11102 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11103 # It is most probably a Windows format PATH. 11104 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11105 else 11106 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11107 fi 11108 # FIXME: find the short name or the path components, as spaces are 11109 # common. (e.g. "Program Files" -> "PROGRA~1") 11110 ;; 11111 esac 11112 11113 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11114 postinstall_cmds='base_file=`basename \$file`~ 11115 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11116 dldir=$destdir/`dirname \$dlpath`~ 11117 test -d \$dldir || mkdir -p \$dldir~ 11118 $install_prog $dir/$dlname \$dldir/$dlname' 11119 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11120 dlpath=$dir/\$dldll~ 11121 $RM \$dlpath' 11122 shlibpath_overrides_runpath=yes 11123 dynamic_linker='Win32 link.exe' 11124 ;; 11125 11126 *) 11127 # Assume MSVC wrapper 11128 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11129 dynamic_linker='Win32 ld.exe' 11130 ;; 11131 esac 11132 # FIXME: first we should search . and the directory the executable is in 11133 shlibpath_var=PATH 11134 ;; 11135 11136darwin* | rhapsody*) 11137 dynamic_linker="$host_os dyld" 11138 version_type=darwin 11139 need_lib_prefix=no 11140 need_version=no 11141 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11142 soname_spec='$libname$release$major$shared_ext' 11143 shlibpath_overrides_runpath=yes 11144 shlibpath_var=DYLD_LIBRARY_PATH 11145 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11146 11147 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11148 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11149 ;; 11150 11151dgux*) 11152 version_type=linux # correct to gnu/linux during the next big refactor 11153 need_lib_prefix=no 11154 need_version=no 11155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11156 soname_spec='$libname$release$shared_ext$major' 11157 shlibpath_var=LD_LIBRARY_PATH 11158 ;; 11159 11160freebsd* | dragonfly*) 11161 # DragonFly does not have aout. When/if they implement a new 11162 # versioning mechanism, adjust this. 11163 if test -x /usr/bin/objformat; then 11164 objformat=`/usr/bin/objformat` 11165 else 11166 case $host_os in 11167 freebsd[23].*) objformat=aout ;; 11168 *) objformat=elf ;; 11169 esac 11170 fi 11171 # Handle Gentoo/FreeBSD as it was Linux 11172 case $host_vendor in 11173 gentoo) 11174 version_type=linux ;; 11175 *) 11176 version_type=freebsd-$objformat ;; 11177 esac 11178 11179 case $version_type in 11180 freebsd-elf*) 11181 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11182 soname_spec='$libname$release$shared_ext$major' 11183 need_version=no 11184 need_lib_prefix=no 11185 ;; 11186 freebsd-*) 11187 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11188 need_version=yes 11189 ;; 11190 linux) 11191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11192 soname_spec='${libname}${release}${shared_ext}$major' 11193 need_lib_prefix=no 11194 need_version=no 11195 ;; 11196 esac 11197 shlibpath_var=LD_LIBRARY_PATH 11198 case $host_os in 11199 freebsd2.*) 11200 shlibpath_overrides_runpath=yes 11201 ;; 11202 freebsd3.[01]* | freebsdelf3.[01]*) 11203 shlibpath_overrides_runpath=yes 11204 hardcode_into_libs=yes 11205 ;; 11206 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11207 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11208 shlibpath_overrides_runpath=no 11209 hardcode_into_libs=yes 11210 ;; 11211 *) # from 4.6 on, and DragonFly 11212 shlibpath_overrides_runpath=yes 11213 hardcode_into_libs=yes 11214 ;; 11215 esac 11216 ;; 11217 11218haiku*) 11219 version_type=linux # correct to gnu/linux during the next big refactor 11220 need_lib_prefix=no 11221 need_version=no 11222 dynamic_linker="$host_os runtime_loader" 11223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11224 soname_spec='$libname$release$shared_ext$major' 11225 shlibpath_var=LIBRARY_PATH 11226 shlibpath_overrides_runpath=no 11227 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11228 hardcode_into_libs=yes 11229 ;; 11230 11231hpux9* | hpux10* | hpux11*) 11232 # Give a soname corresponding to the major version so that dld.sl refuses to 11233 # link against other versions. 11234 version_type=sunos 11235 need_lib_prefix=no 11236 need_version=no 11237 case $host_cpu in 11238 ia64*) 11239 shrext_cmds='.so' 11240 hardcode_into_libs=yes 11241 dynamic_linker="$host_os dld.so" 11242 shlibpath_var=LD_LIBRARY_PATH 11243 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11244 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11245 soname_spec='$libname$release$shared_ext$major' 11246 if test 32 = "$HPUX_IA64_MODE"; then 11247 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11248 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11249 else 11250 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11251 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11252 fi 11253 ;; 11254 hppa*64*) 11255 shrext_cmds='.sl' 11256 hardcode_into_libs=yes 11257 dynamic_linker="$host_os dld.sl" 11258 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11259 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11261 soname_spec='$libname$release$shared_ext$major' 11262 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11264 ;; 11265 *) 11266 shrext_cmds='.sl' 11267 dynamic_linker="$host_os dld.sl" 11268 shlibpath_var=SHLIB_PATH 11269 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11271 soname_spec='$libname$release$shared_ext$major' 11272 ;; 11273 esac 11274 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11275 postinstall_cmds='chmod 555 $lib' 11276 # or fails outright, so override atomically: 11277 install_override_mode=555 11278 ;; 11279 11280interix[3-9]*) 11281 version_type=linux # correct to gnu/linux during the next big refactor 11282 need_lib_prefix=no 11283 need_version=no 11284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11285 soname_spec='$libname$release$shared_ext$major' 11286 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11287 shlibpath_var=LD_LIBRARY_PATH 11288 shlibpath_overrides_runpath=no 11289 hardcode_into_libs=yes 11290 ;; 11291 11292irix5* | irix6* | nonstopux*) 11293 case $host_os in 11294 nonstopux*) version_type=nonstopux ;; 11295 *) 11296 if test yes = "$lt_cv_prog_gnu_ld"; then 11297 version_type=linux # correct to gnu/linux during the next big refactor 11298 else 11299 version_type=irix 11300 fi ;; 11301 esac 11302 need_lib_prefix=no 11303 need_version=no 11304 soname_spec='$libname$release$shared_ext$major' 11305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11306 case $host_os in 11307 irix5* | nonstopux*) 11308 libsuff= shlibsuff= 11309 ;; 11310 *) 11311 case $LD in # libtool.m4 will add one of these switches to LD 11312 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11313 libsuff= shlibsuff= libmagic=32-bit;; 11314 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11315 libsuff=32 shlibsuff=N32 libmagic=N32;; 11316 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11317 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11318 *) libsuff= shlibsuff= libmagic=never-match;; 11319 esac 11320 ;; 11321 esac 11322 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11323 shlibpath_overrides_runpath=no 11324 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11325 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11326 hardcode_into_libs=yes 11327 ;; 11328 11329# No shared lib support for Linux oldld, aout, or coff. 11330linux*oldld* | linux*aout* | linux*coff*) 11331 dynamic_linker=no 11332 ;; 11333 11334linux*android*) 11335 version_type=none # Android doesn't support versioned libraries. 11336 need_lib_prefix=no 11337 need_version=no 11338 library_names_spec='$libname$release$shared_ext' 11339 soname_spec='$libname$release$shared_ext' 11340 finish_cmds= 11341 shlibpath_var=LD_LIBRARY_PATH 11342 shlibpath_overrides_runpath=yes 11343 11344 # This implies no fast_install, which is unacceptable. 11345 # Some rework will be needed to allow for fast_install 11346 # before this can be enabled. 11347 hardcode_into_libs=yes 11348 11349 dynamic_linker='Android linker' 11350 # Don't embed -rpath directories since the linker doesn't support them. 11351 hardcode_libdir_flag_spec='-L$libdir' 11352 ;; 11353 11354# This must be glibc/ELF. 11355linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11356 version_type=linux # correct to gnu/linux during the next big refactor 11357 need_lib_prefix=no 11358 need_version=no 11359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11360 soname_spec='$libname$release$shared_ext$major' 11361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11362 shlibpath_var=LD_LIBRARY_PATH 11363 shlibpath_overrides_runpath=no 11364 11365 # Some binutils ld are patched to set DT_RUNPATH 11366 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11367 $as_echo_n "(cached) " >&6 11368else 11369 lt_cv_shlibpath_overrides_runpath=no 11370 save_LDFLAGS=$LDFLAGS 11371 save_libdir=$libdir 11372 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11373 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11375/* end confdefs.h. */ 11376 11377int 11378main () 11379{ 11380 11381 ; 11382 return 0; 11383} 11384_ACEOF 11385if ac_fn_c_try_link "$LINENO"; then : 11386 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11387 lt_cv_shlibpath_overrides_runpath=yes 11388fi 11389fi 11390rm -f core conftest.err conftest.$ac_objext \ 11391 conftest$ac_exeext conftest.$ac_ext 11392 LDFLAGS=$save_LDFLAGS 11393 libdir=$save_libdir 11394 11395fi 11396 11397 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11398 11399 # This implies no fast_install, which is unacceptable. 11400 # Some rework will be needed to allow for fast_install 11401 # before this can be enabled. 11402 hardcode_into_libs=yes 11403 11404 # Ideally, we could use ldconfig to report *all* directores which are 11405 # searched for libraries, however this is still not possible. Aside from not 11406 # being certain /sbin/ldconfig is available, command 11407 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11408 # even though it is searched at run-time. Try to do the best guess by 11409 # appending ld.so.conf contents (and includes) to the search path. 11410 if test -f /etc/ld.so.conf; then 11411 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' ' '` 11412 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11413 fi 11414 11415 # We used to test for /lib/ld.so.1 and disable shared libraries on 11416 # powerpc, because MkLinux only supported shared libraries with the 11417 # GNU dynamic linker. Since this was broken with cross compilers, 11418 # most powerpc-linux boxes support dynamic linking these days and 11419 # people can always --disable-shared, the test was removed, and we 11420 # assume the GNU/Linux dynamic linker is in use. 11421 dynamic_linker='GNU/Linux ld.so' 11422 ;; 11423 11424netbsd*) 11425 version_type=sunos 11426 need_lib_prefix=no 11427 need_version=no 11428 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11429 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11431 dynamic_linker='NetBSD (a.out) ld.so' 11432 else 11433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11434 soname_spec='$libname$release$shared_ext$major' 11435 dynamic_linker='NetBSD ld.elf_so' 11436 fi 11437 shlibpath_var=LD_LIBRARY_PATH 11438 shlibpath_overrides_runpath=yes 11439 hardcode_into_libs=yes 11440 ;; 11441 11442newsos6) 11443 version_type=linux # correct to gnu/linux during the next big refactor 11444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11445 shlibpath_var=LD_LIBRARY_PATH 11446 shlibpath_overrides_runpath=yes 11447 ;; 11448 11449*nto* | *qnx*) 11450 version_type=qnx 11451 need_lib_prefix=no 11452 need_version=no 11453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11454 soname_spec='$libname$release$shared_ext$major' 11455 shlibpath_var=LD_LIBRARY_PATH 11456 shlibpath_overrides_runpath=no 11457 hardcode_into_libs=yes 11458 dynamic_linker='ldqnx.so' 11459 ;; 11460 11461openbsd* | bitrig*) 11462 version_type=sunos 11463 sys_lib_dlsearch_path_spec=/usr/lib 11464 need_lib_prefix=no 11465 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11466 need_version=no 11467 else 11468 need_version=yes 11469 fi 11470 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11472 shlibpath_var=LD_LIBRARY_PATH 11473 shlibpath_overrides_runpath=yes 11474 ;; 11475 11476os2*) 11477 libname_spec='$name' 11478 version_type=windows 11479 shrext_cmds=.dll 11480 need_version=no 11481 need_lib_prefix=no 11482 # OS/2 can only load a DLL with a base name of 8 characters or less. 11483 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11484 v=$($ECHO $release$versuffix | tr -d .-); 11485 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11486 $ECHO $n$v`$shared_ext' 11487 library_names_spec='${libname}_dll.$libext' 11488 dynamic_linker='OS/2 ld.exe' 11489 shlibpath_var=BEGINLIBPATH 11490 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11491 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11492 postinstall_cmds='base_file=`basename \$file`~ 11493 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11494 dldir=$destdir/`dirname \$dlpath`~ 11495 test -d \$dldir || mkdir -p \$dldir~ 11496 $install_prog $dir/$dlname \$dldir/$dlname~ 11497 chmod a+x \$dldir/$dlname~ 11498 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11499 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11500 fi' 11501 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11502 dlpath=$dir/\$dldll~ 11503 $RM \$dlpath' 11504 ;; 11505 11506osf3* | osf4* | osf5*) 11507 version_type=osf 11508 need_lib_prefix=no 11509 need_version=no 11510 soname_spec='$libname$release$shared_ext$major' 11511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11512 shlibpath_var=LD_LIBRARY_PATH 11513 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11514 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11515 ;; 11516 11517rdos*) 11518 dynamic_linker=no 11519 ;; 11520 11521solaris*) 11522 version_type=linux # correct to gnu/linux during the next big refactor 11523 need_lib_prefix=no 11524 need_version=no 11525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11526 soname_spec='$libname$release$shared_ext$major' 11527 shlibpath_var=LD_LIBRARY_PATH 11528 shlibpath_overrides_runpath=yes 11529 hardcode_into_libs=yes 11530 # ldd complains unless libraries are executable 11531 postinstall_cmds='chmod +x $lib' 11532 ;; 11533 11534sunos4*) 11535 version_type=sunos 11536 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11537 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11538 shlibpath_var=LD_LIBRARY_PATH 11539 shlibpath_overrides_runpath=yes 11540 if test yes = "$with_gnu_ld"; then 11541 need_lib_prefix=no 11542 fi 11543 need_version=yes 11544 ;; 11545 11546sysv4 | sysv4.3*) 11547 version_type=linux # correct to gnu/linux during the next big refactor 11548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11549 soname_spec='$libname$release$shared_ext$major' 11550 shlibpath_var=LD_LIBRARY_PATH 11551 case $host_vendor in 11552 sni) 11553 shlibpath_overrides_runpath=no 11554 need_lib_prefix=no 11555 runpath_var=LD_RUN_PATH 11556 ;; 11557 siemens) 11558 need_lib_prefix=no 11559 ;; 11560 motorola) 11561 need_lib_prefix=no 11562 need_version=no 11563 shlibpath_overrides_runpath=no 11564 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11565 ;; 11566 esac 11567 ;; 11568 11569sysv4*MP*) 11570 if test -d /usr/nec; then 11571 version_type=linux # correct to gnu/linux during the next big refactor 11572 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11573 soname_spec='$libname$shared_ext.$major' 11574 shlibpath_var=LD_LIBRARY_PATH 11575 fi 11576 ;; 11577 11578sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11579 version_type=sco 11580 need_lib_prefix=no 11581 need_version=no 11582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11583 soname_spec='$libname$release$shared_ext$major' 11584 shlibpath_var=LD_LIBRARY_PATH 11585 shlibpath_overrides_runpath=yes 11586 hardcode_into_libs=yes 11587 if test yes = "$with_gnu_ld"; then 11588 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11589 else 11590 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11591 case $host_os in 11592 sco3.2v5*) 11593 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11594 ;; 11595 esac 11596 fi 11597 sys_lib_dlsearch_path_spec='/usr/lib' 11598 ;; 11599 11600tpf*) 11601 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11602 version_type=linux # correct to gnu/linux during the next big refactor 11603 need_lib_prefix=no 11604 need_version=no 11605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11606 shlibpath_var=LD_LIBRARY_PATH 11607 shlibpath_overrides_runpath=no 11608 hardcode_into_libs=yes 11609 ;; 11610 11611uts4*) 11612 version_type=linux # correct to gnu/linux during the next big refactor 11613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11614 soname_spec='$libname$release$shared_ext$major' 11615 shlibpath_var=LD_LIBRARY_PATH 11616 ;; 11617 11618*) 11619 dynamic_linker=no 11620 ;; 11621esac 11622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11623$as_echo "$dynamic_linker" >&6; } 11624test no = "$dynamic_linker" && can_build_shared=no 11625 11626variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11627if test yes = "$GCC"; then 11628 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11629fi 11630 11631if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11632 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11633fi 11634 11635if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11636 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11637fi 11638 11639# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11640configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11641 11642# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11643func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11644 11645# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11646configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11745$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11746hardcode_action= 11747if test -n "$hardcode_libdir_flag_spec" || 11748 test -n "$runpath_var" || 11749 test yes = "$hardcode_automatic"; then 11750 11751 # We can hardcode non-existent directories. 11752 if test no != "$hardcode_direct" && 11753 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11754 # have to relink, otherwise we might link with an installed library 11755 # when we should be linking with a yet-to-be-installed one 11756 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11757 test no != "$hardcode_minus_L"; then 11758 # Linking always hardcodes the temporary library directory. 11759 hardcode_action=relink 11760 else 11761 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11762 hardcode_action=immediate 11763 fi 11764else 11765 # We cannot hardcode anything, or else we can only hardcode existing 11766 # directories. 11767 hardcode_action=unsupported 11768fi 11769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11770$as_echo "$hardcode_action" >&6; } 11771 11772if test relink = "$hardcode_action" || 11773 test yes = "$inherit_rpath"; then 11774 # Fast installation is not supported 11775 enable_fast_install=no 11776elif test yes = "$shlibpath_overrides_runpath" || 11777 test no = "$enable_shared"; then 11778 # Fast installation is not necessary 11779 enable_fast_install=needless 11780fi 11781 11782 11783 11784 11785 11786 11787 if test yes != "$enable_dlopen"; then 11788 enable_dlopen=unknown 11789 enable_dlopen_self=unknown 11790 enable_dlopen_self_static=unknown 11791else 11792 lt_cv_dlopen=no 11793 lt_cv_dlopen_libs= 11794 11795 case $host_os in 11796 beos*) 11797 lt_cv_dlopen=load_add_on 11798 lt_cv_dlopen_libs= 11799 lt_cv_dlopen_self=yes 11800 ;; 11801 11802 mingw* | pw32* | cegcc*) 11803 lt_cv_dlopen=LoadLibrary 11804 lt_cv_dlopen_libs= 11805 ;; 11806 11807 cygwin*) 11808 lt_cv_dlopen=dlopen 11809 lt_cv_dlopen_libs= 11810 ;; 11811 11812 darwin*) 11813 # if libdl is installed we need to link against it 11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11815$as_echo_n "checking for dlopen in -ldl... " >&6; } 11816if ${ac_cv_lib_dl_dlopen+:} false; then : 11817 $as_echo_n "(cached) " >&6 11818else 11819 ac_check_lib_save_LIBS=$LIBS 11820LIBS="-ldl $LIBS" 11821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11822/* end confdefs.h. */ 11823 11824/* Override any GCC internal prototype to avoid an error. 11825 Use char because int might match the return type of a GCC 11826 builtin and then its argument prototype would still apply. */ 11827#ifdef __cplusplus 11828extern "C" 11829#endif 11830char dlopen (); 11831int 11832main () 11833{ 11834return dlopen (); 11835 ; 11836 return 0; 11837} 11838_ACEOF 11839if ac_fn_c_try_link "$LINENO"; then : 11840 ac_cv_lib_dl_dlopen=yes 11841else 11842 ac_cv_lib_dl_dlopen=no 11843fi 11844rm -f core conftest.err conftest.$ac_objext \ 11845 conftest$ac_exeext conftest.$ac_ext 11846LIBS=$ac_check_lib_save_LIBS 11847fi 11848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11849$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11850if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11851 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11852else 11853 11854 lt_cv_dlopen=dyld 11855 lt_cv_dlopen_libs= 11856 lt_cv_dlopen_self=yes 11857 11858fi 11859 11860 ;; 11861 11862 tpf*) 11863 # Don't try to run any link tests for TPF. We know it's impossible 11864 # because TPF is a cross-compiler, and we know how we open DSOs. 11865 lt_cv_dlopen=dlopen 11866 lt_cv_dlopen_libs= 11867 lt_cv_dlopen_self=no 11868 ;; 11869 11870 *) 11871 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11872if test "x$ac_cv_func_shl_load" = xyes; then : 11873 lt_cv_dlopen=shl_load 11874else 11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11876$as_echo_n "checking for shl_load in -ldld... " >&6; } 11877if ${ac_cv_lib_dld_shl_load+:} false; then : 11878 $as_echo_n "(cached) " >&6 11879else 11880 ac_check_lib_save_LIBS=$LIBS 11881LIBS="-ldld $LIBS" 11882cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11883/* end confdefs.h. */ 11884 11885/* Override any GCC internal prototype to avoid an error. 11886 Use char because int might match the return type of a GCC 11887 builtin and then its argument prototype would still apply. */ 11888#ifdef __cplusplus 11889extern "C" 11890#endif 11891char shl_load (); 11892int 11893main () 11894{ 11895return shl_load (); 11896 ; 11897 return 0; 11898} 11899_ACEOF 11900if ac_fn_c_try_link "$LINENO"; then : 11901 ac_cv_lib_dld_shl_load=yes 11902else 11903 ac_cv_lib_dld_shl_load=no 11904fi 11905rm -f core conftest.err conftest.$ac_objext \ 11906 conftest$ac_exeext conftest.$ac_ext 11907LIBS=$ac_check_lib_save_LIBS 11908fi 11909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11910$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11911if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11912 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11913else 11914 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11915if test "x$ac_cv_func_dlopen" = xyes; then : 11916 lt_cv_dlopen=dlopen 11917else 11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11919$as_echo_n "checking for dlopen in -ldl... " >&6; } 11920if ${ac_cv_lib_dl_dlopen+:} false; then : 11921 $as_echo_n "(cached) " >&6 11922else 11923 ac_check_lib_save_LIBS=$LIBS 11924LIBS="-ldl $LIBS" 11925cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11926/* end confdefs.h. */ 11927 11928/* Override any GCC internal prototype to avoid an error. 11929 Use char because int might match the return type of a GCC 11930 builtin and then its argument prototype would still apply. */ 11931#ifdef __cplusplus 11932extern "C" 11933#endif 11934char dlopen (); 11935int 11936main () 11937{ 11938return dlopen (); 11939 ; 11940 return 0; 11941} 11942_ACEOF 11943if ac_fn_c_try_link "$LINENO"; then : 11944 ac_cv_lib_dl_dlopen=yes 11945else 11946 ac_cv_lib_dl_dlopen=no 11947fi 11948rm -f core conftest.err conftest.$ac_objext \ 11949 conftest$ac_exeext conftest.$ac_ext 11950LIBS=$ac_check_lib_save_LIBS 11951fi 11952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11953$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11954if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11955 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11956else 11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11958$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11959if ${ac_cv_lib_svld_dlopen+:} false; then : 11960 $as_echo_n "(cached) " >&6 11961else 11962 ac_check_lib_save_LIBS=$LIBS 11963LIBS="-lsvld $LIBS" 11964cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11965/* end confdefs.h. */ 11966 11967/* Override any GCC internal prototype to avoid an error. 11968 Use char because int might match the return type of a GCC 11969 builtin and then its argument prototype would still apply. */ 11970#ifdef __cplusplus 11971extern "C" 11972#endif 11973char dlopen (); 11974int 11975main () 11976{ 11977return dlopen (); 11978 ; 11979 return 0; 11980} 11981_ACEOF 11982if ac_fn_c_try_link "$LINENO"; then : 11983 ac_cv_lib_svld_dlopen=yes 11984else 11985 ac_cv_lib_svld_dlopen=no 11986fi 11987rm -f core conftest.err conftest.$ac_objext \ 11988 conftest$ac_exeext conftest.$ac_ext 11989LIBS=$ac_check_lib_save_LIBS 11990fi 11991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11992$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11993if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11994 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11995else 11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11997$as_echo_n "checking for dld_link in -ldld... " >&6; } 11998if ${ac_cv_lib_dld_dld_link+:} false; then : 11999 $as_echo_n "(cached) " >&6 12000else 12001 ac_check_lib_save_LIBS=$LIBS 12002LIBS="-ldld $LIBS" 12003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12004/* end confdefs.h. */ 12005 12006/* Override any GCC internal prototype to avoid an error. 12007 Use char because int might match the return type of a GCC 12008 builtin and then its argument prototype would still apply. */ 12009#ifdef __cplusplus 12010extern "C" 12011#endif 12012char dld_link (); 12013int 12014main () 12015{ 12016return dld_link (); 12017 ; 12018 return 0; 12019} 12020_ACEOF 12021if ac_fn_c_try_link "$LINENO"; then : 12022 ac_cv_lib_dld_dld_link=yes 12023else 12024 ac_cv_lib_dld_dld_link=no 12025fi 12026rm -f core conftest.err conftest.$ac_objext \ 12027 conftest$ac_exeext conftest.$ac_ext 12028LIBS=$ac_check_lib_save_LIBS 12029fi 12030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12031$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12032if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12033 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12034fi 12035 12036 12037fi 12038 12039 12040fi 12041 12042 12043fi 12044 12045 12046fi 12047 12048 12049fi 12050 12051 ;; 12052 esac 12053 12054 if test no = "$lt_cv_dlopen"; then 12055 enable_dlopen=no 12056 else 12057 enable_dlopen=yes 12058 fi 12059 12060 case $lt_cv_dlopen in 12061 dlopen) 12062 save_CPPFLAGS=$CPPFLAGS 12063 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12064 12065 save_LDFLAGS=$LDFLAGS 12066 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12067 12068 save_LIBS=$LIBS 12069 LIBS="$lt_cv_dlopen_libs $LIBS" 12070 12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12072$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12073if ${lt_cv_dlopen_self+:} false; then : 12074 $as_echo_n "(cached) " >&6 12075else 12076 if test yes = "$cross_compiling"; then : 12077 lt_cv_dlopen_self=cross 12078else 12079 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12080 lt_status=$lt_dlunknown 12081 cat > conftest.$ac_ext <<_LT_EOF 12082#line $LINENO "configure" 12083#include "confdefs.h" 12084 12085#if HAVE_DLFCN_H 12086#include <dlfcn.h> 12087#endif 12088 12089#include <stdio.h> 12090 12091#ifdef RTLD_GLOBAL 12092# define LT_DLGLOBAL RTLD_GLOBAL 12093#else 12094# ifdef DL_GLOBAL 12095# define LT_DLGLOBAL DL_GLOBAL 12096# else 12097# define LT_DLGLOBAL 0 12098# endif 12099#endif 12100 12101/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12102 find out it does not work in some platform. */ 12103#ifndef LT_DLLAZY_OR_NOW 12104# ifdef RTLD_LAZY 12105# define LT_DLLAZY_OR_NOW RTLD_LAZY 12106# else 12107# ifdef DL_LAZY 12108# define LT_DLLAZY_OR_NOW DL_LAZY 12109# else 12110# ifdef RTLD_NOW 12111# define LT_DLLAZY_OR_NOW RTLD_NOW 12112# else 12113# ifdef DL_NOW 12114# define LT_DLLAZY_OR_NOW DL_NOW 12115# else 12116# define LT_DLLAZY_OR_NOW 0 12117# endif 12118# endif 12119# endif 12120# endif 12121#endif 12122 12123/* When -fvisibility=hidden is used, assume the code has been annotated 12124 correspondingly for the symbols needed. */ 12125#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12126int fnord () __attribute__((visibility("default"))); 12127#endif 12128 12129int fnord () { return 42; } 12130int main () 12131{ 12132 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12133 int status = $lt_dlunknown; 12134 12135 if (self) 12136 { 12137 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12138 else 12139 { 12140 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12141 else puts (dlerror ()); 12142 } 12143 /* dlclose (self); */ 12144 } 12145 else 12146 puts (dlerror ()); 12147 12148 return status; 12149} 12150_LT_EOF 12151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12152 (eval $ac_link) 2>&5 12153 ac_status=$? 12154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12155 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12156 (./conftest; exit; ) >&5 2>/dev/null 12157 lt_status=$? 12158 case x$lt_status in 12159 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12160 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12161 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12162 esac 12163 else : 12164 # compilation failed 12165 lt_cv_dlopen_self=no 12166 fi 12167fi 12168rm -fr conftest* 12169 12170 12171fi 12172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12173$as_echo "$lt_cv_dlopen_self" >&6; } 12174 12175 if test yes = "$lt_cv_dlopen_self"; then 12176 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12178$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12179if ${lt_cv_dlopen_self_static+:} false; then : 12180 $as_echo_n "(cached) " >&6 12181else 12182 if test yes = "$cross_compiling"; then : 12183 lt_cv_dlopen_self_static=cross 12184else 12185 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12186 lt_status=$lt_dlunknown 12187 cat > conftest.$ac_ext <<_LT_EOF 12188#line $LINENO "configure" 12189#include "confdefs.h" 12190 12191#if HAVE_DLFCN_H 12192#include <dlfcn.h> 12193#endif 12194 12195#include <stdio.h> 12196 12197#ifdef RTLD_GLOBAL 12198# define LT_DLGLOBAL RTLD_GLOBAL 12199#else 12200# ifdef DL_GLOBAL 12201# define LT_DLGLOBAL DL_GLOBAL 12202# else 12203# define LT_DLGLOBAL 0 12204# endif 12205#endif 12206 12207/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12208 find out it does not work in some platform. */ 12209#ifndef LT_DLLAZY_OR_NOW 12210# ifdef RTLD_LAZY 12211# define LT_DLLAZY_OR_NOW RTLD_LAZY 12212# else 12213# ifdef DL_LAZY 12214# define LT_DLLAZY_OR_NOW DL_LAZY 12215# else 12216# ifdef RTLD_NOW 12217# define LT_DLLAZY_OR_NOW RTLD_NOW 12218# else 12219# ifdef DL_NOW 12220# define LT_DLLAZY_OR_NOW DL_NOW 12221# else 12222# define LT_DLLAZY_OR_NOW 0 12223# endif 12224# endif 12225# endif 12226# endif 12227#endif 12228 12229/* When -fvisibility=hidden is used, assume the code has been annotated 12230 correspondingly for the symbols needed. */ 12231#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12232int fnord () __attribute__((visibility("default"))); 12233#endif 12234 12235int fnord () { return 42; } 12236int main () 12237{ 12238 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12239 int status = $lt_dlunknown; 12240 12241 if (self) 12242 { 12243 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12244 else 12245 { 12246 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12247 else puts (dlerror ()); 12248 } 12249 /* dlclose (self); */ 12250 } 12251 else 12252 puts (dlerror ()); 12253 12254 return status; 12255} 12256_LT_EOF 12257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12258 (eval $ac_link) 2>&5 12259 ac_status=$? 12260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12261 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12262 (./conftest; exit; ) >&5 2>/dev/null 12263 lt_status=$? 12264 case x$lt_status in 12265 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12266 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12267 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12268 esac 12269 else : 12270 # compilation failed 12271 lt_cv_dlopen_self_static=no 12272 fi 12273fi 12274rm -fr conftest* 12275 12276 12277fi 12278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12279$as_echo "$lt_cv_dlopen_self_static" >&6; } 12280 fi 12281 12282 CPPFLAGS=$save_CPPFLAGS 12283 LDFLAGS=$save_LDFLAGS 12284 LIBS=$save_LIBS 12285 ;; 12286 esac 12287 12288 case $lt_cv_dlopen_self in 12289 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12290 *) enable_dlopen_self=unknown ;; 12291 esac 12292 12293 case $lt_cv_dlopen_self_static in 12294 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12295 *) enable_dlopen_self_static=unknown ;; 12296 esac 12297fi 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315striplib= 12316old_striplib= 12317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12318$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12319if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12320 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12321 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12323$as_echo "yes" >&6; } 12324else 12325# FIXME - insert some real tests, host_os isn't really good enough 12326 case $host_os in 12327 darwin*) 12328 if test -n "$STRIP"; then 12329 striplib="$STRIP -x" 12330 old_striplib="$STRIP -S" 12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12332$as_echo "yes" >&6; } 12333 else 12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12335$as_echo "no" >&6; } 12336 fi 12337 ;; 12338 *) 12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12340$as_echo "no" >&6; } 12341 ;; 12342 esac 12343fi 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 # Report what library types will actually be built 12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12358$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12360$as_echo "$can_build_shared" >&6; } 12361 12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12363$as_echo_n "checking whether to build shared libraries... " >&6; } 12364 test no = "$can_build_shared" && enable_shared=no 12365 12366 # On AIX, shared libraries and static libraries use the same namespace, and 12367 # are all built from PIC. 12368 case $host_os in 12369 aix3*) 12370 test yes = "$enable_shared" && enable_static=no 12371 if test -n "$RANLIB"; then 12372 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12373 postinstall_cmds='$RANLIB $lib' 12374 fi 12375 ;; 12376 12377 aix[4-9]*) 12378 if test ia64 != "$host_cpu"; then 12379 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12380 yes,aix,yes) ;; # shared object as lib.so file only 12381 yes,svr4,*) ;; # shared object as lib.so archive member only 12382 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12383 esac 12384 fi 12385 ;; 12386 esac 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12388$as_echo "$enable_shared" >&6; } 12389 12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12391$as_echo_n "checking whether to build static libraries... " >&6; } 12392 # Make sure either enable_shared or enable_static is yes. 12393 test yes = "$enable_shared" || enable_static=yes 12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12395$as_echo "$enable_static" >&6; } 12396 12397 12398 12399 12400fi 12401ac_ext=c 12402ac_cpp='$CPP $CPPFLAGS' 12403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12405ac_compiler_gnu=$ac_cv_c_compiler_gnu 12406 12407CC=$lt_save_CC 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 ac_config_commands="$ac_config_commands libtool" 12424 12425 12426 12427 12428# Only expand once: 12429 12430 12431 12432# Check whether --enable-largefile was given. 12433if test "${enable_largefile+set}" = set; then : 12434 enableval=$enable_largefile; 12435fi 12436 12437if test "$enable_largefile" != no; then 12438 12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12440$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12441if ${ac_cv_sys_largefile_CC+:} false; then : 12442 $as_echo_n "(cached) " >&6 12443else 12444 ac_cv_sys_largefile_CC=no 12445 if test "$GCC" != yes; then 12446 ac_save_CC=$CC 12447 while :; do 12448 # IRIX 6.2 and later do not support large files by default, 12449 # so use the C compiler's -n32 option if that helps. 12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12451/* end confdefs.h. */ 12452#include <sys/types.h> 12453 /* Check that off_t can represent 2**63 - 1 correctly. 12454 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12455 since some C++ compilers masquerading as C compilers 12456 incorrectly reject 9223372036854775807. */ 12457#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12458 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12459 && LARGE_OFF_T % 2147483647 == 1) 12460 ? 1 : -1]; 12461int 12462main () 12463{ 12464 12465 ; 12466 return 0; 12467} 12468_ACEOF 12469 if ac_fn_c_try_compile "$LINENO"; then : 12470 break 12471fi 12472rm -f core conftest.err conftest.$ac_objext 12473 CC="$CC -n32" 12474 if ac_fn_c_try_compile "$LINENO"; then : 12475 ac_cv_sys_largefile_CC=' -n32'; break 12476fi 12477rm -f core conftest.err conftest.$ac_objext 12478 break 12479 done 12480 CC=$ac_save_CC 12481 rm -f conftest.$ac_ext 12482 fi 12483fi 12484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12485$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12486 if test "$ac_cv_sys_largefile_CC" != no; then 12487 CC=$CC$ac_cv_sys_largefile_CC 12488 fi 12489 12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12491$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12492if ${ac_cv_sys_file_offset_bits+:} false; then : 12493 $as_echo_n "(cached) " >&6 12494else 12495 while :; do 12496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12497/* end confdefs.h. */ 12498#include <sys/types.h> 12499 /* Check that off_t can represent 2**63 - 1 correctly. 12500 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12501 since some C++ compilers masquerading as C compilers 12502 incorrectly reject 9223372036854775807. */ 12503#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12504 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12505 && LARGE_OFF_T % 2147483647 == 1) 12506 ? 1 : -1]; 12507int 12508main () 12509{ 12510 12511 ; 12512 return 0; 12513} 12514_ACEOF 12515if ac_fn_c_try_compile "$LINENO"; then : 12516 ac_cv_sys_file_offset_bits=no; break 12517fi 12518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12520/* end confdefs.h. */ 12521#define _FILE_OFFSET_BITS 64 12522#include <sys/types.h> 12523 /* Check that off_t can represent 2**63 - 1 correctly. 12524 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12525 since some C++ compilers masquerading as C compilers 12526 incorrectly reject 9223372036854775807. */ 12527#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12528 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12529 && LARGE_OFF_T % 2147483647 == 1) 12530 ? 1 : -1]; 12531int 12532main () 12533{ 12534 12535 ; 12536 return 0; 12537} 12538_ACEOF 12539if ac_fn_c_try_compile "$LINENO"; then : 12540 ac_cv_sys_file_offset_bits=64; break 12541fi 12542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12543 ac_cv_sys_file_offset_bits=unknown 12544 break 12545done 12546fi 12547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12548$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12549case $ac_cv_sys_file_offset_bits in #( 12550 no | unknown) ;; 12551 *) 12552cat >>confdefs.h <<_ACEOF 12553#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12554_ACEOF 12555;; 12556esac 12557rm -rf conftest* 12558 if test $ac_cv_sys_file_offset_bits = unknown; then 12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12560$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12561if ${ac_cv_sys_large_files+:} false; then : 12562 $as_echo_n "(cached) " >&6 12563else 12564 while :; do 12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12566/* end confdefs.h. */ 12567#include <sys/types.h> 12568 /* Check that off_t can represent 2**63 - 1 correctly. 12569 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12570 since some C++ compilers masquerading as C compilers 12571 incorrectly reject 9223372036854775807. */ 12572#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12573 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12574 && LARGE_OFF_T % 2147483647 == 1) 12575 ? 1 : -1]; 12576int 12577main () 12578{ 12579 12580 ; 12581 return 0; 12582} 12583_ACEOF 12584if ac_fn_c_try_compile "$LINENO"; then : 12585 ac_cv_sys_large_files=no; break 12586fi 12587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12589/* end confdefs.h. */ 12590#define _LARGE_FILES 1 12591#include <sys/types.h> 12592 /* Check that off_t can represent 2**63 - 1 correctly. 12593 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12594 since some C++ compilers masquerading as C compilers 12595 incorrectly reject 9223372036854775807. */ 12596#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12597 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12598 && LARGE_OFF_T % 2147483647 == 1) 12599 ? 1 : -1]; 12600int 12601main () 12602{ 12603 12604 ; 12605 return 0; 12606} 12607_ACEOF 12608if ac_fn_c_try_compile "$LINENO"; then : 12609 ac_cv_sys_large_files=1; break 12610fi 12611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12612 ac_cv_sys_large_files=unknown 12613 break 12614done 12615fi 12616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12617$as_echo "$ac_cv_sys_large_files" >&6; } 12618case $ac_cv_sys_large_files in #( 12619 no | unknown) ;; 12620 *) 12621cat >>confdefs.h <<_ACEOF 12622#define _LARGE_FILES $ac_cv_sys_large_files 12623_ACEOF 12624;; 12625esac 12626rm -rf conftest* 12627 fi 12628 12629 12630fi 12631 12632 12633# Require xorg-macros minimum of 1.15 for fop minimum version 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 12646$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 12647if ${ac_cv_prog_cc_c99+:} false; then : 12648 $as_echo_n "(cached) " >&6 12649else 12650 ac_cv_prog_cc_c99=no 12651ac_save_CC=$CC 12652cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12653/* end confdefs.h. */ 12654#include <stdarg.h> 12655#include <stdbool.h> 12656#include <stdlib.h> 12657#include <wchar.h> 12658#include <stdio.h> 12659 12660// Check varargs macros. These examples are taken from C99 6.10.3.5. 12661#define debug(...) fprintf (stderr, __VA_ARGS__) 12662#define showlist(...) puts (#__VA_ARGS__) 12663#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12664static void 12665test_varargs_macros (void) 12666{ 12667 int x = 1234; 12668 int y = 5678; 12669 debug ("Flag"); 12670 debug ("X = %d\n", x); 12671 showlist (The first, second, and third items.); 12672 report (x>y, "x is %d but y is %d", x, y); 12673} 12674 12675// Check long long types. 12676#define BIG64 18446744073709551615ull 12677#define BIG32 4294967295ul 12678#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12679#if !BIG_OK 12680 your preprocessor is broken; 12681#endif 12682#if BIG_OK 12683#else 12684 your preprocessor is broken; 12685#endif 12686static long long int bignum = -9223372036854775807LL; 12687static unsigned long long int ubignum = BIG64; 12688 12689struct incomplete_array 12690{ 12691 int datasize; 12692 double data[]; 12693}; 12694 12695struct named_init { 12696 int number; 12697 const wchar_t *name; 12698 double average; 12699}; 12700 12701typedef const char *ccp; 12702 12703static inline int 12704test_restrict (ccp restrict text) 12705{ 12706 // See if C++-style comments work. 12707 // Iterate through items via the restricted pointer. 12708 // Also check for declarations in for loops. 12709 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12710 continue; 12711 return 0; 12712} 12713 12714// Check varargs and va_copy. 12715static void 12716test_varargs (const char *format, ...) 12717{ 12718 va_list args; 12719 va_start (args, format); 12720 va_list args_copy; 12721 va_copy (args_copy, args); 12722 12723 const char *str; 12724 int number; 12725 float fnumber; 12726 12727 while (*format) 12728 { 12729 switch (*format++) 12730 { 12731 case 's': // string 12732 str = va_arg (args_copy, const char *); 12733 break; 12734 case 'd': // int 12735 number = va_arg (args_copy, int); 12736 break; 12737 case 'f': // float 12738 fnumber = va_arg (args_copy, double); 12739 break; 12740 default: 12741 break; 12742 } 12743 } 12744 va_end (args_copy); 12745 va_end (args); 12746} 12747 12748int 12749main () 12750{ 12751 12752 // Check bool. 12753 _Bool success = false; 12754 12755 // Check restrict. 12756 if (test_restrict ("String literal") == 0) 12757 success = true; 12758 char *restrict newvar = "Another string"; 12759 12760 // Check varargs. 12761 test_varargs ("s, d' f .", "string", 65, 34.234); 12762 test_varargs_macros (); 12763 12764 // Check flexible array members. 12765 struct incomplete_array *ia = 12766 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12767 ia->datasize = 10; 12768 for (int i = 0; i < ia->datasize; ++i) 12769 ia->data[i] = i * 1.234; 12770 12771 // Check named initializers. 12772 struct named_init ni = { 12773 .number = 34, 12774 .name = L"Test wide string", 12775 .average = 543.34343, 12776 }; 12777 12778 ni.number = 58; 12779 12780 int dynamic_array[ni.number]; 12781 dynamic_array[ni.number - 1] = 543; 12782 12783 // work around unused variable warnings 12784 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12785 || dynamic_array[ni.number - 1] != 543); 12786 12787 ; 12788 return 0; 12789} 12790_ACEOF 12791for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12792do 12793 CC="$ac_save_CC $ac_arg" 12794 if ac_fn_c_try_compile "$LINENO"; then : 12795 ac_cv_prog_cc_c99=$ac_arg 12796fi 12797rm -f core conftest.err conftest.$ac_objext 12798 test "x$ac_cv_prog_cc_c99" != "xno" && break 12799done 12800rm -f conftest.$ac_ext 12801CC=$ac_save_CC 12802 12803fi 12804# AC_CACHE_VAL 12805case "x$ac_cv_prog_cc_c99" in 12806 x) 12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12808$as_echo "none needed" >&6; } ;; 12809 xno) 12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12811$as_echo "unsupported" >&6; } ;; 12812 *) 12813 CC="$CC $ac_cv_prog_cc_c99" 12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12815$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12816esac 12817if test "x$ac_cv_prog_cc_c99" != xno; then : 12818 12819fi 12820 12821 12822 12823 12824 12825 12826ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12827if test "x$ac_cv_have_decl___clang__" = xyes; then : 12828 CLANGCC="yes" 12829else 12830 CLANGCC="no" 12831fi 12832 12833ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12834if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12835 INTELCC="yes" 12836else 12837 INTELCC="no" 12838fi 12839 12840ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12841if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12842 SUNCC="yes" 12843else 12844 SUNCC="no" 12845fi 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12856 if test -n "$ac_tool_prefix"; then 12857 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12858set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12860$as_echo_n "checking for $ac_word... " >&6; } 12861if ${ac_cv_path_PKG_CONFIG+:} false; then : 12862 $as_echo_n "(cached) " >&6 12863else 12864 case $PKG_CONFIG in 12865 [\\/]* | ?:[\\/]*) 12866 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12867 ;; 12868 *) 12869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12870for as_dir in $PATH 12871do 12872 IFS=$as_save_IFS 12873 test -z "$as_dir" && as_dir=. 12874 for ac_exec_ext in '' $ac_executable_extensions; do 12875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12876 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12878 break 2 12879 fi 12880done 12881 done 12882IFS=$as_save_IFS 12883 12884 ;; 12885esac 12886fi 12887PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12888if test -n "$PKG_CONFIG"; then 12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12890$as_echo "$PKG_CONFIG" >&6; } 12891else 12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12893$as_echo "no" >&6; } 12894fi 12895 12896 12897fi 12898if test -z "$ac_cv_path_PKG_CONFIG"; then 12899 ac_pt_PKG_CONFIG=$PKG_CONFIG 12900 # Extract the first word of "pkg-config", so it can be a program name with args. 12901set dummy pkg-config; ac_word=$2 12902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12903$as_echo_n "checking for $ac_word... " >&6; } 12904if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12905 $as_echo_n "(cached) " >&6 12906else 12907 case $ac_pt_PKG_CONFIG in 12908 [\\/]* | ?:[\\/]*) 12909 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12910 ;; 12911 *) 12912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12913for as_dir in $PATH 12914do 12915 IFS=$as_save_IFS 12916 test -z "$as_dir" && as_dir=. 12917 for ac_exec_ext in '' $ac_executable_extensions; do 12918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12919 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12921 break 2 12922 fi 12923done 12924 done 12925IFS=$as_save_IFS 12926 12927 ;; 12928esac 12929fi 12930ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12931if test -n "$ac_pt_PKG_CONFIG"; then 12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12933$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12934else 12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12936$as_echo "no" >&6; } 12937fi 12938 12939 if test "x$ac_pt_PKG_CONFIG" = x; then 12940 PKG_CONFIG="" 12941 else 12942 case $cross_compiling:$ac_tool_warned in 12943yes:) 12944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12946ac_tool_warned=yes ;; 12947esac 12948 PKG_CONFIG=$ac_pt_PKG_CONFIG 12949 fi 12950else 12951 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12952fi 12953 12954fi 12955if test -n "$PKG_CONFIG"; then 12956 _pkg_min_version=0.9.0 12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12958$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12959 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12961$as_echo "yes" >&6; } 12962 else 12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12964$as_echo "no" >&6; } 12965 PKG_CONFIG="" 12966 fi 12967fi 12968 12969 12970 12971 12972 12973# Check whether --enable-selective-werror was given. 12974if test "${enable_selective_werror+set}" = set; then : 12975 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12976else 12977 SELECTIVE_WERROR=yes 12978fi 12979 12980 12981 12982 12983 12984# -v is too short to test reliably with XORG_TESTSET_CFLAG 12985if test "x$SUNCC" = "xyes"; then 12986 BASE_CFLAGS="-v" 12987else 12988 BASE_CFLAGS="" 12989fi 12990 12991# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005xorg_testset_save_CFLAGS="$CFLAGS" 13006 13007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13010$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13011if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13012 $as_echo_n "(cached) " >&6 13013else 13014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13015/* end confdefs.h. */ 13016int i; 13017_ACEOF 13018if ac_fn_c_try_compile "$LINENO"; then : 13019 xorg_cv_cc_flag_unknown_warning_option=yes 13020else 13021 xorg_cv_cc_flag_unknown_warning_option=no 13022fi 13023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13024fi 13025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13026$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13027 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13028 CFLAGS="$xorg_testset_save_CFLAGS" 13029fi 13030 13031if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13034 fi 13035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13037$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13038if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13039 $as_echo_n "(cached) " >&6 13040else 13041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13042/* end confdefs.h. */ 13043int i; 13044_ACEOF 13045if ac_fn_c_try_compile "$LINENO"; then : 13046 xorg_cv_cc_flag_unused_command_line_argument=yes 13047else 13048 xorg_cv_cc_flag_unused_command_line_argument=no 13049fi 13050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13051fi 13052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13053$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13054 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13055 CFLAGS="$xorg_testset_save_CFLAGS" 13056fi 13057 13058found="no" 13059 13060 if test $found = "no" ; then 13061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13063 fi 13064 13065 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13067 fi 13068 13069 CFLAGS="$CFLAGS -Wall" 13070 13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13072$as_echo_n "checking if $CC supports -Wall... " >&6; } 13073 cacheid=xorg_cv_cc_flag__Wall 13074 if eval \${$cacheid+:} false; then : 13075 $as_echo_n "(cached) " >&6 13076else 13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13078/* end confdefs.h. */ 13079int i; 13080int 13081main () 13082{ 13083 13084 ; 13085 return 0; 13086} 13087_ACEOF 13088if ac_fn_c_try_link "$LINENO"; then : 13089 eval $cacheid=yes 13090else 13091 eval $cacheid=no 13092fi 13093rm -f core conftest.err conftest.$ac_objext \ 13094 conftest$ac_exeext conftest.$ac_ext 13095fi 13096 13097 13098 CFLAGS="$xorg_testset_save_CFLAGS" 13099 13100 eval supported=\$$cacheid 13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13102$as_echo "$supported" >&6; } 13103 if test "$supported" = "yes" ; then 13104 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13105 found="yes" 13106 fi 13107 fi 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123xorg_testset_save_CFLAGS="$CFLAGS" 13124 13125if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13128$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13129if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13130 $as_echo_n "(cached) " >&6 13131else 13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13133/* end confdefs.h. */ 13134int i; 13135_ACEOF 13136if ac_fn_c_try_compile "$LINENO"; then : 13137 xorg_cv_cc_flag_unknown_warning_option=yes 13138else 13139 xorg_cv_cc_flag_unknown_warning_option=no 13140fi 13141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13142fi 13143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13144$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13146 CFLAGS="$xorg_testset_save_CFLAGS" 13147fi 13148 13149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13152 fi 13153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13155$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13156if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13157 $as_echo_n "(cached) " >&6 13158else 13159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13160/* end confdefs.h. */ 13161int i; 13162_ACEOF 13163if ac_fn_c_try_compile "$LINENO"; then : 13164 xorg_cv_cc_flag_unused_command_line_argument=yes 13165else 13166 xorg_cv_cc_flag_unused_command_line_argument=no 13167fi 13168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13169fi 13170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13171$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13172 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13173 CFLAGS="$xorg_testset_save_CFLAGS" 13174fi 13175 13176found="no" 13177 13178 if test $found = "no" ; then 13179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13181 fi 13182 13183 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13185 fi 13186 13187 CFLAGS="$CFLAGS -Wpointer-arith" 13188 13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13190$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 13191 cacheid=xorg_cv_cc_flag__Wpointer_arith 13192 if eval \${$cacheid+:} false; then : 13193 $as_echo_n "(cached) " >&6 13194else 13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13196/* end confdefs.h. */ 13197int i; 13198int 13199main () 13200{ 13201 13202 ; 13203 return 0; 13204} 13205_ACEOF 13206if ac_fn_c_try_link "$LINENO"; then : 13207 eval $cacheid=yes 13208else 13209 eval $cacheid=no 13210fi 13211rm -f core conftest.err conftest.$ac_objext \ 13212 conftest$ac_exeext conftest.$ac_ext 13213fi 13214 13215 13216 CFLAGS="$xorg_testset_save_CFLAGS" 13217 13218 eval supported=\$$cacheid 13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13220$as_echo "$supported" >&6; } 13221 if test "$supported" = "yes" ; then 13222 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13223 found="yes" 13224 fi 13225 fi 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241xorg_testset_save_CFLAGS="$CFLAGS" 13242 13243if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13246$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13247if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13248 $as_echo_n "(cached) " >&6 13249else 13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13251/* end confdefs.h. */ 13252int i; 13253_ACEOF 13254if ac_fn_c_try_compile "$LINENO"; then : 13255 xorg_cv_cc_flag_unknown_warning_option=yes 13256else 13257 xorg_cv_cc_flag_unknown_warning_option=no 13258fi 13259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13260fi 13261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13262$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13263 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13264 CFLAGS="$xorg_testset_save_CFLAGS" 13265fi 13266 13267if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13270 fi 13271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13273$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13274if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13275 $as_echo_n "(cached) " >&6 13276else 13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13278/* end confdefs.h. */ 13279int i; 13280_ACEOF 13281if ac_fn_c_try_compile "$LINENO"; then : 13282 xorg_cv_cc_flag_unused_command_line_argument=yes 13283else 13284 xorg_cv_cc_flag_unused_command_line_argument=no 13285fi 13286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13287fi 13288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13289$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13290 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13291 CFLAGS="$xorg_testset_save_CFLAGS" 13292fi 13293 13294found="no" 13295 13296 if test $found = "no" ; then 13297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13299 fi 13300 13301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13303 fi 13304 13305 CFLAGS="$CFLAGS -Wmissing-declarations" 13306 13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13308$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 13309 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13310 if eval \${$cacheid+:} false; then : 13311 $as_echo_n "(cached) " >&6 13312else 13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13314/* end confdefs.h. */ 13315int i; 13316int 13317main () 13318{ 13319 13320 ; 13321 return 0; 13322} 13323_ACEOF 13324if ac_fn_c_try_link "$LINENO"; then : 13325 eval $cacheid=yes 13326else 13327 eval $cacheid=no 13328fi 13329rm -f core conftest.err conftest.$ac_objext \ 13330 conftest$ac_exeext conftest.$ac_ext 13331fi 13332 13333 13334 CFLAGS="$xorg_testset_save_CFLAGS" 13335 13336 eval supported=\$$cacheid 13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13338$as_echo "$supported" >&6; } 13339 if test "$supported" = "yes" ; then 13340 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13341 found="yes" 13342 fi 13343 fi 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359xorg_testset_save_CFLAGS="$CFLAGS" 13360 13361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13364$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13365if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13366 $as_echo_n "(cached) " >&6 13367else 13368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13369/* end confdefs.h. */ 13370int i; 13371_ACEOF 13372if ac_fn_c_try_compile "$LINENO"; then : 13373 xorg_cv_cc_flag_unknown_warning_option=yes 13374else 13375 xorg_cv_cc_flag_unknown_warning_option=no 13376fi 13377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13378fi 13379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13380$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13382 CFLAGS="$xorg_testset_save_CFLAGS" 13383fi 13384 13385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13388 fi 13389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13391$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13392if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13393 $as_echo_n "(cached) " >&6 13394else 13395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13396/* end confdefs.h. */ 13397int i; 13398_ACEOF 13399if ac_fn_c_try_compile "$LINENO"; then : 13400 xorg_cv_cc_flag_unused_command_line_argument=yes 13401else 13402 xorg_cv_cc_flag_unused_command_line_argument=no 13403fi 13404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13405fi 13406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13407$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13409 CFLAGS="$xorg_testset_save_CFLAGS" 13410fi 13411 13412found="no" 13413 13414 if test $found = "no" ; then 13415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13417 fi 13418 13419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13421 fi 13422 13423 CFLAGS="$CFLAGS -Wformat=2" 13424 13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13426$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 13427 cacheid=xorg_cv_cc_flag__Wformat_2 13428 if eval \${$cacheid+:} false; then : 13429 $as_echo_n "(cached) " >&6 13430else 13431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13432/* end confdefs.h. */ 13433int i; 13434int 13435main () 13436{ 13437 13438 ; 13439 return 0; 13440} 13441_ACEOF 13442if ac_fn_c_try_link "$LINENO"; then : 13443 eval $cacheid=yes 13444else 13445 eval $cacheid=no 13446fi 13447rm -f core conftest.err conftest.$ac_objext \ 13448 conftest$ac_exeext conftest.$ac_ext 13449fi 13450 13451 13452 CFLAGS="$xorg_testset_save_CFLAGS" 13453 13454 eval supported=\$$cacheid 13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13456$as_echo "$supported" >&6; } 13457 if test "$supported" = "yes" ; then 13458 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13459 found="yes" 13460 fi 13461 fi 13462 13463 if test $found = "no" ; then 13464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13466 fi 13467 13468 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13470 fi 13471 13472 CFLAGS="$CFLAGS -Wformat" 13473 13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13475$as_echo_n "checking if $CC supports -Wformat... " >&6; } 13476 cacheid=xorg_cv_cc_flag__Wformat 13477 if eval \${$cacheid+:} false; then : 13478 $as_echo_n "(cached) " >&6 13479else 13480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13481/* end confdefs.h. */ 13482int i; 13483int 13484main () 13485{ 13486 13487 ; 13488 return 0; 13489} 13490_ACEOF 13491if ac_fn_c_try_link "$LINENO"; then : 13492 eval $cacheid=yes 13493else 13494 eval $cacheid=no 13495fi 13496rm -f core conftest.err conftest.$ac_objext \ 13497 conftest$ac_exeext conftest.$ac_ext 13498fi 13499 13500 13501 CFLAGS="$xorg_testset_save_CFLAGS" 13502 13503 eval supported=\$$cacheid 13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13505$as_echo "$supported" >&6; } 13506 if test "$supported" = "yes" ; then 13507 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13508 found="yes" 13509 fi 13510 fi 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528xorg_testset_save_CFLAGS="$CFLAGS" 13529 13530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13533$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13534if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13535 $as_echo_n "(cached) " >&6 13536else 13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13538/* end confdefs.h. */ 13539int i; 13540_ACEOF 13541if ac_fn_c_try_compile "$LINENO"; then : 13542 xorg_cv_cc_flag_unknown_warning_option=yes 13543else 13544 xorg_cv_cc_flag_unknown_warning_option=no 13545fi 13546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13547fi 13548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13549$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13551 CFLAGS="$xorg_testset_save_CFLAGS" 13552fi 13553 13554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13557 fi 13558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13560$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13561if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13562 $as_echo_n "(cached) " >&6 13563else 13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13565/* end confdefs.h. */ 13566int i; 13567_ACEOF 13568if ac_fn_c_try_compile "$LINENO"; then : 13569 xorg_cv_cc_flag_unused_command_line_argument=yes 13570else 13571 xorg_cv_cc_flag_unused_command_line_argument=no 13572fi 13573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13574fi 13575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13576$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13578 CFLAGS="$xorg_testset_save_CFLAGS" 13579fi 13580 13581found="no" 13582 13583 if test $found = "no" ; then 13584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13586 fi 13587 13588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13590 fi 13591 13592 CFLAGS="$CFLAGS -Wstrict-prototypes" 13593 13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13595$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 13596 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13597 if eval \${$cacheid+:} false; then : 13598 $as_echo_n "(cached) " >&6 13599else 13600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13601/* end confdefs.h. */ 13602int i; 13603int 13604main () 13605{ 13606 13607 ; 13608 return 0; 13609} 13610_ACEOF 13611if ac_fn_c_try_link "$LINENO"; then : 13612 eval $cacheid=yes 13613else 13614 eval $cacheid=no 13615fi 13616rm -f core conftest.err conftest.$ac_objext \ 13617 conftest$ac_exeext conftest.$ac_ext 13618fi 13619 13620 13621 CFLAGS="$xorg_testset_save_CFLAGS" 13622 13623 eval supported=\$$cacheid 13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13625$as_echo "$supported" >&6; } 13626 if test "$supported" = "yes" ; then 13627 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13628 found="yes" 13629 fi 13630 fi 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646xorg_testset_save_CFLAGS="$CFLAGS" 13647 13648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13651$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13652if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13653 $as_echo_n "(cached) " >&6 13654else 13655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13656/* end confdefs.h. */ 13657int i; 13658_ACEOF 13659if ac_fn_c_try_compile "$LINENO"; then : 13660 xorg_cv_cc_flag_unknown_warning_option=yes 13661else 13662 xorg_cv_cc_flag_unknown_warning_option=no 13663fi 13664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13665fi 13666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13667$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13669 CFLAGS="$xorg_testset_save_CFLAGS" 13670fi 13671 13672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13675 fi 13676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13678$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13679if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13680 $as_echo_n "(cached) " >&6 13681else 13682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13683/* end confdefs.h. */ 13684int i; 13685_ACEOF 13686if ac_fn_c_try_compile "$LINENO"; then : 13687 xorg_cv_cc_flag_unused_command_line_argument=yes 13688else 13689 xorg_cv_cc_flag_unused_command_line_argument=no 13690fi 13691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13692fi 13693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13694$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13696 CFLAGS="$xorg_testset_save_CFLAGS" 13697fi 13698 13699found="no" 13700 13701 if test $found = "no" ; then 13702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13704 fi 13705 13706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13708 fi 13709 13710 CFLAGS="$CFLAGS -Wmissing-prototypes" 13711 13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13713$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13714 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13715 if eval \${$cacheid+:} false; then : 13716 $as_echo_n "(cached) " >&6 13717else 13718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13719/* end confdefs.h. */ 13720int i; 13721int 13722main () 13723{ 13724 13725 ; 13726 return 0; 13727} 13728_ACEOF 13729if ac_fn_c_try_link "$LINENO"; then : 13730 eval $cacheid=yes 13731else 13732 eval $cacheid=no 13733fi 13734rm -f core conftest.err conftest.$ac_objext \ 13735 conftest$ac_exeext conftest.$ac_ext 13736fi 13737 13738 13739 CFLAGS="$xorg_testset_save_CFLAGS" 13740 13741 eval supported=\$$cacheid 13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13743$as_echo "$supported" >&6; } 13744 if test "$supported" = "yes" ; then 13745 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13746 found="yes" 13747 fi 13748 fi 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764xorg_testset_save_CFLAGS="$CFLAGS" 13765 13766if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13769$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13770if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13771 $as_echo_n "(cached) " >&6 13772else 13773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13774/* end confdefs.h. */ 13775int i; 13776_ACEOF 13777if ac_fn_c_try_compile "$LINENO"; then : 13778 xorg_cv_cc_flag_unknown_warning_option=yes 13779else 13780 xorg_cv_cc_flag_unknown_warning_option=no 13781fi 13782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13783fi 13784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13785$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13787 CFLAGS="$xorg_testset_save_CFLAGS" 13788fi 13789 13790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13793 fi 13794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13796$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13797if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13798 $as_echo_n "(cached) " >&6 13799else 13800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13801/* end confdefs.h. */ 13802int i; 13803_ACEOF 13804if ac_fn_c_try_compile "$LINENO"; then : 13805 xorg_cv_cc_flag_unused_command_line_argument=yes 13806else 13807 xorg_cv_cc_flag_unused_command_line_argument=no 13808fi 13809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13810fi 13811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13812$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13814 CFLAGS="$xorg_testset_save_CFLAGS" 13815fi 13816 13817found="no" 13818 13819 if test $found = "no" ; then 13820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13822 fi 13823 13824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13826 fi 13827 13828 CFLAGS="$CFLAGS -Wnested-externs" 13829 13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13831$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13832 cacheid=xorg_cv_cc_flag__Wnested_externs 13833 if eval \${$cacheid+:} false; then : 13834 $as_echo_n "(cached) " >&6 13835else 13836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13837/* end confdefs.h. */ 13838int i; 13839int 13840main () 13841{ 13842 13843 ; 13844 return 0; 13845} 13846_ACEOF 13847if ac_fn_c_try_link "$LINENO"; then : 13848 eval $cacheid=yes 13849else 13850 eval $cacheid=no 13851fi 13852rm -f core conftest.err conftest.$ac_objext \ 13853 conftest$ac_exeext conftest.$ac_ext 13854fi 13855 13856 13857 CFLAGS="$xorg_testset_save_CFLAGS" 13858 13859 eval supported=\$$cacheid 13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13861$as_echo "$supported" >&6; } 13862 if test "$supported" = "yes" ; then 13863 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13864 found="yes" 13865 fi 13866 fi 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882xorg_testset_save_CFLAGS="$CFLAGS" 13883 13884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13887$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13888if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13889 $as_echo_n "(cached) " >&6 13890else 13891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13892/* end confdefs.h. */ 13893int i; 13894_ACEOF 13895if ac_fn_c_try_compile "$LINENO"; then : 13896 xorg_cv_cc_flag_unknown_warning_option=yes 13897else 13898 xorg_cv_cc_flag_unknown_warning_option=no 13899fi 13900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13901fi 13902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13903$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13905 CFLAGS="$xorg_testset_save_CFLAGS" 13906fi 13907 13908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13911 fi 13912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13914$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13915if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13916 $as_echo_n "(cached) " >&6 13917else 13918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13919/* end confdefs.h. */ 13920int i; 13921_ACEOF 13922if ac_fn_c_try_compile "$LINENO"; then : 13923 xorg_cv_cc_flag_unused_command_line_argument=yes 13924else 13925 xorg_cv_cc_flag_unused_command_line_argument=no 13926fi 13927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13928fi 13929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13930$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13932 CFLAGS="$xorg_testset_save_CFLAGS" 13933fi 13934 13935found="no" 13936 13937 if test $found = "no" ; then 13938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13940 fi 13941 13942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13944 fi 13945 13946 CFLAGS="$CFLAGS -Wbad-function-cast" 13947 13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13949$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13950 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13951 if eval \${$cacheid+:} false; then : 13952 $as_echo_n "(cached) " >&6 13953else 13954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13955/* end confdefs.h. */ 13956int i; 13957int 13958main () 13959{ 13960 13961 ; 13962 return 0; 13963} 13964_ACEOF 13965if ac_fn_c_try_link "$LINENO"; then : 13966 eval $cacheid=yes 13967else 13968 eval $cacheid=no 13969fi 13970rm -f core conftest.err conftest.$ac_objext \ 13971 conftest$ac_exeext conftest.$ac_ext 13972fi 13973 13974 13975 CFLAGS="$xorg_testset_save_CFLAGS" 13976 13977 eval supported=\$$cacheid 13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13979$as_echo "$supported" >&6; } 13980 if test "$supported" = "yes" ; then 13981 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13982 found="yes" 13983 fi 13984 fi 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000xorg_testset_save_CFLAGS="$CFLAGS" 14001 14002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14005$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14006if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14007 $as_echo_n "(cached) " >&6 14008else 14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14010/* end confdefs.h. */ 14011int i; 14012_ACEOF 14013if ac_fn_c_try_compile "$LINENO"; then : 14014 xorg_cv_cc_flag_unknown_warning_option=yes 14015else 14016 xorg_cv_cc_flag_unknown_warning_option=no 14017fi 14018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14019fi 14020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14021$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14023 CFLAGS="$xorg_testset_save_CFLAGS" 14024fi 14025 14026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14029 fi 14030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14032$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14033if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14034 $as_echo_n "(cached) " >&6 14035else 14036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14037/* end confdefs.h. */ 14038int i; 14039_ACEOF 14040if ac_fn_c_try_compile "$LINENO"; then : 14041 xorg_cv_cc_flag_unused_command_line_argument=yes 14042else 14043 xorg_cv_cc_flag_unused_command_line_argument=no 14044fi 14045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14046fi 14047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14048$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14050 CFLAGS="$xorg_testset_save_CFLAGS" 14051fi 14052 14053found="no" 14054 14055 if test $found = "no" ; then 14056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14058 fi 14059 14060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14062 fi 14063 14064 CFLAGS="$CFLAGS -Wold-style-definition" 14065 14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14067$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 14068 cacheid=xorg_cv_cc_flag__Wold_style_definition 14069 if eval \${$cacheid+:} false; then : 14070 $as_echo_n "(cached) " >&6 14071else 14072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14073/* end confdefs.h. */ 14074int i; 14075int 14076main () 14077{ 14078 14079 ; 14080 return 0; 14081} 14082_ACEOF 14083if ac_fn_c_try_link "$LINENO"; then : 14084 eval $cacheid=yes 14085else 14086 eval $cacheid=no 14087fi 14088rm -f core conftest.err conftest.$ac_objext \ 14089 conftest$ac_exeext conftest.$ac_ext 14090fi 14091 14092 14093 CFLAGS="$xorg_testset_save_CFLAGS" 14094 14095 eval supported=\$$cacheid 14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14097$as_echo "$supported" >&6; } 14098 if test "$supported" = "yes" ; then 14099 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14100 found="yes" 14101 fi 14102 fi 14103 14104 if test $found = "no" ; then 14105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14107 fi 14108 14109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14111 fi 14112 14113 CFLAGS="$CFLAGS -fd" 14114 14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14116$as_echo_n "checking if $CC supports -fd... " >&6; } 14117 cacheid=xorg_cv_cc_flag__fd 14118 if eval \${$cacheid+:} false; then : 14119 $as_echo_n "(cached) " >&6 14120else 14121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14122/* end confdefs.h. */ 14123int i; 14124int 14125main () 14126{ 14127 14128 ; 14129 return 0; 14130} 14131_ACEOF 14132if ac_fn_c_try_link "$LINENO"; then : 14133 eval $cacheid=yes 14134else 14135 eval $cacheid=no 14136fi 14137rm -f core conftest.err conftest.$ac_objext \ 14138 conftest$ac_exeext conftest.$ac_ext 14139fi 14140 14141 14142 CFLAGS="$xorg_testset_save_CFLAGS" 14143 14144 eval supported=\$$cacheid 14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14146$as_echo "$supported" >&6; } 14147 if test "$supported" = "yes" ; then 14148 BASE_CFLAGS="$BASE_CFLAGS -fd" 14149 found="yes" 14150 fi 14151 fi 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167xorg_testset_save_CFLAGS="$CFLAGS" 14168 14169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14172$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14173if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14174 $as_echo_n "(cached) " >&6 14175else 14176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14177/* end confdefs.h. */ 14178int i; 14179_ACEOF 14180if ac_fn_c_try_compile "$LINENO"; then : 14181 xorg_cv_cc_flag_unknown_warning_option=yes 14182else 14183 xorg_cv_cc_flag_unknown_warning_option=no 14184fi 14185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14186fi 14187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14188$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14190 CFLAGS="$xorg_testset_save_CFLAGS" 14191fi 14192 14193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14196 fi 14197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14199$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14200if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14201 $as_echo_n "(cached) " >&6 14202else 14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14204/* end confdefs.h. */ 14205int i; 14206_ACEOF 14207if ac_fn_c_try_compile "$LINENO"; then : 14208 xorg_cv_cc_flag_unused_command_line_argument=yes 14209else 14210 xorg_cv_cc_flag_unused_command_line_argument=no 14211fi 14212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14213fi 14214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14215$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14217 CFLAGS="$xorg_testset_save_CFLAGS" 14218fi 14219 14220found="no" 14221 14222 if test $found = "no" ; then 14223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14225 fi 14226 14227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14229 fi 14230 14231 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14232 14233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14234$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14235 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14236 if eval \${$cacheid+:} false; then : 14237 $as_echo_n "(cached) " >&6 14238else 14239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14240/* end confdefs.h. */ 14241int i; 14242int 14243main () 14244{ 14245 14246 ; 14247 return 0; 14248} 14249_ACEOF 14250if ac_fn_c_try_link "$LINENO"; then : 14251 eval $cacheid=yes 14252else 14253 eval $cacheid=no 14254fi 14255rm -f core conftest.err conftest.$ac_objext \ 14256 conftest$ac_exeext conftest.$ac_ext 14257fi 14258 14259 14260 CFLAGS="$xorg_testset_save_CFLAGS" 14261 14262 eval supported=\$$cacheid 14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14264$as_echo "$supported" >&6; } 14265 if test "$supported" = "yes" ; then 14266 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14267 found="yes" 14268 fi 14269 fi 14270 14271 14272 14273 14274 14275# This chunk adds additional warnings that could catch undesired effects. 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289xorg_testset_save_CFLAGS="$CFLAGS" 14290 14291if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14294$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14295if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14296 $as_echo_n "(cached) " >&6 14297else 14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14299/* end confdefs.h. */ 14300int i; 14301_ACEOF 14302if ac_fn_c_try_compile "$LINENO"; then : 14303 xorg_cv_cc_flag_unknown_warning_option=yes 14304else 14305 xorg_cv_cc_flag_unknown_warning_option=no 14306fi 14307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14308fi 14309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14310$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14311 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14312 CFLAGS="$xorg_testset_save_CFLAGS" 14313fi 14314 14315if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14318 fi 14319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14321$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14322if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14323 $as_echo_n "(cached) " >&6 14324else 14325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14326/* end confdefs.h. */ 14327int i; 14328_ACEOF 14329if ac_fn_c_try_compile "$LINENO"; then : 14330 xorg_cv_cc_flag_unused_command_line_argument=yes 14331else 14332 xorg_cv_cc_flag_unused_command_line_argument=no 14333fi 14334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14335fi 14336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14337$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14339 CFLAGS="$xorg_testset_save_CFLAGS" 14340fi 14341 14342found="no" 14343 14344 if test $found = "no" ; then 14345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14347 fi 14348 14349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14351 fi 14352 14353 CFLAGS="$CFLAGS -Wunused" 14354 14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14356$as_echo_n "checking if $CC supports -Wunused... " >&6; } 14357 cacheid=xorg_cv_cc_flag__Wunused 14358 if eval \${$cacheid+:} false; then : 14359 $as_echo_n "(cached) " >&6 14360else 14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14362/* end confdefs.h. */ 14363int i; 14364int 14365main () 14366{ 14367 14368 ; 14369 return 0; 14370} 14371_ACEOF 14372if ac_fn_c_try_link "$LINENO"; then : 14373 eval $cacheid=yes 14374else 14375 eval $cacheid=no 14376fi 14377rm -f core conftest.err conftest.$ac_objext \ 14378 conftest$ac_exeext conftest.$ac_ext 14379fi 14380 14381 14382 CFLAGS="$xorg_testset_save_CFLAGS" 14383 14384 eval supported=\$$cacheid 14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14386$as_echo "$supported" >&6; } 14387 if test "$supported" = "yes" ; then 14388 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14389 found="yes" 14390 fi 14391 fi 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407xorg_testset_save_CFLAGS="$CFLAGS" 14408 14409if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14412$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14413if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14414 $as_echo_n "(cached) " >&6 14415else 14416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14417/* end confdefs.h. */ 14418int i; 14419_ACEOF 14420if ac_fn_c_try_compile "$LINENO"; then : 14421 xorg_cv_cc_flag_unknown_warning_option=yes 14422else 14423 xorg_cv_cc_flag_unknown_warning_option=no 14424fi 14425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14426fi 14427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14428$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14430 CFLAGS="$xorg_testset_save_CFLAGS" 14431fi 14432 14433if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14436 fi 14437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14439$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14440if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14441 $as_echo_n "(cached) " >&6 14442else 14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14444/* end confdefs.h. */ 14445int i; 14446_ACEOF 14447if ac_fn_c_try_compile "$LINENO"; then : 14448 xorg_cv_cc_flag_unused_command_line_argument=yes 14449else 14450 xorg_cv_cc_flag_unused_command_line_argument=no 14451fi 14452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14453fi 14454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14455$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14456 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14457 CFLAGS="$xorg_testset_save_CFLAGS" 14458fi 14459 14460found="no" 14461 14462 if test $found = "no" ; then 14463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14465 fi 14466 14467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14469 fi 14470 14471 CFLAGS="$CFLAGS -Wuninitialized" 14472 14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14474$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 14475 cacheid=xorg_cv_cc_flag__Wuninitialized 14476 if eval \${$cacheid+:} false; then : 14477 $as_echo_n "(cached) " >&6 14478else 14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14480/* end confdefs.h. */ 14481int i; 14482int 14483main () 14484{ 14485 14486 ; 14487 return 0; 14488} 14489_ACEOF 14490if ac_fn_c_try_link "$LINENO"; then : 14491 eval $cacheid=yes 14492else 14493 eval $cacheid=no 14494fi 14495rm -f core conftest.err conftest.$ac_objext \ 14496 conftest$ac_exeext conftest.$ac_ext 14497fi 14498 14499 14500 CFLAGS="$xorg_testset_save_CFLAGS" 14501 14502 eval supported=\$$cacheid 14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14504$as_echo "$supported" >&6; } 14505 if test "$supported" = "yes" ; then 14506 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14507 found="yes" 14508 fi 14509 fi 14510 14511 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525xorg_testset_save_CFLAGS="$CFLAGS" 14526 14527if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14530$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14531if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14532 $as_echo_n "(cached) " >&6 14533else 14534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14535/* end confdefs.h. */ 14536int i; 14537_ACEOF 14538if ac_fn_c_try_compile "$LINENO"; then : 14539 xorg_cv_cc_flag_unknown_warning_option=yes 14540else 14541 xorg_cv_cc_flag_unknown_warning_option=no 14542fi 14543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14544fi 14545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14546$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14547 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14548 CFLAGS="$xorg_testset_save_CFLAGS" 14549fi 14550 14551if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14554 fi 14555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14557$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14558if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14559 $as_echo_n "(cached) " >&6 14560else 14561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14562/* end confdefs.h. */ 14563int i; 14564_ACEOF 14565if ac_fn_c_try_compile "$LINENO"; then : 14566 xorg_cv_cc_flag_unused_command_line_argument=yes 14567else 14568 xorg_cv_cc_flag_unused_command_line_argument=no 14569fi 14570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14571fi 14572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14573$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14575 CFLAGS="$xorg_testset_save_CFLAGS" 14576fi 14577 14578found="no" 14579 14580 if test $found = "no" ; then 14581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14583 fi 14584 14585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14587 fi 14588 14589 CFLAGS="$CFLAGS -Wshadow" 14590 14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14592$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 14593 cacheid=xorg_cv_cc_flag__Wshadow 14594 if eval \${$cacheid+:} false; then : 14595 $as_echo_n "(cached) " >&6 14596else 14597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14598/* end confdefs.h. */ 14599int i; 14600int 14601main () 14602{ 14603 14604 ; 14605 return 0; 14606} 14607_ACEOF 14608if ac_fn_c_try_link "$LINENO"; then : 14609 eval $cacheid=yes 14610else 14611 eval $cacheid=no 14612fi 14613rm -f core conftest.err conftest.$ac_objext \ 14614 conftest$ac_exeext conftest.$ac_ext 14615fi 14616 14617 14618 CFLAGS="$xorg_testset_save_CFLAGS" 14619 14620 eval supported=\$$cacheid 14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14622$as_echo "$supported" >&6; } 14623 if test "$supported" = "yes" ; then 14624 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14625 found="yes" 14626 fi 14627 fi 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643xorg_testset_save_CFLAGS="$CFLAGS" 14644 14645if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14648$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14649if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14650 $as_echo_n "(cached) " >&6 14651else 14652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14653/* end confdefs.h. */ 14654int i; 14655_ACEOF 14656if ac_fn_c_try_compile "$LINENO"; then : 14657 xorg_cv_cc_flag_unknown_warning_option=yes 14658else 14659 xorg_cv_cc_flag_unknown_warning_option=no 14660fi 14661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14662fi 14663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14664$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14665 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14666 CFLAGS="$xorg_testset_save_CFLAGS" 14667fi 14668 14669if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14672 fi 14673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14675$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14676if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14677 $as_echo_n "(cached) " >&6 14678else 14679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14680/* end confdefs.h. */ 14681int i; 14682_ACEOF 14683if ac_fn_c_try_compile "$LINENO"; then : 14684 xorg_cv_cc_flag_unused_command_line_argument=yes 14685else 14686 xorg_cv_cc_flag_unused_command_line_argument=no 14687fi 14688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14689fi 14690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14691$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14692 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14693 CFLAGS="$xorg_testset_save_CFLAGS" 14694fi 14695 14696found="no" 14697 14698 if test $found = "no" ; then 14699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14701 fi 14702 14703 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14705 fi 14706 14707 CFLAGS="$CFLAGS -Wmissing-noreturn" 14708 14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14710$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14711 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14712 if eval \${$cacheid+:} false; then : 14713 $as_echo_n "(cached) " >&6 14714else 14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14716/* end confdefs.h. */ 14717int i; 14718int 14719main () 14720{ 14721 14722 ; 14723 return 0; 14724} 14725_ACEOF 14726if ac_fn_c_try_link "$LINENO"; then : 14727 eval $cacheid=yes 14728else 14729 eval $cacheid=no 14730fi 14731rm -f core conftest.err conftest.$ac_objext \ 14732 conftest$ac_exeext conftest.$ac_ext 14733fi 14734 14735 14736 CFLAGS="$xorg_testset_save_CFLAGS" 14737 14738 eval supported=\$$cacheid 14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14740$as_echo "$supported" >&6; } 14741 if test "$supported" = "yes" ; then 14742 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14743 found="yes" 14744 fi 14745 fi 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761xorg_testset_save_CFLAGS="$CFLAGS" 14762 14763if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14766$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14767if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14768 $as_echo_n "(cached) " >&6 14769else 14770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14771/* end confdefs.h. */ 14772int i; 14773_ACEOF 14774if ac_fn_c_try_compile "$LINENO"; then : 14775 xorg_cv_cc_flag_unknown_warning_option=yes 14776else 14777 xorg_cv_cc_flag_unknown_warning_option=no 14778fi 14779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14780fi 14781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14782$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14783 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14784 CFLAGS="$xorg_testset_save_CFLAGS" 14785fi 14786 14787if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14790 fi 14791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14793$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14794if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14795 $as_echo_n "(cached) " >&6 14796else 14797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14798/* end confdefs.h. */ 14799int i; 14800_ACEOF 14801if ac_fn_c_try_compile "$LINENO"; then : 14802 xorg_cv_cc_flag_unused_command_line_argument=yes 14803else 14804 xorg_cv_cc_flag_unused_command_line_argument=no 14805fi 14806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14807fi 14808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14809$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14811 CFLAGS="$xorg_testset_save_CFLAGS" 14812fi 14813 14814found="no" 14815 14816 if test $found = "no" ; then 14817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14819 fi 14820 14821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14823 fi 14824 14825 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14826 14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14828$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14829 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14830 if eval \${$cacheid+:} false; then : 14831 $as_echo_n "(cached) " >&6 14832else 14833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14834/* end confdefs.h. */ 14835int i; 14836int 14837main () 14838{ 14839 14840 ; 14841 return 0; 14842} 14843_ACEOF 14844if ac_fn_c_try_link "$LINENO"; then : 14845 eval $cacheid=yes 14846else 14847 eval $cacheid=no 14848fi 14849rm -f core conftest.err conftest.$ac_objext \ 14850 conftest$ac_exeext conftest.$ac_ext 14851fi 14852 14853 14854 CFLAGS="$xorg_testset_save_CFLAGS" 14855 14856 eval supported=\$$cacheid 14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14858$as_echo "$supported" >&6; } 14859 if test "$supported" = "yes" ; then 14860 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14861 found="yes" 14862 fi 14863 fi 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879xorg_testset_save_CFLAGS="$CFLAGS" 14880 14881if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14884$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14885if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14886 $as_echo_n "(cached) " >&6 14887else 14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14889/* end confdefs.h. */ 14890int i; 14891_ACEOF 14892if ac_fn_c_try_compile "$LINENO"; then : 14893 xorg_cv_cc_flag_unknown_warning_option=yes 14894else 14895 xorg_cv_cc_flag_unknown_warning_option=no 14896fi 14897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14898fi 14899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14900$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14902 CFLAGS="$xorg_testset_save_CFLAGS" 14903fi 14904 14905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14908 fi 14909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14911$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14912if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14913 $as_echo_n "(cached) " >&6 14914else 14915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14916/* end confdefs.h. */ 14917int i; 14918_ACEOF 14919if ac_fn_c_try_compile "$LINENO"; then : 14920 xorg_cv_cc_flag_unused_command_line_argument=yes 14921else 14922 xorg_cv_cc_flag_unused_command_line_argument=no 14923fi 14924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14925fi 14926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14927$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14929 CFLAGS="$xorg_testset_save_CFLAGS" 14930fi 14931 14932found="no" 14933 14934 if test $found = "no" ; then 14935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14937 fi 14938 14939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14941 fi 14942 14943 CFLAGS="$CFLAGS -Wredundant-decls" 14944 14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14946$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14947 cacheid=xorg_cv_cc_flag__Wredundant_decls 14948 if eval \${$cacheid+:} false; then : 14949 $as_echo_n "(cached) " >&6 14950else 14951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14952/* end confdefs.h. */ 14953int i; 14954int 14955main () 14956{ 14957 14958 ; 14959 return 0; 14960} 14961_ACEOF 14962if ac_fn_c_try_link "$LINENO"; then : 14963 eval $cacheid=yes 14964else 14965 eval $cacheid=no 14966fi 14967rm -f core conftest.err conftest.$ac_objext \ 14968 conftest$ac_exeext conftest.$ac_ext 14969fi 14970 14971 14972 CFLAGS="$xorg_testset_save_CFLAGS" 14973 14974 eval supported=\$$cacheid 14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14976$as_echo "$supported" >&6; } 14977 if test "$supported" = "yes" ; then 14978 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14979 found="yes" 14980 fi 14981 fi 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997xorg_testset_save_CFLAGS="$CFLAGS" 14998 14999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15002$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15003if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15004 $as_echo_n "(cached) " >&6 15005else 15006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15007/* end confdefs.h. */ 15008int i; 15009_ACEOF 15010if ac_fn_c_try_compile "$LINENO"; then : 15011 xorg_cv_cc_flag_unknown_warning_option=yes 15012else 15013 xorg_cv_cc_flag_unknown_warning_option=no 15014fi 15015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15016fi 15017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15018$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15020 CFLAGS="$xorg_testset_save_CFLAGS" 15021fi 15022 15023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15026 fi 15027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15029$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15030if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15031 $as_echo_n "(cached) " >&6 15032else 15033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15034/* end confdefs.h. */ 15035int i; 15036_ACEOF 15037if ac_fn_c_try_compile "$LINENO"; then : 15038 xorg_cv_cc_flag_unused_command_line_argument=yes 15039else 15040 xorg_cv_cc_flag_unused_command_line_argument=no 15041fi 15042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15043fi 15044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15045$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15047 CFLAGS="$xorg_testset_save_CFLAGS" 15048fi 15049 15050found="no" 15051 15052 if test $found = "no" ; then 15053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15055 fi 15056 15057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15059 fi 15060 15061 CFLAGS="$CFLAGS -Wlogical-op" 15062 15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15064$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 15065 cacheid=xorg_cv_cc_flag__Wlogical_op 15066 if eval \${$cacheid+:} false; then : 15067 $as_echo_n "(cached) " >&6 15068else 15069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15070/* end confdefs.h. */ 15071int i; 15072int 15073main () 15074{ 15075 15076 ; 15077 return 0; 15078} 15079_ACEOF 15080if ac_fn_c_try_link "$LINENO"; then : 15081 eval $cacheid=yes 15082else 15083 eval $cacheid=no 15084fi 15085rm -f core conftest.err conftest.$ac_objext \ 15086 conftest$ac_exeext conftest.$ac_ext 15087fi 15088 15089 15090 CFLAGS="$xorg_testset_save_CFLAGS" 15091 15092 eval supported=\$$cacheid 15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15094$as_echo "$supported" >&6; } 15095 if test "$supported" = "yes" ; then 15096 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15097 found="yes" 15098 fi 15099 fi 15100 15101 15102 15103# These are currently disabled because they are noisy. They will be enabled 15104# in the future once the codebase is sufficiently modernized to silence 15105# them. For now, I don't want them to drown out the other warnings. 15106# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15107# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15108# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15109 15110# Turn some warnings into errors, so we don't accidently get successful builds 15111# when there are problems that should be fixed. 15112 15113if test "x$SELECTIVE_WERROR" = "xyes" ; then 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127xorg_testset_save_CFLAGS="$CFLAGS" 15128 15129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15132$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15133if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15134 $as_echo_n "(cached) " >&6 15135else 15136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15137/* end confdefs.h. */ 15138int i; 15139_ACEOF 15140if ac_fn_c_try_compile "$LINENO"; then : 15141 xorg_cv_cc_flag_unknown_warning_option=yes 15142else 15143 xorg_cv_cc_flag_unknown_warning_option=no 15144fi 15145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15146fi 15147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15148$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15150 CFLAGS="$xorg_testset_save_CFLAGS" 15151fi 15152 15153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15156 fi 15157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15159$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15160if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15161 $as_echo_n "(cached) " >&6 15162else 15163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15164/* end confdefs.h. */ 15165int i; 15166_ACEOF 15167if ac_fn_c_try_compile "$LINENO"; then : 15168 xorg_cv_cc_flag_unused_command_line_argument=yes 15169else 15170 xorg_cv_cc_flag_unused_command_line_argument=no 15171fi 15172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15173fi 15174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15175$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15177 CFLAGS="$xorg_testset_save_CFLAGS" 15178fi 15179 15180found="no" 15181 15182 if test $found = "no" ; then 15183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15185 fi 15186 15187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15189 fi 15190 15191 CFLAGS="$CFLAGS -Werror=implicit" 15192 15193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15194$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 15195 cacheid=xorg_cv_cc_flag__Werror_implicit 15196 if eval \${$cacheid+:} false; then : 15197 $as_echo_n "(cached) " >&6 15198else 15199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15200/* end confdefs.h. */ 15201int i; 15202int 15203main () 15204{ 15205 15206 ; 15207 return 0; 15208} 15209_ACEOF 15210if ac_fn_c_try_link "$LINENO"; then : 15211 eval $cacheid=yes 15212else 15213 eval $cacheid=no 15214fi 15215rm -f core conftest.err conftest.$ac_objext \ 15216 conftest$ac_exeext conftest.$ac_ext 15217fi 15218 15219 15220 CFLAGS="$xorg_testset_save_CFLAGS" 15221 15222 eval supported=\$$cacheid 15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15224$as_echo "$supported" >&6; } 15225 if test "$supported" = "yes" ; then 15226 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15227 found="yes" 15228 fi 15229 fi 15230 15231 if test $found = "no" ; then 15232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15234 fi 15235 15236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15238 fi 15239 15240 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15241 15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 15243$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15244 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15245 if eval \${$cacheid+:} false; then : 15246 $as_echo_n "(cached) " >&6 15247else 15248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15249/* end confdefs.h. */ 15250int i; 15251int 15252main () 15253{ 15254 15255 ; 15256 return 0; 15257} 15258_ACEOF 15259if ac_fn_c_try_link "$LINENO"; then : 15260 eval $cacheid=yes 15261else 15262 eval $cacheid=no 15263fi 15264rm -f core conftest.err conftest.$ac_objext \ 15265 conftest$ac_exeext conftest.$ac_ext 15266fi 15267 15268 15269 CFLAGS="$xorg_testset_save_CFLAGS" 15270 15271 eval supported=\$$cacheid 15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15273$as_echo "$supported" >&6; } 15274 if test "$supported" = "yes" ; then 15275 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15276 found="yes" 15277 fi 15278 fi 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294xorg_testset_save_CFLAGS="$CFLAGS" 15295 15296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15299$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15300if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15301 $as_echo_n "(cached) " >&6 15302else 15303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15304/* end confdefs.h. */ 15305int i; 15306_ACEOF 15307if ac_fn_c_try_compile "$LINENO"; then : 15308 xorg_cv_cc_flag_unknown_warning_option=yes 15309else 15310 xorg_cv_cc_flag_unknown_warning_option=no 15311fi 15312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15313fi 15314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15315$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15317 CFLAGS="$xorg_testset_save_CFLAGS" 15318fi 15319 15320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15323 fi 15324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15326$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15327if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15328 $as_echo_n "(cached) " >&6 15329else 15330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15331/* end confdefs.h. */ 15332int i; 15333_ACEOF 15334if ac_fn_c_try_compile "$LINENO"; then : 15335 xorg_cv_cc_flag_unused_command_line_argument=yes 15336else 15337 xorg_cv_cc_flag_unused_command_line_argument=no 15338fi 15339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15340fi 15341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15342$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15344 CFLAGS="$xorg_testset_save_CFLAGS" 15345fi 15346 15347found="no" 15348 15349 if test $found = "no" ; then 15350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15352 fi 15353 15354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15356 fi 15357 15358 CFLAGS="$CFLAGS -Werror=nonnull" 15359 15360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15361$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 15362 cacheid=xorg_cv_cc_flag__Werror_nonnull 15363 if eval \${$cacheid+:} false; then : 15364 $as_echo_n "(cached) " >&6 15365else 15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15367/* end confdefs.h. */ 15368int i; 15369int 15370main () 15371{ 15372 15373 ; 15374 return 0; 15375} 15376_ACEOF 15377if ac_fn_c_try_link "$LINENO"; then : 15378 eval $cacheid=yes 15379else 15380 eval $cacheid=no 15381fi 15382rm -f core conftest.err conftest.$ac_objext \ 15383 conftest$ac_exeext conftest.$ac_ext 15384fi 15385 15386 15387 CFLAGS="$xorg_testset_save_CFLAGS" 15388 15389 eval supported=\$$cacheid 15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15391$as_echo "$supported" >&6; } 15392 if test "$supported" = "yes" ; then 15393 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15394 found="yes" 15395 fi 15396 fi 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412xorg_testset_save_CFLAGS="$CFLAGS" 15413 15414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15419 $as_echo_n "(cached) " >&6 15420else 15421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15422/* end confdefs.h. */ 15423int i; 15424_ACEOF 15425if ac_fn_c_try_compile "$LINENO"; then : 15426 xorg_cv_cc_flag_unknown_warning_option=yes 15427else 15428 xorg_cv_cc_flag_unknown_warning_option=no 15429fi 15430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15431fi 15432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15434 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15435 CFLAGS="$xorg_testset_save_CFLAGS" 15436fi 15437 15438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15441 fi 15442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15446 $as_echo_n "(cached) " >&6 15447else 15448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15449/* end confdefs.h. */ 15450int i; 15451_ACEOF 15452if ac_fn_c_try_compile "$LINENO"; then : 15453 xorg_cv_cc_flag_unused_command_line_argument=yes 15454else 15455 xorg_cv_cc_flag_unused_command_line_argument=no 15456fi 15457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15458fi 15459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15462 CFLAGS="$xorg_testset_save_CFLAGS" 15463fi 15464 15465found="no" 15466 15467 if test $found = "no" ; then 15468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15470 fi 15471 15472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15474 fi 15475 15476 CFLAGS="$CFLAGS -Werror=init-self" 15477 15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15479$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 15480 cacheid=xorg_cv_cc_flag__Werror_init_self 15481 if eval \${$cacheid+:} false; then : 15482 $as_echo_n "(cached) " >&6 15483else 15484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15485/* end confdefs.h. */ 15486int i; 15487int 15488main () 15489{ 15490 15491 ; 15492 return 0; 15493} 15494_ACEOF 15495if ac_fn_c_try_link "$LINENO"; then : 15496 eval $cacheid=yes 15497else 15498 eval $cacheid=no 15499fi 15500rm -f core conftest.err conftest.$ac_objext \ 15501 conftest$ac_exeext conftest.$ac_ext 15502fi 15503 15504 15505 CFLAGS="$xorg_testset_save_CFLAGS" 15506 15507 eval supported=\$$cacheid 15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15509$as_echo "$supported" >&6; } 15510 if test "$supported" = "yes" ; then 15511 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15512 found="yes" 15513 fi 15514 fi 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530xorg_testset_save_CFLAGS="$CFLAGS" 15531 15532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15535$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15536if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15537 $as_echo_n "(cached) " >&6 15538else 15539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15540/* end confdefs.h. */ 15541int i; 15542_ACEOF 15543if ac_fn_c_try_compile "$LINENO"; then : 15544 xorg_cv_cc_flag_unknown_warning_option=yes 15545else 15546 xorg_cv_cc_flag_unknown_warning_option=no 15547fi 15548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15549fi 15550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15551$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15553 CFLAGS="$xorg_testset_save_CFLAGS" 15554fi 15555 15556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15559 fi 15560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15562$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15563if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15564 $as_echo_n "(cached) " >&6 15565else 15566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15567/* end confdefs.h. */ 15568int i; 15569_ACEOF 15570if ac_fn_c_try_compile "$LINENO"; then : 15571 xorg_cv_cc_flag_unused_command_line_argument=yes 15572else 15573 xorg_cv_cc_flag_unused_command_line_argument=no 15574fi 15575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15576fi 15577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15578$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15580 CFLAGS="$xorg_testset_save_CFLAGS" 15581fi 15582 15583found="no" 15584 15585 if test $found = "no" ; then 15586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15588 fi 15589 15590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15592 fi 15593 15594 CFLAGS="$CFLAGS -Werror=main" 15595 15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15597$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 15598 cacheid=xorg_cv_cc_flag__Werror_main 15599 if eval \${$cacheid+:} false; then : 15600 $as_echo_n "(cached) " >&6 15601else 15602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15603/* end confdefs.h. */ 15604int i; 15605int 15606main () 15607{ 15608 15609 ; 15610 return 0; 15611} 15612_ACEOF 15613if ac_fn_c_try_link "$LINENO"; then : 15614 eval $cacheid=yes 15615else 15616 eval $cacheid=no 15617fi 15618rm -f core conftest.err conftest.$ac_objext \ 15619 conftest$ac_exeext conftest.$ac_ext 15620fi 15621 15622 15623 CFLAGS="$xorg_testset_save_CFLAGS" 15624 15625 eval supported=\$$cacheid 15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15627$as_echo "$supported" >&6; } 15628 if test "$supported" = "yes" ; then 15629 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15630 found="yes" 15631 fi 15632 fi 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648xorg_testset_save_CFLAGS="$CFLAGS" 15649 15650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15653$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15654if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15655 $as_echo_n "(cached) " >&6 15656else 15657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15658/* end confdefs.h. */ 15659int i; 15660_ACEOF 15661if ac_fn_c_try_compile "$LINENO"; then : 15662 xorg_cv_cc_flag_unknown_warning_option=yes 15663else 15664 xorg_cv_cc_flag_unknown_warning_option=no 15665fi 15666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15667fi 15668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15669$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15671 CFLAGS="$xorg_testset_save_CFLAGS" 15672fi 15673 15674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15677 fi 15678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15680$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15681if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15682 $as_echo_n "(cached) " >&6 15683else 15684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15685/* end confdefs.h. */ 15686int i; 15687_ACEOF 15688if ac_fn_c_try_compile "$LINENO"; then : 15689 xorg_cv_cc_flag_unused_command_line_argument=yes 15690else 15691 xorg_cv_cc_flag_unused_command_line_argument=no 15692fi 15693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15694fi 15695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15696$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15697 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15698 CFLAGS="$xorg_testset_save_CFLAGS" 15699fi 15700 15701found="no" 15702 15703 if test $found = "no" ; then 15704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15706 fi 15707 15708 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15710 fi 15711 15712 CFLAGS="$CFLAGS -Werror=missing-braces" 15713 15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15715$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15716 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15717 if eval \${$cacheid+:} false; then : 15718 $as_echo_n "(cached) " >&6 15719else 15720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15721/* end confdefs.h. */ 15722int i; 15723int 15724main () 15725{ 15726 15727 ; 15728 return 0; 15729} 15730_ACEOF 15731if ac_fn_c_try_link "$LINENO"; then : 15732 eval $cacheid=yes 15733else 15734 eval $cacheid=no 15735fi 15736rm -f core conftest.err conftest.$ac_objext \ 15737 conftest$ac_exeext conftest.$ac_ext 15738fi 15739 15740 15741 CFLAGS="$xorg_testset_save_CFLAGS" 15742 15743 eval supported=\$$cacheid 15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15745$as_echo "$supported" >&6; } 15746 if test "$supported" = "yes" ; then 15747 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15748 found="yes" 15749 fi 15750 fi 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766xorg_testset_save_CFLAGS="$CFLAGS" 15767 15768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15771$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15772if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15773 $as_echo_n "(cached) " >&6 15774else 15775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15776/* end confdefs.h. */ 15777int i; 15778_ACEOF 15779if ac_fn_c_try_compile "$LINENO"; then : 15780 xorg_cv_cc_flag_unknown_warning_option=yes 15781else 15782 xorg_cv_cc_flag_unknown_warning_option=no 15783fi 15784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15785fi 15786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15787$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15789 CFLAGS="$xorg_testset_save_CFLAGS" 15790fi 15791 15792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15795 fi 15796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15798$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15799if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15800 $as_echo_n "(cached) " >&6 15801else 15802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15803/* end confdefs.h. */ 15804int i; 15805_ACEOF 15806if ac_fn_c_try_compile "$LINENO"; then : 15807 xorg_cv_cc_flag_unused_command_line_argument=yes 15808else 15809 xorg_cv_cc_flag_unused_command_line_argument=no 15810fi 15811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15812fi 15813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15814$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15816 CFLAGS="$xorg_testset_save_CFLAGS" 15817fi 15818 15819found="no" 15820 15821 if test $found = "no" ; then 15822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15824 fi 15825 15826 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15828 fi 15829 15830 CFLAGS="$CFLAGS -Werror=sequence-point" 15831 15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15833$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15834 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15835 if eval \${$cacheid+:} false; then : 15836 $as_echo_n "(cached) " >&6 15837else 15838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15839/* end confdefs.h. */ 15840int i; 15841int 15842main () 15843{ 15844 15845 ; 15846 return 0; 15847} 15848_ACEOF 15849if ac_fn_c_try_link "$LINENO"; then : 15850 eval $cacheid=yes 15851else 15852 eval $cacheid=no 15853fi 15854rm -f core conftest.err conftest.$ac_objext \ 15855 conftest$ac_exeext conftest.$ac_ext 15856fi 15857 15858 15859 CFLAGS="$xorg_testset_save_CFLAGS" 15860 15861 eval supported=\$$cacheid 15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15863$as_echo "$supported" >&6; } 15864 if test "$supported" = "yes" ; then 15865 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15866 found="yes" 15867 fi 15868 fi 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884xorg_testset_save_CFLAGS="$CFLAGS" 15885 15886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15889$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15890if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15891 $as_echo_n "(cached) " >&6 15892else 15893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15894/* end confdefs.h. */ 15895int i; 15896_ACEOF 15897if ac_fn_c_try_compile "$LINENO"; then : 15898 xorg_cv_cc_flag_unknown_warning_option=yes 15899else 15900 xorg_cv_cc_flag_unknown_warning_option=no 15901fi 15902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15903fi 15904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15905$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15907 CFLAGS="$xorg_testset_save_CFLAGS" 15908fi 15909 15910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15913 fi 15914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15916$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15917if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15918 $as_echo_n "(cached) " >&6 15919else 15920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15921/* end confdefs.h. */ 15922int i; 15923_ACEOF 15924if ac_fn_c_try_compile "$LINENO"; then : 15925 xorg_cv_cc_flag_unused_command_line_argument=yes 15926else 15927 xorg_cv_cc_flag_unused_command_line_argument=no 15928fi 15929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15930fi 15931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15932$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15934 CFLAGS="$xorg_testset_save_CFLAGS" 15935fi 15936 15937found="no" 15938 15939 if test $found = "no" ; then 15940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15942 fi 15943 15944 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15946 fi 15947 15948 CFLAGS="$CFLAGS -Werror=return-type" 15949 15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15951$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15952 cacheid=xorg_cv_cc_flag__Werror_return_type 15953 if eval \${$cacheid+:} false; then : 15954 $as_echo_n "(cached) " >&6 15955else 15956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15957/* end confdefs.h. */ 15958int i; 15959int 15960main () 15961{ 15962 15963 ; 15964 return 0; 15965} 15966_ACEOF 15967if ac_fn_c_try_link "$LINENO"; then : 15968 eval $cacheid=yes 15969else 15970 eval $cacheid=no 15971fi 15972rm -f core conftest.err conftest.$ac_objext \ 15973 conftest$ac_exeext conftest.$ac_ext 15974fi 15975 15976 15977 CFLAGS="$xorg_testset_save_CFLAGS" 15978 15979 eval supported=\$$cacheid 15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15981$as_echo "$supported" >&6; } 15982 if test "$supported" = "yes" ; then 15983 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15984 found="yes" 15985 fi 15986 fi 15987 15988 if test $found = "no" ; then 15989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15991 fi 15992 15993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15995 fi 15996 15997 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15998 15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16000$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16001 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16002 if eval \${$cacheid+:} false; then : 16003 $as_echo_n "(cached) " >&6 16004else 16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16006/* end confdefs.h. */ 16007int i; 16008int 16009main () 16010{ 16011 16012 ; 16013 return 0; 16014} 16015_ACEOF 16016if ac_fn_c_try_link "$LINENO"; then : 16017 eval $cacheid=yes 16018else 16019 eval $cacheid=no 16020fi 16021rm -f core conftest.err conftest.$ac_objext \ 16022 conftest$ac_exeext conftest.$ac_ext 16023fi 16024 16025 16026 CFLAGS="$xorg_testset_save_CFLAGS" 16027 16028 eval supported=\$$cacheid 16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16030$as_echo "$supported" >&6; } 16031 if test "$supported" = "yes" ; then 16032 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16033 found="yes" 16034 fi 16035 fi 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051xorg_testset_save_CFLAGS="$CFLAGS" 16052 16053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16056$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16057if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16058 $as_echo_n "(cached) " >&6 16059else 16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16061/* end confdefs.h. */ 16062int i; 16063_ACEOF 16064if ac_fn_c_try_compile "$LINENO"; then : 16065 xorg_cv_cc_flag_unknown_warning_option=yes 16066else 16067 xorg_cv_cc_flag_unknown_warning_option=no 16068fi 16069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16070fi 16071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16072$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16074 CFLAGS="$xorg_testset_save_CFLAGS" 16075fi 16076 16077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16080 fi 16081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16083$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16084if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16085 $as_echo_n "(cached) " >&6 16086else 16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16088/* end confdefs.h. */ 16089int i; 16090_ACEOF 16091if ac_fn_c_try_compile "$LINENO"; then : 16092 xorg_cv_cc_flag_unused_command_line_argument=yes 16093else 16094 xorg_cv_cc_flag_unused_command_line_argument=no 16095fi 16096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16097fi 16098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16099$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16101 CFLAGS="$xorg_testset_save_CFLAGS" 16102fi 16103 16104found="no" 16105 16106 if test $found = "no" ; then 16107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16109 fi 16110 16111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16113 fi 16114 16115 CFLAGS="$CFLAGS -Werror=trigraphs" 16116 16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16118$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 16119 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16120 if eval \${$cacheid+:} false; then : 16121 $as_echo_n "(cached) " >&6 16122else 16123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16124/* end confdefs.h. */ 16125int i; 16126int 16127main () 16128{ 16129 16130 ; 16131 return 0; 16132} 16133_ACEOF 16134if ac_fn_c_try_link "$LINENO"; then : 16135 eval $cacheid=yes 16136else 16137 eval $cacheid=no 16138fi 16139rm -f core conftest.err conftest.$ac_objext \ 16140 conftest$ac_exeext conftest.$ac_ext 16141fi 16142 16143 16144 CFLAGS="$xorg_testset_save_CFLAGS" 16145 16146 eval supported=\$$cacheid 16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16148$as_echo "$supported" >&6; } 16149 if test "$supported" = "yes" ; then 16150 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16151 found="yes" 16152 fi 16153 fi 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169xorg_testset_save_CFLAGS="$CFLAGS" 16170 16171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16174$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16175if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16176 $as_echo_n "(cached) " >&6 16177else 16178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16179/* end confdefs.h. */ 16180int i; 16181_ACEOF 16182if ac_fn_c_try_compile "$LINENO"; then : 16183 xorg_cv_cc_flag_unknown_warning_option=yes 16184else 16185 xorg_cv_cc_flag_unknown_warning_option=no 16186fi 16187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16188fi 16189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16190$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16192 CFLAGS="$xorg_testset_save_CFLAGS" 16193fi 16194 16195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16198 fi 16199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16201$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16202if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16203 $as_echo_n "(cached) " >&6 16204else 16205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16206/* end confdefs.h. */ 16207int i; 16208_ACEOF 16209if ac_fn_c_try_compile "$LINENO"; then : 16210 xorg_cv_cc_flag_unused_command_line_argument=yes 16211else 16212 xorg_cv_cc_flag_unused_command_line_argument=no 16213fi 16214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16215fi 16216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16217$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16219 CFLAGS="$xorg_testset_save_CFLAGS" 16220fi 16221 16222found="no" 16223 16224 if test $found = "no" ; then 16225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16227 fi 16228 16229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16231 fi 16232 16233 CFLAGS="$CFLAGS -Werror=array-bounds" 16234 16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16236$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 16237 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16238 if eval \${$cacheid+:} false; then : 16239 $as_echo_n "(cached) " >&6 16240else 16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16242/* end confdefs.h. */ 16243int i; 16244int 16245main () 16246{ 16247 16248 ; 16249 return 0; 16250} 16251_ACEOF 16252if ac_fn_c_try_link "$LINENO"; then : 16253 eval $cacheid=yes 16254else 16255 eval $cacheid=no 16256fi 16257rm -f core conftest.err conftest.$ac_objext \ 16258 conftest$ac_exeext conftest.$ac_ext 16259fi 16260 16261 16262 CFLAGS="$xorg_testset_save_CFLAGS" 16263 16264 eval supported=\$$cacheid 16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16266$as_echo "$supported" >&6; } 16267 if test "$supported" = "yes" ; then 16268 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16269 found="yes" 16270 fi 16271 fi 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287xorg_testset_save_CFLAGS="$CFLAGS" 16288 16289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16292$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16293if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16294 $as_echo_n "(cached) " >&6 16295else 16296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16297/* end confdefs.h. */ 16298int i; 16299_ACEOF 16300if ac_fn_c_try_compile "$LINENO"; then : 16301 xorg_cv_cc_flag_unknown_warning_option=yes 16302else 16303 xorg_cv_cc_flag_unknown_warning_option=no 16304fi 16305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16306fi 16307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16308$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16310 CFLAGS="$xorg_testset_save_CFLAGS" 16311fi 16312 16313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16316 fi 16317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16319$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16320if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16321 $as_echo_n "(cached) " >&6 16322else 16323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16324/* end confdefs.h. */ 16325int i; 16326_ACEOF 16327if ac_fn_c_try_compile "$LINENO"; then : 16328 xorg_cv_cc_flag_unused_command_line_argument=yes 16329else 16330 xorg_cv_cc_flag_unused_command_line_argument=no 16331fi 16332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16333fi 16334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16335$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16337 CFLAGS="$xorg_testset_save_CFLAGS" 16338fi 16339 16340found="no" 16341 16342 if test $found = "no" ; then 16343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16345 fi 16346 16347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16349 fi 16350 16351 CFLAGS="$CFLAGS -Werror=write-strings" 16352 16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16354$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 16355 cacheid=xorg_cv_cc_flag__Werror_write_strings 16356 if eval \${$cacheid+:} false; then : 16357 $as_echo_n "(cached) " >&6 16358else 16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16360/* end confdefs.h. */ 16361int i; 16362int 16363main () 16364{ 16365 16366 ; 16367 return 0; 16368} 16369_ACEOF 16370if ac_fn_c_try_link "$LINENO"; then : 16371 eval $cacheid=yes 16372else 16373 eval $cacheid=no 16374fi 16375rm -f core conftest.err conftest.$ac_objext \ 16376 conftest$ac_exeext conftest.$ac_ext 16377fi 16378 16379 16380 CFLAGS="$xorg_testset_save_CFLAGS" 16381 16382 eval supported=\$$cacheid 16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16384$as_echo "$supported" >&6; } 16385 if test "$supported" = "yes" ; then 16386 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16387 found="yes" 16388 fi 16389 fi 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405xorg_testset_save_CFLAGS="$CFLAGS" 16406 16407if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16410$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16411if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16412 $as_echo_n "(cached) " >&6 16413else 16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16415/* end confdefs.h. */ 16416int i; 16417_ACEOF 16418if ac_fn_c_try_compile "$LINENO"; then : 16419 xorg_cv_cc_flag_unknown_warning_option=yes 16420else 16421 xorg_cv_cc_flag_unknown_warning_option=no 16422fi 16423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16424fi 16425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16426$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16428 CFLAGS="$xorg_testset_save_CFLAGS" 16429fi 16430 16431if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16434 fi 16435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16437$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16438if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16439 $as_echo_n "(cached) " >&6 16440else 16441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16442/* end confdefs.h. */ 16443int i; 16444_ACEOF 16445if ac_fn_c_try_compile "$LINENO"; then : 16446 xorg_cv_cc_flag_unused_command_line_argument=yes 16447else 16448 xorg_cv_cc_flag_unused_command_line_argument=no 16449fi 16450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16451fi 16452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16453$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16455 CFLAGS="$xorg_testset_save_CFLAGS" 16456fi 16457 16458found="no" 16459 16460 if test $found = "no" ; then 16461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16463 fi 16464 16465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16467 fi 16468 16469 CFLAGS="$CFLAGS -Werror=address" 16470 16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16472$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 16473 cacheid=xorg_cv_cc_flag__Werror_address 16474 if eval \${$cacheid+:} false; then : 16475 $as_echo_n "(cached) " >&6 16476else 16477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16478/* end confdefs.h. */ 16479int i; 16480int 16481main () 16482{ 16483 16484 ; 16485 return 0; 16486} 16487_ACEOF 16488if ac_fn_c_try_link "$LINENO"; then : 16489 eval $cacheid=yes 16490else 16491 eval $cacheid=no 16492fi 16493rm -f core conftest.err conftest.$ac_objext \ 16494 conftest$ac_exeext conftest.$ac_ext 16495fi 16496 16497 16498 CFLAGS="$xorg_testset_save_CFLAGS" 16499 16500 eval supported=\$$cacheid 16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16502$as_echo "$supported" >&6; } 16503 if test "$supported" = "yes" ; then 16504 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16505 found="yes" 16506 fi 16507 fi 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523xorg_testset_save_CFLAGS="$CFLAGS" 16524 16525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16528$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16529if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16530 $as_echo_n "(cached) " >&6 16531else 16532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16533/* end confdefs.h. */ 16534int i; 16535_ACEOF 16536if ac_fn_c_try_compile "$LINENO"; then : 16537 xorg_cv_cc_flag_unknown_warning_option=yes 16538else 16539 xorg_cv_cc_flag_unknown_warning_option=no 16540fi 16541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16542fi 16543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16544$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16546 CFLAGS="$xorg_testset_save_CFLAGS" 16547fi 16548 16549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16552 fi 16553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16555$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16556if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16557 $as_echo_n "(cached) " >&6 16558else 16559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16560/* end confdefs.h. */ 16561int i; 16562_ACEOF 16563if ac_fn_c_try_compile "$LINENO"; then : 16564 xorg_cv_cc_flag_unused_command_line_argument=yes 16565else 16566 xorg_cv_cc_flag_unused_command_line_argument=no 16567fi 16568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16569fi 16570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16571$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16573 CFLAGS="$xorg_testset_save_CFLAGS" 16574fi 16575 16576found="no" 16577 16578 if test $found = "no" ; then 16579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16581 fi 16582 16583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16585 fi 16586 16587 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16588 16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16590$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16591 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16592 if eval \${$cacheid+:} false; then : 16593 $as_echo_n "(cached) " >&6 16594else 16595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16596/* end confdefs.h. */ 16597int i; 16598int 16599main () 16600{ 16601 16602 ; 16603 return 0; 16604} 16605_ACEOF 16606if ac_fn_c_try_link "$LINENO"; then : 16607 eval $cacheid=yes 16608else 16609 eval $cacheid=no 16610fi 16611rm -f core conftest.err conftest.$ac_objext \ 16612 conftest$ac_exeext conftest.$ac_ext 16613fi 16614 16615 16616 CFLAGS="$xorg_testset_save_CFLAGS" 16617 16618 eval supported=\$$cacheid 16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16620$as_echo "$supported" >&6; } 16621 if test "$supported" = "yes" ; then 16622 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16623 found="yes" 16624 fi 16625 fi 16626 16627 if test $found = "no" ; then 16628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16630 fi 16631 16632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16634 fi 16635 16636 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16637 16638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16639$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16640 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16641 if eval \${$cacheid+:} false; then : 16642 $as_echo_n "(cached) " >&6 16643else 16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16645/* end confdefs.h. */ 16646int i; 16647int 16648main () 16649{ 16650 16651 ; 16652 return 0; 16653} 16654_ACEOF 16655if ac_fn_c_try_link "$LINENO"; then : 16656 eval $cacheid=yes 16657else 16658 eval $cacheid=no 16659fi 16660rm -f core conftest.err conftest.$ac_objext \ 16661 conftest$ac_exeext conftest.$ac_ext 16662fi 16663 16664 16665 CFLAGS="$xorg_testset_save_CFLAGS" 16666 16667 eval supported=\$$cacheid 16668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16669$as_echo "$supported" >&6; } 16670 if test "$supported" = "yes" ; then 16671 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16672 found="yes" 16673 fi 16674 fi 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690xorg_testset_save_CFLAGS="$CFLAGS" 16691 16692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16695$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16696if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16697 $as_echo_n "(cached) " >&6 16698else 16699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16700/* end confdefs.h. */ 16701int i; 16702_ACEOF 16703if ac_fn_c_try_compile "$LINENO"; then : 16704 xorg_cv_cc_flag_unknown_warning_option=yes 16705else 16706 xorg_cv_cc_flag_unknown_warning_option=no 16707fi 16708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16709fi 16710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16711$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16713 CFLAGS="$xorg_testset_save_CFLAGS" 16714fi 16715 16716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16719 fi 16720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16722$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16723if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16724 $as_echo_n "(cached) " >&6 16725else 16726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16727/* end confdefs.h. */ 16728int i; 16729_ACEOF 16730if ac_fn_c_try_compile "$LINENO"; then : 16731 xorg_cv_cc_flag_unused_command_line_argument=yes 16732else 16733 xorg_cv_cc_flag_unused_command_line_argument=no 16734fi 16735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16736fi 16737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16738$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16740 CFLAGS="$xorg_testset_save_CFLAGS" 16741fi 16742 16743found="no" 16744 16745 if test $found = "no" ; then 16746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16748 fi 16749 16750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16752 fi 16753 16754 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16755 16756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16757$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16758 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16759 if eval \${$cacheid+:} false; then : 16760 $as_echo_n "(cached) " >&6 16761else 16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16763/* end confdefs.h. */ 16764int i; 16765int 16766main () 16767{ 16768 16769 ; 16770 return 0; 16771} 16772_ACEOF 16773if ac_fn_c_try_link "$LINENO"; then : 16774 eval $cacheid=yes 16775else 16776 eval $cacheid=no 16777fi 16778rm -f core conftest.err conftest.$ac_objext \ 16779 conftest$ac_exeext conftest.$ac_ext 16780fi 16781 16782 16783 CFLAGS="$xorg_testset_save_CFLAGS" 16784 16785 eval supported=\$$cacheid 16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16787$as_echo "$supported" >&6; } 16788 if test "$supported" = "yes" ; then 16789 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16790 found="yes" 16791 fi 16792 fi 16793 16794 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16795else 16796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 16797$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811xorg_testset_save_CFLAGS="$CFLAGS" 16812 16813if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16816$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16817if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16818 $as_echo_n "(cached) " >&6 16819else 16820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16821/* end confdefs.h. */ 16822int i; 16823_ACEOF 16824if ac_fn_c_try_compile "$LINENO"; then : 16825 xorg_cv_cc_flag_unknown_warning_option=yes 16826else 16827 xorg_cv_cc_flag_unknown_warning_option=no 16828fi 16829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16830fi 16831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16832$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16833 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16834 CFLAGS="$xorg_testset_save_CFLAGS" 16835fi 16836 16837if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16840 fi 16841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16843$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16844if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16845 $as_echo_n "(cached) " >&6 16846else 16847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16848/* end confdefs.h. */ 16849int i; 16850_ACEOF 16851if ac_fn_c_try_compile "$LINENO"; then : 16852 xorg_cv_cc_flag_unused_command_line_argument=yes 16853else 16854 xorg_cv_cc_flag_unused_command_line_argument=no 16855fi 16856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16857fi 16858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16859$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16861 CFLAGS="$xorg_testset_save_CFLAGS" 16862fi 16863 16864found="no" 16865 16866 if test $found = "no" ; then 16867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16869 fi 16870 16871 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16873 fi 16874 16875 CFLAGS="$CFLAGS -Wimplicit" 16876 16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16878$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16879 cacheid=xorg_cv_cc_flag__Wimplicit 16880 if eval \${$cacheid+:} false; then : 16881 $as_echo_n "(cached) " >&6 16882else 16883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16884/* end confdefs.h. */ 16885int i; 16886int 16887main () 16888{ 16889 16890 ; 16891 return 0; 16892} 16893_ACEOF 16894if ac_fn_c_try_link "$LINENO"; then : 16895 eval $cacheid=yes 16896else 16897 eval $cacheid=no 16898fi 16899rm -f core conftest.err conftest.$ac_objext \ 16900 conftest$ac_exeext conftest.$ac_ext 16901fi 16902 16903 16904 CFLAGS="$xorg_testset_save_CFLAGS" 16905 16906 eval supported=\$$cacheid 16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16908$as_echo "$supported" >&6; } 16909 if test "$supported" = "yes" ; then 16910 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16911 found="yes" 16912 fi 16913 fi 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929xorg_testset_save_CFLAGS="$CFLAGS" 16930 16931if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16934$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16935if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16936 $as_echo_n "(cached) " >&6 16937else 16938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16939/* end confdefs.h. */ 16940int i; 16941_ACEOF 16942if ac_fn_c_try_compile "$LINENO"; then : 16943 xorg_cv_cc_flag_unknown_warning_option=yes 16944else 16945 xorg_cv_cc_flag_unknown_warning_option=no 16946fi 16947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16948fi 16949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16950$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16951 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16952 CFLAGS="$xorg_testset_save_CFLAGS" 16953fi 16954 16955if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16958 fi 16959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16961$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16962if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16963 $as_echo_n "(cached) " >&6 16964else 16965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16966/* end confdefs.h. */ 16967int i; 16968_ACEOF 16969if ac_fn_c_try_compile "$LINENO"; then : 16970 xorg_cv_cc_flag_unused_command_line_argument=yes 16971else 16972 xorg_cv_cc_flag_unused_command_line_argument=no 16973fi 16974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16975fi 16976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16977$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16979 CFLAGS="$xorg_testset_save_CFLAGS" 16980fi 16981 16982found="no" 16983 16984 if test $found = "no" ; then 16985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16987 fi 16988 16989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16991 fi 16992 16993 CFLAGS="$CFLAGS -Wnonnull" 16994 16995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16996$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16997 cacheid=xorg_cv_cc_flag__Wnonnull 16998 if eval \${$cacheid+:} false; then : 16999 $as_echo_n "(cached) " >&6 17000else 17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17002/* end confdefs.h. */ 17003int i; 17004int 17005main () 17006{ 17007 17008 ; 17009 return 0; 17010} 17011_ACEOF 17012if ac_fn_c_try_link "$LINENO"; then : 17013 eval $cacheid=yes 17014else 17015 eval $cacheid=no 17016fi 17017rm -f core conftest.err conftest.$ac_objext \ 17018 conftest$ac_exeext conftest.$ac_ext 17019fi 17020 17021 17022 CFLAGS="$xorg_testset_save_CFLAGS" 17023 17024 eval supported=\$$cacheid 17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17026$as_echo "$supported" >&6; } 17027 if test "$supported" = "yes" ; then 17028 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17029 found="yes" 17030 fi 17031 fi 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047xorg_testset_save_CFLAGS="$CFLAGS" 17048 17049if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17052$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17053if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17054 $as_echo_n "(cached) " >&6 17055else 17056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17057/* end confdefs.h. */ 17058int i; 17059_ACEOF 17060if ac_fn_c_try_compile "$LINENO"; then : 17061 xorg_cv_cc_flag_unknown_warning_option=yes 17062else 17063 xorg_cv_cc_flag_unknown_warning_option=no 17064fi 17065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17066fi 17067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17068$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17070 CFLAGS="$xorg_testset_save_CFLAGS" 17071fi 17072 17073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17076 fi 17077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17079$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17080if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17081 $as_echo_n "(cached) " >&6 17082else 17083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17084/* end confdefs.h. */ 17085int i; 17086_ACEOF 17087if ac_fn_c_try_compile "$LINENO"; then : 17088 xorg_cv_cc_flag_unused_command_line_argument=yes 17089else 17090 xorg_cv_cc_flag_unused_command_line_argument=no 17091fi 17092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17093fi 17094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17095$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17097 CFLAGS="$xorg_testset_save_CFLAGS" 17098fi 17099 17100found="no" 17101 17102 if test $found = "no" ; then 17103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17105 fi 17106 17107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17109 fi 17110 17111 CFLAGS="$CFLAGS -Winit-self" 17112 17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17114$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 17115 cacheid=xorg_cv_cc_flag__Winit_self 17116 if eval \${$cacheid+:} false; then : 17117 $as_echo_n "(cached) " >&6 17118else 17119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17120/* end confdefs.h. */ 17121int i; 17122int 17123main () 17124{ 17125 17126 ; 17127 return 0; 17128} 17129_ACEOF 17130if ac_fn_c_try_link "$LINENO"; then : 17131 eval $cacheid=yes 17132else 17133 eval $cacheid=no 17134fi 17135rm -f core conftest.err conftest.$ac_objext \ 17136 conftest$ac_exeext conftest.$ac_ext 17137fi 17138 17139 17140 CFLAGS="$xorg_testset_save_CFLAGS" 17141 17142 eval supported=\$$cacheid 17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17144$as_echo "$supported" >&6; } 17145 if test "$supported" = "yes" ; then 17146 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17147 found="yes" 17148 fi 17149 fi 17150 17151 17152 17153 17154 17155 17156 17157 17158 17159 17160 17161 17162 17163 17164 17165xorg_testset_save_CFLAGS="$CFLAGS" 17166 17167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17170$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17171if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17172 $as_echo_n "(cached) " >&6 17173else 17174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17175/* end confdefs.h. */ 17176int i; 17177_ACEOF 17178if ac_fn_c_try_compile "$LINENO"; then : 17179 xorg_cv_cc_flag_unknown_warning_option=yes 17180else 17181 xorg_cv_cc_flag_unknown_warning_option=no 17182fi 17183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17184fi 17185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17186$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17188 CFLAGS="$xorg_testset_save_CFLAGS" 17189fi 17190 17191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17194 fi 17195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17197$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17198if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17199 $as_echo_n "(cached) " >&6 17200else 17201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17202/* end confdefs.h. */ 17203int i; 17204_ACEOF 17205if ac_fn_c_try_compile "$LINENO"; then : 17206 xorg_cv_cc_flag_unused_command_line_argument=yes 17207else 17208 xorg_cv_cc_flag_unused_command_line_argument=no 17209fi 17210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17211fi 17212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17213$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17215 CFLAGS="$xorg_testset_save_CFLAGS" 17216fi 17217 17218found="no" 17219 17220 if test $found = "no" ; then 17221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17223 fi 17224 17225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17227 fi 17228 17229 CFLAGS="$CFLAGS -Wmain" 17230 17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17232$as_echo_n "checking if $CC supports -Wmain... " >&6; } 17233 cacheid=xorg_cv_cc_flag__Wmain 17234 if eval \${$cacheid+:} false; then : 17235 $as_echo_n "(cached) " >&6 17236else 17237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17238/* end confdefs.h. */ 17239int i; 17240int 17241main () 17242{ 17243 17244 ; 17245 return 0; 17246} 17247_ACEOF 17248if ac_fn_c_try_link "$LINENO"; then : 17249 eval $cacheid=yes 17250else 17251 eval $cacheid=no 17252fi 17253rm -f core conftest.err conftest.$ac_objext \ 17254 conftest$ac_exeext conftest.$ac_ext 17255fi 17256 17257 17258 CFLAGS="$xorg_testset_save_CFLAGS" 17259 17260 eval supported=\$$cacheid 17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17262$as_echo "$supported" >&6; } 17263 if test "$supported" = "yes" ; then 17264 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17265 found="yes" 17266 fi 17267 fi 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 17278 17279 17280 17281 17282 17283xorg_testset_save_CFLAGS="$CFLAGS" 17284 17285if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17288$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17289if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17290 $as_echo_n "(cached) " >&6 17291else 17292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17293/* end confdefs.h. */ 17294int i; 17295_ACEOF 17296if ac_fn_c_try_compile "$LINENO"; then : 17297 xorg_cv_cc_flag_unknown_warning_option=yes 17298else 17299 xorg_cv_cc_flag_unknown_warning_option=no 17300fi 17301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17302fi 17303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17304$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17306 CFLAGS="$xorg_testset_save_CFLAGS" 17307fi 17308 17309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17312 fi 17313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17315$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17316if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17317 $as_echo_n "(cached) " >&6 17318else 17319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17320/* end confdefs.h. */ 17321int i; 17322_ACEOF 17323if ac_fn_c_try_compile "$LINENO"; then : 17324 xorg_cv_cc_flag_unused_command_line_argument=yes 17325else 17326 xorg_cv_cc_flag_unused_command_line_argument=no 17327fi 17328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17329fi 17330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17331$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17332 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17333 CFLAGS="$xorg_testset_save_CFLAGS" 17334fi 17335 17336found="no" 17337 17338 if test $found = "no" ; then 17339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17341 fi 17342 17343 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17345 fi 17346 17347 CFLAGS="$CFLAGS -Wmissing-braces" 17348 17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17350$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 17351 cacheid=xorg_cv_cc_flag__Wmissing_braces 17352 if eval \${$cacheid+:} false; then : 17353 $as_echo_n "(cached) " >&6 17354else 17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17356/* end confdefs.h. */ 17357int i; 17358int 17359main () 17360{ 17361 17362 ; 17363 return 0; 17364} 17365_ACEOF 17366if ac_fn_c_try_link "$LINENO"; then : 17367 eval $cacheid=yes 17368else 17369 eval $cacheid=no 17370fi 17371rm -f core conftest.err conftest.$ac_objext \ 17372 conftest$ac_exeext conftest.$ac_ext 17373fi 17374 17375 17376 CFLAGS="$xorg_testset_save_CFLAGS" 17377 17378 eval supported=\$$cacheid 17379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17380$as_echo "$supported" >&6; } 17381 if test "$supported" = "yes" ; then 17382 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17383 found="yes" 17384 fi 17385 fi 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401xorg_testset_save_CFLAGS="$CFLAGS" 17402 17403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17406$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17407if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17408 $as_echo_n "(cached) " >&6 17409else 17410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17411/* end confdefs.h. */ 17412int i; 17413_ACEOF 17414if ac_fn_c_try_compile "$LINENO"; then : 17415 xorg_cv_cc_flag_unknown_warning_option=yes 17416else 17417 xorg_cv_cc_flag_unknown_warning_option=no 17418fi 17419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17420fi 17421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17422$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17424 CFLAGS="$xorg_testset_save_CFLAGS" 17425fi 17426 17427if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17430 fi 17431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17433$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17434if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17435 $as_echo_n "(cached) " >&6 17436else 17437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17438/* end confdefs.h. */ 17439int i; 17440_ACEOF 17441if ac_fn_c_try_compile "$LINENO"; then : 17442 xorg_cv_cc_flag_unused_command_line_argument=yes 17443else 17444 xorg_cv_cc_flag_unused_command_line_argument=no 17445fi 17446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17447fi 17448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17449$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17451 CFLAGS="$xorg_testset_save_CFLAGS" 17452fi 17453 17454found="no" 17455 17456 if test $found = "no" ; then 17457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17459 fi 17460 17461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17463 fi 17464 17465 CFLAGS="$CFLAGS -Wsequence-point" 17466 17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17468$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 17469 cacheid=xorg_cv_cc_flag__Wsequence_point 17470 if eval \${$cacheid+:} false; then : 17471 $as_echo_n "(cached) " >&6 17472else 17473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17474/* end confdefs.h. */ 17475int i; 17476int 17477main () 17478{ 17479 17480 ; 17481 return 0; 17482} 17483_ACEOF 17484if ac_fn_c_try_link "$LINENO"; then : 17485 eval $cacheid=yes 17486else 17487 eval $cacheid=no 17488fi 17489rm -f core conftest.err conftest.$ac_objext \ 17490 conftest$ac_exeext conftest.$ac_ext 17491fi 17492 17493 17494 CFLAGS="$xorg_testset_save_CFLAGS" 17495 17496 eval supported=\$$cacheid 17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17498$as_echo "$supported" >&6; } 17499 if test "$supported" = "yes" ; then 17500 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17501 found="yes" 17502 fi 17503 fi 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519xorg_testset_save_CFLAGS="$CFLAGS" 17520 17521if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17524$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17525if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17526 $as_echo_n "(cached) " >&6 17527else 17528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17529/* end confdefs.h. */ 17530int i; 17531_ACEOF 17532if ac_fn_c_try_compile "$LINENO"; then : 17533 xorg_cv_cc_flag_unknown_warning_option=yes 17534else 17535 xorg_cv_cc_flag_unknown_warning_option=no 17536fi 17537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17538fi 17539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17540$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17542 CFLAGS="$xorg_testset_save_CFLAGS" 17543fi 17544 17545if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17548 fi 17549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17551$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17552if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17553 $as_echo_n "(cached) " >&6 17554else 17555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17556/* end confdefs.h. */ 17557int i; 17558_ACEOF 17559if ac_fn_c_try_compile "$LINENO"; then : 17560 xorg_cv_cc_flag_unused_command_line_argument=yes 17561else 17562 xorg_cv_cc_flag_unused_command_line_argument=no 17563fi 17564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17565fi 17566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17567$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17568 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17569 CFLAGS="$xorg_testset_save_CFLAGS" 17570fi 17571 17572found="no" 17573 17574 if test $found = "no" ; then 17575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17577 fi 17578 17579 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17581 fi 17582 17583 CFLAGS="$CFLAGS -Wreturn-type" 17584 17585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17586$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 17587 cacheid=xorg_cv_cc_flag__Wreturn_type 17588 if eval \${$cacheid+:} false; then : 17589 $as_echo_n "(cached) " >&6 17590else 17591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17592/* end confdefs.h. */ 17593int i; 17594int 17595main () 17596{ 17597 17598 ; 17599 return 0; 17600} 17601_ACEOF 17602if ac_fn_c_try_link "$LINENO"; then : 17603 eval $cacheid=yes 17604else 17605 eval $cacheid=no 17606fi 17607rm -f core conftest.err conftest.$ac_objext \ 17608 conftest$ac_exeext conftest.$ac_ext 17609fi 17610 17611 17612 CFLAGS="$xorg_testset_save_CFLAGS" 17613 17614 eval supported=\$$cacheid 17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17616$as_echo "$supported" >&6; } 17617 if test "$supported" = "yes" ; then 17618 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17619 found="yes" 17620 fi 17621 fi 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637xorg_testset_save_CFLAGS="$CFLAGS" 17638 17639if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17642$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17643if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17644 $as_echo_n "(cached) " >&6 17645else 17646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17647/* end confdefs.h. */ 17648int i; 17649_ACEOF 17650if ac_fn_c_try_compile "$LINENO"; then : 17651 xorg_cv_cc_flag_unknown_warning_option=yes 17652else 17653 xorg_cv_cc_flag_unknown_warning_option=no 17654fi 17655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17656fi 17657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17658$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17660 CFLAGS="$xorg_testset_save_CFLAGS" 17661fi 17662 17663if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17666 fi 17667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17669$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17670if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17671 $as_echo_n "(cached) " >&6 17672else 17673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17674/* end confdefs.h. */ 17675int i; 17676_ACEOF 17677if ac_fn_c_try_compile "$LINENO"; then : 17678 xorg_cv_cc_flag_unused_command_line_argument=yes 17679else 17680 xorg_cv_cc_flag_unused_command_line_argument=no 17681fi 17682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17683fi 17684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17685$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17687 CFLAGS="$xorg_testset_save_CFLAGS" 17688fi 17689 17690found="no" 17691 17692 if test $found = "no" ; then 17693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17695 fi 17696 17697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17699 fi 17700 17701 CFLAGS="$CFLAGS -Wtrigraphs" 17702 17703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17704$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17705 cacheid=xorg_cv_cc_flag__Wtrigraphs 17706 if eval \${$cacheid+:} false; then : 17707 $as_echo_n "(cached) " >&6 17708else 17709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17710/* end confdefs.h. */ 17711int i; 17712int 17713main () 17714{ 17715 17716 ; 17717 return 0; 17718} 17719_ACEOF 17720if ac_fn_c_try_link "$LINENO"; then : 17721 eval $cacheid=yes 17722else 17723 eval $cacheid=no 17724fi 17725rm -f core conftest.err conftest.$ac_objext \ 17726 conftest$ac_exeext conftest.$ac_ext 17727fi 17728 17729 17730 CFLAGS="$xorg_testset_save_CFLAGS" 17731 17732 eval supported=\$$cacheid 17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17734$as_echo "$supported" >&6; } 17735 if test "$supported" = "yes" ; then 17736 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17737 found="yes" 17738 fi 17739 fi 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755xorg_testset_save_CFLAGS="$CFLAGS" 17756 17757if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17760$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17761if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17762 $as_echo_n "(cached) " >&6 17763else 17764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17765/* end confdefs.h. */ 17766int i; 17767_ACEOF 17768if ac_fn_c_try_compile "$LINENO"; then : 17769 xorg_cv_cc_flag_unknown_warning_option=yes 17770else 17771 xorg_cv_cc_flag_unknown_warning_option=no 17772fi 17773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17774fi 17775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17776$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17777 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17778 CFLAGS="$xorg_testset_save_CFLAGS" 17779fi 17780 17781if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17784 fi 17785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17787$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17788if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17789 $as_echo_n "(cached) " >&6 17790else 17791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17792/* end confdefs.h. */ 17793int i; 17794_ACEOF 17795if ac_fn_c_try_compile "$LINENO"; then : 17796 xorg_cv_cc_flag_unused_command_line_argument=yes 17797else 17798 xorg_cv_cc_flag_unused_command_line_argument=no 17799fi 17800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17801fi 17802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17803$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17804 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17805 CFLAGS="$xorg_testset_save_CFLAGS" 17806fi 17807 17808found="no" 17809 17810 if test $found = "no" ; then 17811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17813 fi 17814 17815 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17817 fi 17818 17819 CFLAGS="$CFLAGS -Warray-bounds" 17820 17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17822$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17823 cacheid=xorg_cv_cc_flag__Warray_bounds 17824 if eval \${$cacheid+:} false; then : 17825 $as_echo_n "(cached) " >&6 17826else 17827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17828/* end confdefs.h. */ 17829int i; 17830int 17831main () 17832{ 17833 17834 ; 17835 return 0; 17836} 17837_ACEOF 17838if ac_fn_c_try_link "$LINENO"; then : 17839 eval $cacheid=yes 17840else 17841 eval $cacheid=no 17842fi 17843rm -f core conftest.err conftest.$ac_objext \ 17844 conftest$ac_exeext conftest.$ac_ext 17845fi 17846 17847 17848 CFLAGS="$xorg_testset_save_CFLAGS" 17849 17850 eval supported=\$$cacheid 17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17852$as_echo "$supported" >&6; } 17853 if test "$supported" = "yes" ; then 17854 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17855 found="yes" 17856 fi 17857 fi 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 17869 17870 17871 17872 17873xorg_testset_save_CFLAGS="$CFLAGS" 17874 17875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17878$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17879if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17880 $as_echo_n "(cached) " >&6 17881else 17882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17883/* end confdefs.h. */ 17884int i; 17885_ACEOF 17886if ac_fn_c_try_compile "$LINENO"; then : 17887 xorg_cv_cc_flag_unknown_warning_option=yes 17888else 17889 xorg_cv_cc_flag_unknown_warning_option=no 17890fi 17891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17892fi 17893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17894$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17895 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17896 CFLAGS="$xorg_testset_save_CFLAGS" 17897fi 17898 17899if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17902 fi 17903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17905$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17906if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17907 $as_echo_n "(cached) " >&6 17908else 17909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17910/* end confdefs.h. */ 17911int i; 17912_ACEOF 17913if ac_fn_c_try_compile "$LINENO"; then : 17914 xorg_cv_cc_flag_unused_command_line_argument=yes 17915else 17916 xorg_cv_cc_flag_unused_command_line_argument=no 17917fi 17918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17919fi 17920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17921$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17922 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17923 CFLAGS="$xorg_testset_save_CFLAGS" 17924fi 17925 17926found="no" 17927 17928 if test $found = "no" ; then 17929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17931 fi 17932 17933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17935 fi 17936 17937 CFLAGS="$CFLAGS -Wwrite-strings" 17938 17939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17940$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17941 cacheid=xorg_cv_cc_flag__Wwrite_strings 17942 if eval \${$cacheid+:} false; then : 17943 $as_echo_n "(cached) " >&6 17944else 17945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17946/* end confdefs.h. */ 17947int i; 17948int 17949main () 17950{ 17951 17952 ; 17953 return 0; 17954} 17955_ACEOF 17956if ac_fn_c_try_link "$LINENO"; then : 17957 eval $cacheid=yes 17958else 17959 eval $cacheid=no 17960fi 17961rm -f core conftest.err conftest.$ac_objext \ 17962 conftest$ac_exeext conftest.$ac_ext 17963fi 17964 17965 17966 CFLAGS="$xorg_testset_save_CFLAGS" 17967 17968 eval supported=\$$cacheid 17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17970$as_echo "$supported" >&6; } 17971 if test "$supported" = "yes" ; then 17972 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17973 found="yes" 17974 fi 17975 fi 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991xorg_testset_save_CFLAGS="$CFLAGS" 17992 17993if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17996$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17997if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17998 $as_echo_n "(cached) " >&6 17999else 18000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18001/* end confdefs.h. */ 18002int i; 18003_ACEOF 18004if ac_fn_c_try_compile "$LINENO"; then : 18005 xorg_cv_cc_flag_unknown_warning_option=yes 18006else 18007 xorg_cv_cc_flag_unknown_warning_option=no 18008fi 18009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18010fi 18011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18012$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18013 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18014 CFLAGS="$xorg_testset_save_CFLAGS" 18015fi 18016 18017if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18020 fi 18021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18023$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18024if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18025 $as_echo_n "(cached) " >&6 18026else 18027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18028/* end confdefs.h. */ 18029int i; 18030_ACEOF 18031if ac_fn_c_try_compile "$LINENO"; then : 18032 xorg_cv_cc_flag_unused_command_line_argument=yes 18033else 18034 xorg_cv_cc_flag_unused_command_line_argument=no 18035fi 18036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18037fi 18038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18039$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18040 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18041 CFLAGS="$xorg_testset_save_CFLAGS" 18042fi 18043 18044found="no" 18045 18046 if test $found = "no" ; then 18047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18049 fi 18050 18051 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18053 fi 18054 18055 CFLAGS="$CFLAGS -Waddress" 18056 18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18058$as_echo_n "checking if $CC supports -Waddress... " >&6; } 18059 cacheid=xorg_cv_cc_flag__Waddress 18060 if eval \${$cacheid+:} false; then : 18061 $as_echo_n "(cached) " >&6 18062else 18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18064/* end confdefs.h. */ 18065int i; 18066int 18067main () 18068{ 18069 18070 ; 18071 return 0; 18072} 18073_ACEOF 18074if ac_fn_c_try_link "$LINENO"; then : 18075 eval $cacheid=yes 18076else 18077 eval $cacheid=no 18078fi 18079rm -f core conftest.err conftest.$ac_objext \ 18080 conftest$ac_exeext conftest.$ac_ext 18081fi 18082 18083 18084 CFLAGS="$xorg_testset_save_CFLAGS" 18085 18086 eval supported=\$$cacheid 18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18088$as_echo "$supported" >&6; } 18089 if test "$supported" = "yes" ; then 18090 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18091 found="yes" 18092 fi 18093 fi 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109xorg_testset_save_CFLAGS="$CFLAGS" 18110 18111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18114$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18115if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18116 $as_echo_n "(cached) " >&6 18117else 18118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18119/* end confdefs.h. */ 18120int i; 18121_ACEOF 18122if ac_fn_c_try_compile "$LINENO"; then : 18123 xorg_cv_cc_flag_unknown_warning_option=yes 18124else 18125 xorg_cv_cc_flag_unknown_warning_option=no 18126fi 18127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18128fi 18129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18130$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18131 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18132 CFLAGS="$xorg_testset_save_CFLAGS" 18133fi 18134 18135if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18138 fi 18139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18141$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18142if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18143 $as_echo_n "(cached) " >&6 18144else 18145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18146/* end confdefs.h. */ 18147int i; 18148_ACEOF 18149if ac_fn_c_try_compile "$LINENO"; then : 18150 xorg_cv_cc_flag_unused_command_line_argument=yes 18151else 18152 xorg_cv_cc_flag_unused_command_line_argument=no 18153fi 18154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18155fi 18156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18157$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18158 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18159 CFLAGS="$xorg_testset_save_CFLAGS" 18160fi 18161 18162found="no" 18163 18164 if test $found = "no" ; then 18165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18167 fi 18168 18169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18171 fi 18172 18173 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18174 18175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18176$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18177 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18178 if eval \${$cacheid+:} false; then : 18179 $as_echo_n "(cached) " >&6 18180else 18181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18182/* end confdefs.h. */ 18183int i; 18184int 18185main () 18186{ 18187 18188 ; 18189 return 0; 18190} 18191_ACEOF 18192if ac_fn_c_try_link "$LINENO"; then : 18193 eval $cacheid=yes 18194else 18195 eval $cacheid=no 18196fi 18197rm -f core conftest.err conftest.$ac_objext \ 18198 conftest$ac_exeext conftest.$ac_ext 18199fi 18200 18201 18202 CFLAGS="$xorg_testset_save_CFLAGS" 18203 18204 eval supported=\$$cacheid 18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18206$as_echo "$supported" >&6; } 18207 if test "$supported" = "yes" ; then 18208 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18209 found="yes" 18210 fi 18211 fi 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227xorg_testset_save_CFLAGS="$CFLAGS" 18228 18229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18232$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18233if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18234 $as_echo_n "(cached) " >&6 18235else 18236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18237/* end confdefs.h. */ 18238int i; 18239_ACEOF 18240if ac_fn_c_try_compile "$LINENO"; then : 18241 xorg_cv_cc_flag_unknown_warning_option=yes 18242else 18243 xorg_cv_cc_flag_unknown_warning_option=no 18244fi 18245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18246fi 18247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18248$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18250 CFLAGS="$xorg_testset_save_CFLAGS" 18251fi 18252 18253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18256 fi 18257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18259$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18260if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18261 $as_echo_n "(cached) " >&6 18262else 18263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18264/* end confdefs.h. */ 18265int i; 18266_ACEOF 18267if ac_fn_c_try_compile "$LINENO"; then : 18268 xorg_cv_cc_flag_unused_command_line_argument=yes 18269else 18270 xorg_cv_cc_flag_unused_command_line_argument=no 18271fi 18272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18273fi 18274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18275$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18276 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18277 CFLAGS="$xorg_testset_save_CFLAGS" 18278fi 18279 18280found="no" 18281 18282 if test $found = "no" ; then 18283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18285 fi 18286 18287 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18289 fi 18290 18291 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18292 18293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18294$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18295 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18296 if eval \${$cacheid+:} false; then : 18297 $as_echo_n "(cached) " >&6 18298else 18299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18300/* end confdefs.h. */ 18301int i; 18302int 18303main () 18304{ 18305 18306 ; 18307 return 0; 18308} 18309_ACEOF 18310if ac_fn_c_try_link "$LINENO"; then : 18311 eval $cacheid=yes 18312else 18313 eval $cacheid=no 18314fi 18315rm -f core conftest.err conftest.$ac_objext \ 18316 conftest$ac_exeext conftest.$ac_ext 18317fi 18318 18319 18320 CFLAGS="$xorg_testset_save_CFLAGS" 18321 18322 eval supported=\$$cacheid 18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18324$as_echo "$supported" >&6; } 18325 if test "$supported" = "yes" ; then 18326 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18327 found="yes" 18328 fi 18329 fi 18330 18331 18332fi 18333 18334 18335 18336 18337 18338 18339 18340 CWARNFLAGS="$BASE_CFLAGS" 18341 if test "x$GCC" = xyes ; then 18342 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18343 fi 18344 18345 18346 18347 18348 18349 18350 18351 18352# Check whether --enable-strict-compilation was given. 18353if test "${enable_strict_compilation+set}" = set; then : 18354 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18355else 18356 STRICT_COMPILE=no 18357fi 18358 18359 18360 18361 18362 18363 18364STRICT_CFLAGS="" 18365 18366 18367 18368 18369 18370 18371 18372 18373 18374 18375 18376 18377 18378xorg_testset_save_CFLAGS="$CFLAGS" 18379 18380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18383$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18384if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18385 $as_echo_n "(cached) " >&6 18386else 18387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18388/* end confdefs.h. */ 18389int i; 18390_ACEOF 18391if ac_fn_c_try_compile "$LINENO"; then : 18392 xorg_cv_cc_flag_unknown_warning_option=yes 18393else 18394 xorg_cv_cc_flag_unknown_warning_option=no 18395fi 18396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18397fi 18398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18399$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18400 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18401 CFLAGS="$xorg_testset_save_CFLAGS" 18402fi 18403 18404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18407 fi 18408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18410$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18411if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18412 $as_echo_n "(cached) " >&6 18413else 18414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18415/* end confdefs.h. */ 18416int i; 18417_ACEOF 18418if ac_fn_c_try_compile "$LINENO"; then : 18419 xorg_cv_cc_flag_unused_command_line_argument=yes 18420else 18421 xorg_cv_cc_flag_unused_command_line_argument=no 18422fi 18423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18424fi 18425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18426$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18427 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18428 CFLAGS="$xorg_testset_save_CFLAGS" 18429fi 18430 18431found="no" 18432 18433 if test $found = "no" ; then 18434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18436 fi 18437 18438 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18440 fi 18441 18442 CFLAGS="$CFLAGS -pedantic" 18443 18444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18445$as_echo_n "checking if $CC supports -pedantic... " >&6; } 18446 cacheid=xorg_cv_cc_flag__pedantic 18447 if eval \${$cacheid+:} false; then : 18448 $as_echo_n "(cached) " >&6 18449else 18450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18451/* end confdefs.h. */ 18452int i; 18453int 18454main () 18455{ 18456 18457 ; 18458 return 0; 18459} 18460_ACEOF 18461if ac_fn_c_try_link "$LINENO"; then : 18462 eval $cacheid=yes 18463else 18464 eval $cacheid=no 18465fi 18466rm -f core conftest.err conftest.$ac_objext \ 18467 conftest$ac_exeext conftest.$ac_ext 18468fi 18469 18470 18471 CFLAGS="$xorg_testset_save_CFLAGS" 18472 18473 eval supported=\$$cacheid 18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18475$as_echo "$supported" >&6; } 18476 if test "$supported" = "yes" ; then 18477 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18478 found="yes" 18479 fi 18480 fi 18481 18482 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496xorg_testset_save_CFLAGS="$CFLAGS" 18497 18498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18501$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18502if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18503 $as_echo_n "(cached) " >&6 18504else 18505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18506/* end confdefs.h. */ 18507int i; 18508_ACEOF 18509if ac_fn_c_try_compile "$LINENO"; then : 18510 xorg_cv_cc_flag_unknown_warning_option=yes 18511else 18512 xorg_cv_cc_flag_unknown_warning_option=no 18513fi 18514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18515fi 18516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18517$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18519 CFLAGS="$xorg_testset_save_CFLAGS" 18520fi 18521 18522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18525 fi 18526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18528$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18529if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18530 $as_echo_n "(cached) " >&6 18531else 18532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18533/* end confdefs.h. */ 18534int i; 18535_ACEOF 18536if ac_fn_c_try_compile "$LINENO"; then : 18537 xorg_cv_cc_flag_unused_command_line_argument=yes 18538else 18539 xorg_cv_cc_flag_unused_command_line_argument=no 18540fi 18541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18542fi 18543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18544$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18546 CFLAGS="$xorg_testset_save_CFLAGS" 18547fi 18548 18549found="no" 18550 18551 if test $found = "no" ; then 18552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18554 fi 18555 18556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18558 fi 18559 18560 CFLAGS="$CFLAGS -Werror" 18561 18562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18563$as_echo_n "checking if $CC supports -Werror... " >&6; } 18564 cacheid=xorg_cv_cc_flag__Werror 18565 if eval \${$cacheid+:} false; then : 18566 $as_echo_n "(cached) " >&6 18567else 18568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18569/* end confdefs.h. */ 18570int i; 18571int 18572main () 18573{ 18574 18575 ; 18576 return 0; 18577} 18578_ACEOF 18579if ac_fn_c_try_link "$LINENO"; then : 18580 eval $cacheid=yes 18581else 18582 eval $cacheid=no 18583fi 18584rm -f core conftest.err conftest.$ac_objext \ 18585 conftest$ac_exeext conftest.$ac_ext 18586fi 18587 18588 18589 CFLAGS="$xorg_testset_save_CFLAGS" 18590 18591 eval supported=\$$cacheid 18592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18593$as_echo "$supported" >&6; } 18594 if test "$supported" = "yes" ; then 18595 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18596 found="yes" 18597 fi 18598 fi 18599 18600 if test $found = "no" ; then 18601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18603 fi 18604 18605 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18607 fi 18608 18609 CFLAGS="$CFLAGS -errwarn" 18610 18611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18612$as_echo_n "checking if $CC supports -errwarn... " >&6; } 18613 cacheid=xorg_cv_cc_flag__errwarn 18614 if eval \${$cacheid+:} false; then : 18615 $as_echo_n "(cached) " >&6 18616else 18617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18618/* end confdefs.h. */ 18619int i; 18620int 18621main () 18622{ 18623 18624 ; 18625 return 0; 18626} 18627_ACEOF 18628if ac_fn_c_try_link "$LINENO"; then : 18629 eval $cacheid=yes 18630else 18631 eval $cacheid=no 18632fi 18633rm -f core conftest.err conftest.$ac_objext \ 18634 conftest$ac_exeext conftest.$ac_ext 18635fi 18636 18637 18638 CFLAGS="$xorg_testset_save_CFLAGS" 18639 18640 eval supported=\$$cacheid 18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18642$as_echo "$supported" >&6; } 18643 if test "$supported" = "yes" ; then 18644 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18645 found="yes" 18646 fi 18647 fi 18648 18649 18650 18651# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18652# activate it with -Werror, so we add it here explicitly. 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666xorg_testset_save_CFLAGS="$CFLAGS" 18667 18668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18671$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18672if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18673 $as_echo_n "(cached) " >&6 18674else 18675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18676/* end confdefs.h. */ 18677int i; 18678_ACEOF 18679if ac_fn_c_try_compile "$LINENO"; then : 18680 xorg_cv_cc_flag_unknown_warning_option=yes 18681else 18682 xorg_cv_cc_flag_unknown_warning_option=no 18683fi 18684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18685fi 18686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18687$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18689 CFLAGS="$xorg_testset_save_CFLAGS" 18690fi 18691 18692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18695 fi 18696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18698$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18699if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18700 $as_echo_n "(cached) " >&6 18701else 18702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18703/* end confdefs.h. */ 18704int i; 18705_ACEOF 18706if ac_fn_c_try_compile "$LINENO"; then : 18707 xorg_cv_cc_flag_unused_command_line_argument=yes 18708else 18709 xorg_cv_cc_flag_unused_command_line_argument=no 18710fi 18711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18712fi 18713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18714$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18716 CFLAGS="$xorg_testset_save_CFLAGS" 18717fi 18718 18719found="no" 18720 18721 if test $found = "no" ; then 18722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18724 fi 18725 18726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18728 fi 18729 18730 CFLAGS="$CFLAGS -Werror=attributes" 18731 18732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18733$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 18734 cacheid=xorg_cv_cc_flag__Werror_attributes 18735 if eval \${$cacheid+:} false; then : 18736 $as_echo_n "(cached) " >&6 18737else 18738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18739/* end confdefs.h. */ 18740int i; 18741int 18742main () 18743{ 18744 18745 ; 18746 return 0; 18747} 18748_ACEOF 18749if ac_fn_c_try_link "$LINENO"; then : 18750 eval $cacheid=yes 18751else 18752 eval $cacheid=no 18753fi 18754rm -f core conftest.err conftest.$ac_objext \ 18755 conftest$ac_exeext conftest.$ac_ext 18756fi 18757 18758 18759 CFLAGS="$xorg_testset_save_CFLAGS" 18760 18761 eval supported=\$$cacheid 18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18763$as_echo "$supported" >&6; } 18764 if test "$supported" = "yes" ; then 18765 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18766 found="yes" 18767 fi 18768 fi 18769 18770 18771 18772if test "x$STRICT_COMPILE" = "xyes"; then 18773 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18774 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18775fi 18776 18777 18778 18779 18780 18781 18782cat >>confdefs.h <<_ACEOF 18783#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18784_ACEOF 18785 18786 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18787 if test "x$PVM" = "x"; then 18788 PVM="0" 18789 fi 18790 18791cat >>confdefs.h <<_ACEOF 18792#define PACKAGE_VERSION_MINOR $PVM 18793_ACEOF 18794 18795 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18796 if test "x$PVP" = "x"; then 18797 PVP="0" 18798 fi 18799 18800cat >>confdefs.h <<_ACEOF 18801#define PACKAGE_VERSION_PATCHLEVEL $PVP 18802_ACEOF 18803 18804 18805 18806CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 18807mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18808|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 18809touch \$(top_srcdir)/ChangeLog; \ 18810echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 18811 18812 18813 18814 18815macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18816INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18817mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18818|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 18819touch \$(top_srcdir)/INSTALL; \ 18820echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 18821 18822 18823 18824 18825 18826 18827case $host_os in 18828 solaris*) 18829 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 18830 # check for a man page file found in later versions that use 18831 # traditional section numbers instead 18832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 18833$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 18834if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 18835 $as_echo_n "(cached) " >&6 18836else 18837 test "$cross_compiling" = yes && 18838 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18839if test -r "/usr/share/man/man7/attributes.7"; then 18840 ac_cv_file__usr_share_man_man7_attributes_7=yes 18841else 18842 ac_cv_file__usr_share_man_man7_attributes_7=no 18843fi 18844fi 18845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 18846$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 18847if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 18848 SYSV_MAN_SECTIONS=false 18849else 18850 SYSV_MAN_SECTIONS=true 18851fi 18852 18853 ;; 18854 *) SYSV_MAN_SECTIONS=false ;; 18855esac 18856 18857if test x$APP_MAN_SUFFIX = x ; then 18858 APP_MAN_SUFFIX=1 18859fi 18860if test x$APP_MAN_DIR = x ; then 18861 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18862fi 18863 18864if test x$LIB_MAN_SUFFIX = x ; then 18865 LIB_MAN_SUFFIX=3 18866fi 18867if test x$LIB_MAN_DIR = x ; then 18868 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18869fi 18870 18871if test x$FILE_MAN_SUFFIX = x ; then 18872 case $SYSV_MAN_SECTIONS in 18873 true) FILE_MAN_SUFFIX=4 ;; 18874 *) FILE_MAN_SUFFIX=5 ;; 18875 esac 18876fi 18877if test x$FILE_MAN_DIR = x ; then 18878 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18879fi 18880 18881if test x$MISC_MAN_SUFFIX = x ; then 18882 case $SYSV_MAN_SECTIONS in 18883 true) MISC_MAN_SUFFIX=5 ;; 18884 *) MISC_MAN_SUFFIX=7 ;; 18885 esac 18886fi 18887if test x$MISC_MAN_DIR = x ; then 18888 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18889fi 18890 18891if test x$DRIVER_MAN_SUFFIX = x ; then 18892 case $SYSV_MAN_SECTIONS in 18893 true) DRIVER_MAN_SUFFIX=7 ;; 18894 *) DRIVER_MAN_SUFFIX=4 ;; 18895 esac 18896fi 18897if test x$DRIVER_MAN_DIR = x ; then 18898 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18899fi 18900 18901if test x$ADMIN_MAN_SUFFIX = x ; then 18902 case $SYSV_MAN_SECTIONS in 18903 true) ADMIN_MAN_SUFFIX=1m ;; 18904 *) ADMIN_MAN_SUFFIX=8 ;; 18905 esac 18906fi 18907if test x$ADMIN_MAN_DIR = x ; then 18908 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18909fi 18910 18911 18912 18913 18914 18915 18916 18917 18918 18919 18920 18921 18922 18923 18924 18925XORG_MAN_PAGE="X Version 11" 18926 18927MAN_SUBSTS="\ 18928 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18929 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18930 -e 's|__xservername__|Xorg|g' \ 18931 -e 's|__xconfigfile__|xorg.conf|g' \ 18932 -e 's|__projectroot__|\$(prefix)|g' \ 18933 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18934 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18935 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18936 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18937 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18938 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18939 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18940 18941 18942 18943# Check whether --enable-silent-rules was given. 18944if test "${enable_silent_rules+set}" = set; then : 18945 enableval=$enable_silent_rules; 18946fi 18947 18948case $enable_silent_rules in # ((( 18949 yes) AM_DEFAULT_VERBOSITY=0;; 18950 no) AM_DEFAULT_VERBOSITY=1;; 18951 *) AM_DEFAULT_VERBOSITY=0;; 18952esac 18953am_make=${MAKE-make} 18954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18955$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18956if ${am_cv_make_support_nested_variables+:} false; then : 18957 $as_echo_n "(cached) " >&6 18958else 18959 if $as_echo 'TRUE=$(BAR$(V)) 18960BAR0=false 18961BAR1=true 18962V=1 18963am__doit: 18964 @$(TRUE) 18965.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18966 am_cv_make_support_nested_variables=yes 18967else 18968 am_cv_make_support_nested_variables=no 18969fi 18970fi 18971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18972$as_echo "$am_cv_make_support_nested_variables" >&6; } 18973if test $am_cv_make_support_nested_variables = yes; then 18974 AM_V='$(V)' 18975 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18976else 18977 AM_V=$AM_DEFAULT_VERBOSITY 18978 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18979fi 18980AM_BACKSLASH='\' 18981 18982 18983 18984 18985# Check whether --enable-specs was given. 18986if test "${enable_specs+set}" = set; then : 18987 enableval=$enable_specs; build_specs=$enableval 18988else 18989 build_specs=yes 18990fi 18991 18992 18993 if test x$build_specs = xyes; then 18994 ENABLE_SPECS_TRUE= 18995 ENABLE_SPECS_FALSE='#' 18996else 18997 ENABLE_SPECS_TRUE='#' 18998 ENABLE_SPECS_FALSE= 18999fi 19000 19001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 19002$as_echo_n "checking whether to build functional specifications... " >&6; } 19003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 19004$as_echo "$build_specs" >&6; } 19005 19006 19007 19008 19009 19010# Check whether --with-xmlto was given. 19011if test "${with_xmlto+set}" = set; then : 19012 withval=$with_xmlto; use_xmlto=$withval 19013else 19014 use_xmlto=auto 19015fi 19016 19017 19018 19019if test "x$use_xmlto" = x"auto"; then 19020 # Extract the first word of "xmlto", so it can be a program name with args. 19021set dummy xmlto; ac_word=$2 19022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19023$as_echo_n "checking for $ac_word... " >&6; } 19024if ${ac_cv_path_XMLTO+:} false; then : 19025 $as_echo_n "(cached) " >&6 19026else 19027 case $XMLTO in 19028 [\\/]* | ?:[\\/]*) 19029 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 19030 ;; 19031 *) 19032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19033for as_dir in $PATH 19034do 19035 IFS=$as_save_IFS 19036 test -z "$as_dir" && as_dir=. 19037 for ac_exec_ext in '' $ac_executable_extensions; do 19038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19039 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 19040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19041 break 2 19042 fi 19043done 19044 done 19045IFS=$as_save_IFS 19046 19047 ;; 19048esac 19049fi 19050XMLTO=$ac_cv_path_XMLTO 19051if test -n "$XMLTO"; then 19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 19053$as_echo "$XMLTO" >&6; } 19054else 19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19056$as_echo "no" >&6; } 19057fi 19058 19059 19060 if test "x$XMLTO" = "x"; then 19061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 19062$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 19063 have_xmlto=no 19064 else 19065 have_xmlto=yes 19066 fi 19067elif test "x$use_xmlto" = x"yes" ; then 19068 # Extract the first word of "xmlto", so it can be a program name with args. 19069set dummy xmlto; ac_word=$2 19070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19071$as_echo_n "checking for $ac_word... " >&6; } 19072if ${ac_cv_path_XMLTO+:} false; then : 19073 $as_echo_n "(cached) " >&6 19074else 19075 case $XMLTO in 19076 [\\/]* | ?:[\\/]*) 19077 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 19078 ;; 19079 *) 19080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19081for as_dir in $PATH 19082do 19083 IFS=$as_save_IFS 19084 test -z "$as_dir" && as_dir=. 19085 for ac_exec_ext in '' $ac_executable_extensions; do 19086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19087 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 19088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19089 break 2 19090 fi 19091done 19092 done 19093IFS=$as_save_IFS 19094 19095 ;; 19096esac 19097fi 19098XMLTO=$ac_cv_path_XMLTO 19099if test -n "$XMLTO"; then 19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 19101$as_echo "$XMLTO" >&6; } 19102else 19103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19104$as_echo "no" >&6; } 19105fi 19106 19107 19108 if test "x$XMLTO" = "x"; then 19109 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 19110 fi 19111 have_xmlto=yes 19112elif test "x$use_xmlto" = x"no" ; then 19113 if test "x$XMLTO" != "x"; then 19114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 19115$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 19116 fi 19117 have_xmlto=no 19118else 19119 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 19120fi 19121 19122# Test for a minimum version of xmlto, if provided. 19123if test "$have_xmlto" = yes; then 19124 # scrape the xmlto version 19125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 19126$as_echo_n "checking the xmlto version... " >&6; } 19127 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 19128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 19129$as_echo "$xmlto_version" >&6; } 19130 as_arg_v1=$xmlto_version 19131as_arg_v2=0.0.22 19132awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 19133case $? in #( 19134 1) : 19135 if test "x$use_xmlto" = xauto; then 19136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 19137$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 19138 have_xmlto=no 19139 else 19140 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 19141 fi ;; #( 19142 0) : 19143 ;; #( 19144 2) : 19145 ;; #( 19146 *) : 19147 ;; 19148esac 19149fi 19150 19151# Test for the ability of xmlto to generate a text target 19152# 19153# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 19154# following test for empty XML docbook files. 19155# For compatibility reasons use the following empty XML docbook file and if 19156# it fails try it again with a non-empty XML file. 19157have_xmlto_text=no 19158cat > conftest.xml << "EOF" 19159EOF 19160if test "$have_xmlto" = yes; then : 19161 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 19162 have_xmlto_text=yes 19163else 19164 # Try it again with a non-empty XML file. 19165 cat > conftest.xml << "EOF" 19166<x></x> 19167EOF 19168 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 19169 have_xmlto_text=yes 19170else 19171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 19172$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 19173fi 19174fi 19175fi 19176rm -f conftest.xml 19177 if test $have_xmlto_text = yes; then 19178 HAVE_XMLTO_TEXT_TRUE= 19179 HAVE_XMLTO_TEXT_FALSE='#' 19180else 19181 HAVE_XMLTO_TEXT_TRUE='#' 19182 HAVE_XMLTO_TEXT_FALSE= 19183fi 19184 19185 if test "$have_xmlto" = yes; then 19186 HAVE_XMLTO_TRUE= 19187 HAVE_XMLTO_FALSE='#' 19188else 19189 HAVE_XMLTO_TRUE='#' 19190 HAVE_XMLTO_FALSE= 19191fi 19192 19193 19194 19195 19196 19197 19198# Check whether --with-fop was given. 19199if test "${with_fop+set}" = set; then : 19200 withval=$with_fop; use_fop=$withval 19201else 19202 use_fop=no 19203fi 19204 19205 19206 19207if test "x$use_fop" = x"auto"; then 19208 # Extract the first word of "fop", so it can be a program name with args. 19209set dummy fop; ac_word=$2 19210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19211$as_echo_n "checking for $ac_word... " >&6; } 19212if ${ac_cv_path_FOP+:} false; then : 19213 $as_echo_n "(cached) " >&6 19214else 19215 case $FOP in 19216 [\\/]* | ?:[\\/]*) 19217 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 19218 ;; 19219 *) 19220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19221for as_dir in $PATH 19222do 19223 IFS=$as_save_IFS 19224 test -z "$as_dir" && as_dir=. 19225 for ac_exec_ext in '' $ac_executable_extensions; do 19226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19227 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 19228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19229 break 2 19230 fi 19231done 19232 done 19233IFS=$as_save_IFS 19234 19235 ;; 19236esac 19237fi 19238FOP=$ac_cv_path_FOP 19239if test -n "$FOP"; then 19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 19241$as_echo "$FOP" >&6; } 19242else 19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19244$as_echo "no" >&6; } 19245fi 19246 19247 19248 if test "x$FOP" = "x"; then 19249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 19250$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 19251 have_fop=no 19252 else 19253 have_fop=yes 19254 fi 19255elif test "x$use_fop" = x"yes" ; then 19256 # Extract the first word of "fop", so it can be a program name with args. 19257set dummy fop; ac_word=$2 19258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19259$as_echo_n "checking for $ac_word... " >&6; } 19260if ${ac_cv_path_FOP+:} false; then : 19261 $as_echo_n "(cached) " >&6 19262else 19263 case $FOP in 19264 [\\/]* | ?:[\\/]*) 19265 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 19266 ;; 19267 *) 19268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19269for as_dir in $PATH 19270do 19271 IFS=$as_save_IFS 19272 test -z "$as_dir" && as_dir=. 19273 for ac_exec_ext in '' $ac_executable_extensions; do 19274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19275 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 19276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19277 break 2 19278 fi 19279done 19280 done 19281IFS=$as_save_IFS 19282 19283 ;; 19284esac 19285fi 19286FOP=$ac_cv_path_FOP 19287if test -n "$FOP"; then 19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 19289$as_echo "$FOP" >&6; } 19290else 19291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19292$as_echo "no" >&6; } 19293fi 19294 19295 19296 if test "x$FOP" = "x"; then 19297 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 19298 fi 19299 have_fop=yes 19300elif test "x$use_fop" = x"no" ; then 19301 if test "x$FOP" != "x"; then 19302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 19303$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 19304 fi 19305 have_fop=no 19306else 19307 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 19308fi 19309 19310# Test for a minimum version of fop, if provided. 19311 19312 if test "$have_fop" = yes; then 19313 HAVE_FOP_TRUE= 19314 HAVE_FOP_FALSE='#' 19315else 19316 HAVE_FOP_TRUE='#' 19317 HAVE_FOP_FALSE= 19318fi 19319 19320 19321 19322 19323# Preserves the interface, should it be implemented later 19324 19325 19326 19327# Check whether --with-xsltproc was given. 19328if test "${with_xsltproc+set}" = set; then : 19329 withval=$with_xsltproc; use_xsltproc=$withval 19330else 19331 use_xsltproc=auto 19332fi 19333 19334 19335 19336if test "x$use_xsltproc" = x"auto"; then 19337 # Extract the first word of "xsltproc", so it can be a program name with args. 19338set dummy xsltproc; ac_word=$2 19339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19340$as_echo_n "checking for $ac_word... " >&6; } 19341if ${ac_cv_path_XSLTPROC+:} false; then : 19342 $as_echo_n "(cached) " >&6 19343else 19344 case $XSLTPROC in 19345 [\\/]* | ?:[\\/]*) 19346 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 19347 ;; 19348 *) 19349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19350for as_dir in $PATH 19351do 19352 IFS=$as_save_IFS 19353 test -z "$as_dir" && as_dir=. 19354 for ac_exec_ext in '' $ac_executable_extensions; do 19355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19356 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 19357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19358 break 2 19359 fi 19360done 19361 done 19362IFS=$as_save_IFS 19363 19364 ;; 19365esac 19366fi 19367XSLTPROC=$ac_cv_path_XSLTPROC 19368if test -n "$XSLTPROC"; then 19369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 19370$as_echo "$XSLTPROC" >&6; } 19371else 19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19373$as_echo "no" >&6; } 19374fi 19375 19376 19377 if test "x$XSLTPROC" = "x"; then 19378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 19379$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 19380 have_xsltproc=no 19381 else 19382 have_xsltproc=yes 19383 fi 19384elif test "x$use_xsltproc" = x"yes" ; then 19385 # Extract the first word of "xsltproc", so it can be a program name with args. 19386set dummy xsltproc; ac_word=$2 19387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19388$as_echo_n "checking for $ac_word... " >&6; } 19389if ${ac_cv_path_XSLTPROC+:} false; then : 19390 $as_echo_n "(cached) " >&6 19391else 19392 case $XSLTPROC in 19393 [\\/]* | ?:[\\/]*) 19394 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 19395 ;; 19396 *) 19397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19398for as_dir in $PATH 19399do 19400 IFS=$as_save_IFS 19401 test -z "$as_dir" && as_dir=. 19402 for ac_exec_ext in '' $ac_executable_extensions; do 19403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19404 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 19405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19406 break 2 19407 fi 19408done 19409 done 19410IFS=$as_save_IFS 19411 19412 ;; 19413esac 19414fi 19415XSLTPROC=$ac_cv_path_XSLTPROC 19416if test -n "$XSLTPROC"; then 19417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 19418$as_echo "$XSLTPROC" >&6; } 19419else 19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19421$as_echo "no" >&6; } 19422fi 19423 19424 19425 if test "x$XSLTPROC" = "x"; then 19426 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 19427 fi 19428 have_xsltproc=yes 19429elif test "x$use_xsltproc" = x"no" ; then 19430 if test "x$XSLTPROC" != "x"; then 19431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 19432$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 19433 fi 19434 have_xsltproc=no 19435else 19436 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 19437fi 19438 19439 if test "$have_xsltproc" = yes; then 19440 HAVE_XSLTPROC_TRUE= 19441 HAVE_XSLTPROC_FALSE='#' 19442else 19443 HAVE_XSLTPROC_TRUE='#' 19444 HAVE_XSLTPROC_FALSE= 19445fi 19446 19447 19448 19449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.10" >&5 19450$as_echo_n "checking for X.Org SGML entities >= 1.10... " >&6; } 19451XORG_SGML_PATH= 19452if test -n "$PKG_CONFIG" && \ 19453 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.10\""; } >&5 19454 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.10") 2>&5 19455 ac_status=$? 19456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19457 test $ac_status = 0; }; then 19458 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 19459else 19460 : 19461 19462fi 19463 19464# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 19465# the path and the name of the doc stylesheet 19466if test "x$XORG_SGML_PATH" != "x" ; then 19467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 19468$as_echo "$XORG_SGML_PATH" >&6; } 19469 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 19470 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 19471else 19472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19473$as_echo "no" >&6; } 19474fi 19475 19476 19477 19478 19479 if test "x$XSL_STYLESHEET" != "x"; then 19480 HAVE_STYLESHEETS_TRUE= 19481 HAVE_STYLESHEETS_FALSE='#' 19482else 19483 HAVE_STYLESHEETS_TRUE='#' 19484 HAVE_STYLESHEETS_FALSE= 19485fi 19486 19487 19488 19489 19490for ac_prog in cpp 19491do 19492 # Extract the first word of "$ac_prog", so it can be a program name with args. 19493set dummy $ac_prog; ac_word=$2 19494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19495$as_echo_n "checking for $ac_word... " >&6; } 19496if ${ac_cv_path_RAWCPP+:} false; then : 19497 $as_echo_n "(cached) " >&6 19498else 19499 case $RAWCPP in 19500 [\\/]* | ?:[\\/]*) 19501 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 19502 ;; 19503 *) 19504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19505as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 19506for as_dir in $as_dummy 19507do 19508 IFS=$as_save_IFS 19509 test -z "$as_dir" && as_dir=. 19510 for ac_exec_ext in '' $ac_executable_extensions; do 19511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19512 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 19513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19514 break 2 19515 fi 19516done 19517 done 19518IFS=$as_save_IFS 19519 19520 ;; 19521esac 19522fi 19523RAWCPP=$ac_cv_path_RAWCPP 19524if test -n "$RAWCPP"; then 19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 19526$as_echo "$RAWCPP" >&6; } 19527else 19528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19529$as_echo "no" >&6; } 19530fi 19531 19532 19533 test -n "$RAWCPP" && break 19534done 19535test -n "$RAWCPP" || RAWCPP="${CPP}" 19536 19537 19538# Check for flag to avoid builtin definitions - assumes unix is predefined, 19539# which is not the best choice for supporting other OS'es, but covers most 19540# of the ones we need for now. 19541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 19542$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 19543cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19544/* end confdefs.h. */ 19545Does cpp redefine unix ? 19546_ACEOF 19547if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19549$as_echo "no" >&6; } 19550else 19551 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 19552 RAWCPPFLAGS=-undef 19553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19554$as_echo "yes" >&6; } 19555 # under Cygwin unix is still defined even with -undef 19556 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 19557 RAWCPPFLAGS="-undef -ansi" 19558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 19559$as_echo "yes, with -ansi" >&6; } 19560 else 19561 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 19562 fi 19563fi 19564rm -f conftest.$ac_ext 19565 19566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 19567$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 19568cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19569/* end confdefs.h. */ 19570Does cpp preserve "whitespace"? 19571_ACEOF 19572if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19574$as_echo "no" >&6; } 19575else 19576 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 19577 TRADITIONALCPPFLAGS="-traditional" 19578 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 19579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19580$as_echo "yes" >&6; } 19581 else 19582 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 19583 fi 19584fi 19585rm -f conftest.$ac_ext 19586 19587 19588 19589 19590 19591# Preserves the interface, should it be implemented later 19592 19593 19594 19595# Check whether --with-perl was given. 19596if test "${with_perl+set}" = set; then : 19597 withval=$with_perl; use_perl=$withval 19598else 19599 use_perl=auto 19600fi 19601 19602 19603 19604if test "x$use_perl" = x"auto"; then 19605 # Extract the first word of "perl", so it can be a program name with args. 19606set dummy perl; ac_word=$2 19607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19608$as_echo_n "checking for $ac_word... " >&6; } 19609if ${ac_cv_path_PERL+:} false; then : 19610 $as_echo_n "(cached) " >&6 19611else 19612 case $PERL in 19613 [\\/]* | ?:[\\/]*) 19614 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 19615 ;; 19616 *) 19617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19618for as_dir in $PATH 19619do 19620 IFS=$as_save_IFS 19621 test -z "$as_dir" && as_dir=. 19622 for ac_exec_ext in '' $ac_executable_extensions; do 19623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19624 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 19625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19626 break 2 19627 fi 19628done 19629 done 19630IFS=$as_save_IFS 19631 19632 ;; 19633esac 19634fi 19635PERL=$ac_cv_path_PERL 19636if test -n "$PERL"; then 19637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 19638$as_echo "$PERL" >&6; } 19639else 19640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19641$as_echo "no" >&6; } 19642fi 19643 19644 19645 if test "x$PERL" = "x"; then 19646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5 19647$as_echo "$as_me: WARNING: perl not found - cannot extract information and report" >&2;} 19648 have_perl=no 19649 else 19650 have_perl=yes 19651 fi 19652elif test "x$use_perl" = x"yes" ; then 19653 # Extract the first word of "perl", so it can be a program name with args. 19654set dummy perl; ac_word=$2 19655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19656$as_echo_n "checking for $ac_word... " >&6; } 19657if ${ac_cv_path_PERL+:} false; then : 19658 $as_echo_n "(cached) " >&6 19659else 19660 case $PERL in 19661 [\\/]* | ?:[\\/]*) 19662 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 19663 ;; 19664 *) 19665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19666for as_dir in $PATH 19667do 19668 IFS=$as_save_IFS 19669 test -z "$as_dir" && as_dir=. 19670 for ac_exec_ext in '' $ac_executable_extensions; do 19671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19672 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 19673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19674 break 2 19675 fi 19676done 19677 done 19678IFS=$as_save_IFS 19679 19680 ;; 19681esac 19682fi 19683PERL=$ac_cv_path_PERL 19684if test -n "$PERL"; then 19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 19686$as_echo "$PERL" >&6; } 19687else 19688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19689$as_echo "no" >&6; } 19690fi 19691 19692 19693 if test "x$PERL" = "x"; then 19694 as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5 19695 fi 19696 have_perl=yes 19697elif test "x$use_perl" = x"no" ; then 19698 if test "x$PERL" != "x"; then 19699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5 19700$as_echo "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;} 19701 fi 19702 have_perl=no 19703else 19704 as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5 19705fi 19706 19707 if test "$have_perl" = yes; then 19708 HAVE_PERL_TRUE= 19709 HAVE_PERL_FALSE='#' 19710else 19711 HAVE_PERL_TRUE='#' 19712 HAVE_PERL_FALSE= 19713fi 19714 19715 19716 19717# Required when PKG_CHECK_MODULES called within an if statement 19718 19719 19720 19721 19722 19723 19724 19725if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19726 if test -n "$ac_tool_prefix"; then 19727 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19728set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19730$as_echo_n "checking for $ac_word... " >&6; } 19731if ${ac_cv_path_PKG_CONFIG+:} false; then : 19732 $as_echo_n "(cached) " >&6 19733else 19734 case $PKG_CONFIG in 19735 [\\/]* | ?:[\\/]*) 19736 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19737 ;; 19738 *) 19739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19740for as_dir in $PATH 19741do 19742 IFS=$as_save_IFS 19743 test -z "$as_dir" && as_dir=. 19744 for ac_exec_ext in '' $ac_executable_extensions; do 19745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19746 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19748 break 2 19749 fi 19750done 19751 done 19752IFS=$as_save_IFS 19753 19754 ;; 19755esac 19756fi 19757PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19758if test -n "$PKG_CONFIG"; then 19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19760$as_echo "$PKG_CONFIG" >&6; } 19761else 19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19763$as_echo "no" >&6; } 19764fi 19765 19766 19767fi 19768if test -z "$ac_cv_path_PKG_CONFIG"; then 19769 ac_pt_PKG_CONFIG=$PKG_CONFIG 19770 # Extract the first word of "pkg-config", so it can be a program name with args. 19771set dummy pkg-config; ac_word=$2 19772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19773$as_echo_n "checking for $ac_word... " >&6; } 19774if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19775 $as_echo_n "(cached) " >&6 19776else 19777 case $ac_pt_PKG_CONFIG in 19778 [\\/]* | ?:[\\/]*) 19779 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19780 ;; 19781 *) 19782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19783for as_dir in $PATH 19784do 19785 IFS=$as_save_IFS 19786 test -z "$as_dir" && as_dir=. 19787 for ac_exec_ext in '' $ac_executable_extensions; do 19788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19789 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19791 break 2 19792 fi 19793done 19794 done 19795IFS=$as_save_IFS 19796 19797 ;; 19798esac 19799fi 19800ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19801if test -n "$ac_pt_PKG_CONFIG"; then 19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19803$as_echo "$ac_pt_PKG_CONFIG" >&6; } 19804else 19805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19806$as_echo "no" >&6; } 19807fi 19808 19809 if test "x$ac_pt_PKG_CONFIG" = x; then 19810 PKG_CONFIG="" 19811 else 19812 case $cross_compiling:$ac_tool_warned in 19813yes:) 19814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19816ac_tool_warned=yes ;; 19817esac 19818 PKG_CONFIG=$ac_pt_PKG_CONFIG 19819 fi 19820else 19821 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19822fi 19823 19824fi 19825if test -n "$PKG_CONFIG"; then 19826 _pkg_min_version=0.9.0 19827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19828$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19829 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19831$as_echo "yes" >&6; } 19832 else 19833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19834$as_echo "no" >&6; } 19835 PKG_CONFIG="" 19836 fi 19837fi 19838 19839if test x"$CC_FOR_BUILD" = x; then 19840 if test x"$cross_compiling" = xyes; then 19841 for ac_prog in gcc cc 19842do 19843 # Extract the first word of "$ac_prog", so it can be a program name with args. 19844set dummy $ac_prog; ac_word=$2 19845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19846$as_echo_n "checking for $ac_word... " >&6; } 19847if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 19848 $as_echo_n "(cached) " >&6 19849else 19850 if test -n "$CC_FOR_BUILD"; then 19851 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 19852else 19853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19854for as_dir in $PATH 19855do 19856 IFS=$as_save_IFS 19857 test -z "$as_dir" && as_dir=. 19858 for ac_exec_ext in '' $ac_executable_extensions; do 19859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19860 ac_cv_prog_CC_FOR_BUILD="$ac_prog" 19861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19862 break 2 19863 fi 19864done 19865 done 19866IFS=$as_save_IFS 19867 19868fi 19869fi 19870CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 19871if test -n "$CC_FOR_BUILD"; then 19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 19873$as_echo "$CC_FOR_BUILD" >&6; } 19874else 19875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19876$as_echo "no" >&6; } 19877fi 19878 19879 19880 test -n "$CC_FOR_BUILD" && break 19881done 19882 19883 else 19884 CC_FOR_BUILD="$CC" 19885 fi 19886fi 19887 19888 19889if test x"$CPPFLAGS_FOR_BUILD" = x; then 19890 if test ! x"$cross_compiling" = xyes; then 19891 CPPFLAGS_FOR_BUILD=${CPPFLAGS} 19892 fi 19893fi 19894 19895 19896if test x"$CFLAGS_FOR_BUILD" = x; then 19897 if test ! x"$cross_compiling" = xyes; then 19898 CFLAGS_FOR_BUILD=${CFLAGS} 19899 fi 19900fi 19901 19902 19903if test x"$LDFLAGS_FOR_BUILD" = x; then 19904 if test ! x"$cross_compiling" = xyes; then 19905 LDFLAGS_FOR_BUILD=${LDFLAGS} 19906 fi 19907fi 19908 19909 19910if test x"$EXEEXT_FOR_BUILD" = x; then 19911 if test x"$cross_compiling" = xno; then 19912 EXEEXT_FOR_BUILD=${EXEEXT} 19913 fi 19914 # If cross-compiling and not provided, assume EXEEXT_FOR_BUILD is empty 19915fi 19916 19917 19918# Checks for pkg-config packages 19919 19920# Always required 19921X11_REQUIRES='xproto >= 7.0.17 xextproto xtrans xcb >= 1.11.1' 19922X11_EXTRA_DEPS="xcb >= 1.11.1" 19923 19924 19925 19926 19927 19928 19929 19930 19931if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19932 if test -n "$ac_tool_prefix"; then 19933 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19934set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19936$as_echo_n "checking for $ac_word... " >&6; } 19937if ${ac_cv_path_PKG_CONFIG+:} false; then : 19938 $as_echo_n "(cached) " >&6 19939else 19940 case $PKG_CONFIG in 19941 [\\/]* | ?:[\\/]*) 19942 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19943 ;; 19944 *) 19945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19946for as_dir in $PATH 19947do 19948 IFS=$as_save_IFS 19949 test -z "$as_dir" && as_dir=. 19950 for ac_exec_ext in '' $ac_executable_extensions; do 19951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19952 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19954 break 2 19955 fi 19956done 19957 done 19958IFS=$as_save_IFS 19959 19960 ;; 19961esac 19962fi 19963PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19964if test -n "$PKG_CONFIG"; then 19965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19966$as_echo "$PKG_CONFIG" >&6; } 19967else 19968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19969$as_echo "no" >&6; } 19970fi 19971 19972 19973fi 19974if test -z "$ac_cv_path_PKG_CONFIG"; then 19975 ac_pt_PKG_CONFIG=$PKG_CONFIG 19976 # Extract the first word of "pkg-config", so it can be a program name with args. 19977set dummy pkg-config; ac_word=$2 19978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19979$as_echo_n "checking for $ac_word... " >&6; } 19980if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19981 $as_echo_n "(cached) " >&6 19982else 19983 case $ac_pt_PKG_CONFIG in 19984 [\\/]* | ?:[\\/]*) 19985 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19986 ;; 19987 *) 19988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19989for as_dir in $PATH 19990do 19991 IFS=$as_save_IFS 19992 test -z "$as_dir" && as_dir=. 19993 for ac_exec_ext in '' $ac_executable_extensions; do 19994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19995 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19997 break 2 19998 fi 19999done 20000 done 20001IFS=$as_save_IFS 20002 20003 ;; 20004esac 20005fi 20006ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20007if test -n "$ac_pt_PKG_CONFIG"; then 20008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 20009$as_echo "$ac_pt_PKG_CONFIG" >&6; } 20010else 20011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20012$as_echo "no" >&6; } 20013fi 20014 20015 if test "x$ac_pt_PKG_CONFIG" = x; then 20016 PKG_CONFIG="" 20017 else 20018 case $cross_compiling:$ac_tool_warned in 20019yes:) 20020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20022ac_tool_warned=yes ;; 20023esac 20024 PKG_CONFIG=$ac_pt_PKG_CONFIG 20025 fi 20026else 20027 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20028fi 20029 20030fi 20031if test -n "$PKG_CONFIG"; then 20032 _pkg_min_version=0.9.0 20033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 20034$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 20035 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20037$as_echo "yes" >&6; } 20038 else 20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20040$as_echo "no" >&6; } 20041 PKG_CONFIG="" 20042 fi 20043fi 20044 20045 20046 20047# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro 20048# was not expanded, since libX11 with no transport types is rather useless. 20049# 20050# If you're seeing an error here, be sure you installed the lib/xtrans module 20051# first and if it's not in the default location, that you set the ACLOCAL 20052# environment variable to find it, such as: 20053# ACLOCAL="aclocal -I ${PREFIX}/share/aclocal" 20054 20055 20056# Transport selection macro from xtrans.m4 20057 20058 20059 case $host_os in 20060 mingw*) unixdef="no" ;; 20061 *) unixdef="yes" ;; 20062 esac 20063 # Check whether --enable-unix-transport was given. 20064if test "${enable_unix_transport+set}" = set; then : 20065 enableval=$enable_unix_transport; UNIXCONN=$enableval 20066else 20067 UNIXCONN=$unixdef 20068fi 20069 20070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 20071$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 20072 if test "$UNIXCONN" = "yes"; then 20073 20074$as_echo "#define UNIXCONN 1" >>confdefs.h 20075 20076 fi 20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 20078$as_echo "$UNIXCONN" >&6; } 20079 # Check whether --enable-tcp-transport was given. 20080if test "${enable_tcp_transport+set}" = set; then : 20081 enableval=$enable_tcp_transport; TCPCONN=$enableval 20082else 20083 TCPCONN=yes 20084fi 20085 20086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 20087$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 20088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 20089$as_echo "$TCPCONN" >&6; } 20090 if test "$TCPCONN" = "yes"; then 20091 20092$as_echo "#define TCPCONN 1" >>confdefs.h 20093 20094 20095 # SVR4 hides these in libraries other than libc 20096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 20097$as_echo_n "checking for library containing socket... " >&6; } 20098if ${ac_cv_search_socket+:} false; then : 20099 $as_echo_n "(cached) " >&6 20100else 20101 ac_func_search_save_LIBS=$LIBS 20102cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20103/* end confdefs.h. */ 20104 20105/* Override any GCC internal prototype to avoid an error. 20106 Use char because int might match the return type of a GCC 20107 builtin and then its argument prototype would still apply. */ 20108#ifdef __cplusplus 20109extern "C" 20110#endif 20111char socket (); 20112int 20113main () 20114{ 20115return socket (); 20116 ; 20117 return 0; 20118} 20119_ACEOF 20120for ac_lib in '' socket; do 20121 if test -z "$ac_lib"; then 20122 ac_res="none required" 20123 else 20124 ac_res=-l$ac_lib 20125 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20126 fi 20127 if ac_fn_c_try_link "$LINENO"; then : 20128 ac_cv_search_socket=$ac_res 20129fi 20130rm -f core conftest.err conftest.$ac_objext \ 20131 conftest$ac_exeext 20132 if ${ac_cv_search_socket+:} false; then : 20133 break 20134fi 20135done 20136if ${ac_cv_search_socket+:} false; then : 20137 20138else 20139 ac_cv_search_socket=no 20140fi 20141rm conftest.$ac_ext 20142LIBS=$ac_func_search_save_LIBS 20143fi 20144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 20145$as_echo "$ac_cv_search_socket" >&6; } 20146ac_res=$ac_cv_search_socket 20147if test "$ac_res" != no; then : 20148 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20149 20150fi 20151 20152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 20153$as_echo_n "checking for library containing gethostbyname... " >&6; } 20154if ${ac_cv_search_gethostbyname+:} false; then : 20155 $as_echo_n "(cached) " >&6 20156else 20157 ac_func_search_save_LIBS=$LIBS 20158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20159/* end confdefs.h. */ 20160 20161/* Override any GCC internal prototype to avoid an error. 20162 Use char because int might match the return type of a GCC 20163 builtin and then its argument prototype would still apply. */ 20164#ifdef __cplusplus 20165extern "C" 20166#endif 20167char gethostbyname (); 20168int 20169main () 20170{ 20171return gethostbyname (); 20172 ; 20173 return 0; 20174} 20175_ACEOF 20176for ac_lib in '' nsl; do 20177 if test -z "$ac_lib"; then 20178 ac_res="none required" 20179 else 20180 ac_res=-l$ac_lib 20181 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20182 fi 20183 if ac_fn_c_try_link "$LINENO"; then : 20184 ac_cv_search_gethostbyname=$ac_res 20185fi 20186rm -f core conftest.err conftest.$ac_objext \ 20187 conftest$ac_exeext 20188 if ${ac_cv_search_gethostbyname+:} false; then : 20189 break 20190fi 20191done 20192if ${ac_cv_search_gethostbyname+:} false; then : 20193 20194else 20195 ac_cv_search_gethostbyname=no 20196fi 20197rm conftest.$ac_ext 20198LIBS=$ac_func_search_save_LIBS 20199fi 20200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 20201$as_echo "$ac_cv_search_gethostbyname" >&6; } 20202ac_res=$ac_cv_search_gethostbyname 20203if test "$ac_res" != no; then : 20204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20205 20206fi 20207 20208 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 20209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 20210$as_echo_n "checking for main in -lws2_32... " >&6; } 20211if ${ac_cv_lib_ws2_32_main+:} false; then : 20212 $as_echo_n "(cached) " >&6 20213else 20214 ac_check_lib_save_LIBS=$LIBS 20215LIBS="-lws2_32 $LIBS" 20216cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20217/* end confdefs.h. */ 20218 20219 20220int 20221main () 20222{ 20223return main (); 20224 ; 20225 return 0; 20226} 20227_ACEOF 20228if ac_fn_c_try_link "$LINENO"; then : 20229 ac_cv_lib_ws2_32_main=yes 20230else 20231 ac_cv_lib_ws2_32_main=no 20232fi 20233rm -f core conftest.err conftest.$ac_objext \ 20234 conftest$ac_exeext conftest.$ac_ext 20235LIBS=$ac_check_lib_save_LIBS 20236fi 20237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 20238$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 20239if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 20240 cat >>confdefs.h <<_ACEOF 20241#define HAVE_LIBWS2_32 1 20242_ACEOF 20243 20244 LIBS="-lws2_32 $LIBS" 20245 20246fi 20247 20248 fi 20249 20250 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 20251 # Check whether --enable-ipv6 was given. 20252if test "${enable_ipv6+set}" = set; then : 20253 enableval=$enable_ipv6; IPV6CONN=$enableval 20254else 20255 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 20256if test "x$ac_cv_func_getaddrinfo" = xyes; then : 20257 IPV6CONN=yes 20258else 20259 IPV6CONN=no 20260fi 20261 20262fi 20263 20264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 20265$as_echo_n "checking if IPv6 support should be built... " >&6; } 20266 if test "$IPV6CONN" = "yes"; then 20267 20268$as_echo "#define IPv6 1" >>confdefs.h 20269 20270 fi 20271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 20272$as_echo "$IPV6CONN" >&6; } 20273 20274 # 4.3BSD-Reno added a new member to struct sockaddr_in 20275 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 20276#include <sys/types.h> 20277#include <sys/socket.h> 20278#include <netinet/in.h> 20279 20280" 20281if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 20282 20283$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 20284 20285fi 20286 20287 20288 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 20289 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 20290$ac_includes_default 20291#include <sys/socket.h> 20292" 20293if test "x$ac_cv_type_socklen_t" = xyes; then : 20294 20295cat >>confdefs.h <<_ACEOF 20296#define HAVE_SOCKLEN_T 1 20297_ACEOF 20298 20299 20300fi 20301 20302 20303 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 20304 # _XOPEN_SOURCE to get it (such as on Solaris) 20305 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 20306$ac_includes_default 20307#include <sys/socket.h> 20308 20309" 20310if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 20311 20312fi 20313 20314 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 20315 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 20316 unset ac_cv_member_struct_msghdr_msg_control 20317 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 20318$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 20319 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 20320#define _XOPEN_SOURCE 600 20321$ac_includes_default 20322#include <sys/socket.h> 20323 20324" 20325if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 20326 20327$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 20328 20329 20330fi 20331 20332 fi 20333 # If that didn't work, fall back to XPG5/UNIX98 with C89 20334 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 20335 unset ac_cv_member_struct_msghdr_msg_control 20336 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 20337$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 20338 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 20339#define _XOPEN_SOURCE 500 20340$ac_includes_default 20341#include <sys/socket.h> 20342 20343" 20344if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 20345 20346$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 20347 20348 20349fi 20350 20351 fi 20352 20353 20354 20355 fi 20356 case $host_os in 20357 solaris*|sco*|sysv4*) localdef="yes" ;; 20358 *) localdef="no" ;; 20359 esac 20360 # Check whether --enable-local-transport was given. 20361if test "${enable_local_transport+set}" = set; then : 20362 enableval=$enable_local_transport; LOCALCONN=$enableval 20363else 20364 LOCALCONN=$localdef 20365fi 20366 20367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 20368$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 20369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 20370$as_echo "$LOCALCONN" >&6; } 20371 if test "$LOCALCONN" = "yes"; then 20372 20373$as_echo "#define LOCALCONN 1" >>confdefs.h 20374 20375 fi 20376 20377 # Other functions Xtrans may need 20378 for ac_func in strcasecmp strlcpy 20379do : 20380 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20381ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20382if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20383 cat >>confdefs.h <<_ACEOF 20384#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20385_ACEOF 20386 20387fi 20388done 20389 20390 20391 20392 20393# Check for dlopen 20394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5 20395$as_echo_n "checking if run-time linking is supported... " >&6; } 20396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 20397$as_echo_n "checking for library containing dlopen... " >&6; } 20398if ${ac_cv_search_dlopen+:} false; then : 20399 $as_echo_n "(cached) " >&6 20400else 20401 ac_func_search_save_LIBS=$LIBS 20402cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20403/* end confdefs.h. */ 20404 20405/* Override any GCC internal prototype to avoid an error. 20406 Use char because int might match the return type of a GCC 20407 builtin and then its argument prototype would still apply. */ 20408#ifdef __cplusplus 20409extern "C" 20410#endif 20411char dlopen (); 20412int 20413main () 20414{ 20415return dlopen (); 20416 ; 20417 return 0; 20418} 20419_ACEOF 20420for ac_lib in '' dl svld; do 20421 if test -z "$ac_lib"; then 20422 ac_res="none required" 20423 else 20424 ac_res=-l$ac_lib 20425 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20426 fi 20427 if ac_fn_c_try_link "$LINENO"; then : 20428 ac_cv_search_dlopen=$ac_res 20429fi 20430rm -f core conftest.err conftest.$ac_objext \ 20431 conftest$ac_exeext 20432 if ${ac_cv_search_dlopen+:} false; then : 20433 break 20434fi 20435done 20436if ${ac_cv_search_dlopen+:} false; then : 20437 20438else 20439 ac_cv_search_dlopen=no 20440fi 20441rm conftest.$ac_ext 20442LIBS=$ac_func_search_save_LIBS 20443fi 20444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 20445$as_echo "$ac_cv_search_dlopen" >&6; } 20446ac_res=$ac_cv_search_dlopen 20447if test "$ac_res" != no; then : 20448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20449 20450fi 20451 20452if test "x$ac_cv_search_dlopen" = xno; then 20453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5 20454$as_echo_n "checking for library containing shl_load... " >&6; } 20455if ${ac_cv_search_shl_load+:} false; then : 20456 $as_echo_n "(cached) " >&6 20457else 20458 ac_func_search_save_LIBS=$LIBS 20459cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20460/* end confdefs.h. */ 20461 20462/* Override any GCC internal prototype to avoid an error. 20463 Use char because int might match the return type of a GCC 20464 builtin and then its argument prototype would still apply. */ 20465#ifdef __cplusplus 20466extern "C" 20467#endif 20468char shl_load (); 20469int 20470main () 20471{ 20472return shl_load (); 20473 ; 20474 return 0; 20475} 20476_ACEOF 20477for ac_lib in '' dld; do 20478 if test -z "$ac_lib"; then 20479 ac_res="none required" 20480 else 20481 ac_res=-l$ac_lib 20482 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20483 fi 20484 if ac_fn_c_try_link "$LINENO"; then : 20485 ac_cv_search_shl_load=$ac_res 20486fi 20487rm -f core conftest.err conftest.$ac_objext \ 20488 conftest$ac_exeext 20489 if ${ac_cv_search_shl_load+:} false; then : 20490 break 20491fi 20492done 20493if ${ac_cv_search_shl_load+:} false; then : 20494 20495else 20496 ac_cv_search_shl_load=no 20497fi 20498rm conftest.$ac_ext 20499LIBS=$ac_func_search_save_LIBS 20500fi 20501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5 20502$as_echo "$ac_cv_search_shl_load" >&6; } 20503ac_res=$ac_cv_search_shl_load 20504if test "$ac_res" != no; then : 20505 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20506 20507fi 20508 20509 if test "x$ac_cv_search_shl_load" != xno; then 20510 20511$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 20512 20513 for ac_header in dl.h 20514do : 20515 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 20516if test "x$ac_cv_header_dl_h" = xyes; then : 20517 cat >>confdefs.h <<_ACEOF 20518#define HAVE_DL_H 1 20519_ACEOF 20520 20521fi 20522 20523done 20524 20525 fi 20526else 20527 20528$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 20529 20530 for ac_header in dlfcn.h 20531do : 20532 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 20533if test "x$ac_cv_header_dlfcn_h" = xyes; then : 20534 cat >>confdefs.h <<_ACEOF 20535#define HAVE_DLFCN_H 1 20536_ACEOF 20537 20538fi 20539 20540done 20541 20542fi 20543if test "x$ac_cv_header_dlfcn_h" = xyes -o "x$ac_cv_header_dl_h" = xyes; then 20544 HAVE_LOADABLE_MODULES=yes 20545else 20546 HAVE_LOADABLE_MODULES=no 20547fi 20548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5 20549$as_echo "$HAVE_LOADABLE_MODULES" >&6; } 20550 20551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5 20552$as_echo_n "checking if loadable i18n module support should be enabled... " >&6; } 20553# Check whether --enable-loadable-i18n was given. 20554if test "${enable_loadable_i18n+set}" = set; then : 20555 enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval 20556else 20557 XLIB_LOADABLE_I18N="no" 20558fi 20559 20560if test x$XLIB_LOADABLE_I18N = xyes; then 20561 if test x$HAVE_LOADABLE_MODULES = xno; then 20562 as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5 20563 fi 20564 20565$as_echo "#define USE_DYNAMIC_LC 1" >>confdefs.h 20566 20567 I18N_MODULE_LIBS='${top_builddir}/src/libX11.la' 20568 20569fi 20570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5 20571$as_echo "$XLIB_LOADABLE_I18N" >&6; } 20572 20573 if test x$XLIB_LOADABLE_I18N = xyes; then 20574 XLIB_LOADABLE_I18N_TRUE= 20575 XLIB_LOADABLE_I18N_FALSE='#' 20576else 20577 XLIB_LOADABLE_I18N_TRUE='#' 20578 XLIB_LOADABLE_I18N_FALSE= 20579fi 20580 20581 20582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5 20583$as_echo_n "checking if loadable Xcursor library support should be enabled... " >&6; } 20584# Check whether --enable-loadable-xcursor was given. 20585if test "${enable_loadable_xcursor+set}" = set; then : 20586 enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval 20587else 20588 XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES 20589fi 20590 20591if test x$XLIB_LOADABLE_XCURSOR = xyes; then 20592 20593$as_echo "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h 20594 20595fi 20596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5 20597$as_echo "$XLIB_LOADABLE_XCURSOR" >&6; } 20598 20599# Checks for header files. 20600for ac_header in sys/filio.h sys/select.h sys/ioctl.h sys/socket.h 20601do : 20602 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20603ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20604if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20605 cat >>confdefs.h <<_ACEOF 20606#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20607_ACEOF 20608 20609fi 20610 20611done 20612 20613 20614# Checks for typedefs, structures, and compiler characteristics. 20615 20616# Checks for library functions. 20617for ac_func in strtol seteuid 20618do : 20619 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20620ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20621if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20622 cat >>confdefs.h <<_ACEOF 20623#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20624_ACEOF 20625 20626fi 20627done 20628 20629ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 20630if test "x$ac_cv_func_reallocarray" = xyes; then : 20631 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h 20632 20633else 20634 case " $LIBOBJS " in 20635 *" reallocarray.$ac_objext "* ) ;; 20636 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 20637 ;; 20638esac 20639 20640fi 20641 20642 20643# Used in lcFile.c (see also --enable-xlocaledir settings below) 20644XLOCALEDIR_IS_SAFE="no" 20645ac_fn_c_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "$ac_includes_default" 20646if test "x$ac_cv_have_decl_issetugid" = xyes; then : 20647 20648fi 20649 20650ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 20651if test "x$ac_cv_func_issetugid" = xyes; then : 20652 20653fi 20654 20655if test "$ac_cv_have_decl_issetugid" = yes && test "$ac_cv_func_issetugid" = yes; then 20656 XLOCALEDIR_IS_SAFE="yes" 20657 20658$as_echo "#define HASSETUGID 1" >>confdefs.h 20659 20660fi 20661ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid" 20662if test "x$ac_cv_func_getresuid" = xyes; then : 20663 XLOCALEDIR_IS_SAFE="yes" 20664 20665$as_echo "#define HASGETRESUID 1" >>confdefs.h 20666 20667fi 20668 20669# Used in Font.c 20670ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 20671if test "x$ac_cv_func_shmat" = xyes; then : 20672 20673$as_echo "#define HAS_SHM 1" >>confdefs.h 20674 20675fi 20676 20677 20678# Checks for system services 20679# AC_PATH_XTRA 20680 20681# arch specific things 20682WCHAR32="1" 20683case $host_os in 20684 os2*) os2="true" ; WCHAR32="0" ;; 20685 *) ;; 20686esac 20687 20688 20689 if test x$os2 = xtrue; then 20690 OS2_TRUE= 20691 OS2_FALSE='#' 20692else 20693 OS2_TRUE='#' 20694 OS2_FALSE= 20695fi 20696 20697 20698 20699# Check whether --with-launchd was given. 20700if test "${with_launchd+set}" = set; then : 20701 withval=$with_launchd; LAUNCHD=$withval 20702else 20703 LAUNCHD=auto 20704fi 20705 20706if test "x$LAUNCHD" = xauto; then 20707 unset LAUNCHD 20708 # Extract the first word of "launchd", so it can be a program name with args. 20709set dummy launchd; ac_word=$2 20710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20711$as_echo_n "checking for $ac_word... " >&6; } 20712if ${ac_cv_prog_LAUNCHD+:} false; then : 20713 $as_echo_n "(cached) " >&6 20714else 20715 if test -n "$LAUNCHD"; then 20716 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 20717else 20718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20719for as_dir in $PATH$PATH_SEPARATOR/sbin 20720do 20721 IFS=$as_save_IFS 20722 test -z "$as_dir" && as_dir=. 20723 for ac_exec_ext in '' $ac_executable_extensions; do 20724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20725 ac_cv_prog_LAUNCHD="yes" 20726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20727 break 2 20728 fi 20729done 20730 done 20731IFS=$as_save_IFS 20732 20733 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 20734fi 20735fi 20736LAUNCHD=$ac_cv_prog_LAUNCHD 20737if test -n "$LAUNCHD"; then 20738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 20739$as_echo "$LAUNCHD" >&6; } 20740else 20741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20742$as_echo "no" >&6; } 20743fi 20744 20745 20746fi 20747 20748if test "x$LAUNCHD" = xyes ; then 20749 20750$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h 20751 20752 20753$as_echo "#define TRANS_REOPEN 1" >>confdefs.h 20754 20755fi 20756 20757# Check whether --enable-xthreads was given. 20758if test "${enable_xthreads+set}" = set; then : 20759 enableval=$enable_xthreads; xthreads=$enableval 20760else 20761 xthreads=yes 20762fi 20763 20764 20765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5 20766$as_echo_n "checking for getpwuid_r in -lc... " >&6; } 20767if ${ac_cv_lib_c_getpwuid_r+:} false; then : 20768 $as_echo_n "(cached) " >&6 20769else 20770 ac_check_lib_save_LIBS=$LIBS 20771LIBS="-lc $LIBS" 20772cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20773/* end confdefs.h. */ 20774 20775/* Override any GCC internal prototype to avoid an error. 20776 Use char because int might match the return type of a GCC 20777 builtin and then its argument prototype would still apply. */ 20778#ifdef __cplusplus 20779extern "C" 20780#endif 20781char getpwuid_r (); 20782int 20783main () 20784{ 20785return getpwuid_r (); 20786 ; 20787 return 0; 20788} 20789_ACEOF 20790if ac_fn_c_try_link "$LINENO"; then : 20791 ac_cv_lib_c_getpwuid_r=yes 20792else 20793 ac_cv_lib_c_getpwuid_r=no 20794fi 20795rm -f core conftest.err conftest.$ac_objext \ 20796 conftest$ac_exeext conftest.$ac_ext 20797LIBS=$ac_check_lib_save_LIBS 20798fi 20799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5 20800$as_echo "$ac_cv_lib_c_getpwuid_r" >&6; } 20801if test "x$ac_cv_lib_c_getpwuid_r" = xyes; then : 20802 mtsafeapi="yes" 20803else 20804 mtsafeapi="no" 20805fi 20806 20807 20808case x$xthreads in 20809xyes) 20810 20811$as_echo "#define XTHREADS 1" >>confdefs.h 20812 20813 if test x$mtsafeapi = xyes 20814 then 20815 20816$as_echo "#define XUSE_MTSAFE_API 1" >>confdefs.h 20817 20818 fi 20819 ;; 20820*) 20821 ;; 20822esac 20823 20824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc" >&5 20825$as_echo_n "checking for pthread_self in -lc... " >&6; } 20826if ${ac_cv_lib_c_pthread_self+:} false; then : 20827 $as_echo_n "(cached) " >&6 20828else 20829 ac_check_lib_save_LIBS=$LIBS 20830LIBS="-lc $LIBS" 20831cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20832/* end confdefs.h. */ 20833 20834/* Override any GCC internal prototype to avoid an error. 20835 Use char because int might match the return type of a GCC 20836 builtin and then its argument prototype would still apply. */ 20837#ifdef __cplusplus 20838extern "C" 20839#endif 20840char pthread_self (); 20841int 20842main () 20843{ 20844return pthread_self (); 20845 ; 20846 return 0; 20847} 20848_ACEOF 20849if ac_fn_c_try_link "$LINENO"; then : 20850 ac_cv_lib_c_pthread_self=yes 20851else 20852 ac_cv_lib_c_pthread_self=no 20853fi 20854rm -f core conftest.err conftest.$ac_objext \ 20855 conftest$ac_exeext conftest.$ac_ext 20856LIBS=$ac_check_lib_save_LIBS 20857fi 20858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_self" >&5 20859$as_echo "$ac_cv_lib_c_pthread_self" >&6; } 20860if test "x$ac_cv_lib_c_pthread_self" = xyes; then : 20861 thrstubs="no" 20862else 20863 thrstubs="yes" 20864fi 20865 20866 if test x$thrstubs = xyes; then 20867 THRSTUBS_TRUE= 20868 THRSTUBS_FALSE='#' 20869else 20870 THRSTUBS_TRUE='#' 20871 THRSTUBS_FALSE= 20872fi 20873 20874 20875# XXX incomplete, please fill this in 20876if test x$xthreads = xyes ; then 20877 case $host_os in 20878 linux*|gnu*|k*bsd*-gnu) 20879 XTHREADLIB=-lpthread ;; 20880 netbsd*) 20881 XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS" 20882 XTHREADLIB="-lpthread" ;; 20883 freebsd*) 20884 XTHREAD_CFLAGS="-D_THREAD_SAFE" 20885 XTHREADLIB="-pthread" ;; 20886 dragonfly*|openbsd*) 20887 XTHREADLIB="-pthread" ;; 20888 solaris*) 20889 XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;; 20890 esac 20891fi 20892 20893 20894 20895ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 20896if test "x$ac_cv_func_poll" = xyes; then : 20897 20898$as_echo "#define USE_POLL 1" >>confdefs.h 20899 20900fi 20901 20902 20903# 20904# Find keysymdef.h 20905# 20906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5 20907$as_echo_n "checking keysym definitions... " >&6; } 20908 20909# Check whether --with-keysymdefdir was given. 20910if test "${with_keysymdefdir+set}" = set; then : 20911 withval=$with_keysymdefdir; KEYSYMDEFDIR=$withval 20912else 20913 KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11 20914fi 20915 20916 20917if test ! -d "$KEYSYMDEFDIR"; then 20918 as_fn_error $? "$KEYSYMDEFDIR doesn't exist or isn't a directory" "$LINENO" 5 20919fi 20920 20921FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h" 20922for i in $FILES; do 20923 if test -f "$KEYSYMDEFDIR/$i"; then 20924 KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i" 20925 elif test "x$i" = "xkeysymdef.h"; then 20926 as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5 20927 fi 20928done 20929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5 20930$as_echo "$KEYSYMDEFS" >&6; } 20931 20932 20933# Check whether --enable-xcms was given. 20934if test "${enable_xcms+set}" = set; then : 20935 enableval=$enable_xcms; XCMS=$enableval 20936else 20937 XCMS=yes 20938fi 20939 20940 if test x$XCMS = xyes ; then 20941 XCMS_TRUE= 20942 XCMS_FALSE='#' 20943else 20944 XCMS_TRUE='#' 20945 XCMS_FALSE= 20946fi 20947 20948if test x"$XCMS" = "xyes"; then 20949 20950$as_echo "#define XCMS 1" >>confdefs.h 20951 20952fi 20953 20954# Check whether --enable-xlocale was given. 20955if test "${enable_xlocale+set}" = set; then : 20956 enableval=$enable_xlocale; XLOCALE=$enableval 20957else 20958 XLOCALE=yes 20959fi 20960 20961 20962 if test x$XLOCALE = xyes ; then 20963 XLOCALE_TRUE= 20964 XLOCALE_FALSE='#' 20965else 20966 XLOCALE_TRUE='#' 20967 XLOCALE_FALSE= 20968fi 20969 20970if test x"$XLOCALE" = "xyes"; then 20971 20972$as_echo "#define XLOCALE 1" >>confdefs.h 20973 20974fi 20975 20976# This disables XLOCALEDIR. Set it if you're using BuildLoadableXlibI18n, 20977# don't have either issetugid() or getresuid(), and you need to protect 20978# clients that are setgid or setuid to an id other than 0. 20979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5 20980$as_echo_n "checking if XLOCALEDIR support should be enabled... " >&6; } 20981# Check whether --enable-xlocaledir was given. 20982if test "${enable_xlocaledir+set}" = set; then : 20983 enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval 20984else 20985 ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE 20986fi 20987 20988if test "x$ENABLE_XLOCALEDIR" = "xno"; then 20989 20990$as_echo "#define NO_XLOCALEDIR 1" >>confdefs.h 20991 20992fi 20993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5 20994$as_echo "$ENABLE_XLOCALEDIR" >&6; } 20995 20996# Check whether --enable-xf86bigfont was given. 20997if test "${enable_xf86bigfont+set}" = set; then : 20998 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval 20999else 21000 XF86BIGFONT="yes" 21001fi 21002 21003if test "x$XF86BIGFONT" = "xyes"; then 21004 21005pkg_failed=no 21006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5 21007$as_echo_n "checking for BIGFONT... " >&6; } 21008 21009if test -n "$BIGFONT_CFLAGS"; then 21010 pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS" 21011 elif test -n "$PKG_CONFIG"; then 21012 if test -n "$PKG_CONFIG" && \ 21013 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5 21014 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5 21015 ac_status=$? 21016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21017 test $ac_status = 0; }; then 21018 pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto >= 1.2.0" 2>/dev/null` 21019 test "x$?" != "x0" && pkg_failed=yes 21020else 21021 pkg_failed=yes 21022fi 21023 else 21024 pkg_failed=untried 21025fi 21026if test -n "$BIGFONT_LIBS"; then 21027 pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS" 21028 elif test -n "$PKG_CONFIG"; then 21029 if test -n "$PKG_CONFIG" && \ 21030 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5 21031 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5 21032 ac_status=$? 21033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21034 test $ac_status = 0; }; then 21035 pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto >= 1.2.0" 2>/dev/null` 21036 test "x$?" != "x0" && pkg_failed=yes 21037else 21038 pkg_failed=yes 21039fi 21040 else 21041 pkg_failed=untried 21042fi 21043 21044 21045 21046if test $pkg_failed = yes; then 21047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21048$as_echo "no" >&6; } 21049 21050if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21051 _pkg_short_errors_supported=yes 21052else 21053 _pkg_short_errors_supported=no 21054fi 21055 if test $_pkg_short_errors_supported = yes; then 21056 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1` 21057 else 21058 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1` 21059 fi 21060 # Put the nasty error message in config.log where it belongs 21061 echo "$BIGFONT_PKG_ERRORS" >&5 21062 21063 XF86BIGFONT="no" 21064elif test $pkg_failed = untried; then 21065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21066$as_echo "no" >&6; } 21067 XF86BIGFONT="no" 21068else 21069 BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS 21070 BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS 21071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21072$as_echo "yes" >&6; } 21073 21074$as_echo "#define XF86BIGFONT 1" >>confdefs.h 21075 21076fi 21077fi 21078 21079# Check whether --enable-xkb was given. 21080if test "${enable_xkb+set}" = set; then : 21081 enableval=$enable_xkb; XKB=$enableval 21082else 21083 XKB=yes 21084fi 21085 21086 21087 if test x$XKB = xyes ; then 21088 XKB_TRUE= 21089 XKB_FALSE='#' 21090else 21091 XKB_TRUE='#' 21092 XKB_FALSE= 21093fi 21094 21095if test x"$XKB" = "xyes"; then 21096 XKBPROTO_REQUIRES="kbproto" 21097 X11_REQUIRES="${X11_REQUIRES} kbproto inputproto" 21098 21099$as_echo "#define XKB 1" >>confdefs.h 21100 21101else 21102 XKBPROTO_REQUIRES="" 21103fi 21104 21105 21106 21107 21108 21109 for ac_header in $ac_header_list 21110do : 21111 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21112ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 21113" 21114if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21115 cat >>confdefs.h <<_ACEOF 21116#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21117_ACEOF 21118 21119fi 21120 21121done 21122 21123 21124 21125 21126 21127 21128 21129 21130for ac_func in getpagesize 21131do : 21132 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 21133if test "x$ac_cv_func_getpagesize" = xyes; then : 21134 cat >>confdefs.h <<_ACEOF 21135#define HAVE_GETPAGESIZE 1 21136_ACEOF 21137 21138fi 21139done 21140 21141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 21142$as_echo_n "checking for working mmap... " >&6; } 21143if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 21144 $as_echo_n "(cached) " >&6 21145else 21146 if test "$cross_compiling" = yes; then : 21147 ac_cv_func_mmap_fixed_mapped=no 21148else 21149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21150/* end confdefs.h. */ 21151$ac_includes_default 21152/* malloc might have been renamed as rpl_malloc. */ 21153#undef malloc 21154 21155/* Thanks to Mike Haertel and Jim Avera for this test. 21156 Here is a matrix of mmap possibilities: 21157 mmap private not fixed 21158 mmap private fixed at somewhere currently unmapped 21159 mmap private fixed at somewhere already mapped 21160 mmap shared not fixed 21161 mmap shared fixed at somewhere currently unmapped 21162 mmap shared fixed at somewhere already mapped 21163 For private mappings, we should verify that changes cannot be read() 21164 back from the file, nor mmap's back from the file at a different 21165 address. (There have been systems where private was not correctly 21166 implemented like the infamous i386 svr4.0, and systems where the 21167 VM page cache was not coherent with the file system buffer cache 21168 like early versions of FreeBSD and possibly contemporary NetBSD.) 21169 For shared mappings, we should conversely verify that changes get 21170 propagated back to all the places they're supposed to be. 21171 21172 Grep wants private fixed already mapped. 21173 The main things grep needs to know about mmap are: 21174 * does it exist and is it safe to write into the mmap'd area 21175 * how to use it (BSD variants) */ 21176 21177#include <fcntl.h> 21178#include <sys/mman.h> 21179 21180#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 21181char *malloc (); 21182#endif 21183 21184/* This mess was copied from the GNU getpagesize.h. */ 21185#ifndef HAVE_GETPAGESIZE 21186# ifdef _SC_PAGESIZE 21187# define getpagesize() sysconf(_SC_PAGESIZE) 21188# else /* no _SC_PAGESIZE */ 21189# ifdef HAVE_SYS_PARAM_H 21190# include <sys/param.h> 21191# ifdef EXEC_PAGESIZE 21192# define getpagesize() EXEC_PAGESIZE 21193# else /* no EXEC_PAGESIZE */ 21194# ifdef NBPG 21195# define getpagesize() NBPG * CLSIZE 21196# ifndef CLSIZE 21197# define CLSIZE 1 21198# endif /* no CLSIZE */ 21199# else /* no NBPG */ 21200# ifdef NBPC 21201# define getpagesize() NBPC 21202# else /* no NBPC */ 21203# ifdef PAGESIZE 21204# define getpagesize() PAGESIZE 21205# endif /* PAGESIZE */ 21206# endif /* no NBPC */ 21207# endif /* no NBPG */ 21208# endif /* no EXEC_PAGESIZE */ 21209# else /* no HAVE_SYS_PARAM_H */ 21210# define getpagesize() 8192 /* punt totally */ 21211# endif /* no HAVE_SYS_PARAM_H */ 21212# endif /* no _SC_PAGESIZE */ 21213 21214#endif /* no HAVE_GETPAGESIZE */ 21215 21216int 21217main () 21218{ 21219 char *data, *data2, *data3; 21220 const char *cdata2; 21221 int i, pagesize; 21222 int fd, fd2; 21223 21224 pagesize = getpagesize (); 21225 21226 /* First, make a file with some known garbage in it. */ 21227 data = (char *) malloc (pagesize); 21228 if (!data) 21229 return 1; 21230 for (i = 0; i < pagesize; ++i) 21231 *(data + i) = rand (); 21232 umask (0); 21233 fd = creat ("conftest.mmap", 0600); 21234 if (fd < 0) 21235 return 2; 21236 if (write (fd, data, pagesize) != pagesize) 21237 return 3; 21238 close (fd); 21239 21240 /* Next, check that the tail of a page is zero-filled. File must have 21241 non-zero length, otherwise we risk SIGBUS for entire page. */ 21242 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 21243 if (fd2 < 0) 21244 return 4; 21245 cdata2 = ""; 21246 if (write (fd2, cdata2, 1) != 1) 21247 return 5; 21248 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 21249 if (data2 == MAP_FAILED) 21250 return 6; 21251 for (i = 0; i < pagesize; ++i) 21252 if (*(data2 + i)) 21253 return 7; 21254 close (fd2); 21255 if (munmap (data2, pagesize)) 21256 return 8; 21257 21258 /* Next, try to mmap the file at a fixed address which already has 21259 something else allocated at it. If we can, also make sure that 21260 we see the same garbage. */ 21261 fd = open ("conftest.mmap", O_RDWR); 21262 if (fd < 0) 21263 return 9; 21264 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 21265 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 21266 return 10; 21267 for (i = 0; i < pagesize; ++i) 21268 if (*(data + i) != *(data2 + i)) 21269 return 11; 21270 21271 /* Finally, make sure that changes to the mapped area do not 21272 percolate back to the file as seen by read(). (This is a bug on 21273 some variants of i386 svr4.0.) */ 21274 for (i = 0; i < pagesize; ++i) 21275 *(data2 + i) = *(data2 + i) + 1; 21276 data3 = (char *) malloc (pagesize); 21277 if (!data3) 21278 return 12; 21279 if (read (fd, data3, pagesize) != pagesize) 21280 return 13; 21281 for (i = 0; i < pagesize; ++i) 21282 if (*(data + i) != *(data3 + i)) 21283 return 14; 21284 close (fd); 21285 return 0; 21286} 21287_ACEOF 21288if ac_fn_c_try_run "$LINENO"; then : 21289 ac_cv_func_mmap_fixed_mapped=yes 21290else 21291 ac_cv_func_mmap_fixed_mapped=no 21292fi 21293rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21294 conftest.$ac_objext conftest.beam conftest.$ac_ext 21295fi 21296 21297fi 21298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 21299$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 21300if test $ac_cv_func_mmap_fixed_mapped = yes; then 21301 21302$as_echo "#define HAVE_MMAP 1" >>confdefs.h 21303 21304fi 21305rm -f conftest.mmap conftest.txt 21306 21307composecache_default=$ac_cv_func_mmap_fixed_mapped 21308ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" 21309if test "x$ac_cv_func_nl_langinfo" = xyes; then : 21310 21311else 21312 composecache_default=no 21313fi 21314 21315# Check whether --enable-composecache was given. 21316if test "${enable_composecache+set}" = set; then : 21317 enableval=$enable_composecache; COMPOSECACHE=$enableval 21318else 21319 COMPOSECACHE=$composecache_default 21320fi 21321 21322if test x"$COMPOSECACHE" = "xyes"; then 21323 21324$as_echo "#define COMPOSECACHE 1" >>confdefs.h 21325 21326fi 21327 21328# Allow checking code with lint, sparse, etc. 21329 21330 21331 21332 21333 21334# Check whether --with-lint was given. 21335if test "${with_lint+set}" = set; then : 21336 withval=$with_lint; use_lint=$withval 21337else 21338 use_lint=no 21339fi 21340 21341 21342# Obtain platform specific info like program name and options 21343# The lint program on FreeBSD and NetBSD is different from the one on Solaris 21344case $host_os in 21345 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 21346 lint_name=splint 21347 lint_options="-badflag" 21348 ;; 21349 *freebsd* | *netbsd*) 21350 lint_name=lint 21351 lint_options="-u -b" 21352 ;; 21353 *solaris*) 21354 lint_name=lint 21355 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 21356 ;; 21357esac 21358 21359# Test for the presence of the program (either guessed by the code or spelled out by the user) 21360if test "x$use_lint" = x"yes" ; then 21361 # Extract the first word of "$lint_name", so it can be a program name with args. 21362set dummy $lint_name; ac_word=$2 21363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21364$as_echo_n "checking for $ac_word... " >&6; } 21365if ${ac_cv_path_LINT+:} false; then : 21366 $as_echo_n "(cached) " >&6 21367else 21368 case $LINT in 21369 [\\/]* | ?:[\\/]*) 21370 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 21371 ;; 21372 *) 21373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21374for as_dir in $PATH 21375do 21376 IFS=$as_save_IFS 21377 test -z "$as_dir" && as_dir=. 21378 for ac_exec_ext in '' $ac_executable_extensions; do 21379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21380 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 21381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21382 break 2 21383 fi 21384done 21385 done 21386IFS=$as_save_IFS 21387 21388 ;; 21389esac 21390fi 21391LINT=$ac_cv_path_LINT 21392if test -n "$LINT"; then 21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 21394$as_echo "$LINT" >&6; } 21395else 21396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21397$as_echo "no" >&6; } 21398fi 21399 21400 21401 if test "x$LINT" = "x"; then 21402 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 21403 fi 21404elif test "x$use_lint" = x"no" ; then 21405 if test "x$LINT" != "x"; then 21406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 21407$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 21408 fi 21409else 21410 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 21411fi 21412 21413# User supplied flags override default flags 21414if test "x$LINT_FLAGS" != "x"; then 21415 lint_options=$LINT_FLAGS 21416fi 21417 21418LINT_FLAGS=$lint_options 21419 21420 if test "x$LINT" != x; then 21421 LINT_TRUE= 21422 LINT_FALSE='#' 21423else 21424 LINT_TRUE='#' 21425 LINT_FALSE= 21426fi 21427 21428 21429 21430 21431 21432# Check whether --enable-lint-library was given. 21433if test "${enable_lint_library+set}" = set; then : 21434 enableval=$enable_lint_library; make_lint_lib=$enableval 21435else 21436 make_lint_lib=no 21437fi 21438 21439 21440if test "x$make_lint_lib" = x"yes" ; then 21441 LINTLIB=llib-lX11.ln 21442 if test "x$LINT" = "x"; then 21443 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 21444 fi 21445elif test "x$make_lint_lib" != x"no" ; then 21446 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 21447fi 21448 21449 21450 if test x$make_lint_lib != xno; then 21451 MAKE_LINT_LIB_TRUE= 21452 MAKE_LINT_LIB_FALSE='#' 21453else 21454 MAKE_LINT_LIB_TRUE='#' 21455 MAKE_LINT_LIB_FALSE= 21456fi 21457 21458 21459 21460 21461X11_DATADIR="${datadir}/X11" 21462 21463 prefix_NONE= 21464 exec_prefix_NONE= 21465 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21466 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21467 eval ax_define_dir="\"$X11_DATADIR\"" 21468 eval ax_define_dir="\"$ax_define_dir\"" 21469 X11_DATADIR="$ax_define_dir" 21470 21471 21472cat >>confdefs.h <<_ACEOF 21473#define X11_DATADIR "$ax_define_dir" 21474_ACEOF 21475 21476 test "$prefix_NONE" && prefix=NONE 21477 test "$exec_prefix_NONE" && exec_prefix=NONE 21478 21479 21480 21481X11_LIBDIR="${libdir}/X11" 21482 21483 prefix_NONE= 21484 exec_prefix_NONE= 21485 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21486 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21487 eval ax_define_dir="\"$X11_LIBDIR\"" 21488 eval ax_define_dir="\"$ax_define_dir\"" 21489 X11_LIBDIR="$ax_define_dir" 21490 21491 21492cat >>confdefs.h <<_ACEOF 21493#define X11_LIBDIR "$ax_define_dir" 21494_ACEOF 21495 21496 test "$prefix_NONE" && prefix=NONE 21497 test "$exec_prefix_NONE" && exec_prefix=NONE 21498 21499 21500 21501 21502pkg_failed=no 21503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 21504$as_echo_n "checking for X11... " >&6; } 21505 21506if test -n "$X11_CFLAGS"; then 21507 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 21508 elif test -n "$PKG_CONFIG"; then 21509 if test -n "$PKG_CONFIG" && \ 21510 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 21511 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 21512 ac_status=$? 21513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21514 test $ac_status = 0; }; then 21515 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null` 21516 test "x$?" != "x0" && pkg_failed=yes 21517else 21518 pkg_failed=yes 21519fi 21520 else 21521 pkg_failed=untried 21522fi 21523if test -n "$X11_LIBS"; then 21524 pkg_cv_X11_LIBS="$X11_LIBS" 21525 elif test -n "$PKG_CONFIG"; then 21526 if test -n "$PKG_CONFIG" && \ 21527 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 21528 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 21529 ac_status=$? 21530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21531 test $ac_status = 0; }; then 21532 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null` 21533 test "x$?" != "x0" && pkg_failed=yes 21534else 21535 pkg_failed=yes 21536fi 21537 else 21538 pkg_failed=untried 21539fi 21540 21541 21542 21543if test $pkg_failed = yes; then 21544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21545$as_echo "no" >&6; } 21546 21547if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21548 _pkg_short_errors_supported=yes 21549else 21550 _pkg_short_errors_supported=no 21551fi 21552 if test $_pkg_short_errors_supported = yes; then 21553 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$X11_REQUIRES" 2>&1` 21554 else 21555 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$X11_REQUIRES" 2>&1` 21556 fi 21557 # Put the nasty error message in config.log where it belongs 21558 echo "$X11_PKG_ERRORS" >&5 21559 21560 as_fn_error $? "Package requirements ($X11_REQUIRES) were not met: 21561 21562$X11_PKG_ERRORS 21563 21564Consider adjusting the PKG_CONFIG_PATH environment variable if you 21565installed software in a non-standard prefix. 21566 21567Alternatively, you may set the environment variables X11_CFLAGS 21568and X11_LIBS to avoid the need to call pkg-config. 21569See the pkg-config man page for more details." "$LINENO" 5 21570elif test $pkg_failed = untried; then 21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21572$as_echo "no" >&6; } 21573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21575as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21576is in your PATH or set the PKG_CONFIG environment variable to the full 21577path to pkg-config. 21578 21579Alternatively, you may set the environment variables X11_CFLAGS 21580and X11_LIBS to avoid the need to call pkg-config. 21581See the pkg-config man page for more details. 21582 21583To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21584See \`config.log' for more details" "$LINENO" 5; } 21585else 21586 X11_CFLAGS=$pkg_cv_X11_CFLAGS 21587 X11_LIBS=$pkg_cv_X11_LIBS 21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21589$as_echo "yes" >&6; } 21590 21591fi 21592X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS" 21593 21594# 21595# Yes, it would be nice to put the locale data in 21596# /usr/share, but the locale stuff includes loadable 21597# libraries which must be located in the same directory 21598# as the other locale data, so for now, everything lives 21599# in ${libdir} 21600# 21601 21602X11_LOCALEDATADIR="${X11_DATADIR}/locale" 21603 21604 prefix_NONE= 21605 exec_prefix_NONE= 21606 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21607 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21608 eval ax_define_dir="\"$X11_LOCALEDATADIR\"" 21609 eval ax_define_dir="\"$ax_define_dir\"" 21610 XLOCALEDATADIR="$ax_define_dir" 21611 21612 21613cat >>confdefs.h <<_ACEOF 21614#define XLOCALEDATADIR "$ax_define_dir" 21615_ACEOF 21616 21617 test "$prefix_NONE" && prefix=NONE 21618 test "$exec_prefix_NONE" && exec_prefix=NONE 21619 21620 21621 21622 21623# Check whether --with-locale-lib-dir was given. 21624if test "${with_locale_lib_dir+set}" = set; then : 21625 withval=$with_locale_lib_dir; X11_LOCALELIBDIR="$withval" 21626else 21627 X11_LOCALELIBDIR="${X11_LIBDIR}/locale" 21628fi 21629 21630 21631 prefix_NONE= 21632 exec_prefix_NONE= 21633 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21634 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21635 eval ax_define_dir="\"$X11_LOCALELIBDIR\"" 21636 eval ax_define_dir="\"$ax_define_dir\"" 21637 XLOCALELIBDIR="$ax_define_dir" 21638 21639 21640cat >>confdefs.h <<_ACEOF 21641#define XLOCALELIBDIR "$ax_define_dir" 21642_ACEOF 21643 21644 test "$prefix_NONE" && prefix=NONE 21645 test "$exec_prefix_NONE" && exec_prefix=NONE 21646 21647 21648 21649X11_LOCALEDIR="${X11_LOCALEDATADIR}" 21650 21651 prefix_NONE= 21652 exec_prefix_NONE= 21653 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21654 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21655 eval ax_define_dir="\"$X11_LOCALEDIR\"" 21656 eval ax_define_dir="\"$ax_define_dir\"" 21657 XLOCALEDIR="$ax_define_dir" 21658 21659 21660cat >>confdefs.h <<_ACEOF 21661#define XLOCALEDIR "$ax_define_dir" 21662_ACEOF 21663 21664 test "$prefix_NONE" && prefix=NONE 21665 test "$exec_prefix_NONE" && exec_prefix=NONE 21666 21667 21668 21669locales="\ 21670 am_ET.UTF-8 armscii-8 C cs_CZ.UTF-8 el_GR.UTF-8 en_US.UTF-8 \ 21671 fi_FI.UTF-8 georgian-academy georgian-ps ibm-cp1133 iscii-dev \ 21672 isiri-3342 iso8859-1 iso8859-10 iso8859-11 iso8859-13 iso8859-14 \ 21673 iso8859-15 iso8859-2 iso8859-3 iso8859-4 iso8859-5 iso8859-6 \ 21674 iso8859-7 iso8859-8 iso8859-9 iso8859-9e ja ja.JIS \ 21675 ja_JP.UTF-8 ja.SJIS km_KH.UTF-8 ko koi8-c koi8-r \ 21676 koi8-u ko_KR.UTF-8 microsoft-cp1251 microsoft-cp1255 \ 21677 microsoft-cp1256 mulelao-1 nokhchi-1 pt_BR.UTF-8 pt_PT.UTF-8 \ 21678 ru_RU.UTF-8 sr_CS.UTF-8 tatar-cyr th_TH th_TH.UTF-8 tscii-0 \ 21679 vi_VN.tcvn vi_VN.viscii zh_CN zh_CN.gb18030 \ 21680 zh_CN.gbk zh_CN.UTF-8 zh_HK.big5 zh_HK.big5hkscs zh_HK.UTF-8 \ 21681 zh_TW zh_TW.big5 zh_TW.UTF-8" 21682 21683 21684XKEYSYMDB="${X11_DATADIR}/XKeysymDB" 21685 21686 prefix_NONE= 21687 exec_prefix_NONE= 21688 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21689 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21690 eval ax_define_dir="\"$XKEYSYMDB\"" 21691 eval ax_define_dir="\"$ax_define_dir\"" 21692 XKEYSYMDB="$ax_define_dir" 21693 21694 21695cat >>confdefs.h <<_ACEOF 21696#define XKEYSYMDB "$ax_define_dir" 21697_ACEOF 21698 21699 test "$prefix_NONE" && prefix=NONE 21700 test "$exec_prefix_NONE" && exec_prefix=NONE 21701 21702 21703XERRORDB="${X11_DATADIR}/XErrorDB" 21704 21705 prefix_NONE= 21706 exec_prefix_NONE= 21707 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21708 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21709 eval ax_define_dir="\"$XERRORDB\"" 21710 eval ax_define_dir="\"$ax_define_dir\"" 21711 XERRORDB="$ax_define_dir" 21712 21713 21714cat >>confdefs.h <<_ACEOF 21715#define XERRORDB "$ax_define_dir" 21716_ACEOF 21717 21718 test "$prefix_NONE" && prefix=NONE 21719 test "$exec_prefix_NONE" && exec_prefix=NONE 21720 21721 21722 21723# Check whether --enable-malloc0returnsnull was given. 21724if test "${enable_malloc0returnsnull+set}" = set; then : 21725 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 21726else 21727 MALLOC_ZERO_RETURNS_NULL=auto 21728fi 21729 21730 21731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 21732$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 21733if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 21734if ${xorg_cv_malloc0_returns_null+:} false; then : 21735 $as_echo_n "(cached) " >&6 21736else 21737 if test "$cross_compiling" = yes; then : 21738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21739$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21740as_fn_error $? "cannot run test program while cross compiling 21741See \`config.log' for more details" "$LINENO" 5; } 21742else 21743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21744/* end confdefs.h. */ 21745 21746#include <stdlib.h> 21747 21748int 21749main () 21750{ 21751 21752 char *m0, *r0, *c0, *p; 21753 m0 = malloc(0); 21754 p = malloc(10); 21755 r0 = realloc(p,0); 21756 c0 = calloc(0,10); 21757 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 21758 21759 ; 21760 return 0; 21761} 21762_ACEOF 21763if ac_fn_c_try_run "$LINENO"; then : 21764 xorg_cv_malloc0_returns_null=yes 21765else 21766 xorg_cv_malloc0_returns_null=no 21767fi 21768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21769 conftest.$ac_objext conftest.beam conftest.$ac_ext 21770fi 21771 21772fi 21773 21774MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 21775fi 21776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 21777$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 21778 21779if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 21780 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 21781 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 21782 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 21783else 21784 MALLOC_ZERO_CFLAGS="" 21785 XMALLOC_ZERO_CFLAGS="" 21786 XTMALLOC_ZERO_CFLAGS="" 21787fi 21788 21789 21790 21791 21792 21793 21794ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile man/xkb/Makefile src/Makefile src/util/Makefile src/xcms/Makefile src/xlibi18n/Makefile modules/Makefile modules/im/Makefile modules/im/ximcp/Makefile modules/lc/Makefile modules/lc/def/Makefile modules/lc/gen/Makefile modules/lc/Utf8/Makefile modules/om/Makefile modules/om/generic/Makefile src/xkb/Makefile nls/Makefile specs/Makefile specs/i18n/Makefile specs/i18n/compose/Makefile specs/i18n/framework/Makefile specs/i18n/localedb/Makefile specs/i18n/trans/Makefile specs/libX11/Makefile specs/XIM/Makefile specs/XKB/Makefile x11.pc x11-xcb.pc" 21795 21796cat >confcache <<\_ACEOF 21797# This file is a shell script that caches the results of configure 21798# tests run on this system so they can be shared between configure 21799# scripts and configure runs, see configure's option --config-cache. 21800# It is not useful on other systems. If it contains results you don't 21801# want to keep, you may remove or edit it. 21802# 21803# config.status only pays attention to the cache file if you give it 21804# the --recheck option to rerun configure. 21805# 21806# `ac_cv_env_foo' variables (set or unset) will be overridden when 21807# loading this file, other *unset* `ac_cv_foo' will be assigned the 21808# following values. 21809 21810_ACEOF 21811 21812# The following way of writing the cache mishandles newlines in values, 21813# but we know of no workaround that is simple, portable, and efficient. 21814# So, we kill variables containing newlines. 21815# Ultrix sh set writes to stderr and can't be redirected directly, 21816# and sets the high bit in the cache file unless we assign to the vars. 21817( 21818 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21819 eval ac_val=\$$ac_var 21820 case $ac_val in #( 21821 *${as_nl}*) 21822 case $ac_var in #( 21823 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21824$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21825 esac 21826 case $ac_var in #( 21827 _ | IFS | as_nl) ;; #( 21828 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21829 *) { eval $ac_var=; unset $ac_var;} ;; 21830 esac ;; 21831 esac 21832 done 21833 21834 (set) 2>&1 | 21835 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21836 *${as_nl}ac_space=\ *) 21837 # `set' does not quote correctly, so add quotes: double-quote 21838 # substitution turns \\\\ into \\, and sed turns \\ into \. 21839 sed -n \ 21840 "s/'/'\\\\''/g; 21841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21842 ;; #( 21843 *) 21844 # `set' quotes correctly as required by POSIX, so do not add quotes. 21845 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21846 ;; 21847 esac | 21848 sort 21849) | 21850 sed ' 21851 /^ac_cv_env_/b end 21852 t clear 21853 :clear 21854 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21855 t end 21856 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21857 :end' >>confcache 21858if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21859 if test -w "$cache_file"; then 21860 if test "x$cache_file" != "x/dev/null"; then 21861 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21862$as_echo "$as_me: updating cache $cache_file" >&6;} 21863 if test ! -f "$cache_file" || test -h "$cache_file"; then 21864 cat confcache >"$cache_file" 21865 else 21866 case $cache_file in #( 21867 */* | ?:*) 21868 mv -f confcache "$cache_file"$$ && 21869 mv -f "$cache_file"$$ "$cache_file" ;; #( 21870 *) 21871 mv -f confcache "$cache_file" ;; 21872 esac 21873 fi 21874 fi 21875 else 21876 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21877$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21878 fi 21879fi 21880rm -f confcache 21881 21882test "x$prefix" = xNONE && prefix=$ac_default_prefix 21883# Let make expand exec_prefix. 21884test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21885 21886DEFS=-DHAVE_CONFIG_H 21887 21888ac_libobjs= 21889ac_ltlibobjs= 21890U= 21891for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21892 # 1. Remove the extension, and $U if already installed. 21893 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21894 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21895 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21896 # will be set to the directory where LIBOBJS objects are built. 21897 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21898 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21899done 21900LIBOBJS=$ac_libobjs 21901 21902LTLIBOBJS=$ac_ltlibobjs 21903 21904 21905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21906$as_echo_n "checking that generated files are newer than configure... " >&6; } 21907 if test -n "$am_sleep_pid"; then 21908 # Hide warnings about reused PIDs. 21909 wait $am_sleep_pid 2>/dev/null 21910 fi 21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 21912$as_echo "done" >&6; } 21913if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21914 as_fn_error $? "conditional \"AMDEP\" was never defined. 21915Usually this means the macro was only invoked conditionally." "$LINENO" 5 21916fi 21917if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21918 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21919Usually this means the macro was only invoked conditionally." "$LINENO" 5 21920fi 21921 if test -n "$EXEEXT"; then 21922 am__EXEEXT_TRUE= 21923 am__EXEEXT_FALSE='#' 21924else 21925 am__EXEEXT_TRUE='#' 21926 am__EXEEXT_FALSE= 21927fi 21928 21929if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 21930 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 21931Usually this means the macro was only invoked conditionally." "$LINENO" 5 21932fi 21933if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 21934 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 21935Usually this means the macro was only invoked conditionally." "$LINENO" 5 21936fi 21937if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 21938 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 21939Usually this means the macro was only invoked conditionally." "$LINENO" 5 21940fi 21941if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 21942 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 21943Usually this means the macro was only invoked conditionally." "$LINENO" 5 21944fi 21945if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 21946 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 21947Usually this means the macro was only invoked conditionally." "$LINENO" 5 21948fi 21949if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 21950 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 21951Usually this means the macro was only invoked conditionally." "$LINENO" 5 21952fi 21953if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then 21954 as_fn_error $? "conditional \"HAVE_PERL\" was never defined. 21955Usually this means the macro was only invoked conditionally." "$LINENO" 5 21956fi 21957if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then 21958 as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined. 21959Usually this means the macro was only invoked conditionally." "$LINENO" 5 21960fi 21961if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then 21962 as_fn_error $? "conditional \"OS2\" was never defined. 21963Usually this means the macro was only invoked conditionally." "$LINENO" 5 21964fi 21965if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then 21966 as_fn_error $? "conditional \"THRSTUBS\" was never defined. 21967Usually this means the macro was only invoked conditionally." "$LINENO" 5 21968fi 21969if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then 21970 as_fn_error $? "conditional \"XCMS\" was never defined. 21971Usually this means the macro was only invoked conditionally." "$LINENO" 5 21972fi 21973if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then 21974 as_fn_error $? "conditional \"XLOCALE\" was never defined. 21975Usually this means the macro was only invoked conditionally." "$LINENO" 5 21976fi 21977if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then 21978 as_fn_error $? "conditional \"XKB\" was never defined. 21979Usually this means the macro was only invoked conditionally." "$LINENO" 5 21980fi 21981if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 21982 as_fn_error $? "conditional \"LINT\" was never defined. 21983Usually this means the macro was only invoked conditionally." "$LINENO" 5 21984fi 21985if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 21986 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 21987Usually this means the macro was only invoked conditionally." "$LINENO" 5 21988fi 21989 21990: "${CONFIG_STATUS=./config.status}" 21991ac_write_fail=0 21992ac_clean_files_save=$ac_clean_files 21993ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21994{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21995$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21996as_write_fail=0 21997cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21998#! $SHELL 21999# Generated by $as_me. 22000# Run this file to recreate the current configuration. 22001# Compiler output produced by configure, useful for debugging 22002# configure, is in config.log if it exists. 22003 22004debug=false 22005ac_cs_recheck=false 22006ac_cs_silent=false 22007 22008SHELL=\${CONFIG_SHELL-$SHELL} 22009export SHELL 22010_ASEOF 22011cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 22012## -------------------- ## 22013## M4sh Initialization. ## 22014## -------------------- ## 22015 22016# Be more Bourne compatible 22017DUALCASE=1; export DUALCASE # for MKS sh 22018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22019 emulate sh 22020 NULLCMD=: 22021 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22022 # is contrary to our usage. Disable this feature. 22023 alias -g '${1+"$@"}'='"$@"' 22024 setopt NO_GLOB_SUBST 22025else 22026 case `(set -o) 2>/dev/null` in #( 22027 *posix*) : 22028 set -o posix ;; #( 22029 *) : 22030 ;; 22031esac 22032fi 22033 22034 22035as_nl=' 22036' 22037export as_nl 22038# Printing a long string crashes Solaris 7 /usr/bin/printf. 22039as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22040as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22041as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22042# Prefer a ksh shell builtin over an external printf program on Solaris, 22043# but without wasting forks for bash or zsh. 22044if test -z "$BASH_VERSION$ZSH_VERSION" \ 22045 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 22046 as_echo='print -r --' 22047 as_echo_n='print -rn --' 22048elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22049 as_echo='printf %s\n' 22050 as_echo_n='printf %s' 22051else 22052 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22053 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22054 as_echo_n='/usr/ucb/echo -n' 22055 else 22056 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22057 as_echo_n_body='eval 22058 arg=$1; 22059 case $arg in #( 22060 *"$as_nl"*) 22061 expr "X$arg" : "X\\(.*\\)$as_nl"; 22062 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22063 esac; 22064 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22065 ' 22066 export as_echo_n_body 22067 as_echo_n='sh -c $as_echo_n_body as_echo' 22068 fi 22069 export as_echo_body 22070 as_echo='sh -c $as_echo_body as_echo' 22071fi 22072 22073# The user is always right. 22074if test "${PATH_SEPARATOR+set}" != set; then 22075 PATH_SEPARATOR=: 22076 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22077 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22078 PATH_SEPARATOR=';' 22079 } 22080fi 22081 22082 22083# IFS 22084# We need space, tab and new line, in precisely that order. Quoting is 22085# there to prevent editors from complaining about space-tab. 22086# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22087# splitting by setting IFS to empty value.) 22088IFS=" "" $as_nl" 22089 22090# Find who we are. Look in the path if we contain no directory separator. 22091as_myself= 22092case $0 in #(( 22093 *[\\/]* ) as_myself=$0 ;; 22094 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22095for as_dir in $PATH 22096do 22097 IFS=$as_save_IFS 22098 test -z "$as_dir" && as_dir=. 22099 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22100 done 22101IFS=$as_save_IFS 22102 22103 ;; 22104esac 22105# We did not find ourselves, most probably we were run as `sh COMMAND' 22106# in which case we are not to be found in the path. 22107if test "x$as_myself" = x; then 22108 as_myself=$0 22109fi 22110if test ! -f "$as_myself"; then 22111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22112 exit 1 22113fi 22114 22115# Unset variables that we do not need and which cause bugs (e.g. in 22116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 22117# suppresses any "Segmentation fault" message there. '((' could 22118# trigger a bug in pdksh 5.2.14. 22119for as_var in BASH_ENV ENV MAIL MAILPATH 22120do eval test x\${$as_var+set} = xset \ 22121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22122done 22123PS1='$ ' 22124PS2='> ' 22125PS4='+ ' 22126 22127# NLS nuisances. 22128LC_ALL=C 22129export LC_ALL 22130LANGUAGE=C 22131export LANGUAGE 22132 22133# CDPATH. 22134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22135 22136 22137# as_fn_error STATUS ERROR [LINENO LOG_FD] 22138# ---------------------------------------- 22139# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22140# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22141# script with STATUS, using 1 if that was 0. 22142as_fn_error () 22143{ 22144 as_status=$1; test $as_status -eq 0 && as_status=1 22145 if test "$4"; then 22146 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22147 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22148 fi 22149 $as_echo "$as_me: error: $2" >&2 22150 as_fn_exit $as_status 22151} # as_fn_error 22152 22153 22154# as_fn_set_status STATUS 22155# ----------------------- 22156# Set $? to STATUS, without forking. 22157as_fn_set_status () 22158{ 22159 return $1 22160} # as_fn_set_status 22161 22162# as_fn_exit STATUS 22163# ----------------- 22164# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22165as_fn_exit () 22166{ 22167 set +e 22168 as_fn_set_status $1 22169 exit $1 22170} # as_fn_exit 22171 22172# as_fn_unset VAR 22173# --------------- 22174# Portably unset VAR. 22175as_fn_unset () 22176{ 22177 { eval $1=; unset $1;} 22178} 22179as_unset=as_fn_unset 22180# as_fn_append VAR VALUE 22181# ---------------------- 22182# Append the text in VALUE to the end of the definition contained in VAR. Take 22183# advantage of any shell optimizations that allow amortized linear growth over 22184# repeated appends, instead of the typical quadratic growth present in naive 22185# implementations. 22186if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 22187 eval 'as_fn_append () 22188 { 22189 eval $1+=\$2 22190 }' 22191else 22192 as_fn_append () 22193 { 22194 eval $1=\$$1\$2 22195 } 22196fi # as_fn_append 22197 22198# as_fn_arith ARG... 22199# ------------------ 22200# Perform arithmetic evaluation on the ARGs, and store the result in the 22201# global $as_val. Take advantage of shells that can avoid forks. The arguments 22202# must be portable across $(()) and expr. 22203if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 22204 eval 'as_fn_arith () 22205 { 22206 as_val=$(( $* )) 22207 }' 22208else 22209 as_fn_arith () 22210 { 22211 as_val=`expr "$@" || test $? -eq 1` 22212 } 22213fi # as_fn_arith 22214 22215 22216if expr a : '\(a\)' >/dev/null 2>&1 && 22217 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22218 as_expr=expr 22219else 22220 as_expr=false 22221fi 22222 22223if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22224 as_basename=basename 22225else 22226 as_basename=false 22227fi 22228 22229if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22230 as_dirname=dirname 22231else 22232 as_dirname=false 22233fi 22234 22235as_me=`$as_basename -- "$0" || 22236$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22237 X"$0" : 'X\(//\)$' \| \ 22238 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22239$as_echo X/"$0" | 22240 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22241 s//\1/ 22242 q 22243 } 22244 /^X\/\(\/\/\)$/{ 22245 s//\1/ 22246 q 22247 } 22248 /^X\/\(\/\).*/{ 22249 s//\1/ 22250 q 22251 } 22252 s/.*/./; q'` 22253 22254# Avoid depending upon Character Ranges. 22255as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22256as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22257as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22258as_cr_digits='0123456789' 22259as_cr_alnum=$as_cr_Letters$as_cr_digits 22260 22261ECHO_C= ECHO_N= ECHO_T= 22262case `echo -n x` in #((((( 22263-n*) 22264 case `echo 'xy\c'` in 22265 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22266 xy) ECHO_C='\c';; 22267 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22268 ECHO_T=' ';; 22269 esac;; 22270*) 22271 ECHO_N='-n';; 22272esac 22273 22274rm -f conf$$ conf$$.exe conf$$.file 22275if test -d conf$$.dir; then 22276 rm -f conf$$.dir/conf$$.file 22277else 22278 rm -f conf$$.dir 22279 mkdir conf$$.dir 2>/dev/null 22280fi 22281if (echo >conf$$.file) 2>/dev/null; then 22282 if ln -s conf$$.file conf$$ 2>/dev/null; then 22283 as_ln_s='ln -s' 22284 # ... but there are two gotchas: 22285 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22286 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22287 # In both cases, we have to default to `cp -pR'. 22288 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22289 as_ln_s='cp -pR' 22290 elif ln conf$$.file conf$$ 2>/dev/null; then 22291 as_ln_s=ln 22292 else 22293 as_ln_s='cp -pR' 22294 fi 22295else 22296 as_ln_s='cp -pR' 22297fi 22298rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22299rmdir conf$$.dir 2>/dev/null 22300 22301 22302# as_fn_mkdir_p 22303# ------------- 22304# Create "$as_dir" as a directory, including parents if necessary. 22305as_fn_mkdir_p () 22306{ 22307 22308 case $as_dir in #( 22309 -*) as_dir=./$as_dir;; 22310 esac 22311 test -d "$as_dir" || eval $as_mkdir_p || { 22312 as_dirs= 22313 while :; do 22314 case $as_dir in #( 22315 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22316 *) as_qdir=$as_dir;; 22317 esac 22318 as_dirs="'$as_qdir' $as_dirs" 22319 as_dir=`$as_dirname -- "$as_dir" || 22320$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22321 X"$as_dir" : 'X\(//\)[^/]' \| \ 22322 X"$as_dir" : 'X\(//\)$' \| \ 22323 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22324$as_echo X"$as_dir" | 22325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22326 s//\1/ 22327 q 22328 } 22329 /^X\(\/\/\)[^/].*/{ 22330 s//\1/ 22331 q 22332 } 22333 /^X\(\/\/\)$/{ 22334 s//\1/ 22335 q 22336 } 22337 /^X\(\/\).*/{ 22338 s//\1/ 22339 q 22340 } 22341 s/.*/./; q'` 22342 test -d "$as_dir" && break 22343 done 22344 test -z "$as_dirs" || eval "mkdir $as_dirs" 22345 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22346 22347 22348} # as_fn_mkdir_p 22349if mkdir -p . 2>/dev/null; then 22350 as_mkdir_p='mkdir -p "$as_dir"' 22351else 22352 test -d ./-p && rmdir ./-p 22353 as_mkdir_p=false 22354fi 22355 22356 22357# as_fn_executable_p FILE 22358# ----------------------- 22359# Test if FILE is an executable regular file. 22360as_fn_executable_p () 22361{ 22362 test -f "$1" && test -x "$1" 22363} # as_fn_executable_p 22364as_test_x='test -x' 22365as_executable_p=as_fn_executable_p 22366 22367# Sed expression to map a string onto a valid CPP name. 22368as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22369 22370# Sed expression to map a string onto a valid variable name. 22371as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22372 22373 22374exec 6>&1 22375## ----------------------------------- ## 22376## Main body of $CONFIG_STATUS script. ## 22377## ----------------------------------- ## 22378_ASEOF 22379test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22380 22381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22382# Save the log message, to keep $0 and so on meaningful, and to 22383# report actual input values of CONFIG_FILES etc. instead of their 22384# values after options handling. 22385ac_log=" 22386This file was extended by libX11 $as_me 1.6.8, which was 22387generated by GNU Autoconf 2.69. Invocation command line was 22388 22389 CONFIG_FILES = $CONFIG_FILES 22390 CONFIG_HEADERS = $CONFIG_HEADERS 22391 CONFIG_LINKS = $CONFIG_LINKS 22392 CONFIG_COMMANDS = $CONFIG_COMMANDS 22393 $ $0 $@ 22394 22395on `(hostname || uname -n) 2>/dev/null | sed 1q` 22396" 22397 22398_ACEOF 22399 22400case $ac_config_files in *" 22401"*) set x $ac_config_files; shift; ac_config_files=$*;; 22402esac 22403 22404case $ac_config_headers in *" 22405"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22406esac 22407 22408 22409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22410# Files that config.status was made for. 22411config_files="$ac_config_files" 22412config_headers="$ac_config_headers" 22413config_commands="$ac_config_commands" 22414 22415_ACEOF 22416 22417cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22418ac_cs_usage="\ 22419\`$as_me' instantiates files and other configuration actions 22420from templates according to the current configuration. Unless the files 22421and actions are specified as TAGs, all are instantiated by default. 22422 22423Usage: $0 [OPTION]... [TAG]... 22424 22425 -h, --help print this help, then exit 22426 -V, --version print version number and configuration settings, then exit 22427 --config print configuration, then exit 22428 -q, --quiet, --silent 22429 do not print progress messages 22430 -d, --debug don't remove temporary files 22431 --recheck update $as_me by reconfiguring in the same conditions 22432 --file=FILE[:TEMPLATE] 22433 instantiate the configuration file FILE 22434 --header=FILE[:TEMPLATE] 22435 instantiate the configuration header FILE 22436 22437Configuration files: 22438$config_files 22439 22440Configuration headers: 22441$config_headers 22442 22443Configuration commands: 22444$config_commands 22445 22446Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/issues>." 22447 22448_ACEOF 22449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22450ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 22451ac_cs_version="\\ 22452libX11 config.status 1.6.8 22453configured by $0, generated by GNU Autoconf 2.69, 22454 with options \\"\$ac_cs_config\\" 22455 22456Copyright (C) 2012 Free Software Foundation, Inc. 22457This config.status script is free software; the Free Software Foundation 22458gives unlimited permission to copy, distribute and modify it." 22459 22460ac_pwd='$ac_pwd' 22461srcdir='$srcdir' 22462INSTALL='$INSTALL' 22463MKDIR_P='$MKDIR_P' 22464AWK='$AWK' 22465test -n "\$AWK" || AWK=awk 22466_ACEOF 22467 22468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22469# The default lists apply if the user does not specify any file. 22470ac_need_defaults=: 22471while test $# != 0 22472do 22473 case $1 in 22474 --*=?*) 22475 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22476 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22477 ac_shift=: 22478 ;; 22479 --*=) 22480 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22481 ac_optarg= 22482 ac_shift=: 22483 ;; 22484 *) 22485 ac_option=$1 22486 ac_optarg=$2 22487 ac_shift=shift 22488 ;; 22489 esac 22490 22491 case $ac_option in 22492 # Handling of the options. 22493 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22494 ac_cs_recheck=: ;; 22495 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22496 $as_echo "$ac_cs_version"; exit ;; 22497 --config | --confi | --conf | --con | --co | --c ) 22498 $as_echo "$ac_cs_config"; exit ;; 22499 --debug | --debu | --deb | --de | --d | -d ) 22500 debug=: ;; 22501 --file | --fil | --fi | --f ) 22502 $ac_shift 22503 case $ac_optarg in 22504 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22505 '') as_fn_error $? "missing file argument" ;; 22506 esac 22507 as_fn_append CONFIG_FILES " '$ac_optarg'" 22508 ac_need_defaults=false;; 22509 --header | --heade | --head | --hea ) 22510 $ac_shift 22511 case $ac_optarg in 22512 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22513 esac 22514 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22515 ac_need_defaults=false;; 22516 --he | --h) 22517 # Conflict between --help and --header 22518 as_fn_error $? "ambiguous option: \`$1' 22519Try \`$0 --help' for more information.";; 22520 --help | --hel | -h ) 22521 $as_echo "$ac_cs_usage"; exit ;; 22522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22523 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22524 ac_cs_silent=: ;; 22525 22526 # This is an error. 22527 -*) as_fn_error $? "unrecognized option: \`$1' 22528Try \`$0 --help' for more information." ;; 22529 22530 *) as_fn_append ac_config_targets " $1" 22531 ac_need_defaults=false ;; 22532 22533 esac 22534 shift 22535done 22536 22537ac_configure_extra_args= 22538 22539if $ac_cs_silent; then 22540 exec 6>/dev/null 22541 ac_configure_extra_args="$ac_configure_extra_args --silent" 22542fi 22543 22544_ACEOF 22545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22546if \$ac_cs_recheck; then 22547 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22548 shift 22549 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22550 CONFIG_SHELL='$SHELL' 22551 export CONFIG_SHELL 22552 exec "\$@" 22553fi 22554 22555_ACEOF 22556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22557exec 5>>config.log 22558{ 22559 echo 22560 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22561## Running $as_me. ## 22562_ASBOX 22563 $as_echo "$ac_log" 22564} >&5 22565 22566_ACEOF 22567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22568# 22569# INIT-COMMANDS 22570# 22571AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 22572 22573 22574# The HP-UX ksh and POSIX shell print the target directory to stdout 22575# if CDPATH is set. 22576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22577 22578sed_quote_subst='$sed_quote_subst' 22579double_quote_subst='$double_quote_subst' 22580delay_variable_subst='$delay_variable_subst' 22581macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22582macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22583enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22584enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22585pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22586enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22587shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 22588SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22589ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22590PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22591host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22592host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22593host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22594build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22595build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22596build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22597SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22598Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22599GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22600EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22601FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22602LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22603NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22604LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22605max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22606ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22607exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22608lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22609lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22610lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22611lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22612lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22613reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22614reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22615OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22616deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22617file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22618file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22619want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22620DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22621sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22622AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22623AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22624archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22625STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22626RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22627old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22628old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22629old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22630lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22631CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22632CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22633compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22634GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22635lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22636lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22637lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 22638lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22639lt_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"`' 22640lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 22641nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22642lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22643lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22644objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22645MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22646lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22647lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22648lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22649lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22650lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22651need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22652MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22653DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22654NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22655LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22656OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22657OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22658libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22659shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22660extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22661archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22662enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22663export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22664whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22665compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22666old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22667old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22668archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22669archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22670module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22671module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22672with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22673allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22674no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22675hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22676hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22677hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22678hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22679hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22680hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22681hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22682inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22683link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22684always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22685export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22686exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22687include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22688prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22689postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22690file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22691variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22692need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22693need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22694version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22695runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22696shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22697shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22698libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22699library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22700soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22701install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22702postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22703postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22704finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22705finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22706hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22707sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22708configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22709configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22710hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22711enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22712enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22713enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22714old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22715striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22716 22717LTCC='$LTCC' 22718LTCFLAGS='$LTCFLAGS' 22719compiler='$compiler_DEFAULT' 22720 22721# A function that is used when there is no print builtin or printf. 22722func_fallback_echo () 22723{ 22724 eval 'cat <<_LTECHO_EOF 22725\$1 22726_LTECHO_EOF' 22727} 22728 22729# Quote evaled strings. 22730for var in SHELL \ 22731ECHO \ 22732PATH_SEPARATOR \ 22733SED \ 22734GREP \ 22735EGREP \ 22736FGREP \ 22737LD \ 22738NM \ 22739LN_S \ 22740lt_SP2NL \ 22741lt_NL2SP \ 22742reload_flag \ 22743OBJDUMP \ 22744deplibs_check_method \ 22745file_magic_cmd \ 22746file_magic_glob \ 22747want_nocaseglob \ 22748DLLTOOL \ 22749sharedlib_from_linklib_cmd \ 22750AR \ 22751AR_FLAGS \ 22752archiver_list_spec \ 22753STRIP \ 22754RANLIB \ 22755CC \ 22756CFLAGS \ 22757compiler \ 22758lt_cv_sys_global_symbol_pipe \ 22759lt_cv_sys_global_symbol_to_cdecl \ 22760lt_cv_sys_global_symbol_to_import \ 22761lt_cv_sys_global_symbol_to_c_name_address \ 22762lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22763lt_cv_nm_interface \ 22764nm_file_list_spec \ 22765lt_cv_truncate_bin \ 22766lt_prog_compiler_no_builtin_flag \ 22767lt_prog_compiler_pic \ 22768lt_prog_compiler_wl \ 22769lt_prog_compiler_static \ 22770lt_cv_prog_compiler_c_o \ 22771need_locks \ 22772MANIFEST_TOOL \ 22773DSYMUTIL \ 22774NMEDIT \ 22775LIPO \ 22776OTOOL \ 22777OTOOL64 \ 22778shrext_cmds \ 22779export_dynamic_flag_spec \ 22780whole_archive_flag_spec \ 22781compiler_needs_object \ 22782with_gnu_ld \ 22783allow_undefined_flag \ 22784no_undefined_flag \ 22785hardcode_libdir_flag_spec \ 22786hardcode_libdir_separator \ 22787exclude_expsyms \ 22788include_expsyms \ 22789file_list_spec \ 22790variables_saved_for_relink \ 22791libname_spec \ 22792library_names_spec \ 22793soname_spec \ 22794install_override_mode \ 22795finish_eval \ 22796old_striplib \ 22797striplib; do 22798 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22799 *[\\\\\\\`\\"\\\$]*) 22800 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22801 ;; 22802 *) 22803 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22804 ;; 22805 esac 22806done 22807 22808# Double-quote double-evaled strings. 22809for var in reload_cmds \ 22810old_postinstall_cmds \ 22811old_postuninstall_cmds \ 22812old_archive_cmds \ 22813extract_expsyms_cmds \ 22814old_archive_from_new_cmds \ 22815old_archive_from_expsyms_cmds \ 22816archive_cmds \ 22817archive_expsym_cmds \ 22818module_cmds \ 22819module_expsym_cmds \ 22820export_symbols_cmds \ 22821prelink_cmds \ 22822postlink_cmds \ 22823postinstall_cmds \ 22824postuninstall_cmds \ 22825finish_cmds \ 22826sys_lib_search_path_spec \ 22827configure_time_dlsearch_path \ 22828configure_time_lt_sys_library_path; do 22829 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22830 *[\\\\\\\`\\"\\\$]*) 22831 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22832 ;; 22833 *) 22834 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22835 ;; 22836 esac 22837done 22838 22839ac_aux_dir='$ac_aux_dir' 22840 22841# See if we are running on zsh, and set the options that allow our 22842# commands through without removal of \ escapes INIT. 22843if test -n "\${ZSH_VERSION+set}"; then 22844 setopt NO_GLOB_SUBST 22845fi 22846 22847 22848 PACKAGE='$PACKAGE' 22849 VERSION='$VERSION' 22850 RM='$RM' 22851 ofile='$ofile' 22852 22853 22854 22855 22856_ACEOF 22857 22858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22859 22860# Handling of arguments. 22861for ac_config_target in $ac_config_targets 22862do 22863 case $ac_config_target in 22864 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 22865 "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;; 22866 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22867 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22868 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22869 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 22870 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22871 "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;; 22872 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22873 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; 22874 "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;; 22875 "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;; 22876 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; 22877 "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;; 22878 "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;; 22879 "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;; 22880 "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;; 22881 "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;; 22882 "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;; 22883 "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;; 22884 "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;; 22885 "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;; 22886 "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;; 22887 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 22888 "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;; 22889 "specs/i18n/compose/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/compose/Makefile" ;; 22890 "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;; 22891 "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;; 22892 "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;; 22893 "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;; 22894 "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;; 22895 "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;; 22896 "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;; 22897 "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;; 22898 22899 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22900 esac 22901done 22902 22903 22904# If the user did not use the arguments to specify the items to instantiate, 22905# then the envvar interface is used. Set only those that are not. 22906# We use the long form for the default assignment because of an extremely 22907# bizarre bug on SunOS 4.1.3. 22908if $ac_need_defaults; then 22909 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22910 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22911 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22912fi 22913 22914# Have a temporary directory for convenience. Make it in the build tree 22915# simply because there is no reason against having it here, and in addition, 22916# creating and moving files from /tmp can sometimes cause problems. 22917# Hook for its removal unless debugging. 22918# Note that there is a small window in which the directory will not be cleaned: 22919# after its creation but before its name has been assigned to `$tmp'. 22920$debug || 22921{ 22922 tmp= ac_tmp= 22923 trap 'exit_status=$? 22924 : "${ac_tmp:=$tmp}" 22925 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22926' 0 22927 trap 'as_fn_exit 1' 1 2 13 15 22928} 22929# Create a (secure) tmp directory for tmp files. 22930 22931{ 22932 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22933 test -d "$tmp" 22934} || 22935{ 22936 tmp=./conf$$-$RANDOM 22937 (umask 077 && mkdir "$tmp") 22938} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22939ac_tmp=$tmp 22940 22941# Set up the scripts for CONFIG_FILES section. 22942# No need to generate them if there are no CONFIG_FILES. 22943# This happens for instance with `./config.status config.h'. 22944if test -n "$CONFIG_FILES"; then 22945 22946 22947ac_cr=`echo X | tr X '\015'` 22948# On cygwin, bash can eat \r inside `` if the user requested igncr. 22949# But we know of no other shell where ac_cr would be empty at this 22950# point, so we can use a bashism as a fallback. 22951if test "x$ac_cr" = x; then 22952 eval ac_cr=\$\'\\r\' 22953fi 22954ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22955if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22956 ac_cs_awk_cr='\\r' 22957else 22958 ac_cs_awk_cr=$ac_cr 22959fi 22960 22961echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22962_ACEOF 22963 22964 22965{ 22966 echo "cat >conf$$subs.awk <<_ACEOF" && 22967 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22968 echo "_ACEOF" 22969} >conf$$subs.sh || 22970 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22971ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22972ac_delim='%!_!# ' 22973for ac_last_try in false false false false false :; do 22974 . ./conf$$subs.sh || 22975 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22976 22977 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22978 if test $ac_delim_n = $ac_delim_num; then 22979 break 22980 elif $ac_last_try; then 22981 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22982 else 22983 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22984 fi 22985done 22986rm -f conf$$subs.sh 22987 22988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22989cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22990_ACEOF 22991sed -n ' 22992h 22993s/^/S["/; s/!.*/"]=/ 22994p 22995g 22996s/^[^!]*!// 22997:repl 22998t repl 22999s/'"$ac_delim"'$// 23000t delim 23001:nl 23002h 23003s/\(.\{148\}\)..*/\1/ 23004t more1 23005s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23006p 23007n 23008b repl 23009:more1 23010s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23011p 23012g 23013s/.\{148\}// 23014t nl 23015:delim 23016h 23017s/\(.\{148\}\)..*/\1/ 23018t more2 23019s/["\\]/\\&/g; s/^/"/; s/$/"/ 23020p 23021b 23022:more2 23023s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23024p 23025g 23026s/.\{148\}// 23027t delim 23028' <conf$$subs.awk | sed ' 23029/^[^""]/{ 23030 N 23031 s/\n// 23032} 23033' >>$CONFIG_STATUS || ac_write_fail=1 23034rm -f conf$$subs.awk 23035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23036_ACAWK 23037cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23038 for (key in S) S_is_set[key] = 1 23039 FS = "" 23040 23041} 23042{ 23043 line = $ 0 23044 nfields = split(line, field, "@") 23045 substed = 0 23046 len = length(field[1]) 23047 for (i = 2; i < nfields; i++) { 23048 key = field[i] 23049 keylen = length(key) 23050 if (S_is_set[key]) { 23051 value = S[key] 23052 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23053 len += length(value) + length(field[++i]) 23054 substed = 1 23055 } else 23056 len += 1 + keylen 23057 } 23058 23059 print line 23060} 23061 23062_ACAWK 23063_ACEOF 23064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23065if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23066 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23067else 23068 cat 23069fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23070 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23071_ACEOF 23072 23073# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23074# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23075# trailing colons and then remove the whole line if VPATH becomes empty 23076# (actually we leave an empty line to preserve line numbers). 23077if test "x$srcdir" = x.; then 23078 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23079h 23080s/// 23081s/^/:/ 23082s/[ ]*$/:/ 23083s/:\$(srcdir):/:/g 23084s/:\${srcdir}:/:/g 23085s/:@srcdir@:/:/g 23086s/^:*// 23087s/:*$// 23088x 23089s/\(=[ ]*\).*/\1/ 23090G 23091s/\n// 23092s/^[^=]*=[ ]*$// 23093}' 23094fi 23095 23096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23097fi # test -n "$CONFIG_FILES" 23098 23099# Set up the scripts for CONFIG_HEADERS section. 23100# No need to generate them if there are no CONFIG_HEADERS. 23101# This happens for instance with `./config.status Makefile'. 23102if test -n "$CONFIG_HEADERS"; then 23103cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23104BEGIN { 23105_ACEOF 23106 23107# Transform confdefs.h into an awk script `defines.awk', embedded as 23108# here-document in config.status, that substitutes the proper values into 23109# config.h.in to produce config.h. 23110 23111# Create a delimiter string that does not exist in confdefs.h, to ease 23112# handling of long lines. 23113ac_delim='%!_!# ' 23114for ac_last_try in false false :; do 23115 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23116 if test -z "$ac_tt"; then 23117 break 23118 elif $ac_last_try; then 23119 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23120 else 23121 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23122 fi 23123done 23124 23125# For the awk script, D is an array of macro values keyed by name, 23126# likewise P contains macro parameters if any. Preserve backslash 23127# newline sequences. 23128 23129ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23130sed -n ' 23131s/.\{148\}/&'"$ac_delim"'/g 23132t rset 23133:rset 23134s/^[ ]*#[ ]*define[ ][ ]*/ / 23135t def 23136d 23137:def 23138s/\\$// 23139t bsnl 23140s/["\\]/\\&/g 23141s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23142D["\1"]=" \3"/p 23143s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23144d 23145:bsnl 23146s/["\\]/\\&/g 23147s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23148D["\1"]=" \3\\\\\\n"\\/p 23149t cont 23150s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23151t cont 23152d 23153:cont 23154n 23155s/.\{148\}/&'"$ac_delim"'/g 23156t clear 23157:clear 23158s/\\$// 23159t bsnlc 23160s/["\\]/\\&/g; s/^/"/; s/$/"/p 23161d 23162:bsnlc 23163s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23164b cont 23165' <confdefs.h | sed ' 23166s/'"$ac_delim"'/"\\\ 23167"/g' >>$CONFIG_STATUS || ac_write_fail=1 23168 23169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23170 for (key in D) D_is_set[key] = 1 23171 FS = "" 23172} 23173/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23174 line = \$ 0 23175 split(line, arg, " ") 23176 if (arg[1] == "#") { 23177 defundef = arg[2] 23178 mac1 = arg[3] 23179 } else { 23180 defundef = substr(arg[1], 2) 23181 mac1 = arg[2] 23182 } 23183 split(mac1, mac2, "(") #) 23184 macro = mac2[1] 23185 prefix = substr(line, 1, index(line, defundef) - 1) 23186 if (D_is_set[macro]) { 23187 # Preserve the white space surrounding the "#". 23188 print prefix "define", macro P[macro] D[macro] 23189 next 23190 } else { 23191 # Replace #undef with comments. This is necessary, for example, 23192 # in the case of _POSIX_SOURCE, which is predefined and required 23193 # on some systems where configure will not decide to define it. 23194 if (defundef == "undef") { 23195 print "/*", prefix defundef, macro, "*/" 23196 next 23197 } 23198 } 23199} 23200{ print } 23201_ACAWK 23202_ACEOF 23203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23204 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23205fi # test -n "$CONFIG_HEADERS" 23206 23207 23208eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23209shift 23210for ac_tag 23211do 23212 case $ac_tag in 23213 :[FHLC]) ac_mode=$ac_tag; continue;; 23214 esac 23215 case $ac_mode$ac_tag in 23216 :[FHL]*:*);; 23217 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 23218 :[FH]-) ac_tag=-:-;; 23219 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23220 esac 23221 ac_save_IFS=$IFS 23222 IFS=: 23223 set x $ac_tag 23224 IFS=$ac_save_IFS 23225 shift 23226 ac_file=$1 23227 shift 23228 23229 case $ac_mode in 23230 :L) ac_source=$1;; 23231 :[FH]) 23232 ac_file_inputs= 23233 for ac_f 23234 do 23235 case $ac_f in 23236 -) ac_f="$ac_tmp/stdin";; 23237 *) # Look for the file first in the build tree, then in the source tree 23238 # (if the path is not absolute). The absolute path cannot be DOS-style, 23239 # because $ac_f cannot contain `:'. 23240 test -f "$ac_f" || 23241 case $ac_f in 23242 [\\/$]*) false;; 23243 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23244 esac || 23245 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 23246 esac 23247 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23248 as_fn_append ac_file_inputs " '$ac_f'" 23249 done 23250 23251 # Let's still pretend it is `configure' which instantiates (i.e., don't 23252 # use $as_me), people would be surprised to read: 23253 # /* config.h. Generated by config.status. */ 23254 configure_input='Generated from '` 23255 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23256 `' by configure.' 23257 if test x"$ac_file" != x-; then 23258 configure_input="$ac_file. $configure_input" 23259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23260$as_echo "$as_me: creating $ac_file" >&6;} 23261 fi 23262 # Neutralize special characters interpreted by sed in replacement strings. 23263 case $configure_input in #( 23264 *\&* | *\|* | *\\* ) 23265 ac_sed_conf_input=`$as_echo "$configure_input" | 23266 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23267 *) ac_sed_conf_input=$configure_input;; 23268 esac 23269 23270 case $ac_tag in 23271 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23272 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23273 esac 23274 ;; 23275 esac 23276 23277 ac_dir=`$as_dirname -- "$ac_file" || 23278$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23279 X"$ac_file" : 'X\(//\)[^/]' \| \ 23280 X"$ac_file" : 'X\(//\)$' \| \ 23281 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23282$as_echo X"$ac_file" | 23283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23284 s//\1/ 23285 q 23286 } 23287 /^X\(\/\/\)[^/].*/{ 23288 s//\1/ 23289 q 23290 } 23291 /^X\(\/\/\)$/{ 23292 s//\1/ 23293 q 23294 } 23295 /^X\(\/\).*/{ 23296 s//\1/ 23297 q 23298 } 23299 s/.*/./; q'` 23300 as_dir="$ac_dir"; as_fn_mkdir_p 23301 ac_builddir=. 23302 23303case "$ac_dir" in 23304.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23305*) 23306 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23307 # A ".." for each directory in $ac_dir_suffix. 23308 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23309 case $ac_top_builddir_sub in 23310 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23311 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23312 esac ;; 23313esac 23314ac_abs_top_builddir=$ac_pwd 23315ac_abs_builddir=$ac_pwd$ac_dir_suffix 23316# for backward compatibility: 23317ac_top_builddir=$ac_top_build_prefix 23318 23319case $srcdir in 23320 .) # We are building in place. 23321 ac_srcdir=. 23322 ac_top_srcdir=$ac_top_builddir_sub 23323 ac_abs_top_srcdir=$ac_pwd ;; 23324 [\\/]* | ?:[\\/]* ) # Absolute name. 23325 ac_srcdir=$srcdir$ac_dir_suffix; 23326 ac_top_srcdir=$srcdir 23327 ac_abs_top_srcdir=$srcdir ;; 23328 *) # Relative name. 23329 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23330 ac_top_srcdir=$ac_top_build_prefix$srcdir 23331 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23332esac 23333ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23334 23335 23336 case $ac_mode in 23337 :F) 23338 # 23339 # CONFIG_FILE 23340 # 23341 23342 case $INSTALL in 23343 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23344 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23345 esac 23346 ac_MKDIR_P=$MKDIR_P 23347 case $MKDIR_P in 23348 [\\/$]* | ?:[\\/]* ) ;; 23349 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23350 esac 23351_ACEOF 23352 23353cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23354# If the template does not know about datarootdir, expand it. 23355# FIXME: This hack should be removed a few years after 2.60. 23356ac_datarootdir_hack=; ac_datarootdir_seen= 23357ac_sed_dataroot=' 23358/datarootdir/ { 23359 p 23360 q 23361} 23362/@datadir@/p 23363/@docdir@/p 23364/@infodir@/p 23365/@localedir@/p 23366/@mandir@/p' 23367case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23368*datarootdir*) ac_datarootdir_seen=yes;; 23369*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23371$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23372_ACEOF 23373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23374 ac_datarootdir_hack=' 23375 s&@datadir@&$datadir&g 23376 s&@docdir@&$docdir&g 23377 s&@infodir@&$infodir&g 23378 s&@localedir@&$localedir&g 23379 s&@mandir@&$mandir&g 23380 s&\\\${datarootdir}&$datarootdir&g' ;; 23381esac 23382_ACEOF 23383 23384# Neutralize VPATH when `$srcdir' = `.'. 23385# Shell code in configure.ac might set extrasub. 23386# FIXME: do we really want to maintain this feature? 23387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23388ac_sed_extra="$ac_vpsub 23389$extrasub 23390_ACEOF 23391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23392:t 23393/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23394s|@configure_input@|$ac_sed_conf_input|;t t 23395s&@top_builddir@&$ac_top_builddir_sub&;t t 23396s&@top_build_prefix@&$ac_top_build_prefix&;t t 23397s&@srcdir@&$ac_srcdir&;t t 23398s&@abs_srcdir@&$ac_abs_srcdir&;t t 23399s&@top_srcdir@&$ac_top_srcdir&;t t 23400s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23401s&@builddir@&$ac_builddir&;t t 23402s&@abs_builddir@&$ac_abs_builddir&;t t 23403s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23404s&@INSTALL@&$ac_INSTALL&;t t 23405s&@MKDIR_P@&$ac_MKDIR_P&;t t 23406$ac_datarootdir_hack 23407" 23408eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23409 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23410 23411test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23412 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23413 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23414 "$ac_tmp/out"`; test -z "$ac_out"; } && 23415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23416which seems to be undefined. Please make sure it is defined" >&5 23417$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23418which seems to be undefined. Please make sure it is defined" >&2;} 23419 23420 rm -f "$ac_tmp/stdin" 23421 case $ac_file in 23422 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23423 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23424 esac \ 23425 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23426 ;; 23427 :H) 23428 # 23429 # CONFIG_HEADER 23430 # 23431 if test x"$ac_file" != x-; then 23432 { 23433 $as_echo "/* $configure_input */" \ 23434 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23435 } >"$ac_tmp/config.h" \ 23436 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23437 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23438 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23439$as_echo "$as_me: $ac_file is unchanged" >&6;} 23440 else 23441 rm -f "$ac_file" 23442 mv "$ac_tmp/config.h" "$ac_file" \ 23443 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23444 fi 23445 else 23446 $as_echo "/* $configure_input */" \ 23447 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23448 || as_fn_error $? "could not create -" "$LINENO" 5 23449 fi 23450# Compute "$ac_file"'s index in $config_headers. 23451_am_arg="$ac_file" 23452_am_stamp_count=1 23453for _am_header in $config_headers :; do 23454 case $_am_header in 23455 $_am_arg | $_am_arg:* ) 23456 break ;; 23457 * ) 23458 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23459 esac 23460done 23461echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23462$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23463 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23464 X"$_am_arg" : 'X\(//\)$' \| \ 23465 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23466$as_echo X"$_am_arg" | 23467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23468 s//\1/ 23469 q 23470 } 23471 /^X\(\/\/\)[^/].*/{ 23472 s//\1/ 23473 q 23474 } 23475 /^X\(\/\/\)$/{ 23476 s//\1/ 23477 q 23478 } 23479 /^X\(\/\).*/{ 23480 s//\1/ 23481 q 23482 } 23483 s/.*/./; q'`/stamp-h$_am_stamp_count 23484 ;; 23485 23486 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23487$as_echo "$as_me: executing $ac_file commands" >&6;} 23488 ;; 23489 esac 23490 23491 23492 case $ac_file$ac_mode in 23493 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23494 # Older Autoconf quotes --file arguments for eval, but not when files 23495 # are listed without --file. Let's play safe and only enable the eval 23496 # if we detect the quoting. 23497 # TODO: see whether this extra hack can be removed once we start 23498 # requiring Autoconf 2.70 or later. 23499 case $CONFIG_FILES in #( 23500 *\'*) : 23501 eval set x "$CONFIG_FILES" ;; #( 23502 *) : 23503 set x $CONFIG_FILES ;; #( 23504 *) : 23505 ;; 23506esac 23507 shift 23508 # Used to flag and report bootstrapping failures. 23509 am_rc=0 23510 for am_mf 23511 do 23512 # Strip MF so we end up with the name of the file. 23513 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 23514 # Check whether this is an Automake generated Makefile which includes 23515 # dependency-tracking related rules and includes. 23516 # Grep'ing the whole file directly is not great: AIX grep has a line 23517 # limit of 2048, but all sed's we know have understand at least 4000. 23518 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 23519 || continue 23520 am_dirpart=`$as_dirname -- "$am_mf" || 23521$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23522 X"$am_mf" : 'X\(//\)[^/]' \| \ 23523 X"$am_mf" : 'X\(//\)$' \| \ 23524 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23525$as_echo X"$am_mf" | 23526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23527 s//\1/ 23528 q 23529 } 23530 /^X\(\/\/\)[^/].*/{ 23531 s//\1/ 23532 q 23533 } 23534 /^X\(\/\/\)$/{ 23535 s//\1/ 23536 q 23537 } 23538 /^X\(\/\).*/{ 23539 s//\1/ 23540 q 23541 } 23542 s/.*/./; q'` 23543 am_filepart=`$as_basename -- "$am_mf" || 23544$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 23545 X"$am_mf" : 'X\(//\)$' \| \ 23546 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23547$as_echo X/"$am_mf" | 23548 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23549 s//\1/ 23550 q 23551 } 23552 /^X\/\(\/\/\)$/{ 23553 s//\1/ 23554 q 23555 } 23556 /^X\/\(\/\).*/{ 23557 s//\1/ 23558 q 23559 } 23560 s/.*/./; q'` 23561 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 23562 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23563 | $MAKE -f - am--depfiles" >&5 23564 (cd "$am_dirpart" \ 23565 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23566 | $MAKE -f - am--depfiles) >&5 2>&5 23567 ac_status=$? 23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23569 (exit $ac_status); } || am_rc=$? 23570 done 23571 if test $am_rc -ne 0; then 23572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23574as_fn_error $? "Something went wrong bootstrapping makefile fragments 23575 for automatic dependency tracking. Try re-running configure with the 23576 '--disable-dependency-tracking' option to at least be able to build 23577 the package (albeit without support for automatic dependency tracking). 23578See \`config.log' for more details" "$LINENO" 5; } 23579 fi 23580 { am_dirpart=; unset am_dirpart;} 23581 { am_filepart=; unset am_filepart;} 23582 { am_mf=; unset am_mf;} 23583 { am_rc=; unset am_rc;} 23584 rm -f conftest-deps.mk 23585} 23586 ;; 23587 "libtool":C) 23588 23589 # See if we are running on zsh, and set the options that allow our 23590 # commands through without removal of \ escapes. 23591 if test -n "${ZSH_VERSION+set}"; then 23592 setopt NO_GLOB_SUBST 23593 fi 23594 23595 cfgfile=${ofile}T 23596 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23597 $RM "$cfgfile" 23598 23599 cat <<_LT_EOF >> "$cfgfile" 23600#! $SHELL 23601# Generated automatically by $as_me ($PACKAGE) $VERSION 23602# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 23603# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23604 23605# Provide generalized library-building support services. 23606# Written by Gordon Matzigkeit, 1996 23607 23608# Copyright (C) 2014 Free Software Foundation, Inc. 23609# This is free software; see the source for copying conditions. There is NO 23610# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23611 23612# GNU Libtool is free software; you can redistribute it and/or modify 23613# it under the terms of the GNU General Public License as published by 23614# the Free Software Foundation; either version 2 of of the License, or 23615# (at your option) any later version. 23616# 23617# As a special exception to the GNU General Public License, if you 23618# distribute this file as part of a program or library that is built 23619# using GNU Libtool, you may include this file under the same 23620# distribution terms that you use for the rest of that program. 23621# 23622# GNU Libtool is distributed in the hope that it will be useful, but 23623# WITHOUT ANY WARRANTY; without even the implied warranty of 23624# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23625# GNU General Public License for more details. 23626# 23627# You should have received a copy of the GNU General Public License 23628# along with this program. If not, see <http://www.gnu.org/licenses/>. 23629 23630 23631# The names of the tagged configurations supported by this script. 23632available_tags='' 23633 23634# Configured defaults for sys_lib_dlsearch_path munging. 23635: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 23636 23637# ### BEGIN LIBTOOL CONFIG 23638 23639# Which release of libtool.m4 was used? 23640macro_version=$macro_version 23641macro_revision=$macro_revision 23642 23643# Whether or not to build shared libraries. 23644build_libtool_libs=$enable_shared 23645 23646# Whether or not to build static libraries. 23647build_old_libs=$enable_static 23648 23649# What type of objects to build. 23650pic_mode=$pic_mode 23651 23652# Whether or not to optimize for fast installation. 23653fast_install=$enable_fast_install 23654 23655# Shared archive member basename,for filename based shared library versioning on AIX. 23656shared_archive_member_spec=$shared_archive_member_spec 23657 23658# Shell to use when invoking shell scripts. 23659SHELL=$lt_SHELL 23660 23661# An echo program that protects backslashes. 23662ECHO=$lt_ECHO 23663 23664# The PATH separator for the build system. 23665PATH_SEPARATOR=$lt_PATH_SEPARATOR 23666 23667# The host system. 23668host_alias=$host_alias 23669host=$host 23670host_os=$host_os 23671 23672# The build system. 23673build_alias=$build_alias 23674build=$build 23675build_os=$build_os 23676 23677# A sed program that does not truncate output. 23678SED=$lt_SED 23679 23680# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23681Xsed="\$SED -e 1s/^X//" 23682 23683# A grep program that handles long lines. 23684GREP=$lt_GREP 23685 23686# An ERE matcher. 23687EGREP=$lt_EGREP 23688 23689# A literal string matcher. 23690FGREP=$lt_FGREP 23691 23692# A BSD- or MS-compatible name lister. 23693NM=$lt_NM 23694 23695# Whether we need soft or hard links. 23696LN_S=$lt_LN_S 23697 23698# What is the maximum length of a command? 23699max_cmd_len=$max_cmd_len 23700 23701# Object file suffix (normally "o"). 23702objext=$ac_objext 23703 23704# Executable file suffix (normally ""). 23705exeext=$exeext 23706 23707# whether the shell understands "unset". 23708lt_unset=$lt_unset 23709 23710# turn spaces into newlines. 23711SP2NL=$lt_lt_SP2NL 23712 23713# turn newlines into spaces. 23714NL2SP=$lt_lt_NL2SP 23715 23716# convert \$build file names to \$host format. 23717to_host_file_cmd=$lt_cv_to_host_file_cmd 23718 23719# convert \$build files to toolchain format. 23720to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23721 23722# An object symbol dumper. 23723OBJDUMP=$lt_OBJDUMP 23724 23725# Method to check whether dependent libraries are shared objects. 23726deplibs_check_method=$lt_deplibs_check_method 23727 23728# Command to use when deplibs_check_method = "file_magic". 23729file_magic_cmd=$lt_file_magic_cmd 23730 23731# How to find potential files when deplibs_check_method = "file_magic". 23732file_magic_glob=$lt_file_magic_glob 23733 23734# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23735want_nocaseglob=$lt_want_nocaseglob 23736 23737# DLL creation program. 23738DLLTOOL=$lt_DLLTOOL 23739 23740# Command to associate shared and link libraries. 23741sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23742 23743# The archiver. 23744AR=$lt_AR 23745 23746# Flags to create an archive. 23747AR_FLAGS=$lt_AR_FLAGS 23748 23749# How to feed a file listing to the archiver. 23750archiver_list_spec=$lt_archiver_list_spec 23751 23752# A symbol stripping program. 23753STRIP=$lt_STRIP 23754 23755# Commands used to install an old-style archive. 23756RANLIB=$lt_RANLIB 23757old_postinstall_cmds=$lt_old_postinstall_cmds 23758old_postuninstall_cmds=$lt_old_postuninstall_cmds 23759 23760# Whether to use a lock for old archive extraction. 23761lock_old_archive_extraction=$lock_old_archive_extraction 23762 23763# A C compiler. 23764LTCC=$lt_CC 23765 23766# LTCC compiler flags. 23767LTCFLAGS=$lt_CFLAGS 23768 23769# Take the output of nm and produce a listing of raw symbols and C names. 23770global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23771 23772# Transform the output of nm in a proper C declaration. 23773global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23774 23775# Transform the output of nm into a list of symbols to manually relocate. 23776global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23777 23778# Transform the output of nm in a C name address pair. 23779global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23780 23781# Transform the output of nm in a C name address pair when lib prefix is needed. 23782global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23783 23784# The name lister interface. 23785nm_interface=$lt_lt_cv_nm_interface 23786 23787# Specify filename containing input files for \$NM. 23788nm_file_list_spec=$lt_nm_file_list_spec 23789 23790# The root where to search for dependent libraries,and where our libraries should be installed. 23791lt_sysroot=$lt_sysroot 23792 23793# Command to truncate a binary pipe. 23794lt_truncate_bin=$lt_lt_cv_truncate_bin 23795 23796# The name of the directory that contains temporary libtool files. 23797objdir=$objdir 23798 23799# Used to examine libraries when file_magic_cmd begins with "file". 23800MAGIC_CMD=$MAGIC_CMD 23801 23802# Must we lock files when doing compilation? 23803need_locks=$lt_need_locks 23804 23805# Manifest tool. 23806MANIFEST_TOOL=$lt_MANIFEST_TOOL 23807 23808# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23809DSYMUTIL=$lt_DSYMUTIL 23810 23811# Tool to change global to local symbols on Mac OS X. 23812NMEDIT=$lt_NMEDIT 23813 23814# Tool to manipulate fat objects and archives on Mac OS X. 23815LIPO=$lt_LIPO 23816 23817# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23818OTOOL=$lt_OTOOL 23819 23820# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23821OTOOL64=$lt_OTOOL64 23822 23823# Old archive suffix (normally "a"). 23824libext=$libext 23825 23826# Shared library suffix (normally ".so"). 23827shrext_cmds=$lt_shrext_cmds 23828 23829# The commands to extract the exported symbol list from a shared archive. 23830extract_expsyms_cmds=$lt_extract_expsyms_cmds 23831 23832# Variables whose values should be saved in libtool wrapper scripts and 23833# restored at link time. 23834variables_saved_for_relink=$lt_variables_saved_for_relink 23835 23836# Do we need the "lib" prefix for modules? 23837need_lib_prefix=$need_lib_prefix 23838 23839# Do we need a version for libraries? 23840need_version=$need_version 23841 23842# Library versioning type. 23843version_type=$version_type 23844 23845# Shared library runtime path variable. 23846runpath_var=$runpath_var 23847 23848# Shared library path variable. 23849shlibpath_var=$shlibpath_var 23850 23851# Is shlibpath searched before the hard-coded library search path? 23852shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23853 23854# Format of library name prefix. 23855libname_spec=$lt_libname_spec 23856 23857# List of archive names. First name is the real one, the rest are links. 23858# The last name is the one that the linker finds with -lNAME 23859library_names_spec=$lt_library_names_spec 23860 23861# The coded name of the library, if different from the real name. 23862soname_spec=$lt_soname_spec 23863 23864# Permission mode override for installation of shared libraries. 23865install_override_mode=$lt_install_override_mode 23866 23867# Command to use after installation of a shared archive. 23868postinstall_cmds=$lt_postinstall_cmds 23869 23870# Command to use after uninstallation of a shared archive. 23871postuninstall_cmds=$lt_postuninstall_cmds 23872 23873# Commands used to finish a libtool library installation in a directory. 23874finish_cmds=$lt_finish_cmds 23875 23876# As "finish_cmds", except a single script fragment to be evaled but 23877# not shown. 23878finish_eval=$lt_finish_eval 23879 23880# Whether we should hardcode library paths into libraries. 23881hardcode_into_libs=$hardcode_into_libs 23882 23883# Compile-time system search path for libraries. 23884sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23885 23886# Detected run-time system search path for libraries. 23887sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23888 23889# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23890configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23891 23892# Whether dlopen is supported. 23893dlopen_support=$enable_dlopen 23894 23895# Whether dlopen of programs is supported. 23896dlopen_self=$enable_dlopen_self 23897 23898# Whether dlopen of statically linked programs is supported. 23899dlopen_self_static=$enable_dlopen_self_static 23900 23901# Commands to strip libraries. 23902old_striplib=$lt_old_striplib 23903striplib=$lt_striplib 23904 23905 23906# The linker used to build libraries. 23907LD=$lt_LD 23908 23909# How to create reloadable object files. 23910reload_flag=$lt_reload_flag 23911reload_cmds=$lt_reload_cmds 23912 23913# Commands used to build an old-style archive. 23914old_archive_cmds=$lt_old_archive_cmds 23915 23916# A language specific compiler. 23917CC=$lt_compiler 23918 23919# Is the compiler the GNU compiler? 23920with_gcc=$GCC 23921 23922# Compiler flag to turn off builtin functions. 23923no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23924 23925# Additional compiler flags for building library objects. 23926pic_flag=$lt_lt_prog_compiler_pic 23927 23928# How to pass a linker flag through the compiler. 23929wl=$lt_lt_prog_compiler_wl 23930 23931# Compiler flag to prevent dynamic linking. 23932link_static_flag=$lt_lt_prog_compiler_static 23933 23934# Does compiler simultaneously support -c and -o options? 23935compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23936 23937# Whether or not to add -lc for building shared libraries. 23938build_libtool_need_lc=$archive_cmds_need_lc 23939 23940# Whether or not to disallow shared libs when runtime libs are static. 23941allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23942 23943# Compiler flag to allow reflexive dlopens. 23944export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23945 23946# Compiler flag to generate shared objects directly from archives. 23947whole_archive_flag_spec=$lt_whole_archive_flag_spec 23948 23949# Whether the compiler copes with passing no objects directly. 23950compiler_needs_object=$lt_compiler_needs_object 23951 23952# Create an old-style archive from a shared archive. 23953old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23954 23955# Create a temporary old-style archive to link instead of a shared archive. 23956old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23957 23958# Commands used to build a shared archive. 23959archive_cmds=$lt_archive_cmds 23960archive_expsym_cmds=$lt_archive_expsym_cmds 23961 23962# Commands used to build a loadable module if different from building 23963# a shared archive. 23964module_cmds=$lt_module_cmds 23965module_expsym_cmds=$lt_module_expsym_cmds 23966 23967# Whether we are building with GNU ld or not. 23968with_gnu_ld=$lt_with_gnu_ld 23969 23970# Flag that allows shared libraries with undefined symbols to be built. 23971allow_undefined_flag=$lt_allow_undefined_flag 23972 23973# Flag that enforces no undefined symbols. 23974no_undefined_flag=$lt_no_undefined_flag 23975 23976# Flag to hardcode \$libdir into a binary during linking. 23977# This must work even if \$libdir does not exist 23978hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23979 23980# Whether we need a single "-rpath" flag with a separated argument. 23981hardcode_libdir_separator=$lt_hardcode_libdir_separator 23982 23983# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23984# DIR into the resulting binary. 23985hardcode_direct=$hardcode_direct 23986 23987# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23988# DIR into the resulting binary and the resulting library dependency is 23989# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23990# library is relocated. 23991hardcode_direct_absolute=$hardcode_direct_absolute 23992 23993# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23994# into the resulting binary. 23995hardcode_minus_L=$hardcode_minus_L 23996 23997# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23998# into the resulting binary. 23999hardcode_shlibpath_var=$hardcode_shlibpath_var 24000 24001# Set to "yes" if building a shared library automatically hardcodes DIR 24002# into the library and all subsequent libraries and executables linked 24003# against it. 24004hardcode_automatic=$hardcode_automatic 24005 24006# Set to yes if linker adds runtime paths of dependent libraries 24007# to runtime path list. 24008inherit_rpath=$inherit_rpath 24009 24010# Whether libtool must link a program against all its dependency libraries. 24011link_all_deplibs=$link_all_deplibs 24012 24013# Set to "yes" if exported symbols are required. 24014always_export_symbols=$always_export_symbols 24015 24016# The commands to list exported symbols. 24017export_symbols_cmds=$lt_export_symbols_cmds 24018 24019# Symbols that should not be listed in the preloaded symbols. 24020exclude_expsyms=$lt_exclude_expsyms 24021 24022# Symbols that must always be exported. 24023include_expsyms=$lt_include_expsyms 24024 24025# Commands necessary for linking programs (against libraries) with templates. 24026prelink_cmds=$lt_prelink_cmds 24027 24028# Commands necessary for finishing linking programs. 24029postlink_cmds=$lt_postlink_cmds 24030 24031# Specify filename containing input files. 24032file_list_spec=$lt_file_list_spec 24033 24034# How to hardcode a shared library path into an executable. 24035hardcode_action=$hardcode_action 24036 24037# ### END LIBTOOL CONFIG 24038 24039_LT_EOF 24040 24041 cat <<'_LT_EOF' >> "$cfgfile" 24042 24043# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 24044 24045# func_munge_path_list VARIABLE PATH 24046# ----------------------------------- 24047# VARIABLE is name of variable containing _space_ separated list of 24048# directories to be munged by the contents of PATH, which is string 24049# having a format: 24050# "DIR[:DIR]:" 24051# string "DIR[ DIR]" will be prepended to VARIABLE 24052# ":DIR[:DIR]" 24053# string "DIR[ DIR]" will be appended to VARIABLE 24054# "DIRP[:DIRP]::[DIRA:]DIRA" 24055# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 24056# "DIRA[ DIRA]" will be appended to VARIABLE 24057# "DIR[:DIR]" 24058# VARIABLE will be replaced by "DIR[ DIR]" 24059func_munge_path_list () 24060{ 24061 case x$2 in 24062 x) 24063 ;; 24064 *:) 24065 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 24066 ;; 24067 x:*) 24068 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 24069 ;; 24070 *::*) 24071 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 24072 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 24073 ;; 24074 *) 24075 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 24076 ;; 24077 esac 24078} 24079 24080 24081# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 24082func_cc_basename () 24083{ 24084 for cc_temp in $*""; do 24085 case $cc_temp in 24086 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24087 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24088 \-*) ;; 24089 *) break;; 24090 esac 24091 done 24092 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 24093} 24094 24095 24096# ### END FUNCTIONS SHARED WITH CONFIGURE 24097 24098_LT_EOF 24099 24100 case $host_os in 24101 aix3*) 24102 cat <<\_LT_EOF >> "$cfgfile" 24103# AIX sometimes has problems with the GCC collect2 program. For some 24104# reason, if we set the COLLECT_NAMES environment variable, the problems 24105# vanish in a puff of smoke. 24106if test set != "${COLLECT_NAMES+set}"; then 24107 COLLECT_NAMES= 24108 export COLLECT_NAMES 24109fi 24110_LT_EOF 24111 ;; 24112 esac 24113 24114 24115ltmain=$ac_aux_dir/ltmain.sh 24116 24117 24118 # We use sed instead of cat because bash on DJGPP gets confused if 24119 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24120 # text mode, it properly converts lines to CR/LF. This bash problem 24121 # is reportedly fixed, but why not run on old versions too? 24122 sed '$q' "$ltmain" >> "$cfgfile" \ 24123 || (rm -f "$cfgfile"; exit 1) 24124 24125 mv -f "$cfgfile" "$ofile" || 24126 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24127 chmod +x "$ofile" 24128 24129 ;; 24130 24131 esac 24132done # for ac_tag 24133 24134 24135as_fn_exit 0 24136_ACEOF 24137ac_clean_files=$ac_clean_files_save 24138 24139test $ac_write_fail = 0 || 24140 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 24141 24142 24143# configure is writing to config.log, and then calls config.status. 24144# config.status does its own redirection, appending to config.log. 24145# Unfortunately, on DOS this fails, as config.log is still kept open 24146# by configure, so config.status won't be able to write to it; its 24147# output is simply discarded. So we exec the FD to /dev/null, 24148# effectively closing config.log, so it can be properly (re)opened and 24149# appended to by config.status. When coming back to configure, we 24150# need to make the FD available again. 24151if test "$no_create" != yes; then 24152 ac_cs_success=: 24153 ac_config_status_args= 24154 test "$silent" = yes && 24155 ac_config_status_args="$ac_config_status_args --quiet" 24156 exec 5>/dev/null 24157 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24158 exec 5>>config.log 24159 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24160 # would make configure fail if this is the last instruction. 24161 $ac_cs_success || as_fn_exit 1 24162fi 24163if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24165$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24166fi 24167 24168 24169echo "" 24170echo "X11 will be built with the following settings:" 24171echo " Loadable i18n module support: "$XLIB_LOADABLE_I18N 24172echo " Loadable xcursor library support: "$XLIB_LOADABLE_XCURSOR 24173echo " Threading support: "$xthreads 24174echo " Use Threads safe API: "$mtsafeapi 24175echo " Threads stubs in libX11: "$thrstubs 24176echo " XCMS: "$XCMS 24177echo " Internationalization support: "$XLOCALE 24178echo " XF86BigFont support: "$XF86BIGFONT 24179echo " XKB support: "$XKB 24180echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR 24181echo " Compose table cache enabled: "$COMPOSECACHE 24182echo " Functional specs building enabled: "$build_specs 24183echo "" 24184