configure revision 1c7386f4
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libxcb 1.11. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>. 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://bugs.freedesktop.org/enter_bug.cgi?product=xcb 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 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='libxcb' 593PACKAGE_TARNAME='libxcb' 594PACKAGE_VERSION='1.11' 595PACKAGE_STRING='libxcb 1.11' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xcb' 597PACKAGE_URL='' 598 599ac_unique_file="xcb.pc.in" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640LAUNCHD 641BUILD_XVMC_FALSE 642BUILD_XVMC_TRUE 643BUILD_XV_FALSE 644BUILD_XV_TRUE 645BUILD_XTEST_FALSE 646BUILD_XTEST_TRUE 647BUILD_SELINUX_FALSE 648BUILD_SELINUX_TRUE 649BUILD_XPRINT_FALSE 650BUILD_XPRINT_TRUE 651BUILD_XKB_FALSE 652BUILD_XKB_TRUE 653BUILD_XINPUT_FALSE 654BUILD_XINPUT_TRUE 655BUILD_XINERAMA_FALSE 656BUILD_XINERAMA_TRUE 657BUILD_XFREE86_DRI_FALSE 658BUILD_XFREE86_DRI_TRUE 659BUILD_XFIXES_FALSE 660BUILD_XFIXES_TRUE 661BUILD_XEVIE_FALSE 662BUILD_XEVIE_TRUE 663BUILD_SYNC_FALSE 664BUILD_SYNC_TRUE 665BUILD_SHM_FALSE 666BUILD_SHM_TRUE 667BUILD_SHAPE_FALSE 668BUILD_SHAPE_TRUE 669BUILD_SCREENSAVER_FALSE 670BUILD_SCREENSAVER_TRUE 671BUILD_RESOURCE_FALSE 672BUILD_RESOURCE_TRUE 673BUILD_RENDER_FALSE 674BUILD_RENDER_TRUE 675BUILD_RECORD_FALSE 676BUILD_RECORD_TRUE 677BUILD_RANDR_FALSE 678BUILD_RANDR_TRUE 679BUILD_PRESENT_FALSE 680BUILD_PRESENT_TRUE 681BUILD_GLX_FALSE 682BUILD_GLX_TRUE 683BUILD_DRI3_FALSE 684BUILD_DRI3_TRUE 685BUILD_DRI2_FALSE 686BUILD_DRI2_TRUE 687BUILD_DPMS_FALSE 688BUILD_DPMS_TRUE 689BUILD_DAMAGE_FALSE 690BUILD_DAMAGE_TRUE 691BUILD_COMPOSITE_FALSE 692BUILD_COMPOSITE_TRUE 693xcbincludedir 694XCB_HAVE_WIN32_FALSE 695XCB_HAVE_WIN32_TRUE 696lt_enable_auto_import 697XCBPROTO_XCBPYTHONDIR 698XCBPROTO_VERSION 699XCBPROTO_XCBINCLUDEDIR 700NEEDED 701XDMCP_LIBS 702XDMCP_CFLAGS 703NEEDED_LIBS 704NEEDED_CFLAGS 705XCBPROTO_LIBS 706XCBPROTO_CFLAGS 707HTML_CHECK_RESULT 708XSLTPROC 709HAVE_CHECK_FALSE 710HAVE_CHECK_TRUE 711CHECK_LIBS 712CHECK_CFLAGS 713HAVE_DOXYGEN_FALSE 714HAVE_DOXYGEN_TRUE 715HAVE_DOT_FALSE 716HAVE_DOT_TRUE 717HAVE_DOT 718DOT 719DOXYGEN 720ENABLE_DEVEL_DOCS_FALSE 721ENABLE_DEVEL_DOCS_TRUE 722MAN_SUBSTS 723XORG_MAN_PAGE 724ADMIN_MAN_DIR 725DRIVER_MAN_DIR 726MISC_MAN_DIR 727FILE_MAN_DIR 728LIB_MAN_DIR 729APP_MAN_DIR 730ADMIN_MAN_SUFFIX 731DRIVER_MAN_SUFFIX 732MISC_MAN_SUFFIX 733FILE_MAN_SUFFIX 734LIB_MAN_SUFFIX 735APP_MAN_SUFFIX 736INSTALL_CMD 737PKG_CONFIG_LIBDIR 738PKG_CONFIG_PATH 739PKG_CONFIG 740CHANGELOG_CMD 741STRICT_CFLAGS 742CWARNFLAGS 743BASE_CFLAGS 744OTOOL64 745OTOOL 746LIPO 747NMEDIT 748DSYMUTIL 749MANIFEST_TOOL 750RANLIB 751ac_ct_AR 752AR 753LN_S 754NM 755ac_ct_DUMPBIN 756DUMPBIN 757LD 758FGREP 759SED 760host_os 761host_vendor 762host_cpu 763host 764build_os 765build_vendor 766build_cpu 767build 768LIBTOOL 769OBJDUMP 770DLLTOOL 771AS 772EGREP 773GREP 774CPP 775am__fastdepCC_FALSE 776am__fastdepCC_TRUE 777CCDEPMODE 778am__nodep 779AMDEPBACKSLASH 780AMDEP_FALSE 781AMDEP_TRUE 782am__quote 783am__include 784DEPDIR 785OBJEXT 786EXEEXT 787ac_ct_CC 788CPPFLAGS 789LDFLAGS 790CFLAGS 791CC 792pkgpyexecdir 793pyexecdir 794pkgpythondir 795pythondir 796PYTHON_PLATFORM 797PYTHON_EXEC_PREFIX 798PYTHON_PREFIX 799PYTHON_VERSION 800PYTHON 801AM_BACKSLASH 802AM_DEFAULT_VERBOSITY 803AM_DEFAULT_V 804AM_V 805am__untar 806am__tar 807AMTAR 808am__leading_dot 809SET_MAKE 810AWK 811mkdir_p 812MKDIR_P 813INSTALL_STRIP_PROGRAM 814STRIP 815install_sh 816MAKEINFO 817AUTOHEADER 818AUTOMAKE 819AUTOCONF 820ACLOCAL 821VERSION 822PACKAGE 823CYGPATH_W 824am__isrc 825INSTALL_DATA 826INSTALL_SCRIPT 827INSTALL_PROGRAM 828target_alias 829host_alias 830build_alias 831LIBS 832ECHO_T 833ECHO_N 834ECHO_C 835DEFS 836mandir 837localedir 838libdir 839psdir 840pdfdir 841dvidir 842htmldir 843infodir 844docdir 845oldincludedir 846includedir 847localstatedir 848sharedstatedir 849sysconfdir 850datadir 851datarootdir 852libexecdir 853sbindir 854bindir 855program_transform_name 856prefix 857exec_prefix 858PACKAGE_URL 859PACKAGE_BUGREPORT 860PACKAGE_STRING 861PACKAGE_VERSION 862PACKAGE_TARNAME 863PACKAGE_NAME 864PATH_SEPARATOR 865SHELL' 866ac_subst_files='' 867ac_user_opts=' 868enable_option_checking 869enable_silent_rules 870enable_dependency_tracking 871enable_shared 872enable_static 873with_pic 874enable_fast_install 875with_gnu_ld 876with_sysroot 877enable_libtool_lock 878enable_selective_werror 879enable_strict_compilation 880enable_devel_docs 881with_doxygen 882enable_sendfds 883with_queue_size 884enable_composite 885enable_damage 886enable_dpms 887enable_dri2 888enable_dri3 889enable_glx 890enable_present 891enable_randr 892enable_record 893enable_render 894enable_resource 895enable_screensaver 896enable_shape 897enable_shm 898enable_sync 899enable_xevie 900enable_xfixes 901enable_xfree86_dri 902enable_xinerama 903enable_xinput 904enable_xkb 905enable_xprint 906enable_selinux 907enable_xtest 908enable_xv 909enable_xvmc 910with_launchd 911' 912 ac_precious_vars='build_alias 913host_alias 914target_alias 915PYTHON 916CC 917CFLAGS 918LDFLAGS 919LIBS 920CPPFLAGS 921CPP 922PKG_CONFIG 923PKG_CONFIG_PATH 924PKG_CONFIG_LIBDIR 925DOXYGEN 926DOT 927CHECK_CFLAGS 928CHECK_LIBS 929XCBPROTO_CFLAGS 930XCBPROTO_LIBS 931NEEDED_CFLAGS 932NEEDED_LIBS 933XDMCP_CFLAGS 934XDMCP_LIBS' 935 936 937# Initialize some variables set by options. 938ac_init_help= 939ac_init_version=false 940ac_unrecognized_opts= 941ac_unrecognized_sep= 942# The variables have the same names as the options, with 943# dashes changed to underlines. 944cache_file=/dev/null 945exec_prefix=NONE 946no_create= 947no_recursion= 948prefix=NONE 949program_prefix=NONE 950program_suffix=NONE 951program_transform_name=s,x,x, 952silent= 953site= 954srcdir= 955verbose= 956x_includes=NONE 957x_libraries=NONE 958 959# Installation directory options. 960# These are left unexpanded so users can "make install exec_prefix=/foo" 961# and all the variables that are supposed to be based on exec_prefix 962# by default will actually change. 963# Use braces instead of parens because sh, perl, etc. also accept them. 964# (The list follows the same order as the GNU Coding Standards.) 965bindir='${exec_prefix}/bin' 966sbindir='${exec_prefix}/sbin' 967libexecdir='${exec_prefix}/libexec' 968datarootdir='${prefix}/share' 969datadir='${datarootdir}' 970sysconfdir='${prefix}/etc' 971sharedstatedir='${prefix}/com' 972localstatedir='${prefix}/var' 973includedir='${prefix}/include' 974oldincludedir='/usr/include' 975docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 976infodir='${datarootdir}/info' 977htmldir='${docdir}' 978dvidir='${docdir}' 979pdfdir='${docdir}' 980psdir='${docdir}' 981libdir='${exec_prefix}/lib' 982localedir='${datarootdir}/locale' 983mandir='${datarootdir}/man' 984 985ac_prev= 986ac_dashdash= 987for ac_option 988do 989 # If the previous option needs an argument, assign it. 990 if test -n "$ac_prev"; then 991 eval $ac_prev=\$ac_option 992 ac_prev= 993 continue 994 fi 995 996 case $ac_option in 997 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 998 *=) ac_optarg= ;; 999 *) ac_optarg=yes ;; 1000 esac 1001 1002 # Accept the important Cygnus configure options, so we can diagnose typos. 1003 1004 case $ac_dashdash$ac_option in 1005 --) 1006 ac_dashdash=yes ;; 1007 1008 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1009 ac_prev=bindir ;; 1010 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1011 bindir=$ac_optarg ;; 1012 1013 -build | --build | --buil | --bui | --bu) 1014 ac_prev=build_alias ;; 1015 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1016 build_alias=$ac_optarg ;; 1017 1018 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1019 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1020 ac_prev=cache_file ;; 1021 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1022 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1023 cache_file=$ac_optarg ;; 1024 1025 --config-cache | -C) 1026 cache_file=config.cache ;; 1027 1028 -datadir | --datadir | --datadi | --datad) 1029 ac_prev=datadir ;; 1030 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1031 datadir=$ac_optarg ;; 1032 1033 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1034 | --dataroo | --dataro | --datar) 1035 ac_prev=datarootdir ;; 1036 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1037 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1038 datarootdir=$ac_optarg ;; 1039 1040 -disable-* | --disable-*) 1041 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1042 # Reject names that are not valid shell variable names. 1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1044 as_fn_error $? "invalid feature name: $ac_useropt" 1045 ac_useropt_orig=$ac_useropt 1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1047 case $ac_user_opts in 1048 *" 1049"enable_$ac_useropt" 1050"*) ;; 1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1052 ac_unrecognized_sep=', ';; 1053 esac 1054 eval enable_$ac_useropt=no ;; 1055 1056 -docdir | --docdir | --docdi | --doc | --do) 1057 ac_prev=docdir ;; 1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1059 docdir=$ac_optarg ;; 1060 1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1062 ac_prev=dvidir ;; 1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1064 dvidir=$ac_optarg ;; 1065 1066 -enable-* | --enable-*) 1067 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1068 # Reject names that are not valid shell variable names. 1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1070 as_fn_error $? "invalid feature name: $ac_useropt" 1071 ac_useropt_orig=$ac_useropt 1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1073 case $ac_user_opts in 1074 *" 1075"enable_$ac_useropt" 1076"*) ;; 1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1078 ac_unrecognized_sep=', ';; 1079 esac 1080 eval enable_$ac_useropt=\$ac_optarg ;; 1081 1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1084 | --exec | --exe | --ex) 1085 ac_prev=exec_prefix ;; 1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1088 | --exec=* | --exe=* | --ex=*) 1089 exec_prefix=$ac_optarg ;; 1090 1091 -gas | --gas | --ga | --g) 1092 # Obsolete; use --with-gas. 1093 with_gas=yes ;; 1094 1095 -help | --help | --hel | --he | -h) 1096 ac_init_help=long ;; 1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1098 ac_init_help=recursive ;; 1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1100 ac_init_help=short ;; 1101 1102 -host | --host | --hos | --ho) 1103 ac_prev=host_alias ;; 1104 -host=* | --host=* | --hos=* | --ho=*) 1105 host_alias=$ac_optarg ;; 1106 1107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1108 ac_prev=htmldir ;; 1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1110 | --ht=*) 1111 htmldir=$ac_optarg ;; 1112 1113 -includedir | --includedir | --includedi | --included | --include \ 1114 | --includ | --inclu | --incl | --inc) 1115 ac_prev=includedir ;; 1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1117 | --includ=* | --inclu=* | --incl=* | --inc=*) 1118 includedir=$ac_optarg ;; 1119 1120 -infodir | --infodir | --infodi | --infod | --info | --inf) 1121 ac_prev=infodir ;; 1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1123 infodir=$ac_optarg ;; 1124 1125 -libdir | --libdir | --libdi | --libd) 1126 ac_prev=libdir ;; 1127 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1128 libdir=$ac_optarg ;; 1129 1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1131 | --libexe | --libex | --libe) 1132 ac_prev=libexecdir ;; 1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1134 | --libexe=* | --libex=* | --libe=*) 1135 libexecdir=$ac_optarg ;; 1136 1137 -localedir | --localedir | --localedi | --localed | --locale) 1138 ac_prev=localedir ;; 1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1140 localedir=$ac_optarg ;; 1141 1142 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1143 | --localstate | --localstat | --localsta | --localst | --locals) 1144 ac_prev=localstatedir ;; 1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1147 localstatedir=$ac_optarg ;; 1148 1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1150 ac_prev=mandir ;; 1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1152 mandir=$ac_optarg ;; 1153 1154 -nfp | --nfp | --nf) 1155 # Obsolete; use --without-fp. 1156 with_fp=no ;; 1157 1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1159 | --no-cr | --no-c | -n) 1160 no_create=yes ;; 1161 1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1164 no_recursion=yes ;; 1165 1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1168 | --oldin | --oldi | --old | --ol | --o) 1169 ac_prev=oldincludedir ;; 1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1173 oldincludedir=$ac_optarg ;; 1174 1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1176 ac_prev=prefix ;; 1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1178 prefix=$ac_optarg ;; 1179 1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1181 | --program-pre | --program-pr | --program-p) 1182 ac_prev=program_prefix ;; 1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1185 program_prefix=$ac_optarg ;; 1186 1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1188 | --program-suf | --program-su | --program-s) 1189 ac_prev=program_suffix ;; 1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1192 program_suffix=$ac_optarg ;; 1193 1194 -program-transform-name | --program-transform-name \ 1195 | --program-transform-nam | --program-transform-na \ 1196 | --program-transform-n | --program-transform- \ 1197 | --program-transform | --program-transfor \ 1198 | --program-transfo | --program-transf \ 1199 | --program-trans | --program-tran \ 1200 | --progr-tra | --program-tr | --program-t) 1201 ac_prev=program_transform_name ;; 1202 -program-transform-name=* | --program-transform-name=* \ 1203 | --program-transform-nam=* | --program-transform-na=* \ 1204 | --program-transform-n=* | --program-transform-=* \ 1205 | --program-transform=* | --program-transfor=* \ 1206 | --program-transfo=* | --program-transf=* \ 1207 | --program-trans=* | --program-tran=* \ 1208 | --progr-tra=* | --program-tr=* | --program-t=*) 1209 program_transform_name=$ac_optarg ;; 1210 1211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1212 ac_prev=pdfdir ;; 1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1214 pdfdir=$ac_optarg ;; 1215 1216 -psdir | --psdir | --psdi | --psd | --ps) 1217 ac_prev=psdir ;; 1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1219 psdir=$ac_optarg ;; 1220 1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1222 | -silent | --silent | --silen | --sile | --sil) 1223 silent=yes ;; 1224 1225 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1226 ac_prev=sbindir ;; 1227 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1228 | --sbi=* | --sb=*) 1229 sbindir=$ac_optarg ;; 1230 1231 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1232 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1233 | --sharedst | --shareds | --shared | --share | --shar \ 1234 | --sha | --sh) 1235 ac_prev=sharedstatedir ;; 1236 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1237 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1238 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1239 | --sha=* | --sh=*) 1240 sharedstatedir=$ac_optarg ;; 1241 1242 -site | --site | --sit) 1243 ac_prev=site ;; 1244 -site=* | --site=* | --sit=*) 1245 site=$ac_optarg ;; 1246 1247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1248 ac_prev=srcdir ;; 1249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1250 srcdir=$ac_optarg ;; 1251 1252 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1253 | --syscon | --sysco | --sysc | --sys | --sy) 1254 ac_prev=sysconfdir ;; 1255 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1256 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1257 sysconfdir=$ac_optarg ;; 1258 1259 -target | --target | --targe | --targ | --tar | --ta | --t) 1260 ac_prev=target_alias ;; 1261 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1262 target_alias=$ac_optarg ;; 1263 1264 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1265 verbose=yes ;; 1266 1267 -version | --version | --versio | --versi | --vers | -V) 1268 ac_init_version=: ;; 1269 1270 -with-* | --with-*) 1271 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1272 # Reject names that are not valid shell variable names. 1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1274 as_fn_error $? "invalid package name: $ac_useropt" 1275 ac_useropt_orig=$ac_useropt 1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1277 case $ac_user_opts in 1278 *" 1279"with_$ac_useropt" 1280"*) ;; 1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1282 ac_unrecognized_sep=', ';; 1283 esac 1284 eval with_$ac_useropt=\$ac_optarg ;; 1285 1286 -without-* | --without-*) 1287 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1288 # Reject names that are not valid shell variable names. 1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1290 as_fn_error $? "invalid package name: $ac_useropt" 1291 ac_useropt_orig=$ac_useropt 1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1293 case $ac_user_opts in 1294 *" 1295"with_$ac_useropt" 1296"*) ;; 1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1298 ac_unrecognized_sep=', ';; 1299 esac 1300 eval with_$ac_useropt=no ;; 1301 1302 --x) 1303 # Obsolete; use --with-x. 1304 with_x=yes ;; 1305 1306 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1307 | --x-incl | --x-inc | --x-in | --x-i) 1308 ac_prev=x_includes ;; 1309 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1310 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1311 x_includes=$ac_optarg ;; 1312 1313 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1314 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1315 ac_prev=x_libraries ;; 1316 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1317 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1318 x_libraries=$ac_optarg ;; 1319 1320 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1321Try \`$0 --help' for more information" 1322 ;; 1323 1324 *=*) 1325 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1326 # Reject names that are not valid shell variable names. 1327 case $ac_envvar in #( 1328 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1329 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1330 esac 1331 eval $ac_envvar=\$ac_optarg 1332 export $ac_envvar ;; 1333 1334 *) 1335 # FIXME: should be removed in autoconf 3.0. 1336 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1337 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1338 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1339 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1340 ;; 1341 1342 esac 1343done 1344 1345if test -n "$ac_prev"; then 1346 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1347 as_fn_error $? "missing argument to $ac_option" 1348fi 1349 1350if test -n "$ac_unrecognized_opts"; then 1351 case $enable_option_checking in 1352 no) ;; 1353 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1354 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1355 esac 1356fi 1357 1358# Check all directory arguments for consistency. 1359for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1360 datadir sysconfdir sharedstatedir localstatedir includedir \ 1361 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1362 libdir localedir mandir 1363do 1364 eval ac_val=\$$ac_var 1365 # Remove trailing slashes. 1366 case $ac_val in 1367 */ ) 1368 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1369 eval $ac_var=\$ac_val;; 1370 esac 1371 # Be sure to have absolute directory names. 1372 case $ac_val in 1373 [\\/$]* | ?:[\\/]* ) continue;; 1374 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1375 esac 1376 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1377done 1378 1379# There might be people who depend on the old broken behavior: `$host' 1380# used to hold the argument of --host etc. 1381# FIXME: To remove some day. 1382build=$build_alias 1383host=$host_alias 1384target=$target_alias 1385 1386# FIXME: To remove some day. 1387if test "x$host_alias" != x; then 1388 if test "x$build_alias" = x; then 1389 cross_compiling=maybe 1390 elif test "x$build_alias" != "x$host_alias"; then 1391 cross_compiling=yes 1392 fi 1393fi 1394 1395ac_tool_prefix= 1396test -n "$host_alias" && ac_tool_prefix=$host_alias- 1397 1398test "$silent" = yes && exec 6>/dev/null 1399 1400 1401ac_pwd=`pwd` && test -n "$ac_pwd" && 1402ac_ls_di=`ls -di .` && 1403ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1404 as_fn_error $? "working directory cannot be determined" 1405test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1406 as_fn_error $? "pwd does not report name of working directory" 1407 1408 1409# Find the source files, if location was not specified. 1410if test -z "$srcdir"; then 1411 ac_srcdir_defaulted=yes 1412 # Try the directory containing this script, then the parent directory. 1413 ac_confdir=`$as_dirname -- "$as_myself" || 1414$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1415 X"$as_myself" : 'X\(//\)[^/]' \| \ 1416 X"$as_myself" : 'X\(//\)$' \| \ 1417 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1418$as_echo X"$as_myself" | 1419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1420 s//\1/ 1421 q 1422 } 1423 /^X\(\/\/\)[^/].*/{ 1424 s//\1/ 1425 q 1426 } 1427 /^X\(\/\/\)$/{ 1428 s//\1/ 1429 q 1430 } 1431 /^X\(\/\).*/{ 1432 s//\1/ 1433 q 1434 } 1435 s/.*/./; q'` 1436 srcdir=$ac_confdir 1437 if test ! -r "$srcdir/$ac_unique_file"; then 1438 srcdir=.. 1439 fi 1440else 1441 ac_srcdir_defaulted=no 1442fi 1443if test ! -r "$srcdir/$ac_unique_file"; then 1444 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1445 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1446fi 1447ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1448ac_abs_confdir=`( 1449 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1450 pwd)` 1451# When building in place, set srcdir=. 1452if test "$ac_abs_confdir" = "$ac_pwd"; then 1453 srcdir=. 1454fi 1455# Remove unnecessary trailing slashes from srcdir. 1456# Double slashes in file names in object file debugging info 1457# mess up M-x gdb in Emacs. 1458case $srcdir in 1459*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1460esac 1461for ac_var in $ac_precious_vars; do 1462 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1463 eval ac_env_${ac_var}_value=\$${ac_var} 1464 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1465 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1466done 1467 1468# 1469# Report the --help message. 1470# 1471if test "$ac_init_help" = "long"; then 1472 # Omit some internal or obsolete options to make the list less imposing. 1473 # This message is too long to be a string in the A/UX 3.1 sh. 1474 cat <<_ACEOF 1475\`configure' configures libxcb 1.11 to adapt to many kinds of systems. 1476 1477Usage: $0 [OPTION]... [VAR=VALUE]... 1478 1479To assign environment variables (e.g., CC, CFLAGS...), specify them as 1480VAR=VALUE. See below for descriptions of some of the useful variables. 1481 1482Defaults for the options are specified in brackets. 1483 1484Configuration: 1485 -h, --help display this help and exit 1486 --help=short display options specific to this package 1487 --help=recursive display the short help of all the included packages 1488 -V, --version display version information and exit 1489 -q, --quiet, --silent do not print \`checking ...' messages 1490 --cache-file=FILE cache test results in FILE [disabled] 1491 -C, --config-cache alias for \`--cache-file=config.cache' 1492 -n, --no-create do not create output files 1493 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1494 1495Installation directories: 1496 --prefix=PREFIX install architecture-independent files in PREFIX 1497 [$ac_default_prefix] 1498 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1499 [PREFIX] 1500 1501By default, \`make install' will install all the files in 1502\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1503an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1504for instance \`--prefix=\$HOME'. 1505 1506For better control, use the options below. 1507 1508Fine tuning of the installation directories: 1509 --bindir=DIR user executables [EPREFIX/bin] 1510 --sbindir=DIR system admin executables [EPREFIX/sbin] 1511 --libexecdir=DIR program executables [EPREFIX/libexec] 1512 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1513 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1514 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1515 --libdir=DIR object code libraries [EPREFIX/lib] 1516 --includedir=DIR C header files [PREFIX/include] 1517 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1518 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1519 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1520 --infodir=DIR info documentation [DATAROOTDIR/info] 1521 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1522 --mandir=DIR man documentation [DATAROOTDIR/man] 1523 --docdir=DIR documentation root [DATAROOTDIR/doc/libxcb] 1524 --htmldir=DIR html documentation [DOCDIR] 1525 --dvidir=DIR dvi documentation [DOCDIR] 1526 --pdfdir=DIR pdf documentation [DOCDIR] 1527 --psdir=DIR ps documentation [DOCDIR] 1528_ACEOF 1529 1530 cat <<\_ACEOF 1531 1532Program names: 1533 --program-prefix=PREFIX prepend PREFIX to installed program names 1534 --program-suffix=SUFFIX append SUFFIX to installed program names 1535 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1536 1537System types: 1538 --build=BUILD configure for building on BUILD [guessed] 1539 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1540_ACEOF 1541fi 1542 1543if test -n "$ac_init_help"; then 1544 case $ac_init_help in 1545 short | recursive ) echo "Configuration of libxcb 1.11:";; 1546 esac 1547 cat <<\_ACEOF 1548 1549Optional Features: 1550 --disable-option-checking ignore unrecognized --enable/--with options 1551 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1552 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1553 --enable-silent-rules less verbose build output (undo: "make V=1") 1554 --disable-silent-rules verbose build output (undo: "make V=0") 1555 --enable-dependency-tracking 1556 do not reject slow dependency extractors 1557 --disable-dependency-tracking 1558 speeds up one-time build 1559 --enable-shared[=PKGS] build shared libraries [default=yes] 1560 --enable-static[=PKGS] build static libraries [default=yes] 1561 --enable-fast-install[=PKGS] 1562 optimize for fast installation [default=yes] 1563 --disable-libtool-lock avoid locking (might break parallel builds) 1564 --disable-selective-werror 1565 Turn off selective compiler errors. (default: 1566 enabled) 1567 --enable-strict-compilation 1568 Enable all warnings from compiler and make them 1569 errors (default: disabled) 1570 --enable-devel-docs Enable building the developer documentation 1571 (default: yes) 1572 --disable-sendfds Support FD passing (default: auto) 1573 --enable-composite Build XCB Composite Extension (default: "yes") 1574 --enable-damage Build XCB Damage Extension (default: "yes") 1575 --enable-dpms Build XCB DPMS Extension (default: "yes") 1576 --enable-dri2 Build XCB DRI2 Extension (default: "yes") 1577 --enable-dri3 Build XCB DRI3 Extension (default: "$sendfds") 1578 --enable-glx Build XCB GLX Extension (default: "yes") 1579 --enable-present Build XCB Present Extension (default: "yes") 1580 --enable-randr Build XCB RandR Extension (default: "yes") 1581 --enable-record Build XCB Record Extension (default: "yes") 1582 --enable-render Build XCB Render Extension (default: "yes") 1583 --enable-resource Build XCB Resource Extension (default: "yes") 1584 --enable-screensaver Build XCB Screensaver Extension (default: "yes") 1585 --enable-shape Build XCB Shape Extension (default: "yes") 1586 --enable-shm Build XCB Shm Extension (default: "yes") 1587 --enable-sync Build XCB Sync Extension (default: "yes") 1588 --enable-xevie Build XCB Xevie Extension (default: "yes") 1589 --enable-xfixes Build XCB XFixes Extension (default: "yes") 1590 --enable-xfree86-dri Build XCB XFree86-DRI Extension (default: "yes") 1591 --enable-xinerama Build XCB Xinerama Extension (default: "yes") 1592 --enable-xinput Build XCB XInput Extension (default: "no") 1593 --enable-xkb Build XCB XKB Extension (default: "yes") 1594 --enable-xprint Build XCB Xprint Extension (default: "yes") 1595 --enable-selinux Build XCB SELinux Extension (default: "no") 1596 --enable-xtest Build XCB XTest Extension (default: "yes") 1597 --enable-xv Build XCB Xv Extension (default: "yes") 1598 --enable-xvmc Build XCB XvMC Extension (default: "yes") 1599 1600Optional Packages: 1601 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1602 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1603 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1604 both] 1605 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1606 --with-sysroot=DIR Search for dependent libraries within DIR 1607 (or the compiler's sysroot if not specified). 1608 --with-doxygen Use doxygen to regenerate documentation (default: 1609 auto) 1610 --with-queue-size=SIZE Set the XCB buffer queue size (default is 16384) 1611 --with-launchd Build with support for Apple's launchd (default: 1612 auto) 1613 1614Some influential environment variables: 1615 PYTHON the Python interpreter 1616 CC C compiler command 1617 CFLAGS C compiler flags 1618 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1619 nonstandard directory <lib dir> 1620 LIBS libraries to pass to the linker, e.g. -l<library> 1621 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1622 you have headers in a nonstandard directory <include dir> 1623 CPP C preprocessor 1624 PKG_CONFIG path to pkg-config utility 1625 PKG_CONFIG_PATH 1626 directories to add to pkg-config's search path 1627 PKG_CONFIG_LIBDIR 1628 path overriding pkg-config's built-in search path 1629 DOXYGEN Path to doxygen command 1630 DOT Path to the dot graphics utility 1631 CHECK_CFLAGS 1632 C compiler flags for CHECK, overriding pkg-config 1633 CHECK_LIBS linker flags for CHECK, overriding pkg-config 1634 XCBPROTO_CFLAGS 1635 C compiler flags for XCBPROTO, overriding pkg-config 1636 XCBPROTO_LIBS 1637 linker flags for XCBPROTO, overriding pkg-config 1638 NEEDED_CFLAGS 1639 C compiler flags for NEEDED, overriding pkg-config 1640 NEEDED_LIBS linker flags for NEEDED, overriding pkg-config 1641 XDMCP_CFLAGS 1642 C compiler flags for XDMCP, overriding pkg-config 1643 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config 1644 1645Use these variables to override the choices made by `configure' or to help 1646it to find libraries and programs with nonstandard names/locations. 1647 1648Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>. 1649_ACEOF 1650ac_status=$? 1651fi 1652 1653if test "$ac_init_help" = "recursive"; then 1654 # If there are subdirs, report their specific --help. 1655 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1656 test -d "$ac_dir" || 1657 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1658 continue 1659 ac_builddir=. 1660 1661case "$ac_dir" in 1662.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1663*) 1664 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1665 # A ".." for each directory in $ac_dir_suffix. 1666 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1667 case $ac_top_builddir_sub in 1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1670 esac ;; 1671esac 1672ac_abs_top_builddir=$ac_pwd 1673ac_abs_builddir=$ac_pwd$ac_dir_suffix 1674# for backward compatibility: 1675ac_top_builddir=$ac_top_build_prefix 1676 1677case $srcdir in 1678 .) # We are building in place. 1679 ac_srcdir=. 1680 ac_top_srcdir=$ac_top_builddir_sub 1681 ac_abs_top_srcdir=$ac_pwd ;; 1682 [\\/]* | ?:[\\/]* ) # Absolute name. 1683 ac_srcdir=$srcdir$ac_dir_suffix; 1684 ac_top_srcdir=$srcdir 1685 ac_abs_top_srcdir=$srcdir ;; 1686 *) # Relative name. 1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1688 ac_top_srcdir=$ac_top_build_prefix$srcdir 1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1690esac 1691ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1692 1693 cd "$ac_dir" || { ac_status=$?; continue; } 1694 # Check for guested configure. 1695 if test -f "$ac_srcdir/configure.gnu"; then 1696 echo && 1697 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1698 elif test -f "$ac_srcdir/configure"; then 1699 echo && 1700 $SHELL "$ac_srcdir/configure" --help=recursive 1701 else 1702 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1703 fi || ac_status=$? 1704 cd "$ac_pwd" || { ac_status=$?; break; } 1705 done 1706fi 1707 1708test -n "$ac_init_help" && exit $ac_status 1709if $ac_init_version; then 1710 cat <<\_ACEOF 1711libxcb configure 1.11 1712generated by GNU Autoconf 2.69 1713 1714Copyright (C) 2012 Free Software Foundation, Inc. 1715This configure script is free software; the Free Software Foundation 1716gives unlimited permission to copy, distribute and modify it. 1717_ACEOF 1718 exit 1719fi 1720 1721## ------------------------ ## 1722## Autoconf initialization. ## 1723## ------------------------ ## 1724 1725# ac_fn_c_try_compile LINENO 1726# -------------------------- 1727# Try to compile conftest.$ac_ext, and return whether this succeeded. 1728ac_fn_c_try_compile () 1729{ 1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1731 rm -f conftest.$ac_objext 1732 if { { ac_try="$ac_compile" 1733case "(($ac_try" in 1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1735 *) ac_try_echo=$ac_try;; 1736esac 1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1738$as_echo "$ac_try_echo"; } >&5 1739 (eval "$ac_compile") 2>conftest.err 1740 ac_status=$? 1741 if test -s conftest.err; then 1742 grep -v '^ *+' conftest.err >conftest.er1 1743 cat conftest.er1 >&5 1744 mv -f conftest.er1 conftest.err 1745 fi 1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1747 test $ac_status = 0; } && { 1748 test -z "$ac_c_werror_flag" || 1749 test ! -s conftest.err 1750 } && test -s conftest.$ac_objext; then : 1751 ac_retval=0 1752else 1753 $as_echo "$as_me: failed program was:" >&5 1754sed 's/^/| /' conftest.$ac_ext >&5 1755 1756 ac_retval=1 1757fi 1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1759 as_fn_set_status $ac_retval 1760 1761} # ac_fn_c_try_compile 1762 1763# ac_fn_c_try_cpp LINENO 1764# ---------------------- 1765# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1766ac_fn_c_try_cpp () 1767{ 1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1769 if { { ac_try="$ac_cpp conftest.$ac_ext" 1770case "(($ac_try" in 1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1772 *) ac_try_echo=$ac_try;; 1773esac 1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1775$as_echo "$ac_try_echo"; } >&5 1776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1777 ac_status=$? 1778 if test -s conftest.err; then 1779 grep -v '^ *+' conftest.err >conftest.er1 1780 cat conftest.er1 >&5 1781 mv -f conftest.er1 conftest.err 1782 fi 1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1784 test $ac_status = 0; } > conftest.i && { 1785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1786 test ! -s conftest.err 1787 }; then : 1788 ac_retval=0 1789else 1790 $as_echo "$as_me: failed program was:" >&5 1791sed 's/^/| /' conftest.$ac_ext >&5 1792 1793 ac_retval=1 1794fi 1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1796 as_fn_set_status $ac_retval 1797 1798} # ac_fn_c_try_cpp 1799 1800# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1801# ------------------------------------------------------- 1802# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1803# the include files in INCLUDES and setting the cache variable VAR 1804# accordingly. 1805ac_fn_c_check_header_mongrel () 1806{ 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 if eval \${$3+:} false; then : 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1810$as_echo_n "checking for $2... " >&6; } 1811if eval \${$3+:} false; then : 1812 $as_echo_n "(cached) " >&6 1813fi 1814eval ac_res=\$$3 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1816$as_echo "$ac_res" >&6; } 1817else 1818 # Is the header compilable? 1819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1820$as_echo_n "checking $2 usability... " >&6; } 1821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1822/* end confdefs.h. */ 1823$4 1824#include <$2> 1825_ACEOF 1826if ac_fn_c_try_compile "$LINENO"; then : 1827 ac_header_compiler=yes 1828else 1829 ac_header_compiler=no 1830fi 1831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1833$as_echo "$ac_header_compiler" >&6; } 1834 1835# Is the header present? 1836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1837$as_echo_n "checking $2 presence... " >&6; } 1838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1839/* end confdefs.h. */ 1840#include <$2> 1841_ACEOF 1842if ac_fn_c_try_cpp "$LINENO"; then : 1843 ac_header_preproc=yes 1844else 1845 ac_header_preproc=no 1846fi 1847rm -f conftest.err conftest.i conftest.$ac_ext 1848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1849$as_echo "$ac_header_preproc" >&6; } 1850 1851# So? What about this header? 1852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1853 yes:no: ) 1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1855$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1857$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1858 ;; 1859 no:yes:* ) 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1861$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1863$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1865$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1867$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1869$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1870( $as_echo "## --------------------------------------------------------------------- ## 1871## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xcb ## 1872## --------------------------------------------------------------------- ##" 1873 ) | sed "s/^/$as_me: WARNING: /" >&2 1874 ;; 1875esac 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1877$as_echo_n "checking for $2... " >&6; } 1878if eval \${$3+:} false; then : 1879 $as_echo_n "(cached) " >&6 1880else 1881 eval "$3=\$ac_header_compiler" 1882fi 1883eval ac_res=\$$3 1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1885$as_echo "$ac_res" >&6; } 1886fi 1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1888 1889} # ac_fn_c_check_header_mongrel 1890 1891# ac_fn_c_try_run LINENO 1892# ---------------------- 1893# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1894# that executables *can* be run. 1895ac_fn_c_try_run () 1896{ 1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1898 if { { ac_try="$ac_link" 1899case "(($ac_try" in 1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1901 *) ac_try_echo=$ac_try;; 1902esac 1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1904$as_echo "$ac_try_echo"; } >&5 1905 (eval "$ac_link") 2>&5 1906 ac_status=$? 1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1908 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1909 { { case "(($ac_try" in 1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1911 *) ac_try_echo=$ac_try;; 1912esac 1913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1914$as_echo "$ac_try_echo"; } >&5 1915 (eval "$ac_try") 2>&5 1916 ac_status=$? 1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1918 test $ac_status = 0; }; }; then : 1919 ac_retval=0 1920else 1921 $as_echo "$as_me: program exited with status $ac_status" >&5 1922 $as_echo "$as_me: failed program was:" >&5 1923sed 's/^/| /' conftest.$ac_ext >&5 1924 1925 ac_retval=$ac_status 1926fi 1927 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1929 as_fn_set_status $ac_retval 1930 1931} # ac_fn_c_try_run 1932 1933# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1934# ------------------------------------------------------- 1935# Tests whether HEADER exists and can be compiled using the include files in 1936# INCLUDES, setting the cache variable VAR accordingly. 1937ac_fn_c_check_header_compile () 1938{ 1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1941$as_echo_n "checking for $2... " >&6; } 1942if eval \${$3+:} false; then : 1943 $as_echo_n "(cached) " >&6 1944else 1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1946/* end confdefs.h. */ 1947$4 1948#include <$2> 1949_ACEOF 1950if ac_fn_c_try_compile "$LINENO"; then : 1951 eval "$3=yes" 1952else 1953 eval "$3=no" 1954fi 1955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1956fi 1957eval ac_res=\$$3 1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1959$as_echo "$ac_res" >&6; } 1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1961 1962} # ac_fn_c_check_header_compile 1963 1964# ac_fn_c_try_link LINENO 1965# ----------------------- 1966# Try to link conftest.$ac_ext, and return whether this succeeded. 1967ac_fn_c_try_link () 1968{ 1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1970 rm -f conftest.$ac_objext conftest$ac_exeext 1971 if { { ac_try="$ac_link" 1972case "(($ac_try" in 1973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1974 *) ac_try_echo=$ac_try;; 1975esac 1976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1977$as_echo "$ac_try_echo"; } >&5 1978 (eval "$ac_link") 2>conftest.err 1979 ac_status=$? 1980 if test -s conftest.err; then 1981 grep -v '^ *+' conftest.err >conftest.er1 1982 cat conftest.er1 >&5 1983 mv -f conftest.er1 conftest.err 1984 fi 1985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1986 test $ac_status = 0; } && { 1987 test -z "$ac_c_werror_flag" || 1988 test ! -s conftest.err 1989 } && test -s conftest$ac_exeext && { 1990 test "$cross_compiling" = yes || 1991 test -x conftest$ac_exeext 1992 }; then : 1993 ac_retval=0 1994else 1995 $as_echo "$as_me: failed program was:" >&5 1996sed 's/^/| /' conftest.$ac_ext >&5 1997 1998 ac_retval=1 1999fi 2000 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2001 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2002 # interfere with the next link command; also delete a directory that is 2003 # left behind by Apple's compiler. We do this before executing the actions. 2004 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2006 as_fn_set_status $ac_retval 2007 2008} # ac_fn_c_try_link 2009 2010# ac_fn_c_check_func LINENO FUNC VAR 2011# ---------------------------------- 2012# Tests whether FUNC exists, setting the cache variable VAR accordingly 2013ac_fn_c_check_func () 2014{ 2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2017$as_echo_n "checking for $2... " >&6; } 2018if eval \${$3+:} false; then : 2019 $as_echo_n "(cached) " >&6 2020else 2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2022/* end confdefs.h. */ 2023/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2024 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2025#define $2 innocuous_$2 2026 2027/* System header to define __stub macros and hopefully few prototypes, 2028 which can conflict with char $2 (); below. 2029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2030 <limits.h> exists even on freestanding compilers. */ 2031 2032#ifdef __STDC__ 2033# include <limits.h> 2034#else 2035# include <assert.h> 2036#endif 2037 2038#undef $2 2039 2040/* Override any GCC internal prototype to avoid an error. 2041 Use char because int might match the return type of a GCC 2042 builtin and then its argument prototype would still apply. */ 2043#ifdef __cplusplus 2044extern "C" 2045#endif 2046char $2 (); 2047/* The GNU C library defines this for functions which it implements 2048 to always fail with ENOSYS. Some functions are actually named 2049 something starting with __ and the normal name is an alias. */ 2050#if defined __stub_$2 || defined __stub___$2 2051choke me 2052#endif 2053 2054int 2055main () 2056{ 2057return $2 (); 2058 ; 2059 return 0; 2060} 2061_ACEOF 2062if ac_fn_c_try_link "$LINENO"; then : 2063 eval "$3=yes" 2064else 2065 eval "$3=no" 2066fi 2067rm -f core conftest.err conftest.$ac_objext \ 2068 conftest$ac_exeext conftest.$ac_ext 2069fi 2070eval ac_res=\$$3 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2072$as_echo "$ac_res" >&6; } 2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2074 2075} # ac_fn_c_check_func 2076 2077# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2078# --------------------------------------------- 2079# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2080# accordingly. 2081ac_fn_c_check_decl () 2082{ 2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2084 as_decl_name=`echo $2|sed 's/ *(.*//'` 2085 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2087$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2088if eval \${$3+:} false; then : 2089 $as_echo_n "(cached) " >&6 2090else 2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2092/* end confdefs.h. */ 2093$4 2094int 2095main () 2096{ 2097#ifndef $as_decl_name 2098#ifdef __cplusplus 2099 (void) $as_decl_use; 2100#else 2101 (void) $as_decl_name; 2102#endif 2103#endif 2104 2105 ; 2106 return 0; 2107} 2108_ACEOF 2109if ac_fn_c_try_compile "$LINENO"; then : 2110 eval "$3=yes" 2111else 2112 eval "$3=no" 2113fi 2114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2115fi 2116eval ac_res=\$$3 2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2118$as_echo "$ac_res" >&6; } 2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2120 2121} # ac_fn_c_check_decl 2122 2123# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2124# ---------------------------------------------------- 2125# Tries to find if the field MEMBER exists in type AGGR, after including 2126# INCLUDES, setting cache variable VAR accordingly. 2127ac_fn_c_check_member () 2128{ 2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2131$as_echo_n "checking for $2.$3... " >&6; } 2132if eval \${$4+:} false; then : 2133 $as_echo_n "(cached) " >&6 2134else 2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2136/* end confdefs.h. */ 2137$5 2138int 2139main () 2140{ 2141static $2 ac_aggr; 2142if (ac_aggr.$3) 2143return 0; 2144 ; 2145 return 0; 2146} 2147_ACEOF 2148if ac_fn_c_try_compile "$LINENO"; then : 2149 eval "$4=yes" 2150else 2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2152/* end confdefs.h. */ 2153$5 2154int 2155main () 2156{ 2157static $2 ac_aggr; 2158if (sizeof ac_aggr.$3) 2159return 0; 2160 ; 2161 return 0; 2162} 2163_ACEOF 2164if ac_fn_c_try_compile "$LINENO"; then : 2165 eval "$4=yes" 2166else 2167 eval "$4=no" 2168fi 2169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2170fi 2171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2172fi 2173eval ac_res=\$$4 2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2175$as_echo "$ac_res" >&6; } 2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2177 2178} # ac_fn_c_check_member 2179cat >config.log <<_ACEOF 2180This file contains any messages produced by compilers while 2181running configure, to aid debugging if configure makes a mistake. 2182 2183It was created by libxcb $as_me 1.11, which was 2184generated by GNU Autoconf 2.69. Invocation command line was 2185 2186 $ $0 $@ 2187 2188_ACEOF 2189exec 5>>config.log 2190{ 2191cat <<_ASUNAME 2192## --------- ## 2193## Platform. ## 2194## --------- ## 2195 2196hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2197uname -m = `(uname -m) 2>/dev/null || echo unknown` 2198uname -r = `(uname -r) 2>/dev/null || echo unknown` 2199uname -s = `(uname -s) 2>/dev/null || echo unknown` 2200uname -v = `(uname -v) 2>/dev/null || echo unknown` 2201 2202/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2203/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2204 2205/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2206/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2207/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2208/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2209/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2210/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2211/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2212 2213_ASUNAME 2214 2215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2216for as_dir in $PATH 2217do 2218 IFS=$as_save_IFS 2219 test -z "$as_dir" && as_dir=. 2220 $as_echo "PATH: $as_dir" 2221 done 2222IFS=$as_save_IFS 2223 2224} >&5 2225 2226cat >&5 <<_ACEOF 2227 2228 2229## ----------- ## 2230## Core tests. ## 2231## ----------- ## 2232 2233_ACEOF 2234 2235 2236# Keep a trace of the command line. 2237# Strip out --no-create and --no-recursion so they do not pile up. 2238# Strip out --silent because we don't want to record it for future runs. 2239# Also quote any args containing shell meta-characters. 2240# Make two passes to allow for proper duplicate-argument suppression. 2241ac_configure_args= 2242ac_configure_args0= 2243ac_configure_args1= 2244ac_must_keep_next=false 2245for ac_pass in 1 2 2246do 2247 for ac_arg 2248 do 2249 case $ac_arg in 2250 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2252 | -silent | --silent | --silen | --sile | --sil) 2253 continue ;; 2254 *\'*) 2255 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2256 esac 2257 case $ac_pass in 2258 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2259 2) 2260 as_fn_append ac_configure_args1 " '$ac_arg'" 2261 if test $ac_must_keep_next = true; then 2262 ac_must_keep_next=false # Got value, back to normal. 2263 else 2264 case $ac_arg in 2265 *=* | --config-cache | -C | -disable-* | --disable-* \ 2266 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2267 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2268 | -with-* | --with-* | -without-* | --without-* | --x) 2269 case "$ac_configure_args0 " in 2270 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2271 esac 2272 ;; 2273 -* ) ac_must_keep_next=true ;; 2274 esac 2275 fi 2276 as_fn_append ac_configure_args " '$ac_arg'" 2277 ;; 2278 esac 2279 done 2280done 2281{ ac_configure_args0=; unset ac_configure_args0;} 2282{ ac_configure_args1=; unset ac_configure_args1;} 2283 2284# When interrupted or exit'd, cleanup temporary files, and complete 2285# config.log. We remove comments because anyway the quotes in there 2286# would cause problems or look ugly. 2287# WARNING: Use '\'' to represent an apostrophe within the trap. 2288# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2289trap 'exit_status=$? 2290 # Save into config.log some information that might help in debugging. 2291 { 2292 echo 2293 2294 $as_echo "## ---------------- ## 2295## Cache variables. ## 2296## ---------------- ##" 2297 echo 2298 # The following way of writing the cache mishandles newlines in values, 2299( 2300 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2301 eval ac_val=\$$ac_var 2302 case $ac_val in #( 2303 *${as_nl}*) 2304 case $ac_var in #( 2305 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2306$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2307 esac 2308 case $ac_var in #( 2309 _ | IFS | as_nl) ;; #( 2310 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2311 *) { eval $ac_var=; unset $ac_var;} ;; 2312 esac ;; 2313 esac 2314 done 2315 (set) 2>&1 | 2316 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2317 *${as_nl}ac_space=\ *) 2318 sed -n \ 2319 "s/'\''/'\''\\\\'\'''\''/g; 2320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2321 ;; #( 2322 *) 2323 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2324 ;; 2325 esac | 2326 sort 2327) 2328 echo 2329 2330 $as_echo "## ----------------- ## 2331## Output variables. ## 2332## ----------------- ##" 2333 echo 2334 for ac_var in $ac_subst_vars 2335 do 2336 eval ac_val=\$$ac_var 2337 case $ac_val in 2338 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2339 esac 2340 $as_echo "$ac_var='\''$ac_val'\''" 2341 done | sort 2342 echo 2343 2344 if test -n "$ac_subst_files"; then 2345 $as_echo "## ------------------- ## 2346## File substitutions. ## 2347## ------------------- ##" 2348 echo 2349 for ac_var in $ac_subst_files 2350 do 2351 eval ac_val=\$$ac_var 2352 case $ac_val in 2353 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2354 esac 2355 $as_echo "$ac_var='\''$ac_val'\''" 2356 done | sort 2357 echo 2358 fi 2359 2360 if test -s confdefs.h; then 2361 $as_echo "## ----------- ## 2362## confdefs.h. ## 2363## ----------- ##" 2364 echo 2365 cat confdefs.h 2366 echo 2367 fi 2368 test "$ac_signal" != 0 && 2369 $as_echo "$as_me: caught signal $ac_signal" 2370 $as_echo "$as_me: exit $exit_status" 2371 } >&5 2372 rm -f core *.core core.conftest.* && 2373 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2374 exit $exit_status 2375' 0 2376for ac_signal in 1 2 13 15; do 2377 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2378done 2379ac_signal=0 2380 2381# confdefs.h avoids OS command line length limits that DEFS can exceed. 2382rm -f -r conftest* confdefs.h 2383 2384$as_echo "/* confdefs.h */" > confdefs.h 2385 2386# Predefined preprocessor variables. 2387 2388cat >>confdefs.h <<_ACEOF 2389#define PACKAGE_NAME "$PACKAGE_NAME" 2390_ACEOF 2391 2392cat >>confdefs.h <<_ACEOF 2393#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2394_ACEOF 2395 2396cat >>confdefs.h <<_ACEOF 2397#define PACKAGE_VERSION "$PACKAGE_VERSION" 2398_ACEOF 2399 2400cat >>confdefs.h <<_ACEOF 2401#define PACKAGE_STRING "$PACKAGE_STRING" 2402_ACEOF 2403 2404cat >>confdefs.h <<_ACEOF 2405#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2406_ACEOF 2407 2408cat >>confdefs.h <<_ACEOF 2409#define PACKAGE_URL "$PACKAGE_URL" 2410_ACEOF 2411 2412 2413# Let the site file select an alternate cache file if it wants to. 2414# Prefer an explicitly selected file to automatically selected ones. 2415ac_site_file1=NONE 2416ac_site_file2=NONE 2417if test -n "$CONFIG_SITE"; then 2418 # We do not want a PATH search for config.site. 2419 case $CONFIG_SITE in #(( 2420 -*) ac_site_file1=./$CONFIG_SITE;; 2421 */*) ac_site_file1=$CONFIG_SITE;; 2422 *) ac_site_file1=./$CONFIG_SITE;; 2423 esac 2424elif test "x$prefix" != xNONE; then 2425 ac_site_file1=$prefix/share/config.site 2426 ac_site_file2=$prefix/etc/config.site 2427else 2428 ac_site_file1=$ac_default_prefix/share/config.site 2429 ac_site_file2=$ac_default_prefix/etc/config.site 2430fi 2431for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2432do 2433 test "x$ac_site_file" = xNONE && continue 2434 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2436$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2437 sed 's/^/| /' "$ac_site_file" >&5 2438 . "$ac_site_file" \ 2439 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2441as_fn_error $? "failed to load site script $ac_site_file 2442See \`config.log' for more details" "$LINENO" 5; } 2443 fi 2444done 2445 2446if test -r "$cache_file"; then 2447 # Some versions of bash will fail to source /dev/null (special files 2448 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2449 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2451$as_echo "$as_me: loading cache $cache_file" >&6;} 2452 case $cache_file in 2453 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2454 *) . "./$cache_file";; 2455 esac 2456 fi 2457else 2458 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2459$as_echo "$as_me: creating cache $cache_file" >&6;} 2460 >$cache_file 2461fi 2462 2463# Check that the precious variables saved in the cache have kept the same 2464# value. 2465ac_cache_corrupted=false 2466for ac_var in $ac_precious_vars; do 2467 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2468 eval ac_new_set=\$ac_env_${ac_var}_set 2469 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2470 eval ac_new_val=\$ac_env_${ac_var}_value 2471 case $ac_old_set,$ac_new_set in 2472 set,) 2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2474$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2475 ac_cache_corrupted=: ;; 2476 ,set) 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2478$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2479 ac_cache_corrupted=: ;; 2480 ,);; 2481 *) 2482 if test "x$ac_old_val" != "x$ac_new_val"; then 2483 # differences in whitespace do not lead to failure. 2484 ac_old_val_w=`echo x $ac_old_val` 2485 ac_new_val_w=`echo x $ac_new_val` 2486 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2488$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2489 ac_cache_corrupted=: 2490 else 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2492$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2493 eval $ac_var=\$ac_old_val 2494 fi 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2496$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2498$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2499 fi;; 2500 esac 2501 # Pass precious variables to config.status. 2502 if test "$ac_new_set" = set; then 2503 case $ac_new_val in 2504 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2505 *) ac_arg=$ac_var=$ac_new_val ;; 2506 esac 2507 case " $ac_configure_args " in 2508 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2509 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2510 esac 2511 fi 2512done 2513if $ac_cache_corrupted; then 2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2517$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2518 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2519fi 2520## -------------------- ## 2521## Main body of script. ## 2522## -------------------- ## 2523 2524ac_ext=c 2525ac_cpp='$CPP $CPPFLAGS' 2526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2528ac_compiler_gnu=$ac_cv_c_compiler_gnu 2529 2530 2531ac_aux_dir= 2532for ac_dir in build-aux "$srcdir"/build-aux; do 2533 if test -f "$ac_dir/install-sh"; then 2534 ac_aux_dir=$ac_dir 2535 ac_install_sh="$ac_aux_dir/install-sh -c" 2536 break 2537 elif test -f "$ac_dir/install.sh"; then 2538 ac_aux_dir=$ac_dir 2539 ac_install_sh="$ac_aux_dir/install.sh -c" 2540 break 2541 elif test -f "$ac_dir/shtool"; then 2542 ac_aux_dir=$ac_dir 2543 ac_install_sh="$ac_aux_dir/shtool install -c" 2544 break 2545 fi 2546done 2547if test -z "$ac_aux_dir"; then 2548 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2549fi 2550 2551# These three variables are undocumented and unsupported, 2552# and are intended to be withdrawn in a future Autoconf release. 2553# They can cause serious problems if a builder's source tree is in a directory 2554# whose full name contains unusual characters. 2555ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2556ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2557ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2558 2559 2560 2561 2562ac_config_headers="$ac_config_headers src/config.h" 2563 2564 2565# Initialize Automake 2566am__api_version='1.14' 2567 2568# Find a good install program. We prefer a C program (faster), 2569# so one script is as good as another. But avoid the broken or 2570# incompatible versions: 2571# SysV /etc/install, /usr/sbin/install 2572# SunOS /usr/etc/install 2573# IRIX /sbin/install 2574# AIX /bin/install 2575# AmigaOS /C/install, which installs bootblocks on floppy discs 2576# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2577# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2578# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2579# OS/2's system install, which has a completely different semantic 2580# ./install, which can be erroneously created by make from ./install.sh. 2581# Reject install programs that cannot install multiple files. 2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2583$as_echo_n "checking for a BSD-compatible install... " >&6; } 2584if test -z "$INSTALL"; then 2585if ${ac_cv_path_install+:} false; then : 2586 $as_echo_n "(cached) " >&6 2587else 2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2589for as_dir in $PATH 2590do 2591 IFS=$as_save_IFS 2592 test -z "$as_dir" && as_dir=. 2593 # Account for people who put trailing slashes in PATH elements. 2594case $as_dir/ in #(( 2595 ./ | .// | /[cC]/* | \ 2596 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2597 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2598 /usr/ucb/* ) ;; 2599 *) 2600 # OSF1 and SCO ODT 3.0 have their own names for install. 2601 # Don't use installbsd from OSF since it installs stuff as root 2602 # by default. 2603 for ac_prog in ginstall scoinst install; do 2604 for ac_exec_ext in '' $ac_executable_extensions; do 2605 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2606 if test $ac_prog = install && 2607 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2608 # AIX install. It has an incompatible calling convention. 2609 : 2610 elif test $ac_prog = install && 2611 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2612 # program-specific install script used by HP pwplus--don't use. 2613 : 2614 else 2615 rm -rf conftest.one conftest.two conftest.dir 2616 echo one > conftest.one 2617 echo two > conftest.two 2618 mkdir conftest.dir 2619 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2620 test -s conftest.one && test -s conftest.two && 2621 test -s conftest.dir/conftest.one && 2622 test -s conftest.dir/conftest.two 2623 then 2624 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2625 break 3 2626 fi 2627 fi 2628 fi 2629 done 2630 done 2631 ;; 2632esac 2633 2634 done 2635IFS=$as_save_IFS 2636 2637rm -rf conftest.one conftest.two conftest.dir 2638 2639fi 2640 if test "${ac_cv_path_install+set}" = set; then 2641 INSTALL=$ac_cv_path_install 2642 else 2643 # As a last resort, use the slow shell script. Don't cache a 2644 # value for INSTALL within a source directory, because that will 2645 # break other packages using the cache if that directory is 2646 # removed, or if the value is a relative name. 2647 INSTALL=$ac_install_sh 2648 fi 2649fi 2650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2651$as_echo "$INSTALL" >&6; } 2652 2653# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2654# It thinks the first close brace ends the variable substitution. 2655test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2656 2657test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2658 2659test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2660 2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2662$as_echo_n "checking whether build environment is sane... " >&6; } 2663# Reject unsafe characters in $srcdir or the absolute working directory 2664# name. Accept space and tab only in the latter. 2665am_lf=' 2666' 2667case `pwd` in 2668 *[\\\"\#\$\&\'\`$am_lf]*) 2669 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2670esac 2671case $srcdir in 2672 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2673 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2674esac 2675 2676# Do 'set' in a subshell so we don't clobber the current shell's 2677# arguments. Must try -L first in case configure is actually a 2678# symlink; some systems play weird games with the mod time of symlinks 2679# (eg FreeBSD returns the mod time of the symlink's containing 2680# directory). 2681if ( 2682 am_has_slept=no 2683 for am_try in 1 2; do 2684 echo "timestamp, slept: $am_has_slept" > conftest.file 2685 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2686 if test "$*" = "X"; then 2687 # -L didn't work. 2688 set X `ls -t "$srcdir/configure" conftest.file` 2689 fi 2690 if test "$*" != "X $srcdir/configure conftest.file" \ 2691 && test "$*" != "X conftest.file $srcdir/configure"; then 2692 2693 # If neither matched, then we have a broken ls. This can happen 2694 # if, for instance, CONFIG_SHELL is bash and it inherits a 2695 # broken ls alias from the environment. This has actually 2696 # happened. Such a system could not be considered "sane". 2697 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2698 alias in your environment" "$LINENO" 5 2699 fi 2700 if test "$2" = conftest.file || test $am_try -eq 2; then 2701 break 2702 fi 2703 # Just in case. 2704 sleep 1 2705 am_has_slept=yes 2706 done 2707 test "$2" = conftest.file 2708 ) 2709then 2710 # Ok. 2711 : 2712else 2713 as_fn_error $? "newly created file is older than distributed files! 2714Check your system clock" "$LINENO" 5 2715fi 2716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2717$as_echo "yes" >&6; } 2718# If we didn't sleep, we still need to ensure time stamps of config.status and 2719# generated files are strictly newer. 2720am_sleep_pid= 2721if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2722 ( sleep 1 ) & 2723 am_sleep_pid=$! 2724fi 2725 2726rm -f conftest.file 2727 2728test "$program_prefix" != NONE && 2729 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2730# Use a double $ so make ignores it. 2731test "$program_suffix" != NONE && 2732 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2733# Double any \ or $. 2734# By default was `s,x,x', remove it if useless. 2735ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2736program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2737 2738# expand $ac_aux_dir to an absolute path 2739am_aux_dir=`cd $ac_aux_dir && pwd` 2740 2741if test x"${MISSING+set}" != xset; then 2742 case $am_aux_dir in 2743 *\ * | *\ *) 2744 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2745 *) 2746 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2747 esac 2748fi 2749# Use eval to expand $SHELL 2750if eval "$MISSING --is-lightweight"; then 2751 am_missing_run="$MISSING " 2752else 2753 am_missing_run= 2754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2755$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2756fi 2757 2758if test x"${install_sh}" != xset; then 2759 case $am_aux_dir in 2760 *\ * | *\ *) 2761 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2762 *) 2763 install_sh="\${SHELL} $am_aux_dir/install-sh" 2764 esac 2765fi 2766 2767# Installed binaries are usually stripped using 'strip' when the user 2768# run "make install-strip". However 'strip' might not be the right 2769# tool to use in cross-compilation environments, therefore Automake 2770# will honor the 'STRIP' environment variable to overrule this program. 2771if test "$cross_compiling" != no; then 2772 if test -n "$ac_tool_prefix"; then 2773 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2774set dummy ${ac_tool_prefix}strip; ac_word=$2 2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2776$as_echo_n "checking for $ac_word... " >&6; } 2777if ${ac_cv_prog_STRIP+:} false; then : 2778 $as_echo_n "(cached) " >&6 2779else 2780 if test -n "$STRIP"; then 2781 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2782else 2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2784for as_dir in $PATH 2785do 2786 IFS=$as_save_IFS 2787 test -z "$as_dir" && as_dir=. 2788 for ac_exec_ext in '' $ac_executable_extensions; do 2789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2790 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2792 break 2 2793 fi 2794done 2795 done 2796IFS=$as_save_IFS 2797 2798fi 2799fi 2800STRIP=$ac_cv_prog_STRIP 2801if test -n "$STRIP"; then 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2803$as_echo "$STRIP" >&6; } 2804else 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2806$as_echo "no" >&6; } 2807fi 2808 2809 2810fi 2811if test -z "$ac_cv_prog_STRIP"; then 2812 ac_ct_STRIP=$STRIP 2813 # Extract the first word of "strip", so it can be a program name with args. 2814set dummy strip; ac_word=$2 2815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2816$as_echo_n "checking for $ac_word... " >&6; } 2817if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2818 $as_echo_n "(cached) " >&6 2819else 2820 if test -n "$ac_ct_STRIP"; then 2821 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2822else 2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2824for as_dir in $PATH 2825do 2826 IFS=$as_save_IFS 2827 test -z "$as_dir" && as_dir=. 2828 for ac_exec_ext in '' $ac_executable_extensions; do 2829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2830 ac_cv_prog_ac_ct_STRIP="strip" 2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2832 break 2 2833 fi 2834done 2835 done 2836IFS=$as_save_IFS 2837 2838fi 2839fi 2840ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2841if test -n "$ac_ct_STRIP"; then 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2843$as_echo "$ac_ct_STRIP" >&6; } 2844else 2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2846$as_echo "no" >&6; } 2847fi 2848 2849 if test "x$ac_ct_STRIP" = x; then 2850 STRIP=":" 2851 else 2852 case $cross_compiling:$ac_tool_warned in 2853yes:) 2854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2856ac_tool_warned=yes ;; 2857esac 2858 STRIP=$ac_ct_STRIP 2859 fi 2860else 2861 STRIP="$ac_cv_prog_STRIP" 2862fi 2863 2864fi 2865INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2866 2867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2868$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2869if test -z "$MKDIR_P"; then 2870 if ${ac_cv_path_mkdir+:} false; then : 2871 $as_echo_n "(cached) " >&6 2872else 2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2874for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2875do 2876 IFS=$as_save_IFS 2877 test -z "$as_dir" && as_dir=. 2878 for ac_prog in mkdir gmkdir; do 2879 for ac_exec_ext in '' $ac_executable_extensions; do 2880 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2881 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2882 'mkdir (GNU coreutils) '* | \ 2883 'mkdir (coreutils) '* | \ 2884 'mkdir (fileutils) '4.1*) 2885 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2886 break 3;; 2887 esac 2888 done 2889 done 2890 done 2891IFS=$as_save_IFS 2892 2893fi 2894 2895 test -d ./--version && rmdir ./--version 2896 if test "${ac_cv_path_mkdir+set}" = set; then 2897 MKDIR_P="$ac_cv_path_mkdir -p" 2898 else 2899 # As a last resort, use the slow shell script. Don't cache a 2900 # value for MKDIR_P within a source directory, because that will 2901 # break other packages using the cache if that directory is 2902 # removed, or if the value is a relative name. 2903 MKDIR_P="$ac_install_sh -d" 2904 fi 2905fi 2906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2907$as_echo "$MKDIR_P" >&6; } 2908 2909for ac_prog in gawk mawk nawk awk 2910do 2911 # Extract the first word of "$ac_prog", so it can be a program name with args. 2912set dummy $ac_prog; ac_word=$2 2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2914$as_echo_n "checking for $ac_word... " >&6; } 2915if ${ac_cv_prog_AWK+:} false; then : 2916 $as_echo_n "(cached) " >&6 2917else 2918 if test -n "$AWK"; then 2919 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2920else 2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2922for as_dir in $PATH 2923do 2924 IFS=$as_save_IFS 2925 test -z "$as_dir" && as_dir=. 2926 for ac_exec_ext in '' $ac_executable_extensions; do 2927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2928 ac_cv_prog_AWK="$ac_prog" 2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2930 break 2 2931 fi 2932done 2933 done 2934IFS=$as_save_IFS 2935 2936fi 2937fi 2938AWK=$ac_cv_prog_AWK 2939if test -n "$AWK"; then 2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2941$as_echo "$AWK" >&6; } 2942else 2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2944$as_echo "no" >&6; } 2945fi 2946 2947 2948 test -n "$AWK" && break 2949done 2950 2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2952$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2953set x ${MAKE-make} 2954ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2955if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2956 $as_echo_n "(cached) " >&6 2957else 2958 cat >conftest.make <<\_ACEOF 2959SHELL = /bin/sh 2960all: 2961 @echo '@@@%%%=$(MAKE)=@@@%%%' 2962_ACEOF 2963# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2964case `${MAKE-make} -f conftest.make 2>/dev/null` in 2965 *@@@%%%=?*=@@@%%%*) 2966 eval ac_cv_prog_make_${ac_make}_set=yes;; 2967 *) 2968 eval ac_cv_prog_make_${ac_make}_set=no;; 2969esac 2970rm -f conftest.make 2971fi 2972if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2974$as_echo "yes" >&6; } 2975 SET_MAKE= 2976else 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2978$as_echo "no" >&6; } 2979 SET_MAKE="MAKE=${MAKE-make}" 2980fi 2981 2982rm -rf .tst 2>/dev/null 2983mkdir .tst 2>/dev/null 2984if test -d .tst; then 2985 am__leading_dot=. 2986else 2987 am__leading_dot=_ 2988fi 2989rmdir .tst 2>/dev/null 2990 2991# Check whether --enable-silent-rules was given. 2992if test "${enable_silent_rules+set}" = set; then : 2993 enableval=$enable_silent_rules; 2994fi 2995 2996case $enable_silent_rules in # ((( 2997 yes) AM_DEFAULT_VERBOSITY=0;; 2998 no) AM_DEFAULT_VERBOSITY=1;; 2999 *) AM_DEFAULT_VERBOSITY=1;; 3000esac 3001am_make=${MAKE-make} 3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3003$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3004if ${am_cv_make_support_nested_variables+:} false; then : 3005 $as_echo_n "(cached) " >&6 3006else 3007 if $as_echo 'TRUE=$(BAR$(V)) 3008BAR0=false 3009BAR1=true 3010V=1 3011am__doit: 3012 @$(TRUE) 3013.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3014 am_cv_make_support_nested_variables=yes 3015else 3016 am_cv_make_support_nested_variables=no 3017fi 3018fi 3019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3020$as_echo "$am_cv_make_support_nested_variables" >&6; } 3021if test $am_cv_make_support_nested_variables = yes; then 3022 AM_V='$(V)' 3023 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3024else 3025 AM_V=$AM_DEFAULT_VERBOSITY 3026 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3027fi 3028AM_BACKSLASH='\' 3029 3030if test "`cd $srcdir && pwd`" != "`pwd`"; then 3031 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3032 # is not polluted with repeated "-I." 3033 am__isrc=' -I$(srcdir)' 3034 # test to see if srcdir already configured 3035 if test -f $srcdir/config.status; then 3036 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3037 fi 3038fi 3039 3040# test whether we have cygpath 3041if test -z "$CYGPATH_W"; then 3042 if (cygpath --version) >/dev/null 2>/dev/null; then 3043 CYGPATH_W='cygpath -w' 3044 else 3045 CYGPATH_W=echo 3046 fi 3047fi 3048 3049 3050# Define the identity of the package. 3051 PACKAGE='libxcb' 3052 VERSION='1.11' 3053 3054 3055cat >>confdefs.h <<_ACEOF 3056#define PACKAGE "$PACKAGE" 3057_ACEOF 3058 3059 3060cat >>confdefs.h <<_ACEOF 3061#define VERSION "$VERSION" 3062_ACEOF 3063 3064# Some tools Automake needs. 3065 3066ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3067 3068 3069AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3070 3071 3072AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3073 3074 3075AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3076 3077 3078MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3079 3080# For better backward compatibility. To be removed once Automake 1.9.x 3081# dies out for good. For more background, see: 3082# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3083# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3084mkdir_p='$(MKDIR_P)' 3085 3086# We need awk for the "check" target. The system "awk" is bad on 3087# some platforms. 3088# Always define AMTAR for backward compatibility. Yes, it's still used 3089# in the wild :-( We should find a proper way to deprecate it ... 3090AMTAR='$${TAR-tar}' 3091 3092 3093# We'll loop over all known methods to create a tar archive until one works. 3094_am_tools='gnutar pax cpio none' 3095 3096am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3097 3098 3099 3100 3101 3102 3103# POSIX will say in a future version that running "rm -f" with no argument 3104# is OK; and we want to be able to make that assumption in our Makefile 3105# recipes. So use an aggressive probe to check that the usage we want is 3106# actually supported "in the wild" to an acceptable degree. 3107# See automake bug#10828. 3108# To make any issue more visible, cause the running configure to be aborted 3109# by default if the 'rm' program in use doesn't match our expectations; the 3110# user can still override this though. 3111if rm -f && rm -fr && rm -rf; then : OK; else 3112 cat >&2 <<'END' 3113Oops! 3114 3115Your 'rm' program seems unable to run without file operands specified 3116on the command line, even when the '-f' option is present. This is contrary 3117to the behaviour of most rm programs out there, and not conforming with 3118the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3119 3120Please tell bug-automake@gnu.org about your system, including the value 3121of your $PATH and any error possibly output before this message. This 3122can help us improve future automake versions. 3123 3124END 3125 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3126 echo 'Configuration will proceed anyway, since you have set the' >&2 3127 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3128 echo >&2 3129 else 3130 cat >&2 <<'END' 3131Aborting the configuration process, to ensure you take notice of the issue. 3132 3133You can download and install GNU coreutils to get an 'rm' implementation 3134that behaves properly: <http://www.gnu.org/software/coreutils/>. 3135 3136If you want to complete the configuration process using your problematic 3137'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3138to "yes", and re-run configure. 3139 3140END 3141 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3142 fi 3143fi 3144 3145 3146 3147 3148 3149 3150 3151 if test -n "$PYTHON"; then 3152 # If the user set $PYTHON, use it and don't search something else. 3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5 3154$as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; } 3155 prog="import sys 3156# split strings by '.' and convert to numeric. Append some zeros 3157# because we need at least 4 digits for the hex conversion. 3158# map returns an iterator in Python 3.0 and a list in 2.x 3159minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0] 3160minverhex = 0 3161# xrange is not present in Python 3.0 and range returns an iterator 3162for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 3163sys.exit(sys.hexversion < minverhex)" 3164 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 3165 ($PYTHON -c "$prog") >&5 2>&5 3166 ac_status=$? 3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3168 (exit $ac_status); }; then : 3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3170$as_echo "yes" >&6; } 3171else 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3173$as_echo "no" >&6; } 3174 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 3175fi 3176 am_display_PYTHON=$PYTHON 3177 else 3178 # Otherwise, try each interpreter until we find one that satisfies 3179 # VERSION. 3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5 3181$as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; } 3182if ${am_cv_pathless_PYTHON+:} false; then : 3183 $as_echo_n "(cached) " >&6 3184else 3185 3186 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do 3187 test "$am_cv_pathless_PYTHON" = none && break 3188 prog="import sys 3189# split strings by '.' and convert to numeric. Append some zeros 3190# because we need at least 4 digits for the hex conversion. 3191# map returns an iterator in Python 3.0 and a list in 2.x 3192minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0] 3193minverhex = 0 3194# xrange is not present in Python 3.0 and range returns an iterator 3195for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 3196sys.exit(sys.hexversion < minverhex)" 3197 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 3198 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 3199 ac_status=$? 3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3201 (exit $ac_status); }; then : 3202 break 3203fi 3204 done 3205fi 3206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 3207$as_echo "$am_cv_pathless_PYTHON" >&6; } 3208 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 3209 if test "$am_cv_pathless_PYTHON" = none; then 3210 PYTHON=: 3211 else 3212 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. 3213set dummy $am_cv_pathless_PYTHON; ac_word=$2 3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3215$as_echo_n "checking for $ac_word... " >&6; } 3216if ${ac_cv_path_PYTHON+:} false; then : 3217 $as_echo_n "(cached) " >&6 3218else 3219 case $PYTHON in 3220 [\\/]* | ?:[\\/]*) 3221 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 3222 ;; 3223 *) 3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3225for as_dir in $PATH 3226do 3227 IFS=$as_save_IFS 3228 test -z "$as_dir" && as_dir=. 3229 for ac_exec_ext in '' $ac_executable_extensions; do 3230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3231 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3233 break 2 3234 fi 3235done 3236 done 3237IFS=$as_save_IFS 3238 3239 ;; 3240esac 3241fi 3242PYTHON=$ac_cv_path_PYTHON 3243if test -n "$PYTHON"; then 3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 3245$as_echo "$PYTHON" >&6; } 3246else 3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3248$as_echo "no" >&6; } 3249fi 3250 3251 3252 fi 3253 am_display_PYTHON=$am_cv_pathless_PYTHON 3254 fi 3255 3256 3257 if test "$PYTHON" = :; then 3258 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5 3259 else 3260 3261 3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 3263$as_echo_n "checking for $am_display_PYTHON version... " >&6; } 3264if ${am_cv_python_version+:} false; then : 3265 $as_echo_n "(cached) " >&6 3266else 3267 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` 3268fi 3269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 3270$as_echo "$am_cv_python_version" >&6; } 3271 PYTHON_VERSION=$am_cv_python_version 3272 3273 3274 3275 PYTHON_PREFIX='${prefix}' 3276 3277 PYTHON_EXEC_PREFIX='${exec_prefix}' 3278 3279 3280 3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 3282$as_echo_n "checking for $am_display_PYTHON platform... " >&6; } 3283if ${am_cv_python_platform+:} false; then : 3284 $as_echo_n "(cached) " >&6 3285else 3286 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 3287fi 3288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 3289$as_echo "$am_cv_python_platform" >&6; } 3290 PYTHON_PLATFORM=$am_cv_python_platform 3291 3292 3293 # Just factor out some code duplication. 3294 am_python_setup_sysconfig="\ 3295import sys 3296# Prefer sysconfig over distutils.sysconfig, for better compatibility 3297# with python 3.x. See automake bug#10227. 3298try: 3299 import sysconfig 3300except ImportError: 3301 can_use_sysconfig = 0 3302else: 3303 can_use_sysconfig = 1 3304# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 3305# <https://github.com/pypa/virtualenv/issues/118> 3306try: 3307 from platform import python_implementation 3308 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 3309 can_use_sysconfig = 0 3310except ImportError: 3311 pass" 3312 3313 3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5 3315$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; } 3316if ${am_cv_python_pythondir+:} false; then : 3317 $as_echo_n "(cached) " >&6 3318else 3319 if test "x$prefix" = xNONE 3320 then 3321 am_py_prefix=$ac_default_prefix 3322 else 3323 am_py_prefix=$prefix 3324 fi 3325 am_cv_python_pythondir=`$PYTHON -c " 3326$am_python_setup_sysconfig 3327if can_use_sysconfig: 3328 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 3329else: 3330 from distutils import sysconfig 3331 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 3332sys.stdout.write(sitedir)"` 3333 case $am_cv_python_pythondir in 3334 $am_py_prefix*) 3335 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 3336 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` 3337 ;; 3338 *) 3339 case $am_py_prefix in 3340 /usr|/System*) ;; 3341 *) 3342 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages 3343 ;; 3344 esac 3345 ;; 3346 esac 3347 3348fi 3349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 3350$as_echo "$am_cv_python_pythondir" >&6; } 3351 pythondir=$am_cv_python_pythondir 3352 3353 3354 3355 pkgpythondir=\${pythondir}/$PACKAGE 3356 3357 3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5 3359$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; } 3360if ${am_cv_python_pyexecdir+:} false; then : 3361 $as_echo_n "(cached) " >&6 3362else 3363 if test "x$exec_prefix" = xNONE 3364 then 3365 am_py_exec_prefix=$am_py_prefix 3366 else 3367 am_py_exec_prefix=$exec_prefix 3368 fi 3369 am_cv_python_pyexecdir=`$PYTHON -c " 3370$am_python_setup_sysconfig 3371if can_use_sysconfig: 3372 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'}) 3373else: 3374 from distutils import sysconfig 3375 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') 3376sys.stdout.write(sitedir)"` 3377 case $am_cv_python_pyexecdir in 3378 $am_py_exec_prefix*) 3379 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 3380 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` 3381 ;; 3382 *) 3383 case $am_py_exec_prefix in 3384 /usr|/System*) ;; 3385 *) 3386 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages 3387 ;; 3388 esac 3389 ;; 3390 esac 3391 3392fi 3393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 3394$as_echo "$am_cv_python_pyexecdir" >&6; } 3395 pyexecdir=$am_cv_python_pyexecdir 3396 3397 3398 3399 pkgpyexecdir=\${pyexecdir}/$PACKAGE 3400 3401 3402 3403 fi 3404 3405 3406 3407# Set common system defines for POSIX extensions, such as _GNU_SOURCE 3408# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) 3409# to avoid autoconf errors. 3410DEPDIR="${am__leading_dot}deps" 3411 3412ac_config_commands="$ac_config_commands depfiles" 3413 3414 3415am_make=${MAKE-make} 3416cat > confinc << 'END' 3417am__doit: 3418 @echo this is the am__doit target 3419.PHONY: am__doit 3420END 3421# If we don't find an include directive, just comment out the code. 3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3423$as_echo_n "checking for style of include used by $am_make... " >&6; } 3424am__include="#" 3425am__quote= 3426_am_result=none 3427# First try GNU make style include. 3428echo "include confinc" > confmf 3429# Ignore all kinds of additional output from 'make'. 3430case `$am_make -s -f confmf 2> /dev/null` in #( 3431*the\ am__doit\ target*) 3432 am__include=include 3433 am__quote= 3434 _am_result=GNU 3435 ;; 3436esac 3437# Now try BSD make style include. 3438if test "$am__include" = "#"; then 3439 echo '.include "confinc"' > confmf 3440 case `$am_make -s -f confmf 2> /dev/null` in #( 3441 *the\ am__doit\ target*) 3442 am__include=.include 3443 am__quote="\"" 3444 _am_result=BSD 3445 ;; 3446 esac 3447fi 3448 3449 3450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3451$as_echo "$_am_result" >&6; } 3452rm -f confinc confmf 3453 3454# Check whether --enable-dependency-tracking was given. 3455if test "${enable_dependency_tracking+set}" = set; then : 3456 enableval=$enable_dependency_tracking; 3457fi 3458 3459if test "x$enable_dependency_tracking" != xno; then 3460 am_depcomp="$ac_aux_dir/depcomp" 3461 AMDEPBACKSLASH='\' 3462 am__nodep='_no' 3463fi 3464 if test "x$enable_dependency_tracking" != xno; then 3465 AMDEP_TRUE= 3466 AMDEP_FALSE='#' 3467else 3468 AMDEP_TRUE='#' 3469 AMDEP_FALSE= 3470fi 3471 3472 3473ac_ext=c 3474ac_cpp='$CPP $CPPFLAGS' 3475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3477ac_compiler_gnu=$ac_cv_c_compiler_gnu 3478if test -n "$ac_tool_prefix"; then 3479 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3480set dummy ${ac_tool_prefix}gcc; ac_word=$2 3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3482$as_echo_n "checking for $ac_word... " >&6; } 3483if ${ac_cv_prog_CC+:} false; then : 3484 $as_echo_n "(cached) " >&6 3485else 3486 if test -n "$CC"; then 3487 ac_cv_prog_CC="$CC" # Let the user override the test. 3488else 3489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3490for as_dir in $PATH 3491do 3492 IFS=$as_save_IFS 3493 test -z "$as_dir" && as_dir=. 3494 for ac_exec_ext in '' $ac_executable_extensions; do 3495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3496 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3498 break 2 3499 fi 3500done 3501 done 3502IFS=$as_save_IFS 3503 3504fi 3505fi 3506CC=$ac_cv_prog_CC 3507if test -n "$CC"; then 3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3509$as_echo "$CC" >&6; } 3510else 3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3512$as_echo "no" >&6; } 3513fi 3514 3515 3516fi 3517if test -z "$ac_cv_prog_CC"; then 3518 ac_ct_CC=$CC 3519 # Extract the first word of "gcc", so it can be a program name with args. 3520set dummy gcc; ac_word=$2 3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3522$as_echo_n "checking for $ac_word... " >&6; } 3523if ${ac_cv_prog_ac_ct_CC+:} false; then : 3524 $as_echo_n "(cached) " >&6 3525else 3526 if test -n "$ac_ct_CC"; then 3527 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3528else 3529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3530for as_dir in $PATH 3531do 3532 IFS=$as_save_IFS 3533 test -z "$as_dir" && as_dir=. 3534 for ac_exec_ext in '' $ac_executable_extensions; do 3535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3536 ac_cv_prog_ac_ct_CC="gcc" 3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3538 break 2 3539 fi 3540done 3541 done 3542IFS=$as_save_IFS 3543 3544fi 3545fi 3546ac_ct_CC=$ac_cv_prog_ac_ct_CC 3547if test -n "$ac_ct_CC"; then 3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3549$as_echo "$ac_ct_CC" >&6; } 3550else 3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3552$as_echo "no" >&6; } 3553fi 3554 3555 if test "x$ac_ct_CC" = x; then 3556 CC="" 3557 else 3558 case $cross_compiling:$ac_tool_warned in 3559yes:) 3560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3562ac_tool_warned=yes ;; 3563esac 3564 CC=$ac_ct_CC 3565 fi 3566else 3567 CC="$ac_cv_prog_CC" 3568fi 3569 3570if test -z "$CC"; then 3571 if test -n "$ac_tool_prefix"; then 3572 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3573set dummy ${ac_tool_prefix}cc; ac_word=$2 3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3575$as_echo_n "checking for $ac_word... " >&6; } 3576if ${ac_cv_prog_CC+:} false; then : 3577 $as_echo_n "(cached) " >&6 3578else 3579 if test -n "$CC"; then 3580 ac_cv_prog_CC="$CC" # Let the user override the test. 3581else 3582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3583for as_dir in $PATH 3584do 3585 IFS=$as_save_IFS 3586 test -z "$as_dir" && as_dir=. 3587 for ac_exec_ext in '' $ac_executable_extensions; do 3588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3589 ac_cv_prog_CC="${ac_tool_prefix}cc" 3590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3591 break 2 3592 fi 3593done 3594 done 3595IFS=$as_save_IFS 3596 3597fi 3598fi 3599CC=$ac_cv_prog_CC 3600if test -n "$CC"; then 3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3602$as_echo "$CC" >&6; } 3603else 3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3605$as_echo "no" >&6; } 3606fi 3607 3608 3609 fi 3610fi 3611if test -z "$CC"; then 3612 # Extract the first word of "cc", so it can be a program name with args. 3613set dummy cc; ac_word=$2 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3615$as_echo_n "checking for $ac_word... " >&6; } 3616if ${ac_cv_prog_CC+:} false; then : 3617 $as_echo_n "(cached) " >&6 3618else 3619 if test -n "$CC"; then 3620 ac_cv_prog_CC="$CC" # Let the user override the test. 3621else 3622 ac_prog_rejected=no 3623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3624for as_dir in $PATH 3625do 3626 IFS=$as_save_IFS 3627 test -z "$as_dir" && as_dir=. 3628 for ac_exec_ext in '' $ac_executable_extensions; do 3629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3630 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3631 ac_prog_rejected=yes 3632 continue 3633 fi 3634 ac_cv_prog_CC="cc" 3635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3636 break 2 3637 fi 3638done 3639 done 3640IFS=$as_save_IFS 3641 3642if test $ac_prog_rejected = yes; then 3643 # We found a bogon in the path, so make sure we never use it. 3644 set dummy $ac_cv_prog_CC 3645 shift 3646 if test $# != 0; then 3647 # We chose a different compiler from the bogus one. 3648 # However, it has the same basename, so the bogon will be chosen 3649 # first if we set CC to just the basename; use the full file name. 3650 shift 3651 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3652 fi 3653fi 3654fi 3655fi 3656CC=$ac_cv_prog_CC 3657if test -n "$CC"; then 3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3659$as_echo "$CC" >&6; } 3660else 3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3662$as_echo "no" >&6; } 3663fi 3664 3665 3666fi 3667if test -z "$CC"; then 3668 if test -n "$ac_tool_prefix"; then 3669 for ac_prog in cl.exe 3670 do 3671 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3672set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3674$as_echo_n "checking for $ac_word... " >&6; } 3675if ${ac_cv_prog_CC+:} false; then : 3676 $as_echo_n "(cached) " >&6 3677else 3678 if test -n "$CC"; then 3679 ac_cv_prog_CC="$CC" # Let the user override the test. 3680else 3681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3682for as_dir in $PATH 3683do 3684 IFS=$as_save_IFS 3685 test -z "$as_dir" && as_dir=. 3686 for ac_exec_ext in '' $ac_executable_extensions; do 3687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3688 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3690 break 2 3691 fi 3692done 3693 done 3694IFS=$as_save_IFS 3695 3696fi 3697fi 3698CC=$ac_cv_prog_CC 3699if test -n "$CC"; then 3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3701$as_echo "$CC" >&6; } 3702else 3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3704$as_echo "no" >&6; } 3705fi 3706 3707 3708 test -n "$CC" && break 3709 done 3710fi 3711if test -z "$CC"; then 3712 ac_ct_CC=$CC 3713 for ac_prog in cl.exe 3714do 3715 # Extract the first word of "$ac_prog", so it can be a program name with args. 3716set dummy $ac_prog; ac_word=$2 3717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3718$as_echo_n "checking for $ac_word... " >&6; } 3719if ${ac_cv_prog_ac_ct_CC+:} false; then : 3720 $as_echo_n "(cached) " >&6 3721else 3722 if test -n "$ac_ct_CC"; then 3723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3724else 3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3726for as_dir in $PATH 3727do 3728 IFS=$as_save_IFS 3729 test -z "$as_dir" && as_dir=. 3730 for ac_exec_ext in '' $ac_executable_extensions; do 3731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3732 ac_cv_prog_ac_ct_CC="$ac_prog" 3733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3734 break 2 3735 fi 3736done 3737 done 3738IFS=$as_save_IFS 3739 3740fi 3741fi 3742ac_ct_CC=$ac_cv_prog_ac_ct_CC 3743if test -n "$ac_ct_CC"; then 3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3745$as_echo "$ac_ct_CC" >&6; } 3746else 3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3748$as_echo "no" >&6; } 3749fi 3750 3751 3752 test -n "$ac_ct_CC" && break 3753done 3754 3755 if test "x$ac_ct_CC" = x; then 3756 CC="" 3757 else 3758 case $cross_compiling:$ac_tool_warned in 3759yes:) 3760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3762ac_tool_warned=yes ;; 3763esac 3764 CC=$ac_ct_CC 3765 fi 3766fi 3767 3768fi 3769 3770 3771test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3773as_fn_error $? "no acceptable C compiler found in \$PATH 3774See \`config.log' for more details" "$LINENO" 5; } 3775 3776# Provide some information about the compiler. 3777$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3778set X $ac_compile 3779ac_compiler=$2 3780for ac_option in --version -v -V -qversion; do 3781 { { ac_try="$ac_compiler $ac_option >&5" 3782case "(($ac_try" in 3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3784 *) ac_try_echo=$ac_try;; 3785esac 3786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3787$as_echo "$ac_try_echo"; } >&5 3788 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3789 ac_status=$? 3790 if test -s conftest.err; then 3791 sed '10a\ 3792... rest of stderr output deleted ... 3793 10q' conftest.err >conftest.er1 3794 cat conftest.er1 >&5 3795 fi 3796 rm -f conftest.er1 conftest.err 3797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3798 test $ac_status = 0; } 3799done 3800 3801cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3802/* end confdefs.h. */ 3803 3804int 3805main () 3806{ 3807 3808 ; 3809 return 0; 3810} 3811_ACEOF 3812ac_clean_files_save=$ac_clean_files 3813ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3814# Try to create an executable without -o first, disregard a.out. 3815# It will help us diagnose broken compilers, and finding out an intuition 3816# of exeext. 3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3818$as_echo_n "checking whether the C compiler works... " >&6; } 3819ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3820 3821# The possible output files: 3822ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3823 3824ac_rmfiles= 3825for ac_file in $ac_files 3826do 3827 case $ac_file in 3828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3829 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3830 esac 3831done 3832rm -f $ac_rmfiles 3833 3834if { { ac_try="$ac_link_default" 3835case "(($ac_try" in 3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3837 *) ac_try_echo=$ac_try;; 3838esac 3839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3840$as_echo "$ac_try_echo"; } >&5 3841 (eval "$ac_link_default") 2>&5 3842 ac_status=$? 3843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3844 test $ac_status = 0; }; then : 3845 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3846# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3847# in a Makefile. We should not override ac_cv_exeext if it was cached, 3848# so that the user can short-circuit this test for compilers unknown to 3849# Autoconf. 3850for ac_file in $ac_files '' 3851do 3852 test -f "$ac_file" || continue 3853 case $ac_file in 3854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3855 ;; 3856 [ab].out ) 3857 # We found the default executable, but exeext='' is most 3858 # certainly right. 3859 break;; 3860 *.* ) 3861 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3862 then :; else 3863 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3864 fi 3865 # We set ac_cv_exeext here because the later test for it is not 3866 # safe: cross compilers may not add the suffix if given an `-o' 3867 # argument, so we may need to know it at that point already. 3868 # Even if this section looks crufty: it has the advantage of 3869 # actually working. 3870 break;; 3871 * ) 3872 break;; 3873 esac 3874done 3875test "$ac_cv_exeext" = no && ac_cv_exeext= 3876 3877else 3878 ac_file='' 3879fi 3880if test -z "$ac_file"; then : 3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3882$as_echo "no" >&6; } 3883$as_echo "$as_me: failed program was:" >&5 3884sed 's/^/| /' conftest.$ac_ext >&5 3885 3886{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3888as_fn_error 77 "C compiler cannot create executables 3889See \`config.log' for more details" "$LINENO" 5; } 3890else 3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3892$as_echo "yes" >&6; } 3893fi 3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3895$as_echo_n "checking for C compiler default output file name... " >&6; } 3896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3897$as_echo "$ac_file" >&6; } 3898ac_exeext=$ac_cv_exeext 3899 3900rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3901ac_clean_files=$ac_clean_files_save 3902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3903$as_echo_n "checking for suffix of executables... " >&6; } 3904if { { ac_try="$ac_link" 3905case "(($ac_try" in 3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3907 *) ac_try_echo=$ac_try;; 3908esac 3909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3910$as_echo "$ac_try_echo"; } >&5 3911 (eval "$ac_link") 2>&5 3912 ac_status=$? 3913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3914 test $ac_status = 0; }; then : 3915 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3916# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3917# work properly (i.e., refer to `conftest.exe'), while it won't with 3918# `rm'. 3919for ac_file in conftest.exe conftest conftest.*; do 3920 test -f "$ac_file" || continue 3921 case $ac_file in 3922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3923 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3924 break;; 3925 * ) break;; 3926 esac 3927done 3928else 3929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3931as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3932See \`config.log' for more details" "$LINENO" 5; } 3933fi 3934rm -f conftest conftest$ac_cv_exeext 3935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3936$as_echo "$ac_cv_exeext" >&6; } 3937 3938rm -f conftest.$ac_ext 3939EXEEXT=$ac_cv_exeext 3940ac_exeext=$EXEEXT 3941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3942/* end confdefs.h. */ 3943#include <stdio.h> 3944int 3945main () 3946{ 3947FILE *f = fopen ("conftest.out", "w"); 3948 return ferror (f) || fclose (f) != 0; 3949 3950 ; 3951 return 0; 3952} 3953_ACEOF 3954ac_clean_files="$ac_clean_files conftest.out" 3955# Check that the compiler produces executables we can run. If not, either 3956# the compiler is broken, or we cross compile. 3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3958$as_echo_n "checking whether we are cross compiling... " >&6; } 3959if test "$cross_compiling" != yes; then 3960 { { ac_try="$ac_link" 3961case "(($ac_try" in 3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3963 *) ac_try_echo=$ac_try;; 3964esac 3965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3966$as_echo "$ac_try_echo"; } >&5 3967 (eval "$ac_link") 2>&5 3968 ac_status=$? 3969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3970 test $ac_status = 0; } 3971 if { ac_try='./conftest$ac_cv_exeext' 3972 { { case "(($ac_try" in 3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3974 *) ac_try_echo=$ac_try;; 3975esac 3976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3977$as_echo "$ac_try_echo"; } >&5 3978 (eval "$ac_try") 2>&5 3979 ac_status=$? 3980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3981 test $ac_status = 0; }; }; then 3982 cross_compiling=no 3983 else 3984 if test "$cross_compiling" = maybe; then 3985 cross_compiling=yes 3986 else 3987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3989as_fn_error $? "cannot run C compiled programs. 3990If you meant to cross compile, use \`--host'. 3991See \`config.log' for more details" "$LINENO" 5; } 3992 fi 3993 fi 3994fi 3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3996$as_echo "$cross_compiling" >&6; } 3997 3998rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3999ac_clean_files=$ac_clean_files_save 4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4001$as_echo_n "checking for suffix of object files... " >&6; } 4002if ${ac_cv_objext+:} false; then : 4003 $as_echo_n "(cached) " >&6 4004else 4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4006/* end confdefs.h. */ 4007 4008int 4009main () 4010{ 4011 4012 ; 4013 return 0; 4014} 4015_ACEOF 4016rm -f conftest.o conftest.obj 4017if { { ac_try="$ac_compile" 4018case "(($ac_try" in 4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4020 *) ac_try_echo=$ac_try;; 4021esac 4022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4023$as_echo "$ac_try_echo"; } >&5 4024 (eval "$ac_compile") 2>&5 4025 ac_status=$? 4026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4027 test $ac_status = 0; }; then : 4028 for ac_file in conftest.o conftest.obj conftest.*; do 4029 test -f "$ac_file" || continue; 4030 case $ac_file in 4031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4032 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4033 break;; 4034 esac 4035done 4036else 4037 $as_echo "$as_me: failed program was:" >&5 4038sed 's/^/| /' conftest.$ac_ext >&5 4039 4040{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4042as_fn_error $? "cannot compute suffix of object files: cannot compile 4043See \`config.log' for more details" "$LINENO" 5; } 4044fi 4045rm -f conftest.$ac_cv_objext conftest.$ac_ext 4046fi 4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4048$as_echo "$ac_cv_objext" >&6; } 4049OBJEXT=$ac_cv_objext 4050ac_objext=$OBJEXT 4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4052$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4053if ${ac_cv_c_compiler_gnu+:} false; then : 4054 $as_echo_n "(cached) " >&6 4055else 4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4057/* end confdefs.h. */ 4058 4059int 4060main () 4061{ 4062#ifndef __GNUC__ 4063 choke me 4064#endif 4065 4066 ; 4067 return 0; 4068} 4069_ACEOF 4070if ac_fn_c_try_compile "$LINENO"; then : 4071 ac_compiler_gnu=yes 4072else 4073 ac_compiler_gnu=no 4074fi 4075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4076ac_cv_c_compiler_gnu=$ac_compiler_gnu 4077 4078fi 4079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4080$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4081if test $ac_compiler_gnu = yes; then 4082 GCC=yes 4083else 4084 GCC= 4085fi 4086ac_test_CFLAGS=${CFLAGS+set} 4087ac_save_CFLAGS=$CFLAGS 4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4089$as_echo_n "checking whether $CC accepts -g... " >&6; } 4090if ${ac_cv_prog_cc_g+:} false; then : 4091 $as_echo_n "(cached) " >&6 4092else 4093 ac_save_c_werror_flag=$ac_c_werror_flag 4094 ac_c_werror_flag=yes 4095 ac_cv_prog_cc_g=no 4096 CFLAGS="-g" 4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4098/* end confdefs.h. */ 4099 4100int 4101main () 4102{ 4103 4104 ; 4105 return 0; 4106} 4107_ACEOF 4108if ac_fn_c_try_compile "$LINENO"; then : 4109 ac_cv_prog_cc_g=yes 4110else 4111 CFLAGS="" 4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4113/* end confdefs.h. */ 4114 4115int 4116main () 4117{ 4118 4119 ; 4120 return 0; 4121} 4122_ACEOF 4123if ac_fn_c_try_compile "$LINENO"; then : 4124 4125else 4126 ac_c_werror_flag=$ac_save_c_werror_flag 4127 CFLAGS="-g" 4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4129/* end confdefs.h. */ 4130 4131int 4132main () 4133{ 4134 4135 ; 4136 return 0; 4137} 4138_ACEOF 4139if ac_fn_c_try_compile "$LINENO"; then : 4140 ac_cv_prog_cc_g=yes 4141fi 4142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4143fi 4144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4145fi 4146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4147 ac_c_werror_flag=$ac_save_c_werror_flag 4148fi 4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4150$as_echo "$ac_cv_prog_cc_g" >&6; } 4151if test "$ac_test_CFLAGS" = set; then 4152 CFLAGS=$ac_save_CFLAGS 4153elif test $ac_cv_prog_cc_g = yes; then 4154 if test "$GCC" = yes; then 4155 CFLAGS="-g -O2" 4156 else 4157 CFLAGS="-g" 4158 fi 4159else 4160 if test "$GCC" = yes; then 4161 CFLAGS="-O2" 4162 else 4163 CFLAGS= 4164 fi 4165fi 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4167$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4168if ${ac_cv_prog_cc_c89+:} false; then : 4169 $as_echo_n "(cached) " >&6 4170else 4171 ac_cv_prog_cc_c89=no 4172ac_save_CC=$CC 4173cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4174/* end confdefs.h. */ 4175#include <stdarg.h> 4176#include <stdio.h> 4177struct stat; 4178/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4179struct buf { int x; }; 4180FILE * (*rcsopen) (struct buf *, struct stat *, int); 4181static char *e (p, i) 4182 char **p; 4183 int i; 4184{ 4185 return p[i]; 4186} 4187static char *f (char * (*g) (char **, int), char **p, ...) 4188{ 4189 char *s; 4190 va_list v; 4191 va_start (v,p); 4192 s = g (p, va_arg (v,int)); 4193 va_end (v); 4194 return s; 4195} 4196 4197/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4198 function prototypes and stuff, but not '\xHH' hex character constants. 4199 These don't provoke an error unfortunately, instead are silently treated 4200 as 'x'. The following induces an error, until -std is added to get 4201 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4202 array size at least. It's necessary to write '\x00'==0 to get something 4203 that's true only with -std. */ 4204int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4205 4206/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4207 inside strings and character constants. */ 4208#define FOO(x) 'x' 4209int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4210 4211int test (int i, double x); 4212struct s1 {int (*f) (int a);}; 4213struct s2 {int (*f) (double a);}; 4214int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4215int argc; 4216char **argv; 4217int 4218main () 4219{ 4220return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4221 ; 4222 return 0; 4223} 4224_ACEOF 4225for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4227do 4228 CC="$ac_save_CC $ac_arg" 4229 if ac_fn_c_try_compile "$LINENO"; then : 4230 ac_cv_prog_cc_c89=$ac_arg 4231fi 4232rm -f core conftest.err conftest.$ac_objext 4233 test "x$ac_cv_prog_cc_c89" != "xno" && break 4234done 4235rm -f conftest.$ac_ext 4236CC=$ac_save_CC 4237 4238fi 4239# AC_CACHE_VAL 4240case "x$ac_cv_prog_cc_c89" in 4241 x) 4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4243$as_echo "none needed" >&6; } ;; 4244 xno) 4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4246$as_echo "unsupported" >&6; } ;; 4247 *) 4248 CC="$CC $ac_cv_prog_cc_c89" 4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4250$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4251esac 4252if test "x$ac_cv_prog_cc_c89" != xno; then : 4253 4254fi 4255 4256ac_ext=c 4257ac_cpp='$CPP $CPPFLAGS' 4258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4260ac_compiler_gnu=$ac_cv_c_compiler_gnu 4261 4262ac_ext=c 4263ac_cpp='$CPP $CPPFLAGS' 4264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4266ac_compiler_gnu=$ac_cv_c_compiler_gnu 4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4268$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4269if ${am_cv_prog_cc_c_o+:} false; then : 4270 $as_echo_n "(cached) " >&6 4271else 4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4273/* end confdefs.h. */ 4274 4275int 4276main () 4277{ 4278 4279 ; 4280 return 0; 4281} 4282_ACEOF 4283 # Make sure it works both with $CC and with simple cc. 4284 # Following AC_PROG_CC_C_O, we do the test twice because some 4285 # compilers refuse to overwrite an existing .o file with -o, 4286 # though they will create one. 4287 am_cv_prog_cc_c_o=yes 4288 for am_i in 1 2; do 4289 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4290 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4291 ac_status=$? 4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4293 (exit $ac_status); } \ 4294 && test -f conftest2.$ac_objext; then 4295 : OK 4296 else 4297 am_cv_prog_cc_c_o=no 4298 break 4299 fi 4300 done 4301 rm -f core conftest* 4302 unset am_i 4303fi 4304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4305$as_echo "$am_cv_prog_cc_c_o" >&6; } 4306if test "$am_cv_prog_cc_c_o" != yes; then 4307 # Losing compiler, so override with the script. 4308 # FIXME: It is wrong to rewrite CC. 4309 # But if we don't then we get into trouble of one sort or another. 4310 # A longer-term fix would be to have automake use am__CC in this case, 4311 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4312 CC="$am_aux_dir/compile $CC" 4313fi 4314ac_ext=c 4315ac_cpp='$CPP $CPPFLAGS' 4316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4318ac_compiler_gnu=$ac_cv_c_compiler_gnu 4319 4320 4321depcc="$CC" am_compiler_list= 4322 4323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4324$as_echo_n "checking dependency style of $depcc... " >&6; } 4325if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4326 $as_echo_n "(cached) " >&6 4327else 4328 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4329 # We make a subdir and do the tests there. Otherwise we can end up 4330 # making bogus files that we don't know about and never remove. For 4331 # instance it was reported that on HP-UX the gcc test will end up 4332 # making a dummy file named 'D' -- because '-MD' means "put the output 4333 # in D". 4334 rm -rf conftest.dir 4335 mkdir conftest.dir 4336 # Copy depcomp to subdir because otherwise we won't find it if we're 4337 # using a relative directory. 4338 cp "$am_depcomp" conftest.dir 4339 cd conftest.dir 4340 # We will build objects and dependencies in a subdirectory because 4341 # it helps to detect inapplicable dependency modes. For instance 4342 # both Tru64's cc and ICC support -MD to output dependencies as a 4343 # side effect of compilation, but ICC will put the dependencies in 4344 # the current directory while Tru64 will put them in the object 4345 # directory. 4346 mkdir sub 4347 4348 am_cv_CC_dependencies_compiler_type=none 4349 if test "$am_compiler_list" = ""; then 4350 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4351 fi 4352 am__universal=false 4353 case " $depcc " in #( 4354 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4355 esac 4356 4357 for depmode in $am_compiler_list; do 4358 # Setup a source with many dependencies, because some compilers 4359 # like to wrap large dependency lists on column 80 (with \), and 4360 # we should not choose a depcomp mode which is confused by this. 4361 # 4362 # We need to recreate these files for each test, as the compiler may 4363 # overwrite some of them when testing with obscure command lines. 4364 # This happens at least with the AIX C compiler. 4365 : > sub/conftest.c 4366 for i in 1 2 3 4 5 6; do 4367 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4368 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4369 # Solaris 10 /bin/sh. 4370 echo '/* dummy */' > sub/conftst$i.h 4371 done 4372 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4373 4374 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4375 # mode. It turns out that the SunPro C++ compiler does not properly 4376 # handle '-M -o', and we need to detect this. Also, some Intel 4377 # versions had trouble with output in subdirs. 4378 am__obj=sub/conftest.${OBJEXT-o} 4379 am__minus_obj="-o $am__obj" 4380 case $depmode in 4381 gcc) 4382 # This depmode causes a compiler race in universal mode. 4383 test "$am__universal" = false || continue 4384 ;; 4385 nosideeffect) 4386 # After this tag, mechanisms are not by side-effect, so they'll 4387 # only be used when explicitly requested. 4388 if test "x$enable_dependency_tracking" = xyes; then 4389 continue 4390 else 4391 break 4392 fi 4393 ;; 4394 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4395 # This compiler won't grok '-c -o', but also, the minuso test has 4396 # not run yet. These depmodes are late enough in the game, and 4397 # so weak that their functioning should not be impacted. 4398 am__obj=conftest.${OBJEXT-o} 4399 am__minus_obj= 4400 ;; 4401 none) break ;; 4402 esac 4403 if depmode=$depmode \ 4404 source=sub/conftest.c object=$am__obj \ 4405 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4406 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4407 >/dev/null 2>conftest.err && 4408 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4409 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4410 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4411 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4412 # icc doesn't choke on unknown options, it will just issue warnings 4413 # or remarks (even with -Werror). So we grep stderr for any message 4414 # that says an option was ignored or not supported. 4415 # When given -MP, icc 7.0 and 7.1 complain thusly: 4416 # icc: Command line warning: ignoring option '-M'; no argument required 4417 # The diagnosis changed in icc 8.0: 4418 # icc: Command line remark: option '-MP' not supported 4419 if (grep 'ignoring option' conftest.err || 4420 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4421 am_cv_CC_dependencies_compiler_type=$depmode 4422 break 4423 fi 4424 fi 4425 done 4426 4427 cd .. 4428 rm -rf conftest.dir 4429else 4430 am_cv_CC_dependencies_compiler_type=none 4431fi 4432 4433fi 4434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4435$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4436CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4437 4438 if 4439 test "x$enable_dependency_tracking" != xno \ 4440 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4441 am__fastdepCC_TRUE= 4442 am__fastdepCC_FALSE='#' 4443else 4444 am__fastdepCC_TRUE='#' 4445 am__fastdepCC_FALSE= 4446fi 4447 4448 4449 4450ac_ext=c 4451ac_cpp='$CPP $CPPFLAGS' 4452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4454ac_compiler_gnu=$ac_cv_c_compiler_gnu 4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4456$as_echo_n "checking how to run the C preprocessor... " >&6; } 4457# On Suns, sometimes $CPP names a directory. 4458if test -n "$CPP" && test -d "$CPP"; then 4459 CPP= 4460fi 4461if test -z "$CPP"; then 4462 if ${ac_cv_prog_CPP+:} false; then : 4463 $as_echo_n "(cached) " >&6 4464else 4465 # Double quotes because CPP needs to be expanded 4466 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4467 do 4468 ac_preproc_ok=false 4469for ac_c_preproc_warn_flag in '' yes 4470do 4471 # Use a header file that comes with gcc, so configuring glibc 4472 # with a fresh cross-compiler works. 4473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4474 # <limits.h> exists even on freestanding compilers. 4475 # On the NeXT, cc -E runs the code through the compiler's parser, 4476 # not just through cpp. "Syntax error" is here to catch this case. 4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4478/* end confdefs.h. */ 4479#ifdef __STDC__ 4480# include <limits.h> 4481#else 4482# include <assert.h> 4483#endif 4484 Syntax error 4485_ACEOF 4486if ac_fn_c_try_cpp "$LINENO"; then : 4487 4488else 4489 # Broken: fails on valid input. 4490continue 4491fi 4492rm -f conftest.err conftest.i conftest.$ac_ext 4493 4494 # OK, works on sane cases. Now check whether nonexistent headers 4495 # can be detected and how. 4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4497/* end confdefs.h. */ 4498#include <ac_nonexistent.h> 4499_ACEOF 4500if ac_fn_c_try_cpp "$LINENO"; then : 4501 # Broken: success on invalid input. 4502continue 4503else 4504 # Passes both tests. 4505ac_preproc_ok=: 4506break 4507fi 4508rm -f conftest.err conftest.i conftest.$ac_ext 4509 4510done 4511# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4512rm -f conftest.i conftest.err conftest.$ac_ext 4513if $ac_preproc_ok; then : 4514 break 4515fi 4516 4517 done 4518 ac_cv_prog_CPP=$CPP 4519 4520fi 4521 CPP=$ac_cv_prog_CPP 4522else 4523 ac_cv_prog_CPP=$CPP 4524fi 4525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4526$as_echo "$CPP" >&6; } 4527ac_preproc_ok=false 4528for ac_c_preproc_warn_flag in '' yes 4529do 4530 # Use a header file that comes with gcc, so configuring glibc 4531 # with a fresh cross-compiler works. 4532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4533 # <limits.h> exists even on freestanding compilers. 4534 # On the NeXT, cc -E runs the code through the compiler's parser, 4535 # not just through cpp. "Syntax error" is here to catch this case. 4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4537/* end confdefs.h. */ 4538#ifdef __STDC__ 4539# include <limits.h> 4540#else 4541# include <assert.h> 4542#endif 4543 Syntax error 4544_ACEOF 4545if ac_fn_c_try_cpp "$LINENO"; then : 4546 4547else 4548 # Broken: fails on valid input. 4549continue 4550fi 4551rm -f conftest.err conftest.i conftest.$ac_ext 4552 4553 # OK, works on sane cases. Now check whether nonexistent headers 4554 # can be detected and how. 4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4556/* end confdefs.h. */ 4557#include <ac_nonexistent.h> 4558_ACEOF 4559if ac_fn_c_try_cpp "$LINENO"; then : 4560 # Broken: success on invalid input. 4561continue 4562else 4563 # Passes both tests. 4564ac_preproc_ok=: 4565break 4566fi 4567rm -f conftest.err conftest.i conftest.$ac_ext 4568 4569done 4570# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4571rm -f conftest.i conftest.err conftest.$ac_ext 4572if $ac_preproc_ok; then : 4573 4574else 4575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4577as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4578See \`config.log' for more details" "$LINENO" 5; } 4579fi 4580 4581ac_ext=c 4582ac_cpp='$CPP $CPPFLAGS' 4583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4585ac_compiler_gnu=$ac_cv_c_compiler_gnu 4586 4587 4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4589$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4590if ${ac_cv_path_GREP+:} false; then : 4591 $as_echo_n "(cached) " >&6 4592else 4593 if test -z "$GREP"; then 4594 ac_path_GREP_found=false 4595 # Loop through the user's path and test for each of PROGNAME-LIST 4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4597for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4598do 4599 IFS=$as_save_IFS 4600 test -z "$as_dir" && as_dir=. 4601 for ac_prog in grep ggrep; do 4602 for ac_exec_ext in '' $ac_executable_extensions; do 4603 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4604 as_fn_executable_p "$ac_path_GREP" || continue 4605# Check for GNU ac_path_GREP and select it if it is found. 4606 # Check for GNU $ac_path_GREP 4607case `"$ac_path_GREP" --version 2>&1` in 4608*GNU*) 4609 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4610*) 4611 ac_count=0 4612 $as_echo_n 0123456789 >"conftest.in" 4613 while : 4614 do 4615 cat "conftest.in" "conftest.in" >"conftest.tmp" 4616 mv "conftest.tmp" "conftest.in" 4617 cp "conftest.in" "conftest.nl" 4618 $as_echo 'GREP' >> "conftest.nl" 4619 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4620 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4621 as_fn_arith $ac_count + 1 && ac_count=$as_val 4622 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4623 # Best one so far, save it but keep looking for a better one 4624 ac_cv_path_GREP="$ac_path_GREP" 4625 ac_path_GREP_max=$ac_count 4626 fi 4627 # 10*(2^10) chars as input seems more than enough 4628 test $ac_count -gt 10 && break 4629 done 4630 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4631esac 4632 4633 $ac_path_GREP_found && break 3 4634 done 4635 done 4636 done 4637IFS=$as_save_IFS 4638 if test -z "$ac_cv_path_GREP"; then 4639 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4640 fi 4641else 4642 ac_cv_path_GREP=$GREP 4643fi 4644 4645fi 4646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4647$as_echo "$ac_cv_path_GREP" >&6; } 4648 GREP="$ac_cv_path_GREP" 4649 4650 4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4652$as_echo_n "checking for egrep... " >&6; } 4653if ${ac_cv_path_EGREP+:} false; then : 4654 $as_echo_n "(cached) " >&6 4655else 4656 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4657 then ac_cv_path_EGREP="$GREP -E" 4658 else 4659 if test -z "$EGREP"; then 4660 ac_path_EGREP_found=false 4661 # Loop through the user's path and test for each of PROGNAME-LIST 4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4663for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4664do 4665 IFS=$as_save_IFS 4666 test -z "$as_dir" && as_dir=. 4667 for ac_prog in egrep; do 4668 for ac_exec_ext in '' $ac_executable_extensions; do 4669 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4670 as_fn_executable_p "$ac_path_EGREP" || continue 4671# Check for GNU ac_path_EGREP and select it if it is found. 4672 # Check for GNU $ac_path_EGREP 4673case `"$ac_path_EGREP" --version 2>&1` in 4674*GNU*) 4675 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4676*) 4677 ac_count=0 4678 $as_echo_n 0123456789 >"conftest.in" 4679 while : 4680 do 4681 cat "conftest.in" "conftest.in" >"conftest.tmp" 4682 mv "conftest.tmp" "conftest.in" 4683 cp "conftest.in" "conftest.nl" 4684 $as_echo 'EGREP' >> "conftest.nl" 4685 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4686 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4687 as_fn_arith $ac_count + 1 && ac_count=$as_val 4688 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4689 # Best one so far, save it but keep looking for a better one 4690 ac_cv_path_EGREP="$ac_path_EGREP" 4691 ac_path_EGREP_max=$ac_count 4692 fi 4693 # 10*(2^10) chars as input seems more than enough 4694 test $ac_count -gt 10 && break 4695 done 4696 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4697esac 4698 4699 $ac_path_EGREP_found && break 3 4700 done 4701 done 4702 done 4703IFS=$as_save_IFS 4704 if test -z "$ac_cv_path_EGREP"; then 4705 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4706 fi 4707else 4708 ac_cv_path_EGREP=$EGREP 4709fi 4710 4711 fi 4712fi 4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4714$as_echo "$ac_cv_path_EGREP" >&6; } 4715 EGREP="$ac_cv_path_EGREP" 4716 4717 4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4719$as_echo_n "checking for ANSI C header files... " >&6; } 4720if ${ac_cv_header_stdc+:} false; then : 4721 $as_echo_n "(cached) " >&6 4722else 4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4724/* end confdefs.h. */ 4725#include <stdlib.h> 4726#include <stdarg.h> 4727#include <string.h> 4728#include <float.h> 4729 4730int 4731main () 4732{ 4733 4734 ; 4735 return 0; 4736} 4737_ACEOF 4738if ac_fn_c_try_compile "$LINENO"; then : 4739 ac_cv_header_stdc=yes 4740else 4741 ac_cv_header_stdc=no 4742fi 4743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4744 4745if test $ac_cv_header_stdc = yes; then 4746 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4748/* end confdefs.h. */ 4749#include <string.h> 4750 4751_ACEOF 4752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4753 $EGREP "memchr" >/dev/null 2>&1; then : 4754 4755else 4756 ac_cv_header_stdc=no 4757fi 4758rm -f conftest* 4759 4760fi 4761 4762if test $ac_cv_header_stdc = yes; then 4763 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4765/* end confdefs.h. */ 4766#include <stdlib.h> 4767 4768_ACEOF 4769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4770 $EGREP "free" >/dev/null 2>&1; then : 4771 4772else 4773 ac_cv_header_stdc=no 4774fi 4775rm -f conftest* 4776 4777fi 4778 4779if test $ac_cv_header_stdc = yes; then 4780 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4781 if test "$cross_compiling" = yes; then : 4782 : 4783else 4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4785/* end confdefs.h. */ 4786#include <ctype.h> 4787#include <stdlib.h> 4788#if ((' ' & 0x0FF) == 0x020) 4789# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4790# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4791#else 4792# define ISLOWER(c) \ 4793 (('a' <= (c) && (c) <= 'i') \ 4794 || ('j' <= (c) && (c) <= 'r') \ 4795 || ('s' <= (c) && (c) <= 'z')) 4796# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4797#endif 4798 4799#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4800int 4801main () 4802{ 4803 int i; 4804 for (i = 0; i < 256; i++) 4805 if (XOR (islower (i), ISLOWER (i)) 4806 || toupper (i) != TOUPPER (i)) 4807 return 2; 4808 return 0; 4809} 4810_ACEOF 4811if ac_fn_c_try_run "$LINENO"; then : 4812 4813else 4814 ac_cv_header_stdc=no 4815fi 4816rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4817 conftest.$ac_objext conftest.beam conftest.$ac_ext 4818fi 4819 4820fi 4821fi 4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4823$as_echo "$ac_cv_header_stdc" >&6; } 4824if test $ac_cv_header_stdc = yes; then 4825 4826$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4827 4828fi 4829 4830# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4831for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4832 inttypes.h stdint.h unistd.h 4833do : 4834 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4835ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4836" 4837if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4838 cat >>confdefs.h <<_ACEOF 4839#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4840_ACEOF 4841 4842fi 4843 4844done 4845 4846 4847 4848 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4849if test "x$ac_cv_header_minix_config_h" = xyes; then : 4850 MINIX=yes 4851else 4852 MINIX= 4853fi 4854 4855 4856 if test "$MINIX" = yes; then 4857 4858$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4859 4860 4861$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4862 4863 4864$as_echo "#define _MINIX 1" >>confdefs.h 4865 4866 fi 4867 4868 4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4870$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4871if ${ac_cv_safe_to_define___extensions__+:} false; then : 4872 $as_echo_n "(cached) " >&6 4873else 4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4875/* end confdefs.h. */ 4876 4877# define __EXTENSIONS__ 1 4878 $ac_includes_default 4879int 4880main () 4881{ 4882 4883 ; 4884 return 0; 4885} 4886_ACEOF 4887if ac_fn_c_try_compile "$LINENO"; then : 4888 ac_cv_safe_to_define___extensions__=yes 4889else 4890 ac_cv_safe_to_define___extensions__=no 4891fi 4892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4893fi 4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4895$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4896 test $ac_cv_safe_to_define___extensions__ = yes && 4897 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4898 4899 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4900 4901 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4902 4903 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4904 4905 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4906 4907 4908 4909# Initialize libtool 4910 4911case `pwd` in 4912 *\ * | *\ *) 4913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4914$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4915esac 4916 4917 4918 4919macro_version='2.4.2' 4920macro_revision='1.3337' 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934ltmain="$ac_aux_dir/ltmain.sh" 4935 4936# Make sure we can run config.sub. 4937$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4938 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4939 4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4941$as_echo_n "checking build system type... " >&6; } 4942if ${ac_cv_build+:} false; then : 4943 $as_echo_n "(cached) " >&6 4944else 4945 ac_build_alias=$build_alias 4946test "x$ac_build_alias" = x && 4947 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4948test "x$ac_build_alias" = x && 4949 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4950ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4951 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4952 4953fi 4954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4955$as_echo "$ac_cv_build" >&6; } 4956case $ac_cv_build in 4957*-*-*) ;; 4958*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4959esac 4960build=$ac_cv_build 4961ac_save_IFS=$IFS; IFS='-' 4962set x $ac_cv_build 4963shift 4964build_cpu=$1 4965build_vendor=$2 4966shift; shift 4967# Remember, the first character of IFS is used to create $*, 4968# except with old shells: 4969build_os=$* 4970IFS=$ac_save_IFS 4971case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4972 4973 4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4975$as_echo_n "checking host system type... " >&6; } 4976if ${ac_cv_host+:} false; then : 4977 $as_echo_n "(cached) " >&6 4978else 4979 if test "x$host_alias" = x; then 4980 ac_cv_host=$ac_cv_build 4981else 4982 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4983 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4984fi 4985 4986fi 4987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4988$as_echo "$ac_cv_host" >&6; } 4989case $ac_cv_host in 4990*-*-*) ;; 4991*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4992esac 4993host=$ac_cv_host 4994ac_save_IFS=$IFS; IFS='-' 4995set x $ac_cv_host 4996shift 4997host_cpu=$1 4998host_vendor=$2 4999shift; shift 5000# Remember, the first character of IFS is used to create $*, 5001# except with old shells: 5002host_os=$* 5003IFS=$ac_save_IFS 5004case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5005 5006 5007# Backslashify metacharacters that are still active within 5008# double-quoted strings. 5009sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5010 5011# Same as above, but do not quote variable references. 5012double_quote_subst='s/\(["`\\]\)/\\\1/g' 5013 5014# Sed substitution to delay expansion of an escaped shell variable in a 5015# double_quote_subst'ed string. 5016delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5017 5018# Sed substitution to delay expansion of an escaped single quote. 5019delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5020 5021# Sed substitution to avoid accidental globbing in evaled expressions 5022no_glob_subst='s/\*/\\\*/g' 5023 5024ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5025ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5026ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5027 5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5029$as_echo_n "checking how to print strings... " >&6; } 5030# Test print first, because it will be a builtin if present. 5031if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5032 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5033 ECHO='print -r --' 5034elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5035 ECHO='printf %s\n' 5036else 5037 # Use this function as a fallback that always works. 5038 func_fallback_echo () 5039 { 5040 eval 'cat <<_LTECHO_EOF 5041$1 5042_LTECHO_EOF' 5043 } 5044 ECHO='func_fallback_echo' 5045fi 5046 5047# func_echo_all arg... 5048# Invoke $ECHO with all args, space-separated. 5049func_echo_all () 5050{ 5051 $ECHO "" 5052} 5053 5054case "$ECHO" in 5055 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5056$as_echo "printf" >&6; } ;; 5057 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5058$as_echo "print -r" >&6; } ;; 5059 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5060$as_echo "cat" >&6; } ;; 5061esac 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5077$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5078if ${ac_cv_path_SED+:} false; then : 5079 $as_echo_n "(cached) " >&6 5080else 5081 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5082 for ac_i in 1 2 3 4 5 6 7; do 5083 ac_script="$ac_script$as_nl$ac_script" 5084 done 5085 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5086 { ac_script=; unset ac_script;} 5087 if test -z "$SED"; then 5088 ac_path_SED_found=false 5089 # Loop through the user's path and test for each of PROGNAME-LIST 5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5091for as_dir in $PATH 5092do 5093 IFS=$as_save_IFS 5094 test -z "$as_dir" && as_dir=. 5095 for ac_prog in sed gsed; do 5096 for ac_exec_ext in '' $ac_executable_extensions; do 5097 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5098 as_fn_executable_p "$ac_path_SED" || continue 5099# Check for GNU ac_path_SED and select it if it is found. 5100 # Check for GNU $ac_path_SED 5101case `"$ac_path_SED" --version 2>&1` in 5102*GNU*) 5103 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5104*) 5105 ac_count=0 5106 $as_echo_n 0123456789 >"conftest.in" 5107 while : 5108 do 5109 cat "conftest.in" "conftest.in" >"conftest.tmp" 5110 mv "conftest.tmp" "conftest.in" 5111 cp "conftest.in" "conftest.nl" 5112 $as_echo '' >> "conftest.nl" 5113 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5115 as_fn_arith $ac_count + 1 && ac_count=$as_val 5116 if test $ac_count -gt ${ac_path_SED_max-0}; then 5117 # Best one so far, save it but keep looking for a better one 5118 ac_cv_path_SED="$ac_path_SED" 5119 ac_path_SED_max=$ac_count 5120 fi 5121 # 10*(2^10) chars as input seems more than enough 5122 test $ac_count -gt 10 && break 5123 done 5124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5125esac 5126 5127 $ac_path_SED_found && break 3 5128 done 5129 done 5130 done 5131IFS=$as_save_IFS 5132 if test -z "$ac_cv_path_SED"; then 5133 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5134 fi 5135else 5136 ac_cv_path_SED=$SED 5137fi 5138 5139fi 5140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5141$as_echo "$ac_cv_path_SED" >&6; } 5142 SED="$ac_cv_path_SED" 5143 rm -f conftest.sed 5144 5145test -z "$SED" && SED=sed 5146Xsed="$SED -e 1s/^X//" 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5159$as_echo_n "checking for fgrep... " >&6; } 5160if ${ac_cv_path_FGREP+:} false; then : 5161 $as_echo_n "(cached) " >&6 5162else 5163 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5164 then ac_cv_path_FGREP="$GREP -F" 5165 else 5166 if test -z "$FGREP"; then 5167 ac_path_FGREP_found=false 5168 # Loop through the user's path and test for each of PROGNAME-LIST 5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5170for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5171do 5172 IFS=$as_save_IFS 5173 test -z "$as_dir" && as_dir=. 5174 for ac_prog in fgrep; do 5175 for ac_exec_ext in '' $ac_executable_extensions; do 5176 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5177 as_fn_executable_p "$ac_path_FGREP" || continue 5178# Check for GNU ac_path_FGREP and select it if it is found. 5179 # Check for GNU $ac_path_FGREP 5180case `"$ac_path_FGREP" --version 2>&1` in 5181*GNU*) 5182 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5183*) 5184 ac_count=0 5185 $as_echo_n 0123456789 >"conftest.in" 5186 while : 5187 do 5188 cat "conftest.in" "conftest.in" >"conftest.tmp" 5189 mv "conftest.tmp" "conftest.in" 5190 cp "conftest.in" "conftest.nl" 5191 $as_echo 'FGREP' >> "conftest.nl" 5192 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5194 as_fn_arith $ac_count + 1 && ac_count=$as_val 5195 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5196 # Best one so far, save it but keep looking for a better one 5197 ac_cv_path_FGREP="$ac_path_FGREP" 5198 ac_path_FGREP_max=$ac_count 5199 fi 5200 # 10*(2^10) chars as input seems more than enough 5201 test $ac_count -gt 10 && break 5202 done 5203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5204esac 5205 5206 $ac_path_FGREP_found && break 3 5207 done 5208 done 5209 done 5210IFS=$as_save_IFS 5211 if test -z "$ac_cv_path_FGREP"; then 5212 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5213 fi 5214else 5215 ac_cv_path_FGREP=$FGREP 5216fi 5217 5218 fi 5219fi 5220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5221$as_echo "$ac_cv_path_FGREP" >&6; } 5222 FGREP="$ac_cv_path_FGREP" 5223 5224 5225test -z "$GREP" && GREP=grep 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245# Check whether --with-gnu-ld was given. 5246if test "${with_gnu_ld+set}" = set; then : 5247 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5248else 5249 with_gnu_ld=no 5250fi 5251 5252ac_prog=ld 5253if test "$GCC" = yes; then 5254 # Check if gcc -print-prog-name=ld gives a path. 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5256$as_echo_n "checking for ld used by $CC... " >&6; } 5257 case $host in 5258 *-*-mingw*) 5259 # gcc leaves a trailing carriage return which upsets mingw 5260 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5261 *) 5262 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5263 esac 5264 case $ac_prog in 5265 # Accept absolute paths. 5266 [\\/]* | ?:[\\/]*) 5267 re_direlt='/[^/][^/]*/\.\./' 5268 # Canonicalize the pathname of ld 5269 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5270 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5271 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5272 done 5273 test -z "$LD" && LD="$ac_prog" 5274 ;; 5275 "") 5276 # If it fails, then pretend we aren't using GCC. 5277 ac_prog=ld 5278 ;; 5279 *) 5280 # If it is relative, then search for the first ld in PATH. 5281 with_gnu_ld=unknown 5282 ;; 5283 esac 5284elif test "$with_gnu_ld" = yes; then 5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5286$as_echo_n "checking for GNU ld... " >&6; } 5287else 5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5289$as_echo_n "checking for non-GNU ld... " >&6; } 5290fi 5291if ${lt_cv_path_LD+:} false; then : 5292 $as_echo_n "(cached) " >&6 5293else 5294 if test -z "$LD"; then 5295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5296 for ac_dir in $PATH; do 5297 IFS="$lt_save_ifs" 5298 test -z "$ac_dir" && ac_dir=. 5299 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5300 lt_cv_path_LD="$ac_dir/$ac_prog" 5301 # Check to see if the program is GNU ld. I'd rather use --version, 5302 # but apparently some variants of GNU ld only accept -v. 5303 # Break only if it was the GNU/non-GNU ld that we prefer. 5304 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5305 *GNU* | *'with BFD'*) 5306 test "$with_gnu_ld" != no && break 5307 ;; 5308 *) 5309 test "$with_gnu_ld" != yes && break 5310 ;; 5311 esac 5312 fi 5313 done 5314 IFS="$lt_save_ifs" 5315else 5316 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5317fi 5318fi 5319 5320LD="$lt_cv_path_LD" 5321if test -n "$LD"; then 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5323$as_echo "$LD" >&6; } 5324else 5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5326$as_echo "no" >&6; } 5327fi 5328test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5330$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5331if ${lt_cv_prog_gnu_ld+:} false; then : 5332 $as_echo_n "(cached) " >&6 5333else 5334 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5335case `$LD -v 2>&1 </dev/null` in 5336*GNU* | *'with BFD'*) 5337 lt_cv_prog_gnu_ld=yes 5338 ;; 5339*) 5340 lt_cv_prog_gnu_ld=no 5341 ;; 5342esac 5343fi 5344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5345$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5346with_gnu_ld=$lt_cv_prog_gnu_ld 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5357$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5358if ${lt_cv_path_NM+:} false; then : 5359 $as_echo_n "(cached) " >&6 5360else 5361 if test -n "$NM"; then 5362 # Let the user override the test. 5363 lt_cv_path_NM="$NM" 5364else 5365 lt_nm_to_check="${ac_tool_prefix}nm" 5366 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5367 lt_nm_to_check="$lt_nm_to_check nm" 5368 fi 5369 for lt_tmp_nm in $lt_nm_to_check; do 5370 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5371 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5372 IFS="$lt_save_ifs" 5373 test -z "$ac_dir" && ac_dir=. 5374 tmp_nm="$ac_dir/$lt_tmp_nm" 5375 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5376 # Check to see if the nm accepts a BSD-compat flag. 5377 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5378 # nm: unknown option "B" ignored 5379 # Tru64's nm complains that /dev/null is an invalid object file 5380 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5381 */dev/null* | *'Invalid file or object type'*) 5382 lt_cv_path_NM="$tmp_nm -B" 5383 break 5384 ;; 5385 *) 5386 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5387 */dev/null*) 5388 lt_cv_path_NM="$tmp_nm -p" 5389 break 5390 ;; 5391 *) 5392 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5393 continue # so that we can try to find one that supports BSD flags 5394 ;; 5395 esac 5396 ;; 5397 esac 5398 fi 5399 done 5400 IFS="$lt_save_ifs" 5401 done 5402 : ${lt_cv_path_NM=no} 5403fi 5404fi 5405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5406$as_echo "$lt_cv_path_NM" >&6; } 5407if test "$lt_cv_path_NM" != "no"; then 5408 NM="$lt_cv_path_NM" 5409else 5410 # Didn't find any BSD compatible name lister, look for dumpbin. 5411 if test -n "$DUMPBIN"; then : 5412 # Let the user override the test. 5413 else 5414 if test -n "$ac_tool_prefix"; then 5415 for ac_prog in dumpbin "link -dump" 5416 do 5417 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5418set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5420$as_echo_n "checking for $ac_word... " >&6; } 5421if ${ac_cv_prog_DUMPBIN+:} false; then : 5422 $as_echo_n "(cached) " >&6 5423else 5424 if test -n "$DUMPBIN"; then 5425 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5426else 5427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5428for as_dir in $PATH 5429do 5430 IFS=$as_save_IFS 5431 test -z "$as_dir" && as_dir=. 5432 for ac_exec_ext in '' $ac_executable_extensions; do 5433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5434 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5436 break 2 5437 fi 5438done 5439 done 5440IFS=$as_save_IFS 5441 5442fi 5443fi 5444DUMPBIN=$ac_cv_prog_DUMPBIN 5445if test -n "$DUMPBIN"; then 5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5447$as_echo "$DUMPBIN" >&6; } 5448else 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5450$as_echo "no" >&6; } 5451fi 5452 5453 5454 test -n "$DUMPBIN" && break 5455 done 5456fi 5457if test -z "$DUMPBIN"; then 5458 ac_ct_DUMPBIN=$DUMPBIN 5459 for ac_prog in dumpbin "link -dump" 5460do 5461 # Extract the first word of "$ac_prog", so it can be a program name with args. 5462set dummy $ac_prog; ac_word=$2 5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5464$as_echo_n "checking for $ac_word... " >&6; } 5465if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5466 $as_echo_n "(cached) " >&6 5467else 5468 if test -n "$ac_ct_DUMPBIN"; then 5469 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5470else 5471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5472for as_dir in $PATH 5473do 5474 IFS=$as_save_IFS 5475 test -z "$as_dir" && as_dir=. 5476 for ac_exec_ext in '' $ac_executable_extensions; do 5477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5478 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5480 break 2 5481 fi 5482done 5483 done 5484IFS=$as_save_IFS 5485 5486fi 5487fi 5488ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5489if test -n "$ac_ct_DUMPBIN"; then 5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5491$as_echo "$ac_ct_DUMPBIN" >&6; } 5492else 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5494$as_echo "no" >&6; } 5495fi 5496 5497 5498 test -n "$ac_ct_DUMPBIN" && break 5499done 5500 5501 if test "x$ac_ct_DUMPBIN" = x; then 5502 DUMPBIN=":" 5503 else 5504 case $cross_compiling:$ac_tool_warned in 5505yes:) 5506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5508ac_tool_warned=yes ;; 5509esac 5510 DUMPBIN=$ac_ct_DUMPBIN 5511 fi 5512fi 5513 5514 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5515 *COFF*) 5516 DUMPBIN="$DUMPBIN -symbols" 5517 ;; 5518 *) 5519 DUMPBIN=: 5520 ;; 5521 esac 5522 fi 5523 5524 if test "$DUMPBIN" != ":"; then 5525 NM="$DUMPBIN" 5526 fi 5527fi 5528test -z "$NM" && NM=nm 5529 5530 5531 5532 5533 5534 5535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5536$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5537if ${lt_cv_nm_interface+:} false; then : 5538 $as_echo_n "(cached) " >&6 5539else 5540 lt_cv_nm_interface="BSD nm" 5541 echo "int some_variable = 0;" > conftest.$ac_ext 5542 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5543 (eval "$ac_compile" 2>conftest.err) 5544 cat conftest.err >&5 5545 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5546 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5547 cat conftest.err >&5 5548 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5549 cat conftest.out >&5 5550 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5551 lt_cv_nm_interface="MS dumpbin" 5552 fi 5553 rm -f conftest* 5554fi 5555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5556$as_echo "$lt_cv_nm_interface" >&6; } 5557 5558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5559$as_echo_n "checking whether ln -s works... " >&6; } 5560LN_S=$as_ln_s 5561if test "$LN_S" = "ln -s"; then 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5563$as_echo "yes" >&6; } 5564else 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5566$as_echo "no, using $LN_S" >&6; } 5567fi 5568 5569# find the maximum length of command line arguments 5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5571$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5572if ${lt_cv_sys_max_cmd_len+:} false; then : 5573 $as_echo_n "(cached) " >&6 5574else 5575 i=0 5576 teststring="ABCD" 5577 5578 case $build_os in 5579 msdosdjgpp*) 5580 # On DJGPP, this test can blow up pretty badly due to problems in libc 5581 # (any single argument exceeding 2000 bytes causes a buffer overrun 5582 # during glob expansion). Even if it were fixed, the result of this 5583 # check would be larger than it should be. 5584 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5585 ;; 5586 5587 gnu*) 5588 # Under GNU Hurd, this test is not required because there is 5589 # no limit to the length of command line arguments. 5590 # Libtool will interpret -1 as no limit whatsoever 5591 lt_cv_sys_max_cmd_len=-1; 5592 ;; 5593 5594 cygwin* | mingw* | cegcc*) 5595 # On Win9x/ME, this test blows up -- it succeeds, but takes 5596 # about 5 minutes as the teststring grows exponentially. 5597 # Worse, since 9x/ME are not pre-emptively multitasking, 5598 # you end up with a "frozen" computer, even though with patience 5599 # the test eventually succeeds (with a max line length of 256k). 5600 # Instead, let's just punt: use the minimum linelength reported by 5601 # all of the supported platforms: 8192 (on NT/2K/XP). 5602 lt_cv_sys_max_cmd_len=8192; 5603 ;; 5604 5605 mint*) 5606 # On MiNT this can take a long time and run out of memory. 5607 lt_cv_sys_max_cmd_len=8192; 5608 ;; 5609 5610 amigaos*) 5611 # On AmigaOS with pdksh, this test takes hours, literally. 5612 # So we just punt and use a minimum line length of 8192. 5613 lt_cv_sys_max_cmd_len=8192; 5614 ;; 5615 5616 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5617 # This has been around since 386BSD, at least. Likely further. 5618 if test -x /sbin/sysctl; then 5619 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5620 elif test -x /usr/sbin/sysctl; then 5621 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5622 else 5623 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5624 fi 5625 # And add a safety zone 5626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5627 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5628 ;; 5629 5630 interix*) 5631 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5632 lt_cv_sys_max_cmd_len=196608 5633 ;; 5634 5635 os2*) 5636 # The test takes a long time on OS/2. 5637 lt_cv_sys_max_cmd_len=8192 5638 ;; 5639 5640 osf*) 5641 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5642 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5643 # nice to cause kernel panics so lets avoid the loop below. 5644 # First set a reasonable default. 5645 lt_cv_sys_max_cmd_len=16384 5646 # 5647 if test -x /sbin/sysconfig; then 5648 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5649 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5650 esac 5651 fi 5652 ;; 5653 sco3.2v5*) 5654 lt_cv_sys_max_cmd_len=102400 5655 ;; 5656 sysv5* | sco5v6* | sysv4.2uw2*) 5657 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5658 if test -n "$kargmax"; then 5659 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5660 else 5661 lt_cv_sys_max_cmd_len=32768 5662 fi 5663 ;; 5664 *) 5665 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5666 if test -n "$lt_cv_sys_max_cmd_len" && \ 5667 test undefined != "$lt_cv_sys_max_cmd_len"; then 5668 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5670 else 5671 # Make teststring a little bigger before we do anything with it. 5672 # a 1K string should be a reasonable start. 5673 for i in 1 2 3 4 5 6 7 8 ; do 5674 teststring=$teststring$teststring 5675 done 5676 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5677 # If test is not a shell built-in, we'll probably end up computing a 5678 # maximum length that is only half of the actual maximum length, but 5679 # we can't tell. 5680 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5681 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5682 test $i != 17 # 1/2 MB should be enough 5683 do 5684 i=`expr $i + 1` 5685 teststring=$teststring$teststring 5686 done 5687 # Only check the string length outside the loop. 5688 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5689 teststring= 5690 # Add a significant safety factor because C++ compilers can tack on 5691 # massive amounts of additional arguments before passing them to the 5692 # linker. It appears as though 1/2 is a usable value. 5693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5694 fi 5695 ;; 5696 esac 5697 5698fi 5699 5700if test -n $lt_cv_sys_max_cmd_len ; then 5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5702$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5703else 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5705$as_echo "none" >&6; } 5706fi 5707max_cmd_len=$lt_cv_sys_max_cmd_len 5708 5709 5710 5711 5712 5713 5714: ${CP="cp -f"} 5715: ${MV="mv -f"} 5716: ${RM="rm -f"} 5717 5718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5719$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5720# Try some XSI features 5721xsi_shell=no 5722( _lt_dummy="a/b/c" 5723 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5724 = c,a/b,b/c, \ 5725 && eval 'test $(( 1 + 1 )) -eq 2 \ 5726 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5727 && xsi_shell=yes 5728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5729$as_echo "$xsi_shell" >&6; } 5730 5731 5732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5733$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5734lt_shell_append=no 5735( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5736 >/dev/null 2>&1 \ 5737 && lt_shell_append=yes 5738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5739$as_echo "$lt_shell_append" >&6; } 5740 5741 5742if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5743 lt_unset=unset 5744else 5745 lt_unset=false 5746fi 5747 5748 5749 5750 5751 5752# test EBCDIC or ASCII 5753case `echo X|tr X '\101'` in 5754 A) # ASCII based system 5755 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5756 lt_SP2NL='tr \040 \012' 5757 lt_NL2SP='tr \015\012 \040\040' 5758 ;; 5759 *) # EBCDIC based system 5760 lt_SP2NL='tr \100 \n' 5761 lt_NL2SP='tr \r\n \100\100' 5762 ;; 5763esac 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5774$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5775if ${lt_cv_to_host_file_cmd+:} false; then : 5776 $as_echo_n "(cached) " >&6 5777else 5778 case $host in 5779 *-*-mingw* ) 5780 case $build in 5781 *-*-mingw* ) # actually msys 5782 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5783 ;; 5784 *-*-cygwin* ) 5785 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5786 ;; 5787 * ) # otherwise, assume *nix 5788 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5789 ;; 5790 esac 5791 ;; 5792 *-*-cygwin* ) 5793 case $build in 5794 *-*-mingw* ) # actually msys 5795 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5796 ;; 5797 *-*-cygwin* ) 5798 lt_cv_to_host_file_cmd=func_convert_file_noop 5799 ;; 5800 * ) # otherwise, assume *nix 5801 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5802 ;; 5803 esac 5804 ;; 5805 * ) # unhandled hosts (and "normal" native builds) 5806 lt_cv_to_host_file_cmd=func_convert_file_noop 5807 ;; 5808esac 5809 5810fi 5811 5812to_host_file_cmd=$lt_cv_to_host_file_cmd 5813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5814$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5815 5816 5817 5818 5819 5820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5821$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5822if ${lt_cv_to_tool_file_cmd+:} false; then : 5823 $as_echo_n "(cached) " >&6 5824else 5825 #assume ordinary cross tools, or native build. 5826lt_cv_to_tool_file_cmd=func_convert_file_noop 5827case $host in 5828 *-*-mingw* ) 5829 case $build in 5830 *-*-mingw* ) # actually msys 5831 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5832 ;; 5833 esac 5834 ;; 5835esac 5836 5837fi 5838 5839to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5841$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5842 5843 5844 5845 5846 5847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5848$as_echo_n "checking for $LD option to reload object files... " >&6; } 5849if ${lt_cv_ld_reload_flag+:} false; then : 5850 $as_echo_n "(cached) " >&6 5851else 5852 lt_cv_ld_reload_flag='-r' 5853fi 5854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5855$as_echo "$lt_cv_ld_reload_flag" >&6; } 5856reload_flag=$lt_cv_ld_reload_flag 5857case $reload_flag in 5858"" | " "*) ;; 5859*) reload_flag=" $reload_flag" ;; 5860esac 5861reload_cmds='$LD$reload_flag -o $output$reload_objs' 5862case $host_os in 5863 cygwin* | mingw* | pw32* | cegcc*) 5864 if test "$GCC" != yes; then 5865 reload_cmds=false 5866 fi 5867 ;; 5868 darwin*) 5869 if test "$GCC" = yes; then 5870 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5871 else 5872 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5873 fi 5874 ;; 5875esac 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885if test -n "$ac_tool_prefix"; then 5886 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5887set dummy ${ac_tool_prefix}objdump; ac_word=$2 5888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5889$as_echo_n "checking for $ac_word... " >&6; } 5890if ${ac_cv_prog_OBJDUMP+:} false; then : 5891 $as_echo_n "(cached) " >&6 5892else 5893 if test -n "$OBJDUMP"; then 5894 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5895else 5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5897for as_dir in $PATH 5898do 5899 IFS=$as_save_IFS 5900 test -z "$as_dir" && as_dir=. 5901 for ac_exec_ext in '' $ac_executable_extensions; do 5902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5903 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5905 break 2 5906 fi 5907done 5908 done 5909IFS=$as_save_IFS 5910 5911fi 5912fi 5913OBJDUMP=$ac_cv_prog_OBJDUMP 5914if test -n "$OBJDUMP"; then 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5916$as_echo "$OBJDUMP" >&6; } 5917else 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5919$as_echo "no" >&6; } 5920fi 5921 5922 5923fi 5924if test -z "$ac_cv_prog_OBJDUMP"; then 5925 ac_ct_OBJDUMP=$OBJDUMP 5926 # Extract the first word of "objdump", so it can be a program name with args. 5927set dummy objdump; ac_word=$2 5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5929$as_echo_n "checking for $ac_word... " >&6; } 5930if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5931 $as_echo_n "(cached) " >&6 5932else 5933 if test -n "$ac_ct_OBJDUMP"; then 5934 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5935else 5936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5937for as_dir in $PATH 5938do 5939 IFS=$as_save_IFS 5940 test -z "$as_dir" && as_dir=. 5941 for ac_exec_ext in '' $ac_executable_extensions; do 5942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5943 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5945 break 2 5946 fi 5947done 5948 done 5949IFS=$as_save_IFS 5950 5951fi 5952fi 5953ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5954if test -n "$ac_ct_OBJDUMP"; then 5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5956$as_echo "$ac_ct_OBJDUMP" >&6; } 5957else 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5959$as_echo "no" >&6; } 5960fi 5961 5962 if test "x$ac_ct_OBJDUMP" = x; then 5963 OBJDUMP="false" 5964 else 5965 case $cross_compiling:$ac_tool_warned in 5966yes:) 5967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5969ac_tool_warned=yes ;; 5970esac 5971 OBJDUMP=$ac_ct_OBJDUMP 5972 fi 5973else 5974 OBJDUMP="$ac_cv_prog_OBJDUMP" 5975fi 5976 5977test -z "$OBJDUMP" && OBJDUMP=objdump 5978 5979 5980 5981 5982 5983 5984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5985$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5986if ${lt_cv_deplibs_check_method+:} false; then : 5987 $as_echo_n "(cached) " >&6 5988else 5989 lt_cv_file_magic_cmd='$MAGIC_CMD' 5990lt_cv_file_magic_test_file= 5991lt_cv_deplibs_check_method='unknown' 5992# Need to set the preceding variable on all platforms that support 5993# interlibrary dependencies. 5994# 'none' -- dependencies not supported. 5995# `unknown' -- same as none, but documents that we really don't know. 5996# 'pass_all' -- all dependencies passed with no checks. 5997# 'test_compile' -- check by making test program. 5998# 'file_magic [[regex]]' -- check by looking for files in library path 5999# which responds to the $file_magic_cmd with a given extended regex. 6000# If you have `file' or equivalent on your system and you're not sure 6001# whether `pass_all' will *always* work, you probably want this one. 6002 6003case $host_os in 6004aix[4-9]*) 6005 lt_cv_deplibs_check_method=pass_all 6006 ;; 6007 6008beos*) 6009 lt_cv_deplibs_check_method=pass_all 6010 ;; 6011 6012bsdi[45]*) 6013 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6014 lt_cv_file_magic_cmd='/usr/bin/file -L' 6015 lt_cv_file_magic_test_file=/shlib/libc.so 6016 ;; 6017 6018cygwin*) 6019 # func_win32_libid is a shell function defined in ltmain.sh 6020 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6021 lt_cv_file_magic_cmd='func_win32_libid' 6022 ;; 6023 6024mingw* | pw32*) 6025 # Base MSYS/MinGW do not provide the 'file' command needed by 6026 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6027 # unless we find 'file', for example because we are cross-compiling. 6028 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6029 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6030 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6031 lt_cv_file_magic_cmd='func_win32_libid' 6032 else 6033 # Keep this pattern in sync with the one in func_win32_libid. 6034 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6035 lt_cv_file_magic_cmd='$OBJDUMP -f' 6036 fi 6037 ;; 6038 6039cegcc*) 6040 # use the weaker test based on 'objdump'. See mingw*. 6041 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6042 lt_cv_file_magic_cmd='$OBJDUMP -f' 6043 ;; 6044 6045darwin* | rhapsody*) 6046 lt_cv_deplibs_check_method=pass_all 6047 ;; 6048 6049freebsd* | dragonfly*) 6050 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6051 case $host_cpu in 6052 i*86 ) 6053 # Not sure whether the presence of OpenBSD here was a mistake. 6054 # Let's accept both of them until this is cleared up. 6055 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6056 lt_cv_file_magic_cmd=/usr/bin/file 6057 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6058 ;; 6059 esac 6060 else 6061 lt_cv_deplibs_check_method=pass_all 6062 fi 6063 ;; 6064 6065haiku*) 6066 lt_cv_deplibs_check_method=pass_all 6067 ;; 6068 6069hpux10.20* | hpux11*) 6070 lt_cv_file_magic_cmd=/usr/bin/file 6071 case $host_cpu in 6072 ia64*) 6073 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6074 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6075 ;; 6076 hppa*64*) 6077 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]' 6078 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6079 ;; 6080 *) 6081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6082 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6083 ;; 6084 esac 6085 ;; 6086 6087interix[3-9]*) 6088 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6090 ;; 6091 6092irix5* | irix6* | nonstopux*) 6093 case $LD in 6094 *-32|*"-32 ") libmagic=32-bit;; 6095 *-n32|*"-n32 ") libmagic=N32;; 6096 *-64|*"-64 ") libmagic=64-bit;; 6097 *) libmagic=never-match;; 6098 esac 6099 lt_cv_deplibs_check_method=pass_all 6100 ;; 6101 6102# This must be glibc/ELF. 6103linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6104 lt_cv_deplibs_check_method=pass_all 6105 ;; 6106 6107netbsd* | netbsdelf*-gnu) 6108 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6110 else 6111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6112 fi 6113 ;; 6114 6115newos6*) 6116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6117 lt_cv_file_magic_cmd=/usr/bin/file 6118 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6119 ;; 6120 6121*nto* | *qnx*) 6122 lt_cv_deplibs_check_method=pass_all 6123 ;; 6124 6125openbsd*) 6126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6128 else 6129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6130 fi 6131 ;; 6132 6133osf3* | osf4* | osf5*) 6134 lt_cv_deplibs_check_method=pass_all 6135 ;; 6136 6137rdos*) 6138 lt_cv_deplibs_check_method=pass_all 6139 ;; 6140 6141solaris*) 6142 lt_cv_deplibs_check_method=pass_all 6143 ;; 6144 6145sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6146 lt_cv_deplibs_check_method=pass_all 6147 ;; 6148 6149sysv4 | sysv4.3*) 6150 case $host_vendor in 6151 motorola) 6152 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]' 6153 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6154 ;; 6155 ncr) 6156 lt_cv_deplibs_check_method=pass_all 6157 ;; 6158 sequent) 6159 lt_cv_file_magic_cmd='/bin/file' 6160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6161 ;; 6162 sni) 6163 lt_cv_file_magic_cmd='/bin/file' 6164 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6165 lt_cv_file_magic_test_file=/lib/libc.so 6166 ;; 6167 siemens) 6168 lt_cv_deplibs_check_method=pass_all 6169 ;; 6170 pc) 6171 lt_cv_deplibs_check_method=pass_all 6172 ;; 6173 esac 6174 ;; 6175 6176tpf*) 6177 lt_cv_deplibs_check_method=pass_all 6178 ;; 6179esac 6180 6181fi 6182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6183$as_echo "$lt_cv_deplibs_check_method" >&6; } 6184 6185file_magic_glob= 6186want_nocaseglob=no 6187if test "$build" = "$host"; then 6188 case $host_os in 6189 mingw* | pw32*) 6190 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6191 want_nocaseglob=yes 6192 else 6193 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6194 fi 6195 ;; 6196 esac 6197fi 6198 6199file_magic_cmd=$lt_cv_file_magic_cmd 6200deplibs_check_method=$lt_cv_deplibs_check_method 6201test -z "$deplibs_check_method" && deplibs_check_method=unknown 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224if test -n "$ac_tool_prefix"; then 6225 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6226set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6228$as_echo_n "checking for $ac_word... " >&6; } 6229if ${ac_cv_prog_DLLTOOL+:} false; then : 6230 $as_echo_n "(cached) " >&6 6231else 6232 if test -n "$DLLTOOL"; then 6233 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6234else 6235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6236for as_dir in $PATH 6237do 6238 IFS=$as_save_IFS 6239 test -z "$as_dir" && as_dir=. 6240 for ac_exec_ext in '' $ac_executable_extensions; do 6241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6242 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6244 break 2 6245 fi 6246done 6247 done 6248IFS=$as_save_IFS 6249 6250fi 6251fi 6252DLLTOOL=$ac_cv_prog_DLLTOOL 6253if test -n "$DLLTOOL"; then 6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6255$as_echo "$DLLTOOL" >&6; } 6256else 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6258$as_echo "no" >&6; } 6259fi 6260 6261 6262fi 6263if test -z "$ac_cv_prog_DLLTOOL"; then 6264 ac_ct_DLLTOOL=$DLLTOOL 6265 # Extract the first word of "dlltool", so it can be a program name with args. 6266set dummy dlltool; ac_word=$2 6267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6268$as_echo_n "checking for $ac_word... " >&6; } 6269if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6270 $as_echo_n "(cached) " >&6 6271else 6272 if test -n "$ac_ct_DLLTOOL"; then 6273 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6274else 6275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6276for as_dir in $PATH 6277do 6278 IFS=$as_save_IFS 6279 test -z "$as_dir" && as_dir=. 6280 for ac_exec_ext in '' $ac_executable_extensions; do 6281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6282 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6284 break 2 6285 fi 6286done 6287 done 6288IFS=$as_save_IFS 6289 6290fi 6291fi 6292ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6293if test -n "$ac_ct_DLLTOOL"; then 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6295$as_echo "$ac_ct_DLLTOOL" >&6; } 6296else 6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6298$as_echo "no" >&6; } 6299fi 6300 6301 if test "x$ac_ct_DLLTOOL" = x; then 6302 DLLTOOL="false" 6303 else 6304 case $cross_compiling:$ac_tool_warned in 6305yes:) 6306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6308ac_tool_warned=yes ;; 6309esac 6310 DLLTOOL=$ac_ct_DLLTOOL 6311 fi 6312else 6313 DLLTOOL="$ac_cv_prog_DLLTOOL" 6314fi 6315 6316test -z "$DLLTOOL" && DLLTOOL=dlltool 6317 6318 6319 6320 6321 6322 6323 6324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6325$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6326if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6327 $as_echo_n "(cached) " >&6 6328else 6329 lt_cv_sharedlib_from_linklib_cmd='unknown' 6330 6331case $host_os in 6332cygwin* | mingw* | pw32* | cegcc*) 6333 # two different shell functions defined in ltmain.sh 6334 # decide which to use based on capabilities of $DLLTOOL 6335 case `$DLLTOOL --help 2>&1` in 6336 *--identify-strict*) 6337 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6338 ;; 6339 *) 6340 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6341 ;; 6342 esac 6343 ;; 6344*) 6345 # fallback: assume linklib IS sharedlib 6346 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6347 ;; 6348esac 6349 6350fi 6351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6352$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6353sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6354test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6355 6356 6357 6358 6359 6360 6361 6362if test -n "$ac_tool_prefix"; then 6363 for ac_prog in ar 6364 do 6365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6366set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6368$as_echo_n "checking for $ac_word... " >&6; } 6369if ${ac_cv_prog_AR+:} false; then : 6370 $as_echo_n "(cached) " >&6 6371else 6372 if test -n "$AR"; then 6373 ac_cv_prog_AR="$AR" # Let the user override the test. 6374else 6375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6376for as_dir in $PATH 6377do 6378 IFS=$as_save_IFS 6379 test -z "$as_dir" && as_dir=. 6380 for ac_exec_ext in '' $ac_executable_extensions; do 6381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6382 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6384 break 2 6385 fi 6386done 6387 done 6388IFS=$as_save_IFS 6389 6390fi 6391fi 6392AR=$ac_cv_prog_AR 6393if test -n "$AR"; then 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6395$as_echo "$AR" >&6; } 6396else 6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6398$as_echo "no" >&6; } 6399fi 6400 6401 6402 test -n "$AR" && break 6403 done 6404fi 6405if test -z "$AR"; then 6406 ac_ct_AR=$AR 6407 for ac_prog in ar 6408do 6409 # Extract the first word of "$ac_prog", so it can be a program name with args. 6410set dummy $ac_prog; ac_word=$2 6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6412$as_echo_n "checking for $ac_word... " >&6; } 6413if ${ac_cv_prog_ac_ct_AR+:} false; then : 6414 $as_echo_n "(cached) " >&6 6415else 6416 if test -n "$ac_ct_AR"; then 6417 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6418else 6419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6420for as_dir in $PATH 6421do 6422 IFS=$as_save_IFS 6423 test -z "$as_dir" && as_dir=. 6424 for ac_exec_ext in '' $ac_executable_extensions; do 6425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6426 ac_cv_prog_ac_ct_AR="$ac_prog" 6427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6428 break 2 6429 fi 6430done 6431 done 6432IFS=$as_save_IFS 6433 6434fi 6435fi 6436ac_ct_AR=$ac_cv_prog_ac_ct_AR 6437if test -n "$ac_ct_AR"; then 6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6439$as_echo "$ac_ct_AR" >&6; } 6440else 6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6442$as_echo "no" >&6; } 6443fi 6444 6445 6446 test -n "$ac_ct_AR" && break 6447done 6448 6449 if test "x$ac_ct_AR" = x; then 6450 AR="false" 6451 else 6452 case $cross_compiling:$ac_tool_warned in 6453yes:) 6454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6456ac_tool_warned=yes ;; 6457esac 6458 AR=$ac_ct_AR 6459 fi 6460fi 6461 6462: ${AR=ar} 6463: ${AR_FLAGS=cru} 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6476$as_echo_n "checking for archiver @FILE support... " >&6; } 6477if ${lt_cv_ar_at_file+:} false; then : 6478 $as_echo_n "(cached) " >&6 6479else 6480 lt_cv_ar_at_file=no 6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6482/* end confdefs.h. */ 6483 6484int 6485main () 6486{ 6487 6488 ; 6489 return 0; 6490} 6491_ACEOF 6492if ac_fn_c_try_compile "$LINENO"; then : 6493 echo conftest.$ac_objext > conftest.lst 6494 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6496 (eval $lt_ar_try) 2>&5 6497 ac_status=$? 6498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6499 test $ac_status = 0; } 6500 if test "$ac_status" -eq 0; then 6501 # Ensure the archiver fails upon bogus file names. 6502 rm -f conftest.$ac_objext libconftest.a 6503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6504 (eval $lt_ar_try) 2>&5 6505 ac_status=$? 6506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6507 test $ac_status = 0; } 6508 if test "$ac_status" -ne 0; then 6509 lt_cv_ar_at_file=@ 6510 fi 6511 fi 6512 rm -f conftest.* libconftest.a 6513 6514fi 6515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6516 6517fi 6518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6519$as_echo "$lt_cv_ar_at_file" >&6; } 6520 6521if test "x$lt_cv_ar_at_file" = xno; then 6522 archiver_list_spec= 6523else 6524 archiver_list_spec=$lt_cv_ar_at_file 6525fi 6526 6527 6528 6529 6530 6531 6532 6533if test -n "$ac_tool_prefix"; then 6534 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6535set dummy ${ac_tool_prefix}strip; ac_word=$2 6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6537$as_echo_n "checking for $ac_word... " >&6; } 6538if ${ac_cv_prog_STRIP+:} false; then : 6539 $as_echo_n "(cached) " >&6 6540else 6541 if test -n "$STRIP"; then 6542 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6543else 6544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6545for as_dir in $PATH 6546do 6547 IFS=$as_save_IFS 6548 test -z "$as_dir" && as_dir=. 6549 for ac_exec_ext in '' $ac_executable_extensions; do 6550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6551 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6553 break 2 6554 fi 6555done 6556 done 6557IFS=$as_save_IFS 6558 6559fi 6560fi 6561STRIP=$ac_cv_prog_STRIP 6562if test -n "$STRIP"; then 6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6564$as_echo "$STRIP" >&6; } 6565else 6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6567$as_echo "no" >&6; } 6568fi 6569 6570 6571fi 6572if test -z "$ac_cv_prog_STRIP"; then 6573 ac_ct_STRIP=$STRIP 6574 # Extract the first word of "strip", so it can be a program name with args. 6575set dummy strip; ac_word=$2 6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6577$as_echo_n "checking for $ac_word... " >&6; } 6578if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6579 $as_echo_n "(cached) " >&6 6580else 6581 if test -n "$ac_ct_STRIP"; then 6582 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6583else 6584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6585for as_dir in $PATH 6586do 6587 IFS=$as_save_IFS 6588 test -z "$as_dir" && as_dir=. 6589 for ac_exec_ext in '' $ac_executable_extensions; do 6590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6591 ac_cv_prog_ac_ct_STRIP="strip" 6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6593 break 2 6594 fi 6595done 6596 done 6597IFS=$as_save_IFS 6598 6599fi 6600fi 6601ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6602if test -n "$ac_ct_STRIP"; then 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6604$as_echo "$ac_ct_STRIP" >&6; } 6605else 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6607$as_echo "no" >&6; } 6608fi 6609 6610 if test "x$ac_ct_STRIP" = x; then 6611 STRIP=":" 6612 else 6613 case $cross_compiling:$ac_tool_warned in 6614yes:) 6615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6617ac_tool_warned=yes ;; 6618esac 6619 STRIP=$ac_ct_STRIP 6620 fi 6621else 6622 STRIP="$ac_cv_prog_STRIP" 6623fi 6624 6625test -z "$STRIP" && STRIP=: 6626 6627 6628 6629 6630 6631 6632if test -n "$ac_tool_prefix"; then 6633 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6634set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6636$as_echo_n "checking for $ac_word... " >&6; } 6637if ${ac_cv_prog_RANLIB+:} false; then : 6638 $as_echo_n "(cached) " >&6 6639else 6640 if test -n "$RANLIB"; then 6641 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6642else 6643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6644for as_dir in $PATH 6645do 6646 IFS=$as_save_IFS 6647 test -z "$as_dir" && as_dir=. 6648 for ac_exec_ext in '' $ac_executable_extensions; do 6649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6650 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6652 break 2 6653 fi 6654done 6655 done 6656IFS=$as_save_IFS 6657 6658fi 6659fi 6660RANLIB=$ac_cv_prog_RANLIB 6661if test -n "$RANLIB"; then 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6663$as_echo "$RANLIB" >&6; } 6664else 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6666$as_echo "no" >&6; } 6667fi 6668 6669 6670fi 6671if test -z "$ac_cv_prog_RANLIB"; then 6672 ac_ct_RANLIB=$RANLIB 6673 # Extract the first word of "ranlib", so it can be a program name with args. 6674set dummy ranlib; ac_word=$2 6675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6676$as_echo_n "checking for $ac_word... " >&6; } 6677if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6678 $as_echo_n "(cached) " >&6 6679else 6680 if test -n "$ac_ct_RANLIB"; then 6681 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6682else 6683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6684for as_dir in $PATH 6685do 6686 IFS=$as_save_IFS 6687 test -z "$as_dir" && as_dir=. 6688 for ac_exec_ext in '' $ac_executable_extensions; do 6689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6690 ac_cv_prog_ac_ct_RANLIB="ranlib" 6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6692 break 2 6693 fi 6694done 6695 done 6696IFS=$as_save_IFS 6697 6698fi 6699fi 6700ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6701if test -n "$ac_ct_RANLIB"; then 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6703$as_echo "$ac_ct_RANLIB" >&6; } 6704else 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6706$as_echo "no" >&6; } 6707fi 6708 6709 if test "x$ac_ct_RANLIB" = x; then 6710 RANLIB=":" 6711 else 6712 case $cross_compiling:$ac_tool_warned in 6713yes:) 6714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6716ac_tool_warned=yes ;; 6717esac 6718 RANLIB=$ac_ct_RANLIB 6719 fi 6720else 6721 RANLIB="$ac_cv_prog_RANLIB" 6722fi 6723 6724test -z "$RANLIB" && RANLIB=: 6725 6726 6727 6728 6729 6730 6731# Determine commands to create old-style static archives. 6732old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6733old_postinstall_cmds='chmod 644 $oldlib' 6734old_postuninstall_cmds= 6735 6736if test -n "$RANLIB"; then 6737 case $host_os in 6738 openbsd*) 6739 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6740 ;; 6741 *) 6742 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6743 ;; 6744 esac 6745 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6746fi 6747 6748case $host_os in 6749 darwin*) 6750 lock_old_archive_extraction=yes ;; 6751 *) 6752 lock_old_archive_extraction=no ;; 6753esac 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793# If no C compiler was specified, use CC. 6794LTCC=${LTCC-"$CC"} 6795 6796# If no C compiler flags were specified, use CFLAGS. 6797LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6798 6799# Allow CC to be a program name with arguments. 6800compiler=$CC 6801 6802 6803# Check for command to grab the raw symbol name followed by C symbol from nm. 6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6805$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6806if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6807 $as_echo_n "(cached) " >&6 6808else 6809 6810# These are sane defaults that work on at least a few old systems. 6811# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6812 6813# Character class describing NM global symbol codes. 6814symcode='[BCDEGRST]' 6815 6816# Regexp to match symbols that can be accessed directly from C. 6817sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6818 6819# Define system-specific variables. 6820case $host_os in 6821aix*) 6822 symcode='[BCDT]' 6823 ;; 6824cygwin* | mingw* | pw32* | cegcc*) 6825 symcode='[ABCDGISTW]' 6826 ;; 6827hpux*) 6828 if test "$host_cpu" = ia64; then 6829 symcode='[ABCDEGRST]' 6830 fi 6831 ;; 6832irix* | nonstopux*) 6833 symcode='[BCDEGRST]' 6834 ;; 6835osf*) 6836 symcode='[BCDEGQRST]' 6837 ;; 6838solaris*) 6839 symcode='[BDRT]' 6840 ;; 6841sco3.2v5*) 6842 symcode='[DT]' 6843 ;; 6844sysv4.2uw2*) 6845 symcode='[DT]' 6846 ;; 6847sysv5* | sco5v6* | unixware* | OpenUNIX*) 6848 symcode='[ABDT]' 6849 ;; 6850sysv4) 6851 symcode='[DFNSTU]' 6852 ;; 6853esac 6854 6855# If we're using GNU nm, then use its standard symbol codes. 6856case `$NM -V 2>&1` in 6857*GNU* | *'with BFD'*) 6858 symcode='[ABCDGIRSTW]' ;; 6859esac 6860 6861# Transform an extracted symbol line into a proper C declaration. 6862# Some systems (esp. on ia64) link data and code symbols differently, 6863# so use this general approach. 6864lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6865 6866# Transform an extracted symbol line into symbol name and symbol address 6867lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6868lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6869 6870# Handle CRLF in mingw tool chain 6871opt_cr= 6872case $build_os in 6873mingw*) 6874 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6875 ;; 6876esac 6877 6878# Try without a prefix underscore, then with it. 6879for ac_symprfx in "" "_"; do 6880 6881 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6882 symxfrm="\\1 $ac_symprfx\\2 \\2" 6883 6884 # Write the raw and C identifiers. 6885 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6886 # Fake it for dumpbin and say T for any non-static function 6887 # and D for any global variable. 6888 # Also find C++ and __fastcall symbols from MSVC++, 6889 # which start with @ or ?. 6890 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6891" {last_section=section; section=\$ 3};"\ 6892" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6893" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6894" \$ 0!~/External *\|/{next};"\ 6895" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6896" {if(hide[section]) next};"\ 6897" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6898" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6899" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6900" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6901" ' prfx=^$ac_symprfx" 6902 else 6903 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6904 fi 6905 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6906 6907 # Check to see that the pipe works correctly. 6908 pipe_works=no 6909 6910 rm -f conftest* 6911 cat > conftest.$ac_ext <<_LT_EOF 6912#ifdef __cplusplus 6913extern "C" { 6914#endif 6915char nm_test_var; 6916void nm_test_func(void); 6917void nm_test_func(void){} 6918#ifdef __cplusplus 6919} 6920#endif 6921int main(){nm_test_var='a';nm_test_func();return(0);} 6922_LT_EOF 6923 6924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6925 (eval $ac_compile) 2>&5 6926 ac_status=$? 6927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6928 test $ac_status = 0; }; then 6929 # Now try to grab the symbols. 6930 nlist=conftest.nm 6931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6932 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6933 ac_status=$? 6934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6935 test $ac_status = 0; } && test -s "$nlist"; then 6936 # Try sorting and uniquifying the output. 6937 if sort "$nlist" | uniq > "$nlist"T; then 6938 mv -f "$nlist"T "$nlist" 6939 else 6940 rm -f "$nlist"T 6941 fi 6942 6943 # Make sure that we snagged all the symbols we need. 6944 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6945 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6946 cat <<_LT_EOF > conftest.$ac_ext 6947/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6948#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6949/* DATA imports from DLLs on WIN32 con't be const, because runtime 6950 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6951# define LT_DLSYM_CONST 6952#elif defined(__osf__) 6953/* This system does not cope well with relocations in const data. */ 6954# define LT_DLSYM_CONST 6955#else 6956# define LT_DLSYM_CONST const 6957#endif 6958 6959#ifdef __cplusplus 6960extern "C" { 6961#endif 6962 6963_LT_EOF 6964 # Now generate the symbol file. 6965 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6966 6967 cat <<_LT_EOF >> conftest.$ac_ext 6968 6969/* The mapping between symbol names and symbols. */ 6970LT_DLSYM_CONST struct { 6971 const char *name; 6972 void *address; 6973} 6974lt__PROGRAM__LTX_preloaded_symbols[] = 6975{ 6976 { "@PROGRAM@", (void *) 0 }, 6977_LT_EOF 6978 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6979 cat <<\_LT_EOF >> conftest.$ac_ext 6980 {0, (void *) 0} 6981}; 6982 6983/* This works around a problem in FreeBSD linker */ 6984#ifdef FREEBSD_WORKAROUND 6985static const void *lt_preloaded_setup() { 6986 return lt__PROGRAM__LTX_preloaded_symbols; 6987} 6988#endif 6989 6990#ifdef __cplusplus 6991} 6992#endif 6993_LT_EOF 6994 # Now try linking the two files. 6995 mv conftest.$ac_objext conftstm.$ac_objext 6996 lt_globsym_save_LIBS=$LIBS 6997 lt_globsym_save_CFLAGS=$CFLAGS 6998 LIBS="conftstm.$ac_objext" 6999 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7001 (eval $ac_link) 2>&5 7002 ac_status=$? 7003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7004 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7005 pipe_works=yes 7006 fi 7007 LIBS=$lt_globsym_save_LIBS 7008 CFLAGS=$lt_globsym_save_CFLAGS 7009 else 7010 echo "cannot find nm_test_func in $nlist" >&5 7011 fi 7012 else 7013 echo "cannot find nm_test_var in $nlist" >&5 7014 fi 7015 else 7016 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7017 fi 7018 else 7019 echo "$progname: failed program was:" >&5 7020 cat conftest.$ac_ext >&5 7021 fi 7022 rm -rf conftest* conftst* 7023 7024 # Do not use the global_symbol_pipe unless it works. 7025 if test "$pipe_works" = yes; then 7026 break 7027 else 7028 lt_cv_sys_global_symbol_pipe= 7029 fi 7030done 7031 7032fi 7033 7034if test -z "$lt_cv_sys_global_symbol_pipe"; then 7035 lt_cv_sys_global_symbol_to_cdecl= 7036fi 7037if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7039$as_echo "failed" >&6; } 7040else 7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7042$as_echo "ok" >&6; } 7043fi 7044 7045# Response file support. 7046if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7047 nm_file_list_spec='@' 7048elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7049 nm_file_list_spec='@' 7050fi 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7079$as_echo_n "checking for sysroot... " >&6; } 7080 7081# Check whether --with-sysroot was given. 7082if test "${with_sysroot+set}" = set; then : 7083 withval=$with_sysroot; 7084else 7085 with_sysroot=no 7086fi 7087 7088 7089lt_sysroot= 7090case ${with_sysroot} in #( 7091 yes) 7092 if test "$GCC" = yes; then 7093 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7094 fi 7095 ;; #( 7096 /*) 7097 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7098 ;; #( 7099 no|'') 7100 ;; #( 7101 *) 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7103$as_echo "${with_sysroot}" >&6; } 7104 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7105 ;; 7106esac 7107 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7109$as_echo "${lt_sysroot:-no}" >&6; } 7110 7111 7112 7113 7114 7115# Check whether --enable-libtool-lock was given. 7116if test "${enable_libtool_lock+set}" = set; then : 7117 enableval=$enable_libtool_lock; 7118fi 7119 7120test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7121 7122# Some flags need to be propagated to the compiler or linker for good 7123# libtool support. 7124case $host in 7125ia64-*-hpux*) 7126 # Find out which ABI we are using. 7127 echo 'int i;' > conftest.$ac_ext 7128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7129 (eval $ac_compile) 2>&5 7130 ac_status=$? 7131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7132 test $ac_status = 0; }; then 7133 case `/usr/bin/file conftest.$ac_objext` in 7134 *ELF-32*) 7135 HPUX_IA64_MODE="32" 7136 ;; 7137 *ELF-64*) 7138 HPUX_IA64_MODE="64" 7139 ;; 7140 esac 7141 fi 7142 rm -rf conftest* 7143 ;; 7144*-*-irix6*) 7145 # Find out which ABI we are using. 7146 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7148 (eval $ac_compile) 2>&5 7149 ac_status=$? 7150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7151 test $ac_status = 0; }; then 7152 if test "$lt_cv_prog_gnu_ld" = yes; then 7153 case `/usr/bin/file conftest.$ac_objext` in 7154 *32-bit*) 7155 LD="${LD-ld} -melf32bsmip" 7156 ;; 7157 *N32*) 7158 LD="${LD-ld} -melf32bmipn32" 7159 ;; 7160 *64-bit*) 7161 LD="${LD-ld} -melf64bmip" 7162 ;; 7163 esac 7164 else 7165 case `/usr/bin/file conftest.$ac_objext` in 7166 *32-bit*) 7167 LD="${LD-ld} -32" 7168 ;; 7169 *N32*) 7170 LD="${LD-ld} -n32" 7171 ;; 7172 *64-bit*) 7173 LD="${LD-ld} -64" 7174 ;; 7175 esac 7176 fi 7177 fi 7178 rm -rf conftest* 7179 ;; 7180 7181x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7182s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7183 # Find out which ABI we are using. 7184 echo 'int i;' > conftest.$ac_ext 7185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7186 (eval $ac_compile) 2>&5 7187 ac_status=$? 7188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7189 test $ac_status = 0; }; then 7190 case `/usr/bin/file conftest.o` in 7191 *32-bit*) 7192 case $host in 7193 x86_64-*kfreebsd*-gnu) 7194 LD="${LD-ld} -m elf_i386_fbsd" 7195 ;; 7196 x86_64-*linux*) 7197 case `/usr/bin/file conftest.o` in 7198 *x86-64*) 7199 LD="${LD-ld} -m elf32_x86_64" 7200 ;; 7201 *) 7202 LD="${LD-ld} -m elf_i386" 7203 ;; 7204 esac 7205 ;; 7206 powerpc64le-*) 7207 LD="${LD-ld} -m elf32lppclinux" 7208 ;; 7209 powerpc64-*) 7210 LD="${LD-ld} -m elf32ppclinux" 7211 ;; 7212 s390x-*linux*) 7213 LD="${LD-ld} -m elf_s390" 7214 ;; 7215 sparc64-*linux*) 7216 LD="${LD-ld} -m elf32_sparc" 7217 ;; 7218 esac 7219 ;; 7220 *64-bit*) 7221 case $host in 7222 x86_64-*kfreebsd*-gnu) 7223 LD="${LD-ld} -m elf_x86_64_fbsd" 7224 ;; 7225 x86_64-*linux*) 7226 LD="${LD-ld} -m elf_x86_64" 7227 ;; 7228 powerpcle-*) 7229 LD="${LD-ld} -m elf64lppc" 7230 ;; 7231 powerpc-*) 7232 LD="${LD-ld} -m elf64ppc" 7233 ;; 7234 s390*-*linux*|s390*-*tpf*) 7235 LD="${LD-ld} -m elf64_s390" 7236 ;; 7237 sparc*-*linux*) 7238 LD="${LD-ld} -m elf64_sparc" 7239 ;; 7240 esac 7241 ;; 7242 esac 7243 fi 7244 rm -rf conftest* 7245 ;; 7246 7247*-*-sco3.2v5*) 7248 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7249 SAVE_CFLAGS="$CFLAGS" 7250 CFLAGS="$CFLAGS -belf" 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7252$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7253if ${lt_cv_cc_needs_belf+:} false; then : 7254 $as_echo_n "(cached) " >&6 7255else 7256 ac_ext=c 7257ac_cpp='$CPP $CPPFLAGS' 7258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7260ac_compiler_gnu=$ac_cv_c_compiler_gnu 7261 7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7263/* end confdefs.h. */ 7264 7265int 7266main () 7267{ 7268 7269 ; 7270 return 0; 7271} 7272_ACEOF 7273if ac_fn_c_try_link "$LINENO"; then : 7274 lt_cv_cc_needs_belf=yes 7275else 7276 lt_cv_cc_needs_belf=no 7277fi 7278rm -f core conftest.err conftest.$ac_objext \ 7279 conftest$ac_exeext conftest.$ac_ext 7280 ac_ext=c 7281ac_cpp='$CPP $CPPFLAGS' 7282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7284ac_compiler_gnu=$ac_cv_c_compiler_gnu 7285 7286fi 7287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7288$as_echo "$lt_cv_cc_needs_belf" >&6; } 7289 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7290 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7291 CFLAGS="$SAVE_CFLAGS" 7292 fi 7293 ;; 7294*-*solaris*) 7295 # Find out which ABI we are using. 7296 echo 'int i;' > conftest.$ac_ext 7297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7298 (eval $ac_compile) 2>&5 7299 ac_status=$? 7300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7301 test $ac_status = 0; }; then 7302 case `/usr/bin/file conftest.o` in 7303 *64-bit*) 7304 case $lt_cv_prog_gnu_ld in 7305 yes*) 7306 case $host in 7307 i?86-*-solaris*) 7308 LD="${LD-ld} -m elf_x86_64" 7309 ;; 7310 sparc*-*-solaris*) 7311 LD="${LD-ld} -m elf64_sparc" 7312 ;; 7313 esac 7314 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7315 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7316 LD="${LD-ld}_sol2" 7317 fi 7318 ;; 7319 *) 7320 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7321 LD="${LD-ld} -64" 7322 fi 7323 ;; 7324 esac 7325 ;; 7326 esac 7327 fi 7328 rm -rf conftest* 7329 ;; 7330esac 7331 7332need_locks="$enable_libtool_lock" 7333 7334if test -n "$ac_tool_prefix"; then 7335 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7336set dummy ${ac_tool_prefix}mt; ac_word=$2 7337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7338$as_echo_n "checking for $ac_word... " >&6; } 7339if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7340 $as_echo_n "(cached) " >&6 7341else 7342 if test -n "$MANIFEST_TOOL"; then 7343 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7344else 7345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7346for as_dir in $PATH 7347do 7348 IFS=$as_save_IFS 7349 test -z "$as_dir" && as_dir=. 7350 for ac_exec_ext in '' $ac_executable_extensions; do 7351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7352 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7354 break 2 7355 fi 7356done 7357 done 7358IFS=$as_save_IFS 7359 7360fi 7361fi 7362MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7363if test -n "$MANIFEST_TOOL"; then 7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7365$as_echo "$MANIFEST_TOOL" >&6; } 7366else 7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7368$as_echo "no" >&6; } 7369fi 7370 7371 7372fi 7373if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7374 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7375 # Extract the first word of "mt", so it can be a program name with args. 7376set dummy mt; ac_word=$2 7377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7378$as_echo_n "checking for $ac_word... " >&6; } 7379if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7380 $as_echo_n "(cached) " >&6 7381else 7382 if test -n "$ac_ct_MANIFEST_TOOL"; then 7383 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7384else 7385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7386for as_dir in $PATH 7387do 7388 IFS=$as_save_IFS 7389 test -z "$as_dir" && as_dir=. 7390 for ac_exec_ext in '' $ac_executable_extensions; do 7391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7392 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7394 break 2 7395 fi 7396done 7397 done 7398IFS=$as_save_IFS 7399 7400fi 7401fi 7402ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7403if test -n "$ac_ct_MANIFEST_TOOL"; then 7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7405$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7406else 7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7408$as_echo "no" >&6; } 7409fi 7410 7411 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7412 MANIFEST_TOOL=":" 7413 else 7414 case $cross_compiling:$ac_tool_warned in 7415yes:) 7416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7418ac_tool_warned=yes ;; 7419esac 7420 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7421 fi 7422else 7423 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7424fi 7425 7426test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7428$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7429if ${lt_cv_path_mainfest_tool+:} false; then : 7430 $as_echo_n "(cached) " >&6 7431else 7432 lt_cv_path_mainfest_tool=no 7433 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7434 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7435 cat conftest.err >&5 7436 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7437 lt_cv_path_mainfest_tool=yes 7438 fi 7439 rm -f conftest* 7440fi 7441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7442$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7443if test "x$lt_cv_path_mainfest_tool" != xyes; then 7444 MANIFEST_TOOL=: 7445fi 7446 7447 7448 7449 7450 7451 7452 case $host_os in 7453 rhapsody* | darwin*) 7454 if test -n "$ac_tool_prefix"; then 7455 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7456set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7458$as_echo_n "checking for $ac_word... " >&6; } 7459if ${ac_cv_prog_DSYMUTIL+:} false; then : 7460 $as_echo_n "(cached) " >&6 7461else 7462 if test -n "$DSYMUTIL"; then 7463 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7464else 7465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7466for as_dir in $PATH 7467do 7468 IFS=$as_save_IFS 7469 test -z "$as_dir" && as_dir=. 7470 for ac_exec_ext in '' $ac_executable_extensions; do 7471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7472 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7474 break 2 7475 fi 7476done 7477 done 7478IFS=$as_save_IFS 7479 7480fi 7481fi 7482DSYMUTIL=$ac_cv_prog_DSYMUTIL 7483if test -n "$DSYMUTIL"; then 7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7485$as_echo "$DSYMUTIL" >&6; } 7486else 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7488$as_echo "no" >&6; } 7489fi 7490 7491 7492fi 7493if test -z "$ac_cv_prog_DSYMUTIL"; then 7494 ac_ct_DSYMUTIL=$DSYMUTIL 7495 # Extract the first word of "dsymutil", so it can be a program name with args. 7496set dummy dsymutil; ac_word=$2 7497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7498$as_echo_n "checking for $ac_word... " >&6; } 7499if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7500 $as_echo_n "(cached) " >&6 7501else 7502 if test -n "$ac_ct_DSYMUTIL"; then 7503 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7504else 7505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7506for as_dir in $PATH 7507do 7508 IFS=$as_save_IFS 7509 test -z "$as_dir" && as_dir=. 7510 for ac_exec_ext in '' $ac_executable_extensions; do 7511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7512 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7514 break 2 7515 fi 7516done 7517 done 7518IFS=$as_save_IFS 7519 7520fi 7521fi 7522ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7523if test -n "$ac_ct_DSYMUTIL"; then 7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7525$as_echo "$ac_ct_DSYMUTIL" >&6; } 7526else 7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7528$as_echo "no" >&6; } 7529fi 7530 7531 if test "x$ac_ct_DSYMUTIL" = x; then 7532 DSYMUTIL=":" 7533 else 7534 case $cross_compiling:$ac_tool_warned in 7535yes:) 7536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7538ac_tool_warned=yes ;; 7539esac 7540 DSYMUTIL=$ac_ct_DSYMUTIL 7541 fi 7542else 7543 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7544fi 7545 7546 if test -n "$ac_tool_prefix"; then 7547 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7548set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7550$as_echo_n "checking for $ac_word... " >&6; } 7551if ${ac_cv_prog_NMEDIT+:} false; then : 7552 $as_echo_n "(cached) " >&6 7553else 7554 if test -n "$NMEDIT"; then 7555 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7556else 7557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7558for as_dir in $PATH 7559do 7560 IFS=$as_save_IFS 7561 test -z "$as_dir" && as_dir=. 7562 for ac_exec_ext in '' $ac_executable_extensions; do 7563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7564 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7566 break 2 7567 fi 7568done 7569 done 7570IFS=$as_save_IFS 7571 7572fi 7573fi 7574NMEDIT=$ac_cv_prog_NMEDIT 7575if test -n "$NMEDIT"; then 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7577$as_echo "$NMEDIT" >&6; } 7578else 7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7580$as_echo "no" >&6; } 7581fi 7582 7583 7584fi 7585if test -z "$ac_cv_prog_NMEDIT"; then 7586 ac_ct_NMEDIT=$NMEDIT 7587 # Extract the first word of "nmedit", so it can be a program name with args. 7588set dummy nmedit; ac_word=$2 7589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7590$as_echo_n "checking for $ac_word... " >&6; } 7591if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7592 $as_echo_n "(cached) " >&6 7593else 7594 if test -n "$ac_ct_NMEDIT"; then 7595 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7596else 7597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7598for as_dir in $PATH 7599do 7600 IFS=$as_save_IFS 7601 test -z "$as_dir" && as_dir=. 7602 for ac_exec_ext in '' $ac_executable_extensions; do 7603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7604 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7606 break 2 7607 fi 7608done 7609 done 7610IFS=$as_save_IFS 7611 7612fi 7613fi 7614ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7615if test -n "$ac_ct_NMEDIT"; then 7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7617$as_echo "$ac_ct_NMEDIT" >&6; } 7618else 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7620$as_echo "no" >&6; } 7621fi 7622 7623 if test "x$ac_ct_NMEDIT" = x; then 7624 NMEDIT=":" 7625 else 7626 case $cross_compiling:$ac_tool_warned in 7627yes:) 7628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7630ac_tool_warned=yes ;; 7631esac 7632 NMEDIT=$ac_ct_NMEDIT 7633 fi 7634else 7635 NMEDIT="$ac_cv_prog_NMEDIT" 7636fi 7637 7638 if test -n "$ac_tool_prefix"; then 7639 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7640set dummy ${ac_tool_prefix}lipo; ac_word=$2 7641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7642$as_echo_n "checking for $ac_word... " >&6; } 7643if ${ac_cv_prog_LIPO+:} false; then : 7644 $as_echo_n "(cached) " >&6 7645else 7646 if test -n "$LIPO"; then 7647 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7648else 7649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7650for as_dir in $PATH 7651do 7652 IFS=$as_save_IFS 7653 test -z "$as_dir" && as_dir=. 7654 for ac_exec_ext in '' $ac_executable_extensions; do 7655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7656 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7658 break 2 7659 fi 7660done 7661 done 7662IFS=$as_save_IFS 7663 7664fi 7665fi 7666LIPO=$ac_cv_prog_LIPO 7667if test -n "$LIPO"; then 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7669$as_echo "$LIPO" >&6; } 7670else 7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7672$as_echo "no" >&6; } 7673fi 7674 7675 7676fi 7677if test -z "$ac_cv_prog_LIPO"; then 7678 ac_ct_LIPO=$LIPO 7679 # Extract the first word of "lipo", so it can be a program name with args. 7680set dummy lipo; ac_word=$2 7681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7682$as_echo_n "checking for $ac_word... " >&6; } 7683if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7684 $as_echo_n "(cached) " >&6 7685else 7686 if test -n "$ac_ct_LIPO"; then 7687 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7688else 7689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7690for as_dir in $PATH 7691do 7692 IFS=$as_save_IFS 7693 test -z "$as_dir" && as_dir=. 7694 for ac_exec_ext in '' $ac_executable_extensions; do 7695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7696 ac_cv_prog_ac_ct_LIPO="lipo" 7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7698 break 2 7699 fi 7700done 7701 done 7702IFS=$as_save_IFS 7703 7704fi 7705fi 7706ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7707if test -n "$ac_ct_LIPO"; then 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7709$as_echo "$ac_ct_LIPO" >&6; } 7710else 7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7712$as_echo "no" >&6; } 7713fi 7714 7715 if test "x$ac_ct_LIPO" = x; then 7716 LIPO=":" 7717 else 7718 case $cross_compiling:$ac_tool_warned in 7719yes:) 7720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7722ac_tool_warned=yes ;; 7723esac 7724 LIPO=$ac_ct_LIPO 7725 fi 7726else 7727 LIPO="$ac_cv_prog_LIPO" 7728fi 7729 7730 if test -n "$ac_tool_prefix"; then 7731 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7732set dummy ${ac_tool_prefix}otool; ac_word=$2 7733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7734$as_echo_n "checking for $ac_word... " >&6; } 7735if ${ac_cv_prog_OTOOL+:} false; then : 7736 $as_echo_n "(cached) " >&6 7737else 7738 if test -n "$OTOOL"; then 7739 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7740else 7741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7742for as_dir in $PATH 7743do 7744 IFS=$as_save_IFS 7745 test -z "$as_dir" && as_dir=. 7746 for ac_exec_ext in '' $ac_executable_extensions; do 7747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7748 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7750 break 2 7751 fi 7752done 7753 done 7754IFS=$as_save_IFS 7755 7756fi 7757fi 7758OTOOL=$ac_cv_prog_OTOOL 7759if test -n "$OTOOL"; then 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7761$as_echo "$OTOOL" >&6; } 7762else 7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7764$as_echo "no" >&6; } 7765fi 7766 7767 7768fi 7769if test -z "$ac_cv_prog_OTOOL"; then 7770 ac_ct_OTOOL=$OTOOL 7771 # Extract the first word of "otool", so it can be a program name with args. 7772set dummy otool; ac_word=$2 7773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7774$as_echo_n "checking for $ac_word... " >&6; } 7775if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7776 $as_echo_n "(cached) " >&6 7777else 7778 if test -n "$ac_ct_OTOOL"; then 7779 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7780else 7781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7782for as_dir in $PATH 7783do 7784 IFS=$as_save_IFS 7785 test -z "$as_dir" && as_dir=. 7786 for ac_exec_ext in '' $ac_executable_extensions; do 7787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7788 ac_cv_prog_ac_ct_OTOOL="otool" 7789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7790 break 2 7791 fi 7792done 7793 done 7794IFS=$as_save_IFS 7795 7796fi 7797fi 7798ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7799if test -n "$ac_ct_OTOOL"; then 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7801$as_echo "$ac_ct_OTOOL" >&6; } 7802else 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7804$as_echo "no" >&6; } 7805fi 7806 7807 if test "x$ac_ct_OTOOL" = x; then 7808 OTOOL=":" 7809 else 7810 case $cross_compiling:$ac_tool_warned in 7811yes:) 7812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7814ac_tool_warned=yes ;; 7815esac 7816 OTOOL=$ac_ct_OTOOL 7817 fi 7818else 7819 OTOOL="$ac_cv_prog_OTOOL" 7820fi 7821 7822 if test -n "$ac_tool_prefix"; then 7823 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7824set dummy ${ac_tool_prefix}otool64; ac_word=$2 7825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7826$as_echo_n "checking for $ac_word... " >&6; } 7827if ${ac_cv_prog_OTOOL64+:} false; then : 7828 $as_echo_n "(cached) " >&6 7829else 7830 if test -n "$OTOOL64"; then 7831 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7832else 7833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7834for as_dir in $PATH 7835do 7836 IFS=$as_save_IFS 7837 test -z "$as_dir" && as_dir=. 7838 for ac_exec_ext in '' $ac_executable_extensions; do 7839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7840 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7842 break 2 7843 fi 7844done 7845 done 7846IFS=$as_save_IFS 7847 7848fi 7849fi 7850OTOOL64=$ac_cv_prog_OTOOL64 7851if test -n "$OTOOL64"; then 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7853$as_echo "$OTOOL64" >&6; } 7854else 7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7856$as_echo "no" >&6; } 7857fi 7858 7859 7860fi 7861if test -z "$ac_cv_prog_OTOOL64"; then 7862 ac_ct_OTOOL64=$OTOOL64 7863 # Extract the first word of "otool64", so it can be a program name with args. 7864set dummy otool64; ac_word=$2 7865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7866$as_echo_n "checking for $ac_word... " >&6; } 7867if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7868 $as_echo_n "(cached) " >&6 7869else 7870 if test -n "$ac_ct_OTOOL64"; then 7871 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7872else 7873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7874for as_dir in $PATH 7875do 7876 IFS=$as_save_IFS 7877 test -z "$as_dir" && as_dir=. 7878 for ac_exec_ext in '' $ac_executable_extensions; do 7879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7880 ac_cv_prog_ac_ct_OTOOL64="otool64" 7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7882 break 2 7883 fi 7884done 7885 done 7886IFS=$as_save_IFS 7887 7888fi 7889fi 7890ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7891if test -n "$ac_ct_OTOOL64"; then 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7893$as_echo "$ac_ct_OTOOL64" >&6; } 7894else 7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7896$as_echo "no" >&6; } 7897fi 7898 7899 if test "x$ac_ct_OTOOL64" = x; then 7900 OTOOL64=":" 7901 else 7902 case $cross_compiling:$ac_tool_warned in 7903yes:) 7904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7906ac_tool_warned=yes ;; 7907esac 7908 OTOOL64=$ac_ct_OTOOL64 7909 fi 7910else 7911 OTOOL64="$ac_cv_prog_OTOOL64" 7912fi 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7941$as_echo_n "checking for -single_module linker flag... " >&6; } 7942if ${lt_cv_apple_cc_single_mod+:} false; then : 7943 $as_echo_n "(cached) " >&6 7944else 7945 lt_cv_apple_cc_single_mod=no 7946 if test -z "${LT_MULTI_MODULE}"; then 7947 # By default we will add the -single_module flag. You can override 7948 # by either setting the environment variable LT_MULTI_MODULE 7949 # non-empty at configure time, or by adding -multi_module to the 7950 # link flags. 7951 rm -rf libconftest.dylib* 7952 echo "int foo(void){return 1;}" > conftest.c 7953 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7954-dynamiclib -Wl,-single_module conftest.c" >&5 7955 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7956 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7957 _lt_result=$? 7958 # If there is a non-empty error log, and "single_module" 7959 # appears in it, assume the flag caused a linker warning 7960 if test -s conftest.err && $GREP single_module conftest.err; then 7961 cat conftest.err >&5 7962 # Otherwise, if the output was created with a 0 exit code from 7963 # the compiler, it worked. 7964 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7965 lt_cv_apple_cc_single_mod=yes 7966 else 7967 cat conftest.err >&5 7968 fi 7969 rm -rf libconftest.dylib* 7970 rm -f conftest.* 7971 fi 7972fi 7973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7974$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7975 7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7977$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7978if ${lt_cv_ld_exported_symbols_list+:} false; then : 7979 $as_echo_n "(cached) " >&6 7980else 7981 lt_cv_ld_exported_symbols_list=no 7982 save_LDFLAGS=$LDFLAGS 7983 echo "_main" > conftest.sym 7984 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7986/* end confdefs.h. */ 7987 7988int 7989main () 7990{ 7991 7992 ; 7993 return 0; 7994} 7995_ACEOF 7996if ac_fn_c_try_link "$LINENO"; then : 7997 lt_cv_ld_exported_symbols_list=yes 7998else 7999 lt_cv_ld_exported_symbols_list=no 8000fi 8001rm -f core conftest.err conftest.$ac_objext \ 8002 conftest$ac_exeext conftest.$ac_ext 8003 LDFLAGS="$save_LDFLAGS" 8004 8005fi 8006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8007$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8008 8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8010$as_echo_n "checking for -force_load linker flag... " >&6; } 8011if ${lt_cv_ld_force_load+:} false; then : 8012 $as_echo_n "(cached) " >&6 8013else 8014 lt_cv_ld_force_load=no 8015 cat > conftest.c << _LT_EOF 8016int forced_loaded() { return 2;} 8017_LT_EOF 8018 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8019 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8020 echo "$AR cru libconftest.a conftest.o" >&5 8021 $AR cru libconftest.a conftest.o 2>&5 8022 echo "$RANLIB libconftest.a" >&5 8023 $RANLIB libconftest.a 2>&5 8024 cat > conftest.c << _LT_EOF 8025int main() { return 0;} 8026_LT_EOF 8027 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8028 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8029 _lt_result=$? 8030 if test -s conftest.err && $GREP force_load conftest.err; then 8031 cat conftest.err >&5 8032 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8033 lt_cv_ld_force_load=yes 8034 else 8035 cat conftest.err >&5 8036 fi 8037 rm -f conftest.err libconftest.a conftest conftest.c 8038 rm -rf conftest.dSYM 8039 8040fi 8041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8042$as_echo "$lt_cv_ld_force_load" >&6; } 8043 case $host_os in 8044 rhapsody* | darwin1.[012]) 8045 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8046 darwin1.*) 8047 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8048 darwin*) # darwin 5.x on 8049 # if running on 10.5 or later, the deployment target defaults 8050 # to the OS version, if on x86, and 10.4, the deployment 8051 # target defaults to 10.4. Don't you love it? 8052 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8053 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8054 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8055 10.[012]*) 8056 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8057 10.*) 8058 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8059 esac 8060 ;; 8061 esac 8062 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8063 _lt_dar_single_mod='$single_module' 8064 fi 8065 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8066 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8067 else 8068 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8069 fi 8070 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8071 _lt_dsymutil='~$DSYMUTIL $lib || :' 8072 else 8073 _lt_dsymutil= 8074 fi 8075 ;; 8076 esac 8077 8078for ac_header in dlfcn.h 8079do : 8080 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8081" 8082if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8083 cat >>confdefs.h <<_ACEOF 8084#define HAVE_DLFCN_H 1 8085_ACEOF 8086 8087fi 8088 8089done 8090 8091 8092 8093 8094 8095# Set options 8096enable_win32_dll=yes 8097 8098case $host in 8099*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8100 if test -n "$ac_tool_prefix"; then 8101 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8102set dummy ${ac_tool_prefix}as; ac_word=$2 8103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8104$as_echo_n "checking for $ac_word... " >&6; } 8105if ${ac_cv_prog_AS+:} false; then : 8106 $as_echo_n "(cached) " >&6 8107else 8108 if test -n "$AS"; then 8109 ac_cv_prog_AS="$AS" # Let the user override the test. 8110else 8111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8112for as_dir in $PATH 8113do 8114 IFS=$as_save_IFS 8115 test -z "$as_dir" && as_dir=. 8116 for ac_exec_ext in '' $ac_executable_extensions; do 8117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8118 ac_cv_prog_AS="${ac_tool_prefix}as" 8119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8120 break 2 8121 fi 8122done 8123 done 8124IFS=$as_save_IFS 8125 8126fi 8127fi 8128AS=$ac_cv_prog_AS 8129if test -n "$AS"; then 8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8131$as_echo "$AS" >&6; } 8132else 8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8134$as_echo "no" >&6; } 8135fi 8136 8137 8138fi 8139if test -z "$ac_cv_prog_AS"; then 8140 ac_ct_AS=$AS 8141 # Extract the first word of "as", so it can be a program name with args. 8142set dummy as; ac_word=$2 8143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8144$as_echo_n "checking for $ac_word... " >&6; } 8145if ${ac_cv_prog_ac_ct_AS+:} false; then : 8146 $as_echo_n "(cached) " >&6 8147else 8148 if test -n "$ac_ct_AS"; then 8149 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8150else 8151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8152for as_dir in $PATH 8153do 8154 IFS=$as_save_IFS 8155 test -z "$as_dir" && as_dir=. 8156 for ac_exec_ext in '' $ac_executable_extensions; do 8157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8158 ac_cv_prog_ac_ct_AS="as" 8159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8160 break 2 8161 fi 8162done 8163 done 8164IFS=$as_save_IFS 8165 8166fi 8167fi 8168ac_ct_AS=$ac_cv_prog_ac_ct_AS 8169if test -n "$ac_ct_AS"; then 8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8171$as_echo "$ac_ct_AS" >&6; } 8172else 8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8174$as_echo "no" >&6; } 8175fi 8176 8177 if test "x$ac_ct_AS" = x; then 8178 AS="false" 8179 else 8180 case $cross_compiling:$ac_tool_warned in 8181yes:) 8182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8184ac_tool_warned=yes ;; 8185esac 8186 AS=$ac_ct_AS 8187 fi 8188else 8189 AS="$ac_cv_prog_AS" 8190fi 8191 8192 if test -n "$ac_tool_prefix"; then 8193 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8194set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8196$as_echo_n "checking for $ac_word... " >&6; } 8197if ${ac_cv_prog_DLLTOOL+:} false; then : 8198 $as_echo_n "(cached) " >&6 8199else 8200 if test -n "$DLLTOOL"; then 8201 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8202else 8203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8204for as_dir in $PATH 8205do 8206 IFS=$as_save_IFS 8207 test -z "$as_dir" && as_dir=. 8208 for ac_exec_ext in '' $ac_executable_extensions; do 8209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8210 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8212 break 2 8213 fi 8214done 8215 done 8216IFS=$as_save_IFS 8217 8218fi 8219fi 8220DLLTOOL=$ac_cv_prog_DLLTOOL 8221if test -n "$DLLTOOL"; then 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8223$as_echo "$DLLTOOL" >&6; } 8224else 8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8226$as_echo "no" >&6; } 8227fi 8228 8229 8230fi 8231if test -z "$ac_cv_prog_DLLTOOL"; then 8232 ac_ct_DLLTOOL=$DLLTOOL 8233 # Extract the first word of "dlltool", so it can be a program name with args. 8234set dummy dlltool; ac_word=$2 8235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8236$as_echo_n "checking for $ac_word... " >&6; } 8237if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8238 $as_echo_n "(cached) " >&6 8239else 8240 if test -n "$ac_ct_DLLTOOL"; then 8241 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8242else 8243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8244for as_dir in $PATH 8245do 8246 IFS=$as_save_IFS 8247 test -z "$as_dir" && as_dir=. 8248 for ac_exec_ext in '' $ac_executable_extensions; do 8249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8250 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8252 break 2 8253 fi 8254done 8255 done 8256IFS=$as_save_IFS 8257 8258fi 8259fi 8260ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8261if test -n "$ac_ct_DLLTOOL"; then 8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8263$as_echo "$ac_ct_DLLTOOL" >&6; } 8264else 8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8266$as_echo "no" >&6; } 8267fi 8268 8269 if test "x$ac_ct_DLLTOOL" = x; then 8270 DLLTOOL="false" 8271 else 8272 case $cross_compiling:$ac_tool_warned in 8273yes:) 8274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8276ac_tool_warned=yes ;; 8277esac 8278 DLLTOOL=$ac_ct_DLLTOOL 8279 fi 8280else 8281 DLLTOOL="$ac_cv_prog_DLLTOOL" 8282fi 8283 8284 if test -n "$ac_tool_prefix"; then 8285 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8286set dummy ${ac_tool_prefix}objdump; ac_word=$2 8287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8288$as_echo_n "checking for $ac_word... " >&6; } 8289if ${ac_cv_prog_OBJDUMP+:} false; then : 8290 $as_echo_n "(cached) " >&6 8291else 8292 if test -n "$OBJDUMP"; then 8293 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8294else 8295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8296for as_dir in $PATH 8297do 8298 IFS=$as_save_IFS 8299 test -z "$as_dir" && as_dir=. 8300 for ac_exec_ext in '' $ac_executable_extensions; do 8301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8302 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8304 break 2 8305 fi 8306done 8307 done 8308IFS=$as_save_IFS 8309 8310fi 8311fi 8312OBJDUMP=$ac_cv_prog_OBJDUMP 8313if test -n "$OBJDUMP"; then 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8315$as_echo "$OBJDUMP" >&6; } 8316else 8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8318$as_echo "no" >&6; } 8319fi 8320 8321 8322fi 8323if test -z "$ac_cv_prog_OBJDUMP"; then 8324 ac_ct_OBJDUMP=$OBJDUMP 8325 # Extract the first word of "objdump", so it can be a program name with args. 8326set dummy objdump; ac_word=$2 8327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8328$as_echo_n "checking for $ac_word... " >&6; } 8329if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8330 $as_echo_n "(cached) " >&6 8331else 8332 if test -n "$ac_ct_OBJDUMP"; then 8333 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8334else 8335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8336for as_dir in $PATH 8337do 8338 IFS=$as_save_IFS 8339 test -z "$as_dir" && as_dir=. 8340 for ac_exec_ext in '' $ac_executable_extensions; do 8341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8342 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8344 break 2 8345 fi 8346done 8347 done 8348IFS=$as_save_IFS 8349 8350fi 8351fi 8352ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8353if test -n "$ac_ct_OBJDUMP"; then 8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8355$as_echo "$ac_ct_OBJDUMP" >&6; } 8356else 8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8358$as_echo "no" >&6; } 8359fi 8360 8361 if test "x$ac_ct_OBJDUMP" = x; then 8362 OBJDUMP="false" 8363 else 8364 case $cross_compiling:$ac_tool_warned in 8365yes:) 8366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8368ac_tool_warned=yes ;; 8369esac 8370 OBJDUMP=$ac_ct_OBJDUMP 8371 fi 8372else 8373 OBJDUMP="$ac_cv_prog_OBJDUMP" 8374fi 8375 8376 ;; 8377esac 8378 8379test -z "$AS" && AS=as 8380 8381 8382 8383 8384 8385test -z "$DLLTOOL" && DLLTOOL=dlltool 8386 8387 8388 8389 8390 8391test -z "$OBJDUMP" && OBJDUMP=objdump 8392 8393 8394 8395 8396 8397 8398 8399 enable_dlopen=no 8400 8401 8402 8403 # Check whether --enable-shared was given. 8404if test "${enable_shared+set}" = set; then : 8405 enableval=$enable_shared; p=${PACKAGE-default} 8406 case $enableval in 8407 yes) enable_shared=yes ;; 8408 no) enable_shared=no ;; 8409 *) 8410 enable_shared=no 8411 # Look at the argument we got. We use all the common list separators. 8412 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8413 for pkg in $enableval; do 8414 IFS="$lt_save_ifs" 8415 if test "X$pkg" = "X$p"; then 8416 enable_shared=yes 8417 fi 8418 done 8419 IFS="$lt_save_ifs" 8420 ;; 8421 esac 8422else 8423 enable_shared=yes 8424fi 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 # Check whether --enable-static was given. 8435if test "${enable_static+set}" = set; then : 8436 enableval=$enable_static; p=${PACKAGE-default} 8437 case $enableval in 8438 yes) enable_static=yes ;; 8439 no) enable_static=no ;; 8440 *) 8441 enable_static=no 8442 # Look at the argument we got. We use all the common list separators. 8443 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8444 for pkg in $enableval; do 8445 IFS="$lt_save_ifs" 8446 if test "X$pkg" = "X$p"; then 8447 enable_static=yes 8448 fi 8449 done 8450 IFS="$lt_save_ifs" 8451 ;; 8452 esac 8453else 8454 enable_static=yes 8455fi 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466# Check whether --with-pic was given. 8467if test "${with_pic+set}" = set; then : 8468 withval=$with_pic; lt_p=${PACKAGE-default} 8469 case $withval in 8470 yes|no) pic_mode=$withval ;; 8471 *) 8472 pic_mode=default 8473 # Look at the argument we got. We use all the common list separators. 8474 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8475 for lt_pkg in $withval; do 8476 IFS="$lt_save_ifs" 8477 if test "X$lt_pkg" = "X$lt_p"; then 8478 pic_mode=yes 8479 fi 8480 done 8481 IFS="$lt_save_ifs" 8482 ;; 8483 esac 8484else 8485 pic_mode=default 8486fi 8487 8488 8489test -z "$pic_mode" && pic_mode=default 8490 8491 8492 8493 8494 8495 8496 8497 # Check whether --enable-fast-install was given. 8498if test "${enable_fast_install+set}" = set; then : 8499 enableval=$enable_fast_install; p=${PACKAGE-default} 8500 case $enableval in 8501 yes) enable_fast_install=yes ;; 8502 no) enable_fast_install=no ;; 8503 *) 8504 enable_fast_install=no 8505 # Look at the argument we got. We use all the common list separators. 8506 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8507 for pkg in $enableval; do 8508 IFS="$lt_save_ifs" 8509 if test "X$pkg" = "X$p"; then 8510 enable_fast_install=yes 8511 fi 8512 done 8513 IFS="$lt_save_ifs" 8514 ;; 8515 esac 8516else 8517 enable_fast_install=yes 8518fi 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530# This can be used to rebuild libtool when needed 8531LIBTOOL_DEPS="$ltmain" 8532 8533# Always use our own libtool. 8534LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565test -z "$LN_S" && LN_S="ln -s" 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580if test -n "${ZSH_VERSION+set}" ; then 8581 setopt NO_GLOB_SUBST 8582fi 8583 8584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8585$as_echo_n "checking for objdir... " >&6; } 8586if ${lt_cv_objdir+:} false; then : 8587 $as_echo_n "(cached) " >&6 8588else 8589 rm -f .libs 2>/dev/null 8590mkdir .libs 2>/dev/null 8591if test -d .libs; then 8592 lt_cv_objdir=.libs 8593else 8594 # MS-DOS does not allow filenames that begin with a dot. 8595 lt_cv_objdir=_libs 8596fi 8597rmdir .libs 2>/dev/null 8598fi 8599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8600$as_echo "$lt_cv_objdir" >&6; } 8601objdir=$lt_cv_objdir 8602 8603 8604 8605 8606 8607cat >>confdefs.h <<_ACEOF 8608#define LT_OBJDIR "$lt_cv_objdir/" 8609_ACEOF 8610 8611 8612 8613 8614case $host_os in 8615aix3*) 8616 # AIX sometimes has problems with the GCC collect2 program. For some 8617 # reason, if we set the COLLECT_NAMES environment variable, the problems 8618 # vanish in a puff of smoke. 8619 if test "X${COLLECT_NAMES+set}" != Xset; then 8620 COLLECT_NAMES= 8621 export COLLECT_NAMES 8622 fi 8623 ;; 8624esac 8625 8626# Global variables: 8627ofile=libtool 8628can_build_shared=yes 8629 8630# All known linkers require a `.a' archive for static linking (except MSVC, 8631# which needs '.lib'). 8632libext=a 8633 8634with_gnu_ld="$lt_cv_prog_gnu_ld" 8635 8636old_CC="$CC" 8637old_CFLAGS="$CFLAGS" 8638 8639# Set sane defaults for various variables 8640test -z "$CC" && CC=cc 8641test -z "$LTCC" && LTCC=$CC 8642test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8643test -z "$LD" && LD=ld 8644test -z "$ac_objext" && ac_objext=o 8645 8646for cc_temp in $compiler""; do 8647 case $cc_temp in 8648 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8649 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8650 \-*) ;; 8651 *) break;; 8652 esac 8653done 8654cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8655 8656 8657# Only perform the check for file, if the check method requires it 8658test -z "$MAGIC_CMD" && MAGIC_CMD=file 8659case $deplibs_check_method in 8660file_magic*) 8661 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8663$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8664if ${lt_cv_path_MAGIC_CMD+:} false; then : 8665 $as_echo_n "(cached) " >&6 8666else 8667 case $MAGIC_CMD in 8668[\\/*] | ?:[\\/]*) 8669 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8670 ;; 8671*) 8672 lt_save_MAGIC_CMD="$MAGIC_CMD" 8673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8674 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8675 for ac_dir in $ac_dummy; do 8676 IFS="$lt_save_ifs" 8677 test -z "$ac_dir" && ac_dir=. 8678 if test -f $ac_dir/${ac_tool_prefix}file; then 8679 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8680 if test -n "$file_magic_test_file"; then 8681 case $deplibs_check_method in 8682 "file_magic "*) 8683 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8684 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8685 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8686 $EGREP "$file_magic_regex" > /dev/null; then 8687 : 8688 else 8689 cat <<_LT_EOF 1>&2 8690 8691*** Warning: the command libtool uses to detect shared libraries, 8692*** $file_magic_cmd, produces output that libtool cannot recognize. 8693*** The result is that libtool may fail to recognize shared libraries 8694*** as such. This will affect the creation of libtool libraries that 8695*** depend on shared libraries, but programs linked with such libtool 8696*** libraries will work regardless of this problem. Nevertheless, you 8697*** may want to report the problem to your system manager and/or to 8698*** bug-libtool@gnu.org 8699 8700_LT_EOF 8701 fi ;; 8702 esac 8703 fi 8704 break 8705 fi 8706 done 8707 IFS="$lt_save_ifs" 8708 MAGIC_CMD="$lt_save_MAGIC_CMD" 8709 ;; 8710esac 8711fi 8712 8713MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8714if test -n "$MAGIC_CMD"; then 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8716$as_echo "$MAGIC_CMD" >&6; } 8717else 8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8719$as_echo "no" >&6; } 8720fi 8721 8722 8723 8724 8725 8726if test -z "$lt_cv_path_MAGIC_CMD"; then 8727 if test -n "$ac_tool_prefix"; then 8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8729$as_echo_n "checking for file... " >&6; } 8730if ${lt_cv_path_MAGIC_CMD+:} false; then : 8731 $as_echo_n "(cached) " >&6 8732else 8733 case $MAGIC_CMD in 8734[\\/*] | ?:[\\/]*) 8735 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8736 ;; 8737*) 8738 lt_save_MAGIC_CMD="$MAGIC_CMD" 8739 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8740 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8741 for ac_dir in $ac_dummy; do 8742 IFS="$lt_save_ifs" 8743 test -z "$ac_dir" && ac_dir=. 8744 if test -f $ac_dir/file; then 8745 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8746 if test -n "$file_magic_test_file"; then 8747 case $deplibs_check_method in 8748 "file_magic "*) 8749 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8750 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8751 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8752 $EGREP "$file_magic_regex" > /dev/null; then 8753 : 8754 else 8755 cat <<_LT_EOF 1>&2 8756 8757*** Warning: the command libtool uses to detect shared libraries, 8758*** $file_magic_cmd, produces output that libtool cannot recognize. 8759*** The result is that libtool may fail to recognize shared libraries 8760*** as such. This will affect the creation of libtool libraries that 8761*** depend on shared libraries, but programs linked with such libtool 8762*** libraries will work regardless of this problem. Nevertheless, you 8763*** may want to report the problem to your system manager and/or to 8764*** bug-libtool@gnu.org 8765 8766_LT_EOF 8767 fi ;; 8768 esac 8769 fi 8770 break 8771 fi 8772 done 8773 IFS="$lt_save_ifs" 8774 MAGIC_CMD="$lt_save_MAGIC_CMD" 8775 ;; 8776esac 8777fi 8778 8779MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8780if test -n "$MAGIC_CMD"; then 8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8782$as_echo "$MAGIC_CMD" >&6; } 8783else 8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8785$as_echo "no" >&6; } 8786fi 8787 8788 8789 else 8790 MAGIC_CMD=: 8791 fi 8792fi 8793 8794 fi 8795 ;; 8796esac 8797 8798# Use C for the default configuration in the libtool script 8799 8800lt_save_CC="$CC" 8801ac_ext=c 8802ac_cpp='$CPP $CPPFLAGS' 8803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8805ac_compiler_gnu=$ac_cv_c_compiler_gnu 8806 8807 8808# Source file extension for C test sources. 8809ac_ext=c 8810 8811# Object file extension for compiled C test sources. 8812objext=o 8813objext=$objext 8814 8815# Code to be used in simple compile tests 8816lt_simple_compile_test_code="int some_variable = 0;" 8817 8818# Code to be used in simple link tests 8819lt_simple_link_test_code='int main(){return(0);}' 8820 8821 8822 8823 8824 8825 8826 8827# If no C compiler was specified, use CC. 8828LTCC=${LTCC-"$CC"} 8829 8830# If no C compiler flags were specified, use CFLAGS. 8831LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8832 8833# Allow CC to be a program name with arguments. 8834compiler=$CC 8835 8836# Save the default compiler, since it gets overwritten when the other 8837# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8838compiler_DEFAULT=$CC 8839 8840# save warnings/boilerplate of simple test code 8841ac_outfile=conftest.$ac_objext 8842echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8843eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8844_lt_compiler_boilerplate=`cat conftest.err` 8845$RM conftest* 8846 8847ac_outfile=conftest.$ac_objext 8848echo "$lt_simple_link_test_code" >conftest.$ac_ext 8849eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8850_lt_linker_boilerplate=`cat conftest.err` 8851$RM -r conftest* 8852 8853 8854## CAVEAT EMPTOR: 8855## There is no encapsulation within the following macros, do not change 8856## the running order or otherwise move them around unless you know exactly 8857## what you are doing... 8858if test -n "$compiler"; then 8859 8860lt_prog_compiler_no_builtin_flag= 8861 8862if test "$GCC" = yes; then 8863 case $cc_basename in 8864 nvcc*) 8865 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8866 *) 8867 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8868 esac 8869 8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8871$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8872if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8873 $as_echo_n "(cached) " >&6 8874else 8875 lt_cv_prog_compiler_rtti_exceptions=no 8876 ac_outfile=conftest.$ac_objext 8877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8878 lt_compiler_flag="-fno-rtti -fno-exceptions" 8879 # Insert the option either (1) after the last *FLAGS variable, or 8880 # (2) before a word containing "conftest.", or (3) at the end. 8881 # Note that $ac_compile itself does not contain backslashes and begins 8882 # with a dollar sign (not a hyphen), so the echo should work correctly. 8883 # The option is referenced via a variable to avoid confusing sed. 8884 lt_compile=`echo "$ac_compile" | $SED \ 8885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8887 -e 's:$: $lt_compiler_flag:'` 8888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8889 (eval "$lt_compile" 2>conftest.err) 8890 ac_status=$? 8891 cat conftest.err >&5 8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8893 if (exit $ac_status) && test -s "$ac_outfile"; then 8894 # The compiler can only warn and ignore the option if not recognized 8895 # So say no if there are warnings other than the usual output. 8896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8898 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8899 lt_cv_prog_compiler_rtti_exceptions=yes 8900 fi 8901 fi 8902 $RM conftest* 8903 8904fi 8905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8906$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8907 8908if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8909 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8910else 8911 : 8912fi 8913 8914fi 8915 8916 8917 8918 8919 8920 8921 lt_prog_compiler_wl= 8922lt_prog_compiler_pic= 8923lt_prog_compiler_static= 8924 8925 8926 if test "$GCC" = yes; then 8927 lt_prog_compiler_wl='-Wl,' 8928 lt_prog_compiler_static='-static' 8929 8930 case $host_os in 8931 aix*) 8932 # All AIX code is PIC. 8933 if test "$host_cpu" = ia64; then 8934 # AIX 5 now supports IA64 processor 8935 lt_prog_compiler_static='-Bstatic' 8936 fi 8937 ;; 8938 8939 amigaos*) 8940 case $host_cpu in 8941 powerpc) 8942 # see comment about AmigaOS4 .so support 8943 lt_prog_compiler_pic='-fPIC' 8944 ;; 8945 m68k) 8946 # FIXME: we need at least 68020 code to build shared libraries, but 8947 # adding the `-m68020' flag to GCC prevents building anything better, 8948 # like `-m68040'. 8949 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8950 ;; 8951 esac 8952 ;; 8953 8954 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8955 # PIC is the default for these OSes. 8956 ;; 8957 8958 mingw* | cygwin* | pw32* | os2* | cegcc*) 8959 # This hack is so that the source file can tell whether it is being 8960 # built for inclusion in a dll (and should export symbols for example). 8961 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8962 # (--disable-auto-import) libraries 8963 lt_prog_compiler_pic='-DDLL_EXPORT' 8964 ;; 8965 8966 darwin* | rhapsody*) 8967 # PIC is the default on this platform 8968 # Common symbols not allowed in MH_DYLIB files 8969 lt_prog_compiler_pic='-fno-common' 8970 ;; 8971 8972 haiku*) 8973 # PIC is the default for Haiku. 8974 # The "-static" flag exists, but is broken. 8975 lt_prog_compiler_static= 8976 ;; 8977 8978 hpux*) 8979 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8980 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8981 # sets the default TLS model and affects inlining. 8982 case $host_cpu in 8983 hppa*64*) 8984 # +Z the default 8985 ;; 8986 *) 8987 lt_prog_compiler_pic='-fPIC' 8988 ;; 8989 esac 8990 ;; 8991 8992 interix[3-9]*) 8993 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8994 # Instead, we relocate shared libraries at runtime. 8995 ;; 8996 8997 msdosdjgpp*) 8998 # Just because we use GCC doesn't mean we suddenly get shared libraries 8999 # on systems that don't support them. 9000 lt_prog_compiler_can_build_shared=no 9001 enable_shared=no 9002 ;; 9003 9004 *nto* | *qnx*) 9005 # QNX uses GNU C++, but need to define -shared option too, otherwise 9006 # it will coredump. 9007 lt_prog_compiler_pic='-fPIC -shared' 9008 ;; 9009 9010 sysv4*MP*) 9011 if test -d /usr/nec; then 9012 lt_prog_compiler_pic=-Kconform_pic 9013 fi 9014 ;; 9015 9016 *) 9017 lt_prog_compiler_pic='-fPIC' 9018 ;; 9019 esac 9020 9021 case $cc_basename in 9022 nvcc*) # Cuda Compiler Driver 2.2 9023 lt_prog_compiler_wl='-Xlinker ' 9024 if test -n "$lt_prog_compiler_pic"; then 9025 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9026 fi 9027 ;; 9028 esac 9029 else 9030 # PORTME Check for flag to pass linker flags through the system compiler. 9031 case $host_os in 9032 aix*) 9033 lt_prog_compiler_wl='-Wl,' 9034 if test "$host_cpu" = ia64; then 9035 # AIX 5 now supports IA64 processor 9036 lt_prog_compiler_static='-Bstatic' 9037 else 9038 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9039 fi 9040 ;; 9041 9042 mingw* | cygwin* | pw32* | os2* | cegcc*) 9043 # This hack is so that the source file can tell whether it is being 9044 # built for inclusion in a dll (and should export symbols for example). 9045 lt_prog_compiler_pic='-DDLL_EXPORT' 9046 ;; 9047 9048 hpux9* | hpux10* | hpux11*) 9049 lt_prog_compiler_wl='-Wl,' 9050 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9051 # not for PA HP-UX. 9052 case $host_cpu in 9053 hppa*64*|ia64*) 9054 # +Z the default 9055 ;; 9056 *) 9057 lt_prog_compiler_pic='+Z' 9058 ;; 9059 esac 9060 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9061 lt_prog_compiler_static='${wl}-a ${wl}archive' 9062 ;; 9063 9064 irix5* | irix6* | nonstopux*) 9065 lt_prog_compiler_wl='-Wl,' 9066 # PIC (with -KPIC) is the default. 9067 lt_prog_compiler_static='-non_shared' 9068 ;; 9069 9070 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9071 case $cc_basename in 9072 # old Intel for x86_64 which still supported -KPIC. 9073 ecc*) 9074 lt_prog_compiler_wl='-Wl,' 9075 lt_prog_compiler_pic='-KPIC' 9076 lt_prog_compiler_static='-static' 9077 ;; 9078 # icc used to be incompatible with GCC. 9079 # ICC 10 doesn't accept -KPIC any more. 9080 icc* | ifort*) 9081 lt_prog_compiler_wl='-Wl,' 9082 lt_prog_compiler_pic='-fPIC' 9083 lt_prog_compiler_static='-static' 9084 ;; 9085 # Lahey Fortran 8.1. 9086 lf95*) 9087 lt_prog_compiler_wl='-Wl,' 9088 lt_prog_compiler_pic='--shared' 9089 lt_prog_compiler_static='--static' 9090 ;; 9091 nagfor*) 9092 # NAG Fortran compiler 9093 lt_prog_compiler_wl='-Wl,-Wl,,' 9094 lt_prog_compiler_pic='-PIC' 9095 lt_prog_compiler_static='-Bstatic' 9096 ;; 9097 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9098 # Portland Group compilers (*not* the Pentium gcc compiler, 9099 # which looks to be a dead project) 9100 lt_prog_compiler_wl='-Wl,' 9101 lt_prog_compiler_pic='-fpic' 9102 lt_prog_compiler_static='-Bstatic' 9103 ;; 9104 ccc*) 9105 lt_prog_compiler_wl='-Wl,' 9106 # All Alpha code is PIC. 9107 lt_prog_compiler_static='-non_shared' 9108 ;; 9109 xl* | bgxl* | bgf* | mpixl*) 9110 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9111 lt_prog_compiler_wl='-Wl,' 9112 lt_prog_compiler_pic='-qpic' 9113 lt_prog_compiler_static='-qstaticlink' 9114 ;; 9115 *) 9116 case `$CC -V 2>&1 | sed 5q` in 9117 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9118 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9119 lt_prog_compiler_pic='-KPIC' 9120 lt_prog_compiler_static='-Bstatic' 9121 lt_prog_compiler_wl='' 9122 ;; 9123 *Sun\ F* | *Sun*Fortran*) 9124 lt_prog_compiler_pic='-KPIC' 9125 lt_prog_compiler_static='-Bstatic' 9126 lt_prog_compiler_wl='-Qoption ld ' 9127 ;; 9128 *Sun\ C*) 9129 # Sun C 5.9 9130 lt_prog_compiler_pic='-KPIC' 9131 lt_prog_compiler_static='-Bstatic' 9132 lt_prog_compiler_wl='-Wl,' 9133 ;; 9134 *Intel*\ [CF]*Compiler*) 9135 lt_prog_compiler_wl='-Wl,' 9136 lt_prog_compiler_pic='-fPIC' 9137 lt_prog_compiler_static='-static' 9138 ;; 9139 *Portland\ Group*) 9140 lt_prog_compiler_wl='-Wl,' 9141 lt_prog_compiler_pic='-fpic' 9142 lt_prog_compiler_static='-Bstatic' 9143 ;; 9144 esac 9145 ;; 9146 esac 9147 ;; 9148 9149 newsos6) 9150 lt_prog_compiler_pic='-KPIC' 9151 lt_prog_compiler_static='-Bstatic' 9152 ;; 9153 9154 *nto* | *qnx*) 9155 # QNX uses GNU C++, but need to define -shared option too, otherwise 9156 # it will coredump. 9157 lt_prog_compiler_pic='-fPIC -shared' 9158 ;; 9159 9160 osf3* | osf4* | osf5*) 9161 lt_prog_compiler_wl='-Wl,' 9162 # All OSF/1 code is PIC. 9163 lt_prog_compiler_static='-non_shared' 9164 ;; 9165 9166 rdos*) 9167 lt_prog_compiler_static='-non_shared' 9168 ;; 9169 9170 solaris*) 9171 lt_prog_compiler_pic='-KPIC' 9172 lt_prog_compiler_static='-Bstatic' 9173 case $cc_basename in 9174 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9175 lt_prog_compiler_wl='-Qoption ld ';; 9176 *) 9177 lt_prog_compiler_wl='-Wl,';; 9178 esac 9179 ;; 9180 9181 sunos4*) 9182 lt_prog_compiler_wl='-Qoption ld ' 9183 lt_prog_compiler_pic='-PIC' 9184 lt_prog_compiler_static='-Bstatic' 9185 ;; 9186 9187 sysv4 | sysv4.2uw2* | sysv4.3*) 9188 lt_prog_compiler_wl='-Wl,' 9189 lt_prog_compiler_pic='-KPIC' 9190 lt_prog_compiler_static='-Bstatic' 9191 ;; 9192 9193 sysv4*MP*) 9194 if test -d /usr/nec ;then 9195 lt_prog_compiler_pic='-Kconform_pic' 9196 lt_prog_compiler_static='-Bstatic' 9197 fi 9198 ;; 9199 9200 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9201 lt_prog_compiler_wl='-Wl,' 9202 lt_prog_compiler_pic='-KPIC' 9203 lt_prog_compiler_static='-Bstatic' 9204 ;; 9205 9206 unicos*) 9207 lt_prog_compiler_wl='-Wl,' 9208 lt_prog_compiler_can_build_shared=no 9209 ;; 9210 9211 uts4*) 9212 lt_prog_compiler_pic='-pic' 9213 lt_prog_compiler_static='-Bstatic' 9214 ;; 9215 9216 *) 9217 lt_prog_compiler_can_build_shared=no 9218 ;; 9219 esac 9220 fi 9221 9222case $host_os in 9223 # For platforms which do not support PIC, -DPIC is meaningless: 9224 *djgpp*) 9225 lt_prog_compiler_pic= 9226 ;; 9227 *) 9228 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9229 ;; 9230esac 9231 9232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9233$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9234if ${lt_cv_prog_compiler_pic+:} false; then : 9235 $as_echo_n "(cached) " >&6 9236else 9237 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9238fi 9239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9240$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9241lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9242 9243# 9244# Check to make sure the PIC flag actually works. 9245# 9246if test -n "$lt_prog_compiler_pic"; then 9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9248$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9249if ${lt_cv_prog_compiler_pic_works+:} false; then : 9250 $as_echo_n "(cached) " >&6 9251else 9252 lt_cv_prog_compiler_pic_works=no 9253 ac_outfile=conftest.$ac_objext 9254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9255 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9256 # Insert the option either (1) after the last *FLAGS variable, or 9257 # (2) before a word containing "conftest.", or (3) at the end. 9258 # Note that $ac_compile itself does not contain backslashes and begins 9259 # with a dollar sign (not a hyphen), so the echo should work correctly. 9260 # The option is referenced via a variable to avoid confusing sed. 9261 lt_compile=`echo "$ac_compile" | $SED \ 9262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9264 -e 's:$: $lt_compiler_flag:'` 9265 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9266 (eval "$lt_compile" 2>conftest.err) 9267 ac_status=$? 9268 cat conftest.err >&5 9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9270 if (exit $ac_status) && test -s "$ac_outfile"; then 9271 # The compiler can only warn and ignore the option if not recognized 9272 # So say no if there are warnings other than the usual output. 9273 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9275 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9276 lt_cv_prog_compiler_pic_works=yes 9277 fi 9278 fi 9279 $RM conftest* 9280 9281fi 9282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9283$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9284 9285if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9286 case $lt_prog_compiler_pic in 9287 "" | " "*) ;; 9288 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9289 esac 9290else 9291 lt_prog_compiler_pic= 9292 lt_prog_compiler_can_build_shared=no 9293fi 9294 9295fi 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307# 9308# Check to make sure the static flag actually works. 9309# 9310wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9312$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9313if ${lt_cv_prog_compiler_static_works+:} false; then : 9314 $as_echo_n "(cached) " >&6 9315else 9316 lt_cv_prog_compiler_static_works=no 9317 save_LDFLAGS="$LDFLAGS" 9318 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9319 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9320 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9321 # The linker can only warn and ignore the option if not recognized 9322 # So say no if there are warnings 9323 if test -s conftest.err; then 9324 # Append any errors to the config.log. 9325 cat conftest.err 1>&5 9326 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9328 if diff conftest.exp conftest.er2 >/dev/null; then 9329 lt_cv_prog_compiler_static_works=yes 9330 fi 9331 else 9332 lt_cv_prog_compiler_static_works=yes 9333 fi 9334 fi 9335 $RM -r conftest* 9336 LDFLAGS="$save_LDFLAGS" 9337 9338fi 9339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9340$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9341 9342if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9343 : 9344else 9345 lt_prog_compiler_static= 9346fi 9347 9348 9349 9350 9351 9352 9353 9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9355$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9356if ${lt_cv_prog_compiler_c_o+:} false; then : 9357 $as_echo_n "(cached) " >&6 9358else 9359 lt_cv_prog_compiler_c_o=no 9360 $RM -r conftest 2>/dev/null 9361 mkdir conftest 9362 cd conftest 9363 mkdir out 9364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9365 9366 lt_compiler_flag="-o out/conftest2.$ac_objext" 9367 # Insert the option either (1) after the last *FLAGS variable, or 9368 # (2) before a word containing "conftest.", or (3) at the end. 9369 # Note that $ac_compile itself does not contain backslashes and begins 9370 # with a dollar sign (not a hyphen), so the echo should work correctly. 9371 lt_compile=`echo "$ac_compile" | $SED \ 9372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9374 -e 's:$: $lt_compiler_flag:'` 9375 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9376 (eval "$lt_compile" 2>out/conftest.err) 9377 ac_status=$? 9378 cat out/conftest.err >&5 9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9380 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9381 then 9382 # The compiler can only warn and ignore the option if not recognized 9383 # So say no if there are warnings 9384 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9385 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9386 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9387 lt_cv_prog_compiler_c_o=yes 9388 fi 9389 fi 9390 chmod u+w . 2>&5 9391 $RM conftest* 9392 # SGI C++ compiler will create directory out/ii_files/ for 9393 # template instantiation 9394 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9395 $RM out/* && rmdir out 9396 cd .. 9397 $RM -r conftest 9398 $RM conftest* 9399 9400fi 9401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9402$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9403 9404 9405 9406 9407 9408 9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9410$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9411if ${lt_cv_prog_compiler_c_o+:} false; then : 9412 $as_echo_n "(cached) " >&6 9413else 9414 lt_cv_prog_compiler_c_o=no 9415 $RM -r conftest 2>/dev/null 9416 mkdir conftest 9417 cd conftest 9418 mkdir out 9419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9420 9421 lt_compiler_flag="-o out/conftest2.$ac_objext" 9422 # Insert the option either (1) after the last *FLAGS variable, or 9423 # (2) before a word containing "conftest.", or (3) at the end. 9424 # Note that $ac_compile itself does not contain backslashes and begins 9425 # with a dollar sign (not a hyphen), so the echo should work correctly. 9426 lt_compile=`echo "$ac_compile" | $SED \ 9427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9429 -e 's:$: $lt_compiler_flag:'` 9430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9431 (eval "$lt_compile" 2>out/conftest.err) 9432 ac_status=$? 9433 cat out/conftest.err >&5 9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9435 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9436 then 9437 # The compiler can only warn and ignore the option if not recognized 9438 # So say no if there are warnings 9439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9440 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9441 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9442 lt_cv_prog_compiler_c_o=yes 9443 fi 9444 fi 9445 chmod u+w . 2>&5 9446 $RM conftest* 9447 # SGI C++ compiler will create directory out/ii_files/ for 9448 # template instantiation 9449 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9450 $RM out/* && rmdir out 9451 cd .. 9452 $RM -r conftest 9453 $RM conftest* 9454 9455fi 9456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9457$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9458 9459 9460 9461 9462hard_links="nottested" 9463if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9464 # do not overwrite the value of need_locks provided by the user 9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9466$as_echo_n "checking if we can lock with hard links... " >&6; } 9467 hard_links=yes 9468 $RM conftest* 9469 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9470 touch conftest.a 9471 ln conftest.a conftest.b 2>&5 || hard_links=no 9472 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9474$as_echo "$hard_links" >&6; } 9475 if test "$hard_links" = no; then 9476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9477$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9478 need_locks=warn 9479 fi 9480else 9481 need_locks=no 9482fi 9483 9484 9485 9486 9487 9488 9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9490$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9491 9492 runpath_var= 9493 allow_undefined_flag= 9494 always_export_symbols=no 9495 archive_cmds= 9496 archive_expsym_cmds= 9497 compiler_needs_object=no 9498 enable_shared_with_static_runtimes=no 9499 export_dynamic_flag_spec= 9500 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9501 hardcode_automatic=no 9502 hardcode_direct=no 9503 hardcode_direct_absolute=no 9504 hardcode_libdir_flag_spec= 9505 hardcode_libdir_separator= 9506 hardcode_minus_L=no 9507 hardcode_shlibpath_var=unsupported 9508 inherit_rpath=no 9509 link_all_deplibs=unknown 9510 module_cmds= 9511 module_expsym_cmds= 9512 old_archive_from_new_cmds= 9513 old_archive_from_expsyms_cmds= 9514 thread_safe_flag_spec= 9515 whole_archive_flag_spec= 9516 # include_expsyms should be a list of space-separated symbols to be *always* 9517 # included in the symbol list 9518 include_expsyms= 9519 # exclude_expsyms can be an extended regexp of symbols to exclude 9520 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9521 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9522 # as well as any symbol that contains `d'. 9523 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9524 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9525 # platforms (ab)use it in PIC code, but their linkers get confused if 9526 # the symbol is explicitly referenced. Since portable code cannot 9527 # rely on this symbol name, it's probably fine to never include it in 9528 # preloaded symbol tables. 9529 # Exclude shared library initialization/finalization symbols. 9530 extract_expsyms_cmds= 9531 9532 case $host_os in 9533 cygwin* | mingw* | pw32* | cegcc*) 9534 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9535 # When not using gcc, we currently assume that we are using 9536 # Microsoft Visual C++. 9537 if test "$GCC" != yes; then 9538 with_gnu_ld=no 9539 fi 9540 ;; 9541 interix*) 9542 # we just hope/assume this is gcc and not c89 (= MSVC++) 9543 with_gnu_ld=yes 9544 ;; 9545 openbsd*) 9546 with_gnu_ld=no 9547 ;; 9548 linux* | k*bsd*-gnu | gnu*) 9549 link_all_deplibs=no 9550 ;; 9551 esac 9552 9553 ld_shlibs=yes 9554 9555 # On some targets, GNU ld is compatible enough with the native linker 9556 # that we're better off using the native interface for both. 9557 lt_use_gnu_ld_interface=no 9558 if test "$with_gnu_ld" = yes; then 9559 case $host_os in 9560 aix*) 9561 # The AIX port of GNU ld has always aspired to compatibility 9562 # with the native linker. However, as the warning in the GNU ld 9563 # block says, versions before 2.19.5* couldn't really create working 9564 # shared libraries, regardless of the interface used. 9565 case `$LD -v 2>&1` in 9566 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9567 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9568 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9569 *) 9570 lt_use_gnu_ld_interface=yes 9571 ;; 9572 esac 9573 ;; 9574 *) 9575 lt_use_gnu_ld_interface=yes 9576 ;; 9577 esac 9578 fi 9579 9580 if test "$lt_use_gnu_ld_interface" = yes; then 9581 # If archive_cmds runs LD, not CC, wlarc should be empty 9582 wlarc='${wl}' 9583 9584 # Set some defaults for GNU ld with shared library support. These 9585 # are reset later if shared libraries are not supported. Putting them 9586 # here allows them to be overridden if necessary. 9587 runpath_var=LD_RUN_PATH 9588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9589 export_dynamic_flag_spec='${wl}--export-dynamic' 9590 # ancient GNU ld didn't support --whole-archive et. al. 9591 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9592 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9593 else 9594 whole_archive_flag_spec= 9595 fi 9596 supports_anon_versioning=no 9597 case `$LD -v 2>&1` in 9598 *GNU\ gold*) supports_anon_versioning=yes ;; 9599 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9600 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9601 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9602 *\ 2.11.*) ;; # other 2.11 versions 9603 *) supports_anon_versioning=yes ;; 9604 esac 9605 9606 # See if GNU ld supports shared libraries. 9607 case $host_os in 9608 aix[3-9]*) 9609 # On AIX/PPC, the GNU linker is very broken 9610 if test "$host_cpu" != ia64; then 9611 ld_shlibs=no 9612 cat <<_LT_EOF 1>&2 9613 9614*** Warning: the GNU linker, at least up to release 2.19, is reported 9615*** to be unable to reliably create shared libraries on AIX. 9616*** Therefore, libtool is disabling shared libraries support. If you 9617*** really care for shared libraries, you may want to install binutils 9618*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9619*** You will then need to restart the configuration process. 9620 9621_LT_EOF 9622 fi 9623 ;; 9624 9625 amigaos*) 9626 case $host_cpu in 9627 powerpc) 9628 # see comment about AmigaOS4 .so support 9629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9630 archive_expsym_cmds='' 9631 ;; 9632 m68k) 9633 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)' 9634 hardcode_libdir_flag_spec='-L$libdir' 9635 hardcode_minus_L=yes 9636 ;; 9637 esac 9638 ;; 9639 9640 beos*) 9641 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9642 allow_undefined_flag=unsupported 9643 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9644 # support --undefined. This deserves some investigation. FIXME 9645 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9646 else 9647 ld_shlibs=no 9648 fi 9649 ;; 9650 9651 cygwin* | mingw* | pw32* | cegcc*) 9652 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9653 # as there is no search path for DLLs. 9654 hardcode_libdir_flag_spec='-L$libdir' 9655 export_dynamic_flag_spec='${wl}--export-all-symbols' 9656 allow_undefined_flag=unsupported 9657 always_export_symbols=no 9658 enable_shared_with_static_runtimes=yes 9659 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' 9660 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9661 9662 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9664 # If the export-symbols file already is a .def file (1st line 9665 # is EXPORTS), use it as is; otherwise, prepend... 9666 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9667 cp $export_symbols $output_objdir/$soname.def; 9668 else 9669 echo EXPORTS > $output_objdir/$soname.def; 9670 cat $export_symbols >> $output_objdir/$soname.def; 9671 fi~ 9672 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9673 else 9674 ld_shlibs=no 9675 fi 9676 ;; 9677 9678 haiku*) 9679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9680 link_all_deplibs=yes 9681 ;; 9682 9683 interix[3-9]*) 9684 hardcode_direct=no 9685 hardcode_shlibpath_var=no 9686 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9687 export_dynamic_flag_spec='${wl}-E' 9688 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9689 # Instead, shared libraries are loaded at an image base (0x10000000 by 9690 # default) and relocated if they conflict, which is a slow very memory 9691 # consuming and fragmenting process. To avoid this, we pick a random, 9692 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9693 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9694 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9695 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' 9696 ;; 9697 9698 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9699 tmp_diet=no 9700 if test "$host_os" = linux-dietlibc; then 9701 case $cc_basename in 9702 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9703 esac 9704 fi 9705 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9706 && test "$tmp_diet" = no 9707 then 9708 tmp_addflag=' $pic_flag' 9709 tmp_sharedflag='-shared' 9710 case $cc_basename,$host_cpu in 9711 pgcc*) # Portland Group C compiler 9712 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' 9713 tmp_addflag=' $pic_flag' 9714 ;; 9715 pgf77* | pgf90* | pgf95* | pgfortran*) 9716 # Portland Group f77 and f90 compilers 9717 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' 9718 tmp_addflag=' $pic_flag -Mnomain' ;; 9719 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9720 tmp_addflag=' -i_dynamic' ;; 9721 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9722 tmp_addflag=' -i_dynamic -nofor_main' ;; 9723 ifc* | ifort*) # Intel Fortran compiler 9724 tmp_addflag=' -nofor_main' ;; 9725 lf95*) # Lahey Fortran 8.1 9726 whole_archive_flag_spec= 9727 tmp_sharedflag='--shared' ;; 9728 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9729 tmp_sharedflag='-qmkshrobj' 9730 tmp_addflag= ;; 9731 nvcc*) # Cuda Compiler Driver 2.2 9732 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' 9733 compiler_needs_object=yes 9734 ;; 9735 esac 9736 case `$CC -V 2>&1 | sed 5q` in 9737 *Sun\ C*) # Sun C 5.9 9738 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' 9739 compiler_needs_object=yes 9740 tmp_sharedflag='-G' ;; 9741 *Sun\ F*) # Sun Fortran 8.3 9742 tmp_sharedflag='-G' ;; 9743 esac 9744 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9745 9746 if test "x$supports_anon_versioning" = xyes; then 9747 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9748 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9749 echo "local: *; };" >> $output_objdir/$libname.ver~ 9750 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9751 fi 9752 9753 case $cc_basename in 9754 xlf* | bgf* | bgxlf* | mpixlf*) 9755 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9756 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9758 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9759 if test "x$supports_anon_versioning" = xyes; then 9760 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9761 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9762 echo "local: *; };" >> $output_objdir/$libname.ver~ 9763 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9764 fi 9765 ;; 9766 esac 9767 else 9768 ld_shlibs=no 9769 fi 9770 ;; 9771 9772 netbsd* | netbsdelf*-gnu) 9773 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9774 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9775 wlarc= 9776 else 9777 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9778 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9779 fi 9780 ;; 9781 9782 solaris*) 9783 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9784 ld_shlibs=no 9785 cat <<_LT_EOF 1>&2 9786 9787*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9788*** create shared libraries on Solaris systems. Therefore, libtool 9789*** is disabling shared libraries support. We urge you to upgrade GNU 9790*** binutils to release 2.9.1 or newer. Another option is to modify 9791*** your PATH or compiler configuration so that the native linker is 9792*** used, and then restart. 9793 9794_LT_EOF 9795 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9796 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9797 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9798 else 9799 ld_shlibs=no 9800 fi 9801 ;; 9802 9803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9804 case `$LD -v 2>&1` in 9805 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9806 ld_shlibs=no 9807 cat <<_LT_EOF 1>&2 9808 9809*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9810*** reliably create shared libraries on SCO systems. Therefore, libtool 9811*** is disabling shared libraries support. We urge you to upgrade GNU 9812*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9813*** your PATH or compiler configuration so that the native linker is 9814*** used, and then restart. 9815 9816_LT_EOF 9817 ;; 9818 *) 9819 # For security reasons, it is highly recommended that you always 9820 # use absolute paths for naming shared libraries, and exclude the 9821 # DT_RUNPATH tag from executables and libraries. But doing so 9822 # requires that you compile everything twice, which is a pain. 9823 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9825 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9826 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9827 else 9828 ld_shlibs=no 9829 fi 9830 ;; 9831 esac 9832 ;; 9833 9834 sunos4*) 9835 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9836 wlarc= 9837 hardcode_direct=yes 9838 hardcode_shlibpath_var=no 9839 ;; 9840 9841 *) 9842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9843 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9844 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9845 else 9846 ld_shlibs=no 9847 fi 9848 ;; 9849 esac 9850 9851 if test "$ld_shlibs" = no; then 9852 runpath_var= 9853 hardcode_libdir_flag_spec= 9854 export_dynamic_flag_spec= 9855 whole_archive_flag_spec= 9856 fi 9857 else 9858 # PORTME fill in a description of your system's linker (not GNU ld) 9859 case $host_os in 9860 aix3*) 9861 allow_undefined_flag=unsupported 9862 always_export_symbols=yes 9863 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' 9864 # Note: this linker hardcodes the directories in LIBPATH if there 9865 # are no directories specified by -L. 9866 hardcode_minus_L=yes 9867 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9868 # Neither direct hardcoding nor static linking is supported with a 9869 # broken collect2. 9870 hardcode_direct=unsupported 9871 fi 9872 ;; 9873 9874 aix[4-9]*) 9875 if test "$host_cpu" = ia64; then 9876 # On IA64, the linker does run time linking by default, so we don't 9877 # have to do anything special. 9878 aix_use_runtimelinking=no 9879 exp_sym_flag='-Bexport' 9880 no_entry_flag="" 9881 else 9882 # If we're using GNU nm, then we don't want the "-C" option. 9883 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9884 # Also, AIX nm treats weak defined symbols like other global 9885 # defined symbols, whereas GNU nm marks them as "W". 9886 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9887 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9888 else 9889 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9890 fi 9891 aix_use_runtimelinking=no 9892 9893 # Test if we are trying to use run time linking or normal 9894 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9895 # need to do runtime linking. 9896 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9897 for ld_flag in $LDFLAGS; do 9898 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9899 aix_use_runtimelinking=yes 9900 break 9901 fi 9902 done 9903 ;; 9904 esac 9905 9906 exp_sym_flag='-bexport' 9907 no_entry_flag='-bnoentry' 9908 fi 9909 9910 # When large executables or shared objects are built, AIX ld can 9911 # have problems creating the table of contents. If linking a library 9912 # or program results in "error TOC overflow" add -mminimal-toc to 9913 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9914 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9915 9916 archive_cmds='' 9917 hardcode_direct=yes 9918 hardcode_direct_absolute=yes 9919 hardcode_libdir_separator=':' 9920 link_all_deplibs=yes 9921 file_list_spec='${wl}-f,' 9922 9923 if test "$GCC" = yes; then 9924 case $host_os in aix4.[012]|aix4.[012].*) 9925 # We only want to do this on AIX 4.2 and lower, the check 9926 # below for broken collect2 doesn't work under 4.3+ 9927 collect2name=`${CC} -print-prog-name=collect2` 9928 if test -f "$collect2name" && 9929 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9930 then 9931 # We have reworked collect2 9932 : 9933 else 9934 # We have old collect2 9935 hardcode_direct=unsupported 9936 # It fails to find uninstalled libraries when the uninstalled 9937 # path is not listed in the libpath. Setting hardcode_minus_L 9938 # to unsupported forces relinking 9939 hardcode_minus_L=yes 9940 hardcode_libdir_flag_spec='-L$libdir' 9941 hardcode_libdir_separator= 9942 fi 9943 ;; 9944 esac 9945 shared_flag='-shared' 9946 if test "$aix_use_runtimelinking" = yes; then 9947 shared_flag="$shared_flag "'${wl}-G' 9948 fi 9949 link_all_deplibs=no 9950 else 9951 # not using gcc 9952 if test "$host_cpu" = ia64; then 9953 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9954 # chokes on -Wl,-G. The following line is correct: 9955 shared_flag='-G' 9956 else 9957 if test "$aix_use_runtimelinking" = yes; then 9958 shared_flag='${wl}-G' 9959 else 9960 shared_flag='${wl}-bM:SRE' 9961 fi 9962 fi 9963 fi 9964 9965 export_dynamic_flag_spec='${wl}-bexpall' 9966 # It seems that -bexpall does not export symbols beginning with 9967 # underscore (_), so it is better to generate a list of symbols to export. 9968 always_export_symbols=yes 9969 if test "$aix_use_runtimelinking" = yes; then 9970 # Warning - without using the other runtime loading flags (-brtl), 9971 # -berok will link without error, but may produce a broken library. 9972 allow_undefined_flag='-berok' 9973 # Determine the default libpath from the value encoded in an 9974 # empty executable. 9975 if test "${lt_cv_aix_libpath+set}" = set; then 9976 aix_libpath=$lt_cv_aix_libpath 9977else 9978 if ${lt_cv_aix_libpath_+:} false; then : 9979 $as_echo_n "(cached) " >&6 9980else 9981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9982/* end confdefs.h. */ 9983 9984int 9985main () 9986{ 9987 9988 ; 9989 return 0; 9990} 9991_ACEOF 9992if ac_fn_c_try_link "$LINENO"; then : 9993 9994 lt_aix_libpath_sed=' 9995 /Import File Strings/,/^$/ { 9996 /^0/ { 9997 s/^0 *\([^ ]*\) *$/\1/ 9998 p 9999 } 10000 }' 10001 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10002 # Check for a 64-bit object if we didn't find anything. 10003 if test -z "$lt_cv_aix_libpath_"; then 10004 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10005 fi 10006fi 10007rm -f core conftest.err conftest.$ac_objext \ 10008 conftest$ac_exeext conftest.$ac_ext 10009 if test -z "$lt_cv_aix_libpath_"; then 10010 lt_cv_aix_libpath_="/usr/lib:/lib" 10011 fi 10012 10013fi 10014 10015 aix_libpath=$lt_cv_aix_libpath_ 10016fi 10017 10018 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10019 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10020 else 10021 if test "$host_cpu" = ia64; then 10022 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10023 allow_undefined_flag="-z nodefs" 10024 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" 10025 else 10026 # Determine the default libpath from the value encoded in an 10027 # empty executable. 10028 if test "${lt_cv_aix_libpath+set}" = set; then 10029 aix_libpath=$lt_cv_aix_libpath 10030else 10031 if ${lt_cv_aix_libpath_+:} false; then : 10032 $as_echo_n "(cached) " >&6 10033else 10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10035/* end confdefs.h. */ 10036 10037int 10038main () 10039{ 10040 10041 ; 10042 return 0; 10043} 10044_ACEOF 10045if ac_fn_c_try_link "$LINENO"; then : 10046 10047 lt_aix_libpath_sed=' 10048 /Import File Strings/,/^$/ { 10049 /^0/ { 10050 s/^0 *\([^ ]*\) *$/\1/ 10051 p 10052 } 10053 }' 10054 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10055 # Check for a 64-bit object if we didn't find anything. 10056 if test -z "$lt_cv_aix_libpath_"; then 10057 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10058 fi 10059fi 10060rm -f core conftest.err conftest.$ac_objext \ 10061 conftest$ac_exeext conftest.$ac_ext 10062 if test -z "$lt_cv_aix_libpath_"; then 10063 lt_cv_aix_libpath_="/usr/lib:/lib" 10064 fi 10065 10066fi 10067 10068 aix_libpath=$lt_cv_aix_libpath_ 10069fi 10070 10071 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10072 # Warning - without using the other run time loading flags, 10073 # -berok will link without error, but may produce a broken library. 10074 no_undefined_flag=' ${wl}-bernotok' 10075 allow_undefined_flag=' ${wl}-berok' 10076 if test "$with_gnu_ld" = yes; then 10077 # We only use this code for GNU lds that support --whole-archive. 10078 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10079 else 10080 # Exported symbols can be pulled into shared objects from archives 10081 whole_archive_flag_spec='$convenience' 10082 fi 10083 archive_cmds_need_lc=yes 10084 # This is similar to how AIX traditionally builds its shared libraries. 10085 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10086 fi 10087 fi 10088 ;; 10089 10090 amigaos*) 10091 case $host_cpu in 10092 powerpc) 10093 # see comment about AmigaOS4 .so support 10094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10095 archive_expsym_cmds='' 10096 ;; 10097 m68k) 10098 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)' 10099 hardcode_libdir_flag_spec='-L$libdir' 10100 hardcode_minus_L=yes 10101 ;; 10102 esac 10103 ;; 10104 10105 bsdi[45]*) 10106 export_dynamic_flag_spec=-rdynamic 10107 ;; 10108 10109 cygwin* | mingw* | pw32* | cegcc*) 10110 # When not using gcc, we currently assume that we are using 10111 # Microsoft Visual C++. 10112 # hardcode_libdir_flag_spec is actually meaningless, as there is 10113 # no search path for DLLs. 10114 case $cc_basename in 10115 cl*) 10116 # Native MSVC 10117 hardcode_libdir_flag_spec=' ' 10118 allow_undefined_flag=unsupported 10119 always_export_symbols=yes 10120 file_list_spec='@' 10121 # Tell ltmain to make .lib files, not .a files. 10122 libext=lib 10123 # Tell ltmain to make .dll files, not .so files. 10124 shrext_cmds=".dll" 10125 # FIXME: Setting linknames here is a bad hack. 10126 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10127 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10128 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10129 else 10130 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10131 fi~ 10132 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10133 linknames=' 10134 # The linker will not automatically build a static lib if we build a DLL. 10135 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10136 enable_shared_with_static_runtimes=yes 10137 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10138 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10139 # Don't use ranlib 10140 old_postinstall_cmds='chmod 644 $oldlib' 10141 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10142 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10143 case $lt_outputfile in 10144 *.exe|*.EXE) ;; 10145 *) 10146 lt_outputfile="$lt_outputfile.exe" 10147 lt_tool_outputfile="$lt_tool_outputfile.exe" 10148 ;; 10149 esac~ 10150 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10151 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10152 $RM "$lt_outputfile.manifest"; 10153 fi' 10154 ;; 10155 *) 10156 # Assume MSVC wrapper 10157 hardcode_libdir_flag_spec=' ' 10158 allow_undefined_flag=unsupported 10159 # Tell ltmain to make .lib files, not .a files. 10160 libext=lib 10161 # Tell ltmain to make .dll files, not .so files. 10162 shrext_cmds=".dll" 10163 # FIXME: Setting linknames here is a bad hack. 10164 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10165 # The linker will automatically build a .lib file if we build a DLL. 10166 old_archive_from_new_cmds='true' 10167 # FIXME: Should let the user specify the lib program. 10168 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10169 enable_shared_with_static_runtimes=yes 10170 ;; 10171 esac 10172 ;; 10173 10174 darwin* | rhapsody*) 10175 10176 10177 archive_cmds_need_lc=no 10178 hardcode_direct=no 10179 hardcode_automatic=yes 10180 hardcode_shlibpath_var=unsupported 10181 if test "$lt_cv_ld_force_load" = "yes"; then 10182 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\"`' 10183 10184 else 10185 whole_archive_flag_spec='' 10186 fi 10187 link_all_deplibs=yes 10188 allow_undefined_flag="$_lt_dar_allow_undefined" 10189 case $cc_basename in 10190 ifort*) _lt_dar_can_shared=yes ;; 10191 *) _lt_dar_can_shared=$GCC ;; 10192 esac 10193 if test "$_lt_dar_can_shared" = "yes"; then 10194 output_verbose_link_cmd=func_echo_all 10195 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10196 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10197 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}" 10198 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}" 10199 10200 else 10201 ld_shlibs=no 10202 fi 10203 10204 ;; 10205 10206 dgux*) 10207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10208 hardcode_libdir_flag_spec='-L$libdir' 10209 hardcode_shlibpath_var=no 10210 ;; 10211 10212 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10213 # support. Future versions do this automatically, but an explicit c++rt0.o 10214 # does not break anything, and helps significantly (at the cost of a little 10215 # extra space). 10216 freebsd2.2*) 10217 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10218 hardcode_libdir_flag_spec='-R$libdir' 10219 hardcode_direct=yes 10220 hardcode_shlibpath_var=no 10221 ;; 10222 10223 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10224 freebsd2.*) 10225 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10226 hardcode_direct=yes 10227 hardcode_minus_L=yes 10228 hardcode_shlibpath_var=no 10229 ;; 10230 10231 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10232 freebsd* | dragonfly*) 10233 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10234 hardcode_libdir_flag_spec='-R$libdir' 10235 hardcode_direct=yes 10236 hardcode_shlibpath_var=no 10237 ;; 10238 10239 hpux9*) 10240 if test "$GCC" = yes; then 10241 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10242 else 10243 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10244 fi 10245 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10246 hardcode_libdir_separator=: 10247 hardcode_direct=yes 10248 10249 # hardcode_minus_L: Not really in the search PATH, 10250 # but as the default location of the library. 10251 hardcode_minus_L=yes 10252 export_dynamic_flag_spec='${wl}-E' 10253 ;; 10254 10255 hpux10*) 10256 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10257 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10258 else 10259 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10260 fi 10261 if test "$with_gnu_ld" = no; then 10262 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10263 hardcode_libdir_separator=: 10264 hardcode_direct=yes 10265 hardcode_direct_absolute=yes 10266 export_dynamic_flag_spec='${wl}-E' 10267 # hardcode_minus_L: Not really in the search PATH, 10268 # but as the default location of the library. 10269 hardcode_minus_L=yes 10270 fi 10271 ;; 10272 10273 hpux11*) 10274 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10275 case $host_cpu in 10276 hppa*64*) 10277 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10278 ;; 10279 ia64*) 10280 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10281 ;; 10282 *) 10283 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10284 ;; 10285 esac 10286 else 10287 case $host_cpu in 10288 hppa*64*) 10289 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10290 ;; 10291 ia64*) 10292 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10293 ;; 10294 *) 10295 10296 # Older versions of the 11.00 compiler do not understand -b yet 10297 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10299$as_echo_n "checking if $CC understands -b... " >&6; } 10300if ${lt_cv_prog_compiler__b+:} false; then : 10301 $as_echo_n "(cached) " >&6 10302else 10303 lt_cv_prog_compiler__b=no 10304 save_LDFLAGS="$LDFLAGS" 10305 LDFLAGS="$LDFLAGS -b" 10306 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10307 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10308 # The linker can only warn and ignore the option if not recognized 10309 # So say no if there are warnings 10310 if test -s conftest.err; then 10311 # Append any errors to the config.log. 10312 cat conftest.err 1>&5 10313 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10314 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10315 if diff conftest.exp conftest.er2 >/dev/null; then 10316 lt_cv_prog_compiler__b=yes 10317 fi 10318 else 10319 lt_cv_prog_compiler__b=yes 10320 fi 10321 fi 10322 $RM -r conftest* 10323 LDFLAGS="$save_LDFLAGS" 10324 10325fi 10326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10327$as_echo "$lt_cv_prog_compiler__b" >&6; } 10328 10329if test x"$lt_cv_prog_compiler__b" = xyes; then 10330 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10331else 10332 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10333fi 10334 10335 ;; 10336 esac 10337 fi 10338 if test "$with_gnu_ld" = no; then 10339 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10340 hardcode_libdir_separator=: 10341 10342 case $host_cpu in 10343 hppa*64*|ia64*) 10344 hardcode_direct=no 10345 hardcode_shlibpath_var=no 10346 ;; 10347 *) 10348 hardcode_direct=yes 10349 hardcode_direct_absolute=yes 10350 export_dynamic_flag_spec='${wl}-E' 10351 10352 # hardcode_minus_L: Not really in the search PATH, 10353 # but as the default location of the library. 10354 hardcode_minus_L=yes 10355 ;; 10356 esac 10357 fi 10358 ;; 10359 10360 irix5* | irix6* | nonstopux*) 10361 if test "$GCC" = yes; then 10362 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' 10363 # Try to use the -exported_symbol ld option, if it does not 10364 # work, assume that -exports_file does not work either and 10365 # implicitly export all symbols. 10366 # This should be the same for all languages, so no per-tag cache variable. 10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10368$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10369if ${lt_cv_irix_exported_symbol+:} false; then : 10370 $as_echo_n "(cached) " >&6 10371else 10372 save_LDFLAGS="$LDFLAGS" 10373 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10375/* end confdefs.h. */ 10376int foo (void) { return 0; } 10377_ACEOF 10378if ac_fn_c_try_link "$LINENO"; then : 10379 lt_cv_irix_exported_symbol=yes 10380else 10381 lt_cv_irix_exported_symbol=no 10382fi 10383rm -f core conftest.err conftest.$ac_objext \ 10384 conftest$ac_exeext conftest.$ac_ext 10385 LDFLAGS="$save_LDFLAGS" 10386fi 10387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10388$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10389 if test "$lt_cv_irix_exported_symbol" = yes; then 10390 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' 10391 fi 10392 else 10393 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' 10394 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' 10395 fi 10396 archive_cmds_need_lc='no' 10397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10398 hardcode_libdir_separator=: 10399 inherit_rpath=yes 10400 link_all_deplibs=yes 10401 ;; 10402 10403 netbsd* | netbsdelf*-gnu) 10404 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10405 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10406 else 10407 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10408 fi 10409 hardcode_libdir_flag_spec='-R$libdir' 10410 hardcode_direct=yes 10411 hardcode_shlibpath_var=no 10412 ;; 10413 10414 newsos6) 10415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10416 hardcode_direct=yes 10417 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10418 hardcode_libdir_separator=: 10419 hardcode_shlibpath_var=no 10420 ;; 10421 10422 *nto* | *qnx*) 10423 ;; 10424 10425 openbsd*) 10426 if test -f /usr/libexec/ld.so; then 10427 hardcode_direct=yes 10428 hardcode_shlibpath_var=no 10429 hardcode_direct_absolute=yes 10430 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10431 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10432 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10433 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10434 export_dynamic_flag_spec='${wl}-E' 10435 else 10436 case $host_os in 10437 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10438 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10439 hardcode_libdir_flag_spec='-R$libdir' 10440 ;; 10441 *) 10442 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10443 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10444 ;; 10445 esac 10446 fi 10447 else 10448 ld_shlibs=no 10449 fi 10450 ;; 10451 10452 os2*) 10453 hardcode_libdir_flag_spec='-L$libdir' 10454 hardcode_minus_L=yes 10455 allow_undefined_flag=unsupported 10456 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10457 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10458 ;; 10459 10460 osf3*) 10461 if test "$GCC" = yes; then 10462 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10463 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' 10464 else 10465 allow_undefined_flag=' -expect_unresolved \*' 10466 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' 10467 fi 10468 archive_cmds_need_lc='no' 10469 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10470 hardcode_libdir_separator=: 10471 ;; 10472 10473 osf4* | osf5*) # as osf3* with the addition of -msym flag 10474 if test "$GCC" = yes; then 10475 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10476 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' 10477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10478 else 10479 allow_undefined_flag=' -expect_unresolved \*' 10480 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' 10481 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~ 10482 $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' 10483 10484 # Both c and cxx compiler support -rpath directly 10485 hardcode_libdir_flag_spec='-rpath $libdir' 10486 fi 10487 archive_cmds_need_lc='no' 10488 hardcode_libdir_separator=: 10489 ;; 10490 10491 solaris*) 10492 no_undefined_flag=' -z defs' 10493 if test "$GCC" = yes; then 10494 wlarc='${wl}' 10495 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10496 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10497 $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' 10498 else 10499 case `$CC -V 2>&1` in 10500 *"Compilers 5.0"*) 10501 wlarc='' 10502 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10503 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10504 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10505 ;; 10506 *) 10507 wlarc='${wl}' 10508 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10509 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10510 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10511 ;; 10512 esac 10513 fi 10514 hardcode_libdir_flag_spec='-R$libdir' 10515 hardcode_shlibpath_var=no 10516 case $host_os in 10517 solaris2.[0-5] | solaris2.[0-5].*) ;; 10518 *) 10519 # The compiler driver will combine and reorder linker options, 10520 # but understands `-z linker_flag'. GCC discards it without `$wl', 10521 # but is careful enough not to reorder. 10522 # Supported since Solaris 2.6 (maybe 2.5.1?) 10523 if test "$GCC" = yes; then 10524 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10525 else 10526 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10527 fi 10528 ;; 10529 esac 10530 link_all_deplibs=yes 10531 ;; 10532 10533 sunos4*) 10534 if test "x$host_vendor" = xsequent; then 10535 # Use $CC to link under sequent, because it throws in some extra .o 10536 # files that make .init and .fini sections work. 10537 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10538 else 10539 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10540 fi 10541 hardcode_libdir_flag_spec='-L$libdir' 10542 hardcode_direct=yes 10543 hardcode_minus_L=yes 10544 hardcode_shlibpath_var=no 10545 ;; 10546 10547 sysv4) 10548 case $host_vendor in 10549 sni) 10550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10551 hardcode_direct=yes # is this really true??? 10552 ;; 10553 siemens) 10554 ## LD is ld it makes a PLAMLIB 10555 ## CC just makes a GrossModule. 10556 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10557 reload_cmds='$CC -r -o $output$reload_objs' 10558 hardcode_direct=no 10559 ;; 10560 motorola) 10561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10562 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10563 ;; 10564 esac 10565 runpath_var='LD_RUN_PATH' 10566 hardcode_shlibpath_var=no 10567 ;; 10568 10569 sysv4.3*) 10570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10571 hardcode_shlibpath_var=no 10572 export_dynamic_flag_spec='-Bexport' 10573 ;; 10574 10575 sysv4*MP*) 10576 if test -d /usr/nec; then 10577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10578 hardcode_shlibpath_var=no 10579 runpath_var=LD_RUN_PATH 10580 hardcode_runpath_var=yes 10581 ld_shlibs=yes 10582 fi 10583 ;; 10584 10585 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10586 no_undefined_flag='${wl}-z,text' 10587 archive_cmds_need_lc=no 10588 hardcode_shlibpath_var=no 10589 runpath_var='LD_RUN_PATH' 10590 10591 if test "$GCC" = yes; then 10592 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10593 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10594 else 10595 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10596 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10597 fi 10598 ;; 10599 10600 sysv5* | sco3.2v5* | sco5v6*) 10601 # Note: We can NOT use -z defs as we might desire, because we do not 10602 # link with -lc, and that would cause any symbols used from libc to 10603 # always be unresolved, which means just about no library would 10604 # ever link correctly. If we're not using GNU ld we use -z text 10605 # though, which does catch some bad symbols but isn't as heavy-handed 10606 # as -z defs. 10607 no_undefined_flag='${wl}-z,text' 10608 allow_undefined_flag='${wl}-z,nodefs' 10609 archive_cmds_need_lc=no 10610 hardcode_shlibpath_var=no 10611 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10612 hardcode_libdir_separator=':' 10613 link_all_deplibs=yes 10614 export_dynamic_flag_spec='${wl}-Bexport' 10615 runpath_var='LD_RUN_PATH' 10616 10617 if test "$GCC" = yes; then 10618 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10619 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10620 else 10621 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10622 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10623 fi 10624 ;; 10625 10626 uts4*) 10627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10628 hardcode_libdir_flag_spec='-L$libdir' 10629 hardcode_shlibpath_var=no 10630 ;; 10631 10632 *) 10633 ld_shlibs=no 10634 ;; 10635 esac 10636 10637 if test x$host_vendor = xsni; then 10638 case $host in 10639 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10640 export_dynamic_flag_spec='${wl}-Blargedynsym' 10641 ;; 10642 esac 10643 fi 10644 fi 10645 10646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10647$as_echo "$ld_shlibs" >&6; } 10648test "$ld_shlibs" = no && can_build_shared=no 10649 10650with_gnu_ld=$with_gnu_ld 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666# 10667# Do we need to explicitly link libc? 10668# 10669case "x$archive_cmds_need_lc" in 10670x|xyes) 10671 # Assume -lc should be added 10672 archive_cmds_need_lc=yes 10673 10674 if test "$enable_shared" = yes && test "$GCC" = yes; then 10675 case $archive_cmds in 10676 *'~'*) 10677 # FIXME: we may have to deal with multi-command sequences. 10678 ;; 10679 '$CC '*) 10680 # Test whether the compiler implicitly links with -lc since on some 10681 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10682 # to ld, don't add -lc before -lgcc. 10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10684$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10685if ${lt_cv_archive_cmds_need_lc+:} false; then : 10686 $as_echo_n "(cached) " >&6 10687else 10688 $RM conftest* 10689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10690 10691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10692 (eval $ac_compile) 2>&5 10693 ac_status=$? 10694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10695 test $ac_status = 0; } 2>conftest.err; then 10696 soname=conftest 10697 lib=conftest 10698 libobjs=conftest.$ac_objext 10699 deplibs= 10700 wl=$lt_prog_compiler_wl 10701 pic_flag=$lt_prog_compiler_pic 10702 compiler_flags=-v 10703 linker_flags=-v 10704 verstring= 10705 output_objdir=. 10706 libname=conftest 10707 lt_save_allow_undefined_flag=$allow_undefined_flag 10708 allow_undefined_flag= 10709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10710 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10711 ac_status=$? 10712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10713 test $ac_status = 0; } 10714 then 10715 lt_cv_archive_cmds_need_lc=no 10716 else 10717 lt_cv_archive_cmds_need_lc=yes 10718 fi 10719 allow_undefined_flag=$lt_save_allow_undefined_flag 10720 else 10721 cat conftest.err 1>&5 10722 fi 10723 $RM conftest* 10724 10725fi 10726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10727$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10728 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10729 ;; 10730 esac 10731 fi 10732 ;; 10733esac 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 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10887$as_echo_n "checking dynamic linker characteristics... " >&6; } 10888 10889if test "$GCC" = yes; then 10890 case $host_os in 10891 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10892 *) lt_awk_arg="/^libraries:/" ;; 10893 esac 10894 case $host_os in 10895 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10896 *) lt_sed_strip_eq="s,=/,/,g" ;; 10897 esac 10898 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10899 case $lt_search_path_spec in 10900 *\;*) 10901 # if the path contains ";" then we assume it to be the separator 10902 # otherwise default to the standard path separator (i.e. ":") - it is 10903 # assumed that no part of a normal pathname contains ";" but that should 10904 # okay in the real world where ";" in dirpaths is itself problematic. 10905 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10906 ;; 10907 *) 10908 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10909 ;; 10910 esac 10911 # Ok, now we have the path, separated by spaces, we can step through it 10912 # and add multilib dir if necessary. 10913 lt_tmp_lt_search_path_spec= 10914 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10915 for lt_sys_path in $lt_search_path_spec; do 10916 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10917 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10918 else 10919 test -d "$lt_sys_path" && \ 10920 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10921 fi 10922 done 10923 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10924BEGIN {RS=" "; FS="/|\n";} { 10925 lt_foo=""; 10926 lt_count=0; 10927 for (lt_i = NF; lt_i > 0; lt_i--) { 10928 if ($lt_i != "" && $lt_i != ".") { 10929 if ($lt_i == "..") { 10930 lt_count++; 10931 } else { 10932 if (lt_count == 0) { 10933 lt_foo="/" $lt_i lt_foo; 10934 } else { 10935 lt_count--; 10936 } 10937 } 10938 } 10939 } 10940 if (lt_foo != "") { lt_freq[lt_foo]++; } 10941 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10942}'` 10943 # AWK program above erroneously prepends '/' to C:/dos/paths 10944 # for these hosts. 10945 case $host_os in 10946 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10947 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10948 esac 10949 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10950else 10951 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10952fi 10953library_names_spec= 10954libname_spec='lib$name' 10955soname_spec= 10956shrext_cmds=".so" 10957postinstall_cmds= 10958postuninstall_cmds= 10959finish_cmds= 10960finish_eval= 10961shlibpath_var= 10962shlibpath_overrides_runpath=unknown 10963version_type=none 10964dynamic_linker="$host_os ld.so" 10965sys_lib_dlsearch_path_spec="/lib /usr/lib" 10966need_lib_prefix=unknown 10967hardcode_into_libs=no 10968 10969# when you set need_version to no, make sure it does not cause -set_version 10970# flags to be left without arguments 10971need_version=unknown 10972 10973case $host_os in 10974aix3*) 10975 version_type=linux # correct to gnu/linux during the next big refactor 10976 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10977 shlibpath_var=LIBPATH 10978 10979 # AIX 3 has no versioning support, so we append a major version to the name. 10980 soname_spec='${libname}${release}${shared_ext}$major' 10981 ;; 10982 10983aix[4-9]*) 10984 version_type=linux # correct to gnu/linux during the next big refactor 10985 need_lib_prefix=no 10986 need_version=no 10987 hardcode_into_libs=yes 10988 if test "$host_cpu" = ia64; then 10989 # AIX 5 supports IA64 10990 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10991 shlibpath_var=LD_LIBRARY_PATH 10992 else 10993 # With GCC up to 2.95.x, collect2 would create an import file 10994 # for dependence libraries. The import file would start with 10995 # the line `#! .'. This would cause the generated library to 10996 # depend on `.', always an invalid library. This was fixed in 10997 # development snapshots of GCC prior to 3.0. 10998 case $host_os in 10999 aix4 | aix4.[01] | aix4.[01].*) 11000 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11001 echo ' yes ' 11002 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11003 : 11004 else 11005 can_build_shared=no 11006 fi 11007 ;; 11008 esac 11009 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11010 # soname into executable. Probably we can add versioning support to 11011 # collect2, so additional links can be useful in future. 11012 if test "$aix_use_runtimelinking" = yes; then 11013 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11014 # instead of lib<name>.a to let people know that these are not 11015 # typical AIX shared libraries. 11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11017 else 11018 # We preserve .a as extension for shared libraries through AIX4.2 11019 # and later when we are not doing run time linking. 11020 library_names_spec='${libname}${release}.a $libname.a' 11021 soname_spec='${libname}${release}${shared_ext}$major' 11022 fi 11023 shlibpath_var=LIBPATH 11024 fi 11025 ;; 11026 11027amigaos*) 11028 case $host_cpu in 11029 powerpc) 11030 # Since July 2007 AmigaOS4 officially supports .so libraries. 11031 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11033 ;; 11034 m68k) 11035 library_names_spec='$libname.ixlibrary $libname.a' 11036 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11037 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 11038 ;; 11039 esac 11040 ;; 11041 11042beos*) 11043 library_names_spec='${libname}${shared_ext}' 11044 dynamic_linker="$host_os ld.so" 11045 shlibpath_var=LIBRARY_PATH 11046 ;; 11047 11048bsdi[45]*) 11049 version_type=linux # correct to gnu/linux during the next big refactor 11050 need_version=no 11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11052 soname_spec='${libname}${release}${shared_ext}$major' 11053 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11054 shlibpath_var=LD_LIBRARY_PATH 11055 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11056 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11057 # the default ld.so.conf also contains /usr/contrib/lib and 11058 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11059 # libtool to hard-code these into programs 11060 ;; 11061 11062cygwin* | mingw* | pw32* | cegcc*) 11063 version_type=windows 11064 shrext_cmds=".dll" 11065 need_version=no 11066 need_lib_prefix=no 11067 11068 case $GCC,$cc_basename in 11069 yes,*) 11070 # gcc 11071 library_names_spec='$libname.dll.a' 11072 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11073 postinstall_cmds='base_file=`basename \${file}`~ 11074 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11075 dldir=$destdir/`dirname \$dlpath`~ 11076 test -d \$dldir || mkdir -p \$dldir~ 11077 $install_prog $dir/$dlname \$dldir/$dlname~ 11078 chmod a+x \$dldir/$dlname~ 11079 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11080 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11081 fi' 11082 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11083 dlpath=$dir/\$dldll~ 11084 $RM \$dlpath' 11085 shlibpath_overrides_runpath=yes 11086 11087 case $host_os in 11088 cygwin*) 11089 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11090 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11091 11092 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11093 ;; 11094 mingw* | cegcc*) 11095 # MinGW DLLs use traditional 'lib' prefix 11096 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11097 ;; 11098 pw32*) 11099 # pw32 DLLs use 'pw' prefix rather than 'lib' 11100 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11101 ;; 11102 esac 11103 dynamic_linker='Win32 ld.exe' 11104 ;; 11105 11106 *,cl*) 11107 # Native MSVC 11108 libname_spec='$name' 11109 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11110 library_names_spec='${libname}.dll.lib' 11111 11112 case $build_os in 11113 mingw*) 11114 sys_lib_search_path_spec= 11115 lt_save_ifs=$IFS 11116 IFS=';' 11117 for lt_path in $LIB 11118 do 11119 IFS=$lt_save_ifs 11120 # Let DOS variable expansion print the short 8.3 style file name. 11121 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11122 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11123 done 11124 IFS=$lt_save_ifs 11125 # Convert to MSYS style. 11126 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11127 ;; 11128 cygwin*) 11129 # Convert to unix form, then to dos form, then back to unix form 11130 # but this time dos style (no spaces!) so that the unix form looks 11131 # like /cygdrive/c/PROGRA~1:/cygdr... 11132 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11133 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11134 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11135 ;; 11136 *) 11137 sys_lib_search_path_spec="$LIB" 11138 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11139 # It is most probably a Windows format PATH. 11140 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11141 else 11142 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11143 fi 11144 # FIXME: find the short name or the path components, as spaces are 11145 # common. (e.g. "Program Files" -> "PROGRA~1") 11146 ;; 11147 esac 11148 11149 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11150 postinstall_cmds='base_file=`basename \${file}`~ 11151 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11152 dldir=$destdir/`dirname \$dlpath`~ 11153 test -d \$dldir || mkdir -p \$dldir~ 11154 $install_prog $dir/$dlname \$dldir/$dlname' 11155 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11156 dlpath=$dir/\$dldll~ 11157 $RM \$dlpath' 11158 shlibpath_overrides_runpath=yes 11159 dynamic_linker='Win32 link.exe' 11160 ;; 11161 11162 *) 11163 # Assume MSVC wrapper 11164 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11165 dynamic_linker='Win32 ld.exe' 11166 ;; 11167 esac 11168 # FIXME: first we should search . and the directory the executable is in 11169 shlibpath_var=PATH 11170 ;; 11171 11172darwin* | rhapsody*) 11173 dynamic_linker="$host_os dyld" 11174 version_type=darwin 11175 need_lib_prefix=no 11176 need_version=no 11177 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11178 soname_spec='${libname}${release}${major}$shared_ext' 11179 shlibpath_overrides_runpath=yes 11180 shlibpath_var=DYLD_LIBRARY_PATH 11181 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11182 11183 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11184 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11185 ;; 11186 11187dgux*) 11188 version_type=linux # correct to gnu/linux during the next big refactor 11189 need_lib_prefix=no 11190 need_version=no 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 shlibpath_var=LD_LIBRARY_PATH 11194 ;; 11195 11196freebsd* | dragonfly*) 11197 # DragonFly does not have aout. When/if they implement a new 11198 # versioning mechanism, adjust this. 11199 if test -x /usr/bin/objformat; then 11200 objformat=`/usr/bin/objformat` 11201 else 11202 case $host_os in 11203 freebsd[23].*) objformat=aout ;; 11204 *) objformat=elf ;; 11205 esac 11206 fi 11207 version_type=freebsd-$objformat 11208 case $version_type in 11209 freebsd-elf*) 11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11211 need_version=no 11212 need_lib_prefix=no 11213 ;; 11214 freebsd-*) 11215 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11216 need_version=yes 11217 ;; 11218 esac 11219 shlibpath_var=LD_LIBRARY_PATH 11220 case $host_os in 11221 freebsd2.*) 11222 shlibpath_overrides_runpath=yes 11223 ;; 11224 freebsd3.[01]* | freebsdelf3.[01]*) 11225 shlibpath_overrides_runpath=yes 11226 hardcode_into_libs=yes 11227 ;; 11228 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11229 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11230 shlibpath_overrides_runpath=no 11231 hardcode_into_libs=yes 11232 ;; 11233 *) # from 4.6 on, and DragonFly 11234 shlibpath_overrides_runpath=yes 11235 hardcode_into_libs=yes 11236 ;; 11237 esac 11238 ;; 11239 11240haiku*) 11241 version_type=linux # correct to gnu/linux during the next big refactor 11242 need_lib_prefix=no 11243 need_version=no 11244 dynamic_linker="$host_os runtime_loader" 11245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11246 soname_spec='${libname}${release}${shared_ext}$major' 11247 shlibpath_var=LIBRARY_PATH 11248 shlibpath_overrides_runpath=yes 11249 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11250 hardcode_into_libs=yes 11251 ;; 11252 11253hpux9* | hpux10* | hpux11*) 11254 # Give a soname corresponding to the major version so that dld.sl refuses to 11255 # link against other versions. 11256 version_type=sunos 11257 need_lib_prefix=no 11258 need_version=no 11259 case $host_cpu in 11260 ia64*) 11261 shrext_cmds='.so' 11262 hardcode_into_libs=yes 11263 dynamic_linker="$host_os dld.so" 11264 shlibpath_var=LD_LIBRARY_PATH 11265 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11267 soname_spec='${libname}${release}${shared_ext}$major' 11268 if test "X$HPUX_IA64_MODE" = X32; then 11269 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11270 else 11271 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11272 fi 11273 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11274 ;; 11275 hppa*64*) 11276 shrext_cmds='.sl' 11277 hardcode_into_libs=yes 11278 dynamic_linker="$host_os dld.sl" 11279 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11282 soname_spec='${libname}${release}${shared_ext}$major' 11283 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11285 ;; 11286 *) 11287 shrext_cmds='.sl' 11288 dynamic_linker="$host_os dld.sl" 11289 shlibpath_var=SHLIB_PATH 11290 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11292 soname_spec='${libname}${release}${shared_ext}$major' 11293 ;; 11294 esac 11295 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11296 postinstall_cmds='chmod 555 $lib' 11297 # or fails outright, so override atomically: 11298 install_override_mode=555 11299 ;; 11300 11301interix[3-9]*) 11302 version_type=linux # correct to gnu/linux during the next big refactor 11303 need_lib_prefix=no 11304 need_version=no 11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11306 soname_spec='${libname}${release}${shared_ext}$major' 11307 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11308 shlibpath_var=LD_LIBRARY_PATH 11309 shlibpath_overrides_runpath=no 11310 hardcode_into_libs=yes 11311 ;; 11312 11313irix5* | irix6* | nonstopux*) 11314 case $host_os in 11315 nonstopux*) version_type=nonstopux ;; 11316 *) 11317 if test "$lt_cv_prog_gnu_ld" = yes; then 11318 version_type=linux # correct to gnu/linux during the next big refactor 11319 else 11320 version_type=irix 11321 fi ;; 11322 esac 11323 need_lib_prefix=no 11324 need_version=no 11325 soname_spec='${libname}${release}${shared_ext}$major' 11326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11327 case $host_os in 11328 irix5* | nonstopux*) 11329 libsuff= shlibsuff= 11330 ;; 11331 *) 11332 case $LD in # libtool.m4 will add one of these switches to LD 11333 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11334 libsuff= shlibsuff= libmagic=32-bit;; 11335 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11336 libsuff=32 shlibsuff=N32 libmagic=N32;; 11337 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11338 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11339 *) libsuff= shlibsuff= libmagic=never-match;; 11340 esac 11341 ;; 11342 esac 11343 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11344 shlibpath_overrides_runpath=no 11345 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11346 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11347 hardcode_into_libs=yes 11348 ;; 11349 11350# No shared lib support for Linux oldld, aout, or coff. 11351linux*oldld* | linux*aout* | linux*coff*) 11352 dynamic_linker=no 11353 ;; 11354 11355# This must be glibc/ELF. 11356linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11357 version_type=linux # correct to gnu/linux during the next big refactor 11358 need_lib_prefix=no 11359 need_version=no 11360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11361 soname_spec='${libname}${release}${shared_ext}$major' 11362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11363 shlibpath_var=LD_LIBRARY_PATH 11364 shlibpath_overrides_runpath=no 11365 11366 # Some binutils ld are patched to set DT_RUNPATH 11367 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11368 $as_echo_n "(cached) " >&6 11369else 11370 lt_cv_shlibpath_overrides_runpath=no 11371 save_LDFLAGS=$LDFLAGS 11372 save_libdir=$libdir 11373 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11374 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11376/* end confdefs.h. */ 11377 11378int 11379main () 11380{ 11381 11382 ; 11383 return 0; 11384} 11385_ACEOF 11386if ac_fn_c_try_link "$LINENO"; then : 11387 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11388 lt_cv_shlibpath_overrides_runpath=yes 11389fi 11390fi 11391rm -f core conftest.err conftest.$ac_objext \ 11392 conftest$ac_exeext conftest.$ac_ext 11393 LDFLAGS=$save_LDFLAGS 11394 libdir=$save_libdir 11395 11396fi 11397 11398 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11399 11400 # This implies no fast_install, which is unacceptable. 11401 # Some rework will be needed to allow for fast_install 11402 # before this can be enabled. 11403 hardcode_into_libs=yes 11404 11405 # Append ld.so.conf contents to the search path 11406 if test -f /etc/ld.so.conf; then 11407 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' ' '` 11408 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11409 fi 11410 11411 # We used to test for /lib/ld.so.1 and disable shared libraries on 11412 # powerpc, because MkLinux only supported shared libraries with the 11413 # GNU dynamic linker. Since this was broken with cross compilers, 11414 # most powerpc-linux boxes support dynamic linking these days and 11415 # people can always --disable-shared, the test was removed, and we 11416 # assume the GNU/Linux dynamic linker is in use. 11417 dynamic_linker='GNU/Linux ld.so' 11418 ;; 11419 11420netbsdelf*-gnu) 11421 version_type=linux 11422 need_lib_prefix=no 11423 need_version=no 11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11425 soname_spec='${libname}${release}${shared_ext}$major' 11426 shlibpath_var=LD_LIBRARY_PATH 11427 shlibpath_overrides_runpath=no 11428 hardcode_into_libs=yes 11429 dynamic_linker='NetBSD ld.elf_so' 11430 ;; 11431 11432netbsd*) 11433 version_type=sunos 11434 need_lib_prefix=no 11435 need_version=no 11436 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11439 dynamic_linker='NetBSD (a.out) ld.so' 11440 else 11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11442 soname_spec='${libname}${release}${shared_ext}$major' 11443 dynamic_linker='NetBSD ld.elf_so' 11444 fi 11445 shlibpath_var=LD_LIBRARY_PATH 11446 shlibpath_overrides_runpath=yes 11447 hardcode_into_libs=yes 11448 ;; 11449 11450newsos6) 11451 version_type=linux # correct to gnu/linux during the next big refactor 11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11453 shlibpath_var=LD_LIBRARY_PATH 11454 shlibpath_overrides_runpath=yes 11455 ;; 11456 11457*nto* | *qnx*) 11458 version_type=qnx 11459 need_lib_prefix=no 11460 need_version=no 11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11462 soname_spec='${libname}${release}${shared_ext}$major' 11463 shlibpath_var=LD_LIBRARY_PATH 11464 shlibpath_overrides_runpath=no 11465 hardcode_into_libs=yes 11466 dynamic_linker='ldqnx.so' 11467 ;; 11468 11469openbsd*) 11470 version_type=sunos 11471 sys_lib_dlsearch_path_spec="/usr/lib" 11472 need_lib_prefix=no 11473 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11474 case $host_os in 11475 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11476 *) need_version=no ;; 11477 esac 11478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11480 shlibpath_var=LD_LIBRARY_PATH 11481 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11482 case $host_os in 11483 openbsd2.[89] | openbsd2.[89].*) 11484 shlibpath_overrides_runpath=no 11485 ;; 11486 *) 11487 shlibpath_overrides_runpath=yes 11488 ;; 11489 esac 11490 else 11491 shlibpath_overrides_runpath=yes 11492 fi 11493 ;; 11494 11495os2*) 11496 libname_spec='$name' 11497 shrext_cmds=".dll" 11498 need_lib_prefix=no 11499 library_names_spec='$libname${shared_ext} $libname.a' 11500 dynamic_linker='OS/2 ld.exe' 11501 shlibpath_var=LIBPATH 11502 ;; 11503 11504osf3* | osf4* | osf5*) 11505 version_type=osf 11506 need_lib_prefix=no 11507 need_version=no 11508 soname_spec='${libname}${release}${shared_ext}$major' 11509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11510 shlibpath_var=LD_LIBRARY_PATH 11511 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11512 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11513 ;; 11514 11515rdos*) 11516 dynamic_linker=no 11517 ;; 11518 11519solaris*) 11520 version_type=linux # correct to gnu/linux during the next big refactor 11521 need_lib_prefix=no 11522 need_version=no 11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11524 soname_spec='${libname}${release}${shared_ext}$major' 11525 shlibpath_var=LD_LIBRARY_PATH 11526 shlibpath_overrides_runpath=yes 11527 hardcode_into_libs=yes 11528 # ldd complains unless libraries are executable 11529 postinstall_cmds='chmod +x $lib' 11530 ;; 11531 11532sunos4*) 11533 version_type=sunos 11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11535 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11536 shlibpath_var=LD_LIBRARY_PATH 11537 shlibpath_overrides_runpath=yes 11538 if test "$with_gnu_ld" = yes; then 11539 need_lib_prefix=no 11540 fi 11541 need_version=yes 11542 ;; 11543 11544sysv4 | sysv4.3*) 11545 version_type=linux # correct to gnu/linux during the next big refactor 11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11547 soname_spec='${libname}${release}${shared_ext}$major' 11548 shlibpath_var=LD_LIBRARY_PATH 11549 case $host_vendor in 11550 sni) 11551 shlibpath_overrides_runpath=no 11552 need_lib_prefix=no 11553 runpath_var=LD_RUN_PATH 11554 ;; 11555 siemens) 11556 need_lib_prefix=no 11557 ;; 11558 motorola) 11559 need_lib_prefix=no 11560 need_version=no 11561 shlibpath_overrides_runpath=no 11562 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11563 ;; 11564 esac 11565 ;; 11566 11567sysv4*MP*) 11568 if test -d /usr/nec ;then 11569 version_type=linux # correct to gnu/linux during the next big refactor 11570 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11571 soname_spec='$libname${shared_ext}.$major' 11572 shlibpath_var=LD_LIBRARY_PATH 11573 fi 11574 ;; 11575 11576sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11577 version_type=freebsd-elf 11578 need_lib_prefix=no 11579 need_version=no 11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11581 soname_spec='${libname}${release}${shared_ext}$major' 11582 shlibpath_var=LD_LIBRARY_PATH 11583 shlibpath_overrides_runpath=yes 11584 hardcode_into_libs=yes 11585 if test "$with_gnu_ld" = yes; then 11586 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11587 else 11588 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11589 case $host_os in 11590 sco3.2v5*) 11591 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11592 ;; 11593 esac 11594 fi 11595 sys_lib_dlsearch_path_spec='/usr/lib' 11596 ;; 11597 11598tpf*) 11599 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11600 version_type=linux # correct to gnu/linux during the next big refactor 11601 need_lib_prefix=no 11602 need_version=no 11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11604 shlibpath_var=LD_LIBRARY_PATH 11605 shlibpath_overrides_runpath=no 11606 hardcode_into_libs=yes 11607 ;; 11608 11609uts4*) 11610 version_type=linux # correct to gnu/linux during the next big refactor 11611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11612 soname_spec='${libname}${release}${shared_ext}$major' 11613 shlibpath_var=LD_LIBRARY_PATH 11614 ;; 11615 11616*) 11617 dynamic_linker=no 11618 ;; 11619esac 11620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11621$as_echo "$dynamic_linker" >&6; } 11622test "$dynamic_linker" = no && can_build_shared=no 11623 11624variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11625if test "$GCC" = yes; then 11626 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11627fi 11628 11629if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11630 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11631fi 11632if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11633 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11634fi 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11728$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11729hardcode_action= 11730if test -n "$hardcode_libdir_flag_spec" || 11731 test -n "$runpath_var" || 11732 test "X$hardcode_automatic" = "Xyes" ; then 11733 11734 # We can hardcode non-existent directories. 11735 if test "$hardcode_direct" != no && 11736 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11737 # have to relink, otherwise we might link with an installed library 11738 # when we should be linking with a yet-to-be-installed one 11739 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11740 test "$hardcode_minus_L" != no; then 11741 # Linking always hardcodes the temporary library directory. 11742 hardcode_action=relink 11743 else 11744 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11745 hardcode_action=immediate 11746 fi 11747else 11748 # We cannot hardcode anything, or else we can only hardcode existing 11749 # directories. 11750 hardcode_action=unsupported 11751fi 11752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11753$as_echo "$hardcode_action" >&6; } 11754 11755if test "$hardcode_action" = relink || 11756 test "$inherit_rpath" = yes; then 11757 # Fast installation is not supported 11758 enable_fast_install=no 11759elif test "$shlibpath_overrides_runpath" = yes || 11760 test "$enable_shared" = no; then 11761 # Fast installation is not necessary 11762 enable_fast_install=needless 11763fi 11764 11765 11766 11767 11768 11769 11770 if test "x$enable_dlopen" != xyes; then 11771 enable_dlopen=unknown 11772 enable_dlopen_self=unknown 11773 enable_dlopen_self_static=unknown 11774else 11775 lt_cv_dlopen=no 11776 lt_cv_dlopen_libs= 11777 11778 case $host_os in 11779 beos*) 11780 lt_cv_dlopen="load_add_on" 11781 lt_cv_dlopen_libs= 11782 lt_cv_dlopen_self=yes 11783 ;; 11784 11785 mingw* | pw32* | cegcc*) 11786 lt_cv_dlopen="LoadLibrary" 11787 lt_cv_dlopen_libs= 11788 ;; 11789 11790 cygwin*) 11791 lt_cv_dlopen="dlopen" 11792 lt_cv_dlopen_libs= 11793 ;; 11794 11795 darwin*) 11796 # if libdl is installed we need to link against it 11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11798$as_echo_n "checking for dlopen in -ldl... " >&6; } 11799if ${ac_cv_lib_dl_dlopen+:} false; then : 11800 $as_echo_n "(cached) " >&6 11801else 11802 ac_check_lib_save_LIBS=$LIBS 11803LIBS="-ldl $LIBS" 11804cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11805/* end confdefs.h. */ 11806 11807/* Override any GCC internal prototype to avoid an error. 11808 Use char because int might match the return type of a GCC 11809 builtin and then its argument prototype would still apply. */ 11810#ifdef __cplusplus 11811extern "C" 11812#endif 11813char dlopen (); 11814int 11815main () 11816{ 11817return dlopen (); 11818 ; 11819 return 0; 11820} 11821_ACEOF 11822if ac_fn_c_try_link "$LINENO"; then : 11823 ac_cv_lib_dl_dlopen=yes 11824else 11825 ac_cv_lib_dl_dlopen=no 11826fi 11827rm -f core conftest.err conftest.$ac_objext \ 11828 conftest$ac_exeext conftest.$ac_ext 11829LIBS=$ac_check_lib_save_LIBS 11830fi 11831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11832$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11833if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11834 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11835else 11836 11837 lt_cv_dlopen="dyld" 11838 lt_cv_dlopen_libs= 11839 lt_cv_dlopen_self=yes 11840 11841fi 11842 11843 ;; 11844 11845 *) 11846 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11847if test "x$ac_cv_func_shl_load" = xyes; then : 11848 lt_cv_dlopen="shl_load" 11849else 11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11851$as_echo_n "checking for shl_load in -ldld... " >&6; } 11852if ${ac_cv_lib_dld_shl_load+:} false; then : 11853 $as_echo_n "(cached) " >&6 11854else 11855 ac_check_lib_save_LIBS=$LIBS 11856LIBS="-ldld $LIBS" 11857cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11858/* end confdefs.h. */ 11859 11860/* Override any GCC internal prototype to avoid an error. 11861 Use char because int might match the return type of a GCC 11862 builtin and then its argument prototype would still apply. */ 11863#ifdef __cplusplus 11864extern "C" 11865#endif 11866char shl_load (); 11867int 11868main () 11869{ 11870return shl_load (); 11871 ; 11872 return 0; 11873} 11874_ACEOF 11875if ac_fn_c_try_link "$LINENO"; then : 11876 ac_cv_lib_dld_shl_load=yes 11877else 11878 ac_cv_lib_dld_shl_load=no 11879fi 11880rm -f core conftest.err conftest.$ac_objext \ 11881 conftest$ac_exeext conftest.$ac_ext 11882LIBS=$ac_check_lib_save_LIBS 11883fi 11884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11885$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11886if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11887 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11888else 11889 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11890if test "x$ac_cv_func_dlopen" = xyes; then : 11891 lt_cv_dlopen="dlopen" 11892else 11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11894$as_echo_n "checking for dlopen in -ldl... " >&6; } 11895if ${ac_cv_lib_dl_dlopen+:} false; then : 11896 $as_echo_n "(cached) " >&6 11897else 11898 ac_check_lib_save_LIBS=$LIBS 11899LIBS="-ldl $LIBS" 11900cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11901/* end confdefs.h. */ 11902 11903/* Override any GCC internal prototype to avoid an error. 11904 Use char because int might match the return type of a GCC 11905 builtin and then its argument prototype would still apply. */ 11906#ifdef __cplusplus 11907extern "C" 11908#endif 11909char dlopen (); 11910int 11911main () 11912{ 11913return dlopen (); 11914 ; 11915 return 0; 11916} 11917_ACEOF 11918if ac_fn_c_try_link "$LINENO"; then : 11919 ac_cv_lib_dl_dlopen=yes 11920else 11921 ac_cv_lib_dl_dlopen=no 11922fi 11923rm -f core conftest.err conftest.$ac_objext \ 11924 conftest$ac_exeext conftest.$ac_ext 11925LIBS=$ac_check_lib_save_LIBS 11926fi 11927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11928$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11929if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11931else 11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11933$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11934if ${ac_cv_lib_svld_dlopen+:} false; then : 11935 $as_echo_n "(cached) " >&6 11936else 11937 ac_check_lib_save_LIBS=$LIBS 11938LIBS="-lsvld $LIBS" 11939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11940/* end confdefs.h. */ 11941 11942/* Override any GCC internal prototype to avoid an error. 11943 Use char because int might match the return type of a GCC 11944 builtin and then its argument prototype would still apply. */ 11945#ifdef __cplusplus 11946extern "C" 11947#endif 11948char dlopen (); 11949int 11950main () 11951{ 11952return dlopen (); 11953 ; 11954 return 0; 11955} 11956_ACEOF 11957if ac_fn_c_try_link "$LINENO"; then : 11958 ac_cv_lib_svld_dlopen=yes 11959else 11960 ac_cv_lib_svld_dlopen=no 11961fi 11962rm -f core conftest.err conftest.$ac_objext \ 11963 conftest$ac_exeext conftest.$ac_ext 11964LIBS=$ac_check_lib_save_LIBS 11965fi 11966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11967$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11968if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11969 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11970else 11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11972$as_echo_n "checking for dld_link in -ldld... " >&6; } 11973if ${ac_cv_lib_dld_dld_link+:} false; then : 11974 $as_echo_n "(cached) " >&6 11975else 11976 ac_check_lib_save_LIBS=$LIBS 11977LIBS="-ldld $LIBS" 11978cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11979/* end confdefs.h. */ 11980 11981/* Override any GCC internal prototype to avoid an error. 11982 Use char because int might match the return type of a GCC 11983 builtin and then its argument prototype would still apply. */ 11984#ifdef __cplusplus 11985extern "C" 11986#endif 11987char dld_link (); 11988int 11989main () 11990{ 11991return dld_link (); 11992 ; 11993 return 0; 11994} 11995_ACEOF 11996if ac_fn_c_try_link "$LINENO"; then : 11997 ac_cv_lib_dld_dld_link=yes 11998else 11999 ac_cv_lib_dld_dld_link=no 12000fi 12001rm -f core conftest.err conftest.$ac_objext \ 12002 conftest$ac_exeext conftest.$ac_ext 12003LIBS=$ac_check_lib_save_LIBS 12004fi 12005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12006$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12007if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12008 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12009fi 12010 12011 12012fi 12013 12014 12015fi 12016 12017 12018fi 12019 12020 12021fi 12022 12023 12024fi 12025 12026 ;; 12027 esac 12028 12029 if test "x$lt_cv_dlopen" != xno; then 12030 enable_dlopen=yes 12031 else 12032 enable_dlopen=no 12033 fi 12034 12035 case $lt_cv_dlopen in 12036 dlopen) 12037 save_CPPFLAGS="$CPPFLAGS" 12038 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12039 12040 save_LDFLAGS="$LDFLAGS" 12041 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12042 12043 save_LIBS="$LIBS" 12044 LIBS="$lt_cv_dlopen_libs $LIBS" 12045 12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12047$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12048if ${lt_cv_dlopen_self+:} false; then : 12049 $as_echo_n "(cached) " >&6 12050else 12051 if test "$cross_compiling" = yes; then : 12052 lt_cv_dlopen_self=cross 12053else 12054 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12055 lt_status=$lt_dlunknown 12056 cat > conftest.$ac_ext <<_LT_EOF 12057#line $LINENO "configure" 12058#include "confdefs.h" 12059 12060#if HAVE_DLFCN_H 12061#include <dlfcn.h> 12062#endif 12063 12064#include <stdio.h> 12065 12066#ifdef RTLD_GLOBAL 12067# define LT_DLGLOBAL RTLD_GLOBAL 12068#else 12069# ifdef DL_GLOBAL 12070# define LT_DLGLOBAL DL_GLOBAL 12071# else 12072# define LT_DLGLOBAL 0 12073# endif 12074#endif 12075 12076/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12077 find out it does not work in some platform. */ 12078#ifndef LT_DLLAZY_OR_NOW 12079# ifdef RTLD_LAZY 12080# define LT_DLLAZY_OR_NOW RTLD_LAZY 12081# else 12082# ifdef DL_LAZY 12083# define LT_DLLAZY_OR_NOW DL_LAZY 12084# else 12085# ifdef RTLD_NOW 12086# define LT_DLLAZY_OR_NOW RTLD_NOW 12087# else 12088# ifdef DL_NOW 12089# define LT_DLLAZY_OR_NOW DL_NOW 12090# else 12091# define LT_DLLAZY_OR_NOW 0 12092# endif 12093# endif 12094# endif 12095# endif 12096#endif 12097 12098/* When -fvisbility=hidden is used, assume the code has been annotated 12099 correspondingly for the symbols needed. */ 12100#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12101int fnord () __attribute__((visibility("default"))); 12102#endif 12103 12104int fnord () { return 42; } 12105int main () 12106{ 12107 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12108 int status = $lt_dlunknown; 12109 12110 if (self) 12111 { 12112 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12113 else 12114 { 12115 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12116 else puts (dlerror ()); 12117 } 12118 /* dlclose (self); */ 12119 } 12120 else 12121 puts (dlerror ()); 12122 12123 return status; 12124} 12125_LT_EOF 12126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12127 (eval $ac_link) 2>&5 12128 ac_status=$? 12129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12130 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12131 (./conftest; exit; ) >&5 2>/dev/null 12132 lt_status=$? 12133 case x$lt_status in 12134 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12135 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12136 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12137 esac 12138 else : 12139 # compilation failed 12140 lt_cv_dlopen_self=no 12141 fi 12142fi 12143rm -fr conftest* 12144 12145 12146fi 12147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12148$as_echo "$lt_cv_dlopen_self" >&6; } 12149 12150 if test "x$lt_cv_dlopen_self" = xyes; then 12151 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12153$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12154if ${lt_cv_dlopen_self_static+:} false; then : 12155 $as_echo_n "(cached) " >&6 12156else 12157 if test "$cross_compiling" = yes; then : 12158 lt_cv_dlopen_self_static=cross 12159else 12160 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12161 lt_status=$lt_dlunknown 12162 cat > conftest.$ac_ext <<_LT_EOF 12163#line $LINENO "configure" 12164#include "confdefs.h" 12165 12166#if HAVE_DLFCN_H 12167#include <dlfcn.h> 12168#endif 12169 12170#include <stdio.h> 12171 12172#ifdef RTLD_GLOBAL 12173# define LT_DLGLOBAL RTLD_GLOBAL 12174#else 12175# ifdef DL_GLOBAL 12176# define LT_DLGLOBAL DL_GLOBAL 12177# else 12178# define LT_DLGLOBAL 0 12179# endif 12180#endif 12181 12182/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12183 find out it does not work in some platform. */ 12184#ifndef LT_DLLAZY_OR_NOW 12185# ifdef RTLD_LAZY 12186# define LT_DLLAZY_OR_NOW RTLD_LAZY 12187# else 12188# ifdef DL_LAZY 12189# define LT_DLLAZY_OR_NOW DL_LAZY 12190# else 12191# ifdef RTLD_NOW 12192# define LT_DLLAZY_OR_NOW RTLD_NOW 12193# else 12194# ifdef DL_NOW 12195# define LT_DLLAZY_OR_NOW DL_NOW 12196# else 12197# define LT_DLLAZY_OR_NOW 0 12198# endif 12199# endif 12200# endif 12201# endif 12202#endif 12203 12204/* When -fvisbility=hidden is used, assume the code has been annotated 12205 correspondingly for the symbols needed. */ 12206#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12207int fnord () __attribute__((visibility("default"))); 12208#endif 12209 12210int fnord () { return 42; } 12211int main () 12212{ 12213 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12214 int status = $lt_dlunknown; 12215 12216 if (self) 12217 { 12218 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12219 else 12220 { 12221 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12222 else puts (dlerror ()); 12223 } 12224 /* dlclose (self); */ 12225 } 12226 else 12227 puts (dlerror ()); 12228 12229 return status; 12230} 12231_LT_EOF 12232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12233 (eval $ac_link) 2>&5 12234 ac_status=$? 12235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12236 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12237 (./conftest; exit; ) >&5 2>/dev/null 12238 lt_status=$? 12239 case x$lt_status in 12240 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12241 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12242 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12243 esac 12244 else : 12245 # compilation failed 12246 lt_cv_dlopen_self_static=no 12247 fi 12248fi 12249rm -fr conftest* 12250 12251 12252fi 12253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12254$as_echo "$lt_cv_dlopen_self_static" >&6; } 12255 fi 12256 12257 CPPFLAGS="$save_CPPFLAGS" 12258 LDFLAGS="$save_LDFLAGS" 12259 LIBS="$save_LIBS" 12260 ;; 12261 esac 12262 12263 case $lt_cv_dlopen_self in 12264 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12265 *) enable_dlopen_self=unknown ;; 12266 esac 12267 12268 case $lt_cv_dlopen_self_static in 12269 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12270 *) enable_dlopen_self_static=unknown ;; 12271 esac 12272fi 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290striplib= 12291old_striplib= 12292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12293$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12294if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12295 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12296 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12298$as_echo "yes" >&6; } 12299else 12300# FIXME - insert some real tests, host_os isn't really good enough 12301 case $host_os in 12302 darwin*) 12303 if test -n "$STRIP" ; then 12304 striplib="$STRIP -x" 12305 old_striplib="$STRIP -S" 12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12307$as_echo "yes" >&6; } 12308 else 12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12310$as_echo "no" >&6; } 12311 fi 12312 ;; 12313 *) 12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12315$as_echo "no" >&6; } 12316 ;; 12317 esac 12318fi 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 # Report which library types will actually be built 12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12333$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12335$as_echo "$can_build_shared" >&6; } 12336 12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12338$as_echo_n "checking whether to build shared libraries... " >&6; } 12339 test "$can_build_shared" = "no" && enable_shared=no 12340 12341 # On AIX, shared libraries and static libraries use the same namespace, and 12342 # are all built from PIC. 12343 case $host_os in 12344 aix3*) 12345 test "$enable_shared" = yes && enable_static=no 12346 if test -n "$RANLIB"; then 12347 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12348 postinstall_cmds='$RANLIB $lib' 12349 fi 12350 ;; 12351 12352 aix[4-9]*) 12353 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12354 test "$enable_shared" = yes && enable_static=no 12355 fi 12356 ;; 12357 esac 12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12359$as_echo "$enable_shared" >&6; } 12360 12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12362$as_echo_n "checking whether to build static libraries... " >&6; } 12363 # Make sure either enable_shared or enable_static is yes. 12364 test "$enable_shared" = yes || enable_static=yes 12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12366$as_echo "$enable_static" >&6; } 12367 12368 12369 12370 12371fi 12372ac_ext=c 12373ac_cpp='$CPP $CPPFLAGS' 12374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12376ac_compiler_gnu=$ac_cv_c_compiler_gnu 12377 12378CC="$lt_save_CC" 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 ac_config_commands="$ac_config_commands libtool" 12395 12396 12397 12398 12399# Only expand once: 12400 12401 12402 12403# Require xorg-macros minimum of 1.18 - Initial version 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 12416$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 12417if ${ac_cv_prog_cc_c99+:} false; then : 12418 $as_echo_n "(cached) " >&6 12419else 12420 ac_cv_prog_cc_c99=no 12421ac_save_CC=$CC 12422cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12423/* end confdefs.h. */ 12424#include <stdarg.h> 12425#include <stdbool.h> 12426#include <stdlib.h> 12427#include <wchar.h> 12428#include <stdio.h> 12429 12430// Check varargs macros. These examples are taken from C99 6.10.3.5. 12431#define debug(...) fprintf (stderr, __VA_ARGS__) 12432#define showlist(...) puts (#__VA_ARGS__) 12433#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12434static void 12435test_varargs_macros (void) 12436{ 12437 int x = 1234; 12438 int y = 5678; 12439 debug ("Flag"); 12440 debug ("X = %d\n", x); 12441 showlist (The first, second, and third items.); 12442 report (x>y, "x is %d but y is %d", x, y); 12443} 12444 12445// Check long long types. 12446#define BIG64 18446744073709551615ull 12447#define BIG32 4294967295ul 12448#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12449#if !BIG_OK 12450 your preprocessor is broken; 12451#endif 12452#if BIG_OK 12453#else 12454 your preprocessor is broken; 12455#endif 12456static long long int bignum = -9223372036854775807LL; 12457static unsigned long long int ubignum = BIG64; 12458 12459struct incomplete_array 12460{ 12461 int datasize; 12462 double data[]; 12463}; 12464 12465struct named_init { 12466 int number; 12467 const wchar_t *name; 12468 double average; 12469}; 12470 12471typedef const char *ccp; 12472 12473static inline int 12474test_restrict (ccp restrict text) 12475{ 12476 // See if C++-style comments work. 12477 // Iterate through items via the restricted pointer. 12478 // Also check for declarations in for loops. 12479 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12480 continue; 12481 return 0; 12482} 12483 12484// Check varargs and va_copy. 12485static void 12486test_varargs (const char *format, ...) 12487{ 12488 va_list args; 12489 va_start (args, format); 12490 va_list args_copy; 12491 va_copy (args_copy, args); 12492 12493 const char *str; 12494 int number; 12495 float fnumber; 12496 12497 while (*format) 12498 { 12499 switch (*format++) 12500 { 12501 case 's': // string 12502 str = va_arg (args_copy, const char *); 12503 break; 12504 case 'd': // int 12505 number = va_arg (args_copy, int); 12506 break; 12507 case 'f': // float 12508 fnumber = va_arg (args_copy, double); 12509 break; 12510 default: 12511 break; 12512 } 12513 } 12514 va_end (args_copy); 12515 va_end (args); 12516} 12517 12518int 12519main () 12520{ 12521 12522 // Check bool. 12523 _Bool success = false; 12524 12525 // Check restrict. 12526 if (test_restrict ("String literal") == 0) 12527 success = true; 12528 char *restrict newvar = "Another string"; 12529 12530 // Check varargs. 12531 test_varargs ("s, d' f .", "string", 65, 34.234); 12532 test_varargs_macros (); 12533 12534 // Check flexible array members. 12535 struct incomplete_array *ia = 12536 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12537 ia->datasize = 10; 12538 for (int i = 0; i < ia->datasize; ++i) 12539 ia->data[i] = i * 1.234; 12540 12541 // Check named initializers. 12542 struct named_init ni = { 12543 .number = 34, 12544 .name = L"Test wide string", 12545 .average = 543.34343, 12546 }; 12547 12548 ni.number = 58; 12549 12550 int dynamic_array[ni.number]; 12551 dynamic_array[ni.number - 1] = 543; 12552 12553 // work around unused variable warnings 12554 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12555 || dynamic_array[ni.number - 1] != 543); 12556 12557 ; 12558 return 0; 12559} 12560_ACEOF 12561for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12562do 12563 CC="$ac_save_CC $ac_arg" 12564 if ac_fn_c_try_compile "$LINENO"; then : 12565 ac_cv_prog_cc_c99=$ac_arg 12566fi 12567rm -f core conftest.err conftest.$ac_objext 12568 test "x$ac_cv_prog_cc_c99" != "xno" && break 12569done 12570rm -f conftest.$ac_ext 12571CC=$ac_save_CC 12572 12573fi 12574# AC_CACHE_VAL 12575case "x$ac_cv_prog_cc_c99" in 12576 x) 12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12578$as_echo "none needed" >&6; } ;; 12579 xno) 12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12581$as_echo "unsupported" >&6; } ;; 12582 *) 12583 CC="$CC $ac_cv_prog_cc_c99" 12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12585$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12586esac 12587if test "x$ac_cv_prog_cc_c99" != xno; then : 12588 12589fi 12590 12591 12592 12593 12594 12595 12596ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12597if test "x$ac_cv_have_decl___clang__" = xyes; then : 12598 CLANGCC="yes" 12599else 12600 CLANGCC="no" 12601fi 12602 12603ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12604if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12605 INTELCC="yes" 12606else 12607 INTELCC="no" 12608fi 12609 12610ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12611if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12612 SUNCC="yes" 12613else 12614 SUNCC="no" 12615fi 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12626 if test -n "$ac_tool_prefix"; then 12627 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12628set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12630$as_echo_n "checking for $ac_word... " >&6; } 12631if ${ac_cv_path_PKG_CONFIG+:} false; then : 12632 $as_echo_n "(cached) " >&6 12633else 12634 case $PKG_CONFIG in 12635 [\\/]* | ?:[\\/]*) 12636 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12637 ;; 12638 *) 12639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12640for as_dir in $PATH 12641do 12642 IFS=$as_save_IFS 12643 test -z "$as_dir" && as_dir=. 12644 for ac_exec_ext in '' $ac_executable_extensions; do 12645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12646 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12648 break 2 12649 fi 12650done 12651 done 12652IFS=$as_save_IFS 12653 12654 ;; 12655esac 12656fi 12657PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12658if test -n "$PKG_CONFIG"; then 12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12660$as_echo "$PKG_CONFIG" >&6; } 12661else 12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12663$as_echo "no" >&6; } 12664fi 12665 12666 12667fi 12668if test -z "$ac_cv_path_PKG_CONFIG"; then 12669 ac_pt_PKG_CONFIG=$PKG_CONFIG 12670 # Extract the first word of "pkg-config", so it can be a program name with args. 12671set dummy pkg-config; ac_word=$2 12672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12673$as_echo_n "checking for $ac_word... " >&6; } 12674if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12675 $as_echo_n "(cached) " >&6 12676else 12677 case $ac_pt_PKG_CONFIG in 12678 [\\/]* | ?:[\\/]*) 12679 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12680 ;; 12681 *) 12682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12683for as_dir in $PATH 12684do 12685 IFS=$as_save_IFS 12686 test -z "$as_dir" && as_dir=. 12687 for ac_exec_ext in '' $ac_executable_extensions; do 12688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12689 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12691 break 2 12692 fi 12693done 12694 done 12695IFS=$as_save_IFS 12696 12697 ;; 12698esac 12699fi 12700ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12701if test -n "$ac_pt_PKG_CONFIG"; then 12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12703$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12704else 12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12706$as_echo "no" >&6; } 12707fi 12708 12709 if test "x$ac_pt_PKG_CONFIG" = x; then 12710 PKG_CONFIG="" 12711 else 12712 case $cross_compiling:$ac_tool_warned in 12713yes:) 12714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12716ac_tool_warned=yes ;; 12717esac 12718 PKG_CONFIG=$ac_pt_PKG_CONFIG 12719 fi 12720else 12721 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12722fi 12723 12724fi 12725if test -n "$PKG_CONFIG"; then 12726 _pkg_min_version=0.9.0 12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12728$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12729 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12731$as_echo "yes" >&6; } 12732 else 12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12734$as_echo "no" >&6; } 12735 PKG_CONFIG="" 12736 fi 12737fi 12738 12739 12740 12741 12742 12743# Check whether --enable-selective-werror was given. 12744if test "${enable_selective_werror+set}" = set; then : 12745 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12746else 12747 SELECTIVE_WERROR=yes 12748fi 12749 12750 12751 12752 12753 12754# -v is too short to test reliably with XORG_TESTSET_CFLAG 12755if test "x$SUNCC" = "xyes"; then 12756 BASE_CFLAGS="-v" 12757else 12758 BASE_CFLAGS="" 12759fi 12760 12761# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775xorg_testset_save_CFLAGS="$CFLAGS" 12776 12777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12780$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12781if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12782 $as_echo_n "(cached) " >&6 12783else 12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12785/* end confdefs.h. */ 12786int i; 12787_ACEOF 12788if ac_fn_c_try_compile "$LINENO"; then : 12789 xorg_cv_cc_flag_unknown_warning_option=yes 12790else 12791 xorg_cv_cc_flag_unknown_warning_option=no 12792fi 12793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12794fi 12795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12796$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12798 CFLAGS="$xorg_testset_save_CFLAGS" 12799fi 12800 12801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12804 fi 12805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12807$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12808if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12809 $as_echo_n "(cached) " >&6 12810else 12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12812/* end confdefs.h. */ 12813int i; 12814_ACEOF 12815if ac_fn_c_try_compile "$LINENO"; then : 12816 xorg_cv_cc_flag_unused_command_line_argument=yes 12817else 12818 xorg_cv_cc_flag_unused_command_line_argument=no 12819fi 12820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12821fi 12822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12823$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12825 CFLAGS="$xorg_testset_save_CFLAGS" 12826fi 12827 12828found="no" 12829 12830 if test $found = "no" ; then 12831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12833 fi 12834 12835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12837 fi 12838 12839 CFLAGS="$CFLAGS -Wall" 12840 12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12842$as_echo_n "checking if $CC supports -Wall... " >&6; } 12843 cacheid=xorg_cv_cc_flag__Wall 12844 if eval \${$cacheid+:} false; then : 12845 $as_echo_n "(cached) " >&6 12846else 12847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12848/* end confdefs.h. */ 12849int i; 12850int 12851main () 12852{ 12853 12854 ; 12855 return 0; 12856} 12857_ACEOF 12858if ac_fn_c_try_link "$LINENO"; then : 12859 eval $cacheid=yes 12860else 12861 eval $cacheid=no 12862fi 12863rm -f core conftest.err conftest.$ac_objext \ 12864 conftest$ac_exeext conftest.$ac_ext 12865fi 12866 12867 12868 CFLAGS="$xorg_testset_save_CFLAGS" 12869 12870 eval supported=\$$cacheid 12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12872$as_echo "$supported" >&6; } 12873 if test "$supported" = "yes" ; then 12874 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12875 found="yes" 12876 fi 12877 fi 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893xorg_testset_save_CFLAGS="$CFLAGS" 12894 12895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12898$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12899if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12900 $as_echo_n "(cached) " >&6 12901else 12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12903/* end confdefs.h. */ 12904int i; 12905_ACEOF 12906if ac_fn_c_try_compile "$LINENO"; then : 12907 xorg_cv_cc_flag_unknown_warning_option=yes 12908else 12909 xorg_cv_cc_flag_unknown_warning_option=no 12910fi 12911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12912fi 12913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12914$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12916 CFLAGS="$xorg_testset_save_CFLAGS" 12917fi 12918 12919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12922 fi 12923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12925$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12926if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12927 $as_echo_n "(cached) " >&6 12928else 12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12930/* end confdefs.h. */ 12931int i; 12932_ACEOF 12933if ac_fn_c_try_compile "$LINENO"; then : 12934 xorg_cv_cc_flag_unused_command_line_argument=yes 12935else 12936 xorg_cv_cc_flag_unused_command_line_argument=no 12937fi 12938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12939fi 12940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12941$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12943 CFLAGS="$xorg_testset_save_CFLAGS" 12944fi 12945 12946found="no" 12947 12948 if test $found = "no" ; then 12949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12951 fi 12952 12953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12955 fi 12956 12957 CFLAGS="$CFLAGS -Wpointer-arith" 12958 12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12960$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12961 cacheid=xorg_cv_cc_flag__Wpointer_arith 12962 if eval \${$cacheid+:} false; then : 12963 $as_echo_n "(cached) " >&6 12964else 12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12966/* end confdefs.h. */ 12967int i; 12968int 12969main () 12970{ 12971 12972 ; 12973 return 0; 12974} 12975_ACEOF 12976if ac_fn_c_try_link "$LINENO"; then : 12977 eval $cacheid=yes 12978else 12979 eval $cacheid=no 12980fi 12981rm -f core conftest.err conftest.$ac_objext \ 12982 conftest$ac_exeext conftest.$ac_ext 12983fi 12984 12985 12986 CFLAGS="$xorg_testset_save_CFLAGS" 12987 12988 eval supported=\$$cacheid 12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12990$as_echo "$supported" >&6; } 12991 if test "$supported" = "yes" ; then 12992 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12993 found="yes" 12994 fi 12995 fi 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011xorg_testset_save_CFLAGS="$CFLAGS" 13012 13013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13016$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13017if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13018 $as_echo_n "(cached) " >&6 13019else 13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13021/* end confdefs.h. */ 13022int i; 13023_ACEOF 13024if ac_fn_c_try_compile "$LINENO"; then : 13025 xorg_cv_cc_flag_unknown_warning_option=yes 13026else 13027 xorg_cv_cc_flag_unknown_warning_option=no 13028fi 13029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13030fi 13031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13032$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13034 CFLAGS="$xorg_testset_save_CFLAGS" 13035fi 13036 13037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13040 fi 13041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13043$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13044if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13045 $as_echo_n "(cached) " >&6 13046else 13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13048/* end confdefs.h. */ 13049int i; 13050_ACEOF 13051if ac_fn_c_try_compile "$LINENO"; then : 13052 xorg_cv_cc_flag_unused_command_line_argument=yes 13053else 13054 xorg_cv_cc_flag_unused_command_line_argument=no 13055fi 13056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13057fi 13058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13059$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13061 CFLAGS="$xorg_testset_save_CFLAGS" 13062fi 13063 13064found="no" 13065 13066 if test $found = "no" ; then 13067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13069 fi 13070 13071 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13073 fi 13074 13075 CFLAGS="$CFLAGS -Wmissing-declarations" 13076 13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13078$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 13079 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13080 if eval \${$cacheid+:} false; then : 13081 $as_echo_n "(cached) " >&6 13082else 13083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13084/* end confdefs.h. */ 13085int i; 13086int 13087main () 13088{ 13089 13090 ; 13091 return 0; 13092} 13093_ACEOF 13094if ac_fn_c_try_link "$LINENO"; then : 13095 eval $cacheid=yes 13096else 13097 eval $cacheid=no 13098fi 13099rm -f core conftest.err conftest.$ac_objext \ 13100 conftest$ac_exeext conftest.$ac_ext 13101fi 13102 13103 13104 CFLAGS="$xorg_testset_save_CFLAGS" 13105 13106 eval supported=\$$cacheid 13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13108$as_echo "$supported" >&6; } 13109 if test "$supported" = "yes" ; then 13110 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13111 found="yes" 13112 fi 13113 fi 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129xorg_testset_save_CFLAGS="$CFLAGS" 13130 13131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13134$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13135if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13136 $as_echo_n "(cached) " >&6 13137else 13138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13139/* end confdefs.h. */ 13140int i; 13141_ACEOF 13142if ac_fn_c_try_compile "$LINENO"; then : 13143 xorg_cv_cc_flag_unknown_warning_option=yes 13144else 13145 xorg_cv_cc_flag_unknown_warning_option=no 13146fi 13147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13148fi 13149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13150$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13151 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13152 CFLAGS="$xorg_testset_save_CFLAGS" 13153fi 13154 13155if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13158 fi 13159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13161$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13162if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13163 $as_echo_n "(cached) " >&6 13164else 13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13166/* end confdefs.h. */ 13167int i; 13168_ACEOF 13169if ac_fn_c_try_compile "$LINENO"; then : 13170 xorg_cv_cc_flag_unused_command_line_argument=yes 13171else 13172 xorg_cv_cc_flag_unused_command_line_argument=no 13173fi 13174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13175fi 13176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13177$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13178 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13179 CFLAGS="$xorg_testset_save_CFLAGS" 13180fi 13181 13182found="no" 13183 13184 if test $found = "no" ; then 13185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13187 fi 13188 13189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13191 fi 13192 13193 CFLAGS="$CFLAGS -Wformat=2" 13194 13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13196$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 13197 cacheid=xorg_cv_cc_flag__Wformat_2 13198 if eval \${$cacheid+:} false; then : 13199 $as_echo_n "(cached) " >&6 13200else 13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13202/* end confdefs.h. */ 13203int i; 13204int 13205main () 13206{ 13207 13208 ; 13209 return 0; 13210} 13211_ACEOF 13212if ac_fn_c_try_link "$LINENO"; then : 13213 eval $cacheid=yes 13214else 13215 eval $cacheid=no 13216fi 13217rm -f core conftest.err conftest.$ac_objext \ 13218 conftest$ac_exeext conftest.$ac_ext 13219fi 13220 13221 13222 CFLAGS="$xorg_testset_save_CFLAGS" 13223 13224 eval supported=\$$cacheid 13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13226$as_echo "$supported" >&6; } 13227 if test "$supported" = "yes" ; then 13228 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13229 found="yes" 13230 fi 13231 fi 13232 13233 if test $found = "no" ; then 13234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13236 fi 13237 13238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13240 fi 13241 13242 CFLAGS="$CFLAGS -Wformat" 13243 13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13245$as_echo_n "checking if $CC supports -Wformat... " >&6; } 13246 cacheid=xorg_cv_cc_flag__Wformat 13247 if eval \${$cacheid+:} false; then : 13248 $as_echo_n "(cached) " >&6 13249else 13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13251/* end confdefs.h. */ 13252int i; 13253int 13254main () 13255{ 13256 13257 ; 13258 return 0; 13259} 13260_ACEOF 13261if ac_fn_c_try_link "$LINENO"; then : 13262 eval $cacheid=yes 13263else 13264 eval $cacheid=no 13265fi 13266rm -f core conftest.err conftest.$ac_objext \ 13267 conftest$ac_exeext conftest.$ac_ext 13268fi 13269 13270 13271 CFLAGS="$xorg_testset_save_CFLAGS" 13272 13273 eval supported=\$$cacheid 13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13275$as_echo "$supported" >&6; } 13276 if test "$supported" = "yes" ; then 13277 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13278 found="yes" 13279 fi 13280 fi 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298xorg_testset_save_CFLAGS="$CFLAGS" 13299 13300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13303$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13304if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13305 $as_echo_n "(cached) " >&6 13306else 13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13308/* end confdefs.h. */ 13309int i; 13310_ACEOF 13311if ac_fn_c_try_compile "$LINENO"; then : 13312 xorg_cv_cc_flag_unknown_warning_option=yes 13313else 13314 xorg_cv_cc_flag_unknown_warning_option=no 13315fi 13316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13317fi 13318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13319$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13321 CFLAGS="$xorg_testset_save_CFLAGS" 13322fi 13323 13324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13327 fi 13328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13330$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13331if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13332 $as_echo_n "(cached) " >&6 13333else 13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13335/* end confdefs.h. */ 13336int i; 13337_ACEOF 13338if ac_fn_c_try_compile "$LINENO"; then : 13339 xorg_cv_cc_flag_unused_command_line_argument=yes 13340else 13341 xorg_cv_cc_flag_unused_command_line_argument=no 13342fi 13343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13344fi 13345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13346$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13348 CFLAGS="$xorg_testset_save_CFLAGS" 13349fi 13350 13351found="no" 13352 13353 if test $found = "no" ; then 13354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13356 fi 13357 13358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13360 fi 13361 13362 CFLAGS="$CFLAGS -Wstrict-prototypes" 13363 13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13365$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 13366 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13367 if eval \${$cacheid+:} false; then : 13368 $as_echo_n "(cached) " >&6 13369else 13370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13371/* end confdefs.h. */ 13372int i; 13373int 13374main () 13375{ 13376 13377 ; 13378 return 0; 13379} 13380_ACEOF 13381if ac_fn_c_try_link "$LINENO"; then : 13382 eval $cacheid=yes 13383else 13384 eval $cacheid=no 13385fi 13386rm -f core conftest.err conftest.$ac_objext \ 13387 conftest$ac_exeext conftest.$ac_ext 13388fi 13389 13390 13391 CFLAGS="$xorg_testset_save_CFLAGS" 13392 13393 eval supported=\$$cacheid 13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13395$as_echo "$supported" >&6; } 13396 if test "$supported" = "yes" ; then 13397 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13398 found="yes" 13399 fi 13400 fi 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416xorg_testset_save_CFLAGS="$CFLAGS" 13417 13418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13421$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13422if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13423 $as_echo_n "(cached) " >&6 13424else 13425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13426/* end confdefs.h. */ 13427int i; 13428_ACEOF 13429if ac_fn_c_try_compile "$LINENO"; then : 13430 xorg_cv_cc_flag_unknown_warning_option=yes 13431else 13432 xorg_cv_cc_flag_unknown_warning_option=no 13433fi 13434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13435fi 13436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13437$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13439 CFLAGS="$xorg_testset_save_CFLAGS" 13440fi 13441 13442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13445 fi 13446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13448$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13449if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13450 $as_echo_n "(cached) " >&6 13451else 13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13453/* end confdefs.h. */ 13454int i; 13455_ACEOF 13456if ac_fn_c_try_compile "$LINENO"; then : 13457 xorg_cv_cc_flag_unused_command_line_argument=yes 13458else 13459 xorg_cv_cc_flag_unused_command_line_argument=no 13460fi 13461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13462fi 13463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13464$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13466 CFLAGS="$xorg_testset_save_CFLAGS" 13467fi 13468 13469found="no" 13470 13471 if test $found = "no" ; then 13472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13474 fi 13475 13476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13478 fi 13479 13480 CFLAGS="$CFLAGS -Wmissing-prototypes" 13481 13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13483$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13484 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13485 if eval \${$cacheid+:} false; then : 13486 $as_echo_n "(cached) " >&6 13487else 13488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13489/* end confdefs.h. */ 13490int i; 13491int 13492main () 13493{ 13494 13495 ; 13496 return 0; 13497} 13498_ACEOF 13499if ac_fn_c_try_link "$LINENO"; then : 13500 eval $cacheid=yes 13501else 13502 eval $cacheid=no 13503fi 13504rm -f core conftest.err conftest.$ac_objext \ 13505 conftest$ac_exeext conftest.$ac_ext 13506fi 13507 13508 13509 CFLAGS="$xorg_testset_save_CFLAGS" 13510 13511 eval supported=\$$cacheid 13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13513$as_echo "$supported" >&6; } 13514 if test "$supported" = "yes" ; then 13515 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13516 found="yes" 13517 fi 13518 fi 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534xorg_testset_save_CFLAGS="$CFLAGS" 13535 13536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13541 $as_echo_n "(cached) " >&6 13542else 13543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13544/* end confdefs.h. */ 13545int i; 13546_ACEOF 13547if ac_fn_c_try_compile "$LINENO"; then : 13548 xorg_cv_cc_flag_unknown_warning_option=yes 13549else 13550 xorg_cv_cc_flag_unknown_warning_option=no 13551fi 13552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13553fi 13554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13557 CFLAGS="$xorg_testset_save_CFLAGS" 13558fi 13559 13560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13563 fi 13564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13568 $as_echo_n "(cached) " >&6 13569else 13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13571/* end confdefs.h. */ 13572int i; 13573_ACEOF 13574if ac_fn_c_try_compile "$LINENO"; then : 13575 xorg_cv_cc_flag_unused_command_line_argument=yes 13576else 13577 xorg_cv_cc_flag_unused_command_line_argument=no 13578fi 13579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13580fi 13581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13584 CFLAGS="$xorg_testset_save_CFLAGS" 13585fi 13586 13587found="no" 13588 13589 if test $found = "no" ; then 13590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13592 fi 13593 13594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13596 fi 13597 13598 CFLAGS="$CFLAGS -Wnested-externs" 13599 13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13601$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13602 cacheid=xorg_cv_cc_flag__Wnested_externs 13603 if eval \${$cacheid+:} false; then : 13604 $as_echo_n "(cached) " >&6 13605else 13606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13607/* end confdefs.h. */ 13608int i; 13609int 13610main () 13611{ 13612 13613 ; 13614 return 0; 13615} 13616_ACEOF 13617if ac_fn_c_try_link "$LINENO"; then : 13618 eval $cacheid=yes 13619else 13620 eval $cacheid=no 13621fi 13622rm -f core conftest.err conftest.$ac_objext \ 13623 conftest$ac_exeext conftest.$ac_ext 13624fi 13625 13626 13627 CFLAGS="$xorg_testset_save_CFLAGS" 13628 13629 eval supported=\$$cacheid 13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13631$as_echo "$supported" >&6; } 13632 if test "$supported" = "yes" ; then 13633 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13634 found="yes" 13635 fi 13636 fi 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652xorg_testset_save_CFLAGS="$CFLAGS" 13653 13654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13657$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13658if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13659 $as_echo_n "(cached) " >&6 13660else 13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13662/* end confdefs.h. */ 13663int i; 13664_ACEOF 13665if ac_fn_c_try_compile "$LINENO"; then : 13666 xorg_cv_cc_flag_unknown_warning_option=yes 13667else 13668 xorg_cv_cc_flag_unknown_warning_option=no 13669fi 13670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13671fi 13672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13673$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13675 CFLAGS="$xorg_testset_save_CFLAGS" 13676fi 13677 13678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13681 fi 13682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13684$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13685if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13686 $as_echo_n "(cached) " >&6 13687else 13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13689/* end confdefs.h. */ 13690int i; 13691_ACEOF 13692if ac_fn_c_try_compile "$LINENO"; then : 13693 xorg_cv_cc_flag_unused_command_line_argument=yes 13694else 13695 xorg_cv_cc_flag_unused_command_line_argument=no 13696fi 13697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13698fi 13699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13700$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13702 CFLAGS="$xorg_testset_save_CFLAGS" 13703fi 13704 13705found="no" 13706 13707 if test $found = "no" ; then 13708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13710 fi 13711 13712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13714 fi 13715 13716 CFLAGS="$CFLAGS -Wbad-function-cast" 13717 13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13719$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13720 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13721 if eval \${$cacheid+:} false; then : 13722 $as_echo_n "(cached) " >&6 13723else 13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13725/* end confdefs.h. */ 13726int i; 13727int 13728main () 13729{ 13730 13731 ; 13732 return 0; 13733} 13734_ACEOF 13735if ac_fn_c_try_link "$LINENO"; then : 13736 eval $cacheid=yes 13737else 13738 eval $cacheid=no 13739fi 13740rm -f core conftest.err conftest.$ac_objext \ 13741 conftest$ac_exeext conftest.$ac_ext 13742fi 13743 13744 13745 CFLAGS="$xorg_testset_save_CFLAGS" 13746 13747 eval supported=\$$cacheid 13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13749$as_echo "$supported" >&6; } 13750 if test "$supported" = "yes" ; then 13751 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13752 found="yes" 13753 fi 13754 fi 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770xorg_testset_save_CFLAGS="$CFLAGS" 13771 13772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13775$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13776if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13777 $as_echo_n "(cached) " >&6 13778else 13779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13780/* end confdefs.h. */ 13781int i; 13782_ACEOF 13783if ac_fn_c_try_compile "$LINENO"; then : 13784 xorg_cv_cc_flag_unknown_warning_option=yes 13785else 13786 xorg_cv_cc_flag_unknown_warning_option=no 13787fi 13788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13789fi 13790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13791$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13793 CFLAGS="$xorg_testset_save_CFLAGS" 13794fi 13795 13796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13799 fi 13800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13802$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13803if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13804 $as_echo_n "(cached) " >&6 13805else 13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13807/* end confdefs.h. */ 13808int i; 13809_ACEOF 13810if ac_fn_c_try_compile "$LINENO"; then : 13811 xorg_cv_cc_flag_unused_command_line_argument=yes 13812else 13813 xorg_cv_cc_flag_unused_command_line_argument=no 13814fi 13815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13816fi 13817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13818$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13820 CFLAGS="$xorg_testset_save_CFLAGS" 13821fi 13822 13823found="no" 13824 13825 if test $found = "no" ; then 13826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13828 fi 13829 13830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13832 fi 13833 13834 CFLAGS="$CFLAGS -Wold-style-definition" 13835 13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13837$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13838 cacheid=xorg_cv_cc_flag__Wold_style_definition 13839 if eval \${$cacheid+:} false; then : 13840 $as_echo_n "(cached) " >&6 13841else 13842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13843/* end confdefs.h. */ 13844int i; 13845int 13846main () 13847{ 13848 13849 ; 13850 return 0; 13851} 13852_ACEOF 13853if ac_fn_c_try_link "$LINENO"; then : 13854 eval $cacheid=yes 13855else 13856 eval $cacheid=no 13857fi 13858rm -f core conftest.err conftest.$ac_objext \ 13859 conftest$ac_exeext conftest.$ac_ext 13860fi 13861 13862 13863 CFLAGS="$xorg_testset_save_CFLAGS" 13864 13865 eval supported=\$$cacheid 13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13867$as_echo "$supported" >&6; } 13868 if test "$supported" = "yes" ; then 13869 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13870 found="yes" 13871 fi 13872 fi 13873 13874 if test $found = "no" ; then 13875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13877 fi 13878 13879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13881 fi 13882 13883 CFLAGS="$CFLAGS -fd" 13884 13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13886$as_echo_n "checking if $CC supports -fd... " >&6; } 13887 cacheid=xorg_cv_cc_flag__fd 13888 if eval \${$cacheid+:} false; then : 13889 $as_echo_n "(cached) " >&6 13890else 13891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13892/* end confdefs.h. */ 13893int i; 13894int 13895main () 13896{ 13897 13898 ; 13899 return 0; 13900} 13901_ACEOF 13902if ac_fn_c_try_link "$LINENO"; then : 13903 eval $cacheid=yes 13904else 13905 eval $cacheid=no 13906fi 13907rm -f core conftest.err conftest.$ac_objext \ 13908 conftest$ac_exeext conftest.$ac_ext 13909fi 13910 13911 13912 CFLAGS="$xorg_testset_save_CFLAGS" 13913 13914 eval supported=\$$cacheid 13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13916$as_echo "$supported" >&6; } 13917 if test "$supported" = "yes" ; then 13918 BASE_CFLAGS="$BASE_CFLAGS -fd" 13919 found="yes" 13920 fi 13921 fi 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937xorg_testset_save_CFLAGS="$CFLAGS" 13938 13939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13942$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13943if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13944 $as_echo_n "(cached) " >&6 13945else 13946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13947/* end confdefs.h. */ 13948int i; 13949_ACEOF 13950if ac_fn_c_try_compile "$LINENO"; then : 13951 xorg_cv_cc_flag_unknown_warning_option=yes 13952else 13953 xorg_cv_cc_flag_unknown_warning_option=no 13954fi 13955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13956fi 13957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13958$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13960 CFLAGS="$xorg_testset_save_CFLAGS" 13961fi 13962 13963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13966 fi 13967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13969$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13970if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13971 $as_echo_n "(cached) " >&6 13972else 13973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13974/* end confdefs.h. */ 13975int i; 13976_ACEOF 13977if ac_fn_c_try_compile "$LINENO"; then : 13978 xorg_cv_cc_flag_unused_command_line_argument=yes 13979else 13980 xorg_cv_cc_flag_unused_command_line_argument=no 13981fi 13982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13983fi 13984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13985$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13987 CFLAGS="$xorg_testset_save_CFLAGS" 13988fi 13989 13990found="no" 13991 13992 if test $found = "no" ; then 13993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13995 fi 13996 13997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13999 fi 14000 14001 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14002 14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14004$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14005 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14006 if eval \${$cacheid+:} false; then : 14007 $as_echo_n "(cached) " >&6 14008else 14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14010/* end confdefs.h. */ 14011int i; 14012int 14013main () 14014{ 14015 14016 ; 14017 return 0; 14018} 14019_ACEOF 14020if ac_fn_c_try_link "$LINENO"; then : 14021 eval $cacheid=yes 14022else 14023 eval $cacheid=no 14024fi 14025rm -f core conftest.err conftest.$ac_objext \ 14026 conftest$ac_exeext conftest.$ac_ext 14027fi 14028 14029 14030 CFLAGS="$xorg_testset_save_CFLAGS" 14031 14032 eval supported=\$$cacheid 14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14034$as_echo "$supported" >&6; } 14035 if test "$supported" = "yes" ; then 14036 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14037 found="yes" 14038 fi 14039 fi 14040 14041 14042 14043 14044 14045# This chunk adds additional warnings that could catch undesired effects. 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059xorg_testset_save_CFLAGS="$CFLAGS" 14060 14061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14064$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14065if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14066 $as_echo_n "(cached) " >&6 14067else 14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14069/* end confdefs.h. */ 14070int i; 14071_ACEOF 14072if ac_fn_c_try_compile "$LINENO"; then : 14073 xorg_cv_cc_flag_unknown_warning_option=yes 14074else 14075 xorg_cv_cc_flag_unknown_warning_option=no 14076fi 14077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14078fi 14079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14080$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14081 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14082 CFLAGS="$xorg_testset_save_CFLAGS" 14083fi 14084 14085if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14088 fi 14089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14091$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14092if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14093 $as_echo_n "(cached) " >&6 14094else 14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14096/* end confdefs.h. */ 14097int i; 14098_ACEOF 14099if ac_fn_c_try_compile "$LINENO"; then : 14100 xorg_cv_cc_flag_unused_command_line_argument=yes 14101else 14102 xorg_cv_cc_flag_unused_command_line_argument=no 14103fi 14104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14105fi 14106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14107$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14109 CFLAGS="$xorg_testset_save_CFLAGS" 14110fi 14111 14112found="no" 14113 14114 if test $found = "no" ; then 14115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14117 fi 14118 14119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14121 fi 14122 14123 CFLAGS="$CFLAGS -Wunused" 14124 14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14126$as_echo_n "checking if $CC supports -Wunused... " >&6; } 14127 cacheid=xorg_cv_cc_flag__Wunused 14128 if eval \${$cacheid+:} false; then : 14129 $as_echo_n "(cached) " >&6 14130else 14131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14132/* end confdefs.h. */ 14133int i; 14134int 14135main () 14136{ 14137 14138 ; 14139 return 0; 14140} 14141_ACEOF 14142if ac_fn_c_try_link "$LINENO"; then : 14143 eval $cacheid=yes 14144else 14145 eval $cacheid=no 14146fi 14147rm -f core conftest.err conftest.$ac_objext \ 14148 conftest$ac_exeext conftest.$ac_ext 14149fi 14150 14151 14152 CFLAGS="$xorg_testset_save_CFLAGS" 14153 14154 eval supported=\$$cacheid 14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14156$as_echo "$supported" >&6; } 14157 if test "$supported" = "yes" ; then 14158 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14159 found="yes" 14160 fi 14161 fi 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177xorg_testset_save_CFLAGS="$CFLAGS" 14178 14179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14182$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14183if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14184 $as_echo_n "(cached) " >&6 14185else 14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14187/* end confdefs.h. */ 14188int i; 14189_ACEOF 14190if ac_fn_c_try_compile "$LINENO"; then : 14191 xorg_cv_cc_flag_unknown_warning_option=yes 14192else 14193 xorg_cv_cc_flag_unknown_warning_option=no 14194fi 14195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14196fi 14197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14198$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14200 CFLAGS="$xorg_testset_save_CFLAGS" 14201fi 14202 14203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14206 fi 14207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14209$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14210if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14211 $as_echo_n "(cached) " >&6 14212else 14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14214/* end confdefs.h. */ 14215int i; 14216_ACEOF 14217if ac_fn_c_try_compile "$LINENO"; then : 14218 xorg_cv_cc_flag_unused_command_line_argument=yes 14219else 14220 xorg_cv_cc_flag_unused_command_line_argument=no 14221fi 14222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14223fi 14224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14225$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14227 CFLAGS="$xorg_testset_save_CFLAGS" 14228fi 14229 14230found="no" 14231 14232 if test $found = "no" ; then 14233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14235 fi 14236 14237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14239 fi 14240 14241 CFLAGS="$CFLAGS -Wuninitialized" 14242 14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14244$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 14245 cacheid=xorg_cv_cc_flag__Wuninitialized 14246 if eval \${$cacheid+:} false; then : 14247 $as_echo_n "(cached) " >&6 14248else 14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14250/* end confdefs.h. */ 14251int i; 14252int 14253main () 14254{ 14255 14256 ; 14257 return 0; 14258} 14259_ACEOF 14260if ac_fn_c_try_link "$LINENO"; then : 14261 eval $cacheid=yes 14262else 14263 eval $cacheid=no 14264fi 14265rm -f core conftest.err conftest.$ac_objext \ 14266 conftest$ac_exeext conftest.$ac_ext 14267fi 14268 14269 14270 CFLAGS="$xorg_testset_save_CFLAGS" 14271 14272 eval supported=\$$cacheid 14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14274$as_echo "$supported" >&6; } 14275 if test "$supported" = "yes" ; then 14276 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14277 found="yes" 14278 fi 14279 fi 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295xorg_testset_save_CFLAGS="$CFLAGS" 14296 14297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14300$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14301if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14302 $as_echo_n "(cached) " >&6 14303else 14304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14305/* end confdefs.h. */ 14306int i; 14307_ACEOF 14308if ac_fn_c_try_compile "$LINENO"; then : 14309 xorg_cv_cc_flag_unknown_warning_option=yes 14310else 14311 xorg_cv_cc_flag_unknown_warning_option=no 14312fi 14313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14314fi 14315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14316$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14318 CFLAGS="$xorg_testset_save_CFLAGS" 14319fi 14320 14321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14324 fi 14325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14327$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14328if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14329 $as_echo_n "(cached) " >&6 14330else 14331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14332/* end confdefs.h. */ 14333int i; 14334_ACEOF 14335if ac_fn_c_try_compile "$LINENO"; then : 14336 xorg_cv_cc_flag_unused_command_line_argument=yes 14337else 14338 xorg_cv_cc_flag_unused_command_line_argument=no 14339fi 14340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14341fi 14342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14343$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14345 CFLAGS="$xorg_testset_save_CFLAGS" 14346fi 14347 14348found="no" 14349 14350 if test $found = "no" ; then 14351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14353 fi 14354 14355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14357 fi 14358 14359 CFLAGS="$CFLAGS -Wshadow" 14360 14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14362$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 14363 cacheid=xorg_cv_cc_flag__Wshadow 14364 if eval \${$cacheid+:} false; then : 14365 $as_echo_n "(cached) " >&6 14366else 14367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14368/* end confdefs.h. */ 14369int i; 14370int 14371main () 14372{ 14373 14374 ; 14375 return 0; 14376} 14377_ACEOF 14378if ac_fn_c_try_link "$LINENO"; then : 14379 eval $cacheid=yes 14380else 14381 eval $cacheid=no 14382fi 14383rm -f core conftest.err conftest.$ac_objext \ 14384 conftest$ac_exeext conftest.$ac_ext 14385fi 14386 14387 14388 CFLAGS="$xorg_testset_save_CFLAGS" 14389 14390 eval supported=\$$cacheid 14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14392$as_echo "$supported" >&6; } 14393 if test "$supported" = "yes" ; then 14394 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14395 found="yes" 14396 fi 14397 fi 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413xorg_testset_save_CFLAGS="$CFLAGS" 14414 14415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14418$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14419if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14420 $as_echo_n "(cached) " >&6 14421else 14422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14423/* end confdefs.h. */ 14424int i; 14425_ACEOF 14426if ac_fn_c_try_compile "$LINENO"; then : 14427 xorg_cv_cc_flag_unknown_warning_option=yes 14428else 14429 xorg_cv_cc_flag_unknown_warning_option=no 14430fi 14431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14432fi 14433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14434$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14436 CFLAGS="$xorg_testset_save_CFLAGS" 14437fi 14438 14439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14442 fi 14443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14445$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14446if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14447 $as_echo_n "(cached) " >&6 14448else 14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14450/* end confdefs.h. */ 14451int i; 14452_ACEOF 14453if ac_fn_c_try_compile "$LINENO"; then : 14454 xorg_cv_cc_flag_unused_command_line_argument=yes 14455else 14456 xorg_cv_cc_flag_unused_command_line_argument=no 14457fi 14458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14459fi 14460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14461$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14462 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14463 CFLAGS="$xorg_testset_save_CFLAGS" 14464fi 14465 14466found="no" 14467 14468 if test $found = "no" ; then 14469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14471 fi 14472 14473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14475 fi 14476 14477 CFLAGS="$CFLAGS -Wmissing-noreturn" 14478 14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14480$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14481 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14482 if eval \${$cacheid+:} false; then : 14483 $as_echo_n "(cached) " >&6 14484else 14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14486/* end confdefs.h. */ 14487int i; 14488int 14489main () 14490{ 14491 14492 ; 14493 return 0; 14494} 14495_ACEOF 14496if ac_fn_c_try_link "$LINENO"; then : 14497 eval $cacheid=yes 14498else 14499 eval $cacheid=no 14500fi 14501rm -f core conftest.err conftest.$ac_objext \ 14502 conftest$ac_exeext conftest.$ac_ext 14503fi 14504 14505 14506 CFLAGS="$xorg_testset_save_CFLAGS" 14507 14508 eval supported=\$$cacheid 14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14510$as_echo "$supported" >&6; } 14511 if test "$supported" = "yes" ; then 14512 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14513 found="yes" 14514 fi 14515 fi 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531xorg_testset_save_CFLAGS="$CFLAGS" 14532 14533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14536$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14537if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14538 $as_echo_n "(cached) " >&6 14539else 14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14541/* end confdefs.h. */ 14542int i; 14543_ACEOF 14544if ac_fn_c_try_compile "$LINENO"; then : 14545 xorg_cv_cc_flag_unknown_warning_option=yes 14546else 14547 xorg_cv_cc_flag_unknown_warning_option=no 14548fi 14549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14550fi 14551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14552$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14554 CFLAGS="$xorg_testset_save_CFLAGS" 14555fi 14556 14557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14560 fi 14561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14563$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14564if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14565 $as_echo_n "(cached) " >&6 14566else 14567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14568/* end confdefs.h. */ 14569int i; 14570_ACEOF 14571if ac_fn_c_try_compile "$LINENO"; then : 14572 xorg_cv_cc_flag_unused_command_line_argument=yes 14573else 14574 xorg_cv_cc_flag_unused_command_line_argument=no 14575fi 14576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14577fi 14578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14579$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14581 CFLAGS="$xorg_testset_save_CFLAGS" 14582fi 14583 14584found="no" 14585 14586 if test $found = "no" ; then 14587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14589 fi 14590 14591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14593 fi 14594 14595 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14596 14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14598$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14599 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14600 if eval \${$cacheid+:} false; then : 14601 $as_echo_n "(cached) " >&6 14602else 14603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14604/* end confdefs.h. */ 14605int i; 14606int 14607main () 14608{ 14609 14610 ; 14611 return 0; 14612} 14613_ACEOF 14614if ac_fn_c_try_link "$LINENO"; then : 14615 eval $cacheid=yes 14616else 14617 eval $cacheid=no 14618fi 14619rm -f core conftest.err conftest.$ac_objext \ 14620 conftest$ac_exeext conftest.$ac_ext 14621fi 14622 14623 14624 CFLAGS="$xorg_testset_save_CFLAGS" 14625 14626 eval supported=\$$cacheid 14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14628$as_echo "$supported" >&6; } 14629 if test "$supported" = "yes" ; then 14630 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14631 found="yes" 14632 fi 14633 fi 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649xorg_testset_save_CFLAGS="$CFLAGS" 14650 14651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14654$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14655if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14656 $as_echo_n "(cached) " >&6 14657else 14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14659/* end confdefs.h. */ 14660int i; 14661_ACEOF 14662if ac_fn_c_try_compile "$LINENO"; then : 14663 xorg_cv_cc_flag_unknown_warning_option=yes 14664else 14665 xorg_cv_cc_flag_unknown_warning_option=no 14666fi 14667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14668fi 14669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14670$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14672 CFLAGS="$xorg_testset_save_CFLAGS" 14673fi 14674 14675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14678 fi 14679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14681$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14682if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14683 $as_echo_n "(cached) " >&6 14684else 14685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14686/* end confdefs.h. */ 14687int i; 14688_ACEOF 14689if ac_fn_c_try_compile "$LINENO"; then : 14690 xorg_cv_cc_flag_unused_command_line_argument=yes 14691else 14692 xorg_cv_cc_flag_unused_command_line_argument=no 14693fi 14694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14695fi 14696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14697$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14699 CFLAGS="$xorg_testset_save_CFLAGS" 14700fi 14701 14702found="no" 14703 14704 if test $found = "no" ; then 14705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14707 fi 14708 14709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14711 fi 14712 14713 CFLAGS="$CFLAGS -Wredundant-decls" 14714 14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14716$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14717 cacheid=xorg_cv_cc_flag__Wredundant_decls 14718 if eval \${$cacheid+:} false; then : 14719 $as_echo_n "(cached) " >&6 14720else 14721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14722/* end confdefs.h. */ 14723int i; 14724int 14725main () 14726{ 14727 14728 ; 14729 return 0; 14730} 14731_ACEOF 14732if ac_fn_c_try_link "$LINENO"; then : 14733 eval $cacheid=yes 14734else 14735 eval $cacheid=no 14736fi 14737rm -f core conftest.err conftest.$ac_objext \ 14738 conftest$ac_exeext conftest.$ac_ext 14739fi 14740 14741 14742 CFLAGS="$xorg_testset_save_CFLAGS" 14743 14744 eval supported=\$$cacheid 14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14746$as_echo "$supported" >&6; } 14747 if test "$supported" = "yes" ; then 14748 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14749 found="yes" 14750 fi 14751 fi 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767xorg_testset_save_CFLAGS="$CFLAGS" 14768 14769if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14772$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14773if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14774 $as_echo_n "(cached) " >&6 14775else 14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14777/* end confdefs.h. */ 14778int i; 14779_ACEOF 14780if ac_fn_c_try_compile "$LINENO"; then : 14781 xorg_cv_cc_flag_unknown_warning_option=yes 14782else 14783 xorg_cv_cc_flag_unknown_warning_option=no 14784fi 14785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14786fi 14787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14788$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14789 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14790 CFLAGS="$xorg_testset_save_CFLAGS" 14791fi 14792 14793if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14796 fi 14797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14799$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14800if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14801 $as_echo_n "(cached) " >&6 14802else 14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14804/* end confdefs.h. */ 14805int i; 14806_ACEOF 14807if ac_fn_c_try_compile "$LINENO"; then : 14808 xorg_cv_cc_flag_unused_command_line_argument=yes 14809else 14810 xorg_cv_cc_flag_unused_command_line_argument=no 14811fi 14812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14813fi 14814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14815$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14817 CFLAGS="$xorg_testset_save_CFLAGS" 14818fi 14819 14820found="no" 14821 14822 if test $found = "no" ; then 14823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14825 fi 14826 14827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14829 fi 14830 14831 CFLAGS="$CFLAGS -Wlogical-op" 14832 14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14834$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14835 cacheid=xorg_cv_cc_flag__Wlogical_op 14836 if eval \${$cacheid+:} false; then : 14837 $as_echo_n "(cached) " >&6 14838else 14839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14840/* end confdefs.h. */ 14841int i; 14842int 14843main () 14844{ 14845 14846 ; 14847 return 0; 14848} 14849_ACEOF 14850if ac_fn_c_try_link "$LINENO"; then : 14851 eval $cacheid=yes 14852else 14853 eval $cacheid=no 14854fi 14855rm -f core conftest.err conftest.$ac_objext \ 14856 conftest$ac_exeext conftest.$ac_ext 14857fi 14858 14859 14860 CFLAGS="$xorg_testset_save_CFLAGS" 14861 14862 eval supported=\$$cacheid 14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14864$as_echo "$supported" >&6; } 14865 if test "$supported" = "yes" ; then 14866 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14867 found="yes" 14868 fi 14869 fi 14870 14871 14872 14873# These are currently disabled because they are noisy. They will be enabled 14874# in the future once the codebase is sufficiently modernized to silence 14875# them. For now, I don't want them to drown out the other warnings. 14876# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14877# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14878# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14879 14880# Turn some warnings into errors, so we don't accidently get successful builds 14881# when there are problems that should be fixed. 14882 14883if test "x$SELECTIVE_WERROR" = "xyes" ; then 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897xorg_testset_save_CFLAGS="$CFLAGS" 14898 14899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14902$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14903if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14904 $as_echo_n "(cached) " >&6 14905else 14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14907/* end confdefs.h. */ 14908int i; 14909_ACEOF 14910if ac_fn_c_try_compile "$LINENO"; then : 14911 xorg_cv_cc_flag_unknown_warning_option=yes 14912else 14913 xorg_cv_cc_flag_unknown_warning_option=no 14914fi 14915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14916fi 14917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14918$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14919 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14920 CFLAGS="$xorg_testset_save_CFLAGS" 14921fi 14922 14923if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14926 fi 14927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14929$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14930if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14931 $as_echo_n "(cached) " >&6 14932else 14933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14934/* end confdefs.h. */ 14935int i; 14936_ACEOF 14937if ac_fn_c_try_compile "$LINENO"; then : 14938 xorg_cv_cc_flag_unused_command_line_argument=yes 14939else 14940 xorg_cv_cc_flag_unused_command_line_argument=no 14941fi 14942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14943fi 14944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14945$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14947 CFLAGS="$xorg_testset_save_CFLAGS" 14948fi 14949 14950found="no" 14951 14952 if test $found = "no" ; then 14953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14955 fi 14956 14957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14959 fi 14960 14961 CFLAGS="$CFLAGS -Werror=implicit" 14962 14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14964$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14965 cacheid=xorg_cv_cc_flag__Werror_implicit 14966 if eval \${$cacheid+:} false; then : 14967 $as_echo_n "(cached) " >&6 14968else 14969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14970/* end confdefs.h. */ 14971int i; 14972int 14973main () 14974{ 14975 14976 ; 14977 return 0; 14978} 14979_ACEOF 14980if ac_fn_c_try_link "$LINENO"; then : 14981 eval $cacheid=yes 14982else 14983 eval $cacheid=no 14984fi 14985rm -f core conftest.err conftest.$ac_objext \ 14986 conftest$ac_exeext conftest.$ac_ext 14987fi 14988 14989 14990 CFLAGS="$xorg_testset_save_CFLAGS" 14991 14992 eval supported=\$$cacheid 14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14994$as_echo "$supported" >&6; } 14995 if test "$supported" = "yes" ; then 14996 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14997 found="yes" 14998 fi 14999 fi 15000 15001 if test $found = "no" ; then 15002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15004 fi 15005 15006 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15008 fi 15009 15010 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15011 15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 15013$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15014 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15015 if eval \${$cacheid+:} false; then : 15016 $as_echo_n "(cached) " >&6 15017else 15018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15019/* end confdefs.h. */ 15020int i; 15021int 15022main () 15023{ 15024 15025 ; 15026 return 0; 15027} 15028_ACEOF 15029if ac_fn_c_try_link "$LINENO"; then : 15030 eval $cacheid=yes 15031else 15032 eval $cacheid=no 15033fi 15034rm -f core conftest.err conftest.$ac_objext \ 15035 conftest$ac_exeext conftest.$ac_ext 15036fi 15037 15038 15039 CFLAGS="$xorg_testset_save_CFLAGS" 15040 15041 eval supported=\$$cacheid 15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15043$as_echo "$supported" >&6; } 15044 if test "$supported" = "yes" ; then 15045 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15046 found="yes" 15047 fi 15048 fi 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064xorg_testset_save_CFLAGS="$CFLAGS" 15065 15066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15069$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15070if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15071 $as_echo_n "(cached) " >&6 15072else 15073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15074/* end confdefs.h. */ 15075int i; 15076_ACEOF 15077if ac_fn_c_try_compile "$LINENO"; then : 15078 xorg_cv_cc_flag_unknown_warning_option=yes 15079else 15080 xorg_cv_cc_flag_unknown_warning_option=no 15081fi 15082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15083fi 15084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15085$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15087 CFLAGS="$xorg_testset_save_CFLAGS" 15088fi 15089 15090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15093 fi 15094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15096$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15097if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15098 $as_echo_n "(cached) " >&6 15099else 15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15101/* end confdefs.h. */ 15102int i; 15103_ACEOF 15104if ac_fn_c_try_compile "$LINENO"; then : 15105 xorg_cv_cc_flag_unused_command_line_argument=yes 15106else 15107 xorg_cv_cc_flag_unused_command_line_argument=no 15108fi 15109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15110fi 15111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15112$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15114 CFLAGS="$xorg_testset_save_CFLAGS" 15115fi 15116 15117found="no" 15118 15119 if test $found = "no" ; then 15120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15122 fi 15123 15124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15126 fi 15127 15128 CFLAGS="$CFLAGS -Werror=nonnull" 15129 15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15131$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 15132 cacheid=xorg_cv_cc_flag__Werror_nonnull 15133 if eval \${$cacheid+:} false; then : 15134 $as_echo_n "(cached) " >&6 15135else 15136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15137/* end confdefs.h. */ 15138int i; 15139int 15140main () 15141{ 15142 15143 ; 15144 return 0; 15145} 15146_ACEOF 15147if ac_fn_c_try_link "$LINENO"; then : 15148 eval $cacheid=yes 15149else 15150 eval $cacheid=no 15151fi 15152rm -f core conftest.err conftest.$ac_objext \ 15153 conftest$ac_exeext conftest.$ac_ext 15154fi 15155 15156 15157 CFLAGS="$xorg_testset_save_CFLAGS" 15158 15159 eval supported=\$$cacheid 15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15161$as_echo "$supported" >&6; } 15162 if test "$supported" = "yes" ; then 15163 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15164 found="yes" 15165 fi 15166 fi 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182xorg_testset_save_CFLAGS="$CFLAGS" 15183 15184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15187$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15188if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15189 $as_echo_n "(cached) " >&6 15190else 15191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15192/* end confdefs.h. */ 15193int i; 15194_ACEOF 15195if ac_fn_c_try_compile "$LINENO"; then : 15196 xorg_cv_cc_flag_unknown_warning_option=yes 15197else 15198 xorg_cv_cc_flag_unknown_warning_option=no 15199fi 15200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15201fi 15202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15203$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15205 CFLAGS="$xorg_testset_save_CFLAGS" 15206fi 15207 15208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15211 fi 15212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15214$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15215if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15216 $as_echo_n "(cached) " >&6 15217else 15218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15219/* end confdefs.h. */ 15220int i; 15221_ACEOF 15222if ac_fn_c_try_compile "$LINENO"; then : 15223 xorg_cv_cc_flag_unused_command_line_argument=yes 15224else 15225 xorg_cv_cc_flag_unused_command_line_argument=no 15226fi 15227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15228fi 15229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15230$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15232 CFLAGS="$xorg_testset_save_CFLAGS" 15233fi 15234 15235found="no" 15236 15237 if test $found = "no" ; then 15238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15240 fi 15241 15242 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15244 fi 15245 15246 CFLAGS="$CFLAGS -Werror=init-self" 15247 15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15249$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 15250 cacheid=xorg_cv_cc_flag__Werror_init_self 15251 if eval \${$cacheid+:} false; then : 15252 $as_echo_n "(cached) " >&6 15253else 15254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15255/* end confdefs.h. */ 15256int i; 15257int 15258main () 15259{ 15260 15261 ; 15262 return 0; 15263} 15264_ACEOF 15265if ac_fn_c_try_link "$LINENO"; then : 15266 eval $cacheid=yes 15267else 15268 eval $cacheid=no 15269fi 15270rm -f core conftest.err conftest.$ac_objext \ 15271 conftest$ac_exeext conftest.$ac_ext 15272fi 15273 15274 15275 CFLAGS="$xorg_testset_save_CFLAGS" 15276 15277 eval supported=\$$cacheid 15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15279$as_echo "$supported" >&6; } 15280 if test "$supported" = "yes" ; then 15281 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15282 found="yes" 15283 fi 15284 fi 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300xorg_testset_save_CFLAGS="$CFLAGS" 15301 15302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15305$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15306if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15307 $as_echo_n "(cached) " >&6 15308else 15309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15310/* end confdefs.h. */ 15311int i; 15312_ACEOF 15313if ac_fn_c_try_compile "$LINENO"; then : 15314 xorg_cv_cc_flag_unknown_warning_option=yes 15315else 15316 xorg_cv_cc_flag_unknown_warning_option=no 15317fi 15318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15319fi 15320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15321$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15323 CFLAGS="$xorg_testset_save_CFLAGS" 15324fi 15325 15326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15329 fi 15330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15332$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15333if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15334 $as_echo_n "(cached) " >&6 15335else 15336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15337/* end confdefs.h. */ 15338int i; 15339_ACEOF 15340if ac_fn_c_try_compile "$LINENO"; then : 15341 xorg_cv_cc_flag_unused_command_line_argument=yes 15342else 15343 xorg_cv_cc_flag_unused_command_line_argument=no 15344fi 15345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15346fi 15347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15348$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15350 CFLAGS="$xorg_testset_save_CFLAGS" 15351fi 15352 15353found="no" 15354 15355 if test $found = "no" ; then 15356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15358 fi 15359 15360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15362 fi 15363 15364 CFLAGS="$CFLAGS -Werror=main" 15365 15366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15367$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 15368 cacheid=xorg_cv_cc_flag__Werror_main 15369 if eval \${$cacheid+:} false; then : 15370 $as_echo_n "(cached) " >&6 15371else 15372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15373/* end confdefs.h. */ 15374int i; 15375int 15376main () 15377{ 15378 15379 ; 15380 return 0; 15381} 15382_ACEOF 15383if ac_fn_c_try_link "$LINENO"; then : 15384 eval $cacheid=yes 15385else 15386 eval $cacheid=no 15387fi 15388rm -f core conftest.err conftest.$ac_objext \ 15389 conftest$ac_exeext conftest.$ac_ext 15390fi 15391 15392 15393 CFLAGS="$xorg_testset_save_CFLAGS" 15394 15395 eval supported=\$$cacheid 15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15397$as_echo "$supported" >&6; } 15398 if test "$supported" = "yes" ; then 15399 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15400 found="yes" 15401 fi 15402 fi 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418xorg_testset_save_CFLAGS="$CFLAGS" 15419 15420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15423$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15424if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15425 $as_echo_n "(cached) " >&6 15426else 15427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15428/* end confdefs.h. */ 15429int i; 15430_ACEOF 15431if ac_fn_c_try_compile "$LINENO"; then : 15432 xorg_cv_cc_flag_unknown_warning_option=yes 15433else 15434 xorg_cv_cc_flag_unknown_warning_option=no 15435fi 15436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15437fi 15438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15439$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15441 CFLAGS="$xorg_testset_save_CFLAGS" 15442fi 15443 15444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15447 fi 15448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15450$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15451if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15452 $as_echo_n "(cached) " >&6 15453else 15454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15455/* end confdefs.h. */ 15456int i; 15457_ACEOF 15458if ac_fn_c_try_compile "$LINENO"; then : 15459 xorg_cv_cc_flag_unused_command_line_argument=yes 15460else 15461 xorg_cv_cc_flag_unused_command_line_argument=no 15462fi 15463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15464fi 15465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15466$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15468 CFLAGS="$xorg_testset_save_CFLAGS" 15469fi 15470 15471found="no" 15472 15473 if test $found = "no" ; then 15474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15476 fi 15477 15478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15480 fi 15481 15482 CFLAGS="$CFLAGS -Werror=missing-braces" 15483 15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15485$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15486 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15487 if eval \${$cacheid+:} false; then : 15488 $as_echo_n "(cached) " >&6 15489else 15490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15491/* end confdefs.h. */ 15492int i; 15493int 15494main () 15495{ 15496 15497 ; 15498 return 0; 15499} 15500_ACEOF 15501if ac_fn_c_try_link "$LINENO"; then : 15502 eval $cacheid=yes 15503else 15504 eval $cacheid=no 15505fi 15506rm -f core conftest.err conftest.$ac_objext \ 15507 conftest$ac_exeext conftest.$ac_ext 15508fi 15509 15510 15511 CFLAGS="$xorg_testset_save_CFLAGS" 15512 15513 eval supported=\$$cacheid 15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15515$as_echo "$supported" >&6; } 15516 if test "$supported" = "yes" ; then 15517 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15518 found="yes" 15519 fi 15520 fi 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536xorg_testset_save_CFLAGS="$CFLAGS" 15537 15538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15541$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15542if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15543 $as_echo_n "(cached) " >&6 15544else 15545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15546/* end confdefs.h. */ 15547int i; 15548_ACEOF 15549if ac_fn_c_try_compile "$LINENO"; then : 15550 xorg_cv_cc_flag_unknown_warning_option=yes 15551else 15552 xorg_cv_cc_flag_unknown_warning_option=no 15553fi 15554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15555fi 15556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15557$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15559 CFLAGS="$xorg_testset_save_CFLAGS" 15560fi 15561 15562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15565 fi 15566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15568$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15569if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15570 $as_echo_n "(cached) " >&6 15571else 15572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15573/* end confdefs.h. */ 15574int i; 15575_ACEOF 15576if ac_fn_c_try_compile "$LINENO"; then : 15577 xorg_cv_cc_flag_unused_command_line_argument=yes 15578else 15579 xorg_cv_cc_flag_unused_command_line_argument=no 15580fi 15581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15582fi 15583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15584$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15586 CFLAGS="$xorg_testset_save_CFLAGS" 15587fi 15588 15589found="no" 15590 15591 if test $found = "no" ; then 15592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15594 fi 15595 15596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15598 fi 15599 15600 CFLAGS="$CFLAGS -Werror=sequence-point" 15601 15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15603$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15604 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15605 if eval \${$cacheid+:} false; then : 15606 $as_echo_n "(cached) " >&6 15607else 15608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15609/* end confdefs.h. */ 15610int i; 15611int 15612main () 15613{ 15614 15615 ; 15616 return 0; 15617} 15618_ACEOF 15619if ac_fn_c_try_link "$LINENO"; then : 15620 eval $cacheid=yes 15621else 15622 eval $cacheid=no 15623fi 15624rm -f core conftest.err conftest.$ac_objext \ 15625 conftest$ac_exeext conftest.$ac_ext 15626fi 15627 15628 15629 CFLAGS="$xorg_testset_save_CFLAGS" 15630 15631 eval supported=\$$cacheid 15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15633$as_echo "$supported" >&6; } 15634 if test "$supported" = "yes" ; then 15635 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15636 found="yes" 15637 fi 15638 fi 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654xorg_testset_save_CFLAGS="$CFLAGS" 15655 15656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15659$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15660if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15661 $as_echo_n "(cached) " >&6 15662else 15663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15664/* end confdefs.h. */ 15665int i; 15666_ACEOF 15667if ac_fn_c_try_compile "$LINENO"; then : 15668 xorg_cv_cc_flag_unknown_warning_option=yes 15669else 15670 xorg_cv_cc_flag_unknown_warning_option=no 15671fi 15672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15673fi 15674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15675$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15677 CFLAGS="$xorg_testset_save_CFLAGS" 15678fi 15679 15680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15683 fi 15684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15686$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15687if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15688 $as_echo_n "(cached) " >&6 15689else 15690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15691/* end confdefs.h. */ 15692int i; 15693_ACEOF 15694if ac_fn_c_try_compile "$LINENO"; then : 15695 xorg_cv_cc_flag_unused_command_line_argument=yes 15696else 15697 xorg_cv_cc_flag_unused_command_line_argument=no 15698fi 15699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15700fi 15701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15702$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15704 CFLAGS="$xorg_testset_save_CFLAGS" 15705fi 15706 15707found="no" 15708 15709 if test $found = "no" ; then 15710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15712 fi 15713 15714 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15716 fi 15717 15718 CFLAGS="$CFLAGS -Werror=return-type" 15719 15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15721$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15722 cacheid=xorg_cv_cc_flag__Werror_return_type 15723 if eval \${$cacheid+:} false; then : 15724 $as_echo_n "(cached) " >&6 15725else 15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15727/* end confdefs.h. */ 15728int i; 15729int 15730main () 15731{ 15732 15733 ; 15734 return 0; 15735} 15736_ACEOF 15737if ac_fn_c_try_link "$LINENO"; then : 15738 eval $cacheid=yes 15739else 15740 eval $cacheid=no 15741fi 15742rm -f core conftest.err conftest.$ac_objext \ 15743 conftest$ac_exeext conftest.$ac_ext 15744fi 15745 15746 15747 CFLAGS="$xorg_testset_save_CFLAGS" 15748 15749 eval supported=\$$cacheid 15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15751$as_echo "$supported" >&6; } 15752 if test "$supported" = "yes" ; then 15753 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15754 found="yes" 15755 fi 15756 fi 15757 15758 if test $found = "no" ; then 15759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15761 fi 15762 15763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15765 fi 15766 15767 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15768 15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15770$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15771 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15772 if eval \${$cacheid+:} false; then : 15773 $as_echo_n "(cached) " >&6 15774else 15775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15776/* end confdefs.h. */ 15777int i; 15778int 15779main () 15780{ 15781 15782 ; 15783 return 0; 15784} 15785_ACEOF 15786if ac_fn_c_try_link "$LINENO"; then : 15787 eval $cacheid=yes 15788else 15789 eval $cacheid=no 15790fi 15791rm -f core conftest.err conftest.$ac_objext \ 15792 conftest$ac_exeext conftest.$ac_ext 15793fi 15794 15795 15796 CFLAGS="$xorg_testset_save_CFLAGS" 15797 15798 eval supported=\$$cacheid 15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15800$as_echo "$supported" >&6; } 15801 if test "$supported" = "yes" ; then 15802 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15803 found="yes" 15804 fi 15805 fi 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821xorg_testset_save_CFLAGS="$CFLAGS" 15822 15823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15826$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15827if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15828 $as_echo_n "(cached) " >&6 15829else 15830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15831/* end confdefs.h. */ 15832int i; 15833_ACEOF 15834if ac_fn_c_try_compile "$LINENO"; then : 15835 xorg_cv_cc_flag_unknown_warning_option=yes 15836else 15837 xorg_cv_cc_flag_unknown_warning_option=no 15838fi 15839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15840fi 15841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15842$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15844 CFLAGS="$xorg_testset_save_CFLAGS" 15845fi 15846 15847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15850 fi 15851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15853$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15854if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15855 $as_echo_n "(cached) " >&6 15856else 15857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15858/* end confdefs.h. */ 15859int i; 15860_ACEOF 15861if ac_fn_c_try_compile "$LINENO"; then : 15862 xorg_cv_cc_flag_unused_command_line_argument=yes 15863else 15864 xorg_cv_cc_flag_unused_command_line_argument=no 15865fi 15866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15867fi 15868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15869$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15871 CFLAGS="$xorg_testset_save_CFLAGS" 15872fi 15873 15874found="no" 15875 15876 if test $found = "no" ; then 15877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15879 fi 15880 15881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15883 fi 15884 15885 CFLAGS="$CFLAGS -Werror=trigraphs" 15886 15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15888$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15889 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15890 if eval \${$cacheid+:} false; then : 15891 $as_echo_n "(cached) " >&6 15892else 15893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15894/* end confdefs.h. */ 15895int i; 15896int 15897main () 15898{ 15899 15900 ; 15901 return 0; 15902} 15903_ACEOF 15904if ac_fn_c_try_link "$LINENO"; then : 15905 eval $cacheid=yes 15906else 15907 eval $cacheid=no 15908fi 15909rm -f core conftest.err conftest.$ac_objext \ 15910 conftest$ac_exeext conftest.$ac_ext 15911fi 15912 15913 15914 CFLAGS="$xorg_testset_save_CFLAGS" 15915 15916 eval supported=\$$cacheid 15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15918$as_echo "$supported" >&6; } 15919 if test "$supported" = "yes" ; then 15920 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15921 found="yes" 15922 fi 15923 fi 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939xorg_testset_save_CFLAGS="$CFLAGS" 15940 15941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15944$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15945if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15946 $as_echo_n "(cached) " >&6 15947else 15948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15949/* end confdefs.h. */ 15950int i; 15951_ACEOF 15952if ac_fn_c_try_compile "$LINENO"; then : 15953 xorg_cv_cc_flag_unknown_warning_option=yes 15954else 15955 xorg_cv_cc_flag_unknown_warning_option=no 15956fi 15957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15958fi 15959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15960$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15962 CFLAGS="$xorg_testset_save_CFLAGS" 15963fi 15964 15965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15968 fi 15969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15971$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15972if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15973 $as_echo_n "(cached) " >&6 15974else 15975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15976/* end confdefs.h. */ 15977int i; 15978_ACEOF 15979if ac_fn_c_try_compile "$LINENO"; then : 15980 xorg_cv_cc_flag_unused_command_line_argument=yes 15981else 15982 xorg_cv_cc_flag_unused_command_line_argument=no 15983fi 15984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15985fi 15986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15987$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15989 CFLAGS="$xorg_testset_save_CFLAGS" 15990fi 15991 15992found="no" 15993 15994 if test $found = "no" ; then 15995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15997 fi 15998 15999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16001 fi 16002 16003 CFLAGS="$CFLAGS -Werror=array-bounds" 16004 16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16006$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 16007 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16008 if eval \${$cacheid+:} false; then : 16009 $as_echo_n "(cached) " >&6 16010else 16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16012/* end confdefs.h. */ 16013int i; 16014int 16015main () 16016{ 16017 16018 ; 16019 return 0; 16020} 16021_ACEOF 16022if ac_fn_c_try_link "$LINENO"; then : 16023 eval $cacheid=yes 16024else 16025 eval $cacheid=no 16026fi 16027rm -f core conftest.err conftest.$ac_objext \ 16028 conftest$ac_exeext conftest.$ac_ext 16029fi 16030 16031 16032 CFLAGS="$xorg_testset_save_CFLAGS" 16033 16034 eval supported=\$$cacheid 16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16036$as_echo "$supported" >&6; } 16037 if test "$supported" = "yes" ; then 16038 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16039 found="yes" 16040 fi 16041 fi 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057xorg_testset_save_CFLAGS="$CFLAGS" 16058 16059if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16062$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16063if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16064 $as_echo_n "(cached) " >&6 16065else 16066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16067/* end confdefs.h. */ 16068int i; 16069_ACEOF 16070if ac_fn_c_try_compile "$LINENO"; then : 16071 xorg_cv_cc_flag_unknown_warning_option=yes 16072else 16073 xorg_cv_cc_flag_unknown_warning_option=no 16074fi 16075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16076fi 16077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16078$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16080 CFLAGS="$xorg_testset_save_CFLAGS" 16081fi 16082 16083if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16086 fi 16087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16089$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16090if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16091 $as_echo_n "(cached) " >&6 16092else 16093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16094/* end confdefs.h. */ 16095int i; 16096_ACEOF 16097if ac_fn_c_try_compile "$LINENO"; then : 16098 xorg_cv_cc_flag_unused_command_line_argument=yes 16099else 16100 xorg_cv_cc_flag_unused_command_line_argument=no 16101fi 16102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16103fi 16104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16105$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16107 CFLAGS="$xorg_testset_save_CFLAGS" 16108fi 16109 16110found="no" 16111 16112 if test $found = "no" ; then 16113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16115 fi 16116 16117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16119 fi 16120 16121 CFLAGS="$CFLAGS -Werror=write-strings" 16122 16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16124$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 16125 cacheid=xorg_cv_cc_flag__Werror_write_strings 16126 if eval \${$cacheid+:} false; then : 16127 $as_echo_n "(cached) " >&6 16128else 16129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16130/* end confdefs.h. */ 16131int i; 16132int 16133main () 16134{ 16135 16136 ; 16137 return 0; 16138} 16139_ACEOF 16140if ac_fn_c_try_link "$LINENO"; then : 16141 eval $cacheid=yes 16142else 16143 eval $cacheid=no 16144fi 16145rm -f core conftest.err conftest.$ac_objext \ 16146 conftest$ac_exeext conftest.$ac_ext 16147fi 16148 16149 16150 CFLAGS="$xorg_testset_save_CFLAGS" 16151 16152 eval supported=\$$cacheid 16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16154$as_echo "$supported" >&6; } 16155 if test "$supported" = "yes" ; then 16156 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16157 found="yes" 16158 fi 16159 fi 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175xorg_testset_save_CFLAGS="$CFLAGS" 16176 16177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16180$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16181if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16182 $as_echo_n "(cached) " >&6 16183else 16184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16185/* end confdefs.h. */ 16186int i; 16187_ACEOF 16188if ac_fn_c_try_compile "$LINENO"; then : 16189 xorg_cv_cc_flag_unknown_warning_option=yes 16190else 16191 xorg_cv_cc_flag_unknown_warning_option=no 16192fi 16193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16194fi 16195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16196$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16198 CFLAGS="$xorg_testset_save_CFLAGS" 16199fi 16200 16201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16204 fi 16205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16207$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16208if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16209 $as_echo_n "(cached) " >&6 16210else 16211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16212/* end confdefs.h. */ 16213int i; 16214_ACEOF 16215if ac_fn_c_try_compile "$LINENO"; then : 16216 xorg_cv_cc_flag_unused_command_line_argument=yes 16217else 16218 xorg_cv_cc_flag_unused_command_line_argument=no 16219fi 16220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16221fi 16222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16223$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16225 CFLAGS="$xorg_testset_save_CFLAGS" 16226fi 16227 16228found="no" 16229 16230 if test $found = "no" ; then 16231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16233 fi 16234 16235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16237 fi 16238 16239 CFLAGS="$CFLAGS -Werror=address" 16240 16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16242$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 16243 cacheid=xorg_cv_cc_flag__Werror_address 16244 if eval \${$cacheid+:} false; then : 16245 $as_echo_n "(cached) " >&6 16246else 16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16248/* end confdefs.h. */ 16249int i; 16250int 16251main () 16252{ 16253 16254 ; 16255 return 0; 16256} 16257_ACEOF 16258if ac_fn_c_try_link "$LINENO"; then : 16259 eval $cacheid=yes 16260else 16261 eval $cacheid=no 16262fi 16263rm -f core conftest.err conftest.$ac_objext \ 16264 conftest$ac_exeext conftest.$ac_ext 16265fi 16266 16267 16268 CFLAGS="$xorg_testset_save_CFLAGS" 16269 16270 eval supported=\$$cacheid 16271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16272$as_echo "$supported" >&6; } 16273 if test "$supported" = "yes" ; then 16274 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16275 found="yes" 16276 fi 16277 fi 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293xorg_testset_save_CFLAGS="$CFLAGS" 16294 16295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16298$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16299if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16300 $as_echo_n "(cached) " >&6 16301else 16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16303/* end confdefs.h. */ 16304int i; 16305_ACEOF 16306if ac_fn_c_try_compile "$LINENO"; then : 16307 xorg_cv_cc_flag_unknown_warning_option=yes 16308else 16309 xorg_cv_cc_flag_unknown_warning_option=no 16310fi 16311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16312fi 16313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16314$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16316 CFLAGS="$xorg_testset_save_CFLAGS" 16317fi 16318 16319if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16322 fi 16323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16325$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16326if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16327 $as_echo_n "(cached) " >&6 16328else 16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16330/* end confdefs.h. */ 16331int i; 16332_ACEOF 16333if ac_fn_c_try_compile "$LINENO"; then : 16334 xorg_cv_cc_flag_unused_command_line_argument=yes 16335else 16336 xorg_cv_cc_flag_unused_command_line_argument=no 16337fi 16338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16339fi 16340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16341$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16343 CFLAGS="$xorg_testset_save_CFLAGS" 16344fi 16345 16346found="no" 16347 16348 if test $found = "no" ; then 16349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16351 fi 16352 16353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16355 fi 16356 16357 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16358 16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16360$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16361 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16362 if eval \${$cacheid+:} false; then : 16363 $as_echo_n "(cached) " >&6 16364else 16365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16366/* end confdefs.h. */ 16367int i; 16368int 16369main () 16370{ 16371 16372 ; 16373 return 0; 16374} 16375_ACEOF 16376if ac_fn_c_try_link "$LINENO"; then : 16377 eval $cacheid=yes 16378else 16379 eval $cacheid=no 16380fi 16381rm -f core conftest.err conftest.$ac_objext \ 16382 conftest$ac_exeext conftest.$ac_ext 16383fi 16384 16385 16386 CFLAGS="$xorg_testset_save_CFLAGS" 16387 16388 eval supported=\$$cacheid 16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16390$as_echo "$supported" >&6; } 16391 if test "$supported" = "yes" ; then 16392 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16393 found="yes" 16394 fi 16395 fi 16396 16397 if test $found = "no" ; then 16398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16400 fi 16401 16402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16404 fi 16405 16406 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16407 16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16409$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16410 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16411 if eval \${$cacheid+:} false; then : 16412 $as_echo_n "(cached) " >&6 16413else 16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16415/* end confdefs.h. */ 16416int i; 16417int 16418main () 16419{ 16420 16421 ; 16422 return 0; 16423} 16424_ACEOF 16425if ac_fn_c_try_link "$LINENO"; then : 16426 eval $cacheid=yes 16427else 16428 eval $cacheid=no 16429fi 16430rm -f core conftest.err conftest.$ac_objext \ 16431 conftest$ac_exeext conftest.$ac_ext 16432fi 16433 16434 16435 CFLAGS="$xorg_testset_save_CFLAGS" 16436 16437 eval supported=\$$cacheid 16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16439$as_echo "$supported" >&6; } 16440 if test "$supported" = "yes" ; then 16441 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16442 found="yes" 16443 fi 16444 fi 16445 16446 16447 16448 16449 16450 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460xorg_testset_save_CFLAGS="$CFLAGS" 16461 16462if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16465$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16466if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16467 $as_echo_n "(cached) " >&6 16468else 16469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16470/* end confdefs.h. */ 16471int i; 16472_ACEOF 16473if ac_fn_c_try_compile "$LINENO"; then : 16474 xorg_cv_cc_flag_unknown_warning_option=yes 16475else 16476 xorg_cv_cc_flag_unknown_warning_option=no 16477fi 16478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16479fi 16480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16481$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16483 CFLAGS="$xorg_testset_save_CFLAGS" 16484fi 16485 16486if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16489 fi 16490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16492$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16493if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16494 $as_echo_n "(cached) " >&6 16495else 16496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16497/* end confdefs.h. */ 16498int i; 16499_ACEOF 16500if ac_fn_c_try_compile "$LINENO"; then : 16501 xorg_cv_cc_flag_unused_command_line_argument=yes 16502else 16503 xorg_cv_cc_flag_unused_command_line_argument=no 16504fi 16505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16506fi 16507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16508$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16510 CFLAGS="$xorg_testset_save_CFLAGS" 16511fi 16512 16513found="no" 16514 16515 if test $found = "no" ; then 16516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16518 fi 16519 16520 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16522 fi 16523 16524 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16525 16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16527$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16528 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16529 if eval \${$cacheid+:} false; then : 16530 $as_echo_n "(cached) " >&6 16531else 16532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16533/* end confdefs.h. */ 16534int i; 16535int 16536main () 16537{ 16538 16539 ; 16540 return 0; 16541} 16542_ACEOF 16543if ac_fn_c_try_link "$LINENO"; then : 16544 eval $cacheid=yes 16545else 16546 eval $cacheid=no 16547fi 16548rm -f core conftest.err conftest.$ac_objext \ 16549 conftest$ac_exeext conftest.$ac_ext 16550fi 16551 16552 16553 CFLAGS="$xorg_testset_save_CFLAGS" 16554 16555 eval supported=\$$cacheid 16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16557$as_echo "$supported" >&6; } 16558 if test "$supported" = "yes" ; then 16559 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16560 found="yes" 16561 fi 16562 fi 16563 16564 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16565else 16566{ $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 16567$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;} 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581xorg_testset_save_CFLAGS="$CFLAGS" 16582 16583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16586$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16587if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16588 $as_echo_n "(cached) " >&6 16589else 16590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16591/* end confdefs.h. */ 16592int i; 16593_ACEOF 16594if ac_fn_c_try_compile "$LINENO"; then : 16595 xorg_cv_cc_flag_unknown_warning_option=yes 16596else 16597 xorg_cv_cc_flag_unknown_warning_option=no 16598fi 16599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16600fi 16601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16602$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16604 CFLAGS="$xorg_testset_save_CFLAGS" 16605fi 16606 16607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16610 fi 16611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16613$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16614if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16615 $as_echo_n "(cached) " >&6 16616else 16617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16618/* end confdefs.h. */ 16619int i; 16620_ACEOF 16621if ac_fn_c_try_compile "$LINENO"; then : 16622 xorg_cv_cc_flag_unused_command_line_argument=yes 16623else 16624 xorg_cv_cc_flag_unused_command_line_argument=no 16625fi 16626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16627fi 16628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16629$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16631 CFLAGS="$xorg_testset_save_CFLAGS" 16632fi 16633 16634found="no" 16635 16636 if test $found = "no" ; then 16637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16639 fi 16640 16641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16643 fi 16644 16645 CFLAGS="$CFLAGS -Wimplicit" 16646 16647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16648$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16649 cacheid=xorg_cv_cc_flag__Wimplicit 16650 if eval \${$cacheid+:} false; then : 16651 $as_echo_n "(cached) " >&6 16652else 16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16654/* end confdefs.h. */ 16655int i; 16656int 16657main () 16658{ 16659 16660 ; 16661 return 0; 16662} 16663_ACEOF 16664if ac_fn_c_try_link "$LINENO"; then : 16665 eval $cacheid=yes 16666else 16667 eval $cacheid=no 16668fi 16669rm -f core conftest.err conftest.$ac_objext \ 16670 conftest$ac_exeext conftest.$ac_ext 16671fi 16672 16673 16674 CFLAGS="$xorg_testset_save_CFLAGS" 16675 16676 eval supported=\$$cacheid 16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16678$as_echo "$supported" >&6; } 16679 if test "$supported" = "yes" ; then 16680 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16681 found="yes" 16682 fi 16683 fi 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699xorg_testset_save_CFLAGS="$CFLAGS" 16700 16701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16704$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16705if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16706 $as_echo_n "(cached) " >&6 16707else 16708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16709/* end confdefs.h. */ 16710int i; 16711_ACEOF 16712if ac_fn_c_try_compile "$LINENO"; then : 16713 xorg_cv_cc_flag_unknown_warning_option=yes 16714else 16715 xorg_cv_cc_flag_unknown_warning_option=no 16716fi 16717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16718fi 16719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16720$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16722 CFLAGS="$xorg_testset_save_CFLAGS" 16723fi 16724 16725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16728 fi 16729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16731$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16732if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16733 $as_echo_n "(cached) " >&6 16734else 16735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16736/* end confdefs.h. */ 16737int i; 16738_ACEOF 16739if ac_fn_c_try_compile "$LINENO"; then : 16740 xorg_cv_cc_flag_unused_command_line_argument=yes 16741else 16742 xorg_cv_cc_flag_unused_command_line_argument=no 16743fi 16744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16745fi 16746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16747$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16749 CFLAGS="$xorg_testset_save_CFLAGS" 16750fi 16751 16752found="no" 16753 16754 if test $found = "no" ; then 16755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16757 fi 16758 16759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16761 fi 16762 16763 CFLAGS="$CFLAGS -Wnonnull" 16764 16765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16766$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16767 cacheid=xorg_cv_cc_flag__Wnonnull 16768 if eval \${$cacheid+:} false; then : 16769 $as_echo_n "(cached) " >&6 16770else 16771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16772/* end confdefs.h. */ 16773int i; 16774int 16775main () 16776{ 16777 16778 ; 16779 return 0; 16780} 16781_ACEOF 16782if ac_fn_c_try_link "$LINENO"; then : 16783 eval $cacheid=yes 16784else 16785 eval $cacheid=no 16786fi 16787rm -f core conftest.err conftest.$ac_objext \ 16788 conftest$ac_exeext conftest.$ac_ext 16789fi 16790 16791 16792 CFLAGS="$xorg_testset_save_CFLAGS" 16793 16794 eval supported=\$$cacheid 16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16796$as_echo "$supported" >&6; } 16797 if test "$supported" = "yes" ; then 16798 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16799 found="yes" 16800 fi 16801 fi 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817xorg_testset_save_CFLAGS="$CFLAGS" 16818 16819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16822$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16823if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16824 $as_echo_n "(cached) " >&6 16825else 16826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16827/* end confdefs.h. */ 16828int i; 16829_ACEOF 16830if ac_fn_c_try_compile "$LINENO"; then : 16831 xorg_cv_cc_flag_unknown_warning_option=yes 16832else 16833 xorg_cv_cc_flag_unknown_warning_option=no 16834fi 16835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16836fi 16837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16838$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16840 CFLAGS="$xorg_testset_save_CFLAGS" 16841fi 16842 16843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16846 fi 16847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16849$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16850if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16851 $as_echo_n "(cached) " >&6 16852else 16853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16854/* end confdefs.h. */ 16855int i; 16856_ACEOF 16857if ac_fn_c_try_compile "$LINENO"; then : 16858 xorg_cv_cc_flag_unused_command_line_argument=yes 16859else 16860 xorg_cv_cc_flag_unused_command_line_argument=no 16861fi 16862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16863fi 16864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16865$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16867 CFLAGS="$xorg_testset_save_CFLAGS" 16868fi 16869 16870found="no" 16871 16872 if test $found = "no" ; then 16873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16875 fi 16876 16877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16879 fi 16880 16881 CFLAGS="$CFLAGS -Winit-self" 16882 16883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16884$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16885 cacheid=xorg_cv_cc_flag__Winit_self 16886 if eval \${$cacheid+:} false; then : 16887 $as_echo_n "(cached) " >&6 16888else 16889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16890/* end confdefs.h. */ 16891int i; 16892int 16893main () 16894{ 16895 16896 ; 16897 return 0; 16898} 16899_ACEOF 16900if ac_fn_c_try_link "$LINENO"; then : 16901 eval $cacheid=yes 16902else 16903 eval $cacheid=no 16904fi 16905rm -f core conftest.err conftest.$ac_objext \ 16906 conftest$ac_exeext conftest.$ac_ext 16907fi 16908 16909 16910 CFLAGS="$xorg_testset_save_CFLAGS" 16911 16912 eval supported=\$$cacheid 16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16914$as_echo "$supported" >&6; } 16915 if test "$supported" = "yes" ; then 16916 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16917 found="yes" 16918 fi 16919 fi 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935xorg_testset_save_CFLAGS="$CFLAGS" 16936 16937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16940$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16941if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16942 $as_echo_n "(cached) " >&6 16943else 16944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16945/* end confdefs.h. */ 16946int i; 16947_ACEOF 16948if ac_fn_c_try_compile "$LINENO"; then : 16949 xorg_cv_cc_flag_unknown_warning_option=yes 16950else 16951 xorg_cv_cc_flag_unknown_warning_option=no 16952fi 16953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16954fi 16955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16956$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16958 CFLAGS="$xorg_testset_save_CFLAGS" 16959fi 16960 16961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16964 fi 16965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16967$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16968if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16969 $as_echo_n "(cached) " >&6 16970else 16971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16972/* end confdefs.h. */ 16973int i; 16974_ACEOF 16975if ac_fn_c_try_compile "$LINENO"; then : 16976 xorg_cv_cc_flag_unused_command_line_argument=yes 16977else 16978 xorg_cv_cc_flag_unused_command_line_argument=no 16979fi 16980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16981fi 16982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16983$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16985 CFLAGS="$xorg_testset_save_CFLAGS" 16986fi 16987 16988found="no" 16989 16990 if test $found = "no" ; then 16991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16993 fi 16994 16995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16997 fi 16998 16999 CFLAGS="$CFLAGS -Wmain" 17000 17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17002$as_echo_n "checking if $CC supports -Wmain... " >&6; } 17003 cacheid=xorg_cv_cc_flag__Wmain 17004 if eval \${$cacheid+:} false; then : 17005 $as_echo_n "(cached) " >&6 17006else 17007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17008/* end confdefs.h. */ 17009int i; 17010int 17011main () 17012{ 17013 17014 ; 17015 return 0; 17016} 17017_ACEOF 17018if ac_fn_c_try_link "$LINENO"; then : 17019 eval $cacheid=yes 17020else 17021 eval $cacheid=no 17022fi 17023rm -f core conftest.err conftest.$ac_objext \ 17024 conftest$ac_exeext conftest.$ac_ext 17025fi 17026 17027 17028 CFLAGS="$xorg_testset_save_CFLAGS" 17029 17030 eval supported=\$$cacheid 17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17032$as_echo "$supported" >&6; } 17033 if test "$supported" = "yes" ; then 17034 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17035 found="yes" 17036 fi 17037 fi 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053xorg_testset_save_CFLAGS="$CFLAGS" 17054 17055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17058$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17059if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17060 $as_echo_n "(cached) " >&6 17061else 17062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17063/* end confdefs.h. */ 17064int i; 17065_ACEOF 17066if ac_fn_c_try_compile "$LINENO"; then : 17067 xorg_cv_cc_flag_unknown_warning_option=yes 17068else 17069 xorg_cv_cc_flag_unknown_warning_option=no 17070fi 17071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17072fi 17073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17074$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17076 CFLAGS="$xorg_testset_save_CFLAGS" 17077fi 17078 17079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17082 fi 17083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17085$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17086if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17087 $as_echo_n "(cached) " >&6 17088else 17089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17090/* end confdefs.h. */ 17091int i; 17092_ACEOF 17093if ac_fn_c_try_compile "$LINENO"; then : 17094 xorg_cv_cc_flag_unused_command_line_argument=yes 17095else 17096 xorg_cv_cc_flag_unused_command_line_argument=no 17097fi 17098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17099fi 17100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17101$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17103 CFLAGS="$xorg_testset_save_CFLAGS" 17104fi 17105 17106found="no" 17107 17108 if test $found = "no" ; then 17109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17111 fi 17112 17113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17115 fi 17116 17117 CFLAGS="$CFLAGS -Wmissing-braces" 17118 17119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17120$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 17121 cacheid=xorg_cv_cc_flag__Wmissing_braces 17122 if eval \${$cacheid+:} false; then : 17123 $as_echo_n "(cached) " >&6 17124else 17125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17126/* end confdefs.h. */ 17127int i; 17128int 17129main () 17130{ 17131 17132 ; 17133 return 0; 17134} 17135_ACEOF 17136if ac_fn_c_try_link "$LINENO"; then : 17137 eval $cacheid=yes 17138else 17139 eval $cacheid=no 17140fi 17141rm -f core conftest.err conftest.$ac_objext \ 17142 conftest$ac_exeext conftest.$ac_ext 17143fi 17144 17145 17146 CFLAGS="$xorg_testset_save_CFLAGS" 17147 17148 eval supported=\$$cacheid 17149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17150$as_echo "$supported" >&6; } 17151 if test "$supported" = "yes" ; then 17152 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17153 found="yes" 17154 fi 17155 fi 17156 17157 17158 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171xorg_testset_save_CFLAGS="$CFLAGS" 17172 17173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17176$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17177if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17178 $as_echo_n "(cached) " >&6 17179else 17180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17181/* end confdefs.h. */ 17182int i; 17183_ACEOF 17184if ac_fn_c_try_compile "$LINENO"; then : 17185 xorg_cv_cc_flag_unknown_warning_option=yes 17186else 17187 xorg_cv_cc_flag_unknown_warning_option=no 17188fi 17189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17190fi 17191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17192$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17194 CFLAGS="$xorg_testset_save_CFLAGS" 17195fi 17196 17197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17200 fi 17201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17203$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17204if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17205 $as_echo_n "(cached) " >&6 17206else 17207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17208/* end confdefs.h. */ 17209int i; 17210_ACEOF 17211if ac_fn_c_try_compile "$LINENO"; then : 17212 xorg_cv_cc_flag_unused_command_line_argument=yes 17213else 17214 xorg_cv_cc_flag_unused_command_line_argument=no 17215fi 17216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17217fi 17218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17219$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17221 CFLAGS="$xorg_testset_save_CFLAGS" 17222fi 17223 17224found="no" 17225 17226 if test $found = "no" ; then 17227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17229 fi 17230 17231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17233 fi 17234 17235 CFLAGS="$CFLAGS -Wsequence-point" 17236 17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17238$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 17239 cacheid=xorg_cv_cc_flag__Wsequence_point 17240 if eval \${$cacheid+:} false; then : 17241 $as_echo_n "(cached) " >&6 17242else 17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17244/* end confdefs.h. */ 17245int i; 17246int 17247main () 17248{ 17249 17250 ; 17251 return 0; 17252} 17253_ACEOF 17254if ac_fn_c_try_link "$LINENO"; then : 17255 eval $cacheid=yes 17256else 17257 eval $cacheid=no 17258fi 17259rm -f core conftest.err conftest.$ac_objext \ 17260 conftest$ac_exeext conftest.$ac_ext 17261fi 17262 17263 17264 CFLAGS="$xorg_testset_save_CFLAGS" 17265 17266 eval supported=\$$cacheid 17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17268$as_echo "$supported" >&6; } 17269 if test "$supported" = "yes" ; then 17270 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17271 found="yes" 17272 fi 17273 fi 17274 17275 17276 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289xorg_testset_save_CFLAGS="$CFLAGS" 17290 17291if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17294$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17295if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17296 $as_echo_n "(cached) " >&6 17297else 17298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17299/* end confdefs.h. */ 17300int i; 17301_ACEOF 17302if ac_fn_c_try_compile "$LINENO"; then : 17303 xorg_cv_cc_flag_unknown_warning_option=yes 17304else 17305 xorg_cv_cc_flag_unknown_warning_option=no 17306fi 17307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17308fi 17309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17310$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17311 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17312 CFLAGS="$xorg_testset_save_CFLAGS" 17313fi 17314 17315if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17318 fi 17319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17321$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17322if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17323 $as_echo_n "(cached) " >&6 17324else 17325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17326/* end confdefs.h. */ 17327int i; 17328_ACEOF 17329if ac_fn_c_try_compile "$LINENO"; then : 17330 xorg_cv_cc_flag_unused_command_line_argument=yes 17331else 17332 xorg_cv_cc_flag_unused_command_line_argument=no 17333fi 17334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17335fi 17336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17337$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17339 CFLAGS="$xorg_testset_save_CFLAGS" 17340fi 17341 17342found="no" 17343 17344 if test $found = "no" ; then 17345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17347 fi 17348 17349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17351 fi 17352 17353 CFLAGS="$CFLAGS -Wreturn-type" 17354 17355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17356$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 17357 cacheid=xorg_cv_cc_flag__Wreturn_type 17358 if eval \${$cacheid+:} false; then : 17359 $as_echo_n "(cached) " >&6 17360else 17361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17362/* end confdefs.h. */ 17363int i; 17364int 17365main () 17366{ 17367 17368 ; 17369 return 0; 17370} 17371_ACEOF 17372if ac_fn_c_try_link "$LINENO"; then : 17373 eval $cacheid=yes 17374else 17375 eval $cacheid=no 17376fi 17377rm -f core conftest.err conftest.$ac_objext \ 17378 conftest$ac_exeext conftest.$ac_ext 17379fi 17380 17381 17382 CFLAGS="$xorg_testset_save_CFLAGS" 17383 17384 eval supported=\$$cacheid 17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17386$as_echo "$supported" >&6; } 17387 if test "$supported" = "yes" ; then 17388 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17389 found="yes" 17390 fi 17391 fi 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407xorg_testset_save_CFLAGS="$CFLAGS" 17408 17409if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17412$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17413if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17414 $as_echo_n "(cached) " >&6 17415else 17416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17417/* end confdefs.h. */ 17418int i; 17419_ACEOF 17420if ac_fn_c_try_compile "$LINENO"; then : 17421 xorg_cv_cc_flag_unknown_warning_option=yes 17422else 17423 xorg_cv_cc_flag_unknown_warning_option=no 17424fi 17425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17426fi 17427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17428$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17430 CFLAGS="$xorg_testset_save_CFLAGS" 17431fi 17432 17433if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17436 fi 17437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17439$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17440if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17441 $as_echo_n "(cached) " >&6 17442else 17443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17444/* end confdefs.h. */ 17445int i; 17446_ACEOF 17447if ac_fn_c_try_compile "$LINENO"; then : 17448 xorg_cv_cc_flag_unused_command_line_argument=yes 17449else 17450 xorg_cv_cc_flag_unused_command_line_argument=no 17451fi 17452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17453fi 17454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17455$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17456 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17457 CFLAGS="$xorg_testset_save_CFLAGS" 17458fi 17459 17460found="no" 17461 17462 if test $found = "no" ; then 17463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17465 fi 17466 17467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17469 fi 17470 17471 CFLAGS="$CFLAGS -Wtrigraphs" 17472 17473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17474$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17475 cacheid=xorg_cv_cc_flag__Wtrigraphs 17476 if eval \${$cacheid+:} false; then : 17477 $as_echo_n "(cached) " >&6 17478else 17479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17480/* end confdefs.h. */ 17481int i; 17482int 17483main () 17484{ 17485 17486 ; 17487 return 0; 17488} 17489_ACEOF 17490if ac_fn_c_try_link "$LINENO"; then : 17491 eval $cacheid=yes 17492else 17493 eval $cacheid=no 17494fi 17495rm -f core conftest.err conftest.$ac_objext \ 17496 conftest$ac_exeext conftest.$ac_ext 17497fi 17498 17499 17500 CFLAGS="$xorg_testset_save_CFLAGS" 17501 17502 eval supported=\$$cacheid 17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17504$as_echo "$supported" >&6; } 17505 if test "$supported" = "yes" ; then 17506 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17507 found="yes" 17508 fi 17509 fi 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525xorg_testset_save_CFLAGS="$CFLAGS" 17526 17527if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17530$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17531if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17532 $as_echo_n "(cached) " >&6 17533else 17534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17535/* end confdefs.h. */ 17536int i; 17537_ACEOF 17538if ac_fn_c_try_compile "$LINENO"; then : 17539 xorg_cv_cc_flag_unknown_warning_option=yes 17540else 17541 xorg_cv_cc_flag_unknown_warning_option=no 17542fi 17543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17544fi 17545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17546$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17547 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17548 CFLAGS="$xorg_testset_save_CFLAGS" 17549fi 17550 17551if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17554 fi 17555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17557$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17558if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17559 $as_echo_n "(cached) " >&6 17560else 17561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17562/* end confdefs.h. */ 17563int i; 17564_ACEOF 17565if ac_fn_c_try_compile "$LINENO"; then : 17566 xorg_cv_cc_flag_unused_command_line_argument=yes 17567else 17568 xorg_cv_cc_flag_unused_command_line_argument=no 17569fi 17570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17571fi 17572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17573$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17575 CFLAGS="$xorg_testset_save_CFLAGS" 17576fi 17577 17578found="no" 17579 17580 if test $found = "no" ; then 17581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17583 fi 17584 17585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17587 fi 17588 17589 CFLAGS="$CFLAGS -Warray-bounds" 17590 17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17592$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17593 cacheid=xorg_cv_cc_flag__Warray_bounds 17594 if eval \${$cacheid+:} false; then : 17595 $as_echo_n "(cached) " >&6 17596else 17597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17598/* end confdefs.h. */ 17599int i; 17600int 17601main () 17602{ 17603 17604 ; 17605 return 0; 17606} 17607_ACEOF 17608if ac_fn_c_try_link "$LINENO"; then : 17609 eval $cacheid=yes 17610else 17611 eval $cacheid=no 17612fi 17613rm -f core conftest.err conftest.$ac_objext \ 17614 conftest$ac_exeext conftest.$ac_ext 17615fi 17616 17617 17618 CFLAGS="$xorg_testset_save_CFLAGS" 17619 17620 eval supported=\$$cacheid 17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17622$as_echo "$supported" >&6; } 17623 if test "$supported" = "yes" ; then 17624 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17625 found="yes" 17626 fi 17627 fi 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643xorg_testset_save_CFLAGS="$CFLAGS" 17644 17645if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17648$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17649if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17650 $as_echo_n "(cached) " >&6 17651else 17652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17653/* end confdefs.h. */ 17654int i; 17655_ACEOF 17656if ac_fn_c_try_compile "$LINENO"; then : 17657 xorg_cv_cc_flag_unknown_warning_option=yes 17658else 17659 xorg_cv_cc_flag_unknown_warning_option=no 17660fi 17661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17662fi 17663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17664$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17665 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17666 CFLAGS="$xorg_testset_save_CFLAGS" 17667fi 17668 17669if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17672 fi 17673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17675$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17676if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17677 $as_echo_n "(cached) " >&6 17678else 17679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17680/* end confdefs.h. */ 17681int i; 17682_ACEOF 17683if ac_fn_c_try_compile "$LINENO"; then : 17684 xorg_cv_cc_flag_unused_command_line_argument=yes 17685else 17686 xorg_cv_cc_flag_unused_command_line_argument=no 17687fi 17688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17689fi 17690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17691$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17692 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17693 CFLAGS="$xorg_testset_save_CFLAGS" 17694fi 17695 17696found="no" 17697 17698 if test $found = "no" ; then 17699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17701 fi 17702 17703 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17705 fi 17706 17707 CFLAGS="$CFLAGS -Wwrite-strings" 17708 17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17710$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17711 cacheid=xorg_cv_cc_flag__Wwrite_strings 17712 if eval \${$cacheid+:} false; then : 17713 $as_echo_n "(cached) " >&6 17714else 17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17716/* end confdefs.h. */ 17717int i; 17718int 17719main () 17720{ 17721 17722 ; 17723 return 0; 17724} 17725_ACEOF 17726if ac_fn_c_try_link "$LINENO"; then : 17727 eval $cacheid=yes 17728else 17729 eval $cacheid=no 17730fi 17731rm -f core conftest.err conftest.$ac_objext \ 17732 conftest$ac_exeext conftest.$ac_ext 17733fi 17734 17735 17736 CFLAGS="$xorg_testset_save_CFLAGS" 17737 17738 eval supported=\$$cacheid 17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17740$as_echo "$supported" >&6; } 17741 if test "$supported" = "yes" ; then 17742 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17743 found="yes" 17744 fi 17745 fi 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761xorg_testset_save_CFLAGS="$CFLAGS" 17762 17763if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17766$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17767if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17768 $as_echo_n "(cached) " >&6 17769else 17770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17771/* end confdefs.h. */ 17772int i; 17773_ACEOF 17774if ac_fn_c_try_compile "$LINENO"; then : 17775 xorg_cv_cc_flag_unknown_warning_option=yes 17776else 17777 xorg_cv_cc_flag_unknown_warning_option=no 17778fi 17779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17780fi 17781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17782$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17783 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17784 CFLAGS="$xorg_testset_save_CFLAGS" 17785fi 17786 17787if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17790 fi 17791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17793$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17794if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17795 $as_echo_n "(cached) " >&6 17796else 17797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17798/* end confdefs.h. */ 17799int i; 17800_ACEOF 17801if ac_fn_c_try_compile "$LINENO"; then : 17802 xorg_cv_cc_flag_unused_command_line_argument=yes 17803else 17804 xorg_cv_cc_flag_unused_command_line_argument=no 17805fi 17806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17807fi 17808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17809$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17811 CFLAGS="$xorg_testset_save_CFLAGS" 17812fi 17813 17814found="no" 17815 17816 if test $found = "no" ; then 17817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17819 fi 17820 17821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17823 fi 17824 17825 CFLAGS="$CFLAGS -Waddress" 17826 17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17828$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17829 cacheid=xorg_cv_cc_flag__Waddress 17830 if eval \${$cacheid+:} false; then : 17831 $as_echo_n "(cached) " >&6 17832else 17833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17834/* end confdefs.h. */ 17835int i; 17836int 17837main () 17838{ 17839 17840 ; 17841 return 0; 17842} 17843_ACEOF 17844if ac_fn_c_try_link "$LINENO"; then : 17845 eval $cacheid=yes 17846else 17847 eval $cacheid=no 17848fi 17849rm -f core conftest.err conftest.$ac_objext \ 17850 conftest$ac_exeext conftest.$ac_ext 17851fi 17852 17853 17854 CFLAGS="$xorg_testset_save_CFLAGS" 17855 17856 eval supported=\$$cacheid 17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17858$as_echo "$supported" >&6; } 17859 if test "$supported" = "yes" ; then 17860 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17861 found="yes" 17862 fi 17863 fi 17864 17865 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876 17877 17878 17879xorg_testset_save_CFLAGS="$CFLAGS" 17880 17881if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17884$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17885if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17886 $as_echo_n "(cached) " >&6 17887else 17888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17889/* end confdefs.h. */ 17890int i; 17891_ACEOF 17892if ac_fn_c_try_compile "$LINENO"; then : 17893 xorg_cv_cc_flag_unknown_warning_option=yes 17894else 17895 xorg_cv_cc_flag_unknown_warning_option=no 17896fi 17897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17898fi 17899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17900$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17902 CFLAGS="$xorg_testset_save_CFLAGS" 17903fi 17904 17905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17908 fi 17909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17911$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17912if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17913 $as_echo_n "(cached) " >&6 17914else 17915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17916/* end confdefs.h. */ 17917int i; 17918_ACEOF 17919if ac_fn_c_try_compile "$LINENO"; then : 17920 xorg_cv_cc_flag_unused_command_line_argument=yes 17921else 17922 xorg_cv_cc_flag_unused_command_line_argument=no 17923fi 17924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17925fi 17926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17927$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17929 CFLAGS="$xorg_testset_save_CFLAGS" 17930fi 17931 17932found="no" 17933 17934 if test $found = "no" ; then 17935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17937 fi 17938 17939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17941 fi 17942 17943 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17944 17945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17946$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17947 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17948 if eval \${$cacheid+:} false; then : 17949 $as_echo_n "(cached) " >&6 17950else 17951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17952/* end confdefs.h. */ 17953int i; 17954int 17955main () 17956{ 17957 17958 ; 17959 return 0; 17960} 17961_ACEOF 17962if ac_fn_c_try_link "$LINENO"; then : 17963 eval $cacheid=yes 17964else 17965 eval $cacheid=no 17966fi 17967rm -f core conftest.err conftest.$ac_objext \ 17968 conftest$ac_exeext conftest.$ac_ext 17969fi 17970 17971 17972 CFLAGS="$xorg_testset_save_CFLAGS" 17973 17974 eval supported=\$$cacheid 17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17976$as_echo "$supported" >&6; } 17977 if test "$supported" = "yes" ; then 17978 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17979 found="yes" 17980 fi 17981 fi 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997xorg_testset_save_CFLAGS="$CFLAGS" 17998 17999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18002$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18003if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18004 $as_echo_n "(cached) " >&6 18005else 18006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18007/* end confdefs.h. */ 18008int i; 18009_ACEOF 18010if ac_fn_c_try_compile "$LINENO"; then : 18011 xorg_cv_cc_flag_unknown_warning_option=yes 18012else 18013 xorg_cv_cc_flag_unknown_warning_option=no 18014fi 18015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18016fi 18017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18018$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18020 CFLAGS="$xorg_testset_save_CFLAGS" 18021fi 18022 18023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18026 fi 18027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18029$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18030if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18031 $as_echo_n "(cached) " >&6 18032else 18033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18034/* end confdefs.h. */ 18035int i; 18036_ACEOF 18037if ac_fn_c_try_compile "$LINENO"; then : 18038 xorg_cv_cc_flag_unused_command_line_argument=yes 18039else 18040 xorg_cv_cc_flag_unused_command_line_argument=no 18041fi 18042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18043fi 18044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18045$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18047 CFLAGS="$xorg_testset_save_CFLAGS" 18048fi 18049 18050found="no" 18051 18052 if test $found = "no" ; then 18053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18055 fi 18056 18057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18059 fi 18060 18061 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18062 18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18064$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18065 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18066 if eval \${$cacheid+:} false; then : 18067 $as_echo_n "(cached) " >&6 18068else 18069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18070/* end confdefs.h. */ 18071int i; 18072int 18073main () 18074{ 18075 18076 ; 18077 return 0; 18078} 18079_ACEOF 18080if ac_fn_c_try_link "$LINENO"; then : 18081 eval $cacheid=yes 18082else 18083 eval $cacheid=no 18084fi 18085rm -f core conftest.err conftest.$ac_objext \ 18086 conftest$ac_exeext conftest.$ac_ext 18087fi 18088 18089 18090 CFLAGS="$xorg_testset_save_CFLAGS" 18091 18092 eval supported=\$$cacheid 18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18094$as_echo "$supported" >&6; } 18095 if test "$supported" = "yes" ; then 18096 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18097 found="yes" 18098 fi 18099 fi 18100 18101 18102fi 18103 18104 18105 18106 18107 18108 18109 18110 CWARNFLAGS="$BASE_CFLAGS" 18111 if test "x$GCC" = xyes ; then 18112 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18113 fi 18114 18115 18116 18117 18118 18119 18120 18121 18122# Check whether --enable-strict-compilation was given. 18123if test "${enable_strict_compilation+set}" = set; then : 18124 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18125else 18126 STRICT_COMPILE=no 18127fi 18128 18129 18130 18131 18132 18133 18134STRICT_CFLAGS="" 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148xorg_testset_save_CFLAGS="$CFLAGS" 18149 18150if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18153$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18154if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18155 $as_echo_n "(cached) " >&6 18156else 18157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18158/* end confdefs.h. */ 18159int i; 18160_ACEOF 18161if ac_fn_c_try_compile "$LINENO"; then : 18162 xorg_cv_cc_flag_unknown_warning_option=yes 18163else 18164 xorg_cv_cc_flag_unknown_warning_option=no 18165fi 18166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18167fi 18168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18169$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18171 CFLAGS="$xorg_testset_save_CFLAGS" 18172fi 18173 18174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18177 fi 18178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18180$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18181if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18182 $as_echo_n "(cached) " >&6 18183else 18184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18185/* end confdefs.h. */ 18186int i; 18187_ACEOF 18188if ac_fn_c_try_compile "$LINENO"; then : 18189 xorg_cv_cc_flag_unused_command_line_argument=yes 18190else 18191 xorg_cv_cc_flag_unused_command_line_argument=no 18192fi 18193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18194fi 18195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18196$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18198 CFLAGS="$xorg_testset_save_CFLAGS" 18199fi 18200 18201found="no" 18202 18203 if test $found = "no" ; then 18204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18206 fi 18207 18208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18210 fi 18211 18212 CFLAGS="$CFLAGS -pedantic" 18213 18214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18215$as_echo_n "checking if $CC supports -pedantic... " >&6; } 18216 cacheid=xorg_cv_cc_flag__pedantic 18217 if eval \${$cacheid+:} false; then : 18218 $as_echo_n "(cached) " >&6 18219else 18220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18221/* end confdefs.h. */ 18222int i; 18223int 18224main () 18225{ 18226 18227 ; 18228 return 0; 18229} 18230_ACEOF 18231if ac_fn_c_try_link "$LINENO"; then : 18232 eval $cacheid=yes 18233else 18234 eval $cacheid=no 18235fi 18236rm -f core conftest.err conftest.$ac_objext \ 18237 conftest$ac_exeext conftest.$ac_ext 18238fi 18239 18240 18241 CFLAGS="$xorg_testset_save_CFLAGS" 18242 18243 eval supported=\$$cacheid 18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18245$as_echo "$supported" >&6; } 18246 if test "$supported" = "yes" ; then 18247 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18248 found="yes" 18249 fi 18250 fi 18251 18252 18253 18254 18255 18256 18257 18258 18259 18260 18261 18262 18263 18264 18265 18266xorg_testset_save_CFLAGS="$CFLAGS" 18267 18268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18271$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18272if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18273 $as_echo_n "(cached) " >&6 18274else 18275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18276/* end confdefs.h. */ 18277int i; 18278_ACEOF 18279if ac_fn_c_try_compile "$LINENO"; then : 18280 xorg_cv_cc_flag_unknown_warning_option=yes 18281else 18282 xorg_cv_cc_flag_unknown_warning_option=no 18283fi 18284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18285fi 18286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18287$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18289 CFLAGS="$xorg_testset_save_CFLAGS" 18290fi 18291 18292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18295 fi 18296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18298$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18299if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18300 $as_echo_n "(cached) " >&6 18301else 18302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18303/* end confdefs.h. */ 18304int i; 18305_ACEOF 18306if ac_fn_c_try_compile "$LINENO"; then : 18307 xorg_cv_cc_flag_unused_command_line_argument=yes 18308else 18309 xorg_cv_cc_flag_unused_command_line_argument=no 18310fi 18311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18312fi 18313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18314$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18315 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18316 CFLAGS="$xorg_testset_save_CFLAGS" 18317fi 18318 18319found="no" 18320 18321 if test $found = "no" ; then 18322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18324 fi 18325 18326 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18328 fi 18329 18330 CFLAGS="$CFLAGS -Werror" 18331 18332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18333$as_echo_n "checking if $CC supports -Werror... " >&6; } 18334 cacheid=xorg_cv_cc_flag__Werror 18335 if eval \${$cacheid+:} false; then : 18336 $as_echo_n "(cached) " >&6 18337else 18338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18339/* end confdefs.h. */ 18340int i; 18341int 18342main () 18343{ 18344 18345 ; 18346 return 0; 18347} 18348_ACEOF 18349if ac_fn_c_try_link "$LINENO"; then : 18350 eval $cacheid=yes 18351else 18352 eval $cacheid=no 18353fi 18354rm -f core conftest.err conftest.$ac_objext \ 18355 conftest$ac_exeext conftest.$ac_ext 18356fi 18357 18358 18359 CFLAGS="$xorg_testset_save_CFLAGS" 18360 18361 eval supported=\$$cacheid 18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18363$as_echo "$supported" >&6; } 18364 if test "$supported" = "yes" ; then 18365 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18366 found="yes" 18367 fi 18368 fi 18369 18370 if test $found = "no" ; then 18371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18373 fi 18374 18375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18377 fi 18378 18379 CFLAGS="$CFLAGS -errwarn" 18380 18381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18382$as_echo_n "checking if $CC supports -errwarn... " >&6; } 18383 cacheid=xorg_cv_cc_flag__errwarn 18384 if eval \${$cacheid+:} false; then : 18385 $as_echo_n "(cached) " >&6 18386else 18387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18388/* end confdefs.h. */ 18389int i; 18390int 18391main () 18392{ 18393 18394 ; 18395 return 0; 18396} 18397_ACEOF 18398if ac_fn_c_try_link "$LINENO"; then : 18399 eval $cacheid=yes 18400else 18401 eval $cacheid=no 18402fi 18403rm -f core conftest.err conftest.$ac_objext \ 18404 conftest$ac_exeext conftest.$ac_ext 18405fi 18406 18407 18408 CFLAGS="$xorg_testset_save_CFLAGS" 18409 18410 eval supported=\$$cacheid 18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18412$as_echo "$supported" >&6; } 18413 if test "$supported" = "yes" ; then 18414 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18415 found="yes" 18416 fi 18417 fi 18418 18419 18420 18421# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18422# activate it with -Werror, so we add it here explicitly. 18423 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433 18434 18435 18436xorg_testset_save_CFLAGS="$CFLAGS" 18437 18438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18441$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18442if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18443 $as_echo_n "(cached) " >&6 18444else 18445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18446/* end confdefs.h. */ 18447int i; 18448_ACEOF 18449if ac_fn_c_try_compile "$LINENO"; then : 18450 xorg_cv_cc_flag_unknown_warning_option=yes 18451else 18452 xorg_cv_cc_flag_unknown_warning_option=no 18453fi 18454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18455fi 18456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18457$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18459 CFLAGS="$xorg_testset_save_CFLAGS" 18460fi 18461 18462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18465 fi 18466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18468$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18469if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18470 $as_echo_n "(cached) " >&6 18471else 18472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18473/* end confdefs.h. */ 18474int i; 18475_ACEOF 18476if ac_fn_c_try_compile "$LINENO"; then : 18477 xorg_cv_cc_flag_unused_command_line_argument=yes 18478else 18479 xorg_cv_cc_flag_unused_command_line_argument=no 18480fi 18481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18482fi 18483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18484$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18486 CFLAGS="$xorg_testset_save_CFLAGS" 18487fi 18488 18489found="no" 18490 18491 if test $found = "no" ; then 18492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18494 fi 18495 18496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18498 fi 18499 18500 CFLAGS="$CFLAGS -Werror=attributes" 18501 18502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18503$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 18504 cacheid=xorg_cv_cc_flag__Werror_attributes 18505 if eval \${$cacheid+:} false; then : 18506 $as_echo_n "(cached) " >&6 18507else 18508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18509/* end confdefs.h. */ 18510int i; 18511int 18512main () 18513{ 18514 18515 ; 18516 return 0; 18517} 18518_ACEOF 18519if ac_fn_c_try_link "$LINENO"; then : 18520 eval $cacheid=yes 18521else 18522 eval $cacheid=no 18523fi 18524rm -f core conftest.err conftest.$ac_objext \ 18525 conftest$ac_exeext conftest.$ac_ext 18526fi 18527 18528 18529 CFLAGS="$xorg_testset_save_CFLAGS" 18530 18531 eval supported=\$$cacheid 18532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18533$as_echo "$supported" >&6; } 18534 if test "$supported" = "yes" ; then 18535 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18536 found="yes" 18537 fi 18538 fi 18539 18540 18541 18542if test "x$STRICT_COMPILE" = "xyes"; then 18543 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18544 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18545fi 18546 18547 18548 18549 18550 18551 18552cat >>confdefs.h <<_ACEOF 18553#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18554_ACEOF 18555 18556 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18557 if test "x$PVM" = "x"; then 18558 PVM="0" 18559 fi 18560 18561cat >>confdefs.h <<_ACEOF 18562#define PACKAGE_VERSION_MINOR $PVM 18563_ACEOF 18564 18565 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18566 if test "x$PVP" = "x"; then 18567 PVP="0" 18568 fi 18569 18570cat >>confdefs.h <<_ACEOF 18571#define PACKAGE_VERSION_PATCHLEVEL $PVP 18572_ACEOF 18573 18574 18575 18576CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 18577mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18578|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 18579echo 'git directory not found: installing possibly empty changelog.' >&2)" 18580 18581 18582 18583 18584macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18585INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18586mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18587|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 18588echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 18589 18590 18591 18592 18593 18594 18595if test x$APP_MAN_SUFFIX = x ; then 18596 APP_MAN_SUFFIX=1 18597fi 18598if test x$APP_MAN_DIR = x ; then 18599 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18600fi 18601 18602if test x$LIB_MAN_SUFFIX = x ; then 18603 LIB_MAN_SUFFIX=3 18604fi 18605if test x$LIB_MAN_DIR = x ; then 18606 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18607fi 18608 18609if test x$FILE_MAN_SUFFIX = x ; then 18610 case $host_os in 18611 solaris*) FILE_MAN_SUFFIX=4 ;; 18612 *) FILE_MAN_SUFFIX=5 ;; 18613 esac 18614fi 18615if test x$FILE_MAN_DIR = x ; then 18616 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18617fi 18618 18619if test x$MISC_MAN_SUFFIX = x ; then 18620 case $host_os in 18621 solaris*) MISC_MAN_SUFFIX=5 ;; 18622 *) MISC_MAN_SUFFIX=7 ;; 18623 esac 18624fi 18625if test x$MISC_MAN_DIR = x ; then 18626 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18627fi 18628 18629if test x$DRIVER_MAN_SUFFIX = x ; then 18630 case $host_os in 18631 solaris*) DRIVER_MAN_SUFFIX=7 ;; 18632 *) DRIVER_MAN_SUFFIX=4 ;; 18633 esac 18634fi 18635if test x$DRIVER_MAN_DIR = x ; then 18636 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18637fi 18638 18639if test x$ADMIN_MAN_SUFFIX = x ; then 18640 case $host_os in 18641 solaris*) ADMIN_MAN_SUFFIX=1m ;; 18642 *) ADMIN_MAN_SUFFIX=8 ;; 18643 esac 18644fi 18645if test x$ADMIN_MAN_DIR = x ; then 18646 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18647fi 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663XORG_MAN_PAGE="X Version 11" 18664 18665MAN_SUBSTS="\ 18666 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18667 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18668 -e 's|__xservername__|Xorg|g' \ 18669 -e 's|__xconfigfile__|xorg.conf|g' \ 18670 -e 's|__projectroot__|\$(prefix)|g' \ 18671 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18672 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18673 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18674 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18675 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18676 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18677 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18678 18679 18680 18681# Check whether --enable-silent-rules was given. 18682if test "${enable_silent_rules+set}" = set; then : 18683 enableval=$enable_silent_rules; 18684fi 18685 18686case $enable_silent_rules in # ((( 18687 yes) AM_DEFAULT_VERBOSITY=0;; 18688 no) AM_DEFAULT_VERBOSITY=1;; 18689 *) AM_DEFAULT_VERBOSITY=0;; 18690esac 18691am_make=${MAKE-make} 18692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18693$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18694if ${am_cv_make_support_nested_variables+:} false; then : 18695 $as_echo_n "(cached) " >&6 18696else 18697 if $as_echo 'TRUE=$(BAR$(V)) 18698BAR0=false 18699BAR1=true 18700V=1 18701am__doit: 18702 @$(TRUE) 18703.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18704 am_cv_make_support_nested_variables=yes 18705else 18706 am_cv_make_support_nested_variables=no 18707fi 18708fi 18709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18710$as_echo "$am_cv_make_support_nested_variables" >&6; } 18711if test $am_cv_make_support_nested_variables = yes; then 18712 AM_V='$(V)' 18713 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18714else 18715 AM_V=$AM_DEFAULT_VERBOSITY 18716 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18717fi 18718AM_BACKSLASH='\' 18719 18720 18721 18722 18723# Check whether --enable-devel-docs was given. 18724if test "${enable_devel_docs+set}" = set; then : 18725 enableval=$enable_devel_docs; build_devel_docs=$enableval 18726else 18727 build_devel_docs=yes 18728fi 18729 18730 18731 if test x$build_devel_docs = xyes; then 18732 ENABLE_DEVEL_DOCS_TRUE= 18733 ENABLE_DEVEL_DOCS_FALSE='#' 18734else 18735 ENABLE_DEVEL_DOCS_TRUE='#' 18736 ENABLE_DEVEL_DOCS_FALSE= 18737fi 18738 18739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 18740$as_echo_n "checking whether to build developer documentation... " >&6; } 18741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 18742$as_echo "$build_devel_docs" >&6; } 18743 18744 18745 18746 18747 18748 18749# Check whether --with-doxygen was given. 18750if test "${with_doxygen+set}" = set; then : 18751 withval=$with_doxygen; use_doxygen=$withval 18752else 18753 use_doxygen=auto 18754fi 18755 18756 18757 18758if test "x$use_doxygen" = x"auto"; then 18759 # Extract the first word of "doxygen", so it can be a program name with args. 18760set dummy doxygen; ac_word=$2 18761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18762$as_echo_n "checking for $ac_word... " >&6; } 18763if ${ac_cv_path_DOXYGEN+:} false; then : 18764 $as_echo_n "(cached) " >&6 18765else 18766 case $DOXYGEN in 18767 [\\/]* | ?:[\\/]*) 18768 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 18769 ;; 18770 *) 18771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18772for as_dir in $PATH 18773do 18774 IFS=$as_save_IFS 18775 test -z "$as_dir" && as_dir=. 18776 for ac_exec_ext in '' $ac_executable_extensions; do 18777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18778 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 18779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18780 break 2 18781 fi 18782done 18783 done 18784IFS=$as_save_IFS 18785 18786 ;; 18787esac 18788fi 18789DOXYGEN=$ac_cv_path_DOXYGEN 18790if test -n "$DOXYGEN"; then 18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 18792$as_echo "$DOXYGEN" >&6; } 18793else 18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18795$as_echo "no" >&6; } 18796fi 18797 18798 18799 if test "x$DOXYGEN" = "x"; then 18800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5 18801$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;} 18802 have_doxygen=no 18803 else 18804 have_doxygen=yes 18805 fi 18806elif test "x$use_doxygen" = x"yes" ; then 18807 # Extract the first word of "doxygen", so it can be a program name with args. 18808set dummy doxygen; ac_word=$2 18809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18810$as_echo_n "checking for $ac_word... " >&6; } 18811if ${ac_cv_path_DOXYGEN+:} false; then : 18812 $as_echo_n "(cached) " >&6 18813else 18814 case $DOXYGEN in 18815 [\\/]* | ?:[\\/]*) 18816 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 18817 ;; 18818 *) 18819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18820for as_dir in $PATH 18821do 18822 IFS=$as_save_IFS 18823 test -z "$as_dir" && as_dir=. 18824 for ac_exec_ext in '' $ac_executable_extensions; do 18825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18826 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 18827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18828 break 2 18829 fi 18830done 18831 done 18832IFS=$as_save_IFS 18833 18834 ;; 18835esac 18836fi 18837DOXYGEN=$ac_cv_path_DOXYGEN 18838if test -n "$DOXYGEN"; then 18839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 18840$as_echo "$DOXYGEN" >&6; } 18841else 18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18843$as_echo "no" >&6; } 18844fi 18845 18846 18847 if test "x$DOXYGEN" = "x"; then 18848 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5 18849 fi 18850 have_doxygen=yes 18851elif test "x$use_doxygen" = x"no" ; then 18852 if test "x$DOXYGEN" != "x"; then 18853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5 18854$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;} 18855 fi 18856 have_doxygen=no 18857else 18858 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5 18859fi 18860 18861 18862HAVE_DOT=no 18863if test "x$have_doxygen" = "xyes"; then 18864 # Extract the first word of "dot", so it can be a program name with args. 18865set dummy dot; ac_word=$2 18866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18867$as_echo_n "checking for $ac_word... " >&6; } 18868if ${ac_cv_path_DOT+:} false; then : 18869 $as_echo_n "(cached) " >&6 18870else 18871 case $DOT in 18872 [\\/]* | ?:[\\/]*) 18873 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 18874 ;; 18875 *) 18876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18877for as_dir in $PATH 18878do 18879 IFS=$as_save_IFS 18880 test -z "$as_dir" && as_dir=. 18881 for ac_exec_ext in '' $ac_executable_extensions; do 18882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18883 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 18884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18885 break 2 18886 fi 18887done 18888 done 18889IFS=$as_save_IFS 18890 18891 ;; 18892esac 18893fi 18894DOT=$ac_cv_path_DOT 18895if test -n "$DOT"; then 18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 18897$as_echo "$DOT" >&6; } 18898else 18899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18900$as_echo "no" >&6; } 18901fi 18902 18903 18904 if test "x$DOT" != "x"; then 18905 HAVE_DOT=yes 18906 fi 18907fi 18908 18909 18910 if test "$HAVE_DOT" = "yes"; then 18911 HAVE_DOT_TRUE= 18912 HAVE_DOT_FALSE='#' 18913else 18914 HAVE_DOT_TRUE='#' 18915 HAVE_DOT_FALSE= 18916fi 18917 18918 if test "$have_doxygen" = yes; then 18919 HAVE_DOXYGEN_TRUE= 18920 HAVE_DOXYGEN_FALSE='#' 18921else 18922 HAVE_DOXYGEN_TRUE='#' 18923 HAVE_DOXYGEN_FALSE= 18924fi 18925 18926 18927 18928# The dot drawing tool is checked by XORG_WITH_DOXYGEN, needed for xcb manual 18929if test x"$HAVE_DOT" = xno; then 18930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - doxygen targets will be skipped" >&5 18931$as_echo "$as_me: WARNING: dot not found - doxygen targets will be skipped" >&2;} 18932fi 18933 18934 18935pkg_failed=no 18936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 18937$as_echo_n "checking for CHECK... " >&6; } 18938 18939if test -n "$CHECK_CFLAGS"; then 18940 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" 18941 elif test -n "$PKG_CONFIG"; then 18942 if test -n "$PKG_CONFIG" && \ 18943 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5 18944 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5 18945 ac_status=$? 18946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18947 test $ac_status = 0; }; then 18948 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null` 18949 test "x$?" != "x0" && pkg_failed=yes 18950else 18951 pkg_failed=yes 18952fi 18953 else 18954 pkg_failed=untried 18955fi 18956if test -n "$CHECK_LIBS"; then 18957 pkg_cv_CHECK_LIBS="$CHECK_LIBS" 18958 elif test -n "$PKG_CONFIG"; then 18959 if test -n "$PKG_CONFIG" && \ 18960 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5 18961 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5 18962 ac_status=$? 18963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18964 test $ac_status = 0; }; then 18965 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null` 18966 test "x$?" != "x0" && pkg_failed=yes 18967else 18968 pkg_failed=yes 18969fi 18970 else 18971 pkg_failed=untried 18972fi 18973 18974 18975 18976if test $pkg_failed = yes; then 18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18978$as_echo "no" >&6; } 18979 18980if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18981 _pkg_short_errors_supported=yes 18982else 18983 _pkg_short_errors_supported=no 18984fi 18985 if test $_pkg_short_errors_supported = yes; then 18986 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1` 18987 else 18988 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1` 18989 fi 18990 # Put the nasty error message in config.log where it belongs 18991 echo "$CHECK_PKG_ERRORS" >&5 18992 18993 HAVE_CHECK=no 18994elif test $pkg_failed = untried; then 18995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18996$as_echo "no" >&6; } 18997 HAVE_CHECK=no 18998else 18999 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS 19000 CHECK_LIBS=$pkg_cv_CHECK_LIBS 19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19002$as_echo "yes" >&6; } 19003 HAVE_CHECK=yes 19004fi 19005 if test x$HAVE_CHECK = xyes; then 19006 HAVE_CHECK_TRUE= 19007 HAVE_CHECK_FALSE='#' 19008else 19009 HAVE_CHECK_TRUE='#' 19010 HAVE_CHECK_FALSE= 19011fi 19012 19013 19014XSLTPROC=no 19015HTML_CHECK_RESULT=no 19016if test x"$HAVE_CHECK" = xyes; then 19017 # Extract the first word of "xsltproc", so it can be a program name with args. 19018set dummy xsltproc; ac_word=$2 19019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19020$as_echo_n "checking for $ac_word... " >&6; } 19021if ${ac_cv_path_XSLTPROC+:} false; then : 19022 $as_echo_n "(cached) " >&6 19023else 19024 case $XSLTPROC in 19025 [\\/]* | ?:[\\/]*) 19026 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 19027 ;; 19028 *) 19029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19030for as_dir in $PATH 19031do 19032 IFS=$as_save_IFS 19033 test -z "$as_dir" && as_dir=. 19034 for ac_exec_ext in '' $ac_executable_extensions; do 19035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19036 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 19037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19038 break 2 19039 fi 19040done 19041 done 19042IFS=$as_save_IFS 19043 19044 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no" 19045 ;; 19046esac 19047fi 19048XSLTPROC=$ac_cv_path_XSLTPROC 19049if test -n "$XSLTPROC"; then 19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 19051$as_echo "$XSLTPROC" >&6; } 19052else 19053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19054$as_echo "no" >&6; } 19055fi 19056 19057 19058 if test x"$XSLTPROC" != xno; then 19059 HTML_CHECK_RESULT=yes 19060 fi 19061fi 19062 19063 19064# Checks for pkg-config packages 19065 19066pkg_failed=no 19067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCBPROTO" >&5 19068$as_echo_n "checking for XCBPROTO... " >&6; } 19069 19070if test -n "$XCBPROTO_CFLAGS"; then 19071 pkg_cv_XCBPROTO_CFLAGS="$XCBPROTO_CFLAGS" 19072 elif test -n "$PKG_CONFIG"; then 19073 if test -n "$PKG_CONFIG" && \ 19074 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.11\""; } >&5 19075 ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.11") 2>&5 19076 ac_status=$? 19077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19078 test $ac_status = 0; }; then 19079 pkg_cv_XCBPROTO_CFLAGS=`$PKG_CONFIG --cflags "xcb-proto >= 1.11" 2>/dev/null` 19080 test "x$?" != "x0" && pkg_failed=yes 19081else 19082 pkg_failed=yes 19083fi 19084 else 19085 pkg_failed=untried 19086fi 19087if test -n "$XCBPROTO_LIBS"; then 19088 pkg_cv_XCBPROTO_LIBS="$XCBPROTO_LIBS" 19089 elif test -n "$PKG_CONFIG"; then 19090 if test -n "$PKG_CONFIG" && \ 19091 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.11\""; } >&5 19092 ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.11") 2>&5 19093 ac_status=$? 19094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19095 test $ac_status = 0; }; then 19096 pkg_cv_XCBPROTO_LIBS=`$PKG_CONFIG --libs "xcb-proto >= 1.11" 2>/dev/null` 19097 test "x$?" != "x0" && pkg_failed=yes 19098else 19099 pkg_failed=yes 19100fi 19101 else 19102 pkg_failed=untried 19103fi 19104 19105 19106 19107if test $pkg_failed = yes; then 19108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19109$as_echo "no" >&6; } 19110 19111if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19112 _pkg_short_errors_supported=yes 19113else 19114 _pkg_short_errors_supported=no 19115fi 19116 if test $_pkg_short_errors_supported = yes; then 19117 XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-proto >= 1.11" 2>&1` 19118 else 19119 XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-proto >= 1.11" 2>&1` 19120 fi 19121 # Put the nasty error message in config.log where it belongs 19122 echo "$XCBPROTO_PKG_ERRORS" >&5 19123 19124 as_fn_error $? "Package requirements (xcb-proto >= 1.11) were not met: 19125 19126$XCBPROTO_PKG_ERRORS 19127 19128Consider adjusting the PKG_CONFIG_PATH environment variable if you 19129installed software in a non-standard prefix. 19130 19131Alternatively, you may set the environment variables XCBPROTO_CFLAGS 19132and XCBPROTO_LIBS to avoid the need to call pkg-config. 19133See the pkg-config man page for more details." "$LINENO" 5 19134elif test $pkg_failed = untried; then 19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19136$as_echo "no" >&6; } 19137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19139as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19140is in your PATH or set the PKG_CONFIG environment variable to the full 19141path to pkg-config. 19142 19143Alternatively, you may set the environment variables XCBPROTO_CFLAGS 19144and XCBPROTO_LIBS to avoid the need to call pkg-config. 19145See the pkg-config man page for more details. 19146 19147To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19148See \`config.log' for more details" "$LINENO" 5; } 19149else 19150 XCBPROTO_CFLAGS=$pkg_cv_XCBPROTO_CFLAGS 19151 XCBPROTO_LIBS=$pkg_cv_XCBPROTO_LIBS 19152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19153$as_echo "yes" >&6; } 19154 19155fi 19156NEEDED="pthread-stubs xau >= 0.99.2" 19157 19158pkg_failed=no 19159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEEDED" >&5 19160$as_echo_n "checking for NEEDED... " >&6; } 19161 19162if test -n "$NEEDED_CFLAGS"; then 19163 pkg_cv_NEEDED_CFLAGS="$NEEDED_CFLAGS" 19164 elif test -n "$PKG_CONFIG"; then 19165 if test -n "$PKG_CONFIG" && \ 19166 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5 19167 ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5 19168 ac_status=$? 19169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19170 test $ac_status = 0; }; then 19171 pkg_cv_NEEDED_CFLAGS=`$PKG_CONFIG --cflags "$NEEDED" 2>/dev/null` 19172 test "x$?" != "x0" && pkg_failed=yes 19173else 19174 pkg_failed=yes 19175fi 19176 else 19177 pkg_failed=untried 19178fi 19179if test -n "$NEEDED_LIBS"; then 19180 pkg_cv_NEEDED_LIBS="$NEEDED_LIBS" 19181 elif test -n "$PKG_CONFIG"; then 19182 if test -n "$PKG_CONFIG" && \ 19183 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5 19184 ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5 19185 ac_status=$? 19186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19187 test $ac_status = 0; }; then 19188 pkg_cv_NEEDED_LIBS=`$PKG_CONFIG --libs "$NEEDED" 2>/dev/null` 19189 test "x$?" != "x0" && pkg_failed=yes 19190else 19191 pkg_failed=yes 19192fi 19193 else 19194 pkg_failed=untried 19195fi 19196 19197 19198 19199if test $pkg_failed = yes; then 19200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19201$as_echo "no" >&6; } 19202 19203if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19204 _pkg_short_errors_supported=yes 19205else 19206 _pkg_short_errors_supported=no 19207fi 19208 if test $_pkg_short_errors_supported = yes; then 19209 NEEDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$NEEDED" 2>&1` 19210 else 19211 NEEDED_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$NEEDED" 2>&1` 19212 fi 19213 # Put the nasty error message in config.log where it belongs 19214 echo "$NEEDED_PKG_ERRORS" >&5 19215 19216 as_fn_error $? "Package requirements ($NEEDED) were not met: 19217 19218$NEEDED_PKG_ERRORS 19219 19220Consider adjusting the PKG_CONFIG_PATH environment variable if you 19221installed software in a non-standard prefix. 19222 19223Alternatively, you may set the environment variables NEEDED_CFLAGS 19224and NEEDED_LIBS to avoid the need to call pkg-config. 19225See the pkg-config man page for more details." "$LINENO" 5 19226elif test $pkg_failed = untried; then 19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19228$as_echo "no" >&6; } 19229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19231as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19232is in your PATH or set the PKG_CONFIG environment variable to the full 19233path to pkg-config. 19234 19235Alternatively, you may set the environment variables NEEDED_CFLAGS 19236and NEEDED_LIBS to avoid the need to call pkg-config. 19237See the pkg-config man page for more details. 19238 19239To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19240See \`config.log' for more details" "$LINENO" 5; } 19241else 19242 NEEDED_CFLAGS=$pkg_cv_NEEDED_CFLAGS 19243 NEEDED_LIBS=$pkg_cv_NEEDED_LIBS 19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19245$as_echo "yes" >&6; } 19246 19247fi 19248 19249have_xdmcp="no" 19250 19251pkg_failed=no 19252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5 19253$as_echo_n "checking for XDMCP... " >&6; } 19254 19255if test -n "$XDMCP_CFLAGS"; then 19256 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS" 19257 elif test -n "$PKG_CONFIG"; then 19258 if test -n "$PKG_CONFIG" && \ 19259 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 19260 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 19261 ac_status=$? 19262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19263 test $ac_status = 0; }; then 19264 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` 19265 test "x$?" != "x0" && pkg_failed=yes 19266else 19267 pkg_failed=yes 19268fi 19269 else 19270 pkg_failed=untried 19271fi 19272if test -n "$XDMCP_LIBS"; then 19273 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS" 19274 elif test -n "$PKG_CONFIG"; then 19275 if test -n "$PKG_CONFIG" && \ 19276 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 19277 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 19278 ac_status=$? 19279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19280 test $ac_status = 0; }; then 19281 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` 19282 test "x$?" != "x0" && pkg_failed=yes 19283else 19284 pkg_failed=yes 19285fi 19286 else 19287 pkg_failed=untried 19288fi 19289 19290 19291 19292if test $pkg_failed = yes; then 19293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19294$as_echo "no" >&6; } 19295 19296if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19297 _pkg_short_errors_supported=yes 19298else 19299 _pkg_short_errors_supported=no 19300fi 19301 if test $_pkg_short_errors_supported = yes; then 19302 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1` 19303 else 19304 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1` 19305 fi 19306 # Put the nasty error message in config.log where it belongs 19307 echo "$XDMCP_PKG_ERRORS" >&5 19308 19309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19310$as_echo "no" >&6; } 19311elif test $pkg_failed = untried; then 19312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19313$as_echo "no" >&6; } 19314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19315$as_echo "no" >&6; } 19316else 19317 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS 19318 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS 19319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19320$as_echo "yes" >&6; } 19321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5 19322$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; } 19323if ${ac_cv_lib_Xdmcp_XdmcpWrap+:} false; then : 19324 $as_echo_n "(cached) " >&6 19325else 19326 ac_check_lib_save_LIBS=$LIBS 19327LIBS="-lXdmcp $XDMCP_LIBS $LIBS" 19328cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19329/* end confdefs.h. */ 19330 19331/* Override any GCC internal prototype to avoid an error. 19332 Use char because int might match the return type of a GCC 19333 builtin and then its argument prototype would still apply. */ 19334#ifdef __cplusplus 19335extern "C" 19336#endif 19337char XdmcpWrap (); 19338int 19339main () 19340{ 19341return XdmcpWrap (); 19342 ; 19343 return 0; 19344} 19345_ACEOF 19346if ac_fn_c_try_link "$LINENO"; then : 19347 ac_cv_lib_Xdmcp_XdmcpWrap=yes 19348else 19349 ac_cv_lib_Xdmcp_XdmcpWrap=no 19350fi 19351rm -f core conftest.err conftest.$ac_objext \ 19352 conftest$ac_exeext conftest.$ac_ext 19353LIBS=$ac_check_lib_save_LIBS 19354fi 19355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5 19356$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; } 19357if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes; then : 19358 19359 19360$as_echo "#define HASXDMAUTH 1" >>confdefs.h 19361 19362 NEEDED="$NEEDED xdmcp" 19363 have_xdmcp="yes" 19364 19365else 19366 19367 XDMCP_CFLAGS= 19368 XDMCP_LIBS= 19369 19370fi 19371 19372fi 19373 19374 19375 19376# Find the xcb-proto protocol descriptions 19377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBINCLUDEDIR" >&5 19378$as_echo_n "checking XCBPROTO_XCBINCLUDEDIR... " >&6; } 19379XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto` 19380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBINCLUDEDIR" >&5 19381$as_echo "$XCBPROTO_XCBINCLUDEDIR" >&6; } 19382 19383 19384# Find the xcb-proto version 19385XCBPROTO_VERSION=`$PKG_CONFIG --modversion xcb-proto` 19386 19387 19388# Find the xcbgen Python package 19389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBPYTHONDIR" >&5 19390$as_echo_n "checking XCBPROTO_XCBPYTHONDIR... " >&6; } 19391XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto` 19392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBPYTHONDIR" >&5 19393$as_echo "$XCBPROTO_XCBPYTHONDIR" >&6; } 19394 19395 19396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 19397$as_echo_n "checking for ANSI C header files... " >&6; } 19398if ${ac_cv_header_stdc+:} false; then : 19399 $as_echo_n "(cached) " >&6 19400else 19401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19402/* end confdefs.h. */ 19403#include <stdlib.h> 19404#include <stdarg.h> 19405#include <string.h> 19406#include <float.h> 19407 19408int 19409main () 19410{ 19411 19412 ; 19413 return 0; 19414} 19415_ACEOF 19416if ac_fn_c_try_compile "$LINENO"; then : 19417 ac_cv_header_stdc=yes 19418else 19419 ac_cv_header_stdc=no 19420fi 19421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19422 19423if test $ac_cv_header_stdc = yes; then 19424 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19426/* end confdefs.h. */ 19427#include <string.h> 19428 19429_ACEOF 19430if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19431 $EGREP "memchr" >/dev/null 2>&1; then : 19432 19433else 19434 ac_cv_header_stdc=no 19435fi 19436rm -f conftest* 19437 19438fi 19439 19440if test $ac_cv_header_stdc = yes; then 19441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19443/* end confdefs.h. */ 19444#include <stdlib.h> 19445 19446_ACEOF 19447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19448 $EGREP "free" >/dev/null 2>&1; then : 19449 19450else 19451 ac_cv_header_stdc=no 19452fi 19453rm -f conftest* 19454 19455fi 19456 19457if test $ac_cv_header_stdc = yes; then 19458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19459 if test "$cross_compiling" = yes; then : 19460 : 19461else 19462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19463/* end confdefs.h. */ 19464#include <ctype.h> 19465#include <stdlib.h> 19466#if ((' ' & 0x0FF) == 0x020) 19467# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19468# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19469#else 19470# define ISLOWER(c) \ 19471 (('a' <= (c) && (c) <= 'i') \ 19472 || ('j' <= (c) && (c) <= 'r') \ 19473 || ('s' <= (c) && (c) <= 'z')) 19474# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19475#endif 19476 19477#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19478int 19479main () 19480{ 19481 int i; 19482 for (i = 0; i < 256; i++) 19483 if (XOR (islower (i), ISLOWER (i)) 19484 || toupper (i) != TOUPPER (i)) 19485 return 2; 19486 return 0; 19487} 19488_ACEOF 19489if ac_fn_c_try_run "$LINENO"; then : 19490 19491else 19492 ac_cv_header_stdc=no 19493fi 19494rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19495 conftest.$ac_objext conftest.beam conftest.$ac_ext 19496fi 19497 19498fi 19499fi 19500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 19501$as_echo "$ac_cv_header_stdc" >&6; } 19502if test $ac_cv_header_stdc = yes; then 19503 19504$as_echo "#define STDC_HEADERS 1" >>confdefs.h 19505 19506fi 19507 19508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 19509$as_echo_n "checking for library containing getaddrinfo... " >&6; } 19510if ${ac_cv_search_getaddrinfo+:} false; then : 19511 $as_echo_n "(cached) " >&6 19512else 19513 ac_func_search_save_LIBS=$LIBS 19514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19515/* end confdefs.h. */ 19516 19517/* Override any GCC internal prototype to avoid an error. 19518 Use char because int might match the return type of a GCC 19519 builtin and then its argument prototype would still apply. */ 19520#ifdef __cplusplus 19521extern "C" 19522#endif 19523char getaddrinfo (); 19524int 19525main () 19526{ 19527return getaddrinfo (); 19528 ; 19529 return 0; 19530} 19531_ACEOF 19532for ac_lib in '' socket; do 19533 if test -z "$ac_lib"; then 19534 ac_res="none required" 19535 else 19536 ac_res=-l$ac_lib 19537 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19538 fi 19539 if ac_fn_c_try_link "$LINENO"; then : 19540 ac_cv_search_getaddrinfo=$ac_res 19541fi 19542rm -f core conftest.err conftest.$ac_objext \ 19543 conftest$ac_exeext 19544 if ${ac_cv_search_getaddrinfo+:} false; then : 19545 break 19546fi 19547done 19548if ${ac_cv_search_getaddrinfo+:} false; then : 19549 19550else 19551 ac_cv_search_getaddrinfo=no 19552fi 19553rm conftest.$ac_ext 19554LIBS=$ac_func_search_save_LIBS 19555fi 19556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 19557$as_echo "$ac_cv_search_getaddrinfo" >&6; } 19558ac_res=$ac_cv_search_getaddrinfo 19559if test "$ac_res" != no; then : 19560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19561 19562fi 19563 19564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5 19565$as_echo_n "checking for library containing connect... " >&6; } 19566if ${ac_cv_search_connect+:} false; then : 19567 $as_echo_n "(cached) " >&6 19568else 19569 ac_func_search_save_LIBS=$LIBS 19570cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19571/* end confdefs.h. */ 19572 19573/* Override any GCC internal prototype to avoid an error. 19574 Use char because int might match the return type of a GCC 19575 builtin and then its argument prototype would still apply. */ 19576#ifdef __cplusplus 19577extern "C" 19578#endif 19579char connect (); 19580int 19581main () 19582{ 19583return connect (); 19584 ; 19585 return 0; 19586} 19587_ACEOF 19588for ac_lib in '' socket; do 19589 if test -z "$ac_lib"; then 19590 ac_res="none required" 19591 else 19592 ac_res=-l$ac_lib 19593 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19594 fi 19595 if ac_fn_c_try_link "$LINENO"; then : 19596 ac_cv_search_connect=$ac_res 19597fi 19598rm -f core conftest.err conftest.$ac_objext \ 19599 conftest$ac_exeext 19600 if ${ac_cv_search_connect+:} false; then : 19601 break 19602fi 19603done 19604if ${ac_cv_search_connect+:} false; then : 19605 19606else 19607 ac_cv_search_connect=no 19608fi 19609rm conftest.$ac_ext 19610LIBS=$ac_func_search_save_LIBS 19611fi 19612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5 19613$as_echo "$ac_cv_search_connect" >&6; } 19614ac_res=$ac_cv_search_connect 19615if test "$ac_res" != no; then : 19616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19617 19618fi 19619 19620 19621# Check whether --enable-sendfds was given. 19622if test "${enable_sendfds+set}" = set; then : 19623 enableval=$enable_sendfds; sendfds=$enableval 19624else 19625 sendfds=auto 19626fi 19627 19628 19629case x$sendfds in 19630xauto) 19631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5 19632$as_echo_n "checking for library containing sendmsg... " >&6; } 19633if ${ac_cv_search_sendmsg+:} false; then : 19634 $as_echo_n "(cached) " >&6 19635else 19636 ac_func_search_save_LIBS=$LIBS 19637cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19638/* end confdefs.h. */ 19639 19640/* Override any GCC internal prototype to avoid an error. 19641 Use char because int might match the return type of a GCC 19642 builtin and then its argument prototype would still apply. */ 19643#ifdef __cplusplus 19644extern "C" 19645#endif 19646char sendmsg (); 19647int 19648main () 19649{ 19650return sendmsg (); 19651 ; 19652 return 0; 19653} 19654_ACEOF 19655for ac_lib in '' socket; do 19656 if test -z "$ac_lib"; then 19657 ac_res="none required" 19658 else 19659 ac_res=-l$ac_lib 19660 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19661 fi 19662 if ac_fn_c_try_link "$LINENO"; then : 19663 ac_cv_search_sendmsg=$ac_res 19664fi 19665rm -f core conftest.err conftest.$ac_objext \ 19666 conftest$ac_exeext 19667 if ${ac_cv_search_sendmsg+:} false; then : 19668 break 19669fi 19670done 19671if ${ac_cv_search_sendmsg+:} false; then : 19672 19673else 19674 ac_cv_search_sendmsg=no 19675fi 19676rm conftest.$ac_ext 19677LIBS=$ac_func_search_save_LIBS 19678fi 19679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5 19680$as_echo "$ac_cv_search_sendmsg" >&6; } 19681ac_res=$ac_cv_search_sendmsg 19682if test "$ac_res" != no; then : 19683 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19684 sendfds="yes" 19685else 19686 sendfds="no" 19687fi 19688 19689 ;; 19690esac 19691 19692# XPG4v2/UNIX95 added msg_control - check to see if we need to define 19693# _XOPEN_SOURCE to get it (such as on Solaris) 19694ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 19695$ac_includes_default 19696#include <sys/socket.h> 19697 19698" 19699if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 19700 19701fi 19702 19703# First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 19704if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 19705 unset ac_cv_member_struct_msghdr_msg_control 19706 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 19707$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 19708 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 19709#define _XOPEN_SOURCE 600 19710$ac_includes_default 19711#include <sys/socket.h> 19712 19713" 19714if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 19715 19716$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 19717 19718 19719fi 19720 19721fi 19722# If that didn't work, fall back to XPG5/UNIX98 with C89 19723if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 19724 unset ac_cv_member_struct_msghdr_msg_control 19725 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 19726$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 19727 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 19728#define _XOPEN_SOURCE 500 19729$ac_includes_default 19730#include <sys/socket.h> 19731 19732" 19733if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 19734 19735$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 19736 19737 19738else 19739 sendfds="no" 19740fi 19741 19742fi 19743 19744case x$sendfds in 19745xyes) 19746 19747$as_echo "#define HAVE_SENDMSG 1" >>confdefs.h 19748 19749 ;; 19750esac 19751 19752have_win32="no" 19753lt_enable_auto_import="" 19754case $host_os in 19755mingw*) 19756 have_win32="yes" 19757 lt_enable_auto_import="-Wl,--enable-auto-import" 19758 ;; 19759linux*) 19760 19761$as_echo "#define HAVE_ABSTRACT_SOCKETS 1" >>confdefs.h 19762 19763 ;; 19764esac 19765 19766 19767 if test "x${have_win32}" = "xyes"; then 19768 XCB_HAVE_WIN32_TRUE= 19769 XCB_HAVE_WIN32_FALSE='#' 19770else 19771 XCB_HAVE_WIN32_TRUE='#' 19772 XCB_HAVE_WIN32_FALSE= 19773fi 19774 19775 19776 19777# Check whether --with-queue-size was given. 19778if test "${with_queue_size+set}" = set; then : 19779 withval=$with_queue_size; xcb_queue_buffer_size="$withval" 19780else 19781 xcb_queue_buffer_size=16384 19782fi 19783 19784 19785cat >>confdefs.h <<_ACEOF 19786#define XCB_QUEUE_BUFFER_SIZE $xcb_queue_buffer_size 19787_ACEOF 19788 19789 19790ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " #include <sys/types.h> 19791 #include <sys/un.h> 19792 19793" 19794if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then : 19795 19796$as_echo "#define HAVE_SOCKADDR_SUN_LEN 1" >>confdefs.h 19797 19798fi 19799 19800 19801for ac_header in tsol/label.h 19802do : 19803 ac_fn_c_check_header_mongrel "$LINENO" "tsol/label.h" "ac_cv_header_tsol_label_h" "$ac_includes_default" 19804if test "x$ac_cv_header_tsol_label_h" = xyes; then : 19805 cat >>confdefs.h <<_ACEOF 19806#define HAVE_TSOL_LABEL_H 1 19807_ACEOF 19808 19809fi 19810 19811done 19812 19813for ac_func in is_system_labeled 19814do : 19815 ac_fn_c_check_func "$LINENO" "is_system_labeled" "ac_cv_func_is_system_labeled" 19816if test "x$ac_cv_func_is_system_labeled" = xyes; then : 19817 cat >>confdefs.h <<_ACEOF 19818#define HAVE_IS_SYSTEM_LABELED 1 19819_ACEOF 19820 19821fi 19822done 19823 19824 19825ac_fn_c_check_decl "$LINENO" "IOV_MAX" "ac_cv_have_decl_IOV_MAX" "#include <limits.h> 19826" 19827if test "x$ac_cv_have_decl_IOV_MAX" = xyes; then : 19828 19829else 19830 ac_fn_c_check_decl "$LINENO" "UIO_MAXIOV" "ac_cv_have_decl_UIO_MAXIOV" "#include <sys/uio.h> 19831" 19832if test "x$ac_cv_have_decl_UIO_MAXIOV" = xyes; then : 19833 $as_echo "#define IOV_MAX UIO_MAXIOV" >>confdefs.h 19834 19835else 19836 19837$as_echo "#define IOV_MAX 16" >>confdefs.h 19838 19839fi 19840 19841fi 19842 19843 19844xcbincludedir='${includedir}/xcb' 19845 19846 19847 19848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports symbol visibility" >&5 19849$as_echo_n "checking whether ${CC} supports symbol visibility... " >&6; } 19850 19851save_CFLAGS=${CFLAGS} 19852CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden" 19853cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19854/* end confdefs.h. */ 19855 19856#pragma GCC visibility push(hidden) 19857extern void f(int); 19858#pragma GCC visibility pop 19859 19860int 19861main () 19862{ 19863 19864 19865 ; 19866 return 0; 19867} 19868_ACEOF 19869if ac_fn_c_try_compile "$LINENO"; then : 19870 19871$as_echo "#define GCC_HAS_VISIBILITY /**/" >>confdefs.h 19872 19873 : 19874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19875$as_echo "yes" >&6; } 19876else 19877 : 19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19879$as_echo "no" >&6; } 19880fi 19881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19882 19883CFLAGS=${save_CFLAGS} 19884 19885 19886ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 19887if test "x$ac_cv_func_getaddrinfo" = xyes; then : 19888 19889$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 19890 19891fi 19892 19893 19894case $host_os in 19895 # darwin through Snow Leopard has poll() but can't be used to poll character devices. 19896 darwin[789]*|darwin10*) ;; 19897 darwin*) 19898 _ac_xorg_macosx_version_min="" 19899 if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then 19900 _ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed 's/^.*-mmacosx-version-min=\([^ ]*\).*$/\1/'` 19901 else 19902 _ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET 19903 fi 19904 case $_ac_xorg_macosx_version_min in 19905 10.[0123456]|10.[0123456].*) ;; 19906 *) 19907 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 19908if test "x$ac_cv_func_poll" = xyes; then : 19909 19910$as_echo "#define USE_POLL 1" >>confdefs.h 19911 19912fi 19913 19914 ;; 19915 esac 19916 unset _ac_xorg_macosx_version_min 19917 ;; 19918 *) 19919 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 19920if test "x$ac_cv_func_poll" = xyes; then : 19921 19922$as_echo "#define USE_POLL 1" >>confdefs.h 19923 19924fi 19925 19926 ;; 19927esac 19928 19929 19930 19931# Check whether --enable-composite was given. 19932if test "${enable_composite+set}" = set; then : 19933 enableval=$enable_composite; BUILD_COMPOSITE=$enableval 19934else 19935 BUILD_COMPOSITE="yes" 19936fi 19937 19938 19939 if test "x$BUILD_COMPOSITE" = "xyes"; then 19940 BUILD_COMPOSITE_TRUE= 19941 BUILD_COMPOSITE_FALSE='#' 19942else 19943 BUILD_COMPOSITE_TRUE='#' 19944 BUILD_COMPOSITE_FALSE= 19945fi 19946 19947 19948 19949 19950# Check whether --enable-damage was given. 19951if test "${enable_damage+set}" = set; then : 19952 enableval=$enable_damage; BUILD_DAMAGE=$enableval 19953else 19954 BUILD_DAMAGE="yes" 19955fi 19956 19957 19958 if test "x$BUILD_DAMAGE" = "xyes"; then 19959 BUILD_DAMAGE_TRUE= 19960 BUILD_DAMAGE_FALSE='#' 19961else 19962 BUILD_DAMAGE_TRUE='#' 19963 BUILD_DAMAGE_FALSE= 19964fi 19965 19966 19967 19968 19969# Check whether --enable-dpms was given. 19970if test "${enable_dpms+set}" = set; then : 19971 enableval=$enable_dpms; BUILD_DPMS=$enableval 19972else 19973 BUILD_DPMS="yes" 19974fi 19975 19976 19977 if test "x$BUILD_DPMS" = "xyes"; then 19978 BUILD_DPMS_TRUE= 19979 BUILD_DPMS_FALSE='#' 19980else 19981 BUILD_DPMS_TRUE='#' 19982 BUILD_DPMS_FALSE= 19983fi 19984 19985 19986 19987 19988# Check whether --enable-dri2 was given. 19989if test "${enable_dri2+set}" = set; then : 19990 enableval=$enable_dri2; BUILD_DRI2=$enableval 19991else 19992 BUILD_DRI2="yes" 19993fi 19994 19995 19996 if test "x$BUILD_DRI2" = "xyes"; then 19997 BUILD_DRI2_TRUE= 19998 BUILD_DRI2_FALSE='#' 19999else 20000 BUILD_DRI2_TRUE='#' 20001 BUILD_DRI2_FALSE= 20002fi 20003 20004 20005 20006 20007# Check whether --enable-dri3 was given. 20008if test "${enable_dri3+set}" = set; then : 20009 enableval=$enable_dri3; BUILD_DRI3=$enableval 20010else 20011 BUILD_DRI3="$sendfds" 20012fi 20013 20014 20015 if test "x$BUILD_DRI3" = "xyes"; then 20016 BUILD_DRI3_TRUE= 20017 BUILD_DRI3_FALSE='#' 20018else 20019 BUILD_DRI3_TRUE='#' 20020 BUILD_DRI3_FALSE= 20021fi 20022 20023 20024 20025 20026# Check whether --enable-glx was given. 20027if test "${enable_glx+set}" = set; then : 20028 enableval=$enable_glx; BUILD_GLX=$enableval 20029else 20030 BUILD_GLX="yes" 20031fi 20032 20033 20034 if test "x$BUILD_GLX" = "xyes"; then 20035 BUILD_GLX_TRUE= 20036 BUILD_GLX_FALSE='#' 20037else 20038 BUILD_GLX_TRUE='#' 20039 BUILD_GLX_FALSE= 20040fi 20041 20042 20043 20044 20045# Check whether --enable-present was given. 20046if test "${enable_present+set}" = set; then : 20047 enableval=$enable_present; BUILD_PRESENT=$enableval 20048else 20049 BUILD_PRESENT="yes" 20050fi 20051 20052 20053 if test "x$BUILD_PRESENT" = "xyes"; then 20054 BUILD_PRESENT_TRUE= 20055 BUILD_PRESENT_FALSE='#' 20056else 20057 BUILD_PRESENT_TRUE='#' 20058 BUILD_PRESENT_FALSE= 20059fi 20060 20061 20062 20063 20064# Check whether --enable-randr was given. 20065if test "${enable_randr+set}" = set; then : 20066 enableval=$enable_randr; BUILD_RANDR=$enableval 20067else 20068 BUILD_RANDR="yes" 20069fi 20070 20071 20072 if test "x$BUILD_RANDR" = "xyes"; then 20073 BUILD_RANDR_TRUE= 20074 BUILD_RANDR_FALSE='#' 20075else 20076 BUILD_RANDR_TRUE='#' 20077 BUILD_RANDR_FALSE= 20078fi 20079 20080 20081 20082 20083# Check whether --enable-record was given. 20084if test "${enable_record+set}" = set; then : 20085 enableval=$enable_record; BUILD_RECORD=$enableval 20086else 20087 BUILD_RECORD="yes" 20088fi 20089 20090 20091 if test "x$BUILD_RECORD" = "xyes"; then 20092 BUILD_RECORD_TRUE= 20093 BUILD_RECORD_FALSE='#' 20094else 20095 BUILD_RECORD_TRUE='#' 20096 BUILD_RECORD_FALSE= 20097fi 20098 20099 20100 20101 20102# Check whether --enable-render was given. 20103if test "${enable_render+set}" = set; then : 20104 enableval=$enable_render; BUILD_RENDER=$enableval 20105else 20106 BUILD_RENDER="yes" 20107fi 20108 20109 20110 if test "x$BUILD_RENDER" = "xyes"; then 20111 BUILD_RENDER_TRUE= 20112 BUILD_RENDER_FALSE='#' 20113else 20114 BUILD_RENDER_TRUE='#' 20115 BUILD_RENDER_FALSE= 20116fi 20117 20118 20119 20120 20121# Check whether --enable-resource was given. 20122if test "${enable_resource+set}" = set; then : 20123 enableval=$enable_resource; BUILD_RESOURCE=$enableval 20124else 20125 BUILD_RESOURCE="yes" 20126fi 20127 20128 20129 if test "x$BUILD_RESOURCE" = "xyes"; then 20130 BUILD_RESOURCE_TRUE= 20131 BUILD_RESOURCE_FALSE='#' 20132else 20133 BUILD_RESOURCE_TRUE='#' 20134 BUILD_RESOURCE_FALSE= 20135fi 20136 20137 20138 20139 20140# Check whether --enable-screensaver was given. 20141if test "${enable_screensaver+set}" = set; then : 20142 enableval=$enable_screensaver; BUILD_SCREENSAVER=$enableval 20143else 20144 BUILD_SCREENSAVER="yes" 20145fi 20146 20147 20148 if test "x$BUILD_SCREENSAVER" = "xyes"; then 20149 BUILD_SCREENSAVER_TRUE= 20150 BUILD_SCREENSAVER_FALSE='#' 20151else 20152 BUILD_SCREENSAVER_TRUE='#' 20153 BUILD_SCREENSAVER_FALSE= 20154fi 20155 20156 20157 20158 20159# Check whether --enable-shape was given. 20160if test "${enable_shape+set}" = set; then : 20161 enableval=$enable_shape; BUILD_SHAPE=$enableval 20162else 20163 BUILD_SHAPE="yes" 20164fi 20165 20166 20167 if test "x$BUILD_SHAPE" = "xyes"; then 20168 BUILD_SHAPE_TRUE= 20169 BUILD_SHAPE_FALSE='#' 20170else 20171 BUILD_SHAPE_TRUE='#' 20172 BUILD_SHAPE_FALSE= 20173fi 20174 20175 20176 20177 20178# Check whether --enable-shm was given. 20179if test "${enable_shm+set}" = set; then : 20180 enableval=$enable_shm; BUILD_SHM=$enableval 20181else 20182 BUILD_SHM="yes" 20183fi 20184 20185 20186 if test "x$BUILD_SHM" = "xyes"; then 20187 BUILD_SHM_TRUE= 20188 BUILD_SHM_FALSE='#' 20189else 20190 BUILD_SHM_TRUE='#' 20191 BUILD_SHM_FALSE= 20192fi 20193 20194 20195 20196 20197# Check whether --enable-sync was given. 20198if test "${enable_sync+set}" = set; then : 20199 enableval=$enable_sync; BUILD_SYNC=$enableval 20200else 20201 BUILD_SYNC="yes" 20202fi 20203 20204 20205 if test "x$BUILD_SYNC" = "xyes"; then 20206 BUILD_SYNC_TRUE= 20207 BUILD_SYNC_FALSE='#' 20208else 20209 BUILD_SYNC_TRUE='#' 20210 BUILD_SYNC_FALSE= 20211fi 20212 20213 20214 20215 20216# Check whether --enable-xevie was given. 20217if test "${enable_xevie+set}" = set; then : 20218 enableval=$enable_xevie; BUILD_XEVIE=$enableval 20219else 20220 BUILD_XEVIE="yes" 20221fi 20222 20223 20224 if test "x$BUILD_XEVIE" = "xyes"; then 20225 BUILD_XEVIE_TRUE= 20226 BUILD_XEVIE_FALSE='#' 20227else 20228 BUILD_XEVIE_TRUE='#' 20229 BUILD_XEVIE_FALSE= 20230fi 20231 20232 20233 20234 20235# Check whether --enable-xfixes was given. 20236if test "${enable_xfixes+set}" = set; then : 20237 enableval=$enable_xfixes; BUILD_XFIXES=$enableval 20238else 20239 BUILD_XFIXES="yes" 20240fi 20241 20242 20243 if test "x$BUILD_XFIXES" = "xyes"; then 20244 BUILD_XFIXES_TRUE= 20245 BUILD_XFIXES_FALSE='#' 20246else 20247 BUILD_XFIXES_TRUE='#' 20248 BUILD_XFIXES_FALSE= 20249fi 20250 20251 20252 20253 20254# Check whether --enable-xfree86-dri was given. 20255if test "${enable_xfree86_dri+set}" = set; then : 20256 enableval=$enable_xfree86_dri; BUILD_XFREE86_DRI=$enableval 20257else 20258 BUILD_XFREE86_DRI="yes" 20259fi 20260 20261 20262 if test "x$BUILD_XFREE86_DRI" = "xyes"; then 20263 BUILD_XFREE86_DRI_TRUE= 20264 BUILD_XFREE86_DRI_FALSE='#' 20265else 20266 BUILD_XFREE86_DRI_TRUE='#' 20267 BUILD_XFREE86_DRI_FALSE= 20268fi 20269 20270 20271 20272 20273# Check whether --enable-xinerama was given. 20274if test "${enable_xinerama+set}" = set; then : 20275 enableval=$enable_xinerama; BUILD_XINERAMA=$enableval 20276else 20277 BUILD_XINERAMA="yes" 20278fi 20279 20280 20281 if test "x$BUILD_XINERAMA" = "xyes"; then 20282 BUILD_XINERAMA_TRUE= 20283 BUILD_XINERAMA_FALSE='#' 20284else 20285 BUILD_XINERAMA_TRUE='#' 20286 BUILD_XINERAMA_FALSE= 20287fi 20288 20289 20290 20291 20292# Check whether --enable-xinput was given. 20293if test "${enable_xinput+set}" = set; then : 20294 enableval=$enable_xinput; BUILD_XINPUT=$enableval 20295else 20296 BUILD_XINPUT="no" 20297fi 20298 20299 20300 if test "x$BUILD_XINPUT" = "xyes"; then 20301 BUILD_XINPUT_TRUE= 20302 BUILD_XINPUT_FALSE='#' 20303else 20304 BUILD_XINPUT_TRUE='#' 20305 BUILD_XINPUT_FALSE= 20306fi 20307 20308 20309 20310 20311# Check whether --enable-xkb was given. 20312if test "${enable_xkb+set}" = set; then : 20313 enableval=$enable_xkb; BUILD_XKB=$enableval 20314else 20315 BUILD_XKB="yes" 20316fi 20317 20318 20319 if test "x$BUILD_XKB" = "xyes"; then 20320 BUILD_XKB_TRUE= 20321 BUILD_XKB_FALSE='#' 20322else 20323 BUILD_XKB_TRUE='#' 20324 BUILD_XKB_FALSE= 20325fi 20326 20327 20328 20329 20330# Check whether --enable-xprint was given. 20331if test "${enable_xprint+set}" = set; then : 20332 enableval=$enable_xprint; BUILD_XPRINT=$enableval 20333else 20334 BUILD_XPRINT="yes" 20335fi 20336 20337 20338 if test "x$BUILD_XPRINT" = "xyes"; then 20339 BUILD_XPRINT_TRUE= 20340 BUILD_XPRINT_FALSE='#' 20341else 20342 BUILD_XPRINT_TRUE='#' 20343 BUILD_XPRINT_FALSE= 20344fi 20345 20346 20347 20348 20349# Check whether --enable-selinux was given. 20350if test "${enable_selinux+set}" = set; then : 20351 enableval=$enable_selinux; BUILD_SELINUX=$enableval 20352else 20353 BUILD_SELINUX="no" 20354fi 20355 20356 20357 if test "x$BUILD_SELINUX" = "xyes"; then 20358 BUILD_SELINUX_TRUE= 20359 BUILD_SELINUX_FALSE='#' 20360else 20361 BUILD_SELINUX_TRUE='#' 20362 BUILD_SELINUX_FALSE= 20363fi 20364 20365 20366 20367 20368# Check whether --enable-xtest was given. 20369if test "${enable_xtest+set}" = set; then : 20370 enableval=$enable_xtest; BUILD_XTEST=$enableval 20371else 20372 BUILD_XTEST="yes" 20373fi 20374 20375 20376 if test "x$BUILD_XTEST" = "xyes"; then 20377 BUILD_XTEST_TRUE= 20378 BUILD_XTEST_FALSE='#' 20379else 20380 BUILD_XTEST_TRUE='#' 20381 BUILD_XTEST_FALSE= 20382fi 20383 20384 20385 20386 20387# Check whether --enable-xv was given. 20388if test "${enable_xv+set}" = set; then : 20389 enableval=$enable_xv; BUILD_XV=$enableval 20390else 20391 BUILD_XV="yes" 20392fi 20393 20394 20395 if test "x$BUILD_XV" = "xyes"; then 20396 BUILD_XV_TRUE= 20397 BUILD_XV_FALSE='#' 20398else 20399 BUILD_XV_TRUE='#' 20400 BUILD_XV_FALSE= 20401fi 20402 20403 20404 20405 20406# Check whether --enable-xvmc was given. 20407if test "${enable_xvmc+set}" = set; then : 20408 enableval=$enable_xvmc; BUILD_XVMC=$enableval 20409else 20410 BUILD_XVMC="yes" 20411fi 20412 20413 20414 if test "x$BUILD_XVMC" = "xyes"; then 20415 BUILD_XVMC_TRUE= 20416 BUILD_XVMC_FALSE='#' 20417else 20418 BUILD_XVMC_TRUE='#' 20419 BUILD_XVMC_FALSE= 20420fi 20421 20422 20423 20424 20425# Check whether --with-launchd was given. 20426if test "${with_launchd+set}" = set; then : 20427 withval=$with_launchd; LAUNCHD=$withval 20428else 20429 LAUNCHD=auto 20430fi 20431 20432if test "x$LAUNCHD" = xauto; then 20433 unset LAUNCHD 20434 # Extract the first word of "launchd", so it can be a program name with args. 20435set dummy launchd; ac_word=$2 20436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20437$as_echo_n "checking for $ac_word... " >&6; } 20438if ${ac_cv_prog_LAUNCHD+:} false; then : 20439 $as_echo_n "(cached) " >&6 20440else 20441 if test -n "$LAUNCHD"; then 20442 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 20443else 20444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20445for as_dir in $PATH$PATH_SEPARATOR/sbin 20446do 20447 IFS=$as_save_IFS 20448 test -z "$as_dir" && as_dir=. 20449 for ac_exec_ext in '' $ac_executable_extensions; do 20450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20451 ac_cv_prog_LAUNCHD="yes" 20452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20453 break 2 20454 fi 20455done 20456 done 20457IFS=$as_save_IFS 20458 20459 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 20460fi 20461fi 20462LAUNCHD=$ac_cv_prog_LAUNCHD 20463if test -n "$LAUNCHD"; then 20464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 20465$as_echo "$LAUNCHD" >&6; } 20466else 20467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20468$as_echo "no" >&6; } 20469fi 20470 20471 20472fi 20473 20474if test "x$LAUNCHD" = xyes ; then 20475 20476$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h 20477 20478fi 20479 20480ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile src/Makefile tests/Makefile" 20481 20482 20483ac_config_files="$ac_config_files xcb.pc xcb-composite.pc xcb-damage.pc xcb-dpms.pc xcb-dri2.pc xcb-dri3.pc xcb-glx.pc xcb-present.pc xcb-randr.pc xcb-record.pc xcb-render.pc xcb-res.pc xcb-screensaver.pc xcb-shape.pc xcb-shm.pc xcb-sync.pc xcb-xevie.pc xcb-xf86dri.pc xcb-xfixes.pc xcb-xinerama.pc xcb-xinput.pc xcb-xkb.pc xcb-xprint.pc xcb-xselinux.pc xcb-xtest.pc xcb-xv.pc xcb-xvmc.pc" 20484 20485 20486ac_config_files="$ac_config_files doc/xcb.doxygen" 20487 20488 20489cat >confcache <<\_ACEOF 20490# This file is a shell script that caches the results of configure 20491# tests run on this system so they can be shared between configure 20492# scripts and configure runs, see configure's option --config-cache. 20493# It is not useful on other systems. If it contains results you don't 20494# want to keep, you may remove or edit it. 20495# 20496# config.status only pays attention to the cache file if you give it 20497# the --recheck option to rerun configure. 20498# 20499# `ac_cv_env_foo' variables (set or unset) will be overridden when 20500# loading this file, other *unset* `ac_cv_foo' will be assigned the 20501# following values. 20502 20503_ACEOF 20504 20505# The following way of writing the cache mishandles newlines in values, 20506# but we know of no workaround that is simple, portable, and efficient. 20507# So, we kill variables containing newlines. 20508# Ultrix sh set writes to stderr and can't be redirected directly, 20509# and sets the high bit in the cache file unless we assign to the vars. 20510( 20511 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20512 eval ac_val=\$$ac_var 20513 case $ac_val in #( 20514 *${as_nl}*) 20515 case $ac_var in #( 20516 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20517$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20518 esac 20519 case $ac_var in #( 20520 _ | IFS | as_nl) ;; #( 20521 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20522 *) { eval $ac_var=; unset $ac_var;} ;; 20523 esac ;; 20524 esac 20525 done 20526 20527 (set) 2>&1 | 20528 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20529 *${as_nl}ac_space=\ *) 20530 # `set' does not quote correctly, so add quotes: double-quote 20531 # substitution turns \\\\ into \\, and sed turns \\ into \. 20532 sed -n \ 20533 "s/'/'\\\\''/g; 20534 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20535 ;; #( 20536 *) 20537 # `set' quotes correctly as required by POSIX, so do not add quotes. 20538 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20539 ;; 20540 esac | 20541 sort 20542) | 20543 sed ' 20544 /^ac_cv_env_/b end 20545 t clear 20546 :clear 20547 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20548 t end 20549 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20550 :end' >>confcache 20551if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20552 if test -w "$cache_file"; then 20553 if test "x$cache_file" != "x/dev/null"; then 20554 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20555$as_echo "$as_me: updating cache $cache_file" >&6;} 20556 if test ! -f "$cache_file" || test -h "$cache_file"; then 20557 cat confcache >"$cache_file" 20558 else 20559 case $cache_file in #( 20560 */* | ?:*) 20561 mv -f confcache "$cache_file"$$ && 20562 mv -f "$cache_file"$$ "$cache_file" ;; #( 20563 *) 20564 mv -f confcache "$cache_file" ;; 20565 esac 20566 fi 20567 fi 20568 else 20569 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20570$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20571 fi 20572fi 20573rm -f confcache 20574 20575test "x$prefix" = xNONE && prefix=$ac_default_prefix 20576# Let make expand exec_prefix. 20577test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20578 20579DEFS=-DHAVE_CONFIG_H 20580 20581ac_libobjs= 20582ac_ltlibobjs= 20583U= 20584for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20585 # 1. Remove the extension, and $U if already installed. 20586 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20587 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20588 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20589 # will be set to the directory where LIBOBJS objects are built. 20590 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20591 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20592done 20593LIBOBJS=$ac_libobjs 20594 20595LTLIBOBJS=$ac_ltlibobjs 20596 20597 20598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20599$as_echo_n "checking that generated files are newer than configure... " >&6; } 20600 if test -n "$am_sleep_pid"; then 20601 # Hide warnings about reused PIDs. 20602 wait $am_sleep_pid 2>/dev/null 20603 fi 20604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20605$as_echo "done" >&6; } 20606 if test -n "$EXEEXT"; then 20607 am__EXEEXT_TRUE= 20608 am__EXEEXT_FALSE='#' 20609else 20610 am__EXEEXT_TRUE='#' 20611 am__EXEEXT_FALSE= 20612fi 20613 20614if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20615 as_fn_error $? "conditional \"AMDEP\" was never defined. 20616Usually this means the macro was only invoked conditionally." "$LINENO" 5 20617fi 20618if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20619 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20620Usually this means the macro was only invoked conditionally." "$LINENO" 5 20621fi 20622if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 20623 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 20624Usually this means the macro was only invoked conditionally." "$LINENO" 5 20625fi 20626if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then 20627 as_fn_error $? "conditional \"HAVE_DOT\" was never defined. 20628Usually this means the macro was only invoked conditionally." "$LINENO" 5 20629fi 20630if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 20631 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 20632Usually this means the macro was only invoked conditionally." "$LINENO" 5 20633fi 20634if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then 20635 as_fn_error $? "conditional \"HAVE_CHECK\" was never defined. 20636Usually this means the macro was only invoked conditionally." "$LINENO" 5 20637fi 20638if test -z "${XCB_HAVE_WIN32_TRUE}" && test -z "${XCB_HAVE_WIN32_FALSE}"; then 20639 as_fn_error $? "conditional \"XCB_HAVE_WIN32\" was never defined. 20640Usually this means the macro was only invoked conditionally." "$LINENO" 5 20641fi 20642if test -z "${BUILD_COMPOSITE_TRUE}" && test -z "${BUILD_COMPOSITE_FALSE}"; then 20643 as_fn_error $? "conditional \"BUILD_COMPOSITE\" was never defined. 20644Usually this means the macro was only invoked conditionally." "$LINENO" 5 20645fi 20646if test -z "${BUILD_DAMAGE_TRUE}" && test -z "${BUILD_DAMAGE_FALSE}"; then 20647 as_fn_error $? "conditional \"BUILD_DAMAGE\" was never defined. 20648Usually this means the macro was only invoked conditionally." "$LINENO" 5 20649fi 20650if test -z "${BUILD_DPMS_TRUE}" && test -z "${BUILD_DPMS_FALSE}"; then 20651 as_fn_error $? "conditional \"BUILD_DPMS\" was never defined. 20652Usually this means the macro was only invoked conditionally." "$LINENO" 5 20653fi 20654if test -z "${BUILD_DRI2_TRUE}" && test -z "${BUILD_DRI2_FALSE}"; then 20655 as_fn_error $? "conditional \"BUILD_DRI2\" was never defined. 20656Usually this means the macro was only invoked conditionally." "$LINENO" 5 20657fi 20658if test -z "${BUILD_DRI3_TRUE}" && test -z "${BUILD_DRI3_FALSE}"; then 20659 as_fn_error $? "conditional \"BUILD_DRI3\" was never defined. 20660Usually this means the macro was only invoked conditionally." "$LINENO" 5 20661fi 20662if test -z "${BUILD_GLX_TRUE}" && test -z "${BUILD_GLX_FALSE}"; then 20663 as_fn_error $? "conditional \"BUILD_GLX\" was never defined. 20664Usually this means the macro was only invoked conditionally." "$LINENO" 5 20665fi 20666if test -z "${BUILD_PRESENT_TRUE}" && test -z "${BUILD_PRESENT_FALSE}"; then 20667 as_fn_error $? "conditional \"BUILD_PRESENT\" was never defined. 20668Usually this means the macro was only invoked conditionally." "$LINENO" 5 20669fi 20670if test -z "${BUILD_RANDR_TRUE}" && test -z "${BUILD_RANDR_FALSE}"; then 20671 as_fn_error $? "conditional \"BUILD_RANDR\" was never defined. 20672Usually this means the macro was only invoked conditionally." "$LINENO" 5 20673fi 20674if test -z "${BUILD_RECORD_TRUE}" && test -z "${BUILD_RECORD_FALSE}"; then 20675 as_fn_error $? "conditional \"BUILD_RECORD\" was never defined. 20676Usually this means the macro was only invoked conditionally." "$LINENO" 5 20677fi 20678if test -z "${BUILD_RENDER_TRUE}" && test -z "${BUILD_RENDER_FALSE}"; then 20679 as_fn_error $? "conditional \"BUILD_RENDER\" was never defined. 20680Usually this means the macro was only invoked conditionally." "$LINENO" 5 20681fi 20682if test -z "${BUILD_RESOURCE_TRUE}" && test -z "${BUILD_RESOURCE_FALSE}"; then 20683 as_fn_error $? "conditional \"BUILD_RESOURCE\" was never defined. 20684Usually this means the macro was only invoked conditionally." "$LINENO" 5 20685fi 20686if test -z "${BUILD_SCREENSAVER_TRUE}" && test -z "${BUILD_SCREENSAVER_FALSE}"; then 20687 as_fn_error $? "conditional \"BUILD_SCREENSAVER\" was never defined. 20688Usually this means the macro was only invoked conditionally." "$LINENO" 5 20689fi 20690if test -z "${BUILD_SHAPE_TRUE}" && test -z "${BUILD_SHAPE_FALSE}"; then 20691 as_fn_error $? "conditional \"BUILD_SHAPE\" was never defined. 20692Usually this means the macro was only invoked conditionally." "$LINENO" 5 20693fi 20694if test -z "${BUILD_SHM_TRUE}" && test -z "${BUILD_SHM_FALSE}"; then 20695 as_fn_error $? "conditional \"BUILD_SHM\" was never defined. 20696Usually this means the macro was only invoked conditionally." "$LINENO" 5 20697fi 20698if test -z "${BUILD_SYNC_TRUE}" && test -z "${BUILD_SYNC_FALSE}"; then 20699 as_fn_error $? "conditional \"BUILD_SYNC\" was never defined. 20700Usually this means the macro was only invoked conditionally." "$LINENO" 5 20701fi 20702if test -z "${BUILD_XEVIE_TRUE}" && test -z "${BUILD_XEVIE_FALSE}"; then 20703 as_fn_error $? "conditional \"BUILD_XEVIE\" was never defined. 20704Usually this means the macro was only invoked conditionally." "$LINENO" 5 20705fi 20706if test -z "${BUILD_XFIXES_TRUE}" && test -z "${BUILD_XFIXES_FALSE}"; then 20707 as_fn_error $? "conditional \"BUILD_XFIXES\" was never defined. 20708Usually this means the macro was only invoked conditionally." "$LINENO" 5 20709fi 20710if test -z "${BUILD_XFREE86_DRI_TRUE}" && test -z "${BUILD_XFREE86_DRI_FALSE}"; then 20711 as_fn_error $? "conditional \"BUILD_XFREE86_DRI\" was never defined. 20712Usually this means the macro was only invoked conditionally." "$LINENO" 5 20713fi 20714if test -z "${BUILD_XINERAMA_TRUE}" && test -z "${BUILD_XINERAMA_FALSE}"; then 20715 as_fn_error $? "conditional \"BUILD_XINERAMA\" was never defined. 20716Usually this means the macro was only invoked conditionally." "$LINENO" 5 20717fi 20718if test -z "${BUILD_XINPUT_TRUE}" && test -z "${BUILD_XINPUT_FALSE}"; then 20719 as_fn_error $? "conditional \"BUILD_XINPUT\" was never defined. 20720Usually this means the macro was only invoked conditionally." "$LINENO" 5 20721fi 20722if test -z "${BUILD_XKB_TRUE}" && test -z "${BUILD_XKB_FALSE}"; then 20723 as_fn_error $? "conditional \"BUILD_XKB\" was never defined. 20724Usually this means the macro was only invoked conditionally." "$LINENO" 5 20725fi 20726if test -z "${BUILD_XPRINT_TRUE}" && test -z "${BUILD_XPRINT_FALSE}"; then 20727 as_fn_error $? "conditional \"BUILD_XPRINT\" was never defined. 20728Usually this means the macro was only invoked conditionally." "$LINENO" 5 20729fi 20730if test -z "${BUILD_SELINUX_TRUE}" && test -z "${BUILD_SELINUX_FALSE}"; then 20731 as_fn_error $? "conditional \"BUILD_SELINUX\" was never defined. 20732Usually this means the macro was only invoked conditionally." "$LINENO" 5 20733fi 20734if test -z "${BUILD_XTEST_TRUE}" && test -z "${BUILD_XTEST_FALSE}"; then 20735 as_fn_error $? "conditional \"BUILD_XTEST\" was never defined. 20736Usually this means the macro was only invoked conditionally." "$LINENO" 5 20737fi 20738if test -z "${BUILD_XV_TRUE}" && test -z "${BUILD_XV_FALSE}"; then 20739 as_fn_error $? "conditional \"BUILD_XV\" was never defined. 20740Usually this means the macro was only invoked conditionally." "$LINENO" 5 20741fi 20742if test -z "${BUILD_XVMC_TRUE}" && test -z "${BUILD_XVMC_FALSE}"; then 20743 as_fn_error $? "conditional \"BUILD_XVMC\" was never defined. 20744Usually this means the macro was only invoked conditionally." "$LINENO" 5 20745fi 20746 20747: "${CONFIG_STATUS=./config.status}" 20748ac_write_fail=0 20749ac_clean_files_save=$ac_clean_files 20750ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20751{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20752$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20753as_write_fail=0 20754cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20755#! $SHELL 20756# Generated by $as_me. 20757# Run this file to recreate the current configuration. 20758# Compiler output produced by configure, useful for debugging 20759# configure, is in config.log if it exists. 20760 20761debug=false 20762ac_cs_recheck=false 20763ac_cs_silent=false 20764 20765SHELL=\${CONFIG_SHELL-$SHELL} 20766export SHELL 20767_ASEOF 20768cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20769## -------------------- ## 20770## M4sh Initialization. ## 20771## -------------------- ## 20772 20773# Be more Bourne compatible 20774DUALCASE=1; export DUALCASE # for MKS sh 20775if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20776 emulate sh 20777 NULLCMD=: 20778 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20779 # is contrary to our usage. Disable this feature. 20780 alias -g '${1+"$@"}'='"$@"' 20781 setopt NO_GLOB_SUBST 20782else 20783 case `(set -o) 2>/dev/null` in #( 20784 *posix*) : 20785 set -o posix ;; #( 20786 *) : 20787 ;; 20788esac 20789fi 20790 20791 20792as_nl=' 20793' 20794export as_nl 20795# Printing a long string crashes Solaris 7 /usr/bin/printf. 20796as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20797as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20798as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20799# Prefer a ksh shell builtin over an external printf program on Solaris, 20800# but without wasting forks for bash or zsh. 20801if test -z "$BASH_VERSION$ZSH_VERSION" \ 20802 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20803 as_echo='print -r --' 20804 as_echo_n='print -rn --' 20805elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20806 as_echo='printf %s\n' 20807 as_echo_n='printf %s' 20808else 20809 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20810 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20811 as_echo_n='/usr/ucb/echo -n' 20812 else 20813 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20814 as_echo_n_body='eval 20815 arg=$1; 20816 case $arg in #( 20817 *"$as_nl"*) 20818 expr "X$arg" : "X\\(.*\\)$as_nl"; 20819 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20820 esac; 20821 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20822 ' 20823 export as_echo_n_body 20824 as_echo_n='sh -c $as_echo_n_body as_echo' 20825 fi 20826 export as_echo_body 20827 as_echo='sh -c $as_echo_body as_echo' 20828fi 20829 20830# The user is always right. 20831if test "${PATH_SEPARATOR+set}" != set; then 20832 PATH_SEPARATOR=: 20833 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20834 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20835 PATH_SEPARATOR=';' 20836 } 20837fi 20838 20839 20840# IFS 20841# We need space, tab and new line, in precisely that order. Quoting is 20842# there to prevent editors from complaining about space-tab. 20843# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20844# splitting by setting IFS to empty value.) 20845IFS=" "" $as_nl" 20846 20847# Find who we are. Look in the path if we contain no directory separator. 20848as_myself= 20849case $0 in #(( 20850 *[\\/]* ) as_myself=$0 ;; 20851 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20852for as_dir in $PATH 20853do 20854 IFS=$as_save_IFS 20855 test -z "$as_dir" && as_dir=. 20856 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20857 done 20858IFS=$as_save_IFS 20859 20860 ;; 20861esac 20862# We did not find ourselves, most probably we were run as `sh COMMAND' 20863# in which case we are not to be found in the path. 20864if test "x$as_myself" = x; then 20865 as_myself=$0 20866fi 20867if test ! -f "$as_myself"; then 20868 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20869 exit 1 20870fi 20871 20872# Unset variables that we do not need and which cause bugs (e.g. in 20873# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20874# suppresses any "Segmentation fault" message there. '((' could 20875# trigger a bug in pdksh 5.2.14. 20876for as_var in BASH_ENV ENV MAIL MAILPATH 20877do eval test x\${$as_var+set} = xset \ 20878 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20879done 20880PS1='$ ' 20881PS2='> ' 20882PS4='+ ' 20883 20884# NLS nuisances. 20885LC_ALL=C 20886export LC_ALL 20887LANGUAGE=C 20888export LANGUAGE 20889 20890# CDPATH. 20891(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20892 20893 20894# as_fn_error STATUS ERROR [LINENO LOG_FD] 20895# ---------------------------------------- 20896# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20897# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20898# script with STATUS, using 1 if that was 0. 20899as_fn_error () 20900{ 20901 as_status=$1; test $as_status -eq 0 && as_status=1 20902 if test "$4"; then 20903 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20904 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20905 fi 20906 $as_echo "$as_me: error: $2" >&2 20907 as_fn_exit $as_status 20908} # as_fn_error 20909 20910 20911# as_fn_set_status STATUS 20912# ----------------------- 20913# Set $? to STATUS, without forking. 20914as_fn_set_status () 20915{ 20916 return $1 20917} # as_fn_set_status 20918 20919# as_fn_exit STATUS 20920# ----------------- 20921# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20922as_fn_exit () 20923{ 20924 set +e 20925 as_fn_set_status $1 20926 exit $1 20927} # as_fn_exit 20928 20929# as_fn_unset VAR 20930# --------------- 20931# Portably unset VAR. 20932as_fn_unset () 20933{ 20934 { eval $1=; unset $1;} 20935} 20936as_unset=as_fn_unset 20937# as_fn_append VAR VALUE 20938# ---------------------- 20939# Append the text in VALUE to the end of the definition contained in VAR. Take 20940# advantage of any shell optimizations that allow amortized linear growth over 20941# repeated appends, instead of the typical quadratic growth present in naive 20942# implementations. 20943if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20944 eval 'as_fn_append () 20945 { 20946 eval $1+=\$2 20947 }' 20948else 20949 as_fn_append () 20950 { 20951 eval $1=\$$1\$2 20952 } 20953fi # as_fn_append 20954 20955# as_fn_arith ARG... 20956# ------------------ 20957# Perform arithmetic evaluation on the ARGs, and store the result in the 20958# global $as_val. Take advantage of shells that can avoid forks. The arguments 20959# must be portable across $(()) and expr. 20960if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20961 eval 'as_fn_arith () 20962 { 20963 as_val=$(( $* )) 20964 }' 20965else 20966 as_fn_arith () 20967 { 20968 as_val=`expr "$@" || test $? -eq 1` 20969 } 20970fi # as_fn_arith 20971 20972 20973if expr a : '\(a\)' >/dev/null 2>&1 && 20974 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20975 as_expr=expr 20976else 20977 as_expr=false 20978fi 20979 20980if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20981 as_basename=basename 20982else 20983 as_basename=false 20984fi 20985 20986if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20987 as_dirname=dirname 20988else 20989 as_dirname=false 20990fi 20991 20992as_me=`$as_basename -- "$0" || 20993$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20994 X"$0" : 'X\(//\)$' \| \ 20995 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20996$as_echo X/"$0" | 20997 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20998 s//\1/ 20999 q 21000 } 21001 /^X\/\(\/\/\)$/{ 21002 s//\1/ 21003 q 21004 } 21005 /^X\/\(\/\).*/{ 21006 s//\1/ 21007 q 21008 } 21009 s/.*/./; q'` 21010 21011# Avoid depending upon Character Ranges. 21012as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21013as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21014as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21015as_cr_digits='0123456789' 21016as_cr_alnum=$as_cr_Letters$as_cr_digits 21017 21018ECHO_C= ECHO_N= ECHO_T= 21019case `echo -n x` in #((((( 21020-n*) 21021 case `echo 'xy\c'` in 21022 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21023 xy) ECHO_C='\c';; 21024 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21025 ECHO_T=' ';; 21026 esac;; 21027*) 21028 ECHO_N='-n';; 21029esac 21030 21031rm -f conf$$ conf$$.exe conf$$.file 21032if test -d conf$$.dir; then 21033 rm -f conf$$.dir/conf$$.file 21034else 21035 rm -f conf$$.dir 21036 mkdir conf$$.dir 2>/dev/null 21037fi 21038if (echo >conf$$.file) 2>/dev/null; then 21039 if ln -s conf$$.file conf$$ 2>/dev/null; then 21040 as_ln_s='ln -s' 21041 # ... but there are two gotchas: 21042 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21043 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21044 # In both cases, we have to default to `cp -pR'. 21045 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21046 as_ln_s='cp -pR' 21047 elif ln conf$$.file conf$$ 2>/dev/null; then 21048 as_ln_s=ln 21049 else 21050 as_ln_s='cp -pR' 21051 fi 21052else 21053 as_ln_s='cp -pR' 21054fi 21055rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21056rmdir conf$$.dir 2>/dev/null 21057 21058 21059# as_fn_mkdir_p 21060# ------------- 21061# Create "$as_dir" as a directory, including parents if necessary. 21062as_fn_mkdir_p () 21063{ 21064 21065 case $as_dir in #( 21066 -*) as_dir=./$as_dir;; 21067 esac 21068 test -d "$as_dir" || eval $as_mkdir_p || { 21069 as_dirs= 21070 while :; do 21071 case $as_dir in #( 21072 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21073 *) as_qdir=$as_dir;; 21074 esac 21075 as_dirs="'$as_qdir' $as_dirs" 21076 as_dir=`$as_dirname -- "$as_dir" || 21077$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21078 X"$as_dir" : 'X\(//\)[^/]' \| \ 21079 X"$as_dir" : 'X\(//\)$' \| \ 21080 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21081$as_echo X"$as_dir" | 21082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21083 s//\1/ 21084 q 21085 } 21086 /^X\(\/\/\)[^/].*/{ 21087 s//\1/ 21088 q 21089 } 21090 /^X\(\/\/\)$/{ 21091 s//\1/ 21092 q 21093 } 21094 /^X\(\/\).*/{ 21095 s//\1/ 21096 q 21097 } 21098 s/.*/./; q'` 21099 test -d "$as_dir" && break 21100 done 21101 test -z "$as_dirs" || eval "mkdir $as_dirs" 21102 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21103 21104 21105} # as_fn_mkdir_p 21106if mkdir -p . 2>/dev/null; then 21107 as_mkdir_p='mkdir -p "$as_dir"' 21108else 21109 test -d ./-p && rmdir ./-p 21110 as_mkdir_p=false 21111fi 21112 21113 21114# as_fn_executable_p FILE 21115# ----------------------- 21116# Test if FILE is an executable regular file. 21117as_fn_executable_p () 21118{ 21119 test -f "$1" && test -x "$1" 21120} # as_fn_executable_p 21121as_test_x='test -x' 21122as_executable_p=as_fn_executable_p 21123 21124# Sed expression to map a string onto a valid CPP name. 21125as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21126 21127# Sed expression to map a string onto a valid variable name. 21128as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21129 21130 21131exec 6>&1 21132## ----------------------------------- ## 21133## Main body of $CONFIG_STATUS script. ## 21134## ----------------------------------- ## 21135_ASEOF 21136test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21137 21138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21139# Save the log message, to keep $0 and so on meaningful, and to 21140# report actual input values of CONFIG_FILES etc. instead of their 21141# values after options handling. 21142ac_log=" 21143This file was extended by libxcb $as_me 1.11, which was 21144generated by GNU Autoconf 2.69. Invocation command line was 21145 21146 CONFIG_FILES = $CONFIG_FILES 21147 CONFIG_HEADERS = $CONFIG_HEADERS 21148 CONFIG_LINKS = $CONFIG_LINKS 21149 CONFIG_COMMANDS = $CONFIG_COMMANDS 21150 $ $0 $@ 21151 21152on `(hostname || uname -n) 2>/dev/null | sed 1q` 21153" 21154 21155_ACEOF 21156 21157case $ac_config_files in *" 21158"*) set x $ac_config_files; shift; ac_config_files=$*;; 21159esac 21160 21161case $ac_config_headers in *" 21162"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21163esac 21164 21165 21166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21167# Files that config.status was made for. 21168config_files="$ac_config_files" 21169config_headers="$ac_config_headers" 21170config_commands="$ac_config_commands" 21171 21172_ACEOF 21173 21174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21175ac_cs_usage="\ 21176\`$as_me' instantiates files and other configuration actions 21177from templates according to the current configuration. Unless the files 21178and actions are specified as TAGs, all are instantiated by default. 21179 21180Usage: $0 [OPTION]... [TAG]... 21181 21182 -h, --help print this help, then exit 21183 -V, --version print version number and configuration settings, then exit 21184 --config print configuration, then exit 21185 -q, --quiet, --silent 21186 do not print progress messages 21187 -d, --debug don't remove temporary files 21188 --recheck update $as_me by reconfiguring in the same conditions 21189 --file=FILE[:TEMPLATE] 21190 instantiate the configuration file FILE 21191 --header=FILE[:TEMPLATE] 21192 instantiate the configuration header FILE 21193 21194Configuration files: 21195$config_files 21196 21197Configuration headers: 21198$config_headers 21199 21200Configuration commands: 21201$config_commands 21202 21203Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>." 21204 21205_ACEOF 21206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21207ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21208ac_cs_version="\\ 21209libxcb config.status 1.11 21210configured by $0, generated by GNU Autoconf 2.69, 21211 with options \\"\$ac_cs_config\\" 21212 21213Copyright (C) 2012 Free Software Foundation, Inc. 21214This config.status script is free software; the Free Software Foundation 21215gives unlimited permission to copy, distribute and modify it." 21216 21217ac_pwd='$ac_pwd' 21218srcdir='$srcdir' 21219INSTALL='$INSTALL' 21220MKDIR_P='$MKDIR_P' 21221AWK='$AWK' 21222test -n "\$AWK" || AWK=awk 21223_ACEOF 21224 21225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21226# The default lists apply if the user does not specify any file. 21227ac_need_defaults=: 21228while test $# != 0 21229do 21230 case $1 in 21231 --*=?*) 21232 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21233 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21234 ac_shift=: 21235 ;; 21236 --*=) 21237 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21238 ac_optarg= 21239 ac_shift=: 21240 ;; 21241 *) 21242 ac_option=$1 21243 ac_optarg=$2 21244 ac_shift=shift 21245 ;; 21246 esac 21247 21248 case $ac_option in 21249 # Handling of the options. 21250 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21251 ac_cs_recheck=: ;; 21252 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21253 $as_echo "$ac_cs_version"; exit ;; 21254 --config | --confi | --conf | --con | --co | --c ) 21255 $as_echo "$ac_cs_config"; exit ;; 21256 --debug | --debu | --deb | --de | --d | -d ) 21257 debug=: ;; 21258 --file | --fil | --fi | --f ) 21259 $ac_shift 21260 case $ac_optarg in 21261 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21262 '') as_fn_error $? "missing file argument" ;; 21263 esac 21264 as_fn_append CONFIG_FILES " '$ac_optarg'" 21265 ac_need_defaults=false;; 21266 --header | --heade | --head | --hea ) 21267 $ac_shift 21268 case $ac_optarg in 21269 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21270 esac 21271 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21272 ac_need_defaults=false;; 21273 --he | --h) 21274 # Conflict between --help and --header 21275 as_fn_error $? "ambiguous option: \`$1' 21276Try \`$0 --help' for more information.";; 21277 --help | --hel | -h ) 21278 $as_echo "$ac_cs_usage"; exit ;; 21279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21280 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21281 ac_cs_silent=: ;; 21282 21283 # This is an error. 21284 -*) as_fn_error $? "unrecognized option: \`$1' 21285Try \`$0 --help' for more information." ;; 21286 21287 *) as_fn_append ac_config_targets " $1" 21288 ac_need_defaults=false ;; 21289 21290 esac 21291 shift 21292done 21293 21294ac_configure_extra_args= 21295 21296if $ac_cs_silent; then 21297 exec 6>/dev/null 21298 ac_configure_extra_args="$ac_configure_extra_args --silent" 21299fi 21300 21301_ACEOF 21302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21303if \$ac_cs_recheck; then 21304 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21305 shift 21306 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21307 CONFIG_SHELL='$SHELL' 21308 export CONFIG_SHELL 21309 exec "\$@" 21310fi 21311 21312_ACEOF 21313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21314exec 5>>config.log 21315{ 21316 echo 21317 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21318## Running $as_me. ## 21319_ASBOX 21320 $as_echo "$ac_log" 21321} >&5 21322 21323_ACEOF 21324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21325# 21326# INIT-COMMANDS 21327# 21328AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21329 21330 21331# The HP-UX ksh and POSIX shell print the target directory to stdout 21332# if CDPATH is set. 21333(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21334 21335sed_quote_subst='$sed_quote_subst' 21336double_quote_subst='$double_quote_subst' 21337delay_variable_subst='$delay_variable_subst' 21338macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21339macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21340AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 21341DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21342OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21343enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21344enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21345pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21346enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21347SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21348ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21349PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21350host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21351host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21352host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21353build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21354build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21355build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21356SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21357Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21358GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21359EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21360FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21361LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21362NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21363LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21364max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21365ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21366exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21367lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21368lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21369lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21370lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21371lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21372reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21373reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21374deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21375file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21376file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21377want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21378sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21379AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21380AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21381archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21382STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21383RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21384old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21385old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21386old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21387lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21388CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21389CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21390compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21391GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21392lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21393lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21394lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21395lt_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"`' 21396nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21397lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21398objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21399MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21400lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21401lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21402lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21403lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21404lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21405need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21406MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21407DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21408NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21409LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21410OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21411OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21412libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21413shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21414extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21415archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21416enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21417export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21418whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21419compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21420old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21421old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21422archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21423archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21424module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21425module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21426with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21427allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21428no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21429hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21430hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21431hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21432hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21433hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21434hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21435hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21436inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21437link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21438always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21439export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21440exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21441include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21442prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21443postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21444file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21445variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21446need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21447need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21448version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21449runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21450shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21451shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21452libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21453library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21454soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21455install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21456postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21457postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21458finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21459finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21460hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21461sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21462sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 21463hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21464enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21465enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21466enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21467old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21468striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21469 21470LTCC='$LTCC' 21471LTCFLAGS='$LTCFLAGS' 21472compiler='$compiler_DEFAULT' 21473 21474# A function that is used when there is no print builtin or printf. 21475func_fallback_echo () 21476{ 21477 eval 'cat <<_LTECHO_EOF 21478\$1 21479_LTECHO_EOF' 21480} 21481 21482# Quote evaled strings. 21483for var in AS \ 21484DLLTOOL \ 21485OBJDUMP \ 21486SHELL \ 21487ECHO \ 21488PATH_SEPARATOR \ 21489SED \ 21490GREP \ 21491EGREP \ 21492FGREP \ 21493LD \ 21494NM \ 21495LN_S \ 21496lt_SP2NL \ 21497lt_NL2SP \ 21498reload_flag \ 21499deplibs_check_method \ 21500file_magic_cmd \ 21501file_magic_glob \ 21502want_nocaseglob \ 21503sharedlib_from_linklib_cmd \ 21504AR \ 21505AR_FLAGS \ 21506archiver_list_spec \ 21507STRIP \ 21508RANLIB \ 21509CC \ 21510CFLAGS \ 21511compiler \ 21512lt_cv_sys_global_symbol_pipe \ 21513lt_cv_sys_global_symbol_to_cdecl \ 21514lt_cv_sys_global_symbol_to_c_name_address \ 21515lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21516nm_file_list_spec \ 21517lt_prog_compiler_no_builtin_flag \ 21518lt_prog_compiler_pic \ 21519lt_prog_compiler_wl \ 21520lt_prog_compiler_static \ 21521lt_cv_prog_compiler_c_o \ 21522need_locks \ 21523MANIFEST_TOOL \ 21524DSYMUTIL \ 21525NMEDIT \ 21526LIPO \ 21527OTOOL \ 21528OTOOL64 \ 21529shrext_cmds \ 21530export_dynamic_flag_spec \ 21531whole_archive_flag_spec \ 21532compiler_needs_object \ 21533with_gnu_ld \ 21534allow_undefined_flag \ 21535no_undefined_flag \ 21536hardcode_libdir_flag_spec \ 21537hardcode_libdir_separator \ 21538exclude_expsyms \ 21539include_expsyms \ 21540file_list_spec \ 21541variables_saved_for_relink \ 21542libname_spec \ 21543library_names_spec \ 21544soname_spec \ 21545install_override_mode \ 21546finish_eval \ 21547old_striplib \ 21548striplib; do 21549 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21550 *[\\\\\\\`\\"\\\$]*) 21551 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 21552 ;; 21553 *) 21554 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21555 ;; 21556 esac 21557done 21558 21559# Double-quote double-evaled strings. 21560for var in reload_cmds \ 21561old_postinstall_cmds \ 21562old_postuninstall_cmds \ 21563old_archive_cmds \ 21564extract_expsyms_cmds \ 21565old_archive_from_new_cmds \ 21566old_archive_from_expsyms_cmds \ 21567archive_cmds \ 21568archive_expsym_cmds \ 21569module_cmds \ 21570module_expsym_cmds \ 21571export_symbols_cmds \ 21572prelink_cmds \ 21573postlink_cmds \ 21574postinstall_cmds \ 21575postuninstall_cmds \ 21576finish_cmds \ 21577sys_lib_search_path_spec \ 21578sys_lib_dlsearch_path_spec; do 21579 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21580 *[\\\\\\\`\\"\\\$]*) 21581 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 21582 ;; 21583 *) 21584 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21585 ;; 21586 esac 21587done 21588 21589ac_aux_dir='$ac_aux_dir' 21590xsi_shell='$xsi_shell' 21591lt_shell_append='$lt_shell_append' 21592 21593# See if we are running on zsh, and set the options which allow our 21594# commands through without removal of \ escapes INIT. 21595if test -n "\${ZSH_VERSION+set}" ; then 21596 setopt NO_GLOB_SUBST 21597fi 21598 21599 21600 PACKAGE='$PACKAGE' 21601 VERSION='$VERSION' 21602 TIMESTAMP='$TIMESTAMP' 21603 RM='$RM' 21604 ofile='$ofile' 21605 21606 21607 21608 21609_ACEOF 21610 21611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21612 21613# Handling of arguments. 21614for ac_config_target in $ac_config_targets 21615do 21616 case $ac_config_target in 21617 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 21618 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21619 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21620 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21621 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 21622 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21623 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21624 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 21625 "xcb.pc") CONFIG_FILES="$CONFIG_FILES xcb.pc" ;; 21626 "xcb-composite.pc") CONFIG_FILES="$CONFIG_FILES xcb-composite.pc" ;; 21627 "xcb-damage.pc") CONFIG_FILES="$CONFIG_FILES xcb-damage.pc" ;; 21628 "xcb-dpms.pc") CONFIG_FILES="$CONFIG_FILES xcb-dpms.pc" ;; 21629 "xcb-dri2.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri2.pc" ;; 21630 "xcb-dri3.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri3.pc" ;; 21631 "xcb-glx.pc") CONFIG_FILES="$CONFIG_FILES xcb-glx.pc" ;; 21632 "xcb-present.pc") CONFIG_FILES="$CONFIG_FILES xcb-present.pc" ;; 21633 "xcb-randr.pc") CONFIG_FILES="$CONFIG_FILES xcb-randr.pc" ;; 21634 "xcb-record.pc") CONFIG_FILES="$CONFIG_FILES xcb-record.pc" ;; 21635 "xcb-render.pc") CONFIG_FILES="$CONFIG_FILES xcb-render.pc" ;; 21636 "xcb-res.pc") CONFIG_FILES="$CONFIG_FILES xcb-res.pc" ;; 21637 "xcb-screensaver.pc") CONFIG_FILES="$CONFIG_FILES xcb-screensaver.pc" ;; 21638 "xcb-shape.pc") CONFIG_FILES="$CONFIG_FILES xcb-shape.pc" ;; 21639 "xcb-shm.pc") CONFIG_FILES="$CONFIG_FILES xcb-shm.pc" ;; 21640 "xcb-sync.pc") CONFIG_FILES="$CONFIG_FILES xcb-sync.pc" ;; 21641 "xcb-xevie.pc") CONFIG_FILES="$CONFIG_FILES xcb-xevie.pc" ;; 21642 "xcb-xf86dri.pc") CONFIG_FILES="$CONFIG_FILES xcb-xf86dri.pc" ;; 21643 "xcb-xfixes.pc") CONFIG_FILES="$CONFIG_FILES xcb-xfixes.pc" ;; 21644 "xcb-xinerama.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinerama.pc" ;; 21645 "xcb-xinput.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinput.pc" ;; 21646 "xcb-xkb.pc") CONFIG_FILES="$CONFIG_FILES xcb-xkb.pc" ;; 21647 "xcb-xprint.pc") CONFIG_FILES="$CONFIG_FILES xcb-xprint.pc" ;; 21648 "xcb-xselinux.pc") CONFIG_FILES="$CONFIG_FILES xcb-xselinux.pc" ;; 21649 "xcb-xtest.pc") CONFIG_FILES="$CONFIG_FILES xcb-xtest.pc" ;; 21650 "xcb-xv.pc") CONFIG_FILES="$CONFIG_FILES xcb-xv.pc" ;; 21651 "xcb-xvmc.pc") CONFIG_FILES="$CONFIG_FILES xcb-xvmc.pc" ;; 21652 "doc/xcb.doxygen") CONFIG_FILES="$CONFIG_FILES doc/xcb.doxygen" ;; 21653 21654 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21655 esac 21656done 21657 21658 21659# If the user did not use the arguments to specify the items to instantiate, 21660# then the envvar interface is used. Set only those that are not. 21661# We use the long form for the default assignment because of an extremely 21662# bizarre bug on SunOS 4.1.3. 21663if $ac_need_defaults; then 21664 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21665 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21666 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21667fi 21668 21669# Have a temporary directory for convenience. Make it in the build tree 21670# simply because there is no reason against having it here, and in addition, 21671# creating and moving files from /tmp can sometimes cause problems. 21672# Hook for its removal unless debugging. 21673# Note that there is a small window in which the directory will not be cleaned: 21674# after its creation but before its name has been assigned to `$tmp'. 21675$debug || 21676{ 21677 tmp= ac_tmp= 21678 trap 'exit_status=$? 21679 : "${ac_tmp:=$tmp}" 21680 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21681' 0 21682 trap 'as_fn_exit 1' 1 2 13 15 21683} 21684# Create a (secure) tmp directory for tmp files. 21685 21686{ 21687 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21688 test -d "$tmp" 21689} || 21690{ 21691 tmp=./conf$$-$RANDOM 21692 (umask 077 && mkdir "$tmp") 21693} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21694ac_tmp=$tmp 21695 21696# Set up the scripts for CONFIG_FILES section. 21697# No need to generate them if there are no CONFIG_FILES. 21698# This happens for instance with `./config.status config.h'. 21699if test -n "$CONFIG_FILES"; then 21700 21701 21702ac_cr=`echo X | tr X '\015'` 21703# On cygwin, bash can eat \r inside `` if the user requested igncr. 21704# But we know of no other shell where ac_cr would be empty at this 21705# point, so we can use a bashism as a fallback. 21706if test "x$ac_cr" = x; then 21707 eval ac_cr=\$\'\\r\' 21708fi 21709ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21710if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21711 ac_cs_awk_cr='\\r' 21712else 21713 ac_cs_awk_cr=$ac_cr 21714fi 21715 21716echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21717_ACEOF 21718 21719 21720{ 21721 echo "cat >conf$$subs.awk <<_ACEOF" && 21722 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21723 echo "_ACEOF" 21724} >conf$$subs.sh || 21725 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21726ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21727ac_delim='%!_!# ' 21728for ac_last_try in false false false false false :; do 21729 . ./conf$$subs.sh || 21730 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21731 21732 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21733 if test $ac_delim_n = $ac_delim_num; then 21734 break 21735 elif $ac_last_try; then 21736 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21737 else 21738 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21739 fi 21740done 21741rm -f conf$$subs.sh 21742 21743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21744cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21745_ACEOF 21746sed -n ' 21747h 21748s/^/S["/; s/!.*/"]=/ 21749p 21750g 21751s/^[^!]*!// 21752:repl 21753t repl 21754s/'"$ac_delim"'$// 21755t delim 21756:nl 21757h 21758s/\(.\{148\}\)..*/\1/ 21759t more1 21760s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21761p 21762n 21763b repl 21764:more1 21765s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21766p 21767g 21768s/.\{148\}// 21769t nl 21770:delim 21771h 21772s/\(.\{148\}\)..*/\1/ 21773t more2 21774s/["\\]/\\&/g; s/^/"/; s/$/"/ 21775p 21776b 21777:more2 21778s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21779p 21780g 21781s/.\{148\}// 21782t delim 21783' <conf$$subs.awk | sed ' 21784/^[^""]/{ 21785 N 21786 s/\n// 21787} 21788' >>$CONFIG_STATUS || ac_write_fail=1 21789rm -f conf$$subs.awk 21790cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21791_ACAWK 21792cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21793 for (key in S) S_is_set[key] = 1 21794 FS = "" 21795 21796} 21797{ 21798 line = $ 0 21799 nfields = split(line, field, "@") 21800 substed = 0 21801 len = length(field[1]) 21802 for (i = 2; i < nfields; i++) { 21803 key = field[i] 21804 keylen = length(key) 21805 if (S_is_set[key]) { 21806 value = S[key] 21807 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21808 len += length(value) + length(field[++i]) 21809 substed = 1 21810 } else 21811 len += 1 + keylen 21812 } 21813 21814 print line 21815} 21816 21817_ACAWK 21818_ACEOF 21819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21820if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21821 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21822else 21823 cat 21824fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21825 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21826_ACEOF 21827 21828# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21829# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21830# trailing colons and then remove the whole line if VPATH becomes empty 21831# (actually we leave an empty line to preserve line numbers). 21832if test "x$srcdir" = x.; then 21833 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21834h 21835s/// 21836s/^/:/ 21837s/[ ]*$/:/ 21838s/:\$(srcdir):/:/g 21839s/:\${srcdir}:/:/g 21840s/:@srcdir@:/:/g 21841s/^:*// 21842s/:*$// 21843x 21844s/\(=[ ]*\).*/\1/ 21845G 21846s/\n// 21847s/^[^=]*=[ ]*$// 21848}' 21849fi 21850 21851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21852fi # test -n "$CONFIG_FILES" 21853 21854# Set up the scripts for CONFIG_HEADERS section. 21855# No need to generate them if there are no CONFIG_HEADERS. 21856# This happens for instance with `./config.status Makefile'. 21857if test -n "$CONFIG_HEADERS"; then 21858cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21859BEGIN { 21860_ACEOF 21861 21862# Transform confdefs.h into an awk script `defines.awk', embedded as 21863# here-document in config.status, that substitutes the proper values into 21864# config.h.in to produce config.h. 21865 21866# Create a delimiter string that does not exist in confdefs.h, to ease 21867# handling of long lines. 21868ac_delim='%!_!# ' 21869for ac_last_try in false false :; do 21870 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21871 if test -z "$ac_tt"; then 21872 break 21873 elif $ac_last_try; then 21874 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21875 else 21876 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21877 fi 21878done 21879 21880# For the awk script, D is an array of macro values keyed by name, 21881# likewise P contains macro parameters if any. Preserve backslash 21882# newline sequences. 21883 21884ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21885sed -n ' 21886s/.\{148\}/&'"$ac_delim"'/g 21887t rset 21888:rset 21889s/^[ ]*#[ ]*define[ ][ ]*/ / 21890t def 21891d 21892:def 21893s/\\$// 21894t bsnl 21895s/["\\]/\\&/g 21896s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21897D["\1"]=" \3"/p 21898s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21899d 21900:bsnl 21901s/["\\]/\\&/g 21902s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21903D["\1"]=" \3\\\\\\n"\\/p 21904t cont 21905s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21906t cont 21907d 21908:cont 21909n 21910s/.\{148\}/&'"$ac_delim"'/g 21911t clear 21912:clear 21913s/\\$// 21914t bsnlc 21915s/["\\]/\\&/g; s/^/"/; s/$/"/p 21916d 21917:bsnlc 21918s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21919b cont 21920' <confdefs.h | sed ' 21921s/'"$ac_delim"'/"\\\ 21922"/g' >>$CONFIG_STATUS || ac_write_fail=1 21923 21924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21925 for (key in D) D_is_set[key] = 1 21926 FS = "" 21927} 21928/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21929 line = \$ 0 21930 split(line, arg, " ") 21931 if (arg[1] == "#") { 21932 defundef = arg[2] 21933 mac1 = arg[3] 21934 } else { 21935 defundef = substr(arg[1], 2) 21936 mac1 = arg[2] 21937 } 21938 split(mac1, mac2, "(") #) 21939 macro = mac2[1] 21940 prefix = substr(line, 1, index(line, defundef) - 1) 21941 if (D_is_set[macro]) { 21942 # Preserve the white space surrounding the "#". 21943 print prefix "define", macro P[macro] D[macro] 21944 next 21945 } else { 21946 # Replace #undef with comments. This is necessary, for example, 21947 # in the case of _POSIX_SOURCE, which is predefined and required 21948 # on some systems where configure will not decide to define it. 21949 if (defundef == "undef") { 21950 print "/*", prefix defundef, macro, "*/" 21951 next 21952 } 21953 } 21954} 21955{ print } 21956_ACAWK 21957_ACEOF 21958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21959 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21960fi # test -n "$CONFIG_HEADERS" 21961 21962 21963eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21964shift 21965for ac_tag 21966do 21967 case $ac_tag in 21968 :[FHLC]) ac_mode=$ac_tag; continue;; 21969 esac 21970 case $ac_mode$ac_tag in 21971 :[FHL]*:*);; 21972 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21973 :[FH]-) ac_tag=-:-;; 21974 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21975 esac 21976 ac_save_IFS=$IFS 21977 IFS=: 21978 set x $ac_tag 21979 IFS=$ac_save_IFS 21980 shift 21981 ac_file=$1 21982 shift 21983 21984 case $ac_mode in 21985 :L) ac_source=$1;; 21986 :[FH]) 21987 ac_file_inputs= 21988 for ac_f 21989 do 21990 case $ac_f in 21991 -) ac_f="$ac_tmp/stdin";; 21992 *) # Look for the file first in the build tree, then in the source tree 21993 # (if the path is not absolute). The absolute path cannot be DOS-style, 21994 # because $ac_f cannot contain `:'. 21995 test -f "$ac_f" || 21996 case $ac_f in 21997 [\\/$]*) false;; 21998 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21999 esac || 22000 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22001 esac 22002 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22003 as_fn_append ac_file_inputs " '$ac_f'" 22004 done 22005 22006 # Let's still pretend it is `configure' which instantiates (i.e., don't 22007 # use $as_me), people would be surprised to read: 22008 # /* config.h. Generated by config.status. */ 22009 configure_input='Generated from '` 22010 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22011 `' by configure.' 22012 if test x"$ac_file" != x-; then 22013 configure_input="$ac_file. $configure_input" 22014 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22015$as_echo "$as_me: creating $ac_file" >&6;} 22016 fi 22017 # Neutralize special characters interpreted by sed in replacement strings. 22018 case $configure_input in #( 22019 *\&* | *\|* | *\\* ) 22020 ac_sed_conf_input=`$as_echo "$configure_input" | 22021 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22022 *) ac_sed_conf_input=$configure_input;; 22023 esac 22024 22025 case $ac_tag in 22026 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22028 esac 22029 ;; 22030 esac 22031 22032 ac_dir=`$as_dirname -- "$ac_file" || 22033$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22034 X"$ac_file" : 'X\(//\)[^/]' \| \ 22035 X"$ac_file" : 'X\(//\)$' \| \ 22036 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22037$as_echo X"$ac_file" | 22038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22039 s//\1/ 22040 q 22041 } 22042 /^X\(\/\/\)[^/].*/{ 22043 s//\1/ 22044 q 22045 } 22046 /^X\(\/\/\)$/{ 22047 s//\1/ 22048 q 22049 } 22050 /^X\(\/\).*/{ 22051 s//\1/ 22052 q 22053 } 22054 s/.*/./; q'` 22055 as_dir="$ac_dir"; as_fn_mkdir_p 22056 ac_builddir=. 22057 22058case "$ac_dir" in 22059.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22060*) 22061 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22062 # A ".." for each directory in $ac_dir_suffix. 22063 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22064 case $ac_top_builddir_sub in 22065 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22066 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22067 esac ;; 22068esac 22069ac_abs_top_builddir=$ac_pwd 22070ac_abs_builddir=$ac_pwd$ac_dir_suffix 22071# for backward compatibility: 22072ac_top_builddir=$ac_top_build_prefix 22073 22074case $srcdir in 22075 .) # We are building in place. 22076 ac_srcdir=. 22077 ac_top_srcdir=$ac_top_builddir_sub 22078 ac_abs_top_srcdir=$ac_pwd ;; 22079 [\\/]* | ?:[\\/]* ) # Absolute name. 22080 ac_srcdir=$srcdir$ac_dir_suffix; 22081 ac_top_srcdir=$srcdir 22082 ac_abs_top_srcdir=$srcdir ;; 22083 *) # Relative name. 22084 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22085 ac_top_srcdir=$ac_top_build_prefix$srcdir 22086 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22087esac 22088ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22089 22090 22091 case $ac_mode in 22092 :F) 22093 # 22094 # CONFIG_FILE 22095 # 22096 22097 case $INSTALL in 22098 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22099 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22100 esac 22101 ac_MKDIR_P=$MKDIR_P 22102 case $MKDIR_P in 22103 [\\/$]* | ?:[\\/]* ) ;; 22104 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22105 esac 22106_ACEOF 22107 22108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22109# If the template does not know about datarootdir, expand it. 22110# FIXME: This hack should be removed a few years after 2.60. 22111ac_datarootdir_hack=; ac_datarootdir_seen= 22112ac_sed_dataroot=' 22113/datarootdir/ { 22114 p 22115 q 22116} 22117/@datadir@/p 22118/@docdir@/p 22119/@infodir@/p 22120/@localedir@/p 22121/@mandir@/p' 22122case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22123*datarootdir*) ac_datarootdir_seen=yes;; 22124*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22126$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22127_ACEOF 22128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22129 ac_datarootdir_hack=' 22130 s&@datadir@&$datadir&g 22131 s&@docdir@&$docdir&g 22132 s&@infodir@&$infodir&g 22133 s&@localedir@&$localedir&g 22134 s&@mandir@&$mandir&g 22135 s&\\\${datarootdir}&$datarootdir&g' ;; 22136esac 22137_ACEOF 22138 22139# Neutralize VPATH when `$srcdir' = `.'. 22140# Shell code in configure.ac might set extrasub. 22141# FIXME: do we really want to maintain this feature? 22142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22143ac_sed_extra="$ac_vpsub 22144$extrasub 22145_ACEOF 22146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22147:t 22148/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22149s|@configure_input@|$ac_sed_conf_input|;t t 22150s&@top_builddir@&$ac_top_builddir_sub&;t t 22151s&@top_build_prefix@&$ac_top_build_prefix&;t t 22152s&@srcdir@&$ac_srcdir&;t t 22153s&@abs_srcdir@&$ac_abs_srcdir&;t t 22154s&@top_srcdir@&$ac_top_srcdir&;t t 22155s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22156s&@builddir@&$ac_builddir&;t t 22157s&@abs_builddir@&$ac_abs_builddir&;t t 22158s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22159s&@INSTALL@&$ac_INSTALL&;t t 22160s&@MKDIR_P@&$ac_MKDIR_P&;t t 22161$ac_datarootdir_hack 22162" 22163eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22164 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22165 22166test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22167 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22168 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22169 "$ac_tmp/out"`; test -z "$ac_out"; } && 22170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22171which seems to be undefined. Please make sure it is defined" >&5 22172$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22173which seems to be undefined. Please make sure it is defined" >&2;} 22174 22175 rm -f "$ac_tmp/stdin" 22176 case $ac_file in 22177 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22178 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22179 esac \ 22180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22181 ;; 22182 :H) 22183 # 22184 # CONFIG_HEADER 22185 # 22186 if test x"$ac_file" != x-; then 22187 { 22188 $as_echo "/* $configure_input */" \ 22189 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22190 } >"$ac_tmp/config.h" \ 22191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22192 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22193 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22194$as_echo "$as_me: $ac_file is unchanged" >&6;} 22195 else 22196 rm -f "$ac_file" 22197 mv "$ac_tmp/config.h" "$ac_file" \ 22198 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22199 fi 22200 else 22201 $as_echo "/* $configure_input */" \ 22202 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22203 || as_fn_error $? "could not create -" "$LINENO" 5 22204 fi 22205# Compute "$ac_file"'s index in $config_headers. 22206_am_arg="$ac_file" 22207_am_stamp_count=1 22208for _am_header in $config_headers :; do 22209 case $_am_header in 22210 $_am_arg | $_am_arg:* ) 22211 break ;; 22212 * ) 22213 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22214 esac 22215done 22216echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22217$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22218 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22219 X"$_am_arg" : 'X\(//\)$' \| \ 22220 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22221$as_echo X"$_am_arg" | 22222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22223 s//\1/ 22224 q 22225 } 22226 /^X\(\/\/\)[^/].*/{ 22227 s//\1/ 22228 q 22229 } 22230 /^X\(\/\/\)$/{ 22231 s//\1/ 22232 q 22233 } 22234 /^X\(\/\).*/{ 22235 s//\1/ 22236 q 22237 } 22238 s/.*/./; q'`/stamp-h$_am_stamp_count 22239 ;; 22240 22241 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22242$as_echo "$as_me: executing $ac_file commands" >&6;} 22243 ;; 22244 esac 22245 22246 22247 case $ac_file$ac_mode in 22248 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22249 # Older Autoconf quotes --file arguments for eval, but not when files 22250 # are listed without --file. Let's play safe and only enable the eval 22251 # if we detect the quoting. 22252 case $CONFIG_FILES in 22253 *\'*) eval set x "$CONFIG_FILES" ;; 22254 *) set x $CONFIG_FILES ;; 22255 esac 22256 shift 22257 for mf 22258 do 22259 # Strip MF so we end up with the name of the file. 22260 mf=`echo "$mf" | sed -e 's/:.*$//'` 22261 # Check whether this is an Automake generated Makefile or not. 22262 # We used to match only the files named 'Makefile.in', but 22263 # some people rename them; so instead we look at the file content. 22264 # Grep'ing the first line is not enough: some people post-process 22265 # each Makefile.in and add a new line on top of each file to say so. 22266 # Grep'ing the whole file is not good either: AIX grep has a line 22267 # limit of 2048, but all sed's we know have understand at least 4000. 22268 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22269 dirpart=`$as_dirname -- "$mf" || 22270$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22271 X"$mf" : 'X\(//\)[^/]' \| \ 22272 X"$mf" : 'X\(//\)$' \| \ 22273 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22274$as_echo X"$mf" | 22275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22276 s//\1/ 22277 q 22278 } 22279 /^X\(\/\/\)[^/].*/{ 22280 s//\1/ 22281 q 22282 } 22283 /^X\(\/\/\)$/{ 22284 s//\1/ 22285 q 22286 } 22287 /^X\(\/\).*/{ 22288 s//\1/ 22289 q 22290 } 22291 s/.*/./; q'` 22292 else 22293 continue 22294 fi 22295 # Extract the definition of DEPDIR, am__include, and am__quote 22296 # from the Makefile without running 'make'. 22297 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22298 test -z "$DEPDIR" && continue 22299 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22300 test -z "$am__include" && continue 22301 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22302 # Find all dependency output files, they are included files with 22303 # $(DEPDIR) in their names. We invoke sed twice because it is the 22304 # simplest approach to changing $(DEPDIR) to its actual value in the 22305 # expansion. 22306 for file in `sed -n " 22307 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22308 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 22309 # Make sure the directory exists. 22310 test -f "$dirpart/$file" && continue 22311 fdir=`$as_dirname -- "$file" || 22312$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22313 X"$file" : 'X\(//\)[^/]' \| \ 22314 X"$file" : 'X\(//\)$' \| \ 22315 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22316$as_echo X"$file" | 22317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22318 s//\1/ 22319 q 22320 } 22321 /^X\(\/\/\)[^/].*/{ 22322 s//\1/ 22323 q 22324 } 22325 /^X\(\/\/\)$/{ 22326 s//\1/ 22327 q 22328 } 22329 /^X\(\/\).*/{ 22330 s//\1/ 22331 q 22332 } 22333 s/.*/./; q'` 22334 as_dir=$dirpart/$fdir; as_fn_mkdir_p 22335 # echo "creating $dirpart/$file" 22336 echo '# dummy' > "$dirpart/$file" 22337 done 22338 done 22339} 22340 ;; 22341 "libtool":C) 22342 22343 # See if we are running on zsh, and set the options which allow our 22344 # commands through without removal of \ escapes. 22345 if test -n "${ZSH_VERSION+set}" ; then 22346 setopt NO_GLOB_SUBST 22347 fi 22348 22349 cfgfile="${ofile}T" 22350 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22351 $RM "$cfgfile" 22352 22353 cat <<_LT_EOF >> "$cfgfile" 22354#! $SHELL 22355 22356# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 22357# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 22358# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22359# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22360# 22361# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 22362# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 22363# Foundation, Inc. 22364# Written by Gordon Matzigkeit, 1996 22365# 22366# This file is part of GNU Libtool. 22367# 22368# GNU Libtool is free software; you can redistribute it and/or 22369# modify it under the terms of the GNU General Public License as 22370# published by the Free Software Foundation; either version 2 of 22371# the License, or (at your option) any later version. 22372# 22373# As a special exception to the GNU General Public License, 22374# if you distribute this file as part of a program or library that 22375# is built using GNU Libtool, you may include this file under the 22376# same distribution terms that you use for the rest of that program. 22377# 22378# GNU Libtool is distributed in the hope that it will be useful, 22379# but WITHOUT ANY WARRANTY; without even the implied warranty of 22380# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22381# GNU General Public License for more details. 22382# 22383# You should have received a copy of the GNU General Public License 22384# along with GNU Libtool; see the file COPYING. If not, a copy 22385# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 22386# obtained by writing to the Free Software Foundation, Inc., 22387# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22388 22389 22390# The names of the tagged configurations supported by this script. 22391available_tags="" 22392 22393# ### BEGIN LIBTOOL CONFIG 22394 22395# Which release of libtool.m4 was used? 22396macro_version=$macro_version 22397macro_revision=$macro_revision 22398 22399# Assembler program. 22400AS=$lt_AS 22401 22402# DLL creation program. 22403DLLTOOL=$lt_DLLTOOL 22404 22405# Object dumper program. 22406OBJDUMP=$lt_OBJDUMP 22407 22408# Whether or not to build shared libraries. 22409build_libtool_libs=$enable_shared 22410 22411# Whether or not to build static libraries. 22412build_old_libs=$enable_static 22413 22414# What type of objects to build. 22415pic_mode=$pic_mode 22416 22417# Whether or not to optimize for fast installation. 22418fast_install=$enable_fast_install 22419 22420# Shell to use when invoking shell scripts. 22421SHELL=$lt_SHELL 22422 22423# An echo program that protects backslashes. 22424ECHO=$lt_ECHO 22425 22426# The PATH separator for the build system. 22427PATH_SEPARATOR=$lt_PATH_SEPARATOR 22428 22429# The host system. 22430host_alias=$host_alias 22431host=$host 22432host_os=$host_os 22433 22434# The build system. 22435build_alias=$build_alias 22436build=$build 22437build_os=$build_os 22438 22439# A sed program that does not truncate output. 22440SED=$lt_SED 22441 22442# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22443Xsed="\$SED -e 1s/^X//" 22444 22445# A grep program that handles long lines. 22446GREP=$lt_GREP 22447 22448# An ERE matcher. 22449EGREP=$lt_EGREP 22450 22451# A literal string matcher. 22452FGREP=$lt_FGREP 22453 22454# A BSD- or MS-compatible name lister. 22455NM=$lt_NM 22456 22457# Whether we need soft or hard links. 22458LN_S=$lt_LN_S 22459 22460# What is the maximum length of a command? 22461max_cmd_len=$max_cmd_len 22462 22463# Object file suffix (normally "o"). 22464objext=$ac_objext 22465 22466# Executable file suffix (normally ""). 22467exeext=$exeext 22468 22469# whether the shell understands "unset". 22470lt_unset=$lt_unset 22471 22472# turn spaces into newlines. 22473SP2NL=$lt_lt_SP2NL 22474 22475# turn newlines into spaces. 22476NL2SP=$lt_lt_NL2SP 22477 22478# convert \$build file names to \$host format. 22479to_host_file_cmd=$lt_cv_to_host_file_cmd 22480 22481# convert \$build files to toolchain format. 22482to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22483 22484# Method to check whether dependent libraries are shared objects. 22485deplibs_check_method=$lt_deplibs_check_method 22486 22487# Command to use when deplibs_check_method = "file_magic". 22488file_magic_cmd=$lt_file_magic_cmd 22489 22490# How to find potential files when deplibs_check_method = "file_magic". 22491file_magic_glob=$lt_file_magic_glob 22492 22493# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22494want_nocaseglob=$lt_want_nocaseglob 22495 22496# Command to associate shared and link libraries. 22497sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22498 22499# The archiver. 22500AR=$lt_AR 22501 22502# Flags to create an archive. 22503AR_FLAGS=$lt_AR_FLAGS 22504 22505# How to feed a file listing to the archiver. 22506archiver_list_spec=$lt_archiver_list_spec 22507 22508# A symbol stripping program. 22509STRIP=$lt_STRIP 22510 22511# Commands used to install an old-style archive. 22512RANLIB=$lt_RANLIB 22513old_postinstall_cmds=$lt_old_postinstall_cmds 22514old_postuninstall_cmds=$lt_old_postuninstall_cmds 22515 22516# Whether to use a lock for old archive extraction. 22517lock_old_archive_extraction=$lock_old_archive_extraction 22518 22519# A C compiler. 22520LTCC=$lt_CC 22521 22522# LTCC compiler flags. 22523LTCFLAGS=$lt_CFLAGS 22524 22525# Take the output of nm and produce a listing of raw symbols and C names. 22526global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22527 22528# Transform the output of nm in a proper C declaration. 22529global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22530 22531# Transform the output of nm in a C name address pair. 22532global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22533 22534# Transform the output of nm in a C name address pair when lib prefix is needed. 22535global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22536 22537# Specify filename containing input files for \$NM. 22538nm_file_list_spec=$lt_nm_file_list_spec 22539 22540# The root where to search for dependent libraries,and in which our libraries should be installed. 22541lt_sysroot=$lt_sysroot 22542 22543# The name of the directory that contains temporary libtool files. 22544objdir=$objdir 22545 22546# Used to examine libraries when file_magic_cmd begins with "file". 22547MAGIC_CMD=$MAGIC_CMD 22548 22549# Must we lock files when doing compilation? 22550need_locks=$lt_need_locks 22551 22552# Manifest tool. 22553MANIFEST_TOOL=$lt_MANIFEST_TOOL 22554 22555# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22556DSYMUTIL=$lt_DSYMUTIL 22557 22558# Tool to change global to local symbols on Mac OS X. 22559NMEDIT=$lt_NMEDIT 22560 22561# Tool to manipulate fat objects and archives on Mac OS X. 22562LIPO=$lt_LIPO 22563 22564# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22565OTOOL=$lt_OTOOL 22566 22567# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22568OTOOL64=$lt_OTOOL64 22569 22570# Old archive suffix (normally "a"). 22571libext=$libext 22572 22573# Shared library suffix (normally ".so"). 22574shrext_cmds=$lt_shrext_cmds 22575 22576# The commands to extract the exported symbol list from a shared archive. 22577extract_expsyms_cmds=$lt_extract_expsyms_cmds 22578 22579# Variables whose values should be saved in libtool wrapper scripts and 22580# restored at link time. 22581variables_saved_for_relink=$lt_variables_saved_for_relink 22582 22583# Do we need the "lib" prefix for modules? 22584need_lib_prefix=$need_lib_prefix 22585 22586# Do we need a version for libraries? 22587need_version=$need_version 22588 22589# Library versioning type. 22590version_type=$version_type 22591 22592# Shared library runtime path variable. 22593runpath_var=$runpath_var 22594 22595# Shared library path variable. 22596shlibpath_var=$shlibpath_var 22597 22598# Is shlibpath searched before the hard-coded library search path? 22599shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22600 22601# Format of library name prefix. 22602libname_spec=$lt_libname_spec 22603 22604# List of archive names. First name is the real one, the rest are links. 22605# The last name is the one that the linker finds with -lNAME 22606library_names_spec=$lt_library_names_spec 22607 22608# The coded name of the library, if different from the real name. 22609soname_spec=$lt_soname_spec 22610 22611# Permission mode override for installation of shared libraries. 22612install_override_mode=$lt_install_override_mode 22613 22614# Command to use after installation of a shared archive. 22615postinstall_cmds=$lt_postinstall_cmds 22616 22617# Command to use after uninstallation of a shared archive. 22618postuninstall_cmds=$lt_postuninstall_cmds 22619 22620# Commands used to finish a libtool library installation in a directory. 22621finish_cmds=$lt_finish_cmds 22622 22623# As "finish_cmds", except a single script fragment to be evaled but 22624# not shown. 22625finish_eval=$lt_finish_eval 22626 22627# Whether we should hardcode library paths into libraries. 22628hardcode_into_libs=$hardcode_into_libs 22629 22630# Compile-time system search path for libraries. 22631sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22632 22633# Run-time system search path for libraries. 22634sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 22635 22636# Whether dlopen is supported. 22637dlopen_support=$enable_dlopen 22638 22639# Whether dlopen of programs is supported. 22640dlopen_self=$enable_dlopen_self 22641 22642# Whether dlopen of statically linked programs is supported. 22643dlopen_self_static=$enable_dlopen_self_static 22644 22645# Commands to strip libraries. 22646old_striplib=$lt_old_striplib 22647striplib=$lt_striplib 22648 22649 22650# The linker used to build libraries. 22651LD=$lt_LD 22652 22653# How to create reloadable object files. 22654reload_flag=$lt_reload_flag 22655reload_cmds=$lt_reload_cmds 22656 22657# Commands used to build an old-style archive. 22658old_archive_cmds=$lt_old_archive_cmds 22659 22660# A language specific compiler. 22661CC=$lt_compiler 22662 22663# Is the compiler the GNU compiler? 22664with_gcc=$GCC 22665 22666# Compiler flag to turn off builtin functions. 22667no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22668 22669# Additional compiler flags for building library objects. 22670pic_flag=$lt_lt_prog_compiler_pic 22671 22672# How to pass a linker flag through the compiler. 22673wl=$lt_lt_prog_compiler_wl 22674 22675# Compiler flag to prevent dynamic linking. 22676link_static_flag=$lt_lt_prog_compiler_static 22677 22678# Does compiler simultaneously support -c and -o options? 22679compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22680 22681# Whether or not to add -lc for building shared libraries. 22682build_libtool_need_lc=$archive_cmds_need_lc 22683 22684# Whether or not to disallow shared libs when runtime libs are static. 22685allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22686 22687# Compiler flag to allow reflexive dlopens. 22688export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22689 22690# Compiler flag to generate shared objects directly from archives. 22691whole_archive_flag_spec=$lt_whole_archive_flag_spec 22692 22693# Whether the compiler copes with passing no objects directly. 22694compiler_needs_object=$lt_compiler_needs_object 22695 22696# Create an old-style archive from a shared archive. 22697old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22698 22699# Create a temporary old-style archive to link instead of a shared archive. 22700old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22701 22702# Commands used to build a shared archive. 22703archive_cmds=$lt_archive_cmds 22704archive_expsym_cmds=$lt_archive_expsym_cmds 22705 22706# Commands used to build a loadable module if different from building 22707# a shared archive. 22708module_cmds=$lt_module_cmds 22709module_expsym_cmds=$lt_module_expsym_cmds 22710 22711# Whether we are building with GNU ld or not. 22712with_gnu_ld=$lt_with_gnu_ld 22713 22714# Flag that allows shared libraries with undefined symbols to be built. 22715allow_undefined_flag=$lt_allow_undefined_flag 22716 22717# Flag that enforces no undefined symbols. 22718no_undefined_flag=$lt_no_undefined_flag 22719 22720# Flag to hardcode \$libdir into a binary during linking. 22721# This must work even if \$libdir does not exist 22722hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22723 22724# Whether we need a single "-rpath" flag with a separated argument. 22725hardcode_libdir_separator=$lt_hardcode_libdir_separator 22726 22727# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22728# DIR into the resulting binary. 22729hardcode_direct=$hardcode_direct 22730 22731# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22732# DIR into the resulting binary and the resulting library dependency is 22733# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 22734# library is relocated. 22735hardcode_direct_absolute=$hardcode_direct_absolute 22736 22737# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22738# into the resulting binary. 22739hardcode_minus_L=$hardcode_minus_L 22740 22741# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22742# into the resulting binary. 22743hardcode_shlibpath_var=$hardcode_shlibpath_var 22744 22745# Set to "yes" if building a shared library automatically hardcodes DIR 22746# into the library and all subsequent libraries and executables linked 22747# against it. 22748hardcode_automatic=$hardcode_automatic 22749 22750# Set to yes if linker adds runtime paths of dependent libraries 22751# to runtime path list. 22752inherit_rpath=$inherit_rpath 22753 22754# Whether libtool must link a program against all its dependency libraries. 22755link_all_deplibs=$link_all_deplibs 22756 22757# Set to "yes" if exported symbols are required. 22758always_export_symbols=$always_export_symbols 22759 22760# The commands to list exported symbols. 22761export_symbols_cmds=$lt_export_symbols_cmds 22762 22763# Symbols that should not be listed in the preloaded symbols. 22764exclude_expsyms=$lt_exclude_expsyms 22765 22766# Symbols that must always be exported. 22767include_expsyms=$lt_include_expsyms 22768 22769# Commands necessary for linking programs (against libraries) with templates. 22770prelink_cmds=$lt_prelink_cmds 22771 22772# Commands necessary for finishing linking programs. 22773postlink_cmds=$lt_postlink_cmds 22774 22775# Specify filename containing input files. 22776file_list_spec=$lt_file_list_spec 22777 22778# How to hardcode a shared library path into an executable. 22779hardcode_action=$hardcode_action 22780 22781# ### END LIBTOOL CONFIG 22782 22783_LT_EOF 22784 22785 case $host_os in 22786 aix3*) 22787 cat <<\_LT_EOF >> "$cfgfile" 22788# AIX sometimes has problems with the GCC collect2 program. For some 22789# reason, if we set the COLLECT_NAMES environment variable, the problems 22790# vanish in a puff of smoke. 22791if test "X${COLLECT_NAMES+set}" != Xset; then 22792 COLLECT_NAMES= 22793 export COLLECT_NAMES 22794fi 22795_LT_EOF 22796 ;; 22797 esac 22798 22799 22800ltmain="$ac_aux_dir/ltmain.sh" 22801 22802 22803 # We use sed instead of cat because bash on DJGPP gets confused if 22804 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22805 # text mode, it properly converts lines to CR/LF. This bash problem 22806 # is reportedly fixed, but why not run on old versions too? 22807 sed '$q' "$ltmain" >> "$cfgfile" \ 22808 || (rm -f "$cfgfile"; exit 1) 22809 22810 if test x"$xsi_shell" = xyes; then 22811 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 22812func_dirname ()\ 22813{\ 22814\ case ${1} in\ 22815\ */*) func_dirname_result="${1%/*}${2}" ;;\ 22816\ * ) func_dirname_result="${3}" ;;\ 22817\ esac\ 22818} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 22819 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22820 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22821test 0 -eq $? || _lt_function_replace_fail=: 22822 22823 22824 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 22825func_basename ()\ 22826{\ 22827\ func_basename_result="${1##*/}"\ 22828} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 22829 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22830 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22831test 0 -eq $? || _lt_function_replace_fail=: 22832 22833 22834 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 22835func_dirname_and_basename ()\ 22836{\ 22837\ case ${1} in\ 22838\ */*) func_dirname_result="${1%/*}${2}" ;;\ 22839\ * ) func_dirname_result="${3}" ;;\ 22840\ esac\ 22841\ func_basename_result="${1##*/}"\ 22842} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 22843 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22844 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22845test 0 -eq $? || _lt_function_replace_fail=: 22846 22847 22848 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 22849func_stripname ()\ 22850{\ 22851\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 22852\ # positional parameters, so assign one to ordinary parameter first.\ 22853\ func_stripname_result=${3}\ 22854\ func_stripname_result=${func_stripname_result#"${1}"}\ 22855\ func_stripname_result=${func_stripname_result%"${2}"}\ 22856} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 22857 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22858 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22859test 0 -eq $? || _lt_function_replace_fail=: 22860 22861 22862 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 22863func_split_long_opt ()\ 22864{\ 22865\ func_split_long_opt_name=${1%%=*}\ 22866\ func_split_long_opt_arg=${1#*=}\ 22867} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 22868 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22869 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22870test 0 -eq $? || _lt_function_replace_fail=: 22871 22872 22873 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 22874func_split_short_opt ()\ 22875{\ 22876\ func_split_short_opt_arg=${1#??}\ 22877\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 22878} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 22879 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22880 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22881test 0 -eq $? || _lt_function_replace_fail=: 22882 22883 22884 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 22885func_lo2o ()\ 22886{\ 22887\ case ${1} in\ 22888\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 22889\ *) func_lo2o_result=${1} ;;\ 22890\ esac\ 22891} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 22892 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22893 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22894test 0 -eq $? || _lt_function_replace_fail=: 22895 22896 22897 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 22898func_xform ()\ 22899{\ 22900 func_xform_result=${1%.*}.lo\ 22901} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 22902 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22903 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22904test 0 -eq $? || _lt_function_replace_fail=: 22905 22906 22907 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 22908func_arith ()\ 22909{\ 22910 func_arith_result=$(( $* ))\ 22911} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 22912 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22913 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22914test 0 -eq $? || _lt_function_replace_fail=: 22915 22916 22917 sed -e '/^func_len ()$/,/^} # func_len /c\ 22918func_len ()\ 22919{\ 22920 func_len_result=${#1}\ 22921} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 22922 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22923 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22924test 0 -eq $? || _lt_function_replace_fail=: 22925 22926fi 22927 22928if test x"$lt_shell_append" = xyes; then 22929 sed -e '/^func_append ()$/,/^} # func_append /c\ 22930func_append ()\ 22931{\ 22932 eval "${1}+=\\${2}"\ 22933} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 22934 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22935 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22936test 0 -eq $? || _lt_function_replace_fail=: 22937 22938 22939 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 22940func_append_quoted ()\ 22941{\ 22942\ func_quote_for_eval "${2}"\ 22943\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 22944} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 22945 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22946 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22947test 0 -eq $? || _lt_function_replace_fail=: 22948 22949 22950 # Save a `func_append' function call where possible by direct use of '+=' 22951 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 22952 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22953 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22954 test 0 -eq $? || _lt_function_replace_fail=: 22955else 22956 # Save a `func_append' function call even when '+=' is not available 22957 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 22958 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22959 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22960 test 0 -eq $? || _lt_function_replace_fail=: 22961fi 22962 22963if test x"$_lt_function_replace_fail" = x":"; then 22964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 22965$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 22966fi 22967 22968 22969 mv -f "$cfgfile" "$ofile" || 22970 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22971 chmod +x "$ofile" 22972 22973 ;; 22974 22975 esac 22976done # for ac_tag 22977 22978 22979as_fn_exit 0 22980_ACEOF 22981ac_clean_files=$ac_clean_files_save 22982 22983test $ac_write_fail = 0 || 22984 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22985 22986 22987# configure is writing to config.log, and then calls config.status. 22988# config.status does its own redirection, appending to config.log. 22989# Unfortunately, on DOS this fails, as config.log is still kept open 22990# by configure, so config.status won't be able to write to it; its 22991# output is simply discarded. So we exec the FD to /dev/null, 22992# effectively closing config.log, so it can be properly (re)opened and 22993# appended to by config.status. When coming back to configure, we 22994# need to make the FD available again. 22995if test "$no_create" != yes; then 22996 ac_cs_success=: 22997 ac_config_status_args= 22998 test "$silent" = yes && 22999 ac_config_status_args="$ac_config_status_args --quiet" 23000 exec 5>/dev/null 23001 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23002 exec 5>>config.log 23003 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23004 # would make configure fail if this is the last instruction. 23005 $ac_cs_success || as_fn_exit 1 23006fi 23007if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23009$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23010fi 23011 23012 23013 23014echo "" 23015echo " Package: ${PACKAGE_NAME} ${PACKAGE_VERSION}" 23016echo "" 23017echo " Configuration" 23018echo " XDM support.........: ${have_xdmcp}" 23019echo " sendmsg fd passing..: ${sendfds}" 23020echo " Build unit tests....: ${HAVE_CHECK}" 23021echo " with html results.: ${HTML_CHECK_RESULT}" 23022echo " XCB buffer size.....: ${xcb_queue_buffer_size}" 23023echo "" 23024echo " X11 extensions" 23025echo " Composite...........: ${BUILD_COMPOSITE}" 23026echo " Damage..............: ${BUILD_DAMAGE}" 23027echo " Dpms................: ${BUILD_DPMS}" 23028echo " Dri2................: ${BUILD_DRI2}" 23029echo " Dri3................: ${BUILD_DRI3}" 23030echo " Glx.................: ${BUILD_GLX}" 23031echo " Randr...............: ${BUILD_RANDR}" 23032echo " Record..............: ${BUILD_RECORD}" 23033echo " Render..............: ${BUILD_RENDER}" 23034echo " Resource............: ${BUILD_RESOURCE}" 23035echo " Screensaver.........: ${BUILD_SCREENSAVER}" 23036echo " selinux.............: ${BUILD_SELINUX}" 23037echo " Shape...............: ${BUILD_SHAPE}" 23038echo " Shm.................: ${BUILD_SHM}" 23039echo " Sync................: ${BUILD_SYNC}" 23040echo " Xevie...............: ${BUILD_XEVIE}" 23041echo " Xfixes..............: ${BUILD_XFIXES}" 23042echo " Xfree86-dri.........: ${BUILD_XFREE86_DRI}" 23043echo " xinerama............: ${BUILD_XINERAMA}" 23044echo " xinput..............: ${BUILD_XINPUT}" 23045echo " xkb.................: ${BUILD_XKB}" 23046echo " xprint..............: ${BUILD_XPRINT}" 23047echo " xtest...............: ${BUILD_XTEST}" 23048echo " xv..................: ${BUILD_XV}" 23049echo " xvmc................: ${BUILD_XVMC}" 23050echo "" 23051echo " Used CFLAGS:" 23052echo " CPPFLAGS............: ${CPPFLAGS}" 23053echo " CFLAGS..............: ${CFLAGS}" 23054echo " Warning CFLAGS......: ${BASE_CFLAGS}" 23055echo "" 23056echo " Installation:" 23057echo " Prefix..............: ${prefix}" 23058echo "" 23059