configure revision 446f62d6
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-ati 19.0.1. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon>. 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=xorg&component=Driver/Radeon 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='xf86-video-ati' 593PACKAGE_TARNAME='xf86-video-ati' 594PACKAGE_VERSION='19.0.1' 595PACKAGE_STRING='xf86-video-ati 19.0.1' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 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 640DRIVER_NAME 641moduledir 642PCIACCESS_LIBS 643PCIACCESS_CFLAGS 644GLAMOR_FALSE 645GLAMOR_TRUE 646GBM_LIBS 647GBM_CFLAGS 648LIBGLAMOR_EGL_LIBS 649LIBGLAMOR_EGL_CFLAGS 650LIBGLAMOR_LIBS 651LIBGLAMOR_CFLAGS 652LIBGL_LIBS 653LIBGL_CFLAGS 654LIBUDEV_FALSE 655LIBUDEV_TRUE 656LIBUDEV_LIBS 657LIBUDEV_CFLAGS 658configdir 659HAS_XORG_CONF_DIR_FALSE 660HAS_XORG_CONF_DIR_TRUE 661HAVE_XEXTPROTO_71_FALSE 662HAVE_XEXTPROTO_71_TRUE 663XEXT_LIBS 664XEXT_CFLAGS 665XORG_LIBS 666XORG_CFLAGS 667LIBDRM_RADEON_LIBS 668LIBDRM_RADEON_CFLAGS 669LIBDRM_LIBS 670LIBDRM_CFLAGS 671LT_SYS_LIBRARY_PATH 672OTOOL64 673OTOOL 674LIPO 675NMEDIT 676DSYMUTIL 677MANIFEST_TOOL 678RANLIB 679ac_ct_AR 680AR 681DLLTOOL 682OBJDUMP 683LN_S 684NM 685ac_ct_DUMPBIN 686DUMPBIN 687LD 688FGREP 689LIBTOOL 690MAN_SUBSTS 691XORG_MAN_PAGE 692ADMIN_MAN_DIR 693DRIVER_MAN_DIR 694MISC_MAN_DIR 695FILE_MAN_DIR 696LIB_MAN_DIR 697APP_MAN_DIR 698ADMIN_MAN_SUFFIX 699DRIVER_MAN_SUFFIX 700MISC_MAN_SUFFIX 701FILE_MAN_SUFFIX 702LIB_MAN_SUFFIX 703APP_MAN_SUFFIX 704SED 705host_os 706host_vendor 707host_cpu 708host 709build_os 710build_vendor 711build_cpu 712build 713INSTALL_CMD 714PKG_CONFIG_LIBDIR 715PKG_CONFIG_PATH 716PKG_CONFIG 717CHANGELOG_CMD 718STRICT_CFLAGS 719CWARNFLAGS 720BASE_CFLAGS 721EGREP 722GREP 723CPP 724am__fastdepCC_FALSE 725am__fastdepCC_TRUE 726CCDEPMODE 727am__nodep 728AMDEPBACKSLASH 729AMDEP_FALSE 730AMDEP_TRUE 731am__include 732DEPDIR 733OBJEXT 734EXEEXT 735ac_ct_CC 736CPPFLAGS 737LDFLAGS 738CFLAGS 739CC 740AM_BACKSLASH 741AM_DEFAULT_VERBOSITY 742AM_DEFAULT_V 743AM_V 744am__untar 745am__tar 746AMTAR 747am__leading_dot 748SET_MAKE 749AWK 750mkdir_p 751MKDIR_P 752INSTALL_STRIP_PROGRAM 753STRIP 754install_sh 755MAKEINFO 756AUTOHEADER 757AUTOMAKE 758AUTOCONF 759ACLOCAL 760VERSION 761PACKAGE 762CYGPATH_W 763am__isrc 764INSTALL_DATA 765INSTALL_SCRIPT 766INSTALL_PROGRAM 767target_alias 768host_alias 769build_alias 770LIBS 771ECHO_T 772ECHO_N 773ECHO_C 774DEFS 775mandir 776localedir 777libdir 778psdir 779pdfdir 780dvidir 781htmldir 782infodir 783docdir 784oldincludedir 785includedir 786runstatedir 787localstatedir 788sharedstatedir 789sysconfdir 790datadir 791datarootdir 792libexecdir 793sbindir 794bindir 795program_transform_name 796prefix 797exec_prefix 798PACKAGE_URL 799PACKAGE_BUGREPORT 800PACKAGE_STRING 801PACKAGE_VERSION 802PACKAGE_TARNAME 803PACKAGE_NAME 804PATH_SEPARATOR 805SHELL 806am__quote' 807ac_subst_files='' 808ac_user_opts=' 809enable_option_checking 810enable_silent_rules 811enable_largefile 812enable_dependency_tracking 813enable_selective_werror 814enable_strict_compilation 815enable_static 816enable_shared 817with_pic 818enable_fast_install 819with_aix_soname 820with_gnu_ld 821with_sysroot 822enable_libtool_lock 823with_xorg_module_dir 824with_xorg_conf_dir 825enable_udev 826enable_glamor 827' 828 ac_precious_vars='build_alias 829host_alias 830target_alias 831CC 832CFLAGS 833LDFLAGS 834LIBS 835CPPFLAGS 836CPP 837PKG_CONFIG 838PKG_CONFIG_PATH 839PKG_CONFIG_LIBDIR 840LT_SYS_LIBRARY_PATH 841LIBDRM_CFLAGS 842LIBDRM_LIBS 843LIBDRM_RADEON_CFLAGS 844LIBDRM_RADEON_LIBS 845XORG_CFLAGS 846XORG_LIBS 847XEXT_CFLAGS 848XEXT_LIBS 849LIBUDEV_CFLAGS 850LIBUDEV_LIBS 851LIBGL_CFLAGS 852LIBGL_LIBS 853LIBGLAMOR_CFLAGS 854LIBGLAMOR_LIBS 855LIBGLAMOR_EGL_CFLAGS 856LIBGLAMOR_EGL_LIBS 857GBM_CFLAGS 858GBM_LIBS 859PCIACCESS_CFLAGS 860PCIACCESS_LIBS' 861 862 863# Initialize some variables set by options. 864ac_init_help= 865ac_init_version=false 866ac_unrecognized_opts= 867ac_unrecognized_sep= 868# The variables have the same names as the options, with 869# dashes changed to underlines. 870cache_file=/dev/null 871exec_prefix=NONE 872no_create= 873no_recursion= 874prefix=NONE 875program_prefix=NONE 876program_suffix=NONE 877program_transform_name=s,x,x, 878silent= 879site= 880srcdir= 881verbose= 882x_includes=NONE 883x_libraries=NONE 884 885# Installation directory options. 886# These are left unexpanded so users can "make install exec_prefix=/foo" 887# and all the variables that are supposed to be based on exec_prefix 888# by default will actually change. 889# Use braces instead of parens because sh, perl, etc. also accept them. 890# (The list follows the same order as the GNU Coding Standards.) 891bindir='${exec_prefix}/bin' 892sbindir='${exec_prefix}/sbin' 893libexecdir='${exec_prefix}/libexec' 894datarootdir='${prefix}/share' 895datadir='${datarootdir}' 896sysconfdir='${prefix}/etc' 897sharedstatedir='${prefix}/com' 898localstatedir='${prefix}/var' 899runstatedir='${localstatedir}/run' 900includedir='${prefix}/include' 901oldincludedir='/usr/include' 902docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 903infodir='${datarootdir}/info' 904htmldir='${docdir}' 905dvidir='${docdir}' 906pdfdir='${docdir}' 907psdir='${docdir}' 908libdir='${exec_prefix}/lib' 909localedir='${datarootdir}/locale' 910mandir='${datarootdir}/man' 911 912ac_prev= 913ac_dashdash= 914for ac_option 915do 916 # If the previous option needs an argument, assign it. 917 if test -n "$ac_prev"; then 918 eval $ac_prev=\$ac_option 919 ac_prev= 920 continue 921 fi 922 923 case $ac_option in 924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 925 *=) ac_optarg= ;; 926 *) ac_optarg=yes ;; 927 esac 928 929 # Accept the important Cygnus configure options, so we can diagnose typos. 930 931 case $ac_dashdash$ac_option in 932 --) 933 ac_dashdash=yes ;; 934 935 -bindir | --bindir | --bindi | --bind | --bin | --bi) 936 ac_prev=bindir ;; 937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 938 bindir=$ac_optarg ;; 939 940 -build | --build | --buil | --bui | --bu) 941 ac_prev=build_alias ;; 942 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 943 build_alias=$ac_optarg ;; 944 945 -cache-file | --cache-file | --cache-fil | --cache-fi \ 946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 947 ac_prev=cache_file ;; 948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 950 cache_file=$ac_optarg ;; 951 952 --config-cache | -C) 953 cache_file=config.cache ;; 954 955 -datadir | --datadir | --datadi | --datad) 956 ac_prev=datadir ;; 957 -datadir=* | --datadir=* | --datadi=* | --datad=*) 958 datadir=$ac_optarg ;; 959 960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 961 | --dataroo | --dataro | --datar) 962 ac_prev=datarootdir ;; 963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 965 datarootdir=$ac_optarg ;; 966 967 -disable-* | --disable-*) 968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 969 # Reject names that are not valid shell variable names. 970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 971 as_fn_error $? "invalid feature name: $ac_useropt" 972 ac_useropt_orig=$ac_useropt 973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 974 case $ac_user_opts in 975 *" 976"enable_$ac_useropt" 977"*) ;; 978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 979 ac_unrecognized_sep=', ';; 980 esac 981 eval enable_$ac_useropt=no ;; 982 983 -docdir | --docdir | --docdi | --doc | --do) 984 ac_prev=docdir ;; 985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 986 docdir=$ac_optarg ;; 987 988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 989 ac_prev=dvidir ;; 990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 991 dvidir=$ac_optarg ;; 992 993 -enable-* | --enable-*) 994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 995 # Reject names that are not valid shell variable names. 996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 997 as_fn_error $? "invalid feature name: $ac_useropt" 998 ac_useropt_orig=$ac_useropt 999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1000 case $ac_user_opts in 1001 *" 1002"enable_$ac_useropt" 1003"*) ;; 1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1005 ac_unrecognized_sep=', ';; 1006 esac 1007 eval enable_$ac_useropt=\$ac_optarg ;; 1008 1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1011 | --exec | --exe | --ex) 1012 ac_prev=exec_prefix ;; 1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1015 | --exec=* | --exe=* | --ex=*) 1016 exec_prefix=$ac_optarg ;; 1017 1018 -gas | --gas | --ga | --g) 1019 # Obsolete; use --with-gas. 1020 with_gas=yes ;; 1021 1022 -help | --help | --hel | --he | -h) 1023 ac_init_help=long ;; 1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1025 ac_init_help=recursive ;; 1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1027 ac_init_help=short ;; 1028 1029 -host | --host | --hos | --ho) 1030 ac_prev=host_alias ;; 1031 -host=* | --host=* | --hos=* | --ho=*) 1032 host_alias=$ac_optarg ;; 1033 1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1035 ac_prev=htmldir ;; 1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1037 | --ht=*) 1038 htmldir=$ac_optarg ;; 1039 1040 -includedir | --includedir | --includedi | --included | --include \ 1041 | --includ | --inclu | --incl | --inc) 1042 ac_prev=includedir ;; 1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1044 | --includ=* | --inclu=* | --incl=* | --inc=*) 1045 includedir=$ac_optarg ;; 1046 1047 -infodir | --infodir | --infodi | --infod | --info | --inf) 1048 ac_prev=infodir ;; 1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1050 infodir=$ac_optarg ;; 1051 1052 -libdir | --libdir | --libdi | --libd) 1053 ac_prev=libdir ;; 1054 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1055 libdir=$ac_optarg ;; 1056 1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1058 | --libexe | --libex | --libe) 1059 ac_prev=libexecdir ;; 1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1061 | --libexe=* | --libex=* | --libe=*) 1062 libexecdir=$ac_optarg ;; 1063 1064 -localedir | --localedir | --localedi | --localed | --locale) 1065 ac_prev=localedir ;; 1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1067 localedir=$ac_optarg ;; 1068 1069 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1070 | --localstate | --localstat | --localsta | --localst | --locals) 1071 ac_prev=localstatedir ;; 1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1074 localstatedir=$ac_optarg ;; 1075 1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1077 ac_prev=mandir ;; 1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1079 mandir=$ac_optarg ;; 1080 1081 -nfp | --nfp | --nf) 1082 # Obsolete; use --without-fp. 1083 with_fp=no ;; 1084 1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1086 | --no-cr | --no-c | -n) 1087 no_create=yes ;; 1088 1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1091 no_recursion=yes ;; 1092 1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1095 | --oldin | --oldi | --old | --ol | --o) 1096 ac_prev=oldincludedir ;; 1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1100 oldincludedir=$ac_optarg ;; 1101 1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1103 ac_prev=prefix ;; 1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1105 prefix=$ac_optarg ;; 1106 1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1108 | --program-pre | --program-pr | --program-p) 1109 ac_prev=program_prefix ;; 1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1112 program_prefix=$ac_optarg ;; 1113 1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1115 | --program-suf | --program-su | --program-s) 1116 ac_prev=program_suffix ;; 1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1119 program_suffix=$ac_optarg ;; 1120 1121 -program-transform-name | --program-transform-name \ 1122 | --program-transform-nam | --program-transform-na \ 1123 | --program-transform-n | --program-transform- \ 1124 | --program-transform | --program-transfor \ 1125 | --program-transfo | --program-transf \ 1126 | --program-trans | --program-tran \ 1127 | --progr-tra | --program-tr | --program-t) 1128 ac_prev=program_transform_name ;; 1129 -program-transform-name=* | --program-transform-name=* \ 1130 | --program-transform-nam=* | --program-transform-na=* \ 1131 | --program-transform-n=* | --program-transform-=* \ 1132 | --program-transform=* | --program-transfor=* \ 1133 | --program-transfo=* | --program-transf=* \ 1134 | --program-trans=* | --program-tran=* \ 1135 | --progr-tra=* | --program-tr=* | --program-t=*) 1136 program_transform_name=$ac_optarg ;; 1137 1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1139 ac_prev=pdfdir ;; 1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1141 pdfdir=$ac_optarg ;; 1142 1143 -psdir | --psdir | --psdi | --psd | --ps) 1144 ac_prev=psdir ;; 1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1146 psdir=$ac_optarg ;; 1147 1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1149 | -silent | --silent | --silen | --sile | --sil) 1150 silent=yes ;; 1151 1152 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1153 | --runstate | --runstat | --runsta | --runst | --runs \ 1154 | --run | --ru | --r) 1155 ac_prev=runstatedir ;; 1156 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1157 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1158 | --run=* | --ru=* | --r=*) 1159 runstatedir=$ac_optarg ;; 1160 1161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1162 ac_prev=sbindir ;; 1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1164 | --sbi=* | --sb=*) 1165 sbindir=$ac_optarg ;; 1166 1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1169 | --sharedst | --shareds | --shared | --share | --shar \ 1170 | --sha | --sh) 1171 ac_prev=sharedstatedir ;; 1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1175 | --sha=* | --sh=*) 1176 sharedstatedir=$ac_optarg ;; 1177 1178 -site | --site | --sit) 1179 ac_prev=site ;; 1180 -site=* | --site=* | --sit=*) 1181 site=$ac_optarg ;; 1182 1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1184 ac_prev=srcdir ;; 1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1186 srcdir=$ac_optarg ;; 1187 1188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1189 | --syscon | --sysco | --sysc | --sys | --sy) 1190 ac_prev=sysconfdir ;; 1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1193 sysconfdir=$ac_optarg ;; 1194 1195 -target | --target | --targe | --targ | --tar | --ta | --t) 1196 ac_prev=target_alias ;; 1197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1198 target_alias=$ac_optarg ;; 1199 1200 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1201 verbose=yes ;; 1202 1203 -version | --version | --versio | --versi | --vers | -V) 1204 ac_init_version=: ;; 1205 1206 -with-* | --with-*) 1207 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1208 # Reject names that are not valid shell variable names. 1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1210 as_fn_error $? "invalid package name: $ac_useropt" 1211 ac_useropt_orig=$ac_useropt 1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1213 case $ac_user_opts in 1214 *" 1215"with_$ac_useropt" 1216"*) ;; 1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1218 ac_unrecognized_sep=', ';; 1219 esac 1220 eval with_$ac_useropt=\$ac_optarg ;; 1221 1222 -without-* | --without-*) 1223 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1224 # Reject names that are not valid shell variable names. 1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1226 as_fn_error $? "invalid package name: $ac_useropt" 1227 ac_useropt_orig=$ac_useropt 1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1229 case $ac_user_opts in 1230 *" 1231"with_$ac_useropt" 1232"*) ;; 1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1234 ac_unrecognized_sep=', ';; 1235 esac 1236 eval with_$ac_useropt=no ;; 1237 1238 --x) 1239 # Obsolete; use --with-x. 1240 with_x=yes ;; 1241 1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1243 | --x-incl | --x-inc | --x-in | --x-i) 1244 ac_prev=x_includes ;; 1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1247 x_includes=$ac_optarg ;; 1248 1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1251 ac_prev=x_libraries ;; 1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1254 x_libraries=$ac_optarg ;; 1255 1256 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1257Try \`$0 --help' for more information" 1258 ;; 1259 1260 *=*) 1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1262 # Reject names that are not valid shell variable names. 1263 case $ac_envvar in #( 1264 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1265 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1266 esac 1267 eval $ac_envvar=\$ac_optarg 1268 export $ac_envvar ;; 1269 1270 *) 1271 # FIXME: should be removed in autoconf 3.0. 1272 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1274 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1275 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1276 ;; 1277 1278 esac 1279done 1280 1281if test -n "$ac_prev"; then 1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1283 as_fn_error $? "missing argument to $ac_option" 1284fi 1285 1286if test -n "$ac_unrecognized_opts"; then 1287 case $enable_option_checking in 1288 no) ;; 1289 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1290 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1291 esac 1292fi 1293 1294# Check all directory arguments for consistency. 1295for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1296 datadir sysconfdir sharedstatedir localstatedir includedir \ 1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1298 libdir localedir mandir runstatedir 1299do 1300 eval ac_val=\$$ac_var 1301 # Remove trailing slashes. 1302 case $ac_val in 1303 */ ) 1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1305 eval $ac_var=\$ac_val;; 1306 esac 1307 # Be sure to have absolute directory names. 1308 case $ac_val in 1309 [\\/$]* | ?:[\\/]* ) continue;; 1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1311 esac 1312 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1313done 1314 1315# There might be people who depend on the old broken behavior: `$host' 1316# used to hold the argument of --host etc. 1317# FIXME: To remove some day. 1318build=$build_alias 1319host=$host_alias 1320target=$target_alias 1321 1322# FIXME: To remove some day. 1323if test "x$host_alias" != x; then 1324 if test "x$build_alias" = x; then 1325 cross_compiling=maybe 1326 elif test "x$build_alias" != "x$host_alias"; then 1327 cross_compiling=yes 1328 fi 1329fi 1330 1331ac_tool_prefix= 1332test -n "$host_alias" && ac_tool_prefix=$host_alias- 1333 1334test "$silent" = yes && exec 6>/dev/null 1335 1336 1337ac_pwd=`pwd` && test -n "$ac_pwd" && 1338ac_ls_di=`ls -di .` && 1339ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1340 as_fn_error $? "working directory cannot be determined" 1341test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1342 as_fn_error $? "pwd does not report name of working directory" 1343 1344 1345# Find the source files, if location was not specified. 1346if test -z "$srcdir"; then 1347 ac_srcdir_defaulted=yes 1348 # Try the directory containing this script, then the parent directory. 1349 ac_confdir=`$as_dirname -- "$as_myself" || 1350$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1351 X"$as_myself" : 'X\(//\)[^/]' \| \ 1352 X"$as_myself" : 'X\(//\)$' \| \ 1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1354$as_echo X"$as_myself" | 1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1356 s//\1/ 1357 q 1358 } 1359 /^X\(\/\/\)[^/].*/{ 1360 s//\1/ 1361 q 1362 } 1363 /^X\(\/\/\)$/{ 1364 s//\1/ 1365 q 1366 } 1367 /^X\(\/\).*/{ 1368 s//\1/ 1369 q 1370 } 1371 s/.*/./; q'` 1372 srcdir=$ac_confdir 1373 if test ! -r "$srcdir/$ac_unique_file"; then 1374 srcdir=.. 1375 fi 1376else 1377 ac_srcdir_defaulted=no 1378fi 1379if test ! -r "$srcdir/$ac_unique_file"; then 1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1381 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1382fi 1383ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1384ac_abs_confdir=`( 1385 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1386 pwd)` 1387# When building in place, set srcdir=. 1388if test "$ac_abs_confdir" = "$ac_pwd"; then 1389 srcdir=. 1390fi 1391# Remove unnecessary trailing slashes from srcdir. 1392# Double slashes in file names in object file debugging info 1393# mess up M-x gdb in Emacs. 1394case $srcdir in 1395*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1396esac 1397for ac_var in $ac_precious_vars; do 1398 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1399 eval ac_env_${ac_var}_value=\$${ac_var} 1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1401 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1402done 1403 1404# 1405# Report the --help message. 1406# 1407if test "$ac_init_help" = "long"; then 1408 # Omit some internal or obsolete options to make the list less imposing. 1409 # This message is too long to be a string in the A/UX 3.1 sh. 1410 cat <<_ACEOF 1411\`configure' configures xf86-video-ati 19.0.1 to adapt to many kinds of systems. 1412 1413Usage: $0 [OPTION]... [VAR=VALUE]... 1414 1415To assign environment variables (e.g., CC, CFLAGS...), specify them as 1416VAR=VALUE. See below for descriptions of some of the useful variables. 1417 1418Defaults for the options are specified in brackets. 1419 1420Configuration: 1421 -h, --help display this help and exit 1422 --help=short display options specific to this package 1423 --help=recursive display the short help of all the included packages 1424 -V, --version display version information and exit 1425 -q, --quiet, --silent do not print \`checking ...' messages 1426 --cache-file=FILE cache test results in FILE [disabled] 1427 -C, --config-cache alias for \`--cache-file=config.cache' 1428 -n, --no-create do not create output files 1429 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1430 1431Installation directories: 1432 --prefix=PREFIX install architecture-independent files in PREFIX 1433 [$ac_default_prefix] 1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1435 [PREFIX] 1436 1437By default, \`make install' will install all the files in 1438\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1439an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1440for instance \`--prefix=\$HOME'. 1441 1442For better control, use the options below. 1443 1444Fine tuning of the installation directories: 1445 --bindir=DIR user executables [EPREFIX/bin] 1446 --sbindir=DIR system admin executables [EPREFIX/sbin] 1447 --libexecdir=DIR program executables [EPREFIX/libexec] 1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1451 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1452 --libdir=DIR object code libraries [EPREFIX/lib] 1453 --includedir=DIR C header files [PREFIX/include] 1454 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1457 --infodir=DIR info documentation [DATAROOTDIR/info] 1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1459 --mandir=DIR man documentation [DATAROOTDIR/man] 1460 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-ati] 1461 --htmldir=DIR html documentation [DOCDIR] 1462 --dvidir=DIR dvi documentation [DOCDIR] 1463 --pdfdir=DIR pdf documentation [DOCDIR] 1464 --psdir=DIR ps documentation [DOCDIR] 1465_ACEOF 1466 1467 cat <<\_ACEOF 1468 1469Program names: 1470 --program-prefix=PREFIX prepend PREFIX to installed program names 1471 --program-suffix=SUFFIX append SUFFIX to installed program names 1472 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1473 1474System types: 1475 --build=BUILD configure for building on BUILD [guessed] 1476 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1477_ACEOF 1478fi 1479 1480if test -n "$ac_init_help"; then 1481 case $ac_init_help in 1482 short | recursive ) echo "Configuration of xf86-video-ati 19.0.1:";; 1483 esac 1484 cat <<\_ACEOF 1485 1486Optional Features: 1487 --disable-option-checking ignore unrecognized --enable/--with options 1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1490 --enable-silent-rules less verbose build output (undo: "make V=1") 1491 --disable-silent-rules verbose build output (undo: "make V=0") 1492 --disable-largefile omit support for large files 1493 --enable-dependency-tracking 1494 do not reject slow dependency extractors 1495 --disable-dependency-tracking 1496 speeds up one-time build 1497 --disable-selective-werror 1498 Turn off selective compiler errors. (default: 1499 enabled) 1500 --enable-strict-compilation 1501 Enable all warnings from compiler and make them 1502 errors (default: disabled) 1503 --enable-static[=PKGS] build static libraries [default=no] 1504 --enable-shared[=PKGS] build shared libraries [default=yes] 1505 --enable-fast-install[=PKGS] 1506 optimize for fast installation [default=yes] 1507 --disable-libtool-lock avoid locking (might break parallel builds) 1508 --disable-udev Disable libudev support [default=auto] 1509 --disable-glamor Disable glamor, a new GL-based acceleration 1510 [default=enabled] 1511 1512Optional Packages: 1513 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1514 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1515 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1516 both] 1517 --with-aix-soname=aix|svr4|both 1518 shared library versioning (aka "SONAME") variant to 1519 provide on AIX, [default=aix]. 1520 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1521 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1522 compiler's sysroot if not specified). 1523 --with-xorg-module-dir=DIR 1524 Default xorg module directory 1525 [[default=$libdir/xorg/modules]] 1526 --with-xorg-conf-dir=DIR 1527 Default xorg.conf.d directory 1528 [[default=${prefix}/share/X11/xorg.conf.d]] 1529 1530Some influential environment variables: 1531 CC C compiler command 1532 CFLAGS C compiler flags 1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1534 nonstandard directory <lib dir> 1535 LIBS libraries to pass to the linker, e.g. -l<library> 1536 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1537 you have headers in a nonstandard directory <include dir> 1538 CPP C preprocessor 1539 PKG_CONFIG path to pkg-config utility 1540 PKG_CONFIG_PATH 1541 directories to add to pkg-config's search path 1542 PKG_CONFIG_LIBDIR 1543 path overriding pkg-config's built-in search path 1544 LT_SYS_LIBRARY_PATH 1545 User-defined run-time library search path. 1546 LIBDRM_CFLAGS 1547 C compiler flags for LIBDRM, overriding pkg-config 1548 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config 1549 LIBDRM_RADEON_CFLAGS 1550 C compiler flags for LIBDRM_RADEON, overriding pkg-config 1551 LIBDRM_RADEON_LIBS 1552 linker flags for LIBDRM_RADEON, overriding pkg-config 1553 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1554 XORG_LIBS linker flags for XORG, overriding pkg-config 1555 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1556 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1557 LIBUDEV_CFLAGS 1558 C compiler flags for LIBUDEV, overriding pkg-config 1559 LIBUDEV_LIBS 1560 linker flags for LIBUDEV, overriding pkg-config 1561 LIBGL_CFLAGS 1562 C compiler flags for LIBGL, overriding pkg-config 1563 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config 1564 LIBGLAMOR_CFLAGS 1565 C compiler flags for LIBGLAMOR, overriding pkg-config 1566 LIBGLAMOR_LIBS 1567 linker flags for LIBGLAMOR, overriding pkg-config 1568 LIBGLAMOR_EGL_CFLAGS 1569 C compiler flags for LIBGLAMOR_EGL, overriding pkg-config 1570 LIBGLAMOR_EGL_LIBS 1571 linker flags for LIBGLAMOR_EGL, overriding pkg-config 1572 GBM_CFLAGS C compiler flags for GBM, overriding pkg-config 1573 GBM_LIBS linker flags for GBM, overriding pkg-config 1574 PCIACCESS_CFLAGS 1575 C compiler flags for PCIACCESS, overriding pkg-config 1576 PCIACCESS_LIBS 1577 linker flags for PCIACCESS, overriding pkg-config 1578 1579Use these variables to override the choices made by `configure' or to help 1580it to find libraries and programs with nonstandard names/locations. 1581 1582Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon>. 1583_ACEOF 1584ac_status=$? 1585fi 1586 1587if test "$ac_init_help" = "recursive"; then 1588 # If there are subdirs, report their specific --help. 1589 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1590 test -d "$ac_dir" || 1591 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1592 continue 1593 ac_builddir=. 1594 1595case "$ac_dir" in 1596.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1597*) 1598 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1599 # A ".." for each directory in $ac_dir_suffix. 1600 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1601 case $ac_top_builddir_sub in 1602 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1603 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1604 esac ;; 1605esac 1606ac_abs_top_builddir=$ac_pwd 1607ac_abs_builddir=$ac_pwd$ac_dir_suffix 1608# for backward compatibility: 1609ac_top_builddir=$ac_top_build_prefix 1610 1611case $srcdir in 1612 .) # We are building in place. 1613 ac_srcdir=. 1614 ac_top_srcdir=$ac_top_builddir_sub 1615 ac_abs_top_srcdir=$ac_pwd ;; 1616 [\\/]* | ?:[\\/]* ) # Absolute name. 1617 ac_srcdir=$srcdir$ac_dir_suffix; 1618 ac_top_srcdir=$srcdir 1619 ac_abs_top_srcdir=$srcdir ;; 1620 *) # Relative name. 1621 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1622 ac_top_srcdir=$ac_top_build_prefix$srcdir 1623 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1624esac 1625ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1626 1627 cd "$ac_dir" || { ac_status=$?; continue; } 1628 # Check for guested configure. 1629 if test -f "$ac_srcdir/configure.gnu"; then 1630 echo && 1631 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1632 elif test -f "$ac_srcdir/configure"; then 1633 echo && 1634 $SHELL "$ac_srcdir/configure" --help=recursive 1635 else 1636 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1637 fi || ac_status=$? 1638 cd "$ac_pwd" || { ac_status=$?; break; } 1639 done 1640fi 1641 1642test -n "$ac_init_help" && exit $ac_status 1643if $ac_init_version; then 1644 cat <<\_ACEOF 1645xf86-video-ati configure 19.0.1 1646generated by GNU Autoconf 2.69 1647 1648Copyright (C) 2012 Free Software Foundation, Inc. 1649This configure script is free software; the Free Software Foundation 1650gives unlimited permission to copy, distribute and modify it. 1651_ACEOF 1652 exit 1653fi 1654 1655## ------------------------ ## 1656## Autoconf initialization. ## 1657## ------------------------ ## 1658 1659# ac_fn_c_try_compile LINENO 1660# -------------------------- 1661# Try to compile conftest.$ac_ext, and return whether this succeeded. 1662ac_fn_c_try_compile () 1663{ 1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1665 rm -f conftest.$ac_objext 1666 if { { ac_try="$ac_compile" 1667case "(($ac_try" in 1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1669 *) ac_try_echo=$ac_try;; 1670esac 1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1672$as_echo "$ac_try_echo"; } >&5 1673 (eval "$ac_compile") 2>conftest.err 1674 ac_status=$? 1675 if test -s conftest.err; then 1676 grep -v '^ *+' conftest.err >conftest.er1 1677 cat conftest.er1 >&5 1678 mv -f conftest.er1 conftest.err 1679 fi 1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1681 test $ac_status = 0; } && { 1682 test -z "$ac_c_werror_flag" || 1683 test ! -s conftest.err 1684 } && test -s conftest.$ac_objext; then : 1685 ac_retval=0 1686else 1687 $as_echo "$as_me: failed program was:" >&5 1688sed 's/^/| /' conftest.$ac_ext >&5 1689 1690 ac_retval=1 1691fi 1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1693 as_fn_set_status $ac_retval 1694 1695} # ac_fn_c_try_compile 1696 1697# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1698# --------------------------------------------- 1699# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1700# accordingly. 1701ac_fn_c_check_decl () 1702{ 1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1704 as_decl_name=`echo $2|sed 's/ *(.*//'` 1705 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1707$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1708if eval \${$3+:} false; then : 1709 $as_echo_n "(cached) " >&6 1710else 1711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1712/* end confdefs.h. */ 1713$4 1714int 1715main () 1716{ 1717#ifndef $as_decl_name 1718#ifdef __cplusplus 1719 (void) $as_decl_use; 1720#else 1721 (void) $as_decl_name; 1722#endif 1723#endif 1724 1725 ; 1726 return 0; 1727} 1728_ACEOF 1729if ac_fn_c_try_compile "$LINENO"; then : 1730 eval "$3=yes" 1731else 1732 eval "$3=no" 1733fi 1734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1735fi 1736eval ac_res=\$$3 1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1738$as_echo "$ac_res" >&6; } 1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1740 1741} # ac_fn_c_check_decl 1742 1743# ac_fn_c_try_cpp LINENO 1744# ---------------------- 1745# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1746ac_fn_c_try_cpp () 1747{ 1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1749 if { { ac_try="$ac_cpp conftest.$ac_ext" 1750case "(($ac_try" in 1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1752 *) ac_try_echo=$ac_try;; 1753esac 1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1755$as_echo "$ac_try_echo"; } >&5 1756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1757 ac_status=$? 1758 if test -s conftest.err; then 1759 grep -v '^ *+' conftest.err >conftest.er1 1760 cat conftest.er1 >&5 1761 mv -f conftest.er1 conftest.err 1762 fi 1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1764 test $ac_status = 0; } > conftest.i && { 1765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1766 test ! -s conftest.err 1767 }; then : 1768 ac_retval=0 1769else 1770 $as_echo "$as_me: failed program was:" >&5 1771sed 's/^/| /' conftest.$ac_ext >&5 1772 1773 ac_retval=1 1774fi 1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1776 as_fn_set_status $ac_retval 1777 1778} # ac_fn_c_try_cpp 1779 1780# ac_fn_c_try_run LINENO 1781# ---------------------- 1782# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1783# that executables *can* be run. 1784ac_fn_c_try_run () 1785{ 1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1787 if { { ac_try="$ac_link" 1788case "(($ac_try" in 1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1790 *) ac_try_echo=$ac_try;; 1791esac 1792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1793$as_echo "$ac_try_echo"; } >&5 1794 (eval "$ac_link") 2>&5 1795 ac_status=$? 1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1797 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1798 { { case "(($ac_try" in 1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1800 *) ac_try_echo=$ac_try;; 1801esac 1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1803$as_echo "$ac_try_echo"; } >&5 1804 (eval "$ac_try") 2>&5 1805 ac_status=$? 1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1807 test $ac_status = 0; }; }; then : 1808 ac_retval=0 1809else 1810 $as_echo "$as_me: program exited with status $ac_status" >&5 1811 $as_echo "$as_me: failed program was:" >&5 1812sed 's/^/| /' conftest.$ac_ext >&5 1813 1814 ac_retval=$ac_status 1815fi 1816 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1818 as_fn_set_status $ac_retval 1819 1820} # ac_fn_c_try_run 1821 1822# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1823# ------------------------------------------------------- 1824# Tests whether HEADER exists and can be compiled using the include files in 1825# INCLUDES, setting the cache variable VAR accordingly. 1826ac_fn_c_check_header_compile () 1827{ 1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1830$as_echo_n "checking for $2... " >&6; } 1831if eval \${$3+:} false; then : 1832 $as_echo_n "(cached) " >&6 1833else 1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1835/* end confdefs.h. */ 1836$4 1837#include <$2> 1838_ACEOF 1839if ac_fn_c_try_compile "$LINENO"; then : 1840 eval "$3=yes" 1841else 1842 eval "$3=no" 1843fi 1844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1845fi 1846eval ac_res=\$$3 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1848$as_echo "$ac_res" >&6; } 1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1850 1851} # ac_fn_c_check_header_compile 1852 1853# ac_fn_c_try_link LINENO 1854# ----------------------- 1855# Try to link conftest.$ac_ext, and return whether this succeeded. 1856ac_fn_c_try_link () 1857{ 1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1859 rm -f conftest.$ac_objext conftest$ac_exeext 1860 if { { ac_try="$ac_link" 1861case "(($ac_try" in 1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1863 *) ac_try_echo=$ac_try;; 1864esac 1865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1866$as_echo "$ac_try_echo"; } >&5 1867 (eval "$ac_link") 2>conftest.err 1868 ac_status=$? 1869 if test -s conftest.err; then 1870 grep -v '^ *+' conftest.err >conftest.er1 1871 cat conftest.er1 >&5 1872 mv -f conftest.er1 conftest.err 1873 fi 1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1875 test $ac_status = 0; } && { 1876 test -z "$ac_c_werror_flag" || 1877 test ! -s conftest.err 1878 } && test -s conftest$ac_exeext && { 1879 test "$cross_compiling" = yes || 1880 test -x conftest$ac_exeext 1881 }; then : 1882 ac_retval=0 1883else 1884 $as_echo "$as_me: failed program was:" >&5 1885sed 's/^/| /' conftest.$ac_ext >&5 1886 1887 ac_retval=1 1888fi 1889 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1890 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1891 # interfere with the next link command; also delete a directory that is 1892 # left behind by Apple's compiler. We do this before executing the actions. 1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1895 as_fn_set_status $ac_retval 1896 1897} # ac_fn_c_try_link 1898 1899# ac_fn_c_check_func LINENO FUNC VAR 1900# ---------------------------------- 1901# Tests whether FUNC exists, setting the cache variable VAR accordingly 1902ac_fn_c_check_func () 1903{ 1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1906$as_echo_n "checking for $2... " >&6; } 1907if eval \${$3+:} false; then : 1908 $as_echo_n "(cached) " >&6 1909else 1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1911/* end confdefs.h. */ 1912/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1913 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1914#define $2 innocuous_$2 1915 1916/* System header to define __stub macros and hopefully few prototypes, 1917 which can conflict with char $2 (); below. 1918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1919 <limits.h> exists even on freestanding compilers. */ 1920 1921#ifdef __STDC__ 1922# include <limits.h> 1923#else 1924# include <assert.h> 1925#endif 1926 1927#undef $2 1928 1929/* Override any GCC internal prototype to avoid an error. 1930 Use char because int might match the return type of a GCC 1931 builtin and then its argument prototype would still apply. */ 1932#ifdef __cplusplus 1933extern "C" 1934#endif 1935char $2 (); 1936/* The GNU C library defines this for functions which it implements 1937 to always fail with ENOSYS. Some functions are actually named 1938 something starting with __ and the normal name is an alias. */ 1939#if defined __stub_$2 || defined __stub___$2 1940choke me 1941#endif 1942 1943int 1944main () 1945{ 1946return $2 (); 1947 ; 1948 return 0; 1949} 1950_ACEOF 1951if ac_fn_c_try_link "$LINENO"; then : 1952 eval "$3=yes" 1953else 1954 eval "$3=no" 1955fi 1956rm -f core conftest.err conftest.$ac_objext \ 1957 conftest$ac_exeext conftest.$ac_ext 1958fi 1959eval ac_res=\$$3 1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1961$as_echo "$ac_res" >&6; } 1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1963 1964} # ac_fn_c_check_func 1965 1966# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1967# ------------------------------------------------------- 1968# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1969# the include files in INCLUDES and setting the cache variable VAR 1970# accordingly. 1971ac_fn_c_check_header_mongrel () 1972{ 1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1974 if eval \${$3+:} false; then : 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1976$as_echo_n "checking for $2... " >&6; } 1977if eval \${$3+:} false; then : 1978 $as_echo_n "(cached) " >&6 1979fi 1980eval ac_res=\$$3 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1982$as_echo "$ac_res" >&6; } 1983else 1984 # Is the header compilable? 1985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1986$as_echo_n "checking $2 usability... " >&6; } 1987cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1988/* end confdefs.h. */ 1989$4 1990#include <$2> 1991_ACEOF 1992if ac_fn_c_try_compile "$LINENO"; then : 1993 ac_header_compiler=yes 1994else 1995 ac_header_compiler=no 1996fi 1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1999$as_echo "$ac_header_compiler" >&6; } 2000 2001# Is the header present? 2002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2003$as_echo_n "checking $2 presence... " >&6; } 2004cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2005/* end confdefs.h. */ 2006#include <$2> 2007_ACEOF 2008if ac_fn_c_try_cpp "$LINENO"; then : 2009 ac_header_preproc=yes 2010else 2011 ac_header_preproc=no 2012fi 2013rm -f conftest.err conftest.i conftest.$ac_ext 2014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2015$as_echo "$ac_header_preproc" >&6; } 2016 2017# So? What about this header? 2018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2019 yes:no: ) 2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2021$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2023$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2024 ;; 2025 no:yes:* ) 2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2027$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2029$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2031$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2033$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2035$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2036( $as_echo "## ---------------------------------------------------------------------------------------------- ## 2037## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon ## 2038## ---------------------------------------------------------------------------------------------- ##" 2039 ) | sed "s/^/$as_me: WARNING: /" >&2 2040 ;; 2041esac 2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2043$as_echo_n "checking for $2... " >&6; } 2044if eval \${$3+:} false; then : 2045 $as_echo_n "(cached) " >&6 2046else 2047 eval "$3=\$ac_header_compiler" 2048fi 2049eval ac_res=\$$3 2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2051$as_echo "$ac_res" >&6; } 2052fi 2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2054 2055} # ac_fn_c_check_header_mongrel 2056cat >config.log <<_ACEOF 2057This file contains any messages produced by compilers while 2058running configure, to aid debugging if configure makes a mistake. 2059 2060It was created by xf86-video-ati $as_me 19.0.1, which was 2061generated by GNU Autoconf 2.69. Invocation command line was 2062 2063 $ $0 $@ 2064 2065_ACEOF 2066exec 5>>config.log 2067{ 2068cat <<_ASUNAME 2069## --------- ## 2070## Platform. ## 2071## --------- ## 2072 2073hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2074uname -m = `(uname -m) 2>/dev/null || echo unknown` 2075uname -r = `(uname -r) 2>/dev/null || echo unknown` 2076uname -s = `(uname -s) 2>/dev/null || echo unknown` 2077uname -v = `(uname -v) 2>/dev/null || echo unknown` 2078 2079/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2080/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2081 2082/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2083/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2084/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2085/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2086/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2087/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2088/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2089 2090_ASUNAME 2091 2092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2093for as_dir in $PATH 2094do 2095 IFS=$as_save_IFS 2096 test -z "$as_dir" && as_dir=. 2097 $as_echo "PATH: $as_dir" 2098 done 2099IFS=$as_save_IFS 2100 2101} >&5 2102 2103cat >&5 <<_ACEOF 2104 2105 2106## ----------- ## 2107## Core tests. ## 2108## ----------- ## 2109 2110_ACEOF 2111 2112 2113# Keep a trace of the command line. 2114# Strip out --no-create and --no-recursion so they do not pile up. 2115# Strip out --silent because we don't want to record it for future runs. 2116# Also quote any args containing shell meta-characters. 2117# Make two passes to allow for proper duplicate-argument suppression. 2118ac_configure_args= 2119ac_configure_args0= 2120ac_configure_args1= 2121ac_must_keep_next=false 2122for ac_pass in 1 2 2123do 2124 for ac_arg 2125 do 2126 case $ac_arg in 2127 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2129 | -silent | --silent | --silen | --sile | --sil) 2130 continue ;; 2131 *\'*) 2132 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2133 esac 2134 case $ac_pass in 2135 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2136 2) 2137 as_fn_append ac_configure_args1 " '$ac_arg'" 2138 if test $ac_must_keep_next = true; then 2139 ac_must_keep_next=false # Got value, back to normal. 2140 else 2141 case $ac_arg in 2142 *=* | --config-cache | -C | -disable-* | --disable-* \ 2143 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2144 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2145 | -with-* | --with-* | -without-* | --without-* | --x) 2146 case "$ac_configure_args0 " in 2147 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2148 esac 2149 ;; 2150 -* ) ac_must_keep_next=true ;; 2151 esac 2152 fi 2153 as_fn_append ac_configure_args " '$ac_arg'" 2154 ;; 2155 esac 2156 done 2157done 2158{ ac_configure_args0=; unset ac_configure_args0;} 2159{ ac_configure_args1=; unset ac_configure_args1;} 2160 2161# When interrupted or exit'd, cleanup temporary files, and complete 2162# config.log. We remove comments because anyway the quotes in there 2163# would cause problems or look ugly. 2164# WARNING: Use '\'' to represent an apostrophe within the trap. 2165# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2166trap 'exit_status=$? 2167 # Save into config.log some information that might help in debugging. 2168 { 2169 echo 2170 2171 $as_echo "## ---------------- ## 2172## Cache variables. ## 2173## ---------------- ##" 2174 echo 2175 # The following way of writing the cache mishandles newlines in values, 2176( 2177 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2178 eval ac_val=\$$ac_var 2179 case $ac_val in #( 2180 *${as_nl}*) 2181 case $ac_var in #( 2182 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2183$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2184 esac 2185 case $ac_var in #( 2186 _ | IFS | as_nl) ;; #( 2187 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2188 *) { eval $ac_var=; unset $ac_var;} ;; 2189 esac ;; 2190 esac 2191 done 2192 (set) 2>&1 | 2193 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2194 *${as_nl}ac_space=\ *) 2195 sed -n \ 2196 "s/'\''/'\''\\\\'\'''\''/g; 2197 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2198 ;; #( 2199 *) 2200 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2201 ;; 2202 esac | 2203 sort 2204) 2205 echo 2206 2207 $as_echo "## ----------------- ## 2208## Output variables. ## 2209## ----------------- ##" 2210 echo 2211 for ac_var in $ac_subst_vars 2212 do 2213 eval ac_val=\$$ac_var 2214 case $ac_val in 2215 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2216 esac 2217 $as_echo "$ac_var='\''$ac_val'\''" 2218 done | sort 2219 echo 2220 2221 if test -n "$ac_subst_files"; then 2222 $as_echo "## ------------------- ## 2223## File substitutions. ## 2224## ------------------- ##" 2225 echo 2226 for ac_var in $ac_subst_files 2227 do 2228 eval ac_val=\$$ac_var 2229 case $ac_val in 2230 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2231 esac 2232 $as_echo "$ac_var='\''$ac_val'\''" 2233 done | sort 2234 echo 2235 fi 2236 2237 if test -s confdefs.h; then 2238 $as_echo "## ----------- ## 2239## confdefs.h. ## 2240## ----------- ##" 2241 echo 2242 cat confdefs.h 2243 echo 2244 fi 2245 test "$ac_signal" != 0 && 2246 $as_echo "$as_me: caught signal $ac_signal" 2247 $as_echo "$as_me: exit $exit_status" 2248 } >&5 2249 rm -f core *.core core.conftest.* && 2250 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2251 exit $exit_status 2252' 0 2253for ac_signal in 1 2 13 15; do 2254 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2255done 2256ac_signal=0 2257 2258# confdefs.h avoids OS command line length limits that DEFS can exceed. 2259rm -f -r conftest* confdefs.h 2260 2261$as_echo "/* confdefs.h */" > confdefs.h 2262 2263# Predefined preprocessor variables. 2264 2265cat >>confdefs.h <<_ACEOF 2266#define PACKAGE_NAME "$PACKAGE_NAME" 2267_ACEOF 2268 2269cat >>confdefs.h <<_ACEOF 2270#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2271_ACEOF 2272 2273cat >>confdefs.h <<_ACEOF 2274#define PACKAGE_VERSION "$PACKAGE_VERSION" 2275_ACEOF 2276 2277cat >>confdefs.h <<_ACEOF 2278#define PACKAGE_STRING "$PACKAGE_STRING" 2279_ACEOF 2280 2281cat >>confdefs.h <<_ACEOF 2282#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2283_ACEOF 2284 2285cat >>confdefs.h <<_ACEOF 2286#define PACKAGE_URL "$PACKAGE_URL" 2287_ACEOF 2288 2289 2290# Let the site file select an alternate cache file if it wants to. 2291# Prefer an explicitly selected file to automatically selected ones. 2292ac_site_file1=NONE 2293ac_site_file2=NONE 2294if test -n "$CONFIG_SITE"; then 2295 # We do not want a PATH search for config.site. 2296 case $CONFIG_SITE in #(( 2297 -*) ac_site_file1=./$CONFIG_SITE;; 2298 */*) ac_site_file1=$CONFIG_SITE;; 2299 *) ac_site_file1=./$CONFIG_SITE;; 2300 esac 2301elif test "x$prefix" != xNONE; then 2302 ac_site_file1=$prefix/share/config.site 2303 ac_site_file2=$prefix/etc/config.site 2304else 2305 ac_site_file1=$ac_default_prefix/share/config.site 2306 ac_site_file2=$ac_default_prefix/etc/config.site 2307fi 2308for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2309do 2310 test "x$ac_site_file" = xNONE && continue 2311 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2312 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2313$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2314 sed 's/^/| /' "$ac_site_file" >&5 2315 . "$ac_site_file" \ 2316 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2318as_fn_error $? "failed to load site script $ac_site_file 2319See \`config.log' for more details" "$LINENO" 5; } 2320 fi 2321done 2322 2323if test -r "$cache_file"; then 2324 # Some versions of bash will fail to source /dev/null (special files 2325 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2326 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2328$as_echo "$as_me: loading cache $cache_file" >&6;} 2329 case $cache_file in 2330 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2331 *) . "./$cache_file";; 2332 esac 2333 fi 2334else 2335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2336$as_echo "$as_me: creating cache $cache_file" >&6;} 2337 >$cache_file 2338fi 2339 2340# Check that the precious variables saved in the cache have kept the same 2341# value. 2342ac_cache_corrupted=false 2343for ac_var in $ac_precious_vars; do 2344 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2345 eval ac_new_set=\$ac_env_${ac_var}_set 2346 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2347 eval ac_new_val=\$ac_env_${ac_var}_value 2348 case $ac_old_set,$ac_new_set in 2349 set,) 2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2351$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2352 ac_cache_corrupted=: ;; 2353 ,set) 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2355$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2356 ac_cache_corrupted=: ;; 2357 ,);; 2358 *) 2359 if test "x$ac_old_val" != "x$ac_new_val"; then 2360 # differences in whitespace do not lead to failure. 2361 ac_old_val_w=`echo x $ac_old_val` 2362 ac_new_val_w=`echo x $ac_new_val` 2363 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2365$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2366 ac_cache_corrupted=: 2367 else 2368 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2369$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2370 eval $ac_var=\$ac_old_val 2371 fi 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2373$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2374 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2375$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2376 fi;; 2377 esac 2378 # Pass precious variables to config.status. 2379 if test "$ac_new_set" = set; then 2380 case $ac_new_val in 2381 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2382 *) ac_arg=$ac_var=$ac_new_val ;; 2383 esac 2384 case " $ac_configure_args " in 2385 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2386 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2387 esac 2388 fi 2389done 2390if $ac_cache_corrupted; then 2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2394$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2395 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2396fi 2397## -------------------- ## 2398## Main body of script. ## 2399## -------------------- ## 2400 2401ac_ext=c 2402ac_cpp='$CPP $CPPFLAGS' 2403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2405ac_compiler_gnu=$ac_cv_c_compiler_gnu 2406 2407 2408 2409 2410ac_config_headers="$ac_config_headers config.h" 2411 2412 2413 2414ac_aux_dir= 2415for ac_dir in . "$srcdir"/.; do 2416 if test -f "$ac_dir/install-sh"; then 2417 ac_aux_dir=$ac_dir 2418 ac_install_sh="$ac_aux_dir/install-sh -c" 2419 break 2420 elif test -f "$ac_dir/install.sh"; then 2421 ac_aux_dir=$ac_dir 2422 ac_install_sh="$ac_aux_dir/install.sh -c" 2423 break 2424 elif test -f "$ac_dir/shtool"; then 2425 ac_aux_dir=$ac_dir 2426 ac_install_sh="$ac_aux_dir/shtool install -c" 2427 break 2428 fi 2429done 2430if test -z "$ac_aux_dir"; then 2431 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2432fi 2433 2434# These three variables are undocumented and unsupported, 2435# and are intended to be withdrawn in a future Autoconf release. 2436# They can cause serious problems if a builder's source tree is in a directory 2437# whose full name contains unusual characters. 2438ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2439ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2440ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2441 2442 2443 2444# Initialize Automake 2445am__api_version='1.16' 2446 2447# Find a good install program. We prefer a C program (faster), 2448# so one script is as good as another. But avoid the broken or 2449# incompatible versions: 2450# SysV /etc/install, /usr/sbin/install 2451# SunOS /usr/etc/install 2452# IRIX /sbin/install 2453# AIX /bin/install 2454# AmigaOS /C/install, which installs bootblocks on floppy discs 2455# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2456# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2457# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2458# OS/2's system install, which has a completely different semantic 2459# ./install, which can be erroneously created by make from ./install.sh. 2460# Reject install programs that cannot install multiple files. 2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2462$as_echo_n "checking for a BSD-compatible install... " >&6; } 2463if test -z "$INSTALL"; then 2464if ${ac_cv_path_install+:} false; then : 2465 $as_echo_n "(cached) " >&6 2466else 2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2468for as_dir in $PATH 2469do 2470 IFS=$as_save_IFS 2471 test -z "$as_dir" && as_dir=. 2472 # Account for people who put trailing slashes in PATH elements. 2473case $as_dir/ in #(( 2474 ./ | .// | /[cC]/* | \ 2475 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2476 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2477 /usr/ucb/* ) ;; 2478 *) 2479 # OSF1 and SCO ODT 3.0 have their own names for install. 2480 # Don't use installbsd from OSF since it installs stuff as root 2481 # by default. 2482 for ac_prog in ginstall scoinst install; do 2483 for ac_exec_ext in '' $ac_executable_extensions; do 2484 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2485 if test $ac_prog = install && 2486 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2487 # AIX install. It has an incompatible calling convention. 2488 : 2489 elif test $ac_prog = install && 2490 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2491 # program-specific install script used by HP pwplus--don't use. 2492 : 2493 else 2494 rm -rf conftest.one conftest.two conftest.dir 2495 echo one > conftest.one 2496 echo two > conftest.two 2497 mkdir conftest.dir 2498 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2499 test -s conftest.one && test -s conftest.two && 2500 test -s conftest.dir/conftest.one && 2501 test -s conftest.dir/conftest.two 2502 then 2503 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2504 break 3 2505 fi 2506 fi 2507 fi 2508 done 2509 done 2510 ;; 2511esac 2512 2513 done 2514IFS=$as_save_IFS 2515 2516rm -rf conftest.one conftest.two conftest.dir 2517 2518fi 2519 if test "${ac_cv_path_install+set}" = set; then 2520 INSTALL=$ac_cv_path_install 2521 else 2522 # As a last resort, use the slow shell script. Don't cache a 2523 # value for INSTALL within a source directory, because that will 2524 # break other packages using the cache if that directory is 2525 # removed, or if the value is a relative name. 2526 INSTALL=$ac_install_sh 2527 fi 2528fi 2529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2530$as_echo "$INSTALL" >&6; } 2531 2532# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2533# It thinks the first close brace ends the variable substitution. 2534test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2535 2536test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2537 2538test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2539 2540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2541$as_echo_n "checking whether build environment is sane... " >&6; } 2542# Reject unsafe characters in $srcdir or the absolute working directory 2543# name. Accept space and tab only in the latter. 2544am_lf=' 2545' 2546case `pwd` in 2547 *[\\\"\#\$\&\'\`$am_lf]*) 2548 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2549esac 2550case $srcdir in 2551 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2552 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2553esac 2554 2555# Do 'set' in a subshell so we don't clobber the current shell's 2556# arguments. Must try -L first in case configure is actually a 2557# symlink; some systems play weird games with the mod time of symlinks 2558# (eg FreeBSD returns the mod time of the symlink's containing 2559# directory). 2560if ( 2561 am_has_slept=no 2562 for am_try in 1 2; do 2563 echo "timestamp, slept: $am_has_slept" > conftest.file 2564 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2565 if test "$*" = "X"; then 2566 # -L didn't work. 2567 set X `ls -t "$srcdir/configure" conftest.file` 2568 fi 2569 if test "$*" != "X $srcdir/configure conftest.file" \ 2570 && test "$*" != "X conftest.file $srcdir/configure"; then 2571 2572 # If neither matched, then we have a broken ls. This can happen 2573 # if, for instance, CONFIG_SHELL is bash and it inherits a 2574 # broken ls alias from the environment. This has actually 2575 # happened. Such a system could not be considered "sane". 2576 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2577 alias in your environment" "$LINENO" 5 2578 fi 2579 if test "$2" = conftest.file || test $am_try -eq 2; then 2580 break 2581 fi 2582 # Just in case. 2583 sleep 1 2584 am_has_slept=yes 2585 done 2586 test "$2" = conftest.file 2587 ) 2588then 2589 # Ok. 2590 : 2591else 2592 as_fn_error $? "newly created file is older than distributed files! 2593Check your system clock" "$LINENO" 5 2594fi 2595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2596$as_echo "yes" >&6; } 2597# If we didn't sleep, we still need to ensure time stamps of config.status and 2598# generated files are strictly newer. 2599am_sleep_pid= 2600if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2601 ( sleep 1 ) & 2602 am_sleep_pid=$! 2603fi 2604 2605rm -f conftest.file 2606 2607test "$program_prefix" != NONE && 2608 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2609# Use a double $ so make ignores it. 2610test "$program_suffix" != NONE && 2611 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2612# Double any \ or $. 2613# By default was `s,x,x', remove it if useless. 2614ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2615program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2616 2617# Expand $ac_aux_dir to an absolute path. 2618am_aux_dir=`cd "$ac_aux_dir" && pwd` 2619 2620if test x"${MISSING+set}" != xset; then 2621 case $am_aux_dir in 2622 *\ * | *\ *) 2623 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2624 *) 2625 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2626 esac 2627fi 2628# Use eval to expand $SHELL 2629if eval "$MISSING --is-lightweight"; then 2630 am_missing_run="$MISSING " 2631else 2632 am_missing_run= 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2634$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2635fi 2636 2637if test x"${install_sh+set}" != xset; then 2638 case $am_aux_dir in 2639 *\ * | *\ *) 2640 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2641 *) 2642 install_sh="\${SHELL} $am_aux_dir/install-sh" 2643 esac 2644fi 2645 2646# Installed binaries are usually stripped using 'strip' when the user 2647# run "make install-strip". However 'strip' might not be the right 2648# tool to use in cross-compilation environments, therefore Automake 2649# will honor the 'STRIP' environment variable to overrule this program. 2650if test "$cross_compiling" != no; then 2651 if test -n "$ac_tool_prefix"; then 2652 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2653set dummy ${ac_tool_prefix}strip; ac_word=$2 2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2655$as_echo_n "checking for $ac_word... " >&6; } 2656if ${ac_cv_prog_STRIP+:} false; then : 2657 $as_echo_n "(cached) " >&6 2658else 2659 if test -n "$STRIP"; then 2660 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2661else 2662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2663for as_dir in $PATH 2664do 2665 IFS=$as_save_IFS 2666 test -z "$as_dir" && as_dir=. 2667 for ac_exec_ext in '' $ac_executable_extensions; do 2668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2669 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2671 break 2 2672 fi 2673done 2674 done 2675IFS=$as_save_IFS 2676 2677fi 2678fi 2679STRIP=$ac_cv_prog_STRIP 2680if test -n "$STRIP"; then 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2682$as_echo "$STRIP" >&6; } 2683else 2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2685$as_echo "no" >&6; } 2686fi 2687 2688 2689fi 2690if test -z "$ac_cv_prog_STRIP"; then 2691 ac_ct_STRIP=$STRIP 2692 # Extract the first word of "strip", so it can be a program name with args. 2693set dummy strip; ac_word=$2 2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2695$as_echo_n "checking for $ac_word... " >&6; } 2696if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2697 $as_echo_n "(cached) " >&6 2698else 2699 if test -n "$ac_ct_STRIP"; then 2700 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2701else 2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2703for as_dir in $PATH 2704do 2705 IFS=$as_save_IFS 2706 test -z "$as_dir" && as_dir=. 2707 for ac_exec_ext in '' $ac_executable_extensions; do 2708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2709 ac_cv_prog_ac_ct_STRIP="strip" 2710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2711 break 2 2712 fi 2713done 2714 done 2715IFS=$as_save_IFS 2716 2717fi 2718fi 2719ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2720if test -n "$ac_ct_STRIP"; then 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2722$as_echo "$ac_ct_STRIP" >&6; } 2723else 2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2725$as_echo "no" >&6; } 2726fi 2727 2728 if test "x$ac_ct_STRIP" = x; then 2729 STRIP=":" 2730 else 2731 case $cross_compiling:$ac_tool_warned in 2732yes:) 2733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2735ac_tool_warned=yes ;; 2736esac 2737 STRIP=$ac_ct_STRIP 2738 fi 2739else 2740 STRIP="$ac_cv_prog_STRIP" 2741fi 2742 2743fi 2744INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2745 2746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2747$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2748if test -z "$MKDIR_P"; then 2749 if ${ac_cv_path_mkdir+:} false; then : 2750 $as_echo_n "(cached) " >&6 2751else 2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2753for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2754do 2755 IFS=$as_save_IFS 2756 test -z "$as_dir" && as_dir=. 2757 for ac_prog in mkdir gmkdir; do 2758 for ac_exec_ext in '' $ac_executable_extensions; do 2759 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2760 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2761 'mkdir (GNU coreutils) '* | \ 2762 'mkdir (coreutils) '* | \ 2763 'mkdir (fileutils) '4.1*) 2764 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2765 break 3;; 2766 esac 2767 done 2768 done 2769 done 2770IFS=$as_save_IFS 2771 2772fi 2773 2774 test -d ./--version && rmdir ./--version 2775 if test "${ac_cv_path_mkdir+set}" = set; then 2776 MKDIR_P="$ac_cv_path_mkdir -p" 2777 else 2778 # As a last resort, use the slow shell script. Don't cache a 2779 # value for MKDIR_P within a source directory, because that will 2780 # break other packages using the cache if that directory is 2781 # removed, or if the value is a relative name. 2782 MKDIR_P="$ac_install_sh -d" 2783 fi 2784fi 2785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2786$as_echo "$MKDIR_P" >&6; } 2787 2788for ac_prog in gawk mawk nawk awk 2789do 2790 # Extract the first word of "$ac_prog", so it can be a program name with args. 2791set dummy $ac_prog; ac_word=$2 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2793$as_echo_n "checking for $ac_word... " >&6; } 2794if ${ac_cv_prog_AWK+:} false; then : 2795 $as_echo_n "(cached) " >&6 2796else 2797 if test -n "$AWK"; then 2798 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2799else 2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2801for as_dir in $PATH 2802do 2803 IFS=$as_save_IFS 2804 test -z "$as_dir" && as_dir=. 2805 for ac_exec_ext in '' $ac_executable_extensions; do 2806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2807 ac_cv_prog_AWK="$ac_prog" 2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2809 break 2 2810 fi 2811done 2812 done 2813IFS=$as_save_IFS 2814 2815fi 2816fi 2817AWK=$ac_cv_prog_AWK 2818if test -n "$AWK"; then 2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2820$as_echo "$AWK" >&6; } 2821else 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2823$as_echo "no" >&6; } 2824fi 2825 2826 2827 test -n "$AWK" && break 2828done 2829 2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2831$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2832set x ${MAKE-make} 2833ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2834if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2835 $as_echo_n "(cached) " >&6 2836else 2837 cat >conftest.make <<\_ACEOF 2838SHELL = /bin/sh 2839all: 2840 @echo '@@@%%%=$(MAKE)=@@@%%%' 2841_ACEOF 2842# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2843case `${MAKE-make} -f conftest.make 2>/dev/null` in 2844 *@@@%%%=?*=@@@%%%*) 2845 eval ac_cv_prog_make_${ac_make}_set=yes;; 2846 *) 2847 eval ac_cv_prog_make_${ac_make}_set=no;; 2848esac 2849rm -f conftest.make 2850fi 2851if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2853$as_echo "yes" >&6; } 2854 SET_MAKE= 2855else 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2857$as_echo "no" >&6; } 2858 SET_MAKE="MAKE=${MAKE-make}" 2859fi 2860 2861rm -rf .tst 2>/dev/null 2862mkdir .tst 2>/dev/null 2863if test -d .tst; then 2864 am__leading_dot=. 2865else 2866 am__leading_dot=_ 2867fi 2868rmdir .tst 2>/dev/null 2869 2870# Check whether --enable-silent-rules was given. 2871if test "${enable_silent_rules+set}" = set; then : 2872 enableval=$enable_silent_rules; 2873fi 2874 2875case $enable_silent_rules in # ((( 2876 yes) AM_DEFAULT_VERBOSITY=0;; 2877 no) AM_DEFAULT_VERBOSITY=1;; 2878 *) AM_DEFAULT_VERBOSITY=1;; 2879esac 2880am_make=${MAKE-make} 2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2882$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2883if ${am_cv_make_support_nested_variables+:} false; then : 2884 $as_echo_n "(cached) " >&6 2885else 2886 if $as_echo 'TRUE=$(BAR$(V)) 2887BAR0=false 2888BAR1=true 2889V=1 2890am__doit: 2891 @$(TRUE) 2892.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2893 am_cv_make_support_nested_variables=yes 2894else 2895 am_cv_make_support_nested_variables=no 2896fi 2897fi 2898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2899$as_echo "$am_cv_make_support_nested_variables" >&6; } 2900if test $am_cv_make_support_nested_variables = yes; then 2901 AM_V='$(V)' 2902 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2903else 2904 AM_V=$AM_DEFAULT_VERBOSITY 2905 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2906fi 2907AM_BACKSLASH='\' 2908 2909if test "`cd $srcdir && pwd`" != "`pwd`"; then 2910 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2911 # is not polluted with repeated "-I." 2912 am__isrc=' -I$(srcdir)' 2913 # test to see if srcdir already configured 2914 if test -f $srcdir/config.status; then 2915 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2916 fi 2917fi 2918 2919# test whether we have cygpath 2920if test -z "$CYGPATH_W"; then 2921 if (cygpath --version) >/dev/null 2>/dev/null; then 2922 CYGPATH_W='cygpath -w' 2923 else 2924 CYGPATH_W=echo 2925 fi 2926fi 2927 2928 2929# Define the identity of the package. 2930 PACKAGE='xf86-video-ati' 2931 VERSION='19.0.1' 2932 2933 2934cat >>confdefs.h <<_ACEOF 2935#define PACKAGE "$PACKAGE" 2936_ACEOF 2937 2938 2939cat >>confdefs.h <<_ACEOF 2940#define VERSION "$VERSION" 2941_ACEOF 2942 2943# Some tools Automake needs. 2944 2945ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2946 2947 2948AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2949 2950 2951AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2952 2953 2954AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2955 2956 2957MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2958 2959# For better backward compatibility. To be removed once Automake 1.9.x 2960# dies out for good. For more background, see: 2961# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2962# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2963mkdir_p='$(MKDIR_P)' 2964 2965# We need awk for the "check" target (and possibly the TAP driver). The 2966# system "awk" is bad on some platforms. 2967# Always define AMTAR for backward compatibility. Yes, it's still used 2968# in the wild :-( We should find a proper way to deprecate it ... 2969AMTAR='$${TAR-tar}' 2970 2971 2972# We'll loop over all known methods to create a tar archive until one works. 2973_am_tools='gnutar pax cpio none' 2974 2975am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2976 2977 2978 2979 2980 2981 2982# POSIX will say in a future version that running "rm -f" with no argument 2983# is OK; and we want to be able to make that assumption in our Makefile 2984# recipes. So use an aggressive probe to check that the usage we want is 2985# actually supported "in the wild" to an acceptable degree. 2986# See automake bug#10828. 2987# To make any issue more visible, cause the running configure to be aborted 2988# by default if the 'rm' program in use doesn't match our expectations; the 2989# user can still override this though. 2990if rm -f && rm -fr && rm -rf; then : OK; else 2991 cat >&2 <<'END' 2992Oops! 2993 2994Your 'rm' program seems unable to run without file operands specified 2995on the command line, even when the '-f' option is present. This is contrary 2996to the behaviour of most rm programs out there, and not conforming with 2997the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2998 2999Please tell bug-automake@gnu.org about your system, including the value 3000of your $PATH and any error possibly output before this message. This 3001can help us improve future automake versions. 3002 3003END 3004 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3005 echo 'Configuration will proceed anyway, since you have set the' >&2 3006 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3007 echo >&2 3008 else 3009 cat >&2 <<'END' 3010Aborting the configuration process, to ensure you take notice of the issue. 3011 3012You can download and install GNU coreutils to get an 'rm' implementation 3013that behaves properly: <https://www.gnu.org/software/coreutils/>. 3014 3015If you want to complete the configuration process using your problematic 3016'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3017to "yes", and re-run configure. 3018 3019END 3020 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3021 fi 3022fi 3023 3024DEPDIR="${am__leading_dot}deps" 3025 3026ac_config_commands="$ac_config_commands depfiles" 3027 3028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3029$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3030cat > confinc.mk << 'END' 3031am__doit: 3032 @echo this is the am__doit target >confinc.out 3033.PHONY: am__doit 3034END 3035am__include="#" 3036am__quote= 3037# BSD make does it like this. 3038echo '.include "confinc.mk" # ignored' > confmf.BSD 3039# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3040echo 'include confinc.mk # ignored' > confmf.GNU 3041_am_result=no 3042for s in GNU BSD; do 3043 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3044 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3045 ac_status=$? 3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3047 (exit $ac_status); } 3048 case $?:`cat confinc.out 2>/dev/null` in #( 3049 '0:this is the am__doit target') : 3050 case $s in #( 3051 BSD) : 3052 am__include='.include' am__quote='"' ;; #( 3053 *) : 3054 am__include='include' am__quote='' ;; 3055esac ;; #( 3056 *) : 3057 ;; 3058esac 3059 if test "$am__include" != "#"; then 3060 _am_result="yes ($s style)" 3061 break 3062 fi 3063done 3064rm -f confinc.* confmf.* 3065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3066$as_echo "${_am_result}" >&6; } 3067 3068# Check whether --enable-dependency-tracking was given. 3069if test "${enable_dependency_tracking+set}" = set; then : 3070 enableval=$enable_dependency_tracking; 3071fi 3072 3073if test "x$enable_dependency_tracking" != xno; then 3074 am_depcomp="$ac_aux_dir/depcomp" 3075 AMDEPBACKSLASH='\' 3076 am__nodep='_no' 3077fi 3078 if test "x$enable_dependency_tracking" != xno; then 3079 AMDEP_TRUE= 3080 AMDEP_FALSE='#' 3081else 3082 AMDEP_TRUE='#' 3083 AMDEP_FALSE= 3084fi 3085 3086 3087ac_ext=c 3088ac_cpp='$CPP $CPPFLAGS' 3089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3091ac_compiler_gnu=$ac_cv_c_compiler_gnu 3092if test -n "$ac_tool_prefix"; then 3093 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3094set dummy ${ac_tool_prefix}gcc; ac_word=$2 3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3096$as_echo_n "checking for $ac_word... " >&6; } 3097if ${ac_cv_prog_CC+:} false; then : 3098 $as_echo_n "(cached) " >&6 3099else 3100 if test -n "$CC"; then 3101 ac_cv_prog_CC="$CC" # Let the user override the test. 3102else 3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3104for as_dir in $PATH 3105do 3106 IFS=$as_save_IFS 3107 test -z "$as_dir" && as_dir=. 3108 for ac_exec_ext in '' $ac_executable_extensions; do 3109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3110 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3112 break 2 3113 fi 3114done 3115 done 3116IFS=$as_save_IFS 3117 3118fi 3119fi 3120CC=$ac_cv_prog_CC 3121if test -n "$CC"; then 3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3123$as_echo "$CC" >&6; } 3124else 3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3126$as_echo "no" >&6; } 3127fi 3128 3129 3130fi 3131if test -z "$ac_cv_prog_CC"; then 3132 ac_ct_CC=$CC 3133 # Extract the first word of "gcc", so it can be a program name with args. 3134set dummy gcc; ac_word=$2 3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3136$as_echo_n "checking for $ac_word... " >&6; } 3137if ${ac_cv_prog_ac_ct_CC+:} false; then : 3138 $as_echo_n "(cached) " >&6 3139else 3140 if test -n "$ac_ct_CC"; then 3141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3142else 3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3144for as_dir in $PATH 3145do 3146 IFS=$as_save_IFS 3147 test -z "$as_dir" && as_dir=. 3148 for ac_exec_ext in '' $ac_executable_extensions; do 3149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3150 ac_cv_prog_ac_ct_CC="gcc" 3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3152 break 2 3153 fi 3154done 3155 done 3156IFS=$as_save_IFS 3157 3158fi 3159fi 3160ac_ct_CC=$ac_cv_prog_ac_ct_CC 3161if test -n "$ac_ct_CC"; then 3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3163$as_echo "$ac_ct_CC" >&6; } 3164else 3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3166$as_echo "no" >&6; } 3167fi 3168 3169 if test "x$ac_ct_CC" = x; then 3170 CC="" 3171 else 3172 case $cross_compiling:$ac_tool_warned in 3173yes:) 3174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3176ac_tool_warned=yes ;; 3177esac 3178 CC=$ac_ct_CC 3179 fi 3180else 3181 CC="$ac_cv_prog_CC" 3182fi 3183 3184if test -z "$CC"; then 3185 if test -n "$ac_tool_prefix"; then 3186 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3187set dummy ${ac_tool_prefix}cc; ac_word=$2 3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3189$as_echo_n "checking for $ac_word... " >&6; } 3190if ${ac_cv_prog_CC+:} false; then : 3191 $as_echo_n "(cached) " >&6 3192else 3193 if test -n "$CC"; then 3194 ac_cv_prog_CC="$CC" # Let the user override the test. 3195else 3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3197for as_dir in $PATH 3198do 3199 IFS=$as_save_IFS 3200 test -z "$as_dir" && as_dir=. 3201 for ac_exec_ext in '' $ac_executable_extensions; do 3202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3203 ac_cv_prog_CC="${ac_tool_prefix}cc" 3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3205 break 2 3206 fi 3207done 3208 done 3209IFS=$as_save_IFS 3210 3211fi 3212fi 3213CC=$ac_cv_prog_CC 3214if test -n "$CC"; then 3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3216$as_echo "$CC" >&6; } 3217else 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3219$as_echo "no" >&6; } 3220fi 3221 3222 3223 fi 3224fi 3225if test -z "$CC"; then 3226 # Extract the first word of "cc", so it can be a program name with args. 3227set dummy cc; ac_word=$2 3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3229$as_echo_n "checking for $ac_word... " >&6; } 3230if ${ac_cv_prog_CC+:} false; then : 3231 $as_echo_n "(cached) " >&6 3232else 3233 if test -n "$CC"; then 3234 ac_cv_prog_CC="$CC" # Let the user override the test. 3235else 3236 ac_prog_rejected=no 3237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3238for as_dir in $PATH 3239do 3240 IFS=$as_save_IFS 3241 test -z "$as_dir" && as_dir=. 3242 for ac_exec_ext in '' $ac_executable_extensions; do 3243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3245 ac_prog_rejected=yes 3246 continue 3247 fi 3248 ac_cv_prog_CC="cc" 3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3250 break 2 3251 fi 3252done 3253 done 3254IFS=$as_save_IFS 3255 3256if test $ac_prog_rejected = yes; then 3257 # We found a bogon in the path, so make sure we never use it. 3258 set dummy $ac_cv_prog_CC 3259 shift 3260 if test $# != 0; then 3261 # We chose a different compiler from the bogus one. 3262 # However, it has the same basename, so the bogon will be chosen 3263 # first if we set CC to just the basename; use the full file name. 3264 shift 3265 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3266 fi 3267fi 3268fi 3269fi 3270CC=$ac_cv_prog_CC 3271if test -n "$CC"; then 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3273$as_echo "$CC" >&6; } 3274else 3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3276$as_echo "no" >&6; } 3277fi 3278 3279 3280fi 3281if test -z "$CC"; then 3282 if test -n "$ac_tool_prefix"; then 3283 for ac_prog in cl.exe 3284 do 3285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3286set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3288$as_echo_n "checking for $ac_word... " >&6; } 3289if ${ac_cv_prog_CC+:} false; then : 3290 $as_echo_n "(cached) " >&6 3291else 3292 if test -n "$CC"; then 3293 ac_cv_prog_CC="$CC" # Let the user override the test. 3294else 3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3296for as_dir in $PATH 3297do 3298 IFS=$as_save_IFS 3299 test -z "$as_dir" && as_dir=. 3300 for ac_exec_ext in '' $ac_executable_extensions; do 3301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3302 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3304 break 2 3305 fi 3306done 3307 done 3308IFS=$as_save_IFS 3309 3310fi 3311fi 3312CC=$ac_cv_prog_CC 3313if test -n "$CC"; then 3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3315$as_echo "$CC" >&6; } 3316else 3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3318$as_echo "no" >&6; } 3319fi 3320 3321 3322 test -n "$CC" && break 3323 done 3324fi 3325if test -z "$CC"; then 3326 ac_ct_CC=$CC 3327 for ac_prog in cl.exe 3328do 3329 # Extract the first word of "$ac_prog", so it can be a program name with args. 3330set dummy $ac_prog; ac_word=$2 3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3332$as_echo_n "checking for $ac_word... " >&6; } 3333if ${ac_cv_prog_ac_ct_CC+:} false; then : 3334 $as_echo_n "(cached) " >&6 3335else 3336 if test -n "$ac_ct_CC"; then 3337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3338else 3339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3340for as_dir in $PATH 3341do 3342 IFS=$as_save_IFS 3343 test -z "$as_dir" && as_dir=. 3344 for ac_exec_ext in '' $ac_executable_extensions; do 3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3346 ac_cv_prog_ac_ct_CC="$ac_prog" 3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3348 break 2 3349 fi 3350done 3351 done 3352IFS=$as_save_IFS 3353 3354fi 3355fi 3356ac_ct_CC=$ac_cv_prog_ac_ct_CC 3357if test -n "$ac_ct_CC"; then 3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3359$as_echo "$ac_ct_CC" >&6; } 3360else 3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3362$as_echo "no" >&6; } 3363fi 3364 3365 3366 test -n "$ac_ct_CC" && break 3367done 3368 3369 if test "x$ac_ct_CC" = x; then 3370 CC="" 3371 else 3372 case $cross_compiling:$ac_tool_warned in 3373yes:) 3374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3376ac_tool_warned=yes ;; 3377esac 3378 CC=$ac_ct_CC 3379 fi 3380fi 3381 3382fi 3383 3384 3385test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3387as_fn_error $? "no acceptable C compiler found in \$PATH 3388See \`config.log' for more details" "$LINENO" 5; } 3389 3390# Provide some information about the compiler. 3391$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3392set X $ac_compile 3393ac_compiler=$2 3394for ac_option in --version -v -V -qversion; do 3395 { { ac_try="$ac_compiler $ac_option >&5" 3396case "(($ac_try" in 3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3398 *) ac_try_echo=$ac_try;; 3399esac 3400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3401$as_echo "$ac_try_echo"; } >&5 3402 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3403 ac_status=$? 3404 if test -s conftest.err; then 3405 sed '10a\ 3406... rest of stderr output deleted ... 3407 10q' conftest.err >conftest.er1 3408 cat conftest.er1 >&5 3409 fi 3410 rm -f conftest.er1 conftest.err 3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3412 test $ac_status = 0; } 3413done 3414 3415cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3416/* end confdefs.h. */ 3417 3418int 3419main () 3420{ 3421 3422 ; 3423 return 0; 3424} 3425_ACEOF 3426ac_clean_files_save=$ac_clean_files 3427ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3428# Try to create an executable without -o first, disregard a.out. 3429# It will help us diagnose broken compilers, and finding out an intuition 3430# of exeext. 3431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3432$as_echo_n "checking whether the C compiler works... " >&6; } 3433ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3434 3435# The possible output files: 3436ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3437 3438ac_rmfiles= 3439for ac_file in $ac_files 3440do 3441 case $ac_file in 3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3443 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3444 esac 3445done 3446rm -f $ac_rmfiles 3447 3448if { { ac_try="$ac_link_default" 3449case "(($ac_try" in 3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3451 *) ac_try_echo=$ac_try;; 3452esac 3453eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3454$as_echo "$ac_try_echo"; } >&5 3455 (eval "$ac_link_default") 2>&5 3456 ac_status=$? 3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3458 test $ac_status = 0; }; then : 3459 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3460# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3461# in a Makefile. We should not override ac_cv_exeext if it was cached, 3462# so that the user can short-circuit this test for compilers unknown to 3463# Autoconf. 3464for ac_file in $ac_files '' 3465do 3466 test -f "$ac_file" || continue 3467 case $ac_file in 3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3469 ;; 3470 [ab].out ) 3471 # We found the default executable, but exeext='' is most 3472 # certainly right. 3473 break;; 3474 *.* ) 3475 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3476 then :; else 3477 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3478 fi 3479 # We set ac_cv_exeext here because the later test for it is not 3480 # safe: cross compilers may not add the suffix if given an `-o' 3481 # argument, so we may need to know it at that point already. 3482 # Even if this section looks crufty: it has the advantage of 3483 # actually working. 3484 break;; 3485 * ) 3486 break;; 3487 esac 3488done 3489test "$ac_cv_exeext" = no && ac_cv_exeext= 3490 3491else 3492 ac_file='' 3493fi 3494if test -z "$ac_file"; then : 3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3496$as_echo "no" >&6; } 3497$as_echo "$as_me: failed program was:" >&5 3498sed 's/^/| /' conftest.$ac_ext >&5 3499 3500{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3502as_fn_error 77 "C compiler cannot create executables 3503See \`config.log' for more details" "$LINENO" 5; } 3504else 3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3506$as_echo "yes" >&6; } 3507fi 3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3509$as_echo_n "checking for C compiler default output file name... " >&6; } 3510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3511$as_echo "$ac_file" >&6; } 3512ac_exeext=$ac_cv_exeext 3513 3514rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3515ac_clean_files=$ac_clean_files_save 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3517$as_echo_n "checking for suffix of executables... " >&6; } 3518if { { ac_try="$ac_link" 3519case "(($ac_try" in 3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3521 *) ac_try_echo=$ac_try;; 3522esac 3523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3524$as_echo "$ac_try_echo"; } >&5 3525 (eval "$ac_link") 2>&5 3526 ac_status=$? 3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3528 test $ac_status = 0; }; then : 3529 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3530# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3531# work properly (i.e., refer to `conftest.exe'), while it won't with 3532# `rm'. 3533for ac_file in conftest.exe conftest conftest.*; do 3534 test -f "$ac_file" || continue 3535 case $ac_file in 3536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3537 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3538 break;; 3539 * ) break;; 3540 esac 3541done 3542else 3543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3545as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3546See \`config.log' for more details" "$LINENO" 5; } 3547fi 3548rm -f conftest conftest$ac_cv_exeext 3549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3550$as_echo "$ac_cv_exeext" >&6; } 3551 3552rm -f conftest.$ac_ext 3553EXEEXT=$ac_cv_exeext 3554ac_exeext=$EXEEXT 3555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3556/* end confdefs.h. */ 3557#include <stdio.h> 3558int 3559main () 3560{ 3561FILE *f = fopen ("conftest.out", "w"); 3562 return ferror (f) || fclose (f) != 0; 3563 3564 ; 3565 return 0; 3566} 3567_ACEOF 3568ac_clean_files="$ac_clean_files conftest.out" 3569# Check that the compiler produces executables we can run. If not, either 3570# the compiler is broken, or we cross compile. 3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3572$as_echo_n "checking whether we are cross compiling... " >&6; } 3573if test "$cross_compiling" != yes; then 3574 { { ac_try="$ac_link" 3575case "(($ac_try" in 3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3577 *) ac_try_echo=$ac_try;; 3578esac 3579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3580$as_echo "$ac_try_echo"; } >&5 3581 (eval "$ac_link") 2>&5 3582 ac_status=$? 3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3584 test $ac_status = 0; } 3585 if { ac_try='./conftest$ac_cv_exeext' 3586 { { case "(($ac_try" in 3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3588 *) ac_try_echo=$ac_try;; 3589esac 3590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3591$as_echo "$ac_try_echo"; } >&5 3592 (eval "$ac_try") 2>&5 3593 ac_status=$? 3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3595 test $ac_status = 0; }; }; then 3596 cross_compiling=no 3597 else 3598 if test "$cross_compiling" = maybe; then 3599 cross_compiling=yes 3600 else 3601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3603as_fn_error $? "cannot run C compiled programs. 3604If you meant to cross compile, use \`--host'. 3605See \`config.log' for more details" "$LINENO" 5; } 3606 fi 3607 fi 3608fi 3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3610$as_echo "$cross_compiling" >&6; } 3611 3612rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3613ac_clean_files=$ac_clean_files_save 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3615$as_echo_n "checking for suffix of object files... " >&6; } 3616if ${ac_cv_objext+:} false; then : 3617 $as_echo_n "(cached) " >&6 3618else 3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3620/* end confdefs.h. */ 3621 3622int 3623main () 3624{ 3625 3626 ; 3627 return 0; 3628} 3629_ACEOF 3630rm -f conftest.o conftest.obj 3631if { { ac_try="$ac_compile" 3632case "(($ac_try" in 3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3634 *) ac_try_echo=$ac_try;; 3635esac 3636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3637$as_echo "$ac_try_echo"; } >&5 3638 (eval "$ac_compile") 2>&5 3639 ac_status=$? 3640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3641 test $ac_status = 0; }; then : 3642 for ac_file in conftest.o conftest.obj conftest.*; do 3643 test -f "$ac_file" || continue; 3644 case $ac_file in 3645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3646 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3647 break;; 3648 esac 3649done 3650else 3651 $as_echo "$as_me: failed program was:" >&5 3652sed 's/^/| /' conftest.$ac_ext >&5 3653 3654{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3656as_fn_error $? "cannot compute suffix of object files: cannot compile 3657See \`config.log' for more details" "$LINENO" 5; } 3658fi 3659rm -f conftest.$ac_cv_objext conftest.$ac_ext 3660fi 3661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3662$as_echo "$ac_cv_objext" >&6; } 3663OBJEXT=$ac_cv_objext 3664ac_objext=$OBJEXT 3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3666$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3667if ${ac_cv_c_compiler_gnu+:} false; then : 3668 $as_echo_n "(cached) " >&6 3669else 3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3671/* end confdefs.h. */ 3672 3673int 3674main () 3675{ 3676#ifndef __GNUC__ 3677 choke me 3678#endif 3679 3680 ; 3681 return 0; 3682} 3683_ACEOF 3684if ac_fn_c_try_compile "$LINENO"; then : 3685 ac_compiler_gnu=yes 3686else 3687 ac_compiler_gnu=no 3688fi 3689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3690ac_cv_c_compiler_gnu=$ac_compiler_gnu 3691 3692fi 3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3694$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3695if test $ac_compiler_gnu = yes; then 3696 GCC=yes 3697else 3698 GCC= 3699fi 3700ac_test_CFLAGS=${CFLAGS+set} 3701ac_save_CFLAGS=$CFLAGS 3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3703$as_echo_n "checking whether $CC accepts -g... " >&6; } 3704if ${ac_cv_prog_cc_g+:} false; then : 3705 $as_echo_n "(cached) " >&6 3706else 3707 ac_save_c_werror_flag=$ac_c_werror_flag 3708 ac_c_werror_flag=yes 3709 ac_cv_prog_cc_g=no 3710 CFLAGS="-g" 3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3712/* end confdefs.h. */ 3713 3714int 3715main () 3716{ 3717 3718 ; 3719 return 0; 3720} 3721_ACEOF 3722if ac_fn_c_try_compile "$LINENO"; then : 3723 ac_cv_prog_cc_g=yes 3724else 3725 CFLAGS="" 3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3727/* end confdefs.h. */ 3728 3729int 3730main () 3731{ 3732 3733 ; 3734 return 0; 3735} 3736_ACEOF 3737if ac_fn_c_try_compile "$LINENO"; then : 3738 3739else 3740 ac_c_werror_flag=$ac_save_c_werror_flag 3741 CFLAGS="-g" 3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3743/* end confdefs.h. */ 3744 3745int 3746main () 3747{ 3748 3749 ; 3750 return 0; 3751} 3752_ACEOF 3753if ac_fn_c_try_compile "$LINENO"; then : 3754 ac_cv_prog_cc_g=yes 3755fi 3756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3757fi 3758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3759fi 3760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3761 ac_c_werror_flag=$ac_save_c_werror_flag 3762fi 3763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3764$as_echo "$ac_cv_prog_cc_g" >&6; } 3765if test "$ac_test_CFLAGS" = set; then 3766 CFLAGS=$ac_save_CFLAGS 3767elif test $ac_cv_prog_cc_g = yes; then 3768 if test "$GCC" = yes; then 3769 CFLAGS="-g -O2" 3770 else 3771 CFLAGS="-g" 3772 fi 3773else 3774 if test "$GCC" = yes; then 3775 CFLAGS="-O2" 3776 else 3777 CFLAGS= 3778 fi 3779fi 3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3781$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3782if ${ac_cv_prog_cc_c89+:} false; then : 3783 $as_echo_n "(cached) " >&6 3784else 3785 ac_cv_prog_cc_c89=no 3786ac_save_CC=$CC 3787cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3788/* end confdefs.h. */ 3789#include <stdarg.h> 3790#include <stdio.h> 3791struct stat; 3792/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3793struct buf { int x; }; 3794FILE * (*rcsopen) (struct buf *, struct stat *, int); 3795static char *e (p, i) 3796 char **p; 3797 int i; 3798{ 3799 return p[i]; 3800} 3801static char *f (char * (*g) (char **, int), char **p, ...) 3802{ 3803 char *s; 3804 va_list v; 3805 va_start (v,p); 3806 s = g (p, va_arg (v,int)); 3807 va_end (v); 3808 return s; 3809} 3810 3811/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3812 function prototypes and stuff, but not '\xHH' hex character constants. 3813 These don't provoke an error unfortunately, instead are silently treated 3814 as 'x'. The following induces an error, until -std is added to get 3815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3816 array size at least. It's necessary to write '\x00'==0 to get something 3817 that's true only with -std. */ 3818int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3819 3820/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3821 inside strings and character constants. */ 3822#define FOO(x) 'x' 3823int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3824 3825int test (int i, double x); 3826struct s1 {int (*f) (int a);}; 3827struct s2 {int (*f) (double a);}; 3828int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3829int argc; 3830char **argv; 3831int 3832main () 3833{ 3834return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3835 ; 3836 return 0; 3837} 3838_ACEOF 3839for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3841do 3842 CC="$ac_save_CC $ac_arg" 3843 if ac_fn_c_try_compile "$LINENO"; then : 3844 ac_cv_prog_cc_c89=$ac_arg 3845fi 3846rm -f core conftest.err conftest.$ac_objext 3847 test "x$ac_cv_prog_cc_c89" != "xno" && break 3848done 3849rm -f conftest.$ac_ext 3850CC=$ac_save_CC 3851 3852fi 3853# AC_CACHE_VAL 3854case "x$ac_cv_prog_cc_c89" in 3855 x) 3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3857$as_echo "none needed" >&6; } ;; 3858 xno) 3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3860$as_echo "unsupported" >&6; } ;; 3861 *) 3862 CC="$CC $ac_cv_prog_cc_c89" 3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3864$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3865esac 3866if test "x$ac_cv_prog_cc_c89" != xno; then : 3867 3868fi 3869 3870ac_ext=c 3871ac_cpp='$CPP $CPPFLAGS' 3872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3874ac_compiler_gnu=$ac_cv_c_compiler_gnu 3875 3876ac_ext=c 3877ac_cpp='$CPP $CPPFLAGS' 3878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3880ac_compiler_gnu=$ac_cv_c_compiler_gnu 3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3882$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3883if ${am_cv_prog_cc_c_o+:} false; then : 3884 $as_echo_n "(cached) " >&6 3885else 3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3887/* end confdefs.h. */ 3888 3889int 3890main () 3891{ 3892 3893 ; 3894 return 0; 3895} 3896_ACEOF 3897 # Make sure it works both with $CC and with simple cc. 3898 # Following AC_PROG_CC_C_O, we do the test twice because some 3899 # compilers refuse to overwrite an existing .o file with -o, 3900 # though they will create one. 3901 am_cv_prog_cc_c_o=yes 3902 for am_i in 1 2; do 3903 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3904 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3905 ac_status=$? 3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3907 (exit $ac_status); } \ 3908 && test -f conftest2.$ac_objext; then 3909 : OK 3910 else 3911 am_cv_prog_cc_c_o=no 3912 break 3913 fi 3914 done 3915 rm -f core conftest* 3916 unset am_i 3917fi 3918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3919$as_echo "$am_cv_prog_cc_c_o" >&6; } 3920if test "$am_cv_prog_cc_c_o" != yes; then 3921 # Losing compiler, so override with the script. 3922 # FIXME: It is wrong to rewrite CC. 3923 # But if we don't then we get into trouble of one sort or another. 3924 # A longer-term fix would be to have automake use am__CC in this case, 3925 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3926 CC="$am_aux_dir/compile $CC" 3927fi 3928ac_ext=c 3929ac_cpp='$CPP $CPPFLAGS' 3930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3932ac_compiler_gnu=$ac_cv_c_compiler_gnu 3933 3934 3935depcc="$CC" am_compiler_list= 3936 3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3938$as_echo_n "checking dependency style of $depcc... " >&6; } 3939if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3940 $as_echo_n "(cached) " >&6 3941else 3942 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3943 # We make a subdir and do the tests there. Otherwise we can end up 3944 # making bogus files that we don't know about and never remove. For 3945 # instance it was reported that on HP-UX the gcc test will end up 3946 # making a dummy file named 'D' -- because '-MD' means "put the output 3947 # in D". 3948 rm -rf conftest.dir 3949 mkdir conftest.dir 3950 # Copy depcomp to subdir because otherwise we won't find it if we're 3951 # using a relative directory. 3952 cp "$am_depcomp" conftest.dir 3953 cd conftest.dir 3954 # We will build objects and dependencies in a subdirectory because 3955 # it helps to detect inapplicable dependency modes. For instance 3956 # both Tru64's cc and ICC support -MD to output dependencies as a 3957 # side effect of compilation, but ICC will put the dependencies in 3958 # the current directory while Tru64 will put them in the object 3959 # directory. 3960 mkdir sub 3961 3962 am_cv_CC_dependencies_compiler_type=none 3963 if test "$am_compiler_list" = ""; then 3964 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3965 fi 3966 am__universal=false 3967 case " $depcc " in #( 3968 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3969 esac 3970 3971 for depmode in $am_compiler_list; do 3972 # Setup a source with many dependencies, because some compilers 3973 # like to wrap large dependency lists on column 80 (with \), and 3974 # we should not choose a depcomp mode which is confused by this. 3975 # 3976 # We need to recreate these files for each test, as the compiler may 3977 # overwrite some of them when testing with obscure command lines. 3978 # This happens at least with the AIX C compiler. 3979 : > sub/conftest.c 3980 for i in 1 2 3 4 5 6; do 3981 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3982 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3983 # Solaris 10 /bin/sh. 3984 echo '/* dummy */' > sub/conftst$i.h 3985 done 3986 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3987 3988 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3989 # mode. It turns out that the SunPro C++ compiler does not properly 3990 # handle '-M -o', and we need to detect this. Also, some Intel 3991 # versions had trouble with output in subdirs. 3992 am__obj=sub/conftest.${OBJEXT-o} 3993 am__minus_obj="-o $am__obj" 3994 case $depmode in 3995 gcc) 3996 # This depmode causes a compiler race in universal mode. 3997 test "$am__universal" = false || continue 3998 ;; 3999 nosideeffect) 4000 # After this tag, mechanisms are not by side-effect, so they'll 4001 # only be used when explicitly requested. 4002 if test "x$enable_dependency_tracking" = xyes; then 4003 continue 4004 else 4005 break 4006 fi 4007 ;; 4008 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4009 # This compiler won't grok '-c -o', but also, the minuso test has 4010 # not run yet. These depmodes are late enough in the game, and 4011 # so weak that their functioning should not be impacted. 4012 am__obj=conftest.${OBJEXT-o} 4013 am__minus_obj= 4014 ;; 4015 none) break ;; 4016 esac 4017 if depmode=$depmode \ 4018 source=sub/conftest.c object=$am__obj \ 4019 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4020 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4021 >/dev/null 2>conftest.err && 4022 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4023 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4024 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4025 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4026 # icc doesn't choke on unknown options, it will just issue warnings 4027 # or remarks (even with -Werror). So we grep stderr for any message 4028 # that says an option was ignored or not supported. 4029 # When given -MP, icc 7.0 and 7.1 complain thusly: 4030 # icc: Command line warning: ignoring option '-M'; no argument required 4031 # The diagnosis changed in icc 8.0: 4032 # icc: Command line remark: option '-MP' not supported 4033 if (grep 'ignoring option' conftest.err || 4034 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4035 am_cv_CC_dependencies_compiler_type=$depmode 4036 break 4037 fi 4038 fi 4039 done 4040 4041 cd .. 4042 rm -rf conftest.dir 4043else 4044 am_cv_CC_dependencies_compiler_type=none 4045fi 4046 4047fi 4048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4049$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4050CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4051 4052 if 4053 test "x$enable_dependency_tracking" != xno \ 4054 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4055 am__fastdepCC_TRUE= 4056 am__fastdepCC_FALSE='#' 4057else 4058 am__fastdepCC_TRUE='#' 4059 am__fastdepCC_FALSE= 4060fi 4061 4062 4063 4064# Check whether --enable-largefile was given. 4065if test "${enable_largefile+set}" = set; then : 4066 enableval=$enable_largefile; 4067fi 4068 4069if test "$enable_largefile" != no; then 4070 4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4072$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 4073if ${ac_cv_sys_largefile_CC+:} false; then : 4074 $as_echo_n "(cached) " >&6 4075else 4076 ac_cv_sys_largefile_CC=no 4077 if test "$GCC" != yes; then 4078 ac_save_CC=$CC 4079 while :; do 4080 # IRIX 6.2 and later do not support large files by default, 4081 # so use the C compiler's -n32 option if that helps. 4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4083/* end confdefs.h. */ 4084#include <sys/types.h> 4085 /* Check that off_t can represent 2**63 - 1 correctly. 4086 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4087 since some C++ compilers masquerading as C compilers 4088 incorrectly reject 9223372036854775807. */ 4089#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4090 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4091 && LARGE_OFF_T % 2147483647 == 1) 4092 ? 1 : -1]; 4093int 4094main () 4095{ 4096 4097 ; 4098 return 0; 4099} 4100_ACEOF 4101 if ac_fn_c_try_compile "$LINENO"; then : 4102 break 4103fi 4104rm -f core conftest.err conftest.$ac_objext 4105 CC="$CC -n32" 4106 if ac_fn_c_try_compile "$LINENO"; then : 4107 ac_cv_sys_largefile_CC=' -n32'; break 4108fi 4109rm -f core conftest.err conftest.$ac_objext 4110 break 4111 done 4112 CC=$ac_save_CC 4113 rm -f conftest.$ac_ext 4114 fi 4115fi 4116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 4117$as_echo "$ac_cv_sys_largefile_CC" >&6; } 4118 if test "$ac_cv_sys_largefile_CC" != no; then 4119 CC=$CC$ac_cv_sys_largefile_CC 4120 fi 4121 4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4123$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4124if ${ac_cv_sys_file_offset_bits+:} false; then : 4125 $as_echo_n "(cached) " >&6 4126else 4127 while :; do 4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4129/* end confdefs.h. */ 4130#include <sys/types.h> 4131 /* Check that off_t can represent 2**63 - 1 correctly. 4132 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4133 since some C++ compilers masquerading as C compilers 4134 incorrectly reject 9223372036854775807. */ 4135#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4136 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4137 && LARGE_OFF_T % 2147483647 == 1) 4138 ? 1 : -1]; 4139int 4140main () 4141{ 4142 4143 ; 4144 return 0; 4145} 4146_ACEOF 4147if ac_fn_c_try_compile "$LINENO"; then : 4148 ac_cv_sys_file_offset_bits=no; break 4149fi 4150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4152/* end confdefs.h. */ 4153#define _FILE_OFFSET_BITS 64 4154#include <sys/types.h> 4155 /* Check that off_t can represent 2**63 - 1 correctly. 4156 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4157 since some C++ compilers masquerading as C compilers 4158 incorrectly reject 9223372036854775807. */ 4159#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4160 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4161 && LARGE_OFF_T % 2147483647 == 1) 4162 ? 1 : -1]; 4163int 4164main () 4165{ 4166 4167 ; 4168 return 0; 4169} 4170_ACEOF 4171if ac_fn_c_try_compile "$LINENO"; then : 4172 ac_cv_sys_file_offset_bits=64; break 4173fi 4174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4175 ac_cv_sys_file_offset_bits=unknown 4176 break 4177done 4178fi 4179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 4180$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 4181case $ac_cv_sys_file_offset_bits in #( 4182 no | unknown) ;; 4183 *) 4184cat >>confdefs.h <<_ACEOF 4185#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4186_ACEOF 4187;; 4188esac 4189rm -rf conftest* 4190 if test $ac_cv_sys_file_offset_bits = unknown; then 4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 4192$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 4193if ${ac_cv_sys_large_files+:} false; then : 4194 $as_echo_n "(cached) " >&6 4195else 4196 while :; do 4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4198/* end confdefs.h. */ 4199#include <sys/types.h> 4200 /* Check that off_t can represent 2**63 - 1 correctly. 4201 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4202 since some C++ compilers masquerading as C compilers 4203 incorrectly reject 9223372036854775807. */ 4204#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4205 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4206 && LARGE_OFF_T % 2147483647 == 1) 4207 ? 1 : -1]; 4208int 4209main () 4210{ 4211 4212 ; 4213 return 0; 4214} 4215_ACEOF 4216if ac_fn_c_try_compile "$LINENO"; then : 4217 ac_cv_sys_large_files=no; break 4218fi 4219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4221/* end confdefs.h. */ 4222#define _LARGE_FILES 1 4223#include <sys/types.h> 4224 /* Check that off_t can represent 2**63 - 1 correctly. 4225 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4226 since some C++ compilers masquerading as C compilers 4227 incorrectly reject 9223372036854775807. */ 4228#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4229 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4230 && LARGE_OFF_T % 2147483647 == 1) 4231 ? 1 : -1]; 4232int 4233main () 4234{ 4235 4236 ; 4237 return 0; 4238} 4239_ACEOF 4240if ac_fn_c_try_compile "$LINENO"; then : 4241 ac_cv_sys_large_files=1; break 4242fi 4243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4244 ac_cv_sys_large_files=unknown 4245 break 4246done 4247fi 4248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 4249$as_echo "$ac_cv_sys_large_files" >&6; } 4250case $ac_cv_sys_large_files in #( 4251 no | unknown) ;; 4252 *) 4253cat >>confdefs.h <<_ACEOF 4254#define _LARGE_FILES $ac_cv_sys_large_files 4255_ACEOF 4256;; 4257esac 4258rm -rf conftest* 4259 fi 4260 4261 4262fi 4263 4264 4265# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4278$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4279if ${ac_cv_prog_cc_c99+:} false; then : 4280 $as_echo_n "(cached) " >&6 4281else 4282 ac_cv_prog_cc_c99=no 4283ac_save_CC=$CC 4284cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4285/* end confdefs.h. */ 4286#include <stdarg.h> 4287#include <stdbool.h> 4288#include <stdlib.h> 4289#include <wchar.h> 4290#include <stdio.h> 4291 4292// Check varargs macros. These examples are taken from C99 6.10.3.5. 4293#define debug(...) fprintf (stderr, __VA_ARGS__) 4294#define showlist(...) puts (#__VA_ARGS__) 4295#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4296static void 4297test_varargs_macros (void) 4298{ 4299 int x = 1234; 4300 int y = 5678; 4301 debug ("Flag"); 4302 debug ("X = %d\n", x); 4303 showlist (The first, second, and third items.); 4304 report (x>y, "x is %d but y is %d", x, y); 4305} 4306 4307// Check long long types. 4308#define BIG64 18446744073709551615ull 4309#define BIG32 4294967295ul 4310#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4311#if !BIG_OK 4312 your preprocessor is broken; 4313#endif 4314#if BIG_OK 4315#else 4316 your preprocessor is broken; 4317#endif 4318static long long int bignum = -9223372036854775807LL; 4319static unsigned long long int ubignum = BIG64; 4320 4321struct incomplete_array 4322{ 4323 int datasize; 4324 double data[]; 4325}; 4326 4327struct named_init { 4328 int number; 4329 const wchar_t *name; 4330 double average; 4331}; 4332 4333typedef const char *ccp; 4334 4335static inline int 4336test_restrict (ccp restrict text) 4337{ 4338 // See if C++-style comments work. 4339 // Iterate through items via the restricted pointer. 4340 // Also check for declarations in for loops. 4341 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4342 continue; 4343 return 0; 4344} 4345 4346// Check varargs and va_copy. 4347static void 4348test_varargs (const char *format, ...) 4349{ 4350 va_list args; 4351 va_start (args, format); 4352 va_list args_copy; 4353 va_copy (args_copy, args); 4354 4355 const char *str; 4356 int number; 4357 float fnumber; 4358 4359 while (*format) 4360 { 4361 switch (*format++) 4362 { 4363 case 's': // string 4364 str = va_arg (args_copy, const char *); 4365 break; 4366 case 'd': // int 4367 number = va_arg (args_copy, int); 4368 break; 4369 case 'f': // float 4370 fnumber = va_arg (args_copy, double); 4371 break; 4372 default: 4373 break; 4374 } 4375 } 4376 va_end (args_copy); 4377 va_end (args); 4378} 4379 4380int 4381main () 4382{ 4383 4384 // Check bool. 4385 _Bool success = false; 4386 4387 // Check restrict. 4388 if (test_restrict ("String literal") == 0) 4389 success = true; 4390 char *restrict newvar = "Another string"; 4391 4392 // Check varargs. 4393 test_varargs ("s, d' f .", "string", 65, 34.234); 4394 test_varargs_macros (); 4395 4396 // Check flexible array members. 4397 struct incomplete_array *ia = 4398 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4399 ia->datasize = 10; 4400 for (int i = 0; i < ia->datasize; ++i) 4401 ia->data[i] = i * 1.234; 4402 4403 // Check named initializers. 4404 struct named_init ni = { 4405 .number = 34, 4406 .name = L"Test wide string", 4407 .average = 543.34343, 4408 }; 4409 4410 ni.number = 58; 4411 4412 int dynamic_array[ni.number]; 4413 dynamic_array[ni.number - 1] = 543; 4414 4415 // work around unused variable warnings 4416 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4417 || dynamic_array[ni.number - 1] != 543); 4418 4419 ; 4420 return 0; 4421} 4422_ACEOF 4423for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4424do 4425 CC="$ac_save_CC $ac_arg" 4426 if ac_fn_c_try_compile "$LINENO"; then : 4427 ac_cv_prog_cc_c99=$ac_arg 4428fi 4429rm -f core conftest.err conftest.$ac_objext 4430 test "x$ac_cv_prog_cc_c99" != "xno" && break 4431done 4432rm -f conftest.$ac_ext 4433CC=$ac_save_CC 4434 4435fi 4436# AC_CACHE_VAL 4437case "x$ac_cv_prog_cc_c99" in 4438 x) 4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4440$as_echo "none needed" >&6; } ;; 4441 xno) 4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4443$as_echo "unsupported" >&6; } ;; 4444 *) 4445 CC="$CC $ac_cv_prog_cc_c99" 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4447$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4448esac 4449if test "x$ac_cv_prog_cc_c99" != xno; then : 4450 4451fi 4452 4453 4454ac_ext=c 4455ac_cpp='$CPP $CPPFLAGS' 4456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4458ac_compiler_gnu=$ac_cv_c_compiler_gnu 4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4460$as_echo_n "checking how to run the C preprocessor... " >&6; } 4461# On Suns, sometimes $CPP names a directory. 4462if test -n "$CPP" && test -d "$CPP"; then 4463 CPP= 4464fi 4465if test -z "$CPP"; then 4466 if ${ac_cv_prog_CPP+:} false; then : 4467 $as_echo_n "(cached) " >&6 4468else 4469 # Double quotes because CPP needs to be expanded 4470 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4471 do 4472 ac_preproc_ok=false 4473for ac_c_preproc_warn_flag in '' yes 4474do 4475 # Use a header file that comes with gcc, so configuring glibc 4476 # with a fresh cross-compiler works. 4477 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4478 # <limits.h> exists even on freestanding compilers. 4479 # On the NeXT, cc -E runs the code through the compiler's parser, 4480 # not just through cpp. "Syntax error" is here to catch this case. 4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4482/* end confdefs.h. */ 4483#ifdef __STDC__ 4484# include <limits.h> 4485#else 4486# include <assert.h> 4487#endif 4488 Syntax error 4489_ACEOF 4490if ac_fn_c_try_cpp "$LINENO"; then : 4491 4492else 4493 # Broken: fails on valid input. 4494continue 4495fi 4496rm -f conftest.err conftest.i conftest.$ac_ext 4497 4498 # OK, works on sane cases. Now check whether nonexistent headers 4499 # can be detected and how. 4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4501/* end confdefs.h. */ 4502#include <ac_nonexistent.h> 4503_ACEOF 4504if ac_fn_c_try_cpp "$LINENO"; then : 4505 # Broken: success on invalid input. 4506continue 4507else 4508 # Passes both tests. 4509ac_preproc_ok=: 4510break 4511fi 4512rm -f conftest.err conftest.i conftest.$ac_ext 4513 4514done 4515# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4516rm -f conftest.i conftest.err conftest.$ac_ext 4517if $ac_preproc_ok; then : 4518 break 4519fi 4520 4521 done 4522 ac_cv_prog_CPP=$CPP 4523 4524fi 4525 CPP=$ac_cv_prog_CPP 4526else 4527 ac_cv_prog_CPP=$CPP 4528fi 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4530$as_echo "$CPP" >&6; } 4531ac_preproc_ok=false 4532for ac_c_preproc_warn_flag in '' yes 4533do 4534 # Use a header file that comes with gcc, so configuring glibc 4535 # with a fresh cross-compiler works. 4536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4537 # <limits.h> exists even on freestanding compilers. 4538 # On the NeXT, cc -E runs the code through the compiler's parser, 4539 # not just through cpp. "Syntax error" is here to catch this case. 4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4541/* end confdefs.h. */ 4542#ifdef __STDC__ 4543# include <limits.h> 4544#else 4545# include <assert.h> 4546#endif 4547 Syntax error 4548_ACEOF 4549if ac_fn_c_try_cpp "$LINENO"; then : 4550 4551else 4552 # Broken: fails on valid input. 4553continue 4554fi 4555rm -f conftest.err conftest.i conftest.$ac_ext 4556 4557 # OK, works on sane cases. Now check whether nonexistent headers 4558 # can be detected and how. 4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4560/* end confdefs.h. */ 4561#include <ac_nonexistent.h> 4562_ACEOF 4563if ac_fn_c_try_cpp "$LINENO"; then : 4564 # Broken: success on invalid input. 4565continue 4566else 4567 # Passes both tests. 4568ac_preproc_ok=: 4569break 4570fi 4571rm -f conftest.err conftest.i conftest.$ac_ext 4572 4573done 4574# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4575rm -f conftest.i conftest.err conftest.$ac_ext 4576if $ac_preproc_ok; then : 4577 4578else 4579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4581as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4582See \`config.log' for more details" "$LINENO" 5; } 4583fi 4584 4585ac_ext=c 4586ac_cpp='$CPP $CPPFLAGS' 4587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4589ac_compiler_gnu=$ac_cv_c_compiler_gnu 4590 4591 4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4593$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4594if ${ac_cv_path_GREP+:} false; then : 4595 $as_echo_n "(cached) " >&6 4596else 4597 if test -z "$GREP"; then 4598 ac_path_GREP_found=false 4599 # Loop through the user's path and test for each of PROGNAME-LIST 4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4601for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4602do 4603 IFS=$as_save_IFS 4604 test -z "$as_dir" && as_dir=. 4605 for ac_prog in grep ggrep; do 4606 for ac_exec_ext in '' $ac_executable_extensions; do 4607 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4608 as_fn_executable_p "$ac_path_GREP" || continue 4609# Check for GNU ac_path_GREP and select it if it is found. 4610 # Check for GNU $ac_path_GREP 4611case `"$ac_path_GREP" --version 2>&1` in 4612*GNU*) 4613 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4614*) 4615 ac_count=0 4616 $as_echo_n 0123456789 >"conftest.in" 4617 while : 4618 do 4619 cat "conftest.in" "conftest.in" >"conftest.tmp" 4620 mv "conftest.tmp" "conftest.in" 4621 cp "conftest.in" "conftest.nl" 4622 $as_echo 'GREP' >> "conftest.nl" 4623 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4625 as_fn_arith $ac_count + 1 && ac_count=$as_val 4626 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4627 # Best one so far, save it but keep looking for a better one 4628 ac_cv_path_GREP="$ac_path_GREP" 4629 ac_path_GREP_max=$ac_count 4630 fi 4631 # 10*(2^10) chars as input seems more than enough 4632 test $ac_count -gt 10 && break 4633 done 4634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4635esac 4636 4637 $ac_path_GREP_found && break 3 4638 done 4639 done 4640 done 4641IFS=$as_save_IFS 4642 if test -z "$ac_cv_path_GREP"; then 4643 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4644 fi 4645else 4646 ac_cv_path_GREP=$GREP 4647fi 4648 4649fi 4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4651$as_echo "$ac_cv_path_GREP" >&6; } 4652 GREP="$ac_cv_path_GREP" 4653 4654 4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4656$as_echo_n "checking for egrep... " >&6; } 4657if ${ac_cv_path_EGREP+:} false; then : 4658 $as_echo_n "(cached) " >&6 4659else 4660 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4661 then ac_cv_path_EGREP="$GREP -E" 4662 else 4663 if test -z "$EGREP"; then 4664 ac_path_EGREP_found=false 4665 # Loop through the user's path and test for each of PROGNAME-LIST 4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4667for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4668do 4669 IFS=$as_save_IFS 4670 test -z "$as_dir" && as_dir=. 4671 for ac_prog in egrep; do 4672 for ac_exec_ext in '' $ac_executable_extensions; do 4673 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4674 as_fn_executable_p "$ac_path_EGREP" || continue 4675# Check for GNU ac_path_EGREP and select it if it is found. 4676 # Check for GNU $ac_path_EGREP 4677case `"$ac_path_EGREP" --version 2>&1` in 4678*GNU*) 4679 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4680*) 4681 ac_count=0 4682 $as_echo_n 0123456789 >"conftest.in" 4683 while : 4684 do 4685 cat "conftest.in" "conftest.in" >"conftest.tmp" 4686 mv "conftest.tmp" "conftest.in" 4687 cp "conftest.in" "conftest.nl" 4688 $as_echo 'EGREP' >> "conftest.nl" 4689 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4690 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4691 as_fn_arith $ac_count + 1 && ac_count=$as_val 4692 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4693 # Best one so far, save it but keep looking for a better one 4694 ac_cv_path_EGREP="$ac_path_EGREP" 4695 ac_path_EGREP_max=$ac_count 4696 fi 4697 # 10*(2^10) chars as input seems more than enough 4698 test $ac_count -gt 10 && break 4699 done 4700 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4701esac 4702 4703 $ac_path_EGREP_found && break 3 4704 done 4705 done 4706 done 4707IFS=$as_save_IFS 4708 if test -z "$ac_cv_path_EGREP"; then 4709 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4710 fi 4711else 4712 ac_cv_path_EGREP=$EGREP 4713fi 4714 4715 fi 4716fi 4717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4718$as_echo "$ac_cv_path_EGREP" >&6; } 4719 EGREP="$ac_cv_path_EGREP" 4720 4721 4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4723$as_echo_n "checking for ANSI C header files... " >&6; } 4724if ${ac_cv_header_stdc+:} false; then : 4725 $as_echo_n "(cached) " >&6 4726else 4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4728/* end confdefs.h. */ 4729#include <stdlib.h> 4730#include <stdarg.h> 4731#include <string.h> 4732#include <float.h> 4733 4734int 4735main () 4736{ 4737 4738 ; 4739 return 0; 4740} 4741_ACEOF 4742if ac_fn_c_try_compile "$LINENO"; then : 4743 ac_cv_header_stdc=yes 4744else 4745 ac_cv_header_stdc=no 4746fi 4747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4748 4749if test $ac_cv_header_stdc = yes; then 4750 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4752/* end confdefs.h. */ 4753#include <string.h> 4754 4755_ACEOF 4756if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4757 $EGREP "memchr" >/dev/null 2>&1; then : 4758 4759else 4760 ac_cv_header_stdc=no 4761fi 4762rm -f conftest* 4763 4764fi 4765 4766if test $ac_cv_header_stdc = yes; then 4767 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4769/* end confdefs.h. */ 4770#include <stdlib.h> 4771 4772_ACEOF 4773if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4774 $EGREP "free" >/dev/null 2>&1; then : 4775 4776else 4777 ac_cv_header_stdc=no 4778fi 4779rm -f conftest* 4780 4781fi 4782 4783if test $ac_cv_header_stdc = yes; then 4784 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4785 if test "$cross_compiling" = yes; then : 4786 : 4787else 4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4789/* end confdefs.h. */ 4790#include <ctype.h> 4791#include <stdlib.h> 4792#if ((' ' & 0x0FF) == 0x020) 4793# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4794# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4795#else 4796# define ISLOWER(c) \ 4797 (('a' <= (c) && (c) <= 'i') \ 4798 || ('j' <= (c) && (c) <= 'r') \ 4799 || ('s' <= (c) && (c) <= 'z')) 4800# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4801#endif 4802 4803#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4804int 4805main () 4806{ 4807 int i; 4808 for (i = 0; i < 256; i++) 4809 if (XOR (islower (i), ISLOWER (i)) 4810 || toupper (i) != TOUPPER (i)) 4811 return 2; 4812 return 0; 4813} 4814_ACEOF 4815if ac_fn_c_try_run "$LINENO"; then : 4816 4817else 4818 ac_cv_header_stdc=no 4819fi 4820rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4821 conftest.$ac_objext conftest.beam conftest.$ac_ext 4822fi 4823 4824fi 4825fi 4826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4827$as_echo "$ac_cv_header_stdc" >&6; } 4828if test $ac_cv_header_stdc = yes; then 4829 4830$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4831 4832fi 4833 4834# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4835for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4836 inttypes.h stdint.h unistd.h 4837do : 4838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4839ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4840" 4841if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4842 cat >>confdefs.h <<_ACEOF 4843#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4844_ACEOF 4845 4846fi 4847 4848done 4849 4850 4851 4852 4853 4854 4855ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4856if test "x$ac_cv_have_decl___clang__" = xyes; then : 4857 CLANGCC="yes" 4858else 4859 CLANGCC="no" 4860fi 4861 4862ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4863if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4864 INTELCC="yes" 4865else 4866 INTELCC="no" 4867fi 4868 4869ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4870if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4871 SUNCC="yes" 4872else 4873 SUNCC="no" 4874fi 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4885 if test -n "$ac_tool_prefix"; then 4886 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4887set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4889$as_echo_n "checking for $ac_word... " >&6; } 4890if ${ac_cv_path_PKG_CONFIG+:} false; then : 4891 $as_echo_n "(cached) " >&6 4892else 4893 case $PKG_CONFIG in 4894 [\\/]* | ?:[\\/]*) 4895 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4896 ;; 4897 *) 4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4899for as_dir in $PATH 4900do 4901 IFS=$as_save_IFS 4902 test -z "$as_dir" && as_dir=. 4903 for ac_exec_ext in '' $ac_executable_extensions; do 4904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4905 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4907 break 2 4908 fi 4909done 4910 done 4911IFS=$as_save_IFS 4912 4913 ;; 4914esac 4915fi 4916PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4917if test -n "$PKG_CONFIG"; then 4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4919$as_echo "$PKG_CONFIG" >&6; } 4920else 4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4922$as_echo "no" >&6; } 4923fi 4924 4925 4926fi 4927if test -z "$ac_cv_path_PKG_CONFIG"; then 4928 ac_pt_PKG_CONFIG=$PKG_CONFIG 4929 # Extract the first word of "pkg-config", so it can be a program name with args. 4930set dummy pkg-config; ac_word=$2 4931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4932$as_echo_n "checking for $ac_word... " >&6; } 4933if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4934 $as_echo_n "(cached) " >&6 4935else 4936 case $ac_pt_PKG_CONFIG in 4937 [\\/]* | ?:[\\/]*) 4938 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4939 ;; 4940 *) 4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4942for as_dir in $PATH 4943do 4944 IFS=$as_save_IFS 4945 test -z "$as_dir" && as_dir=. 4946 for ac_exec_ext in '' $ac_executable_extensions; do 4947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4948 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4950 break 2 4951 fi 4952done 4953 done 4954IFS=$as_save_IFS 4955 4956 ;; 4957esac 4958fi 4959ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4960if test -n "$ac_pt_PKG_CONFIG"; then 4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4962$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4963else 4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4965$as_echo "no" >&6; } 4966fi 4967 4968 if test "x$ac_pt_PKG_CONFIG" = x; then 4969 PKG_CONFIG="" 4970 else 4971 case $cross_compiling:$ac_tool_warned in 4972yes:) 4973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4975ac_tool_warned=yes ;; 4976esac 4977 PKG_CONFIG=$ac_pt_PKG_CONFIG 4978 fi 4979else 4980 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4981fi 4982 4983fi 4984if test -n "$PKG_CONFIG"; then 4985 _pkg_min_version=0.9.0 4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4987$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4988 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4990$as_echo "yes" >&6; } 4991 else 4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4993$as_echo "no" >&6; } 4994 PKG_CONFIG="" 4995 fi 4996fi 4997# Make sure we can run config.sub. 4998$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4999 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5000 5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5002$as_echo_n "checking build system type... " >&6; } 5003if ${ac_cv_build+:} false; then : 5004 $as_echo_n "(cached) " >&6 5005else 5006 ac_build_alias=$build_alias 5007test "x$ac_build_alias" = x && 5008 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5009test "x$ac_build_alias" = x && 5010 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5011ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5012 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5013 5014fi 5015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5016$as_echo "$ac_cv_build" >&6; } 5017case $ac_cv_build in 5018*-*-*) ;; 5019*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5020esac 5021build=$ac_cv_build 5022ac_save_IFS=$IFS; IFS='-' 5023set x $ac_cv_build 5024shift 5025build_cpu=$1 5026build_vendor=$2 5027shift; shift 5028# Remember, the first character of IFS is used to create $*, 5029# except with old shells: 5030build_os=$* 5031IFS=$ac_save_IFS 5032case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5033 5034 5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5036$as_echo_n "checking host system type... " >&6; } 5037if ${ac_cv_host+:} false; then : 5038 $as_echo_n "(cached) " >&6 5039else 5040 if test "x$host_alias" = x; then 5041 ac_cv_host=$ac_cv_build 5042else 5043 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5044 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5045fi 5046 5047fi 5048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5049$as_echo "$ac_cv_host" >&6; } 5050case $ac_cv_host in 5051*-*-*) ;; 5052*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5053esac 5054host=$ac_cv_host 5055ac_save_IFS=$IFS; IFS='-' 5056set x $ac_cv_host 5057shift 5058host_cpu=$1 5059host_vendor=$2 5060shift; shift 5061# Remember, the first character of IFS is used to create $*, 5062# except with old shells: 5063host_os=$* 5064IFS=$ac_save_IFS 5065case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5066 5067 5068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5069$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5070if ${ac_cv_path_SED+:} false; then : 5071 $as_echo_n "(cached) " >&6 5072else 5073 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5074 for ac_i in 1 2 3 4 5 6 7; do 5075 ac_script="$ac_script$as_nl$ac_script" 5076 done 5077 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5078 { ac_script=; unset ac_script;} 5079 if test -z "$SED"; then 5080 ac_path_SED_found=false 5081 # Loop through the user's path and test for each of PROGNAME-LIST 5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5083for as_dir in $PATH 5084do 5085 IFS=$as_save_IFS 5086 test -z "$as_dir" && as_dir=. 5087 for ac_prog in sed gsed; do 5088 for ac_exec_ext in '' $ac_executable_extensions; do 5089 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5090 as_fn_executable_p "$ac_path_SED" || continue 5091# Check for GNU ac_path_SED and select it if it is found. 5092 # Check for GNU $ac_path_SED 5093case `"$ac_path_SED" --version 2>&1` in 5094*GNU*) 5095 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5096*) 5097 ac_count=0 5098 $as_echo_n 0123456789 >"conftest.in" 5099 while : 5100 do 5101 cat "conftest.in" "conftest.in" >"conftest.tmp" 5102 mv "conftest.tmp" "conftest.in" 5103 cp "conftest.in" "conftest.nl" 5104 $as_echo '' >> "conftest.nl" 5105 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5107 as_fn_arith $ac_count + 1 && ac_count=$as_val 5108 if test $ac_count -gt ${ac_path_SED_max-0}; then 5109 # Best one so far, save it but keep looking for a better one 5110 ac_cv_path_SED="$ac_path_SED" 5111 ac_path_SED_max=$ac_count 5112 fi 5113 # 10*(2^10) chars as input seems more than enough 5114 test $ac_count -gt 10 && break 5115 done 5116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5117esac 5118 5119 $ac_path_SED_found && break 3 5120 done 5121 done 5122 done 5123IFS=$as_save_IFS 5124 if test -z "$ac_cv_path_SED"; then 5125 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5126 fi 5127else 5128 ac_cv_path_SED=$SED 5129fi 5130 5131fi 5132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5133$as_echo "$ac_cv_path_SED" >&6; } 5134 SED="$ac_cv_path_SED" 5135 rm -f conftest.sed 5136 5137 5138 5139 5140 5141 5142# Check whether --enable-selective-werror was given. 5143if test "${enable_selective_werror+set}" = set; then : 5144 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5145else 5146 SELECTIVE_WERROR=yes 5147fi 5148 5149 5150 5151 5152 5153# -v is too short to test reliably with XORG_TESTSET_CFLAG 5154if test "x$SUNCC" = "xyes"; then 5155 BASE_CFLAGS="-v" 5156else 5157 BASE_CFLAGS="" 5158fi 5159 5160# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174xorg_testset_save_CFLAGS="$CFLAGS" 5175 5176if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5179$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5180if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5181 $as_echo_n "(cached) " >&6 5182else 5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5184/* end confdefs.h. */ 5185int i; 5186_ACEOF 5187if ac_fn_c_try_compile "$LINENO"; then : 5188 xorg_cv_cc_flag_unknown_warning_option=yes 5189else 5190 xorg_cv_cc_flag_unknown_warning_option=no 5191fi 5192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5193fi 5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5195$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5197 CFLAGS="$xorg_testset_save_CFLAGS" 5198fi 5199 5200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5203 fi 5204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5206$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5207if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5208 $as_echo_n "(cached) " >&6 5209else 5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5211/* end confdefs.h. */ 5212int i; 5213_ACEOF 5214if ac_fn_c_try_compile "$LINENO"; then : 5215 xorg_cv_cc_flag_unused_command_line_argument=yes 5216else 5217 xorg_cv_cc_flag_unused_command_line_argument=no 5218fi 5219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5220fi 5221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5222$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5224 CFLAGS="$xorg_testset_save_CFLAGS" 5225fi 5226 5227found="no" 5228 5229 if test $found = "no" ; then 5230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5232 fi 5233 5234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5236 fi 5237 5238 CFLAGS="$CFLAGS -Wall" 5239 5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5241$as_echo_n "checking if $CC supports -Wall... " >&6; } 5242 cacheid=xorg_cv_cc_flag__Wall 5243 if eval \${$cacheid+:} false; then : 5244 $as_echo_n "(cached) " >&6 5245else 5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5247/* end confdefs.h. */ 5248int i; 5249int 5250main () 5251{ 5252 5253 ; 5254 return 0; 5255} 5256_ACEOF 5257if ac_fn_c_try_link "$LINENO"; then : 5258 eval $cacheid=yes 5259else 5260 eval $cacheid=no 5261fi 5262rm -f core conftest.err conftest.$ac_objext \ 5263 conftest$ac_exeext conftest.$ac_ext 5264fi 5265 5266 5267 CFLAGS="$xorg_testset_save_CFLAGS" 5268 5269 eval supported=\$$cacheid 5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5271$as_echo "$supported" >&6; } 5272 if test "$supported" = "yes" ; then 5273 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5274 found="yes" 5275 fi 5276 fi 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292xorg_testset_save_CFLAGS="$CFLAGS" 5293 5294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5297$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5298if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5299 $as_echo_n "(cached) " >&6 5300else 5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5302/* end confdefs.h. */ 5303int i; 5304_ACEOF 5305if ac_fn_c_try_compile "$LINENO"; then : 5306 xorg_cv_cc_flag_unknown_warning_option=yes 5307else 5308 xorg_cv_cc_flag_unknown_warning_option=no 5309fi 5310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5311fi 5312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5313$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5315 CFLAGS="$xorg_testset_save_CFLAGS" 5316fi 5317 5318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5321 fi 5322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5324$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5325if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5326 $as_echo_n "(cached) " >&6 5327else 5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5329/* end confdefs.h. */ 5330int i; 5331_ACEOF 5332if ac_fn_c_try_compile "$LINENO"; then : 5333 xorg_cv_cc_flag_unused_command_line_argument=yes 5334else 5335 xorg_cv_cc_flag_unused_command_line_argument=no 5336fi 5337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5338fi 5339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5340$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5342 CFLAGS="$xorg_testset_save_CFLAGS" 5343fi 5344 5345found="no" 5346 5347 if test $found = "no" ; then 5348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5350 fi 5351 5352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5354 fi 5355 5356 CFLAGS="$CFLAGS -Wpointer-arith" 5357 5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5359$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5360 cacheid=xorg_cv_cc_flag__Wpointer_arith 5361 if eval \${$cacheid+:} false; then : 5362 $as_echo_n "(cached) " >&6 5363else 5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5365/* end confdefs.h. */ 5366int i; 5367int 5368main () 5369{ 5370 5371 ; 5372 return 0; 5373} 5374_ACEOF 5375if ac_fn_c_try_link "$LINENO"; then : 5376 eval $cacheid=yes 5377else 5378 eval $cacheid=no 5379fi 5380rm -f core conftest.err conftest.$ac_objext \ 5381 conftest$ac_exeext conftest.$ac_ext 5382fi 5383 5384 5385 CFLAGS="$xorg_testset_save_CFLAGS" 5386 5387 eval supported=\$$cacheid 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5389$as_echo "$supported" >&6; } 5390 if test "$supported" = "yes" ; then 5391 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5392 found="yes" 5393 fi 5394 fi 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410xorg_testset_save_CFLAGS="$CFLAGS" 5411 5412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5415$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5416if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5417 $as_echo_n "(cached) " >&6 5418else 5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5420/* end confdefs.h. */ 5421int i; 5422_ACEOF 5423if ac_fn_c_try_compile "$LINENO"; then : 5424 xorg_cv_cc_flag_unknown_warning_option=yes 5425else 5426 xorg_cv_cc_flag_unknown_warning_option=no 5427fi 5428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5429fi 5430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5431$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5433 CFLAGS="$xorg_testset_save_CFLAGS" 5434fi 5435 5436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5439 fi 5440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5442$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5443if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5444 $as_echo_n "(cached) " >&6 5445else 5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5447/* end confdefs.h. */ 5448int i; 5449_ACEOF 5450if ac_fn_c_try_compile "$LINENO"; then : 5451 xorg_cv_cc_flag_unused_command_line_argument=yes 5452else 5453 xorg_cv_cc_flag_unused_command_line_argument=no 5454fi 5455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5456fi 5457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5458$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5460 CFLAGS="$xorg_testset_save_CFLAGS" 5461fi 5462 5463found="no" 5464 5465 if test $found = "no" ; then 5466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5468 fi 5469 5470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5472 fi 5473 5474 CFLAGS="$CFLAGS -Wmissing-declarations" 5475 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5477$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5478 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5479 if eval \${$cacheid+:} false; then : 5480 $as_echo_n "(cached) " >&6 5481else 5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5483/* end confdefs.h. */ 5484int i; 5485int 5486main () 5487{ 5488 5489 ; 5490 return 0; 5491} 5492_ACEOF 5493if ac_fn_c_try_link "$LINENO"; then : 5494 eval $cacheid=yes 5495else 5496 eval $cacheid=no 5497fi 5498rm -f core conftest.err conftest.$ac_objext \ 5499 conftest$ac_exeext conftest.$ac_ext 5500fi 5501 5502 5503 CFLAGS="$xorg_testset_save_CFLAGS" 5504 5505 eval supported=\$$cacheid 5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5507$as_echo "$supported" >&6; } 5508 if test "$supported" = "yes" ; then 5509 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5510 found="yes" 5511 fi 5512 fi 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528xorg_testset_save_CFLAGS="$CFLAGS" 5529 5530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5533$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5534if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5535 $as_echo_n "(cached) " >&6 5536else 5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5538/* end confdefs.h. */ 5539int i; 5540_ACEOF 5541if ac_fn_c_try_compile "$LINENO"; then : 5542 xorg_cv_cc_flag_unknown_warning_option=yes 5543else 5544 xorg_cv_cc_flag_unknown_warning_option=no 5545fi 5546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5547fi 5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5549$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5551 CFLAGS="$xorg_testset_save_CFLAGS" 5552fi 5553 5554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5557 fi 5558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5560$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5561if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5562 $as_echo_n "(cached) " >&6 5563else 5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5565/* end confdefs.h. */ 5566int i; 5567_ACEOF 5568if ac_fn_c_try_compile "$LINENO"; then : 5569 xorg_cv_cc_flag_unused_command_line_argument=yes 5570else 5571 xorg_cv_cc_flag_unused_command_line_argument=no 5572fi 5573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5574fi 5575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5576$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5578 CFLAGS="$xorg_testset_save_CFLAGS" 5579fi 5580 5581found="no" 5582 5583 if test $found = "no" ; then 5584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5586 fi 5587 5588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5590 fi 5591 5592 CFLAGS="$CFLAGS -Wformat=2" 5593 5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5595$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5596 cacheid=xorg_cv_cc_flag__Wformat_2 5597 if eval \${$cacheid+:} false; then : 5598 $as_echo_n "(cached) " >&6 5599else 5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5601/* end confdefs.h. */ 5602int i; 5603int 5604main () 5605{ 5606 5607 ; 5608 return 0; 5609} 5610_ACEOF 5611if ac_fn_c_try_link "$LINENO"; then : 5612 eval $cacheid=yes 5613else 5614 eval $cacheid=no 5615fi 5616rm -f core conftest.err conftest.$ac_objext \ 5617 conftest$ac_exeext conftest.$ac_ext 5618fi 5619 5620 5621 CFLAGS="$xorg_testset_save_CFLAGS" 5622 5623 eval supported=\$$cacheid 5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5625$as_echo "$supported" >&6; } 5626 if test "$supported" = "yes" ; then 5627 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5628 found="yes" 5629 fi 5630 fi 5631 5632 if test $found = "no" ; then 5633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5635 fi 5636 5637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5639 fi 5640 5641 CFLAGS="$CFLAGS -Wformat" 5642 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5644$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5645 cacheid=xorg_cv_cc_flag__Wformat 5646 if eval \${$cacheid+:} false; then : 5647 $as_echo_n "(cached) " >&6 5648else 5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5650/* end confdefs.h. */ 5651int i; 5652int 5653main () 5654{ 5655 5656 ; 5657 return 0; 5658} 5659_ACEOF 5660if ac_fn_c_try_link "$LINENO"; then : 5661 eval $cacheid=yes 5662else 5663 eval $cacheid=no 5664fi 5665rm -f core conftest.err conftest.$ac_objext \ 5666 conftest$ac_exeext conftest.$ac_ext 5667fi 5668 5669 5670 CFLAGS="$xorg_testset_save_CFLAGS" 5671 5672 eval supported=\$$cacheid 5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5674$as_echo "$supported" >&6; } 5675 if test "$supported" = "yes" ; then 5676 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5677 found="yes" 5678 fi 5679 fi 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697xorg_testset_save_CFLAGS="$CFLAGS" 5698 5699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5702$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5703if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5704 $as_echo_n "(cached) " >&6 5705else 5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5707/* end confdefs.h. */ 5708int i; 5709_ACEOF 5710if ac_fn_c_try_compile "$LINENO"; then : 5711 xorg_cv_cc_flag_unknown_warning_option=yes 5712else 5713 xorg_cv_cc_flag_unknown_warning_option=no 5714fi 5715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5716fi 5717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5718$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5720 CFLAGS="$xorg_testset_save_CFLAGS" 5721fi 5722 5723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5726 fi 5727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5729$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5730if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5731 $as_echo_n "(cached) " >&6 5732else 5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5734/* end confdefs.h. */ 5735int i; 5736_ACEOF 5737if ac_fn_c_try_compile "$LINENO"; then : 5738 xorg_cv_cc_flag_unused_command_line_argument=yes 5739else 5740 xorg_cv_cc_flag_unused_command_line_argument=no 5741fi 5742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5743fi 5744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5745$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5747 CFLAGS="$xorg_testset_save_CFLAGS" 5748fi 5749 5750found="no" 5751 5752 if test $found = "no" ; then 5753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5755 fi 5756 5757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5759 fi 5760 5761 CFLAGS="$CFLAGS -Wstrict-prototypes" 5762 5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5764$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5765 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5766 if eval \${$cacheid+:} false; then : 5767 $as_echo_n "(cached) " >&6 5768else 5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5770/* end confdefs.h. */ 5771int i; 5772int 5773main () 5774{ 5775 5776 ; 5777 return 0; 5778} 5779_ACEOF 5780if ac_fn_c_try_link "$LINENO"; then : 5781 eval $cacheid=yes 5782else 5783 eval $cacheid=no 5784fi 5785rm -f core conftest.err conftest.$ac_objext \ 5786 conftest$ac_exeext conftest.$ac_ext 5787fi 5788 5789 5790 CFLAGS="$xorg_testset_save_CFLAGS" 5791 5792 eval supported=\$$cacheid 5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5794$as_echo "$supported" >&6; } 5795 if test "$supported" = "yes" ; then 5796 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5797 found="yes" 5798 fi 5799 fi 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815xorg_testset_save_CFLAGS="$CFLAGS" 5816 5817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5820$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5821if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5822 $as_echo_n "(cached) " >&6 5823else 5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5825/* end confdefs.h. */ 5826int i; 5827_ACEOF 5828if ac_fn_c_try_compile "$LINENO"; then : 5829 xorg_cv_cc_flag_unknown_warning_option=yes 5830else 5831 xorg_cv_cc_flag_unknown_warning_option=no 5832fi 5833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5834fi 5835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5836$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5838 CFLAGS="$xorg_testset_save_CFLAGS" 5839fi 5840 5841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5844 fi 5845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5847$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5848if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5849 $as_echo_n "(cached) " >&6 5850else 5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5852/* end confdefs.h. */ 5853int i; 5854_ACEOF 5855if ac_fn_c_try_compile "$LINENO"; then : 5856 xorg_cv_cc_flag_unused_command_line_argument=yes 5857else 5858 xorg_cv_cc_flag_unused_command_line_argument=no 5859fi 5860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5861fi 5862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5863$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5865 CFLAGS="$xorg_testset_save_CFLAGS" 5866fi 5867 5868found="no" 5869 5870 if test $found = "no" ; then 5871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5873 fi 5874 5875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5877 fi 5878 5879 CFLAGS="$CFLAGS -Wmissing-prototypes" 5880 5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5882$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5883 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5884 if eval \${$cacheid+:} false; then : 5885 $as_echo_n "(cached) " >&6 5886else 5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5888/* end confdefs.h. */ 5889int i; 5890int 5891main () 5892{ 5893 5894 ; 5895 return 0; 5896} 5897_ACEOF 5898if ac_fn_c_try_link "$LINENO"; then : 5899 eval $cacheid=yes 5900else 5901 eval $cacheid=no 5902fi 5903rm -f core conftest.err conftest.$ac_objext \ 5904 conftest$ac_exeext conftest.$ac_ext 5905fi 5906 5907 5908 CFLAGS="$xorg_testset_save_CFLAGS" 5909 5910 eval supported=\$$cacheid 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5912$as_echo "$supported" >&6; } 5913 if test "$supported" = "yes" ; then 5914 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5915 found="yes" 5916 fi 5917 fi 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933xorg_testset_save_CFLAGS="$CFLAGS" 5934 5935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5938$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5939if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5940 $as_echo_n "(cached) " >&6 5941else 5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5943/* end confdefs.h. */ 5944int i; 5945_ACEOF 5946if ac_fn_c_try_compile "$LINENO"; then : 5947 xorg_cv_cc_flag_unknown_warning_option=yes 5948else 5949 xorg_cv_cc_flag_unknown_warning_option=no 5950fi 5951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5952fi 5953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5954$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5956 CFLAGS="$xorg_testset_save_CFLAGS" 5957fi 5958 5959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5962 fi 5963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5965$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5966if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5967 $as_echo_n "(cached) " >&6 5968else 5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5970/* end confdefs.h. */ 5971int i; 5972_ACEOF 5973if ac_fn_c_try_compile "$LINENO"; then : 5974 xorg_cv_cc_flag_unused_command_line_argument=yes 5975else 5976 xorg_cv_cc_flag_unused_command_line_argument=no 5977fi 5978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5979fi 5980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5981$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5983 CFLAGS="$xorg_testset_save_CFLAGS" 5984fi 5985 5986found="no" 5987 5988 if test $found = "no" ; then 5989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5991 fi 5992 5993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5995 fi 5996 5997 CFLAGS="$CFLAGS -Wnested-externs" 5998 5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6000$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 6001 cacheid=xorg_cv_cc_flag__Wnested_externs 6002 if eval \${$cacheid+:} false; then : 6003 $as_echo_n "(cached) " >&6 6004else 6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6006/* end confdefs.h. */ 6007int i; 6008int 6009main () 6010{ 6011 6012 ; 6013 return 0; 6014} 6015_ACEOF 6016if ac_fn_c_try_link "$LINENO"; then : 6017 eval $cacheid=yes 6018else 6019 eval $cacheid=no 6020fi 6021rm -f core conftest.err conftest.$ac_objext \ 6022 conftest$ac_exeext conftest.$ac_ext 6023fi 6024 6025 6026 CFLAGS="$xorg_testset_save_CFLAGS" 6027 6028 eval supported=\$$cacheid 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6030$as_echo "$supported" >&6; } 6031 if test "$supported" = "yes" ; then 6032 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6033 found="yes" 6034 fi 6035 fi 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051xorg_testset_save_CFLAGS="$CFLAGS" 6052 6053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6056$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6057if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6058 $as_echo_n "(cached) " >&6 6059else 6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6061/* end confdefs.h. */ 6062int i; 6063_ACEOF 6064if ac_fn_c_try_compile "$LINENO"; then : 6065 xorg_cv_cc_flag_unknown_warning_option=yes 6066else 6067 xorg_cv_cc_flag_unknown_warning_option=no 6068fi 6069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6070fi 6071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6072$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6074 CFLAGS="$xorg_testset_save_CFLAGS" 6075fi 6076 6077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6080 fi 6081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6083$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6084if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6085 $as_echo_n "(cached) " >&6 6086else 6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6088/* end confdefs.h. */ 6089int i; 6090_ACEOF 6091if ac_fn_c_try_compile "$LINENO"; then : 6092 xorg_cv_cc_flag_unused_command_line_argument=yes 6093else 6094 xorg_cv_cc_flag_unused_command_line_argument=no 6095fi 6096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6097fi 6098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6099$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6101 CFLAGS="$xorg_testset_save_CFLAGS" 6102fi 6103 6104found="no" 6105 6106 if test $found = "no" ; then 6107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6109 fi 6110 6111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6113 fi 6114 6115 CFLAGS="$CFLAGS -Wbad-function-cast" 6116 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6118$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 6119 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6120 if eval \${$cacheid+:} false; then : 6121 $as_echo_n "(cached) " >&6 6122else 6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6124/* end confdefs.h. */ 6125int i; 6126int 6127main () 6128{ 6129 6130 ; 6131 return 0; 6132} 6133_ACEOF 6134if ac_fn_c_try_link "$LINENO"; then : 6135 eval $cacheid=yes 6136else 6137 eval $cacheid=no 6138fi 6139rm -f core conftest.err conftest.$ac_objext \ 6140 conftest$ac_exeext conftest.$ac_ext 6141fi 6142 6143 6144 CFLAGS="$xorg_testset_save_CFLAGS" 6145 6146 eval supported=\$$cacheid 6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6148$as_echo "$supported" >&6; } 6149 if test "$supported" = "yes" ; then 6150 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6151 found="yes" 6152 fi 6153 fi 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169xorg_testset_save_CFLAGS="$CFLAGS" 6170 6171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6174$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6175if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6176 $as_echo_n "(cached) " >&6 6177else 6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6179/* end confdefs.h. */ 6180int i; 6181_ACEOF 6182if ac_fn_c_try_compile "$LINENO"; then : 6183 xorg_cv_cc_flag_unknown_warning_option=yes 6184else 6185 xorg_cv_cc_flag_unknown_warning_option=no 6186fi 6187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6188fi 6189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6190$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6192 CFLAGS="$xorg_testset_save_CFLAGS" 6193fi 6194 6195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6198 fi 6199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6201$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6202if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6203 $as_echo_n "(cached) " >&6 6204else 6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6206/* end confdefs.h. */ 6207int i; 6208_ACEOF 6209if ac_fn_c_try_compile "$LINENO"; then : 6210 xorg_cv_cc_flag_unused_command_line_argument=yes 6211else 6212 xorg_cv_cc_flag_unused_command_line_argument=no 6213fi 6214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6215fi 6216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6217$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6219 CFLAGS="$xorg_testset_save_CFLAGS" 6220fi 6221 6222found="no" 6223 6224 if test $found = "no" ; then 6225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6227 fi 6228 6229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6231 fi 6232 6233 CFLAGS="$CFLAGS -Wold-style-definition" 6234 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6236$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 6237 cacheid=xorg_cv_cc_flag__Wold_style_definition 6238 if eval \${$cacheid+:} false; then : 6239 $as_echo_n "(cached) " >&6 6240else 6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6242/* end confdefs.h. */ 6243int i; 6244int 6245main () 6246{ 6247 6248 ; 6249 return 0; 6250} 6251_ACEOF 6252if ac_fn_c_try_link "$LINENO"; then : 6253 eval $cacheid=yes 6254else 6255 eval $cacheid=no 6256fi 6257rm -f core conftest.err conftest.$ac_objext \ 6258 conftest$ac_exeext conftest.$ac_ext 6259fi 6260 6261 6262 CFLAGS="$xorg_testset_save_CFLAGS" 6263 6264 eval supported=\$$cacheid 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6266$as_echo "$supported" >&6; } 6267 if test "$supported" = "yes" ; then 6268 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6269 found="yes" 6270 fi 6271 fi 6272 6273 if test $found = "no" ; then 6274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6276 fi 6277 6278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6280 fi 6281 6282 CFLAGS="$CFLAGS -fd" 6283 6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6285$as_echo_n "checking if $CC supports -fd... " >&6; } 6286 cacheid=xorg_cv_cc_flag__fd 6287 if eval \${$cacheid+:} false; then : 6288 $as_echo_n "(cached) " >&6 6289else 6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6291/* end confdefs.h. */ 6292int i; 6293int 6294main () 6295{ 6296 6297 ; 6298 return 0; 6299} 6300_ACEOF 6301if ac_fn_c_try_link "$LINENO"; then : 6302 eval $cacheid=yes 6303else 6304 eval $cacheid=no 6305fi 6306rm -f core conftest.err conftest.$ac_objext \ 6307 conftest$ac_exeext conftest.$ac_ext 6308fi 6309 6310 6311 CFLAGS="$xorg_testset_save_CFLAGS" 6312 6313 eval supported=\$$cacheid 6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6315$as_echo "$supported" >&6; } 6316 if test "$supported" = "yes" ; then 6317 BASE_CFLAGS="$BASE_CFLAGS -fd" 6318 found="yes" 6319 fi 6320 fi 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336xorg_testset_save_CFLAGS="$CFLAGS" 6337 6338if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6341$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6342if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6343 $as_echo_n "(cached) " >&6 6344else 6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6346/* end confdefs.h. */ 6347int i; 6348_ACEOF 6349if ac_fn_c_try_compile "$LINENO"; then : 6350 xorg_cv_cc_flag_unknown_warning_option=yes 6351else 6352 xorg_cv_cc_flag_unknown_warning_option=no 6353fi 6354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6355fi 6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6357$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6359 CFLAGS="$xorg_testset_save_CFLAGS" 6360fi 6361 6362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6365 fi 6366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6368$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6369if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6370 $as_echo_n "(cached) " >&6 6371else 6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6373/* end confdefs.h. */ 6374int i; 6375_ACEOF 6376if ac_fn_c_try_compile "$LINENO"; then : 6377 xorg_cv_cc_flag_unused_command_line_argument=yes 6378else 6379 xorg_cv_cc_flag_unused_command_line_argument=no 6380fi 6381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6382fi 6383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6384$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6386 CFLAGS="$xorg_testset_save_CFLAGS" 6387fi 6388 6389found="no" 6390 6391 if test $found = "no" ; then 6392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6394 fi 6395 6396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6398 fi 6399 6400 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6401 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6403$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6404 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6405 if eval \${$cacheid+:} false; then : 6406 $as_echo_n "(cached) " >&6 6407else 6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6409/* end confdefs.h. */ 6410int i; 6411int 6412main () 6413{ 6414 6415 ; 6416 return 0; 6417} 6418_ACEOF 6419if ac_fn_c_try_link "$LINENO"; then : 6420 eval $cacheid=yes 6421else 6422 eval $cacheid=no 6423fi 6424rm -f core conftest.err conftest.$ac_objext \ 6425 conftest$ac_exeext conftest.$ac_ext 6426fi 6427 6428 6429 CFLAGS="$xorg_testset_save_CFLAGS" 6430 6431 eval supported=\$$cacheid 6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6433$as_echo "$supported" >&6; } 6434 if test "$supported" = "yes" ; then 6435 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6436 found="yes" 6437 fi 6438 fi 6439 6440 6441 6442 6443 6444# This chunk adds additional warnings that could catch undesired effects. 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458xorg_testset_save_CFLAGS="$CFLAGS" 6459 6460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6463$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6464if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6465 $as_echo_n "(cached) " >&6 6466else 6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6468/* end confdefs.h. */ 6469int i; 6470_ACEOF 6471if ac_fn_c_try_compile "$LINENO"; then : 6472 xorg_cv_cc_flag_unknown_warning_option=yes 6473else 6474 xorg_cv_cc_flag_unknown_warning_option=no 6475fi 6476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6477fi 6478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6479$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6481 CFLAGS="$xorg_testset_save_CFLAGS" 6482fi 6483 6484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6487 fi 6488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6490$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6491if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6492 $as_echo_n "(cached) " >&6 6493else 6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6495/* end confdefs.h. */ 6496int i; 6497_ACEOF 6498if ac_fn_c_try_compile "$LINENO"; then : 6499 xorg_cv_cc_flag_unused_command_line_argument=yes 6500else 6501 xorg_cv_cc_flag_unused_command_line_argument=no 6502fi 6503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6504fi 6505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6506$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6507 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6508 CFLAGS="$xorg_testset_save_CFLAGS" 6509fi 6510 6511found="no" 6512 6513 if test $found = "no" ; then 6514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6516 fi 6517 6518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6520 fi 6521 6522 CFLAGS="$CFLAGS -Wunused" 6523 6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6525$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6526 cacheid=xorg_cv_cc_flag__Wunused 6527 if eval \${$cacheid+:} false; then : 6528 $as_echo_n "(cached) " >&6 6529else 6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6531/* end confdefs.h. */ 6532int i; 6533int 6534main () 6535{ 6536 6537 ; 6538 return 0; 6539} 6540_ACEOF 6541if ac_fn_c_try_link "$LINENO"; then : 6542 eval $cacheid=yes 6543else 6544 eval $cacheid=no 6545fi 6546rm -f core conftest.err conftest.$ac_objext \ 6547 conftest$ac_exeext conftest.$ac_ext 6548fi 6549 6550 6551 CFLAGS="$xorg_testset_save_CFLAGS" 6552 6553 eval supported=\$$cacheid 6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6555$as_echo "$supported" >&6; } 6556 if test "$supported" = "yes" ; then 6557 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6558 found="yes" 6559 fi 6560 fi 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576xorg_testset_save_CFLAGS="$CFLAGS" 6577 6578if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6581$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6582if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6583 $as_echo_n "(cached) " >&6 6584else 6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6586/* end confdefs.h. */ 6587int i; 6588_ACEOF 6589if ac_fn_c_try_compile "$LINENO"; then : 6590 xorg_cv_cc_flag_unknown_warning_option=yes 6591else 6592 xorg_cv_cc_flag_unknown_warning_option=no 6593fi 6594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6595fi 6596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6597$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6598 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6599 CFLAGS="$xorg_testset_save_CFLAGS" 6600fi 6601 6602if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6605 fi 6606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6608$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6609if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6610 $as_echo_n "(cached) " >&6 6611else 6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6613/* end confdefs.h. */ 6614int i; 6615_ACEOF 6616if ac_fn_c_try_compile "$LINENO"; then : 6617 xorg_cv_cc_flag_unused_command_line_argument=yes 6618else 6619 xorg_cv_cc_flag_unused_command_line_argument=no 6620fi 6621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6622fi 6623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6624$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6625 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6626 CFLAGS="$xorg_testset_save_CFLAGS" 6627fi 6628 6629found="no" 6630 6631 if test $found = "no" ; then 6632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6634 fi 6635 6636 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6638 fi 6639 6640 CFLAGS="$CFLAGS -Wuninitialized" 6641 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6643$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6644 cacheid=xorg_cv_cc_flag__Wuninitialized 6645 if eval \${$cacheid+:} false; then : 6646 $as_echo_n "(cached) " >&6 6647else 6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6649/* end confdefs.h. */ 6650int i; 6651int 6652main () 6653{ 6654 6655 ; 6656 return 0; 6657} 6658_ACEOF 6659if ac_fn_c_try_link "$LINENO"; then : 6660 eval $cacheid=yes 6661else 6662 eval $cacheid=no 6663fi 6664rm -f core conftest.err conftest.$ac_objext \ 6665 conftest$ac_exeext conftest.$ac_ext 6666fi 6667 6668 6669 CFLAGS="$xorg_testset_save_CFLAGS" 6670 6671 eval supported=\$$cacheid 6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6673$as_echo "$supported" >&6; } 6674 if test "$supported" = "yes" ; then 6675 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6676 found="yes" 6677 fi 6678 fi 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694xorg_testset_save_CFLAGS="$CFLAGS" 6695 6696if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6699$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6700if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6701 $as_echo_n "(cached) " >&6 6702else 6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6704/* end confdefs.h. */ 6705int i; 6706_ACEOF 6707if ac_fn_c_try_compile "$LINENO"; then : 6708 xorg_cv_cc_flag_unknown_warning_option=yes 6709else 6710 xorg_cv_cc_flag_unknown_warning_option=no 6711fi 6712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6713fi 6714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6715$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6717 CFLAGS="$xorg_testset_save_CFLAGS" 6718fi 6719 6720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6723 fi 6724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6726$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6727if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6728 $as_echo_n "(cached) " >&6 6729else 6730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6731/* end confdefs.h. */ 6732int i; 6733_ACEOF 6734if ac_fn_c_try_compile "$LINENO"; then : 6735 xorg_cv_cc_flag_unused_command_line_argument=yes 6736else 6737 xorg_cv_cc_flag_unused_command_line_argument=no 6738fi 6739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6740fi 6741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6742$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6743 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6744 CFLAGS="$xorg_testset_save_CFLAGS" 6745fi 6746 6747found="no" 6748 6749 if test $found = "no" ; then 6750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6752 fi 6753 6754 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6756 fi 6757 6758 CFLAGS="$CFLAGS -Wshadow" 6759 6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6761$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6762 cacheid=xorg_cv_cc_flag__Wshadow 6763 if eval \${$cacheid+:} false; then : 6764 $as_echo_n "(cached) " >&6 6765else 6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6767/* end confdefs.h. */ 6768int i; 6769int 6770main () 6771{ 6772 6773 ; 6774 return 0; 6775} 6776_ACEOF 6777if ac_fn_c_try_link "$LINENO"; then : 6778 eval $cacheid=yes 6779else 6780 eval $cacheid=no 6781fi 6782rm -f core conftest.err conftest.$ac_objext \ 6783 conftest$ac_exeext conftest.$ac_ext 6784fi 6785 6786 6787 CFLAGS="$xorg_testset_save_CFLAGS" 6788 6789 eval supported=\$$cacheid 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6791$as_echo "$supported" >&6; } 6792 if test "$supported" = "yes" ; then 6793 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6794 found="yes" 6795 fi 6796 fi 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812xorg_testset_save_CFLAGS="$CFLAGS" 6813 6814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6817$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6818if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6819 $as_echo_n "(cached) " >&6 6820else 6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6822/* end confdefs.h. */ 6823int i; 6824_ACEOF 6825if ac_fn_c_try_compile "$LINENO"; then : 6826 xorg_cv_cc_flag_unknown_warning_option=yes 6827else 6828 xorg_cv_cc_flag_unknown_warning_option=no 6829fi 6830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6831fi 6832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6833$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6834 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6835 CFLAGS="$xorg_testset_save_CFLAGS" 6836fi 6837 6838if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6841 fi 6842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6844$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6845if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6846 $as_echo_n "(cached) " >&6 6847else 6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6849/* end confdefs.h. */ 6850int i; 6851_ACEOF 6852if ac_fn_c_try_compile "$LINENO"; then : 6853 xorg_cv_cc_flag_unused_command_line_argument=yes 6854else 6855 xorg_cv_cc_flag_unused_command_line_argument=no 6856fi 6857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6858fi 6859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6860$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6862 CFLAGS="$xorg_testset_save_CFLAGS" 6863fi 6864 6865found="no" 6866 6867 if test $found = "no" ; then 6868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6870 fi 6871 6872 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6874 fi 6875 6876 CFLAGS="$CFLAGS -Wmissing-noreturn" 6877 6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6879$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6880 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6881 if eval \${$cacheid+:} false; then : 6882 $as_echo_n "(cached) " >&6 6883else 6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6885/* end confdefs.h. */ 6886int i; 6887int 6888main () 6889{ 6890 6891 ; 6892 return 0; 6893} 6894_ACEOF 6895if ac_fn_c_try_link "$LINENO"; then : 6896 eval $cacheid=yes 6897else 6898 eval $cacheid=no 6899fi 6900rm -f core conftest.err conftest.$ac_objext \ 6901 conftest$ac_exeext conftest.$ac_ext 6902fi 6903 6904 6905 CFLAGS="$xorg_testset_save_CFLAGS" 6906 6907 eval supported=\$$cacheid 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6909$as_echo "$supported" >&6; } 6910 if test "$supported" = "yes" ; then 6911 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6912 found="yes" 6913 fi 6914 fi 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930xorg_testset_save_CFLAGS="$CFLAGS" 6931 6932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6935$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6936if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6937 $as_echo_n "(cached) " >&6 6938else 6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6940/* end confdefs.h. */ 6941int i; 6942_ACEOF 6943if ac_fn_c_try_compile "$LINENO"; then : 6944 xorg_cv_cc_flag_unknown_warning_option=yes 6945else 6946 xorg_cv_cc_flag_unknown_warning_option=no 6947fi 6948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6949fi 6950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6951$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6953 CFLAGS="$xorg_testset_save_CFLAGS" 6954fi 6955 6956if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6959 fi 6960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6962$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6963if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6964 $as_echo_n "(cached) " >&6 6965else 6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6967/* end confdefs.h. */ 6968int i; 6969_ACEOF 6970if ac_fn_c_try_compile "$LINENO"; then : 6971 xorg_cv_cc_flag_unused_command_line_argument=yes 6972else 6973 xorg_cv_cc_flag_unused_command_line_argument=no 6974fi 6975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6976fi 6977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6978$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6980 CFLAGS="$xorg_testset_save_CFLAGS" 6981fi 6982 6983found="no" 6984 6985 if test $found = "no" ; then 6986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6988 fi 6989 6990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6992 fi 6993 6994 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6995 6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6997$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6998 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6999 if eval \${$cacheid+:} false; then : 7000 $as_echo_n "(cached) " >&6 7001else 7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7003/* end confdefs.h. */ 7004int i; 7005int 7006main () 7007{ 7008 7009 ; 7010 return 0; 7011} 7012_ACEOF 7013if ac_fn_c_try_link "$LINENO"; then : 7014 eval $cacheid=yes 7015else 7016 eval $cacheid=no 7017fi 7018rm -f core conftest.err conftest.$ac_objext \ 7019 conftest$ac_exeext conftest.$ac_ext 7020fi 7021 7022 7023 CFLAGS="$xorg_testset_save_CFLAGS" 7024 7025 eval supported=\$$cacheid 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7027$as_echo "$supported" >&6; } 7028 if test "$supported" = "yes" ; then 7029 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7030 found="yes" 7031 fi 7032 fi 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048xorg_testset_save_CFLAGS="$CFLAGS" 7049 7050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7053$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7054if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7055 $as_echo_n "(cached) " >&6 7056else 7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7058/* end confdefs.h. */ 7059int i; 7060_ACEOF 7061if ac_fn_c_try_compile "$LINENO"; then : 7062 xorg_cv_cc_flag_unknown_warning_option=yes 7063else 7064 xorg_cv_cc_flag_unknown_warning_option=no 7065fi 7066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7067fi 7068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7069$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7071 CFLAGS="$xorg_testset_save_CFLAGS" 7072fi 7073 7074if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7077 fi 7078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7080$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7081if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7082 $as_echo_n "(cached) " >&6 7083else 7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7085/* end confdefs.h. */ 7086int i; 7087_ACEOF 7088if ac_fn_c_try_compile "$LINENO"; then : 7089 xorg_cv_cc_flag_unused_command_line_argument=yes 7090else 7091 xorg_cv_cc_flag_unused_command_line_argument=no 7092fi 7093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7094fi 7095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7096$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7098 CFLAGS="$xorg_testset_save_CFLAGS" 7099fi 7100 7101found="no" 7102 7103 if test $found = "no" ; then 7104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7106 fi 7107 7108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7110 fi 7111 7112 CFLAGS="$CFLAGS -Wredundant-decls" 7113 7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7115$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 7116 cacheid=xorg_cv_cc_flag__Wredundant_decls 7117 if eval \${$cacheid+:} false; then : 7118 $as_echo_n "(cached) " >&6 7119else 7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7121/* end confdefs.h. */ 7122int i; 7123int 7124main () 7125{ 7126 7127 ; 7128 return 0; 7129} 7130_ACEOF 7131if ac_fn_c_try_link "$LINENO"; then : 7132 eval $cacheid=yes 7133else 7134 eval $cacheid=no 7135fi 7136rm -f core conftest.err conftest.$ac_objext \ 7137 conftest$ac_exeext conftest.$ac_ext 7138fi 7139 7140 7141 CFLAGS="$xorg_testset_save_CFLAGS" 7142 7143 eval supported=\$$cacheid 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7145$as_echo "$supported" >&6; } 7146 if test "$supported" = "yes" ; then 7147 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7148 found="yes" 7149 fi 7150 fi 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166xorg_testset_save_CFLAGS="$CFLAGS" 7167 7168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7171$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7172if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7173 $as_echo_n "(cached) " >&6 7174else 7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7176/* end confdefs.h. */ 7177int i; 7178_ACEOF 7179if ac_fn_c_try_compile "$LINENO"; then : 7180 xorg_cv_cc_flag_unknown_warning_option=yes 7181else 7182 xorg_cv_cc_flag_unknown_warning_option=no 7183fi 7184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7185fi 7186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7187$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7189 CFLAGS="$xorg_testset_save_CFLAGS" 7190fi 7191 7192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7195 fi 7196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7198$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7199if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7200 $as_echo_n "(cached) " >&6 7201else 7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7203/* end confdefs.h. */ 7204int i; 7205_ACEOF 7206if ac_fn_c_try_compile "$LINENO"; then : 7207 xorg_cv_cc_flag_unused_command_line_argument=yes 7208else 7209 xorg_cv_cc_flag_unused_command_line_argument=no 7210fi 7211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7212fi 7213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7214$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7216 CFLAGS="$xorg_testset_save_CFLAGS" 7217fi 7218 7219found="no" 7220 7221 if test $found = "no" ; then 7222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7224 fi 7225 7226 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7228 fi 7229 7230 CFLAGS="$CFLAGS -Wlogical-op" 7231 7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7233$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 7234 cacheid=xorg_cv_cc_flag__Wlogical_op 7235 if eval \${$cacheid+:} false; then : 7236 $as_echo_n "(cached) " >&6 7237else 7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7239/* end confdefs.h. */ 7240int i; 7241int 7242main () 7243{ 7244 7245 ; 7246 return 0; 7247} 7248_ACEOF 7249if ac_fn_c_try_link "$LINENO"; then : 7250 eval $cacheid=yes 7251else 7252 eval $cacheid=no 7253fi 7254rm -f core conftest.err conftest.$ac_objext \ 7255 conftest$ac_exeext conftest.$ac_ext 7256fi 7257 7258 7259 CFLAGS="$xorg_testset_save_CFLAGS" 7260 7261 eval supported=\$$cacheid 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7263$as_echo "$supported" >&6; } 7264 if test "$supported" = "yes" ; then 7265 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7266 found="yes" 7267 fi 7268 fi 7269 7270 7271 7272# These are currently disabled because they are noisy. They will be enabled 7273# in the future once the codebase is sufficiently modernized to silence 7274# them. For now, I don't want them to drown out the other warnings. 7275# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7276# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7277# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7278 7279# Turn some warnings into errors, so we don't accidently get successful builds 7280# when there are problems that should be fixed. 7281 7282if test "x$SELECTIVE_WERROR" = "xyes" ; then 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296xorg_testset_save_CFLAGS="$CFLAGS" 7297 7298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7301$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7302if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7303 $as_echo_n "(cached) " >&6 7304else 7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7306/* end confdefs.h. */ 7307int i; 7308_ACEOF 7309if ac_fn_c_try_compile "$LINENO"; then : 7310 xorg_cv_cc_flag_unknown_warning_option=yes 7311else 7312 xorg_cv_cc_flag_unknown_warning_option=no 7313fi 7314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7315fi 7316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7317$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7319 CFLAGS="$xorg_testset_save_CFLAGS" 7320fi 7321 7322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7325 fi 7326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7328$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7329if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7330 $as_echo_n "(cached) " >&6 7331else 7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7333/* end confdefs.h. */ 7334int i; 7335_ACEOF 7336if ac_fn_c_try_compile "$LINENO"; then : 7337 xorg_cv_cc_flag_unused_command_line_argument=yes 7338else 7339 xorg_cv_cc_flag_unused_command_line_argument=no 7340fi 7341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7342fi 7343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7344$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7346 CFLAGS="$xorg_testset_save_CFLAGS" 7347fi 7348 7349found="no" 7350 7351 if test $found = "no" ; then 7352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7354 fi 7355 7356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7358 fi 7359 7360 CFLAGS="$CFLAGS -Werror=implicit" 7361 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7363$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7364 cacheid=xorg_cv_cc_flag__Werror_implicit 7365 if eval \${$cacheid+:} false; then : 7366 $as_echo_n "(cached) " >&6 7367else 7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7369/* end confdefs.h. */ 7370int i; 7371int 7372main () 7373{ 7374 7375 ; 7376 return 0; 7377} 7378_ACEOF 7379if ac_fn_c_try_link "$LINENO"; then : 7380 eval $cacheid=yes 7381else 7382 eval $cacheid=no 7383fi 7384rm -f core conftest.err conftest.$ac_objext \ 7385 conftest$ac_exeext conftest.$ac_ext 7386fi 7387 7388 7389 CFLAGS="$xorg_testset_save_CFLAGS" 7390 7391 eval supported=\$$cacheid 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7393$as_echo "$supported" >&6; } 7394 if test "$supported" = "yes" ; then 7395 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7396 found="yes" 7397 fi 7398 fi 7399 7400 if test $found = "no" ; then 7401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7403 fi 7404 7405 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7407 fi 7408 7409 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7410 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7412$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7413 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7414 if eval \${$cacheid+:} false; then : 7415 $as_echo_n "(cached) " >&6 7416else 7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7418/* end confdefs.h. */ 7419int i; 7420int 7421main () 7422{ 7423 7424 ; 7425 return 0; 7426} 7427_ACEOF 7428if ac_fn_c_try_link "$LINENO"; then : 7429 eval $cacheid=yes 7430else 7431 eval $cacheid=no 7432fi 7433rm -f core conftest.err conftest.$ac_objext \ 7434 conftest$ac_exeext conftest.$ac_ext 7435fi 7436 7437 7438 CFLAGS="$xorg_testset_save_CFLAGS" 7439 7440 eval supported=\$$cacheid 7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7442$as_echo "$supported" >&6; } 7443 if test "$supported" = "yes" ; then 7444 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7445 found="yes" 7446 fi 7447 fi 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463xorg_testset_save_CFLAGS="$CFLAGS" 7464 7465if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7468$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7469if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7470 $as_echo_n "(cached) " >&6 7471else 7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7473/* end confdefs.h. */ 7474int i; 7475_ACEOF 7476if ac_fn_c_try_compile "$LINENO"; then : 7477 xorg_cv_cc_flag_unknown_warning_option=yes 7478else 7479 xorg_cv_cc_flag_unknown_warning_option=no 7480fi 7481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7482fi 7483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7484$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7486 CFLAGS="$xorg_testset_save_CFLAGS" 7487fi 7488 7489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7492 fi 7493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7495$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7496if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7497 $as_echo_n "(cached) " >&6 7498else 7499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7500/* end confdefs.h. */ 7501int i; 7502_ACEOF 7503if ac_fn_c_try_compile "$LINENO"; then : 7504 xorg_cv_cc_flag_unused_command_line_argument=yes 7505else 7506 xorg_cv_cc_flag_unused_command_line_argument=no 7507fi 7508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7509fi 7510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7511$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7513 CFLAGS="$xorg_testset_save_CFLAGS" 7514fi 7515 7516found="no" 7517 7518 if test $found = "no" ; then 7519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7521 fi 7522 7523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7525 fi 7526 7527 CFLAGS="$CFLAGS -Werror=nonnull" 7528 7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7530$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7531 cacheid=xorg_cv_cc_flag__Werror_nonnull 7532 if eval \${$cacheid+:} false; then : 7533 $as_echo_n "(cached) " >&6 7534else 7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7536/* end confdefs.h. */ 7537int i; 7538int 7539main () 7540{ 7541 7542 ; 7543 return 0; 7544} 7545_ACEOF 7546if ac_fn_c_try_link "$LINENO"; then : 7547 eval $cacheid=yes 7548else 7549 eval $cacheid=no 7550fi 7551rm -f core conftest.err conftest.$ac_objext \ 7552 conftest$ac_exeext conftest.$ac_ext 7553fi 7554 7555 7556 CFLAGS="$xorg_testset_save_CFLAGS" 7557 7558 eval supported=\$$cacheid 7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7560$as_echo "$supported" >&6; } 7561 if test "$supported" = "yes" ; then 7562 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7563 found="yes" 7564 fi 7565 fi 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581xorg_testset_save_CFLAGS="$CFLAGS" 7582 7583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7586$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7587if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7588 $as_echo_n "(cached) " >&6 7589else 7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7591/* end confdefs.h. */ 7592int i; 7593_ACEOF 7594if ac_fn_c_try_compile "$LINENO"; then : 7595 xorg_cv_cc_flag_unknown_warning_option=yes 7596else 7597 xorg_cv_cc_flag_unknown_warning_option=no 7598fi 7599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7600fi 7601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7602$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7604 CFLAGS="$xorg_testset_save_CFLAGS" 7605fi 7606 7607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7610 fi 7611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7613$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7614if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7615 $as_echo_n "(cached) " >&6 7616else 7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7618/* end confdefs.h. */ 7619int i; 7620_ACEOF 7621if ac_fn_c_try_compile "$LINENO"; then : 7622 xorg_cv_cc_flag_unused_command_line_argument=yes 7623else 7624 xorg_cv_cc_flag_unused_command_line_argument=no 7625fi 7626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7627fi 7628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7629$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7631 CFLAGS="$xorg_testset_save_CFLAGS" 7632fi 7633 7634found="no" 7635 7636 if test $found = "no" ; then 7637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7639 fi 7640 7641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7643 fi 7644 7645 CFLAGS="$CFLAGS -Werror=init-self" 7646 7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7648$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7649 cacheid=xorg_cv_cc_flag__Werror_init_self 7650 if eval \${$cacheid+:} false; then : 7651 $as_echo_n "(cached) " >&6 7652else 7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7654/* end confdefs.h. */ 7655int i; 7656int 7657main () 7658{ 7659 7660 ; 7661 return 0; 7662} 7663_ACEOF 7664if ac_fn_c_try_link "$LINENO"; then : 7665 eval $cacheid=yes 7666else 7667 eval $cacheid=no 7668fi 7669rm -f core conftest.err conftest.$ac_objext \ 7670 conftest$ac_exeext conftest.$ac_ext 7671fi 7672 7673 7674 CFLAGS="$xorg_testset_save_CFLAGS" 7675 7676 eval supported=\$$cacheid 7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7678$as_echo "$supported" >&6; } 7679 if test "$supported" = "yes" ; then 7680 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7681 found="yes" 7682 fi 7683 fi 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699xorg_testset_save_CFLAGS="$CFLAGS" 7700 7701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7704$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7705if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7706 $as_echo_n "(cached) " >&6 7707else 7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7709/* end confdefs.h. */ 7710int i; 7711_ACEOF 7712if ac_fn_c_try_compile "$LINENO"; then : 7713 xorg_cv_cc_flag_unknown_warning_option=yes 7714else 7715 xorg_cv_cc_flag_unknown_warning_option=no 7716fi 7717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7718fi 7719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7720$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7722 CFLAGS="$xorg_testset_save_CFLAGS" 7723fi 7724 7725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7728 fi 7729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7731$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7732if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7733 $as_echo_n "(cached) " >&6 7734else 7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7736/* end confdefs.h. */ 7737int i; 7738_ACEOF 7739if ac_fn_c_try_compile "$LINENO"; then : 7740 xorg_cv_cc_flag_unused_command_line_argument=yes 7741else 7742 xorg_cv_cc_flag_unused_command_line_argument=no 7743fi 7744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7745fi 7746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7747$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7749 CFLAGS="$xorg_testset_save_CFLAGS" 7750fi 7751 7752found="no" 7753 7754 if test $found = "no" ; then 7755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7757 fi 7758 7759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7761 fi 7762 7763 CFLAGS="$CFLAGS -Werror=main" 7764 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7766$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7767 cacheid=xorg_cv_cc_flag__Werror_main 7768 if eval \${$cacheid+:} false; then : 7769 $as_echo_n "(cached) " >&6 7770else 7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7772/* end confdefs.h. */ 7773int i; 7774int 7775main () 7776{ 7777 7778 ; 7779 return 0; 7780} 7781_ACEOF 7782if ac_fn_c_try_link "$LINENO"; then : 7783 eval $cacheid=yes 7784else 7785 eval $cacheid=no 7786fi 7787rm -f core conftest.err conftest.$ac_objext \ 7788 conftest$ac_exeext conftest.$ac_ext 7789fi 7790 7791 7792 CFLAGS="$xorg_testset_save_CFLAGS" 7793 7794 eval supported=\$$cacheid 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7796$as_echo "$supported" >&6; } 7797 if test "$supported" = "yes" ; then 7798 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7799 found="yes" 7800 fi 7801 fi 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817xorg_testset_save_CFLAGS="$CFLAGS" 7818 7819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7822$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7823if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7824 $as_echo_n "(cached) " >&6 7825else 7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7827/* end confdefs.h. */ 7828int i; 7829_ACEOF 7830if ac_fn_c_try_compile "$LINENO"; then : 7831 xorg_cv_cc_flag_unknown_warning_option=yes 7832else 7833 xorg_cv_cc_flag_unknown_warning_option=no 7834fi 7835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7836fi 7837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7838$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7840 CFLAGS="$xorg_testset_save_CFLAGS" 7841fi 7842 7843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7846 fi 7847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7849$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7850if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7851 $as_echo_n "(cached) " >&6 7852else 7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7854/* end confdefs.h. */ 7855int i; 7856_ACEOF 7857if ac_fn_c_try_compile "$LINENO"; then : 7858 xorg_cv_cc_flag_unused_command_line_argument=yes 7859else 7860 xorg_cv_cc_flag_unused_command_line_argument=no 7861fi 7862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7863fi 7864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7865$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7867 CFLAGS="$xorg_testset_save_CFLAGS" 7868fi 7869 7870found="no" 7871 7872 if test $found = "no" ; then 7873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7875 fi 7876 7877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7879 fi 7880 7881 CFLAGS="$CFLAGS -Werror=missing-braces" 7882 7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7884$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7885 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7886 if eval \${$cacheid+:} false; then : 7887 $as_echo_n "(cached) " >&6 7888else 7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7890/* end confdefs.h. */ 7891int i; 7892int 7893main () 7894{ 7895 7896 ; 7897 return 0; 7898} 7899_ACEOF 7900if ac_fn_c_try_link "$LINENO"; then : 7901 eval $cacheid=yes 7902else 7903 eval $cacheid=no 7904fi 7905rm -f core conftest.err conftest.$ac_objext \ 7906 conftest$ac_exeext conftest.$ac_ext 7907fi 7908 7909 7910 CFLAGS="$xorg_testset_save_CFLAGS" 7911 7912 eval supported=\$$cacheid 7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7914$as_echo "$supported" >&6; } 7915 if test "$supported" = "yes" ; then 7916 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7917 found="yes" 7918 fi 7919 fi 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935xorg_testset_save_CFLAGS="$CFLAGS" 7936 7937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7940$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7941if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7942 $as_echo_n "(cached) " >&6 7943else 7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7945/* end confdefs.h. */ 7946int i; 7947_ACEOF 7948if ac_fn_c_try_compile "$LINENO"; then : 7949 xorg_cv_cc_flag_unknown_warning_option=yes 7950else 7951 xorg_cv_cc_flag_unknown_warning_option=no 7952fi 7953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7954fi 7955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7956$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7958 CFLAGS="$xorg_testset_save_CFLAGS" 7959fi 7960 7961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7964 fi 7965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7967$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7968if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7969 $as_echo_n "(cached) " >&6 7970else 7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7972/* end confdefs.h. */ 7973int i; 7974_ACEOF 7975if ac_fn_c_try_compile "$LINENO"; then : 7976 xorg_cv_cc_flag_unused_command_line_argument=yes 7977else 7978 xorg_cv_cc_flag_unused_command_line_argument=no 7979fi 7980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7981fi 7982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7983$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7985 CFLAGS="$xorg_testset_save_CFLAGS" 7986fi 7987 7988found="no" 7989 7990 if test $found = "no" ; then 7991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7993 fi 7994 7995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7997 fi 7998 7999 CFLAGS="$CFLAGS -Werror=sequence-point" 8000 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8002$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 8003 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8004 if eval \${$cacheid+:} false; then : 8005 $as_echo_n "(cached) " >&6 8006else 8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8008/* end confdefs.h. */ 8009int i; 8010int 8011main () 8012{ 8013 8014 ; 8015 return 0; 8016} 8017_ACEOF 8018if ac_fn_c_try_link "$LINENO"; then : 8019 eval $cacheid=yes 8020else 8021 eval $cacheid=no 8022fi 8023rm -f core conftest.err conftest.$ac_objext \ 8024 conftest$ac_exeext conftest.$ac_ext 8025fi 8026 8027 8028 CFLAGS="$xorg_testset_save_CFLAGS" 8029 8030 eval supported=\$$cacheid 8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8032$as_echo "$supported" >&6; } 8033 if test "$supported" = "yes" ; then 8034 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8035 found="yes" 8036 fi 8037 fi 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053xorg_testset_save_CFLAGS="$CFLAGS" 8054 8055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8058$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8059if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8060 $as_echo_n "(cached) " >&6 8061else 8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8063/* end confdefs.h. */ 8064int i; 8065_ACEOF 8066if ac_fn_c_try_compile "$LINENO"; then : 8067 xorg_cv_cc_flag_unknown_warning_option=yes 8068else 8069 xorg_cv_cc_flag_unknown_warning_option=no 8070fi 8071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8072fi 8073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8074$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8076 CFLAGS="$xorg_testset_save_CFLAGS" 8077fi 8078 8079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8082 fi 8083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8085$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8086if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8087 $as_echo_n "(cached) " >&6 8088else 8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8090/* end confdefs.h. */ 8091int i; 8092_ACEOF 8093if ac_fn_c_try_compile "$LINENO"; then : 8094 xorg_cv_cc_flag_unused_command_line_argument=yes 8095else 8096 xorg_cv_cc_flag_unused_command_line_argument=no 8097fi 8098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8099fi 8100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8101$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8103 CFLAGS="$xorg_testset_save_CFLAGS" 8104fi 8105 8106found="no" 8107 8108 if test $found = "no" ; then 8109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8111 fi 8112 8113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8115 fi 8116 8117 CFLAGS="$CFLAGS -Werror=return-type" 8118 8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8120$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 8121 cacheid=xorg_cv_cc_flag__Werror_return_type 8122 if eval \${$cacheid+:} false; then : 8123 $as_echo_n "(cached) " >&6 8124else 8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8126/* end confdefs.h. */ 8127int i; 8128int 8129main () 8130{ 8131 8132 ; 8133 return 0; 8134} 8135_ACEOF 8136if ac_fn_c_try_link "$LINENO"; then : 8137 eval $cacheid=yes 8138else 8139 eval $cacheid=no 8140fi 8141rm -f core conftest.err conftest.$ac_objext \ 8142 conftest$ac_exeext conftest.$ac_ext 8143fi 8144 8145 8146 CFLAGS="$xorg_testset_save_CFLAGS" 8147 8148 eval supported=\$$cacheid 8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8150$as_echo "$supported" >&6; } 8151 if test "$supported" = "yes" ; then 8152 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8153 found="yes" 8154 fi 8155 fi 8156 8157 if test $found = "no" ; then 8158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8160 fi 8161 8162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8164 fi 8165 8166 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8167 8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8169$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8170 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8171 if eval \${$cacheid+:} false; then : 8172 $as_echo_n "(cached) " >&6 8173else 8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8175/* end confdefs.h. */ 8176int i; 8177int 8178main () 8179{ 8180 8181 ; 8182 return 0; 8183} 8184_ACEOF 8185if ac_fn_c_try_link "$LINENO"; then : 8186 eval $cacheid=yes 8187else 8188 eval $cacheid=no 8189fi 8190rm -f core conftest.err conftest.$ac_objext \ 8191 conftest$ac_exeext conftest.$ac_ext 8192fi 8193 8194 8195 CFLAGS="$xorg_testset_save_CFLAGS" 8196 8197 eval supported=\$$cacheid 8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8199$as_echo "$supported" >&6; } 8200 if test "$supported" = "yes" ; then 8201 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8202 found="yes" 8203 fi 8204 fi 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220xorg_testset_save_CFLAGS="$CFLAGS" 8221 8222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8225$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8226if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8227 $as_echo_n "(cached) " >&6 8228else 8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8230/* end confdefs.h. */ 8231int i; 8232_ACEOF 8233if ac_fn_c_try_compile "$LINENO"; then : 8234 xorg_cv_cc_flag_unknown_warning_option=yes 8235else 8236 xorg_cv_cc_flag_unknown_warning_option=no 8237fi 8238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8239fi 8240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8241$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8243 CFLAGS="$xorg_testset_save_CFLAGS" 8244fi 8245 8246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8249 fi 8250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8252$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8253if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8254 $as_echo_n "(cached) " >&6 8255else 8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8257/* end confdefs.h. */ 8258int i; 8259_ACEOF 8260if ac_fn_c_try_compile "$LINENO"; then : 8261 xorg_cv_cc_flag_unused_command_line_argument=yes 8262else 8263 xorg_cv_cc_flag_unused_command_line_argument=no 8264fi 8265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8266fi 8267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8268$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8270 CFLAGS="$xorg_testset_save_CFLAGS" 8271fi 8272 8273found="no" 8274 8275 if test $found = "no" ; then 8276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8278 fi 8279 8280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8282 fi 8283 8284 CFLAGS="$CFLAGS -Werror=trigraphs" 8285 8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8287$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8288 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8289 if eval \${$cacheid+:} false; then : 8290 $as_echo_n "(cached) " >&6 8291else 8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8293/* end confdefs.h. */ 8294int i; 8295int 8296main () 8297{ 8298 8299 ; 8300 return 0; 8301} 8302_ACEOF 8303if ac_fn_c_try_link "$LINENO"; then : 8304 eval $cacheid=yes 8305else 8306 eval $cacheid=no 8307fi 8308rm -f core conftest.err conftest.$ac_objext \ 8309 conftest$ac_exeext conftest.$ac_ext 8310fi 8311 8312 8313 CFLAGS="$xorg_testset_save_CFLAGS" 8314 8315 eval supported=\$$cacheid 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8317$as_echo "$supported" >&6; } 8318 if test "$supported" = "yes" ; then 8319 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8320 found="yes" 8321 fi 8322 fi 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338xorg_testset_save_CFLAGS="$CFLAGS" 8339 8340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8343$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8344if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8345 $as_echo_n "(cached) " >&6 8346else 8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8348/* end confdefs.h. */ 8349int i; 8350_ACEOF 8351if ac_fn_c_try_compile "$LINENO"; then : 8352 xorg_cv_cc_flag_unknown_warning_option=yes 8353else 8354 xorg_cv_cc_flag_unknown_warning_option=no 8355fi 8356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8357fi 8358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8359$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8361 CFLAGS="$xorg_testset_save_CFLAGS" 8362fi 8363 8364if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8367 fi 8368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8370$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8371if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8372 $as_echo_n "(cached) " >&6 8373else 8374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8375/* end confdefs.h. */ 8376int i; 8377_ACEOF 8378if ac_fn_c_try_compile "$LINENO"; then : 8379 xorg_cv_cc_flag_unused_command_line_argument=yes 8380else 8381 xorg_cv_cc_flag_unused_command_line_argument=no 8382fi 8383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8384fi 8385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8386$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8388 CFLAGS="$xorg_testset_save_CFLAGS" 8389fi 8390 8391found="no" 8392 8393 if test $found = "no" ; then 8394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8396 fi 8397 8398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8400 fi 8401 8402 CFLAGS="$CFLAGS -Werror=array-bounds" 8403 8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8405$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8406 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8407 if eval \${$cacheid+:} false; then : 8408 $as_echo_n "(cached) " >&6 8409else 8410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8411/* end confdefs.h. */ 8412int i; 8413int 8414main () 8415{ 8416 8417 ; 8418 return 0; 8419} 8420_ACEOF 8421if ac_fn_c_try_link "$LINENO"; then : 8422 eval $cacheid=yes 8423else 8424 eval $cacheid=no 8425fi 8426rm -f core conftest.err conftest.$ac_objext \ 8427 conftest$ac_exeext conftest.$ac_ext 8428fi 8429 8430 8431 CFLAGS="$xorg_testset_save_CFLAGS" 8432 8433 eval supported=\$$cacheid 8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8435$as_echo "$supported" >&6; } 8436 if test "$supported" = "yes" ; then 8437 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8438 found="yes" 8439 fi 8440 fi 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456xorg_testset_save_CFLAGS="$CFLAGS" 8457 8458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8461$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8462if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8463 $as_echo_n "(cached) " >&6 8464else 8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8466/* end confdefs.h. */ 8467int i; 8468_ACEOF 8469if ac_fn_c_try_compile "$LINENO"; then : 8470 xorg_cv_cc_flag_unknown_warning_option=yes 8471else 8472 xorg_cv_cc_flag_unknown_warning_option=no 8473fi 8474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8475fi 8476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8477$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8479 CFLAGS="$xorg_testset_save_CFLAGS" 8480fi 8481 8482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8485 fi 8486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8488$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8489if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8490 $as_echo_n "(cached) " >&6 8491else 8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8493/* end confdefs.h. */ 8494int i; 8495_ACEOF 8496if ac_fn_c_try_compile "$LINENO"; then : 8497 xorg_cv_cc_flag_unused_command_line_argument=yes 8498else 8499 xorg_cv_cc_flag_unused_command_line_argument=no 8500fi 8501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8502fi 8503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8504$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8506 CFLAGS="$xorg_testset_save_CFLAGS" 8507fi 8508 8509found="no" 8510 8511 if test $found = "no" ; then 8512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8514 fi 8515 8516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8518 fi 8519 8520 CFLAGS="$CFLAGS -Werror=write-strings" 8521 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8523$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8524 cacheid=xorg_cv_cc_flag__Werror_write_strings 8525 if eval \${$cacheid+:} false; then : 8526 $as_echo_n "(cached) " >&6 8527else 8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8529/* end confdefs.h. */ 8530int i; 8531int 8532main () 8533{ 8534 8535 ; 8536 return 0; 8537} 8538_ACEOF 8539if ac_fn_c_try_link "$LINENO"; then : 8540 eval $cacheid=yes 8541else 8542 eval $cacheid=no 8543fi 8544rm -f core conftest.err conftest.$ac_objext \ 8545 conftest$ac_exeext conftest.$ac_ext 8546fi 8547 8548 8549 CFLAGS="$xorg_testset_save_CFLAGS" 8550 8551 eval supported=\$$cacheid 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8553$as_echo "$supported" >&6; } 8554 if test "$supported" = "yes" ; then 8555 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8556 found="yes" 8557 fi 8558 fi 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574xorg_testset_save_CFLAGS="$CFLAGS" 8575 8576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8579$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8580if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8581 $as_echo_n "(cached) " >&6 8582else 8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8584/* end confdefs.h. */ 8585int i; 8586_ACEOF 8587if ac_fn_c_try_compile "$LINENO"; then : 8588 xorg_cv_cc_flag_unknown_warning_option=yes 8589else 8590 xorg_cv_cc_flag_unknown_warning_option=no 8591fi 8592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8593fi 8594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8595$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8597 CFLAGS="$xorg_testset_save_CFLAGS" 8598fi 8599 8600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8603 fi 8604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8606$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8607if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8608 $as_echo_n "(cached) " >&6 8609else 8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8611/* end confdefs.h. */ 8612int i; 8613_ACEOF 8614if ac_fn_c_try_compile "$LINENO"; then : 8615 xorg_cv_cc_flag_unused_command_line_argument=yes 8616else 8617 xorg_cv_cc_flag_unused_command_line_argument=no 8618fi 8619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8620fi 8621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8622$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8624 CFLAGS="$xorg_testset_save_CFLAGS" 8625fi 8626 8627found="no" 8628 8629 if test $found = "no" ; then 8630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8632 fi 8633 8634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8636 fi 8637 8638 CFLAGS="$CFLAGS -Werror=address" 8639 8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8641$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8642 cacheid=xorg_cv_cc_flag__Werror_address 8643 if eval \${$cacheid+:} false; then : 8644 $as_echo_n "(cached) " >&6 8645else 8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8647/* end confdefs.h. */ 8648int i; 8649int 8650main () 8651{ 8652 8653 ; 8654 return 0; 8655} 8656_ACEOF 8657if ac_fn_c_try_link "$LINENO"; then : 8658 eval $cacheid=yes 8659else 8660 eval $cacheid=no 8661fi 8662rm -f core conftest.err conftest.$ac_objext \ 8663 conftest$ac_exeext conftest.$ac_ext 8664fi 8665 8666 8667 CFLAGS="$xorg_testset_save_CFLAGS" 8668 8669 eval supported=\$$cacheid 8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8671$as_echo "$supported" >&6; } 8672 if test "$supported" = "yes" ; then 8673 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8674 found="yes" 8675 fi 8676 fi 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692xorg_testset_save_CFLAGS="$CFLAGS" 8693 8694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8697$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8698if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8699 $as_echo_n "(cached) " >&6 8700else 8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8702/* end confdefs.h. */ 8703int i; 8704_ACEOF 8705if ac_fn_c_try_compile "$LINENO"; then : 8706 xorg_cv_cc_flag_unknown_warning_option=yes 8707else 8708 xorg_cv_cc_flag_unknown_warning_option=no 8709fi 8710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8711fi 8712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8713$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8714 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8715 CFLAGS="$xorg_testset_save_CFLAGS" 8716fi 8717 8718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8721 fi 8722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8724$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8725if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8726 $as_echo_n "(cached) " >&6 8727else 8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8729/* end confdefs.h. */ 8730int i; 8731_ACEOF 8732if ac_fn_c_try_compile "$LINENO"; then : 8733 xorg_cv_cc_flag_unused_command_line_argument=yes 8734else 8735 xorg_cv_cc_flag_unused_command_line_argument=no 8736fi 8737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8738fi 8739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8740$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8742 CFLAGS="$xorg_testset_save_CFLAGS" 8743fi 8744 8745found="no" 8746 8747 if test $found = "no" ; then 8748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8750 fi 8751 8752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8754 fi 8755 8756 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8757 8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8759$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8760 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8761 if eval \${$cacheid+:} false; then : 8762 $as_echo_n "(cached) " >&6 8763else 8764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8765/* end confdefs.h. */ 8766int i; 8767int 8768main () 8769{ 8770 8771 ; 8772 return 0; 8773} 8774_ACEOF 8775if ac_fn_c_try_link "$LINENO"; then : 8776 eval $cacheid=yes 8777else 8778 eval $cacheid=no 8779fi 8780rm -f core conftest.err conftest.$ac_objext \ 8781 conftest$ac_exeext conftest.$ac_ext 8782fi 8783 8784 8785 CFLAGS="$xorg_testset_save_CFLAGS" 8786 8787 eval supported=\$$cacheid 8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8789$as_echo "$supported" >&6; } 8790 if test "$supported" = "yes" ; then 8791 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8792 found="yes" 8793 fi 8794 fi 8795 8796 if test $found = "no" ; then 8797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8799 fi 8800 8801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8803 fi 8804 8805 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8806 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8808$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8809 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8810 if eval \${$cacheid+:} false; then : 8811 $as_echo_n "(cached) " >&6 8812else 8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8814/* end confdefs.h. */ 8815int i; 8816int 8817main () 8818{ 8819 8820 ; 8821 return 0; 8822} 8823_ACEOF 8824if ac_fn_c_try_link "$LINENO"; then : 8825 eval $cacheid=yes 8826else 8827 eval $cacheid=no 8828fi 8829rm -f core conftest.err conftest.$ac_objext \ 8830 conftest$ac_exeext conftest.$ac_ext 8831fi 8832 8833 8834 CFLAGS="$xorg_testset_save_CFLAGS" 8835 8836 eval supported=\$$cacheid 8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8838$as_echo "$supported" >&6; } 8839 if test "$supported" = "yes" ; then 8840 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8841 found="yes" 8842 fi 8843 fi 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859xorg_testset_save_CFLAGS="$CFLAGS" 8860 8861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8866 $as_echo_n "(cached) " >&6 8867else 8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8869/* end confdefs.h. */ 8870int i; 8871_ACEOF 8872if ac_fn_c_try_compile "$LINENO"; then : 8873 xorg_cv_cc_flag_unknown_warning_option=yes 8874else 8875 xorg_cv_cc_flag_unknown_warning_option=no 8876fi 8877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8878fi 8879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8882 CFLAGS="$xorg_testset_save_CFLAGS" 8883fi 8884 8885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8888 fi 8889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8893 $as_echo_n "(cached) " >&6 8894else 8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8896/* end confdefs.h. */ 8897int i; 8898_ACEOF 8899if ac_fn_c_try_compile "$LINENO"; then : 8900 xorg_cv_cc_flag_unused_command_line_argument=yes 8901else 8902 xorg_cv_cc_flag_unused_command_line_argument=no 8903fi 8904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8905fi 8906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8909 CFLAGS="$xorg_testset_save_CFLAGS" 8910fi 8911 8912found="no" 8913 8914 if test $found = "no" ; then 8915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8917 fi 8918 8919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8921 fi 8922 8923 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8924 8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8926$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8927 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8928 if eval \${$cacheid+:} false; then : 8929 $as_echo_n "(cached) " >&6 8930else 8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8932/* end confdefs.h. */ 8933int i; 8934int 8935main () 8936{ 8937 8938 ; 8939 return 0; 8940} 8941_ACEOF 8942if ac_fn_c_try_link "$LINENO"; then : 8943 eval $cacheid=yes 8944else 8945 eval $cacheid=no 8946fi 8947rm -f core conftest.err conftest.$ac_objext \ 8948 conftest$ac_exeext conftest.$ac_ext 8949fi 8950 8951 8952 CFLAGS="$xorg_testset_save_CFLAGS" 8953 8954 eval supported=\$$cacheid 8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8956$as_echo "$supported" >&6; } 8957 if test "$supported" = "yes" ; then 8958 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8959 found="yes" 8960 fi 8961 fi 8962 8963 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8964else 8965{ $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 8966$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;} 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980xorg_testset_save_CFLAGS="$CFLAGS" 8981 8982if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8985$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8986if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8987 $as_echo_n "(cached) " >&6 8988else 8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8990/* end confdefs.h. */ 8991int i; 8992_ACEOF 8993if ac_fn_c_try_compile "$LINENO"; then : 8994 xorg_cv_cc_flag_unknown_warning_option=yes 8995else 8996 xorg_cv_cc_flag_unknown_warning_option=no 8997fi 8998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8999fi 9000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9001$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9002 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9003 CFLAGS="$xorg_testset_save_CFLAGS" 9004fi 9005 9006if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9009 fi 9010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9012$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9013if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9014 $as_echo_n "(cached) " >&6 9015else 9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9017/* end confdefs.h. */ 9018int i; 9019_ACEOF 9020if ac_fn_c_try_compile "$LINENO"; then : 9021 xorg_cv_cc_flag_unused_command_line_argument=yes 9022else 9023 xorg_cv_cc_flag_unused_command_line_argument=no 9024fi 9025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9026fi 9027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9028$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9029 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9030 CFLAGS="$xorg_testset_save_CFLAGS" 9031fi 9032 9033found="no" 9034 9035 if test $found = "no" ; then 9036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9038 fi 9039 9040 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9042 fi 9043 9044 CFLAGS="$CFLAGS -Wimplicit" 9045 9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9047$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 9048 cacheid=xorg_cv_cc_flag__Wimplicit 9049 if eval \${$cacheid+:} false; then : 9050 $as_echo_n "(cached) " >&6 9051else 9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9053/* end confdefs.h. */ 9054int i; 9055int 9056main () 9057{ 9058 9059 ; 9060 return 0; 9061} 9062_ACEOF 9063if ac_fn_c_try_link "$LINENO"; then : 9064 eval $cacheid=yes 9065else 9066 eval $cacheid=no 9067fi 9068rm -f core conftest.err conftest.$ac_objext \ 9069 conftest$ac_exeext conftest.$ac_ext 9070fi 9071 9072 9073 CFLAGS="$xorg_testset_save_CFLAGS" 9074 9075 eval supported=\$$cacheid 9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9077$as_echo "$supported" >&6; } 9078 if test "$supported" = "yes" ; then 9079 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9080 found="yes" 9081 fi 9082 fi 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098xorg_testset_save_CFLAGS="$CFLAGS" 9099 9100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9103$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9104if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9105 $as_echo_n "(cached) " >&6 9106else 9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9108/* end confdefs.h. */ 9109int i; 9110_ACEOF 9111if ac_fn_c_try_compile "$LINENO"; then : 9112 xorg_cv_cc_flag_unknown_warning_option=yes 9113else 9114 xorg_cv_cc_flag_unknown_warning_option=no 9115fi 9116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9117fi 9118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9119$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9121 CFLAGS="$xorg_testset_save_CFLAGS" 9122fi 9123 9124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9127 fi 9128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9130$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9131if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9132 $as_echo_n "(cached) " >&6 9133else 9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9135/* end confdefs.h. */ 9136int i; 9137_ACEOF 9138if ac_fn_c_try_compile "$LINENO"; then : 9139 xorg_cv_cc_flag_unused_command_line_argument=yes 9140else 9141 xorg_cv_cc_flag_unused_command_line_argument=no 9142fi 9143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9144fi 9145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9146$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9148 CFLAGS="$xorg_testset_save_CFLAGS" 9149fi 9150 9151found="no" 9152 9153 if test $found = "no" ; then 9154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9156 fi 9157 9158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9160 fi 9161 9162 CFLAGS="$CFLAGS -Wnonnull" 9163 9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9165$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 9166 cacheid=xorg_cv_cc_flag__Wnonnull 9167 if eval \${$cacheid+:} false; then : 9168 $as_echo_n "(cached) " >&6 9169else 9170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9171/* end confdefs.h. */ 9172int i; 9173int 9174main () 9175{ 9176 9177 ; 9178 return 0; 9179} 9180_ACEOF 9181if ac_fn_c_try_link "$LINENO"; then : 9182 eval $cacheid=yes 9183else 9184 eval $cacheid=no 9185fi 9186rm -f core conftest.err conftest.$ac_objext \ 9187 conftest$ac_exeext conftest.$ac_ext 9188fi 9189 9190 9191 CFLAGS="$xorg_testset_save_CFLAGS" 9192 9193 eval supported=\$$cacheid 9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9195$as_echo "$supported" >&6; } 9196 if test "$supported" = "yes" ; then 9197 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9198 found="yes" 9199 fi 9200 fi 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216xorg_testset_save_CFLAGS="$CFLAGS" 9217 9218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9221$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9222if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9223 $as_echo_n "(cached) " >&6 9224else 9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9226/* end confdefs.h. */ 9227int i; 9228_ACEOF 9229if ac_fn_c_try_compile "$LINENO"; then : 9230 xorg_cv_cc_flag_unknown_warning_option=yes 9231else 9232 xorg_cv_cc_flag_unknown_warning_option=no 9233fi 9234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9235fi 9236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9237$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9239 CFLAGS="$xorg_testset_save_CFLAGS" 9240fi 9241 9242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9245 fi 9246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9248$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9249if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9250 $as_echo_n "(cached) " >&6 9251else 9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9253/* end confdefs.h. */ 9254int i; 9255_ACEOF 9256if ac_fn_c_try_compile "$LINENO"; then : 9257 xorg_cv_cc_flag_unused_command_line_argument=yes 9258else 9259 xorg_cv_cc_flag_unused_command_line_argument=no 9260fi 9261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9262fi 9263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9264$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9265 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9266 CFLAGS="$xorg_testset_save_CFLAGS" 9267fi 9268 9269found="no" 9270 9271 if test $found = "no" ; then 9272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9274 fi 9275 9276 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9278 fi 9279 9280 CFLAGS="$CFLAGS -Winit-self" 9281 9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9283$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9284 cacheid=xorg_cv_cc_flag__Winit_self 9285 if eval \${$cacheid+:} false; then : 9286 $as_echo_n "(cached) " >&6 9287else 9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9289/* end confdefs.h. */ 9290int i; 9291int 9292main () 9293{ 9294 9295 ; 9296 return 0; 9297} 9298_ACEOF 9299if ac_fn_c_try_link "$LINENO"; then : 9300 eval $cacheid=yes 9301else 9302 eval $cacheid=no 9303fi 9304rm -f core conftest.err conftest.$ac_objext \ 9305 conftest$ac_exeext conftest.$ac_ext 9306fi 9307 9308 9309 CFLAGS="$xorg_testset_save_CFLAGS" 9310 9311 eval supported=\$$cacheid 9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9313$as_echo "$supported" >&6; } 9314 if test "$supported" = "yes" ; then 9315 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9316 found="yes" 9317 fi 9318 fi 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334xorg_testset_save_CFLAGS="$CFLAGS" 9335 9336if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9339$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9340if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9341 $as_echo_n "(cached) " >&6 9342else 9343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9344/* end confdefs.h. */ 9345int i; 9346_ACEOF 9347if ac_fn_c_try_compile "$LINENO"; then : 9348 xorg_cv_cc_flag_unknown_warning_option=yes 9349else 9350 xorg_cv_cc_flag_unknown_warning_option=no 9351fi 9352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9353fi 9354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9355$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9357 CFLAGS="$xorg_testset_save_CFLAGS" 9358fi 9359 9360if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9363 fi 9364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9366$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9367if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9368 $as_echo_n "(cached) " >&6 9369else 9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9371/* end confdefs.h. */ 9372int i; 9373_ACEOF 9374if ac_fn_c_try_compile "$LINENO"; then : 9375 xorg_cv_cc_flag_unused_command_line_argument=yes 9376else 9377 xorg_cv_cc_flag_unused_command_line_argument=no 9378fi 9379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9380fi 9381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9382$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9383 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9384 CFLAGS="$xorg_testset_save_CFLAGS" 9385fi 9386 9387found="no" 9388 9389 if test $found = "no" ; then 9390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9392 fi 9393 9394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9396 fi 9397 9398 CFLAGS="$CFLAGS -Wmain" 9399 9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9401$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9402 cacheid=xorg_cv_cc_flag__Wmain 9403 if eval \${$cacheid+:} false; then : 9404 $as_echo_n "(cached) " >&6 9405else 9406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9407/* end confdefs.h. */ 9408int i; 9409int 9410main () 9411{ 9412 9413 ; 9414 return 0; 9415} 9416_ACEOF 9417if ac_fn_c_try_link "$LINENO"; then : 9418 eval $cacheid=yes 9419else 9420 eval $cacheid=no 9421fi 9422rm -f core conftest.err conftest.$ac_objext \ 9423 conftest$ac_exeext conftest.$ac_ext 9424fi 9425 9426 9427 CFLAGS="$xorg_testset_save_CFLAGS" 9428 9429 eval supported=\$$cacheid 9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9431$as_echo "$supported" >&6; } 9432 if test "$supported" = "yes" ; then 9433 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9434 found="yes" 9435 fi 9436 fi 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452xorg_testset_save_CFLAGS="$CFLAGS" 9453 9454if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9457$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9458if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9459 $as_echo_n "(cached) " >&6 9460else 9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9462/* end confdefs.h. */ 9463int i; 9464_ACEOF 9465if ac_fn_c_try_compile "$LINENO"; then : 9466 xorg_cv_cc_flag_unknown_warning_option=yes 9467else 9468 xorg_cv_cc_flag_unknown_warning_option=no 9469fi 9470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9471fi 9472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9473$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9475 CFLAGS="$xorg_testset_save_CFLAGS" 9476fi 9477 9478if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9481 fi 9482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9484$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9485if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9486 $as_echo_n "(cached) " >&6 9487else 9488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9489/* end confdefs.h. */ 9490int i; 9491_ACEOF 9492if ac_fn_c_try_compile "$LINENO"; then : 9493 xorg_cv_cc_flag_unused_command_line_argument=yes 9494else 9495 xorg_cv_cc_flag_unused_command_line_argument=no 9496fi 9497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9498fi 9499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9500$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9502 CFLAGS="$xorg_testset_save_CFLAGS" 9503fi 9504 9505found="no" 9506 9507 if test $found = "no" ; then 9508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9510 fi 9511 9512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9514 fi 9515 9516 CFLAGS="$CFLAGS -Wmissing-braces" 9517 9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9519$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9520 cacheid=xorg_cv_cc_flag__Wmissing_braces 9521 if eval \${$cacheid+:} false; then : 9522 $as_echo_n "(cached) " >&6 9523else 9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9525/* end confdefs.h. */ 9526int i; 9527int 9528main () 9529{ 9530 9531 ; 9532 return 0; 9533} 9534_ACEOF 9535if ac_fn_c_try_link "$LINENO"; then : 9536 eval $cacheid=yes 9537else 9538 eval $cacheid=no 9539fi 9540rm -f core conftest.err conftest.$ac_objext \ 9541 conftest$ac_exeext conftest.$ac_ext 9542fi 9543 9544 9545 CFLAGS="$xorg_testset_save_CFLAGS" 9546 9547 eval supported=\$$cacheid 9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9549$as_echo "$supported" >&6; } 9550 if test "$supported" = "yes" ; then 9551 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9552 found="yes" 9553 fi 9554 fi 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570xorg_testset_save_CFLAGS="$CFLAGS" 9571 9572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9575$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9576if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9577 $as_echo_n "(cached) " >&6 9578else 9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9580/* end confdefs.h. */ 9581int i; 9582_ACEOF 9583if ac_fn_c_try_compile "$LINENO"; then : 9584 xorg_cv_cc_flag_unknown_warning_option=yes 9585else 9586 xorg_cv_cc_flag_unknown_warning_option=no 9587fi 9588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9589fi 9590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9591$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9593 CFLAGS="$xorg_testset_save_CFLAGS" 9594fi 9595 9596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9599 fi 9600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9602$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9603if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9604 $as_echo_n "(cached) " >&6 9605else 9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9607/* end confdefs.h. */ 9608int i; 9609_ACEOF 9610if ac_fn_c_try_compile "$LINENO"; then : 9611 xorg_cv_cc_flag_unused_command_line_argument=yes 9612else 9613 xorg_cv_cc_flag_unused_command_line_argument=no 9614fi 9615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9616fi 9617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9618$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9620 CFLAGS="$xorg_testset_save_CFLAGS" 9621fi 9622 9623found="no" 9624 9625 if test $found = "no" ; then 9626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9628 fi 9629 9630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9632 fi 9633 9634 CFLAGS="$CFLAGS -Wsequence-point" 9635 9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9637$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9638 cacheid=xorg_cv_cc_flag__Wsequence_point 9639 if eval \${$cacheid+:} false; then : 9640 $as_echo_n "(cached) " >&6 9641else 9642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9643/* end confdefs.h. */ 9644int i; 9645int 9646main () 9647{ 9648 9649 ; 9650 return 0; 9651} 9652_ACEOF 9653if ac_fn_c_try_link "$LINENO"; then : 9654 eval $cacheid=yes 9655else 9656 eval $cacheid=no 9657fi 9658rm -f core conftest.err conftest.$ac_objext \ 9659 conftest$ac_exeext conftest.$ac_ext 9660fi 9661 9662 9663 CFLAGS="$xorg_testset_save_CFLAGS" 9664 9665 eval supported=\$$cacheid 9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9667$as_echo "$supported" >&6; } 9668 if test "$supported" = "yes" ; then 9669 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9670 found="yes" 9671 fi 9672 fi 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688xorg_testset_save_CFLAGS="$CFLAGS" 9689 9690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9693$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9694if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9695 $as_echo_n "(cached) " >&6 9696else 9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9698/* end confdefs.h. */ 9699int i; 9700_ACEOF 9701if ac_fn_c_try_compile "$LINENO"; then : 9702 xorg_cv_cc_flag_unknown_warning_option=yes 9703else 9704 xorg_cv_cc_flag_unknown_warning_option=no 9705fi 9706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9707fi 9708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9709$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9711 CFLAGS="$xorg_testset_save_CFLAGS" 9712fi 9713 9714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9717 fi 9718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9720$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9721if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9722 $as_echo_n "(cached) " >&6 9723else 9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9725/* end confdefs.h. */ 9726int i; 9727_ACEOF 9728if ac_fn_c_try_compile "$LINENO"; then : 9729 xorg_cv_cc_flag_unused_command_line_argument=yes 9730else 9731 xorg_cv_cc_flag_unused_command_line_argument=no 9732fi 9733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9734fi 9735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9736$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9738 CFLAGS="$xorg_testset_save_CFLAGS" 9739fi 9740 9741found="no" 9742 9743 if test $found = "no" ; then 9744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9746 fi 9747 9748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9750 fi 9751 9752 CFLAGS="$CFLAGS -Wreturn-type" 9753 9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9755$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9756 cacheid=xorg_cv_cc_flag__Wreturn_type 9757 if eval \${$cacheid+:} false; then : 9758 $as_echo_n "(cached) " >&6 9759else 9760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9761/* end confdefs.h. */ 9762int i; 9763int 9764main () 9765{ 9766 9767 ; 9768 return 0; 9769} 9770_ACEOF 9771if ac_fn_c_try_link "$LINENO"; then : 9772 eval $cacheid=yes 9773else 9774 eval $cacheid=no 9775fi 9776rm -f core conftest.err conftest.$ac_objext \ 9777 conftest$ac_exeext conftest.$ac_ext 9778fi 9779 9780 9781 CFLAGS="$xorg_testset_save_CFLAGS" 9782 9783 eval supported=\$$cacheid 9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9785$as_echo "$supported" >&6; } 9786 if test "$supported" = "yes" ; then 9787 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9788 found="yes" 9789 fi 9790 fi 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806xorg_testset_save_CFLAGS="$CFLAGS" 9807 9808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9811$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9812if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9813 $as_echo_n "(cached) " >&6 9814else 9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9816/* end confdefs.h. */ 9817int i; 9818_ACEOF 9819if ac_fn_c_try_compile "$LINENO"; then : 9820 xorg_cv_cc_flag_unknown_warning_option=yes 9821else 9822 xorg_cv_cc_flag_unknown_warning_option=no 9823fi 9824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9825fi 9826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9827$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9829 CFLAGS="$xorg_testset_save_CFLAGS" 9830fi 9831 9832if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9835 fi 9836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9838$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9839if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9840 $as_echo_n "(cached) " >&6 9841else 9842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9843/* end confdefs.h. */ 9844int i; 9845_ACEOF 9846if ac_fn_c_try_compile "$LINENO"; then : 9847 xorg_cv_cc_flag_unused_command_line_argument=yes 9848else 9849 xorg_cv_cc_flag_unused_command_line_argument=no 9850fi 9851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9852fi 9853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9854$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9856 CFLAGS="$xorg_testset_save_CFLAGS" 9857fi 9858 9859found="no" 9860 9861 if test $found = "no" ; then 9862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9864 fi 9865 9866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9868 fi 9869 9870 CFLAGS="$CFLAGS -Wtrigraphs" 9871 9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9873$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9874 cacheid=xorg_cv_cc_flag__Wtrigraphs 9875 if eval \${$cacheid+:} false; then : 9876 $as_echo_n "(cached) " >&6 9877else 9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9879/* end confdefs.h. */ 9880int i; 9881int 9882main () 9883{ 9884 9885 ; 9886 return 0; 9887} 9888_ACEOF 9889if ac_fn_c_try_link "$LINENO"; then : 9890 eval $cacheid=yes 9891else 9892 eval $cacheid=no 9893fi 9894rm -f core conftest.err conftest.$ac_objext \ 9895 conftest$ac_exeext conftest.$ac_ext 9896fi 9897 9898 9899 CFLAGS="$xorg_testset_save_CFLAGS" 9900 9901 eval supported=\$$cacheid 9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9903$as_echo "$supported" >&6; } 9904 if test "$supported" = "yes" ; then 9905 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9906 found="yes" 9907 fi 9908 fi 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924xorg_testset_save_CFLAGS="$CFLAGS" 9925 9926if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9929$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9930if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9931 $as_echo_n "(cached) " >&6 9932else 9933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9934/* end confdefs.h. */ 9935int i; 9936_ACEOF 9937if ac_fn_c_try_compile "$LINENO"; then : 9938 xorg_cv_cc_flag_unknown_warning_option=yes 9939else 9940 xorg_cv_cc_flag_unknown_warning_option=no 9941fi 9942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9943fi 9944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9945$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9947 CFLAGS="$xorg_testset_save_CFLAGS" 9948fi 9949 9950if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9953 fi 9954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9956$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9957if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9958 $as_echo_n "(cached) " >&6 9959else 9960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9961/* end confdefs.h. */ 9962int i; 9963_ACEOF 9964if ac_fn_c_try_compile "$LINENO"; then : 9965 xorg_cv_cc_flag_unused_command_line_argument=yes 9966else 9967 xorg_cv_cc_flag_unused_command_line_argument=no 9968fi 9969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9970fi 9971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9972$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9974 CFLAGS="$xorg_testset_save_CFLAGS" 9975fi 9976 9977found="no" 9978 9979 if test $found = "no" ; then 9980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9982 fi 9983 9984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9986 fi 9987 9988 CFLAGS="$CFLAGS -Warray-bounds" 9989 9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9991$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9992 cacheid=xorg_cv_cc_flag__Warray_bounds 9993 if eval \${$cacheid+:} false; then : 9994 $as_echo_n "(cached) " >&6 9995else 9996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9997/* end confdefs.h. */ 9998int i; 9999int 10000main () 10001{ 10002 10003 ; 10004 return 0; 10005} 10006_ACEOF 10007if ac_fn_c_try_link "$LINENO"; then : 10008 eval $cacheid=yes 10009else 10010 eval $cacheid=no 10011fi 10012rm -f core conftest.err conftest.$ac_objext \ 10013 conftest$ac_exeext conftest.$ac_ext 10014fi 10015 10016 10017 CFLAGS="$xorg_testset_save_CFLAGS" 10018 10019 eval supported=\$$cacheid 10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10021$as_echo "$supported" >&6; } 10022 if test "$supported" = "yes" ; then 10023 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10024 found="yes" 10025 fi 10026 fi 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042xorg_testset_save_CFLAGS="$CFLAGS" 10043 10044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10047$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10048if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10049 $as_echo_n "(cached) " >&6 10050else 10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10052/* end confdefs.h. */ 10053int i; 10054_ACEOF 10055if ac_fn_c_try_compile "$LINENO"; then : 10056 xorg_cv_cc_flag_unknown_warning_option=yes 10057else 10058 xorg_cv_cc_flag_unknown_warning_option=no 10059fi 10060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10061fi 10062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10063$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10065 CFLAGS="$xorg_testset_save_CFLAGS" 10066fi 10067 10068if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10071 fi 10072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10074$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10075if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10076 $as_echo_n "(cached) " >&6 10077else 10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10079/* end confdefs.h. */ 10080int i; 10081_ACEOF 10082if ac_fn_c_try_compile "$LINENO"; then : 10083 xorg_cv_cc_flag_unused_command_line_argument=yes 10084else 10085 xorg_cv_cc_flag_unused_command_line_argument=no 10086fi 10087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10088fi 10089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10090$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10092 CFLAGS="$xorg_testset_save_CFLAGS" 10093fi 10094 10095found="no" 10096 10097 if test $found = "no" ; then 10098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10100 fi 10101 10102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10104 fi 10105 10106 CFLAGS="$CFLAGS -Wwrite-strings" 10107 10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10109$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 10110 cacheid=xorg_cv_cc_flag__Wwrite_strings 10111 if eval \${$cacheid+:} false; then : 10112 $as_echo_n "(cached) " >&6 10113else 10114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10115/* end confdefs.h. */ 10116int i; 10117int 10118main () 10119{ 10120 10121 ; 10122 return 0; 10123} 10124_ACEOF 10125if ac_fn_c_try_link "$LINENO"; then : 10126 eval $cacheid=yes 10127else 10128 eval $cacheid=no 10129fi 10130rm -f core conftest.err conftest.$ac_objext \ 10131 conftest$ac_exeext conftest.$ac_ext 10132fi 10133 10134 10135 CFLAGS="$xorg_testset_save_CFLAGS" 10136 10137 eval supported=\$$cacheid 10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10139$as_echo "$supported" >&6; } 10140 if test "$supported" = "yes" ; then 10141 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10142 found="yes" 10143 fi 10144 fi 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160xorg_testset_save_CFLAGS="$CFLAGS" 10161 10162if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10165$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10166if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10167 $as_echo_n "(cached) " >&6 10168else 10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10170/* end confdefs.h. */ 10171int i; 10172_ACEOF 10173if ac_fn_c_try_compile "$LINENO"; then : 10174 xorg_cv_cc_flag_unknown_warning_option=yes 10175else 10176 xorg_cv_cc_flag_unknown_warning_option=no 10177fi 10178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10179fi 10180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10181$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10183 CFLAGS="$xorg_testset_save_CFLAGS" 10184fi 10185 10186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10189 fi 10190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10192$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10193if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10194 $as_echo_n "(cached) " >&6 10195else 10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10197/* end confdefs.h. */ 10198int i; 10199_ACEOF 10200if ac_fn_c_try_compile "$LINENO"; then : 10201 xorg_cv_cc_flag_unused_command_line_argument=yes 10202else 10203 xorg_cv_cc_flag_unused_command_line_argument=no 10204fi 10205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10206fi 10207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10208$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10210 CFLAGS="$xorg_testset_save_CFLAGS" 10211fi 10212 10213found="no" 10214 10215 if test $found = "no" ; then 10216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10218 fi 10219 10220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10222 fi 10223 10224 CFLAGS="$CFLAGS -Waddress" 10225 10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10227$as_echo_n "checking if $CC supports -Waddress... " >&6; } 10228 cacheid=xorg_cv_cc_flag__Waddress 10229 if eval \${$cacheid+:} false; then : 10230 $as_echo_n "(cached) " >&6 10231else 10232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10233/* end confdefs.h. */ 10234int i; 10235int 10236main () 10237{ 10238 10239 ; 10240 return 0; 10241} 10242_ACEOF 10243if ac_fn_c_try_link "$LINENO"; then : 10244 eval $cacheid=yes 10245else 10246 eval $cacheid=no 10247fi 10248rm -f core conftest.err conftest.$ac_objext \ 10249 conftest$ac_exeext conftest.$ac_ext 10250fi 10251 10252 10253 CFLAGS="$xorg_testset_save_CFLAGS" 10254 10255 eval supported=\$$cacheid 10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10257$as_echo "$supported" >&6; } 10258 if test "$supported" = "yes" ; then 10259 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10260 found="yes" 10261 fi 10262 fi 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278xorg_testset_save_CFLAGS="$CFLAGS" 10279 10280if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10283$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10284if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10285 $as_echo_n "(cached) " >&6 10286else 10287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10288/* end confdefs.h. */ 10289int i; 10290_ACEOF 10291if ac_fn_c_try_compile "$LINENO"; then : 10292 xorg_cv_cc_flag_unknown_warning_option=yes 10293else 10294 xorg_cv_cc_flag_unknown_warning_option=no 10295fi 10296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10297fi 10298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10299$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10300 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10301 CFLAGS="$xorg_testset_save_CFLAGS" 10302fi 10303 10304if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10307 fi 10308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10310$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10311if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10312 $as_echo_n "(cached) " >&6 10313else 10314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10315/* end confdefs.h. */ 10316int i; 10317_ACEOF 10318if ac_fn_c_try_compile "$LINENO"; then : 10319 xorg_cv_cc_flag_unused_command_line_argument=yes 10320else 10321 xorg_cv_cc_flag_unused_command_line_argument=no 10322fi 10323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10324fi 10325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10326$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10328 CFLAGS="$xorg_testset_save_CFLAGS" 10329fi 10330 10331found="no" 10332 10333 if test $found = "no" ; then 10334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10336 fi 10337 10338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10340 fi 10341 10342 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10343 10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10345$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10346 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10347 if eval \${$cacheid+:} false; then : 10348 $as_echo_n "(cached) " >&6 10349else 10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10351/* end confdefs.h. */ 10352int i; 10353int 10354main () 10355{ 10356 10357 ; 10358 return 0; 10359} 10360_ACEOF 10361if ac_fn_c_try_link "$LINENO"; then : 10362 eval $cacheid=yes 10363else 10364 eval $cacheid=no 10365fi 10366rm -f core conftest.err conftest.$ac_objext \ 10367 conftest$ac_exeext conftest.$ac_ext 10368fi 10369 10370 10371 CFLAGS="$xorg_testset_save_CFLAGS" 10372 10373 eval supported=\$$cacheid 10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10375$as_echo "$supported" >&6; } 10376 if test "$supported" = "yes" ; then 10377 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10378 found="yes" 10379 fi 10380 fi 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396xorg_testset_save_CFLAGS="$CFLAGS" 10397 10398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10401$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10402if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10403 $as_echo_n "(cached) " >&6 10404else 10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10406/* end confdefs.h. */ 10407int i; 10408_ACEOF 10409if ac_fn_c_try_compile "$LINENO"; then : 10410 xorg_cv_cc_flag_unknown_warning_option=yes 10411else 10412 xorg_cv_cc_flag_unknown_warning_option=no 10413fi 10414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10415fi 10416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10417$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10419 CFLAGS="$xorg_testset_save_CFLAGS" 10420fi 10421 10422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10425 fi 10426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10428$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10429if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10430 $as_echo_n "(cached) " >&6 10431else 10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10433/* end confdefs.h. */ 10434int i; 10435_ACEOF 10436if ac_fn_c_try_compile "$LINENO"; then : 10437 xorg_cv_cc_flag_unused_command_line_argument=yes 10438else 10439 xorg_cv_cc_flag_unused_command_line_argument=no 10440fi 10441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10442fi 10443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10444$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10446 CFLAGS="$xorg_testset_save_CFLAGS" 10447fi 10448 10449found="no" 10450 10451 if test $found = "no" ; then 10452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10454 fi 10455 10456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10458 fi 10459 10460 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10461 10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10463$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10464 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10465 if eval \${$cacheid+:} false; then : 10466 $as_echo_n "(cached) " >&6 10467else 10468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10469/* end confdefs.h. */ 10470int i; 10471int 10472main () 10473{ 10474 10475 ; 10476 return 0; 10477} 10478_ACEOF 10479if ac_fn_c_try_link "$LINENO"; then : 10480 eval $cacheid=yes 10481else 10482 eval $cacheid=no 10483fi 10484rm -f core conftest.err conftest.$ac_objext \ 10485 conftest$ac_exeext conftest.$ac_ext 10486fi 10487 10488 10489 CFLAGS="$xorg_testset_save_CFLAGS" 10490 10491 eval supported=\$$cacheid 10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10493$as_echo "$supported" >&6; } 10494 if test "$supported" = "yes" ; then 10495 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10496 found="yes" 10497 fi 10498 fi 10499 10500 10501fi 10502 10503 10504 10505 10506 10507 10508 10509 CWARNFLAGS="$BASE_CFLAGS" 10510 if test "x$GCC" = xyes ; then 10511 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10512 fi 10513 10514 10515 10516 10517 10518 10519 10520 10521# Check whether --enable-strict-compilation was given. 10522if test "${enable_strict_compilation+set}" = set; then : 10523 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10524else 10525 STRICT_COMPILE=no 10526fi 10527 10528 10529 10530 10531 10532 10533STRICT_CFLAGS="" 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547xorg_testset_save_CFLAGS="$CFLAGS" 10548 10549if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10552$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10553if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10554 $as_echo_n "(cached) " >&6 10555else 10556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10557/* end confdefs.h. */ 10558int i; 10559_ACEOF 10560if ac_fn_c_try_compile "$LINENO"; then : 10561 xorg_cv_cc_flag_unknown_warning_option=yes 10562else 10563 xorg_cv_cc_flag_unknown_warning_option=no 10564fi 10565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10566fi 10567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10568$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10570 CFLAGS="$xorg_testset_save_CFLAGS" 10571fi 10572 10573if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10576 fi 10577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10579$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10580if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10581 $as_echo_n "(cached) " >&6 10582else 10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10584/* end confdefs.h. */ 10585int i; 10586_ACEOF 10587if ac_fn_c_try_compile "$LINENO"; then : 10588 xorg_cv_cc_flag_unused_command_line_argument=yes 10589else 10590 xorg_cv_cc_flag_unused_command_line_argument=no 10591fi 10592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10593fi 10594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10595$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10597 CFLAGS="$xorg_testset_save_CFLAGS" 10598fi 10599 10600found="no" 10601 10602 if test $found = "no" ; then 10603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10605 fi 10606 10607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10609 fi 10610 10611 CFLAGS="$CFLAGS -pedantic" 10612 10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10614$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10615 cacheid=xorg_cv_cc_flag__pedantic 10616 if eval \${$cacheid+:} false; then : 10617 $as_echo_n "(cached) " >&6 10618else 10619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10620/* end confdefs.h. */ 10621int i; 10622int 10623main () 10624{ 10625 10626 ; 10627 return 0; 10628} 10629_ACEOF 10630if ac_fn_c_try_link "$LINENO"; then : 10631 eval $cacheid=yes 10632else 10633 eval $cacheid=no 10634fi 10635rm -f core conftest.err conftest.$ac_objext \ 10636 conftest$ac_exeext conftest.$ac_ext 10637fi 10638 10639 10640 CFLAGS="$xorg_testset_save_CFLAGS" 10641 10642 eval supported=\$$cacheid 10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10644$as_echo "$supported" >&6; } 10645 if test "$supported" = "yes" ; then 10646 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10647 found="yes" 10648 fi 10649 fi 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665xorg_testset_save_CFLAGS="$CFLAGS" 10666 10667if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10670$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10671if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10672 $as_echo_n "(cached) " >&6 10673else 10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10675/* end confdefs.h. */ 10676int i; 10677_ACEOF 10678if ac_fn_c_try_compile "$LINENO"; then : 10679 xorg_cv_cc_flag_unknown_warning_option=yes 10680else 10681 xorg_cv_cc_flag_unknown_warning_option=no 10682fi 10683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10684fi 10685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10686$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10688 CFLAGS="$xorg_testset_save_CFLAGS" 10689fi 10690 10691if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10694 fi 10695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10697$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10698if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10699 $as_echo_n "(cached) " >&6 10700else 10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10702/* end confdefs.h. */ 10703int i; 10704_ACEOF 10705if ac_fn_c_try_compile "$LINENO"; then : 10706 xorg_cv_cc_flag_unused_command_line_argument=yes 10707else 10708 xorg_cv_cc_flag_unused_command_line_argument=no 10709fi 10710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10711fi 10712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10713$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10715 CFLAGS="$xorg_testset_save_CFLAGS" 10716fi 10717 10718found="no" 10719 10720 if test $found = "no" ; then 10721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10723 fi 10724 10725 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10727 fi 10728 10729 CFLAGS="$CFLAGS -Werror" 10730 10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10732$as_echo_n "checking if $CC supports -Werror... " >&6; } 10733 cacheid=xorg_cv_cc_flag__Werror 10734 if eval \${$cacheid+:} false; then : 10735 $as_echo_n "(cached) " >&6 10736else 10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10738/* end confdefs.h. */ 10739int i; 10740int 10741main () 10742{ 10743 10744 ; 10745 return 0; 10746} 10747_ACEOF 10748if ac_fn_c_try_link "$LINENO"; then : 10749 eval $cacheid=yes 10750else 10751 eval $cacheid=no 10752fi 10753rm -f core conftest.err conftest.$ac_objext \ 10754 conftest$ac_exeext conftest.$ac_ext 10755fi 10756 10757 10758 CFLAGS="$xorg_testset_save_CFLAGS" 10759 10760 eval supported=\$$cacheid 10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10762$as_echo "$supported" >&6; } 10763 if test "$supported" = "yes" ; then 10764 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10765 found="yes" 10766 fi 10767 fi 10768 10769 if test $found = "no" ; then 10770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10772 fi 10773 10774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10776 fi 10777 10778 CFLAGS="$CFLAGS -errwarn" 10779 10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10781$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10782 cacheid=xorg_cv_cc_flag__errwarn 10783 if eval \${$cacheid+:} false; then : 10784 $as_echo_n "(cached) " >&6 10785else 10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10787/* end confdefs.h. */ 10788int i; 10789int 10790main () 10791{ 10792 10793 ; 10794 return 0; 10795} 10796_ACEOF 10797if ac_fn_c_try_link "$LINENO"; then : 10798 eval $cacheid=yes 10799else 10800 eval $cacheid=no 10801fi 10802rm -f core conftest.err conftest.$ac_objext \ 10803 conftest$ac_exeext conftest.$ac_ext 10804fi 10805 10806 10807 CFLAGS="$xorg_testset_save_CFLAGS" 10808 10809 eval supported=\$$cacheid 10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10811$as_echo "$supported" >&6; } 10812 if test "$supported" = "yes" ; then 10813 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10814 found="yes" 10815 fi 10816 fi 10817 10818 10819 10820# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10821# activate it with -Werror, so we add it here explicitly. 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835xorg_testset_save_CFLAGS="$CFLAGS" 10836 10837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10840$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10841if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10842 $as_echo_n "(cached) " >&6 10843else 10844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10845/* end confdefs.h. */ 10846int i; 10847_ACEOF 10848if ac_fn_c_try_compile "$LINENO"; then : 10849 xorg_cv_cc_flag_unknown_warning_option=yes 10850else 10851 xorg_cv_cc_flag_unknown_warning_option=no 10852fi 10853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10854fi 10855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10856$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10858 CFLAGS="$xorg_testset_save_CFLAGS" 10859fi 10860 10861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10864 fi 10865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10867$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10868if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10869 $as_echo_n "(cached) " >&6 10870else 10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10872/* end confdefs.h. */ 10873int i; 10874_ACEOF 10875if ac_fn_c_try_compile "$LINENO"; then : 10876 xorg_cv_cc_flag_unused_command_line_argument=yes 10877else 10878 xorg_cv_cc_flag_unused_command_line_argument=no 10879fi 10880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10881fi 10882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10883$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10885 CFLAGS="$xorg_testset_save_CFLAGS" 10886fi 10887 10888found="no" 10889 10890 if test $found = "no" ; then 10891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10893 fi 10894 10895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10897 fi 10898 10899 CFLAGS="$CFLAGS -Werror=attributes" 10900 10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10902$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10903 cacheid=xorg_cv_cc_flag__Werror_attributes 10904 if eval \${$cacheid+:} false; then : 10905 $as_echo_n "(cached) " >&6 10906else 10907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10908/* end confdefs.h. */ 10909int i; 10910int 10911main () 10912{ 10913 10914 ; 10915 return 0; 10916} 10917_ACEOF 10918if ac_fn_c_try_link "$LINENO"; then : 10919 eval $cacheid=yes 10920else 10921 eval $cacheid=no 10922fi 10923rm -f core conftest.err conftest.$ac_objext \ 10924 conftest$ac_exeext conftest.$ac_ext 10925fi 10926 10927 10928 CFLAGS="$xorg_testset_save_CFLAGS" 10929 10930 eval supported=\$$cacheid 10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10932$as_echo "$supported" >&6; } 10933 if test "$supported" = "yes" ; then 10934 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10935 found="yes" 10936 fi 10937 fi 10938 10939 10940 10941if test "x$STRICT_COMPILE" = "xyes"; then 10942 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10943 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10944fi 10945 10946 10947 10948 10949 10950 10951cat >>confdefs.h <<_ACEOF 10952#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10953_ACEOF 10954 10955 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10956 if test "x$PVM" = "x"; then 10957 PVM="0" 10958 fi 10959 10960cat >>confdefs.h <<_ACEOF 10961#define PACKAGE_VERSION_MINOR $PVM 10962_ACEOF 10963 10964 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10965 if test "x$PVP" = "x"; then 10966 PVP="0" 10967 fi 10968 10969cat >>confdefs.h <<_ACEOF 10970#define PACKAGE_VERSION_PATCHLEVEL $PVP 10971_ACEOF 10972 10973 10974 10975CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10976mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10977|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10978echo 'git directory not found: installing possibly empty changelog.' >&2)" 10979 10980 10981 10982 10983macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10984INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10985mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10986|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10987echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10988 10989 10990 10991 10992 10993 10994if test x$APP_MAN_SUFFIX = x ; then 10995 APP_MAN_SUFFIX=1 10996fi 10997if test x$APP_MAN_DIR = x ; then 10998 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10999fi 11000 11001if test x$LIB_MAN_SUFFIX = x ; then 11002 LIB_MAN_SUFFIX=3 11003fi 11004if test x$LIB_MAN_DIR = x ; then 11005 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11006fi 11007 11008if test x$FILE_MAN_SUFFIX = x ; then 11009 case $host_os in 11010 solaris*) FILE_MAN_SUFFIX=4 ;; 11011 *) FILE_MAN_SUFFIX=5 ;; 11012 esac 11013fi 11014if test x$FILE_MAN_DIR = x ; then 11015 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11016fi 11017 11018if test x$MISC_MAN_SUFFIX = x ; then 11019 case $host_os in 11020 solaris*) MISC_MAN_SUFFIX=5 ;; 11021 *) MISC_MAN_SUFFIX=7 ;; 11022 esac 11023fi 11024if test x$MISC_MAN_DIR = x ; then 11025 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11026fi 11027 11028if test x$DRIVER_MAN_SUFFIX = x ; then 11029 case $host_os in 11030 solaris*) DRIVER_MAN_SUFFIX=7 ;; 11031 *) DRIVER_MAN_SUFFIX=4 ;; 11032 esac 11033fi 11034if test x$DRIVER_MAN_DIR = x ; then 11035 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11036fi 11037 11038if test x$ADMIN_MAN_SUFFIX = x ; then 11039 case $host_os in 11040 solaris*) ADMIN_MAN_SUFFIX=1m ;; 11041 *) ADMIN_MAN_SUFFIX=8 ;; 11042 esac 11043fi 11044if test x$ADMIN_MAN_DIR = x ; then 11045 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11046fi 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062XORG_MAN_PAGE="X Version 11" 11063 11064MAN_SUBSTS="\ 11065 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11066 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11067 -e 's|__xservername__|Xorg|g' \ 11068 -e 's|__xconfigfile__|xorg.conf|g' \ 11069 -e 's|__projectroot__|\$(prefix)|g' \ 11070 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11071 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11072 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11073 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11074 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11075 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11076 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11077 11078 11079 11080# Check whether --enable-silent-rules was given. 11081if test "${enable_silent_rules+set}" = set; then : 11082 enableval=$enable_silent_rules; 11083fi 11084 11085case $enable_silent_rules in # ((( 11086 yes) AM_DEFAULT_VERBOSITY=0;; 11087 no) AM_DEFAULT_VERBOSITY=1;; 11088 *) AM_DEFAULT_VERBOSITY=0;; 11089esac 11090am_make=${MAKE-make} 11091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11092$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 11093if ${am_cv_make_support_nested_variables+:} false; then : 11094 $as_echo_n "(cached) " >&6 11095else 11096 if $as_echo 'TRUE=$(BAR$(V)) 11097BAR0=false 11098BAR1=true 11099V=1 11100am__doit: 11101 @$(TRUE) 11102.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11103 am_cv_make_support_nested_variables=yes 11104else 11105 am_cv_make_support_nested_variables=no 11106fi 11107fi 11108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11109$as_echo "$am_cv_make_support_nested_variables" >&6; } 11110if test $am_cv_make_support_nested_variables = yes; then 11111 AM_V='$(V)' 11112 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11113else 11114 AM_V=$AM_DEFAULT_VERBOSITY 11115 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11116fi 11117AM_BACKSLASH='\' 11118 11119 11120 11121# Initialize libtool 11122# Check whether --enable-static was given. 11123if test "${enable_static+set}" = set; then : 11124 enableval=$enable_static; p=${PACKAGE-default} 11125 case $enableval in 11126 yes) enable_static=yes ;; 11127 no) enable_static=no ;; 11128 *) 11129 enable_static=no 11130 # Look at the argument we got. We use all the common list separators. 11131 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11132 for pkg in $enableval; do 11133 IFS=$lt_save_ifs 11134 if test "X$pkg" = "X$p"; then 11135 enable_static=yes 11136 fi 11137 done 11138 IFS=$lt_save_ifs 11139 ;; 11140 esac 11141else 11142 enable_static=no 11143fi 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153case `pwd` in 11154 *\ * | *\ *) 11155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11156$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11157esac 11158 11159 11160 11161macro_version='2.4.6.40-6ca5' 11162macro_revision='2.4.6.40' 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176ltmain=$ac_aux_dir/ltmain.sh 11177 11178# Backslashify metacharacters that are still active within 11179# double-quoted strings. 11180sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11181 11182# Same as above, but do not quote variable references. 11183double_quote_subst='s/\(["`\\]\)/\\\1/g' 11184 11185# Sed substitution to delay expansion of an escaped shell variable in a 11186# double_quote_subst'ed string. 11187delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11188 11189# Sed substitution to delay expansion of an escaped single quote. 11190delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11191 11192# Sed substitution to avoid accidental globbing in evaled expressions 11193no_glob_subst='s/\*/\\\*/g' 11194 11195ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11196ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11197ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11198 11199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11200$as_echo_n "checking how to print strings... " >&6; } 11201# Test print first, because it will be a builtin if present. 11202if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11203 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11204 ECHO='print -r --' 11205elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11206 ECHO='printf %s\n' 11207else 11208 # Use this function as a fallback that always works. 11209 func_fallback_echo () 11210 { 11211 eval 'cat <<_LTECHO_EOF 11212$1 11213_LTECHO_EOF' 11214 } 11215 ECHO='func_fallback_echo' 11216fi 11217 11218# func_echo_all arg... 11219# Invoke $ECHO with all args, space-separated. 11220func_echo_all () 11221{ 11222 $ECHO "" 11223} 11224 11225case $ECHO in 11226 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11227$as_echo "printf" >&6; } ;; 11228 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11229$as_echo "print -r" >&6; } ;; 11230 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11231$as_echo "cat" >&6; } ;; 11232esac 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11248$as_echo_n "checking for a sed that does not truncate output... " >&6; } 11249if ${ac_cv_path_SED+:} false; then : 11250 $as_echo_n "(cached) " >&6 11251else 11252 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11253 for ac_i in 1 2 3 4 5 6 7; do 11254 ac_script="$ac_script$as_nl$ac_script" 11255 done 11256 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11257 { ac_script=; unset ac_script;} 11258 if test -z "$SED"; then 11259 ac_path_SED_found=false 11260 # Loop through the user's path and test for each of PROGNAME-LIST 11261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11262for as_dir in $PATH 11263do 11264 IFS=$as_save_IFS 11265 test -z "$as_dir" && as_dir=. 11266 for ac_prog in sed gsed; do 11267 for ac_exec_ext in '' $ac_executable_extensions; do 11268 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 11269 as_fn_executable_p "$ac_path_SED" || continue 11270# Check for GNU ac_path_SED and select it if it is found. 11271 # Check for GNU $ac_path_SED 11272case `"$ac_path_SED" --version 2>&1` in 11273*GNU*) 11274 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11275*) 11276 ac_count=0 11277 $as_echo_n 0123456789 >"conftest.in" 11278 while : 11279 do 11280 cat "conftest.in" "conftest.in" >"conftest.tmp" 11281 mv "conftest.tmp" "conftest.in" 11282 cp "conftest.in" "conftest.nl" 11283 $as_echo '' >> "conftest.nl" 11284 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11285 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11286 as_fn_arith $ac_count + 1 && ac_count=$as_val 11287 if test $ac_count -gt ${ac_path_SED_max-0}; then 11288 # Best one so far, save it but keep looking for a better one 11289 ac_cv_path_SED="$ac_path_SED" 11290 ac_path_SED_max=$ac_count 11291 fi 11292 # 10*(2^10) chars as input seems more than enough 11293 test $ac_count -gt 10 && break 11294 done 11295 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11296esac 11297 11298 $ac_path_SED_found && break 3 11299 done 11300 done 11301 done 11302IFS=$as_save_IFS 11303 if test -z "$ac_cv_path_SED"; then 11304 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11305 fi 11306else 11307 ac_cv_path_SED=$SED 11308fi 11309 11310fi 11311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11312$as_echo "$ac_cv_path_SED" >&6; } 11313 SED="$ac_cv_path_SED" 11314 rm -f conftest.sed 11315 11316test -z "$SED" && SED=sed 11317Xsed="$SED -e 1s/^X//" 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11330$as_echo_n "checking for fgrep... " >&6; } 11331if ${ac_cv_path_FGREP+:} false; then : 11332 $as_echo_n "(cached) " >&6 11333else 11334 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11335 then ac_cv_path_FGREP="$GREP -F" 11336 else 11337 if test -z "$FGREP"; then 11338 ac_path_FGREP_found=false 11339 # Loop through the user's path and test for each of PROGNAME-LIST 11340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11341for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11342do 11343 IFS=$as_save_IFS 11344 test -z "$as_dir" && as_dir=. 11345 for ac_prog in fgrep; do 11346 for ac_exec_ext in '' $ac_executable_extensions; do 11347 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11348 as_fn_executable_p "$ac_path_FGREP" || continue 11349# Check for GNU ac_path_FGREP and select it if it is found. 11350 # Check for GNU $ac_path_FGREP 11351case `"$ac_path_FGREP" --version 2>&1` in 11352*GNU*) 11353 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11354*) 11355 ac_count=0 11356 $as_echo_n 0123456789 >"conftest.in" 11357 while : 11358 do 11359 cat "conftest.in" "conftest.in" >"conftest.tmp" 11360 mv "conftest.tmp" "conftest.in" 11361 cp "conftest.in" "conftest.nl" 11362 $as_echo 'FGREP' >> "conftest.nl" 11363 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11365 as_fn_arith $ac_count + 1 && ac_count=$as_val 11366 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11367 # Best one so far, save it but keep looking for a better one 11368 ac_cv_path_FGREP="$ac_path_FGREP" 11369 ac_path_FGREP_max=$ac_count 11370 fi 11371 # 10*(2^10) chars as input seems more than enough 11372 test $ac_count -gt 10 && break 11373 done 11374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11375esac 11376 11377 $ac_path_FGREP_found && break 3 11378 done 11379 done 11380 done 11381IFS=$as_save_IFS 11382 if test -z "$ac_cv_path_FGREP"; then 11383 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11384 fi 11385else 11386 ac_cv_path_FGREP=$FGREP 11387fi 11388 11389 fi 11390fi 11391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11392$as_echo "$ac_cv_path_FGREP" >&6; } 11393 FGREP="$ac_cv_path_FGREP" 11394 11395 11396test -z "$GREP" && GREP=grep 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416# Check whether --with-gnu-ld was given. 11417if test "${with_gnu_ld+set}" = set; then : 11418 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11419else 11420 with_gnu_ld=no 11421fi 11422 11423ac_prog=ld 11424if test yes = "$GCC"; then 11425 # Check if gcc -print-prog-name=ld gives a path. 11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11427$as_echo_n "checking for ld used by $CC... " >&6; } 11428 case $host in 11429 *-*-mingw*) 11430 # gcc leaves a trailing carriage return, which upsets mingw 11431 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11432 *) 11433 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11434 esac 11435 case $ac_prog in 11436 # Accept absolute paths. 11437 [\\/]* | ?:[\\/]*) 11438 re_direlt='/[^/][^/]*/\.\./' 11439 # Canonicalize the pathname of ld 11440 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11441 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11442 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11443 done 11444 test -z "$LD" && LD=$ac_prog 11445 ;; 11446 "") 11447 # If it fails, then pretend we aren't using GCC. 11448 ac_prog=ld 11449 ;; 11450 *) 11451 # If it is relative, then search for the first ld in PATH. 11452 with_gnu_ld=unknown 11453 ;; 11454 esac 11455elif test yes = "$with_gnu_ld"; then 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11457$as_echo_n "checking for GNU ld... " >&6; } 11458else 11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11460$as_echo_n "checking for non-GNU ld... " >&6; } 11461fi 11462if ${lt_cv_path_LD+:} false; then : 11463 $as_echo_n "(cached) " >&6 11464else 11465 if test -z "$LD"; then 11466 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11467 for ac_dir in $PATH; do 11468 IFS=$lt_save_ifs 11469 test -z "$ac_dir" && ac_dir=. 11470 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11471 lt_cv_path_LD=$ac_dir/$ac_prog 11472 # Check to see if the program is GNU ld. I'd rather use --version, 11473 # but apparently some variants of GNU ld only accept -v. 11474 # Break only if it was the GNU/non-GNU ld that we prefer. 11475 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11476 *GNU* | *'with BFD'*) 11477 test no != "$with_gnu_ld" && break 11478 ;; 11479 *) 11480 test yes != "$with_gnu_ld" && break 11481 ;; 11482 esac 11483 fi 11484 done 11485 IFS=$lt_save_ifs 11486else 11487 lt_cv_path_LD=$LD # Let the user override the test with a path. 11488fi 11489fi 11490 11491LD=$lt_cv_path_LD 11492if test -n "$LD"; then 11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11494$as_echo "$LD" >&6; } 11495else 11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11497$as_echo "no" >&6; } 11498fi 11499test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11501$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11502if ${lt_cv_prog_gnu_ld+:} false; then : 11503 $as_echo_n "(cached) " >&6 11504else 11505 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11506case `$LD -v 2>&1 </dev/null` in 11507*GNU* | *'with BFD'*) 11508 lt_cv_prog_gnu_ld=yes 11509 ;; 11510*) 11511 lt_cv_prog_gnu_ld=no 11512 ;; 11513esac 11514fi 11515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11516$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11517with_gnu_ld=$lt_cv_prog_gnu_ld 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11528$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11529if ${lt_cv_path_NM+:} false; then : 11530 $as_echo_n "(cached) " >&6 11531else 11532 if test -n "$NM"; then 11533 # Let the user override the test. 11534 lt_cv_path_NM=$NM 11535else 11536 lt_nm_to_check=${ac_tool_prefix}nm 11537 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11538 lt_nm_to_check="$lt_nm_to_check nm" 11539 fi 11540 for lt_tmp_nm in $lt_nm_to_check; do 11541 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11542 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11543 IFS=$lt_save_ifs 11544 test -z "$ac_dir" && ac_dir=. 11545 tmp_nm=$ac_dir/$lt_tmp_nm 11546 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11547 # Check to see if the nm accepts a BSD-compat flag. 11548 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11549 # nm: unknown option "B" ignored 11550 # Tru64's nm complains that /dev/null is an invalid object file 11551 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11552 case $build_os in 11553 mingw*) lt_bad_file=conftest.nm/nofile ;; 11554 *) lt_bad_file=/dev/null ;; 11555 esac 11556 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11557 *$lt_bad_file* | *'Invalid file or object type'*) 11558 lt_cv_path_NM="$tmp_nm -B" 11559 break 2 11560 ;; 11561 *) 11562 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11563 */dev/null*) 11564 lt_cv_path_NM="$tmp_nm -p" 11565 break 2 11566 ;; 11567 *) 11568 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11569 continue # so that we can try to find one that supports BSD flags 11570 ;; 11571 esac 11572 ;; 11573 esac 11574 fi 11575 done 11576 IFS=$lt_save_ifs 11577 done 11578 : ${lt_cv_path_NM=no} 11579fi 11580fi 11581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11582$as_echo "$lt_cv_path_NM" >&6; } 11583if test no != "$lt_cv_path_NM"; then 11584 NM=$lt_cv_path_NM 11585else 11586 # Didn't find any BSD compatible name lister, look for dumpbin. 11587 if test -n "$DUMPBIN"; then : 11588 # Let the user override the test. 11589 else 11590 if test -n "$ac_tool_prefix"; then 11591 for ac_prog in dumpbin "link -dump" 11592 do 11593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11594set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11596$as_echo_n "checking for $ac_word... " >&6; } 11597if ${ac_cv_prog_DUMPBIN+:} false; then : 11598 $as_echo_n "(cached) " >&6 11599else 11600 if test -n "$DUMPBIN"; then 11601 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11602else 11603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11604for as_dir in $PATH 11605do 11606 IFS=$as_save_IFS 11607 test -z "$as_dir" && as_dir=. 11608 for ac_exec_ext in '' $ac_executable_extensions; do 11609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11610 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11612 break 2 11613 fi 11614done 11615 done 11616IFS=$as_save_IFS 11617 11618fi 11619fi 11620DUMPBIN=$ac_cv_prog_DUMPBIN 11621if test -n "$DUMPBIN"; then 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11623$as_echo "$DUMPBIN" >&6; } 11624else 11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11626$as_echo "no" >&6; } 11627fi 11628 11629 11630 test -n "$DUMPBIN" && break 11631 done 11632fi 11633if test -z "$DUMPBIN"; then 11634 ac_ct_DUMPBIN=$DUMPBIN 11635 for ac_prog in dumpbin "link -dump" 11636do 11637 # Extract the first word of "$ac_prog", so it can be a program name with args. 11638set dummy $ac_prog; ac_word=$2 11639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11640$as_echo_n "checking for $ac_word... " >&6; } 11641if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11642 $as_echo_n "(cached) " >&6 11643else 11644 if test -n "$ac_ct_DUMPBIN"; then 11645 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11646else 11647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11648for as_dir in $PATH 11649do 11650 IFS=$as_save_IFS 11651 test -z "$as_dir" && as_dir=. 11652 for ac_exec_ext in '' $ac_executable_extensions; do 11653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11654 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11656 break 2 11657 fi 11658done 11659 done 11660IFS=$as_save_IFS 11661 11662fi 11663fi 11664ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11665if test -n "$ac_ct_DUMPBIN"; then 11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11667$as_echo "$ac_ct_DUMPBIN" >&6; } 11668else 11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11670$as_echo "no" >&6; } 11671fi 11672 11673 11674 test -n "$ac_ct_DUMPBIN" && break 11675done 11676 11677 if test "x$ac_ct_DUMPBIN" = x; then 11678 DUMPBIN=":" 11679 else 11680 case $cross_compiling:$ac_tool_warned in 11681yes:) 11682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11684ac_tool_warned=yes ;; 11685esac 11686 DUMPBIN=$ac_ct_DUMPBIN 11687 fi 11688fi 11689 11690 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11691 *COFF*) 11692 DUMPBIN="$DUMPBIN -symbols -headers" 11693 ;; 11694 *) 11695 DUMPBIN=: 11696 ;; 11697 esac 11698 fi 11699 11700 if test : != "$DUMPBIN"; then 11701 NM=$DUMPBIN 11702 fi 11703fi 11704test -z "$NM" && NM=nm 11705 11706 11707 11708 11709 11710 11711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11712$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11713if ${lt_cv_nm_interface+:} false; then : 11714 $as_echo_n "(cached) " >&6 11715else 11716 lt_cv_nm_interface="BSD nm" 11717 echo "int some_variable = 0;" > conftest.$ac_ext 11718 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11719 (eval "$ac_compile" 2>conftest.err) 11720 cat conftest.err >&5 11721 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11722 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11723 cat conftest.err >&5 11724 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11725 cat conftest.out >&5 11726 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11727 lt_cv_nm_interface="MS dumpbin" 11728 fi 11729 rm -f conftest* 11730fi 11731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11732$as_echo "$lt_cv_nm_interface" >&6; } 11733 11734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11735$as_echo_n "checking whether ln -s works... " >&6; } 11736LN_S=$as_ln_s 11737if test "$LN_S" = "ln -s"; then 11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11739$as_echo "yes" >&6; } 11740else 11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11742$as_echo "no, using $LN_S" >&6; } 11743fi 11744 11745# find the maximum length of command line arguments 11746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11747$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11748if ${lt_cv_sys_max_cmd_len+:} false; then : 11749 $as_echo_n "(cached) " >&6 11750else 11751 i=0 11752 teststring=ABCD 11753 11754 case $build_os in 11755 msdosdjgpp*) 11756 # On DJGPP, this test can blow up pretty badly due to problems in libc 11757 # (any single argument exceeding 2000 bytes causes a buffer overrun 11758 # during glob expansion). Even if it were fixed, the result of this 11759 # check would be larger than it should be. 11760 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11761 ;; 11762 11763 gnu*) 11764 # Under GNU Hurd, this test is not required because there is 11765 # no limit to the length of command line arguments. 11766 # Libtool will interpret -1 as no limit whatsoever 11767 lt_cv_sys_max_cmd_len=-1; 11768 ;; 11769 11770 cygwin* | mingw* | cegcc*) 11771 # On Win9x/ME, this test blows up -- it succeeds, but takes 11772 # about 5 minutes as the teststring grows exponentially. 11773 # Worse, since 9x/ME are not pre-emptively multitasking, 11774 # you end up with a "frozen" computer, even though with patience 11775 # the test eventually succeeds (with a max line length of 256k). 11776 # Instead, let's just punt: use the minimum linelength reported by 11777 # all of the supported platforms: 8192 (on NT/2K/XP). 11778 lt_cv_sys_max_cmd_len=8192; 11779 ;; 11780 11781 mint*) 11782 # On MiNT this can take a long time and run out of memory. 11783 lt_cv_sys_max_cmd_len=8192; 11784 ;; 11785 11786 amigaos*) 11787 # On AmigaOS with pdksh, this test takes hours, literally. 11788 # So we just punt and use a minimum line length of 8192. 11789 lt_cv_sys_max_cmd_len=8192; 11790 ;; 11791 11792 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 11793 # This has been around since 386BSD, at least. Likely further. 11794 if test -x /sbin/sysctl; then 11795 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11796 elif test -x /usr/sbin/sysctl; then 11797 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11798 else 11799 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11800 fi 11801 # And add a safety zone 11802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11804 ;; 11805 11806 interix*) 11807 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11808 lt_cv_sys_max_cmd_len=196608 11809 ;; 11810 11811 os2*) 11812 # The test takes a long time on OS/2. 11813 lt_cv_sys_max_cmd_len=8192 11814 ;; 11815 11816 osf*) 11817 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11818 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11819 # nice to cause kernel panics so lets avoid the loop below. 11820 # First set a reasonable default. 11821 lt_cv_sys_max_cmd_len=16384 11822 # 11823 if test -x /sbin/sysconfig; then 11824 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11825 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11826 esac 11827 fi 11828 ;; 11829 sco3.2v5*) 11830 lt_cv_sys_max_cmd_len=102400 11831 ;; 11832 sysv5* | sco5v6* | sysv4.2uw2*) 11833 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11834 if test -n "$kargmax"; then 11835 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11836 else 11837 lt_cv_sys_max_cmd_len=32768 11838 fi 11839 ;; 11840 *) 11841 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11842 if test -n "$lt_cv_sys_max_cmd_len" && \ 11843 test undefined != "$lt_cv_sys_max_cmd_len"; then 11844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11846 else 11847 # Make teststring a little bigger before we do anything with it. 11848 # a 1K string should be a reasonable start. 11849 for i in 1 2 3 4 5 6 7 8; do 11850 teststring=$teststring$teststring 11851 done 11852 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11853 # If test is not a shell built-in, we'll probably end up computing a 11854 # maximum length that is only half of the actual maximum length, but 11855 # we can't tell. 11856 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 11857 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11858 test 17 != "$i" # 1/2 MB should be enough 11859 do 11860 i=`expr $i + 1` 11861 teststring=$teststring$teststring 11862 done 11863 # Only check the string length outside the loop. 11864 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11865 teststring= 11866 # Add a significant safety factor because C++ compilers can tack on 11867 # massive amounts of additional arguments before passing them to the 11868 # linker. It appears as though 1/2 is a usable value. 11869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11870 fi 11871 ;; 11872 esac 11873 11874fi 11875 11876if test -n "$lt_cv_sys_max_cmd_len"; then 11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11878$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11879else 11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11881$as_echo "none" >&6; } 11882fi 11883max_cmd_len=$lt_cv_sys_max_cmd_len 11884 11885 11886 11887 11888 11889 11890: ${CP="cp -f"} 11891: ${MV="mv -f"} 11892: ${RM="rm -f"} 11893 11894if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11895 lt_unset=unset 11896else 11897 lt_unset=false 11898fi 11899 11900 11901 11902 11903 11904# test EBCDIC or ASCII 11905case `echo X|tr X '\101'` in 11906 A) # ASCII based system 11907 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11908 lt_SP2NL='tr \040 \012' 11909 lt_NL2SP='tr \015\012 \040\040' 11910 ;; 11911 *) # EBCDIC based system 11912 lt_SP2NL='tr \100 \n' 11913 lt_NL2SP='tr \r\n \100\100' 11914 ;; 11915esac 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11926$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11927if ${lt_cv_to_host_file_cmd+:} false; then : 11928 $as_echo_n "(cached) " >&6 11929else 11930 case $host in 11931 *-*-mingw* ) 11932 case $build in 11933 *-*-mingw* ) # actually msys 11934 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11935 ;; 11936 *-*-cygwin* ) 11937 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11938 ;; 11939 * ) # otherwise, assume *nix 11940 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11941 ;; 11942 esac 11943 ;; 11944 *-*-cygwin* ) 11945 case $build in 11946 *-*-mingw* ) # actually msys 11947 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11948 ;; 11949 *-*-cygwin* ) 11950 lt_cv_to_host_file_cmd=func_convert_file_noop 11951 ;; 11952 * ) # otherwise, assume *nix 11953 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11954 ;; 11955 esac 11956 ;; 11957 * ) # unhandled hosts (and "normal" native builds) 11958 lt_cv_to_host_file_cmd=func_convert_file_noop 11959 ;; 11960esac 11961 11962fi 11963 11964to_host_file_cmd=$lt_cv_to_host_file_cmd 11965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11966$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11967 11968 11969 11970 11971 11972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11973$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11974if ${lt_cv_to_tool_file_cmd+:} false; then : 11975 $as_echo_n "(cached) " >&6 11976else 11977 #assume ordinary cross tools, or native build. 11978lt_cv_to_tool_file_cmd=func_convert_file_noop 11979case $host in 11980 *-*-mingw* ) 11981 case $build in 11982 *-*-mingw* ) # actually msys 11983 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11984 ;; 11985 esac 11986 ;; 11987esac 11988 11989fi 11990 11991to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11993$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11994 11995 11996 11997 11998 11999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12000$as_echo_n "checking for $LD option to reload object files... " >&6; } 12001if ${lt_cv_ld_reload_flag+:} false; then : 12002 $as_echo_n "(cached) " >&6 12003else 12004 lt_cv_ld_reload_flag='-r' 12005fi 12006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12007$as_echo "$lt_cv_ld_reload_flag" >&6; } 12008reload_flag=$lt_cv_ld_reload_flag 12009case $reload_flag in 12010"" | " "*) ;; 12011*) reload_flag=" $reload_flag" ;; 12012esac 12013reload_cmds='$LD$reload_flag -o $output$reload_objs' 12014case $host_os in 12015 cygwin* | mingw* | pw32* | cegcc*) 12016 if test yes != "$GCC"; then 12017 reload_cmds=false 12018 fi 12019 ;; 12020 darwin*) 12021 if test yes = "$GCC"; then 12022 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12023 else 12024 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12025 fi 12026 ;; 12027esac 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037if test -n "$ac_tool_prefix"; then 12038 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12039set dummy ${ac_tool_prefix}objdump; ac_word=$2 12040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12041$as_echo_n "checking for $ac_word... " >&6; } 12042if ${ac_cv_prog_OBJDUMP+:} false; then : 12043 $as_echo_n "(cached) " >&6 12044else 12045 if test -n "$OBJDUMP"; then 12046 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12047else 12048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12049for as_dir in $PATH 12050do 12051 IFS=$as_save_IFS 12052 test -z "$as_dir" && as_dir=. 12053 for ac_exec_ext in '' $ac_executable_extensions; do 12054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12055 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12057 break 2 12058 fi 12059done 12060 done 12061IFS=$as_save_IFS 12062 12063fi 12064fi 12065OBJDUMP=$ac_cv_prog_OBJDUMP 12066if test -n "$OBJDUMP"; then 12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12068$as_echo "$OBJDUMP" >&6; } 12069else 12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12071$as_echo "no" >&6; } 12072fi 12073 12074 12075fi 12076if test -z "$ac_cv_prog_OBJDUMP"; then 12077 ac_ct_OBJDUMP=$OBJDUMP 12078 # Extract the first word of "objdump", so it can be a program name with args. 12079set dummy objdump; ac_word=$2 12080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12081$as_echo_n "checking for $ac_word... " >&6; } 12082if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 12083 $as_echo_n "(cached) " >&6 12084else 12085 if test -n "$ac_ct_OBJDUMP"; then 12086 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12087else 12088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12089for as_dir in $PATH 12090do 12091 IFS=$as_save_IFS 12092 test -z "$as_dir" && as_dir=. 12093 for ac_exec_ext in '' $ac_executable_extensions; do 12094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12095 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12097 break 2 12098 fi 12099done 12100 done 12101IFS=$as_save_IFS 12102 12103fi 12104fi 12105ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12106if test -n "$ac_ct_OBJDUMP"; then 12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12108$as_echo "$ac_ct_OBJDUMP" >&6; } 12109else 12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12111$as_echo "no" >&6; } 12112fi 12113 12114 if test "x$ac_ct_OBJDUMP" = x; then 12115 OBJDUMP="false" 12116 else 12117 case $cross_compiling:$ac_tool_warned in 12118yes:) 12119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12121ac_tool_warned=yes ;; 12122esac 12123 OBJDUMP=$ac_ct_OBJDUMP 12124 fi 12125else 12126 OBJDUMP="$ac_cv_prog_OBJDUMP" 12127fi 12128 12129test -z "$OBJDUMP" && OBJDUMP=objdump 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12140$as_echo_n "checking how to recognize dependent libraries... " >&6; } 12141if ${lt_cv_deplibs_check_method+:} false; then : 12142 $as_echo_n "(cached) " >&6 12143else 12144 lt_cv_file_magic_cmd='$MAGIC_CMD' 12145lt_cv_file_magic_test_file= 12146lt_cv_deplibs_check_method='unknown' 12147# Need to set the preceding variable on all platforms that support 12148# interlibrary dependencies. 12149# 'none' -- dependencies not supported. 12150# 'unknown' -- same as none, but documents that we really don't know. 12151# 'pass_all' -- all dependencies passed with no checks. 12152# 'test_compile' -- check by making test program. 12153# 'file_magic [[regex]]' -- check by looking for files in library path 12154# that responds to the $file_magic_cmd with a given extended regex. 12155# If you have 'file' or equivalent on your system and you're not sure 12156# whether 'pass_all' will *always* work, you probably want this one. 12157 12158case $host_os in 12159aix[4-9]*) 12160 lt_cv_deplibs_check_method=pass_all 12161 ;; 12162 12163beos*) 12164 lt_cv_deplibs_check_method=pass_all 12165 ;; 12166 12167bsdi[45]*) 12168 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12169 lt_cv_file_magic_cmd='/usr/bin/file -L' 12170 lt_cv_file_magic_test_file=/shlib/libc.so 12171 ;; 12172 12173cygwin*) 12174 # func_win32_libid is a shell function defined in ltmain.sh 12175 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12176 lt_cv_file_magic_cmd='func_win32_libid' 12177 ;; 12178 12179mingw* | pw32*) 12180 # Base MSYS/MinGW do not provide the 'file' command needed by 12181 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12182 # unless we find 'file', for example because we are cross-compiling. 12183 if ( file / ) >/dev/null 2>&1; then 12184 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12185 lt_cv_file_magic_cmd='func_win32_libid' 12186 else 12187 # Keep this pattern in sync with the one in func_win32_libid. 12188 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12189 lt_cv_file_magic_cmd='$OBJDUMP -f' 12190 fi 12191 ;; 12192 12193cegcc*) 12194 # use the weaker test based on 'objdump'. See mingw*. 12195 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12196 lt_cv_file_magic_cmd='$OBJDUMP -f' 12197 ;; 12198 12199darwin* | rhapsody*) 12200 lt_cv_deplibs_check_method=pass_all 12201 ;; 12202 12203freebsd* | dragonfly*) 12204 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12205 case $host_cpu in 12206 i*86 ) 12207 # Not sure whether the presence of OpenBSD here was a mistake. 12208 # Let's accept both of them until this is cleared up. 12209 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12210 lt_cv_file_magic_cmd=/usr/bin/file 12211 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12212 ;; 12213 esac 12214 else 12215 lt_cv_deplibs_check_method=pass_all 12216 fi 12217 ;; 12218 12219haiku*) 12220 lt_cv_deplibs_check_method=pass_all 12221 ;; 12222 12223hpux10.20* | hpux11*) 12224 lt_cv_file_magic_cmd=/usr/bin/file 12225 case $host_cpu in 12226 ia64*) 12227 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12228 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12229 ;; 12230 hppa*64*) 12231 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]' 12232 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12233 ;; 12234 *) 12235 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12236 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12237 ;; 12238 esac 12239 ;; 12240 12241interix[3-9]*) 12242 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12244 ;; 12245 12246irix5* | irix6* | nonstopux*) 12247 case $LD in 12248 *-32|*"-32 ") libmagic=32-bit;; 12249 *-n32|*"-n32 ") libmagic=N32;; 12250 *-64|*"-64 ") libmagic=64-bit;; 12251 *) libmagic=never-match;; 12252 esac 12253 lt_cv_deplibs_check_method=pass_all 12254 ;; 12255 12256# This must be glibc/ELF. 12257linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12258 lt_cv_deplibs_check_method=pass_all 12259 ;; 12260 12261netbsd*) 12262 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12264 else 12265 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12266 fi 12267 ;; 12268 12269newos6*) 12270 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12271 lt_cv_file_magic_cmd=/usr/bin/file 12272 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12273 ;; 12274 12275*nto* | *qnx*) 12276 lt_cv_deplibs_check_method=pass_all 12277 ;; 12278 12279openbsd* | bitrig*) 12280 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12282 else 12283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12284 fi 12285 ;; 12286 12287osf3* | osf4* | osf5*) 12288 lt_cv_deplibs_check_method=pass_all 12289 ;; 12290 12291rdos*) 12292 lt_cv_deplibs_check_method=pass_all 12293 ;; 12294 12295solaris*) 12296 lt_cv_deplibs_check_method=pass_all 12297 ;; 12298 12299sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12300 lt_cv_deplibs_check_method=pass_all 12301 ;; 12302 12303sysv4 | sysv4.3*) 12304 case $host_vendor in 12305 motorola) 12306 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]' 12307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12308 ;; 12309 ncr) 12310 lt_cv_deplibs_check_method=pass_all 12311 ;; 12312 sequent) 12313 lt_cv_file_magic_cmd='/bin/file' 12314 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12315 ;; 12316 sni) 12317 lt_cv_file_magic_cmd='/bin/file' 12318 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12319 lt_cv_file_magic_test_file=/lib/libc.so 12320 ;; 12321 siemens) 12322 lt_cv_deplibs_check_method=pass_all 12323 ;; 12324 pc) 12325 lt_cv_deplibs_check_method=pass_all 12326 ;; 12327 esac 12328 ;; 12329 12330tpf*) 12331 lt_cv_deplibs_check_method=pass_all 12332 ;; 12333os2*) 12334 lt_cv_deplibs_check_method=pass_all 12335 ;; 12336esac 12337 12338fi 12339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12340$as_echo "$lt_cv_deplibs_check_method" >&6; } 12341 12342file_magic_glob= 12343want_nocaseglob=no 12344if test "$build" = "$host"; then 12345 case $host_os in 12346 mingw* | pw32*) 12347 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12348 want_nocaseglob=yes 12349 else 12350 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12351 fi 12352 ;; 12353 esac 12354fi 12355 12356file_magic_cmd=$lt_cv_file_magic_cmd 12357deplibs_check_method=$lt_cv_deplibs_check_method 12358test -z "$deplibs_check_method" && deplibs_check_method=unknown 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381if test -n "$ac_tool_prefix"; then 12382 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12383set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12385$as_echo_n "checking for $ac_word... " >&6; } 12386if ${ac_cv_prog_DLLTOOL+:} false; then : 12387 $as_echo_n "(cached) " >&6 12388else 12389 if test -n "$DLLTOOL"; then 12390 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12391else 12392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12393for as_dir in $PATH 12394do 12395 IFS=$as_save_IFS 12396 test -z "$as_dir" && as_dir=. 12397 for ac_exec_ext in '' $ac_executable_extensions; do 12398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12399 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12401 break 2 12402 fi 12403done 12404 done 12405IFS=$as_save_IFS 12406 12407fi 12408fi 12409DLLTOOL=$ac_cv_prog_DLLTOOL 12410if test -n "$DLLTOOL"; then 12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12412$as_echo "$DLLTOOL" >&6; } 12413else 12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12415$as_echo "no" >&6; } 12416fi 12417 12418 12419fi 12420if test -z "$ac_cv_prog_DLLTOOL"; then 12421 ac_ct_DLLTOOL=$DLLTOOL 12422 # Extract the first word of "dlltool", so it can be a program name with args. 12423set dummy dlltool; ac_word=$2 12424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12425$as_echo_n "checking for $ac_word... " >&6; } 12426if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12427 $as_echo_n "(cached) " >&6 12428else 12429 if test -n "$ac_ct_DLLTOOL"; then 12430 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12431else 12432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12433for as_dir in $PATH 12434do 12435 IFS=$as_save_IFS 12436 test -z "$as_dir" && as_dir=. 12437 for ac_exec_ext in '' $ac_executable_extensions; do 12438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12439 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12441 break 2 12442 fi 12443done 12444 done 12445IFS=$as_save_IFS 12446 12447fi 12448fi 12449ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12450if test -n "$ac_ct_DLLTOOL"; then 12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12452$as_echo "$ac_ct_DLLTOOL" >&6; } 12453else 12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12455$as_echo "no" >&6; } 12456fi 12457 12458 if test "x$ac_ct_DLLTOOL" = x; then 12459 DLLTOOL="false" 12460 else 12461 case $cross_compiling:$ac_tool_warned in 12462yes:) 12463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12465ac_tool_warned=yes ;; 12466esac 12467 DLLTOOL=$ac_ct_DLLTOOL 12468 fi 12469else 12470 DLLTOOL="$ac_cv_prog_DLLTOOL" 12471fi 12472 12473test -z "$DLLTOOL" && DLLTOOL=dlltool 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12485$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12486if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12487 $as_echo_n "(cached) " >&6 12488else 12489 lt_cv_sharedlib_from_linklib_cmd='unknown' 12490 12491case $host_os in 12492cygwin* | mingw* | pw32* | cegcc*) 12493 # two different shell functions defined in ltmain.sh; 12494 # decide which one to use based on capabilities of $DLLTOOL 12495 case `$DLLTOOL --help 2>&1` in 12496 *--identify-strict*) 12497 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12498 ;; 12499 *) 12500 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12501 ;; 12502 esac 12503 ;; 12504*) 12505 # fallback: assume linklib IS sharedlib 12506 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12507 ;; 12508esac 12509 12510fi 12511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12512$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12513sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12514test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12515 12516 12517 12518 12519 12520 12521 12522if test -n "$ac_tool_prefix"; then 12523 for ac_prog in ar 12524 do 12525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12526set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12528$as_echo_n "checking for $ac_word... " >&6; } 12529if ${ac_cv_prog_AR+:} false; then : 12530 $as_echo_n "(cached) " >&6 12531else 12532 if test -n "$AR"; then 12533 ac_cv_prog_AR="$AR" # Let the user override the test. 12534else 12535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12536for as_dir in $PATH 12537do 12538 IFS=$as_save_IFS 12539 test -z "$as_dir" && as_dir=. 12540 for ac_exec_ext in '' $ac_executable_extensions; do 12541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12542 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12544 break 2 12545 fi 12546done 12547 done 12548IFS=$as_save_IFS 12549 12550fi 12551fi 12552AR=$ac_cv_prog_AR 12553if test -n "$AR"; then 12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12555$as_echo "$AR" >&6; } 12556else 12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12558$as_echo "no" >&6; } 12559fi 12560 12561 12562 test -n "$AR" && break 12563 done 12564fi 12565if test -z "$AR"; then 12566 ac_ct_AR=$AR 12567 for ac_prog in ar 12568do 12569 # Extract the first word of "$ac_prog", so it can be a program name with args. 12570set dummy $ac_prog; ac_word=$2 12571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12572$as_echo_n "checking for $ac_word... " >&6; } 12573if ${ac_cv_prog_ac_ct_AR+:} false; then : 12574 $as_echo_n "(cached) " >&6 12575else 12576 if test -n "$ac_ct_AR"; then 12577 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12578else 12579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12580for as_dir in $PATH 12581do 12582 IFS=$as_save_IFS 12583 test -z "$as_dir" && as_dir=. 12584 for ac_exec_ext in '' $ac_executable_extensions; do 12585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12586 ac_cv_prog_ac_ct_AR="$ac_prog" 12587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12588 break 2 12589 fi 12590done 12591 done 12592IFS=$as_save_IFS 12593 12594fi 12595fi 12596ac_ct_AR=$ac_cv_prog_ac_ct_AR 12597if test -n "$ac_ct_AR"; then 12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12599$as_echo "$ac_ct_AR" >&6; } 12600else 12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12602$as_echo "no" >&6; } 12603fi 12604 12605 12606 test -n "$ac_ct_AR" && break 12607done 12608 12609 if test "x$ac_ct_AR" = x; then 12610 AR="false" 12611 else 12612 case $cross_compiling:$ac_tool_warned in 12613yes:) 12614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12616ac_tool_warned=yes ;; 12617esac 12618 AR=$ac_ct_AR 12619 fi 12620fi 12621 12622: ${AR=ar} 12623 12624 12625 12626 12627 12628 12629# Use ARFLAGS variable as AR's operation code to sync the variable naming with 12630# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 12631# higher priority because thats what people were doing historically (setting 12632# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 12633# variable obsoleted/removed. 12634 12635test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 12636lt_ar_flags=$AR_FLAGS 12637 12638 12639 12640 12641 12642 12643# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 12644# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 12645 12646 12647 12648 12649 12650 12651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12652$as_echo_n "checking for archiver @FILE support... " >&6; } 12653if ${lt_cv_ar_at_file+:} false; then : 12654 $as_echo_n "(cached) " >&6 12655else 12656 lt_cv_ar_at_file=no 12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12658/* end confdefs.h. */ 12659 12660int 12661main () 12662{ 12663 12664 ; 12665 return 0; 12666} 12667_ACEOF 12668if ac_fn_c_try_compile "$LINENO"; then : 12669 echo conftest.$ac_objext > conftest.lst 12670 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12672 (eval $lt_ar_try) 2>&5 12673 ac_status=$? 12674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12675 test $ac_status = 0; } 12676 if test 0 -eq "$ac_status"; then 12677 # Ensure the archiver fails upon bogus file names. 12678 rm -f conftest.$ac_objext libconftest.a 12679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12680 (eval $lt_ar_try) 2>&5 12681 ac_status=$? 12682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12683 test $ac_status = 0; } 12684 if test 0 -ne "$ac_status"; then 12685 lt_cv_ar_at_file=@ 12686 fi 12687 fi 12688 rm -f conftest.* libconftest.a 12689 12690fi 12691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12692 12693fi 12694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12695$as_echo "$lt_cv_ar_at_file" >&6; } 12696 12697if test no = "$lt_cv_ar_at_file"; then 12698 archiver_list_spec= 12699else 12700 archiver_list_spec=$lt_cv_ar_at_file 12701fi 12702 12703 12704 12705 12706 12707 12708 12709if test -n "$ac_tool_prefix"; then 12710 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12711set dummy ${ac_tool_prefix}strip; ac_word=$2 12712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12713$as_echo_n "checking for $ac_word... " >&6; } 12714if ${ac_cv_prog_STRIP+:} false; then : 12715 $as_echo_n "(cached) " >&6 12716else 12717 if test -n "$STRIP"; then 12718 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12719else 12720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12721for as_dir in $PATH 12722do 12723 IFS=$as_save_IFS 12724 test -z "$as_dir" && as_dir=. 12725 for ac_exec_ext in '' $ac_executable_extensions; do 12726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12727 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12729 break 2 12730 fi 12731done 12732 done 12733IFS=$as_save_IFS 12734 12735fi 12736fi 12737STRIP=$ac_cv_prog_STRIP 12738if test -n "$STRIP"; then 12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12740$as_echo "$STRIP" >&6; } 12741else 12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12743$as_echo "no" >&6; } 12744fi 12745 12746 12747fi 12748if test -z "$ac_cv_prog_STRIP"; then 12749 ac_ct_STRIP=$STRIP 12750 # Extract the first word of "strip", so it can be a program name with args. 12751set dummy strip; ac_word=$2 12752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12753$as_echo_n "checking for $ac_word... " >&6; } 12754if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12755 $as_echo_n "(cached) " >&6 12756else 12757 if test -n "$ac_ct_STRIP"; then 12758 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12759else 12760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12761for as_dir in $PATH 12762do 12763 IFS=$as_save_IFS 12764 test -z "$as_dir" && as_dir=. 12765 for ac_exec_ext in '' $ac_executable_extensions; do 12766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12767 ac_cv_prog_ac_ct_STRIP="strip" 12768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12769 break 2 12770 fi 12771done 12772 done 12773IFS=$as_save_IFS 12774 12775fi 12776fi 12777ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12778if test -n "$ac_ct_STRIP"; then 12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12780$as_echo "$ac_ct_STRIP" >&6; } 12781else 12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12783$as_echo "no" >&6; } 12784fi 12785 12786 if test "x$ac_ct_STRIP" = x; then 12787 STRIP=":" 12788 else 12789 case $cross_compiling:$ac_tool_warned in 12790yes:) 12791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12793ac_tool_warned=yes ;; 12794esac 12795 STRIP=$ac_ct_STRIP 12796 fi 12797else 12798 STRIP="$ac_cv_prog_STRIP" 12799fi 12800 12801test -z "$STRIP" && STRIP=: 12802 12803 12804 12805 12806 12807 12808if test -n "$ac_tool_prefix"; then 12809 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12810set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12812$as_echo_n "checking for $ac_word... " >&6; } 12813if ${ac_cv_prog_RANLIB+:} false; then : 12814 $as_echo_n "(cached) " >&6 12815else 12816 if test -n "$RANLIB"; then 12817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12818else 12819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12820for as_dir in $PATH 12821do 12822 IFS=$as_save_IFS 12823 test -z "$as_dir" && as_dir=. 12824 for ac_exec_ext in '' $ac_executable_extensions; do 12825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12826 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12828 break 2 12829 fi 12830done 12831 done 12832IFS=$as_save_IFS 12833 12834fi 12835fi 12836RANLIB=$ac_cv_prog_RANLIB 12837if test -n "$RANLIB"; then 12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12839$as_echo "$RANLIB" >&6; } 12840else 12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12842$as_echo "no" >&6; } 12843fi 12844 12845 12846fi 12847if test -z "$ac_cv_prog_RANLIB"; then 12848 ac_ct_RANLIB=$RANLIB 12849 # Extract the first word of "ranlib", so it can be a program name with args. 12850set dummy ranlib; ac_word=$2 12851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12852$as_echo_n "checking for $ac_word... " >&6; } 12853if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12854 $as_echo_n "(cached) " >&6 12855else 12856 if test -n "$ac_ct_RANLIB"; then 12857 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12858else 12859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12860for as_dir in $PATH 12861do 12862 IFS=$as_save_IFS 12863 test -z "$as_dir" && as_dir=. 12864 for ac_exec_ext in '' $ac_executable_extensions; do 12865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12866 ac_cv_prog_ac_ct_RANLIB="ranlib" 12867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12868 break 2 12869 fi 12870done 12871 done 12872IFS=$as_save_IFS 12873 12874fi 12875fi 12876ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12877if test -n "$ac_ct_RANLIB"; then 12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12879$as_echo "$ac_ct_RANLIB" >&6; } 12880else 12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12882$as_echo "no" >&6; } 12883fi 12884 12885 if test "x$ac_ct_RANLIB" = x; then 12886 RANLIB=":" 12887 else 12888 case $cross_compiling:$ac_tool_warned in 12889yes:) 12890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12892ac_tool_warned=yes ;; 12893esac 12894 RANLIB=$ac_ct_RANLIB 12895 fi 12896else 12897 RANLIB="$ac_cv_prog_RANLIB" 12898fi 12899 12900test -z "$RANLIB" && RANLIB=: 12901 12902 12903 12904 12905 12906 12907# Determine commands to create old-style static archives. 12908old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12909old_postinstall_cmds='chmod 644 $oldlib' 12910old_postuninstall_cmds= 12911 12912if test -n "$RANLIB"; then 12913 case $host_os in 12914 bitrig* | openbsd*) 12915 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12916 ;; 12917 *) 12918 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12919 ;; 12920 esac 12921 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12922fi 12923 12924case $host_os in 12925 darwin*) 12926 lock_old_archive_extraction=yes ;; 12927 *) 12928 lock_old_archive_extraction=no ;; 12929esac 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969# If no C compiler was specified, use CC. 12970LTCC=${LTCC-"$CC"} 12971 12972# If no C compiler flags were specified, use CFLAGS. 12973LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12974 12975# Allow CC to be a program name with arguments. 12976compiler=$CC 12977 12978 12979# Check for command to grab the raw symbol name followed by C symbol from nm. 12980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12981$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12982if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12983 $as_echo_n "(cached) " >&6 12984else 12985 12986# These are sane defaults that work on at least a few old systems. 12987# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12988 12989# Character class describing NM global symbol codes. 12990symcode='[BCDEGRST]' 12991 12992# Regexp to match symbols that can be accessed directly from C. 12993sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12994 12995# Define system-specific variables. 12996case $host_os in 12997aix*) 12998 symcode='[BCDT]' 12999 ;; 13000cygwin* | mingw* | pw32* | cegcc*) 13001 symcode='[ABCDGISTW]' 13002 ;; 13003hpux*) 13004 if test ia64 = "$host_cpu"; then 13005 symcode='[ABCDEGRST]' 13006 fi 13007 ;; 13008irix* | nonstopux*) 13009 symcode='[BCDEGRST]' 13010 ;; 13011osf*) 13012 symcode='[BCDEGQRST]' 13013 ;; 13014solaris*) 13015 symcode='[BDRT]' 13016 ;; 13017sco3.2v5*) 13018 symcode='[DT]' 13019 ;; 13020sysv4.2uw2*) 13021 symcode='[DT]' 13022 ;; 13023sysv5* | sco5v6* | unixware* | OpenUNIX*) 13024 symcode='[ABDT]' 13025 ;; 13026sysv4) 13027 symcode='[DFNSTU]' 13028 ;; 13029esac 13030 13031# If we're using GNU nm, then use its standard symbol codes. 13032case `$NM -V 2>&1` in 13033*GNU* | *'with BFD'*) 13034 symcode='[ABCDGIRSTW]' ;; 13035esac 13036 13037if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13038 # Gets list of data symbols to import. 13039 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 13040 # Adjust the below global symbol transforms to fixup imported variables. 13041 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13042 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13043 lt_c_name_lib_hook="\ 13044 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13045 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13046else 13047 # Disable hooks by default. 13048 lt_cv_sys_global_symbol_to_import= 13049 lt_cdecl_hook= 13050 lt_c_name_hook= 13051 lt_c_name_lib_hook= 13052fi 13053 13054# Transform an extracted symbol line into a proper C declaration. 13055# Some systems (esp. on ia64) link data and code symbols differently, 13056# so use this general approach. 13057lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 13058$lt_cdecl_hook\ 13059" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13060" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13061 13062# Transform an extracted symbol line into symbol name and symbol address 13063lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 13064$lt_c_name_hook\ 13065" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13066" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13067 13068# Transform an extracted symbol line into symbol name with lib prefix and 13069# symbol address. 13070lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 13071$lt_c_name_lib_hook\ 13072" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13073" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13074" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13075 13076# Handle CRLF in mingw tool chain 13077opt_cr= 13078case $build_os in 13079mingw*) 13080 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13081 ;; 13082esac 13083 13084# Try without a prefix underscore, then with it. 13085for ac_symprfx in "" "_"; do 13086 13087 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13088 symxfrm="\\1 $ac_symprfx\\2 \\2" 13089 13090 # Write the raw and C identifiers. 13091 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13092 # Fake it for dumpbin and say T for any non-static function, 13093 # D for any global variable and I for any imported variable. 13094 # Also find C++ and __fastcall symbols from MSVC++, 13095 # which start with @ or ?. 13096 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13097" {last_section=section; section=\$ 3};"\ 13098" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13099" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13100" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13101" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13102" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13103" \$ 0!~/External *\|/{next};"\ 13104" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13105" {if(hide[section]) next};"\ 13106" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13107" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13108" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13109" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13110" ' prfx=^$ac_symprfx" 13111 else 13112 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13113 fi 13114 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 13115 13116 # Check to see that the pipe works correctly. 13117 pipe_works=no 13118 13119 rm -f conftest* 13120 cat > conftest.$ac_ext <<_LT_EOF 13121#ifdef __cplusplus 13122extern "C" { 13123#endif 13124char nm_test_var; 13125void nm_test_func(void); 13126void nm_test_func(void){} 13127#ifdef __cplusplus 13128} 13129#endif 13130int main(){nm_test_var='a';nm_test_func();return(0);} 13131_LT_EOF 13132 13133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13134 (eval $ac_compile) 2>&5 13135 ac_status=$? 13136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13137 test $ac_status = 0; }; then 13138 # Now try to grab the symbols. 13139 nlist=conftest.nm 13140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13141 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13142 ac_status=$? 13143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13144 test $ac_status = 0; } && test -s "$nlist"; then 13145 # Try sorting and uniquifying the output. 13146 if sort "$nlist" | uniq > "$nlist"T; then 13147 mv -f "$nlist"T "$nlist" 13148 else 13149 rm -f "$nlist"T 13150 fi 13151 13152 # Make sure that we snagged all the symbols we need. 13153 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13154 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13155 cat <<_LT_EOF > conftest.$ac_ext 13156/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13157#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13158/* DATA imports from DLLs on WIN32 can't be const, because runtime 13159 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13160# define LT_DLSYM_CONST 13161#elif defined __osf__ 13162/* This system does not cope well with relocations in const data. */ 13163# define LT_DLSYM_CONST 13164#else 13165# define LT_DLSYM_CONST const 13166#endif 13167 13168#ifdef __cplusplus 13169extern "C" { 13170#endif 13171 13172_LT_EOF 13173 # Now generate the symbol file. 13174 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13175 13176 cat <<_LT_EOF >> conftest.$ac_ext 13177 13178/* The mapping between symbol names and symbols. */ 13179LT_DLSYM_CONST struct { 13180 const char *name; 13181 void *address; 13182} 13183lt__PROGRAM__LTX_preloaded_symbols[] = 13184{ 13185 { "@PROGRAM@", (void *) 0 }, 13186_LT_EOF 13187 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13188 cat <<\_LT_EOF >> conftest.$ac_ext 13189 {0, (void *) 0} 13190}; 13191 13192/* This works around a problem in FreeBSD linker */ 13193#ifdef FREEBSD_WORKAROUND 13194static const void *lt_preloaded_setup() { 13195 return lt__PROGRAM__LTX_preloaded_symbols; 13196} 13197#endif 13198 13199#ifdef __cplusplus 13200} 13201#endif 13202_LT_EOF 13203 # Now try linking the two files. 13204 mv conftest.$ac_objext conftstm.$ac_objext 13205 lt_globsym_save_LIBS=$LIBS 13206 lt_globsym_save_CFLAGS=$CFLAGS 13207 LIBS=conftstm.$ac_objext 13208 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13210 (eval $ac_link) 2>&5 13211 ac_status=$? 13212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13213 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13214 pipe_works=yes 13215 fi 13216 LIBS=$lt_globsym_save_LIBS 13217 CFLAGS=$lt_globsym_save_CFLAGS 13218 else 13219 echo "cannot find nm_test_func in $nlist" >&5 13220 fi 13221 else 13222 echo "cannot find nm_test_var in $nlist" >&5 13223 fi 13224 else 13225 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13226 fi 13227 else 13228 echo "$progname: failed program was:" >&5 13229 cat conftest.$ac_ext >&5 13230 fi 13231 rm -rf conftest* conftst* 13232 13233 # Do not use the global_symbol_pipe unless it works. 13234 if test yes = "$pipe_works"; then 13235 break 13236 else 13237 lt_cv_sys_global_symbol_pipe= 13238 fi 13239done 13240 13241fi 13242 13243if test -z "$lt_cv_sys_global_symbol_pipe"; then 13244 lt_cv_sys_global_symbol_to_cdecl= 13245fi 13246if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13248$as_echo "failed" >&6; } 13249else 13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13251$as_echo "ok" >&6; } 13252fi 13253 13254# Response file support. 13255if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13256 nm_file_list_spec='@' 13257elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13258 nm_file_list_spec='@' 13259fi 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13298$as_echo_n "checking for sysroot... " >&6; } 13299 13300# Check whether --with-sysroot was given. 13301if test "${with_sysroot+set}" = set; then : 13302 withval=$with_sysroot; 13303else 13304 with_sysroot=no 13305fi 13306 13307 13308lt_sysroot= 13309case $with_sysroot in #( 13310 yes) 13311 if test yes = "$GCC"; then 13312 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13313 fi 13314 ;; #( 13315 /*) 13316 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13317 ;; #( 13318 no|'') 13319 ;; #( 13320 *) 13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13322$as_echo "$with_sysroot" >&6; } 13323 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13324 ;; 13325esac 13326 13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13328$as_echo "${lt_sysroot:-no}" >&6; } 13329 13330 13331 13332 13333 13334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13335$as_echo_n "checking for a working dd... " >&6; } 13336if ${ac_cv_path_lt_DD+:} false; then : 13337 $as_echo_n "(cached) " >&6 13338else 13339 printf 0123456789abcdef0123456789abcdef >conftest.i 13340cat conftest.i conftest.i >conftest2.i 13341: ${lt_DD:=$DD} 13342if test -z "$lt_DD"; then 13343 ac_path_lt_DD_found=false 13344 # Loop through the user's path and test for each of PROGNAME-LIST 13345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13346for as_dir in $PATH 13347do 13348 IFS=$as_save_IFS 13349 test -z "$as_dir" && as_dir=. 13350 for ac_prog in dd; do 13351 for ac_exec_ext in '' $ac_executable_extensions; do 13352 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 13353 as_fn_executable_p "$ac_path_lt_DD" || continue 13354if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13355 cmp -s conftest.i conftest.out \ 13356 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13357fi 13358 $ac_path_lt_DD_found && break 3 13359 done 13360 done 13361 done 13362IFS=$as_save_IFS 13363 if test -z "$ac_cv_path_lt_DD"; then 13364 : 13365 fi 13366else 13367 ac_cv_path_lt_DD=$lt_DD 13368fi 13369 13370rm -f conftest.i conftest2.i conftest.out 13371fi 13372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13373$as_echo "$ac_cv_path_lt_DD" >&6; } 13374 13375 13376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13377$as_echo_n "checking how to truncate binary pipes... " >&6; } 13378if ${lt_cv_truncate_bin+:} false; then : 13379 $as_echo_n "(cached) " >&6 13380else 13381 printf 0123456789abcdef0123456789abcdef >conftest.i 13382cat conftest.i conftest.i >conftest2.i 13383lt_cv_truncate_bin= 13384if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13385 cmp -s conftest.i conftest.out \ 13386 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13387fi 13388rm -f conftest.i conftest2.i conftest.out 13389test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13390fi 13391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13392$as_echo "$lt_cv_truncate_bin" >&6; } 13393 13394 13395 13396 13397 13398 13399 13400# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13401func_cc_basename () 13402{ 13403 for cc_temp in $*""; do 13404 case $cc_temp in 13405 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13406 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13407 \-*) ;; 13408 *) break;; 13409 esac 13410 done 13411 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13412} 13413 13414# Check whether --enable-libtool-lock was given. 13415if test "${enable_libtool_lock+set}" = set; then : 13416 enableval=$enable_libtool_lock; 13417fi 13418 13419test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13420 13421# Some flags need to be propagated to the compiler or linker for good 13422# libtool support. 13423case $host in 13424ia64-*-hpux*) 13425 # Find out what ABI is being produced by ac_compile, and set mode 13426 # options accordingly. 13427 echo 'int i;' > conftest.$ac_ext 13428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13429 (eval $ac_compile) 2>&5 13430 ac_status=$? 13431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13432 test $ac_status = 0; }; then 13433 case `/usr/bin/file conftest.$ac_objext` in 13434 *ELF-32*) 13435 HPUX_IA64_MODE=32 13436 ;; 13437 *ELF-64*) 13438 HPUX_IA64_MODE=64 13439 ;; 13440 esac 13441 fi 13442 rm -rf conftest* 13443 ;; 13444*-*-irix6*) 13445 # Find out what ABI is being produced by ac_compile, and set linker 13446 # options accordingly. 13447 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13449 (eval $ac_compile) 2>&5 13450 ac_status=$? 13451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13452 test $ac_status = 0; }; then 13453 if test yes = "$lt_cv_prog_gnu_ld"; then 13454 case `/usr/bin/file conftest.$ac_objext` in 13455 *32-bit*) 13456 LD="${LD-ld} -melf32bsmip" 13457 ;; 13458 *N32*) 13459 LD="${LD-ld} -melf32bmipn32" 13460 ;; 13461 *64-bit*) 13462 LD="${LD-ld} -melf64bmip" 13463 ;; 13464 esac 13465 else 13466 case `/usr/bin/file conftest.$ac_objext` in 13467 *32-bit*) 13468 LD="${LD-ld} -32" 13469 ;; 13470 *N32*) 13471 LD="${LD-ld} -n32" 13472 ;; 13473 *64-bit*) 13474 LD="${LD-ld} -64" 13475 ;; 13476 esac 13477 fi 13478 fi 13479 rm -rf conftest* 13480 ;; 13481 13482mips64*-*linux*) 13483 # Find out what ABI is being produced by ac_compile, and set linker 13484 # options accordingly. 13485 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13487 (eval $ac_compile) 2>&5 13488 ac_status=$? 13489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13490 test $ac_status = 0; }; then 13491 emul=elf 13492 case `/usr/bin/file conftest.$ac_objext` in 13493 *32-bit*) 13494 emul="${emul}32" 13495 ;; 13496 *64-bit*) 13497 emul="${emul}64" 13498 ;; 13499 esac 13500 case `/usr/bin/file conftest.$ac_objext` in 13501 *MSB*) 13502 emul="${emul}btsmip" 13503 ;; 13504 *LSB*) 13505 emul="${emul}ltsmip" 13506 ;; 13507 esac 13508 case `/usr/bin/file conftest.$ac_objext` in 13509 *N32*) 13510 emul="${emul}n32" 13511 ;; 13512 esac 13513 LD="${LD-ld} -m $emul" 13514 fi 13515 rm -rf conftest* 13516 ;; 13517 13518x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13519s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13520 # Find out what ABI is being produced by ac_compile, and set linker 13521 # options accordingly. Note that the listed cases only cover the 13522 # situations where additional linker options are needed (such as when 13523 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13524 # vice versa); the common cases where no linker options are needed do 13525 # not appear in the list. 13526 echo 'int i;' > conftest.$ac_ext 13527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13528 (eval $ac_compile) 2>&5 13529 ac_status=$? 13530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13531 test $ac_status = 0; }; then 13532 case `/usr/bin/file conftest.o` in 13533 *32-bit*) 13534 case $host in 13535 x86_64-*kfreebsd*-gnu) 13536 LD="${LD-ld} -m elf_i386_fbsd" 13537 ;; 13538 x86_64-*linux*) 13539 case `/usr/bin/file conftest.o` in 13540 *x86-64*) 13541 LD="${LD-ld} -m elf32_x86_64" 13542 ;; 13543 *) 13544 LD="${LD-ld} -m elf_i386" 13545 ;; 13546 esac 13547 ;; 13548 powerpc64le-*linux*) 13549 LD="${LD-ld} -m elf32lppclinux" 13550 ;; 13551 powerpc64-*linux*) 13552 LD="${LD-ld} -m elf32ppclinux" 13553 ;; 13554 s390x-*linux*) 13555 LD="${LD-ld} -m elf_s390" 13556 ;; 13557 sparc64-*linux*) 13558 LD="${LD-ld} -m elf32_sparc" 13559 ;; 13560 esac 13561 ;; 13562 *64-bit*) 13563 case $host in 13564 x86_64-*kfreebsd*-gnu) 13565 LD="${LD-ld} -m elf_x86_64_fbsd" 13566 ;; 13567 x86_64-*linux*) 13568 LD="${LD-ld} -m elf_x86_64" 13569 ;; 13570 powerpcle-*linux*) 13571 LD="${LD-ld} -m elf64lppc" 13572 ;; 13573 powerpc-*linux*) 13574 LD="${LD-ld} -m elf64ppc" 13575 ;; 13576 s390*-*linux*|s390*-*tpf*) 13577 LD="${LD-ld} -m elf64_s390" 13578 ;; 13579 sparc*-*linux*) 13580 LD="${LD-ld} -m elf64_sparc" 13581 ;; 13582 esac 13583 ;; 13584 esac 13585 fi 13586 rm -rf conftest* 13587 ;; 13588 13589*-*-sco3.2v5*) 13590 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13591 SAVE_CFLAGS=$CFLAGS 13592 CFLAGS="$CFLAGS -belf" 13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13594$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13595if ${lt_cv_cc_needs_belf+:} false; then : 13596 $as_echo_n "(cached) " >&6 13597else 13598 ac_ext=c 13599ac_cpp='$CPP $CPPFLAGS' 13600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13602ac_compiler_gnu=$ac_cv_c_compiler_gnu 13603 13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13605/* end confdefs.h. */ 13606 13607int 13608main () 13609{ 13610 13611 ; 13612 return 0; 13613} 13614_ACEOF 13615if ac_fn_c_try_link "$LINENO"; then : 13616 lt_cv_cc_needs_belf=yes 13617else 13618 lt_cv_cc_needs_belf=no 13619fi 13620rm -f core conftest.err conftest.$ac_objext \ 13621 conftest$ac_exeext conftest.$ac_ext 13622 ac_ext=c 13623ac_cpp='$CPP $CPPFLAGS' 13624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13626ac_compiler_gnu=$ac_cv_c_compiler_gnu 13627 13628fi 13629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13630$as_echo "$lt_cv_cc_needs_belf" >&6; } 13631 if test yes != "$lt_cv_cc_needs_belf"; then 13632 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13633 CFLAGS=$SAVE_CFLAGS 13634 fi 13635 ;; 13636*-*solaris*) 13637 # Find out what ABI is being produced by ac_compile, and set linker 13638 # options accordingly. 13639 echo 'int i;' > conftest.$ac_ext 13640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13641 (eval $ac_compile) 2>&5 13642 ac_status=$? 13643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13644 test $ac_status = 0; }; then 13645 case `/usr/bin/file conftest.o` in 13646 *64-bit*) 13647 case $lt_cv_prog_gnu_ld in 13648 yes*) 13649 case $host in 13650 i?86-*-solaris*|x86_64-*-solaris*) 13651 LD="${LD-ld} -m elf_x86_64" 13652 ;; 13653 sparc*-*-solaris*) 13654 LD="${LD-ld} -m elf64_sparc" 13655 ;; 13656 esac 13657 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13658 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13659 LD=${LD-ld}_sol2 13660 fi 13661 ;; 13662 *) 13663 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13664 LD="${LD-ld} -64" 13665 fi 13666 ;; 13667 esac 13668 ;; 13669 esac 13670 fi 13671 rm -rf conftest* 13672 ;; 13673esac 13674 13675need_locks=$enable_libtool_lock 13676 13677if test -n "$ac_tool_prefix"; then 13678 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13679set dummy ${ac_tool_prefix}mt; ac_word=$2 13680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13681$as_echo_n "checking for $ac_word... " >&6; } 13682if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13683 $as_echo_n "(cached) " >&6 13684else 13685 if test -n "$MANIFEST_TOOL"; then 13686 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13687else 13688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13689for as_dir in $PATH 13690do 13691 IFS=$as_save_IFS 13692 test -z "$as_dir" && as_dir=. 13693 for ac_exec_ext in '' $ac_executable_extensions; do 13694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13695 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13697 break 2 13698 fi 13699done 13700 done 13701IFS=$as_save_IFS 13702 13703fi 13704fi 13705MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13706if test -n "$MANIFEST_TOOL"; then 13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13708$as_echo "$MANIFEST_TOOL" >&6; } 13709else 13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13711$as_echo "no" >&6; } 13712fi 13713 13714 13715fi 13716if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13717 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13718 # Extract the first word of "mt", so it can be a program name with args. 13719set dummy mt; ac_word=$2 13720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13721$as_echo_n "checking for $ac_word... " >&6; } 13722if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13723 $as_echo_n "(cached) " >&6 13724else 13725 if test -n "$ac_ct_MANIFEST_TOOL"; then 13726 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13727else 13728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13729for as_dir in $PATH 13730do 13731 IFS=$as_save_IFS 13732 test -z "$as_dir" && as_dir=. 13733 for ac_exec_ext in '' $ac_executable_extensions; do 13734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13735 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13737 break 2 13738 fi 13739done 13740 done 13741IFS=$as_save_IFS 13742 13743fi 13744fi 13745ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13746if test -n "$ac_ct_MANIFEST_TOOL"; then 13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13748$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13749else 13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13751$as_echo "no" >&6; } 13752fi 13753 13754 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13755 MANIFEST_TOOL=":" 13756 else 13757 case $cross_compiling:$ac_tool_warned in 13758yes:) 13759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13761ac_tool_warned=yes ;; 13762esac 13763 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13764 fi 13765else 13766 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13767fi 13768 13769test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13771$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13772if ${lt_cv_path_mainfest_tool+:} false; then : 13773 $as_echo_n "(cached) " >&6 13774else 13775 lt_cv_path_mainfest_tool=no 13776 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13777 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13778 cat conftest.err >&5 13779 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13780 lt_cv_path_mainfest_tool=yes 13781 fi 13782 rm -f conftest* 13783fi 13784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13785$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13786if test yes != "$lt_cv_path_mainfest_tool"; then 13787 MANIFEST_TOOL=: 13788fi 13789 13790 13791 13792 13793 13794 13795 case $host_os in 13796 rhapsody* | darwin*) 13797 if test -n "$ac_tool_prefix"; then 13798 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13799set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13801$as_echo_n "checking for $ac_word... " >&6; } 13802if ${ac_cv_prog_DSYMUTIL+:} false; then : 13803 $as_echo_n "(cached) " >&6 13804else 13805 if test -n "$DSYMUTIL"; then 13806 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13807else 13808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13809for as_dir in $PATH 13810do 13811 IFS=$as_save_IFS 13812 test -z "$as_dir" && as_dir=. 13813 for ac_exec_ext in '' $ac_executable_extensions; do 13814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13815 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13817 break 2 13818 fi 13819done 13820 done 13821IFS=$as_save_IFS 13822 13823fi 13824fi 13825DSYMUTIL=$ac_cv_prog_DSYMUTIL 13826if test -n "$DSYMUTIL"; then 13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13828$as_echo "$DSYMUTIL" >&6; } 13829else 13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13831$as_echo "no" >&6; } 13832fi 13833 13834 13835fi 13836if test -z "$ac_cv_prog_DSYMUTIL"; then 13837 ac_ct_DSYMUTIL=$DSYMUTIL 13838 # Extract the first word of "dsymutil", so it can be a program name with args. 13839set dummy dsymutil; ac_word=$2 13840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13841$as_echo_n "checking for $ac_word... " >&6; } 13842if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13843 $as_echo_n "(cached) " >&6 13844else 13845 if test -n "$ac_ct_DSYMUTIL"; then 13846 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13847else 13848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13849for as_dir in $PATH 13850do 13851 IFS=$as_save_IFS 13852 test -z "$as_dir" && as_dir=. 13853 for ac_exec_ext in '' $ac_executable_extensions; do 13854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13855 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13857 break 2 13858 fi 13859done 13860 done 13861IFS=$as_save_IFS 13862 13863fi 13864fi 13865ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13866if test -n "$ac_ct_DSYMUTIL"; then 13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13868$as_echo "$ac_ct_DSYMUTIL" >&6; } 13869else 13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13871$as_echo "no" >&6; } 13872fi 13873 13874 if test "x$ac_ct_DSYMUTIL" = x; then 13875 DSYMUTIL=":" 13876 else 13877 case $cross_compiling:$ac_tool_warned in 13878yes:) 13879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13881ac_tool_warned=yes ;; 13882esac 13883 DSYMUTIL=$ac_ct_DSYMUTIL 13884 fi 13885else 13886 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13887fi 13888 13889 if test -n "$ac_tool_prefix"; then 13890 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13891set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13893$as_echo_n "checking for $ac_word... " >&6; } 13894if ${ac_cv_prog_NMEDIT+:} false; then : 13895 $as_echo_n "(cached) " >&6 13896else 13897 if test -n "$NMEDIT"; then 13898 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13899else 13900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13901for as_dir in $PATH 13902do 13903 IFS=$as_save_IFS 13904 test -z "$as_dir" && as_dir=. 13905 for ac_exec_ext in '' $ac_executable_extensions; do 13906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13907 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13909 break 2 13910 fi 13911done 13912 done 13913IFS=$as_save_IFS 13914 13915fi 13916fi 13917NMEDIT=$ac_cv_prog_NMEDIT 13918if test -n "$NMEDIT"; then 13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13920$as_echo "$NMEDIT" >&6; } 13921else 13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13923$as_echo "no" >&6; } 13924fi 13925 13926 13927fi 13928if test -z "$ac_cv_prog_NMEDIT"; then 13929 ac_ct_NMEDIT=$NMEDIT 13930 # Extract the first word of "nmedit", so it can be a program name with args. 13931set dummy nmedit; ac_word=$2 13932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13933$as_echo_n "checking for $ac_word... " >&6; } 13934if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13935 $as_echo_n "(cached) " >&6 13936else 13937 if test -n "$ac_ct_NMEDIT"; then 13938 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13939else 13940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13941for as_dir in $PATH 13942do 13943 IFS=$as_save_IFS 13944 test -z "$as_dir" && as_dir=. 13945 for ac_exec_ext in '' $ac_executable_extensions; do 13946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13947 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13949 break 2 13950 fi 13951done 13952 done 13953IFS=$as_save_IFS 13954 13955fi 13956fi 13957ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13958if test -n "$ac_ct_NMEDIT"; then 13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13960$as_echo "$ac_ct_NMEDIT" >&6; } 13961else 13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13963$as_echo "no" >&6; } 13964fi 13965 13966 if test "x$ac_ct_NMEDIT" = x; then 13967 NMEDIT=":" 13968 else 13969 case $cross_compiling:$ac_tool_warned in 13970yes:) 13971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13973ac_tool_warned=yes ;; 13974esac 13975 NMEDIT=$ac_ct_NMEDIT 13976 fi 13977else 13978 NMEDIT="$ac_cv_prog_NMEDIT" 13979fi 13980 13981 if test -n "$ac_tool_prefix"; then 13982 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13983set dummy ${ac_tool_prefix}lipo; ac_word=$2 13984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13985$as_echo_n "checking for $ac_word... " >&6; } 13986if ${ac_cv_prog_LIPO+:} false; then : 13987 $as_echo_n "(cached) " >&6 13988else 13989 if test -n "$LIPO"; then 13990 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13991else 13992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13993for as_dir in $PATH 13994do 13995 IFS=$as_save_IFS 13996 test -z "$as_dir" && as_dir=. 13997 for ac_exec_ext in '' $ac_executable_extensions; do 13998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13999 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14001 break 2 14002 fi 14003done 14004 done 14005IFS=$as_save_IFS 14006 14007fi 14008fi 14009LIPO=$ac_cv_prog_LIPO 14010if test -n "$LIPO"; then 14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14012$as_echo "$LIPO" >&6; } 14013else 14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14015$as_echo "no" >&6; } 14016fi 14017 14018 14019fi 14020if test -z "$ac_cv_prog_LIPO"; then 14021 ac_ct_LIPO=$LIPO 14022 # Extract the first word of "lipo", so it can be a program name with args. 14023set dummy lipo; ac_word=$2 14024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14025$as_echo_n "checking for $ac_word... " >&6; } 14026if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 14027 $as_echo_n "(cached) " >&6 14028else 14029 if test -n "$ac_ct_LIPO"; then 14030 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14031else 14032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14033for as_dir in $PATH 14034do 14035 IFS=$as_save_IFS 14036 test -z "$as_dir" && as_dir=. 14037 for ac_exec_ext in '' $ac_executable_extensions; do 14038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14039 ac_cv_prog_ac_ct_LIPO="lipo" 14040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14041 break 2 14042 fi 14043done 14044 done 14045IFS=$as_save_IFS 14046 14047fi 14048fi 14049ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14050if test -n "$ac_ct_LIPO"; then 14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14052$as_echo "$ac_ct_LIPO" >&6; } 14053else 14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14055$as_echo "no" >&6; } 14056fi 14057 14058 if test "x$ac_ct_LIPO" = x; then 14059 LIPO=":" 14060 else 14061 case $cross_compiling:$ac_tool_warned in 14062yes:) 14063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14065ac_tool_warned=yes ;; 14066esac 14067 LIPO=$ac_ct_LIPO 14068 fi 14069else 14070 LIPO="$ac_cv_prog_LIPO" 14071fi 14072 14073 if test -n "$ac_tool_prefix"; then 14074 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14075set dummy ${ac_tool_prefix}otool; ac_word=$2 14076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14077$as_echo_n "checking for $ac_word... " >&6; } 14078if ${ac_cv_prog_OTOOL+:} false; then : 14079 $as_echo_n "(cached) " >&6 14080else 14081 if test -n "$OTOOL"; then 14082 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14083else 14084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14085for as_dir in $PATH 14086do 14087 IFS=$as_save_IFS 14088 test -z "$as_dir" && as_dir=. 14089 for ac_exec_ext in '' $ac_executable_extensions; do 14090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14091 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14093 break 2 14094 fi 14095done 14096 done 14097IFS=$as_save_IFS 14098 14099fi 14100fi 14101OTOOL=$ac_cv_prog_OTOOL 14102if test -n "$OTOOL"; then 14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14104$as_echo "$OTOOL" >&6; } 14105else 14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14107$as_echo "no" >&6; } 14108fi 14109 14110 14111fi 14112if test -z "$ac_cv_prog_OTOOL"; then 14113 ac_ct_OTOOL=$OTOOL 14114 # Extract the first word of "otool", so it can be a program name with args. 14115set dummy otool; ac_word=$2 14116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14117$as_echo_n "checking for $ac_word... " >&6; } 14118if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 14119 $as_echo_n "(cached) " >&6 14120else 14121 if test -n "$ac_ct_OTOOL"; then 14122 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14123else 14124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14125for as_dir in $PATH 14126do 14127 IFS=$as_save_IFS 14128 test -z "$as_dir" && as_dir=. 14129 for ac_exec_ext in '' $ac_executable_extensions; do 14130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14131 ac_cv_prog_ac_ct_OTOOL="otool" 14132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14133 break 2 14134 fi 14135done 14136 done 14137IFS=$as_save_IFS 14138 14139fi 14140fi 14141ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14142if test -n "$ac_ct_OTOOL"; then 14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14144$as_echo "$ac_ct_OTOOL" >&6; } 14145else 14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14147$as_echo "no" >&6; } 14148fi 14149 14150 if test "x$ac_ct_OTOOL" = x; then 14151 OTOOL=":" 14152 else 14153 case $cross_compiling:$ac_tool_warned in 14154yes:) 14155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14157ac_tool_warned=yes ;; 14158esac 14159 OTOOL=$ac_ct_OTOOL 14160 fi 14161else 14162 OTOOL="$ac_cv_prog_OTOOL" 14163fi 14164 14165 if test -n "$ac_tool_prefix"; then 14166 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14167set dummy ${ac_tool_prefix}otool64; ac_word=$2 14168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14169$as_echo_n "checking for $ac_word... " >&6; } 14170if ${ac_cv_prog_OTOOL64+:} false; then : 14171 $as_echo_n "(cached) " >&6 14172else 14173 if test -n "$OTOOL64"; then 14174 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14175else 14176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14177for as_dir in $PATH 14178do 14179 IFS=$as_save_IFS 14180 test -z "$as_dir" && as_dir=. 14181 for ac_exec_ext in '' $ac_executable_extensions; do 14182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14183 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14185 break 2 14186 fi 14187done 14188 done 14189IFS=$as_save_IFS 14190 14191fi 14192fi 14193OTOOL64=$ac_cv_prog_OTOOL64 14194if test -n "$OTOOL64"; then 14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14196$as_echo "$OTOOL64" >&6; } 14197else 14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14199$as_echo "no" >&6; } 14200fi 14201 14202 14203fi 14204if test -z "$ac_cv_prog_OTOOL64"; then 14205 ac_ct_OTOOL64=$OTOOL64 14206 # Extract the first word of "otool64", so it can be a program name with args. 14207set dummy otool64; ac_word=$2 14208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14209$as_echo_n "checking for $ac_word... " >&6; } 14210if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 14211 $as_echo_n "(cached) " >&6 14212else 14213 if test -n "$ac_ct_OTOOL64"; then 14214 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14215else 14216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14217for as_dir in $PATH 14218do 14219 IFS=$as_save_IFS 14220 test -z "$as_dir" && as_dir=. 14221 for ac_exec_ext in '' $ac_executable_extensions; do 14222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14223 ac_cv_prog_ac_ct_OTOOL64="otool64" 14224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14225 break 2 14226 fi 14227done 14228 done 14229IFS=$as_save_IFS 14230 14231fi 14232fi 14233ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14234if test -n "$ac_ct_OTOOL64"; then 14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14236$as_echo "$ac_ct_OTOOL64" >&6; } 14237else 14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14239$as_echo "no" >&6; } 14240fi 14241 14242 if test "x$ac_ct_OTOOL64" = x; then 14243 OTOOL64=":" 14244 else 14245 case $cross_compiling:$ac_tool_warned in 14246yes:) 14247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14249ac_tool_warned=yes ;; 14250esac 14251 OTOOL64=$ac_ct_OTOOL64 14252 fi 14253else 14254 OTOOL64="$ac_cv_prog_OTOOL64" 14255fi 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14284$as_echo_n "checking for -single_module linker flag... " >&6; } 14285if ${lt_cv_apple_cc_single_mod+:} false; then : 14286 $as_echo_n "(cached) " >&6 14287else 14288 lt_cv_apple_cc_single_mod=no 14289 if test -z "$LT_MULTI_MODULE"; then 14290 # By default we will add the -single_module flag. You can override 14291 # by either setting the environment variable LT_MULTI_MODULE 14292 # non-empty at configure time, or by adding -multi_module to the 14293 # link flags. 14294 rm -rf libconftest.dylib* 14295 echo "int foo(void){return 1;}" > conftest.c 14296 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14297-dynamiclib -Wl,-single_module conftest.c" >&5 14298 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14299 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14300 _lt_result=$? 14301 # If there is a non-empty error log, and "single_module" 14302 # appears in it, assume the flag caused a linker warning 14303 if test -s conftest.err && $GREP single_module conftest.err; then 14304 cat conftest.err >&5 14305 # Otherwise, if the output was created with a 0 exit code from 14306 # the compiler, it worked. 14307 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14308 lt_cv_apple_cc_single_mod=yes 14309 else 14310 cat conftest.err >&5 14311 fi 14312 rm -rf libconftest.dylib* 14313 rm -f conftest.* 14314 fi 14315fi 14316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14317$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14318 14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14320$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14321if ${lt_cv_ld_exported_symbols_list+:} false; then : 14322 $as_echo_n "(cached) " >&6 14323else 14324 lt_cv_ld_exported_symbols_list=no 14325 save_LDFLAGS=$LDFLAGS 14326 echo "_main" > conftest.sym 14327 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14329/* end confdefs.h. */ 14330 14331int 14332main () 14333{ 14334 14335 ; 14336 return 0; 14337} 14338_ACEOF 14339if ac_fn_c_try_link "$LINENO"; then : 14340 lt_cv_ld_exported_symbols_list=yes 14341else 14342 lt_cv_ld_exported_symbols_list=no 14343fi 14344rm -f core conftest.err conftest.$ac_objext \ 14345 conftest$ac_exeext conftest.$ac_ext 14346 LDFLAGS=$save_LDFLAGS 14347 14348fi 14349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14350$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14351 14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14353$as_echo_n "checking for -force_load linker flag... " >&6; } 14354if ${lt_cv_ld_force_load+:} false; then : 14355 $as_echo_n "(cached) " >&6 14356else 14357 lt_cv_ld_force_load=no 14358 cat > conftest.c << _LT_EOF 14359int forced_loaded() { return 2;} 14360_LT_EOF 14361 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14362 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14363 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 14364 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 14365 echo "$RANLIB libconftest.a" >&5 14366 $RANLIB libconftest.a 2>&5 14367 cat > conftest.c << _LT_EOF 14368int main() { return 0;} 14369_LT_EOF 14370 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14371 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14372 _lt_result=$? 14373 if test -s conftest.err && $GREP force_load conftest.err; then 14374 cat conftest.err >&5 14375 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14376 lt_cv_ld_force_load=yes 14377 else 14378 cat conftest.err >&5 14379 fi 14380 rm -f conftest.err libconftest.a conftest conftest.c 14381 rm -rf conftest.dSYM 14382 14383fi 14384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14385$as_echo "$lt_cv_ld_force_load" >&6; } 14386 case $host_os in 14387 rhapsody* | darwin1.[012]) 14388 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14389 darwin1.*) 14390 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14391 darwin*) # darwin 5.x on 14392 # if running on 10.5 or later, the deployment target defaults 14393 # to the OS version, if on x86, and 10.4, the deployment 14394 # target defaults to 10.4. Don't you love it? 14395 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14396 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14397 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14398 10.[012][,.]*) 14399 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14400 10.*) 14401 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14402 esac 14403 ;; 14404 esac 14405 if test yes = "$lt_cv_apple_cc_single_mod"; then 14406 _lt_dar_single_mod='$single_module' 14407 fi 14408 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14409 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14410 else 14411 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14412 fi 14413 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14414 _lt_dsymutil='~$DSYMUTIL $lib || :' 14415 else 14416 _lt_dsymutil= 14417 fi 14418 ;; 14419 esac 14420 14421# func_munge_path_list VARIABLE PATH 14422# ----------------------------------- 14423# VARIABLE is name of variable containing _space_ separated list of 14424# directories to be munged by the contents of PATH, which is string 14425# having a format: 14426# "DIR[:DIR]:" 14427# string "DIR[ DIR]" will be prepended to VARIABLE 14428# ":DIR[:DIR]" 14429# string "DIR[ DIR]" will be appended to VARIABLE 14430# "DIRP[:DIRP]::[DIRA:]DIRA" 14431# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14432# "DIRA[ DIRA]" will be appended to VARIABLE 14433# "DIR[:DIR]" 14434# VARIABLE will be replaced by "DIR[ DIR]" 14435func_munge_path_list () 14436{ 14437 case x$2 in 14438 x) 14439 ;; 14440 *:) 14441 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14442 ;; 14443 x:*) 14444 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14445 ;; 14446 *::*) 14447 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14448 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14449 ;; 14450 *) 14451 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14452 ;; 14453 esac 14454} 14455 14456for ac_header in dlfcn.h 14457do : 14458 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14459" 14460if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14461 cat >>confdefs.h <<_ACEOF 14462#define HAVE_DLFCN_H 1 14463_ACEOF 14464 14465fi 14466 14467done 14468 14469 14470 14471 14472 14473# Set options 14474 14475 14476 14477 enable_dlopen=no 14478 14479 14480 enable_win32_dll=no 14481 14482 14483 # Check whether --enable-shared was given. 14484if test "${enable_shared+set}" = set; then : 14485 enableval=$enable_shared; p=${PACKAGE-default} 14486 case $enableval in 14487 yes) enable_shared=yes ;; 14488 no) enable_shared=no ;; 14489 *) 14490 enable_shared=no 14491 # Look at the argument we got. We use all the common list separators. 14492 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14493 for pkg in $enableval; do 14494 IFS=$lt_save_ifs 14495 if test "X$pkg" = "X$p"; then 14496 enable_shared=yes 14497 fi 14498 done 14499 IFS=$lt_save_ifs 14500 ;; 14501 esac 14502else 14503 enable_shared=yes 14504fi 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 14516# Check whether --with-pic was given. 14517if test "${with_pic+set}" = set; then : 14518 withval=$with_pic; lt_p=${PACKAGE-default} 14519 case $withval in 14520 yes|no) pic_mode=$withval ;; 14521 *) 14522 pic_mode=default 14523 # Look at the argument we got. We use all the common list separators. 14524 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14525 for lt_pkg in $withval; do 14526 IFS=$lt_save_ifs 14527 if test "X$lt_pkg" = "X$lt_p"; then 14528 pic_mode=yes 14529 fi 14530 done 14531 IFS=$lt_save_ifs 14532 ;; 14533 esac 14534else 14535 pic_mode=default 14536fi 14537 14538 14539 14540 14541 14542 14543 14544 14545 # Check whether --enable-fast-install was given. 14546if test "${enable_fast_install+set}" = set; then : 14547 enableval=$enable_fast_install; p=${PACKAGE-default} 14548 case $enableval in 14549 yes) enable_fast_install=yes ;; 14550 no) enable_fast_install=no ;; 14551 *) 14552 enable_fast_install=no 14553 # Look at the argument we got. We use all the common list separators. 14554 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14555 for pkg in $enableval; do 14556 IFS=$lt_save_ifs 14557 if test "X$pkg" = "X$p"; then 14558 enable_fast_install=yes 14559 fi 14560 done 14561 IFS=$lt_save_ifs 14562 ;; 14563 esac 14564else 14565 enable_fast_install=yes 14566fi 14567 14568 14569 14570 14571 14572 14573 14574 14575 shared_archive_member_spec= 14576case $host,$enable_shared in 14577power*-*-aix[5-9]*,yes) 14578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 14579$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 14580 14581# Check whether --with-aix-soname was given. 14582if test "${with_aix_soname+set}" = set; then : 14583 withval=$with_aix_soname; case $withval in 14584 aix|svr4|both) 14585 ;; 14586 *) 14587 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 14588 ;; 14589 esac 14590 lt_cv_with_aix_soname=$with_aix_soname 14591else 14592 if ${lt_cv_with_aix_soname+:} false; then : 14593 $as_echo_n "(cached) " >&6 14594else 14595 lt_cv_with_aix_soname=aix 14596fi 14597 14598 with_aix_soname=$lt_cv_with_aix_soname 14599fi 14600 14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 14602$as_echo "$with_aix_soname" >&6; } 14603 if test aix != "$with_aix_soname"; then 14604 # For the AIX way of multilib, we name the shared archive member 14605 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 14606 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 14607 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 14608 # the AIX toolchain works better with OBJECT_MODE set (default 32). 14609 if test 64 = "${OBJECT_MODE-32}"; then 14610 shared_archive_member_spec=shr_64 14611 else 14612 shared_archive_member_spec=shr 14613 fi 14614 fi 14615 ;; 14616*) 14617 with_aix_soname=aix 14618 ;; 14619esac 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630# This can be used to rebuild libtool when needed 14631LIBTOOL_DEPS=$ltmain 14632 14633# Always use our own libtool. 14634LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665test -z "$LN_S" && LN_S="ln -s" 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680if test -n "${ZSH_VERSION+set}"; then 14681 setopt NO_GLOB_SUBST 14682fi 14683 14684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14685$as_echo_n "checking for objdir... " >&6; } 14686if ${lt_cv_objdir+:} false; then : 14687 $as_echo_n "(cached) " >&6 14688else 14689 rm -f .libs 2>/dev/null 14690mkdir .libs 2>/dev/null 14691if test -d .libs; then 14692 lt_cv_objdir=.libs 14693else 14694 # MS-DOS does not allow filenames that begin with a dot. 14695 lt_cv_objdir=_libs 14696fi 14697rmdir .libs 2>/dev/null 14698fi 14699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14700$as_echo "$lt_cv_objdir" >&6; } 14701objdir=$lt_cv_objdir 14702 14703 14704 14705 14706 14707cat >>confdefs.h <<_ACEOF 14708#define LT_OBJDIR "$lt_cv_objdir/" 14709_ACEOF 14710 14711 14712 14713 14714case $host_os in 14715aix3*) 14716 # AIX sometimes has problems with the GCC collect2 program. For some 14717 # reason, if we set the COLLECT_NAMES environment variable, the problems 14718 # vanish in a puff of smoke. 14719 if test set != "${COLLECT_NAMES+set}"; then 14720 COLLECT_NAMES= 14721 export COLLECT_NAMES 14722 fi 14723 ;; 14724esac 14725 14726# Global variables: 14727ofile=libtool 14728can_build_shared=yes 14729 14730# All known linkers require a '.a' archive for static linking (except MSVC, 14731# which needs '.lib'). 14732libext=a 14733 14734with_gnu_ld=$lt_cv_prog_gnu_ld 14735 14736old_CC=$CC 14737old_CFLAGS=$CFLAGS 14738 14739# Set sane defaults for various variables 14740test -z "$CC" && CC=cc 14741test -z "$LTCC" && LTCC=$CC 14742test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14743test -z "$LD" && LD=ld 14744test -z "$ac_objext" && ac_objext=o 14745 14746func_cc_basename $compiler 14747cc_basename=$func_cc_basename_result 14748 14749 14750# Only perform the check for file, if the check method requires it 14751test -z "$MAGIC_CMD" && MAGIC_CMD=file 14752case $deplibs_check_method in 14753file_magic*) 14754 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14756$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14757if ${lt_cv_path_MAGIC_CMD+:} false; then : 14758 $as_echo_n "(cached) " >&6 14759else 14760 case $MAGIC_CMD in 14761[\\/*] | ?:[\\/]*) 14762 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14763 ;; 14764*) 14765 lt_save_MAGIC_CMD=$MAGIC_CMD 14766 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14767 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14768 for ac_dir in $ac_dummy; do 14769 IFS=$lt_save_ifs 14770 test -z "$ac_dir" && ac_dir=. 14771 if test -f "$ac_dir/${ac_tool_prefix}file"; then 14772 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 14773 if test -n "$file_magic_test_file"; then 14774 case $deplibs_check_method in 14775 "file_magic "*) 14776 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14777 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14778 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14779 $EGREP "$file_magic_regex" > /dev/null; then 14780 : 14781 else 14782 cat <<_LT_EOF 1>&2 14783 14784*** Warning: the command libtool uses to detect shared libraries, 14785*** $file_magic_cmd, produces output that libtool cannot recognize. 14786*** The result is that libtool may fail to recognize shared libraries 14787*** as such. This will affect the creation of libtool libraries that 14788*** depend on shared libraries, but programs linked with such libtool 14789*** libraries will work regardless of this problem. Nevertheless, you 14790*** may want to report the problem to your system manager and/or to 14791*** bug-libtool@gnu.org 14792 14793_LT_EOF 14794 fi ;; 14795 esac 14796 fi 14797 break 14798 fi 14799 done 14800 IFS=$lt_save_ifs 14801 MAGIC_CMD=$lt_save_MAGIC_CMD 14802 ;; 14803esac 14804fi 14805 14806MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14807if test -n "$MAGIC_CMD"; then 14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14809$as_echo "$MAGIC_CMD" >&6; } 14810else 14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14812$as_echo "no" >&6; } 14813fi 14814 14815 14816 14817 14818 14819if test -z "$lt_cv_path_MAGIC_CMD"; then 14820 if test -n "$ac_tool_prefix"; then 14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14822$as_echo_n "checking for file... " >&6; } 14823if ${lt_cv_path_MAGIC_CMD+:} false; then : 14824 $as_echo_n "(cached) " >&6 14825else 14826 case $MAGIC_CMD in 14827[\\/*] | ?:[\\/]*) 14828 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14829 ;; 14830*) 14831 lt_save_MAGIC_CMD=$MAGIC_CMD 14832 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14833 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14834 for ac_dir in $ac_dummy; do 14835 IFS=$lt_save_ifs 14836 test -z "$ac_dir" && ac_dir=. 14837 if test -f "$ac_dir/file"; then 14838 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 14839 if test -n "$file_magic_test_file"; then 14840 case $deplibs_check_method in 14841 "file_magic "*) 14842 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14843 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14844 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14845 $EGREP "$file_magic_regex" > /dev/null; then 14846 : 14847 else 14848 cat <<_LT_EOF 1>&2 14849 14850*** Warning: the command libtool uses to detect shared libraries, 14851*** $file_magic_cmd, produces output that libtool cannot recognize. 14852*** The result is that libtool may fail to recognize shared libraries 14853*** as such. This will affect the creation of libtool libraries that 14854*** depend on shared libraries, but programs linked with such libtool 14855*** libraries will work regardless of this problem. Nevertheless, you 14856*** may want to report the problem to your system manager and/or to 14857*** bug-libtool@gnu.org 14858 14859_LT_EOF 14860 fi ;; 14861 esac 14862 fi 14863 break 14864 fi 14865 done 14866 IFS=$lt_save_ifs 14867 MAGIC_CMD=$lt_save_MAGIC_CMD 14868 ;; 14869esac 14870fi 14871 14872MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14873if test -n "$MAGIC_CMD"; then 14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14875$as_echo "$MAGIC_CMD" >&6; } 14876else 14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14878$as_echo "no" >&6; } 14879fi 14880 14881 14882 else 14883 MAGIC_CMD=: 14884 fi 14885fi 14886 14887 fi 14888 ;; 14889esac 14890 14891# Use C for the default configuration in the libtool script 14892 14893lt_save_CC=$CC 14894ac_ext=c 14895ac_cpp='$CPP $CPPFLAGS' 14896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14898ac_compiler_gnu=$ac_cv_c_compiler_gnu 14899 14900 14901# Source file extension for C test sources. 14902ac_ext=c 14903 14904# Object file extension for compiled C test sources. 14905objext=o 14906objext=$objext 14907 14908# Code to be used in simple compile tests 14909lt_simple_compile_test_code="int some_variable = 0;" 14910 14911# Code to be used in simple link tests 14912lt_simple_link_test_code='int main(){return(0);}' 14913 14914 14915 14916 14917 14918 14919 14920# If no C compiler was specified, use CC. 14921LTCC=${LTCC-"$CC"} 14922 14923# If no C compiler flags were specified, use CFLAGS. 14924LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14925 14926# Allow CC to be a program name with arguments. 14927compiler=$CC 14928 14929# Save the default compiler, since it gets overwritten when the other 14930# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14931compiler_DEFAULT=$CC 14932 14933# save warnings/boilerplate of simple test code 14934ac_outfile=conftest.$ac_objext 14935echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14936eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14937_lt_compiler_boilerplate=`cat conftest.err` 14938$RM conftest* 14939 14940ac_outfile=conftest.$ac_objext 14941echo "$lt_simple_link_test_code" >conftest.$ac_ext 14942eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14943_lt_linker_boilerplate=`cat conftest.err` 14944$RM -r conftest* 14945 14946 14947## CAVEAT EMPTOR: 14948## There is no encapsulation within the following macros, do not change 14949## the running order or otherwise move them around unless you know exactly 14950## what you are doing... 14951if test -n "$compiler"; then 14952 14953lt_prog_compiler_no_builtin_flag= 14954 14955if test yes = "$GCC"; then 14956 case $cc_basename in 14957 nvcc*) 14958 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14959 *) 14960 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14961 esac 14962 14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14964$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14965if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14966 $as_echo_n "(cached) " >&6 14967else 14968 lt_cv_prog_compiler_rtti_exceptions=no 14969 ac_outfile=conftest.$ac_objext 14970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14971 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 14972 # Insert the option either (1) after the last *FLAGS variable, or 14973 # (2) before a word containing "conftest.", or (3) at the end. 14974 # Note that $ac_compile itself does not contain backslashes and begins 14975 # with a dollar sign (not a hyphen), so the echo should work correctly. 14976 # The option is referenced via a variable to avoid confusing sed. 14977 lt_compile=`echo "$ac_compile" | $SED \ 14978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14980 -e 's:$: $lt_compiler_flag:'` 14981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14982 (eval "$lt_compile" 2>conftest.err) 14983 ac_status=$? 14984 cat conftest.err >&5 14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14986 if (exit $ac_status) && test -s "$ac_outfile"; then 14987 # The compiler can only warn and ignore the option if not recognized 14988 # So say no if there are warnings other than the usual output. 14989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14991 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14992 lt_cv_prog_compiler_rtti_exceptions=yes 14993 fi 14994 fi 14995 $RM conftest* 14996 14997fi 14998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14999$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15000 15001if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15002 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15003else 15004 : 15005fi 15006 15007fi 15008 15009 15010 15011 15012 15013 15014 lt_prog_compiler_wl= 15015lt_prog_compiler_pic= 15016lt_prog_compiler_static= 15017 15018 15019 if test yes = "$GCC"; then 15020 lt_prog_compiler_wl='-Wl,' 15021 lt_prog_compiler_static='-static' 15022 15023 case $host_os in 15024 aix*) 15025 # All AIX code is PIC. 15026 if test ia64 = "$host_cpu"; then 15027 # AIX 5 now supports IA64 processor 15028 lt_prog_compiler_static='-Bstatic' 15029 fi 15030 lt_prog_compiler_pic='-fPIC' 15031 ;; 15032 15033 amigaos*) 15034 case $host_cpu in 15035 powerpc) 15036 # see comment about AmigaOS4 .so support 15037 lt_prog_compiler_pic='-fPIC' 15038 ;; 15039 m68k) 15040 # FIXME: we need at least 68020 code to build shared libraries, but 15041 # adding the '-m68020' flag to GCC prevents building anything better, 15042 # like '-m68040'. 15043 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15044 ;; 15045 esac 15046 ;; 15047 15048 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15049 # PIC is the default for these OSes. 15050 ;; 15051 15052 mingw* | cygwin* | pw32* | os2* | cegcc*) 15053 # This hack is so that the source file can tell whether it is being 15054 # built for inclusion in a dll (and should export symbols for example). 15055 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15056 # (--disable-auto-import) libraries 15057 lt_prog_compiler_pic='-DDLL_EXPORT' 15058 case $host_os in 15059 os2*) 15060 lt_prog_compiler_static='$wl-static' 15061 ;; 15062 esac 15063 ;; 15064 15065 darwin* | rhapsody*) 15066 # PIC is the default on this platform 15067 # Common symbols not allowed in MH_DYLIB files 15068 lt_prog_compiler_pic='-fno-common' 15069 ;; 15070 15071 haiku*) 15072 # PIC is the default for Haiku. 15073 # The "-static" flag exists, but is broken. 15074 lt_prog_compiler_static= 15075 ;; 15076 15077 hpux*) 15078 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15079 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15080 # sets the default TLS model and affects inlining. 15081 case $host_cpu in 15082 hppa*64*) 15083 # +Z the default 15084 ;; 15085 *) 15086 lt_prog_compiler_pic='-fPIC' 15087 ;; 15088 esac 15089 ;; 15090 15091 interix[3-9]*) 15092 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15093 # Instead, we relocate shared libraries at runtime. 15094 ;; 15095 15096 msdosdjgpp*) 15097 # Just because we use GCC doesn't mean we suddenly get shared libraries 15098 # on systems that don't support them. 15099 lt_prog_compiler_can_build_shared=no 15100 enable_shared=no 15101 ;; 15102 15103 *nto* | *qnx*) 15104 # QNX uses GNU C++, but need to define -shared option too, otherwise 15105 # it will coredump. 15106 lt_prog_compiler_pic='-fPIC -shared' 15107 ;; 15108 15109 sysv4*MP*) 15110 if test -d /usr/nec; then 15111 lt_prog_compiler_pic=-Kconform_pic 15112 fi 15113 ;; 15114 15115 *) 15116 lt_prog_compiler_pic='-fPIC' 15117 ;; 15118 esac 15119 15120 case $cc_basename in 15121 nvcc*) # Cuda Compiler Driver 2.2 15122 lt_prog_compiler_wl='-Xlinker ' 15123 if test -n "$lt_prog_compiler_pic"; then 15124 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15125 fi 15126 ;; 15127 esac 15128 else 15129 # PORTME Check for flag to pass linker flags through the system compiler. 15130 case $host_os in 15131 aix*) 15132 lt_prog_compiler_wl='-Wl,' 15133 if test ia64 = "$host_cpu"; then 15134 # AIX 5 now supports IA64 processor 15135 lt_prog_compiler_static='-Bstatic' 15136 else 15137 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15138 fi 15139 ;; 15140 15141 darwin* | rhapsody*) 15142 # PIC is the default on this platform 15143 # Common symbols not allowed in MH_DYLIB files 15144 lt_prog_compiler_pic='-fno-common' 15145 case $cc_basename in 15146 nagfor*) 15147 # NAG Fortran compiler 15148 lt_prog_compiler_wl='-Wl,-Wl,,' 15149 lt_prog_compiler_pic='-PIC' 15150 lt_prog_compiler_static='-Bstatic' 15151 ;; 15152 esac 15153 ;; 15154 15155 mingw* | cygwin* | pw32* | os2* | cegcc*) 15156 # This hack is so that the source file can tell whether it is being 15157 # built for inclusion in a dll (and should export symbols for example). 15158 lt_prog_compiler_pic='-DDLL_EXPORT' 15159 case $host_os in 15160 os2*) 15161 lt_prog_compiler_static='$wl-static' 15162 ;; 15163 esac 15164 ;; 15165 15166 hpux9* | hpux10* | hpux11*) 15167 lt_prog_compiler_wl='-Wl,' 15168 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15169 # not for PA HP-UX. 15170 case $host_cpu in 15171 hppa*64*|ia64*) 15172 # +Z the default 15173 ;; 15174 *) 15175 lt_prog_compiler_pic='+Z' 15176 ;; 15177 esac 15178 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15179 lt_prog_compiler_static='$wl-a ${wl}archive' 15180 ;; 15181 15182 irix5* | irix6* | nonstopux*) 15183 lt_prog_compiler_wl='-Wl,' 15184 # PIC (with -KPIC) is the default. 15185 lt_prog_compiler_static='-non_shared' 15186 ;; 15187 15188 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15189 case $cc_basename in 15190 # old Intel for x86_64, which still supported -KPIC. 15191 ecc*) 15192 lt_prog_compiler_wl='-Wl,' 15193 lt_prog_compiler_pic='-KPIC' 15194 lt_prog_compiler_static='-static' 15195 ;; 15196 # icc used to be incompatible with GCC. 15197 # ICC 10 doesn't accept -KPIC any more. 15198 icc* | ifort*) 15199 lt_prog_compiler_wl='-Wl,' 15200 lt_prog_compiler_pic='-fPIC' 15201 lt_prog_compiler_static='-static' 15202 ;; 15203 # Lahey Fortran 8.1. 15204 lf95*) 15205 lt_prog_compiler_wl='-Wl,' 15206 lt_prog_compiler_pic='--shared' 15207 lt_prog_compiler_static='--static' 15208 ;; 15209 nagfor*) 15210 # NAG Fortran compiler 15211 lt_prog_compiler_wl='-Wl,-Wl,,' 15212 lt_prog_compiler_pic='-PIC' 15213 lt_prog_compiler_static='-Bstatic' 15214 ;; 15215 tcc*) 15216 # Fabrice Bellard et al's Tiny C Compiler 15217 lt_prog_compiler_wl='-Wl,' 15218 lt_prog_compiler_pic='-fPIC' 15219 lt_prog_compiler_static='-static' 15220 ;; 15221 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15222 # Portland Group compilers (*not* the Pentium gcc compiler, 15223 # which looks to be a dead project) 15224 lt_prog_compiler_wl='-Wl,' 15225 lt_prog_compiler_pic='-fpic' 15226 lt_prog_compiler_static='-Bstatic' 15227 ;; 15228 ccc*) 15229 lt_prog_compiler_wl='-Wl,' 15230 # All Alpha code is PIC. 15231 lt_prog_compiler_static='-non_shared' 15232 ;; 15233 xl* | bgxl* | bgf* | mpixl*) 15234 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15235 lt_prog_compiler_wl='-Wl,' 15236 lt_prog_compiler_pic='-qpic' 15237 lt_prog_compiler_static='-qstaticlink' 15238 ;; 15239 *) 15240 case `$CC -V 2>&1 | sed 5q` in 15241 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15242 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15243 lt_prog_compiler_pic='-KPIC' 15244 lt_prog_compiler_static='-Bstatic' 15245 lt_prog_compiler_wl='' 15246 ;; 15247 *Sun\ F* | *Sun*Fortran*) 15248 lt_prog_compiler_pic='-KPIC' 15249 lt_prog_compiler_static='-Bstatic' 15250 lt_prog_compiler_wl='-Qoption ld ' 15251 ;; 15252 *Sun\ C*) 15253 # Sun C 5.9 15254 lt_prog_compiler_pic='-KPIC' 15255 lt_prog_compiler_static='-Bstatic' 15256 lt_prog_compiler_wl='-Wl,' 15257 ;; 15258 *Intel*\ [CF]*Compiler*) 15259 lt_prog_compiler_wl='-Wl,' 15260 lt_prog_compiler_pic='-fPIC' 15261 lt_prog_compiler_static='-static' 15262 ;; 15263 *Portland\ Group*) 15264 lt_prog_compiler_wl='-Wl,' 15265 lt_prog_compiler_pic='-fpic' 15266 lt_prog_compiler_static='-Bstatic' 15267 ;; 15268 esac 15269 ;; 15270 esac 15271 ;; 15272 15273 newsos6) 15274 lt_prog_compiler_pic='-KPIC' 15275 lt_prog_compiler_static='-Bstatic' 15276 ;; 15277 15278 *nto* | *qnx*) 15279 # QNX uses GNU C++, but need to define -shared option too, otherwise 15280 # it will coredump. 15281 lt_prog_compiler_pic='-fPIC -shared' 15282 ;; 15283 15284 osf3* | osf4* | osf5*) 15285 lt_prog_compiler_wl='-Wl,' 15286 # All OSF/1 code is PIC. 15287 lt_prog_compiler_static='-non_shared' 15288 ;; 15289 15290 rdos*) 15291 lt_prog_compiler_static='-non_shared' 15292 ;; 15293 15294 solaris*) 15295 lt_prog_compiler_pic='-KPIC' 15296 lt_prog_compiler_static='-Bstatic' 15297 case $cc_basename in 15298 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15299 lt_prog_compiler_wl='-Qoption ld ';; 15300 *) 15301 lt_prog_compiler_wl='-Wl,';; 15302 esac 15303 ;; 15304 15305 sunos4*) 15306 lt_prog_compiler_wl='-Qoption ld ' 15307 lt_prog_compiler_pic='-PIC' 15308 lt_prog_compiler_static='-Bstatic' 15309 ;; 15310 15311 sysv4 | sysv4.2uw2* | sysv4.3*) 15312 lt_prog_compiler_wl='-Wl,' 15313 lt_prog_compiler_pic='-KPIC' 15314 lt_prog_compiler_static='-Bstatic' 15315 ;; 15316 15317 sysv4*MP*) 15318 if test -d /usr/nec; then 15319 lt_prog_compiler_pic='-Kconform_pic' 15320 lt_prog_compiler_static='-Bstatic' 15321 fi 15322 ;; 15323 15324 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15325 lt_prog_compiler_wl='-Wl,' 15326 lt_prog_compiler_pic='-KPIC' 15327 lt_prog_compiler_static='-Bstatic' 15328 ;; 15329 15330 unicos*) 15331 lt_prog_compiler_wl='-Wl,' 15332 lt_prog_compiler_can_build_shared=no 15333 ;; 15334 15335 uts4*) 15336 lt_prog_compiler_pic='-pic' 15337 lt_prog_compiler_static='-Bstatic' 15338 ;; 15339 15340 *) 15341 lt_prog_compiler_can_build_shared=no 15342 ;; 15343 esac 15344 fi 15345 15346case $host_os in 15347 # For platforms that do not support PIC, -DPIC is meaningless: 15348 *djgpp*) 15349 lt_prog_compiler_pic= 15350 ;; 15351 *) 15352 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15353 ;; 15354esac 15355 15356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15357$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15358if ${lt_cv_prog_compiler_pic+:} false; then : 15359 $as_echo_n "(cached) " >&6 15360else 15361 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15362fi 15363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15364$as_echo "$lt_cv_prog_compiler_pic" >&6; } 15365lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15366 15367# 15368# Check to make sure the PIC flag actually works. 15369# 15370if test -n "$lt_prog_compiler_pic"; then 15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15372$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15373if ${lt_cv_prog_compiler_pic_works+:} false; then : 15374 $as_echo_n "(cached) " >&6 15375else 15376 lt_cv_prog_compiler_pic_works=no 15377 ac_outfile=conftest.$ac_objext 15378 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15379 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15380 # Insert the option either (1) after the last *FLAGS variable, or 15381 # (2) before a word containing "conftest.", or (3) at the end. 15382 # Note that $ac_compile itself does not contain backslashes and begins 15383 # with a dollar sign (not a hyphen), so the echo should work correctly. 15384 # The option is referenced via a variable to avoid confusing sed. 15385 lt_compile=`echo "$ac_compile" | $SED \ 15386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15388 -e 's:$: $lt_compiler_flag:'` 15389 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15390 (eval "$lt_compile" 2>conftest.err) 15391 ac_status=$? 15392 cat conftest.err >&5 15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15394 if (exit $ac_status) && test -s "$ac_outfile"; then 15395 # The compiler can only warn and ignore the option if not recognized 15396 # So say no if there are warnings other than the usual output. 15397 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15399 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15400 lt_cv_prog_compiler_pic_works=yes 15401 fi 15402 fi 15403 $RM conftest* 15404 15405fi 15406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15407$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15408 15409if test yes = "$lt_cv_prog_compiler_pic_works"; then 15410 case $lt_prog_compiler_pic in 15411 "" | " "*) ;; 15412 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15413 esac 15414else 15415 lt_prog_compiler_pic= 15416 lt_prog_compiler_can_build_shared=no 15417fi 15418 15419fi 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431# 15432# Check to make sure the static flag actually works. 15433# 15434wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15436$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15437if ${lt_cv_prog_compiler_static_works+:} false; then : 15438 $as_echo_n "(cached) " >&6 15439else 15440 lt_cv_prog_compiler_static_works=no 15441 save_LDFLAGS=$LDFLAGS 15442 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15443 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15444 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15445 # The linker can only warn and ignore the option if not recognized 15446 # So say no if there are warnings 15447 if test -s conftest.err; then 15448 # Append any errors to the config.log. 15449 cat conftest.err 1>&5 15450 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15452 if diff conftest.exp conftest.er2 >/dev/null; then 15453 lt_cv_prog_compiler_static_works=yes 15454 fi 15455 else 15456 lt_cv_prog_compiler_static_works=yes 15457 fi 15458 fi 15459 $RM -r conftest* 15460 LDFLAGS=$save_LDFLAGS 15461 15462fi 15463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15464$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15465 15466if test yes = "$lt_cv_prog_compiler_static_works"; then 15467 : 15468else 15469 lt_prog_compiler_static= 15470fi 15471 15472 15473 15474 15475 15476 15477 15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15479$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15480if ${lt_cv_prog_compiler_c_o+:} false; then : 15481 $as_echo_n "(cached) " >&6 15482else 15483 lt_cv_prog_compiler_c_o=no 15484 $RM -r conftest 2>/dev/null 15485 mkdir conftest 15486 cd conftest 15487 mkdir out 15488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15489 15490 lt_compiler_flag="-o out/conftest2.$ac_objext" 15491 # Insert the option either (1) after the last *FLAGS variable, or 15492 # (2) before a word containing "conftest.", or (3) at the end. 15493 # Note that $ac_compile itself does not contain backslashes and begins 15494 # with a dollar sign (not a hyphen), so the echo should work correctly. 15495 lt_compile=`echo "$ac_compile" | $SED \ 15496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15498 -e 's:$: $lt_compiler_flag:'` 15499 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15500 (eval "$lt_compile" 2>out/conftest.err) 15501 ac_status=$? 15502 cat out/conftest.err >&5 15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15504 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15505 then 15506 # The compiler can only warn and ignore the option if not recognized 15507 # So say no if there are warnings 15508 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15509 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15510 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15511 lt_cv_prog_compiler_c_o=yes 15512 fi 15513 fi 15514 chmod u+w . 2>&5 15515 $RM conftest* 15516 # SGI C++ compiler will create directory out/ii_files/ for 15517 # template instantiation 15518 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15519 $RM out/* && rmdir out 15520 cd .. 15521 $RM -r conftest 15522 $RM conftest* 15523 15524fi 15525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15526$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15527 15528 15529 15530 15531 15532 15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15534$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15535if ${lt_cv_prog_compiler_c_o+:} false; then : 15536 $as_echo_n "(cached) " >&6 15537else 15538 lt_cv_prog_compiler_c_o=no 15539 $RM -r conftest 2>/dev/null 15540 mkdir conftest 15541 cd conftest 15542 mkdir out 15543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15544 15545 lt_compiler_flag="-o out/conftest2.$ac_objext" 15546 # Insert the option either (1) after the last *FLAGS variable, or 15547 # (2) before a word containing "conftest.", or (3) at the end. 15548 # Note that $ac_compile itself does not contain backslashes and begins 15549 # with a dollar sign (not a hyphen), so the echo should work correctly. 15550 lt_compile=`echo "$ac_compile" | $SED \ 15551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15553 -e 's:$: $lt_compiler_flag:'` 15554 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15555 (eval "$lt_compile" 2>out/conftest.err) 15556 ac_status=$? 15557 cat out/conftest.err >&5 15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15559 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15560 then 15561 # The compiler can only warn and ignore the option if not recognized 15562 # So say no if there are warnings 15563 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15564 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15565 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15566 lt_cv_prog_compiler_c_o=yes 15567 fi 15568 fi 15569 chmod u+w . 2>&5 15570 $RM conftest* 15571 # SGI C++ compiler will create directory out/ii_files/ for 15572 # template instantiation 15573 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15574 $RM out/* && rmdir out 15575 cd .. 15576 $RM -r conftest 15577 $RM conftest* 15578 15579fi 15580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15581$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15582 15583 15584 15585 15586hard_links=nottested 15587if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 15588 # do not overwrite the value of need_locks provided by the user 15589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15590$as_echo_n "checking if we can lock with hard links... " >&6; } 15591 hard_links=yes 15592 $RM conftest* 15593 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15594 touch conftest.a 15595 ln conftest.a conftest.b 2>&5 || hard_links=no 15596 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15598$as_echo "$hard_links" >&6; } 15599 if test no = "$hard_links"; then 15600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15601$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15602 need_locks=warn 15603 fi 15604else 15605 need_locks=no 15606fi 15607 15608 15609 15610 15611 15612 15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15614$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15615 15616 runpath_var= 15617 allow_undefined_flag= 15618 always_export_symbols=no 15619 archive_cmds= 15620 archive_expsym_cmds= 15621 compiler_needs_object=no 15622 enable_shared_with_static_runtimes=no 15623 export_dynamic_flag_spec= 15624 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15625 hardcode_automatic=no 15626 hardcode_direct=no 15627 hardcode_direct_absolute=no 15628 hardcode_libdir_flag_spec= 15629 hardcode_libdir_separator= 15630 hardcode_minus_L=no 15631 hardcode_shlibpath_var=unsupported 15632 inherit_rpath=no 15633 link_all_deplibs=unknown 15634 module_cmds= 15635 module_expsym_cmds= 15636 old_archive_from_new_cmds= 15637 old_archive_from_expsyms_cmds= 15638 thread_safe_flag_spec= 15639 whole_archive_flag_spec= 15640 # include_expsyms should be a list of space-separated symbols to be *always* 15641 # included in the symbol list 15642 include_expsyms= 15643 # exclude_expsyms can be an extended regexp of symbols to exclude 15644 # it will be wrapped by ' (' and ')$', so one must not match beginning or 15645 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 15646 # as well as any symbol that contains 'd'. 15647 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15648 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15649 # platforms (ab)use it in PIC code, but their linkers get confused if 15650 # the symbol is explicitly referenced. Since portable code cannot 15651 # rely on this symbol name, it's probably fine to never include it in 15652 # preloaded symbol tables. 15653 # Exclude shared library initialization/finalization symbols. 15654 extract_expsyms_cmds= 15655 15656 case $host_os in 15657 cygwin* | mingw* | pw32* | cegcc*) 15658 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15659 # When not using gcc, we currently assume that we are using 15660 # Microsoft Visual C++. 15661 if test yes != "$GCC"; then 15662 with_gnu_ld=no 15663 fi 15664 ;; 15665 interix*) 15666 # we just hope/assume this is gcc and not c89 (= MSVC++) 15667 with_gnu_ld=yes 15668 ;; 15669 openbsd* | bitrig*) 15670 with_gnu_ld=no 15671 ;; 15672 esac 15673 15674 ld_shlibs=yes 15675 15676 # On some targets, GNU ld is compatible enough with the native linker 15677 # that we're better off using the native interface for both. 15678 lt_use_gnu_ld_interface=no 15679 if test yes = "$with_gnu_ld"; then 15680 case $host_os in 15681 aix*) 15682 # The AIX port of GNU ld has always aspired to compatibility 15683 # with the native linker. However, as the warning in the GNU ld 15684 # block says, versions before 2.19.5* couldn't really create working 15685 # shared libraries, regardless of the interface used. 15686 case `$LD -v 2>&1` in 15687 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15688 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15689 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15690 *) 15691 lt_use_gnu_ld_interface=yes 15692 ;; 15693 esac 15694 ;; 15695 *) 15696 lt_use_gnu_ld_interface=yes 15697 ;; 15698 esac 15699 fi 15700 15701 if test yes = "$lt_use_gnu_ld_interface"; then 15702 # If archive_cmds runs LD, not CC, wlarc should be empty 15703 wlarc='$wl' 15704 15705 # Set some defaults for GNU ld with shared library support. These 15706 # are reset later if shared libraries are not supported. Putting them 15707 # here allows them to be overridden if necessary. 15708 runpath_var=LD_RUN_PATH 15709 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15710 export_dynamic_flag_spec='$wl--export-dynamic' 15711 # ancient GNU ld didn't support --whole-archive et. al. 15712 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15713 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15714 else 15715 whole_archive_flag_spec= 15716 fi 15717 supports_anon_versioning=no 15718 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 15719 *GNU\ gold*) supports_anon_versioning=yes ;; 15720 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15721 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15722 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15723 *\ 2.11.*) ;; # other 2.11 versions 15724 *) supports_anon_versioning=yes ;; 15725 esac 15726 15727 # See if GNU ld supports shared libraries. 15728 case $host_os in 15729 aix[3-9]*) 15730 # On AIX/PPC, the GNU linker is very broken 15731 if test ia64 != "$host_cpu"; then 15732 ld_shlibs=no 15733 cat <<_LT_EOF 1>&2 15734 15735*** Warning: the GNU linker, at least up to release 2.19, is reported 15736*** to be unable to reliably create shared libraries on AIX. 15737*** Therefore, libtool is disabling shared libraries support. If you 15738*** really care for shared libraries, you may want to install binutils 15739*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15740*** You will then need to restart the configuration process. 15741 15742_LT_EOF 15743 fi 15744 ;; 15745 15746 amigaos*) 15747 case $host_cpu in 15748 powerpc) 15749 # see comment about AmigaOS4 .so support 15750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15751 archive_expsym_cmds='' 15752 ;; 15753 m68k) 15754 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)' 15755 hardcode_libdir_flag_spec='-L$libdir' 15756 hardcode_minus_L=yes 15757 ;; 15758 esac 15759 ;; 15760 15761 beos*) 15762 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15763 allow_undefined_flag=unsupported 15764 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15765 # support --undefined. This deserves some investigation. FIXME 15766 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15767 else 15768 ld_shlibs=no 15769 fi 15770 ;; 15771 15772 cygwin* | mingw* | pw32* | cegcc*) 15773 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15774 # as there is no search path for DLLs. 15775 hardcode_libdir_flag_spec='-L$libdir' 15776 export_dynamic_flag_spec='$wl--export-all-symbols' 15777 allow_undefined_flag=unsupported 15778 always_export_symbols=no 15779 enable_shared_with_static_runtimes=yes 15780 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' 15781 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15782 15783 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15785 # If the export-symbols file already is a .def file, use it as 15786 # is; otherwise, prepend EXPORTS... 15787 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15788 cp $export_symbols $output_objdir/$soname.def; 15789 else 15790 echo EXPORTS > $output_objdir/$soname.def; 15791 cat $export_symbols >> $output_objdir/$soname.def; 15792 fi~ 15793 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15794 else 15795 ld_shlibs=no 15796 fi 15797 ;; 15798 15799 haiku*) 15800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15801 link_all_deplibs=yes 15802 ;; 15803 15804 os2*) 15805 hardcode_libdir_flag_spec='-L$libdir' 15806 hardcode_minus_L=yes 15807 allow_undefined_flag=unsupported 15808 shrext_cmds=.dll 15809 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15810 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15811 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15812 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15813 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15814 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15815 emximp -o $lib $output_objdir/$libname.def' 15816 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15817 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15818 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15819 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15820 prefix_cmds="$SED"~ 15821 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15822 prefix_cmds="$prefix_cmds -e 1d"; 15823 fi~ 15824 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15825 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15826 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15827 emximp -o $lib $output_objdir/$libname.def' 15828 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15829 enable_shared_with_static_runtimes=yes 15830 file_list_spec='@' 15831 ;; 15832 15833 interix[3-9]*) 15834 hardcode_direct=no 15835 hardcode_shlibpath_var=no 15836 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15837 export_dynamic_flag_spec='$wl-E' 15838 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15839 # Instead, shared libraries are loaded at an image base (0x10000000 by 15840 # default) and relocated if they conflict, which is a slow very memory 15841 # consuming and fragmenting process. To avoid this, we pick a random, 15842 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15843 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15844 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15845 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' 15846 ;; 15847 15848 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15849 tmp_diet=no 15850 if test linux-dietlibc = "$host_os"; then 15851 case $cc_basename in 15852 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15853 esac 15854 fi 15855 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15856 && test no = "$tmp_diet" 15857 then 15858 tmp_addflag=' $pic_flag' 15859 tmp_sharedflag='-shared' 15860 case $cc_basename,$host_cpu in 15861 pgcc*) # Portland Group C compiler 15862 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' 15863 tmp_addflag=' $pic_flag' 15864 ;; 15865 pgf77* | pgf90* | pgf95* | pgfortran*) 15866 # Portland Group f77 and f90 compilers 15867 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' 15868 tmp_addflag=' $pic_flag -Mnomain' ;; 15869 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15870 tmp_addflag=' -i_dynamic' ;; 15871 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15872 tmp_addflag=' -i_dynamic -nofor_main' ;; 15873 ifc* | ifort*) # Intel Fortran compiler 15874 tmp_addflag=' -nofor_main' ;; 15875 lf95*) # Lahey Fortran 8.1 15876 whole_archive_flag_spec= 15877 tmp_sharedflag='--shared' ;; 15878 nagfor*) # NAGFOR 5.3 15879 tmp_sharedflag='-Wl,-shared' ;; 15880 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15881 tmp_sharedflag='-qmkshrobj' 15882 tmp_addflag= ;; 15883 nvcc*) # Cuda Compiler Driver 2.2 15884 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' 15885 compiler_needs_object=yes 15886 ;; 15887 esac 15888 case `$CC -V 2>&1 | sed 5q` in 15889 *Sun\ C*) # Sun C 5.9 15890 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' 15891 compiler_needs_object=yes 15892 tmp_sharedflag='-G' ;; 15893 *Sun\ F*) # Sun Fortran 8.3 15894 tmp_sharedflag='-G' ;; 15895 esac 15896 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15897 15898 if test yes = "$supports_anon_versioning"; then 15899 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15900 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15901 echo "local: *; };" >> $output_objdir/$libname.ver~ 15902 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15903 fi 15904 15905 case $cc_basename in 15906 tcc*) 15907 export_dynamic_flag_spec='-rdynamic' 15908 ;; 15909 xlf* | bgf* | bgxlf* | mpixlf*) 15910 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15911 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15912 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15913 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15914 if test yes = "$supports_anon_versioning"; then 15915 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15916 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15917 echo "local: *; };" >> $output_objdir/$libname.ver~ 15918 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15919 fi 15920 ;; 15921 esac 15922 else 15923 ld_shlibs=no 15924 fi 15925 ;; 15926 15927 netbsd*) 15928 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15929 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15930 wlarc= 15931 else 15932 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15933 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15934 fi 15935 ;; 15936 15937 solaris*) 15938 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15939 ld_shlibs=no 15940 cat <<_LT_EOF 1>&2 15941 15942*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15943*** create shared libraries on Solaris systems. Therefore, libtool 15944*** is disabling shared libraries support. We urge you to upgrade GNU 15945*** binutils to release 2.9.1 or newer. Another option is to modify 15946*** your PATH or compiler configuration so that the native linker is 15947*** used, and then restart. 15948 15949_LT_EOF 15950 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15951 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15952 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15953 else 15954 ld_shlibs=no 15955 fi 15956 ;; 15957 15958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15959 case `$LD -v 2>&1` in 15960 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15961 ld_shlibs=no 15962 cat <<_LT_EOF 1>&2 15963 15964*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 15965*** reliably create shared libraries on SCO systems. Therefore, libtool 15966*** is disabling shared libraries support. We urge you to upgrade GNU 15967*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15968*** your PATH or compiler configuration so that the native linker is 15969*** used, and then restart. 15970 15971_LT_EOF 15972 ;; 15973 *) 15974 # For security reasons, it is highly recommended that you always 15975 # use absolute paths for naming shared libraries, and exclude the 15976 # DT_RUNPATH tag from executables and libraries. But doing so 15977 # requires that you compile everything twice, which is a pain. 15978 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15979 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15981 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15982 else 15983 ld_shlibs=no 15984 fi 15985 ;; 15986 esac 15987 ;; 15988 15989 sunos4*) 15990 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15991 wlarc= 15992 hardcode_direct=yes 15993 hardcode_shlibpath_var=no 15994 ;; 15995 15996 *) 15997 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15998 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15999 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16000 else 16001 ld_shlibs=no 16002 fi 16003 ;; 16004 esac 16005 16006 if test no = "$ld_shlibs"; then 16007 runpath_var= 16008 hardcode_libdir_flag_spec= 16009 export_dynamic_flag_spec= 16010 whole_archive_flag_spec= 16011 fi 16012 else 16013 # PORTME fill in a description of your system's linker (not GNU ld) 16014 case $host_os in 16015 aix3*) 16016 allow_undefined_flag=unsupported 16017 always_export_symbols=yes 16018 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' 16019 # Note: this linker hardcodes the directories in LIBPATH if there 16020 # are no directories specified by -L. 16021 hardcode_minus_L=yes 16022 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16023 # Neither direct hardcoding nor static linking is supported with a 16024 # broken collect2. 16025 hardcode_direct=unsupported 16026 fi 16027 ;; 16028 16029 aix[4-9]*) 16030 if test ia64 = "$host_cpu"; then 16031 # On IA64, the linker does run time linking by default, so we don't 16032 # have to do anything special. 16033 aix_use_runtimelinking=no 16034 exp_sym_flag='-Bexport' 16035 no_entry_flag= 16036 else 16037 # If we're using GNU nm, then we don't want the "-C" option. 16038 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16039 # Without the "-l" option, or with the "-B" option, AIX nm treats 16040 # weak defined symbols like other global defined symbols, whereas 16041 # GNU nm marks them as "W". 16042 # While the 'weak' keyword is ignored in the Export File, we need 16043 # it in the Import File for the 'aix-soname' feature, so we have 16044 # to replace the "-B" option with "-P" for AIX nm. 16045 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16046 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 16047 else 16048 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 16049 fi 16050 aix_use_runtimelinking=no 16051 16052 # Test if we are trying to use run time linking or normal 16053 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16054 # have runtime linking enabled, and use it for executables. 16055 # For shared libraries, we enable/disable runtime linking 16056 # depending on the kind of the shared library created - 16057 # when "with_aix_soname,aix_use_runtimelinking" is: 16058 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16059 # "aix,yes" lib.so shared, rtl:yes, for executables 16060 # lib.a static archive 16061 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16062 # lib.a(lib.so.V) shared, rtl:no, for executables 16063 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16064 # lib.a(lib.so.V) shared, rtl:no 16065 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16066 # lib.a static archive 16067 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16068 for ld_flag in $LDFLAGS; do 16069 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16070 aix_use_runtimelinking=yes 16071 break 16072 fi 16073 done 16074 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16075 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16076 # so we don't have lib.a shared libs to link our executables. 16077 # We have to force runtime linking in this case. 16078 aix_use_runtimelinking=yes 16079 LDFLAGS="$LDFLAGS -Wl,-brtl" 16080 fi 16081 ;; 16082 esac 16083 16084 exp_sym_flag='-bexport' 16085 no_entry_flag='-bnoentry' 16086 fi 16087 16088 # When large executables or shared objects are built, AIX ld can 16089 # have problems creating the table of contents. If linking a library 16090 # or program results in "error TOC overflow" add -mminimal-toc to 16091 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16092 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16093 16094 archive_cmds='' 16095 hardcode_direct=yes 16096 hardcode_direct_absolute=yes 16097 hardcode_libdir_separator=':' 16098 link_all_deplibs=yes 16099 file_list_spec='$wl-f,' 16100 case $with_aix_soname,$aix_use_runtimelinking in 16101 aix,*) ;; # traditional, no import file 16102 svr4,* | *,yes) # use import file 16103 # The Import File defines what to hardcode. 16104 hardcode_direct=no 16105 hardcode_direct_absolute=no 16106 ;; 16107 esac 16108 16109 if test yes = "$GCC"; then 16110 case $host_os in aix4.[012]|aix4.[012].*) 16111 # We only want to do this on AIX 4.2 and lower, the check 16112 # below for broken collect2 doesn't work under 4.3+ 16113 collect2name=`$CC -print-prog-name=collect2` 16114 if test -f "$collect2name" && 16115 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16116 then 16117 # We have reworked collect2 16118 : 16119 else 16120 # We have old collect2 16121 hardcode_direct=unsupported 16122 # It fails to find uninstalled libraries when the uninstalled 16123 # path is not listed in the libpath. Setting hardcode_minus_L 16124 # to unsupported forces relinking 16125 hardcode_minus_L=yes 16126 hardcode_libdir_flag_spec='-L$libdir' 16127 hardcode_libdir_separator= 16128 fi 16129 ;; 16130 esac 16131 shared_flag='-shared' 16132 if test yes = "$aix_use_runtimelinking"; then 16133 shared_flag="$shared_flag "'$wl-G' 16134 fi 16135 # Need to ensure runtime linking is disabled for the traditional 16136 # shared library, or the linker may eventually find shared libraries 16137 # /with/ Import File - we do not want to mix them. 16138 shared_flag_aix='-shared' 16139 shared_flag_svr4='-shared $wl-G' 16140 else 16141 # not using gcc 16142 if test ia64 = "$host_cpu"; then 16143 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16144 # chokes on -Wl,-G. The following line is correct: 16145 shared_flag='-G' 16146 else 16147 if test yes = "$aix_use_runtimelinking"; then 16148 shared_flag='$wl-G' 16149 else 16150 shared_flag='$wl-bM:SRE' 16151 fi 16152 shared_flag_aix='$wl-bM:SRE' 16153 shared_flag_svr4='$wl-G' 16154 fi 16155 fi 16156 16157 export_dynamic_flag_spec='$wl-bexpall' 16158 # It seems that -bexpall does not export symbols beginning with 16159 # underscore (_), so it is better to generate a list of symbols to export. 16160 always_export_symbols=yes 16161 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16162 # Warning - without using the other runtime loading flags (-brtl), 16163 # -berok will link without error, but may produce a broken library. 16164 allow_undefined_flag='-berok' 16165 # Determine the default libpath from the value encoded in an 16166 # empty executable. 16167 if test set = "${lt_cv_aix_libpath+set}"; then 16168 aix_libpath=$lt_cv_aix_libpath 16169else 16170 if ${lt_cv_aix_libpath_+:} false; then : 16171 $as_echo_n "(cached) " >&6 16172else 16173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16174/* end confdefs.h. */ 16175 16176int 16177main () 16178{ 16179 16180 ; 16181 return 0; 16182} 16183_ACEOF 16184if ac_fn_c_try_link "$LINENO"; then : 16185 16186 lt_aix_libpath_sed=' 16187 /Import File Strings/,/^$/ { 16188 /^0/ { 16189 s/^0 *\([^ ]*\) *$/\1/ 16190 p 16191 } 16192 }' 16193 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16194 # Check for a 64-bit object if we didn't find anything. 16195 if test -z "$lt_cv_aix_libpath_"; then 16196 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16197 fi 16198fi 16199rm -f core conftest.err conftest.$ac_objext \ 16200 conftest$ac_exeext conftest.$ac_ext 16201 if test -z "$lt_cv_aix_libpath_"; then 16202 lt_cv_aix_libpath_=/usr/lib:/lib 16203 fi 16204 16205fi 16206 16207 aix_libpath=$lt_cv_aix_libpath_ 16208fi 16209 16210 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16211 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 16212 else 16213 if test ia64 = "$host_cpu"; then 16214 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16215 allow_undefined_flag="-z nodefs" 16216 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" 16217 else 16218 # Determine the default libpath from the value encoded in an 16219 # empty executable. 16220 if test set = "${lt_cv_aix_libpath+set}"; then 16221 aix_libpath=$lt_cv_aix_libpath 16222else 16223 if ${lt_cv_aix_libpath_+:} false; then : 16224 $as_echo_n "(cached) " >&6 16225else 16226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16227/* end confdefs.h. */ 16228 16229int 16230main () 16231{ 16232 16233 ; 16234 return 0; 16235} 16236_ACEOF 16237if ac_fn_c_try_link "$LINENO"; then : 16238 16239 lt_aix_libpath_sed=' 16240 /Import File Strings/,/^$/ { 16241 /^0/ { 16242 s/^0 *\([^ ]*\) *$/\1/ 16243 p 16244 } 16245 }' 16246 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16247 # Check for a 64-bit object if we didn't find anything. 16248 if test -z "$lt_cv_aix_libpath_"; then 16249 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16250 fi 16251fi 16252rm -f core conftest.err conftest.$ac_objext \ 16253 conftest$ac_exeext conftest.$ac_ext 16254 if test -z "$lt_cv_aix_libpath_"; then 16255 lt_cv_aix_libpath_=/usr/lib:/lib 16256 fi 16257 16258fi 16259 16260 aix_libpath=$lt_cv_aix_libpath_ 16261fi 16262 16263 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16264 # Warning - without using the other run time loading flags, 16265 # -berok will link without error, but may produce a broken library. 16266 no_undefined_flag=' $wl-bernotok' 16267 allow_undefined_flag=' $wl-berok' 16268 if test yes = "$with_gnu_ld"; then 16269 # We only use this code for GNU lds that support --whole-archive. 16270 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16271 else 16272 # Exported symbols can be pulled into shared objects from archives 16273 whole_archive_flag_spec='$convenience' 16274 fi 16275 archive_cmds_need_lc=yes 16276 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16277 # -brtl affects multiple linker settings, -berok does not and is overridden later 16278 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16279 if test svr4 != "$with_aix_soname"; then 16280 # This is similar to how AIX traditionally builds its shared libraries. 16281 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 16282 fi 16283 if test aix != "$with_aix_soname"; then 16284 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 16285 else 16286 # used by -dlpreopen to get the symbols 16287 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16288 fi 16289 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16290 fi 16291 fi 16292 ;; 16293 16294 amigaos*) 16295 case $host_cpu in 16296 powerpc) 16297 # see comment about AmigaOS4 .so support 16298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16299 archive_expsym_cmds='' 16300 ;; 16301 m68k) 16302 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)' 16303 hardcode_libdir_flag_spec='-L$libdir' 16304 hardcode_minus_L=yes 16305 ;; 16306 esac 16307 ;; 16308 16309 bsdi[45]*) 16310 export_dynamic_flag_spec=-rdynamic 16311 ;; 16312 16313 cygwin* | mingw* | pw32* | cegcc*) 16314 # When not using gcc, we currently assume that we are using 16315 # Microsoft Visual C++. 16316 # hardcode_libdir_flag_spec is actually meaningless, as there is 16317 # no search path for DLLs. 16318 case $cc_basename in 16319 cl*) 16320 # Native MSVC 16321 hardcode_libdir_flag_spec=' ' 16322 allow_undefined_flag=unsupported 16323 always_export_symbols=yes 16324 file_list_spec='@' 16325 # Tell ltmain to make .lib files, not .a files. 16326 libext=lib 16327 # Tell ltmain to make .dll files, not .so files. 16328 shrext_cmds=.dll 16329 # FIXME: Setting linknames here is a bad hack. 16330 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16331 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16332 cp "$export_symbols" "$output_objdir/$soname.def"; 16333 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16334 else 16335 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16336 fi~ 16337 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16338 linknames=' 16339 # The linker will not automatically build a static lib if we build a DLL. 16340 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16341 enable_shared_with_static_runtimes=yes 16342 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16343 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16344 # Don't use ranlib 16345 old_postinstall_cmds='chmod 644 $oldlib' 16346 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16347 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16348 case $lt_outputfile in 16349 *.exe|*.EXE) ;; 16350 *) 16351 lt_outputfile=$lt_outputfile.exe 16352 lt_tool_outputfile=$lt_tool_outputfile.exe 16353 ;; 16354 esac~ 16355 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16356 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16357 $RM "$lt_outputfile.manifest"; 16358 fi' 16359 ;; 16360 *) 16361 # Assume MSVC wrapper 16362 hardcode_libdir_flag_spec=' ' 16363 allow_undefined_flag=unsupported 16364 # Tell ltmain to make .lib files, not .a files. 16365 libext=lib 16366 # Tell ltmain to make .dll files, not .so files. 16367 shrext_cmds=.dll 16368 # FIXME: Setting linknames here is a bad hack. 16369 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16370 # The linker will automatically build a .lib file if we build a DLL. 16371 old_archive_from_new_cmds='true' 16372 # FIXME: Should let the user specify the lib program. 16373 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16374 enable_shared_with_static_runtimes=yes 16375 ;; 16376 esac 16377 ;; 16378 16379 darwin* | rhapsody*) 16380 16381 16382 archive_cmds_need_lc=no 16383 hardcode_direct=no 16384 hardcode_automatic=yes 16385 hardcode_shlibpath_var=unsupported 16386 if test yes = "$lt_cv_ld_force_load"; then 16387 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\"`' 16388 16389 else 16390 whole_archive_flag_spec='' 16391 fi 16392 link_all_deplibs=yes 16393 allow_undefined_flag=$_lt_dar_allow_undefined 16394 case $cc_basename in 16395 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16396 *) _lt_dar_can_shared=$GCC ;; 16397 esac 16398 if test yes = "$_lt_dar_can_shared"; then 16399 output_verbose_link_cmd=func_echo_all 16400 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16401 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16402 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" 16403 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" 16404 16405 else 16406 ld_shlibs=no 16407 fi 16408 16409 ;; 16410 16411 dgux*) 16412 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16413 hardcode_libdir_flag_spec='-L$libdir' 16414 hardcode_shlibpath_var=no 16415 ;; 16416 16417 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16418 # support. Future versions do this automatically, but an explicit c++rt0.o 16419 # does not break anything, and helps significantly (at the cost of a little 16420 # extra space). 16421 freebsd2.2*) 16422 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16423 hardcode_libdir_flag_spec='-R$libdir' 16424 hardcode_direct=yes 16425 hardcode_shlibpath_var=no 16426 ;; 16427 16428 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16429 freebsd2.*) 16430 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16431 hardcode_direct=yes 16432 hardcode_minus_L=yes 16433 hardcode_shlibpath_var=no 16434 ;; 16435 16436 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16437 freebsd* | dragonfly*) 16438 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16439 hardcode_libdir_flag_spec='-R$libdir' 16440 hardcode_direct=yes 16441 hardcode_shlibpath_var=no 16442 ;; 16443 16444 hpux9*) 16445 if test yes = "$GCC"; then 16446 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 16447 else 16448 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 16449 fi 16450 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16451 hardcode_libdir_separator=: 16452 hardcode_direct=yes 16453 16454 # hardcode_minus_L: Not really in the search PATH, 16455 # but as the default location of the library. 16456 hardcode_minus_L=yes 16457 export_dynamic_flag_spec='$wl-E' 16458 ;; 16459 16460 hpux10*) 16461 if test yes,no = "$GCC,$with_gnu_ld"; then 16462 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16463 else 16464 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16465 fi 16466 if test no = "$with_gnu_ld"; then 16467 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16468 hardcode_libdir_separator=: 16469 hardcode_direct=yes 16470 hardcode_direct_absolute=yes 16471 export_dynamic_flag_spec='$wl-E' 16472 # hardcode_minus_L: Not really in the search PATH, 16473 # but as the default location of the library. 16474 hardcode_minus_L=yes 16475 fi 16476 ;; 16477 16478 hpux11*) 16479 if test yes,no = "$GCC,$with_gnu_ld"; then 16480 case $host_cpu in 16481 hppa*64*) 16482 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16483 ;; 16484 ia64*) 16485 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16486 ;; 16487 *) 16488 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16489 ;; 16490 esac 16491 else 16492 case $host_cpu in 16493 hppa*64*) 16494 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16495 ;; 16496 ia64*) 16497 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16498 ;; 16499 *) 16500 16501 # Older versions of the 11.00 compiler do not understand -b yet 16502 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16504$as_echo_n "checking if $CC understands -b... " >&6; } 16505if ${lt_cv_prog_compiler__b+:} false; then : 16506 $as_echo_n "(cached) " >&6 16507else 16508 lt_cv_prog_compiler__b=no 16509 save_LDFLAGS=$LDFLAGS 16510 LDFLAGS="$LDFLAGS -b" 16511 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16512 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16513 # The linker can only warn and ignore the option if not recognized 16514 # So say no if there are warnings 16515 if test -s conftest.err; then 16516 # Append any errors to the config.log. 16517 cat conftest.err 1>&5 16518 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16520 if diff conftest.exp conftest.er2 >/dev/null; then 16521 lt_cv_prog_compiler__b=yes 16522 fi 16523 else 16524 lt_cv_prog_compiler__b=yes 16525 fi 16526 fi 16527 $RM -r conftest* 16528 LDFLAGS=$save_LDFLAGS 16529 16530fi 16531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16532$as_echo "$lt_cv_prog_compiler__b" >&6; } 16533 16534if test yes = "$lt_cv_prog_compiler__b"; then 16535 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16536else 16537 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16538fi 16539 16540 ;; 16541 esac 16542 fi 16543 if test no = "$with_gnu_ld"; then 16544 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16545 hardcode_libdir_separator=: 16546 16547 case $host_cpu in 16548 hppa*64*|ia64*) 16549 hardcode_direct=no 16550 hardcode_shlibpath_var=no 16551 ;; 16552 *) 16553 hardcode_direct=yes 16554 hardcode_direct_absolute=yes 16555 export_dynamic_flag_spec='$wl-E' 16556 16557 # hardcode_minus_L: Not really in the search PATH, 16558 # but as the default location of the library. 16559 hardcode_minus_L=yes 16560 ;; 16561 esac 16562 fi 16563 ;; 16564 16565 irix5* | irix6* | nonstopux*) 16566 if test yes = "$GCC"; then 16567 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' 16568 # Try to use the -exported_symbol ld option, if it does not 16569 # work, assume that -exports_file does not work either and 16570 # implicitly export all symbols. 16571 # This should be the same for all languages, so no per-tag cache variable. 16572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16573$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16574if ${lt_cv_irix_exported_symbol+:} false; then : 16575 $as_echo_n "(cached) " >&6 16576else 16577 save_LDFLAGS=$LDFLAGS 16578 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16580/* end confdefs.h. */ 16581int foo (void) { return 0; } 16582_ACEOF 16583if ac_fn_c_try_link "$LINENO"; then : 16584 lt_cv_irix_exported_symbol=yes 16585else 16586 lt_cv_irix_exported_symbol=no 16587fi 16588rm -f core conftest.err conftest.$ac_objext \ 16589 conftest$ac_exeext conftest.$ac_ext 16590 LDFLAGS=$save_LDFLAGS 16591fi 16592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16593$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16594 if test yes = "$lt_cv_irix_exported_symbol"; then 16595 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' 16596 fi 16597 else 16598 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' 16599 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' 16600 fi 16601 archive_cmds_need_lc='no' 16602 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16603 hardcode_libdir_separator=: 16604 inherit_rpath=yes 16605 link_all_deplibs=yes 16606 ;; 16607 16608 linux*) 16609 case $cc_basename in 16610 tcc*) 16611 # Fabrice Bellard et al's Tiny C Compiler 16612 ld_shlibs=yes 16613 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16614 ;; 16615 esac 16616 ;; 16617 16618 netbsd*) 16619 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16620 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16621 else 16622 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16623 fi 16624 hardcode_libdir_flag_spec='-R$libdir' 16625 hardcode_direct=yes 16626 hardcode_shlibpath_var=no 16627 ;; 16628 16629 newsos6) 16630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16631 hardcode_direct=yes 16632 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16633 hardcode_libdir_separator=: 16634 hardcode_shlibpath_var=no 16635 ;; 16636 16637 *nto* | *qnx*) 16638 ;; 16639 16640 openbsd* | bitrig*) 16641 if test -f /usr/libexec/ld.so; then 16642 hardcode_direct=yes 16643 hardcode_shlibpath_var=no 16644 hardcode_direct_absolute=yes 16645 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16646 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16647 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 16648 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16649 export_dynamic_flag_spec='$wl-E' 16650 else 16651 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16652 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16653 fi 16654 else 16655 ld_shlibs=no 16656 fi 16657 ;; 16658 16659 os2*) 16660 hardcode_libdir_flag_spec='-L$libdir' 16661 hardcode_minus_L=yes 16662 allow_undefined_flag=unsupported 16663 shrext_cmds=.dll 16664 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16665 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16666 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16667 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16668 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16669 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16670 emximp -o $lib $output_objdir/$libname.def' 16671 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16672 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16673 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16674 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16675 prefix_cmds="$SED"~ 16676 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16677 prefix_cmds="$prefix_cmds -e 1d"; 16678 fi~ 16679 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16680 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16681 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16682 emximp -o $lib $output_objdir/$libname.def' 16683 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16684 enable_shared_with_static_runtimes=yes 16685 file_list_spec='@' 16686 ;; 16687 16688 osf3*) 16689 if test yes = "$GCC"; then 16690 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16691 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' 16692 else 16693 allow_undefined_flag=' -expect_unresolved \*' 16694 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' 16695 fi 16696 archive_cmds_need_lc='no' 16697 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16698 hardcode_libdir_separator=: 16699 ;; 16700 16701 osf4* | osf5*) # as osf3* with the addition of -msym flag 16702 if test yes = "$GCC"; then 16703 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16704 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' 16705 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16706 else 16707 allow_undefined_flag=' -expect_unresolved \*' 16708 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' 16709 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~ 16710 $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' 16711 16712 # Both c and cxx compiler support -rpath directly 16713 hardcode_libdir_flag_spec='-rpath $libdir' 16714 fi 16715 archive_cmds_need_lc='no' 16716 hardcode_libdir_separator=: 16717 ;; 16718 16719 solaris*) 16720 no_undefined_flag=' -z defs' 16721 if test yes = "$GCC"; then 16722 wlarc='$wl' 16723 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16724 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16725 $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' 16726 else 16727 case `$CC -V 2>&1` in 16728 *"Compilers 5.0"*) 16729 wlarc='' 16730 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 16731 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16732 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16733 ;; 16734 *) 16735 wlarc='$wl' 16736 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16737 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16738 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16739 ;; 16740 esac 16741 fi 16742 hardcode_libdir_flag_spec='-R$libdir' 16743 hardcode_shlibpath_var=no 16744 case $host_os in 16745 solaris2.[0-5] | solaris2.[0-5].*) ;; 16746 *) 16747 # The compiler driver will combine and reorder linker options, 16748 # but understands '-z linker_flag'. GCC discards it without '$wl', 16749 # but is careful enough not to reorder. 16750 # Supported since Solaris 2.6 (maybe 2.5.1?) 16751 if test yes = "$GCC"; then 16752 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16753 else 16754 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16755 fi 16756 ;; 16757 esac 16758 link_all_deplibs=yes 16759 ;; 16760 16761 sunos4*) 16762 if test sequent = "$host_vendor"; then 16763 # Use $CC to link under sequent, because it throws in some extra .o 16764 # files that make .init and .fini sections work. 16765 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16766 else 16767 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16768 fi 16769 hardcode_libdir_flag_spec='-L$libdir' 16770 hardcode_direct=yes 16771 hardcode_minus_L=yes 16772 hardcode_shlibpath_var=no 16773 ;; 16774 16775 sysv4) 16776 case $host_vendor in 16777 sni) 16778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16779 hardcode_direct=yes # is this really true??? 16780 ;; 16781 siemens) 16782 ## LD is ld it makes a PLAMLIB 16783 ## CC just makes a GrossModule. 16784 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16785 reload_cmds='$CC -r -o $output$reload_objs' 16786 hardcode_direct=no 16787 ;; 16788 motorola) 16789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16790 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16791 ;; 16792 esac 16793 runpath_var='LD_RUN_PATH' 16794 hardcode_shlibpath_var=no 16795 ;; 16796 16797 sysv4.3*) 16798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16799 hardcode_shlibpath_var=no 16800 export_dynamic_flag_spec='-Bexport' 16801 ;; 16802 16803 sysv4*MP*) 16804 if test -d /usr/nec; then 16805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16806 hardcode_shlibpath_var=no 16807 runpath_var=LD_RUN_PATH 16808 hardcode_runpath_var=yes 16809 ld_shlibs=yes 16810 fi 16811 ;; 16812 16813 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16814 no_undefined_flag='$wl-z,text' 16815 archive_cmds_need_lc=no 16816 hardcode_shlibpath_var=no 16817 runpath_var='LD_RUN_PATH' 16818 16819 if test yes = "$GCC"; then 16820 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16821 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16822 else 16823 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16824 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16825 fi 16826 ;; 16827 16828 sysv5* | sco3.2v5* | sco5v6*) 16829 # Note: We CANNOT use -z defs as we might desire, because we do not 16830 # link with -lc, and that would cause any symbols used from libc to 16831 # always be unresolved, which means just about no library would 16832 # ever link correctly. If we're not using GNU ld we use -z text 16833 # though, which does catch some bad symbols but isn't as heavy-handed 16834 # as -z defs. 16835 no_undefined_flag='$wl-z,text' 16836 allow_undefined_flag='$wl-z,nodefs' 16837 archive_cmds_need_lc=no 16838 hardcode_shlibpath_var=no 16839 hardcode_libdir_flag_spec='$wl-R,$libdir' 16840 hardcode_libdir_separator=':' 16841 link_all_deplibs=yes 16842 export_dynamic_flag_spec='$wl-Bexport' 16843 runpath_var='LD_RUN_PATH' 16844 16845 if test yes = "$GCC"; then 16846 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16847 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16848 else 16849 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16850 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16851 fi 16852 ;; 16853 16854 uts4*) 16855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16856 hardcode_libdir_flag_spec='-L$libdir' 16857 hardcode_shlibpath_var=no 16858 ;; 16859 16860 *) 16861 ld_shlibs=no 16862 ;; 16863 esac 16864 16865 if test sni = "$host_vendor"; then 16866 case $host in 16867 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16868 export_dynamic_flag_spec='$wl-Blargedynsym' 16869 ;; 16870 esac 16871 fi 16872 fi 16873 16874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16875$as_echo "$ld_shlibs" >&6; } 16876test no = "$ld_shlibs" && can_build_shared=no 16877 16878with_gnu_ld=$with_gnu_ld 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894# 16895# Do we need to explicitly link libc? 16896# 16897case "x$archive_cmds_need_lc" in 16898x|xyes) 16899 # Assume -lc should be added 16900 archive_cmds_need_lc=yes 16901 16902 if test yes,yes = "$GCC,$enable_shared"; then 16903 case $archive_cmds in 16904 *'~'*) 16905 # FIXME: we may have to deal with multi-command sequences. 16906 ;; 16907 '$CC '*) 16908 # Test whether the compiler implicitly links with -lc since on some 16909 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16910 # to ld, don't add -lc before -lgcc. 16911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16912$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16913if ${lt_cv_archive_cmds_need_lc+:} false; then : 16914 $as_echo_n "(cached) " >&6 16915else 16916 $RM conftest* 16917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16918 16919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16920 (eval $ac_compile) 2>&5 16921 ac_status=$? 16922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16923 test $ac_status = 0; } 2>conftest.err; then 16924 soname=conftest 16925 lib=conftest 16926 libobjs=conftest.$ac_objext 16927 deplibs= 16928 wl=$lt_prog_compiler_wl 16929 pic_flag=$lt_prog_compiler_pic 16930 compiler_flags=-v 16931 linker_flags=-v 16932 verstring= 16933 output_objdir=. 16934 libname=conftest 16935 lt_save_allow_undefined_flag=$allow_undefined_flag 16936 allow_undefined_flag= 16937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16938 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16939 ac_status=$? 16940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16941 test $ac_status = 0; } 16942 then 16943 lt_cv_archive_cmds_need_lc=no 16944 else 16945 lt_cv_archive_cmds_need_lc=yes 16946 fi 16947 allow_undefined_flag=$lt_save_allow_undefined_flag 16948 else 16949 cat conftest.err 1>&5 16950 fi 16951 $RM conftest* 16952 16953fi 16954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16955$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16956 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16957 ;; 16958 esac 16959 fi 16960 ;; 16961esac 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17115$as_echo_n "checking dynamic linker characteristics... " >&6; } 17116 17117if test yes = "$GCC"; then 17118 case $host_os in 17119 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17120 *) lt_awk_arg='/^libraries:/' ;; 17121 esac 17122 case $host_os in 17123 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17124 *) lt_sed_strip_eq='s|=/|/|g' ;; 17125 esac 17126 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17127 case $lt_search_path_spec in 17128 *\;*) 17129 # if the path contains ";" then we assume it to be the separator 17130 # otherwise default to the standard path separator (i.e. ":") - it is 17131 # assumed that no part of a normal pathname contains ";" but that should 17132 # okay in the real world where ";" in dirpaths is itself problematic. 17133 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17134 ;; 17135 *) 17136 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17137 ;; 17138 esac 17139 # Ok, now we have the path, separated by spaces, we can step through it 17140 # and add multilib dir if necessary... 17141 lt_tmp_lt_search_path_spec= 17142 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17143 # ...but if some path component already ends with the multilib dir we assume 17144 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17145 case "$lt_multi_os_dir; $lt_search_path_spec " in 17146 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17147 lt_multi_os_dir= 17148 ;; 17149 esac 17150 for lt_sys_path in $lt_search_path_spec; do 17151 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17152 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17153 elif test -n "$lt_multi_os_dir"; then 17154 test -d "$lt_sys_path" && \ 17155 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17156 fi 17157 done 17158 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17159BEGIN {RS = " "; FS = "/|\n";} { 17160 lt_foo = ""; 17161 lt_count = 0; 17162 for (lt_i = NF; lt_i > 0; lt_i--) { 17163 if ($lt_i != "" && $lt_i != ".") { 17164 if ($lt_i == "..") { 17165 lt_count++; 17166 } else { 17167 if (lt_count == 0) { 17168 lt_foo = "/" $lt_i lt_foo; 17169 } else { 17170 lt_count--; 17171 } 17172 } 17173 } 17174 } 17175 if (lt_foo != "") { lt_freq[lt_foo]++; } 17176 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17177}'` 17178 # AWK program above erroneously prepends '/' to C:/dos/paths 17179 # for these hosts. 17180 case $host_os in 17181 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17182 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17183 esac 17184 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17185else 17186 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17187fi 17188library_names_spec= 17189libname_spec='lib$name' 17190soname_spec= 17191shrext_cmds=.so 17192postinstall_cmds= 17193postuninstall_cmds= 17194finish_cmds= 17195finish_eval= 17196shlibpath_var= 17197shlibpath_overrides_runpath=unknown 17198version_type=none 17199dynamic_linker="$host_os ld.so" 17200sys_lib_dlsearch_path_spec="/lib /usr/lib" 17201need_lib_prefix=unknown 17202hardcode_into_libs=no 17203 17204# when you set need_version to no, make sure it does not cause -set_version 17205# flags to be left without arguments 17206need_version=unknown 17207 17208 17209 17210case $host_os in 17211aix3*) 17212 version_type=linux # correct to gnu/linux during the next big refactor 17213 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17214 shlibpath_var=LIBPATH 17215 17216 # AIX 3 has no versioning support, so we append a major version to the name. 17217 soname_spec='$libname$release$shared_ext$major' 17218 ;; 17219 17220aix[4-9]*) 17221 version_type=linux # correct to gnu/linux during the next big refactor 17222 need_lib_prefix=no 17223 need_version=no 17224 hardcode_into_libs=yes 17225 if test ia64 = "$host_cpu"; then 17226 # AIX 5 supports IA64 17227 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17228 shlibpath_var=LD_LIBRARY_PATH 17229 else 17230 # With GCC up to 2.95.x, collect2 would create an import file 17231 # for dependence libraries. The import file would start with 17232 # the line '#! .'. This would cause the generated library to 17233 # depend on '.', always an invalid library. This was fixed in 17234 # development snapshots of GCC prior to 3.0. 17235 case $host_os in 17236 aix4 | aix4.[01] | aix4.[01].*) 17237 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17238 echo ' yes ' 17239 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17240 : 17241 else 17242 can_build_shared=no 17243 fi 17244 ;; 17245 esac 17246 # Using Import Files as archive members, it is possible to support 17247 # filename-based versioning of shared library archives on AIX. While 17248 # this would work for both with and without runtime linking, it will 17249 # prevent static linking of such archives. So we do filename-based 17250 # shared library versioning with .so extension only, which is used 17251 # when both runtime linking and shared linking is enabled. 17252 # Unfortunately, runtime linking may impact performance, so we do 17253 # not want this to be the default eventually. Also, we use the 17254 # versioned .so libs for executables only if there is the -brtl 17255 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17256 # To allow for filename-based versioning support, we need to create 17257 # libNAME.so.V as an archive file, containing: 17258 # *) an Import File, referring to the versioned filename of the 17259 # archive as well as the shared archive member, telling the 17260 # bitwidth (32 or 64) of that shared object, and providing the 17261 # list of exported symbols of that shared object, eventually 17262 # decorated with the 'weak' keyword 17263 # *) the shared object with the F_LOADONLY flag set, to really avoid 17264 # it being seen by the linker. 17265 # At run time we better use the real file rather than another symlink, 17266 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17267 17268 case $with_aix_soname,$aix_use_runtimelinking in 17269 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17270 # soname into executable. Probably we can add versioning support to 17271 # collect2, so additional links can be useful in future. 17272 aix,yes) # traditional libtool 17273 dynamic_linker='AIX unversionable lib.so' 17274 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17275 # instead of lib<name>.a to let people know that these are not 17276 # typical AIX shared libraries. 17277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17278 ;; 17279 aix,no) # traditional AIX only 17280 dynamic_linker='AIX lib.a(lib.so.V)' 17281 # We preserve .a as extension for shared libraries through AIX4.2 17282 # and later when we are not doing run time linking. 17283 library_names_spec='$libname$release.a $libname.a' 17284 soname_spec='$libname$release$shared_ext$major' 17285 ;; 17286 svr4,*) # full svr4 only 17287 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17288 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17289 # We do not specify a path in Import Files, so LIBPATH fires. 17290 shlibpath_overrides_runpath=yes 17291 ;; 17292 *,yes) # both, prefer svr4 17293 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17294 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17295 # unpreferred sharedlib libNAME.a needs extra handling 17296 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 17297 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 17298 # We do not specify a path in Import Files, so LIBPATH fires. 17299 shlibpath_overrides_runpath=yes 17300 ;; 17301 *,no) # both, prefer aix 17302 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17303 library_names_spec='$libname$release.a $libname.a' 17304 soname_spec='$libname$release$shared_ext$major' 17305 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17306 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 17307 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 17308 ;; 17309 esac 17310 shlibpath_var=LIBPATH 17311 fi 17312 ;; 17313 17314amigaos*) 17315 case $host_cpu in 17316 powerpc) 17317 # Since July 2007 AmigaOS4 officially supports .so libraries. 17318 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17319 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17320 ;; 17321 m68k) 17322 library_names_spec='$libname.ixlibrary $libname.a' 17323 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17324 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 17325 ;; 17326 esac 17327 ;; 17328 17329beos*) 17330 library_names_spec='$libname$shared_ext' 17331 dynamic_linker="$host_os ld.so" 17332 shlibpath_var=LIBRARY_PATH 17333 ;; 17334 17335bsdi[45]*) 17336 version_type=linux # correct to gnu/linux during the next big refactor 17337 need_version=no 17338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17339 soname_spec='$libname$release$shared_ext$major' 17340 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17341 shlibpath_var=LD_LIBRARY_PATH 17342 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17343 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17344 # the default ld.so.conf also contains /usr/contrib/lib and 17345 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17346 # libtool to hard-code these into programs 17347 ;; 17348 17349cygwin* | mingw* | pw32* | cegcc*) 17350 version_type=windows 17351 shrext_cmds=.dll 17352 need_version=no 17353 need_lib_prefix=no 17354 17355 case $GCC,$cc_basename in 17356 yes,*) 17357 # gcc 17358 library_names_spec='$libname.dll.a' 17359 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17360 postinstall_cmds='base_file=`basename \$file`~ 17361 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17362 dldir=$destdir/`dirname \$dlpath`~ 17363 test -d \$dldir || mkdir -p \$dldir~ 17364 $install_prog $dir/$dlname \$dldir/$dlname~ 17365 chmod a+x \$dldir/$dlname~ 17366 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17367 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17368 fi' 17369 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17370 dlpath=$dir/\$dldll~ 17371 $RM \$dlpath' 17372 shlibpath_overrides_runpath=yes 17373 17374 case $host_os in 17375 cygwin*) 17376 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17377 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17378 17379 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17380 ;; 17381 mingw* | cegcc*) 17382 # MinGW DLLs use traditional 'lib' prefix 17383 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17384 ;; 17385 pw32*) 17386 # pw32 DLLs use 'pw' prefix rather than 'lib' 17387 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17388 ;; 17389 esac 17390 dynamic_linker='Win32 ld.exe' 17391 ;; 17392 17393 *,cl*) 17394 # Native MSVC 17395 libname_spec='$name' 17396 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17397 library_names_spec='$libname.dll.lib' 17398 17399 case $build_os in 17400 mingw*) 17401 sys_lib_search_path_spec= 17402 lt_save_ifs=$IFS 17403 IFS=';' 17404 for lt_path in $LIB 17405 do 17406 IFS=$lt_save_ifs 17407 # Let DOS variable expansion print the short 8.3 style file name. 17408 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17409 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17410 done 17411 IFS=$lt_save_ifs 17412 # Convert to MSYS style. 17413 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17414 ;; 17415 cygwin*) 17416 # Convert to unix form, then to dos form, then back to unix form 17417 # but this time dos style (no spaces!) so that the unix form looks 17418 # like /cygdrive/c/PROGRA~1:/cygdr... 17419 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17420 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17421 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17422 ;; 17423 *) 17424 sys_lib_search_path_spec=$LIB 17425 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17426 # It is most probably a Windows format PATH. 17427 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17428 else 17429 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17430 fi 17431 # FIXME: find the short name or the path components, as spaces are 17432 # common. (e.g. "Program Files" -> "PROGRA~1") 17433 ;; 17434 esac 17435 17436 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17437 postinstall_cmds='base_file=`basename \$file`~ 17438 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17439 dldir=$destdir/`dirname \$dlpath`~ 17440 test -d \$dldir || mkdir -p \$dldir~ 17441 $install_prog $dir/$dlname \$dldir/$dlname' 17442 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17443 dlpath=$dir/\$dldll~ 17444 $RM \$dlpath' 17445 shlibpath_overrides_runpath=yes 17446 dynamic_linker='Win32 link.exe' 17447 ;; 17448 17449 *) 17450 # Assume MSVC wrapper 17451 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17452 dynamic_linker='Win32 ld.exe' 17453 ;; 17454 esac 17455 # FIXME: first we should search . and the directory the executable is in 17456 shlibpath_var=PATH 17457 ;; 17458 17459darwin* | rhapsody*) 17460 dynamic_linker="$host_os dyld" 17461 version_type=darwin 17462 need_lib_prefix=no 17463 need_version=no 17464 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17465 soname_spec='$libname$release$major$shared_ext' 17466 shlibpath_overrides_runpath=yes 17467 shlibpath_var=DYLD_LIBRARY_PATH 17468 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17469 17470 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17471 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17472 ;; 17473 17474dgux*) 17475 version_type=linux # correct to gnu/linux during the next big refactor 17476 need_lib_prefix=no 17477 need_version=no 17478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17479 soname_spec='$libname$release$shared_ext$major' 17480 shlibpath_var=LD_LIBRARY_PATH 17481 ;; 17482 17483freebsd* | dragonfly*) 17484 # DragonFly does not have aout. When/if they implement a new 17485 # versioning mechanism, adjust this. 17486 if test -x /usr/bin/objformat; then 17487 objformat=`/usr/bin/objformat` 17488 else 17489 case $host_os in 17490 freebsd[23].*) objformat=aout ;; 17491 *) objformat=elf ;; 17492 esac 17493 fi 17494 version_type=freebsd-$objformat 17495 case $version_type in 17496 freebsd-elf*) 17497 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17498 soname_spec='$libname$release$shared_ext$major' 17499 need_version=no 17500 need_lib_prefix=no 17501 ;; 17502 freebsd-*) 17503 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17504 need_version=yes 17505 ;; 17506 esac 17507 shlibpath_var=LD_LIBRARY_PATH 17508 case $host_os in 17509 freebsd2.*) 17510 shlibpath_overrides_runpath=yes 17511 ;; 17512 freebsd3.[01]* | freebsdelf3.[01]*) 17513 shlibpath_overrides_runpath=yes 17514 hardcode_into_libs=yes 17515 ;; 17516 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17517 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17518 shlibpath_overrides_runpath=no 17519 hardcode_into_libs=yes 17520 ;; 17521 *) # from 4.6 on, and DragonFly 17522 shlibpath_overrides_runpath=yes 17523 hardcode_into_libs=yes 17524 ;; 17525 esac 17526 ;; 17527 17528haiku*) 17529 version_type=linux # correct to gnu/linux during the next big refactor 17530 need_lib_prefix=no 17531 need_version=no 17532 dynamic_linker="$host_os runtime_loader" 17533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17534 soname_spec='$libname$release$shared_ext$major' 17535 shlibpath_var=LIBRARY_PATH 17536 shlibpath_overrides_runpath=no 17537 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17538 hardcode_into_libs=yes 17539 ;; 17540 17541hpux9* | hpux10* | hpux11*) 17542 # Give a soname corresponding to the major version so that dld.sl refuses to 17543 # link against other versions. 17544 version_type=sunos 17545 need_lib_prefix=no 17546 need_version=no 17547 case $host_cpu in 17548 ia64*) 17549 shrext_cmds='.so' 17550 hardcode_into_libs=yes 17551 dynamic_linker="$host_os dld.so" 17552 shlibpath_var=LD_LIBRARY_PATH 17553 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17555 soname_spec='$libname$release$shared_ext$major' 17556 if test 32 = "$HPUX_IA64_MODE"; then 17557 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17558 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17559 else 17560 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17561 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17562 fi 17563 ;; 17564 hppa*64*) 17565 shrext_cmds='.sl' 17566 hardcode_into_libs=yes 17567 dynamic_linker="$host_os dld.sl" 17568 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17571 soname_spec='$libname$release$shared_ext$major' 17572 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17574 ;; 17575 *) 17576 shrext_cmds='.sl' 17577 dynamic_linker="$host_os dld.sl" 17578 shlibpath_var=SHLIB_PATH 17579 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17581 soname_spec='$libname$release$shared_ext$major' 17582 ;; 17583 esac 17584 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17585 postinstall_cmds='chmod 555 $lib' 17586 # or fails outright, so override atomically: 17587 install_override_mode=555 17588 ;; 17589 17590interix[3-9]*) 17591 version_type=linux # correct to gnu/linux during the next big refactor 17592 need_lib_prefix=no 17593 need_version=no 17594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17595 soname_spec='$libname$release$shared_ext$major' 17596 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17597 shlibpath_var=LD_LIBRARY_PATH 17598 shlibpath_overrides_runpath=no 17599 hardcode_into_libs=yes 17600 ;; 17601 17602irix5* | irix6* | nonstopux*) 17603 case $host_os in 17604 nonstopux*) version_type=nonstopux ;; 17605 *) 17606 if test yes = "$lt_cv_prog_gnu_ld"; then 17607 version_type=linux # correct to gnu/linux during the next big refactor 17608 else 17609 version_type=irix 17610 fi ;; 17611 esac 17612 need_lib_prefix=no 17613 need_version=no 17614 soname_spec='$libname$release$shared_ext$major' 17615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17616 case $host_os in 17617 irix5* | nonstopux*) 17618 libsuff= shlibsuff= 17619 ;; 17620 *) 17621 case $LD in # libtool.m4 will add one of these switches to LD 17622 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17623 libsuff= shlibsuff= libmagic=32-bit;; 17624 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17625 libsuff=32 shlibsuff=N32 libmagic=N32;; 17626 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17627 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17628 *) libsuff= shlibsuff= libmagic=never-match;; 17629 esac 17630 ;; 17631 esac 17632 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17633 shlibpath_overrides_runpath=no 17634 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17635 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17636 hardcode_into_libs=yes 17637 ;; 17638 17639# No shared lib support for Linux oldld, aout, or coff. 17640linux*oldld* | linux*aout* | linux*coff*) 17641 dynamic_linker=no 17642 ;; 17643 17644linux*android*) 17645 version_type=none # Android doesn't support versioned libraries. 17646 need_lib_prefix=no 17647 need_version=no 17648 library_names_spec='$libname$release$shared_ext' 17649 soname_spec='$libname$release$shared_ext' 17650 finish_cmds= 17651 shlibpath_var=LD_LIBRARY_PATH 17652 shlibpath_overrides_runpath=yes 17653 17654 # This implies no fast_install, which is unacceptable. 17655 # Some rework will be needed to allow for fast_install 17656 # before this can be enabled. 17657 hardcode_into_libs=yes 17658 17659 dynamic_linker='Android linker' 17660 # Don't embed -rpath directories since the linker doesn't support them. 17661 hardcode_libdir_flag_spec='-L$libdir' 17662 ;; 17663 17664# This must be glibc/ELF. 17665linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17666 version_type=linux # correct to gnu/linux during the next big refactor 17667 need_lib_prefix=no 17668 need_version=no 17669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17670 soname_spec='$libname$release$shared_ext$major' 17671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17672 shlibpath_var=LD_LIBRARY_PATH 17673 shlibpath_overrides_runpath=no 17674 17675 # Some binutils ld are patched to set DT_RUNPATH 17676 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17677 $as_echo_n "(cached) " >&6 17678else 17679 lt_cv_shlibpath_overrides_runpath=no 17680 save_LDFLAGS=$LDFLAGS 17681 save_libdir=$libdir 17682 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17683 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17685/* end confdefs.h. */ 17686 17687int 17688main () 17689{ 17690 17691 ; 17692 return 0; 17693} 17694_ACEOF 17695if ac_fn_c_try_link "$LINENO"; then : 17696 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17697 lt_cv_shlibpath_overrides_runpath=yes 17698fi 17699fi 17700rm -f core conftest.err conftest.$ac_objext \ 17701 conftest$ac_exeext conftest.$ac_ext 17702 LDFLAGS=$save_LDFLAGS 17703 libdir=$save_libdir 17704 17705fi 17706 17707 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17708 17709 # This implies no fast_install, which is unacceptable. 17710 # Some rework will be needed to allow for fast_install 17711 # before this can be enabled. 17712 hardcode_into_libs=yes 17713 17714 # Ideally, we could use ldconfig to report *all* directores which are 17715 # searched for libraries, however this is still not possible. Aside from not 17716 # being certain /sbin/ldconfig is available, command 17717 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17718 # even though it is searched at run-time. Try to do the best guess by 17719 # appending ld.so.conf contents (and includes) to the search path. 17720 if test -f /etc/ld.so.conf; then 17721 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' ' '` 17722 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17723 fi 17724 17725 # We used to test for /lib/ld.so.1 and disable shared libraries on 17726 # powerpc, because MkLinux only supported shared libraries with the 17727 # GNU dynamic linker. Since this was broken with cross compilers, 17728 # most powerpc-linux boxes support dynamic linking these days and 17729 # people can always --disable-shared, the test was removed, and we 17730 # assume the GNU/Linux dynamic linker is in use. 17731 dynamic_linker='GNU/Linux ld.so' 17732 ;; 17733 17734netbsd*) 17735 version_type=sunos 17736 need_lib_prefix=no 17737 need_version=no 17738 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17739 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17741 dynamic_linker='NetBSD (a.out) ld.so' 17742 else 17743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17744 soname_spec='$libname$release$shared_ext$major' 17745 dynamic_linker='NetBSD ld.elf_so' 17746 fi 17747 shlibpath_var=LD_LIBRARY_PATH 17748 shlibpath_overrides_runpath=yes 17749 hardcode_into_libs=yes 17750 ;; 17751 17752newsos6) 17753 version_type=linux # correct to gnu/linux during the next big refactor 17754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17755 shlibpath_var=LD_LIBRARY_PATH 17756 shlibpath_overrides_runpath=yes 17757 ;; 17758 17759*nto* | *qnx*) 17760 version_type=qnx 17761 need_lib_prefix=no 17762 need_version=no 17763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17764 soname_spec='$libname$release$shared_ext$major' 17765 shlibpath_var=LD_LIBRARY_PATH 17766 shlibpath_overrides_runpath=no 17767 hardcode_into_libs=yes 17768 dynamic_linker='ldqnx.so' 17769 ;; 17770 17771openbsd* | bitrig*) 17772 version_type=sunos 17773 sys_lib_dlsearch_path_spec=/usr/lib 17774 need_lib_prefix=no 17775 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17776 need_version=no 17777 else 17778 need_version=yes 17779 fi 17780 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17782 shlibpath_var=LD_LIBRARY_PATH 17783 shlibpath_overrides_runpath=yes 17784 ;; 17785 17786os2*) 17787 libname_spec='$name' 17788 version_type=windows 17789 shrext_cmds=.dll 17790 need_version=no 17791 need_lib_prefix=no 17792 # OS/2 can only load a DLL with a base name of 8 characters or less. 17793 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17794 v=$($ECHO $release$versuffix | tr -d .-); 17795 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17796 $ECHO $n$v`$shared_ext' 17797 library_names_spec='${libname}_dll.$libext' 17798 dynamic_linker='OS/2 ld.exe' 17799 shlibpath_var=BEGINLIBPATH 17800 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17802 postinstall_cmds='base_file=`basename \$file`~ 17803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17804 dldir=$destdir/`dirname \$dlpath`~ 17805 test -d \$dldir || mkdir -p \$dldir~ 17806 $install_prog $dir/$dlname \$dldir/$dlname~ 17807 chmod a+x \$dldir/$dlname~ 17808 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17809 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17810 fi' 17811 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17812 dlpath=$dir/\$dldll~ 17813 $RM \$dlpath' 17814 ;; 17815 17816osf3* | osf4* | osf5*) 17817 version_type=osf 17818 need_lib_prefix=no 17819 need_version=no 17820 soname_spec='$libname$release$shared_ext$major' 17821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17822 shlibpath_var=LD_LIBRARY_PATH 17823 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17825 ;; 17826 17827rdos*) 17828 dynamic_linker=no 17829 ;; 17830 17831solaris*) 17832 version_type=linux # correct to gnu/linux during the next big refactor 17833 need_lib_prefix=no 17834 need_version=no 17835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17836 soname_spec='$libname$release$shared_ext$major' 17837 shlibpath_var=LD_LIBRARY_PATH 17838 shlibpath_overrides_runpath=yes 17839 hardcode_into_libs=yes 17840 # ldd complains unless libraries are executable 17841 postinstall_cmds='chmod +x $lib' 17842 ;; 17843 17844sunos4*) 17845 version_type=sunos 17846 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17847 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17848 shlibpath_var=LD_LIBRARY_PATH 17849 shlibpath_overrides_runpath=yes 17850 if test yes = "$with_gnu_ld"; then 17851 need_lib_prefix=no 17852 fi 17853 need_version=yes 17854 ;; 17855 17856sysv4 | sysv4.3*) 17857 version_type=linux # correct to gnu/linux during the next big refactor 17858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17859 soname_spec='$libname$release$shared_ext$major' 17860 shlibpath_var=LD_LIBRARY_PATH 17861 case $host_vendor in 17862 sni) 17863 shlibpath_overrides_runpath=no 17864 need_lib_prefix=no 17865 runpath_var=LD_RUN_PATH 17866 ;; 17867 siemens) 17868 need_lib_prefix=no 17869 ;; 17870 motorola) 17871 need_lib_prefix=no 17872 need_version=no 17873 shlibpath_overrides_runpath=no 17874 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17875 ;; 17876 esac 17877 ;; 17878 17879sysv4*MP*) 17880 if test -d /usr/nec; then 17881 version_type=linux # correct to gnu/linux during the next big refactor 17882 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17883 soname_spec='$libname$shared_ext.$major' 17884 shlibpath_var=LD_LIBRARY_PATH 17885 fi 17886 ;; 17887 17888sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17889 version_type=sco 17890 need_lib_prefix=no 17891 need_version=no 17892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17893 soname_spec='$libname$release$shared_ext$major' 17894 shlibpath_var=LD_LIBRARY_PATH 17895 shlibpath_overrides_runpath=yes 17896 hardcode_into_libs=yes 17897 if test yes = "$with_gnu_ld"; then 17898 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17899 else 17900 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17901 case $host_os in 17902 sco3.2v5*) 17903 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17904 ;; 17905 esac 17906 fi 17907 sys_lib_dlsearch_path_spec='/usr/lib' 17908 ;; 17909 17910tpf*) 17911 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17912 version_type=linux # correct to gnu/linux during the next big refactor 17913 need_lib_prefix=no 17914 need_version=no 17915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17916 shlibpath_var=LD_LIBRARY_PATH 17917 shlibpath_overrides_runpath=no 17918 hardcode_into_libs=yes 17919 ;; 17920 17921uts4*) 17922 version_type=linux # correct to gnu/linux during the next big refactor 17923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17924 soname_spec='$libname$release$shared_ext$major' 17925 shlibpath_var=LD_LIBRARY_PATH 17926 ;; 17927 17928*) 17929 dynamic_linker=no 17930 ;; 17931esac 17932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17933$as_echo "$dynamic_linker" >&6; } 17934test no = "$dynamic_linker" && can_build_shared=no 17935 17936variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17937if test yes = "$GCC"; then 17938 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17939fi 17940 17941if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17942 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17943fi 17944 17945if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17946 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17947fi 17948 17949# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17950configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17951 17952# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17953func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17954 17955# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17956configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18055$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18056hardcode_action= 18057if test -n "$hardcode_libdir_flag_spec" || 18058 test -n "$runpath_var" || 18059 test yes = "$hardcode_automatic"; then 18060 18061 # We can hardcode non-existent directories. 18062 if test no != "$hardcode_direct" && 18063 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18064 # have to relink, otherwise we might link with an installed library 18065 # when we should be linking with a yet-to-be-installed one 18066 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18067 test no != "$hardcode_minus_L"; then 18068 # Linking always hardcodes the temporary library directory. 18069 hardcode_action=relink 18070 else 18071 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18072 hardcode_action=immediate 18073 fi 18074else 18075 # We cannot hardcode anything, or else we can only hardcode existing 18076 # directories. 18077 hardcode_action=unsupported 18078fi 18079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18080$as_echo "$hardcode_action" >&6; } 18081 18082if test relink = "$hardcode_action" || 18083 test yes = "$inherit_rpath"; then 18084 # Fast installation is not supported 18085 enable_fast_install=no 18086elif test yes = "$shlibpath_overrides_runpath" || 18087 test no = "$enable_shared"; then 18088 # Fast installation is not necessary 18089 enable_fast_install=needless 18090fi 18091 18092 18093 18094 18095 18096 18097 if test yes != "$enable_dlopen"; then 18098 enable_dlopen=unknown 18099 enable_dlopen_self=unknown 18100 enable_dlopen_self_static=unknown 18101else 18102 lt_cv_dlopen=no 18103 lt_cv_dlopen_libs= 18104 18105 case $host_os in 18106 beos*) 18107 lt_cv_dlopen=load_add_on 18108 lt_cv_dlopen_libs= 18109 lt_cv_dlopen_self=yes 18110 ;; 18111 18112 mingw* | pw32* | cegcc*) 18113 lt_cv_dlopen=LoadLibrary 18114 lt_cv_dlopen_libs= 18115 ;; 18116 18117 cygwin*) 18118 lt_cv_dlopen=dlopen 18119 lt_cv_dlopen_libs= 18120 ;; 18121 18122 darwin*) 18123 # if libdl is installed we need to link against it 18124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18125$as_echo_n "checking for dlopen in -ldl... " >&6; } 18126if ${ac_cv_lib_dl_dlopen+:} false; then : 18127 $as_echo_n "(cached) " >&6 18128else 18129 ac_check_lib_save_LIBS=$LIBS 18130LIBS="-ldl $LIBS" 18131cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18132/* end confdefs.h. */ 18133 18134/* Override any GCC internal prototype to avoid an error. 18135 Use char because int might match the return type of a GCC 18136 builtin and then its argument prototype would still apply. */ 18137#ifdef __cplusplus 18138extern "C" 18139#endif 18140char dlopen (); 18141int 18142main () 18143{ 18144return dlopen (); 18145 ; 18146 return 0; 18147} 18148_ACEOF 18149if ac_fn_c_try_link "$LINENO"; then : 18150 ac_cv_lib_dl_dlopen=yes 18151else 18152 ac_cv_lib_dl_dlopen=no 18153fi 18154rm -f core conftest.err conftest.$ac_objext \ 18155 conftest$ac_exeext conftest.$ac_ext 18156LIBS=$ac_check_lib_save_LIBS 18157fi 18158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18159$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18160if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18161 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18162else 18163 18164 lt_cv_dlopen=dyld 18165 lt_cv_dlopen_libs= 18166 lt_cv_dlopen_self=yes 18167 18168fi 18169 18170 ;; 18171 18172 tpf*) 18173 # Don't try to run any link tests for TPF. We know it's impossible 18174 # because TPF is a cross-compiler, and we know how we open DSOs. 18175 lt_cv_dlopen=dlopen 18176 lt_cv_dlopen_libs= 18177 lt_cv_dlopen_self=no 18178 ;; 18179 18180 *) 18181 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18182if test "x$ac_cv_func_shl_load" = xyes; then : 18183 lt_cv_dlopen=shl_load 18184else 18185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18186$as_echo_n "checking for shl_load in -ldld... " >&6; } 18187if ${ac_cv_lib_dld_shl_load+:} false; then : 18188 $as_echo_n "(cached) " >&6 18189else 18190 ac_check_lib_save_LIBS=$LIBS 18191LIBS="-ldld $LIBS" 18192cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18193/* end confdefs.h. */ 18194 18195/* Override any GCC internal prototype to avoid an error. 18196 Use char because int might match the return type of a GCC 18197 builtin and then its argument prototype would still apply. */ 18198#ifdef __cplusplus 18199extern "C" 18200#endif 18201char shl_load (); 18202int 18203main () 18204{ 18205return shl_load (); 18206 ; 18207 return 0; 18208} 18209_ACEOF 18210if ac_fn_c_try_link "$LINENO"; then : 18211 ac_cv_lib_dld_shl_load=yes 18212else 18213 ac_cv_lib_dld_shl_load=no 18214fi 18215rm -f core conftest.err conftest.$ac_objext \ 18216 conftest$ac_exeext conftest.$ac_ext 18217LIBS=$ac_check_lib_save_LIBS 18218fi 18219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18220$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 18221if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 18222 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18223else 18224 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18225if test "x$ac_cv_func_dlopen" = xyes; then : 18226 lt_cv_dlopen=dlopen 18227else 18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18229$as_echo_n "checking for dlopen in -ldl... " >&6; } 18230if ${ac_cv_lib_dl_dlopen+:} false; then : 18231 $as_echo_n "(cached) " >&6 18232else 18233 ac_check_lib_save_LIBS=$LIBS 18234LIBS="-ldl $LIBS" 18235cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18236/* end confdefs.h. */ 18237 18238/* Override any GCC internal prototype to avoid an error. 18239 Use char because int might match the return type of a GCC 18240 builtin and then its argument prototype would still apply. */ 18241#ifdef __cplusplus 18242extern "C" 18243#endif 18244char dlopen (); 18245int 18246main () 18247{ 18248return dlopen (); 18249 ; 18250 return 0; 18251} 18252_ACEOF 18253if ac_fn_c_try_link "$LINENO"; then : 18254 ac_cv_lib_dl_dlopen=yes 18255else 18256 ac_cv_lib_dl_dlopen=no 18257fi 18258rm -f core conftest.err conftest.$ac_objext \ 18259 conftest$ac_exeext conftest.$ac_ext 18260LIBS=$ac_check_lib_save_LIBS 18261fi 18262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18263$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18264if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18265 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18266else 18267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18268$as_echo_n "checking for dlopen in -lsvld... " >&6; } 18269if ${ac_cv_lib_svld_dlopen+:} false; then : 18270 $as_echo_n "(cached) " >&6 18271else 18272 ac_check_lib_save_LIBS=$LIBS 18273LIBS="-lsvld $LIBS" 18274cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18275/* end confdefs.h. */ 18276 18277/* Override any GCC internal prototype to avoid an error. 18278 Use char because int might match the return type of a GCC 18279 builtin and then its argument prototype would still apply. */ 18280#ifdef __cplusplus 18281extern "C" 18282#endif 18283char dlopen (); 18284int 18285main () 18286{ 18287return dlopen (); 18288 ; 18289 return 0; 18290} 18291_ACEOF 18292if ac_fn_c_try_link "$LINENO"; then : 18293 ac_cv_lib_svld_dlopen=yes 18294else 18295 ac_cv_lib_svld_dlopen=no 18296fi 18297rm -f core conftest.err conftest.$ac_objext \ 18298 conftest$ac_exeext conftest.$ac_ext 18299LIBS=$ac_check_lib_save_LIBS 18300fi 18301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18302$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18303if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18304 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18305else 18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18307$as_echo_n "checking for dld_link in -ldld... " >&6; } 18308if ${ac_cv_lib_dld_dld_link+:} false; then : 18309 $as_echo_n "(cached) " >&6 18310else 18311 ac_check_lib_save_LIBS=$LIBS 18312LIBS="-ldld $LIBS" 18313cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18314/* end confdefs.h. */ 18315 18316/* Override any GCC internal prototype to avoid an error. 18317 Use char because int might match the return type of a GCC 18318 builtin and then its argument prototype would still apply. */ 18319#ifdef __cplusplus 18320extern "C" 18321#endif 18322char dld_link (); 18323int 18324main () 18325{ 18326return dld_link (); 18327 ; 18328 return 0; 18329} 18330_ACEOF 18331if ac_fn_c_try_link "$LINENO"; then : 18332 ac_cv_lib_dld_dld_link=yes 18333else 18334 ac_cv_lib_dld_dld_link=no 18335fi 18336rm -f core conftest.err conftest.$ac_objext \ 18337 conftest$ac_exeext conftest.$ac_ext 18338LIBS=$ac_check_lib_save_LIBS 18339fi 18340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18341$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18342if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18343 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18344fi 18345 18346 18347fi 18348 18349 18350fi 18351 18352 18353fi 18354 18355 18356fi 18357 18358 18359fi 18360 18361 ;; 18362 esac 18363 18364 if test no = "$lt_cv_dlopen"; then 18365 enable_dlopen=no 18366 else 18367 enable_dlopen=yes 18368 fi 18369 18370 case $lt_cv_dlopen in 18371 dlopen) 18372 save_CPPFLAGS=$CPPFLAGS 18373 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18374 18375 save_LDFLAGS=$LDFLAGS 18376 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18377 18378 save_LIBS=$LIBS 18379 LIBS="$lt_cv_dlopen_libs $LIBS" 18380 18381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18382$as_echo_n "checking whether a program can dlopen itself... " >&6; } 18383if ${lt_cv_dlopen_self+:} false; then : 18384 $as_echo_n "(cached) " >&6 18385else 18386 if test yes = "$cross_compiling"; then : 18387 lt_cv_dlopen_self=cross 18388else 18389 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18390 lt_status=$lt_dlunknown 18391 cat > conftest.$ac_ext <<_LT_EOF 18392#line $LINENO "configure" 18393#include "confdefs.h" 18394 18395#if HAVE_DLFCN_H 18396#include <dlfcn.h> 18397#endif 18398 18399#include <stdio.h> 18400 18401#ifdef RTLD_GLOBAL 18402# define LT_DLGLOBAL RTLD_GLOBAL 18403#else 18404# ifdef DL_GLOBAL 18405# define LT_DLGLOBAL DL_GLOBAL 18406# else 18407# define LT_DLGLOBAL 0 18408# endif 18409#endif 18410 18411/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18412 find out it does not work in some platform. */ 18413#ifndef LT_DLLAZY_OR_NOW 18414# ifdef RTLD_LAZY 18415# define LT_DLLAZY_OR_NOW RTLD_LAZY 18416# else 18417# ifdef DL_LAZY 18418# define LT_DLLAZY_OR_NOW DL_LAZY 18419# else 18420# ifdef RTLD_NOW 18421# define LT_DLLAZY_OR_NOW RTLD_NOW 18422# else 18423# ifdef DL_NOW 18424# define LT_DLLAZY_OR_NOW DL_NOW 18425# else 18426# define LT_DLLAZY_OR_NOW 0 18427# endif 18428# endif 18429# endif 18430# endif 18431#endif 18432 18433/* When -fvisibility=hidden is used, assume the code has been annotated 18434 correspondingly for the symbols needed. */ 18435#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18436int fnord () __attribute__((visibility("default"))); 18437#endif 18438 18439int fnord () { return 42; } 18440int main () 18441{ 18442 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18443 int status = $lt_dlunknown; 18444 18445 if (self) 18446 { 18447 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18448 else 18449 { 18450 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18451 else puts (dlerror ()); 18452 } 18453 /* dlclose (self); */ 18454 } 18455 else 18456 puts (dlerror ()); 18457 18458 return status; 18459} 18460_LT_EOF 18461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18462 (eval $ac_link) 2>&5 18463 ac_status=$? 18464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18465 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18466 (./conftest; exit; ) >&5 2>/dev/null 18467 lt_status=$? 18468 case x$lt_status in 18469 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18470 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18471 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18472 esac 18473 else : 18474 # compilation failed 18475 lt_cv_dlopen_self=no 18476 fi 18477fi 18478rm -fr conftest* 18479 18480 18481fi 18482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18483$as_echo "$lt_cv_dlopen_self" >&6; } 18484 18485 if test yes = "$lt_cv_dlopen_self"; then 18486 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18488$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18489if ${lt_cv_dlopen_self_static+:} false; then : 18490 $as_echo_n "(cached) " >&6 18491else 18492 if test yes = "$cross_compiling"; then : 18493 lt_cv_dlopen_self_static=cross 18494else 18495 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18496 lt_status=$lt_dlunknown 18497 cat > conftest.$ac_ext <<_LT_EOF 18498#line $LINENO "configure" 18499#include "confdefs.h" 18500 18501#if HAVE_DLFCN_H 18502#include <dlfcn.h> 18503#endif 18504 18505#include <stdio.h> 18506 18507#ifdef RTLD_GLOBAL 18508# define LT_DLGLOBAL RTLD_GLOBAL 18509#else 18510# ifdef DL_GLOBAL 18511# define LT_DLGLOBAL DL_GLOBAL 18512# else 18513# define LT_DLGLOBAL 0 18514# endif 18515#endif 18516 18517/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18518 find out it does not work in some platform. */ 18519#ifndef LT_DLLAZY_OR_NOW 18520# ifdef RTLD_LAZY 18521# define LT_DLLAZY_OR_NOW RTLD_LAZY 18522# else 18523# ifdef DL_LAZY 18524# define LT_DLLAZY_OR_NOW DL_LAZY 18525# else 18526# ifdef RTLD_NOW 18527# define LT_DLLAZY_OR_NOW RTLD_NOW 18528# else 18529# ifdef DL_NOW 18530# define LT_DLLAZY_OR_NOW DL_NOW 18531# else 18532# define LT_DLLAZY_OR_NOW 0 18533# endif 18534# endif 18535# endif 18536# endif 18537#endif 18538 18539/* When -fvisibility=hidden is used, assume the code has been annotated 18540 correspondingly for the symbols needed. */ 18541#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18542int fnord () __attribute__((visibility("default"))); 18543#endif 18544 18545int fnord () { return 42; } 18546int main () 18547{ 18548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18549 int status = $lt_dlunknown; 18550 18551 if (self) 18552 { 18553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18554 else 18555 { 18556 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18557 else puts (dlerror ()); 18558 } 18559 /* dlclose (self); */ 18560 } 18561 else 18562 puts (dlerror ()); 18563 18564 return status; 18565} 18566_LT_EOF 18567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18568 (eval $ac_link) 2>&5 18569 ac_status=$? 18570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18571 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18572 (./conftest; exit; ) >&5 2>/dev/null 18573 lt_status=$? 18574 case x$lt_status in 18575 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18576 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18577 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18578 esac 18579 else : 18580 # compilation failed 18581 lt_cv_dlopen_self_static=no 18582 fi 18583fi 18584rm -fr conftest* 18585 18586 18587fi 18588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18589$as_echo "$lt_cv_dlopen_self_static" >&6; } 18590 fi 18591 18592 CPPFLAGS=$save_CPPFLAGS 18593 LDFLAGS=$save_LDFLAGS 18594 LIBS=$save_LIBS 18595 ;; 18596 esac 18597 18598 case $lt_cv_dlopen_self in 18599 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18600 *) enable_dlopen_self=unknown ;; 18601 esac 18602 18603 case $lt_cv_dlopen_self_static in 18604 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18605 *) enable_dlopen_self_static=unknown ;; 18606 esac 18607fi 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624 18625striplib= 18626old_striplib= 18627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18628$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18629if test -z "$STRIP"; then 18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18631$as_echo "no" >&6; } 18632else 18633 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18634 old_striplib="$STRIP --strip-debug" 18635 striplib="$STRIP --strip-unneeded" 18636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18637$as_echo "yes" >&6; } 18638 else 18639 case $host_os in 18640 darwin*) 18641 # FIXME - insert some real tests, host_os isn't really good enough 18642 striplib="$STRIP -x" 18643 old_striplib="$STRIP -S" 18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18645$as_echo "yes" >&6; } 18646 ;; 18647 freebsd*) 18648 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 18649 old_striplib="$STRIP --strip-debug" 18650 striplib="$STRIP --strip-unneeded" 18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18652$as_echo "yes" >&6; } 18653 else 18654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18655$as_echo "no" >&6; } 18656 fi 18657 ;; 18658 *) 18659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18660$as_echo "no" >&6; } 18661 ;; 18662 esac 18663 fi 18664fi 18665 18666 18667 18668 18669 18670 18671 18672 18673 18674 18675 18676 18677 # Report what library types will actually be built 18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18679$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18681$as_echo "$can_build_shared" >&6; } 18682 18683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18684$as_echo_n "checking whether to build shared libraries... " >&6; } 18685 test no = "$can_build_shared" && enable_shared=no 18686 18687 # On AIX, shared libraries and static libraries use the same namespace, and 18688 # are all built from PIC. 18689 case $host_os in 18690 aix3*) 18691 test yes = "$enable_shared" && enable_static=no 18692 if test -n "$RANLIB"; then 18693 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18694 postinstall_cmds='$RANLIB $lib' 18695 fi 18696 ;; 18697 18698 aix[4-9]*) 18699 if test ia64 != "$host_cpu"; then 18700 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18701 yes,aix,yes) ;; # shared object as lib.so file only 18702 yes,svr4,*) ;; # shared object as lib.so archive member only 18703 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18704 esac 18705 fi 18706 ;; 18707 esac 18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18709$as_echo "$enable_shared" >&6; } 18710 18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18712$as_echo_n "checking whether to build static libraries... " >&6; } 18713 # Make sure either enable_shared or enable_static is yes. 18714 test yes = "$enable_shared" || enable_static=yes 18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18716$as_echo "$enable_static" >&6; } 18717 18718 18719 18720 18721fi 18722ac_ext=c 18723ac_cpp='$CPP $CPPFLAGS' 18724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18726ac_compiler_gnu=$ac_cv_c_compiler_gnu 18727 18728CC=$lt_save_CC 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742 18743 18744 ac_config_commands="$ac_config_commands libtool" 18745 18746 18747 18748 18749# Only expand once: 18750 18751 18752 18753# Checks for programs. 18754 18755 18756if test "x$GCC" = "xyes"; then 18757 CPPFLAGS="$CPPFLAGS -Wall" 18758fi 18759 18760 18761 18762# Define a configure option for an alternate module directory 18763 18764# Check whether --with-xorg-module-dir was given. 18765if test "${with_xorg_module_dir+set}" = set; then : 18766 withval=$with_xorg_module_dir; moduledir="$withval" 18767else 18768 moduledir="$libdir/xorg/modules" 18769fi 18770 18771 18772# Store the list of server defined optional extensions in REQUIRED_MODULES 18773 18774 18775 SAVE_CFLAGS="$CFLAGS" 18776 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18778/* end confdefs.h. */ 18779 18780#include "xorg-server.h" 18781#if !defined RANDR 18782#error RANDR not defined 18783#endif 18784 18785int 18786main () 18787{ 18788 18789 ; 18790 return 0; 18791} 18792_ACEOF 18793if ac_fn_c_try_compile "$LINENO"; then : 18794 _EXT_CHECK=yes 18795else 18796 _EXT_CHECK=no 18797fi 18798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18799 CFLAGS="$SAVE_CFLAGS" 18800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 18801$as_echo_n "checking if RANDR is defined... " >&6; } 18802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18803$as_echo "$_EXT_CHECK" >&6; } 18804 if test "$_EXT_CHECK" != no; then 18805 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 18806 fi 18807 18808 18809 18810 SAVE_CFLAGS="$CFLAGS" 18811 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18813/* end confdefs.h. */ 18814 18815#include "xorg-server.h" 18816#if !defined RENDER 18817#error RENDER not defined 18818#endif 18819 18820int 18821main () 18822{ 18823 18824 ; 18825 return 0; 18826} 18827_ACEOF 18828if ac_fn_c_try_compile "$LINENO"; then : 18829 _EXT_CHECK=yes 18830else 18831 _EXT_CHECK=no 18832fi 18833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18834 CFLAGS="$SAVE_CFLAGS" 18835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 18836$as_echo_n "checking if RENDER is defined... " >&6; } 18837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18838$as_echo "$_EXT_CHECK" >&6; } 18839 if test "$_EXT_CHECK" != no; then 18840 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 18841 fi 18842 18843 18844 18845 SAVE_CFLAGS="$CFLAGS" 18846 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18848/* end confdefs.h. */ 18849 18850#include "xorg-server.h" 18851#if !defined XV 18852#error XV not defined 18853#endif 18854 18855int 18856main () 18857{ 18858 18859 ; 18860 return 0; 18861} 18862_ACEOF 18863if ac_fn_c_try_compile "$LINENO"; then : 18864 _EXT_CHECK=yes 18865else 18866 _EXT_CHECK=no 18867fi 18868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18869 CFLAGS="$SAVE_CFLAGS" 18870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 18871$as_echo_n "checking if XV is defined... " >&6; } 18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18873$as_echo "$_EXT_CHECK" >&6; } 18874 if test "$_EXT_CHECK" != no; then 18875 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 18876 fi 18877 18878 18879 18880 SAVE_CFLAGS="$CFLAGS" 18881 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18883/* end confdefs.h. */ 18884 18885#include "xorg-server.h" 18886#if !defined DPMSExtension 18887#error DPMSExtension not defined 18888#endif 18889 18890int 18891main () 18892{ 18893 18894 ; 18895 return 0; 18896} 18897_ACEOF 18898if ac_fn_c_try_compile "$LINENO"; then : 18899 _EXT_CHECK=yes 18900else 18901 _EXT_CHECK=no 18902fi 18903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18904 CFLAGS="$SAVE_CFLAGS" 18905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 18906$as_echo_n "checking if DPMSExtension is defined... " >&6; } 18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18908$as_echo "$_EXT_CHECK" >&6; } 18909 if test "$_EXT_CHECK" != no; then 18910 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 18911 fi 18912 18913 18914# Checks for libraries. 18915 18916pkg_failed=no 18917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5 18918$as_echo_n "checking for LIBDRM... " >&6; } 18919 18920if test -n "$LIBDRM_CFLAGS"; then 18921 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" 18922 elif test -n "$PKG_CONFIG"; then 18923 if test -n "$PKG_CONFIG" && \ 18924 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.89\""; } >&5 18925 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.89") 2>&5 18926 ac_status=$? 18927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18928 test $ac_status = 0; }; then 18929 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.89" 2>/dev/null` 18930 test "x$?" != "x0" && pkg_failed=yes 18931else 18932 pkg_failed=yes 18933fi 18934 else 18935 pkg_failed=untried 18936fi 18937if test -n "$LIBDRM_LIBS"; then 18938 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" 18939 elif test -n "$PKG_CONFIG"; then 18940 if test -n "$PKG_CONFIG" && \ 18941 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.89\""; } >&5 18942 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.89") 2>&5 18943 ac_status=$? 18944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18945 test $ac_status = 0; }; then 18946 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.89" 2>/dev/null` 18947 test "x$?" != "x0" && pkg_failed=yes 18948else 18949 pkg_failed=yes 18950fi 18951 else 18952 pkg_failed=untried 18953fi 18954 18955 18956 18957if test $pkg_failed = yes; then 18958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18959$as_echo "no" >&6; } 18960 18961if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18962 _pkg_short_errors_supported=yes 18963else 18964 _pkg_short_errors_supported=no 18965fi 18966 if test $_pkg_short_errors_supported = yes; then 18967 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.89" 2>&1` 18968 else 18969 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.89" 2>&1` 18970 fi 18971 # Put the nasty error message in config.log where it belongs 18972 echo "$LIBDRM_PKG_ERRORS" >&5 18973 18974 as_fn_error $? "Package requirements (libdrm >= 2.4.89) were not met: 18975 18976$LIBDRM_PKG_ERRORS 18977 18978Consider adjusting the PKG_CONFIG_PATH environment variable if you 18979installed software in a non-standard prefix. 18980 18981Alternatively, you may set the environment variables LIBDRM_CFLAGS 18982and LIBDRM_LIBS to avoid the need to call pkg-config. 18983See the pkg-config man page for more details." "$LINENO" 5 18984elif test $pkg_failed = untried; then 18985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18986$as_echo "no" >&6; } 18987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18989as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18990is in your PATH or set the PKG_CONFIG environment variable to the full 18991path to pkg-config. 18992 18993Alternatively, you may set the environment variables LIBDRM_CFLAGS 18994and LIBDRM_LIBS to avoid the need to call pkg-config. 18995See the pkg-config man page for more details. 18996 18997To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18998See \`config.log' for more details" "$LINENO" 5; } 18999else 19000 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS 19001 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS 19002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19003$as_echo "yes" >&6; } 19004 19005fi 19006 19007pkg_failed=no 19008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_RADEON" >&5 19009$as_echo_n "checking for LIBDRM_RADEON... " >&6; } 19010 19011if test -n "$LIBDRM_RADEON_CFLAGS"; then 19012 pkg_cv_LIBDRM_RADEON_CFLAGS="$LIBDRM_RADEON_CFLAGS" 19013 elif test -n "$PKG_CONFIG"; then 19014 if test -n "$PKG_CONFIG" && \ 19015 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon\""; } >&5 19016 ($PKG_CONFIG --exists --print-errors "libdrm_radeon") 2>&5 19017 ac_status=$? 19018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19019 test $ac_status = 0; }; then 19020 pkg_cv_LIBDRM_RADEON_CFLAGS=`$PKG_CONFIG --cflags "libdrm_radeon" 2>/dev/null` 19021 test "x$?" != "x0" && pkg_failed=yes 19022else 19023 pkg_failed=yes 19024fi 19025 else 19026 pkg_failed=untried 19027fi 19028if test -n "$LIBDRM_RADEON_LIBS"; then 19029 pkg_cv_LIBDRM_RADEON_LIBS="$LIBDRM_RADEON_LIBS" 19030 elif test -n "$PKG_CONFIG"; then 19031 if test -n "$PKG_CONFIG" && \ 19032 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon\""; } >&5 19033 ($PKG_CONFIG --exists --print-errors "libdrm_radeon") 2>&5 19034 ac_status=$? 19035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19036 test $ac_status = 0; }; then 19037 pkg_cv_LIBDRM_RADEON_LIBS=`$PKG_CONFIG --libs "libdrm_radeon" 2>/dev/null` 19038 test "x$?" != "x0" && pkg_failed=yes 19039else 19040 pkg_failed=yes 19041fi 19042 else 19043 pkg_failed=untried 19044fi 19045 19046 19047 19048if test $pkg_failed = yes; then 19049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19050$as_echo "no" >&6; } 19051 19052if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19053 _pkg_short_errors_supported=yes 19054else 19055 _pkg_short_errors_supported=no 19056fi 19057 if test $_pkg_short_errors_supported = yes; then 19058 LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_radeon" 2>&1` 19059 else 19060 LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_radeon" 2>&1` 19061 fi 19062 # Put the nasty error message in config.log where it belongs 19063 echo "$LIBDRM_RADEON_PKG_ERRORS" >&5 19064 19065 as_fn_error $? "Package requirements (libdrm_radeon) were not met: 19066 19067$LIBDRM_RADEON_PKG_ERRORS 19068 19069Consider adjusting the PKG_CONFIG_PATH environment variable if you 19070installed software in a non-standard prefix. 19071 19072Alternatively, you may set the environment variables LIBDRM_RADEON_CFLAGS 19073and LIBDRM_RADEON_LIBS to avoid the need to call pkg-config. 19074See the pkg-config man page for more details." "$LINENO" 5 19075elif test $pkg_failed = untried; then 19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19077$as_echo "no" >&6; } 19078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19080as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19081is in your PATH or set the PKG_CONFIG environment variable to the full 19082path to pkg-config. 19083 19084Alternatively, you may set the environment variables LIBDRM_RADEON_CFLAGS 19085and LIBDRM_RADEON_LIBS to avoid the need to call pkg-config. 19086See the pkg-config man page for more details. 19087 19088To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19089See \`config.log' for more details" "$LINENO" 5; } 19090else 19091 LIBDRM_RADEON_CFLAGS=$pkg_cv_LIBDRM_RADEON_CFLAGS 19092 LIBDRM_RADEON_LIBS=$pkg_cv_LIBDRM_RADEON_LIBS 19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19094$as_echo "yes" >&6; } 19095 19096fi 19097 19098# Obtain compiler/linker options for the driver dependencies 19099 19100pkg_failed=no 19101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19102$as_echo_n "checking for XORG... " >&6; } 19103 19104if test -n "$XORG_CFLAGS"; then 19105 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19106 elif test -n "$PKG_CONFIG"; then 19107 if test -n "$PKG_CONFIG" && \ 19108 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.13 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5 19109 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5 19110 ac_status=$? 19111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19112 test $ac_status = 0; }; then 19113 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null` 19114 test "x$?" != "x0" && pkg_failed=yes 19115else 19116 pkg_failed=yes 19117fi 19118 else 19119 pkg_failed=untried 19120fi 19121if test -n "$XORG_LIBS"; then 19122 pkg_cv_XORG_LIBS="$XORG_LIBS" 19123 elif test -n "$PKG_CONFIG"; then 19124 if test -n "$PKG_CONFIG" && \ 19125 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.13 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5 19126 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5 19127 ac_status=$? 19128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19129 test $ac_status = 0; }; then 19130 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null` 19131 test "x$?" != "x0" && pkg_failed=yes 19132else 19133 pkg_failed=yes 19134fi 19135 else 19136 pkg_failed=untried 19137fi 19138 19139 19140 19141if test $pkg_failed = yes; then 19142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19143$as_echo "no" >&6; } 19144 19145if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19146 _pkg_short_errors_supported=yes 19147else 19148 _pkg_short_errors_supported=no 19149fi 19150 if test $_pkg_short_errors_supported = yes; then 19151 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1` 19152 else 19153 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1` 19154 fi 19155 # Put the nasty error message in config.log where it belongs 19156 echo "$XORG_PKG_ERRORS" >&5 19157 19158 as_fn_error $? "Package requirements (xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES) were not met: 19159 19160$XORG_PKG_ERRORS 19161 19162Consider adjusting the PKG_CONFIG_PATH environment variable if you 19163installed software in a non-standard prefix. 19164 19165Alternatively, you may set the environment variables XORG_CFLAGS 19166and XORG_LIBS to avoid the need to call pkg-config. 19167See the pkg-config man page for more details." "$LINENO" 5 19168elif test $pkg_failed = untried; then 19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19170$as_echo "no" >&6; } 19171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19173as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19174is in your PATH or set the PKG_CONFIG environment variable to the full 19175path to pkg-config. 19176 19177Alternatively, you may set the environment variables XORG_CFLAGS 19178and XORG_LIBS to avoid the need to call pkg-config. 19179See the pkg-config man page for more details. 19180 19181To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19182See \`config.log' for more details" "$LINENO" 5; } 19183else 19184 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19185 XORG_LIBS=$pkg_cv_XORG_LIBS 19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19187$as_echo "yes" >&6; } 19188 19189fi 19190 19191pkg_failed=no 19192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 19193$as_echo_n "checking for XEXT... " >&6; } 19194 19195if test -n "$XEXT_CFLAGS"; then 19196 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 19197 elif test -n "$PKG_CONFIG"; then 19198 if test -n "$PKG_CONFIG" && \ 19199 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19200 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19201 ac_status=$? 19202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19203 test $ac_status = 0; }; then 19204 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 19205 test "x$?" != "x0" && pkg_failed=yes 19206else 19207 pkg_failed=yes 19208fi 19209 else 19210 pkg_failed=untried 19211fi 19212if test -n "$XEXT_LIBS"; then 19213 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 19214 elif test -n "$PKG_CONFIG"; then 19215 if test -n "$PKG_CONFIG" && \ 19216 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19217 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19218 ac_status=$? 19219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19220 test $ac_status = 0; }; then 19221 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 19222 test "x$?" != "x0" && pkg_failed=yes 19223else 19224 pkg_failed=yes 19225fi 19226 else 19227 pkg_failed=untried 19228fi 19229 19230 19231 19232if test $pkg_failed = yes; then 19233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19234$as_echo "no" >&6; } 19235 19236if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19237 _pkg_short_errors_supported=yes 19238else 19239 _pkg_short_errors_supported=no 19240fi 19241 if test $_pkg_short_errors_supported = yes; then 19242 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19243 else 19244 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19245 fi 19246 # Put the nasty error message in config.log where it belongs 19247 echo "$XEXT_PKG_ERRORS" >&5 19248 19249 HAVE_XEXTPROTO_71="no" 19250elif test $pkg_failed = untried; then 19251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19252$as_echo "no" >&6; } 19253 HAVE_XEXTPROTO_71="no" 19254else 19255 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 19256 XEXT_LIBS=$pkg_cv_XEXT_LIBS 19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19258$as_echo "yes" >&6; } 19259 HAVE_XEXTPROTO_71="yes"; 19260$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 19261 19262fi 19263 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 19264 HAVE_XEXTPROTO_71_TRUE= 19265 HAVE_XEXTPROTO_71_FALSE='#' 19266else 19267 HAVE_XEXTPROTO_71_TRUE='#' 19268 HAVE_XEXTPROTO_71_FALSE= 19269fi 19270 19271 19272# Section "OutputClass" is only supported as of xserver 1.16 19273if test -n "$PKG_CONFIG" && \ 19274 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.16\""; } >&5 19275 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.16") 2>&5 19276 ac_status=$? 19277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19278 test $ac_status = 0; }; then 19279 sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server` 19280else 19281 sysconfigdir="" 19282fi 19283 if test "x$sysconfigdir" != "x"; then 19284 HAS_XORG_CONF_DIR_TRUE= 19285 HAS_XORG_CONF_DIR_FALSE='#' 19286else 19287 HAS_XORG_CONF_DIR_TRUE='#' 19288 HAS_XORG_CONF_DIR_FALSE= 19289fi 19290 19291 19292# Define a configure option for an alternate X Server configuration directory 19293 19294# Check whether --with-xorg-conf-dir was given. 19295if test "${with_xorg_conf_dir+set}" = set; then : 19296 withval=$with_xorg_conf_dir; configdir="$withval" 19297else 19298 configdir='${prefix}/share/X11/xorg.conf.d' 19299fi 19300 19301 19302 19303# Check whether --enable-udev was given. 19304if test "${enable_udev+set}" = set; then : 19305 enableval=$enable_udev; enable_udev="$enableval" 19306else 19307 enable_udev=auto 19308fi 19309 19310if test "x$enable_udev" != "xno"; then 19311 19312pkg_failed=no 19313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5 19314$as_echo_n "checking for LIBUDEV... " >&6; } 19315 19316if test -n "$LIBUDEV_CFLAGS"; then 19317 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS" 19318 elif test -n "$PKG_CONFIG"; then 19319 if test -n "$PKG_CONFIG" && \ 19320 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 19321 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 19322 ac_status=$? 19323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19324 test $ac_status = 0; }; then 19325 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null` 19326 test "x$?" != "x0" && pkg_failed=yes 19327else 19328 pkg_failed=yes 19329fi 19330 else 19331 pkg_failed=untried 19332fi 19333if test -n "$LIBUDEV_LIBS"; then 19334 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS" 19335 elif test -n "$PKG_CONFIG"; then 19336 if test -n "$PKG_CONFIG" && \ 19337 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 19338 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 19339 ac_status=$? 19340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19341 test $ac_status = 0; }; then 19342 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null` 19343 test "x$?" != "x0" && pkg_failed=yes 19344else 19345 pkg_failed=yes 19346fi 19347 else 19348 pkg_failed=untried 19349fi 19350 19351 19352 19353if test $pkg_failed = yes; then 19354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19355$as_echo "no" >&6; } 19356 19357if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19358 _pkg_short_errors_supported=yes 19359else 19360 _pkg_short_errors_supported=no 19361fi 19362 if test $_pkg_short_errors_supported = yes; then 19363 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1` 19364 else 19365 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1` 19366 fi 19367 # Put the nasty error message in config.log where it belongs 19368 echo "$LIBUDEV_PKG_ERRORS" >&5 19369 19370 LIBUDEV=no 19371elif test $pkg_failed = untried; then 19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19373$as_echo "no" >&6; } 19374 LIBUDEV=no 19375else 19376 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS 19377 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS 19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19379$as_echo "yes" >&6; } 19380 LIBUDEV=yes 19381fi 19382 if test "x$LIBUDEV" = xyes; then 19383 19384$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h 19385 19386 elif test "x$enable_udev" != "xauto"; then 19387 as_fn_error $? "Building with udev requested but libudev not found" "$LINENO" 5 19388 fi 19389fi 19390 if test x$LIBUDEV = xyes; then 19391 LIBUDEV_TRUE= 19392 LIBUDEV_FALSE='#' 19393else 19394 LIBUDEV_TRUE='#' 19395 LIBUDEV_FALSE= 19396fi 19397 19398 19399SAVE_CPPFLAGS="$CPPFLAGS" 19400CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 19401 19402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5 19403$as_echo_n "checking whether to include GLAMOR support... " >&6; } 19404# Check whether --enable-glamor was given. 19405if test "${enable_glamor+set}" = set; then : 19406 enableval=$enable_glamor; GLAMOR="$enableval" 19407else 19408 GLAMOR=yes 19409fi 19410 19411 19412if test "x$GLAMOR" != "xno"; then 19413 for ac_header in glamor.h 19414do : 19415 ac_fn_c_check_header_compile "$LINENO" "glamor.h" "ac_cv_header_glamor_h" "#include \"xorg-server.h\" 19416" 19417if test "x$ac_cv_header_glamor_h" = xyes; then : 19418 cat >>confdefs.h <<_ACEOF 19419#define HAVE_GLAMOR_H 1 19420_ACEOF 19421 GLAMOR_H="yes" 19422else 19423 GLAMOR_H="no" 19424fi 19425 19426done 19427 19428 19429 if test "x$GLAMOR_H" = xyes; then 19430 ac_fn_c_check_decl "$LINENO" "GLAMOR_NO_DRI3" "ac_cv_have_decl_GLAMOR_NO_DRI3" "#include \"xorg-server.h\" 19431 #include \"glamor.h\" 19432" 19433if test "x$ac_cv_have_decl_GLAMOR_NO_DRI3" = xyes; then : 19434 GLAMOR_XSERVER="yes" 19435else 19436 GLAMOR_XSERVER="no" 19437fi 19438 19439 19440 ac_fn_c_check_decl "$LINENO" "glamor_glyphs_init" "ac_cv_have_decl_glamor_glyphs_init" "#include \"xorg-server.h\" 19441 #include \"glamor.h\" 19442" 19443if test "x$ac_cv_have_decl_glamor_glyphs_init" = xyes; then : 19444 19445$as_echo "#define HAVE_GLAMOR_GLYPHS_INIT 1" >>confdefs.h 19446 19447fi 19448 19449 19450 ac_fn_c_check_decl "$LINENO" "glamor_egl_destroy_textured_pixmap" "ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" "#include \"xorg-server.h\" 19451 #include \"glamor.h\" 19452" 19453if test "x$ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" = xyes; then : 19454 19455$as_echo "#define HAVE_GLAMOR_EGL_DESTROY_TEXTURED_PIXMAP 1" >>confdefs.h 19456 19457fi 19458 19459 19460 ac_fn_c_check_decl "$LINENO" "glamor_finish" "ac_cv_have_decl_glamor_finish" "#include \"xorg-server.h\" 19461 #include \"glamor.h\" 19462" 19463if test "x$ac_cv_have_decl_glamor_finish" = xyes; then : 19464 19465$as_echo "#define HAVE_GLAMOR_FINISH 1" >>confdefs.h 19466 19467else 19468 19469pkg_failed=no 19470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGL" >&5 19471$as_echo_n "checking for LIBGL... " >&6; } 19472 19473if test -n "$LIBGL_CFLAGS"; then 19474 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS" 19475 elif test -n "$PKG_CONFIG"; then 19476 if test -n "$PKG_CONFIG" && \ 19477 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5 19478 ($PKG_CONFIG --exists --print-errors "gl") 2>&5 19479 ac_status=$? 19480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19481 test $ac_status = 0; }; then 19482 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null` 19483 test "x$?" != "x0" && pkg_failed=yes 19484else 19485 pkg_failed=yes 19486fi 19487 else 19488 pkg_failed=untried 19489fi 19490if test -n "$LIBGL_LIBS"; then 19491 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS" 19492 elif test -n "$PKG_CONFIG"; then 19493 if test -n "$PKG_CONFIG" && \ 19494 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5 19495 ($PKG_CONFIG --exists --print-errors "gl") 2>&5 19496 ac_status=$? 19497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19498 test $ac_status = 0; }; then 19499 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null` 19500 test "x$?" != "x0" && pkg_failed=yes 19501else 19502 pkg_failed=yes 19503fi 19504 else 19505 pkg_failed=untried 19506fi 19507 19508 19509 19510if test $pkg_failed = yes; then 19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19512$as_echo "no" >&6; } 19513 19514if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19515 _pkg_short_errors_supported=yes 19516else 19517 _pkg_short_errors_supported=no 19518fi 19519 if test $_pkg_short_errors_supported = yes; then 19520 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl" 2>&1` 19521 else 19522 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl" 2>&1` 19523 fi 19524 # Put the nasty error message in config.log where it belongs 19525 echo "$LIBGL_PKG_ERRORS" >&5 19526 19527 as_fn_error $? "Package requirements (gl) were not met: 19528 19529$LIBGL_PKG_ERRORS 19530 19531Consider adjusting the PKG_CONFIG_PATH environment variable if you 19532installed software in a non-standard prefix. 19533 19534Alternatively, you may set the environment variables LIBGL_CFLAGS 19535and LIBGL_LIBS to avoid the need to call pkg-config. 19536See the pkg-config man page for more details." "$LINENO" 5 19537elif test $pkg_failed = untried; then 19538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19539$as_echo "no" >&6; } 19540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19542as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19543is in your PATH or set the PKG_CONFIG environment variable to the full 19544path to pkg-config. 19545 19546Alternatively, you may set the environment variables LIBGL_CFLAGS 19547and LIBGL_LIBS to avoid the need to call pkg-config. 19548See the pkg-config man page for more details. 19549 19550To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19551See \`config.log' for more details" "$LINENO" 5; } 19552else 19553 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS 19554 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS 19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19556$as_echo "yes" >&6; } 19557 19558fi 19559fi 19560 19561 fi 19562 19563 if test "x$GLAMOR_XSERVER" != xyes; then 19564 19565pkg_failed=no 19566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR" >&5 19567$as_echo_n "checking for LIBGLAMOR... " >&6; } 19568 19569if test -n "$LIBGLAMOR_CFLAGS"; then 19570 pkg_cv_LIBGLAMOR_CFLAGS="$LIBGLAMOR_CFLAGS" 19571 elif test -n "$PKG_CONFIG"; then 19572 if test -n "$PKG_CONFIG" && \ 19573 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5 19574 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5 19575 ac_status=$? 19576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19577 test $ac_status = 0; }; then 19578 pkg_cv_LIBGLAMOR_CFLAGS=`$PKG_CONFIG --cflags "glamor >= 0.6.0" 2>/dev/null` 19579 test "x$?" != "x0" && pkg_failed=yes 19580else 19581 pkg_failed=yes 19582fi 19583 else 19584 pkg_failed=untried 19585fi 19586if test -n "$LIBGLAMOR_LIBS"; then 19587 pkg_cv_LIBGLAMOR_LIBS="$LIBGLAMOR_LIBS" 19588 elif test -n "$PKG_CONFIG"; then 19589 if test -n "$PKG_CONFIG" && \ 19590 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5 19591 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5 19592 ac_status=$? 19593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19594 test $ac_status = 0; }; then 19595 pkg_cv_LIBGLAMOR_LIBS=`$PKG_CONFIG --libs "glamor >= 0.6.0" 2>/dev/null` 19596 test "x$?" != "x0" && pkg_failed=yes 19597else 19598 pkg_failed=yes 19599fi 19600 else 19601 pkg_failed=untried 19602fi 19603 19604 19605 19606if test $pkg_failed = yes; then 19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19608$as_echo "no" >&6; } 19609 19610if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19611 _pkg_short_errors_supported=yes 19612else 19613 _pkg_short_errors_supported=no 19614fi 19615 if test $_pkg_short_errors_supported = yes; then 19616 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1` 19617 else 19618 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1` 19619 fi 19620 # Put the nasty error message in config.log where it belongs 19621 echo "$LIBGLAMOR_PKG_ERRORS" >&5 19622 19623 as_fn_error $? "Package requirements (glamor >= 0.6.0) were not met: 19624 19625$LIBGLAMOR_PKG_ERRORS 19626 19627Consider adjusting the PKG_CONFIG_PATH environment variable if you 19628installed software in a non-standard prefix. 19629 19630Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS 19631and LIBGLAMOR_LIBS to avoid the need to call pkg-config. 19632See the pkg-config man page for more details." "$LINENO" 5 19633elif test $pkg_failed = untried; then 19634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19635$as_echo "no" >&6; } 19636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19638as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19639is in your PATH or set the PKG_CONFIG environment variable to the full 19640path to pkg-config. 19641 19642Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS 19643and LIBGLAMOR_LIBS to avoid the need to call pkg-config. 19644See the pkg-config man page for more details. 19645 19646To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19647See \`config.log' for more details" "$LINENO" 5; } 19648else 19649 LIBGLAMOR_CFLAGS=$pkg_cv_LIBGLAMOR_CFLAGS 19650 LIBGLAMOR_LIBS=$pkg_cv_LIBGLAMOR_LIBS 19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19652$as_echo "yes" >&6; } 19653 19654fi 19655 19656pkg_failed=no 19657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR_EGL" >&5 19658$as_echo_n "checking for LIBGLAMOR_EGL... " >&6; } 19659 19660if test -n "$LIBGLAMOR_EGL_CFLAGS"; then 19661 pkg_cv_LIBGLAMOR_EGL_CFLAGS="$LIBGLAMOR_EGL_CFLAGS" 19662 elif test -n "$PKG_CONFIG"; then 19663 if test -n "$PKG_CONFIG" && \ 19664 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5 19665 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5 19666 ac_status=$? 19667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19668 test $ac_status = 0; }; then 19669 pkg_cv_LIBGLAMOR_EGL_CFLAGS=`$PKG_CONFIG --cflags "glamor-egl" 2>/dev/null` 19670 test "x$?" != "x0" && pkg_failed=yes 19671else 19672 pkg_failed=yes 19673fi 19674 else 19675 pkg_failed=untried 19676fi 19677if test -n "$LIBGLAMOR_EGL_LIBS"; then 19678 pkg_cv_LIBGLAMOR_EGL_LIBS="$LIBGLAMOR_EGL_LIBS" 19679 elif test -n "$PKG_CONFIG"; then 19680 if test -n "$PKG_CONFIG" && \ 19681 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5 19682 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5 19683 ac_status=$? 19684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19685 test $ac_status = 0; }; then 19686 pkg_cv_LIBGLAMOR_EGL_LIBS=`$PKG_CONFIG --libs "glamor-egl" 2>/dev/null` 19687 test "x$?" != "x0" && pkg_failed=yes 19688else 19689 pkg_failed=yes 19690fi 19691 else 19692 pkg_failed=untried 19693fi 19694 19695 19696 19697if test $pkg_failed = yes; then 19698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19699$as_echo "no" >&6; } 19700 19701if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19702 _pkg_short_errors_supported=yes 19703else 19704 _pkg_short_errors_supported=no 19705fi 19706 if test $_pkg_short_errors_supported = yes; then 19707 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor-egl" 2>&1` 19708 else 19709 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor-egl" 2>&1` 19710 fi 19711 # Put the nasty error message in config.log where it belongs 19712 echo "$LIBGLAMOR_EGL_PKG_ERRORS" >&5 19713 19714 as_fn_error $? "Package requirements (glamor-egl) were not met: 19715 19716$LIBGLAMOR_EGL_PKG_ERRORS 19717 19718Consider adjusting the PKG_CONFIG_PATH environment variable if you 19719installed software in a non-standard prefix. 19720 19721Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS 19722and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config. 19723See the pkg-config man page for more details." "$LINENO" 5 19724elif test $pkg_failed = untried; then 19725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19726$as_echo "no" >&6; } 19727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19728$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19729as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19730is in your PATH or set the PKG_CONFIG environment variable to the full 19731path to pkg-config. 19732 19733Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS 19734and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config. 19735See the pkg-config man page for more details. 19736 19737To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19738See \`config.log' for more details" "$LINENO" 5; } 19739else 19740 LIBGLAMOR_EGL_CFLAGS=$pkg_cv_LIBGLAMOR_EGL_CFLAGS 19741 LIBGLAMOR_EGL_LIBS=$pkg_cv_LIBGLAMOR_EGL_LIBS 19742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19743$as_echo "yes" >&6; } 19744 19745fi 19746 fi 19747 19748 19749pkg_failed=no 19750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GBM" >&5 19751$as_echo_n "checking for GBM... " >&6; } 19752 19753if test -n "$GBM_CFLAGS"; then 19754 pkg_cv_GBM_CFLAGS="$GBM_CFLAGS" 19755 elif test -n "$PKG_CONFIG"; then 19756 if test -n "$PKG_CONFIG" && \ 19757 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 10.6\""; } >&5 19758 ($PKG_CONFIG --exists --print-errors "gbm >= 10.6") 2>&5 19759 ac_status=$? 19760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19761 test $ac_status = 0; }; then 19762 pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 10.6" 2>/dev/null` 19763 test "x$?" != "x0" && pkg_failed=yes 19764else 19765 pkg_failed=yes 19766fi 19767 else 19768 pkg_failed=untried 19769fi 19770if test -n "$GBM_LIBS"; then 19771 pkg_cv_GBM_LIBS="$GBM_LIBS" 19772 elif test -n "$PKG_CONFIG"; then 19773 if test -n "$PKG_CONFIG" && \ 19774 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 10.6\""; } >&5 19775 ($PKG_CONFIG --exists --print-errors "gbm >= 10.6") 2>&5 19776 ac_status=$? 19777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19778 test $ac_status = 0; }; then 19779 pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs "gbm >= 10.6" 2>/dev/null` 19780 test "x$?" != "x0" && pkg_failed=yes 19781else 19782 pkg_failed=yes 19783fi 19784 else 19785 pkg_failed=untried 19786fi 19787 19788 19789 19790if test $pkg_failed = yes; then 19791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19792$as_echo "no" >&6; } 19793 19794if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19795 _pkg_short_errors_supported=yes 19796else 19797 _pkg_short_errors_supported=no 19798fi 19799 if test $_pkg_short_errors_supported = yes; then 19800 GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 10.6" 2>&1` 19801 else 19802 GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 10.6" 2>&1` 19803 fi 19804 # Put the nasty error message in config.log where it belongs 19805 echo "$GBM_PKG_ERRORS" >&5 19806 19807 as_fn_error $? "Package requirements (gbm >= 10.6) were not met: 19808 19809$GBM_PKG_ERRORS 19810 19811Consider adjusting the PKG_CONFIG_PATH environment variable if you 19812installed software in a non-standard prefix. 19813 19814Alternatively, you may set the environment variables GBM_CFLAGS 19815and GBM_LIBS to avoid the need to call pkg-config. 19816See the pkg-config man page for more details." "$LINENO" 5 19817elif test $pkg_failed = untried; then 19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19819$as_echo "no" >&6; } 19820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19822as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19823is in your PATH or set the PKG_CONFIG environment variable to the full 19824path to pkg-config. 19825 19826Alternatively, you may set the environment variables GBM_CFLAGS 19827and GBM_LIBS to avoid the need to call pkg-config. 19828See the pkg-config man page for more details. 19829 19830To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19831See \`config.log' for more details" "$LINENO" 5; } 19832else 19833 GBM_CFLAGS=$pkg_cv_GBM_CFLAGS 19834 GBM_LIBS=$pkg_cv_GBM_LIBS 19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19836$as_echo "yes" >&6; } 19837 19838fi 19839 19840 19841$as_echo "#define USE_GLAMOR 1" >>confdefs.h 19842 19843else 19844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLAMOR" >&5 19845$as_echo "$GLAMOR" >&6; } 19846fi 19847 if test x$GLAMOR != xno; then 19848 GLAMOR_TRUE= 19849 GLAMOR_FALSE='#' 19850else 19851 GLAMOR_TRUE='#' 19852 GLAMOR_FALSE= 19853fi 19854 19855 19856ac_fn_c_check_decl "$LINENO" "RegionDuplicate" "ac_cv_have_decl_RegionDuplicate" "#include <xorg-server.h> 19857 #include <regionstr.h> 19858" 19859if test "x$ac_cv_have_decl_RegionDuplicate" = xyes; then : 19860 19861$as_echo "#define HAVE_REGIONDUPLICATE 1" >>confdefs.h 19862 19863fi 19864 19865 19866ac_fn_c_check_decl "$LINENO" "fbGlyphs" "ac_cv_have_decl_fbGlyphs" "#include <X11/Xmd.h> 19867 #include <X11/Xfuncproto.h> 19868 #include <X11/extensions/renderproto.h> 19869 #include <xorg-server.h> 19870 #include <picture.h> 19871 #include <glyphstr.h> 19872 #include <fbpict.h> 19873" 19874if test "x$ac_cv_have_decl_fbGlyphs" = xyes; then : 19875 19876$as_echo "#define HAVE_FBGLYPHS 1" >>confdefs.h 19877 19878fi 19879 19880 19881ac_fn_c_check_decl "$LINENO" "xf86CursorResetCursor" "ac_cv_have_decl_xf86CursorResetCursor" "#include <xorg-server.h> 19882 #include <xf86Cursor.h> 19883" 19884if test "x$ac_cv_have_decl_xf86CursorResetCursor" = xyes; then : 19885 19886$as_echo "#define HAVE_XF86_CURSOR_RESET_CURSOR 1" >>confdefs.h 19887 19888fi 19889 19890 19891for ac_header in misyncshm.h 19892do : 19893 ac_fn_c_check_header_compile "$LINENO" "misyncshm.h" "ac_cv_header_misyncshm_h" "#include <X11/Xdefs.h> 19894 #include <X11/Xfuncproto.h> 19895 #include <xorg-server.h> 19896 #include <screenint.h> 19897" 19898if test "x$ac_cv_header_misyncshm_h" = xyes; then : 19899 cat >>confdefs.h <<_ACEOF 19900#define HAVE_MISYNCSHM_H 1 19901_ACEOF 19902 19903fi 19904 19905done 19906 19907 19908for ac_header in present.h 19909do : 19910 ac_fn_c_check_header_compile "$LINENO" "present.h" "ac_cv_header_present_h" "#include <X11/Xmd.h> 19911 #include <X11/Xproto.h> 19912 #include \"xorg-server.h\" 19913 #include <X11/X.h> 19914" 19915if test "x$ac_cv_header_present_h" = xyes; then : 19916 cat >>confdefs.h <<_ACEOF 19917#define HAVE_PRESENT_H 1 19918_ACEOF 19919 19920fi 19921 19922done 19923 19924 19925for ac_header in dri3.h 19926do : 19927 ac_fn_c_check_header_compile "$LINENO" "dri3.h" "ac_cv_header_dri3_h" "#include <X11/Xmd.h> 19928 #include <xorg-server.h> 19929" 19930if test "x$ac_cv_header_dri3_h" = xyes; then : 19931 cat >>confdefs.h <<_ACEOF 19932#define HAVE_DRI3_H 1 19933_ACEOF 19934 19935fi 19936 19937done 19938 19939 19940CPPFLAGS="$SAVE_CPPFLAGS" 19941 19942 19943pkg_failed=no 19944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 19945$as_echo_n "checking for PCIACCESS... " >&6; } 19946 19947if test -n "$PCIACCESS_CFLAGS"; then 19948 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 19949 elif test -n "$PKG_CONFIG"; then 19950 if test -n "$PKG_CONFIG" && \ 19951 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 19952 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 19953 ac_status=$? 19954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19955 test $ac_status = 0; }; then 19956 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 19957 test "x$?" != "x0" && pkg_failed=yes 19958else 19959 pkg_failed=yes 19960fi 19961 else 19962 pkg_failed=untried 19963fi 19964if test -n "$PCIACCESS_LIBS"; then 19965 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 19966 elif test -n "$PKG_CONFIG"; then 19967 if test -n "$PKG_CONFIG" && \ 19968 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 19969 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 19970 ac_status=$? 19971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19972 test $ac_status = 0; }; then 19973 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 19974 test "x$?" != "x0" && pkg_failed=yes 19975else 19976 pkg_failed=yes 19977fi 19978 else 19979 pkg_failed=untried 19980fi 19981 19982 19983 19984if test $pkg_failed = yes; then 19985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19986$as_echo "no" >&6; } 19987 19988if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19989 _pkg_short_errors_supported=yes 19990else 19991 _pkg_short_errors_supported=no 19992fi 19993 if test $_pkg_short_errors_supported = yes; then 19994 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 19995 else 19996 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 19997 fi 19998 # Put the nasty error message in config.log where it belongs 19999 echo "$PCIACCESS_PKG_ERRORS" >&5 20000 20001 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 20002 20003$PCIACCESS_PKG_ERRORS 20004 20005Consider adjusting the PKG_CONFIG_PATH environment variable if you 20006installed software in a non-standard prefix. 20007 20008Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20009and PCIACCESS_LIBS to avoid the need to call pkg-config. 20010See the pkg-config man page for more details." "$LINENO" 5 20011elif test $pkg_failed = untried; then 20012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20013$as_echo "no" >&6; } 20014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20016as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20017is in your PATH or set the PKG_CONFIG environment variable to the full 20018path to pkg-config. 20019 20020Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20021and PCIACCESS_LIBS to avoid the need to call pkg-config. 20022See the pkg-config man page for more details. 20023 20024To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20025See \`config.log' for more details" "$LINENO" 5; } 20026else 20027 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 20028 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 20029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20030$as_echo "yes" >&6; } 20031 20032fi 20033XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 20034 20035# Checks for headers/macros for byte swapping 20036# Known variants: 20037# <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc) 20038# <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD) 20039# <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's) 20040# and a fallback to local macros if none of the above are found 20041 20042# if <byteswap.h> is found, assume it's the correct version 20043for ac_header in byteswap.h 20044do : 20045 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" 20046if test "x$ac_cv_header_byteswap_h" = xyes; then : 20047 cat >>confdefs.h <<_ACEOF 20048#define HAVE_BYTESWAP_H 1 20049_ACEOF 20050 20051fi 20052 20053done 20054 20055 20056# if <sys/endian.h> is found, have to check which version 20057ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" 20058if test "x$ac_cv_header_sys_endian_h" = xyes; then : 20059 HAVE_SYS_ENDIAN_H="yes" 20060else 20061 HAVE_SYS_ENDIAN_H="no" 20062fi 20063 20064 20065 20066if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then 20067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5 20068$as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; } 20069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20070/* end confdefs.h. */ 20071 20072#include <sys/types.h> 20073#include <sys/endian.h> 20074 20075int 20076main () 20077{ 20078 20079int a = 1, b; 20080b = __swap16(a); 20081 20082 ; 20083 return 0; 20084} 20085 20086_ACEOF 20087if ac_fn_c_try_link "$LINENO"; then : 20088 SYS_ENDIAN__SWAP='yes' 20089else 20090 SYS_ENDIAN__SWAP='no' 20091fi 20092rm -f core conftest.err conftest.$ac_objext \ 20093 conftest$ac_exeext conftest.$ac_ext 20094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5 20095$as_echo "$SYS_ENDIAN__SWAP" >&6; } 20096 20097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5 20098$as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; } 20099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20100/* end confdefs.h. */ 20101 20102#include <sys/types.h> 20103#include <sys/endian.h> 20104 20105int 20106main () 20107{ 20108 20109int a = 1, b; 20110b = bswap16(a); 20111 20112 ; 20113 return 0; 20114} 20115 20116_ACEOF 20117if ac_fn_c_try_link "$LINENO"; then : 20118 SYS_ENDIAN_BSWAP='yes' 20119else 20120 SYS_ENDIAN_BSWAP='no' 20121fi 20122rm -f core conftest.err conftest.$ac_objext \ 20123 conftest$ac_exeext conftest.$ac_ext 20124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5 20125$as_echo "$SYS_ENDIAN_BSWAP" >&6; } 20126 20127 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then 20128 USE_SYS_ENDIAN_H=yes 20129 BSWAP=bswap 20130 else 20131 if test "$SYS_ENDIAN__SWAP" = "yes" ; then 20132 USE_SYS_ENDIAN_H=yes 20133 BSWAP=__swap 20134 else 20135 USE_SYS_ENDIAN_H=no 20136 fi 20137 fi 20138 20139 if test "$USE_SYS_ENDIAN_H" = "yes" ; then 20140 20141$as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h 20142 20143 20144cat >>confdefs.h <<_ACEOF 20145#define bswap_16 ${BSWAP}16 20146_ACEOF 20147 20148 20149cat >>confdefs.h <<_ACEOF 20150#define bswap_32 ${BSWAP}32 20151_ACEOF 20152 20153 20154cat >>confdefs.h <<_ACEOF 20155#define bswap_64 ${BSWAP}64 20156_ACEOF 20157 20158 fi 20159fi 20160 20161 20162 20163DRIVER_NAME=ati 20164 20165 20166{ $as_echo "$as_me:${as_lineno-$LINENO}: The atimisc sub-driver has been split out to xf86-video-mach64: 20167 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64 20168Please install that driver as well for mach64-based cards. 20169" >&5 20170$as_echo "$as_me: The atimisc sub-driver has been split out to xf86-video-mach64: 20171 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64 20172Please install that driver as well for mach64-based cards. 20173" >&6;} 20174 20175{ $as_echo "$as_me:${as_lineno-$LINENO}: The r128 sub-driver has been split out to xf86-video-r128: 20176 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128 20177Please install that driver as well for rage128-based cards. 20178" >&5 20179$as_echo "$as_me: The r128 sub-driver has been split out to xf86-video-r128: 20180 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128 20181Please install that driver as well for rage128-based cards. 20182" >&6;} 20183 20184ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile conf/Makefile" 20185 20186cat >confcache <<\_ACEOF 20187# This file is a shell script that caches the results of configure 20188# tests run on this system so they can be shared between configure 20189# scripts and configure runs, see configure's option --config-cache. 20190# It is not useful on other systems. If it contains results you don't 20191# want to keep, you may remove or edit it. 20192# 20193# config.status only pays attention to the cache file if you give it 20194# the --recheck option to rerun configure. 20195# 20196# `ac_cv_env_foo' variables (set or unset) will be overridden when 20197# loading this file, other *unset* `ac_cv_foo' will be assigned the 20198# following values. 20199 20200_ACEOF 20201 20202# The following way of writing the cache mishandles newlines in values, 20203# but we know of no workaround that is simple, portable, and efficient. 20204# So, we kill variables containing newlines. 20205# Ultrix sh set writes to stderr and can't be redirected directly, 20206# and sets the high bit in the cache file unless we assign to the vars. 20207( 20208 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20209 eval ac_val=\$$ac_var 20210 case $ac_val in #( 20211 *${as_nl}*) 20212 case $ac_var in #( 20213 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20214$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20215 esac 20216 case $ac_var in #( 20217 _ | IFS | as_nl) ;; #( 20218 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20219 *) { eval $ac_var=; unset $ac_var;} ;; 20220 esac ;; 20221 esac 20222 done 20223 20224 (set) 2>&1 | 20225 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20226 *${as_nl}ac_space=\ *) 20227 # `set' does not quote correctly, so add quotes: double-quote 20228 # substitution turns \\\\ into \\, and sed turns \\ into \. 20229 sed -n \ 20230 "s/'/'\\\\''/g; 20231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20232 ;; #( 20233 *) 20234 # `set' quotes correctly as required by POSIX, so do not add quotes. 20235 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20236 ;; 20237 esac | 20238 sort 20239) | 20240 sed ' 20241 /^ac_cv_env_/b end 20242 t clear 20243 :clear 20244 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20245 t end 20246 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20247 :end' >>confcache 20248if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20249 if test -w "$cache_file"; then 20250 if test "x$cache_file" != "x/dev/null"; then 20251 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20252$as_echo "$as_me: updating cache $cache_file" >&6;} 20253 if test ! -f "$cache_file" || test -h "$cache_file"; then 20254 cat confcache >"$cache_file" 20255 else 20256 case $cache_file in #( 20257 */* | ?:*) 20258 mv -f confcache "$cache_file"$$ && 20259 mv -f "$cache_file"$$ "$cache_file" ;; #( 20260 *) 20261 mv -f confcache "$cache_file" ;; 20262 esac 20263 fi 20264 fi 20265 else 20266 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20267$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20268 fi 20269fi 20270rm -f confcache 20271 20272test "x$prefix" = xNONE && prefix=$ac_default_prefix 20273# Let make expand exec_prefix. 20274test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20275 20276DEFS=-DHAVE_CONFIG_H 20277 20278ac_libobjs= 20279ac_ltlibobjs= 20280U= 20281for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20282 # 1. Remove the extension, and $U if already installed. 20283 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20284 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20285 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20286 # will be set to the directory where LIBOBJS objects are built. 20287 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20288 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20289done 20290LIBOBJS=$ac_libobjs 20291 20292LTLIBOBJS=$ac_ltlibobjs 20293 20294 20295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20296$as_echo_n "checking that generated files are newer than configure... " >&6; } 20297 if test -n "$am_sleep_pid"; then 20298 # Hide warnings about reused PIDs. 20299 wait $am_sleep_pid 2>/dev/null 20300 fi 20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20302$as_echo "done" >&6; } 20303 if test -n "$EXEEXT"; then 20304 am__EXEEXT_TRUE= 20305 am__EXEEXT_FALSE='#' 20306else 20307 am__EXEEXT_TRUE='#' 20308 am__EXEEXT_FALSE= 20309fi 20310 20311if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20312 as_fn_error $? "conditional \"AMDEP\" was never defined. 20313Usually this means the macro was only invoked conditionally." "$LINENO" 5 20314fi 20315if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20316 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20317Usually this means the macro was only invoked conditionally." "$LINENO" 5 20318fi 20319if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 20320 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 20321Usually this means the macro was only invoked conditionally." "$LINENO" 5 20322fi 20323if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then 20324 as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined. 20325Usually this means the macro was only invoked conditionally." "$LINENO" 5 20326fi 20327if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then 20328 as_fn_error $? "conditional \"LIBUDEV\" was never defined. 20329Usually this means the macro was only invoked conditionally." "$LINENO" 5 20330fi 20331if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then 20332 as_fn_error $? "conditional \"GLAMOR\" was never defined. 20333Usually this means the macro was only invoked conditionally." "$LINENO" 5 20334fi 20335 20336: "${CONFIG_STATUS=./config.status}" 20337ac_write_fail=0 20338ac_clean_files_save=$ac_clean_files 20339ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20340{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20341$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20342as_write_fail=0 20343cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20344#! $SHELL 20345# Generated by $as_me. 20346# Run this file to recreate the current configuration. 20347# Compiler output produced by configure, useful for debugging 20348# configure, is in config.log if it exists. 20349 20350debug=false 20351ac_cs_recheck=false 20352ac_cs_silent=false 20353 20354SHELL=\${CONFIG_SHELL-$SHELL} 20355export SHELL 20356_ASEOF 20357cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20358## -------------------- ## 20359## M4sh Initialization. ## 20360## -------------------- ## 20361 20362# Be more Bourne compatible 20363DUALCASE=1; export DUALCASE # for MKS sh 20364if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20365 emulate sh 20366 NULLCMD=: 20367 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20368 # is contrary to our usage. Disable this feature. 20369 alias -g '${1+"$@"}'='"$@"' 20370 setopt NO_GLOB_SUBST 20371else 20372 case `(set -o) 2>/dev/null` in #( 20373 *posix*) : 20374 set -o posix ;; #( 20375 *) : 20376 ;; 20377esac 20378fi 20379 20380 20381as_nl=' 20382' 20383export as_nl 20384# Printing a long string crashes Solaris 7 /usr/bin/printf. 20385as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20386as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20387as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20388# Prefer a ksh shell builtin over an external printf program on Solaris, 20389# but without wasting forks for bash or zsh. 20390if test -z "$BASH_VERSION$ZSH_VERSION" \ 20391 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20392 as_echo='print -r --' 20393 as_echo_n='print -rn --' 20394elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20395 as_echo='printf %s\n' 20396 as_echo_n='printf %s' 20397else 20398 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20399 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20400 as_echo_n='/usr/ucb/echo -n' 20401 else 20402 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20403 as_echo_n_body='eval 20404 arg=$1; 20405 case $arg in #( 20406 *"$as_nl"*) 20407 expr "X$arg" : "X\\(.*\\)$as_nl"; 20408 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20409 esac; 20410 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20411 ' 20412 export as_echo_n_body 20413 as_echo_n='sh -c $as_echo_n_body as_echo' 20414 fi 20415 export as_echo_body 20416 as_echo='sh -c $as_echo_body as_echo' 20417fi 20418 20419# The user is always right. 20420if test "${PATH_SEPARATOR+set}" != set; then 20421 PATH_SEPARATOR=: 20422 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20423 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20424 PATH_SEPARATOR=';' 20425 } 20426fi 20427 20428 20429# IFS 20430# We need space, tab and new line, in precisely that order. Quoting is 20431# there to prevent editors from complaining about space-tab. 20432# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20433# splitting by setting IFS to empty value.) 20434IFS=" "" $as_nl" 20435 20436# Find who we are. Look in the path if we contain no directory separator. 20437as_myself= 20438case $0 in #(( 20439 *[\\/]* ) as_myself=$0 ;; 20440 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20441for as_dir in $PATH 20442do 20443 IFS=$as_save_IFS 20444 test -z "$as_dir" && as_dir=. 20445 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20446 done 20447IFS=$as_save_IFS 20448 20449 ;; 20450esac 20451# We did not find ourselves, most probably we were run as `sh COMMAND' 20452# in which case we are not to be found in the path. 20453if test "x$as_myself" = x; then 20454 as_myself=$0 20455fi 20456if test ! -f "$as_myself"; then 20457 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20458 exit 1 20459fi 20460 20461# Unset variables that we do not need and which cause bugs (e.g. in 20462# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20463# suppresses any "Segmentation fault" message there. '((' could 20464# trigger a bug in pdksh 5.2.14. 20465for as_var in BASH_ENV ENV MAIL MAILPATH 20466do eval test x\${$as_var+set} = xset \ 20467 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20468done 20469PS1='$ ' 20470PS2='> ' 20471PS4='+ ' 20472 20473# NLS nuisances. 20474LC_ALL=C 20475export LC_ALL 20476LANGUAGE=C 20477export LANGUAGE 20478 20479# CDPATH. 20480(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20481 20482 20483# as_fn_error STATUS ERROR [LINENO LOG_FD] 20484# ---------------------------------------- 20485# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20486# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20487# script with STATUS, using 1 if that was 0. 20488as_fn_error () 20489{ 20490 as_status=$1; test $as_status -eq 0 && as_status=1 20491 if test "$4"; then 20492 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20493 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20494 fi 20495 $as_echo "$as_me: error: $2" >&2 20496 as_fn_exit $as_status 20497} # as_fn_error 20498 20499 20500# as_fn_set_status STATUS 20501# ----------------------- 20502# Set $? to STATUS, without forking. 20503as_fn_set_status () 20504{ 20505 return $1 20506} # as_fn_set_status 20507 20508# as_fn_exit STATUS 20509# ----------------- 20510# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20511as_fn_exit () 20512{ 20513 set +e 20514 as_fn_set_status $1 20515 exit $1 20516} # as_fn_exit 20517 20518# as_fn_unset VAR 20519# --------------- 20520# Portably unset VAR. 20521as_fn_unset () 20522{ 20523 { eval $1=; unset $1;} 20524} 20525as_unset=as_fn_unset 20526# as_fn_append VAR VALUE 20527# ---------------------- 20528# Append the text in VALUE to the end of the definition contained in VAR. Take 20529# advantage of any shell optimizations that allow amortized linear growth over 20530# repeated appends, instead of the typical quadratic growth present in naive 20531# implementations. 20532if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20533 eval 'as_fn_append () 20534 { 20535 eval $1+=\$2 20536 }' 20537else 20538 as_fn_append () 20539 { 20540 eval $1=\$$1\$2 20541 } 20542fi # as_fn_append 20543 20544# as_fn_arith ARG... 20545# ------------------ 20546# Perform arithmetic evaluation on the ARGs, and store the result in the 20547# global $as_val. Take advantage of shells that can avoid forks. The arguments 20548# must be portable across $(()) and expr. 20549if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20550 eval 'as_fn_arith () 20551 { 20552 as_val=$(( $* )) 20553 }' 20554else 20555 as_fn_arith () 20556 { 20557 as_val=`expr "$@" || test $? -eq 1` 20558 } 20559fi # as_fn_arith 20560 20561 20562if expr a : '\(a\)' >/dev/null 2>&1 && 20563 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20564 as_expr=expr 20565else 20566 as_expr=false 20567fi 20568 20569if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20570 as_basename=basename 20571else 20572 as_basename=false 20573fi 20574 20575if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20576 as_dirname=dirname 20577else 20578 as_dirname=false 20579fi 20580 20581as_me=`$as_basename -- "$0" || 20582$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20583 X"$0" : 'X\(//\)$' \| \ 20584 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20585$as_echo X/"$0" | 20586 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20587 s//\1/ 20588 q 20589 } 20590 /^X\/\(\/\/\)$/{ 20591 s//\1/ 20592 q 20593 } 20594 /^X\/\(\/\).*/{ 20595 s//\1/ 20596 q 20597 } 20598 s/.*/./; q'` 20599 20600# Avoid depending upon Character Ranges. 20601as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20602as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20603as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20604as_cr_digits='0123456789' 20605as_cr_alnum=$as_cr_Letters$as_cr_digits 20606 20607ECHO_C= ECHO_N= ECHO_T= 20608case `echo -n x` in #((((( 20609-n*) 20610 case `echo 'xy\c'` in 20611 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20612 xy) ECHO_C='\c';; 20613 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20614 ECHO_T=' ';; 20615 esac;; 20616*) 20617 ECHO_N='-n';; 20618esac 20619 20620rm -f conf$$ conf$$.exe conf$$.file 20621if test -d conf$$.dir; then 20622 rm -f conf$$.dir/conf$$.file 20623else 20624 rm -f conf$$.dir 20625 mkdir conf$$.dir 2>/dev/null 20626fi 20627if (echo >conf$$.file) 2>/dev/null; then 20628 if ln -s conf$$.file conf$$ 2>/dev/null; then 20629 as_ln_s='ln -s' 20630 # ... but there are two gotchas: 20631 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20632 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20633 # In both cases, we have to default to `cp -pR'. 20634 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20635 as_ln_s='cp -pR' 20636 elif ln conf$$.file conf$$ 2>/dev/null; then 20637 as_ln_s=ln 20638 else 20639 as_ln_s='cp -pR' 20640 fi 20641else 20642 as_ln_s='cp -pR' 20643fi 20644rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20645rmdir conf$$.dir 2>/dev/null 20646 20647 20648# as_fn_mkdir_p 20649# ------------- 20650# Create "$as_dir" as a directory, including parents if necessary. 20651as_fn_mkdir_p () 20652{ 20653 20654 case $as_dir in #( 20655 -*) as_dir=./$as_dir;; 20656 esac 20657 test -d "$as_dir" || eval $as_mkdir_p || { 20658 as_dirs= 20659 while :; do 20660 case $as_dir in #( 20661 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20662 *) as_qdir=$as_dir;; 20663 esac 20664 as_dirs="'$as_qdir' $as_dirs" 20665 as_dir=`$as_dirname -- "$as_dir" || 20666$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20667 X"$as_dir" : 'X\(//\)[^/]' \| \ 20668 X"$as_dir" : 'X\(//\)$' \| \ 20669 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20670$as_echo X"$as_dir" | 20671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20672 s//\1/ 20673 q 20674 } 20675 /^X\(\/\/\)[^/].*/{ 20676 s//\1/ 20677 q 20678 } 20679 /^X\(\/\/\)$/{ 20680 s//\1/ 20681 q 20682 } 20683 /^X\(\/\).*/{ 20684 s//\1/ 20685 q 20686 } 20687 s/.*/./; q'` 20688 test -d "$as_dir" && break 20689 done 20690 test -z "$as_dirs" || eval "mkdir $as_dirs" 20691 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20692 20693 20694} # as_fn_mkdir_p 20695if mkdir -p . 2>/dev/null; then 20696 as_mkdir_p='mkdir -p "$as_dir"' 20697else 20698 test -d ./-p && rmdir ./-p 20699 as_mkdir_p=false 20700fi 20701 20702 20703# as_fn_executable_p FILE 20704# ----------------------- 20705# Test if FILE is an executable regular file. 20706as_fn_executable_p () 20707{ 20708 test -f "$1" && test -x "$1" 20709} # as_fn_executable_p 20710as_test_x='test -x' 20711as_executable_p=as_fn_executable_p 20712 20713# Sed expression to map a string onto a valid CPP name. 20714as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20715 20716# Sed expression to map a string onto a valid variable name. 20717as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20718 20719 20720exec 6>&1 20721## ----------------------------------- ## 20722## Main body of $CONFIG_STATUS script. ## 20723## ----------------------------------- ## 20724_ASEOF 20725test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20726 20727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20728# Save the log message, to keep $0 and so on meaningful, and to 20729# report actual input values of CONFIG_FILES etc. instead of their 20730# values after options handling. 20731ac_log=" 20732This file was extended by xf86-video-ati $as_me 19.0.1, which was 20733generated by GNU Autoconf 2.69. Invocation command line was 20734 20735 CONFIG_FILES = $CONFIG_FILES 20736 CONFIG_HEADERS = $CONFIG_HEADERS 20737 CONFIG_LINKS = $CONFIG_LINKS 20738 CONFIG_COMMANDS = $CONFIG_COMMANDS 20739 $ $0 $@ 20740 20741on `(hostname || uname -n) 2>/dev/null | sed 1q` 20742" 20743 20744_ACEOF 20745 20746case $ac_config_files in *" 20747"*) set x $ac_config_files; shift; ac_config_files=$*;; 20748esac 20749 20750case $ac_config_headers in *" 20751"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20752esac 20753 20754 20755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20756# Files that config.status was made for. 20757config_files="$ac_config_files" 20758config_headers="$ac_config_headers" 20759config_commands="$ac_config_commands" 20760 20761_ACEOF 20762 20763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20764ac_cs_usage="\ 20765\`$as_me' instantiates files and other configuration actions 20766from templates according to the current configuration. Unless the files 20767and actions are specified as TAGs, all are instantiated by default. 20768 20769Usage: $0 [OPTION]... [TAG]... 20770 20771 -h, --help print this help, then exit 20772 -V, --version print version number and configuration settings, then exit 20773 --config print configuration, then exit 20774 -q, --quiet, --silent 20775 do not print progress messages 20776 -d, --debug don't remove temporary files 20777 --recheck update $as_me by reconfiguring in the same conditions 20778 --file=FILE[:TEMPLATE] 20779 instantiate the configuration file FILE 20780 --header=FILE[:TEMPLATE] 20781 instantiate the configuration header FILE 20782 20783Configuration files: 20784$config_files 20785 20786Configuration headers: 20787$config_headers 20788 20789Configuration commands: 20790$config_commands 20791 20792Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon>." 20793 20794_ACEOF 20795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20796ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20797ac_cs_version="\\ 20798xf86-video-ati config.status 19.0.1 20799configured by $0, generated by GNU Autoconf 2.69, 20800 with options \\"\$ac_cs_config\\" 20801 20802Copyright (C) 2012 Free Software Foundation, Inc. 20803This config.status script is free software; the Free Software Foundation 20804gives unlimited permission to copy, distribute and modify it." 20805 20806ac_pwd='$ac_pwd' 20807srcdir='$srcdir' 20808INSTALL='$INSTALL' 20809MKDIR_P='$MKDIR_P' 20810AWK='$AWK' 20811test -n "\$AWK" || AWK=awk 20812_ACEOF 20813 20814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20815# The default lists apply if the user does not specify any file. 20816ac_need_defaults=: 20817while test $# != 0 20818do 20819 case $1 in 20820 --*=?*) 20821 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20822 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20823 ac_shift=: 20824 ;; 20825 --*=) 20826 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20827 ac_optarg= 20828 ac_shift=: 20829 ;; 20830 *) 20831 ac_option=$1 20832 ac_optarg=$2 20833 ac_shift=shift 20834 ;; 20835 esac 20836 20837 case $ac_option in 20838 # Handling of the options. 20839 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20840 ac_cs_recheck=: ;; 20841 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20842 $as_echo "$ac_cs_version"; exit ;; 20843 --config | --confi | --conf | --con | --co | --c ) 20844 $as_echo "$ac_cs_config"; exit ;; 20845 --debug | --debu | --deb | --de | --d | -d ) 20846 debug=: ;; 20847 --file | --fil | --fi | --f ) 20848 $ac_shift 20849 case $ac_optarg in 20850 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20851 '') as_fn_error $? "missing file argument" ;; 20852 esac 20853 as_fn_append CONFIG_FILES " '$ac_optarg'" 20854 ac_need_defaults=false;; 20855 --header | --heade | --head | --hea ) 20856 $ac_shift 20857 case $ac_optarg in 20858 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20859 esac 20860 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20861 ac_need_defaults=false;; 20862 --he | --h) 20863 # Conflict between --help and --header 20864 as_fn_error $? "ambiguous option: \`$1' 20865Try \`$0 --help' for more information.";; 20866 --help | --hel | -h ) 20867 $as_echo "$ac_cs_usage"; exit ;; 20868 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20869 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20870 ac_cs_silent=: ;; 20871 20872 # This is an error. 20873 -*) as_fn_error $? "unrecognized option: \`$1' 20874Try \`$0 --help' for more information." ;; 20875 20876 *) as_fn_append ac_config_targets " $1" 20877 ac_need_defaults=false ;; 20878 20879 esac 20880 shift 20881done 20882 20883ac_configure_extra_args= 20884 20885if $ac_cs_silent; then 20886 exec 6>/dev/null 20887 ac_configure_extra_args="$ac_configure_extra_args --silent" 20888fi 20889 20890_ACEOF 20891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20892if \$ac_cs_recheck; then 20893 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20894 shift 20895 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20896 CONFIG_SHELL='$SHELL' 20897 export CONFIG_SHELL 20898 exec "\$@" 20899fi 20900 20901_ACEOF 20902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20903exec 5>>config.log 20904{ 20905 echo 20906 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20907## Running $as_me. ## 20908_ASBOX 20909 $as_echo "$ac_log" 20910} >&5 20911 20912_ACEOF 20913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20914# 20915# INIT-COMMANDS 20916# 20917AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20918 20919 20920# The HP-UX ksh and POSIX shell print the target directory to stdout 20921# if CDPATH is set. 20922(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20923 20924sed_quote_subst='$sed_quote_subst' 20925double_quote_subst='$double_quote_subst' 20926delay_variable_subst='$delay_variable_subst' 20927enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20928macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20929macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20930enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20931pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20932enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20933shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20934SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20935ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20936PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20937host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20938host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20939host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20940build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20941build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20942build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20943SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20944Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20945GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20946EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20947FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20948LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20949NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20950LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20951max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20952ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20953exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20954lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20955lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20956lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20957lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20958lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20959reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20960reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20961OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20962deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20963file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20964file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20965want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20966DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20967sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20968AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20969lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20970AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20971archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20972STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20973RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20974old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20975old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20976old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20977lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20978CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20979CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20980compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20981GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20982lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20983lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20984lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20985lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20986lt_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"`' 20987lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20988nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20989lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20990lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20991objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20992MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20993lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20994lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20995lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20996lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20997lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20998need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20999MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21000DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21001NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21002LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21003OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21004OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21005libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21006shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21007extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21008archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21009enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21010export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21011whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21012compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21013old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21014old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21015archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21016archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21017module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21018module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21019with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21020allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21021no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21022hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21023hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21024hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21025hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21026hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21027hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21028hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21029inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21030link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21031always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21032export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21033exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21034include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21035prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21036postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21037file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21038variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21039need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21040need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21041version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21042runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21043shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21044shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21045libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21046library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21047soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21048install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21049postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21050postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21051finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21052finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21053hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21054sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21055configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21056configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21057hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21058enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21059enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21060enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21061old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21062striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21063 21064LTCC='$LTCC' 21065LTCFLAGS='$LTCFLAGS' 21066compiler='$compiler_DEFAULT' 21067 21068# A function that is used when there is no print builtin or printf. 21069func_fallback_echo () 21070{ 21071 eval 'cat <<_LTECHO_EOF 21072\$1 21073_LTECHO_EOF' 21074} 21075 21076# Quote evaled strings. 21077for var in SHELL \ 21078ECHO \ 21079PATH_SEPARATOR \ 21080SED \ 21081GREP \ 21082EGREP \ 21083FGREP \ 21084LD \ 21085NM \ 21086LN_S \ 21087lt_SP2NL \ 21088lt_NL2SP \ 21089reload_flag \ 21090OBJDUMP \ 21091deplibs_check_method \ 21092file_magic_cmd \ 21093file_magic_glob \ 21094want_nocaseglob \ 21095DLLTOOL \ 21096sharedlib_from_linklib_cmd \ 21097AR \ 21098archiver_list_spec \ 21099STRIP \ 21100RANLIB \ 21101CC \ 21102CFLAGS \ 21103compiler \ 21104lt_cv_sys_global_symbol_pipe \ 21105lt_cv_sys_global_symbol_to_cdecl \ 21106lt_cv_sys_global_symbol_to_import \ 21107lt_cv_sys_global_symbol_to_c_name_address \ 21108lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21109lt_cv_nm_interface \ 21110nm_file_list_spec \ 21111lt_cv_truncate_bin \ 21112lt_prog_compiler_no_builtin_flag \ 21113lt_prog_compiler_pic \ 21114lt_prog_compiler_wl \ 21115lt_prog_compiler_static \ 21116lt_cv_prog_compiler_c_o \ 21117need_locks \ 21118MANIFEST_TOOL \ 21119DSYMUTIL \ 21120NMEDIT \ 21121LIPO \ 21122OTOOL \ 21123OTOOL64 \ 21124shrext_cmds \ 21125export_dynamic_flag_spec \ 21126whole_archive_flag_spec \ 21127compiler_needs_object \ 21128with_gnu_ld \ 21129allow_undefined_flag \ 21130no_undefined_flag \ 21131hardcode_libdir_flag_spec \ 21132hardcode_libdir_separator \ 21133exclude_expsyms \ 21134include_expsyms \ 21135file_list_spec \ 21136variables_saved_for_relink \ 21137libname_spec \ 21138library_names_spec \ 21139soname_spec \ 21140install_override_mode \ 21141finish_eval \ 21142old_striplib \ 21143striplib; do 21144 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21145 *[\\\\\\\`\\"\\\$]*) 21146 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21147 ;; 21148 *) 21149 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21150 ;; 21151 esac 21152done 21153 21154# Double-quote double-evaled strings. 21155for var in reload_cmds \ 21156old_postinstall_cmds \ 21157old_postuninstall_cmds \ 21158old_archive_cmds \ 21159extract_expsyms_cmds \ 21160old_archive_from_new_cmds \ 21161old_archive_from_expsyms_cmds \ 21162archive_cmds \ 21163archive_expsym_cmds \ 21164module_cmds \ 21165module_expsym_cmds \ 21166export_symbols_cmds \ 21167prelink_cmds \ 21168postlink_cmds \ 21169postinstall_cmds \ 21170postuninstall_cmds \ 21171finish_cmds \ 21172sys_lib_search_path_spec \ 21173configure_time_dlsearch_path \ 21174configure_time_lt_sys_library_path; do 21175 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21176 *[\\\\\\\`\\"\\\$]*) 21177 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21178 ;; 21179 *) 21180 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21181 ;; 21182 esac 21183done 21184 21185ac_aux_dir='$ac_aux_dir' 21186 21187# See if we are running on zsh, and set the options that allow our 21188# commands through without removal of \ escapes INIT. 21189if test -n "\${ZSH_VERSION+set}"; then 21190 setopt NO_GLOB_SUBST 21191fi 21192 21193 21194 PACKAGE='$PACKAGE' 21195 VERSION='$VERSION' 21196 RM='$RM' 21197 ofile='$ofile' 21198 21199 21200 21201 21202_ACEOF 21203 21204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21205 21206# Handling of arguments. 21207for ac_config_target in $ac_config_targets 21208do 21209 case $ac_config_target in 21210 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21211 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21212 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21213 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21214 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21215 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21216 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;; 21217 21218 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21219 esac 21220done 21221 21222 21223# If the user did not use the arguments to specify the items to instantiate, 21224# then the envvar interface is used. Set only those that are not. 21225# We use the long form for the default assignment because of an extremely 21226# bizarre bug on SunOS 4.1.3. 21227if $ac_need_defaults; then 21228 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21229 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21230 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21231fi 21232 21233# Have a temporary directory for convenience. Make it in the build tree 21234# simply because there is no reason against having it here, and in addition, 21235# creating and moving files from /tmp can sometimes cause problems. 21236# Hook for its removal unless debugging. 21237# Note that there is a small window in which the directory will not be cleaned: 21238# after its creation but before its name has been assigned to `$tmp'. 21239$debug || 21240{ 21241 tmp= ac_tmp= 21242 trap 'exit_status=$? 21243 : "${ac_tmp:=$tmp}" 21244 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21245' 0 21246 trap 'as_fn_exit 1' 1 2 13 15 21247} 21248# Create a (secure) tmp directory for tmp files. 21249 21250{ 21251 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21252 test -d "$tmp" 21253} || 21254{ 21255 tmp=./conf$$-$RANDOM 21256 (umask 077 && mkdir "$tmp") 21257} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21258ac_tmp=$tmp 21259 21260# Set up the scripts for CONFIG_FILES section. 21261# No need to generate them if there are no CONFIG_FILES. 21262# This happens for instance with `./config.status config.h'. 21263if test -n "$CONFIG_FILES"; then 21264 21265 21266ac_cr=`echo X | tr X '\015'` 21267# On cygwin, bash can eat \r inside `` if the user requested igncr. 21268# But we know of no other shell where ac_cr would be empty at this 21269# point, so we can use a bashism as a fallback. 21270if test "x$ac_cr" = x; then 21271 eval ac_cr=\$\'\\r\' 21272fi 21273ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21274if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21275 ac_cs_awk_cr='\\r' 21276else 21277 ac_cs_awk_cr=$ac_cr 21278fi 21279 21280echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21281_ACEOF 21282 21283 21284{ 21285 echo "cat >conf$$subs.awk <<_ACEOF" && 21286 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21287 echo "_ACEOF" 21288} >conf$$subs.sh || 21289 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21290ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21291ac_delim='%!_!# ' 21292for ac_last_try in false false false false false :; do 21293 . ./conf$$subs.sh || 21294 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21295 21296 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21297 if test $ac_delim_n = $ac_delim_num; then 21298 break 21299 elif $ac_last_try; then 21300 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21301 else 21302 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21303 fi 21304done 21305rm -f conf$$subs.sh 21306 21307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21308cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21309_ACEOF 21310sed -n ' 21311h 21312s/^/S["/; s/!.*/"]=/ 21313p 21314g 21315s/^[^!]*!// 21316:repl 21317t repl 21318s/'"$ac_delim"'$// 21319t delim 21320:nl 21321h 21322s/\(.\{148\}\)..*/\1/ 21323t more1 21324s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21325p 21326n 21327b repl 21328:more1 21329s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21330p 21331g 21332s/.\{148\}// 21333t nl 21334:delim 21335h 21336s/\(.\{148\}\)..*/\1/ 21337t more2 21338s/["\\]/\\&/g; s/^/"/; s/$/"/ 21339p 21340b 21341:more2 21342s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21343p 21344g 21345s/.\{148\}// 21346t delim 21347' <conf$$subs.awk | sed ' 21348/^[^""]/{ 21349 N 21350 s/\n// 21351} 21352' >>$CONFIG_STATUS || ac_write_fail=1 21353rm -f conf$$subs.awk 21354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21355_ACAWK 21356cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21357 for (key in S) S_is_set[key] = 1 21358 FS = "" 21359 21360} 21361{ 21362 line = $ 0 21363 nfields = split(line, field, "@") 21364 substed = 0 21365 len = length(field[1]) 21366 for (i = 2; i < nfields; i++) { 21367 key = field[i] 21368 keylen = length(key) 21369 if (S_is_set[key]) { 21370 value = S[key] 21371 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21372 len += length(value) + length(field[++i]) 21373 substed = 1 21374 } else 21375 len += 1 + keylen 21376 } 21377 21378 print line 21379} 21380 21381_ACAWK 21382_ACEOF 21383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21384if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21385 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21386else 21387 cat 21388fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21389 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21390_ACEOF 21391 21392# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21393# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21394# trailing colons and then remove the whole line if VPATH becomes empty 21395# (actually we leave an empty line to preserve line numbers). 21396if test "x$srcdir" = x.; then 21397 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21398h 21399s/// 21400s/^/:/ 21401s/[ ]*$/:/ 21402s/:\$(srcdir):/:/g 21403s/:\${srcdir}:/:/g 21404s/:@srcdir@:/:/g 21405s/^:*// 21406s/:*$// 21407x 21408s/\(=[ ]*\).*/\1/ 21409G 21410s/\n// 21411s/^[^=]*=[ ]*$// 21412}' 21413fi 21414 21415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21416fi # test -n "$CONFIG_FILES" 21417 21418# Set up the scripts for CONFIG_HEADERS section. 21419# No need to generate them if there are no CONFIG_HEADERS. 21420# This happens for instance with `./config.status Makefile'. 21421if test -n "$CONFIG_HEADERS"; then 21422cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21423BEGIN { 21424_ACEOF 21425 21426# Transform confdefs.h into an awk script `defines.awk', embedded as 21427# here-document in config.status, that substitutes the proper values into 21428# config.h.in to produce config.h. 21429 21430# Create a delimiter string that does not exist in confdefs.h, to ease 21431# handling of long lines. 21432ac_delim='%!_!# ' 21433for ac_last_try in false false :; do 21434 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21435 if test -z "$ac_tt"; then 21436 break 21437 elif $ac_last_try; then 21438 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21439 else 21440 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21441 fi 21442done 21443 21444# For the awk script, D is an array of macro values keyed by name, 21445# likewise P contains macro parameters if any. Preserve backslash 21446# newline sequences. 21447 21448ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21449sed -n ' 21450s/.\{148\}/&'"$ac_delim"'/g 21451t rset 21452:rset 21453s/^[ ]*#[ ]*define[ ][ ]*/ / 21454t def 21455d 21456:def 21457s/\\$// 21458t bsnl 21459s/["\\]/\\&/g 21460s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21461D["\1"]=" \3"/p 21462s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21463d 21464:bsnl 21465s/["\\]/\\&/g 21466s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21467D["\1"]=" \3\\\\\\n"\\/p 21468t cont 21469s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21470t cont 21471d 21472:cont 21473n 21474s/.\{148\}/&'"$ac_delim"'/g 21475t clear 21476:clear 21477s/\\$// 21478t bsnlc 21479s/["\\]/\\&/g; s/^/"/; s/$/"/p 21480d 21481:bsnlc 21482s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21483b cont 21484' <confdefs.h | sed ' 21485s/'"$ac_delim"'/"\\\ 21486"/g' >>$CONFIG_STATUS || ac_write_fail=1 21487 21488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21489 for (key in D) D_is_set[key] = 1 21490 FS = "" 21491} 21492/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21493 line = \$ 0 21494 split(line, arg, " ") 21495 if (arg[1] == "#") { 21496 defundef = arg[2] 21497 mac1 = arg[3] 21498 } else { 21499 defundef = substr(arg[1], 2) 21500 mac1 = arg[2] 21501 } 21502 split(mac1, mac2, "(") #) 21503 macro = mac2[1] 21504 prefix = substr(line, 1, index(line, defundef) - 1) 21505 if (D_is_set[macro]) { 21506 # Preserve the white space surrounding the "#". 21507 print prefix "define", macro P[macro] D[macro] 21508 next 21509 } else { 21510 # Replace #undef with comments. This is necessary, for example, 21511 # in the case of _POSIX_SOURCE, which is predefined and required 21512 # on some systems where configure will not decide to define it. 21513 if (defundef == "undef") { 21514 print "/*", prefix defundef, macro, "*/" 21515 next 21516 } 21517 } 21518} 21519{ print } 21520_ACAWK 21521_ACEOF 21522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21523 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21524fi # test -n "$CONFIG_HEADERS" 21525 21526 21527eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21528shift 21529for ac_tag 21530do 21531 case $ac_tag in 21532 :[FHLC]) ac_mode=$ac_tag; continue;; 21533 esac 21534 case $ac_mode$ac_tag in 21535 :[FHL]*:*);; 21536 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21537 :[FH]-) ac_tag=-:-;; 21538 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21539 esac 21540 ac_save_IFS=$IFS 21541 IFS=: 21542 set x $ac_tag 21543 IFS=$ac_save_IFS 21544 shift 21545 ac_file=$1 21546 shift 21547 21548 case $ac_mode in 21549 :L) ac_source=$1;; 21550 :[FH]) 21551 ac_file_inputs= 21552 for ac_f 21553 do 21554 case $ac_f in 21555 -) ac_f="$ac_tmp/stdin";; 21556 *) # Look for the file first in the build tree, then in the source tree 21557 # (if the path is not absolute). The absolute path cannot be DOS-style, 21558 # because $ac_f cannot contain `:'. 21559 test -f "$ac_f" || 21560 case $ac_f in 21561 [\\/$]*) false;; 21562 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21563 esac || 21564 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21565 esac 21566 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21567 as_fn_append ac_file_inputs " '$ac_f'" 21568 done 21569 21570 # Let's still pretend it is `configure' which instantiates (i.e., don't 21571 # use $as_me), people would be surprised to read: 21572 # /* config.h. Generated by config.status. */ 21573 configure_input='Generated from '` 21574 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21575 `' by configure.' 21576 if test x"$ac_file" != x-; then 21577 configure_input="$ac_file. $configure_input" 21578 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21579$as_echo "$as_me: creating $ac_file" >&6;} 21580 fi 21581 # Neutralize special characters interpreted by sed in replacement strings. 21582 case $configure_input in #( 21583 *\&* | *\|* | *\\* ) 21584 ac_sed_conf_input=`$as_echo "$configure_input" | 21585 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21586 *) ac_sed_conf_input=$configure_input;; 21587 esac 21588 21589 case $ac_tag in 21590 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21591 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21592 esac 21593 ;; 21594 esac 21595 21596 ac_dir=`$as_dirname -- "$ac_file" || 21597$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21598 X"$ac_file" : 'X\(//\)[^/]' \| \ 21599 X"$ac_file" : 'X\(//\)$' \| \ 21600 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21601$as_echo X"$ac_file" | 21602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21603 s//\1/ 21604 q 21605 } 21606 /^X\(\/\/\)[^/].*/{ 21607 s//\1/ 21608 q 21609 } 21610 /^X\(\/\/\)$/{ 21611 s//\1/ 21612 q 21613 } 21614 /^X\(\/\).*/{ 21615 s//\1/ 21616 q 21617 } 21618 s/.*/./; q'` 21619 as_dir="$ac_dir"; as_fn_mkdir_p 21620 ac_builddir=. 21621 21622case "$ac_dir" in 21623.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21624*) 21625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21626 # A ".." for each directory in $ac_dir_suffix. 21627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21628 case $ac_top_builddir_sub in 21629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21631 esac ;; 21632esac 21633ac_abs_top_builddir=$ac_pwd 21634ac_abs_builddir=$ac_pwd$ac_dir_suffix 21635# for backward compatibility: 21636ac_top_builddir=$ac_top_build_prefix 21637 21638case $srcdir in 21639 .) # We are building in place. 21640 ac_srcdir=. 21641 ac_top_srcdir=$ac_top_builddir_sub 21642 ac_abs_top_srcdir=$ac_pwd ;; 21643 [\\/]* | ?:[\\/]* ) # Absolute name. 21644 ac_srcdir=$srcdir$ac_dir_suffix; 21645 ac_top_srcdir=$srcdir 21646 ac_abs_top_srcdir=$srcdir ;; 21647 *) # Relative name. 21648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21649 ac_top_srcdir=$ac_top_build_prefix$srcdir 21650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21651esac 21652ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21653 21654 21655 case $ac_mode in 21656 :F) 21657 # 21658 # CONFIG_FILE 21659 # 21660 21661 case $INSTALL in 21662 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21663 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21664 esac 21665 ac_MKDIR_P=$MKDIR_P 21666 case $MKDIR_P in 21667 [\\/$]* | ?:[\\/]* ) ;; 21668 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21669 esac 21670_ACEOF 21671 21672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21673# If the template does not know about datarootdir, expand it. 21674# FIXME: This hack should be removed a few years after 2.60. 21675ac_datarootdir_hack=; ac_datarootdir_seen= 21676ac_sed_dataroot=' 21677/datarootdir/ { 21678 p 21679 q 21680} 21681/@datadir@/p 21682/@docdir@/p 21683/@infodir@/p 21684/@localedir@/p 21685/@mandir@/p' 21686case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21687*datarootdir*) ac_datarootdir_seen=yes;; 21688*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21690$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21691_ACEOF 21692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21693 ac_datarootdir_hack=' 21694 s&@datadir@&$datadir&g 21695 s&@docdir@&$docdir&g 21696 s&@infodir@&$infodir&g 21697 s&@localedir@&$localedir&g 21698 s&@mandir@&$mandir&g 21699 s&\\\${datarootdir}&$datarootdir&g' ;; 21700esac 21701_ACEOF 21702 21703# Neutralize VPATH when `$srcdir' = `.'. 21704# Shell code in configure.ac might set extrasub. 21705# FIXME: do we really want to maintain this feature? 21706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21707ac_sed_extra="$ac_vpsub 21708$extrasub 21709_ACEOF 21710cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21711:t 21712/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21713s|@configure_input@|$ac_sed_conf_input|;t t 21714s&@top_builddir@&$ac_top_builddir_sub&;t t 21715s&@top_build_prefix@&$ac_top_build_prefix&;t t 21716s&@srcdir@&$ac_srcdir&;t t 21717s&@abs_srcdir@&$ac_abs_srcdir&;t t 21718s&@top_srcdir@&$ac_top_srcdir&;t t 21719s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21720s&@builddir@&$ac_builddir&;t t 21721s&@abs_builddir@&$ac_abs_builddir&;t t 21722s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21723s&@INSTALL@&$ac_INSTALL&;t t 21724s&@MKDIR_P@&$ac_MKDIR_P&;t t 21725$ac_datarootdir_hack 21726" 21727eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21728 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21729 21730test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21731 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21732 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21733 "$ac_tmp/out"`; test -z "$ac_out"; } && 21734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21735which seems to be undefined. Please make sure it is defined" >&5 21736$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21737which seems to be undefined. Please make sure it is defined" >&2;} 21738 21739 rm -f "$ac_tmp/stdin" 21740 case $ac_file in 21741 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21742 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21743 esac \ 21744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21745 ;; 21746 :H) 21747 # 21748 # CONFIG_HEADER 21749 # 21750 if test x"$ac_file" != x-; then 21751 { 21752 $as_echo "/* $configure_input */" \ 21753 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21754 } >"$ac_tmp/config.h" \ 21755 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21756 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21757 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21758$as_echo "$as_me: $ac_file is unchanged" >&6;} 21759 else 21760 rm -f "$ac_file" 21761 mv "$ac_tmp/config.h" "$ac_file" \ 21762 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21763 fi 21764 else 21765 $as_echo "/* $configure_input */" \ 21766 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21767 || as_fn_error $? "could not create -" "$LINENO" 5 21768 fi 21769# Compute "$ac_file"'s index in $config_headers. 21770_am_arg="$ac_file" 21771_am_stamp_count=1 21772for _am_header in $config_headers :; do 21773 case $_am_header in 21774 $_am_arg | $_am_arg:* ) 21775 break ;; 21776 * ) 21777 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21778 esac 21779done 21780echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21781$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21782 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21783 X"$_am_arg" : 'X\(//\)$' \| \ 21784 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21785$as_echo X"$_am_arg" | 21786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21787 s//\1/ 21788 q 21789 } 21790 /^X\(\/\/\)[^/].*/{ 21791 s//\1/ 21792 q 21793 } 21794 /^X\(\/\/\)$/{ 21795 s//\1/ 21796 q 21797 } 21798 /^X\(\/\).*/{ 21799 s//\1/ 21800 q 21801 } 21802 s/.*/./; q'`/stamp-h$_am_stamp_count 21803 ;; 21804 21805 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21806$as_echo "$as_me: executing $ac_file commands" >&6;} 21807 ;; 21808 esac 21809 21810 21811 case $ac_file$ac_mode in 21812 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21813 # Older Autoconf quotes --file arguments for eval, but not when files 21814 # are listed without --file. Let's play safe and only enable the eval 21815 # if we detect the quoting. 21816 # TODO: see whether this extra hack can be removed once we start 21817 # requiring Autoconf 2.70 or later. 21818 case $CONFIG_FILES in #( 21819 *\'*) : 21820 eval set x "$CONFIG_FILES" ;; #( 21821 *) : 21822 set x $CONFIG_FILES ;; #( 21823 *) : 21824 ;; 21825esac 21826 shift 21827 # Used to flag and report bootstrapping failures. 21828 am_rc=0 21829 for am_mf 21830 do 21831 # Strip MF so we end up with the name of the file. 21832 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 21833 # Check whether this is an Automake generated Makefile which includes 21834 # dependency-tracking related rules and includes. 21835 # Grep'ing the whole file directly is not great: AIX grep has a line 21836 # limit of 2048, but all sed's we know have understand at least 4000. 21837 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21838 || continue 21839 am_dirpart=`$as_dirname -- "$am_mf" || 21840$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21841 X"$am_mf" : 'X\(//\)[^/]' \| \ 21842 X"$am_mf" : 'X\(//\)$' \| \ 21843 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21844$as_echo X"$am_mf" | 21845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21846 s//\1/ 21847 q 21848 } 21849 /^X\(\/\/\)[^/].*/{ 21850 s//\1/ 21851 q 21852 } 21853 /^X\(\/\/\)$/{ 21854 s//\1/ 21855 q 21856 } 21857 /^X\(\/\).*/{ 21858 s//\1/ 21859 q 21860 } 21861 s/.*/./; q'` 21862 am_filepart=`$as_basename -- "$am_mf" || 21863$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21864 X"$am_mf" : 'X\(//\)$' \| \ 21865 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21866$as_echo X/"$am_mf" | 21867 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21868 s//\1/ 21869 q 21870 } 21871 /^X\/\(\/\/\)$/{ 21872 s//\1/ 21873 q 21874 } 21875 /^X\/\(\/\).*/{ 21876 s//\1/ 21877 q 21878 } 21879 s/.*/./; q'` 21880 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21881 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21882 | $MAKE -f - am--depfiles" >&5 21883 (cd "$am_dirpart" \ 21884 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21885 | $MAKE -f - am--depfiles) >&5 2>&5 21886 ac_status=$? 21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21888 (exit $ac_status); } || am_rc=$? 21889 done 21890 if test $am_rc -ne 0; then 21891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21893as_fn_error $? "Something went wrong bootstrapping makefile fragments 21894 for automatic dependency tracking. Try re-running configure with the 21895 '--disable-dependency-tracking' option to at least be able to build 21896 the package (albeit without support for automatic dependency tracking). 21897See \`config.log' for more details" "$LINENO" 5; } 21898 fi 21899 { am_dirpart=; unset am_dirpart;} 21900 { am_filepart=; unset am_filepart;} 21901 { am_mf=; unset am_mf;} 21902 { am_rc=; unset am_rc;} 21903 rm -f conftest-deps.mk 21904} 21905 ;; 21906 "libtool":C) 21907 21908 # See if we are running on zsh, and set the options that allow our 21909 # commands through without removal of \ escapes. 21910 if test -n "${ZSH_VERSION+set}"; then 21911 setopt NO_GLOB_SUBST 21912 fi 21913 21914 cfgfile=${ofile}T 21915 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21916 $RM "$cfgfile" 21917 21918 cat <<_LT_EOF >> "$cfgfile" 21919#! $SHELL 21920# Generated automatically by $as_me ($PACKAGE) $VERSION 21921# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21922# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21923 21924# Provide generalized library-building support services. 21925# Written by Gordon Matzigkeit, 1996 21926 21927# Copyright (C) 2014 Free Software Foundation, Inc. 21928# This is free software; see the source for copying conditions. There is NO 21929# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21930 21931# GNU Libtool is free software; you can redistribute it and/or modify 21932# it under the terms of the GNU General Public License as published by 21933# the Free Software Foundation; either version 2 of of the License, or 21934# (at your option) any later version. 21935# 21936# As a special exception to the GNU General Public License, if you 21937# distribute this file as part of a program or library that is built 21938# using GNU Libtool, you may include this file under the same 21939# distribution terms that you use for the rest of that program. 21940# 21941# GNU Libtool is distributed in the hope that it will be useful, but 21942# WITHOUT ANY WARRANTY; without even the implied warranty of 21943# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21944# GNU General Public License for more details. 21945# 21946# You should have received a copy of the GNU General Public License 21947# along with this program. If not, see <http://www.gnu.org/licenses/>. 21948 21949 21950# The names of the tagged configurations supported by this script. 21951available_tags='' 21952 21953# Configured defaults for sys_lib_dlsearch_path munging. 21954: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21955 21956# ### BEGIN LIBTOOL CONFIG 21957 21958# Whether or not to build static libraries. 21959build_old_libs=$enable_static 21960 21961# Which release of libtool.m4 was used? 21962macro_version=$macro_version 21963macro_revision=$macro_revision 21964 21965# Whether or not to build shared libraries. 21966build_libtool_libs=$enable_shared 21967 21968# What type of objects to build. 21969pic_mode=$pic_mode 21970 21971# Whether or not to optimize for fast installation. 21972fast_install=$enable_fast_install 21973 21974# Shared archive member basename,for filename based shared library versioning on AIX. 21975shared_archive_member_spec=$shared_archive_member_spec 21976 21977# Shell to use when invoking shell scripts. 21978SHELL=$lt_SHELL 21979 21980# An echo program that protects backslashes. 21981ECHO=$lt_ECHO 21982 21983# The PATH separator for the build system. 21984PATH_SEPARATOR=$lt_PATH_SEPARATOR 21985 21986# The host system. 21987host_alias=$host_alias 21988host=$host 21989host_os=$host_os 21990 21991# The build system. 21992build_alias=$build_alias 21993build=$build 21994build_os=$build_os 21995 21996# A sed program that does not truncate output. 21997SED=$lt_SED 21998 21999# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22000Xsed="\$SED -e 1s/^X//" 22001 22002# A grep program that handles long lines. 22003GREP=$lt_GREP 22004 22005# An ERE matcher. 22006EGREP=$lt_EGREP 22007 22008# A literal string matcher. 22009FGREP=$lt_FGREP 22010 22011# A BSD- or MS-compatible name lister. 22012NM=$lt_NM 22013 22014# Whether we need soft or hard links. 22015LN_S=$lt_LN_S 22016 22017# What is the maximum length of a command? 22018max_cmd_len=$max_cmd_len 22019 22020# Object file suffix (normally "o"). 22021objext=$ac_objext 22022 22023# Executable file suffix (normally ""). 22024exeext=$exeext 22025 22026# whether the shell understands "unset". 22027lt_unset=$lt_unset 22028 22029# turn spaces into newlines. 22030SP2NL=$lt_lt_SP2NL 22031 22032# turn newlines into spaces. 22033NL2SP=$lt_lt_NL2SP 22034 22035# convert \$build file names to \$host format. 22036to_host_file_cmd=$lt_cv_to_host_file_cmd 22037 22038# convert \$build files to toolchain format. 22039to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22040 22041# An object symbol dumper. 22042OBJDUMP=$lt_OBJDUMP 22043 22044# Method to check whether dependent libraries are shared objects. 22045deplibs_check_method=$lt_deplibs_check_method 22046 22047# Command to use when deplibs_check_method = "file_magic". 22048file_magic_cmd=$lt_file_magic_cmd 22049 22050# How to find potential files when deplibs_check_method = "file_magic". 22051file_magic_glob=$lt_file_magic_glob 22052 22053# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22054want_nocaseglob=$lt_want_nocaseglob 22055 22056# DLL creation program. 22057DLLTOOL=$lt_DLLTOOL 22058 22059# Command to associate shared and link libraries. 22060sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22061 22062# The archiver. 22063AR=$lt_AR 22064 22065# Flags to create an archive (by configure). 22066lt_ar_flags=$lt_ar_flags 22067 22068# Flags to create an archive. 22069AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22070 22071# How to feed a file listing to the archiver. 22072archiver_list_spec=$lt_archiver_list_spec 22073 22074# A symbol stripping program. 22075STRIP=$lt_STRIP 22076 22077# Commands used to install an old-style archive. 22078RANLIB=$lt_RANLIB 22079old_postinstall_cmds=$lt_old_postinstall_cmds 22080old_postuninstall_cmds=$lt_old_postuninstall_cmds 22081 22082# Whether to use a lock for old archive extraction. 22083lock_old_archive_extraction=$lock_old_archive_extraction 22084 22085# A C compiler. 22086LTCC=$lt_CC 22087 22088# LTCC compiler flags. 22089LTCFLAGS=$lt_CFLAGS 22090 22091# Take the output of nm and produce a listing of raw symbols and C names. 22092global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22093 22094# Transform the output of nm in a proper C declaration. 22095global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22096 22097# Transform the output of nm into a list of symbols to manually relocate. 22098global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22099 22100# Transform the output of nm in a C name address pair. 22101global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22102 22103# Transform the output of nm in a C name address pair when lib prefix is needed. 22104global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22105 22106# The name lister interface. 22107nm_interface=$lt_lt_cv_nm_interface 22108 22109# Specify filename containing input files for \$NM. 22110nm_file_list_spec=$lt_nm_file_list_spec 22111 22112# The root where to search for dependent libraries,and where our libraries should be installed. 22113lt_sysroot=$lt_sysroot 22114 22115# Command to truncate a binary pipe. 22116lt_truncate_bin=$lt_lt_cv_truncate_bin 22117 22118# The name of the directory that contains temporary libtool files. 22119objdir=$objdir 22120 22121# Used to examine libraries when file_magic_cmd begins with "file". 22122MAGIC_CMD=$MAGIC_CMD 22123 22124# Must we lock files when doing compilation? 22125need_locks=$lt_need_locks 22126 22127# Manifest tool. 22128MANIFEST_TOOL=$lt_MANIFEST_TOOL 22129 22130# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22131DSYMUTIL=$lt_DSYMUTIL 22132 22133# Tool to change global to local symbols on Mac OS X. 22134NMEDIT=$lt_NMEDIT 22135 22136# Tool to manipulate fat objects and archives on Mac OS X. 22137LIPO=$lt_LIPO 22138 22139# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22140OTOOL=$lt_OTOOL 22141 22142# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22143OTOOL64=$lt_OTOOL64 22144 22145# Old archive suffix (normally "a"). 22146libext=$libext 22147 22148# Shared library suffix (normally ".so"). 22149shrext_cmds=$lt_shrext_cmds 22150 22151# The commands to extract the exported symbol list from a shared archive. 22152extract_expsyms_cmds=$lt_extract_expsyms_cmds 22153 22154# Variables whose values should be saved in libtool wrapper scripts and 22155# restored at link time. 22156variables_saved_for_relink=$lt_variables_saved_for_relink 22157 22158# Do we need the "lib" prefix for modules? 22159need_lib_prefix=$need_lib_prefix 22160 22161# Do we need a version for libraries? 22162need_version=$need_version 22163 22164# Library versioning type. 22165version_type=$version_type 22166 22167# Shared library runtime path variable. 22168runpath_var=$runpath_var 22169 22170# Shared library path variable. 22171shlibpath_var=$shlibpath_var 22172 22173# Is shlibpath searched before the hard-coded library search path? 22174shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22175 22176# Format of library name prefix. 22177libname_spec=$lt_libname_spec 22178 22179# List of archive names. First name is the real one, the rest are links. 22180# The last name is the one that the linker finds with -lNAME 22181library_names_spec=$lt_library_names_spec 22182 22183# The coded name of the library, if different from the real name. 22184soname_spec=$lt_soname_spec 22185 22186# Permission mode override for installation of shared libraries. 22187install_override_mode=$lt_install_override_mode 22188 22189# Command to use after installation of a shared archive. 22190postinstall_cmds=$lt_postinstall_cmds 22191 22192# Command to use after uninstallation of a shared archive. 22193postuninstall_cmds=$lt_postuninstall_cmds 22194 22195# Commands used to finish a libtool library installation in a directory. 22196finish_cmds=$lt_finish_cmds 22197 22198# As "finish_cmds", except a single script fragment to be evaled but 22199# not shown. 22200finish_eval=$lt_finish_eval 22201 22202# Whether we should hardcode library paths into libraries. 22203hardcode_into_libs=$hardcode_into_libs 22204 22205# Compile-time system search path for libraries. 22206sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22207 22208# Detected run-time system search path for libraries. 22209sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22210 22211# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22212configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22213 22214# Whether dlopen is supported. 22215dlopen_support=$enable_dlopen 22216 22217# Whether dlopen of programs is supported. 22218dlopen_self=$enable_dlopen_self 22219 22220# Whether dlopen of statically linked programs is supported. 22221dlopen_self_static=$enable_dlopen_self_static 22222 22223# Commands to strip libraries. 22224old_striplib=$lt_old_striplib 22225striplib=$lt_striplib 22226 22227 22228# The linker used to build libraries. 22229LD=$lt_LD 22230 22231# How to create reloadable object files. 22232reload_flag=$lt_reload_flag 22233reload_cmds=$lt_reload_cmds 22234 22235# Commands used to build an old-style archive. 22236old_archive_cmds=$lt_old_archive_cmds 22237 22238# A language specific compiler. 22239CC=$lt_compiler 22240 22241# Is the compiler the GNU compiler? 22242with_gcc=$GCC 22243 22244# Compiler flag to turn off builtin functions. 22245no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22246 22247# Additional compiler flags for building library objects. 22248pic_flag=$lt_lt_prog_compiler_pic 22249 22250# How to pass a linker flag through the compiler. 22251wl=$lt_lt_prog_compiler_wl 22252 22253# Compiler flag to prevent dynamic linking. 22254link_static_flag=$lt_lt_prog_compiler_static 22255 22256# Does compiler simultaneously support -c and -o options? 22257compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22258 22259# Whether or not to add -lc for building shared libraries. 22260build_libtool_need_lc=$archive_cmds_need_lc 22261 22262# Whether or not to disallow shared libs when runtime libs are static. 22263allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22264 22265# Compiler flag to allow reflexive dlopens. 22266export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22267 22268# Compiler flag to generate shared objects directly from archives. 22269whole_archive_flag_spec=$lt_whole_archive_flag_spec 22270 22271# Whether the compiler copes with passing no objects directly. 22272compiler_needs_object=$lt_compiler_needs_object 22273 22274# Create an old-style archive from a shared archive. 22275old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22276 22277# Create a temporary old-style archive to link instead of a shared archive. 22278old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22279 22280# Commands used to build a shared archive. 22281archive_cmds=$lt_archive_cmds 22282archive_expsym_cmds=$lt_archive_expsym_cmds 22283 22284# Commands used to build a loadable module if different from building 22285# a shared archive. 22286module_cmds=$lt_module_cmds 22287module_expsym_cmds=$lt_module_expsym_cmds 22288 22289# Whether we are building with GNU ld or not. 22290with_gnu_ld=$lt_with_gnu_ld 22291 22292# Flag that allows shared libraries with undefined symbols to be built. 22293allow_undefined_flag=$lt_allow_undefined_flag 22294 22295# Flag that enforces no undefined symbols. 22296no_undefined_flag=$lt_no_undefined_flag 22297 22298# Flag to hardcode \$libdir into a binary during linking. 22299# This must work even if \$libdir does not exist 22300hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22301 22302# Whether we need a single "-rpath" flag with a separated argument. 22303hardcode_libdir_separator=$lt_hardcode_libdir_separator 22304 22305# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22306# DIR into the resulting binary. 22307hardcode_direct=$hardcode_direct 22308 22309# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22310# DIR into the resulting binary and the resulting library dependency is 22311# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22312# library is relocated. 22313hardcode_direct_absolute=$hardcode_direct_absolute 22314 22315# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22316# into the resulting binary. 22317hardcode_minus_L=$hardcode_minus_L 22318 22319# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22320# into the resulting binary. 22321hardcode_shlibpath_var=$hardcode_shlibpath_var 22322 22323# Set to "yes" if building a shared library automatically hardcodes DIR 22324# into the library and all subsequent libraries and executables linked 22325# against it. 22326hardcode_automatic=$hardcode_automatic 22327 22328# Set to yes if linker adds runtime paths of dependent libraries 22329# to runtime path list. 22330inherit_rpath=$inherit_rpath 22331 22332# Whether libtool must link a program against all its dependency libraries. 22333link_all_deplibs=$link_all_deplibs 22334 22335# Set to "yes" if exported symbols are required. 22336always_export_symbols=$always_export_symbols 22337 22338# The commands to list exported symbols. 22339export_symbols_cmds=$lt_export_symbols_cmds 22340 22341# Symbols that should not be listed in the preloaded symbols. 22342exclude_expsyms=$lt_exclude_expsyms 22343 22344# Symbols that must always be exported. 22345include_expsyms=$lt_include_expsyms 22346 22347# Commands necessary for linking programs (against libraries) with templates. 22348prelink_cmds=$lt_prelink_cmds 22349 22350# Commands necessary for finishing linking programs. 22351postlink_cmds=$lt_postlink_cmds 22352 22353# Specify filename containing input files. 22354file_list_spec=$lt_file_list_spec 22355 22356# How to hardcode a shared library path into an executable. 22357hardcode_action=$hardcode_action 22358 22359# ### END LIBTOOL CONFIG 22360 22361_LT_EOF 22362 22363 cat <<'_LT_EOF' >> "$cfgfile" 22364 22365# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22366 22367# func_munge_path_list VARIABLE PATH 22368# ----------------------------------- 22369# VARIABLE is name of variable containing _space_ separated list of 22370# directories to be munged by the contents of PATH, which is string 22371# having a format: 22372# "DIR[:DIR]:" 22373# string "DIR[ DIR]" will be prepended to VARIABLE 22374# ":DIR[:DIR]" 22375# string "DIR[ DIR]" will be appended to VARIABLE 22376# "DIRP[:DIRP]::[DIRA:]DIRA" 22377# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22378# "DIRA[ DIRA]" will be appended to VARIABLE 22379# "DIR[:DIR]" 22380# VARIABLE will be replaced by "DIR[ DIR]" 22381func_munge_path_list () 22382{ 22383 case x$2 in 22384 x) 22385 ;; 22386 *:) 22387 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22388 ;; 22389 x:*) 22390 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22391 ;; 22392 *::*) 22393 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22394 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22395 ;; 22396 *) 22397 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22398 ;; 22399 esac 22400} 22401 22402 22403# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22404func_cc_basename () 22405{ 22406 for cc_temp in $*""; do 22407 case $cc_temp in 22408 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22409 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22410 \-*) ;; 22411 *) break;; 22412 esac 22413 done 22414 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22415} 22416 22417 22418# ### END FUNCTIONS SHARED WITH CONFIGURE 22419 22420_LT_EOF 22421 22422 case $host_os in 22423 aix3*) 22424 cat <<\_LT_EOF >> "$cfgfile" 22425# AIX sometimes has problems with the GCC collect2 program. For some 22426# reason, if we set the COLLECT_NAMES environment variable, the problems 22427# vanish in a puff of smoke. 22428if test set != "${COLLECT_NAMES+set}"; then 22429 COLLECT_NAMES= 22430 export COLLECT_NAMES 22431fi 22432_LT_EOF 22433 ;; 22434 esac 22435 22436 22437ltmain=$ac_aux_dir/ltmain.sh 22438 22439 22440 # We use sed instead of cat because bash on DJGPP gets confused if 22441 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22442 # text mode, it properly converts lines to CR/LF. This bash problem 22443 # is reportedly fixed, but why not run on old versions too? 22444 sed '$q' "$ltmain" >> "$cfgfile" \ 22445 || (rm -f "$cfgfile"; exit 1) 22446 22447 mv -f "$cfgfile" "$ofile" || 22448 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22449 chmod +x "$ofile" 22450 22451 ;; 22452 22453 esac 22454done # for ac_tag 22455 22456 22457as_fn_exit 0 22458_ACEOF 22459ac_clean_files=$ac_clean_files_save 22460 22461test $ac_write_fail = 0 || 22462 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22463 22464 22465# configure is writing to config.log, and then calls config.status. 22466# config.status does its own redirection, appending to config.log. 22467# Unfortunately, on DOS this fails, as config.log is still kept open 22468# by configure, so config.status won't be able to write to it; its 22469# output is simply discarded. So we exec the FD to /dev/null, 22470# effectively closing config.log, so it can be properly (re)opened and 22471# appended to by config.status. When coming back to configure, we 22472# need to make the FD available again. 22473if test "$no_create" != yes; then 22474 ac_cs_success=: 22475 ac_config_status_args= 22476 test "$silent" = yes && 22477 ac_config_status_args="$ac_config_status_args --quiet" 22478 exec 5>/dev/null 22479 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22480 exec 5>>config.log 22481 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22482 # would make configure fail if this is the last instruction. 22483 $ac_cs_success || as_fn_exit 1 22484fi 22485if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22487$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22488fi 22489 22490 22491echo "" 22492echo " prefix: $prefix" 22493echo " exec_prefix: $exec_prefix" 22494echo " libdir: $libdir" 22495echo " includedir: $includedir" 22496echo " configdir: $configdir" 22497 22498echo "" 22499echo " CFLAGS: $CFLAGS" 22500echo " CXXFLAGS: $CXXFLAGS" 22501echo " Macros: $DEFINES" 22502 22503echo "" 22504echo " Run '${MAKE-make}' to build xf86-video-ati" 22505echo "" 22506